vendor.js 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!*********************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  5. \*********************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(exports, "__esModule", {
  10. value: true
  11. });
  12. exports.default = void 0;
  13. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  14. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  15. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  16. return this;
  17. }();
  18. var key = ['w', 'x'].join('');
  19. var oldWx = target[key];
  20. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  21. function isWxKey(key) {
  22. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  23. return false;
  24. }
  25. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  26. }
  27. function initWx() {
  28. var newWx = {};
  29. for (var _key in oldWx) {
  30. if (isWxKey(_key)) {
  31. // TODO wrapper function
  32. newWx[_key] = oldWx[_key];
  33. }
  34. }
  35. return newWx;
  36. }
  37. target[key] = initWx();
  38. var _default = target[key];
  39. exports.default = _default;
  40. /***/ }),
  41. /***/ 10:
  42. /*!****************************************************************!*\
  43. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  44. \****************************************************************/
  45. /*! no static exports found */
  46. /***/ (function(module, exports) {
  47. function _nonIterableRest() {
  48. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  49. }
  50. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  51. /***/ }),
  52. /***/ 11:
  53. /*!***************************************************************!*\
  54. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  55. \***************************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports, __webpack_require__) {
  58. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  59. function _defineProperty(obj, key, value) {
  60. key = toPropertyKey(key);
  61. if (key in obj) {
  62. Object.defineProperty(obj, key, {
  63. value: value,
  64. enumerable: true,
  65. configurable: true,
  66. writable: true
  67. });
  68. } else {
  69. obj[key] = value;
  70. }
  71. return obj;
  72. }
  73. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  74. /***/ }),
  75. /***/ 110:
  76. /*!****************************************************!*\
  77. !*** D:/AAA_Company/红沙湾管理端/static/mine/banner.png ***!
  78. \****************************************************/
  79. /*! no static exports found */
  80. /***/ (function(module, exports) {
  81. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABGUAAAJ8AgMAAAAqjfSkAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURUQ990I79zMs9igh9Ls7gNwAACAASURBVHja5J0/juM4Fsblgbs3tQNPspfRAHJUiQ1IU4FPUDrFHqEnqKCVlwBRACuXgtpLzA2mgqIAZRuUgfUsSVH/bEqWbPKRi6IHJXc3MEU8f/y97z1SsvO3gvEeTBiHv/WNz+C28fvI//PfDtjEHvRF5rS9MTSPmkNzmjYNjar5I7BUNc+BYdW83xoZ3ar5UDANI6DRrprj1GnoWlCn2yOjVzWnZ9OheQ4sVc3L5Gk82AYazar5UDMNI6DRq5rjjGloWVCn58BO1cyamJbQvASWqmbWxHSw5uO+yOhTzYeyaQCsZ1DVzJzYwTbQaFTNs+nQvASWquavzbxpPNgGGm2q+fymcBpGQKNLNaff5k7jYBtodKlmfotEcWjeA0tVc8PE1LJm9nqGUs2n4mkArGcg1dzUIlG6oH4oiYwG1TybDs27msioV81tE1PImk9FkVGumk/104BreWpVza2GQt2Ceg4sVc2tlcvBNtAoV83NlcuDbaBRrZqjlmlAFwg6VHPHxBQtqJfAUtXcMTE1oflQGRmVqrlnYkpYc1QamVHV/MsBm9ijbaAZVw2ZFZr7JnawDTSjH9cRzQrNfRM72AaaMdWc0KzQ3GkoHmwDzZhq0KzQ3NsiebQNNCOqOc4Lzb0tkoNtoBn+uFhkZoTm7srl3tB8qo/MkGrQrNB8bu6dxp2sUdTynKIaMis0J52JErLlOUE1fDlND40CAt63oP7SERnpx3VCs0KjokVysA00A6pBs0KjZGL3sOakJzIy1ZBZoTnpTJTALc9rqjmiWaFRYyjuWFDvAZRqTmhWaBRVLgfbQCNTDZoVGlWVy4NtoJGohswKjbLK5dE20Fyq5ohmhUZZ5XLrgvoIoFRzQrNCo25iN4bmqDEyZ6pBs0KjcGK3seb0HECphswKjcqJ3caalwBKNUc0KzQqJ3awDTT9j6sCTTw1NEondrANNH3VIDRHNWoNxYNtoOmphswLzQ99yLMBNF3VsOWUoGhqaOYeJ1e+oD50R6b9uFgswsmq+VQbmfmhOWmPTKOaZjlFU0Jz8x33yhbUjwBKNUckGcOhUU7AuapRvJ5HVFMXCPG00KhvkczMUJ8AkRGqkUZmMDSfGpFnC2hq1RCcEZ6g2H9XQ6NjYvMW1DtIaNjHdcJdTxNdC82z6dDAiIarBhFE0OQM9a4xG0wb/wmgVEPyFIvYTMCwnspllmqeoVRzzFF2qZih0GiqXOZkqP8GQKo5pThHBZ7qa170Ic+y9RT8XpYFKhEXTnK2oiSh0VW5zFlQfwKF5pcyz+iKItNUo61FMic0QJFxfylJSTKS8lgk/RLzIjT6WiSP1qHGd6hqUI7TjlbC4dDoa5EcbEON79DQlCW1NRg3shlWjcYWyYNtqNmx0GQZLi8EIwuNzl7so2Wuxluy0GCqmjKTiOY8NDrndLCsSnDo+CWnXpiqRqSokfJSa4vkYBeFvUo1GZUMuV5Dqbnj/v4F9QkQmb3DVUMtHy7xVdZoOX56i2oAGhK+11XN1QylGX4PViWoWjUFIqVAzTCGdX9WjxYlKN93PddjoclzPNCwaUOjfYEfrMrde1ewJstKLDPDbWj0J8zpofmmHTR+w5ocFyJDJUPlpf5P6tEqW7OoWUPt8LivAUgKB2tsDVON67pOlaFq1aBY2gCFcBIPVjk+kaGKHFHWjHT5ThDge7TG8fVYwzMUrlfTxdGjF4jP6WBTS2Kzrt1w1vgamWo+gq8VGsEal7OmoKpJhyzfESQy0xcUSCOr9jUFzlrVnGcoENDMUY3ObLltWbOsWJMVgjWSGuoFJjLTM9Q7BGuEr6EUznCaNk447BYKH0CRmb6g3nVC5sLXFJhIKUxDAxUZGxbUulVNU3lT1Uh7ElaG5k9tmvE8OWsINqsa8wtqvb7wNYw1JULy8vLLqGYbUNX4Ul8jREOLqNhIaAxnqH0QrPb7CzdcUDecVSCO7V9QWlTD5CJlDc4Q+toZasNYs9mc+xpaQxUUxP8vodGhGk+o5sLXcNXUJ0C/YobaD2UoKhlclm3LPPlqqvEryPRY4y4r1XDFYMlpvq+RoQRkJKopixSXAjbhF8xQnoCM1NeUvQwVfq0MtVsJuUh8TUELhTwjX7SGYqXTJWtcz1nWbhjhL1pDffttIVSzkPgaWnm3vibWHRrPKtV4HDXDvoYHpvE1WpP3jv7GjT2q2XdYI/M1rPKuSRxrXlD8M7JGNb63DaSs8UTbPGtP4esuL/lvdBY2+Rp3IfE1XdYQaQtUdWj4uRX62trhazhdBljjuDVr2vMAOn3NzhFjY4WvWe+v+hrKGtHKCs/3oTSQxvOWEtwYUE0FGbmvaViTyo5/qg+N7zRjYV41OwoZjr8xX5OVKSbyA2tqReO2r61p1fgCMqO+hm9eIoBCwXU6w7RqHGfFWePKfM2iqaEoiTFA5e31hlnVuM5yhDVehzVp26/RlqF8pzcWRlVDk6VgzaivycqBxrni0Lj9sTWoGn/nuKOs6WSoQn9ods7Z2JhTzWbXsMaR+JpF62tyoZpQZ/JuKLOU4AZWNQwmywm+hlfe7Z63tsrbuRgLU6r5rcOaUV+T4v7Nl5pC00DGk+AGVjWet3MEZNxR1pRZ62s07ig4krExo5p1sJvia9j9ULT21u5r/KVXv7zm3dKIaqgTnuZrKIYJkRpitaGRqabBDahq9uvNJF9DKYzx0LlhjbamjxtQ1XiMNRVkfMEabnB8du1lKKaaVCYbpaHZOfJhQDXrLmtGfA07KVE/UyKO9e0o+C1gOi/HWYKrhhXdE30NrusErSclhlRT4QZSNX6lmkn9miLN9PeGXYmvqfaWTaim9jWCNT6/m4Vdzn1NBnAqa1A13N1Aqma3muhrihxRP5w2my26jjl6y2Z03i4FiiFV43mTfQ07lqX/3LA7rBqKG0jVMCszrV/DM1SdufXtKOzkvqaK2LcDsGrOfM0Qawr2HDFzGYqPfwKqxpnsa4pWNTo3dndLR7yWntO8r0PzDzjV+F3WbAVrOHS27Er/+czXYN2nssZV8+sbmGp8Z7KvYR3Q7sHhSDdrvEvWON8RrGqm+Zoct74mMsWaX0sEpZqds5rcr6GqwXW/JgYIDauczsf3NEsNsmbL37BLVWH1VEMMumGumjR7hVLNYka/hmT6+zWjvoapBqE3ENXspvuaPONWmMie5gipGrqogVQz3dfgPBOVdwiyoAZYQ39hCqEar8sasSO25e+23hlraOJOkfSoBDBr6MfzCqAad7KvodVlnqWpaV+TVjnyTb9q3FFf45/VUG1gEnO+pjqICqGa6b6GPQUUX9bdwKzJq8dBp6CsEbDZttdtnzXsYVmZ9GmOkKoRBuJVv2om+xrWyQI4X7NjZ3HFy+28b1UjlvUbDGvcaawp68I7NpahqLkSp+YQUIaa5GuyZh/KHGtw+w0gKSBrLgaHTud8Td65s8WQaoqsLuOeRnED6mvY7RudYyS9Z5vrUY172UL/nmFaKlRpIBrDDaivYXverR82VUPR9dRJkrb4GmaHCSCGpazJcgHhJP6ZjOBGN2u8Hmv4sxwxnOUbUA3pWohXK3xNVrL9S8iNXfcSNpQ19aGEKPoZhYO4UcQaV/gaz62Y4/niJ7+2rCGG97yFasTmclJ9dYwVvobW3c1xc32P9rnGGmr46g2fiN0O8GoBa/hNqanh3UummkwcQo0TfqvEmwX9mjRtfA3IZovc1+TiQGFcBWdoSSljTS2QcdVkoiFgljXtmQQUhjQ+YWre1xS4/q4AgzVUhuuHbYZhzJd2IsUNMGsy3Ol+hqZqKFzUmSCMozgK5f0J2H4NtXyZ/nsvr/iapvKmNRQXb0zzFNLta66yJhf7UCYzFE0E9V2OlMHRU8zLuVSvr9mzJwvTP9Er9zXi1fE1hJQYMkNJ+zV5Y62in2IuiaRggK2hWHuNmHbDVDXtYxOTOEriJJa1Q6H7NUT0kYB2L2W+BjdfbRZFT/Xaji7boaC+JsedDBWay1CofbIvDU4URixXXbRD1fiavWDNfs98DbvuxYW/7bKm0P+84eu+hoi9MKYaGpcklvUnYH0Nu+kHYeNuuAO8JK7EG3HyvKlVDafMiv+kQ1w2m7W4stHZhyIFwJ73lX5N3vz+J+ZoYpbExVzM+ZqifrxaYnDPm6aCykHwSTDY0Cwl2X1Rk6E6rHEEZFb7C9aw+7yJ6NfECcRB/AHW1KJJ2p5RfX0z5WtY9m7XuaE9b1zkYg4UMLSIikKeLMW9a2pZs65Zs2bPN1rz62axqa4b9r7dvSSglk/er2Eb70Ts0SX8+7Oj9t7q1FC/hp+NNZ+higZ4ESuj+jcgvZrwNez5NUhs0YWhSdak1RcxUQTHEYdO12u9mfE1qCykx81h3XB7QDcKuRkOexlTqa9Zc9awIS7toAZn3TnL1+t/hmb7NcwFU0scV42+djKpEV/DvpiZGN7zzki948MyFFtMMQ/MOW4U+ZoVZw198T+x12pfXRl1OueG6xvgdfaG3Wv9miYRUNZw0Jz1ASrcAPsaIrbHEqOnsmrVhnweIQMOj07Uw40aX9NhjSMYsxhgDUlN+xqMS1H+x1EYhfXi7qWFFN7XdL5iNzZ4KquZAV1MT1Vv4my8qlHNiqtmValmdZah9usea+oOm877vN1p/Rrex6J+j28rXADnTUFoZrIG4Nnm1/s1aT2HmFtPtoF5MSUFC2qmryHE+PmavFN5o4RKJ4wqCffik76rYs1EXyM6bInBey9pDVUfPUI/46he3PH53tgfKlhDR/WzvdZjveN/2bIG4Gv6JtZQ9PN5qigTn5+f4+PHN1jW1LdeJib3vPM2RT6xTW8Uyj6uH/In6s/zNQv2GOrFgl4X/E/d16b625o1eXePLjLkazq94briTmShcdSw5n/MXd1t4zoTdYDsPifA7q3HD7kFLLBfCwHEKm4JeTULIEAKYAFyRxSgGj7N8Fc2aVqOxLH0YGADZA1ldHhm5syZO3mNSy9pe95ud4y05zcWh9llmQQfzcumWPN2C2uGKeyHosyh4gl1sqHLcr2xL/AtadfznmPZQyBh1CTeDdCH6jKdZvdovgc3gDIviDVwuY9wvf9+sT+2qqzE6pLvVjY/1uo1XjjcobKmeELl7L934zVTrygd1nzUmGQAlHfS2jhc8Zqv4gKPPXiNmpo4rFWwZnCqhE4KyJ84z57dxj6a78DNGqw590MDR/x61CTTNbb9BILHSznUV3GBxwqsOSDWLD7d/fL+y/6rcyLxg8S78ppjjdeE9mUHpU9MLuU1s/kqLanYg9ecde9cjyShO8A4E5tIrjhUQIUqwvB3wmYFrwEcjkPwjFPlUDqc3JxJzHRzcPNVWlKxD68JjV3aeag+/G0EU+7BcFF8ND8ejpqsNaD7eP8V/sl5gLZkw/l6zRB0c90JI8dX8Vnh0bx8D2vu1NcM5L58/8SFOiwstL2sHy0fzeFxrDkAmrwtPt0NWHPwWAN7L3tNX6+Jky1CcBiJ4iyXeyeP5sfuWINR41Nv1mBUrBA1fWIN2GHAsFsn1MNv1DqsWfAaRcJr4mSLFUoAkZizTF5gw994o1bVa2hdqoNSIra8oVrjDydZjJoHqU3+Czh8mbEmRg1izRPkUL1vvHMofmIFgDt1bOnR/GiDNe4vRKYAHabUeAmUJIzl+PD3H81KXpN06DinqdcoN7E2B8opvkr81qN57Os5i64Le0Br4GVD5nhMt6Ua4hzq5xisfaAczDspZPaI+v6jWYM1cT8UJa+JbijCCgG4g2BWfjQP4bDf35Dd62CvQ7ofShPnUGgjpqOsmwHn64JueP+oyWPNjDRtT6gcr5mUr8My/snd0G4GhxeP5sfWWHO8wJpQNCfkNT/nEyrphUklryx+t3qhVvOa3PHdltdoJ0PlHRRsYDxVlmvD30gV3PqGi50O7tPurvIvFPIa6j7Uz9G/026SWQipcuKj779Qa3Oo/e1Ra/Ua7Q9vPmONc8zm/PYL9bI/rxnIe94/9ehLWVCoEZI7vxi5+aNZiTXZhkJbXjME5REc2hgzVTb80Pfz+xvs58dytwNgzfECa6h5zdh71RzUhrmt8Em1wwu1Emumgbpeg65UqJrDjgKUbKwioNCie/z0XsNrQpXPzoFyGl5ztm+1lfAx5Skf2/yFWpdD6QaO+DVeo7x/LeeMS2hEiUzVfIOoWfyC1+PiO72GBCrkUIYea/zopZAWZ7hU+8DwGqzRUUbS5IQq8JqhDxUjoWzuLa/+WmYDrHEux6nn8Qwy+Ol4zSGp11hHKFJeE/xr5gcC2SVISdjt2vD+WDOYWHyUZPUarydkOEEHTahaH2oLrDncxBqImlGRY43yZXM7CZXZrkODNWqgrtfoc5ynFhzITadkrShx+PW/v6vvZdC4r3L8cB/XJ5RKpC00vMaEZbY8MdFpdkKVeM3wBLxGx7FhsIPyp5TYnA2v4DW4fWP/es2xEjWjn0vlFmtAx8cYMdYM0XIdcI+oD+VFc+D/GUc3KifUr7/rr+wJ5bDm4zpqBvrasIkb8ebscn6bWCeqMNwAaxosXKtijT8M2KcIqnd5uzZ8+A2bKlfeK3gNlrLiEcVosGZMyyKdsIaFrNKia8BrgkeLJOM1MLFre96oM4cBBc5lSYi/Gdbc5jWw6ce7A1DmUF6gK63IMVeRIMCaxPaNTssXhxyZTeZkvV7z7wPXunqNU4BeDvW1xBrw5UtF1cCKqes14CLWVgFamvP2A7so5RPXhm/teQ2qzffHmmrUDNE5FlUkXNUThX2xZrGZ+Ql8+RTaMHMQH83JQoUN3xLkla41vEbrdB6KjNdMJpr7iHxhmCCHits36Oo1vUNhgT2okrzGtOY1Q9gqJqmwZoxVczyhGO+EJOc1M9Ck9RpGhDUmblxL5ahyV6yp1mu8jo6wXtP7oR/GUHzUoV+WuimpboE1qu+pec2kowD0etnF7idUsV4zmJzYvG2VzzhGPodJ50/uzPzlRdT8WX+v7HmnanMqTwmf/ucHvGl4DXYUqLHGJC5vJzii4JSqikia9KHaYs31ozlrE/q6iodNE1e0b+OoqfIaNXpeI+iipvcikvn0xik6kSN9y0fz54HrwZ53k6LE62u2Nhx03Z/RMqvGhvfnNV5GR4g1o9M/SS+qjsc4Xb1mPqEm3bKjUNDX+NlLJxbmQqjMcGprXuOM+Sh5jU4WFnTolZX1g2qKNbCzZUqCpkFR4jU/vqGSRb+oN2eMmtfEsjkh1ugwQsLYSTp71GtLiUs5wAPXutrw1O/vy1fhNfODiftROC784VVJ9d68BqPGzyiQ8Zr57xP0NUK5alb1hWqANW2dSLIvVCynYcWG2wFMSV2vUY7YUOprgi8f55/KP5da1Lw/cFWw5m3Ba8Zz0ocSDXjN4ZhTZQ1hLNVOboBNAJf7suEKrzGo+iHmNeNwDuW0DkG4u6MosTPWTNN4bqrly79Q0aLl0zFiSV6vQaxR1Fij59NAO8oJXV3QDFtxLCfDGtTXjDky3Dpq3AiJQJMWq+fjnJbXwIMZdtcN35tDgfbTSrKyXbq9oiZgTRI1I6zpm5pm3vkR+LDrXAIXlncd3jvzmrNOBuAZ2Qnls0vcS8JxozerdhR2xhoAm6IH6N/N7toLdQ5nVNxgyGsyx715DaYJ1PqawTg9AJuxhqH+SNQP7/e39ff9WDONykxTT55D+Z63nAmwtLosrq46CqYpr4FVAeoJdMPhhOLOCZ9lXMRa51BDzLwvRCR/t7vuYcMmlkYEb8KG630o7wFKWBues5XBqQE6dcLnI8O8d+nRvD1w3caat7elUqLolfXACEDpvjuHsn6FUjZRSlR5Tbp+Q5JhTe8zFengFxbB32bDL+/r79tY87LgNVDlm/JR0w5rtJ9RkLwTdkJBKMVp9TXnsBOEltek/zPm3XckCjtjDdSyprQHlGLNx2Z3nQ2Pibd5shePUfahwkpQQl4DUTMEvRqDNfCcVQcMXx64b2JN+nPsKOQPqMZYE+Cucx6gSl7Xa0xrXtMPQaVAVxtWU6ylzSd3J/0OTDKsGXHoJ6vE/+/wsd1V5TWuXiNB44jRwjk1r7FDP9RaPp2sbOE4KsYzJdnLR7Pr5WYvxwLWfGx216Im1GskTinMISOkVJyW1wxjmHqkm1GAmsToTig07LorUXh74L6JNenPsTacekosyuYNsSbZ5y3FCVuYPLMwoLW+ZnQCDlKsMQtosVW+mn/NvlgD+hrVFzxAW55QevQ5FPC92PrhlH0oMxlFzWv0wgxa4nYSEJNIwqiBHbsqWl0sixINo2aIo8wnq4rNDSu01g0XPHUbq7KMfaGcWJh194xv7Iw1ZygNG5OtDbeLmmT6EwbFcKfYHbzm+LH6vslr4Odp1PS9VYtlsObPZnc183a1e3bBsaQiZsM6rxtuGDVhnzecUC5eyHlNtGKWlKqstM4HdXNUgpLzmog1Fz3vlrxGJSeUU5BUsebSNfieK89rjuHXXSglTKE2/Ge7q96H0rHK5xyHGe0JhfoaXdgqRhE1cEIxrjrOcoFziTXr7+UvWM5o4c8XbNiYrCX+fw/NAKwaDUjYsMMaFl9rQcxrgA3HcSi51A03jJpJaV/lO2Hmjb2oSm3421hzuIk10OQwmhprRnVe/N+iMNPcFGtmNjzRZ97BvAEkoHaOmUlV5TUP3PnrNfy+5IXCqCnohn+/b3YfamzYteicyyWbkZhJajY8R80wUJ9QyRnJBBgfiXtMdXfmNfavFbR8jAhrhtH+fZh39ZF3LAtogDVBbi7o+lA+WeH8BH0oMGtRnLaUNQTJ7jXWvG93VXmN6ZO9l4rfJalugDW9ImfDg98qpk7YbxFYOK/Uhi+2Idx1Z3mN+1z8HOs1yhR63n/eN7vrUTMEZx+7K1U+A6/Rir6jEPpQUvqVNvLa+si0xhqTOBZyKqyx3wJ7c5+48pKrp8ihCpMtbZUSwQ5f2XExzqu8Zt9HA9OFYWBXUp1QY5xXY8qqSAS1UgLqNZPW/ROwYR0zS1wBryRxi+6Wp0S7qInbN9Ch2q5SIK7y6QmdSALWME6VeYcjCrR8naV+xFijo3f25eH9yLxR4a5GzeieDXo4CnQhEeRs2DxBbRi+gnFlRms47ExsaHMoUCloaqwZXZ4gwsiPW/jDCXve4Etq6KMmTIqxGWukDPv6SNlwmJxIR0Lx0bxtd1WxRo1xz0V3p9Flg563JmfD2s9k2UV04D/HpaLmNZh653nNy3ZXPWrcX4d7MwnFBHHPG7eKKXqsic4JXbSnpuU1zvUo61/TDmuCt3knOSSYmEYRn1DoHDspci2fjntjJLc6Pi6JeQ3OaOkC1mx4V3veY7RiFgVjHwKsiSmUIKsNR0cJjjI+7NXRY40u+A23wxodJqqlrfRxlXsyzXOoydB3FLyWDxbJipNiTjx3sWeiLRvGiV2TtICSR9PsmrFmjEU9O3QppKCv14z0bDhgzXxqf6JFNafnNZheDnlfvrcN71rUTIlxorDmfIrR9qEgvdT0WHNO9kOBJ9QzNHbPg/GDj1e8piXW+NpwHPdhWO4jZcPzsRmTKKLacDyhIEXo3AAmcdTANpuw91LQRY0bqWbp86DNvMf58B5M/zRYgysMEW6klPRYo3pFjzW9WhwGKDiveUrsnENB97Ko5Ttud9eixuvNQTfsdylcNXZbs+FB+dlLSciGF07ZUrDOygKIec1E31Hw9RqJuuEu7qIjV0qQYw3MQ+lkWo0Jxem7lz0oJYbs7OVxw6vyQoW9l7A1q1NC8TtWgu7Na6ZBleah2kZNUoKVaJfFaAugdj+UydeGH5k3Ktx1Nuy+RAcSUOZUNpxUiG83/WhirOmH4G0unV4ta0XSujYcdcOMCmvC3kspuT+hJHGiYKMmekowmqiZYyaADTZa3AiHoK4Nl9jw64Z35YSK9RqBky15F0WC2jA5rzHGYY1wHmtCOC0fJ60N68Hka8PtsOaso5ZvjhrpAPl5tHyKLQ/vtlFjmyuCyxg89H0oVdDyNUwvdZKuwBEFGptnOKFGpclzKOVzKFszF/9n79pSLLmRqHtc4I/+cO1gdjDewVADXktBahNeR2kBAilBC1BCz36UcDfQMExGhF63SrfubcapIxh3Yew/F9mheJw4cc4jao4D+porPds21/yJP/e64Uum8hGTL18XGqhkIfc1e/9GYSheUywMjeDDcE0JzjW39lADW76iyq+ZOmyNdQ6ODTPK57v6NQOjZnW5r9E2KZsb8GKXseFWA1SDBoWCDRNjrbhmaWg3XFA+JF7jt7X2Vry3tBPwa1ZqiPsaoEOjZk0Pyrwl/3eLlhFjjz44XlO4y45hLPeYC/zZM9SRa/buJnXog6rDP7v06f57GtzX8GuK4FxDmpLlHmoRFebeUmHop7l8sr0cOUOF3PBZ1z2txu+hYGk4e9E5RYtdteSQ0dgK5bryc2OLd/bO0jbzLe1fe6ifkhddQUCZUs0tDrRCca4pt5cWiddUsU0SVxP402CxYdK59F1/qKF4zZ72UCaTSAy4eMudN37yLp4tOsVOni4VGBv28Bkq+8gKYS2jNeBcc4wvAV6hwnbFeGcdR63geM22dt1sBkdNwowU7VoYGDYfKKkAlC+sE+SaQstqr0jg91CxaGUBseFMN6dFFGESSsH1hul8I3RXCkOjJlS6msjGuq6p9+AZ6pZ07NC+xqdcw6LmYkNnwBWKsOHNr/DJuwldK/KxpqfTMrobju6Gfs3IGSqP3gu77M6gKcHa5g1eo1EzVN2F0Z03eV/qu54t5+M18Zbe8EiUb5WPw9c+higBRLAxYHWA7aZ+zXiUj0mfxs0h0lKVY5H3UKHuvLmvISd4NJeP9YZ909koFMpX8BorHBvbMyAeHzURzeUjbLhIFuoyWGIn7/1KiAQ2XvpEXtY6SUIZ/YGtC4ka78F9zV5PYxdDckeUbOAzFGmbR/zkzOFq7AAAExxJREFUHao5iq0lW6NzjYP3NX4vO+9FzpiJfKSxO++jr9kmiJoQ1mr6tlhq/DoE0PH8Glf7GtCgsK9ZzZGts5qKANYbvsU2Hwll5Tys5XjD2Qk0Ja7QABxsXoYV4eHTDNVwA2B7qH1Fc/m8S32NabhYGr9RKJ4tQLzm4hIEqml7qciCGO8qFmIl7QLJsf5d2OoUQhq6UVibvkahuuGEGS18vcGkNQWmVG+b34OLaKZE2UMdoaKSECieX5NpqeCdd+ZUH8PTwtfMJvGQkCjfXilryDRcsPvMiv2oKDG8Gw6tLh+KX+NSY0OUWLVY3l6CSSSUazbv+3feI1G+DEpom7TDDFraR/SG+fdCc/nqxa6RizG4EokPE0ze3heeI9le2gcdDM/ONbtzq4P3NaG5UWAVUKPBao4bby8n6GvkUcsaSvMRXXpa6J23h/c1u69rKOv6E9R4vCa0FoZgfg3PuIpamgWvDlBJCsDby8yvYZBGJwIo/GLXb2uAc/mIXyPKCWwxwcSajo7YcAfD4Hb8jUI17zIqeewaGqQUdA8Vg5uAX1N0qllTQuspmBK5cFpg8S4eVaZM23AvOtIbDpcJcs2eotaK3vAM6gAh9oVjh1eoq+5B48dL1hsutCyYtA/JQSUtZoLNCZXgERPNlLjpDzV0vPTvVFmUQ1tnca7B3yhk4hFZIFGu4dKN74ZXuWAD55qit5EJWWjYnHNNwLOyQmK8k+IRa5t34Zo4PtfkEqWAfc01nEYkUI1VjuW+Zu1KkQzuhhNeo/Wr6PL14Or/x74mxOjb34KofBYMSqS+ZoJuOH8Z9rx0aV6w4BkqVSjkDEWnfHujB63mcEu9qlAG29dY9lEgjgT9F3gPxbkmou+hfP02yU22b2P47tO8DOhr4DvvynPUrABaMjB6hvJwHwXXMgrZE1Q/sL18Or2vmeAeakvagFqpNzLo4zf1YeUSRz4ozjWh7qEUGpSQQiCT5X1dvpezc00zKqDuoXwGqElFTMt3mcJVLOA9W9YcM68cMzof0X2ahn9/OvPTUK7prrwH77xj4YDSPsEmuY0JXMXQunzZ6Zzka0xWNlf3by9fXs7NNdsEKN/mrndhgklAWz65h4poXT4f9ySPyquWZE1i7t5DnZlrPN1eXmuRgHjD1/mOqvfygGTh09lRU9tQIG+4tZgwbnnE6ef5/FwzwRVd2oUd3XAjTv2AZ8vLeVHD3wXusVv0a+gpLcKTsGgfBbmiq1CsRqF8pRtW8rbVAw6GT6e2fKKIj+cNF3foV0OTgn4QNn/+13m5hhXxPVyl2vtrqqV19pEV3cupUXO8ph1/e1kqFK/orC3CCcg9FOkNw1E+nytUkkZNkITWd6Gsl6fToob1his2bGAVqnSdWlGJso+dpT5/ObGvmcOzJWZbMa2laGflWA0bFMTpJ8A1JfL5hmhlaW0eOjD8kv45p6955w+Fi5qKmyfhow6/ptsNP50ZNXsunAbeDStteAWlxFzs8274C/+ciPIdUbP2PXbHVqgSMlp6cou2s6F7qBm0smJVWGP8036A8bu55vm0GsW5xk/AlPDZmlmzqA8LgD60UXg5q7NJesNVK0uBu2HjXo/3xG/JPNANP5/5oHYfZlBzDFVVwvIP0/AVPtfAtbL2xMNnQfw0eCv1CF5zXoWSvgZ/e9nErZVm2MgL15/PUC+0cHk5Lde0ZHNU8fa79HzcDd/Q2rj9oJ7PyTU0Q4U4wQzlymkLTdxdrayb2PDTKbnGh9YfCsjlK4xhZpAQEHoXAD01DYvvZYRrSgTnE29YWeEBPMSUePrpvoHv/xY1K55fs1Weua0In3nILOD5jHTDni2XKTQlklegTT4K5Ll2lwH6JGFzSpHKCmsT8Gv4QZmsN6yTzSMUGyaoJKJvFIKvw6UoH9kZLnZ97LDVxgtdNnrDVmSyHhovn89qbtizJfTB4aFRE9Y6yNGT0hkcVnex4adzOhueoVbnPNofag/lznspAaygivjUoIfWzxumXxMrI2sRM5uHFdbOm6GqLh/usiUfGB5h88ZKoMSXwCri78eD6rc1w3nDPjfk5oagxL1P8/TnR41LD+qdWMHYbnitpCySruGYwZ7AE16zTYANp0MJ7vJY2Nwt9kcU8V/Kvz//+fG+JkY0vyafKBzxogqBBOy+cTToE+gN+72QfHjdotUEKtVHGsb7Xu7lhIQrFD8oA17REV6zlhkKqMt3KYqFjqlHff+NsVHTeNEhbxRcHqKEaS6+oFBF/MuleJ29f1FDo2ar2LDMUNbgvejYpA/te+njupbtZRYYUnC85qhR+BlqC81hauFT4/WG4xS5pugmsFJ1Mr+00Bkq1o0CzM4mC6xxk3dDTwITNfgbhVAGOZqhFD0oZRzaH+pKOBbWDeeOXOVCqXsqoKO7YSeAAHiGyl+GsGGrnXMz+HmH/qQwdvL2vnjREV5DZ7vobpg9W/YJuHyxRfmMSKwZdF8zg8Kab7ph0sqy7gew4RMrlDiVWij1KJ3AW8aECRzWolqIzTVbmMcFXjEccRMcHl6hJvCiK6tlvfCIoDRx+QwSG+Y91D4Byudd83WEPWLx3XDmbyDvoWhcSUd0pUK5CfqaC/6ypWW805s6XhNRSdDd8Ax6w7FctnCF0swm0Q49QxXvLGDxzj4KljdQtsp3g7th712Ee9G5wq8R7ojtECWgO2+Fx4Y11+2ll/7Gd8Orw+eapEMqsnPs9WOdA/NriAEaIpg3XLh8IlYoo5Qx7i9smPg1ZVB4dYr1a5zDdsP71WULsBt2abxkU7GusDkG5VvRe6i2FrC9BDnRKQXva/zq4Be7vtZuIqvZ7sYbMEPFgNbKCtHnCpW2lrYH1+CwYahybF6FvfHJT+LiY5kSNEPtaH5NaGUtlJ5k5+1vBM3oXJMODI94Mdb1lc3Hd8NrwGtl7VtzylyMvD9I4w+fodyld5g1NGpq5GrGJbr6aojJG168iciSNEDTr2DhKN+2VbxGzQCbWz6BX/gTaQ1WxOeOIqJVj5onlSvTBH7eLuLvodKKjqTnFIeLcPkUeIYKzTEzijfs20sxtgWFr+g2ScPoXFMEu5jEtwg0DHdm9jdufkbza1Ky0Y7sbI6vs8CNSYg3nIFZ5YA+CvkvaJH1pexazCS8YSzKV2H7JbEdHf7OOyamhELeKGRhPqNfKQcvfOqt0d2wn4DmmJ3ojUTOHFw+YmWFnvD70KjZQtYAXdhSTNSqJ+DyJUHbCW4Ujj9vkox1z0hhPF6DV8Tf0okC6camCcoa/Eah9YeCRU35NpkFYB24QjE2XDRADeweqoryLSw+18ckAJM33B+KOLol3SlB+tRyVwP09FzT/r9RsHlpO49EY90NIebR3XDYWc8RnGuuIvfog41w1ZC3l3RE590ErmJZOJZVWpYEEuMnb7zesI/v5v++0c9wvOYKfYT1NSl4F/NG8nPOpOMN6PayCRqL4g0f02UTNQLxWTQAuq9+hm44z5fJbU1rpRxe2zzuE/hDXV+QLMmPSYP3UEeLPoOaYyh9DdmBpm4Y7QJ/5ODgsH7eIfomchkwZ2gCeed92cPlyrQFdXvp6oGhKUCWxXbD5CMTJ+DX5BsFeVV05w2evI++pnGBxzElfIGylmwIauEeuz6seP2aehursk+q6RFkh36aIw+H1eMrVJq8DeeaN1lHfTT7Gfhpfk5RA+cNx/16raH6Z3QDP80vcudd6QBopx9ONYbQrAWsX/OLbBQ8PNfE1PLpzJzT6D3UV8aGPd7B0Bfp2OWNpS773KORn2aS28v3Eq1s6v2AFPOJf37lPRReUyL4BEqQuNqSOpoFypT4u9x5J38opLZ5zKrHViR9FBrl+40YoGsTzShR3VClAd9YDcpZ56AV6p9JAxTvDxVzlZRVFLG7sfdQG2HDM+A1R9SElGBEiESnQQHWDX+7VEtQsH5N9qIzWSXVQOkAxwjFGqBhor4m7S8tGOX7+fu3rW5aLJB6VLSy3Gu2lsDiNV833sPPkWt846NAsoVY3vCv9J785la8Ll9WlMzuGxp82fKPy3c6Zp7CLbW9iJIUrJlPAuqG/9joDim0O28Nm6F80eUzS//ycmDUfDkKFLulVmwYphzrk4+CUMyt8I9wueZv37dv1ZkZrF8TysL7iBetLRav+XoEDbV8rbY5eIaSxnO5oYc37tP89u/tm8A1eG3zffXFv5BM14wp7lmIT/ONcg15is3AG24QIysbb+CDOlINRY1LPYV9hzmOjZrakxulZMsCnKG+bpxrtkrmM0B+jTyoRWgS5HqpgXjNH//5fiF+zRE2Ho4NV+n5t5JfLCpqaOy+/Le5a8mN3Aai6F44QPsG8SL7GIhvZaA5QHqfU3gbHkCAaEC9lwDxPmqAPAABMvUhJfVYs0qL5TFmFrMa1JQe33v1w64sZ+Q3x5abLTxdg00Buv26BrQWG/4jEta4/hvwGkjd5YWCH3MuSxwkXqiDHVx0dEfhjlNI7Tbvv9Q0xBrW3kKMHl8oeLs7+Zr3asz7XaMtocU01DFB1rCGWm1Ya+SUNxsjTb7/rjeqP7VCcw3B+SFrKPEZhX7RUO84Wti0bStF+V6TtXZkDbXwGi3p8pV/QlvaP43IccdTSsHhD29YW/yaRqwONZUdoIi+ShHWCGxYO9oUbPLjz36NfHMsXZbIIkFLKO9rCikM44w1k/i+4X4q81DvusF1G+2mYfOxP9AkgJoUwnjv10i2ORrT37ErvTVHtzsbBqCJCajw6Hzxa7b2mVXFGpObSFTDh855zltXfrwBaACE4TeiMPk1qwvsSgux4dzY3XKpUM3/lKov1CXhL4BgjIybrWFhXnMrHxTeoss312oP/bxQZDBz/AA4jH6N+RZ9w0tXrKb1atVv0T1RZHzC1yk69mtuphf3a/LpGBDe53xvTZm611IPlkIDOIxZM1B/jTObBn5ll29JXVxGok31y8wXjksEMuwCcj50A26dEb7ZsnjDZ7zZ0vI2x6pCgYEGXyhIG2LDrhySEa8orGwJ1bZmE2w+9gSaGCN9Th5fKKxe4pTWNInXobiRpSHLPCsFVZHXFKApLxTXoaZOvlMC22u6dRlKb57f2I8NX9KMwQF9YU/Vy267oFB7E8m8fK5R1DdcdQcoAI23IaRMhhORYfRryiVZlr1Sm0jmpVR5CIqt4Sq2+TEhzGDOWIQcwJlw5/LJ7q8p2wEa2tyt8vBlHV5TgMbmP22kx/t73NjtyxQdradWxlS9YPgGYttz3pDwDpbfbqwoLGRY6iTo5IbChv+lzNG62pm+Z8oXCyiThbd1Ab8orENtD6bWxhqzLmtos/lEfewDNPl58kxrPMTID251LVV4V9ZUlrRopfCSgmK/Znc2fLgm+JhiiGlhNgPXvPvb8C14zeeqEMbLa3QVU+IVkoVYHuknfKBAKoSQscZ8zsZjK6uhmmUEvq1TvTxlqW2J0FDqBOvRACXpLd9tjhqq3M7SvOJcb3zjj2fDR3iokw+e44O/vU8AwtyV1fXyN3aXXVl4UCzH5VyhDnWliHDKhExsIINGz1hjbt9iV1apn6pftB3tEZrXFDyzGe8LrQGsGfwwEtb0q2spWipryjjAuWlwLrXRebJlV6FwQjozwk+pJBRWTLSG1qNKY81vfXffhqrZrtm5lw+ABj8mAJfkR0gWTygMvGbwo89YI70r67krBQX0ayBxtodSHx2aC4IMwvAqY4gNQ9YUrBH3hqdZepM+wAMcSu+9pOUFdGRmMpg3bAxD8oRApRbOmn6Zh9JCWfPZ5xtVtLBQa7Ym9lTeT4kw2FufWU3MgGNZeeNu889OejvAaW6vadbmvd7TNj/YABGxIyVMpJeJ2TByvnHmNdJY89JNQ5a4Go8gKUVXbXbFGgQaIHszzFimfGiAWi7sIta4r92XdUPzO1Y1cuKUs8Ptl5VHD2XDADTBgaYEnjfC9+N9Vgn8VY3o9DGvEZ69/Gso/z04i9rCC5Vn6HarKDxhckCqxCVbsmeTrOesYayR7jb/c1o63pt8pm9rz+XDQnOwDkHYIrBAwtgY4+r1RpePevlMb6R7+f7GZZs9N7EozdK72bOwe4kgk+xcRcCMCdiNRZGBv811KDeJX0v9Z1pGFHi/ZdNsXnd8UGie4auhpxsCAyob8oYkVLGHQXl7nofqmPMJ7q/phvkQE1ufimFnJ+V9xLr2gAI7h4QgxrL6RpKTRsYatyp6K5HQHEhAlfMbfAdenfdT3lcHgaGs8Si5geItSgFiFZ1DRjwy45Ptrzn21ObDNp/CnmrOl512SrxhJOCTwayxcZFO5aXyJWu6flrRYZFevqPrl/YabCKhdgCt9lHep5gga/Ar8twzEojWeMwgYjWUNVzz7qR7+U549I0BT2FAslmzj/I+Wu8gRxx5e450d5ozptg27PJ1NGEo+kI9z+uF6MDPctzx5zLdI9jwFd6hwQ4WqwYYkRH7amKci1HwQDlPynvo53JzK1Wie8Vnsl+5WMiFldpolvj/ofkRPAmnQCYW+ljZ+8QWc654Q+ZgmyNijfnF5tj/AJn5Im5LIAsCAAAAAElFTkSuQmCC"
  82. /***/ }),
  83. /***/ 111:
  84. /*!**************************************************!*\
  85. !*** D:/AAA_Company/红沙湾管理端/static/mine/head.png ***!
  86. \**************************************************/
  87. /*! no static exports found */
  88. /***/ (function(module, exports) {
  89. module.exports = "data:image/png;base64,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"
  90. /***/ }),
  91. /***/ 112:
  92. /*!*********************************************************!*\
  93. !*** D:/AAA_Company/红沙湾管理端/static/mine/versionicon.png ***!
  94. \*********************************************************/
  95. /*! no static exports found */
  96. /***/ (function(module, exports) {
  97. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABVBJREFUWEftWd9rHFUU/s7sJtmHtrTa7EyTWaiYgmCEFhQrVnTNpD9QHwqtTWgKCoopKiIIrX+BLRREVFpRUGilUSsNNNI2mbhKI1YU2oeIBSMWdpLOJNqGmkI2uzNH7syu3d1kd2Z2t0Kg85adc+/55tzvfOeeE8Iye2iZ4cVdwHf6xOqOcDw+en8TWCPCFoA7CaSAoLjAGSaDTYDGmTGWBenT011/1PNRNQJORdW4vYcl7pdAW8IAcMBjzPTBlBX5GkjmwqwVtqEBt8vDXQQ6RkQdZc7mAR53mCYkwrx45zBiEnEHQJ0AYsX2DL7CzK9NWltHw4AOATgVSyi5dwHqLzhgxhyAARB/bpjRi0DSBbr4ScVUJbcZTHuJ0FcKno+lzeibldeW7hYIcGvrN0qL1HyaiDa71GTkADoyl7l5eHZ252yYCK1efXr1ipZVBwB+iwhRbz++mHEWds7MPGP67eUL2AUbaU4R6IH85uNZOL2WtW3cb/Nq72X5fGcTpJNELl0gKJKxF5J+oH0AuzS4ANDD+cgOZpzr+2ZmnhdUqPtpbf1yRYt0z0kiPFuItGFFk9XoURVwQhk5WuAsMwYNK7LbP7NTsXXx3JMCwLXp6Pf+3ExFVdk+XQANCE53768UjYqAhRpIJOkFGmScG4/5RVZRzq5vQlMKwPq8w6tZZJOmueNqtePwIr3mxwI9HHa0SupRAbD46txvQrpEgmVhbwrCWVXRvyJgV6l84ZRharv9+ONxOnJJJKLgs2FGH1rqNJcErMb1vSThhBddOmRYXW/7ORTvE4r+Z1F0C0uupk3tviDrVXn0HSI+KGxtRs+UpX1Rvm5JwAlFvwBgi9DZucw/iaDSpSr6WQK2l0X4nGFqO4IAFpK3MrbyWl6nx9Km9oQv4NbWcx2xSPT3vCp8Yljay0GcCRv3WCmSImCtJ1X4K8t2MgidCj5UWf+YCC+Jv+ft3IaZme0Txf4XRbg9rr8iSTiW18akYXZ/FxSwsGtbeWYtxVpcmbqVvTUY9HT+A6yMPEUgkbhwHPRPTmsfVQWsyvrxfPmcT5uRNf6yFOZzgtgK7bdvCFow44Rhaft8AI9cIqKNAP+SNrsfCeKi2MYtvbFVb4jf5uZvvhc2wl7yjvwsihUzXzas7k1VASdk/Zq4zzqMgUlL6w0LWJX1M7crF4YMS3su7B7tsn5SIvSI+3Ta0tZVB6zonDf4LG1qL4Z1ViZtgSWt2E9C0T8F8IL4LW1qJXm2KOkSyw5wnZRoRIRDUUKV60u6RgAOlXT1ylr9gEPKWnt8uF+SpKO1Fo56AaslhcPZPzm91S1ihWdR0tVTmj0NLbkAhVaJ0KU577Smy0+9gGu6/Ainany4jyTpuEuLENfLegGXXi/t3ilr20B5HQh0gc+RtNE0n/41SBEppgQzTxhW94Yg6xTl2wej7Fyu6QIvHLTJuhYhjHhR5vEgLZJ7OsroAQIf8pKWDhpm12E/wOUtks3onrI0tz0LGGHPrKwJHTKsyE7/JhRou/e8OxKY+nvbFT+wQIOaUM9RKqbKuVTRAGUo41zv9WtG/UF6Fg1v871NFw9SchTpCcrpSuA9ztoDDR6kFCKx1KiKj8xl5mocVa04ANCdGVXdjtDiYaBou0RXAHJOGGbTT9WHgdlHwVLf/zIMLD5WoR4S8fuFWVvRu3kGj3PZuJWIO6jCuNVher2SGlSiku8wcOmFqWibvLArQpFXxTggaJLl7cZstj+csppPBVGcULIWBIi4ezSTpBFJj1f/l4HzwwI7ennbHsRHsU2NEQ7rpnH2dwE3LpZL77TsIvwvQyHlS9/f8ZQAAAAASUVORK5CYII="
  98. /***/ }),
  99. /***/ 113:
  100. /*!**********************************************************!*\
  101. !*** D:/AAA_Company/红沙湾管理端/static/mine/editpassword.png ***!
  102. \**********************************************************/
  103. /*! no static exports found */
  104. /***/ (function(module, exports) {
  105. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA/BJREFUWEftmE9oHGUYxp/3m80m8Q/UJJsZsxMQbKGCl0APETw0ZJIaqwdBhELFFhU8KBbsIVKlCoUq6qGHnixY0YOot9TSZHdZoYIBPQgWKhhIYGdkJtPGHgrdNbPzlplxcbPu7ny72e0azFz2sO/3vr/v+f7M+wxhhz20w3jx/wROpb5+oJ8eOgSBSTDtBWFPsHLMsAFaAfnLlp3IAVPF7a7othQeHc09miSeJ8JRAAPNYJhxm8AXSkwfrK8bTrvgbQLnB8ZV7yyDXidCoro4AyaYbxDBY5BGgF4DV4SPdwrryjlgymsVvGXgVOo7bUBJLgB0oFKMGctg/3yJN7Oue9iuhhh7cGFEDPY/BSFeJuBg1ZhLJX/jiOu+cLsV6JaAA9h+JZkn0P6/i6yVGa/+4RhZmaJjatZQCJ8CeCSK5x+K5T/nWoFuATif0FXvKhFNtlssGBceUDG0QBSp7TO+shzjiMyEgxhp4LSaOyWIz0TCIFv0N55rRZmtQPmBcc3LAPRkCF3GMcs1PpeBlgKO9m3/angTMOyiX5qo3asyxf61t+8fvE7ACIN/M+2Zx2RySAHrauYsEc1HavjHLXf2okzyuJj0yOIzIqF8w0wXTGf6jbh46S2ha9lCeD0x1gqOsq+d60gGRiYmVuGx4cX9Sp9yPTogdMZypt+VSdytmFjgh0eWDiQS4qcImJ+wnJnlbsHI5I0FDpKkU4vPB7+We+hbmaTdjIkFHh7OpQf7aG83ISq572zyys2b01azWk2BdTX7JoCPa/uFbsEzI+gtTpqOca5RjYbAQ0OX9fv6kqv3CrYCGECX/NJ4o3u+IbCuZQ4SKB8l4p/L7H8iSGxpbDqltM++ppB4q9JQMXjKtGe+r5dfCph9/0VzffbLTgHWy5PWlo4JiM9CebYN3CRBpybRU+DQiQjSZU59ZcI9A9a1zEcEOhkuLcMjwomCbZyPW4meAKe1zGEBulQNF0B7pc199q25tWbQPQHWtdxpAr9XCyZzaHsDrC69QiQCC7Tl8cv+hOXO/vKfUxgI3fRV0D8GVdYC9UThSMEAurwKgsbAFdNWnpXpn3sIDIxr2cBOBc74YsE2jsfdEMH/u8CN3u311NPVzO9EYUu6MxROa9mXiPGaV+a37Rv1m5jaifZ0S8js2e4ClzFnusaVdkBkx+ijS0dJiC861K3RvGlPfyhbvJ246i9LbbWXaTUzKYh+rDQxAF8D0a12YGLHMO8B6PGKu2nmzpt4unxC17xfq75UxtbtRAAzXzOdxESjl01TE5oeuqxTX/I0CPfENYOxwpt/vW9tPG02mnysze+Eap3MsQvcSTXr5dpVuNsK3wXVCjlLaPN+NwAAAABJRU5ErkJggg=="
  106. /***/ }),
  107. /***/ 114:
  108. /*!********************************************************!*\
  109. !*** D:/AAA_Company/红沙湾管理端/static/mine/youjiantou.png ***!
  110. \********************************************************/
  111. /*! no static exports found */
  112. /***/ (function(module, exports) {
  113. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAgFJREFUWEft189qE1EUx/FzklyDmCgkryEkkHtDxGg6glAq7dMoLipuxAqib+I/XGgHi7MJIeTeZFcspStREZ8ggWSOXIlQBt10zhlauLOf4TO/+cLMIFywAy+YFwJY+omFhcPCmQVCEiEJ7iSSJKlEUbSUXvbv9XM1PBqNLiul3iPiZ631syLQucDOuQgAYgBQiLjb6XT2pNG5wB43m8120jR95dEA8ERr/VgSnRvscdPpdJuIXns0Ee0ZY3al0CzgItFsYI92zt0DgDcAcElqaVawR1trtxDx7Rr93BjzkDMPdrA0WgR8Cu3zqBIR29JiYI+eTCabpVLpnUcDwAut9YO8eYiC/4F+qbW+nwctDs6iieiRMebpWdGFgJ1z14hoiIjX/atca715bsHj8fhquVz+hIhdADhUSt1ptVq/ziWYG+tvUiyJ4XBYr1arB+tlj5RSgzzLsnwP/++xrrExIt4AgKM0TaNut/vzrBmcPo99YUksexJJktTq9fo+ANwkomMiGnAty56Ex9ZqtX1E/INdLBZRv9//wZEBexJFYVmSiOP4SrPZ/AgAtwDgZD6fDySWZUnCYxuNxgdEvO2xlUplo91uf+fOgC0Ja+0GIvq/5q/L5TLq9XrfJLEsSVhr765Wqy9FYFnA0otmr8/+4pC+gQAOC2cWCEmEJDIL/AZuWc4tuG4XogAAAABJRU5ErkJggg=="
  114. /***/ }),
  115. /***/ 115:
  116. /*!*****************************************************!*\
  117. !*** D:/AAA_Company/红沙湾管理端/static/mine/outicon.png ***!
  118. \*****************************************************/
  119. /*! no static exports found */
  120. /***/ (function(module, exports) {
  121. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABQpJREFUWEftmXGIFHUUx79vZtUlFM7LvZm7mwUPCgwKDC5CSvC8mdRUMLjSoD/6w/8KukDRoEgpSSjIwNB/wj9MlCQsSu3csfUP/xBUMhQSMjyYubuZ20sFLde7mXnx2905Nr3dmdm9/UO4/WvZmffeZ76/936/92YJj9mHHjNezAG3esVaonAm893C+dLiHcS4Yo8b38/mQ7QEOKua7wDYzwwv+Pd+5+jdjROzBd0SYE09+zGBdwnIKUz1OM664Tng2VJA+JlTuErNxDmsqWd3EPMgA3ttV/9qppWJo3BWyX3JRAMIsNMe14/EXeEEwPlUt+IflghbhHNmvmK7xvONAmuKeZcICyu+9tqu8UEc6JjA+ZTW4R8lCQMlpwzHD/j10YJxvlHg7szQAEnyoRAazPss13g/CjoWsKbkPiOinWVWvu7BW1dvq4qTEsJXd+bMckmSToOglpXGVtvVv6kHHQncrebWS6CfK06Gi/6DFYXCeqee07jAwkfXk0PLpJR8saJ0cZL9F1x3zbVa/iOA8+ms6v8BYCmAoucFK8cmXrkUtWxJgMtKDw1Isny87JfPW46xsiFgTTHfI8I+YRwwfTri9n8UBdvoPtytmEfDgvaZN426xo8zxaqjcD6VVfw/QVgqisxy5R6gr9gy4PZTGs2bf5MIKQbO2Y7elwi4SzF1mZArFxrtsp3+3XFgG1W4ZKeYh4nwlvj+z+Rk9tatV+2HY9ZUWFNznxNomzAo+t7ThcLaG60GrhYJwLuWo38dGzir5i4C1Cu2MdsxnokL24zCQD6VVf27ANIB49iIq7+ZANi8X8+w3gN0KUNbZJKPgnHHcuXOuLkvfE4LxXzNdo3nYgG3tZ1oW5RedLuR/A0DaGpulVf0hp07yXrh6TwuFbreGQtYVU8vnYd5N5sBTpJC1fdmVfMQgLfFb5ajP1JjMxbdYwcshsi03C6SXxzwsZqSRhV92E5TzJ+IsAHAsOXoPbFSopT8ijlWakoYpuXqxmwBRfnRVNMiQANw3nL0R47o2vuwYp4gwiZm3LNdeTHQ50UFa/Z6dSrWWtmawOGoLiAC8IYRxzjZLFCU/f97F3/jiLsm7BKnTWsCt7ef0p4Iz3bGD7arvxYVsNnrmpK7SkTPMjBhO3J2pv27bnupVdJCgHie1Ds2sfpys1C17LsUc7NMOFYudNpnuf0zTh91gUsTgSz9Vt4s+ILtpla2IpfFQbUwvehqpdiKRf9BT60hIXri6DAPSVJ5I2fwF7ZjbJ9tlau2MqHuh5bbv6dWjEjgyjEtVBZTh5i7BmuN9408iBj3QTRYtuVLlpNaUW8VI4GFm84lZ3plWcpPj+Wl/lja01x65NPdHf6BcPXEkDBFUyui3sPFAhbQ6pLcqpRM4hQK3yWcm2Rp6/h4/19JldWUX18E/INEtLwsLBzf8/tG/15zPcpXbGDhqCuTe1mW6Hg4lovenhnfMkv7R8ZX/x4VrKvjzEsSSdvEgRTey8w3Ai/YGAdW2CQCFgaZzEl1gbTgQHXQSkFeJ+AcQNc4YAeSPBFwoEqAyoTlBIjWSxy5058AfHDSv729UHjjXtTDhtcTA4eGWsZcCxmfENAbN9i0qsAvzLx7xDUuJLVtGDgMVCrIFG0GsIFAy2oBiH2cIZnseUfiLv9MvpoGrnZa+m8DbU+RTG3wKQ2Zi1McTLju/BtJxqR6qs8qcNLlbeT+OeBGVEti8x9q9mtLhchgzwAAAABJRU5ErkJggg=="
  122. /***/ }),
  123. /***/ 12:
  124. /*!**************************************************************!*\
  125. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  126. \**************************************************************/
  127. /*! no static exports found */
  128. /***/ (function(module, exports, __webpack_require__) {
  129. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  130. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  131. function toPropertyKey(t) {
  132. var i = toPrimitive(t, "string");
  133. return "symbol" == _typeof(i) ? i : i + "";
  134. }
  135. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  136. /***/ }),
  137. /***/ 13:
  138. /*!*******************************************************!*\
  139. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  140. \*******************************************************/
  141. /*! no static exports found */
  142. /***/ (function(module, exports) {
  143. function _typeof(o) {
  144. "@babel/helpers - typeof";
  145. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  146. return typeof o;
  147. } : function (o) {
  148. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  149. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  150. }
  151. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  152. /***/ }),
  153. /***/ 14:
  154. /*!************************************************************!*\
  155. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  156. \************************************************************/
  157. /*! no static exports found */
  158. /***/ (function(module, exports, __webpack_require__) {
  159. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  160. function toPrimitive(t, r) {
  161. if ("object" != _typeof(t) || !t) return t;
  162. var e = t[Symbol.toPrimitive];
  163. if (void 0 !== e) {
  164. var i = e.call(t, r || "default");
  165. if ("object" != _typeof(i)) return i;
  166. throw new TypeError("@@toPrimitive must return a primitive value.");
  167. }
  168. return ("string" === r ? String : Number)(t);
  169. }
  170. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  171. /***/ }),
  172. /***/ 15:
  173. /*!**********************************************************!*\
  174. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  175. \**********************************************************/
  176. /*! no static exports found */
  177. /***/ (function(module, exports, __webpack_require__) {
  178. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  179. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  180. function _construct(t, e, r) {
  181. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  182. var o = [null];
  183. o.push.apply(o, e);
  184. var p = new (t.bind.apply(t, o))();
  185. return r && setPrototypeOf(p, r.prototype), p;
  186. }
  187. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  188. /***/ }),
  189. /***/ 16:
  190. /*!***************************************************************!*\
  191. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  192. \***************************************************************/
  193. /*! no static exports found */
  194. /***/ (function(module, exports) {
  195. function _setPrototypeOf(o, p) {
  196. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  197. o.__proto__ = p;
  198. return o;
  199. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  200. return _setPrototypeOf(o, p);
  201. }
  202. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  203. /***/ }),
  204. /***/ 17:
  205. /*!*************************************************************************!*\
  206. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  207. \*************************************************************************/
  208. /*! no static exports found */
  209. /***/ (function(module, exports) {
  210. function _isNativeReflectConstruct() {
  211. try {
  212. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  213. } catch (t) {}
  214. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  215. return !!t;
  216. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  217. }
  218. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  219. /***/ }),
  220. /***/ 18:
  221. /*!******************************************************************!*\
  222. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  223. \******************************************************************/
  224. /*! no static exports found */
  225. /***/ (function(module, exports, __webpack_require__) {
  226. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  227. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  228. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  229. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  230. function _toConsumableArray(arr) {
  231. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  232. }
  233. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  234. /***/ }),
  235. /***/ 19:
  236. /*!******************************************************************!*\
  237. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  238. \******************************************************************/
  239. /*! no static exports found */
  240. /***/ (function(module, exports, __webpack_require__) {
  241. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  242. function _arrayWithoutHoles(arr) {
  243. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  244. }
  245. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  246. /***/ }),
  247. /***/ 2:
  248. /*!************************************************************!*\
  249. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  250. \************************************************************/
  251. /*! no static exports found */
  252. /***/ (function(module, exports, __webpack_require__) {
  253. "use strict";
  254. /* WEBPACK VAR INJECTION */(function(wx, global) {
  255. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  256. Object.defineProperty(exports, "__esModule", {
  257. value: true
  258. });
  259. exports.createApp = createApp;
  260. exports.createComponent = createComponent;
  261. exports.createPage = createPage;
  262. exports.createPlugin = createPlugin;
  263. exports.createSubpackageApp = createSubpackageApp;
  264. exports.default = void 0;
  265. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  266. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  267. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  268. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  269. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  270. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  271. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  272. 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; }
  273. 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; }
  274. var realAtob;
  275. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  276. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  277. if (typeof atob !== 'function') {
  278. realAtob = function realAtob(str) {
  279. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  280. if (!b64re.test(str)) {
  281. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  282. }
  283. // Adding the padding if missing, for semplicity
  284. str += '=='.slice(2 - (str.length & 3));
  285. var bitmap;
  286. var result = '';
  287. var r1;
  288. var r2;
  289. var i = 0;
  290. for (; i < str.length;) {
  291. 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++)));
  292. 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);
  293. }
  294. return result;
  295. };
  296. } else {
  297. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  298. realAtob = atob;
  299. }
  300. function b64DecodeUnicode(str) {
  301. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  302. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  303. }).join(''));
  304. }
  305. function getCurrentUserInfo() {
  306. var token = wx.getStorageSync('uni_id_token') || '';
  307. var tokenArr = token.split('.');
  308. if (!token || tokenArr.length !== 3) {
  309. return {
  310. uid: null,
  311. role: [],
  312. permission: [],
  313. tokenExpired: 0
  314. };
  315. }
  316. var userInfo;
  317. try {
  318. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  319. } catch (error) {
  320. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  321. }
  322. userInfo.tokenExpired = userInfo.exp * 1000;
  323. delete userInfo.exp;
  324. delete userInfo.iat;
  325. return userInfo;
  326. }
  327. function uniIdMixin(Vue) {
  328. Vue.prototype.uniIDHasRole = function (roleId) {
  329. var _getCurrentUserInfo = getCurrentUserInfo(),
  330. role = _getCurrentUserInfo.role;
  331. return role.indexOf(roleId) > -1;
  332. };
  333. Vue.prototype.uniIDHasPermission = function (permissionId) {
  334. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  335. permission = _getCurrentUserInfo2.permission;
  336. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  337. };
  338. Vue.prototype.uniIDTokenValid = function () {
  339. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  340. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  341. return tokenExpired > Date.now();
  342. };
  343. }
  344. var _toString = Object.prototype.toString;
  345. var hasOwnProperty = Object.prototype.hasOwnProperty;
  346. function isFn(fn) {
  347. return typeof fn === 'function';
  348. }
  349. function isStr(str) {
  350. return typeof str === 'string';
  351. }
  352. function isObject(obj) {
  353. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  354. }
  355. function isPlainObject(obj) {
  356. return _toString.call(obj) === '[object Object]';
  357. }
  358. function hasOwn(obj, key) {
  359. return hasOwnProperty.call(obj, key);
  360. }
  361. function noop() {}
  362. /**
  363. * Create a cached version of a pure function.
  364. */
  365. function cached(fn) {
  366. var cache = Object.create(null);
  367. return function cachedFn(str) {
  368. var hit = cache[str];
  369. return hit || (cache[str] = fn(str));
  370. };
  371. }
  372. /**
  373. * Camelize a hyphen-delimited string.
  374. */
  375. var camelizeRE = /-(\w)/g;
  376. var camelize = cached(function (str) {
  377. return str.replace(camelizeRE, function (_, c) {
  378. return c ? c.toUpperCase() : '';
  379. });
  380. });
  381. function sortObject(obj) {
  382. var sortObj = {};
  383. if (isPlainObject(obj)) {
  384. Object.keys(obj).sort().forEach(function (key) {
  385. sortObj[key] = obj[key];
  386. });
  387. }
  388. return !Object.keys(sortObj) ? obj : sortObj;
  389. }
  390. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  391. var globalInterceptors = {};
  392. var scopedInterceptors = {};
  393. function mergeHook(parentVal, childVal) {
  394. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  395. return res ? dedupeHooks(res) : res;
  396. }
  397. function dedupeHooks(hooks) {
  398. var res = [];
  399. for (var i = 0; i < hooks.length; i++) {
  400. if (res.indexOf(hooks[i]) === -1) {
  401. res.push(hooks[i]);
  402. }
  403. }
  404. return res;
  405. }
  406. function removeHook(hooks, hook) {
  407. var index = hooks.indexOf(hook);
  408. if (index !== -1) {
  409. hooks.splice(index, 1);
  410. }
  411. }
  412. function mergeInterceptorHook(interceptor, option) {
  413. Object.keys(option).forEach(function (hook) {
  414. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  415. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  416. }
  417. });
  418. }
  419. function removeInterceptorHook(interceptor, option) {
  420. if (!interceptor || !option) {
  421. return;
  422. }
  423. Object.keys(option).forEach(function (hook) {
  424. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  425. removeHook(interceptor[hook], option[hook]);
  426. }
  427. });
  428. }
  429. function addInterceptor(method, option) {
  430. if (typeof method === 'string' && isPlainObject(option)) {
  431. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  432. } else if (isPlainObject(method)) {
  433. mergeInterceptorHook(globalInterceptors, method);
  434. }
  435. }
  436. function removeInterceptor(method, option) {
  437. if (typeof method === 'string') {
  438. if (isPlainObject(option)) {
  439. removeInterceptorHook(scopedInterceptors[method], option);
  440. } else {
  441. delete scopedInterceptors[method];
  442. }
  443. } else if (isPlainObject(method)) {
  444. removeInterceptorHook(globalInterceptors, method);
  445. }
  446. }
  447. function wrapperHook(hook, params) {
  448. return function (data) {
  449. return hook(data, params) || data;
  450. };
  451. }
  452. function isPromise(obj) {
  453. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  454. }
  455. function queue(hooks, data, params) {
  456. var promise = false;
  457. for (var i = 0; i < hooks.length; i++) {
  458. var hook = hooks[i];
  459. if (promise) {
  460. promise = Promise.resolve(wrapperHook(hook, params));
  461. } else {
  462. var res = hook(data, params);
  463. if (isPromise(res)) {
  464. promise = Promise.resolve(res);
  465. }
  466. if (res === false) {
  467. return {
  468. then: function then() {}
  469. };
  470. }
  471. }
  472. }
  473. return promise || {
  474. then: function then(callback) {
  475. return callback(data);
  476. }
  477. };
  478. }
  479. function wrapperOptions(interceptor) {
  480. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  481. ['success', 'fail', 'complete'].forEach(function (name) {
  482. if (Array.isArray(interceptor[name])) {
  483. var oldCallback = options[name];
  484. options[name] = function callbackInterceptor(res) {
  485. queue(interceptor[name], res, options).then(function (res) {
  486. /* eslint-disable no-mixed-operators */
  487. return isFn(oldCallback) && oldCallback(res) || res;
  488. });
  489. };
  490. }
  491. });
  492. return options;
  493. }
  494. function wrapperReturnValue(method, returnValue) {
  495. var returnValueHooks = [];
  496. if (Array.isArray(globalInterceptors.returnValue)) {
  497. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  498. }
  499. var interceptor = scopedInterceptors[method];
  500. if (interceptor && Array.isArray(interceptor.returnValue)) {
  501. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  502. }
  503. returnValueHooks.forEach(function (hook) {
  504. returnValue = hook(returnValue) || returnValue;
  505. });
  506. return returnValue;
  507. }
  508. function getApiInterceptorHooks(method) {
  509. var interceptor = Object.create(null);
  510. Object.keys(globalInterceptors).forEach(function (hook) {
  511. if (hook !== 'returnValue') {
  512. interceptor[hook] = globalInterceptors[hook].slice();
  513. }
  514. });
  515. var scopedInterceptor = scopedInterceptors[method];
  516. if (scopedInterceptor) {
  517. Object.keys(scopedInterceptor).forEach(function (hook) {
  518. if (hook !== 'returnValue') {
  519. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  520. }
  521. });
  522. }
  523. return interceptor;
  524. }
  525. function invokeApi(method, api, options) {
  526. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  527. params[_key - 3] = arguments[_key];
  528. }
  529. var interceptor = getApiInterceptorHooks(method);
  530. if (interceptor && Object.keys(interceptor).length) {
  531. if (Array.isArray(interceptor.invoke)) {
  532. var res = queue(interceptor.invoke, options);
  533. return res.then(function (options) {
  534. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  535. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  536. });
  537. } else {
  538. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  539. }
  540. }
  541. return api.apply(void 0, [options].concat(params));
  542. }
  543. var promiseInterceptor = {
  544. returnValue: function returnValue(res) {
  545. if (!isPromise(res)) {
  546. return res;
  547. }
  548. return new Promise(function (resolve, reject) {
  549. res.then(function (res) {
  550. if (res[0]) {
  551. reject(res[0]);
  552. } else {
  553. resolve(res[1]);
  554. }
  555. });
  556. });
  557. }
  558. };
  559. 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/;
  560. var CONTEXT_API_RE = /^create|Manager$/;
  561. // Context例外情况
  562. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  563. // 同步例外情况
  564. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  565. var CALLBACK_API_RE = /^on|^off/;
  566. function isContextApi(name) {
  567. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  568. }
  569. function isSyncApi(name) {
  570. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  571. }
  572. function isCallbackApi(name) {
  573. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  574. }
  575. function handlePromise(promise) {
  576. return promise.then(function (data) {
  577. return [null, data];
  578. }).catch(function (err) {
  579. return [err];
  580. });
  581. }
  582. function shouldPromise(name) {
  583. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  584. return false;
  585. }
  586. return true;
  587. }
  588. /* eslint-disable no-extend-native */
  589. if (!Promise.prototype.finally) {
  590. Promise.prototype.finally = function (callback) {
  591. var promise = this.constructor;
  592. return this.then(function (value) {
  593. return promise.resolve(callback()).then(function () {
  594. return value;
  595. });
  596. }, function (reason) {
  597. return promise.resolve(callback()).then(function () {
  598. throw reason;
  599. });
  600. });
  601. };
  602. }
  603. function promisify(name, api) {
  604. if (!shouldPromise(name) || !isFn(api)) {
  605. return api;
  606. }
  607. return function promiseApi() {
  608. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  609. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  610. params[_key2 - 1] = arguments[_key2];
  611. }
  612. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  613. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  614. }
  615. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  616. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  617. success: resolve,
  618. fail: reject
  619. })].concat(params));
  620. })));
  621. };
  622. }
  623. var EPS = 1e-4;
  624. var BASE_DEVICE_WIDTH = 750;
  625. var isIOS = false;
  626. var deviceWidth = 0;
  627. var deviceDPR = 0;
  628. function checkDeviceWidth() {
  629. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  630. platform = _wx$getSystemInfoSync.platform,
  631. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  632. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  633. deviceWidth = windowWidth;
  634. deviceDPR = pixelRatio;
  635. isIOS = platform === 'ios';
  636. }
  637. function upx2px(number, newDeviceWidth) {
  638. if (deviceWidth === 0) {
  639. checkDeviceWidth();
  640. }
  641. number = Number(number);
  642. if (number === 0) {
  643. return 0;
  644. }
  645. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  646. if (result < 0) {
  647. result = -result;
  648. }
  649. result = Math.floor(result + EPS);
  650. if (result === 0) {
  651. if (deviceDPR === 1 || !isIOS) {
  652. result = 1;
  653. } else {
  654. result = 0.5;
  655. }
  656. }
  657. return number < 0 ? -result : result;
  658. }
  659. var LOCALE_ZH_HANS = 'zh-Hans';
  660. var LOCALE_ZH_HANT = 'zh-Hant';
  661. var LOCALE_EN = 'en';
  662. var LOCALE_FR = 'fr';
  663. var LOCALE_ES = 'es';
  664. var messages = {};
  665. var locale;
  666. {
  667. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  668. }
  669. function initI18nMessages() {
  670. if (!isEnableLocale()) {
  671. return;
  672. }
  673. var localeKeys = Object.keys(__uniConfig.locales);
  674. if (localeKeys.length) {
  675. localeKeys.forEach(function (locale) {
  676. var curMessages = messages[locale];
  677. var userMessages = __uniConfig.locales[locale];
  678. if (curMessages) {
  679. Object.assign(curMessages, userMessages);
  680. } else {
  681. messages[locale] = userMessages;
  682. }
  683. });
  684. }
  685. }
  686. initI18nMessages();
  687. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  688. var t = i18n.t;
  689. var i18nMixin = i18n.mixin = {
  690. beforeCreate: function beforeCreate() {
  691. var _this = this;
  692. var unwatch = i18n.i18n.watchLocale(function () {
  693. _this.$forceUpdate();
  694. });
  695. this.$once('hook:beforeDestroy', function () {
  696. unwatch();
  697. });
  698. },
  699. methods: {
  700. $$t: function $$t(key, values) {
  701. return t(key, values);
  702. }
  703. }
  704. };
  705. var setLocale = i18n.setLocale;
  706. var getLocale = i18n.getLocale;
  707. function initAppLocale(Vue, appVm, locale) {
  708. var state = Vue.observable({
  709. locale: locale || i18n.getLocale()
  710. });
  711. var localeWatchers = [];
  712. appVm.$watchLocale = function (fn) {
  713. localeWatchers.push(fn);
  714. };
  715. Object.defineProperty(appVm, '$locale', {
  716. get: function get() {
  717. return state.locale;
  718. },
  719. set: function set(v) {
  720. state.locale = v;
  721. localeWatchers.forEach(function (watch) {
  722. return watch(v);
  723. });
  724. }
  725. });
  726. }
  727. function isEnableLocale() {
  728. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  729. }
  730. function include(str, parts) {
  731. return !!parts.find(function (part) {
  732. return str.indexOf(part) !== -1;
  733. });
  734. }
  735. function startsWith(str, parts) {
  736. return parts.find(function (part) {
  737. return str.indexOf(part) === 0;
  738. });
  739. }
  740. function normalizeLocale(locale, messages) {
  741. if (!locale) {
  742. return;
  743. }
  744. locale = locale.trim().replace(/_/g, '-');
  745. if (messages && messages[locale]) {
  746. return locale;
  747. }
  748. locale = locale.toLowerCase();
  749. if (locale === 'chinese') {
  750. // 支付宝
  751. return LOCALE_ZH_HANS;
  752. }
  753. if (locale.indexOf('zh') === 0) {
  754. if (locale.indexOf('-hans') > -1) {
  755. return LOCALE_ZH_HANS;
  756. }
  757. if (locale.indexOf('-hant') > -1) {
  758. return LOCALE_ZH_HANT;
  759. }
  760. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  761. return LOCALE_ZH_HANT;
  762. }
  763. return LOCALE_ZH_HANS;
  764. }
  765. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  766. if (lang) {
  767. return lang;
  768. }
  769. }
  770. // export function initI18n() {
  771. // const localeKeys = Object.keys(__uniConfig.locales || {})
  772. // if (localeKeys.length) {
  773. // localeKeys.forEach((locale) =>
  774. // i18n.add(locale, __uniConfig.locales[locale])
  775. // )
  776. // }
  777. // }
  778. function getLocale$1() {
  779. // 优先使用 $locale
  780. if (isFn(getApp)) {
  781. var app = getApp({
  782. allowDefault: true
  783. });
  784. if (app && app.$vm) {
  785. return app.$vm.$locale;
  786. }
  787. }
  788. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  789. }
  790. function setLocale$1(locale) {
  791. var app = isFn(getApp) ? getApp() : false;
  792. if (!app) {
  793. return false;
  794. }
  795. var oldLocale = app.$vm.$locale;
  796. if (oldLocale !== locale) {
  797. app.$vm.$locale = locale;
  798. onLocaleChangeCallbacks.forEach(function (fn) {
  799. return fn({
  800. locale: locale
  801. });
  802. });
  803. return true;
  804. }
  805. return false;
  806. }
  807. var onLocaleChangeCallbacks = [];
  808. function onLocaleChange(fn) {
  809. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  810. onLocaleChangeCallbacks.push(fn);
  811. }
  812. }
  813. if (typeof global !== 'undefined') {
  814. global.getLocale = getLocale$1;
  815. }
  816. var interceptors = {
  817. promiseInterceptor: promiseInterceptor
  818. };
  819. var baseApi = /*#__PURE__*/Object.freeze({
  820. __proto__: null,
  821. upx2px: upx2px,
  822. getLocale: getLocale$1,
  823. setLocale: setLocale$1,
  824. onLocaleChange: onLocaleChange,
  825. addInterceptor: addInterceptor,
  826. removeInterceptor: removeInterceptor,
  827. interceptors: interceptors
  828. });
  829. function findExistsPageIndex(url) {
  830. var pages = getCurrentPages();
  831. var len = pages.length;
  832. while (len--) {
  833. var page = pages[len];
  834. if (page.$page && page.$page.fullPath === url) {
  835. return len;
  836. }
  837. }
  838. return -1;
  839. }
  840. var redirectTo = {
  841. name: function name(fromArgs) {
  842. if (fromArgs.exists === 'back' && fromArgs.delta) {
  843. return 'navigateBack';
  844. }
  845. return 'redirectTo';
  846. },
  847. args: function args(fromArgs) {
  848. if (fromArgs.exists === 'back' && fromArgs.url) {
  849. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  850. if (existsPageIndex !== -1) {
  851. var delta = getCurrentPages().length - 1 - existsPageIndex;
  852. if (delta > 0) {
  853. fromArgs.delta = delta;
  854. }
  855. }
  856. }
  857. }
  858. };
  859. var previewImage = {
  860. args: function args(fromArgs) {
  861. var currentIndex = parseInt(fromArgs.current);
  862. if (isNaN(currentIndex)) {
  863. return;
  864. }
  865. var urls = fromArgs.urls;
  866. if (!Array.isArray(urls)) {
  867. return;
  868. }
  869. var len = urls.length;
  870. if (!len) {
  871. return;
  872. }
  873. if (currentIndex < 0) {
  874. currentIndex = 0;
  875. } else if (currentIndex >= len) {
  876. currentIndex = len - 1;
  877. }
  878. if (currentIndex > 0) {
  879. fromArgs.current = urls[currentIndex];
  880. fromArgs.urls = urls.filter(function (item, index) {
  881. return index < currentIndex ? item !== urls[currentIndex] : true;
  882. });
  883. } else {
  884. fromArgs.current = urls[0];
  885. }
  886. return {
  887. indicator: false,
  888. loop: false
  889. };
  890. }
  891. };
  892. var UUID_KEY = '__DC_STAT_UUID';
  893. var deviceId;
  894. function useDeviceId(result) {
  895. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  896. if (!deviceId) {
  897. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  898. wx.setStorage({
  899. key: UUID_KEY,
  900. data: deviceId
  901. });
  902. }
  903. result.deviceId = deviceId;
  904. }
  905. function addSafeAreaInsets(result) {
  906. if (result.safeArea) {
  907. var safeArea = result.safeArea;
  908. result.safeAreaInsets = {
  909. top: safeArea.top,
  910. left: safeArea.left,
  911. right: result.windowWidth - safeArea.right,
  912. bottom: result.screenHeight - safeArea.bottom
  913. };
  914. }
  915. }
  916. function populateParameters(result) {
  917. var _result$brand = result.brand,
  918. brand = _result$brand === void 0 ? '' : _result$brand,
  919. _result$model = result.model,
  920. model = _result$model === void 0 ? '' : _result$model,
  921. _result$system = result.system,
  922. system = _result$system === void 0 ? '' : _result$system,
  923. _result$language = result.language,
  924. language = _result$language === void 0 ? '' : _result$language,
  925. theme = result.theme,
  926. version = result.version,
  927. platform = result.platform,
  928. fontSizeSetting = result.fontSizeSetting,
  929. SDKVersion = result.SDKVersion,
  930. pixelRatio = result.pixelRatio,
  931. deviceOrientation = result.deviceOrientation;
  932. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  933. var extraParam = {};
  934. // osName osVersion
  935. var osName = '';
  936. var osVersion = '';
  937. {
  938. osName = system.split(' ')[0] || '';
  939. osVersion = system.split(' ')[1] || '';
  940. }
  941. var hostVersion = version;
  942. // deviceType
  943. var deviceType = getGetDeviceType(result, model);
  944. // deviceModel
  945. var deviceBrand = getDeviceBrand(brand);
  946. // hostName
  947. var _hostName = getHostName(result);
  948. // deviceOrientation
  949. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  950. // devicePixelRatio
  951. var _devicePixelRatio = pixelRatio;
  952. // SDKVersion
  953. var _SDKVersion = SDKVersion;
  954. // hostLanguage
  955. var hostLanguage = language.replace(/_/g, '-');
  956. // wx.getAccountInfoSync
  957. var parameters = {
  958. appId: "__UNI__8C5F0F6",
  959. appName: "红沙湾管理端",
  960. appVersion: "1.0.0",
  961. appVersionCode: "100",
  962. appLanguage: getAppLanguage(hostLanguage),
  963. uniCompileVersion: "4.29",
  964. uniRuntimeVersion: "4.29",
  965. uniPlatform: undefined || "mp-weixin",
  966. deviceBrand: deviceBrand,
  967. deviceModel: model,
  968. deviceType: deviceType,
  969. devicePixelRatio: _devicePixelRatio,
  970. deviceOrientation: _deviceOrientation,
  971. osName: osName.toLocaleLowerCase(),
  972. osVersion: osVersion,
  973. hostTheme: theme,
  974. hostVersion: hostVersion,
  975. hostLanguage: hostLanguage,
  976. hostName: _hostName,
  977. hostSDKVersion: _SDKVersion,
  978. hostFontSizeSetting: fontSizeSetting,
  979. windowTop: 0,
  980. windowBottom: 0,
  981. // TODO
  982. osLanguage: undefined,
  983. osTheme: undefined,
  984. ua: undefined,
  985. hostPackageName: undefined,
  986. browserName: undefined,
  987. browserVersion: undefined
  988. };
  989. Object.assign(result, parameters, extraParam);
  990. }
  991. function getGetDeviceType(result, model) {
  992. var deviceType = result.deviceType || 'phone';
  993. {
  994. var deviceTypeMaps = {
  995. ipad: 'pad',
  996. windows: 'pc',
  997. mac: 'pc'
  998. };
  999. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  1000. var _model = model.toLocaleLowerCase();
  1001. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  1002. var _m = deviceTypeMapsKeys[index];
  1003. if (_model.indexOf(_m) !== -1) {
  1004. deviceType = deviceTypeMaps[_m];
  1005. break;
  1006. }
  1007. }
  1008. }
  1009. return deviceType;
  1010. }
  1011. function getDeviceBrand(brand) {
  1012. var deviceBrand = brand;
  1013. if (deviceBrand) {
  1014. deviceBrand = brand.toLocaleLowerCase();
  1015. }
  1016. return deviceBrand;
  1017. }
  1018. function getAppLanguage(defaultLanguage) {
  1019. return getLocale$1 ? getLocale$1() : defaultLanguage;
  1020. }
  1021. function getHostName(result) {
  1022. var _platform = 'WeChat';
  1023. var _hostName = result.hostName || _platform; // mp-jd
  1024. {
  1025. if (result.environment) {
  1026. _hostName = result.environment;
  1027. } else if (result.host && result.host.env) {
  1028. _hostName = result.host.env;
  1029. }
  1030. }
  1031. return _hostName;
  1032. }
  1033. var getSystemInfo = {
  1034. returnValue: function returnValue(result) {
  1035. useDeviceId(result);
  1036. addSafeAreaInsets(result);
  1037. populateParameters(result);
  1038. }
  1039. };
  1040. var showActionSheet = {
  1041. args: function args(fromArgs) {
  1042. if ((0, _typeof2.default)(fromArgs) === 'object') {
  1043. fromArgs.alertText = fromArgs.title;
  1044. }
  1045. }
  1046. };
  1047. var getAppBaseInfo = {
  1048. returnValue: function returnValue(result) {
  1049. var _result = result,
  1050. version = _result.version,
  1051. language = _result.language,
  1052. SDKVersion = _result.SDKVersion,
  1053. theme = _result.theme;
  1054. var _hostName = getHostName(result);
  1055. var hostLanguage = language.replace('_', '-');
  1056. result = sortObject(Object.assign(result, {
  1057. appId: "__UNI__8C5F0F6",
  1058. appName: "红沙湾管理端",
  1059. appVersion: "1.0.0",
  1060. appVersionCode: "100",
  1061. appLanguage: getAppLanguage(hostLanguage),
  1062. hostVersion: version,
  1063. hostLanguage: hostLanguage,
  1064. hostName: _hostName,
  1065. hostSDKVersion: SDKVersion,
  1066. hostTheme: theme
  1067. }));
  1068. }
  1069. };
  1070. var getDeviceInfo = {
  1071. returnValue: function returnValue(result) {
  1072. var _result2 = result,
  1073. brand = _result2.brand,
  1074. model = _result2.model;
  1075. var deviceType = getGetDeviceType(result, model);
  1076. var deviceBrand = getDeviceBrand(brand);
  1077. useDeviceId(result);
  1078. result = sortObject(Object.assign(result, {
  1079. deviceType: deviceType,
  1080. deviceBrand: deviceBrand,
  1081. deviceModel: model
  1082. }));
  1083. }
  1084. };
  1085. var getWindowInfo = {
  1086. returnValue: function returnValue(result) {
  1087. addSafeAreaInsets(result);
  1088. result = sortObject(Object.assign(result, {
  1089. windowTop: 0,
  1090. windowBottom: 0
  1091. }));
  1092. }
  1093. };
  1094. var getAppAuthorizeSetting = {
  1095. returnValue: function returnValue(result) {
  1096. var locationReducedAccuracy = result.locationReducedAccuracy;
  1097. result.locationAccuracy = 'unsupported';
  1098. if (locationReducedAccuracy === true) {
  1099. result.locationAccuracy = 'reduced';
  1100. } else if (locationReducedAccuracy === false) {
  1101. result.locationAccuracy = 'full';
  1102. }
  1103. }
  1104. };
  1105. // import navigateTo from 'uni-helpers/navigate-to'
  1106. var compressImage = {
  1107. args: function args(fromArgs) {
  1108. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  1109. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  1110. fromArgs.compressHeight = fromArgs.compressedHeight;
  1111. }
  1112. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  1113. fromArgs.compressWidth = fromArgs.compressedWidth;
  1114. }
  1115. }
  1116. };
  1117. var protocols = {
  1118. redirectTo: redirectTo,
  1119. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  1120. previewImage: previewImage,
  1121. getSystemInfo: getSystemInfo,
  1122. getSystemInfoSync: getSystemInfo,
  1123. showActionSheet: showActionSheet,
  1124. getAppBaseInfo: getAppBaseInfo,
  1125. getDeviceInfo: getDeviceInfo,
  1126. getWindowInfo: getWindowInfo,
  1127. getAppAuthorizeSetting: getAppAuthorizeSetting,
  1128. compressImage: compressImage
  1129. };
  1130. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  1131. var canIUses = [];
  1132. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1133. function processCallback(methodName, method, returnValue) {
  1134. return function (res) {
  1135. return method(processReturnValue(methodName, res, returnValue));
  1136. };
  1137. }
  1138. function processArgs(methodName, fromArgs) {
  1139. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1140. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1141. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1142. if (isPlainObject(fromArgs)) {
  1143. // 一般 api 的参数解析
  1144. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1145. if (isFn(argsOption)) {
  1146. argsOption = argsOption(fromArgs, toArgs) || {};
  1147. }
  1148. for (var key in fromArgs) {
  1149. if (hasOwn(argsOption, key)) {
  1150. var keyOption = argsOption[key];
  1151. if (isFn(keyOption)) {
  1152. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1153. }
  1154. if (!keyOption) {
  1155. // 不支持的参数
  1156. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1157. } else if (isStr(keyOption)) {
  1158. // 重写参数 key
  1159. toArgs[keyOption] = fromArgs[key];
  1160. } else if (isPlainObject(keyOption)) {
  1161. // {name:newName,value:value}可重新指定参数 key:value
  1162. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1163. }
  1164. } else if (CALLBACKS.indexOf(key) !== -1) {
  1165. if (isFn(fromArgs[key])) {
  1166. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1167. }
  1168. } else {
  1169. if (!keepFromArgs) {
  1170. toArgs[key] = fromArgs[key];
  1171. }
  1172. }
  1173. }
  1174. return toArgs;
  1175. } else if (isFn(fromArgs)) {
  1176. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1177. }
  1178. return fromArgs;
  1179. }
  1180. function processReturnValue(methodName, res, returnValue) {
  1181. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1182. if (isFn(protocols.returnValue)) {
  1183. // 处理通用 returnValue
  1184. res = protocols.returnValue(methodName, res);
  1185. }
  1186. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1187. }
  1188. function wrapper(methodName, method) {
  1189. if (hasOwn(protocols, methodName)) {
  1190. var protocol = protocols[methodName];
  1191. if (!protocol) {
  1192. // 暂不支持的 api
  1193. return function () {
  1194. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1195. };
  1196. }
  1197. return function (arg1, arg2) {
  1198. // 目前 api 最多两个参数
  1199. var options = protocol;
  1200. if (isFn(protocol)) {
  1201. options = protocol(arg1);
  1202. }
  1203. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1204. var args = [arg1];
  1205. if (typeof arg2 !== 'undefined') {
  1206. args.push(arg2);
  1207. }
  1208. if (isFn(options.name)) {
  1209. methodName = options.name(arg1);
  1210. } else if (isStr(options.name)) {
  1211. methodName = options.name;
  1212. }
  1213. var returnValue = wx[methodName].apply(wx, args);
  1214. if (isSyncApi(methodName)) {
  1215. // 同步 api
  1216. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1217. }
  1218. return returnValue;
  1219. };
  1220. }
  1221. return method;
  1222. }
  1223. var todoApis = Object.create(null);
  1224. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1225. function createTodoApi(name) {
  1226. return function todoApi(_ref) {
  1227. var fail = _ref.fail,
  1228. complete = _ref.complete;
  1229. var res = {
  1230. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1231. };
  1232. isFn(fail) && fail(res);
  1233. isFn(complete) && complete(res);
  1234. };
  1235. }
  1236. TODOS.forEach(function (name) {
  1237. todoApis[name] = createTodoApi(name);
  1238. });
  1239. var providers = {
  1240. oauth: ['weixin'],
  1241. share: ['weixin'],
  1242. payment: ['wxpay'],
  1243. push: ['weixin']
  1244. };
  1245. function getProvider(_ref2) {
  1246. var service = _ref2.service,
  1247. success = _ref2.success,
  1248. fail = _ref2.fail,
  1249. complete = _ref2.complete;
  1250. var res = false;
  1251. if (providers[service]) {
  1252. res = {
  1253. errMsg: 'getProvider:ok',
  1254. service: service,
  1255. provider: providers[service]
  1256. };
  1257. isFn(success) && success(res);
  1258. } else {
  1259. res = {
  1260. errMsg: 'getProvider:fail service not found'
  1261. };
  1262. isFn(fail) && fail(res);
  1263. }
  1264. isFn(complete) && complete(res);
  1265. }
  1266. var extraApi = /*#__PURE__*/Object.freeze({
  1267. __proto__: null,
  1268. getProvider: getProvider
  1269. });
  1270. var getEmitter = function () {
  1271. var Emitter;
  1272. return function getUniEmitter() {
  1273. if (!Emitter) {
  1274. Emitter = new _vue.default();
  1275. }
  1276. return Emitter;
  1277. };
  1278. }();
  1279. function apply(ctx, method, args) {
  1280. return ctx[method].apply(ctx, args);
  1281. }
  1282. function $on() {
  1283. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1284. }
  1285. function $off() {
  1286. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1287. }
  1288. function $once() {
  1289. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1290. }
  1291. function $emit() {
  1292. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1293. }
  1294. var eventApi = /*#__PURE__*/Object.freeze({
  1295. __proto__: null,
  1296. $on: $on,
  1297. $off: $off,
  1298. $once: $once,
  1299. $emit: $emit
  1300. });
  1301. /**
  1302. * 框架内 try-catch
  1303. */
  1304. /**
  1305. * 开发者 try-catch
  1306. */
  1307. function tryCatch(fn) {
  1308. return function () {
  1309. try {
  1310. return fn.apply(fn, arguments);
  1311. } catch (e) {
  1312. // TODO
  1313. console.error(e);
  1314. }
  1315. };
  1316. }
  1317. function getApiCallbacks(params) {
  1318. var apiCallbacks = {};
  1319. for (var name in params) {
  1320. var param = params[name];
  1321. if (isFn(param)) {
  1322. apiCallbacks[name] = tryCatch(param);
  1323. delete params[name];
  1324. }
  1325. }
  1326. return apiCallbacks;
  1327. }
  1328. var cid;
  1329. var cidErrMsg;
  1330. var enabled;
  1331. function normalizePushMessage(message) {
  1332. try {
  1333. return JSON.parse(message);
  1334. } catch (e) {}
  1335. return message;
  1336. }
  1337. function invokePushCallback(args) {
  1338. if (args.type === 'enabled') {
  1339. enabled = true;
  1340. } else if (args.type === 'clientId') {
  1341. cid = args.cid;
  1342. cidErrMsg = args.errMsg;
  1343. invokeGetPushCidCallbacks(cid, args.errMsg);
  1344. } else if (args.type === 'pushMsg') {
  1345. var message = {
  1346. type: 'receive',
  1347. data: normalizePushMessage(args.message)
  1348. };
  1349. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1350. var callback = onPushMessageCallbacks[i];
  1351. callback(message);
  1352. // 该消息已被阻止
  1353. if (message.stopped) {
  1354. break;
  1355. }
  1356. }
  1357. } else if (args.type === 'click') {
  1358. onPushMessageCallbacks.forEach(function (callback) {
  1359. callback({
  1360. type: 'click',
  1361. data: normalizePushMessage(args.message)
  1362. });
  1363. });
  1364. }
  1365. }
  1366. var getPushCidCallbacks = [];
  1367. function invokeGetPushCidCallbacks(cid, errMsg) {
  1368. getPushCidCallbacks.forEach(function (callback) {
  1369. callback(cid, errMsg);
  1370. });
  1371. getPushCidCallbacks.length = 0;
  1372. }
  1373. function getPushClientId(args) {
  1374. if (!isPlainObject(args)) {
  1375. args = {};
  1376. }
  1377. var _getApiCallbacks = getApiCallbacks(args),
  1378. success = _getApiCallbacks.success,
  1379. fail = _getApiCallbacks.fail,
  1380. complete = _getApiCallbacks.complete;
  1381. var hasSuccess = isFn(success);
  1382. var hasFail = isFn(fail);
  1383. var hasComplete = isFn(complete);
  1384. Promise.resolve().then(function () {
  1385. if (typeof enabled === 'undefined') {
  1386. enabled = false;
  1387. cid = '';
  1388. cidErrMsg = 'uniPush is not enabled';
  1389. }
  1390. getPushCidCallbacks.push(function (cid, errMsg) {
  1391. var res;
  1392. if (cid) {
  1393. res = {
  1394. errMsg: 'getPushClientId:ok',
  1395. cid: cid
  1396. };
  1397. hasSuccess && success(res);
  1398. } else {
  1399. res = {
  1400. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1401. };
  1402. hasFail && fail(res);
  1403. }
  1404. hasComplete && complete(res);
  1405. });
  1406. if (typeof cid !== 'undefined') {
  1407. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1408. }
  1409. });
  1410. }
  1411. var onPushMessageCallbacks = [];
  1412. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1413. var onPushMessage = function onPushMessage(fn) {
  1414. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1415. onPushMessageCallbacks.push(fn);
  1416. }
  1417. };
  1418. var offPushMessage = function offPushMessage(fn) {
  1419. if (!fn) {
  1420. onPushMessageCallbacks.length = 0;
  1421. } else {
  1422. var index = onPushMessageCallbacks.indexOf(fn);
  1423. if (index > -1) {
  1424. onPushMessageCallbacks.splice(index, 1);
  1425. }
  1426. }
  1427. };
  1428. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1429. if (!baseInfo) {
  1430. baseInfo = wx.getSystemInfoSync();
  1431. }
  1432. var host = baseInfo ? baseInfo.host : null;
  1433. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1434. var api = /*#__PURE__*/Object.freeze({
  1435. __proto__: null,
  1436. shareVideoMessage: shareVideoMessage,
  1437. getPushClientId: getPushClientId,
  1438. onPushMessage: onPushMessage,
  1439. offPushMessage: offPushMessage,
  1440. invokePushCallback: invokePushCallback
  1441. });
  1442. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1443. function findVmByVueId(vm, vuePid) {
  1444. var $children = vm.$children;
  1445. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1446. for (var i = $children.length - 1; i >= 0; i--) {
  1447. var childVm = $children[i];
  1448. if (childVm.$scope._$vueId === vuePid) {
  1449. return childVm;
  1450. }
  1451. }
  1452. // 反向递归查找
  1453. var parentVm;
  1454. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1455. parentVm = findVmByVueId($children[_i], vuePid);
  1456. if (parentVm) {
  1457. return parentVm;
  1458. }
  1459. }
  1460. }
  1461. function initBehavior(options) {
  1462. return Behavior(options);
  1463. }
  1464. function isPage() {
  1465. return !!this.route;
  1466. }
  1467. function initRelation(detail) {
  1468. this.triggerEvent('__l', detail);
  1469. }
  1470. function selectAllComponents(mpInstance, selector, $refs) {
  1471. var components = mpInstance.selectAllComponents(selector) || [];
  1472. components.forEach(function (component) {
  1473. var ref = component.dataset.ref;
  1474. $refs[ref] = component.$vm || toSkip(component);
  1475. {
  1476. if (component.dataset.vueGeneric === 'scoped') {
  1477. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1478. selectAllComponents(scopedComponent, selector, $refs);
  1479. });
  1480. }
  1481. }
  1482. });
  1483. }
  1484. function syncRefs(refs, newRefs) {
  1485. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1486. var newKeys = Object.keys(newRefs);
  1487. newKeys.forEach(function (key) {
  1488. var oldValue = refs[key];
  1489. var newValue = newRefs[key];
  1490. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1491. return oldValue.includes(value);
  1492. })) {
  1493. return;
  1494. }
  1495. refs[key] = newValue;
  1496. oldKeys.delete(key);
  1497. });
  1498. oldKeys.forEach(function (key) {
  1499. delete refs[key];
  1500. });
  1501. return refs;
  1502. }
  1503. function initRefs(vm) {
  1504. var mpInstance = vm.$scope;
  1505. var refs = {};
  1506. Object.defineProperty(vm, '$refs', {
  1507. get: function get() {
  1508. var $refs = {};
  1509. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1510. // TODO 暂不考虑 for 中的 scoped
  1511. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1512. forComponents.forEach(function (component) {
  1513. var ref = component.dataset.ref;
  1514. if (!$refs[ref]) {
  1515. $refs[ref] = [];
  1516. }
  1517. $refs[ref].push(component.$vm || toSkip(component));
  1518. });
  1519. return syncRefs(refs, $refs);
  1520. }
  1521. });
  1522. }
  1523. function handleLink(event) {
  1524. var _ref3 = event.detail || event.value,
  1525. vuePid = _ref3.vuePid,
  1526. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1527. var parentVm;
  1528. if (vuePid) {
  1529. parentVm = findVmByVueId(this.$vm, vuePid);
  1530. }
  1531. if (!parentVm) {
  1532. parentVm = this.$vm;
  1533. }
  1534. vueOptions.parent = parentVm;
  1535. }
  1536. function markMPComponent(component) {
  1537. // 在 Vue 中标记为小程序组件
  1538. var IS_MP = '__v_isMPComponent';
  1539. Object.defineProperty(component, IS_MP, {
  1540. configurable: true,
  1541. enumerable: false,
  1542. value: true
  1543. });
  1544. return component;
  1545. }
  1546. function toSkip(obj) {
  1547. var OB = '__ob__';
  1548. var SKIP = '__v_skip';
  1549. if (isObject(obj) && Object.isExtensible(obj)) {
  1550. // 避免被 @vue/composition-api 观测
  1551. Object.defineProperty(obj, OB, {
  1552. configurable: true,
  1553. enumerable: false,
  1554. value: (0, _defineProperty2.default)({}, SKIP, true)
  1555. });
  1556. }
  1557. return obj;
  1558. }
  1559. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1560. function initWorkletMethods(mpMethods, vueMethods) {
  1561. if (vueMethods) {
  1562. Object.keys(vueMethods).forEach(function (name) {
  1563. var matches = name.match(WORKLET_RE);
  1564. if (matches) {
  1565. var workletName = matches[1];
  1566. mpMethods[name] = vueMethods[name];
  1567. mpMethods[workletName] = vueMethods[workletName];
  1568. }
  1569. });
  1570. }
  1571. }
  1572. var MPPage = Page;
  1573. var MPComponent = Component;
  1574. var customizeRE = /:/g;
  1575. var customize = cached(function (str) {
  1576. return camelize(str.replace(customizeRE, '-'));
  1577. });
  1578. function initTriggerEvent(mpInstance) {
  1579. var oldTriggerEvent = mpInstance.triggerEvent;
  1580. var newTriggerEvent = function newTriggerEvent(event) {
  1581. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1582. args[_key3 - 1] = arguments[_key3];
  1583. }
  1584. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1585. if (this.$vm || this.dataset && this.dataset.comType) {
  1586. event = customize(event);
  1587. } else {
  1588. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1589. var newEvent = customize(event);
  1590. if (newEvent !== event) {
  1591. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1592. }
  1593. }
  1594. return oldTriggerEvent.apply(this, [event].concat(args));
  1595. };
  1596. try {
  1597. // 京东小程序 triggerEvent 为只读
  1598. mpInstance.triggerEvent = newTriggerEvent;
  1599. } catch (error) {
  1600. mpInstance._triggerEvent = newTriggerEvent;
  1601. }
  1602. }
  1603. function initHook(name, options, isComponent) {
  1604. var oldHook = options[name];
  1605. options[name] = function () {
  1606. markMPComponent(this);
  1607. initTriggerEvent(this);
  1608. if (oldHook) {
  1609. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1610. args[_key4] = arguments[_key4];
  1611. }
  1612. return oldHook.apply(this, args);
  1613. }
  1614. };
  1615. }
  1616. if (!MPPage.__$wrappered) {
  1617. MPPage.__$wrappered = true;
  1618. Page = function Page() {
  1619. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1620. initHook('onLoad', options);
  1621. return MPPage(options);
  1622. };
  1623. Page.after = MPPage.after;
  1624. Component = function Component() {
  1625. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1626. initHook('created', options);
  1627. return MPComponent(options);
  1628. };
  1629. }
  1630. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1631. function initMocks(vm, mocks) {
  1632. var mpInstance = vm.$mp[vm.mpType];
  1633. mocks.forEach(function (mock) {
  1634. if (hasOwn(mpInstance, mock)) {
  1635. vm[mock] = mpInstance[mock];
  1636. }
  1637. });
  1638. }
  1639. function hasHook(hook, vueOptions) {
  1640. if (!vueOptions) {
  1641. return true;
  1642. }
  1643. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1644. return true;
  1645. }
  1646. vueOptions = vueOptions.default || vueOptions;
  1647. if (isFn(vueOptions)) {
  1648. if (isFn(vueOptions.extendOptions[hook])) {
  1649. return true;
  1650. }
  1651. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1652. return true;
  1653. }
  1654. return false;
  1655. }
  1656. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1657. return true;
  1658. }
  1659. var mixins = vueOptions.mixins;
  1660. if (Array.isArray(mixins)) {
  1661. return !!mixins.find(function (mixin) {
  1662. return hasHook(hook, mixin);
  1663. });
  1664. }
  1665. }
  1666. function initHooks(mpOptions, hooks, vueOptions) {
  1667. hooks.forEach(function (hook) {
  1668. if (hasHook(hook, vueOptions)) {
  1669. mpOptions[hook] = function (args) {
  1670. return this.$vm && this.$vm.__call_hook(hook, args);
  1671. };
  1672. }
  1673. });
  1674. }
  1675. function initUnknownHooks(mpOptions, vueOptions) {
  1676. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1677. findHooks(vueOptions).forEach(function (hook) {
  1678. return initHook$1(mpOptions, hook, excludes);
  1679. });
  1680. }
  1681. function findHooks(vueOptions) {
  1682. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1683. if (vueOptions) {
  1684. Object.keys(vueOptions).forEach(function (name) {
  1685. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1686. hooks.push(name);
  1687. }
  1688. });
  1689. }
  1690. return hooks;
  1691. }
  1692. function initHook$1(mpOptions, hook, excludes) {
  1693. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1694. mpOptions[hook] = function (args) {
  1695. return this.$vm && this.$vm.__call_hook(hook, args);
  1696. };
  1697. }
  1698. }
  1699. function initVueComponent(Vue, vueOptions) {
  1700. vueOptions = vueOptions.default || vueOptions;
  1701. var VueComponent;
  1702. if (isFn(vueOptions)) {
  1703. VueComponent = vueOptions;
  1704. } else {
  1705. VueComponent = Vue.extend(vueOptions);
  1706. }
  1707. vueOptions = VueComponent.options;
  1708. return [VueComponent, vueOptions];
  1709. }
  1710. function initSlots(vm, vueSlots) {
  1711. if (Array.isArray(vueSlots) && vueSlots.length) {
  1712. var $slots = Object.create(null);
  1713. vueSlots.forEach(function (slotName) {
  1714. $slots[slotName] = true;
  1715. });
  1716. vm.$scopedSlots = vm.$slots = $slots;
  1717. }
  1718. }
  1719. function initVueIds(vueIds, mpInstance) {
  1720. vueIds = (vueIds || '').split(',');
  1721. var len = vueIds.length;
  1722. if (len === 1) {
  1723. mpInstance._$vueId = vueIds[0];
  1724. } else if (len === 2) {
  1725. mpInstance._$vueId = vueIds[0];
  1726. mpInstance._$vuePid = vueIds[1];
  1727. }
  1728. }
  1729. function initData(vueOptions, context) {
  1730. var data = vueOptions.data || {};
  1731. var methods = vueOptions.methods || {};
  1732. if (typeof data === 'function') {
  1733. try {
  1734. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1735. } catch (e) {
  1736. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"红沙湾管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1737. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1738. }
  1739. }
  1740. } else {
  1741. try {
  1742. // 对 data 格式化
  1743. data = JSON.parse(JSON.stringify(data));
  1744. } catch (e) {}
  1745. }
  1746. if (!isPlainObject(data)) {
  1747. data = {};
  1748. }
  1749. Object.keys(methods).forEach(function (methodName) {
  1750. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1751. data[methodName] = methods[methodName];
  1752. }
  1753. });
  1754. return data;
  1755. }
  1756. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1757. function createObserver(name) {
  1758. return function observer(newVal, oldVal) {
  1759. if (this.$vm) {
  1760. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1761. }
  1762. };
  1763. }
  1764. function initBehaviors(vueOptions, initBehavior) {
  1765. var vueBehaviors = vueOptions.behaviors;
  1766. var vueExtends = vueOptions.extends;
  1767. var vueMixins = vueOptions.mixins;
  1768. var vueProps = vueOptions.props;
  1769. if (!vueProps) {
  1770. vueOptions.props = vueProps = [];
  1771. }
  1772. var behaviors = [];
  1773. if (Array.isArray(vueBehaviors)) {
  1774. vueBehaviors.forEach(function (behavior) {
  1775. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1776. if (behavior === 'uni://form-field') {
  1777. if (Array.isArray(vueProps)) {
  1778. vueProps.push('name');
  1779. vueProps.push('value');
  1780. } else {
  1781. vueProps.name = {
  1782. type: String,
  1783. default: ''
  1784. };
  1785. vueProps.value = {
  1786. type: [String, Number, Boolean, Array, Object, Date],
  1787. default: ''
  1788. };
  1789. }
  1790. }
  1791. });
  1792. }
  1793. if (isPlainObject(vueExtends) && vueExtends.props) {
  1794. behaviors.push(initBehavior({
  1795. properties: initProperties(vueExtends.props, true)
  1796. }));
  1797. }
  1798. if (Array.isArray(vueMixins)) {
  1799. vueMixins.forEach(function (vueMixin) {
  1800. if (isPlainObject(vueMixin) && vueMixin.props) {
  1801. behaviors.push(initBehavior({
  1802. properties: initProperties(vueMixin.props, true)
  1803. }));
  1804. }
  1805. });
  1806. }
  1807. return behaviors;
  1808. }
  1809. function parsePropType(key, type, defaultValue, file) {
  1810. // [String]=>String
  1811. if (Array.isArray(type) && type.length === 1) {
  1812. return type[0];
  1813. }
  1814. return type;
  1815. }
  1816. function initProperties(props) {
  1817. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1818. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1819. var options = arguments.length > 3 ? arguments[3] : undefined;
  1820. var properties = {};
  1821. if (!isBehavior) {
  1822. properties.vueId = {
  1823. type: String,
  1824. value: ''
  1825. };
  1826. {
  1827. if (options.virtualHost) {
  1828. properties.virtualHostStyle = {
  1829. type: null,
  1830. value: ''
  1831. };
  1832. properties.virtualHostClass = {
  1833. type: null,
  1834. value: ''
  1835. };
  1836. }
  1837. }
  1838. // scopedSlotsCompiler auto
  1839. properties.scopedSlotsCompiler = {
  1840. type: String,
  1841. value: ''
  1842. };
  1843. properties.vueSlots = {
  1844. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1845. type: null,
  1846. value: [],
  1847. observer: function observer(newVal, oldVal) {
  1848. var $slots = Object.create(null);
  1849. newVal.forEach(function (slotName) {
  1850. $slots[slotName] = true;
  1851. });
  1852. this.setData({
  1853. $slots: $slots
  1854. });
  1855. }
  1856. };
  1857. }
  1858. if (Array.isArray(props)) {
  1859. // ['title']
  1860. props.forEach(function (key) {
  1861. properties[key] = {
  1862. type: null,
  1863. observer: createObserver(key)
  1864. };
  1865. });
  1866. } else if (isPlainObject(props)) {
  1867. // {title:{type:String,default:''},content:String}
  1868. Object.keys(props).forEach(function (key) {
  1869. var opts = props[key];
  1870. if (isPlainObject(opts)) {
  1871. // title:{type:String,default:''}
  1872. var value = opts.default;
  1873. if (isFn(value)) {
  1874. value = value();
  1875. }
  1876. opts.type = parsePropType(key, opts.type);
  1877. properties[key] = {
  1878. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1879. value: value,
  1880. observer: createObserver(key)
  1881. };
  1882. } else {
  1883. // content:String
  1884. var type = parsePropType(key, opts);
  1885. properties[key] = {
  1886. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1887. observer: createObserver(key)
  1888. };
  1889. }
  1890. });
  1891. }
  1892. return properties;
  1893. }
  1894. function wrapper$1(event) {
  1895. // TODO 又得兼容 mpvue 的 mp 对象
  1896. try {
  1897. event.mp = JSON.parse(JSON.stringify(event));
  1898. } catch (e) {}
  1899. event.stopPropagation = noop;
  1900. event.preventDefault = noop;
  1901. event.target = event.target || {};
  1902. if (!hasOwn(event, 'detail')) {
  1903. event.detail = {};
  1904. }
  1905. if (hasOwn(event, 'markerId')) {
  1906. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1907. event.detail.markerId = event.markerId;
  1908. }
  1909. if (isPlainObject(event.detail)) {
  1910. event.target = Object.assign({}, event.target, event.detail);
  1911. }
  1912. return event;
  1913. }
  1914. function getExtraValue(vm, dataPathsArray) {
  1915. var context = vm;
  1916. dataPathsArray.forEach(function (dataPathArray) {
  1917. var dataPath = dataPathArray[0];
  1918. var value = dataPathArray[2];
  1919. if (dataPath || typeof value !== 'undefined') {
  1920. // ['','',index,'disable']
  1921. var propPath = dataPathArray[1];
  1922. var valuePath = dataPathArray[3];
  1923. var vFor;
  1924. if (Number.isInteger(dataPath)) {
  1925. vFor = dataPath;
  1926. } else if (!dataPath) {
  1927. vFor = context;
  1928. } else if (typeof dataPath === 'string' && dataPath) {
  1929. if (dataPath.indexOf('#s#') === 0) {
  1930. vFor = dataPath.substr(3);
  1931. } else {
  1932. vFor = vm.__get_value(dataPath, context);
  1933. }
  1934. }
  1935. if (Number.isInteger(vFor)) {
  1936. context = value;
  1937. } else if (!propPath) {
  1938. context = vFor[value];
  1939. } else {
  1940. if (Array.isArray(vFor)) {
  1941. context = vFor.find(function (vForItem) {
  1942. return vm.__get_value(propPath, vForItem) === value;
  1943. });
  1944. } else if (isPlainObject(vFor)) {
  1945. context = Object.keys(vFor).find(function (vForKey) {
  1946. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1947. });
  1948. } else {
  1949. console.error('v-for 暂不支持循环数据:', vFor);
  1950. }
  1951. }
  1952. if (valuePath) {
  1953. context = vm.__get_value(valuePath, context);
  1954. }
  1955. }
  1956. });
  1957. return context;
  1958. }
  1959. function processEventExtra(vm, extra, event, __args__) {
  1960. var extraObj = {};
  1961. if (Array.isArray(extra) && extra.length) {
  1962. /**
  1963. *[
  1964. * ['data.items', 'data.id', item.data.id],
  1965. * ['metas', 'id', meta.id]
  1966. *],
  1967. *[
  1968. * ['data.items', 'data.id', item.data.id],
  1969. * ['metas', 'id', meta.id]
  1970. *],
  1971. *'test'
  1972. */
  1973. extra.forEach(function (dataPath, index) {
  1974. if (typeof dataPath === 'string') {
  1975. if (!dataPath) {
  1976. // model,prop.sync
  1977. extraObj['$' + index] = vm;
  1978. } else {
  1979. if (dataPath === '$event') {
  1980. // $event
  1981. extraObj['$' + index] = event;
  1982. } else if (dataPath === 'arguments') {
  1983. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1984. } else if (dataPath.indexOf('$event.') === 0) {
  1985. // $event.target.value
  1986. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1987. } else {
  1988. extraObj['$' + index] = vm.__get_value(dataPath);
  1989. }
  1990. }
  1991. } else {
  1992. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1993. }
  1994. });
  1995. }
  1996. return extraObj;
  1997. }
  1998. function getObjByArray(arr) {
  1999. var obj = {};
  2000. for (var i = 1; i < arr.length; i++) {
  2001. var element = arr[i];
  2002. obj[element[0]] = element[1];
  2003. }
  2004. return obj;
  2005. }
  2006. function processEventArgs(vm, event) {
  2007. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  2008. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  2009. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  2010. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  2011. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  2012. // fixed 用户直接触发 mpInstance.triggerEvent
  2013. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  2014. if (isCustom) {
  2015. // 自定义事件
  2016. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  2017. if (!args.length) {
  2018. // 无参数,直接传入 event 或 detail 数组
  2019. if (isCustomMPEvent) {
  2020. return [event];
  2021. }
  2022. return __args__;
  2023. }
  2024. }
  2025. var extraObj = processEventExtra(vm, extra, event, __args__);
  2026. var ret = [];
  2027. args.forEach(function (arg) {
  2028. if (arg === '$event') {
  2029. if (methodName === '__set_model' && !isCustom) {
  2030. // input v-model value
  2031. ret.push(event.target.value);
  2032. } else {
  2033. if (isCustom && !isCustomMPEvent) {
  2034. ret.push(__args__[0]);
  2035. } else {
  2036. // wxcomponent 组件或内置组件
  2037. ret.push(event);
  2038. }
  2039. }
  2040. } else {
  2041. if (Array.isArray(arg) && arg[0] === 'o') {
  2042. ret.push(getObjByArray(arg));
  2043. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  2044. ret.push(extraObj[arg]);
  2045. } else {
  2046. ret.push(arg);
  2047. }
  2048. }
  2049. });
  2050. return ret;
  2051. }
  2052. var ONCE = '~';
  2053. var CUSTOM = '^';
  2054. function isMatchEventType(eventType, optType) {
  2055. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  2056. }
  2057. function getContextVm(vm) {
  2058. var $parent = vm.$parent;
  2059. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  2060. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  2061. $parent = $parent.$parent;
  2062. }
  2063. return $parent && $parent.$parent;
  2064. }
  2065. function handleEvent(event) {
  2066. var _this2 = this;
  2067. event = wrapper$1(event);
  2068. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  2069. var dataset = (event.currentTarget || event.target).dataset;
  2070. if (!dataset) {
  2071. return console.warn('事件信息不存在');
  2072. }
  2073. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  2074. if (!eventOpts) {
  2075. return console.warn('事件信息不存在');
  2076. }
  2077. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  2078. var eventType = event.type;
  2079. var ret = [];
  2080. eventOpts.forEach(function (eventOpt) {
  2081. var type = eventOpt[0];
  2082. var eventsArray = eventOpt[1];
  2083. var isCustom = type.charAt(0) === CUSTOM;
  2084. type = isCustom ? type.slice(1) : type;
  2085. var isOnce = type.charAt(0) === ONCE;
  2086. type = isOnce ? type.slice(1) : type;
  2087. if (eventsArray && isMatchEventType(eventType, type)) {
  2088. eventsArray.forEach(function (eventArray) {
  2089. var methodName = eventArray[0];
  2090. if (methodName) {
  2091. var handlerCtx = _this2.$vm;
  2092. if (handlerCtx.$options.generic) {
  2093. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  2094. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  2095. }
  2096. if (methodName === '$emit') {
  2097. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  2098. return;
  2099. }
  2100. var handler = handlerCtx[methodName];
  2101. if (!isFn(handler)) {
  2102. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  2103. var path = _this2.route || _this2.is;
  2104. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  2105. }
  2106. if (isOnce) {
  2107. if (handler.once) {
  2108. return;
  2109. }
  2110. handler.once = true;
  2111. }
  2112. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  2113. params = Array.isArray(params) ? params : [];
  2114. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  2115. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  2116. // eslint-disable-next-line no-sparse-arrays
  2117. params = params.concat([,,,,,,,,,, event]);
  2118. }
  2119. ret.push(handler.apply(handlerCtx, params));
  2120. }
  2121. });
  2122. }
  2123. });
  2124. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2125. return ret[0];
  2126. }
  2127. }
  2128. var eventChannels = {};
  2129. function getEventChannel(id) {
  2130. var eventChannel = eventChannels[id];
  2131. delete eventChannels[id];
  2132. return eventChannel;
  2133. }
  2134. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2135. function initEventChannel() {
  2136. _vue.default.prototype.getOpenerEventChannel = function () {
  2137. // 微信小程序使用自身getOpenerEventChannel
  2138. {
  2139. return this.$scope.getOpenerEventChannel();
  2140. }
  2141. };
  2142. var callHook = _vue.default.prototype.__call_hook;
  2143. _vue.default.prototype.__call_hook = function (hook, args) {
  2144. if (hook === 'onLoad' && args && args.__id__) {
  2145. this.__eventChannel__ = getEventChannel(args.__id__);
  2146. delete args.__id__;
  2147. }
  2148. return callHook.call(this, hook, args);
  2149. };
  2150. }
  2151. function initScopedSlotsParams() {
  2152. var center = {};
  2153. var parents = {};
  2154. function currentId(fn) {
  2155. var vueIds = this.$options.propsData.vueId;
  2156. if (vueIds) {
  2157. var vueId = vueIds.split(',')[0];
  2158. fn(vueId);
  2159. }
  2160. }
  2161. _vue.default.prototype.$hasSSP = function (vueId) {
  2162. var slot = center[vueId];
  2163. if (!slot) {
  2164. parents[vueId] = this;
  2165. this.$on('hook:destroyed', function () {
  2166. delete parents[vueId];
  2167. });
  2168. }
  2169. return slot;
  2170. };
  2171. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  2172. var slot = center[vueId];
  2173. if (slot) {
  2174. var params = slot[name] || [];
  2175. if (needAll) {
  2176. return params;
  2177. }
  2178. return params[0];
  2179. }
  2180. };
  2181. _vue.default.prototype.$setSSP = function (name, value) {
  2182. var index = 0;
  2183. currentId.call(this, function (vueId) {
  2184. var slot = center[vueId];
  2185. var params = slot[name] = slot[name] || [];
  2186. params.push(value);
  2187. index = params.length - 1;
  2188. });
  2189. return index;
  2190. };
  2191. _vue.default.prototype.$initSSP = function () {
  2192. currentId.call(this, function (vueId) {
  2193. center[vueId] = {};
  2194. });
  2195. };
  2196. _vue.default.prototype.$callSSP = function () {
  2197. currentId.call(this, function (vueId) {
  2198. if (parents[vueId]) {
  2199. parents[vueId].$forceUpdate();
  2200. }
  2201. });
  2202. };
  2203. _vue.default.mixin({
  2204. destroyed: function destroyed() {
  2205. var propsData = this.$options.propsData;
  2206. var vueId = propsData && propsData.vueId;
  2207. if (vueId) {
  2208. delete center[vueId];
  2209. delete parents[vueId];
  2210. }
  2211. }
  2212. });
  2213. }
  2214. function parseBaseApp(vm, _ref4) {
  2215. var mocks = _ref4.mocks,
  2216. initRefs = _ref4.initRefs;
  2217. initEventChannel();
  2218. {
  2219. initScopedSlotsParams();
  2220. }
  2221. if (vm.$options.store) {
  2222. _vue.default.prototype.$store = vm.$options.store;
  2223. }
  2224. uniIdMixin(_vue.default);
  2225. _vue.default.prototype.mpHost = "mp-weixin";
  2226. _vue.default.mixin({
  2227. beforeCreate: function beforeCreate() {
  2228. if (!this.$options.mpType) {
  2229. return;
  2230. }
  2231. this.mpType = this.$options.mpType;
  2232. this.$mp = (0, _defineProperty2.default)({
  2233. data: {}
  2234. }, this.mpType, this.$options.mpInstance);
  2235. this.$scope = this.$options.mpInstance;
  2236. delete this.$options.mpType;
  2237. delete this.$options.mpInstance;
  2238. if (this.mpType === 'page' && typeof getApp === 'function') {
  2239. // hack vue-i18n
  2240. var app = getApp();
  2241. if (app.$vm && app.$vm.$i18n) {
  2242. this._i18n = app.$vm.$i18n;
  2243. }
  2244. }
  2245. if (this.mpType !== 'app') {
  2246. initRefs(this);
  2247. initMocks(this, mocks);
  2248. }
  2249. }
  2250. });
  2251. var appOptions = {
  2252. onLaunch: function onLaunch(args) {
  2253. if (this.$vm) {
  2254. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2255. return;
  2256. }
  2257. {
  2258. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2259. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2260. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2261. }
  2262. }
  2263. this.$vm = vm;
  2264. this.$vm.$mp = {
  2265. app: this
  2266. };
  2267. this.$vm.$scope = this;
  2268. // vm 上也挂载 globalData
  2269. this.$vm.globalData = this.globalData;
  2270. this.$vm._isMounted = true;
  2271. this.$vm.__call_hook('mounted', args);
  2272. this.$vm.__call_hook('onLaunch', args);
  2273. }
  2274. };
  2275. // 兼容旧版本 globalData
  2276. appOptions.globalData = vm.$options.globalData || {};
  2277. // 将 methods 中的方法挂在 getApp() 中
  2278. var methods = vm.$options.methods;
  2279. if (methods) {
  2280. Object.keys(methods).forEach(function (name) {
  2281. appOptions[name] = methods[name];
  2282. });
  2283. }
  2284. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2285. initHooks(appOptions, hooks);
  2286. initUnknownHooks(appOptions, vm.$options);
  2287. return appOptions;
  2288. }
  2289. function parseApp(vm) {
  2290. return parseBaseApp(vm, {
  2291. mocks: mocks,
  2292. initRefs: initRefs
  2293. });
  2294. }
  2295. function createApp(vm) {
  2296. App(parseApp(vm));
  2297. return vm;
  2298. }
  2299. var encodeReserveRE = /[!'()*]/g;
  2300. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2301. return '%' + c.charCodeAt(0).toString(16);
  2302. };
  2303. var commaRE = /%2C/g;
  2304. // fixed encodeURIComponent which is more conformant to RFC3986:
  2305. // - escapes [!'()*]
  2306. // - preserve commas
  2307. var encode = function encode(str) {
  2308. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2309. };
  2310. function stringifyQuery(obj) {
  2311. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2312. var res = obj ? Object.keys(obj).map(function (key) {
  2313. var val = obj[key];
  2314. if (val === undefined) {
  2315. return '';
  2316. }
  2317. if (val === null) {
  2318. return encodeStr(key);
  2319. }
  2320. if (Array.isArray(val)) {
  2321. var result = [];
  2322. val.forEach(function (val2) {
  2323. if (val2 === undefined) {
  2324. return;
  2325. }
  2326. if (val2 === null) {
  2327. result.push(encodeStr(key));
  2328. } else {
  2329. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2330. }
  2331. });
  2332. return result.join('&');
  2333. }
  2334. return encodeStr(key) + '=' + encodeStr(val);
  2335. }).filter(function (x) {
  2336. return x.length > 0;
  2337. }).join('&') : null;
  2338. return res ? "?".concat(res) : '';
  2339. }
  2340. function parseBaseComponent(vueComponentOptions) {
  2341. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2342. isPage = _ref5.isPage,
  2343. initRelation = _ref5.initRelation;
  2344. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2345. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2346. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2347. VueComponent = _initVueComponent2[0],
  2348. vueOptions = _initVueComponent2[1];
  2349. var options = _objectSpread({
  2350. multipleSlots: true,
  2351. // styleIsolation: 'apply-shared',
  2352. addGlobalClass: true
  2353. }, vueOptions.options || {});
  2354. {
  2355. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2356. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2357. Object.assign(options, vueOptions['mp-weixin'].options);
  2358. }
  2359. }
  2360. var componentOptions = {
  2361. options: options,
  2362. data: initData(vueOptions, _vue.default.prototype),
  2363. behaviors: initBehaviors(vueOptions, initBehavior),
  2364. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2365. lifetimes: {
  2366. attached: function attached() {
  2367. var properties = this.properties;
  2368. var options = {
  2369. mpType: isPage.call(this) ? 'page' : 'component',
  2370. mpInstance: this,
  2371. propsData: properties
  2372. };
  2373. initVueIds(properties.vueId, this);
  2374. // 处理父子关系
  2375. initRelation.call(this, {
  2376. vuePid: this._$vuePid,
  2377. vueOptions: options
  2378. });
  2379. // 初始化 vue 实例
  2380. this.$vm = new VueComponent(options);
  2381. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2382. initSlots(this.$vm, properties.vueSlots);
  2383. // 触发首次 setData
  2384. this.$vm.$mount();
  2385. },
  2386. ready: function ready() {
  2387. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2388. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2389. if (this.$vm) {
  2390. this.$vm._isMounted = true;
  2391. this.$vm.__call_hook('mounted');
  2392. this.$vm.__call_hook('onReady');
  2393. }
  2394. },
  2395. detached: function detached() {
  2396. this.$vm && this.$vm.$destroy();
  2397. }
  2398. },
  2399. pageLifetimes: {
  2400. show: function show(args) {
  2401. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2402. },
  2403. hide: function hide() {
  2404. this.$vm && this.$vm.__call_hook('onPageHide');
  2405. },
  2406. resize: function resize(size) {
  2407. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2408. }
  2409. },
  2410. methods: {
  2411. __l: handleLink,
  2412. __e: handleEvent
  2413. }
  2414. };
  2415. // externalClasses
  2416. if (vueOptions.externalClasses) {
  2417. componentOptions.externalClasses = vueOptions.externalClasses;
  2418. }
  2419. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2420. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2421. componentOptions.methods[callMethod] = function (args) {
  2422. return this.$vm[callMethod](args);
  2423. };
  2424. });
  2425. }
  2426. if (needVueOptions) {
  2427. return [componentOptions, vueOptions, VueComponent];
  2428. }
  2429. if (isPage) {
  2430. return componentOptions;
  2431. }
  2432. return [componentOptions, VueComponent];
  2433. }
  2434. function parseComponent(vueComponentOptions, needVueOptions) {
  2435. return parseBaseComponent(vueComponentOptions, {
  2436. isPage: isPage,
  2437. initRelation: initRelation
  2438. }, needVueOptions);
  2439. }
  2440. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2441. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2442. function parseBasePage(vuePageOptions) {
  2443. var _parseComponent = parseComponent(vuePageOptions, true),
  2444. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2445. pageOptions = _parseComponent2[0],
  2446. vueOptions = _parseComponent2[1];
  2447. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2448. pageOptions.methods.onLoad = function (query) {
  2449. this.options = query;
  2450. var copyQuery = Object.assign({}, query);
  2451. delete copyQuery.__id__;
  2452. this.$page = {
  2453. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2454. };
  2455. this.$vm.$mp.query = query; // 兼容 mpvue
  2456. this.$vm.__call_hook('onLoad', query);
  2457. };
  2458. {
  2459. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2460. }
  2461. {
  2462. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2463. }
  2464. return pageOptions;
  2465. }
  2466. function parsePage(vuePageOptions) {
  2467. return parseBasePage(vuePageOptions);
  2468. }
  2469. function createPage(vuePageOptions) {
  2470. {
  2471. return Component(parsePage(vuePageOptions));
  2472. }
  2473. }
  2474. function createComponent(vueOptions) {
  2475. {
  2476. return Component(parseComponent(vueOptions));
  2477. }
  2478. }
  2479. function createSubpackageApp(vm) {
  2480. var appOptions = parseApp(vm);
  2481. var app = getApp({
  2482. allowDefault: true
  2483. });
  2484. vm.$scope = app;
  2485. var globalData = app.globalData;
  2486. if (globalData) {
  2487. Object.keys(appOptions.globalData).forEach(function (name) {
  2488. if (!hasOwn(globalData, name)) {
  2489. globalData[name] = appOptions.globalData[name];
  2490. }
  2491. });
  2492. }
  2493. Object.keys(appOptions).forEach(function (name) {
  2494. if (!hasOwn(app, name)) {
  2495. app[name] = appOptions[name];
  2496. }
  2497. });
  2498. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2499. wx.onAppShow(function () {
  2500. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2501. args[_key5] = arguments[_key5];
  2502. }
  2503. vm.__call_hook('onShow', args);
  2504. });
  2505. }
  2506. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2507. wx.onAppHide(function () {
  2508. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2509. args[_key6] = arguments[_key6];
  2510. }
  2511. vm.__call_hook('onHide', args);
  2512. });
  2513. }
  2514. if (isFn(appOptions.onLaunch)) {
  2515. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2516. vm.__call_hook('onLaunch', args);
  2517. }
  2518. return vm;
  2519. }
  2520. function createPlugin(vm) {
  2521. var appOptions = parseApp(vm);
  2522. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2523. wx.onAppShow(function () {
  2524. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2525. args[_key7] = arguments[_key7];
  2526. }
  2527. vm.__call_hook('onShow', args);
  2528. });
  2529. }
  2530. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2531. wx.onAppHide(function () {
  2532. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2533. args[_key8] = arguments[_key8];
  2534. }
  2535. vm.__call_hook('onHide', args);
  2536. });
  2537. }
  2538. if (isFn(appOptions.onLaunch)) {
  2539. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2540. vm.__call_hook('onLaunch', args);
  2541. }
  2542. return vm;
  2543. }
  2544. todos.forEach(function (todoApi) {
  2545. protocols[todoApi] = false;
  2546. });
  2547. canIUses.forEach(function (canIUseApi) {
  2548. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2549. if (!wx.canIUse(apiName)) {
  2550. protocols[canIUseApi] = false;
  2551. }
  2552. });
  2553. var uni = {};
  2554. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2555. uni = new Proxy({}, {
  2556. get: function get(target, name) {
  2557. if (hasOwn(target, name)) {
  2558. return target[name];
  2559. }
  2560. if (baseApi[name]) {
  2561. return baseApi[name];
  2562. }
  2563. if (api[name]) {
  2564. return promisify(name, api[name]);
  2565. }
  2566. {
  2567. if (extraApi[name]) {
  2568. return promisify(name, extraApi[name]);
  2569. }
  2570. if (todoApis[name]) {
  2571. return promisify(name, todoApis[name]);
  2572. }
  2573. }
  2574. if (eventApi[name]) {
  2575. return eventApi[name];
  2576. }
  2577. return promisify(name, wrapper(name, wx[name]));
  2578. },
  2579. set: function set(target, name, value) {
  2580. target[name] = value;
  2581. return true;
  2582. }
  2583. });
  2584. } else {
  2585. Object.keys(baseApi).forEach(function (name) {
  2586. uni[name] = baseApi[name];
  2587. });
  2588. {
  2589. Object.keys(todoApis).forEach(function (name) {
  2590. uni[name] = promisify(name, todoApis[name]);
  2591. });
  2592. Object.keys(extraApi).forEach(function (name) {
  2593. uni[name] = promisify(name, extraApi[name]);
  2594. });
  2595. }
  2596. Object.keys(eventApi).forEach(function (name) {
  2597. uni[name] = eventApi[name];
  2598. });
  2599. Object.keys(api).forEach(function (name) {
  2600. uni[name] = promisify(name, api[name]);
  2601. });
  2602. Object.keys(wx).forEach(function (name) {
  2603. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2604. uni[name] = promisify(name, wrapper(name, wx[name]));
  2605. }
  2606. });
  2607. }
  2608. wx.createApp = createApp;
  2609. wx.createPage = createPage;
  2610. wx.createComponent = createComponent;
  2611. wx.createSubpackageApp = createSubpackageApp;
  2612. wx.createPlugin = createPlugin;
  2613. var uni$1 = uni;
  2614. var _default = uni$1;
  2615. exports.default = _default;
  2616. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2617. /***/ }),
  2618. /***/ 20:
  2619. /*!****************************************************************!*\
  2620. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2621. \****************************************************************/
  2622. /*! no static exports found */
  2623. /***/ (function(module, exports) {
  2624. function _iterableToArray(iter) {
  2625. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2626. }
  2627. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2628. /***/ }),
  2629. /***/ 21:
  2630. /*!******************************************************************!*\
  2631. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2632. \******************************************************************/
  2633. /*! no static exports found */
  2634. /***/ (function(module, exports) {
  2635. function _nonIterableSpread() {
  2636. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2637. }
  2638. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2639. /***/ }),
  2640. /***/ 22:
  2641. /*!*************************************************************!*\
  2642. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2643. \*************************************************************/
  2644. /*! no static exports found */
  2645. /***/ (function(module, exports, __webpack_require__) {
  2646. "use strict";
  2647. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2648. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2649. Object.defineProperty(exports, "__esModule", {
  2650. value: true
  2651. });
  2652. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2653. exports.compileI18nJsonStr = compileI18nJsonStr;
  2654. exports.hasI18nJson = hasI18nJson;
  2655. exports.initVueI18n = initVueI18n;
  2656. exports.isI18nStr = isI18nStr;
  2657. exports.isString = void 0;
  2658. exports.normalizeLocale = normalizeLocale;
  2659. exports.parseI18nJson = parseI18nJson;
  2660. exports.resolveLocale = resolveLocale;
  2661. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2662. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2663. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2664. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2665. var isObject = function isObject(val) {
  2666. return val !== null && (0, _typeof2.default)(val) === 'object';
  2667. };
  2668. var defaultDelimiters = ['{', '}'];
  2669. var BaseFormatter = /*#__PURE__*/function () {
  2670. function BaseFormatter() {
  2671. (0, _classCallCheck2.default)(this, BaseFormatter);
  2672. this._caches = Object.create(null);
  2673. }
  2674. (0, _createClass2.default)(BaseFormatter, [{
  2675. key: "interpolate",
  2676. value: function interpolate(message, values) {
  2677. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2678. if (!values) {
  2679. return [message];
  2680. }
  2681. var tokens = this._caches[message];
  2682. if (!tokens) {
  2683. tokens = parse(message, delimiters);
  2684. this._caches[message] = tokens;
  2685. }
  2686. return compile(tokens, values);
  2687. }
  2688. }]);
  2689. return BaseFormatter;
  2690. }();
  2691. exports.Formatter = BaseFormatter;
  2692. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2693. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2694. function parse(format, _ref) {
  2695. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2696. startDelimiter = _ref2[0],
  2697. endDelimiter = _ref2[1];
  2698. var tokens = [];
  2699. var position = 0;
  2700. var text = '';
  2701. while (position < format.length) {
  2702. var char = format[position++];
  2703. if (char === startDelimiter) {
  2704. if (text) {
  2705. tokens.push({
  2706. type: 'text',
  2707. value: text
  2708. });
  2709. }
  2710. text = '';
  2711. var sub = '';
  2712. char = format[position++];
  2713. while (char !== undefined && char !== endDelimiter) {
  2714. sub += char;
  2715. char = format[position++];
  2716. }
  2717. var isClosed = char === endDelimiter;
  2718. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2719. tokens.push({
  2720. value: sub,
  2721. type: type
  2722. });
  2723. }
  2724. // else if (char === '%') {
  2725. // // when found rails i18n syntax, skip text capture
  2726. // if (format[position] !== '{') {
  2727. // text += char
  2728. // }
  2729. // }
  2730. else {
  2731. text += char;
  2732. }
  2733. }
  2734. text && tokens.push({
  2735. type: 'text',
  2736. value: text
  2737. });
  2738. return tokens;
  2739. }
  2740. function compile(tokens, values) {
  2741. var compiled = [];
  2742. var index = 0;
  2743. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2744. if (mode === 'unknown') {
  2745. return compiled;
  2746. }
  2747. while (index < tokens.length) {
  2748. var token = tokens[index];
  2749. switch (token.type) {
  2750. case 'text':
  2751. compiled.push(token.value);
  2752. break;
  2753. case 'list':
  2754. compiled.push(values[parseInt(token.value, 10)]);
  2755. break;
  2756. case 'named':
  2757. if (mode === 'named') {
  2758. compiled.push(values[token.value]);
  2759. } else {
  2760. if (true) {
  2761. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2762. }
  2763. }
  2764. break;
  2765. case 'unknown':
  2766. if (true) {
  2767. console.warn("Detect 'unknown' type of token!");
  2768. }
  2769. break;
  2770. }
  2771. index++;
  2772. }
  2773. return compiled;
  2774. }
  2775. var LOCALE_ZH_HANS = 'zh-Hans';
  2776. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2777. var LOCALE_ZH_HANT = 'zh-Hant';
  2778. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2779. var LOCALE_EN = 'en';
  2780. exports.LOCALE_EN = LOCALE_EN;
  2781. var LOCALE_FR = 'fr';
  2782. exports.LOCALE_FR = LOCALE_FR;
  2783. var LOCALE_ES = 'es';
  2784. exports.LOCALE_ES = LOCALE_ES;
  2785. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2786. var hasOwn = function hasOwn(val, key) {
  2787. return hasOwnProperty.call(val, key);
  2788. };
  2789. var defaultFormatter = new BaseFormatter();
  2790. function include(str, parts) {
  2791. return !!parts.find(function (part) {
  2792. return str.indexOf(part) !== -1;
  2793. });
  2794. }
  2795. function startsWith(str, parts) {
  2796. return parts.find(function (part) {
  2797. return str.indexOf(part) === 0;
  2798. });
  2799. }
  2800. function normalizeLocale(locale, messages) {
  2801. if (!locale) {
  2802. return;
  2803. }
  2804. locale = locale.trim().replace(/_/g, '-');
  2805. if (messages && messages[locale]) {
  2806. return locale;
  2807. }
  2808. locale = locale.toLowerCase();
  2809. if (locale === 'chinese') {
  2810. // 支付宝
  2811. return LOCALE_ZH_HANS;
  2812. }
  2813. if (locale.indexOf('zh') === 0) {
  2814. if (locale.indexOf('-hans') > -1) {
  2815. return LOCALE_ZH_HANS;
  2816. }
  2817. if (locale.indexOf('-hant') > -1) {
  2818. return LOCALE_ZH_HANT;
  2819. }
  2820. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2821. return LOCALE_ZH_HANT;
  2822. }
  2823. return LOCALE_ZH_HANS;
  2824. }
  2825. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2826. if (messages && Object.keys(messages).length > 0) {
  2827. locales = Object.keys(messages);
  2828. }
  2829. var lang = startsWith(locale, locales);
  2830. if (lang) {
  2831. return lang;
  2832. }
  2833. }
  2834. var I18n = /*#__PURE__*/function () {
  2835. function I18n(_ref3) {
  2836. var locale = _ref3.locale,
  2837. fallbackLocale = _ref3.fallbackLocale,
  2838. messages = _ref3.messages,
  2839. watcher = _ref3.watcher,
  2840. formater = _ref3.formater;
  2841. (0, _classCallCheck2.default)(this, I18n);
  2842. this.locale = LOCALE_EN;
  2843. this.fallbackLocale = LOCALE_EN;
  2844. this.message = {};
  2845. this.messages = {};
  2846. this.watchers = [];
  2847. if (fallbackLocale) {
  2848. this.fallbackLocale = fallbackLocale;
  2849. }
  2850. this.formater = formater || defaultFormatter;
  2851. this.messages = messages || {};
  2852. this.setLocale(locale || LOCALE_EN);
  2853. if (watcher) {
  2854. this.watchLocale(watcher);
  2855. }
  2856. }
  2857. (0, _createClass2.default)(I18n, [{
  2858. key: "setLocale",
  2859. value: function setLocale(locale) {
  2860. var _this = this;
  2861. var oldLocale = this.locale;
  2862. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2863. if (!this.messages[this.locale]) {
  2864. // 可能初始化时不存在
  2865. this.messages[this.locale] = {};
  2866. }
  2867. this.message = this.messages[this.locale];
  2868. // 仅发生变化时,通知
  2869. if (oldLocale !== this.locale) {
  2870. this.watchers.forEach(function (watcher) {
  2871. watcher(_this.locale, oldLocale);
  2872. });
  2873. }
  2874. }
  2875. }, {
  2876. key: "getLocale",
  2877. value: function getLocale() {
  2878. return this.locale;
  2879. }
  2880. }, {
  2881. key: "watchLocale",
  2882. value: function watchLocale(fn) {
  2883. var _this2 = this;
  2884. var index = this.watchers.push(fn) - 1;
  2885. return function () {
  2886. _this2.watchers.splice(index, 1);
  2887. };
  2888. }
  2889. }, {
  2890. key: "add",
  2891. value: function add(locale, message) {
  2892. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2893. var curMessages = this.messages[locale];
  2894. if (curMessages) {
  2895. if (override) {
  2896. Object.assign(curMessages, message);
  2897. } else {
  2898. Object.keys(message).forEach(function (key) {
  2899. if (!hasOwn(curMessages, key)) {
  2900. curMessages[key] = message[key];
  2901. }
  2902. });
  2903. }
  2904. } else {
  2905. this.messages[locale] = message;
  2906. }
  2907. }
  2908. }, {
  2909. key: "f",
  2910. value: function f(message, values, delimiters) {
  2911. return this.formater.interpolate(message, values, delimiters).join('');
  2912. }
  2913. }, {
  2914. key: "t",
  2915. value: function t(key, locale, values) {
  2916. var message = this.message;
  2917. if (typeof locale === 'string') {
  2918. locale = normalizeLocale(locale, this.messages);
  2919. locale && (message = this.messages[locale]);
  2920. } else {
  2921. values = locale;
  2922. }
  2923. if (!hasOwn(message, key)) {
  2924. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2925. return key;
  2926. }
  2927. return this.formater.interpolate(message[key], values).join('');
  2928. }
  2929. }]);
  2930. return I18n;
  2931. }();
  2932. exports.I18n = I18n;
  2933. function watchAppLocale(appVm, i18n) {
  2934. // 需要保证 watch 的触发在组件渲染之前
  2935. if (appVm.$watchLocale) {
  2936. // vue2
  2937. appVm.$watchLocale(function (newLocale) {
  2938. i18n.setLocale(newLocale);
  2939. });
  2940. } else {
  2941. appVm.$watch(function () {
  2942. return appVm.$locale;
  2943. }, function (newLocale) {
  2944. i18n.setLocale(newLocale);
  2945. });
  2946. }
  2947. }
  2948. function getDefaultLocale() {
  2949. if (typeof uni !== 'undefined' && uni.getLocale) {
  2950. return uni.getLocale();
  2951. }
  2952. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  2953. if (typeof global !== 'undefined' && global.getLocale) {
  2954. return global.getLocale();
  2955. }
  2956. return LOCALE_EN;
  2957. }
  2958. function initVueI18n(locale) {
  2959. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2960. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  2961. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  2962. // 兼容旧版本入参
  2963. if (typeof locale !== 'string') {
  2964. var _ref4 = [messages, locale];
  2965. locale = _ref4[0];
  2966. messages = _ref4[1];
  2967. }
  2968. if (typeof locale !== 'string') {
  2969. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  2970. locale = getDefaultLocale();
  2971. }
  2972. if (typeof fallbackLocale !== 'string') {
  2973. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  2974. }
  2975. var i18n = new I18n({
  2976. locale: locale,
  2977. fallbackLocale: fallbackLocale,
  2978. messages: messages,
  2979. watcher: watcher
  2980. });
  2981. var _t = function t(key, values) {
  2982. if (typeof getApp !== 'function') {
  2983. // app view
  2984. /* eslint-disable no-func-assign */
  2985. _t = function t(key, values) {
  2986. return i18n.t(key, values);
  2987. };
  2988. } else {
  2989. var isWatchedAppLocale = false;
  2990. _t = function t(key, values) {
  2991. var appVm = getApp().$vm;
  2992. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  2993. // options: {
  2994. // type: Array,
  2995. // default () {
  2996. // return [{
  2997. // icon: 'shop',
  2998. // text: t("uni-goods-nav.options.shop"),
  2999. // }, {
  3000. // icon: 'cart',
  3001. // text: t("uni-goods-nav.options.cart")
  3002. // }]
  3003. // }
  3004. // },
  3005. if (appVm) {
  3006. // 触发响应式
  3007. appVm.$locale;
  3008. if (!isWatchedAppLocale) {
  3009. isWatchedAppLocale = true;
  3010. watchAppLocale(appVm, i18n);
  3011. }
  3012. }
  3013. return i18n.t(key, values);
  3014. };
  3015. }
  3016. return _t(key, values);
  3017. };
  3018. return {
  3019. i18n: i18n,
  3020. f: function f(message, values, delimiters) {
  3021. return i18n.f(message, values, delimiters);
  3022. },
  3023. t: function t(key, values) {
  3024. return _t(key, values);
  3025. },
  3026. add: function add(locale, message) {
  3027. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3028. return i18n.add(locale, message, override);
  3029. },
  3030. watch: function watch(fn) {
  3031. return i18n.watchLocale(fn);
  3032. },
  3033. getLocale: function getLocale() {
  3034. return i18n.getLocale();
  3035. },
  3036. setLocale: function setLocale(newLocale) {
  3037. return i18n.setLocale(newLocale);
  3038. }
  3039. };
  3040. }
  3041. var isString = function isString(val) {
  3042. return typeof val === 'string';
  3043. };
  3044. exports.isString = isString;
  3045. var formater;
  3046. function hasI18nJson(jsonObj, delimiters) {
  3047. if (!formater) {
  3048. formater = new BaseFormatter();
  3049. }
  3050. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3051. var value = jsonObj[key];
  3052. if (isString(value)) {
  3053. if (isI18nStr(value, delimiters)) {
  3054. return true;
  3055. }
  3056. } else {
  3057. return hasI18nJson(value, delimiters);
  3058. }
  3059. });
  3060. }
  3061. function parseI18nJson(jsonObj, values, delimiters) {
  3062. if (!formater) {
  3063. formater = new BaseFormatter();
  3064. }
  3065. walkJsonObj(jsonObj, function (jsonObj, key) {
  3066. var value = jsonObj[key];
  3067. if (isString(value)) {
  3068. if (isI18nStr(value, delimiters)) {
  3069. jsonObj[key] = compileStr(value, values, delimiters);
  3070. }
  3071. } else {
  3072. parseI18nJson(value, values, delimiters);
  3073. }
  3074. });
  3075. return jsonObj;
  3076. }
  3077. function compileI18nJsonStr(jsonStr, _ref5) {
  3078. var locale = _ref5.locale,
  3079. locales = _ref5.locales,
  3080. delimiters = _ref5.delimiters;
  3081. if (!isI18nStr(jsonStr, delimiters)) {
  3082. return jsonStr;
  3083. }
  3084. if (!formater) {
  3085. formater = new BaseFormatter();
  3086. }
  3087. var localeValues = [];
  3088. Object.keys(locales).forEach(function (name) {
  3089. if (name !== locale) {
  3090. localeValues.push({
  3091. locale: name,
  3092. values: locales[name]
  3093. });
  3094. }
  3095. });
  3096. localeValues.unshift({
  3097. locale: locale,
  3098. values: locales[locale]
  3099. });
  3100. try {
  3101. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3102. } catch (e) {}
  3103. return jsonStr;
  3104. }
  3105. function isI18nStr(value, delimiters) {
  3106. return value.indexOf(delimiters[0]) > -1;
  3107. }
  3108. function compileStr(value, values, delimiters) {
  3109. return formater.interpolate(value, values, delimiters).join('');
  3110. }
  3111. function compileValue(jsonObj, key, localeValues, delimiters) {
  3112. var value = jsonObj[key];
  3113. if (isString(value)) {
  3114. // 存在国际化
  3115. if (isI18nStr(value, delimiters)) {
  3116. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3117. if (localeValues.length > 1) {
  3118. // 格式化国际化语言
  3119. var valueLocales = jsonObj[key + 'Locales'] = {};
  3120. localeValues.forEach(function (localValue) {
  3121. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3122. });
  3123. }
  3124. }
  3125. } else {
  3126. compileJsonObj(value, localeValues, delimiters);
  3127. }
  3128. }
  3129. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3130. walkJsonObj(jsonObj, function (jsonObj, key) {
  3131. compileValue(jsonObj, key, localeValues, delimiters);
  3132. });
  3133. return jsonObj;
  3134. }
  3135. function walkJsonObj(jsonObj, walk) {
  3136. if (Array.isArray(jsonObj)) {
  3137. for (var i = 0; i < jsonObj.length; i++) {
  3138. if (walk(jsonObj, i)) {
  3139. return true;
  3140. }
  3141. }
  3142. } else if (isObject(jsonObj)) {
  3143. for (var key in jsonObj) {
  3144. if (walk(jsonObj, key)) {
  3145. return true;
  3146. }
  3147. }
  3148. }
  3149. return false;
  3150. }
  3151. function resolveLocale(locales) {
  3152. return function (locale) {
  3153. if (!locale) {
  3154. return locale;
  3155. }
  3156. locale = normalizeLocale(locale) || locale;
  3157. return resolveLocaleChain(locale).find(function (locale) {
  3158. return locales.indexOf(locale) > -1;
  3159. });
  3160. };
  3161. }
  3162. function resolveLocaleChain(locale) {
  3163. var chain = [];
  3164. var tokens = locale.split('-');
  3165. while (tokens.length) {
  3166. chain.push(tokens.join('-'));
  3167. tokens.pop();
  3168. }
  3169. return chain;
  3170. }
  3171. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3172. /***/ }),
  3173. /***/ 23:
  3174. /*!***************************************************************!*\
  3175. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3176. \***************************************************************/
  3177. /*! no static exports found */
  3178. /***/ (function(module, exports) {
  3179. function _classCallCheck(instance, Constructor) {
  3180. if (!(instance instanceof Constructor)) {
  3181. throw new TypeError("Cannot call a class as a function");
  3182. }
  3183. }
  3184. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3185. /***/ }),
  3186. /***/ 24:
  3187. /*!************************************************************!*\
  3188. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3189. \************************************************************/
  3190. /*! no static exports found */
  3191. /***/ (function(module, exports, __webpack_require__) {
  3192. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3193. function _defineProperties(target, props) {
  3194. for (var i = 0; i < props.length; i++) {
  3195. var descriptor = props[i];
  3196. descriptor.enumerable = descriptor.enumerable || false;
  3197. descriptor.configurable = true;
  3198. if ("value" in descriptor) descriptor.writable = true;
  3199. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3200. }
  3201. }
  3202. function _createClass(Constructor, protoProps, staticProps) {
  3203. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3204. if (staticProps) _defineProperties(Constructor, staticProps);
  3205. Object.defineProperty(Constructor, "prototype", {
  3206. writable: false
  3207. });
  3208. return Constructor;
  3209. }
  3210. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3211. /***/ }),
  3212. /***/ 25:
  3213. /*!******************************************************************************************!*\
  3214. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3215. \******************************************************************************************/
  3216. /*! exports provided: default */
  3217. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3218. "use strict";
  3219. __webpack_require__.r(__webpack_exports__);
  3220. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3221. * Vue.js v2.6.11
  3222. * (c) 2014-2023 Evan You
  3223. * Released under the MIT License.
  3224. */
  3225. /* */
  3226. var emptyObject = Object.freeze({});
  3227. // These helpers produce better VM code in JS engines due to their
  3228. // explicitness and function inlining.
  3229. function isUndef (v) {
  3230. return v === undefined || v === null
  3231. }
  3232. function isDef (v) {
  3233. return v !== undefined && v !== null
  3234. }
  3235. function isTrue (v) {
  3236. return v === true
  3237. }
  3238. function isFalse (v) {
  3239. return v === false
  3240. }
  3241. /**
  3242. * Check if value is primitive.
  3243. */
  3244. function isPrimitive (value) {
  3245. return (
  3246. typeof value === 'string' ||
  3247. typeof value === 'number' ||
  3248. // $flow-disable-line
  3249. typeof value === 'symbol' ||
  3250. typeof value === 'boolean'
  3251. )
  3252. }
  3253. /**
  3254. * Quick object check - this is primarily used to tell
  3255. * Objects from primitive values when we know the value
  3256. * is a JSON-compliant type.
  3257. */
  3258. function isObject (obj) {
  3259. return obj !== null && typeof obj === 'object'
  3260. }
  3261. /**
  3262. * Get the raw type string of a value, e.g., [object Object].
  3263. */
  3264. var _toString = Object.prototype.toString;
  3265. function toRawType (value) {
  3266. return _toString.call(value).slice(8, -1)
  3267. }
  3268. /**
  3269. * Strict object type check. Only returns true
  3270. * for plain JavaScript objects.
  3271. */
  3272. function isPlainObject (obj) {
  3273. return _toString.call(obj) === '[object Object]'
  3274. }
  3275. function isRegExp (v) {
  3276. return _toString.call(v) === '[object RegExp]'
  3277. }
  3278. /**
  3279. * Check if val is a valid array index.
  3280. */
  3281. function isValidArrayIndex (val) {
  3282. var n = parseFloat(String(val));
  3283. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3284. }
  3285. function isPromise (val) {
  3286. return (
  3287. isDef(val) &&
  3288. typeof val.then === 'function' &&
  3289. typeof val.catch === 'function'
  3290. )
  3291. }
  3292. /**
  3293. * Convert a value to a string that is actually rendered.
  3294. */
  3295. function toString (val) {
  3296. return val == null
  3297. ? ''
  3298. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3299. ? JSON.stringify(val, null, 2)
  3300. : String(val)
  3301. }
  3302. /**
  3303. * Convert an input value to a number for persistence.
  3304. * If the conversion fails, return original string.
  3305. */
  3306. function toNumber (val) {
  3307. var n = parseFloat(val);
  3308. return isNaN(n) ? val : n
  3309. }
  3310. /**
  3311. * Make a map and return a function for checking if a key
  3312. * is in that map.
  3313. */
  3314. function makeMap (
  3315. str,
  3316. expectsLowerCase
  3317. ) {
  3318. var map = Object.create(null);
  3319. var list = str.split(',');
  3320. for (var i = 0; i < list.length; i++) {
  3321. map[list[i]] = true;
  3322. }
  3323. return expectsLowerCase
  3324. ? function (val) { return map[val.toLowerCase()]; }
  3325. : function (val) { return map[val]; }
  3326. }
  3327. /**
  3328. * Check if a tag is a built-in tag.
  3329. */
  3330. var isBuiltInTag = makeMap('slot,component', true);
  3331. /**
  3332. * Check if an attribute is a reserved attribute.
  3333. */
  3334. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3335. /**
  3336. * Remove an item from an array.
  3337. */
  3338. function remove (arr, item) {
  3339. if (arr.length) {
  3340. var index = arr.indexOf(item);
  3341. if (index > -1) {
  3342. return arr.splice(index, 1)
  3343. }
  3344. }
  3345. }
  3346. /**
  3347. * Check whether an object has the property.
  3348. */
  3349. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3350. function hasOwn (obj, key) {
  3351. return hasOwnProperty.call(obj, key)
  3352. }
  3353. /**
  3354. * Create a cached version of a pure function.
  3355. */
  3356. function cached (fn) {
  3357. var cache = Object.create(null);
  3358. return (function cachedFn (str) {
  3359. var hit = cache[str];
  3360. return hit || (cache[str] = fn(str))
  3361. })
  3362. }
  3363. /**
  3364. * Camelize a hyphen-delimited string.
  3365. */
  3366. var camelizeRE = /-(\w)/g;
  3367. var camelize = cached(function (str) {
  3368. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3369. });
  3370. /**
  3371. * Capitalize a string.
  3372. */
  3373. var capitalize = cached(function (str) {
  3374. return str.charAt(0).toUpperCase() + str.slice(1)
  3375. });
  3376. /**
  3377. * Hyphenate a camelCase string.
  3378. */
  3379. var hyphenateRE = /\B([A-Z])/g;
  3380. var hyphenate = cached(function (str) {
  3381. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3382. });
  3383. /**
  3384. * Simple bind polyfill for environments that do not support it,
  3385. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3386. * since native bind is now performant enough in most browsers.
  3387. * But removing it would mean breaking code that was able to run in
  3388. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3389. */
  3390. /* istanbul ignore next */
  3391. function polyfillBind (fn, ctx) {
  3392. function boundFn (a) {
  3393. var l = arguments.length;
  3394. return l
  3395. ? l > 1
  3396. ? fn.apply(ctx, arguments)
  3397. : fn.call(ctx, a)
  3398. : fn.call(ctx)
  3399. }
  3400. boundFn._length = fn.length;
  3401. return boundFn
  3402. }
  3403. function nativeBind (fn, ctx) {
  3404. return fn.bind(ctx)
  3405. }
  3406. var bind = Function.prototype.bind
  3407. ? nativeBind
  3408. : polyfillBind;
  3409. /**
  3410. * Convert an Array-like object to a real Array.
  3411. */
  3412. function toArray (list, start) {
  3413. start = start || 0;
  3414. var i = list.length - start;
  3415. var ret = new Array(i);
  3416. while (i--) {
  3417. ret[i] = list[i + start];
  3418. }
  3419. return ret
  3420. }
  3421. /**
  3422. * Mix properties into target object.
  3423. */
  3424. function extend (to, _from) {
  3425. for (var key in _from) {
  3426. to[key] = _from[key];
  3427. }
  3428. return to
  3429. }
  3430. /**
  3431. * Merge an Array of Objects into a single Object.
  3432. */
  3433. function toObject (arr) {
  3434. var res = {};
  3435. for (var i = 0; i < arr.length; i++) {
  3436. if (arr[i]) {
  3437. extend(res, arr[i]);
  3438. }
  3439. }
  3440. return res
  3441. }
  3442. /* eslint-disable no-unused-vars */
  3443. /**
  3444. * Perform no operation.
  3445. * Stubbing args to make Flow happy without leaving useless transpiled code
  3446. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3447. */
  3448. function noop (a, b, c) {}
  3449. /**
  3450. * Always return false.
  3451. */
  3452. var no = function (a, b, c) { return false; };
  3453. /* eslint-enable no-unused-vars */
  3454. /**
  3455. * Return the same value.
  3456. */
  3457. var identity = function (_) { return _; };
  3458. /**
  3459. * Check if two values are loosely equal - that is,
  3460. * if they are plain objects, do they have the same shape?
  3461. */
  3462. function looseEqual (a, b) {
  3463. if (a === b) { return true }
  3464. var isObjectA = isObject(a);
  3465. var isObjectB = isObject(b);
  3466. if (isObjectA && isObjectB) {
  3467. try {
  3468. var isArrayA = Array.isArray(a);
  3469. var isArrayB = Array.isArray(b);
  3470. if (isArrayA && isArrayB) {
  3471. return a.length === b.length && a.every(function (e, i) {
  3472. return looseEqual(e, b[i])
  3473. })
  3474. } else if (a instanceof Date && b instanceof Date) {
  3475. return a.getTime() === b.getTime()
  3476. } else if (!isArrayA && !isArrayB) {
  3477. var keysA = Object.keys(a);
  3478. var keysB = Object.keys(b);
  3479. return keysA.length === keysB.length && keysA.every(function (key) {
  3480. return looseEqual(a[key], b[key])
  3481. })
  3482. } else {
  3483. /* istanbul ignore next */
  3484. return false
  3485. }
  3486. } catch (e) {
  3487. /* istanbul ignore next */
  3488. return false
  3489. }
  3490. } else if (!isObjectA && !isObjectB) {
  3491. return String(a) === String(b)
  3492. } else {
  3493. return false
  3494. }
  3495. }
  3496. /**
  3497. * Return the first index at which a loosely equal value can be
  3498. * found in the array (if value is a plain object, the array must
  3499. * contain an object of the same shape), or -1 if it is not present.
  3500. */
  3501. function looseIndexOf (arr, val) {
  3502. for (var i = 0; i < arr.length; i++) {
  3503. if (looseEqual(arr[i], val)) { return i }
  3504. }
  3505. return -1
  3506. }
  3507. /**
  3508. * Ensure a function is called only once.
  3509. */
  3510. function once (fn) {
  3511. var called = false;
  3512. return function () {
  3513. if (!called) {
  3514. called = true;
  3515. fn.apply(this, arguments);
  3516. }
  3517. }
  3518. }
  3519. var ASSET_TYPES = [
  3520. 'component',
  3521. 'directive',
  3522. 'filter'
  3523. ];
  3524. var LIFECYCLE_HOOKS = [
  3525. 'beforeCreate',
  3526. 'created',
  3527. 'beforeMount',
  3528. 'mounted',
  3529. 'beforeUpdate',
  3530. 'updated',
  3531. 'beforeDestroy',
  3532. 'destroyed',
  3533. 'activated',
  3534. 'deactivated',
  3535. 'errorCaptured',
  3536. 'serverPrefetch'
  3537. ];
  3538. /* */
  3539. var config = ({
  3540. /**
  3541. * Option merge strategies (used in core/util/options)
  3542. */
  3543. // $flow-disable-line
  3544. optionMergeStrategies: Object.create(null),
  3545. /**
  3546. * Whether to suppress warnings.
  3547. */
  3548. silent: false,
  3549. /**
  3550. * Show production mode tip message on boot?
  3551. */
  3552. productionTip: "development" !== 'production',
  3553. /**
  3554. * Whether to enable devtools
  3555. */
  3556. devtools: "development" !== 'production',
  3557. /**
  3558. * Whether to record perf
  3559. */
  3560. performance: false,
  3561. /**
  3562. * Error handler for watcher errors
  3563. */
  3564. errorHandler: null,
  3565. /**
  3566. * Warn handler for watcher warns
  3567. */
  3568. warnHandler: null,
  3569. /**
  3570. * Ignore certain custom elements
  3571. */
  3572. ignoredElements: [],
  3573. /**
  3574. * Custom user key aliases for v-on
  3575. */
  3576. // $flow-disable-line
  3577. keyCodes: Object.create(null),
  3578. /**
  3579. * Check if a tag is reserved so that it cannot be registered as a
  3580. * component. This is platform-dependent and may be overwritten.
  3581. */
  3582. isReservedTag: no,
  3583. /**
  3584. * Check if an attribute is reserved so that it cannot be used as a component
  3585. * prop. This is platform-dependent and may be overwritten.
  3586. */
  3587. isReservedAttr: no,
  3588. /**
  3589. * Check if a tag is an unknown element.
  3590. * Platform-dependent.
  3591. */
  3592. isUnknownElement: no,
  3593. /**
  3594. * Get the namespace of an element
  3595. */
  3596. getTagNamespace: noop,
  3597. /**
  3598. * Parse the real tag name for the specific platform.
  3599. */
  3600. parsePlatformTagName: identity,
  3601. /**
  3602. * Check if an attribute must be bound using property, e.g. value
  3603. * Platform-dependent.
  3604. */
  3605. mustUseProp: no,
  3606. /**
  3607. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3608. * This will significantly reduce performance if set to false.
  3609. */
  3610. async: true,
  3611. /**
  3612. * Exposed for legacy reasons
  3613. */
  3614. _lifecycleHooks: LIFECYCLE_HOOKS
  3615. });
  3616. /* */
  3617. /**
  3618. * unicode letters used for parsing html tags, component names and property paths.
  3619. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3620. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3621. */
  3622. 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/;
  3623. /**
  3624. * Check if a string starts with $ or _
  3625. */
  3626. function isReserved (str) {
  3627. var c = (str + '').charCodeAt(0);
  3628. return c === 0x24 || c === 0x5F
  3629. }
  3630. /**
  3631. * Define a property.
  3632. */
  3633. function def (obj, key, val, enumerable) {
  3634. Object.defineProperty(obj, key, {
  3635. value: val,
  3636. enumerable: !!enumerable,
  3637. writable: true,
  3638. configurable: true
  3639. });
  3640. }
  3641. /**
  3642. * Parse simple path.
  3643. */
  3644. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3645. function parsePath (path) {
  3646. if (bailRE.test(path)) {
  3647. return
  3648. }
  3649. var segments = path.split('.');
  3650. return function (obj) {
  3651. for (var i = 0; i < segments.length; i++) {
  3652. if (!obj) { return }
  3653. obj = obj[segments[i]];
  3654. }
  3655. return obj
  3656. }
  3657. }
  3658. /* */
  3659. // can we use __proto__?
  3660. var hasProto = '__proto__' in {};
  3661. // Browser environment sniffing
  3662. var inBrowser = typeof window !== 'undefined';
  3663. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3664. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3665. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3666. var isIE = UA && /msie|trident/.test(UA);
  3667. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3668. var isEdge = UA && UA.indexOf('edge/') > 0;
  3669. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3670. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3671. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3672. var isPhantomJS = UA && /phantomjs/.test(UA);
  3673. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3674. // Firefox has a "watch" function on Object.prototype...
  3675. var nativeWatch = ({}).watch;
  3676. if (inBrowser) {
  3677. try {
  3678. var opts = {};
  3679. Object.defineProperty(opts, 'passive', ({
  3680. get: function get () {
  3681. }
  3682. })); // https://github.com/facebook/flow/issues/285
  3683. window.addEventListener('test-passive', null, opts);
  3684. } catch (e) {}
  3685. }
  3686. // this needs to be lazy-evaled because vue may be required before
  3687. // vue-server-renderer can set VUE_ENV
  3688. var _isServer;
  3689. var isServerRendering = function () {
  3690. if (_isServer === undefined) {
  3691. /* istanbul ignore if */
  3692. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3693. // detect presence of vue-server-renderer and avoid
  3694. // Webpack shimming the process
  3695. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3696. } else {
  3697. _isServer = false;
  3698. }
  3699. }
  3700. return _isServer
  3701. };
  3702. // detect devtools
  3703. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3704. /* istanbul ignore next */
  3705. function isNative (Ctor) {
  3706. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3707. }
  3708. var hasSymbol =
  3709. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3710. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3711. var _Set;
  3712. /* istanbul ignore if */ // $flow-disable-line
  3713. if (typeof Set !== 'undefined' && isNative(Set)) {
  3714. // use native Set when available.
  3715. _Set = Set;
  3716. } else {
  3717. // a non-standard Set polyfill that only works with primitive keys.
  3718. _Set = /*@__PURE__*/(function () {
  3719. function Set () {
  3720. this.set = Object.create(null);
  3721. }
  3722. Set.prototype.has = function has (key) {
  3723. return this.set[key] === true
  3724. };
  3725. Set.prototype.add = function add (key) {
  3726. this.set[key] = true;
  3727. };
  3728. Set.prototype.clear = function clear () {
  3729. this.set = Object.create(null);
  3730. };
  3731. return Set;
  3732. }());
  3733. }
  3734. /* */
  3735. var warn = noop;
  3736. var tip = noop;
  3737. var generateComponentTrace = (noop); // work around flow check
  3738. var formatComponentName = (noop);
  3739. if (true) {
  3740. var hasConsole = typeof console !== 'undefined';
  3741. var classifyRE = /(?:^|[-_])(\w)/g;
  3742. var classify = function (str) { return str
  3743. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3744. .replace(/[-_]/g, ''); };
  3745. warn = function (msg, vm) {
  3746. var trace = vm ? generateComponentTrace(vm) : '';
  3747. if (config.warnHandler) {
  3748. config.warnHandler.call(null, msg, vm, trace);
  3749. } else if (hasConsole && (!config.silent)) {
  3750. console.error(("[Vue warn]: " + msg + trace));
  3751. }
  3752. };
  3753. tip = function (msg, vm) {
  3754. if (hasConsole && (!config.silent)) {
  3755. console.warn("[Vue tip]: " + msg + (
  3756. vm ? generateComponentTrace(vm) : ''
  3757. ));
  3758. }
  3759. };
  3760. formatComponentName = function (vm, includeFile) {
  3761. if (vm.$root === vm) {
  3762. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3763. return ('') + vm.$options.__file
  3764. }
  3765. return '<Root>'
  3766. }
  3767. var options = typeof vm === 'function' && vm.cid != null
  3768. ? vm.options
  3769. : vm._isVue
  3770. ? vm.$options || vm.constructor.options
  3771. : vm;
  3772. var name = options.name || options._componentTag;
  3773. var file = options.__file;
  3774. if (!name && file) {
  3775. var match = file.match(/([^/\\]+)\.vue$/);
  3776. name = match && match[1];
  3777. }
  3778. return (
  3779. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3780. (file && includeFile !== false ? (" at " + file) : '')
  3781. )
  3782. };
  3783. var repeat = function (str, n) {
  3784. var res = '';
  3785. while (n) {
  3786. if (n % 2 === 1) { res += str; }
  3787. if (n > 1) { str += str; }
  3788. n >>= 1;
  3789. }
  3790. return res
  3791. };
  3792. generateComponentTrace = function (vm) {
  3793. if (vm._isVue && vm.$parent) {
  3794. var tree = [];
  3795. var currentRecursiveSequence = 0;
  3796. while (vm && vm.$options.name !== 'PageBody') {
  3797. if (tree.length > 0) {
  3798. var last = tree[tree.length - 1];
  3799. if (last.constructor === vm.constructor) {
  3800. currentRecursiveSequence++;
  3801. vm = vm.$parent;
  3802. continue
  3803. } else if (currentRecursiveSequence > 0) {
  3804. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3805. currentRecursiveSequence = 0;
  3806. }
  3807. }
  3808. !vm.$options.isReserved && tree.push(vm);
  3809. vm = vm.$parent;
  3810. }
  3811. return '\n\nfound in\n\n' + tree
  3812. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3813. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3814. : formatComponentName(vm))); })
  3815. .join('\n')
  3816. } else {
  3817. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3818. }
  3819. };
  3820. }
  3821. /* */
  3822. var uid = 0;
  3823. /**
  3824. * A dep is an observable that can have multiple
  3825. * directives subscribing to it.
  3826. */
  3827. var Dep = function Dep () {
  3828. this.id = uid++;
  3829. this.subs = [];
  3830. };
  3831. Dep.prototype.addSub = function addSub (sub) {
  3832. this.subs.push(sub);
  3833. };
  3834. Dep.prototype.removeSub = function removeSub (sub) {
  3835. remove(this.subs, sub);
  3836. };
  3837. Dep.prototype.depend = function depend () {
  3838. if (Dep.SharedObject.target) {
  3839. Dep.SharedObject.target.addDep(this);
  3840. }
  3841. };
  3842. Dep.prototype.notify = function notify () {
  3843. // stabilize the subscriber list first
  3844. var subs = this.subs.slice();
  3845. if ( true && !config.async) {
  3846. // subs aren't sorted in scheduler if not running async
  3847. // we need to sort them now to make sure they fire in correct
  3848. // order
  3849. subs.sort(function (a, b) { return a.id - b.id; });
  3850. }
  3851. for (var i = 0, l = subs.length; i < l; i++) {
  3852. subs[i].update();
  3853. }
  3854. };
  3855. // The current target watcher being evaluated.
  3856. // This is globally unique because only one watcher
  3857. // can be evaluated at a time.
  3858. // fixed by xxxxxx (nvue shared vuex)
  3859. /* eslint-disable no-undef */
  3860. Dep.SharedObject = {};
  3861. Dep.SharedObject.target = null;
  3862. Dep.SharedObject.targetStack = [];
  3863. function pushTarget (target) {
  3864. Dep.SharedObject.targetStack.push(target);
  3865. Dep.SharedObject.target = target;
  3866. Dep.target = target;
  3867. }
  3868. function popTarget () {
  3869. Dep.SharedObject.targetStack.pop();
  3870. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3871. Dep.target = Dep.SharedObject.target;
  3872. }
  3873. /* */
  3874. var VNode = function VNode (
  3875. tag,
  3876. data,
  3877. children,
  3878. text,
  3879. elm,
  3880. context,
  3881. componentOptions,
  3882. asyncFactory
  3883. ) {
  3884. this.tag = tag;
  3885. this.data = data;
  3886. this.children = children;
  3887. this.text = text;
  3888. this.elm = elm;
  3889. this.ns = undefined;
  3890. this.context = context;
  3891. this.fnContext = undefined;
  3892. this.fnOptions = undefined;
  3893. this.fnScopeId = undefined;
  3894. this.key = data && data.key;
  3895. this.componentOptions = componentOptions;
  3896. this.componentInstance = undefined;
  3897. this.parent = undefined;
  3898. this.raw = false;
  3899. this.isStatic = false;
  3900. this.isRootInsert = true;
  3901. this.isComment = false;
  3902. this.isCloned = false;
  3903. this.isOnce = false;
  3904. this.asyncFactory = asyncFactory;
  3905. this.asyncMeta = undefined;
  3906. this.isAsyncPlaceholder = false;
  3907. };
  3908. var prototypeAccessors = { child: { configurable: true } };
  3909. // DEPRECATED: alias for componentInstance for backwards compat.
  3910. /* istanbul ignore next */
  3911. prototypeAccessors.child.get = function () {
  3912. return this.componentInstance
  3913. };
  3914. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3915. var createEmptyVNode = function (text) {
  3916. if ( text === void 0 ) text = '';
  3917. var node = new VNode();
  3918. node.text = text;
  3919. node.isComment = true;
  3920. return node
  3921. };
  3922. function createTextVNode (val) {
  3923. return new VNode(undefined, undefined, undefined, String(val))
  3924. }
  3925. // optimized shallow clone
  3926. // used for static nodes and slot nodes because they may be reused across
  3927. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3928. // on their elm reference.
  3929. function cloneVNode (vnode) {
  3930. var cloned = new VNode(
  3931. vnode.tag,
  3932. vnode.data,
  3933. // #7975
  3934. // clone children array to avoid mutating original in case of cloning
  3935. // a child.
  3936. vnode.children && vnode.children.slice(),
  3937. vnode.text,
  3938. vnode.elm,
  3939. vnode.context,
  3940. vnode.componentOptions,
  3941. vnode.asyncFactory
  3942. );
  3943. cloned.ns = vnode.ns;
  3944. cloned.isStatic = vnode.isStatic;
  3945. cloned.key = vnode.key;
  3946. cloned.isComment = vnode.isComment;
  3947. cloned.fnContext = vnode.fnContext;
  3948. cloned.fnOptions = vnode.fnOptions;
  3949. cloned.fnScopeId = vnode.fnScopeId;
  3950. cloned.asyncMeta = vnode.asyncMeta;
  3951. cloned.isCloned = true;
  3952. return cloned
  3953. }
  3954. /*
  3955. * not type checking this file because flow doesn't play well with
  3956. * dynamically accessing methods on Array prototype
  3957. */
  3958. var arrayProto = Array.prototype;
  3959. var arrayMethods = Object.create(arrayProto);
  3960. var methodsToPatch = [
  3961. 'push',
  3962. 'pop',
  3963. 'shift',
  3964. 'unshift',
  3965. 'splice',
  3966. 'sort',
  3967. 'reverse'
  3968. ];
  3969. /**
  3970. * Intercept mutating methods and emit events
  3971. */
  3972. methodsToPatch.forEach(function (method) {
  3973. // cache original method
  3974. var original = arrayProto[method];
  3975. def(arrayMethods, method, function mutator () {
  3976. var args = [], len = arguments.length;
  3977. while ( len-- ) args[ len ] = arguments[ len ];
  3978. var result = original.apply(this, args);
  3979. var ob = this.__ob__;
  3980. var inserted;
  3981. switch (method) {
  3982. case 'push':
  3983. case 'unshift':
  3984. inserted = args;
  3985. break
  3986. case 'splice':
  3987. inserted = args.slice(2);
  3988. break
  3989. }
  3990. if (inserted) { ob.observeArray(inserted); }
  3991. // notify change
  3992. ob.dep.notify();
  3993. return result
  3994. });
  3995. });
  3996. /* */
  3997. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  3998. /**
  3999. * In some cases we may want to disable observation inside a component's
  4000. * update computation.
  4001. */
  4002. var shouldObserve = true;
  4003. function toggleObserving (value) {
  4004. shouldObserve = value;
  4005. }
  4006. /**
  4007. * Observer class that is attached to each observed
  4008. * object. Once attached, the observer converts the target
  4009. * object's property keys into getter/setters that
  4010. * collect dependencies and dispatch updates.
  4011. */
  4012. var Observer = function Observer (value) {
  4013. this.value = value;
  4014. this.dep = new Dep();
  4015. this.vmCount = 0;
  4016. def(value, '__ob__', this);
  4017. if (Array.isArray(value)) {
  4018. if (hasProto) {
  4019. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4020. if(value.push !== value.__proto__.push){
  4021. copyAugment(value, arrayMethods, arrayKeys);
  4022. } else {
  4023. protoAugment(value, arrayMethods);
  4024. }
  4025. }
  4026. } else {
  4027. copyAugment(value, arrayMethods, arrayKeys);
  4028. }
  4029. this.observeArray(value);
  4030. } else {
  4031. this.walk(value);
  4032. }
  4033. };
  4034. /**
  4035. * Walk through all properties and convert them into
  4036. * getter/setters. This method should only be called when
  4037. * value type is Object.
  4038. */
  4039. Observer.prototype.walk = function walk (obj) {
  4040. var keys = Object.keys(obj);
  4041. for (var i = 0; i < keys.length; i++) {
  4042. defineReactive$$1(obj, keys[i]);
  4043. }
  4044. };
  4045. /**
  4046. * Observe a list of Array items.
  4047. */
  4048. Observer.prototype.observeArray = function observeArray (items) {
  4049. for (var i = 0, l = items.length; i < l; i++) {
  4050. observe(items[i]);
  4051. }
  4052. };
  4053. // helpers
  4054. /**
  4055. * Augment a target Object or Array by intercepting
  4056. * the prototype chain using __proto__
  4057. */
  4058. function protoAugment (target, src) {
  4059. /* eslint-disable no-proto */
  4060. target.__proto__ = src;
  4061. /* eslint-enable no-proto */
  4062. }
  4063. /**
  4064. * Augment a target Object or Array by defining
  4065. * hidden properties.
  4066. */
  4067. /* istanbul ignore next */
  4068. function copyAugment (target, src, keys) {
  4069. for (var i = 0, l = keys.length; i < l; i++) {
  4070. var key = keys[i];
  4071. def(target, key, src[key]);
  4072. }
  4073. }
  4074. /**
  4075. * Attempt to create an observer instance for a value,
  4076. * returns the new observer if successfully observed,
  4077. * or the existing observer if the value already has one.
  4078. */
  4079. function observe (value, asRootData) {
  4080. if (!isObject(value) || value instanceof VNode) {
  4081. return
  4082. }
  4083. var ob;
  4084. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4085. ob = value.__ob__;
  4086. } else if (
  4087. shouldObserve &&
  4088. !isServerRendering() &&
  4089. (Array.isArray(value) || isPlainObject(value)) &&
  4090. Object.isExtensible(value) &&
  4091. !value._isVue &&
  4092. !value.__v_isMPComponent
  4093. ) {
  4094. ob = new Observer(value);
  4095. }
  4096. if (asRootData && ob) {
  4097. ob.vmCount++;
  4098. }
  4099. return ob
  4100. }
  4101. /**
  4102. * Define a reactive property on an Object.
  4103. */
  4104. function defineReactive$$1 (
  4105. obj,
  4106. key,
  4107. val,
  4108. customSetter,
  4109. shallow
  4110. ) {
  4111. var dep = new Dep();
  4112. var property = Object.getOwnPropertyDescriptor(obj, key);
  4113. if (property && property.configurable === false) {
  4114. return
  4115. }
  4116. // cater for pre-defined getter/setters
  4117. var getter = property && property.get;
  4118. var setter = property && property.set;
  4119. if ((!getter || setter) && arguments.length === 2) {
  4120. val = obj[key];
  4121. }
  4122. var childOb = !shallow && observe(val);
  4123. Object.defineProperty(obj, key, {
  4124. enumerable: true,
  4125. configurable: true,
  4126. get: function reactiveGetter () {
  4127. var value = getter ? getter.call(obj) : val;
  4128. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4129. dep.depend();
  4130. if (childOb) {
  4131. childOb.dep.depend();
  4132. if (Array.isArray(value)) {
  4133. dependArray(value);
  4134. }
  4135. }
  4136. }
  4137. return value
  4138. },
  4139. set: function reactiveSetter (newVal) {
  4140. var value = getter ? getter.call(obj) : val;
  4141. /* eslint-disable no-self-compare */
  4142. if (newVal === value || (newVal !== newVal && value !== value)) {
  4143. return
  4144. }
  4145. /* eslint-enable no-self-compare */
  4146. if ( true && customSetter) {
  4147. customSetter();
  4148. }
  4149. // #7981: for accessor properties without setter
  4150. if (getter && !setter) { return }
  4151. if (setter) {
  4152. setter.call(obj, newVal);
  4153. } else {
  4154. val = newVal;
  4155. }
  4156. childOb = !shallow && observe(newVal);
  4157. dep.notify();
  4158. }
  4159. });
  4160. }
  4161. /**
  4162. * Set a property on an object. Adds the new property and
  4163. * triggers change notification if the property doesn't
  4164. * already exist.
  4165. */
  4166. function set (target, key, val) {
  4167. if ( true &&
  4168. (isUndef(target) || isPrimitive(target))
  4169. ) {
  4170. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4171. }
  4172. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4173. target.length = Math.max(target.length, key);
  4174. target.splice(key, 1, val);
  4175. return val
  4176. }
  4177. if (key in target && !(key in Object.prototype)) {
  4178. target[key] = val;
  4179. return val
  4180. }
  4181. var ob = (target).__ob__;
  4182. if (target._isVue || (ob && ob.vmCount)) {
  4183. true && warn(
  4184. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4185. 'at runtime - declare it upfront in the data option.'
  4186. );
  4187. return val
  4188. }
  4189. if (!ob) {
  4190. target[key] = val;
  4191. return val
  4192. }
  4193. defineReactive$$1(ob.value, key, val);
  4194. ob.dep.notify();
  4195. return val
  4196. }
  4197. /**
  4198. * Delete a property and trigger change if necessary.
  4199. */
  4200. function del (target, key) {
  4201. if ( true &&
  4202. (isUndef(target) || isPrimitive(target))
  4203. ) {
  4204. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4205. }
  4206. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4207. target.splice(key, 1);
  4208. return
  4209. }
  4210. var ob = (target).__ob__;
  4211. if (target._isVue || (ob && ob.vmCount)) {
  4212. true && warn(
  4213. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4214. '- just set it to null.'
  4215. );
  4216. return
  4217. }
  4218. if (!hasOwn(target, key)) {
  4219. return
  4220. }
  4221. delete target[key];
  4222. if (!ob) {
  4223. return
  4224. }
  4225. ob.dep.notify();
  4226. }
  4227. /**
  4228. * Collect dependencies on array elements when the array is touched, since
  4229. * we cannot intercept array element access like property getters.
  4230. */
  4231. function dependArray (value) {
  4232. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4233. e = value[i];
  4234. e && e.__ob__ && e.__ob__.dep.depend();
  4235. if (Array.isArray(e)) {
  4236. dependArray(e);
  4237. }
  4238. }
  4239. }
  4240. /* */
  4241. /**
  4242. * Option overwriting strategies are functions that handle
  4243. * how to merge a parent option value and a child option
  4244. * value into the final value.
  4245. */
  4246. var strats = config.optionMergeStrategies;
  4247. /**
  4248. * Options with restrictions
  4249. */
  4250. if (true) {
  4251. strats.el = strats.propsData = function (parent, child, vm, key) {
  4252. if (!vm) {
  4253. warn(
  4254. "option \"" + key + "\" can only be used during instance " +
  4255. 'creation with the `new` keyword.'
  4256. );
  4257. }
  4258. return defaultStrat(parent, child)
  4259. };
  4260. }
  4261. /**
  4262. * Helper that recursively merges two data objects together.
  4263. */
  4264. function mergeData (to, from) {
  4265. if (!from) { return to }
  4266. var key, toVal, fromVal;
  4267. var keys = hasSymbol
  4268. ? Reflect.ownKeys(from)
  4269. : Object.keys(from);
  4270. for (var i = 0; i < keys.length; i++) {
  4271. key = keys[i];
  4272. // in case the object is already observed...
  4273. if (key === '__ob__') { continue }
  4274. toVal = to[key];
  4275. fromVal = from[key];
  4276. if (!hasOwn(to, key)) {
  4277. set(to, key, fromVal);
  4278. } else if (
  4279. toVal !== fromVal &&
  4280. isPlainObject(toVal) &&
  4281. isPlainObject(fromVal)
  4282. ) {
  4283. mergeData(toVal, fromVal);
  4284. }
  4285. }
  4286. return to
  4287. }
  4288. /**
  4289. * Data
  4290. */
  4291. function mergeDataOrFn (
  4292. parentVal,
  4293. childVal,
  4294. vm
  4295. ) {
  4296. if (!vm) {
  4297. // in a Vue.extend merge, both should be functions
  4298. if (!childVal) {
  4299. return parentVal
  4300. }
  4301. if (!parentVal) {
  4302. return childVal
  4303. }
  4304. // when parentVal & childVal are both present,
  4305. // we need to return a function that returns the
  4306. // merged result of both functions... no need to
  4307. // check if parentVal is a function here because
  4308. // it has to be a function to pass previous merges.
  4309. return function mergedDataFn () {
  4310. return mergeData(
  4311. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4312. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4313. )
  4314. }
  4315. } else {
  4316. return function mergedInstanceDataFn () {
  4317. // instance merge
  4318. var instanceData = typeof childVal === 'function'
  4319. ? childVal.call(vm, vm)
  4320. : childVal;
  4321. var defaultData = typeof parentVal === 'function'
  4322. ? parentVal.call(vm, vm)
  4323. : parentVal;
  4324. if (instanceData) {
  4325. return mergeData(instanceData, defaultData)
  4326. } else {
  4327. return defaultData
  4328. }
  4329. }
  4330. }
  4331. }
  4332. strats.data = function (
  4333. parentVal,
  4334. childVal,
  4335. vm
  4336. ) {
  4337. if (!vm) {
  4338. if (childVal && typeof childVal !== 'function') {
  4339. true && warn(
  4340. 'The "data" option should be a function ' +
  4341. 'that returns a per-instance value in component ' +
  4342. 'definitions.',
  4343. vm
  4344. );
  4345. return parentVal
  4346. }
  4347. return mergeDataOrFn(parentVal, childVal)
  4348. }
  4349. return mergeDataOrFn(parentVal, childVal, vm)
  4350. };
  4351. /**
  4352. * Hooks and props are merged as arrays.
  4353. */
  4354. function mergeHook (
  4355. parentVal,
  4356. childVal
  4357. ) {
  4358. var res = childVal
  4359. ? parentVal
  4360. ? parentVal.concat(childVal)
  4361. : Array.isArray(childVal)
  4362. ? childVal
  4363. : [childVal]
  4364. : parentVal;
  4365. return res
  4366. ? dedupeHooks(res)
  4367. : res
  4368. }
  4369. function dedupeHooks (hooks) {
  4370. var res = [];
  4371. for (var i = 0; i < hooks.length; i++) {
  4372. if (res.indexOf(hooks[i]) === -1) {
  4373. res.push(hooks[i]);
  4374. }
  4375. }
  4376. return res
  4377. }
  4378. LIFECYCLE_HOOKS.forEach(function (hook) {
  4379. strats[hook] = mergeHook;
  4380. });
  4381. /**
  4382. * Assets
  4383. *
  4384. * When a vm is present (instance creation), we need to do
  4385. * a three-way merge between constructor options, instance
  4386. * options and parent options.
  4387. */
  4388. function mergeAssets (
  4389. parentVal,
  4390. childVal,
  4391. vm,
  4392. key
  4393. ) {
  4394. var res = Object.create(parentVal || null);
  4395. if (childVal) {
  4396. true && assertObjectType(key, childVal, vm);
  4397. return extend(res, childVal)
  4398. } else {
  4399. return res
  4400. }
  4401. }
  4402. ASSET_TYPES.forEach(function (type) {
  4403. strats[type + 's'] = mergeAssets;
  4404. });
  4405. /**
  4406. * Watchers.
  4407. *
  4408. * Watchers hashes should not overwrite one
  4409. * another, so we merge them as arrays.
  4410. */
  4411. strats.watch = function (
  4412. parentVal,
  4413. childVal,
  4414. vm,
  4415. key
  4416. ) {
  4417. // work around Firefox's Object.prototype.watch...
  4418. if (parentVal === nativeWatch) { parentVal = undefined; }
  4419. if (childVal === nativeWatch) { childVal = undefined; }
  4420. /* istanbul ignore if */
  4421. if (!childVal) { return Object.create(parentVal || null) }
  4422. if (true) {
  4423. assertObjectType(key, childVal, vm);
  4424. }
  4425. if (!parentVal) { return childVal }
  4426. var ret = {};
  4427. extend(ret, parentVal);
  4428. for (var key$1 in childVal) {
  4429. var parent = ret[key$1];
  4430. var child = childVal[key$1];
  4431. if (parent && !Array.isArray(parent)) {
  4432. parent = [parent];
  4433. }
  4434. ret[key$1] = parent
  4435. ? parent.concat(child)
  4436. : Array.isArray(child) ? child : [child];
  4437. }
  4438. return ret
  4439. };
  4440. /**
  4441. * Other object hashes.
  4442. */
  4443. strats.props =
  4444. strats.methods =
  4445. strats.inject =
  4446. strats.computed = function (
  4447. parentVal,
  4448. childVal,
  4449. vm,
  4450. key
  4451. ) {
  4452. if (childVal && "development" !== 'production') {
  4453. assertObjectType(key, childVal, vm);
  4454. }
  4455. if (!parentVal) { return childVal }
  4456. var ret = Object.create(null);
  4457. extend(ret, parentVal);
  4458. if (childVal) { extend(ret, childVal); }
  4459. return ret
  4460. };
  4461. strats.provide = mergeDataOrFn;
  4462. /**
  4463. * Default strategy.
  4464. */
  4465. var defaultStrat = function (parentVal, childVal) {
  4466. return childVal === undefined
  4467. ? parentVal
  4468. : childVal
  4469. };
  4470. /**
  4471. * Validate component names
  4472. */
  4473. function checkComponents (options) {
  4474. for (var key in options.components) {
  4475. validateComponentName(key);
  4476. }
  4477. }
  4478. function validateComponentName (name) {
  4479. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4480. warn(
  4481. 'Invalid component name: "' + name + '". Component names ' +
  4482. 'should conform to valid custom element name in html5 specification.'
  4483. );
  4484. }
  4485. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4486. warn(
  4487. 'Do not use built-in or reserved HTML elements as component ' +
  4488. 'id: ' + name
  4489. );
  4490. }
  4491. }
  4492. /**
  4493. * Ensure all props option syntax are normalized into the
  4494. * Object-based format.
  4495. */
  4496. function normalizeProps (options, vm) {
  4497. var props = options.props;
  4498. if (!props) { return }
  4499. var res = {};
  4500. var i, val, name;
  4501. if (Array.isArray(props)) {
  4502. i = props.length;
  4503. while (i--) {
  4504. val = props[i];
  4505. if (typeof val === 'string') {
  4506. name = camelize(val);
  4507. res[name] = { type: null };
  4508. } else if (true) {
  4509. warn('props must be strings when using array syntax.');
  4510. }
  4511. }
  4512. } else if (isPlainObject(props)) {
  4513. for (var key in props) {
  4514. val = props[key];
  4515. name = camelize(key);
  4516. res[name] = isPlainObject(val)
  4517. ? val
  4518. : { type: val };
  4519. }
  4520. } else if (true) {
  4521. warn(
  4522. "Invalid value for option \"props\": expected an Array or an Object, " +
  4523. "but got " + (toRawType(props)) + ".",
  4524. vm
  4525. );
  4526. }
  4527. options.props = res;
  4528. }
  4529. /**
  4530. * Normalize all injections into Object-based format
  4531. */
  4532. function normalizeInject (options, vm) {
  4533. var inject = options.inject;
  4534. if (!inject) { return }
  4535. var normalized = options.inject = {};
  4536. if (Array.isArray(inject)) {
  4537. for (var i = 0; i < inject.length; i++) {
  4538. normalized[inject[i]] = { from: inject[i] };
  4539. }
  4540. } else if (isPlainObject(inject)) {
  4541. for (var key in inject) {
  4542. var val = inject[key];
  4543. normalized[key] = isPlainObject(val)
  4544. ? extend({ from: key }, val)
  4545. : { from: val };
  4546. }
  4547. } else if (true) {
  4548. warn(
  4549. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4550. "but got " + (toRawType(inject)) + ".",
  4551. vm
  4552. );
  4553. }
  4554. }
  4555. /**
  4556. * Normalize raw function directives into object format.
  4557. */
  4558. function normalizeDirectives (options) {
  4559. var dirs = options.directives;
  4560. if (dirs) {
  4561. for (var key in dirs) {
  4562. var def$$1 = dirs[key];
  4563. if (typeof def$$1 === 'function') {
  4564. dirs[key] = { bind: def$$1, update: def$$1 };
  4565. }
  4566. }
  4567. }
  4568. }
  4569. function assertObjectType (name, value, vm) {
  4570. if (!isPlainObject(value)) {
  4571. warn(
  4572. "Invalid value for option \"" + name + "\": expected an Object, " +
  4573. "but got " + (toRawType(value)) + ".",
  4574. vm
  4575. );
  4576. }
  4577. }
  4578. /**
  4579. * Merge two option objects into a new one.
  4580. * Core utility used in both instantiation and inheritance.
  4581. */
  4582. function mergeOptions (
  4583. parent,
  4584. child,
  4585. vm
  4586. ) {
  4587. if (true) {
  4588. checkComponents(child);
  4589. }
  4590. if (typeof child === 'function') {
  4591. child = child.options;
  4592. }
  4593. normalizeProps(child, vm);
  4594. normalizeInject(child, vm);
  4595. normalizeDirectives(child);
  4596. // Apply extends and mixins on the child options,
  4597. // but only if it is a raw options object that isn't
  4598. // the result of another mergeOptions call.
  4599. // Only merged options has the _base property.
  4600. if (!child._base) {
  4601. if (child.extends) {
  4602. parent = mergeOptions(parent, child.extends, vm);
  4603. }
  4604. if (child.mixins) {
  4605. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4606. parent = mergeOptions(parent, child.mixins[i], vm);
  4607. }
  4608. }
  4609. }
  4610. var options = {};
  4611. var key;
  4612. for (key in parent) {
  4613. mergeField(key);
  4614. }
  4615. for (key in child) {
  4616. if (!hasOwn(parent, key)) {
  4617. mergeField(key);
  4618. }
  4619. }
  4620. function mergeField (key) {
  4621. var strat = strats[key] || defaultStrat;
  4622. options[key] = strat(parent[key], child[key], vm, key);
  4623. }
  4624. return options
  4625. }
  4626. /**
  4627. * Resolve an asset.
  4628. * This function is used because child instances need access
  4629. * to assets defined in its ancestor chain.
  4630. */
  4631. function resolveAsset (
  4632. options,
  4633. type,
  4634. id,
  4635. warnMissing
  4636. ) {
  4637. /* istanbul ignore if */
  4638. if (typeof id !== 'string') {
  4639. return
  4640. }
  4641. var assets = options[type];
  4642. // check local registration variations first
  4643. if (hasOwn(assets, id)) { return assets[id] }
  4644. var camelizedId = camelize(id);
  4645. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4646. var PascalCaseId = capitalize(camelizedId);
  4647. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4648. // fallback to prototype chain
  4649. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4650. if ( true && warnMissing && !res) {
  4651. warn(
  4652. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4653. options
  4654. );
  4655. }
  4656. return res
  4657. }
  4658. /* */
  4659. function validateProp (
  4660. key,
  4661. propOptions,
  4662. propsData,
  4663. vm
  4664. ) {
  4665. var prop = propOptions[key];
  4666. var absent = !hasOwn(propsData, key);
  4667. var value = propsData[key];
  4668. // boolean casting
  4669. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4670. if (booleanIndex > -1) {
  4671. if (absent && !hasOwn(prop, 'default')) {
  4672. value = false;
  4673. } else if (value === '' || value === hyphenate(key)) {
  4674. // only cast empty string / same name to boolean if
  4675. // boolean has higher priority
  4676. var stringIndex = getTypeIndex(String, prop.type);
  4677. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4678. value = true;
  4679. }
  4680. }
  4681. }
  4682. // check default value
  4683. if (value === undefined) {
  4684. value = getPropDefaultValue(vm, prop, key);
  4685. // since the default value is a fresh copy,
  4686. // make sure to observe it.
  4687. var prevShouldObserve = shouldObserve;
  4688. toggleObserving(true);
  4689. observe(value);
  4690. toggleObserving(prevShouldObserve);
  4691. }
  4692. if (
  4693. true
  4694. ) {
  4695. assertProp(prop, key, value, vm, absent);
  4696. }
  4697. return value
  4698. }
  4699. /**
  4700. * Get the default value of a prop.
  4701. */
  4702. function getPropDefaultValue (vm, prop, key) {
  4703. // no default, return undefined
  4704. if (!hasOwn(prop, 'default')) {
  4705. return undefined
  4706. }
  4707. var def = prop.default;
  4708. // warn against non-factory defaults for Object & Array
  4709. if ( true && isObject(def)) {
  4710. warn(
  4711. 'Invalid default value for prop "' + key + '": ' +
  4712. 'Props with type Object/Array must use a factory function ' +
  4713. 'to return the default value.',
  4714. vm
  4715. );
  4716. }
  4717. // the raw prop value was also undefined from previous render,
  4718. // return previous default value to avoid unnecessary watcher trigger
  4719. if (vm && vm.$options.propsData &&
  4720. vm.$options.propsData[key] === undefined &&
  4721. vm._props[key] !== undefined
  4722. ) {
  4723. return vm._props[key]
  4724. }
  4725. // call factory function for non-Function types
  4726. // a value is Function if its prototype is function even across different execution context
  4727. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4728. ? def.call(vm)
  4729. : def
  4730. }
  4731. /**
  4732. * Assert whether a prop is valid.
  4733. */
  4734. function assertProp (
  4735. prop,
  4736. name,
  4737. value,
  4738. vm,
  4739. absent
  4740. ) {
  4741. if (prop.required && absent) {
  4742. warn(
  4743. 'Missing required prop: "' + name + '"',
  4744. vm
  4745. );
  4746. return
  4747. }
  4748. if (value == null && !prop.required) {
  4749. return
  4750. }
  4751. var type = prop.type;
  4752. var valid = !type || type === true;
  4753. var expectedTypes = [];
  4754. if (type) {
  4755. if (!Array.isArray(type)) {
  4756. type = [type];
  4757. }
  4758. for (var i = 0; i < type.length && !valid; i++) {
  4759. var assertedType = assertType(value, type[i]);
  4760. expectedTypes.push(assertedType.expectedType || '');
  4761. valid = assertedType.valid;
  4762. }
  4763. }
  4764. if (!valid) {
  4765. warn(
  4766. getInvalidTypeMessage(name, value, expectedTypes),
  4767. vm
  4768. );
  4769. return
  4770. }
  4771. var validator = prop.validator;
  4772. if (validator) {
  4773. if (!validator(value)) {
  4774. warn(
  4775. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4776. vm
  4777. );
  4778. }
  4779. }
  4780. }
  4781. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4782. function assertType (value, type) {
  4783. var valid;
  4784. var expectedType = getType(type);
  4785. if (simpleCheckRE.test(expectedType)) {
  4786. var t = typeof value;
  4787. valid = t === expectedType.toLowerCase();
  4788. // for primitive wrapper objects
  4789. if (!valid && t === 'object') {
  4790. valid = value instanceof type;
  4791. }
  4792. } else if (expectedType === 'Object') {
  4793. valid = isPlainObject(value);
  4794. } else if (expectedType === 'Array') {
  4795. valid = Array.isArray(value);
  4796. } else {
  4797. valid = value instanceof type;
  4798. }
  4799. return {
  4800. valid: valid,
  4801. expectedType: expectedType
  4802. }
  4803. }
  4804. /**
  4805. * Use function string name to check built-in types,
  4806. * because a simple equality check will fail when running
  4807. * across different vms / iframes.
  4808. */
  4809. function getType (fn) {
  4810. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4811. return match ? match[1] : ''
  4812. }
  4813. function isSameType (a, b) {
  4814. return getType(a) === getType(b)
  4815. }
  4816. function getTypeIndex (type, expectedTypes) {
  4817. if (!Array.isArray(expectedTypes)) {
  4818. return isSameType(expectedTypes, type) ? 0 : -1
  4819. }
  4820. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4821. if (isSameType(expectedTypes[i], type)) {
  4822. return i
  4823. }
  4824. }
  4825. return -1
  4826. }
  4827. function getInvalidTypeMessage (name, value, expectedTypes) {
  4828. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4829. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4830. var expectedType = expectedTypes[0];
  4831. var receivedType = toRawType(value);
  4832. var expectedValue = styleValue(value, expectedType);
  4833. var receivedValue = styleValue(value, receivedType);
  4834. // check if we need to specify expected value
  4835. if (expectedTypes.length === 1 &&
  4836. isExplicable(expectedType) &&
  4837. !isBoolean(expectedType, receivedType)) {
  4838. message += " with value " + expectedValue;
  4839. }
  4840. message += ", got " + receivedType + " ";
  4841. // check if we need to specify received value
  4842. if (isExplicable(receivedType)) {
  4843. message += "with value " + receivedValue + ".";
  4844. }
  4845. return message
  4846. }
  4847. function styleValue (value, type) {
  4848. if (type === 'String') {
  4849. return ("\"" + value + "\"")
  4850. } else if (type === 'Number') {
  4851. return ("" + (Number(value)))
  4852. } else {
  4853. return ("" + value)
  4854. }
  4855. }
  4856. function isExplicable (value) {
  4857. var explicitTypes = ['string', 'number', 'boolean'];
  4858. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4859. }
  4860. function isBoolean () {
  4861. var args = [], len = arguments.length;
  4862. while ( len-- ) args[ len ] = arguments[ len ];
  4863. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4864. }
  4865. /* */
  4866. function handleError (err, vm, info) {
  4867. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4868. // See: https://github.com/vuejs/vuex/issues/1505
  4869. pushTarget();
  4870. try {
  4871. if (vm) {
  4872. var cur = vm;
  4873. while ((cur = cur.$parent)) {
  4874. var hooks = cur.$options.errorCaptured;
  4875. if (hooks) {
  4876. for (var i = 0; i < hooks.length; i++) {
  4877. try {
  4878. var capture = hooks[i].call(cur, err, vm, info) === false;
  4879. if (capture) { return }
  4880. } catch (e) {
  4881. globalHandleError(e, cur, 'errorCaptured hook');
  4882. }
  4883. }
  4884. }
  4885. }
  4886. }
  4887. globalHandleError(err, vm, info);
  4888. } finally {
  4889. popTarget();
  4890. }
  4891. }
  4892. function invokeWithErrorHandling (
  4893. handler,
  4894. context,
  4895. args,
  4896. vm,
  4897. info
  4898. ) {
  4899. var res;
  4900. try {
  4901. res = args ? handler.apply(context, args) : handler.call(context);
  4902. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4903. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4904. // issue #9511
  4905. // avoid catch triggering multiple times when nested calls
  4906. res._handled = true;
  4907. }
  4908. } catch (e) {
  4909. handleError(e, vm, info);
  4910. }
  4911. return res
  4912. }
  4913. function globalHandleError (err, vm, info) {
  4914. if (config.errorHandler) {
  4915. try {
  4916. return config.errorHandler.call(null, err, vm, info)
  4917. } catch (e) {
  4918. // if the user intentionally throws the original error in the handler,
  4919. // do not log it twice
  4920. if (e !== err) {
  4921. logError(e, null, 'config.errorHandler');
  4922. }
  4923. }
  4924. }
  4925. logError(err, vm, info);
  4926. }
  4927. function logError (err, vm, info) {
  4928. if (true) {
  4929. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4930. }
  4931. /* istanbul ignore else */
  4932. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4933. console.error(err);
  4934. } else {
  4935. throw err
  4936. }
  4937. }
  4938. /* */
  4939. var callbacks = [];
  4940. var pending = false;
  4941. function flushCallbacks () {
  4942. pending = false;
  4943. var copies = callbacks.slice(0);
  4944. callbacks.length = 0;
  4945. for (var i = 0; i < copies.length; i++) {
  4946. copies[i]();
  4947. }
  4948. }
  4949. // Here we have async deferring wrappers using microtasks.
  4950. // In 2.5 we used (macro) tasks (in combination with microtasks).
  4951. // However, it has subtle problems when state is changed right before repaint
  4952. // (e.g. #6813, out-in transitions).
  4953. // Also, using (macro) tasks in event handler would cause some weird behaviors
  4954. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  4955. // So we now use microtasks everywhere, again.
  4956. // A major drawback of this tradeoff is that there are some scenarios
  4957. // where microtasks have too high a priority and fire in between supposedly
  4958. // sequential events (e.g. #4521, #6690, which have workarounds)
  4959. // or even between bubbling of the same event (#6566).
  4960. var timerFunc;
  4961. // The nextTick behavior leverages the microtask queue, which can be accessed
  4962. // via either native Promise.then or MutationObserver.
  4963. // MutationObserver has wider support, however it is seriously bugged in
  4964. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  4965. // completely stops working after triggering a few times... so, if native
  4966. // Promise is available, we will use it:
  4967. /* istanbul ignore next, $flow-disable-line */
  4968. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  4969. var p = Promise.resolve();
  4970. timerFunc = function () {
  4971. p.then(flushCallbacks);
  4972. // In problematic UIWebViews, Promise.then doesn't completely break, but
  4973. // it can get stuck in a weird state where callbacks are pushed into the
  4974. // microtask queue but the queue isn't being flushed, until the browser
  4975. // needs to do some other work, e.g. handle a timer. Therefore we can
  4976. // "force" the microtask queue to be flushed by adding an empty timer.
  4977. if (isIOS) { setTimeout(noop); }
  4978. };
  4979. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  4980. isNative(MutationObserver) ||
  4981. // PhantomJS and iOS 7.x
  4982. MutationObserver.toString() === '[object MutationObserverConstructor]'
  4983. )) {
  4984. // Use MutationObserver where native Promise is not available,
  4985. // e.g. PhantomJS, iOS7, Android 4.4
  4986. // (#6466 MutationObserver is unreliable in IE11)
  4987. var counter = 1;
  4988. var observer = new MutationObserver(flushCallbacks);
  4989. var textNode = document.createTextNode(String(counter));
  4990. observer.observe(textNode, {
  4991. characterData: true
  4992. });
  4993. timerFunc = function () {
  4994. counter = (counter + 1) % 2;
  4995. textNode.data = String(counter);
  4996. };
  4997. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  4998. // Fallback to setImmediate.
  4999. // Technically it leverages the (macro) task queue,
  5000. // but it is still a better choice than setTimeout.
  5001. timerFunc = function () {
  5002. setImmediate(flushCallbacks);
  5003. };
  5004. } else {
  5005. // Fallback to setTimeout.
  5006. timerFunc = function () {
  5007. setTimeout(flushCallbacks, 0);
  5008. };
  5009. }
  5010. function nextTick (cb, ctx) {
  5011. var _resolve;
  5012. callbacks.push(function () {
  5013. if (cb) {
  5014. try {
  5015. cb.call(ctx);
  5016. } catch (e) {
  5017. handleError(e, ctx, 'nextTick');
  5018. }
  5019. } else if (_resolve) {
  5020. _resolve(ctx);
  5021. }
  5022. });
  5023. if (!pending) {
  5024. pending = true;
  5025. timerFunc();
  5026. }
  5027. // $flow-disable-line
  5028. if (!cb && typeof Promise !== 'undefined') {
  5029. return new Promise(function (resolve) {
  5030. _resolve = resolve;
  5031. })
  5032. }
  5033. }
  5034. /* */
  5035. /* not type checking this file because flow doesn't play well with Proxy */
  5036. var initProxy;
  5037. if (true) {
  5038. var allowedGlobals = makeMap(
  5039. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5040. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5041. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5042. 'require' // for Webpack/Browserify
  5043. );
  5044. var warnNonPresent = function (target, key) {
  5045. warn(
  5046. "Property or method \"" + key + "\" is not defined on the instance but " +
  5047. 'referenced during render. Make sure that this property is reactive, ' +
  5048. 'either in the data option, or for class-based components, by ' +
  5049. 'initializing the property. ' +
  5050. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5051. target
  5052. );
  5053. };
  5054. var warnReservedPrefix = function (target, key) {
  5055. warn(
  5056. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5057. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5058. 'prevent conflicts with Vue internals. ' +
  5059. 'See: https://vuejs.org/v2/api/#data',
  5060. target
  5061. );
  5062. };
  5063. var hasProxy =
  5064. typeof Proxy !== 'undefined' && isNative(Proxy);
  5065. if (hasProxy) {
  5066. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5067. config.keyCodes = new Proxy(config.keyCodes, {
  5068. set: function set (target, key, value) {
  5069. if (isBuiltInModifier(key)) {
  5070. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5071. return false
  5072. } else {
  5073. target[key] = value;
  5074. return true
  5075. }
  5076. }
  5077. });
  5078. }
  5079. var hasHandler = {
  5080. has: function has (target, key) {
  5081. var has = key in target;
  5082. var isAllowed = allowedGlobals(key) ||
  5083. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5084. if (!has && !isAllowed) {
  5085. if (key in target.$data) { warnReservedPrefix(target, key); }
  5086. else { warnNonPresent(target, key); }
  5087. }
  5088. return has || !isAllowed
  5089. }
  5090. };
  5091. var getHandler = {
  5092. get: function get (target, key) {
  5093. if (typeof key === 'string' && !(key in target)) {
  5094. if (key in target.$data) { warnReservedPrefix(target, key); }
  5095. else { warnNonPresent(target, key); }
  5096. }
  5097. return target[key]
  5098. }
  5099. };
  5100. initProxy = function initProxy (vm) {
  5101. if (hasProxy) {
  5102. // determine which proxy handler to use
  5103. var options = vm.$options;
  5104. var handlers = options.render && options.render._withStripped
  5105. ? getHandler
  5106. : hasHandler;
  5107. vm._renderProxy = new Proxy(vm, handlers);
  5108. } else {
  5109. vm._renderProxy = vm;
  5110. }
  5111. };
  5112. }
  5113. /* */
  5114. var seenObjects = new _Set();
  5115. /**
  5116. * Recursively traverse an object to evoke all converted
  5117. * getters, so that every nested property inside the object
  5118. * is collected as a "deep" dependency.
  5119. */
  5120. function traverse (val) {
  5121. _traverse(val, seenObjects);
  5122. seenObjects.clear();
  5123. }
  5124. function _traverse (val, seen) {
  5125. var i, keys;
  5126. var isA = Array.isArray(val);
  5127. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5128. return
  5129. }
  5130. if (val.__ob__) {
  5131. var depId = val.__ob__.dep.id;
  5132. if (seen.has(depId)) {
  5133. return
  5134. }
  5135. seen.add(depId);
  5136. }
  5137. if (isA) {
  5138. i = val.length;
  5139. while (i--) { _traverse(val[i], seen); }
  5140. } else {
  5141. keys = Object.keys(val);
  5142. i = keys.length;
  5143. while (i--) { _traverse(val[keys[i]], seen); }
  5144. }
  5145. }
  5146. var mark;
  5147. var measure;
  5148. if (true) {
  5149. var perf = inBrowser && window.performance;
  5150. /* istanbul ignore if */
  5151. if (
  5152. perf &&
  5153. perf.mark &&
  5154. perf.measure &&
  5155. perf.clearMarks &&
  5156. perf.clearMeasures
  5157. ) {
  5158. mark = function (tag) { return perf.mark(tag); };
  5159. measure = function (name, startTag, endTag) {
  5160. perf.measure(name, startTag, endTag);
  5161. perf.clearMarks(startTag);
  5162. perf.clearMarks(endTag);
  5163. // perf.clearMeasures(name)
  5164. };
  5165. }
  5166. }
  5167. /* */
  5168. var normalizeEvent = cached(function (name) {
  5169. var passive = name.charAt(0) === '&';
  5170. name = passive ? name.slice(1) : name;
  5171. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5172. name = once$$1 ? name.slice(1) : name;
  5173. var capture = name.charAt(0) === '!';
  5174. name = capture ? name.slice(1) : name;
  5175. return {
  5176. name: name,
  5177. once: once$$1,
  5178. capture: capture,
  5179. passive: passive
  5180. }
  5181. });
  5182. function createFnInvoker (fns, vm) {
  5183. function invoker () {
  5184. var arguments$1 = arguments;
  5185. var fns = invoker.fns;
  5186. if (Array.isArray(fns)) {
  5187. var cloned = fns.slice();
  5188. for (var i = 0; i < cloned.length; i++) {
  5189. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5190. }
  5191. } else {
  5192. // return handler return value for single handlers
  5193. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5194. }
  5195. }
  5196. invoker.fns = fns;
  5197. return invoker
  5198. }
  5199. function updateListeners (
  5200. on,
  5201. oldOn,
  5202. add,
  5203. remove$$1,
  5204. createOnceHandler,
  5205. vm
  5206. ) {
  5207. var name, def$$1, cur, old, event;
  5208. for (name in on) {
  5209. def$$1 = cur = on[name];
  5210. old = oldOn[name];
  5211. event = normalizeEvent(name);
  5212. if (isUndef(cur)) {
  5213. true && warn(
  5214. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5215. vm
  5216. );
  5217. } else if (isUndef(old)) {
  5218. if (isUndef(cur.fns)) {
  5219. cur = on[name] = createFnInvoker(cur, vm);
  5220. }
  5221. if (isTrue(event.once)) {
  5222. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5223. }
  5224. add(event.name, cur, event.capture, event.passive, event.params);
  5225. } else if (cur !== old) {
  5226. old.fns = cur;
  5227. on[name] = old;
  5228. }
  5229. }
  5230. for (name in oldOn) {
  5231. if (isUndef(on[name])) {
  5232. event = normalizeEvent(name);
  5233. remove$$1(event.name, oldOn[name], event.capture);
  5234. }
  5235. }
  5236. }
  5237. /* */
  5238. /* */
  5239. // fixed by xxxxxx (mp properties)
  5240. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5241. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5242. if (isUndef(propOptions)) {
  5243. return res
  5244. }
  5245. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5246. var attrs = data.attrs;
  5247. var props = data.props;
  5248. if (isDef(attrs) || isDef(props)) {
  5249. for (var key in propOptions) {
  5250. var altKey = hyphenate(key);
  5251. var result = checkProp(res, props, key, altKey, true) ||
  5252. checkProp(res, attrs, key, altKey, false);
  5253. // externalClass
  5254. if (
  5255. result &&
  5256. res[key] &&
  5257. externalClasses.indexOf(altKey) !== -1 &&
  5258. context[camelize(res[key])]
  5259. ) {
  5260. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5261. res[key] = context[camelize(res[key])];
  5262. }
  5263. }
  5264. }
  5265. return res
  5266. }
  5267. function extractPropsFromVNodeData (
  5268. data,
  5269. Ctor,
  5270. tag,
  5271. context// fixed by xxxxxx
  5272. ) {
  5273. // we are only extracting raw values here.
  5274. // validation and default values are handled in the child
  5275. // component itself.
  5276. var propOptions = Ctor.options.props;
  5277. if (isUndef(propOptions)) {
  5278. // fixed by xxxxxx
  5279. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5280. }
  5281. var res = {};
  5282. var attrs = data.attrs;
  5283. var props = data.props;
  5284. if (isDef(attrs) || isDef(props)) {
  5285. for (var key in propOptions) {
  5286. var altKey = hyphenate(key);
  5287. if (true) {
  5288. var keyInLowerCase = key.toLowerCase();
  5289. if (
  5290. key !== keyInLowerCase &&
  5291. attrs && hasOwn(attrs, keyInLowerCase)
  5292. ) {
  5293. tip(
  5294. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5295. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5296. " \"" + key + "\". " +
  5297. "Note that HTML attributes are case-insensitive and camelCased " +
  5298. "props need to use their kebab-case equivalents when using in-DOM " +
  5299. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5300. );
  5301. }
  5302. }
  5303. checkProp(res, props, key, altKey, true) ||
  5304. checkProp(res, attrs, key, altKey, false);
  5305. }
  5306. }
  5307. // fixed by xxxxxx
  5308. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5309. }
  5310. function checkProp (
  5311. res,
  5312. hash,
  5313. key,
  5314. altKey,
  5315. preserve
  5316. ) {
  5317. if (isDef(hash)) {
  5318. if (hasOwn(hash, key)) {
  5319. res[key] = hash[key];
  5320. if (!preserve) {
  5321. delete hash[key];
  5322. }
  5323. return true
  5324. } else if (hasOwn(hash, altKey)) {
  5325. res[key] = hash[altKey];
  5326. if (!preserve) {
  5327. delete hash[altKey];
  5328. }
  5329. return true
  5330. }
  5331. }
  5332. return false
  5333. }
  5334. /* */
  5335. // The template compiler attempts to minimize the need for normalization by
  5336. // statically analyzing the template at compile time.
  5337. //
  5338. // For plain HTML markup, normalization can be completely skipped because the
  5339. // generated render function is guaranteed to return Array<VNode>. There are
  5340. // two cases where extra normalization is needed:
  5341. // 1. When the children contains components - because a functional component
  5342. // may return an Array instead of a single root. In this case, just a simple
  5343. // normalization is needed - if any child is an Array, we flatten the whole
  5344. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5345. // because functional components already normalize their own children.
  5346. function simpleNormalizeChildren (children) {
  5347. for (var i = 0; i < children.length; i++) {
  5348. if (Array.isArray(children[i])) {
  5349. return Array.prototype.concat.apply([], children)
  5350. }
  5351. }
  5352. return children
  5353. }
  5354. // 2. When the children contains constructs that always generated nested Arrays,
  5355. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5356. // with hand-written render functions / JSX. In such cases a full normalization
  5357. // is needed to cater to all possible types of children values.
  5358. function normalizeChildren (children) {
  5359. return isPrimitive(children)
  5360. ? [createTextVNode(children)]
  5361. : Array.isArray(children)
  5362. ? normalizeArrayChildren(children)
  5363. : undefined
  5364. }
  5365. function isTextNode (node) {
  5366. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5367. }
  5368. function normalizeArrayChildren (children, nestedIndex) {
  5369. var res = [];
  5370. var i, c, lastIndex, last;
  5371. for (i = 0; i < children.length; i++) {
  5372. c = children[i];
  5373. if (isUndef(c) || typeof c === 'boolean') { continue }
  5374. lastIndex = res.length - 1;
  5375. last = res[lastIndex];
  5376. // nested
  5377. if (Array.isArray(c)) {
  5378. if (c.length > 0) {
  5379. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5380. // merge adjacent text nodes
  5381. if (isTextNode(c[0]) && isTextNode(last)) {
  5382. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5383. c.shift();
  5384. }
  5385. res.push.apply(res, c);
  5386. }
  5387. } else if (isPrimitive(c)) {
  5388. if (isTextNode(last)) {
  5389. // merge adjacent text nodes
  5390. // this is necessary for SSR hydration because text nodes are
  5391. // essentially merged when rendered to HTML strings
  5392. res[lastIndex] = createTextVNode(last.text + c);
  5393. } else if (c !== '') {
  5394. // convert primitive to vnode
  5395. res.push(createTextVNode(c));
  5396. }
  5397. } else {
  5398. if (isTextNode(c) && isTextNode(last)) {
  5399. // merge adjacent text nodes
  5400. res[lastIndex] = createTextVNode(last.text + c.text);
  5401. } else {
  5402. // default key for nested array children (likely generated by v-for)
  5403. if (isTrue(children._isVList) &&
  5404. isDef(c.tag) &&
  5405. isUndef(c.key) &&
  5406. isDef(nestedIndex)) {
  5407. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5408. }
  5409. res.push(c);
  5410. }
  5411. }
  5412. }
  5413. return res
  5414. }
  5415. /* */
  5416. function initProvide (vm) {
  5417. var provide = vm.$options.provide;
  5418. if (provide) {
  5419. vm._provided = typeof provide === 'function'
  5420. ? provide.call(vm)
  5421. : provide;
  5422. }
  5423. }
  5424. function initInjections (vm) {
  5425. var result = resolveInject(vm.$options.inject, vm);
  5426. if (result) {
  5427. toggleObserving(false);
  5428. Object.keys(result).forEach(function (key) {
  5429. /* istanbul ignore else */
  5430. if (true) {
  5431. defineReactive$$1(vm, key, result[key], function () {
  5432. warn(
  5433. "Avoid mutating an injected value directly since the changes will be " +
  5434. "overwritten whenever the provided component re-renders. " +
  5435. "injection being mutated: \"" + key + "\"",
  5436. vm
  5437. );
  5438. });
  5439. } else {}
  5440. });
  5441. toggleObserving(true);
  5442. }
  5443. }
  5444. function resolveInject (inject, vm) {
  5445. if (inject) {
  5446. // inject is :any because flow is not smart enough to figure out cached
  5447. var result = Object.create(null);
  5448. var keys = hasSymbol
  5449. ? Reflect.ownKeys(inject)
  5450. : Object.keys(inject);
  5451. for (var i = 0; i < keys.length; i++) {
  5452. var key = keys[i];
  5453. // #6574 in case the inject object is observed...
  5454. if (key === '__ob__') { continue }
  5455. var provideKey = inject[key].from;
  5456. var source = vm;
  5457. while (source) {
  5458. if (source._provided && hasOwn(source._provided, provideKey)) {
  5459. result[key] = source._provided[provideKey];
  5460. break
  5461. }
  5462. source = source.$parent;
  5463. }
  5464. if (!source) {
  5465. if ('default' in inject[key]) {
  5466. var provideDefault = inject[key].default;
  5467. result[key] = typeof provideDefault === 'function'
  5468. ? provideDefault.call(vm)
  5469. : provideDefault;
  5470. } else if (true) {
  5471. warn(("Injection \"" + key + "\" not found"), vm);
  5472. }
  5473. }
  5474. }
  5475. return result
  5476. }
  5477. }
  5478. /* */
  5479. /**
  5480. * Runtime helper for resolving raw children VNodes into a slot object.
  5481. */
  5482. function resolveSlots (
  5483. children,
  5484. context
  5485. ) {
  5486. if (!children || !children.length) {
  5487. return {}
  5488. }
  5489. var slots = {};
  5490. for (var i = 0, l = children.length; i < l; i++) {
  5491. var child = children[i];
  5492. var data = child.data;
  5493. // remove slot attribute if the node is resolved as a Vue slot node
  5494. if (data && data.attrs && data.attrs.slot) {
  5495. delete data.attrs.slot;
  5496. }
  5497. // named slots should only be respected if the vnode was rendered in the
  5498. // same context.
  5499. if ((child.context === context || child.fnContext === context) &&
  5500. data && data.slot != null
  5501. ) {
  5502. var name = data.slot;
  5503. var slot = (slots[name] || (slots[name] = []));
  5504. if (child.tag === 'template') {
  5505. slot.push.apply(slot, child.children || []);
  5506. } else {
  5507. slot.push(child);
  5508. }
  5509. } else {
  5510. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5511. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5512. (slots['page'] || (slots['page'] = [])).push(child);
  5513. }else{
  5514. (slots.default || (slots.default = [])).push(child);
  5515. }
  5516. }
  5517. }
  5518. // ignore slots that contains only whitespace
  5519. for (var name$1 in slots) {
  5520. if (slots[name$1].every(isWhitespace)) {
  5521. delete slots[name$1];
  5522. }
  5523. }
  5524. return slots
  5525. }
  5526. function isWhitespace (node) {
  5527. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5528. }
  5529. /* */
  5530. function normalizeScopedSlots (
  5531. slots,
  5532. normalSlots,
  5533. prevSlots
  5534. ) {
  5535. var res;
  5536. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5537. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5538. var key = slots && slots.$key;
  5539. if (!slots) {
  5540. res = {};
  5541. } else if (slots._normalized) {
  5542. // fast path 1: child component re-render only, parent did not change
  5543. return slots._normalized
  5544. } else if (
  5545. isStable &&
  5546. prevSlots &&
  5547. prevSlots !== emptyObject &&
  5548. key === prevSlots.$key &&
  5549. !hasNormalSlots &&
  5550. !prevSlots.$hasNormal
  5551. ) {
  5552. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5553. // only need to normalize once
  5554. return prevSlots
  5555. } else {
  5556. res = {};
  5557. for (var key$1 in slots) {
  5558. if (slots[key$1] && key$1[0] !== '$') {
  5559. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5560. }
  5561. }
  5562. }
  5563. // expose normal slots on scopedSlots
  5564. for (var key$2 in normalSlots) {
  5565. if (!(key$2 in res)) {
  5566. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5567. }
  5568. }
  5569. // avoriaz seems to mock a non-extensible $scopedSlots object
  5570. // and when that is passed down this would cause an error
  5571. if (slots && Object.isExtensible(slots)) {
  5572. (slots)._normalized = res;
  5573. }
  5574. def(res, '$stable', isStable);
  5575. def(res, '$key', key);
  5576. def(res, '$hasNormal', hasNormalSlots);
  5577. return res
  5578. }
  5579. function normalizeScopedSlot(normalSlots, key, fn) {
  5580. var normalized = function () {
  5581. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5582. res = res && typeof res === 'object' && !Array.isArray(res)
  5583. ? [res] // single vnode
  5584. : normalizeChildren(res);
  5585. return res && (
  5586. res.length === 0 ||
  5587. (res.length === 1 && res[0].isComment) // #9658
  5588. ) ? undefined
  5589. : res
  5590. };
  5591. // this is a slot using the new v-slot syntax without scope. although it is
  5592. // compiled as a scoped slot, render fn users would expect it to be present
  5593. // on this.$slots because the usage is semantically a normal slot.
  5594. if (fn.proxy) {
  5595. Object.defineProperty(normalSlots, key, {
  5596. get: normalized,
  5597. enumerable: true,
  5598. configurable: true
  5599. });
  5600. }
  5601. return normalized
  5602. }
  5603. function proxyNormalSlot(slots, key) {
  5604. return function () { return slots[key]; }
  5605. }
  5606. /* */
  5607. /**
  5608. * Runtime helper for rendering v-for lists.
  5609. */
  5610. function renderList (
  5611. val,
  5612. render
  5613. ) {
  5614. var ret, i, l, keys, key;
  5615. if (Array.isArray(val) || typeof val === 'string') {
  5616. ret = new Array(val.length);
  5617. for (i = 0, l = val.length; i < l; i++) {
  5618. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5619. }
  5620. } else if (typeof val === 'number') {
  5621. ret = new Array(val);
  5622. for (i = 0; i < val; i++) {
  5623. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5624. }
  5625. } else if (isObject(val)) {
  5626. if (hasSymbol && val[Symbol.iterator]) {
  5627. ret = [];
  5628. var iterator = val[Symbol.iterator]();
  5629. var result = iterator.next();
  5630. while (!result.done) {
  5631. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5632. result = iterator.next();
  5633. }
  5634. } else {
  5635. keys = Object.keys(val);
  5636. ret = new Array(keys.length);
  5637. for (i = 0, l = keys.length; i < l; i++) {
  5638. key = keys[i];
  5639. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5640. }
  5641. }
  5642. }
  5643. if (!isDef(ret)) {
  5644. ret = [];
  5645. }
  5646. (ret)._isVList = true;
  5647. return ret
  5648. }
  5649. /* */
  5650. /**
  5651. * Runtime helper for rendering <slot>
  5652. */
  5653. function renderSlot (
  5654. name,
  5655. fallback,
  5656. props,
  5657. bindObject
  5658. ) {
  5659. var scopedSlotFn = this.$scopedSlots[name];
  5660. var nodes;
  5661. if (scopedSlotFn) { // scoped slot
  5662. props = props || {};
  5663. if (bindObject) {
  5664. if ( true && !isObject(bindObject)) {
  5665. warn(
  5666. 'slot v-bind without argument expects an Object',
  5667. this
  5668. );
  5669. }
  5670. props = extend(extend({}, bindObject), props);
  5671. }
  5672. // fixed by xxxxxx app-plus scopedSlot
  5673. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5674. } else {
  5675. nodes = this.$slots[name] || fallback;
  5676. }
  5677. var target = props && props.slot;
  5678. if (target) {
  5679. return this.$createElement('template', { slot: target }, nodes)
  5680. } else {
  5681. return nodes
  5682. }
  5683. }
  5684. /* */
  5685. /**
  5686. * Runtime helper for resolving filters
  5687. */
  5688. function resolveFilter (id) {
  5689. return resolveAsset(this.$options, 'filters', id, true) || identity
  5690. }
  5691. /* */
  5692. function isKeyNotMatch (expect, actual) {
  5693. if (Array.isArray(expect)) {
  5694. return expect.indexOf(actual) === -1
  5695. } else {
  5696. return expect !== actual
  5697. }
  5698. }
  5699. /**
  5700. * Runtime helper for checking keyCodes from config.
  5701. * exposed as Vue.prototype._k
  5702. * passing in eventKeyName as last argument separately for backwards compat
  5703. */
  5704. function checkKeyCodes (
  5705. eventKeyCode,
  5706. key,
  5707. builtInKeyCode,
  5708. eventKeyName,
  5709. builtInKeyName
  5710. ) {
  5711. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5712. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5713. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5714. } else if (mappedKeyCode) {
  5715. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5716. } else if (eventKeyName) {
  5717. return hyphenate(eventKeyName) !== key
  5718. }
  5719. }
  5720. /* */
  5721. /**
  5722. * Runtime helper for merging v-bind="object" into a VNode's data.
  5723. */
  5724. function bindObjectProps (
  5725. data,
  5726. tag,
  5727. value,
  5728. asProp,
  5729. isSync
  5730. ) {
  5731. if (value) {
  5732. if (!isObject(value)) {
  5733. true && warn(
  5734. 'v-bind without argument expects an Object or Array value',
  5735. this
  5736. );
  5737. } else {
  5738. if (Array.isArray(value)) {
  5739. value = toObject(value);
  5740. }
  5741. var hash;
  5742. var loop = function ( key ) {
  5743. if (
  5744. key === 'class' ||
  5745. key === 'style' ||
  5746. isReservedAttribute(key)
  5747. ) {
  5748. hash = data;
  5749. } else {
  5750. var type = data.attrs && data.attrs.type;
  5751. hash = asProp || config.mustUseProp(tag, type, key)
  5752. ? data.domProps || (data.domProps = {})
  5753. : data.attrs || (data.attrs = {});
  5754. }
  5755. var camelizedKey = camelize(key);
  5756. var hyphenatedKey = hyphenate(key);
  5757. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5758. hash[key] = value[key];
  5759. if (isSync) {
  5760. var on = data.on || (data.on = {});
  5761. on[("update:" + key)] = function ($event) {
  5762. value[key] = $event;
  5763. };
  5764. }
  5765. }
  5766. };
  5767. for (var key in value) loop( key );
  5768. }
  5769. }
  5770. return data
  5771. }
  5772. /* */
  5773. /**
  5774. * Runtime helper for rendering static trees.
  5775. */
  5776. function renderStatic (
  5777. index,
  5778. isInFor
  5779. ) {
  5780. var cached = this._staticTrees || (this._staticTrees = []);
  5781. var tree = cached[index];
  5782. // if has already-rendered static tree and not inside v-for,
  5783. // we can reuse the same tree.
  5784. if (tree && !isInFor) {
  5785. return tree
  5786. }
  5787. // otherwise, render a fresh tree.
  5788. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5789. this._renderProxy,
  5790. null,
  5791. this // for render fns generated for functional component templates
  5792. );
  5793. markStatic(tree, ("__static__" + index), false);
  5794. return tree
  5795. }
  5796. /**
  5797. * Runtime helper for v-once.
  5798. * Effectively it means marking the node as static with a unique key.
  5799. */
  5800. function markOnce (
  5801. tree,
  5802. index,
  5803. key
  5804. ) {
  5805. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5806. return tree
  5807. }
  5808. function markStatic (
  5809. tree,
  5810. key,
  5811. isOnce
  5812. ) {
  5813. if (Array.isArray(tree)) {
  5814. for (var i = 0; i < tree.length; i++) {
  5815. if (tree[i] && typeof tree[i] !== 'string') {
  5816. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5817. }
  5818. }
  5819. } else {
  5820. markStaticNode(tree, key, isOnce);
  5821. }
  5822. }
  5823. function markStaticNode (node, key, isOnce) {
  5824. node.isStatic = true;
  5825. node.key = key;
  5826. node.isOnce = isOnce;
  5827. }
  5828. /* */
  5829. function bindObjectListeners (data, value) {
  5830. if (value) {
  5831. if (!isPlainObject(value)) {
  5832. true && warn(
  5833. 'v-on without argument expects an Object value',
  5834. this
  5835. );
  5836. } else {
  5837. var on = data.on = data.on ? extend({}, data.on) : {};
  5838. for (var key in value) {
  5839. var existing = on[key];
  5840. var ours = value[key];
  5841. on[key] = existing ? [].concat(existing, ours) : ours;
  5842. }
  5843. }
  5844. }
  5845. return data
  5846. }
  5847. /* */
  5848. function resolveScopedSlots (
  5849. fns, // see flow/vnode
  5850. res,
  5851. // the following are added in 2.6
  5852. hasDynamicKeys,
  5853. contentHashKey
  5854. ) {
  5855. res = res || { $stable: !hasDynamicKeys };
  5856. for (var i = 0; i < fns.length; i++) {
  5857. var slot = fns[i];
  5858. if (Array.isArray(slot)) {
  5859. resolveScopedSlots(slot, res, hasDynamicKeys);
  5860. } else if (slot) {
  5861. // marker for reverse proxying v-slot without scope on this.$slots
  5862. if (slot.proxy) {
  5863. slot.fn.proxy = true;
  5864. }
  5865. res[slot.key] = slot.fn;
  5866. }
  5867. }
  5868. if (contentHashKey) {
  5869. (res).$key = contentHashKey;
  5870. }
  5871. return res
  5872. }
  5873. /* */
  5874. function bindDynamicKeys (baseObj, values) {
  5875. for (var i = 0; i < values.length; i += 2) {
  5876. var key = values[i];
  5877. if (typeof key === 'string' && key) {
  5878. baseObj[values[i]] = values[i + 1];
  5879. } else if ( true && key !== '' && key !== null) {
  5880. // null is a special value for explicitly removing a binding
  5881. warn(
  5882. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5883. this
  5884. );
  5885. }
  5886. }
  5887. return baseObj
  5888. }
  5889. // helper to dynamically append modifier runtime markers to event names.
  5890. // ensure only append when value is already string, otherwise it will be cast
  5891. // to string and cause the type check to miss.
  5892. function prependModifier (value, symbol) {
  5893. return typeof value === 'string' ? symbol + value : value
  5894. }
  5895. /* */
  5896. function installRenderHelpers (target) {
  5897. target._o = markOnce;
  5898. target._n = toNumber;
  5899. target._s = toString;
  5900. target._l = renderList;
  5901. target._t = renderSlot;
  5902. target._q = looseEqual;
  5903. target._i = looseIndexOf;
  5904. target._m = renderStatic;
  5905. target._f = resolveFilter;
  5906. target._k = checkKeyCodes;
  5907. target._b = bindObjectProps;
  5908. target._v = createTextVNode;
  5909. target._e = createEmptyVNode;
  5910. target._u = resolveScopedSlots;
  5911. target._g = bindObjectListeners;
  5912. target._d = bindDynamicKeys;
  5913. target._p = prependModifier;
  5914. }
  5915. /* */
  5916. function FunctionalRenderContext (
  5917. data,
  5918. props,
  5919. children,
  5920. parent,
  5921. Ctor
  5922. ) {
  5923. var this$1 = this;
  5924. var options = Ctor.options;
  5925. // ensure the createElement function in functional components
  5926. // gets a unique context - this is necessary for correct named slot check
  5927. var contextVm;
  5928. if (hasOwn(parent, '_uid')) {
  5929. contextVm = Object.create(parent);
  5930. // $flow-disable-line
  5931. contextVm._original = parent;
  5932. } else {
  5933. // the context vm passed in is a functional context as well.
  5934. // in this case we want to make sure we are able to get a hold to the
  5935. // real context instance.
  5936. contextVm = parent;
  5937. // $flow-disable-line
  5938. parent = parent._original;
  5939. }
  5940. var isCompiled = isTrue(options._compiled);
  5941. var needNormalization = !isCompiled;
  5942. this.data = data;
  5943. this.props = props;
  5944. this.children = children;
  5945. this.parent = parent;
  5946. this.listeners = data.on || emptyObject;
  5947. this.injections = resolveInject(options.inject, parent);
  5948. this.slots = function () {
  5949. if (!this$1.$slots) {
  5950. normalizeScopedSlots(
  5951. data.scopedSlots,
  5952. this$1.$slots = resolveSlots(children, parent)
  5953. );
  5954. }
  5955. return this$1.$slots
  5956. };
  5957. Object.defineProperty(this, 'scopedSlots', ({
  5958. enumerable: true,
  5959. get: function get () {
  5960. return normalizeScopedSlots(data.scopedSlots, this.slots())
  5961. }
  5962. }));
  5963. // support for compiled functional template
  5964. if (isCompiled) {
  5965. // exposing $options for renderStatic()
  5966. this.$options = options;
  5967. // pre-resolve slots for renderSlot()
  5968. this.$slots = this.slots();
  5969. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  5970. }
  5971. if (options._scopeId) {
  5972. this._c = function (a, b, c, d) {
  5973. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  5974. if (vnode && !Array.isArray(vnode)) {
  5975. vnode.fnScopeId = options._scopeId;
  5976. vnode.fnContext = parent;
  5977. }
  5978. return vnode
  5979. };
  5980. } else {
  5981. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  5982. }
  5983. }
  5984. installRenderHelpers(FunctionalRenderContext.prototype);
  5985. function createFunctionalComponent (
  5986. Ctor,
  5987. propsData,
  5988. data,
  5989. contextVm,
  5990. children
  5991. ) {
  5992. var options = Ctor.options;
  5993. var props = {};
  5994. var propOptions = options.props;
  5995. if (isDef(propOptions)) {
  5996. for (var key in propOptions) {
  5997. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  5998. }
  5999. } else {
  6000. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6001. if (isDef(data.props)) { mergeProps(props, data.props); }
  6002. }
  6003. var renderContext = new FunctionalRenderContext(
  6004. data,
  6005. props,
  6006. children,
  6007. contextVm,
  6008. Ctor
  6009. );
  6010. var vnode = options.render.call(null, renderContext._c, renderContext);
  6011. if (vnode instanceof VNode) {
  6012. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6013. } else if (Array.isArray(vnode)) {
  6014. var vnodes = normalizeChildren(vnode) || [];
  6015. var res = new Array(vnodes.length);
  6016. for (var i = 0; i < vnodes.length; i++) {
  6017. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6018. }
  6019. return res
  6020. }
  6021. }
  6022. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6023. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6024. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6025. // that should not be matched to match.
  6026. var clone = cloneVNode(vnode);
  6027. clone.fnContext = contextVm;
  6028. clone.fnOptions = options;
  6029. if (true) {
  6030. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6031. }
  6032. if (data.slot) {
  6033. (clone.data || (clone.data = {})).slot = data.slot;
  6034. }
  6035. return clone
  6036. }
  6037. function mergeProps (to, from) {
  6038. for (var key in from) {
  6039. to[camelize(key)] = from[key];
  6040. }
  6041. }
  6042. /* */
  6043. /* */
  6044. /* */
  6045. /* */
  6046. // inline hooks to be invoked on component VNodes during patch
  6047. var componentVNodeHooks = {
  6048. init: function init (vnode, hydrating) {
  6049. if (
  6050. vnode.componentInstance &&
  6051. !vnode.componentInstance._isDestroyed &&
  6052. vnode.data.keepAlive
  6053. ) {
  6054. // kept-alive components, treat as a patch
  6055. var mountedNode = vnode; // work around flow
  6056. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6057. } else {
  6058. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6059. vnode,
  6060. activeInstance
  6061. );
  6062. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6063. }
  6064. },
  6065. prepatch: function prepatch (oldVnode, vnode) {
  6066. var options = vnode.componentOptions;
  6067. var child = vnode.componentInstance = oldVnode.componentInstance;
  6068. updateChildComponent(
  6069. child,
  6070. options.propsData, // updated props
  6071. options.listeners, // updated listeners
  6072. vnode, // new parent vnode
  6073. options.children // new children
  6074. );
  6075. },
  6076. insert: function insert (vnode) {
  6077. var context = vnode.context;
  6078. var componentInstance = vnode.componentInstance;
  6079. if (!componentInstance._isMounted) {
  6080. callHook(componentInstance, 'onServiceCreated');
  6081. callHook(componentInstance, 'onServiceAttached');
  6082. componentInstance._isMounted = true;
  6083. callHook(componentInstance, 'mounted');
  6084. }
  6085. if (vnode.data.keepAlive) {
  6086. if (context._isMounted) {
  6087. // vue-router#1212
  6088. // During updates, a kept-alive component's child components may
  6089. // change, so directly walking the tree here may call activated hooks
  6090. // on incorrect children. Instead we push them into a queue which will
  6091. // be processed after the whole patch process ended.
  6092. queueActivatedComponent(componentInstance);
  6093. } else {
  6094. activateChildComponent(componentInstance, true /* direct */);
  6095. }
  6096. }
  6097. },
  6098. destroy: function destroy (vnode) {
  6099. var componentInstance = vnode.componentInstance;
  6100. if (!componentInstance._isDestroyed) {
  6101. if (!vnode.data.keepAlive) {
  6102. componentInstance.$destroy();
  6103. } else {
  6104. deactivateChildComponent(componentInstance, true /* direct */);
  6105. }
  6106. }
  6107. }
  6108. };
  6109. var hooksToMerge = Object.keys(componentVNodeHooks);
  6110. function createComponent (
  6111. Ctor,
  6112. data,
  6113. context,
  6114. children,
  6115. tag
  6116. ) {
  6117. if (isUndef(Ctor)) {
  6118. return
  6119. }
  6120. var baseCtor = context.$options._base;
  6121. // plain options object: turn it into a constructor
  6122. if (isObject(Ctor)) {
  6123. Ctor = baseCtor.extend(Ctor);
  6124. }
  6125. // if at this stage it's not a constructor or an async component factory,
  6126. // reject.
  6127. if (typeof Ctor !== 'function') {
  6128. if (true) {
  6129. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6130. }
  6131. return
  6132. }
  6133. // async component
  6134. var asyncFactory;
  6135. if (isUndef(Ctor.cid)) {
  6136. asyncFactory = Ctor;
  6137. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6138. if (Ctor === undefined) {
  6139. // return a placeholder node for async component, which is rendered
  6140. // as a comment node but preserves all the raw information for the node.
  6141. // the information will be used for async server-rendering and hydration.
  6142. return createAsyncPlaceholder(
  6143. asyncFactory,
  6144. data,
  6145. context,
  6146. children,
  6147. tag
  6148. )
  6149. }
  6150. }
  6151. data = data || {};
  6152. // resolve constructor options in case global mixins are applied after
  6153. // component constructor creation
  6154. resolveConstructorOptions(Ctor);
  6155. // transform component v-model data into props & events
  6156. if (isDef(data.model)) {
  6157. transformModel(Ctor.options, data);
  6158. }
  6159. // extract props
  6160. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6161. // functional component
  6162. if (isTrue(Ctor.options.functional)) {
  6163. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6164. }
  6165. // extract listeners, since these needs to be treated as
  6166. // child component listeners instead of DOM listeners
  6167. var listeners = data.on;
  6168. // replace with listeners with .native modifier
  6169. // so it gets processed during parent component patch.
  6170. data.on = data.nativeOn;
  6171. if (isTrue(Ctor.options.abstract)) {
  6172. // abstract components do not keep anything
  6173. // other than props & listeners & slot
  6174. // work around flow
  6175. var slot = data.slot;
  6176. data = {};
  6177. if (slot) {
  6178. data.slot = slot;
  6179. }
  6180. }
  6181. // install component management hooks onto the placeholder node
  6182. installComponentHooks(data);
  6183. // return a placeholder vnode
  6184. var name = Ctor.options.name || tag;
  6185. var vnode = new VNode(
  6186. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6187. data, undefined, undefined, undefined, context,
  6188. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6189. asyncFactory
  6190. );
  6191. return vnode
  6192. }
  6193. function createComponentInstanceForVnode (
  6194. vnode, // we know it's MountedComponentVNode but flow doesn't
  6195. parent // activeInstance in lifecycle state
  6196. ) {
  6197. var options = {
  6198. _isComponent: true,
  6199. _parentVnode: vnode,
  6200. parent: parent
  6201. };
  6202. // check inline-template render functions
  6203. var inlineTemplate = vnode.data.inlineTemplate;
  6204. if (isDef(inlineTemplate)) {
  6205. options.render = inlineTemplate.render;
  6206. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6207. }
  6208. return new vnode.componentOptions.Ctor(options)
  6209. }
  6210. function installComponentHooks (data) {
  6211. var hooks = data.hook || (data.hook = {});
  6212. for (var i = 0; i < hooksToMerge.length; i++) {
  6213. var key = hooksToMerge[i];
  6214. var existing = hooks[key];
  6215. var toMerge = componentVNodeHooks[key];
  6216. if (existing !== toMerge && !(existing && existing._merged)) {
  6217. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6218. }
  6219. }
  6220. }
  6221. function mergeHook$1 (f1, f2) {
  6222. var merged = function (a, b) {
  6223. // flow complains about extra args which is why we use any
  6224. f1(a, b);
  6225. f2(a, b);
  6226. };
  6227. merged._merged = true;
  6228. return merged
  6229. }
  6230. // transform component v-model info (value and callback) into
  6231. // prop and event handler respectively.
  6232. function transformModel (options, data) {
  6233. var prop = (options.model && options.model.prop) || 'value';
  6234. var event = (options.model && options.model.event) || 'input'
  6235. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6236. var on = data.on || (data.on = {});
  6237. var existing = on[event];
  6238. var callback = data.model.callback;
  6239. if (isDef(existing)) {
  6240. if (
  6241. Array.isArray(existing)
  6242. ? existing.indexOf(callback) === -1
  6243. : existing !== callback
  6244. ) {
  6245. on[event] = [callback].concat(existing);
  6246. }
  6247. } else {
  6248. on[event] = callback;
  6249. }
  6250. }
  6251. /* */
  6252. var SIMPLE_NORMALIZE = 1;
  6253. var ALWAYS_NORMALIZE = 2;
  6254. // wrapper function for providing a more flexible interface
  6255. // without getting yelled at by flow
  6256. function createElement (
  6257. context,
  6258. tag,
  6259. data,
  6260. children,
  6261. normalizationType,
  6262. alwaysNormalize
  6263. ) {
  6264. if (Array.isArray(data) || isPrimitive(data)) {
  6265. normalizationType = children;
  6266. children = data;
  6267. data = undefined;
  6268. }
  6269. if (isTrue(alwaysNormalize)) {
  6270. normalizationType = ALWAYS_NORMALIZE;
  6271. }
  6272. return _createElement(context, tag, data, children, normalizationType)
  6273. }
  6274. function _createElement (
  6275. context,
  6276. tag,
  6277. data,
  6278. children,
  6279. normalizationType
  6280. ) {
  6281. if (isDef(data) && isDef((data).__ob__)) {
  6282. true && warn(
  6283. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6284. 'Always create fresh vnode data objects in each render!',
  6285. context
  6286. );
  6287. return createEmptyVNode()
  6288. }
  6289. // object syntax in v-bind
  6290. if (isDef(data) && isDef(data.is)) {
  6291. tag = data.is;
  6292. }
  6293. if (!tag) {
  6294. // in case of component :is set to falsy value
  6295. return createEmptyVNode()
  6296. }
  6297. // warn against non-primitive key
  6298. if ( true &&
  6299. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6300. ) {
  6301. {
  6302. warn(
  6303. 'Avoid using non-primitive value as key, ' +
  6304. 'use string/number value instead.',
  6305. context
  6306. );
  6307. }
  6308. }
  6309. // support single function children as default scoped slot
  6310. if (Array.isArray(children) &&
  6311. typeof children[0] === 'function'
  6312. ) {
  6313. data = data || {};
  6314. data.scopedSlots = { default: children[0] };
  6315. children.length = 0;
  6316. }
  6317. if (normalizationType === ALWAYS_NORMALIZE) {
  6318. children = normalizeChildren(children);
  6319. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6320. children = simpleNormalizeChildren(children);
  6321. }
  6322. var vnode, ns;
  6323. if (typeof tag === 'string') {
  6324. var Ctor;
  6325. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6326. if (config.isReservedTag(tag)) {
  6327. // platform built-in elements
  6328. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6329. warn(
  6330. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6331. context
  6332. );
  6333. }
  6334. vnode = new VNode(
  6335. config.parsePlatformTagName(tag), data, children,
  6336. undefined, undefined, context
  6337. );
  6338. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6339. // component
  6340. vnode = createComponent(Ctor, data, context, children, tag);
  6341. } else {
  6342. // unknown or unlisted namespaced elements
  6343. // check at runtime because it may get assigned a namespace when its
  6344. // parent normalizes children
  6345. vnode = new VNode(
  6346. tag, data, children,
  6347. undefined, undefined, context
  6348. );
  6349. }
  6350. } else {
  6351. // direct component options / constructor
  6352. vnode = createComponent(tag, data, context, children);
  6353. }
  6354. if (Array.isArray(vnode)) {
  6355. return vnode
  6356. } else if (isDef(vnode)) {
  6357. if (isDef(ns)) { applyNS(vnode, ns); }
  6358. if (isDef(data)) { registerDeepBindings(data); }
  6359. return vnode
  6360. } else {
  6361. return createEmptyVNode()
  6362. }
  6363. }
  6364. function applyNS (vnode, ns, force) {
  6365. vnode.ns = ns;
  6366. if (vnode.tag === 'foreignObject') {
  6367. // use default namespace inside foreignObject
  6368. ns = undefined;
  6369. force = true;
  6370. }
  6371. if (isDef(vnode.children)) {
  6372. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6373. var child = vnode.children[i];
  6374. if (isDef(child.tag) && (
  6375. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6376. applyNS(child, ns, force);
  6377. }
  6378. }
  6379. }
  6380. }
  6381. // ref #5318
  6382. // necessary to ensure parent re-render when deep bindings like :style and
  6383. // :class are used on slot nodes
  6384. function registerDeepBindings (data) {
  6385. if (isObject(data.style)) {
  6386. traverse(data.style);
  6387. }
  6388. if (isObject(data.class)) {
  6389. traverse(data.class);
  6390. }
  6391. }
  6392. /* */
  6393. function initRender (vm) {
  6394. vm._vnode = null; // the root of the child tree
  6395. vm._staticTrees = null; // v-once cached trees
  6396. var options = vm.$options;
  6397. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6398. var renderContext = parentVnode && parentVnode.context;
  6399. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6400. vm.$scopedSlots = emptyObject;
  6401. // bind the createElement fn to this instance
  6402. // so that we get proper render context inside it.
  6403. // args order: tag, data, children, normalizationType, alwaysNormalize
  6404. // internal version is used by render functions compiled from templates
  6405. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6406. // normalization is always applied for the public version, used in
  6407. // user-written render functions.
  6408. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6409. // $attrs & $listeners are exposed for easier HOC creation.
  6410. // they need to be reactive so that HOCs using them are always updated
  6411. var parentData = parentVnode && parentVnode.data;
  6412. /* istanbul ignore else */
  6413. if (true) {
  6414. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6415. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6416. }, true);
  6417. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6418. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6419. }, true);
  6420. } else {}
  6421. }
  6422. var currentRenderingInstance = null;
  6423. function renderMixin (Vue) {
  6424. // install runtime convenience helpers
  6425. installRenderHelpers(Vue.prototype);
  6426. Vue.prototype.$nextTick = function (fn) {
  6427. return nextTick(fn, this)
  6428. };
  6429. Vue.prototype._render = function () {
  6430. var vm = this;
  6431. var ref = vm.$options;
  6432. var render = ref.render;
  6433. var _parentVnode = ref._parentVnode;
  6434. if (_parentVnode) {
  6435. vm.$scopedSlots = normalizeScopedSlots(
  6436. _parentVnode.data.scopedSlots,
  6437. vm.$slots,
  6438. vm.$scopedSlots
  6439. );
  6440. }
  6441. // set parent vnode. this allows render functions to have access
  6442. // to the data on the placeholder node.
  6443. vm.$vnode = _parentVnode;
  6444. // render self
  6445. var vnode;
  6446. try {
  6447. // There's no need to maintain a stack because all render fns are called
  6448. // separately from one another. Nested component's render fns are called
  6449. // when parent component is patched.
  6450. currentRenderingInstance = vm;
  6451. vnode = render.call(vm._renderProxy, vm.$createElement);
  6452. } catch (e) {
  6453. handleError(e, vm, "render");
  6454. // return error render result,
  6455. // or previous vnode to prevent render error causing blank component
  6456. /* istanbul ignore else */
  6457. if ( true && vm.$options.renderError) {
  6458. try {
  6459. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6460. } catch (e) {
  6461. handleError(e, vm, "renderError");
  6462. vnode = vm._vnode;
  6463. }
  6464. } else {
  6465. vnode = vm._vnode;
  6466. }
  6467. } finally {
  6468. currentRenderingInstance = null;
  6469. }
  6470. // if the returned array contains only a single node, allow it
  6471. if (Array.isArray(vnode) && vnode.length === 1) {
  6472. vnode = vnode[0];
  6473. }
  6474. // return empty vnode in case the render function errored out
  6475. if (!(vnode instanceof VNode)) {
  6476. if ( true && Array.isArray(vnode)) {
  6477. warn(
  6478. 'Multiple root nodes returned from render function. Render function ' +
  6479. 'should return a single root node.',
  6480. vm
  6481. );
  6482. }
  6483. vnode = createEmptyVNode();
  6484. }
  6485. // set parent
  6486. vnode.parent = _parentVnode;
  6487. return vnode
  6488. };
  6489. }
  6490. /* */
  6491. function ensureCtor (comp, base) {
  6492. if (
  6493. comp.__esModule ||
  6494. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6495. ) {
  6496. comp = comp.default;
  6497. }
  6498. return isObject(comp)
  6499. ? base.extend(comp)
  6500. : comp
  6501. }
  6502. function createAsyncPlaceholder (
  6503. factory,
  6504. data,
  6505. context,
  6506. children,
  6507. tag
  6508. ) {
  6509. var node = createEmptyVNode();
  6510. node.asyncFactory = factory;
  6511. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6512. return node
  6513. }
  6514. function resolveAsyncComponent (
  6515. factory,
  6516. baseCtor
  6517. ) {
  6518. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6519. return factory.errorComp
  6520. }
  6521. if (isDef(factory.resolved)) {
  6522. return factory.resolved
  6523. }
  6524. var owner = currentRenderingInstance;
  6525. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6526. // already pending
  6527. factory.owners.push(owner);
  6528. }
  6529. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6530. return factory.loadingComp
  6531. }
  6532. if (owner && !isDef(factory.owners)) {
  6533. var owners = factory.owners = [owner];
  6534. var sync = true;
  6535. var timerLoading = null;
  6536. var timerTimeout = null
  6537. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6538. var forceRender = function (renderCompleted) {
  6539. for (var i = 0, l = owners.length; i < l; i++) {
  6540. (owners[i]).$forceUpdate();
  6541. }
  6542. if (renderCompleted) {
  6543. owners.length = 0;
  6544. if (timerLoading !== null) {
  6545. clearTimeout(timerLoading);
  6546. timerLoading = null;
  6547. }
  6548. if (timerTimeout !== null) {
  6549. clearTimeout(timerTimeout);
  6550. timerTimeout = null;
  6551. }
  6552. }
  6553. };
  6554. var resolve = once(function (res) {
  6555. // cache resolved
  6556. factory.resolved = ensureCtor(res, baseCtor);
  6557. // invoke callbacks only if this is not a synchronous resolve
  6558. // (async resolves are shimmed as synchronous during SSR)
  6559. if (!sync) {
  6560. forceRender(true);
  6561. } else {
  6562. owners.length = 0;
  6563. }
  6564. });
  6565. var reject = once(function (reason) {
  6566. true && warn(
  6567. "Failed to resolve async component: " + (String(factory)) +
  6568. (reason ? ("\nReason: " + reason) : '')
  6569. );
  6570. if (isDef(factory.errorComp)) {
  6571. factory.error = true;
  6572. forceRender(true);
  6573. }
  6574. });
  6575. var res = factory(resolve, reject);
  6576. if (isObject(res)) {
  6577. if (isPromise(res)) {
  6578. // () => Promise
  6579. if (isUndef(factory.resolved)) {
  6580. res.then(resolve, reject);
  6581. }
  6582. } else if (isPromise(res.component)) {
  6583. res.component.then(resolve, reject);
  6584. if (isDef(res.error)) {
  6585. factory.errorComp = ensureCtor(res.error, baseCtor);
  6586. }
  6587. if (isDef(res.loading)) {
  6588. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6589. if (res.delay === 0) {
  6590. factory.loading = true;
  6591. } else {
  6592. timerLoading = setTimeout(function () {
  6593. timerLoading = null;
  6594. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6595. factory.loading = true;
  6596. forceRender(false);
  6597. }
  6598. }, res.delay || 200);
  6599. }
  6600. }
  6601. if (isDef(res.timeout)) {
  6602. timerTimeout = setTimeout(function () {
  6603. timerTimeout = null;
  6604. if (isUndef(factory.resolved)) {
  6605. reject(
  6606. true
  6607. ? ("timeout (" + (res.timeout) + "ms)")
  6608. : undefined
  6609. );
  6610. }
  6611. }, res.timeout);
  6612. }
  6613. }
  6614. }
  6615. sync = false;
  6616. // return in case resolved synchronously
  6617. return factory.loading
  6618. ? factory.loadingComp
  6619. : factory.resolved
  6620. }
  6621. }
  6622. /* */
  6623. function isAsyncPlaceholder (node) {
  6624. return node.isComment && node.asyncFactory
  6625. }
  6626. /* */
  6627. function getFirstComponentChild (children) {
  6628. if (Array.isArray(children)) {
  6629. for (var i = 0; i < children.length; i++) {
  6630. var c = children[i];
  6631. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6632. return c
  6633. }
  6634. }
  6635. }
  6636. }
  6637. /* */
  6638. /* */
  6639. function initEvents (vm) {
  6640. vm._events = Object.create(null);
  6641. vm._hasHookEvent = false;
  6642. // init parent attached events
  6643. var listeners = vm.$options._parentListeners;
  6644. if (listeners) {
  6645. updateComponentListeners(vm, listeners);
  6646. }
  6647. }
  6648. var target;
  6649. function add (event, fn) {
  6650. target.$on(event, fn);
  6651. }
  6652. function remove$1 (event, fn) {
  6653. target.$off(event, fn);
  6654. }
  6655. function createOnceHandler (event, fn) {
  6656. var _target = target;
  6657. return function onceHandler () {
  6658. var res = fn.apply(null, arguments);
  6659. if (res !== null) {
  6660. _target.$off(event, onceHandler);
  6661. }
  6662. }
  6663. }
  6664. function updateComponentListeners (
  6665. vm,
  6666. listeners,
  6667. oldListeners
  6668. ) {
  6669. target = vm;
  6670. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6671. target = undefined;
  6672. }
  6673. function eventsMixin (Vue) {
  6674. var hookRE = /^hook:/;
  6675. Vue.prototype.$on = function (event, fn) {
  6676. var vm = this;
  6677. if (Array.isArray(event)) {
  6678. for (var i = 0, l = event.length; i < l; i++) {
  6679. vm.$on(event[i], fn);
  6680. }
  6681. } else {
  6682. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6683. // optimize hook:event cost by using a boolean flag marked at registration
  6684. // instead of a hash lookup
  6685. if (hookRE.test(event)) {
  6686. vm._hasHookEvent = true;
  6687. }
  6688. }
  6689. return vm
  6690. };
  6691. Vue.prototype.$once = function (event, fn) {
  6692. var vm = this;
  6693. function on () {
  6694. vm.$off(event, on);
  6695. fn.apply(vm, arguments);
  6696. }
  6697. on.fn = fn;
  6698. vm.$on(event, on);
  6699. return vm
  6700. };
  6701. Vue.prototype.$off = function (event, fn) {
  6702. var vm = this;
  6703. // all
  6704. if (!arguments.length) {
  6705. vm._events = Object.create(null);
  6706. return vm
  6707. }
  6708. // array of events
  6709. if (Array.isArray(event)) {
  6710. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6711. vm.$off(event[i$1], fn);
  6712. }
  6713. return vm
  6714. }
  6715. // specific event
  6716. var cbs = vm._events[event];
  6717. if (!cbs) {
  6718. return vm
  6719. }
  6720. if (!fn) {
  6721. vm._events[event] = null;
  6722. return vm
  6723. }
  6724. // specific handler
  6725. var cb;
  6726. var i = cbs.length;
  6727. while (i--) {
  6728. cb = cbs[i];
  6729. if (cb === fn || cb.fn === fn) {
  6730. cbs.splice(i, 1);
  6731. break
  6732. }
  6733. }
  6734. return vm
  6735. };
  6736. Vue.prototype.$emit = function (event) {
  6737. var vm = this;
  6738. if (true) {
  6739. var lowerCaseEvent = event.toLowerCase();
  6740. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6741. tip(
  6742. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6743. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6744. "Note that HTML attributes are case-insensitive and you cannot use " +
  6745. "v-on to listen to camelCase events when using in-DOM templates. " +
  6746. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6747. );
  6748. }
  6749. }
  6750. var cbs = vm._events[event];
  6751. if (cbs) {
  6752. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6753. var args = toArray(arguments, 1);
  6754. var info = "event handler for \"" + event + "\"";
  6755. for (var i = 0, l = cbs.length; i < l; i++) {
  6756. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6757. }
  6758. }
  6759. return vm
  6760. };
  6761. }
  6762. /* */
  6763. var activeInstance = null;
  6764. var isUpdatingChildComponent = false;
  6765. function setActiveInstance(vm) {
  6766. var prevActiveInstance = activeInstance;
  6767. activeInstance = vm;
  6768. return function () {
  6769. activeInstance = prevActiveInstance;
  6770. }
  6771. }
  6772. function initLifecycle (vm) {
  6773. var options = vm.$options;
  6774. // locate first non-abstract parent
  6775. var parent = options.parent;
  6776. if (parent && !options.abstract) {
  6777. while (parent.$options.abstract && parent.$parent) {
  6778. parent = parent.$parent;
  6779. }
  6780. parent.$children.push(vm);
  6781. }
  6782. vm.$parent = parent;
  6783. vm.$root = parent ? parent.$root : vm;
  6784. vm.$children = [];
  6785. vm.$refs = {};
  6786. vm._watcher = null;
  6787. vm._inactive = null;
  6788. vm._directInactive = false;
  6789. vm._isMounted = false;
  6790. vm._isDestroyed = false;
  6791. vm._isBeingDestroyed = false;
  6792. }
  6793. function lifecycleMixin (Vue) {
  6794. Vue.prototype._update = function (vnode, hydrating) {
  6795. var vm = this;
  6796. var prevEl = vm.$el;
  6797. var prevVnode = vm._vnode;
  6798. var restoreActiveInstance = setActiveInstance(vm);
  6799. vm._vnode = vnode;
  6800. // Vue.prototype.__patch__ is injected in entry points
  6801. // based on the rendering backend used.
  6802. if (!prevVnode) {
  6803. // initial render
  6804. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6805. } else {
  6806. // updates
  6807. vm.$el = vm.__patch__(prevVnode, vnode);
  6808. }
  6809. restoreActiveInstance();
  6810. // update __vue__ reference
  6811. if (prevEl) {
  6812. prevEl.__vue__ = null;
  6813. }
  6814. if (vm.$el) {
  6815. vm.$el.__vue__ = vm;
  6816. }
  6817. // if parent is an HOC, update its $el as well
  6818. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6819. vm.$parent.$el = vm.$el;
  6820. }
  6821. // updated hook is called by the scheduler to ensure that children are
  6822. // updated in a parent's updated hook.
  6823. };
  6824. Vue.prototype.$forceUpdate = function () {
  6825. var vm = this;
  6826. if (vm._watcher) {
  6827. vm._watcher.update();
  6828. }
  6829. };
  6830. Vue.prototype.$destroy = function () {
  6831. var vm = this;
  6832. if (vm._isBeingDestroyed) {
  6833. return
  6834. }
  6835. callHook(vm, 'beforeDestroy');
  6836. vm._isBeingDestroyed = true;
  6837. // remove self from parent
  6838. var parent = vm.$parent;
  6839. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6840. remove(parent.$children, vm);
  6841. }
  6842. // teardown watchers
  6843. if (vm._watcher) {
  6844. vm._watcher.teardown();
  6845. }
  6846. var i = vm._watchers.length;
  6847. while (i--) {
  6848. vm._watchers[i].teardown();
  6849. }
  6850. // remove reference from data ob
  6851. // frozen object may not have observer.
  6852. if (vm._data.__ob__) {
  6853. vm._data.__ob__.vmCount--;
  6854. }
  6855. // call the last hook...
  6856. vm._isDestroyed = true;
  6857. // invoke destroy hooks on current rendered tree
  6858. vm.__patch__(vm._vnode, null);
  6859. // fire destroyed hook
  6860. callHook(vm, 'destroyed');
  6861. // turn off all instance listeners.
  6862. vm.$off();
  6863. // remove __vue__ reference
  6864. if (vm.$el) {
  6865. vm.$el.__vue__ = null;
  6866. }
  6867. // release circular reference (#6759)
  6868. if (vm.$vnode) {
  6869. vm.$vnode.parent = null;
  6870. }
  6871. };
  6872. }
  6873. function updateChildComponent (
  6874. vm,
  6875. propsData,
  6876. listeners,
  6877. parentVnode,
  6878. renderChildren
  6879. ) {
  6880. if (true) {
  6881. isUpdatingChildComponent = true;
  6882. }
  6883. // determine whether component has slot children
  6884. // we need to do this before overwriting $options._renderChildren.
  6885. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6886. // dynamic slot names). Static scoped slots compiled from template has the
  6887. // "$stable" marker.
  6888. var newScopedSlots = parentVnode.data.scopedSlots;
  6889. var oldScopedSlots = vm.$scopedSlots;
  6890. var hasDynamicScopedSlot = !!(
  6891. (newScopedSlots && !newScopedSlots.$stable) ||
  6892. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6893. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6894. );
  6895. // Any static slot children from the parent may have changed during parent's
  6896. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6897. // update is necessary to ensure correctness.
  6898. var needsForceUpdate = !!(
  6899. renderChildren || // has new static slots
  6900. vm.$options._renderChildren || // has old static slots
  6901. hasDynamicScopedSlot
  6902. );
  6903. vm.$options._parentVnode = parentVnode;
  6904. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6905. if (vm._vnode) { // update child tree's parent
  6906. vm._vnode.parent = parentVnode;
  6907. }
  6908. vm.$options._renderChildren = renderChildren;
  6909. // update $attrs and $listeners hash
  6910. // these are also reactive so they may trigger child update if the child
  6911. // used them during render
  6912. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6913. vm.$listeners = listeners || emptyObject;
  6914. // update props
  6915. if (propsData && vm.$options.props) {
  6916. toggleObserving(false);
  6917. var props = vm._props;
  6918. var propKeys = vm.$options._propKeys || [];
  6919. for (var i = 0; i < propKeys.length; i++) {
  6920. var key = propKeys[i];
  6921. var propOptions = vm.$options.props; // wtf flow?
  6922. props[key] = validateProp(key, propOptions, propsData, vm);
  6923. }
  6924. toggleObserving(true);
  6925. // keep a copy of raw propsData
  6926. vm.$options.propsData = propsData;
  6927. }
  6928. // fixed by xxxxxx update properties(mp runtime)
  6929. vm._$updateProperties && vm._$updateProperties(vm);
  6930. // update listeners
  6931. listeners = listeners || emptyObject;
  6932. var oldListeners = vm.$options._parentListeners;
  6933. vm.$options._parentListeners = listeners;
  6934. updateComponentListeners(vm, listeners, oldListeners);
  6935. // resolve slots + force update if has children
  6936. if (needsForceUpdate) {
  6937. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6938. vm.$forceUpdate();
  6939. }
  6940. if (true) {
  6941. isUpdatingChildComponent = false;
  6942. }
  6943. }
  6944. function isInInactiveTree (vm) {
  6945. while (vm && (vm = vm.$parent)) {
  6946. if (vm._inactive) { return true }
  6947. }
  6948. return false
  6949. }
  6950. function activateChildComponent (vm, direct) {
  6951. if (direct) {
  6952. vm._directInactive = false;
  6953. if (isInInactiveTree(vm)) {
  6954. return
  6955. }
  6956. } else if (vm._directInactive) {
  6957. return
  6958. }
  6959. if (vm._inactive || vm._inactive === null) {
  6960. vm._inactive = false;
  6961. for (var i = 0; i < vm.$children.length; i++) {
  6962. activateChildComponent(vm.$children[i]);
  6963. }
  6964. callHook(vm, 'activated');
  6965. }
  6966. }
  6967. function deactivateChildComponent (vm, direct) {
  6968. if (direct) {
  6969. vm._directInactive = true;
  6970. if (isInInactiveTree(vm)) {
  6971. return
  6972. }
  6973. }
  6974. if (!vm._inactive) {
  6975. vm._inactive = true;
  6976. for (var i = 0; i < vm.$children.length; i++) {
  6977. deactivateChildComponent(vm.$children[i]);
  6978. }
  6979. callHook(vm, 'deactivated');
  6980. }
  6981. }
  6982. function callHook (vm, hook) {
  6983. // #7573 disable dep collection when invoking lifecycle hooks
  6984. pushTarget();
  6985. var handlers = vm.$options[hook];
  6986. var info = hook + " hook";
  6987. if (handlers) {
  6988. for (var i = 0, j = handlers.length; i < j; i++) {
  6989. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  6990. }
  6991. }
  6992. if (vm._hasHookEvent) {
  6993. vm.$emit('hook:' + hook);
  6994. }
  6995. popTarget();
  6996. }
  6997. /* */
  6998. var MAX_UPDATE_COUNT = 100;
  6999. var queue = [];
  7000. var activatedChildren = [];
  7001. var has = {};
  7002. var circular = {};
  7003. var waiting = false;
  7004. var flushing = false;
  7005. var index = 0;
  7006. /**
  7007. * Reset the scheduler's state.
  7008. */
  7009. function resetSchedulerState () {
  7010. index = queue.length = activatedChildren.length = 0;
  7011. has = {};
  7012. if (true) {
  7013. circular = {};
  7014. }
  7015. waiting = flushing = false;
  7016. }
  7017. // Async edge case #6566 requires saving the timestamp when event listeners are
  7018. // attached. However, calling performance.now() has a perf overhead especially
  7019. // if the page has thousands of event listeners. Instead, we take a timestamp
  7020. // every time the scheduler flushes and use that for all event listeners
  7021. // attached during that flush.
  7022. var currentFlushTimestamp = 0;
  7023. // Async edge case fix requires storing an event listener's attach timestamp.
  7024. var getNow = Date.now;
  7025. // Determine what event timestamp the browser is using. Annoyingly, the
  7026. // timestamp can either be hi-res (relative to page load) or low-res
  7027. // (relative to UNIX epoch), so in order to compare time we have to use the
  7028. // same timestamp type when saving the flush timestamp.
  7029. // All IE versions use low-res event timestamps, and have problematic clock
  7030. // implementations (#9632)
  7031. if (inBrowser && !isIE) {
  7032. var performance = window.performance;
  7033. if (
  7034. performance &&
  7035. typeof performance.now === 'function' &&
  7036. getNow() > document.createEvent('Event').timeStamp
  7037. ) {
  7038. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7039. // smaller than it, it means the event is using a hi-res timestamp,
  7040. // and we need to use the hi-res version for event listener timestamps as
  7041. // well.
  7042. getNow = function () { return performance.now(); };
  7043. }
  7044. }
  7045. /**
  7046. * Flush both queues and run the watchers.
  7047. */
  7048. function flushSchedulerQueue () {
  7049. currentFlushTimestamp = getNow();
  7050. flushing = true;
  7051. var watcher, id;
  7052. // Sort queue before flush.
  7053. // This ensures that:
  7054. // 1. Components are updated from parent to child. (because parent is always
  7055. // created before the child)
  7056. // 2. A component's user watchers are run before its render watcher (because
  7057. // user watchers are created before the render watcher)
  7058. // 3. If a component is destroyed during a parent component's watcher run,
  7059. // its watchers can be skipped.
  7060. queue.sort(function (a, b) { return a.id - b.id; });
  7061. // do not cache length because more watchers might be pushed
  7062. // as we run existing watchers
  7063. for (index = 0; index < queue.length; index++) {
  7064. watcher = queue[index];
  7065. if (watcher.before) {
  7066. watcher.before();
  7067. }
  7068. id = watcher.id;
  7069. has[id] = null;
  7070. watcher.run();
  7071. // in dev build, check and stop circular updates.
  7072. if ( true && has[id] != null) {
  7073. circular[id] = (circular[id] || 0) + 1;
  7074. if (circular[id] > MAX_UPDATE_COUNT) {
  7075. warn(
  7076. 'You may have an infinite update loop ' + (
  7077. watcher.user
  7078. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7079. : "in a component render function."
  7080. ),
  7081. watcher.vm
  7082. );
  7083. break
  7084. }
  7085. }
  7086. }
  7087. // keep copies of post queues before resetting state
  7088. var activatedQueue = activatedChildren.slice();
  7089. var updatedQueue = queue.slice();
  7090. resetSchedulerState();
  7091. // call component updated and activated hooks
  7092. callActivatedHooks(activatedQueue);
  7093. callUpdatedHooks(updatedQueue);
  7094. // devtool hook
  7095. /* istanbul ignore if */
  7096. if (devtools && config.devtools) {
  7097. devtools.emit('flush');
  7098. }
  7099. }
  7100. function callUpdatedHooks (queue) {
  7101. var i = queue.length;
  7102. while (i--) {
  7103. var watcher = queue[i];
  7104. var vm = watcher.vm;
  7105. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7106. callHook(vm, 'updated');
  7107. }
  7108. }
  7109. }
  7110. /**
  7111. * Queue a kept-alive component that was activated during patch.
  7112. * The queue will be processed after the entire tree has been patched.
  7113. */
  7114. function queueActivatedComponent (vm) {
  7115. // setting _inactive to false here so that a render function can
  7116. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7117. vm._inactive = false;
  7118. activatedChildren.push(vm);
  7119. }
  7120. function callActivatedHooks (queue) {
  7121. for (var i = 0; i < queue.length; i++) {
  7122. queue[i]._inactive = true;
  7123. activateChildComponent(queue[i], true /* true */);
  7124. }
  7125. }
  7126. /**
  7127. * Push a watcher into the watcher queue.
  7128. * Jobs with duplicate IDs will be skipped unless it's
  7129. * pushed when the queue is being flushed.
  7130. */
  7131. function queueWatcher (watcher) {
  7132. var id = watcher.id;
  7133. if (has[id] == null) {
  7134. has[id] = true;
  7135. if (!flushing) {
  7136. queue.push(watcher);
  7137. } else {
  7138. // if already flushing, splice the watcher based on its id
  7139. // if already past its id, it will be run next immediately.
  7140. var i = queue.length - 1;
  7141. while (i > index && queue[i].id > watcher.id) {
  7142. i--;
  7143. }
  7144. queue.splice(i + 1, 0, watcher);
  7145. }
  7146. // queue the flush
  7147. if (!waiting) {
  7148. waiting = true;
  7149. if ( true && !config.async) {
  7150. flushSchedulerQueue();
  7151. return
  7152. }
  7153. nextTick(flushSchedulerQueue);
  7154. }
  7155. }
  7156. }
  7157. /* */
  7158. var uid$2 = 0;
  7159. /**
  7160. * A watcher parses an expression, collects dependencies,
  7161. * and fires callback when the expression value changes.
  7162. * This is used for both the $watch() api and directives.
  7163. */
  7164. var Watcher = function Watcher (
  7165. vm,
  7166. expOrFn,
  7167. cb,
  7168. options,
  7169. isRenderWatcher
  7170. ) {
  7171. this.vm = vm;
  7172. if (isRenderWatcher) {
  7173. vm._watcher = this;
  7174. }
  7175. vm._watchers.push(this);
  7176. // options
  7177. if (options) {
  7178. this.deep = !!options.deep;
  7179. this.user = !!options.user;
  7180. this.lazy = !!options.lazy;
  7181. this.sync = !!options.sync;
  7182. this.before = options.before;
  7183. } else {
  7184. this.deep = this.user = this.lazy = this.sync = false;
  7185. }
  7186. this.cb = cb;
  7187. this.id = ++uid$2; // uid for batching
  7188. this.active = true;
  7189. this.dirty = this.lazy; // for lazy watchers
  7190. this.deps = [];
  7191. this.newDeps = [];
  7192. this.depIds = new _Set();
  7193. this.newDepIds = new _Set();
  7194. this.expression = true
  7195. ? expOrFn.toString()
  7196. : undefined;
  7197. // parse expression for getter
  7198. if (typeof expOrFn === 'function') {
  7199. this.getter = expOrFn;
  7200. } else {
  7201. this.getter = parsePath(expOrFn);
  7202. if (!this.getter) {
  7203. this.getter = noop;
  7204. true && warn(
  7205. "Failed watching path: \"" + expOrFn + "\" " +
  7206. 'Watcher only accepts simple dot-delimited paths. ' +
  7207. 'For full control, use a function instead.',
  7208. vm
  7209. );
  7210. }
  7211. }
  7212. this.value = this.lazy
  7213. ? undefined
  7214. : this.get();
  7215. };
  7216. /**
  7217. * Evaluate the getter, and re-collect dependencies.
  7218. */
  7219. Watcher.prototype.get = function get () {
  7220. pushTarget(this);
  7221. var value;
  7222. var vm = this.vm;
  7223. try {
  7224. value = this.getter.call(vm, vm);
  7225. } catch (e) {
  7226. if (this.user) {
  7227. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7228. } else {
  7229. throw e
  7230. }
  7231. } finally {
  7232. // "touch" every property so they are all tracked as
  7233. // dependencies for deep watching
  7234. if (this.deep) {
  7235. traverse(value);
  7236. }
  7237. popTarget();
  7238. this.cleanupDeps();
  7239. }
  7240. return value
  7241. };
  7242. /**
  7243. * Add a dependency to this directive.
  7244. */
  7245. Watcher.prototype.addDep = function addDep (dep) {
  7246. var id = dep.id;
  7247. if (!this.newDepIds.has(id)) {
  7248. this.newDepIds.add(id);
  7249. this.newDeps.push(dep);
  7250. if (!this.depIds.has(id)) {
  7251. dep.addSub(this);
  7252. }
  7253. }
  7254. };
  7255. /**
  7256. * Clean up for dependency collection.
  7257. */
  7258. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7259. var i = this.deps.length;
  7260. while (i--) {
  7261. var dep = this.deps[i];
  7262. if (!this.newDepIds.has(dep.id)) {
  7263. dep.removeSub(this);
  7264. }
  7265. }
  7266. var tmp = this.depIds;
  7267. this.depIds = this.newDepIds;
  7268. this.newDepIds = tmp;
  7269. this.newDepIds.clear();
  7270. tmp = this.deps;
  7271. this.deps = this.newDeps;
  7272. this.newDeps = tmp;
  7273. this.newDeps.length = 0;
  7274. };
  7275. /**
  7276. * Subscriber interface.
  7277. * Will be called when a dependency changes.
  7278. */
  7279. Watcher.prototype.update = function update () {
  7280. /* istanbul ignore else */
  7281. if (this.lazy) {
  7282. this.dirty = true;
  7283. } else if (this.sync) {
  7284. this.run();
  7285. } else {
  7286. queueWatcher(this);
  7287. }
  7288. };
  7289. /**
  7290. * Scheduler job interface.
  7291. * Will be called by the scheduler.
  7292. */
  7293. Watcher.prototype.run = function run () {
  7294. if (this.active) {
  7295. var value = this.get();
  7296. if (
  7297. value !== this.value ||
  7298. // Deep watchers and watchers on Object/Arrays should fire even
  7299. // when the value is the same, because the value may
  7300. // have mutated.
  7301. isObject(value) ||
  7302. this.deep
  7303. ) {
  7304. // set new value
  7305. var oldValue = this.value;
  7306. this.value = value;
  7307. if (this.user) {
  7308. try {
  7309. this.cb.call(this.vm, value, oldValue);
  7310. } catch (e) {
  7311. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7312. }
  7313. } else {
  7314. this.cb.call(this.vm, value, oldValue);
  7315. }
  7316. }
  7317. }
  7318. };
  7319. /**
  7320. * Evaluate the value of the watcher.
  7321. * This only gets called for lazy watchers.
  7322. */
  7323. Watcher.prototype.evaluate = function evaluate () {
  7324. this.value = this.get();
  7325. this.dirty = false;
  7326. };
  7327. /**
  7328. * Depend on all deps collected by this watcher.
  7329. */
  7330. Watcher.prototype.depend = function depend () {
  7331. var i = this.deps.length;
  7332. while (i--) {
  7333. this.deps[i].depend();
  7334. }
  7335. };
  7336. /**
  7337. * Remove self from all dependencies' subscriber list.
  7338. */
  7339. Watcher.prototype.teardown = function teardown () {
  7340. if (this.active) {
  7341. // remove self from vm's watcher list
  7342. // this is a somewhat expensive operation so we skip it
  7343. // if the vm is being destroyed.
  7344. if (!this.vm._isBeingDestroyed) {
  7345. remove(this.vm._watchers, this);
  7346. }
  7347. var i = this.deps.length;
  7348. while (i--) {
  7349. this.deps[i].removeSub(this);
  7350. }
  7351. this.active = false;
  7352. }
  7353. };
  7354. /* */
  7355. var sharedPropertyDefinition = {
  7356. enumerable: true,
  7357. configurable: true,
  7358. get: noop,
  7359. set: noop
  7360. };
  7361. function proxy (target, sourceKey, key) {
  7362. sharedPropertyDefinition.get = function proxyGetter () {
  7363. return this[sourceKey][key]
  7364. };
  7365. sharedPropertyDefinition.set = function proxySetter (val) {
  7366. this[sourceKey][key] = val;
  7367. };
  7368. Object.defineProperty(target, key, sharedPropertyDefinition);
  7369. }
  7370. function initState (vm) {
  7371. vm._watchers = [];
  7372. var opts = vm.$options;
  7373. if (opts.props) { initProps(vm, opts.props); }
  7374. if (opts.methods) { initMethods(vm, opts.methods); }
  7375. if (opts.data) {
  7376. initData(vm);
  7377. } else {
  7378. observe(vm._data = {}, true /* asRootData */);
  7379. }
  7380. if (opts.computed) { initComputed(vm, opts.computed); }
  7381. if (opts.watch && opts.watch !== nativeWatch) {
  7382. initWatch(vm, opts.watch);
  7383. }
  7384. }
  7385. function initProps (vm, propsOptions) {
  7386. var propsData = vm.$options.propsData || {};
  7387. var props = vm._props = {};
  7388. // cache prop keys so that future props updates can iterate using Array
  7389. // instead of dynamic object key enumeration.
  7390. var keys = vm.$options._propKeys = [];
  7391. var isRoot = !vm.$parent;
  7392. // root instance props should be converted
  7393. if (!isRoot) {
  7394. toggleObserving(false);
  7395. }
  7396. var loop = function ( key ) {
  7397. keys.push(key);
  7398. var value = validateProp(key, propsOptions, propsData, vm);
  7399. /* istanbul ignore else */
  7400. if (true) {
  7401. var hyphenatedKey = hyphenate(key);
  7402. if (isReservedAttribute(hyphenatedKey) ||
  7403. config.isReservedAttr(hyphenatedKey)) {
  7404. warn(
  7405. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7406. vm
  7407. );
  7408. }
  7409. defineReactive$$1(props, key, value, function () {
  7410. if (!isRoot && !isUpdatingChildComponent) {
  7411. {
  7412. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7413. return
  7414. }
  7415. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7416. if(
  7417. key === 'value' &&
  7418. Array.isArray(vm.$options.behaviors) &&
  7419. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7420. ){
  7421. return
  7422. }
  7423. if(vm._getFormData){
  7424. return
  7425. }
  7426. var $parent = vm.$parent;
  7427. while($parent){
  7428. if($parent.__next_tick_pending){
  7429. return
  7430. }
  7431. $parent = $parent.$parent;
  7432. }
  7433. }
  7434. warn(
  7435. "Avoid mutating a prop directly since the value will be " +
  7436. "overwritten whenever the parent component re-renders. " +
  7437. "Instead, use a data or computed property based on the prop's " +
  7438. "value. Prop being mutated: \"" + key + "\"",
  7439. vm
  7440. );
  7441. }
  7442. });
  7443. } else {}
  7444. // static props are already proxied on the component's prototype
  7445. // during Vue.extend(). We only need to proxy props defined at
  7446. // instantiation here.
  7447. if (!(key in vm)) {
  7448. proxy(vm, "_props", key);
  7449. }
  7450. };
  7451. for (var key in propsOptions) loop( key );
  7452. toggleObserving(true);
  7453. }
  7454. function initData (vm) {
  7455. var data = vm.$options.data;
  7456. data = vm._data = typeof data === 'function'
  7457. ? getData(data, vm)
  7458. : data || {};
  7459. if (!isPlainObject(data)) {
  7460. data = {};
  7461. true && warn(
  7462. 'data functions should return an object:\n' +
  7463. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7464. vm
  7465. );
  7466. }
  7467. // proxy data on instance
  7468. var keys = Object.keys(data);
  7469. var props = vm.$options.props;
  7470. var methods = vm.$options.methods;
  7471. var i = keys.length;
  7472. while (i--) {
  7473. var key = keys[i];
  7474. if (true) {
  7475. if (methods && hasOwn(methods, key)) {
  7476. warn(
  7477. ("Method \"" + key + "\" has already been defined as a data property."),
  7478. vm
  7479. );
  7480. }
  7481. }
  7482. if (props && hasOwn(props, key)) {
  7483. true && warn(
  7484. "The data property \"" + key + "\" is already declared as a prop. " +
  7485. "Use prop default value instead.",
  7486. vm
  7487. );
  7488. } else if (!isReserved(key)) {
  7489. proxy(vm, "_data", key);
  7490. }
  7491. }
  7492. // observe data
  7493. observe(data, true /* asRootData */);
  7494. }
  7495. function getData (data, vm) {
  7496. // #7573 disable dep collection when invoking data getters
  7497. pushTarget();
  7498. try {
  7499. return data.call(vm, vm)
  7500. } catch (e) {
  7501. handleError(e, vm, "data()");
  7502. return {}
  7503. } finally {
  7504. popTarget();
  7505. }
  7506. }
  7507. var computedWatcherOptions = { lazy: true };
  7508. function initComputed (vm, computed) {
  7509. // $flow-disable-line
  7510. var watchers = vm._computedWatchers = Object.create(null);
  7511. // computed properties are just getters during SSR
  7512. var isSSR = isServerRendering();
  7513. for (var key in computed) {
  7514. var userDef = computed[key];
  7515. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7516. if ( true && getter == null) {
  7517. warn(
  7518. ("Getter is missing for computed property \"" + key + "\"."),
  7519. vm
  7520. );
  7521. }
  7522. if (!isSSR) {
  7523. // create internal watcher for the computed property.
  7524. watchers[key] = new Watcher(
  7525. vm,
  7526. getter || noop,
  7527. noop,
  7528. computedWatcherOptions
  7529. );
  7530. }
  7531. // component-defined computed properties are already defined on the
  7532. // component prototype. We only need to define computed properties defined
  7533. // at instantiation here.
  7534. if (!(key in vm)) {
  7535. defineComputed(vm, key, userDef);
  7536. } else if (true) {
  7537. if (key in vm.$data) {
  7538. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7539. } else if (vm.$options.props && key in vm.$options.props) {
  7540. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7541. }
  7542. }
  7543. }
  7544. }
  7545. function defineComputed (
  7546. target,
  7547. key,
  7548. userDef
  7549. ) {
  7550. var shouldCache = !isServerRendering();
  7551. if (typeof userDef === 'function') {
  7552. sharedPropertyDefinition.get = shouldCache
  7553. ? createComputedGetter(key)
  7554. : createGetterInvoker(userDef);
  7555. sharedPropertyDefinition.set = noop;
  7556. } else {
  7557. sharedPropertyDefinition.get = userDef.get
  7558. ? shouldCache && userDef.cache !== false
  7559. ? createComputedGetter(key)
  7560. : createGetterInvoker(userDef.get)
  7561. : noop;
  7562. sharedPropertyDefinition.set = userDef.set || noop;
  7563. }
  7564. if ( true &&
  7565. sharedPropertyDefinition.set === noop) {
  7566. sharedPropertyDefinition.set = function () {
  7567. warn(
  7568. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7569. this
  7570. );
  7571. };
  7572. }
  7573. Object.defineProperty(target, key, sharedPropertyDefinition);
  7574. }
  7575. function createComputedGetter (key) {
  7576. return function computedGetter () {
  7577. var watcher = this._computedWatchers && this._computedWatchers[key];
  7578. if (watcher) {
  7579. if (watcher.dirty) {
  7580. watcher.evaluate();
  7581. }
  7582. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7583. watcher.depend();
  7584. }
  7585. return watcher.value
  7586. }
  7587. }
  7588. }
  7589. function createGetterInvoker(fn) {
  7590. return function computedGetter () {
  7591. return fn.call(this, this)
  7592. }
  7593. }
  7594. function initMethods (vm, methods) {
  7595. var props = vm.$options.props;
  7596. for (var key in methods) {
  7597. if (true) {
  7598. if (typeof methods[key] !== 'function') {
  7599. warn(
  7600. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7601. "Did you reference the function correctly?",
  7602. vm
  7603. );
  7604. }
  7605. if (props && hasOwn(props, key)) {
  7606. warn(
  7607. ("Method \"" + key + "\" has already been defined as a prop."),
  7608. vm
  7609. );
  7610. }
  7611. if ((key in vm) && isReserved(key)) {
  7612. warn(
  7613. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7614. "Avoid defining component methods that start with _ or $."
  7615. );
  7616. }
  7617. }
  7618. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7619. }
  7620. }
  7621. function initWatch (vm, watch) {
  7622. for (var key in watch) {
  7623. var handler = watch[key];
  7624. if (Array.isArray(handler)) {
  7625. for (var i = 0; i < handler.length; i++) {
  7626. createWatcher(vm, key, handler[i]);
  7627. }
  7628. } else {
  7629. createWatcher(vm, key, handler);
  7630. }
  7631. }
  7632. }
  7633. function createWatcher (
  7634. vm,
  7635. expOrFn,
  7636. handler,
  7637. options
  7638. ) {
  7639. if (isPlainObject(handler)) {
  7640. options = handler;
  7641. handler = handler.handler;
  7642. }
  7643. if (typeof handler === 'string') {
  7644. handler = vm[handler];
  7645. }
  7646. return vm.$watch(expOrFn, handler, options)
  7647. }
  7648. function stateMixin (Vue) {
  7649. // flow somehow has problems with directly declared definition object
  7650. // when using Object.defineProperty, so we have to procedurally build up
  7651. // the object here.
  7652. var dataDef = {};
  7653. dataDef.get = function () { return this._data };
  7654. var propsDef = {};
  7655. propsDef.get = function () { return this._props };
  7656. if (true) {
  7657. dataDef.set = function () {
  7658. warn(
  7659. 'Avoid replacing instance root $data. ' +
  7660. 'Use nested data properties instead.',
  7661. this
  7662. );
  7663. };
  7664. propsDef.set = function () {
  7665. warn("$props is readonly.", this);
  7666. };
  7667. }
  7668. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7669. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7670. Vue.prototype.$set = set;
  7671. Vue.prototype.$delete = del;
  7672. Vue.prototype.$watch = function (
  7673. expOrFn,
  7674. cb,
  7675. options
  7676. ) {
  7677. var vm = this;
  7678. if (isPlainObject(cb)) {
  7679. return createWatcher(vm, expOrFn, cb, options)
  7680. }
  7681. options = options || {};
  7682. options.user = true;
  7683. var watcher = new Watcher(vm, expOrFn, cb, options);
  7684. if (options.immediate) {
  7685. try {
  7686. cb.call(vm, watcher.value);
  7687. } catch (error) {
  7688. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7689. }
  7690. }
  7691. return function unwatchFn () {
  7692. watcher.teardown();
  7693. }
  7694. };
  7695. }
  7696. /* */
  7697. var uid$3 = 0;
  7698. function initMixin (Vue) {
  7699. Vue.prototype._init = function (options) {
  7700. var vm = this;
  7701. // a uid
  7702. vm._uid = uid$3++;
  7703. var startTag, endTag;
  7704. /* istanbul ignore if */
  7705. if ( true && config.performance && mark) {
  7706. startTag = "vue-perf-start:" + (vm._uid);
  7707. endTag = "vue-perf-end:" + (vm._uid);
  7708. mark(startTag);
  7709. }
  7710. // a flag to avoid this being observed
  7711. vm._isVue = true;
  7712. // merge options
  7713. if (options && options._isComponent) {
  7714. // optimize internal component instantiation
  7715. // since dynamic options merging is pretty slow, and none of the
  7716. // internal component options needs special treatment.
  7717. initInternalComponent(vm, options);
  7718. } else {
  7719. vm.$options = mergeOptions(
  7720. resolveConstructorOptions(vm.constructor),
  7721. options || {},
  7722. vm
  7723. );
  7724. }
  7725. /* istanbul ignore else */
  7726. if (true) {
  7727. initProxy(vm);
  7728. } else {}
  7729. // expose real self
  7730. vm._self = vm;
  7731. initLifecycle(vm);
  7732. initEvents(vm);
  7733. initRender(vm);
  7734. callHook(vm, 'beforeCreate');
  7735. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7736. initState(vm);
  7737. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7738. !vm._$fallback && callHook(vm, 'created');
  7739. /* istanbul ignore if */
  7740. if ( true && config.performance && mark) {
  7741. vm._name = formatComponentName(vm, false);
  7742. mark(endTag);
  7743. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7744. }
  7745. if (vm.$options.el) {
  7746. vm.$mount(vm.$options.el);
  7747. }
  7748. };
  7749. }
  7750. function initInternalComponent (vm, options) {
  7751. var opts = vm.$options = Object.create(vm.constructor.options);
  7752. // doing this because it's faster than dynamic enumeration.
  7753. var parentVnode = options._parentVnode;
  7754. opts.parent = options.parent;
  7755. opts._parentVnode = parentVnode;
  7756. var vnodeComponentOptions = parentVnode.componentOptions;
  7757. opts.propsData = vnodeComponentOptions.propsData;
  7758. opts._parentListeners = vnodeComponentOptions.listeners;
  7759. opts._renderChildren = vnodeComponentOptions.children;
  7760. opts._componentTag = vnodeComponentOptions.tag;
  7761. if (options.render) {
  7762. opts.render = options.render;
  7763. opts.staticRenderFns = options.staticRenderFns;
  7764. }
  7765. }
  7766. function resolveConstructorOptions (Ctor) {
  7767. var options = Ctor.options;
  7768. if (Ctor.super) {
  7769. var superOptions = resolveConstructorOptions(Ctor.super);
  7770. var cachedSuperOptions = Ctor.superOptions;
  7771. if (superOptions !== cachedSuperOptions) {
  7772. // super option changed,
  7773. // need to resolve new options.
  7774. Ctor.superOptions = superOptions;
  7775. // check if there are any late-modified/attached options (#4976)
  7776. var modifiedOptions = resolveModifiedOptions(Ctor);
  7777. // update base extend options
  7778. if (modifiedOptions) {
  7779. extend(Ctor.extendOptions, modifiedOptions);
  7780. }
  7781. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7782. if (options.name) {
  7783. options.components[options.name] = Ctor;
  7784. }
  7785. }
  7786. }
  7787. return options
  7788. }
  7789. function resolveModifiedOptions (Ctor) {
  7790. var modified;
  7791. var latest = Ctor.options;
  7792. var sealed = Ctor.sealedOptions;
  7793. for (var key in latest) {
  7794. if (latest[key] !== sealed[key]) {
  7795. if (!modified) { modified = {}; }
  7796. modified[key] = latest[key];
  7797. }
  7798. }
  7799. return modified
  7800. }
  7801. function Vue (options) {
  7802. if ( true &&
  7803. !(this instanceof Vue)
  7804. ) {
  7805. warn('Vue is a constructor and should be called with the `new` keyword');
  7806. }
  7807. this._init(options);
  7808. }
  7809. initMixin(Vue);
  7810. stateMixin(Vue);
  7811. eventsMixin(Vue);
  7812. lifecycleMixin(Vue);
  7813. renderMixin(Vue);
  7814. /* */
  7815. function initUse (Vue) {
  7816. Vue.use = function (plugin) {
  7817. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7818. if (installedPlugins.indexOf(plugin) > -1) {
  7819. return this
  7820. }
  7821. // additional parameters
  7822. var args = toArray(arguments, 1);
  7823. args.unshift(this);
  7824. if (typeof plugin.install === 'function') {
  7825. plugin.install.apply(plugin, args);
  7826. } else if (typeof plugin === 'function') {
  7827. plugin.apply(null, args);
  7828. }
  7829. installedPlugins.push(plugin);
  7830. return this
  7831. };
  7832. }
  7833. /* */
  7834. function initMixin$1 (Vue) {
  7835. Vue.mixin = function (mixin) {
  7836. this.options = mergeOptions(this.options, mixin);
  7837. return this
  7838. };
  7839. }
  7840. /* */
  7841. function initExtend (Vue) {
  7842. /**
  7843. * Each instance constructor, including Vue, has a unique
  7844. * cid. This enables us to create wrapped "child
  7845. * constructors" for prototypal inheritance and cache them.
  7846. */
  7847. Vue.cid = 0;
  7848. var cid = 1;
  7849. /**
  7850. * Class inheritance
  7851. */
  7852. Vue.extend = function (extendOptions) {
  7853. extendOptions = extendOptions || {};
  7854. var Super = this;
  7855. var SuperId = Super.cid;
  7856. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7857. if (cachedCtors[SuperId]) {
  7858. return cachedCtors[SuperId]
  7859. }
  7860. var name = extendOptions.name || Super.options.name;
  7861. if ( true && name) {
  7862. validateComponentName(name);
  7863. }
  7864. var Sub = function VueComponent (options) {
  7865. this._init(options);
  7866. };
  7867. Sub.prototype = Object.create(Super.prototype);
  7868. Sub.prototype.constructor = Sub;
  7869. Sub.cid = cid++;
  7870. Sub.options = mergeOptions(
  7871. Super.options,
  7872. extendOptions
  7873. );
  7874. Sub['super'] = Super;
  7875. // For props and computed properties, we define the proxy getters on
  7876. // the Vue instances at extension time, on the extended prototype. This
  7877. // avoids Object.defineProperty calls for each instance created.
  7878. if (Sub.options.props) {
  7879. initProps$1(Sub);
  7880. }
  7881. if (Sub.options.computed) {
  7882. initComputed$1(Sub);
  7883. }
  7884. // allow further extension/mixin/plugin usage
  7885. Sub.extend = Super.extend;
  7886. Sub.mixin = Super.mixin;
  7887. Sub.use = Super.use;
  7888. // create asset registers, so extended classes
  7889. // can have their private assets too.
  7890. ASSET_TYPES.forEach(function (type) {
  7891. Sub[type] = Super[type];
  7892. });
  7893. // enable recursive self-lookup
  7894. if (name) {
  7895. Sub.options.components[name] = Sub;
  7896. }
  7897. // keep a reference to the super options at extension time.
  7898. // later at instantiation we can check if Super's options have
  7899. // been updated.
  7900. Sub.superOptions = Super.options;
  7901. Sub.extendOptions = extendOptions;
  7902. Sub.sealedOptions = extend({}, Sub.options);
  7903. // cache constructor
  7904. cachedCtors[SuperId] = Sub;
  7905. return Sub
  7906. };
  7907. }
  7908. function initProps$1 (Comp) {
  7909. var props = Comp.options.props;
  7910. for (var key in props) {
  7911. proxy(Comp.prototype, "_props", key);
  7912. }
  7913. }
  7914. function initComputed$1 (Comp) {
  7915. var computed = Comp.options.computed;
  7916. for (var key in computed) {
  7917. defineComputed(Comp.prototype, key, computed[key]);
  7918. }
  7919. }
  7920. /* */
  7921. function initAssetRegisters (Vue) {
  7922. /**
  7923. * Create asset registration methods.
  7924. */
  7925. ASSET_TYPES.forEach(function (type) {
  7926. Vue[type] = function (
  7927. id,
  7928. definition
  7929. ) {
  7930. if (!definition) {
  7931. return this.options[type + 's'][id]
  7932. } else {
  7933. /* istanbul ignore if */
  7934. if ( true && type === 'component') {
  7935. validateComponentName(id);
  7936. }
  7937. if (type === 'component' && isPlainObject(definition)) {
  7938. definition.name = definition.name || id;
  7939. definition = this.options._base.extend(definition);
  7940. }
  7941. if (type === 'directive' && typeof definition === 'function') {
  7942. definition = { bind: definition, update: definition };
  7943. }
  7944. this.options[type + 's'][id] = definition;
  7945. return definition
  7946. }
  7947. };
  7948. });
  7949. }
  7950. /* */
  7951. function getComponentName (opts) {
  7952. return opts && (opts.Ctor.options.name || opts.tag)
  7953. }
  7954. function matches (pattern, name) {
  7955. if (Array.isArray(pattern)) {
  7956. return pattern.indexOf(name) > -1
  7957. } else if (typeof pattern === 'string') {
  7958. return pattern.split(',').indexOf(name) > -1
  7959. } else if (isRegExp(pattern)) {
  7960. return pattern.test(name)
  7961. }
  7962. /* istanbul ignore next */
  7963. return false
  7964. }
  7965. function pruneCache (keepAliveInstance, filter) {
  7966. var cache = keepAliveInstance.cache;
  7967. var keys = keepAliveInstance.keys;
  7968. var _vnode = keepAliveInstance._vnode;
  7969. for (var key in cache) {
  7970. var cachedNode = cache[key];
  7971. if (cachedNode) {
  7972. var name = getComponentName(cachedNode.componentOptions);
  7973. if (name && !filter(name)) {
  7974. pruneCacheEntry(cache, key, keys, _vnode);
  7975. }
  7976. }
  7977. }
  7978. }
  7979. function pruneCacheEntry (
  7980. cache,
  7981. key,
  7982. keys,
  7983. current
  7984. ) {
  7985. var cached$$1 = cache[key];
  7986. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  7987. cached$$1.componentInstance.$destroy();
  7988. }
  7989. cache[key] = null;
  7990. remove(keys, key);
  7991. }
  7992. var patternTypes = [String, RegExp, Array];
  7993. var KeepAlive = {
  7994. name: 'keep-alive',
  7995. abstract: true,
  7996. props: {
  7997. include: patternTypes,
  7998. exclude: patternTypes,
  7999. max: [String, Number]
  8000. },
  8001. created: function created () {
  8002. this.cache = Object.create(null);
  8003. this.keys = [];
  8004. },
  8005. destroyed: function destroyed () {
  8006. for (var key in this.cache) {
  8007. pruneCacheEntry(this.cache, key, this.keys);
  8008. }
  8009. },
  8010. mounted: function mounted () {
  8011. var this$1 = this;
  8012. this.$watch('include', function (val) {
  8013. pruneCache(this$1, function (name) { return matches(val, name); });
  8014. });
  8015. this.$watch('exclude', function (val) {
  8016. pruneCache(this$1, function (name) { return !matches(val, name); });
  8017. });
  8018. },
  8019. render: function render () {
  8020. var slot = this.$slots.default;
  8021. var vnode = getFirstComponentChild(slot);
  8022. var componentOptions = vnode && vnode.componentOptions;
  8023. if (componentOptions) {
  8024. // check pattern
  8025. var name = getComponentName(componentOptions);
  8026. var ref = this;
  8027. var include = ref.include;
  8028. var exclude = ref.exclude;
  8029. if (
  8030. // not included
  8031. (include && (!name || !matches(include, name))) ||
  8032. // excluded
  8033. (exclude && name && matches(exclude, name))
  8034. ) {
  8035. return vnode
  8036. }
  8037. var ref$1 = this;
  8038. var cache = ref$1.cache;
  8039. var keys = ref$1.keys;
  8040. var key = vnode.key == null
  8041. // same constructor may get registered as different local components
  8042. // so cid alone is not enough (#3269)
  8043. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8044. : vnode.key;
  8045. if (cache[key]) {
  8046. vnode.componentInstance = cache[key].componentInstance;
  8047. // make current key freshest
  8048. remove(keys, key);
  8049. keys.push(key);
  8050. } else {
  8051. cache[key] = vnode;
  8052. keys.push(key);
  8053. // prune oldest entry
  8054. if (this.max && keys.length > parseInt(this.max)) {
  8055. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8056. }
  8057. }
  8058. vnode.data.keepAlive = true;
  8059. }
  8060. return vnode || (slot && slot[0])
  8061. }
  8062. };
  8063. var builtInComponents = {
  8064. KeepAlive: KeepAlive
  8065. };
  8066. /* */
  8067. function initGlobalAPI (Vue) {
  8068. // config
  8069. var configDef = {};
  8070. configDef.get = function () { return config; };
  8071. if (true) {
  8072. configDef.set = function () {
  8073. warn(
  8074. 'Do not replace the Vue.config object, set individual fields instead.'
  8075. );
  8076. };
  8077. }
  8078. Object.defineProperty(Vue, 'config', configDef);
  8079. // exposed util methods.
  8080. // NOTE: these are not considered part of the public API - avoid relying on
  8081. // them unless you are aware of the risk.
  8082. Vue.util = {
  8083. warn: warn,
  8084. extend: extend,
  8085. mergeOptions: mergeOptions,
  8086. defineReactive: defineReactive$$1
  8087. };
  8088. Vue.set = set;
  8089. Vue.delete = del;
  8090. Vue.nextTick = nextTick;
  8091. // 2.6 explicit observable API
  8092. Vue.observable = function (obj) {
  8093. observe(obj);
  8094. return obj
  8095. };
  8096. Vue.options = Object.create(null);
  8097. ASSET_TYPES.forEach(function (type) {
  8098. Vue.options[type + 's'] = Object.create(null);
  8099. });
  8100. // this is used to identify the "base" constructor to extend all plain-object
  8101. // components with in Weex's multi-instance scenarios.
  8102. Vue.options._base = Vue;
  8103. extend(Vue.options.components, builtInComponents);
  8104. initUse(Vue);
  8105. initMixin$1(Vue);
  8106. initExtend(Vue);
  8107. initAssetRegisters(Vue);
  8108. }
  8109. initGlobalAPI(Vue);
  8110. Object.defineProperty(Vue.prototype, '$isServer', {
  8111. get: isServerRendering
  8112. });
  8113. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8114. get: function get () {
  8115. /* istanbul ignore next */
  8116. return this.$vnode && this.$vnode.ssrContext
  8117. }
  8118. });
  8119. // expose FunctionalRenderContext for ssr runtime helper installation
  8120. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8121. value: FunctionalRenderContext
  8122. });
  8123. Vue.version = '2.6.11';
  8124. /**
  8125. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8126. */
  8127. var ARRAYTYPE = '[object Array]';
  8128. var OBJECTTYPE = '[object Object]';
  8129. var NULLTYPE = '[object Null]';
  8130. var UNDEFINEDTYPE = '[object Undefined]';
  8131. // const FUNCTIONTYPE = '[object Function]'
  8132. function diff(current, pre) {
  8133. var result = {};
  8134. syncKeys(current, pre);
  8135. _diff(current, pre, '', result);
  8136. return result
  8137. }
  8138. function syncKeys(current, pre) {
  8139. if (current === pre) { return }
  8140. var rootCurrentType = type(current);
  8141. var rootPreType = type(pre);
  8142. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8143. if(Object.keys(current).length >= Object.keys(pre).length){
  8144. for (var key in pre) {
  8145. var currentValue = current[key];
  8146. if (currentValue === undefined) {
  8147. current[key] = null;
  8148. } else {
  8149. syncKeys(currentValue, pre[key]);
  8150. }
  8151. }
  8152. }
  8153. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8154. if (current.length >= pre.length) {
  8155. pre.forEach(function (item, index) {
  8156. syncKeys(current[index], item);
  8157. });
  8158. }
  8159. }
  8160. }
  8161. function nullOrUndefined(currentType, preType) {
  8162. if(
  8163. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8164. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8165. ) {
  8166. return false
  8167. }
  8168. return true
  8169. }
  8170. function _diff(current, pre, path, result) {
  8171. if (current === pre) { return }
  8172. var rootCurrentType = type(current);
  8173. var rootPreType = type(pre);
  8174. if (rootCurrentType == OBJECTTYPE) {
  8175. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8176. setResult(result, path, current);
  8177. } else {
  8178. var loop = function ( key ) {
  8179. var currentValue = current[key];
  8180. var preValue = pre[key];
  8181. var currentType = type(currentValue);
  8182. var preType = type(preValue);
  8183. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8184. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8185. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8186. }
  8187. } else if (currentType == ARRAYTYPE) {
  8188. if (preType != ARRAYTYPE) {
  8189. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8190. } else {
  8191. if (currentValue.length < preValue.length) {
  8192. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8193. } else {
  8194. currentValue.forEach(function (item, index) {
  8195. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8196. });
  8197. }
  8198. }
  8199. } else if (currentType == OBJECTTYPE) {
  8200. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8201. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8202. } else {
  8203. for (var subKey in currentValue) {
  8204. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8205. }
  8206. }
  8207. }
  8208. };
  8209. for (var key in current) loop( key );
  8210. }
  8211. } else if (rootCurrentType == ARRAYTYPE) {
  8212. if (rootPreType != ARRAYTYPE) {
  8213. setResult(result, path, current);
  8214. } else {
  8215. if (current.length < pre.length) {
  8216. setResult(result, path, current);
  8217. } else {
  8218. current.forEach(function (item, index) {
  8219. _diff(item, pre[index], path + '[' + index + ']', result);
  8220. });
  8221. }
  8222. }
  8223. } else {
  8224. setResult(result, path, current);
  8225. }
  8226. }
  8227. function setResult(result, k, v) {
  8228. // if (type(v) != FUNCTIONTYPE) {
  8229. result[k] = v;
  8230. // }
  8231. }
  8232. function type(obj) {
  8233. return Object.prototype.toString.call(obj)
  8234. }
  8235. /* */
  8236. function flushCallbacks$1(vm) {
  8237. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8238. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"红沙湾管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8239. var mpInstance = vm.$scope;
  8240. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8241. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8242. }
  8243. var copies = vm.__next_tick_callbacks.slice(0);
  8244. vm.__next_tick_callbacks.length = 0;
  8245. for (var i = 0; i < copies.length; i++) {
  8246. copies[i]();
  8247. }
  8248. }
  8249. }
  8250. function hasRenderWatcher(vm) {
  8251. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8252. }
  8253. function nextTick$1(vm, cb) {
  8254. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8255. //2.nextTick 之前存在 render watcher
  8256. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8257. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"红沙湾管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8258. var mpInstance = vm.$scope;
  8259. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8260. ']:nextVueTick');
  8261. }
  8262. return nextTick(cb, vm)
  8263. }else{
  8264. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"红沙湾管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8265. var mpInstance$1 = vm.$scope;
  8266. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8267. ']:nextMPTick');
  8268. }
  8269. }
  8270. var _resolve;
  8271. if (!vm.__next_tick_callbacks) {
  8272. vm.__next_tick_callbacks = [];
  8273. }
  8274. vm.__next_tick_callbacks.push(function () {
  8275. if (cb) {
  8276. try {
  8277. cb.call(vm);
  8278. } catch (e) {
  8279. handleError(e, vm, 'nextTick');
  8280. }
  8281. } else if (_resolve) {
  8282. _resolve(vm);
  8283. }
  8284. });
  8285. // $flow-disable-line
  8286. if (!cb && typeof Promise !== 'undefined') {
  8287. return new Promise(function (resolve) {
  8288. _resolve = resolve;
  8289. })
  8290. }
  8291. }
  8292. /* */
  8293. function clearInstance(key, value) {
  8294. // 简易去除 Vue 和小程序组件实例
  8295. if (value) {
  8296. if (value._isVue || value.__v_isMPComponent) {
  8297. return {}
  8298. }
  8299. }
  8300. return value
  8301. }
  8302. function cloneWithData(vm) {
  8303. // 确保当前 vm 所有数据被同步
  8304. var ret = Object.create(null);
  8305. var dataKeys = [].concat(
  8306. Object.keys(vm._data || {}),
  8307. Object.keys(vm._computedWatchers || {}));
  8308. dataKeys.reduce(function(ret, key) {
  8309. ret[key] = vm[key];
  8310. return ret
  8311. }, ret);
  8312. // vue-composition-api
  8313. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8314. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8315. if (rawBindings) {
  8316. Object.keys(rawBindings).forEach(function (key) {
  8317. ret[key] = vm[key];
  8318. });
  8319. }
  8320. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8321. Object.assign(ret, vm.$mp.data || {});
  8322. if (
  8323. Array.isArray(vm.$options.behaviors) &&
  8324. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8325. ) { //form-field
  8326. ret['name'] = vm.name;
  8327. ret['value'] = vm.value;
  8328. }
  8329. return JSON.parse(JSON.stringify(ret, clearInstance))
  8330. }
  8331. var patch = function(oldVnode, vnode) {
  8332. var this$1 = this;
  8333. if (vnode === null) { //destroy
  8334. return
  8335. }
  8336. if (this.mpType === 'page' || this.mpType === 'component') {
  8337. var mpInstance = this.$scope;
  8338. var data = Object.create(null);
  8339. try {
  8340. data = cloneWithData(this);
  8341. } catch (err) {
  8342. console.error(err);
  8343. }
  8344. data.__webviewId__ = mpInstance.data.__webviewId__;
  8345. var mpData = Object.create(null);
  8346. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8347. mpData[key] = mpInstance.data[key];
  8348. });
  8349. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8350. if (Object.keys(diffData).length) {
  8351. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"红沙湾管理端","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8352. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8353. ']差量更新',
  8354. JSON.stringify(diffData));
  8355. }
  8356. this.__next_tick_pending = true;
  8357. mpInstance.setData(diffData, function () {
  8358. this$1.__next_tick_pending = false;
  8359. flushCallbacks$1(this$1);
  8360. });
  8361. } else {
  8362. flushCallbacks$1(this);
  8363. }
  8364. }
  8365. };
  8366. /* */
  8367. function createEmptyRender() {
  8368. }
  8369. function mountComponent$1(
  8370. vm,
  8371. el,
  8372. hydrating
  8373. ) {
  8374. if (!vm.mpType) {//main.js 中的 new Vue
  8375. return vm
  8376. }
  8377. if (vm.mpType === 'app') {
  8378. vm.$options.render = createEmptyRender;
  8379. }
  8380. if (!vm.$options.render) {
  8381. vm.$options.render = createEmptyRender;
  8382. if (true) {
  8383. /* istanbul ignore if */
  8384. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8385. vm.$options.el || el) {
  8386. warn(
  8387. 'You are using the runtime-only build of Vue where the template ' +
  8388. 'compiler is not available. Either pre-compile the templates into ' +
  8389. 'render functions, or use the compiler-included build.',
  8390. vm
  8391. );
  8392. } else {
  8393. warn(
  8394. 'Failed to mount component: template or render function not defined.',
  8395. vm
  8396. );
  8397. }
  8398. }
  8399. }
  8400. !vm._$fallback && callHook(vm, 'beforeMount');
  8401. var updateComponent = function () {
  8402. vm._update(vm._render(), hydrating);
  8403. };
  8404. // we set this to vm._watcher inside the watcher's constructor
  8405. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8406. // component's mounted hook), which relies on vm._watcher being already defined
  8407. new Watcher(vm, updateComponent, noop, {
  8408. before: function before() {
  8409. if (vm._isMounted && !vm._isDestroyed) {
  8410. callHook(vm, 'beforeUpdate');
  8411. }
  8412. }
  8413. }, true /* isRenderWatcher */);
  8414. hydrating = false;
  8415. return vm
  8416. }
  8417. /* */
  8418. function renderClass (
  8419. staticClass,
  8420. dynamicClass
  8421. ) {
  8422. if (isDef(staticClass) || isDef(dynamicClass)) {
  8423. return concat(staticClass, stringifyClass(dynamicClass))
  8424. }
  8425. /* istanbul ignore next */
  8426. return ''
  8427. }
  8428. function concat (a, b) {
  8429. return a ? b ? (a + ' ' + b) : a : (b || '')
  8430. }
  8431. function stringifyClass (value) {
  8432. if (Array.isArray(value)) {
  8433. return stringifyArray(value)
  8434. }
  8435. if (isObject(value)) {
  8436. return stringifyObject(value)
  8437. }
  8438. if (typeof value === 'string') {
  8439. return value
  8440. }
  8441. /* istanbul ignore next */
  8442. return ''
  8443. }
  8444. function stringifyArray (value) {
  8445. var res = '';
  8446. var stringified;
  8447. for (var i = 0, l = value.length; i < l; i++) {
  8448. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8449. if (res) { res += ' '; }
  8450. res += stringified;
  8451. }
  8452. }
  8453. return res
  8454. }
  8455. function stringifyObject (value) {
  8456. var res = '';
  8457. for (var key in value) {
  8458. if (value[key]) {
  8459. if (res) { res += ' '; }
  8460. res += key;
  8461. }
  8462. }
  8463. return res
  8464. }
  8465. /* */
  8466. var parseStyleText = cached(function (cssText) {
  8467. var res = {};
  8468. var listDelimiter = /;(?![^(]*\))/g;
  8469. var propertyDelimiter = /:(.+)/;
  8470. cssText.split(listDelimiter).forEach(function (item) {
  8471. if (item) {
  8472. var tmp = item.split(propertyDelimiter);
  8473. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8474. }
  8475. });
  8476. return res
  8477. });
  8478. // normalize possible array / string values into Object
  8479. function normalizeStyleBinding (bindingStyle) {
  8480. if (Array.isArray(bindingStyle)) {
  8481. return toObject(bindingStyle)
  8482. }
  8483. if (typeof bindingStyle === 'string') {
  8484. return parseStyleText(bindingStyle)
  8485. }
  8486. return bindingStyle
  8487. }
  8488. /* */
  8489. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8490. function getTarget(obj, path) {
  8491. var parts = path.split('.');
  8492. var key = parts[0];
  8493. if (key.indexOf('__$n') === 0) { //number index
  8494. key = parseInt(key.replace('__$n', ''));
  8495. }
  8496. if (parts.length === 1) {
  8497. return obj[key]
  8498. }
  8499. return getTarget(obj[key], parts.slice(1).join('.'))
  8500. }
  8501. function internalMixin(Vue) {
  8502. Vue.config.errorHandler = function(err, vm, info) {
  8503. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8504. console.error(err);
  8505. /* eslint-disable no-undef */
  8506. var app = typeof getApp === 'function' && getApp();
  8507. if (app && app.onError) {
  8508. app.onError(err);
  8509. }
  8510. };
  8511. var oldEmit = Vue.prototype.$emit;
  8512. Vue.prototype.$emit = function(event) {
  8513. if (this.$scope && event) {
  8514. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8515. if (triggerEvent) {
  8516. try {
  8517. triggerEvent.call(this.$scope, event, {
  8518. __args__: toArray(arguments, 1)
  8519. });
  8520. } catch (error) {
  8521. }
  8522. }
  8523. }
  8524. return oldEmit.apply(this, arguments)
  8525. };
  8526. Vue.prototype.$nextTick = function(fn) {
  8527. return nextTick$1(this, fn)
  8528. };
  8529. MP_METHODS.forEach(function (method) {
  8530. Vue.prototype[method] = function(args) {
  8531. if (this.$scope && this.$scope[method]) {
  8532. return this.$scope[method](args)
  8533. }
  8534. // mp-alipay
  8535. if (typeof my === 'undefined') {
  8536. return
  8537. }
  8538. if (method === 'createSelectorQuery') {
  8539. /* eslint-disable no-undef */
  8540. return my.createSelectorQuery(args)
  8541. } else if (method === 'createIntersectionObserver') {
  8542. /* eslint-disable no-undef */
  8543. return my.createIntersectionObserver(args)
  8544. }
  8545. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8546. };
  8547. });
  8548. Vue.prototype.__init_provide = initProvide;
  8549. Vue.prototype.__init_injections = initInjections;
  8550. Vue.prototype.__call_hook = function(hook, args) {
  8551. var vm = this;
  8552. // #7573 disable dep collection when invoking lifecycle hooks
  8553. pushTarget();
  8554. var handlers = vm.$options[hook];
  8555. var info = hook + " hook";
  8556. var ret;
  8557. if (handlers) {
  8558. for (var i = 0, j = handlers.length; i < j; i++) {
  8559. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8560. }
  8561. }
  8562. if (vm._hasHookEvent) {
  8563. vm.$emit('hook:' + hook, args);
  8564. }
  8565. popTarget();
  8566. return ret
  8567. };
  8568. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8569. if (Array.isArray(modifiers)) {
  8570. if (modifiers.indexOf('trim') !== -1) {
  8571. value = value.trim();
  8572. }
  8573. if (modifiers.indexOf('number') !== -1) {
  8574. value = this._n(value);
  8575. }
  8576. }
  8577. if (!target) {
  8578. target = this;
  8579. }
  8580. // 解决动态属性添加
  8581. Vue.set(target, key, value);
  8582. };
  8583. Vue.prototype.__set_sync = function(target, key, value) {
  8584. if (!target) {
  8585. target = this;
  8586. }
  8587. // 解决动态属性添加
  8588. Vue.set(target, key, value);
  8589. };
  8590. Vue.prototype.__get_orig = function(item) {
  8591. if (isPlainObject(item)) {
  8592. return item['$orig'] || item
  8593. }
  8594. return item
  8595. };
  8596. Vue.prototype.__get_value = function(dataPath, target) {
  8597. return getTarget(target || this, dataPath)
  8598. };
  8599. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8600. return renderClass(staticClass, dynamicClass)
  8601. };
  8602. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8603. if (!dynamicStyle && !staticStyle) {
  8604. return ''
  8605. }
  8606. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8607. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8608. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8609. };
  8610. Vue.prototype.__map = function(val, iteratee) {
  8611. //TODO 暂不考虑 string
  8612. var ret, i, l, keys, key;
  8613. if (Array.isArray(val)) {
  8614. ret = new Array(val.length);
  8615. for (i = 0, l = val.length; i < l; i++) {
  8616. ret[i] = iteratee(val[i], i);
  8617. }
  8618. return ret
  8619. } else if (isObject(val)) {
  8620. keys = Object.keys(val);
  8621. ret = Object.create(null);
  8622. for (i = 0, l = keys.length; i < l; i++) {
  8623. key = keys[i];
  8624. ret[key] = iteratee(val[key], key, i);
  8625. }
  8626. return ret
  8627. } else if (typeof val === 'number') {
  8628. ret = new Array(val);
  8629. for (i = 0, l = val; i < l; i++) {
  8630. // 第一个参数暂时仍和小程序一致
  8631. ret[i] = iteratee(i, i);
  8632. }
  8633. return ret
  8634. }
  8635. return []
  8636. };
  8637. }
  8638. /* */
  8639. var LIFECYCLE_HOOKS$1 = [
  8640. //App
  8641. 'onLaunch',
  8642. 'onShow',
  8643. 'onHide',
  8644. 'onUniNViewMessage',
  8645. 'onPageNotFound',
  8646. 'onThemeChange',
  8647. 'onError',
  8648. 'onUnhandledRejection',
  8649. //Page
  8650. 'onInit',
  8651. 'onLoad',
  8652. // 'onShow',
  8653. 'onReady',
  8654. // 'onHide',
  8655. 'onUnload',
  8656. 'onPullDownRefresh',
  8657. 'onReachBottom',
  8658. 'onTabItemTap',
  8659. 'onAddToFavorites',
  8660. 'onShareTimeline',
  8661. 'onShareAppMessage',
  8662. 'onResize',
  8663. 'onPageScroll',
  8664. 'onNavigationBarButtonTap',
  8665. 'onBackPress',
  8666. 'onNavigationBarSearchInputChanged',
  8667. 'onNavigationBarSearchInputConfirmed',
  8668. 'onNavigationBarSearchInputClicked',
  8669. 'onUploadDouyinVideo',
  8670. 'onNFCReadMessage',
  8671. //Component
  8672. // 'onReady', // 兼容旧版本,应该移除该事件
  8673. 'onPageShow',
  8674. 'onPageHide',
  8675. 'onPageResize'
  8676. ];
  8677. function lifecycleMixin$1(Vue) {
  8678. //fixed vue-class-component
  8679. var oldExtend = Vue.extend;
  8680. Vue.extend = function(extendOptions) {
  8681. extendOptions = extendOptions || {};
  8682. var methods = extendOptions.methods;
  8683. if (methods) {
  8684. Object.keys(methods).forEach(function (methodName) {
  8685. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8686. extendOptions[methodName] = methods[methodName];
  8687. delete methods[methodName];
  8688. }
  8689. });
  8690. }
  8691. return oldExtend.call(this, extendOptions)
  8692. };
  8693. var strategies = Vue.config.optionMergeStrategies;
  8694. var mergeHook = strategies.created;
  8695. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8696. strategies[hook] = mergeHook;
  8697. });
  8698. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8699. }
  8700. /* */
  8701. // install platform patch function
  8702. Vue.prototype.__patch__ = patch;
  8703. // public mount method
  8704. Vue.prototype.$mount = function(
  8705. el ,
  8706. hydrating
  8707. ) {
  8708. return mountComponent$1(this, el, hydrating)
  8709. };
  8710. lifecycleMixin$1(Vue);
  8711. internalMixin(Vue);
  8712. /* */
  8713. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8714. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8715. /***/ }),
  8716. /***/ 26:
  8717. /*!****************************************!*\
  8718. !*** D:/AAA_Company/红沙湾管理端/pages.json ***!
  8719. \****************************************/
  8720. /*! no static exports found */
  8721. /***/ (function(module, exports) {
  8722. /***/ }),
  8723. /***/ 263:
  8724. /*!*************************************************************************!*\
  8725. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/common/validator.js ***!
  8726. \*************************************************************************/
  8727. /*! no static exports found */
  8728. /***/ (function(module, exports, __webpack_require__) {
  8729. "use strict";
  8730. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8731. Object.defineProperty(exports, "__esModule", {
  8732. value: true
  8733. });
  8734. exports.isBoolean = isBoolean;
  8735. exports.isDef = isDef;
  8736. exports.isFunction = isFunction;
  8737. exports.isImageUrl = isImageUrl;
  8738. exports.isNumber = isNumber;
  8739. exports.isObj = isObj;
  8740. exports.isPlainObject = isPlainObject;
  8741. exports.isPromise = isPromise;
  8742. exports.isVideoUrl = isVideoUrl;
  8743. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  8744. // eslint-disable-next-line @typescript-eslint/ban-types
  8745. function isFunction(val) {
  8746. return typeof val === 'function';
  8747. }
  8748. function isPlainObject(val) {
  8749. return val !== null && (0, _typeof2.default)(val) === 'object' && !Array.isArray(val);
  8750. }
  8751. function isPromise(val) {
  8752. return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
  8753. }
  8754. function isDef(value) {
  8755. return value !== undefined && value !== null;
  8756. }
  8757. function isObj(x) {
  8758. var type = (0, _typeof2.default)(x);
  8759. return x !== null && (type === 'object' || type === 'function');
  8760. }
  8761. function isNumber(value) {
  8762. return /^\d+(\.\d+)?$/.test(value);
  8763. }
  8764. function isBoolean(value) {
  8765. return typeof value === 'boolean';
  8766. }
  8767. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  8768. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
  8769. function isImageUrl(url) {
  8770. return IMAGE_REGEXP.test(url);
  8771. }
  8772. function isVideoUrl(url) {
  8773. return VIDEO_REGEXP.test(url);
  8774. }
  8775. /***/ }),
  8776. /***/ 27:
  8777. /*!*******************************************************************!*\
  8778. !*** ./node_modules/@dcloudio/uni-stat/dist/uni-cloud-stat.es.js ***!
  8779. \*******************************************************************/
  8780. /*! no static exports found */
  8781. /***/ (function(module, exports, __webpack_require__) {
  8782. /* WEBPACK VAR INJECTION */(function(uni, uniCloud) {var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ 33);
  8783. var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34);
  8784. var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35);
  8785. var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23);
  8786. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 24);
  8787. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  8788. var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11);
  8789. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
  8790. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  8791. /**
  8792. * 获取系统信息
  8793. */
  8794. var sys = uni.getSystemInfoSync();
  8795. // 访问开始即启动小程序,访问结束结分为:进入后台超过5min、在前台无任何操作超过30min、在新的来源打开小程序;
  8796. var STAT_VERSION = "4.29";
  8797. var STAT_URL = 'https://tongji.dcloud.io/uni/stat';
  8798. var STAT_H5_URL = 'https://tongji.dcloud.io/uni/stat.gif';
  8799. var PAGE_PVER_TIME = 1800; // 页面在前台无操作结束访问时间 单位s
  8800. var APP_PVER_TIME = 300; // 应用在后台结束访问时间 单位s
  8801. var OPERATING_TIME = 10; // 数据上报时间 单位s
  8802. var DIFF_TIME = 60 * 1000 * 60 * 24;
  8803. var appid = "__UNI__8C5F0F6"; // 做应用隔离
  8804. var dbSet = function dbSet(name, value) {
  8805. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8806. if (!data) {
  8807. data = {};
  8808. }
  8809. data[name] = value;
  8810. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8811. };
  8812. var dbGet = function dbGet(name) {
  8813. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8814. if (!data[name]) {
  8815. var dbdata = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  8816. if (!dbdata) {
  8817. dbdata = {};
  8818. }
  8819. if (!dbdata[name]) {
  8820. return undefined;
  8821. }
  8822. data[name] = dbdata[name];
  8823. }
  8824. return data[name];
  8825. };
  8826. var dbRemove = function dbRemove(name) {
  8827. var data = uni.getStorageSync('$$STAT__DBDATA:' + appid) || {};
  8828. if (data[name]) {
  8829. delete data[name];
  8830. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8831. } else {
  8832. data = uni.getStorageSync('$$STAT__DBDATA:' + appid);
  8833. if (data[name]) {
  8834. delete data[name];
  8835. uni.setStorageSync('$$STAT__DBDATA:' + appid, data);
  8836. }
  8837. }
  8838. };
  8839. // 获取 manifest.json 中统计配置
  8840. var uniStatisticsConfig = {"version":"2","enable":true};
  8841. var statConfig = {
  8842. appid: "__UNI__8C5F0F6"
  8843. };
  8844. var titleJsons = {};
  8845. var debug = false || false;
  8846. // eslint-disable-next-line no-restricted-globals
  8847. var pagesTitle = __webpack_require__(/*! uni-pages?{"type":"style"} */ 40).default;
  8848. var pagesData = pagesTitle.pages;
  8849. for (var i in pagesData) {
  8850. var _style$navigationBar;
  8851. var style = pagesData[i];
  8852. var titleText =
  8853. // MP
  8854. style.navigationBarTitleText ||
  8855. // ali
  8856. style.defaultTitle || ( // H5 || App
  8857. (_style$navigationBar = style.navigationBar) === null || _style$navigationBar === void 0 ? void 0 : _style$navigationBar.titleText) || '';
  8858. if (titleText) {
  8859. titleJsons[i] = titleText;
  8860. }
  8861. }
  8862. // TODO 在云函数中获取,暂时注释
  8863. var UUID_KEY = '__DC_STAT_UUID';
  8864. var UUID_VALUE = '__DC_UUID_VALUE';
  8865. function getUuid() {
  8866. var uuid = '';
  8867. if (get_platform_name() === 'n') {
  8868. try {
  8869. uuid = plus.runtime.getDCloudId();
  8870. } catch (e) {
  8871. uuid = '';
  8872. }
  8873. return uuid;
  8874. }
  8875. try {
  8876. uuid = uni.getStorageSync(UUID_KEY);
  8877. } catch (e) {
  8878. uuid = UUID_VALUE;
  8879. }
  8880. if (!uuid) {
  8881. uuid = Date.now() + '' + Math.floor(Math.random() * 1e7);
  8882. try {
  8883. uni.setStorageSync(UUID_KEY, uuid);
  8884. } catch (e) {
  8885. uni.setStorageSync(UUID_KEY, UUID_VALUE);
  8886. }
  8887. }
  8888. return uuid;
  8889. }
  8890. var get_uuid = function get_uuid(statData) {
  8891. // 有可能不存在 deviceId(一般不存在就是出bug了),就自己生成一个
  8892. return sys.deviceId || getUuid();
  8893. };
  8894. /**
  8895. * 获取老版的 deviceid ,兼容以前的错误 deviceid
  8896. * @param {*} statData
  8897. * @returns
  8898. */
  8899. var get_odid = function get_odid(statData) {
  8900. var odid = '';
  8901. if (get_platform_name() === 'n') {
  8902. try {
  8903. odid = plus.device.uuid;
  8904. } catch (e) {
  8905. odid = '';
  8906. }
  8907. return odid;
  8908. }
  8909. return sys.deviceId || getUuid();
  8910. };
  8911. /**
  8912. * 获取配置信息 如 appid
  8913. */
  8914. var stat_config = statConfig;
  8915. var get_sgin = function get_sgin(statData) {
  8916. var arr = Object.keys(statData);
  8917. var sortArr = arr.sort();
  8918. var sgin = {};
  8919. var sginStr = '';
  8920. for (var i in sortArr) {
  8921. sgin[sortArr[i]] = statData[sortArr[i]];
  8922. sginStr += sortArr[i] + '=' + statData[sortArr[i]] + '&';
  8923. }
  8924. return {
  8925. sign: '',
  8926. options: sginStr.substr(0, sginStr.length - 1)
  8927. };
  8928. };
  8929. var get_encodeURIComponent_options = function get_encodeURIComponent_options(statData) {
  8930. var data = {};
  8931. for (var prop in statData) {
  8932. data[prop] = encodeURIComponent(statData[prop]);
  8933. }
  8934. return data;
  8935. };
  8936. /**
  8937. * 获取当前平台
  8938. * 移动端 : 'n',
  8939. * h5 : 'h5',
  8940. * 微信 : 'wx',
  8941. * 阿里 : 'ali',
  8942. * 百度 : 'bd',
  8943. * 头条 : 'tt',
  8944. * qq : 'qq',
  8945. * 快应用 : 'qn',
  8946. * 快手 : 'ks',
  8947. * 飞书 : 'lark',
  8948. * 快应用 : 'qw',
  8949. * 钉钉 : 'dt'
  8950. */
  8951. var get_platform_name = function get_platform_name() {
  8952. var _platformList;
  8953. // 苹果审核代码中禁止出现 alipay 字样 ,需要特殊处理一下
  8954. var aliArr = ['y', 'a', 'p', 'mp-ali'];
  8955. var platformList = (_platformList = {
  8956. app: 'n',
  8957. 'app-plus': 'n',
  8958. h5: 'h5',
  8959. 'mp-weixin': 'wx'
  8960. }, _defineProperty(_platformList, aliArr.reverse().join(''), 'ali'), _defineProperty(_platformList, 'mp-baidu', 'bd'), _defineProperty(_platformList, 'mp-toutiao', 'tt'), _defineProperty(_platformList, 'mp-qq', 'qq'), _defineProperty(_platformList, 'quickapp-native', 'qn'), _defineProperty(_platformList, 'mp-kuaishou', 'ks'), _defineProperty(_platformList, 'mp-lark', 'lark'), _defineProperty(_platformList, 'quickapp-webview', 'qw'), _platformList);
  8961. if (platformList["mp-weixin"] === 'ali') {
  8962. if (my && my.env) {
  8963. var clientName = my.env.clientName;
  8964. if (clientName === 'ap') return 'ali';
  8965. if (clientName === 'dingtalk') return 'dt';
  8966. // TODO 缺少 ali 下的其他平台
  8967. }
  8968. }
  8969. return platformList["mp-weixin"];
  8970. };
  8971. /**
  8972. * 获取小程序 appid
  8973. */
  8974. var get_pack_name = function get_pack_name() {
  8975. var packName = '';
  8976. if (get_platform_name() === 'wx' || get_platform_name() === 'qq') {
  8977. // 兼容微信小程序低版本基础库
  8978. if (uni.canIUse('getAccountInfoSync')) {
  8979. packName = uni.getAccountInfoSync().miniProgram.appId || '';
  8980. }
  8981. }
  8982. if (get_platform_name() === 'n') ;
  8983. return packName;
  8984. };
  8985. /**
  8986. * 应用版本
  8987. */
  8988. var get_version = function get_version() {
  8989. return get_platform_name() === 'n' ? plus.runtime.version : '';
  8990. };
  8991. /**
  8992. * 获取渠道
  8993. */
  8994. var get_channel = function get_channel() {
  8995. var platformName = get_platform_name();
  8996. var channel = '';
  8997. if (platformName === 'n') {
  8998. channel = plus.runtime.channel;
  8999. }
  9000. return channel;
  9001. };
  9002. /**
  9003. * 获取小程序场景值
  9004. * @param {Object} options 页面信息
  9005. */
  9006. var get_scene = function get_scene(options) {
  9007. var platformName = get_platform_name();
  9008. var scene = '';
  9009. if (options) {
  9010. return options;
  9011. }
  9012. if (platformName === 'wx') {
  9013. scene = uni.getLaunchOptionsSync().scene;
  9014. }
  9015. return scene;
  9016. };
  9017. /**
  9018. * 获取页面url,不包含参数
  9019. */
  9020. var get_route$1 = function get_route$1(pageVm) {
  9021. var _self = pageVm || get_page_vm();
  9022. if (get_platform_name() === 'bd') {
  9023. var mp_route = _self.$mp && _self.$mp.page && _self.$mp.page.is;
  9024. var scope_route = _self.$scope && _self.$scope.is;
  9025. return mp_route || scope_route || '';
  9026. } else {
  9027. return _self.route || _self.$scope && _self.$scope.route || _self.$mp && _self.$mp.page.route;
  9028. }
  9029. };
  9030. /**
  9031. * 获取页面url, 包含参数
  9032. */
  9033. var get_page_route = function get_page_route(pageVm) {
  9034. // 从 app 进入应用 ,没有 $page ,获取不到路由 ,需要获取页面 尝试从 getCurrentPages 获取也页面实例
  9035. // FIXME 尽量不使用 getCurrentPages ,大部分获取路由是从 onHide 获取 ,这时可以获取到,如果是 onload ,则可能获取不到,比如 百度
  9036. var page = pageVm && (pageVm.$page || pageVm.$scope && pageVm.$scope.$page);
  9037. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9038. if (!page) return lastPageRoute || '';
  9039. // 如果找不到 fullPath 就取 route 的值
  9040. return page.fullPath === '/' ? page.route : page.fullPath || page.route;
  9041. };
  9042. /**
  9043. * 获取页面实例
  9044. */
  9045. var get_page_vm = function get_page_vm() {
  9046. var pages = getCurrentPages();
  9047. var $page = pages[pages.length - 1];
  9048. if (!$page) return null;
  9049. return $page.$vm;
  9050. };
  9051. /**
  9052. * 获取页面类型
  9053. */
  9054. var get_page_types = function get_page_types(self) {
  9055. // XXX 百度有问题 ,获取的都是 componet ,等待修复
  9056. if (self.mpType === 'page' || self.$mpType === 'page' || self.$mp && self.$mp.mpType === 'page' || self.$options.mpType === 'page') {
  9057. return 'page';
  9058. }
  9059. if (self.mpType === 'app' || self.$mpType === 'app' || self.$mp && self.$mp.mpType === 'app' || self.$options.mpType === 'app') {
  9060. return 'app';
  9061. }
  9062. return null;
  9063. };
  9064. /**
  9065. * 处理上报参数
  9066. * @param {Object} 需要处理的数据
  9067. */
  9068. var handle_data = function handle_data(statData) {
  9069. var firstArr = [];
  9070. var contentArr = [];
  9071. var lastArr = [];
  9072. var _loop = function _loop(_i) {
  9073. var rd = statData[_i];
  9074. rd.forEach(function (elm) {
  9075. var newData = '';
  9076. {
  9077. newData = elm;
  9078. }
  9079. if (_i === 0) {
  9080. firstArr.push(newData);
  9081. } else if (_i === 3) {
  9082. lastArr.push(newData);
  9083. } else {
  9084. contentArr.push(newData);
  9085. }
  9086. });
  9087. };
  9088. for (var _i in statData) {
  9089. _loop(_i);
  9090. }
  9091. firstArr.push.apply(firstArr, contentArr.concat(lastArr));
  9092. // 参数需要处理成字符串,方便上传
  9093. return JSON.stringify(firstArr);
  9094. };
  9095. /**
  9096. * 自定义事件参数校验
  9097. */
  9098. var calibration = function calibration(eventName, options) {
  9099. // login 、 share 、pay_success 、pay_fail 、register 、title
  9100. if (!eventName) {
  9101. console.error("uni.report Missing [eventName] parameter");
  9102. return true;
  9103. }
  9104. if (typeof eventName !== 'string') {
  9105. console.error("uni.report [eventName] Parameter type error, it can only be of type String");
  9106. return true;
  9107. }
  9108. if (eventName.length > 255) {
  9109. console.error("uni.report [eventName] Parameter length cannot be greater than 255");
  9110. return true;
  9111. }
  9112. if (typeof options !== 'string' && _typeof(options) !== 'object') {
  9113. console.error('uni.report [options] Parameter type error, Only supports String or Object type');
  9114. return true;
  9115. }
  9116. if (typeof options === 'string' && options.length > 255) {
  9117. console.error("uni.report [options] Parameter length cannot be greater than 255");
  9118. return true;
  9119. }
  9120. if (eventName === 'title' && typeof options !== 'string') {
  9121. console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String");
  9122. return true;
  9123. }
  9124. };
  9125. var get_page_name = function get_page_name(routepath) {
  9126. return titleJsons && titleJsons[routepath] || '';
  9127. };
  9128. var Report_Data_Time = 'Report_Data_Time';
  9129. var Report_Status = 'Report_Status';
  9130. var is_report_data = function is_report_data() {
  9131. return new Promise(function (resolve, reject) {
  9132. var start_time = '';
  9133. var end_time = new Date().getTime();
  9134. var diff_time = DIFF_TIME;
  9135. var report_status = 1;
  9136. try {
  9137. start_time = uni.getStorageSync(Report_Data_Time);
  9138. report_status = uni.getStorageSync(Report_Status);
  9139. } catch (e) {
  9140. start_time = '';
  9141. report_status = 1;
  9142. }
  9143. if (report_status === '') {
  9144. requestData(function (_ref) {
  9145. var enable = _ref.enable;
  9146. uni.setStorageSync(Report_Data_Time, end_time);
  9147. uni.setStorageSync(Report_Status, enable);
  9148. if (enable === 1) {
  9149. resolve();
  9150. }
  9151. });
  9152. return;
  9153. }
  9154. if (report_status === 1) {
  9155. resolve();
  9156. }
  9157. if (!start_time) {
  9158. uni.setStorageSync(Report_Data_Time, end_time);
  9159. start_time = end_time;
  9160. }
  9161. if (end_time - start_time > diff_time) {
  9162. requestData(function (_ref2) {
  9163. var enable = _ref2.enable;
  9164. uni.setStorageSync(Report_Data_Time, end_time);
  9165. uni.setStorageSync(Report_Status, enable);
  9166. });
  9167. }
  9168. });
  9169. };
  9170. var requestData = function requestData(done) {
  9171. var appid = "__UNI__8C5F0F6";
  9172. var formData = {
  9173. usv: STAT_VERSION,
  9174. conf: JSON.stringify({
  9175. ak: appid
  9176. })
  9177. };
  9178. uni.request({
  9179. url: STAT_URL,
  9180. method: 'GET',
  9181. data: formData,
  9182. success: function success(res) {
  9183. var data = res.data;
  9184. if (data.ret === 0) {
  9185. typeof done === 'function' && done({
  9186. enable: data.enable
  9187. });
  9188. }
  9189. },
  9190. fail: function fail(e) {
  9191. var report_status_code = 1;
  9192. try {
  9193. report_status_code = uni.getStorageSync(Report_Status);
  9194. } catch (e) {
  9195. report_status_code = 1;
  9196. }
  9197. if (report_status_code === '') {
  9198. report_status_code = 1;
  9199. }
  9200. typeof done === 'function' && done({
  9201. enable: report_status_code
  9202. });
  9203. }
  9204. });
  9205. };
  9206. /**
  9207. * 获取uniCloud服务空间配置
  9208. * @returns {Object}
  9209. */
  9210. var uni_cloud_config = function uni_cloud_config() {
  9211. return {} || {};
  9212. };
  9213. /**
  9214. * 获取服务空间
  9215. * @param {*} config
  9216. * @returns
  9217. */
  9218. var get_space = function get_space(config) {
  9219. var uniCloudConfig = uni_cloud_config();
  9220. var spaceId = uniCloudConfig.spaceId,
  9221. provider = uniCloudConfig.provider,
  9222. clientSecret = uniCloudConfig.clientSecret,
  9223. secretKey = uniCloudConfig.secretKey,
  9224. secretId = uniCloudConfig.secretId;
  9225. var space_type = ['tcb', 'tencent', 'aliyun', 'alipay'];
  9226. var is_provider = space_type.indexOf(provider) !== -1;
  9227. var is_aliyun = provider === 'aliyun' && spaceId && clientSecret;
  9228. var is_tcb = (provider === 'tcb' || provider === 'tencent') && spaceId;
  9229. var is_alipay = provider === 'alipay' && spaceId && secretKey && secretId;
  9230. if (is_provider && (is_aliyun || is_tcb || is_alipay)) {
  9231. return uniCloudConfig;
  9232. } else {
  9233. if (config && config.spaceId) {
  9234. return config;
  9235. }
  9236. }
  9237. return null;
  9238. };
  9239. /**
  9240. * 是否开启 debug 模式
  9241. */
  9242. var is_debug = debug;
  9243. /**
  9244. * 日志输出
  9245. * @param {*} data
  9246. */
  9247. var log = function log(data, type) {
  9248. var msg_type = '';
  9249. switch (data.lt) {
  9250. case '1':
  9251. msg_type = '应用启动';
  9252. break;
  9253. case '3':
  9254. msg_type = '应用进入后台';
  9255. break;
  9256. case '11':
  9257. msg_type = '页面切换';
  9258. break;
  9259. case '21':
  9260. msg_type = '事件触发';
  9261. break;
  9262. case '31':
  9263. msg_type = '应用错误';
  9264. break;
  9265. case '101':
  9266. msg_type = 'PUSH';
  9267. break;
  9268. }
  9269. if (type) {
  9270. console.log("=== \u7EDF\u8BA1\u961F\u5217\u6570\u636E\u4E0A\u62A5 ===");
  9271. console.log(data);
  9272. console.log("=== \u4E0A\u62A5\u7ED3\u675F ===");
  9273. return;
  9274. }
  9275. if (msg_type) {
  9276. console.log("=== \u7EDF\u8BA1\u6570\u636E\u91C7\u96C6\uFF1A".concat(msg_type, " ==="));
  9277. console.log(data);
  9278. console.log("=== \u91C7\u96C6\u7ED3\u675F ===");
  9279. }
  9280. };
  9281. /**
  9282. * 获取上报时间间隔
  9283. * @param {*} defaultTime 默认上报间隔时间 单位s
  9284. */
  9285. var get_report_Interval = function get_report_Interval(defaultTime) {
  9286. var time = uniStatisticsConfig.reportInterval;
  9287. // 如果上报时间配置为0 相当于立即上报
  9288. if (Number(time) === 0) return 0;
  9289. time = time || defaultTime;
  9290. var reg = /(^[1-9]\d*$)/;
  9291. // 如果不是整数,则默认为上报间隔时间
  9292. if (!reg.test(time)) return defaultTime;
  9293. return Number(time);
  9294. };
  9295. /**
  9296. * 获取隐私协议配置
  9297. */
  9298. var is_push_clientid = function is_push_clientid() {
  9299. if (uniStatisticsConfig.collectItems) {
  9300. var ClientID = uniStatisticsConfig.collectItems.uniPushClientID;
  9301. return typeof ClientID === 'boolean' ? ClientID : false;
  9302. }
  9303. return false;
  9304. };
  9305. /**
  9306. * 是否上报页面数据
  9307. * @returns
  9308. */
  9309. var is_page_report = function is_page_report() {
  9310. if (uniStatisticsConfig.collectItems) {
  9311. var statPageLog = uniStatisticsConfig.collectItems.uniStatPageLog;
  9312. // 如果字段不存在返回 true , 如果是boolean 值按原值返回,如果是其他类型 返回false
  9313. if (statPageLog === undefined) return true;
  9314. return typeof statPageLog === 'boolean' ? statPageLog : true;
  9315. }
  9316. return true;
  9317. };
  9318. /**
  9319. * 是否已处理设备 DeviceId
  9320. * 如果值为 1 则表示已处理
  9321. */
  9322. var IS_HANDLE_DEVECE_ID = 'is_handle_device_id';
  9323. var is_handle_device = function is_handle_device() {
  9324. var isHandleDevice = dbGet(IS_HANDLE_DEVECE_ID) || '';
  9325. dbSet(IS_HANDLE_DEVECE_ID, '1');
  9326. return isHandleDevice === '1';
  9327. };
  9328. // 首次访问时间
  9329. var FIRST_VISIT_TIME_KEY = '__first__visit__time';
  9330. // 最后访问时间
  9331. var LAST_VISIT_TIME_KEY = '__last__visit__time';
  9332. /**
  9333. * 获取当前时间
  9334. */
  9335. var get_time = function get_time() {
  9336. return parseInt(new Date().getTime() / 1000);
  9337. };
  9338. /**
  9339. * 获取首次访问时间
  9340. */
  9341. var get_first_visit_time = function get_first_visit_time() {
  9342. var timeStorge = dbGet(FIRST_VISIT_TIME_KEY);
  9343. var time = 0;
  9344. if (timeStorge) {
  9345. time = timeStorge;
  9346. } else {
  9347. time = get_time();
  9348. dbSet(FIRST_VISIT_TIME_KEY, time);
  9349. // 首次访问需要 将最后访问时间置 0
  9350. dbRemove(LAST_VISIT_TIME_KEY);
  9351. }
  9352. return time;
  9353. };
  9354. /**
  9355. * 最后访问时间
  9356. */
  9357. var get_last_visit_time = function get_last_visit_time() {
  9358. var timeStorge = dbGet(LAST_VISIT_TIME_KEY);
  9359. var time = 0;
  9360. if (timeStorge) {
  9361. time = timeStorge;
  9362. }
  9363. dbSet(LAST_VISIT_TIME_KEY, get_time());
  9364. return time;
  9365. };
  9366. // 页面停留时间记录key
  9367. var PAGE_RESIDENCE_TIME = '__page__residence__time';
  9368. var First_Page_Residence_Time = 0;
  9369. var Last_Page_Residence_Time = 0;
  9370. /**
  9371. * 设置页面停留时间
  9372. */
  9373. var set_page_residence_time = function set_page_residence_time() {
  9374. First_Page_Residence_Time = get_time();
  9375. dbSet(PAGE_RESIDENCE_TIME, First_Page_Residence_Time);
  9376. return First_Page_Residence_Time;
  9377. };
  9378. /**
  9379. * 获取页面停留时间
  9380. */
  9381. var get_page_residence_time = function get_page_residence_time() {
  9382. Last_Page_Residence_Time = get_time();
  9383. First_Page_Residence_Time = dbGet(PAGE_RESIDENCE_TIME);
  9384. return Last_Page_Residence_Time - First_Page_Residence_Time;
  9385. };
  9386. /**
  9387. * 获取总访问次数
  9388. */
  9389. var TOTAL_VISIT_COUNT = '__total__visit__count';
  9390. var get_total_visit_count = function get_total_visit_count() {
  9391. var timeStorge = dbGet(TOTAL_VISIT_COUNT);
  9392. var count = 1;
  9393. if (timeStorge) {
  9394. count = timeStorge;
  9395. count++;
  9396. }
  9397. dbSet(TOTAL_VISIT_COUNT, count);
  9398. return count;
  9399. };
  9400. var FIRST_TIME = '__first_time';
  9401. /**
  9402. * 设置页面首次访问时间,用户获取页面/应用停留时常
  9403. */
  9404. var set_first_time = function set_first_time() {
  9405. // 获取当前时间 ,以下代码获取到是毫秒级时间戳 ,实际上用到是秒级时间戳,所以需要除以1000
  9406. // const time = new Date().getTime()
  9407. var time = get_time();
  9408. var timeStorge = dbSet(FIRST_TIME, time);
  9409. return timeStorge;
  9410. };
  9411. /**
  9412. * 获取最后一次时间 ,暂时用不到,直接获取当前时间即可
  9413. */
  9414. // export const get_last_time = () => {
  9415. // let time = new Date().getTime()
  9416. // Set__Last__Time = time
  9417. // return time
  9418. // }
  9419. /**
  9420. * 获取页面 \ 应用停留时间
  9421. */
  9422. var get_residence_time = function get_residence_time(type) {
  9423. var residenceTime = 0;
  9424. var first_time = dbGet(FIRST_TIME);
  9425. var last_time = get_time();
  9426. if (first_time !== 0) {
  9427. residenceTime = last_time - first_time;
  9428. }
  9429. // 将毫秒级时间戳转换为秒级时间戳,因为直接获取的是秒级时间戳,所以不需要转换
  9430. // residenceTime = parseInt(residenceTime / 1000)
  9431. residenceTime = residenceTime < 1 ? 1 : residenceTime;
  9432. if (type === 'app') {
  9433. var overtime = residenceTime > APP_PVER_TIME ? true : false;
  9434. return {
  9435. residenceTime: residenceTime,
  9436. overtime: overtime
  9437. };
  9438. }
  9439. if (type === 'page') {
  9440. var _overtime = residenceTime > PAGE_PVER_TIME ? true : false;
  9441. return {
  9442. residenceTime: residenceTime,
  9443. overtime: _overtime
  9444. };
  9445. }
  9446. return {
  9447. residenceTime: residenceTime
  9448. };
  9449. };
  9450. var eport_Interval = get_report_Interval(OPERATING_TIME);
  9451. // 统计数据默认值
  9452. var statData = {
  9453. uuid: get_uuid(),
  9454. // 设备标识
  9455. ak: stat_config.appid,
  9456. // uni-app 应用 Appid
  9457. p: sys.platform === 'android' ? 'a' : 'i',
  9458. // 手机系统
  9459. ut: get_platform_name(),
  9460. // 平台类型
  9461. mpn: get_pack_name(),
  9462. // 原生平台包名、小程序 appid
  9463. usv: STAT_VERSION,
  9464. // 统计 sdk 版本
  9465. v: get_version(),
  9466. // 应用版本,仅app
  9467. ch: get_channel(),
  9468. // 渠道信息
  9469. cn: '',
  9470. // 国家
  9471. pn: '',
  9472. // 省份
  9473. ct: '',
  9474. // 城市
  9475. t: get_time(),
  9476. // 上报数据时的时间戳
  9477. tt: '',
  9478. brand: sys.brand || '',
  9479. // 手机品牌
  9480. md: sys.model,
  9481. // 手机型号
  9482. sv: sys.system.replace(/(Android|iOS)\s/, ''),
  9483. // 手机系统版本
  9484. mpsdk: sys.SDKVersion || '',
  9485. // x程序 sdk version
  9486. mpv: sys.version || '',
  9487. // 小程序平台版本 ,如微信、支付宝
  9488. lang: sys.language,
  9489. // 语言
  9490. pr: sys.pixelRatio,
  9491. // pixelRatio 设备像素比
  9492. ww: sys.windowWidth,
  9493. // windowWidth 可使用窗口宽度
  9494. wh: sys.windowHeight,
  9495. // windowHeight 可使用窗口高度
  9496. sw: sys.screenWidth,
  9497. // screenWidth 屏幕宽度
  9498. sh: sys.screenHeight // screenHeight 屏幕高度
  9499. };
  9500. var Report = /*#__PURE__*/function () {
  9501. "use strict";
  9502. function Report() {
  9503. _classCallCheck(this, Report);
  9504. // 页面实例
  9505. this.self = '';
  9506. // 进入应用标识
  9507. this.__licationShow = false;
  9508. // 离开应用标识
  9509. this.__licationHide = false;
  9510. // 统计默认值
  9511. this.statData = statData;
  9512. // 标题默认值
  9513. this._navigationBarTitle = {
  9514. config: '',
  9515. page: '',
  9516. report: '',
  9517. lt: ''
  9518. };
  9519. // 页面参数
  9520. this._query = {};
  9521. // 页面最后停留页面的 url
  9522. // this._lastPageRoute = ''
  9523. // 注册拦截器
  9524. var registerInterceptor = typeof uni.addInterceptor === 'function';
  9525. if (registerInterceptor) {
  9526. this.addInterceptorInit();
  9527. this.interceptLogin();
  9528. this.interceptShare(true);
  9529. this.interceptRequestPayment();
  9530. }
  9531. }
  9532. _createClass(Report, [{
  9533. key: "addInterceptorInit",
  9534. value: function addInterceptorInit() {
  9535. var self = this;
  9536. uni.addInterceptor('setNavigationBarTitle', {
  9537. invoke: function invoke(args) {
  9538. self._navigationBarTitle.page = args.title;
  9539. }
  9540. });
  9541. }
  9542. }, {
  9543. key: "interceptLogin",
  9544. value: function interceptLogin() {
  9545. var self = this;
  9546. uni.addInterceptor('login', {
  9547. complete: function complete() {
  9548. self._login();
  9549. }
  9550. });
  9551. }
  9552. }, {
  9553. key: "interceptShare",
  9554. value: function interceptShare(type) {
  9555. var self = this;
  9556. if (!type) {
  9557. self._share();
  9558. return;
  9559. }
  9560. uni.addInterceptor('share', {
  9561. success: function success() {
  9562. self._share();
  9563. },
  9564. fail: function fail() {
  9565. self._share();
  9566. }
  9567. });
  9568. }
  9569. }, {
  9570. key: "interceptRequestPayment",
  9571. value: function interceptRequestPayment() {
  9572. var self = this;
  9573. uni.addInterceptor('requestPayment', {
  9574. success: function success() {
  9575. self._payment('pay_success');
  9576. },
  9577. fail: function fail() {
  9578. self._payment('pay_fail');
  9579. }
  9580. });
  9581. }
  9582. }, {
  9583. key: "_login",
  9584. value: function _login() {
  9585. this.sendEventRequest({
  9586. key: 'login'
  9587. }, 0);
  9588. }
  9589. }, {
  9590. key: "_share",
  9591. value: function _share() {
  9592. this.sendEventRequest({
  9593. key: 'share'
  9594. }, 0);
  9595. }
  9596. }, {
  9597. key: "_payment",
  9598. value: function _payment(key) {
  9599. this.sendEventRequest({
  9600. key: key
  9601. }, 0);
  9602. }
  9603. /**
  9604. * 进入应用触发
  9605. */
  9606. }, {
  9607. key: "applicationShow",
  9608. value: function applicationShow() {
  9609. // 通过 __licationHide 判断保证是进入后台后在次进入应用,避免重复上报数据
  9610. if (this.__licationHide) {
  9611. var time = get_residence_time('app');
  9612. // 需要判断进入后台是否超过时限 ,默认是 30min ,是的话需要执行进入应用的上报
  9613. if (time.overtime) {
  9614. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9615. var options = {
  9616. path: lastPageRoute,
  9617. scene: this.statData.sc,
  9618. cst: 2
  9619. };
  9620. this.sendReportRequest(options);
  9621. }
  9622. // 状态重置
  9623. this.__licationHide = false;
  9624. }
  9625. }
  9626. /**
  9627. * 离开应用触发
  9628. * @param {Object} self
  9629. * @param {Object} type
  9630. */
  9631. }, {
  9632. key: "applicationHide",
  9633. value: function applicationHide(self, type) {
  9634. if (!self) {
  9635. // 表示应用切换到后台 ,此时需要从页面栈获取页面实例
  9636. self = get_page_vm();
  9637. }
  9638. // 进入应用后台保存状态,方便进入前台后判断是否上报应用数据
  9639. this.__licationHide = true;
  9640. var time = get_residence_time();
  9641. var route = get_page_route(self);
  9642. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9643. this.sendHideRequest({
  9644. urlref: route,
  9645. urlref_ts: time.residenceTime
  9646. }, type);
  9647. // 更新页面首次访问时间
  9648. set_first_time();
  9649. }
  9650. /**
  9651. * 进入页面触发
  9652. */
  9653. }, {
  9654. key: "pageShow",
  9655. value: function pageShow(self) {
  9656. // 清空值 ,初始化 ,避免污染后面的上报数据
  9657. this._navigationBarTitle = {
  9658. config: '',
  9659. page: '',
  9660. report: '',
  9661. lt: ''
  9662. };
  9663. var route = get_page_route(self);
  9664. var routepath = get_route$1(self);
  9665. this._navigationBarTitle.config = get_page_name(routepath);
  9666. // 表示应用触发 ,页面切换不触发之后的逻辑
  9667. if (this.__licationShow) {
  9668. // 更新页面首次访问时间
  9669. set_first_time();
  9670. // this._lastPageRoute = route
  9671. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9672. this.__licationShow = false;
  9673. return;
  9674. }
  9675. var time = get_residence_time('page');
  9676. // 停留时间
  9677. if (time.overtime) {
  9678. var options = {
  9679. path: route,
  9680. scene: this.statData.sc,
  9681. cst: 3
  9682. };
  9683. this.sendReportRequest(options);
  9684. }
  9685. // 更新页面首次访问时间
  9686. set_first_time();
  9687. }
  9688. /**
  9689. * 离开页面触发
  9690. */
  9691. }, {
  9692. key: "pageHide",
  9693. value: function pageHide(self) {
  9694. if (!this.__licationHide) {
  9695. var time = get_residence_time('page');
  9696. var route = get_page_route(self);
  9697. var lastPageRoute = uni.getStorageSync('_STAT_LAST_PAGE_ROUTE');
  9698. if (!lastPageRoute) {
  9699. lastPageRoute = route;
  9700. }
  9701. uni.setStorageSync('_STAT_LAST_PAGE_ROUTE', route);
  9702. this.sendPageRequest({
  9703. url: route,
  9704. urlref: lastPageRoute,
  9705. urlref_ts: time.residenceTime
  9706. });
  9707. // this._lastPageRoute = route
  9708. return;
  9709. }
  9710. }
  9711. /**
  9712. * 发送请求,应用维度上报
  9713. * @param {Object} options 页面信息
  9714. * @param {Boolean} type 是否立即上报
  9715. */
  9716. }, {
  9717. key: "sendReportRequest",
  9718. value: function sendReportRequest(options, type) {
  9719. this._navigationBarTitle.lt = '1';
  9720. this._navigationBarTitle.config = get_page_name(options.path);
  9721. var is_opt = options.query && JSON.stringify(options.query) !== '{}';
  9722. var query = is_opt ? '?' + JSON.stringify(options.query) : '';
  9723. var last_time = get_last_visit_time();
  9724. // 非老用户
  9725. if (last_time !== 0 || !last_time) {
  9726. var odid = get_odid();
  9727. // 2.0 处理规则
  9728. {
  9729. var have_device = is_handle_device();
  9730. // 如果没有上报过设备信息 ,则需要上报设备信息
  9731. if (!have_device) {
  9732. this.statData.odid = odid;
  9733. }
  9734. }
  9735. }
  9736. Object.assign(this.statData, {
  9737. lt: '1',
  9738. url: options.path + query || '',
  9739. t: get_time(),
  9740. sc: get_scene(options.scene),
  9741. fvts: get_first_visit_time(),
  9742. lvts: last_time,
  9743. tvc: get_total_visit_count(),
  9744. // create session type 上报类型 ,1 应用进入 2.后台30min进入 3.页面30min进入
  9745. cst: options.cst || 1
  9746. });
  9747. if (get_platform_name() === 'n') {
  9748. this.getProperty(type);
  9749. } else {
  9750. this.getNetworkInfo(type);
  9751. }
  9752. }
  9753. /**
  9754. * 发送请求,页面维度上报
  9755. * @param {Object} opt
  9756. */
  9757. }, {
  9758. key: "sendPageRequest",
  9759. value: function sendPageRequest(opt) {
  9760. var url = opt.url,
  9761. urlref = opt.urlref,
  9762. urlref_ts = opt.urlref_ts;
  9763. this._navigationBarTitle.lt = '11';
  9764. var options = {
  9765. ak: this.statData.ak,
  9766. uuid: this.statData.uuid,
  9767. p: this.statData.p,
  9768. lt: '11',
  9769. ut: this.statData.ut,
  9770. url: url,
  9771. tt: this.statData.tt,
  9772. urlref: urlref,
  9773. urlref_ts: urlref_ts,
  9774. ch: this.statData.ch,
  9775. usv: this.statData.usv,
  9776. t: get_time()
  9777. };
  9778. this.request(options);
  9779. }
  9780. /**
  9781. * 进入后台上报数据
  9782. * @param {Object} opt
  9783. * @param {Object} type
  9784. */
  9785. }, {
  9786. key: "sendHideRequest",
  9787. value: function sendHideRequest(opt, type) {
  9788. var urlref = opt.urlref,
  9789. urlref_ts = opt.urlref_ts;
  9790. var options = {
  9791. ak: this.statData.ak,
  9792. uuid: this.statData.uuid,
  9793. p: this.statData.p,
  9794. lt: '3',
  9795. ut: this.statData.ut,
  9796. urlref: urlref,
  9797. urlref_ts: urlref_ts,
  9798. ch: this.statData.ch,
  9799. usv: this.statData.usv,
  9800. t: get_time()
  9801. };
  9802. this.request(options, type);
  9803. }
  9804. /**
  9805. * 自定义事件上报
  9806. */
  9807. }, {
  9808. key: "sendEventRequest",
  9809. value: function sendEventRequest() {
  9810. var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  9811. _ref3$key = _ref3.key,
  9812. key = _ref3$key === void 0 ? '' : _ref3$key,
  9813. _ref3$value = _ref3.value,
  9814. value = _ref3$value === void 0 ? '' : _ref3$value;
  9815. var routepath = '';
  9816. try {
  9817. routepath = get_route$1();
  9818. } catch (error) {
  9819. var launch_options = dbGet('__launch_options');
  9820. routepath = launch_options.path;
  9821. }
  9822. this._navigationBarTitle.config = get_page_name(routepath);
  9823. this._navigationBarTitle.lt = '21';
  9824. var options = {
  9825. ak: this.statData.ak,
  9826. uuid: this.statData.uuid,
  9827. p: this.statData.p,
  9828. lt: '21',
  9829. ut: this.statData.ut,
  9830. url: routepath,
  9831. ch: this.statData.ch,
  9832. e_n: key,
  9833. e_v: _typeof(value) === 'object' ? JSON.stringify(value) : value.toString(),
  9834. usv: this.statData.usv,
  9835. t: get_time()
  9836. };
  9837. this.request(options);
  9838. }
  9839. }, {
  9840. key: "sendPushRequest",
  9841. value: function sendPushRequest(options, cid) {
  9842. var _this = this;
  9843. var time = get_time();
  9844. var statData = {
  9845. lt: '101',
  9846. cid: cid,
  9847. t: time,
  9848. ut: this.statData.ut
  9849. };
  9850. // debug 打印打点信息
  9851. if (is_debug) {
  9852. log(statData);
  9853. }
  9854. var stat_data = handle_data({
  9855. 101: [statData]
  9856. });
  9857. var optionsData = {
  9858. usv: STAT_VERSION,
  9859. //统计 SDK 版本号
  9860. t: time,
  9861. //发送请求时的时间戮
  9862. requests: stat_data
  9863. };
  9864. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  9865. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  9866. setTimeout(function () {
  9867. _this.sendRequest(optionsData);
  9868. }, 200);
  9869. return;
  9870. }
  9871. this.sendRequest(optionsData);
  9872. }
  9873. /**
  9874. * 获取wgt资源版本
  9875. */
  9876. }, {
  9877. key: "getProperty",
  9878. value: function getProperty(type) {
  9879. var _this2 = this;
  9880. plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
  9881. _this2.statData.v = wgtinfo.version || '';
  9882. _this2.getNetworkInfo(type);
  9883. });
  9884. }
  9885. /**
  9886. * 获取网络信息
  9887. */
  9888. }, {
  9889. key: "getNetworkInfo",
  9890. value: function getNetworkInfo(type) {
  9891. var _this3 = this;
  9892. uni.getNetworkType({
  9893. success: function success(result) {
  9894. _this3.statData.net = result.networkType;
  9895. _this3.getLocation(type);
  9896. }
  9897. });
  9898. }
  9899. /**
  9900. * 获取位置信息
  9901. */
  9902. }, {
  9903. key: "getLocation",
  9904. value: function getLocation(type) {
  9905. var _this4 = this;
  9906. if (stat_config.getLocation) {
  9907. uni.getLocation({
  9908. type: 'wgs84',
  9909. geocode: true,
  9910. success: function success(result) {
  9911. if (result.address) {
  9912. _this4.statData.cn = result.address.country;
  9913. _this4.statData.pn = result.address.province;
  9914. _this4.statData.ct = result.address.city;
  9915. }
  9916. _this4.statData.lat = result.latitude;
  9917. _this4.statData.lng = result.longitude;
  9918. _this4.request(_this4.statData, type);
  9919. }
  9920. });
  9921. } else {
  9922. this.statData.lat = 0;
  9923. this.statData.lng = 0;
  9924. this.request(this.statData, type);
  9925. }
  9926. }
  9927. /**
  9928. * 发送请求
  9929. * @param {Object} data 上报数据
  9930. * @param {Object} type 类型
  9931. */
  9932. }, {
  9933. key: "request",
  9934. value: function request(data, type) {
  9935. var _this5 = this;
  9936. var time = get_time();
  9937. var title = this._navigationBarTitle;
  9938. Object.assign(data, {
  9939. ttn: title.page,
  9940. ttpj: title.config,
  9941. ttc: title.report
  9942. });
  9943. var uniStatData = dbGet('__UNI__STAT__DATA') || {};
  9944. if (!uniStatData[data.lt]) {
  9945. uniStatData[data.lt] = [];
  9946. }
  9947. // 加入队列
  9948. uniStatData[data.lt].push(data);
  9949. dbSet('__UNI__STAT__DATA', uniStatData);
  9950. var page_residence_time = get_page_residence_time();
  9951. // debug 打印打点信息
  9952. if (is_debug) {
  9953. log(data);
  9954. }
  9955. // 判断时候到达上报时间 ,默认 10 秒上报
  9956. if (page_residence_time < eport_Interval && !type) return;
  9957. // 时间超过,重新获取时间戳
  9958. set_page_residence_time();
  9959. var stat_data = handle_data(uniStatData);
  9960. var optionsData = {
  9961. usv: STAT_VERSION,
  9962. //统计 SDK 版本号
  9963. t: time,
  9964. //发送请求时的时间戮
  9965. requests: stat_data
  9966. };
  9967. // 重置队列
  9968. dbRemove('__UNI__STAT__DATA');
  9969. // XXX 安卓需要延迟上报 ,否则会有未知错误,需要验证处理
  9970. if (get_platform_name() === 'n' && this.statData.p === 'a') {
  9971. setTimeout(function () {
  9972. _this5.sendRequest(optionsData);
  9973. }, 200);
  9974. return;
  9975. }
  9976. this.sendRequest(optionsData);
  9977. }
  9978. }, {
  9979. key: "getIsReportData",
  9980. value: function getIsReportData() {
  9981. return is_report_data();
  9982. }
  9983. /**
  9984. * 数据上报
  9985. * @param {Object} optionsData 需要上报的数据
  9986. */
  9987. }, {
  9988. key: "sendRequest",
  9989. value: function sendRequest(optionsData) {
  9990. {
  9991. if (!uni.__stat_uniCloud_space) {
  9992. console.error('应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.');
  9993. return;
  9994. }
  9995. var uniCloudObj = uni.__stat_uniCloud_space.importObject('uni-stat-receiver', {
  9996. customUI: true
  9997. });
  9998. uniCloudObj.report(optionsData).then(function () {
  9999. if (is_debug) {
  10000. log(optionsData, true);
  10001. }
  10002. }).catch(function (err) {
  10003. if (is_debug) {
  10004. console.warn('=== 统计上报错误');
  10005. console.error(err);
  10006. }
  10007. });
  10008. }
  10009. }
  10010. /**
  10011. * h5 请求
  10012. */
  10013. }, {
  10014. key: "imageRequest",
  10015. value: function imageRequest(data) {
  10016. this.getIsReportData().then(function () {
  10017. var image = new Image();
  10018. var options = get_sgin(get_encodeURIComponent_options(data)).options;
  10019. image.src = STAT_H5_URL + '?' + options;
  10020. if (is_debug) {
  10021. log(data, true);
  10022. }
  10023. });
  10024. }
  10025. }, {
  10026. key: "sendEvent",
  10027. value: function sendEvent(key, value) {
  10028. // 校验 type 参数
  10029. if (calibration(key, value)) return;
  10030. if (key === 'title') {
  10031. this._navigationBarTitle.report = value;
  10032. return;
  10033. }
  10034. this.sendEventRequest({
  10035. key: key,
  10036. value: _typeof(value) === 'object' ? JSON.stringify(value) : value
  10037. }, 1);
  10038. }
  10039. }]);
  10040. return Report;
  10041. }();
  10042. var Stat = /*#__PURE__*/function (_Report) {
  10043. "use strict";
  10044. _inherits(Stat, _Report);
  10045. var _super = _createSuper(Stat);
  10046. function Stat() {
  10047. _classCallCheck(this, Stat);
  10048. return _super.call(this);
  10049. }
  10050. /**
  10051. * 获取推送id
  10052. */
  10053. _createClass(Stat, [{
  10054. key: "pushEvent",
  10055. value: function pushEvent(options) {
  10056. var _this6 = this;
  10057. var ClientID = is_push_clientid();
  10058. if (uni.getPushClientId && ClientID) {
  10059. uni.getPushClientId({
  10060. success: function success(res) {
  10061. var cid = res.cid || false;
  10062. // 只有获取到才会上传
  10063. if (cid) {
  10064. _this6.sendPushRequest(options, cid);
  10065. }
  10066. }
  10067. });
  10068. }
  10069. }
  10070. /**
  10071. * 进入应用
  10072. * @param {Object} options 页面参数
  10073. * @param {Object} self 当前页面实例
  10074. */
  10075. }, {
  10076. key: "launch",
  10077. value: function launch(options, self) {
  10078. // 初始化页面停留时间 start
  10079. set_page_residence_time();
  10080. this.__licationShow = true;
  10081. dbSet('__launch_options', options);
  10082. // 应用初始上报参数为1
  10083. options.cst = 1;
  10084. this.sendReportRequest(options, true);
  10085. }
  10086. }, {
  10087. key: "load",
  10088. value: function load(options, self) {
  10089. this.self = self;
  10090. this._query = options;
  10091. }
  10092. }, {
  10093. key: "appHide",
  10094. value: function appHide(self) {
  10095. this.applicationHide(self, true);
  10096. }
  10097. }, {
  10098. key: "appShow",
  10099. value: function appShow(self) {
  10100. this.applicationShow(self);
  10101. }
  10102. }, {
  10103. key: "show",
  10104. value: function show(self) {
  10105. this.self = self;
  10106. if (get_page_types(self) === 'page') {
  10107. var isPageReport = is_page_report();
  10108. if (isPageReport) {
  10109. this.pageShow(self);
  10110. }
  10111. }
  10112. if (get_page_types(self) === 'app') {
  10113. this.appShow();
  10114. }
  10115. }
  10116. }, {
  10117. key: "hide",
  10118. value: function hide(self) {
  10119. this.self = self;
  10120. if (get_page_types(self) === 'page') {
  10121. var isPageReport = is_page_report();
  10122. if (isPageReport) {
  10123. this.pageHide(self);
  10124. }
  10125. }
  10126. if (get_page_types(self) === 'app') {
  10127. this.appHide();
  10128. }
  10129. }
  10130. }, {
  10131. key: "error",
  10132. value: function error(em) {
  10133. // 开发工具内不上报错误
  10134. // if (this._platform === 'devtools') {
  10135. // if (process.env.NODE_ENV === 'development') {
  10136. // console.info('当前运行环境为开发者工具,不上报数据。')
  10137. // return
  10138. // }
  10139. // }
  10140. var emVal = '';
  10141. if (!em.message) {
  10142. emVal = JSON.stringify(em);
  10143. } else {
  10144. emVal = em.stack;
  10145. }
  10146. var route = '';
  10147. try {
  10148. route = get_route();
  10149. } catch (e) {
  10150. // 未获取到页面路径
  10151. route = '';
  10152. }
  10153. var options = {
  10154. ak: this.statData.ak,
  10155. uuid: this.statData.uuid,
  10156. p: this.statData.p,
  10157. lt: '31',
  10158. url: route,
  10159. ut: this.statData.ut,
  10160. ch: this.statData.ch,
  10161. mpsdk: this.statData.mpsdk,
  10162. mpv: this.statData.mpv,
  10163. v: this.statData.v,
  10164. em: emVal,
  10165. usv: this.statData.usv,
  10166. t: parseInt(new Date().getTime() / 1000)
  10167. };
  10168. this.request(options);
  10169. }
  10170. }], [{
  10171. key: "getInstance",
  10172. value: function getInstance() {
  10173. if (!uni.__stat_instance) {
  10174. uni.__stat_instance = new Stat();
  10175. }
  10176. // 2.0 init 服务空间
  10177. {
  10178. var space = get_space(uniCloud.config);
  10179. if (!uni.__stat_uniCloud_space) {
  10180. // 判断不为空对象
  10181. if (space && Object.keys(space).length !== 0) {
  10182. var spaceData = {
  10183. provider: space.provider,
  10184. spaceId: space.spaceId,
  10185. clientSecret: space.clientSecret
  10186. };
  10187. if (space.endpoint) {
  10188. spaceData.endpoint = space.endpoint;
  10189. }
  10190. if (space.provider === 'alipay') {
  10191. spaceData.secretKey = space.secretKey;
  10192. spaceData.accessKey = space.accessKey || space.secretId;
  10193. spaceData.spaceAppId = space.spaceAppId || space.appId;
  10194. }
  10195. uni.__stat_uniCloud_space = uniCloud.init(spaceData);
  10196. // console.log(
  10197. // '=== 当前绑定的统计服务空间spaceId:' +
  10198. // uni.__stat_uniCloud_space.config.spaceId
  10199. // )
  10200. } else {
  10201. console.error('应用未关联服务空间,请在uniCloud目录右键关联服务空间');
  10202. }
  10203. }
  10204. }
  10205. return uni.__stat_instance;
  10206. }
  10207. }]);
  10208. return Stat;
  10209. }(Report);
  10210. var Stat$1 = Stat;
  10211. var stat = Stat$1.getInstance();
  10212. // 用于判断是隐藏页面还是卸载页面
  10213. var isHide = false;
  10214. var lifecycle = {
  10215. onLaunch: function onLaunch(options) {
  10216. // 进入应用上报数据
  10217. stat.launch(options, this);
  10218. // 上报push推送id
  10219. stat.pushEvent(options);
  10220. },
  10221. onLoad: function onLoad(options) {
  10222. stat.load(options, this);
  10223. // 重写分享,获取分享上报事件
  10224. if (this.$scope && this.$scope.onShareAppMessage) {
  10225. var oldShareAppMessage = this.$scope.onShareAppMessage;
  10226. this.$scope.onShareAppMessage = function (options) {
  10227. stat.interceptShare(false);
  10228. return oldShareAppMessage.call(this, options);
  10229. };
  10230. }
  10231. },
  10232. onShow: function onShow() {
  10233. isHide = false;
  10234. stat.show(this);
  10235. },
  10236. onHide: function onHide() {
  10237. isHide = true;
  10238. stat.hide(this);
  10239. },
  10240. onUnload: function onUnload() {
  10241. if (isHide) {
  10242. isHide = false;
  10243. return;
  10244. }
  10245. stat.hide(this);
  10246. },
  10247. onError: function onError(e) {
  10248. stat.error(e);
  10249. }
  10250. };
  10251. // 加载统计代码
  10252. function load_stat() {
  10253. // eslint-disable-next-line no-restricted-globals
  10254. var Vue = __webpack_require__(/*! vue */ 25);
  10255. (Vue.default || Vue).mixin(lifecycle);
  10256. uni.report = function (type, options) {
  10257. stat.sendEvent(type, options);
  10258. };
  10259. }
  10260. function main() {
  10261. if (is_debug) {
  10262. {
  10263. console.log('=== uni统计开启,version:2.0 ===');
  10264. }
  10265. load_stat();
  10266. } else {
  10267. if (true) {
  10268. uni.report = function (type, options) {};
  10269. } else {}
  10270. }
  10271. }
  10272. main();
  10273. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js */ 28)["default"]))
  10274. /***/ }),
  10275. /***/ 28:
  10276. /*!************************************************************************************!*\
  10277. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  10278. \************************************************************************************/
  10279. /*! no static exports found */
  10280. /***/ (function(module, exports, __webpack_require__) {
  10281. "use strict";
  10282. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  10283. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10284. Object.defineProperty(exports, "__esModule", {
  10285. value: true
  10286. });
  10287. exports.default = exports.UniCloudError = void 0;
  10288. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  10289. var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 31));
  10290. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  10291. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10292. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  10293. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  10294. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  10295. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  10296. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  10297. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  10298. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 36));
  10299. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  10300. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  10301. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 38));
  10302. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e33) { throw _e33; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e34) { didErr = true; err = _e34; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  10303. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  10304. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  10305. 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; }
  10306. 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; }
  10307. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  10308. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  10309. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  10310. function t(e) {
  10311. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  10312. }
  10313. function n(e, t, n) {
  10314. return e(n = {
  10315. path: t,
  10316. exports: {},
  10317. require: function require(e, t) {
  10318. return function () {
  10319. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  10320. }(null == t && n.path);
  10321. }
  10322. }, n.exports), n.exports;
  10323. }
  10324. var s = n(function (e, t) {
  10325. var n;
  10326. e.exports = (n = n || function (e, t) {
  10327. var n = Object.create || function () {
  10328. function e() {}
  10329. return function (t) {
  10330. var n;
  10331. return e.prototype = t, n = new e(), e.prototype = null, n;
  10332. };
  10333. }(),
  10334. s = {},
  10335. r = s.lib = {},
  10336. i = r.Base = {
  10337. extend: function extend(e) {
  10338. var t = n(this);
  10339. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  10340. t.$super.init.apply(this, arguments);
  10341. }), t.init.prototype = t, t.$super = this, t;
  10342. },
  10343. create: function create() {
  10344. var e = this.extend();
  10345. return e.init.apply(e, arguments), e;
  10346. },
  10347. init: function init() {},
  10348. mixIn: function mixIn(e) {
  10349. for (var t in e) {
  10350. e.hasOwnProperty(t) && (this[t] = e[t]);
  10351. }
  10352. e.hasOwnProperty("toString") && (this.toString = e.toString);
  10353. },
  10354. clone: function clone() {
  10355. return this.init.prototype.extend(this);
  10356. }
  10357. },
  10358. o = r.WordArray = i.extend({
  10359. init: function init(e, n) {
  10360. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  10361. },
  10362. toString: function toString(e) {
  10363. return (e || c).stringify(this);
  10364. },
  10365. concat: function concat(e) {
  10366. var t = this.words,
  10367. n = e.words,
  10368. s = this.sigBytes,
  10369. r = e.sigBytes;
  10370. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  10371. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  10372. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  10373. } else for (i = 0; i < r; i += 4) {
  10374. t[s + i >>> 2] = n[i >>> 2];
  10375. }
  10376. return this.sigBytes += r, this;
  10377. },
  10378. clamp: function clamp() {
  10379. var t = this.words,
  10380. n = this.sigBytes;
  10381. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  10382. },
  10383. clone: function clone() {
  10384. var e = i.clone.call(this);
  10385. return e.words = this.words.slice(0), e;
  10386. },
  10387. random: function random(t) {
  10388. for (var n, s = [], r = function r(t) {
  10389. t = t;
  10390. var n = 987654321,
  10391. s = 4294967295;
  10392. return function () {
  10393. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  10394. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  10395. };
  10396. }, i = 0; i < t; i += 4) {
  10397. var a = r(4294967296 * (n || e.random()));
  10398. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  10399. }
  10400. return new o.init(s, t);
  10401. }
  10402. }),
  10403. a = s.enc = {},
  10404. c = a.Hex = {
  10405. stringify: function stringify(e) {
  10406. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  10407. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  10408. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  10409. }
  10410. return s.join("");
  10411. },
  10412. parse: function parse(e) {
  10413. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  10414. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  10415. }
  10416. return new o.init(n, t / 2);
  10417. }
  10418. },
  10419. u = a.Latin1 = {
  10420. stringify: function stringify(e) {
  10421. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  10422. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  10423. s.push(String.fromCharCode(i));
  10424. }
  10425. return s.join("");
  10426. },
  10427. parse: function parse(e) {
  10428. for (var t = e.length, n = [], s = 0; s < t; s++) {
  10429. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  10430. }
  10431. return new o.init(n, t);
  10432. }
  10433. },
  10434. l = a.Utf8 = {
  10435. stringify: function stringify(e) {
  10436. try {
  10437. return decodeURIComponent(escape(u.stringify(e)));
  10438. } catch (e) {
  10439. throw new Error("Malformed UTF-8 data");
  10440. }
  10441. },
  10442. parse: function parse(e) {
  10443. return u.parse(unescape(encodeURIComponent(e)));
  10444. }
  10445. },
  10446. h = r.BufferedBlockAlgorithm = i.extend({
  10447. reset: function reset() {
  10448. this._data = new o.init(), this._nDataBytes = 0;
  10449. },
  10450. _append: function _append(e) {
  10451. "string" == typeof e && (e = l.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  10452. },
  10453. _process: function _process(t) {
  10454. var n = this._data,
  10455. s = n.words,
  10456. r = n.sigBytes,
  10457. i = this.blockSize,
  10458. a = r / (4 * i),
  10459. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  10460. u = e.min(4 * c, r);
  10461. if (c) {
  10462. for (var l = 0; l < c; l += i) {
  10463. this._doProcessBlock(s, l);
  10464. }
  10465. var h = s.splice(0, c);
  10466. n.sigBytes -= u;
  10467. }
  10468. return new o.init(h, u);
  10469. },
  10470. clone: function clone() {
  10471. var e = i.clone.call(this);
  10472. return e._data = this._data.clone(), e;
  10473. },
  10474. _minBufferSize: 0
  10475. });
  10476. r.Hasher = h.extend({
  10477. cfg: i.extend(),
  10478. init: function init(e) {
  10479. this.cfg = this.cfg.extend(e), this.reset();
  10480. },
  10481. reset: function reset() {
  10482. h.reset.call(this), this._doReset();
  10483. },
  10484. update: function update(e) {
  10485. return this._append(e), this._process(), this;
  10486. },
  10487. finalize: function finalize(e) {
  10488. return e && this._append(e), this._doFinalize();
  10489. },
  10490. blockSize: 16,
  10491. _createHelper: function _createHelper(e) {
  10492. return function (t, n) {
  10493. return new e.init(n).finalize(t);
  10494. };
  10495. },
  10496. _createHmacHelper: function _createHmacHelper(e) {
  10497. return function (t, n) {
  10498. return new d.HMAC.init(e, n).finalize(t);
  10499. };
  10500. }
  10501. });
  10502. var d = s.algo = {};
  10503. return s;
  10504. }(Math), n);
  10505. }),
  10506. r = s,
  10507. i = (n(function (e, t) {
  10508. var n;
  10509. e.exports = (n = r, function (e) {
  10510. var t = n,
  10511. s = t.lib,
  10512. r = s.WordArray,
  10513. i = s.Hasher,
  10514. o = t.algo,
  10515. a = [];
  10516. !function () {
  10517. for (var t = 0; t < 64; t++) {
  10518. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  10519. }
  10520. }();
  10521. var c = o.MD5 = i.extend({
  10522. _doReset: function _doReset() {
  10523. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  10524. },
  10525. _doProcessBlock: function _doProcessBlock(e, t) {
  10526. for (var n = 0; n < 16; n++) {
  10527. var s = t + n,
  10528. r = e[s];
  10529. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  10530. }
  10531. var i = this._hash.words,
  10532. o = e[t + 0],
  10533. c = e[t + 1],
  10534. p = e[t + 2],
  10535. f = e[t + 3],
  10536. g = e[t + 4],
  10537. m = e[t + 5],
  10538. y = e[t + 6],
  10539. _ = e[t + 7],
  10540. w = e[t + 8],
  10541. v = e[t + 9],
  10542. I = e[t + 10],
  10543. S = e[t + 11],
  10544. b = e[t + 12],
  10545. k = e[t + 13],
  10546. A = e[t + 14],
  10547. C = e[t + 15],
  10548. P = i[0],
  10549. T = i[1],
  10550. x = i[2],
  10551. O = i[3];
  10552. P = u(P, T, x, O, o, 7, a[0]), O = u(O, P, T, x, c, 12, a[1]), x = u(x, O, P, T, p, 17, a[2]), T = u(T, x, O, P, f, 22, a[3]), P = u(P, T, x, O, g, 7, a[4]), O = u(O, P, T, x, m, 12, a[5]), x = u(x, O, P, T, y, 17, a[6]), T = u(T, x, O, P, _, 22, a[7]), P = u(P, T, x, O, w, 7, a[8]), O = u(O, P, T, x, v, 12, a[9]), x = u(x, O, P, T, I, 17, a[10]), T = u(T, x, O, P, S, 22, a[11]), P = u(P, T, x, O, b, 7, a[12]), O = u(O, P, T, x, k, 12, a[13]), x = u(x, O, P, T, A, 17, a[14]), P = l(P, T = u(T, x, O, P, C, 22, a[15]), x, O, c, 5, a[16]), O = l(O, P, T, x, y, 9, a[17]), x = l(x, O, P, T, S, 14, a[18]), T = l(T, x, O, P, o, 20, a[19]), P = l(P, T, x, O, m, 5, a[20]), O = l(O, P, T, x, I, 9, a[21]), x = l(x, O, P, T, C, 14, a[22]), T = l(T, x, O, P, g, 20, a[23]), P = l(P, T, x, O, v, 5, a[24]), O = l(O, P, T, x, A, 9, a[25]), x = l(x, O, P, T, f, 14, a[26]), T = l(T, x, O, P, w, 20, a[27]), P = l(P, T, x, O, k, 5, a[28]), O = l(O, P, T, x, p, 9, a[29]), x = l(x, O, P, T, _, 14, a[30]), P = h(P, T = l(T, x, O, P, b, 20, a[31]), x, O, m, 4, a[32]), O = h(O, P, T, x, w, 11, a[33]), x = h(x, O, P, T, S, 16, a[34]), T = h(T, x, O, P, A, 23, a[35]), P = h(P, T, x, O, c, 4, a[36]), O = h(O, P, T, x, g, 11, a[37]), x = h(x, O, P, T, _, 16, a[38]), T = h(T, x, O, P, I, 23, a[39]), P = h(P, T, x, O, k, 4, a[40]), O = h(O, P, T, x, o, 11, a[41]), x = h(x, O, P, T, f, 16, a[42]), T = h(T, x, O, P, y, 23, a[43]), P = h(P, T, x, O, v, 4, a[44]), O = h(O, P, T, x, b, 11, a[45]), x = h(x, O, P, T, C, 16, a[46]), P = d(P, T = h(T, x, O, P, p, 23, a[47]), x, O, o, 6, a[48]), O = d(O, P, T, x, _, 10, a[49]), x = d(x, O, P, T, A, 15, a[50]), T = d(T, x, O, P, m, 21, a[51]), P = d(P, T, x, O, b, 6, a[52]), O = d(O, P, T, x, f, 10, a[53]), x = d(x, O, P, T, I, 15, a[54]), T = d(T, x, O, P, c, 21, a[55]), P = d(P, T, x, O, w, 6, a[56]), O = d(O, P, T, x, C, 10, a[57]), x = d(x, O, P, T, y, 15, a[58]), T = d(T, x, O, P, k, 21, a[59]), P = d(P, T, x, O, g, 6, a[60]), O = d(O, P, T, x, S, 10, a[61]), x = d(x, O, P, T, p, 15, a[62]), T = d(T, x, O, P, v, 21, a[63]), i[0] = i[0] + P | 0, i[1] = i[1] + T | 0, i[2] = i[2] + x | 0, i[3] = i[3] + O | 0;
  10553. },
  10554. _doFinalize: function _doFinalize() {
  10555. var t = this._data,
  10556. n = t.words,
  10557. s = 8 * this._nDataBytes,
  10558. r = 8 * t.sigBytes;
  10559. n[r >>> 5] |= 128 << 24 - r % 32;
  10560. var i = e.floor(s / 4294967296),
  10561. o = s;
  10562. n[15 + (r + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
  10563. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  10564. var l = c[u];
  10565. c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8);
  10566. }
  10567. return a;
  10568. },
  10569. clone: function clone() {
  10570. var e = i.clone.call(this);
  10571. return e._hash = this._hash.clone(), e;
  10572. }
  10573. });
  10574. function u(e, t, n, s, r, i, o) {
  10575. var a = e + (t & n | ~t & s) + r + o;
  10576. return (a << i | a >>> 32 - i) + t;
  10577. }
  10578. function l(e, t, n, s, r, i, o) {
  10579. var a = e + (t & s | n & ~s) + r + o;
  10580. return (a << i | a >>> 32 - i) + t;
  10581. }
  10582. function h(e, t, n, s, r, i, o) {
  10583. var a = e + (t ^ n ^ s) + r + o;
  10584. return (a << i | a >>> 32 - i) + t;
  10585. }
  10586. function d(e, t, n, s, r, i, o) {
  10587. var a = e + (n ^ (t | ~s)) + r + o;
  10588. return (a << i | a >>> 32 - i) + t;
  10589. }
  10590. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  10591. }(Math), n.MD5);
  10592. }), n(function (e, t) {
  10593. var n;
  10594. e.exports = (n = r, void function () {
  10595. var e = n,
  10596. t = e.lib.Base,
  10597. s = e.enc.Utf8;
  10598. e.algo.HMAC = t.extend({
  10599. init: function init(e, t) {
  10600. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  10601. var n = e.blockSize,
  10602. r = 4 * n;
  10603. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  10604. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  10605. a[u] ^= 1549556828, c[u] ^= 909522486;
  10606. }
  10607. i.sigBytes = o.sigBytes = r, this.reset();
  10608. },
  10609. reset: function reset() {
  10610. var e = this._hasher;
  10611. e.reset(), e.update(this._iKey);
  10612. },
  10613. update: function update(e) {
  10614. return this._hasher.update(e), this;
  10615. },
  10616. finalize: function finalize(e) {
  10617. var t = this._hasher,
  10618. n = t.finalize(e);
  10619. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  10620. }
  10621. });
  10622. }());
  10623. }), n(function (e, t) {
  10624. e.exports = r.HmacMD5;
  10625. })),
  10626. o = n(function (e, t) {
  10627. e.exports = r.enc.Utf8;
  10628. }),
  10629. a = n(function (e, t) {
  10630. var n;
  10631. e.exports = (n = r, function () {
  10632. var e = n,
  10633. t = e.lib.WordArray;
  10634. function s(e, n, s) {
  10635. for (var r = [], i = 0, o = 0; o < n; o++) {
  10636. if (o % 4) {
  10637. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  10638. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  10639. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  10640. }
  10641. }
  10642. return t.create(r, i);
  10643. }
  10644. e.enc.Base64 = {
  10645. stringify: function stringify(e) {
  10646. var t = e.words,
  10647. n = e.sigBytes,
  10648. s = this._map;
  10649. e.clamp();
  10650. for (var r = [], i = 0; i < n; i += 3) {
  10651. for (var o = (t[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) {
  10652. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  10653. }
  10654. }
  10655. var c = s.charAt(64);
  10656. if (c) for (; r.length % 4;) {
  10657. r.push(c);
  10658. }
  10659. return r.join("");
  10660. },
  10661. parse: function parse(e) {
  10662. var t = e.length,
  10663. n = this._map,
  10664. r = this._reverseMap;
  10665. if (!r) {
  10666. r = this._reverseMap = [];
  10667. for (var i = 0; i < n.length; i++) {
  10668. r[n.charCodeAt(i)] = i;
  10669. }
  10670. }
  10671. var o = n.charAt(64);
  10672. if (o) {
  10673. var a = e.indexOf(o);
  10674. -1 !== a && (t = a);
  10675. }
  10676. return s(e, t, r);
  10677. },
  10678. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  10679. };
  10680. }(), n.enc.Base64);
  10681. });
  10682. var c = "FUNCTION",
  10683. u = "OBJECT",
  10684. l = "CLIENT_DB",
  10685. h = "pending",
  10686. d = "fulfilled",
  10687. p = "rejected";
  10688. function f(e) {
  10689. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  10690. }
  10691. function g(e) {
  10692. return "object" === f(e);
  10693. }
  10694. function m(e) {
  10695. return "function" == typeof e;
  10696. }
  10697. function y(e) {
  10698. return function () {
  10699. try {
  10700. return e.apply(e, arguments);
  10701. } catch (e) {
  10702. console.error(e);
  10703. }
  10704. };
  10705. }
  10706. var _ = "REJECTED",
  10707. w = "NOT_PENDING";
  10708. var v = /*#__PURE__*/function () {
  10709. function v() {
  10710. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  10711. e = _ref.createPromise,
  10712. _ref$retryRule = _ref.retryRule,
  10713. t = _ref$retryRule === void 0 ? _ : _ref$retryRule;
  10714. (0, _classCallCheck2.default)(this, v);
  10715. this.createPromise = e, this.status = null, this.promise = null, this.retryRule = t;
  10716. }
  10717. (0, _createClass2.default)(v, [{
  10718. key: "needRetry",
  10719. get: function get() {
  10720. if (!this.status) return !0;
  10721. switch (this.retryRule) {
  10722. case _:
  10723. return this.status === p;
  10724. case w:
  10725. return this.status !== h;
  10726. }
  10727. }
  10728. }, {
  10729. key: "exec",
  10730. value: function exec() {
  10731. var _this = this;
  10732. return this.needRetry ? (this.status = h, this.promise = this.createPromise().then(function (e) {
  10733. return _this.status = d, Promise.resolve(e);
  10734. }, function (e) {
  10735. return _this.status = p, Promise.reject(e);
  10736. }), this.promise) : this.promise;
  10737. }
  10738. }]);
  10739. return v;
  10740. }();
  10741. function I(e) {
  10742. return e && "string" == typeof e ? JSON.parse(e) : e;
  10743. }
  10744. var S = "development" === "development",
  10745. b = "mp-weixin",
  10746. k = "true" === undefined || !0 === undefined,
  10747. A = I([]),
  10748. C = "h5" === b ? "web" : "app-plus" === b ? "app" : b,
  10749. P = I(undefined),
  10750. T = I([]) || [],
  10751. x = true;
  10752. var O = "";
  10753. try {
  10754. O = (__webpack_require__(/*! uni-stat-config */ 39).default || __webpack_require__(/*! uni-stat-config */ 39)).appid;
  10755. } catch (e) {}
  10756. var E = {};
  10757. function L(e) {
  10758. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10759. var n, s;
  10760. return n = E, s = e, Object.prototype.hasOwnProperty.call(n, s) || (E[e] = t), E[e];
  10761. }
  10762. "app" === C && (E = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  10763. var R = ["invoke", "success", "fail", "complete"],
  10764. U = L("_globalUniCloudInterceptor");
  10765. function N(e, t) {
  10766. U[e] || (U[e] = {}), g(t) && Object.keys(t).forEach(function (n) {
  10767. R.indexOf(n) > -1 && function (e, t, n) {
  10768. var s = U[e][t];
  10769. s || (s = U[e][t] = []), -1 === s.indexOf(n) && m(n) && s.push(n);
  10770. }(e, n, t[n]);
  10771. });
  10772. }
  10773. function D(e, t) {
  10774. U[e] || (U[e] = {}), g(t) ? Object.keys(t).forEach(function (n) {
  10775. R.indexOf(n) > -1 && function (e, t, n) {
  10776. var s = U[e][t];
  10777. if (!s) return;
  10778. var r = s.indexOf(n);
  10779. r > -1 && s.splice(r, 1);
  10780. }(e, n, t[n]);
  10781. }) : delete U[e];
  10782. }
  10783. function q(e, t) {
  10784. return e && 0 !== e.length ? e.reduce(function (e, n) {
  10785. return e.then(function () {
  10786. return n(t);
  10787. });
  10788. }, Promise.resolve()) : Promise.resolve();
  10789. }
  10790. function M(e, t) {
  10791. return U[e] && U[e][t] || [];
  10792. }
  10793. function F(e) {
  10794. N("callObject", e);
  10795. }
  10796. var K = L("_globalUniCloudListener"),
  10797. j = "response",
  10798. $ = "needLogin",
  10799. B = "refreshToken",
  10800. W = "clientdb",
  10801. H = "cloudfunction",
  10802. J = "cloudobject";
  10803. function z(e) {
  10804. return K[e] || (K[e] = []), K[e];
  10805. }
  10806. function V(e, t) {
  10807. var n = z(e);
  10808. n.includes(t) || n.push(t);
  10809. }
  10810. function G(e, t) {
  10811. var n = z(e),
  10812. s = n.indexOf(t);
  10813. -1 !== s && n.splice(s, 1);
  10814. }
  10815. function Y(e, t) {
  10816. var n = z(e);
  10817. for (var _e2 = 0; _e2 < n.length; _e2++) {
  10818. (0, n[_e2])(t);
  10819. }
  10820. }
  10821. var Q,
  10822. X = !1;
  10823. function Z() {
  10824. return Q || (Q = new Promise(function (e) {
  10825. X && e(), function t() {
  10826. if ("function" == typeof getCurrentPages) {
  10827. var _t2 = getCurrentPages();
  10828. _t2 && _t2[0] && (X = !0, e());
  10829. }
  10830. X || setTimeout(function () {
  10831. t();
  10832. }, 30);
  10833. }();
  10834. }), Q);
  10835. }
  10836. function ee(e) {
  10837. var t = {};
  10838. for (var _n2 in e) {
  10839. var _s2 = e[_n2];
  10840. m(_s2) && (t[_n2] = y(_s2));
  10841. }
  10842. return t;
  10843. }
  10844. var te = /*#__PURE__*/function (_Error) {
  10845. (0, _inherits2.default)(te, _Error);
  10846. var _super = _createSuper(te);
  10847. function te(e) {
  10848. var _this2;
  10849. (0, _classCallCheck2.default)(this, te);
  10850. _this2 = _super.call(this, e.message), _this2.errMsg = e.message || e.errMsg || "unknown system error", _this2.code = _this2.errCode = e.code || e.errCode || "SYSTEM_ERROR", _this2.errSubject = _this2.subject = e.subject || e.errSubject, _this2.cause = e.cause, _this2.requestId = e.requestId;
  10851. return _this2;
  10852. }
  10853. (0, _createClass2.default)(te, [{
  10854. key: "toJson",
  10855. value: function toJson() {
  10856. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  10857. if (!(e >= 10)) return e++, {
  10858. errCode: this.errCode,
  10859. errMsg: this.errMsg,
  10860. errSubject: this.errSubject,
  10861. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  10862. };
  10863. }
  10864. }]);
  10865. return te;
  10866. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  10867. exports.UniCloudError = te;
  10868. var ne = {
  10869. request: function request(e) {
  10870. return uni.request(e);
  10871. },
  10872. uploadFile: function uploadFile(e) {
  10873. return uni.uploadFile(e);
  10874. },
  10875. setStorageSync: function setStorageSync(e, t) {
  10876. return uni.setStorageSync(e, t);
  10877. },
  10878. getStorageSync: function getStorageSync(e) {
  10879. return uni.getStorageSync(e);
  10880. },
  10881. removeStorageSync: function removeStorageSync(e) {
  10882. return uni.removeStorageSync(e);
  10883. },
  10884. clearStorageSync: function clearStorageSync() {
  10885. return uni.clearStorageSync();
  10886. },
  10887. connectSocket: function connectSocket(e) {
  10888. return uni.connectSocket(e);
  10889. }
  10890. };
  10891. function se() {
  10892. return {
  10893. token: ne.getStorageSync("uni_id_token") || ne.getStorageSync("uniIdToken"),
  10894. tokenExpired: ne.getStorageSync("uni_id_token_expired")
  10895. };
  10896. }
  10897. function re() {
  10898. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  10899. e = _ref2.token,
  10900. t = _ref2.tokenExpired;
  10901. e && ne.setStorageSync("uni_id_token", e), t && ne.setStorageSync("uni_id_token_expired", t);
  10902. }
  10903. var ie, oe;
  10904. function ae() {
  10905. return ie || (ie = uni.getSystemInfoSync()), ie;
  10906. }
  10907. function ce() {
  10908. var e, t;
  10909. try {
  10910. if (uni.getLaunchOptionsSync) {
  10911. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  10912. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  10913. _n3 = _uni$getLaunchOptions.scene,
  10914. _s3 = _uni$getLaunchOptions.channel;
  10915. e = _s3, t = _n3;
  10916. }
  10917. } catch (e) {}
  10918. return {
  10919. channel: e,
  10920. scene: t
  10921. };
  10922. }
  10923. var ue = {};
  10924. function le() {
  10925. var e = uni.getLocale && uni.getLocale() || "en";
  10926. if (oe) return _objectSpread(_objectSpread(_objectSpread({}, ue), oe), {}, {
  10927. locale: e,
  10928. LOCALE: e
  10929. });
  10930. var t = ae(),
  10931. n = t.deviceId,
  10932. s = t.osName,
  10933. r = t.uniPlatform,
  10934. i = t.appId,
  10935. o = ["appId", "appLanguage", "appName", "appVersion", "appVersionCode", "appWgtVersion", "browserName", "browserVersion", "deviceBrand", "deviceId", "deviceModel", "deviceType", "osName", "osVersion", "romName", "romVersion", "ua", "hostName", "hostVersion", "uniPlatform", "uniRuntimeVersion", "uniRuntimeVersionCode", "uniCompilerVersion", "uniCompilerVersionCode"];
  10936. for (var _e3 in t) {
  10937. Object.hasOwnProperty.call(t, _e3) && -1 === o.indexOf(_e3) && delete t[_e3];
  10938. }
  10939. return oe = _objectSpread(_objectSpread({
  10940. PLATFORM: r,
  10941. OS: s,
  10942. APPID: i,
  10943. DEVICEID: n
  10944. }, ce()), t), _objectSpread(_objectSpread(_objectSpread({}, ue), oe), {}, {
  10945. locale: e,
  10946. LOCALE: e
  10947. });
  10948. }
  10949. var he = {
  10950. sign: function sign(e, t) {
  10951. var n = "";
  10952. return Object.keys(e).sort().forEach(function (t) {
  10953. e[t] && (n = n + "&" + t + "=" + e[t]);
  10954. }), n = n.slice(1), i(n, t).toString();
  10955. },
  10956. wrappedRequest: function wrappedRequest(e, t) {
  10957. return new Promise(function (n, s) {
  10958. t(Object.assign(e, {
  10959. complete: function complete(e) {
  10960. e || (e = {}), S && "web" === C && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  10961. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  10962. if (!e.statusCode || e.statusCode >= 400) {
  10963. var _n4 = e.data && e.data.error && e.data.error.code || "SYS_ERR",
  10964. _r = e.data && e.data.error && e.data.error.message || e.errMsg || "request:fail";
  10965. return s(new te({
  10966. code: _n4,
  10967. message: _r,
  10968. requestId: t
  10969. }));
  10970. }
  10971. var r = e.data;
  10972. if (r.error) return s(new te({
  10973. code: r.error.code,
  10974. message: r.error.message,
  10975. requestId: t
  10976. }));
  10977. r.result = r.data, r.requestId = t, delete r.data, n(r);
  10978. }
  10979. }));
  10980. });
  10981. },
  10982. toBase64: function toBase64(e) {
  10983. return a.stringify(o.parse(e));
  10984. }
  10985. };
  10986. var de = /*#__PURE__*/function () {
  10987. function de(e) {
  10988. var _this3 = this;
  10989. (0, _classCallCheck2.default)(this, de);
  10990. ["spaceId", "clientSecret"].forEach(function (t) {
  10991. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  10992. }), this.config = Object.assign({}, {
  10993. endpoint: 0 === e.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
  10994. }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = ne, this._getAccessTokenPromiseHub = new v({
  10995. createPromise: function createPromise() {
  10996. return _this3.requestAuth(_this3.setupRequest({
  10997. method: "serverless.auth.user.anonymousAuthorize",
  10998. params: "{}"
  10999. }, "auth")).then(function (e) {
  11000. if (!e.result || !e.result.accessToken) throw new te({
  11001. code: "AUTH_FAILED",
  11002. message: "获取accessToken失败"
  11003. });
  11004. _this3.setAccessToken(e.result.accessToken);
  11005. });
  11006. },
  11007. retryRule: w
  11008. });
  11009. }
  11010. (0, _createClass2.default)(de, [{
  11011. key: "hasAccessToken",
  11012. get: function get() {
  11013. return !!this.accessToken;
  11014. }
  11015. }, {
  11016. key: "setAccessToken",
  11017. value: function setAccessToken(e) {
  11018. this.accessToken = e;
  11019. }
  11020. }, {
  11021. key: "requestWrapped",
  11022. value: function requestWrapped(e) {
  11023. return he.wrappedRequest(e, this.adapter.request);
  11024. }
  11025. }, {
  11026. key: "requestAuth",
  11027. value: function requestAuth(e) {
  11028. return this.requestWrapped(e);
  11029. }
  11030. }, {
  11031. key: "request",
  11032. value: function request(e, t) {
  11033. var _this4 = this;
  11034. return Promise.resolve().then(function () {
  11035. return _this4.hasAccessToken ? t ? _this4.requestWrapped(e) : _this4.requestWrapped(e).catch(function (t) {
  11036. return new Promise(function (e, n) {
  11037. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  11038. }).then(function () {
  11039. return _this4.getAccessToken();
  11040. }).then(function () {
  11041. var t = _this4.rebuildRequest(e);
  11042. return _this4.request(t, !0);
  11043. });
  11044. }) : _this4.getAccessToken().then(function () {
  11045. var t = _this4.rebuildRequest(e);
  11046. return _this4.request(t, !0);
  11047. });
  11048. });
  11049. }
  11050. }, {
  11051. key: "rebuildRequest",
  11052. value: function rebuildRequest(e) {
  11053. var t = Object.assign({}, e);
  11054. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = he.sign(t.data, this.config.clientSecret), t;
  11055. }
  11056. }, {
  11057. key: "setupRequest",
  11058. value: function setupRequest(e, t) {
  11059. var n = Object.assign({}, e, {
  11060. spaceId: this.config.spaceId,
  11061. timestamp: Date.now()
  11062. }),
  11063. s = {
  11064. "Content-Type": "application/json"
  11065. };
  11066. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = he.sign(n, this.config.clientSecret), {
  11067. url: this.config.requestUrl,
  11068. method: "POST",
  11069. data: n,
  11070. dataType: "json",
  11071. header: s
  11072. };
  11073. }
  11074. }, {
  11075. key: "getAccessToken",
  11076. value: function getAccessToken() {
  11077. return this._getAccessTokenPromiseHub.exec();
  11078. }
  11079. }, {
  11080. key: "authorize",
  11081. value: function () {
  11082. var _authorize = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  11083. return _regenerator.default.wrap(function _callee$(_context) {
  11084. while (1) {
  11085. switch (_context.prev = _context.next) {
  11086. case 0:
  11087. _context.next = 2;
  11088. return this.getAccessToken();
  11089. case 2:
  11090. case "end":
  11091. return _context.stop();
  11092. }
  11093. }
  11094. }, _callee, this);
  11095. }));
  11096. function authorize() {
  11097. return _authorize.apply(this, arguments);
  11098. }
  11099. return authorize;
  11100. }()
  11101. }, {
  11102. key: "callFunction",
  11103. value: function callFunction(e) {
  11104. var t = {
  11105. method: "serverless.function.runtime.invoke",
  11106. params: JSON.stringify({
  11107. functionTarget: e.name,
  11108. functionArgs: e.data || {}
  11109. })
  11110. };
  11111. return this.request(_objectSpread(_objectSpread({}, this.setupRequest(t)), {}, {
  11112. timeout: e.timeout
  11113. }));
  11114. }
  11115. }, {
  11116. key: "getOSSUploadOptionsFromPath",
  11117. value: function getOSSUploadOptionsFromPath(e) {
  11118. var t = {
  11119. method: "serverless.file.resource.generateProximalSign",
  11120. params: JSON.stringify(e)
  11121. };
  11122. return this.request(this.setupRequest(t));
  11123. }
  11124. }, {
  11125. key: "uploadFileToOSS",
  11126. value: function uploadFileToOSS(_ref3) {
  11127. var _this5 = this;
  11128. var e = _ref3.url,
  11129. t = _ref3.formData,
  11130. n = _ref3.name,
  11131. s = _ref3.filePath,
  11132. r = _ref3.fileType,
  11133. i = _ref3.onUploadProgress;
  11134. return new Promise(function (o, a) {
  11135. var c = _this5.adapter.uploadFile({
  11136. url: e,
  11137. formData: t,
  11138. name: n,
  11139. filePath: s,
  11140. fileType: r,
  11141. header: {
  11142. "X-OSS-server-side-encrpytion": "AES256"
  11143. },
  11144. success: function success(e) {
  11145. e && e.statusCode < 400 ? o(e) : a(new te({
  11146. code: "UPLOAD_FAILED",
  11147. message: "文件上传失败"
  11148. }));
  11149. },
  11150. fail: function fail(e) {
  11151. a(new te({
  11152. code: e.code || "UPLOAD_FAILED",
  11153. message: e.message || e.errMsg || "文件上传失败"
  11154. }));
  11155. }
  11156. });
  11157. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  11158. i({
  11159. loaded: e.totalBytesSent,
  11160. total: e.totalBytesExpectedToSend
  11161. });
  11162. });
  11163. });
  11164. }
  11165. }, {
  11166. key: "reportOSSUpload",
  11167. value: function reportOSSUpload(e) {
  11168. var t = {
  11169. method: "serverless.file.resource.report",
  11170. params: JSON.stringify(e)
  11171. };
  11172. return this.request(this.setupRequest(t));
  11173. }
  11174. }, {
  11175. key: "uploadFile",
  11176. value: function () {
  11177. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref4) {
  11178. var e, t, _ref4$fileType, n, _ref4$cloudPathAsReal, s, r, i, o, a, c, u, l, h, d, p, g, m, y, _, _e4, w;
  11179. return _regenerator.default.wrap(function _callee2$(_context2) {
  11180. while (1) {
  11181. switch (_context2.prev = _context2.next) {
  11182. case 0:
  11183. e = _ref4.filePath, t = _ref4.cloudPath, _ref4$fileType = _ref4.fileType, n = _ref4$fileType === void 0 ? "image" : _ref4$fileType, _ref4$cloudPathAsReal = _ref4.cloudPathAsRealPath, s = _ref4$cloudPathAsReal === void 0 ? !1 : _ref4$cloudPathAsReal, r = _ref4.onUploadProgress, i = _ref4.config;
  11184. if (!("string" !== f(t))) {
  11185. _context2.next = 3;
  11186. break;
  11187. }
  11188. throw new te({
  11189. code: "INVALID_PARAM",
  11190. message: "cloudPath必须为字符串类型"
  11191. });
  11192. case 3:
  11193. if (t = t.trim()) {
  11194. _context2.next = 5;
  11195. break;
  11196. }
  11197. throw new te({
  11198. code: "INVALID_PARAM",
  11199. message: "cloudPath不可为空"
  11200. });
  11201. case 5:
  11202. if (!/:\/\//.test(t)) {
  11203. _context2.next = 7;
  11204. break;
  11205. }
  11206. throw new te({
  11207. code: "INVALID_PARAM",
  11208. message: "cloudPath不合法"
  11209. });
  11210. case 7:
  11211. o = i && i.envType || this.config.envType;
  11212. if (!(s && ("/" !== t[0] && (t = "/" + t), t.indexOf("\\") > -1))) {
  11213. _context2.next = 10;
  11214. break;
  11215. }
  11216. throw new te({
  11217. code: "INVALID_PARAM",
  11218. message: "使用cloudPath作为路径时,cloudPath不可包含“\\”"
  11219. });
  11220. case 10:
  11221. _context2.next = 12;
  11222. return this.getOSSUploadOptionsFromPath({
  11223. env: o,
  11224. filename: s ? t.split("/").pop() : t,
  11225. fileId: s ? t : void 0
  11226. });
  11227. case 12:
  11228. a = _context2.sent.result;
  11229. c = "https://" + a.cdnDomain + "/" + a.ossPath;
  11230. u = a.securityToken;
  11231. l = a.accessKeyId;
  11232. h = a.signature;
  11233. d = a.host;
  11234. p = a.ossPath;
  11235. g = a.id;
  11236. m = a.policy;
  11237. y = a.ossCallbackUrl;
  11238. _ = {
  11239. "Cache-Control": "max-age=2592000",
  11240. "Content-Disposition": "attachment",
  11241. OSSAccessKeyId: l,
  11242. Signature: h,
  11243. host: d,
  11244. id: g,
  11245. key: p,
  11246. policy: m,
  11247. success_action_status: 200
  11248. };
  11249. if (u && (_["x-oss-security-token"] = u), y) {
  11250. _e4 = JSON.stringify({
  11251. callbackUrl: y,
  11252. callbackBody: JSON.stringify({
  11253. fileId: g,
  11254. spaceId: this.config.spaceId
  11255. }),
  11256. callbackBodyType: "application/json"
  11257. });
  11258. _.callback = he.toBase64(_e4);
  11259. }
  11260. w = {
  11261. url: "https://" + a.host,
  11262. formData: _,
  11263. fileName: "file",
  11264. name: "file",
  11265. filePath: e,
  11266. fileType: n
  11267. };
  11268. _context2.next = 27;
  11269. return this.uploadFileToOSS(Object.assign({}, w, {
  11270. onUploadProgress: r
  11271. }));
  11272. case 27:
  11273. if (!y) {
  11274. _context2.next = 29;
  11275. break;
  11276. }
  11277. return _context2.abrupt("return", {
  11278. success: !0,
  11279. filePath: e,
  11280. fileID: c
  11281. });
  11282. case 29:
  11283. _context2.next = 31;
  11284. return this.reportOSSUpload({
  11285. id: g
  11286. });
  11287. case 31:
  11288. if (!_context2.sent.success) {
  11289. _context2.next = 33;
  11290. break;
  11291. }
  11292. return _context2.abrupt("return", {
  11293. success: !0,
  11294. filePath: e,
  11295. fileID: c
  11296. });
  11297. case 33:
  11298. throw new te({
  11299. code: "UPLOAD_FAILED",
  11300. message: "文件上传失败"
  11301. });
  11302. case 34:
  11303. case "end":
  11304. return _context2.stop();
  11305. }
  11306. }
  11307. }, _callee2, this);
  11308. }));
  11309. function uploadFile(_x) {
  11310. return _uploadFile.apply(this, arguments);
  11311. }
  11312. return uploadFile;
  11313. }()
  11314. }, {
  11315. key: "getTempFileURL",
  11316. value: function getTempFileURL() {
  11317. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  11318. e = _ref5.fileList;
  11319. return new Promise(function (t, n) {
  11320. Array.isArray(e) && 0 !== e.length || n(new te({
  11321. code: "INVALID_PARAM",
  11322. message: "fileList的元素必须是非空的字符串"
  11323. })), t({
  11324. fileList: e.map(function (e) {
  11325. return {
  11326. fileID: e,
  11327. tempFileURL: e
  11328. };
  11329. })
  11330. });
  11331. });
  11332. }
  11333. }, {
  11334. key: "getFileInfo",
  11335. value: function () {
  11336. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  11337. var _ref6,
  11338. e,
  11339. t,
  11340. _args3 = arguments;
  11341. return _regenerator.default.wrap(function _callee3$(_context3) {
  11342. while (1) {
  11343. switch (_context3.prev = _context3.next) {
  11344. case 0:
  11345. _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref6.fileList;
  11346. if (!(!Array.isArray(e) || 0 === e.length)) {
  11347. _context3.next = 3;
  11348. break;
  11349. }
  11350. throw new te({
  11351. code: "INVALID_PARAM",
  11352. message: "fileList的元素必须是非空的字符串"
  11353. });
  11354. case 3:
  11355. t = {
  11356. method: "serverless.file.resource.info",
  11357. params: JSON.stringify({
  11358. id: e.map(function (e) {
  11359. return e.split("?")[0];
  11360. }).join(",")
  11361. })
  11362. };
  11363. _context3.next = 6;
  11364. return this.request(this.setupRequest(t));
  11365. case 6:
  11366. _context3.t0 = _context3.sent.result;
  11367. return _context3.abrupt("return", {
  11368. fileList: _context3.t0
  11369. });
  11370. case 8:
  11371. case "end":
  11372. return _context3.stop();
  11373. }
  11374. }
  11375. }, _callee3, this);
  11376. }));
  11377. function getFileInfo() {
  11378. return _getFileInfo.apply(this, arguments);
  11379. }
  11380. return getFileInfo;
  11381. }()
  11382. }]);
  11383. return de;
  11384. }();
  11385. var pe = {
  11386. init: function init(e) {
  11387. var t = new de(e),
  11388. n = {
  11389. signInAnonymously: function signInAnonymously() {
  11390. return t.authorize();
  11391. },
  11392. getLoginState: function getLoginState() {
  11393. return Promise.resolve(!1);
  11394. }
  11395. };
  11396. return t.auth = function () {
  11397. return n;
  11398. }, t.customAuth = t.auth, t;
  11399. }
  11400. };
  11401. var fe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  11402. var ge;
  11403. !function (e) {
  11404. e.local = "local", e.none = "none", e.session = "session";
  11405. }(ge || (ge = {}));
  11406. var me = function me() {},
  11407. ye = n(function (e, t) {
  11408. var n;
  11409. e.exports = (n = r, function (e) {
  11410. var t = n,
  11411. s = t.lib,
  11412. r = s.WordArray,
  11413. i = s.Hasher,
  11414. o = t.algo,
  11415. a = [],
  11416. c = [];
  11417. !function () {
  11418. function t(t) {
  11419. for (var n = e.sqrt(t), s = 2; s <= n; s++) {
  11420. if (!(t % s)) return !1;
  11421. }
  11422. return !0;
  11423. }
  11424. function n(e) {
  11425. return 4294967296 * (e - (0 | e)) | 0;
  11426. }
  11427. for (var s = 2, r = 0; r < 64;) {
  11428. t(s) && (r < 8 && (a[r] = n(e.pow(s, .5))), c[r] = n(e.pow(s, 1 / 3)), r++), s++;
  11429. }
  11430. }();
  11431. var u = [],
  11432. l = o.SHA256 = i.extend({
  11433. _doReset: function _doReset() {
  11434. this._hash = new r.init(a.slice(0));
  11435. },
  11436. _doProcessBlock: function _doProcessBlock(e, t) {
  11437. for (var n = this._hash.words, s = n[0], r = n[1], i = n[2], o = n[3], a = n[4], l = n[5], h = n[6], d = n[7], p = 0; p < 64; p++) {
  11438. if (p < 16) u[p] = 0 | e[t + p];else {
  11439. var f = u[p - 15],
  11440. g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3,
  11441. m = u[p - 2],
  11442. y = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
  11443. u[p] = g + u[p - 7] + y + u[p - 16];
  11444. }
  11445. var _ = s & r ^ s & i ^ r & i,
  11446. w = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22),
  11447. v = d + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & l ^ ~a & h) + c[p] + u[p];
  11448. d = h, h = l, l = a, a = o + v | 0, o = i, i = r, r = s, s = v + (w + _) | 0;
  11449. }
  11450. n[0] = n[0] + s | 0, n[1] = n[1] + r | 0, n[2] = n[2] + i | 0, n[3] = n[3] + o | 0, n[4] = n[4] + a | 0, n[5] = n[5] + l | 0, n[6] = n[6] + h | 0, n[7] = n[7] + d | 0;
  11451. },
  11452. _doFinalize: function _doFinalize() {
  11453. var t = this._data,
  11454. n = t.words,
  11455. s = 8 * this._nDataBytes,
  11456. r = 8 * t.sigBytes;
  11457. return n[r >>> 5] |= 128 << 24 - r % 32, n[14 + (r + 64 >>> 9 << 4)] = e.floor(s / 4294967296), n[15 + (r + 64 >>> 9 << 4)] = s, t.sigBytes = 4 * n.length, this._process(), this._hash;
  11458. },
  11459. clone: function clone() {
  11460. var e = i.clone.call(this);
  11461. return e._hash = this._hash.clone(), e;
  11462. }
  11463. });
  11464. t.SHA256 = i._createHelper(l), t.HmacSHA256 = i._createHmacHelper(l);
  11465. }(Math), n.SHA256);
  11466. }),
  11467. _e = ye,
  11468. we = n(function (e, t) {
  11469. e.exports = r.HmacSHA256;
  11470. });
  11471. var ve = function ve() {
  11472. var e;
  11473. if (!Promise) {
  11474. e = function e() {}, e.promise = {};
  11475. var _t3 = function _t3() {
  11476. throw new te({
  11477. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  11478. });
  11479. };
  11480. return Object.defineProperty(e.promise, "then", {
  11481. get: _t3
  11482. }), Object.defineProperty(e.promise, "catch", {
  11483. get: _t3
  11484. }), e;
  11485. }
  11486. var t = new Promise(function (t, n) {
  11487. e = function e(_e5, s) {
  11488. return _e5 ? n(_e5) : t(s);
  11489. };
  11490. });
  11491. return e.promise = t, e;
  11492. };
  11493. function Ie(e) {
  11494. return void 0 === e;
  11495. }
  11496. function Se(e) {
  11497. return "[object Null]" === Object.prototype.toString.call(e);
  11498. }
  11499. var be;
  11500. function ke(e) {
  11501. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  11502. var n;
  11503. var _iterator = _createForOfIteratorHelper(t),
  11504. _step;
  11505. try {
  11506. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  11507. var _e6 = _step.value;
  11508. var _t4 = _e6.isMatch,
  11509. _n5 = _e6.genAdapter,
  11510. _s4 = _e6.runtime;
  11511. if (_t4()) return {
  11512. adapter: _n5(),
  11513. runtime: _s4
  11514. };
  11515. }
  11516. } catch (err) {
  11517. _iterator.e(err);
  11518. } finally {
  11519. _iterator.f();
  11520. }
  11521. }
  11522. !function (e) {
  11523. e.WEB = "web", e.WX_MP = "wx_mp";
  11524. }(be || (be = {}));
  11525. var Ae = {
  11526. adapter: null,
  11527. runtime: void 0
  11528. },
  11529. Ce = ["anonymousUuidKey"];
  11530. var Pe = /*#__PURE__*/function (_me) {
  11531. (0, _inherits2.default)(Pe, _me);
  11532. var _super2 = _createSuper(Pe);
  11533. function Pe() {
  11534. var _this6;
  11535. (0, _classCallCheck2.default)(this, Pe);
  11536. _this6 = _super2.call(this), Ae.adapter.root.tcbObject || (Ae.adapter.root.tcbObject = {});
  11537. return _this6;
  11538. }
  11539. (0, _createClass2.default)(Pe, [{
  11540. key: "setItem",
  11541. value: function setItem(e, t) {
  11542. Ae.adapter.root.tcbObject[e] = t;
  11543. }
  11544. }, {
  11545. key: "getItem",
  11546. value: function getItem(e) {
  11547. return Ae.adapter.root.tcbObject[e];
  11548. }
  11549. }, {
  11550. key: "removeItem",
  11551. value: function removeItem(e) {
  11552. delete Ae.adapter.root.tcbObject[e];
  11553. }
  11554. }, {
  11555. key: "clear",
  11556. value: function clear() {
  11557. delete Ae.adapter.root.tcbObject;
  11558. }
  11559. }]);
  11560. return Pe;
  11561. }(me);
  11562. function Te(e, t) {
  11563. switch (e) {
  11564. case "local":
  11565. return t.localStorage || new Pe();
  11566. case "none":
  11567. return new Pe();
  11568. default:
  11569. return t.sessionStorage || new Pe();
  11570. }
  11571. }
  11572. var xe = /*#__PURE__*/function () {
  11573. function xe(e) {
  11574. (0, _classCallCheck2.default)(this, xe);
  11575. if (!this._storage) {
  11576. this._persistence = Ae.adapter.primaryStorage || e.persistence, this._storage = Te(this._persistence, Ae.adapter);
  11577. var _t5 = "access_token_".concat(e.env),
  11578. _n6 = "access_token_expire_".concat(e.env),
  11579. _s5 = "refresh_token_".concat(e.env),
  11580. _r2 = "anonymous_uuid_".concat(e.env),
  11581. _i = "login_type_".concat(e.env),
  11582. _o = "user_info_".concat(e.env);
  11583. this.keys = {
  11584. accessTokenKey: _t5,
  11585. accessTokenExpireKey: _n6,
  11586. refreshTokenKey: _s5,
  11587. anonymousUuidKey: _r2,
  11588. loginTypeKey: _i,
  11589. userInfoKey: _o
  11590. };
  11591. }
  11592. }
  11593. (0, _createClass2.default)(xe, [{
  11594. key: "updatePersistence",
  11595. value: function updatePersistence(e) {
  11596. if (e === this._persistence) return;
  11597. var t = "local" === this._persistence;
  11598. this._persistence = e;
  11599. var n = Te(e, Ae.adapter);
  11600. for (var _e7 in this.keys) {
  11601. var _s6 = this.keys[_e7];
  11602. if (t && Ce.includes(_e7)) continue;
  11603. var _r3 = this._storage.getItem(_s6);
  11604. Ie(_r3) || Se(_r3) || (n.setItem(_s6, _r3), this._storage.removeItem(_s6));
  11605. }
  11606. this._storage = n;
  11607. }
  11608. }, {
  11609. key: "setStore",
  11610. value: function setStore(e, t, n) {
  11611. if (!this._storage) return;
  11612. var s = {
  11613. version: n || "localCachev1",
  11614. content: t
  11615. },
  11616. r = JSON.stringify(s);
  11617. try {
  11618. this._storage.setItem(e, r);
  11619. } catch (e) {
  11620. throw e;
  11621. }
  11622. }
  11623. }, {
  11624. key: "getStore",
  11625. value: function getStore(e, t) {
  11626. try {
  11627. if (!this._storage) return;
  11628. } catch (e) {
  11629. return "";
  11630. }
  11631. t = t || "localCachev1";
  11632. var n = this._storage.getItem(e);
  11633. if (!n) return "";
  11634. if (n.indexOf(t) >= 0) {
  11635. return JSON.parse(n).content;
  11636. }
  11637. return "";
  11638. }
  11639. }, {
  11640. key: "removeStore",
  11641. value: function removeStore(e) {
  11642. this._storage.removeItem(e);
  11643. }
  11644. }]);
  11645. return xe;
  11646. }();
  11647. var Oe = {},
  11648. Ee = {};
  11649. function Le(e) {
  11650. return Oe[e];
  11651. }
  11652. var Re = /*#__PURE__*/(0, _createClass2.default)(function Re(e, t) {
  11653. (0, _classCallCheck2.default)(this, Re);
  11654. this.data = t || null, this.name = e;
  11655. });
  11656. var Ue = /*#__PURE__*/function (_Re) {
  11657. (0, _inherits2.default)(Ue, _Re);
  11658. var _super3 = _createSuper(Ue);
  11659. function Ue(e, t) {
  11660. var _this7;
  11661. (0, _classCallCheck2.default)(this, Ue);
  11662. _this7 = _super3.call(this, "error", {
  11663. error: e,
  11664. data: t
  11665. }), _this7.error = e;
  11666. return _this7;
  11667. }
  11668. return (0, _createClass2.default)(Ue);
  11669. }(Re);
  11670. var Ne = new ( /*#__PURE__*/function () {
  11671. function _class() {
  11672. (0, _classCallCheck2.default)(this, _class);
  11673. this._listeners = {};
  11674. }
  11675. (0, _createClass2.default)(_class, [{
  11676. key: "on",
  11677. value: function on(e, t) {
  11678. return function (e, t, n) {
  11679. n[e] = n[e] || [], n[e].push(t);
  11680. }(e, t, this._listeners), this;
  11681. }
  11682. }, {
  11683. key: "off",
  11684. value: function off(e, t) {
  11685. return function (e, t, n) {
  11686. if (n && n[e]) {
  11687. var _s7 = n[e].indexOf(t);
  11688. -1 !== _s7 && n[e].splice(_s7, 1);
  11689. }
  11690. }(e, t, this._listeners), this;
  11691. }
  11692. }, {
  11693. key: "fire",
  11694. value: function fire(e, t) {
  11695. if (e instanceof Ue) return console.error(e.error), this;
  11696. var n = "string" == typeof e ? new Re(e, t || {}) : e;
  11697. var s = n.name;
  11698. if (this._listens(s)) {
  11699. n.target = this;
  11700. var _e8 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  11701. var _iterator2 = _createForOfIteratorHelper(_e8),
  11702. _step2;
  11703. try {
  11704. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  11705. var _t6 = _step2.value;
  11706. _t6.call(this, n);
  11707. }
  11708. } catch (err) {
  11709. _iterator2.e(err);
  11710. } finally {
  11711. _iterator2.f();
  11712. }
  11713. }
  11714. return this;
  11715. }
  11716. }, {
  11717. key: "_listens",
  11718. value: function _listens(e) {
  11719. return this._listeners[e] && this._listeners[e].length > 0;
  11720. }
  11721. }]);
  11722. return _class;
  11723. }())();
  11724. function De(e, t) {
  11725. Ne.on(e, t);
  11726. }
  11727. function qe(e) {
  11728. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  11729. Ne.fire(e, t);
  11730. }
  11731. function Me(e, t) {
  11732. Ne.off(e, t);
  11733. }
  11734. var Fe = "loginStateChanged",
  11735. Ke = "loginStateExpire",
  11736. je = "loginTypeChanged",
  11737. $e = "anonymousConverted",
  11738. Be = "refreshAccessToken";
  11739. var We;
  11740. !function (e) {
  11741. e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";
  11742. }(We || (We = {}));
  11743. var He = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  11744. Je = {
  11745. "X-SDK-Version": "1.3.5"
  11746. };
  11747. function ze(e, t, n) {
  11748. var s = e[t];
  11749. e[t] = function (t) {
  11750. var r = {},
  11751. i = {};
  11752. n.forEach(function (n) {
  11753. var _n$call = n.call(e, t),
  11754. s = _n$call.data,
  11755. o = _n$call.headers;
  11756. Object.assign(r, s), Object.assign(i, o);
  11757. });
  11758. var o = t.data;
  11759. return o && function () {
  11760. var e;
  11761. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e9 in r) {
  11762. o.append(_e9, r[_e9]);
  11763. }
  11764. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  11765. };
  11766. }
  11767. function Ve() {
  11768. var e = Math.random().toString(16).slice(2);
  11769. return {
  11770. data: {
  11771. seqId: e
  11772. },
  11773. headers: _objectSpread(_objectSpread({}, Je), {}, {
  11774. "x-seqid": e
  11775. })
  11776. };
  11777. }
  11778. var Ge = /*#__PURE__*/function () {
  11779. function Ge() {
  11780. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  11781. (0, _classCallCheck2.default)(this, Ge);
  11782. var t;
  11783. this.config = e, this._reqClass = new Ae.adapter.reqClass({
  11784. timeout: this.config.timeout,
  11785. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  11786. restrictedMethods: ["post"]
  11787. }), this._cache = Le(this.config.env), this._localCache = (t = this.config.env, Ee[t]), ze(this._reqClass, "post", [Ve]), ze(this._reqClass, "upload", [Ve]), ze(this._reqClass, "download", [Ve]);
  11788. }
  11789. (0, _createClass2.default)(Ge, [{
  11790. key: "post",
  11791. value: function () {
  11792. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  11793. return _regenerator.default.wrap(function _callee4$(_context4) {
  11794. while (1) {
  11795. switch (_context4.prev = _context4.next) {
  11796. case 0:
  11797. _context4.next = 2;
  11798. return this._reqClass.post(e);
  11799. case 2:
  11800. return _context4.abrupt("return", _context4.sent);
  11801. case 3:
  11802. case "end":
  11803. return _context4.stop();
  11804. }
  11805. }
  11806. }, _callee4, this);
  11807. }));
  11808. function post(_x2) {
  11809. return _post.apply(this, arguments);
  11810. }
  11811. return post;
  11812. }()
  11813. }, {
  11814. key: "upload",
  11815. value: function () {
  11816. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  11817. return _regenerator.default.wrap(function _callee5$(_context5) {
  11818. while (1) {
  11819. switch (_context5.prev = _context5.next) {
  11820. case 0:
  11821. _context5.next = 2;
  11822. return this._reqClass.upload(e);
  11823. case 2:
  11824. return _context5.abrupt("return", _context5.sent);
  11825. case 3:
  11826. case "end":
  11827. return _context5.stop();
  11828. }
  11829. }
  11830. }, _callee5, this);
  11831. }));
  11832. function upload(_x3) {
  11833. return _upload.apply(this, arguments);
  11834. }
  11835. return upload;
  11836. }()
  11837. }, {
  11838. key: "download",
  11839. value: function () {
  11840. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(e) {
  11841. return _regenerator.default.wrap(function _callee6$(_context6) {
  11842. while (1) {
  11843. switch (_context6.prev = _context6.next) {
  11844. case 0:
  11845. _context6.next = 2;
  11846. return this._reqClass.download(e);
  11847. case 2:
  11848. return _context6.abrupt("return", _context6.sent);
  11849. case 3:
  11850. case "end":
  11851. return _context6.stop();
  11852. }
  11853. }
  11854. }, _callee6, this);
  11855. }));
  11856. function download(_x4) {
  11857. return _download.apply(this, arguments);
  11858. }
  11859. return download;
  11860. }()
  11861. }, {
  11862. key: "refreshAccessToken",
  11863. value: function () {
  11864. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  11865. var e, t;
  11866. return _regenerator.default.wrap(function _callee7$(_context7) {
  11867. while (1) {
  11868. switch (_context7.prev = _context7.next) {
  11869. case 0:
  11870. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  11871. _context7.prev = 1;
  11872. _context7.next = 4;
  11873. return this._refreshAccessTokenPromise;
  11874. case 4:
  11875. e = _context7.sent;
  11876. _context7.next = 10;
  11877. break;
  11878. case 7:
  11879. _context7.prev = 7;
  11880. _context7.t0 = _context7["catch"](1);
  11881. t = _context7.t0;
  11882. case 10:
  11883. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  11884. _context7.next = 12;
  11885. break;
  11886. }
  11887. throw t;
  11888. case 12:
  11889. return _context7.abrupt("return", e);
  11890. case 13:
  11891. case "end":
  11892. return _context7.stop();
  11893. }
  11894. }
  11895. }, _callee7, this, [[1, 7]]);
  11896. }));
  11897. function refreshAccessToken() {
  11898. return _refreshAccessToken2.apply(this, arguments);
  11899. }
  11900. return refreshAccessToken;
  11901. }()
  11902. }, {
  11903. key: "_refreshAccessToken",
  11904. value: function () {
  11905. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  11906. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e10, _e11, _t7, _s8;
  11907. return _regenerator.default.wrap(function _callee8$(_context8) {
  11908. while (1) {
  11909. switch (_context8.prev = _context8.next) {
  11910. case 0:
  11911. _this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, r = _this$_cache$keys.anonymousUuidKey;
  11912. this._cache.removeStore(e), this._cache.removeStore(t);
  11913. i = this._cache.getStore(n);
  11914. if (i) {
  11915. _context8.next = 5;
  11916. break;
  11917. }
  11918. throw new te({
  11919. message: "未登录CloudBase"
  11920. });
  11921. case 5:
  11922. o = {
  11923. refresh_token: i
  11924. };
  11925. _context8.next = 8;
  11926. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  11927. case 8:
  11928. a = _context8.sent;
  11929. if (!a.data.code) {
  11930. _context8.next = 21;
  11931. break;
  11932. }
  11933. _e10 = a.data.code;
  11934. if (!("SIGN_PARAM_INVALID" === _e10 || "REFRESH_TOKEN_EXPIRED" === _e10 || "INVALID_REFRESH_TOKEN" === _e10)) {
  11935. _context8.next = 20;
  11936. break;
  11937. }
  11938. if (!(this._cache.getStore(s) === We.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e10)) {
  11939. _context8.next = 19;
  11940. break;
  11941. }
  11942. _e11 = this._cache.getStore(r);
  11943. _t7 = this._cache.getStore(n);
  11944. _context8.next = 17;
  11945. return this.send("auth.signInAnonymously", {
  11946. anonymous_uuid: _e11,
  11947. refresh_token: _t7
  11948. });
  11949. case 17:
  11950. _s8 = _context8.sent;
  11951. return _context8.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  11952. case 19:
  11953. qe(Ke), this._cache.removeStore(n);
  11954. case 20:
  11955. throw new te({
  11956. code: a.data.code,
  11957. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  11958. });
  11959. case 21:
  11960. if (!a.data.access_token) {
  11961. _context8.next = 23;
  11962. break;
  11963. }
  11964. return _context8.abrupt("return", (qe(Be), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  11965. accessToken: a.data.access_token,
  11966. accessTokenExpire: a.data.access_token_expire
  11967. }));
  11968. case 23:
  11969. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  11970. case 24:
  11971. case "end":
  11972. return _context8.stop();
  11973. }
  11974. }
  11975. }, _callee8, this);
  11976. }));
  11977. function _refreshAccessToken() {
  11978. return _refreshAccessToken3.apply(this, arguments);
  11979. }
  11980. return _refreshAccessToken;
  11981. }()
  11982. }, {
  11983. key: "getAccessToken",
  11984. value: function () {
  11985. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  11986. var _this$_cache$keys2, e, t, n, s, r, i;
  11987. return _regenerator.default.wrap(function _callee9$(_context9) {
  11988. while (1) {
  11989. switch (_context9.prev = _context9.next) {
  11990. case 0:
  11991. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  11992. if (this._cache.getStore(n)) {
  11993. _context9.next = 3;
  11994. break;
  11995. }
  11996. throw new te({
  11997. message: "refresh token不存在,登录状态异常"
  11998. });
  11999. case 3:
  12000. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  12001. _context9.t0 = this._shouldRefreshAccessTokenHook;
  12002. if (!_context9.t0) {
  12003. _context9.next = 9;
  12004. break;
  12005. }
  12006. _context9.next = 8;
  12007. return this._shouldRefreshAccessTokenHook(s, r);
  12008. case 8:
  12009. _context9.t0 = !_context9.sent;
  12010. case 9:
  12011. _context9.t1 = _context9.t0;
  12012. if (!_context9.t1) {
  12013. _context9.next = 12;
  12014. break;
  12015. }
  12016. i = !1;
  12017. case 12:
  12018. return _context9.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  12019. accessToken: s,
  12020. accessTokenExpire: r
  12021. });
  12022. case 13:
  12023. case "end":
  12024. return _context9.stop();
  12025. }
  12026. }
  12027. }, _callee9, this);
  12028. }));
  12029. function getAccessToken() {
  12030. return _getAccessToken.apply(this, arguments);
  12031. }
  12032. return getAccessToken;
  12033. }()
  12034. }, {
  12035. key: "request",
  12036. value: function () {
  12037. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, t, n) {
  12038. var s, r, i, _e12, o, _e13, _e14, a, c, u, l, h, d, p, f, g;
  12039. return _regenerator.default.wrap(function _callee10$(_context10) {
  12040. while (1) {
  12041. switch (_context10.prev = _context10.next) {
  12042. case 0:
  12043. s = "x-tcb-trace_".concat(this.config.env);
  12044. r = "application/x-www-form-urlencoded";
  12045. i = _objectSpread({
  12046. action: e,
  12047. env: this.config.env,
  12048. dataVersion: "2019-08-16"
  12049. }, t);
  12050. if (!(-1 === He.indexOf(e))) {
  12051. _context10.next = 10;
  12052. break;
  12053. }
  12054. _e12 = this._cache.keys.refreshTokenKey;
  12055. _context10.t0 = this._cache.getStore(_e12);
  12056. if (!_context10.t0) {
  12057. _context10.next = 10;
  12058. break;
  12059. }
  12060. _context10.next = 9;
  12061. return this.getAccessToken();
  12062. case 9:
  12063. i.access_token = _context10.sent.accessToken;
  12064. case 10:
  12065. if ("storage.uploadFile" === e) {
  12066. o = new FormData();
  12067. for (_e13 in o) {
  12068. o.hasOwnProperty(_e13) && void 0 !== o[_e13] && o.append(_e13, i[_e13]);
  12069. }
  12070. r = "multipart/form-data";
  12071. } else {
  12072. r = "application/json", o = {};
  12073. for (_e14 in i) {
  12074. void 0 !== i[_e14] && (o[_e14] = i[_e14]);
  12075. }
  12076. }
  12077. a = {
  12078. headers: {
  12079. "content-type": r
  12080. }
  12081. };
  12082. n && n.timeout && (a.timeout = n.timeout), n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  12083. c = this._localCache.getStore(s);
  12084. c && (a.headers["X-TCB-Trace"] = c);
  12085. u = t.parse, l = t.inQuery, h = t.search;
  12086. d = {
  12087. env: this.config.env
  12088. };
  12089. u && (d.parse = !0), l && (d = _objectSpread(_objectSpread({}, l), d));
  12090. p = function (e, t) {
  12091. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  12092. var s = /\?/.test(t);
  12093. var r = "";
  12094. for (var _e15 in n) {
  12095. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e15, "=").concat(encodeURIComponent(n[_e15]));
  12096. }
  12097. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  12098. }(fe, "//tcb-api.tencentcloudapi.com/web", d);
  12099. h && (p += h);
  12100. _context10.next = 22;
  12101. return this.post(_objectSpread({
  12102. url: p,
  12103. data: o
  12104. }, a));
  12105. case 22:
  12106. f = _context10.sent;
  12107. g = f.header && f.header["x-tcb-trace"];
  12108. if (!(g && this._localCache.setStore(s, g), 200 !== Number(f.status) && 200 !== Number(f.statusCode) || !f.data)) {
  12109. _context10.next = 26;
  12110. break;
  12111. }
  12112. throw new te({
  12113. code: "NETWORK_ERROR",
  12114. message: "network request error"
  12115. });
  12116. case 26:
  12117. return _context10.abrupt("return", f);
  12118. case 27:
  12119. case "end":
  12120. return _context10.stop();
  12121. }
  12122. }
  12123. }, _callee10, this);
  12124. }));
  12125. function request(_x5, _x6, _x7) {
  12126. return _request.apply(this, arguments);
  12127. }
  12128. return request;
  12129. }()
  12130. }, {
  12131. key: "send",
  12132. value: function () {
  12133. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {
  12134. var t,
  12135. n,
  12136. s,
  12137. _s9,
  12138. _args11 = arguments;
  12139. return _regenerator.default.wrap(function _callee11$(_context11) {
  12140. while (1) {
  12141. switch (_context11.prev = _context11.next) {
  12142. case 0:
  12143. t = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
  12144. n = _args11.length > 2 && _args11[2] !== undefined ? _args11[2] : {};
  12145. _context11.next = 4;
  12146. return this.request(e, t, _objectSpread(_objectSpread({}, n), {}, {
  12147. onUploadProgress: t.onUploadProgress
  12148. }));
  12149. case 4:
  12150. s = _context11.sent;
  12151. if (!("ACCESS_TOKEN_EXPIRED" === s.data.code && -1 === He.indexOf(e))) {
  12152. _context11.next = 14;
  12153. break;
  12154. }
  12155. _context11.next = 8;
  12156. return this.refreshAccessToken();
  12157. case 8:
  12158. _context11.next = 10;
  12159. return this.request(e, t, _objectSpread(_objectSpread({}, n), {}, {
  12160. onUploadProgress: t.onUploadProgress
  12161. }));
  12162. case 10:
  12163. _s9 = _context11.sent;
  12164. if (!_s9.data.code) {
  12165. _context11.next = 13;
  12166. break;
  12167. }
  12168. throw new te({
  12169. code: _s9.data.code,
  12170. message: _s9.data.message
  12171. });
  12172. case 13:
  12173. return _context11.abrupt("return", _s9.data);
  12174. case 14:
  12175. if (!s.data.code) {
  12176. _context11.next = 16;
  12177. break;
  12178. }
  12179. throw new te({
  12180. code: s.data.code,
  12181. message: s.data.message
  12182. });
  12183. case 16:
  12184. return _context11.abrupt("return", s.data);
  12185. case 17:
  12186. case "end":
  12187. return _context11.stop();
  12188. }
  12189. }
  12190. }, _callee11, this);
  12191. }));
  12192. function send(_x8) {
  12193. return _send.apply(this, arguments);
  12194. }
  12195. return send;
  12196. }()
  12197. }, {
  12198. key: "setRefreshToken",
  12199. value: function setRefreshToken(e) {
  12200. var _this$_cache$keys3 = this._cache.keys,
  12201. t = _this$_cache$keys3.accessTokenKey,
  12202. n = _this$_cache$keys3.accessTokenExpireKey,
  12203. s = _this$_cache$keys3.refreshTokenKey;
  12204. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  12205. }
  12206. }]);
  12207. return Ge;
  12208. }();
  12209. var Ye = {};
  12210. function Qe(e) {
  12211. return Ye[e];
  12212. }
  12213. var Xe = /*#__PURE__*/function () {
  12214. function Xe(e) {
  12215. (0, _classCallCheck2.default)(this, Xe);
  12216. this.config = e, this._cache = Le(e.env), this._request = Qe(e.env);
  12217. }
  12218. (0, _createClass2.default)(Xe, [{
  12219. key: "setRefreshToken",
  12220. value: function setRefreshToken(e) {
  12221. var _this$_cache$keys4 = this._cache.keys,
  12222. t = _this$_cache$keys4.accessTokenKey,
  12223. n = _this$_cache$keys4.accessTokenExpireKey,
  12224. s = _this$_cache$keys4.refreshTokenKey;
  12225. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  12226. }
  12227. }, {
  12228. key: "setAccessToken",
  12229. value: function setAccessToken(e, t) {
  12230. var _this$_cache$keys5 = this._cache.keys,
  12231. n = _this$_cache$keys5.accessTokenKey,
  12232. s = _this$_cache$keys5.accessTokenExpireKey;
  12233. this._cache.setStore(n, e), this._cache.setStore(s, t);
  12234. }
  12235. }, {
  12236. key: "refreshUserInfo",
  12237. value: function () {
  12238. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  12239. var _yield$this$_request$, e;
  12240. return _regenerator.default.wrap(function _callee12$(_context12) {
  12241. while (1) {
  12242. switch (_context12.prev = _context12.next) {
  12243. case 0:
  12244. _context12.next = 2;
  12245. return this._request.send("auth.getUserInfo", {});
  12246. case 2:
  12247. _yield$this$_request$ = _context12.sent;
  12248. e = _yield$this$_request$.data;
  12249. return _context12.abrupt("return", (this.setLocalUserInfo(e), e));
  12250. case 5:
  12251. case "end":
  12252. return _context12.stop();
  12253. }
  12254. }
  12255. }, _callee12, this);
  12256. }));
  12257. function refreshUserInfo() {
  12258. return _refreshUserInfo.apply(this, arguments);
  12259. }
  12260. return refreshUserInfo;
  12261. }()
  12262. }, {
  12263. key: "setLocalUserInfo",
  12264. value: function setLocalUserInfo(e) {
  12265. var t = this._cache.keys.userInfoKey;
  12266. this._cache.setStore(t, e);
  12267. }
  12268. }]);
  12269. return Xe;
  12270. }();
  12271. var Ze = /*#__PURE__*/function () {
  12272. function Ze(e) {
  12273. (0, _classCallCheck2.default)(this, Ze);
  12274. if (!e) throw new te({
  12275. code: "PARAM_ERROR",
  12276. message: "envId is not defined"
  12277. });
  12278. this._envId = e, this._cache = Le(this._envId), this._request = Qe(this._envId), this.setUserInfo();
  12279. }
  12280. (0, _createClass2.default)(Ze, [{
  12281. key: "linkWithTicket",
  12282. value: function linkWithTicket(e) {
  12283. if ("string" != typeof e) throw new te({
  12284. code: "PARAM_ERROR",
  12285. message: "ticket must be string"
  12286. });
  12287. return this._request.send("auth.linkWithTicket", {
  12288. ticket: e
  12289. });
  12290. }
  12291. }, {
  12292. key: "linkWithRedirect",
  12293. value: function linkWithRedirect(e) {
  12294. e.signInWithRedirect();
  12295. }
  12296. }, {
  12297. key: "updatePassword",
  12298. value: function updatePassword(e, t) {
  12299. return this._request.send("auth.updatePassword", {
  12300. oldPassword: t,
  12301. newPassword: e
  12302. });
  12303. }
  12304. }, {
  12305. key: "updateEmail",
  12306. value: function updateEmail(e) {
  12307. return this._request.send("auth.updateEmail", {
  12308. newEmail: e
  12309. });
  12310. }
  12311. }, {
  12312. key: "updateUsername",
  12313. value: function updateUsername(e) {
  12314. if ("string" != typeof e) throw new te({
  12315. code: "PARAM_ERROR",
  12316. message: "username must be a string"
  12317. });
  12318. return this._request.send("auth.updateUsername", {
  12319. username: e
  12320. });
  12321. }
  12322. }, {
  12323. key: "getLinkedUidList",
  12324. value: function () {
  12325. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
  12326. var _yield$this$_request$2, e, t, n;
  12327. return _regenerator.default.wrap(function _callee13$(_context13) {
  12328. while (1) {
  12329. switch (_context13.prev = _context13.next) {
  12330. case 0:
  12331. _context13.next = 2;
  12332. return this._request.send("auth.getLinkedUidList", {});
  12333. case 2:
  12334. _yield$this$_request$2 = _context13.sent;
  12335. e = _yield$this$_request$2.data;
  12336. t = !1;
  12337. n = e.users;
  12338. return _context13.abrupt("return", (n.forEach(function (e) {
  12339. e.wxOpenId && e.wxPublicId && (t = !0);
  12340. }), {
  12341. users: n,
  12342. hasPrimaryUid: t
  12343. }));
  12344. case 7:
  12345. case "end":
  12346. return _context13.stop();
  12347. }
  12348. }
  12349. }, _callee13, this);
  12350. }));
  12351. function getLinkedUidList() {
  12352. return _getLinkedUidList.apply(this, arguments);
  12353. }
  12354. return getLinkedUidList;
  12355. }()
  12356. }, {
  12357. key: "setPrimaryUid",
  12358. value: function setPrimaryUid(e) {
  12359. return this._request.send("auth.setPrimaryUid", {
  12360. uid: e
  12361. });
  12362. }
  12363. }, {
  12364. key: "unlink",
  12365. value: function unlink(e) {
  12366. return this._request.send("auth.unlink", {
  12367. platform: e
  12368. });
  12369. }
  12370. }, {
  12371. key: "update",
  12372. value: function () {
  12373. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {
  12374. var t, n, s, r, i, o, _yield$this$_request$3, a;
  12375. return _regenerator.default.wrap(function _callee14$(_context14) {
  12376. while (1) {
  12377. switch (_context14.prev = _context14.next) {
  12378. case 0:
  12379. t = e.nickName;
  12380. n = e.gender;
  12381. s = e.avatarUrl;
  12382. r = e.province;
  12383. i = e.country;
  12384. o = e.city;
  12385. _context14.next = 8;
  12386. return this._request.send("auth.updateUserInfo", {
  12387. nickName: t,
  12388. gender: n,
  12389. avatarUrl: s,
  12390. province: r,
  12391. country: i,
  12392. city: o
  12393. });
  12394. case 8:
  12395. _yield$this$_request$3 = _context14.sent;
  12396. a = _yield$this$_request$3.data;
  12397. this.setLocalUserInfo(a);
  12398. case 11:
  12399. case "end":
  12400. return _context14.stop();
  12401. }
  12402. }
  12403. }, _callee14, this);
  12404. }));
  12405. function update(_x9) {
  12406. return _update.apply(this, arguments);
  12407. }
  12408. return update;
  12409. }()
  12410. }, {
  12411. key: "refresh",
  12412. value: function () {
  12413. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  12414. var _yield$this$_request$4, e;
  12415. return _regenerator.default.wrap(function _callee15$(_context15) {
  12416. while (1) {
  12417. switch (_context15.prev = _context15.next) {
  12418. case 0:
  12419. _context15.next = 2;
  12420. return this._request.send("auth.getUserInfo", {});
  12421. case 2:
  12422. _yield$this$_request$4 = _context15.sent;
  12423. e = _yield$this$_request$4.data;
  12424. return _context15.abrupt("return", (this.setLocalUserInfo(e), e));
  12425. case 5:
  12426. case "end":
  12427. return _context15.stop();
  12428. }
  12429. }
  12430. }, _callee15, this);
  12431. }));
  12432. function refresh() {
  12433. return _refresh.apply(this, arguments);
  12434. }
  12435. return refresh;
  12436. }()
  12437. }, {
  12438. key: "setUserInfo",
  12439. value: function setUserInfo() {
  12440. var _this8 = this;
  12441. var e = this._cache.keys.userInfoKey,
  12442. t = this._cache.getStore(e);
  12443. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  12444. _this8[e] = t[e];
  12445. }), this.location = {
  12446. country: t.country,
  12447. province: t.province,
  12448. city: t.city
  12449. };
  12450. }
  12451. }, {
  12452. key: "setLocalUserInfo",
  12453. value: function setLocalUserInfo(e) {
  12454. var t = this._cache.keys.userInfoKey;
  12455. this._cache.setStore(t, e), this.setUserInfo();
  12456. }
  12457. }]);
  12458. return Ze;
  12459. }();
  12460. var et = /*#__PURE__*/function () {
  12461. function et(e) {
  12462. (0, _classCallCheck2.default)(this, et);
  12463. if (!e) throw new te({
  12464. code: "PARAM_ERROR",
  12465. message: "envId is not defined"
  12466. });
  12467. this._cache = Le(e);
  12468. var _this$_cache$keys6 = this._cache.keys,
  12469. t = _this$_cache$keys6.refreshTokenKey,
  12470. n = _this$_cache$keys6.accessTokenKey,
  12471. s = _this$_cache$keys6.accessTokenExpireKey,
  12472. r = this._cache.getStore(t),
  12473. i = this._cache.getStore(n),
  12474. o = this._cache.getStore(s);
  12475. this.credential = {
  12476. refreshToken: r,
  12477. accessToken: i,
  12478. accessTokenExpire: o
  12479. }, this.user = new Ze(e);
  12480. }
  12481. (0, _createClass2.default)(et, [{
  12482. key: "isAnonymousAuth",
  12483. get: function get() {
  12484. return this.loginType === We.ANONYMOUS;
  12485. }
  12486. }, {
  12487. key: "isCustomAuth",
  12488. get: function get() {
  12489. return this.loginType === We.CUSTOM;
  12490. }
  12491. }, {
  12492. key: "isWeixinAuth",
  12493. get: function get() {
  12494. return this.loginType === We.WECHAT || this.loginType === We.WECHAT_OPEN || this.loginType === We.WECHAT_PUBLIC;
  12495. }
  12496. }, {
  12497. key: "loginType",
  12498. get: function get() {
  12499. return this._cache.getStore(this._cache.keys.loginTypeKey);
  12500. }
  12501. }]);
  12502. return et;
  12503. }();
  12504. var tt = /*#__PURE__*/function (_Xe) {
  12505. (0, _inherits2.default)(tt, _Xe);
  12506. var _super4 = _createSuper(tt);
  12507. function tt() {
  12508. (0, _classCallCheck2.default)(this, tt);
  12509. return _super4.apply(this, arguments);
  12510. }
  12511. (0, _createClass2.default)(tt, [{
  12512. key: "signIn",
  12513. value: function () {
  12514. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
  12515. var _this$_cache$keys7, e, t, n, s, r, _e16;
  12516. return _regenerator.default.wrap(function _callee16$(_context16) {
  12517. while (1) {
  12518. switch (_context16.prev = _context16.next) {
  12519. case 0:
  12520. this._cache.updatePersistence("local");
  12521. _this$_cache$keys7 = this._cache.keys;
  12522. e = _this$_cache$keys7.anonymousUuidKey;
  12523. t = _this$_cache$keys7.refreshTokenKey;
  12524. n = this._cache.getStore(e) || void 0;
  12525. s = this._cache.getStore(t) || void 0;
  12526. _context16.next = 8;
  12527. return this._request.send("auth.signInAnonymously", {
  12528. anonymous_uuid: n,
  12529. refresh_token: s
  12530. });
  12531. case 8:
  12532. r = _context16.sent;
  12533. if (!(r.uuid && r.refresh_token)) {
  12534. _context16.next = 20;
  12535. break;
  12536. }
  12537. this._setAnonymousUUID(r.uuid);
  12538. this.setRefreshToken(r.refresh_token);
  12539. _context16.next = 14;
  12540. return this._request.refreshAccessToken();
  12541. case 14:
  12542. qe(Fe);
  12543. qe(je, {
  12544. env: this.config.env,
  12545. loginType: We.ANONYMOUS,
  12546. persistence: "local"
  12547. });
  12548. _e16 = new et(this.config.env);
  12549. _context16.next = 19;
  12550. return _e16.user.refresh();
  12551. case 19:
  12552. return _context16.abrupt("return", _e16);
  12553. case 20:
  12554. throw new te({
  12555. message: "匿名登录失败"
  12556. });
  12557. case 21:
  12558. case "end":
  12559. return _context16.stop();
  12560. }
  12561. }
  12562. }, _callee16, this);
  12563. }));
  12564. function signIn() {
  12565. return _signIn.apply(this, arguments);
  12566. }
  12567. return signIn;
  12568. }()
  12569. }, {
  12570. key: "linkAndRetrieveDataWithTicket",
  12571. value: function () {
  12572. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  12573. var _this$_cache$keys8, t, n, s, r, i;
  12574. return _regenerator.default.wrap(function _callee17$(_context17) {
  12575. while (1) {
  12576. switch (_context17.prev = _context17.next) {
  12577. case 0:
  12578. _this$_cache$keys8 = this._cache.keys;
  12579. t = _this$_cache$keys8.anonymousUuidKey;
  12580. n = _this$_cache$keys8.refreshTokenKey;
  12581. s = this._cache.getStore(t);
  12582. r = this._cache.getStore(n);
  12583. _context17.next = 7;
  12584. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  12585. anonymous_uuid: s,
  12586. refresh_token: r,
  12587. ticket: e
  12588. });
  12589. case 7:
  12590. i = _context17.sent;
  12591. if (!i.refresh_token) {
  12592. _context17.next = 16;
  12593. break;
  12594. }
  12595. this._clearAnonymousUUID();
  12596. this.setRefreshToken(i.refresh_token);
  12597. _context17.next = 13;
  12598. return this._request.refreshAccessToken();
  12599. case 13:
  12600. qe($e, {
  12601. env: this.config.env
  12602. });
  12603. qe(je, {
  12604. loginType: We.CUSTOM,
  12605. persistence: "local"
  12606. });
  12607. return _context17.abrupt("return", {
  12608. credential: {
  12609. refreshToken: i.refresh_token
  12610. }
  12611. });
  12612. case 16:
  12613. throw new te({
  12614. message: "匿名转化失败"
  12615. });
  12616. case 17:
  12617. case "end":
  12618. return _context17.stop();
  12619. }
  12620. }
  12621. }, _callee17, this);
  12622. }));
  12623. function linkAndRetrieveDataWithTicket(_x10) {
  12624. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  12625. }
  12626. return linkAndRetrieveDataWithTicket;
  12627. }()
  12628. }, {
  12629. key: "_setAnonymousUUID",
  12630. value: function _setAnonymousUUID(e) {
  12631. var _this$_cache$keys9 = this._cache.keys,
  12632. t = _this$_cache$keys9.anonymousUuidKey,
  12633. n = _this$_cache$keys9.loginTypeKey;
  12634. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, We.ANONYMOUS);
  12635. }
  12636. }, {
  12637. key: "_clearAnonymousUUID",
  12638. value: function _clearAnonymousUUID() {
  12639. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  12640. }
  12641. }]);
  12642. return tt;
  12643. }(Xe);
  12644. var nt = /*#__PURE__*/function (_Xe2) {
  12645. (0, _inherits2.default)(nt, _Xe2);
  12646. var _super5 = _createSuper(nt);
  12647. function nt() {
  12648. (0, _classCallCheck2.default)(this, nt);
  12649. return _super5.apply(this, arguments);
  12650. }
  12651. (0, _createClass2.default)(nt, [{
  12652. key: "signIn",
  12653. value: function () {
  12654. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e) {
  12655. var t, n;
  12656. return _regenerator.default.wrap(function _callee18$(_context18) {
  12657. while (1) {
  12658. switch (_context18.prev = _context18.next) {
  12659. case 0:
  12660. if (!("string" != typeof e)) {
  12661. _context18.next = 2;
  12662. break;
  12663. }
  12664. throw new te({
  12665. code: "PARAM_ERROR",
  12666. message: "ticket must be a string"
  12667. });
  12668. case 2:
  12669. t = this._cache.keys.refreshTokenKey;
  12670. _context18.next = 5;
  12671. return this._request.send("auth.signInWithTicket", {
  12672. ticket: e,
  12673. refresh_token: this._cache.getStore(t) || ""
  12674. });
  12675. case 5:
  12676. n = _context18.sent;
  12677. if (!n.refresh_token) {
  12678. _context18.next = 15;
  12679. break;
  12680. }
  12681. this.setRefreshToken(n.refresh_token);
  12682. _context18.next = 10;
  12683. return this._request.refreshAccessToken();
  12684. case 10:
  12685. qe(Fe);
  12686. qe(je, {
  12687. env: this.config.env,
  12688. loginType: We.CUSTOM,
  12689. persistence: this.config.persistence
  12690. });
  12691. _context18.next = 14;
  12692. return this.refreshUserInfo();
  12693. case 14:
  12694. return _context18.abrupt("return", new et(this.config.env));
  12695. case 15:
  12696. throw new te({
  12697. message: "自定义登录失败"
  12698. });
  12699. case 16:
  12700. case "end":
  12701. return _context18.stop();
  12702. }
  12703. }
  12704. }, _callee18, this);
  12705. }));
  12706. function signIn(_x11) {
  12707. return _signIn2.apply(this, arguments);
  12708. }
  12709. return signIn;
  12710. }()
  12711. }]);
  12712. return nt;
  12713. }(Xe);
  12714. var st = /*#__PURE__*/function (_Xe3) {
  12715. (0, _inherits2.default)(st, _Xe3);
  12716. var _super6 = _createSuper(st);
  12717. function st() {
  12718. (0, _classCallCheck2.default)(this, st);
  12719. return _super6.apply(this, arguments);
  12720. }
  12721. (0, _createClass2.default)(st, [{
  12722. key: "signIn",
  12723. value: function () {
  12724. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {
  12725. var n, s, r, i, o;
  12726. return _regenerator.default.wrap(function _callee19$(_context19) {
  12727. while (1) {
  12728. switch (_context19.prev = _context19.next) {
  12729. case 0:
  12730. if (!("string" != typeof e)) {
  12731. _context19.next = 2;
  12732. break;
  12733. }
  12734. throw new te({
  12735. code: "PARAM_ERROR",
  12736. message: "email must be a string"
  12737. });
  12738. case 2:
  12739. n = this._cache.keys.refreshTokenKey;
  12740. _context19.next = 5;
  12741. return this._request.send("auth.signIn", {
  12742. loginType: "EMAIL",
  12743. email: e,
  12744. password: t,
  12745. refresh_token: this._cache.getStore(n) || ""
  12746. });
  12747. case 5:
  12748. s = _context19.sent;
  12749. r = s.refresh_token;
  12750. i = s.access_token;
  12751. o = s.access_token_expire;
  12752. if (!r) {
  12753. _context19.next = 22;
  12754. break;
  12755. }
  12756. this.setRefreshToken(r);
  12757. if (!(i && o)) {
  12758. _context19.next = 15;
  12759. break;
  12760. }
  12761. this.setAccessToken(i, o);
  12762. _context19.next = 17;
  12763. break;
  12764. case 15:
  12765. _context19.next = 17;
  12766. return this._request.refreshAccessToken();
  12767. case 17:
  12768. _context19.next = 19;
  12769. return this.refreshUserInfo();
  12770. case 19:
  12771. qe(Fe);
  12772. qe(je, {
  12773. env: this.config.env,
  12774. loginType: We.EMAIL,
  12775. persistence: this.config.persistence
  12776. });
  12777. return _context19.abrupt("return", new et(this.config.env));
  12778. case 22:
  12779. throw s.code ? new te({
  12780. code: s.code,
  12781. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  12782. }) : new te({
  12783. message: "邮箱登录失败"
  12784. });
  12785. case 23:
  12786. case "end":
  12787. return _context19.stop();
  12788. }
  12789. }
  12790. }, _callee19, this);
  12791. }));
  12792. function signIn(_x12, _x13) {
  12793. return _signIn3.apply(this, arguments);
  12794. }
  12795. return signIn;
  12796. }()
  12797. }, {
  12798. key: "activate",
  12799. value: function () {
  12800. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e) {
  12801. return _regenerator.default.wrap(function _callee20$(_context20) {
  12802. while (1) {
  12803. switch (_context20.prev = _context20.next) {
  12804. case 0:
  12805. return _context20.abrupt("return", this._request.send("auth.activateEndUserMail", {
  12806. token: e
  12807. }));
  12808. case 1:
  12809. case "end":
  12810. return _context20.stop();
  12811. }
  12812. }
  12813. }, _callee20, this);
  12814. }));
  12815. function activate(_x14) {
  12816. return _activate.apply(this, arguments);
  12817. }
  12818. return activate;
  12819. }()
  12820. }, {
  12821. key: "resetPasswordWithToken",
  12822. value: function () {
  12823. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  12824. return _regenerator.default.wrap(function _callee21$(_context21) {
  12825. while (1) {
  12826. switch (_context21.prev = _context21.next) {
  12827. case 0:
  12828. return _context21.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  12829. token: e,
  12830. newPassword: t
  12831. }));
  12832. case 1:
  12833. case "end":
  12834. return _context21.stop();
  12835. }
  12836. }
  12837. }, _callee21, this);
  12838. }));
  12839. function resetPasswordWithToken(_x15, _x16) {
  12840. return _resetPasswordWithToken.apply(this, arguments);
  12841. }
  12842. return resetPasswordWithToken;
  12843. }()
  12844. }]);
  12845. return st;
  12846. }(Xe);
  12847. var rt = /*#__PURE__*/function (_Xe4) {
  12848. (0, _inherits2.default)(rt, _Xe4);
  12849. var _super7 = _createSuper(rt);
  12850. function rt() {
  12851. (0, _classCallCheck2.default)(this, rt);
  12852. return _super7.apply(this, arguments);
  12853. }
  12854. (0, _createClass2.default)(rt, [{
  12855. key: "signIn",
  12856. value: function () {
  12857. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(e, t) {
  12858. var n, s, r, i, o;
  12859. return _regenerator.default.wrap(function _callee22$(_context22) {
  12860. while (1) {
  12861. switch (_context22.prev = _context22.next) {
  12862. case 0:
  12863. if (!("string" != typeof e)) {
  12864. _context22.next = 2;
  12865. break;
  12866. }
  12867. throw new te({
  12868. code: "PARAM_ERROR",
  12869. message: "username must be a string"
  12870. });
  12871. case 2:
  12872. "string" != typeof t && (t = "", console.warn("password is empty"));
  12873. n = this._cache.keys.refreshTokenKey;
  12874. _context22.next = 6;
  12875. return this._request.send("auth.signIn", {
  12876. loginType: We.USERNAME,
  12877. username: e,
  12878. password: t,
  12879. refresh_token: this._cache.getStore(n) || ""
  12880. });
  12881. case 6:
  12882. s = _context22.sent;
  12883. r = s.refresh_token;
  12884. i = s.access_token_expire;
  12885. o = s.access_token;
  12886. if (!r) {
  12887. _context22.next = 23;
  12888. break;
  12889. }
  12890. this.setRefreshToken(r);
  12891. if (!(o && i)) {
  12892. _context22.next = 16;
  12893. break;
  12894. }
  12895. this.setAccessToken(o, i);
  12896. _context22.next = 18;
  12897. break;
  12898. case 16:
  12899. _context22.next = 18;
  12900. return this._request.refreshAccessToken();
  12901. case 18:
  12902. _context22.next = 20;
  12903. return this.refreshUserInfo();
  12904. case 20:
  12905. qe(Fe);
  12906. qe(je, {
  12907. env: this.config.env,
  12908. loginType: We.USERNAME,
  12909. persistence: this.config.persistence
  12910. });
  12911. return _context22.abrupt("return", new et(this.config.env));
  12912. case 23:
  12913. throw s.code ? new te({
  12914. code: s.code,
  12915. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  12916. }) : new te({
  12917. message: "用户名密码登录失败"
  12918. });
  12919. case 24:
  12920. case "end":
  12921. return _context22.stop();
  12922. }
  12923. }
  12924. }, _callee22, this);
  12925. }));
  12926. function signIn(_x17, _x18) {
  12927. return _signIn4.apply(this, arguments);
  12928. }
  12929. return signIn;
  12930. }()
  12931. }]);
  12932. return rt;
  12933. }(Xe);
  12934. var it = /*#__PURE__*/function () {
  12935. function it(e) {
  12936. (0, _classCallCheck2.default)(this, it);
  12937. this.config = e, this._cache = Le(e.env), this._request = Qe(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), De(je, this._onLoginTypeChanged);
  12938. }
  12939. (0, _createClass2.default)(it, [{
  12940. key: "currentUser",
  12941. get: function get() {
  12942. var e = this.hasLoginState();
  12943. return e && e.user || null;
  12944. }
  12945. }, {
  12946. key: "loginType",
  12947. get: function get() {
  12948. return this._cache.getStore(this._cache.keys.loginTypeKey);
  12949. }
  12950. }, {
  12951. key: "anonymousAuthProvider",
  12952. value: function anonymousAuthProvider() {
  12953. return new tt(this.config);
  12954. }
  12955. }, {
  12956. key: "customAuthProvider",
  12957. value: function customAuthProvider() {
  12958. return new nt(this.config);
  12959. }
  12960. }, {
  12961. key: "emailAuthProvider",
  12962. value: function emailAuthProvider() {
  12963. return new st(this.config);
  12964. }
  12965. }, {
  12966. key: "usernameAuthProvider",
  12967. value: function usernameAuthProvider() {
  12968. return new rt(this.config);
  12969. }
  12970. }, {
  12971. key: "signInAnonymously",
  12972. value: function () {
  12973. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23() {
  12974. return _regenerator.default.wrap(function _callee23$(_context23) {
  12975. while (1) {
  12976. switch (_context23.prev = _context23.next) {
  12977. case 0:
  12978. return _context23.abrupt("return", new tt(this.config).signIn());
  12979. case 1:
  12980. case "end":
  12981. return _context23.stop();
  12982. }
  12983. }
  12984. }, _callee23, this);
  12985. }));
  12986. function signInAnonymously() {
  12987. return _signInAnonymously.apply(this, arguments);
  12988. }
  12989. return signInAnonymously;
  12990. }()
  12991. }, {
  12992. key: "signInWithEmailAndPassword",
  12993. value: function () {
  12994. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {
  12995. return _regenerator.default.wrap(function _callee24$(_context24) {
  12996. while (1) {
  12997. switch (_context24.prev = _context24.next) {
  12998. case 0:
  12999. return _context24.abrupt("return", new st(this.config).signIn(e, t));
  13000. case 1:
  13001. case "end":
  13002. return _context24.stop();
  13003. }
  13004. }
  13005. }, _callee24, this);
  13006. }));
  13007. function signInWithEmailAndPassword(_x19, _x20) {
  13008. return _signInWithEmailAndPassword.apply(this, arguments);
  13009. }
  13010. return signInWithEmailAndPassword;
  13011. }()
  13012. }, {
  13013. key: "signInWithUsernameAndPassword",
  13014. value: function signInWithUsernameAndPassword(e, t) {
  13015. return new rt(this.config).signIn(e, t);
  13016. }
  13017. }, {
  13018. key: "linkAndRetrieveDataWithTicket",
  13019. value: function () {
  13020. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {
  13021. return _regenerator.default.wrap(function _callee25$(_context25) {
  13022. while (1) {
  13023. switch (_context25.prev = _context25.next) {
  13024. case 0:
  13025. this._anonymousAuthProvider || (this._anonymousAuthProvider = new tt(this.config)), De($e, this._onAnonymousConverted);
  13026. _context25.next = 3;
  13027. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  13028. case 3:
  13029. return _context25.abrupt("return", _context25.sent);
  13030. case 4:
  13031. case "end":
  13032. return _context25.stop();
  13033. }
  13034. }
  13035. }, _callee25, this);
  13036. }));
  13037. function linkAndRetrieveDataWithTicket(_x21) {
  13038. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  13039. }
  13040. return linkAndRetrieveDataWithTicket;
  13041. }()
  13042. }, {
  13043. key: "signOut",
  13044. value: function () {
  13045. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26() {
  13046. var _this$_cache$keys10, e, t, n, s, r;
  13047. return _regenerator.default.wrap(function _callee26$(_context26) {
  13048. while (1) {
  13049. switch (_context26.prev = _context26.next) {
  13050. case 0:
  13051. if (!(this.loginType === We.ANONYMOUS)) {
  13052. _context26.next = 2;
  13053. break;
  13054. }
  13055. throw new te({
  13056. message: "匿名用户不支持登出操作"
  13057. });
  13058. case 2:
  13059. _this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);
  13060. if (s) {
  13061. _context26.next = 5;
  13062. break;
  13063. }
  13064. return _context26.abrupt("return");
  13065. case 5:
  13066. _context26.next = 7;
  13067. return this._request.send("auth.logout", {
  13068. refresh_token: s
  13069. });
  13070. case 7:
  13071. r = _context26.sent;
  13072. return _context26.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), qe(Fe), qe(je, {
  13073. env: this.config.env,
  13074. loginType: We.NULL,
  13075. persistence: this.config.persistence
  13076. }), r));
  13077. case 9:
  13078. case "end":
  13079. return _context26.stop();
  13080. }
  13081. }
  13082. }, _callee26, this);
  13083. }));
  13084. function signOut() {
  13085. return _signOut.apply(this, arguments);
  13086. }
  13087. return signOut;
  13088. }()
  13089. }, {
  13090. key: "signUpWithEmailAndPassword",
  13091. value: function () {
  13092. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e, t) {
  13093. return _regenerator.default.wrap(function _callee27$(_context27) {
  13094. while (1) {
  13095. switch (_context27.prev = _context27.next) {
  13096. case 0:
  13097. return _context27.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  13098. email: e,
  13099. password: t
  13100. }));
  13101. case 1:
  13102. case "end":
  13103. return _context27.stop();
  13104. }
  13105. }
  13106. }, _callee27, this);
  13107. }));
  13108. function signUpWithEmailAndPassword(_x22, _x23) {
  13109. return _signUpWithEmailAndPassword.apply(this, arguments);
  13110. }
  13111. return signUpWithEmailAndPassword;
  13112. }()
  13113. }, {
  13114. key: "sendPasswordResetEmail",
  13115. value: function () {
  13116. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {
  13117. return _regenerator.default.wrap(function _callee28$(_context28) {
  13118. while (1) {
  13119. switch (_context28.prev = _context28.next) {
  13120. case 0:
  13121. return _context28.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  13122. email: e
  13123. }));
  13124. case 1:
  13125. case "end":
  13126. return _context28.stop();
  13127. }
  13128. }
  13129. }, _callee28, this);
  13130. }));
  13131. function sendPasswordResetEmail(_x24) {
  13132. return _sendPasswordResetEmail.apply(this, arguments);
  13133. }
  13134. return sendPasswordResetEmail;
  13135. }()
  13136. }, {
  13137. key: "onLoginStateChanged",
  13138. value: function onLoginStateChanged(e) {
  13139. var _this9 = this;
  13140. De(Fe, function () {
  13141. var t = _this9.hasLoginState();
  13142. e.call(_this9, t);
  13143. });
  13144. var t = this.hasLoginState();
  13145. e.call(this, t);
  13146. }
  13147. }, {
  13148. key: "onLoginStateExpired",
  13149. value: function onLoginStateExpired(e) {
  13150. De(Ke, e.bind(this));
  13151. }
  13152. }, {
  13153. key: "onAccessTokenRefreshed",
  13154. value: function onAccessTokenRefreshed(e) {
  13155. De(Be, e.bind(this));
  13156. }
  13157. }, {
  13158. key: "onAnonymousConverted",
  13159. value: function onAnonymousConverted(e) {
  13160. De($e, e.bind(this));
  13161. }
  13162. }, {
  13163. key: "onLoginTypeChanged",
  13164. value: function onLoginTypeChanged(e) {
  13165. var _this10 = this;
  13166. De(je, function () {
  13167. var t = _this10.hasLoginState();
  13168. e.call(_this10, t);
  13169. });
  13170. }
  13171. }, {
  13172. key: "getAccessToken",
  13173. value: function () {
  13174. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29() {
  13175. return _regenerator.default.wrap(function _callee29$(_context29) {
  13176. while (1) {
  13177. switch (_context29.prev = _context29.next) {
  13178. case 0:
  13179. _context29.next = 2;
  13180. return this._request.getAccessToken();
  13181. case 2:
  13182. _context29.t0 = _context29.sent.accessToken;
  13183. _context29.t1 = this.config.env;
  13184. return _context29.abrupt("return", {
  13185. accessToken: _context29.t0,
  13186. env: _context29.t1
  13187. });
  13188. case 5:
  13189. case "end":
  13190. return _context29.stop();
  13191. }
  13192. }
  13193. }, _callee29, this);
  13194. }));
  13195. function getAccessToken() {
  13196. return _getAccessToken2.apply(this, arguments);
  13197. }
  13198. return getAccessToken;
  13199. }()
  13200. }, {
  13201. key: "hasLoginState",
  13202. value: function hasLoginState() {
  13203. var e = this._cache.keys.refreshTokenKey;
  13204. return this._cache.getStore(e) ? new et(this.config.env) : null;
  13205. }
  13206. }, {
  13207. key: "isUsernameRegistered",
  13208. value: function () {
  13209. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  13210. var _yield$this$_request$5, t;
  13211. return _regenerator.default.wrap(function _callee30$(_context30) {
  13212. while (1) {
  13213. switch (_context30.prev = _context30.next) {
  13214. case 0:
  13215. if (!("string" != typeof e)) {
  13216. _context30.next = 2;
  13217. break;
  13218. }
  13219. throw new te({
  13220. code: "PARAM_ERROR",
  13221. message: "username must be a string"
  13222. });
  13223. case 2:
  13224. _context30.next = 4;
  13225. return this._request.send("auth.isUsernameRegistered", {
  13226. username: e
  13227. });
  13228. case 4:
  13229. _yield$this$_request$5 = _context30.sent;
  13230. t = _yield$this$_request$5.data;
  13231. return _context30.abrupt("return", t && t.isRegistered);
  13232. case 7:
  13233. case "end":
  13234. return _context30.stop();
  13235. }
  13236. }
  13237. }, _callee30, this);
  13238. }));
  13239. function isUsernameRegistered(_x25) {
  13240. return _isUsernameRegistered.apply(this, arguments);
  13241. }
  13242. return isUsernameRegistered;
  13243. }()
  13244. }, {
  13245. key: "getLoginState",
  13246. value: function getLoginState() {
  13247. return Promise.resolve(this.hasLoginState());
  13248. }
  13249. }, {
  13250. key: "signInWithTicket",
  13251. value: function () {
  13252. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(e) {
  13253. return _regenerator.default.wrap(function _callee31$(_context31) {
  13254. while (1) {
  13255. switch (_context31.prev = _context31.next) {
  13256. case 0:
  13257. return _context31.abrupt("return", new nt(this.config).signIn(e));
  13258. case 1:
  13259. case "end":
  13260. return _context31.stop();
  13261. }
  13262. }
  13263. }, _callee31, this);
  13264. }));
  13265. function signInWithTicket(_x26) {
  13266. return _signInWithTicket.apply(this, arguments);
  13267. }
  13268. return signInWithTicket;
  13269. }()
  13270. }, {
  13271. key: "shouldRefreshAccessToken",
  13272. value: function shouldRefreshAccessToken(e) {
  13273. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  13274. }
  13275. }, {
  13276. key: "getUserInfo",
  13277. value: function getUserInfo() {
  13278. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  13279. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  13280. requestId: e.seqId
  13281. });
  13282. });
  13283. }
  13284. }, {
  13285. key: "getAuthHeader",
  13286. value: function getAuthHeader() {
  13287. var _this$_cache$keys11 = this._cache.keys,
  13288. e = _this$_cache$keys11.refreshTokenKey,
  13289. t = _this$_cache$keys11.accessTokenKey,
  13290. n = this._cache.getStore(e);
  13291. return {
  13292. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  13293. };
  13294. }
  13295. }, {
  13296. key: "_onAnonymousConverted",
  13297. value: function _onAnonymousConverted(e) {
  13298. var t = e.data.env;
  13299. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  13300. }
  13301. }, {
  13302. key: "_onLoginTypeChanged",
  13303. value: function _onLoginTypeChanged(e) {
  13304. var _e$data = e.data,
  13305. t = _e$data.loginType,
  13306. n = _e$data.persistence,
  13307. s = _e$data.env;
  13308. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  13309. }
  13310. }]);
  13311. return it;
  13312. }();
  13313. var ot = function ot(e, t) {
  13314. t = t || ve();
  13315. var n = Qe(this.config.env),
  13316. s = e.cloudPath,
  13317. r = e.filePath,
  13318. i = e.onUploadProgress,
  13319. _e$fileType = e.fileType,
  13320. o = _e$fileType === void 0 ? "image" : _e$fileType;
  13321. return n.send("storage.getUploadMetadata", {
  13322. path: s
  13323. }).then(function (e) {
  13324. var _e$data2 = e.data,
  13325. a = _e$data2.url,
  13326. c = _e$data2.authorization,
  13327. u = _e$data2.token,
  13328. l = _e$data2.fileId,
  13329. h = _e$data2.cosFileId,
  13330. d = e.requestId,
  13331. p = {
  13332. key: s,
  13333. signature: c,
  13334. "x-cos-meta-fileid": h,
  13335. success_action_status: "201",
  13336. "x-cos-security-token": u
  13337. };
  13338. n.upload({
  13339. url: a,
  13340. data: p,
  13341. file: r,
  13342. name: s,
  13343. fileType: o,
  13344. onUploadProgress: i
  13345. }).then(function (e) {
  13346. 201 === e.statusCode ? t(null, {
  13347. fileID: l,
  13348. requestId: d
  13349. }) : t(new te({
  13350. code: "STORAGE_REQUEST_FAIL",
  13351. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  13352. }));
  13353. }).catch(function (e) {
  13354. t(e);
  13355. });
  13356. }).catch(function (e) {
  13357. t(e);
  13358. }), t.promise;
  13359. },
  13360. at = function at(e, t) {
  13361. t = t || ve();
  13362. var n = Qe(this.config.env),
  13363. s = e.cloudPath;
  13364. return n.send("storage.getUploadMetadata", {
  13365. path: s
  13366. }).then(function (e) {
  13367. t(null, e);
  13368. }).catch(function (e) {
  13369. t(e);
  13370. }), t.promise;
  13371. },
  13372. ct = function ct(_ref7, t) {
  13373. var e = _ref7.fileList;
  13374. if (t = t || ve(), !e || !Array.isArray(e)) return {
  13375. code: "INVALID_PARAM",
  13376. message: "fileList必须是非空的数组"
  13377. };
  13378. var _iterator3 = _createForOfIteratorHelper(e),
  13379. _step3;
  13380. try {
  13381. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  13382. var _t8 = _step3.value;
  13383. if (!_t8 || "string" != typeof _t8) return {
  13384. code: "INVALID_PARAM",
  13385. message: "fileList的元素必须是非空的字符串"
  13386. };
  13387. }
  13388. } catch (err) {
  13389. _iterator3.e(err);
  13390. } finally {
  13391. _iterator3.f();
  13392. }
  13393. var n = {
  13394. fileid_list: e
  13395. };
  13396. return Qe(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  13397. e.code ? t(null, e) : t(null, {
  13398. fileList: e.data.delete_list,
  13399. requestId: e.requestId
  13400. });
  13401. }).catch(function (e) {
  13402. t(e);
  13403. }), t.promise;
  13404. },
  13405. ut = function ut(_ref8, t) {
  13406. var e = _ref8.fileList;
  13407. t = t || ve(), e && Array.isArray(e) || t(null, {
  13408. code: "INVALID_PARAM",
  13409. message: "fileList必须是非空的数组"
  13410. });
  13411. var n = [];
  13412. var _iterator4 = _createForOfIteratorHelper(e),
  13413. _step4;
  13414. try {
  13415. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  13416. var _s10 = _step4.value;
  13417. "object" == (0, _typeof2.default)(_s10) ? (_s10.hasOwnProperty("fileID") && _s10.hasOwnProperty("maxAge") || t(null, {
  13418. code: "INVALID_PARAM",
  13419. message: "fileList的元素必须是包含fileID和maxAge的对象"
  13420. }), n.push({
  13421. fileid: _s10.fileID,
  13422. max_age: _s10.maxAge
  13423. })) : "string" == typeof _s10 ? n.push({
  13424. fileid: _s10
  13425. }) : t(null, {
  13426. code: "INVALID_PARAM",
  13427. message: "fileList的元素必须是字符串"
  13428. });
  13429. }
  13430. } catch (err) {
  13431. _iterator4.e(err);
  13432. } finally {
  13433. _iterator4.f();
  13434. }
  13435. var s = {
  13436. file_list: n
  13437. };
  13438. return Qe(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  13439. e.code ? t(null, e) : t(null, {
  13440. fileList: e.data.download_list,
  13441. requestId: e.requestId
  13442. });
  13443. }).catch(function (e) {
  13444. t(e);
  13445. }), t.promise;
  13446. },
  13447. lt = /*#__PURE__*/function () {
  13448. var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(_ref9, t) {
  13449. var e, n, s, r;
  13450. return _regenerator.default.wrap(function _callee32$(_context32) {
  13451. while (1) {
  13452. switch (_context32.prev = _context32.next) {
  13453. case 0:
  13454. e = _ref9.fileID;
  13455. _context32.next = 3;
  13456. return ut.call(this, {
  13457. fileList: [{
  13458. fileID: e,
  13459. maxAge: 600
  13460. }]
  13461. });
  13462. case 3:
  13463. n = _context32.sent.fileList[0];
  13464. if (!("SUCCESS" !== n.code)) {
  13465. _context32.next = 6;
  13466. break;
  13467. }
  13468. return _context32.abrupt("return", t ? t(n) : new Promise(function (e) {
  13469. e(n);
  13470. }));
  13471. case 6:
  13472. s = Qe(this.config.env);
  13473. r = n.download_url;
  13474. if (!(r = encodeURI(r), !t)) {
  13475. _context32.next = 10;
  13476. break;
  13477. }
  13478. return _context32.abrupt("return", s.download({
  13479. url: r
  13480. }));
  13481. case 10:
  13482. _context32.t0 = t;
  13483. _context32.next = 13;
  13484. return s.download({
  13485. url: r
  13486. });
  13487. case 13:
  13488. _context32.t1 = _context32.sent;
  13489. (0, _context32.t0)(_context32.t1);
  13490. case 15:
  13491. case "end":
  13492. return _context32.stop();
  13493. }
  13494. }
  13495. }, _callee32, this);
  13496. }));
  13497. return function lt(_x27, _x28) {
  13498. return _ref10.apply(this, arguments);
  13499. };
  13500. }(),
  13501. ht = function ht(_ref11, o) {
  13502. var e = _ref11.name,
  13503. t = _ref11.data,
  13504. n = _ref11.query,
  13505. s = _ref11.parse,
  13506. r = _ref11.search,
  13507. i = _ref11.timeout;
  13508. var a = o || ve();
  13509. var c;
  13510. try {
  13511. c = t ? JSON.stringify(t) : "";
  13512. } catch (e) {
  13513. return Promise.reject(e);
  13514. }
  13515. if (!e) return Promise.reject(new te({
  13516. code: "PARAM_ERROR",
  13517. message: "函数名不能为空"
  13518. }));
  13519. var u = {
  13520. inQuery: n,
  13521. parse: s,
  13522. search: r,
  13523. function_name: e,
  13524. request_data: c
  13525. };
  13526. return Qe(this.config.env).send("functions.invokeFunction", u, {
  13527. timeout: i
  13528. }).then(function (e) {
  13529. if (e.code) a(null, e);else {
  13530. var _t9 = e.data.response_data;
  13531. if (s) a(null, {
  13532. result: _t9,
  13533. requestId: e.requestId
  13534. });else try {
  13535. _t9 = JSON.parse(e.data.response_data), a(null, {
  13536. result: _t9,
  13537. requestId: e.requestId
  13538. });
  13539. } catch (e) {
  13540. a(new te({
  13541. message: "response data must be json"
  13542. }));
  13543. }
  13544. }
  13545. return a.promise;
  13546. }).catch(function (e) {
  13547. a(e);
  13548. }), a.promise;
  13549. },
  13550. dt = {
  13551. timeout: 15e3,
  13552. persistence: "session"
  13553. },
  13554. pt = {};
  13555. var ft = /*#__PURE__*/function () {
  13556. function ft(e) {
  13557. (0, _classCallCheck2.default)(this, ft);
  13558. this.config = e || this.config, this.authObj = void 0;
  13559. }
  13560. (0, _createClass2.default)(ft, [{
  13561. key: "init",
  13562. value: function init(e) {
  13563. switch (Ae.adapter || (this.requestClient = new Ae.adapter.reqClass({
  13564. timeout: e.timeout || 5e3,
  13565. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  13566. })), this.config = _objectSpread(_objectSpread({}, dt), e), !0) {
  13567. case this.config.timeout > 6e5:
  13568. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  13569. break;
  13570. case this.config.timeout < 100:
  13571. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  13572. }
  13573. return new ft(this.config);
  13574. }
  13575. }, {
  13576. key: "auth",
  13577. value: function auth() {
  13578. var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  13579. e = _ref12.persistence;
  13580. if (this.authObj) return this.authObj;
  13581. var t = e || Ae.adapter.primaryStorage || dt.persistence;
  13582. var n;
  13583. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  13584. var t = e.env;
  13585. Oe[t] = new xe(e), Ee[t] = new xe(_objectSpread(_objectSpread({}, e), {}, {
  13586. persistence: "local"
  13587. }));
  13588. }(this.config), n = this.config, Ye[n.env] = new Ge(n), this.authObj = new it(this.config), this.authObj;
  13589. }
  13590. }, {
  13591. key: "on",
  13592. value: function on(e, t) {
  13593. return De.apply(this, [e, t]);
  13594. }
  13595. }, {
  13596. key: "off",
  13597. value: function off(e, t) {
  13598. return Me.apply(this, [e, t]);
  13599. }
  13600. }, {
  13601. key: "callFunction",
  13602. value: function callFunction(e, t) {
  13603. return ht.apply(this, [e, t]);
  13604. }
  13605. }, {
  13606. key: "deleteFile",
  13607. value: function deleteFile(e, t) {
  13608. return ct.apply(this, [e, t]);
  13609. }
  13610. }, {
  13611. key: "getTempFileURL",
  13612. value: function getTempFileURL(e, t) {
  13613. return ut.apply(this, [e, t]);
  13614. }
  13615. }, {
  13616. key: "downloadFile",
  13617. value: function downloadFile(e, t) {
  13618. return lt.apply(this, [e, t]);
  13619. }
  13620. }, {
  13621. key: "uploadFile",
  13622. value: function uploadFile(e, t) {
  13623. return ot.apply(this, [e, t]);
  13624. }
  13625. }, {
  13626. key: "getUploadMetadata",
  13627. value: function getUploadMetadata(e, t) {
  13628. return at.apply(this, [e, t]);
  13629. }
  13630. }, {
  13631. key: "registerExtension",
  13632. value: function registerExtension(e) {
  13633. pt[e.name] = e;
  13634. }
  13635. }, {
  13636. key: "invokeExtension",
  13637. value: function () {
  13638. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {
  13639. var n;
  13640. return _regenerator.default.wrap(function _callee33$(_context33) {
  13641. while (1) {
  13642. switch (_context33.prev = _context33.next) {
  13643. case 0:
  13644. n = pt[e];
  13645. if (n) {
  13646. _context33.next = 3;
  13647. break;
  13648. }
  13649. throw new te({
  13650. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  13651. });
  13652. case 3:
  13653. _context33.next = 5;
  13654. return n.invoke(t, this);
  13655. case 5:
  13656. return _context33.abrupt("return", _context33.sent);
  13657. case 6:
  13658. case "end":
  13659. return _context33.stop();
  13660. }
  13661. }
  13662. }, _callee33, this);
  13663. }));
  13664. function invokeExtension(_x29, _x30) {
  13665. return _invokeExtension.apply(this, arguments);
  13666. }
  13667. return invokeExtension;
  13668. }()
  13669. }, {
  13670. key: "useAdapters",
  13671. value: function useAdapters(e) {
  13672. var _ref13 = ke(e) || {},
  13673. t = _ref13.adapter,
  13674. n = _ref13.runtime;
  13675. t && (Ae.adapter = t), n && (Ae.runtime = n);
  13676. }
  13677. }]);
  13678. return ft;
  13679. }();
  13680. var gt = new ft();
  13681. function mt(e, t, n) {
  13682. void 0 === n && (n = {});
  13683. var s = /\?/.test(t),
  13684. r = "";
  13685. for (var i in n) {
  13686. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  13687. }
  13688. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  13689. }
  13690. var yt = /*#__PURE__*/function () {
  13691. function yt() {
  13692. (0, _classCallCheck2.default)(this, yt);
  13693. }
  13694. (0, _createClass2.default)(yt, [{
  13695. key: "post",
  13696. value: function post(e) {
  13697. var t = e.url,
  13698. n = e.data,
  13699. s = e.headers,
  13700. r = e.timeout;
  13701. return new Promise(function (e, i) {
  13702. ne.request({
  13703. url: mt("https:", t),
  13704. data: n,
  13705. method: "POST",
  13706. header: s,
  13707. timeout: r,
  13708. success: function success(t) {
  13709. e(t);
  13710. },
  13711. fail: function fail(e) {
  13712. i(e);
  13713. }
  13714. });
  13715. });
  13716. }
  13717. }, {
  13718. key: "upload",
  13719. value: function upload(e) {
  13720. return new Promise(function (t, n) {
  13721. var s = e.url,
  13722. r = e.file,
  13723. i = e.data,
  13724. o = e.headers,
  13725. a = e.fileType,
  13726. c = ne.uploadFile({
  13727. url: mt("https:", s),
  13728. name: "file",
  13729. formData: Object.assign({}, i),
  13730. filePath: r,
  13731. fileType: a,
  13732. header: o,
  13733. success: function success(e) {
  13734. var n = {
  13735. statusCode: e.statusCode,
  13736. data: e.data || {}
  13737. };
  13738. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  13739. },
  13740. fail: function fail(e) {
  13741. n(new Error(e.errMsg || "uploadFile:fail"));
  13742. }
  13743. });
  13744. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  13745. e.onUploadProgress({
  13746. loaded: t.totalBytesSent,
  13747. total: t.totalBytesExpectedToSend
  13748. });
  13749. });
  13750. });
  13751. }
  13752. }]);
  13753. return yt;
  13754. }();
  13755. var _t = {
  13756. setItem: function setItem(e, t) {
  13757. ne.setStorageSync(e, t);
  13758. },
  13759. getItem: function getItem(e) {
  13760. return ne.getStorageSync(e);
  13761. },
  13762. removeItem: function removeItem(e) {
  13763. ne.removeStorageSync(e);
  13764. },
  13765. clear: function clear() {
  13766. ne.clearStorageSync();
  13767. }
  13768. };
  13769. var wt = {
  13770. genAdapter: function genAdapter() {
  13771. return {
  13772. root: {},
  13773. reqClass: yt,
  13774. localStorage: _t,
  13775. primaryStorage: "local"
  13776. };
  13777. },
  13778. isMatch: function isMatch() {
  13779. return !0;
  13780. },
  13781. runtime: "uni_app"
  13782. };
  13783. gt.useAdapters(wt);
  13784. var vt = gt,
  13785. It = vt.init;
  13786. vt.init = function (e) {
  13787. e.env = e.spaceId;
  13788. var t = It.call(this, e);
  13789. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  13790. var n = t.auth;
  13791. return t.auth = function (e) {
  13792. var t = n.call(this, e);
  13793. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  13794. var n;
  13795. t[e] = (n = t[e], function (e) {
  13796. e = e || {};
  13797. var _ee = ee(e),
  13798. t = _ee.success,
  13799. s = _ee.fail,
  13800. r = _ee.complete;
  13801. if (!(t || s || r)) return n.call(this, e);
  13802. n.call(this, e).then(function (e) {
  13803. t && t(e), r && r(e);
  13804. }, function (e) {
  13805. s && s(e), r && r(e);
  13806. });
  13807. }).bind(t);
  13808. }), t;
  13809. }, t.customAuth = t.auth, t;
  13810. };
  13811. var St = vt;
  13812. function bt(_x31, _x32) {
  13813. return _bt.apply(this, arguments);
  13814. }
  13815. function _bt() {
  13816. _bt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(e, t) {
  13817. var n, _e30, s;
  13818. return _regenerator.default.wrap(function _callee59$(_context59) {
  13819. while (1) {
  13820. switch (_context59.prev = _context59.next) {
  13821. case 0:
  13822. n = "http://".concat(e, ":").concat(t, "/system/ping");
  13823. _context59.prev = 1;
  13824. _context59.next = 4;
  13825. return s = {
  13826. url: n,
  13827. timeout: 500
  13828. }, new Promise(function (e, t) {
  13829. ne.request(_objectSpread(_objectSpread({}, s), {}, {
  13830. success: function success(t) {
  13831. e(t);
  13832. },
  13833. fail: function fail(e) {
  13834. t(e);
  13835. }
  13836. }));
  13837. });
  13838. case 4:
  13839. _e30 = _context59.sent;
  13840. return _context59.abrupt("return", !(!_e30.data || 0 !== _e30.data.code));
  13841. case 8:
  13842. _context59.prev = 8;
  13843. _context59.t0 = _context59["catch"](1);
  13844. return _context59.abrupt("return", !1);
  13845. case 11:
  13846. case "end":
  13847. return _context59.stop();
  13848. }
  13849. }
  13850. }, _callee59, null, [[1, 8]]);
  13851. }));
  13852. return _bt.apply(this, arguments);
  13853. }
  13854. function kt(_x33, _x34) {
  13855. return _kt.apply(this, arguments);
  13856. }
  13857. function _kt() {
  13858. _kt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60(e, t) {
  13859. var n, s, _r10;
  13860. return _regenerator.default.wrap(function _callee60$(_context60) {
  13861. while (1) {
  13862. switch (_context60.prev = _context60.next) {
  13863. case 0:
  13864. s = 0;
  13865. case 1:
  13866. if (!(s < e.length)) {
  13867. _context60.next = 11;
  13868. break;
  13869. }
  13870. _r10 = e[s];
  13871. _context60.next = 5;
  13872. return bt(_r10, t);
  13873. case 5:
  13874. if (!_context60.sent) {
  13875. _context60.next = 8;
  13876. break;
  13877. }
  13878. n = _r10;
  13879. return _context60.abrupt("break", 11);
  13880. case 8:
  13881. s++;
  13882. _context60.next = 1;
  13883. break;
  13884. case 11:
  13885. return _context60.abrupt("return", {
  13886. address: n,
  13887. port: t
  13888. });
  13889. case 12:
  13890. case "end":
  13891. return _context60.stop();
  13892. }
  13893. }
  13894. }, _callee60);
  13895. }));
  13896. return _kt.apply(this, arguments);
  13897. }
  13898. var At = {
  13899. "serverless.file.resource.generateProximalSign": "storage/generate-proximal-sign",
  13900. "serverless.file.resource.report": "storage/report",
  13901. "serverless.file.resource.delete": "storage/delete",
  13902. "serverless.file.resource.getTempFileURL": "storage/get-temp-file-url"
  13903. };
  13904. var Ct = /*#__PURE__*/function () {
  13905. function Ct(e) {
  13906. (0, _classCallCheck2.default)(this, Ct);
  13907. if (["spaceId", "clientSecret"].forEach(function (t) {
  13908. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  13909. }), !e.endpoint) throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");
  13910. this.config = Object.assign({}, e), this.config.provider = "dcloud", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.adapter = ne;
  13911. }
  13912. (0, _createClass2.default)(Ct, [{
  13913. key: "request",
  13914. value: function () {
  13915. var _request2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(e) {
  13916. var _this11 = this;
  13917. var t,
  13918. n,
  13919. _args34 = arguments;
  13920. return _regenerator.default.wrap(function _callee34$(_context34) {
  13921. while (1) {
  13922. switch (_context34.prev = _context34.next) {
  13923. case 0:
  13924. t = _args34.length > 1 && _args34[1] !== undefined ? _args34[1] : !0;
  13925. n = S && t;
  13926. if (!n) {
  13927. _context34.next = 8;
  13928. break;
  13929. }
  13930. _context34.next = 5;
  13931. return this.setupLocalRequest(e);
  13932. case 5:
  13933. _context34.t0 = _context34.sent;
  13934. _context34.next = 9;
  13935. break;
  13936. case 8:
  13937. _context34.t0 = this.setupRequest(e);
  13938. case 9:
  13939. e = _context34.t0;
  13940. return _context34.abrupt("return", Promise.resolve().then(function () {
  13941. return n ? _this11.requestLocal(e) : he.wrappedRequest(e, _this11.adapter.request);
  13942. }));
  13943. case 11:
  13944. case "end":
  13945. return _context34.stop();
  13946. }
  13947. }
  13948. }, _callee34, this);
  13949. }));
  13950. function request(_x35) {
  13951. return _request2.apply(this, arguments);
  13952. }
  13953. return request;
  13954. }()
  13955. }, {
  13956. key: "requestLocal",
  13957. value: function requestLocal(e) {
  13958. var _this12 = this;
  13959. return new Promise(function (t, n) {
  13960. _this12.adapter.request(Object.assign(e, {
  13961. complete: function complete(e) {
  13962. if (e || (e = {}), !e.statusCode || e.statusCode >= 400) {
  13963. var _t10 = e.data && e.data.code || "SYS_ERR",
  13964. _s11 = e.data && e.data.message || "request:fail";
  13965. return n(new te({
  13966. code: _t10,
  13967. message: _s11
  13968. }));
  13969. }
  13970. t({
  13971. success: !0,
  13972. result: e.data
  13973. });
  13974. }
  13975. }));
  13976. });
  13977. }
  13978. }, {
  13979. key: "setupRequest",
  13980. value: function setupRequest(e) {
  13981. var t = Object.assign({}, e, {
  13982. spaceId: this.config.spaceId,
  13983. timestamp: Date.now()
  13984. }),
  13985. n = {
  13986. "Content-Type": "application/json"
  13987. };
  13988. n["x-serverless-sign"] = he.sign(t, this.config.clientSecret);
  13989. var s = le();
  13990. n["x-client-info"] = encodeURIComponent(JSON.stringify(s));
  13991. var _se = se(),
  13992. r = _se.token;
  13993. return n["x-client-token"] = r, {
  13994. url: this.config.requestUrl,
  13995. method: "POST",
  13996. data: t,
  13997. dataType: "json",
  13998. header: JSON.parse(JSON.stringify(n))
  13999. };
  14000. }
  14001. }, {
  14002. key: "setupLocalRequest",
  14003. value: function () {
  14004. var _setupLocalRequest = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(e) {
  14005. var t, _se2, n, s, _ref14, r, i, _yield$kt, o;
  14006. return _regenerator.default.wrap(function _callee35$(_context35) {
  14007. while (1) {
  14008. switch (_context35.prev = _context35.next) {
  14009. case 0:
  14010. t = le();
  14011. _se2 = se();
  14012. n = _se2.token;
  14013. s = Object.assign({}, e, {
  14014. spaceId: this.config.spaceId,
  14015. timestamp: Date.now(),
  14016. clientInfo: t,
  14017. token: n
  14018. });
  14019. _ref14 = this.__dev__ && this.__dev__.debugInfo || {};
  14020. r = _ref14.address;
  14021. i = _ref14.servePort;
  14022. _context35.next = 9;
  14023. return kt(r, i);
  14024. case 9:
  14025. _yield$kt = _context35.sent;
  14026. o = _yield$kt.address;
  14027. return _context35.abrupt("return", {
  14028. url: "http://".concat(o, ":").concat(i, "/").concat(At[e.method]),
  14029. method: "POST",
  14030. data: s,
  14031. dataType: "json",
  14032. header: JSON.parse(JSON.stringify({
  14033. "Content-Type": "application/json"
  14034. }))
  14035. });
  14036. case 12:
  14037. case "end":
  14038. return _context35.stop();
  14039. }
  14040. }
  14041. }, _callee35, this);
  14042. }));
  14043. function setupLocalRequest(_x36) {
  14044. return _setupLocalRequest.apply(this, arguments);
  14045. }
  14046. return setupLocalRequest;
  14047. }()
  14048. }, {
  14049. key: "callFunction",
  14050. value: function callFunction(e) {
  14051. var t = {
  14052. method: "serverless.function.runtime.invoke",
  14053. params: JSON.stringify({
  14054. functionTarget: e.name,
  14055. functionArgs: e.data || {}
  14056. })
  14057. };
  14058. return this.request(t, !1);
  14059. }
  14060. }, {
  14061. key: "getUploadFileOptions",
  14062. value: function getUploadFileOptions(e) {
  14063. var t = {
  14064. method: "serverless.file.resource.generateProximalSign",
  14065. params: JSON.stringify(e)
  14066. };
  14067. return this.request(t);
  14068. }
  14069. }, {
  14070. key: "reportUploadFile",
  14071. value: function reportUploadFile(e) {
  14072. var t = {
  14073. method: "serverless.file.resource.report",
  14074. params: JSON.stringify(e)
  14075. };
  14076. return this.request(t);
  14077. }
  14078. }, {
  14079. key: "uploadFile",
  14080. value: function uploadFile(_ref15) {
  14081. var _this13 = this;
  14082. var e = _ref15.filePath,
  14083. t = _ref15.cloudPath,
  14084. _ref15$fileType = _ref15.fileType,
  14085. n = _ref15$fileType === void 0 ? "image" : _ref15$fileType,
  14086. s = _ref15.onUploadProgress;
  14087. if (!t) throw new te({
  14088. code: "CLOUDPATH_REQUIRED",
  14089. message: "cloudPath不可为空"
  14090. });
  14091. var r;
  14092. return this.getUploadFileOptions({
  14093. cloudPath: t
  14094. }).then(function (t) {
  14095. var _t$result = t.result,
  14096. i = _t$result.url,
  14097. o = _t$result.formData,
  14098. a = _t$result.name;
  14099. return r = t.result.fileUrl, new Promise(function (t, r) {
  14100. var c = _this13.adapter.uploadFile({
  14101. url: i,
  14102. formData: o,
  14103. name: a,
  14104. filePath: e,
  14105. fileType: n,
  14106. success: function success(e) {
  14107. e && e.statusCode < 400 ? t(e) : r(new te({
  14108. code: "UPLOAD_FAILED",
  14109. message: "文件上传失败"
  14110. }));
  14111. },
  14112. fail: function fail(e) {
  14113. r(new te({
  14114. code: e.code || "UPLOAD_FAILED",
  14115. message: e.message || e.errMsg || "文件上传失败"
  14116. }));
  14117. }
  14118. });
  14119. "function" == typeof s && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  14120. s({
  14121. loaded: e.totalBytesSent,
  14122. total: e.totalBytesExpectedToSend
  14123. });
  14124. });
  14125. });
  14126. }).then(function () {
  14127. return _this13.reportUploadFile({
  14128. cloudPath: t
  14129. });
  14130. }).then(function (t) {
  14131. return new Promise(function (n, s) {
  14132. t.success ? n({
  14133. success: !0,
  14134. filePath: e,
  14135. fileID: r
  14136. }) : s(new te({
  14137. code: "UPLOAD_FAILED",
  14138. message: "文件上传失败"
  14139. }));
  14140. });
  14141. });
  14142. }
  14143. }, {
  14144. key: "deleteFile",
  14145. value: function deleteFile(_ref16) {
  14146. var e = _ref16.fileList;
  14147. var t = {
  14148. method: "serverless.file.resource.delete",
  14149. params: JSON.stringify({
  14150. fileList: e
  14151. })
  14152. };
  14153. return this.request(t).then(function (e) {
  14154. if (e.success) return e.result;
  14155. throw new te({
  14156. code: "DELETE_FILE_FAILED",
  14157. message: "删除文件失败"
  14158. });
  14159. });
  14160. }
  14161. }, {
  14162. key: "getTempFileURL",
  14163. value: function getTempFileURL() {
  14164. var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14165. e = _ref17.fileList,
  14166. t = _ref17.maxAge;
  14167. if (!Array.isArray(e) || 0 === e.length) throw new te({
  14168. code: "INVALID_PARAM",
  14169. message: "fileList的元素必须是非空的字符串"
  14170. });
  14171. var n = {
  14172. method: "serverless.file.resource.getTempFileURL",
  14173. params: JSON.stringify({
  14174. fileList: e,
  14175. maxAge: t
  14176. })
  14177. };
  14178. return this.request(n).then(function (e) {
  14179. if (e.success) return {
  14180. fileList: e.result.fileList.map(function (e) {
  14181. return {
  14182. fileID: e.fileID,
  14183. tempFileURL: e.tempFileURL
  14184. };
  14185. })
  14186. };
  14187. throw new te({
  14188. code: "GET_TEMP_FILE_URL_FAILED",
  14189. message: "获取临时文件链接失败"
  14190. });
  14191. });
  14192. }
  14193. }]);
  14194. return Ct;
  14195. }();
  14196. var Pt = {
  14197. init: function init(e) {
  14198. var t = new Ct(e),
  14199. n = {
  14200. signInAnonymously: function signInAnonymously() {
  14201. return Promise.resolve();
  14202. },
  14203. getLoginState: function getLoginState() {
  14204. return Promise.resolve(!1);
  14205. }
  14206. };
  14207. return t.auth = function () {
  14208. return n;
  14209. }, t.customAuth = t.auth, t;
  14210. }
  14211. },
  14212. Tt = n(function (e, t) {
  14213. e.exports = r.enc.Hex;
  14214. });
  14215. function xt() {
  14216. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
  14217. var t = 16 * Math.random() | 0;
  14218. return ("x" === e ? t : 3 & t | 8).toString(16);
  14219. });
  14220. }
  14221. function Ot() {
  14222. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  14223. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14224. var n = t.data,
  14225. s = t.functionName,
  14226. r = t.method,
  14227. i = t.headers,
  14228. _t$signHeaderKeys = t.signHeaderKeys,
  14229. o = _t$signHeaderKeys === void 0 ? [] : _t$signHeaderKeys,
  14230. a = t.config,
  14231. c = Date.now(),
  14232. u = xt(),
  14233. l = Object.assign({}, i, {
  14234. "x-from-app-id": a.spaceAppId,
  14235. "x-from-env-id": a.spaceId,
  14236. "x-to-env-id": a.spaceId,
  14237. "x-from-instance-id": c,
  14238. "x-from-function-name": s,
  14239. "x-client-timestamp": c,
  14240. "x-alipay-source": "client",
  14241. "x-request-id": u,
  14242. "x-alipay-callid": u,
  14243. "x-trace-id": u
  14244. }),
  14245. h = ["x-from-app-id", "x-from-env-id", "x-to-env-id", "x-from-instance-id", "x-from-function-name", "x-client-timestamp"].concat(o),
  14246. _ref18 = e.split("?") || [],
  14247. _ref19 = (0, _slicedToArray2.default)(_ref18, 2),
  14248. _ref19$ = _ref19[0],
  14249. d = _ref19$ === void 0 ? "" : _ref19$,
  14250. _ref19$2 = _ref19[1],
  14251. p = _ref19$2 === void 0 ? "" : _ref19$2,
  14252. f = function (e) {
  14253. var t = e.signedHeaders.join(";"),
  14254. n = e.signedHeaders.map(function (t) {
  14255. return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
  14256. }).join(""),
  14257. s = _e(e.body).toString(Tt),
  14258. r = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(n, "\n").concat(t, "\n").concat(s, "\n"),
  14259. i = _e(r).toString(Tt),
  14260. o = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(i, "\n"),
  14261. a = we(o, e.secretKey).toString(Tt);
  14262. return "HMAC-SHA256 Credential=".concat(e.secretId, ", SignedHeaders=").concat(t, ", Signature=").concat(a);
  14263. }({
  14264. path: d,
  14265. query: p,
  14266. method: r,
  14267. headers: l,
  14268. timestamp: c,
  14269. body: JSON.stringify(n),
  14270. secretId: a.accessKey,
  14271. secretKey: a.secretKey,
  14272. signedHeaders: h.sort()
  14273. });
  14274. return {
  14275. url: "".concat(a.endpoint).concat(e),
  14276. headers: Object.assign({}, l, {
  14277. Authorization: f
  14278. })
  14279. };
  14280. }
  14281. function Et(_ref20) {
  14282. var e = _ref20.url,
  14283. t = _ref20.data,
  14284. _ref20$method = _ref20.method,
  14285. n = _ref20$method === void 0 ? "POST" : _ref20$method,
  14286. _ref20$headers = _ref20.headers,
  14287. s = _ref20$headers === void 0 ? {} : _ref20$headers,
  14288. r = _ref20.timeout;
  14289. return new Promise(function (i, o) {
  14290. ne.request({
  14291. url: e,
  14292. method: n,
  14293. data: "object" == (0, _typeof2.default)(t) ? JSON.stringify(t) : t,
  14294. header: s,
  14295. dataType: "json",
  14296. timeout: r,
  14297. complete: function complete() {
  14298. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14299. var t = s["x-trace-id"] || "";
  14300. if (!e.statusCode || e.statusCode >= 400) {
  14301. var _ref21 = e.data || {},
  14302. _n7 = _ref21.message,
  14303. _s12 = _ref21.errMsg,
  14304. _r4 = _ref21.trace_id;
  14305. return o(new te({
  14306. code: "SYS_ERR",
  14307. message: _n7 || _s12 || "request:fail",
  14308. requestId: _r4 || t
  14309. }));
  14310. }
  14311. i({
  14312. status: e.statusCode,
  14313. data: e.data,
  14314. headers: e.header,
  14315. requestId: t
  14316. });
  14317. }
  14318. });
  14319. });
  14320. }
  14321. function Lt(e, t) {
  14322. var n = e.path,
  14323. s = e.data,
  14324. _e$method = e.method,
  14325. r = _e$method === void 0 ? "GET" : _e$method,
  14326. _Ot = Ot(n, {
  14327. functionName: "",
  14328. data: s,
  14329. method: r,
  14330. headers: {
  14331. "x-alipay-cloud-mode": "oss",
  14332. "x-data-api-type": "oss",
  14333. "x-expire-timestamp": Date.now() + 6e4
  14334. },
  14335. signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
  14336. config: t
  14337. }),
  14338. i = _Ot.url,
  14339. o = _Ot.headers;
  14340. return Et({
  14341. url: i,
  14342. data: s,
  14343. method: r,
  14344. headers: o
  14345. }).then(function (e) {
  14346. var t = e.data || {};
  14347. if (!t.success) throw new te({
  14348. code: e.errCode,
  14349. message: e.errMsg,
  14350. requestId: e.requestId
  14351. });
  14352. return t.data || {};
  14353. }).catch(function (e) {
  14354. throw new te({
  14355. code: e.errCode,
  14356. message: e.errMsg,
  14357. requestId: e.requestId
  14358. });
  14359. });
  14360. }
  14361. function Rt() {
  14362. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  14363. var t = e.trim().replace(/^cloud:\/\//, ""),
  14364. n = t.indexOf("/");
  14365. if (n <= 0) throw new te({
  14366. code: "INVALID_PARAM",
  14367. message: "fileID不合法"
  14368. });
  14369. var s = t.substring(0, n),
  14370. r = t.substring(n + 1);
  14371. return s !== this.config.spaceId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.spaceId)), r;
  14372. }
  14373. function Ut() {
  14374. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  14375. return "cloud://".concat(this.config.spaceId, "/").concat(e.replace(/^\/+/, ""));
  14376. }
  14377. var Nt = /*#__PURE__*/function () {
  14378. function Nt(e) {
  14379. (0, _classCallCheck2.default)(this, Nt);
  14380. this.config = e;
  14381. }
  14382. (0, _createClass2.default)(Nt, [{
  14383. key: "signedURL",
  14384. value: function signedURL(e) {
  14385. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14386. var n = "/ws/function/".concat(e),
  14387. s = this.config.wsEndpoint.replace(/^ws(s)?:\/\//, ""),
  14388. r = Object.assign({}, t, {
  14389. accessKeyId: this.config.accessKey,
  14390. signatureNonce: xt(),
  14391. timestamp: "" + Date.now()
  14392. }),
  14393. i = [n, ["accessKeyId", "authorization", "signatureNonce", "timestamp"].sort().map(function (e) {
  14394. return r[e] ? "".concat(e, "=").concat(r[e]) : null;
  14395. }).filter(Boolean).join("&"), "host:".concat(s)].join("\n"),
  14396. o = ["HMAC-SHA256", _e(i).toString(Tt)].join("\n"),
  14397. a = we(o, this.config.secretKey).toString(Tt),
  14398. c = Object.keys(r).map(function (e) {
  14399. return "".concat(e, "=").concat(encodeURIComponent(r[e]));
  14400. }).join("&");
  14401. return "".concat(this.config.wsEndpoint).concat(n, "?").concat(c, "&signature=").concat(a);
  14402. }
  14403. }]);
  14404. return Nt;
  14405. }();
  14406. var Dt = /*#__PURE__*/function () {
  14407. function Dt(e) {
  14408. (0, _classCallCheck2.default)(this, Dt);
  14409. if (["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (t) {
  14410. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  14411. }), e.endpoint) {
  14412. if ("string" != typeof e.endpoint) throw new Error("endpoint must be string");
  14413. if (!/^https:\/\//.test(e.endpoint)) throw new Error("endpoint must start with https://");
  14414. e.endpoint = e.endpoint.replace(/\/$/, "");
  14415. }
  14416. this.config = Object.assign({}, e, {
  14417. endpoint: e.endpoint || "https://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn"),
  14418. wsEndpoint: e.wsEndpoint || "wss://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn")
  14419. }), this._websocket = new Nt(this.config);
  14420. }
  14421. (0, _createClass2.default)(Dt, [{
  14422. key: "callFunction",
  14423. value: function callFunction(e) {
  14424. return function (e, t) {
  14425. var n = e.name,
  14426. s = e.data,
  14427. _e$async = e.async,
  14428. r = _e$async === void 0 ? !1 : _e$async,
  14429. i = e.timeout,
  14430. o = "POST",
  14431. a = {
  14432. "x-to-function-name": n
  14433. };
  14434. r && (a["x-function-invoke-type"] = "async");
  14435. var _Ot2 = Ot("/functions/invokeFunction", {
  14436. functionName: n,
  14437. data: s,
  14438. method: o,
  14439. headers: a,
  14440. signHeaderKeys: ["x-to-function-name"],
  14441. config: t
  14442. }),
  14443. c = _Ot2.url,
  14444. u = _Ot2.headers;
  14445. return Et({
  14446. url: c,
  14447. data: s,
  14448. method: o,
  14449. headers: u,
  14450. timeout: i
  14451. }).then(function (e) {
  14452. var t = 0;
  14453. if (r) {
  14454. var _n8 = e.data || {};
  14455. t = "200" === _n8.errCode ? 0 : _n8.errCode, e.data = _n8.data || {}, e.errMsg = _n8.errMsg;
  14456. }
  14457. if (0 !== t) throw new te({
  14458. code: t,
  14459. message: e.errMsg,
  14460. requestId: e.requestId
  14461. });
  14462. return {
  14463. errCode: t,
  14464. success: 0 === t,
  14465. requestId: e.requestId,
  14466. result: e.data
  14467. };
  14468. }).catch(function (e) {
  14469. throw new te({
  14470. code: e.errCode,
  14471. message: e.errMsg,
  14472. requestId: e.requestId
  14473. });
  14474. });
  14475. }(e, this.config);
  14476. }
  14477. }, {
  14478. key: "uploadFileToOSS",
  14479. value: function uploadFileToOSS(_ref22) {
  14480. var e = _ref22.url,
  14481. t = _ref22.filePath,
  14482. n = _ref22.fileType,
  14483. s = _ref22.formData,
  14484. r = _ref22.onUploadProgress;
  14485. return new Promise(function (i, o) {
  14486. var a = ne.uploadFile({
  14487. url: e,
  14488. filePath: t,
  14489. fileType: n,
  14490. formData: s,
  14491. name: "file",
  14492. success: function success(e) {
  14493. e && e.statusCode < 400 ? i(e) : o(new te({
  14494. code: "UPLOAD_FAILED",
  14495. message: "文件上传失败"
  14496. }));
  14497. },
  14498. fail: function fail(e) {
  14499. o(new te({
  14500. code: e.code || "UPLOAD_FAILED",
  14501. message: e.message || e.errMsg || "文件上传失败"
  14502. }));
  14503. }
  14504. });
  14505. "function" == typeof r && a && "function" == typeof a.onProgressUpdate && a.onProgressUpdate(function (e) {
  14506. r({
  14507. loaded: e.totalBytesSent,
  14508. total: e.totalBytesExpectedToSend
  14509. });
  14510. });
  14511. });
  14512. }
  14513. }, {
  14514. key: "uploadFile",
  14515. value: function () {
  14516. var _uploadFile2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(_ref23) {
  14517. var e, _ref23$cloudPath, t, _ref23$fileType, n, s, r, i, o, a, c;
  14518. return _regenerator.default.wrap(function _callee36$(_context36) {
  14519. while (1) {
  14520. switch (_context36.prev = _context36.next) {
  14521. case 0:
  14522. e = _ref23.filePath, _ref23$cloudPath = _ref23.cloudPath, t = _ref23$cloudPath === void 0 ? "" : _ref23$cloudPath, _ref23$fileType = _ref23.fileType, n = _ref23$fileType === void 0 ? "image" : _ref23$fileType, s = _ref23.onUploadProgress;
  14523. if (!("string" !== f(t))) {
  14524. _context36.next = 3;
  14525. break;
  14526. }
  14527. throw new te({
  14528. code: "INVALID_PARAM",
  14529. message: "cloudPath必须为字符串类型"
  14530. });
  14531. case 3:
  14532. if (t = t.trim()) {
  14533. _context36.next = 5;
  14534. break;
  14535. }
  14536. throw new te({
  14537. code: "INVALID_PARAM",
  14538. message: "cloudPath不可为空"
  14539. });
  14540. case 5:
  14541. if (!/:\/\//.test(t)) {
  14542. _context36.next = 7;
  14543. break;
  14544. }
  14545. throw new te({
  14546. code: "INVALID_PARAM",
  14547. message: "cloudPath不合法"
  14548. });
  14549. case 7:
  14550. _context36.next = 9;
  14551. return Lt({
  14552. path: "/".concat(t.replace(/^\//, ""), "?post_url")
  14553. }, this.config);
  14554. case 9:
  14555. r = _context36.sent;
  14556. i = r.file_id;
  14557. o = r.upload_url;
  14558. a = r.form_data;
  14559. c = a && a.reduce(function (e, t) {
  14560. return e[t.key] = t.value, e;
  14561. }, {});
  14562. return _context36.abrupt("return", this.uploadFileToOSS({
  14563. url: o,
  14564. filePath: e,
  14565. fileType: n,
  14566. formData: c,
  14567. onUploadProgress: s
  14568. }).then(function () {
  14569. return {
  14570. fileID: i
  14571. };
  14572. }));
  14573. case 15:
  14574. case "end":
  14575. return _context36.stop();
  14576. }
  14577. }
  14578. }, _callee36, this);
  14579. }));
  14580. function uploadFile(_x37) {
  14581. return _uploadFile2.apply(this, arguments);
  14582. }
  14583. return uploadFile;
  14584. }()
  14585. }, {
  14586. key: "getTempFileURL",
  14587. value: function () {
  14588. var _getTempFileURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(_ref24) {
  14589. var _this14 = this;
  14590. var e;
  14591. return _regenerator.default.wrap(function _callee37$(_context37) {
  14592. while (1) {
  14593. switch (_context37.prev = _context37.next) {
  14594. case 0:
  14595. e = _ref24.fileList;
  14596. return _context37.abrupt("return", new Promise(function (t, n) {
  14597. (!e || e.length < 0) && n(new te({
  14598. errCode: "INVALID_PARAM",
  14599. errMsg: "fileList不能为空数组"
  14600. })), e.length > 50 && n(new te({
  14601. errCode: "INVALID_PARAM",
  14602. errMsg: "fileList数组长度不能超过50"
  14603. }));
  14604. var s = [];
  14605. var _iterator5 = _createForOfIteratorHelper(e),
  14606. _step5;
  14607. try {
  14608. for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
  14609. var _t11 = _step5.value;
  14610. "string" !== f(_t11) && n(new te({
  14611. errCode: "INVALID_PARAM",
  14612. errMsg: "fileList的元素必须是非空的字符串"
  14613. }));
  14614. var _e17 = Rt.call(_this14, _t11);
  14615. s.push({
  14616. file_id: _e17,
  14617. expire: 600
  14618. });
  14619. }
  14620. } catch (err) {
  14621. _iterator5.e(err);
  14622. } finally {
  14623. _iterator5.f();
  14624. }
  14625. Lt({
  14626. path: "/?download_url",
  14627. data: {
  14628. file_list: s
  14629. },
  14630. method: "POST"
  14631. }, _this14.config).then(function (e) {
  14632. var _e$file_list = e.file_list,
  14633. n = _e$file_list === void 0 ? [] : _e$file_list;
  14634. t({
  14635. fileList: n.map(function (e) {
  14636. return {
  14637. fileID: Ut.call(_this14, e.file_id),
  14638. tempFileURL: e.download_url
  14639. };
  14640. })
  14641. });
  14642. }).catch(function (e) {
  14643. return n(e);
  14644. });
  14645. }));
  14646. case 2:
  14647. case "end":
  14648. return _context37.stop();
  14649. }
  14650. }
  14651. }, _callee37);
  14652. }));
  14653. function getTempFileURL(_x38) {
  14654. return _getTempFileURL.apply(this, arguments);
  14655. }
  14656. return getTempFileURL;
  14657. }()
  14658. }, {
  14659. key: "connectWebSocket",
  14660. value: function () {
  14661. var _connectWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38(e) {
  14662. var t, n;
  14663. return _regenerator.default.wrap(function _callee38$(_context38) {
  14664. while (1) {
  14665. switch (_context38.prev = _context38.next) {
  14666. case 0:
  14667. t = e.name, n = e.query;
  14668. return _context38.abrupt("return", ne.connectSocket({
  14669. url: this._websocket.signedURL(t, n),
  14670. complete: function complete() {}
  14671. }));
  14672. case 2:
  14673. case "end":
  14674. return _context38.stop();
  14675. }
  14676. }
  14677. }, _callee38, this);
  14678. }));
  14679. function connectWebSocket(_x39) {
  14680. return _connectWebSocket.apply(this, arguments);
  14681. }
  14682. return connectWebSocket;
  14683. }()
  14684. }]);
  14685. return Dt;
  14686. }();
  14687. var qt = {
  14688. init: function init(e) {
  14689. e.provider = "alipay";
  14690. var t = new Dt(e);
  14691. return t.auth = function () {
  14692. return {
  14693. signInAnonymously: function signInAnonymously() {
  14694. return Promise.resolve();
  14695. },
  14696. getLoginState: function getLoginState() {
  14697. return Promise.resolve(!0);
  14698. }
  14699. };
  14700. }, t;
  14701. }
  14702. };
  14703. function Mt(_ref25) {
  14704. var e = _ref25.data;
  14705. var t;
  14706. t = le();
  14707. var n = JSON.parse(JSON.stringify(e || {}));
  14708. if (Object.assign(n, {
  14709. clientInfo: t
  14710. }), !n.uniIdToken) {
  14711. var _se3 = se(),
  14712. _e18 = _se3.token;
  14713. _e18 && (n.uniIdToken = _e18);
  14714. }
  14715. return n;
  14716. }
  14717. function Ft() {
  14718. return _Ft.apply(this, arguments);
  14719. }
  14720. function _Ft() {
  14721. _Ft = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61() {
  14722. var _this27 = this;
  14723. var e,
  14724. _this$__dev__,
  14725. t,
  14726. n,
  14727. s,
  14728. r,
  14729. i,
  14730. o,
  14731. _args8 = arguments;
  14732. return _regenerator.default.wrap(function _callee61$(_context61) {
  14733. while (1) {
  14734. switch (_context61.prev = _context61.next) {
  14735. case 0:
  14736. e = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
  14737. _context61.next = 3;
  14738. return this.__dev__.initLocalNetwork();
  14739. case 3:
  14740. _this$__dev__ = this.__dev__, t = _this$__dev__.localAddress, n = _this$__dev__.localPort, s = {
  14741. aliyun: "aliyun",
  14742. tencent: "tcb",
  14743. alipay: "alipay",
  14744. dcloud: "dcloud"
  14745. }[this.config.provider], r = this.config.spaceId, i = "http://".concat(t, ":").concat(n, "/system/check-function"), o = "http://".concat(t, ":").concat(n, "/cloudfunctions/").concat(e.name);
  14746. return _context61.abrupt("return", new Promise(function (t, n) {
  14747. ne.request({
  14748. method: "POST",
  14749. url: i,
  14750. data: {
  14751. name: e.name,
  14752. platform: C,
  14753. provider: s,
  14754. spaceId: r
  14755. },
  14756. timeout: 3e3,
  14757. success: function success(e) {
  14758. t(e);
  14759. },
  14760. fail: function fail() {
  14761. t({
  14762. data: {
  14763. code: "NETWORK_ERROR",
  14764. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  14765. }
  14766. });
  14767. }
  14768. });
  14769. }).then(function () {
  14770. var _ref67 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14771. e = _ref67.data;
  14772. var _ref68 = e || {},
  14773. t = _ref68.code,
  14774. n = _ref68.message;
  14775. return {
  14776. code: 0 === t ? 0 : t || "SYS_ERR",
  14777. message: n || "SYS_ERR"
  14778. };
  14779. }).then(function (_ref69) {
  14780. var t = _ref69.code,
  14781. n = _ref69.message;
  14782. if (0 !== t) {
  14783. switch (t) {
  14784. case "MODULE_ENCRYPTED":
  14785. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e.name, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  14786. break;
  14787. case "FUNCTION_ENCRYPTED":
  14788. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e.name, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  14789. break;
  14790. case "ACTION_ENCRYPTED":
  14791. console.error(n || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  14792. break;
  14793. case "NETWORK_ERROR":
  14794. console.error(n || "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");
  14795. break;
  14796. case "SWITCH_TO_CLOUD":
  14797. break;
  14798. default:
  14799. {
  14800. var _e31 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(n, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  14801. throw console.error(_e31), new Error(_e31);
  14802. }
  14803. }
  14804. return _this27._callCloudFunction(e);
  14805. }
  14806. return new Promise(function (t, n) {
  14807. var r = Mt.call(_this27, {
  14808. data: e.data
  14809. });
  14810. ne.request({
  14811. method: "POST",
  14812. url: o,
  14813. data: {
  14814. provider: s,
  14815. platform: C,
  14816. param: r
  14817. },
  14818. timeout: e.timeout,
  14819. success: function success() {
  14820. var _ref70 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14821. e = _ref70.statusCode,
  14822. s = _ref70.data;
  14823. return !e || e >= 400 ? n(new te({
  14824. code: s.code || "SYS_ERR",
  14825. message: s.message || "request:fail"
  14826. })) : t({
  14827. result: s
  14828. });
  14829. },
  14830. fail: function fail(e) {
  14831. n(new te({
  14832. code: e.code || e.errCode || "SYS_ERR",
  14833. message: e.message || e.errMsg || "request:fail"
  14834. }));
  14835. }
  14836. });
  14837. });
  14838. }));
  14839. case 5:
  14840. case "end":
  14841. return _context61.stop();
  14842. }
  14843. }
  14844. }, _callee61, this);
  14845. }));
  14846. return _Ft.apply(this, arguments);
  14847. }
  14848. var Kt = [{
  14849. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  14850. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  14851. mode: "append"
  14852. }];
  14853. var jt = /[\\^$.*+?()[\]{}|]/g,
  14854. $t = RegExp(jt.source);
  14855. function Bt(e, t, n) {
  14856. return e.replace(new RegExp((s = t) && $t.test(s) ? s.replace(jt, "\\$&") : s, "g"), n);
  14857. var s;
  14858. }
  14859. var Wt = "none",
  14860. Ht = "request",
  14861. Jt = "response",
  14862. zt = "both";
  14863. var Vt = /*#__PURE__*/function () {
  14864. function Vt() {
  14865. var _ref26 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  14866. e = _ref26.secretType,
  14867. t = _ref26.uniCloudIns;
  14868. (0, _classCallCheck2.default)(this, Vt);
  14869. this.clientType = "", this.secretType = e || Wt, this.uniCloudIns = t;
  14870. var _this$uniCloudIns$con = this.uniCloudIns.config,
  14871. n = _this$uniCloudIns$con.provider,
  14872. s = _this$uniCloudIns$con.spaceId;
  14873. var r;
  14874. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  14875. }
  14876. (0, _createClass2.default)(Vt, [{
  14877. key: "getSystemInfo",
  14878. value: function getSystemInfo() {
  14879. return this._systemInfo || (this._systemInfo = ae()), this._systemInfo;
  14880. }
  14881. }, {
  14882. key: "appId",
  14883. get: function get() {
  14884. return this.getSystemInfo().appId;
  14885. }
  14886. }, {
  14887. key: "deviceId",
  14888. get: function get() {
  14889. return this.getSystemInfo().deviceId;
  14890. }
  14891. }, {
  14892. key: "encryptData",
  14893. value: function () {
  14894. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39(e) {
  14895. return _regenerator.default.wrap(function _callee39$(_context39) {
  14896. while (1) {
  14897. switch (_context39.prev = _context39.next) {
  14898. case 0:
  14899. return _context39.abrupt("return", this.secretType === Wt ? e : this.platformEncryptData(e));
  14900. case 1:
  14901. case "end":
  14902. return _context39.stop();
  14903. }
  14904. }
  14905. }, _callee39, this);
  14906. }));
  14907. function encryptData(_x40) {
  14908. return _encryptData.apply(this, arguments);
  14909. }
  14910. return encryptData;
  14911. }()
  14912. }, {
  14913. key: "decryptResult",
  14914. value: function () {
  14915. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40(e) {
  14916. var _ref27, t, n;
  14917. return _regenerator.default.wrap(function _callee40$(_context40) {
  14918. while (1) {
  14919. switch (_context40.prev = _context40.next) {
  14920. case 0:
  14921. if (!(this.secretType === Wt)) {
  14922. _context40.next = 2;
  14923. break;
  14924. }
  14925. return _context40.abrupt("return", e);
  14926. case 2:
  14927. _ref27 = e || {}, t = _ref27.errCode, n = _ref27.content;
  14928. return _context40.abrupt("return", t || !n ? e : this.secretType === Ht ? n : this.platformDecryptResult(e));
  14929. case 4:
  14930. case "end":
  14931. return _context40.stop();
  14932. }
  14933. }
  14934. }, _callee40, this);
  14935. }));
  14936. function decryptResult(_x41) {
  14937. return _decryptResult.apply(this, arguments);
  14938. }
  14939. return decryptResult;
  14940. }()
  14941. }, {
  14942. key: "wrapVerifyClientCallFunction",
  14943. value: function wrapVerifyClientCallFunction(e) {
  14944. var t = this;
  14945. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41() {
  14946. var _ref29,
  14947. n,
  14948. _ref29$data,
  14949. s,
  14950. r,
  14951. _args41 = arguments;
  14952. return _regenerator.default.wrap(function _callee41$(_context41) {
  14953. while (1) {
  14954. switch (_context41.prev = _context41.next) {
  14955. case 0:
  14956. _ref29 = _args41.length > 0 && _args41[0] !== undefined ? _args41[0] : {}, n = _ref29.name, _ref29$data = _ref29.data, s = _ref29$data === void 0 ? {} : _ref29$data;
  14957. _context41.next = 3;
  14958. return t.prepare();
  14959. case 3:
  14960. _context41.next = 5;
  14961. return t.platformGetSignOption();
  14962. case 5:
  14963. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context41.sent;
  14964. _context41.next = 8;
  14965. return e({
  14966. name: n,
  14967. data: s
  14968. });
  14969. case 8:
  14970. r = _context41.sent;
  14971. _context41.t0 = t.isClientKeyNotFound(r);
  14972. if (!_context41.t0) {
  14973. _context41.next = 19;
  14974. break;
  14975. }
  14976. _context41.next = 13;
  14977. return t.prepare({
  14978. forceUpdate: !0
  14979. });
  14980. case 13:
  14981. _context41.next = 15;
  14982. return t.platformGetSignOption();
  14983. case 15:
  14984. s._uniCloudOptions = _context41.sent;
  14985. _context41.next = 18;
  14986. return e({
  14987. name: n,
  14988. data: s
  14989. });
  14990. case 18:
  14991. r = _context41.sent;
  14992. case 19:
  14993. return _context41.abrupt("return", r);
  14994. case 20:
  14995. case "end":
  14996. return _context41.stop();
  14997. }
  14998. }
  14999. }, _callee41);
  15000. }));
  15001. }
  15002. }, {
  15003. key: "wrapEncryptDataCallFunction",
  15004. value: function wrapEncryptDataCallFunction(e) {
  15005. var t = this;
  15006. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  15007. var _ref31,
  15008. n,
  15009. _ref31$data,
  15010. s,
  15011. r,
  15012. i,
  15013. _r5,
  15014. _args42 = arguments;
  15015. return _regenerator.default.wrap(function _callee42$(_context42) {
  15016. while (1) {
  15017. switch (_context42.prev = _context42.next) {
  15018. case 0:
  15019. _ref31 = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {}, n = _ref31.name, _ref31$data = _ref31.data, s = _ref31$data === void 0 ? {} : _ref31$data;
  15020. _context42.next = 3;
  15021. return t.prepare();
  15022. case 3:
  15023. _context42.next = 5;
  15024. return t.encryptData(s);
  15025. case 5:
  15026. r = _context42.sent;
  15027. _context42.next = 8;
  15028. return e({
  15029. name: n,
  15030. data: r
  15031. });
  15032. case 8:
  15033. i = _context42.sent;
  15034. if (!t.isClientKeyNotFound(i)) {
  15035. _context42.next = 21;
  15036. break;
  15037. }
  15038. _context42.next = 12;
  15039. return t.prepare({
  15040. forceUpdate: !0
  15041. });
  15042. case 12:
  15043. _context42.next = 14;
  15044. return t.encryptData(s);
  15045. case 14:
  15046. _r5 = _context42.sent;
  15047. _context42.next = 17;
  15048. return t.platformGetSignOption();
  15049. case 17:
  15050. s._uniCloudOptions = _context42.sent;
  15051. _context42.next = 20;
  15052. return e({
  15053. name: n,
  15054. data: _r5
  15055. });
  15056. case 20:
  15057. i = _context42.sent;
  15058. case 21:
  15059. _context42.next = 23;
  15060. return t.decryptResult(i.result);
  15061. case 23:
  15062. i.result = _context42.sent;
  15063. return _context42.abrupt("return", i);
  15064. case 25:
  15065. case "end":
  15066. return _context42.stop();
  15067. }
  15068. }
  15069. }, _callee42);
  15070. }));
  15071. }
  15072. }]);
  15073. return Vt;
  15074. }();
  15075. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  15076. function Gt(e) {
  15077. return parseInt(e) === e;
  15078. }
  15079. function Yt(e) {
  15080. if (!Gt(e.length)) return !1;
  15081. for (var t = 0; t < e.length; t++) {
  15082. if (!Gt(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  15083. }
  15084. return !0;
  15085. }
  15086. function Qt(e, t) {
  15087. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  15088. if (Array.isArray(e)) {
  15089. if (!Yt(e)) throw new Error("Array contains invalid value: " + e);
  15090. return new Uint8Array(e);
  15091. }
  15092. if (Gt(e.length) && Yt(e)) return new Uint8Array(e);
  15093. throw new Error("unsupported array-like object");
  15094. }
  15095. function Xt(e) {
  15096. return new Uint8Array(e);
  15097. }
  15098. function Zt(e, t, n, s, r) {
  15099. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  15100. }
  15101. var en,
  15102. tn = {
  15103. toBytes: function toBytes(e) {
  15104. var t = [],
  15105. n = 0;
  15106. for (e = encodeURI(e); n < e.length;) {
  15107. var s = e.charCodeAt(n++);
  15108. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  15109. }
  15110. return Qt(t);
  15111. },
  15112. fromBytes: function fromBytes(e) {
  15113. for (var t = [], n = 0; n < e.length;) {
  15114. var s = e[n];
  15115. s < 128 ? (t.push(String.fromCharCode(s)), n++) : s > 191 && s < 224 ? (t.push(String.fromCharCode((31 & s) << 6 | 63 & e[n + 1])), n += 2) : (t.push(String.fromCharCode((15 & s) << 12 | (63 & e[n + 1]) << 6 | 63 & e[n + 2])), n += 3);
  15116. }
  15117. return t.join("");
  15118. }
  15119. },
  15120. nn = (en = "0123456789abcdef", {
  15121. toBytes: function toBytes(e) {
  15122. for (var t = [], n = 0; n < e.length; n += 2) {
  15123. t.push(parseInt(e.substr(n, 2), 16));
  15124. }
  15125. return t;
  15126. },
  15127. fromBytes: function fromBytes(e) {
  15128. for (var t = [], n = 0; n < e.length; n++) {
  15129. var s = e[n];
  15130. t.push(en[(240 & s) >> 4] + en[15 & s]);
  15131. }
  15132. return t.join("");
  15133. }
  15134. }),
  15135. sn = {
  15136. 16: 10,
  15137. 24: 12,
  15138. 32: 14
  15139. },
  15140. rn = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145],
  15141. on = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
  15142. an = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125],
  15143. cn = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986],
  15144. un = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766],
  15145. ln = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126],
  15146. hn = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436],
  15147. dn = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890],
  15148. pn = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935],
  15149. fn = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600],
  15150. gn = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480],
  15151. mn = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795],
  15152. yn = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855],
  15153. _n = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150],
  15154. wn = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
  15155. function vn(e) {
  15156. for (var t = [], n = 0; n < e.length; n += 4) {
  15157. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  15158. }
  15159. return t;
  15160. }
  15161. var In = /*#__PURE__*/function () {
  15162. function In(e) {
  15163. (0, _classCallCheck2.default)(this, In);
  15164. if (!(this instanceof In)) throw Error("AES must be instanitated with `new`");
  15165. Object.defineProperty(this, "key", {
  15166. value: Qt(e, !0)
  15167. }), this._prepare();
  15168. }
  15169. (0, _createClass2.default)(In, [{
  15170. key: "_prepare",
  15171. value: function _prepare() {
  15172. var e = sn[this.key.length];
  15173. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  15174. this._Ke = [], this._Kd = [];
  15175. for (var t = 0; t <= e; t++) {
  15176. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  15177. }
  15178. var n,
  15179. s = 4 * (e + 1),
  15180. r = this.key.length / 4,
  15181. i = vn(this.key);
  15182. for (t = 0; t < r; t++) {
  15183. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  15184. }
  15185. for (var o, a = 0, c = r; c < s;) {
  15186. if (o = i[r - 1], i[0] ^= on[o >> 16 & 255] << 24 ^ on[o >> 8 & 255] << 16 ^ on[255 & o] << 8 ^ on[o >> 24 & 255] ^ rn[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  15187. i[t] ^= i[t - 1];
  15188. } else {
  15189. for (t = 1; t < r / 2; t++) {
  15190. i[t] ^= i[t - 1];
  15191. }
  15192. o = i[r / 2 - 1], i[r / 2] ^= on[255 & o] ^ on[o >> 8 & 255] << 8 ^ on[o >> 16 & 255] << 16 ^ on[o >> 24 & 255] << 24;
  15193. for (t = r / 2 + 1; t < r; t++) {
  15194. i[t] ^= i[t - 1];
  15195. }
  15196. }
  15197. for (t = 0; t < r && c < s;) {
  15198. u = c >> 2, l = c % 4, this._Ke[u][l] = i[t], this._Kd[e - u][l] = i[t++], c++;
  15199. }
  15200. }
  15201. for (var u = 1; u < e; u++) {
  15202. for (var l = 0; l < 4; l++) {
  15203. o = this._Kd[u][l], this._Kd[u][l] = mn[o >> 24 & 255] ^ yn[o >> 16 & 255] ^ _n[o >> 8 & 255] ^ wn[255 & o];
  15204. }
  15205. }
  15206. }
  15207. }, {
  15208. key: "encrypt",
  15209. value: function encrypt(e) {
  15210. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  15211. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = vn(e), r = 0; r < 4; r++) {
  15212. s[r] ^= this._Ke[0][r];
  15213. }
  15214. for (var i = 1; i < t; i++) {
  15215. for (r = 0; r < 4; r++) {
  15216. n[r] = cn[s[r] >> 24 & 255] ^ un[s[(r + 1) % 4] >> 16 & 255] ^ ln[s[(r + 2) % 4] >> 8 & 255] ^ hn[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  15217. }
  15218. s = n.slice();
  15219. }
  15220. var o,
  15221. a = Xt(16);
  15222. for (r = 0; r < 4; r++) {
  15223. o = this._Ke[t][r], a[4 * r] = 255 & (on[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (on[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (on[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (on[255 & s[(r + 3) % 4]] ^ o);
  15224. }
  15225. return a;
  15226. }
  15227. }, {
  15228. key: "decrypt",
  15229. value: function decrypt(e) {
  15230. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  15231. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = vn(e), r = 0; r < 4; r++) {
  15232. s[r] ^= this._Kd[0][r];
  15233. }
  15234. for (var i = 1; i < t; i++) {
  15235. for (r = 0; r < 4; r++) {
  15236. n[r] = dn[s[r] >> 24 & 255] ^ pn[s[(r + 3) % 4] >> 16 & 255] ^ fn[s[(r + 2) % 4] >> 8 & 255] ^ gn[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  15237. }
  15238. s = n.slice();
  15239. }
  15240. var o,
  15241. a = Xt(16);
  15242. for (r = 0; r < 4; r++) {
  15243. o = this._Kd[t][r], a[4 * r] = 255 & (an[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (an[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (an[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (an[255 & s[(r + 1) % 4]] ^ o);
  15244. }
  15245. return a;
  15246. }
  15247. }]);
  15248. return In;
  15249. }();
  15250. var Sn = /*#__PURE__*/function () {
  15251. function Sn(e) {
  15252. (0, _classCallCheck2.default)(this, Sn);
  15253. if (!(this instanceof Sn)) throw Error("AES must be instanitated with `new`");
  15254. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new In(e);
  15255. }
  15256. (0, _createClass2.default)(Sn, [{
  15257. key: "encrypt",
  15258. value: function encrypt(e) {
  15259. if ((e = Qt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  15260. for (var t = Xt(e.length), n = Xt(16), s = 0; s < e.length; s += 16) {
  15261. Zt(e, n, 0, s, s + 16), Zt(n = this._aes.encrypt(n), t, s);
  15262. }
  15263. return t;
  15264. }
  15265. }, {
  15266. key: "decrypt",
  15267. value: function decrypt(e) {
  15268. if ((e = Qt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  15269. for (var t = Xt(e.length), n = Xt(16), s = 0; s < e.length; s += 16) {
  15270. Zt(e, n, 0, s, s + 16), Zt(n = this._aes.decrypt(n), t, s);
  15271. }
  15272. return t;
  15273. }
  15274. }]);
  15275. return Sn;
  15276. }();
  15277. var bn = /*#__PURE__*/function () {
  15278. function bn(e, t) {
  15279. (0, _classCallCheck2.default)(this, bn);
  15280. if (!(this instanceof bn)) throw Error("AES must be instanitated with `new`");
  15281. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  15282. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  15283. } else t = Xt(16);
  15284. this._lastCipherblock = Qt(t, !0), this._aes = new In(e);
  15285. }
  15286. (0, _createClass2.default)(bn, [{
  15287. key: "encrypt",
  15288. value: function encrypt(e) {
  15289. if ((e = Qt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  15290. for (var t = Xt(e.length), n = Xt(16), s = 0; s < e.length; s += 16) {
  15291. Zt(e, n, 0, s, s + 16);
  15292. for (var r = 0; r < 16; r++) {
  15293. n[r] ^= this._lastCipherblock[r];
  15294. }
  15295. this._lastCipherblock = this._aes.encrypt(n), Zt(this._lastCipherblock, t, s);
  15296. }
  15297. return t;
  15298. }
  15299. }, {
  15300. key: "decrypt",
  15301. value: function decrypt(e) {
  15302. if ((e = Qt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  15303. for (var t = Xt(e.length), n = Xt(16), s = 0; s < e.length; s += 16) {
  15304. Zt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  15305. for (var r = 0; r < 16; r++) {
  15306. t[s + r] = n[r] ^ this._lastCipherblock[r];
  15307. }
  15308. Zt(e, this._lastCipherblock, 0, s, s + 16);
  15309. }
  15310. return t;
  15311. }
  15312. }]);
  15313. return bn;
  15314. }();
  15315. var kn = /*#__PURE__*/function () {
  15316. function kn(e, t, n) {
  15317. (0, _classCallCheck2.default)(this, kn);
  15318. if (!(this instanceof kn)) throw Error("AES must be instanitated with `new`");
  15319. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  15320. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  15321. } else t = Xt(16);
  15322. n || (n = 1), this.segmentSize = n, this._shiftRegister = Qt(t, !0), this._aes = new In(e);
  15323. }
  15324. (0, _createClass2.default)(kn, [{
  15325. key: "encrypt",
  15326. value: function encrypt(e) {
  15327. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  15328. for (var t, n = Qt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  15329. t = this._aes.encrypt(this._shiftRegister);
  15330. for (var r = 0; r < this.segmentSize; r++) {
  15331. n[s + r] ^= t[r];
  15332. }
  15333. Zt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Zt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  15334. }
  15335. return n;
  15336. }
  15337. }, {
  15338. key: "decrypt",
  15339. value: function decrypt(e) {
  15340. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  15341. for (var t, n = Qt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  15342. t = this._aes.encrypt(this._shiftRegister);
  15343. for (var r = 0; r < this.segmentSize; r++) {
  15344. n[s + r] ^= t[r];
  15345. }
  15346. Zt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Zt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  15347. }
  15348. return n;
  15349. }
  15350. }]);
  15351. return kn;
  15352. }();
  15353. var An = /*#__PURE__*/function () {
  15354. function An(e, t) {
  15355. (0, _classCallCheck2.default)(this, An);
  15356. if (!(this instanceof An)) throw Error("AES must be instanitated with `new`");
  15357. if (this.description = "Output Feedback", this.name = "ofb", t) {
  15358. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  15359. } else t = Xt(16);
  15360. this._lastPrecipher = Qt(t, !0), this._lastPrecipherIndex = 16, this._aes = new In(e);
  15361. }
  15362. (0, _createClass2.default)(An, [{
  15363. key: "encrypt",
  15364. value: function encrypt(e) {
  15365. for (var t = Qt(e, !0), n = 0; n < t.length; n++) {
  15366. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  15367. }
  15368. return t;
  15369. }
  15370. }, {
  15371. key: "decrypt",
  15372. value: function decrypt(e) {
  15373. return this.encrypt(e);
  15374. }
  15375. }]);
  15376. return An;
  15377. }();
  15378. var Cn = /*#__PURE__*/function () {
  15379. function Cn(e) {
  15380. (0, _classCallCheck2.default)(this, Cn);
  15381. if (!(this instanceof Cn)) throw Error("Counter must be instanitated with `new`");
  15382. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = Xt(16), this.setValue(e)) : this.setBytes(e);
  15383. }
  15384. (0, _createClass2.default)(Cn, [{
  15385. key: "setValue",
  15386. value: function setValue(e) {
  15387. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  15388. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  15389. for (var t = 15; t >= 0; --t) {
  15390. this._counter[t] = e % 256, e = parseInt(e / 256);
  15391. }
  15392. }
  15393. }, {
  15394. key: "setBytes",
  15395. value: function setBytes(e) {
  15396. if (16 != (e = Qt(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  15397. this._counter = e;
  15398. }
  15399. }, {
  15400. key: "increment",
  15401. value: function increment() {
  15402. for (var e = 15; e >= 0; e--) {
  15403. if (255 !== this._counter[e]) {
  15404. this._counter[e]++;
  15405. break;
  15406. }
  15407. this._counter[e] = 0;
  15408. }
  15409. }
  15410. }]);
  15411. return Cn;
  15412. }();
  15413. var Pn = /*#__PURE__*/function () {
  15414. function Pn(e, t) {
  15415. (0, _classCallCheck2.default)(this, Pn);
  15416. if (!(this instanceof Pn)) throw Error("AES must be instanitated with `new`");
  15417. this.description = "Counter", this.name = "ctr", t instanceof Cn || (t = new Cn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new In(e);
  15418. }
  15419. (0, _createClass2.default)(Pn, [{
  15420. key: "encrypt",
  15421. value: function encrypt(e) {
  15422. for (var t = Qt(e, !0), n = 0; n < t.length; n++) {
  15423. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  15424. }
  15425. return t;
  15426. }
  15427. }, {
  15428. key: "decrypt",
  15429. value: function decrypt(e) {
  15430. return this.encrypt(e);
  15431. }
  15432. }]);
  15433. return Pn;
  15434. }();
  15435. var Tn = {
  15436. AES: In,
  15437. Counter: Cn,
  15438. ModeOfOperation: {
  15439. ecb: Sn,
  15440. cbc: bn,
  15441. cfb: kn,
  15442. ofb: An,
  15443. ctr: Pn
  15444. },
  15445. utils: {
  15446. hex: nn,
  15447. utf8: tn
  15448. },
  15449. padding: {
  15450. pkcs7: {
  15451. pad: function pad(e) {
  15452. var t = 16 - (e = Qt(e, !0)).length % 16,
  15453. n = Xt(e.length + t);
  15454. Zt(e, n);
  15455. for (var s = e.length; s < n.length; s++) {
  15456. n[s] = t;
  15457. }
  15458. return n;
  15459. },
  15460. strip: function strip(e) {
  15461. if ((e = Qt(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  15462. var t = e[e.length - 1];
  15463. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  15464. for (var n = e.length - t, s = 0; s < t; s++) {
  15465. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  15466. }
  15467. var r = Xt(n);
  15468. return Zt(e, r, 0, 0, n), r;
  15469. }
  15470. }
  15471. },
  15472. _arrayTest: {
  15473. coerceArray: Qt,
  15474. createArray: Xt,
  15475. copyArray: Zt
  15476. }
  15477. };
  15478. function xn(e, t, n) {
  15479. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  15480. r = Tn.utils.utf8.toBytes(n),
  15481. i = Tn.utils.utf8.toBytes(e),
  15482. o = new Tn.ModeOfOperation.cbc(s, r),
  15483. a = Tn.padding.pkcs7.pad(i),
  15484. c = o.encrypt(a);
  15485. return uni.arrayBufferToBase64(c);
  15486. }
  15487. var On = {
  15488. code: 2e4,
  15489. message: "System error"
  15490. },
  15491. En = {
  15492. code: 20101,
  15493. message: "Invalid client"
  15494. },
  15495. Ln = {
  15496. code: 20102,
  15497. message: "Get encrypt key failed"
  15498. },
  15499. Rn = {
  15500. 10001: "Secure network is not supported on current playground or unimpsdk",
  15501. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  15502. 10009: "Encrypt payload failed",
  15503. 10010: "Decrypt response failed"
  15504. };
  15505. function Un(e) {
  15506. var _ref32 = e || {},
  15507. t = _ref32.errSubject,
  15508. n = _ref32.subject,
  15509. s = _ref32.errCode,
  15510. r = _ref32.errMsg,
  15511. i = _ref32.code,
  15512. o = _ref32.message,
  15513. a = _ref32.cause;
  15514. return new te({
  15515. subject: t || n || "uni-secure-network",
  15516. code: s || i || On.code,
  15517. message: r || o,
  15518. cause: a
  15519. });
  15520. }
  15521. var Nn,
  15522. Dn,
  15523. qn = null;
  15524. var Mn = /*#__PURE__*/function (_Vt) {
  15525. (0, _inherits2.default)(Mn, _Vt);
  15526. var _super8 = _createSuper(Mn);
  15527. function Mn(e) {
  15528. var _this15;
  15529. (0, _classCallCheck2.default)(this, Mn);
  15530. _this15 = _super8.call(this, e), _this15.clientType = "mp-weixin", _this15.userEncryptKey = null;
  15531. return _this15;
  15532. }
  15533. (0, _createClass2.default)(Mn, [{
  15534. key: "isLogin",
  15535. value: function isLogin() {
  15536. return !!this.scopedGlobalCache.mpWeixinCode || !!this.scopedGlobalCache.mpWeixinOpenid;
  15537. }
  15538. }, {
  15539. key: "prepare",
  15540. value: function () {
  15541. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43() {
  15542. return _regenerator.default.wrap(function _callee43$(_context43) {
  15543. while (1) {
  15544. switch (_context43.prev = _context43.next) {
  15545. case 0:
  15546. if (this.isLogin()) {
  15547. _context43.next = 7;
  15548. break;
  15549. }
  15550. if (this.scopedGlobalCache.initPromise) {
  15551. _context43.next = 3;
  15552. break;
  15553. }
  15554. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  15555. case 3:
  15556. _context43.next = 5;
  15557. return this.scopedGlobalCache.initPromise;
  15558. case 5:
  15559. if (this.isLogin()) {
  15560. _context43.next = 7;
  15561. break;
  15562. }
  15563. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  15564. case 7:
  15565. case "end":
  15566. return _context43.stop();
  15567. }
  15568. }
  15569. }, _callee43, this);
  15570. }));
  15571. function prepare() {
  15572. return _prepare2.apply(this, arguments);
  15573. }
  15574. return prepare;
  15575. }()
  15576. }, {
  15577. key: "getUserEncryptKey",
  15578. value: function () {
  15579. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44() {
  15580. var _this16 = this;
  15581. var e;
  15582. return _regenerator.default.wrap(function _callee44$(_context44) {
  15583. while (1) {
  15584. switch (_context44.prev = _context44.next) {
  15585. case 0:
  15586. if (!this.userEncryptKey) {
  15587. _context44.next = 2;
  15588. break;
  15589. }
  15590. return _context44.abrupt("return", this.userEncryptKey);
  15591. case 2:
  15592. if (!(qn && qn.expireTime)) {
  15593. _context44.next = 6;
  15594. break;
  15595. }
  15596. e = Date.now();
  15597. if (!(qn.expireTime - e > 0)) {
  15598. _context44.next = 6;
  15599. break;
  15600. }
  15601. return _context44.abrupt("return", (this.userEncryptKey = qn, this.userEncryptKey));
  15602. case 6:
  15603. return _context44.abrupt("return", new Promise(function (e, t) {
  15604. uni.getUserCryptoManager().getLatestUserKey({
  15605. success: function success(t) {
  15606. qn = t, _this16.userEncryptKey = t, e(_this16.userEncryptKey);
  15607. },
  15608. fail: function fail(e) {
  15609. t(Un(_objectSpread(_objectSpread({}, Ln), {}, {
  15610. cause: e
  15611. })));
  15612. }
  15613. });
  15614. }));
  15615. case 7:
  15616. case "end":
  15617. return _context44.stop();
  15618. }
  15619. }
  15620. }, _callee44, this);
  15621. }));
  15622. function getUserEncryptKey() {
  15623. return _getUserEncryptKey.apply(this, arguments);
  15624. }
  15625. return getUserEncryptKey;
  15626. }()
  15627. }, {
  15628. key: "getWxAppId",
  15629. value: function getWxAppId() {
  15630. return wx.getAccountInfoSync().miniProgram.appId;
  15631. }
  15632. }, {
  15633. key: "platformGetSignOption",
  15634. value: function () {
  15635. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45() {
  15636. var _yield$this$getUserEn, e, t, n;
  15637. return _regenerator.default.wrap(function _callee45$(_context45) {
  15638. while (1) {
  15639. switch (_context45.prev = _context45.next) {
  15640. case 0:
  15641. _context45.next = 2;
  15642. return this.getUserEncryptKey();
  15643. case 2:
  15644. _yield$this$getUserEn = _context45.sent;
  15645. e = _yield$this$getUserEn.encryptKey;
  15646. t = _yield$this$getUserEn.iv;
  15647. n = _yield$this$getUserEn.version;
  15648. return _context45.abrupt("return", {
  15649. verifyClientSign: xn(JSON.stringify({
  15650. data: JSON.stringify({}),
  15651. appId: this.appId,
  15652. deviceId: this.deviceId,
  15653. wxAppId: this.getWxAppId(),
  15654. simulator: "devtools" === ae().platform,
  15655. timestamp: Date.now()
  15656. }), e, t),
  15657. encryptKeyId: n,
  15658. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  15659. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  15660. });
  15661. case 7:
  15662. case "end":
  15663. return _context45.stop();
  15664. }
  15665. }
  15666. }, _callee45, this);
  15667. }));
  15668. function platformGetSignOption() {
  15669. return _platformGetSignOption.apply(this, arguments);
  15670. }
  15671. return platformGetSignOption;
  15672. }()
  15673. }, {
  15674. key: "platformEncryptData",
  15675. value: function () {
  15676. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46(e) {
  15677. var _yield$this$getUserEn2, t, n, s, r;
  15678. return _regenerator.default.wrap(function _callee46$(_context46) {
  15679. while (1) {
  15680. switch (_context46.prev = _context46.next) {
  15681. case 0:
  15682. _context46.next = 2;
  15683. return this.getUserEncryptKey();
  15684. case 2:
  15685. _yield$this$getUserEn2 = _context46.sent;
  15686. t = _yield$this$getUserEn2.encryptKey;
  15687. n = _yield$this$getUserEn2.iv;
  15688. s = _yield$this$getUserEn2.version;
  15689. r = {
  15690. secretType: this.secretType,
  15691. encryptKeyId: s,
  15692. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  15693. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  15694. };
  15695. return _context46.abrupt("return", this.secretType === Jt ? {
  15696. content: e,
  15697. _uniCloudOptions: r
  15698. } : {
  15699. content: xn(JSON.stringify({
  15700. data: JSON.stringify(e),
  15701. appId: this.appId,
  15702. deviceId: this.deviceId,
  15703. wxAppId: this.getWxAppId(),
  15704. simulator: "devtools" === ae().platform,
  15705. timestamp: Date.now()
  15706. }), t, n),
  15707. _uniCloudOptions: r
  15708. });
  15709. case 8:
  15710. case "end":
  15711. return _context46.stop();
  15712. }
  15713. }
  15714. }, _callee46, this);
  15715. }));
  15716. function platformEncryptData(_x42) {
  15717. return _platformEncryptData.apply(this, arguments);
  15718. }
  15719. return platformEncryptData;
  15720. }()
  15721. }, {
  15722. key: "platformDecryptResult",
  15723. value: function () {
  15724. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47(e) {
  15725. var t, _yield$this$getUserEn3, n, s;
  15726. return _regenerator.default.wrap(function _callee47$(_context47) {
  15727. while (1) {
  15728. switch (_context47.prev = _context47.next) {
  15729. case 0:
  15730. t = e.content;
  15731. _context47.next = 3;
  15732. return this.getUserEncryptKey();
  15733. case 3:
  15734. _yield$this$getUserEn3 = _context47.sent;
  15735. n = _yield$this$getUserEn3.encryptKey;
  15736. s = _yield$this$getUserEn3.iv;
  15737. return _context47.abrupt("return", JSON.parse(function (e, t, n) {
  15738. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  15739. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  15740. i = Tn.utils.utf8.toBytes(n),
  15741. o = new Tn.ModeOfOperation.cbc(r, i),
  15742. a = Tn.padding.pkcs7.strip(o.decrypt(s));
  15743. return Tn.utils.utf8.fromBytes(a);
  15744. }(t, n, s)));
  15745. case 7:
  15746. case "end":
  15747. return _context47.stop();
  15748. }
  15749. }
  15750. }, _callee47, this);
  15751. }));
  15752. function platformDecryptResult(_x43) {
  15753. return _platformDecryptResult.apply(this, arguments);
  15754. }
  15755. return platformDecryptResult;
  15756. }()
  15757. }, {
  15758. key: "isClientKeyNotFound",
  15759. value: function isClientKeyNotFound() {
  15760. return !1;
  15761. }
  15762. }]);
  15763. return Mn;
  15764. }(Vt);
  15765. function Fn(e) {
  15766. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  15767. n = {};
  15768. var _loop = function _loop(_s13) {
  15769. var r = t[_s13];
  15770. n[r] = function () {
  15771. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  15772. t[_key] = arguments[_key];
  15773. }
  15774. return new Promise(function (n, s) {
  15775. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  15776. var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  15777. e = _ref33.type,
  15778. t = _ref33.data,
  15779. r = _ref33.errCode,
  15780. i = _ref33.errMsg,
  15781. o = _ref33.errSubject,
  15782. a = _ref33.message;
  15783. "success" === e ? n(t) : s(Un({
  15784. errCode: r,
  15785. errMsg: Rn[r] || i || a,
  15786. errSubject: o
  15787. }));
  15788. }])) : s(Un({
  15789. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  15790. }));
  15791. });
  15792. };
  15793. };
  15794. for (var _s13 = 0; _s13 < t.length; _s13++) {
  15795. _loop(_s13);
  15796. }
  15797. return n;
  15798. }
  15799. var Kn = /*#__PURE__*/function (_Vt2) {
  15800. (0, _inherits2.default)(Kn, _Vt2);
  15801. var _super9 = _createSuper(Kn);
  15802. function Kn(e) {
  15803. var _this17;
  15804. (0, _classCallCheck2.default)(this, Kn);
  15805. _this17 = _super9.call(this, e), _this17.clientType = "app", _this17.appUtils = _objectSpread({}, Fn(uni.requireNativePlugin("plus"))), _this17.systemInfo = Nn || (Nn = ae());
  15806. return _this17;
  15807. }
  15808. (0, _createClass2.default)(Kn, [{
  15809. key: "hasClientKey",
  15810. value: function () {
  15811. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48() {
  15812. return _regenerator.default.wrap(function _callee48$(_context48) {
  15813. while (1) {
  15814. switch (_context48.prev = _context48.next) {
  15815. case 0:
  15816. _context48.next = 2;
  15817. return this.appUtils.hasClientKey({
  15818. provider: this.provider,
  15819. spaceId: this.spaceId
  15820. });
  15821. case 2:
  15822. this._hasClientKey = _context48.sent;
  15823. return _context48.abrupt("return", this._hasClientKey);
  15824. case 4:
  15825. case "end":
  15826. return _context48.stop();
  15827. }
  15828. }
  15829. }, _callee48, this);
  15830. }));
  15831. function hasClientKey() {
  15832. return _hasClientKey.apply(this, arguments);
  15833. }
  15834. return hasClientKey;
  15835. }()
  15836. }, {
  15837. key: "getAppClientKey",
  15838. value: function () {
  15839. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  15840. var _yield$this$appUtils$, e, t, n, s, r;
  15841. return _regenerator.default.wrap(function _callee49$(_context49) {
  15842. while (1) {
  15843. switch (_context49.prev = _context49.next) {
  15844. case 0:
  15845. _context49.next = 2;
  15846. return this.appUtils.encryptGetClientKeyPayload({
  15847. data: JSON.stringify({})
  15848. });
  15849. case 2:
  15850. _yield$this$appUtils$ = _context49.sent;
  15851. e = _yield$this$appUtils$.data;
  15852. t = _yield$this$appUtils$.key;
  15853. _context49.next = 7;
  15854. return this.uniCloudIns.callFunction({
  15855. name: "DCloud-clientDB",
  15856. data: {
  15857. redirectTo: "encryption",
  15858. action: "getAppClientKey",
  15859. data: e,
  15860. key: t
  15861. }
  15862. });
  15863. case 7:
  15864. _context49.t0 = _context49.sent.result;
  15865. if (_context49.t0) {
  15866. _context49.next = 10;
  15867. break;
  15868. }
  15869. _context49.t0 = {};
  15870. case 10:
  15871. n = _context49.t0;
  15872. if (!(0 !== n.errCode)) {
  15873. _context49.next = 13;
  15874. break;
  15875. }
  15876. throw function (e) {
  15877. return new te({
  15878. subject: e.errSubject || "uni-secure-network",
  15879. code: e.errCode || e.code || On.code,
  15880. message: e.errMsg || e.message
  15881. });
  15882. }(n);
  15883. case 13:
  15884. s = n.clientKey, r = n.key;
  15885. _context49.next = 16;
  15886. return this.appUtils.setClientKey({
  15887. provider: this.provider,
  15888. spaceId: this.spaceId,
  15889. clientKey: s,
  15890. key: r
  15891. });
  15892. case 16:
  15893. case "end":
  15894. return _context49.stop();
  15895. }
  15896. }
  15897. }, _callee49, this);
  15898. }));
  15899. function getAppClientKey() {
  15900. return _getAppClientKey.apply(this, arguments);
  15901. }
  15902. return getAppClientKey;
  15903. }()
  15904. }, {
  15905. key: "ensureClientKey",
  15906. value: function () {
  15907. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50() {
  15908. var _this18 = this;
  15909. var _ref34,
  15910. _ref34$forceUpdate,
  15911. e,
  15912. _args50 = arguments;
  15913. return _regenerator.default.wrap(function _callee50$(_context50) {
  15914. while (1) {
  15915. switch (_context50.prev = _context50.next) {
  15916. case 0:
  15917. _ref34 = _args50.length > 0 && _args50[0] !== undefined ? _args50[0] : {}, _ref34$forceUpdate = _ref34.forceUpdate, e = _ref34$forceUpdate === void 0 ? !1 : _ref34$forceUpdate;
  15918. _context50.t1 = !0;
  15919. _context50.next = 4;
  15920. return this.hasClientKey();
  15921. case 4:
  15922. _context50.t2 = _context50.sent;
  15923. _context50.t0 = _context50.t1 !== _context50.t2;
  15924. if (_context50.t0) {
  15925. _context50.next = 8;
  15926. break;
  15927. }
  15928. _context50.t0 = e;
  15929. case 8:
  15930. if (!_context50.t0) {
  15931. _context50.next = 10;
  15932. break;
  15933. }
  15934. return _context50.abrupt("return", (e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus === h || !e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus !== p || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  15935. _this18.scopedGlobalCache.initStatus = d;
  15936. }).catch(function (e) {
  15937. throw _this18.scopedGlobalCache.initStatus = p, e;
  15938. }), this.scopedGlobalCache.initStatus = h), this.scopedGlobalCache.initPromise));
  15939. case 10:
  15940. case "end":
  15941. return _context50.stop();
  15942. }
  15943. }
  15944. }, _callee50, this);
  15945. }));
  15946. function ensureClientKey() {
  15947. return _ensureClientKey.apply(this, arguments);
  15948. }
  15949. return ensureClientKey;
  15950. }()
  15951. }, {
  15952. key: "prepare",
  15953. value: function () {
  15954. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51() {
  15955. var _ref35,
  15956. _ref35$forceUpdate,
  15957. e,
  15958. _args51 = arguments;
  15959. return _regenerator.default.wrap(function _callee51$(_context51) {
  15960. while (1) {
  15961. switch (_context51.prev = _context51.next) {
  15962. case 0:
  15963. _ref35 = _args51.length > 0 && _args51[0] !== undefined ? _args51[0] : {}, _ref35$forceUpdate = _ref35.forceUpdate, e = _ref35$forceUpdate === void 0 ? !1 : _ref35$forceUpdate;
  15964. _context51.next = 3;
  15965. return this.ensureClientKey({
  15966. forceUpdate: e
  15967. });
  15968. case 3:
  15969. case "end":
  15970. return _context51.stop();
  15971. }
  15972. }
  15973. }, _callee51, this);
  15974. }));
  15975. function prepare() {
  15976. return _prepare3.apply(this, arguments);
  15977. }
  15978. return prepare;
  15979. }()
  15980. }, {
  15981. key: "platformGetSignOption",
  15982. value: function () {
  15983. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52() {
  15984. var _yield$this$appUtils$2, e, t;
  15985. return _regenerator.default.wrap(function _callee52$(_context52) {
  15986. while (1) {
  15987. switch (_context52.prev = _context52.next) {
  15988. case 0:
  15989. _context52.next = 2;
  15990. return this.appUtils.encrypt({
  15991. provider: this.provider,
  15992. spaceId: this.spaceId,
  15993. data: JSON.stringify({})
  15994. });
  15995. case 2:
  15996. _yield$this$appUtils$2 = _context52.sent;
  15997. e = _yield$this$appUtils$2.data;
  15998. t = _yield$this$appUtils$2.key;
  15999. return _context52.abrupt("return", {
  16000. verifyClientSign: e,
  16001. encryptKeyId: t
  16002. });
  16003. case 6:
  16004. case "end":
  16005. return _context52.stop();
  16006. }
  16007. }
  16008. }, _callee52, this);
  16009. }));
  16010. function platformGetSignOption() {
  16011. return _platformGetSignOption2.apply(this, arguments);
  16012. }
  16013. return platformGetSignOption;
  16014. }()
  16015. }, {
  16016. key: "platformEncryptData",
  16017. value: function () {
  16018. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53(e) {
  16019. var _yield$this$appUtils$3, t, n, s;
  16020. return _regenerator.default.wrap(function _callee53$(_context53) {
  16021. while (1) {
  16022. switch (_context53.prev = _context53.next) {
  16023. case 0:
  16024. _context53.next = 2;
  16025. return this.appUtils.encrypt({
  16026. provider: this.provider,
  16027. spaceId: this.spaceId,
  16028. data: JSON.stringify(e)
  16029. });
  16030. case 2:
  16031. _yield$this$appUtils$3 = _context53.sent;
  16032. t = _yield$this$appUtils$3.data;
  16033. n = _yield$this$appUtils$3.key;
  16034. s = {
  16035. secretType: this.secretType,
  16036. encryptKeyId: n
  16037. };
  16038. return _context53.abrupt("return", this.secretType === Jt ? {
  16039. content: e,
  16040. _uniCloudOptions: s
  16041. } : {
  16042. content: t,
  16043. _uniCloudOptions: s
  16044. });
  16045. case 7:
  16046. case "end":
  16047. return _context53.stop();
  16048. }
  16049. }
  16050. }, _callee53, this);
  16051. }));
  16052. function platformEncryptData(_x44) {
  16053. return _platformEncryptData2.apply(this, arguments);
  16054. }
  16055. return platformEncryptData;
  16056. }()
  16057. }, {
  16058. key: "platformDecryptResult",
  16059. value: function () {
  16060. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54(e) {
  16061. var t, _e$_uniCloudOptions, n, s, r;
  16062. return _regenerator.default.wrap(function _callee54$(_context54) {
  16063. while (1) {
  16064. switch (_context54.prev = _context54.next) {
  16065. case 0:
  16066. t = e.content;
  16067. _e$_uniCloudOptions = e._uniCloudOptions;
  16068. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  16069. s = n.encryptKeyId;
  16070. _context54.next = 6;
  16071. return this.appUtils.decrypt({
  16072. provider: this.provider,
  16073. spaceId: this.spaceId,
  16074. data: t,
  16075. key: s
  16076. });
  16077. case 6:
  16078. r = _context54.sent;
  16079. return _context54.abrupt("return", JSON.parse(r.data));
  16080. case 8:
  16081. case "end":
  16082. return _context54.stop();
  16083. }
  16084. }
  16085. }, _callee54, this);
  16086. }));
  16087. function platformDecryptResult(_x45) {
  16088. return _platformDecryptResult2.apply(this, arguments);
  16089. }
  16090. return platformDecryptResult;
  16091. }()
  16092. }, {
  16093. key: "isClientKeyNotFound",
  16094. value: function isClientKeyNotFound() {
  16095. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16096. var t = e.result || {};
  16097. return 70009 === t.errCode && "uni-secure-network" === t.errSubject;
  16098. }
  16099. }]);
  16100. return Kn;
  16101. }(Vt);
  16102. function jn() {
  16103. var _ref36 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16104. e = _ref36.secretType;
  16105. return e === Ht || e === Jt || e === zt;
  16106. }
  16107. function $n() {
  16108. var _ref37 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16109. e = _ref37.name,
  16110. _ref37$data = _ref37.data,
  16111. t = _ref37$data === void 0 ? {} : _ref37$data;
  16112. return "app" === C && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  16113. }
  16114. function Bn() {
  16115. var _ref38 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16116. e = _ref38.provider,
  16117. t = _ref38.spaceId,
  16118. n = _ref38.functionName;
  16119. var _ae = ae(),
  16120. s = _ae.appId,
  16121. r = _ae.uniPlatform,
  16122. i = _ae.osName;
  16123. var o = r;
  16124. "app" === r && (o = i);
  16125. var a = function () {
  16126. var _ref39 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16127. e = _ref39.provider,
  16128. t = _ref39.spaceId;
  16129. var n = A;
  16130. if (!n) return {};
  16131. e = function (e) {
  16132. return "tencent" === e ? "tcb" : e;
  16133. }(e);
  16134. var s = n.find(function (n) {
  16135. return n.provider === e && n.spaceId === t;
  16136. });
  16137. return s && s.config;
  16138. }({
  16139. provider: e,
  16140. spaceId: t
  16141. });
  16142. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  16143. var c = a.accessControl.function || {},
  16144. u = Object.keys(c);
  16145. if (0 === u.length) return !0;
  16146. var l = function (e, t) {
  16147. var n, s, r;
  16148. for (var _i2 = 0; _i2 < e.length; _i2++) {
  16149. var _o2 = e[_i2];
  16150. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  16151. return e.trim();
  16152. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  16153. }
  16154. return n || s || r;
  16155. }(u, n);
  16156. if (!l) return !1;
  16157. if ((c[l] || []).find(function () {
  16158. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  16159. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  16160. })) return !0;
  16161. throw console.error("\u6B64\u5E94\u7528[appId: ".concat(s, ", platform: ").concat(o, "]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")), Un(En);
  16162. }
  16163. function Wn(_ref40) {
  16164. var e = _ref40.functionName,
  16165. t = _ref40.result,
  16166. n = _ref40.logPvd;
  16167. if (S && this.__dev__.debugLog && t && t.requestId) {
  16168. var _s14 = JSON.stringify({
  16169. spaceId: this.config.spaceId,
  16170. functionName: e,
  16171. requestId: t.requestId
  16172. });
  16173. console.log("[".concat(n, "-request]").concat(_s14, "[/").concat(n, "-request]"));
  16174. }
  16175. }
  16176. function Hn(e) {
  16177. var t = e.callFunction,
  16178. n = function n(_n9) {
  16179. var _this19 = this;
  16180. var s = _n9.name;
  16181. _n9.data = Mt.call(e, {
  16182. data: _n9.data
  16183. });
  16184. var r = {
  16185. aliyun: "aliyun",
  16186. tencent: "tcb",
  16187. tcb: "tcb",
  16188. alipay: "alipay",
  16189. dcloud: "dcloud"
  16190. }[this.config.provider],
  16191. i = jn(_n9),
  16192. o = $n(_n9),
  16193. a = i || o;
  16194. return t.call(this, _n9).then(function (e) {
  16195. return e.errCode = 0, !a && Wn.call(_this19, {
  16196. functionName: s,
  16197. result: e,
  16198. logPvd: r
  16199. }), Promise.resolve(e);
  16200. }, function (e) {
  16201. return !a && Wn.call(_this19, {
  16202. functionName: s,
  16203. result: e,
  16204. logPvd: r
  16205. }), e && e.message && (e.message = function () {
  16206. var _ref41 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16207. _ref41$message = _ref41.message,
  16208. e = _ref41$message === void 0 ? "" : _ref41$message,
  16209. _ref41$extraInfo = _ref41.extraInfo,
  16210. t = _ref41$extraInfo === void 0 ? {} : _ref41$extraInfo,
  16211. _ref41$formatter = _ref41.formatter,
  16212. n = _ref41$formatter === void 0 ? [] : _ref41$formatter;
  16213. for (var _s15 = 0; _s15 < n.length; _s15++) {
  16214. var _n$_s = n[_s15],
  16215. _r6 = _n$_s.rule,
  16216. _i3 = _n$_s.content,
  16217. _o3 = _n$_s.mode,
  16218. _a = e.match(_r6);
  16219. if (!_a) continue;
  16220. var _c = _i3;
  16221. for (var _e19 = 1; _e19 < _a.length; _e19++) {
  16222. _c = Bt(_c, "{$".concat(_e19, "}"), _a[_e19]);
  16223. }
  16224. for (var _e20 in t) {
  16225. _c = Bt(_c, "{".concat(_e20, "}"), t[_e20]);
  16226. }
  16227. return "replace" === _o3 ? _c : e + _c;
  16228. }
  16229. return e;
  16230. }({
  16231. message: "[".concat(_n9.name, "]: ").concat(e.message),
  16232. formatter: Kt,
  16233. extraInfo: {
  16234. functionName: s
  16235. }
  16236. })), Promise.reject(e);
  16237. });
  16238. };
  16239. e.callFunction = function (t) {
  16240. var _e$config = e.config,
  16241. s = _e$config.provider,
  16242. r = _e$config.spaceId,
  16243. i = t.name;
  16244. var o, a;
  16245. if (t.data = t.data || {}, S && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && T ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = Ft), o = Ft) : o = n, o = o.bind(e), $n(t)) a = n.call(e, t);else if (function (_ref42) {
  16246. var e = _ref42.name,
  16247. _ref42$data = _ref42.data,
  16248. t = _ref42$data === void 0 ? {} : _ref42$data;
  16249. return "mp-weixin" === C && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  16250. }(t)) a = o.call(e, t);else if (jn(t)) {
  16251. a = new Dn({
  16252. secretType: t.secretType,
  16253. uniCloudIns: e
  16254. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  16255. } else if (Bn({
  16256. provider: s,
  16257. spaceId: r,
  16258. functionName: i
  16259. })) {
  16260. a = new Dn({
  16261. secretType: t.secretType,
  16262. uniCloudIns: e
  16263. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  16264. } else a = o(t);
  16265. return Object.defineProperty(a, "result", {
  16266. get: function get() {
  16267. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  16268. }
  16269. }), a.then(function (e) {
  16270. return "undefined" != typeof UTSJSONObject && (e.result = new UTSJSONObject(e.result)), e;
  16271. });
  16272. };
  16273. }
  16274. Dn = "mp-weixin" !== C && "app" !== C ? /*#__PURE__*/function () {
  16275. function _class2() {
  16276. (0, _classCallCheck2.default)(this, _class2);
  16277. throw Un({
  16278. message: "Platform ".concat(C, " is not supported by secure network")
  16279. });
  16280. }
  16281. return (0, _createClass2.default)(_class2);
  16282. }() : k ? "mp-weixin" === C ? Mn : Kn : /*#__PURE__*/function () {
  16283. function _class3() {
  16284. (0, _classCallCheck2.default)(this, _class3);
  16285. throw Un({
  16286. message: "Platform ".concat(C, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  16287. });
  16288. }
  16289. return (0, _createClass2.default)(_class3);
  16290. }();
  16291. var Jn = Symbol("CLIENT_DB_INTERNAL");
  16292. function zn(e, t) {
  16293. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Jn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  16294. get: function get(e, n, s) {
  16295. if ("_uniClient" === n) return null;
  16296. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  16297. if (n in e || "string" != typeof n) {
  16298. var _t12 = e[n];
  16299. return "function" == typeof _t12 ? _t12.bind(e) : _t12;
  16300. }
  16301. return t.get(e, n, s);
  16302. }
  16303. });
  16304. }
  16305. function Vn(e) {
  16306. return {
  16307. on: function on(t, n) {
  16308. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  16309. },
  16310. off: function off(t, n) {
  16311. e[t] = e[t] || [];
  16312. var s = e[t].indexOf(n);
  16313. -1 !== s && e[t].splice(s, 1);
  16314. }
  16315. };
  16316. }
  16317. var Gn = ["db.Geo", "db.command", "command.aggregate"];
  16318. function Yn(e, t) {
  16319. return Gn.indexOf("".concat(e, ".").concat(t)) > -1;
  16320. }
  16321. function Qn(e) {
  16322. switch (f(e)) {
  16323. case "array":
  16324. return e.map(function (e) {
  16325. return Qn(e);
  16326. });
  16327. case "object":
  16328. return e._internalType === Jn || Object.keys(e).forEach(function (t) {
  16329. e[t] = Qn(e[t]);
  16330. }), e;
  16331. case "regexp":
  16332. return {
  16333. $regexp: {
  16334. source: e.source,
  16335. flags: e.flags
  16336. }
  16337. };
  16338. case "date":
  16339. return {
  16340. $date: e.toISOString()
  16341. };
  16342. default:
  16343. return e;
  16344. }
  16345. }
  16346. function Xn(e) {
  16347. return e && e.content && e.content.$method;
  16348. }
  16349. var Zn = /*#__PURE__*/function () {
  16350. function Zn(e, t, n) {
  16351. (0, _classCallCheck2.default)(this, Zn);
  16352. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  16353. }
  16354. (0, _createClass2.default)(Zn, [{
  16355. key: "toJSON",
  16356. value: function toJSON() {
  16357. var e = this;
  16358. var t = [e.content];
  16359. for (; e.prevStage;) {
  16360. e = e.prevStage, t.push(e.content);
  16361. }
  16362. return {
  16363. $db: t.reverse().map(function (e) {
  16364. return {
  16365. $method: e.$method,
  16366. $param: Qn(e.$param)
  16367. };
  16368. })
  16369. };
  16370. }
  16371. }, {
  16372. key: "toString",
  16373. value: function toString() {
  16374. return JSON.stringify(this.toJSON());
  16375. }
  16376. }, {
  16377. key: "getAction",
  16378. value: function getAction() {
  16379. var e = this.toJSON().$db.find(function (e) {
  16380. return "action" === e.$method;
  16381. });
  16382. return e && e.$param && e.$param[0];
  16383. }
  16384. }, {
  16385. key: "getCommand",
  16386. value: function getCommand() {
  16387. return {
  16388. $db: this.toJSON().$db.filter(function (e) {
  16389. return "action" !== e.$method;
  16390. })
  16391. };
  16392. }
  16393. }, {
  16394. key: "isAggregate",
  16395. get: function get() {
  16396. var e = this;
  16397. for (; e;) {
  16398. var t = Xn(e),
  16399. _n10 = Xn(e.prevStage);
  16400. if ("aggregate" === t && "collection" === _n10 || "pipeline" === t) return !0;
  16401. e = e.prevStage;
  16402. }
  16403. return !1;
  16404. }
  16405. }, {
  16406. key: "isCommand",
  16407. get: function get() {
  16408. var e = this;
  16409. for (; e;) {
  16410. if ("command" === Xn(e)) return !0;
  16411. e = e.prevStage;
  16412. }
  16413. return !1;
  16414. }
  16415. }, {
  16416. key: "isAggregateCommand",
  16417. get: function get() {
  16418. var e = this;
  16419. for (; e;) {
  16420. var t = Xn(e),
  16421. _n11 = Xn(e.prevStage);
  16422. if ("aggregate" === t && "command" === _n11) return !0;
  16423. e = e.prevStage;
  16424. }
  16425. return !1;
  16426. }
  16427. }, {
  16428. key: "getNextStageFn",
  16429. value: function getNextStageFn(e) {
  16430. var t = this;
  16431. return function () {
  16432. return es({
  16433. $method: e,
  16434. $param: Qn(Array.from(arguments))
  16435. }, t, t._database);
  16436. };
  16437. }
  16438. }, {
  16439. key: "count",
  16440. get: function get() {
  16441. return this.isAggregate ? this.getNextStageFn("count") : function () {
  16442. return this._send("count", Array.from(arguments));
  16443. };
  16444. }
  16445. }, {
  16446. key: "remove",
  16447. get: function get() {
  16448. return this.isCommand ? this.getNextStageFn("remove") : function () {
  16449. return this._send("remove", Array.from(arguments));
  16450. };
  16451. }
  16452. }, {
  16453. key: "get",
  16454. value: function get() {
  16455. return this._send("get", Array.from(arguments));
  16456. }
  16457. }, {
  16458. key: "add",
  16459. get: function get() {
  16460. return this.isCommand ? this.getNextStageFn("add") : function () {
  16461. return this._send("add", Array.from(arguments));
  16462. };
  16463. }
  16464. }, {
  16465. key: "update",
  16466. value: function update() {
  16467. return this._send("update", Array.from(arguments));
  16468. }
  16469. }, {
  16470. key: "end",
  16471. value: function end() {
  16472. return this._send("end", Array.from(arguments));
  16473. }
  16474. }, {
  16475. key: "set",
  16476. get: function get() {
  16477. return this.isCommand ? this.getNextStageFn("set") : function () {
  16478. throw new Error("JQL禁止使用set方法");
  16479. };
  16480. }
  16481. }, {
  16482. key: "_send",
  16483. value: function _send(e, t) {
  16484. var n = this.getAction(),
  16485. s = this.getCommand();
  16486. if (s.$db.push({
  16487. $method: e,
  16488. $param: Qn(t)
  16489. }), S) {
  16490. var _e21 = s.$db.find(function (e) {
  16491. return "collection" === e.$method;
  16492. }),
  16493. _t13 = _e21 && _e21.$param;
  16494. _t13 && 1 === _t13.length && "string" == typeof _e21.$param[0] && _e21.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  16495. }
  16496. return this._database._callCloudFunction({
  16497. action: n,
  16498. command: s
  16499. });
  16500. }
  16501. }]);
  16502. return Zn;
  16503. }();
  16504. function es(e, t, n) {
  16505. return zn(new Zn(e, t, n), {
  16506. get: function get(e, t) {
  16507. var s = "db";
  16508. return e && e.content && (s = e.content.$method), Yn(s, t) ? es({
  16509. $method: t
  16510. }, e, n) : function () {
  16511. return es({
  16512. $method: t,
  16513. $param: Qn(Array.from(arguments))
  16514. }, e, n);
  16515. };
  16516. }
  16517. });
  16518. }
  16519. function ts(_ref43) {
  16520. var e = _ref43.path,
  16521. t = _ref43.method;
  16522. return /*#__PURE__*/function () {
  16523. function _class4() {
  16524. (0, _classCallCheck2.default)(this, _class4);
  16525. this.param = Array.from(arguments);
  16526. }
  16527. (0, _createClass2.default)(_class4, [{
  16528. key: "toJSON",
  16529. value: function toJSON() {
  16530. return {
  16531. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  16532. return {
  16533. $method: e
  16534. };
  16535. })), [{
  16536. $method: t,
  16537. $param: this.param
  16538. }])
  16539. };
  16540. }
  16541. }, {
  16542. key: "toString",
  16543. value: function toString() {
  16544. return JSON.stringify(this.toJSON());
  16545. }
  16546. }]);
  16547. return _class4;
  16548. }();
  16549. }
  16550. function ns(e) {
  16551. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16552. return zn(new e(t), {
  16553. get: function get(e, t) {
  16554. return Yn("db", t) ? es({
  16555. $method: t
  16556. }, null, e) : function () {
  16557. return es({
  16558. $method: t,
  16559. $param: Qn(Array.from(arguments))
  16560. }, null, e);
  16561. };
  16562. }
  16563. });
  16564. }
  16565. var ss = /*#__PURE__*/function (_ref44) {
  16566. (0, _inherits2.default)(ss, _ref44);
  16567. var _super10 = _createSuper(ss);
  16568. function ss() {
  16569. (0, _classCallCheck2.default)(this, ss);
  16570. return _super10.apply(this, arguments);
  16571. }
  16572. (0, _createClass2.default)(ss, [{
  16573. key: "_parseResult",
  16574. value: function _parseResult(e) {
  16575. return this._isJQL ? e.result : e;
  16576. }
  16577. }, {
  16578. key: "_callCloudFunction",
  16579. value: function _callCloudFunction(_ref45) {
  16580. var _this20 = this;
  16581. var e = _ref45.action,
  16582. t = _ref45.command,
  16583. n = _ref45.multiCommand,
  16584. s = _ref45.queryList;
  16585. function r(e, t) {
  16586. if (n && s) for (var _n12 = 0; _n12 < s.length; _n12++) {
  16587. var _r7 = s[_n12];
  16588. _r7.udb && "function" == typeof _r7.udb.setResult && (t ? _r7.udb.setResult(t) : _r7.udb.setResult(e.result.dataList[_n12]));
  16589. }
  16590. }
  16591. var i = this,
  16592. o = this._isJQL ? "databaseForJQL" : "database";
  16593. function a(e) {
  16594. return i._callback("error", [e]), q(M(o, "fail"), e).then(function () {
  16595. return q(M(o, "complete"), e);
  16596. }).then(function () {
  16597. return r(null, e), Y(j, {
  16598. type: W,
  16599. content: e
  16600. }), Promise.reject(e);
  16601. });
  16602. }
  16603. var c = q(M(o, "invoke")),
  16604. u = this._uniClient;
  16605. return c.then(function () {
  16606. return u.callFunction({
  16607. name: "DCloud-clientDB",
  16608. type: l,
  16609. data: {
  16610. action: e,
  16611. command: t,
  16612. multiCommand: n
  16613. }
  16614. });
  16615. }).then(function (e) {
  16616. var _e$result = e.result,
  16617. t = _e$result.code,
  16618. n = _e$result.message,
  16619. s = _e$result.token,
  16620. c = _e$result.tokenExpired,
  16621. _e$result$systemInfo = _e$result.systemInfo,
  16622. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  16623. if (u) for (var _e22 = 0; _e22 < u.length; _e22++) {
  16624. var _u$_e = u[_e22],
  16625. _t14 = _u$_e.level,
  16626. _n13 = _u$_e.message,
  16627. _s16 = _u$_e.detail,
  16628. _r8 = console["app" === C && "warn" === _t14 ? "error" : _t14] || console.log;
  16629. var _i4 = "[System Info]" + _n13;
  16630. _s16 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s16)), _r8(_i4);
  16631. }
  16632. if (t) {
  16633. return a(new te({
  16634. code: t,
  16635. message: n,
  16636. requestId: e.requestId
  16637. }));
  16638. }
  16639. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (re({
  16640. token: s,
  16641. tokenExpired: c
  16642. }), _this20._callbackAuth("refreshToken", [{
  16643. token: s,
  16644. tokenExpired: c
  16645. }]), _this20._callback("refreshToken", [{
  16646. token: s,
  16647. tokenExpired: c
  16648. }]), Y(B, {
  16649. token: s,
  16650. tokenExpired: c
  16651. }));
  16652. var l = [{
  16653. prop: "affectedDocs",
  16654. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  16655. }, {
  16656. prop: "code",
  16657. tips: "code不再推荐使用,请使用errCode替代"
  16658. }, {
  16659. prop: "message",
  16660. tips: "message不再推荐使用,请使用errMsg替代"
  16661. }];
  16662. var _loop2 = function _loop2(_t15) {
  16663. var _l$_t = l[_t15],
  16664. n = _l$_t.prop,
  16665. s = _l$_t.tips;
  16666. if (n in e.result) {
  16667. var _t16 = e.result[n];
  16668. Object.defineProperty(e.result, n, {
  16669. get: function get() {
  16670. return console.warn(s), _t16;
  16671. }
  16672. });
  16673. }
  16674. };
  16675. for (var _t15 = 0; _t15 < l.length; _t15++) {
  16676. _loop2(_t15);
  16677. }
  16678. return function (e) {
  16679. return q(M(o, "success"), e).then(function () {
  16680. return q(M(o, "complete"), e);
  16681. }).then(function () {
  16682. r(e, null);
  16683. var t = i._parseResult(e);
  16684. return Y(j, {
  16685. type: W,
  16686. content: t
  16687. }), Promise.resolve(t);
  16688. });
  16689. }(e);
  16690. }, function (e) {
  16691. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  16692. return a(new te({
  16693. code: e.code || "SYSTEM_ERROR",
  16694. message: e.message,
  16695. requestId: e.requestId
  16696. }));
  16697. });
  16698. }
  16699. }]);
  16700. return ss;
  16701. }( /*#__PURE__*/function () {
  16702. function _class5() {
  16703. var _ref46 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16704. _ref46$uniClient = _ref46.uniClient,
  16705. e = _ref46$uniClient === void 0 ? {} : _ref46$uniClient,
  16706. _ref46$isJQL = _ref46.isJQL,
  16707. t = _ref46$isJQL === void 0 ? !1 : _ref46$isJQL;
  16708. (0, _classCallCheck2.default)(this, _class5);
  16709. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e._isDefault && (this._dbCallBacks = L("_globalUniCloudDatabaseCallback")), t || (this.auth = Vn(this._authCallBacks)), this._isJQL = t, Object.assign(this, Vn(this._dbCallBacks)), this.env = zn({}, {
  16710. get: function get(e, t) {
  16711. return {
  16712. $env: t
  16713. };
  16714. }
  16715. }), this.Geo = zn({}, {
  16716. get: function get(e, t) {
  16717. return ts({
  16718. path: ["Geo"],
  16719. method: t
  16720. });
  16721. }
  16722. }), this.serverDate = ts({
  16723. path: [],
  16724. method: "serverDate"
  16725. }), this.RegExp = ts({
  16726. path: [],
  16727. method: "RegExp"
  16728. });
  16729. }
  16730. (0, _createClass2.default)(_class5, [{
  16731. key: "getCloudEnv",
  16732. value: function getCloudEnv(e) {
  16733. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  16734. return {
  16735. $env: e.replace("$cloudEnv_", "")
  16736. };
  16737. }
  16738. }, {
  16739. key: "_callback",
  16740. value: function _callback(e, t) {
  16741. var n = this._dbCallBacks;
  16742. n[e] && n[e].forEach(function (e) {
  16743. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  16744. });
  16745. }
  16746. }, {
  16747. key: "_callbackAuth",
  16748. value: function _callbackAuth(e, t) {
  16749. var n = this._authCallBacks;
  16750. n[e] && n[e].forEach(function (e) {
  16751. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  16752. });
  16753. }
  16754. }, {
  16755. key: "multiSend",
  16756. value: function multiSend() {
  16757. var e = Array.from(arguments),
  16758. t = e.map(function (e) {
  16759. var t = e.getAction(),
  16760. n = e.getCommand();
  16761. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  16762. return {
  16763. action: t,
  16764. command: n
  16765. };
  16766. });
  16767. return this._callCloudFunction({
  16768. multiCommand: t,
  16769. queryList: e
  16770. });
  16771. }
  16772. }]);
  16773. return _class5;
  16774. }());
  16775. var rs = "token无效,跳转登录页面",
  16776. is = "token过期,跳转登录页面",
  16777. os = {
  16778. TOKEN_INVALID_TOKEN_EXPIRED: is,
  16779. TOKEN_INVALID_INVALID_CLIENTID: rs,
  16780. TOKEN_INVALID: rs,
  16781. TOKEN_INVALID_WRONG_TOKEN: rs,
  16782. TOKEN_INVALID_ANONYMOUS_USER: rs
  16783. },
  16784. as = {
  16785. "uni-id-token-expired": is,
  16786. "uni-id-check-token-failed": rs,
  16787. "uni-id-token-not-exist": rs,
  16788. "uni-id-check-device-feature-failed": rs
  16789. };
  16790. function cs(e, t) {
  16791. var n = "";
  16792. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  16793. }
  16794. function us() {
  16795. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16796. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  16797. var n = [],
  16798. s = [];
  16799. return e.forEach(function (e) {
  16800. !0 === e.needLogin ? n.push(cs(t, e.path)) : !1 === e.needLogin && s.push(cs(t, e.path));
  16801. }), {
  16802. needLoginPage: n,
  16803. notNeedLoginPage: s
  16804. };
  16805. }
  16806. function ls(e) {
  16807. return e.split("?")[0].replace(/^\//, "");
  16808. }
  16809. function hs() {
  16810. return function (e) {
  16811. var t = e && e.$page && e.$page.fullPath || "";
  16812. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  16813. }(function () {
  16814. var e = getCurrentPages();
  16815. return e[e.length - 1];
  16816. }());
  16817. }
  16818. function ds() {
  16819. return ls(hs());
  16820. }
  16821. function ps() {
  16822. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  16823. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16824. if (!e) return !1;
  16825. if (!(t && t.list && t.list.length)) return !1;
  16826. var n = t.list,
  16827. s = ls(e);
  16828. return n.some(function (e) {
  16829. return e.pagePath === s;
  16830. });
  16831. }
  16832. var fs = !!_pages.default.uniIdRouter;
  16833. var _ref47 = function () {
  16834. var _ref28 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  16835. _ref28$pages = _ref28.pages,
  16836. t = _ref28$pages === void 0 ? [] : _ref28$pages,
  16837. _ref28$subPackages = _ref28.subPackages,
  16838. n = _ref28$subPackages === void 0 ? [] : _ref28$subPackages,
  16839. _ref28$uniIdRouter = _ref28.uniIdRouter,
  16840. s = _ref28$uniIdRouter === void 0 ? {} : _ref28$uniIdRouter,
  16841. _ref28$tabBar = _ref28.tabBar,
  16842. r = _ref28$tabBar === void 0 ? {} : _ref28$tabBar;
  16843. var i = s.loginPage,
  16844. _s$needLogin = s.needLogin,
  16845. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  16846. _s$resToLogin = s.resToLogin,
  16847. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  16848. _us = us(t),
  16849. c = _us.needLoginPage,
  16850. u = _us.notNeedLoginPage,
  16851. _ref30 = function () {
  16852. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  16853. var t = [],
  16854. n = [];
  16855. return e.forEach(function (e) {
  16856. var s = e.root,
  16857. _e$pages = e.pages,
  16858. r = _e$pages === void 0 ? [] : _e$pages,
  16859. _us2 = us(r, s),
  16860. i = _us2.needLoginPage,
  16861. o = _us2.notNeedLoginPage;
  16862. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  16863. }), {
  16864. needLoginPage: t,
  16865. notNeedLoginPage: n
  16866. };
  16867. }(n),
  16868. l = _ref30.needLoginPage,
  16869. h = _ref30.notNeedLoginPage;
  16870. return {
  16871. loginPage: i,
  16872. routerNeedLogin: o,
  16873. resToLogin: a,
  16874. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(l)),
  16875. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(h)),
  16876. loginPageInTabBar: ps(i, r)
  16877. };
  16878. }(),
  16879. gs = _ref47.loginPage,
  16880. ms = _ref47.routerNeedLogin,
  16881. ys = _ref47.resToLogin,
  16882. _s = _ref47.needLoginPage,
  16883. ws = _ref47.notNeedLoginPage,
  16884. vs = _ref47.loginPageInTabBar;
  16885. if (_s.indexOf(gs) > -1) throw new Error("Login page [".concat(gs, "] should not be \"needLogin\", please check your pages.json"));
  16886. function Is(e) {
  16887. var t = ds();
  16888. if ("/" === e.charAt(0)) return e;
  16889. var _e$split = e.split("?"),
  16890. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  16891. n = _e$split2[0],
  16892. s = _e$split2[1],
  16893. r = n.replace(/^\//, "").split("/"),
  16894. i = t.split("/");
  16895. i.pop();
  16896. for (var _e23 = 0; _e23 < r.length; _e23++) {
  16897. var _t17 = r[_e23];
  16898. ".." === _t17 ? i.pop() : "." !== _t17 && i.push(_t17);
  16899. }
  16900. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  16901. }
  16902. function Ss(e) {
  16903. var t = ls(Is(e));
  16904. return !(ws.indexOf(t) > -1) && (_s.indexOf(t) > -1 || ms.some(function (t) {
  16905. return function (e, t) {
  16906. return new RegExp(t).test(e);
  16907. }(e, t);
  16908. }));
  16909. }
  16910. function bs(_ref48) {
  16911. var e = _ref48.redirect;
  16912. var t = ls(e),
  16913. n = ls(gs);
  16914. return ds() !== n && t !== n;
  16915. }
  16916. function ks() {
  16917. var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16918. e = _ref49.api,
  16919. t = _ref49.redirect;
  16920. if (!t || !bs({
  16921. redirect: t
  16922. })) return;
  16923. var n = function (e, t) {
  16924. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  16925. }(gs, t);
  16926. vs ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  16927. var s = {
  16928. navigateTo: uni.navigateTo,
  16929. redirectTo: uni.redirectTo,
  16930. switchTab: uni.switchTab,
  16931. reLaunch: uni.reLaunch
  16932. };
  16933. setTimeout(function () {
  16934. s[e]({
  16935. url: n
  16936. });
  16937. }, 0);
  16938. }
  16939. function As() {
  16940. var _ref50 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  16941. e = _ref50.url;
  16942. var t = {
  16943. abortLoginPageJump: !1,
  16944. autoToLoginPage: !1
  16945. },
  16946. n = function () {
  16947. var _se4 = se(),
  16948. e = _se4.token,
  16949. t = _se4.tokenExpired;
  16950. var n;
  16951. if (e) {
  16952. if (t < Date.now()) {
  16953. var _e24 = "uni-id-token-expired";
  16954. n = {
  16955. errCode: _e24,
  16956. errMsg: as[_e24]
  16957. };
  16958. }
  16959. } else {
  16960. var _e25 = "uni-id-check-token-failed";
  16961. n = {
  16962. errCode: _e25,
  16963. errMsg: as[_e25]
  16964. };
  16965. }
  16966. return n;
  16967. }();
  16968. if (Ss(e) && n) {
  16969. n.uniIdRedirectUrl = e;
  16970. if (z($).length > 0) return setTimeout(function () {
  16971. Y($, n);
  16972. }, 0), t.abortLoginPageJump = !0, t;
  16973. t.autoToLoginPage = !0;
  16974. }
  16975. return t;
  16976. }
  16977. function Cs() {
  16978. !function () {
  16979. var e = hs(),
  16980. _As = As({
  16981. url: e
  16982. }),
  16983. t = _As.abortLoginPageJump,
  16984. n = _As.autoToLoginPage;
  16985. t || n && ks({
  16986. api: "redirectTo",
  16987. redirect: e
  16988. });
  16989. }();
  16990. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  16991. var _loop3 = function _loop3(_t18) {
  16992. var n = e[_t18];
  16993. uni.addInterceptor(n, {
  16994. invoke: function invoke(e) {
  16995. var _As2 = As({
  16996. url: e.url
  16997. }),
  16998. t = _As2.abortLoginPageJump,
  16999. s = _As2.autoToLoginPage;
  17000. return t ? e : s ? (ks({
  17001. api: n,
  17002. redirect: Is(e.url)
  17003. }), !1) : e;
  17004. }
  17005. });
  17006. };
  17007. for (var _t18 = 0; _t18 < e.length; _t18++) {
  17008. _loop3(_t18);
  17009. }
  17010. }
  17011. function Ps() {
  17012. this.onResponse(function (e) {
  17013. var t = e.type,
  17014. n = e.content;
  17015. var s = !1;
  17016. switch (t) {
  17017. case "cloudobject":
  17018. s = function (e) {
  17019. if ("object" != (0, _typeof2.default)(e)) return !1;
  17020. var _ref51 = e || {},
  17021. t = _ref51.errCode;
  17022. return t in as;
  17023. }(n);
  17024. break;
  17025. case "clientdb":
  17026. s = function (e) {
  17027. if ("object" != (0, _typeof2.default)(e)) return !1;
  17028. var _ref52 = e || {},
  17029. t = _ref52.errCode;
  17030. return t in os;
  17031. }(n);
  17032. }
  17033. s && function () {
  17034. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  17035. var t = z($);
  17036. Z().then(function () {
  17037. var n = hs();
  17038. if (n && bs({
  17039. redirect: n
  17040. })) return t.length > 0 ? Y($, Object.assign({
  17041. uniIdRedirectUrl: n
  17042. }, e)) : void (gs && ks({
  17043. api: "navigateTo",
  17044. redirect: n
  17045. }));
  17046. });
  17047. }(n);
  17048. });
  17049. }
  17050. function Ts(e) {
  17051. !function (e) {
  17052. e.onResponse = function (e) {
  17053. V(j, e);
  17054. }, e.offResponse = function (e) {
  17055. G(j, e);
  17056. };
  17057. }(e), function (e) {
  17058. e.onNeedLogin = function (e) {
  17059. V($, e);
  17060. }, e.offNeedLogin = function (e) {
  17061. G($, e);
  17062. }, fs && (L("_globalUniCloudStatus").needLoginInit || (L("_globalUniCloudStatus").needLoginInit = !0, Z().then(function () {
  17063. Cs.call(e);
  17064. }), ys && Ps.call(e)));
  17065. }(e), function (e) {
  17066. e.onRefreshToken = function (e) {
  17067. V(B, e);
  17068. }, e.offRefreshToken = function (e) {
  17069. G(B, e);
  17070. };
  17071. }(e);
  17072. }
  17073. var xs;
  17074. var Os = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  17075. Es = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  17076. function Ls() {
  17077. var e = se().token || "",
  17078. t = e.split(".");
  17079. if (!e || 3 !== t.length) return {
  17080. uid: null,
  17081. role: [],
  17082. permission: [],
  17083. tokenExpired: 0
  17084. };
  17085. var n;
  17086. try {
  17087. n = JSON.parse((s = t[1], decodeURIComponent(xs(s).split("").map(function (e) {
  17088. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  17089. }).join(""))));
  17090. } catch (e) {
  17091. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  17092. }
  17093. var s;
  17094. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  17095. }
  17096. xs = "function" != typeof atob ? function (e) {
  17097. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !Es.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  17098. var t;
  17099. e += "==".slice(2 - (3 & e.length));
  17100. for (var n, s, r = "", i = 0; i < e.length;) {
  17101. t = Os.indexOf(e.charAt(i++)) << 18 | Os.indexOf(e.charAt(i++)) << 12 | (n = Os.indexOf(e.charAt(i++))) << 6 | (s = Os.indexOf(e.charAt(i++))), r += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
  17102. }
  17103. return r;
  17104. } : atob;
  17105. var Rs = n(function (e, t) {
  17106. Object.defineProperty(t, "__esModule", {
  17107. value: !0
  17108. });
  17109. var n = "chooseAndUploadFile:ok",
  17110. s = "chooseAndUploadFile:fail";
  17111. function r(e, t) {
  17112. return e.tempFiles.forEach(function (e, n) {
  17113. e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));
  17114. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  17115. return e.path;
  17116. })), e;
  17117. }
  17118. function i(e, t, _ref53) {
  17119. var s = _ref53.onChooseFile,
  17120. r = _ref53.onUploadProgress;
  17121. return t.then(function (e) {
  17122. if (s) {
  17123. var _t19 = s(e);
  17124. if (void 0 !== _t19) return Promise.resolve(_t19).then(function (t) {
  17125. return void 0 === t ? e : t;
  17126. });
  17127. }
  17128. return e;
  17129. }).then(function (t) {
  17130. return !1 === t ? {
  17131. errMsg: n,
  17132. tempFilePaths: [],
  17133. tempFiles: []
  17134. } : function (e, t) {
  17135. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  17136. var r = arguments.length > 3 ? arguments[3] : undefined;
  17137. (t = Object.assign({}, t)).errMsg = n;
  17138. var i = t.tempFiles,
  17139. o = i.length;
  17140. var a = 0;
  17141. return new Promise(function (n) {
  17142. for (; a < s;) {
  17143. c();
  17144. }
  17145. function c() {
  17146. var s = a++;
  17147. if (s >= o) return void (!i.find(function (e) {
  17148. return !e.url && !e.errMsg;
  17149. }) && n(t));
  17150. var u = i[s];
  17151. e.uploadFile({
  17152. provider: u.provider,
  17153. filePath: u.path,
  17154. cloudPath: u.cloudPath,
  17155. fileType: u.fileType,
  17156. cloudPathAsRealPath: u.cloudPathAsRealPath,
  17157. onUploadProgress: function onUploadProgress(e) {
  17158. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  17159. }
  17160. }).then(function (e) {
  17161. u.url = e.fileID, s < o && c();
  17162. }).catch(function (e) {
  17163. u.errMsg = e.errMsg || e.message, s < o && c();
  17164. });
  17165. }
  17166. });
  17167. }(e, t, 5, r);
  17168. });
  17169. }
  17170. t.initChooseAndUploadFile = function (e) {
  17171. return function () {
  17172. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  17173. type: "all"
  17174. };
  17175. return "image" === t.type ? i(e, function (e) {
  17176. var t = e.count,
  17177. n = e.sizeType,
  17178. _e$sourceType = e.sourceType,
  17179. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  17180. o = e.extension;
  17181. return new Promise(function (e, a) {
  17182. uni.chooseImage({
  17183. count: t,
  17184. sizeType: n,
  17185. sourceType: i,
  17186. extension: o,
  17187. success: function success(t) {
  17188. e(r(t, "image"));
  17189. },
  17190. fail: function fail(e) {
  17191. a({
  17192. errMsg: e.errMsg.replace("chooseImage:fail", s)
  17193. });
  17194. }
  17195. });
  17196. });
  17197. }(t), t) : "video" === t.type ? i(e, function (e) {
  17198. var t = e.camera,
  17199. n = e.compressed,
  17200. i = e.maxDuration,
  17201. _e$sourceType2 = e.sourceType,
  17202. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  17203. a = e.extension;
  17204. return new Promise(function (e, c) {
  17205. uni.chooseVideo({
  17206. camera: t,
  17207. compressed: n,
  17208. maxDuration: i,
  17209. sourceType: o,
  17210. extension: a,
  17211. success: function success(t) {
  17212. var n = t.tempFilePath,
  17213. s = t.duration,
  17214. i = t.size,
  17215. o = t.height,
  17216. a = t.width;
  17217. e(r({
  17218. errMsg: "chooseVideo:ok",
  17219. tempFilePaths: [n],
  17220. tempFiles: [{
  17221. name: t.tempFile && t.tempFile.name || "",
  17222. path: n,
  17223. size: i,
  17224. type: t.tempFile && t.tempFile.type || "",
  17225. width: a,
  17226. height: o,
  17227. duration: s,
  17228. fileType: "video",
  17229. cloudPath: ""
  17230. }]
  17231. }, "video"));
  17232. },
  17233. fail: function fail(e) {
  17234. c({
  17235. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  17236. });
  17237. }
  17238. });
  17239. });
  17240. }(t), t) : i(e, function (e) {
  17241. var t = e.count,
  17242. n = e.extension;
  17243. return new Promise(function (e, i) {
  17244. var o = uni.chooseFile;
  17245. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  17246. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  17247. });
  17248. o({
  17249. type: "all",
  17250. count: t,
  17251. extension: n,
  17252. success: function success(t) {
  17253. e(r(t));
  17254. },
  17255. fail: function fail(e) {
  17256. i({
  17257. errMsg: e.errMsg.replace("chooseFile:fail", s)
  17258. });
  17259. }
  17260. });
  17261. });
  17262. }(t), t);
  17263. };
  17264. };
  17265. }),
  17266. Us = t(Rs);
  17267. var Ns = "manual";
  17268. function Ds(e) {
  17269. return {
  17270. props: {
  17271. localdata: {
  17272. type: Array,
  17273. default: function _default() {
  17274. return [];
  17275. }
  17276. },
  17277. options: {
  17278. type: [Object, Array],
  17279. default: function _default() {
  17280. return {};
  17281. }
  17282. },
  17283. spaceInfo: {
  17284. type: Object,
  17285. default: function _default() {
  17286. return {};
  17287. }
  17288. },
  17289. collection: {
  17290. type: [String, Array],
  17291. default: ""
  17292. },
  17293. action: {
  17294. type: String,
  17295. default: ""
  17296. },
  17297. field: {
  17298. type: String,
  17299. default: ""
  17300. },
  17301. orderby: {
  17302. type: String,
  17303. default: ""
  17304. },
  17305. where: {
  17306. type: [String, Object],
  17307. default: ""
  17308. },
  17309. pageData: {
  17310. type: String,
  17311. default: "add"
  17312. },
  17313. pageCurrent: {
  17314. type: Number,
  17315. default: 1
  17316. },
  17317. pageSize: {
  17318. type: Number,
  17319. default: 20
  17320. },
  17321. getcount: {
  17322. type: [Boolean, String],
  17323. default: !1
  17324. },
  17325. gettree: {
  17326. type: [Boolean, String],
  17327. default: !1
  17328. },
  17329. gettreepath: {
  17330. type: [Boolean, String],
  17331. default: !1
  17332. },
  17333. startwith: {
  17334. type: String,
  17335. default: ""
  17336. },
  17337. limitlevel: {
  17338. type: Number,
  17339. default: 10
  17340. },
  17341. groupby: {
  17342. type: String,
  17343. default: ""
  17344. },
  17345. groupField: {
  17346. type: String,
  17347. default: ""
  17348. },
  17349. distinct: {
  17350. type: [Boolean, String],
  17351. default: !1
  17352. },
  17353. foreignKey: {
  17354. type: String,
  17355. default: ""
  17356. },
  17357. loadtime: {
  17358. type: String,
  17359. default: "auto"
  17360. },
  17361. manual: {
  17362. type: Boolean,
  17363. default: !1
  17364. }
  17365. },
  17366. data: function data() {
  17367. return {
  17368. mixinDatacomLoading: !1,
  17369. mixinDatacomHasMore: !1,
  17370. mixinDatacomResData: [],
  17371. mixinDatacomErrorMessage: "",
  17372. mixinDatacomPage: {},
  17373. mixinDatacomError: null
  17374. };
  17375. },
  17376. created: function created() {
  17377. var _this21 = this;
  17378. this.mixinDatacomPage = {
  17379. current: this.pageCurrent,
  17380. size: this.pageSize,
  17381. count: 0
  17382. }, this.$watch(function () {
  17383. var e = [];
  17384. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  17385. e.push(_this21[t]);
  17386. }), e;
  17387. }, function (e, t) {
  17388. if (_this21.loadtime === Ns) return;
  17389. var n = !1;
  17390. var s = [];
  17391. for (var _r9 = 2; _r9 < e.length; _r9++) {
  17392. e[_r9] !== t[_r9] && (s.push(e[_r9]), n = !0);
  17393. }
  17394. e[0] !== t[0] && (_this21.mixinDatacomPage.current = _this21.pageCurrent), _this21.mixinDatacomPage.size = _this21.pageSize, _this21.onMixinDatacomPropsChange(n, s);
  17395. });
  17396. },
  17397. methods: {
  17398. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  17399. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  17400. var _this22 = this;
  17401. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17402. _ref54$getone = _ref54.getone,
  17403. e = _ref54$getone === void 0 ? !1 : _ref54$getone,
  17404. t = _ref54.success,
  17405. n = _ref54.fail;
  17406. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomError = null, this.mixinDatacomGet().then(function (n) {
  17407. _this22.mixinDatacomLoading = !1;
  17408. var _n$result = n.result,
  17409. s = _n$result.data,
  17410. r = _n$result.count;
  17411. _this22.getcount && (_this22.mixinDatacomPage.count = r), _this22.mixinDatacomHasMore = s.length < _this22.pageSize;
  17412. var i = e ? s.length ? s[0] : void 0 : s;
  17413. _this22.mixinDatacomResData = i, t && t(i);
  17414. }).catch(function (e) {
  17415. _this22.mixinDatacomLoading = !1, _this22.mixinDatacomErrorMessage = e, _this22.mixinDatacomError = e, n && n(e);
  17416. }));
  17417. },
  17418. mixinDatacomGet: function mixinDatacomGet() {
  17419. var _n14;
  17420. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  17421. var n;
  17422. t = t || {}, n = "undefined" != typeof __uniX && __uniX ? e.databaseForJQL(this.spaceInfo) : e.database(this.spaceInfo);
  17423. var s = t.action || this.action;
  17424. s && (n = n.action(s));
  17425. var r = t.collection || this.collection;
  17426. n = Array.isArray(r) ? (_n14 = n).collection.apply(_n14, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  17427. var i = t.where || this.where;
  17428. i && Object.keys(i).length && (n = n.where(i));
  17429. var o = t.field || this.field;
  17430. o && (n = n.field(o));
  17431. var a = t.foreignKey || this.foreignKey;
  17432. a && (n = n.foreignKey(a));
  17433. var c = t.groupby || this.groupby;
  17434. c && (n = n.groupBy(c));
  17435. var u = t.groupField || this.groupField;
  17436. u && (n = n.groupField(u));
  17437. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  17438. var l = t.orderby || this.orderby;
  17439. l && (n = n.orderBy(l));
  17440. var h = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  17441. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  17442. p = void 0 !== t.getcount ? t.getcount : this.getcount,
  17443. f = void 0 !== t.gettree ? t.gettree : this.gettree,
  17444. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  17445. m = {
  17446. getCount: p
  17447. },
  17448. y = {
  17449. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  17450. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  17451. };
  17452. return f && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (h - 1)).limit(d).get(m), n;
  17453. }
  17454. }
  17455. };
  17456. }
  17457. function qs(e) {
  17458. return function (t) {
  17459. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17460. n = function (e) {
  17461. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17462. return e.customUI = t.customUI || e.customUI, e.parseSystemError = t.parseSystemError || e.parseSystemError, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), "object" == (0, _typeof2.default)(t.secretMethods) && (e.secretMethods = t.secretMethods), e;
  17463. }({
  17464. customUI: !1,
  17465. loadingOptions: {
  17466. title: "加载中...",
  17467. mask: !0
  17468. },
  17469. errorOptions: {
  17470. type: "modal",
  17471. retry: !1
  17472. }
  17473. }, n);
  17474. var _n15 = n,
  17475. s = _n15.customUI,
  17476. r = _n15.loadingOptions,
  17477. i = _n15.errorOptions,
  17478. o = _n15.parseSystemError,
  17479. a = !s;
  17480. return new Proxy({}, {
  17481. get: function get(s, c) {
  17482. switch (c) {
  17483. case "toString":
  17484. return "[object UniCloudObject]";
  17485. case "toJSON":
  17486. return {};
  17487. }
  17488. return function () {
  17489. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17490. e = _ref55.fn,
  17491. t = _ref55.interceptorName,
  17492. n = _ref55.getCallbackArgs;
  17493. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55() {
  17494. var _len2,
  17495. s,
  17496. _key2,
  17497. r,
  17498. i,
  17499. o,
  17500. _args = arguments;
  17501. return _regenerator.default.wrap(function _callee55$(_context55) {
  17502. while (1) {
  17503. switch (_context55.prev = _context55.next) {
  17504. case 0:
  17505. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  17506. s[_key2] = _args[_key2];
  17507. }
  17508. r = n ? n({
  17509. params: s
  17510. }) : {};
  17511. _context55.prev = 2;
  17512. _context55.next = 5;
  17513. return q(M(t, "invoke"), _objectSpread({}, r));
  17514. case 5:
  17515. _context55.next = 7;
  17516. return e.apply(void 0, s);
  17517. case 7:
  17518. i = _context55.sent;
  17519. _context55.next = 10;
  17520. return q(M(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  17521. result: i
  17522. }));
  17523. case 10:
  17524. return _context55.abrupt("return", i);
  17525. case 13:
  17526. _context55.prev = 13;
  17527. _context55.t0 = _context55["catch"](2);
  17528. o = _context55.t0;
  17529. _context55.next = 18;
  17530. return q(M(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  17531. error: o
  17532. }));
  17533. case 18:
  17534. throw o;
  17535. case 19:
  17536. _context55.prev = 19;
  17537. _context55.next = 22;
  17538. return q(M(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  17539. error: o
  17540. }) : _objectSpread(_objectSpread({}, r), {}, {
  17541. result: i
  17542. }));
  17543. case 22:
  17544. return _context55.finish(19);
  17545. case 23:
  17546. case "end":
  17547. return _context55.stop();
  17548. }
  17549. }
  17550. }, _callee55, null, [[2, 13, 19, 23]]);
  17551. }));
  17552. }({
  17553. fn: function () {
  17554. var _s17 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57() {
  17555. var h,
  17556. _len3,
  17557. l,
  17558. _key3,
  17559. d,
  17560. p,
  17561. _ref57,
  17562. f,
  17563. g,
  17564. m,
  17565. y,
  17566. _e26,
  17567. _yield,
  17568. _t20,
  17569. _n16,
  17570. _args4 = arguments;
  17571. return _regenerator.default.wrap(function _callee57$(_context57) {
  17572. while (1) {
  17573. switch (_context57.prev = _context57.next) {
  17574. case 0:
  17575. a && uni.showLoading({
  17576. title: r.title,
  17577. mask: r.mask
  17578. });
  17579. for (_len3 = _args4.length, l = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  17580. l[_key3] = _args4[_key3];
  17581. }
  17582. d = {
  17583. name: t,
  17584. type: u,
  17585. data: {
  17586. method: c,
  17587. params: l
  17588. }
  17589. };
  17590. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  17591. var n = t.data.method,
  17592. s = e.secretMethods || {},
  17593. r = s[n] || s["*"];
  17594. r && (t.secretType = r);
  17595. }(n, d);
  17596. p = !1;
  17597. _context57.prev = 5;
  17598. _context57.next = 8;
  17599. return e.callFunction(d);
  17600. case 8:
  17601. h = _context57.sent;
  17602. _context57.next = 14;
  17603. break;
  17604. case 11:
  17605. _context57.prev = 11;
  17606. _context57.t0 = _context57["catch"](5);
  17607. p = !0, h = {
  17608. result: new te(_context57.t0)
  17609. };
  17610. case 14:
  17611. _ref57 = h.result || {}, f = _ref57.errSubject, g = _ref57.errCode, m = _ref57.errMsg, y = _ref57.newToken;
  17612. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (re(y), Y(B, _objectSpread({}, y))), g)) {
  17613. _context57.next = 39;
  17614. break;
  17615. }
  17616. _e26 = m;
  17617. if (!(p && o)) {
  17618. _context57.next = 24;
  17619. break;
  17620. }
  17621. _context57.next = 20;
  17622. return o({
  17623. objectName: t,
  17624. methodName: c,
  17625. params: l,
  17626. errSubject: f,
  17627. errCode: g,
  17628. errMsg: m
  17629. });
  17630. case 20:
  17631. _context57.t1 = _context57.sent.errMsg;
  17632. if (_context57.t1) {
  17633. _context57.next = 23;
  17634. break;
  17635. }
  17636. _context57.t1 = m;
  17637. case 23:
  17638. _e26 = _context57.t1;
  17639. case 24:
  17640. if (!a) {
  17641. _context57.next = 37;
  17642. break;
  17643. }
  17644. if (!("toast" === i.type)) {
  17645. _context57.next = 29;
  17646. break;
  17647. }
  17648. uni.showToast({
  17649. title: _e26,
  17650. icon: "none"
  17651. });
  17652. _context57.next = 37;
  17653. break;
  17654. case 29:
  17655. if (!("modal" !== i.type)) {
  17656. _context57.next = 31;
  17657. break;
  17658. }
  17659. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  17660. case 31:
  17661. _context57.next = 33;
  17662. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee56() {
  17663. var _ref59,
  17664. e,
  17665. t,
  17666. n,
  17667. s,
  17668. r,
  17669. _args2 = arguments;
  17670. return _regenerator.default.wrap(function _callee56$(_context56) {
  17671. while (1) {
  17672. switch (_context56.prev = _context56.next) {
  17673. case 0:
  17674. _ref59 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref59.title, t = _ref59.content, n = _ref59.showCancel, s = _ref59.cancelText, r = _ref59.confirmText;
  17675. return _context56.abrupt("return", new Promise(function (i, o) {
  17676. uni.showModal({
  17677. title: e,
  17678. content: t,
  17679. showCancel: n,
  17680. cancelText: s,
  17681. confirmText: r,
  17682. success: function success(e) {
  17683. i(e);
  17684. },
  17685. fail: function fail() {
  17686. i({
  17687. confirm: !1,
  17688. cancel: !0
  17689. });
  17690. }
  17691. });
  17692. }));
  17693. case 2:
  17694. case "end":
  17695. return _context56.stop();
  17696. }
  17697. }
  17698. }, _callee56);
  17699. }))({
  17700. title: "提示",
  17701. content: _e26,
  17702. showCancel: i.retry,
  17703. cancelText: "取消",
  17704. confirmText: i.retry ? "重试" : "确定"
  17705. });
  17706. case 33:
  17707. _yield = _context57.sent;
  17708. _t20 = _yield.confirm;
  17709. if (!(i.retry && _t20)) {
  17710. _context57.next = 37;
  17711. break;
  17712. }
  17713. return _context57.abrupt("return", s.apply(void 0, l));
  17714. case 37:
  17715. _n16 = new te({
  17716. subject: f,
  17717. code: g,
  17718. message: m,
  17719. requestId: h.requestId
  17720. });
  17721. throw _n16.detail = h.result, Y(j, {
  17722. type: J,
  17723. content: _n16
  17724. }), _n16;
  17725. case 39:
  17726. return _context57.abrupt("return", (Y(j, {
  17727. type: J,
  17728. content: h.result
  17729. }), h.result));
  17730. case 40:
  17731. case "end":
  17732. return _context57.stop();
  17733. }
  17734. }
  17735. }, _callee57, null, [[5, 11]]);
  17736. }));
  17737. function s() {
  17738. return _s17.apply(this, arguments);
  17739. }
  17740. return s;
  17741. }(),
  17742. interceptorName: "callObject",
  17743. getCallbackArgs: function getCallbackArgs() {
  17744. var _ref60 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17745. e = _ref60.params;
  17746. return {
  17747. objectName: t,
  17748. methodName: c,
  17749. params: e
  17750. };
  17751. }
  17752. });
  17753. }
  17754. });
  17755. };
  17756. }
  17757. function Ms(e) {
  17758. return L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  17759. }
  17760. function Fs() {
  17761. return _Fs.apply(this, arguments);
  17762. }
  17763. function _Fs() {
  17764. _Fs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee62() {
  17765. var _ref71,
  17766. e,
  17767. _ref71$callLoginByWei,
  17768. t,
  17769. n,
  17770. s,
  17771. r,
  17772. _args9 = arguments;
  17773. return _regenerator.default.wrap(function _callee62$(_context62) {
  17774. while (1) {
  17775. switch (_context62.prev = _context62.next) {
  17776. case 0:
  17777. _ref71 = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {}, e = _ref71.openid, _ref71$callLoginByWei = _ref71.callLoginByWeixin, t = _ref71$callLoginByWei === void 0 ? !1 : _ref71$callLoginByWei;
  17778. n = Ms(this);
  17779. if (!("mp-weixin" !== C)) {
  17780. _context62.next = 4;
  17781. break;
  17782. }
  17783. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(C, "`"));
  17784. case 4:
  17785. if (!(e && t)) {
  17786. _context62.next = 6;
  17787. break;
  17788. }
  17789. throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");
  17790. case 6:
  17791. if (!e) {
  17792. _context62.next = 8;
  17793. break;
  17794. }
  17795. return _context62.abrupt("return", (n.mpWeixinOpenid = e, {}));
  17796. case 8:
  17797. _context62.next = 10;
  17798. return new Promise(function (e, t) {
  17799. uni.login({
  17800. success: function success(t) {
  17801. e(t.code);
  17802. },
  17803. fail: function fail(e) {
  17804. t(new Error(e.errMsg));
  17805. }
  17806. });
  17807. });
  17808. case 10:
  17809. s = _context62.sent;
  17810. r = this.importObject("uni-id-co", {
  17811. customUI: !0
  17812. });
  17813. _context62.next = 14;
  17814. return r.secureNetworkHandshakeByWeixin({
  17815. code: s,
  17816. callLoginByWeixin: t
  17817. });
  17818. case 14:
  17819. n.mpWeixinCode = s;
  17820. return _context62.abrupt("return", {
  17821. code: s
  17822. });
  17823. case 16:
  17824. case "end":
  17825. return _context62.stop();
  17826. }
  17827. }
  17828. }, _callee62, this);
  17829. }));
  17830. return _Fs.apply(this, arguments);
  17831. }
  17832. function Ks(_x46) {
  17833. return _Ks.apply(this, arguments);
  17834. }
  17835. function _Ks() {
  17836. _Ks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee63(e) {
  17837. var t;
  17838. return _regenerator.default.wrap(function _callee63$(_context63) {
  17839. while (1) {
  17840. switch (_context63.prev = _context63.next) {
  17841. case 0:
  17842. t = Ms(this);
  17843. return _context63.abrupt("return", (t.initPromise || (t.initPromise = Fs.call(this, e).then(function (e) {
  17844. return e;
  17845. }).catch(function (e) {
  17846. throw delete t.initPromise, e;
  17847. })), t.initPromise));
  17848. case 2:
  17849. case "end":
  17850. return _context63.stop();
  17851. }
  17852. }
  17853. }, _callee63, this);
  17854. }));
  17855. return _Ks.apply(this, arguments);
  17856. }
  17857. function js(e) {
  17858. return function () {
  17859. var _ref61 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17860. t = _ref61.openid,
  17861. _ref61$callLoginByWei = _ref61.callLoginByWeixin,
  17862. n = _ref61$callLoginByWei === void 0 ? !1 : _ref61$callLoginByWei;
  17863. return Ks.call(e, {
  17864. openid: t,
  17865. callLoginByWeixin: n
  17866. });
  17867. };
  17868. }
  17869. function $s(e) {
  17870. !function (e) {
  17871. ue = e;
  17872. }(e);
  17873. }
  17874. function Bs(e) {
  17875. var t = {
  17876. getSystemInfo: uni.getSystemInfo,
  17877. getPushClientId: uni.getPushClientId
  17878. };
  17879. return function (n) {
  17880. return new Promise(function (s, r) {
  17881. t[e](_objectSpread(_objectSpread({}, n), {}, {
  17882. success: function success(e) {
  17883. s(e);
  17884. },
  17885. fail: function fail(e) {
  17886. r(e);
  17887. }
  17888. }));
  17889. });
  17890. };
  17891. }
  17892. var Ws = /*#__PURE__*/function (_ref62) {
  17893. (0, _inherits2.default)(Ws, _ref62);
  17894. var _super11 = _createSuper(Ws);
  17895. function Ws() {
  17896. var _this23;
  17897. (0, _classCallCheck2.default)(this, Ws);
  17898. _this23 = _super11.call(this), _this23._uniPushMessageCallback = _this23._receivePushMessage.bind((0, _assertThisInitialized2.default)(_this23)), _this23._currentMessageId = -1, _this23._payloadQueue = [];
  17899. return _this23;
  17900. }
  17901. (0, _createClass2.default)(Ws, [{
  17902. key: "init",
  17903. value: function init() {
  17904. var _this24 = this;
  17905. return Promise.all([Bs("getSystemInfo")(), Bs("getPushClientId")()]).then(function () {
  17906. var _ref63 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [],
  17907. _ref64 = (0, _slicedToArray2.default)(_ref63, 2),
  17908. _ref64$ = _ref64[0];
  17909. _ref64$ = _ref64$ === void 0 ? {} : _ref64$;
  17910. var e = _ref64$.appId,
  17911. _ref64$2 = _ref64[1];
  17912. _ref64$2 = _ref64$2 === void 0 ? {} : _ref64$2;
  17913. var t = _ref64$2.cid;
  17914. if (!e) throw new Error("Invalid appId, please check the manifest.json file");
  17915. if (!t) throw new Error("Invalid push client id");
  17916. _this24._appId = e, _this24._pushClientId = t, _this24._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), _this24.emit("open"), _this24._initMessageListener();
  17917. }, function (e) {
  17918. throw _this24.emit("error", e), _this24.close(), e;
  17919. });
  17920. }
  17921. }, {
  17922. key: "open",
  17923. value: function () {
  17924. var _open = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58() {
  17925. return _regenerator.default.wrap(function _callee58$(_context58) {
  17926. while (1) {
  17927. switch (_context58.prev = _context58.next) {
  17928. case 0:
  17929. return _context58.abrupt("return", this.init());
  17930. case 1:
  17931. case "end":
  17932. return _context58.stop();
  17933. }
  17934. }
  17935. }, _callee58, this);
  17936. }));
  17937. function open() {
  17938. return _open.apply(this, arguments);
  17939. }
  17940. return open;
  17941. }()
  17942. }, {
  17943. key: "_isUniCloudSSE",
  17944. value: function _isUniCloudSSE(e) {
  17945. if ("receive" !== e.type) return !1;
  17946. var t = e && e.data && e.data.payload;
  17947. return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
  17948. }
  17949. }, {
  17950. key: "_receivePushMessage",
  17951. value: function _receivePushMessage(e) {
  17952. if (!this._isUniCloudSSE(e)) return;
  17953. var t = e && e.data && e.data.payload,
  17954. n = t.action,
  17955. s = t.messageId,
  17956. r = t.message;
  17957. this._payloadQueue.push({
  17958. action: n,
  17959. messageId: s,
  17960. message: r
  17961. }), this._consumMessage();
  17962. }
  17963. }, {
  17964. key: "_consumMessage",
  17965. value: function _consumMessage() {
  17966. var _this25 = this;
  17967. for (;;) {
  17968. var _e27 = this._payloadQueue.find(function (e) {
  17969. return e.messageId === _this25._currentMessageId + 1;
  17970. });
  17971. if (!_e27) break;
  17972. this._currentMessageId++, this._parseMessagePayload(_e27);
  17973. }
  17974. }
  17975. }, {
  17976. key: "_parseMessagePayload",
  17977. value: function _parseMessagePayload(e) {
  17978. var t = e.action,
  17979. n = e.messageId,
  17980. s = e.message;
  17981. "end" === t ? this._end({
  17982. messageId: n,
  17983. message: s
  17984. }) : "message" === t && this._appendMessage({
  17985. messageId: n,
  17986. message: s
  17987. });
  17988. }
  17989. }, {
  17990. key: "_appendMessage",
  17991. value: function _appendMessage() {
  17992. var _ref65 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  17993. e = _ref65.messageId,
  17994. t = _ref65.message;
  17995. this.emit("message", t);
  17996. }
  17997. }, {
  17998. key: "_end",
  17999. value: function _end() {
  18000. var _ref66 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  18001. e = _ref66.messageId,
  18002. t = _ref66.message;
  18003. this.emit("end", t), this.close();
  18004. }
  18005. }, {
  18006. key: "_initMessageListener",
  18007. value: function _initMessageListener() {
  18008. uni.onPushMessage(this._uniPushMessageCallback);
  18009. }
  18010. }, {
  18011. key: "_destroy",
  18012. value: function _destroy() {
  18013. uni.offPushMessage(this._uniPushMessageCallback);
  18014. }
  18015. }, {
  18016. key: "toJSON",
  18017. value: function toJSON() {
  18018. return {
  18019. appId: this._appId,
  18020. pushClientId: this._pushClientId,
  18021. seqId: this._seqId
  18022. };
  18023. }
  18024. }, {
  18025. key: "close",
  18026. value: function close() {
  18027. this._destroy(), this.emit("close");
  18028. }
  18029. }]);
  18030. return Ws;
  18031. }( /*#__PURE__*/function () {
  18032. function _class6() {
  18033. (0, _classCallCheck2.default)(this, _class6);
  18034. this._callback = {};
  18035. }
  18036. (0, _createClass2.default)(_class6, [{
  18037. key: "addListener",
  18038. value: function addListener(e, t) {
  18039. this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
  18040. }
  18041. }, {
  18042. key: "on",
  18043. value: function on(e, t) {
  18044. return this.addListener(e, t);
  18045. }
  18046. }, {
  18047. key: "removeListener",
  18048. value: function removeListener(e, t) {
  18049. if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
  18050. var n = this._callback[e];
  18051. if (!n) return;
  18052. var s = function (e, t) {
  18053. for (var _n17 = e.length - 1; _n17 >= 0; _n17--) {
  18054. if (e[_n17] === t) return _n17;
  18055. }
  18056. return -1;
  18057. }(n, t);
  18058. n.splice(s, 1);
  18059. }
  18060. }, {
  18061. key: "off",
  18062. value: function off(e, t) {
  18063. return this.removeListener(e, t);
  18064. }
  18065. }, {
  18066. key: "removeAllListener",
  18067. value: function removeAllListener(e) {
  18068. delete this._callback[e];
  18069. }
  18070. }, {
  18071. key: "emit",
  18072. value: function emit(e) {
  18073. var n = this._callback[e];
  18074. for (var _len4 = arguments.length, t = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  18075. t[_key4 - 1] = arguments[_key4];
  18076. }
  18077. if (n) for (var _e28 = 0; _e28 < n.length; _e28++) {
  18078. n[_e28].apply(n, t);
  18079. }
  18080. }
  18081. }]);
  18082. return _class6;
  18083. }());
  18084. function Hs(_x47) {
  18085. return _Hs.apply(this, arguments);
  18086. }
  18087. function _Hs() {
  18088. _Hs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee64(e) {
  18089. var _ae2, _e32, _t22, t, _t$debugInfo, n, s, _yield$kt2, r, i, o;
  18090. return _regenerator.default.wrap(function _callee64$(_context64) {
  18091. while (1) {
  18092. switch (_context64.prev = _context64.next) {
  18093. case 0:
  18094. if (S) {
  18095. _context64.next = 2;
  18096. break;
  18097. }
  18098. return _context64.abrupt("return", Promise.resolve());
  18099. case 2:
  18100. if ("app" === C) {
  18101. _ae2 = ae(), _e32 = _ae2.osName, _t22 = _ae2.osVersion;
  18102. "ios" === _e32 && function (e) {
  18103. if (!e || "string" != typeof e) return 0;
  18104. var t = e.match(/^(\d+)./);
  18105. return t && t[1] ? parseInt(t[1]) : 0;
  18106. }(_t22) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)");
  18107. }
  18108. t = e.__dev__;
  18109. if (t.debugInfo) {
  18110. _context64.next = 6;
  18111. break;
  18112. }
  18113. return _context64.abrupt("return");
  18114. case 6:
  18115. _t$debugInfo = t.debugInfo;
  18116. n = _t$debugInfo.address;
  18117. s = _t$debugInfo.servePort;
  18118. _context64.next = 11;
  18119. return kt(n, s);
  18120. case 11:
  18121. _yield$kt2 = _context64.sent;
  18122. r = _yield$kt2.address;
  18123. if (!r) {
  18124. _context64.next = 15;
  18125. break;
  18126. }
  18127. return _context64.abrupt("return", (t.localAddress = r, void (t.localPort = s)));
  18128. case 15:
  18129. i = console["app" === C ? "error" : "warn"];
  18130. o = "";
  18131. if (!("remote" === t.debugInfo.initialLaunchType ? (t.debugInfo.forceRemote = !0, o = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : o = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", o += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", "web" === C && (o += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === C.indexOf("mp-") && (o += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), !t.debugInfo.forceRemote)) {
  18132. _context64.next = 19;
  18133. break;
  18134. }
  18135. throw new Error(o);
  18136. case 19:
  18137. i(o);
  18138. case 20:
  18139. case "end":
  18140. return _context64.stop();
  18141. }
  18142. }
  18143. }, _callee64);
  18144. }));
  18145. return _Hs.apply(this, arguments);
  18146. }
  18147. function Js(e) {
  18148. e._initPromiseHub || (e._initPromiseHub = new v({
  18149. createPromise: function createPromise() {
  18150. var t = Promise.resolve();
  18151. var n;
  18152. n = 1, t = new Promise(function (e) {
  18153. setTimeout(function () {
  18154. e();
  18155. }, n);
  18156. });
  18157. var s = e.auth();
  18158. return t.then(function () {
  18159. return s.getLoginState();
  18160. }).then(function (e) {
  18161. return e ? Promise.resolve() : s.signInAnonymously();
  18162. });
  18163. }
  18164. }));
  18165. }
  18166. var zs = {
  18167. tcb: St,
  18168. tencent: St,
  18169. aliyun: pe,
  18170. private: Pt,
  18171. dcloud: Pt,
  18172. alipay: qt
  18173. };
  18174. var Vs = new ( /*#__PURE__*/function () {
  18175. function _class7() {
  18176. (0, _classCallCheck2.default)(this, _class7);
  18177. }
  18178. (0, _createClass2.default)(_class7, [{
  18179. key: "init",
  18180. value: function init(e) {
  18181. var t = {};
  18182. var n = zs[e.provider];
  18183. if (!n) throw new Error("未提供正确的provider参数");
  18184. t = n.init(e), S && function (e) {
  18185. if (!S) return;
  18186. var t = {};
  18187. e.__dev__ = t, t.debugLog = S && ("web" === C && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === C);
  18188. var n = P;
  18189. n && !n.code && (t.debugInfo = n);
  18190. var s = new v({
  18191. createPromise: function createPromise() {
  18192. return Hs(e);
  18193. }
  18194. });
  18195. t.initLocalNetwork = function () {
  18196. return s.exec();
  18197. };
  18198. }(t), Js(t), Hn(t), function (e) {
  18199. var t = e.uploadFile;
  18200. e.uploadFile = function (e) {
  18201. return t.call(this, e);
  18202. };
  18203. }(t), function (e) {
  18204. e.database = function (t) {
  18205. if (t && Object.keys(t).length > 0) return e.init(t).database();
  18206. if (this._database) return this._database;
  18207. var n = ns(ss, {
  18208. uniClient: e
  18209. });
  18210. return this._database = n, n;
  18211. }, e.databaseForJQL = function (t) {
  18212. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  18213. if (this._databaseForJQL) return this._databaseForJQL;
  18214. var n = ns(ss, {
  18215. uniClient: e,
  18216. isJQL: !0
  18217. });
  18218. return this._databaseForJQL = n, n;
  18219. };
  18220. }(t), function (e) {
  18221. e.getCurrentUserInfo = Ls, e.chooseAndUploadFile = Us.initChooseAndUploadFile(e), Object.assign(e, {
  18222. get mixinDatacom() {
  18223. return Ds(e);
  18224. }
  18225. }), e.SSEChannel = Ws, e.initSecureNetworkByWeixin = js(e), e.setCustomClientInfo = $s, e.importObject = qs(e);
  18226. }(t);
  18227. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  18228. if (!t[e]) return;
  18229. var n = t[e];
  18230. t[e] = function () {
  18231. return n.apply(t, Array.from(arguments));
  18232. }, t[e] = function (e, t) {
  18233. return function (n) {
  18234. var _this26 = this;
  18235. var s = !1;
  18236. if ("callFunction" === t) {
  18237. var _e29 = n && n.type || c;
  18238. s = _e29 !== c;
  18239. }
  18240. var r = "callFunction" === t && !s,
  18241. i = this._initPromiseHub.exec();
  18242. n = n || {};
  18243. var _ee2 = ee(n),
  18244. o = _ee2.success,
  18245. a = _ee2.fail,
  18246. u = _ee2.complete,
  18247. l = i.then(function () {
  18248. return s ? Promise.resolve() : q(M(t, "invoke"), n);
  18249. }).then(function () {
  18250. return e.call(_this26, n);
  18251. }).then(function (e) {
  18252. return s ? Promise.resolve(e) : q(M(t, "success"), e).then(function () {
  18253. return q(M(t, "complete"), e);
  18254. }).then(function () {
  18255. return r && Y(j, {
  18256. type: H,
  18257. content: e
  18258. }), Promise.resolve(e);
  18259. });
  18260. }, function (e) {
  18261. return s ? Promise.reject(e) : q(M(t, "fail"), e).then(function () {
  18262. return q(M(t, "complete"), e);
  18263. }).then(function () {
  18264. return Y(j, {
  18265. type: H,
  18266. content: e
  18267. }), Promise.reject(e);
  18268. });
  18269. });
  18270. if (!(o || a || u)) return l;
  18271. l.then(function (e) {
  18272. o && o(e), u && u(e), r && Y(j, {
  18273. type: H,
  18274. content: e
  18275. });
  18276. }, function (e) {
  18277. a && a(e), u && u(e), r && Y(j, {
  18278. type: H,
  18279. content: e
  18280. });
  18281. });
  18282. };
  18283. }(t[e], e).bind(t);
  18284. }), t.init = this.init, t;
  18285. }
  18286. }]);
  18287. return _class7;
  18288. }())();
  18289. (function () {
  18290. var e = T;
  18291. var t = {};
  18292. if (e && 1 === e.length) t = e[0], Vs = Vs.init(t), Vs._isDefault = !0;else {
  18293. var _t21 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  18294. var _n18;
  18295. _n18 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : x ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t21.forEach(function (e) {
  18296. Vs[e] = function () {
  18297. return console.error(_n18), Promise.reject(new te({
  18298. code: "SYS_ERR",
  18299. message: _n18
  18300. }));
  18301. };
  18302. });
  18303. }
  18304. Object.assign(Vs, {
  18305. get mixinDatacom() {
  18306. return Ds(Vs);
  18307. }
  18308. }), Ts(Vs), Vs.addInterceptor = N, Vs.removeInterceptor = D, Vs.interceptObject = F, S && "web" === C && (window.uniCloud = Vs);
  18309. })();
  18310. var Gs = Vs;
  18311. exports.default = Gs;
  18312. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  18313. /***/ }),
  18314. /***/ 29:
  18315. /*!************************************************************************************************!*\
  18316. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  18317. \************************************************************************************************/
  18318. /*! no static exports found */
  18319. /***/ (function(module, exports, __webpack_require__) {
  18320. // TODO(Babel 8): Remove this file.
  18321. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 30)();
  18322. module.exports = runtime;
  18323. /***/ }),
  18324. /***/ 3:
  18325. /*!***********************************!*\
  18326. !*** (webpack)/buildin/global.js ***!
  18327. \***********************************/
  18328. /*! no static exports found */
  18329. /***/ (function(module, exports) {
  18330. var g;
  18331. // This works in non-strict mode
  18332. g = (function() {
  18333. return this;
  18334. })();
  18335. try {
  18336. // This works if eval is allowed (see CSP)
  18337. g = g || new Function("return this")();
  18338. } catch (e) {
  18339. // This works if the window reference is available
  18340. if (typeof window === "object") g = window;
  18341. }
  18342. // g can still be undefined, but nothing to do about it...
  18343. // We return undefined, instead of nothing here, so it's
  18344. // easier to handle this case. if(!global) { ...}
  18345. module.exports = g;
  18346. /***/ }),
  18347. /***/ 30:
  18348. /*!*******************************************************************!*\
  18349. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  18350. \*******************************************************************/
  18351. /*! no static exports found */
  18352. /***/ (function(module, exports, __webpack_require__) {
  18353. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18354. function _regeneratorRuntime() {
  18355. "use strict";
  18356. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  18357. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  18358. return e;
  18359. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18360. var t,
  18361. e = {},
  18362. r = Object.prototype,
  18363. n = r.hasOwnProperty,
  18364. o = Object.defineProperty || function (t, e, r) {
  18365. t[e] = r.value;
  18366. },
  18367. i = "function" == typeof Symbol ? Symbol : {},
  18368. a = i.iterator || "@@iterator",
  18369. c = i.asyncIterator || "@@asyncIterator",
  18370. u = i.toStringTag || "@@toStringTag";
  18371. function define(t, e, r) {
  18372. return Object.defineProperty(t, e, {
  18373. value: r,
  18374. enumerable: !0,
  18375. configurable: !0,
  18376. writable: !0
  18377. }), t[e];
  18378. }
  18379. try {
  18380. define({}, "");
  18381. } catch (t) {
  18382. define = function define(t, e, r) {
  18383. return t[e] = r;
  18384. };
  18385. }
  18386. function wrap(t, e, r, n) {
  18387. var i = e && e.prototype instanceof Generator ? e : Generator,
  18388. a = Object.create(i.prototype),
  18389. c = new Context(n || []);
  18390. return o(a, "_invoke", {
  18391. value: makeInvokeMethod(t, r, c)
  18392. }), a;
  18393. }
  18394. function tryCatch(t, e, r) {
  18395. try {
  18396. return {
  18397. type: "normal",
  18398. arg: t.call(e, r)
  18399. };
  18400. } catch (t) {
  18401. return {
  18402. type: "throw",
  18403. arg: t
  18404. };
  18405. }
  18406. }
  18407. e.wrap = wrap;
  18408. var h = "suspendedStart",
  18409. l = "suspendedYield",
  18410. f = "executing",
  18411. s = "completed",
  18412. y = {};
  18413. function Generator() {}
  18414. function GeneratorFunction() {}
  18415. function GeneratorFunctionPrototype() {}
  18416. var p = {};
  18417. define(p, a, function () {
  18418. return this;
  18419. });
  18420. var d = Object.getPrototypeOf,
  18421. v = d && d(d(values([])));
  18422. v && v !== r && n.call(v, a) && (p = v);
  18423. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  18424. function defineIteratorMethods(t) {
  18425. ["next", "throw", "return"].forEach(function (e) {
  18426. define(t, e, function (t) {
  18427. return this._invoke(e, t);
  18428. });
  18429. });
  18430. }
  18431. function AsyncIterator(t, e) {
  18432. function invoke(r, o, i, a) {
  18433. var c = tryCatch(t[r], t, o);
  18434. if ("throw" !== c.type) {
  18435. var u = c.arg,
  18436. h = u.value;
  18437. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  18438. invoke("next", t, i, a);
  18439. }, function (t) {
  18440. invoke("throw", t, i, a);
  18441. }) : e.resolve(h).then(function (t) {
  18442. u.value = t, i(u);
  18443. }, function (t) {
  18444. return invoke("throw", t, i, a);
  18445. });
  18446. }
  18447. a(c.arg);
  18448. }
  18449. var r;
  18450. o(this, "_invoke", {
  18451. value: function value(t, n) {
  18452. function callInvokeWithMethodAndArg() {
  18453. return new e(function (e, r) {
  18454. invoke(t, n, e, r);
  18455. });
  18456. }
  18457. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  18458. }
  18459. });
  18460. }
  18461. function makeInvokeMethod(e, r, n) {
  18462. var o = h;
  18463. return function (i, a) {
  18464. if (o === f) throw Error("Generator is already running");
  18465. if (o === s) {
  18466. if ("throw" === i) throw a;
  18467. return {
  18468. value: t,
  18469. done: !0
  18470. };
  18471. }
  18472. for (n.method = i, n.arg = a;;) {
  18473. var c = n.delegate;
  18474. if (c) {
  18475. var u = maybeInvokeDelegate(c, n);
  18476. if (u) {
  18477. if (u === y) continue;
  18478. return u;
  18479. }
  18480. }
  18481. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  18482. if (o === h) throw o = s, n.arg;
  18483. n.dispatchException(n.arg);
  18484. } else "return" === n.method && n.abrupt("return", n.arg);
  18485. o = f;
  18486. var p = tryCatch(e, r, n);
  18487. if ("normal" === p.type) {
  18488. if (o = n.done ? s : l, p.arg === y) continue;
  18489. return {
  18490. value: p.arg,
  18491. done: n.done
  18492. };
  18493. }
  18494. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  18495. }
  18496. };
  18497. }
  18498. function maybeInvokeDelegate(e, r) {
  18499. var n = r.method,
  18500. o = e.iterator[n];
  18501. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  18502. var i = tryCatch(o, e.iterator, r.arg);
  18503. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  18504. var a = i.arg;
  18505. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  18506. }
  18507. function pushTryEntry(t) {
  18508. var e = {
  18509. tryLoc: t[0]
  18510. };
  18511. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  18512. }
  18513. function resetTryEntry(t) {
  18514. var e = t.completion || {};
  18515. e.type = "normal", delete e.arg, t.completion = e;
  18516. }
  18517. function Context(t) {
  18518. this.tryEntries = [{
  18519. tryLoc: "root"
  18520. }], t.forEach(pushTryEntry, this), this.reset(!0);
  18521. }
  18522. function values(e) {
  18523. if (e || "" === e) {
  18524. var r = e[a];
  18525. if (r) return r.call(e);
  18526. if ("function" == typeof e.next) return e;
  18527. if (!isNaN(e.length)) {
  18528. var o = -1,
  18529. i = function next() {
  18530. for (; ++o < e.length;) {
  18531. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  18532. }
  18533. return next.value = t, next.done = !0, next;
  18534. };
  18535. return i.next = i;
  18536. }
  18537. }
  18538. throw new TypeError(_typeof(e) + " is not iterable");
  18539. }
  18540. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  18541. value: GeneratorFunctionPrototype,
  18542. configurable: !0
  18543. }), o(GeneratorFunctionPrototype, "constructor", {
  18544. value: GeneratorFunction,
  18545. configurable: !0
  18546. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  18547. var e = "function" == typeof t && t.constructor;
  18548. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  18549. }, e.mark = function (t) {
  18550. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  18551. }, e.awrap = function (t) {
  18552. return {
  18553. __await: t
  18554. };
  18555. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  18556. return this;
  18557. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  18558. void 0 === i && (i = Promise);
  18559. var a = new AsyncIterator(wrap(t, r, n, o), i);
  18560. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  18561. return t.done ? t.value : a.next();
  18562. });
  18563. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  18564. return this;
  18565. }), define(g, "toString", function () {
  18566. return "[object Generator]";
  18567. }), e.keys = function (t) {
  18568. var e = Object(t),
  18569. r = [];
  18570. for (var n in e) {
  18571. r.push(n);
  18572. }
  18573. return r.reverse(), function next() {
  18574. for (; r.length;) {
  18575. var t = r.pop();
  18576. if (t in e) return next.value = t, next.done = !1, next;
  18577. }
  18578. return next.done = !0, next;
  18579. };
  18580. }, e.values = values, Context.prototype = {
  18581. constructor: Context,
  18582. reset: function reset(e) {
  18583. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  18584. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  18585. }
  18586. },
  18587. stop: function stop() {
  18588. this.done = !0;
  18589. var t = this.tryEntries[0].completion;
  18590. if ("throw" === t.type) throw t.arg;
  18591. return this.rval;
  18592. },
  18593. dispatchException: function dispatchException(e) {
  18594. if (this.done) throw e;
  18595. var r = this;
  18596. function handle(n, o) {
  18597. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  18598. }
  18599. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  18600. var i = this.tryEntries[o],
  18601. a = i.completion;
  18602. if ("root" === i.tryLoc) return handle("end");
  18603. if (i.tryLoc <= this.prev) {
  18604. var c = n.call(i, "catchLoc"),
  18605. u = n.call(i, "finallyLoc");
  18606. if (c && u) {
  18607. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  18608. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  18609. } else if (c) {
  18610. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  18611. } else {
  18612. if (!u) throw Error("try statement without catch or finally");
  18613. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  18614. }
  18615. }
  18616. }
  18617. },
  18618. abrupt: function abrupt(t, e) {
  18619. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  18620. var o = this.tryEntries[r];
  18621. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  18622. var i = o;
  18623. break;
  18624. }
  18625. }
  18626. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  18627. var a = i ? i.completion : {};
  18628. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  18629. },
  18630. complete: function complete(t, e) {
  18631. if ("throw" === t.type) throw t.arg;
  18632. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  18633. },
  18634. finish: function finish(t) {
  18635. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  18636. var r = this.tryEntries[e];
  18637. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  18638. }
  18639. },
  18640. "catch": function _catch(t) {
  18641. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  18642. var r = this.tryEntries[e];
  18643. if (r.tryLoc === t) {
  18644. var n = r.completion;
  18645. if ("throw" === n.type) {
  18646. var o = n.arg;
  18647. resetTryEntry(r);
  18648. }
  18649. return o;
  18650. }
  18651. }
  18652. throw Error("illegal catch attempt");
  18653. },
  18654. delegateYield: function delegateYield(e, r, n) {
  18655. return this.delegate = {
  18656. iterator: values(e),
  18657. resultName: r,
  18658. nextLoc: n
  18659. }, "next" === this.method && (this.arg = t), y;
  18660. }
  18661. }, e;
  18662. }
  18663. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18664. /***/ }),
  18665. /***/ 31:
  18666. /*!**********************************************************************!*\
  18667. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  18668. \**********************************************************************/
  18669. /*! no static exports found */
  18670. /***/ (function(module, exports) {
  18671. function _assertThisInitialized(self) {
  18672. if (self === void 0) {
  18673. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  18674. }
  18675. return self;
  18676. }
  18677. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18678. /***/ }),
  18679. /***/ 32:
  18680. /*!*****************************************************************!*\
  18681. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  18682. \*****************************************************************/
  18683. /*! no static exports found */
  18684. /***/ (function(module, exports) {
  18685. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  18686. try {
  18687. var info = gen[key](arg);
  18688. var value = info.value;
  18689. } catch (error) {
  18690. reject(error);
  18691. return;
  18692. }
  18693. if (info.done) {
  18694. resolve(value);
  18695. } else {
  18696. Promise.resolve(value).then(_next, _throw);
  18697. }
  18698. }
  18699. function _asyncToGenerator(fn) {
  18700. return function () {
  18701. var self = this,
  18702. args = arguments;
  18703. return new Promise(function (resolve, reject) {
  18704. var gen = fn.apply(self, args);
  18705. function _next(value) {
  18706. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  18707. }
  18708. function _throw(err) {
  18709. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  18710. }
  18711. _next(undefined);
  18712. });
  18713. };
  18714. }
  18715. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18716. /***/ }),
  18717. /***/ 33:
  18718. /*!*********************************************************!*\
  18719. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  18720. \*********************************************************/
  18721. /*! no static exports found */
  18722. /***/ (function(module, exports, __webpack_require__) {
  18723. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18724. function _inherits(subClass, superClass) {
  18725. if (typeof superClass !== "function" && superClass !== null) {
  18726. throw new TypeError("Super expression must either be null or a function");
  18727. }
  18728. subClass.prototype = Object.create(superClass && superClass.prototype, {
  18729. constructor: {
  18730. value: subClass,
  18731. writable: true,
  18732. configurable: true
  18733. }
  18734. });
  18735. Object.defineProperty(subClass, "prototype", {
  18736. writable: false
  18737. });
  18738. if (superClass) setPrototypeOf(subClass, superClass);
  18739. }
  18740. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18741. /***/ }),
  18742. /***/ 34:
  18743. /*!**************************************************************************!*\
  18744. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  18745. \**************************************************************************/
  18746. /*! no static exports found */
  18747. /***/ (function(module, exports, __webpack_require__) {
  18748. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  18749. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 31);
  18750. function _possibleConstructorReturn(self, call) {
  18751. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  18752. return call;
  18753. } else if (call !== void 0) {
  18754. throw new TypeError("Derived constructors may only return object or undefined");
  18755. }
  18756. return assertThisInitialized(self);
  18757. }
  18758. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18759. /***/ }),
  18760. /***/ 35:
  18761. /*!***************************************************************!*\
  18762. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  18763. \***************************************************************/
  18764. /*! no static exports found */
  18765. /***/ (function(module, exports) {
  18766. function _getPrototypeOf(o) {
  18767. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  18768. return o.__proto__ || Object.getPrototypeOf(o);
  18769. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18770. return _getPrototypeOf(o);
  18771. }
  18772. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18773. /***/ }),
  18774. /***/ 36:
  18775. /*!****************************************************************!*\
  18776. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  18777. \****************************************************************/
  18778. /*! no static exports found */
  18779. /***/ (function(module, exports, __webpack_require__) {
  18780. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 35);
  18781. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  18782. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 37);
  18783. var construct = __webpack_require__(/*! ./construct.js */ 15);
  18784. function _wrapNativeSuper(Class) {
  18785. var _cache = typeof Map === "function" ? new Map() : undefined;
  18786. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  18787. if (Class === null || !isNativeFunction(Class)) return Class;
  18788. if (typeof Class !== "function") {
  18789. throw new TypeError("Super expression must either be null or a function");
  18790. }
  18791. if (typeof _cache !== "undefined") {
  18792. if (_cache.has(Class)) return _cache.get(Class);
  18793. _cache.set(Class, Wrapper);
  18794. }
  18795. function Wrapper() {
  18796. return construct(Class, arguments, getPrototypeOf(this).constructor);
  18797. }
  18798. Wrapper.prototype = Object.create(Class.prototype, {
  18799. constructor: {
  18800. value: Wrapper,
  18801. enumerable: false,
  18802. writable: true,
  18803. configurable: true
  18804. }
  18805. });
  18806. return setPrototypeOf(Wrapper, Class);
  18807. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18808. return _wrapNativeSuper(Class);
  18809. }
  18810. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18811. /***/ }),
  18812. /***/ 37:
  18813. /*!*****************************************************************!*\
  18814. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  18815. \*****************************************************************/
  18816. /*! no static exports found */
  18817. /***/ (function(module, exports) {
  18818. function _isNativeFunction(fn) {
  18819. try {
  18820. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  18821. } catch (e) {
  18822. return typeof fn === "function";
  18823. }
  18824. }
  18825. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  18826. /***/ }),
  18827. /***/ 38:
  18828. /*!*********************************************************************!*\
  18829. !*** D:/AAA_Company/红沙湾管理端/pages.json?{"type":"origin-pages-json"} ***!
  18830. \*********************************************************************/
  18831. /*! no static exports found */
  18832. /***/ (function(module, exports, __webpack_require__) {
  18833. "use strict";
  18834. Object.defineProperty(exports, "__esModule", {
  18835. value: true
  18836. });
  18837. exports.default = void 0;
  18838. var _default = {
  18839. "pages": [{
  18840. "path": "pages/gocompnay/index",
  18841. "style": {
  18842. "navigationBarTitleText": "企业端",
  18843. "enablePullDownRefresh": true,
  18844. "onReachBottomDistance": 100,
  18845. "app-plus": {
  18846. "bounce": "vertical",
  18847. "titleNView": {
  18848. "buttons": [{
  18849. "text": "",
  18850. "fontSrc": "/static/uni.ttf",
  18851. "fontSize": "22px",
  18852. "color": "#FFFFFF"
  18853. }]
  18854. }
  18855. },
  18856. "component": true
  18857. }
  18858. }, {
  18859. "path": "pages/downloadfile/index",
  18860. "style": {
  18861. "navigationBarTitleText": "企业端",
  18862. "enablePullDownRefresh": true,
  18863. "onReachBottomDistance": 100,
  18864. "app-plus": {
  18865. "bounce": "vertical",
  18866. "titleNView": {
  18867. "buttons": [{
  18868. "text": "",
  18869. "fontSrc": "/static/uni.ttf",
  18870. "fontSize": "22px",
  18871. "color": "#FFFFFF"
  18872. }]
  18873. }
  18874. },
  18875. "component": true
  18876. }
  18877. }, {
  18878. "path": "pages/login/login",
  18879. "style": {
  18880. "navigationBarTitleText": "登录",
  18881. "app-plus": {
  18882. "titleNView": {
  18883. "buttons": [{
  18884. "text": "",
  18885. "fontSrc": "/static/uni.ttf",
  18886. "fontSize": "22px",
  18887. "color": "#FFFFFF"
  18888. }]
  18889. }
  18890. },
  18891. "usingComponents": {
  18892. "van-button": "/wxcomponents/weapp/dist/button/index",
  18893. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18894. "van-field": "/wxcomponents/weapp/dist/field/index",
  18895. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18896. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18897. "van-dialog": "/wxcomponents/weapp/dist/dialog/index"
  18898. }
  18899. }
  18900. }, {
  18901. "path": "pages/index/index",
  18902. "style": {
  18903. "navigationBarTitleText": "首页"
  18904. }
  18905. }, {
  18906. "path": "pages/mine/mine",
  18907. "style": {
  18908. "navigationBarTitleText": "我的",
  18909. "app-plus": {
  18910. "bounce": "vertical",
  18911. "titleNView": {
  18912. "buttons": [{
  18913. "text": "",
  18914. "fontSrc": "/static/uni.ttf",
  18915. "fontSize": "22px",
  18916. "color": "#FFFFFF"
  18917. }]
  18918. }
  18919. },
  18920. "usingComponents": {
  18921. "van-button": "/wxcomponents/weapp/dist/button/index",
  18922. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18923. "van-field": "/wxcomponents/weapp/dist/field/index",
  18924. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18925. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18926. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18927. "van-icon": "/wxcomponents/weapp/dist/icon/index"
  18928. }
  18929. }
  18930. }],
  18931. "subPackages": [{
  18932. "root": "pages/subPackages",
  18933. "pages": [{
  18934. "path": "bigscreen/bigscreen",
  18935. "style": {
  18936. "navigationBarTitleText": "可视化大屏",
  18937. "enablePullDownRefresh": true,
  18938. "onReachBottomDistance": 100,
  18939. "app-plus": {
  18940. "bounce": "vertical",
  18941. "titleNView": {
  18942. "buttons": [{
  18943. "text": "",
  18944. "fontSrc": "/static/uni.ttf",
  18945. "fontSize": "22px",
  18946. "color": "#FFFFFF"
  18947. }]
  18948. }
  18949. },
  18950. "component": true
  18951. }
  18952. }, {
  18953. "path": "meetingroom/meetingroom",
  18954. "style": {
  18955. "navigationBarTitleText": "会议室审核",
  18956. "enablePullDownRefresh": true,
  18957. "onReachBottomDistance": 100,
  18958. "app-plus": {
  18959. "bounce": "vertical",
  18960. "titleNView": {
  18961. "buttons": [{
  18962. "text": "",
  18963. "fontSrc": "/static/uni.ttf",
  18964. "fontSize": "22px",
  18965. "color": "#FFFFFF"
  18966. }]
  18967. }
  18968. },
  18969. "component": true,
  18970. "usingComponents": {
  18971. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  18972. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  18973. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  18974. "van-button": "/wxcomponents/weapp/dist/button/index",
  18975. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  18976. "van-field": "/wxcomponents/weapp/dist/field/index",
  18977. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  18978. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  18979. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  18980. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  18981. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  18982. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  18983. }
  18984. }
  18985. }, {
  18986. "path": "venueRoom/meetingroom",
  18987. "style": {
  18988. "navigationBarTitleText": "场馆审核",
  18989. "enablePullDownRefresh": true,
  18990. "onReachBottomDistance": 100,
  18991. "app-plus": {
  18992. "bounce": "vertical",
  18993. "titleNView": {
  18994. "buttons": [{
  18995. "text": "",
  18996. "fontSrc": "/static/uni.ttf",
  18997. "fontSize": "22px",
  18998. "color": "#FFFFFF"
  18999. }]
  19000. }
  19001. },
  19002. "component": true,
  19003. "usingComponents": {
  19004. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19005. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19006. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19007. "van-button": "/wxcomponents/weapp/dist/button/index",
  19008. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19009. "van-field": "/wxcomponents/weapp/dist/field/index",
  19010. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19011. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19012. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19013. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19014. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19015. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19016. }
  19017. }
  19018. }, {
  19019. "path": "parkActivities/index",
  19020. "style": {
  19021. "navigationBarTitleText": "园区活动",
  19022. "enablePullDownRefresh": true,
  19023. "onReachBottomDistance": 100,
  19024. "app-plus": {
  19025. "bounce": "vertical",
  19026. "titleNView": {
  19027. "buttons": [{
  19028. "text": "",
  19029. "fontSrc": "/static/uni.ttf",
  19030. "fontSize": "22px",
  19031. "color": "#FFFFFF"
  19032. }]
  19033. }
  19034. },
  19035. "component": true,
  19036. "usingComponents": {
  19037. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19038. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19039. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19040. "van-button": "/wxcomponents/weapp/dist/button/index",
  19041. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19042. "van-field": "/wxcomponents/weapp/dist/field/index",
  19043. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19044. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19045. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19046. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19047. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19048. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19049. }
  19050. }
  19051. }, {
  19052. "path": "parkActivities/style",
  19053. "style": {
  19054. "navigationBarTitleText": "活动风采",
  19055. "enablePullDownRefresh": true,
  19056. "onReachBottomDistance": 100,
  19057. "app-plus": {
  19058. "bounce": "vertical",
  19059. "titleNView": {
  19060. "buttons": [{
  19061. "text": "",
  19062. "fontSrc": "/static/uni.ttf",
  19063. "fontSize": "22px",
  19064. "color": "#FFFFFF"
  19065. }]
  19066. }
  19067. },
  19068. "component": true,
  19069. "usingComponents": {
  19070. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19071. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19072. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19073. "van-button": "/wxcomponents/weapp/dist/button/index",
  19074. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19075. "van-field": "/wxcomponents/weapp/dist/field/index",
  19076. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19077. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19078. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19079. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19080. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19081. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19082. }
  19083. }
  19084. }, {
  19085. "path": "announcement/index",
  19086. "style": {
  19087. "navigationBarTitleText": "通知公告",
  19088. "enablePullDownRefresh": true,
  19089. "onReachBottomDistance": 100,
  19090. "app-plus": {
  19091. "bounce": "vertical",
  19092. "titleNView": {
  19093. "buttons": [{
  19094. "text": "",
  19095. "fontSrc": "/static/uni.ttf",
  19096. "fontSize": "22px",
  19097. "color": "#FFFFFF"
  19098. }]
  19099. }
  19100. },
  19101. "component": true,
  19102. "usingComponents": {
  19103. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19104. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19105. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19106. "van-button": "/wxcomponents/weapp/dist/button/index",
  19107. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19108. "van-field": "/wxcomponents/weapp/dist/field/index",
  19109. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19110. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19111. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19112. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19113. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19114. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19115. }
  19116. }
  19117. }, {
  19118. "path": "announcement/detail",
  19119. "style": {
  19120. "navigationBarTitleText": "通知公告详情",
  19121. "enablePullDownRefresh": true,
  19122. "onReachBottomDistance": 100,
  19123. "app-plus": {
  19124. "bounce": "vertical",
  19125. "titleNView": {
  19126. "buttons": [{
  19127. "text": "",
  19128. "fontSrc": "/static/uni.ttf",
  19129. "fontSize": "22px",
  19130. "color": "#FFFFFF"
  19131. }]
  19132. }
  19133. },
  19134. "component": true,
  19135. "usingComponents": {
  19136. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19137. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19138. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19139. "van-button": "/wxcomponents/weapp/dist/button/index",
  19140. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19141. "van-field": "/wxcomponents/weapp/dist/field/index",
  19142. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19143. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19144. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19145. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19146. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19147. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19148. }
  19149. }
  19150. }, {
  19151. "path": "parkActivities/detail",
  19152. "style": {
  19153. "navigationBarTitleText": "园区活动详情",
  19154. "enablePullDownRefresh": true,
  19155. "onReachBottomDistance": 100,
  19156. "app-plus": {
  19157. "bounce": "vertical",
  19158. "titleNView": {
  19159. "buttons": [{
  19160. "text": "",
  19161. "fontSrc": "/static/uni.ttf",
  19162. "fontSize": "22px",
  19163. "color": "#FFFFFF"
  19164. }]
  19165. }
  19166. },
  19167. "component": true,
  19168. "usingComponents": {
  19169. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19170. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19171. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19172. "van-button": "/wxcomponents/weapp/dist/button/index",
  19173. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19174. "van-field": "/wxcomponents/weapp/dist/field/index",
  19175. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19176. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19177. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19178. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19179. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19180. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19181. }
  19182. }
  19183. }, {
  19184. "path": "addZaiti/index",
  19185. "style": {
  19186. "navigationBarTitleText": "创建载体",
  19187. "enablePullDownRefresh": true,
  19188. "onReachBottomDistance": 100,
  19189. "app-plus": {
  19190. "bounce": "vertical",
  19191. "titleNView": {
  19192. "buttons": [{
  19193. "text": "",
  19194. "fontSrc": "/static/uni.ttf",
  19195. "fontSize": "22px",
  19196. "color": "#FFFFFF"
  19197. }]
  19198. }
  19199. },
  19200. "component": true,
  19201. "usingComponents": {
  19202. "van-button": "/wxcomponents/weapp/dist/button/index",
  19203. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19204. "van-field": "/wxcomponents/weapp/dist/field/index",
  19205. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19206. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19207. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19208. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19209. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19210. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19211. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  19212. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19213. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19214. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19215. }
  19216. }
  19217. }, {
  19218. "path": "activity/index",
  19219. "style": {
  19220. "navigationBarTitleText": "活动核销签到",
  19221. "enablePullDownRefresh": true,
  19222. "onReachBottomDistance": 100,
  19223. "app-plus": {
  19224. "bounce": "vertical",
  19225. "titleNView": {
  19226. "buttons": [{
  19227. "text": "",
  19228. "fontSrc": "/static/uni.ttf",
  19229. "fontSize": "22px",
  19230. "color": "#FFFFFF"
  19231. }]
  19232. }
  19233. },
  19234. "component": true,
  19235. "usingComponents": {
  19236. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19237. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19238. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19239. "van-button": "/wxcomponents/weapp/dist/button/index",
  19240. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19241. "van-field": "/wxcomponents/weapp/dist/field/index",
  19242. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19243. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19244. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19245. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19246. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19247. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19248. }
  19249. }
  19250. }, {
  19251. "path": "activity/code",
  19252. "style": {
  19253. "navigationBarTitleText": "活动核销扫码确认签到",
  19254. "enablePullDownRefresh": true,
  19255. "onReachBottomDistance": 100,
  19256. "app-plus": {
  19257. "bounce": "vertical",
  19258. "titleNView": {
  19259. "buttons": [{
  19260. "text": "",
  19261. "fontSrc": "/static/uni.ttf",
  19262. "fontSize": "22px",
  19263. "color": "#FFFFFF"
  19264. }]
  19265. }
  19266. },
  19267. "component": true,
  19268. "usingComponents": {
  19269. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19270. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19271. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19272. "van-button": "/wxcomponents/weapp/dist/button/index",
  19273. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19274. "van-field": "/wxcomponents/weapp/dist/field/index",
  19275. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19276. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19277. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19278. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19279. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19280. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19281. }
  19282. }
  19283. }, {
  19284. "path": "password/index",
  19285. "style": {
  19286. "navigationBarTitleText": "修改密码",
  19287. "enablePullDownRefresh": true,
  19288. "onReachBottomDistance": 100,
  19289. "app-plus": {
  19290. "bounce": "vertical",
  19291. "titleNView": {
  19292. "buttons": [{
  19293. "text": "",
  19294. "fontSrc": "/static/uni.ttf",
  19295. "fontSize": "22px",
  19296. "color": "#FFFFFF"
  19297. }]
  19298. }
  19299. },
  19300. "component": true,
  19301. "usingComponents": {
  19302. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19303. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19304. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19305. "van-button": "/wxcomponents/weapp/dist/button/index",
  19306. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19307. "van-field": "/wxcomponents/weapp/dist/field/index",
  19308. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19309. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19310. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19311. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19312. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19313. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19314. }
  19315. }
  19316. }, {
  19317. "path": "buildmap/index",
  19318. "style": {
  19319. "navigationBarTitleText": "党建地图",
  19320. "enablePullDownRefresh": true,
  19321. "onReachBottomDistance": 100,
  19322. "app-plus": {
  19323. "bounce": "vertical",
  19324. "titleNView": {
  19325. "buttons": [{
  19326. "text": "",
  19327. "fontSrc": "/static/uni.ttf",
  19328. "fontSize": "22px",
  19329. "color": "#FFFFFF"
  19330. }]
  19331. }
  19332. },
  19333. "component": true,
  19334. "usingComponents": {
  19335. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19336. "van-button": "/wxcomponents/weapp/dist/button/index",
  19337. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19338. "van-field": "/wxcomponents/weapp/dist/field/index",
  19339. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19340. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19341. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19342. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19343. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19344. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19345. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19346. }
  19347. }
  19348. }, {
  19349. "path": "secureselfplan/addplan",
  19350. "style": {
  19351. "navigationBarTitleText": "安全自检计划-新增",
  19352. "enablePullDownRefresh": true,
  19353. "onReachBottomDistance": 100,
  19354. "app-plus": {
  19355. "bounce": "vertical",
  19356. "titleNView": {
  19357. "buttons": [{
  19358. "text": "",
  19359. "fontSrc": "/static/uni.ttf",
  19360. "fontSize": "22px",
  19361. "color": "#FFFFFF"
  19362. }]
  19363. }
  19364. },
  19365. "component": true,
  19366. "usingComponents": {
  19367. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19368. "van-button": "/wxcomponents/weapp/dist/button/index",
  19369. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19370. "van-field": "/wxcomponents/weapp/dist/field/index",
  19371. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19372. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19373. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19374. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19375. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19376. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19377. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19378. }
  19379. }
  19380. }, {
  19381. "path": "secureselfplan/index",
  19382. "style": {
  19383. "navigationBarTitleText": "安全自检计划",
  19384. "enablePullDownRefresh": true,
  19385. "onReachBottomDistance": 100,
  19386. "app-plus": {
  19387. "bounce": "vertical",
  19388. "titleNView": {
  19389. "buttons": [{
  19390. "text": "",
  19391. "fontSrc": "/static/uni.ttf",
  19392. "fontSize": "22px",
  19393. "color": "#FFFFFF"
  19394. }]
  19395. }
  19396. },
  19397. "component": true,
  19398. "usingComponents": {
  19399. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19400. "van-button": "/wxcomponents/weapp/dist/button/index",
  19401. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19402. "van-field": "/wxcomponents/weapp/dist/field/index",
  19403. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19404. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19405. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19406. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19407. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19408. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19409. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19410. }
  19411. }
  19412. }, {
  19413. "path": "repairDispatch-app/detail",
  19414. "style": {
  19415. "navigationBarTitleText": "政企服务-详情",
  19416. "enablePullDownRefresh": true,
  19417. "onReachBottomDistance": 100,
  19418. "app-plus": {
  19419. "bounce": "vertical",
  19420. "titleNView": {
  19421. "buttons": [{
  19422. "text": "",
  19423. "fontSrc": "/static/uni.ttf",
  19424. "fontSize": "22px",
  19425. "color": "#FFFFFF"
  19426. }]
  19427. }
  19428. },
  19429. "component": true,
  19430. "usingComponents": {
  19431. "van-radio": "/wxcomponents/weapp/dist/radio/index",
  19432. "van-radio-group": "/wxcomponents/weapp/dist/radio-group/index",
  19433. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  19434. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19435. "van-button": "/wxcomponents/weapp/dist/button/index",
  19436. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19437. "van-field": "/wxcomponents/weapp/dist/field/index",
  19438. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19439. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19440. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19441. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19442. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19443. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19444. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19445. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19446. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19447. }
  19448. }
  19449. }, {
  19450. "path": "repairDispatch-app/index",
  19451. "style": {
  19452. "navigationBarTitleText": "政企服务",
  19453. "enablePullDownRefresh": true,
  19454. "onReachBottomDistance": 100,
  19455. "app-plus": {
  19456. "bounce": "vertical",
  19457. "titleNView": {
  19458. "buttons": [{
  19459. "text": "",
  19460. "fontSrc": "/static/uni.ttf",
  19461. "fontSize": "22px",
  19462. "color": "#FFFFFF"
  19463. }]
  19464. }
  19465. },
  19466. "component": true,
  19467. "usingComponents": {
  19468. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19469. "van-button": "/wxcomponents/weapp/dist/button/index",
  19470. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19471. "van-field": "/wxcomponents/weapp/dist/field/index",
  19472. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19473. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19474. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19475. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19476. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19477. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19478. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19479. }
  19480. }
  19481. }, {
  19482. "path": "repairDispatch-serve/detail",
  19483. "style": {
  19484. "navigationBarTitleText": "服务派单-详情",
  19485. "enablePullDownRefresh": true,
  19486. "onReachBottomDistance": 100,
  19487. "app-plus": {
  19488. "bounce": "vertical",
  19489. "titleNView": {
  19490. "buttons": [{
  19491. "text": "",
  19492. "fontSrc": "/static/uni.ttf",
  19493. "fontSize": "22px",
  19494. "color": "#FFFFFF"
  19495. }]
  19496. }
  19497. },
  19498. "component": true,
  19499. "usingComponents": {
  19500. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  19501. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19502. "van-button": "/wxcomponents/weapp/dist/button/index",
  19503. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19504. "van-field": "/wxcomponents/weapp/dist/field/index",
  19505. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19506. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19507. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19508. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19509. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19510. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19511. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  19512. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  19513. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  19514. }
  19515. }
  19516. }, {
  19517. "path": "repairDispatch-serve/index",
  19518. "style": {
  19519. "navigationBarTitleText": "服务派单",
  19520. "enablePullDownRefresh": true,
  19521. "onReachBottomDistance": 100,
  19522. "app-plus": {
  19523. "bounce": "vertical",
  19524. "titleNView": {
  19525. "buttons": [{
  19526. "text": "",
  19527. "fontSrc": "/static/uni.ttf",
  19528. "fontSize": "22px",
  19529. "color": "#FFFFFF"
  19530. }]
  19531. }
  19532. },
  19533. "component": true,
  19534. "usingComponents": {
  19535. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19536. "van-button": "/wxcomponents/weapp/dist/button/index",
  19537. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19538. "van-field": "/wxcomponents/weapp/dist/field/index",
  19539. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19540. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19541. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19542. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19543. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19544. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19545. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19546. }
  19547. }
  19548. }, {
  19549. "path": "repairDispatch-app/add",
  19550. "style": {
  19551. "navigationBarTitleText": "新增派单",
  19552. "enablePullDownRefresh": true,
  19553. "onReachBottomDistance": 100,
  19554. "app-plus": {
  19555. "bounce": "vertical",
  19556. "titleNView": {
  19557. "buttons": [{
  19558. "text": "",
  19559. "fontSrc": "/static/uni.ttf",
  19560. "fontSize": "22px",
  19561. "color": "#FFFFFF"
  19562. }]
  19563. }
  19564. },
  19565. "component": true,
  19566. "usingComponents": {
  19567. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19568. "van-button": "/wxcomponents/weapp/dist/button/index",
  19569. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19570. "van-field": "/wxcomponents/weapp/dist/field/index",
  19571. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19572. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19573. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19574. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19575. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19576. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19577. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19578. }
  19579. }
  19580. }, {
  19581. "path": "repairprocessing-app/detail",
  19582. "style": {
  19583. "navigationBarTitleText": "服务处理-详情",
  19584. "enablePullDownRefresh": true,
  19585. "onReachBottomDistance": 100,
  19586. "app-plus": {
  19587. "bounce": "vertical",
  19588. "titleNView": {
  19589. "buttons": [{
  19590. "text": "",
  19591. "fontSrc": "/static/uni.ttf",
  19592. "fontSize": "22px",
  19593. "color": "#FFFFFF"
  19594. }]
  19595. }
  19596. },
  19597. "component": true,
  19598. "usingComponents": {
  19599. "van-steps": "/wxcomponents/weapp/dist/steps/index",
  19600. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19601. "van-button": "/wxcomponents/weapp/dist/button/index",
  19602. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19603. "van-field": "/wxcomponents/weapp/dist/field/index",
  19604. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19605. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19606. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19607. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19608. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19609. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19610. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19611. }
  19612. }
  19613. }, {
  19614. "path": "repairprocessing-app/index",
  19615. "style": {
  19616. "navigationBarTitleText": "服务处理",
  19617. "enablePullDownRefresh": true,
  19618. "onReachBottomDistance": 100,
  19619. "app-plus": {
  19620. "bounce": "vertical",
  19621. "titleNView": {
  19622. "buttons": [{
  19623. "text": "",
  19624. "fontSrc": "/static/uni.ttf",
  19625. "fontSize": "22px",
  19626. "color": "#FFFFFF"
  19627. }]
  19628. }
  19629. },
  19630. "component": true,
  19631. "usingComponents": {
  19632. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19633. "van-button": "/wxcomponents/weapp/dist/button/index",
  19634. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19635. "van-field": "/wxcomponents/weapp/dist/field/index",
  19636. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19637. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19638. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19639. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19640. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19641. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19642. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19643. }
  19644. }
  19645. }, {
  19646. "path": "modifySend/index",
  19647. "style": {
  19648. "navigationBarTitleText": "案卷派单",
  19649. "enablePullDownRefresh": true,
  19650. "onReachBottomDistance": 100,
  19651. "app-plus": {
  19652. "bounce": "vertical",
  19653. "titleNView": {
  19654. "buttons": [{
  19655. "text": "",
  19656. "fontSrc": "/static/uni.ttf",
  19657. "fontSize": "22px",
  19658. "color": "#FFFFFF"
  19659. }]
  19660. }
  19661. },
  19662. "component": true,
  19663. "usingComponents": {
  19664. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19665. "van-button": "/wxcomponents/weapp/dist/button/index",
  19666. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19667. "van-field": "/wxcomponents/weapp/dist/field/index",
  19668. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19669. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19670. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19671. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19672. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19673. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19674. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19675. }
  19676. }
  19677. }, {
  19678. "path": "modifyReport/index",
  19679. "style": {
  19680. "navigationBarTitleText": "案卷填报",
  19681. "enablePullDownRefresh": true,
  19682. "onReachBottomDistance": 100,
  19683. "app-plus": {
  19684. "bounce": "vertical",
  19685. "titleNView": {
  19686. "buttons": [{
  19687. "text": "",
  19688. "fontSrc": "/static/uni.ttf",
  19689. "fontSize": "22px",
  19690. "color": "#FFFFFF"
  19691. }]
  19692. }
  19693. },
  19694. "component": true,
  19695. "usingComponents": {
  19696. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19697. "van-button": "/wxcomponents/weapp/dist/button/index",
  19698. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19699. "van-field": "/wxcomponents/weapp/dist/field/index",
  19700. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19701. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19702. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19703. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19704. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19705. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19706. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19707. }
  19708. }
  19709. }, {
  19710. "path": "modifyReport/detail",
  19711. "style": {
  19712. "navigationBarTitleText": "案卷详情",
  19713. "enablePullDownRefresh": true,
  19714. "onReachBottomDistance": 100,
  19715. "app-plus": {
  19716. "bounce": "vertical",
  19717. "titleNView": {
  19718. "buttons": [{
  19719. "text": "",
  19720. "fontSrc": "/static/uni.ttf",
  19721. "fontSize": "22px",
  19722. "color": "#FFFFFF"
  19723. }]
  19724. }
  19725. },
  19726. "component": true,
  19727. "usingComponents": {
  19728. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19729. "van-button": "/wxcomponents/weapp/dist/button/index",
  19730. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19731. "van-field": "/wxcomponents/weapp/dist/field/index",
  19732. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19733. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19734. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19735. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19736. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19737. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19738. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19739. }
  19740. }
  19741. }, {
  19742. "path": "modifyHandle/handle",
  19743. "style": {
  19744. "navigationBarTitleText": "案卷处理",
  19745. "enablePullDownRefresh": true,
  19746. "onReachBottomDistance": 100,
  19747. "app-plus": {
  19748. "bounce": "vertical",
  19749. "titleNView": {
  19750. "buttons": [{
  19751. "text": "",
  19752. "fontSrc": "/static/uni.ttf",
  19753. "fontSize": "22px",
  19754. "color": "#FFFFFF"
  19755. }]
  19756. }
  19757. },
  19758. "component": true,
  19759. "usingComponents": {
  19760. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19761. "van-button": "/wxcomponents/weapp/dist/button/index",
  19762. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19763. "van-field": "/wxcomponents/weapp/dist/field/index",
  19764. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19765. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19766. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19767. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19768. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19769. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19770. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19771. }
  19772. }
  19773. }, {
  19774. "path": "modifySend/confirm",
  19775. "style": {
  19776. "navigationBarTitleText": "案卷确认",
  19777. "enablePullDownRefresh": true,
  19778. "onReachBottomDistance": 100,
  19779. "app-plus": {
  19780. "bounce": "vertical",
  19781. "titleNView": {
  19782. "buttons": [{
  19783. "text": "",
  19784. "fontSrc": "/static/uni.ttf",
  19785. "fontSize": "22px",
  19786. "color": "#FFFFFF"
  19787. }]
  19788. }
  19789. },
  19790. "component": true,
  19791. "usingComponents": {
  19792. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19793. "van-button": "/wxcomponents/weapp/dist/button/index",
  19794. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19795. "van-field": "/wxcomponents/weapp/dist/field/index",
  19796. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19797. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19798. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19799. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19800. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19801. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19802. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19803. }
  19804. }
  19805. }, {
  19806. "path": "modifyHandle/index",
  19807. "style": {
  19808. "navigationBarTitleText": "案卷处理",
  19809. "enablePullDownRefresh": true,
  19810. "onReachBottomDistance": 100,
  19811. "app-plus": {
  19812. "bounce": "vertical",
  19813. "titleNView": {
  19814. "buttons": [{
  19815. "text": "",
  19816. "fontSrc": "/static/uni.ttf",
  19817. "fontSize": "22px",
  19818. "color": "#FFFFFF"
  19819. }]
  19820. }
  19821. },
  19822. "component": true,
  19823. "usingComponents": {
  19824. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19825. "van-button": "/wxcomponents/weapp/dist/button/index",
  19826. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19827. "van-field": "/wxcomponents/weapp/dist/field/index",
  19828. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19829. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19830. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19831. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19832. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19833. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19834. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19835. }
  19836. }
  19837. }, {
  19838. "path": "modifyReport/add",
  19839. "style": {
  19840. "navigationBarTitleText": "新增案卷",
  19841. "enablePullDownRefresh": true,
  19842. "onReachBottomDistance": 100,
  19843. "app-plus": {
  19844. "bounce": "vertical",
  19845. "titleNView": {
  19846. "buttons": [{
  19847. "text": "",
  19848. "fontSrc": "/static/uni.ttf",
  19849. "fontSize": "22px",
  19850. "color": "#FFFFFF"
  19851. }]
  19852. }
  19853. },
  19854. "component": true,
  19855. "usingComponents": {
  19856. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19857. "van-button": "/wxcomponents/weapp/dist/button/index",
  19858. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19859. "van-field": "/wxcomponents/weapp/dist/field/index",
  19860. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19861. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19862. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19863. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19864. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19865. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19866. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19867. }
  19868. }
  19869. }, {
  19870. "path": "secureselftest/report",
  19871. "style": {
  19872. "navigationBarTitleText": "安全管理统计",
  19873. "enablePullDownRefresh": true,
  19874. "onReachBottomDistance": 100,
  19875. "app-plus": {
  19876. "bounce": "vertical",
  19877. "titleNView": {
  19878. "buttons": [{
  19879. "text": "",
  19880. "fontSrc": "/static/uni.ttf",
  19881. "fontSize": "22px",
  19882. "color": "#FFFFFF"
  19883. }]
  19884. }
  19885. },
  19886. "component": true,
  19887. "usingComponents": {
  19888. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19889. "van-button": "/wxcomponents/weapp/dist/button/index",
  19890. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19891. "van-field": "/wxcomponents/weapp/dist/field/index",
  19892. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19893. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19894. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19895. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19896. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19897. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  19898. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  19899. }
  19900. }
  19901. }, {
  19902. "path": "toread/index",
  19903. "style": {
  19904. "navigationBarTitleText": "我的待阅",
  19905. "enablePullDownRefresh": true,
  19906. "onReachBottomDistance": 100,
  19907. "app-plus": {
  19908. "bounce": "vertical",
  19909. "titleNView": {
  19910. "buttons": [{
  19911. "text": "",
  19912. "fontSrc": "/static/uni.ttf",
  19913. "fontSize": "22px",
  19914. "color": "#FFFFFF"
  19915. }]
  19916. }
  19917. },
  19918. "component": true,
  19919. "usingComponents": {
  19920. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19921. "van-button": "/wxcomponents/weapp/dist/button/index",
  19922. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19923. "van-field": "/wxcomponents/weapp/dist/field/index",
  19924. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19925. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19926. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19927. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19928. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19929. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19930. }
  19931. }
  19932. }, {
  19933. "path": "todo/index",
  19934. "style": {
  19935. "navigationBarTitleText": "我的待办",
  19936. "enablePullDownRefresh": true,
  19937. "onReachBottomDistance": 100,
  19938. "app-plus": {
  19939. "bounce": "vertical",
  19940. "titleNView": {
  19941. "buttons": [{
  19942. "text": "",
  19943. "fontSrc": "/static/uni.ttf",
  19944. "fontSize": "22px",
  19945. "color": "#FFFFFF"
  19946. }]
  19947. }
  19948. },
  19949. "component": true,
  19950. "usingComponents": {
  19951. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19952. "van-button": "/wxcomponents/weapp/dist/button/index",
  19953. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19954. "van-field": "/wxcomponents/weapp/dist/field/index",
  19955. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19956. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19957. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19958. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19959. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19960. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19961. }
  19962. }
  19963. }, {
  19964. "path": "secureselftest/index",
  19965. "style": {
  19966. "navigationBarTitleText": "安全管理统计",
  19967. "enablePullDownRefresh": true,
  19968. "onReachBottomDistance": 100,
  19969. "app-plus": {
  19970. "bounce": "vertical",
  19971. "titleNView": {
  19972. "buttons": [{
  19973. "text": "",
  19974. "fontSrc": "/static/uni.ttf",
  19975. "fontSize": "22px",
  19976. "color": "#FFFFFF"
  19977. }]
  19978. }
  19979. },
  19980. "component": true,
  19981. "usingComponents": {
  19982. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  19983. "van-button": "/wxcomponents/weapp/dist/button/index",
  19984. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  19985. "van-field": "/wxcomponents/weapp/dist/field/index",
  19986. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  19987. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  19988. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  19989. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  19990. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  19991. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  19992. }
  19993. }
  19994. }, {
  19995. "path": "secureselftest2/index",
  19996. "style": {
  19997. "navigationBarTitleText": "安全管理自检",
  19998. "enablePullDownRefresh": true,
  19999. "onReachBottomDistance": 100,
  20000. "app-plus": {
  20001. "bounce": "vertical",
  20002. "titleNView": {
  20003. "buttons": [{
  20004. "text": "",
  20005. "fontSrc": "/static/uni.ttf",
  20006. "fontSize": "22px",
  20007. "color": "#FFFFFF"
  20008. }]
  20009. }
  20010. },
  20011. "component": true,
  20012. "usingComponents": {
  20013. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20014. "van-button": "/wxcomponents/weapp/dist/button/index",
  20015. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20016. "van-field": "/wxcomponents/weapp/dist/field/index",
  20017. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20018. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20019. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20020. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20021. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20022. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20023. }
  20024. }
  20025. }, {
  20026. "path": "venueRoom/confirm",
  20027. "style": {
  20028. "navigationBarTitleText": "场馆-审核",
  20029. "enablePullDownRefresh": true,
  20030. "onReachBottomDistance": 100,
  20031. "app-plus": {
  20032. "bounce": "vertical",
  20033. "titleNView": {
  20034. "buttons": [{
  20035. "text": "",
  20036. "fontSrc": "/static/uni.ttf",
  20037. "fontSize": "22px",
  20038. "color": "#FFFFFF"
  20039. }]
  20040. }
  20041. },
  20042. "component": true,
  20043. "usingComponents": {
  20044. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20045. "van-button": "/wxcomponents/weapp/dist/button/index",
  20046. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20047. "van-field": "/wxcomponents/weapp/dist/field/index",
  20048. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20049. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20050. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20051. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20052. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20053. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20054. }
  20055. }
  20056. }, {
  20057. "path": "meetingroom/confirm",
  20058. "style": {
  20059. "navigationBarTitleText": "会议室-审核",
  20060. "enablePullDownRefresh": true,
  20061. "onReachBottomDistance": 100,
  20062. "app-plus": {
  20063. "bounce": "vertical",
  20064. "titleNView": {
  20065. "buttons": [{
  20066. "text": "",
  20067. "fontSrc": "/static/uni.ttf",
  20068. "fontSize": "22px",
  20069. "color": "#FFFFFF"
  20070. }]
  20071. }
  20072. },
  20073. "component": true,
  20074. "usingComponents": {
  20075. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20076. "van-button": "/wxcomponents/weapp/dist/button/index",
  20077. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20078. "van-field": "/wxcomponents/weapp/dist/field/index",
  20079. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20080. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20081. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20082. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20083. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20084. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20085. }
  20086. }
  20087. }, {
  20088. "path": "venueRoom/audit",
  20089. "style": {
  20090. "navigationBarTitleText": "场馆-审核",
  20091. "enablePullDownRefresh": true,
  20092. "onReachBottomDistance": 100,
  20093. "app-plus": {
  20094. "bounce": "vertical",
  20095. "titleNView": {
  20096. "buttons": [{
  20097. "text": "",
  20098. "fontSrc": "/static/uni.ttf",
  20099. "fontSize": "22px",
  20100. "color": "#FFFFFF"
  20101. }]
  20102. }
  20103. },
  20104. "component": true,
  20105. "usingComponents": {
  20106. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20107. "van-button": "/wxcomponents/weapp/dist/button/index",
  20108. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20109. "van-field": "/wxcomponents/weapp/dist/field/index",
  20110. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20111. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20112. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20113. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20114. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20115. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20116. }
  20117. }
  20118. }, {
  20119. "path": "meetingroom/audit",
  20120. "style": {
  20121. "navigationBarTitleText": "会议室-审核",
  20122. "enablePullDownRefresh": true,
  20123. "onReachBottomDistance": 100,
  20124. "app-plus": {
  20125. "bounce": "vertical",
  20126. "titleNView": {
  20127. "buttons": [{
  20128. "text": "",
  20129. "fontSrc": "/static/uni.ttf",
  20130. "fontSize": "22px",
  20131. "color": "#FFFFFF"
  20132. }]
  20133. }
  20134. },
  20135. "component": true,
  20136. "usingComponents": {
  20137. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20138. "van-button": "/wxcomponents/weapp/dist/button/index",
  20139. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20140. "van-field": "/wxcomponents/weapp/dist/field/index",
  20141. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20142. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20143. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20144. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20145. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20146. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20147. }
  20148. }
  20149. }, {
  20150. "path": "merchants/merchants",
  20151. "style": {
  20152. "navigationBarTitleText": "我的招商",
  20153. "enablePullDownRefresh": true,
  20154. "onReachBottomDistance": 100,
  20155. "app-plus": {
  20156. "bounce": "vertical",
  20157. "titleNView": {
  20158. "buttons": [{
  20159. "text": "",
  20160. "fontSrc": "/static/uni.ttf",
  20161. "fontSize": "22px",
  20162. "color": "#FFFFFF"
  20163. }]
  20164. }
  20165. },
  20166. "component": true,
  20167. "usingComponents": {
  20168. "van-button": "/wxcomponents/weapp/dist/button/index",
  20169. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20170. "van-field": "/wxcomponents/weapp/dist/field/index",
  20171. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20172. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20173. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20174. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20175. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20176. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20177. }
  20178. }
  20179. }, {
  20180. "path": "merchants/components/mymechantsdetails",
  20181. "style": {
  20182. "navigationBarTitleText": "我的招商-详情",
  20183. "enablePullDownRefresh": true,
  20184. "onReachBottomDistance": 100,
  20185. "app-plus": {
  20186. "bounce": "vertical",
  20187. "titleNView": {
  20188. "buttons": [{
  20189. "text": "",
  20190. "fontSrc": "/static/uni.ttf",
  20191. "fontSize": "22px",
  20192. "color": "#FFFFFF"
  20193. }]
  20194. }
  20195. },
  20196. "component": true,
  20197. "usingComponents": {
  20198. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  20199. "van-button": "/wxcomponents/weapp/dist/button/index",
  20200. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20201. "van-field": "/wxcomponents/weapp/dist/field/index",
  20202. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20203. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20204. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20205. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20206. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20207. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20208. }
  20209. }
  20210. }, {
  20211. "path": "chooseCompanyTags/index",
  20212. "style": {
  20213. "navigationBarTitleText": "企业标签",
  20214. "enablePullDownRefresh": true,
  20215. "onReachBottomDistance": 100,
  20216. "app-plus": {
  20217. "bounce": "vertical",
  20218. "titleNView": {
  20219. "buttons": [{
  20220. "text": "",
  20221. "fontSrc": "/static/uni.ttf",
  20222. "fontSize": "22px",
  20223. "color": "#FFFFFF"
  20224. }]
  20225. }
  20226. },
  20227. "component": true,
  20228. "usingComponents": {
  20229. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20230. "van-button": "/wxcomponents/weapp/dist/button/index",
  20231. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20232. "van-field": "/wxcomponents/weapp/dist/field/index",
  20233. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20234. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20235. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20236. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20237. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20238. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20239. }
  20240. }
  20241. }, {
  20242. "path": "companyTagsDelete/index",
  20243. "style": {
  20244. "navigationBarTitleText": "企业标签-详情",
  20245. "enablePullDownRefresh": true,
  20246. "onReachBottomDistance": 100,
  20247. "app-plus": {
  20248. "bounce": "vertical",
  20249. "titleNView": {
  20250. "buttons": [{
  20251. "text": "",
  20252. "fontSrc": "/static/uni.ttf",
  20253. "fontSize": "22px",
  20254. "color": "#FFFFFF"
  20255. }]
  20256. }
  20257. },
  20258. "component": true,
  20259. "usingComponents": {
  20260. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20261. "van-button": "/wxcomponents/weapp/dist/button/index",
  20262. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20263. "van-field": "/wxcomponents/weapp/dist/field/index",
  20264. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20265. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20266. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20267. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20268. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20269. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20270. }
  20271. }
  20272. }, {
  20273. "path": "housedetails/housedetails",
  20274. "style": {
  20275. "navigationBarTitleText": "房源详情",
  20276. "enablePullDownRefresh": true,
  20277. "onReachBottomDistance": 100,
  20278. "app-plus": {
  20279. "bounce": "vertical",
  20280. "titleNView": {
  20281. "buttons": [{
  20282. "text": "",
  20283. "fontSrc": "/static/uni.ttf",
  20284. "fontSize": "22px",
  20285. "color": "#FFFFFF"
  20286. }]
  20287. }
  20288. },
  20289. "component": true,
  20290. "usingComponents": {
  20291. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20292. "van-button": "/wxcomponents/weapp/dist/button/index",
  20293. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20294. "van-field": "/wxcomponents/weapp/dist/field/index",
  20295. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20296. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20297. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20298. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20299. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20300. "van-tabs": "/wxcomponents/weapp/dist/tabs/index"
  20301. }
  20302. }
  20303. }, {
  20304. "path": "addintention/addintention",
  20305. "style": {
  20306. "navigationBarTitleText": "新增意向",
  20307. "enablePullDownRefresh": true,
  20308. "onReachBottomDistance": 100,
  20309. "app-plus": {
  20310. "bounce": "vertical",
  20311. "titleNView": {
  20312. "buttons": [{
  20313. "text": "",
  20314. "fontSrc": "/static/uni.ttf",
  20315. "fontSize": "22px",
  20316. "color": "#FFFFFF"
  20317. }]
  20318. }
  20319. },
  20320. "component": true,
  20321. "usingComponents": {
  20322. "van-button": "/wxcomponents/weapp/dist/button/index",
  20323. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20324. "van-field": "/wxcomponents/weapp/dist/field/index",
  20325. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20326. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20327. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20328. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20329. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20330. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20331. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20332. "van-uploader": "/wxcomponents/weapp/dist/uploader/index"
  20333. }
  20334. }
  20335. }, {
  20336. "path": "chosseHouse/chosseHouse",
  20337. "style": {
  20338. "navigationBarTitleText": "选择房源",
  20339. "enablePullDownRefresh": true,
  20340. "onReachBottomDistance": 100,
  20341. "app-plus": {
  20342. "bounce": "vertical",
  20343. "titleNView": {
  20344. "buttons": [{
  20345. "text": "",
  20346. "fontSrc": "/static/uni.ttf",
  20347. "fontSize": "22px",
  20348. "color": "#FFFFFF"
  20349. }]
  20350. }
  20351. },
  20352. "component": true,
  20353. "usingComponents": {
  20354. "van-button": "/wxcomponents/weapp/dist/button/index",
  20355. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20356. "van-field": "/wxcomponents/weapp/dist/field/index",
  20357. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20358. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20359. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20360. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20361. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20362. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20363. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20364. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  20365. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  20366. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  20367. }
  20368. }
  20369. }, {
  20370. "path": "companyreport/components/reportDetails",
  20371. "style": {
  20372. "navigationBarTitleText": "走访上报-详情",
  20373. "enablePullDownRefresh": true,
  20374. "onReachBottomDistance": 100,
  20375. "app-plus": {
  20376. "bounce": "vertical",
  20377. "titleNView": {
  20378. "buttons": [{
  20379. "text": "",
  20380. "fontSrc": "/static/uni.ttf",
  20381. "fontSize": "22px",
  20382. "color": "#FFFFFF"
  20383. }]
  20384. }
  20385. },
  20386. "component": true,
  20387. "usingComponents": {
  20388. "van-button": "/wxcomponents/weapp/dist/button/index",
  20389. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20390. "van-field": "/wxcomponents/weapp/dist/field/index",
  20391. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20392. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20393. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20394. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20395. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20396. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20397. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20398. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  20399. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  20400. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  20401. }
  20402. }
  20403. }, {
  20404. "path": "companyreport/companyreport",
  20405. "style": {
  20406. "navigationBarTitleText": "走访上报",
  20407. "enablePullDownRefresh": true,
  20408. "onReachBottomDistance": 100,
  20409. "app-plus": {
  20410. "bounce": "vertical",
  20411. "titleNView": {
  20412. "buttons": [{
  20413. "text": "",
  20414. "fontSrc": "/static/uni.ttf",
  20415. "fontSize": "22px",
  20416. "color": "#FFFFFF"
  20417. }]
  20418. }
  20419. },
  20420. "component": true,
  20421. "usingComponents": {
  20422. "van-button": "/wxcomponents/weapp/dist/button/index",
  20423. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20424. "van-field": "/wxcomponents/weapp/dist/field/index",
  20425. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20426. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20427. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20428. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20429. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20430. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20431. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  20432. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  20433. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  20434. }
  20435. }
  20436. }, {
  20437. "path": "companyHouse/companyHouse",
  20438. "style": {
  20439. "navigationBarTitleText": "企业库",
  20440. "enablePullDownRefresh": true,
  20441. "onReachBottomDistance": 100,
  20442. "app-plus": {
  20443. "bounce": "vertical",
  20444. "titleNView": {
  20445. "buttons": [{
  20446. "text": "",
  20447. "fontSrc": "/static/uni.ttf",
  20448. "fontSize": "22px",
  20449. "color": "#FFFFFF"
  20450. }]
  20451. }
  20452. },
  20453. "component": true,
  20454. "usingComponents": {
  20455. "van-button": "/wxcomponents/weapp/dist/button/index",
  20456. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20457. "van-field": "/wxcomponents/weapp/dist/field/index",
  20458. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20459. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20460. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20461. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20462. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20463. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20464. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20465. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  20466. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  20467. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  20468. }
  20469. }
  20470. }, {
  20471. "path": "companyDetails/companyDetails",
  20472. "style": {
  20473. "navigationBarTitleText": "企业详情",
  20474. "enablePullDownRefresh": true,
  20475. "onReachBottomDistance": 100,
  20476. "app-plus": {
  20477. "bounce": "vertical",
  20478. "titleNView": {
  20479. "buttons": [{
  20480. "text": "",
  20481. "fontSrc": "/static/uni.ttf",
  20482. "fontSize": "22px",
  20483. "color": "#FFFFFF"
  20484. }]
  20485. }
  20486. },
  20487. "component": true,
  20488. "usingComponents": {
  20489. "van-button": "/wxcomponents/weapp/dist/button/index",
  20490. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20491. "van-field": "/wxcomponents/weapp/dist/field/index",
  20492. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20493. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20494. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20495. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20496. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20497. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20498. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20499. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  20500. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  20501. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  20502. }
  20503. }
  20504. }, {
  20505. "path": "addCompany/addCompany",
  20506. "style": {
  20507. "navigationBarTitleText": "添加企业",
  20508. "enablePullDownRefresh": true,
  20509. "onReachBottomDistance": 100,
  20510. "app-plus": {
  20511. "bounce": "vertical",
  20512. "titleNView": {
  20513. "buttons": [{
  20514. "text": "",
  20515. "fontSrc": "/static/uni.ttf",
  20516. "fontSize": "22px",
  20517. "color": "#FFFFFF"
  20518. }]
  20519. }
  20520. },
  20521. "component": true,
  20522. "usingComponents": {
  20523. "van-button": "/wxcomponents/weapp/dist/button/index",
  20524. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20525. "van-field": "/wxcomponents/weapp/dist/field/index",
  20526. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20527. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20528. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20529. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20530. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20531. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20532. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20533. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  20534. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  20535. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  20536. }
  20537. }
  20538. }, {
  20539. "path": "companyDetailsEdit/companyDetailsEdit",
  20540. "style": {
  20541. "navigationBarTitleText": "编辑企业基本信息",
  20542. "enablePullDownRefresh": true,
  20543. "onReachBottomDistance": 100,
  20544. "app-plus": {
  20545. "bounce": "vertical",
  20546. "titleNView": {
  20547. "buttons": [{
  20548. "text": "",
  20549. "fontSrc": "/static/uni.ttf",
  20550. "fontSize": "22px",
  20551. "color": "#FFFFFF"
  20552. }]
  20553. }
  20554. },
  20555. "component": true,
  20556. "usingComponents": {
  20557. "van-button": "/wxcomponents/weapp/dist/button/index",
  20558. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20559. "van-field": "/wxcomponents/weapp/dist/field/index",
  20560. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20561. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20562. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20563. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20564. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20565. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20566. "van-datetime-picker": "/wxcomponents/weapp/dist/datetime-picker/index",
  20567. "van-uploader": "/wxcomponents/weapp/dist/uploader/index",
  20568. "van-checkbox": "/wxcomponents/weapp/dist/checkbox/index",
  20569. "van-checkbox-group": "/wxcomponents/weapp/dist/checkbox-group/index"
  20570. }
  20571. }
  20572. }],
  20573. "network": "all"
  20574. }],
  20575. "globalStyle": {
  20576. "pageOrientation": "portrait",
  20577. "navigationBarTitleText": "Hello uniapp",
  20578. "navigationBarTextStyle": "black",
  20579. "navigationBarBackgroundColor": "#FFFFFF",
  20580. "backgroundColor": "#FFFFFF",
  20581. "backgroundColorTop": "#FFFFFF",
  20582. "backgroundColorBottom": "#F4F5F6",
  20583. "usingComponents": {
  20584. "van-empty": "/wxcomponents/weapp/dist/empty/index",
  20585. "van-button": "/wxcomponents/weapp/dist/button/index",
  20586. "van-toast": "/wxcomponents/weapp/dist/toast/index",
  20587. "van-field": "/wxcomponents/weapp/dist/field/index",
  20588. "van-popup": "/wxcomponents/weapp/dist/popup/index",
  20589. "van-picker": "/wxcomponents/weapp/dist/picker/index",
  20590. "van-dialog": "/wxcomponents/weapp/dist/dialog/index",
  20591. "van-icon": "/wxcomponents/weapp/dist/icon/index",
  20592. "van-tab": "/wxcomponents/weapp/dist/tab/index",
  20593. "van-tabs": "/wxcomponents/weapp/dist/tabs/index",
  20594. "van-row": "/wxcomponents/weapp/dist/row/index",
  20595. "van-col": "/wxcomponents/weapp/dist/col/index"
  20596. }
  20597. },
  20598. "tabBar": {
  20599. "color": "#7A7E83",
  20600. "selectedColor": "#2527AA",
  20601. "borderStyle": "black",
  20602. "backgroundColor": "#F8F8F8",
  20603. "list": [{
  20604. "pagePath": "pages/index/index",
  20605. "iconPath": "static/home.png",
  20606. "selectedIconPath": "static/homeselect.png",
  20607. "text": "首页"
  20608. }, {
  20609. "pagePath": "pages/mine/mine",
  20610. "iconPath": "static/mine.png",
  20611. "selectedIconPath": "static/mineselect.png",
  20612. "text": "我的"
  20613. }]
  20614. },
  20615. "window": {
  20616. "backgroundTextStyle": "dark",
  20617. "navigationBarBackgroundColor": "#ffffff",
  20618. "navigationBarTitleText": "Demo",
  20619. "navigationBarTextStyle": "black",
  20620. "enablePullDownRefresh": true
  20621. },
  20622. "condition": {
  20623. "current": 0,
  20624. "list": [{
  20625. "name": "",
  20626. "path": "",
  20627. "query": ""
  20628. }]
  20629. },
  20630. "lazyCodeLoading": "requiredComponents"
  20631. };
  20632. exports.default = _default;
  20633. /***/ }),
  20634. /***/ 39:
  20635. /*!********************************************************!*\
  20636. !*** D:/AAA_Company/红沙湾管理端/pages.json?{"type":"stat"} ***!
  20637. \********************************************************/
  20638. /*! no static exports found */
  20639. /***/ (function(module, exports, __webpack_require__) {
  20640. "use strict";
  20641. Object.defineProperty(exports, "__esModule", {
  20642. value: true
  20643. });
  20644. exports.default = void 0;
  20645. var _default = {
  20646. "appid": "__UNI__8C5F0F6"
  20647. };
  20648. exports.default = _default;
  20649. /***/ }),
  20650. /***/ 4:
  20651. /*!**********************************************************************!*\
  20652. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  20653. \**********************************************************************/
  20654. /*! no static exports found */
  20655. /***/ (function(module, exports) {
  20656. function _interopRequireDefault(obj) {
  20657. return obj && obj.__esModule ? obj : {
  20658. "default": obj
  20659. };
  20660. }
  20661. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  20662. /***/ }),
  20663. /***/ 40:
  20664. /*!*********************************************************!*\
  20665. !*** D:/AAA_Company/红沙湾管理端/pages.json?{"type":"style"} ***!
  20666. \*********************************************************/
  20667. /*! no static exports found */
  20668. /***/ (function(module, exports, __webpack_require__) {
  20669. "use strict";
  20670. Object.defineProperty(exports, "__esModule", {
  20671. value: true
  20672. });
  20673. exports.default = void 0;
  20674. var _default = {
  20675. "pages": {
  20676. "pages/gocompnay/index": {
  20677. "navigationBarTitleText": "企业端",
  20678. "enablePullDownRefresh": true,
  20679. "onReachBottomDistance": 100,
  20680. "component": true
  20681. },
  20682. "pages/downloadfile/index": {
  20683. "navigationBarTitleText": "企业端",
  20684. "enablePullDownRefresh": true,
  20685. "onReachBottomDistance": 100,
  20686. "component": true
  20687. },
  20688. "pages/login/login": {
  20689. "navigationBarTitleText": "登录"
  20690. },
  20691. "pages/index/index": {
  20692. "navigationBarTitleText": "首页"
  20693. },
  20694. "pages/mine/mine": {
  20695. "navigationBarTitleText": "我的"
  20696. },
  20697. "pages/subPackages/bigscreen/bigscreen": {
  20698. "navigationBarTitleText": "可视化大屏",
  20699. "enablePullDownRefresh": true,
  20700. "onReachBottomDistance": 100,
  20701. "component": true
  20702. },
  20703. "pages/subPackages/meetingroom/meetingroom": {
  20704. "navigationBarTitleText": "会议室审核",
  20705. "enablePullDownRefresh": true,
  20706. "onReachBottomDistance": 100,
  20707. "component": true
  20708. },
  20709. "pages/subPackages/venueRoom/meetingroom": {
  20710. "navigationBarTitleText": "场馆审核",
  20711. "enablePullDownRefresh": true,
  20712. "onReachBottomDistance": 100,
  20713. "component": true
  20714. },
  20715. "pages/subPackages/parkActivities/index": {
  20716. "navigationBarTitleText": "园区活动",
  20717. "enablePullDownRefresh": true,
  20718. "onReachBottomDistance": 100,
  20719. "component": true
  20720. },
  20721. "pages/subPackages/parkActivities/style": {
  20722. "navigationBarTitleText": "活动风采",
  20723. "enablePullDownRefresh": true,
  20724. "onReachBottomDistance": 100,
  20725. "component": true
  20726. },
  20727. "pages/subPackages/announcement/index": {
  20728. "navigationBarTitleText": "通知公告",
  20729. "enablePullDownRefresh": true,
  20730. "onReachBottomDistance": 100,
  20731. "component": true
  20732. },
  20733. "pages/subPackages/announcement/detail": {
  20734. "navigationBarTitleText": "通知公告详情",
  20735. "enablePullDownRefresh": true,
  20736. "onReachBottomDistance": 100,
  20737. "component": true
  20738. },
  20739. "pages/subPackages/parkActivities/detail": {
  20740. "navigationBarTitleText": "园区活动详情",
  20741. "enablePullDownRefresh": true,
  20742. "onReachBottomDistance": 100,
  20743. "component": true
  20744. },
  20745. "pages/subPackages/addZaiti/index": {
  20746. "navigationBarTitleText": "创建载体",
  20747. "enablePullDownRefresh": true,
  20748. "onReachBottomDistance": 100,
  20749. "component": true
  20750. },
  20751. "pages/subPackages/activity/index": {
  20752. "navigationBarTitleText": "活动核销签到",
  20753. "enablePullDownRefresh": true,
  20754. "onReachBottomDistance": 100,
  20755. "component": true
  20756. },
  20757. "pages/subPackages/activity/code": {
  20758. "navigationBarTitleText": "活动核销扫码确认签到",
  20759. "enablePullDownRefresh": true,
  20760. "onReachBottomDistance": 100,
  20761. "component": true
  20762. },
  20763. "pages/subPackages/password/index": {
  20764. "navigationBarTitleText": "修改密码",
  20765. "enablePullDownRefresh": true,
  20766. "onReachBottomDistance": 100,
  20767. "component": true
  20768. },
  20769. "pages/subPackages/buildmap/index": {
  20770. "navigationBarTitleText": "党建地图",
  20771. "enablePullDownRefresh": true,
  20772. "onReachBottomDistance": 100,
  20773. "component": true
  20774. },
  20775. "pages/subPackages/secureselfplan/addplan": {
  20776. "navigationBarTitleText": "安全自检计划-新增",
  20777. "enablePullDownRefresh": true,
  20778. "onReachBottomDistance": 100,
  20779. "component": true
  20780. },
  20781. "pages/subPackages/secureselfplan/index": {
  20782. "navigationBarTitleText": "安全自检计划",
  20783. "enablePullDownRefresh": true,
  20784. "onReachBottomDistance": 100,
  20785. "component": true
  20786. },
  20787. "pages/subPackages/repairDispatch-app/detail": {
  20788. "navigationBarTitleText": "政企服务-详情",
  20789. "enablePullDownRefresh": true,
  20790. "onReachBottomDistance": 100,
  20791. "component": true
  20792. },
  20793. "pages/subPackages/repairDispatch-app/index": {
  20794. "navigationBarTitleText": "政企服务",
  20795. "enablePullDownRefresh": true,
  20796. "onReachBottomDistance": 100,
  20797. "component": true
  20798. },
  20799. "pages/subPackages/repairDispatch-serve/detail": {
  20800. "navigationBarTitleText": "服务派单-详情",
  20801. "enablePullDownRefresh": true,
  20802. "onReachBottomDistance": 100,
  20803. "component": true
  20804. },
  20805. "pages/subPackages/repairDispatch-serve/index": {
  20806. "navigationBarTitleText": "服务派单",
  20807. "enablePullDownRefresh": true,
  20808. "onReachBottomDistance": 100,
  20809. "component": true
  20810. },
  20811. "pages/subPackages/repairDispatch-app/add": {
  20812. "navigationBarTitleText": "新增派单",
  20813. "enablePullDownRefresh": true,
  20814. "onReachBottomDistance": 100,
  20815. "component": true
  20816. },
  20817. "pages/subPackages/repairprocessing-app/detail": {
  20818. "navigationBarTitleText": "服务处理-详情",
  20819. "enablePullDownRefresh": true,
  20820. "onReachBottomDistance": 100,
  20821. "component": true
  20822. },
  20823. "pages/subPackages/repairprocessing-app/index": {
  20824. "navigationBarTitleText": "服务处理",
  20825. "enablePullDownRefresh": true,
  20826. "onReachBottomDistance": 100,
  20827. "component": true
  20828. },
  20829. "pages/subPackages/modifySend/index": {
  20830. "navigationBarTitleText": "案卷派单",
  20831. "enablePullDownRefresh": true,
  20832. "onReachBottomDistance": 100,
  20833. "component": true
  20834. },
  20835. "pages/subPackages/modifyReport/index": {
  20836. "navigationBarTitleText": "案卷填报",
  20837. "enablePullDownRefresh": true,
  20838. "onReachBottomDistance": 100,
  20839. "component": true
  20840. },
  20841. "pages/subPackages/modifyReport/detail": {
  20842. "navigationBarTitleText": "案卷详情",
  20843. "enablePullDownRefresh": true,
  20844. "onReachBottomDistance": 100,
  20845. "component": true
  20846. },
  20847. "pages/subPackages/modifyHandle/handle": {
  20848. "navigationBarTitleText": "案卷处理",
  20849. "enablePullDownRefresh": true,
  20850. "onReachBottomDistance": 100,
  20851. "component": true
  20852. },
  20853. "pages/subPackages/modifySend/confirm": {
  20854. "navigationBarTitleText": "案卷确认",
  20855. "enablePullDownRefresh": true,
  20856. "onReachBottomDistance": 100,
  20857. "component": true
  20858. },
  20859. "pages/subPackages/modifyHandle/index": {
  20860. "navigationBarTitleText": "案卷处理",
  20861. "enablePullDownRefresh": true,
  20862. "onReachBottomDistance": 100,
  20863. "component": true
  20864. },
  20865. "pages/subPackages/modifyReport/add": {
  20866. "navigationBarTitleText": "新增案卷",
  20867. "enablePullDownRefresh": true,
  20868. "onReachBottomDistance": 100,
  20869. "component": true
  20870. },
  20871. "pages/subPackages/secureselftest/report": {
  20872. "navigationBarTitleText": "安全管理统计",
  20873. "enablePullDownRefresh": true,
  20874. "onReachBottomDistance": 100,
  20875. "component": true
  20876. },
  20877. "pages/subPackages/toread/index": {
  20878. "navigationBarTitleText": "我的待阅",
  20879. "enablePullDownRefresh": true,
  20880. "onReachBottomDistance": 100,
  20881. "component": true
  20882. },
  20883. "pages/subPackages/todo/index": {
  20884. "navigationBarTitleText": "我的待办",
  20885. "enablePullDownRefresh": true,
  20886. "onReachBottomDistance": 100,
  20887. "component": true
  20888. },
  20889. "pages/subPackages/secureselftest/index": {
  20890. "navigationBarTitleText": "安全管理统计",
  20891. "enablePullDownRefresh": true,
  20892. "onReachBottomDistance": 100,
  20893. "component": true
  20894. },
  20895. "pages/subPackages/secureselftest2/index": {
  20896. "navigationBarTitleText": "安全管理自检",
  20897. "enablePullDownRefresh": true,
  20898. "onReachBottomDistance": 100,
  20899. "component": true
  20900. },
  20901. "pages/subPackages/venueRoom/confirm": {
  20902. "navigationBarTitleText": "场馆-审核",
  20903. "enablePullDownRefresh": true,
  20904. "onReachBottomDistance": 100,
  20905. "component": true
  20906. },
  20907. "pages/subPackages/meetingroom/confirm": {
  20908. "navigationBarTitleText": "会议室-审核",
  20909. "enablePullDownRefresh": true,
  20910. "onReachBottomDistance": 100,
  20911. "component": true
  20912. },
  20913. "pages/subPackages/venueRoom/audit": {
  20914. "navigationBarTitleText": "场馆-审核",
  20915. "enablePullDownRefresh": true,
  20916. "onReachBottomDistance": 100,
  20917. "component": true
  20918. },
  20919. "pages/subPackages/meetingroom/audit": {
  20920. "navigationBarTitleText": "会议室-审核",
  20921. "enablePullDownRefresh": true,
  20922. "onReachBottomDistance": 100,
  20923. "component": true
  20924. },
  20925. "pages/subPackages/merchants/merchants": {
  20926. "navigationBarTitleText": "我的招商",
  20927. "enablePullDownRefresh": true,
  20928. "onReachBottomDistance": 100,
  20929. "component": true
  20930. },
  20931. "pages/subPackages/merchants/components/mymechantsdetails": {
  20932. "navigationBarTitleText": "我的招商-详情",
  20933. "enablePullDownRefresh": true,
  20934. "onReachBottomDistance": 100,
  20935. "component": true
  20936. },
  20937. "pages/subPackages/chooseCompanyTags/index": {
  20938. "navigationBarTitleText": "企业标签",
  20939. "enablePullDownRefresh": true,
  20940. "onReachBottomDistance": 100,
  20941. "component": true
  20942. },
  20943. "pages/subPackages/companyTagsDelete/index": {
  20944. "navigationBarTitleText": "企业标签-详情",
  20945. "enablePullDownRefresh": true,
  20946. "onReachBottomDistance": 100,
  20947. "component": true
  20948. },
  20949. "pages/subPackages/housedetails/housedetails": {
  20950. "navigationBarTitleText": "房源详情",
  20951. "enablePullDownRefresh": true,
  20952. "onReachBottomDistance": 100,
  20953. "component": true
  20954. },
  20955. "pages/subPackages/addintention/addintention": {
  20956. "navigationBarTitleText": "新增意向",
  20957. "enablePullDownRefresh": true,
  20958. "onReachBottomDistance": 100,
  20959. "component": true
  20960. },
  20961. "pages/subPackages/chosseHouse/chosseHouse": {
  20962. "navigationBarTitleText": "选择房源",
  20963. "enablePullDownRefresh": true,
  20964. "onReachBottomDistance": 100,
  20965. "component": true
  20966. },
  20967. "pages/subPackages/companyreport/components/reportDetails": {
  20968. "navigationBarTitleText": "走访上报-详情",
  20969. "enablePullDownRefresh": true,
  20970. "onReachBottomDistance": 100,
  20971. "component": true
  20972. },
  20973. "pages/subPackages/companyreport/companyreport": {
  20974. "navigationBarTitleText": "走访上报",
  20975. "enablePullDownRefresh": true,
  20976. "onReachBottomDistance": 100,
  20977. "component": true
  20978. },
  20979. "pages/subPackages/companyHouse/companyHouse": {
  20980. "navigationBarTitleText": "企业库",
  20981. "enablePullDownRefresh": true,
  20982. "onReachBottomDistance": 100,
  20983. "component": true
  20984. },
  20985. "pages/subPackages/companyDetails/companyDetails": {
  20986. "navigationBarTitleText": "企业详情",
  20987. "enablePullDownRefresh": true,
  20988. "onReachBottomDistance": 100,
  20989. "component": true
  20990. },
  20991. "pages/subPackages/addCompany/addCompany": {
  20992. "navigationBarTitleText": "添加企业",
  20993. "enablePullDownRefresh": true,
  20994. "onReachBottomDistance": 100,
  20995. "component": true
  20996. },
  20997. "pages/subPackages/companyDetailsEdit/companyDetailsEdit": {
  20998. "navigationBarTitleText": "编辑企业基本信息",
  20999. "enablePullDownRefresh": true,
  21000. "onReachBottomDistance": 100,
  21001. "component": true
  21002. }
  21003. },
  21004. "globalStyle": {
  21005. "pageOrientation": "portrait",
  21006. "navigationBarTitleText": "Hello uniapp",
  21007. "navigationBarTextStyle": "black",
  21008. "navigationBarBackgroundColor": "#FFFFFF",
  21009. "backgroundColor": "#FFFFFF",
  21010. "backgroundColorTop": "#FFFFFF",
  21011. "backgroundColorBottom": "#F4F5F6"
  21012. }
  21013. };
  21014. exports.default = _default;
  21015. /***/ }),
  21016. /***/ 46:
  21017. /*!**********************************************************************************************************!*\
  21018. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  21019. \**********************************************************************************************************/
  21020. /*! exports provided: default */
  21021. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21022. "use strict";
  21023. __webpack_require__.r(__webpack_exports__);
  21024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  21025. /* globals __VUE_SSR_CONTEXT__ */
  21026. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  21027. // This module is a runtime utility for cleaner component module output and will
  21028. // be included in the final webpack user bundle.
  21029. function normalizeComponent (
  21030. scriptExports,
  21031. render,
  21032. staticRenderFns,
  21033. functionalTemplate,
  21034. injectStyles,
  21035. scopeId,
  21036. moduleIdentifier, /* server only */
  21037. shadowMode, /* vue-cli only */
  21038. components, // fixed by xxxxxx auto components
  21039. renderjs // fixed by xxxxxx renderjs
  21040. ) {
  21041. // Vue.extend constructor export interop
  21042. var options = typeof scriptExports === 'function'
  21043. ? scriptExports.options
  21044. : scriptExports
  21045. // fixed by xxxxxx auto components
  21046. if (components) {
  21047. if (!options.components) {
  21048. options.components = {}
  21049. }
  21050. var hasOwn = Object.prototype.hasOwnProperty
  21051. for (var name in components) {
  21052. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  21053. options.components[name] = components[name]
  21054. }
  21055. }
  21056. }
  21057. // fixed by xxxxxx renderjs
  21058. if (renderjs) {
  21059. if(typeof renderjs.beforeCreate === 'function'){
  21060. renderjs.beforeCreate = [renderjs.beforeCreate]
  21061. }
  21062. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  21063. this[renderjs.__module] = this
  21064. });
  21065. (options.mixins || (options.mixins = [])).push(renderjs)
  21066. }
  21067. // render functions
  21068. if (render) {
  21069. options.render = render
  21070. options.staticRenderFns = staticRenderFns
  21071. options._compiled = true
  21072. }
  21073. // functional template
  21074. if (functionalTemplate) {
  21075. options.functional = true
  21076. }
  21077. // scopedId
  21078. if (scopeId) {
  21079. options._scopeId = 'data-v-' + scopeId
  21080. }
  21081. var hook
  21082. if (moduleIdentifier) { // server build
  21083. hook = function (context) {
  21084. // 2.3 injection
  21085. context =
  21086. context || // cached call
  21087. (this.$vnode && this.$vnode.ssrContext) || // stateful
  21088. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  21089. // 2.2 with runInNewContext: true
  21090. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  21091. context = __VUE_SSR_CONTEXT__
  21092. }
  21093. // inject component styles
  21094. if (injectStyles) {
  21095. injectStyles.call(this, context)
  21096. }
  21097. // register component module identifier for async chunk inferrence
  21098. if (context && context._registeredComponents) {
  21099. context._registeredComponents.add(moduleIdentifier)
  21100. }
  21101. }
  21102. // used by ssr in case component is cached and beforeCreate
  21103. // never gets called
  21104. options._ssrRegister = hook
  21105. } else if (injectStyles) {
  21106. hook = shadowMode
  21107. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  21108. : injectStyles
  21109. }
  21110. if (hook) {
  21111. if (options.functional) {
  21112. // for template-only hot-reload because in that case the render fn doesn't
  21113. // go through the normalizer
  21114. options._injectStyles = hook
  21115. // register for functioal component in vue file
  21116. var originalRender = options.render
  21117. options.render = function renderWithStyleInjection (h, context) {
  21118. hook.call(context)
  21119. return originalRender(h, context)
  21120. }
  21121. } else {
  21122. // inject component registration as beforeCreate hook
  21123. var existing = options.beforeCreate
  21124. options.beforeCreate = existing
  21125. ? [].concat(existing, hook)
  21126. : [hook]
  21127. }
  21128. }
  21129. return {
  21130. exports: scriptExports,
  21131. options: options
  21132. }
  21133. }
  21134. /***/ }),
  21135. /***/ 47:
  21136. /*!********************************************!*\
  21137. !*** D:/AAA_Company/红沙湾管理端/store/index.js ***!
  21138. \********************************************/
  21139. /*! no static exports found */
  21140. /***/ (function(module, exports) {
  21141. throw new Error("Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js):\nError: ENOENT: no such file or directory, open 'D:\\AAA_Company\\红沙湾管理端\\store\\index.js'");
  21142. /***/ }),
  21143. /***/ 49:
  21144. /*!***************************************************!*\
  21145. !*** D:/AAA_Company/红沙湾管理端/pages/utils/common.js ***!
  21146. \***************************************************/
  21147. /*! no static exports found */
  21148. /***/ (function(module, exports, __webpack_require__) {
  21149. "use strict";
  21150. Object.defineProperty(exports, "__esModule", {
  21151. value: true
  21152. });
  21153. exports.default = void 0;
  21154. exports.getUrlParameter = getUrlParameter;
  21155. /**
  21156. * 获取url参数值
  21157. * @param {*} url
  21158. * @param {*} name
  21159. */
  21160. function getUrlParameter(url, name) {
  21161. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  21162. var regex = new RegExp(regexSearch);
  21163. var results = regex.exec(url);
  21164. console.log(results, 'results');
  21165. return results ? window.decodeURIComponent(results[1]) : '';
  21166. }
  21167. var _default = {
  21168. transDate: function transDate(val, pattern) {
  21169. if (val) {
  21170. var time = new Date();
  21171. time.setTime(val);
  21172. if (Date.parse(val)) {
  21173. time = new Date(val);
  21174. }
  21175. if (time instanceof Date) {
  21176. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  21177. }
  21178. }
  21179. return '';
  21180. },
  21181. transBaseDateTime: function transBaseDateTime(val, pattern) {
  21182. if (val) {
  21183. var time = new Date();
  21184. time.setTime(val);
  21185. if (Date.parse(val)) {
  21186. time = new Date(val);
  21187. }
  21188. if (time instanceof Date) {
  21189. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  21190. }
  21191. }
  21192. return '';
  21193. },
  21194. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  21195. if (val) {
  21196. var time = new Date();
  21197. time.setTime(val);
  21198. if (Date.parse(val)) {
  21199. time = new Date(val);
  21200. }
  21201. if (time instanceof Date) {
  21202. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  21203. }
  21204. }
  21205. return '';
  21206. },
  21207. transServDate: function transServDate(val) {
  21208. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  21209. },
  21210. transServDay: function transServDay(val) {
  21211. return this.transDate(val, 'yyyy-MM-dd');
  21212. },
  21213. isArrayFn: function isArrayFn(value) {
  21214. if (typeof Array.isArray === 'function') {
  21215. return Array.isArray(value);
  21216. } else {
  21217. return Object.prototype.toString.call(value) === '[object Array]';
  21218. }
  21219. },
  21220. transDcMap: function transDcMap(arr) {
  21221. var tMap = {};
  21222. arr.forEach(function (item) {
  21223. tMap[item.value] = item.label;
  21224. });
  21225. return tMap;
  21226. },
  21227. castEval: function castEval(val) {
  21228. // return JSON.parse(val)
  21229. if (val) {
  21230. return eval('(' + val + ')');
  21231. } else {
  21232. return '';
  21233. }
  21234. },
  21235. castString: function castString(val) {
  21236. return JSON.stringify(val);
  21237. },
  21238. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  21239. formatMoney: function formatMoney(amt) {
  21240. if (!amt) return '';
  21241. if (amt.length <= 3) {
  21242. return amt;
  21243. }
  21244. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  21245. return amt;
  21246. }
  21247. var a = RegExp.$1;
  21248. var b = RegExp.$2;
  21249. var c = RegExp.$3;
  21250. var re = new RegExp();
  21251. re.compile('(\\d)(\\d{3})(,|$)');
  21252. while (re.test(b)) {
  21253. b = b.replace(re, '$1,$2$3');
  21254. }
  21255. return a + '' + b + '' + c;
  21256. },
  21257. formatDate: function formatDate(fmt, date) {
  21258. // author: meizz
  21259. var o = {
  21260. 'M+': date.getMonth() + 1,
  21261. // 月份
  21262. 'd+': date.getDate(),
  21263. // 日
  21264. 'h+': date.getHours(),
  21265. // 小时
  21266. 'm+': date.getMinutes(),
  21267. // 分
  21268. 's+': date.getSeconds(),
  21269. // 秒
  21270. 'q+': Math.floor((date.getMonth() + 3) / 3),
  21271. // 季度
  21272. 'S': date.getMilliseconds() // 毫秒
  21273. };
  21274. if (/(y+)/.test(fmt)) {
  21275. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  21276. }
  21277. for (var k in o) {
  21278. if (new RegExp('(' + k + ')').test(fmt)) {
  21279. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  21280. }
  21281. }
  21282. return fmt;
  21283. },
  21284. replaceThumbnail: function replaceThumbnail(urlPath) {
  21285. if (urlPath != null) {
  21286. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  21287. }
  21288. if (urlPath != null) {
  21289. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  21290. }
  21291. return urlPath;
  21292. },
  21293. goBack: function goBack() {
  21294. // window.history.go(-1)
  21295. // self.location = document.referrer
  21296. history.back();
  21297. },
  21298. uuid: function uuid(len, radix) {
  21299. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  21300. var uuid = [];
  21301. var i;
  21302. radix = radix || chars.length;
  21303. if (len) {
  21304. // Compact form
  21305. for (i = 0; i < len; i++) {
  21306. uuid[i] = chars[0 | Math.random() * radix];
  21307. }
  21308. } else {
  21309. // rfc4122, version 4 form
  21310. var r;
  21311. // rfc4122 requires these characters
  21312. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  21313. uuid[14] = '4';
  21314. // Fill in random data. At i==19 set the high bits of clock sequence as
  21315. // per rfc4122, sec. 4.1.5
  21316. for (i = 0; i < 36; i++) {
  21317. if (!uuid[i]) {
  21318. r = 0 | Math.random() * 16;
  21319. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  21320. }
  21321. }
  21322. }
  21323. return uuid.join('');
  21324. },
  21325. handleDicList: function handleDicList(params) {
  21326. // 处理字典值数组
  21327. var obj = {};
  21328. for (var key in params) {
  21329. if (JSON.parse(params[key].dictValue)) {
  21330. obj[key] = JSON.parse(params[key].dictValue);
  21331. } else {
  21332. obj[key] = [];
  21333. }
  21334. }
  21335. return obj;
  21336. }
  21337. };
  21338. exports.default = _default;
  21339. /***/ }),
  21340. /***/ 5:
  21341. /*!**************************************************************!*\
  21342. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  21343. \**************************************************************/
  21344. /*! no static exports found */
  21345. /***/ (function(module, exports, __webpack_require__) {
  21346. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  21347. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  21348. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  21349. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  21350. function _slicedToArray(arr, i) {
  21351. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  21352. }
  21353. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  21354. /***/ }),
  21355. /***/ 50:
  21356. /*!*****************************************************!*\
  21357. !*** D:/AAA_Company/红沙湾管理端/pages/utils/constant.js ***!
  21358. \*****************************************************/
  21359. /*! no static exports found */
  21360. /***/ (function(module, exports, __webpack_require__) {
  21361. "use strict";
  21362. Object.defineProperty(exports, "__esModule", {
  21363. value: true
  21364. });
  21365. exports.default = exports.BASE_URI = void 0;
  21366. // 系统常量
  21367. var BASE_URI = "https://hswkxc.idea-sf.com/gardenTestApi"; // 测试
  21368. // export const BASE_URI = "http://192.168.2.109:9012"; // 许峰本地
  21369. // export const BASE_URI = "https://hswkxc.idea-sf.com/gardenApi"; // 正式
  21370. // export const BASE_URI = "http://192.168.3.94:9010"; // 老潘本地
  21371. // export const BASE_URI = "http://192.168.2.107:9011"; // 洮洮本地
  21372. // export const BASE_URI = "http://192.168.2.103:9010"; // 老崔本地
  21373. // export const BASE_URI = "http://192.168.2.106:9011"; // 许峰本地
  21374. // export const BASE_URI = "http://192.168.2.112:9010"; // 陈凡本地
  21375. exports.BASE_URI = BASE_URI;
  21376. var _default = {
  21377. /* 系统常量*/
  21378. // 基础地址
  21379. BASE_URI: BASE_URI
  21380. };
  21381. exports.default = _default;
  21382. /***/ }),
  21383. /***/ 51:
  21384. /*!**********************************************!*\
  21385. !*** D:/AAA_Company/红沙湾管理端/js_sdk/common.js ***!
  21386. \**********************************************/
  21387. /*! no static exports found */
  21388. /***/ (function(module, exports, __webpack_require__) {
  21389. "use strict";
  21390. /* WEBPACK VAR INJECTION */(function(uni) {
  21391. Object.defineProperty(exports, "__esModule", {
  21392. value: true
  21393. });
  21394. exports.default = void 0;
  21395. exports.getUrlParameter = getUrlParameter;
  21396. exports.showToast = showToast;
  21397. /**
  21398. * 获取url参数值
  21399. * @param {*} url
  21400. * @param {*} name
  21401. */
  21402. function getUrlParameter(url, name) {
  21403. var regexSearch = '[\\?&#]' + name + '=([^&#]*)';
  21404. var regex = new RegExp(regexSearch);
  21405. var results = regex.exec(url);
  21406. return results ? window.decodeURIComponent(results[1]) : '';
  21407. }
  21408. function showToast(e) {
  21409. uni.showToast({
  21410. title: e,
  21411. icon: 'none',
  21412. mask: true,
  21413. duration: 1000
  21414. });
  21415. }
  21416. var _default = {
  21417. transDate: function transDate(val, pattern) {
  21418. if (val) {
  21419. var time = new Date();
  21420. time.setTime(val);
  21421. if (Date.parse(val)) {
  21422. time = new Date(val);
  21423. }
  21424. if (time instanceof Date) {
  21425. return this.formatDate(pattern || 'yyyy-MM-dd', time);
  21426. }
  21427. }
  21428. return '';
  21429. },
  21430. transBaseDateTime: function transBaseDateTime(val, pattern) {
  21431. if (val) {
  21432. var time = new Date();
  21433. time.setTime(val);
  21434. if (Date.parse(val)) {
  21435. time = new Date(val);
  21436. }
  21437. if (time instanceof Date) {
  21438. return this.formatDate(pattern || 'yyyy年MM月dd日 hh:mm', time);
  21439. }
  21440. }
  21441. return '';
  21442. },
  21443. transBaseToDateTime: function transBaseToDateTime(val, pattern) {
  21444. if (val) {
  21445. var time = new Date();
  21446. time.setTime(val);
  21447. if (Date.parse(val)) {
  21448. time = new Date(val);
  21449. }
  21450. if (time instanceof Date) {
  21451. return this.formatDate(pattern || 'MM月dd日 hh:mm', time);
  21452. }
  21453. }
  21454. return '';
  21455. },
  21456. transServDate: function transServDate(val) {
  21457. return this.transDate(val, 'yyyy-MM-dd hh:mm:ss');
  21458. },
  21459. transServDay: function transServDay(val) {
  21460. return this.transDate(val, 'yyyy-MM-dd');
  21461. },
  21462. isArrayFn: function isArrayFn(value) {
  21463. if (typeof Array.isArray === 'function') {
  21464. return Array.isArray(value);
  21465. } else {
  21466. return Object.prototype.toString.call(value) === '[object Array]';
  21467. }
  21468. },
  21469. transDcMap: function transDcMap(arr) {
  21470. var tMap = {};
  21471. arr.forEach(function (item) {
  21472. tMap[item.value] = item.label;
  21473. });
  21474. return tMap;
  21475. },
  21476. castEval: function castEval(val) {
  21477. // return JSON.parse(val)
  21478. if (val) {
  21479. return eval('(' + val + ')');
  21480. } else {
  21481. return '';
  21482. }
  21483. },
  21484. castString: function castString(val) {
  21485. return JSON.stringify(val);
  21486. },
  21487. // 金额格式化,整数部分每3位用逗号分隔,支持带有正负号以及小数部分
  21488. formatMoney: function formatMoney(amt) {
  21489. if (!amt) return '';
  21490. if (amt.length <= 3) {
  21491. return amt;
  21492. }
  21493. if (!/^(\+|-)?(\d+)(\.\d+)?$/.test(amt)) {
  21494. return amt;
  21495. }
  21496. var a = RegExp.$1;
  21497. var b = RegExp.$2;
  21498. var c = RegExp.$3;
  21499. var re = new RegExp();
  21500. re.compile('(\\d)(\\d{3})(,|$)');
  21501. while (re.test(b)) {
  21502. b = b.replace(re, '$1,$2$3');
  21503. }
  21504. return a + '' + b + '' + c;
  21505. },
  21506. formatDate: function formatDate(fmt, date) {
  21507. // author: meizz
  21508. var o = {
  21509. 'M+': date.getMonth() + 1,
  21510. // 月份
  21511. 'd+': date.getDate(),
  21512. // 日
  21513. 'h+': date.getHours(),
  21514. // 小时
  21515. 'm+': date.getMinutes(),
  21516. // 分
  21517. 's+': date.getSeconds(),
  21518. // 秒
  21519. 'q+': Math.floor((date.getMonth() + 3) / 3),
  21520. // 季度
  21521. 'S': date.getMilliseconds() // 毫秒
  21522. };
  21523. if (/(y+)/.test(fmt)) {
  21524. fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  21525. }
  21526. for (var k in o) {
  21527. if (new RegExp('(' + k + ')').test(fmt)) {
  21528. fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
  21529. }
  21530. }
  21531. return fmt;
  21532. },
  21533. replaceThumbnail: function replaceThumbnail(urlPath) {
  21534. if (urlPath != null) {
  21535. urlPath = urlPath.replace('/server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  21536. }
  21537. if (urlPath != null) {
  21538. urlPath = urlPath.replace('/h5Server/FileController/download/', this.$constant.BASE_URI + '/wx/fileController/downloadThumbnail/');
  21539. }
  21540. return urlPath;
  21541. },
  21542. goBack: function goBack() {
  21543. // window.history.go(-1)
  21544. // self.location = document.referrer
  21545. history.back();
  21546. },
  21547. uuid: function uuid(len, radix) {
  21548. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  21549. var uuid = [];
  21550. var i;
  21551. radix = radix || chars.length;
  21552. if (len) {
  21553. // Compact form
  21554. for (i = 0; i < len; i++) {
  21555. uuid[i] = chars[0 | Math.random() * radix];
  21556. }
  21557. } else {
  21558. // rfc4122, version 4 form
  21559. var r;
  21560. // rfc4122 requires these characters
  21561. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  21562. uuid[14] = '4';
  21563. // Fill in random data. At i==19 set the high bits of clock sequence as
  21564. // per rfc4122, sec. 4.1.5
  21565. for (i = 0; i < 36; i++) {
  21566. if (!uuid[i]) {
  21567. r = 0 | Math.random() * 16;
  21568. uuid[i] = chars[i === 19 ? r & 0x3 | 0x8 : r];
  21569. }
  21570. }
  21571. }
  21572. return uuid.join('');
  21573. }
  21574. };
  21575. exports.default = _default;
  21576. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21577. /***/ }),
  21578. /***/ 52:
  21579. /*!********************************************!*\
  21580. !*** D:/AAA_Company/红沙湾管理端/js_sdk/auth.js ***!
  21581. \********************************************/
  21582. /*! no static exports found */
  21583. /***/ (function(module, exports, __webpack_require__) {
  21584. "use strict";
  21585. /* WEBPACK VAR INJECTION */(function(uni) {
  21586. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21587. Object.defineProperty(exports, "__esModule", {
  21588. value: true
  21589. });
  21590. exports.default = void 0;
  21591. var _common = _interopRequireDefault(__webpack_require__(/*! ./common.js */ 51));
  21592. var _default = {
  21593. TYPE_FRAME: 'FRAME',
  21594. TYPE_BIZ: 'BIZ',
  21595. TYPE_USER: 'USER',
  21596. TYPE_PERSON_BIZ: 'BIZ_PERSON',
  21597. // ------------------------------ User -----------------------------------
  21598. uid: function uid() {
  21599. return this.currUser() ? this.currUser().id : null;
  21600. },
  21601. setUser: function setUser(value) {
  21602. uni.setStorage({
  21603. key: 'laocui_user_token',
  21604. data: value,
  21605. success: function success() {}
  21606. });
  21607. },
  21608. setUserInfo: function setUserInfo(value) {
  21609. uni.setStorage({
  21610. key: 'laocui_user_info',
  21611. data: JSON.stringify(value),
  21612. success: function success() {}
  21613. });
  21614. },
  21615. currUser: function currUser() {
  21616. return _common.default.castEval(localStorage.getItem(this.userKey()) || '');
  21617. },
  21618. removeUser: function removeUser() {
  21619. uni.removeStorage(this.userKey());
  21620. },
  21621. // ------------------------------ Biz -----------------------------------
  21622. bid: function bid() {
  21623. return this.currBiz() ? this.currBiz().id : null;
  21624. },
  21625. setBiz: function setBiz(value) {
  21626. sessionStorage.setItem(this.bizKey(), JSON.stringify(value));
  21627. },
  21628. removeBiz: function removeBiz() {
  21629. sessionStorage.removeItem(this.bizKey());
  21630. },
  21631. currBiz: function currBiz() {
  21632. return _common.default.castEval(sessionStorage.getItem(this.bizKey()) || null);
  21633. },
  21634. // ------------------------------ Token -----------------------------------
  21635. setToken: function setToken(token) {
  21636. localStorage.setItem(this.tokenKey(), token);
  21637. },
  21638. getToken: function getToken() {
  21639. return localStorage.getItem(this.tokenKey()) || null;
  21640. },
  21641. removeToken: function removeToken() {
  21642. localStorage.removeItem(this.tokenKey());
  21643. },
  21644. // ------------------------------ key -----------------------------------
  21645. // bizKey: function() {
  21646. // const key = this.hashCode(window.location.host + '_biz_' + this.getUserType())
  21647. // return key
  21648. // },
  21649. //
  21650. // userKey: function() {
  21651. // const key = this.hashCode(window.location.host + '_user_' + this.getUserType())
  21652. // return key
  21653. // },
  21654. //
  21655. // tokenKey: function() {
  21656. // const key = this.hashCode(window.location.host + '_token_' + this.getUserType())
  21657. // return key
  21658. // },
  21659. // Frame
  21660. setLoginInfo: function setLoginInfo(value) {
  21661. localStorage.setItem('KEY_ADMIN_USER_LOGIN_INFO', JSON.stringify(value));
  21662. },
  21663. getLoginInfo: function getLoginInfo() {
  21664. return _common.default.castEval(localStorage.getItem('KEY_ADMIN_USER_LOGIN_INFO') || null);
  21665. },
  21666. removeLoginInfo: function removeLoginInfo() {
  21667. localStorage.removeItem('KEY_ADMIN_USER_LOGIN_INFO');
  21668. },
  21669. // Biz
  21670. setBizLoginInfo: function setBizLoginInfo(value) {
  21671. localStorage.setItem('KEY_BIZ_USER_LOGIN_INFO', JSON.stringify(value));
  21672. },
  21673. getBizLoginInfo: function getBizLoginInfo() {
  21674. return _common.default.castEval(localStorage.getItem('KEY_BIZ_USER_LOGIN_INFO') || null);
  21675. },
  21676. removeBizLoginInfo: function removeBizLoginInfo() {
  21677. localStorage.removeItem('KEY_BIZ_USER_LOGIN_INFO');
  21678. },
  21679. setUserType: function setUserType(value) {
  21680. localStorage.setItem('KEY_USER_TYPE', value);
  21681. },
  21682. getUserType: function getUserType() {
  21683. return localStorage.getItem('KEY_USER_TYPE') || 'TYPE_FRAME';
  21684. },
  21685. hashCode: function hashCode(str) {
  21686. var hash = 0;
  21687. if (str.length === 0) return hash;
  21688. for (var i = 0; i < str.length; i++) {
  21689. var char = str.charCodeAt(i);
  21690. hash = (hash << 5) - hash + char;
  21691. hash = hash & hash; // Convert to 32bit integer
  21692. }
  21693. return hash;
  21694. },
  21695. /*
  21696. 定时缓存
  21697. */
  21698. setTimingLocalStorage: function setTimingLocalStorage(key, value, ttl_ms) {
  21699. var data = {
  21700. value: value,
  21701. expirse: new Date(ttl_ms).getTime()
  21702. };
  21703. localStorage.setItem(key, JSON.stringify(data));
  21704. },
  21705. getTimingLocalStorage: function getTimingLocalStorage(key) {
  21706. var data = JSON.parse(localStorage.getItem(key));
  21707. if (data !== null) {
  21708. if (data.expirse == null || data.expirse != null && data.expirse < new Date().getTime()) {
  21709. localStorage.removeItem(key);
  21710. } else {
  21711. return JSON.parse(data.value);
  21712. }
  21713. }
  21714. return null;
  21715. }
  21716. };
  21717. exports.default = _default;
  21718. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21719. /***/ }),
  21720. /***/ 53:
  21721. /*!*************************************************************!*\
  21722. !*** D:/AAA_Company/红沙湾管理端/js_sdk/request/requestConfig.js ***!
  21723. \*************************************************************/
  21724. /*! no static exports found */
  21725. /***/ (function(module, exports, __webpack_require__) {
  21726. "use strict";
  21727. /* WEBPACK VAR INJECTION */(function(uni) {
  21728. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21729. Object.defineProperty(exports, "__esModule", {
  21730. value: true
  21731. });
  21732. exports.default = void 0;
  21733. var _request = _interopRequireDefault(__webpack_require__(/*! ./request */ 54));
  21734. var _config = _interopRequireDefault(__webpack_require__(/*! config */ 55));
  21735. // import store from "../../store/index.js";
  21736. uni.getStorage({
  21737. key: 'storage_key',
  21738. success: function success(res) {
  21739. console.log(res.data);
  21740. }
  21741. });
  21742. //可以new多个request来支持多个域名请求
  21743. var $http = new _request.default({
  21744. //接口请求地址
  21745. baseUrl: _config.default.baseUrl,
  21746. //服务器本地上传文件地址
  21747. fileUrl: _config.default.baseUrl,
  21748. //设置请求头
  21749. headers: {
  21750. 'Content-Type': 'application/x-www-form-urlencoded;',
  21751. 'ApiVersion': _config.default.version,
  21752. 'Device': _config.default.device,
  21753. 'Platform': _config.default.platform,
  21754. "Authorization": 'Bearer ' + uni.getStorageSync('laocui_user_token')
  21755. },
  21756. //以下是默认值可不写
  21757. //是否提示--默认提示
  21758. isPrompt: true,
  21759. //是否显示请求动画
  21760. load: true,
  21761. //是否使用处理数据模板
  21762. isFactory: true,
  21763. //列表接口是否有加载判断
  21764. loadMore: true
  21765. });
  21766. //当前接口请求数
  21767. var requestNum = 0;
  21768. //请求开始拦截器
  21769. $http.requestStart = function (options) {
  21770. if (requestNum <= 0) {
  21771. uni.showNavigationBarLoading();
  21772. if (options.load) {
  21773. //打开加载动画
  21774. uni.showLoading({
  21775. title: '加载中',
  21776. mask: true
  21777. });
  21778. }
  21779. }
  21780. requestNum += 1;
  21781. //请求前加入token
  21782. options.headers['Authorization'] = 'Bearer ' + uni.getStorageSync('laocui_user_token');
  21783. // console.log("请求开始前", options);
  21784. return options;
  21785. };
  21786. //请求结束
  21787. $http.requestEnd = function (options, resolve) {
  21788. //判断当前接口是否需要加载动画
  21789. requestNum = requestNum - 1;
  21790. if (requestNum <= 0) {
  21791. uni.hideLoading();
  21792. uni.hideNavigationBarLoading();
  21793. }
  21794. if (resolve.errMsg && (resolve.errMsg != "request:ok" || resolve.statusCode && resolve.statusCode != 200)) {
  21795. uni.showToast({
  21796. title: "网络错误,请检查一下网络",
  21797. mask: true,
  21798. icon: "none"
  21799. });
  21800. }
  21801. };
  21802. //登录弹窗次数
  21803. var loginPopupNum = 0;
  21804. //所有接口数据处理(可在接口里设置不调用此方法)
  21805. $http.dataFactory = function (options, resolve) {
  21806. //设置回调默认值
  21807. var callback = {
  21808. //success数据是否请求成功状态
  21809. success: false,
  21810. //这里返回的数据就是调用请求方法收到的数据
  21811. result: ""
  21812. };
  21813. // 特殊接口处理 接口报请先登录 跳转登录
  21814. if (resolve.data.code === 101) {
  21815. uni.showModal({
  21816. title: '提示',
  21817. content: resolve.data.msg,
  21818. showCancel: false,
  21819. success: function success() {
  21820. uni.setStorageSync('token', null);
  21821. uni.navigateTo({
  21822. url: '/pages/login/login'
  21823. });
  21824. }
  21825. });
  21826. return false;
  21827. }
  21828. //判断数据是否请求成功
  21829. if (resolve.data.errmsg == "成功") {
  21830. callback.success = true;
  21831. callback.result = resolve.data;
  21832. } else if (resolve.data.errno == 303) {
  21833. uni.redirectTo({
  21834. url: '/pages/login/login'
  21835. });
  21836. this.$showToast('令牌过期,请重新登陆');
  21837. } else {
  21838. uni.showToast({
  21839. title: resolve.data.errmsg,
  21840. icon: "none",
  21841. mask: true,
  21842. duration: 2000
  21843. });
  21844. //设置可以提示的时候
  21845. // if (options.isPrompt) {
  21846. // setTimeout(function () {
  21847. //提示后台接口抛出的错误信息
  21848. // uni.showToast({
  21849. // title: resolve.data.msg,
  21850. // icon: "none",
  21851. // duration: 3000
  21852. // });
  21853. // }, 500);
  21854. // }
  21855. callback.result = resolve.data;
  21856. }
  21857. uni.stopPullDownRefresh();
  21858. return callback;
  21859. };
  21860. var _default = $http;
  21861. exports.default = _default;
  21862. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21863. /***/ }),
  21864. /***/ 54:
  21865. /*!*******************************************************!*\
  21866. !*** D:/AAA_Company/红沙湾管理端/js_sdk/request/request.js ***!
  21867. \*******************************************************/
  21868. /*! no static exports found */
  21869. /***/ (function(module, exports, __webpack_require__) {
  21870. "use strict";
  21871. /* WEBPACK VAR INJECTION */(function(uni) {
  21872. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21873. Object.defineProperty(exports, "__esModule", {
  21874. value: true
  21875. });
  21876. exports.default = void 0;
  21877. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  21878. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  21879. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  21880. var request = /*#__PURE__*/function () {
  21881. function request(options) {
  21882. (0, _classCallCheck2.default)(this, request);
  21883. //请求公共地址
  21884. this.baseUrl = options.baseUrl || "";
  21885. //公共文件上传请求地址
  21886. this.fileUrl = options.fileUrl || "";
  21887. //默认请求头
  21888. this.headers = options.headers || {};
  21889. //默认配置
  21890. this.config = {
  21891. isPrompt: options.isPrompt === false ? false : true,
  21892. load: options.load === false ? false : true,
  21893. isFactory: options.isFactory === false ? false : true,
  21894. loadMore: options.loadMore === false ? false : true
  21895. };
  21896. }
  21897. // 获取默认信息
  21898. (0, _createClass2.default)(request, [{
  21899. key: "getDefault",
  21900. value: function getDefault(url, options, type) {
  21901. //判断url是不是链接
  21902. var urlType = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~/])+$/.test(url);
  21903. var httpUrl;
  21904. if (type == "file") {
  21905. httpUrl = urlType ? url : this.fileUrl + url;
  21906. } else {
  21907. httpUrl = urlType ? url : this.baseUrl + url;
  21908. }
  21909. var config = Object.assign({}, this.config, options);
  21910. //请求地址
  21911. config.httpUrl = httpUrl;
  21912. //请求头
  21913. config.headers = Object.assign(this.headers, options.headers);
  21914. return config;
  21915. }
  21916. //post请求
  21917. }, {
  21918. key: "post",
  21919. value: function post() {
  21920. var _this2 = this;
  21921. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21922. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21923. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21924. var requestInfo = this.getDefault(url, options, "data");
  21925. requestInfo.data = data;
  21926. return new Promise(function (resolve, reject) {
  21927. _this2.getRequest("POST", requestInfo, function (state, response) {
  21928. //是否用外部的数据处理方法
  21929. if (state && requestInfo.isFactory && _this2.dataFactory) {
  21930. //数据处理
  21931. var factoryInfo = _this2.dataFactory(requestInfo, response);
  21932. // console.log(factoryInfo)
  21933. return resolve(factoryInfo.result);
  21934. // factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  21935. } else {
  21936. // console.log(response, response)
  21937. state ? resolve(response) : reject(response);
  21938. }
  21939. });
  21940. });
  21941. }
  21942. //get请求
  21943. }, {
  21944. key: "get",
  21945. value: function get() {
  21946. var _this3 = this;
  21947. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21948. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21949. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21950. var requestInfo = this.getDefault(url, options, "data");
  21951. requestInfo.data = data;
  21952. return new Promise(function (resolve, reject) {
  21953. _this3.getRequest("GET", requestInfo, function (state, response) {
  21954. //是否用外部的数据处理方法
  21955. if (state && requestInfo.isFactory && _this3.dataFactory) {
  21956. //数据处理
  21957. var factoryInfo = _this3.dataFactory(requestInfo, response);
  21958. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  21959. } else {
  21960. state ? resolve(response) : reject(response);
  21961. }
  21962. });
  21963. });
  21964. }
  21965. //put请求
  21966. }, {
  21967. key: "put",
  21968. value: function put() {
  21969. var _this4 = this;
  21970. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21971. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21972. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21973. var requestInfo = this.getDefault(url, options, "data");
  21974. requestInfo.data = data;
  21975. return new Promise(function (resolve, reject) {
  21976. _this4.getRequest("PUT", requestInfo, function (state, response) {
  21977. //是否用外部的数据处理方法
  21978. if (state && requestInfo.isFactory && _this4.dataFactory) {
  21979. //数据处理
  21980. var factoryInfo = _this4.dataFactory(requestInfo, response);
  21981. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  21982. } else {
  21983. state ? resolve(response) : reject(response);
  21984. }
  21985. });
  21986. });
  21987. }
  21988. //delete请求
  21989. }, {
  21990. key: "delete",
  21991. value: function _delete() {
  21992. var _this5 = this;
  21993. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  21994. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  21995. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21996. var requestInfo = this.getDefault(url, options, "data");
  21997. requestInfo.data = data;
  21998. return new Promise(function (resolve, reject) {
  21999. _this5.getRequest("DELETE", requestInfo, function (state, response) {
  22000. //是否用外部的数据处理方法
  22001. if (state && requestInfo.isFactory && _this5.dataFactory) {
  22002. //数据处理
  22003. var factoryInfo = _this5.dataFactory(requestInfo, response);
  22004. factoryInfo.success ? resolve(factoryInfo.result) : reject(factoryInfo.result);
  22005. } else {
  22006. state ? resolve(response) : reject(response);
  22007. }
  22008. });
  22009. });
  22010. }
  22011. //接口请求方法
  22012. }, {
  22013. key: "getRequest",
  22014. value: function getRequest(ajaxType, options, callback) {
  22015. var _this6 = this;
  22016. //请求前回调
  22017. if (this.requestStart) {
  22018. options.method = ajaxType;
  22019. var requestStart = this.requestStart(options);
  22020. if ((0, _typeof2.default)(requestStart) == "object") {
  22021. options.data = requestStart.data;
  22022. options.headers = requestStart.headers;
  22023. options.isPrompt = requestStart.isPrompt;
  22024. options.load = requestStart.load;
  22025. options.isFactory = requestStart.isFactory;
  22026. } else {
  22027. callback(false, "请求开始拦截器未通过");
  22028. return;
  22029. }
  22030. }
  22031. // console.log(options.data)
  22032. uni.request({
  22033. url: options.httpUrl,
  22034. data: options.data,
  22035. method: ajaxType,
  22036. //请求类型
  22037. header: options.headers,
  22038. //加入请求头
  22039. success: function success(res) {
  22040. // ;
  22041. //请求完成回调
  22042. _this6.requestEnd && _this6.requestEnd(options, res);
  22043. callback(true, res);
  22044. },
  22045. fail: function fail(err) {
  22046. // console.log(err);
  22047. //请求完成回调
  22048. _this6.requestEnd && _this6.requestEnd(options, err);
  22049. callback(false, err);
  22050. }
  22051. });
  22052. }
  22053. //jsonp请求(只限于H5使用)
  22054. }, {
  22055. key: "jsonp",
  22056. value: function jsonp() {
  22057. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  22058. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  22059. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  22060. var requestInfo = this.getDefault(url, options, "data");
  22061. var dataStr = '';
  22062. Object.keys(data).forEach(function (key) {
  22063. dataStr += key + '=' + data[key] + '&';
  22064. });
  22065. //匹配最后一个&并去除
  22066. if (dataStr !== '') {
  22067. dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
  22068. }
  22069. requestInfo.httpUrl = requestInfo.httpUrl + '?' + dataStr;
  22070. var _this = this;
  22071. return new Promise(function (resolve, reject) {
  22072. var callbackName = "callback" + Math.ceil(Math.random() * 1000000);
  22073. if (_this.requestStart) {
  22074. requestInfo.data = data;
  22075. var requestStart = _this.requestStart(requestInfo);
  22076. if ((0, _typeof2.default)(requestStart) == "object") {
  22077. requestInfo.data = requestStart.data;
  22078. requestInfo.headers = requestStart.headers;
  22079. requestInfo.isPrompt = requestStart.isPrompt;
  22080. requestInfo.load = requestStart.load;
  22081. requestInfo.isFactory = requestStart.isFactory;
  22082. } else {
  22083. reject("请求开始拦截器未通过");
  22084. return;
  22085. }
  22086. }
  22087. window[callbackName] = function (data) {
  22088. resolve(data);
  22089. };
  22090. var script = document.createElement("script");
  22091. script.src = requestInfo.httpUrl + "&callback=" + callbackName;
  22092. document.head.appendChild(script);
  22093. // 及时删除,防止加载过多的JS
  22094. document.head.removeChild(script);
  22095. //请求完成回调
  22096. _this.requestEnd && _this.requestEnd(requestInfo, {});
  22097. });
  22098. }
  22099. //本地服务器图片上传
  22100. }, {
  22101. key: "urlImgUpload",
  22102. value: function urlImgUpload() {
  22103. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  22104. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  22105. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  22106. var requestInfo = this.getDefault(url, options, "file");
  22107. requestInfo.data = data;
  22108. var _this = this;
  22109. return new Promise(function (resolve, reject) {
  22110. uni.chooseImage({
  22111. count: data.count || 9,
  22112. //默认9
  22113. sizeType: data.sizeType || ['original', 'compressed'],
  22114. //可以指定是原图还是压缩图,默认二者都有
  22115. sourceType: data.sourceType || ['album', 'camera'],
  22116. //从相册选择
  22117. success: function success(res) {
  22118. _this.urlFileUpload(requestInfo, res.tempFiles, function (state, response) {
  22119. state ? resolve(response) : reject(response);
  22120. });
  22121. }
  22122. });
  22123. });
  22124. }
  22125. //本地服务器文件上传方法
  22126. }, {
  22127. key: "urlFileUpload",
  22128. value: function urlFileUpload(options, files, callback) {
  22129. var _this = this;
  22130. //请求前回调
  22131. if (this.requestStart) {
  22132. options.method = "FILE";
  22133. var requestStart = this.requestStart(options);
  22134. if ((0, _typeof2.default)(requestStart) == "object") {
  22135. if ((0, _typeof2.default)(requestStart) == "object") {
  22136. options.data = requestStart.data;
  22137. options.headers = requestStart.headers;
  22138. options.isPrompt = requestStart.isPrompt;
  22139. options.load = requestStart.load;
  22140. options.isFactory = requestStart.isFactory;
  22141. } else {
  22142. callback(false, "请求开始拦截器未通过");
  22143. return;
  22144. }
  22145. }
  22146. }
  22147. var len = files.length - 1;
  22148. var fileList = new Array();
  22149. fileUpload(0);
  22150. function fileUpload(i) {
  22151. var config = {
  22152. url: options.httpUrl,
  22153. filePath: files[i].path,
  22154. header: options.headers,
  22155. //加入请求头
  22156. name: options.name || "file",
  22157. success: function success(response) {
  22158. response.data = JSON.parse(response.data);
  22159. //请求完成回调
  22160. _this.requestEnd && _this.requestEnd(options, response);
  22161. //是否用外部的数据处理方法
  22162. if (options.isFactory && _this.dataFactory) {
  22163. //数据处理
  22164. var factoryInfo = _this.dataFactory(options, response);
  22165. if (factoryInfo.success) {
  22166. fileList.push(factoryInfo.result);
  22167. if (len <= i) {
  22168. callback(true, fileList);
  22169. } else {
  22170. fileUpload(i + 1);
  22171. }
  22172. } else {
  22173. callback(false, factoryInfo.result);
  22174. }
  22175. } else {
  22176. fileList.push(response.data);
  22177. if (len <= i) {
  22178. callback(true, fileList);
  22179. } else {
  22180. fileUpload(i + 1);
  22181. }
  22182. }
  22183. },
  22184. fail: function fail(err) {
  22185. //请求完成回调
  22186. _this.requestEnd && _this.requestEnd(options, err);
  22187. callback(false, err);
  22188. }
  22189. };
  22190. if (options.data) {
  22191. config.formData = options.data;
  22192. }
  22193. uni.uploadFile(config);
  22194. }
  22195. }
  22196. }]);
  22197. return request;
  22198. }();
  22199. exports.default = request;
  22200. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22201. /***/ }),
  22202. /***/ 55:
  22203. /*!***************************************!*\
  22204. !*** D:/AAA_Company/红沙湾管理端/config.js ***!
  22205. \***************************************/
  22206. /*! no static exports found */
  22207. /***/ (function(module, exports, __webpack_require__) {
  22208. "use strict";
  22209. /* WEBPACK VAR INJECTION */(function(uni) {
  22210. Object.defineProperty(exports, "__esModule", {
  22211. value: true
  22212. });
  22213. exports.default = void 0;
  22214. var _constant = __webpack_require__(/*! ./pages/utils/constant.js */ 50);
  22215. // console.log(BASE_URI)
  22216. var baseUrl = _constant.BASE_URI;
  22217. var device, platform;
  22218. device = uni.getSystemInfoSync().brand + ' ' + uni.getSystemInfoSync().model;
  22219. platform = 'wxmini';
  22220. // app版本
  22221. var version = "1.0";
  22222. // 高德地图 key
  22223. var key = "53ea64b17287b1f7323e9f29870af813";
  22224. var _default = {
  22225. device: device,
  22226. version: version,
  22227. platform: platform,
  22228. key: key,
  22229. baseUrl: baseUrl
  22230. };
  22231. exports.default = _default;
  22232. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22233. /***/ }),
  22234. /***/ 596:
  22235. /*!*************************************************************!*\
  22236. !*** D:/AAA_Company/红沙湾管理端/components/zaiti-tree2/tools.js ***!
  22237. \*************************************************************/
  22238. /*! no static exports found */
  22239. /***/ (function(module, exports, __webpack_require__) {
  22240. "use strict";
  22241. /* WEBPACK VAR INJECTION */(function(uni) {
  22242. Object.defineProperty(exports, "__esModule", {
  22243. value: true
  22244. });
  22245. exports.default = void 0;
  22246. var _default = {
  22247. /** 将平面树json转为带children的json
  22248. * @param {Object} a
  22249. * @param {Object} idStr
  22250. * @param {Object} pidStr
  22251. * @param {Object} childrenStr
  22252. */
  22253. transData: function transData(a, idStr, pidStr, childrenStr) {
  22254. var r = [],
  22255. hash = {},
  22256. id = idStr,
  22257. pid = pidStr,
  22258. children = childrenStr,
  22259. i = 0,
  22260. j = 0,
  22261. len = a.length;
  22262. for (; i < len; i++) {
  22263. hash[a[i][id]] = a[i];
  22264. }
  22265. for (; j < len; j++) {
  22266. var aVal = a[j],
  22267. hashVP = hash[aVal[pid]];
  22268. if (hashVP) {
  22269. !hashVP[children] && (hashVP[children] = []);
  22270. hashVP[children].push(aVal);
  22271. } else {
  22272. r.push(aVal);
  22273. }
  22274. }
  22275. return r;
  22276. },
  22277. /**从字典缓存中返回数组用于页面上作下拉,
  22278. * @param {Object} k 字典名称
  22279. * @param {Object} v value取哪个字典属性
  22280. * @param {Object} t
  22281. */
  22282. arrByDic: function arrByDic(k, v, t) {
  22283. var map = uni.getStorageSync("dic");
  22284. var arr = map[k];
  22285. var r = [];
  22286. arr.forEach(function (obj) {
  22287. r.push({
  22288. value: obj[v],
  22289. text: obj[t]
  22290. });
  22291. });
  22292. return r;
  22293. },
  22294. dateFmtyyyyMMddHHmmss: function dateFmtyyyyMMddHHmmss(target) {
  22295. var date = new Date(target);
  22296. var y = date.getFullYear(); // 年
  22297. var MM = date.getMonth() + 1; // 月
  22298. MM = MM < 10 ? '0' + MM : MM;
  22299. var d = date.getDate(); // 日
  22300. d = d < 10 ? '0' + d : d;
  22301. var h = date.getHours(); // 时
  22302. h = h < 10 ? '0' + h : h;
  22303. var m = date.getMinutes(); // 分
  22304. m = m < 10 ? '0' + m : m;
  22305. var s = date.getSeconds(); // 秒
  22306. s = s < 10 ? '0' + s : s;
  22307. return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s;
  22308. },
  22309. // 比较时间大小
  22310. compareDate: function compareDate(date1, date2) {
  22311. var oDate1 = new Date(date1);
  22312. var oDate2 = new Date(date2);
  22313. if (oDate1.getTime() > oDate2.getTime()) {
  22314. return true; //第一个大
  22315. } else {
  22316. return false; //第二个大
  22317. }
  22318. },
  22319. uploadPreview: function uploadPreview(url, lists, name) {
  22320. var ext = url.substring(url.lastIndexOf(".") + 1);
  22321. ext = ext.toLowerCase();
  22322. console.log(ext);
  22323. if (ext == "pdf") {
  22324. uni.navigateTo({
  22325. url: "/pages/pdf/index?url=" + url
  22326. });
  22327. }
  22328. }
  22329. };
  22330. exports.default = _default;
  22331. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22332. /***/ }),
  22333. /***/ 6:
  22334. /*!***************************************************************!*\
  22335. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  22336. \***************************************************************/
  22337. /*! no static exports found */
  22338. /***/ (function(module, exports) {
  22339. function _arrayWithHoles(arr) {
  22340. if (Array.isArray(arr)) return arr;
  22341. }
  22342. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  22343. /***/ }),
  22344. /***/ 611:
  22345. /*!************************************************************************************************!*\
  22346. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js ***!
  22347. \************************************************************************************************/
  22348. /*! no static exports found */
  22349. /***/ (function(module, exports, __webpack_require__) {
  22350. "use strict";
  22351. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  22352. Object.defineProperty(exports, "__esModule", {
  22353. value: true
  22354. });
  22355. exports.default = void 0;
  22356. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 612));
  22357. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 613));
  22358. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 614));
  22359. var _default = {
  22360. en: _en.default,
  22361. 'zh-Hans': _zhHans.default,
  22362. 'zh-Hant': _zhHant.default
  22363. };
  22364. exports.default = _default;
  22365. /***/ }),
  22366. /***/ 612:
  22367. /*!***********************************************************************************************!*\
  22368. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json ***!
  22369. \***********************************************************************************************/
  22370. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  22371. /***/ (function(module) {
  22372. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"Search enter content\"}");
  22373. /***/ }),
  22374. /***/ 613:
  22375. /*!****************************************************************************************************!*\
  22376. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json ***!
  22377. \****************************************************************************************************/
  22378. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  22379. /***/ (function(module) {
  22380. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"请输入搜索内容\"}");
  22381. /***/ }),
  22382. /***/ 614:
  22383. /*!****************************************************************************************************!*\
  22384. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json ***!
  22385. \****************************************************************************************************/
  22386. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  22387. /***/ (function(module) {
  22388. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"請輸入搜索內容\"}");
  22389. /***/ }),
  22390. /***/ 620:
  22391. /*!******************************************************************************************!*\
  22392. !*** D:/AAA_Company/红沙湾管理端/uni_modules/liu-easy-map/components/liu-easy-map/daohang.png ***!
  22393. \******************************************************************************************/
  22394. /*! no static exports found */
  22395. /***/ (function(module, exports) {
  22396. module.exports = "data:image/png;base64,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"
  22397. /***/ }),
  22398. /***/ 623:
  22399. /*!************************************************************************!*\
  22400. !*** D:/AAA_Company/红沙湾管理端/uni_modules/liu-easy-map/static/marker.png ***!
  22401. \************************************************************************/
  22402. /*! no static exports found */
  22403. /***/ (function(module, exports) {
  22404. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAABACAYAAABhspUgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUUyOEUxNzlDMEUyMTFFNjg3MzJDNzBCMjQ4MTczQzQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUUyOEUxN0FDMEUyMTFFNjg3MzJDNzBCMjQ4MTczQzQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5RTI4RTE3N0MwRTIxMUU2ODczMkM3MEIyNDgxNzNDNCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5RTI4RTE3OEMwRTIxMUU2ODczMkM3MEIyNDgxNzNDNCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PsvEUScAAAemSURBVHja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"
  22405. /***/ }),
  22406. /***/ 624:
  22407. /*!********************************************************************!*\
  22408. !*** D:/AAA_Company/红沙湾管理端/uni_modules/liu-easy-map/static/go.png ***!
  22409. \********************************************************************/
  22410. /*! no static exports found */
  22411. /***/ (function(module, exports) {
  22412. module.exports = "data:image/png;base64,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"
  22413. /***/ }),
  22414. /***/ 625:
  22415. /*!***************************************************************************!*\
  22416. !*** D:/AAA_Company/红沙湾管理端/uni_modules/liu-easy-map/static/myaddress.png ***!
  22417. \***************************************************************************/
  22418. /*! no static exports found */
  22419. /***/ (function(module, exports) {
  22420. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADphJREFUeF7tnW22pDYSRPHKPL0jduDpFQw7cvfKeo7K0AfzqELKz5AU74+PuxCIyLyKlKBUfyz8owJU4K0Cf1AbKkAF3itAQJgdVOCDAgQEKD3Wdf1P6c62bT+AujV1VwgIQPjXdf3vsix/XbryY9u2bwDdm7oLBCQx/Ltj/P3QhW90lLwgEZA87Zd1XX/VXH7bNsapRiiHYyi8g6g1p1zXtTjHa85R8fd927ZShvEvWAECEiz4cbla9ziOp4vkBIqAJOheOfe49oxzkYRYEZAE0QlIgujCSxIQoXCaZgREo15sWwISq/fragQkQXThJQmIUDhNMwKiUS+2LQGJ1ZsOkqC35pIERKOesC0dRChcQjMCkiA6AUkQXXhJAiIUTtOMgGjUi21LQGL15hwkQW/NJQmIRj1hWzqIULiEZgQkQXQCkiC68JIERCicphkB0agX25aAxOrNOUiC3ppLEhCNesK2dBChcAnNCIij6McmDKcvRv25X672i1LX3p03c/i5LMvr//mVXL8gEhBDbffNF8oZCwhSCKQ9OuD5TmikEn5tR0AUWp6AuO5IojirWVMCYyAlAWkUcYciwyEae/rl8AIM3aVRRQJSIVjHULy7O8JSEfdyCAF5IxR4+VQZ3qrDXrBwon+vFQG56DIRGHcrZATlogoB2QV5s/1n1RA82EF0lFNApweEYHzEe/oN66YFhGBU+97UjjIlIISjGo7zgVOCMhUgBEMExrXRVGXXFICAgVFG4vIe1d0q0vXfzq+rHO9xlWOiX2O5I2uKrVCHByQRjjMI5cdwTH816vIiZNaT/eHdZGhAGn9iQFt/vF7jKG/YWsNQ27EdmuIukcAMPTcZEpBA1zjebYL87Y4dmPIiZURJNmTJNRwgAXBAQ/HObYJgGa7kGgoQ55KqgJFWPtWWWU/HBYAy1I+PDgOIIxzDjYoFImdQhoGke0CE3+9+GmjL50OCcXfjjmVp9/OSrgFxgmMaMM6wODpK15B0C4jDqPd6bjH7r8k6gdLtoNMlIA5wdBvAmlpRcgw1/ke17gAxLquGmUxKIHhq4+Am3ZVbXQFiDAdd44mQ/XNjN+kKkt4A+VUZ06fDCMeTQpfPLQenbdu6ybtuOmr0nIMlVSMY18Nni0MXgBgFha6hhONoblRydTFYwQNiFAzCYQSHMSTwcYEGxKjuhQ+Cce6GnW6GwQsWEMIRlueqC1lAgjxpRwbkb+X3GOgcqtSvb2wACex8BBIQA8EJR31+mxw5aszgADEorQiHScq3n2RESBAB0TwMJBzteW3aQgsJ2nwEChCluLB1rGkGdnAy5XMrqEEOBhBtaYU28rzL48vOI8dh7zZVOLYKOvbR6uYrv+u6iisBpFgiAaJZtYJ9Ae70RmyBwWp3kd97bqF+f0VZDcC4CAQgSveAEfP0lLmAELXdTrks5E4rI0CCAojUPaDmHQ7fn5DMOKAGDM18BKHUSgdEOcpAlFagv2EIA4piPpJ+DwiASCdz6eKBOMaTyyDoVHaeFP1UdraLpAKimHukl1aa0uEpox0+R4BEWkan9j0bEKloaaWVAmqHvG8+ZVqyaUrpTBdJA0SRaGnuoQlycyr7NegRkrQ+ZwLSlXt0VlI94ZU5yEjmnHMBonCPFKEGg+OAJwUShQunxD7FQaQJF12LKkB+GsGRPg+fzwmXfecARJF04SOeMJBIyV/Vl4SBR7TsG93PIl64gygACR3ppC5XlZF4B/Uy+IS7SAYgksl5aAAngyNlTiKci4TmQbiD9OAewsDheYKsR2EjtDQXosusUAcRihI2akwOx4FUWCkr1DsM4gwHkZRXkQGTrNHLxmrgVlGjtBCQsAEzFBCheyzgwQJOc1XXwpJQslIYlRM9ABISKOFIpsrADhqHOLdQ+7AyK2wOIlwZigoSS6uvxCIPTgSkxCvCSoUjWAcGYNLFkERELrNCHEQ4/4gawege71mKikHzk/WIwTNsDiIExH30ontUuYx7mSuMg3t+RAICubwrsfaqlBrrIHcXQR1AoQHxtlDhqDVW6tffTYSLtJa67uBGAgJ38wSkno5lWdyTUbLK6T2IhgCCap8sr5oAcV9RFA5Y7s7mvoolBMT1xoXBaMuo8Y5GjIlrn6IcpHkJb1kW1xsnICJ6Xcss4UDqvpIV4SDNK1jetaWk3hWl1FiNXAEpUgnK3ikBQQzEWKkuvJuAgQtuMQfRQVwBEVq5MKWGa+Zd+rZWG665Uj0H2ZNKGu1y0y1/rjfN+UdLKL4c61rSCGPzTXpH27YdP1D09hQfHUTYYWl/j3aIQdDe0yjtRxy8PubbLSDJZYg3IK02PkpyW9zHiIAcutyWj+8AaZ0sWYgf5SAERB6tkQG5fRj6BRCAJVDviWAm/PLUBGnpuZKVVNKflf0yANwBkp1ABAQEhrtuOANSftuxdVHHVK3r/f0LkOS5x8da0EoFwcMoq0sPcR5nQNZlWf6XLNS/BmgCkhyN3i4/NSAlWAAjLEssYGqcAcEusXZAJC8XWobUe5k3e45lqVX4uQYH5EvucZk3PMW6viCXeXcXybQ6bwfhcxA5oyMDUv+g8NAv6ZkIAZEnsHdL79hklPcfoa96mzf4ZcURg+CduFHn946NxN3zXla0UF3gQt42nlk+WkiaeQ7vFcZWQFxzpQhd5SCaiAgAidgggCtZgqB6rmDtc98pAWmuKwEDIUin4Zq4j9aCZ3DufYpwkGZAAjZtaB2phst2wQ15zz8kpa9rn6JKLLgbB3nnTJCjqU1ck1EYE9c50bSAgLxSk5rtrRcPKHvhKo0QQITJ6F5bShYPWpNqoONd3UM4QXdfzIkEpLnmDxixJKXfQDnfdCsRgLSuLLoPopGAQNonXaQOEtDBanpAIkYtusgzIxFxgBxAwxxEOA9xD4y09n3OqXGO8HYPRQzcV7DQAQmZhAFsFIBMU9QgBTn/iAZEYqNRAWpeREDOaqu+BbmHpMwNmX8QkD2ThA+prPIQ9TzIg1NIeRUKiHAeElJmKepg1OTW9isEDmlOeL+KdBbP/V2s88WEy6rowdImI1z7iNJqhwO6vMpwENh5iCJgcAmu7FDkgCSZ+4WVV+GA9GCpk69qRcIhcY+SQsMDIhk1wgI38XwkbGVIoXFoH7McRFJmhU3Wj/JEOF9SVjdpzUMTT7FqGOoeKYAoyqxQF1H0My3LpReOmpQbDD7TANKLi0jrZGmuZrQLTzrBV2uLLqEudwQidJn3NIKIAFmWJdxFFPVyRrK3XDMl4RSLIOEgp5VYe9KJIIkuBwzKgpakjTo2Cw6pI6f0t0tAslxEA3VU1ldeJ8WFlU6c4h6pgCgnwZlBFjlfZfJ6H5aWaIqVqzT3QABEmmyponXoJgh6SZ5/FanToE4HpFcXMVhs8HaK4/w/9pK0/DftTzExD3/+dRUpZRXr3ImexQMGpQDxc9u24tCpf4rSqvQ7rZQ+REsHROki6aWDFexGWQzhGBdNpKUVRGxRAJHORSBGmWty765Y/vkvo8R/Og0cGAbztNS5B5SDGIiZbsXvMvgEy5/LspTnABZ/x5yi3Hfq/OLDfUufeZRTQrhH6QiEg5xq+dYv7/+OT9YDxNZs32vyA5QCTfl7B845+X/uiQMJxI2LimOZvXJ1vhc0QDSlFsyo0wrNaMcr34SGqgagAFFO2CHnI6Ml/9P9aFYly7nRKgFEQDQuQkieMtjxcy0cSKUV3CT9HDcDoaFs2jEnYU49aszgHOQ0YZeunx+nICRB+BjAATt/hAXEYD7CcisAEAM4Si8hnnncyYUOiHY+QkgcIRkdjiIdNCC7ixASxySXntoIDvgyGB6QHRLtfIROIiXhpp0RHLDzjvMtdwGIISRdBMUwl81PpXwIePSnmzh0A4jRpP0IEOyk0DyjjU5o5Bqv3qA9DPwkUW+AaF6Au+oAX/8a5bb6NJZwIK9YdbeKdddh5RdwrqeEfE1cndGGJzAqqbp17q4c5FDZeETjBN5vIn4+c5eO3SUghsu/5wDSTZZl2Qcfy++udD0AdQvIDonlnOT3CgvCRgeGVVL1qRycuVy76wWRrgFxhKTrUa+aiP1AJzC6h6PcQPeAnOYlFg8T73Jr2NLLEYxunnM8DSbDALK7iRck5fRDgHL6yq/XhhLDwDGUgziucA2xNBy000qXK1WfXGQoBzlB4jF57678CoLi0GU4OIZ0kAskpYyw2mrnqVx97WaYufPIZccUrxLqi6Nu2/btSZxePx/SQc7BcJyIPsX8NzDlQOv9q262D4oaCM73PaRrnG9weECcl4KfILmbvxz/Vtzm+Lvb6+ou4a0f4LX2fyo4hi6x7iKf6CaaRERrO7xrTOcgl5KrjMyRcxO0BJf2ZyowDpGmKLHeuAlBqUdlSjimK7FYdtUTsR85LRjTO8g1VfZVIZZe/wgzPRgE5M1gOjEo34skCL9K1exzjg2mnYM8aToRKATjQzIQkAdSdlDKUSOVXzC/Yfg0UGV/TkAaItA5LISiIdacgwjEunmecjhL+W/Gqx5Pd8Hy6Umhh8/pIEoBj+YXd8kA5nj3ixNto5iW0xAQQzHfLB0fsBy/R6iB53hn63iP6/X/1i9COkrS3akJSELIhHt7db35QYLMJpckICYytp2EgLTplXk0AUlQn4AkiC68JAERCqdpRkA06sW2JSCxer+uRkASRBdekoAIhdM0IyAa9WLbEpBYvekgCXprLklANOoJ29JBhMIlNCMgCaITkATRhZckIELhNM0IiEa92LYEJFZvzkES9NZckoBo1BO2pYMIhUtoRkASRCcgCaILL0lAhMJpmhEQjXqxbQlIrN6cgyTorbkkAdGop2i7ruuvlubbtjFWLYIZHUvRjYRsPU3jPsFD/WpTq1aZxxOQRPVrXYTukRckApKnfe1bvfwmYWKMCEii+Mel13W9+/FRbv8JEBsCAhCEEyivrYO4CQNOUAgITizYE0AFCAhgUNglHAUICE4s2BNABf4Ps1DGMp8Rj1IAAAAASUVORK5CYII="
  22421. /***/ }),
  22422. /***/ 626:
  22423. /*!***********************************************************************!*\
  22424. !*** D:/AAA_Company/红沙湾管理端/uni_modules/liu-easy-map/static/wxmap.png ***!
  22425. \***********************************************************************/
  22426. /*! no static exports found */
  22427. /***/ (function(module, exports) {
  22428. module.exports = "data:image/png;base64,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"
  22429. /***/ }),
  22430. /***/ 627:
  22431. /*!******************************************************************************!*\
  22432. !*** D:/AAA_Company/红沙湾管理端/uni_modules/liu-easy-map/static/myaddress-on.png ***!
  22433. \******************************************************************************/
  22434. /*! no static exports found */
  22435. /***/ (function(module, exports) {
  22436. module.exports = "data:image/png;base64,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"
  22437. /***/ }),
  22438. /***/ 628:
  22439. /*!**************************************************************************!*\
  22440. !*** D:/AAA_Company/红沙湾管理端/uni_modules/liu-easy-map/static/wxmap-on.png ***!
  22441. \**************************************************************************/
  22442. /*! no static exports found */
  22443. /***/ (function(module, exports) {
  22444. module.exports = "data:image/png;base64,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"
  22445. /***/ }),
  22446. /***/ 629:
  22447. /*!***********************************************************************!*\
  22448. !*** D:/AAA_Company/红沙湾管理端/uni_modules/liu-easy-map/static/close.png ***!
  22449. \***********************************************************************/
  22450. /*! no static exports found */
  22451. /***/ (function(module, exports) {
  22452. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACKxJREFUeF7t3WF2GzcMhdHJzuwdaQdxdjA7ipfWo8Y+kmVLIkEQg0d8/T0UOe/hlkmspr82/iEBEribwC+yIQESuJ8AQJgOEniQAEAYDxIACDNAArYEuEFsubGqSAIAKVI0r2lLACC23FhVJAGAFCma17QlABBbbqwqkgBAihTNa9oSAIgtN1YVSQAgRYrmNW0JAMSWG6uKJACQIkXzmrYEAGLLjVVFEgBIkaJ5TVsCALHlxqoiCQCkSNG8pi0BgNhyY1WRBABSpGhe05YAQGy5sapIAgApUjSvaUsAILbcWFUkAYAUKZrXtCUAEFturCqSAECKFM1r2hIAiC03VhVJACBFiuY1bQkAxJYbq4okAJAiRfOatgQAYsuNVUUSAEiRonlNWwKSQE6n09u+72+2V2ZVdAKn0+ll27YXxc7kgJxxbNv2e9u2933fX6PLZr++BD5w/P1Y9UcNiRSQKxyfLYGkb15Dn77B8bm3FBIZID/gAEnouPdtdgeHHBIJIA9wgKRvbkOefoJDCkl6IA04QBIy9m2bNOKQQZIaSAcOkLTN79SnOnFIIEkLxIADJFPH//GHG3GkR5ISyAAOkByAZBBHaiTpgDjgAEkgEiccaZGkAuKIAyQBSJxxpESSBsgEHCCZiGQSjnRIUgCZiAMkE5BMxpEKSRYg5y+zfX5fZ0Kl/38kX0txSDYIR5quUgA591YteIdZDf+Iih2lAQKS8Hnv2rAijnNAqYCApGtmwx6uiiMlEJCEzX3TRpVxpAUCkqbZnf5QdRypgYBk+vw/3AAc/+JJ93uQ29YoKh4KmV8yTw+EmyQWCDi+5i0BBCQxSMDxPWcZICCZiwQcP+crBQQkc5CA436uckBA4osEHI/zlAQCEh8k4HieoywQkDwv99ET4GjLTxoISNpK5mdLtpwkflDY8mr827AlpX/PkFV7VssAofi20sHRltP1U/K/xLp+GQbg/gCQTT+OpW6Qz9dnEL4PApnYcCwJhF9ufR0GcNhxLAsEJPyGfIzFZfVSvwfhjzMvCXBz+BBZGkjVmwQcPjiW/iVW1T/dAocfjjJAqtwk4PDFUQrI6kjA4Y+jHJBVkYBjDo6SQFZDAo55OMoCWQUJOObiKA1EHQk45uMoD0QVCThicADkI2elgVM6a9wYz9tp+Z+kt0anMHgKZ2zNW+U5gFw1lXkAM59NZdgt5wTITWoZBzHjmSzDprgGID+0lmkgM51FccBHzwyQOwlmGMwMZxgdMPX1AHnQ4JEDeuTe6kPteX6APEnziEE9Yk/PoVrpswDS0GbkwEbu1fDq5R8BSOMIRA3utm0vjUeyPva+7/urdXG1dQDpaDwISceJuh8FR2dkAOkMTBgJODq7Pj8OEENogkjAYegZIMbQzsuEkIBjoGdukIHwBJCAY6BfbpDB8JLfJOBw6JcbxCHEhDcJOBx65QZxCjHZTQIOx165QRzDTHCTgMOxT24Q5zAPvknAMaFPbpAJoR5wk4BjQo/cIJNCDb5JwDGxR26QSeEG3iIAmdQhN8ikYANxfL4BSCZ1yQ3iHOwBOEDi3OH1xwHEMdwDcYDEsUeATAgzAQ6QTOiVG8Qh1EQ4QOLQJzeIY4gJcYDEsV9ukIEwE+MAyUCv3CAO4QngAIlDz9wghhCFcIDE0C83yEBogjhAMtA3N0hHeMI4QNLRMzeIIawgHO/8xXGGciYu4QZpCDcKx/lvPIzcq+HVyz8CkCcjcMTAHrFneQl3AgDIg8k4clCP3BsslwQAcmcaMgxohjNUxwKQHyYg02BmOktFLAC5aT3jQGY8UxUsALlqOvMgZj7bylgA8tGuwgAqnHE1LACJ+5vaXf67cZDEEiwPRHHgFM8cO9Z+u5UGojxoymf3G9/5n1QWyAoDtsI7zB/xsR1KAllpsFZ6l7FRnrO6HJAVB2rFd5oz7v2fWgrIyoO08rv1j7XfijJAKgxQhXf0G/22TyoBpNLgVHrXthEfe2p5IBUHpuI7jzG4v3ppIJUHpfK7e2JZFggDsm1kME5lSSAMxmUwyGIMyXJAGIjvA0EmdiRLAWEQ7g8C2diQLAOEAXg+AGT0PKPbJ5YAQvHtxZNVe1bnJ+WBUHhf4eenyaw9M2kgFN1e9O2TZNeWnSwQCm4r+NFTZPg8Q0kgFPu82NYnyPJxUnJAKLR19NufI9NFvotFke1D3/sk2f6cmMwNQoG9I9//PBl/z0wCCMX1D7t1BVl/TS49EAqzjrp9HZlfsksNhKLsQz66kuz/JZgWCAWNjvj4ejpICoRixofb6xOqd5HuBqleiNdge35O5U5SAalchOdAz/isqt2kAVK1gBnDPOszK3aUAkjF4GcN8ezPrdZVFiBv27b9nliuy/+8ZuL5pD46CMnrvu/vRweTAsg5hNPpNAsJOCZM2WQkf/Z9P8/D4f+kATIJCTgmjtgkJGlwpPxBoeNNAo6JOD4/2hlJKhwpgTjdJOAIwOGMJB2OtEAGkYAjEIcTkpQ4UgMxIgHHATgGkaTFkR5IJxJwHIjDiCQ1DgkgjUjAkQBHJ5L0OGSAPEECjkQ4GpFI4JACcgcJOBLieIJEBocckBsk4EiM4w4SKRySQD6QvGT4no7AfKY44scPE8+dpfj6SE8oqb5q0nNwniWBiAQAEpEye8gmABDZ6jh4RAIAiUiZPWQTAIhsdRw8IgGARKTMHrIJAES2Og4ekQBAIlJmD9kEACJbHQePSAAgESmzh2wCAJGtjoNHJACQiJTZQzYBgMhWx8EjEgBIRMrsIZsAQGSr4+ARCQAkImX2kE0AILLVcfCIBAASkTJ7yCYAENnqOHhEAgCJSJk9ZBMAiGx1HDwiAYBEpMwesgkARLY6Dh6RAEAiUmYP2QQAIlsdB49IACARKbOHbAIAka2Og0ckAJCIlNlDNgGAyFbHwSMSAEhEyuwhmwBAZKvj4BEJACQiZfaQTQAgstVx8IgE/gNJvrkF061VHQAAAABJRU5ErkJggg=="
  22453. /***/ }),
  22454. /***/ 637:
  22455. /*!*********************************************************************************!*\
  22456. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  22457. \*********************************************************************************/
  22458. /*! no static exports found */
  22459. /***/ (function(module, exports, __webpack_require__) {
  22460. "use strict";
  22461. Object.defineProperty(exports, "__esModule", {
  22462. value: true
  22463. });
  22464. exports.default = void 0;
  22465. var _default = {
  22466. "id": "2852637",
  22467. "name": "uniui图标库",
  22468. "font_family": "uniicons",
  22469. "css_prefix_text": "uniui-",
  22470. "description": "",
  22471. "glyphs": [{
  22472. "icon_id": "25027049",
  22473. "name": "yanse",
  22474. "font_class": "color",
  22475. "unicode": "e6cf",
  22476. "unicode_decimal": 59087
  22477. }, {
  22478. "icon_id": "25027048",
  22479. "name": "wallet",
  22480. "font_class": "wallet",
  22481. "unicode": "e6b1",
  22482. "unicode_decimal": 59057
  22483. }, {
  22484. "icon_id": "25015720",
  22485. "name": "settings-filled",
  22486. "font_class": "settings-filled",
  22487. "unicode": "e6ce",
  22488. "unicode_decimal": 59086
  22489. }, {
  22490. "icon_id": "25015434",
  22491. "name": "shimingrenzheng-filled",
  22492. "font_class": "auth-filled",
  22493. "unicode": "e6cc",
  22494. "unicode_decimal": 59084
  22495. }, {
  22496. "icon_id": "24934246",
  22497. "name": "shop-filled",
  22498. "font_class": "shop-filled",
  22499. "unicode": "e6cd",
  22500. "unicode_decimal": 59085
  22501. }, {
  22502. "icon_id": "24934159",
  22503. "name": "staff-filled-01",
  22504. "font_class": "staff-filled",
  22505. "unicode": "e6cb",
  22506. "unicode_decimal": 59083
  22507. }, {
  22508. "icon_id": "24932461",
  22509. "name": "VIP-filled",
  22510. "font_class": "vip-filled",
  22511. "unicode": "e6c6",
  22512. "unicode_decimal": 59078
  22513. }, {
  22514. "icon_id": "24932462",
  22515. "name": "plus_circle_fill",
  22516. "font_class": "plus-filled",
  22517. "unicode": "e6c7",
  22518. "unicode_decimal": 59079
  22519. }, {
  22520. "icon_id": "24932463",
  22521. "name": "folder_add-filled",
  22522. "font_class": "folder-add-filled",
  22523. "unicode": "e6c8",
  22524. "unicode_decimal": 59080
  22525. }, {
  22526. "icon_id": "24932464",
  22527. "name": "yanse-filled",
  22528. "font_class": "color-filled",
  22529. "unicode": "e6c9",
  22530. "unicode_decimal": 59081
  22531. }, {
  22532. "icon_id": "24932465",
  22533. "name": "tune-filled",
  22534. "font_class": "tune-filled",
  22535. "unicode": "e6ca",
  22536. "unicode_decimal": 59082
  22537. }, {
  22538. "icon_id": "24932455",
  22539. "name": "a-rilidaka-filled",
  22540. "font_class": "calendar-filled",
  22541. "unicode": "e6c0",
  22542. "unicode_decimal": 59072
  22543. }, {
  22544. "icon_id": "24932456",
  22545. "name": "notification-filled",
  22546. "font_class": "notification-filled",
  22547. "unicode": "e6c1",
  22548. "unicode_decimal": 59073
  22549. }, {
  22550. "icon_id": "24932457",
  22551. "name": "wallet-filled",
  22552. "font_class": "wallet-filled",
  22553. "unicode": "e6c2",
  22554. "unicode_decimal": 59074
  22555. }, {
  22556. "icon_id": "24932458",
  22557. "name": "paihangbang-filled",
  22558. "font_class": "medal-filled",
  22559. "unicode": "e6c3",
  22560. "unicode_decimal": 59075
  22561. }, {
  22562. "icon_id": "24932459",
  22563. "name": "gift-filled",
  22564. "font_class": "gift-filled",
  22565. "unicode": "e6c4",
  22566. "unicode_decimal": 59076
  22567. }, {
  22568. "icon_id": "24932460",
  22569. "name": "fire-filled",
  22570. "font_class": "fire-filled",
  22571. "unicode": "e6c5",
  22572. "unicode_decimal": 59077
  22573. }, {
  22574. "icon_id": "24928001",
  22575. "name": "refreshempty",
  22576. "font_class": "refreshempty",
  22577. "unicode": "e6bf",
  22578. "unicode_decimal": 59071
  22579. }, {
  22580. "icon_id": "24926853",
  22581. "name": "location-ellipse",
  22582. "font_class": "location-filled",
  22583. "unicode": "e6af",
  22584. "unicode_decimal": 59055
  22585. }, {
  22586. "icon_id": "24926735",
  22587. "name": "person-filled",
  22588. "font_class": "person-filled",
  22589. "unicode": "e69d",
  22590. "unicode_decimal": 59037
  22591. }, {
  22592. "icon_id": "24926703",
  22593. "name": "personadd-filled",
  22594. "font_class": "personadd-filled",
  22595. "unicode": "e698",
  22596. "unicode_decimal": 59032
  22597. }, {
  22598. "icon_id": "24923351",
  22599. "name": "back",
  22600. "font_class": "back",
  22601. "unicode": "e6b9",
  22602. "unicode_decimal": 59065
  22603. }, {
  22604. "icon_id": "24923352",
  22605. "name": "forward",
  22606. "font_class": "forward",
  22607. "unicode": "e6ba",
  22608. "unicode_decimal": 59066
  22609. }, {
  22610. "icon_id": "24923353",
  22611. "name": "arrowthinright",
  22612. "font_class": "arrow-right",
  22613. "unicode": "e6bb",
  22614. "unicode_decimal": 59067
  22615. }, {
  22616. "icon_id": "24923353",
  22617. "name": "arrowthinright",
  22618. "font_class": "arrowthinright",
  22619. "unicode": "e6bb",
  22620. "unicode_decimal": 59067
  22621. }, {
  22622. "icon_id": "24923354",
  22623. "name": "arrowthinleft",
  22624. "font_class": "arrow-left",
  22625. "unicode": "e6bc",
  22626. "unicode_decimal": 59068
  22627. }, {
  22628. "icon_id": "24923354",
  22629. "name": "arrowthinleft",
  22630. "font_class": "arrowthinleft",
  22631. "unicode": "e6bc",
  22632. "unicode_decimal": 59068
  22633. }, {
  22634. "icon_id": "24923355",
  22635. "name": "arrowthinup",
  22636. "font_class": "arrow-up",
  22637. "unicode": "e6bd",
  22638. "unicode_decimal": 59069
  22639. }, {
  22640. "icon_id": "24923355",
  22641. "name": "arrowthinup",
  22642. "font_class": "arrowthinup",
  22643. "unicode": "e6bd",
  22644. "unicode_decimal": 59069
  22645. }, {
  22646. "icon_id": "24923356",
  22647. "name": "arrowthindown",
  22648. "font_class": "arrow-down",
  22649. "unicode": "e6be",
  22650. "unicode_decimal": 59070
  22651. }, {
  22652. "icon_id": "24923356",
  22653. "name": "arrowthindown",
  22654. "font_class": "arrowthindown",
  22655. "unicode": "e6be",
  22656. "unicode_decimal": 59070
  22657. }, {
  22658. "icon_id": "24923349",
  22659. "name": "arrowdown",
  22660. "font_class": "bottom",
  22661. "unicode": "e6b8",
  22662. "unicode_decimal": 59064
  22663. }, {
  22664. "icon_id": "24923349",
  22665. "name": "arrowdown",
  22666. "font_class": "arrowdown",
  22667. "unicode": "e6b8",
  22668. "unicode_decimal": 59064
  22669. }, {
  22670. "icon_id": "24923346",
  22671. "name": "arrowright",
  22672. "font_class": "right",
  22673. "unicode": "e6b5",
  22674. "unicode_decimal": 59061
  22675. }, {
  22676. "icon_id": "24923346",
  22677. "name": "arrowright",
  22678. "font_class": "arrowright",
  22679. "unicode": "e6b5",
  22680. "unicode_decimal": 59061
  22681. }, {
  22682. "icon_id": "24923347",
  22683. "name": "arrowup",
  22684. "font_class": "top",
  22685. "unicode": "e6b6",
  22686. "unicode_decimal": 59062
  22687. }, {
  22688. "icon_id": "24923347",
  22689. "name": "arrowup",
  22690. "font_class": "arrowup",
  22691. "unicode": "e6b6",
  22692. "unicode_decimal": 59062
  22693. }, {
  22694. "icon_id": "24923348",
  22695. "name": "arrowleft",
  22696. "font_class": "left",
  22697. "unicode": "e6b7",
  22698. "unicode_decimal": 59063
  22699. }, {
  22700. "icon_id": "24923348",
  22701. "name": "arrowleft",
  22702. "font_class": "arrowleft",
  22703. "unicode": "e6b7",
  22704. "unicode_decimal": 59063
  22705. }, {
  22706. "icon_id": "24923334",
  22707. "name": "eye",
  22708. "font_class": "eye",
  22709. "unicode": "e651",
  22710. "unicode_decimal": 58961
  22711. }, {
  22712. "icon_id": "24923335",
  22713. "name": "eye-filled",
  22714. "font_class": "eye-filled",
  22715. "unicode": "e66a",
  22716. "unicode_decimal": 58986
  22717. }, {
  22718. "icon_id": "24923336",
  22719. "name": "eye-slash",
  22720. "font_class": "eye-slash",
  22721. "unicode": "e6b3",
  22722. "unicode_decimal": 59059
  22723. }, {
  22724. "icon_id": "24923337",
  22725. "name": "eye-slash-filled",
  22726. "font_class": "eye-slash-filled",
  22727. "unicode": "e6b4",
  22728. "unicode_decimal": 59060
  22729. }, {
  22730. "icon_id": "24923305",
  22731. "name": "info-filled",
  22732. "font_class": "info-filled",
  22733. "unicode": "e649",
  22734. "unicode_decimal": 58953
  22735. }, {
  22736. "icon_id": "24923299",
  22737. "name": "reload-01",
  22738. "font_class": "reload",
  22739. "unicode": "e6b2",
  22740. "unicode_decimal": 59058
  22741. }, {
  22742. "icon_id": "24923195",
  22743. "name": "mic_slash_fill",
  22744. "font_class": "micoff-filled",
  22745. "unicode": "e6b0",
  22746. "unicode_decimal": 59056
  22747. }, {
  22748. "icon_id": "24923165",
  22749. "name": "map-pin-ellipse",
  22750. "font_class": "map-pin-ellipse",
  22751. "unicode": "e6ac",
  22752. "unicode_decimal": 59052
  22753. }, {
  22754. "icon_id": "24923166",
  22755. "name": "map-pin",
  22756. "font_class": "map-pin",
  22757. "unicode": "e6ad",
  22758. "unicode_decimal": 59053
  22759. }, {
  22760. "icon_id": "24923167",
  22761. "name": "location",
  22762. "font_class": "location",
  22763. "unicode": "e6ae",
  22764. "unicode_decimal": 59054
  22765. }, {
  22766. "icon_id": "24923064",
  22767. "name": "starhalf",
  22768. "font_class": "starhalf",
  22769. "unicode": "e683",
  22770. "unicode_decimal": 59011
  22771. }, {
  22772. "icon_id": "24923065",
  22773. "name": "star",
  22774. "font_class": "star",
  22775. "unicode": "e688",
  22776. "unicode_decimal": 59016
  22777. }, {
  22778. "icon_id": "24923066",
  22779. "name": "star-filled",
  22780. "font_class": "star-filled",
  22781. "unicode": "e68f",
  22782. "unicode_decimal": 59023
  22783. }, {
  22784. "icon_id": "24899646",
  22785. "name": "a-rilidaka",
  22786. "font_class": "calendar",
  22787. "unicode": "e6a0",
  22788. "unicode_decimal": 59040
  22789. }, {
  22790. "icon_id": "24899647",
  22791. "name": "fire",
  22792. "font_class": "fire",
  22793. "unicode": "e6a1",
  22794. "unicode_decimal": 59041
  22795. }, {
  22796. "icon_id": "24899648",
  22797. "name": "paihangbang",
  22798. "font_class": "medal",
  22799. "unicode": "e6a2",
  22800. "unicode_decimal": 59042
  22801. }, {
  22802. "icon_id": "24899649",
  22803. "name": "font",
  22804. "font_class": "font",
  22805. "unicode": "e6a3",
  22806. "unicode_decimal": 59043
  22807. }, {
  22808. "icon_id": "24899650",
  22809. "name": "gift",
  22810. "font_class": "gift",
  22811. "unicode": "e6a4",
  22812. "unicode_decimal": 59044
  22813. }, {
  22814. "icon_id": "24899651",
  22815. "name": "link",
  22816. "font_class": "link",
  22817. "unicode": "e6a5",
  22818. "unicode_decimal": 59045
  22819. }, {
  22820. "icon_id": "24899652",
  22821. "name": "notification",
  22822. "font_class": "notification",
  22823. "unicode": "e6a6",
  22824. "unicode_decimal": 59046
  22825. }, {
  22826. "icon_id": "24899653",
  22827. "name": "staff",
  22828. "font_class": "staff",
  22829. "unicode": "e6a7",
  22830. "unicode_decimal": 59047
  22831. }, {
  22832. "icon_id": "24899654",
  22833. "name": "VIP",
  22834. "font_class": "vip",
  22835. "unicode": "e6a8",
  22836. "unicode_decimal": 59048
  22837. }, {
  22838. "icon_id": "24899655",
  22839. "name": "folder_add",
  22840. "font_class": "folder-add",
  22841. "unicode": "e6a9",
  22842. "unicode_decimal": 59049
  22843. }, {
  22844. "icon_id": "24899656",
  22845. "name": "tune",
  22846. "font_class": "tune",
  22847. "unicode": "e6aa",
  22848. "unicode_decimal": 59050
  22849. }, {
  22850. "icon_id": "24899657",
  22851. "name": "shimingrenzheng",
  22852. "font_class": "auth",
  22853. "unicode": "e6ab",
  22854. "unicode_decimal": 59051
  22855. }, {
  22856. "icon_id": "24899565",
  22857. "name": "person",
  22858. "font_class": "person",
  22859. "unicode": "e699",
  22860. "unicode_decimal": 59033
  22861. }, {
  22862. "icon_id": "24899566",
  22863. "name": "email-filled",
  22864. "font_class": "email-filled",
  22865. "unicode": "e69a",
  22866. "unicode_decimal": 59034
  22867. }, {
  22868. "icon_id": "24899567",
  22869. "name": "phone-filled",
  22870. "font_class": "phone-filled",
  22871. "unicode": "e69b",
  22872. "unicode_decimal": 59035
  22873. }, {
  22874. "icon_id": "24899568",
  22875. "name": "phone",
  22876. "font_class": "phone",
  22877. "unicode": "e69c",
  22878. "unicode_decimal": 59036
  22879. }, {
  22880. "icon_id": "24899570",
  22881. "name": "email",
  22882. "font_class": "email",
  22883. "unicode": "e69e",
  22884. "unicode_decimal": 59038
  22885. }, {
  22886. "icon_id": "24899571",
  22887. "name": "personadd",
  22888. "font_class": "personadd",
  22889. "unicode": "e69f",
  22890. "unicode_decimal": 59039
  22891. }, {
  22892. "icon_id": "24899558",
  22893. "name": "chatboxes-filled",
  22894. "font_class": "chatboxes-filled",
  22895. "unicode": "e692",
  22896. "unicode_decimal": 59026
  22897. }, {
  22898. "icon_id": "24899559",
  22899. "name": "contact",
  22900. "font_class": "contact",
  22901. "unicode": "e693",
  22902. "unicode_decimal": 59027
  22903. }, {
  22904. "icon_id": "24899560",
  22905. "name": "chatbubble-filled",
  22906. "font_class": "chatbubble-filled",
  22907. "unicode": "e694",
  22908. "unicode_decimal": 59028
  22909. }, {
  22910. "icon_id": "24899561",
  22911. "name": "contact-filled",
  22912. "font_class": "contact-filled",
  22913. "unicode": "e695",
  22914. "unicode_decimal": 59029
  22915. }, {
  22916. "icon_id": "24899562",
  22917. "name": "chatboxes",
  22918. "font_class": "chatboxes",
  22919. "unicode": "e696",
  22920. "unicode_decimal": 59030
  22921. }, {
  22922. "icon_id": "24899563",
  22923. "name": "chatbubble",
  22924. "font_class": "chatbubble",
  22925. "unicode": "e697",
  22926. "unicode_decimal": 59031
  22927. }, {
  22928. "icon_id": "24881290",
  22929. "name": "upload-filled",
  22930. "font_class": "upload-filled",
  22931. "unicode": "e68e",
  22932. "unicode_decimal": 59022
  22933. }, {
  22934. "icon_id": "24881292",
  22935. "name": "upload",
  22936. "font_class": "upload",
  22937. "unicode": "e690",
  22938. "unicode_decimal": 59024
  22939. }, {
  22940. "icon_id": "24881293",
  22941. "name": "weixin",
  22942. "font_class": "weixin",
  22943. "unicode": "e691",
  22944. "unicode_decimal": 59025
  22945. }, {
  22946. "icon_id": "24881274",
  22947. "name": "compose",
  22948. "font_class": "compose",
  22949. "unicode": "e67f",
  22950. "unicode_decimal": 59007
  22951. }, {
  22952. "icon_id": "24881275",
  22953. "name": "qq",
  22954. "font_class": "qq",
  22955. "unicode": "e680",
  22956. "unicode_decimal": 59008
  22957. }, {
  22958. "icon_id": "24881276",
  22959. "name": "download-filled",
  22960. "font_class": "download-filled",
  22961. "unicode": "e681",
  22962. "unicode_decimal": 59009
  22963. }, {
  22964. "icon_id": "24881277",
  22965. "name": "pengyouquan",
  22966. "font_class": "pyq",
  22967. "unicode": "e682",
  22968. "unicode_decimal": 59010
  22969. }, {
  22970. "icon_id": "24881279",
  22971. "name": "sound",
  22972. "font_class": "sound",
  22973. "unicode": "e684",
  22974. "unicode_decimal": 59012
  22975. }, {
  22976. "icon_id": "24881280",
  22977. "name": "trash-filled",
  22978. "font_class": "trash-filled",
  22979. "unicode": "e685",
  22980. "unicode_decimal": 59013
  22981. }, {
  22982. "icon_id": "24881281",
  22983. "name": "sound-filled",
  22984. "font_class": "sound-filled",
  22985. "unicode": "e686",
  22986. "unicode_decimal": 59014
  22987. }, {
  22988. "icon_id": "24881282",
  22989. "name": "trash",
  22990. "font_class": "trash",
  22991. "unicode": "e687",
  22992. "unicode_decimal": 59015
  22993. }, {
  22994. "icon_id": "24881284",
  22995. "name": "videocam-filled",
  22996. "font_class": "videocam-filled",
  22997. "unicode": "e689",
  22998. "unicode_decimal": 59017
  22999. }, {
  23000. "icon_id": "24881285",
  23001. "name": "spinner-cycle",
  23002. "font_class": "spinner-cycle",
  23003. "unicode": "e68a",
  23004. "unicode_decimal": 59018
  23005. }, {
  23006. "icon_id": "24881286",
  23007. "name": "weibo",
  23008. "font_class": "weibo",
  23009. "unicode": "e68b",
  23010. "unicode_decimal": 59019
  23011. }, {
  23012. "icon_id": "24881288",
  23013. "name": "videocam",
  23014. "font_class": "videocam",
  23015. "unicode": "e68c",
  23016. "unicode_decimal": 59020
  23017. }, {
  23018. "icon_id": "24881289",
  23019. "name": "download",
  23020. "font_class": "download",
  23021. "unicode": "e68d",
  23022. "unicode_decimal": 59021
  23023. }, {
  23024. "icon_id": "24879601",
  23025. "name": "help",
  23026. "font_class": "help",
  23027. "unicode": "e679",
  23028. "unicode_decimal": 59001
  23029. }, {
  23030. "icon_id": "24879602",
  23031. "name": "navigate-filled",
  23032. "font_class": "navigate-filled",
  23033. "unicode": "e67a",
  23034. "unicode_decimal": 59002
  23035. }, {
  23036. "icon_id": "24879603",
  23037. "name": "plusempty",
  23038. "font_class": "plusempty",
  23039. "unicode": "e67b",
  23040. "unicode_decimal": 59003
  23041. }, {
  23042. "icon_id": "24879604",
  23043. "name": "smallcircle",
  23044. "font_class": "smallcircle",
  23045. "unicode": "e67c",
  23046. "unicode_decimal": 59004
  23047. }, {
  23048. "icon_id": "24879605",
  23049. "name": "minus-filled",
  23050. "font_class": "minus-filled",
  23051. "unicode": "e67d",
  23052. "unicode_decimal": 59005
  23053. }, {
  23054. "icon_id": "24879606",
  23055. "name": "micoff",
  23056. "font_class": "micoff",
  23057. "unicode": "e67e",
  23058. "unicode_decimal": 59006
  23059. }, {
  23060. "icon_id": "24879588",
  23061. "name": "closeempty",
  23062. "font_class": "closeempty",
  23063. "unicode": "e66c",
  23064. "unicode_decimal": 58988
  23065. }, {
  23066. "icon_id": "24879589",
  23067. "name": "clear",
  23068. "font_class": "clear",
  23069. "unicode": "e66d",
  23070. "unicode_decimal": 58989
  23071. }, {
  23072. "icon_id": "24879590",
  23073. "name": "navigate",
  23074. "font_class": "navigate",
  23075. "unicode": "e66e",
  23076. "unicode_decimal": 58990
  23077. }, {
  23078. "icon_id": "24879591",
  23079. "name": "minus",
  23080. "font_class": "minus",
  23081. "unicode": "e66f",
  23082. "unicode_decimal": 58991
  23083. }, {
  23084. "icon_id": "24879592",
  23085. "name": "image",
  23086. "font_class": "image",
  23087. "unicode": "e670",
  23088. "unicode_decimal": 58992
  23089. }, {
  23090. "icon_id": "24879593",
  23091. "name": "mic",
  23092. "font_class": "mic",
  23093. "unicode": "e671",
  23094. "unicode_decimal": 58993
  23095. }, {
  23096. "icon_id": "24879594",
  23097. "name": "paperplane",
  23098. "font_class": "paperplane",
  23099. "unicode": "e672",
  23100. "unicode_decimal": 58994
  23101. }, {
  23102. "icon_id": "24879595",
  23103. "name": "close",
  23104. "font_class": "close",
  23105. "unicode": "e673",
  23106. "unicode_decimal": 58995
  23107. }, {
  23108. "icon_id": "24879596",
  23109. "name": "help-filled",
  23110. "font_class": "help-filled",
  23111. "unicode": "e674",
  23112. "unicode_decimal": 58996
  23113. }, {
  23114. "icon_id": "24879597",
  23115. "name": "plus-filled",
  23116. "font_class": "paperplane-filled",
  23117. "unicode": "e675",
  23118. "unicode_decimal": 58997
  23119. }, {
  23120. "icon_id": "24879598",
  23121. "name": "plus",
  23122. "font_class": "plus",
  23123. "unicode": "e676",
  23124. "unicode_decimal": 58998
  23125. }, {
  23126. "icon_id": "24879599",
  23127. "name": "mic-filled",
  23128. "font_class": "mic-filled",
  23129. "unicode": "e677",
  23130. "unicode_decimal": 58999
  23131. }, {
  23132. "icon_id": "24879600",
  23133. "name": "image-filled",
  23134. "font_class": "image-filled",
  23135. "unicode": "e678",
  23136. "unicode_decimal": 59000
  23137. }, {
  23138. "icon_id": "24855900",
  23139. "name": "locked-filled",
  23140. "font_class": "locked-filled",
  23141. "unicode": "e668",
  23142. "unicode_decimal": 58984
  23143. }, {
  23144. "icon_id": "24855901",
  23145. "name": "info",
  23146. "font_class": "info",
  23147. "unicode": "e669",
  23148. "unicode_decimal": 58985
  23149. }, {
  23150. "icon_id": "24855903",
  23151. "name": "locked",
  23152. "font_class": "locked",
  23153. "unicode": "e66b",
  23154. "unicode_decimal": 58987
  23155. }, {
  23156. "icon_id": "24855884",
  23157. "name": "camera-filled",
  23158. "font_class": "camera-filled",
  23159. "unicode": "e658",
  23160. "unicode_decimal": 58968
  23161. }, {
  23162. "icon_id": "24855885",
  23163. "name": "chat-filled",
  23164. "font_class": "chat-filled",
  23165. "unicode": "e659",
  23166. "unicode_decimal": 58969
  23167. }, {
  23168. "icon_id": "24855886",
  23169. "name": "camera",
  23170. "font_class": "camera",
  23171. "unicode": "e65a",
  23172. "unicode_decimal": 58970
  23173. }, {
  23174. "icon_id": "24855887",
  23175. "name": "circle",
  23176. "font_class": "circle",
  23177. "unicode": "e65b",
  23178. "unicode_decimal": 58971
  23179. }, {
  23180. "icon_id": "24855888",
  23181. "name": "checkmarkempty",
  23182. "font_class": "checkmarkempty",
  23183. "unicode": "e65c",
  23184. "unicode_decimal": 58972
  23185. }, {
  23186. "icon_id": "24855889",
  23187. "name": "chat",
  23188. "font_class": "chat",
  23189. "unicode": "e65d",
  23190. "unicode_decimal": 58973
  23191. }, {
  23192. "icon_id": "24855890",
  23193. "name": "circle-filled",
  23194. "font_class": "circle-filled",
  23195. "unicode": "e65e",
  23196. "unicode_decimal": 58974
  23197. }, {
  23198. "icon_id": "24855891",
  23199. "name": "flag",
  23200. "font_class": "flag",
  23201. "unicode": "e65f",
  23202. "unicode_decimal": 58975
  23203. }, {
  23204. "icon_id": "24855892",
  23205. "name": "flag-filled",
  23206. "font_class": "flag-filled",
  23207. "unicode": "e660",
  23208. "unicode_decimal": 58976
  23209. }, {
  23210. "icon_id": "24855893",
  23211. "name": "gear-filled",
  23212. "font_class": "gear-filled",
  23213. "unicode": "e661",
  23214. "unicode_decimal": 58977
  23215. }, {
  23216. "icon_id": "24855894",
  23217. "name": "home",
  23218. "font_class": "home",
  23219. "unicode": "e662",
  23220. "unicode_decimal": 58978
  23221. }, {
  23222. "icon_id": "24855895",
  23223. "name": "home-filled",
  23224. "font_class": "home-filled",
  23225. "unicode": "e663",
  23226. "unicode_decimal": 58979
  23227. }, {
  23228. "icon_id": "24855896",
  23229. "name": "gear",
  23230. "font_class": "gear",
  23231. "unicode": "e664",
  23232. "unicode_decimal": 58980
  23233. }, {
  23234. "icon_id": "24855897",
  23235. "name": "smallcircle-filled",
  23236. "font_class": "smallcircle-filled",
  23237. "unicode": "e665",
  23238. "unicode_decimal": 58981
  23239. }, {
  23240. "icon_id": "24855898",
  23241. "name": "map-filled",
  23242. "font_class": "map-filled",
  23243. "unicode": "e666",
  23244. "unicode_decimal": 58982
  23245. }, {
  23246. "icon_id": "24855899",
  23247. "name": "map",
  23248. "font_class": "map",
  23249. "unicode": "e667",
  23250. "unicode_decimal": 58983
  23251. }, {
  23252. "icon_id": "24855825",
  23253. "name": "refresh-filled",
  23254. "font_class": "refresh-filled",
  23255. "unicode": "e656",
  23256. "unicode_decimal": 58966
  23257. }, {
  23258. "icon_id": "24855826",
  23259. "name": "refresh",
  23260. "font_class": "refresh",
  23261. "unicode": "e657",
  23262. "unicode_decimal": 58967
  23263. }, {
  23264. "icon_id": "24855808",
  23265. "name": "cloud-upload",
  23266. "font_class": "cloud-upload",
  23267. "unicode": "e645",
  23268. "unicode_decimal": 58949
  23269. }, {
  23270. "icon_id": "24855809",
  23271. "name": "cloud-download-filled",
  23272. "font_class": "cloud-download-filled",
  23273. "unicode": "e646",
  23274. "unicode_decimal": 58950
  23275. }, {
  23276. "icon_id": "24855810",
  23277. "name": "cloud-download",
  23278. "font_class": "cloud-download",
  23279. "unicode": "e647",
  23280. "unicode_decimal": 58951
  23281. }, {
  23282. "icon_id": "24855811",
  23283. "name": "cloud-upload-filled",
  23284. "font_class": "cloud-upload-filled",
  23285. "unicode": "e648",
  23286. "unicode_decimal": 58952
  23287. }, {
  23288. "icon_id": "24855813",
  23289. "name": "redo",
  23290. "font_class": "redo",
  23291. "unicode": "e64a",
  23292. "unicode_decimal": 58954
  23293. }, {
  23294. "icon_id": "24855814",
  23295. "name": "images-filled",
  23296. "font_class": "images-filled",
  23297. "unicode": "e64b",
  23298. "unicode_decimal": 58955
  23299. }, {
  23300. "icon_id": "24855815",
  23301. "name": "undo-filled",
  23302. "font_class": "undo-filled",
  23303. "unicode": "e64c",
  23304. "unicode_decimal": 58956
  23305. }, {
  23306. "icon_id": "24855816",
  23307. "name": "more",
  23308. "font_class": "more",
  23309. "unicode": "e64d",
  23310. "unicode_decimal": 58957
  23311. }, {
  23312. "icon_id": "24855817",
  23313. "name": "more-filled",
  23314. "font_class": "more-filled",
  23315. "unicode": "e64e",
  23316. "unicode_decimal": 58958
  23317. }, {
  23318. "icon_id": "24855818",
  23319. "name": "undo",
  23320. "font_class": "undo",
  23321. "unicode": "e64f",
  23322. "unicode_decimal": 58959
  23323. }, {
  23324. "icon_id": "24855819",
  23325. "name": "images",
  23326. "font_class": "images",
  23327. "unicode": "e650",
  23328. "unicode_decimal": 58960
  23329. }, {
  23330. "icon_id": "24855821",
  23331. "name": "paperclip",
  23332. "font_class": "paperclip",
  23333. "unicode": "e652",
  23334. "unicode_decimal": 58962
  23335. }, {
  23336. "icon_id": "24855822",
  23337. "name": "settings",
  23338. "font_class": "settings",
  23339. "unicode": "e653",
  23340. "unicode_decimal": 58963
  23341. }, {
  23342. "icon_id": "24855823",
  23343. "name": "search",
  23344. "font_class": "search",
  23345. "unicode": "e654",
  23346. "unicode_decimal": 58964
  23347. }, {
  23348. "icon_id": "24855824",
  23349. "name": "redo-filled",
  23350. "font_class": "redo-filled",
  23351. "unicode": "e655",
  23352. "unicode_decimal": 58965
  23353. }, {
  23354. "icon_id": "24841702",
  23355. "name": "list",
  23356. "font_class": "list",
  23357. "unicode": "e644",
  23358. "unicode_decimal": 58948
  23359. }, {
  23360. "icon_id": "24841489",
  23361. "name": "mail-open-filled",
  23362. "font_class": "mail-open-filled",
  23363. "unicode": "e63a",
  23364. "unicode_decimal": 58938
  23365. }, {
  23366. "icon_id": "24841491",
  23367. "name": "hand-thumbsdown-filled",
  23368. "font_class": "hand-down-filled",
  23369. "unicode": "e63c",
  23370. "unicode_decimal": 58940
  23371. }, {
  23372. "icon_id": "24841492",
  23373. "name": "hand-thumbsdown",
  23374. "font_class": "hand-down",
  23375. "unicode": "e63d",
  23376. "unicode_decimal": 58941
  23377. }, {
  23378. "icon_id": "24841493",
  23379. "name": "hand-thumbsup-filled",
  23380. "font_class": "hand-up-filled",
  23381. "unicode": "e63e",
  23382. "unicode_decimal": 58942
  23383. }, {
  23384. "icon_id": "24841494",
  23385. "name": "hand-thumbsup",
  23386. "font_class": "hand-up",
  23387. "unicode": "e63f",
  23388. "unicode_decimal": 58943
  23389. }, {
  23390. "icon_id": "24841496",
  23391. "name": "heart-filled",
  23392. "font_class": "heart-filled",
  23393. "unicode": "e641",
  23394. "unicode_decimal": 58945
  23395. }, {
  23396. "icon_id": "24841498",
  23397. "name": "mail-open",
  23398. "font_class": "mail-open",
  23399. "unicode": "e643",
  23400. "unicode_decimal": 58947
  23401. }, {
  23402. "icon_id": "24841488",
  23403. "name": "heart",
  23404. "font_class": "heart",
  23405. "unicode": "e639",
  23406. "unicode_decimal": 58937
  23407. }, {
  23408. "icon_id": "24839963",
  23409. "name": "loop",
  23410. "font_class": "loop",
  23411. "unicode": "e633",
  23412. "unicode_decimal": 58931
  23413. }, {
  23414. "icon_id": "24839866",
  23415. "name": "pulldown",
  23416. "font_class": "pulldown",
  23417. "unicode": "e632",
  23418. "unicode_decimal": 58930
  23419. }, {
  23420. "icon_id": "24813798",
  23421. "name": "scan",
  23422. "font_class": "scan",
  23423. "unicode": "e62a",
  23424. "unicode_decimal": 58922
  23425. }, {
  23426. "icon_id": "24813786",
  23427. "name": "bars",
  23428. "font_class": "bars",
  23429. "unicode": "e627",
  23430. "unicode_decimal": 58919
  23431. }, {
  23432. "icon_id": "24813788",
  23433. "name": "cart-filled",
  23434. "font_class": "cart-filled",
  23435. "unicode": "e629",
  23436. "unicode_decimal": 58921
  23437. }, {
  23438. "icon_id": "24813790",
  23439. "name": "checkbox",
  23440. "font_class": "checkbox",
  23441. "unicode": "e62b",
  23442. "unicode_decimal": 58923
  23443. }, {
  23444. "icon_id": "24813791",
  23445. "name": "checkbox-filled",
  23446. "font_class": "checkbox-filled",
  23447. "unicode": "e62c",
  23448. "unicode_decimal": 58924
  23449. }, {
  23450. "icon_id": "24813794",
  23451. "name": "shop",
  23452. "font_class": "shop",
  23453. "unicode": "e62f",
  23454. "unicode_decimal": 58927
  23455. }, {
  23456. "icon_id": "24813795",
  23457. "name": "headphones",
  23458. "font_class": "headphones",
  23459. "unicode": "e630",
  23460. "unicode_decimal": 58928
  23461. }, {
  23462. "icon_id": "24813796",
  23463. "name": "cart",
  23464. "font_class": "cart",
  23465. "unicode": "e631",
  23466. "unicode_decimal": 58929
  23467. }]
  23468. };
  23469. exports.default = _default;
  23470. /***/ }),
  23471. /***/ 645:
  23472. /*!********************************************************************************!*\
  23473. !*** D:/AAA_Company/红沙湾管理端/uni_modules/lys-date/components/lys-date/format.js ***!
  23474. \********************************************************************************/
  23475. /*! no static exports found */
  23476. /***/ (function(module, exports, __webpack_require__) {
  23477. "use strict";
  23478. Object.defineProperty(exports, "__esModule", {
  23479. value: true
  23480. });
  23481. exports.dateFormat = void 0;
  23482. /**
  23483. * js日期格式化,timestamp支持10位或13位的时间戳,或是时间字符串
  23484. * @param {string} format - 传进来的字符串,Y-m-d H:i:s 每个字母所代表的意思详见代码
  23485. * @param {int string} timestamp - 要格式化的时间 默认为当前时间 可以是日期形式的字符串,可以是10位或13位的时间戳
  23486. * @return {string} 格式化的时间字符串
  23487. *
  23488. * dateFormat(Y-m-d H:i:s )
  23489. */
  23490. var dateFormat = function dateFormat(format, timestamp) {
  23491. if (timestamp == "" || timestamp == null || format == "") timestamp = new Date().getTime();
  23492. //如果传进来的是 日期的字符串形式,变回时间戳
  23493. if (typeof timestamp == "string" && timestamp.indexOf("-") != -1) {
  23494. //兼容ios
  23495. var timestamp = timestamp.replace("T", " ");
  23496. // if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
  23497. timestamp = timestamp.replace(/\-/g, "/");
  23498. // }
  23499. if (timestamp.indexOf("-") !== false || timestamp.indexOf("/") !== false) timestamp = new Date(timestamp).getTime();
  23500. }
  23501. //如果传进来的是10位的时间戳 变成13位的
  23502. if (timestamp.toString().length == 10) timestamp = timestamp * 1000;
  23503. //如果到这一步,依然不是13位的时间戳,说明数据有问题
  23504. timestamp = parseInt(timestamp);
  23505. if (timestamp.toString().length != 13) return "";
  23506. var a,
  23507. jsdate = new Date(timestamp);
  23508. var pad = function pad(n, c) {
  23509. if ((n = n + "").length < c) {
  23510. return new Array(++c - n.length).join("0") + n;
  23511. } else {
  23512. return n;
  23513. }
  23514. };
  23515. var txt_weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
  23516. var txt_weekdaysZH = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
  23517. var txt_ordin = {
  23518. 1: "st",
  23519. 2: "nd",
  23520. 3: "rd",
  23521. 21: "st",
  23522. 22: "nd",
  23523. 23: "rd",
  23524. 31: "st"
  23525. };
  23526. var txt_months = ["", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  23527. var f = {
  23528. // Day
  23529. d: function d() {
  23530. return pad(f.j(), 2);
  23531. },
  23532. //2位天, 02
  23533. D: function D() {
  23534. return f.l().substr(0, 3);
  23535. },
  23536. //星期单词的前三位
  23537. j: function j() {
  23538. return jsdate.getDate();
  23539. },
  23540. //天 2
  23541. l: function l() {
  23542. return txt_weekdays[f.w()];
  23543. },
  23544. //星期英文
  23545. Z: function Z() {
  23546. return txt_weekdaysZH[f.w()];
  23547. },
  23548. //星期中文
  23549. N: function N() {
  23550. return f.w() + 1;
  23551. },
  23552. //星期的某一天的数字 星期日为1
  23553. S: function S() {
  23554. return txt_ordin[f.j()] ? txt_ordin[f.j()] : 'th';
  23555. },
  23556. w: function w() {
  23557. return jsdate.getDay();
  23558. },
  23559. //星期的某一天的数字 星期日为0
  23560. z: function z() {
  23561. return (jsdate - new Date(jsdate.getFullYear() + "/1/1")) / 864e5 >> 0;
  23562. },
  23563. //当前时间是一年中的第几天
  23564. // Month
  23565. F: function F() {
  23566. return txt_months[f.n()];
  23567. },
  23568. //月份英文
  23569. m: function m() {
  23570. return pad(f.n(), 2);
  23571. },
  23572. //2位月 02
  23573. M: function M() {
  23574. return f.F().substr(0, 3);
  23575. },
  23576. //月份英文前三个字母
  23577. n: function n() {
  23578. return jsdate.getMonth() + 1;
  23579. },
  23580. //月 2
  23581. t: function t() {
  23582. //当前月总共有多少天
  23583. var n;
  23584. if ((n = jsdate.getMonth() + 1) == 2) {
  23585. return 28 + f.L();
  23586. } else {
  23587. if (n & 1 && n < 8 || !(n & 1) && n > 7) {
  23588. return 31;
  23589. } else {
  23590. return 30;
  23591. }
  23592. }
  23593. },
  23594. // Year
  23595. L: function L() {
  23596. var y = f.Y();
  23597. return !(y & 3) && (y % 1e2 || !(y % 4e2)) ? 1 : 0;
  23598. },
  23599. //年
  23600. Y: function Y() {
  23601. return jsdate.getFullYear();
  23602. },
  23603. y: function y() {
  23604. return (jsdate.getFullYear() + "").slice(2);
  23605. },
  23606. // Time
  23607. a: function a() {
  23608. return getHours(jsdate) > 11 ? "pm" : "am";
  23609. },
  23610. A: function A() {
  23611. return f.a().toUpperCase();
  23612. },
  23613. B: function B() {
  23614. // peter paul koch:
  23615. var off = (jsdate.getTimezoneOffset() + 60) * 60;
  23616. var theSeconds = getHours(jsdate) * 3600 + jsdate.getMinutes() * 60 + jsdate.getSeconds() + off;
  23617. var beat = Math.floor(theSeconds / 86.4);
  23618. if (beat > 1000) beat -= 1000;
  23619. if (beat < 0) beat += 1000;
  23620. if (String(beat).length == 1) beat = "00" + beat;
  23621. if (String(beat).length == 2) beat = "0" + beat;
  23622. return beat;
  23623. },
  23624. g: function g() {
  23625. return getHours(jsdate) % 12 || 12;
  23626. },
  23627. G: function G() {
  23628. return getHours(jsdate);
  23629. },
  23630. h: function h() {
  23631. return pad(f.g(), 2);
  23632. },
  23633. H: function H() {
  23634. return pad(getHours(jsdate), 2);
  23635. },
  23636. i: function i() {
  23637. return pad(jsdate.getMinutes(), 2);
  23638. },
  23639. s: function s() {
  23640. return pad(jsdate.getSeconds(), 2);
  23641. },
  23642. //u not supported yet
  23643. // Timezone
  23644. //e not supported yet
  23645. //I not supported yet
  23646. O: function O() {
  23647. var t = pad(Math.abs(jsdate.getTimezoneOffset() / 60 * 100), 4);
  23648. if (jsdate.getTimezoneOffset() > 0) t = "-" + t;else t = "+" + t;
  23649. return t;
  23650. },
  23651. P: function P() {
  23652. var O = f.O();
  23653. return O.substr(0, 3) + ":" + O.substr(3, 2);
  23654. },
  23655. //T not supported yet
  23656. //Z not supported yet
  23657. // Full Date/Time
  23658. c: function c() {
  23659. return f.Y() + "-" + f.m() + "-" + f.d() + "T" + f.h() + ":" + f.i() + ":" + f.s() + f.P();
  23660. },
  23661. //r not supported yet
  23662. U: function U() {
  23663. return Math.round(jsdate.getTime() / 1000);
  23664. }
  23665. };
  23666. //兼容ios
  23667. function getHours(dateObj) {
  23668. //因为上边已经将UTC的时间进行了转换,把T去了,所以这里用同样的方法即可
  23669. return dateObj.getHours();
  23670. if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
  23671. return dateObj.getUTCHours();
  23672. } else {
  23673. return dateObj.getHours();
  23674. }
  23675. }
  23676. var ret = "";
  23677. return format.replace(/[\\]?([a-zA-Z])/g, function (t, s) {
  23678. if (t != s) {
  23679. // escaped
  23680. ret = s;
  23681. } else if (f[s]) {
  23682. // a date function exists
  23683. ret = f[s]();
  23684. } else {
  23685. // nothing special
  23686. ret = s;
  23687. }
  23688. return ret;
  23689. });
  23690. };
  23691. exports.dateFormat = dateFormat;
  23692. /***/ }),
  23693. /***/ 646:
  23694. /*!*******************************************************************************************************************************************!*\
  23695. !*** D:/AAA_Company/红沙湾管理端/uni_modules/lys-date/components/lys-date/index.scss?vue&type=style&index=0&id=66d2d79b&lang=scss&scoped=true& ***!
  23696. \*******************************************************************************************************************************************/
  23697. /*! no static exports found */
  23698. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23699. "use strict";
  23700. __webpack_require__.r(__webpack_exports__);
  23701. /* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_index_scss_vue_type_style_index_0_id_66d2d79b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./index.scss?vue&type=style&index=0&id=66d2d79b&lang=scss&scoped=true& */ 647);
  23702. /* harmony import */ var _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_index_scss_vue_type_style_index_0_id_66d2d79b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_index_scss_vue_type_style_index_0_id_66d2d79b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
  23703. /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_index_scss_vue_type_style_index_0_id_66d2d79b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_index_scss_vue_type_style_index_0_id_66d2d79b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
  23704. /* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_index_scss_vue_type_style_index_0_id_66d2d79b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
  23705. /***/ }),
  23706. /***/ 647:
  23707. /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  23708. !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!D:/AAA_Company/红沙湾管理端/uni_modules/lys-date/components/lys-date/index.scss?vue&type=style&index=0&id=66d2d79b&lang=scss&scoped=true& ***!
  23709. \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
  23710. /*! no static exports found */
  23711. /***/ (function(module, exports, __webpack_require__) {
  23712. // extracted by mini-css-extract-plugin
  23713. if(false) { var cssReload; }
  23714. /***/ }),
  23715. /***/ 670:
  23716. /*!********************************************************************!*\
  23717. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/popup/index.js ***!
  23718. \********************************************************************/
  23719. /*! no static exports found */
  23720. /***/ (function(module, exports, __webpack_require__) {
  23721. "use strict";
  23722. var _component = __webpack_require__(/*! ../common/component */ 671);
  23723. var _transition = __webpack_require__(/*! ../mixins/transition */ 673);
  23724. (0, _component.VantComponent)({
  23725. classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class', 'close-icon-class'],
  23726. mixins: [(0, _transition.transition)(false)],
  23727. props: {
  23728. round: Boolean,
  23729. closeable: Boolean,
  23730. customStyle: String,
  23731. overlayStyle: String,
  23732. transition: {
  23733. type: String,
  23734. observer: 'observeClass'
  23735. },
  23736. zIndex: {
  23737. type: Number,
  23738. value: 100
  23739. },
  23740. overlay: {
  23741. type: Boolean,
  23742. value: true
  23743. },
  23744. closeIcon: {
  23745. type: String,
  23746. value: 'cross'
  23747. },
  23748. closeIconPosition: {
  23749. type: String,
  23750. value: 'top-right'
  23751. },
  23752. closeOnClickOverlay: {
  23753. type: Boolean,
  23754. value: true
  23755. },
  23756. position: {
  23757. type: String,
  23758. value: 'center',
  23759. observer: 'observeClass'
  23760. },
  23761. safeAreaInsetBottom: {
  23762. type: Boolean,
  23763. value: true
  23764. },
  23765. safeAreaInsetTop: {
  23766. type: Boolean,
  23767. value: false
  23768. },
  23769. safeAreaTabBar: {
  23770. type: Boolean,
  23771. value: false
  23772. },
  23773. lockScroll: {
  23774. type: Boolean,
  23775. value: true
  23776. },
  23777. rootPortal: {
  23778. type: Boolean,
  23779. value: false
  23780. }
  23781. },
  23782. created: function created() {
  23783. this.observeClass();
  23784. },
  23785. methods: {
  23786. onClickCloseIcon: function onClickCloseIcon() {
  23787. this.$emit('close');
  23788. },
  23789. onClickOverlay: function onClickOverlay() {
  23790. this.$emit('click-overlay');
  23791. if (this.data.closeOnClickOverlay) {
  23792. this.$emit('close');
  23793. }
  23794. },
  23795. observeClass: function observeClass() {
  23796. var _this$data = this.data,
  23797. transition = _this$data.transition,
  23798. position = _this$data.position,
  23799. duration = _this$data.duration;
  23800. var updateData = {
  23801. name: transition || position
  23802. };
  23803. if (transition === 'none') {
  23804. updateData.duration = 0;
  23805. this.originDuration = duration;
  23806. } else if (this.originDuration != null) {
  23807. updateData.duration = this.originDuration;
  23808. }
  23809. this.setData(updateData);
  23810. }
  23811. }
  23812. });
  23813. /***/ }),
  23814. /***/ 671:
  23815. /*!*************************************************************************!*\
  23816. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/common/component.js ***!
  23817. \*************************************************************************/
  23818. /*! no static exports found */
  23819. /***/ (function(module, exports, __webpack_require__) {
  23820. "use strict";
  23821. Object.defineProperty(exports, "__esModule", {
  23822. value: true
  23823. });
  23824. exports.VantComponent = VantComponent;
  23825. var _basic = __webpack_require__(/*! ../mixins/basic */ 672);
  23826. function mapKeys(source, target, map) {
  23827. Object.keys(map).forEach(function (key) {
  23828. if (source[key]) {
  23829. target[map[key]] = source[key];
  23830. }
  23831. });
  23832. }
  23833. function VantComponent(vantOptions) {
  23834. var options = {};
  23835. mapKeys(vantOptions, options, {
  23836. data: 'data',
  23837. props: 'properties',
  23838. watch: 'observers',
  23839. mixins: 'behaviors',
  23840. methods: 'methods',
  23841. beforeCreate: 'created',
  23842. created: 'attached',
  23843. mounted: 'ready',
  23844. destroyed: 'detached',
  23845. classes: 'externalClasses'
  23846. });
  23847. // add default externalClasses
  23848. options.externalClasses = options.externalClasses || [];
  23849. options.externalClasses.push('custom-class');
  23850. // add default behaviors
  23851. options.behaviors = options.behaviors || [];
  23852. options.behaviors.push(_basic.basic);
  23853. // add relations
  23854. var relation = vantOptions.relation;
  23855. if (relation) {
  23856. options.relations = relation.relations;
  23857. options.behaviors.push(relation.mixin);
  23858. }
  23859. // map field to form-field behavior
  23860. if (vantOptions.field) {
  23861. options.behaviors.push('wx://form-field');
  23862. }
  23863. // add default options
  23864. options.options = {
  23865. multipleSlots: true,
  23866. addGlobalClass: true
  23867. };
  23868. Component(options);
  23869. }
  23870. /***/ }),
  23871. /***/ 672:
  23872. /*!*********************************************************************!*\
  23873. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/mixins/basic.js ***!
  23874. \*********************************************************************/
  23875. /*! no static exports found */
  23876. /***/ (function(module, exports, __webpack_require__) {
  23877. "use strict";
  23878. /* WEBPACK VAR INJECTION */(function(wx) {
  23879. Object.defineProperty(exports, "__esModule", {
  23880. value: true
  23881. });
  23882. exports.basic = void 0;
  23883. var basic = Behavior({
  23884. methods: {
  23885. $emit: function $emit(name, detail, options) {
  23886. this.triggerEvent(name, detail, options);
  23887. },
  23888. set: function set(data) {
  23889. this.setData(data);
  23890. return new Promise(function (resolve) {
  23891. return wx.nextTick(resolve);
  23892. });
  23893. }
  23894. }
  23895. });
  23896. exports.basic = basic;
  23897. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  23898. /***/ }),
  23899. /***/ 673:
  23900. /*!**************************************************************************!*\
  23901. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/mixins/transition.js ***!
  23902. \**************************************************************************/
  23903. /*! no static exports found */
  23904. /***/ (function(module, exports, __webpack_require__) {
  23905. "use strict";
  23906. Object.defineProperty(exports, "__esModule", {
  23907. value: true
  23908. });
  23909. exports.transition = transition;
  23910. var _utils = __webpack_require__(/*! ../common/utils */ 674);
  23911. var _validator = __webpack_require__(/*! ../common/validator */ 263);
  23912. // @ts-nocheck
  23913. var getClassNames = function getClassNames(name) {
  23914. return {
  23915. enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
  23916. 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
  23917. leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
  23918. 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class")
  23919. };
  23920. };
  23921. function transition(showDefaultValue) {
  23922. return Behavior({
  23923. properties: {
  23924. customStyle: String,
  23925. // @ts-ignore
  23926. show: {
  23927. type: Boolean,
  23928. value: showDefaultValue,
  23929. observer: 'observeShow'
  23930. },
  23931. // @ts-ignore
  23932. duration: {
  23933. type: null,
  23934. value: 300,
  23935. observer: 'observeDuration'
  23936. },
  23937. name: {
  23938. type: String,
  23939. value: 'fade'
  23940. }
  23941. },
  23942. data: {
  23943. type: '',
  23944. inited: false,
  23945. display: false
  23946. },
  23947. ready: function ready() {
  23948. if (this.data.show === true) {
  23949. this.observeShow(true, false);
  23950. }
  23951. },
  23952. methods: {
  23953. observeShow: function observeShow(value, old) {
  23954. if (value === old) {
  23955. return;
  23956. }
  23957. value ? this.enter() : this.leave();
  23958. },
  23959. enter: function enter() {
  23960. var _this = this;
  23961. var _this$data = this.data,
  23962. duration = _this$data.duration,
  23963. name = _this$data.name;
  23964. var classNames = getClassNames(name);
  23965. var currentDuration = (0, _validator.isObj)(duration) ? duration.enter : duration;
  23966. if (this.status === 'enter') {
  23967. return;
  23968. }
  23969. this.status = 'enter';
  23970. this.$emit('before-enter');
  23971. (0, _utils.requestAnimationFrame)(function () {
  23972. if (_this.status !== 'enter') {
  23973. return;
  23974. }
  23975. _this.$emit('enter');
  23976. _this.setData({
  23977. inited: true,
  23978. display: true,
  23979. classes: classNames.enter,
  23980. currentDuration: currentDuration
  23981. });
  23982. (0, _utils.requestAnimationFrame)(function () {
  23983. if (_this.status !== 'enter') {
  23984. return;
  23985. }
  23986. _this.transitionEnded = false;
  23987. _this.setData({
  23988. classes: classNames['enter-to']
  23989. });
  23990. });
  23991. });
  23992. },
  23993. leave: function leave() {
  23994. var _this2 = this;
  23995. if (!this.data.display) {
  23996. return;
  23997. }
  23998. var _this$data2 = this.data,
  23999. duration = _this$data2.duration,
  24000. name = _this$data2.name;
  24001. var classNames = getClassNames(name);
  24002. var currentDuration = (0, _validator.isObj)(duration) ? duration.leave : duration;
  24003. this.status = 'leave';
  24004. this.$emit('before-leave');
  24005. (0, _utils.requestAnimationFrame)(function () {
  24006. if (_this2.status !== 'leave') {
  24007. return;
  24008. }
  24009. _this2.$emit('leave');
  24010. _this2.setData({
  24011. classes: classNames.leave,
  24012. currentDuration: currentDuration
  24013. });
  24014. (0, _utils.requestAnimationFrame)(function () {
  24015. if (_this2.status !== 'leave') {
  24016. return;
  24017. }
  24018. _this2.transitionEnded = false;
  24019. setTimeout(function () {
  24020. return _this2.onTransitionEnd();
  24021. }, currentDuration);
  24022. _this2.setData({
  24023. classes: classNames['leave-to']
  24024. });
  24025. });
  24026. });
  24027. },
  24028. onTransitionEnd: function onTransitionEnd() {
  24029. if (this.transitionEnded) {
  24030. return;
  24031. }
  24032. this.transitionEnded = true;
  24033. this.$emit("after-".concat(this.status));
  24034. var _this$data3 = this.data,
  24035. show = _this$data3.show,
  24036. display = _this$data3.display;
  24037. if (!show && display) {
  24038. this.setData({
  24039. display: false
  24040. });
  24041. }
  24042. }
  24043. }
  24044. });
  24045. }
  24046. /***/ }),
  24047. /***/ 674:
  24048. /*!*********************************************************************!*\
  24049. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/common/utils.js ***!
  24050. \*********************************************************************/
  24051. /*! no static exports found */
  24052. /***/ (function(module, exports, __webpack_require__) {
  24053. "use strict";
  24054. /* WEBPACK VAR INJECTION */(function(wx) {
  24055. Object.defineProperty(exports, "__esModule", {
  24056. value: true
  24057. });
  24058. exports.addUnit = addUnit;
  24059. exports.getAllRect = getAllRect;
  24060. exports.getCurrentPage = getCurrentPage;
  24061. exports.getRect = getRect;
  24062. Object.defineProperty(exports, "getSystemInfoSync", {
  24063. enumerable: true,
  24064. get: function get() {
  24065. return _version.getSystemInfoSync;
  24066. }
  24067. });
  24068. exports.groupSetData = groupSetData;
  24069. Object.defineProperty(exports, "isDef", {
  24070. enumerable: true,
  24071. get: function get() {
  24072. return _validator.isDef;
  24073. }
  24074. });
  24075. exports.nextTick = nextTick;
  24076. exports.pickExclude = pickExclude;
  24077. exports.range = range;
  24078. exports.requestAnimationFrame = requestAnimationFrame;
  24079. exports.toPromise = toPromise;
  24080. var _validator = __webpack_require__(/*! ./validator */ 263);
  24081. var _version = __webpack_require__(/*! ./version */ 675);
  24082. function range(num, min, max) {
  24083. return Math.min(Math.max(num, min), max);
  24084. }
  24085. function nextTick(cb) {
  24086. if ((0, _version.canIUseNextTick)()) {
  24087. wx.nextTick(cb);
  24088. } else {
  24089. setTimeout(function () {
  24090. cb();
  24091. }, 1000 / 30);
  24092. }
  24093. }
  24094. function addUnit(value) {
  24095. if (!(0, _validator.isDef)(value)) {
  24096. return undefined;
  24097. }
  24098. value = String(value);
  24099. return (0, _validator.isNumber)(value) ? "".concat(value, "px") : value;
  24100. }
  24101. function requestAnimationFrame(cb) {
  24102. return setTimeout(function () {
  24103. cb();
  24104. }, 1000 / 30);
  24105. }
  24106. function pickExclude(obj, keys) {
  24107. if (!(0, _validator.isPlainObject)(obj)) {
  24108. return {};
  24109. }
  24110. return Object.keys(obj).reduce(function (prev, key) {
  24111. if (!keys.includes(key)) {
  24112. prev[key] = obj[key];
  24113. }
  24114. return prev;
  24115. }, {});
  24116. }
  24117. function getRect(context, selector) {
  24118. return new Promise(function (resolve) {
  24119. wx.createSelectorQuery().in(context).select(selector).boundingClientRect().exec(function () {
  24120. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  24121. return resolve(rect[0]);
  24122. });
  24123. });
  24124. }
  24125. function getAllRect(context, selector) {
  24126. return new Promise(function (resolve) {
  24127. wx.createSelectorQuery().in(context).selectAll(selector).boundingClientRect().exec(function () {
  24128. var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  24129. return resolve(rect[0]);
  24130. });
  24131. });
  24132. }
  24133. function groupSetData(context, cb) {
  24134. if ((0, _version.canIUseGroupSetData)()) {
  24135. context.groupSetData(cb);
  24136. } else {
  24137. cb();
  24138. }
  24139. }
  24140. function toPromise(promiseLike) {
  24141. if ((0, _validator.isPromise)(promiseLike)) {
  24142. return promiseLike;
  24143. }
  24144. return Promise.resolve(promiseLike);
  24145. }
  24146. function getCurrentPage() {
  24147. var pages = getCurrentPages();
  24148. return pages[pages.length - 1];
  24149. }
  24150. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  24151. /***/ }),
  24152. /***/ 675:
  24153. /*!***********************************************************************!*\
  24154. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/common/version.js ***!
  24155. \***********************************************************************/
  24156. /*! no static exports found */
  24157. /***/ (function(module, exports, __webpack_require__) {
  24158. "use strict";
  24159. /* WEBPACK VAR INJECTION */(function(wx) {
  24160. Object.defineProperty(exports, "__esModule", {
  24161. value: true
  24162. });
  24163. exports.canIUseAnimate = canIUseAnimate;
  24164. exports.canIUseCanvas2d = canIUseCanvas2d;
  24165. exports.canIUseFormFieldButton = canIUseFormFieldButton;
  24166. exports.canIUseGetUserProfile = canIUseGetUserProfile;
  24167. exports.canIUseGroupSetData = canIUseGroupSetData;
  24168. exports.canIUseModel = canIUseModel;
  24169. exports.canIUseNextTick = canIUseNextTick;
  24170. exports.getSystemInfoSync = getSystemInfoSync;
  24171. var systemInfo;
  24172. function getSystemInfoSync() {
  24173. if (systemInfo == null) {
  24174. systemInfo = wx.getSystemInfoSync();
  24175. }
  24176. return systemInfo;
  24177. }
  24178. function compareVersion(v1, v2) {
  24179. v1 = v1.split('.');
  24180. v2 = v2.split('.');
  24181. var len = Math.max(v1.length, v2.length);
  24182. while (v1.length < len) {
  24183. v1.push('0');
  24184. }
  24185. while (v2.length < len) {
  24186. v2.push('0');
  24187. }
  24188. for (var i = 0; i < len; i++) {
  24189. var num1 = parseInt(v1[i], 10);
  24190. var num2 = parseInt(v2[i], 10);
  24191. if (num1 > num2) {
  24192. return 1;
  24193. }
  24194. if (num1 < num2) {
  24195. return -1;
  24196. }
  24197. }
  24198. return 0;
  24199. }
  24200. function gte(version) {
  24201. var system = getSystemInfoSync();
  24202. return compareVersion(system.SDKVersion, version) >= 0;
  24203. }
  24204. function canIUseModel() {
  24205. return gte('2.9.3');
  24206. }
  24207. function canIUseFormFieldButton() {
  24208. return gte('2.10.3');
  24209. }
  24210. function canIUseAnimate() {
  24211. return gte('2.9.0');
  24212. }
  24213. function canIUseGroupSetData() {
  24214. return gte('2.4.0');
  24215. }
  24216. function canIUseNextTick() {
  24217. try {
  24218. return wx.canIUse('nextTick');
  24219. } catch (e) {
  24220. return gte('2.7.1');
  24221. }
  24222. }
  24223. function canIUseCanvas2d() {
  24224. return gte('2.9.0');
  24225. }
  24226. function canIUseGetUserProfile() {
  24227. return !!wx.getUserProfile;
  24228. }
  24229. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  24230. /***/ }),
  24231. /***/ 676:
  24232. /*!*******************************************************************!*\
  24233. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/rate/index.js ***!
  24234. \*******************************************************************/
  24235. /*! no static exports found */
  24236. /***/ (function(module, exports, __webpack_require__) {
  24237. "use strict";
  24238. /* WEBPACK VAR INJECTION */(function(wx) {
  24239. var _utils = __webpack_require__(/*! ../common/utils */ 674);
  24240. var _component = __webpack_require__(/*! ../common/component */ 671);
  24241. var _version = __webpack_require__(/*! ../common/version */ 675);
  24242. (0, _component.VantComponent)({
  24243. field: true,
  24244. classes: ['icon-class'],
  24245. props: {
  24246. value: {
  24247. type: Number,
  24248. observer: function observer(value) {
  24249. if (value !== this.data.innerValue) {
  24250. this.setData({
  24251. innerValue: value
  24252. });
  24253. }
  24254. }
  24255. },
  24256. readonly: Boolean,
  24257. disabled: Boolean,
  24258. allowHalf: Boolean,
  24259. size: null,
  24260. icon: {
  24261. type: String,
  24262. value: 'star'
  24263. },
  24264. voidIcon: {
  24265. type: String,
  24266. value: 'star-o'
  24267. },
  24268. color: String,
  24269. voidColor: String,
  24270. disabledColor: String,
  24271. count: {
  24272. type: Number,
  24273. value: 5,
  24274. observer: function observer(value) {
  24275. this.setData({
  24276. innerCountArray: Array.from({
  24277. length: value
  24278. })
  24279. });
  24280. }
  24281. },
  24282. gutter: null,
  24283. touchable: {
  24284. type: Boolean,
  24285. value: true
  24286. }
  24287. },
  24288. data: {
  24289. innerValue: 0,
  24290. innerCountArray: Array.from({
  24291. length: 5
  24292. })
  24293. },
  24294. methods: {
  24295. onSelect: function onSelect(event) {
  24296. var _this = this;
  24297. var data = this.data;
  24298. var score = event.currentTarget.dataset.score;
  24299. if (!data.disabled && !data.readonly) {
  24300. this.setData({
  24301. innerValue: score + 1
  24302. });
  24303. if ((0, _version.canIUseModel)()) {
  24304. this.setData({
  24305. value: score + 1
  24306. });
  24307. }
  24308. wx.nextTick(function () {
  24309. _this.$emit('input', score + 1);
  24310. _this.$emit('change', score + 1);
  24311. });
  24312. }
  24313. },
  24314. onTouchMove: function onTouchMove(event) {
  24315. var _this2 = this;
  24316. var touchable = this.data.touchable;
  24317. if (!touchable) return;
  24318. var clientX = event.touches[0].clientX;
  24319. (0, _utils.getAllRect)(this, '.van-rate__icon').then(function (list) {
  24320. var target = list.sort(function (cur, next) {
  24321. return cur.dataset.score - next.dataset.score;
  24322. }).find(function (item) {
  24323. return clientX >= item.left && clientX <= item.right;
  24324. });
  24325. if (target != null) {
  24326. _this2.onSelect(Object.assign(Object.assign({}, event), {
  24327. currentTarget: target
  24328. }));
  24329. }
  24330. });
  24331. }
  24332. }
  24333. });
  24334. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  24335. /***/ }),
  24336. /***/ 677:
  24337. /*!********************************************************************!*\
  24338. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/radio/index.js ***!
  24339. \********************************************************************/
  24340. /*! no static exports found */
  24341. /***/ (function(module, exports, __webpack_require__) {
  24342. "use strict";
  24343. var _version = __webpack_require__(/*! ../common/version */ 675);
  24344. var _component = __webpack_require__(/*! ../common/component */ 671);
  24345. var _relation = __webpack_require__(/*! ../common/relation */ 678);
  24346. (0, _component.VantComponent)({
  24347. field: true,
  24348. relation: (0, _relation.useParent)('radio-group', function () {
  24349. this.updateFromParent();
  24350. }),
  24351. classes: ['icon-class', 'label-class'],
  24352. props: {
  24353. name: null,
  24354. value: null,
  24355. disabled: Boolean,
  24356. useIconSlot: Boolean,
  24357. checkedColor: String,
  24358. labelPosition: {
  24359. type: String,
  24360. value: 'right'
  24361. },
  24362. labelDisabled: Boolean,
  24363. shape: {
  24364. type: String,
  24365. value: 'round'
  24366. },
  24367. iconSize: {
  24368. type: null,
  24369. value: 20
  24370. }
  24371. },
  24372. data: {
  24373. direction: '',
  24374. parentDisabled: false
  24375. },
  24376. methods: {
  24377. updateFromParent: function updateFromParent() {
  24378. if (!this.parent) {
  24379. return;
  24380. }
  24381. var _this$parent$data = this.parent.data,
  24382. value = _this$parent$data.value,
  24383. parentDisabled = _this$parent$data.disabled,
  24384. direction = _this$parent$data.direction;
  24385. this.setData({
  24386. value: value,
  24387. direction: direction,
  24388. parentDisabled: parentDisabled
  24389. });
  24390. },
  24391. emitChange: function emitChange(value) {
  24392. var instance = this.parent || this;
  24393. instance.$emit('input', value);
  24394. instance.$emit('change', value);
  24395. if ((0, _version.canIUseModel)()) {
  24396. instance.setData({
  24397. value: value
  24398. });
  24399. }
  24400. },
  24401. onChange: function onChange() {
  24402. if (!this.data.disabled && !this.data.parentDisabled) {
  24403. this.emitChange(this.data.name);
  24404. }
  24405. },
  24406. onClickLabel: function onClickLabel() {
  24407. var _this$data = this.data,
  24408. disabled = _this$data.disabled,
  24409. parentDisabled = _this$data.parentDisabled,
  24410. labelDisabled = _this$data.labelDisabled,
  24411. name = _this$data.name;
  24412. if (!(disabled || parentDisabled) && !labelDisabled) {
  24413. this.emitChange(name);
  24414. }
  24415. }
  24416. }
  24417. });
  24418. /***/ }),
  24419. /***/ 678:
  24420. /*!************************************************************************!*\
  24421. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/common/relation.js ***!
  24422. \************************************************************************/
  24423. /*! no static exports found */
  24424. /***/ (function(module, exports, __webpack_require__) {
  24425. "use strict";
  24426. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24427. Object.defineProperty(exports, "__esModule", {
  24428. value: true
  24429. });
  24430. exports.useChildren = useChildren;
  24431. exports.useParent = useParent;
  24432. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  24433. function useParent(name, onEffect) {
  24434. var path = "../".concat(name, "/index");
  24435. return {
  24436. relations: (0, _defineProperty2.default)({}, path, {
  24437. type: 'ancestor',
  24438. linked: function linked() {
  24439. onEffect && onEffect.call(this);
  24440. },
  24441. linkChanged: function linkChanged() {
  24442. onEffect && onEffect.call(this);
  24443. },
  24444. unlinked: function unlinked() {
  24445. onEffect && onEffect.call(this);
  24446. }
  24447. }),
  24448. mixin: Behavior({
  24449. created: function created() {
  24450. var _this = this;
  24451. Object.defineProperty(this, 'parent', {
  24452. get: function get() {
  24453. return _this.getRelationNodes(path)[0];
  24454. }
  24455. });
  24456. Object.defineProperty(this, 'index', {
  24457. // @ts-ignore
  24458. get: function get() {
  24459. var _a, _b;
  24460. return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this);
  24461. }
  24462. });
  24463. }
  24464. })
  24465. };
  24466. }
  24467. function useChildren(name, onEffect) {
  24468. var path = "../".concat(name, "/index");
  24469. return {
  24470. relations: (0, _defineProperty2.default)({}, path, {
  24471. type: 'descendant',
  24472. linked: function linked(target) {
  24473. onEffect && onEffect.call(this, target);
  24474. },
  24475. linkChanged: function linkChanged(target) {
  24476. onEffect && onEffect.call(this, target);
  24477. },
  24478. unlinked: function unlinked(target) {
  24479. onEffect && onEffect.call(this, target);
  24480. }
  24481. }),
  24482. mixin: Behavior({
  24483. created: function created() {
  24484. var _this2 = this;
  24485. Object.defineProperty(this, 'children', {
  24486. get: function get() {
  24487. return _this2.getRelationNodes(path) || [];
  24488. }
  24489. });
  24490. }
  24491. })
  24492. };
  24493. }
  24494. /***/ }),
  24495. /***/ 679:
  24496. /*!**************************************************************************!*\
  24497. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/radio-group/index.js ***!
  24498. \**************************************************************************/
  24499. /*! no static exports found */
  24500. /***/ (function(module, exports, __webpack_require__) {
  24501. "use strict";
  24502. var _component = __webpack_require__(/*! ../common/component */ 671);
  24503. var _relation = __webpack_require__(/*! ../common/relation */ 678);
  24504. (0, _component.VantComponent)({
  24505. field: true,
  24506. relation: (0, _relation.useChildren)('radio'),
  24507. props: {
  24508. value: {
  24509. type: null,
  24510. observer: 'updateChildren'
  24511. },
  24512. direction: String,
  24513. disabled: {
  24514. type: Boolean,
  24515. observer: 'updateChildren'
  24516. }
  24517. },
  24518. methods: {
  24519. updateChildren: function updateChildren() {
  24520. this.children.forEach(function (child) {
  24521. return child.updateFromParent();
  24522. });
  24523. }
  24524. }
  24525. });
  24526. /***/ }),
  24527. /***/ 699:
  24528. /*!**********************************************************************************************************!*\
  24529. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js ***!
  24530. \**********************************************************************************************************/
  24531. /*! no static exports found */
  24532. /***/ (function(module, exports, __webpack_require__) {
  24533. "use strict";
  24534. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24535. Object.defineProperty(exports, "__esModule", {
  24536. value: true
  24537. });
  24538. exports.default = void 0;
  24539. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 700));
  24540. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 701));
  24541. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 702));
  24542. var _default = {
  24543. en: _en.default,
  24544. 'zh-Hans': _zhHans.default,
  24545. 'zh-Hant': _zhHant.default
  24546. };
  24547. exports.default = _default;
  24548. /***/ }),
  24549. /***/ 7:
  24550. /*!*********************************************************************!*\
  24551. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  24552. \*********************************************************************/
  24553. /*! no static exports found */
  24554. /***/ (function(module, exports) {
  24555. function _iterableToArrayLimit(r, l) {
  24556. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  24557. if (null != t) {
  24558. var e,
  24559. n,
  24560. i,
  24561. u,
  24562. a = [],
  24563. f = !0,
  24564. o = !1;
  24565. try {
  24566. if (i = (t = t.call(r)).next, 0 === l) {
  24567. if (Object(t) !== t) return;
  24568. f = !1;
  24569. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  24570. ;
  24571. }
  24572. } catch (r) {
  24573. o = !0, n = r;
  24574. } finally {
  24575. try {
  24576. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  24577. } finally {
  24578. if (o) throw n;
  24579. }
  24580. }
  24581. return a;
  24582. }
  24583. }
  24584. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  24585. /***/ }),
  24586. /***/ 700:
  24587. /*!*********************************************************************************************************!*\
  24588. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json ***!
  24589. \*********************************************************************************************************/
  24590. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.SUN, uni-calender.confirm, default */
  24591. /***/ (function(module) {
  24592. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"select date\",\"uni-datetime-picker.selectTime\":\"select time\",\"uni-datetime-picker.selectDateTime\":\"select date and time\",\"uni-datetime-picker.startDate\":\"start date\",\"uni-datetime-picker.endDate\":\"end date\",\"uni-datetime-picker.startTime\":\"start time\",\"uni-datetime-picker.endTime\":\"end time\",\"uni-datetime-picker.ok\":\"ok\",\"uni-datetime-picker.clear\":\"clear\",\"uni-datetime-picker.cancel\":\"cancel\",\"uni-datetime-picker.year\":\"-\",\"uni-datetime-picker.month\":\"\",\"uni-calender.MON\":\"MON\",\"uni-calender.TUE\":\"TUE\",\"uni-calender.WED\":\"WED\",\"uni-calender.THU\":\"THU\",\"uni-calender.FRI\":\"FRI\",\"uni-calender.SAT\":\"SAT\",\"uni-calender.SUN\":\"SUN\",\"uni-calender.confirm\":\"confirm\"}");
  24593. /***/ }),
  24594. /***/ 701:
  24595. /*!**************************************************************************************************************!*\
  24596. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json ***!
  24597. \**************************************************************************************************************/
  24598. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  24599. /***/ (function(module) {
  24600. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"选择日期\",\"uni-datetime-picker.selectTime\":\"选择时间\",\"uni-datetime-picker.selectDateTime\":\"选择日期时间\",\"uni-datetime-picker.startDate\":\"开始日期\",\"uni-datetime-picker.endDate\":\"结束日期\",\"uni-datetime-picker.startTime\":\"开始时间\",\"uni-datetime-picker.endTime\":\"结束时间\",\"uni-datetime-picker.ok\":\"确定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"确认\"}");
  24601. /***/ }),
  24602. /***/ 702:
  24603. /*!**************************************************************************************************************!*\
  24604. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json ***!
  24605. \**************************************************************************************************************/
  24606. /*! exports provided: uni-datetime-picker.selectDate, uni-datetime-picker.selectTime, uni-datetime-picker.selectDateTime, uni-datetime-picker.startDate, uni-datetime-picker.endDate, uni-datetime-picker.startTime, uni-datetime-picker.endTime, uni-datetime-picker.ok, uni-datetime-picker.clear, uni-datetime-picker.cancel, uni-datetime-picker.year, uni-datetime-picker.month, uni-calender.SUN, uni-calender.MON, uni-calender.TUE, uni-calender.WED, uni-calender.THU, uni-calender.FRI, uni-calender.SAT, uni-calender.confirm, default */
  24607. /***/ (function(module) {
  24608. module.exports = JSON.parse("{\"uni-datetime-picker.selectDate\":\"選擇日期\",\"uni-datetime-picker.selectTime\":\"選擇時間\",\"uni-datetime-picker.selectDateTime\":\"選擇日期時間\",\"uni-datetime-picker.startDate\":\"開始日期\",\"uni-datetime-picker.endDate\":\"結束日期\",\"uni-datetime-picker.startTime\":\"開始时间\",\"uni-datetime-picker.endTime\":\"結束时间\",\"uni-datetime-picker.ok\":\"確定\",\"uni-datetime-picker.clear\":\"清除\",\"uni-datetime-picker.cancel\":\"取消\",\"uni-datetime-picker.year\":\"年\",\"uni-datetime-picker.month\":\"月\",\"uni-calender.SUN\":\"日\",\"uni-calender.MON\":\"一\",\"uni-calender.TUE\":\"二\",\"uni-calender.WED\":\"三\",\"uni-calender.THU\":\"四\",\"uni-calender.FRI\":\"五\",\"uni-calender.SAT\":\"六\",\"uni-calender.confirm\":\"確認\"}");
  24609. /***/ }),
  24610. /***/ 703:
  24611. /*!****************************************************************************************************!*\
  24612. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js ***!
  24613. \****************************************************************************************************/
  24614. /*! no static exports found */
  24615. /***/ (function(module, exports, __webpack_require__) {
  24616. "use strict";
  24617. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24618. Object.defineProperty(exports, "__esModule", {
  24619. value: true
  24620. });
  24621. exports.Calendar = void 0;
  24622. exports.addZero = addZero;
  24623. exports.checkDate = checkDate;
  24624. exports.dateCompare = dateCompare;
  24625. exports.fixIosDateFormat = fixIosDateFormat;
  24626. exports.getDate = getDate;
  24627. exports.getDateTime = getDateTime;
  24628. exports.getDefaultSecond = getDefaultSecond;
  24629. exports.getTime = getTime;
  24630. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  24631. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  24632. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  24633. var Calendar = /*#__PURE__*/function () {
  24634. function Calendar() {
  24635. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  24636. selected = _ref.selected,
  24637. startDate = _ref.startDate,
  24638. endDate = _ref.endDate,
  24639. range = _ref.range;
  24640. (0, _classCallCheck2.default)(this, Calendar);
  24641. // 当前日期
  24642. this.date = this.getDateObj(new Date()); // 当前初入日期
  24643. // 打点信息
  24644. this.selected = selected || [];
  24645. // 起始时间
  24646. this.startDate = startDate;
  24647. // 终止时间
  24648. this.endDate = endDate;
  24649. // 是否范围选择
  24650. this.range = range;
  24651. // 多选状态
  24652. this.cleanMultipleStatus();
  24653. // 每周日期
  24654. this.weeks = {};
  24655. this.lastHover = false;
  24656. }
  24657. /**
  24658. * 设置日期
  24659. * @param {Object} date
  24660. */
  24661. (0, _createClass2.default)(Calendar, [{
  24662. key: "setDate",
  24663. value: function setDate(date) {
  24664. var selectDate = this.getDateObj(date);
  24665. this.getWeeks(selectDate.fullDate);
  24666. }
  24667. /**
  24668. * 清理多选状态
  24669. */
  24670. }, {
  24671. key: "cleanMultipleStatus",
  24672. value: function cleanMultipleStatus() {
  24673. this.multipleStatus = {
  24674. before: '',
  24675. after: '',
  24676. data: []
  24677. };
  24678. }
  24679. }, {
  24680. key: "setStartDate",
  24681. value: function setStartDate(startDate) {
  24682. this.startDate = startDate;
  24683. }
  24684. }, {
  24685. key: "setEndDate",
  24686. value: function setEndDate(endDate) {
  24687. this.endDate = endDate;
  24688. }
  24689. }, {
  24690. key: "getPreMonthObj",
  24691. value: function getPreMonthObj(date) {
  24692. date = fixIosDateFormat(date);
  24693. date = new Date(date);
  24694. var oldMonth = date.getMonth();
  24695. date.setMonth(oldMonth - 1);
  24696. var newMonth = date.getMonth();
  24697. if (oldMonth !== 0 && newMonth - oldMonth === 0) {
  24698. date.setMonth(newMonth - 1);
  24699. }
  24700. return this.getDateObj(date);
  24701. }
  24702. }, {
  24703. key: "getNextMonthObj",
  24704. value: function getNextMonthObj(date) {
  24705. date = fixIosDateFormat(date);
  24706. date = new Date(date);
  24707. var oldMonth = date.getMonth();
  24708. date.setMonth(oldMonth + 1);
  24709. var newMonth = date.getMonth();
  24710. if (newMonth - oldMonth > 1) {
  24711. date.setMonth(newMonth - 1);
  24712. }
  24713. return this.getDateObj(date);
  24714. }
  24715. /**
  24716. * 获取指定格式Date对象
  24717. */
  24718. }, {
  24719. key: "getDateObj",
  24720. value: function getDateObj(date) {
  24721. date = fixIosDateFormat(date);
  24722. date = new Date(date);
  24723. return {
  24724. fullDate: getDate(date),
  24725. year: date.getFullYear(),
  24726. month: addZero(date.getMonth() + 1),
  24727. date: addZero(date.getDate()),
  24728. day: date.getDay()
  24729. };
  24730. }
  24731. /**
  24732. * 获取上一个月日期集合
  24733. */
  24734. }, {
  24735. key: "getPreMonthDays",
  24736. value: function getPreMonthDays(amount, dateObj) {
  24737. var result = [];
  24738. for (var i = amount - 1; i >= 0; i--) {
  24739. var month = dateObj.month - 1;
  24740. result.push({
  24741. date: new Date(dateObj.year, month, -i).getDate(),
  24742. month: month,
  24743. disable: true
  24744. });
  24745. }
  24746. return result;
  24747. }
  24748. /**
  24749. * 获取本月日期集合
  24750. */
  24751. }, {
  24752. key: "getCurrentMonthDays",
  24753. value: function getCurrentMonthDays(amount, dateObj) {
  24754. var _this = this;
  24755. var result = [];
  24756. var fullDate = this.date.fullDate;
  24757. var _loop = function _loop(i) {
  24758. var currentDate = "".concat(dateObj.year, "-").concat(dateObj.month, "-").concat(addZero(i));
  24759. var isToday = fullDate === currentDate;
  24760. // 获取打点信息
  24761. var info = _this.selected && _this.selected.find(function (item) {
  24762. if (_this.dateEqual(currentDate, item.date)) {
  24763. return item;
  24764. }
  24765. });
  24766. // 日期禁用
  24767. var disableBefore = true;
  24768. var disableAfter = true;
  24769. if (_this.startDate) {
  24770. disableBefore = dateCompare(_this.startDate, currentDate);
  24771. }
  24772. if (_this.endDate) {
  24773. disableAfter = dateCompare(currentDate, _this.endDate);
  24774. }
  24775. var multiples = _this.multipleStatus.data;
  24776. var multiplesStatus = -1;
  24777. if (_this.range && multiples) {
  24778. multiplesStatus = multiples.findIndex(function (item) {
  24779. return _this.dateEqual(item, currentDate);
  24780. });
  24781. }
  24782. var checked = multiplesStatus !== -1;
  24783. result.push({
  24784. fullDate: currentDate,
  24785. year: dateObj.year,
  24786. date: i,
  24787. multiple: _this.range ? checked : false,
  24788. beforeMultiple: _this.isLogicBefore(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  24789. afterMultiple: _this.isLogicAfter(currentDate, _this.multipleStatus.before, _this.multipleStatus.after),
  24790. month: dateObj.month,
  24791. disable: _this.startDate && !dateCompare(_this.startDate, currentDate) || _this.endDate && !dateCompare(currentDate, _this.endDate),
  24792. isToday: isToday,
  24793. userChecked: false,
  24794. extraInfo: info
  24795. });
  24796. };
  24797. for (var i = 1; i <= amount; i++) {
  24798. _loop(i);
  24799. }
  24800. return result;
  24801. }
  24802. /**
  24803. * 获取下一个月日期集合
  24804. */
  24805. }, {
  24806. key: "_getNextMonthDays",
  24807. value: function _getNextMonthDays(amount, dateObj) {
  24808. var result = [];
  24809. var month = dateObj.month + 1;
  24810. for (var i = 1; i <= amount; i++) {
  24811. result.push({
  24812. date: i,
  24813. month: month,
  24814. disable: true
  24815. });
  24816. }
  24817. return result;
  24818. }
  24819. /**
  24820. * 获取当前日期详情
  24821. * @param {Object} date
  24822. */
  24823. }, {
  24824. key: "getInfo",
  24825. value: function getInfo(date) {
  24826. var _this2 = this;
  24827. if (!date) {
  24828. date = new Date();
  24829. }
  24830. return this.calendar.find(function (item) {
  24831. return item.fullDate === _this2.getDateObj(date).fullDate;
  24832. });
  24833. }
  24834. /**
  24835. * 比较时间是否相等
  24836. */
  24837. }, {
  24838. key: "dateEqual",
  24839. value: function dateEqual(before, after) {
  24840. before = new Date(fixIosDateFormat(before));
  24841. after = new Date(fixIosDateFormat(after));
  24842. return before.valueOf() === after.valueOf();
  24843. }
  24844. /**
  24845. * 比较真实起始日期
  24846. */
  24847. }, {
  24848. key: "isLogicBefore",
  24849. value: function isLogicBefore(currentDate, before, after) {
  24850. var logicBefore = before;
  24851. if (before && after) {
  24852. logicBefore = dateCompare(before, after) ? before : after;
  24853. }
  24854. return this.dateEqual(logicBefore, currentDate);
  24855. }
  24856. }, {
  24857. key: "isLogicAfter",
  24858. value: function isLogicAfter(currentDate, before, after) {
  24859. var logicAfter = after;
  24860. if (before && after) {
  24861. logicAfter = dateCompare(before, after) ? after : before;
  24862. }
  24863. return this.dateEqual(logicAfter, currentDate);
  24864. }
  24865. /**
  24866. * 获取日期范围内所有日期
  24867. * @param {Object} begin
  24868. * @param {Object} end
  24869. */
  24870. }, {
  24871. key: "geDateAll",
  24872. value: function geDateAll(begin, end) {
  24873. var arr = [];
  24874. var ab = begin.split('-');
  24875. var ae = end.split('-');
  24876. var db = new Date();
  24877. db.setFullYear(ab[0], ab[1] - 1, ab[2]);
  24878. var de = new Date();
  24879. de.setFullYear(ae[0], ae[1] - 1, ae[2]);
  24880. var unixDb = db.getTime() - 24 * 60 * 60 * 1000;
  24881. var unixDe = de.getTime() - 24 * 60 * 60 * 1000;
  24882. for (var k = unixDb; k <= unixDe;) {
  24883. k = k + 24 * 60 * 60 * 1000;
  24884. arr.push(this.getDateObj(new Date(parseInt(k))).fullDate);
  24885. }
  24886. return arr;
  24887. }
  24888. /**
  24889. * 获取多选状态
  24890. */
  24891. }, {
  24892. key: "setMultiple",
  24893. value: function setMultiple(fullDate) {
  24894. if (!this.range) return;
  24895. var _this$multipleStatus = this.multipleStatus,
  24896. before = _this$multipleStatus.before,
  24897. after = _this$multipleStatus.after;
  24898. if (before && after) {
  24899. if (!this.lastHover) {
  24900. this.lastHover = true;
  24901. return;
  24902. }
  24903. this.multipleStatus.before = fullDate;
  24904. this.multipleStatus.after = '';
  24905. this.multipleStatus.data = [];
  24906. this.multipleStatus.fulldate = '';
  24907. this.lastHover = false;
  24908. } else {
  24909. if (!before) {
  24910. this.multipleStatus.before = fullDate;
  24911. this.lastHover = false;
  24912. } else {
  24913. this.multipleStatus.after = fullDate;
  24914. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  24915. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  24916. } else {
  24917. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  24918. }
  24919. this.lastHover = true;
  24920. }
  24921. }
  24922. this.getWeeks(fullDate);
  24923. }
  24924. /**
  24925. * 鼠标 hover 更新多选状态
  24926. */
  24927. }, {
  24928. key: "setHoverMultiple",
  24929. value: function setHoverMultiple(fullDate) {
  24930. if (!this.range || this.lastHover) return;
  24931. var before = this.multipleStatus.before;
  24932. if (!before) {
  24933. this.multipleStatus.before = fullDate;
  24934. } else {
  24935. this.multipleStatus.after = fullDate;
  24936. if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
  24937. this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
  24938. } else {
  24939. this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
  24940. }
  24941. }
  24942. this.getWeeks(fullDate);
  24943. }
  24944. /**
  24945. * 更新默认值多选状态
  24946. */
  24947. }, {
  24948. key: "setDefaultMultiple",
  24949. value: function setDefaultMultiple(before, after) {
  24950. this.multipleStatus.before = before;
  24951. this.multipleStatus.after = after;
  24952. if (before && after) {
  24953. if (dateCompare(before, after)) {
  24954. this.multipleStatus.data = this.geDateAll(before, after);
  24955. this.getWeeks(after);
  24956. } else {
  24957. this.multipleStatus.data = this.geDateAll(after, before);
  24958. this.getWeeks(before);
  24959. }
  24960. }
  24961. }
  24962. /**
  24963. * 获取每周数据
  24964. * @param {Object} dateData
  24965. */
  24966. }, {
  24967. key: "getWeeks",
  24968. value: function getWeeks(dateData) {
  24969. var _this$getDateObj = this.getDateObj(dateData),
  24970. year = _this$getDateObj.year,
  24971. month = _this$getDateObj.month;
  24972. var preMonthDayAmount = new Date(year, month - 1, 1).getDay();
  24973. var preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData));
  24974. var currentMonthDayAmount = new Date(year, month, 0).getDate();
  24975. var currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData));
  24976. var nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount;
  24977. var nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData));
  24978. var calendarDays = [].concat((0, _toConsumableArray2.default)(preMonthDays), (0, _toConsumableArray2.default)(currentMonthDays), (0, _toConsumableArray2.default)(nextMonthDays));
  24979. var weeks = new Array(6);
  24980. for (var i = 0; i < calendarDays.length; i++) {
  24981. var index = Math.floor(i / 7);
  24982. if (!weeks[index]) {
  24983. weeks[index] = new Array(7);
  24984. }
  24985. weeks[index][i % 7] = calendarDays[i];
  24986. }
  24987. this.calendar = calendarDays;
  24988. this.weeks = weeks;
  24989. }
  24990. }]);
  24991. return Calendar;
  24992. }();
  24993. exports.Calendar = Calendar;
  24994. function getDateTime(date, hideSecond) {
  24995. return "".concat(getDate(date), " ").concat(getTime(date, hideSecond));
  24996. }
  24997. function getDate(date) {
  24998. date = fixIosDateFormat(date);
  24999. date = new Date(date);
  25000. var year = date.getFullYear();
  25001. var month = date.getMonth() + 1;
  25002. var day = date.getDate();
  25003. return "".concat(year, "-").concat(addZero(month), "-").concat(addZero(day));
  25004. }
  25005. function getTime(date, hideSecond) {
  25006. date = fixIosDateFormat(date);
  25007. date = new Date(date);
  25008. var hour = date.getHours();
  25009. var minute = date.getMinutes();
  25010. var second = date.getSeconds();
  25011. return hideSecond ? "".concat(addZero(hour), ":").concat(addZero(minute)) : "".concat(addZero(hour), ":").concat(addZero(minute), ":").concat(addZero(second));
  25012. }
  25013. function addZero(num) {
  25014. if (num < 10) {
  25015. num = "0".concat(num);
  25016. }
  25017. return num;
  25018. }
  25019. function getDefaultSecond(hideSecond) {
  25020. return hideSecond ? '00:00' : '00:00:00';
  25021. }
  25022. function dateCompare(startDate, endDate) {
  25023. startDate = new Date(fixIosDateFormat(startDate));
  25024. endDate = new Date(fixIosDateFormat(endDate));
  25025. return startDate <= endDate;
  25026. }
  25027. function checkDate(date) {
  25028. var dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g;
  25029. return date.match(dateReg);
  25030. }
  25031. var dateTimeReg = /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9]:[0-5]?[0-9])?$/;
  25032. function fixIosDateFormat(value) {
  25033. if (typeof value === 'string' && dateTimeReg.test(value)) {
  25034. value = value.replace(/-/g, '/');
  25035. }
  25036. return value;
  25037. }
  25038. /***/ }),
  25039. /***/ 711:
  25040. /*!**************************************************************************************************************!*\
  25041. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js ***!
  25042. \**************************************************************************************************************/
  25043. /*! no static exports found */
  25044. /***/ (function(module, exports, __webpack_require__) {
  25045. "use strict";
  25046. /* WEBPACK VAR INJECTION */(function(uni, wx, uniCloud) {
  25047. Object.defineProperty(exports, "__esModule", {
  25048. value: true
  25049. });
  25050. exports.chooseAndUploadFile = chooseAndUploadFile;
  25051. exports.uploadCloudFiles = uploadCloudFiles;
  25052. var ERR_MSG_OK = 'chooseAndUploadFile:ok';
  25053. var ERR_MSG_FAIL = 'chooseAndUploadFile:fail';
  25054. function chooseImage(opts) {
  25055. var count = opts.count,
  25056. _opts$sizeType = opts.sizeType,
  25057. sizeType = _opts$sizeType === void 0 ? ['original', 'compressed'] : _opts$sizeType,
  25058. sourceType = opts.sourceType,
  25059. extension = opts.extension;
  25060. return new Promise(function (resolve, reject) {
  25061. uni.chooseImage({
  25062. count: count,
  25063. sizeType: sizeType,
  25064. sourceType: sourceType,
  25065. extension: extension,
  25066. success: function success(res) {
  25067. resolve(normalizeChooseAndUploadFileRes(res, 'image'));
  25068. },
  25069. fail: function fail(res) {
  25070. reject({
  25071. errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL)
  25072. });
  25073. }
  25074. });
  25075. });
  25076. }
  25077. function chooseVideo(opts) {
  25078. var camera = opts.camera,
  25079. compressed = opts.compressed,
  25080. maxDuration = opts.maxDuration,
  25081. sourceType = opts.sourceType,
  25082. extension = opts.extension;
  25083. return new Promise(function (resolve, reject) {
  25084. uni.chooseVideo({
  25085. camera: camera,
  25086. compressed: compressed,
  25087. maxDuration: maxDuration,
  25088. sourceType: sourceType,
  25089. extension: extension,
  25090. success: function success(res) {
  25091. var tempFilePath = res.tempFilePath,
  25092. duration = res.duration,
  25093. size = res.size,
  25094. height = res.height,
  25095. width = res.width;
  25096. resolve(normalizeChooseAndUploadFileRes({
  25097. errMsg: 'chooseVideo:ok',
  25098. tempFilePaths: [tempFilePath],
  25099. tempFiles: [{
  25100. name: res.tempFile && res.tempFile.name || '',
  25101. path: tempFilePath,
  25102. size: size,
  25103. type: res.tempFile && res.tempFile.type || '',
  25104. width: width,
  25105. height: height,
  25106. duration: duration,
  25107. fileType: 'video',
  25108. cloudPath: ''
  25109. }]
  25110. }, 'video'));
  25111. },
  25112. fail: function fail(res) {
  25113. reject({
  25114. errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL)
  25115. });
  25116. }
  25117. });
  25118. });
  25119. }
  25120. function chooseAll(opts) {
  25121. var count = opts.count,
  25122. extension = opts.extension;
  25123. return new Promise(function (resolve, reject) {
  25124. var chooseFile = uni.chooseFile;
  25125. if (typeof wx !== 'undefined' && typeof wx.chooseMessageFile === 'function') {
  25126. chooseFile = wx.chooseMessageFile;
  25127. }
  25128. if (typeof chooseFile !== 'function') {
  25129. return reject({
  25130. errMsg: ERR_MSG_FAIL + ' 请指定 type 类型,该平台仅支持选择 image 或 video。'
  25131. });
  25132. }
  25133. chooseFile({
  25134. type: 'all',
  25135. count: count,
  25136. extension: extension,
  25137. success: function success(res) {
  25138. resolve(normalizeChooseAndUploadFileRes(res));
  25139. },
  25140. fail: function fail(res) {
  25141. reject({
  25142. errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL)
  25143. });
  25144. }
  25145. });
  25146. });
  25147. }
  25148. function normalizeChooseAndUploadFileRes(res, fileType) {
  25149. res.tempFiles.forEach(function (item, index) {
  25150. if (!item.name) {
  25151. item.name = item.path.substring(item.path.lastIndexOf('/') + 1);
  25152. }
  25153. if (fileType) {
  25154. item.fileType = fileType;
  25155. }
  25156. item.cloudPath = Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.'));
  25157. });
  25158. if (!res.tempFilePaths) {
  25159. res.tempFilePaths = res.tempFiles.map(function (file) {
  25160. return file.path;
  25161. });
  25162. }
  25163. return res;
  25164. }
  25165. function uploadCloudFiles(files) {
  25166. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
  25167. var _onUploadProgress = arguments.length > 2 ? arguments[2] : undefined;
  25168. files = JSON.parse(JSON.stringify(files));
  25169. var len = files.length;
  25170. var count = 0;
  25171. var self = this;
  25172. return new Promise(function (resolve) {
  25173. while (count < max) {
  25174. next();
  25175. }
  25176. function next() {
  25177. var cur = count++;
  25178. if (cur >= len) {
  25179. !files.find(function (item) {
  25180. return !item.url && !item.errMsg;
  25181. }) && resolve(files);
  25182. return;
  25183. }
  25184. var fileItem = files[cur];
  25185. var index = self.files.findIndex(function (v) {
  25186. return v.uuid === fileItem.uuid;
  25187. });
  25188. fileItem.url = '';
  25189. delete fileItem.errMsg;
  25190. uniCloud.uploadFile({
  25191. filePath: fileItem.path,
  25192. cloudPath: fileItem.cloudPath,
  25193. fileType: fileItem.fileType,
  25194. onUploadProgress: function onUploadProgress(res) {
  25195. res.index = index;
  25196. _onUploadProgress && _onUploadProgress(res);
  25197. }
  25198. }).then(function (res) {
  25199. fileItem.url = res.fileID;
  25200. fileItem.index = index;
  25201. if (cur < len) {
  25202. next();
  25203. }
  25204. }).catch(function (res) {
  25205. fileItem.errMsg = res.errMsg || res.message;
  25206. fileItem.index = index;
  25207. if (cur < len) {
  25208. next();
  25209. }
  25210. });
  25211. }
  25212. });
  25213. }
  25214. function uploadFiles(choosePromise, _ref) {
  25215. var onChooseFile = _ref.onChooseFile,
  25216. onUploadProgress = _ref.onUploadProgress;
  25217. return choosePromise.then(function (res) {
  25218. if (onChooseFile) {
  25219. var customChooseRes = onChooseFile(res);
  25220. if (typeof customChooseRes !== 'undefined') {
  25221. return Promise.resolve(customChooseRes).then(function (chooseRes) {
  25222. return typeof chooseRes === 'undefined' ? res : chooseRes;
  25223. });
  25224. }
  25225. }
  25226. return res;
  25227. }).then(function (res) {
  25228. if (res === false) {
  25229. return {
  25230. errMsg: ERR_MSG_OK,
  25231. tempFilePaths: [],
  25232. tempFiles: []
  25233. };
  25234. }
  25235. return res;
  25236. });
  25237. }
  25238. function chooseAndUploadFile() {
  25239. var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  25240. type: 'all'
  25241. };
  25242. if (opts.type === 'image') {
  25243. return uploadFiles(chooseImage(opts), opts);
  25244. } else if (opts.type === 'video') {
  25245. return uploadFiles(chooseVideo(opts), opts);
  25246. }
  25247. return uploadFiles(chooseAll(opts), opts);
  25248. }
  25249. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js */ 28)["default"]))
  25250. /***/ }),
  25251. /***/ 712:
  25252. /*!*********************************************************************************************!*\
  25253. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-file-picker/components/uni-file-picker/utils.js ***!
  25254. \*********************************************************************************************/
  25255. /*! no static exports found */
  25256. /***/ (function(module, exports, __webpack_require__) {
  25257. "use strict";
  25258. /* WEBPACK VAR INJECTION */(function(uni) {
  25259. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25260. Object.defineProperty(exports, "__esModule", {
  25261. value: true
  25262. });
  25263. exports.get_files_and_is_max = exports.get_file_info = exports.get_file_ext = exports.get_file_data = exports.get_extname = void 0;
  25264. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  25265. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  25266. /**
  25267. * 获取文件名和后缀
  25268. * @param {String} name
  25269. */
  25270. var get_file_ext = function get_file_ext(name) {
  25271. var last_len = name.lastIndexOf('.');
  25272. var len = name.length;
  25273. return {
  25274. name: name.substring(0, last_len),
  25275. ext: name.substring(last_len + 1, len)
  25276. };
  25277. };
  25278. /**
  25279. * 获取扩展名
  25280. * @param {Array} fileExtname
  25281. */
  25282. exports.get_file_ext = get_file_ext;
  25283. var get_extname = function get_extname(fileExtname) {
  25284. if (!Array.isArray(fileExtname)) {
  25285. var extname = fileExtname.replace(/(\[|\])/g, '');
  25286. return extname.split(',');
  25287. } else {
  25288. return fileExtname;
  25289. }
  25290. return [];
  25291. };
  25292. /**
  25293. * 获取文件和检测是否可选
  25294. */
  25295. exports.get_extname = get_extname;
  25296. var get_files_and_is_max = function get_files_and_is_max(res, _extname) {
  25297. var filePaths = [];
  25298. var files = [];
  25299. if (!_extname || _extname.length === 0) {
  25300. return {
  25301. filePaths: filePaths,
  25302. files: files
  25303. };
  25304. }
  25305. res.tempFiles.forEach(function (v) {
  25306. var fileFullName = get_file_ext(v.name);
  25307. var extname = fileFullName.ext.toLowerCase();
  25308. if (_extname.indexOf(extname) !== -1) {
  25309. files.push(v);
  25310. filePaths.push(v.path);
  25311. }
  25312. });
  25313. if (files.length !== res.tempFiles.length) {
  25314. uni.showToast({
  25315. title: "\u5F53\u524D\u9009\u62E9\u4E86".concat(res.tempFiles.length, "\u4E2A\u6587\u4EF6 \uFF0C").concat(res.tempFiles.length - files.length, " \u4E2A\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),
  25316. icon: 'none',
  25317. duration: 5000
  25318. });
  25319. }
  25320. return {
  25321. filePaths: filePaths,
  25322. files: files
  25323. };
  25324. };
  25325. /**
  25326. * 获取图片信息
  25327. * @param {Object} filepath
  25328. */
  25329. exports.get_files_and_is_max = get_files_and_is_max;
  25330. var get_file_info = function get_file_info(filepath) {
  25331. return new Promise(function (resolve, reject) {
  25332. uni.getImageInfo({
  25333. src: filepath,
  25334. success: function success(res) {
  25335. resolve(res);
  25336. },
  25337. fail: function fail(err) {
  25338. reject(err);
  25339. }
  25340. });
  25341. });
  25342. };
  25343. /**
  25344. * 获取封装数据
  25345. */
  25346. exports.get_file_info = get_file_info;
  25347. var get_file_data = /*#__PURE__*/function () {
  25348. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(files) {
  25349. var type,
  25350. fileFullName,
  25351. extname,
  25352. filedata,
  25353. imageinfo,
  25354. _args = arguments;
  25355. return _regenerator.default.wrap(function _callee$(_context) {
  25356. while (1) {
  25357. switch (_context.prev = _context.next) {
  25358. case 0:
  25359. type = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'image';
  25360. // 最终需要上传数据库的数据
  25361. fileFullName = get_file_ext(files.name);
  25362. extname = fileFullName.ext.toLowerCase();
  25363. filedata = {
  25364. name: files.name,
  25365. uuid: files.uuid,
  25366. extname: extname || '',
  25367. cloudPath: files.cloudPath,
  25368. fileType: files.fileType,
  25369. url: files.path || files.path,
  25370. size: files.size,
  25371. //单位是字节
  25372. image: {},
  25373. path: files.path,
  25374. video: {}
  25375. };
  25376. if (!(type === 'image')) {
  25377. _context.next = 14;
  25378. break;
  25379. }
  25380. _context.next = 7;
  25381. return get_file_info(files.path);
  25382. case 7:
  25383. imageinfo = _context.sent;
  25384. delete filedata.video;
  25385. filedata.image.width = imageinfo.width;
  25386. filedata.image.height = imageinfo.height;
  25387. filedata.image.location = imageinfo.path;
  25388. _context.next = 15;
  25389. break;
  25390. case 14:
  25391. delete filedata.image;
  25392. case 15:
  25393. return _context.abrupt("return", filedata);
  25394. case 16:
  25395. case "end":
  25396. return _context.stop();
  25397. }
  25398. }
  25399. }, _callee);
  25400. }));
  25401. return function get_file_data(_x) {
  25402. return _ref.apply(this, arguments);
  25403. };
  25404. }();
  25405. exports.get_file_data = get_file_data;
  25406. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25407. /***/ }),
  25408. /***/ 715:
  25409. /*!********************************************************************!*\
  25410. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/empty/index.js ***!
  25411. \********************************************************************/
  25412. /*! no static exports found */
  25413. /***/ (function(module, exports, __webpack_require__) {
  25414. "use strict";
  25415. var _component = __webpack_require__(/*! ../common/component */ 671);
  25416. (0, _component.VantComponent)({
  25417. props: {
  25418. description: String,
  25419. image: {
  25420. type: String,
  25421. value: 'default'
  25422. }
  25423. }
  25424. });
  25425. /***/ }),
  25426. /***/ 72:
  25427. /*!*************************************************************!*\
  25428. !*** D:/AAA_Company/红沙湾管理端/common/assets/image/logobig.png ***!
  25429. \*************************************************************/
  25430. /*! no static exports found */
  25431. /***/ (function(module, exports, __webpack_require__) {
  25432. module.exports = __webpack_require__.p + "assets/logobig.901746fe.png";
  25433. /***/ }),
  25434. /***/ 73:
  25435. /*!*************************************************************!*\
  25436. !*** D:/AAA_Company/红沙湾管理端/common/assets/image/comicon.png ***!
  25437. \*************************************************************/
  25438. /*! no static exports found */
  25439. /***/ (function(module, exports) {
  25440. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAEuElEQVR4Xu2aXWgcVRTH/+dOdNNG0yagKAqKoi+RggVFBKX6oC8Rq5AgSCFsdia7iQ+iIgUfXEHESP2ga+vO3Nk8GH0xVRFRH1QQQcX6UEEfikUUMeJHCTYq3ZjMPXLLbolpdjd3PrTN3oFA2Jz7n3N/93/O3Dsbgr3aEiDLpz0BC6iDQywgCyhZE7EOsg6yDkpGwDooGT/bg6yDrIOSEbAOSsbP9qD/ykGu644CuIGIdgHYYrhuJ5n5IwBfSClfMxybaXgiB42MjDiDg4PXR1H0rBDi1jQyVUp97DjOwwsLC0fm5uaiNDSTaCQCNDExcTczvwDgyiRJrDP2eyJ60Pf9t1LWNZaLDahYLF4cRdFhIrqicdffmXm/EOJtpdRJk0yEEFuY+U4ADwEYbIw9rpS6MQzD70y00o6NBcjzvPMAvApgpJHQt1EU7a7Val8nSXB8fPw6x3HeAHCN1mHmd4lodxAEy0l0k4yNBagxkfcAXA7gZ2beI6X8IEkizbGFQuEWIYRu1JcAmGfmYSnll2lox9GIBch13WEiehnAgF5lpdSeWq22ECeBtWPGxsa253K5GWa+B8AJpVQhDMNDaWjH0YgFyPO8BwDsA5AD8GIul3ukUqksxUlg7ZhyudwzPz8/TUS6Hy0T0V7f959LQzuORlxAjwMoN25YDoLgiTg3bzXG87xM9U1ytYA60LKALCCTgjoz1jro/3CQPqP19/dv6+3tbbsA9XqdFxcXT6w9c236Jl0sFi9TSu1n5r52C0RES0qpqTAMf1wdt+kBua57LRF9DmB7BwfrM9vOIAiOtgLEzFIIEWykkxDRD9Vq9deNxG40JpMe5Hne1cz8PhH1d0ikTkS3+b5/rI2DNjqXZpw+nnwSRdFTfX19R5NuYLMCtFUpdZMQoqfd7JhZ1ev1z2ZnZ/9KEdApKWb+jYgO5HK55yuVyqIp5WZ8JoDiJtMct7oHMfNP+mcjmvrVCxFdtCp2iZmnpZR6Zx7rOusB6SONyVGmVCrtUErtY2b9hlOfFbWb7pJSvqN/NaW06QBpAPl8/sKenp5pAKUGkCMA7giC4LgF1CCQz+evchznTSLaAeAXZr5XSvmpBdQgMDk5ecHy8nKViO4H8CcRlXzff8UCahDQu/mBgYEnAewFEBHRY77v67IzujLpQY3Vux2Afnfd8iKiaGVl5cOZmZk/2jzmjZp02jqZAEpzJ236FLOADAokjTNdJg7yPO9SZn4awNYOJfa3EOLRarU6n/bKa72zFpDBIq8b2mpizEyjo6Oilf7Q0BCXy2XV/HvXAXJd92YhxDAzO+tBUkp9FYbh6Ud51wFa83XTGYyY+ZCUsvltb/eVWKFQmBJCPAPg/BZl9noQBPd1bYl5nreTmXe1KjEA34RhePo/QrquxEybvwXUgZgFZAGdIrD5zmKmvWJtfBql0ZU7aVPwaYDO5CxmOpFN7SAiOqiUOpgUyurx+u0fgCn9WRL91Tpxe1kaDkqTTZZasZq9BdRhSWIBcl13kogms1zuDLRfCoLggKluLECmNzmX4y2gLErsXHaEae7WQdZBpp75d7x1kHWQdVAyAtZByfjZHmQdZB2UjIB1UDJ+tgd14PcP4hYGdl6JvtEAAAAASUVORK5CYII="
  25441. /***/ }),
  25442. /***/ 735:
  25443. /*!************************************************************************************!*\
  25444. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  25445. \************************************************************************************/
  25446. /*! no static exports found */
  25447. /***/ (function(module, exports, __webpack_require__) {
  25448. "use strict";
  25449. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25450. Object.defineProperty(exports, "__esModule", {
  25451. value: true
  25452. });
  25453. exports.default = void 0;
  25454. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 29));
  25455. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 33));
  25456. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 34));
  25457. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 35));
  25458. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  25459. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  25460. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  25461. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  25462. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  25463. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  25464. var pattern = {
  25465. email: /^\S+?@\S+?\.\S+?$/,
  25466. idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  25467. 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')
  25468. };
  25469. var FORMAT_MAPPING = {
  25470. "int": 'integer',
  25471. "bool": 'boolean',
  25472. "double": 'number',
  25473. "long": 'number',
  25474. "password": 'string'
  25475. // "fileurls": 'array'
  25476. };
  25477. function formatMessage(args) {
  25478. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  25479. var defaultMessage = ['label'];
  25480. defaultMessage.forEach(function (item) {
  25481. if (args[item] === undefined) {
  25482. args[item] = '';
  25483. }
  25484. });
  25485. var str = resources;
  25486. for (var key in args) {
  25487. var reg = new RegExp('{' + key + '}');
  25488. str = str.replace(reg, args[key]);
  25489. }
  25490. return str;
  25491. }
  25492. function isEmptyValue(value, type) {
  25493. if (value === undefined || value === null) {
  25494. return true;
  25495. }
  25496. if (typeof value === 'string' && !value) {
  25497. return true;
  25498. }
  25499. if (Array.isArray(value) && !value.length) {
  25500. return true;
  25501. }
  25502. if (type === 'object' && !Object.keys(value).length) {
  25503. return true;
  25504. }
  25505. return false;
  25506. }
  25507. var types = {
  25508. integer: function integer(value) {
  25509. return types.number(value) && parseInt(value, 10) === value;
  25510. },
  25511. string: function string(value) {
  25512. return typeof value === 'string';
  25513. },
  25514. number: function number(value) {
  25515. if (isNaN(value)) {
  25516. return false;
  25517. }
  25518. return typeof value === 'number';
  25519. },
  25520. "boolean": function boolean(value) {
  25521. return typeof value === 'boolean';
  25522. },
  25523. "float": function float(value) {
  25524. return types.number(value) && !types.integer(value);
  25525. },
  25526. array: function array(value) {
  25527. return Array.isArray(value);
  25528. },
  25529. object: function object(value) {
  25530. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  25531. },
  25532. date: function date(value) {
  25533. return value instanceof Date;
  25534. },
  25535. timestamp: function timestamp(value) {
  25536. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  25537. return false;
  25538. }
  25539. return true;
  25540. },
  25541. file: function file(value) {
  25542. return typeof value.url === 'string';
  25543. },
  25544. email: function email(value) {
  25545. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  25546. },
  25547. url: function url(value) {
  25548. return typeof value === 'string' && !!value.match(pattern.url);
  25549. },
  25550. pattern: function pattern(reg, value) {
  25551. try {
  25552. return new RegExp(reg).test(value);
  25553. } catch (e) {
  25554. return false;
  25555. }
  25556. },
  25557. method: function method(value) {
  25558. return typeof value === 'function';
  25559. },
  25560. idcard: function idcard(value) {
  25561. return typeof value === 'string' && !!value.match(pattern.idcard);
  25562. },
  25563. 'url-https': function urlHttps(value) {
  25564. return this.url(value) && value.startsWith('https://');
  25565. },
  25566. 'url-scheme': function urlScheme(value) {
  25567. return value.startsWith('://');
  25568. },
  25569. 'url-web': function urlWeb(value) {
  25570. return false;
  25571. }
  25572. };
  25573. var RuleValidator = /*#__PURE__*/function () {
  25574. function RuleValidator(message) {
  25575. (0, _classCallCheck2.default)(this, RuleValidator);
  25576. this._message = message;
  25577. }
  25578. (0, _createClass2.default)(RuleValidator, [{
  25579. key: "validateRule",
  25580. value: function () {
  25581. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  25582. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  25583. return _regenerator.default.wrap(function _callee$(_context) {
  25584. while (1) {
  25585. switch (_context.prev = _context.next) {
  25586. case 0:
  25587. result = null;
  25588. rules = fieldValue.rules;
  25589. hasRequired = rules.findIndex(function (item) {
  25590. return item.required;
  25591. });
  25592. if (!(hasRequired < 0)) {
  25593. _context.next = 8;
  25594. break;
  25595. }
  25596. if (!(value === null || value === undefined)) {
  25597. _context.next = 6;
  25598. break;
  25599. }
  25600. return _context.abrupt("return", result);
  25601. case 6:
  25602. if (!(typeof value === 'string' && !value.length)) {
  25603. _context.next = 8;
  25604. break;
  25605. }
  25606. return _context.abrupt("return", result);
  25607. case 8:
  25608. message = this._message;
  25609. if (!(rules === undefined)) {
  25610. _context.next = 11;
  25611. break;
  25612. }
  25613. return _context.abrupt("return", message['default']);
  25614. case 11:
  25615. i = 0;
  25616. case 12:
  25617. if (!(i < rules.length)) {
  25618. _context.next = 35;
  25619. break;
  25620. }
  25621. rule = rules[i];
  25622. vt = this._getValidateType(rule);
  25623. Object.assign(rule, {
  25624. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  25625. });
  25626. if (!RuleValidatorHelper[vt]) {
  25627. _context.next = 20;
  25628. break;
  25629. }
  25630. result = RuleValidatorHelper[vt](rule, value, message);
  25631. if (!(result != null)) {
  25632. _context.next = 20;
  25633. break;
  25634. }
  25635. return _context.abrupt("break", 35);
  25636. case 20:
  25637. if (!rule.validateExpr) {
  25638. _context.next = 26;
  25639. break;
  25640. }
  25641. now = Date.now();
  25642. resultExpr = rule.validateExpr(value, allData, now);
  25643. if (!(resultExpr === false)) {
  25644. _context.next = 26;
  25645. break;
  25646. }
  25647. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  25648. return _context.abrupt("break", 35);
  25649. case 26:
  25650. if (!rule.validateFunction) {
  25651. _context.next = 32;
  25652. break;
  25653. }
  25654. _context.next = 29;
  25655. return this.validateFunction(rule, value, data, allData, vt);
  25656. case 29:
  25657. result = _context.sent;
  25658. if (!(result !== null)) {
  25659. _context.next = 32;
  25660. break;
  25661. }
  25662. return _context.abrupt("break", 35);
  25663. case 32:
  25664. i++;
  25665. _context.next = 12;
  25666. break;
  25667. case 35:
  25668. if (result !== null) {
  25669. result = message.TAG + result;
  25670. }
  25671. return _context.abrupt("return", result);
  25672. case 37:
  25673. case "end":
  25674. return _context.stop();
  25675. }
  25676. }
  25677. }, _callee, this);
  25678. }));
  25679. function validateRule(_x, _x2, _x3, _x4, _x5) {
  25680. return _validateRule.apply(this, arguments);
  25681. }
  25682. return validateRule;
  25683. }()
  25684. }, {
  25685. key: "validateFunction",
  25686. value: function () {
  25687. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  25688. var result, callbackMessage, res;
  25689. return _regenerator.default.wrap(function _callee2$(_context2) {
  25690. while (1) {
  25691. switch (_context2.prev = _context2.next) {
  25692. case 0:
  25693. result = null;
  25694. _context2.prev = 1;
  25695. callbackMessage = null;
  25696. _context2.next = 5;
  25697. return rule.validateFunction(rule, value, allData || data, function (message) {
  25698. callbackMessage = message;
  25699. });
  25700. case 5:
  25701. res = _context2.sent;
  25702. if (callbackMessage || typeof res === 'string' && res || res === false) {
  25703. result = this._getMessage(rule, callbackMessage || res, vt);
  25704. }
  25705. _context2.next = 12;
  25706. break;
  25707. case 9:
  25708. _context2.prev = 9;
  25709. _context2.t0 = _context2["catch"](1);
  25710. result = this._getMessage(rule, _context2.t0.message, vt);
  25711. case 12:
  25712. return _context2.abrupt("return", result);
  25713. case 13:
  25714. case "end":
  25715. return _context2.stop();
  25716. }
  25717. }
  25718. }, _callee2, this, [[1, 9]]);
  25719. }));
  25720. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  25721. return _validateFunction.apply(this, arguments);
  25722. }
  25723. return validateFunction;
  25724. }()
  25725. }, {
  25726. key: "_getMessage",
  25727. value: function _getMessage(rule, message, vt) {
  25728. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  25729. }
  25730. }, {
  25731. key: "_getValidateType",
  25732. value: function _getValidateType(rule) {
  25733. var result = '';
  25734. if (rule.required) {
  25735. result = 'required';
  25736. } else if (rule.format) {
  25737. result = 'format';
  25738. } else if (rule.arrayType) {
  25739. result = 'arrayTypeFormat';
  25740. } else if (rule.range) {
  25741. result = 'range';
  25742. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  25743. result = 'rangeNumber';
  25744. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  25745. result = 'rangeLength';
  25746. } else if (rule.pattern) {
  25747. result = 'pattern';
  25748. } else if (rule.validateFunction) {
  25749. result = 'validateFunction';
  25750. }
  25751. return result;
  25752. }
  25753. }]);
  25754. return RuleValidator;
  25755. }();
  25756. var RuleValidatorHelper = {
  25757. required: function required(rule, value, message) {
  25758. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  25759. return formatMessage(rule, rule.errorMessage || message.required);
  25760. }
  25761. return null;
  25762. },
  25763. range: function range(rule, value, message) {
  25764. var range = rule.range,
  25765. errorMessage = rule.errorMessage;
  25766. var list = new Array(range.length);
  25767. for (var i = 0; i < range.length; i++) {
  25768. var item = range[i];
  25769. if (types.object(item) && item.value !== undefined) {
  25770. list[i] = item.value;
  25771. } else {
  25772. list[i] = item;
  25773. }
  25774. }
  25775. var result = false;
  25776. if (Array.isArray(value)) {
  25777. result = new Set(value.concat(list)).size === list.length;
  25778. } else {
  25779. if (list.indexOf(value) > -1) {
  25780. result = true;
  25781. }
  25782. }
  25783. if (!result) {
  25784. return formatMessage(rule, errorMessage || message['enum']);
  25785. }
  25786. return null;
  25787. },
  25788. rangeNumber: function rangeNumber(rule, value, message) {
  25789. if (!types.number(value)) {
  25790. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25791. }
  25792. var minimum = rule.minimum,
  25793. maximum = rule.maximum,
  25794. exclusiveMinimum = rule.exclusiveMinimum,
  25795. exclusiveMaximum = rule.exclusiveMaximum;
  25796. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  25797. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  25798. if (minimum !== undefined && min) {
  25799. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  25800. } else if (maximum !== undefined && max) {
  25801. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  25802. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  25803. return formatMessage(rule, rule.errorMessage || message['number'].range);
  25804. }
  25805. return null;
  25806. },
  25807. rangeLength: function rangeLength(rule, value, message) {
  25808. if (!types.string(value) && !types.array(value)) {
  25809. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25810. }
  25811. var min = rule.minLength;
  25812. var max = rule.maxLength;
  25813. var val = value.length;
  25814. if (min !== undefined && val < min) {
  25815. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  25816. } else if (max !== undefined && val > max) {
  25817. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  25818. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  25819. return formatMessage(rule, rule.errorMessage || message['length'].range);
  25820. }
  25821. return null;
  25822. },
  25823. pattern: function pattern(rule, value, message) {
  25824. if (!types['pattern'](rule.pattern, value)) {
  25825. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  25826. }
  25827. return null;
  25828. },
  25829. format: function format(rule, value, message) {
  25830. var customTypes = Object.keys(types);
  25831. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  25832. if (customTypes.indexOf(format) > -1) {
  25833. if (!types[format](value)) {
  25834. return formatMessage(rule, rule.errorMessage || message.typeError);
  25835. }
  25836. }
  25837. return null;
  25838. },
  25839. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  25840. if (!Array.isArray(value)) {
  25841. return formatMessage(rule, rule.errorMessage || message.typeError);
  25842. }
  25843. for (var i = 0; i < value.length; i++) {
  25844. var element = value[i];
  25845. var formatResult = this.format(rule, element, message);
  25846. if (formatResult !== null) {
  25847. return formatResult;
  25848. }
  25849. }
  25850. return null;
  25851. }
  25852. };
  25853. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  25854. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  25855. var _super = _createSuper(SchemaValidator);
  25856. function SchemaValidator(schema, options) {
  25857. var _this;
  25858. (0, _classCallCheck2.default)(this, SchemaValidator);
  25859. _this = _super.call(this, SchemaValidator.message);
  25860. _this._schema = schema;
  25861. _this._options = options || null;
  25862. return _this;
  25863. }
  25864. (0, _createClass2.default)(SchemaValidator, [{
  25865. key: "updateSchema",
  25866. value: function updateSchema(schema) {
  25867. this._schema = schema;
  25868. }
  25869. }, {
  25870. key: "validate",
  25871. value: function () {
  25872. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  25873. var result;
  25874. return _regenerator.default.wrap(function _callee3$(_context3) {
  25875. while (1) {
  25876. switch (_context3.prev = _context3.next) {
  25877. case 0:
  25878. result = this._checkFieldInSchema(data);
  25879. if (result) {
  25880. _context3.next = 5;
  25881. break;
  25882. }
  25883. _context3.next = 4;
  25884. return this.invokeValidate(data, false, allData);
  25885. case 4:
  25886. result = _context3.sent;
  25887. case 5:
  25888. return _context3.abrupt("return", result.length ? result[0] : null);
  25889. case 6:
  25890. case "end":
  25891. return _context3.stop();
  25892. }
  25893. }
  25894. }, _callee3, this);
  25895. }));
  25896. function validate(_x11, _x12) {
  25897. return _validate.apply(this, arguments);
  25898. }
  25899. return validate;
  25900. }()
  25901. }, {
  25902. key: "validateAll",
  25903. value: function () {
  25904. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  25905. var result;
  25906. return _regenerator.default.wrap(function _callee4$(_context4) {
  25907. while (1) {
  25908. switch (_context4.prev = _context4.next) {
  25909. case 0:
  25910. result = this._checkFieldInSchema(data);
  25911. if (result) {
  25912. _context4.next = 5;
  25913. break;
  25914. }
  25915. _context4.next = 4;
  25916. return this.invokeValidate(data, true, allData);
  25917. case 4:
  25918. result = _context4.sent;
  25919. case 5:
  25920. return _context4.abrupt("return", result);
  25921. case 6:
  25922. case "end":
  25923. return _context4.stop();
  25924. }
  25925. }
  25926. }, _callee4, this);
  25927. }));
  25928. function validateAll(_x13, _x14) {
  25929. return _validateAll.apply(this, arguments);
  25930. }
  25931. return validateAll;
  25932. }()
  25933. }, {
  25934. key: "validateUpdate",
  25935. value: function () {
  25936. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  25937. var result;
  25938. return _regenerator.default.wrap(function _callee5$(_context5) {
  25939. while (1) {
  25940. switch (_context5.prev = _context5.next) {
  25941. case 0:
  25942. result = this._checkFieldInSchema(data);
  25943. if (result) {
  25944. _context5.next = 5;
  25945. break;
  25946. }
  25947. _context5.next = 4;
  25948. return this.invokeValidateUpdate(data, false, allData);
  25949. case 4:
  25950. result = _context5.sent;
  25951. case 5:
  25952. return _context5.abrupt("return", result.length ? result[0] : null);
  25953. case 6:
  25954. case "end":
  25955. return _context5.stop();
  25956. }
  25957. }
  25958. }, _callee5, this);
  25959. }));
  25960. function validateUpdate(_x15, _x16) {
  25961. return _validateUpdate.apply(this, arguments);
  25962. }
  25963. return validateUpdate;
  25964. }()
  25965. }, {
  25966. key: "invokeValidate",
  25967. value: function () {
  25968. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  25969. var result, schema, key, value, errorMessage;
  25970. return _regenerator.default.wrap(function _callee6$(_context6) {
  25971. while (1) {
  25972. switch (_context6.prev = _context6.next) {
  25973. case 0:
  25974. result = [];
  25975. schema = this._schema;
  25976. _context6.t0 = _regenerator.default.keys(schema);
  25977. case 3:
  25978. if ((_context6.t1 = _context6.t0()).done) {
  25979. _context6.next = 15;
  25980. break;
  25981. }
  25982. key = _context6.t1.value;
  25983. value = schema[key];
  25984. _context6.next = 8;
  25985. return this.validateRule(key, value, data[key], data, allData);
  25986. case 8:
  25987. errorMessage = _context6.sent;
  25988. if (!(errorMessage != null)) {
  25989. _context6.next = 13;
  25990. break;
  25991. }
  25992. result.push({
  25993. key: key,
  25994. errorMessage: errorMessage
  25995. });
  25996. if (all) {
  25997. _context6.next = 13;
  25998. break;
  25999. }
  26000. return _context6.abrupt("break", 15);
  26001. case 13:
  26002. _context6.next = 3;
  26003. break;
  26004. case 15:
  26005. return _context6.abrupt("return", result);
  26006. case 16:
  26007. case "end":
  26008. return _context6.stop();
  26009. }
  26010. }
  26011. }, _callee6, this);
  26012. }));
  26013. function invokeValidate(_x17, _x18, _x19) {
  26014. return _invokeValidate.apply(this, arguments);
  26015. }
  26016. return invokeValidate;
  26017. }()
  26018. }, {
  26019. key: "invokeValidateUpdate",
  26020. value: function () {
  26021. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  26022. var result, key, errorMessage;
  26023. return _regenerator.default.wrap(function _callee7$(_context7) {
  26024. while (1) {
  26025. switch (_context7.prev = _context7.next) {
  26026. case 0:
  26027. result = [];
  26028. _context7.t0 = _regenerator.default.keys(data);
  26029. case 2:
  26030. if ((_context7.t1 = _context7.t0()).done) {
  26031. _context7.next = 13;
  26032. break;
  26033. }
  26034. key = _context7.t1.value;
  26035. _context7.next = 6;
  26036. return this.validateRule(key, this._schema[key], data[key], data, allData);
  26037. case 6:
  26038. errorMessage = _context7.sent;
  26039. if (!(errorMessage != null)) {
  26040. _context7.next = 11;
  26041. break;
  26042. }
  26043. result.push({
  26044. key: key,
  26045. errorMessage: errorMessage
  26046. });
  26047. if (all) {
  26048. _context7.next = 11;
  26049. break;
  26050. }
  26051. return _context7.abrupt("break", 13);
  26052. case 11:
  26053. _context7.next = 2;
  26054. break;
  26055. case 13:
  26056. return _context7.abrupt("return", result);
  26057. case 14:
  26058. case "end":
  26059. return _context7.stop();
  26060. }
  26061. }
  26062. }, _callee7, this);
  26063. }));
  26064. function invokeValidateUpdate(_x20, _x21, _x22) {
  26065. return _invokeValidateUpdate.apply(this, arguments);
  26066. }
  26067. return invokeValidateUpdate;
  26068. }()
  26069. }, {
  26070. key: "_checkFieldInSchema",
  26071. value: function _checkFieldInSchema(data) {
  26072. var keys = Object.keys(data);
  26073. var keys2 = Object.keys(this._schema);
  26074. if (new Set(keys.concat(keys2)).size === keys2.length) {
  26075. return '';
  26076. }
  26077. var noExistFields = keys.filter(function (key) {
  26078. return keys2.indexOf(key) < 0;
  26079. });
  26080. var errorMessage = formatMessage({
  26081. field: JSON.stringify(noExistFields)
  26082. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  26083. return [{
  26084. key: 'invalid',
  26085. errorMessage: errorMessage
  26086. }];
  26087. }
  26088. }]);
  26089. return SchemaValidator;
  26090. }(RuleValidator);
  26091. function Message() {
  26092. return {
  26093. TAG: "",
  26094. default: '验证错误',
  26095. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  26096. validateFunction: '验证无效',
  26097. required: '{label}必填',
  26098. 'enum': '{label}超出范围',
  26099. timestamp: '{label}格式无效',
  26100. whitespace: '{label}不能为空',
  26101. typeError: '{label}类型无效',
  26102. date: {
  26103. format: '{label}日期{value}格式无效',
  26104. parse: '{label}日期无法解析,{value}无效',
  26105. invalid: '{label}日期{value}无效'
  26106. },
  26107. length: {
  26108. minLength: '{label}长度不能少于{minLength}',
  26109. maxLength: '{label}长度不能超过{maxLength}',
  26110. range: '{label}必须介于{minLength}和{maxLength}之间'
  26111. },
  26112. number: {
  26113. minimum: '{label}不能小于{minimum}',
  26114. maximum: '{label}不能大于{maximum}',
  26115. exclusiveMinimum: '{label}不能小于等于{minimum}',
  26116. exclusiveMaximum: '{label}不能大于等于{maximum}',
  26117. range: '{label}必须介于{minimum}and{maximum}之间'
  26118. },
  26119. pattern: {
  26120. mismatch: '{label}格式不匹配'
  26121. }
  26122. };
  26123. }
  26124. SchemaValidator.message = new Message();
  26125. var _default = SchemaValidator;
  26126. exports.default = _default;
  26127. /***/ }),
  26128. /***/ 736:
  26129. /*!*********************************************************************************!*\
  26130. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  26131. \*********************************************************************************/
  26132. /*! no static exports found */
  26133. /***/ (function(module, exports, __webpack_require__) {
  26134. "use strict";
  26135. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26136. Object.defineProperty(exports, "__esModule", {
  26137. value: true
  26138. });
  26139. exports.typeFilter = exports.type = exports.setDataValue = exports.realName = exports.rawData = exports.objSet = exports.objGet = exports.name2arr = exports.isRequiredField = exports.isRealName = exports.isNumber = exports.isEqual = exports.isBoolean = exports.getValue = exports.getDataValueType = exports.getDataValue = exports.deepCopy = void 0;
  26140. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  26141. /**
  26142. * 简单处理对象拷贝
  26143. * @param {Obejct} 被拷贝对象
  26144. * @@return {Object} 拷贝对象
  26145. */
  26146. var deepCopy = function deepCopy(val) {
  26147. return JSON.parse(JSON.stringify(val));
  26148. };
  26149. /**
  26150. * 过滤数字类型
  26151. * @param {String} format 数字类型
  26152. * @@return {Boolean} 返回是否为数字类型
  26153. */
  26154. exports.deepCopy = deepCopy;
  26155. var typeFilter = function typeFilter(format) {
  26156. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  26157. };
  26158. /**
  26159. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  26160. * @param {String} key 字段名
  26161. * @param {any} value 字段值
  26162. * @param {Object} rules 表单校验规则
  26163. */
  26164. exports.typeFilter = typeFilter;
  26165. var getValue = function getValue(key, value, rules) {
  26166. var isRuleNumType = rules.find(function (val) {
  26167. return val.format && typeFilter(val.format);
  26168. });
  26169. var isRuleBoolType = rules.find(function (val) {
  26170. return val.format && val.format === 'boolean' || val.format === 'bool';
  26171. });
  26172. // 输入类型为 number
  26173. if (!!isRuleNumType) {
  26174. if (!value && value !== 0) {
  26175. value = null;
  26176. } else {
  26177. value = isNumber(Number(value)) ? Number(value) : value;
  26178. }
  26179. }
  26180. // 输入类型为 boolean
  26181. if (!!isRuleBoolType) {
  26182. value = isBoolean(value) ? value : false;
  26183. }
  26184. return value;
  26185. };
  26186. /**
  26187. * 获取表单数据
  26188. * @param {String|Array} name 真实名称,需要使用 realName 获取
  26189. * @param {Object} data 原始数据
  26190. * @param {any} value 需要设置的值
  26191. */
  26192. exports.getValue = getValue;
  26193. var setDataValue = function setDataValue(field, formdata, value) {
  26194. formdata[field] = value;
  26195. return value || '';
  26196. };
  26197. /**
  26198. * 获取表单数据
  26199. * @param {String|Array} field 真实名称,需要使用 realName 获取
  26200. * @param {Object} data 原始数据
  26201. */
  26202. exports.setDataValue = setDataValue;
  26203. var getDataValue = function getDataValue(field, data) {
  26204. return objGet(data, field);
  26205. };
  26206. /**
  26207. * 获取表单类型
  26208. * @param {String|Array} field 真实名称,需要使用 realName 获取
  26209. */
  26210. exports.getDataValue = getDataValue;
  26211. var getDataValueType = function getDataValueType(field, data) {
  26212. var value = getDataValue(field, data);
  26213. return {
  26214. type: type(value),
  26215. value: value
  26216. };
  26217. };
  26218. /**
  26219. * 获取表单可用的真实name
  26220. * @param {String|Array} name 表单name
  26221. * @@return {String} 表单可用的真实name
  26222. */
  26223. exports.getDataValueType = getDataValueType;
  26224. var realName = function realName(name) {
  26225. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  26226. var base_name = _basePath(name);
  26227. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  26228. var realname = base_name.reduce(function (a, b) {
  26229. return a += "#".concat(b);
  26230. }, '_formdata_');
  26231. return realname;
  26232. }
  26233. return base_name[0] || name;
  26234. };
  26235. /**
  26236. * 判断是否表单可用的真实name
  26237. * @param {String|Array} name 表单name
  26238. * @@return {String} 表单可用的真实name
  26239. */
  26240. exports.realName = realName;
  26241. var isRealName = function isRealName(name) {
  26242. var reg = /^_formdata_#*/;
  26243. return reg.test(name);
  26244. };
  26245. /**
  26246. * 获取表单数据的原始格式
  26247. * @@return {Object|Array} object 需要解析的数据
  26248. */
  26249. exports.isRealName = isRealName;
  26250. var rawData = function rawData() {
  26251. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  26252. var name = arguments.length > 1 ? arguments[1] : undefined;
  26253. var newData = JSON.parse(JSON.stringify(object));
  26254. var formData = {};
  26255. for (var i in newData) {
  26256. var path = name2arr(i);
  26257. objSet(formData, path, newData[i]);
  26258. }
  26259. return formData;
  26260. };
  26261. /**
  26262. * 真实name还原为 array
  26263. * @param {*} name
  26264. */
  26265. exports.rawData = rawData;
  26266. var name2arr = function name2arr(name) {
  26267. var field = name.replace('_formdata_#', '');
  26268. field = field.split('#').map(function (v) {
  26269. return isNumber(v) ? Number(v) : v;
  26270. });
  26271. return field;
  26272. };
  26273. /**
  26274. * 对象中设置值
  26275. * @param {Object|Array} object 源数据
  26276. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  26277. * @param {String} value 需要设置的值
  26278. */
  26279. exports.name2arr = name2arr;
  26280. var objSet = function objSet(object, path, value) {
  26281. if ((0, _typeof2.default)(object) !== 'object') return object;
  26282. _basePath(path).reduce(function (o, k, i, _) {
  26283. if (i === _.length - 1) {
  26284. // 若遍历结束直接赋值
  26285. o[k] = value;
  26286. return null;
  26287. } else if (k in o) {
  26288. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  26289. return o[k];
  26290. } else {
  26291. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  26292. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  26293. return o[k];
  26294. }
  26295. }, object);
  26296. // 返回object
  26297. return object;
  26298. };
  26299. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  26300. exports.objSet = objSet;
  26301. function _basePath(path) {
  26302. // 若是数组,则直接返回
  26303. if (Array.isArray(path)) return path;
  26304. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  26305. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  26306. }
  26307. /**
  26308. * 从对象中获取值
  26309. * @param {Object|Array} object 源数据
  26310. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  26311. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  26312. */
  26313. var objGet = function objGet(object, path) {
  26314. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  26315. // 先将path处理成统一格式
  26316. var newPath = _basePath(path);
  26317. // 递归处理,返回最后结果
  26318. var val = newPath.reduce(function (o, k) {
  26319. return (o || {})[k];
  26320. }, object);
  26321. return !val || val !== undefined ? val : defaultVal;
  26322. };
  26323. /**
  26324. * 是否为 number 类型
  26325. * @param {any} num 需要判断的值
  26326. * @return {Boolean} 是否为 number
  26327. */
  26328. exports.objGet = objGet;
  26329. var isNumber = function isNumber(num) {
  26330. return !isNaN(Number(num));
  26331. };
  26332. /**
  26333. * 是否为 boolean 类型
  26334. * @param {any} bool 需要判断的值
  26335. * @return {Boolean} 是否为 boolean
  26336. */
  26337. exports.isNumber = isNumber;
  26338. var isBoolean = function isBoolean(bool) {
  26339. return typeof bool === 'boolean';
  26340. };
  26341. /**
  26342. * 是否有必填字段
  26343. * @param {Object} rules 规则
  26344. * @return {Boolean} 是否有必填字段
  26345. */
  26346. exports.isBoolean = isBoolean;
  26347. var isRequiredField = function isRequiredField(rules) {
  26348. var isNoField = false;
  26349. for (var i = 0; i < rules.length; i++) {
  26350. var ruleData = rules[i];
  26351. if (ruleData.required) {
  26352. isNoField = true;
  26353. break;
  26354. }
  26355. }
  26356. return isNoField;
  26357. };
  26358. /**
  26359. * 获取数据类型
  26360. * @param {Any} obj 需要获取数据类型的值
  26361. */
  26362. exports.isRequiredField = isRequiredField;
  26363. var type = function type(obj) {
  26364. var class2type = {};
  26365. // 生成class2type映射
  26366. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  26367. class2type["[object " + item + "]"] = item.toLowerCase();
  26368. });
  26369. if (obj == null) {
  26370. return obj + "";
  26371. }
  26372. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  26373. };
  26374. /**
  26375. * 判断两个值是否相等
  26376. * @param {any} a 值
  26377. * @param {any} b 值
  26378. * @return {Boolean} 是否相等
  26379. */
  26380. exports.type = type;
  26381. var isEqual = function isEqual(a, b) {
  26382. //如果a和b本来就全等
  26383. if (a === b) {
  26384. //判断是否为0和-0
  26385. return a !== 0 || 1 / a === 1 / b;
  26386. }
  26387. //判断是否为null和undefined
  26388. if (a == null || b == null) {
  26389. return a === b;
  26390. }
  26391. //接下来判断a和b的数据类型
  26392. var classNameA = toString.call(a),
  26393. classNameB = toString.call(b);
  26394. //如果数据类型不相等,则返回false
  26395. if (classNameA !== classNameB) {
  26396. return false;
  26397. }
  26398. //如果数据类型相等,再根据不同数据类型分别判断
  26399. switch (classNameA) {
  26400. case '[object RegExp]':
  26401. case '[object String]':
  26402. //进行字符串转换比较
  26403. return '' + a === '' + b;
  26404. case '[object Number]':
  26405. //进行数字转换比较,判断是否为NaN
  26406. if (+a !== +a) {
  26407. return +b !== +b;
  26408. }
  26409. //判断是否为0或-0
  26410. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  26411. case '[object Date]':
  26412. case '[object Boolean]':
  26413. return +a === +b;
  26414. }
  26415. //如果是对象类型
  26416. if (classNameA == '[object Object]') {
  26417. //获取a和b的属性长度
  26418. var propsA = Object.getOwnPropertyNames(a),
  26419. propsB = Object.getOwnPropertyNames(b);
  26420. if (propsA.length != propsB.length) {
  26421. return false;
  26422. }
  26423. for (var i = 0; i < propsA.length; i++) {
  26424. var propName = propsA[i];
  26425. //如果对应属性对应值不相等,则返回false
  26426. if (a[propName] !== b[propName]) {
  26427. return false;
  26428. }
  26429. }
  26430. return true;
  26431. }
  26432. //如果是数组类型
  26433. if (classNameA == '[object Array]') {
  26434. if (a.toString() == b.toString()) {
  26435. return true;
  26436. }
  26437. return false;
  26438. }
  26439. };
  26440. exports.isEqual = isEqual;
  26441. /***/ }),
  26442. /***/ 74:
  26443. /*!*************************************************************!*\
  26444. !*** D:/AAA_Company/红沙湾管理端/common/assets/image/pswicon.svg ***!
  26445. \*************************************************************/
  26446. /*! no static exports found */
  26447. /***/ (function(module, exports, __webpack_require__) {
  26448. module.exports = __webpack_require__.p + "static/img/pswicon.5cb4118b.svg";
  26449. /***/ }),
  26450. /***/ 75:
  26451. /*!*************************************************************!*\
  26452. !*** D:/AAA_Company/红沙湾管理端/common/assets/image/yzmicon.svg ***!
  26453. \*************************************************************/
  26454. /*! no static exports found */
  26455. /***/ (function(module, exports, __webpack_require__) {
  26456. module.exports = __webpack_require__.p + "static/img/yzmicon.83dc7c55.svg";
  26457. /***/ }),
  26458. /***/ 78:
  26459. /*!**********************************************************************!*\
  26460. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/dialog/dialog.js ***!
  26461. \**********************************************************************/
  26462. /*! no static exports found */
  26463. /***/ (function(module, exports, __webpack_require__) {
  26464. "use strict";
  26465. /* WEBPACK VAR INJECTION */(function(wx) {
  26466. Object.defineProperty(exports, "__esModule", {
  26467. value: true
  26468. });
  26469. exports.default = void 0;
  26470. var queue = [];
  26471. var defaultOptions = {
  26472. show: false,
  26473. title: '',
  26474. width: null,
  26475. theme: 'default',
  26476. message: '',
  26477. zIndex: 100,
  26478. overlay: true,
  26479. selector: '#van-dialog',
  26480. className: '',
  26481. asyncClose: false,
  26482. beforeClose: null,
  26483. transition: 'scale',
  26484. customStyle: '',
  26485. messageAlign: '',
  26486. overlayStyle: '',
  26487. confirmButtonText: '确认',
  26488. cancelButtonText: '取消',
  26489. showConfirmButton: true,
  26490. showCancelButton: false,
  26491. closeOnClickOverlay: false,
  26492. confirmButtonOpenType: ''
  26493. };
  26494. var currentOptions = Object.assign({}, defaultOptions);
  26495. function getContext() {
  26496. var pages = getCurrentPages();
  26497. return pages[pages.length - 1];
  26498. }
  26499. var Dialog = function Dialog(options) {
  26500. options = Object.assign(Object.assign({}, currentOptions), options);
  26501. return new Promise(function (resolve, reject) {
  26502. var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
  26503. var dialog = context.selectComponent(options.selector);
  26504. delete options.context;
  26505. delete options.selector;
  26506. if (dialog) {
  26507. dialog.setData(Object.assign({
  26508. callback: function callback(action, instance) {
  26509. action === 'confirm' ? resolve(instance) : reject(instance);
  26510. }
  26511. }, options));
  26512. wx.nextTick(function () {
  26513. dialog.setData({
  26514. show: true
  26515. });
  26516. });
  26517. queue.push(dialog);
  26518. } else {
  26519. console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
  26520. }
  26521. });
  26522. };
  26523. Dialog.alert = function (options) {
  26524. return Dialog(options);
  26525. };
  26526. Dialog.confirm = function (options) {
  26527. return Dialog(Object.assign({
  26528. showCancelButton: true
  26529. }, options));
  26530. };
  26531. Dialog.close = function () {
  26532. queue.forEach(function (dialog) {
  26533. dialog.close();
  26534. });
  26535. queue = [];
  26536. };
  26537. Dialog.stopLoading = function () {
  26538. queue.forEach(function (dialog) {
  26539. dialog.stopLoading();
  26540. });
  26541. };
  26542. Dialog.currentOptions = currentOptions;
  26543. Dialog.defaultOptions = defaultOptions;
  26544. Dialog.setDefaultOptions = function (options) {
  26545. currentOptions = Object.assign(Object.assign({}, currentOptions), options);
  26546. Dialog.currentOptions = currentOptions;
  26547. };
  26548. Dialog.resetDefaultOptions = function () {
  26549. currentOptions = Object.assign({}, defaultOptions);
  26550. Dialog.currentOptions = currentOptions;
  26551. };
  26552. Dialog.resetDefaultOptions();
  26553. var _default = Dialog;
  26554. exports.default = _default;
  26555. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  26556. /***/ }),
  26557. /***/ 784:
  26558. /*!***********************************************************************!*\
  26559. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/uploader/index.js ***!
  26560. \***********************************************************************/
  26561. /*! no static exports found */
  26562. /***/ (function(module, exports, __webpack_require__) {
  26563. "use strict";
  26564. /* WEBPACK VAR INJECTION */(function(wx) {
  26565. var _component = __webpack_require__(/*! ../common/component */ 671);
  26566. var _utils = __webpack_require__(/*! ./utils */ 785);
  26567. var _shared = __webpack_require__(/*! ./shared */ 786);
  26568. var _validator = __webpack_require__(/*! ../common/validator */ 263);
  26569. (0, _component.VantComponent)({
  26570. props: Object.assign(Object.assign(Object.assign(Object.assign({
  26571. disabled: Boolean,
  26572. multiple: Boolean,
  26573. uploadText: String,
  26574. useBeforeRead: Boolean,
  26575. afterRead: null,
  26576. beforeRead: null,
  26577. previewSize: {
  26578. type: null,
  26579. value: 80
  26580. },
  26581. name: {
  26582. type: null,
  26583. value: ''
  26584. },
  26585. accept: {
  26586. type: String,
  26587. value: 'image'
  26588. },
  26589. fileList: {
  26590. type: Array,
  26591. value: [],
  26592. observer: 'formatFileList'
  26593. },
  26594. maxSize: {
  26595. type: Number,
  26596. value: Number.MAX_VALUE
  26597. },
  26598. maxCount: {
  26599. type: Number,
  26600. value: 100
  26601. },
  26602. deletable: {
  26603. type: Boolean,
  26604. value: true
  26605. },
  26606. showUpload: {
  26607. type: Boolean,
  26608. value: true
  26609. },
  26610. previewImage: {
  26611. type: Boolean,
  26612. value: true
  26613. },
  26614. previewFullImage: {
  26615. type: Boolean,
  26616. value: true
  26617. },
  26618. imageFit: {
  26619. type: String,
  26620. value: 'scaleToFill'
  26621. },
  26622. uploadIcon: {
  26623. type: String,
  26624. value: 'photograph'
  26625. }
  26626. }, _shared.imageProps), _shared.videoProps), _shared.mediaProps), _shared.messageFileProps),
  26627. data: {
  26628. lists: [],
  26629. isInCount: true
  26630. },
  26631. methods: {
  26632. formatFileList: function formatFileList() {
  26633. var _this$data = this.data,
  26634. _this$data$fileList = _this$data.fileList,
  26635. fileList = _this$data$fileList === void 0 ? [] : _this$data$fileList,
  26636. maxCount = _this$data.maxCount;
  26637. var lists = fileList.map(function (item) {
  26638. return Object.assign(Object.assign({}, item), {
  26639. isImage: (0, _utils.isImageFile)(item),
  26640. isVideo: (0, _utils.isVideoFile)(item),
  26641. deletable: (0, _validator.isBoolean)(item.deletable) ? item.deletable : true
  26642. });
  26643. });
  26644. this.setData({
  26645. lists: lists,
  26646. isInCount: lists.length < maxCount
  26647. });
  26648. },
  26649. getDetail: function getDetail(index) {
  26650. return {
  26651. name: this.data.name,
  26652. index: index == null ? this.data.fileList.length : index
  26653. };
  26654. },
  26655. startUpload: function startUpload() {
  26656. var _this = this;
  26657. var _this$data2 = this.data,
  26658. maxCount = _this$data2.maxCount,
  26659. multiple = _this$data2.multiple,
  26660. lists = _this$data2.lists,
  26661. disabled = _this$data2.disabled;
  26662. if (disabled) return;
  26663. (0, _utils.chooseFile)(Object.assign(Object.assign({}, this.data), {
  26664. maxCount: maxCount - lists.length
  26665. })).then(function (res) {
  26666. _this.onBeforeRead(multiple ? res : res[0]);
  26667. }).catch(function (error) {
  26668. _this.$emit('error', error);
  26669. });
  26670. },
  26671. onBeforeRead: function onBeforeRead(file) {
  26672. var _this2 = this;
  26673. var _this$data3 = this.data,
  26674. beforeRead = _this$data3.beforeRead,
  26675. useBeforeRead = _this$data3.useBeforeRead;
  26676. var res = true;
  26677. if (typeof beforeRead === 'function') {
  26678. res = beforeRead(file, this.getDetail());
  26679. }
  26680. if (useBeforeRead) {
  26681. res = new Promise(function (resolve, reject) {
  26682. _this2.$emit('before-read', Object.assign(Object.assign({
  26683. file: file
  26684. }, _this2.getDetail()), {
  26685. callback: function callback(ok) {
  26686. ok ? resolve() : reject();
  26687. }
  26688. }));
  26689. });
  26690. }
  26691. if (!res) {
  26692. return;
  26693. }
  26694. if ((0, _validator.isPromise)(res)) {
  26695. res.then(function (data) {
  26696. return _this2.onAfterRead(data || file);
  26697. });
  26698. } else {
  26699. this.onAfterRead(file);
  26700. }
  26701. },
  26702. onAfterRead: function onAfterRead(file) {
  26703. var _this$data4 = this.data,
  26704. maxSize = _this$data4.maxSize,
  26705. afterRead = _this$data4.afterRead;
  26706. var oversize = Array.isArray(file) ? file.some(function (item) {
  26707. return item.size > maxSize;
  26708. }) : file.size > maxSize;
  26709. if (oversize) {
  26710. this.$emit('oversize', Object.assign({
  26711. file: file
  26712. }, this.getDetail()));
  26713. return;
  26714. }
  26715. if (typeof afterRead === 'function') {
  26716. afterRead(file, this.getDetail());
  26717. }
  26718. this.$emit('after-read', Object.assign({
  26719. file: file
  26720. }, this.getDetail()));
  26721. },
  26722. deleteItem: function deleteItem(event) {
  26723. var index = event.currentTarget.dataset.index;
  26724. this.$emit('delete', Object.assign(Object.assign({}, this.getDetail(index)), {
  26725. file: this.data.fileList[index]
  26726. }));
  26727. },
  26728. onPreviewImage: function onPreviewImage(event) {
  26729. if (!this.data.previewFullImage) return;
  26730. var index = event.currentTarget.dataset.index;
  26731. var _this$data5 = this.data,
  26732. lists = _this$data5.lists,
  26733. showmenu = _this$data5.showmenu;
  26734. var item = lists[index];
  26735. wx.previewImage({
  26736. urls: lists.filter(function (item) {
  26737. return (0, _utils.isImageFile)(item);
  26738. }).map(function (item) {
  26739. return item.url;
  26740. }),
  26741. current: item.url,
  26742. showmenu: showmenu,
  26743. fail: function fail() {
  26744. wx.showToast({
  26745. title: '预览图片失败',
  26746. icon: 'none'
  26747. });
  26748. }
  26749. });
  26750. },
  26751. onPreviewVideo: function onPreviewVideo(event) {
  26752. if (!this.data.previewFullImage) return;
  26753. var index = event.currentTarget.dataset.index;
  26754. var lists = this.data.lists;
  26755. var sources = [];
  26756. var current = lists.reduce(function (sum, cur, curIndex) {
  26757. if (!(0, _utils.isVideoFile)(cur)) {
  26758. return sum;
  26759. }
  26760. sources.push(Object.assign(Object.assign({}, cur), {
  26761. type: 'video'
  26762. }));
  26763. if (curIndex < index) {
  26764. sum++;
  26765. }
  26766. return sum;
  26767. }, 0);
  26768. wx.previewMedia({
  26769. sources: sources,
  26770. current: current,
  26771. fail: function fail() {
  26772. wx.showToast({
  26773. title: '预览视频失败',
  26774. icon: 'none'
  26775. });
  26776. }
  26777. });
  26778. },
  26779. onPreviewFile: function onPreviewFile(event) {
  26780. var index = event.currentTarget.dataset.index;
  26781. wx.openDocument({
  26782. filePath: this.data.lists[index].url,
  26783. showMenu: true
  26784. });
  26785. },
  26786. onClickPreview: function onClickPreview(event) {
  26787. var index = event.currentTarget.dataset.index;
  26788. var item = this.data.lists[index];
  26789. this.$emit('click-preview', Object.assign(Object.assign({}, item), this.getDetail(index)));
  26790. }
  26791. }
  26792. });
  26793. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  26794. /***/ }),
  26795. /***/ 785:
  26796. /*!***********************************************************************!*\
  26797. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/uploader/utils.js ***!
  26798. \***********************************************************************/
  26799. /*! no static exports found */
  26800. /***/ (function(module, exports, __webpack_require__) {
  26801. "use strict";
  26802. /* WEBPACK VAR INJECTION */(function(wx) {
  26803. Object.defineProperty(exports, "__esModule", {
  26804. value: true
  26805. });
  26806. exports.chooseFile = chooseFile;
  26807. exports.isImageFile = isImageFile;
  26808. exports.isVideoFile = isVideoFile;
  26809. var _utils = __webpack_require__(/*! ../common/utils */ 674);
  26810. var _validator = __webpack_require__(/*! ../common/validator */ 263);
  26811. function isImageFile(item) {
  26812. if (item.isImage != null) {
  26813. return item.isImage;
  26814. }
  26815. if (item.type) {
  26816. return item.type === 'image';
  26817. }
  26818. if (item.url) {
  26819. return (0, _validator.isImageUrl)(item.url);
  26820. }
  26821. return false;
  26822. }
  26823. function isVideoFile(item) {
  26824. if (item.isVideo != null) {
  26825. return item.isVideo;
  26826. }
  26827. if (item.type) {
  26828. return item.type === 'video';
  26829. }
  26830. if (item.url) {
  26831. return (0, _validator.isVideoUrl)(item.url);
  26832. }
  26833. return false;
  26834. }
  26835. function formatImage(res) {
  26836. return res.tempFiles.map(function (item) {
  26837. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  26838. type: 'image',
  26839. url: item.tempFilePath,
  26840. thumb: item.tempFilePath
  26841. });
  26842. });
  26843. }
  26844. function formatVideo(res) {
  26845. return [Object.assign(Object.assign({}, (0, _utils.pickExclude)(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), {
  26846. type: 'video',
  26847. url: res.tempFilePath,
  26848. thumb: res.thumbTempFilePath
  26849. })];
  26850. }
  26851. function formatMedia(res) {
  26852. return res.tempFiles.map(function (item) {
  26853. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), {
  26854. type: res.type,
  26855. url: item.tempFilePath,
  26856. thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath
  26857. });
  26858. });
  26859. }
  26860. function formatFile(res) {
  26861. return res.tempFiles.map(function (item) {
  26862. return Object.assign(Object.assign({}, (0, _utils.pickExclude)(item, ['path'])), {
  26863. url: item.path
  26864. });
  26865. });
  26866. }
  26867. function chooseFile(_ref) {
  26868. var accept = _ref.accept,
  26869. multiple = _ref.multiple,
  26870. capture = _ref.capture,
  26871. compressed = _ref.compressed,
  26872. maxDuration = _ref.maxDuration,
  26873. sizeType = _ref.sizeType,
  26874. camera = _ref.camera,
  26875. maxCount = _ref.maxCount,
  26876. mediaType = _ref.mediaType,
  26877. extension = _ref.extension;
  26878. return new Promise(function (resolve, reject) {
  26879. switch (accept) {
  26880. case 'image':
  26881. wx.chooseMedia({
  26882. count: multiple ? Math.min(maxCount, 9) : 1,
  26883. mediaType: ['image'],
  26884. sourceType: capture,
  26885. maxDuration: maxDuration,
  26886. sizeType: sizeType,
  26887. camera: camera,
  26888. success: function success(res) {
  26889. return resolve(formatImage(res));
  26890. },
  26891. fail: reject
  26892. });
  26893. break;
  26894. case 'media':
  26895. wx.chooseMedia({
  26896. count: multiple ? Math.min(maxCount, 9) : 1,
  26897. mediaType: mediaType,
  26898. sourceType: capture,
  26899. maxDuration: maxDuration,
  26900. sizeType: sizeType,
  26901. camera: camera,
  26902. success: function success(res) {
  26903. return resolve(formatMedia(res));
  26904. },
  26905. fail: reject
  26906. });
  26907. break;
  26908. case 'video':
  26909. wx.chooseVideo({
  26910. sourceType: capture,
  26911. compressed: compressed,
  26912. maxDuration: maxDuration,
  26913. camera: camera,
  26914. success: function success(res) {
  26915. return resolve(formatVideo(res));
  26916. },
  26917. fail: reject
  26918. });
  26919. break;
  26920. default:
  26921. wx.chooseMessageFile(Object.assign(Object.assign({
  26922. count: multiple ? maxCount : 1,
  26923. type: accept
  26924. }, extension ? {
  26925. extension: extension
  26926. } : {}), {
  26927. success: function success(res) {
  26928. return resolve(formatFile(res));
  26929. },
  26930. fail: reject
  26931. }));
  26932. break;
  26933. }
  26934. });
  26935. }
  26936. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  26937. /***/ }),
  26938. /***/ 786:
  26939. /*!************************************************************************!*\
  26940. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/uploader/shared.js ***!
  26941. \************************************************************************/
  26942. /*! no static exports found */
  26943. /***/ (function(module, exports, __webpack_require__) {
  26944. "use strict";
  26945. Object.defineProperty(exports, "__esModule", {
  26946. value: true
  26947. });
  26948. exports.videoProps = exports.messageFileProps = exports.mediaProps = exports.imageProps = void 0;
  26949. // props for image
  26950. var imageProps = {
  26951. sizeType: {
  26952. type: Array,
  26953. value: ['original', 'compressed']
  26954. },
  26955. capture: {
  26956. type: Array,
  26957. value: ['album', 'camera']
  26958. },
  26959. showmenu: {
  26960. type: Boolean,
  26961. value: true
  26962. }
  26963. };
  26964. // props for video
  26965. exports.imageProps = imageProps;
  26966. var videoProps = {
  26967. capture: {
  26968. type: Array,
  26969. value: ['album', 'camera']
  26970. },
  26971. compressed: {
  26972. type: Boolean,
  26973. value: true
  26974. },
  26975. maxDuration: {
  26976. type: Number,
  26977. value: 60
  26978. },
  26979. camera: {
  26980. type: String,
  26981. value: 'back'
  26982. }
  26983. };
  26984. // props for media
  26985. exports.videoProps = videoProps;
  26986. var mediaProps = {
  26987. capture: {
  26988. type: Array,
  26989. value: ['album', 'camera']
  26990. },
  26991. mediaType: {
  26992. type: Array,
  26993. value: ['image', 'video']
  26994. },
  26995. maxDuration: {
  26996. type: Number,
  26997. value: 60
  26998. },
  26999. camera: {
  27000. type: String,
  27001. value: 'back'
  27002. }
  27003. };
  27004. // props for file
  27005. exports.mediaProps = mediaProps;
  27006. var messageFileProps = {
  27007. extension: null
  27008. };
  27009. exports.messageFileProps = messageFileProps;
  27010. /***/ }),
  27011. /***/ 79:
  27012. /*!********************************************!*\
  27013. !*** D:/AAA_Company/红沙湾管理端/js_sdk/http.js ***!
  27014. \********************************************/
  27015. /*! no static exports found */
  27016. /***/ (function(module, exports, __webpack_require__) {
  27017. "use strict";
  27018. /* WEBPACK VAR INJECTION */(function(uni) {
  27019. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  27020. Object.defineProperty(exports, "__esModule", {
  27021. value: true
  27022. });
  27023. exports.addInterview = addInterview;
  27024. exports.addRectificationManagement = addRectificationManagement;
  27025. exports.addRepair = addRepair;
  27026. exports.addSafetySelfCheckingManage = addSafetySelfCheckingManage;
  27027. exports.addSafetySelfCheckingPlan = addSafetySelfCheckingPlan;
  27028. exports.addZaiti = addZaiti;
  27029. exports.addyixiang = addyixiang;
  27030. exports.bindWxOpenId = bindWxOpenId;
  27031. exports.cancelAppoint = cancelAppoint;
  27032. exports.clickCollect = clickCollect;
  27033. exports.companyECdit = companyECdit;
  27034. exports.companyExamineAdd = companyExamineAdd;
  27035. exports.confirmAudit = confirmAudit;
  27036. exports.editInterview = editInterview;
  27037. exports.editPassword = editPassword;
  27038. exports.editRepair = editRepair;
  27039. exports.editSave = editSave;
  27040. exports.editWanderAboutStatus = editWanderAboutStatus;
  27041. exports.findAllSimpleCompanies = findAllSimpleCompanies;
  27042. exports.findCompanyInfoList = findCompanyInfoList;
  27043. exports.findCompanyList = findCompanyList;
  27044. exports.findCompanyTags = findCompanyTags;
  27045. exports.findDeptList = findDeptList;
  27046. exports.findListBySaleManagementId = findListBySaleManagementId;
  27047. exports.findLongPanList = findLongPanList;
  27048. exports.findLouDongList = findLouDongList;
  27049. exports.findRectificationManagementInOutById = findRectificationManagementInOutById;
  27050. exports.findRectificationManagementInOutList = findRectificationManagementInOutList;
  27051. exports.findRoomByCondition = findRoomByCondition;
  27052. exports.findRoomInfoListByIds = findRoomInfoListByIds;
  27053. exports.findSafetySelfCheckingManageList = findSafetySelfCheckingManageList;
  27054. exports.findSafetySelfCheckingManagetById = findSafetySelfCheckingManagetById;
  27055. exports.findSafetySelfCheckingPlanById = findSafetySelfCheckingPlanById;
  27056. exports.findSafetySelfCheckingPlanList = findSafetySelfCheckingPlanList;
  27057. exports.findSuccessListBySaleManagementId = findSuccessListBySaleManagementId;
  27058. exports.findTrackUserList = findTrackUserList;
  27059. exports.findUserListByRoleWuye = findUserListByRoleWuye;
  27060. exports.findYuanQuList = findYuanQuList;
  27061. exports.getActivationRanking = getActivationRanking;
  27062. exports.getActivityById = getActivityById;
  27063. exports.getActivityById1 = getActivityById1;
  27064. exports.getAppUserMain = getAppUserMain;
  27065. exports.getBuildDetails = getBuildDetails;
  27066. exports.getByCodes = getByCodes;
  27067. exports.getBySaveStatus = getBySaveStatus;
  27068. exports.getCompanyAll = getCompanyAll;
  27069. exports.getCompanyById = getCompanyById;
  27070. exports.getCompanyHouseDetails = getCompanyHouseDetails;
  27071. exports.getCompanyTags = getCompanyTags;
  27072. exports.getCompanyTagsByQybq = getCompanyTagsByQybq;
  27073. exports.getDetial = getDetial;
  27074. exports.getDispatchToPerson = getDispatchToPerson;
  27075. exports.getInterviewDetails = getInterviewDetails;
  27076. exports.getInterviewList = getInterviewList;
  27077. exports.getMeetingAppointListAppCount = getMeetingAppointListAppCount;
  27078. exports.getPartyBranchList = getPartyBranchList;
  27079. exports.getReadSize = getReadSize;
  27080. exports.getRepairDispatchById = getRepairDispatchById;
  27081. exports.getRepairList = getRepairList;
  27082. exports.getRoomInfo = getRoomInfo;
  27083. exports.getRoomNameByCompanyId = getRoomNameByCompanyId;
  27084. exports.getSelectDeptTwo = getSelectDeptTwo;
  27085. exports.getSelectUserTwo = getSelectUserTwo;
  27086. exports.getTreeData2 = getTreeData2;
  27087. exports.getTreeData4 = getTreeData4;
  27088. exports.getTreeData6 = getTreeData6;
  27089. exports.getUserInfo = getUserInfo;
  27090. exports.getUserLocalStorageInfo = getUserLocalStorageInfo;
  27091. exports.getUserPower = getUserPower;
  27092. exports.getVenueAppointListAppCount = getVenueAppointListAppCount;
  27093. exports.getWxCompanyTags = getWxCompanyTags;
  27094. exports.getWxUserById = getWxUserById;
  27095. exports.handleList = handleList;
  27096. exports.insertRegisSignInfo = insertRegisSignInfo;
  27097. exports.interviewEscalationListAll = interviewEscalationListAll;
  27098. exports.list = list;
  27099. exports.listAllUserMain = listAllUserMain;
  27100. exports.listApp = listApp;
  27101. exports.listByModel = listByModel;
  27102. exports.listVo = listVo;
  27103. exports.login = login;
  27104. exports.readList = readList;
  27105. exports.removeTagsBind = removeTagsBind;
  27106. exports.repairList = repairList;
  27107. exports.repairList2 = repairList2;
  27108. exports.richScan = richScan;
  27109. exports.saleControllerGetById = saleControllerGetById;
  27110. exports.selectByCompanyId = selectByCompanyId;
  27111. exports.tagCategoryList = tagCategoryList;
  27112. exports.tagInfoList = tagInfoList;
  27113. exports.tagsBind = tagsBind;
  27114. exports.unbindWxId = unbindWxId;
  27115. exports.updateListRectificationManagement = updateListRectificationManagement;
  27116. exports.updateSafetySelfCheckingManage = updateSafetySelfCheckingManage;
  27117. exports.uploadPDF = uploadPDF;
  27118. exports.userList = userList;
  27119. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  27120. var _requestConfig = _interopRequireDefault(__webpack_require__(/*! ./request/requestConfig */ 53));
  27121. var _constant = __webpack_require__(/*! ../pages/utils/constant.js */ 50);
  27122. var _qs = _interopRequireDefault(__webpack_require__(/*! qs */ 80));
  27123. 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; }
  27124. 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; }
  27125. var baseUri = '/smartParkH5Server';
  27126. var parkActivity = '/wx/meetingAppoint';
  27127. function login(data) {
  27128. return _requestConfig.default.post('/wx/auth/login_by_app_main?' + _qs.default.stringify(data), {}, {});
  27129. }
  27130. function addRectificationManagement(data) {
  27131. return _requestConfig.default.post('/wx/RectificationController/addRectificationManagement', data, {});
  27132. }
  27133. function bindWxOpenId(data) {
  27134. return _requestConfig.default.post('/wx/frameUser/bindWxOpenId', data, {});
  27135. }
  27136. function getMeetingAppointListAppCount(data) {
  27137. return _requestConfig.default.post('/wx/meetingAppoint/getMeetingAppointListAppCount', {
  27138. states: '1,3'
  27139. }, {});
  27140. }
  27141. function getReadSize(data) {
  27142. return _requestConfig.default.post('/wx/workPaneController/getReadSize', data, {});
  27143. }
  27144. function getVenueAppointListAppCount(data) {
  27145. return _requestConfig.default.post('/wx/WxParkVenueAppointController/getVenueAppointListAppCount', {
  27146. states: '1,3'
  27147. }, {});
  27148. }
  27149. function editWanderAboutStatus(data) {
  27150. return _requestConfig.default.post('/wx/repair/editWanderAboutStatus', data, {});
  27151. }
  27152. function unbindWxId(data) {
  27153. return _requestConfig.default.post('/wx/frameUser/unbindWxOpenId', data, {});
  27154. }
  27155. function getUserLocalStorageInfo() {
  27156. var userInfo = JSON.parse(uni.getStorageSync("laocui_user_info"));
  27157. return userInfo;
  27158. }
  27159. function uploadPDF() {
  27160. uni.showLoading({
  27161. title: '加载中',
  27162. mask: true
  27163. });
  27164. return new Promise(function (resolve, reject) {
  27165. uni.chooseMessageFile({
  27166. count: 1,
  27167. //默认100
  27168. type: 'file',
  27169. success: function success(res) {
  27170. uni.uploadFile({
  27171. url: _constant.BASE_URI + "/wx/fileController/upload",
  27172. filePath: res.tempFiles[0].path,
  27173. name: "file",
  27174. formData: {
  27175. user: "test"
  27176. },
  27177. success: function success(successRes) {
  27178. // 上传完成需要更新 fileList
  27179. var data = JSON.parse(successRes.data);
  27180. uni.showToast({
  27181. title: '提交成功',
  27182. duration: 500
  27183. });
  27184. resolve({
  27185. url: data.data[0],
  27186. name: res.tempFiles[0].name
  27187. });
  27188. },
  27189. fail: function fail(res) {}
  27190. });
  27191. },
  27192. fail: function fail(e) {
  27193. uni.showToast({
  27194. title: '提交成功',
  27195. duration: 0
  27196. });
  27197. }
  27198. });
  27199. });
  27200. }
  27201. function getBuildDetails(data) {
  27202. return _requestConfig.default.post('/wx/MnpBuildingController/getById', data, {});
  27203. }
  27204. function addZaiti(data) {
  27205. return _requestConfig.default.post('/wx/ParkRoomController/add', data, {});
  27206. }
  27207. function getPartyBranchList(data) {
  27208. return _requestConfig.default.post('/wx/partyBranch/getPartyBranchList', data, {});
  27209. }
  27210. function selectByCompanyId(data) {
  27211. return _requestConfig.default.post('/wx/SocialCarrierController/selectByCompanyId', data, {});
  27212. }
  27213. function getRoomNameByCompanyId(data) {
  27214. return _requestConfig.default.post('/wx/ParkContractManageController/getRoomNameByCompanyId', data, {});
  27215. }
  27216. function getTreeData2(data) {
  27217. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData2', data, {});
  27218. }
  27219. function getTreeData6(data) {
  27220. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData6', data, {});
  27221. }
  27222. function getTreeData4(data) {
  27223. return _requestConfig.default.post('/wx/ParkInfoController/getTreeData4', data, {});
  27224. }
  27225. function getActivationRanking(data) {
  27226. return _requestConfig.default.post('/wx/partyBranch/getActivationRanking', data, {});
  27227. }
  27228. function findRectificationManagementInOutList(data) {
  27229. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutList', data, {});
  27230. }
  27231. function findRectificationManagementInOutById(e) {
  27232. return _requestConfig.default.post('/wx/RectificationController/findRectificationManagementInOutById', {
  27233. id: e
  27234. }, {});
  27235. }
  27236. function repairList(data) {
  27237. return _requestConfig.default.post('/wx/repair/serviceList', data, {});
  27238. }
  27239. function repairList2(data) {
  27240. return _requestConfig.default.post('/wx/repair/list', data, {});
  27241. }
  27242. function addSafetySelfCheckingManage(data) {
  27243. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingManage', data, {});
  27244. }
  27245. function updateSafetySelfCheckingManage(data) {
  27246. return _requestConfig.default.post('/wx/SafetyController/updateSafetySelfCheckingManage', data, {});
  27247. }
  27248. function editRepair(data) {
  27249. return _requestConfig.default.post('/wx/repair/edit', data, {});
  27250. }
  27251. function addRepair(data) {
  27252. return _requestConfig.default.post('/wx/repair/add', data, {});
  27253. }
  27254. function getRepairDispatchById(id) {
  27255. return _requestConfig.default.post('/wx/repair/getById', {
  27256. id: id
  27257. }, {});
  27258. }
  27259. function getDispatchToPerson(data) {
  27260. return _requestConfig.default.post('/wx/repair/getDispatchToPerson', data, {});
  27261. }
  27262. function getCompanyById(data) {
  27263. return _requestConfig.default.post('/wx/repair/getCompanyById', data, {});
  27264. }
  27265. function getWxCompanyTags(e) {
  27266. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  27267. }
  27268. function tagsBind(e) {
  27269. return _requestConfig.default.post('/wx/MnpTagInfoController/bind', e, {});
  27270. }
  27271. function getDetial(e) {
  27272. return _requestConfig.default.post('/wx/meetingAppoint/meetingAppointDetail', e, {});
  27273. }
  27274. function saleControllerGetById(e) {
  27275. return _requestConfig.default.post('/wx/SaleController/getById', {
  27276. id: e
  27277. }, {});
  27278. }
  27279. function getAppUserMain(data) {
  27280. return _requestConfig.default.post('/wx/company/getById', data, {});
  27281. }
  27282. function confirmAudit(data) {
  27283. return _requestConfig.default.post('/wx/meetingAppoint/confirmAudit', data, {});
  27284. }
  27285. function getCompanyTags(e) {
  27286. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags', e, {});
  27287. }
  27288. function getCompanyTagsByQybq(qybq) {
  27289. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTagsByQybq', {
  27290. qybq: qybq
  27291. }, {});
  27292. }
  27293. function companyECdit(data) {
  27294. return _requestConfig.default.post('/wx/company/edit', data, {});
  27295. }
  27296. function tagInfoList(e) {
  27297. return _requestConfig.default.post('/wx/MnpTagInfoController/tagInfoList', e, {});
  27298. }
  27299. function findDeptList() {
  27300. return _requestConfig.default.post('/wx/SaleController/findDeptList', {}, {});
  27301. }
  27302. function tagCategoryList() {
  27303. return _requestConfig.default.post('/wx/MnpTagController/tagCategoryList', {}, {});
  27304. }
  27305. function interviewEscalationListAll(id) {
  27306. return _requestConfig.default.post('/wx/interviewEscalation/listAll', {
  27307. companyId: id
  27308. }, {});
  27309. }
  27310. function getUserInfo(data) {
  27311. var laocui_user_info = JSON.parse(uni.getStorageSync('laocui_user_info'));
  27312. return _requestConfig.default.post('/wx/frameUser/getMyInfo?userId=' + laocui_user_info.user.id, {}, {});
  27313. }
  27314. function getWxUserById(userId) {
  27315. return _requestConfig.default.get('/wx/frameUser/getWxUserById?userId=' + userId, {});
  27316. }
  27317. function getRoomInfo(e) {
  27318. return _requestConfig.default.post('/wx/ParkRoomController/getById', {
  27319. id: e
  27320. }, {});
  27321. }
  27322. function getCompanyHouseDetails(e) {
  27323. return _requestConfig.default.post('/wx/company/getById', {
  27324. id: e
  27325. }, {});
  27326. }
  27327. function handleList(e) {
  27328. return _requestConfig.default.post('/wx/workPaneController/handleList', e, {});
  27329. }
  27330. function readList(e) {
  27331. return _requestConfig.default.post('/wx/workPaneController/readList', e, {});
  27332. }
  27333. // handleList?
  27334. function findCompanyTags(e) {
  27335. return _requestConfig.default.post('/wx/MnpTagInfoController/getCompanyTags/' + e, {}, {});
  27336. }
  27337. function removeTagsBind(e) {
  27338. return _requestConfig.default.post('/wx/MnpTagInfoController/removeBind', e, {});
  27339. }
  27340. function addInterview(e) {
  27341. return _requestConfig.default.post("/wx/interviewEscalation/add", e, {});
  27342. }
  27343. function editInterview(e) {
  27344. return _requestConfig.default.post("/wx/interviewEscalation/edit", e, {});
  27345. }
  27346. function getInterviewList(e) {
  27347. return _requestConfig.default.post("/wx/interviewEscalation/list", e, {});
  27348. }
  27349. function getInterviewDetails(e) {
  27350. return _requestConfig.default.post("/wx/interviewEscalation/getById", {
  27351. id: e
  27352. }, {});
  27353. }
  27354. function findSafetySelfCheckingPlanById(e) {
  27355. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanById", {
  27356. id: e
  27357. }, {});
  27358. }
  27359. //
  27360. function findSafetySelfCheckingPlanList(e) {
  27361. return _requestConfig.default.post("/wx/SafetyController/findSafetySelfCheckingPlanList", e, {});
  27362. }
  27363. function getBySaveStatus(e) {
  27364. return _requestConfig.default.post("/wx/interviewEscalation/getBySaveStatus", {
  27365. createdBy: e
  27366. }, {});
  27367. }
  27368. function companyExamineAdd(e) {
  27369. return _requestConfig.default.post("/wx/company/add", e, {});
  27370. }
  27371. function listByModel(e) {
  27372. return _requestConfig.default.post('/wx/SaleController/findSaleManagementListByRoomId', e, {});
  27373. }
  27374. function listVo(e) {
  27375. // 查询园区列表,不需要参数
  27376. return _requestConfig.default.post('/wx/company/listVo', e, {});
  27377. }
  27378. // /wx/SafetyController/addSafetySelfCheckingPlan
  27379. function addSafetySelfCheckingPlan(e) {
  27380. // 查询园区列表,不需要参数
  27381. return _requestConfig.default.post('/wx/SafetyController/addSafetySelfCheckingPlan', _objectSpread({}, e), {});
  27382. }
  27383. function findSafetySelfCheckingManagetById(e) {
  27384. // 查询园区列表,不需要参数
  27385. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManagetById', {
  27386. id: e
  27387. }, {});
  27388. }
  27389. function findSafetySelfCheckingManageList(e) {
  27390. // 查询园区列表,不需要参数
  27391. return _requestConfig.default.post('/wx/SafetyController/findSafetySelfCheckingManageList', e, {});
  27392. }
  27393. function findYuanQuList() {
  27394. // 查询园区列表,不需要参数
  27395. return _requestConfig.default.post('/wx/SaleController/findYuanQuList', {}, {});
  27396. }
  27397. function findLongPanList(id) {
  27398. // 用园区ID查询楼盘列表
  27399. return _requestConfig.default.post('/wx/SaleController/findLouPanList', {
  27400. id: id
  27401. }, {});
  27402. }
  27403. function findLouDongList(id) {
  27404. // 用园区ID查询楼盘列表
  27405. return _requestConfig.default.post('/wx/SaleController/findLouDongList', {
  27406. id: id
  27407. }, {});
  27408. }
  27409. function clickCollect(e) {
  27410. return _requestConfig.default.post('/wx/parkActivity/clickCollect', e, {});
  27411. }
  27412. function insertRegisSignInfo(e) {
  27413. return _requestConfig.default.post('/wx/parkActivity/insertRegisSignInfo', e, {});
  27414. }
  27415. function richScan(e) {
  27416. return _requestConfig.default.post('/wx/parkActivity/richScan', e, {});
  27417. }
  27418. function getActivityById(id, signInCode, userId) {
  27419. return _requestConfig.default.get('/wx/parkActivity/getBySignInCode?id=' + id + '&userId=' + userId + "&signInCode=" + signInCode, {}, {});
  27420. }
  27421. function getActivityById1(id, signInCode, userId) {
  27422. // /wx/parkActivity/getActivityById?id=1183797041860444160&userId=SCNjNSP7LJ9aarv1cNw
  27423. return _requestConfig.default.get('/wx/parkActivity/getActivityById?id=' + id + '&userId=' + userId, {}, {});
  27424. }
  27425. // /wx/userPower/getUserPower?userId=1088765543780974592
  27426. function getUserPower(e) {
  27427. return _requestConfig.default.post('/wx/userPower/getUserPower', {
  27428. userId: e
  27429. }, {});
  27430. }
  27431. function editPassword(e) {
  27432. return _requestConfig.default.post('/wx/frameUser/editPassword', e, {});
  27433. }
  27434. function updateListRectificationManagement(e) {
  27435. return _requestConfig.default.post('/wx/RectificationController/updateListRectificationManagement', e, {});
  27436. }
  27437. function findListBySaleManagementId(e) {
  27438. return _requestConfig.default.post('/wx/SaleController/findListBySaleManagementId', e, {});
  27439. }
  27440. function findSuccessListBySaleManagementId(e) {
  27441. return _requestConfig.default.post('/wx/SaleController/findSuccessListBySaleManagementId', e, {});
  27442. }
  27443. // /wx/RectificationController/findUserListByRoleWuye
  27444. function findUserListByRoleWuye() {
  27445. // 用园区ID查询楼盘列表
  27446. return _requestConfig.default.post('/wx/RectificationController/findUserListByRoleWuye', {}, {});
  27447. }
  27448. function listAllUserMain() {
  27449. // 用园区ID查询楼盘列表
  27450. return _requestConfig.default.post('/wx/UserMainExpandController/listAllUserMain', {}, {});
  27451. }
  27452. function userList(e) {
  27453. // http://192.168.2.112:9011/wx/frameUser/userList
  27454. return _requestConfig.default.post('/wx/frameUser/userList', e, {});
  27455. }
  27456. function findAllSimpleCompanies(e) {
  27457. // http://192.168.2.112:9011/wx/frameUser/userList
  27458. return _requestConfig.default.post('/wx/company/findAllSimpleCompanies', {
  27459. searchInfo: e.qymc,
  27460. pageNum: 1,
  27461. pageSize: 10000
  27462. }, {});
  27463. }
  27464. function findTrackUserList() {
  27465. // http://192.168.2.112:9011/wx/frameUser/userList
  27466. return _requestConfig.default.post('/wx/SaleController/findTrackUserList', {}, {});
  27467. }
  27468. function getSelectUserTwo(e) {
  27469. // 用园区ID查询楼盘列表
  27470. return _requestConfig.default.post('/wx/frameUser/getSelectUserTwo', {
  27471. searchName: e
  27472. }, {});
  27473. }
  27474. function getSelectDeptTwo(e) {
  27475. // 用园区ID查询楼盘列表
  27476. return _requestConfig.default.post('/wx/frameUser/getSelectDeptTwo', {
  27477. searchName: e
  27478. }, {});
  27479. }
  27480. function findRoomInfoListByIds(e) {
  27481. // 用园区ID查询楼盘列表
  27482. return _requestConfig.default.post('/wx/SaleController/findRoomInfoListByIds', {
  27483. ids: e
  27484. }, {});
  27485. }
  27486. function findCompanyList() {
  27487. // 用园区ID查询楼盘列表
  27488. return _requestConfig.default.post('/wx/SaleController/findCompanyList', {}, {});
  27489. }
  27490. function addyixiang(e) {
  27491. return _requestConfig.default.post('/wx/SaleController/add', e, {});
  27492. }
  27493. function editSave(e) {
  27494. return _requestConfig.default.post('/wx/SaleController/editSave', e, {});
  27495. }
  27496. function findCompanyInfoList(data) {
  27497. return _requestConfig.default.post("/wx/SaleController/findCompanyInfoList", data, {});
  27498. }
  27499. function findRoomByCondition(params) {
  27500. // 用园区ID查询楼盘列表
  27501. return _requestConfig.default.post('/wx/SaleController/findRoomByCondition', params, {});
  27502. }
  27503. function getCompanyAll(qymc) {
  27504. return _requestConfig.default.post('/wx/company/listAll', {
  27505. qymc: qymc ? qymc : ""
  27506. }, {});
  27507. }
  27508. function getByCodes(params) {
  27509. // 用园区ID查询楼盘列表
  27510. return _requestConfig.default.post('/wx/sysDict/getByCodes', {
  27511. codes: params
  27512. }, {});
  27513. }
  27514. function list(data) {
  27515. return _requestConfig.default.post(parkActivity + '/getMeetingAppointList', data, {});
  27516. }
  27517. function listApp(data) {
  27518. return _requestConfig.default.post(parkActivity + '/getMeetingAppointListApp', data, {});
  27519. }
  27520. function cancelAppoint(data) {
  27521. return _requestConfig.default.post(parkActivity + '/cancelAppoint', data, {});
  27522. }
  27523. // /wx/SaleController/
  27524. function getRepairList(data) {
  27525. return _requestConfig.default.post('/wx/repair/list', data, {});
  27526. }
  27527. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  27528. /***/ }),
  27529. /***/ 792:
  27530. /*!*********************************************************************!*\
  27531. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/picker/index.js ***!
  27532. \*********************************************************************/
  27533. /*! no static exports found */
  27534. /***/ (function(module, exports, __webpack_require__) {
  27535. "use strict";
  27536. var _component = __webpack_require__(/*! ../common/component */ 671);
  27537. var _shared = __webpack_require__(/*! ./shared */ 793);
  27538. (0, _component.VantComponent)({
  27539. classes: ['active-class', 'toolbar-class', 'column-class'],
  27540. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  27541. valueKey: {
  27542. type: String,
  27543. value: 'text'
  27544. },
  27545. toolbarPosition: {
  27546. type: String,
  27547. value: 'top'
  27548. },
  27549. defaultIndex: {
  27550. type: Number,
  27551. value: 0
  27552. },
  27553. columns: {
  27554. type: Array,
  27555. value: [],
  27556. observer: function observer() {
  27557. var columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  27558. this.simple = columns.length && !columns[0].values;
  27559. if (Array.isArray(this.children) && this.children.length) {
  27560. this.setColumns().catch(function () {});
  27561. }
  27562. }
  27563. }
  27564. }),
  27565. beforeCreate: function beforeCreate() {
  27566. var _this = this;
  27567. Object.defineProperty(this, 'children', {
  27568. get: function get() {
  27569. return _this.selectAllComponents('.van-picker__column') || [];
  27570. }
  27571. });
  27572. },
  27573. methods: {
  27574. noop: function noop() {},
  27575. setColumns: function setColumns() {
  27576. var _this2 = this;
  27577. var data = this.data;
  27578. var columns = this.simple ? [{
  27579. values: data.columns
  27580. }] : data.columns;
  27581. var stack = columns.map(function (column, index) {
  27582. return _this2.setColumnValues(index, column.values);
  27583. });
  27584. return Promise.all(stack);
  27585. },
  27586. emit: function emit(event) {
  27587. var type = event.currentTarget.dataset.type;
  27588. if (this.simple) {
  27589. this.$emit(type, {
  27590. value: this.getColumnValue(0),
  27591. index: this.getColumnIndex(0)
  27592. });
  27593. } else {
  27594. this.$emit(type, {
  27595. value: this.getValues(),
  27596. index: this.getIndexes()
  27597. });
  27598. }
  27599. },
  27600. onChange: function onChange(event) {
  27601. if (this.simple) {
  27602. this.$emit('change', {
  27603. picker: this,
  27604. value: this.getColumnValue(0),
  27605. index: this.getColumnIndex(0)
  27606. });
  27607. } else {
  27608. this.$emit('change', {
  27609. picker: this,
  27610. value: this.getValues(),
  27611. index: event.currentTarget.dataset.index
  27612. });
  27613. }
  27614. },
  27615. // get column instance by index
  27616. getColumn: function getColumn(index) {
  27617. return this.children[index];
  27618. },
  27619. // get column value by index
  27620. getColumnValue: function getColumnValue(index) {
  27621. var column = this.getColumn(index);
  27622. return column && column.getValue();
  27623. },
  27624. // set column value by index
  27625. setColumnValue: function setColumnValue(index, value) {
  27626. var column = this.getColumn(index);
  27627. if (column == null) {
  27628. return Promise.reject(new Error('setColumnValue: 对应列不存在'));
  27629. }
  27630. return column.setValue(value);
  27631. },
  27632. // get column option index by column index
  27633. getColumnIndex: function getColumnIndex(columnIndex) {
  27634. return (this.getColumn(columnIndex) || {}).data.currentIndex;
  27635. },
  27636. // set column option index by column index
  27637. setColumnIndex: function setColumnIndex(columnIndex, optionIndex) {
  27638. var column = this.getColumn(columnIndex);
  27639. if (column == null) {
  27640. return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
  27641. }
  27642. return column.setIndex(optionIndex);
  27643. },
  27644. // get options of column by index
  27645. getColumnValues: function getColumnValues(index) {
  27646. return (this.children[index] || {}).data.options;
  27647. },
  27648. // set options of column by index
  27649. setColumnValues: function setColumnValues(index, options) {
  27650. var needReset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  27651. var column = this.children[index];
  27652. if (column == null) {
  27653. return Promise.reject(new Error('setColumnValues: 对应列不存在'));
  27654. }
  27655. var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
  27656. if (isSame) {
  27657. return Promise.resolve();
  27658. }
  27659. return column.set({
  27660. options: options
  27661. }).then(function () {
  27662. if (needReset) {
  27663. column.setIndex(0);
  27664. }
  27665. });
  27666. },
  27667. // get values of all columns
  27668. getValues: function getValues() {
  27669. return this.children.map(function (child) {
  27670. return child.getValue();
  27671. });
  27672. },
  27673. // set values of all columns
  27674. setValues: function setValues(values) {
  27675. var _this3 = this;
  27676. var stack = values.map(function (value, index) {
  27677. return _this3.setColumnValue(index, value);
  27678. });
  27679. return Promise.all(stack);
  27680. },
  27681. // get indexes of all columns
  27682. getIndexes: function getIndexes() {
  27683. return this.children.map(function (child) {
  27684. return child.data.currentIndex;
  27685. });
  27686. },
  27687. // set indexes of all columns
  27688. setIndexes: function setIndexes(indexes) {
  27689. var _this4 = this;
  27690. var stack = indexes.map(function (optionIndex, columnIndex) {
  27691. return _this4.setColumnIndex(columnIndex, optionIndex);
  27692. });
  27693. return Promise.all(stack);
  27694. }
  27695. }
  27696. });
  27697. /***/ }),
  27698. /***/ 793:
  27699. /*!**********************************************************************!*\
  27700. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/picker/shared.js ***!
  27701. \**********************************************************************/
  27702. /*! no static exports found */
  27703. /***/ (function(module, exports, __webpack_require__) {
  27704. "use strict";
  27705. Object.defineProperty(exports, "__esModule", {
  27706. value: true
  27707. });
  27708. exports.pickerProps = void 0;
  27709. var pickerProps = {
  27710. title: String,
  27711. loading: Boolean,
  27712. showToolbar: Boolean,
  27713. cancelButtonText: {
  27714. type: String,
  27715. value: '取消'
  27716. },
  27717. confirmButtonText: {
  27718. type: String,
  27719. value: '确认'
  27720. },
  27721. visibleItemCount: {
  27722. type: Number,
  27723. value: 6
  27724. },
  27725. itemHeight: {
  27726. type: Number,
  27727. value: 44
  27728. }
  27729. };
  27730. exports.pickerProps = pickerProps;
  27731. /***/ }),
  27732. /***/ 8:
  27733. /*!***************************************************************************!*\
  27734. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  27735. \***************************************************************************/
  27736. /*! no static exports found */
  27737. /***/ (function(module, exports, __webpack_require__) {
  27738. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  27739. function _unsupportedIterableToArray(o, minLen) {
  27740. if (!o) return;
  27741. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  27742. var n = Object.prototype.toString.call(o).slice(8, -1);
  27743. if (n === "Object" && o.constructor) n = o.constructor.name;
  27744. if (n === "Map" || n === "Set") return Array.from(o);
  27745. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  27746. }
  27747. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  27748. /***/ }),
  27749. /***/ 80:
  27750. /*!**************************************!*\
  27751. !*** ./node_modules/qs/lib/index.js ***!
  27752. \**************************************/
  27753. /*! no static exports found */
  27754. /***/ (function(module, exports, __webpack_require__) {
  27755. "use strict";
  27756. var stringify = __webpack_require__(/*! ./stringify */ 81);
  27757. var parse = __webpack_require__(/*! ./parse */ 95);
  27758. var formats = __webpack_require__(/*! ./formats */ 94);
  27759. module.exports = {
  27760. formats: formats,
  27761. parse: parse,
  27762. stringify: stringify
  27763. };
  27764. /***/ }),
  27765. /***/ 81:
  27766. /*!******************************************!*\
  27767. !*** ./node_modules/qs/lib/stringify.js ***!
  27768. \******************************************/
  27769. /*! no static exports found */
  27770. /***/ (function(module, exports, __webpack_require__) {
  27771. "use strict";
  27772. var getSideChannel = __webpack_require__(/*! side-channel */ 82);
  27773. var utils = __webpack_require__(/*! ./utils */ 93);
  27774. var formats = __webpack_require__(/*! ./formats */ 94);
  27775. var has = Object.prototype.hasOwnProperty;
  27776. var arrayPrefixGenerators = {
  27777. brackets: function brackets(prefix) {
  27778. return prefix + '[]';
  27779. },
  27780. comma: 'comma',
  27781. indices: function indices(prefix, key) {
  27782. return prefix + '[' + key + ']';
  27783. },
  27784. repeat: function repeat(prefix) {
  27785. return prefix;
  27786. }
  27787. };
  27788. var isArray = Array.isArray;
  27789. var split = String.prototype.split;
  27790. var push = Array.prototype.push;
  27791. var pushToArray = function (arr, valueOrArray) {
  27792. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  27793. };
  27794. var toISO = Date.prototype.toISOString;
  27795. var defaultFormat = formats['default'];
  27796. var defaults = {
  27797. addQueryPrefix: false,
  27798. allowDots: false,
  27799. charset: 'utf-8',
  27800. charsetSentinel: false,
  27801. delimiter: '&',
  27802. encode: true,
  27803. encoder: utils.encode,
  27804. encodeValuesOnly: false,
  27805. format: defaultFormat,
  27806. formatter: formats.formatters[defaultFormat],
  27807. // deprecated
  27808. indices: false,
  27809. serializeDate: function serializeDate(date) {
  27810. return toISO.call(date);
  27811. },
  27812. skipNulls: false,
  27813. strictNullHandling: false
  27814. };
  27815. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  27816. return typeof v === 'string'
  27817. || typeof v === 'number'
  27818. || typeof v === 'boolean'
  27819. || typeof v === 'symbol'
  27820. || typeof v === 'bigint';
  27821. };
  27822. var sentinel = {};
  27823. var stringify = function stringify(
  27824. object,
  27825. prefix,
  27826. generateArrayPrefix,
  27827. commaRoundTrip,
  27828. strictNullHandling,
  27829. skipNulls,
  27830. encoder,
  27831. filter,
  27832. sort,
  27833. allowDots,
  27834. serializeDate,
  27835. format,
  27836. formatter,
  27837. encodeValuesOnly,
  27838. charset,
  27839. sideChannel
  27840. ) {
  27841. var obj = object;
  27842. var tmpSc = sideChannel;
  27843. var step = 0;
  27844. var findFlag = false;
  27845. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  27846. // Where object last appeared in the ref tree
  27847. var pos = tmpSc.get(object);
  27848. step += 1;
  27849. if (typeof pos !== 'undefined') {
  27850. if (pos === step) {
  27851. throw new RangeError('Cyclic object value');
  27852. } else {
  27853. findFlag = true; // Break while
  27854. }
  27855. }
  27856. if (typeof tmpSc.get(sentinel) === 'undefined') {
  27857. step = 0;
  27858. }
  27859. }
  27860. if (typeof filter === 'function') {
  27861. obj = filter(prefix, obj);
  27862. } else if (obj instanceof Date) {
  27863. obj = serializeDate(obj);
  27864. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  27865. obj = utils.maybeMap(obj, function (value) {
  27866. if (value instanceof Date) {
  27867. return serializeDate(value);
  27868. }
  27869. return value;
  27870. });
  27871. }
  27872. if (obj === null) {
  27873. if (strictNullHandling) {
  27874. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  27875. }
  27876. obj = '';
  27877. }
  27878. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  27879. if (encoder) {
  27880. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  27881. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  27882. var valuesArray = split.call(String(obj), ',');
  27883. var valuesJoined = '';
  27884. for (var i = 0; i < valuesArray.length; ++i) {
  27885. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  27886. }
  27887. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
  27888. }
  27889. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  27890. }
  27891. return [formatter(prefix) + '=' + formatter(String(obj))];
  27892. }
  27893. var values = [];
  27894. if (typeof obj === 'undefined') {
  27895. return values;
  27896. }
  27897. var objKeys;
  27898. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  27899. // we need to join elements in
  27900. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  27901. } else if (isArray(filter)) {
  27902. objKeys = filter;
  27903. } else {
  27904. var keys = Object.keys(obj);
  27905. objKeys = sort ? keys.sort(sort) : keys;
  27906. }
  27907. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
  27908. for (var j = 0; j < objKeys.length; ++j) {
  27909. var key = objKeys[j];
  27910. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  27911. if (skipNulls && value === null) {
  27912. continue;
  27913. }
  27914. var keyPrefix = isArray(obj)
  27915. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
  27916. : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
  27917. sideChannel.set(object, step);
  27918. var valueSideChannel = getSideChannel();
  27919. valueSideChannel.set(sentinel, sideChannel);
  27920. pushToArray(values, stringify(
  27921. value,
  27922. keyPrefix,
  27923. generateArrayPrefix,
  27924. commaRoundTrip,
  27925. strictNullHandling,
  27926. skipNulls,
  27927. encoder,
  27928. filter,
  27929. sort,
  27930. allowDots,
  27931. serializeDate,
  27932. format,
  27933. formatter,
  27934. encodeValuesOnly,
  27935. charset,
  27936. valueSideChannel
  27937. ));
  27938. }
  27939. return values;
  27940. };
  27941. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  27942. if (!opts) {
  27943. return defaults;
  27944. }
  27945. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  27946. throw new TypeError('Encoder has to be a function.');
  27947. }
  27948. var charset = opts.charset || defaults.charset;
  27949. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  27950. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  27951. }
  27952. var format = formats['default'];
  27953. if (typeof opts.format !== 'undefined') {
  27954. if (!has.call(formats.formatters, opts.format)) {
  27955. throw new TypeError('Unknown format option provided.');
  27956. }
  27957. format = opts.format;
  27958. }
  27959. var formatter = formats.formatters[format];
  27960. var filter = defaults.filter;
  27961. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  27962. filter = opts.filter;
  27963. }
  27964. return {
  27965. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  27966. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  27967. charset: charset,
  27968. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  27969. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  27970. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  27971. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  27972. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  27973. filter: filter,
  27974. format: format,
  27975. formatter: formatter,
  27976. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  27977. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  27978. sort: typeof opts.sort === 'function' ? opts.sort : null,
  27979. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  27980. };
  27981. };
  27982. module.exports = function (object, opts) {
  27983. var obj = object;
  27984. var options = normalizeStringifyOptions(opts);
  27985. var objKeys;
  27986. var filter;
  27987. if (typeof options.filter === 'function') {
  27988. filter = options.filter;
  27989. obj = filter('', obj);
  27990. } else if (isArray(options.filter)) {
  27991. filter = options.filter;
  27992. objKeys = filter;
  27993. }
  27994. var keys = [];
  27995. if (typeof obj !== 'object' || obj === null) {
  27996. return '';
  27997. }
  27998. var arrayFormat;
  27999. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  28000. arrayFormat = opts.arrayFormat;
  28001. } else if (opts && 'indices' in opts) {
  28002. arrayFormat = opts.indices ? 'indices' : 'repeat';
  28003. } else {
  28004. arrayFormat = 'indices';
  28005. }
  28006. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  28007. if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
  28008. throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
  28009. }
  28010. var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
  28011. if (!objKeys) {
  28012. objKeys = Object.keys(obj);
  28013. }
  28014. if (options.sort) {
  28015. objKeys.sort(options.sort);
  28016. }
  28017. var sideChannel = getSideChannel();
  28018. for (var i = 0; i < objKeys.length; ++i) {
  28019. var key = objKeys[i];
  28020. if (options.skipNulls && obj[key] === null) {
  28021. continue;
  28022. }
  28023. pushToArray(keys, stringify(
  28024. obj[key],
  28025. key,
  28026. generateArrayPrefix,
  28027. commaRoundTrip,
  28028. options.strictNullHandling,
  28029. options.skipNulls,
  28030. options.encode ? options.encoder : null,
  28031. options.filter,
  28032. options.sort,
  28033. options.allowDots,
  28034. options.serializeDate,
  28035. options.format,
  28036. options.formatter,
  28037. options.encodeValuesOnly,
  28038. options.charset,
  28039. sideChannel
  28040. ));
  28041. }
  28042. var joined = keys.join(options.delimiter);
  28043. var prefix = options.addQueryPrefix === true ? '?' : '';
  28044. if (options.charsetSentinel) {
  28045. if (options.charset === 'iso-8859-1') {
  28046. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  28047. prefix += 'utf8=%26%2310003%3B&';
  28048. } else {
  28049. // encodeURIComponent('✓')
  28050. prefix += 'utf8=%E2%9C%93&';
  28051. }
  28052. }
  28053. return joined.length > 0 ? prefix + joined : '';
  28054. };
  28055. /***/ }),
  28056. /***/ 82:
  28057. /*!********************************************!*\
  28058. !*** ./node_modules/side-channel/index.js ***!
  28059. \********************************************/
  28060. /*! no static exports found */
  28061. /***/ (function(module, exports, __webpack_require__) {
  28062. "use strict";
  28063. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 83);
  28064. var callBound = __webpack_require__(/*! call-bind/callBound */ 89);
  28065. var inspect = __webpack_require__(/*! object-inspect */ 91);
  28066. var $TypeError = GetIntrinsic('%TypeError%');
  28067. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  28068. var $Map = GetIntrinsic('%Map%', true);
  28069. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  28070. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  28071. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  28072. var $mapGet = callBound('Map.prototype.get', true);
  28073. var $mapSet = callBound('Map.prototype.set', true);
  28074. var $mapHas = callBound('Map.prototype.has', true);
  28075. /*
  28076. * This function traverses the list returning the node corresponding to the
  28077. * given key.
  28078. *
  28079. * That node is also moved to the head of the list, so that if it's accessed
  28080. * again we don't need to traverse the whole list. By doing so, all the recently
  28081. * used nodes can be accessed relatively quickly.
  28082. */
  28083. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  28084. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  28085. if (curr.key === key) {
  28086. prev.next = curr.next;
  28087. curr.next = list.next;
  28088. list.next = curr; // eslint-disable-line no-param-reassign
  28089. return curr;
  28090. }
  28091. }
  28092. };
  28093. var listGet = function (objects, key) {
  28094. var node = listGetNode(objects, key);
  28095. return node && node.value;
  28096. };
  28097. var listSet = function (objects, key, value) {
  28098. var node = listGetNode(objects, key);
  28099. if (node) {
  28100. node.value = value;
  28101. } else {
  28102. // Prepend the new node to the beginning of the list
  28103. objects.next = { // eslint-disable-line no-param-reassign
  28104. key: key,
  28105. next: objects.next,
  28106. value: value
  28107. };
  28108. }
  28109. };
  28110. var listHas = function (objects, key) {
  28111. return !!listGetNode(objects, key);
  28112. };
  28113. module.exports = function getSideChannel() {
  28114. var $wm;
  28115. var $m;
  28116. var $o;
  28117. var channel = {
  28118. assert: function (key) {
  28119. if (!channel.has(key)) {
  28120. throw new $TypeError('Side channel does not contain ' + inspect(key));
  28121. }
  28122. },
  28123. get: function (key) { // eslint-disable-line consistent-return
  28124. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  28125. if ($wm) {
  28126. return $weakMapGet($wm, key);
  28127. }
  28128. } else if ($Map) {
  28129. if ($m) {
  28130. return $mapGet($m, key);
  28131. }
  28132. } else {
  28133. if ($o) { // eslint-disable-line no-lonely-if
  28134. return listGet($o, key);
  28135. }
  28136. }
  28137. },
  28138. has: function (key) {
  28139. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  28140. if ($wm) {
  28141. return $weakMapHas($wm, key);
  28142. }
  28143. } else if ($Map) {
  28144. if ($m) {
  28145. return $mapHas($m, key);
  28146. }
  28147. } else {
  28148. if ($o) { // eslint-disable-line no-lonely-if
  28149. return listHas($o, key);
  28150. }
  28151. }
  28152. return false;
  28153. },
  28154. set: function (key, value) {
  28155. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  28156. if (!$wm) {
  28157. $wm = new $WeakMap();
  28158. }
  28159. $weakMapSet($wm, key, value);
  28160. } else if ($Map) {
  28161. if (!$m) {
  28162. $m = new $Map();
  28163. }
  28164. $mapSet($m, key, value);
  28165. } else {
  28166. if (!$o) {
  28167. /*
  28168. * Initialize the linked list as an empty node, so that we don't have
  28169. * to special-case handling of the first node: we can always refer to
  28170. * it as (previous node).next, instead of something like (list).head
  28171. */
  28172. $o = { key: {}, next: null };
  28173. }
  28174. listSet($o, key, value);
  28175. }
  28176. }
  28177. };
  28178. return channel;
  28179. };
  28180. /***/ }),
  28181. /***/ 820:
  28182. /*!******************************************************************!*\
  28183. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/tab/index.js ***!
  28184. \******************************************************************/
  28185. /*! no static exports found */
  28186. /***/ (function(module, exports, __webpack_require__) {
  28187. "use strict";
  28188. var _relation = __webpack_require__(/*! ../common/relation */ 678);
  28189. var _component = __webpack_require__(/*! ../common/component */ 671);
  28190. (0, _component.VantComponent)({
  28191. relation: (0, _relation.useParent)('tabs'),
  28192. props: {
  28193. dot: {
  28194. type: Boolean,
  28195. observer: 'update'
  28196. },
  28197. info: {
  28198. type: null,
  28199. observer: 'update'
  28200. },
  28201. title: {
  28202. type: String,
  28203. observer: 'update'
  28204. },
  28205. disabled: {
  28206. type: Boolean,
  28207. observer: 'update'
  28208. },
  28209. titleStyle: {
  28210. type: String,
  28211. observer: 'update'
  28212. },
  28213. name: {
  28214. type: null,
  28215. value: ''
  28216. }
  28217. },
  28218. data: {
  28219. active: false
  28220. },
  28221. methods: {
  28222. getComputedName: function getComputedName() {
  28223. if (this.data.name !== '') {
  28224. return this.data.name;
  28225. }
  28226. return this.index;
  28227. },
  28228. updateRender: function updateRender(active, parent) {
  28229. var parentData = parent.data;
  28230. this.inited = this.inited || active;
  28231. this.setData({
  28232. active: active,
  28233. shouldRender: this.inited || !parentData.lazyRender,
  28234. shouldShow: active || parentData.animated
  28235. });
  28236. },
  28237. update: function update() {
  28238. if (this.parent) {
  28239. this.parent.updateTabs();
  28240. }
  28241. }
  28242. }
  28243. });
  28244. /***/ }),
  28245. /***/ 821:
  28246. /*!*******************************************************************!*\
  28247. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/tabs/index.js ***!
  28248. \*******************************************************************/
  28249. /*! no static exports found */
  28250. /***/ (function(module, exports, __webpack_require__) {
  28251. "use strict";
  28252. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28253. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  28254. var _component = __webpack_require__(/*! ../common/component */ 671);
  28255. var _touch = __webpack_require__(/*! ../mixins/touch */ 822);
  28256. var _utils = __webpack_require__(/*! ../common/utils */ 674);
  28257. var _validator = __webpack_require__(/*! ../common/validator */ 263);
  28258. var _relation = __webpack_require__(/*! ../common/relation */ 678);
  28259. (0, _component.VantComponent)({
  28260. mixins: [_touch.touch],
  28261. classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class', 'wrap-class'],
  28262. relation: (0, _relation.useChildren)('tab', function () {
  28263. this.updateTabs();
  28264. }),
  28265. props: {
  28266. sticky: Boolean,
  28267. border: Boolean,
  28268. swipeable: Boolean,
  28269. titleActiveColor: String,
  28270. titleInactiveColor: String,
  28271. color: String,
  28272. animated: {
  28273. type: Boolean,
  28274. observer: function observer() {
  28275. var _this = this;
  28276. this.children.forEach(function (child, index) {
  28277. return child.updateRender(index === _this.data.currentIndex, _this);
  28278. });
  28279. }
  28280. },
  28281. lineWidth: {
  28282. type: null,
  28283. value: 40,
  28284. observer: 'resize'
  28285. },
  28286. lineHeight: {
  28287. type: null,
  28288. value: -1
  28289. },
  28290. active: {
  28291. type: null,
  28292. value: 0,
  28293. observer: function observer(name) {
  28294. if (name !== this.getCurrentName()) {
  28295. this.setCurrentIndexByName(name);
  28296. }
  28297. }
  28298. },
  28299. type: {
  28300. type: String,
  28301. value: 'line'
  28302. },
  28303. ellipsis: {
  28304. type: Boolean,
  28305. value: true
  28306. },
  28307. duration: {
  28308. type: Number,
  28309. value: 0.3
  28310. },
  28311. zIndex: {
  28312. type: Number,
  28313. value: 1
  28314. },
  28315. swipeThreshold: {
  28316. type: Number,
  28317. value: 5,
  28318. observer: function observer(value) {
  28319. this.setData({
  28320. scrollable: this.children.length > value || !this.data.ellipsis
  28321. });
  28322. }
  28323. },
  28324. offsetTop: {
  28325. type: Number,
  28326. value: 0
  28327. },
  28328. lazyRender: {
  28329. type: Boolean,
  28330. value: true
  28331. },
  28332. useBeforeChange: {
  28333. type: Boolean,
  28334. value: false
  28335. }
  28336. },
  28337. data: {
  28338. tabs: [],
  28339. scrollLeft: 0,
  28340. scrollable: false,
  28341. currentIndex: 0,
  28342. container: null,
  28343. skipTransition: true,
  28344. scrollWithAnimation: false,
  28345. lineOffsetLeft: 0,
  28346. inited: false
  28347. },
  28348. mounted: function mounted() {
  28349. var _this2 = this;
  28350. (0, _utils.requestAnimationFrame)(function () {
  28351. _this2.swiping = true;
  28352. _this2.setData({
  28353. container: function container() {
  28354. return _this2.createSelectorQuery().select('.van-tabs');
  28355. }
  28356. });
  28357. _this2.resize();
  28358. _this2.scrollIntoView();
  28359. });
  28360. },
  28361. methods: {
  28362. updateTabs: function updateTabs() {
  28363. var _this$children = this.children,
  28364. children = _this$children === void 0 ? [] : _this$children,
  28365. data = this.data;
  28366. this.setData({
  28367. tabs: children.map(function (child) {
  28368. return child.data;
  28369. }),
  28370. scrollable: this.children.length > data.swipeThreshold || !data.ellipsis
  28371. });
  28372. this.setCurrentIndexByName(data.active || this.getCurrentName());
  28373. },
  28374. trigger: function trigger(eventName, child) {
  28375. var currentIndex = this.data.currentIndex;
  28376. var data = this.getChildData(currentIndex, child);
  28377. if (!(0, _validator.isDef)(data)) {
  28378. return;
  28379. }
  28380. this.$emit(eventName, data);
  28381. },
  28382. onTap: function onTap(event) {
  28383. var _this3 = this;
  28384. var index = event.currentTarget.dataset.index;
  28385. var child = this.children[index];
  28386. if (child.data.disabled) {
  28387. this.trigger('disabled', child);
  28388. return;
  28389. }
  28390. this.onBeforeChange(index).then(function () {
  28391. _this3.setCurrentIndex(index);
  28392. (0, _utils.nextTick)(function () {
  28393. _this3.trigger('click');
  28394. });
  28395. });
  28396. },
  28397. // correct the index of active tab
  28398. setCurrentIndexByName: function setCurrentIndexByName(name) {
  28399. var _this$children2 = this.children,
  28400. children = _this$children2 === void 0 ? [] : _this$children2;
  28401. var matched = children.filter(function (child) {
  28402. return child.getComputedName() === name;
  28403. });
  28404. if (matched.length) {
  28405. this.setCurrentIndex(matched[0].index);
  28406. }
  28407. },
  28408. setCurrentIndex: function setCurrentIndex(currentIndex) {
  28409. var _this4 = this;
  28410. var data = this.data,
  28411. _this$children3 = this.children,
  28412. children = _this$children3 === void 0 ? [] : _this$children3;
  28413. if (!(0, _validator.isDef)(currentIndex) || currentIndex >= children.length || currentIndex < 0) {
  28414. return;
  28415. }
  28416. (0, _utils.groupSetData)(this, function () {
  28417. children.forEach(function (item, index) {
  28418. var active = index === currentIndex;
  28419. if (active !== item.data.active || !item.inited) {
  28420. item.updateRender(active, _this4);
  28421. }
  28422. });
  28423. });
  28424. if (currentIndex === data.currentIndex) {
  28425. return;
  28426. }
  28427. var shouldEmitChange = data.currentIndex !== null;
  28428. this.setData({
  28429. currentIndex: currentIndex
  28430. });
  28431. (0, _utils.requestAnimationFrame)(function () {
  28432. _this4.resize();
  28433. _this4.scrollIntoView();
  28434. });
  28435. (0, _utils.nextTick)(function () {
  28436. _this4.trigger('input');
  28437. if (shouldEmitChange) {
  28438. _this4.trigger('change');
  28439. }
  28440. });
  28441. },
  28442. getCurrentName: function getCurrentName() {
  28443. var activeTab = this.children[this.data.currentIndex];
  28444. if (activeTab) {
  28445. return activeTab.getComputedName();
  28446. }
  28447. },
  28448. resize: function resize() {
  28449. var _this5 = this;
  28450. if (this.data.type !== 'line') {
  28451. return;
  28452. }
  28453. var _this$data = this.data,
  28454. currentIndex = _this$data.currentIndex,
  28455. ellipsis = _this$data.ellipsis,
  28456. skipTransition = _this$data.skipTransition;
  28457. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__line')]).then(function (_ref) {
  28458. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  28459. _ref2$ = _ref2[0],
  28460. rects = _ref2$ === void 0 ? [] : _ref2$,
  28461. lineRect = _ref2[1];
  28462. var rect = rects[currentIndex];
  28463. if (rect == null) {
  28464. return;
  28465. }
  28466. var lineOffsetLeft = rects.slice(0, currentIndex).reduce(function (prev, curr) {
  28467. return prev + curr.width;
  28468. }, 0);
  28469. lineOffsetLeft += (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
  28470. _this5.setData({
  28471. lineOffsetLeft: lineOffsetLeft,
  28472. inited: true
  28473. });
  28474. _this5.swiping = true;
  28475. if (skipTransition) {
  28476. // waiting transition end
  28477. setTimeout(function () {
  28478. _this5.setData({
  28479. skipTransition: false
  28480. });
  28481. }, _this5.data.duration);
  28482. }
  28483. });
  28484. },
  28485. // scroll active tab into view
  28486. scrollIntoView: function scrollIntoView() {
  28487. var _this6 = this;
  28488. var _this$data2 = this.data,
  28489. currentIndex = _this$data2.currentIndex,
  28490. scrollable = _this$data2.scrollable,
  28491. scrollWithAnimation = _this$data2.scrollWithAnimation;
  28492. if (!scrollable) {
  28493. return;
  28494. }
  28495. Promise.all([(0, _utils.getAllRect)(this, '.van-tab'), (0, _utils.getRect)(this, '.van-tabs__nav')]).then(function (_ref3) {
  28496. var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
  28497. tabRects = _ref4[0],
  28498. navRect = _ref4[1];
  28499. var tabRect = tabRects[currentIndex];
  28500. var offsetLeft = tabRects.slice(0, currentIndex).reduce(function (prev, curr) {
  28501. return prev + curr.width;
  28502. }, 0);
  28503. _this6.setData({
  28504. scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2
  28505. });
  28506. if (!scrollWithAnimation) {
  28507. (0, _utils.nextTick)(function () {
  28508. _this6.setData({
  28509. scrollWithAnimation: true
  28510. });
  28511. });
  28512. }
  28513. });
  28514. },
  28515. onTouchScroll: function onTouchScroll(event) {
  28516. this.$emit('scroll', event.detail);
  28517. },
  28518. onTouchStart: function onTouchStart(event) {
  28519. if (!this.data.swipeable) return;
  28520. this.swiping = true;
  28521. this.touchStart(event);
  28522. },
  28523. onTouchMove: function onTouchMove(event) {
  28524. if (!this.data.swipeable || !this.swiping) return;
  28525. this.touchMove(event);
  28526. },
  28527. // watch swipe touch end
  28528. onTouchEnd: function onTouchEnd() {
  28529. var _this7 = this;
  28530. if (!this.data.swipeable || !this.swiping) return;
  28531. var direction = this.direction,
  28532. deltaX = this.deltaX,
  28533. offsetX = this.offsetX;
  28534. var minSwipeDistance = 50;
  28535. if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
  28536. var index = this.getAvaiableTab(deltaX);
  28537. if (index !== -1) {
  28538. this.onBeforeChange(index).then(function () {
  28539. return _this7.setCurrentIndex(index);
  28540. });
  28541. }
  28542. }
  28543. this.swiping = false;
  28544. },
  28545. getAvaiableTab: function getAvaiableTab(direction) {
  28546. var _this$data3 = this.data,
  28547. tabs = _this$data3.tabs,
  28548. currentIndex = _this$data3.currentIndex;
  28549. var step = direction > 0 ? -1 : 1;
  28550. for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
  28551. var index = currentIndex + i;
  28552. if (index >= 0 && index < tabs.length && tabs[index] && !tabs[index].disabled) {
  28553. return index;
  28554. }
  28555. }
  28556. return -1;
  28557. },
  28558. onBeforeChange: function onBeforeChange(index) {
  28559. var _this8 = this;
  28560. var useBeforeChange = this.data.useBeforeChange;
  28561. if (!useBeforeChange) {
  28562. return Promise.resolve();
  28563. }
  28564. return new Promise(function (resolve, reject) {
  28565. _this8.$emit('before-change', Object.assign(Object.assign({}, _this8.getChildData(index)), {
  28566. callback: function callback(status) {
  28567. return status ? resolve() : reject();
  28568. }
  28569. }));
  28570. });
  28571. },
  28572. getChildData: function getChildData(index, child) {
  28573. var currentChild = child || this.children[index];
  28574. if (!(0, _validator.isDef)(currentChild)) {
  28575. return;
  28576. }
  28577. return {
  28578. index: currentChild.index,
  28579. name: currentChild.getComputedName(),
  28580. title: currentChild.data.title
  28581. };
  28582. }
  28583. }
  28584. });
  28585. /***/ }),
  28586. /***/ 822:
  28587. /*!*********************************************************************!*\
  28588. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/mixins/touch.js ***!
  28589. \*********************************************************************/
  28590. /*! no static exports found */
  28591. /***/ (function(module, exports, __webpack_require__) {
  28592. "use strict";
  28593. Object.defineProperty(exports, "__esModule", {
  28594. value: true
  28595. });
  28596. exports.touch = void 0;
  28597. // @ts-nocheck
  28598. var MIN_DISTANCE = 10;
  28599. function getDirection(x, y) {
  28600. if (x > y && x > MIN_DISTANCE) {
  28601. return 'horizontal';
  28602. }
  28603. if (y > x && y > MIN_DISTANCE) {
  28604. return 'vertical';
  28605. }
  28606. return '';
  28607. }
  28608. var touch = Behavior({
  28609. methods: {
  28610. resetTouchStatus: function resetTouchStatus() {
  28611. this.direction = '';
  28612. this.deltaX = 0;
  28613. this.deltaY = 0;
  28614. this.offsetX = 0;
  28615. this.offsetY = 0;
  28616. },
  28617. touchStart: function touchStart(event) {
  28618. this.resetTouchStatus();
  28619. var touch = event.touches[0];
  28620. this.startX = touch.clientX;
  28621. this.startY = touch.clientY;
  28622. },
  28623. touchMove: function touchMove(event) {
  28624. var touch = event.touches[0];
  28625. this.deltaX = touch.clientX - this.startX;
  28626. this.deltaY = touch.clientY - this.startY;
  28627. this.offsetX = Math.abs(this.deltaX);
  28628. this.offsetY = Math.abs(this.deltaY);
  28629. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  28630. }
  28631. }
  28632. });
  28633. exports.touch = touch;
  28634. /***/ }),
  28635. /***/ 823:
  28636. /*!******************************************************************!*\
  28637. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/row/index.js ***!
  28638. \******************************************************************/
  28639. /*! no static exports found */
  28640. /***/ (function(module, exports, __webpack_require__) {
  28641. "use strict";
  28642. var _component = __webpack_require__(/*! ../common/component */ 671);
  28643. var _relation = __webpack_require__(/*! ../common/relation */ 678);
  28644. (0, _component.VantComponent)({
  28645. relation: (0, _relation.useChildren)('col', function (target) {
  28646. var gutter = this.data.gutter;
  28647. if (gutter) {
  28648. target.setData({
  28649. gutter: gutter
  28650. });
  28651. }
  28652. }),
  28653. props: {
  28654. gutter: {
  28655. type: Number,
  28656. observer: 'setGutter'
  28657. }
  28658. },
  28659. methods: {
  28660. setGutter: function setGutter() {
  28661. var _this = this;
  28662. this.children.forEach(function (col) {
  28663. col.setData(_this.data);
  28664. });
  28665. }
  28666. }
  28667. });
  28668. /***/ }),
  28669. /***/ 824:
  28670. /*!******************************************************************!*\
  28671. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/col/index.js ***!
  28672. \******************************************************************/
  28673. /*! no static exports found */
  28674. /***/ (function(module, exports, __webpack_require__) {
  28675. "use strict";
  28676. var _relation = __webpack_require__(/*! ../common/relation */ 678);
  28677. var _component = __webpack_require__(/*! ../common/component */ 671);
  28678. (0, _component.VantComponent)({
  28679. relation: (0, _relation.useParent)('row'),
  28680. props: {
  28681. span: Number,
  28682. offset: Number
  28683. }
  28684. });
  28685. /***/ }),
  28686. /***/ 83:
  28687. /*!*********************************************!*\
  28688. !*** ./node_modules/get-intrinsic/index.js ***!
  28689. \*********************************************/
  28690. /*! no static exports found */
  28691. /***/ (function(module, exports, __webpack_require__) {
  28692. "use strict";
  28693. var undefined;
  28694. var $SyntaxError = SyntaxError;
  28695. var $Function = Function;
  28696. var $TypeError = TypeError;
  28697. // eslint-disable-next-line consistent-return
  28698. var getEvalledConstructor = function (expressionSyntax) {
  28699. try {
  28700. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  28701. } catch (e) {}
  28702. };
  28703. var $gOPD = Object.getOwnPropertyDescriptor;
  28704. if ($gOPD) {
  28705. try {
  28706. $gOPD({}, '');
  28707. } catch (e) {
  28708. $gOPD = null; // this is IE 8, which has a broken gOPD
  28709. }
  28710. }
  28711. var throwTypeError = function () {
  28712. throw new $TypeError();
  28713. };
  28714. var ThrowTypeError = $gOPD
  28715. ? (function () {
  28716. try {
  28717. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  28718. arguments.callee; // IE 8 does not throw here
  28719. return throwTypeError;
  28720. } catch (calleeThrows) {
  28721. try {
  28722. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  28723. return $gOPD(arguments, 'callee').get;
  28724. } catch (gOPDthrows) {
  28725. return throwTypeError;
  28726. }
  28727. }
  28728. }())
  28729. : throwTypeError;
  28730. var hasSymbols = __webpack_require__(/*! has-symbols */ 84)();
  28731. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  28732. var needsEval = {};
  28733. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  28734. var INTRINSICS = {
  28735. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  28736. '%Array%': Array,
  28737. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  28738. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  28739. '%AsyncFromSyncIteratorPrototype%': undefined,
  28740. '%AsyncFunction%': needsEval,
  28741. '%AsyncGenerator%': needsEval,
  28742. '%AsyncGeneratorFunction%': needsEval,
  28743. '%AsyncIteratorPrototype%': needsEval,
  28744. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  28745. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  28746. '%Boolean%': Boolean,
  28747. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  28748. '%Date%': Date,
  28749. '%decodeURI%': decodeURI,
  28750. '%decodeURIComponent%': decodeURIComponent,
  28751. '%encodeURI%': encodeURI,
  28752. '%encodeURIComponent%': encodeURIComponent,
  28753. '%Error%': Error,
  28754. '%eval%': eval, // eslint-disable-line no-eval
  28755. '%EvalError%': EvalError,
  28756. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  28757. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  28758. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  28759. '%Function%': $Function,
  28760. '%GeneratorFunction%': needsEval,
  28761. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  28762. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  28763. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  28764. '%isFinite%': isFinite,
  28765. '%isNaN%': isNaN,
  28766. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  28767. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  28768. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  28769. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  28770. '%Math%': Math,
  28771. '%Number%': Number,
  28772. '%Object%': Object,
  28773. '%parseFloat%': parseFloat,
  28774. '%parseInt%': parseInt,
  28775. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  28776. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  28777. '%RangeError%': RangeError,
  28778. '%ReferenceError%': ReferenceError,
  28779. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  28780. '%RegExp%': RegExp,
  28781. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  28782. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  28783. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  28784. '%String%': String,
  28785. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  28786. '%Symbol%': hasSymbols ? Symbol : undefined,
  28787. '%SyntaxError%': $SyntaxError,
  28788. '%ThrowTypeError%': ThrowTypeError,
  28789. '%TypedArray%': TypedArray,
  28790. '%TypeError%': $TypeError,
  28791. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  28792. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  28793. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  28794. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  28795. '%URIError%': URIError,
  28796. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  28797. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  28798. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  28799. };
  28800. var doEval = function doEval(name) {
  28801. var value;
  28802. if (name === '%AsyncFunction%') {
  28803. value = getEvalledConstructor('async function () {}');
  28804. } else if (name === '%GeneratorFunction%') {
  28805. value = getEvalledConstructor('function* () {}');
  28806. } else if (name === '%AsyncGeneratorFunction%') {
  28807. value = getEvalledConstructor('async function* () {}');
  28808. } else if (name === '%AsyncGenerator%') {
  28809. var fn = doEval('%AsyncGeneratorFunction%');
  28810. if (fn) {
  28811. value = fn.prototype;
  28812. }
  28813. } else if (name === '%AsyncIteratorPrototype%') {
  28814. var gen = doEval('%AsyncGenerator%');
  28815. if (gen) {
  28816. value = getProto(gen.prototype);
  28817. }
  28818. }
  28819. INTRINSICS[name] = value;
  28820. return value;
  28821. };
  28822. var LEGACY_ALIASES = {
  28823. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  28824. '%ArrayPrototype%': ['Array', 'prototype'],
  28825. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  28826. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  28827. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  28828. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  28829. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  28830. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  28831. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  28832. '%BooleanPrototype%': ['Boolean', 'prototype'],
  28833. '%DataViewPrototype%': ['DataView', 'prototype'],
  28834. '%DatePrototype%': ['Date', 'prototype'],
  28835. '%ErrorPrototype%': ['Error', 'prototype'],
  28836. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  28837. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  28838. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  28839. '%FunctionPrototype%': ['Function', 'prototype'],
  28840. '%Generator%': ['GeneratorFunction', 'prototype'],
  28841. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  28842. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  28843. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  28844. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  28845. '%JSONParse%': ['JSON', 'parse'],
  28846. '%JSONStringify%': ['JSON', 'stringify'],
  28847. '%MapPrototype%': ['Map', 'prototype'],
  28848. '%NumberPrototype%': ['Number', 'prototype'],
  28849. '%ObjectPrototype%': ['Object', 'prototype'],
  28850. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  28851. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  28852. '%PromisePrototype%': ['Promise', 'prototype'],
  28853. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  28854. '%Promise_all%': ['Promise', 'all'],
  28855. '%Promise_reject%': ['Promise', 'reject'],
  28856. '%Promise_resolve%': ['Promise', 'resolve'],
  28857. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  28858. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  28859. '%RegExpPrototype%': ['RegExp', 'prototype'],
  28860. '%SetPrototype%': ['Set', 'prototype'],
  28861. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  28862. '%StringPrototype%': ['String', 'prototype'],
  28863. '%SymbolPrototype%': ['Symbol', 'prototype'],
  28864. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  28865. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  28866. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  28867. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  28868. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  28869. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  28870. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  28871. '%URIErrorPrototype%': ['URIError', 'prototype'],
  28872. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  28873. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  28874. };
  28875. var bind = __webpack_require__(/*! function-bind */ 86);
  28876. var hasOwn = __webpack_require__(/*! has */ 88);
  28877. var $concat = bind.call(Function.call, Array.prototype.concat);
  28878. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  28879. var $replace = bind.call(Function.call, String.prototype.replace);
  28880. var $strSlice = bind.call(Function.call, String.prototype.slice);
  28881. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  28882. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  28883. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  28884. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  28885. var stringToPath = function stringToPath(string) {
  28886. var first = $strSlice(string, 0, 1);
  28887. var last = $strSlice(string, -1);
  28888. if (first === '%' && last !== '%') {
  28889. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  28890. } else if (last === '%' && first !== '%') {
  28891. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  28892. }
  28893. var result = [];
  28894. $replace(string, rePropName, function (match, number, quote, subString) {
  28895. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  28896. });
  28897. return result;
  28898. };
  28899. /* end adaptation */
  28900. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  28901. var intrinsicName = name;
  28902. var alias;
  28903. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  28904. alias = LEGACY_ALIASES[intrinsicName];
  28905. intrinsicName = '%' + alias[0] + '%';
  28906. }
  28907. if (hasOwn(INTRINSICS, intrinsicName)) {
  28908. var value = INTRINSICS[intrinsicName];
  28909. if (value === needsEval) {
  28910. value = doEval(intrinsicName);
  28911. }
  28912. if (typeof value === 'undefined' && !allowMissing) {
  28913. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  28914. }
  28915. return {
  28916. alias: alias,
  28917. name: intrinsicName,
  28918. value: value
  28919. };
  28920. }
  28921. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  28922. };
  28923. module.exports = function GetIntrinsic(name, allowMissing) {
  28924. if (typeof name !== 'string' || name.length === 0) {
  28925. throw new $TypeError('intrinsic name must be a non-empty string');
  28926. }
  28927. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  28928. throw new $TypeError('"allowMissing" argument must be a boolean');
  28929. }
  28930. if ($exec(/^%?[^%]*%?$/, name) === null) {
  28931. throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
  28932. }
  28933. var parts = stringToPath(name);
  28934. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  28935. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  28936. var intrinsicRealName = intrinsic.name;
  28937. var value = intrinsic.value;
  28938. var skipFurtherCaching = false;
  28939. var alias = intrinsic.alias;
  28940. if (alias) {
  28941. intrinsicBaseName = alias[0];
  28942. $spliceApply(parts, $concat([0, 1], alias));
  28943. }
  28944. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  28945. var part = parts[i];
  28946. var first = $strSlice(part, 0, 1);
  28947. var last = $strSlice(part, -1);
  28948. if (
  28949. (
  28950. (first === '"' || first === "'" || first === '`')
  28951. || (last === '"' || last === "'" || last === '`')
  28952. )
  28953. && first !== last
  28954. ) {
  28955. throw new $SyntaxError('property names with quotes must have matching quotes');
  28956. }
  28957. if (part === 'constructor' || !isOwn) {
  28958. skipFurtherCaching = true;
  28959. }
  28960. intrinsicBaseName += '.' + part;
  28961. intrinsicRealName = '%' + intrinsicBaseName + '%';
  28962. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  28963. value = INTRINSICS[intrinsicRealName];
  28964. } else if (value != null) {
  28965. if (!(part in value)) {
  28966. if (!allowMissing) {
  28967. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  28968. }
  28969. return void undefined;
  28970. }
  28971. if ($gOPD && (i + 1) >= parts.length) {
  28972. var desc = $gOPD(value, part);
  28973. isOwn = !!desc;
  28974. // By convention, when a data property is converted to an accessor
  28975. // property to emulate a data property that does not suffer from
  28976. // the override mistake, that accessor's getter is marked with
  28977. // an `originalValue` property. Here, when we detect this, we
  28978. // uphold the illusion by pretending to see that original data
  28979. // property, i.e., returning the value rather than the getter
  28980. // itself.
  28981. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  28982. value = desc.get;
  28983. } else {
  28984. value = value[part];
  28985. }
  28986. } else {
  28987. isOwn = hasOwn(value, part);
  28988. value = value[part];
  28989. }
  28990. if (isOwn && !skipFurtherCaching) {
  28991. INTRINSICS[intrinsicRealName] = value;
  28992. }
  28993. }
  28994. }
  28995. return value;
  28996. };
  28997. /***/ }),
  28998. /***/ 84:
  28999. /*!*******************************************!*\
  29000. !*** ./node_modules/has-symbols/index.js ***!
  29001. \*******************************************/
  29002. /*! no static exports found */
  29003. /***/ (function(module, exports, __webpack_require__) {
  29004. "use strict";
  29005. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  29006. var hasSymbolSham = __webpack_require__(/*! ./shams */ 85);
  29007. module.exports = function hasNativeSymbols() {
  29008. if (typeof origSymbol !== 'function') { return false; }
  29009. if (typeof Symbol !== 'function') { return false; }
  29010. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  29011. if (typeof Symbol('bar') !== 'symbol') { return false; }
  29012. return hasSymbolSham();
  29013. };
  29014. /***/ }),
  29015. /***/ 85:
  29016. /*!*******************************************!*\
  29017. !*** ./node_modules/has-symbols/shams.js ***!
  29018. \*******************************************/
  29019. /*! no static exports found */
  29020. /***/ (function(module, exports, __webpack_require__) {
  29021. "use strict";
  29022. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  29023. module.exports = function hasSymbols() {
  29024. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  29025. if (typeof Symbol.iterator === 'symbol') { return true; }
  29026. var obj = {};
  29027. var sym = Symbol('test');
  29028. var symObj = Object(sym);
  29029. if (typeof sym === 'string') { return false; }
  29030. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  29031. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  29032. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  29033. // if (sym instanceof Symbol) { return false; }
  29034. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  29035. // if (!(symObj instanceof Symbol)) { return false; }
  29036. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  29037. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  29038. var symVal = 42;
  29039. obj[sym] = symVal;
  29040. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  29041. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  29042. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  29043. var syms = Object.getOwnPropertySymbols(obj);
  29044. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  29045. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  29046. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  29047. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  29048. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  29049. }
  29050. return true;
  29051. };
  29052. /***/ }),
  29053. /***/ 86:
  29054. /*!*********************************************!*\
  29055. !*** ./node_modules/function-bind/index.js ***!
  29056. \*********************************************/
  29057. /*! no static exports found */
  29058. /***/ (function(module, exports, __webpack_require__) {
  29059. "use strict";
  29060. var implementation = __webpack_require__(/*! ./implementation */ 87);
  29061. module.exports = Function.prototype.bind || implementation;
  29062. /***/ }),
  29063. /***/ 87:
  29064. /*!******************************************************!*\
  29065. !*** ./node_modules/function-bind/implementation.js ***!
  29066. \******************************************************/
  29067. /*! no static exports found */
  29068. /***/ (function(module, exports, __webpack_require__) {
  29069. "use strict";
  29070. /* eslint no-invalid-this: 1 */
  29071. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  29072. var slice = Array.prototype.slice;
  29073. var toStr = Object.prototype.toString;
  29074. var funcType = '[object Function]';
  29075. module.exports = function bind(that) {
  29076. var target = this;
  29077. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  29078. throw new TypeError(ERROR_MESSAGE + target);
  29079. }
  29080. var args = slice.call(arguments, 1);
  29081. var bound;
  29082. var binder = function () {
  29083. if (this instanceof bound) {
  29084. var result = target.apply(
  29085. this,
  29086. args.concat(slice.call(arguments))
  29087. );
  29088. if (Object(result) === result) {
  29089. return result;
  29090. }
  29091. return this;
  29092. } else {
  29093. return target.apply(
  29094. that,
  29095. args.concat(slice.call(arguments))
  29096. );
  29097. }
  29098. };
  29099. var boundLength = Math.max(0, target.length - args.length);
  29100. var boundArgs = [];
  29101. for (var i = 0; i < boundLength; i++) {
  29102. boundArgs.push('$' + i);
  29103. }
  29104. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  29105. if (target.prototype) {
  29106. var Empty = function Empty() {};
  29107. Empty.prototype = target.prototype;
  29108. bound.prototype = new Empty();
  29109. Empty.prototype = null;
  29110. }
  29111. return bound;
  29112. };
  29113. /***/ }),
  29114. /***/ 88:
  29115. /*!***************************************!*\
  29116. !*** ./node_modules/has/src/index.js ***!
  29117. \***************************************/
  29118. /*! no static exports found */
  29119. /***/ (function(module, exports, __webpack_require__) {
  29120. "use strict";
  29121. var bind = __webpack_require__(/*! function-bind */ 86);
  29122. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  29123. /***/ }),
  29124. /***/ 883:
  29125. /*!************************************************************!*\
  29126. !*** D:/AAA_Company/红沙湾管理端/components/zaiti-tree/tools.js ***!
  29127. \************************************************************/
  29128. /*! no static exports found */
  29129. /***/ (function(module, exports, __webpack_require__) {
  29130. "use strict";
  29131. /* WEBPACK VAR INJECTION */(function(uni) {
  29132. Object.defineProperty(exports, "__esModule", {
  29133. value: true
  29134. });
  29135. exports.default = void 0;
  29136. var _default = {
  29137. /** 将平面树json转为带children的json
  29138. * @param {Object} a
  29139. * @param {Object} idStr
  29140. * @param {Object} pidStr
  29141. * @param {Object} childrenStr
  29142. */
  29143. transData: function transData(a, idStr, pidStr, childrenStr) {
  29144. var r = [],
  29145. hash = {},
  29146. id = idStr,
  29147. pid = pidStr,
  29148. children = childrenStr,
  29149. i = 0,
  29150. j = 0,
  29151. len = a.length;
  29152. for (; i < len; i++) {
  29153. hash[a[i][id]] = a[i];
  29154. }
  29155. for (; j < len; j++) {
  29156. var aVal = a[j],
  29157. hashVP = hash[aVal[pid]];
  29158. if (hashVP) {
  29159. !hashVP[children] && (hashVP[children] = []);
  29160. hashVP[children].push(aVal);
  29161. } else {
  29162. r.push(aVal);
  29163. }
  29164. }
  29165. return r;
  29166. },
  29167. /**从字典缓存中返回数组用于页面上作下拉,
  29168. * @param {Object} k 字典名称
  29169. * @param {Object} v value取哪个字典属性
  29170. * @param {Object} t
  29171. */
  29172. arrByDic: function arrByDic(k, v, t) {
  29173. var map = uni.getStorageSync("dic");
  29174. var arr = map[k];
  29175. var r = [];
  29176. arr.forEach(function (obj) {
  29177. r.push({
  29178. value: obj[v],
  29179. text: obj[t]
  29180. });
  29181. });
  29182. return r;
  29183. },
  29184. dateFmtyyyyMMddHHmmss: function dateFmtyyyyMMddHHmmss(target) {
  29185. var date = new Date(target);
  29186. var y = date.getFullYear(); // 年
  29187. var MM = date.getMonth() + 1; // 月
  29188. MM = MM < 10 ? '0' + MM : MM;
  29189. var d = date.getDate(); // 日
  29190. d = d < 10 ? '0' + d : d;
  29191. var h = date.getHours(); // 时
  29192. h = h < 10 ? '0' + h : h;
  29193. var m = date.getMinutes(); // 分
  29194. m = m < 10 ? '0' + m : m;
  29195. var s = date.getSeconds(); // 秒
  29196. s = s < 10 ? '0' + s : s;
  29197. return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s;
  29198. },
  29199. // 比较时间大小
  29200. compareDate: function compareDate(date1, date2) {
  29201. var oDate1 = new Date(date1);
  29202. var oDate2 = new Date(date2);
  29203. if (oDate1.getTime() > oDate2.getTime()) {
  29204. return true; //第一个大
  29205. } else {
  29206. return false; //第二个大
  29207. }
  29208. },
  29209. uploadPreview: function uploadPreview(url, lists, name) {
  29210. var ext = url.substring(url.lastIndexOf(".") + 1);
  29211. ext = ext.toLowerCase();
  29212. console.log(ext);
  29213. if (ext == "pdf") {
  29214. uni.navigateTo({
  29215. url: "/pages/pdf/index?url=" + url
  29216. });
  29217. }
  29218. }
  29219. };
  29220. exports.default = _default;
  29221. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29222. /***/ }),
  29223. /***/ 886:
  29224. /*!********************************************************************!*\
  29225. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/field/index.js ***!
  29226. \********************************************************************/
  29227. /*! no static exports found */
  29228. /***/ (function(module, exports, __webpack_require__) {
  29229. "use strict";
  29230. var _utils = __webpack_require__(/*! ../common/utils */ 674);
  29231. var _component = __webpack_require__(/*! ../common/component */ 671);
  29232. var _props = __webpack_require__(/*! ./props */ 887);
  29233. (0, _component.VantComponent)({
  29234. field: true,
  29235. classes: ['input-class', 'right-icon-class', 'label-class'],
  29236. props: Object.assign(Object.assign(Object.assign(Object.assign({}, _props.commonProps), _props.inputProps), _props.textareaProps), {
  29237. size: String,
  29238. icon: String,
  29239. label: String,
  29240. error: Boolean,
  29241. center: Boolean,
  29242. isLink: Boolean,
  29243. leftIcon: String,
  29244. rightIcon: String,
  29245. autosize: null,
  29246. required: Boolean,
  29247. iconClass: String,
  29248. clickable: Boolean,
  29249. inputAlign: String,
  29250. customStyle: String,
  29251. errorMessage: String,
  29252. arrowDirection: String,
  29253. showWordLimit: Boolean,
  29254. errorMessageAlign: String,
  29255. readonly: {
  29256. type: Boolean,
  29257. observer: 'setShowClear'
  29258. },
  29259. clearable: {
  29260. type: Boolean,
  29261. observer: 'setShowClear'
  29262. },
  29263. clearTrigger: {
  29264. type: String,
  29265. value: 'focus'
  29266. },
  29267. border: {
  29268. type: Boolean,
  29269. value: true
  29270. },
  29271. titleWidth: {
  29272. type: String,
  29273. value: '6.2em'
  29274. },
  29275. clearIcon: {
  29276. type: String,
  29277. value: 'clear'
  29278. },
  29279. extraEventParams: {
  29280. type: Boolean,
  29281. value: false
  29282. }
  29283. }),
  29284. data: {
  29285. focused: false,
  29286. innerValue: '',
  29287. showClear: false
  29288. },
  29289. created: function created() {
  29290. this.value = this.data.value;
  29291. this.setData({
  29292. innerValue: this.value
  29293. });
  29294. },
  29295. methods: {
  29296. formatValue: function formatValue(value) {
  29297. var maxlength = this.data.maxlength;
  29298. if (maxlength !== -1 && value.length > maxlength) {
  29299. return value.slice(0, maxlength);
  29300. }
  29301. return value;
  29302. },
  29303. onInput: function onInput(event) {
  29304. var _ref = event.detail || {},
  29305. _ref$value = _ref.value,
  29306. value = _ref$value === void 0 ? '' : _ref$value;
  29307. var formatValue = this.formatValue(value);
  29308. this.value = formatValue;
  29309. this.setShowClear();
  29310. return this.emitChange(Object.assign(Object.assign({}, event.detail), {
  29311. value: formatValue
  29312. }));
  29313. },
  29314. onFocus: function onFocus(event) {
  29315. this.focused = true;
  29316. this.setShowClear();
  29317. this.$emit('focus', event.detail);
  29318. },
  29319. onBlur: function onBlur(event) {
  29320. this.focused = false;
  29321. this.setShowClear();
  29322. this.$emit('blur', event.detail);
  29323. },
  29324. onClickIcon: function onClickIcon() {
  29325. this.$emit('click-icon');
  29326. },
  29327. onClickInput: function onClickInput(event) {
  29328. this.$emit('click-input', event.detail);
  29329. },
  29330. onClear: function onClear() {
  29331. var _this = this;
  29332. this.setData({
  29333. innerValue: ''
  29334. });
  29335. this.value = '';
  29336. this.setShowClear();
  29337. (0, _utils.nextTick)(function () {
  29338. _this.emitChange({
  29339. value: ''
  29340. });
  29341. _this.$emit('clear', '');
  29342. });
  29343. },
  29344. onConfirm: function onConfirm(event) {
  29345. var _ref2 = event.detail || {},
  29346. _ref2$value = _ref2.value,
  29347. value = _ref2$value === void 0 ? '' : _ref2$value;
  29348. this.value = value;
  29349. this.setShowClear();
  29350. this.$emit('confirm', value);
  29351. },
  29352. setValue: function setValue(value) {
  29353. this.value = value;
  29354. this.setShowClear();
  29355. if (value === '') {
  29356. this.setData({
  29357. innerValue: ''
  29358. });
  29359. }
  29360. this.emitChange({
  29361. value: value
  29362. });
  29363. },
  29364. onLineChange: function onLineChange(event) {
  29365. this.$emit('linechange', event.detail);
  29366. },
  29367. onKeyboardHeightChange: function onKeyboardHeightChange(event) {
  29368. this.$emit('keyboardheightchange', event.detail);
  29369. },
  29370. emitChange: function emitChange(detail) {
  29371. var extraEventParams = this.data.extraEventParams;
  29372. this.setData({
  29373. value: detail.value
  29374. });
  29375. var result;
  29376. var data = extraEventParams ? Object.assign(Object.assign({}, detail), {
  29377. callback: function callback(data) {
  29378. result = data;
  29379. }
  29380. }) : detail.value;
  29381. this.$emit('input', data);
  29382. this.$emit('change', data);
  29383. return result;
  29384. },
  29385. setShowClear: function setShowClear() {
  29386. var _this$data = this.data,
  29387. clearable = _this$data.clearable,
  29388. readonly = _this$data.readonly,
  29389. clearTrigger = _this$data.clearTrigger;
  29390. var focused = this.focused,
  29391. value = this.value;
  29392. var showClear = false;
  29393. if (clearable && !readonly) {
  29394. var hasValue = !!value;
  29395. var trigger = clearTrigger === 'always' || clearTrigger === 'focus' && focused;
  29396. showClear = hasValue && trigger;
  29397. }
  29398. this.setData({
  29399. showClear: showClear
  29400. });
  29401. },
  29402. noop: function noop() {}
  29403. }
  29404. });
  29405. /***/ }),
  29406. /***/ 887:
  29407. /*!********************************************************************!*\
  29408. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/field/props.js ***!
  29409. \********************************************************************/
  29410. /*! no static exports found */
  29411. /***/ (function(module, exports, __webpack_require__) {
  29412. "use strict";
  29413. Object.defineProperty(exports, "__esModule", {
  29414. value: true
  29415. });
  29416. exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
  29417. var commonProps = {
  29418. value: {
  29419. type: String,
  29420. observer: function observer(value) {
  29421. if (value !== this.value) {
  29422. this.setData({
  29423. innerValue: value
  29424. });
  29425. this.value = value;
  29426. }
  29427. }
  29428. },
  29429. placeholder: String,
  29430. placeholderStyle: String,
  29431. placeholderClass: String,
  29432. disabled: Boolean,
  29433. maxlength: {
  29434. type: Number,
  29435. value: -1
  29436. },
  29437. cursorSpacing: {
  29438. type: Number,
  29439. value: 50
  29440. },
  29441. autoFocus: Boolean,
  29442. focus: Boolean,
  29443. cursor: {
  29444. type: Number,
  29445. value: -1
  29446. },
  29447. selectionStart: {
  29448. type: Number,
  29449. value: -1
  29450. },
  29451. selectionEnd: {
  29452. type: Number,
  29453. value: -1
  29454. },
  29455. adjustPosition: {
  29456. type: Boolean,
  29457. value: true
  29458. },
  29459. holdKeyboard: Boolean
  29460. };
  29461. exports.commonProps = commonProps;
  29462. var inputProps = {
  29463. type: {
  29464. type: String,
  29465. value: 'text'
  29466. },
  29467. password: Boolean,
  29468. confirmType: String,
  29469. confirmHold: Boolean,
  29470. alwaysEmbed: Boolean
  29471. };
  29472. exports.inputProps = inputProps;
  29473. var textareaProps = {
  29474. autoHeight: Boolean,
  29475. fixed: Boolean,
  29476. showConfirmBar: {
  29477. type: Boolean,
  29478. value: true
  29479. },
  29480. disableDefaultPadding: {
  29481. type: Boolean,
  29482. value: true
  29483. }
  29484. };
  29485. exports.textareaProps = textareaProps;
  29486. /***/ }),
  29487. /***/ 89:
  29488. /*!*********************************************!*\
  29489. !*** ./node_modules/call-bind/callBound.js ***!
  29490. \*********************************************/
  29491. /*! no static exports found */
  29492. /***/ (function(module, exports, __webpack_require__) {
  29493. "use strict";
  29494. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 83);
  29495. var callBind = __webpack_require__(/*! ./ */ 90);
  29496. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  29497. module.exports = function callBoundIntrinsic(name, allowMissing) {
  29498. var intrinsic = GetIntrinsic(name, !!allowMissing);
  29499. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  29500. return callBind(intrinsic);
  29501. }
  29502. return intrinsic;
  29503. };
  29504. /***/ }),
  29505. /***/ 9:
  29506. /*!*****************************************************************!*\
  29507. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  29508. \*****************************************************************/
  29509. /*! no static exports found */
  29510. /***/ (function(module, exports) {
  29511. function _arrayLikeToArray(arr, len) {
  29512. if (len == null || len > arr.length) len = arr.length;
  29513. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  29514. arr2[i] = arr[i];
  29515. }
  29516. return arr2;
  29517. }
  29518. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29519. /***/ }),
  29520. /***/ 90:
  29521. /*!*****************************************!*\
  29522. !*** ./node_modules/call-bind/index.js ***!
  29523. \*****************************************/
  29524. /*! no static exports found */
  29525. /***/ (function(module, exports, __webpack_require__) {
  29526. "use strict";
  29527. var bind = __webpack_require__(/*! function-bind */ 86);
  29528. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ 83);
  29529. var $apply = GetIntrinsic('%Function.prototype.apply%');
  29530. var $call = GetIntrinsic('%Function.prototype.call%');
  29531. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  29532. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  29533. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  29534. var $max = GetIntrinsic('%Math.max%');
  29535. if ($defineProperty) {
  29536. try {
  29537. $defineProperty({}, 'a', { value: 1 });
  29538. } catch (e) {
  29539. // IE 8 has a broken defineProperty
  29540. $defineProperty = null;
  29541. }
  29542. }
  29543. module.exports = function callBind(originalFunction) {
  29544. var func = $reflectApply(bind, $call, arguments);
  29545. if ($gOPD && $defineProperty) {
  29546. var desc = $gOPD(func, 'length');
  29547. if (desc.configurable) {
  29548. // original length, plus the receiver, minus any additional arguments (after the receiver)
  29549. $defineProperty(
  29550. func,
  29551. 'length',
  29552. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  29553. );
  29554. }
  29555. }
  29556. return func;
  29557. };
  29558. var applyBind = function applyBind() {
  29559. return $reflectApply(bind, $apply, arguments);
  29560. };
  29561. if ($defineProperty) {
  29562. $defineProperty(module.exports, 'apply', { value: applyBind });
  29563. } else {
  29564. module.exports.apply = applyBind;
  29565. }
  29566. /***/ }),
  29567. /***/ 91:
  29568. /*!**********************************************!*\
  29569. !*** ./node_modules/object-inspect/index.js ***!
  29570. \**********************************************/
  29571. /*! no static exports found */
  29572. /***/ (function(module, exports, __webpack_require__) {
  29573. var hasMap = typeof Map === 'function' && Map.prototype;
  29574. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  29575. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  29576. var mapForEach = hasMap && Map.prototype.forEach;
  29577. var hasSet = typeof Set === 'function' && Set.prototype;
  29578. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  29579. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  29580. var setForEach = hasSet && Set.prototype.forEach;
  29581. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  29582. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  29583. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  29584. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  29585. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  29586. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  29587. var booleanValueOf = Boolean.prototype.valueOf;
  29588. var objectToString = Object.prototype.toString;
  29589. var functionToString = Function.prototype.toString;
  29590. var $match = String.prototype.match;
  29591. var $slice = String.prototype.slice;
  29592. var $replace = String.prototype.replace;
  29593. var $toUpperCase = String.prototype.toUpperCase;
  29594. var $toLowerCase = String.prototype.toLowerCase;
  29595. var $test = RegExp.prototype.test;
  29596. var $concat = Array.prototype.concat;
  29597. var $join = Array.prototype.join;
  29598. var $arrSlice = Array.prototype.slice;
  29599. var $floor = Math.floor;
  29600. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  29601. var gOPS = Object.getOwnPropertySymbols;
  29602. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  29603. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  29604. // ie, `has-tostringtag/shams
  29605. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  29606. ? Symbol.toStringTag
  29607. : null;
  29608. var isEnumerable = Object.prototype.propertyIsEnumerable;
  29609. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  29610. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  29611. ? function (O) {
  29612. return O.__proto__; // eslint-disable-line no-proto
  29613. }
  29614. : null
  29615. );
  29616. function addNumericSeparator(num, str) {
  29617. if (
  29618. num === Infinity
  29619. || num === -Infinity
  29620. || num !== num
  29621. || (num && num > -1000 && num < 1000)
  29622. || $test.call(/e/, str)
  29623. ) {
  29624. return str;
  29625. }
  29626. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  29627. if (typeof num === 'number') {
  29628. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  29629. if (int !== num) {
  29630. var intStr = String(int);
  29631. var dec = $slice.call(str, intStr.length + 1);
  29632. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  29633. }
  29634. }
  29635. return $replace.call(str, sepRegex, '$&_');
  29636. }
  29637. var utilInspect = __webpack_require__(/*! ./util.inspect */ 92);
  29638. var inspectCustom = utilInspect.custom;
  29639. var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
  29640. module.exports = function inspect_(obj, options, depth, seen) {
  29641. var opts = options || {};
  29642. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  29643. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  29644. }
  29645. if (
  29646. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  29647. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  29648. : opts.maxStringLength !== null
  29649. )
  29650. ) {
  29651. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  29652. }
  29653. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  29654. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  29655. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  29656. }
  29657. if (
  29658. has(opts, 'indent')
  29659. && opts.indent !== null
  29660. && opts.indent !== '\t'
  29661. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  29662. ) {
  29663. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  29664. }
  29665. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  29666. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  29667. }
  29668. var numericSeparator = opts.numericSeparator;
  29669. if (typeof obj === 'undefined') {
  29670. return 'undefined';
  29671. }
  29672. if (obj === null) {
  29673. return 'null';
  29674. }
  29675. if (typeof obj === 'boolean') {
  29676. return obj ? 'true' : 'false';
  29677. }
  29678. if (typeof obj === 'string') {
  29679. return inspectString(obj, opts);
  29680. }
  29681. if (typeof obj === 'number') {
  29682. if (obj === 0) {
  29683. return Infinity / obj > 0 ? '0' : '-0';
  29684. }
  29685. var str = String(obj);
  29686. return numericSeparator ? addNumericSeparator(obj, str) : str;
  29687. }
  29688. if (typeof obj === 'bigint') {
  29689. var bigIntStr = String(obj) + 'n';
  29690. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  29691. }
  29692. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  29693. if (typeof depth === 'undefined') { depth = 0; }
  29694. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  29695. return isArray(obj) ? '[Array]' : '[Object]';
  29696. }
  29697. var indent = getIndent(opts, depth);
  29698. if (typeof seen === 'undefined') {
  29699. seen = [];
  29700. } else if (indexOf(seen, obj) >= 0) {
  29701. return '[Circular]';
  29702. }
  29703. function inspect(value, from, noIndent) {
  29704. if (from) {
  29705. seen = $arrSlice.call(seen);
  29706. seen.push(from);
  29707. }
  29708. if (noIndent) {
  29709. var newOpts = {
  29710. depth: opts.depth
  29711. };
  29712. if (has(opts, 'quoteStyle')) {
  29713. newOpts.quoteStyle = opts.quoteStyle;
  29714. }
  29715. return inspect_(value, newOpts, depth + 1, seen);
  29716. }
  29717. return inspect_(value, opts, depth + 1, seen);
  29718. }
  29719. if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
  29720. var name = nameOf(obj);
  29721. var keys = arrObjKeys(obj, inspect);
  29722. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  29723. }
  29724. if (isSymbol(obj)) {
  29725. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  29726. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  29727. }
  29728. if (isElement(obj)) {
  29729. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  29730. var attrs = obj.attributes || [];
  29731. for (var i = 0; i < attrs.length; i++) {
  29732. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  29733. }
  29734. s += '>';
  29735. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  29736. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  29737. return s;
  29738. }
  29739. if (isArray(obj)) {
  29740. if (obj.length === 0) { return '[]'; }
  29741. var xs = arrObjKeys(obj, inspect);
  29742. if (indent && !singleLineValues(xs)) {
  29743. return '[' + indentedJoin(xs, indent) + ']';
  29744. }
  29745. return '[ ' + $join.call(xs, ', ') + ' ]';
  29746. }
  29747. if (isError(obj)) {
  29748. var parts = arrObjKeys(obj, inspect);
  29749. if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
  29750. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  29751. }
  29752. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  29753. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  29754. }
  29755. if (typeof obj === 'object' && customInspect) {
  29756. if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
  29757. return utilInspect(obj, { depth: maxDepth - depth });
  29758. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  29759. return obj.inspect();
  29760. }
  29761. }
  29762. if (isMap(obj)) {
  29763. var mapParts = [];
  29764. mapForEach.call(obj, function (value, key) {
  29765. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  29766. });
  29767. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  29768. }
  29769. if (isSet(obj)) {
  29770. var setParts = [];
  29771. setForEach.call(obj, function (value) {
  29772. setParts.push(inspect(value, obj));
  29773. });
  29774. return collectionOf('Set', setSize.call(obj), setParts, indent);
  29775. }
  29776. if (isWeakMap(obj)) {
  29777. return weakCollectionOf('WeakMap');
  29778. }
  29779. if (isWeakSet(obj)) {
  29780. return weakCollectionOf('WeakSet');
  29781. }
  29782. if (isWeakRef(obj)) {
  29783. return weakCollectionOf('WeakRef');
  29784. }
  29785. if (isNumber(obj)) {
  29786. return markBoxed(inspect(Number(obj)));
  29787. }
  29788. if (isBigInt(obj)) {
  29789. return markBoxed(inspect(bigIntValueOf.call(obj)));
  29790. }
  29791. if (isBoolean(obj)) {
  29792. return markBoxed(booleanValueOf.call(obj));
  29793. }
  29794. if (isString(obj)) {
  29795. return markBoxed(inspect(String(obj)));
  29796. }
  29797. if (!isDate(obj) && !isRegExp(obj)) {
  29798. var ys = arrObjKeys(obj, inspect);
  29799. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  29800. var protoTag = obj instanceof Object ? '' : 'null prototype';
  29801. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  29802. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  29803. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  29804. if (ys.length === 0) { return tag + '{}'; }
  29805. if (indent) {
  29806. return tag + '{' + indentedJoin(ys, indent) + '}';
  29807. }
  29808. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  29809. }
  29810. return String(obj);
  29811. };
  29812. function wrapQuotes(s, defaultStyle, opts) {
  29813. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  29814. return quoteChar + s + quoteChar;
  29815. }
  29816. function quote(s) {
  29817. return $replace.call(String(s), /"/g, '&quot;');
  29818. }
  29819. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29820. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29821. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29822. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29823. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29824. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29825. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  29826. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  29827. function isSymbol(obj) {
  29828. if (hasShammedSymbols) {
  29829. return obj && typeof obj === 'object' && obj instanceof Symbol;
  29830. }
  29831. if (typeof obj === 'symbol') {
  29832. return true;
  29833. }
  29834. if (!obj || typeof obj !== 'object' || !symToString) {
  29835. return false;
  29836. }
  29837. try {
  29838. symToString.call(obj);
  29839. return true;
  29840. } catch (e) {}
  29841. return false;
  29842. }
  29843. function isBigInt(obj) {
  29844. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  29845. return false;
  29846. }
  29847. try {
  29848. bigIntValueOf.call(obj);
  29849. return true;
  29850. } catch (e) {}
  29851. return false;
  29852. }
  29853. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  29854. function has(obj, key) {
  29855. return hasOwn.call(obj, key);
  29856. }
  29857. function toStr(obj) {
  29858. return objectToString.call(obj);
  29859. }
  29860. function nameOf(f) {
  29861. if (f.name) { return f.name; }
  29862. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  29863. if (m) { return m[1]; }
  29864. return null;
  29865. }
  29866. function indexOf(xs, x) {
  29867. if (xs.indexOf) { return xs.indexOf(x); }
  29868. for (var i = 0, l = xs.length; i < l; i++) {
  29869. if (xs[i] === x) { return i; }
  29870. }
  29871. return -1;
  29872. }
  29873. function isMap(x) {
  29874. if (!mapSize || !x || typeof x !== 'object') {
  29875. return false;
  29876. }
  29877. try {
  29878. mapSize.call(x);
  29879. try {
  29880. setSize.call(x);
  29881. } catch (s) {
  29882. return true;
  29883. }
  29884. return x instanceof Map; // core-js workaround, pre-v2.5.0
  29885. } catch (e) {}
  29886. return false;
  29887. }
  29888. function isWeakMap(x) {
  29889. if (!weakMapHas || !x || typeof x !== 'object') {
  29890. return false;
  29891. }
  29892. try {
  29893. weakMapHas.call(x, weakMapHas);
  29894. try {
  29895. weakSetHas.call(x, weakSetHas);
  29896. } catch (s) {
  29897. return true;
  29898. }
  29899. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  29900. } catch (e) {}
  29901. return false;
  29902. }
  29903. function isWeakRef(x) {
  29904. if (!weakRefDeref || !x || typeof x !== 'object') {
  29905. return false;
  29906. }
  29907. try {
  29908. weakRefDeref.call(x);
  29909. return true;
  29910. } catch (e) {}
  29911. return false;
  29912. }
  29913. function isSet(x) {
  29914. if (!setSize || !x || typeof x !== 'object') {
  29915. return false;
  29916. }
  29917. try {
  29918. setSize.call(x);
  29919. try {
  29920. mapSize.call(x);
  29921. } catch (m) {
  29922. return true;
  29923. }
  29924. return x instanceof Set; // core-js workaround, pre-v2.5.0
  29925. } catch (e) {}
  29926. return false;
  29927. }
  29928. function isWeakSet(x) {
  29929. if (!weakSetHas || !x || typeof x !== 'object') {
  29930. return false;
  29931. }
  29932. try {
  29933. weakSetHas.call(x, weakSetHas);
  29934. try {
  29935. weakMapHas.call(x, weakMapHas);
  29936. } catch (s) {
  29937. return true;
  29938. }
  29939. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  29940. } catch (e) {}
  29941. return false;
  29942. }
  29943. function isElement(x) {
  29944. if (!x || typeof x !== 'object') { return false; }
  29945. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  29946. return true;
  29947. }
  29948. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  29949. }
  29950. function inspectString(str, opts) {
  29951. if (str.length > opts.maxStringLength) {
  29952. var remaining = str.length - opts.maxStringLength;
  29953. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  29954. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  29955. }
  29956. // eslint-disable-next-line no-control-regex
  29957. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  29958. return wrapQuotes(s, 'single', opts);
  29959. }
  29960. function lowbyte(c) {
  29961. var n = c.charCodeAt(0);
  29962. var x = {
  29963. 8: 'b',
  29964. 9: 't',
  29965. 10: 'n',
  29966. 12: 'f',
  29967. 13: 'r'
  29968. }[n];
  29969. if (x) { return '\\' + x; }
  29970. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  29971. }
  29972. function markBoxed(str) {
  29973. return 'Object(' + str + ')';
  29974. }
  29975. function weakCollectionOf(type) {
  29976. return type + ' { ? }';
  29977. }
  29978. function collectionOf(type, size, entries, indent) {
  29979. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  29980. return type + ' (' + size + ') {' + joinedEntries + '}';
  29981. }
  29982. function singleLineValues(xs) {
  29983. for (var i = 0; i < xs.length; i++) {
  29984. if (indexOf(xs[i], '\n') >= 0) {
  29985. return false;
  29986. }
  29987. }
  29988. return true;
  29989. }
  29990. function getIndent(opts, depth) {
  29991. var baseIndent;
  29992. if (opts.indent === '\t') {
  29993. baseIndent = '\t';
  29994. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  29995. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  29996. } else {
  29997. return null;
  29998. }
  29999. return {
  30000. base: baseIndent,
  30001. prev: $join.call(Array(depth + 1), baseIndent)
  30002. };
  30003. }
  30004. function indentedJoin(xs, indent) {
  30005. if (xs.length === 0) { return ''; }
  30006. var lineJoiner = '\n' + indent.prev + indent.base;
  30007. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  30008. }
  30009. function arrObjKeys(obj, inspect) {
  30010. var isArr = isArray(obj);
  30011. var xs = [];
  30012. if (isArr) {
  30013. xs.length = obj.length;
  30014. for (var i = 0; i < obj.length; i++) {
  30015. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  30016. }
  30017. }
  30018. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  30019. var symMap;
  30020. if (hasShammedSymbols) {
  30021. symMap = {};
  30022. for (var k = 0; k < syms.length; k++) {
  30023. symMap['$' + syms[k]] = syms[k];
  30024. }
  30025. }
  30026. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  30027. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  30028. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  30029. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  30030. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  30031. continue; // eslint-disable-line no-restricted-syntax, no-continue
  30032. } else if ($test.call(/[^\w$]/, key)) {
  30033. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  30034. } else {
  30035. xs.push(key + ': ' + inspect(obj[key], obj));
  30036. }
  30037. }
  30038. if (typeof gOPS === 'function') {
  30039. for (var j = 0; j < syms.length; j++) {
  30040. if (isEnumerable.call(obj, syms[j])) {
  30041. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  30042. }
  30043. }
  30044. }
  30045. return xs;
  30046. }
  30047. /***/ }),
  30048. /***/ 92:
  30049. /*!********************************!*\
  30050. !*** ./util.inspect (ignored) ***!
  30051. \********************************/
  30052. /*! no static exports found */
  30053. /***/ (function(module, exports) {
  30054. /* (ignored) */
  30055. /***/ }),
  30056. /***/ 921:
  30057. /*!**********************************************************************************************!*\
  30058. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  30059. \**********************************************************************************************/
  30060. /*! no static exports found */
  30061. /***/ (function(module, exports, __webpack_require__) {
  30062. "use strict";
  30063. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30064. Object.defineProperty(exports, "__esModule", {
  30065. value: true
  30066. });
  30067. exports.default = void 0;
  30068. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 922));
  30069. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 923));
  30070. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 924));
  30071. var _default = {
  30072. en: _en.default,
  30073. 'zh-Hans': _zhHans.default,
  30074. 'zh-Hant': _zhHant.default
  30075. };
  30076. exports.default = _default;
  30077. /***/ }),
  30078. /***/ 922:
  30079. /*!*********************************************************************************************!*\
  30080. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  30081. \*********************************************************************************************/
  30082. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  30083. /***/ (function(module) {
  30084. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"Pull up to show more\",\"uni-load-more.contentrefresh\":\"loading...\",\"uni-load-more.contentnomore\":\"No more data\"}");
  30085. /***/ }),
  30086. /***/ 923:
  30087. /*!**************************************************************************************************!*\
  30088. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  30089. \**************************************************************************************************/
  30090. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  30091. /***/ (function(module) {
  30092. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  30093. /***/ }),
  30094. /***/ 924:
  30095. /*!**************************************************************************************************!*\
  30096. !*** D:/AAA_Company/红沙湾管理端/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  30097. \**************************************************************************************************/
  30098. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  30099. /***/ (function(module) {
  30100. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  30101. /***/ }),
  30102. /***/ 927:
  30103. /*!******************************************************************************!*\
  30104. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/datetime-picker/index.js ***!
  30105. \******************************************************************************/
  30106. /*! no static exports found */
  30107. /***/ (function(module, exports, __webpack_require__) {
  30108. "use strict";
  30109. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30110. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  30111. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  30112. var _component = __webpack_require__(/*! ../common/component */ 671);
  30113. var _validator = __webpack_require__(/*! ../common/validator */ 263);
  30114. var _shared = __webpack_require__(/*! ../picker/shared */ 793);
  30115. var currentYear = new Date().getFullYear();
  30116. function isValidDate(date) {
  30117. return (0, _validator.isDef)(date) && !isNaN(new Date(date).getTime());
  30118. }
  30119. function range(num, min, max) {
  30120. return Math.min(Math.max(num, min), max);
  30121. }
  30122. function padZero(val) {
  30123. return "00".concat(val).slice(-2);
  30124. }
  30125. function times(n, iteratee) {
  30126. var index = -1;
  30127. var result = Array(n < 0 ? 0 : n);
  30128. while (++index < n) {
  30129. result[index] = iteratee(index);
  30130. }
  30131. return result;
  30132. }
  30133. function getTrueValue(formattedValue) {
  30134. if (formattedValue === undefined) {
  30135. formattedValue = '1';
  30136. }
  30137. while (isNaN(parseInt(formattedValue, 10))) {
  30138. formattedValue = formattedValue.slice(1);
  30139. }
  30140. return parseInt(formattedValue, 10);
  30141. }
  30142. function getMonthEndDay(year, month) {
  30143. return 32 - new Date(year, month - 1, 32).getDate();
  30144. }
  30145. var defaultFormatter = function defaultFormatter(type, value) {
  30146. return value;
  30147. };
  30148. (0, _component.VantComponent)({
  30149. classes: ['active-class', 'toolbar-class', 'column-class'],
  30150. props: Object.assign(Object.assign({}, _shared.pickerProps), {
  30151. value: {
  30152. type: null,
  30153. observer: 'updateValue'
  30154. },
  30155. filter: null,
  30156. type: {
  30157. type: String,
  30158. value: 'datetime',
  30159. observer: 'updateValue'
  30160. },
  30161. showToolbar: {
  30162. type: Boolean,
  30163. value: true
  30164. },
  30165. formatter: {
  30166. type: null,
  30167. value: defaultFormatter
  30168. },
  30169. minDate: {
  30170. type: Number,
  30171. value: new Date(currentYear - 10, 0, 1).getTime(),
  30172. observer: 'updateValue'
  30173. },
  30174. maxDate: {
  30175. type: Number,
  30176. value: new Date(currentYear + 10, 11, 31).getTime(),
  30177. observer: 'updateValue'
  30178. },
  30179. minHour: {
  30180. type: Number,
  30181. value: 0,
  30182. observer: 'updateValue'
  30183. },
  30184. maxHour: {
  30185. type: Number,
  30186. value: 23,
  30187. observer: 'updateValue'
  30188. },
  30189. minMinute: {
  30190. type: Number,
  30191. value: 0,
  30192. observer: 'updateValue'
  30193. },
  30194. maxMinute: {
  30195. type: Number,
  30196. value: 59,
  30197. observer: 'updateValue'
  30198. }
  30199. }),
  30200. data: {
  30201. innerValue: Date.now(),
  30202. columns: []
  30203. },
  30204. methods: {
  30205. updateValue: function updateValue() {
  30206. var _this = this;
  30207. var data = this.data;
  30208. var val = this.correctValue(data.value);
  30209. var isEqual = val === data.innerValue;
  30210. this.updateColumnValue(val).then(function () {
  30211. if (!isEqual) {
  30212. _this.$emit('input', val);
  30213. }
  30214. });
  30215. },
  30216. getPicker: function getPicker() {
  30217. if (this.picker == null) {
  30218. this.picker = this.selectComponent('.van-datetime-picker');
  30219. var picker = this.picker;
  30220. var setColumnValues = picker.setColumnValues;
  30221. picker.setColumnValues = function () {
  30222. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  30223. args[_key] = arguments[_key];
  30224. }
  30225. return setColumnValues.apply(picker, [].concat(args, [false]));
  30226. };
  30227. }
  30228. return this.picker;
  30229. },
  30230. updateColumns: function updateColumns() {
  30231. var _this$data$formatter = this.data.formatter,
  30232. formatter = _this$data$formatter === void 0 ? defaultFormatter : _this$data$formatter;
  30233. var results = this.getOriginColumns().map(function (column) {
  30234. return {
  30235. values: column.values.map(function (value) {
  30236. return formatter(column.type, value);
  30237. })
  30238. };
  30239. });
  30240. return this.set({
  30241. columns: results
  30242. });
  30243. },
  30244. getOriginColumns: function getOriginColumns() {
  30245. var filter = this.data.filter;
  30246. var results = this.getRanges().map(function (_ref) {
  30247. var type = _ref.type,
  30248. range = _ref.range;
  30249. var values = times(range[1] - range[0] + 1, function (index) {
  30250. var value = range[0] + index;
  30251. return type === 'year' ? "".concat(value) : padZero(value);
  30252. });
  30253. if (filter) {
  30254. values = filter(type, values);
  30255. }
  30256. return {
  30257. type: type,
  30258. values: values
  30259. };
  30260. });
  30261. return results;
  30262. },
  30263. getRanges: function getRanges() {
  30264. var data = this.data;
  30265. if (data.type === 'time') {
  30266. return [{
  30267. type: 'hour',
  30268. range: [data.minHour, data.maxHour]
  30269. }, {
  30270. type: 'minute',
  30271. range: [data.minMinute, data.maxMinute]
  30272. }];
  30273. }
  30274. var _this$getBoundary = this.getBoundary('max', data.innerValue),
  30275. maxYear = _this$getBoundary.maxYear,
  30276. maxDate = _this$getBoundary.maxDate,
  30277. maxMonth = _this$getBoundary.maxMonth,
  30278. maxHour = _this$getBoundary.maxHour,
  30279. maxMinute = _this$getBoundary.maxMinute;
  30280. var _this$getBoundary2 = this.getBoundary('min', data.innerValue),
  30281. minYear = _this$getBoundary2.minYear,
  30282. minDate = _this$getBoundary2.minDate,
  30283. minMonth = _this$getBoundary2.minMonth,
  30284. minHour = _this$getBoundary2.minHour,
  30285. minMinute = _this$getBoundary2.minMinute;
  30286. var result = [{
  30287. type: 'year',
  30288. range: [minYear, maxYear]
  30289. }, {
  30290. type: 'month',
  30291. range: [minMonth, maxMonth]
  30292. }, {
  30293. type: 'day',
  30294. range: [minDate, maxDate]
  30295. }, {
  30296. type: 'hour',
  30297. range: [minHour, maxHour]
  30298. }, {
  30299. type: 'minute',
  30300. range: [minMinute, maxMinute]
  30301. }];
  30302. if (data.type === 'date') result.splice(3, 2);
  30303. if (data.type === 'year-month') result.splice(2, 3);
  30304. return result;
  30305. },
  30306. correctValue: function correctValue(value) {
  30307. var data = this.data;
  30308. // validate value
  30309. var isDateType = data.type !== 'time';
  30310. if (isDateType && !isValidDate(value)) {
  30311. value = data.minDate;
  30312. } else if (!isDateType && !value) {
  30313. var minHour = data.minHour;
  30314. value = "".concat(padZero(minHour), ":00");
  30315. }
  30316. // time type
  30317. if (!isDateType) {
  30318. var _value$split = value.split(':'),
  30319. _value$split2 = (0, _slicedToArray2.default)(_value$split, 2),
  30320. hour = _value$split2[0],
  30321. minute = _value$split2[1];
  30322. hour = padZero(range(hour, data.minHour, data.maxHour));
  30323. minute = padZero(range(minute, data.minMinute, data.maxMinute));
  30324. return "".concat(hour, ":").concat(minute);
  30325. }
  30326. // date type
  30327. value = Math.max(value, data.minDate);
  30328. value = Math.min(value, data.maxDate);
  30329. return value;
  30330. },
  30331. getBoundary: function getBoundary(type, innerValue) {
  30332. var _ref2;
  30333. var value = new Date(innerValue);
  30334. var boundary = new Date(this.data["".concat(type, "Date")]);
  30335. var year = boundary.getFullYear();
  30336. var month = 1;
  30337. var date = 1;
  30338. var hour = 0;
  30339. var minute = 0;
  30340. if (type === 'max') {
  30341. month = 12;
  30342. date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
  30343. hour = 23;
  30344. minute = 59;
  30345. }
  30346. if (value.getFullYear() === year) {
  30347. month = boundary.getMonth() + 1;
  30348. if (value.getMonth() + 1 === month) {
  30349. date = boundary.getDate();
  30350. if (value.getDate() === date) {
  30351. hour = boundary.getHours();
  30352. if (value.getHours() === hour) {
  30353. minute = boundary.getMinutes();
  30354. }
  30355. }
  30356. }
  30357. }
  30358. return _ref2 = {}, (0, _defineProperty2.default)(_ref2, "".concat(type, "Year"), year), (0, _defineProperty2.default)(_ref2, "".concat(type, "Month"), month), (0, _defineProperty2.default)(_ref2, "".concat(type, "Date"), date), (0, _defineProperty2.default)(_ref2, "".concat(type, "Hour"), hour), (0, _defineProperty2.default)(_ref2, "".concat(type, "Minute"), minute), _ref2;
  30359. },
  30360. onCancel: function onCancel() {
  30361. this.$emit('cancel');
  30362. },
  30363. onConfirm: function onConfirm() {
  30364. this.$emit('confirm', this.data.innerValue);
  30365. },
  30366. onChange: function onChange() {
  30367. var _this2 = this;
  30368. var data = this.data;
  30369. var value;
  30370. var picker = this.getPicker();
  30371. var originColumns = this.getOriginColumns();
  30372. if (data.type === 'time') {
  30373. var indexes = picker.getIndexes();
  30374. value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
  30375. } else {
  30376. var _indexes = picker.getIndexes();
  30377. var values = _indexes.map(function (value, index) {
  30378. return originColumns[index].values[value];
  30379. });
  30380. var year = getTrueValue(values[0]);
  30381. var month = getTrueValue(values[1]);
  30382. var maxDate = getMonthEndDay(year, month);
  30383. var date = getTrueValue(values[2]);
  30384. if (data.type === 'year-month') {
  30385. date = 1;
  30386. }
  30387. date = date > maxDate ? maxDate : date;
  30388. var hour = 0;
  30389. var minute = 0;
  30390. if (data.type === 'datetime') {
  30391. hour = getTrueValue(values[3]);
  30392. minute = getTrueValue(values[4]);
  30393. }
  30394. value = new Date(year, month - 1, date, hour, minute);
  30395. }
  30396. value = this.correctValue(value);
  30397. this.updateColumnValue(value).then(function () {
  30398. _this2.$emit('input', value);
  30399. _this2.$emit('change', picker);
  30400. });
  30401. },
  30402. updateColumnValue: function updateColumnValue(value) {
  30403. var _this3 = this;
  30404. var values = [];
  30405. var type = this.data.type;
  30406. var formatter = this.data.formatter || defaultFormatter;
  30407. var picker = this.getPicker();
  30408. if (type === 'time') {
  30409. var pair = value.split(':');
  30410. values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
  30411. } else {
  30412. var date = new Date(value);
  30413. values = [formatter('year', "".concat(date.getFullYear())), formatter('month', padZero(date.getMonth() + 1))];
  30414. if (type === 'date') {
  30415. values.push(formatter('day', padZero(date.getDate())));
  30416. }
  30417. if (type === 'datetime') {
  30418. values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
  30419. }
  30420. }
  30421. return this.set({
  30422. innerValue: value
  30423. }).then(function () {
  30424. return _this3.updateColumns();
  30425. }).then(function () {
  30426. return picker.setValues(values);
  30427. });
  30428. }
  30429. },
  30430. created: function created() {
  30431. var _this4 = this;
  30432. var innerValue = this.correctValue(this.data.value);
  30433. this.updateColumnValue(innerValue).then(function () {
  30434. _this4.$emit('input', innerValue);
  30435. });
  30436. }
  30437. });
  30438. /***/ }),
  30439. /***/ 928:
  30440. /*!*********************************************************************!*\
  30441. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/button/index.js ***!
  30442. \*********************************************************************/
  30443. /*! no static exports found */
  30444. /***/ (function(module, exports, __webpack_require__) {
  30445. "use strict";
  30446. /* WEBPACK VAR INJECTION */(function(wx) {
  30447. var _component = __webpack_require__(/*! ../common/component */ 671);
  30448. var _button = __webpack_require__(/*! ../mixins/button */ 929);
  30449. var _version = __webpack_require__(/*! ../common/version */ 675);
  30450. var mixins = [_button.button];
  30451. if ((0, _version.canIUseFormFieldButton)()) {
  30452. mixins.push('wx://form-field-button');
  30453. }
  30454. (0, _component.VantComponent)({
  30455. mixins: mixins,
  30456. classes: ['hover-class', 'loading-class'],
  30457. data: {
  30458. baseStyle: ''
  30459. },
  30460. props: {
  30461. formType: String,
  30462. icon: String,
  30463. classPrefix: {
  30464. type: String,
  30465. value: 'van-icon'
  30466. },
  30467. plain: Boolean,
  30468. block: Boolean,
  30469. round: Boolean,
  30470. square: Boolean,
  30471. loading: Boolean,
  30472. hairline: Boolean,
  30473. disabled: Boolean,
  30474. loadingText: String,
  30475. customStyle: String,
  30476. loadingType: {
  30477. type: String,
  30478. value: 'circular'
  30479. },
  30480. type: {
  30481. type: String,
  30482. value: 'default'
  30483. },
  30484. dataset: null,
  30485. size: {
  30486. type: String,
  30487. value: 'normal'
  30488. },
  30489. loadingSize: {
  30490. type: String,
  30491. value: '20px'
  30492. },
  30493. color: String
  30494. },
  30495. methods: {
  30496. onClick: function onClick(event) {
  30497. var _this = this;
  30498. this.$emit('click', event);
  30499. var _this$data = this.data,
  30500. canIUseGetUserProfile = _this$data.canIUseGetUserProfile,
  30501. openType = _this$data.openType,
  30502. getUserProfileDesc = _this$data.getUserProfileDesc,
  30503. lang = _this$data.lang;
  30504. if (openType === 'getUserInfo' && canIUseGetUserProfile) {
  30505. wx.getUserProfile({
  30506. desc: getUserProfileDesc || ' ',
  30507. lang: lang || 'en',
  30508. complete: function complete(userProfile) {
  30509. _this.$emit('getuserinfo', userProfile);
  30510. }
  30511. });
  30512. }
  30513. }
  30514. }
  30515. });
  30516. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  30517. /***/ }),
  30518. /***/ 929:
  30519. /*!**********************************************************************!*\
  30520. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/mixins/button.js ***!
  30521. \**********************************************************************/
  30522. /*! no static exports found */
  30523. /***/ (function(module, exports, __webpack_require__) {
  30524. "use strict";
  30525. Object.defineProperty(exports, "__esModule", {
  30526. value: true
  30527. });
  30528. exports.button = void 0;
  30529. var _version = __webpack_require__(/*! ../common/version */ 675);
  30530. var button = Behavior({
  30531. externalClasses: ['hover-class'],
  30532. properties: {
  30533. id: String,
  30534. lang: String,
  30535. businessId: Number,
  30536. sessionFrom: String,
  30537. sendMessageTitle: String,
  30538. sendMessagePath: String,
  30539. sendMessageImg: String,
  30540. showMessageCard: Boolean,
  30541. appParameter: String,
  30542. ariaLabel: String,
  30543. openType: String,
  30544. getUserProfileDesc: String
  30545. },
  30546. data: {
  30547. canIUseGetUserProfile: (0, _version.canIUseGetUserProfile)()
  30548. },
  30549. methods: {
  30550. onGetUserInfo: function onGetUserInfo(event) {
  30551. this.triggerEvent('getuserinfo', event.detail);
  30552. },
  30553. onContact: function onContact(event) {
  30554. this.triggerEvent('contact', event.detail);
  30555. },
  30556. onGetPhoneNumber: function onGetPhoneNumber(event) {
  30557. this.triggerEvent('getphonenumber', event.detail);
  30558. },
  30559. onError: function onError(event) {
  30560. this.triggerEvent('error', event.detail);
  30561. },
  30562. onLaunchApp: function onLaunchApp(event) {
  30563. this.triggerEvent('launchapp', event.detail);
  30564. },
  30565. onOpenSetting: function onOpenSetting(event) {
  30566. this.triggerEvent('opensetting', event.detail);
  30567. },
  30568. onChooseAvatar: function onChooseAvatar(event) {
  30569. this.triggerEvent('chooseavatar', event.detail);
  30570. }
  30571. }
  30572. });
  30573. exports.button = button;
  30574. /***/ }),
  30575. /***/ 93:
  30576. /*!**************************************!*\
  30577. !*** ./node_modules/qs/lib/utils.js ***!
  30578. \**************************************/
  30579. /*! no static exports found */
  30580. /***/ (function(module, exports, __webpack_require__) {
  30581. "use strict";
  30582. var formats = __webpack_require__(/*! ./formats */ 94);
  30583. var has = Object.prototype.hasOwnProperty;
  30584. var isArray = Array.isArray;
  30585. var hexTable = (function () {
  30586. var array = [];
  30587. for (var i = 0; i < 256; ++i) {
  30588. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  30589. }
  30590. return array;
  30591. }());
  30592. var compactQueue = function compactQueue(queue) {
  30593. while (queue.length > 1) {
  30594. var item = queue.pop();
  30595. var obj = item.obj[item.prop];
  30596. if (isArray(obj)) {
  30597. var compacted = [];
  30598. for (var j = 0; j < obj.length; ++j) {
  30599. if (typeof obj[j] !== 'undefined') {
  30600. compacted.push(obj[j]);
  30601. }
  30602. }
  30603. item.obj[item.prop] = compacted;
  30604. }
  30605. }
  30606. };
  30607. var arrayToObject = function arrayToObject(source, options) {
  30608. var obj = options && options.plainObjects ? Object.create(null) : {};
  30609. for (var i = 0; i < source.length; ++i) {
  30610. if (typeof source[i] !== 'undefined') {
  30611. obj[i] = source[i];
  30612. }
  30613. }
  30614. return obj;
  30615. };
  30616. var merge = function merge(target, source, options) {
  30617. /* eslint no-param-reassign: 0 */
  30618. if (!source) {
  30619. return target;
  30620. }
  30621. if (typeof source !== 'object') {
  30622. if (isArray(target)) {
  30623. target.push(source);
  30624. } else if (target && typeof target === 'object') {
  30625. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  30626. target[source] = true;
  30627. }
  30628. } else {
  30629. return [target, source];
  30630. }
  30631. return target;
  30632. }
  30633. if (!target || typeof target !== 'object') {
  30634. return [target].concat(source);
  30635. }
  30636. var mergeTarget = target;
  30637. if (isArray(target) && !isArray(source)) {
  30638. mergeTarget = arrayToObject(target, options);
  30639. }
  30640. if (isArray(target) && isArray(source)) {
  30641. source.forEach(function (item, i) {
  30642. if (has.call(target, i)) {
  30643. var targetItem = target[i];
  30644. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  30645. target[i] = merge(targetItem, item, options);
  30646. } else {
  30647. target.push(item);
  30648. }
  30649. } else {
  30650. target[i] = item;
  30651. }
  30652. });
  30653. return target;
  30654. }
  30655. return Object.keys(source).reduce(function (acc, key) {
  30656. var value = source[key];
  30657. if (has.call(acc, key)) {
  30658. acc[key] = merge(acc[key], value, options);
  30659. } else {
  30660. acc[key] = value;
  30661. }
  30662. return acc;
  30663. }, mergeTarget);
  30664. };
  30665. var assign = function assignSingleSource(target, source) {
  30666. return Object.keys(source).reduce(function (acc, key) {
  30667. acc[key] = source[key];
  30668. return acc;
  30669. }, target);
  30670. };
  30671. var decode = function (str, decoder, charset) {
  30672. var strWithoutPlus = str.replace(/\+/g, ' ');
  30673. if (charset === 'iso-8859-1') {
  30674. // unescape never throws, no try...catch needed:
  30675. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  30676. }
  30677. // utf-8
  30678. try {
  30679. return decodeURIComponent(strWithoutPlus);
  30680. } catch (e) {
  30681. return strWithoutPlus;
  30682. }
  30683. };
  30684. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  30685. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  30686. // It has been adapted here for stricter adherence to RFC 3986
  30687. if (str.length === 0) {
  30688. return str;
  30689. }
  30690. var string = str;
  30691. if (typeof str === 'symbol') {
  30692. string = Symbol.prototype.toString.call(str);
  30693. } else if (typeof str !== 'string') {
  30694. string = String(str);
  30695. }
  30696. if (charset === 'iso-8859-1') {
  30697. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  30698. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  30699. });
  30700. }
  30701. var out = '';
  30702. for (var i = 0; i < string.length; ++i) {
  30703. var c = string.charCodeAt(i);
  30704. if (
  30705. c === 0x2D // -
  30706. || c === 0x2E // .
  30707. || c === 0x5F // _
  30708. || c === 0x7E // ~
  30709. || (c >= 0x30 && c <= 0x39) // 0-9
  30710. || (c >= 0x41 && c <= 0x5A) // a-z
  30711. || (c >= 0x61 && c <= 0x7A) // A-Z
  30712. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  30713. ) {
  30714. out += string.charAt(i);
  30715. continue;
  30716. }
  30717. if (c < 0x80) {
  30718. out = out + hexTable[c];
  30719. continue;
  30720. }
  30721. if (c < 0x800) {
  30722. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  30723. continue;
  30724. }
  30725. if (c < 0xD800 || c >= 0xE000) {
  30726. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  30727. continue;
  30728. }
  30729. i += 1;
  30730. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  30731. /* eslint operator-linebreak: [2, "before"] */
  30732. out += hexTable[0xF0 | (c >> 18)]
  30733. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  30734. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  30735. + hexTable[0x80 | (c & 0x3F)];
  30736. }
  30737. return out;
  30738. };
  30739. var compact = function compact(value) {
  30740. var queue = [{ obj: { o: value }, prop: 'o' }];
  30741. var refs = [];
  30742. for (var i = 0; i < queue.length; ++i) {
  30743. var item = queue[i];
  30744. var obj = item.obj[item.prop];
  30745. var keys = Object.keys(obj);
  30746. for (var j = 0; j < keys.length; ++j) {
  30747. var key = keys[j];
  30748. var val = obj[key];
  30749. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  30750. queue.push({ obj: obj, prop: key });
  30751. refs.push(val);
  30752. }
  30753. }
  30754. }
  30755. compactQueue(queue);
  30756. return value;
  30757. };
  30758. var isRegExp = function isRegExp(obj) {
  30759. return Object.prototype.toString.call(obj) === '[object RegExp]';
  30760. };
  30761. var isBuffer = function isBuffer(obj) {
  30762. if (!obj || typeof obj !== 'object') {
  30763. return false;
  30764. }
  30765. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  30766. };
  30767. var combine = function combine(a, b) {
  30768. return [].concat(a, b);
  30769. };
  30770. var maybeMap = function maybeMap(val, fn) {
  30771. if (isArray(val)) {
  30772. var mapped = [];
  30773. for (var i = 0; i < val.length; i += 1) {
  30774. mapped.push(fn(val[i]));
  30775. }
  30776. return mapped;
  30777. }
  30778. return fn(val);
  30779. };
  30780. module.exports = {
  30781. arrayToObject: arrayToObject,
  30782. assign: assign,
  30783. combine: combine,
  30784. compact: compact,
  30785. decode: decode,
  30786. encode: encode,
  30787. isBuffer: isBuffer,
  30788. isRegExp: isRegExp,
  30789. maybeMap: maybeMap,
  30790. merge: merge
  30791. };
  30792. /***/ }),
  30793. /***/ 930:
  30794. /*!**********************************************************************!*\
  30795. !*** D:/AAA_Company/红沙湾管理端/wxcomponents/weapp/dist/divider/index.js ***!
  30796. \**********************************************************************/
  30797. /*! no static exports found */
  30798. /***/ (function(module, exports, __webpack_require__) {
  30799. "use strict";
  30800. var _component = __webpack_require__(/*! ../common/component */ 671);
  30801. (0, _component.VantComponent)({
  30802. props: {
  30803. dashed: Boolean,
  30804. hairline: Boolean,
  30805. contentPosition: String,
  30806. fontSize: String,
  30807. borderColor: String,
  30808. textColor: String,
  30809. customStyle: String
  30810. }
  30811. });
  30812. /***/ }),
  30813. /***/ 94:
  30814. /*!****************************************!*\
  30815. !*** ./node_modules/qs/lib/formats.js ***!
  30816. \****************************************/
  30817. /*! no static exports found */
  30818. /***/ (function(module, exports, __webpack_require__) {
  30819. "use strict";
  30820. var replace = String.prototype.replace;
  30821. var percentTwenties = /%20/g;
  30822. var Format = {
  30823. RFC1738: 'RFC1738',
  30824. RFC3986: 'RFC3986'
  30825. };
  30826. module.exports = {
  30827. 'default': Format.RFC3986,
  30828. formatters: {
  30829. RFC1738: function (value) {
  30830. return replace.call(value, percentTwenties, '+');
  30831. },
  30832. RFC3986: function (value) {
  30833. return String(value);
  30834. }
  30835. },
  30836. RFC1738: Format.RFC1738,
  30837. RFC3986: Format.RFC3986
  30838. };
  30839. /***/ }),
  30840. /***/ 95:
  30841. /*!**************************************!*\
  30842. !*** ./node_modules/qs/lib/parse.js ***!
  30843. \**************************************/
  30844. /*! no static exports found */
  30845. /***/ (function(module, exports, __webpack_require__) {
  30846. "use strict";
  30847. var utils = __webpack_require__(/*! ./utils */ 93);
  30848. var has = Object.prototype.hasOwnProperty;
  30849. var isArray = Array.isArray;
  30850. var defaults = {
  30851. allowDots: false,
  30852. allowPrototypes: false,
  30853. allowSparse: false,
  30854. arrayLimit: 20,
  30855. charset: 'utf-8',
  30856. charsetSentinel: false,
  30857. comma: false,
  30858. decoder: utils.decode,
  30859. delimiter: '&',
  30860. depth: 5,
  30861. ignoreQueryPrefix: false,
  30862. interpretNumericEntities: false,
  30863. parameterLimit: 1000,
  30864. parseArrays: true,
  30865. plainObjects: false,
  30866. strictNullHandling: false
  30867. };
  30868. var interpretNumericEntities = function (str) {
  30869. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  30870. return String.fromCharCode(parseInt(numberStr, 10));
  30871. });
  30872. };
  30873. var parseArrayValue = function (val, options) {
  30874. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  30875. return val.split(',');
  30876. }
  30877. return val;
  30878. };
  30879. // This is what browsers will submit when the ✓ character occurs in an
  30880. // application/x-www-form-urlencoded body and the encoding of the page containing
  30881. // the form is iso-8859-1, or when the submitted form has an accept-charset
  30882. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  30883. // the ✓ character, such as us-ascii.
  30884. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  30885. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  30886. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  30887. var parseValues = function parseQueryStringValues(str, options) {
  30888. var obj = {};
  30889. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  30890. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  30891. var parts = cleanStr.split(options.delimiter, limit);
  30892. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  30893. var i;
  30894. var charset = options.charset;
  30895. if (options.charsetSentinel) {
  30896. for (i = 0; i < parts.length; ++i) {
  30897. if (parts[i].indexOf('utf8=') === 0) {
  30898. if (parts[i] === charsetSentinel) {
  30899. charset = 'utf-8';
  30900. } else if (parts[i] === isoSentinel) {
  30901. charset = 'iso-8859-1';
  30902. }
  30903. skipIndex = i;
  30904. i = parts.length; // The eslint settings do not allow break;
  30905. }
  30906. }
  30907. }
  30908. for (i = 0; i < parts.length; ++i) {
  30909. if (i === skipIndex) {
  30910. continue;
  30911. }
  30912. var part = parts[i];
  30913. var bracketEqualsPos = part.indexOf(']=');
  30914. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  30915. var key, val;
  30916. if (pos === -1) {
  30917. key = options.decoder(part, defaults.decoder, charset, 'key');
  30918. val = options.strictNullHandling ? null : '';
  30919. } else {
  30920. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  30921. val = utils.maybeMap(
  30922. parseArrayValue(part.slice(pos + 1), options),
  30923. function (encodedVal) {
  30924. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  30925. }
  30926. );
  30927. }
  30928. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  30929. val = interpretNumericEntities(val);
  30930. }
  30931. if (part.indexOf('[]=') > -1) {
  30932. val = isArray(val) ? [val] : val;
  30933. }
  30934. if (has.call(obj, key)) {
  30935. obj[key] = utils.combine(obj[key], val);
  30936. } else {
  30937. obj[key] = val;
  30938. }
  30939. }
  30940. return obj;
  30941. };
  30942. var parseObject = function (chain, val, options, valuesParsed) {
  30943. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  30944. for (var i = chain.length - 1; i >= 0; --i) {
  30945. var obj;
  30946. var root = chain[i];
  30947. if (root === '[]' && options.parseArrays) {
  30948. obj = [].concat(leaf);
  30949. } else {
  30950. obj = options.plainObjects ? Object.create(null) : {};
  30951. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  30952. var index = parseInt(cleanRoot, 10);
  30953. if (!options.parseArrays && cleanRoot === '') {
  30954. obj = { 0: leaf };
  30955. } else if (
  30956. !isNaN(index)
  30957. && root !== cleanRoot
  30958. && String(index) === cleanRoot
  30959. && index >= 0
  30960. && (options.parseArrays && index <= options.arrayLimit)
  30961. ) {
  30962. obj = [];
  30963. obj[index] = leaf;
  30964. } else if (cleanRoot !== '__proto__') {
  30965. obj[cleanRoot] = leaf;
  30966. }
  30967. }
  30968. leaf = obj;
  30969. }
  30970. return leaf;
  30971. };
  30972. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  30973. if (!givenKey) {
  30974. return;
  30975. }
  30976. // Transform dot notation to bracket notation
  30977. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  30978. // The regex chunks
  30979. var brackets = /(\[[^[\]]*])/;
  30980. var child = /(\[[^[\]]*])/g;
  30981. // Get the parent
  30982. var segment = options.depth > 0 && brackets.exec(key);
  30983. var parent = segment ? key.slice(0, segment.index) : key;
  30984. // Stash the parent if it exists
  30985. var keys = [];
  30986. if (parent) {
  30987. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  30988. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  30989. if (!options.allowPrototypes) {
  30990. return;
  30991. }
  30992. }
  30993. keys.push(parent);
  30994. }
  30995. // Loop through children appending to the array until we hit depth
  30996. var i = 0;
  30997. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  30998. i += 1;
  30999. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  31000. if (!options.allowPrototypes) {
  31001. return;
  31002. }
  31003. }
  31004. keys.push(segment[1]);
  31005. }
  31006. // If there's a remainder, just add whatever is left
  31007. if (segment) {
  31008. keys.push('[' + key.slice(segment.index) + ']');
  31009. }
  31010. return parseObject(keys, val, options, valuesParsed);
  31011. };
  31012. var normalizeParseOptions = function normalizeParseOptions(opts) {
  31013. if (!opts) {
  31014. return defaults;
  31015. }
  31016. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  31017. throw new TypeError('Decoder has to be a function.');
  31018. }
  31019. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  31020. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  31021. }
  31022. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  31023. return {
  31024. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  31025. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  31026. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  31027. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  31028. charset: charset,
  31029. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  31030. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  31031. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  31032. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  31033. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  31034. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  31035. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  31036. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  31037. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  31038. parseArrays: opts.parseArrays !== false,
  31039. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  31040. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  31041. };
  31042. };
  31043. module.exports = function (str, opts) {
  31044. var options = normalizeParseOptions(opts);
  31045. if (str === '' || str === null || typeof str === 'undefined') {
  31046. return options.plainObjects ? Object.create(null) : {};
  31047. }
  31048. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  31049. var obj = options.plainObjects ? Object.create(null) : {};
  31050. // Iterate over the keys and setup the new object
  31051. var keys = Object.keys(tempObj);
  31052. for (var i = 0; i < keys.length; ++i) {
  31053. var key = keys[i];
  31054. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  31055. obj = utils.merge(obj, newObj, options);
  31056. }
  31057. if (options.allowSparse === true) {
  31058. return obj;
  31059. }
  31060. return utils.compact(obj);
  31061. };
  31062. /***/ })
  31063. }]);
  31064. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map