vendor.js 819 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!************************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  5. \************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. /* WEBPACK VAR INJECTION */(function(global) {Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 3);
  10. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}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);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}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;}
  11. var realAtob;
  12. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  13. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  14. if (typeof atob !== 'function') {
  15. realAtob = function realAtob(str) {
  16. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  17. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  18. // Adding the padding if missing, for semplicity
  19. str += '=='.slice(2 - (str.length & 3));
  20. var bitmap;var result = '';var r1;var r2;var i = 0;
  21. for (; i < str.length;) {
  22. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  23. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  24. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  25. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  26. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  27. }
  28. return result;
  29. };
  30. } else {
  31. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  32. realAtob = atob;
  33. }
  34. function b64DecodeUnicode(str) {
  35. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  36. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  37. }).join(''));
  38. }
  39. function getCurrentUserInfo() {
  40. var token = wx.getStorageSync('uni_id_token') || '';
  41. var tokenArr = token.split('.');
  42. if (!token || tokenArr.length !== 3) {
  43. return {
  44. uid: null,
  45. role: [],
  46. permission: [],
  47. tokenExpired: 0 };
  48. }
  49. var userInfo;
  50. try {
  51. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  52. } catch (error) {
  53. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  54. }
  55. userInfo.tokenExpired = userInfo.exp * 1000;
  56. delete userInfo.exp;
  57. delete userInfo.iat;
  58. return userInfo;
  59. }
  60. function uniIdMixin(Vue) {
  61. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  62. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  63. return role.indexOf(roleId) > -1;
  64. };
  65. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  66. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  67. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  68. };
  69. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  70. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  71. return tokenExpired > Date.now();
  72. };
  73. }
  74. var _toString = Object.prototype.toString;
  75. var hasOwnProperty = Object.prototype.hasOwnProperty;
  76. function isFn(fn) {
  77. return typeof fn === 'function';
  78. }
  79. function isStr(str) {
  80. return typeof str === 'string';
  81. }
  82. function isPlainObject(obj) {
  83. return _toString.call(obj) === '[object Object]';
  84. }
  85. function hasOwn(obj, key) {
  86. return hasOwnProperty.call(obj, key);
  87. }
  88. function noop() {}
  89. /**
  90. * Create a cached version of a pure function.
  91. */
  92. function cached(fn) {
  93. var cache = Object.create(null);
  94. return function cachedFn(str) {
  95. var hit = cache[str];
  96. return hit || (cache[str] = fn(str));
  97. };
  98. }
  99. /**
  100. * Camelize a hyphen-delimited string.
  101. */
  102. var camelizeRE = /-(\w)/g;
  103. var camelize = cached(function (str) {
  104. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  105. });
  106. function sortObject(obj) {
  107. var sortObj = {};
  108. if (isPlainObject(obj)) {
  109. Object.keys(obj).sort().forEach(function (key) {
  110. sortObj[key] = obj[key];
  111. });
  112. }
  113. return !Object.keys(sortObj) ? obj : sortObj;
  114. }
  115. var HOOKS = [
  116. 'invoke',
  117. 'success',
  118. 'fail',
  119. 'complete',
  120. 'returnValue'];
  121. var globalInterceptors = {};
  122. var scopedInterceptors = {};
  123. function mergeHook(parentVal, childVal) {
  124. var res = childVal ?
  125. parentVal ?
  126. parentVal.concat(childVal) :
  127. Array.isArray(childVal) ?
  128. childVal : [childVal] :
  129. parentVal;
  130. return res ?
  131. dedupeHooks(res) :
  132. res;
  133. }
  134. function dedupeHooks(hooks) {
  135. var res = [];
  136. for (var i = 0; i < hooks.length; i++) {
  137. if (res.indexOf(hooks[i]) === -1) {
  138. res.push(hooks[i]);
  139. }
  140. }
  141. return res;
  142. }
  143. function removeHook(hooks, hook) {
  144. var index = hooks.indexOf(hook);
  145. if (index !== -1) {
  146. hooks.splice(index, 1);
  147. }
  148. }
  149. function mergeInterceptorHook(interceptor, option) {
  150. Object.keys(option).forEach(function (hook) {
  151. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  152. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  153. }
  154. });
  155. }
  156. function removeInterceptorHook(interceptor, option) {
  157. if (!interceptor || !option) {
  158. return;
  159. }
  160. Object.keys(option).forEach(function (hook) {
  161. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  162. removeHook(interceptor[hook], option[hook]);
  163. }
  164. });
  165. }
  166. function addInterceptor(method, option) {
  167. if (typeof method === 'string' && isPlainObject(option)) {
  168. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  169. } else if (isPlainObject(method)) {
  170. mergeInterceptorHook(globalInterceptors, method);
  171. }
  172. }
  173. function removeInterceptor(method, option) {
  174. if (typeof method === 'string') {
  175. if (isPlainObject(option)) {
  176. removeInterceptorHook(scopedInterceptors[method], option);
  177. } else {
  178. delete scopedInterceptors[method];
  179. }
  180. } else if (isPlainObject(method)) {
  181. removeInterceptorHook(globalInterceptors, method);
  182. }
  183. }
  184. function wrapperHook(hook) {
  185. return function (data) {
  186. return hook(data) || data;
  187. };
  188. }
  189. function isPromise(obj) {
  190. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  191. }
  192. function queue(hooks, data) {
  193. var promise = false;
  194. for (var i = 0; i < hooks.length; i++) {
  195. var hook = hooks[i];
  196. if (promise) {
  197. promise = Promise.resolve(wrapperHook(hook));
  198. } else {
  199. var res = hook(data);
  200. if (isPromise(res)) {
  201. promise = Promise.resolve(res);
  202. }
  203. if (res === false) {
  204. return {
  205. then: function then() {} };
  206. }
  207. }
  208. }
  209. return promise || {
  210. then: function then(callback) {
  211. return callback(data);
  212. } };
  213. }
  214. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  215. ['success', 'fail', 'complete'].forEach(function (name) {
  216. if (Array.isArray(interceptor[name])) {
  217. var oldCallback = options[name];
  218. options[name] = function callbackInterceptor(res) {
  219. queue(interceptor[name], res).then(function (res) {
  220. /* eslint-disable no-mixed-operators */
  221. return isFn(oldCallback) && oldCallback(res) || res;
  222. });
  223. };
  224. }
  225. });
  226. return options;
  227. }
  228. function wrapperReturnValue(method, returnValue) {
  229. var returnValueHooks = [];
  230. if (Array.isArray(globalInterceptors.returnValue)) {
  231. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  232. }
  233. var interceptor = scopedInterceptors[method];
  234. if (interceptor && Array.isArray(interceptor.returnValue)) {
  235. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  236. }
  237. returnValueHooks.forEach(function (hook) {
  238. returnValue = hook(returnValue) || returnValue;
  239. });
  240. return returnValue;
  241. }
  242. function getApiInterceptorHooks(method) {
  243. var interceptor = Object.create(null);
  244. Object.keys(globalInterceptors).forEach(function (hook) {
  245. if (hook !== 'returnValue') {
  246. interceptor[hook] = globalInterceptors[hook].slice();
  247. }
  248. });
  249. var scopedInterceptor = scopedInterceptors[method];
  250. if (scopedInterceptor) {
  251. Object.keys(scopedInterceptor).forEach(function (hook) {
  252. if (hook !== 'returnValue') {
  253. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  254. }
  255. });
  256. }
  257. return interceptor;
  258. }
  259. function invokeApi(method, api, options) {for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {params[_key - 3] = arguments[_key];}
  260. var interceptor = getApiInterceptorHooks(method);
  261. if (interceptor && Object.keys(interceptor).length) {
  262. if (Array.isArray(interceptor.invoke)) {
  263. var res = queue(interceptor.invoke, options);
  264. return res.then(function (options) {
  265. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  266. });
  267. } else {
  268. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  269. }
  270. }
  271. return api.apply(void 0, [options].concat(params));
  272. }
  273. var promiseInterceptor = {
  274. returnValue: function returnValue(res) {
  275. if (!isPromise(res)) {
  276. return res;
  277. }
  278. return new Promise(function (resolve, reject) {
  279. res.then(function (res) {
  280. if (res[0]) {
  281. reject(res[0]);
  282. } else {
  283. resolve(res[1]);
  284. }
  285. });
  286. });
  287. } };
  288. var SYNC_API_RE =
  289. /^\$|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/;
  290. var CONTEXT_API_RE = /^create|Manager$/;
  291. // Context例外情况
  292. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  293. // 同步例外情况
  294. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  295. var CALLBACK_API_RE = /^on|^off/;
  296. function isContextApi(name) {
  297. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  298. }
  299. function isSyncApi(name) {
  300. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  301. }
  302. function isCallbackApi(name) {
  303. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  304. }
  305. function handlePromise(promise) {
  306. return promise.then(function (data) {
  307. return [null, data];
  308. }).
  309. catch(function (err) {return [err];});
  310. }
  311. function shouldPromise(name) {
  312. if (
  313. isContextApi(name) ||
  314. isSyncApi(name) ||
  315. isCallbackApi(name))
  316. {
  317. return false;
  318. }
  319. return true;
  320. }
  321. /* eslint-disable no-extend-native */
  322. if (!Promise.prototype.finally) {
  323. Promise.prototype.finally = function (callback) {
  324. var promise = this.constructor;
  325. return this.then(
  326. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  327. function (reason) {return promise.resolve(callback()).then(function () {
  328. throw reason;
  329. });});
  330. };
  331. }
  332. function promisify(name, api) {
  333. if (!shouldPromise(name)) {
  334. return api;
  335. }
  336. return function promiseApi() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {params[_key2 - 1] = arguments[_key2];}
  337. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  338. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  339. }
  340. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  341. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  342. success: resolve,
  343. fail: reject })].concat(
  344. params));
  345. })));
  346. };
  347. }
  348. var EPS = 1e-4;
  349. var BASE_DEVICE_WIDTH = 750;
  350. var isIOS = false;
  351. var deviceWidth = 0;
  352. var deviceDPR = 0;
  353. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  354. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  355. deviceWidth = windowWidth;
  356. deviceDPR = pixelRatio;
  357. isIOS = platform === 'ios';
  358. }
  359. function upx2px(number, newDeviceWidth) {
  360. if (deviceWidth === 0) {
  361. checkDeviceWidth();
  362. }
  363. number = Number(number);
  364. if (number === 0) {
  365. return 0;
  366. }
  367. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  368. if (result < 0) {
  369. result = -result;
  370. }
  371. result = Math.floor(result + EPS);
  372. if (result === 0) {
  373. if (deviceDPR === 1 || !isIOS) {
  374. result = 1;
  375. } else {
  376. result = 0.5;
  377. }
  378. }
  379. return number < 0 ? -result : result;
  380. }
  381. var LOCALE_ZH_HANS = 'zh-Hans';
  382. var LOCALE_ZH_HANT = 'zh-Hant';
  383. var LOCALE_EN = 'en';
  384. var LOCALE_FR = 'fr';
  385. var LOCALE_ES = 'es';
  386. var messages = {};
  387. var locale;
  388. {
  389. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  390. }
  391. function initI18nMessages() {
  392. if (!isEnableLocale()) {
  393. return;
  394. }
  395. var localeKeys = Object.keys(__uniConfig.locales);
  396. if (localeKeys.length) {
  397. localeKeys.forEach(function (locale) {
  398. var curMessages = messages[locale];
  399. var userMessages = __uniConfig.locales[locale];
  400. if (curMessages) {
  401. Object.assign(curMessages, userMessages);
  402. } else {
  403. messages[locale] = userMessages;
  404. }
  405. });
  406. }
  407. }
  408. initI18nMessages();
  409. var i18n = (0, _uniI18n.initVueI18n)(
  410. locale,
  411. {});
  412. var t = i18n.t;
  413. var i18nMixin = i18n.mixin = {
  414. beforeCreate: function beforeCreate() {var _this = this;
  415. var unwatch = i18n.i18n.watchLocale(function () {
  416. _this.$forceUpdate();
  417. });
  418. this.$once('hook:beforeDestroy', function () {
  419. unwatch();
  420. });
  421. },
  422. methods: {
  423. $$t: function $$t(key, values) {
  424. return t(key, values);
  425. } } };
  426. var setLocale = i18n.setLocale;
  427. var getLocale = i18n.getLocale;
  428. function initAppLocale(Vue, appVm, locale) {
  429. var state = Vue.observable({
  430. locale: locale || i18n.getLocale() });
  431. var localeWatchers = [];
  432. appVm.$watchLocale = function (fn) {
  433. localeWatchers.push(fn);
  434. };
  435. Object.defineProperty(appVm, '$locale', {
  436. get: function get() {
  437. return state.locale;
  438. },
  439. set: function set(v) {
  440. state.locale = v;
  441. localeWatchers.forEach(function (watch) {return watch(v);});
  442. } });
  443. }
  444. function isEnableLocale() {
  445. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  446. }
  447. function include(str, parts) {
  448. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  449. }
  450. function startsWith(str, parts) {
  451. return parts.find(function (part) {return str.indexOf(part) === 0;});
  452. }
  453. function normalizeLocale(locale, messages) {
  454. if (!locale) {
  455. return;
  456. }
  457. locale = locale.trim().replace(/_/g, '-');
  458. if (messages && messages[locale]) {
  459. return locale;
  460. }
  461. locale = locale.toLowerCase();
  462. if (locale === 'chinese') {
  463. // 支付宝
  464. return LOCALE_ZH_HANS;
  465. }
  466. if (locale.indexOf('zh') === 0) {
  467. if (locale.indexOf('-hans') > -1) {
  468. return LOCALE_ZH_HANS;
  469. }
  470. if (locale.indexOf('-hant') > -1) {
  471. return LOCALE_ZH_HANT;
  472. }
  473. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  474. return LOCALE_ZH_HANT;
  475. }
  476. return LOCALE_ZH_HANS;
  477. }
  478. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  479. if (lang) {
  480. return lang;
  481. }
  482. }
  483. // export function initI18n() {
  484. // const localeKeys = Object.keys(__uniConfig.locales || {})
  485. // if (localeKeys.length) {
  486. // localeKeys.forEach((locale) =>
  487. // i18n.add(locale, __uniConfig.locales[locale])
  488. // )
  489. // }
  490. // }
  491. function getLocale$1() {
  492. // 优先使用 $locale
  493. var app = getApp({
  494. allowDefault: true });
  495. if (app && app.$vm) {
  496. return app.$vm.$locale;
  497. }
  498. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  499. }
  500. function setLocale$1(locale) {
  501. var app = getApp();
  502. if (!app) {
  503. return false;
  504. }
  505. var oldLocale = app.$vm.$locale;
  506. if (oldLocale !== locale) {
  507. app.$vm.$locale = locale;
  508. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  509. locale: locale });});
  510. return true;
  511. }
  512. return false;
  513. }
  514. var onLocaleChangeCallbacks = [];
  515. function onLocaleChange(fn) {
  516. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  517. onLocaleChangeCallbacks.push(fn);
  518. }
  519. }
  520. if (typeof global !== 'undefined') {
  521. global.getLocale = getLocale$1;
  522. }
  523. var interceptors = {
  524. promiseInterceptor: promiseInterceptor };
  525. var baseApi = /*#__PURE__*/Object.freeze({
  526. __proto__: null,
  527. upx2px: upx2px,
  528. getLocale: getLocale$1,
  529. setLocale: setLocale$1,
  530. onLocaleChange: onLocaleChange,
  531. addInterceptor: addInterceptor,
  532. removeInterceptor: removeInterceptor,
  533. interceptors: interceptors });
  534. function findExistsPageIndex(url) {
  535. var pages = getCurrentPages();
  536. var len = pages.length;
  537. while (len--) {
  538. var page = pages[len];
  539. if (page.$page && page.$page.fullPath === url) {
  540. return len;
  541. }
  542. }
  543. return -1;
  544. }
  545. var redirectTo = {
  546. name: function name(fromArgs) {
  547. if (fromArgs.exists === 'back' && fromArgs.delta) {
  548. return 'navigateBack';
  549. }
  550. return 'redirectTo';
  551. },
  552. args: function args(fromArgs) {
  553. if (fromArgs.exists === 'back' && fromArgs.url) {
  554. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  555. if (existsPageIndex !== -1) {
  556. var delta = getCurrentPages().length - 1 - existsPageIndex;
  557. if (delta > 0) {
  558. fromArgs.delta = delta;
  559. }
  560. }
  561. }
  562. } };
  563. var previewImage = {
  564. args: function args(fromArgs) {
  565. var currentIndex = parseInt(fromArgs.current);
  566. if (isNaN(currentIndex)) {
  567. return;
  568. }
  569. var urls = fromArgs.urls;
  570. if (!Array.isArray(urls)) {
  571. return;
  572. }
  573. var len = urls.length;
  574. if (!len) {
  575. return;
  576. }
  577. if (currentIndex < 0) {
  578. currentIndex = 0;
  579. } else if (currentIndex >= len) {
  580. currentIndex = len - 1;
  581. }
  582. if (currentIndex > 0) {
  583. fromArgs.current = urls[currentIndex];
  584. fromArgs.urls = urls.filter(
  585. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  586. } else {
  587. fromArgs.current = urls[0];
  588. }
  589. return {
  590. indicator: false,
  591. loop: false };
  592. } };
  593. var UUID_KEY = '__DC_STAT_UUID';
  594. var deviceId;
  595. function useDeviceId(result) {
  596. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  597. if (!deviceId) {
  598. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  599. wx.setStorage({
  600. key: UUID_KEY,
  601. data: deviceId });
  602. }
  603. result.deviceId = deviceId;
  604. }
  605. function addSafeAreaInsets(result) {
  606. if (result.safeArea) {
  607. var safeArea = result.safeArea;
  608. result.safeAreaInsets = {
  609. top: safeArea.top,
  610. left: safeArea.left,
  611. right: result.windowWidth - safeArea.right,
  612. bottom: result.screenHeight - safeArea.bottom };
  613. }
  614. }
  615. function populateParameters(result) {var _result$brand =
  616. result.brand,brand = _result$brand === void 0 ? '' : _result$brand,_result$model = result.model,model = _result$model === void 0 ? '' : _result$model,_result$system = result.system,system = _result$system === void 0 ? '' : _result$system,_result$language = result.language,language = _result$language === void 0 ? '' : _result$language,theme = result.theme,version = result.version,platform = result.platform,fontSizeSetting = result.fontSizeSetting,SDKVersion = result.SDKVersion,pixelRatio = result.pixelRatio,deviceOrientation = result.deviceOrientation;
  617. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  618. // osName osVersion
  619. var osName = '';
  620. var osVersion = '';
  621. {
  622. osName = system.split(' ')[0] || '';
  623. osVersion = system.split(' ')[1] || '';
  624. }
  625. var hostVersion = version;
  626. // deviceType
  627. var deviceType = getGetDeviceType(result, model);
  628. // deviceModel
  629. var deviceBrand = getDeviceBrand(brand);
  630. // hostName
  631. var _hostName = getHostName(result);
  632. // deviceOrientation
  633. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  634. // devicePixelRatio
  635. var _devicePixelRatio = pixelRatio;
  636. // SDKVersion
  637. var _SDKVersion = SDKVersion;
  638. // hostLanguage
  639. var hostLanguage = language.replace(/_/g, '-');
  640. // wx.getAccountInfoSync
  641. var parameters = {
  642. appId: "__UNI__CA02DBC",
  643. appName: "vrv-platform",
  644. appVersion: "1.0.0",
  645. appVersionCode: "100",
  646. appLanguage: getAppLanguage(hostLanguage),
  647. uniCompileVersion: "3.5.3",
  648. uniRuntimeVersion: "3.5.3",
  649. uniPlatform: undefined || "mp-weixin",
  650. deviceBrand: deviceBrand,
  651. deviceModel: model,
  652. deviceType: deviceType,
  653. devicePixelRatio: _devicePixelRatio,
  654. deviceOrientation: _deviceOrientation,
  655. osName: osName.toLocaleLowerCase(),
  656. osVersion: osVersion,
  657. hostTheme: theme,
  658. hostVersion: hostVersion,
  659. hostLanguage: hostLanguage,
  660. hostName: _hostName,
  661. hostSDKVersion: _SDKVersion,
  662. hostFontSizeSetting: fontSizeSetting,
  663. windowTop: 0,
  664. windowBottom: 0,
  665. // TODO
  666. osLanguage: undefined,
  667. osTheme: undefined,
  668. ua: undefined,
  669. hostPackageName: undefined,
  670. browserName: undefined,
  671. browserVersion: undefined };
  672. Object.assign(result, parameters);
  673. }
  674. function getGetDeviceType(result, model) {
  675. var deviceType = result.deviceType || 'phone';
  676. {
  677. var deviceTypeMaps = {
  678. ipad: 'pad',
  679. windows: 'pc',
  680. mac: 'pc' };
  681. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  682. var _model = model.toLocaleLowerCase();
  683. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  684. var _m = deviceTypeMapsKeys[index];
  685. if (_model.indexOf(_m) !== -1) {
  686. deviceType = deviceTypeMaps[_m];
  687. break;
  688. }
  689. }
  690. }
  691. return deviceType;
  692. }
  693. function getDeviceBrand(brand) {
  694. var deviceBrand = brand;
  695. if (deviceBrand) {
  696. deviceBrand = brand.toLocaleLowerCase();
  697. }
  698. return deviceBrand;
  699. }
  700. function getAppLanguage(defaultLanguage) {
  701. return getLocale$1 ?
  702. getLocale$1() :
  703. defaultLanguage;
  704. }
  705. function getHostName(result) {
  706. var _platform = 'WeChat';
  707. var _hostName = result.hostName || _platform; // mp-jd
  708. {
  709. if (result.environment) {
  710. _hostName = result.environment;
  711. } else if (result.host && result.host.env) {
  712. _hostName = result.host.env;
  713. }
  714. }
  715. return _hostName;
  716. }
  717. var getSystemInfo = {
  718. returnValue: function returnValue(result) {
  719. useDeviceId(result);
  720. addSafeAreaInsets(result);
  721. populateParameters(result);
  722. } };
  723. var showActionSheet = {
  724. args: function args(fromArgs) {
  725. if (typeof fromArgs === 'object') {
  726. fromArgs.alertText = fromArgs.title;
  727. }
  728. } };
  729. var getAppBaseInfo = {
  730. returnValue: function returnValue(result) {var _result =
  731. result,version = _result.version,language = _result.language,SDKVersion = _result.SDKVersion,theme = _result.theme;
  732. var _hostName = getHostName(result);
  733. var hostLanguage = language.replace('_', '-');
  734. result = sortObject(Object.assign(result, {
  735. appId: "__UNI__CA02DBC",
  736. appName: "vrv-platform",
  737. appVersion: "1.0.0",
  738. appVersionCode: "100",
  739. appLanguage: getAppLanguage(hostLanguage),
  740. hostVersion: version,
  741. hostLanguage: hostLanguage,
  742. hostName: _hostName,
  743. hostSDKVersion: SDKVersion,
  744. hostTheme: theme }));
  745. } };
  746. var getDeviceInfo = {
  747. returnValue: function returnValue(result) {var _result2 =
  748. result,brand = _result2.brand,model = _result2.model;
  749. var deviceType = getGetDeviceType(result, model);
  750. var deviceBrand = getDeviceBrand(brand);
  751. useDeviceId(result);
  752. result = sortObject(Object.assign(result, {
  753. deviceType: deviceType,
  754. deviceBrand: deviceBrand,
  755. deviceModel: model }));
  756. } };
  757. var getWindowInfo = {
  758. returnValue: function returnValue(result) {
  759. addSafeAreaInsets(result);
  760. result = sortObject(Object.assign(result, {
  761. windowTop: 0,
  762. windowBottom: 0 }));
  763. } };
  764. var getAppAuthorizeSetting = {
  765. returnValue: function returnValue(result) {var
  766. locationReducedAccuracy = result.locationReducedAccuracy;
  767. result.locationAccuracy = 'unsupported';
  768. if (locationReducedAccuracy === true) {
  769. result.locationAccuracy = 'reduced';
  770. } else if (locationReducedAccuracy === false) {
  771. result.locationAccuracy = 'full';
  772. }
  773. } };
  774. // import navigateTo from 'uni-helpers/navigate-to'
  775. var protocols = {
  776. redirectTo: redirectTo,
  777. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  778. previewImage: previewImage,
  779. getSystemInfo: getSystemInfo,
  780. getSystemInfoSync: getSystemInfo,
  781. showActionSheet: showActionSheet,
  782. getAppBaseInfo: getAppBaseInfo,
  783. getDeviceInfo: getDeviceInfo,
  784. getWindowInfo: getWindowInfo,
  785. getAppAuthorizeSetting: getAppAuthorizeSetting };
  786. var todos = [
  787. 'vibrate',
  788. 'preloadPage',
  789. 'unPreloadPage',
  790. 'loadSubPackage'];
  791. var canIUses = [];
  792. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  793. function processCallback(methodName, method, returnValue) {
  794. return function (res) {
  795. return method(processReturnValue(methodName, res, returnValue));
  796. };
  797. }
  798. function processArgs(methodName, fromArgs) {var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  799. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  800. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  801. if (isFn(argsOption)) {
  802. argsOption = argsOption(fromArgs, toArgs) || {};
  803. }
  804. for (var key in fromArgs) {
  805. if (hasOwn(argsOption, key)) {
  806. var keyOption = argsOption[key];
  807. if (isFn(keyOption)) {
  808. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  809. }
  810. if (!keyOption) {// 不支持的参数
  811. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  812. } else if (isStr(keyOption)) {// 重写参数 key
  813. toArgs[keyOption] = fromArgs[key];
  814. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  815. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  816. }
  817. } else if (CALLBACKS.indexOf(key) !== -1) {
  818. if (isFn(fromArgs[key])) {
  819. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  820. }
  821. } else {
  822. if (!keepFromArgs) {
  823. toArgs[key] = fromArgs[key];
  824. }
  825. }
  826. }
  827. return toArgs;
  828. } else if (isFn(fromArgs)) {
  829. fromArgs = processCallback(methodName, fromArgs, returnValue);
  830. }
  831. return fromArgs;
  832. }
  833. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  834. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  835. res = protocols.returnValue(methodName, res);
  836. }
  837. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  838. }
  839. function wrapper(methodName, method) {
  840. if (hasOwn(protocols, methodName)) {
  841. var protocol = protocols[methodName];
  842. if (!protocol) {// 暂不支持的 api
  843. return function () {
  844. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  845. };
  846. }
  847. return function (arg1, arg2) {// 目前 api 最多两个参数
  848. var options = protocol;
  849. if (isFn(protocol)) {
  850. options = protocol(arg1);
  851. }
  852. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  853. var args = [arg1];
  854. if (typeof arg2 !== 'undefined') {
  855. args.push(arg2);
  856. }
  857. if (isFn(options.name)) {
  858. methodName = options.name(arg1);
  859. } else if (isStr(options.name)) {
  860. methodName = options.name;
  861. }
  862. var returnValue = wx[methodName].apply(wx, args);
  863. if (isSyncApi(methodName)) {// 同步 api
  864. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  865. }
  866. return returnValue;
  867. };
  868. }
  869. return method;
  870. }
  871. var todoApis = Object.create(null);
  872. var TODOS = [
  873. 'onTabBarMidButtonTap',
  874. 'subscribePush',
  875. 'unsubscribePush',
  876. 'onPush',
  877. 'offPush',
  878. 'share'];
  879. function createTodoApi(name) {
  880. return function todoApi(_ref)
  881. {var fail = _ref.fail,complete = _ref.complete;
  882. var res = {
  883. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  884. isFn(fail) && fail(res);
  885. isFn(complete) && complete(res);
  886. };
  887. }
  888. TODOS.forEach(function (name) {
  889. todoApis[name] = createTodoApi(name);
  890. });
  891. var providers = {
  892. oauth: ['weixin'],
  893. share: ['weixin'],
  894. payment: ['wxpay'],
  895. push: ['weixin'] };
  896. function getProvider(_ref2)
  897. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  898. var res = false;
  899. if (providers[service]) {
  900. res = {
  901. errMsg: 'getProvider:ok',
  902. service: service,
  903. provider: providers[service] };
  904. isFn(success) && success(res);
  905. } else {
  906. res = {
  907. errMsg: 'getProvider:fail service not found' };
  908. isFn(fail) && fail(res);
  909. }
  910. isFn(complete) && complete(res);
  911. }
  912. var extraApi = /*#__PURE__*/Object.freeze({
  913. __proto__: null,
  914. getProvider: getProvider });
  915. var getEmitter = function () {
  916. var Emitter;
  917. return function getUniEmitter() {
  918. if (!Emitter) {
  919. Emitter = new _vue.default();
  920. }
  921. return Emitter;
  922. };
  923. }();
  924. function apply(ctx, method, args) {
  925. return ctx[method].apply(ctx, args);
  926. }
  927. function $on() {
  928. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  929. }
  930. function $off() {
  931. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  932. }
  933. function $once() {
  934. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  935. }
  936. function $emit() {
  937. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  938. }
  939. var eventApi = /*#__PURE__*/Object.freeze({
  940. __proto__: null,
  941. $on: $on,
  942. $off: $off,
  943. $once: $once,
  944. $emit: $emit });
  945. /**
  946. * 框架内 try-catch
  947. */
  948. /**
  949. * 开发者 try-catch
  950. */
  951. function tryCatch(fn) {
  952. return function () {
  953. try {
  954. return fn.apply(fn, arguments);
  955. } catch (e) {
  956. // TODO
  957. console.error(e);
  958. }
  959. };
  960. }
  961. function getApiCallbacks(params) {
  962. var apiCallbacks = {};
  963. for (var name in params) {
  964. var param = params[name];
  965. if (isFn(param)) {
  966. apiCallbacks[name] = tryCatch(param);
  967. delete params[name];
  968. }
  969. }
  970. return apiCallbacks;
  971. }
  972. var cid;
  973. var cidErrMsg;
  974. var enabled;
  975. function normalizePushMessage(message) {
  976. try {
  977. return JSON.parse(message);
  978. } catch (e) {}
  979. return message;
  980. }
  981. function invokePushCallback(
  982. args)
  983. {
  984. if (args.type === 'enabled') {
  985. enabled = true;
  986. } else if (args.type === 'clientId') {
  987. cid = args.cid;
  988. cidErrMsg = args.errMsg;
  989. invokeGetPushCidCallbacks(cid, args.errMsg);
  990. } else if (args.type === 'pushMsg') {
  991. var message = {
  992. type: 'receive',
  993. data: normalizePushMessage(args.message) };
  994. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  995. var callback = onPushMessageCallbacks[i];
  996. callback(message);
  997. // 该消息已被阻止
  998. if (message.stopped) {
  999. break;
  1000. }
  1001. }
  1002. } else if (args.type === 'click') {
  1003. onPushMessageCallbacks.forEach(function (callback) {
  1004. callback({
  1005. type: 'click',
  1006. data: normalizePushMessage(args.message) });
  1007. });
  1008. }
  1009. }
  1010. var getPushCidCallbacks = [];
  1011. function invokeGetPushCidCallbacks(cid, errMsg) {
  1012. getPushCidCallbacks.forEach(function (callback) {
  1013. callback(cid, errMsg);
  1014. });
  1015. getPushCidCallbacks.length = 0;
  1016. }
  1017. function getPushClientId(args) {
  1018. if (!isPlainObject(args)) {
  1019. args = {};
  1020. }var _getApiCallbacks =
  1021. getApiCallbacks(args),success = _getApiCallbacks.success,fail = _getApiCallbacks.fail,complete = _getApiCallbacks.complete;
  1022. var hasSuccess = isFn(success);
  1023. var hasFail = isFn(fail);
  1024. var hasComplete = isFn(complete);
  1025. Promise.resolve().then(function () {
  1026. if (typeof enabled === 'undefined') {
  1027. enabled = false;
  1028. cid = '';
  1029. cidErrMsg = 'unipush is not enabled';
  1030. }
  1031. getPushCidCallbacks.push(function (cid, errMsg) {
  1032. var res;
  1033. if (cid) {
  1034. res = {
  1035. errMsg: 'getPushClientId:ok',
  1036. cid: cid };
  1037. hasSuccess && success(res);
  1038. } else {
  1039. res = {
  1040. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '') };
  1041. hasFail && fail(res);
  1042. }
  1043. hasComplete && complete(res);
  1044. });
  1045. if (typeof cid !== 'undefined') {
  1046. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1047. }
  1048. });
  1049. }
  1050. var onPushMessageCallbacks = [];
  1051. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1052. var onPushMessage = function onPushMessage(fn) {
  1053. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1054. onPushMessageCallbacks.push(fn);
  1055. }
  1056. };
  1057. var offPushMessage = function offPushMessage(fn) {
  1058. if (!fn) {
  1059. onPushMessageCallbacks.length = 0;
  1060. } else {
  1061. var index = onPushMessageCallbacks.indexOf(fn);
  1062. if (index > -1) {
  1063. onPushMessageCallbacks.splice(index, 1);
  1064. }
  1065. }
  1066. };
  1067. var api = /*#__PURE__*/Object.freeze({
  1068. __proto__: null,
  1069. getPushClientId: getPushClientId,
  1070. onPushMessage: onPushMessage,
  1071. offPushMessage: offPushMessage,
  1072. invokePushCallback: invokePushCallback });
  1073. var MPPage = Page;
  1074. var MPComponent = Component;
  1075. var customizeRE = /:/g;
  1076. var customize = cached(function (str) {
  1077. return camelize(str.replace(customizeRE, '-'));
  1078. });
  1079. function initTriggerEvent(mpInstance) {
  1080. var oldTriggerEvent = mpInstance.triggerEvent;
  1081. var newTriggerEvent = function newTriggerEvent(event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  1082. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  1083. };
  1084. try {
  1085. // 京东小程序 triggerEvent 为只读
  1086. mpInstance.triggerEvent = newTriggerEvent;
  1087. } catch (error) {
  1088. mpInstance._triggerEvent = newTriggerEvent;
  1089. }
  1090. }
  1091. function initHook(name, options, isComponent) {
  1092. var oldHook = options[name];
  1093. if (!oldHook) {
  1094. options[name] = function () {
  1095. initTriggerEvent(this);
  1096. };
  1097. } else {
  1098. options[name] = function () {
  1099. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  1100. return oldHook.apply(this, args);
  1101. };
  1102. }
  1103. }
  1104. if (!MPPage.__$wrappered) {
  1105. MPPage.__$wrappered = true;
  1106. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1107. initHook('onLoad', options);
  1108. return MPPage(options);
  1109. };
  1110. Page.after = MPPage.after;
  1111. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1112. initHook('created', options);
  1113. return MPComponent(options);
  1114. };
  1115. }
  1116. var PAGE_EVENT_HOOKS = [
  1117. 'onPullDownRefresh',
  1118. 'onReachBottom',
  1119. 'onAddToFavorites',
  1120. 'onShareTimeline',
  1121. 'onShareAppMessage',
  1122. 'onPageScroll',
  1123. 'onResize',
  1124. 'onTabItemTap'];
  1125. function initMocks(vm, mocks) {
  1126. var mpInstance = vm.$mp[vm.mpType];
  1127. mocks.forEach(function (mock) {
  1128. if (hasOwn(mpInstance, mock)) {
  1129. vm[mock] = mpInstance[mock];
  1130. }
  1131. });
  1132. }
  1133. function hasHook(hook, vueOptions) {
  1134. if (!vueOptions) {
  1135. return true;
  1136. }
  1137. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1138. return true;
  1139. }
  1140. vueOptions = vueOptions.default || vueOptions;
  1141. if (isFn(vueOptions)) {
  1142. if (isFn(vueOptions.extendOptions[hook])) {
  1143. return true;
  1144. }
  1145. if (vueOptions.super &&
  1146. vueOptions.super.options &&
  1147. Array.isArray(vueOptions.super.options[hook])) {
  1148. return true;
  1149. }
  1150. return false;
  1151. }
  1152. if (isFn(vueOptions[hook])) {
  1153. return true;
  1154. }
  1155. var mixins = vueOptions.mixins;
  1156. if (Array.isArray(mixins)) {
  1157. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  1158. }
  1159. }
  1160. function initHooks(mpOptions, hooks, vueOptions) {
  1161. hooks.forEach(function (hook) {
  1162. if (hasHook(hook, vueOptions)) {
  1163. mpOptions[hook] = function (args) {
  1164. return this.$vm && this.$vm.__call_hook(hook, args);
  1165. };
  1166. }
  1167. });
  1168. }
  1169. function initVueComponent(Vue, vueOptions) {
  1170. vueOptions = vueOptions.default || vueOptions;
  1171. var VueComponent;
  1172. if (isFn(vueOptions)) {
  1173. VueComponent = vueOptions;
  1174. } else {
  1175. VueComponent = Vue.extend(vueOptions);
  1176. }
  1177. vueOptions = VueComponent.options;
  1178. return [VueComponent, vueOptions];
  1179. }
  1180. function initSlots(vm, vueSlots) {
  1181. if (Array.isArray(vueSlots) && vueSlots.length) {
  1182. var $slots = Object.create(null);
  1183. vueSlots.forEach(function (slotName) {
  1184. $slots[slotName] = true;
  1185. });
  1186. vm.$scopedSlots = vm.$slots = $slots;
  1187. }
  1188. }
  1189. function initVueIds(vueIds, mpInstance) {
  1190. vueIds = (vueIds || '').split(',');
  1191. var len = vueIds.length;
  1192. if (len === 1) {
  1193. mpInstance._$vueId = vueIds[0];
  1194. } else if (len === 2) {
  1195. mpInstance._$vueId = vueIds[0];
  1196. mpInstance._$vuePid = vueIds[1];
  1197. }
  1198. }
  1199. function initData(vueOptions, context) {
  1200. var data = vueOptions.data || {};
  1201. var methods = vueOptions.methods || {};
  1202. if (typeof data === 'function') {
  1203. try {
  1204. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1205. } catch (e) {
  1206. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"vrv-platform","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1207. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1208. }
  1209. }
  1210. } else {
  1211. try {
  1212. // 对 data 格式化
  1213. data = JSON.parse(JSON.stringify(data));
  1214. } catch (e) {}
  1215. }
  1216. if (!isPlainObject(data)) {
  1217. data = {};
  1218. }
  1219. Object.keys(methods).forEach(function (methodName) {
  1220. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1221. data[methodName] = methods[methodName];
  1222. }
  1223. });
  1224. return data;
  1225. }
  1226. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1227. function createObserver(name) {
  1228. return function observer(newVal, oldVal) {
  1229. if (this.$vm) {
  1230. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1231. }
  1232. };
  1233. }
  1234. function initBehaviors(vueOptions, initBehavior) {
  1235. var vueBehaviors = vueOptions.behaviors;
  1236. var vueExtends = vueOptions.extends;
  1237. var vueMixins = vueOptions.mixins;
  1238. var vueProps = vueOptions.props;
  1239. if (!vueProps) {
  1240. vueOptions.props = vueProps = [];
  1241. }
  1242. var behaviors = [];
  1243. if (Array.isArray(vueBehaviors)) {
  1244. vueBehaviors.forEach(function (behavior) {
  1245. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1246. if (behavior === 'uni://form-field') {
  1247. if (Array.isArray(vueProps)) {
  1248. vueProps.push('name');
  1249. vueProps.push('value');
  1250. } else {
  1251. vueProps.name = {
  1252. type: String,
  1253. default: '' };
  1254. vueProps.value = {
  1255. type: [String, Number, Boolean, Array, Object, Date],
  1256. default: '' };
  1257. }
  1258. }
  1259. });
  1260. }
  1261. if (isPlainObject(vueExtends) && vueExtends.props) {
  1262. behaviors.push(
  1263. initBehavior({
  1264. properties: initProperties(vueExtends.props, true) }));
  1265. }
  1266. if (Array.isArray(vueMixins)) {
  1267. vueMixins.forEach(function (vueMixin) {
  1268. if (isPlainObject(vueMixin) && vueMixin.props) {
  1269. behaviors.push(
  1270. initBehavior({
  1271. properties: initProperties(vueMixin.props, true) }));
  1272. }
  1273. });
  1274. }
  1275. return behaviors;
  1276. }
  1277. function parsePropType(key, type, defaultValue, file) {
  1278. // [String]=>String
  1279. if (Array.isArray(type) && type.length === 1) {
  1280. return type[0];
  1281. }
  1282. return type;
  1283. }
  1284. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';var options = arguments.length > 3 ? arguments[3] : undefined;
  1285. var properties = {};
  1286. if (!isBehavior) {
  1287. properties.vueId = {
  1288. type: String,
  1289. value: '' };
  1290. {
  1291. if (options.virtualHost) {
  1292. properties.virtualHostStyle = {
  1293. type: null,
  1294. value: '' };
  1295. properties.virtualHostClass = {
  1296. type: null,
  1297. value: '' };
  1298. }
  1299. }
  1300. // scopedSlotsCompiler auto
  1301. properties.scopedSlotsCompiler = {
  1302. type: String,
  1303. value: '' };
  1304. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1305. type: null,
  1306. value: [],
  1307. observer: function observer(newVal, oldVal) {
  1308. var $slots = Object.create(null);
  1309. newVal.forEach(function (slotName) {
  1310. $slots[slotName] = true;
  1311. });
  1312. this.setData({
  1313. $slots: $slots });
  1314. } };
  1315. }
  1316. if (Array.isArray(props)) {// ['title']
  1317. props.forEach(function (key) {
  1318. properties[key] = {
  1319. type: null,
  1320. observer: createObserver(key) };
  1321. });
  1322. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  1323. Object.keys(props).forEach(function (key) {
  1324. var opts = props[key];
  1325. if (isPlainObject(opts)) {// title:{type:String,default:''}
  1326. var value = opts.default;
  1327. if (isFn(value)) {
  1328. value = value();
  1329. }
  1330. opts.type = parsePropType(key, opts.type);
  1331. properties[key] = {
  1332. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1333. value: value,
  1334. observer: createObserver(key) };
  1335. } else {// content:String
  1336. var type = parsePropType(key, opts);
  1337. properties[key] = {
  1338. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1339. observer: createObserver(key) };
  1340. }
  1341. });
  1342. }
  1343. return properties;
  1344. }
  1345. function wrapper$1(event) {
  1346. // TODO 又得兼容 mpvue 的 mp 对象
  1347. try {
  1348. event.mp = JSON.parse(JSON.stringify(event));
  1349. } catch (e) {}
  1350. event.stopPropagation = noop;
  1351. event.preventDefault = noop;
  1352. event.target = event.target || {};
  1353. if (!hasOwn(event, 'detail')) {
  1354. event.detail = {};
  1355. }
  1356. if (hasOwn(event, 'markerId')) {
  1357. event.detail = typeof event.detail === 'object' ? event.detail : {};
  1358. event.detail.markerId = event.markerId;
  1359. }
  1360. if (isPlainObject(event.detail)) {
  1361. event.target = Object.assign({}, event.target, event.detail);
  1362. }
  1363. return event;
  1364. }
  1365. function getExtraValue(vm, dataPathsArray) {
  1366. var context = vm;
  1367. dataPathsArray.forEach(function (dataPathArray) {
  1368. var dataPath = dataPathArray[0];
  1369. var value = dataPathArray[2];
  1370. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  1371. var propPath = dataPathArray[1];
  1372. var valuePath = dataPathArray[3];
  1373. var vFor;
  1374. if (Number.isInteger(dataPath)) {
  1375. vFor = dataPath;
  1376. } else if (!dataPath) {
  1377. vFor = context;
  1378. } else if (typeof dataPath === 'string' && dataPath) {
  1379. if (dataPath.indexOf('#s#') === 0) {
  1380. vFor = dataPath.substr(3);
  1381. } else {
  1382. vFor = vm.__get_value(dataPath, context);
  1383. }
  1384. }
  1385. if (Number.isInteger(vFor)) {
  1386. context = value;
  1387. } else if (!propPath) {
  1388. context = vFor[value];
  1389. } else {
  1390. if (Array.isArray(vFor)) {
  1391. context = vFor.find(function (vForItem) {
  1392. return vm.__get_value(propPath, vForItem) === value;
  1393. });
  1394. } else if (isPlainObject(vFor)) {
  1395. context = Object.keys(vFor).find(function (vForKey) {
  1396. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1397. });
  1398. } else {
  1399. console.error('v-for 暂不支持循环数据:', vFor);
  1400. }
  1401. }
  1402. if (valuePath) {
  1403. context = vm.__get_value(valuePath, context);
  1404. }
  1405. }
  1406. });
  1407. return context;
  1408. }
  1409. function processEventExtra(vm, extra, event) {
  1410. var extraObj = {};
  1411. if (Array.isArray(extra) && extra.length) {
  1412. /**
  1413. *[
  1414. * ['data.items', 'data.id', item.data.id],
  1415. * ['metas', 'id', meta.id]
  1416. *],
  1417. *[
  1418. * ['data.items', 'data.id', item.data.id],
  1419. * ['metas', 'id', meta.id]
  1420. *],
  1421. *'test'
  1422. */
  1423. extra.forEach(function (dataPath, index) {
  1424. if (typeof dataPath === 'string') {
  1425. if (!dataPath) {// model,prop.sync
  1426. extraObj['$' + index] = vm;
  1427. } else {
  1428. if (dataPath === '$event') {// $event
  1429. extraObj['$' + index] = event;
  1430. } else if (dataPath === 'arguments') {
  1431. if (event.detail && event.detail.__args__) {
  1432. extraObj['$' + index] = event.detail.__args__;
  1433. } else {
  1434. extraObj['$' + index] = [event];
  1435. }
  1436. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1437. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1438. } else {
  1439. extraObj['$' + index] = vm.__get_value(dataPath);
  1440. }
  1441. }
  1442. } else {
  1443. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1444. }
  1445. });
  1446. }
  1447. return extraObj;
  1448. }
  1449. function getObjByArray(arr) {
  1450. var obj = {};
  1451. for (var i = 1; i < arr.length; i++) {
  1452. var element = arr[i];
  1453. obj[element[0]] = element[1];
  1454. }
  1455. return obj;
  1456. }
  1457. function processEventArgs(vm, event) {var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];var isCustom = arguments.length > 4 ? arguments[4] : undefined;var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1458. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1459. if (isCustom) {// 自定义事件
  1460. isCustomMPEvent = event.currentTarget &&
  1461. event.currentTarget.dataset &&
  1462. event.currentTarget.dataset.comType === 'wx';
  1463. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1464. if (isCustomMPEvent) {
  1465. return [event];
  1466. }
  1467. return event.detail.__args__ || event.detail;
  1468. }
  1469. }
  1470. var extraObj = processEventExtra(vm, extra, event);
  1471. var ret = [];
  1472. args.forEach(function (arg) {
  1473. if (arg === '$event') {
  1474. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1475. ret.push(event.target.value);
  1476. } else {
  1477. if (isCustom && !isCustomMPEvent) {
  1478. ret.push(event.detail.__args__[0]);
  1479. } else {// wxcomponent 组件或内置组件
  1480. ret.push(event);
  1481. }
  1482. }
  1483. } else {
  1484. if (Array.isArray(arg) && arg[0] === 'o') {
  1485. ret.push(getObjByArray(arg));
  1486. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1487. ret.push(extraObj[arg]);
  1488. } else {
  1489. ret.push(arg);
  1490. }
  1491. }
  1492. });
  1493. return ret;
  1494. }
  1495. var ONCE = '~';
  1496. var CUSTOM = '^';
  1497. function isMatchEventType(eventType, optType) {
  1498. return eventType === optType ||
  1499. optType === 'regionchange' && (
  1500. eventType === 'begin' ||
  1501. eventType === 'end');
  1502. }
  1503. function getContextVm(vm) {
  1504. var $parent = vm.$parent;
  1505. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1506. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1507. $parent = $parent.$parent;
  1508. }
  1509. return $parent && $parent.$parent;
  1510. }
  1511. function handleEvent(event) {var _this2 = this;
  1512. event = wrapper$1(event);
  1513. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1514. var dataset = (event.currentTarget || event.target).dataset;
  1515. if (!dataset) {
  1516. return console.warn('事件信息不存在');
  1517. }
  1518. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1519. if (!eventOpts) {
  1520. return console.warn('事件信息不存在');
  1521. }
  1522. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1523. var eventType = event.type;
  1524. var ret = [];
  1525. eventOpts.forEach(function (eventOpt) {
  1526. var type = eventOpt[0];
  1527. var eventsArray = eventOpt[1];
  1528. var isCustom = type.charAt(0) === CUSTOM;
  1529. type = isCustom ? type.slice(1) : type;
  1530. var isOnce = type.charAt(0) === ONCE;
  1531. type = isOnce ? type.slice(1) : type;
  1532. if (eventsArray && isMatchEventType(eventType, type)) {
  1533. eventsArray.forEach(function (eventArray) {
  1534. var methodName = eventArray[0];
  1535. if (methodName) {
  1536. var handlerCtx = _this2.$vm;
  1537. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1538. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1539. }
  1540. if (methodName === '$emit') {
  1541. handlerCtx.$emit.apply(handlerCtx,
  1542. processEventArgs(
  1543. _this2.$vm,
  1544. event,
  1545. eventArray[1],
  1546. eventArray[2],
  1547. isCustom,
  1548. methodName));
  1549. return;
  1550. }
  1551. var handler = handlerCtx[methodName];
  1552. if (!isFn(handler)) {
  1553. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1554. var path = _this2.route || _this2.is;
  1555. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1556. }
  1557. if (isOnce) {
  1558. if (handler.once) {
  1559. return;
  1560. }
  1561. handler.once = true;
  1562. }
  1563. var params = processEventArgs(
  1564. _this2.$vm,
  1565. event,
  1566. eventArray[1],
  1567. eventArray[2],
  1568. isCustom,
  1569. methodName);
  1570. params = Array.isArray(params) ? params : [];
  1571. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1572. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1573. // eslint-disable-next-line no-sparse-arrays
  1574. params = params.concat([,,,,,,,,,, event]);
  1575. }
  1576. ret.push(handler.apply(handlerCtx, params));
  1577. }
  1578. });
  1579. }
  1580. });
  1581. if (
  1582. eventType === 'input' &&
  1583. ret.length === 1 &&
  1584. typeof ret[0] !== 'undefined')
  1585. {
  1586. return ret[0];
  1587. }
  1588. }
  1589. var eventChannels = {};
  1590. var eventChannelStack = [];
  1591. function getEventChannel(id) {
  1592. if (id) {
  1593. var eventChannel = eventChannels[id];
  1594. delete eventChannels[id];
  1595. return eventChannel;
  1596. }
  1597. return eventChannelStack.shift();
  1598. }
  1599. var hooks = [
  1600. 'onShow',
  1601. 'onHide',
  1602. 'onError',
  1603. 'onPageNotFound',
  1604. 'onThemeChange',
  1605. 'onUnhandledRejection'];
  1606. function initEventChannel() {
  1607. _vue.default.prototype.getOpenerEventChannel = function () {
  1608. // 微信小程序使用自身getOpenerEventChannel
  1609. {
  1610. return this.$scope.getOpenerEventChannel();
  1611. }
  1612. };
  1613. var callHook = _vue.default.prototype.__call_hook;
  1614. _vue.default.prototype.__call_hook = function (hook, args) {
  1615. if (hook === 'onLoad' && args && args.__id__) {
  1616. this.__eventChannel__ = getEventChannel(args.__id__);
  1617. delete args.__id__;
  1618. }
  1619. return callHook.call(this, hook, args);
  1620. };
  1621. }
  1622. function initScopedSlotsParams() {
  1623. var center = {};
  1624. var parents = {};
  1625. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1626. var has = center[vueId];
  1627. if (!has) {
  1628. parents[vueId] = this;
  1629. this.$on('hook:destroyed', function () {
  1630. delete parents[vueId];
  1631. });
  1632. }
  1633. return has;
  1634. };
  1635. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1636. var data = center[vueId];
  1637. if (data) {
  1638. var object = data[name] || {};
  1639. return key ? object[key] : object;
  1640. } else {
  1641. parents[vueId] = this;
  1642. this.$on('hook:destroyed', function () {
  1643. delete parents[vueId];
  1644. });
  1645. }
  1646. };
  1647. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1648. var vueIds = this.$options.propsData.vueId;
  1649. if (vueIds) {
  1650. var vueId = vueIds.split(',')[0];
  1651. var object = center[vueId] = center[vueId] || {};
  1652. object[name] = value;
  1653. if (parents[vueId]) {
  1654. parents[vueId].$forceUpdate();
  1655. }
  1656. }
  1657. };
  1658. _vue.default.mixin({
  1659. destroyed: function destroyed() {
  1660. var propsData = this.$options.propsData;
  1661. var vueId = propsData && propsData.vueId;
  1662. if (vueId) {
  1663. delete center[vueId];
  1664. delete parents[vueId];
  1665. }
  1666. } });
  1667. }
  1668. function parseBaseApp(vm, _ref3)
  1669. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1670. initEventChannel();
  1671. {
  1672. initScopedSlotsParams();
  1673. }
  1674. if (vm.$options.store) {
  1675. _vue.default.prototype.$store = vm.$options.store;
  1676. }
  1677. uniIdMixin(_vue.default);
  1678. _vue.default.prototype.mpHost = "mp-weixin";
  1679. _vue.default.mixin({
  1680. beforeCreate: function beforeCreate() {
  1681. if (!this.$options.mpType) {
  1682. return;
  1683. }
  1684. this.mpType = this.$options.mpType;
  1685. this.$mp = _defineProperty({
  1686. data: {} },
  1687. this.mpType, this.$options.mpInstance);
  1688. this.$scope = this.$options.mpInstance;
  1689. delete this.$options.mpType;
  1690. delete this.$options.mpInstance;
  1691. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1692. var app = getApp();
  1693. if (app.$vm && app.$vm.$i18n) {
  1694. this._i18n = app.$vm.$i18n;
  1695. }
  1696. }
  1697. if (this.mpType !== 'app') {
  1698. initRefs(this);
  1699. initMocks(this, mocks);
  1700. }
  1701. } });
  1702. var appOptions = {
  1703. onLaunch: function onLaunch(args) {
  1704. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1705. return;
  1706. }
  1707. {
  1708. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1709. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1710. }
  1711. }
  1712. this.$vm = vm;
  1713. this.$vm.$mp = {
  1714. app: this };
  1715. this.$vm.$scope = this;
  1716. // vm 上也挂载 globalData
  1717. this.$vm.globalData = this.globalData;
  1718. this.$vm._isMounted = true;
  1719. this.$vm.__call_hook('mounted', args);
  1720. this.$vm.__call_hook('onLaunch', args);
  1721. } };
  1722. // 兼容旧版本 globalData
  1723. appOptions.globalData = vm.$options.globalData || {};
  1724. // 将 methods 中的方法挂在 getApp() 中
  1725. var methods = vm.$options.methods;
  1726. if (methods) {
  1727. Object.keys(methods).forEach(function (name) {
  1728. appOptions[name] = methods[name];
  1729. });
  1730. }
  1731. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  1732. initHooks(appOptions, hooks);
  1733. return appOptions;
  1734. }
  1735. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1736. function findVmByVueId(vm, vuePid) {
  1737. var $children = vm.$children;
  1738. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1739. for (var i = $children.length - 1; i >= 0; i--) {
  1740. var childVm = $children[i];
  1741. if (childVm.$scope._$vueId === vuePid) {
  1742. return childVm;
  1743. }
  1744. }
  1745. // 反向递归查找
  1746. var parentVm;
  1747. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1748. parentVm = findVmByVueId($children[_i], vuePid);
  1749. if (parentVm) {
  1750. return parentVm;
  1751. }
  1752. }
  1753. }
  1754. function initBehavior(options) {
  1755. return Behavior(options);
  1756. }
  1757. function isPage() {
  1758. return !!this.route;
  1759. }
  1760. function initRelation(detail) {
  1761. this.triggerEvent('__l', detail);
  1762. }
  1763. function selectAllComponents(mpInstance, selector, $refs) {
  1764. var components = mpInstance.selectAllComponents(selector);
  1765. components.forEach(function (component) {
  1766. var ref = component.dataset.ref;
  1767. $refs[ref] = component.$vm || component;
  1768. {
  1769. if (component.dataset.vueGeneric === 'scoped') {
  1770. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1771. selectAllComponents(scopedComponent, selector, $refs);
  1772. });
  1773. }
  1774. }
  1775. });
  1776. }
  1777. function initRefs(vm) {
  1778. var mpInstance = vm.$scope;
  1779. Object.defineProperty(vm, '$refs', {
  1780. get: function get() {
  1781. var $refs = {};
  1782. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1783. // TODO 暂不考虑 for 中的 scoped
  1784. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1785. forComponents.forEach(function (component) {
  1786. var ref = component.dataset.ref;
  1787. if (!$refs[ref]) {
  1788. $refs[ref] = [];
  1789. }
  1790. $refs[ref].push(component.$vm || component);
  1791. });
  1792. return $refs;
  1793. } });
  1794. }
  1795. function handleLink(event) {var _ref4 =
  1796. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1797. var parentVm;
  1798. if (vuePid) {
  1799. parentVm = findVmByVueId(this.$vm, vuePid);
  1800. }
  1801. if (!parentVm) {
  1802. parentVm = this.$vm;
  1803. }
  1804. vueOptions.parent = parentVm;
  1805. }
  1806. function parseApp(vm) {
  1807. return parseBaseApp(vm, {
  1808. mocks: mocks,
  1809. initRefs: initRefs });
  1810. }
  1811. function createApp(vm) {
  1812. App(parseApp(vm));
  1813. return vm;
  1814. }
  1815. var encodeReserveRE = /[!'()*]/g;
  1816. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1817. var commaRE = /%2C/g;
  1818. // fixed encodeURIComponent which is more conformant to RFC3986:
  1819. // - escapes [!'()*]
  1820. // - preserve commas
  1821. var encode = function encode(str) {return encodeURIComponent(str).
  1822. replace(encodeReserveRE, encodeReserveReplacer).
  1823. replace(commaRE, ',');};
  1824. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1825. var res = obj ? Object.keys(obj).map(function (key) {
  1826. var val = obj[key];
  1827. if (val === undefined) {
  1828. return '';
  1829. }
  1830. if (val === null) {
  1831. return encodeStr(key);
  1832. }
  1833. if (Array.isArray(val)) {
  1834. var result = [];
  1835. val.forEach(function (val2) {
  1836. if (val2 === undefined) {
  1837. return;
  1838. }
  1839. if (val2 === null) {
  1840. result.push(encodeStr(key));
  1841. } else {
  1842. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1843. }
  1844. });
  1845. return result.join('&');
  1846. }
  1847. return encodeStr(key) + '=' + encodeStr(val);
  1848. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1849. return res ? "?".concat(res) : '';
  1850. }
  1851. function parseBaseComponent(vueComponentOptions)
  1852. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1853. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1854. var options = _objectSpread({
  1855. multipleSlots: true,
  1856. addGlobalClass: true },
  1857. vueOptions.options || {});
  1858. {
  1859. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1860. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1861. Object.assign(options, vueOptions['mp-weixin'].options);
  1862. }
  1863. }
  1864. var componentOptions = {
  1865. options: options,
  1866. data: initData(vueOptions, _vue.default.prototype),
  1867. behaviors: initBehaviors(vueOptions, initBehavior),
  1868. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  1869. lifetimes: {
  1870. attached: function attached() {
  1871. var properties = this.properties;
  1872. var options = {
  1873. mpType: isPage.call(this) ? 'page' : 'component',
  1874. mpInstance: this,
  1875. propsData: properties };
  1876. initVueIds(properties.vueId, this);
  1877. // 处理父子关系
  1878. initRelation.call(this, {
  1879. vuePid: this._$vuePid,
  1880. vueOptions: options });
  1881. // 初始化 vue 实例
  1882. this.$vm = new VueComponent(options);
  1883. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1884. initSlots(this.$vm, properties.vueSlots);
  1885. // 触发首次 setData
  1886. this.$vm.$mount();
  1887. },
  1888. ready: function ready() {
  1889. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1890. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1891. if (this.$vm) {
  1892. this.$vm._isMounted = true;
  1893. this.$vm.__call_hook('mounted');
  1894. this.$vm.__call_hook('onReady');
  1895. }
  1896. },
  1897. detached: function detached() {
  1898. this.$vm && this.$vm.$destroy();
  1899. } },
  1900. pageLifetimes: {
  1901. show: function show(args) {
  1902. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1903. },
  1904. hide: function hide() {
  1905. this.$vm && this.$vm.__call_hook('onPageHide');
  1906. },
  1907. resize: function resize(size) {
  1908. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1909. } },
  1910. methods: {
  1911. __l: handleLink,
  1912. __e: handleEvent } };
  1913. // externalClasses
  1914. if (vueOptions.externalClasses) {
  1915. componentOptions.externalClasses = vueOptions.externalClasses;
  1916. }
  1917. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1918. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1919. componentOptions.methods[callMethod] = function (args) {
  1920. return this.$vm[callMethod](args);
  1921. };
  1922. });
  1923. }
  1924. if (isPage) {
  1925. return componentOptions;
  1926. }
  1927. return [componentOptions, VueComponent];
  1928. }
  1929. function parseComponent(vueComponentOptions) {
  1930. return parseBaseComponent(vueComponentOptions, {
  1931. isPage: isPage,
  1932. initRelation: initRelation });
  1933. }
  1934. var hooks$1 = [
  1935. 'onShow',
  1936. 'onHide',
  1937. 'onUnload'];
  1938. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1939. function parseBasePage(vuePageOptions, _ref6)
  1940. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1941. var pageOptions = parseComponent(vuePageOptions);
  1942. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1943. pageOptions.methods.onLoad = function (query) {
  1944. this.options = query;
  1945. var copyQuery = Object.assign({}, query);
  1946. delete copyQuery.__id__;
  1947. this.$page = {
  1948. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1949. this.$vm.$mp.query = query; // 兼容 mpvue
  1950. this.$vm.__call_hook('onLoad', query);
  1951. };
  1952. return pageOptions;
  1953. }
  1954. function parsePage(vuePageOptions) {
  1955. return parseBasePage(vuePageOptions, {
  1956. isPage: isPage,
  1957. initRelation: initRelation });
  1958. }
  1959. function createPage(vuePageOptions) {
  1960. {
  1961. return Component(parsePage(vuePageOptions));
  1962. }
  1963. }
  1964. function createComponent(vueOptions) {
  1965. {
  1966. return Component(parseComponent(vueOptions));
  1967. }
  1968. }
  1969. function createSubpackageApp(vm) {
  1970. var appOptions = parseApp(vm);
  1971. var app = getApp({
  1972. allowDefault: true });
  1973. vm.$scope = app;
  1974. var globalData = app.globalData;
  1975. if (globalData) {
  1976. Object.keys(appOptions.globalData).forEach(function (name) {
  1977. if (!hasOwn(globalData, name)) {
  1978. globalData[name] = appOptions.globalData[name];
  1979. }
  1980. });
  1981. }
  1982. Object.keys(appOptions).forEach(function (name) {
  1983. if (!hasOwn(app, name)) {
  1984. app[name] = appOptions[name];
  1985. }
  1986. });
  1987. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1988. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1989. vm.__call_hook('onShow', args);
  1990. });
  1991. }
  1992. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1993. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1994. vm.__call_hook('onHide', args);
  1995. });
  1996. }
  1997. if (isFn(appOptions.onLaunch)) {
  1998. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1999. vm.__call_hook('onLaunch', args);
  2000. }
  2001. return vm;
  2002. }
  2003. function createPlugin(vm) {
  2004. var appOptions = parseApp(vm);
  2005. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2006. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  2007. vm.__call_hook('onShow', args);
  2008. });
  2009. }
  2010. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2011. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  2012. vm.__call_hook('onHide', args);
  2013. });
  2014. }
  2015. if (isFn(appOptions.onLaunch)) {
  2016. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2017. vm.__call_hook('onLaunch', args);
  2018. }
  2019. return vm;
  2020. }
  2021. todos.forEach(function (todoApi) {
  2022. protocols[todoApi] = false;
  2023. });
  2024. canIUses.forEach(function (canIUseApi) {
  2025. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  2026. canIUseApi;
  2027. if (!wx.canIUse(apiName)) {
  2028. protocols[canIUseApi] = false;
  2029. }
  2030. });
  2031. var uni = {};
  2032. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2033. uni = new Proxy({}, {
  2034. get: function get(target, name) {
  2035. if (hasOwn(target, name)) {
  2036. return target[name];
  2037. }
  2038. if (baseApi[name]) {
  2039. return baseApi[name];
  2040. }
  2041. if (api[name]) {
  2042. return promisify(name, api[name]);
  2043. }
  2044. {
  2045. if (extraApi[name]) {
  2046. return promisify(name, extraApi[name]);
  2047. }
  2048. if (todoApis[name]) {
  2049. return promisify(name, todoApis[name]);
  2050. }
  2051. }
  2052. if (eventApi[name]) {
  2053. return eventApi[name];
  2054. }
  2055. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  2056. return;
  2057. }
  2058. return promisify(name, wrapper(name, wx[name]));
  2059. },
  2060. set: function set(target, name, value) {
  2061. target[name] = value;
  2062. return true;
  2063. } });
  2064. } else {
  2065. Object.keys(baseApi).forEach(function (name) {
  2066. uni[name] = baseApi[name];
  2067. });
  2068. {
  2069. Object.keys(todoApis).forEach(function (name) {
  2070. uni[name] = promisify(name, todoApis[name]);
  2071. });
  2072. Object.keys(extraApi).forEach(function (name) {
  2073. uni[name] = promisify(name, todoApis[name]);
  2074. });
  2075. }
  2076. Object.keys(eventApi).forEach(function (name) {
  2077. uni[name] = eventApi[name];
  2078. });
  2079. Object.keys(api).forEach(function (name) {
  2080. uni[name] = promisify(name, api[name]);
  2081. });
  2082. Object.keys(wx).forEach(function (name) {
  2083. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2084. uni[name] = promisify(name, wrapper(name, wx[name]));
  2085. }
  2086. });
  2087. }
  2088. wx.createApp = createApp;
  2089. wx.createPage = createPage;
  2090. wx.createComponent = createComponent;
  2091. wx.createSubpackageApp = createSubpackageApp;
  2092. wx.createPlugin = createPlugin;
  2093. var uni$1 = uni;var _default =
  2094. uni$1;exports.default = _default;
  2095. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2096. /***/ }),
  2097. /***/ 11:
  2098. /*!**********************************************************************************************************!*\
  2099. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  2100. \**********************************************************************************************************/
  2101. /*! exports provided: default */
  2102. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2103. "use strict";
  2104. __webpack_require__.r(__webpack_exports__);
  2105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  2106. /* globals __VUE_SSR_CONTEXT__ */
  2107. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  2108. // This module is a runtime utility for cleaner component module output and will
  2109. // be included in the final webpack user bundle.
  2110. function normalizeComponent (
  2111. scriptExports,
  2112. render,
  2113. staticRenderFns,
  2114. functionalTemplate,
  2115. injectStyles,
  2116. scopeId,
  2117. moduleIdentifier, /* server only */
  2118. shadowMode, /* vue-cli only */
  2119. components, // fixed by xxxxxx auto components
  2120. renderjs // fixed by xxxxxx renderjs
  2121. ) {
  2122. // Vue.extend constructor export interop
  2123. var options = typeof scriptExports === 'function'
  2124. ? scriptExports.options
  2125. : scriptExports
  2126. // fixed by xxxxxx auto components
  2127. if (components) {
  2128. if (!options.components) {
  2129. options.components = {}
  2130. }
  2131. var hasOwn = Object.prototype.hasOwnProperty
  2132. for (var name in components) {
  2133. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  2134. options.components[name] = components[name]
  2135. }
  2136. }
  2137. }
  2138. // fixed by xxxxxx renderjs
  2139. if (renderjs) {
  2140. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  2141. this[renderjs.__module] = this
  2142. });
  2143. (options.mixins || (options.mixins = [])).push(renderjs)
  2144. }
  2145. // render functions
  2146. if (render) {
  2147. options.render = render
  2148. options.staticRenderFns = staticRenderFns
  2149. options._compiled = true
  2150. }
  2151. // functional template
  2152. if (functionalTemplate) {
  2153. options.functional = true
  2154. }
  2155. // scopedId
  2156. if (scopeId) {
  2157. options._scopeId = 'data-v-' + scopeId
  2158. }
  2159. var hook
  2160. if (moduleIdentifier) { // server build
  2161. hook = function (context) {
  2162. // 2.3 injection
  2163. context =
  2164. context || // cached call
  2165. (this.$vnode && this.$vnode.ssrContext) || // stateful
  2166. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  2167. // 2.2 with runInNewContext: true
  2168. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  2169. context = __VUE_SSR_CONTEXT__
  2170. }
  2171. // inject component styles
  2172. if (injectStyles) {
  2173. injectStyles.call(this, context)
  2174. }
  2175. // register component module identifier for async chunk inferrence
  2176. if (context && context._registeredComponents) {
  2177. context._registeredComponents.add(moduleIdentifier)
  2178. }
  2179. }
  2180. // used by ssr in case component is cached and beforeCreate
  2181. // never gets called
  2182. options._ssrRegister = hook
  2183. } else if (injectStyles) {
  2184. hook = shadowMode
  2185. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  2186. : injectStyles
  2187. }
  2188. if (hook) {
  2189. if (options.functional) {
  2190. // for template-only hot-reload because in that case the render fn doesn't
  2191. // go through the normalizer
  2192. options._injectStyles = hook
  2193. // register for functioal component in vue file
  2194. var originalRender = options.render
  2195. options.render = function renderWithStyleInjection (h, context) {
  2196. hook.call(context)
  2197. return originalRender(h, context)
  2198. }
  2199. } else {
  2200. // inject component registration as beforeCreate hook
  2201. var existing = options.beforeCreate
  2202. options.beforeCreate = existing
  2203. ? [].concat(existing, hook)
  2204. : [hook]
  2205. }
  2206. }
  2207. return {
  2208. exports: scriptExports,
  2209. options: options
  2210. }
  2211. }
  2212. /***/ }),
  2213. /***/ 12:
  2214. /*!******************************************************************************************!*\
  2215. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/utils/http.js ***!
  2216. \******************************************************************************************/
  2217. /*! no static exports found */
  2218. /***/ (function(module, exports, __webpack_require__) {
  2219. "use strict";
  2220. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var http = {
  2221. get: function get(url, data)
  2222. {var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},header = _ref.header,_ref$timeout = _ref.timeout,timeout = _ref$timeout === void 0 ? 20000 : _ref$timeout;
  2223. var promise = new Promise(function (resolve, reject) {
  2224. uni.request({
  2225. url: url,
  2226. method: 'GET',
  2227. data: data,
  2228. timeout: timeout }).
  2229. then(
  2230. function (res) {
  2231. resolve(res[1]);
  2232. }).
  2233. catch();
  2234. });
  2235. return promise;
  2236. } };var _default =
  2237. http;exports.default = _default;
  2238. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2239. /***/ }),
  2240. /***/ 13:
  2241. /*!******************************************************************************************!*\
  2242. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/config/api.js ***!
  2243. \******************************************************************************************/
  2244. /*! no static exports found */
  2245. /***/ (function(module, exports, __webpack_require__) {
  2246. "use strict";
  2247. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //路径
  2248. var root = "http://127.0.0.1:9999";
  2249. //接口auth
  2250. var api = {
  2251. user: {
  2252. list: "".concat(root, "/user/list"),
  2253. add: "".concat(root, "/user/add"),
  2254. update: "".concat(root, "/user/update"),
  2255. detail: "".concat(root, "/user/detail"),
  2256. delete: "".concat(root, "/user/delete"),
  2257. batchDelete: "".concat(root, "/user/batchDelete"),
  2258. bindRole: "".concat(root, "/user/bindRole"),
  2259. bindOperator: "".concat(root, "/user/bindOperator") },
  2260. operator: {
  2261. list: "".concat(root, "/operator/list"),
  2262. add: "".concat(root, "/operator/add"),
  2263. update: "".concat(root, "/operator/update"),
  2264. detail: "".concat(root, "/operator/detail"),
  2265. delete: "".concat(root, "/operator/delete"),
  2266. batchDelete: "".concat(root, "/operator/batchDelete") },
  2267. project: {
  2268. list: "".concat(root, "/project/list"),
  2269. operatorList: "".concat(root, "/project/operatorList"),
  2270. add: "".concat(root, "/project/add"),
  2271. update: "".concat(root, "/project/update"),
  2272. detail: "".concat(root, "/project/detail"),
  2273. delete: "".concat(root, "/project/delete"),
  2274. batchDelete: "".concat(root, "/project/batchDelete") },
  2275. gateway: {
  2276. list: "".concat(root, "/gateway/list"),
  2277. add: "".concat(root, "/gateway/add"),
  2278. update: "".concat(root, "/gateway/update"),
  2279. detail: "".concat(root, "/gateway/detail"),
  2280. delete: "".concat(root, "/gateway/delete"),
  2281. batchDelete: "".concat(root, "/gateway/batchDelete") },
  2282. device: {
  2283. list: "".concat(root, "/device/list"),
  2284. add: "".concat(root, "/device/add"),
  2285. update: "".concat(root, "/device/update"),
  2286. detail: "".concat(root, "/device/detail"),
  2287. delete: "".concat(root, "/device/delete"),
  2288. batchDelete: "".concat(root, "/device/batchDelete") },
  2289. deviceParam: {
  2290. list: "".concat(root, "/deviceParam/list"),
  2291. add: "".concat(root, "/deviceParam/add"),
  2292. update: "".concat(root, "/deviceParam/update"),
  2293. updateParam: "".concat(root, "/deviceParam/updateParam"),
  2294. detail: "".concat(root, "/deviceParam/detail"),
  2295. delete: "".concat(root, "/deviceParam/delete"),
  2296. batchDelete: "".concat(root, "/deviceParam/batchDelete"),
  2297. getTimeData: "".concat(root, "/deviceParam/getTimeData") },
  2298. deviceAlarmRecord: {
  2299. list: "".concat(root, "/deviceAlarmRecord/list"),
  2300. add: "".concat(root, "/deviceAlarmRecord/add"),
  2301. update: "".concat(root, "/deviceAlarmRecord/update"),
  2302. detail: "".concat(root, "/deviceAlarmRecord/detail"),
  2303. delete: "".concat(root, "/deviceAlarmRecord/delete"),
  2304. batchDelete: "".concat(root, "/deviceAlarmRecord/batchDelete") },
  2305. deviceAlarmConfig: {
  2306. list: "".concat(root, "/deviceAlarmConfig/list"),
  2307. add: "".concat(root, "/deviceAlarmConfig/add"),
  2308. update: "".concat(root, "/deviceAlarmConfig/update"),
  2309. detail: "".concat(root, "/deviceAlarmConfig/detail"),
  2310. delete: "".concat(root, "/deviceAlarmConfig/delete"),
  2311. batchDelete: "".concat(root, "/deviceAlarmConfig/batchDelete") },
  2312. deviceAlarmRepairRecord: {
  2313. list: "".concat(root, "/deviceAlarmRepairRecord/list"),
  2314. add: "".concat(root, "/deviceAlarmRepairRecord/add"),
  2315. update: "".concat(root, "/deviceAlarmRepairRecord/update"),
  2316. detail: "".concat(root, "/deviceAlarmRepairRecord/detail"),
  2317. delete: "".concat(root, "/deviceAlarmRepairRecord/delete"),
  2318. batchDelete: "".concat(root, "/deviceAlarmRepairRecord/batchDelete") },
  2319. operatorLog: {
  2320. list: "".concat(root, "/operatorLog/list"),
  2321. add: "".concat(root, "/operatorLog/add"),
  2322. update: "".concat(root, "/operatorLog/update"),
  2323. detail: "".concat(root, "/operatorLog/detail"),
  2324. delete: "".concat(root, "/operatorLog/delete"),
  2325. batchDelete: "".concat(root, "/operatorLog/batchDelete") },
  2326. auth: {
  2327. verifyCode: "".concat(root, "/auth/verifyCode"),
  2328. login: "".concat(root, "/auth/login"),
  2329. updateUserPassword: "".concat(root, "/auth/updateUserPassword"),
  2330. userInfo: "".concat(root, "/auth/userInfo"),
  2331. logout: "".concat(root, "/auth/logout") },
  2332. role: {
  2333. list: "".concat(root, "/role/list"),
  2334. add: "".concat(root, "/role/add"),
  2335. update: "".concat(root, "/role/update"),
  2336. detail: "".concat(root, "/role/detail"),
  2337. delete: "".concat(root, "/role/delete") },
  2338. power: {
  2339. list: "".concat(root, "/power/list"),
  2340. add: "".concat(root, "/power/add"),
  2341. update: "".concat(root, "/power/update"),
  2342. detail: "".concat(root, "/power/detail"),
  2343. delete: "".concat(root, "/power/delete") },
  2344. rolePower: {
  2345. list: "".concat(root, "/rolePower/list"),
  2346. add: "".concat(root, "/rolePower/add"),
  2347. update: "".concat(root, "/rolePower/update"),
  2348. detail: "".concat(root, "/rolePower/detail"),
  2349. delete: "".concat(root, "/rolePower/delete") },
  2350. menu: {} };var _default =
  2351. Object.assign({
  2352. $base: {
  2353. root: root } },
  2354. api);exports.default = _default;
  2355. /***/ }),
  2356. /***/ 14:
  2357. /*!********************************************************************************************!*\
  2358. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/utils/moment.js ***!
  2359. \********************************************************************************************/
  2360. /*! no static exports found */
  2361. /***/ (function(module, exports, __webpack_require__) {
  2362. /* WEBPACK VAR INJECTION */(function(module) {!function (e, a) { true ? module.exports = a() : undefined;}(this, function () {"use strict";var e, n;function l() {return e.apply(null, arguments);}function _(e) {return e instanceof Array || "[object Array]" === Object.prototype.toString.call(e);}function i(e) {return null != e && "[object Object]" === Object.prototype.toString.call(e);}function o(e) {return void 0 === e;}function m(e) {return "number" == typeof e || "[object Number]" === Object.prototype.toString.call(e);}function u(e) {return e instanceof Date || "[object Date]" === Object.prototype.toString.call(e);}function M(e, a) {var t,s = [];for (t = 0; t < e.length; ++t) {s.push(a(e[t], t));}return s;}function h(e, a) {return Object.prototype.hasOwnProperty.call(e, a);}function L(e, a) {for (var t in a) {h(a, t) && (e[t] = a[t]);}return h(a, "toString") && (e.toString = a.toString), h(a, "valueOf") && (e.valueOf = a.valueOf), e;}function c(e, a, t, s) {return Sa(e, a, t, s, !0).utc();}function Y(e) {return null == e._pf && (e._pf = { empty: !1, unusedTokens: [], unusedInput: [], overflow: -2, charsLeftOver: 0, nullInput: !1, invalidMonth: null, invalidFormat: !1, userInvalidated: !1, iso: !1, parsedDateParts: [], meridiem: null, rfc2822: !1, weekdayMismatch: !1 }), e._pf;}function y(e) {if (null == e._isValid) {var a = Y(e),t = n.call(a.parsedDateParts, function (e) {return null != e;}),s = !isNaN(e._d.getTime()) && a.overflow < 0 && !a.empty && !a.invalidMonth && !a.invalidWeekday && !a.weekdayMismatch && !a.nullInput && !a.invalidFormat && !a.userInvalidated && (!a.meridiem || a.meridiem && t);if (e._strict && (s = s && 0 === a.charsLeftOver && 0 === a.unusedTokens.length && void 0 === a.bigHour), null != Object.isFrozen && Object.isFrozen(e)) return s;e._isValid = s;}return e._isValid;}function f(e) {var a = c(NaN);return null != e ? L(Y(a), e) : Y(a).userInvalidated = !0, a;}n = Array.prototype.some ? Array.prototype.some : function (e) {for (var a = Object(this), t = a.length >>> 0, s = 0; s < t; s++) {if (s in a && e.call(this, a[s], s, a)) return !0;}return !1;};var d = l.momentProperties = [];function k(e, a) {var t, s, n;if (o(a._isAMomentObject) || (e._isAMomentObject = a._isAMomentObject), o(a._i) || (e._i = a._i), o(a._f) || (e._f = a._f), o(a._l) || (e._l = a._l), o(a._strict) || (e._strict = a._strict), o(a._tzm) || (e._tzm = a._tzm), o(a._isUTC) || (e._isUTC = a._isUTC), o(a._offset) || (e._offset = a._offset), o(a._pf) || (e._pf = Y(a)), o(a._locale) || (e._locale = a._locale), 0 < d.length) for (t = 0; t < d.length; t++) {o(n = a[s = d[t]]) || (e[s] = n);}return e;}var a = !1;function p(e) {k(this, e), this._d = new Date(null != e._d ? e._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), !1 === a && (a = !0, l.updateOffset(this), a = !1);}function D(e) {return e instanceof p || null != e && null != e._isAMomentObject;}function T(e) {return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);}function g(e) {var a = +e,t = 0;return 0 !== a && isFinite(a) && (t = T(a)), t;}function r(e, a, t) {var s,n = Math.min(e.length, a.length),d = Math.abs(e.length - a.length),r = 0;for (s = 0; s < n; s++) {(t && e[s] !== a[s] || !t && g(e[s]) !== g(a[s])) && r++;}return r + d;}function w(e) {!1 === l.suppressDeprecationWarnings && "undefined" != typeof console && console.warn && console.warn("Deprecation warning: " + e);}function t(n, d) {var r = !0;return L(function () {if (null != l.deprecationHandler && l.deprecationHandler(null, n), r) {for (var e, a = [], t = 0; t < arguments.length; t++) {if (e = "", "object" == typeof arguments[t]) {for (var s in e += "\n[" + t + "] ", arguments[0]) {e += s + ": " + arguments[0][s] + ", ";}e = e.slice(0, -2);} else e = arguments[t];a.push(e);}w(n + "\nArguments: " + Array.prototype.slice.call(a).join("") + "\n" + new Error().stack), r = !1;}return d.apply(this, arguments);}, d);}var s,v = {};function S(e, a) {null != l.deprecationHandler && l.deprecationHandler(e, a), v[e] || (w(a), v[e] = !0);}function H(e) {return e instanceof Function || "[object Function]" === Object.prototype.toString.call(e);}function b(e, a) {var t,s = L({}, e);for (t in a) {h(a, t) && (i(e[t]) && i(a[t]) ? (s[t] = {}, L(s[t], e[t]), L(s[t], a[t])) : null != a[t] ? s[t] = a[t] : delete s[t]);}for (t in e) {h(e, t) && !h(a, t) && i(e[t]) && (s[t] = L({}, s[t]));}return s;}function j(e) {null != e && this.set(e);}l.suppressDeprecationWarnings = !1, l.deprecationHandler = null, s = Object.keys ? Object.keys : function (e) {var a,t = [];for (a in e) {h(e, a) && t.push(a);}return t;};var x = {};function O(e, a) {var t = e.toLowerCase();x[t] = x[t + "s"] = x[a] = e;}function P(e) {return "string" == typeof e ? x[e] || x[e.toLowerCase()] : void 0;}function W(e) {var a,t,s = {};for (t in e) {h(e, t) && (a = P(t)) && (s[a] = e[t]);}return s;}var A = {};function E(e, a) {A[e] = a;}function F(e, a, t) {var s = "" + Math.abs(e),n = a - s.length;return (0 <= e ? t ? "+" : "" : "-") + Math.pow(10, Math.max(0, n)).toString().substr(1) + s;}var z = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N = {},R = {};function C(e, a, t, s) {var n = s;"string" == typeof s && (n = function n() {return this[s]();}), e && (R[e] = n), a && (R[a[0]] = function () {return F(n.apply(this, arguments), a[1], a[2]);}), t && (R[t] = function () {return this.localeData().ordinal(n.apply(this, arguments), e);});}function I(e, a) {return e.isValid() ? (a = U(a, e.localeData()), N[a] = N[a] || function (s) {var e,n,a,d = s.match(z);for (e = 0, n = d.length; e < n; e++) {R[d[e]] ? d[e] = R[d[e]] : d[e] = (a = d[e]).match(/\[[\s\S]/) ? a.replace(/^\[|\]$/g, "") : a.replace(/\\/g, "");}return function (e) {var a,t = "";for (a = 0; a < n; a++) {t += H(d[a]) ? d[a].call(e, s) : d[a];}return t;};}(a), N[a](e)) : e.localeData().invalidDate();}function U(e, a) {var t = 5;function s(e) {return a.longDateFormat(e) || e;}for (J.lastIndex = 0; 0 <= t && J.test(e);) {e = e.replace(J, s), J.lastIndex = 0, t -= 1;}return e;}var G = /\d/,V = /\d\d/,K = /\d{3}/,Z = /\d{4}/,$ = /[+-]?\d{6}/,B = /\d\d?/,q = /\d\d\d\d?/,Q = /\d\d\d\d\d\d?/,X = /\d{1,3}/,ee = /\d{1,4}/,ae = /[+-]?\d{1,6}/,te = /\d+/,se = /[+-]?\d+/,ne = /Z|[+-]\d\d:?\d\d/gi,de = /Z|[+-]\d\d(?::?\d\d)?/gi,re = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_e = {};function ie(e, t, s) {_e[e] = H(t) ? t : function (e, a) {return e && s ? s : t;};}function oe(e, a) {return h(_e, e) ? _e[e](a._strict, a._locale) : new RegExp(me(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (e, a, t, s, n) {return a || t || s || n;})));}function me(e) {return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");}var ue = {};function le(e, t) {var a,s = t;for ("string" == typeof e && (e = [e]), m(t) && (s = function s(e, a) {a[t] = g(e);}), a = 0; a < e.length; a++) {ue[e[a]] = s;}}function Me(e, n) {le(e, function (e, a, t, s) {t._w = t._w || {}, n(e, t._w, t, s);});}var he = 0,Le = 1,ce = 2,Ye = 3,ye = 4,fe = 5,ke = 6,pe = 7,De = 8;function Te(e) {return ge(e) ? 366 : 365;}function ge(e) {return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;}C("Y", 0, 0, function () {var e = this.year();return e <= 9999 ? "" + e : "+" + e;}), C(0, ["YY", 2], 0, function () {return this.year() % 100;}), C(0, ["YYYY", 4], 0, "year"), C(0, ["YYYYY", 5], 0, "year"), C(0, ["YYYYYY", 6, !0], 0, "year"), O("year", "y"), E("year", 1), ie("Y", se), ie("YY", B, V), ie("YYYY", ee, Z), ie("YYYYY", ae, $), ie("YYYYYY", ae, $), le(["YYYYY", "YYYYYY"], he), le("YYYY", function (e, a) {a[he] = 2 === e.length ? l.parseTwoDigitYear(e) : g(e);}), le("YY", function (e, a) {a[he] = l.parseTwoDigitYear(e);}), le("Y", function (e, a) {a[he] = parseInt(e, 10);}), l.parseTwoDigitYear = function (e) {return g(e) + (68 < g(e) ? 1900 : 2e3);};var we,ve = Se("FullYear", !0);function Se(a, t) {return function (e) {return null != e ? (be(this, a, e), l.updateOffset(this, t), this) : He(this, a);};}function He(e, a) {return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + a]() : NaN;}function be(e, a, t) {e.isValid() && !isNaN(t) && ("FullYear" === a && ge(e.year()) && 1 === e.month() && 29 === e.date() ? e._d["set" + (e._isUTC ? "UTC" : "") + a](t, e.month(), je(t, e.month())) : e._d["set" + (e._isUTC ? "UTC" : "") + a](t));}function je(e, a) {if (isNaN(e) || isNaN(a)) return NaN;var t,s = (a % (t = 12) + t) % t;return e += (a - s) / 12, 1 === s ? ge(e) ? 29 : 28 : 31 - s % 7 % 2;}we = Array.prototype.indexOf ? Array.prototype.indexOf : function (e) {var a;for (a = 0; a < this.length; ++a) {if (this[a] === e) return a;}return -1;}, C("M", ["MM", 2], "Mo", function () {return this.month() + 1;}), C("MMM", 0, 0, function (e) {return this.localeData().monthsShort(this, e);}), C("MMMM", 0, 0, function (e) {return this.localeData().months(this, e);}), O("month", "M"), E("month", 8), ie("M", B), ie("MM", B, V), ie("MMM", function (e, a) {return a.monthsShortRegex(e);}), ie("MMMM", function (e, a) {return a.monthsRegex(e);}), le(["M", "MM"], function (e, a) {a[Le] = g(e) - 1;}), le(["MMM", "MMMM"], function (e, a, t, s) {var n = t._locale.monthsParse(e, s, t._strict);null != n ? a[Le] = n : Y(t).invalidMonth = e;});var xe = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Oe = "January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Pe = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function We(e, a) {var t;if (!e.isValid()) return e;if ("string" == typeof a) if (/^\d+$/.test(a)) a = g(a);else if (!m(a = e.localeData().monthsParse(a))) return e;return t = Math.min(e.date(), je(e.year(), a)), e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](a, t), e;}function Ae(e) {return null != e ? (We(this, e), l.updateOffset(this, !0), this) : He(this, "Month");}var Ee = re;var Fe = re;function ze() {function e(e, a) {return a.length - e.length;}var a,t,s = [],n = [],d = [];for (a = 0; a < 12; a++) {t = c([2e3, a]), s.push(this.monthsShort(t, "")), n.push(this.months(t, "")), d.push(this.months(t, "")), d.push(this.monthsShort(t, ""));}for (s.sort(e), n.sort(e), d.sort(e), a = 0; a < 12; a++) {s[a] = me(s[a]), n[a] = me(n[a]);}for (a = 0; a < 24; a++) {d[a] = me(d[a]);}this._monthsRegex = new RegExp("^(" + d.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp("^(" + n.join("|") + ")", "i"), this._monthsShortStrictRegex = new RegExp("^(" + s.join("|") + ")", "i");}function Je(e) {var a;if (e < 100 && 0 <= e) {var t = Array.prototype.slice.call(arguments);t[0] = e + 400, a = new Date(Date.UTC.apply(null, t)), isFinite(a.getUTCFullYear()) && a.setUTCFullYear(e);} else a = new Date(Date.UTC.apply(null, arguments));return a;}function Ne(e, a, t) {var s = 7 + a - t;return -((7 + Je(e, 0, s).getUTCDay() - a) % 7) + s - 1;}function Re(e, a, t, s, n) {var d,r,_ = 1 + 7 * (a - 1) + (7 + t - s) % 7 + Ne(e, s, n);return r = _ <= 0 ? Te(d = e - 1) + _ : _ > Te(e) ? (d = e + 1, _ - Te(e)) : (d = e, _), { year: d, dayOfYear: r };}function Ce(e, a, t) {var s,n,d = Ne(e.year(), a, t),r = Math.floor((e.dayOfYear() - d - 1) / 7) + 1;return r < 1 ? s = r + Ie(n = e.year() - 1, a, t) : r > Ie(e.year(), a, t) ? (s = r - Ie(e.year(), a, t), n = e.year() + 1) : (n = e.year(), s = r), { week: s, year: n };}function Ie(e, a, t) {var s = Ne(e, a, t),n = Ne(e + 1, a, t);return (Te(e) - s + n) / 7;}C("w", ["ww", 2], "wo", "week"), C("W", ["WW", 2], "Wo", "isoWeek"), O("week", "w"), O("isoWeek", "W"), E("week", 5), E("isoWeek", 5), ie("w", B), ie("ww", B, V), ie("W", B), ie("WW", B, V), Me(["w", "ww", "W", "WW"], function (e, a, t, s) {a[s.substr(0, 1)] = g(e);});function Ue(e, a) {return e.slice(a, 7).concat(e.slice(0, a));}C("d", 0, "do", "day"), C("dd", 0, 0, function (e) {return this.localeData().weekdaysMin(this, e);}), C("ddd", 0, 0, function (e) {return this.localeData().weekdaysShort(this, e);}), C("dddd", 0, 0, function (e) {return this.localeData().weekdays(this, e);}), C("e", 0, 0, "weekday"), C("E", 0, 0, "isoWeekday"), O("day", "d"), O("weekday", "e"), O("isoWeekday", "E"), E("day", 11), E("weekday", 11), E("isoWeekday", 11), ie("d", B), ie("e", B), ie("E", B), ie("dd", function (e, a) {return a.weekdaysMinRegex(e);}), ie("ddd", function (e, a) {return a.weekdaysShortRegex(e);}), ie("dddd", function (e, a) {return a.weekdaysRegex(e);}), Me(["dd", "ddd", "dddd"], function (e, a, t, s) {var n = t._locale.weekdaysParse(e, s, t._strict);null != n ? a.d = n : Y(t).invalidWeekday = e;}), Me(["d", "e", "E"], function (e, a, t, s) {a[s] = g(e);});var Ge = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ve = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ke = "Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ze = re;var $e = re;var Be = re;function qe() {function e(e, a) {return a.length - e.length;}var a,t,s,n,d,r = [],_ = [],i = [],o = [];for (a = 0; a < 7; a++) {t = c([2e3, 1]).day(a), s = this.weekdaysMin(t, ""), n = this.weekdaysShort(t, ""), d = this.weekdays(t, ""), r.push(s), _.push(n), i.push(d), o.push(s), o.push(n), o.push(d);}for (r.sort(e), _.sort(e), i.sort(e), o.sort(e), a = 0; a < 7; a++) {_[a] = me(_[a]), i[a] = me(i[a]), o[a] = me(o[a]);}this._weekdaysRegex = new RegExp("^(" + o.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._weekdaysShortStrictRegex = new RegExp("^(" + _.join("|") + ")", "i"), this._weekdaysMinStrictRegex = new RegExp("^(" + r.join("|") + ")", "i");}function Qe() {return this.hours() % 12 || 12;}function Xe(e, a) {C(e, 0, 0, function () {return this.localeData().meridiem(this.hours(), this.minutes(), a);});}function ea(e, a) {return a._meridiemParse;}C("H", ["HH", 2], 0, "hour"), C("h", ["hh", 2], 0, Qe), C("k", ["kk", 2], 0, function () {return this.hours() || 24;}), C("hmm", 0, 0, function () {return "" + Qe.apply(this) + F(this.minutes(), 2);}), C("hmmss", 0, 0, function () {return "" + Qe.apply(this) + F(this.minutes(), 2) + F(this.seconds(), 2);}), C("Hmm", 0, 0, function () {return "" + this.hours() + F(this.minutes(), 2);}), C("Hmmss", 0, 0, function () {return "" + this.hours() + F(this.minutes(), 2) + F(this.seconds(), 2);}), Xe("a", !0), Xe("A", !1), O("hour", "h"), E("hour", 13), ie("a", ea), ie("A", ea), ie("H", B), ie("h", B), ie("k", B), ie("HH", B, V), ie("hh", B, V), ie("kk", B, V), ie("hmm", q), ie("hmmss", Q), ie("Hmm", q), ie("Hmmss", Q), le(["H", "HH"], Ye), le(["k", "kk"], function (e, a, t) {var s = g(e);a[Ye] = 24 === s ? 0 : s;}), le(["a", "A"], function (e, a, t) {t._isPm = t._locale.isPM(e), t._meridiem = e;}), le(["h", "hh"], function (e, a, t) {a[Ye] = g(e), Y(t).bigHour = !0;}), le("hmm", function (e, a, t) {var s = e.length - 2;a[Ye] = g(e.substr(0, s)), a[ye] = g(e.substr(s)), Y(t).bigHour = !0;}), le("hmmss", function (e, a, t) {var s = e.length - 4,n = e.length - 2;a[Ye] = g(e.substr(0, s)), a[ye] = g(e.substr(s, 2)), a[fe] = g(e.substr(n)), Y(t).bigHour = !0;}), le("Hmm", function (e, a, t) {var s = e.length - 2;a[Ye] = g(e.substr(0, s)), a[ye] = g(e.substr(s));}), le("Hmmss", function (e, a, t) {var s = e.length - 4,n = e.length - 2;a[Ye] = g(e.substr(0, s)), a[ye] = g(e.substr(s, 2)), a[fe] = g(e.substr(n));});var aa,ta = Se("Hours", !0),sa = { calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, longDateFormat: { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, invalidDate: "Invalid date", ordinal: "%d", dayOfMonthOrdinalParse: /\d{1,2}/, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, months: Oe, monthsShort: Pe, week: { dow: 0, doy: 6 }, weekdays: Ge, weekdaysMin: Ke, weekdaysShort: Ve, meridiemParse: /[ap]\.?m?\.?/i },na = {},da = {};function ra(e) {return e ? e.toLowerCase().replace("_", "-") : e;}function _a(e) {var a = null;if (!na[e] && "undefined" != typeof module && module && module.exports) try {a = aa._abbr, !(function webpackMissingModule() { var e = new Error("Cannot find module 'undefined'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()), ia(a);} catch (e) {}return na[e];}function ia(e, a) {var t;return e && ((t = o(a) ? ma(e) : oa(e, a)) ? aa = t : "undefined" != typeof console && console.warn && console.warn("Locale " + e + " not found. Did you forget to load it?")), aa._abbr;}function oa(e, a) {if (null === a) return delete na[e], null;var t,s = sa;if (a.abbr = e, null != na[e]) S("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."), s = na[e]._config;else if (null != a.parentLocale) if (null != na[a.parentLocale]) s = na[a.parentLocale]._config;else {if (null == (t = _a(a.parentLocale))) return da[a.parentLocale] || (da[a.parentLocale] = []), da[a.parentLocale].push({ name: e, config: a }), null;s = t._config;}return na[e] = new j(b(s, a)), da[e] && da[e].forEach(function (e) {oa(e.name, e.config);}), ia(e), na[e];}function ma(e) {var a;if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return aa;if (!_(e)) {if (a = _a(e)) return a;e = [e];}return function (e) {for (var a, t, s, n, d = 0; d < e.length;) {for (a = (n = ra(e[d]).split("-")).length, t = (t = ra(e[d + 1])) ? t.split("-") : null; 0 < a;) {if (s = _a(n.slice(0, a).join("-"))) return s;if (t && t.length >= a && r(n, t, !0) >= a - 1) break;a--;}d++;}return aa;}(e);}function ua(e) {var a,t = e._a;return t && -2 === Y(e).overflow && (a = t[Le] < 0 || 11 < t[Le] ? Le : t[ce] < 1 || t[ce] > je(t[he], t[Le]) ? ce : t[Ye] < 0 || 24 < t[Ye] || 24 === t[Ye] && (0 !== t[ye] || 0 !== t[fe] || 0 !== t[ke]) ? Ye : t[ye] < 0 || 59 < t[ye] ? ye : t[fe] < 0 || 59 < t[fe] ? fe : t[ke] < 0 || 999 < t[ke] ? ke : -1, Y(e)._overflowDayOfYear && (a < he || ce < a) && (a = ce), Y(e)._overflowWeeks && -1 === a && (a = pe), Y(e)._overflowWeekday && -1 === a && (a = De), Y(e).overflow = a), e;}function la(e, a, t) {return null != e ? e : null != a ? a : t;}function Ma(e) {var a,t,s,n,d,r = [];if (!e._d) {var _, i;for (_ = e, i = new Date(l.now()), s = _._useUTC ? [i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()] : [i.getFullYear(), i.getMonth(), i.getDate()], e._w && null == e._a[ce] && null == e._a[Le] && function (e) {var a, t, s, n, d, r, _, i;if (null != (a = e._w).GG || null != a.W || null != a.E) d = 1, r = 4, t = la(a.GG, e._a[he], Ce(Ha(), 1, 4).year), s = la(a.W, 1), ((n = la(a.E, 1)) < 1 || 7 < n) && (i = !0);else {d = e._locale._week.dow, r = e._locale._week.doy;var o = Ce(Ha(), d, r);t = la(a.gg, e._a[he], o.year), s = la(a.w, o.week), null != a.d ? ((n = a.d) < 0 || 6 < n) && (i = !0) : null != a.e ? (n = a.e + d, (a.e < 0 || 6 < a.e) && (i = !0)) : n = d;}s < 1 || s > Ie(t, d, r) ? Y(e)._overflowWeeks = !0 : null != i ? Y(e)._overflowWeekday = !0 : (_ = Re(t, s, n, d, r), e._a[he] = _.year, e._dayOfYear = _.dayOfYear);}(e), null != e._dayOfYear && (d = la(e._a[he], s[he]), (e._dayOfYear > Te(d) || 0 === e._dayOfYear) && (Y(e)._overflowDayOfYear = !0), t = Je(d, 0, e._dayOfYear), e._a[Le] = t.getUTCMonth(), e._a[ce] = t.getUTCDate()), a = 0; a < 3 && null == e._a[a]; ++a) {e._a[a] = r[a] = s[a];}for (; a < 7; a++) {e._a[a] = r[a] = null == e._a[a] ? 2 === a ? 1 : 0 : e._a[a];}24 === e._a[Ye] && 0 === e._a[ye] && 0 === e._a[fe] && 0 === e._a[ke] && (e._nextDay = !0, e._a[Ye] = 0), e._d = (e._useUTC ? Je : function (e, a, t, s, n, d, r) {var _;return e < 100 && 0 <= e ? (_ = new Date(e + 400, a, t, s, n, d, r), isFinite(_.getFullYear()) && _.setFullYear(e)) : _ = new Date(e, a, t, s, n, d, r), _;}).apply(null, r), n = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[Ye] = 24), e._w && void 0 !== e._w.d && e._w.d !== n && (Y(e).weekdayMismatch = !0);}}var ha = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,La = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ca = /Z|[+-]\d\d(?::?\d\d)?/,Ya = [["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/], ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/], ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/], ["GGGG-[W]WW", /\d{4}-W\d\d/, !1], ["YYYY-DDD", /\d{4}-\d{3}/], ["YYYY-MM", /\d{4}-\d\d/, !1], ["YYYYYYMMDD", /[+-]\d{10}/], ["YYYYMMDD", /\d{8}/], ["GGGG[W]WWE", /\d{4}W\d{3}/], ["GGGG[W]WW", /\d{4}W\d{2}/, !1], ["YYYYDDD", /\d{7}/]],ya = [["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/], ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/], ["HH:mm:ss", /\d\d:\d\d:\d\d/], ["HH:mm", /\d\d:\d\d/], ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/], ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/], ["HHmmss", /\d\d\d\d\d\d/], ["HHmm", /\d\d\d\d/], ["HH", /\d\d/]],fa = /^\/?Date\((\-?\d+)/i;function ka(e) {var a,t,s,n,d,r,_ = e._i,i = ha.exec(_) || La.exec(_);if (i) {for (Y(e).iso = !0, a = 0, t = Ya.length; a < t; a++) {if (Ya[a][1].exec(i[1])) {n = Ya[a][0], s = !1 !== Ya[a][2];break;}}if (null == n) return void (e._isValid = !1);if (i[3]) {for (a = 0, t = ya.length; a < t; a++) {if (ya[a][1].exec(i[3])) {d = (i[2] || " ") + ya[a][0];break;}}if (null == d) return void (e._isValid = !1);}if (!s && null != d) return void (e._isValid = !1);if (i[4]) {if (!ca.exec(i[4])) return void (e._isValid = !1);r = "Z";}e._f = n + (d || "") + (r || ""), wa(e);} else e._isValid = !1;}var pa = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Da(e, a, t, s, n, d) {var r = [function (e) {var a = parseInt(e, 10);{if (a <= 49) return 2e3 + a;if (a <= 999) return 1900 + a;}return a;}(e), Pe.indexOf(a), parseInt(t, 10), parseInt(s, 10), parseInt(n, 10)];return d && r.push(parseInt(d, 10)), r;}var Ta = { UT: 0, GMT: 0, EDT: -240, EST: -300, CDT: -300, CST: -360, MDT: -360, MST: -420, PDT: -420, PST: -480 };function ga(e) {var a,t,s,n = pa.exec(e._i.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""));if (n) {var d = Da(n[4], n[3], n[2], n[5], n[6], n[7]);if (a = n[1], t = d, s = e, a && Ve.indexOf(a) !== new Date(t[0], t[1], t[2]).getDay() && (Y(s).weekdayMismatch = !0, !(s._isValid = !1))) return;e._a = d, e._tzm = function (e, a, t) {if (e) return Ta[e];if (a) return 0;var s = parseInt(t, 10),n = s % 100;return (s - n) / 100 * 60 + n;}(n[8], n[9], n[10]), e._d = Je.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), Y(e).rfc2822 = !0;} else e._isValid = !1;}function wa(e) {if (e._f !== l.ISO_8601) {if (e._f !== l.RFC_2822) {e._a = [], Y(e).empty = !0;var a,t,s,n,d,r,_,i,o = "" + e._i,m = o.length,u = 0;for (s = U(e._f, e._locale).match(z) || [], a = 0; a < s.length; a++) {n = s[a], (t = (o.match(oe(n, e)) || [])[0]) && (0 < (d = o.substr(0, o.indexOf(t))).length && Y(e).unusedInput.push(d), o = o.slice(o.indexOf(t) + t.length), u += t.length), R[n] ? (t ? Y(e).empty = !1 : Y(e).unusedTokens.push(n), r = n, i = e, null != (_ = t) && h(ue, r) && ue[r](_, i._a, i, r)) : e._strict && !t && Y(e).unusedTokens.push(n);}Y(e).charsLeftOver = m - u, 0 < o.length && Y(e).unusedInput.push(o), e._a[Ye] <= 12 && !0 === Y(e).bigHour && 0 < e._a[Ye] && (Y(e).bigHour = void 0), Y(e).parsedDateParts = e._a.slice(0), Y(e).meridiem = e._meridiem, e._a[Ye] = function (e, a, t) {var s;if (null == t) return a;return null != e.meridiemHour ? e.meridiemHour(a, t) : (null != e.isPM && ((s = e.isPM(t)) && a < 12 && (a += 12), s || 12 !== a || (a = 0)), a);}(e._locale, e._a[Ye], e._meridiem), Ma(e), ua(e);} else ga(e);} else ka(e);}function va(e) {var a,t,s,n,d = e._i,r = e._f;return e._locale = e._locale || ma(e._l), null === d || void 0 === r && "" === d ? f({ nullInput: !0 }) : ("string" == typeof d && (e._i = d = e._locale.preparse(d)), D(d) ? new p(ua(d)) : (u(d) ? e._d = d : _(r) ? function (e) {var a, t, s, n, d;if (0 === e._f.length) return Y(e).invalidFormat = !0, e._d = new Date(NaN);for (n = 0; n < e._f.length; n++) {d = 0, a = k({}, e), null != e._useUTC && (a._useUTC = e._useUTC), a._f = e._f[n], wa(a), y(a) && (d += Y(a).charsLeftOver, d += 10 * Y(a).unusedTokens.length, Y(a).score = d, (null == s || d < s) && (s = d, t = a));}L(e, t || a);}(e) : r ? wa(e) : o(t = (a = e)._i) ? a._d = new Date(l.now()) : u(t) ? a._d = new Date(t.valueOf()) : "string" == typeof t ? (s = a, null === (n = fa.exec(s._i)) ? (ka(s), !1 === s._isValid && (delete s._isValid, ga(s), !1 === s._isValid && (delete s._isValid, l.createFromInputFallback(s)))) : s._d = new Date(+n[1])) : _(t) ? (a._a = M(t.slice(0), function (e) {return parseInt(e, 10);}), Ma(a)) : i(t) ? function (e) {if (!e._d) {var a = W(e._i);e._a = M([a.year, a.month, a.day || a.date, a.hour, a.minute, a.second, a.millisecond], function (e) {return e && parseInt(e, 10);}), Ma(e);}}(a) : m(t) ? a._d = new Date(t) : l.createFromInputFallback(a), y(e) || (e._d = null), e));}function Sa(e, a, t, s, n) {var d,r = {};return !0 !== t && !1 !== t || (s = t, t = void 0), (i(e) && function (e) {if (Object.getOwnPropertyNames) return 0 === Object.getOwnPropertyNames(e).length;var a;for (a in e) {if (e.hasOwnProperty(a)) return !1;}return !0;}(e) || _(e) && 0 === e.length) && (e = void 0), r._isAMomentObject = !0, r._useUTC = r._isUTC = n, r._l = t, r._i = e, r._f = a, r._strict = s, (d = new p(ua(va(r))))._nextDay && (d.add(1, "d"), d._nextDay = void 0), d;}function Ha(e, a, t, s) {return Sa(e, a, t, s, !1);}l.createFromInputFallback = t("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function (e) {e._d = new Date(e._i + (e._useUTC ? " UTC" : ""));}), l.ISO_8601 = function () {}, l.RFC_2822 = function () {};var ba = t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function () {var e = Ha.apply(null, arguments);return this.isValid() && e.isValid() ? e < this ? this : e : f();}),ja = t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function () {var e = Ha.apply(null, arguments);return this.isValid() && e.isValid() ? this < e ? this : e : f();});function xa(e, a) {var t, s;if (1 === a.length && _(a[0]) && (a = a[0]), !a.length) return Ha();for (t = a[0], s = 1; s < a.length; ++s) {a[s].isValid() && !a[s][e](t) || (t = a[s]);}return t;}var Oa = ["year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond"];function Pa(e) {var a = W(e),t = a.year || 0,s = a.quarter || 0,n = a.month || 0,d = a.week || a.isoWeek || 0,r = a.day || 0,_ = a.hour || 0,i = a.minute || 0,o = a.second || 0,m = a.millisecond || 0;this._isValid = function (e) {for (var a in e) {if (-1 === we.call(Oa, a) || null != e[a] && isNaN(e[a])) return !1;}for (var t = !1, s = 0; s < Oa.length; ++s) {if (e[Oa[s]]) {if (t) return !1;parseFloat(e[Oa[s]]) !== g(e[Oa[s]]) && (t = !0);}}return !0;}(a), this._milliseconds = +m + 1e3 * o + 6e4 * i + 1e3 * _ * 60 * 60, this._days = +r + 7 * d, this._months = +n + 3 * s + 12 * t, this._data = {}, this._locale = ma(), this._bubble();}function Wa(e) {return e instanceof Pa;}function Aa(e) {return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e);}function Ea(e, t) {C(e, 0, 0, function () {var e = this.utcOffset(),a = "+";return e < 0 && (e = -e, a = "-"), a + F(~~(e / 60), 2) + t + F(~~e % 60, 2);});}Ea("Z", ":"), Ea("ZZ", ""), ie("Z", de), ie("ZZ", de), le(["Z", "ZZ"], function (e, a, t) {t._useUTC = !0, t._tzm = za(de, e);});var Fa = /([\+\-]|\d\d)/gi;function za(e, a) {var t = (a || "").match(e);if (null === t) return null;var s = ((t[t.length - 1] || []) + "").match(Fa) || ["-", 0, 0],n = 60 * s[1] + g(s[2]);return 0 === n ? 0 : "+" === s[0] ? n : -n;}function Ja(e, a) {var t, s;return a._isUTC ? (t = a.clone(), s = (D(e) || u(e) ? e.valueOf() : Ha(e).valueOf()) - t.valueOf(), t._d.setTime(t._d.valueOf() + s), l.updateOffset(t, !1), t) : Ha(e).local();}function Na(e) {return 15 * -Math.round(e._d.getTimezoneOffset() / 15);}function Ra() {return !!this.isValid() && this._isUTC && 0 === this._offset;}l.updateOffset = function () {};var Ca = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ia = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ua(e, a) {var t,s,n,d = e,r = null;return Wa(e) ? d = { ms: e._milliseconds, d: e._days, M: e._months } : m(e) ? (d = {}, a ? d[a] = e : d.milliseconds = e) : (r = Ca.exec(e)) ? (t = "-" === r[1] ? -1 : 1, d = { y: 0, d: g(r[ce]) * t, h: g(r[Ye]) * t, m: g(r[ye]) * t, s: g(r[fe]) * t, ms: g(Aa(1e3 * r[ke])) * t }) : (r = Ia.exec(e)) ? (t = "-" === r[1] ? -1 : 1, d = { y: Ga(r[2], t), M: Ga(r[3], t), w: Ga(r[4], t), d: Ga(r[5], t), h: Ga(r[6], t), m: Ga(r[7], t), s: Ga(r[8], t) }) : null == d ? d = {} : "object" == typeof d && ("from" in d || "to" in d) && (n = function (e, a) {var t;if (!e.isValid() || !a.isValid()) return { milliseconds: 0, months: 0 };a = Ja(a, e), e.isBefore(a) ? t = Va(e, a) : ((t = Va(a, e)).milliseconds = -t.milliseconds, t.months = -t.months);return t;}(Ha(d.from), Ha(d.to)), (d = {}).ms = n.milliseconds, d.M = n.months), s = new Pa(d), Wa(e) && h(e, "_locale") && (s._locale = e._locale), s;}function Ga(e, a) {var t = e && parseFloat(e.replace(",", "."));return (isNaN(t) ? 0 : t) * a;}function Va(e, a) {var t = {};return t.months = a.month() - e.month() + 12 * (a.year() - e.year()), e.clone().add(t.months, "M").isAfter(a) && --t.months, t.milliseconds = +a - +e.clone().add(t.months, "M"), t;}function Ka(s, n) {return function (e, a) {var t;return null === a || isNaN(+a) || (S(n, "moment()." + n + "(period, number) is deprecated. Please use moment()." + n + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), t = e, e = a, a = t), Za(this, Ua(e = "string" == typeof e ? +e : e, a), s), this;};}function Za(e, a, t, s) {var n = a._milliseconds,d = Aa(a._days),r = Aa(a._months);e.isValid() && (s = null == s || s, r && We(e, He(e, "Month") + r * t), d && be(e, "Date", He(e, "Date") + d * t), n && e._d.setTime(e._d.valueOf() + n * t), s && l.updateOffset(e, d || r));}Ua.fn = Pa.prototype, Ua.invalid = function () {return Ua(NaN);};var $a = Ka(1, "add"),Ba = Ka(-1, "subtract");function qa(e, a) {var t = 12 * (a.year() - e.year()) + (a.month() - e.month()),s = e.clone().add(t, "months");return -(t + (a - s < 0 ? (a - s) / (s - e.clone().add(t - 1, "months")) : (a - s) / (e.clone().add(t + 1, "months") - s))) || 0;}function Qa(e) {var a;return void 0 === e ? this._locale._abbr : (null != (a = ma(e)) && (this._locale = a), this);}l.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ", l.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";var Xa = t("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function (e) {return void 0 === e ? this.localeData() : this.locale(e);});function et() {return this._locale;}var at = 126227808e5;function tt(e, a) {return (e % a + a) % a;}function st(e, a, t) {return e < 100 && 0 <= e ? new Date(e + 400, a, t) - at : new Date(e, a, t).valueOf();}function nt(e, a, t) {return e < 100 && 0 <= e ? Date.UTC(e + 400, a, t) - at : Date.UTC(e, a, t);}function dt(e, a) {C(0, [e, e.length], 0, a);}function rt(e, a, t, s, n) {var d;return null == e ? Ce(this, s, n).year : ((d = Ie(e, s, n)) < a && (a = d), function (e, a, t, s, n) {var d = Re(e, a, t, s, n),r = Je(d.year, 0, d.dayOfYear);return this.year(r.getUTCFullYear()), this.month(r.getUTCMonth()), this.date(r.getUTCDate()), this;}.call(this, e, a, t, s, n));}C(0, ["gg", 2], 0, function () {return this.weekYear() % 100;}), C(0, ["GG", 2], 0, function () {return this.isoWeekYear() % 100;}), dt("gggg", "weekYear"), dt("ggggg", "weekYear"), dt("GGGG", "isoWeekYear"), dt("GGGGG", "isoWeekYear"), O("weekYear", "gg"), O("isoWeekYear", "GG"), E("weekYear", 1), E("isoWeekYear", 1), ie("G", se), ie("g", se), ie("GG", B, V), ie("gg", B, V), ie("GGGG", ee, Z), ie("gggg", ee, Z), ie("GGGGG", ae, $), ie("ggggg", ae, $), Me(["gggg", "ggggg", "GGGG", "GGGGG"], function (e, a, t, s) {a[s.substr(0, 2)] = g(e);}), Me(["gg", "GG"], function (e, a, t, s) {a[s] = l.parseTwoDigitYear(e);}), C("Q", 0, "Qo", "quarter"), O("quarter", "Q"), E("quarter", 7), ie("Q", G), le("Q", function (e, a) {a[Le] = 3 * (g(e) - 1);}), C("D", ["DD", 2], "Do", "date"), O("date", "D"), E("date", 9), ie("D", B), ie("DD", B, V), ie("Do", function (e, a) {return e ? a._dayOfMonthOrdinalParse || a._ordinalParse : a._dayOfMonthOrdinalParseLenient;}), le(["D", "DD"], ce), le("Do", function (e, a) {a[ce] = g(e.match(B)[0]);});var _t = Se("Date", !0);C("DDD", ["DDDD", 3], "DDDo", "dayOfYear"), O("dayOfYear", "DDD"), E("dayOfYear", 4), ie("DDD", X), ie("DDDD", K), le(["DDD", "DDDD"], function (e, a, t) {t._dayOfYear = g(e);}), C("m", ["mm", 2], 0, "minute"), O("minute", "m"), E("minute", 14), ie("m", B), ie("mm", B, V), le(["m", "mm"], ye);var it = Se("Minutes", !1);C("s", ["ss", 2], 0, "second"), O("second", "s"), E("second", 15), ie("s", B), ie("ss", B, V), le(["s", "ss"], fe);var ot,mt = Se("Seconds", !1);for (C("S", 0, 0, function () {return ~~(this.millisecond() / 100);}), C(0, ["SS", 2], 0, function () {return ~~(this.millisecond() / 10);}), C(0, ["SSS", 3], 0, "millisecond"), C(0, ["SSSS", 4], 0, function () {return 10 * this.millisecond();}), C(0, ["SSSSS", 5], 0, function () {return 100 * this.millisecond();}), C(0, ["SSSSSS", 6], 0, function () {return 1e3 * this.millisecond();}), C(0, ["SSSSSSS", 7], 0, function () {return 1e4 * this.millisecond();}), C(0, ["SSSSSSSS", 8], 0, function () {return 1e5 * this.millisecond();}), C(0, ["SSSSSSSSS", 9], 0, function () {return 1e6 * this.millisecond();}), O("millisecond", "ms"), E("millisecond", 16), ie("S", X, G), ie("SS", X, V), ie("SSS", X, K), ot = "SSSS"; ot.length <= 9; ot += "S") {ie(ot, te);}function ut(e, a) {a[ke] = g(1e3 * ("0." + e));}for (ot = "S"; ot.length <= 9; ot += "S") {le(ot, ut);}var lt = Se("Milliseconds", !1);C("z", 0, 0, "zoneAbbr"), C("zz", 0, 0, "zoneName");var Mt = p.prototype;function ht(e) {return e;}Mt.add = $a, Mt.calendar = function (e, a) {var t = e || Ha(),s = Ja(t, this).startOf("day"),n = l.calendarFormat(this, s) || "sameElse",d = a && (H(a[n]) ? a[n].call(this, t) : a[n]);return this.format(d || this.localeData().calendar(n, this, Ha(t)));}, Mt.clone = function () {return new p(this);}, Mt.diff = function (e, a, t) {var s, n, d;if (!this.isValid()) return NaN;if (!(s = Ja(e, this)).isValid()) return NaN;switch (n = 6e4 * (s.utcOffset() - this.utcOffset()), a = P(a)) {case "year":d = qa(this, s) / 12;break;case "month":d = qa(this, s);break;case "quarter":d = qa(this, s) / 3;break;case "second":d = (this - s) / 1e3;break;case "minute":d = (this - s) / 6e4;break;case "hour":d = (this - s) / 36e5;break;case "day":d = (this - s - n) / 864e5;break;case "week":d = (this - s - n) / 6048e5;break;default:d = this - s;}return t ? d : T(d);}, Mt.endOf = function (e) {var a;if (void 0 === (e = P(e)) || "millisecond" === e || !this.isValid()) return this;var t = this._isUTC ? nt : st;switch (e) {case "year":a = t(this.year() + 1, 0, 1) - 1;break;case "quarter":a = t(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;break;case "month":a = t(this.year(), this.month() + 1, 1) - 1;break;case "week":a = t(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;break;case "isoWeek":a = t(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;break;case "day":case "date":a = t(this.year(), this.month(), this.date() + 1) - 1;break;case "hour":a = this._d.valueOf(), a += 36e5 - tt(a + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5) - 1;break;case "minute":a = this._d.valueOf(), a += 6e4 - tt(a, 6e4) - 1;break;case "second":a = this._d.valueOf(), a += 1e3 - tt(a, 1e3) - 1;break;}return this._d.setTime(a), l.updateOffset(this, !0), this;}, Mt.format = function (e) {e || (e = this.isUtc() ? l.defaultFormatUtc : l.defaultFormat);var a = I(this, e);return this.localeData().postformat(a);}, Mt.from = function (e, a) {return this.isValid() && (D(e) && e.isValid() || Ha(e).isValid()) ? Ua({ to: this, from: e }).locale(this.locale()).humanize(!a) : this.localeData().invalidDate();}, Mt.fromNow = function (e) {return this.from(Ha(), e);}, Mt.to = function (e, a) {return this.isValid() && (D(e) && e.isValid() || Ha(e).isValid()) ? Ua({ from: this, to: e }).locale(this.locale()).humanize(!a) : this.localeData().invalidDate();}, Mt.toNow = function (e) {return this.to(Ha(), e);}, Mt.get = function (e) {return H(this[e = P(e)]) ? this[e]() : this;}, Mt.invalidAt = function () {return Y(this).overflow;}, Mt.isAfter = function (e, a) {var t = D(e) ? e : Ha(e);return !(!this.isValid() || !t.isValid()) && ("millisecond" === (a = P(a) || "millisecond") ? this.valueOf() > t.valueOf() : t.valueOf() < this.clone().startOf(a).valueOf());}, Mt.isBefore = function (e, a) {var t = D(e) ? e : Ha(e);return !(!this.isValid() || !t.isValid()) && ("millisecond" === (a = P(a) || "millisecond") ? this.valueOf() < t.valueOf() : this.clone().endOf(a).valueOf() < t.valueOf());}, Mt.isBetween = function (e, a, t, s) {var n = D(e) ? e : Ha(e),d = D(a) ? a : Ha(a);return !!(this.isValid() && n.isValid() && d.isValid()) && ("(" === (s = s || "()")[0] ? this.isAfter(n, t) : !this.isBefore(n, t)) && (")" === s[1] ? this.isBefore(d, t) : !this.isAfter(d, t));}, Mt.isSame = function (e, a) {var t,s = D(e) ? e : Ha(e);return !(!this.isValid() || !s.isValid()) && ("millisecond" === (a = P(a) || "millisecond") ? this.valueOf() === s.valueOf() : (t = s.valueOf(), this.clone().startOf(a).valueOf() <= t && t <= this.clone().endOf(a).valueOf()));}, Mt.isSameOrAfter = function (e, a) {return this.isSame(e, a) || this.isAfter(e, a);}, Mt.isSameOrBefore = function (e, a) {return this.isSame(e, a) || this.isBefore(e, a);}, Mt.isValid = function () {return y(this);}, Mt.lang = Xa, Mt.locale = Qa, Mt.localeData = et, Mt.max = ja, Mt.min = ba, Mt.parsingFlags = function () {return L({}, Y(this));}, Mt.set = function (e, a) {if ("object" == typeof e) for (var t = function (e) {var a = [];for (var t in e) {a.push({ unit: t, priority: A[t] });}return a.sort(function (e, a) {return e.priority - a.priority;}), a;}(e = W(e)), s = 0; s < t.length; s++) {this[t[s].unit](e[t[s].unit]);} else if (H(this[e = P(e)])) return this[e](a);return this;}, Mt.startOf = function (e) {var a;if (void 0 === (e = P(e)) || "millisecond" === e || !this.isValid()) return this;var t = this._isUTC ? nt : st;switch (e) {case "year":a = t(this.year(), 0, 1);break;case "quarter":a = t(this.year(), this.month() - this.month() % 3, 1);break;case "month":a = t(this.year(), this.month(), 1);break;case "week":a = t(this.year(), this.month(), this.date() - this.weekday());break;case "isoWeek":a = t(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));break;case "day":case "date":a = t(this.year(), this.month(), this.date());break;case "hour":a = this._d.valueOf(), a -= tt(a + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5);break;case "minute":a = this._d.valueOf(), a -= tt(a, 6e4);break;case "second":a = this._d.valueOf(), a -= tt(a, 1e3);break;}return this._d.setTime(a), l.updateOffset(this, !0), this;}, Mt.subtract = Ba, Mt.toArray = function () {var e = this;return [e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e.millisecond()];}, Mt.toObject = function () {var e = this;return { years: e.year(), months: e.month(), date: e.date(), hours: e.hours(), minutes: e.minutes(), seconds: e.seconds(), milliseconds: e.milliseconds() };}, Mt.toDate = function () {return new Date(this.valueOf());}, Mt.toISOString = function (e) {if (!this.isValid()) return null;var a = !0 !== e,t = a ? this.clone().utc() : this;return t.year() < 0 || 9999 < t.year() ? I(t, a ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ") : H(Date.prototype.toISOString) ? a ? this.toDate().toISOString() : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3).toISOString().replace("Z", I(t, "Z")) : I(t, a ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");}, Mt.inspect = function () {if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";var e = "moment",a = "";this.isLocal() || (e = 0 === this.utcOffset() ? "moment.utc" : "moment.parseZone", a = "Z");var t = "[" + e + '("]',s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY",n = a + '[")]';return this.format(t + s + "-MM-DD[T]HH:mm:ss.SSS" + n);}, Mt.toJSON = function () {return this.isValid() ? this.toISOString() : null;}, Mt.toString = function () {return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");}, Mt.unix = function () {return Math.floor(this.valueOf() / 1e3);}, Mt.valueOf = function () {return this._d.valueOf() - 6e4 * (this._offset || 0);}, Mt.creationData = function () {return { input: this._i, format: this._f, locale: this._locale, isUTC: this._isUTC, strict: this._strict };}, Mt.year = ve, Mt.isLeapYear = function () {return ge(this.year());}, Mt.weekYear = function (e) {return rt.call(this, e, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);}, Mt.isoWeekYear = function (e) {return rt.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4);}, Mt.quarter = Mt.quarters = function (e) {return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + this.month() % 3);}, Mt.month = Ae, Mt.daysInMonth = function () {return je(this.year(), this.month());}, Mt.week = Mt.weeks = function (e) {var a = this.localeData().week(this);return null == e ? a : this.add(7 * (e - a), "d");}, Mt.isoWeek = Mt.isoWeeks = function (e) {var a = Ce(this, 1, 4).week;return null == e ? a : this.add(7 * (e - a), "d");}, Mt.weeksInYear = function () {var e = this.localeData()._week;return Ie(this.year(), e.dow, e.doy);}, Mt.isoWeeksInYear = function () {return Ie(this.year(), 1, 4);}, Mt.date = _t, Mt.day = Mt.days = function (e) {if (!this.isValid()) return null != e ? this : NaN;var a,t,s = this._isUTC ? this._d.getUTCDay() : this._d.getDay();return null != e ? (a = e, t = this.localeData(), e = "string" != typeof a ? a : isNaN(a) ? "number" == typeof (a = t.weekdaysParse(a)) ? a : null : parseInt(a, 10), this.add(e - s, "d")) : s;}, Mt.weekday = function (e) {if (!this.isValid()) return null != e ? this : NaN;var a = (this.day() + 7 - this.localeData()._week.dow) % 7;return null == e ? a : this.add(e - a, "d");}, Mt.isoWeekday = function (e) {if (!this.isValid()) return null != e ? this : NaN;if (null == e) return this.day() || 7;var a,t,s = (a = e, t = this.localeData(), "string" == typeof a ? t.weekdaysParse(a) % 7 || 7 : isNaN(a) ? null : a);return this.day(this.day() % 7 ? s : s - 7);}, Mt.dayOfYear = function (e) {var a = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;return null == e ? a : this.add(e - a, "d");}, Mt.hour = Mt.hours = ta, Mt.minute = Mt.minutes = it, Mt.second = Mt.seconds = mt, Mt.millisecond = Mt.milliseconds = lt, Mt.utcOffset = function (e, a, t) {var s,n = this._offset || 0;if (!this.isValid()) return null != e ? this : NaN;if (null == e) return this._isUTC ? n : Na(this);if ("string" == typeof e) {if (null === (e = za(de, e))) return this;} else Math.abs(e) < 16 && !t && (e *= 60);return !this._isUTC && a && (s = Na(this)), this._offset = e, this._isUTC = !0, null != s && this.add(s, "m"), n !== e && (!a || this._changeInProgress ? Za(this, Ua(e - n, "m"), 1, !1) : this._changeInProgress || (this._changeInProgress = !0, l.updateOffset(this, !0), this._changeInProgress = null)), this;}, Mt.utc = function (e) {return this.utcOffset(0, e);}, Mt.local = function (e) {return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(Na(this), "m")), this;}, Mt.parseZone = function () {if (null != this._tzm) this.utcOffset(this._tzm, !1, !0);else if ("string" == typeof this._i) {var e = za(ne, this._i);null != e ? this.utcOffset(e) : this.utcOffset(0, !0);}return this;}, Mt.hasAlignedHourOffset = function (e) {return !!this.isValid() && (e = e ? Ha(e).utcOffset() : 0, (this.utcOffset() - e) % 60 == 0);}, Mt.isDST = function () {return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();}, Mt.isLocal = function () {return !!this.isValid() && !this._isUTC;}, Mt.isUtcOffset = function () {return !!this.isValid() && this._isUTC;}, Mt.isUtc = Ra, Mt.isUTC = Ra, Mt.zoneAbbr = function () {return this._isUTC ? "UTC" : "";}, Mt.zoneName = function () {return this._isUTC ? "Coordinated Universal Time" : "";}, Mt.dates = t("dates accessor is deprecated. Use date instead.", _t), Mt.months = t("months accessor is deprecated. Use month instead", Ae), Mt.years = t("years accessor is deprecated. Use year instead", ve), Mt.zone = t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", function (e, a) {return null != e ? ("string" != typeof e && (e = -e), this.utcOffset(e, a), this) : -this.utcOffset();}), Mt.isDSTShifted = t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", function () {if (!o(this._isDSTShifted)) return this._isDSTShifted;var e = {};if (k(e, this), (e = va(e))._a) {var a = e._isUTC ? c(e._a) : Ha(e._a);this._isDSTShifted = this.isValid() && 0 < r(e._a, a.toArray());} else this._isDSTShifted = !1;return this._isDSTShifted;});var Lt = j.prototype;function ct(e, a, t, s) {var n = ma(),d = c().set(s, a);return n[t](d, e);}function Yt(e, a, t) {if (m(e) && (a = e, e = void 0), e = e || "", null != a) return ct(e, a, t, "month");var s,n = [];for (s = 0; s < 12; s++) {n[s] = ct(e, s, t, "month");}return n;}function yt(e, a, t, s) {a = ("boolean" == typeof e ? m(a) && (t = a, a = void 0) : (a = e, e = !1, m(t = a) && (t = a, a = void 0)), a || "");var n,d = ma(),r = e ? d._week.dow : 0;if (null != t) return ct(a, (t + r) % 7, s, "day");var _ = [];for (n = 0; n < 7; n++) {_[n] = ct(a, (n + r) % 7, s, "day");}return _;}Lt.calendar = function (e, a, t) {var s = this._calendar[e] || this._calendar.sameElse;return H(s) ? s.call(a, t) : s;}, Lt.longDateFormat = function (e) {var a = this._longDateFormat[e],t = this._longDateFormat[e.toUpperCase()];return a || !t ? a : (this._longDateFormat[e] = t.replace(/MMMM|MM|DD|dddd/g, function (e) {return e.slice(1);}), this._longDateFormat[e]);}, Lt.invalidDate = function () {return this._invalidDate;}, Lt.ordinal = function (e) {return this._ordinal.replace("%d", e);}, Lt.preparse = ht, Lt.postformat = ht, Lt.relativeTime = function (e, a, t, s) {var n = this._relativeTime[t];return H(n) ? n(e, a, t, s) : n.replace(/%d/i, e);}, Lt.pastFuture = function (e, a) {var t = this._relativeTime[0 < e ? "future" : "past"];return H(t) ? t(a) : t.replace(/%s/i, a);}, Lt.set = function (e) {var a, t;for (t in e) {H(a = e[t]) ? this[t] = a : this["_" + t] = a;}this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source);}, Lt.months = function (e, a) {return e ? _(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || xe).test(a) ? "format" : "standalone"][e.month()] : _(this._months) ? this._months : this._months.standalone;}, Lt.monthsShort = function (e, a) {return e ? _(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[xe.test(a) ? "format" : "standalone"][e.month()] : _(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;}, Lt.monthsParse = function (e, a, t) {var s, n, d;if (this._monthsParseExact) return function (e, a, t) {var s,n,d,r = e.toLocaleLowerCase();if (!this._monthsParse) for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s) {d = c([2e3, s]), this._shortMonthsParse[s] = this.monthsShort(d, "").toLocaleLowerCase(), this._longMonthsParse[s] = this.months(d, "").toLocaleLowerCase();}return t ? "MMM" === a ? -1 !== (n = we.call(this._shortMonthsParse, r)) ? n : null : -1 !== (n = we.call(this._longMonthsParse, r)) ? n : null : "MMM" === a ? -1 !== (n = we.call(this._shortMonthsParse, r)) ? n : -1 !== (n = we.call(this._longMonthsParse, r)) ? n : null : -1 !== (n = we.call(this._longMonthsParse, r)) ? n : -1 !== (n = we.call(this._shortMonthsParse, r)) ? n : null;}.call(this, e, a, t);for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) {if (n = c([2e3, s]), t && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp("^" + this.months(n, "").replace(".", "") + "$", "i"), this._shortMonthsParse[s] = new RegExp("^" + this.monthsShort(n, "").replace(".", "") + "$", "i")), t || this._monthsParse[s] || (d = "^" + this.months(n, "") + "|^" + this.monthsShort(n, ""), this._monthsParse[s] = new RegExp(d.replace(".", ""), "i")), t && "MMMM" === a && this._longMonthsParse[s].test(e)) return s;if (t && "MMM" === a && this._shortMonthsParse[s].test(e)) return s;if (!t && this._monthsParse[s].test(e)) return s;}}, Lt.monthsRegex = function (e) {return this._monthsParseExact ? (h(this, "_monthsRegex") || ze.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (h(this, "_monthsRegex") || (this._monthsRegex = Fe), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);}, Lt.monthsShortRegex = function (e) {return this._monthsParseExact ? (h(this, "_monthsRegex") || ze.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (h(this, "_monthsShortRegex") || (this._monthsShortRegex = Ee), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);}, Lt.week = function (e) {return Ce(e, this._week.dow, this._week.doy).week;}, Lt.firstDayOfYear = function () {return this._week.doy;}, Lt.firstDayOfWeek = function () {return this._week.dow;}, Lt.weekdays = function (e, a) {var t = _(this._weekdays) ? this._weekdays : this._weekdays[e && !0 !== e && this._weekdays.isFormat.test(a) ? "format" : "standalone"];return !0 === e ? Ue(t, this._week.dow) : e ? t[e.day()] : t;}, Lt.weekdaysMin = function (e) {return !0 === e ? Ue(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;}, Lt.weekdaysShort = function (e) {return !0 === e ? Ue(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;}, Lt.weekdaysParse = function (e, a, t) {var s, n, d;if (this._weekdaysParseExact) return function (e, a, t) {var s,n,d,r = e.toLocaleLowerCase();if (!this._weekdaysParse) for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s) {d = c([2e3, 1]).day(s), this._minWeekdaysParse[s] = this.weekdaysMin(d, "").toLocaleLowerCase(), this._shortWeekdaysParse[s] = this.weekdaysShort(d, "").toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(d, "").toLocaleLowerCase();}return t ? "dddd" === a ? -1 !== (n = we.call(this._weekdaysParse, r)) ? n : null : "ddd" === a ? -1 !== (n = we.call(this._shortWeekdaysParse, r)) ? n : null : -1 !== (n = we.call(this._minWeekdaysParse, r)) ? n : null : "dddd" === a ? -1 !== (n = we.call(this._weekdaysParse, r)) ? n : -1 !== (n = we.call(this._shortWeekdaysParse, r)) ? n : -1 !== (n = we.call(this._minWeekdaysParse, r)) ? n : null : "ddd" === a ? -1 !== (n = we.call(this._shortWeekdaysParse, r)) ? n : -1 !== (n = we.call(this._weekdaysParse, r)) ? n : -1 !== (n = we.call(this._minWeekdaysParse, r)) ? n : null : -1 !== (n = we.call(this._minWeekdaysParse, r)) ? n : -1 !== (n = we.call(this._weekdaysParse, r)) ? n : -1 !== (n = we.call(this._shortWeekdaysParse, r)) ? n : null;}.call(this, e, a, t);for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) {if (n = c([2e3, 1]).day(s), t && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp("^" + this.weekdays(n, "").replace(".", "\\.?") + "$", "i"), this._shortWeekdaysParse[s] = new RegExp("^" + this.weekdaysShort(n, "").replace(".", "\\.?") + "$", "i"), this._minWeekdaysParse[s] = new RegExp("^" + this.weekdaysMin(n, "").replace(".", "\\.?") + "$", "i")), this._weekdaysParse[s] || (d = "^" + this.weekdays(n, "") + "|^" + this.weekdaysShort(n, "") + "|^" + this.weekdaysMin(n, ""), this._weekdaysParse[s] = new RegExp(d.replace(".", ""), "i")), t && "dddd" === a && this._fullWeekdaysParse[s].test(e)) return s;if (t && "ddd" === a && this._shortWeekdaysParse[s].test(e)) return s;if (t && "dd" === a && this._minWeekdaysParse[s].test(e)) return s;if (!t && this._weekdaysParse[s].test(e)) return s;}}, Lt.weekdaysRegex = function (e) {return this._weekdaysParseExact ? (h(this, "_weekdaysRegex") || qe.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (h(this, "_weekdaysRegex") || (this._weekdaysRegex = Ze), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);}, Lt.weekdaysShortRegex = function (e) {return this._weekdaysParseExact ? (h(this, "_weekdaysRegex") || qe.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (h(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = $e), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);}, Lt.weekdaysMinRegex = function (e) {return this._weekdaysParseExact ? (h(this, "_weekdaysRegex") || qe.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (h(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Be), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);}, Lt.isPM = function (e) {return "p" === (e + "").toLowerCase().charAt(0);}, Lt.meridiem = function (e, a, t) {return 11 < e ? t ? "pm" : "PM" : t ? "am" : "AM";}, ia("en", { dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 === g(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");} }), l.lang = t("moment.lang is deprecated. Use moment.locale instead.", ia), l.langData = t("moment.langData is deprecated. Use moment.localeData instead.", ma);var ft = Math.abs;function kt(e, a, t, s) {var n = Ua(a, t);return e._milliseconds += s * n._milliseconds, e._days += s * n._days, e._months += s * n._months, e._bubble();}function pt(e) {return e < 0 ? Math.floor(e) : Math.ceil(e);}function Dt(e) {return 4800 * e / 146097;}function Tt(e) {return 146097 * e / 4800;}function gt(e) {return function () {return this.as(e);};}var wt = gt("ms"),vt = gt("s"),St = gt("m"),Ht = gt("h"),bt = gt("d"),jt = gt("w"),xt = gt("M"),Ot = gt("Q"),Pt = gt("y");function Wt(e) {return function () {return this.isValid() ? this._data[e] : NaN;};}var At = Wt("milliseconds"),Et = Wt("seconds"),Ft = Wt("minutes"),zt = Wt("hours"),Jt = Wt("days"),Nt = Wt("months"),Rt = Wt("years");var Ct = Math.round,It = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 };var Ut = Math.abs;function Gt(e) {return (0 < e) - (e < 0) || +e;}function Vt() {if (!this.isValid()) return this.localeData().invalidDate();var e,a,t = Ut(this._milliseconds) / 1e3,s = Ut(this._days),n = Ut(this._months);a = T((e = T(t / 60)) / 60), t %= 60, e %= 60;var d = T(n / 12),r = n %= 12,_ = s,i = a,o = e,m = t ? t.toFixed(3).replace(/\.?0+$/, "") : "",u = this.asSeconds();if (!u) return "P0D";var l = u < 0 ? "-" : "",M = Gt(this._months) !== Gt(u) ? "-" : "",h = Gt(this._days) !== Gt(u) ? "-" : "",L = Gt(this._milliseconds) !== Gt(u) ? "-" : "";return l + "P" + (d ? M + d + "Y" : "") + (r ? M + r + "M" : "") + (_ ? h + _ + "D" : "") + (i || o || m ? "T" : "") + (i ? L + i + "H" : "") + (o ? L + o + "M" : "") + (m ? L + m + "S" : "");}var Kt = Pa.prototype;Kt.isValid = function () {return this._isValid;}, Kt.abs = function () {var e = this._data;return this._milliseconds = ft(this._milliseconds), this._days = ft(this._days), this._months = ft(this._months), e.milliseconds = ft(e.milliseconds), e.seconds = ft(e.seconds), e.minutes = ft(e.minutes), e.hours = ft(e.hours), e.months = ft(e.months), e.years = ft(e.years), this;}, Kt.add = function (e, a) {return kt(this, e, a, 1);}, Kt.subtract = function (e, a) {return kt(this, e, a, -1);}, Kt.as = function (e) {if (!this.isValid()) return NaN;var a,t,s = this._milliseconds;if ("month" === (e = P(e)) || "quarter" === e || "year" === e) switch (a = this._days + s / 864e5, t = this._months + Dt(a), e) {case "month":return t;case "quarter":return t / 3;case "year":return t / 12;} else switch (a = this._days + Math.round(Tt(this._months)), e) {case "week":return a / 7 + s / 6048e5;case "day":return a + s / 864e5;case "hour":return 24 * a + s / 36e5;case "minute":return 1440 * a + s / 6e4;case "second":return 86400 * a + s / 1e3;case "millisecond":return Math.floor(864e5 * a) + s;default:throw new Error("Unknown unit " + e);}}, Kt.asMilliseconds = wt, Kt.asSeconds = vt, Kt.asMinutes = St, Kt.asHours = Ht, Kt.asDays = bt, Kt.asWeeks = jt, Kt.asMonths = xt, Kt.asQuarters = Ot, Kt.asYears = Pt, Kt.valueOf = function () {return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * g(this._months / 12) : NaN;}, Kt._bubble = function () {var e,a,t,s,n,d = this._milliseconds,r = this._days,_ = this._months,i = this._data;return 0 <= d && 0 <= r && 0 <= _ || d <= 0 && r <= 0 && _ <= 0 || (d += 864e5 * pt(Tt(_) + r), _ = r = 0), i.milliseconds = d % 1e3, e = T(d / 1e3), i.seconds = e % 60, a = T(e / 60), i.minutes = a % 60, t = T(a / 60), i.hours = t % 24, _ += n = T(Dt(r += T(t / 24))), r -= pt(Tt(n)), s = T(_ / 12), _ %= 12, i.days = r, i.months = _, i.years = s, this;}, Kt.clone = function () {return Ua(this);}, Kt.get = function (e) {return e = P(e), this.isValid() ? this[e + "s"]() : NaN;}, Kt.milliseconds = At, Kt.seconds = Et, Kt.minutes = Ft, Kt.hours = zt, Kt.days = Jt, Kt.weeks = function () {return T(this.days() / 7);}, Kt.months = Nt, Kt.years = Rt, Kt.humanize = function (e) {if (!this.isValid()) return this.localeData().invalidDate();var a,t,s,n,d,r,_,i,o,m,u,l = this.localeData(),M = (t = !e, s = l, n = Ua(a = this).abs(), d = Ct(n.as("s")), r = Ct(n.as("m")), _ = Ct(n.as("h")), i = Ct(n.as("d")), o = Ct(n.as("M")), m = Ct(n.as("y")), (u = d <= It.ss && ["s", d] || d < It.s && ["ss", d] || r <= 1 && ["m"] || r < It.m && ["mm", r] || _ <= 1 && ["h"] || _ < It.h && ["hh", _] || i <= 1 && ["d"] || i < It.d && ["dd", i] || o <= 1 && ["M"] || o < It.M && ["MM", o] || m <= 1 && ["y"] || ["yy", m])[2] = t, u[3] = 0 < +a, u[4] = s, function (e, a, t, s, n) {return n.relativeTime(a || 1, !!t, e, s);}.apply(null, u));return e && (M = l.pastFuture(+this, M)), l.postformat(M);}, Kt.toISOString = Vt, Kt.toString = Vt, Kt.toJSON = Vt, Kt.locale = Qa, Kt.localeData = et, Kt.toIsoString = t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", Vt), Kt.lang = Xa, C("X", 0, 0, "unix"), C("x", 0, 0, "valueOf"), ie("x", se), ie("X", /[+-]?\d+(\.\d{1,3})?/), le("X", function (e, a, t) {t._d = new Date(1e3 * parseFloat(e, 10));}), le("x", function (e, a, t) {t._d = new Date(g(e));}), l.version = "2.24.0", e = Ha, l.fn = Mt, l.min = function () {return xa("isBefore", [].slice.call(arguments, 0));}, l.max = function () {return xa("isAfter", [].slice.call(arguments, 0));}, l.now = function () {return Date.now ? Date.now() : +new Date();}, l.utc = c, l.unix = function (e) {return Ha(1e3 * e);}, l.months = function (e, a) {return Yt(e, a, "months");}, l.isDate = u, l.locale = ia, l.invalid = f, l.duration = Ua, l.isMoment = D, l.weekdays = function (e, a, t) {return yt(e, a, t, "weekdays");}, l.parseZone = function () {return Ha.apply(null, arguments).parseZone();}, l.localeData = ma, l.isDuration = Wa, l.monthsShort = function (e, a) {return Yt(e, a, "monthsShort");}, l.weekdaysMin = function (e, a, t) {return yt(e, a, t, "weekdaysMin");}, l.defineLocale = oa, l.updateLocale = function (e, a) {if (null != a) {var t,s,n = sa;null != (s = _a(e)) && (n = s._config), (t = new j(a = b(n, a))).parentLocale = na[e], na[e] = t, ia(e);} else null != na[e] && (null != na[e].parentLocale ? na[e] = na[e].parentLocale : null != na[e] && delete na[e]);return na[e];}, l.locales = function () {return s(na);}, l.weekdaysShort = function (e, a, t) {return yt(e, a, t, "weekdaysShort");}, l.normalizeUnits = P, l.relativeTimeRounding = function (e) {return void 0 === e ? Ct : "function" == typeof e && (Ct = e, !0);}, l.relativeTimeThreshold = function (e, a) {return void 0 !== It[e] && (void 0 === a ? It[e] : (It[e] = a, "s" === e && (It.ss = a - 1), !0));}, l.calendarFormat = function (e, a) {var t = e.diff(a, "days", !0);return t < -6 ? "sameElse" : t < -1 ? "lastWeek" : t < 0 ? "lastDay" : t < 1 ? "sameDay" : t < 2 ? "nextDay" : t < 7 ? "nextWeek" : "sameElse";}, l.prototype = Mt, l.HTML5_FMT = { DATETIME_LOCAL: "YYYY-MM-DDTHH:mm", DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss", DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS", DATE: "YYYY-MM-DD", TIME: "HH:mm", TIME_SECONDS: "HH:mm:ss", TIME_MS: "HH:mm:ss.SSS", WEEK: "GGGG-[W]WW", MONTH: "YYYY-MM" }, l.defineLocale("af", { months: "Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"), monthsShort: "Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"), weekdays: "Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"), weekdaysShort: "Son_Maa_Din_Woe_Don_Vry_Sat".split("_"), weekdaysMin: "So_Ma_Di_Wo_Do_Vr_Sa".split("_"), meridiemParse: /vm|nm/i, isPM: function isPM(e) {return /^nm$/i.test(e);}, meridiem: function meridiem(e, a, t) {return e < 12 ? t ? "vm" : "VM" : t ? "nm" : "NM";}, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Vandag om] LT", nextDay: "[M\xf4re om] LT", nextWeek: "dddd [om] LT", lastDay: "[Gister om] LT", lastWeek: "[Laas] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "oor %s", past: "%s gelede", s: "'n paar sekondes", ss: "%d sekondes", m: "'n minuut", mm: "%d minute", h: "'n uur", hh: "%d ure", d: "'n dag", dd: "%d dae", M: "'n maand", MM: "%d maande", y: "'n jaar", yy: "%d jaar" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function ordinal(e) {return e + (1 === e || 8 === e || 20 <= e ? "ste" : "de");}, week: { dow: 1, doy: 4 } }), l.defineLocale("ar-dz", { months: "\u062C\u0627\u0646\u0641\u064A_\u0641\u064A\u0641\u0631\u064A_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064A\u0644_\u0645\u0627\u064A_\u062C\u0648\u0627\u0646_\u062C\u0648\u064A\u0644\u064A\u0629_\u0623\u0648\u062A_\u0633\u0628\u062A\u0645\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062F\u064A\u0633\u0645\u0628\u0631".split("_"), monthsShort: "\u062C\u0627\u0646\u0641\u064A_\u0641\u064A\u0641\u0631\u064A_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064A\u0644_\u0645\u0627\u064A_\u062C\u0648\u0627\u0646_\u062C\u0648\u064A\u0644\u064A\u0629_\u0623\u0648\u062A_\u0633\u0628\u062A\u0645\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062F\u064A\u0633\u0645\u0628\u0631".split("_"), weekdays: "\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062B\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"), weekdaysShort: "\u0627\u062D\u062F_\u0627\u062B\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"), weekdaysMin: "\u0623\u062D_\u0625\u062B_\u062B\u0644\u0627_\u0623\u0631_\u062E\u0645_\u062C\u0645_\u0633\u0628".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u0627\u0644\u064A\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextDay: "[\u063A\u062F\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastDay: "[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", sameElse: "L" }, relativeTime: { future: "\u0641\u064A %s", past: "\u0645\u0646\u0630 %s", s: "\u062B\u0648\u0627\u0646", ss: "%d \u062B\u0627\u0646\u064A\u0629", m: "\u062F\u0642\u064A\u0642\u0629", mm: "%d \u062F\u0642\u0627\u0626\u0642", h: "\u0633\u0627\u0639\u0629", hh: "%d \u0633\u0627\u0639\u0627\u062A", d: "\u064A\u0648\u0645", dd: "%d \u0623\u064A\u0627\u0645", M: "\u0634\u0647\u0631", MM: "%d \u0623\u0634\u0647\u0631", y: "\u0633\u0646\u0629", yy: "%d \u0633\u0646\u0648\u0627\u062A" }, week: { dow: 0, doy: 4 } }), l.defineLocale("ar-kw", { months: "\u064A\u0646\u0627\u064A\u0631_\u0641\u0628\u0631\u0627\u064A\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064A\u0644_\u0645\u0627\u064A_\u064A\u0648\u0646\u064A\u0648_\u064A\u0648\u0644\u064A\u0648\u0632_\u063A\u0634\u062A_\u0634\u062A\u0646\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062F\u062C\u0646\u0628\u0631".split("_"), monthsShort: "\u064A\u0646\u0627\u064A\u0631_\u0641\u0628\u0631\u0627\u064A\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064A\u0644_\u0645\u0627\u064A_\u064A\u0648\u0646\u064A\u0648_\u064A\u0648\u0644\u064A\u0648\u0632_\u063A\u0634\u062A_\u0634\u062A\u0646\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062F\u062C\u0646\u0628\u0631".split("_"), weekdays: "\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062A\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"), weekdaysShort: "\u0627\u062D\u062F_\u0627\u062A\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"), weekdaysMin: "\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u0627\u0644\u064A\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextDay: "[\u063A\u062F\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastDay: "[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", sameElse: "L" }, relativeTime: { future: "\u0641\u064A %s", past: "\u0645\u0646\u0630 %s", s: "\u062B\u0648\u0627\u0646", ss: "%d \u062B\u0627\u0646\u064A\u0629", m: "\u062F\u0642\u064A\u0642\u0629", mm: "%d \u062F\u0642\u0627\u0626\u0642", h: "\u0633\u0627\u0639\u0629", hh: "%d \u0633\u0627\u0639\u0627\u062A", d: "\u064A\u0648\u0645", dd: "%d \u0623\u064A\u0627\u0645", M: "\u0634\u0647\u0631", MM: "%d \u0623\u0634\u0647\u0631", y: "\u0633\u0646\u0629", yy: "%d \u0633\u0646\u0648\u0627\u062A" }, week: { dow: 0, doy: 12 } });var Zt = { 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", 0: "0" },$t = function $t(e) {return 0 === e ? 0 : 1 === e ? 1 : 2 === e ? 2 : 3 <= e % 100 && e % 100 <= 10 ? 3 : 11 <= e % 100 ? 4 : 5;},Bt = { s: ["\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629", "\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629", ["\u062B\u0627\u0646\u064A\u062A\u0627\u0646", "\u062B\u0627\u0646\u064A\u062A\u064A\u0646"], "%d \u062B\u0648\u0627\u0646", "%d \u062B\u0627\u0646\u064A\u0629", "%d \u062B\u0627\u0646\u064A\u0629"], m: ["\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629", "\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629", ["\u062F\u0642\u064A\u0642\u062A\u0627\u0646", "\u062F\u0642\u064A\u0642\u062A\u064A\u0646"], "%d \u062F\u0642\u0627\u0626\u0642", "%d \u062F\u0642\u064A\u0642\u0629", "%d \u062F\u0642\u064A\u0642\u0629"], h: ["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629", "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629", ["\u0633\u0627\u0639\u062A\u0627\u0646", "\u0633\u0627\u0639\u062A\u064A\u0646"], "%d \u0633\u0627\u0639\u0627\u062A", "%d \u0633\u0627\u0639\u0629", "%d \u0633\u0627\u0639\u0629"], d: ["\u0623\u0642\u0644 \u0645\u0646 \u064A\u0648\u0645", "\u064A\u0648\u0645 \u0648\u0627\u062D\u062F", ["\u064A\u0648\u0645\u0627\u0646", "\u064A\u0648\u0645\u064A\u0646"], "%d \u0623\u064A\u0627\u0645", "%d \u064A\u0648\u0645\u064B\u0627", "%d \u064A\u0648\u0645"], M: ["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631", "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F", ["\u0634\u0647\u0631\u0627\u0646", "\u0634\u0647\u0631\u064A\u0646"], "%d \u0623\u0634\u0647\u0631", "%d \u0634\u0647\u0631\u0627", "%d \u0634\u0647\u0631"], y: ["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645", "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F", ["\u0639\u0627\u0645\u0627\u0646", "\u0639\u0627\u0645\u064A\u0646"], "%d \u0623\u0639\u0648\u0627\u0645", "%d \u0639\u0627\u0645\u064B\u0627", "%d \u0639\u0627\u0645"] },qt = function qt(r) {return function (e, a, t, s) {var n = $t(e),d = Bt[r][$t(e)];return 2 === n && (d = d[a ? 0 : 1]), d.replace(/%d/i, e);};},Qt = ["\u064A\u0646\u0627\u064A\u0631", "\u0641\u0628\u0631\u0627\u064A\u0631", "\u0645\u0627\u0631\u0633", "\u0623\u0628\u0631\u064A\u0644", "\u0645\u0627\u064A\u0648", "\u064A\u0648\u0646\u064A\u0648", "\u064A\u0648\u0644\u064A\u0648", "\u0623\u063A\u0633\u0637\u0633", "\u0633\u0628\u062A\u0645\u0628\u0631", "\u0623\u0643\u062A\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062F\u064A\u0633\u0645\u0628\u0631"];l.defineLocale("ar-ly", { months: Qt, monthsShort: Qt, weekdays: "\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062B\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"), weekdaysShort: "\u0623\u062D\u062F_\u0625\u062B\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"), weekdaysMin: "\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "D/\u200FM/\u200FYYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, meridiemParse: /\u0635|\u0645/, isPM: function isPM(e) {return "\u0645" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0635" : "\u0645";}, calendar: { sameDay: "[\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextDay: "[\u063A\u062F\u064B\u0627 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextWeek: "dddd [\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastDay: "[\u0623\u0645\u0633 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastWeek: "dddd [\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", sameElse: "L" }, relativeTime: { future: "\u0628\u0639\u062F %s", past: "\u0645\u0646\u0630 %s", s: qt("s"), ss: qt("s"), m: qt("m"), mm: qt("m"), h: qt("h"), hh: qt("h"), d: qt("d"), dd: qt("d"), M: qt("M"), MM: qt("M"), y: qt("y"), yy: qt("y") }, preparse: function preparse(e) {return e.replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return Zt[e];}).replace(/,/g, "\u060C");}, week: { dow: 6, doy: 12 } }), l.defineLocale("ar-ma", { months: "\u064A\u0646\u0627\u064A\u0631_\u0641\u0628\u0631\u0627\u064A\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064A\u0644_\u0645\u0627\u064A_\u064A\u0648\u0646\u064A\u0648_\u064A\u0648\u0644\u064A\u0648\u0632_\u063A\u0634\u062A_\u0634\u062A\u0646\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062F\u062C\u0646\u0628\u0631".split("_"), monthsShort: "\u064A\u0646\u0627\u064A\u0631_\u0641\u0628\u0631\u0627\u064A\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064A\u0644_\u0645\u0627\u064A_\u064A\u0648\u0646\u064A\u0648_\u064A\u0648\u0644\u064A\u0648\u0632_\u063A\u0634\u062A_\u0634\u062A\u0646\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062F\u062C\u0646\u0628\u0631".split("_"), weekdays: "\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062A\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"), weekdaysShort: "\u0627\u062D\u062F_\u0627\u062A\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"), weekdaysMin: "\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u0627\u0644\u064A\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextDay: "[\u063A\u062F\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastDay: "[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", sameElse: "L" }, relativeTime: { future: "\u0641\u064A %s", past: "\u0645\u0646\u0630 %s", s: "\u062B\u0648\u0627\u0646", ss: "%d \u062B\u0627\u0646\u064A\u0629", m: "\u062F\u0642\u064A\u0642\u0629", mm: "%d \u062F\u0642\u0627\u0626\u0642", h: "\u0633\u0627\u0639\u0629", hh: "%d \u0633\u0627\u0639\u0627\u062A", d: "\u064A\u0648\u0645", dd: "%d \u0623\u064A\u0627\u0645", M: "\u0634\u0647\u0631", MM: "%d \u0623\u0634\u0647\u0631", y: "\u0633\u0646\u0629", yy: "%d \u0633\u0646\u0648\u0627\u062A" }, week: { dow: 6, doy: 12 } });var Xt = { 1: "\u0661", 2: "\u0662", 3: "\u0663", 4: "\u0664", 5: "\u0665", 6: "\u0666", 7: "\u0667", 8: "\u0668", 9: "\u0669", 0: "\u0660" },es = { "\u0661": "1", "\u0662": "2", "\u0663": "3", "\u0664": "4", "\u0665": "5", "\u0666": "6", "\u0667": "7", "\u0668": "8", "\u0669": "9", "\u0660": "0" };l.defineLocale("ar-sa", { months: "\u064A\u0646\u0627\u064A\u0631_\u0641\u0628\u0631\u0627\u064A\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064A\u0644_\u0645\u0627\u064A\u0648_\u064A\u0648\u0646\u064A\u0648_\u064A\u0648\u0644\u064A\u0648_\u0623\u063A\u0633\u0637\u0633_\u0633\u0628\u062A\u0645\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062F\u064A\u0633\u0645\u0628\u0631".split("_"), monthsShort: "\u064A\u0646\u0627\u064A\u0631_\u0641\u0628\u0631\u0627\u064A\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064A\u0644_\u0645\u0627\u064A\u0648_\u064A\u0648\u0646\u064A\u0648_\u064A\u0648\u0644\u064A\u0648_\u0623\u063A\u0633\u0637\u0633_\u0633\u0628\u062A\u0645\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062F\u064A\u0633\u0645\u0628\u0631".split("_"), weekdays: "\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062B\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"), weekdaysShort: "\u0623\u062D\u062F_\u0625\u062B\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"), weekdaysMin: "\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, meridiemParse: /\u0635|\u0645/, isPM: function isPM(e) {return "\u0645" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0635" : "\u0645";}, calendar: { sameDay: "[\u0627\u0644\u064A\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextDay: "[\u063A\u062F\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastDay: "[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", sameElse: "L" }, relativeTime: { future: "\u0641\u064A %s", past: "\u0645\u0646\u0630 %s", s: "\u062B\u0648\u0627\u0646", ss: "%d \u062B\u0627\u0646\u064A\u0629", m: "\u062F\u0642\u064A\u0642\u0629", mm: "%d \u062F\u0642\u0627\u0626\u0642", h: "\u0633\u0627\u0639\u0629", hh: "%d \u0633\u0627\u0639\u0627\u062A", d: "\u064A\u0648\u0645", dd: "%d \u0623\u064A\u0627\u0645", M: "\u0634\u0647\u0631", MM: "%d \u0623\u0634\u0647\u0631", y: "\u0633\u0646\u0629", yy: "%d \u0633\u0646\u0648\u0627\u062A" }, preparse: function preparse(e) {return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g, function (e) {return es[e];}).replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return Xt[e];}).replace(/,/g, "\u060C");}, week: { dow: 0, doy: 6 } }), l.defineLocale("ar-tn", { months: "\u062C\u0627\u0646\u0641\u064A_\u0641\u064A\u0641\u0631\u064A_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064A\u0644_\u0645\u0627\u064A_\u062C\u0648\u0627\u0646_\u062C\u0648\u064A\u0644\u064A\u0629_\u0623\u0648\u062A_\u0633\u0628\u062A\u0645\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062F\u064A\u0633\u0645\u0628\u0631".split("_"), monthsShort: "\u062C\u0627\u0646\u0641\u064A_\u0641\u064A\u0641\u0631\u064A_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064A\u0644_\u0645\u0627\u064A_\u062C\u0648\u0627\u0646_\u062C\u0648\u064A\u0644\u064A\u0629_\u0623\u0648\u062A_\u0633\u0628\u062A\u0645\u0628\u0631_\u0623\u0643\u062A\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062F\u064A\u0633\u0645\u0628\u0631".split("_"), weekdays: "\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062B\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"), weekdaysShort: "\u0623\u062D\u062F_\u0625\u062B\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"), weekdaysMin: "\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u0627\u0644\u064A\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextDay: "[\u063A\u062F\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastDay: "[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastWeek: "dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT", sameElse: "L" }, relativeTime: { future: "\u0641\u064A %s", past: "\u0645\u0646\u0630 %s", s: "\u062B\u0648\u0627\u0646", ss: "%d \u062B\u0627\u0646\u064A\u0629", m: "\u062F\u0642\u064A\u0642\u0629", mm: "%d \u062F\u0642\u0627\u0626\u0642", h: "\u0633\u0627\u0639\u0629", hh: "%d \u0633\u0627\u0639\u0627\u062A", d: "\u064A\u0648\u0645", dd: "%d \u0623\u064A\u0627\u0645", M: "\u0634\u0647\u0631", MM: "%d \u0623\u0634\u0647\u0631", y: "\u0633\u0646\u0629", yy: "%d \u0633\u0646\u0648\u0627\u062A" }, week: { dow: 1, doy: 4 } });var as = { 1: "\u0661", 2: "\u0662", 3: "\u0663", 4: "\u0664", 5: "\u0665", 6: "\u0666", 7: "\u0667", 8: "\u0668", 9: "\u0669", 0: "\u0660" },ts = { "\u0661": "1", "\u0662": "2", "\u0663": "3", "\u0664": "4", "\u0665": "5", "\u0666": "6", "\u0667": "7", "\u0668": "8", "\u0669": "9", "\u0660": "0" },ss = function ss(e) {return 0 === e ? 0 : 1 === e ? 1 : 2 === e ? 2 : 3 <= e % 100 && e % 100 <= 10 ? 3 : 11 <= e % 100 ? 4 : 5;},ns = { s: ["\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629", "\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629", ["\u062B\u0627\u0646\u064A\u062A\u0627\u0646", "\u062B\u0627\u0646\u064A\u062A\u064A\u0646"], "%d \u062B\u0648\u0627\u0646", "%d \u062B\u0627\u0646\u064A\u0629", "%d \u062B\u0627\u0646\u064A\u0629"], m: ["\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629", "\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629", ["\u062F\u0642\u064A\u0642\u062A\u0627\u0646", "\u062F\u0642\u064A\u0642\u062A\u064A\u0646"], "%d \u062F\u0642\u0627\u0626\u0642", "%d \u062F\u0642\u064A\u0642\u0629", "%d \u062F\u0642\u064A\u0642\u0629"], h: ["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629", "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629", ["\u0633\u0627\u0639\u062A\u0627\u0646", "\u0633\u0627\u0639\u062A\u064A\u0646"], "%d \u0633\u0627\u0639\u0627\u062A", "%d \u0633\u0627\u0639\u0629", "%d \u0633\u0627\u0639\u0629"], d: ["\u0623\u0642\u0644 \u0645\u0646 \u064A\u0648\u0645", "\u064A\u0648\u0645 \u0648\u0627\u062D\u062F", ["\u064A\u0648\u0645\u0627\u0646", "\u064A\u0648\u0645\u064A\u0646"], "%d \u0623\u064A\u0627\u0645", "%d \u064A\u0648\u0645\u064B\u0627", "%d \u064A\u0648\u0645"], M: ["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631", "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F", ["\u0634\u0647\u0631\u0627\u0646", "\u0634\u0647\u0631\u064A\u0646"], "%d \u0623\u0634\u0647\u0631", "%d \u0634\u0647\u0631\u0627", "%d \u0634\u0647\u0631"], y: ["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645", "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F", ["\u0639\u0627\u0645\u0627\u0646", "\u0639\u0627\u0645\u064A\u0646"], "%d \u0623\u0639\u0648\u0627\u0645", "%d \u0639\u0627\u0645\u064B\u0627", "%d \u0639\u0627\u0645"] },ds = function ds(r) {return function (e, a, t, s) {var n = ss(e),d = ns[r][ss(e)];return 2 === n && (d = d[a ? 0 : 1]), d.replace(/%d/i, e);};},rs = ["\u064A\u0646\u0627\u064A\u0631", "\u0641\u0628\u0631\u0627\u064A\u0631", "\u0645\u0627\u0631\u0633", "\u0623\u0628\u0631\u064A\u0644", "\u0645\u0627\u064A\u0648", "\u064A\u0648\u0646\u064A\u0648", "\u064A\u0648\u0644\u064A\u0648", "\u0623\u063A\u0633\u0637\u0633", "\u0633\u0628\u062A\u0645\u0628\u0631", "\u0623\u0643\u062A\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062F\u064A\u0633\u0645\u0628\u0631"];l.defineLocale("ar", { months: rs, monthsShort: rs, weekdays: "\u0627\u0644\u0623\u062D\u062F_\u0627\u0644\u0625\u062B\u0646\u064A\u0646_\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062E\u0645\u064A\u0633_\u0627\u0644\u062C\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062A".split("_"), weekdaysShort: "\u0623\u062D\u062F_\u0625\u062B\u0646\u064A\u0646_\u062B\u0644\u0627\u062B\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062E\u0645\u064A\u0633_\u062C\u0645\u0639\u0629_\u0633\u0628\u062A".split("_"), weekdaysMin: "\u062D_\u0646_\u062B_\u0631_\u062E_\u062C_\u0633".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "D/\u200FM/\u200FYYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, meridiemParse: /\u0635|\u0645/, isPM: function isPM(e) {return "\u0645" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0635" : "\u0645";}, calendar: { sameDay: "[\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextDay: "[\u063A\u062F\u064B\u0627 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", nextWeek: "dddd [\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastDay: "[\u0623\u0645\u0633 \u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", lastWeek: "dddd [\u0639\u0646\u062F \u0627\u0644\u0633\u0627\u0639\u0629] LT", sameElse: "L" }, relativeTime: { future: "\u0628\u0639\u062F %s", past: "\u0645\u0646\u0630 %s", s: ds("s"), ss: ds("s"), m: ds("m"), mm: ds("m"), h: ds("h"), hh: ds("h"), d: ds("d"), dd: ds("d"), M: ds("M"), MM: ds("M"), y: ds("y"), yy: ds("y") }, preparse: function preparse(e) {return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g, function (e) {return ts[e];}).replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return as[e];}).replace(/,/g, "\u060C");}, week: { dow: 6, doy: 12 } });var _s = { 1: "-inci", 5: "-inci", 8: "-inci", 70: "-inci", 80: "-inci", 2: "-nci", 7: "-nci", 20: "-nci", 50: "-nci", 3: "-\xfcnc\xfc", 4: "-\xfcnc\xfc", 100: "-\xfcnc\xfc", 6: "-nc\u0131", 9: "-uncu", 10: "-uncu", 30: "-uncu", 60: "-\u0131nc\u0131", 90: "-\u0131nc\u0131" };function is(e, a, t) {var s, n;return "m" === t ? a ? "\u0445\u0432\u0456\u043B\u0456\u043D\u0430" : "\u0445\u0432\u0456\u043B\u0456\u043D\u0443" : "h" === t ? a ? "\u0433\u0430\u0434\u0437\u0456\u043D\u0430" : "\u0433\u0430\u0434\u0437\u0456\u043D\u0443" : e + " " + (s = +e, n = { ss: a ? "\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434" : "\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434", mm: a ? "\u0445\u0432\u0456\u043B\u0456\u043D\u0430_\u0445\u0432\u0456\u043B\u0456\u043D\u044B_\u0445\u0432\u0456\u043B\u0456\u043D" : "\u0445\u0432\u0456\u043B\u0456\u043D\u0443_\u0445\u0432\u0456\u043B\u0456\u043D\u044B_\u0445\u0432\u0456\u043B\u0456\u043D", hh: a ? "\u0433\u0430\u0434\u0437\u0456\u043D\u0430_\u0433\u0430\u0434\u0437\u0456\u043D\u044B_\u0433\u0430\u0434\u0437\u0456\u043D" : "\u0433\u0430\u0434\u0437\u0456\u043D\u0443_\u0433\u0430\u0434\u0437\u0456\u043D\u044B_\u0433\u0430\u0434\u0437\u0456\u043D", dd: "\u0434\u0437\u0435\u043D\u044C_\u0434\u043D\u0456_\u0434\u0437\u0451\u043D", MM: "\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u044B_\u043C\u0435\u0441\u044F\u0446\u0430\u045E", yy: "\u0433\u043E\u0434_\u0433\u0430\u0434\u044B_\u0433\u0430\u0434\u043E\u045E" }[t].split("_"), s % 10 == 1 && s % 100 != 11 ? n[0] : 2 <= s % 10 && s % 10 <= 4 && (s % 100 < 10 || 20 <= s % 100) ? n[1] : n[2]);}l.defineLocale("az", { months: "yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"), monthsShort: "yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"), weekdays: "Bazar_Bazar ert\u0259si_\xC7\u0259r\u015F\u0259nb\u0259 ax\u015Fam\u0131_\xC7\u0259r\u015F\u0259nb\u0259_C\xFCm\u0259 ax\u015Fam\u0131_C\xFCm\u0259_\u015E\u0259nb\u0259".split("_"), weekdaysShort: "Baz_BzE_\xC7Ax_\xC7\u0259r_CAx_C\xFCm_\u015E\u0259n".split("_"), weekdaysMin: "Bz_BE_\xC7A_\xC7\u0259_CA_C\xFC_\u015E\u0259".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[bug\xfcn saat] LT", nextDay: "[sabah saat] LT", nextWeek: "[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT", lastDay: "[d\xFCn\u0259n] LT", lastWeek: "[ke\xE7\u0259n h\u0259ft\u0259] dddd [saat] LT", sameElse: "L" }, relativeTime: { future: "%s sonra", past: "%s \u0259vv\u0259l", s: "birne\xE7\u0259 saniy\u0259", ss: "%d saniy\u0259", m: "bir d\u0259qiq\u0259", mm: "%d d\u0259qiq\u0259", h: "bir saat", hh: "%d saat", d: "bir g\xfcn", dd: "%d g\xfcn", M: "bir ay", MM: "%d ay", y: "bir il", yy: "%d il" }, meridiemParse: /gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/, isPM: function isPM(e) {return /^(g\xfcnd\xfcz|ax\u015fam)$/.test(e);}, meridiem: function meridiem(e, a, t) {return e < 4 ? "gec\u0259" : e < 12 ? "s\u0259h\u0259r" : e < 17 ? "g\xfcnd\xfcz" : "ax\u015Fam";}, dayOfMonthOrdinalParse: /\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/, ordinal: function ordinal(e) {if (0 === e) return e + "-\u0131nc\u0131";var a = e % 10;return e + (_s[a] || _s[e % 100 - a] || _s[100 <= e ? 100 : null]);}, week: { dow: 1, doy: 7 } }), l.defineLocale("be", { months: { format: "\u0441\u0442\u0443\u0434\u0437\u0435\u043D\u044F_\u043B\u044E\u0442\u0430\u0433\u0430_\u0441\u0430\u043A\u0430\u0432\u0456\u043A\u0430_\u043A\u0440\u0430\u0441\u0430\u0432\u0456\u043A\u0430_\u0442\u0440\u0430\u045E\u043D\u044F_\u0447\u044D\u0440\u0432\u0435\u043D\u044F_\u043B\u0456\u043F\u0435\u043D\u044F_\u0436\u043D\u0456\u045E\u043D\u044F_\u0432\u0435\u0440\u0430\u0441\u043D\u044F_\u043A\u0430\u0441\u0442\u0440\u044B\u0447\u043D\u0456\u043A\u0430_\u043B\u0456\u0441\u0442\u0430\u043F\u0430\u0434\u0430_\u0441\u043D\u0435\u0436\u043D\u044F".split("_"), standalone: "\u0441\u0442\u0443\u0434\u0437\u0435\u043D\u044C_\u043B\u044E\u0442\u044B_\u0441\u0430\u043A\u0430\u0432\u0456\u043A_\u043A\u0440\u0430\u0441\u0430\u0432\u0456\u043A_\u0442\u0440\u0430\u0432\u0435\u043D\u044C_\u0447\u044D\u0440\u0432\u0435\u043D\u044C_\u043B\u0456\u043F\u0435\u043D\u044C_\u0436\u043D\u0456\u0432\u0435\u043D\u044C_\u0432\u0435\u0440\u0430\u0441\u0435\u043D\u044C_\u043A\u0430\u0441\u0442\u0440\u044B\u0447\u043D\u0456\u043A_\u043B\u0456\u0441\u0442\u0430\u043F\u0430\u0434_\u0441\u043D\u0435\u0436\u0430\u043D\u044C".split("_") }, monthsShort: "\u0441\u0442\u0443\u0434_\u043B\u044E\u0442_\u0441\u0430\u043A_\u043A\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044D\u0440\u0432_\u043B\u0456\u043F_\u0436\u043D\u0456\u0432_\u0432\u0435\u0440_\u043A\u0430\u0441\u0442_\u043B\u0456\u0441\u0442_\u0441\u043D\u0435\u0436".split("_"), weekdays: { format: "\u043D\u044F\u0434\u0437\u0435\u043B\u044E_\u043F\u0430\u043D\u044F\u0434\u0437\u0435\u043B\u0430\u043A_\u0430\u045E\u0442\u043E\u0440\u0430\u043A_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043F\u044F\u0442\u043D\u0456\u0446\u0443_\u0441\u0443\u0431\u043E\u0442\u0443".split("_"), standalone: "\u043D\u044F\u0434\u0437\u0435\u043B\u044F_\u043F\u0430\u043D\u044F\u0434\u0437\u0435\u043B\u0430\u043A_\u0430\u045E\u0442\u043E\u0440\u0430\u043A_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043F\u044F\u0442\u043D\u0456\u0446\u0430_\u0441\u0443\u0431\u043E\u0442\u0430".split("_"), isFormat: /\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/ }, weekdaysShort: "\u043D\u0434_\u043F\u043D_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043F\u0442_\u0441\u0431".split("_"), weekdaysMin: "\u043D\u0434_\u043F\u043D_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043F\u0442_\u0441\u0431".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY \u0433.", LLL: "D MMMM YYYY \u0433., HH:mm", LLLL: "dddd, D MMMM YYYY \u0433., HH:mm" }, calendar: { sameDay: "[\u0421\u0451\u043D\u043D\u044F \u045E] LT", nextDay: "[\u0417\u0430\u045E\u0442\u0440\u0430 \u045E] LT", lastDay: "[\u0423\u0447\u043E\u0440\u0430 \u045E] LT", nextWeek: function nextWeek() {return "[\u0423] dddd [\u045E] LT";}, lastWeek: function lastWeek() {switch (this.day()) {case 0:case 3:case 5:case 6:return "[\u0423 \u043C\u0456\u043D\u0443\u043B\u0443\u044E] dddd [\u045E] LT";case 1:case 2:case 4:return "[\u0423 \u043C\u0456\u043D\u0443\u043B\u044B] dddd [\u045E] LT";}}, sameElse: "L" }, relativeTime: { future: "\u043F\u0440\u0430\u0437 %s", past: "%s \u0442\u0430\u043C\u0443", s: "\u043D\u0435\u043A\u0430\u043B\u044C\u043A\u0456 \u0441\u0435\u043A\u0443\u043D\u0434", m: is, mm: is, h: is, hh: is, d: "\u0434\u0437\u0435\u043D\u044C", dd: is, M: "\u043C\u0435\u0441\u044F\u0446", MM: is, y: "\u0433\u043E\u0434", yy: is }, meridiemParse: /\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/, isPM: function isPM(e) {return /^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e);}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u043D\u043E\u0447\u044B" : e < 12 ? "\u0440\u0430\u043D\u0456\u0446\u044B" : e < 17 ? "\u0434\u043D\u044F" : "\u0432\u0435\u0447\u0430\u0440\u0430";}, dayOfMonthOrdinalParse: /\d{1,2}-(\u0456|\u044b|\u0433\u0430)/, ordinal: function ordinal(e, a) {switch (a) {case "M":case "d":case "DDD":case "w":case "W":return e % 10 != 2 && e % 10 != 3 || e % 100 == 12 || e % 100 == 13 ? e + "-\u044B" : e + "-\u0456";case "D":return e + "-\u0433\u0430";default:return e;}}, week: { dow: 1, doy: 7 } }), l.defineLocale("bg", { months: "\u044F\u043D\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0438\u043B_\u043C\u0430\u0439_\u044E\u043D\u0438_\u044E\u043B\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438_\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438_\u043D\u043E\u0435\u043C\u0432\u0440\u0438_\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438".split("_"), monthsShort: "\u044F\u043D\u0440_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0439_\u044E\u043D\u0438_\u044E\u043B\u0438_\u0430\u0432\u0433_\u0441\u0435\u043F_\u043E\u043A\u0442_\u043D\u043E\u0435_\u0434\u0435\u043A".split("_"), weekdays: "\u043D\u0435\u0434\u0435\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u044F\u0434\u0430_\u0447\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A_\u043F\u0435\u0442\u044A\u043A_\u0441\u044A\u0431\u043E\u0442\u0430".split("_"), weekdaysShort: "\u043D\u0435\u0434_\u043F\u043E\u043D_\u0432\u0442\u043E_\u0441\u0440\u044F_\u0447\u0435\u0442_\u043F\u0435\u0442_\u0441\u044A\u0431".split("_"), weekdaysMin: "\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "D.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY H:mm", LLLL: "dddd, D MMMM YYYY H:mm" }, calendar: { sameDay: "[\u0414\u043D\u0435\u0441 \u0432] LT", nextDay: "[\u0423\u0442\u0440\u0435 \u0432] LT", nextWeek: "dddd [\u0432] LT", lastDay: "[\u0412\u0447\u0435\u0440\u0430 \u0432] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:case 3:case 6:return "[\u0412 \u0438\u0437\u043C\u0438\u043D\u0430\u043B\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return "[\u0412 \u0438\u0437\u043C\u0438\u043D\u0430\u043B\u0438\u044F] dddd [\u0432] LT";}}, sameElse: "L" }, relativeTime: { future: "\u0441\u043B\u0435\u0434 %s", past: "\u043F\u0440\u0435\u0434\u0438 %s", s: "\u043D\u044F\u043A\u043E\u043B\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434\u0438", ss: "%d \u0441\u0435\u043A\u0443\u043D\u0434\u0438", m: "\u043C\u0438\u043D\u0443\u0442\u0430", mm: "%d \u043C\u0438\u043D\u0443\u0442\u0438", h: "\u0447\u0430\u0441", hh: "%d \u0447\u0430\u0441\u0430", d: "\u0434\u0435\u043D", dd: "%d \u0434\u043D\u0438", M: "\u043C\u0435\u0441\u0435\u0446", MM: "%d \u043C\u0435\u0441\u0435\u0446\u0430", y: "\u0433\u043E\u0434\u0438\u043D\u0430", yy: "%d \u0433\u043E\u0434\u0438\u043D\u0438" }, dayOfMonthOrdinalParse: /\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/, ordinal: function ordinal(e) {var a = e % 10,t = e % 100;return 0 === e ? e + "-\u0435\u0432" : 0 === t ? e + "-\u0435\u043D" : 10 < t && t < 20 ? e + "-\u0442\u0438" : 1 === a ? e + "-\u0432\u0438" : 2 === a ? e + "-\u0440\u0438" : 7 === a || 8 === a ? e + "-\u043C\u0438" : e + "-\u0442\u0438";}, week: { dow: 1, doy: 7 } }), l.defineLocale("bm", { months: "Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025Bkalo_Zuw\u025Bnkalo_Zuluyekalo_Utikalo_S\u025Btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"), monthsShort: "Zan_Few_Mar_Awi_M\u025B_Zuw_Zul_Uti_S\u025Bt_\u0254ku_Now_Des".split("_"), weekdays: "Kari_Nt\u025Bn\u025Bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"), weekdaysShort: "Kar_Nt\u025B_Tar_Ara_Ala_Jum_Sib".split("_"), weekdaysMin: "Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "MMMM [tile] D [san] YYYY", LLL: "MMMM [tile] D [san] YYYY [l\u025Br\u025B] HH:mm", LLLL: "dddd MMMM [tile] D [san] YYYY [l\u025Br\u025B] HH:mm" }, calendar: { sameDay: "[Bi l\u025Br\u025B] LT", nextDay: "[Sini l\u025Br\u025B] LT", nextWeek: "dddd [don l\u025Br\u025B] LT", lastDay: "[Kunu l\u025Br\u025B] LT", lastWeek: "dddd [t\u025Bm\u025Bnen l\u025Br\u025B] LT", sameElse: "L" }, relativeTime: { future: "%s k\u0254n\u0254", past: "a b\u025B %s b\u0254", s: "sanga dama dama", ss: "sekondi %d", m: "miniti kelen", mm: "miniti %d", h: "l\u025Br\u025B kelen", hh: "l\u025Br\u025B %d", d: "tile kelen", dd: "tile %d", M: "kalo kelen", MM: "kalo %d", y: "san kelen", yy: "san %d" }, week: { dow: 1, doy: 4 } });var os = { 1: "\u09E7", 2: "\u09E8", 3: "\u09E9", 4: "\u09EA", 5: "\u09EB", 6: "\u09EC", 7: "\u09ED", 8: "\u09EE", 9: "\u09EF", 0: "\u09E6" },ms = { "\u09E7": "1", "\u09E8": "2", "\u09E9": "3", "\u09EA": "4", "\u09EB": "5", "\u09EC": "6", "\u09ED": "7", "\u09EE": "8", "\u09EF": "9", "\u09E6": "0" };l.defineLocale("bn", { months: "\u099C\u09BE\u09A8\u09C1\u09DF\u09BE\u09B0\u09C0_\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09DF\u09BE\u09B0\u09BF_\u09AE\u09BE\u09B0\u09CD\u099A_\u098F\u09AA\u09CD\u09B0\u09BF\u09B2_\u09AE\u09C7_\u099C\u09C1\u09A8_\u099C\u09C1\u09B2\u09BE\u0987_\u0986\u0997\u09B8\u09CD\u099F_\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0_\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0_\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0_\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0".split("_"), monthsShort: "\u099C\u09BE\u09A8\u09C1_\u09AB\u09C7\u09AC_\u09AE\u09BE\u09B0\u09CD\u099A_\u098F\u09AA\u09CD\u09B0_\u09AE\u09C7_\u099C\u09C1\u09A8_\u099C\u09C1\u09B2_\u0986\u0997_\u09B8\u09C7\u09AA\u09CD\u099F_\u0985\u0995\u09CD\u099F\u09CB_\u09A8\u09AD\u09C7_\u09A1\u09BF\u09B8\u09C7".split("_"), weekdays: "\u09B0\u09AC\u09BF\u09AC\u09BE\u09B0_\u09B8\u09CB\u09AE\u09AC\u09BE\u09B0_\u09AE\u0999\u09CD\u0997\u09B2\u09AC\u09BE\u09B0_\u09AC\u09C1\u09A7\u09AC\u09BE\u09B0_\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF\u09AC\u09BE\u09B0_\u09B6\u09C1\u0995\u09CD\u09B0\u09AC\u09BE\u09B0_\u09B6\u09A8\u09BF\u09AC\u09BE\u09B0".split("_"), weekdaysShort: "\u09B0\u09AC\u09BF_\u09B8\u09CB\u09AE_\u09AE\u0999\u09CD\u0997\u09B2_\u09AC\u09C1\u09A7_\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF_\u09B6\u09C1\u0995\u09CD\u09B0_\u09B6\u09A8\u09BF".split("_"), weekdaysMin: "\u09B0\u09AC\u09BF_\u09B8\u09CB\u09AE_\u09AE\u0999\u09CD\u0997_\u09AC\u09C1\u09A7_\u09AC\u09C3\u09B9\u0983_\u09B6\u09C1\u0995\u09CD\u09B0_\u09B6\u09A8\u09BF".split("_"), longDateFormat: { LT: "A h:mm \u09B8\u09AE\u09DF", LTS: "A h:mm:ss \u09B8\u09AE\u09DF", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm \u09B8\u09AE\u09DF", LLLL: "dddd, D MMMM YYYY, A h:mm \u09B8\u09AE\u09DF" }, calendar: { sameDay: "[\u0986\u099C] LT", nextDay: "[\u0986\u0997\u09BE\u09AE\u09C0\u0995\u09BE\u09B2] LT", nextWeek: "dddd, LT", lastDay: "[\u0997\u09A4\u0995\u09BE\u09B2] LT", lastWeek: "[\u0997\u09A4] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u09AA\u09B0\u09C7", past: "%s \u0986\u0997\u09C7", s: "\u0995\u09DF\u09C7\u0995 \u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1", ss: "%d \u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1", m: "\u098F\u0995 \u09AE\u09BF\u09A8\u09BF\u099F", mm: "%d \u09AE\u09BF\u09A8\u09BF\u099F", h: "\u098F\u0995 \u0998\u09A8\u09CD\u099F\u09BE", hh: "%d \u0998\u09A8\u09CD\u099F\u09BE", d: "\u098F\u0995 \u09A6\u09BF\u09A8", dd: "%d \u09A6\u09BF\u09A8", M: "\u098F\u0995 \u09AE\u09BE\u09B8", MM: "%d \u09AE\u09BE\u09B8", y: "\u098F\u0995 \u09AC\u099B\u09B0", yy: "%d \u09AC\u099B\u09B0" }, preparse: function preparse(e) {return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g, function (e) {return ms[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return os[e];});}, meridiemParse: /\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u09B0\u09BE\u09A4" === a && 4 <= e || "\u09A6\u09C1\u09AA\u09C1\u09B0" === a && e < 5 || "\u09AC\u09BF\u0995\u09BE\u09B2" === a ? e + 12 : e;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u09B0\u09BE\u09A4" : e < 10 ? "\u09B8\u0995\u09BE\u09B2" : e < 17 ? "\u09A6\u09C1\u09AA\u09C1\u09B0" : e < 20 ? "\u09AC\u09BF\u0995\u09BE\u09B2" : "\u09B0\u09BE\u09A4";}, week: { dow: 0, doy: 6 } });var us = { 1: "\u0F21", 2: "\u0F22", 3: "\u0F23", 4: "\u0F24", 5: "\u0F25", 6: "\u0F26", 7: "\u0F27", 8: "\u0F28", 9: "\u0F29", 0: "\u0F20" },ls = { "\u0F21": "1", "\u0F22": "2", "\u0F23": "3", "\u0F24": "4", "\u0F25": "5", "\u0F26": "6", "\u0F27": "7", "\u0F28": "8", "\u0F29": "9", "\u0F20": "0" };function Ms(e, a, t) {var s, n, d;return e + " " + (s = { mm: "munutenn", MM: "miz", dd: "devezh" }[t], 2 !== e ? s : void 0 !== (d = { m: "v", b: "v", d: "z" })[(n = s).charAt(0)] ? d[n.charAt(0)] + n.substring(1) : n);}function hs(e, a, t) {var s = e + " ";switch (t) {case "ss":return s += 1 === e ? "sekunda" : 2 === e || 3 === e || 4 === e ? "sekunde" : "sekundi";case "m":return a ? "jedna minuta" : "jedne minute";case "mm":return s += 1 === e ? "minuta" : 2 === e || 3 === e || 4 === e ? "minute" : "minuta";case "h":return a ? "jedan sat" : "jednog sata";case "hh":return s += 1 === e ? "sat" : 2 === e || 3 === e || 4 === e ? "sata" : "sati";case "dd":return s += 1 === e ? "dan" : "dana";case "MM":return s += 1 === e ? "mjesec" : 2 === e || 3 === e || 4 === e ? "mjeseca" : "mjeseci";case "yy":return s += 1 === e ? "godina" : 2 === e || 3 === e || 4 === e ? "godine" : "godina";}}l.defineLocale("bo", { months: "\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F51\u0F44\u0F0B\u0F54\u0F7C_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F42\u0F49\u0F72\u0F66\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F42\u0F66\u0F74\u0F58\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F5E\u0F72\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F63\u0F94\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F51\u0FB2\u0F74\u0F42\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F51\u0F74\u0F53\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F62\u0F92\u0FB1\u0F51\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F51\u0F42\u0F74\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F45\u0F74\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F45\u0F74\u0F0B\u0F42\u0F45\u0F72\u0F42\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F45\u0F74\u0F0B\u0F42\u0F49\u0F72\u0F66\u0F0B\u0F54".split("_"), monthsShort: "\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F51\u0F44\u0F0B\u0F54\u0F7C_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F42\u0F49\u0F72\u0F66\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F42\u0F66\u0F74\u0F58\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F5E\u0F72\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F63\u0F94\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F51\u0FB2\u0F74\u0F42\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F51\u0F74\u0F53\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F62\u0F92\u0FB1\u0F51\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F51\u0F42\u0F74\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F45\u0F74\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F45\u0F74\u0F0B\u0F42\u0F45\u0F72\u0F42\u0F0B\u0F54_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F56\u0F45\u0F74\u0F0B\u0F42\u0F49\u0F72\u0F66\u0F0B\u0F54".split("_"), weekdays: "\u0F42\u0F5F\u0F60\u0F0B\u0F49\u0F72\u0F0B\u0F58\u0F0B_\u0F42\u0F5F\u0F60\u0F0B\u0F5F\u0FB3\u0F0B\u0F56\u0F0B_\u0F42\u0F5F\u0F60\u0F0B\u0F58\u0F72\u0F42\u0F0B\u0F51\u0F58\u0F62\u0F0B_\u0F42\u0F5F\u0F60\u0F0B\u0F63\u0FB7\u0F42\u0F0B\u0F54\u0F0B_\u0F42\u0F5F\u0F60\u0F0B\u0F55\u0F74\u0F62\u0F0B\u0F56\u0F74_\u0F42\u0F5F\u0F60\u0F0B\u0F54\u0F0B\u0F66\u0F44\u0F66\u0F0B_\u0F42\u0F5F\u0F60\u0F0B\u0F66\u0FA4\u0F7A\u0F53\u0F0B\u0F54\u0F0B".split("_"), weekdaysShort: "\u0F49\u0F72\u0F0B\u0F58\u0F0B_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B_\u0F58\u0F72\u0F42\u0F0B\u0F51\u0F58\u0F62\u0F0B_\u0F63\u0FB7\u0F42\u0F0B\u0F54\u0F0B_\u0F55\u0F74\u0F62\u0F0B\u0F56\u0F74_\u0F54\u0F0B\u0F66\u0F44\u0F66\u0F0B_\u0F66\u0FA4\u0F7A\u0F53\u0F0B\u0F54\u0F0B".split("_"), weekdaysMin: "\u0F49\u0F72\u0F0B\u0F58\u0F0B_\u0F5F\u0FB3\u0F0B\u0F56\u0F0B_\u0F58\u0F72\u0F42\u0F0B\u0F51\u0F58\u0F62\u0F0B_\u0F63\u0FB7\u0F42\u0F0B\u0F54\u0F0B_\u0F55\u0F74\u0F62\u0F0B\u0F56\u0F74_\u0F54\u0F0B\u0F66\u0F44\u0F66\u0F0B_\u0F66\u0FA4\u0F7A\u0F53\u0F0B\u0F54\u0F0B".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm", LLLL: "dddd, D MMMM YYYY, A h:mm" }, calendar: { sameDay: "[\u0F51\u0F72\u0F0B\u0F62\u0F72\u0F44] LT", nextDay: "[\u0F66\u0F44\u0F0B\u0F49\u0F72\u0F53] LT", nextWeek: "[\u0F56\u0F51\u0F74\u0F53\u0F0B\u0F55\u0FB2\u0F42\u0F0B\u0F62\u0F97\u0F7A\u0F66\u0F0B\u0F58], LT", lastDay: "[\u0F41\u0F0B\u0F66\u0F44] LT", lastWeek: "[\u0F56\u0F51\u0F74\u0F53\u0F0B\u0F55\u0FB2\u0F42\u0F0B\u0F58\u0F50\u0F60\u0F0B\u0F58] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u0F63\u0F0B", past: "%s \u0F66\u0F94\u0F53\u0F0B\u0F63", s: "\u0F63\u0F58\u0F0B\u0F66\u0F44", ss: "%d \u0F66\u0F90\u0F62\u0F0B\u0F46\u0F0D", m: "\u0F66\u0F90\u0F62\u0F0B\u0F58\u0F0B\u0F42\u0F45\u0F72\u0F42", mm: "%d \u0F66\u0F90\u0F62\u0F0B\u0F58", h: "\u0F46\u0F74\u0F0B\u0F5A\u0F7C\u0F51\u0F0B\u0F42\u0F45\u0F72\u0F42", hh: "%d \u0F46\u0F74\u0F0B\u0F5A\u0F7C\u0F51", d: "\u0F49\u0F72\u0F53\u0F0B\u0F42\u0F45\u0F72\u0F42", dd: "%d \u0F49\u0F72\u0F53\u0F0B", M: "\u0F5F\u0FB3\u0F0B\u0F56\u0F0B\u0F42\u0F45\u0F72\u0F42", MM: "%d \u0F5F\u0FB3\u0F0B\u0F56", y: "\u0F63\u0F7C\u0F0B\u0F42\u0F45\u0F72\u0F42", yy: "%d \u0F63\u0F7C" }, preparse: function preparse(e) {return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g, function (e) {return ls[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return us[e];});}, meridiemParse: /\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0F58\u0F5A\u0F53\u0F0B\u0F58\u0F7C" === a && 4 <= e || "\u0F49\u0F72\u0F53\u0F0B\u0F42\u0F74\u0F44" === a && e < 5 || "\u0F51\u0F42\u0F7C\u0F44\u0F0B\u0F51\u0F42" === a ? e + 12 : e;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0F58\u0F5A\u0F53\u0F0B\u0F58\u0F7C" : e < 10 ? "\u0F5E\u0F7C\u0F42\u0F66\u0F0B\u0F40\u0F66" : e < 17 ? "\u0F49\u0F72\u0F53\u0F0B\u0F42\u0F74\u0F44" : e < 20 ? "\u0F51\u0F42\u0F7C\u0F44\u0F0B\u0F51\u0F42" : "\u0F58\u0F5A\u0F53\u0F0B\u0F58\u0F7C";}, week: { dow: 0, doy: 6 } }), l.defineLocale("br", { months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"), monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"), weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"), weekdaysShort: "Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"), weekdaysMin: "Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "h[e]mm A", LTS: "h[e]mm:ss A", L: "DD/MM/YYYY", LL: "D [a viz] MMMM YYYY", LLL: "D [a viz] MMMM YYYY h[e]mm A", LLLL: "dddd, D [a viz] MMMM YYYY h[e]mm A" }, calendar: { sameDay: "[Hiziv da] LT", nextDay: "[Warc'hoazh da] LT", nextWeek: "dddd [da] LT", lastDay: "[Dec'h da] LT", lastWeek: "dddd [paset da] LT", sameElse: "L" }, relativeTime: { future: "a-benn %s", past: "%s 'zo", s: "un nebeud segondenno\xf9", ss: "%d eilenn", m: "ur vunutenn", mm: Ms, h: "un eur", hh: "%d eur", d: "un devezh", dd: Ms, M: "ur miz", MM: Ms, y: "ur bloaz", yy: function yy(e) {switch (function e(a) {return 9 < a ? e(a % 10) : a;}(e)) {case 1:case 3:case 4:case 5:case 9:return e + " bloaz";default:return e + " vloaz";}} }, dayOfMonthOrdinalParse: /\d{1,2}(a\xf1|vet)/, ordinal: function ordinal(e) {return e + (1 === e ? "a\xf1" : "vet");}, week: { dow: 1, doy: 4 } }), l.defineLocale("bs", { months: "januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"), monthsShort: "jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "nedjelja_ponedjeljak_utorak_srijeda_\u010Detvrtak_petak_subota".split("_"), weekdaysShort: "ned._pon._uto._sri._\u010Det._pet._sub.".split("_"), weekdaysMin: "ne_po_ut_sr_\u010De_pe_su".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danas u] LT", nextDay: "[sutra u] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[u] [nedjelju] [u] LT";case 3:return "[u] [srijedu] [u] LT";case 6:return "[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return "[u] dddd [u] LT";}}, lastDay: "[ju\u010Der u] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:case 3:return "[pro\u0161lu] dddd [u] LT";case 6:return "[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return "[pro\u0161li] dddd [u] LT";}}, sameElse: "L" }, relativeTime: { future: "za %s", past: "prije %s", s: "par sekundi", ss: hs, m: hs, mm: hs, h: hs, hh: hs, d: "dan", dd: hs, M: "mjesec", MM: hs, y: "godinu", yy: hs }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }), l.defineLocale("ca", { months: { standalone: "gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"), format: "de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"), isFormat: /D[oD]?(\s)+MMMM/ }, monthsShort: "gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"), monthsParseExact: !0, weekdays: "diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"), weekdaysShort: "dg._dl._dt._dc._dj._dv._ds.".split("_"), weekdaysMin: "dg_dl_dt_dc_dj_dv_ds".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM [de] YYYY", ll: "D MMM YYYY", LLL: "D MMMM [de] YYYY [a les] H:mm", lll: "D MMM YYYY, H:mm", LLLL: "dddd D MMMM [de] YYYY [a les] H:mm", llll: "ddd D MMM YYYY, H:mm" }, calendar: { sameDay: function sameDay() {return "[avui a " + (1 !== this.hours() ? "les" : "la") + "] LT";}, nextDay: function nextDay() {return "[dem\xe0 a " + (1 !== this.hours() ? "les" : "la") + "] LT";}, nextWeek: function nextWeek() {return "dddd [a " + (1 !== this.hours() ? "les" : "la") + "] LT";}, lastDay: function lastDay() {return "[ahir a " + (1 !== this.hours() ? "les" : "la") + "] LT";}, lastWeek: function lastWeek() {return "[el] dddd [passat a " + (1 !== this.hours() ? "les" : "la") + "] LT";}, sameElse: "L" }, relativeTime: { future: "d'aqu\xed %s", past: "fa %s", s: "uns segons", ss: "%d segons", m: "un minut", mm: "%d minuts", h: "una hora", hh: "%d hores", d: "un dia", dd: "%d dies", M: "un mes", MM: "%d mesos", y: "un any", yy: "%d anys" }, dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|\xe8|a)/, ordinal: function ordinal(e, a) {var t = 1 === e ? "r" : 2 === e ? "n" : 3 === e ? "r" : 4 === e ? "t" : "\xe8";return "w" !== a && "W" !== a || (t = "a"), e + t;}, week: { dow: 1, doy: 4 } });var Ls = "leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),cs = "led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),Ys = [/^led/i, /^\xfano/i, /^b\u0159e/i, /^dub/i, /^kv\u011b/i, /^(\u010dvn|\u010derven$|\u010dervna)/i, /^(\u010dvc|\u010dervenec|\u010dervence)/i, /^srp/i, /^z\xe1\u0159/i, /^\u0159\xedj/i, /^lis/i, /^pro/i],ys = /^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function fs(e) {return 1 < e && e < 5 && 1 != ~~(e / 10);}function ks(e, a, t, s) {var n = e + " ";switch (t) {case "s":return a || s ? "p\xe1r sekund" : "p\xe1r sekundami";case "ss":return a || s ? n + (fs(e) ? "sekundy" : "sekund") : n + "sekundami";break;case "m":return a ? "minuta" : s ? "minutu" : "minutou";case "mm":return a || s ? n + (fs(e) ? "minuty" : "minut") : n + "minutami";break;case "h":return a ? "hodina" : s ? "hodinu" : "hodinou";case "hh":return a || s ? n + (fs(e) ? "hodiny" : "hodin") : n + "hodinami";break;case "d":return a || s ? "den" : "dnem";case "dd":return a || s ? n + (fs(e) ? "dny" : "dn\xed") : n + "dny";break;case "M":return a || s ? "m\u011Bs\xEDc" : "m\u011Bs\xEDcem";case "MM":return a || s ? n + (fs(e) ? "m\u011Bs\xEDce" : "m\u011Bs\xEDc\u016F") : n + "m\u011Bs\xEDci";break;case "y":return a || s ? "rok" : "rokem";case "yy":return a || s ? n + (fs(e) ? "roky" : "let") : n + "lety";break;}}function ps(e, a, t, s) {var n = { m: ["eine Minute", "einer Minute"], h: ["eine Stunde", "einer Stunde"], d: ["ein Tag", "einem Tag"], dd: [e + " Tage", e + " Tagen"], M: ["ein Monat", "einem Monat"], MM: [e + " Monate", e + " Monaten"], y: ["ein Jahr", "einem Jahr"], yy: [e + " Jahre", e + " Jahren"] };return a ? n[t][0] : n[t][1];}function Ds(e, a, t, s) {var n = { m: ["eine Minute", "einer Minute"], h: ["eine Stunde", "einer Stunde"], d: ["ein Tag", "einem Tag"], dd: [e + " Tage", e + " Tagen"], M: ["ein Monat", "einem Monat"], MM: [e + " Monate", e + " Monaten"], y: ["ein Jahr", "einem Jahr"], yy: [e + " Jahre", e + " Jahren"] };return a ? n[t][0] : n[t][1];}function Ts(e, a, t, s) {var n = { m: ["eine Minute", "einer Minute"], h: ["eine Stunde", "einer Stunde"], d: ["ein Tag", "einem Tag"], dd: [e + " Tage", e + " Tagen"], M: ["ein Monat", "einem Monat"], MM: [e + " Monate", e + " Monaten"], y: ["ein Jahr", "einem Jahr"], yy: [e + " Jahre", e + " Jahren"] };return a ? n[t][0] : n[t][1];}l.defineLocale("cs", { months: Ls, monthsShort: cs, monthsRegex: ys, monthsShortRegex: ys, monthsStrictRegex: /^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i, monthsShortStrictRegex: /^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i, monthsParse: Ys, longMonthsParse: Ys, shortMonthsParse: Ys, weekdays: "ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"), weekdaysShort: "ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"), weekdaysMin: "ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd D. MMMM YYYY H:mm", l: "D. M. YYYY" }, calendar: { sameDay: "[dnes v] LT", nextDay: "[z\xedtra v] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[v ned\u011Bli v] LT";case 1:case 2:return "[v] dddd [v] LT";case 3:return "[ve st\u0159edu v] LT";case 4:return "[ve \u010Dtvrtek v] LT";case 5:return "[v p\xe1tek v] LT";case 6:return "[v sobotu v] LT";}}, lastDay: "[v\u010Dera v] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:return "[minulou ned\u011Bli v] LT";case 1:case 2:return "[minul\xe9] dddd [v] LT";case 3:return "[minulou st\u0159edu v] LT";case 4:case 5:return "[minul\xfd] dddd [v] LT";case 6:return "[minulou sobotu v] LT";}}, sameElse: "L" }, relativeTime: { future: "za %s", past: "p\u0159ed %s", s: ks, ss: ks, m: ks, mm: ks, h: ks, hh: ks, d: ks, dd: ks, M: ks, MM: ks, y: ks, yy: ks }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("cv", { months: "\u043A\u04D1\u0440\u043B\u0430\u0447_\u043D\u0430\u0440\u04D1\u0441_\u043F\u0443\u0448_\u0430\u043A\u0430_\u043C\u0430\u0439_\u04AB\u04D7\u0440\u0442\u043C\u0435_\u0443\u0442\u04D1_\u04AB\u0443\u0440\u043B\u0430_\u0430\u0432\u04D1\u043D_\u044E\u043F\u0430_\u0447\u04F3\u043A_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"), monthsShort: "\u043A\u04D1\u0440_\u043D\u0430\u0440_\u043F\u0443\u0448_\u0430\u043A\u0430_\u043C\u0430\u0439_\u04AB\u04D7\u0440_\u0443\u0442\u04D1_\u04AB\u0443\u0440_\u0430\u0432\u043D_\u044E\u043F\u0430_\u0447\u04F3\u043A_\u0440\u0430\u0448".split("_"), weekdays: "\u0432\u044B\u0440\u0441\u0430\u0440\u043D\u0438\u043A\u0443\u043D_\u0442\u0443\u043D\u0442\u0438\u043A\u0443\u043D_\u044B\u0442\u043B\u0430\u0440\u0438\u043A\u0443\u043D_\u044E\u043D\u043A\u0443\u043D_\u043A\u04D7\u04AB\u043D\u0435\u0440\u043D\u0438\u043A\u0443\u043D_\u044D\u0440\u043D\u0435\u043A\u0443\u043D_\u0448\u04D1\u043C\u0430\u0442\u043A\u0443\u043D".split("_"), weekdaysShort: "\u0432\u044B\u0440_\u0442\u0443\u043D_\u044B\u0442\u043B_\u044E\u043D_\u043A\u04D7\u04AB_\u044D\u0440\u043D_\u0448\u04D1\u043C".split("_"), weekdaysMin: "\u0432\u0440_\u0442\u043D_\u044B\u0442_\u044E\u043D_\u043A\u04AB_\u044D\u0440_\u0448\u043C".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "YYYY [\u04AB\u0443\u043B\u0445\u0438] MMMM [\u0443\u0439\u04D1\u0445\u04D7\u043D] D[-\u043C\u04D7\u0448\u04D7]", LLL: "YYYY [\u04AB\u0443\u043B\u0445\u0438] MMMM [\u0443\u0439\u04D1\u0445\u04D7\u043D] D[-\u043C\u04D7\u0448\u04D7], HH:mm", LLLL: "dddd, YYYY [\u04AB\u0443\u043B\u0445\u0438] MMMM [\u0443\u0439\u04D1\u0445\u04D7\u043D] D[-\u043C\u04D7\u0448\u04D7], HH:mm" }, calendar: { sameDay: "[\u041F\u0430\u044F\u043D] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]", nextDay: "[\u042B\u0440\u0430\u043D] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]", lastDay: "[\u04D6\u043D\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]", nextWeek: "[\u04AA\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]", lastWeek: "[\u0418\u0440\u0442\u043D\u04D7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]", sameElse: "L" }, relativeTime: { future: function future(e) {return e + (/\u0441\u0435\u0445\u0435\u0442$/i.exec(e) ? "\u0440\u0435\u043D" : /\u04ab\u0443\u043b$/i.exec(e) ? "\u0442\u0430\u043D" : "\u0440\u0430\u043D");}, past: "%s \u043A\u0430\u044F\u043B\u043B\u0430", s: "\u043F\u04D7\u0440-\u0438\u043A \u04AB\u0435\u043A\u043A\u0443\u043D\u0442", ss: "%d \u04AB\u0435\u043A\u043A\u0443\u043D\u0442", m: "\u043F\u04D7\u0440 \u043C\u0438\u043D\u0443\u0442", mm: "%d \u043C\u0438\u043D\u0443\u0442", h: "\u043F\u04D7\u0440 \u0441\u0435\u0445\u0435\u0442", hh: "%d \u0441\u0435\u0445\u0435\u0442", d: "\u043F\u04D7\u0440 \u043A\u0443\u043D", dd: "%d \u043A\u0443\u043D", M: "\u043F\u04D7\u0440 \u0443\u0439\u04D1\u0445", MM: "%d \u0443\u0439\u04D1\u0445", y: "\u043F\u04D7\u0440 \u04AB\u0443\u043B", yy: "%d \u04AB\u0443\u043B" }, dayOfMonthOrdinalParse: /\d{1,2}-\u043c\u04d7\u0448/, ordinal: "%d-\u043C\u04D7\u0448", week: { dow: 1, doy: 7 } }), l.defineLocale("cy", { months: "Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"), monthsShort: "Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"), weekdays: "Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"), weekdaysShort: "Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"), weekdaysMin: "Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Heddiw am] LT", nextDay: "[Yfory am] LT", nextWeek: "dddd [am] LT", lastDay: "[Ddoe am] LT", lastWeek: "dddd [diwethaf am] LT", sameElse: "L" }, relativeTime: { future: "mewn %s", past: "%s yn \xf4l", s: "ychydig eiliadau", ss: "%d eiliad", m: "munud", mm: "%d munud", h: "awr", hh: "%d awr", d: "diwrnod", dd: "%d diwrnod", M: "mis", MM: "%d mis", y: "blwyddyn", yy: "%d flynedd" }, dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, ordinal: function ordinal(e) {var a = "";return 20 < e ? a = 40 === e || 50 === e || 60 === e || 80 === e || 100 === e ? "fed" : "ain" : 0 < e && (a = ["", "af", "il", "ydd", "ydd", "ed", "ed", "ed", "fed", "fed", "fed", "eg", "fed", "eg", "eg", "fed", "eg", "eg", "fed", "eg", "fed"][e]), e + a;}, week: { dow: 1, doy: 4 } }), l.defineLocale("da", { months: "januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"), monthsShort: "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"), weekdays: "s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"), weekdaysShort: "s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"), weekdaysMin: "s\xf8_ma_ti_on_to_fr_l\xf8".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd [d.] D. MMMM YYYY [kl.] HH:mm" }, calendar: { sameDay: "[i dag kl.] LT", nextDay: "[i morgen kl.] LT", nextWeek: "p\xe5 dddd [kl.] LT", lastDay: "[i g\xe5r kl.] LT", lastWeek: "[i] dddd[s kl.] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "%s siden", s: "f\xe5 sekunder", ss: "%d sekunder", m: "et minut", mm: "%d minutter", h: "en time", hh: "%d timer", d: "en dag", dd: "%d dage", M: "en m\xe5ned", MM: "%d m\xe5neder", y: "et \xe5r", yy: "%d \xe5r" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("de-at", { months: "J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, calendar: { sameDay: "[heute um] LT [Uhr]", sameElse: "L", nextDay: "[morgen um] LT [Uhr]", nextWeek: "dddd [um] LT [Uhr]", lastDay: "[gestern um] LT [Uhr]", lastWeek: "[letzten] dddd [um] LT [Uhr]" }, relativeTime: { future: "in %s", past: "vor %s", s: "ein paar Sekunden", ss: "%d Sekunden", m: ps, mm: "%d Minuten", h: ps, hh: "%d Stunden", d: ps, dd: ps, M: ps, MM: ps, y: ps, yy: ps }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("de-ch", { months: "Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, calendar: { sameDay: "[heute um] LT [Uhr]", sameElse: "L", nextDay: "[morgen um] LT [Uhr]", nextWeek: "dddd [um] LT [Uhr]", lastDay: "[gestern um] LT [Uhr]", lastWeek: "[letzten] dddd [um] LT [Uhr]" }, relativeTime: { future: "in %s", past: "vor %s", s: "ein paar Sekunden", ss: "%d Sekunden", m: Ds, mm: "%d Minuten", h: Ds, hh: "%d Stunden", d: Ds, dd: Ds, M: Ds, MM: Ds, y: Ds, yy: Ds }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("de", { months: "Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, calendar: { sameDay: "[heute um] LT [Uhr]", sameElse: "L", nextDay: "[morgen um] LT [Uhr]", nextWeek: "dddd [um] LT [Uhr]", lastDay: "[gestern um] LT [Uhr]", lastWeek: "[letzten] dddd [um] LT [Uhr]" }, relativeTime: { future: "in %s", past: "vor %s", s: "ein paar Sekunden", ss: "%d Sekunden", m: Ts, mm: "%d Minuten", h: Ts, hh: "%d Stunden", d: Ts, dd: Ts, M: Ts, MM: Ts, y: Ts, yy: Ts }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } });var gs = ["\u0796\u07AC\u0782\u07AA\u0787\u07A6\u0783\u07A9", "\u078A\u07AC\u0784\u07B0\u0783\u07AA\u0787\u07A6\u0783\u07A9", "\u0789\u07A7\u0783\u07A8\u0797\u07AA", "\u0787\u07AD\u0795\u07B0\u0783\u07A9\u078D\u07AA", "\u0789\u07AD", "\u0796\u07AB\u0782\u07B0", "\u0796\u07AA\u078D\u07A6\u0787\u07A8", "\u0787\u07AF\u078E\u07A6\u0790\u07B0\u0793\u07AA", "\u0790\u07AC\u0795\u07B0\u0793\u07AC\u0789\u07B0\u0784\u07A6\u0783\u07AA", "\u0787\u07AE\u0786\u07B0\u0793\u07AF\u0784\u07A6\u0783\u07AA", "\u0782\u07AE\u0788\u07AC\u0789\u07B0\u0784\u07A6\u0783\u07AA", "\u0791\u07A8\u0790\u07AC\u0789\u07B0\u0784\u07A6\u0783\u07AA"],ws = ["\u0787\u07A7\u078B\u07A8\u0787\u07B0\u078C\u07A6", "\u0780\u07AF\u0789\u07A6", "\u0787\u07A6\u0782\u07B0\u078E\u07A7\u0783\u07A6", "\u0784\u07AA\u078B\u07A6", "\u0784\u07AA\u0783\u07A7\u0790\u07B0\u078A\u07A6\u078C\u07A8", "\u0780\u07AA\u0786\u07AA\u0783\u07AA", "\u0780\u07AE\u0782\u07A8\u0780\u07A8\u0783\u07AA"];l.defineLocale("dv", { months: gs, monthsShort: gs, weekdays: ws, weekdaysShort: ws, weekdaysMin: "\u0787\u07A7\u078B\u07A8_\u0780\u07AF\u0789\u07A6_\u0787\u07A6\u0782\u07B0_\u0784\u07AA\u078B\u07A6_\u0784\u07AA\u0783\u07A7_\u0780\u07AA\u0786\u07AA_\u0780\u07AE\u0782\u07A8".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "D/M/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, meridiemParse: /\u0789\u0786|\u0789\u078a/, isPM: function isPM(e) {return "\u0789\u078A" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0789\u0786" : "\u0789\u078A";}, calendar: { sameDay: "[\u0789\u07A8\u0787\u07A6\u078B\u07AA] LT", nextDay: "[\u0789\u07A7\u078B\u07A6\u0789\u07A7] LT", nextWeek: "dddd LT", lastDay: "[\u0787\u07A8\u0787\u07B0\u0794\u07AC] LT", lastWeek: "[\u078A\u07A7\u0787\u07A8\u078C\u07AA\u0788\u07A8] dddd LT", sameElse: "L" }, relativeTime: { future: "\u078C\u07AC\u0783\u07AD\u078E\u07A6\u0787\u07A8 %s", past: "\u0786\u07AA\u0783\u07A8\u0782\u07B0 %s", s: "\u0790\u07A8\u0786\u07AA\u0782\u07B0\u078C\u07AA\u0786\u07AE\u0785\u07AC\u0787\u07B0", ss: "d% \u0790\u07A8\u0786\u07AA\u0782\u07B0\u078C\u07AA", m: "\u0789\u07A8\u0782\u07A8\u0793\u07AC\u0787\u07B0", mm: "\u0789\u07A8\u0782\u07A8\u0793\u07AA %d", h: "\u078E\u07A6\u0791\u07A8\u0787\u07A8\u0783\u07AC\u0787\u07B0", hh: "\u078E\u07A6\u0791\u07A8\u0787\u07A8\u0783\u07AA %d", d: "\u078B\u07AA\u0788\u07A6\u0780\u07AC\u0787\u07B0", dd: "\u078B\u07AA\u0788\u07A6\u0790\u07B0 %d", M: "\u0789\u07A6\u0780\u07AC\u0787\u07B0", MM: "\u0789\u07A6\u0790\u07B0 %d", y: "\u0787\u07A6\u0780\u07A6\u0783\u07AC\u0787\u07B0", yy: "\u0787\u07A6\u0780\u07A6\u0783\u07AA %d" }, preparse: function preparse(e) {return e.replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/,/g, "\u060C");}, week: { dow: 7, doy: 12 } }), l.defineLocale("el", { monthsNominativeEl: "\u0399\u03B1\u03BD\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2_\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2_\u039C\u03AC\u03C1\u03C4\u03B9\u03BF\u03C2_\u0391\u03C0\u03C1\u03AF\u03BB\u03B9\u03BF\u03C2_\u039C\u03AC\u03B9\u03BF\u03C2_\u0399\u03BF\u03CD\u03BD\u03B9\u03BF\u03C2_\u0399\u03BF\u03CD\u03BB\u03B9\u03BF\u03C2_\u0391\u03CD\u03B3\u03BF\u03C5\u03C3\u03C4\u03BF\u03C2_\u03A3\u03B5\u03C0\u03C4\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2_\u039F\u03BA\u03C4\u03CE\u03B2\u03C1\u03B9\u03BF\u03C2_\u039D\u03BF\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2_\u0394\u03B5\u03BA\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2".split("_"), monthsGenitiveEl: "\u0399\u03B1\u03BD\u03BF\u03C5\u03B1\u03C1\u03AF\u03BF\u03C5_\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03B1\u03C1\u03AF\u03BF\u03C5_\u039C\u03B1\u03C1\u03C4\u03AF\u03BF\u03C5_\u0391\u03C0\u03C1\u03B9\u03BB\u03AF\u03BF\u03C5_\u039C\u03B1\u0390\u03BF\u03C5_\u0399\u03BF\u03C5\u03BD\u03AF\u03BF\u03C5_\u0399\u03BF\u03C5\u03BB\u03AF\u03BF\u03C5_\u0391\u03C5\u03B3\u03BF\u03CD\u03C3\u03C4\u03BF\u03C5_\u03A3\u03B5\u03C0\u03C4\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5_\u039F\u03BA\u03C4\u03C9\u03B2\u03C1\u03AF\u03BF\u03C5_\u039D\u03BF\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5_\u0394\u03B5\u03BA\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5".split("_"), months: function months(e, a) {return e ? "string" == typeof a && /D/.test(a.substring(0, a.indexOf("MMMM"))) ? this._monthsGenitiveEl[e.month()] : this._monthsNominativeEl[e.month()] : this._monthsNominativeEl;}, monthsShort: "\u0399\u03B1\u03BD_\u03A6\u03B5\u03B2_\u039C\u03B1\u03C1_\u0391\u03C0\u03C1_\u039C\u03B1\u03CA_\u0399\u03BF\u03C5\u03BD_\u0399\u03BF\u03C5\u03BB_\u0391\u03C5\u03B3_\u03A3\u03B5\u03C0_\u039F\u03BA\u03C4_\u039D\u03BF\u03B5_\u0394\u03B5\u03BA".split("_"), weekdays: "\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE_\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1_\u03A4\u03C1\u03AF\u03C4\u03B7_\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7_\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7_\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE_\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF".split("_"), weekdaysShort: "\u039A\u03C5\u03C1_\u0394\u03B5\u03C5_\u03A4\u03C1\u03B9_\u03A4\u03B5\u03C4_\u03A0\u03B5\u03BC_\u03A0\u03B1\u03C1_\u03A3\u03B1\u03B2".split("_"), weekdaysMin: "\u039A\u03C5_\u0394\u03B5_\u03A4\u03C1_\u03A4\u03B5_\u03A0\u03B5_\u03A0\u03B1_\u03A3\u03B1".split("_"), meridiem: function meridiem(e, a, t) {return 11 < e ? t ? "\u03BC\u03BC" : "\u039C\u039C" : t ? "\u03C0\u03BC" : "\u03A0\u039C";}, isPM: function isPM(e) {return "\u03BC" === (e + "").toLowerCase()[0];}, meridiemParse: /[\u03a0\u039c]\.?\u039c?\.?/i, longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendarEl: { sameDay: "[\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1 {}] LT", nextDay: "[\u0391\u03CD\u03C1\u03B9\u03BF {}] LT", nextWeek: "dddd [{}] LT", lastDay: "[\u03A7\u03B8\u03B5\u03C2 {}] LT", lastWeek: function lastWeek() {switch (this.day()) {case 6:return "[\u03C4\u03BF \u03C0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF] dddd [{}] LT";default:return "[\u03C4\u03B7\u03BD \u03C0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7] dddd [{}] LT";}}, sameElse: "L" }, calendar: function calendar(e, a) {var t = this._calendarEl[e],s = a && a.hours();return H(t) && (t = t.apply(a)), t.replace("{}", s % 12 == 1 ? "\u03C3\u03C4\u03B7" : "\u03C3\u03C4\u03B9\u03C2");}, relativeTime: { future: "\u03C3\u03B5 %s", past: "%s \u03C0\u03C1\u03B9\u03BD", s: "\u03BB\u03AF\u03B3\u03B1 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1", ss: "%d \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1", m: "\u03AD\u03BD\u03B1 \u03BB\u03B5\u03C0\u03C4\u03CC", mm: "%d \u03BB\u03B5\u03C0\u03C4\u03AC", h: "\u03BC\u03AF\u03B1 \u03CE\u03C1\u03B1", hh: "%d \u03CE\u03C1\u03B5\u03C2", d: "\u03BC\u03AF\u03B1 \u03BC\u03AD\u03C1\u03B1", dd: "%d \u03BC\u03AD\u03C1\u03B5\u03C2", M: "\u03AD\u03BD\u03B1\u03C2 \u03BC\u03AE\u03BD\u03B1\u03C2", MM: "%d \u03BC\u03AE\u03BD\u03B5\u03C2", y: "\u03AD\u03BD\u03B1\u03C2 \u03C7\u03C1\u03CC\u03BD\u03BF\u03C2", yy: "%d \u03C7\u03C1\u03CC\u03BD\u03B9\u03B1" }, dayOfMonthOrdinalParse: /\d{1,2}\u03b7/, ordinal: "%d\u03B7", week: { dow: 1, doy: 4 } }), l.defineLocale("en-SG", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");}, week: { dow: 1, doy: 4 } }), l.defineLocale("en-au", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");}, week: { dow: 1, doy: 4 } }), l.defineLocale("en-ca", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "YYYY-MM-DD", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");} }), l.defineLocale("en-gb", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");}, week: { dow: 1, doy: 4 } }), l.defineLocale("en-ie", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");}, week: { dow: 1, doy: 4 } }), l.defineLocale("en-il", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");} }), l.defineLocale("en-nz", { months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }, relativeTime: { future: "in %s", past: "%s ago", s: "a few seconds", ss: "%d seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");}, week: { dow: 1, doy: 4 } }), l.defineLocale("eo", { months: "januaro_februaro_marto_aprilo_majo_junio_julio_a\u016Dgusto_septembro_oktobro_novembro_decembro".split("_"), monthsShort: "jan_feb_mar_apr_maj_jun_jul_a\u016Dg_sep_okt_nov_dec".split("_"), weekdays: "diman\u0109o_lundo_mardo_merkredo_\u0135a\u016Ddo_vendredo_sabato".split("_"), weekdaysShort: "dim_lun_mard_merk_\u0135a\u016D_ven_sab".split("_"), weekdaysMin: "di_lu_ma_me_\u0135a_ve_sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "D[-a de] MMMM, YYYY", LLL: "D[-a de] MMMM, YYYY HH:mm", LLLL: "dddd, [la] D[-a de] MMMM, YYYY HH:mm" }, meridiemParse: /[ap]\.t\.m/i, isPM: function isPM(e) {return "p" === e.charAt(0).toLowerCase();}, meridiem: function meridiem(e, a, t) {return 11 < e ? t ? "p.t.m." : "P.T.M." : t ? "a.t.m." : "A.T.M.";}, calendar: { sameDay: "[Hodia\u016D je] LT", nextDay: "[Morga\u016D je] LT", nextWeek: "dddd [je] LT", lastDay: "[Hiera\u016D je] LT", lastWeek: "[pasinta] dddd [je] LT", sameElse: "L" }, relativeTime: { future: "post %s", past: "anta\u016D %s", s: "sekundoj", ss: "%d sekundoj", m: "minuto", mm: "%d minutoj", h: "horo", hh: "%d horoj", d: "tago", dd: "%d tagoj", M: "monato", MM: "%d monatoj", y: "jaro", yy: "%d jaroj" }, dayOfMonthOrdinalParse: /\d{1,2}a/, ordinal: "%da", week: { dow: 1, doy: 7 } });var vs = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ss = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Hs = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],bs = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;l.defineLocale("es-do", { months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), monthsShort: function monthsShort(e, a) {return e ? /-MMM-/.test(a) ? Ss[e.month()] : vs[e.month()] : vs;}, monthsRegex: bs, monthsShortRegex: bs, monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, monthsParse: Hs, longMonthsParse: Hs, shortMonthsParse: Hs, weekdays: "domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"), weekdaysShort: "dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_s\xe1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY h:mm A", LLLL: "dddd, D [de] MMMM [de] YYYY h:mm A" }, calendar: { sameDay: function sameDay() {return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, nextDay: function nextDay() {return "[ma\xf1ana a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, nextWeek: function nextWeek() {return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, lastDay: function lastDay() {return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, lastWeek: function lastWeek() {return "[el] dddd [pasado a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, sameElse: "L" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", ss: "%d segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un d\xeda", dd: "%d d\xedas", M: "un mes", MM: "%d meses", y: "un a\xf1o", yy: "%d a\xf1os" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 1, doy: 4 } });var js = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),xs = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Os = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],Ps = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;l.defineLocale("es-us", { months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), monthsShort: function monthsShort(e, a) {return e ? /-MMM-/.test(a) ? xs[e.month()] : js[e.month()] : js;}, monthsRegex: Ps, monthsShortRegex: Ps, monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, monthsParse: Os, longMonthsParse: Os, shortMonthsParse: Os, weekdays: "domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"), weekdaysShort: "dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_s\xe1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "MM/DD/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY h:mm A", LLLL: "dddd, D [de] MMMM [de] YYYY h:mm A" }, calendar: { sameDay: function sameDay() {return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, nextDay: function nextDay() {return "[ma\xf1ana a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, nextWeek: function nextWeek() {return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, lastDay: function lastDay() {return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, lastWeek: function lastWeek() {return "[el] dddd [pasado a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, sameElse: "L" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", ss: "%d segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un d\xeda", dd: "%d d\xedas", M: "un mes", MM: "%d meses", y: "un a\xf1o", yy: "%d a\xf1os" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 0, doy: 6 } });var Ws = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),As = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Es = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],Fs = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;function zs(e, a, t, s) {var n = { s: ["m\xf5ne sekundi", "m\xf5ni sekund", "paar sekundit"], ss: [e + "sekundi", e + "sekundit"], m: ["\xfche minuti", "\xfcks minut"], mm: [e + " minuti", e + " minutit"], h: ["\xfche tunni", "tund aega", "\xfcks tund"], hh: [e + " tunni", e + " tundi"], d: ["\xfche p\xe4eva", "\xfcks p\xe4ev"], M: ["kuu aja", "kuu aega", "\xfcks kuu"], MM: [e + " kuu", e + " kuud"], y: ["\xfche aasta", "aasta", "\xfcks aasta"], yy: [e + " aasta", e + " aastat"] };return a ? n[t][2] ? n[t][2] : n[t][1] : s ? n[t][0] : n[t][1];}l.defineLocale("es", { months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), monthsShort: function monthsShort(e, a) {return e ? /-MMM-/.test(a) ? As[e.month()] : Ws[e.month()] : Ws;}, monthsRegex: Fs, monthsShortRegex: Fs, monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, monthsParse: Es, longMonthsParse: Es, shortMonthsParse: Es, weekdays: "domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"), weekdaysShort: "dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_s\xe1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, calendar: { sameDay: function sameDay() {return "[hoy a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, nextDay: function nextDay() {return "[ma\xf1ana a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, nextWeek: function nextWeek() {return "dddd [a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, lastDay: function lastDay() {return "[ayer a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, lastWeek: function lastWeek() {return "[el] dddd [pasado a la" + (1 !== this.hours() ? "s" : "") + "] LT";}, sameElse: "L" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", ss: "%d segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un d\xeda", dd: "%d d\xedas", M: "un mes", MM: "%d meses", y: "un a\xf1o", yy: "%d a\xf1os" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 1, doy: 4 } }), l.defineLocale("et", { months: "jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"), monthsShort: "jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"), weekdays: "p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"), weekdaysShort: "P_E_T_K_N_R_L".split("_"), weekdaysMin: "P_E_T_K_N_R_L".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[T\xe4na,] LT", nextDay: "[Homme,] LT", nextWeek: "[J\xe4rgmine] dddd LT", lastDay: "[Eile,] LT", lastWeek: "[Eelmine] dddd LT", sameElse: "L" }, relativeTime: { future: "%s p\xe4rast", past: "%s tagasi", s: zs, ss: zs, m: zs, mm: zs, h: zs, hh: zs, d: zs, dd: "%d p\xe4eva", M: zs, MM: zs, y: zs, yy: zs }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("eu", { months: "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"), monthsShort: "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"), monthsParseExact: !0, weekdays: "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"), weekdaysShort: "ig._al._ar._az._og._ol._lr.".split("_"), weekdaysMin: "ig_al_ar_az_og_ol_lr".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "YYYY[ko] MMMM[ren] D[a]", LLL: "YYYY[ko] MMMM[ren] D[a] HH:mm", LLLL: "dddd, YYYY[ko] MMMM[ren] D[a] HH:mm", l: "YYYY-M-D", ll: "YYYY[ko] MMM D[a]", lll: "YYYY[ko] MMM D[a] HH:mm", llll: "ddd, YYYY[ko] MMM D[a] HH:mm" }, calendar: { sameDay: "[gaur] LT[etan]", nextDay: "[bihar] LT[etan]", nextWeek: "dddd LT[etan]", lastDay: "[atzo] LT[etan]", lastWeek: "[aurreko] dddd LT[etan]", sameElse: "L" }, relativeTime: { future: "%s barru", past: "duela %s", s: "segundo batzuk", ss: "%d segundo", m: "minutu bat", mm: "%d minutu", h: "ordu bat", hh: "%d ordu", d: "egun bat", dd: "%d egun", M: "hilabete bat", MM: "%d hilabete", y: "urte bat", yy: "%d urte" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } });var Js = { 1: "\u06F1", 2: "\u06F2", 3: "\u06F3", 4: "\u06F4", 5: "\u06F5", 6: "\u06F6", 7: "\u06F7", 8: "\u06F8", 9: "\u06F9", 0: "\u06F0" },Ns = { "\u06F1": "1", "\u06F2": "2", "\u06F3": "3", "\u06F4": "4", "\u06F5": "5", "\u06F6": "6", "\u06F7": "7", "\u06F8": "8", "\u06F9": "9", "\u06F0": "0" };l.defineLocale("fa", { months: "\u0698\u0627\u0646\u0648\u06CC\u0647_\u0641\u0648\u0631\u06CC\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06CC\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06CC\u0647_\u0627\u0648\u062A_\u0633\u067E\u062A\u0627\u0645\u0628\u0631_\u0627\u06A9\u062A\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062F\u0633\u0627\u0645\u0628\u0631".split("_"), monthsShort: "\u0698\u0627\u0646\u0648\u06CC\u0647_\u0641\u0648\u0631\u06CC\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06CC\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06CC\u0647_\u0627\u0648\u062A_\u0633\u067E\u062A\u0627\u0645\u0628\u0631_\u0627\u06A9\u062A\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062F\u0633\u0627\u0645\u0628\u0631".split("_"), weekdays: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"), weekdaysShort: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"), weekdaysMin: "\u06CC_\u062F_\u0633_\u0686_\u067E_\u062C_\u0634".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, meridiemParse: /\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/, isPM: function isPM(e) {return /\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e);}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631" : "\u0628\u0639\u062F \u0627\u0632 \u0638\u0647\u0631";}, calendar: { sameDay: "[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062A] LT", nextDay: "[\u0641\u0631\u062F\u0627 \u0633\u0627\u0639\u062A] LT", nextWeek: "dddd [\u0633\u0627\u0639\u062A] LT", lastDay: "[\u062F\u06CC\u0631\u0648\u0632 \u0633\u0627\u0639\u062A] LT", lastWeek: "dddd [\u067E\u06CC\u0634] [\u0633\u0627\u0639\u062A] LT", sameElse: "L" }, relativeTime: { future: "\u062F\u0631 %s", past: "%s \u067E\u06CC\u0634", s: "\u0686\u0646\u062F \u062B\u0627\u0646\u06CC\u0647", ss: "\u062B\u0627\u0646\u06CC\u0647 d%", m: "\u06CC\u06A9 \u062F\u0642\u06CC\u0642\u0647", mm: "%d \u062F\u0642\u06CC\u0642\u0647", h: "\u06CC\u06A9 \u0633\u0627\u0639\u062A", hh: "%d \u0633\u0627\u0639\u062A", d: "\u06CC\u06A9 \u0631\u0648\u0632", dd: "%d \u0631\u0648\u0632", M: "\u06CC\u06A9 \u0645\u0627\u0647", MM: "%d \u0645\u0627\u0647", y: "\u06CC\u06A9 \u0633\u0627\u0644", yy: "%d \u0633\u0627\u0644" }, preparse: function preparse(e) {return e.replace(/[\u06f0-\u06f9]/g, function (e) {return Ns[e];}).replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return Js[e];}).replace(/,/g, "\u060C");}, dayOfMonthOrdinalParse: /\d{1,2}\u0645/, ordinal: "%d\u0645", week: { dow: 6, doy: 12 } });var Rs = "nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),Cs = ["nolla", "yhden", "kahden", "kolmen", "nelj\xe4n", "viiden", "kuuden", Rs[7], Rs[8], Rs[9]];function Is(e, a, t, s) {var n,d,r = "";switch (t) {case "s":return s ? "muutaman sekunnin" : "muutama sekunti";case "ss":return s ? "sekunnin" : "sekuntia";case "m":return s ? "minuutin" : "minuutti";case "mm":r = s ? "minuutin" : "minuuttia";break;case "h":return s ? "tunnin" : "tunti";case "hh":r = s ? "tunnin" : "tuntia";break;case "d":return s ? "p\xe4iv\xe4n" : "p\xe4iv\xe4";case "dd":r = s ? "p\xe4iv\xe4n" : "p\xe4iv\xe4\xe4";break;case "M":return s ? "kuukauden" : "kuukausi";case "MM":r = s ? "kuukauden" : "kuukautta";break;case "y":return s ? "vuoden" : "vuosi";case "yy":r = s ? "vuoden" : "vuotta";break;}return d = s, r = ((n = e) < 10 ? d ? Cs[n] : Rs[n] : n) + " " + r;}l.defineLocale("fi", { months: "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"), monthsShort: "tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"), weekdays: "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"), weekdaysShort: "su_ma_ti_ke_to_pe_la".split("_"), weekdaysMin: "su_ma_ti_ke_to_pe_la".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD.MM.YYYY", LL: "Do MMMM[ta] YYYY", LLL: "Do MMMM[ta] YYYY, [klo] HH.mm", LLLL: "dddd, Do MMMM[ta] YYYY, [klo] HH.mm", l: "D.M.YYYY", ll: "Do MMM YYYY", lll: "Do MMM YYYY, [klo] HH.mm", llll: "ddd, Do MMM YYYY, [klo] HH.mm" }, calendar: { sameDay: "[t\xe4n\xe4\xe4n] [klo] LT", nextDay: "[huomenna] [klo] LT", nextWeek: "dddd [klo] LT", lastDay: "[eilen] [klo] LT", lastWeek: "[viime] dddd[na] [klo] LT", sameElse: "L" }, relativeTime: { future: "%s p\xe4\xe4st\xe4", past: "%s sitten", s: Is, ss: Is, m: Is, mm: Is, h: Is, hh: Is, d: Is, dd: Is, M: Is, MM: Is, y: Is, yy: Is }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("fo", { months: "januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"), monthsShort: "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"), weekdays: "sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"), weekdaysShort: "sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"), weekdaysMin: "su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D. MMMM, YYYY HH:mm" }, calendar: { sameDay: "[\xcd dag kl.] LT", nextDay: "[\xcd morgin kl.] LT", nextWeek: "dddd [kl.] LT", lastDay: "[\xcd gj\xe1r kl.] LT", lastWeek: "[s\xed\xf0stu] dddd [kl] LT", sameElse: "L" }, relativeTime: { future: "um %s", past: "%s s\xed\xf0ani", s: "f\xe1 sekund", ss: "%d sekundir", m: "ein minuttur", mm: "%d minuttir", h: "ein t\xedmi", hh: "%d t\xedmar", d: "ein dagur", dd: "%d dagar", M: "ein m\xe1na\xf0ur", MM: "%d m\xe1na\xf0ir", y: "eitt \xe1r", yy: "%d \xe1r" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("fr-ca", { months: "janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"), monthsShort: "janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"), monthsParseExact: !0, weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Aujourd\u2019hui \xE0] LT", nextDay: "[Demain \xe0] LT", nextWeek: "dddd [\xe0] LT", lastDay: "[Hier \xe0] LT", lastWeek: "dddd [dernier \xe0] LT", sameElse: "L" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", ss: "%d secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, ordinal: function ordinal(e, a) {switch (a) {default:case "M":case "Q":case "D":case "DDD":case "d":return e + (1 === e ? "er" : "e");case "w":case "W":return e + (1 === e ? "re" : "e");}} }), l.defineLocale("fr-ch", { months: "janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"), monthsShort: "janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"), monthsParseExact: !0, weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Aujourd\u2019hui \xE0] LT", nextDay: "[Demain \xe0] LT", nextWeek: "dddd [\xe0] LT", lastDay: "[Hier \xe0] LT", lastWeek: "dddd [dernier \xe0] LT", sameElse: "L" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", ss: "%d secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, ordinal: function ordinal(e, a) {switch (a) {default:case "M":case "Q":case "D":case "DDD":case "d":return e + (1 === e ? "er" : "e");case "w":case "W":return e + (1 === e ? "re" : "e");}}, week: { dow: 1, doy: 4 } }), l.defineLocale("fr", { months: "janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"), monthsShort: "janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"), monthsParseExact: !0, weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Aujourd\u2019hui \xE0] LT", nextDay: "[Demain \xe0] LT", nextWeek: "dddd [\xe0] LT", lastDay: "[Hier \xe0] LT", lastWeek: "dddd [dernier \xe0] LT", sameElse: "L" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", ss: "%d secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, dayOfMonthOrdinalParse: /\d{1,2}(er|)/, ordinal: function ordinal(e, a) {switch (a) {case "D":return e + (1 === e ? "er" : "");default:case "M":case "Q":case "DDD":case "d":return e + (1 === e ? "er" : "e");case "w":case "W":return e + (1 === e ? "re" : "e");}}, week: { dow: 1, doy: 4 } });var Us = "jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Gs = "jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");l.defineLocale("fy", { months: "jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"), monthsShort: function monthsShort(e, a) {return e ? /-MMM-/.test(a) ? Gs[e.month()] : Us[e.month()] : Us;}, monthsParseExact: !0, weekdays: "snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"), weekdaysShort: "si._mo._ti._wo._to._fr._so.".split("_"), weekdaysMin: "Si_Mo_Ti_Wo_To_Fr_So".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[hjoed om] LT", nextDay: "[moarn om] LT", nextWeek: "dddd [om] LT", lastDay: "[juster om] LT", lastWeek: "[\xf4fr\xfbne] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "oer %s", past: "%s lyn", s: "in pear sekonden", ss: "%d sekonden", m: "ien min\xfat", mm: "%d minuten", h: "ien oere", hh: "%d oeren", d: "ien dei", dd: "%d dagen", M: "ien moanne", MM: "%d moannen", y: "ien jier", yy: "%d jierren" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function ordinal(e) {return e + (1 === e || 8 === e || 20 <= e ? "ste" : "de");}, week: { dow: 1, doy: 4 } });l.defineLocale("ga", { months: ["Ean\xe1ir", "Feabhra", "M\xe1rta", "Aibre\xe1n", "Bealtaine", "M\xe9itheamh", "I\xfail", "L\xfanasa", "Me\xe1n F\xf3mhair", "Deaireadh F\xf3mhair", "Samhain", "Nollaig"], monthsShort: ["Ean\xe1", "Feab", "M\xe1rt", "Aibr", "Beal", "M\xe9it", "I\xfail", "L\xfana", "Me\xe1n", "Deai", "Samh", "Noll"], monthsParseExact: !0, weekdays: ["D\xe9 Domhnaigh", "D\xe9 Luain", "D\xe9 M\xe1irt", "D\xe9 C\xe9adaoin", "D\xe9ardaoin", "D\xe9 hAoine", "D\xe9 Satharn"], weekdaysShort: ["Dom", "Lua", "M\xe1i", "C\xe9a", "D\xe9a", "hAo", "Sat"], weekdaysMin: ["Do", "Lu", "M\xe1", "Ce", "D\xe9", "hA", "Sa"], longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Inniu ag] LT", nextDay: "[Am\xe1rach ag] LT", nextWeek: "dddd [ag] LT", lastDay: "[Inn\xe9 aig] LT", lastWeek: "dddd [seo caite] [ag] LT", sameElse: "L" }, relativeTime: { future: "i %s", past: "%s \xf3 shin", s: "c\xfapla soicind", ss: "%d soicind", m: "n\xf3im\xe9ad", mm: "%d n\xf3im\xe9ad", h: "uair an chloig", hh: "%d uair an chloig", d: "l\xe1", dd: "%d l\xe1", M: "m\xed", MM: "%d m\xed", y: "bliain", yy: "%d bliain" }, dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, ordinal: function ordinal(e) {return e + (1 === e ? "d" : e % 10 == 2 ? "na" : "mh");}, week: { dow: 1, doy: 4 } });function Vs(e, a, t, s) {var n = { s: ["thodde secondanim", "thodde second"], ss: [e + " secondanim", e + " second"], m: ["eka mintan", "ek minute"], mm: [e + " mintanim", e + " mintam"], h: ["eka voran", "ek vor"], hh: [e + " voranim", e + " voram"], d: ["eka disan", "ek dis"], dd: [e + " disanim", e + " dis"], M: ["eka mhoinean", "ek mhoino"], MM: [e + " mhoineanim", e + " mhoine"], y: ["eka vorsan", "ek voros"], yy: [e + " vorsanim", e + " vorsam"] };return a ? n[t][0] : n[t][1];}l.defineLocale("gd", { months: ["Am Faoilleach", "An Gearran", "Am M\xe0rt", "An Giblean", "An C\xe8itean", "An t-\xd2gmhios", "An t-Iuchar", "An L\xf9nastal", "An t-Sultain", "An D\xe0mhair", "An t-Samhain", "An D\xf9bhlachd"], monthsShort: ["Faoi", "Gear", "M\xe0rt", "Gibl", "C\xe8it", "\xd2gmh", "Iuch", "L\xf9n", "Sult", "D\xe0mh", "Samh", "D\xf9bh"], monthsParseExact: !0, weekdays: ["Did\xf2mhnaich", "Diluain", "Dim\xe0irt", "Diciadain", "Diardaoin", "Dihaoine", "Disathairne"], weekdaysShort: ["Did", "Dil", "Dim", "Dic", "Dia", "Dih", "Dis"], weekdaysMin: ["D\xf2", "Lu", "M\xe0", "Ci", "Ar", "Ha", "Sa"], longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[An-diugh aig] LT", nextDay: "[A-m\xe0ireach aig] LT", nextWeek: "dddd [aig] LT", lastDay: "[An-d\xe8 aig] LT", lastWeek: "dddd [seo chaidh] [aig] LT", sameElse: "L" }, relativeTime: { future: "ann an %s", past: "bho chionn %s", s: "beagan diogan", ss: "%d diogan", m: "mionaid", mm: "%d mionaidean", h: "uair", hh: "%d uairean", d: "latha", dd: "%d latha", M: "m\xecos", MM: "%d m\xecosan", y: "bliadhna", yy: "%d bliadhna" }, dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, ordinal: function ordinal(e) {return e + (1 === e ? "d" : e % 10 == 2 ? "na" : "mh");}, week: { dow: 1, doy: 4 } }), l.defineLocale("gl", { months: "xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"), monthsShort: "xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"), weekdaysShort: "dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"), weekdaysMin: "do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, calendar: { sameDay: function sameDay() {return "[hoxe " + (1 !== this.hours() ? "\xe1s" : "\xe1") + "] LT";}, nextDay: function nextDay() {return "[ma\xf1\xe1 " + (1 !== this.hours() ? "\xe1s" : "\xe1") + "] LT";}, nextWeek: function nextWeek() {return "dddd [" + (1 !== this.hours() ? "\xe1s" : "a") + "] LT";}, lastDay: function lastDay() {return "[onte " + (1 !== this.hours() ? "\xe1" : "a") + "] LT";}, lastWeek: function lastWeek() {return "[o] dddd [pasado " + (1 !== this.hours() ? "\xe1s" : "a") + "] LT";}, sameElse: "L" }, relativeTime: { future: function future(e) {return 0 === e.indexOf("un") ? "n" + e : "en " + e;}, past: "hai %s", s: "uns segundos", ss: "%d segundos", m: "un minuto", mm: "%d minutos", h: "unha hora", hh: "%d horas", d: "un d\xeda", dd: "%d d\xedas", M: "un mes", MM: "%d meses", y: "un ano", yy: "%d anos" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 1, doy: 4 } }), l.defineLocale("gom-latn", { months: "Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"), monthsShort: "Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"), weekdaysShort: "Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"), weekdaysMin: "Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "A h:mm [vazta]", LTS: "A h:mm:ss [vazta]", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY A h:mm [vazta]", LLLL: "dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]", llll: "ddd, D MMM YYYY, A h:mm [vazta]" }, calendar: { sameDay: "[Aiz] LT", nextDay: "[Faleam] LT", nextWeek: "[Ieta to] dddd[,] LT", lastDay: "[Kal] LT", lastWeek: "[Fatlo] dddd[,] LT", sameElse: "L" }, relativeTime: { future: "%s", past: "%s adim", s: Vs, ss: Vs, m: Vs, mm: Vs, h: Vs, hh: Vs, d: Vs, dd: Vs, M: Vs, MM: Vs, y: Vs, yy: Vs }, dayOfMonthOrdinalParse: /\d{1,2}(er)/, ordinal: function ordinal(e, a) {switch (a) {case "D":return e + "er";default:case "M":case "Q":case "DDD":case "d":case "w":case "W":return e;}}, week: { dow: 1, doy: 4 }, meridiemParse: /rati|sokalli|donparam|sanje/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "rati" === a ? e < 4 ? e : e + 12 : "sokalli" === a ? e : "donparam" === a ? 12 < e ? e : e + 12 : "sanje" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "rati" : e < 12 ? "sokalli" : e < 16 ? "donparam" : e < 20 ? "sanje" : "rati";} });var Ks = { 1: "\u0AE7", 2: "\u0AE8", 3: "\u0AE9", 4: "\u0AEA", 5: "\u0AEB", 6: "\u0AEC", 7: "\u0AED", 8: "\u0AEE", 9: "\u0AEF", 0: "\u0AE6" },Zs = { "\u0AE7": "1", "\u0AE8": "2", "\u0AE9": "3", "\u0AEA": "4", "\u0AEB": "5", "\u0AEC": "6", "\u0AED": "7", "\u0AEE": "8", "\u0AEF": "9", "\u0AE6": "0" };l.defineLocale("gu", { months: "\u0A9C\u0ABE\u0AA8\u0ACD\u0AAF\u0AC1\u0A86\u0AB0\u0AC0_\u0AAB\u0AC7\u0AAC\u0ACD\u0AB0\u0AC1\u0A86\u0AB0\u0AC0_\u0AAE\u0ABE\u0AB0\u0ACD\u0A9A_\u0A8F\u0AAA\u0ACD\u0AB0\u0ABF\u0AB2_\u0AAE\u0AC7_\u0A9C\u0AC2\u0AA8_\u0A9C\u0AC1\u0AB2\u0ABE\u0A88_\u0A91\u0A97\u0AB8\u0ACD\u0A9F_\u0AB8\u0AAA\u0ACD\u0A9F\u0AC7\u0AAE\u0ACD\u0AAC\u0AB0_\u0A91\u0A95\u0ACD\u0A9F\u0ACD\u0AAC\u0AB0_\u0AA8\u0AB5\u0AC7\u0AAE\u0ACD\u0AAC\u0AB0_\u0AA1\u0ABF\u0AB8\u0AC7\u0AAE\u0ACD\u0AAC\u0AB0".split("_"), monthsShort: "\u0A9C\u0ABE\u0AA8\u0ACD\u0AAF\u0AC1._\u0AAB\u0AC7\u0AAC\u0ACD\u0AB0\u0AC1._\u0AAE\u0ABE\u0AB0\u0ACD\u0A9A_\u0A8F\u0AAA\u0ACD\u0AB0\u0ABF._\u0AAE\u0AC7_\u0A9C\u0AC2\u0AA8_\u0A9C\u0AC1\u0AB2\u0ABE._\u0A91\u0A97._\u0AB8\u0AAA\u0ACD\u0A9F\u0AC7._\u0A91\u0A95\u0ACD\u0A9F\u0ACD._\u0AA8\u0AB5\u0AC7._\u0AA1\u0ABF\u0AB8\u0AC7.".split("_"), monthsParseExact: !0, weekdays: "\u0AB0\u0AB5\u0ABF\u0AB5\u0ABE\u0AB0_\u0AB8\u0ACB\u0AAE\u0AB5\u0ABE\u0AB0_\u0AAE\u0A82\u0A97\u0AB3\u0AB5\u0ABE\u0AB0_\u0AAC\u0AC1\u0AA7\u0ACD\u0AB5\u0ABE\u0AB0_\u0A97\u0AC1\u0AB0\u0AC1\u0AB5\u0ABE\u0AB0_\u0AB6\u0AC1\u0A95\u0ACD\u0AB0\u0AB5\u0ABE\u0AB0_\u0AB6\u0AA8\u0ABF\u0AB5\u0ABE\u0AB0".split("_"), weekdaysShort: "\u0AB0\u0AB5\u0ABF_\u0AB8\u0ACB\u0AAE_\u0AAE\u0A82\u0A97\u0AB3_\u0AAC\u0AC1\u0AA7\u0ACD_\u0A97\u0AC1\u0AB0\u0AC1_\u0AB6\u0AC1\u0A95\u0ACD\u0AB0_\u0AB6\u0AA8\u0ABF".split("_"), weekdaysMin: "\u0AB0_\u0AB8\u0ACB_\u0AAE\u0A82_\u0AAC\u0AC1_\u0A97\u0AC1_\u0AB6\u0AC1_\u0AB6".split("_"), longDateFormat: { LT: "A h:mm \u0AB5\u0ABE\u0A97\u0ACD\u0AAF\u0AC7", LTS: "A h:mm:ss \u0AB5\u0ABE\u0A97\u0ACD\u0AAF\u0AC7", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm \u0AB5\u0ABE\u0A97\u0ACD\u0AAF\u0AC7", LLLL: "dddd, D MMMM YYYY, A h:mm \u0AB5\u0ABE\u0A97\u0ACD\u0AAF\u0AC7" }, calendar: { sameDay: "[\u0A86\u0A9C] LT", nextDay: "[\u0A95\u0ABE\u0AB2\u0AC7] LT", nextWeek: "dddd, LT", lastDay: "[\u0A97\u0A87\u0A95\u0ABE\u0AB2\u0AC7] LT", lastWeek: "[\u0AAA\u0ABE\u0A9B\u0AB2\u0ABE] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u0AAE\u0ABE", past: "%s \u0AAA\u0AC7\u0AB9\u0AB2\u0ABE", s: "\u0A85\u0AAE\u0AC1\u0A95 \u0AAA\u0AB3\u0ACB", ss: "%d \u0AB8\u0AC7\u0A95\u0A82\u0AA1", m: "\u0A8F\u0A95 \u0AAE\u0ABF\u0AA8\u0ABF\u0A9F", mm: "%d \u0AAE\u0ABF\u0AA8\u0ABF\u0A9F", h: "\u0A8F\u0A95 \u0A95\u0AB2\u0ABE\u0A95", hh: "%d \u0A95\u0AB2\u0ABE\u0A95", d: "\u0A8F\u0A95 \u0AA6\u0ABF\u0AB5\u0AB8", dd: "%d \u0AA6\u0ABF\u0AB5\u0AB8", M: "\u0A8F\u0A95 \u0AAE\u0AB9\u0ABF\u0AA8\u0ACB", MM: "%d \u0AAE\u0AB9\u0ABF\u0AA8\u0ACB", y: "\u0A8F\u0A95 \u0AB5\u0AB0\u0ACD\u0AB7", yy: "%d \u0AB5\u0AB0\u0ACD\u0AB7" }, preparse: function preparse(e) {return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g, function (e) {return Zs[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return Ks[e];});}, meridiemParse: /\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0AB0\u0ABE\u0AA4" === a ? e < 4 ? e : e + 12 : "\u0AB8\u0AB5\u0ABE\u0AB0" === a ? e : "\u0AAC\u0AAA\u0ACB\u0AB0" === a ? 10 <= e ? e : e + 12 : "\u0AB8\u0ABE\u0A82\u0A9C" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0AB0\u0ABE\u0AA4" : e < 10 ? "\u0AB8\u0AB5\u0ABE\u0AB0" : e < 17 ? "\u0AAC\u0AAA\u0ACB\u0AB0" : e < 20 ? "\u0AB8\u0ABE\u0A82\u0A9C" : "\u0AB0\u0ABE\u0AA4";}, week: { dow: 0, doy: 6 } }), l.defineLocale("he", { months: "\u05D9\u05E0\u05D5\u05D0\u05E8_\u05E4\u05D1\u05E8\u05D5\u05D0\u05E8_\u05DE\u05E8\u05E5_\u05D0\u05E4\u05E8\u05D9\u05DC_\u05DE\u05D0\u05D9_\u05D9\u05D5\u05E0\u05D9_\u05D9\u05D5\u05DC\u05D9_\u05D0\u05D5\u05D2\u05D5\u05E1\u05D8_\u05E1\u05E4\u05D8\u05DE\u05D1\u05E8_\u05D0\u05D5\u05E7\u05D8\u05D5\u05D1\u05E8_\u05E0\u05D5\u05D1\u05DE\u05D1\u05E8_\u05D3\u05E6\u05DE\u05D1\u05E8".split("_"), monthsShort: "\u05D9\u05E0\u05D5\u05F3_\u05E4\u05D1\u05E8\u05F3_\u05DE\u05E8\u05E5_\u05D0\u05E4\u05E8\u05F3_\u05DE\u05D0\u05D9_\u05D9\u05D5\u05E0\u05D9_\u05D9\u05D5\u05DC\u05D9_\u05D0\u05D5\u05D2\u05F3_\u05E1\u05E4\u05D8\u05F3_\u05D0\u05D5\u05E7\u05F3_\u05E0\u05D5\u05D1\u05F3_\u05D3\u05E6\u05DE\u05F3".split("_"), weekdays: "\u05E8\u05D0\u05E9\u05D5\u05DF_\u05E9\u05E0\u05D9_\u05E9\u05DC\u05D9\u05E9\u05D9_\u05E8\u05D1\u05D9\u05E2\u05D9_\u05D7\u05DE\u05D9\u05E9\u05D9_\u05E9\u05D9\u05E9\u05D9_\u05E9\u05D1\u05EA".split("_"), weekdaysShort: "\u05D0\u05F3_\u05D1\u05F3_\u05D2\u05F3_\u05D3\u05F3_\u05D4\u05F3_\u05D5\u05F3_\u05E9\u05F3".split("_"), weekdaysMin: "\u05D0_\u05D1_\u05D2_\u05D3_\u05D4_\u05D5_\u05E9".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [\u05D1]MMMM YYYY", LLL: "D [\u05D1]MMMM YYYY HH:mm", LLLL: "dddd, D [\u05D1]MMMM YYYY HH:mm", l: "D/M/YYYY", ll: "D MMM YYYY", lll: "D MMM YYYY HH:mm", llll: "ddd, D MMM YYYY HH:mm" }, calendar: { sameDay: "[\u05D4\u05D9\u05D5\u05DD \u05D1\u05BE]LT", nextDay: "[\u05DE\u05D7\u05E8 \u05D1\u05BE]LT", nextWeek: "dddd [\u05D1\u05E9\u05E2\u05D4] LT", lastDay: "[\u05D0\u05EA\u05DE\u05D5\u05DC \u05D1\u05BE]LT", lastWeek: "[\u05D1\u05D9\u05D5\u05DD] dddd [\u05D4\u05D0\u05D7\u05E8\u05D5\u05DF \u05D1\u05E9\u05E2\u05D4] LT", sameElse: "L" }, relativeTime: { future: "\u05D1\u05E2\u05D5\u05D3 %s", past: "\u05DC\u05E4\u05E0\u05D9 %s", s: "\u05DE\u05E1\u05E4\u05E8 \u05E9\u05E0\u05D9\u05D5\u05EA", ss: "%d \u05E9\u05E0\u05D9\u05D5\u05EA", m: "\u05D3\u05E7\u05D4", mm: "%d \u05D3\u05E7\u05D5\u05EA", h: "\u05E9\u05E2\u05D4", hh: function hh(e) {return 2 === e ? "\u05E9\u05E2\u05EA\u05D9\u05D9\u05DD" : e + " \u05E9\u05E2\u05D5\u05EA";}, d: "\u05D9\u05D5\u05DD", dd: function dd(e) {return 2 === e ? "\u05D9\u05D5\u05DE\u05D9\u05D9\u05DD" : e + " \u05D9\u05DE\u05D9\u05DD";}, M: "\u05D7\u05D5\u05D3\u05E9", MM: function MM(e) {return 2 === e ? "\u05D7\u05D5\u05D3\u05E9\u05D9\u05D9\u05DD" : e + " \u05D7\u05D5\u05D3\u05E9\u05D9\u05DD";}, y: "\u05E9\u05E0\u05D4", yy: function yy(e) {return 2 === e ? "\u05E9\u05E0\u05EA\u05D9\u05D9\u05DD" : e % 10 == 0 && 10 !== e ? e + " \u05E9\u05E0\u05D4" : e + " \u05E9\u05E0\u05D9\u05DD";} }, meridiemParse: /\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i, isPM: function isPM(e) {return /^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e);}, meridiem: function meridiem(e, a, t) {return e < 5 ? "\u05DC\u05E4\u05E0\u05D5\u05EA \u05D1\u05D5\u05E7\u05E8" : e < 10 ? "\u05D1\u05D1\u05D5\u05E7\u05E8" : e < 12 ? t ? "\u05DC\u05E4\u05E0\u05D4\"\u05E6" : "\u05DC\u05E4\u05E0\u05D9 \u05D4\u05E6\u05D4\u05E8\u05D9\u05D9\u05DD" : e < 18 ? t ? "\u05D0\u05D7\u05D4\"\u05E6" : "\u05D0\u05D7\u05E8\u05D9 \u05D4\u05E6\u05D4\u05E8\u05D9\u05D9\u05DD" : "\u05D1\u05E2\u05E8\u05D1";} });var $s = { 1: "\u0967", 2: "\u0968", 3: "\u0969", 4: "\u096A", 5: "\u096B", 6: "\u096C", 7: "\u096D", 8: "\u096E", 9: "\u096F", 0: "\u0966" },Bs = { "\u0967": "1", "\u0968": "2", "\u0969": "3", "\u096A": "4", "\u096B": "5", "\u096C": "6", "\u096D": "7", "\u096E": "8", "\u096F": "9", "\u0966": "0" };function qs(e, a, t) {var s = e + " ";switch (t) {case "ss":return s += 1 === e ? "sekunda" : 2 === e || 3 === e || 4 === e ? "sekunde" : "sekundi";case "m":return a ? "jedna minuta" : "jedne minute";case "mm":return s += 1 === e ? "minuta" : 2 === e || 3 === e || 4 === e ? "minute" : "minuta";case "h":return a ? "jedan sat" : "jednog sata";case "hh":return s += 1 === e ? "sat" : 2 === e || 3 === e || 4 === e ? "sata" : "sati";case "dd":return s += 1 === e ? "dan" : "dana";case "MM":return s += 1 === e ? "mjesec" : 2 === e || 3 === e || 4 === e ? "mjeseca" : "mjeseci";case "yy":return s += 1 === e ? "godina" : 2 === e || 3 === e || 4 === e ? "godine" : "godina";}}l.defineLocale("hi", { months: "\u091C\u0928\u0935\u0930\u0940_\u092B\u093C\u0930\u0935\u0930\u0940_\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u0948\u0932_\u092E\u0908_\u091C\u0942\u0928_\u091C\u0941\u0932\u093E\u0908_\u0905\u0917\u0938\u094D\u0924_\u0938\u093F\u0924\u092E\u094D\u092C\u0930_\u0905\u0915\u094D\u091F\u0942\u092C\u0930_\u0928\u0935\u092E\u094D\u092C\u0930_\u0926\u093F\u0938\u092E\u094D\u092C\u0930".split("_"), monthsShort: "\u091C\u0928._\u092B\u093C\u0930._\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u0948._\u092E\u0908_\u091C\u0942\u0928_\u091C\u0941\u0932._\u0905\u0917._\u0938\u093F\u0924._\u0905\u0915\u094D\u091F\u0942._\u0928\u0935._\u0926\u093F\u0938.".split("_"), monthsParseExact: !0, weekdays: "\u0930\u0935\u093F\u0935\u093E\u0930_\u0938\u094B\u092E\u0935\u093E\u0930_\u092E\u0902\u0917\u0932\u0935\u093E\u0930_\u092C\u0941\u0927\u0935\u093E\u0930_\u0917\u0941\u0930\u0942\u0935\u093E\u0930_\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930_\u0936\u0928\u093F\u0935\u093E\u0930".split("_"), weekdaysShort: "\u0930\u0935\u093F_\u0938\u094B\u092E_\u092E\u0902\u0917\u0932_\u092C\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094D\u0930_\u0936\u0928\u093F".split("_"), weekdaysMin: "\u0930_\u0938\u094B_\u092E\u0902_\u092C\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"), longDateFormat: { LT: "A h:mm \u092C\u091C\u0947", LTS: "A h:mm:ss \u092C\u091C\u0947", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm \u092C\u091C\u0947", LLLL: "dddd, D MMMM YYYY, A h:mm \u092C\u091C\u0947" }, calendar: { sameDay: "[\u0906\u091C] LT", nextDay: "[\u0915\u0932] LT", nextWeek: "dddd, LT", lastDay: "[\u0915\u0932] LT", lastWeek: "[\u092A\u093F\u091B\u0932\u0947] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u092E\u0947\u0902", past: "%s \u092A\u0939\u0932\u0947", s: "\u0915\u0941\u091B \u0939\u0940 \u0915\u094D\u0937\u0923", ss: "%d \u0938\u0947\u0915\u0902\u0921", m: "\u090F\u0915 \u092E\u093F\u0928\u091F", mm: "%d \u092E\u093F\u0928\u091F", h: "\u090F\u0915 \u0918\u0902\u091F\u093E", hh: "%d \u0918\u0902\u091F\u0947", d: "\u090F\u0915 \u0926\u093F\u0928", dd: "%d \u0926\u093F\u0928", M: "\u090F\u0915 \u092E\u0939\u0940\u0928\u0947", MM: "%d \u092E\u0939\u0940\u0928\u0947", y: "\u090F\u0915 \u0935\u0930\u094D\u0937", yy: "%d \u0935\u0930\u094D\u0937" }, preparse: function preparse(e) {return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g, function (e) {return Bs[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return $s[e];});}, meridiemParse: /\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0930\u093E\u0924" === a ? e < 4 ? e : e + 12 : "\u0938\u0941\u092C\u0939" === a ? e : "\u0926\u094B\u092A\u0939\u0930" === a ? 10 <= e ? e : e + 12 : "\u0936\u093E\u092E" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0930\u093E\u0924" : e < 10 ? "\u0938\u0941\u092C\u0939" : e < 17 ? "\u0926\u094B\u092A\u0939\u0930" : e < 20 ? "\u0936\u093E\u092E" : "\u0930\u093E\u0924";}, week: { dow: 0, doy: 6 } }), l.defineLocale("hr", { months: { format: "sije\u010Dnja_velja\u010De_o\u017Eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"), standalone: "sije\u010Danj_velja\u010Da_o\u017Eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_") }, monthsShort: "sij._velj._o\u017Eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"), monthsParseExact: !0, weekdays: "nedjelja_ponedjeljak_utorak_srijeda_\u010Detvrtak_petak_subota".split("_"), weekdaysShort: "ned._pon._uto._sri._\u010Det._pet._sub.".split("_"), weekdaysMin: "ne_po_ut_sr_\u010De_pe_su".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danas u] LT", nextDay: "[sutra u] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[u] [nedjelju] [u] LT";case 3:return "[u] [srijedu] [u] LT";case 6:return "[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return "[u] dddd [u] LT";}}, lastDay: "[ju\u010Der u] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:case 3:return "[pro\u0161lu] dddd [u] LT";case 6:return "[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return "[pro\u0161li] dddd [u] LT";}}, sameElse: "L" }, relativeTime: { future: "za %s", past: "prije %s", s: "par sekundi", ss: qs, m: qs, mm: qs, h: qs, hh: qs, d: "dan", dd: qs, M: "mjesec", MM: qs, y: "godinu", yy: qs }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } });var Qs = "vas\xE1rnap h\xE9tf\u0151n kedden szerd\xE1n cs\xFCt\xF6rt\xF6k\xF6n p\xE9nteken szombaton".split(" ");function Xs(e, a, t, s) {var n = e;switch (t) {case "s":return s || a ? "n\xe9h\xe1ny m\xe1sodperc" : "n\xe9h\xe1ny m\xe1sodperce";case "ss":return n + (s || a) ? " m\xe1sodperc" : " m\xe1sodperce";case "m":return "egy" + (s || a ? " perc" : " perce");case "mm":return n + (s || a ? " perc" : " perce");case "h":return "egy" + (s || a ? " \xf3ra" : " \xf3r\xe1ja");case "hh":return n + (s || a ? " \xf3ra" : " \xf3r\xe1ja");case "d":return "egy" + (s || a ? " nap" : " napja");case "dd":return n + (s || a ? " nap" : " napja");case "M":return "egy" + (s || a ? " h\xf3nap" : " h\xf3napja");case "MM":return n + (s || a ? " h\xf3nap" : " h\xf3napja");case "y":return "egy" + (s || a ? " \xe9v" : " \xe9ve");case "yy":return n + (s || a ? " \xe9v" : " \xe9ve");}return "";}function en(e) {return (e ? "" : "[m\xfalt] ") + "[" + Qs[this.day()] + "] LT[-kor]";}function an(e) {return e % 100 == 11 || e % 10 != 1;}function tn(e, a, t, s) {var n = e + " ";switch (t) {case "s":return a || s ? "nokkrar sek\xfandur" : "nokkrum sek\xfandum";case "ss":return an(e) ? n + (a || s ? "sek\xfandur" : "sek\xfandum") : n + "sek\xfanda";case "m":return a ? "m\xedn\xfata" : "m\xedn\xfatu";case "mm":return an(e) ? n + (a || s ? "m\xedn\xfatur" : "m\xedn\xfatum") : a ? n + "m\xedn\xfata" : n + "m\xedn\xfatu";case "hh":return an(e) ? n + (a || s ? "klukkustundir" : "klukkustundum") : n + "klukkustund";case "d":return a ? "dagur" : s ? "dag" : "degi";case "dd":return an(e) ? a ? n + "dagar" : n + (s ? "daga" : "d\xf6gum") : a ? n + "dagur" : n + (s ? "dag" : "degi");case "M":return a ? "m\xe1nu\xf0ur" : s ? "m\xe1nu\xf0" : "m\xe1nu\xf0i";case "MM":return an(e) ? a ? n + "m\xe1nu\xf0ir" : n + (s ? "m\xe1nu\xf0i" : "m\xe1nu\xf0um") : a ? n + "m\xe1nu\xf0ur" : n + (s ? "m\xe1nu\xf0" : "m\xe1nu\xf0i");case "y":return a || s ? "\xe1r" : "\xe1ri";case "yy":return an(e) ? n + (a || s ? "\xe1r" : "\xe1rum") : n + (a || s ? "\xe1r" : "\xe1ri");}}l.defineLocale("hu", { months: "janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"), monthsShort: "jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"), weekdays: "vas\xE1rnap_h\xE9tf\u0151_kedd_szerda_cs\xFCt\xF6rt\xF6k_p\xE9ntek_szombat".split("_"), weekdaysShort: "vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"), weekdaysMin: "v_h_k_sze_cs_p_szo".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "YYYY.MM.DD.", LL: "YYYY. MMMM D.", LLL: "YYYY. MMMM D. H:mm", LLLL: "YYYY. MMMM D., dddd H:mm" }, meridiemParse: /de|du/i, isPM: function isPM(e) {return "u" === e.charAt(1).toLowerCase();}, meridiem: function meridiem(e, a, t) {return e < 12 ? !0 === t ? "de" : "DE" : !0 === t ? "du" : "DU";}, calendar: { sameDay: "[ma] LT[-kor]", nextDay: "[holnap] LT[-kor]", nextWeek: function nextWeek() {return en.call(this, !0);}, lastDay: "[tegnap] LT[-kor]", lastWeek: function lastWeek() {return en.call(this, !1);}, sameElse: "L" }, relativeTime: { future: "%s m\xfalva", past: "%s", s: Xs, ss: Xs, m: Xs, mm: Xs, h: Xs, hh: Xs, d: Xs, dd: Xs, M: Xs, MM: Xs, y: Xs, yy: Xs }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("hy-am", { months: { format: "\u0570\u0578\u0582\u0576\u057E\u0561\u0580\u056B_\u0583\u0565\u057F\u0580\u057E\u0561\u0580\u056B_\u0574\u0561\u0580\u057F\u056B_\u0561\u057A\u0580\u056B\u056C\u056B_\u0574\u0561\u0575\u056B\u057D\u056B_\u0570\u0578\u0582\u0576\u056B\u057D\u056B_\u0570\u0578\u0582\u056C\u056B\u057D\u056B_\u0585\u0563\u0578\u057D\u057F\u0578\u057D\u056B_\u057D\u0565\u057A\u057F\u0565\u0574\u0562\u0565\u0580\u056B_\u0570\u0578\u056F\u057F\u0565\u0574\u0562\u0565\u0580\u056B_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056B_\u0564\u0565\u056F\u057F\u0565\u0574\u0562\u0565\u0580\u056B".split("_"), standalone: "\u0570\u0578\u0582\u0576\u057E\u0561\u0580_\u0583\u0565\u057F\u0580\u057E\u0561\u0580_\u0574\u0561\u0580\u057F_\u0561\u057A\u0580\u056B\u056C_\u0574\u0561\u0575\u056B\u057D_\u0570\u0578\u0582\u0576\u056B\u057D_\u0570\u0578\u0582\u056C\u056B\u057D_\u0585\u0563\u0578\u057D\u057F\u0578\u057D_\u057D\u0565\u057A\u057F\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056F\u057F\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056F\u057F\u0565\u0574\u0562\u0565\u0580".split("_") }, monthsShort: "\u0570\u0576\u057E_\u0583\u057F\u0580_\u0574\u0580\u057F_\u0561\u057A\u0580_\u0574\u0575\u057D_\u0570\u0576\u057D_\u0570\u056C\u057D_\u0585\u0563\u057D_\u057D\u057A\u057F_\u0570\u056F\u057F_\u0576\u0574\u0562_\u0564\u056F\u057F".split("_"), weekdays: "\u056F\u056B\u0580\u0561\u056F\u056B_\u0565\u0580\u056F\u0578\u0582\u0577\u0561\u0562\u0569\u056B_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056B_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056B_\u0570\u056B\u0576\u0563\u0577\u0561\u0562\u0569\u056B_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"), weekdaysShort: "\u056F\u0580\u056F_\u0565\u0580\u056F_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"), weekdaysMin: "\u056F\u0580\u056F_\u0565\u0580\u056F_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY \u0569.", LLL: "D MMMM YYYY \u0569., HH:mm", LLLL: "dddd, D MMMM YYYY \u0569., HH:mm" }, calendar: { sameDay: "[\u0561\u0575\u057D\u0585\u0580] LT", nextDay: "[\u057E\u0561\u0572\u0568] LT", lastDay: "[\u0565\u0580\u0565\u056F] LT", nextWeek: function nextWeek() {return "dddd [\u0585\u0580\u0568 \u056A\u0561\u0574\u0568] LT";}, lastWeek: function lastWeek() {return "[\u0561\u0576\u0581\u0561\u056E] dddd [\u0585\u0580\u0568 \u056A\u0561\u0574\u0568] LT";}, sameElse: "L" }, relativeTime: { future: "%s \u0570\u0565\u057F\u0578", past: "%s \u0561\u057C\u0561\u057B", s: "\u0574\u056B \u0584\u0561\u0576\u056B \u057E\u0561\u0575\u0580\u056F\u0575\u0561\u0576", ss: "%d \u057E\u0561\u0575\u0580\u056F\u0575\u0561\u0576", m: "\u0580\u0578\u057A\u0565", mm: "%d \u0580\u0578\u057A\u0565", h: "\u056A\u0561\u0574", hh: "%d \u056A\u0561\u0574", d: "\u0585\u0580", dd: "%d \u0585\u0580", M: "\u0561\u0574\u056B\u057D", MM: "%d \u0561\u0574\u056B\u057D", y: "\u057F\u0561\u0580\u056B", yy: "%d \u057F\u0561\u0580\u056B" }, meridiemParse: /\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/, isPM: function isPM(e) {return /^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e);}, meridiem: function meridiem(e) {return e < 4 ? "\u0563\u056B\u0577\u0565\u0580\u057E\u0561" : e < 12 ? "\u0561\u057C\u0561\u057E\u0578\u057F\u057E\u0561" : e < 17 ? "\u0581\u0565\u0580\u0565\u056F\u057E\u0561" : "\u0565\u0580\u0565\u056F\u0578\u0575\u0561\u0576";}, dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/, ordinal: function ordinal(e, a) {switch (a) {case "DDD":case "w":case "W":case "DDDo":return 1 === e ? e + "-\u056B\u0576" : e + "-\u0580\u0564";default:return e;}}, week: { dow: 1, doy: 7 } }), l.defineLocale("id", { months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"), monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"), weekdays: "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"), weekdaysShort: "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"), weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, meridiemParse: /pagi|siang|sore|malam/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "pagi" === a ? e : "siang" === a ? 11 <= e ? e : e + 12 : "sore" === a || "malam" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 11 ? "pagi" : e < 15 ? "siang" : e < 19 ? "sore" : "malam";}, calendar: { sameDay: "[Hari ini pukul] LT", nextDay: "[Besok pukul] LT", nextWeek: "dddd [pukul] LT", lastDay: "[Kemarin pukul] LT", lastWeek: "dddd [lalu pukul] LT", sameElse: "L" }, relativeTime: { future: "dalam %s", past: "%s yang lalu", s: "beberapa detik", ss: "%d detik", m: "semenit", mm: "%d menit", h: "sejam", hh: "%d jam", d: "sehari", dd: "%d hari", M: "sebulan", MM: "%d bulan", y: "setahun", yy: "%d tahun" }, week: { dow: 1, doy: 7 } }), l.defineLocale("is", { months: "jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"), monthsShort: "jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"), weekdays: "sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"), weekdaysShort: "sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"), weekdaysMin: "Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY [kl.] H:mm", LLLL: "dddd, D. MMMM YYYY [kl.] H:mm" }, calendar: { sameDay: "[\xed dag kl.] LT", nextDay: "[\xe1 morgun kl.] LT", nextWeek: "dddd [kl.] LT", lastDay: "[\xed g\xe6r kl.] LT", lastWeek: "[s\xed\xf0asta] dddd [kl.] LT", sameElse: "L" }, relativeTime: { future: "eftir %s", past: "fyrir %s s\xed\xf0an", s: tn, ss: tn, m: tn, mm: tn, h: "klukkustund", hh: tn, d: tn, dd: tn, M: tn, MM: tn, y: tn, yy: tn }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("it-ch", { months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), weekdays: "domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Oggi alle] LT", nextDay: "[Domani alle] LT", nextWeek: "dddd [alle] LT", lastDay: "[Ieri alle] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:return "[la scorsa] dddd [alle] LT";default:return "[lo scorso] dddd [alle] LT";}}, sameElse: "L" }, relativeTime: { future: function future(e) {return (/^[0-9].+$/.test(e) ? "tra" : "in") + " " + e;}, past: "%s fa", s: "alcuni secondi", ss: "%d secondi", m: "un minuto", mm: "%d minuti", h: "un'ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 1, doy: 4 } }), l.defineLocale("it", { months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), weekdays: "domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Oggi alle] LT", nextDay: "[Domani alle] LT", nextWeek: "dddd [alle] LT", lastDay: "[Ieri alle] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:return "[la scorsa] dddd [alle] LT";default:return "[lo scorso] dddd [alle] LT";}}, sameElse: "L" }, relativeTime: { future: function future(e) {return (/^[0-9].+$/.test(e) ? "tra" : "in") + " " + e;}, past: "%s fa", s: "alcuni secondi", ss: "%d secondi", m: "un minuto", mm: "%d minuti", h: "un'ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 1, doy: 4 } }), l.defineLocale("ja", { months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), weekdays: "\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"), weekdaysShort: "\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"), weekdaysMin: "\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5 HH:mm", LLLL: "YYYY\u5E74M\u6708D\u65E5 dddd HH:mm", l: "YYYY/MM/DD", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm" }, meridiemParse: /\u5348\u524d|\u5348\u5f8c/i, isPM: function isPM(e) {return "\u5348\u5F8C" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u5348\u524D" : "\u5348\u5F8C";}, calendar: { sameDay: "[\u4ECA\u65E5] LT", nextDay: "[\u660E\u65E5] LT", nextWeek: function nextWeek(e) {return e.week() < this.week() ? "[\u6765\u9031]dddd LT" : "dddd LT";}, lastDay: "[\u6628\u65E5] LT", lastWeek: function lastWeek(e) {return this.week() < e.week() ? "[\u5148\u9031]dddd LT" : "dddd LT";}, sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}\u65e5/, ordinal: function ordinal(e, a) {switch (a) {case "d":case "D":case "DDD":return e + "\u65E5";default:return e;}}, relativeTime: { future: "%s\u5F8C", past: "%s\u524D", s: "\u6570\u79D2", ss: "%d\u79D2", m: "1\u5206", mm: "%d\u5206", h: "1\u6642\u9593", hh: "%d\u6642\u9593", d: "1\u65E5", dd: "%d\u65E5", M: "1\u30F6\u6708", MM: "%d\u30F6\u6708", y: "1\u5E74", yy: "%d\u5E74" } }), l.defineLocale("jv", { months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"), monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"), weekdays: "Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"), weekdaysShort: "Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"), weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, meridiemParse: /enjing|siyang|sonten|ndalu/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "enjing" === a ? e : "siyang" === a ? 11 <= e ? e : e + 12 : "sonten" === a || "ndalu" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 11 ? "enjing" : e < 15 ? "siyang" : e < 19 ? "sonten" : "ndalu";}, calendar: { sameDay: "[Dinten puniko pukul] LT", nextDay: "[Mbenjang pukul] LT", nextWeek: "dddd [pukul] LT", lastDay: "[Kala wingi pukul] LT", lastWeek: "dddd [kepengker pukul] LT", sameElse: "L" }, relativeTime: { future: "wonten ing %s", past: "%s ingkang kepengker", s: "sawetawis detik", ss: "%d detik", m: "setunggal menit", mm: "%d menit", h: "setunggal jam", hh: "%d jam", d: "sedinten", dd: "%d dinten", M: "sewulan", MM: "%d wulan", y: "setaun", yy: "%d taun" }, week: { dow: 1, doy: 7 } }), l.defineLocale("ka", { months: { standalone: "\u10D8\u10D0\u10DC\u10D5\u10D0\u10E0\u10D8_\u10D7\u10D4\u10D1\u10D4\u10E0\u10D5\u10D0\u10DA\u10D8_\u10DB\u10D0\u10E0\u10E2\u10D8_\u10D0\u10DE\u10E0\u10D8\u10DA\u10D8_\u10DB\u10D0\u10D8\u10E1\u10D8_\u10D8\u10D5\u10DC\u10D8\u10E1\u10D8_\u10D8\u10D5\u10DA\u10D8\u10E1\u10D8_\u10D0\u10D2\u10D5\u10D8\u10E1\u10E2\u10DD_\u10E1\u10D4\u10E5\u10E2\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8_\u10DD\u10E5\u10E2\u10DD\u10DB\u10D1\u10D4\u10E0\u10D8_\u10DC\u10DD\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8_\u10D3\u10D4\u10D9\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8".split("_"), format: "\u10D8\u10D0\u10DC\u10D5\u10D0\u10E0\u10E1_\u10D7\u10D4\u10D1\u10D4\u10E0\u10D5\u10D0\u10DA\u10E1_\u10DB\u10D0\u10E0\u10E2\u10E1_\u10D0\u10DE\u10E0\u10D8\u10DA\u10D8\u10E1_\u10DB\u10D0\u10D8\u10E1\u10E1_\u10D8\u10D5\u10DC\u10D8\u10E1\u10E1_\u10D8\u10D5\u10DA\u10D8\u10E1\u10E1_\u10D0\u10D2\u10D5\u10D8\u10E1\u10E2\u10E1_\u10E1\u10D4\u10E5\u10E2\u10D4\u10DB\u10D1\u10D4\u10E0\u10E1_\u10DD\u10E5\u10E2\u10DD\u10DB\u10D1\u10D4\u10E0\u10E1_\u10DC\u10DD\u10D4\u10DB\u10D1\u10D4\u10E0\u10E1_\u10D3\u10D4\u10D9\u10D4\u10DB\u10D1\u10D4\u10E0\u10E1".split("_") }, monthsShort: "\u10D8\u10D0\u10DC_\u10D7\u10D4\u10D1_\u10DB\u10D0\u10E0_\u10D0\u10DE\u10E0_\u10DB\u10D0\u10D8_\u10D8\u10D5\u10DC_\u10D8\u10D5\u10DA_\u10D0\u10D2\u10D5_\u10E1\u10D4\u10E5_\u10DD\u10E5\u10E2_\u10DC\u10DD\u10D4_\u10D3\u10D4\u10D9".split("_"), weekdays: { standalone: "\u10D9\u10D5\u10D8\u10E0\u10D0_\u10DD\u10E0\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8_\u10E1\u10D0\u10DB\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8_\u10DD\u10D7\u10EE\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8_\u10EE\u10E3\u10D7\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8_\u10DE\u10D0\u10E0\u10D0\u10E1\u10D9\u10D4\u10D5\u10D8_\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8".split("_"), format: "\u10D9\u10D5\u10D8\u10E0\u10D0\u10E1_\u10DD\u10E0\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1_\u10E1\u10D0\u10DB\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1_\u10DD\u10D7\u10EE\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1_\u10EE\u10E3\u10D7\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1_\u10DE\u10D0\u10E0\u10D0\u10E1\u10D9\u10D4\u10D5\u10E1_\u10E8\u10D0\u10D1\u10D0\u10D7\u10E1".split("_"), isFormat: /(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/ }, weekdaysShort: "\u10D9\u10D5\u10D8_\u10DD\u10E0\u10E8_\u10E1\u10D0\u10DB_\u10DD\u10D7\u10EE_\u10EE\u10E3\u10D7_\u10DE\u10D0\u10E0_\u10E8\u10D0\u10D1".split("_"), weekdaysMin: "\u10D9\u10D5_\u10DD\u10E0_\u10E1\u10D0_\u10DD\u10D7_\u10EE\u10E3_\u10DE\u10D0_\u10E8\u10D0".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[\u10D3\u10E6\u10D4\u10E1] LT[-\u10D6\u10D4]", nextDay: "[\u10EE\u10D5\u10D0\u10DA] LT[-\u10D6\u10D4]", lastDay: "[\u10D2\u10E3\u10E8\u10D8\u10DC] LT[-\u10D6\u10D4]", nextWeek: "[\u10E8\u10D4\u10DB\u10D3\u10D4\u10D2] dddd LT[-\u10D6\u10D4]", lastWeek: "[\u10EC\u10D8\u10DC\u10D0] dddd LT-\u10D6\u10D4", sameElse: "L" }, relativeTime: { future: function future(e) {return /(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e) ? e.replace(/\u10d8$/, "\u10E8\u10D8") : e + "\u10E8\u10D8";}, past: function past(e) {return /(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e) ? e.replace(/(\u10d8|\u10d4)$/, "\u10D8\u10E1 \u10EC\u10D8\u10DC") : /\u10ec\u10d4\u10da\u10d8/.test(e) ? e.replace(/\u10ec\u10d4\u10da\u10d8$/, "\u10EC\u10DA\u10D8\u10E1 \u10EC\u10D8\u10DC") : void 0;}, s: "\u10E0\u10D0\u10DB\u10D3\u10D4\u10DC\u10D8\u10DB\u10D4 \u10EC\u10D0\u10DB\u10D8", ss: "%d \u10EC\u10D0\u10DB\u10D8", m: "\u10EC\u10E3\u10D7\u10D8", mm: "%d \u10EC\u10E3\u10D7\u10D8", h: "\u10E1\u10D0\u10D0\u10D7\u10D8", hh: "%d \u10E1\u10D0\u10D0\u10D7\u10D8", d: "\u10D3\u10E6\u10D4", dd: "%d \u10D3\u10E6\u10D4", M: "\u10D7\u10D5\u10D4", MM: "%d \u10D7\u10D5\u10D4", y: "\u10EC\u10D4\u10DA\u10D8", yy: "%d \u10EC\u10D4\u10DA\u10D8" }, dayOfMonthOrdinalParse: /0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/, ordinal: function ordinal(e) {return 0 === e ? e : 1 === e ? e + "-\u10DA\u10D8" : e < 20 || e <= 100 && e % 20 == 0 || e % 100 == 0 ? "\u10DB\u10D4-" + e : e + "-\u10D4";}, week: { dow: 1, doy: 7 } });var sn = { 0: "-\u0448\u0456", 1: "-\u0448\u0456", 2: "-\u0448\u0456", 3: "-\u0448\u0456", 4: "-\u0448\u0456", 5: "-\u0448\u0456", 6: "-\u0448\u044B", 7: "-\u0448\u0456", 8: "-\u0448\u0456", 9: "-\u0448\u044B", 10: "-\u0448\u044B", 20: "-\u0448\u044B", 30: "-\u0448\u044B", 40: "-\u0448\u044B", 50: "-\u0448\u0456", 60: "-\u0448\u044B", 70: "-\u0448\u0456", 80: "-\u0448\u0456", 90: "-\u0448\u044B", 100: "-\u0448\u0456" };l.defineLocale("kk", { months: "\u049B\u0430\u04A3\u0442\u0430\u0440_\u0430\u049B\u043F\u0430\u043D_\u043D\u0430\u0443\u0440\u044B\u0437_\u0441\u04D9\u0443\u0456\u0440_\u043C\u0430\u043C\u044B\u0440_\u043C\u0430\u0443\u0441\u044B\u043C_\u0448\u0456\u043B\u0434\u0435_\u0442\u0430\u043C\u044B\u0437_\u049B\u044B\u0440\u043A\u04AF\u0439\u0435\u043A_\u049B\u0430\u0437\u0430\u043D_\u049B\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043B\u0442\u043E\u049B\u0441\u0430\u043D".split("_"), monthsShort: "\u049B\u0430\u04A3_\u0430\u049B\u043F_\u043D\u0430\u0443_\u0441\u04D9\u0443_\u043C\u0430\u043C_\u043C\u0430\u0443_\u0448\u0456\u043B_\u0442\u0430\u043C_\u049B\u044B\u0440_\u049B\u0430\u0437_\u049B\u0430\u0440_\u0436\u0435\u043B".split("_"), weekdays: "\u0436\u0435\u043A\u0441\u0435\u043D\u0431\u0456_\u0434\u04AF\u0439\u0441\u0435\u043D\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043D\u0431\u0456_\u0441\u04D9\u0440\u0441\u0435\u043D\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043D\u0431\u0456_\u0436\u04B1\u043C\u0430_\u0441\u0435\u043D\u0431\u0456".split("_"), weekdaysShort: "\u0436\u0435\u043A_\u0434\u04AF\u0439_\u0441\u0435\u0439_\u0441\u04D9\u0440_\u0431\u0435\u0439_\u0436\u04B1\u043C_\u0441\u0435\u043D".split("_"), weekdaysMin: "\u0436\u043A_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043C_\u0441\u043D".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u0411\u04AF\u0433\u0456\u043D \u0441\u0430\u0493\u0430\u0442] LT", nextDay: "[\u0415\u0440\u0442\u0435\u04A3 \u0441\u0430\u0493\u0430\u0442] LT", nextWeek: "dddd [\u0441\u0430\u0493\u0430\u0442] LT", lastDay: "[\u041A\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT", lastWeek: "[\u04E8\u0442\u043A\u0435\u043D \u0430\u043F\u0442\u0430\u043D\u044B\u04A3] dddd [\u0441\u0430\u0493\u0430\u0442] LT", sameElse: "L" }, relativeTime: { future: "%s \u0456\u0448\u0456\u043D\u0434\u0435", past: "%s \u0431\u04B1\u0440\u044B\u043D", s: "\u0431\u0456\u0440\u043D\u0435\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434", ss: "%d \u0441\u0435\u043A\u0443\u043D\u0434", m: "\u0431\u0456\u0440 \u043C\u0438\u043D\u0443\u0442", mm: "%d \u043C\u0438\u043D\u0443\u0442", h: "\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442", hh: "%d \u0441\u0430\u0493\u0430\u0442", d: "\u0431\u0456\u0440 \u043A\u04AF\u043D", dd: "%d \u043A\u04AF\u043D", M: "\u0431\u0456\u0440 \u0430\u0439", MM: "%d \u0430\u0439", y: "\u0431\u0456\u0440 \u0436\u044B\u043B", yy: "%d \u0436\u044B\u043B" }, dayOfMonthOrdinalParse: /\d{1,2}-(\u0448\u0456|\u0448\u044b)/, ordinal: function ordinal(e) {return e + (sn[e] || sn[e % 10] || sn[100 <= e ? 100 : null]);}, week: { dow: 1, doy: 7 } });var nn = { 1: "\u17E1", 2: "\u17E2", 3: "\u17E3", 4: "\u17E4", 5: "\u17E5", 6: "\u17E6", 7: "\u17E7", 8: "\u17E8", 9: "\u17E9", 0: "\u17E0" },dn = { "\u17E1": "1", "\u17E2": "2", "\u17E3": "3", "\u17E4": "4", "\u17E5": "5", "\u17E6": "6", "\u17E7": "7", "\u17E8": "8", "\u17E9": "9", "\u17E0": "0" };l.defineLocale("km", { months: "\u1798\u1780\u179A\u17B6_\u1780\u17BB\u1798\u17D2\u1797\u17C8_\u1798\u17B8\u1793\u17B6_\u1798\u17C1\u179F\u17B6_\u17A7\u179F\u1797\u17B6_\u1798\u17B7\u1790\u17BB\u1793\u17B6_\u1780\u1780\u17D2\u1780\u178A\u17B6_\u179F\u17B8\u17A0\u17B6_\u1780\u1789\u17D2\u1789\u17B6_\u178F\u17BB\u179B\u17B6_\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6_\u1792\u17D2\u1793\u17BC".split("_"), monthsShort: "\u1798\u1780\u179A\u17B6_\u1780\u17BB\u1798\u17D2\u1797\u17C8_\u1798\u17B8\u1793\u17B6_\u1798\u17C1\u179F\u17B6_\u17A7\u179F\u1797\u17B6_\u1798\u17B7\u1790\u17BB\u1793\u17B6_\u1780\u1780\u17D2\u1780\u178A\u17B6_\u179F\u17B8\u17A0\u17B6_\u1780\u1789\u17D2\u1789\u17B6_\u178F\u17BB\u179B\u17B6_\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6_\u1792\u17D2\u1793\u17BC".split("_"), weekdays: "\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799_\u1785\u17D0\u1793\u17D2\u1791_\u17A2\u1784\u17D2\u1782\u17B6\u179A_\u1796\u17BB\u1792_\u1796\u17D2\u179A\u17A0\u179F\u17D2\u1794\u178F\u17B7\u17CD_\u179F\u17BB\u1780\u17D2\u179A_\u179F\u17C5\u179A\u17CD".split("_"), weekdaysShort: "\u17A2\u17B6_\u1785_\u17A2_\u1796_\u1796\u17D2\u179A_\u179F\u17BB_\u179F".split("_"), weekdaysMin: "\u17A2\u17B6_\u1785_\u17A2_\u1796_\u1796\u17D2\u179A_\u179F\u17BB_\u179F".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, meridiemParse: /\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/, isPM: function isPM(e) {return "\u179B\u17D2\u1784\u17B6\u1785" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u1796\u17D2\u179A\u17B9\u1780" : "\u179B\u17D2\u1784\u17B6\u1785";}, calendar: { sameDay: "[\u1790\u17D2\u1784\u17C3\u1793\u17C1\u17C7 \u1798\u17C9\u17C4\u1784] LT", nextDay: "[\u179F\u17D2\u17A2\u17C2\u1780 \u1798\u17C9\u17C4\u1784] LT", nextWeek: "dddd [\u1798\u17C9\u17C4\u1784] LT", lastDay: "[\u1798\u17D2\u179F\u17B7\u179B\u1798\u17B7\u1789 \u1798\u17C9\u17C4\u1784] LT", lastWeek: "dddd [\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD\u1798\u17BB\u1793] [\u1798\u17C9\u17C4\u1784] LT", sameElse: "L" }, relativeTime: { future: "%s\u1791\u17C0\u178F", past: "%s\u1798\u17BB\u1793", s: "\u1794\u17C9\u17BB\u1793\u17D2\u1798\u17B6\u1793\u179C\u17B7\u1793\u17B6\u1791\u17B8", ss: "%d \u179C\u17B7\u1793\u17B6\u1791\u17B8", m: "\u1798\u17BD\u1799\u1793\u17B6\u1791\u17B8", mm: "%d \u1793\u17B6\u1791\u17B8", h: "\u1798\u17BD\u1799\u1798\u17C9\u17C4\u1784", hh: "%d \u1798\u17C9\u17C4\u1784", d: "\u1798\u17BD\u1799\u1790\u17D2\u1784\u17C3", dd: "%d \u1790\u17D2\u1784\u17C3", M: "\u1798\u17BD\u1799\u1781\u17C2", MM: "%d \u1781\u17C2", y: "\u1798\u17BD\u1799\u1786\u17D2\u1793\u17B6\u17C6", yy: "%d \u1786\u17D2\u1793\u17B6\u17C6" }, dayOfMonthOrdinalParse: /\u1791\u17b8\d{1,2}/, ordinal: "\u1791\u17B8%d", preparse: function preparse(e) {return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g, function (e) {return dn[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return nn[e];});}, week: { dow: 1, doy: 4 } });var rn = { 1: "\u0CE7", 2: "\u0CE8", 3: "\u0CE9", 4: "\u0CEA", 5: "\u0CEB", 6: "\u0CEC", 7: "\u0CED", 8: "\u0CEE", 9: "\u0CEF", 0: "\u0CE6" },_n = { "\u0CE7": "1", "\u0CE8": "2", "\u0CE9": "3", "\u0CEA": "4", "\u0CEB": "5", "\u0CEC": "6", "\u0CED": "7", "\u0CEE": "8", "\u0CEF": "9", "\u0CE6": "0" };l.defineLocale("kn", { months: "\u0C9C\u0CA8\u0CB5\u0CB0\u0CBF_\u0CAB\u0CC6\u0CAC\u0CCD\u0CB0\u0CB5\u0CB0\u0CBF_\u0CAE\u0CBE\u0CB0\u0CCD\u0C9A\u0CCD_\u0C8F\u0CAA\u0CCD\u0CB0\u0CBF\u0CB2\u0CCD_\u0CAE\u0CC6\u0CD5_\u0C9C\u0CC2\u0CA8\u0CCD_\u0C9C\u0CC1\u0CB2\u0CC6\u0CD6_\u0C86\u0C97\u0CB8\u0CCD\u0C9F\u0CCD_\u0CB8\u0CC6\u0CAA\u0CCD\u0C9F\u0CC6\u0C82\u0CAC\u0CB0\u0CCD_\u0C85\u0C95\u0CCD\u0C9F\u0CC6\u0CC2\u0CD5\u0CAC\u0CB0\u0CCD_\u0CA8\u0CB5\u0CC6\u0C82\u0CAC\u0CB0\u0CCD_\u0CA1\u0CBF\u0CB8\u0CC6\u0C82\u0CAC\u0CB0\u0CCD".split("_"), monthsShort: "\u0C9C\u0CA8_\u0CAB\u0CC6\u0CAC\u0CCD\u0CB0_\u0CAE\u0CBE\u0CB0\u0CCD\u0C9A\u0CCD_\u0C8F\u0CAA\u0CCD\u0CB0\u0CBF\u0CB2\u0CCD_\u0CAE\u0CC6\u0CD5_\u0C9C\u0CC2\u0CA8\u0CCD_\u0C9C\u0CC1\u0CB2\u0CC6\u0CD6_\u0C86\u0C97\u0CB8\u0CCD\u0C9F\u0CCD_\u0CB8\u0CC6\u0CAA\u0CCD\u0C9F\u0CC6\u0C82_\u0C85\u0C95\u0CCD\u0C9F\u0CC6\u0CC2\u0CD5_\u0CA8\u0CB5\u0CC6\u0C82_\u0CA1\u0CBF\u0CB8\u0CC6\u0C82".split("_"), monthsParseExact: !0, weekdays: "\u0CAD\u0CBE\u0CA8\u0CC1\u0CB5\u0CBE\u0CB0_\u0CB8\u0CC6\u0CC2\u0CD5\u0CAE\u0CB5\u0CBE\u0CB0_\u0CAE\u0C82\u0C97\u0CB3\u0CB5\u0CBE\u0CB0_\u0CAC\u0CC1\u0CA7\u0CB5\u0CBE\u0CB0_\u0C97\u0CC1\u0CB0\u0CC1\u0CB5\u0CBE\u0CB0_\u0CB6\u0CC1\u0C95\u0CCD\u0CB0\u0CB5\u0CBE\u0CB0_\u0CB6\u0CA8\u0CBF\u0CB5\u0CBE\u0CB0".split("_"), weekdaysShort: "\u0CAD\u0CBE\u0CA8\u0CC1_\u0CB8\u0CC6\u0CC2\u0CD5\u0CAE_\u0CAE\u0C82\u0C97\u0CB3_\u0CAC\u0CC1\u0CA7_\u0C97\u0CC1\u0CB0\u0CC1_\u0CB6\u0CC1\u0C95\u0CCD\u0CB0_\u0CB6\u0CA8\u0CBF".split("_"), weekdaysMin: "\u0CAD\u0CBE_\u0CB8\u0CC6\u0CC2\u0CD5_\u0CAE\u0C82_\u0CAC\u0CC1_\u0C97\u0CC1_\u0CB6\u0CC1_\u0CB6".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm", LLLL: "dddd, D MMMM YYYY, A h:mm" }, calendar: { sameDay: "[\u0C87\u0C82\u0CA6\u0CC1] LT", nextDay: "[\u0CA8\u0CBE\u0CB3\u0CC6] LT", nextWeek: "dddd, LT", lastDay: "[\u0CA8\u0CBF\u0CA8\u0CCD\u0CA8\u0CC6] LT", lastWeek: "[\u0C95\u0CC6\u0CC2\u0CA8\u0CC6\u0CAF] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u0CA8\u0C82\u0CA4\u0CB0", past: "%s \u0CB9\u0CBF\u0C82\u0CA6\u0CC6", s: "\u0C95\u0CC6\u0CB2\u0CB5\u0CC1 \u0C95\u0CCD\u0CB7\u0CA3\u0C97\u0CB3\u0CC1", ss: "%d \u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1", m: "\u0C92\u0C82\u0CA6\u0CC1 \u0CA8\u0CBF\u0CAE\u0CBF\u0CB7", mm: "%d \u0CA8\u0CBF\u0CAE\u0CBF\u0CB7", h: "\u0C92\u0C82\u0CA6\u0CC1 \u0C97\u0C82\u0C9F\u0CC6", hh: "%d \u0C97\u0C82\u0C9F\u0CC6", d: "\u0C92\u0C82\u0CA6\u0CC1 \u0CA6\u0CBF\u0CA8", dd: "%d \u0CA6\u0CBF\u0CA8", M: "\u0C92\u0C82\u0CA6\u0CC1 \u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1", MM: "%d \u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1", y: "\u0C92\u0C82\u0CA6\u0CC1 \u0CB5\u0CB0\u0CCD\u0CB7", yy: "%d \u0CB5\u0CB0\u0CCD\u0CB7" }, preparse: function preparse(e) {return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g, function (e) {return _n[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return rn[e];});}, meridiemParse: /\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0CB0\u0CBE\u0CA4\u0CCD\u0CB0\u0CBF" === a ? e < 4 ? e : e + 12 : "\u0CAC\u0CC6\u0CB3\u0CBF\u0C97\u0CCD\u0C97\u0CC6" === a ? e : "\u0CAE\u0CA7\u0CCD\u0CAF\u0CBE\u0CB9\u0CCD\u0CA8" === a ? 10 <= e ? e : e + 12 : "\u0CB8\u0C82\u0C9C\u0CC6" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0CB0\u0CBE\u0CA4\u0CCD\u0CB0\u0CBF" : e < 10 ? "\u0CAC\u0CC6\u0CB3\u0CBF\u0C97\u0CCD\u0C97\u0CC6" : e < 17 ? "\u0CAE\u0CA7\u0CCD\u0CAF\u0CBE\u0CB9\u0CCD\u0CA8" : e < 20 ? "\u0CB8\u0C82\u0C9C\u0CC6" : "\u0CB0\u0CBE\u0CA4\u0CCD\u0CB0\u0CBF";}, dayOfMonthOrdinalParse: /\d{1,2}(\u0ca8\u0cc6\u0cd5)/, ordinal: function ordinal(e) {return e + "\u0CA8\u0CC6\u0CD5";}, week: { dow: 0, doy: 6 } }), l.defineLocale("ko", { months: "1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"), monthsShort: "1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"), weekdays: "\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"), weekdaysShort: "\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"), weekdaysMin: "\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "YYYY.MM.DD.", LL: "YYYY\uB144 MMMM D\uC77C", LLL: "YYYY\uB144 MMMM D\uC77C A h:mm", LLLL: "YYYY\uB144 MMMM D\uC77C dddd A h:mm", l: "YYYY.MM.DD.", ll: "YYYY\uB144 MMMM D\uC77C", lll: "YYYY\uB144 MMMM D\uC77C A h:mm", llll: "YYYY\uB144 MMMM D\uC77C dddd A h:mm" }, calendar: { sameDay: "\uC624\uB298 LT", nextDay: "\uB0B4\uC77C LT", nextWeek: "dddd LT", lastDay: "\uC5B4\uC81C LT", lastWeek: "\uC9C0\uB09C\uC8FC dddd LT", sameElse: "L" }, relativeTime: { future: "%s \uD6C4", past: "%s \uC804", s: "\uBA87 \uCD08", ss: "%d\uCD08", m: "1\uBD84", mm: "%d\uBD84", h: "\uD55C \uC2DC\uAC04", hh: "%d\uC2DC\uAC04", d: "\uD558\uB8E8", dd: "%d\uC77C", M: "\uD55C \uB2EC", MM: "%d\uB2EC", y: "\uC77C \uB144", yy: "%d\uB144" }, dayOfMonthOrdinalParse: /\d{1,2}(\uc77c|\uc6d4|\uc8fc)/, ordinal: function ordinal(e, a) {switch (a) {case "d":case "D":case "DDD":return e + "\uC77C";case "M":return e + "\uC6D4";case "w":case "W":return e + "\uC8FC";default:return e;}}, meridiemParse: /\uc624\uc804|\uc624\ud6c4/, isPM: function isPM(e) {return "\uC624\uD6C4" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\uC624\uC804" : "\uC624\uD6C4";} });var on = { 1: "\u0661", 2: "\u0662", 3: "\u0663", 4: "\u0664", 5: "\u0665", 6: "\u0666", 7: "\u0667", 8: "\u0668", 9: "\u0669", 0: "\u0660" },mn = { "\u0661": "1", "\u0662": "2", "\u0663": "3", "\u0664": "4", "\u0665": "5", "\u0666": "6", "\u0667": "7", "\u0668": "8", "\u0669": "9", "\u0660": "0" },un = ["\u06A9\u0627\u0646\u0648\u0646\u06CC \u062F\u0648\u0648\u06D5\u0645", "\u0634\u0648\u0628\u0627\u062A", "\u0626\u0627\u0632\u0627\u0631", "\u0646\u06CC\u0633\u0627\u0646", "\u0626\u0627\u06CC\u0627\u0631", "\u062D\u0648\u0632\u06D5\u06CC\u0631\u0627\u0646", "\u062A\u06D5\u0645\u0645\u0648\u0632", "\u0626\u0627\u0628", "\u0626\u06D5\u06CC\u0644\u0648\u0648\u0644", "\u062A\u0634\u0631\u06CC\u0646\u06CC \u06CC\u06D5\u0643\u06D5\u0645", "\u062A\u0634\u0631\u06CC\u0646\u06CC \u062F\u0648\u0648\u06D5\u0645", "\u0643\u0627\u0646\u0648\u0646\u06CC \u06CC\u06D5\u06A9\u06D5\u0645"];l.defineLocale("ku", { months: un, monthsShort: un, weekdays: "\u06CC\u0647\u200C\u0643\u0634\u0647\u200C\u0645\u0645\u0647\u200C_\u062F\u0648\u0648\u0634\u0647\u200C\u0645\u0645\u0647\u200C_\u0633\u06CE\u0634\u0647\u200C\u0645\u0645\u0647\u200C_\u0686\u0648\u0627\u0631\u0634\u0647\u200C\u0645\u0645\u0647\u200C_\u067E\u06CE\u0646\u062C\u0634\u0647\u200C\u0645\u0645\u0647\u200C_\u0647\u0647\u200C\u06CC\u0646\u06CC_\u0634\u0647\u200C\u0645\u0645\u0647\u200C".split("_"), weekdaysShort: "\u06CC\u0647\u200C\u0643\u0634\u0647\u200C\u0645_\u062F\u0648\u0648\u0634\u0647\u200C\u0645_\u0633\u06CE\u0634\u0647\u200C\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200C\u0645_\u067E\u06CE\u0646\u062C\u0634\u0647\u200C\u0645_\u0647\u0647\u200C\u06CC\u0646\u06CC_\u0634\u0647\u200C\u0645\u0645\u0647\u200C".split("_"), weekdaysMin: "\u06CC_\u062F_\u0633_\u0686_\u067E_\u0647_\u0634".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, meridiemParse: /\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/, isPM: function isPM(e) {return /\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e);}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0628\u0647\u200C\u06CC\u0627\u0646\u06CC" : "\u0626\u06CE\u0648\u0627\u0631\u0647\u200C";}, calendar: { sameDay: "[\u0626\u0647\u200C\u0645\u0631\u06C6 \u0643\u0627\u062A\u0698\u0645\u06CE\u0631] LT", nextDay: "[\u0628\u0647\u200C\u06CC\u0627\u0646\u06CC \u0643\u0627\u062A\u0698\u0645\u06CE\u0631] LT", nextWeek: "dddd [\u0643\u0627\u062A\u0698\u0645\u06CE\u0631] LT", lastDay: "[\u062F\u0648\u06CE\u0646\u06CE \u0643\u0627\u062A\u0698\u0645\u06CE\u0631] LT", lastWeek: "dddd [\u0643\u0627\u062A\u0698\u0645\u06CE\u0631] LT", sameElse: "L" }, relativeTime: { future: "\u0644\u0647\u200C %s", past: "%s", s: "\u0686\u0647\u200C\u0646\u062F \u0686\u0631\u0643\u0647\u200C\u06CC\u0647\u200C\u0643", ss: "\u0686\u0631\u0643\u0647\u200C %d", m: "\u06CC\u0647\u200C\u0643 \u062E\u0648\u0644\u0647\u200C\u0643", mm: "%d \u062E\u0648\u0644\u0647\u200C\u0643", h: "\u06CC\u0647\u200C\u0643 \u0643\u0627\u062A\u0698\u0645\u06CE\u0631", hh: "%d \u0643\u0627\u062A\u0698\u0645\u06CE\u0631", d: "\u06CC\u0647\u200C\u0643 \u0695\u06C6\u0698", dd: "%d \u0695\u06C6\u0698", M: "\u06CC\u0647\u200C\u0643 \u0645\u0627\u0646\u06AF", MM: "%d \u0645\u0627\u0646\u06AF", y: "\u06CC\u0647\u200C\u0643 \u0633\u0627\u06B5", yy: "%d \u0633\u0627\u06B5" }, preparse: function preparse(e) {return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g, function (e) {return mn[e];}).replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return on[e];}).replace(/,/g, "\u060C");}, week: { dow: 6, doy: 12 } });var ln = { 0: "-\u0447\u04AF", 1: "-\u0447\u0438", 2: "-\u0447\u0438", 3: "-\u0447\u04AF", 4: "-\u0447\u04AF", 5: "-\u0447\u0438", 6: "-\u0447\u044B", 7: "-\u0447\u0438", 8: "-\u0447\u0438", 9: "-\u0447\u0443", 10: "-\u0447\u0443", 20: "-\u0447\u044B", 30: "-\u0447\u0443", 40: "-\u0447\u044B", 50: "-\u0447\u04AF", 60: "-\u0447\u044B", 70: "-\u0447\u0438", 80: "-\u0447\u0438", 90: "-\u0447\u0443", 100: "-\u0447\u04AF" };function Mn(e, a, t, s) {var n = { m: ["eng Minutt", "enger Minutt"], h: ["eng Stonn", "enger Stonn"], d: ["een Dag", "engem Dag"], M: ["ee Mount", "engem Mount"], y: ["ee Joer", "engem Joer"] };return a ? n[t][0] : n[t][1];}function hn(e) {if (e = parseInt(e, 10), isNaN(e)) return !1;if (e < 0) return !0;if (e < 10) return 4 <= e && e <= 7;if (e < 100) {var a = e % 10;return hn(0 === a ? e / 10 : a);}if (e < 1e4) {for (; 10 <= e;) {e /= 10;}return hn(e);}return hn(e /= 1e3);}l.defineLocale("ky", { months: "\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"), monthsShort: "\u044F\u043D\u0432_\u0444\u0435\u0432_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433_\u0441\u0435\u043D_\u043E\u043A\u0442_\u043D\u043E\u044F_\u0434\u0435\u043A".split("_"), weekdays: "\u0416\u0435\u043A\u0448\u0435\u043C\u0431\u0438_\u0414\u04AF\u0439\u0448\u04E9\u043C\u0431\u04AF_\u0428\u0435\u0439\u0448\u0435\u043C\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043C\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043C\u0431\u0438_\u0416\u0443\u043C\u0430_\u0418\u0448\u0435\u043C\u0431\u0438".split("_"), weekdaysShort: "\u0416\u0435\u043A_\u0414\u04AF\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043C_\u0418\u0448\u0435".split("_"), weekdaysMin: "\u0416\u043A_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043C_\u0418\u0448".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u0411\u04AF\u0433\u04AF\u043D \u0441\u0430\u0430\u0442] LT", nextDay: "[\u042D\u0440\u0442\u0435\u04A3 \u0441\u0430\u0430\u0442] LT", nextWeek: "dddd [\u0441\u0430\u0430\u0442] LT", lastDay: "[\u041A\u0435\u0447\u044D\u044D \u0441\u0430\u0430\u0442] LT", lastWeek: "[\u04E8\u0442\u043A\u04E9\u043D \u0430\u043F\u0442\u0430\u043D\u044B\u043D] dddd [\u043A\u04AF\u043D\u04AF] [\u0441\u0430\u0430\u0442] LT", sameElse: "L" }, relativeTime: { future: "%s \u0438\u0447\u0438\u043D\u0434\u0435", past: "%s \u043C\u0443\u0440\u0443\u043D", s: "\u0431\u0438\u0440\u043D\u0435\u0447\u0435 \u0441\u0435\u043A\u0443\u043D\u0434", ss: "%d \u0441\u0435\u043A\u0443\u043D\u0434", m: "\u0431\u0438\u0440 \u043C\u04AF\u043D\u04E9\u0442", mm: "%d \u043C\u04AF\u043D\u04E9\u0442", h: "\u0431\u0438\u0440 \u0441\u0430\u0430\u0442", hh: "%d \u0441\u0430\u0430\u0442", d: "\u0431\u0438\u0440 \u043A\u04AF\u043D", dd: "%d \u043A\u04AF\u043D", M: "\u0431\u0438\u0440 \u0430\u0439", MM: "%d \u0430\u0439", y: "\u0431\u0438\u0440 \u0436\u044B\u043B", yy: "%d \u0436\u044B\u043B" }, dayOfMonthOrdinalParse: /\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/, ordinal: function ordinal(e) {return e + (ln[e] || ln[e % 10] || ln[100 <= e ? 100 : null]);}, week: { dow: 1, doy: 7 } }), l.defineLocale("lb", { months: "Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"), monthsParseExact: !0, weekdays: "Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"), weekdaysShort: "So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"), weekdaysMin: "So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm [Auer]", LTS: "H:mm:ss [Auer]", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm [Auer]", LLLL: "dddd, D. MMMM YYYY H:mm [Auer]" }, calendar: { sameDay: "[Haut um] LT", sameElse: "L", nextDay: "[Muer um] LT", nextWeek: "dddd [um] LT", lastDay: "[G\xebschter um] LT", lastWeek: function lastWeek() {switch (this.day()) {case 2:case 4:return "[Leschten] dddd [um] LT";default:return "[Leschte] dddd [um] LT";}} }, relativeTime: { future: function future(e) {return hn(e.substr(0, e.indexOf(" "))) ? "a " + e : "an " + e;}, past: function past(e) {return hn(e.substr(0, e.indexOf(" "))) ? "viru " + e : "virun " + e;}, s: "e puer Sekonnen", ss: "%d Sekonnen", m: Mn, mm: "%d Minutten", h: Mn, hh: "%d Stonnen", d: Mn, dd: "%d Deeg", M: Mn, MM: "%d M\xe9int", y: Mn, yy: "%d Joer" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("lo", { months: "\u0EA1\u0EB1\u0E87\u0E81\u0EAD\u0E99_\u0E81\u0EB8\u0EA1\u0E9E\u0EB2_\u0EA1\u0EB5\u0E99\u0EB2_\u0EC0\u0EA1\u0EAA\u0EB2_\u0E9E\u0EB6\u0E94\u0EAA\u0EB0\u0E9E\u0EB2_\u0EA1\u0EB4\u0E96\u0EB8\u0E99\u0EB2_\u0E81\u0ECD\u0EA5\u0EB0\u0E81\u0EBB\u0E94_\u0EAA\u0EB4\u0E87\u0EAB\u0EB2_\u0E81\u0EB1\u0E99\u0E8D\u0EB2_\u0E95\u0EB8\u0EA5\u0EB2_\u0E9E\u0EB0\u0E88\u0EB4\u0E81_\u0E97\u0EB1\u0E99\u0EA7\u0EB2".split("_"), monthsShort: "\u0EA1\u0EB1\u0E87\u0E81\u0EAD\u0E99_\u0E81\u0EB8\u0EA1\u0E9E\u0EB2_\u0EA1\u0EB5\u0E99\u0EB2_\u0EC0\u0EA1\u0EAA\u0EB2_\u0E9E\u0EB6\u0E94\u0EAA\u0EB0\u0E9E\u0EB2_\u0EA1\u0EB4\u0E96\u0EB8\u0E99\u0EB2_\u0E81\u0ECD\u0EA5\u0EB0\u0E81\u0EBB\u0E94_\u0EAA\u0EB4\u0E87\u0EAB\u0EB2_\u0E81\u0EB1\u0E99\u0E8D\u0EB2_\u0E95\u0EB8\u0EA5\u0EB2_\u0E9E\u0EB0\u0E88\u0EB4\u0E81_\u0E97\u0EB1\u0E99\u0EA7\u0EB2".split("_"), weekdays: "\u0EAD\u0EB2\u0E97\u0EB4\u0E94_\u0E88\u0EB1\u0E99_\u0EAD\u0EB1\u0E87\u0E84\u0EB2\u0E99_\u0E9E\u0EB8\u0E94_\u0E9E\u0EB0\u0EAB\u0EB1\u0E94_\u0EAA\u0EB8\u0E81_\u0EC0\u0EAA\u0EBB\u0EB2".split("_"), weekdaysShort: "\u0E97\u0EB4\u0E94_\u0E88\u0EB1\u0E99_\u0EAD\u0EB1\u0E87\u0E84\u0EB2\u0E99_\u0E9E\u0EB8\u0E94_\u0E9E\u0EB0\u0EAB\u0EB1\u0E94_\u0EAA\u0EB8\u0E81_\u0EC0\u0EAA\u0EBB\u0EB2".split("_"), weekdaysMin: "\u0E97_\u0E88_\u0EAD\u0E84_\u0E9E_\u0E9E\u0EAB_\u0EAA\u0E81_\u0EAA".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "\u0EA7\u0EB1\u0E99dddd D MMMM YYYY HH:mm" }, meridiemParse: /\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/, isPM: function isPM(e) {return "\u0E95\u0EAD\u0E99\u0EC1\u0EA5\u0E87" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0E95\u0EAD\u0E99\u0EC0\u0E8A\u0EBB\u0EC9\u0EB2" : "\u0E95\u0EAD\u0E99\u0EC1\u0EA5\u0E87";}, calendar: { sameDay: "[\u0EA1\u0EB7\u0EC9\u0E99\u0EB5\u0EC9\u0EC0\u0EA7\u0EA5\u0EB2] LT", nextDay: "[\u0EA1\u0EB7\u0EC9\u0EAD\u0EB7\u0EC8\u0E99\u0EC0\u0EA7\u0EA5\u0EB2] LT", nextWeek: "[\u0EA7\u0EB1\u0E99]dddd[\u0EDC\u0EC9\u0EB2\u0EC0\u0EA7\u0EA5\u0EB2] LT", lastDay: "[\u0EA1\u0EB7\u0EC9\u0EA7\u0EB2\u0E99\u0E99\u0EB5\u0EC9\u0EC0\u0EA7\u0EA5\u0EB2] LT", lastWeek: "[\u0EA7\u0EB1\u0E99]dddd[\u0EC1\u0EA5\u0EC9\u0EA7\u0E99\u0EB5\u0EC9\u0EC0\u0EA7\u0EA5\u0EB2] LT", sameElse: "L" }, relativeTime: { future: "\u0EAD\u0EB5\u0E81 %s", past: "%s\u0E9C\u0EC8\u0EB2\u0E99\u0EA1\u0EB2", s: "\u0E9A\u0ECD\u0EC8\u0EC0\u0E97\u0EBB\u0EC8\u0EB2\u0EC3\u0E94\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5", ss: "%d \u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5", m: "1 \u0E99\u0EB2\u0E97\u0EB5", mm: "%d \u0E99\u0EB2\u0E97\u0EB5", h: "1 \u0E8A\u0EBB\u0EC8\u0EA7\u0EC2\u0EA1\u0E87", hh: "%d \u0E8A\u0EBB\u0EC8\u0EA7\u0EC2\u0EA1\u0E87", d: "1 \u0EA1\u0EB7\u0EC9", dd: "%d \u0EA1\u0EB7\u0EC9", M: "1 \u0EC0\u0E94\u0EB7\u0EAD\u0E99", MM: "%d \u0EC0\u0E94\u0EB7\u0EAD\u0E99", y: "1 \u0E9B\u0EB5", yy: "%d \u0E9B\u0EB5" }, dayOfMonthOrdinalParse: /(\u0e97\u0eb5\u0ec8)\d{1,2}/, ordinal: function ordinal(e) {return "\u0E97\u0EB5\u0EC8" + e;} });var Ln = { ss: "sekund\u0117_sekund\u017Ei\u0173_sekundes", m: "minut\u0117_minut\u0117s_minut\u0119", mm: "minut\u0117s_minu\u010Di\u0173_minutes", h: "valanda_valandos_valand\u0105", hh: "valandos_valand\u0173_valandas", d: "diena_dienos_dien\u0105", dd: "dienos_dien\u0173_dienas", M: "m\u0117nuo_m\u0117nesio_m\u0117nes\u012F", MM: "m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius", y: "metai_met\u0173_metus", yy: "metai_met\u0173_metus" };function cn(e, a, t, s) {return a ? yn(t)[0] : s ? yn(t)[1] : yn(t)[2];}function Yn(e) {return e % 10 == 0 || 10 < e && e < 20;}function yn(e) {return Ln[e].split("_");}function fn(e, a, t, s) {var n = e + " ";return 1 === e ? n + cn(0, a, t[0], s) : a ? n + (Yn(e) ? yn(t)[1] : yn(t)[0]) : s ? n + yn(t)[1] : n + (Yn(e) ? yn(t)[1] : yn(t)[2]);}l.defineLocale("lt", { months: { format: "sausio_vasario_kovo_baland\u017Eio_gegu\u017E\u0117s_bir\u017Eelio_liepos_rugpj\u016B\u010Dio_rugs\u0117jo_spalio_lapkri\u010Dio_gruod\u017Eio".split("_"), standalone: "sausis_vasaris_kovas_balandis_gegu\u017E\u0117_bir\u017Eelis_liepa_rugpj\u016Btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"), isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/ }, monthsShort: "sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"), weekdays: { format: "sekmadien\u012F_pirmadien\u012F_antradien\u012F_tre\u010Diadien\u012F_ketvirtadien\u012F_penktadien\u012F_\u0161e\u0161tadien\u012F".split("_"), standalone: "sekmadienis_pirmadienis_antradienis_tre\u010Diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"), isFormat: /dddd HH:mm/ }, weekdaysShort: "Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"), weekdaysMin: "S_P_A_T_K_Pn_\u0160".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "YYYY [m.] MMMM D [d.]", LLL: "YYYY [m.] MMMM D [d.], HH:mm [val.]", LLLL: "YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]", l: "YYYY-MM-DD", ll: "YYYY [m.] MMMM D [d.]", lll: "YYYY [m.] MMMM D [d.], HH:mm [val.]", llll: "YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]" }, calendar: { sameDay: "[\u0160iandien] LT", nextDay: "[Rytoj] LT", nextWeek: "dddd LT", lastDay: "[Vakar] LT", lastWeek: "[Pra\u0117jus\u012F] dddd LT", sameElse: "L" }, relativeTime: { future: "po %s", past: "prie\u0161 %s", s: function s(e, a, t, _s2) {return a ? "kelios sekund\u0117s" : _s2 ? "keli\u0173 sekund\u017Ei\u0173" : "kelias sekundes";}, ss: fn, m: cn, mm: fn, h: cn, hh: fn, d: cn, dd: fn, M: cn, MM: fn, y: cn, yy: fn }, dayOfMonthOrdinalParse: /\d{1,2}-oji/, ordinal: function ordinal(e) {return e + "-oji";}, week: { dow: 1, doy: 4 } });var kn = { ss: "sekundes_sekund\u0113m_sekunde_sekundes".split("_"), m: "min\u016Btes_min\u016Bt\u0113m_min\u016Bte_min\u016Btes".split("_"), mm: "min\u016Btes_min\u016Bt\u0113m_min\u016Bte_min\u016Btes".split("_"), h: "stundas_stund\u0101m_stunda_stundas".split("_"), hh: "stundas_stund\u0101m_stunda_stundas".split("_"), d: "dienas_dien\u0101m_diena_dienas".split("_"), dd: "dienas_dien\u0101m_diena_dienas".split("_"), M: "m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"), MM: "m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"), y: "gada_gadiem_gads_gadi".split("_"), yy: "gada_gadiem_gads_gadi".split("_") };function pn(e, a, t) {return t ? a % 10 == 1 && a % 100 != 11 ? e[2] : e[3] : a % 10 == 1 && a % 100 != 11 ? e[0] : e[1];}function Dn(e, a, t) {return e + " " + pn(kn[t], e, a);}function Tn(e, a, t) {return pn(kn[t], e, a);}l.defineLocale("lv", { months: "janv\u0101ris_febru\u0101ris_marts_apr\u012Blis_maijs_j\u016Bnijs_j\u016Blijs_augusts_septembris_oktobris_novembris_decembris".split("_"), monthsShort: "jan_feb_mar_apr_mai_j\u016Bn_j\u016Bl_aug_sep_okt_nov_dec".split("_"), weekdays: "sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"), weekdaysShort: "Sv_P_O_T_C_Pk_S".split("_"), weekdaysMin: "Sv_P_O_T_C_Pk_S".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY.", LL: "YYYY. [gada] D. MMMM", LLL: "YYYY. [gada] D. MMMM, HH:mm", LLLL: "YYYY. [gada] D. MMMM, dddd, HH:mm" }, calendar: { sameDay: "[\u0160odien pulksten] LT", nextDay: "[R\u012Bt pulksten] LT", nextWeek: "dddd [pulksten] LT", lastDay: "[Vakar pulksten] LT", lastWeek: "[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT", sameElse: "L" }, relativeTime: { future: "p\u0113c %s", past: "pirms %s", s: function s(e, a) {return a ? "da\u017Eas sekundes" : "da\u017E\u0101m sekund\u0113m";}, ss: Dn, m: Tn, mm: Dn, h: Tn, hh: Dn, d: Tn, dd: Dn, M: Tn, MM: Dn, y: Tn, yy: Dn }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } });var gn = { words: { ss: ["sekund", "sekunda", "sekundi"], m: ["jedan minut", "jednog minuta"], mm: ["minut", "minuta", "minuta"], h: ["jedan sat", "jednog sata"], hh: ["sat", "sata", "sati"], dd: ["dan", "dana", "dana"], MM: ["mjesec", "mjeseca", "mjeseci"], yy: ["godina", "godine", "godina"] }, correctGrammaticalCase: function correctGrammaticalCase(e, a) {return 1 === e ? a[0] : 2 <= e && e <= 4 ? a[1] : a[2];}, translate: function translate(e, a, t) {var s = gn.words[t];return 1 === t.length ? a ? s[0] : s[1] : e + " " + gn.correctGrammaticalCase(e, s);} };function wn(e, a, t, s) {switch (t) {case "s":return a ? "\u0445\u044D\u0434\u0445\u044D\u043D \u0441\u0435\u043A\u0443\u043D\u0434" : "\u0445\u044D\u0434\u0445\u044D\u043D \u0441\u0435\u043A\u0443\u043D\u0434\u044B\u043D";case "ss":return e + (a ? " \u0441\u0435\u043A\u0443\u043D\u0434" : " \u0441\u0435\u043A\u0443\u043D\u0434\u044B\u043D");case "m":case "mm":return e + (a ? " \u043C\u0438\u043D\u0443\u0442" : " \u043C\u0438\u043D\u0443\u0442\u044B\u043D");case "h":case "hh":return e + (a ? " \u0446\u0430\u0433" : " \u0446\u0430\u0433\u0438\u0439\u043D");case "d":case "dd":return e + (a ? " \u04E9\u0434\u04E9\u0440" : " \u04E9\u0434\u0440\u0438\u0439\u043D");case "M":case "MM":return e + (a ? " \u0441\u0430\u0440" : " \u0441\u0430\u0440\u044B\u043D");case "y":case "yy":return e + (a ? " \u0436\u0438\u043B" : " \u0436\u0438\u043B\u0438\u0439\u043D");default:return e;}}l.defineLocale("me", { months: "januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"), monthsShort: "jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "nedjelja_ponedjeljak_utorak_srijeda_\u010Detvrtak_petak_subota".split("_"), weekdaysShort: "ned._pon._uto._sri._\u010Det._pet._sub.".split("_"), weekdaysMin: "ne_po_ut_sr_\u010De_pe_su".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danas u] LT", nextDay: "[sjutra u] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[u] [nedjelju] [u] LT";case 3:return "[u] [srijedu] [u] LT";case 6:return "[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return "[u] dddd [u] LT";}}, lastDay: "[ju\u010De u] LT", lastWeek: function lastWeek() {return ["[pro\u0161le] [nedjelje] [u] LT", "[pro\u0161log] [ponedjeljka] [u] LT", "[pro\u0161log] [utorka] [u] LT", "[pro\u0161le] [srijede] [u] LT", "[pro\u0161log] [\u010Detvrtka] [u] LT", "[pro\u0161log] [petka] [u] LT", "[pro\u0161le] [subote] [u] LT"][this.day()];}, sameElse: "L" }, relativeTime: { future: "za %s", past: "prije %s", s: "nekoliko sekundi", ss: gn.translate, m: gn.translate, mm: gn.translate, h: gn.translate, hh: gn.translate, d: "dan", dd: gn.translate, M: "mjesec", MM: gn.translate, y: "godinu", yy: gn.translate }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }), l.defineLocale("mi", { months: "Kohi-t\u0101te_Hui-tanguru_Pout\u016B-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014Dngoingoi_Here-turi-k\u014Dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"), monthsShort: "Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014Dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"), monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, weekdays: "R\u0101tapu_Mane_T\u016Brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"), weekdaysShort: "Ta_Ma_T\u016B_We_T\u0101i_Pa_H\u0101".split("_"), weekdaysMin: "Ta_Ma_T\u016B_We_T\u0101i_Pa_H\u0101".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [i] HH:mm", LLLL: "dddd, D MMMM YYYY [i] HH:mm" }, calendar: { sameDay: "[i teie mahana, i] LT", nextDay: "[apopo i] LT", nextWeek: "dddd [i] LT", lastDay: "[inanahi i] LT", lastWeek: "dddd [whakamutunga i] LT", sameElse: "L" }, relativeTime: { future: "i roto i %s", past: "%s i mua", s: "te h\u0113kona ruarua", ss: "%d h\u0113kona", m: "he meneti", mm: "%d meneti", h: "te haora", hh: "%d haora", d: "he ra", dd: "%d ra", M: "he marama", MM: "%d marama", y: "he tau", yy: "%d tau" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 1, doy: 4 } }), l.defineLocale("mk", { months: "\u0458\u0430\u043D\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0438\u043B_\u043C\u0430\u0458_\u0458\u0443\u043D\u0438_\u0458\u0443\u043B\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438_\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438_\u043D\u043E\u0435\u043C\u0432\u0440\u0438_\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438".split("_"), monthsShort: "\u0458\u0430\u043D_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0458_\u0458\u0443\u043D_\u0458\u0443\u043B_\u0430\u0432\u0433_\u0441\u0435\u043F_\u043E\u043A\u0442_\u043D\u043E\u0435_\u0434\u0435\u043A".split("_"), weekdays: "\u043D\u0435\u0434\u0435\u043B\u0430_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043E\u043A_\u043F\u0435\u0442\u043E\u043A_\u0441\u0430\u0431\u043E\u0442\u0430".split("_"), weekdaysShort: "\u043D\u0435\u0434_\u043F\u043E\u043D_\u0432\u0442\u043E_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043F\u0435\u0442_\u0441\u0430\u0431".split("_"), weekdaysMin: "\u043De_\u043Fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043F\u0435_\u0441a".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "D.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY H:mm", LLLL: "dddd, D MMMM YYYY H:mm" }, calendar: { sameDay: "[\u0414\u0435\u043D\u0435\u0441 \u0432\u043E] LT", nextDay: "[\u0423\u0442\u0440\u0435 \u0432\u043E] LT", nextWeek: "[\u0412\u043E] dddd [\u0432\u043E] LT", lastDay: "[\u0412\u0447\u0435\u0440\u0430 \u0432\u043E] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:case 3:case 6:return "[\u0418\u0437\u043C\u0438\u043D\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043E] LT";case 1:case 2:case 4:case 5:return "[\u0418\u0437\u043C\u0438\u043D\u0430\u0442\u0438\u043E\u0442] dddd [\u0432\u043E] LT";}}, sameElse: "L" }, relativeTime: { future: "\u043F\u043E\u0441\u043B\u0435 %s", past: "\u043F\u0440\u0435\u0434 %s", s: "\u043D\u0435\u043A\u043E\u043B\u043A\u0443 \u0441\u0435\u043A\u0443\u043D\u0434\u0438", ss: "%d \u0441\u0435\u043A\u0443\u043D\u0434\u0438", m: "\u043C\u0438\u043D\u0443\u0442\u0430", mm: "%d \u043C\u0438\u043D\u0443\u0442\u0438", h: "\u0447\u0430\u0441", hh: "%d \u0447\u0430\u0441\u0430", d: "\u0434\u0435\u043D", dd: "%d \u0434\u0435\u043D\u0430", M: "\u043C\u0435\u0441\u0435\u0446", MM: "%d \u043C\u0435\u0441\u0435\u0446\u0438", y: "\u0433\u043E\u0434\u0438\u043D\u0430", yy: "%d \u0433\u043E\u0434\u0438\u043D\u0438" }, dayOfMonthOrdinalParse: /\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/, ordinal: function ordinal(e) {var a = e % 10,t = e % 100;return 0 === e ? e + "-\u0435\u0432" : 0 === t ? e + "-\u0435\u043D" : 10 < t && t < 20 ? e + "-\u0442\u0438" : 1 === a ? e + "-\u0432\u0438" : 2 === a ? e + "-\u0440\u0438" : 7 === a || 8 === a ? e + "-\u043C\u0438" : e + "-\u0442\u0438";}, week: { dow: 1, doy: 7 } }), l.defineLocale("ml", { months: "\u0D1C\u0D28\u0D41\u0D35\u0D30\u0D3F_\u0D2B\u0D46\u0D2C\u0D4D\u0D30\u0D41\u0D35\u0D30\u0D3F_\u0D2E\u0D3E\u0D7C\u0D1A\u0D4D\u0D1A\u0D4D_\u0D0F\u0D2A\u0D4D\u0D30\u0D3F\u0D7D_\u0D2E\u0D47\u0D2F\u0D4D_\u0D1C\u0D42\u0D7A_\u0D1C\u0D42\u0D32\u0D48_\u0D13\u0D17\u0D38\u0D4D\u0D31\u0D4D\u0D31\u0D4D_\u0D38\u0D46\u0D2A\u0D4D\u0D31\u0D4D\u0D31\u0D02\u0D2C\u0D7C_\u0D12\u0D15\u0D4D\u0D1F\u0D4B\u0D2C\u0D7C_\u0D28\u0D35\u0D02\u0D2C\u0D7C_\u0D21\u0D3F\u0D38\u0D02\u0D2C\u0D7C".split("_"), monthsShort: "\u0D1C\u0D28\u0D41._\u0D2B\u0D46\u0D2C\u0D4D\u0D30\u0D41._\u0D2E\u0D3E\u0D7C._\u0D0F\u0D2A\u0D4D\u0D30\u0D3F._\u0D2E\u0D47\u0D2F\u0D4D_\u0D1C\u0D42\u0D7A_\u0D1C\u0D42\u0D32\u0D48._\u0D13\u0D17._\u0D38\u0D46\u0D2A\u0D4D\u0D31\u0D4D\u0D31._\u0D12\u0D15\u0D4D\u0D1F\u0D4B._\u0D28\u0D35\u0D02._\u0D21\u0D3F\u0D38\u0D02.".split("_"), monthsParseExact: !0, weekdays: "\u0D1E\u0D3E\u0D2F\u0D31\u0D3E\u0D34\u0D4D\u0D1A_\u0D24\u0D3F\u0D19\u0D4D\u0D15\u0D33\u0D3E\u0D34\u0D4D\u0D1A_\u0D1A\u0D4A\u0D35\u0D4D\u0D35\u0D3E\u0D34\u0D4D\u0D1A_\u0D2C\u0D41\u0D27\u0D28\u0D3E\u0D34\u0D4D\u0D1A_\u0D35\u0D4D\u0D2F\u0D3E\u0D34\u0D3E\u0D34\u0D4D\u0D1A_\u0D35\u0D46\u0D33\u0D4D\u0D33\u0D3F\u0D2F\u0D3E\u0D34\u0D4D\u0D1A_\u0D36\u0D28\u0D3F\u0D2F\u0D3E\u0D34\u0D4D\u0D1A".split("_"), weekdaysShort: "\u0D1E\u0D3E\u0D2F\u0D7C_\u0D24\u0D3F\u0D19\u0D4D\u0D15\u0D7E_\u0D1A\u0D4A\u0D35\u0D4D\u0D35_\u0D2C\u0D41\u0D27\u0D7B_\u0D35\u0D4D\u0D2F\u0D3E\u0D34\u0D02_\u0D35\u0D46\u0D33\u0D4D\u0D33\u0D3F_\u0D36\u0D28\u0D3F".split("_"), weekdaysMin: "\u0D1E\u0D3E_\u0D24\u0D3F_\u0D1A\u0D4A_\u0D2C\u0D41_\u0D35\u0D4D\u0D2F\u0D3E_\u0D35\u0D46_\u0D36".split("_"), longDateFormat: { LT: "A h:mm -\u0D28\u0D41", LTS: "A h:mm:ss -\u0D28\u0D41", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm -\u0D28\u0D41", LLLL: "dddd, D MMMM YYYY, A h:mm -\u0D28\u0D41" }, calendar: { sameDay: "[\u0D07\u0D28\u0D4D\u0D28\u0D4D] LT", nextDay: "[\u0D28\u0D3E\u0D33\u0D46] LT", nextWeek: "dddd, LT", lastDay: "[\u0D07\u0D28\u0D4D\u0D28\u0D32\u0D46] LT", lastWeek: "[\u0D15\u0D34\u0D3F\u0D1E\u0D4D\u0D1E] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u0D15\u0D34\u0D3F\u0D1E\u0D4D\u0D1E\u0D4D", past: "%s \u0D2E\u0D41\u0D7B\u0D2A\u0D4D", s: "\u0D05\u0D7D\u0D2A \u0D28\u0D3F\u0D2E\u0D3F\u0D37\u0D19\u0D4D\u0D19\u0D7E", ss: "%d \u0D38\u0D46\u0D15\u0D4D\u0D15\u0D7B\u0D21\u0D4D", m: "\u0D12\u0D30\u0D41 \u0D2E\u0D3F\u0D28\u0D3F\u0D31\u0D4D\u0D31\u0D4D", mm: "%d \u0D2E\u0D3F\u0D28\u0D3F\u0D31\u0D4D\u0D31\u0D4D", h: "\u0D12\u0D30\u0D41 \u0D2E\u0D23\u0D3F\u0D15\u0D4D\u0D15\u0D42\u0D7C", hh: "%d \u0D2E\u0D23\u0D3F\u0D15\u0D4D\u0D15\u0D42\u0D7C", d: "\u0D12\u0D30\u0D41 \u0D26\u0D3F\u0D35\u0D38\u0D02", dd: "%d \u0D26\u0D3F\u0D35\u0D38\u0D02", M: "\u0D12\u0D30\u0D41 \u0D2E\u0D3E\u0D38\u0D02", MM: "%d \u0D2E\u0D3E\u0D38\u0D02", y: "\u0D12\u0D30\u0D41 \u0D35\u0D7C\u0D37\u0D02", yy: "%d \u0D35\u0D7C\u0D37\u0D02" }, meridiemParse: /\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0D30\u0D3E\u0D24\u0D4D\u0D30\u0D3F" === a && 4 <= e || "\u0D09\u0D1A\u0D4D\u0D1A \u0D15\u0D34\u0D3F\u0D1E\u0D4D\u0D1E\u0D4D" === a || "\u0D35\u0D48\u0D15\u0D41\u0D28\u0D4D\u0D28\u0D47\u0D30\u0D02" === a ? e + 12 : e;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0D30\u0D3E\u0D24\u0D4D\u0D30\u0D3F" : e < 12 ? "\u0D30\u0D3E\u0D35\u0D3F\u0D32\u0D46" : e < 17 ? "\u0D09\u0D1A\u0D4D\u0D1A \u0D15\u0D34\u0D3F\u0D1E\u0D4D\u0D1E\u0D4D" : e < 20 ? "\u0D35\u0D48\u0D15\u0D41\u0D28\u0D4D\u0D28\u0D47\u0D30\u0D02" : "\u0D30\u0D3E\u0D24\u0D4D\u0D30\u0D3F";} }), l.defineLocale("mn", { months: "\u041D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440_\u0425\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04E9\u0440\u04E9\u0432\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043E\u043B\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041D\u0430\u0439\u043C\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043D \u043D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043D \u0445\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"), monthsShort: "1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"), monthsParseExact: !0, weekdays: "\u041D\u044F\u043C_\u0414\u0430\u0432\u0430\u0430_\u041C\u044F\u0433\u043C\u0430\u0440_\u041B\u0445\u0430\u0433\u0432\u0430_\u041F\u04AF\u0440\u044D\u0432_\u0411\u0430\u0430\u0441\u0430\u043D_\u0411\u044F\u043C\u0431\u0430".split("_"), weekdaysShort: "\u041D\u044F\u043C_\u0414\u0430\u0432_\u041C\u044F\u0433_\u041B\u0445\u0430_\u041F\u04AF\u0440_\u0411\u0430\u0430_\u0411\u044F\u043C".split("_"), weekdaysMin: "\u041D\u044F_\u0414\u0430_\u041C\u044F_\u041B\u0445_\u041F\u04AF_\u0411\u0430_\u0411\u044F".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "YYYY \u043E\u043D\u044B MMMM\u044B\u043D D", LLL: "YYYY \u043E\u043D\u044B MMMM\u044B\u043D D HH:mm", LLLL: "dddd, YYYY \u043E\u043D\u044B MMMM\u044B\u043D D HH:mm" }, meridiemParse: /\u04ae\u04e8|\u04ae\u0425/i, isPM: function isPM(e) {return "\u04AE\u0425" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u04AE\u04E8" : "\u04AE\u0425";}, calendar: { sameDay: "[\u04E8\u043D\u04E9\u04E9\u0434\u04E9\u0440] LT", nextDay: "[\u041C\u0430\u0440\u0433\u0430\u0430\u0448] LT", nextWeek: "[\u0418\u0440\u044D\u0445] dddd LT", lastDay: "[\u04E8\u0447\u0438\u0433\u0434\u04E9\u0440] LT", lastWeek: "[\u04E8\u043D\u0433\u04E9\u0440\u0441\u04E9\u043D] dddd LT", sameElse: "L" }, relativeTime: { future: "%s \u0434\u0430\u0440\u0430\u0430", past: "%s \u04E9\u043C\u043D\u04E9", s: wn, ss: wn, m: wn, mm: wn, h: wn, hh: wn, d: wn, dd: wn, M: wn, MM: wn, y: wn, yy: wn }, dayOfMonthOrdinalParse: /\d{1,2} \u04e9\u0434\u04e9\u0440/, ordinal: function ordinal(e, a) {switch (a) {case "d":case "D":case "DDD":return e + " \u04E9\u0434\u04E9\u0440";default:return e;}} });var vn = { 1: "\u0967", 2: "\u0968", 3: "\u0969", 4: "\u096A", 5: "\u096B", 6: "\u096C", 7: "\u096D", 8: "\u096E", 9: "\u096F", 0: "\u0966" },Sn = { "\u0967": "1", "\u0968": "2", "\u0969": "3", "\u096A": "4", "\u096B": "5", "\u096C": "6", "\u096D": "7", "\u096E": "8", "\u096F": "9", "\u0966": "0" };function Hn(e, a, t, s) {var n = "";if (a) switch (t) {case "s":n = "\u0915\u093E\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case "ss":n = "%d \u0938\u0947\u0915\u0902\u0926";break;case "m":n = "\u090F\u0915 \u092E\u093F\u0928\u093F\u091F";break;case "mm":n = "%d \u092E\u093F\u0928\u093F\u091F\u0947";break;case "h":n = "\u090F\u0915 \u0924\u093E\u0938";break;case "hh":n = "%d \u0924\u093E\u0938";break;case "d":n = "\u090F\u0915 \u0926\u093F\u0935\u0938";break;case "dd":n = "%d \u0926\u093F\u0935\u0938";break;case "M":n = "\u090F\u0915 \u092E\u0939\u093F\u0928\u093E";break;case "MM":n = "%d \u092E\u0939\u093F\u0928\u0947";break;case "y":n = "\u090F\u0915 \u0935\u0930\u094D\u0937";break;case "yy":n = "%d \u0935\u0930\u094D\u0937\u0947";break;} else switch (t) {case "s":n = "\u0915\u093E\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093E\u0902";break;case "ss":n = "%d \u0938\u0947\u0915\u0902\u0926\u093E\u0902";break;case "m":n = "\u090F\u0915\u093E \u092E\u093F\u0928\u093F\u091F\u093E";break;case "mm":n = "%d \u092E\u093F\u0928\u093F\u091F\u093E\u0902";break;case "h":n = "\u090F\u0915\u093E \u0924\u093E\u0938\u093E";break;case "hh":n = "%d \u0924\u093E\u0938\u093E\u0902";break;case "d":n = "\u090F\u0915\u093E \u0926\u093F\u0935\u0938\u093E";break;case "dd":n = "%d \u0926\u093F\u0935\u0938\u093E\u0902";break;case "M":n = "\u090F\u0915\u093E \u092E\u0939\u093F\u0928\u094D\u092F\u093E";break;case "MM":n = "%d \u092E\u0939\u093F\u0928\u094D\u092F\u093E\u0902";break;case "y":n = "\u090F\u0915\u093E \u0935\u0930\u094D\u0937\u093E";break;case "yy":n = "%d \u0935\u0930\u094D\u0937\u093E\u0902";break;}return n.replace(/%d/i, e);}l.defineLocale("mr", { months: "\u091C\u093E\u0928\u0947\u0935\u093E\u0930\u0940_\u092B\u0947\u092C\u094D\u0930\u0941\u0935\u093E\u0930\u0940_\u092E\u093E\u0930\u094D\u091A_\u090F\u092A\u094D\u0930\u093F\u0932_\u092E\u0947_\u091C\u0942\u0928_\u091C\u0941\u0932\u0948_\u0911\u0917\u0938\u094D\u091F_\u0938\u092A\u094D\u091F\u0947\u0902\u092C\u0930_\u0911\u0915\u094D\u091F\u094B\u092C\u0930_\u0928\u094B\u0935\u094D\u0939\u0947\u0902\u092C\u0930_\u0921\u093F\u0938\u0947\u0902\u092C\u0930".split("_"), monthsShort: "\u091C\u093E\u0928\u0947._\u092B\u0947\u092C\u094D\u0930\u0941._\u092E\u093E\u0930\u094D\u091A._\u090F\u092A\u094D\u0930\u093F._\u092E\u0947._\u091C\u0942\u0928._\u091C\u0941\u0932\u0948._\u0911\u0917._\u0938\u092A\u094D\u091F\u0947\u0902._\u0911\u0915\u094D\u091F\u094B._\u0928\u094B\u0935\u094D\u0939\u0947\u0902._\u0921\u093F\u0938\u0947\u0902.".split("_"), monthsParseExact: !0, weekdays: "\u0930\u0935\u093F\u0935\u093E\u0930_\u0938\u094B\u092E\u0935\u093E\u0930_\u092E\u0902\u0917\u0933\u0935\u093E\u0930_\u092C\u0941\u0927\u0935\u093E\u0930_\u0917\u0941\u0930\u0942\u0935\u093E\u0930_\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930_\u0936\u0928\u093F\u0935\u093E\u0930".split("_"), weekdaysShort: "\u0930\u0935\u093F_\u0938\u094B\u092E_\u092E\u0902\u0917\u0933_\u092C\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094D\u0930_\u0936\u0928\u093F".split("_"), weekdaysMin: "\u0930_\u0938\u094B_\u092E\u0902_\u092C\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"), longDateFormat: { LT: "A h:mm \u0935\u093E\u091C\u0924\u093E", LTS: "A h:mm:ss \u0935\u093E\u091C\u0924\u093E", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm \u0935\u093E\u091C\u0924\u093E", LLLL: "dddd, D MMMM YYYY, A h:mm \u0935\u093E\u091C\u0924\u093E" }, calendar: { sameDay: "[\u0906\u091C] LT", nextDay: "[\u0909\u0926\u094D\u092F\u093E] LT", nextWeek: "dddd, LT", lastDay: "[\u0915\u093E\u0932] LT", lastWeek: "[\u092E\u093E\u0917\u0940\u0932] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s\u092E\u0927\u094D\u092F\u0947", past: "%s\u092A\u0942\u0930\u094D\u0935\u0940", s: Hn, ss: Hn, m: Hn, mm: Hn, h: Hn, hh: Hn, d: Hn, dd: Hn, M: Hn, MM: Hn, y: Hn, yy: Hn }, preparse: function preparse(e) {return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g, function (e) {return Sn[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return vn[e];});}, meridiemParse: /\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0930\u093E\u0924\u094D\u0930\u0940" === a ? e < 4 ? e : e + 12 : "\u0938\u0915\u093E\u0933\u0940" === a ? e : "\u0926\u0941\u092A\u093E\u0930\u0940" === a ? 10 <= e ? e : e + 12 : "\u0938\u093E\u092F\u0902\u0915\u093E\u0933\u0940" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0930\u093E\u0924\u094D\u0930\u0940" : e < 10 ? "\u0938\u0915\u093E\u0933\u0940" : e < 17 ? "\u0926\u0941\u092A\u093E\u0930\u0940" : e < 20 ? "\u0938\u093E\u092F\u0902\u0915\u093E\u0933\u0940" : "\u0930\u093E\u0924\u094D\u0930\u0940";}, week: { dow: 0, doy: 6 } }), l.defineLocale("ms-my", { months: "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"), monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"), weekdays: "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"), weekdaysShort: "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"), weekdaysMin: "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, meridiemParse: /pagi|tengahari|petang|malam/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "pagi" === a ? e : "tengahari" === a ? 11 <= e ? e : e + 12 : "petang" === a || "malam" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 11 ? "pagi" : e < 15 ? "tengahari" : e < 19 ? "petang" : "malam";}, calendar: { sameDay: "[Hari ini pukul] LT", nextDay: "[Esok pukul] LT", nextWeek: "dddd [pukul] LT", lastDay: "[Kelmarin pukul] LT", lastWeek: "dddd [lepas pukul] LT", sameElse: "L" }, relativeTime: { future: "dalam %s", past: "%s yang lepas", s: "beberapa saat", ss: "%d saat", m: "seminit", mm: "%d minit", h: "sejam", hh: "%d jam", d: "sehari", dd: "%d hari", M: "sebulan", MM: "%d bulan", y: "setahun", yy: "%d tahun" }, week: { dow: 1, doy: 7 } }), l.defineLocale("ms", { months: "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"), monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"), weekdays: "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"), weekdaysShort: "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"), weekdaysMin: "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, meridiemParse: /pagi|tengahari|petang|malam/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "pagi" === a ? e : "tengahari" === a ? 11 <= e ? e : e + 12 : "petang" === a || "malam" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 11 ? "pagi" : e < 15 ? "tengahari" : e < 19 ? "petang" : "malam";}, calendar: { sameDay: "[Hari ini pukul] LT", nextDay: "[Esok pukul] LT", nextWeek: "dddd [pukul] LT", lastDay: "[Kelmarin pukul] LT", lastWeek: "dddd [lepas pukul] LT", sameElse: "L" }, relativeTime: { future: "dalam %s", past: "%s yang lepas", s: "beberapa saat", ss: "%d saat", m: "seminit", mm: "%d minit", h: "sejam", hh: "%d jam", d: "sehari", dd: "%d hari", M: "sebulan", MM: "%d bulan", y: "setahun", yy: "%d tahun" }, week: { dow: 1, doy: 7 } }), l.defineLocale("mt", { months: "Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010Bembru".split("_"), monthsShort: "Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010B".split("_"), weekdays: "Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"), weekdaysShort: "\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"), weekdaysMin: "\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Illum fil-]LT", nextDay: "[G\u0127ada fil-]LT", nextWeek: "dddd [fil-]LT", lastDay: "[Il-biera\u0127 fil-]LT", lastWeek: "dddd [li g\u0127adda] [fil-]LT", sameElse: "L" }, relativeTime: { future: "f\u2019 %s", past: "%s ilu", s: "ftit sekondi", ss: "%d sekondi", m: "minuta", mm: "%d minuti", h: "sieg\u0127a", hh: "%d sieg\u0127at", d: "\u0121urnata", dd: "%d \u0121ranet", M: "xahar", MM: "%d xhur", y: "sena", yy: "%d sni" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 1, doy: 4 } });var bn = { 1: "\u1041", 2: "\u1042", 3: "\u1043", 4: "\u1044", 5: "\u1045", 6: "\u1046", 7: "\u1047", 8: "\u1048", 9: "\u1049", 0: "\u1040" },jn = { "\u1041": "1", "\u1042": "2", "\u1043": "3", "\u1044": "4", "\u1045": "5", "\u1046": "6", "\u1047": "7", "\u1048": "8", "\u1049": "9", "\u1040": "0" };l.defineLocale("my", { months: "\u1007\u1014\u103A\u1014\u101D\u102B\u101B\u102E_\u1016\u1031\u1016\u1031\u102C\u103A\u101D\u102B\u101B\u102E_\u1019\u1010\u103A_\u1027\u1015\u103C\u102E_\u1019\u1031_\u1007\u103D\u1014\u103A_\u1007\u1030\u101C\u102D\u102F\u1004\u103A_\u101E\u103C\u1002\u102F\u1010\u103A_\u1005\u1000\u103A\u1010\u1004\u103A\u1018\u102C_\u1021\u1031\u102C\u1000\u103A\u1010\u102D\u102F\u1018\u102C_\u1014\u102D\u102F\u101D\u1004\u103A\u1018\u102C_\u1012\u102E\u1007\u1004\u103A\u1018\u102C".split("_"), monthsShort: "\u1007\u1014\u103A_\u1016\u1031_\u1019\u1010\u103A_\u1015\u103C\u102E_\u1019\u1031_\u1007\u103D\u1014\u103A_\u101C\u102D\u102F\u1004\u103A_\u101E\u103C_\u1005\u1000\u103A_\u1021\u1031\u102C\u1000\u103A_\u1014\u102D\u102F_\u1012\u102E".split("_"), weekdays: "\u1010\u1014\u1004\u103A\u1039\u1002\u1014\u103D\u1031_\u1010\u1014\u1004\u103A\u1039\u101C\u102C_\u1021\u1004\u103A\u1039\u1002\u102B_\u1017\u102F\u1012\u1039\u1013\u101F\u1030\u1038_\u1000\u103C\u102C\u101E\u1015\u1010\u1031\u1038_\u101E\u1031\u102C\u1000\u103C\u102C_\u1005\u1014\u1031".split("_"), weekdaysShort: "\u1014\u103D\u1031_\u101C\u102C_\u1002\u102B_\u101F\u1030\u1038_\u1000\u103C\u102C_\u101E\u1031\u102C_\u1014\u1031".split("_"), weekdaysMin: "\u1014\u103D\u1031_\u101C\u102C_\u1002\u102B_\u101F\u1030\u1038_\u1000\u103C\u102C_\u101E\u1031\u102C_\u1014\u1031".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u101A\u1014\u1031.] LT [\u1019\u103E\u102C]", nextDay: "[\u1019\u1014\u1000\u103A\u1016\u103C\u1014\u103A] LT [\u1019\u103E\u102C]", nextWeek: "dddd LT [\u1019\u103E\u102C]", lastDay: "[\u1019\u1014\u1031.\u1000] LT [\u1019\u103E\u102C]", lastWeek: "[\u1015\u103C\u102E\u1038\u1001\u1032\u1037\u101E\u1031\u102C] dddd LT [\u1019\u103E\u102C]", sameElse: "L" }, relativeTime: { future: "\u101C\u102C\u1019\u100A\u103A\u1037 %s \u1019\u103E\u102C", past: "\u101C\u103D\u1014\u103A\u1001\u1032\u1037\u101E\u1031\u102C %s \u1000", s: "\u1005\u1000\u1039\u1000\u1014\u103A.\u1021\u1014\u100A\u103A\u1038\u1004\u101A\u103A", ss: "%d \u1005\u1000\u1039\u1000\u1014\u1037\u103A", m: "\u1010\u1005\u103A\u1019\u102D\u1014\u1005\u103A", mm: "%d \u1019\u102D\u1014\u1005\u103A", h: "\u1010\u1005\u103A\u1014\u102C\u101B\u102E", hh: "%d \u1014\u102C\u101B\u102E", d: "\u1010\u1005\u103A\u101B\u1000\u103A", dd: "%d \u101B\u1000\u103A", M: "\u1010\u1005\u103A\u101C", MM: "%d \u101C", y: "\u1010\u1005\u103A\u1014\u103E\u1005\u103A", yy: "%d \u1014\u103E\u1005\u103A" }, preparse: function preparse(e) {return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g, function (e) {return jn[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return bn[e];});}, week: { dow: 1, doy: 4 } }), l.defineLocale("nb", { months: "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), monthsShort: "jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"), monthsParseExact: !0, weekdays: "s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"), weekdaysShort: "s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"), weekdaysMin: "s\xf8_ma_ti_on_to_fr_l\xf8".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY [kl.] HH:mm", LLLL: "dddd D. MMMM YYYY [kl.] HH:mm" }, calendar: { sameDay: "[i dag kl.] LT", nextDay: "[i morgen kl.] LT", nextWeek: "dddd [kl.] LT", lastDay: "[i g\xe5r kl.] LT", lastWeek: "[forrige] dddd [kl.] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "%s siden", s: "noen sekunder", ss: "%d sekunder", m: "ett minutt", mm: "%d minutter", h: "en time", hh: "%d timer", d: "en dag", dd: "%d dager", M: "en m\xe5ned", MM: "%d m\xe5neder", y: "ett \xe5r", yy: "%d \xe5r" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } });var xn = { 1: "\u0967", 2: "\u0968", 3: "\u0969", 4: "\u096A", 5: "\u096B", 6: "\u096C", 7: "\u096D", 8: "\u096E", 9: "\u096F", 0: "\u0966" },On = { "\u0967": "1", "\u0968": "2", "\u0969": "3", "\u096A": "4", "\u096B": "5", "\u096C": "6", "\u096D": "7", "\u096E": "8", "\u096F": "9", "\u0966": "0" };l.defineLocale("ne", { months: "\u091C\u0928\u0935\u0930\u0940_\u092B\u0947\u092C\u094D\u0930\u0941\u0935\u0930\u0940_\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u093F\u0932_\u092E\u0908_\u091C\u0941\u0928_\u091C\u0941\u0932\u093E\u0908_\u0905\u0917\u0937\u094D\u091F_\u0938\u0947\u092A\u094D\u091F\u0947\u092E\u094D\u092C\u0930_\u0905\u0915\u094D\u091F\u094B\u092C\u0930_\u0928\u094B\u092D\u0947\u092E\u094D\u092C\u0930_\u0921\u093F\u0938\u0947\u092E\u094D\u092C\u0930".split("_"), monthsShort: "\u091C\u0928._\u092B\u0947\u092C\u094D\u0930\u0941._\u092E\u093E\u0930\u094D\u091A_\u0905\u092A\u094D\u0930\u093F._\u092E\u0908_\u091C\u0941\u0928_\u091C\u0941\u0932\u093E\u0908._\u0905\u0917._\u0938\u0947\u092A\u094D\u091F._\u0905\u0915\u094D\u091F\u094B._\u0928\u094B\u092D\u0947._\u0921\u093F\u0938\u0947.".split("_"), monthsParseExact: !0, weekdays: "\u0906\u0907\u0924\u092C\u093E\u0930_\u0938\u094B\u092E\u092C\u093E\u0930_\u092E\u0919\u094D\u0917\u0932\u092C\u093E\u0930_\u092C\u0941\u0927\u092C\u093E\u0930_\u092C\u093F\u0939\u093F\u092C\u093E\u0930_\u0936\u0941\u0915\u094D\u0930\u092C\u093E\u0930_\u0936\u0928\u093F\u092C\u093E\u0930".split("_"), weekdaysShort: "\u0906\u0907\u0924._\u0938\u094B\u092E._\u092E\u0919\u094D\u0917\u0932._\u092C\u0941\u0927._\u092C\u093F\u0939\u093F._\u0936\u0941\u0915\u094D\u0930._\u0936\u0928\u093F.".split("_"), weekdaysMin: "\u0906._\u0938\u094B._\u092E\u0902._\u092C\u0941._\u092C\u093F._\u0936\u0941._\u0936.".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "A\u0915\u094B h:mm \u092C\u091C\u0947", LTS: "A\u0915\u094B h:mm:ss \u092C\u091C\u0947", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A\u0915\u094B h:mm \u092C\u091C\u0947", LLLL: "dddd, D MMMM YYYY, A\u0915\u094B h:mm \u092C\u091C\u0947" }, preparse: function preparse(e) {return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g, function (e) {return On[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return xn[e];});}, meridiemParse: /\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0930\u093E\u0924\u093F" === a ? e < 4 ? e : e + 12 : "\u092C\u093F\u0939\u093E\u0928" === a ? e : "\u0926\u093F\u0909\u0901\u0938\u094B" === a ? 10 <= e ? e : e + 12 : "\u0938\u093E\u0901\u091D" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 3 ? "\u0930\u093E\u0924\u093F" : e < 12 ? "\u092C\u093F\u0939\u093E\u0928" : e < 16 ? "\u0926\u093F\u0909\u0901\u0938\u094B" : e < 20 ? "\u0938\u093E\u0901\u091D" : "\u0930\u093E\u0924\u093F";}, calendar: { sameDay: "[\u0906\u091C] LT", nextDay: "[\u092D\u094B\u0932\u093F] LT", nextWeek: "[\u0906\u0909\u0901\u0926\u094B] dddd[,] LT", lastDay: "[\u0939\u093F\u091C\u094B] LT", lastWeek: "[\u0917\u090F\u0915\u094B] dddd[,] LT", sameElse: "L" }, relativeTime: { future: "%s\u092E\u093E", past: "%s \u0905\u0917\u093E\u0921\u093F", s: "\u0915\u0947\u0939\u0940 \u0915\u094D\u0937\u0923", ss: "%d \u0938\u0947\u0915\u0947\u0923\u094D\u0921", m: "\u090F\u0915 \u092E\u093F\u0928\u0947\u091F", mm: "%d \u092E\u093F\u0928\u0947\u091F", h: "\u090F\u0915 \u0918\u0923\u094D\u091F\u093E", hh: "%d \u0918\u0923\u094D\u091F\u093E", d: "\u090F\u0915 \u0926\u093F\u0928", dd: "%d \u0926\u093F\u0928", M: "\u090F\u0915 \u092E\u0939\u093F\u0928\u093E", MM: "%d \u092E\u0939\u093F\u0928\u093E", y: "\u090F\u0915 \u092C\u0930\u094D\u0937", yy: "%d \u092C\u0930\u094D\u0937" }, week: { dow: 0, doy: 6 } });var Pn = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Wn = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),An = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],En = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;l.defineLocale("nl-be", { months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"), monthsShort: function monthsShort(e, a) {return e ? /-MMM-/.test(a) ? Wn[e.month()] : Pn[e.month()] : Pn;}, monthsRegex: En, monthsShortRegex: En, monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, monthsParse: An, longMonthsParse: An, shortMonthsParse: An, weekdays: "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"), weekdaysShort: "zo._ma._di._wo._do._vr._za.".split("_"), weekdaysMin: "zo_ma_di_wo_do_vr_za".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[vandaag om] LT", nextDay: "[morgen om] LT", nextWeek: "dddd [om] LT", lastDay: "[gisteren om] LT", lastWeek: "[afgelopen] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "over %s", past: "%s geleden", s: "een paar seconden", ss: "%d seconden", m: "\xe9\xe9n minuut", mm: "%d minuten", h: "\xe9\xe9n uur", hh: "%d uur", d: "\xe9\xe9n dag", dd: "%d dagen", M: "\xe9\xe9n maand", MM: "%d maanden", y: "\xe9\xe9n jaar", yy: "%d jaar" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function ordinal(e) {return e + (1 === e || 8 === e || 20 <= e ? "ste" : "de");}, week: { dow: 1, doy: 4 } });var Fn = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),zn = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Jn = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],Nn = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;l.defineLocale("nl", { months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"), monthsShort: function monthsShort(e, a) {return e ? /-MMM-/.test(a) ? zn[e.month()] : Fn[e.month()] : Fn;}, monthsRegex: Nn, monthsShortRegex: Nn, monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, monthsParse: Jn, longMonthsParse: Jn, shortMonthsParse: Jn, weekdays: "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"), weekdaysShort: "zo._ma._di._wo._do._vr._za.".split("_"), weekdaysMin: "zo_ma_di_wo_do_vr_za".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[vandaag om] LT", nextDay: "[morgen om] LT", nextWeek: "dddd [om] LT", lastDay: "[gisteren om] LT", lastWeek: "[afgelopen] dddd [om] LT", sameElse: "L" }, relativeTime: { future: "over %s", past: "%s geleden", s: "een paar seconden", ss: "%d seconden", m: "\xe9\xe9n minuut", mm: "%d minuten", h: "\xe9\xe9n uur", hh: "%d uur", d: "\xe9\xe9n dag", dd: "%d dagen", M: "\xe9\xe9n maand", MM: "%d maanden", y: "\xe9\xe9n jaar", yy: "%d jaar" }, dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, ordinal: function ordinal(e) {return e + (1 === e || 8 === e || 20 <= e ? "ste" : "de");}, week: { dow: 1, doy: 4 } }), l.defineLocale("nn", { months: "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), monthsShort: "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"), weekdays: "sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"), weekdaysShort: "sun_m\xe5n_tys_ons_tor_fre_lau".split("_"), weekdaysMin: "su_m\xe5_ty_on_to_fr_l\xf8".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY [kl.] H:mm", LLLL: "dddd D. MMMM YYYY [kl.] HH:mm" }, calendar: { sameDay: "[I dag klokka] LT", nextDay: "[I morgon klokka] LT", nextWeek: "dddd [klokka] LT", lastDay: "[I g\xe5r klokka] LT", lastWeek: "[F\xf8reg\xe5ande] dddd [klokka] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "%s sidan", s: "nokre sekund", ss: "%d sekund", m: "eit minutt", mm: "%d minutt", h: "ein time", hh: "%d timar", d: "ein dag", dd: "%d dagar", M: "ein m\xe5nad", MM: "%d m\xe5nader", y: "eit \xe5r", yy: "%d \xe5r" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } });var Rn = { 1: "\u0A67", 2: "\u0A68", 3: "\u0A69", 4: "\u0A6A", 5: "\u0A6B", 6: "\u0A6C", 7: "\u0A6D", 8: "\u0A6E", 9: "\u0A6F", 0: "\u0A66" },Cn = { "\u0A67": "1", "\u0A68": "2", "\u0A69": "3", "\u0A6A": "4", "\u0A6B": "5", "\u0A6C": "6", "\u0A6D": "7", "\u0A6E": "8", "\u0A6F": "9", "\u0A66": "0" };l.defineLocale("pa-in", { months: "\u0A1C\u0A28\u0A35\u0A30\u0A40_\u0A2B\u0A3C\u0A30\u0A35\u0A30\u0A40_\u0A2E\u0A3E\u0A30\u0A1A_\u0A05\u0A2A\u0A4D\u0A30\u0A48\u0A32_\u0A2E\u0A08_\u0A1C\u0A42\u0A28_\u0A1C\u0A41\u0A32\u0A3E\u0A08_\u0A05\u0A17\u0A38\u0A24_\u0A38\u0A24\u0A70\u0A2C\u0A30_\u0A05\u0A15\u0A24\u0A42\u0A2C\u0A30_\u0A28\u0A35\u0A70\u0A2C\u0A30_\u0A26\u0A38\u0A70\u0A2C\u0A30".split("_"), monthsShort: "\u0A1C\u0A28\u0A35\u0A30\u0A40_\u0A2B\u0A3C\u0A30\u0A35\u0A30\u0A40_\u0A2E\u0A3E\u0A30\u0A1A_\u0A05\u0A2A\u0A4D\u0A30\u0A48\u0A32_\u0A2E\u0A08_\u0A1C\u0A42\u0A28_\u0A1C\u0A41\u0A32\u0A3E\u0A08_\u0A05\u0A17\u0A38\u0A24_\u0A38\u0A24\u0A70\u0A2C\u0A30_\u0A05\u0A15\u0A24\u0A42\u0A2C\u0A30_\u0A28\u0A35\u0A70\u0A2C\u0A30_\u0A26\u0A38\u0A70\u0A2C\u0A30".split("_"), weekdays: "\u0A10\u0A24\u0A35\u0A3E\u0A30_\u0A38\u0A4B\u0A2E\u0A35\u0A3E\u0A30_\u0A2E\u0A70\u0A17\u0A32\u0A35\u0A3E\u0A30_\u0A2C\u0A41\u0A27\u0A35\u0A3E\u0A30_\u0A35\u0A40\u0A30\u0A35\u0A3E\u0A30_\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30\u0A35\u0A3E\u0A30_\u0A38\u0A3C\u0A28\u0A40\u0A1A\u0A30\u0A35\u0A3E\u0A30".split("_"), weekdaysShort: "\u0A10\u0A24_\u0A38\u0A4B\u0A2E_\u0A2E\u0A70\u0A17\u0A32_\u0A2C\u0A41\u0A27_\u0A35\u0A40\u0A30_\u0A38\u0A3C\u0A41\u0A15\u0A30_\u0A38\u0A3C\u0A28\u0A40".split("_"), weekdaysMin: "\u0A10\u0A24_\u0A38\u0A4B\u0A2E_\u0A2E\u0A70\u0A17\u0A32_\u0A2C\u0A41\u0A27_\u0A35\u0A40\u0A30_\u0A38\u0A3C\u0A41\u0A15\u0A30_\u0A38\u0A3C\u0A28\u0A40".split("_"), longDateFormat: { LT: "A h:mm \u0A35\u0A1C\u0A47", LTS: "A h:mm:ss \u0A35\u0A1C\u0A47", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm \u0A35\u0A1C\u0A47", LLLL: "dddd, D MMMM YYYY, A h:mm \u0A35\u0A1C\u0A47" }, calendar: { sameDay: "[\u0A05\u0A1C] LT", nextDay: "[\u0A15\u0A32] LT", nextWeek: "[\u0A05\u0A17\u0A32\u0A3E] dddd, LT", lastDay: "[\u0A15\u0A32] LT", lastWeek: "[\u0A2A\u0A3F\u0A1B\u0A32\u0A47] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u0A35\u0A3F\u0A71\u0A1A", past: "%s \u0A2A\u0A3F\u0A1B\u0A32\u0A47", s: "\u0A15\u0A41\u0A1D \u0A38\u0A15\u0A3F\u0A70\u0A1F", ss: "%d \u0A38\u0A15\u0A3F\u0A70\u0A1F", m: "\u0A07\u0A15 \u0A2E\u0A3F\u0A70\u0A1F", mm: "%d \u0A2E\u0A3F\u0A70\u0A1F", h: "\u0A07\u0A71\u0A15 \u0A18\u0A70\u0A1F\u0A3E", hh: "%d \u0A18\u0A70\u0A1F\u0A47", d: "\u0A07\u0A71\u0A15 \u0A26\u0A3F\u0A28", dd: "%d \u0A26\u0A3F\u0A28", M: "\u0A07\u0A71\u0A15 \u0A2E\u0A39\u0A40\u0A28\u0A3E", MM: "%d \u0A2E\u0A39\u0A40\u0A28\u0A47", y: "\u0A07\u0A71\u0A15 \u0A38\u0A3E\u0A32", yy: "%d \u0A38\u0A3E\u0A32" }, preparse: function preparse(e) {return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g, function (e) {return Cn[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return Rn[e];});}, meridiemParse: /\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0A30\u0A3E\u0A24" === a ? e < 4 ? e : e + 12 : "\u0A38\u0A35\u0A47\u0A30" === a ? e : "\u0A26\u0A41\u0A2A\u0A39\u0A3F\u0A30" === a ? 10 <= e ? e : e + 12 : "\u0A38\u0A3C\u0A3E\u0A2E" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0A30\u0A3E\u0A24" : e < 10 ? "\u0A38\u0A35\u0A47\u0A30" : e < 17 ? "\u0A26\u0A41\u0A2A\u0A39\u0A3F\u0A30" : e < 20 ? "\u0A38\u0A3C\u0A3E\u0A2E" : "\u0A30\u0A3E\u0A24";}, week: { dow: 0, doy: 6 } });var In = "stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),Un = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_");function Gn(e) {return e % 10 < 5 && 1 < e % 10 && ~~(e / 10) % 10 != 1;}function Vn(e, a, t) {var s = e + " ";switch (t) {case "ss":return s + (Gn(e) ? "sekundy" : "sekund");case "m":return a ? "minuta" : "minut\u0119";case "mm":return s + (Gn(e) ? "minuty" : "minut");case "h":return a ? "godzina" : "godzin\u0119";case "hh":return s + (Gn(e) ? "godziny" : "godzin");case "MM":return s + (Gn(e) ? "miesi\u0105ce" : "miesi\u0119cy");case "yy":return s + (Gn(e) ? "lata" : "lat");}}function Kn(e, a, t) {var s = " ";return (20 <= e % 100 || 100 <= e && e % 100 == 0) && (s = " de "), e + s + { ss: "secunde", mm: "minute", hh: "ore", dd: "zile", MM: "luni", yy: "ani" }[t];}function Zn(e, a, t) {var s, n;return "m" === t ? a ? "\u043C\u0438\u043D\u0443\u0442\u0430" : "\u043C\u0438\u043D\u0443\u0442\u0443" : e + " " + (s = +e, n = { ss: a ? "\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434" : "\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u044B_\u0441\u0435\u043A\u0443\u043D\u0434", mm: a ? "\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442" : "\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442", hh: "\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432", dd: "\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439", MM: "\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432", yy: "\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442" }[t].split("_"), s % 10 == 1 && s % 100 != 11 ? n[0] : 2 <= s % 10 && s % 10 <= 4 && (s % 100 < 10 || 20 <= s % 100) ? n[1] : n[2]);}l.defineLocale("pl", { months: function months(e, a) {return e ? "" === a ? "(" + Un[e.month()] + "|" + In[e.month()] + ")" : /D MMMM/.test(a) ? Un[e.month()] : In[e.month()] : In;}, monthsShort: "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"), weekdays: "niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"), weekdaysShort: "ndz_pon_wt_\u015Br_czw_pt_sob".split("_"), weekdaysMin: "Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Dzi\u015B o] LT", nextDay: "[Jutro o] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[W niedziel\u0119 o] LT";case 2:return "[We wtorek o] LT";case 3:return "[W \u015Brod\u0119 o] LT";case 6:return "[W sobot\u0119 o] LT";default:return "[W] dddd [o] LT";}}, lastDay: "[Wczoraj o] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:return "[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return "[W zesz\u0142\u0105 \u015Brod\u0119 o] LT";case 6:return "[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return "[W zesz\u0142y] dddd [o] LT";}}, sameElse: "L" }, relativeTime: { future: "za %s", past: "%s temu", s: "kilka sekund", ss: Vn, m: Vn, mm: Vn, h: Vn, hh: Vn, d: "1 dzie\u0144", dd: "%d dni", M: "miesi\u0105c", MM: Vn, y: "rok", yy: Vn }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("pt-br", { months: "Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"), monthsShort: "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"), weekdays: "Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"), weekdaysShort: "Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"), weekdaysMin: "Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [\xe0s] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm" }, calendar: { sameDay: "[Hoje \xe0s] LT", nextDay: "[Amanh\xe3 \xe0s] LT", nextWeek: "dddd [\xe0s] LT", lastDay: "[Ontem \xe0s] LT", lastWeek: function lastWeek() {return 0 === this.day() || 6 === this.day() ? "[\xdaltimo] dddd [\xe0s] LT" : "[\xdaltima] dddd [\xe0s] LT";}, sameElse: "L" }, relativeTime: { future: "em %s", past: "h\xe1 %s", s: "poucos segundos", ss: "%d segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um m\xeas", MM: "%d meses", y: "um ano", yy: "%d anos" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba" }), l.defineLocale("pt", { months: "Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"), monthsShort: "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"), weekdays: "Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"), weekdaysShort: "Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"), weekdaysMin: "Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY HH:mm" }, calendar: { sameDay: "[Hoje \xe0s] LT", nextDay: "[Amanh\xe3 \xe0s] LT", nextWeek: "dddd [\xe0s] LT", lastDay: "[Ontem \xe0s] LT", lastWeek: function lastWeek() {return 0 === this.day() || 6 === this.day() ? "[\xdaltimo] dddd [\xe0s] LT" : "[\xdaltima] dddd [\xe0s] LT";}, sameElse: "L" }, relativeTime: { future: "em %s", past: "h\xe1 %s", s: "segundos", ss: "%d segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um m\xeas", MM: "%d meses", y: "um ano", yy: "%d anos" }, dayOfMonthOrdinalParse: /\d{1,2}\xba/, ordinal: "%d\xba", week: { dow: 1, doy: 4 } }), l.defineLocale("ro", { months: "ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"), monthsShort: "ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "duminic\u0103_luni_mar\u021Bi_miercuri_joi_vineri_s\xE2mb\u0103t\u0103".split("_"), weekdaysShort: "Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"), weekdaysMin: "Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY H:mm", LLLL: "dddd, D MMMM YYYY H:mm" }, calendar: { sameDay: "[azi la] LT", nextDay: "[m\xe2ine la] LT", nextWeek: "dddd [la] LT", lastDay: "[ieri la] LT", lastWeek: "[fosta] dddd [la] LT", sameElse: "L" }, relativeTime: { future: "peste %s", past: "%s \xEEn urm\u0103", s: "c\xe2teva secunde", ss: Kn, m: "un minut", mm: Kn, h: "o or\u0103", hh: Kn, d: "o zi", dd: Kn, M: "o lun\u0103", MM: Kn, y: "un an", yy: Kn }, week: { dow: 1, doy: 7 } });var $n = [/^\u044f\u043d\u0432/i, /^\u0444\u0435\u0432/i, /^\u043c\u0430\u0440/i, /^\u0430\u043f\u0440/i, /^\u043c\u0430[\u0439\u044f]/i, /^\u0438\u044e\u043d/i, /^\u0438\u044e\u043b/i, /^\u0430\u0432\u0433/i, /^\u0441\u0435\u043d/i, /^\u043e\u043a\u0442/i, /^\u043d\u043e\u044f/i, /^\u0434\u0435\u043a/i];l.defineLocale("ru", { months: { format: "\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"), standalone: "\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_") }, monthsShort: { format: "\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"), standalone: "\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_") }, weekdays: { standalone: "\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"), format: "\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043E\u0442\u0443".split("_"), isFormat: /\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/ }, weekdaysShort: "\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"), weekdaysMin: "\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"), monthsParse: $n, longMonthsParse: $n, shortMonthsParse: $n, monthsRegex: /^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i, monthsShortRegex: /^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i, monthsStrictRegex: /^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i, monthsShortStrictRegex: /^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY \u0433.", LLL: "D MMMM YYYY \u0433., H:mm", LLLL: "dddd, D MMMM YYYY \u0433., H:mm" }, calendar: { sameDay: "[\u0421\u0435\u0433\u043E\u0434\u043D\u044F, \u0432] LT", nextDay: "[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT", lastDay: "[\u0412\u0447\u0435\u0440\u0430, \u0432] LT", nextWeek: function nextWeek(e) {if (e.week() === this.week()) return 2 === this.day() ? "[\u0412\u043E] dddd, [\u0432] LT" : "[\u0412] dddd, [\u0432] LT";switch (this.day()) {case 0:return "[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return "[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return "[\u0412 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E] dddd, [\u0432] LT";}}, lastWeek: function lastWeek(e) {if (e.week() === this.week()) return 2 === this.day() ? "[\u0412\u043E] dddd, [\u0432] LT" : "[\u0412] dddd, [\u0432] LT";switch (this.day()) {case 0:return "[\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return "[\u0412 \u043F\u0440\u043E\u0448\u043B\u044B\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return "[\u0412 \u043F\u0440\u043E\u0448\u043B\u0443\u044E] dddd, [\u0432] LT";}}, sameElse: "L" }, relativeTime: { future: "\u0447\u0435\u0440\u0435\u0437 %s", past: "%s \u043D\u0430\u0437\u0430\u0434", s: "\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434", ss: Zn, m: Zn, mm: Zn, h: "\u0447\u0430\u0441", hh: Zn, d: "\u0434\u0435\u043D\u044C", dd: Zn, M: "\u043C\u0435\u0441\u044F\u0446", MM: Zn, y: "\u0433\u043E\u0434", yy: Zn }, meridiemParse: /\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i, isPM: function isPM(e) {return /^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e);}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u043D\u043E\u0447\u0438" : e < 12 ? "\u0443\u0442\u0440\u0430" : e < 17 ? "\u0434\u043D\u044F" : "\u0432\u0435\u0447\u0435\u0440\u0430";}, dayOfMonthOrdinalParse: /\d{1,2}-(\u0439|\u0433\u043e|\u044f)/, ordinal: function ordinal(e, a) {switch (a) {case "M":case "d":case "DDD":return e + "-\u0439";case "D":return e + "-\u0433\u043E";case "w":case "W":return e + "-\u044F";default:return e;}}, week: { dow: 1, doy: 4 } });var Bn = ["\u062C\u0646\u0648\u0631\u064A", "\u0641\u064A\u0628\u0631\u0648\u0631\u064A", "\u0645\u0627\u0631\u0686", "\u0627\u067E\u0631\u064A\u0644", "\u0645\u0626\u064A", "\u062C\u0648\u0646", "\u062C\u0648\u0644\u0627\u0621\u0650", "\u0622\u06AF\u0633\u067D", "\u0633\u064A\u067E\u067D\u0645\u0628\u0631", "\u0622\u06AA\u067D\u0648\u0628\u0631", "\u0646\u0648\u0645\u0628\u0631", "\u068A\u0633\u0645\u0628\u0631"],qn = ["\u0622\u0686\u0631", "\u0633\u0648\u0645\u0631", "\u0627\u06B1\u0627\u0631\u0648", "\u0627\u0631\u0628\u0639", "\u062E\u0645\u064A\u0633", "\u062C\u0645\u0639", "\u0687\u0646\u0687\u0631"];l.defineLocale("sd", { months: Bn, monthsShort: Bn, weekdays: qn, weekdaysShort: qn, weekdaysMin: qn, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd\u060C D MMMM YYYY HH:mm" }, meridiemParse: /\u0635\u0628\u062d|\u0634\u0627\u0645/, isPM: function isPM(e) {return "\u0634\u0627\u0645" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0635\u0628\u062D" : "\u0634\u0627\u0645";}, calendar: { sameDay: "[\u0627\u0684] LT", nextDay: "[\u0633\u0680\u0627\u06BB\u064A] LT", nextWeek: "dddd [\u0627\u06B3\u064A\u0646 \u0647\u0641\u062A\u064A \u062A\u064A] LT", lastDay: "[\u06AA\u0627\u0644\u0647\u0647] LT", lastWeek: "[\u06AF\u0632\u0631\u064A\u0644 \u0647\u0641\u062A\u064A] dddd [\u062A\u064A] LT", sameElse: "L" }, relativeTime: { future: "%s \u067E\u0648\u0621", past: "%s \u0627\u06B3", s: "\u0686\u0646\u062F \u0633\u064A\u06AA\u0646\u068A", ss: "%d \u0633\u064A\u06AA\u0646\u068A", m: "\u0647\u06AA \u0645\u0646\u067D", mm: "%d \u0645\u0646\u067D", h: "\u0647\u06AA \u06AA\u0644\u0627\u06AA", hh: "%d \u06AA\u0644\u0627\u06AA", d: "\u0647\u06AA \u068F\u064A\u0646\u0647\u0646", dd: "%d \u068F\u064A\u0646\u0647\u0646", M: "\u0647\u06AA \u0645\u0647\u064A\u0646\u0648", MM: "%d \u0645\u0647\u064A\u0646\u0627", y: "\u0647\u06AA \u0633\u0627\u0644", yy: "%d \u0633\u0627\u0644" }, preparse: function preparse(e) {return e.replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/,/g, "\u060C");}, week: { dow: 1, doy: 4 } }), l.defineLocale("se", { months: "o\u0111\u0111ajagem\xE1nnu_guovvam\xE1nnu_njuk\u010Dam\xE1nnu_cuo\u014Bom\xE1nnu_miessem\xE1nnu_geassem\xE1nnu_suoidnem\xE1nnu_borgem\xE1nnu_\u010Dak\u010Dam\xE1nnu_golggotm\xE1nnu_sk\xE1bmam\xE1nnu_juovlam\xE1nnu".split("_"), monthsShort: "o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010Dak\u010D_golg_sk\xE1b_juov".split("_"), weekdays: "sotnabeaivi_vuoss\xE1rga_ma\u014B\u014Beb\xE1rga_gaskavahkku_duorastat_bearjadat_l\xE1vvardat".split("_"), weekdaysShort: "sotn_vuos_ma\u014B_gask_duor_bear_l\xE1v".split("_"), weekdaysMin: "s_v_m_g_d_b_L".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "MMMM D. [b.] YYYY", LLL: "MMMM D. [b.] YYYY [ti.] HH:mm", LLLL: "dddd, MMMM D. [b.] YYYY [ti.] HH:mm" }, calendar: { sameDay: "[otne ti] LT", nextDay: "[ihttin ti] LT", nextWeek: "dddd [ti] LT", lastDay: "[ikte ti] LT", lastWeek: "[ovddit] dddd [ti] LT", sameElse: "L" }, relativeTime: { future: "%s gea\u017Ees", past: "ma\u014Bit %s", s: "moadde sekunddat", ss: "%d sekunddat", m: "okta minuhta", mm: "%d minuhtat", h: "okta diimmu", hh: "%d diimmut", d: "okta beaivi", dd: "%d beaivvit", M: "okta m\xe1nnu", MM: "%d m\xe1nut", y: "okta jahki", yy: "%d jagit" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("si", { months: "\u0DA2\u0DB1\u0DC0\u0DCF\u0DBB\u0DD2_\u0DB4\u0DD9\u0DB6\u0DBB\u0DC0\u0DCF\u0DBB\u0DD2_\u0DB8\u0DCF\u0DBB\u0DCA\u0DAD\u0DD4_\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA\u0DBD\u0DCA_\u0DB8\u0DD0\u0DBA\u0DD2_\u0DA2\u0DD6\u0DB1\u0DD2_\u0DA2\u0DD6\u0DBD\u0DD2_\u0D85\u0D9C\u0DDD\u0DC3\u0DCA\u0DAD\u0DD4_\u0DC3\u0DD0\u0DB4\u0DCA\u0DAD\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA_\u0D94\u0D9A\u0DCA\u0DAD\u0DDD\u0DB6\u0DBB\u0DCA_\u0DB1\u0DDC\u0DC0\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA_\u0DAF\u0DD9\u0DC3\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA".split("_"), monthsShort: "\u0DA2\u0DB1_\u0DB4\u0DD9\u0DB6_\u0DB8\u0DCF\u0DBB\u0DCA_\u0D85\u0DB4\u0DCA_\u0DB8\u0DD0\u0DBA\u0DD2_\u0DA2\u0DD6\u0DB1\u0DD2_\u0DA2\u0DD6\u0DBD\u0DD2_\u0D85\u0D9C\u0DDD_\u0DC3\u0DD0\u0DB4\u0DCA_\u0D94\u0D9A\u0DCA_\u0DB1\u0DDC\u0DC0\u0DD0_\u0DAF\u0DD9\u0DC3\u0DD0".split("_"), weekdays: "\u0D89\u0DBB\u0DD2\u0DAF\u0DCF_\u0DC3\u0DB3\u0DD4\u0DAF\u0DCF_\u0D85\u0D9F\u0DC4\u0DBB\u0DD4\u0DC0\u0DCF\u0DAF\u0DCF_\u0DB6\u0DAF\u0DCF\u0DAF\u0DCF_\u0DB6\u0DCA\u200D\u0DBB\u0DC4\u0DC3\u0DCA\u0DB4\u0DAD\u0DD2\u0DB1\u0DCA\u0DAF\u0DCF_\u0DC3\u0DD2\u0D9A\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF_\u0DC3\u0DD9\u0DB1\u0DC3\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF".split("_"), weekdaysShort: "\u0D89\u0DBB\u0DD2_\u0DC3\u0DB3\u0DD4_\u0D85\u0D9F_\u0DB6\u0DAF\u0DCF_\u0DB6\u0DCA\u200D\u0DBB\u0DC4_\u0DC3\u0DD2\u0D9A\u0DD4_\u0DC3\u0DD9\u0DB1".split("_"), weekdaysMin: "\u0D89_\u0DC3_\u0D85_\u0DB6_\u0DB6\u0DCA\u200D\u0DBB_\u0DC3\u0DD2_\u0DC3\u0DD9".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "a h:mm", LTS: "a h:mm:ss", L: "YYYY/MM/DD", LL: "YYYY MMMM D", LLL: "YYYY MMMM D, a h:mm", LLLL: "YYYY MMMM D [\u0DC0\u0DD0\u0DB1\u0DD2] dddd, a h:mm:ss" }, calendar: { sameDay: "[\u0D85\u0DAF] LT[\u0DA7]", nextDay: "[\u0DC4\u0DD9\u0DA7] LT[\u0DA7]", nextWeek: "dddd LT[\u0DA7]", lastDay: "[\u0D8A\u0DBA\u0DDA] LT[\u0DA7]", lastWeek: "[\u0DB4\u0DC3\u0DD4\u0D9C\u0DD2\u0DBA] dddd LT[\u0DA7]", sameElse: "L" }, relativeTime: { future: "%s\u0D9A\u0DD2\u0DB1\u0DCA", past: "%s\u0D9A\u0DA7 \u0DB4\u0DD9\u0DBB", s: "\u0DAD\u0DAD\u0DCA\u0DB4\u0DBB \u0D9A\u0DD2\u0DC4\u0DD2\u0DB4\u0DBA", ss: "\u0DAD\u0DAD\u0DCA\u0DB4\u0DBB %d", m: "\u0DB8\u0DD2\u0DB1\u0DD2\u0DAD\u0DCA\u0DAD\u0DD4\u0DC0", mm: "\u0DB8\u0DD2\u0DB1\u0DD2\u0DAD\u0DCA\u0DAD\u0DD4 %d", h: "\u0DB4\u0DD0\u0DBA", hh: "\u0DB4\u0DD0\u0DBA %d", d: "\u0DAF\u0DD2\u0DB1\u0DBA", dd: "\u0DAF\u0DD2\u0DB1 %d", M: "\u0DB8\u0DCF\u0DC3\u0DBA", MM: "\u0DB8\u0DCF\u0DC3 %d", y: "\u0DC0\u0DC3\u0DBB", yy: "\u0DC0\u0DC3\u0DBB %d" }, dayOfMonthOrdinalParse: /\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/, ordinal: function ordinal(e) {return e + " \u0DC0\u0DD0\u0DB1\u0DD2";}, meridiemParse: /\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./, isPM: function isPM(e) {return "\u0DB4.\u0DC0." === e || "\u0DB4\u0DC3\u0DCA \u0DC0\u0DBB\u0DD4" === e;}, meridiem: function meridiem(e, a, t) {return 11 < e ? t ? "\u0DB4.\u0DC0." : "\u0DB4\u0DC3\u0DCA \u0DC0\u0DBB\u0DD4" : t ? "\u0DB4\u0DD9.\u0DC0." : "\u0DB4\u0DD9\u0DBB \u0DC0\u0DBB\u0DD4";} });var Qn = "janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),Xn = "jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function ed(e) {return 1 < e && e < 5;}function ad(e, a, t, s) {var n = e + " ";switch (t) {case "s":return a || s ? "p\xe1r sek\xfand" : "p\xe1r sekundami";case "ss":return a || s ? n + (ed(e) ? "sekundy" : "sek\xfand") : n + "sekundami";break;case "m":return a ? "min\xfata" : s ? "min\xfatu" : "min\xfatou";case "mm":return a || s ? n + (ed(e) ? "min\xfaty" : "min\xfat") : n + "min\xfatami";break;case "h":return a ? "hodina" : s ? "hodinu" : "hodinou";case "hh":return a || s ? n + (ed(e) ? "hodiny" : "hod\xedn") : n + "hodinami";break;case "d":return a || s ? "de\u0148" : "d\u0148om";case "dd":return a || s ? n + (ed(e) ? "dni" : "dn\xed") : n + "d\u0148ami";break;case "M":return a || s ? "mesiac" : "mesiacom";case "MM":return a || s ? n + (ed(e) ? "mesiace" : "mesiacov") : n + "mesiacmi";break;case "y":return a || s ? "rok" : "rokom";case "yy":return a || s ? n + (ed(e) ? "roky" : "rokov") : n + "rokmi";break;}}function td(e, a, t, s) {var n = e + " ";switch (t) {case "s":return a || s ? "nekaj sekund" : "nekaj sekundami";case "ss":return n += 1 === e ? a ? "sekundo" : "sekundi" : 2 === e ? a || s ? "sekundi" : "sekundah" : e < 5 ? a || s ? "sekunde" : "sekundah" : "sekund";case "m":return a ? "ena minuta" : "eno minuto";case "mm":return n += 1 === e ? a ? "minuta" : "minuto" : 2 === e ? a || s ? "minuti" : "minutama" : e < 5 ? a || s ? "minute" : "minutami" : a || s ? "minut" : "minutami";case "h":return a ? "ena ura" : "eno uro";case "hh":return n += 1 === e ? a ? "ura" : "uro" : 2 === e ? a || s ? "uri" : "urama" : e < 5 ? a || s ? "ure" : "urami" : a || s ? "ur" : "urami";case "d":return a || s ? "en dan" : "enim dnem";case "dd":return n += 1 === e ? a || s ? "dan" : "dnem" : 2 === e ? a || s ? "dni" : "dnevoma" : a || s ? "dni" : "dnevi";case "M":return a || s ? "en mesec" : "enim mesecem";case "MM":return n += 1 === e ? a || s ? "mesec" : "mesecem" : 2 === e ? a || s ? "meseca" : "mesecema" : e < 5 ? a || s ? "mesece" : "meseci" : a || s ? "mesecev" : "meseci";case "y":return a || s ? "eno leto" : "enim letom";case "yy":return n += 1 === e ? a || s ? "leto" : "letom" : 2 === e ? a || s ? "leti" : "letoma" : e < 5 ? a || s ? "leta" : "leti" : a || s ? "let" : "leti";}}l.defineLocale("sk", { months: Qn, monthsShort: Xn, weekdays: "nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"), weekdaysShort: "ne_po_ut_st_\u0161t_pi_so".split("_"), weekdaysMin: "ne_po_ut_st_\u0161t_pi_so".split("_"), longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd D. MMMM YYYY H:mm" }, calendar: { sameDay: "[dnes o] LT", nextDay: "[zajtra o] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[v nede\u013Eu o] LT";case 1:case 2:return "[v] dddd [o] LT";case 3:return "[v stredu o] LT";case 4:return "[vo \u0161tvrtok o] LT";case 5:return "[v piatok o] LT";case 6:return "[v sobotu o] LT";}}, lastDay: "[v\u010Dera o] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:return "[minul\xFA nede\u013Eu o] LT";case 1:case 2:return "[minul\xfd] dddd [o] LT";case 3:return "[minul\xfa stredu o] LT";case 4:case 5:return "[minul\xfd] dddd [o] LT";case 6:return "[minul\xfa sobotu o] LT";}}, sameElse: "L" }, relativeTime: { future: "za %s", past: "pred %s", s: ad, ss: ad, m: ad, mm: ad, h: ad, hh: ad, d: ad, dd: ad, M: ad, MM: ad, y: ad, yy: ad }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("sl", { months: "januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"), monthsShort: "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "nedelja_ponedeljek_torek_sreda_\u010Detrtek_petek_sobota".split("_"), weekdaysShort: "ned._pon._tor._sre._\u010Det._pet._sob.".split("_"), weekdaysMin: "ne_po_to_sr_\u010De_pe_so".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danes ob] LT", nextDay: "[jutri ob] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[v] [nedeljo] [ob] LT";case 3:return "[v] [sredo] [ob] LT";case 6:return "[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return "[v] dddd [ob] LT";}}, lastDay: "[v\u010Deraj ob] LT", lastWeek: function lastWeek() {switch (this.day()) {case 0:return "[prej\u0161njo] [nedeljo] [ob] LT";case 3:return "[prej\u0161njo] [sredo] [ob] LT";case 6:return "[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return "[prej\u0161nji] dddd [ob] LT";}}, sameElse: "L" }, relativeTime: { future: "\u010Dez %s", past: "pred %s", s: td, ss: td, m: td, mm: td, h: td, hh: td, d: td, dd: td, M: td, MM: td, y: td, yy: td }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }), l.defineLocale("sq", { months: "Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"), monthsShort: "Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"), weekdays: "E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"), weekdaysShort: "Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"), weekdaysMin: "D_H_Ma_M\xeb_E_P_Sh".split("_"), weekdaysParseExact: !0, meridiemParse: /PD|MD/, isPM: function isPM(e) {return "M" === e.charAt(0);}, meridiem: function meridiem(e, a, t) {return e < 12 ? "PD" : "MD";}, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Sot n\xeb] LT", nextDay: "[Nes\xebr n\xeb] LT", nextWeek: "dddd [n\xeb] LT", lastDay: "[Dje n\xeb] LT", lastWeek: "dddd [e kaluar n\xeb] LT", sameElse: "L" }, relativeTime: { future: "n\xeb %s", past: "%s m\xeb par\xeb", s: "disa sekonda", ss: "%d sekonda", m: "nj\xeb minut\xeb", mm: "%d minuta", h: "nj\xeb or\xeb", hh: "%d or\xeb", d: "nj\xeb dit\xeb", dd: "%d dit\xeb", M: "nj\xeb muaj", MM: "%d muaj", y: "nj\xeb vit", yy: "%d vite" }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } });var sd = { words: { ss: ["\u0441\u0435\u043A\u0443\u043D\u0434\u0430", "\u0441\u0435\u043A\u0443\u043D\u0434\u0435", "\u0441\u0435\u043A\u0443\u043D\u0434\u0438"], m: ["\u0458\u0435\u0434\u0430\u043D \u043C\u0438\u043D\u0443\u0442", "\u0458\u0435\u0434\u043D\u0435 \u043C\u0438\u043D\u0443\u0442\u0435"], mm: ["\u043C\u0438\u043D\u0443\u0442", "\u043C\u0438\u043D\u0443\u0442\u0435", "\u043C\u0438\u043D\u0443\u0442\u0430"], h: ["\u0458\u0435\u0434\u0430\u043D \u0441\u0430\u0442", "\u0458\u0435\u0434\u043D\u043E\u0433 \u0441\u0430\u0442\u0430"], hh: ["\u0441\u0430\u0442", "\u0441\u0430\u0442\u0430", "\u0441\u0430\u0442\u0438"], dd: ["\u0434\u0430\u043D", "\u0434\u0430\u043D\u0430", "\u0434\u0430\u043D\u0430"], MM: ["\u043C\u0435\u0441\u0435\u0446", "\u043C\u0435\u0441\u0435\u0446\u0430", "\u043C\u0435\u0441\u0435\u0446\u0438"], yy: ["\u0433\u043E\u0434\u0438\u043D\u0430", "\u0433\u043E\u0434\u0438\u043D\u0435", "\u0433\u043E\u0434\u0438\u043D\u0430"] }, correctGrammaticalCase: function correctGrammaticalCase(e, a) {return 1 === e ? a[0] : 2 <= e && e <= 4 ? a[1] : a[2];}, translate: function translate(e, a, t) {var s = sd.words[t];return 1 === t.length ? a ? s[0] : s[1] : e + " " + sd.correctGrammaticalCase(e, s);} };l.defineLocale("sr-cyrl", { months: "\u0458\u0430\u043D\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0438\u043B_\u043C\u0430\u0458_\u0458\u0443\u043D_\u0458\u0443\u043B_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043F\u0442\u0435\u043C\u0431\u0430\u0440_\u043E\u043A\u0442\u043E\u0431\u0430\u0440_\u043D\u043E\u0432\u0435\u043C\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043C\u0431\u0430\u0440".split("_"), monthsShort: "\u0458\u0430\u043D._\u0444\u0435\u0431._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u0458_\u0458\u0443\u043D_\u0458\u0443\u043B_\u0430\u0432\u0433._\u0441\u0435\u043F._\u043E\u043A\u0442._\u043D\u043E\u0432._\u0434\u0435\u0446.".split("_"), monthsParseExact: !0, weekdays: "\u043D\u0435\u0434\u0435\u0459\u0430_\u043F\u043E\u043D\u0435\u0434\u0435\u0459\u0430\u043A_\u0443\u0442\u043E\u0440\u0430\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043A_\u043F\u0435\u0442\u0430\u043A_\u0441\u0443\u0431\u043E\u0442\u0430".split("_"), weekdaysShort: "\u043D\u0435\u0434._\u043F\u043E\u043D._\u0443\u0442\u043E._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043F\u0435\u0442._\u0441\u0443\u0431.".split("_"), weekdaysMin: "\u043D\u0435_\u043F\u043E_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043F\u0435_\u0441\u0443".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[\u0434\u0430\u043D\u0430\u0441 \u0443] LT", nextDay: "[\u0441\u0443\u0442\u0440\u0430 \u0443] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[\u0443] [\u043D\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return "[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return "[\u0443] [\u0441\u0443\u0431\u043E\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return "[\u0443] dddd [\u0443] LT";}}, lastDay: "[\u0458\u0443\u0447\u0435 \u0443] LT", lastWeek: function lastWeek() {return ["[\u043F\u0440\u043E\u0448\u043B\u0435] [\u043D\u0435\u0434\u0435\u0459\u0435] [\u0443] LT", "[\u043F\u0440\u043E\u0448\u043B\u043E\u0433] [\u043F\u043E\u043D\u0435\u0434\u0435\u0459\u043A\u0430] [\u0443] LT", "[\u043F\u0440\u043E\u0448\u043B\u043E\u0433] [\u0443\u0442\u043E\u0440\u043A\u0430] [\u0443] LT", "[\u043F\u0440\u043E\u0448\u043B\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT", "[\u043F\u0440\u043E\u0448\u043B\u043E\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043A\u0430] [\u0443] LT", "[\u043F\u0440\u043E\u0448\u043B\u043E\u0433] [\u043F\u0435\u0442\u043A\u0430] [\u0443] LT", "[\u043F\u0440\u043E\u0448\u043B\u0435] [\u0441\u0443\u0431\u043E\u0442\u0435] [\u0443] LT"][this.day()];}, sameElse: "L" }, relativeTime: { future: "\u0437\u0430 %s", past: "\u043F\u0440\u0435 %s", s: "\u043D\u0435\u043A\u043E\u043B\u0438\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434\u0438", ss: sd.translate, m: sd.translate, mm: sd.translate, h: sd.translate, hh: sd.translate, d: "\u0434\u0430\u043D", dd: sd.translate, M: "\u043C\u0435\u0441\u0435\u0446", MM: sd.translate, y: "\u0433\u043E\u0434\u0438\u043D\u0443", yy: sd.translate }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } });var nd = { words: { ss: ["sekunda", "sekunde", "sekundi"], m: ["jedan minut", "jedne minute"], mm: ["minut", "minute", "minuta"], h: ["jedan sat", "jednog sata"], hh: ["sat", "sata", "sati"], dd: ["dan", "dana", "dana"], MM: ["mesec", "meseca", "meseci"], yy: ["godina", "godine", "godina"] }, correctGrammaticalCase: function correctGrammaticalCase(e, a) {return 1 === e ? a[0] : 2 <= e && e <= 4 ? a[1] : a[2];}, translate: function translate(e, a, t) {var s = nd.words[t];return 1 === t.length ? a ? s[0] : s[1] : e + " " + nd.correctGrammaticalCase(e, s);} };l.defineLocale("sr", { months: "januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"), monthsShort: "jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"), monthsParseExact: !0, weekdays: "nedelja_ponedeljak_utorak_sreda_\u010Detvrtak_petak_subota".split("_"), weekdaysShort: "ned._pon._uto._sre._\u010Det._pet._sub.".split("_"), weekdaysMin: "ne_po_ut_sr_\u010De_pe_su".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY H:mm", LLLL: "dddd, D. MMMM YYYY H:mm" }, calendar: { sameDay: "[danas u] LT", nextDay: "[sutra u] LT", nextWeek: function nextWeek() {switch (this.day()) {case 0:return "[u] [nedelju] [u] LT";case 3:return "[u] [sredu] [u] LT";case 6:return "[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return "[u] dddd [u] LT";}}, lastDay: "[ju\u010De u] LT", lastWeek: function lastWeek() {return ["[pro\u0161le] [nedelje] [u] LT", "[pro\u0161log] [ponedeljka] [u] LT", "[pro\u0161log] [utorka] [u] LT", "[pro\u0161le] [srede] [u] LT", "[pro\u0161log] [\u010Detvrtka] [u] LT", "[pro\u0161log] [petka] [u] LT", "[pro\u0161le] [subote] [u] LT"][this.day()];}, sameElse: "L" }, relativeTime: { future: "za %s", past: "pre %s", s: "nekoliko sekundi", ss: nd.translate, m: nd.translate, mm: nd.translate, h: nd.translate, hh: nd.translate, d: "dan", dd: nd.translate, M: "mesec", MM: nd.translate, y: "godinu", yy: nd.translate }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 7 } }), l.defineLocale("ss", { months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"), monthsShort: "Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"), weekdays: "Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"), weekdaysShort: "Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"), weekdaysMin: "Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[Namuhla nga] LT", nextDay: "[Kusasa nga] LT", nextWeek: "dddd [nga] LT", lastDay: "[Itolo nga] LT", lastWeek: "dddd [leliphelile] [nga] LT", sameElse: "L" }, relativeTime: { future: "nga %s", past: "wenteka nga %s", s: "emizuzwana lomcane", ss: "%d mzuzwana", m: "umzuzu", mm: "%d emizuzu", h: "lihora", hh: "%d emahora", d: "lilanga", dd: "%d emalanga", M: "inyanga", MM: "%d tinyanga", y: "umnyaka", yy: "%d iminyaka" }, meridiemParse: /ekuseni|emini|entsambama|ebusuku/, meridiem: function meridiem(e, a, t) {return e < 11 ? "ekuseni" : e < 15 ? "emini" : e < 19 ? "entsambama" : "ebusuku";}, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "ekuseni" === a ? e : "emini" === a ? 11 <= e ? e : e + 12 : "entsambama" === a || "ebusuku" === a ? 0 === e ? 0 : e + 12 : void 0;}, dayOfMonthOrdinalParse: /\d{1,2}/, ordinal: "%d", week: { dow: 1, doy: 4 } }), l.defineLocale("sv", { months: "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"), monthsShort: "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"), weekdays: "s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"), weekdaysShort: "s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"), weekdaysMin: "s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [kl.] HH:mm", LLLL: "dddd D MMMM YYYY [kl.] HH:mm", lll: "D MMM YYYY HH:mm", llll: "ddd D MMM YYYY HH:mm" }, calendar: { sameDay: "[Idag] LT", nextDay: "[Imorgon] LT", lastDay: "[Ig\xe5r] LT", nextWeek: "[P\xe5] dddd LT", lastWeek: "[I] dddd[s] LT", sameElse: "L" }, relativeTime: { future: "om %s", past: "f\xf6r %s sedan", s: "n\xe5gra sekunder", ss: "%d sekunder", m: "en minut", mm: "%d minuter", h: "en timme", hh: "%d timmar", d: "en dag", dd: "%d dagar", M: "en m\xe5nad", MM: "%d m\xe5nader", y: "ett \xe5r", yy: "%d \xe5r" }, dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "e" : 1 === a ? "a" : 2 === a ? "a" : "e");}, week: { dow: 1, doy: 4 } }), l.defineLocale("sw", { months: "Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"), monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"), weekdays: "Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"), weekdaysShort: "Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"), weekdaysMin: "J2_J3_J4_J5_Al_Ij_J1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[leo saa] LT", nextDay: "[kesho saa] LT", nextWeek: "[wiki ijayo] dddd [saat] LT", lastDay: "[jana] LT", lastWeek: "[wiki iliyopita] dddd [saat] LT", sameElse: "L" }, relativeTime: { future: "%s baadaye", past: "tokea %s", s: "hivi punde", ss: "sekunde %d", m: "dakika moja", mm: "dakika %d", h: "saa limoja", hh: "masaa %d", d: "siku moja", dd: "masiku %d", M: "mwezi mmoja", MM: "miezi %d", y: "mwaka mmoja", yy: "miaka %d" }, week: { dow: 1, doy: 7 } });var dd = { 1: "\u0BE7", 2: "\u0BE8", 3: "\u0BE9", 4: "\u0BEA", 5: "\u0BEB", 6: "\u0BEC", 7: "\u0BED", 8: "\u0BEE", 9: "\u0BEF", 0: "\u0BE6" },rd = { "\u0BE7": "1", "\u0BE8": "2", "\u0BE9": "3", "\u0BEA": "4", "\u0BEB": "5", "\u0BEC": "6", "\u0BED": "7", "\u0BEE": "8", "\u0BEF": "9", "\u0BE6": "0" };l.defineLocale("ta", { months: "\u0B9C\u0BA9\u0BB5\u0BB0\u0BBF_\u0BAA\u0BBF\u0BAA\u0BCD\u0BB0\u0BB5\u0BB0\u0BBF_\u0BAE\u0BBE\u0BB0\u0BCD\u0B9A\u0BCD_\u0B8F\u0BAA\u0BCD\u0BB0\u0BB2\u0BCD_\u0BAE\u0BC7_\u0B9C\u0BC2\u0BA9\u0BCD_\u0B9C\u0BC2\u0BB2\u0BC8_\u0B86\u0B95\u0BB8\u0BCD\u0B9F\u0BCD_\u0B9A\u0BC6\u0BAA\u0BCD\u0B9F\u0BC6\u0BAE\u0BCD\u0BAA\u0BB0\u0BCD_\u0B85\u0B95\u0BCD\u0B9F\u0BC7\u0BBE\u0BAA\u0BB0\u0BCD_\u0BA8\u0BB5\u0BAE\u0BCD\u0BAA\u0BB0\u0BCD_\u0B9F\u0BBF\u0B9A\u0BAE\u0BCD\u0BAA\u0BB0\u0BCD".split("_"), monthsShort: "\u0B9C\u0BA9\u0BB5\u0BB0\u0BBF_\u0BAA\u0BBF\u0BAA\u0BCD\u0BB0\u0BB5\u0BB0\u0BBF_\u0BAE\u0BBE\u0BB0\u0BCD\u0B9A\u0BCD_\u0B8F\u0BAA\u0BCD\u0BB0\u0BB2\u0BCD_\u0BAE\u0BC7_\u0B9C\u0BC2\u0BA9\u0BCD_\u0B9C\u0BC2\u0BB2\u0BC8_\u0B86\u0B95\u0BB8\u0BCD\u0B9F\u0BCD_\u0B9A\u0BC6\u0BAA\u0BCD\u0B9F\u0BC6\u0BAE\u0BCD\u0BAA\u0BB0\u0BCD_\u0B85\u0B95\u0BCD\u0B9F\u0BC7\u0BBE\u0BAA\u0BB0\u0BCD_\u0BA8\u0BB5\u0BAE\u0BCD\u0BAA\u0BB0\u0BCD_\u0B9F\u0BBF\u0B9A\u0BAE\u0BCD\u0BAA\u0BB0\u0BCD".split("_"), weekdays: "\u0B9E\u0BBE\u0BAF\u0BBF\u0BB1\u0BCD\u0BB1\u0BC1\u0B95\u0BCD\u0B95\u0BBF\u0BB4\u0BAE\u0BC8_\u0BA4\u0BBF\u0B99\u0BCD\u0B95\u0B9F\u0BCD\u0B95\u0BBF\u0BB4\u0BAE\u0BC8_\u0B9A\u0BC6\u0BB5\u0BCD\u0BB5\u0BBE\u0BAF\u0BCD\u0B95\u0BBF\u0BB4\u0BAE\u0BC8_\u0BAA\u0BC1\u0BA4\u0BA9\u0BCD\u0B95\u0BBF\u0BB4\u0BAE\u0BC8_\u0BB5\u0BBF\u0BAF\u0BBE\u0BB4\u0B95\u0BCD\u0B95\u0BBF\u0BB4\u0BAE\u0BC8_\u0BB5\u0BC6\u0BB3\u0BCD\u0BB3\u0BBF\u0B95\u0BCD\u0B95\u0BBF\u0BB4\u0BAE\u0BC8_\u0B9A\u0BA9\u0BBF\u0B95\u0BCD\u0B95\u0BBF\u0BB4\u0BAE\u0BC8".split("_"), weekdaysShort: "\u0B9E\u0BBE\u0BAF\u0BBF\u0BB1\u0BC1_\u0BA4\u0BBF\u0B99\u0BCD\u0B95\u0BB3\u0BCD_\u0B9A\u0BC6\u0BB5\u0BCD\u0BB5\u0BBE\u0BAF\u0BCD_\u0BAA\u0BC1\u0BA4\u0BA9\u0BCD_\u0BB5\u0BBF\u0BAF\u0BBE\u0BB4\u0BA9\u0BCD_\u0BB5\u0BC6\u0BB3\u0BCD\u0BB3\u0BBF_\u0B9A\u0BA9\u0BBF".split("_"), weekdaysMin: "\u0B9E\u0BBE_\u0BA4\u0BBF_\u0B9A\u0BC6_\u0BAA\u0BC1_\u0BB5\u0BBF_\u0BB5\u0BC6_\u0B9A".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, HH:mm", LLLL: "dddd, D MMMM YYYY, HH:mm" }, calendar: { sameDay: "[\u0B87\u0BA9\u0BCD\u0BB1\u0BC1] LT", nextDay: "[\u0BA8\u0BBE\u0BB3\u0BC8] LT", nextWeek: "dddd, LT", lastDay: "[\u0BA8\u0BC7\u0BB1\u0BCD\u0BB1\u0BC1] LT", lastWeek: "[\u0B95\u0B9F\u0BA8\u0BCD\u0BA4 \u0BB5\u0BBE\u0BB0\u0BAE\u0BCD] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u0B87\u0BB2\u0BCD", past: "%s \u0BAE\u0BC1\u0BA9\u0BCD", s: "\u0B92\u0BB0\u0BC1 \u0B9A\u0BBF\u0BB2 \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD", ss: "%d \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD", m: "\u0B92\u0BB0\u0BC1 \u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0BAE\u0BCD", mm: "%d \u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0B99\u0BCD\u0B95\u0BB3\u0BCD", h: "\u0B92\u0BB0\u0BC1 \u0BAE\u0BA3\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD", hh: "%d \u0BAE\u0BA3\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD", d: "\u0B92\u0BB0\u0BC1 \u0BA8\u0BBE\u0BB3\u0BCD", dd: "%d \u0BA8\u0BBE\u0B9F\u0BCD\u0B95\u0BB3\u0BCD", M: "\u0B92\u0BB0\u0BC1 \u0BAE\u0BBE\u0BA4\u0BAE\u0BCD", MM: "%d \u0BAE\u0BBE\u0BA4\u0B99\u0BCD\u0B95\u0BB3\u0BCD", y: "\u0B92\u0BB0\u0BC1 \u0BB5\u0BB0\u0BC1\u0B9F\u0BAE\u0BCD", yy: "%d \u0B86\u0BA3\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD" }, dayOfMonthOrdinalParse: /\d{1,2}\u0bb5\u0ba4\u0bc1/, ordinal: function ordinal(e) {return e + "\u0BB5\u0BA4\u0BC1";}, preparse: function preparse(e) {return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g, function (e) {return rd[e];});}, postformat: function postformat(e) {return e.replace(/\d/g, function (e) {return dd[e];});}, meridiemParse: /\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/, meridiem: function meridiem(e, a, t) {return e < 2 ? " \u0BAF\u0BBE\u0BAE\u0BAE\u0BCD" : e < 6 ? " \u0BB5\u0BC8\u0B95\u0BB1\u0BC8" : e < 10 ? " \u0B95\u0BBE\u0BB2\u0BC8" : e < 14 ? " \u0BA8\u0BA3\u0BCD\u0BAA\u0B95\u0BB2\u0BCD" : e < 18 ? " \u0B8E\u0BB1\u0BCD\u0BAA\u0BBE\u0B9F\u0BC1" : e < 22 ? " \u0BAE\u0BBE\u0BB2\u0BC8" : " \u0BAF\u0BBE\u0BAE\u0BAE\u0BCD";}, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0BAF\u0BBE\u0BAE\u0BAE\u0BCD" === a ? e < 2 ? e : e + 12 : "\u0BB5\u0BC8\u0B95\u0BB1\u0BC8" === a || "\u0B95\u0BBE\u0BB2\u0BC8" === a ? e : "\u0BA8\u0BA3\u0BCD\u0BAA\u0B95\u0BB2\u0BCD" === a && 10 <= e ? e : e + 12;}, week: { dow: 0, doy: 6 } }), l.defineLocale("te", { months: "\u0C1C\u0C28\u0C35\u0C30\u0C3F_\u0C2B\u0C3F\u0C2C\u0C4D\u0C30\u0C35\u0C30\u0C3F_\u0C2E\u0C3E\u0C30\u0C4D\u0C1A\u0C3F_\u0C0F\u0C2A\u0C4D\u0C30\u0C3F\u0C32\u0C4D_\u0C2E\u0C47_\u0C1C\u0C42\u0C28\u0C4D_\u0C1C\u0C41\u0C32\u0C48_\u0C06\u0C17\u0C38\u0C4D\u0C1F\u0C41_\u0C38\u0C46\u0C2A\u0C4D\u0C1F\u0C46\u0C02\u0C2C\u0C30\u0C4D_\u0C05\u0C15\u0C4D\u0C1F\u0C4B\u0C2C\u0C30\u0C4D_\u0C28\u0C35\u0C02\u0C2C\u0C30\u0C4D_\u0C21\u0C3F\u0C38\u0C46\u0C02\u0C2C\u0C30\u0C4D".split("_"), monthsShort: "\u0C1C\u0C28._\u0C2B\u0C3F\u0C2C\u0C4D\u0C30._\u0C2E\u0C3E\u0C30\u0C4D\u0C1A\u0C3F_\u0C0F\u0C2A\u0C4D\u0C30\u0C3F._\u0C2E\u0C47_\u0C1C\u0C42\u0C28\u0C4D_\u0C1C\u0C41\u0C32\u0C48_\u0C06\u0C17._\u0C38\u0C46\u0C2A\u0C4D._\u0C05\u0C15\u0C4D\u0C1F\u0C4B._\u0C28\u0C35._\u0C21\u0C3F\u0C38\u0C46.".split("_"), monthsParseExact: !0, weekdays: "\u0C06\u0C26\u0C3F\u0C35\u0C3E\u0C30\u0C02_\u0C38\u0C4B\u0C2E\u0C35\u0C3E\u0C30\u0C02_\u0C2E\u0C02\u0C17\u0C33\u0C35\u0C3E\u0C30\u0C02_\u0C2C\u0C41\u0C27\u0C35\u0C3E\u0C30\u0C02_\u0C17\u0C41\u0C30\u0C41\u0C35\u0C3E\u0C30\u0C02_\u0C36\u0C41\u0C15\u0C4D\u0C30\u0C35\u0C3E\u0C30\u0C02_\u0C36\u0C28\u0C3F\u0C35\u0C3E\u0C30\u0C02".split("_"), weekdaysShort: "\u0C06\u0C26\u0C3F_\u0C38\u0C4B\u0C2E_\u0C2E\u0C02\u0C17\u0C33_\u0C2C\u0C41\u0C27_\u0C17\u0C41\u0C30\u0C41_\u0C36\u0C41\u0C15\u0C4D\u0C30_\u0C36\u0C28\u0C3F".split("_"), weekdaysMin: "\u0C06_\u0C38\u0C4B_\u0C2E\u0C02_\u0C2C\u0C41_\u0C17\u0C41_\u0C36\u0C41_\u0C36".split("_"), longDateFormat: { LT: "A h:mm", LTS: "A h:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY, A h:mm", LLLL: "dddd, D MMMM YYYY, A h:mm" }, calendar: { sameDay: "[\u0C28\u0C47\u0C21\u0C41] LT", nextDay: "[\u0C30\u0C47\u0C2A\u0C41] LT", nextWeek: "dddd, LT", lastDay: "[\u0C28\u0C3F\u0C28\u0C4D\u0C28] LT", lastWeek: "[\u0C17\u0C24] dddd, LT", sameElse: "L" }, relativeTime: { future: "%s \u0C32\u0C4B", past: "%s \u0C15\u0C4D\u0C30\u0C3F\u0C24\u0C02", s: "\u0C15\u0C4A\u0C28\u0C4D\u0C28\u0C3F \u0C15\u0C4D\u0C37\u0C23\u0C3E\u0C32\u0C41", ss: "%d \u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41", m: "\u0C12\u0C15 \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02", mm: "%d \u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32\u0C41", h: "\u0C12\u0C15 \u0C17\u0C02\u0C1F", hh: "%d \u0C17\u0C02\u0C1F\u0C32\u0C41", d: "\u0C12\u0C15 \u0C30\u0C4B\u0C1C\u0C41", dd: "%d \u0C30\u0C4B\u0C1C\u0C41\u0C32\u0C41", M: "\u0C12\u0C15 \u0C28\u0C46\u0C32", MM: "%d \u0C28\u0C46\u0C32\u0C32\u0C41", y: "\u0C12\u0C15 \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02", yy: "%d \u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32\u0C41" }, dayOfMonthOrdinalParse: /\d{1,2}\u0c35/, ordinal: "%d\u0C35", meridiemParse: /\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F" === a ? e < 4 ? e : e + 12 : "\u0C09\u0C26\u0C2F\u0C02" === a ? e : "\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02" === a ? 10 <= e ? e : e + 12 : "\u0C38\u0C3E\u0C2F\u0C02\u0C24\u0C4D\u0C30\u0C02" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F" : e < 10 ? "\u0C09\u0C26\u0C2F\u0C02" : e < 17 ? "\u0C2E\u0C27\u0C4D\u0C2F\u0C3E\u0C39\u0C4D\u0C28\u0C02" : e < 20 ? "\u0C38\u0C3E\u0C2F\u0C02\u0C24\u0C4D\u0C30\u0C02" : "\u0C30\u0C3E\u0C24\u0C4D\u0C30\u0C3F";}, week: { dow: 0, doy: 6 } }), l.defineLocale("tet", { months: "Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"), monthsShort: "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"), weekdays: "Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"), weekdaysShort: "Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"), weekdaysMin: "Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[Ohin iha] LT", nextDay: "[Aban iha] LT", nextWeek: "dddd [iha] LT", lastDay: "[Horiseik iha] LT", lastWeek: "dddd [semana kotuk] [iha] LT", sameElse: "L" }, relativeTime: { future: "iha %s", past: "%s liuba", s: "minutu balun", ss: "minutu %d", m: "minutu ida", mm: "minutu %d", h: "oras ida", hh: "oras %d", d: "loron ida", dd: "loron %d", M: "fulan ida", MM: "fulan %d", y: "tinan ida", yy: "tinan %d" }, dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");}, week: { dow: 1, doy: 4 } });var _d = { 0: "-\u0443\u043C", 1: "-\u0443\u043C", 2: "-\u044E\u043C", 3: "-\u044E\u043C", 4: "-\u0443\u043C", 5: "-\u0443\u043C", 6: "-\u0443\u043C", 7: "-\u0443\u043C", 8: "-\u0443\u043C", 9: "-\u0443\u043C", 10: "-\u0443\u043C", 12: "-\u0443\u043C", 13: "-\u0443\u043C", 20: "-\u0443\u043C", 30: "-\u044E\u043C", 40: "-\u0443\u043C", 50: "-\u0443\u043C", 60: "-\u0443\u043C", 70: "-\u0443\u043C", 80: "-\u0443\u043C", 90: "-\u0443\u043C", 100: "-\u0443\u043C" };l.defineLocale("tg", { months: "\u044F\u043D\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043B_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B_\u043C\u0430\u0439_\u0438\u044E\u043D_\u0438\u044E\u043B_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440_\u043E\u043A\u0442\u044F\u0431\u0440_\u043D\u043E\u044F\u0431\u0440_\u0434\u0435\u043A\u0430\u0431\u0440".split("_"), monthsShort: "\u044F\u043D\u0432_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0439_\u0438\u044E\u043D_\u0438\u044E\u043B_\u0430\u0432\u0433_\u0441\u0435\u043D_\u043E\u043A\u0442_\u043D\u043E\u044F_\u0434\u0435\u043A".split("_"), weekdays: "\u044F\u043A\u0448\u0430\u043D\u0431\u0435_\u0434\u0443\u0448\u0430\u043D\u0431\u0435_\u0441\u0435\u0448\u0430\u043D\u0431\u0435_\u0447\u043E\u0440\u0448\u0430\u043D\u0431\u0435_\u043F\u0430\u043D\u04B7\u0448\u0430\u043D\u0431\u0435_\u04B7\u0443\u043C\u044A\u0430_\u0448\u0430\u043D\u0431\u0435".split("_"), weekdaysShort: "\u044F\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043F\u0448\u0431_\u04B7\u0443\u043C_\u0448\u043D\u0431".split("_"), weekdaysMin: "\u044F\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043F\u0448_\u04B7\u043C_\u0448\u0431".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u0418\u043C\u0440\u04EF\u0437 \u0441\u043E\u0430\u0442\u0438] LT", nextDay: "[\u041F\u0430\u0433\u043E\u04B3 \u0441\u043E\u0430\u0442\u0438] LT", lastDay: "[\u0414\u0438\u0440\u04EF\u0437 \u0441\u043E\u0430\u0442\u0438] LT", nextWeek: "dddd[\u0438] [\u04B3\u0430\u0444\u0442\u0430\u0438 \u043E\u044F\u043D\u0434\u0430 \u0441\u043E\u0430\u0442\u0438] LT", lastWeek: "dddd[\u0438] [\u04B3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043E\u0430\u0442\u0438] LT", sameElse: "L" }, relativeTime: { future: "\u0431\u0430\u044A\u0434\u0438 %s", past: "%s \u043F\u0435\u0448", s: "\u044F\u043A\u0447\u0430\u043D\u0434 \u0441\u043E\u043D\u0438\u044F", m: "\u044F\u043A \u0434\u0430\u049B\u0438\u049B\u0430", mm: "%d \u0434\u0430\u049B\u0438\u049B\u0430", h: "\u044F\u043A \u0441\u043E\u0430\u0442", hh: "%d \u0441\u043E\u0430\u0442", d: "\u044F\u043A \u0440\u04EF\u0437", dd: "%d \u0440\u04EF\u0437", M: "\u044F\u043A \u043C\u043E\u04B3", MM: "%d \u043C\u043E\u04B3", y: "\u044F\u043A \u0441\u043E\u043B", yy: "%d \u0441\u043E\u043B" }, meridiemParse: /\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u0448\u0430\u0431" === a ? e < 4 ? e : e + 12 : "\u0441\u0443\u0431\u04B3" === a ? e : "\u0440\u04EF\u0437" === a ? 11 <= e ? e : e + 12 : "\u0431\u0435\u0433\u043E\u04B3" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u0448\u0430\u0431" : e < 11 ? "\u0441\u0443\u0431\u04B3" : e < 16 ? "\u0440\u04EF\u0437" : e < 19 ? "\u0431\u0435\u0433\u043E\u04B3" : "\u0448\u0430\u0431";}, dayOfMonthOrdinalParse: /\d{1,2}-(\u0443\u043c|\u044e\u043c)/, ordinal: function ordinal(e) {return e + (_d[e] || _d[e % 10] || _d[100 <= e ? 100 : null]);}, week: { dow: 1, doy: 7 } }), l.defineLocale("th", { months: "\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21_\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C_\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21_\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19_\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21_\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19_\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21_\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21_\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19_\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21_\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19_\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21".split("_"), monthsShort: "\u0E21.\u0E04._\u0E01.\u0E1E._\u0E21\u0E35.\u0E04._\u0E40\u0E21.\u0E22._\u0E1E.\u0E04._\u0E21\u0E34.\u0E22._\u0E01.\u0E04._\u0E2A.\u0E04._\u0E01.\u0E22._\u0E15.\u0E04._\u0E1E.\u0E22._\u0E18.\u0E04.".split("_"), monthsParseExact: !0, weekdays: "\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C_\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C_\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23_\u0E1E\u0E38\u0E18_\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35_\u0E28\u0E38\u0E01\u0E23\u0E4C_\u0E40\u0E2A\u0E32\u0E23\u0E4C".split("_"), weekdaysShort: "\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C_\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C_\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23_\u0E1E\u0E38\u0E18_\u0E1E\u0E24\u0E2B\u0E31\u0E2A_\u0E28\u0E38\u0E01\u0E23\u0E4C_\u0E40\u0E2A\u0E32\u0E23\u0E4C".split("_"), weekdaysMin: "\u0E2D\u0E32._\u0E08._\u0E2D._\u0E1E._\u0E1E\u0E24._\u0E28._\u0E2A.".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm", LLLL: "\u0E27\u0E31\u0E19dddd\u0E17\u0E35\u0E48 D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm" }, meridiemParse: /\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/, isPM: function isPM(e) {return "\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07" : "\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07";}, calendar: { sameDay: "[\u0E27\u0E31\u0E19\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT", nextDay: "[\u0E1E\u0E23\u0E38\u0E48\u0E07\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT", nextWeek: "dddd[\u0E2B\u0E19\u0E49\u0E32 \u0E40\u0E27\u0E25\u0E32] LT", lastDay: "[\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E27\u0E32\u0E19\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT", lastWeek: "[\u0E27\u0E31\u0E19]dddd[\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E27\u0E25\u0E32] LT", sameElse: "L" }, relativeTime: { future: "\u0E2D\u0E35\u0E01 %s", past: "%s\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27", s: "\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35", ss: "%d \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35", m: "1 \u0E19\u0E32\u0E17\u0E35", mm: "%d \u0E19\u0E32\u0E17\u0E35", h: "1 \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", hh: "%d \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07", d: "1 \u0E27\u0E31\u0E19", dd: "%d \u0E27\u0E31\u0E19", M: "1 \u0E40\u0E14\u0E37\u0E2D\u0E19", MM: "%d \u0E40\u0E14\u0E37\u0E2D\u0E19", y: "1 \u0E1B\u0E35", yy: "%d \u0E1B\u0E35" } }), l.defineLocale("tl-ph", { months: "Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"), monthsShort: "Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"), weekdays: "Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"), weekdaysShort: "Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"), weekdaysMin: "Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "MM/D/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY HH:mm", LLLL: "dddd, MMMM DD, YYYY HH:mm" }, calendar: { sameDay: "LT [ngayong araw]", nextDay: "[Bukas ng] LT", nextWeek: "LT [sa susunod na] dddd", lastDay: "LT [kahapon]", lastWeek: "LT [noong nakaraang] dddd", sameElse: "L" }, relativeTime: { future: "sa loob ng %s", past: "%s ang nakalipas", s: "ilang segundo", ss: "%d segundo", m: "isang minuto", mm: "%d minuto", h: "isang oras", hh: "%d oras", d: "isang araw", dd: "%d araw", M: "isang buwan", MM: "%d buwan", y: "isang taon", yy: "%d taon" }, dayOfMonthOrdinalParse: /\d{1,2}/, ordinal: function ordinal(e) {return e;}, week: { dow: 1, doy: 4 } });var id = "pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function od(e, a, t, s) {var n = function (e) {var a = Math.floor(e % 1e3 / 100),t = Math.floor(e % 100 / 10),s = e % 10,n = "";0 < a && (n += id[a] + "vatlh");0 < t && (n += ("" !== n ? " " : "") + id[t] + "maH");0 < s && (n += ("" !== n ? " " : "") + id[s]);return "" === n ? "pagh" : n;}(e);switch (t) {case "ss":return n + " lup";case "mm":return n + " tup";case "hh":return n + " rep";case "dd":return n + " jaj";case "MM":return n + " jar";case "yy":return n + " DIS";}}l.defineLocale("tlh", { months: "tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"), monthsShort: "jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"), monthsParseExact: !0, weekdays: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"), weekdaysShort: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"), weekdaysMin: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[DaHjaj] LT", nextDay: "[wa\u2019leS] LT", nextWeek: "LLL", lastDay: "[wa\u2019Hu\u2019] LT", lastWeek: "LLL", sameElse: "L" }, relativeTime: { future: function future(e) {var a = e;return a = -1 !== e.indexOf("jaj") ? a.slice(0, -3) + "leS" : -1 !== e.indexOf("jar") ? a.slice(0, -3) + "waQ" : -1 !== e.indexOf("DIS") ? a.slice(0, -3) + "nem" : a + " pIq";}, past: function past(e) {var a = e;return a = -1 !== e.indexOf("jaj") ? a.slice(0, -3) + "Hu\u2019" : -1 !== e.indexOf("jar") ? a.slice(0, -3) + "wen" : -1 !== e.indexOf("DIS") ? a.slice(0, -3) + "ben" : a + " ret";}, s: "puS lup", ss: od, m: "wa\u2019 tup", mm: od, h: "wa\u2019 rep", hh: od, d: "wa\u2019 jaj", dd: od, M: "wa\u2019 jar", MM: od, y: "wa\u2019 DIS", yy: od }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } });var md = { 1: "'inci", 5: "'inci", 8: "'inci", 70: "'inci", 80: "'inci", 2: "'nci", 7: "'nci", 20: "'nci", 50: "'nci", 3: "'\xfcnc\xfc", 4: "'\xfcnc\xfc", 100: "'\xfcnc\xfc", 6: "'nc\u0131", 9: "'uncu", 10: "'uncu", 30: "'uncu", 60: "'\u0131nc\u0131", 90: "'\u0131nc\u0131" };function ud(e, a, t, s) {var n = { s: ["viensas secunds", "'iensas secunds"], ss: [e + " secunds", e + " secunds"], m: ["'n m\xedut", "'iens m\xedut"], mm: [e + " m\xeduts", e + " m\xeduts"], h: ["'n \xfeora", "'iensa \xfeora"], hh: [e + " \xfeoras", e + " \xfeoras"], d: ["'n ziua", "'iensa ziua"], dd: [e + " ziuas", e + " ziuas"], M: ["'n mes", "'iens mes"], MM: [e + " mesen", e + " mesen"], y: ["'n ar", "'iens ar"], yy: [e + " ars", e + " ars"] };return s ? n[t][0] : a ? n[t][0] : n[t][1];}function ld(e, a, t) {var s, n;return "m" === t ? a ? "\u0445\u0432\u0438\u043B\u0438\u043D\u0430" : "\u0445\u0432\u0438\u043B\u0438\u043D\u0443" : "h" === t ? a ? "\u0433\u043E\u0434\u0438\u043D\u0430" : "\u0433\u043E\u0434\u0438\u043D\u0443" : e + " " + (s = +e, n = { ss: a ? "\u0441\u0435\u043A\u0443\u043D\u0434\u0430_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434" : "\u0441\u0435\u043A\u0443\u043D\u0434\u0443_\u0441\u0435\u043A\u0443\u043D\u0434\u0438_\u0441\u0435\u043A\u0443\u043D\u0434", mm: a ? "\u0445\u0432\u0438\u043B\u0438\u043D\u0430_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D" : "\u0445\u0432\u0438\u043B\u0438\u043D\u0443_\u0445\u0432\u0438\u043B\u0438\u043D\u0438_\u0445\u0432\u0438\u043B\u0438\u043D", hh: a ? "\u0433\u043E\u0434\u0438\u043D\u0430_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D" : "\u0433\u043E\u0434\u0438\u043D\u0443_\u0433\u043E\u0434\u0438\u043D\u0438_\u0433\u043E\u0434\u0438\u043D", dd: "\u0434\u0435\u043D\u044C_\u0434\u043D\u0456_\u0434\u043D\u0456\u0432", MM: "\u043C\u0456\u0441\u044F\u0446\u044C_\u043C\u0456\u0441\u044F\u0446\u0456_\u043C\u0456\u0441\u044F\u0446\u0456\u0432", yy: "\u0440\u0456\u043A_\u0440\u043E\u043A\u0438_\u0440\u043E\u043A\u0456\u0432" }[t].split("_"), s % 10 == 1 && s % 100 != 11 ? n[0] : 2 <= s % 10 && s % 10 <= 4 && (s % 100 < 10 || 20 <= s % 100) ? n[1] : n[2]);}function Md(e) {return function () {return e + "\u043E" + (11 === this.hours() ? "\u0431" : "") + "] LT";};}l.defineLocale("tr", { months: "Ocak_\u015Eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011Fustos_Eyl\xFCl_Ekim_Kas\u0131m_Aral\u0131k".split("_"), monthsShort: "Oca_\u015Eub_Mar_Nis_May_Haz_Tem_A\u011Fu_Eyl_Eki_Kas_Ara".split("_"), weekdays: "Pazar_Pazartesi_Sal\u0131_\xC7ar\u015Famba_Per\u015Fembe_Cuma_Cumartesi".split("_"), weekdaysShort: "Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"), weekdaysMin: "Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[bug\xfcn saat] LT", nextDay: "[yar\u0131n saat] LT", nextWeek: "[gelecek] dddd [saat] LT", lastDay: "[d\xfcn] LT", lastWeek: "[ge\xe7en] dddd [saat] LT", sameElse: "L" }, relativeTime: { future: "%s sonra", past: "%s \xf6nce", s: "birka\xe7 saniye", ss: "%d saniye", m: "bir dakika", mm: "%d dakika", h: "bir saat", hh: "%d saat", d: "bir g\xfcn", dd: "%d g\xfcn", M: "bir ay", MM: "%d ay", y: "bir y\u0131l", yy: "%d y\u0131l" }, ordinal: function ordinal(e, a) {switch (a) {case "d":case "D":case "Do":case "DD":return e;default:if (0 === e) return e + "'\u0131nc\u0131";var t = e % 10;return e + (md[t] || md[e % 100 - t] || md[100 <= e ? 100 : null]);}}, week: { dow: 1, doy: 7 } }), l.defineLocale("tzl", { months: "Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"), monthsShort: "Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"), weekdays: "S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"), weekdaysShort: "S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"), weekdaysMin: "S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"), longDateFormat: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD.MM.YYYY", LL: "D. MMMM [dallas] YYYY", LLL: "D. MMMM [dallas] YYYY HH.mm", LLLL: "dddd, [li] D. MMMM [dallas] YYYY HH.mm" }, meridiemParse: /d\'o|d\'a/i, isPM: function isPM(e) {return "d'o" === e.toLowerCase();}, meridiem: function meridiem(e, a, t) {return 11 < e ? t ? "d'o" : "D'O" : t ? "d'a" : "D'A";}, calendar: { sameDay: "[oxhi \xe0] LT", nextDay: "[dem\xe0 \xe0] LT", nextWeek: "dddd [\xe0] LT", lastDay: "[ieiri \xe0] LT", lastWeek: "[s\xfcr el] dddd [lasteu \xe0] LT", sameElse: "L" }, relativeTime: { future: "osprei %s", past: "ja%s", s: ud, ss: ud, m: ud, mm: ud, h: ud, hh: ud, d: ud, dd: ud, M: ud, MM: ud, y: ud, yy: ud }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal: "%d.", week: { dow: 1, doy: 4 } }), l.defineLocale("tzm-latn", { months: "innayr_br\u02E4ayr\u02E4_mar\u02E4s\u02E4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02E4wbr\u02E4_nwwanbir_dwjnbir".split("_"), monthsShort: "innayr_br\u02E4ayr\u02E4_mar\u02E4s\u02E4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02E4wbr\u02E4_nwwanbir_dwjnbir".split("_"), weekdays: "asamas_aynas_asinas_akras_akwas_asimwas_asi\u1E0Dyas".split("_"), weekdaysShort: "asamas_aynas_asinas_akras_akwas_asimwas_asi\u1E0Dyas".split("_"), weekdaysMin: "asamas_aynas_asinas_akras_akwas_asimwas_asi\u1E0Dyas".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[asdkh g] LT", nextDay: "[aska g] LT", nextWeek: "dddd [g] LT", lastDay: "[assant g] LT", lastWeek: "dddd [g] LT", sameElse: "L" }, relativeTime: { future: "dadkh s yan %s", past: "yan %s", s: "imik", ss: "%d imik", m: "minu\u1E0D", mm: "%d minu\u1E0D", h: "sa\u025Ba", hh: "%d tassa\u025Bin", d: "ass", dd: "%d ossan", M: "ayowr", MM: "%d iyyirn", y: "asgas", yy: "%d isgasn" }, week: { dow: 6, doy: 12 } }), l.defineLocale("tzm", { months: "\u2D49\u2D4F\u2D4F\u2D30\u2D62\u2D54_\u2D31\u2D55\u2D30\u2D62\u2D55_\u2D4E\u2D30\u2D55\u2D5A_\u2D49\u2D31\u2D54\u2D49\u2D54_\u2D4E\u2D30\u2D62\u2D62\u2D53_\u2D62\u2D53\u2D4F\u2D62\u2D53_\u2D62\u2D53\u2D4D\u2D62\u2D53\u2D63_\u2D56\u2D53\u2D5B\u2D5C_\u2D5B\u2D53\u2D5C\u2D30\u2D4F\u2D31\u2D49\u2D54_\u2D3D\u2D5F\u2D53\u2D31\u2D55_\u2D4F\u2D53\u2D61\u2D30\u2D4F\u2D31\u2D49\u2D54_\u2D37\u2D53\u2D4A\u2D4F\u2D31\u2D49\u2D54".split("_"), monthsShort: "\u2D49\u2D4F\u2D4F\u2D30\u2D62\u2D54_\u2D31\u2D55\u2D30\u2D62\u2D55_\u2D4E\u2D30\u2D55\u2D5A_\u2D49\u2D31\u2D54\u2D49\u2D54_\u2D4E\u2D30\u2D62\u2D62\u2D53_\u2D62\u2D53\u2D4F\u2D62\u2D53_\u2D62\u2D53\u2D4D\u2D62\u2D53\u2D63_\u2D56\u2D53\u2D5B\u2D5C_\u2D5B\u2D53\u2D5C\u2D30\u2D4F\u2D31\u2D49\u2D54_\u2D3D\u2D5F\u2D53\u2D31\u2D55_\u2D4F\u2D53\u2D61\u2D30\u2D4F\u2D31\u2D49\u2D54_\u2D37\u2D53\u2D4A\u2D4F\u2D31\u2D49\u2D54".split("_"), weekdays: "\u2D30\u2D59\u2D30\u2D4E\u2D30\u2D59_\u2D30\u2D62\u2D4F\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D4F\u2D30\u2D59_\u2D30\u2D3D\u2D54\u2D30\u2D59_\u2D30\u2D3D\u2D61\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D4E\u2D61\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D39\u2D62\u2D30\u2D59".split("_"), weekdaysShort: "\u2D30\u2D59\u2D30\u2D4E\u2D30\u2D59_\u2D30\u2D62\u2D4F\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D4F\u2D30\u2D59_\u2D30\u2D3D\u2D54\u2D30\u2D59_\u2D30\u2D3D\u2D61\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D4E\u2D61\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D39\u2D62\u2D30\u2D59".split("_"), weekdaysMin: "\u2D30\u2D59\u2D30\u2D4E\u2D30\u2D59_\u2D30\u2D62\u2D4F\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D4F\u2D30\u2D59_\u2D30\u2D3D\u2D54\u2D30\u2D59_\u2D30\u2D3D\u2D61\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D4E\u2D61\u2D30\u2D59_\u2D30\u2D59\u2D49\u2D39\u2D62\u2D30\u2D59".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, calendar: { sameDay: "[\u2D30\u2D59\u2D37\u2D45 \u2D34] LT", nextDay: "[\u2D30\u2D59\u2D3D\u2D30 \u2D34] LT", nextWeek: "dddd [\u2D34] LT", lastDay: "[\u2D30\u2D5A\u2D30\u2D4F\u2D5C \u2D34] LT", lastWeek: "dddd [\u2D34] LT", sameElse: "L" }, relativeTime: { future: "\u2D37\u2D30\u2D37\u2D45 \u2D59 \u2D62\u2D30\u2D4F %s", past: "\u2D62\u2D30\u2D4F %s", s: "\u2D49\u2D4E\u2D49\u2D3D", ss: "%d \u2D49\u2D4E\u2D49\u2D3D", m: "\u2D4E\u2D49\u2D4F\u2D53\u2D3A", mm: "%d \u2D4E\u2D49\u2D4F\u2D53\u2D3A", h: "\u2D59\u2D30\u2D44\u2D30", hh: "%d \u2D5C\u2D30\u2D59\u2D59\u2D30\u2D44\u2D49\u2D4F", d: "\u2D30\u2D59\u2D59", dd: "%d o\u2D59\u2D59\u2D30\u2D4F", M: "\u2D30\u2D62o\u2D53\u2D54", MM: "%d \u2D49\u2D62\u2D62\u2D49\u2D54\u2D4F", y: "\u2D30\u2D59\u2D33\u2D30\u2D59", yy: "%d \u2D49\u2D59\u2D33\u2D30\u2D59\u2D4F" }, week: { dow: 6, doy: 12 } }), l.defineLocale("ug-cn", { months: "\u064A\u0627\u0646\u06CB\u0627\u0631_\u0641\u06D0\u06CB\u0631\u0627\u0644_\u0645\u0627\u0631\u062A_\u0626\u0627\u067E\u0631\u06D0\u0644_\u0645\u0627\u064A_\u0626\u0649\u064A\u06C7\u0646_\u0626\u0649\u064A\u06C7\u0644_\u0626\u0627\u06CB\u063A\u06C7\u0633\u062A_\u0633\u06D0\u0646\u062A\u06D5\u0628\u0649\u0631_\u0626\u06C6\u0643\u062A\u06D5\u0628\u0649\u0631_\u0646\u0648\u064A\u0627\u0628\u0649\u0631_\u062F\u06D0\u0643\u0627\u0628\u0649\u0631".split("_"), monthsShort: "\u064A\u0627\u0646\u06CB\u0627\u0631_\u0641\u06D0\u06CB\u0631\u0627\u0644_\u0645\u0627\u0631\u062A_\u0626\u0627\u067E\u0631\u06D0\u0644_\u0645\u0627\u064A_\u0626\u0649\u064A\u06C7\u0646_\u0626\u0649\u064A\u06C7\u0644_\u0626\u0627\u06CB\u063A\u06C7\u0633\u062A_\u0633\u06D0\u0646\u062A\u06D5\u0628\u0649\u0631_\u0626\u06C6\u0643\u062A\u06D5\u0628\u0649\u0631_\u0646\u0648\u064A\u0627\u0628\u0649\u0631_\u062F\u06D0\u0643\u0627\u0628\u0649\u0631".split("_"), weekdays: "\u064A\u06D5\u0643\u0634\u06D5\u0646\u0628\u06D5_\u062F\u06C8\u0634\u06D5\u0646\u0628\u06D5_\u0633\u06D5\u064A\u0634\u06D5\u0646\u0628\u06D5_\u0686\u0627\u0631\u0634\u06D5\u0646\u0628\u06D5_\u067E\u06D5\u064A\u0634\u06D5\u0646\u0628\u06D5_\u062C\u06C8\u0645\u06D5_\u0634\u06D5\u0646\u0628\u06D5".split("_"), weekdaysShort: "\u064A\u06D5_\u062F\u06C8_\u0633\u06D5_\u0686\u0627_\u067E\u06D5_\u062C\u06C8_\u0634\u06D5".split("_"), weekdaysMin: "\u064A\u06D5_\u062F\u06C8_\u0633\u06D5_\u0686\u0627_\u067E\u06D5_\u062C\u06C8_\u0634\u06D5".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY-MM-DD", LL: "YYYY-\u064A\u0649\u0644\u0649M-\u0626\u0627\u064A\u0646\u0649\u06ADD-\u0643\u06C8\u0646\u0649", LLL: "YYYY-\u064A\u0649\u0644\u0649M-\u0626\u0627\u064A\u0646\u0649\u06ADD-\u0643\u06C8\u0646\u0649\u060C HH:mm", LLLL: "dddd\u060C YYYY-\u064A\u0649\u0644\u0649M-\u0626\u0627\u064A\u0646\u0649\u06ADD-\u0643\u06C8\u0646\u0649\u060C HH:mm" }, meridiemParse: /\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u064A\u06D0\u0631\u0649\u0645 \u0643\u06D0\u0686\u06D5" === a || "\u0633\u06D5\u06BE\u06D5\u0631" === a || "\u0686\u06C8\u0634\u062A\u0649\u0646 \u0628\u06C7\u0631\u06C7\u0646" === a ? e : "\u0686\u06C8\u0634\u062A\u0649\u0646 \u0643\u06D0\u064A\u0649\u0646" === a || "\u0643\u06D5\u0686" === a ? e + 12 : 11 <= e ? e : e + 12;}, meridiem: function meridiem(e, a, t) {var s = 100 * e + a;return s < 600 ? "\u064A\u06D0\u0631\u0649\u0645 \u0643\u06D0\u0686\u06D5" : s < 900 ? "\u0633\u06D5\u06BE\u06D5\u0631" : s < 1130 ? "\u0686\u06C8\u0634\u062A\u0649\u0646 \u0628\u06C7\u0631\u06C7\u0646" : s < 1230 ? "\u0686\u06C8\u0634" : s < 1800 ? "\u0686\u06C8\u0634\u062A\u0649\u0646 \u0643\u06D0\u064A\u0649\u0646" : "\u0643\u06D5\u0686";}, calendar: { sameDay: "[\u0628\u06C8\u06AF\u06C8\u0646 \u0633\u0627\u0626\u06D5\u062A] LT", nextDay: "[\u0626\u06D5\u062A\u06D5 \u0633\u0627\u0626\u06D5\u062A] LT", nextWeek: "[\u0643\u06D0\u0644\u06D5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06D5\u062A] LT", lastDay: "[\u062A\u06C6\u0646\u06C8\u06AF\u06C8\u0646] LT", lastWeek: "[\u0626\u0627\u0644\u062F\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06D5\u062A] LT", sameElse: "L" }, relativeTime: { future: "%s \u0643\u06D0\u064A\u0649\u0646", past: "%s \u0628\u06C7\u0631\u06C7\u0646", s: "\u0646\u06D5\u0686\u0686\u06D5 \u0633\u06D0\u0643\u0648\u0646\u062A", ss: "%d \u0633\u06D0\u0643\u0648\u0646\u062A", m: "\u0628\u0649\u0631 \u0645\u0649\u0646\u06C7\u062A", mm: "%d \u0645\u0649\u0646\u06C7\u062A", h: "\u0628\u0649\u0631 \u0633\u0627\u0626\u06D5\u062A", hh: "%d \u0633\u0627\u0626\u06D5\u062A", d: "\u0628\u0649\u0631 \u0643\u06C8\u0646", dd: "%d \u0643\u06C8\u0646", M: "\u0628\u0649\u0631 \u0626\u0627\u064A", MM: "%d \u0626\u0627\u064A", y: "\u0628\u0649\u0631 \u064A\u0649\u0644", yy: "%d \u064A\u0649\u0644" }, dayOfMonthOrdinalParse: /\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/, ordinal: function ordinal(e, a) {switch (a) {case "d":case "D":case "DDD":return e + "-\u0643\u06C8\u0646\u0649";case "w":case "W":return e + "-\u06BE\u06D5\u067E\u062A\u06D5";default:return e;}}, preparse: function preparse(e) {return e.replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/,/g, "\u060C");}, week: { dow: 1, doy: 7 } }), l.defineLocale("uk", { months: { format: "\u0441\u0456\u0447\u043D\u044F_\u043B\u044E\u0442\u043E\u0433\u043E_\u0431\u0435\u0440\u0435\u0437\u043D\u044F_\u043A\u0432\u0456\u0442\u043D\u044F_\u0442\u0440\u0430\u0432\u043D\u044F_\u0447\u0435\u0440\u0432\u043D\u044F_\u043B\u0438\u043F\u043D\u044F_\u0441\u0435\u0440\u043F\u043D\u044F_\u0432\u0435\u0440\u0435\u0441\u043D\u044F_\u0436\u043E\u0432\u0442\u043D\u044F_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043D\u044F".split("_"), standalone: "\u0441\u0456\u0447\u0435\u043D\u044C_\u043B\u044E\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043D\u044C_\u043A\u0432\u0456\u0442\u0435\u043D\u044C_\u0442\u0440\u0430\u0432\u0435\u043D\u044C_\u0447\u0435\u0440\u0432\u0435\u043D\u044C_\u043B\u0438\u043F\u0435\u043D\u044C_\u0441\u0435\u0440\u043F\u0435\u043D\u044C_\u0432\u0435\u0440\u0435\u0441\u0435\u043D\u044C_\u0436\u043E\u0432\u0442\u0435\u043D\u044C_\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043D\u044C".split("_") }, monthsShort: "\u0441\u0456\u0447_\u043B\u044E\u0442_\u0431\u0435\u0440_\u043A\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043B\u0438\u043F_\u0441\u0435\u0440\u043F_\u0432\u0435\u0440_\u0436\u043E\u0432\u0442_\u043B\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"), weekdays: function weekdays(e, a) {var t = { nominative: "\u043D\u0435\u0434\u0456\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044F_\u0441\u0443\u0431\u043E\u0442\u0430".split("_"), accusative: "\u043D\u0435\u0434\u0456\u043B\u044E_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A_\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u044E_\u0441\u0443\u0431\u043E\u0442\u0443".split("_"), genitive: "\u043D\u0435\u0434\u0456\u043B\u0456_\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043A\u0430_\u0432\u0456\u0432\u0442\u043E\u0440\u043A\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043F\u2019\u044F\u0442\u043D\u0438\u0446\u0456_\u0441\u0443\u0431\u043E\u0442\u0438".split("_") };return !0 === e ? t.nominative.slice(1, 7).concat(t.nominative.slice(0, 1)) : e ? t[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(a) ? "accusative" : /\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(a) ? "genitive" : "nominative"][e.day()] : t.nominative;}, weekdaysShort: "\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"), weekdaysMin: "\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY \u0440.", LLL: "D MMMM YYYY \u0440., HH:mm", LLLL: "dddd, D MMMM YYYY \u0440., HH:mm" }, calendar: { sameDay: Md("[\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456 "), nextDay: Md("[\u0417\u0430\u0432\u0442\u0440\u0430 "), lastDay: Md("[\u0412\u0447\u043E\u0440\u0430 "), nextWeek: Md("[\u0423] dddd ["), lastWeek: function lastWeek() {switch (this.day()) {case 0:case 3:case 5:case 6:return Md("[\u041C\u0438\u043D\u0443\u043B\u043E\u0457] dddd [").call(this);case 1:case 2:case 4:return Md("[\u041C\u0438\u043D\u0443\u043B\u043E\u0433\u043E] dddd [").call(this);}}, sameElse: "L" }, relativeTime: { future: "\u0437\u0430 %s", past: "%s \u0442\u043E\u043C\u0443", s: "\u0434\u0435\u043A\u0456\u043B\u044C\u043A\u0430 \u0441\u0435\u043A\u0443\u043D\u0434", ss: ld, m: ld, mm: ld, h: "\u0433\u043E\u0434\u0438\u043D\u0443", hh: ld, d: "\u0434\u0435\u043D\u044C", dd: ld, M: "\u043C\u0456\u0441\u044F\u0446\u044C", MM: ld, y: "\u0440\u0456\u043A", yy: ld }, meridiemParse: /\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/, isPM: function isPM(e) {return /^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e);}, meridiem: function meridiem(e, a, t) {return e < 4 ? "\u043D\u043E\u0447\u0456" : e < 12 ? "\u0440\u0430\u043D\u043A\u0443" : e < 17 ? "\u0434\u043D\u044F" : "\u0432\u0435\u0447\u043E\u0440\u0430";}, dayOfMonthOrdinalParse: /\d{1,2}-(\u0439|\u0433\u043e)/, ordinal: function ordinal(e, a) {switch (a) {case "M":case "d":case "DDD":case "w":case "W":return e + "-\u0439";case "D":return e + "-\u0433\u043E";default:return e;}}, week: { dow: 1, doy: 7 } });var hd = ["\u062C\u0646\u0648\u0631\u06CC", "\u0641\u0631\u0648\u0631\u06CC", "\u0645\u0627\u0631\u0686", "\u0627\u067E\u0631\u06CC\u0644", "\u0645\u0626\u06CC", "\u062C\u0648\u0646", "\u062C\u0648\u0644\u0627\u0626\u06CC", "\u0627\u06AF\u0633\u062A", "\u0633\u062A\u0645\u0628\u0631", "\u0627\u06A9\u062A\u0648\u0628\u0631", "\u0646\u0648\u0645\u0628\u0631", "\u062F\u0633\u0645\u0628\u0631"],Ld = ["\u0627\u062A\u0648\u0627\u0631", "\u067E\u06CC\u0631", "\u0645\u0646\u06AF\u0644", "\u0628\u062F\u06BE", "\u062C\u0645\u0639\u0631\u0627\u062A", "\u062C\u0645\u0639\u06C1", "\u06C1\u0641\u062A\u06C1"];return l.defineLocale("ur", { months: hd, monthsShort: hd, weekdays: Ld, weekdaysShort: Ld, weekdaysMin: Ld, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd\u060C D MMMM YYYY HH:mm" }, meridiemParse: /\u0635\u0628\u062d|\u0634\u0627\u0645/, isPM: function isPM(e) {return "\u0634\u0627\u0645" === e;}, meridiem: function meridiem(e, a, t) {return e < 12 ? "\u0635\u0628\u062D" : "\u0634\u0627\u0645";}, calendar: { sameDay: "[\u0622\u062C \u0628\u0648\u0642\u062A] LT", nextDay: "[\u06A9\u0644 \u0628\u0648\u0642\u062A] LT", nextWeek: "dddd [\u0628\u0648\u0642\u062A] LT", lastDay: "[\u06AF\u0630\u0634\u062A\u06C1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062A] LT", lastWeek: "[\u06AF\u0630\u0634\u062A\u06C1] dddd [\u0628\u0648\u0642\u062A] LT", sameElse: "L" }, relativeTime: { future: "%s \u0628\u0639\u062F", past: "%s \u0642\u0628\u0644", s: "\u0686\u0646\u062F \u0633\u06CC\u06A9\u0646\u0688", ss: "%d \u0633\u06CC\u06A9\u0646\u0688", m: "\u0627\u06CC\u06A9 \u0645\u0646\u0679", mm: "%d \u0645\u0646\u0679", h: "\u0627\u06CC\u06A9 \u06AF\u06BE\u0646\u0679\u06C1", hh: "%d \u06AF\u06BE\u0646\u0679\u06D2", d: "\u0627\u06CC\u06A9 \u062F\u0646", dd: "%d \u062F\u0646", M: "\u0627\u06CC\u06A9 \u0645\u0627\u06C1", MM: "%d \u0645\u0627\u06C1", y: "\u0627\u06CC\u06A9 \u0633\u0627\u0644", yy: "%d \u0633\u0627\u0644" }, preparse: function preparse(e) {return e.replace(/\u060c/g, ",");}, postformat: function postformat(e) {return e.replace(/,/g, "\u060C");}, week: { dow: 1, doy: 4 } }), l.defineLocale("uz-latn", { months: "Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"), monthsShort: "Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"), weekdays: "Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"), weekdaysShort: "Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"), weekdaysMin: "Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "D MMMM YYYY, dddd HH:mm" }, calendar: { sameDay: "[Bugun soat] LT [da]", nextDay: "[Ertaga] LT [da]", nextWeek: "dddd [kuni soat] LT [da]", lastDay: "[Kecha soat] LT [da]", lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", sameElse: "L" }, relativeTime: { future: "Yaqin %s ichida", past: "Bir necha %s oldin", s: "soniya", ss: "%d soniya", m: "bir daqiqa", mm: "%d daqiqa", h: "bir soat", hh: "%d soat", d: "bir kun", dd: "%d kun", M: "bir oy", MM: "%d oy", y: "bir yil", yy: "%d yil" }, week: { dow: 1, doy: 7 } }), l.defineLocale("uz", { months: "\u044F\u043D\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043B_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B_\u043C\u0430\u0439_\u0438\u044E\u043D_\u0438\u044E\u043B_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440_\u043E\u043A\u0442\u044F\u0431\u0440_\u043D\u043E\u044F\u0431\u0440_\u0434\u0435\u043A\u0430\u0431\u0440".split("_"), monthsShort: "\u044F\u043D\u0432_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0439_\u0438\u044E\u043D_\u0438\u044E\u043B_\u0430\u0432\u0433_\u0441\u0435\u043D_\u043E\u043A\u0442_\u043D\u043E\u044F_\u0434\u0435\u043A".split("_"), weekdays: "\u042F\u043A\u0448\u0430\u043D\u0431\u0430_\u0414\u0443\u0448\u0430\u043D\u0431\u0430_\u0421\u0435\u0448\u0430\u043D\u0431\u0430_\u0427\u043E\u0440\u0448\u0430\u043D\u0431\u0430_\u041F\u0430\u0439\u0448\u0430\u043D\u0431\u0430_\u0416\u0443\u043C\u0430_\u0428\u0430\u043D\u0431\u0430".split("_"), weekdaysShort: "\u042F\u043A\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043E\u0440_\u041F\u0430\u0439_\u0416\u0443\u043C_\u0428\u0430\u043D".split("_"), weekdaysMin: "\u042F\u043A_\u0414\u0443_\u0421\u0435_\u0427\u043E_\u041F\u0430_\u0416\u0443_\u0428\u0430".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "D MMMM YYYY, dddd HH:mm" }, calendar: { sameDay: "[\u0411\u0443\u0433\u0443\u043D \u0441\u043E\u0430\u0442] LT [\u0434\u0430]", nextDay: "[\u042D\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]", nextWeek: "dddd [\u043A\u0443\u043D\u0438 \u0441\u043E\u0430\u0442] LT [\u0434\u0430]", lastDay: "[\u041A\u0435\u0447\u0430 \u0441\u043E\u0430\u0442] LT [\u0434\u0430]", lastWeek: "[\u0423\u0442\u0433\u0430\u043D] dddd [\u043A\u0443\u043D\u0438 \u0441\u043E\u0430\u0442] LT [\u0434\u0430]", sameElse: "L" }, relativeTime: { future: "\u042F\u043A\u0438\u043D %s \u0438\u0447\u0438\u0434\u0430", past: "\u0411\u0438\u0440 \u043D\u0435\u0447\u0430 %s \u043E\u043B\u0434\u0438\u043D", s: "\u0444\u0443\u0440\u0441\u0430\u0442", ss: "%d \u0444\u0443\u0440\u0441\u0430\u0442", m: "\u0431\u0438\u0440 \u0434\u0430\u043A\u0438\u043A\u0430", mm: "%d \u0434\u0430\u043A\u0438\u043A\u0430", h: "\u0431\u0438\u0440 \u0441\u043E\u0430\u0442", hh: "%d \u0441\u043E\u0430\u0442", d: "\u0431\u0438\u0440 \u043A\u0443\u043D", dd: "%d \u043A\u0443\u043D", M: "\u0431\u0438\u0440 \u043E\u0439", MM: "%d \u043E\u0439", y: "\u0431\u0438\u0440 \u0439\u0438\u043B", yy: "%d \u0439\u0438\u043B" }, week: { dow: 1, doy: 7 } }), l.defineLocale("vi", { months: "th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"), monthsShort: "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"), monthsParseExact: !0, weekdays: "ch\u1EE7 nh\u1EADt_th\u1EE9 hai_th\u1EE9 ba_th\u1EE9 t\u01B0_th\u1EE9 n\u0103m_th\u1EE9 s\xE1u_th\u1EE9 b\u1EA3y".split("_"), weekdaysShort: "CN_T2_T3_T4_T5_T6_T7".split("_"), weekdaysMin: "CN_T2_T3_T4_T5_T6_T7".split("_"), weekdaysParseExact: !0, meridiemParse: /sa|ch/i, isPM: function isPM(e) {return /^ch$/i.test(e);}, meridiem: function meridiem(e, a, t) {return e < 12 ? t ? "sa" : "SA" : t ? "ch" : "CH";}, longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM [n\u0103m] YYYY", LLL: "D MMMM [n\u0103m] YYYY HH:mm", LLLL: "dddd, D MMMM [n\u0103m] YYYY HH:mm", l: "DD/M/YYYY", ll: "D MMM YYYY", lll: "D MMM YYYY HH:mm", llll: "ddd, D MMM YYYY HH:mm" }, calendar: { sameDay: "[H\xf4m nay l\xfac] LT", nextDay: "[Ng\xe0y mai l\xfac] LT", nextWeek: "dddd [tu\u1EA7n t\u1EDBi l\xFAc] LT", lastDay: "[H\xf4m qua l\xfac] LT", lastWeek: "dddd [tu\u1EA7n r\u1ED3i l\xFAc] LT", sameElse: "L" }, relativeTime: { future: "%s t\u1EDBi", past: "%s tr\u01B0\u1EDBc", s: "v\xe0i gi\xe2y", ss: "%d gi\xe2y", m: "m\u1ED9t ph\xFAt", mm: "%d ph\xfat", h: "m\u1ED9t gi\u1EDD", hh: "%d gi\u1EDD", d: "m\u1ED9t ng\xE0y", dd: "%d ng\xe0y", M: "m\u1ED9t th\xE1ng", MM: "%d th\xe1ng", y: "m\u1ED9t n\u0103m", yy: "%d n\u0103m" }, dayOfMonthOrdinalParse: /\d{1,2}/, ordinal: function ordinal(e) {return e;}, week: { dow: 1, doy: 4 } }), l.defineLocale("x-pseudo", { months: "J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"), monthsShort: "J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"), monthsParseExact: !0, weekdays: "S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"), weekdaysShort: "S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"), weekdaysMin: "S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"), weekdaysParseExact: !0, longDateFormat: { LT: "HH:mm", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd, D MMMM YYYY HH:mm" }, calendar: { sameDay: "[T~\xf3d\xe1~\xfd \xe1t] LT", nextDay: "[T~\xf3m\xf3~rr\xf3~w \xe1t] LT", nextWeek: "dddd [\xe1t] LT", lastDay: "[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT", lastWeek: "[L~\xe1st] dddd [\xe1t] LT", sameElse: "L" }, relativeTime: { future: "\xed~\xf1 %s", past: "%s \xe1~g\xf3", s: "\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds", ss: "%d s~\xe9c\xf3\xf1~ds", m: "\xe1 ~m\xed\xf1~\xfat\xe9", mm: "%d m~\xed\xf1\xfa~t\xe9s", h: "\xe1~\xf1 h\xf3~\xfar", hh: "%d h~\xf3\xfars", d: "\xe1 ~d\xe1\xfd", dd: "%d d~\xe1\xfds", M: "\xe1 ~m\xf3\xf1~th", MM: "%d m~\xf3\xf1t~hs", y: "\xe1 ~\xfd\xe9\xe1r", yy: "%d \xfd~\xe9\xe1rs" }, dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: function ordinal(e) {var a = e % 10;return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === a ? "st" : 2 === a ? "nd" : 3 === a ? "rd" : "th");}, week: { dow: 1, doy: 4 } }), l.defineLocale("yo", { months: "S\u1EB9\u0301r\u1EB9\u0301_E\u0300re\u0300le\u0300_\u1EB8r\u1EB9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1EB9mo_O\u0300gu\u0301n_Owewe_\u1ECC\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ECC\u0300p\u1EB9\u0300\u0300".split("_"), monthsShort: "S\u1EB9\u0301r_E\u0300rl_\u1EB8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1EB9_O\u0300gu\u0301_Owe_\u1ECC\u0300wa\u0300_Be\u0301l_\u1ECC\u0300p\u1EB9\u0300\u0300".split("_"), weekdays: "A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1EB9\u0301gun_\u1ECCj\u1ECD\u0301ru\u0301_\u1ECCj\u1ECD\u0301b\u1ECD_\u1EB8ti\u0300_A\u0300ba\u0301m\u1EB9\u0301ta".split("_"), weekdaysShort: "A\u0300i\u0300k_Aje\u0301_I\u0300s\u1EB9\u0301_\u1ECCjr_\u1ECCjb_\u1EB8ti\u0300_A\u0300ba\u0301".split("_"), weekdaysMin: "A\u0300i\u0300_Aj_I\u0300s_\u1ECCr_\u1ECCb_\u1EB8t_A\u0300b".split("_"), longDateFormat: { LT: "h:mm A", LTS: "h:mm:ss A", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY h:mm A", LLLL: "dddd, D MMMM YYYY h:mm A" }, calendar: { sameDay: "[O\u0300ni\u0300 ni] LT", nextDay: "[\u1ECC\u0300la ni] LT", nextWeek: "dddd [\u1ECCs\u1EB9\u0300 to\u0301n'b\u1ECD] [ni] LT", lastDay: "[A\u0300na ni] LT", lastWeek: "dddd [\u1ECCs\u1EB9\u0300 to\u0301l\u1ECD\u0301] [ni] LT", sameElse: "L" }, relativeTime: { future: "ni\u0301 %s", past: "%s k\u1ECDja\u0301", s: "i\u0300s\u1EB9ju\u0301 aaya\u0301 die", ss: "aaya\u0301 %d", m: "i\u0300s\u1EB9ju\u0301 kan", mm: "i\u0300s\u1EB9ju\u0301 %d", h: "wa\u0301kati kan", hh: "wa\u0301kati %d", d: "\u1ECDj\u1ECD\u0301 kan", dd: "\u1ECDj\u1ECD\u0301 %d", M: "osu\u0300 kan", MM: "osu\u0300 %d", y: "\u1ECDdu\u0301n kan", yy: "\u1ECDdu\u0301n %d" }, dayOfMonthOrdinalParse: /\u1ecdj\u1ecd\u0301\s\d{1,2}/, ordinal: "\u1ECDj\u1ECD\u0301 %d", week: { dow: 1, doy: 4 } }), l.defineLocale("zh-cn", { months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"), weekdaysShort: "\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"), weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206", LLLL: "YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206", l: "YYYY/M/D", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm" }, meridiemParse: /\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u51CC\u6668" === a || "\u65E9\u4E0A" === a || "\u4E0A\u5348" === a ? e : "\u4E0B\u5348" === a || "\u665A\u4E0A" === a ? e + 12 : 11 <= e ? e : e + 12;}, meridiem: function meridiem(e, a, t) {var s = 100 * e + a;return s < 600 ? "\u51CC\u6668" : s < 900 ? "\u65E9\u4E0A" : s < 1130 ? "\u4E0A\u5348" : s < 1230 ? "\u4E2D\u5348" : s < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A";}, calendar: { sameDay: "[\u4ECA\u5929]LT", nextDay: "[\u660E\u5929]LT", nextWeek: "[\u4E0B]ddddLT", lastDay: "[\u6628\u5929]LT", lastWeek: "[\u4E0A]ddddLT", sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}(\u65e5|\u6708|\u5468)/, ordinal: function ordinal(e, a) {switch (a) {case "d":case "D":case "DDD":return e + "\u65E5";case "M":return e + "\u6708";case "w":case "W":return e + "\u5468";default:return e;}}, relativeTime: { future: "%s\u5185", past: "%s\u524D", s: "\u51E0\u79D2", ss: "%d \u79D2", m: "1 \u5206\u949F", mm: "%d \u5206\u949F", h: "1 \u5C0F\u65F6", hh: "%d \u5C0F\u65F6", d: "1 \u5929", dd: "%d \u5929", M: "1 \u4E2A\u6708", MM: "%d \u4E2A\u6708", y: "1 \u5E74", yy: "%d \u5E74" }, week: { dow: 1, doy: 4 } }), l.defineLocale("zh-hk", { months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"), weekdaysShort: "\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"), weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5 HH:mm", LLLL: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm", l: "YYYY/M/D", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm" }, meridiemParse: /\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u51CC\u6668" === a || "\u65E9\u4E0A" === a || "\u4E0A\u5348" === a ? e : "\u4E2D\u5348" === a ? 11 <= e ? e : e + 12 : "\u4E0B\u5348" === a || "\u665A\u4E0A" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {var s = 100 * e + a;return s < 600 ? "\u51CC\u6668" : s < 900 ? "\u65E9\u4E0A" : s < 1130 ? "\u4E0A\u5348" : s < 1230 ? "\u4E2D\u5348" : s < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A";}, calendar: { sameDay: "[\u4ECA\u5929]LT", nextDay: "[\u660E\u5929]LT", nextWeek: "[\u4E0B]ddddLT", lastDay: "[\u6628\u5929]LT", lastWeek: "[\u4E0A]ddddLT", sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}(\u65e5|\u6708|\u9031)/, ordinal: function ordinal(e, a) {switch (a) {case "d":case "D":case "DDD":return e + "\u65E5";case "M":return e + "\u6708";case "w":case "W":return e + "\u9031";default:return e;}}, relativeTime: { future: "%s\u5167", past: "%s\u524D", s: "\u5E7E\u79D2", ss: "%d \u79D2", m: "1 \u5206\u9418", mm: "%d \u5206\u9418", h: "1 \u5C0F\u6642", hh: "%d \u5C0F\u6642", d: "1 \u5929", dd: "%d \u5929", M: "1 \u500B\u6708", MM: "%d \u500B\u6708", y: "1 \u5E74", yy: "%d \u5E74" } }), l.defineLocale("zh-tw", { months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"), monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"), weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"), weekdaysShort: "\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"), weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"), longDateFormat: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY\u5E74M\u6708D\u65E5", LLL: "YYYY\u5E74M\u6708D\u65E5 HH:mm", LLLL: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm", l: "YYYY/M/D", ll: "YYYY\u5E74M\u6708D\u65E5", lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm", llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm" }, meridiemParse: /\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/, meridiemHour: function meridiemHour(e, a) {return 12 === e && (e = 0), "\u51CC\u6668" === a || "\u65E9\u4E0A" === a || "\u4E0A\u5348" === a ? e : "\u4E2D\u5348" === a ? 11 <= e ? e : e + 12 : "\u4E0B\u5348" === a || "\u665A\u4E0A" === a ? e + 12 : void 0;}, meridiem: function meridiem(e, a, t) {var s = 100 * e + a;return s < 600 ? "\u51CC\u6668" : s < 900 ? "\u65E9\u4E0A" : s < 1130 ? "\u4E0A\u5348" : s < 1230 ? "\u4E2D\u5348" : s < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A";}, calendar: { sameDay: "[\u4ECA\u5929] LT", nextDay: "[\u660E\u5929] LT", nextWeek: "[\u4E0B]dddd LT", lastDay: "[\u6628\u5929] LT", lastWeek: "[\u4E0A]dddd LT", sameElse: "L" }, dayOfMonthOrdinalParse: /\d{1,2}(\u65e5|\u6708|\u9031)/, ordinal: function ordinal(e, a) {switch (a) {case "d":case "D":case "DDD":return e + "\u65E5";case "M":return e + "\u6708";case "w":case "W":return e + "\u9031";default:return e;}}, relativeTime: { future: "%s\u5167", past: "%s\u524D", s: "\u5E7E\u79D2", ss: "%d \u79D2", m: "1 \u5206\u9418", mm: "%d \u5206\u9418", h: "1 \u5C0F\u6642", hh: "%d \u5C0F\u6642", d: "1 \u5929", dd: "%d \u5929", M: "1 \u500B\u6708", MM: "%d \u500B\u6708", y: "1 \u5E74", yy: "%d \u5E74" } }), l.locale("en"), l;});
  2363. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../Desktop/HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/module.js */ 15)(module)))
  2364. /***/ }),
  2365. /***/ 15:
  2366. /*!***********************************!*\
  2367. !*** (webpack)/buildin/module.js ***!
  2368. \***********************************/
  2369. /*! no static exports found */
  2370. /***/ (function(module, exports) {
  2371. module.exports = function(module) {
  2372. if (!module.webpackPolyfill) {
  2373. module.deprecate = function() {};
  2374. module.paths = [];
  2375. // module.parent = undefined by default
  2376. if (!module.children) module.children = [];
  2377. Object.defineProperty(module, "loaded", {
  2378. enumerable: true,
  2379. get: function() {
  2380. return module.l;
  2381. }
  2382. });
  2383. Object.defineProperty(module, "id", {
  2384. enumerable: true,
  2385. get: function() {
  2386. return module.i;
  2387. }
  2388. });
  2389. module.webpackPolyfill = 1;
  2390. }
  2391. return module;
  2392. };
  2393. /***/ }),
  2394. /***/ 183:
  2395. /*!************************************************************************************************************!*\
  2396. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/components/u-charts/u-charts.js ***!
  2397. \************************************************************************************************************/
  2398. /*! no static exports found */
  2399. /***/ (function(module, exports, __webpack_require__) {
  2400. "use strict";
  2401. /* WEBPACK VAR INJECTION */(function(uni) {/*
  2402. * uCharts v1.8.5.20190815
  2403. * uni-app平台高性能跨全端图表,支持H5、APP、小程序(微信/支付宝/百度/头条/QQ/360)
  2404. * Copyright (c) 2019 QIUN秋云 https://www.ucharts.cn All rights reserved.
  2405. * Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  2406. *
  2407. * uCharts官方网站
  2408. * https://www.uCharts.cn
  2409. *
  2410. * 开源地址:
  2411. * https://gitee.com/uCharts/uCharts
  2412. *
  2413. * uni-app插件市场地址:
  2414. * http://ext.dcloud.net.cn/plugin?id=271
  2415. *
  2416. */
  2417. var config = {
  2418. yAxisWidth: 15,
  2419. yAxisSplit: 5,
  2420. xAxisHeight: 15,
  2421. xAxisLineHeight: 15,
  2422. legendHeight: 15,
  2423. yAxisTitleWidth: 15,
  2424. padding: [10, 10, 10, 10],
  2425. pixelRatio: 1,
  2426. rotate: false,
  2427. columePadding: 3,
  2428. fontSize: 13,
  2429. //dataPointShape: ['diamond', 'circle', 'triangle', 'rect'],
  2430. dataPointShape: ['circle', 'circle', 'circle', 'circle'],
  2431. colors: ['#1890ff', '#2fc25b', '#facc14', '#f04864', '#8543e0', '#90ed7d'],
  2432. pieChartLinePadding: 15,
  2433. pieChartTextPadding: 5,
  2434. xAxisTextPadding: 3,
  2435. titleColor: '#333333',
  2436. titleFontSize: 20,
  2437. subtitleColor: '#999999',
  2438. subtitleFontSize: 15,
  2439. toolTipPadding: 3,
  2440. toolTipBackground: '#000000',
  2441. toolTipOpacity: 0.7,
  2442. toolTipLineHeight: 20,
  2443. radarGridCount: 3,
  2444. radarLabelTextMargin: 15,
  2445. gaugeLabelTextMargin: 15 };
  2446. var assign;
  2447. if (Object.assign) {
  2448. assign = Object.assign;
  2449. } else {
  2450. // 使用polyfill
  2451. assign = function assign(target, varArgs) {
  2452. if (target == null) {
  2453. throw new TypeError('Cannot convert undefined or null to object');
  2454. }
  2455. var to = Object(target);
  2456. for (var index = 1; index < arguments.length; index++) {
  2457. var nextSource = arguments[index];
  2458. if (nextSource != null) {
  2459. for (var nextKey in nextSource) {
  2460. if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
  2461. to[nextKey] = nextSource[nextKey];
  2462. }
  2463. }
  2464. }
  2465. }
  2466. return to;
  2467. };
  2468. }
  2469. var util = {
  2470. toFixed: function toFixed(num, limit) {
  2471. limit = limit || 2;
  2472. if (this.isFloat(num)) {
  2473. num = num.toFixed(limit);
  2474. }
  2475. return num;
  2476. },
  2477. isFloat: function isFloat(num) {
  2478. return num % 1 !== 0;
  2479. },
  2480. approximatelyEqual: function approximatelyEqual(num1, num2) {
  2481. return Math.abs(num1 - num2) < 1e-10;
  2482. },
  2483. isSameSign: function isSameSign(num1, num2) {
  2484. return Math.abs(num1) === num1 && Math.abs(num2) === num2 || Math.abs(num1) !== num1 && Math.abs(num2) !== num2;
  2485. },
  2486. isSameXCoordinateArea: function isSameXCoordinateArea(p1, p2) {
  2487. return this.isSameSign(p1.x, p2.x);
  2488. },
  2489. isCollision: function isCollision(obj1, obj2) {
  2490. obj1.end = {};
  2491. obj1.end.x = obj1.start.x + obj1.width;
  2492. obj1.end.y = obj1.start.y - obj1.height;
  2493. obj2.end = {};
  2494. obj2.end.x = obj2.start.x + obj2.width;
  2495. obj2.end.y = obj2.start.y - obj2.height;
  2496. var flag = obj2.start.x > obj1.end.x || obj2.end.x < obj1.start.x || obj2.end.y > obj1.start.y || obj2.start.y < obj1.end.y;
  2497. return !flag;
  2498. } };
  2499. //兼容H5点击事件
  2500. function getH5Offset(e) {
  2501. e.mp = {
  2502. changedTouches: [] };
  2503. e.mp.changedTouches.push({
  2504. x: e.offsetX,
  2505. y: e.offsetY });
  2506. return e;
  2507. }
  2508. // hex 转 rgba
  2509. function hexToRgb(hexValue, opc) {
  2510. var rgx = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
  2511. var hex = hexValue.replace(rgx, function (m, r, g, b) {
  2512. return r + r + g + g + b + b;
  2513. });
  2514. var rgb = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
  2515. var r = parseInt(rgb[1], 16);
  2516. var g = parseInt(rgb[2], 16);
  2517. var b = parseInt(rgb[3], 16);
  2518. return 'rgba(' + r + ',' + g + ',' + b + ',' + opc + ')';
  2519. }
  2520. function findRange(num, type, limit) {
  2521. if (isNaN(num)) {
  2522. throw new Error('[uCharts] unvalid series data!');
  2523. }
  2524. limit = limit || 10;
  2525. type = type ? type : 'upper';
  2526. var multiple = 1;
  2527. while (limit < 1) {
  2528. limit *= 10;
  2529. multiple *= 10;
  2530. }
  2531. if (type === 'upper') {
  2532. num = Math.ceil(num * multiple);
  2533. } else {
  2534. num = Math.floor(num * multiple);
  2535. }
  2536. while (num % limit !== 0) {
  2537. if (type === 'upper') {
  2538. num++;
  2539. } else {
  2540. num--;
  2541. }
  2542. }
  2543. return num / multiple;
  2544. }
  2545. function calCandleMA(dayArr, nameArr, colorArr, kdata) {
  2546. var seriesTemp = [];
  2547. for (var k = 0; k < dayArr.length; k++) {
  2548. var seriesItem = {
  2549. data: [],
  2550. name: nameArr[k],
  2551. color: colorArr[k] };
  2552. for (var i = 0, len = kdata.length; i < len; i++) {
  2553. if (i < dayArr[k]) {
  2554. seriesItem.data.push(null);
  2555. continue;
  2556. }
  2557. var sum = 0;
  2558. for (var j = 0; j < dayArr[k]; j++) {
  2559. sum += kdata[i - j][1];
  2560. }
  2561. seriesItem.data.push(+(sum / dayArr[k]).toFixed(3));
  2562. }
  2563. seriesTemp.push(seriesItem);
  2564. }
  2565. return seriesTemp;
  2566. }
  2567. function calValidDistance(distance, chartData, config, opts) {
  2568. var dataChartAreaWidth = opts.width - opts.area[1] - opts.area[3];
  2569. var dataChartWidth = chartData.eachSpacing * (opts.chartData.xAxisData.xAxisPoints.length - 1);
  2570. var validDistance = distance;
  2571. if (distance >= 0) {
  2572. validDistance = 0;
  2573. } else if (Math.abs(distance) >= dataChartWidth - dataChartAreaWidth) {
  2574. validDistance = dataChartAreaWidth - dataChartWidth;
  2575. }
  2576. return validDistance;
  2577. }
  2578. function isInAngleRange(angle, startAngle, endAngle) {
  2579. function adjust(angle) {
  2580. while (angle < 0) {
  2581. angle += 2 * Math.PI;
  2582. }
  2583. while (angle > 2 * Math.PI) {
  2584. angle -= 2 * Math.PI;
  2585. }
  2586. return angle;
  2587. }
  2588. angle = adjust(angle);
  2589. startAngle = adjust(startAngle);
  2590. endAngle = adjust(endAngle);
  2591. if (startAngle > endAngle) {
  2592. endAngle += 2 * Math.PI;
  2593. if (angle < startAngle) {
  2594. angle += 2 * Math.PI;
  2595. }
  2596. }
  2597. return angle >= startAngle && angle <= endAngle;
  2598. }
  2599. function calRotateTranslate(x, y, h) {
  2600. var xv = x;
  2601. var yv = h - y;
  2602. var transX = xv + (h - yv - xv) / Math.sqrt(2);
  2603. transX *= -1;
  2604. var transY = (h - yv) * (Math.sqrt(2) - 1) - (h - yv - xv) / Math.sqrt(2);
  2605. return {
  2606. transX: transX,
  2607. transY: transY };
  2608. }
  2609. function createCurveControlPoints(points, i) {
  2610. function isNotMiddlePoint(points, i) {
  2611. if (points[i - 1] && points[i + 1]) {
  2612. return points[i].y >= Math.max(points[i - 1].y, points[i + 1].y) || points[i].y <= Math.min(points[i - 1].y,
  2613. points[
  2614. i + 1].y);
  2615. } else {
  2616. return false;
  2617. }
  2618. }
  2619. var a = 0.2;
  2620. var b = 0.2;
  2621. var pAx = null;
  2622. var pAy = null;
  2623. var pBx = null;
  2624. var pBy = null;
  2625. if (i < 1) {
  2626. pAx = points[0].x + (points[1].x - points[0].x) * a;
  2627. pAy = points[0].y + (points[1].y - points[0].y) * a;
  2628. } else {
  2629. pAx = points[i].x + (points[i + 1].x - points[i - 1].x) * a;
  2630. pAy = points[i].y + (points[i + 1].y - points[i - 1].y) * a;
  2631. }
  2632. if (i > points.length - 3) {
  2633. var last = points.length - 1;
  2634. pBx = points[last].x - (points[last].x - points[last - 1].x) * b;
  2635. pBy = points[last].y - (points[last].y - points[last - 1].y) * b;
  2636. } else {
  2637. pBx = points[i + 1].x - (points[i + 2].x - points[i].x) * b;
  2638. pBy = points[i + 1].y - (points[i + 2].y - points[i].y) * b;
  2639. }
  2640. if (isNotMiddlePoint(points, i + 1)) {
  2641. pBy = points[i + 1].y;
  2642. }
  2643. if (isNotMiddlePoint(points, i)) {
  2644. pAy = points[i].y;
  2645. }
  2646. return {
  2647. ctrA: {
  2648. x: pAx,
  2649. y: pAy },
  2650. ctrB: {
  2651. x: pBx,
  2652. y: pBy } };
  2653. }
  2654. function convertCoordinateOrigin(x, y, center) {
  2655. return {
  2656. x: center.x + x,
  2657. y: center.y - y };
  2658. }
  2659. function avoidCollision(obj, target) {
  2660. if (target) {
  2661. // is collision test
  2662. while (util.isCollision(obj, target)) {
  2663. if (obj.start.x > 0) {
  2664. obj.start.y--;
  2665. } else if (obj.start.x < 0) {
  2666. obj.start.y++;
  2667. } else {
  2668. if (obj.start.y > 0) {
  2669. obj.start.y++;
  2670. } else {
  2671. obj.start.y--;
  2672. }
  2673. }
  2674. }
  2675. }
  2676. return obj;
  2677. }
  2678. function fillSeries(series, opts, config) {
  2679. var index = 0;
  2680. return series.map(function (item) {
  2681. if (!item.color) {
  2682. item.color = config.colors[index];
  2683. index = (index + 1) % config.colors.length;
  2684. }
  2685. if (!item.type) {
  2686. item.type = opts.type;
  2687. }
  2688. if (typeof item.show == "undefined") {
  2689. item.show = true;
  2690. }
  2691. if (!item.type) {
  2692. item.type = opts.type;
  2693. }
  2694. if (!item.pointShape) {
  2695. item.pointShape = "circle";
  2696. }
  2697. if (!item.legendShape) {
  2698. switch (item.type) {
  2699. case 'line':
  2700. item.legendShape = "line";
  2701. break;
  2702. case 'column':
  2703. item.legendShape = "rect";
  2704. break;
  2705. case 'area':
  2706. item.legendShape = "triangle";
  2707. break;
  2708. default:
  2709. item.legendShape = "circle";}
  2710. }
  2711. return item;
  2712. });
  2713. }
  2714. function getDataRange(minData, maxData) {
  2715. var limit = 0;
  2716. var range = maxData - minData;
  2717. if (range >= 10000) {
  2718. limit = 1000;
  2719. } else if (range >= 1000) {
  2720. limit = 100;
  2721. } else if (range >= 100) {
  2722. limit = 10;
  2723. } else if (range >= 10) {
  2724. limit = 5;
  2725. } else if (range >= 1) {
  2726. limit = 1;
  2727. } else if (range >= 0.1) {
  2728. limit = 0.1;
  2729. } else if (range >= 0.01) {
  2730. limit = 0.01;
  2731. } else if (range >= 0.001) {
  2732. limit = 0.001;
  2733. } else if (range >= 0.0001) {
  2734. limit = 0.0001;
  2735. } else if (range >= 0.00001) {
  2736. limit = 0.00001;
  2737. } else {
  2738. limit = 0.000001;
  2739. }
  2740. return {
  2741. minRange: findRange(minData, 'lower', limit),
  2742. maxRange: findRange(maxData, 'upper', limit) };
  2743. }
  2744. function measureText(text) {
  2745. var fontSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : config.fontSize;
  2746. text = String(text);
  2747. var text = text.split('');
  2748. var width = 0;
  2749. for (var i = 0; i < text.length; i++) {
  2750. var item = text[i];
  2751. if (/[a-zA-Z]/.test(item)) {
  2752. width += 7;
  2753. } else if (/[0-9]/.test(item)) {
  2754. width += 5.5;
  2755. } else if (/\./.test(item)) {
  2756. width += 2.7;
  2757. } else if (/-/.test(item)) {
  2758. width += 3.25;
  2759. } else if (/[\u4e00-\u9fa5]/.test(item)) {
  2760. width += 10;
  2761. } else if (/\(|\)/.test(item)) {
  2762. width += 3.73;
  2763. } else if (/\s/.test(item)) {
  2764. width += 2.5;
  2765. } else if (/%/.test(item)) {
  2766. width += 8;
  2767. } else {
  2768. width += 10;
  2769. }
  2770. }
  2771. return width * fontSize / 10;
  2772. }
  2773. function dataCombine(series) {
  2774. return series.reduce(function (a, b) {
  2775. return (a.data ? a.data : a).concat(b.data);
  2776. }, []);
  2777. }
  2778. function dataCombineStack(series, len) {
  2779. var sum = new Array(len);
  2780. for (var j = 0; j < sum.length; j++) {
  2781. sum[j] = 0;
  2782. }
  2783. for (var i = 0; i < series.length; i++) {
  2784. for (var j = 0; j < sum.length; j++) {
  2785. sum[j] += series[i].data[j];
  2786. }
  2787. }
  2788. return series.reduce(function (a, b) {
  2789. return (a.data ? a.data : a).concat(b.data).concat(sum);
  2790. }, []);
  2791. }
  2792. function getTouches(touches, opts, e) {
  2793. var x, y;
  2794. if (touches.clientX) {
  2795. if (opts.rotate) {
  2796. y = opts.height - touches.clientX * opts.pixelRatio;
  2797. x = (touches.pageY - e.currentTarget.offsetTop - opts.height / opts.pixelRatio / 2 * (opts.pixelRatio - 1)) *
  2798. opts.pixelRatio;
  2799. } else {
  2800. x = touches.clientX * opts.pixelRatio;
  2801. y = (touches.pageY - e.currentTarget.offsetTop - opts.height / opts.pixelRatio / 2 * (opts.pixelRatio - 1)) *
  2802. opts.pixelRatio;
  2803. }
  2804. } else {
  2805. if (opts.rotate) {
  2806. y = opts.height - touches.x * opts.pixelRatio;
  2807. x = touches.y * opts.pixelRatio;
  2808. } else {
  2809. x = touches.x * opts.pixelRatio;
  2810. y = touches.y * opts.pixelRatio;
  2811. }
  2812. }
  2813. return {
  2814. x: x,
  2815. y: y };
  2816. }
  2817. function getSeriesDataItem(series, index) {
  2818. var data = [];
  2819. for (var i = 0; i < series.length; i++) {
  2820. var item = series[i];
  2821. if (item.data[index] !== null && typeof item.data[index] !== 'undefined' && item.show) {
  2822. var seriesItem = {};
  2823. seriesItem.color = item.color;
  2824. seriesItem.type = item.type;
  2825. seriesItem.style = item.style;
  2826. seriesItem.pointShape = item.pointShape;
  2827. seriesItem.disableLegend = item.disableLegend;
  2828. seriesItem.name = item.name;
  2829. seriesItem.show = item.show;
  2830. seriesItem.data = item.format ? item.format(item.data[index]) : item.data[index];
  2831. data.push(seriesItem);
  2832. }
  2833. }
  2834. return data;
  2835. }
  2836. function getMaxTextListLength(list) {
  2837. var lengthList = list.map(function (item) {
  2838. return measureText(item);
  2839. });
  2840. return Math.max.apply(null, lengthList);
  2841. }
  2842. function getRadarCoordinateSeries(length) {
  2843. var eachAngle = 2 * Math.PI / length;
  2844. var CoordinateSeries = [];
  2845. for (var i = 0; i < length; i++) {
  2846. CoordinateSeries.push(eachAngle * i);
  2847. }
  2848. return CoordinateSeries.map(function (item) {
  2849. return -1 * item + Math.PI / 2;
  2850. });
  2851. }
  2852. function getToolTipData(seriesData, calPoints, index, categories) {
  2853. var option = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
  2854. var textList = seriesData.map(function (item) {
  2855. return {
  2856. text: option.format ? option.format(item, categories[index]) : item.name + ': ' + item.data,
  2857. color: item.color };
  2858. });
  2859. var validCalPoints = [];
  2860. var offset = {
  2861. x: 0,
  2862. y: 0 };
  2863. for (var i = 0; i < calPoints.length; i++) {
  2864. var points = calPoints[i];
  2865. if (typeof points[index] !== 'undefined' && points[index] !== null) {
  2866. validCalPoints.push(points[index]);
  2867. }
  2868. }
  2869. for (var _i = 0; _i < validCalPoints.length; _i++) {
  2870. var item = validCalPoints[_i];
  2871. offset.x = Math.round(item.x);
  2872. offset.y += item.y;
  2873. }
  2874. offset.y /= validCalPoints.length;
  2875. return {
  2876. textList: textList,
  2877. offset: offset };
  2878. }
  2879. function getMixToolTipData(seriesData, calPoints, index, categories) {
  2880. var option = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
  2881. var textList = seriesData.map(function (item) {
  2882. return {
  2883. text: option.format ? option.format(item, categories[index]) : item.name + ': ' + item.data,
  2884. color: item.color,
  2885. disableLegend: item.disableLegend ? true : false };
  2886. });
  2887. textList = textList.filter(function (item) {
  2888. if (item.disableLegend !== true) {
  2889. return item;
  2890. }
  2891. });
  2892. var validCalPoints = [];
  2893. var offset = {
  2894. x: 0,
  2895. y: 0 };
  2896. for (var i = 0; i < calPoints.length; i++) {
  2897. var points = calPoints[i];
  2898. if (typeof points[index] !== 'undefined' && points[index] !== null) {
  2899. validCalPoints.push(points[index]);
  2900. }
  2901. }
  2902. for (var _i2 = 0; _i2 < validCalPoints.length; _i2++) {
  2903. var item = validCalPoints[_i2];
  2904. offset.x = Math.round(item.x);
  2905. offset.y += item.y;
  2906. }
  2907. offset.y /= validCalPoints.length;
  2908. return {
  2909. textList: textList,
  2910. offset: offset };
  2911. }
  2912. function getCandleToolTipData(series, seriesData, calPoints, index, categories, extra) {
  2913. var option = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : {};
  2914. var upColor = extra.color.upFill;
  2915. var downColor = extra.color.downFill;
  2916. //颜色顺序为开盘,收盘,最低,最高
  2917. var color = [upColor, upColor, downColor, upColor];
  2918. var textList = [];
  2919. var text0 = {
  2920. text: categories[index],
  2921. color: null };
  2922. textList.push(text0);
  2923. seriesData.map(function (item) {
  2924. if (index == 0 && item.data[1] - item.data[0] < 0) {
  2925. color[1] = downColor;
  2926. } else {
  2927. if (item.data[0] < series[index - 1][1]) {
  2928. color[0] = downColor;
  2929. }
  2930. if (item.data[1] < item.data[0]) {
  2931. color[1] = downColor;
  2932. }
  2933. if (item.data[2] > series[index - 1][1]) {
  2934. color[2] = upColor;
  2935. }
  2936. if (item.data[3] < series[index - 1][1]) {
  2937. color[3] = downColor;
  2938. }
  2939. }
  2940. var text1 = {
  2941. text: '开盘:' + item.data[0],
  2942. color: color[0] };
  2943. var text2 = {
  2944. text: '收盘:' + item.data[1],
  2945. color: color[1] };
  2946. var text3 = {
  2947. text: '最低:' + item.data[2],
  2948. color: color[2] };
  2949. var text4 = {
  2950. text: '最高:' + item.data[3],
  2951. color: color[3] };
  2952. textList.push(text1, text2, text3, text4);
  2953. });
  2954. var validCalPoints = [];
  2955. var offset = {
  2956. x: 0,
  2957. y: 0 };
  2958. for (var i = 0; i < calPoints.length; i++) {
  2959. var points = calPoints[i];
  2960. if (typeof points[index] !== 'undefined' && points[index] !== null) {
  2961. validCalPoints.push(points[index]);
  2962. }
  2963. }
  2964. offset.x = Math.round(validCalPoints[0][0].x);
  2965. return {
  2966. textList: textList,
  2967. offset: offset };
  2968. }
  2969. function filterSeries(series) {
  2970. var tempSeries = [];
  2971. for (var i = 0; i < series.length; i++) {
  2972. if (series[i].show == true) {
  2973. tempSeries.push(series[i]);
  2974. }
  2975. }
  2976. return tempSeries;
  2977. }
  2978. function findCurrentIndex(currentPoints, xAxisPoints, opts, config) {
  2979. var offset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
  2980. var currentIndex = -1;
  2981. var spacing = 0;
  2982. if ((opts.type == 'line' || opts.type == 'area') && opts.xAxis.boundaryGap == 'justify') {
  2983. spacing = opts.chartData.eachSpacing / 2;
  2984. }
  2985. if (isInExactChartArea(currentPoints, opts, config)) {
  2986. xAxisPoints.forEach(function (item, index) {
  2987. if (currentPoints.x + offset + spacing > item) {
  2988. currentIndex = index;
  2989. }
  2990. });
  2991. }
  2992. return currentIndex;
  2993. }
  2994. function findLegendIndex(currentPoints, legendData, opts) {
  2995. var currentIndex = -1;
  2996. if (isInExactLegendArea(currentPoints, legendData.area)) {
  2997. var points = legendData.points;
  2998. var index = -1;
  2999. for (var i = 0, len = points.length; i < len; i++) {
  3000. var item = points[i];
  3001. for (var j = 0; j < item.length; j++) {
  3002. index += 1;
  3003. var area = item[j]['area'];
  3004. if (currentPoints.x > area[0] && currentPoints.x < area[2] && currentPoints.y > area[1] && currentPoints.y < area[3]) {
  3005. currentIndex = index;
  3006. break;
  3007. }
  3008. }
  3009. }
  3010. return currentIndex;
  3011. }
  3012. return currentIndex;
  3013. }
  3014. function isInExactLegendArea(currentPoints, area) {
  3015. return currentPoints.x > area.start.x && currentPoints.x < area.end.x && currentPoints.y > area.start.y &&
  3016. currentPoints.y < area.end.y;
  3017. }
  3018. function isInExactChartArea(currentPoints, opts, config) {
  3019. return currentPoints.x < opts.width - opts.area[1] + 10 && currentPoints.x > opts.area[3] - 10 && currentPoints.y > opts.area[0] && currentPoints.y < opts.height - opts.area[2];
  3020. }
  3021. function findRadarChartCurrentIndex(currentPoints, radarData, count) {
  3022. var eachAngleArea = 2 * Math.PI / count;
  3023. var currentIndex = -1;
  3024. if (isInExactPieChartArea(currentPoints, radarData.center, radarData.radius)) {
  3025. var fixAngle = function fixAngle(angle) {
  3026. if (angle < 0) {
  3027. angle += 2 * Math.PI;
  3028. }
  3029. if (angle > 2 * Math.PI) {
  3030. angle -= 2 * Math.PI;
  3031. }
  3032. return angle;
  3033. };
  3034. var angle = Math.atan2(radarData.center.y - currentPoints.y, currentPoints.x - radarData.center.x);
  3035. angle = -1 * angle;
  3036. if (angle < 0) {
  3037. angle += 2 * Math.PI;
  3038. }
  3039. var angleList = radarData.angleList.map(function (item) {
  3040. item = fixAngle(-1 * item);
  3041. return item;
  3042. });
  3043. angleList.forEach(function (item, index) {
  3044. var rangeStart = fixAngle(item - eachAngleArea / 2);
  3045. var rangeEnd = fixAngle(item + eachAngleArea / 2);
  3046. if (rangeEnd < rangeStart) {
  3047. rangeEnd += 2 * Math.PI;
  3048. }
  3049. if (angle >= rangeStart && angle <= rangeEnd || angle + 2 * Math.PI >= rangeStart && angle + 2 * Math.PI <=
  3050. rangeEnd) {
  3051. currentIndex = index;
  3052. }
  3053. });
  3054. }
  3055. return currentIndex;
  3056. }
  3057. function findFunnelChartCurrentIndex(currentPoints, funnelData) {
  3058. var currentIndex = -1;
  3059. for (var i = 0, len = funnelData.series.length; i < len; i++) {
  3060. var item = funnelData.series[i];
  3061. if (currentPoints.x > item.funnelArea[0] && currentPoints.x < item.funnelArea[2] && currentPoints.y > item.funnelArea[1] && currentPoints.y < item.funnelArea[3]) {
  3062. currentIndex = i;
  3063. break;
  3064. }
  3065. }
  3066. return currentIndex;
  3067. }
  3068. function findWordChartCurrentIndex(currentPoints, wordData) {
  3069. var currentIndex = -1;
  3070. for (var i = 0, len = wordData.length; i < len; i++) {
  3071. var item = wordData[i];
  3072. if (currentPoints.x > item.area[0] && currentPoints.x < item.area[2] && currentPoints.y > item.area[1] && currentPoints.y < item.area[3]) {
  3073. currentIndex = i;
  3074. break;
  3075. }
  3076. }
  3077. return currentIndex;
  3078. }
  3079. function findMapChartCurrentIndex(currentPoints, opts) {
  3080. var currentIndex = -1;
  3081. var cData = opts.chartData.mapData;
  3082. var data = opts.series;
  3083. var tmp = pointToCoordinate(currentPoints.y, currentPoints.x, cData.bounds, cData.scale, cData.xoffset, cData.yoffset);
  3084. var poi = [tmp.x, tmp.y];
  3085. for (var i = 0, len = data.length; i < len; i++) {
  3086. var item = data[i].geometry.coordinates;
  3087. if (isPoiWithinPoly(poi, item)) {
  3088. currentIndex = i;
  3089. break;
  3090. }
  3091. }
  3092. return currentIndex;
  3093. }
  3094. function findPieChartCurrentIndex(currentPoints, pieData) {
  3095. var currentIndex = -1;
  3096. if (isInExactPieChartArea(currentPoints, pieData.center, pieData.radius)) {
  3097. var angle = Math.atan2(pieData.center.y - currentPoints.y, currentPoints.x - pieData.center.x);
  3098. angle = -angle;
  3099. for (var i = 0, len = pieData.series.length; i < len; i++) {
  3100. var item = pieData.series[i];
  3101. if (isInAngleRange(angle, item._start_, item._start_ + item._proportion_ * 2 * Math.PI)) {
  3102. currentIndex = i;
  3103. break;
  3104. }
  3105. }
  3106. }
  3107. return currentIndex;
  3108. }
  3109. function isInExactPieChartArea(currentPoints, center, radius) {
  3110. return Math.pow(currentPoints.x - center.x, 2) + Math.pow(currentPoints.y - center.y, 2) <= Math.pow(radius, 2);
  3111. }
  3112. function splitPoints(points) {
  3113. var newPoints = [];
  3114. var items = [];
  3115. points.forEach(function (item, index) {
  3116. if (item !== null) {
  3117. items.push(item);
  3118. } else {
  3119. if (items.length) {
  3120. newPoints.push(items);
  3121. }
  3122. items = [];
  3123. }
  3124. });
  3125. if (items.length) {
  3126. newPoints.push(items);
  3127. }
  3128. return newPoints;
  3129. }
  3130. function calLegendData(series, opts, config, chartData) {
  3131. var legendData = {
  3132. area: {
  3133. start: {
  3134. x: 0,
  3135. y: 0 },
  3136. end: {
  3137. x: 0,
  3138. y: 0 },
  3139. width: 0,
  3140. height: 0,
  3141. wholeWidth: 0,
  3142. wholeHeight: 0 },
  3143. points: [],
  3144. widthArr: [],
  3145. heightArr: [] };
  3146. if (opts.legend.show === false) {
  3147. chartData.legendData = legendData;
  3148. return legendData;
  3149. }
  3150. var padding = opts.legend.padding;
  3151. var margin = opts.legend.margin;
  3152. var fontSize = opts.legend.fontSize;
  3153. var shapeWidth = 15 * opts.pixelRatio;
  3154. var shapeRight = 5 * opts.pixelRatio;
  3155. var lineHeight = Math.max(opts.legend.lineHeight * opts.pixelRatio, fontSize);
  3156. if (opts.legend.position == 'top' || opts.legend.position == 'bottom') {
  3157. var legendList = [];
  3158. var widthCount = 0;
  3159. var widthCountArr = [];
  3160. var currentRow = [];
  3161. for (var i = 0; i < series.length; i++) {
  3162. var item = series[i];
  3163. var itemWidth = shapeWidth + shapeRight + measureText(item.name || 'undefined', fontSize) + opts.legend.itemGap;
  3164. if (widthCount + itemWidth > opts.width - opts.padding[1] - opts.padding[3]) {
  3165. legendList.push(currentRow);
  3166. widthCountArr.push(widthCount - opts.legend.itemGap);
  3167. widthCount = itemWidth;
  3168. currentRow = [item];
  3169. } else {
  3170. widthCount += itemWidth;
  3171. currentRow.push(item);
  3172. }
  3173. }
  3174. if (currentRow.length) {
  3175. legendList.push(currentRow);
  3176. widthCountArr.push(widthCount - opts.legend.itemGap);
  3177. legendData.widthArr = widthCountArr;
  3178. var legendWidth = Math.max.apply(null, widthCountArr);
  3179. switch (opts.legend.float) {
  3180. case 'left':
  3181. legendData.area.start.x = opts.padding[3];
  3182. legendData.area.end.x = opts.padding[3] + 2 * padding;
  3183. break;
  3184. case 'right':
  3185. legendData.area.start.x = opts.width - opts.padding[1] - legendWidth - 2 * padding;
  3186. legendData.area.end.x = opts.width - opts.padding[1];
  3187. break;
  3188. default:
  3189. legendData.area.start.x = (opts.width - legendWidth) / 2 - padding;
  3190. legendData.area.end.x = (opts.width + legendWidth) / 2 + padding;}
  3191. legendData.area.width = legendWidth + 2 * padding;
  3192. legendData.area.wholeWidth = legendWidth + 2 * padding;
  3193. legendData.area.height = legendList.length * lineHeight + 2 * padding;
  3194. legendData.area.wholeHeight = legendList.length * lineHeight + 2 * padding + 2 * margin;
  3195. legendData.points = legendList;
  3196. }
  3197. } else {
  3198. var len = series.length;
  3199. var maxHeight = opts.height - opts.padding[0] - opts.padding[2] - 2 * margin - 2 * padding;
  3200. var maxLength = Math.min(Math.floor(maxHeight / lineHeight), len);
  3201. legendData.area.height = maxLength * lineHeight + padding * 2;
  3202. legendData.area.wholeHeight = maxLength * lineHeight + padding * 2;
  3203. switch (opts.legend.float) {
  3204. case 'top':
  3205. legendData.area.start.y = opts.padding[0] + margin;
  3206. legendData.area.end.y = opts.padding[0] + margin + legendData.area.height;
  3207. break;
  3208. case 'bottom':
  3209. legendData.area.start.y = opts.height - opts.padding[2] - margin - legendData.area.height;
  3210. legendData.area.end.y = opts.height - opts.padding[2] - margin;
  3211. break;
  3212. default:
  3213. legendData.area.start.y = (opts.height - legendData.area.height) / 2;
  3214. legendData.area.end.y = (opts.height + legendData.area.height) / 2;}
  3215. var lineNum = len % maxLength === 0 ? len / maxLength : Math.floor(len / maxLength + 1);
  3216. var _currentRow = [];
  3217. for (var _i3 = 0; _i3 < lineNum; _i3++) {
  3218. var temp = series.slice(_i3 * maxLength, _i3 * maxLength + maxLength);
  3219. _currentRow.push(temp);
  3220. }
  3221. legendData.points = _currentRow;
  3222. if (_currentRow.length) {
  3223. for (var _i4 = 0; _i4 < _currentRow.length; _i4++) {
  3224. var _item = _currentRow[_i4];
  3225. var maxWidth = 0;
  3226. for (var j = 0; j < _item.length; j++) {
  3227. var _itemWidth = shapeWidth + shapeRight + measureText(_item[j].name || 'undefined', fontSize) + opts.legend.itemGap;
  3228. if (_itemWidth > maxWidth) {
  3229. maxWidth = _itemWidth;
  3230. }
  3231. }
  3232. legendData.widthArr.push(maxWidth);
  3233. legendData.heightArr.push(_item.length * lineHeight + padding * 2);
  3234. }
  3235. var _legendWidth = 0;
  3236. for (var _i5 = 0; _i5 < legendData.widthArr.length; _i5++) {
  3237. _legendWidth += legendData.widthArr[_i5];
  3238. }
  3239. legendData.area.width = _legendWidth - opts.legend.itemGap + 2 * padding;
  3240. legendData.area.wholeWidth = legendData.area.width + padding;
  3241. }
  3242. }
  3243. switch (opts.legend.position) {
  3244. case 'top':
  3245. legendData.area.start.y = opts.padding[0] + margin;
  3246. legendData.area.end.y = opts.padding[0] + margin + legendData.area.height;
  3247. break;
  3248. case 'bottom':
  3249. legendData.area.start.y = opts.height - opts.padding[2] - legendData.area.height - margin;
  3250. legendData.area.end.y = opts.height - opts.padding[2] - margin;
  3251. break;
  3252. case 'left':
  3253. legendData.area.start.x = opts.padding[3];
  3254. legendData.area.end.x = opts.padding[3] + legendData.area.width;
  3255. break;
  3256. case 'right':
  3257. legendData.area.start.x = opts.width - opts.padding[1] - legendData.area.width;
  3258. legendData.area.end.x = opts.width - opts.padding[1];
  3259. break;}
  3260. chartData.legendData = legendData;
  3261. return legendData;
  3262. }
  3263. function calCategoriesData(categories, opts, config, eachSpacing) {
  3264. var result = {
  3265. angle: 0,
  3266. xAxisHeight: config.xAxisHeight };
  3267. var categoriesTextLenth = categories.map(function (item) {
  3268. return measureText(item);
  3269. });
  3270. var maxTextLength = Math.max.apply(this, categoriesTextLenth);
  3271. if (opts.xAxis.rotateLabel == true && maxTextLength + 2 * config.xAxisTextPadding > eachSpacing) {
  3272. result.angle = 45 * Math.PI / 180;
  3273. result.xAxisHeight = 2 * config.xAxisTextPadding + maxTextLength * Math.sin(result.angle);
  3274. }
  3275. return result;
  3276. }
  3277. function getRadarDataPoints(angleList, center, radius, series, opts) {
  3278. var process = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;
  3279. var radarOption = opts.extra.radar || {};
  3280. radarOption.max = radarOption.max || 0;
  3281. var maxData = Math.max(radarOption.max, Math.max.apply(null, dataCombine(series)));
  3282. var data = [];var _loop2 = function _loop2(
  3283. i) {
  3284. var each = series[i];
  3285. var listItem = {};
  3286. listItem.color = each.color;
  3287. listItem.data = [];
  3288. each.data.forEach(function (item, index) {
  3289. var tmp = {};
  3290. tmp.angle = angleList[index];
  3291. tmp.proportion = item / maxData;
  3292. tmp.position = convertCoordinateOrigin(radius * tmp.proportion * process * Math.cos(tmp.angle), radius * tmp.proportion *
  3293. process * Math.sin(tmp.angle), center);
  3294. listItem.data.push(tmp);
  3295. });
  3296. data.push(listItem);};for (var i = 0; i < series.length; i++) {_loop2(i);
  3297. }
  3298. return data;
  3299. }
  3300. function getPieDataPoints(series, radius) {
  3301. var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  3302. var count = 0;
  3303. var _start_ = 0;
  3304. for (var i = 0; i < series.length; i++) {
  3305. var item = series[i];
  3306. item.data = item.data === null ? 0 : item.data;
  3307. count += item.data;
  3308. }
  3309. for (var _i6 = 0; _i6 < series.length; _i6++) {
  3310. var _item2 = series[_i6];
  3311. _item2.data = _item2.data === null ? 0 : _item2.data;
  3312. if (count === 0) {
  3313. _item2._proportion_ = 1 / series.length * process;
  3314. } else {
  3315. _item2._proportion_ = _item2.data / count * process;
  3316. }
  3317. _item2._radius_ = radius;
  3318. }
  3319. for (var _i7 = 0; _i7 < series.length; _i7++) {
  3320. var _item3 = series[_i7];
  3321. _item3._start_ = _start_;
  3322. _start_ += 2 * _item3._proportion_ * Math.PI;
  3323. }
  3324. return series;
  3325. }
  3326. function getFunnelDataPoints(series, radius) {
  3327. var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  3328. series = series.sort(function (a, b) {return parseInt(b.data) - parseInt(a.data);});
  3329. for (var i = 0; i < series.length; i++) {
  3330. series[i].radius = series[i].data / series[0].data * radius * process;
  3331. series[i]._proportion_ = series[i].data / series[0].data;
  3332. }
  3333. return series.reverse();
  3334. }
  3335. function getRoseDataPoints(series, type, minRadius, radius) {
  3336. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  3337. var count = 0;
  3338. var _start_ = 0;
  3339. var dataArr = [];
  3340. for (var i = 0; i < series.length; i++) {
  3341. var item = series[i];
  3342. item.data = item.data === null ? 0 : item.data;
  3343. count += item.data;
  3344. dataArr.push(item.data);
  3345. }
  3346. var minData = Math.min.apply(null, dataArr);
  3347. var maxData = Math.max.apply(null, dataArr);
  3348. var radiusLength = radius - minRadius;
  3349. for (var _i8 = 0; _i8 < series.length; _i8++) {
  3350. var _item4 = series[_i8];
  3351. _item4.data = _item4.data === null ? 0 : _item4.data;
  3352. if (count === 0 || type == 'area') {
  3353. _item4._proportion_ = _item4.data / count * process;
  3354. _item4._rose_proportion_ = 1 / series.length * process;
  3355. } else {
  3356. _item4._proportion_ = _item4.data / count * process;
  3357. _item4._rose_proportion_ = _item4.data / count * process;
  3358. }
  3359. _item4._radius_ = minRadius + radiusLength * ((_item4.data - minData) / (maxData - minData));
  3360. }
  3361. for (var _i9 = 0; _i9 < series.length; _i9++) {
  3362. var _item5 = series[_i9];
  3363. _item5._start_ = _start_;
  3364. _start_ += 2 * _item5._rose_proportion_ * Math.PI;
  3365. }
  3366. return series;
  3367. }
  3368. function getArcbarDataPoints(series, arcbarOption) {
  3369. var process = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  3370. if (process == 1) {
  3371. process = 0.999999;
  3372. }
  3373. for (var i = 0; i < series.length; i++) {
  3374. var item = series[i];
  3375. item.data = item.data === null ? 0 : item.data;
  3376. var totalAngle = void 0;
  3377. if (arcbarOption.type == 'default') {
  3378. if (arcbarOption.endAngle < arcbarOption.startAngle) {
  3379. totalAngle = 2 + arcbarOption.endAngle - arcbarOption.startAngle;
  3380. } else {
  3381. totalAngle = arcbarOption.startAngle - arcbarOption.endAngle;
  3382. }
  3383. } else {
  3384. totalAngle = 2;
  3385. }
  3386. item._proportion_ = totalAngle * item.data * process + arcbarOption.startAngle;
  3387. if (item._proportion_ >= 2) {
  3388. item._proportion_ = item._proportion_ % 2;
  3389. }
  3390. }
  3391. return series;
  3392. }
  3393. function getGaugeAxisPoints(categories, startAngle, endAngle) {
  3394. var totalAngle = startAngle - endAngle + 1;
  3395. var tempStartAngle = startAngle;
  3396. for (var i = 0; i < categories.length; i++) {
  3397. categories[i].value = categories[i].value === null ? 0 : categories[i].value;
  3398. categories[i]._startAngle_ = tempStartAngle;
  3399. categories[i]._endAngle_ = totalAngle * categories[i].value + startAngle;
  3400. if (categories[i]._endAngle_ >= 2) {
  3401. categories[i]._endAngle_ = categories[i]._endAngle_ % 2;
  3402. }
  3403. tempStartAngle = categories[i]._endAngle_;
  3404. }
  3405. return categories;
  3406. }
  3407. function getGaugeDataPoints(series, categories, gaugeOption) {
  3408. var process = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
  3409. for (var i = 0; i < series.length; i++) {
  3410. var item = series[i];
  3411. item.data = item.data === null ? 0 : item.data;
  3412. if (gaugeOption.pointer.color == 'auto') {
  3413. for (var _i10 = 0; _i10 < categories.length; _i10++) {
  3414. if (item.data <= categories[_i10].value) {
  3415. item.color = categories[_i10].color;
  3416. break;
  3417. }
  3418. }
  3419. } else {
  3420. item.color = gaugeOption.pointer.color;
  3421. }
  3422. var totalAngle = gaugeOption.startAngle - gaugeOption.endAngle + 1;
  3423. item._endAngle_ = totalAngle * item.data + gaugeOption.startAngle;
  3424. item._oldAngle_ = gaugeOption.oldAngle;
  3425. if (gaugeOption.oldAngle < gaugeOption.endAngle) {
  3426. item._oldAngle_ += 2;
  3427. }
  3428. if (item.data >= gaugeOption.oldData) {
  3429. item._proportion_ = (item._endAngle_ - item._oldAngle_) * process + gaugeOption.oldAngle;
  3430. } else {
  3431. item._proportion_ = item._oldAngle_ - (item._oldAngle_ - item._endAngle_) * process;
  3432. }
  3433. if (item._proportion_ >= 2) {
  3434. item._proportion_ = item._proportion_ % 2;
  3435. }
  3436. }
  3437. return series;
  3438. }
  3439. function getPieTextMaxLength(series) {
  3440. series = getPieDataPoints(series);
  3441. var maxLength = 0;
  3442. for (var i = 0; i < series.length; i++) {
  3443. var item = series[i];
  3444. var text = item.format ? item.format(+item._proportion_.toFixed(2)) : util.toFixed(item._proportion_ * 100) + '%';
  3445. maxLength = Math.max(maxLength, measureText(text));
  3446. }
  3447. return maxLength;
  3448. }
  3449. function fixColumeData(points, eachSpacing, columnLen, index, config, opts) {
  3450. return points.map(function (item) {
  3451. if (item === null) {
  3452. return null;
  3453. }
  3454. item.width = Math.ceil((eachSpacing - 2 * config.columePadding) / columnLen);
  3455. if (opts.extra.column && opts.extra.column.width && +opts.extra.column.width > 0) {
  3456. item.width = Math.min(item.width, +opts.extra.column.width);
  3457. }
  3458. if (item.width <= 0) {
  3459. item.width = 1;
  3460. }
  3461. item.x += (index + 0.5 - columnLen / 2) * item.width;
  3462. return item;
  3463. });
  3464. }
  3465. function fixColumeMeterData(points, eachSpacing, columnLen, index, config, opts, border) {
  3466. return points.map(function (item) {
  3467. if (item === null) {
  3468. return null;
  3469. }
  3470. item.width = Math.ceil((eachSpacing - 2 * config.columePadding) / 2);
  3471. if (opts.extra.column && opts.extra.column.width && +opts.extra.column.width > 0) {
  3472. item.width = Math.min(item.width, +opts.extra.column.width);
  3473. }
  3474. if (index > 0) {
  3475. item.width -= 2 * border;
  3476. }
  3477. return item;
  3478. });
  3479. }
  3480. function fixColumeStackData(points, eachSpacing, columnLen, index, config, opts, series) {
  3481. return points.map(function (item, indexn) {
  3482. if (item === null) {
  3483. return null;
  3484. }
  3485. item.width = Math.ceil((eachSpacing - 2 * config.columePadding) / 2);
  3486. if (opts.extra.column && opts.extra.column.width && +opts.extra.column.width > 0) {
  3487. item.width = Math.min(item.width, +opts.extra.column.width);
  3488. }
  3489. return item;
  3490. });
  3491. }
  3492. function getXAxisPoints(categories, opts, config) {
  3493. var yAxisTotalWidth = config.yAxisWidth + config.yAxisTitleWidth;
  3494. var spacingValid = opts.width - opts.area[1] - opts.area[3];
  3495. var dataCount = opts.enableScroll ? Math.min(opts.xAxis.itemCount, categories.length) : categories.length;
  3496. if ((opts.type == 'line' || opts.type == 'area') && dataCount > 1 && opts.xAxis.boundaryGap == 'justify') {
  3497. dataCount -= 1;
  3498. }
  3499. var eachSpacing = spacingValid / dataCount;
  3500. var xAxisPoints = [];
  3501. var startX = opts.area[3];
  3502. var endX = opts.width - opts.area[1];
  3503. categories.forEach(function (item, index) {
  3504. xAxisPoints.push(startX + index * eachSpacing);
  3505. });
  3506. if (opts.xAxis.boundaryGap !== 'justify') {
  3507. if (opts.enableScroll === true) {
  3508. xAxisPoints.push(startX + categories.length * eachSpacing);
  3509. } else {
  3510. xAxisPoints.push(endX);
  3511. }
  3512. }
  3513. return {
  3514. xAxisPoints: xAxisPoints,
  3515. startX: startX,
  3516. endX: endX,
  3517. eachSpacing: eachSpacing };
  3518. }
  3519. function getCandleDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config) {
  3520. var process = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 1;
  3521. var points = [];
  3522. var validHeight = opts.height - opts.area[0] - opts.area[2];
  3523. data.forEach(function (item, index) {
  3524. if (item === null) {
  3525. points.push(null);
  3526. } else {
  3527. var cPoints = [];
  3528. item.forEach(function (items, indexs) {
  3529. var point = {};
  3530. point.x = xAxisPoints[index] + Math.round(eachSpacing / 2);
  3531. var value = items.value || items;
  3532. var height = validHeight * (value - minRange) / (maxRange - minRange);
  3533. height *= process;
  3534. point.y = opts.height - Math.round(height) - opts.area[2];
  3535. cPoints.push(point);
  3536. });
  3537. points.push(cPoints);
  3538. }
  3539. });
  3540. return points;
  3541. }
  3542. function getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config) {
  3543. var process = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 1;
  3544. var boundaryGap = 'center';
  3545. if (opts.type == 'line' || opts.type == 'area') {
  3546. boundaryGap = opts.xAxis.boundaryGap;
  3547. }
  3548. var points = [];
  3549. var validHeight = opts.height - opts.area[0] - opts.area[2];
  3550. data.forEach(function (item, index) {
  3551. if (item === null) {
  3552. points.push(null);
  3553. } else {
  3554. var point = {};
  3555. point.color = item.color;
  3556. point.x = xAxisPoints[index];
  3557. if (boundaryGap == 'center') {
  3558. point.x += Math.round(eachSpacing / 2);
  3559. }
  3560. var value = item;
  3561. if (typeof item === 'object' && item !== null) {
  3562. value = item.value;
  3563. }
  3564. var height = validHeight * (value - minRange) / (maxRange - minRange);
  3565. height *= process;
  3566. point.y = opts.height - Math.round(height) - opts.area[2];
  3567. points.push(point);
  3568. }
  3569. });
  3570. return points;
  3571. }
  3572. function getStackDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, seriesIndex, stackSeries) {
  3573. var process = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : 1;
  3574. var points = [];
  3575. var validHeight = opts.height - opts.area[0] - opts.area[2];
  3576. data.forEach(function (item, index) {
  3577. if (item === null) {
  3578. points.push(null);
  3579. } else {
  3580. var point = {};
  3581. point.color = item.color;
  3582. point.x = xAxisPoints[index] + Math.round(eachSpacing / 2);
  3583. if (seriesIndex > 0) {
  3584. var value = 0;
  3585. for (var i = 0; i <= seriesIndex; i++) {
  3586. value += stackSeries[i].data[index];
  3587. }
  3588. var value0 = value - item;
  3589. var height = validHeight * (value - minRange) / (maxRange - minRange);
  3590. var height0 = validHeight * (value0 - minRange) / (maxRange - minRange);
  3591. } else {
  3592. var value = item;
  3593. var height = validHeight * (value - minRange) / (maxRange - minRange);
  3594. var height0 = 0;
  3595. }
  3596. var heightc = height0;
  3597. height *= process;
  3598. heightc *= process;
  3599. point.y = opts.height - Math.round(height) - opts.area[2];
  3600. point.y0 = opts.height - Math.round(heightc) - opts.area[2];
  3601. points.push(point);
  3602. }
  3603. });
  3604. return points;
  3605. }
  3606. function getYAxisTextList(series, opts, config, stack) {
  3607. var data;
  3608. if (stack == 'stack') {
  3609. data = dataCombineStack(series, opts.categories.length);
  3610. } else {
  3611. data = dataCombine(series);
  3612. }
  3613. var sorted = [];
  3614. // remove null from data
  3615. data = data.filter(function (item) {
  3616. //return item !== null;
  3617. if (typeof item === 'object' && item !== null) {
  3618. if (Array.isArray(item)) {
  3619. return item !== null;
  3620. } else {
  3621. return item.value !== null;
  3622. }
  3623. } else {
  3624. return item !== null;
  3625. }
  3626. });
  3627. data.map(function (item) {
  3628. if (typeof item === 'object') {
  3629. if (Array.isArray(item)) {
  3630. item.map(function (subitem) {
  3631. sorted.push(subitem);
  3632. });
  3633. } else {
  3634. sorted.push(item.value);
  3635. }
  3636. } else {
  3637. sorted.push(item);
  3638. }
  3639. });
  3640. var minData = 0;
  3641. var maxData = 0;
  3642. if (sorted.length > 0) {
  3643. minData = Math.min.apply(this, sorted);
  3644. maxData = Math.max.apply(this, sorted);
  3645. }
  3646. if (typeof opts.yAxis.min === 'number') {
  3647. minData = Math.min(opts.yAxis.min, minData);
  3648. }
  3649. if (typeof opts.yAxis.max === 'number') {
  3650. maxData = Math.max(opts.yAxis.max, maxData);
  3651. }
  3652. if (minData === maxData) {
  3653. var rangeSpan = maxData || 10;
  3654. maxData += rangeSpan;
  3655. }
  3656. var dataRange = getDataRange(minData, maxData);
  3657. var minRange = dataRange.minRange;
  3658. var maxRange = dataRange.maxRange;
  3659. var range = [];
  3660. var eachRange = (maxRange - minRange) / config.yAxisSplit;
  3661. for (var i = 0; i <= config.yAxisSplit; i++) {
  3662. range.push(minRange + eachRange * i);
  3663. }
  3664. return range.reverse();
  3665. }
  3666. function calYAxisData(series, opts, config) {
  3667. //堆叠图重算Y轴
  3668. var columnstyle = assign({}, {
  3669. type: "" },
  3670. opts.extra.column);
  3671. var ranges = getYAxisTextList(series, opts, config, columnstyle.type);
  3672. var yAxisWidth = config.yAxisWidth;
  3673. var yAxisFontSize = opts.yAxis.fontSize || config.fontSize;
  3674. var rangesFormat = ranges.map(function (item) {
  3675. item = util.toFixed(item, 6);
  3676. item = opts.yAxis.format ? opts.yAxis.format(Number(item)) : item;
  3677. yAxisWidth = Math.max(yAxisWidth, measureText(item, yAxisFontSize) + 5);
  3678. return item;
  3679. });
  3680. if (opts.yAxis.disabled === true) {
  3681. yAxisWidth = 0;
  3682. }
  3683. return {
  3684. rangesFormat: rangesFormat,
  3685. ranges: ranges,
  3686. yAxisWidth: yAxisWidth };
  3687. }
  3688. function calTooltipYAxisData(point, series, opts, config, eachSpacing) {
  3689. var ranges = getYAxisTextList(series, opts, config);
  3690. var spacingValid = opts.height - opts.area[0] - opts.area[2];
  3691. var maxVal = ranges[0];
  3692. var minVal = ranges[ranges.length - 1];
  3693. var minAxis = opts.padding[3];
  3694. var maxAxis = opts.padding[1] + spacingValid;
  3695. var item = maxVal - (maxVal - minVal) * (point - minAxis) / (maxAxis - minAxis);
  3696. item = opts.yAxis.format ? opts.yAxis.format(Number(item)) : item;
  3697. return item;
  3698. }
  3699. function calMarkLineData(minRange, maxRange, points, opts) {
  3700. var spacingValid = opts.height - opts.area[0] - opts.area[2];
  3701. for (var i = 0; i < points.length; i++) {
  3702. var height = spacingValid * (points[i].value - minRange) / (maxRange - minRange);
  3703. points[i].y = opts.height - Math.round(height) - opts.area[2];
  3704. }
  3705. return points;
  3706. }
  3707. function contextRotate(context, opts) {
  3708. if (opts.rotateLock !== true) {
  3709. context.translate(opts.height, 0);
  3710. context.rotate(90 * Math.PI / 180);
  3711. } else if (opts._rotate_ !== true) {
  3712. context.translate(opts.height, 0);
  3713. context.rotate(90 * Math.PI / 180);
  3714. opts._rotate_ = true;
  3715. }
  3716. }
  3717. function drawPointShape(points, color, shape, context, opts) {
  3718. context.beginPath();
  3719. context.setStrokeStyle("#ffffff");
  3720. context.setLineWidth(1 * opts.pixelRatio);
  3721. context.setFillStyle(color);
  3722. if (shape === 'diamond') {
  3723. points.forEach(function (item, index) {
  3724. if (item !== null) {
  3725. context.moveTo(item.x, item.y - 4.5);
  3726. context.lineTo(item.x - 4.5, item.y);
  3727. context.lineTo(item.x, item.y + 4.5);
  3728. context.lineTo(item.x + 4.5, item.y);
  3729. context.lineTo(item.x, item.y - 4.5);
  3730. }
  3731. });
  3732. } else if (shape === 'circle') {
  3733. points.forEach(function (item, index) {
  3734. if (item !== null) {
  3735. context.moveTo(item.x + 3.5 * opts.pixelRatio, item.y);
  3736. context.arc(item.x, item.y, 4 * opts.pixelRatio, 0, 2 * Math.PI, false);
  3737. }
  3738. });
  3739. } else if (shape === 'rect') {
  3740. points.forEach(function (item, index) {
  3741. if (item !== null) {
  3742. context.moveTo(item.x - 3.5, item.y - 3.5);
  3743. context.rect(item.x - 3.5, item.y - 3.5, 7, 7);
  3744. }
  3745. });
  3746. } else if (shape === 'triangle') {
  3747. points.forEach(function (item, index) {
  3748. if (item !== null) {
  3749. context.moveTo(item.x, item.y - 4.5);
  3750. context.lineTo(item.x - 4.5, item.y + 4.5);
  3751. context.lineTo(item.x + 4.5, item.y + 4.5);
  3752. context.lineTo(item.x, item.y - 4.5);
  3753. }
  3754. });
  3755. }
  3756. context.closePath();
  3757. context.fill();
  3758. context.stroke();
  3759. }
  3760. function drawRingTitle(opts, config, context, center) {
  3761. var titlefontSize = opts.title.fontSize || config.titleFontSize;
  3762. var subtitlefontSize = opts.subtitle.fontSize || config.subtitleFontSize;
  3763. var title = opts.title.name || '';
  3764. var subtitle = opts.subtitle.name || '';
  3765. var titleFontColor = opts.title.color || config.titleColor;
  3766. var subtitleFontColor = opts.subtitle.color || config.subtitleColor;
  3767. var titleHeight = title ? titlefontSize : 0;
  3768. var subtitleHeight = subtitle ? subtitlefontSize : 0;
  3769. var margin = 5;
  3770. if (subtitle) {
  3771. var textWidth = measureText(subtitle, subtitlefontSize);
  3772. var startX = center.x - textWidth / 2 + (opts.subtitle.offsetX || 0);
  3773. var startY = center.y + subtitlefontSize / 2 + (opts.subtitle.offsetY || 0);
  3774. if (title) {
  3775. startY += (titleHeight + margin) / 2;
  3776. }
  3777. context.beginPath();
  3778. context.setFontSize(subtitlefontSize);
  3779. context.setFillStyle(subtitleFontColor);
  3780. context.fillText(subtitle, startX, startY);
  3781. context.closePath();
  3782. context.stroke();
  3783. }
  3784. if (title) {
  3785. var _textWidth = measureText(title, titlefontSize);
  3786. var _startX = center.x - _textWidth / 2 + (opts.title.offsetX || 0);
  3787. var _startY = center.y + titlefontSize / 2 + (opts.title.offsetY || 0);
  3788. if (subtitle) {
  3789. _startY -= (subtitleHeight + margin) / 2;
  3790. }
  3791. context.beginPath();
  3792. context.setFontSize(titlefontSize);
  3793. context.setFillStyle(titleFontColor);
  3794. context.fillText(title, _startX, _startY);
  3795. context.closePath();
  3796. context.stroke();
  3797. }
  3798. }
  3799. function drawPointText(points, series, config, context) {
  3800. // 绘制数据文案
  3801. var data = series.data;
  3802. points.forEach(function (item, index) {
  3803. if (item !== null) {
  3804. //var formatVal = series.format ? series.format(data[index]) : data[index];
  3805. context.beginPath();
  3806. context.setFontSize(series.textSize || config.fontSize);
  3807. context.setFillStyle(series.textColor || '#666666');
  3808. var value = data[index];
  3809. if (typeof data[index] === 'object' && data[index] !== null) {
  3810. value = data[index].value;
  3811. }
  3812. var formatVal = series.format ? series.format(value) : value;
  3813. context.fillText(String(formatVal), item.x - measureText(formatVal, series.textSize || config.fontSize) / 2, item.y -
  3814. 2);
  3815. context.closePath();
  3816. context.stroke();
  3817. }
  3818. });
  3819. }
  3820. function drawGaugeLabel(gaugeOption, radius, centerPosition, opts, config, context) {
  3821. radius -= gaugeOption.width / 2 + config.gaugeLabelTextMargin;
  3822. var totalAngle = gaugeOption.startAngle - gaugeOption.endAngle + 1;
  3823. var splitAngle = totalAngle / gaugeOption.splitLine.splitNumber;
  3824. var totalNumber = gaugeOption.endNumber - gaugeOption.startNumber;
  3825. var splitNumber = totalNumber / gaugeOption.splitLine.splitNumber;
  3826. var nowAngle = gaugeOption.startAngle;
  3827. var nowNumber = gaugeOption.startNumber;
  3828. for (var i = 0; i < gaugeOption.splitLine.splitNumber + 1; i++) {
  3829. var pos = {
  3830. x: radius * Math.cos(nowAngle * Math.PI),
  3831. y: radius * Math.sin(nowAngle * Math.PI) };
  3832. var labelText = gaugeOption.labelFormat ? gaugeOption.labelFormat(nowNumber) : nowNumber;
  3833. pos.x += centerPosition.x - measureText(labelText) / 2;
  3834. pos.y += centerPosition.y;
  3835. var startX = pos.x;
  3836. var startY = pos.y;
  3837. context.beginPath();
  3838. context.setFontSize(config.fontSize);
  3839. context.setFillStyle(gaugeOption.labelColor || '#666666');
  3840. context.fillText(labelText, startX, startY + config.fontSize / 2);
  3841. context.closePath();
  3842. context.stroke();
  3843. nowAngle += splitAngle;
  3844. if (nowAngle >= 2) {
  3845. nowAngle = nowAngle % 2;
  3846. }
  3847. nowNumber += splitNumber;
  3848. }
  3849. }
  3850. function drawRadarLabel(angleList, radius, centerPosition, opts, config, context) {
  3851. var radarOption = opts.extra.radar || {};
  3852. radius += config.radarLabelTextMargin;
  3853. angleList.forEach(function (angle, index) {
  3854. var pos = {
  3855. x: radius * Math.cos(angle),
  3856. y: radius * Math.sin(angle) };
  3857. var posRelativeCanvas = convertCoordinateOrigin(pos.x, pos.y, centerPosition);
  3858. var startX = posRelativeCanvas.x;
  3859. var startY = posRelativeCanvas.y;
  3860. if (util.approximatelyEqual(pos.x, 0)) {
  3861. startX -= measureText(opts.categories[index] || '') / 2;
  3862. } else if (pos.x < 0) {
  3863. startX -= measureText(opts.categories[index] || '');
  3864. }
  3865. context.beginPath();
  3866. context.setFontSize(config.fontSize);
  3867. context.setFillStyle(radarOption.labelColor || '#666666');
  3868. context.fillText(opts.categories[index] || '', startX, startY + config.fontSize / 2);
  3869. context.closePath();
  3870. context.stroke();
  3871. });
  3872. }
  3873. function drawPieText(series, opts, config, context, radius, center) {
  3874. var lineRadius = config.pieChartLinePadding;
  3875. var textObjectCollection = [];
  3876. var lastTextObject = null;
  3877. var seriesConvert = series.map(function (item) {
  3878. var text = item.format ? item.format(+item._proportion_.toFixed(2)) : util.toFixed(item._proportion_.toFixed(4) * 100) + '%';
  3879. if (item._rose_proportion_) item._proportion_ = item._rose_proportion_;
  3880. var arc = 2 * Math.PI - (item._start_ + 2 * Math.PI * item._proportion_ / 2);
  3881. var color = item.color;
  3882. var radius = item._radius_;
  3883. return {
  3884. arc: arc,
  3885. text: text,
  3886. color: color,
  3887. radius: radius,
  3888. textColor: item.textColor,
  3889. textSize: item.textSize };
  3890. });
  3891. for (var i = 0; i < seriesConvert.length; i++) {
  3892. var item = seriesConvert[i];
  3893. // line end
  3894. var orginX1 = Math.cos(item.arc) * (item.radius + lineRadius);
  3895. var orginY1 = Math.sin(item.arc) * (item.radius + lineRadius);
  3896. // line start
  3897. var orginX2 = Math.cos(item.arc) * item.radius;
  3898. var orginY2 = Math.sin(item.arc) * item.radius;
  3899. // text start
  3900. var orginX3 = orginX1 >= 0 ? orginX1 + config.pieChartTextPadding : orginX1 - config.pieChartTextPadding;
  3901. var orginY3 = orginY1;
  3902. var textWidth = measureText(item.text);
  3903. var startY = orginY3;
  3904. if (lastTextObject && util.isSameXCoordinateArea(lastTextObject.start, {
  3905. x: orginX3 }))
  3906. {
  3907. if (orginX3 > 0) {
  3908. startY = Math.min(orginY3, lastTextObject.start.y);
  3909. } else if (orginX1 < 0) {
  3910. startY = Math.max(orginY3, lastTextObject.start.y);
  3911. } else {
  3912. if (orginY3 > 0) {
  3913. startY = Math.max(orginY3, lastTextObject.start.y);
  3914. } else {
  3915. startY = Math.min(orginY3, lastTextObject.start.y);
  3916. }
  3917. }
  3918. }
  3919. if (orginX3 < 0) {
  3920. orginX3 -= textWidth;
  3921. }
  3922. var textObject = {
  3923. lineStart: {
  3924. x: orginX2,
  3925. y: orginY2 },
  3926. lineEnd: {
  3927. x: orginX1,
  3928. y: orginY1 },
  3929. start: {
  3930. x: orginX3,
  3931. y: startY },
  3932. width: textWidth,
  3933. height: config.fontSize,
  3934. text: item.text,
  3935. color: item.color,
  3936. textColor: item.textColor,
  3937. textSize: item.textSize };
  3938. lastTextObject = avoidCollision(textObject, lastTextObject);
  3939. textObjectCollection.push(lastTextObject);
  3940. }
  3941. for (var _i11 = 0; _i11 < textObjectCollection.length; _i11++) {
  3942. var _item6 = textObjectCollection[_i11];
  3943. var lineStartPoistion = convertCoordinateOrigin(_item6.lineStart.x, _item6.lineStart.y, center);
  3944. var lineEndPoistion = convertCoordinateOrigin(_item6.lineEnd.x, _item6.lineEnd.y, center);
  3945. var textPosition = convertCoordinateOrigin(_item6.start.x, _item6.start.y, center);
  3946. context.setLineWidth(1 * opts.pixelRatio);
  3947. context.setFontSize(config.fontSize);
  3948. context.beginPath();
  3949. context.setStrokeStyle(_item6.color);
  3950. context.setFillStyle(_item6.color);
  3951. context.moveTo(lineStartPoistion.x, lineStartPoistion.y);
  3952. var curveStartX = _item6.start.x < 0 ? textPosition.x + _item6.width : textPosition.x;
  3953. var textStartX = _item6.start.x < 0 ? textPosition.x - 5 : textPosition.x + 5;
  3954. context.quadraticCurveTo(lineEndPoistion.x, lineEndPoistion.y, curveStartX, textPosition.y);
  3955. context.moveTo(lineStartPoistion.x, lineStartPoistion.y);
  3956. context.stroke();
  3957. context.closePath();
  3958. context.beginPath();
  3959. context.moveTo(textPosition.x + _item6.width, textPosition.y);
  3960. context.arc(curveStartX, textPosition.y, 2, 0, 2 * Math.PI);
  3961. context.closePath();
  3962. context.fill();
  3963. context.beginPath();
  3964. context.setFontSize(_item6.textSize || config.fontSize);
  3965. context.setFillStyle(_item6.textColor || '#666666');
  3966. context.fillText(_item6.text, textStartX, textPosition.y + 3);
  3967. context.closePath();
  3968. context.stroke();
  3969. context.closePath();
  3970. }
  3971. }
  3972. function drawToolTipSplitLine(offsetX, opts, config, context) {
  3973. var toolTipOption = opts.extra.tooltip || {};
  3974. toolTipOption.gridType = toolTipOption.gridType == undefined ? 'solid' : toolTipOption.gridType;
  3975. toolTipOption.dashLength = toolTipOption.dashLength == undefined ? 4 : toolTipOption.dashLength;
  3976. var startY = opts.area[0];
  3977. var endY = opts.height - opts.area[2];
  3978. if (toolTipOption.gridType == 'dash') {
  3979. context.setLineDash([toolTipOption.dashLength, toolTipOption.dashLength]);
  3980. }
  3981. context.setStrokeStyle(toolTipOption.gridColor || '#cccccc');
  3982. context.setLineWidth(1 * opts.pixelRatio);
  3983. context.beginPath();
  3984. context.moveTo(offsetX, startY);
  3985. context.lineTo(offsetX, endY);
  3986. context.stroke();
  3987. context.setLineDash([]);
  3988. if (toolTipOption.xAxisLabel) {
  3989. var labelText = opts.categories[opts.tooltip.index];
  3990. context.setFontSize(config.fontSize);
  3991. var textWidth = measureText(labelText, config.fontSize);
  3992. var textX = offsetX - 0.5 * textWidth;
  3993. var textY = endY;
  3994. context.beginPath();
  3995. context.setFillStyle(hexToRgb(toolTipOption.labelBgColor || config.toolTipBackground, toolTipOption.labelBgOpacity || config.toolTipOpacity));
  3996. context.setStrokeStyle(toolTipOption.labelBgColor || config.toolTipBackground);
  3997. context.setLineWidth(1 * opts.pixelRatio);
  3998. context.rect(textX - config.toolTipPadding, textY, textWidth + 2 * config.toolTipPadding, config.fontSize + 2 * config.toolTipPadding);
  3999. context.closePath();
  4000. context.stroke();
  4001. context.fill();
  4002. context.beginPath();
  4003. context.setFontSize(config.fontSize);
  4004. context.setFillStyle(toolTipOption.labelFontColor || config.fontColor);
  4005. context.fillText(String(labelText), textX, textY + config.toolTipPadding + config.fontSize);
  4006. context.closePath();
  4007. context.stroke();
  4008. }
  4009. }
  4010. function drawMarkLine(minRange, maxRange, opts, config, context) {
  4011. var markLineOption = assign({}, {
  4012. type: 'solid',
  4013. dashLength: 4,
  4014. data: [] },
  4015. opts.extra.markLine);
  4016. var startX = opts.area[3];
  4017. var endX = opts.width - opts.padding[1];
  4018. var points = calMarkLineData(minRange, maxRange, markLineOption.data, opts);
  4019. for (var i = 0; i < points.length; i++) {
  4020. var item = assign({}, {
  4021. lineColor: '#DE4A42',
  4022. showLabel: false,
  4023. labelFontColor: '#666666',
  4024. labelBgColor: '#DFE8FF',
  4025. labelBgOpacity: 0.8,
  4026. yAxisIndex: 0 },
  4027. points[i]);
  4028. if (markLineOption.type == 'dash') {
  4029. context.setLineDash([markLineOption.dashLength, markLineOption.dashLength]);
  4030. }
  4031. context.setStrokeStyle(item.lineColor);
  4032. context.setLineWidth(1 * opts.pixelRatio);
  4033. context.beginPath();
  4034. context.moveTo(startX, item.y);
  4035. context.lineTo(endX, item.y);
  4036. context.stroke();
  4037. context.setLineDash([]);
  4038. if (item.showLabel) {
  4039. var labelText = opts.yAxis.format ? opts.yAxis.format(Number(item.value)) : item.value;
  4040. context.setFontSize(config.fontSize);
  4041. var textWidth = measureText(labelText, config.fontSize);
  4042. var bgStartX = opts.padding[3] + config.yAxisTitleWidth - config.toolTipPadding;
  4043. var bgEndX = Math.max(opts.area[3], textWidth + config.toolTipPadding * 2);
  4044. var bgWidth = bgEndX - bgStartX;
  4045. var textX = bgStartX + (bgWidth - textWidth) / 2;
  4046. var textY = item.y;
  4047. context.setFillStyle(hexToRgb(item.labelBgColor, item.labelBgOpacity));
  4048. context.setStrokeStyle(item.labelBgColor);
  4049. context.setLineWidth(1 * opts.pixelRatio);
  4050. context.beginPath();
  4051. context.rect(bgStartX, textY - 0.5 * config.fontSize - config.toolTipPadding, bgWidth, config.fontSize + 2 * config.toolTipPadding);
  4052. context.closePath();
  4053. context.stroke();
  4054. context.fill();
  4055. context.beginPath();
  4056. context.setFontSize(config.fontSize);
  4057. context.setFillStyle(item.labelFontColor);
  4058. context.fillText(String(labelText), textX, textY + 0.5 * config.fontSize);
  4059. context.stroke();
  4060. }
  4061. }
  4062. }
  4063. function drawToolTipHorizentalLine(opts, config, context, eachSpacing, xAxisPoints) {
  4064. var toolTipOption = assign({}, {
  4065. gridType: 'solid',
  4066. dashLength: 4 },
  4067. opts.extra.tooltip);
  4068. var startX = opts.area[3];
  4069. var endX = opts.width - opts.padding[1];
  4070. if (toolTipOption.gridType == 'dash') {
  4071. context.setLineDash([toolTipOption.dashLength, toolTipOption.dashLength]);
  4072. }
  4073. context.setStrokeStyle(toolTipOption.gridColor || '#cccccc');
  4074. context.setLineWidth(1 * opts.pixelRatio);
  4075. context.beginPath();
  4076. context.moveTo(startX, opts.tooltip.offset.y);
  4077. context.lineTo(endX, opts.tooltip.offset.y);
  4078. context.stroke();
  4079. context.setLineDash([]);
  4080. if (toolTipOption.yAxisLabel) {
  4081. var labelText = calTooltipYAxisData(opts.tooltip.offset.y, opts.series, opts, config, eachSpacing);
  4082. context.setFontSize(config.fontSize);
  4083. var textWidth = measureText(labelText, config.fontSize);
  4084. var bgStartX = opts.padding[3] + config.yAxisTitleWidth - config.toolTipPadding;
  4085. var bgEndX = Math.max(opts.area[3], textWidth + config.toolTipPadding * 2);
  4086. var bgWidth = bgEndX - bgStartX;
  4087. var textX = bgStartX + (bgWidth - textWidth) / 2;
  4088. var textY = opts.tooltip.offset.y;
  4089. context.beginPath();
  4090. context.setFillStyle(hexToRgb(toolTipOption.labelBgColor || config.toolTipBackground, toolTipOption.labelBgOpacity || config.toolTipOpacity));
  4091. context.setStrokeStyle(toolTipOption.labelBgColor || config.toolTipBackground);
  4092. context.setLineWidth(1 * opts.pixelRatio);
  4093. context.rect(bgStartX, textY - 0.5 * config.fontSize - config.toolTipPadding, bgWidth, config.fontSize + 2 * config.toolTipPadding);
  4094. context.closePath();
  4095. context.stroke();
  4096. context.fill();
  4097. context.beginPath();
  4098. context.setFontSize(config.fontSize);
  4099. context.setFillStyle(toolTipOption.labelFontColor || config.fontColor);
  4100. context.fillText(labelText, textX, textY + 0.5 * config.fontSize);
  4101. context.closePath();
  4102. context.stroke();
  4103. }
  4104. }
  4105. function drawToolTipSplitArea(offsetX, opts, config, context, eachSpacing) {
  4106. var toolTipOption = assign({}, {
  4107. activeBgColor: '#000000',
  4108. activeBgOpacity: 0.08 },
  4109. opts.extra.tooltip);
  4110. var startY = opts.area[0];
  4111. var endY = opts.height - opts.area[2];
  4112. context.beginPath();
  4113. context.setFillStyle(hexToRgb(toolTipOption.activeBgColor, toolTipOption.activeBgOpacity));
  4114. context.rect(offsetX - eachSpacing / 2, startY, eachSpacing, endY - startY);
  4115. context.closePath();
  4116. context.fill();
  4117. }
  4118. function drawToolTip(textList, offset, opts, config, context, eachSpacing, xAxisPoints) {
  4119. var toolTipOption = assign({}, {
  4120. bgColor: '#000000',
  4121. bgOpacity: 0.7,
  4122. fontColor: '#FFFFFF' },
  4123. opts.extra.tooltip);
  4124. var legendWidth = 4 * opts.pixelRatio;
  4125. var legendMarginRight = 5 * opts.pixelRatio;
  4126. var arrowWidth = 8 * opts.pixelRatio;
  4127. var isOverRightBorder = false;
  4128. if (opts.type == 'line' || opts.type == 'area' || opts.type == 'candle' || opts.type == 'mix') {
  4129. drawToolTipSplitLine(opts.tooltip.offset.x, opts, config, context);
  4130. }
  4131. offset = assign({
  4132. x: 0,
  4133. y: 0 },
  4134. offset);
  4135. offset.y -= 8 * opts.pixelRatio;
  4136. var textWidth = textList.map(function (item) {
  4137. return measureText(item.text, config.fontSize);
  4138. });
  4139. var toolTipWidth = legendWidth + legendMarginRight + 4 * config.toolTipPadding + Math.max.apply(null, textWidth);
  4140. var toolTipHeight = 2 * config.toolTipPadding + textList.length * config.toolTipLineHeight;
  4141. // if beyond the right border
  4142. if (offset.x - Math.abs(opts._scrollDistance_) + arrowWidth + toolTipWidth > opts.width) {
  4143. isOverRightBorder = true;
  4144. }
  4145. if (toolTipHeight + offset.y > opts.height) {
  4146. offset.y = opts.height - toolTipHeight;
  4147. }
  4148. // draw background rect
  4149. context.beginPath();
  4150. context.setFillStyle(hexToRgb(toolTipOption.bgColor || config.toolTipBackground, toolTipOption.bgOpacity || config.toolTipOpacity));
  4151. if (isOverRightBorder) {
  4152. context.moveTo(offset.x, offset.y + 10 * opts.pixelRatio);
  4153. context.lineTo(offset.x - arrowWidth, offset.y + 10 * opts.pixelRatio - 5 * opts.pixelRatio);
  4154. context.lineTo(offset.x - arrowWidth, offset.y);
  4155. context.lineTo(offset.x - arrowWidth - Math.round(toolTipWidth), offset.y);
  4156. context.lineTo(offset.x - arrowWidth - Math.round(toolTipWidth), offset.y + toolTipHeight);
  4157. context.lineTo(offset.x - arrowWidth, offset.y + toolTipHeight);
  4158. context.lineTo(offset.x - arrowWidth, offset.y + 10 * opts.pixelRatio + 5 * opts.pixelRatio);
  4159. context.lineTo(offset.x, offset.y + 10 * opts.pixelRatio);
  4160. } else {
  4161. context.moveTo(offset.x, offset.y + 10 * opts.pixelRatio);
  4162. context.lineTo(offset.x + arrowWidth, offset.y + 10 * opts.pixelRatio - 5 * opts.pixelRatio);
  4163. context.lineTo(offset.x + arrowWidth, offset.y);
  4164. context.lineTo(offset.x + arrowWidth + Math.round(toolTipWidth), offset.y);
  4165. context.lineTo(offset.x + arrowWidth + Math.round(toolTipWidth), offset.y + toolTipHeight);
  4166. context.lineTo(offset.x + arrowWidth, offset.y + toolTipHeight);
  4167. context.lineTo(offset.x + arrowWidth, offset.y + 10 * opts.pixelRatio + 5 * opts.pixelRatio);
  4168. context.lineTo(offset.x, offset.y + 10 * opts.pixelRatio);
  4169. }
  4170. context.closePath();
  4171. context.fill();
  4172. // draw legend
  4173. textList.forEach(function (item, index) {
  4174. if (item.color !== null) {
  4175. context.beginPath();
  4176. context.setFillStyle(item.color);
  4177. var startX = offset.x + arrowWidth + 2 * config.toolTipPadding;
  4178. var startY = offset.y + (config.toolTipLineHeight - config.fontSize) / 2 + config.toolTipLineHeight * index +
  4179. config.toolTipPadding + 1;
  4180. if (isOverRightBorder) {
  4181. startX = offset.x - toolTipWidth - arrowWidth + 2 * config.toolTipPadding;
  4182. }
  4183. context.fillRect(startX, startY, legendWidth, config.fontSize);
  4184. context.closePath();
  4185. }
  4186. });
  4187. // draw text list
  4188. textList.forEach(function (item, index) {
  4189. var startX = offset.x + arrowWidth + 2 * config.toolTipPadding + legendWidth + legendMarginRight;
  4190. if (isOverRightBorder) {
  4191. startX = offset.x - toolTipWidth - arrowWidth + 2 * config.toolTipPadding + +legendWidth + legendMarginRight;
  4192. }
  4193. var startY = offset.y + (config.toolTipLineHeight - config.fontSize) / 2 + config.toolTipLineHeight * index +
  4194. config.toolTipPadding;
  4195. context.beginPath();
  4196. context.setFontSize(config.fontSize);
  4197. context.setFillStyle(toolTipOption.fontColor);
  4198. context.fillText(item.text, startX, startY + config.fontSize);
  4199. context.closePath();
  4200. context.stroke();
  4201. });
  4202. }
  4203. function drawYAxisTitle(title, opts, config, context) {
  4204. var startX = config.xAxisHeight + (opts.height - config.xAxisHeight - measureText(title)) / 2;
  4205. context.save();
  4206. context.beginPath();
  4207. context.setFontSize(config.fontSize);
  4208. context.setFillStyle(opts.yAxis.titleFontColor || '#333333');
  4209. context.translate(0, opts.height);
  4210. context.rotate(-90 * Math.PI / 180);
  4211. context.fillText(title, startX, opts.padding[3] + 0.5 * config.fontSize);
  4212. context.closePath();
  4213. context.stroke();
  4214. context.restore();
  4215. }
  4216. function drawColumnDataPoints(series, opts, config, context) {
  4217. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  4218. var ranges = [].concat(opts.chartData.yAxisData.ranges);
  4219. var xAxisData = opts.chartData.xAxisData,
  4220. xAxisPoints = xAxisData.xAxisPoints,
  4221. eachSpacing = xAxisData.eachSpacing;
  4222. var columnOption = assign({}, {
  4223. type: 'group',
  4224. width: eachSpacing / 2,
  4225. meter: {
  4226. border: 4,
  4227. fillColor: '#FFFFFF' } },
  4228. opts.extra.column);
  4229. var minRange = ranges.pop();
  4230. var maxRange = ranges.shift();
  4231. var calPoints = [];
  4232. context.save();
  4233. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  4234. context.translate(opts._scrollDistance_, 0);
  4235. }
  4236. if (opts.tooltip && opts.tooltip.textList && opts.tooltip.textList.length && process === 1) {
  4237. drawToolTipSplitArea(opts.tooltip.offset.x, opts, config, context, eachSpacing);
  4238. }
  4239. series.forEach(function (eachSeries, seriesIndex) {
  4240. var data = eachSeries.data;
  4241. switch (columnOption.type) {
  4242. case 'group':
  4243. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4244. var tooltipPoints = getStackDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, seriesIndex, series, process);
  4245. calPoints.push(tooltipPoints);
  4246. points = fixColumeData(points, eachSpacing, series.length, seriesIndex, config, opts);
  4247. points.forEach(function (item, index) {
  4248. if (item !== null) {
  4249. context.beginPath();
  4250. context.setStrokeStyle(item.color || eachSeries.color);
  4251. context.setLineWidth(1);
  4252. context.setFillStyle(item.color || eachSeries.color);
  4253. var startX = item.x - item.width / 2;
  4254. var height = opts.height - item.y - opts.area[2];
  4255. context.moveTo(startX - 1, item.y);
  4256. context.lineTo(startX + item.width - 2, item.y);
  4257. context.lineTo(startX + item.width - 2, opts.height - opts.area[2]);
  4258. context.lineTo(startX, opts.height - opts.area[2]);
  4259. context.lineTo(startX, item.y);
  4260. //context.rect(startX, item.y, item.width, height);
  4261. context.closePath();
  4262. context.stroke();
  4263. context.fill();
  4264. }
  4265. });
  4266. break;
  4267. case 'stack':
  4268. // 绘制堆叠数据图
  4269. var points = getStackDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config,
  4270. seriesIndex,
  4271. series, process);
  4272. calPoints.push(points);
  4273. points = fixColumeStackData(points, eachSpacing, series.length, seriesIndex, config, opts, series);
  4274. points.forEach(function (item, index) {
  4275. if (item !== null) {
  4276. context.beginPath();
  4277. context.setFillStyle(item.color || eachSeries.color);
  4278. var startX = item.x - item.width / 2 + 1;
  4279. var height = opts.height - item.y - opts.area[2];
  4280. var height0 = opts.height - item.y0 - opts.area[2];
  4281. if (seriesIndex > 0) {
  4282. height -= height0;
  4283. }
  4284. context.moveTo(startX, item.y);
  4285. context.fillRect(startX, item.y, item.width - 2, height);
  4286. context.closePath();
  4287. context.fill();
  4288. }
  4289. });
  4290. break;
  4291. case 'meter':
  4292. // 绘制温度计数据图
  4293. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4294. calPoints.push(points);
  4295. points = fixColumeMeterData(points, eachSpacing, series.length, seriesIndex, config, opts, columnOption.meter.
  4296. border);
  4297. if (seriesIndex == 0) {
  4298. points.forEach(function (item, index) {
  4299. if (item !== null) {
  4300. //画背景颜色
  4301. context.beginPath();
  4302. context.setFillStyle(columnOption.meter.fillColor);
  4303. var startX = item.x - item.width / 2;
  4304. var height = opts.height - item.y - opts.area[2];
  4305. context.moveTo(startX, item.y);
  4306. context.fillRect(startX, item.y, item.width, height);
  4307. context.closePath();
  4308. context.fill();
  4309. //画边框线
  4310. if (columnOption.meter.border > 0) {
  4311. context.beginPath();
  4312. context.setStrokeStyle(eachSeries.color);
  4313. context.setLineWidth(columnOption.meter.border * opts.pixelRatio);
  4314. context.moveTo(startX + columnOption.meter.border * 0.5, item.y + height);
  4315. context.lineTo(startX + columnOption.meter.border * 0.5, item.y + columnOption.meter.border * 0.5);
  4316. context.lineTo(startX + item.width - columnOption.meter.border * 0.5, item.y + columnOption.meter.border * 0.5);
  4317. context.lineTo(startX + item.width - columnOption.meter.border * 0.5, item.y + height);
  4318. context.stroke();
  4319. }
  4320. }
  4321. });
  4322. } else {
  4323. points.forEach(function (item, index) {
  4324. if (item !== null) {
  4325. context.beginPath();
  4326. context.setFillStyle(item.color || eachSeries.color);
  4327. var startX = item.x - item.width / 2;
  4328. var height = opts.height - item.y - opts.area[2];
  4329. context.moveTo(startX, item.y);
  4330. context.fillRect(startX, item.y, item.width, height);
  4331. context.closePath();
  4332. context.fill();
  4333. }
  4334. });
  4335. }
  4336. break;}
  4337. });
  4338. if (opts.dataLabel !== false && process === 1) {
  4339. series.forEach(function (eachSeries, seriesIndex) {
  4340. var data = eachSeries.data;
  4341. switch (columnOption.type) {
  4342. case 'group':
  4343. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4344. points = fixColumeData(points, eachSpacing, series.length, seriesIndex, config, opts);
  4345. drawPointText(points, eachSeries, config, context);
  4346. break;
  4347. case 'stack':
  4348. var points = getStackDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config,
  4349. seriesIndex,
  4350. series, process);
  4351. drawPointText(points, eachSeries, config, context);
  4352. break;
  4353. case 'meter':
  4354. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4355. drawPointText(points, eachSeries, config, context);
  4356. break;}
  4357. });
  4358. }
  4359. context.restore();
  4360. return {
  4361. xAxisPoints: xAxisPoints,
  4362. calPoints: calPoints,
  4363. eachSpacing: eachSpacing,
  4364. minRange: minRange,
  4365. maxRange: maxRange };
  4366. }
  4367. function drawCandleDataPoints(series, seriesMA, opts, config, context) {
  4368. var process = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;
  4369. var candleOption = assign({}, {
  4370. color: {},
  4371. average: {} },
  4372. opts.extra.candle);
  4373. candleOption.color = assign({}, {
  4374. upLine: '#f04864',
  4375. upFill: '#f04864',
  4376. downLine: '#2fc25b',
  4377. downFill: '#2fc25b' },
  4378. candleOption.color);
  4379. candleOption.average = assign({}, {
  4380. show: false,
  4381. name: [],
  4382. day: [],
  4383. color: config.colors },
  4384. candleOption.average);
  4385. opts.extra.candle = candleOption;
  4386. var ranges = [].concat(opts.chartData.yAxisData.ranges);
  4387. var xAxisData = opts.chartData.xAxisData,
  4388. xAxisPoints = xAxisData.xAxisPoints,
  4389. eachSpacing = xAxisData.eachSpacing;
  4390. var minRange = ranges.pop();
  4391. var maxRange = ranges.shift();
  4392. var calPoints = [];
  4393. context.save();
  4394. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  4395. context.translate(opts._scrollDistance_, 0);
  4396. }
  4397. //画均线
  4398. if (candleOption.average.show) {
  4399. seriesMA.forEach(function (eachSeries, seriesIndex) {
  4400. var data = eachSeries.data;
  4401. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4402. //calPoints.push(points);
  4403. var splitPointList = splitPoints(points);
  4404. splitPointList.forEach(function (points, index) {
  4405. context.beginPath();
  4406. context.setStrokeStyle(eachSeries.color);
  4407. context.setLineWidth(1);
  4408. if (points.length === 1) {
  4409. context.moveTo(points[0].x, points[0].y);
  4410. context.arc(points[0].x, points[0].y, 1, 0, 2 * Math.PI);
  4411. } else {
  4412. context.moveTo(points[0].x, points[0].y);
  4413. points.forEach(function (item, index) {
  4414. if (index > 0) {
  4415. var ctrlPoint = createCurveControlPoints(points, index - 1);
  4416. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y,
  4417. item.x, item.
  4418. y);
  4419. }
  4420. });
  4421. context.moveTo(points[0].x, points[0].y);
  4422. }
  4423. context.closePath();
  4424. context.stroke();
  4425. });
  4426. });
  4427. }
  4428. //画K线
  4429. series.forEach(function (eachSeries, seriesIndex) {
  4430. var data = eachSeries.data;
  4431. var points = getCandleDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4432. calPoints.push(points);
  4433. var splitPointList = splitPoints(points);
  4434. splitPointList = splitPointList[0];
  4435. splitPointList.forEach(function (points, index) {
  4436. context.beginPath();
  4437. //如果上涨
  4438. if (data[index][1] - data[index][0] > 0) {
  4439. context.setStrokeStyle(candleOption.color.upLine);
  4440. context.setFillStyle(candleOption.color.upFill);
  4441. context.setLineWidth(1 * opts.pixelRatio);
  4442. context.moveTo(points[3].x, points[3].y); //顶点
  4443. context.lineTo(points[1].x, points[1].y); //收盘中间点
  4444. context.lineTo(points[1].x - eachSpacing / 4, points[1].y); //收盘左侧点
  4445. context.lineTo(points[0].x - eachSpacing / 4, points[0].y); //开盘左侧点
  4446. context.lineTo(points[0].x, points[0].y); //开盘中间点
  4447. context.lineTo(points[2].x, points[2].y); //底点
  4448. context.lineTo(points[0].x, points[0].y); //开盘中间点
  4449. context.lineTo(points[0].x + eachSpacing / 4, points[0].y); //开盘右侧点
  4450. context.lineTo(points[1].x + eachSpacing / 4, points[1].y); //收盘右侧点
  4451. context.lineTo(points[1].x, points[1].y); //收盘中间点
  4452. context.moveTo(points[3].x, points[3].y); //顶点
  4453. } else {
  4454. context.setStrokeStyle(candleOption.color.downLine);
  4455. context.setFillStyle(candleOption.color.downFill);
  4456. context.setLineWidth(1 * opts.pixelRatio);
  4457. context.moveTo(points[3].x, points[3].y); //顶点
  4458. context.lineTo(points[0].x, points[0].y); //开盘中间点
  4459. context.lineTo(points[0].x - eachSpacing / 4, points[0].y); //开盘左侧点
  4460. context.lineTo(points[1].x - eachSpacing / 4, points[1].y); //收盘左侧点
  4461. context.lineTo(points[1].x, points[1].y); //收盘中间点
  4462. context.lineTo(points[2].x, points[2].y); //底点
  4463. context.lineTo(points[1].x, points[1].y); //收盘中间点
  4464. context.lineTo(points[1].x + eachSpacing / 4, points[1].y); //收盘右侧点
  4465. context.lineTo(points[0].x + eachSpacing / 4, points[0].y); //开盘右侧点
  4466. context.lineTo(points[0].x, points[0].y); //开盘中间点
  4467. context.moveTo(points[3].x, points[3].y); //顶点
  4468. }
  4469. context.closePath();
  4470. context.fill();
  4471. context.stroke();
  4472. });
  4473. });
  4474. context.restore();
  4475. return {
  4476. xAxisPoints: xAxisPoints,
  4477. calPoints: calPoints,
  4478. eachSpacing: eachSpacing,
  4479. minRange: minRange,
  4480. maxRange: maxRange };
  4481. }
  4482. function drawAreaDataPoints(series, opts, config, context) {
  4483. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  4484. var areaOption = assign({}, {
  4485. type: 'straight',
  4486. opacity: 0.2,
  4487. addLine: false,
  4488. width: 2 },
  4489. opts.extra.area);
  4490. var ranges = [].concat(opts.chartData.yAxisData.ranges);
  4491. var xAxisData = opts.chartData.xAxisData,
  4492. xAxisPoints = xAxisData.xAxisPoints,
  4493. eachSpacing = xAxisData.eachSpacing;
  4494. var minRange = ranges.pop();
  4495. var maxRange = ranges.shift();
  4496. var endY = opts.height - opts.area[2];
  4497. var calPoints = [];
  4498. context.save();
  4499. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  4500. context.translate(opts._scrollDistance_, 0);
  4501. }
  4502. series.forEach(function (eachSeries, seriesIndex) {
  4503. var data = eachSeries.data;
  4504. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4505. calPoints.push(points);
  4506. var splitPointList = splitPoints(points);var _loop3 = function _loop3(
  4507. i) {
  4508. var points = splitPointList[i];
  4509. // 绘制区域数
  4510. context.beginPath();
  4511. context.setStrokeStyle(hexToRgb(eachSeries.color, areaOption.opacity));
  4512. context.setFillStyle(hexToRgb(eachSeries.color, areaOption.opacity));
  4513. context.setLineWidth(areaOption.width * opts.pixelRatio);
  4514. if (points.length > 1) {
  4515. var firstPoint = points[0];
  4516. var lastPoint = points[points.length - 1];
  4517. context.moveTo(firstPoint.x, firstPoint.y);
  4518. if (areaOption.type === 'curve') {
  4519. points.forEach(function (item, index) {
  4520. if (index > 0) {
  4521. var ctrlPoint = createCurveControlPoints(points, index - 1);
  4522. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y, item.x, item.y);
  4523. }
  4524. });
  4525. } else {
  4526. points.forEach(function (item, index) {
  4527. if (index > 0) {
  4528. context.lineTo(item.x, item.y);
  4529. }
  4530. });
  4531. }
  4532. context.lineTo(lastPoint.x, endY);
  4533. context.lineTo(firstPoint.x, endY);
  4534. context.lineTo(firstPoint.x, firstPoint.y);
  4535. } else {
  4536. var item = points[0];
  4537. context.moveTo(item.x - eachSpacing / 2, item.y);
  4538. context.lineTo(item.x + eachSpacing / 2, item.y);
  4539. context.lineTo(item.x + eachSpacing / 2, endY);
  4540. context.lineTo(item.x - eachSpacing / 2, endY);
  4541. context.moveTo(item.x - eachSpacing / 2, item.y);
  4542. }
  4543. context.closePath();
  4544. context.fill();
  4545. //画连线
  4546. if (areaOption.addLine) {
  4547. context.beginPath();
  4548. context.setStrokeStyle(eachSeries.color);
  4549. context.setLineWidth(areaOption.width * opts.pixelRatio);
  4550. if (points.length === 1) {
  4551. context.moveTo(points[0].x, points[0].y);
  4552. context.arc(points[0].x, points[0].y, 1, 0, 2 * Math.PI);
  4553. } else {
  4554. context.moveTo(points[0].x, points[0].y);
  4555. if (areaOption.type === 'curve') {
  4556. points.forEach(function (item, index) {
  4557. if (index > 0) {
  4558. var ctrlPoint = createCurveControlPoints(points, index - 1);
  4559. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y, item.x, item.y);
  4560. }
  4561. });
  4562. } else {
  4563. points.forEach(function (item, index) {
  4564. if (index > 0) {
  4565. context.lineTo(item.x, item.y);
  4566. }
  4567. });
  4568. }
  4569. context.moveTo(points[0].x, points[0].y);
  4570. }
  4571. context.closePath();
  4572. context.stroke();
  4573. }};for (var i = 0; i < splitPointList.length; i++) {_loop3(i);
  4574. }
  4575. //画点
  4576. if (opts.dataPointShape !== false) {
  4577. var shape = config.dataPointShape[seriesIndex % config.dataPointShape.length];
  4578. drawPointShape(points, eachSeries.color, shape, context, opts);
  4579. }
  4580. });
  4581. if (opts.dataLabel !== false && process === 1) {
  4582. series.forEach(function (eachSeries, seriesIndex) {
  4583. var data = eachSeries.data;
  4584. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4585. drawPointText(points, eachSeries, config, context);
  4586. });
  4587. }
  4588. context.restore();
  4589. return {
  4590. xAxisPoints: xAxisPoints,
  4591. calPoints: calPoints,
  4592. eachSpacing: eachSpacing,
  4593. minRange: minRange,
  4594. maxRange: maxRange };
  4595. }
  4596. function drawLineDataPoints(series, opts, config, context) {
  4597. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  4598. var lineOption = opts.extra.line || {
  4599. type: 'straight',
  4600. width: 2 };
  4601. lineOption.type = lineOption.type ? lineOption.type : 'straight';
  4602. lineOption.width = lineOption.width ? lineOption.width : 2;
  4603. var ranges = [].concat(opts.chartData.yAxisData.ranges);
  4604. var xAxisData = opts.chartData.xAxisData,
  4605. xAxisPoints = xAxisData.xAxisPoints,
  4606. eachSpacing = xAxisData.eachSpacing;
  4607. var minRange = ranges.pop();
  4608. var maxRange = ranges.shift();
  4609. var calPoints = [];
  4610. context.save();
  4611. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  4612. context.translate(opts._scrollDistance_, 0);
  4613. }
  4614. series.forEach(function (eachSeries, seriesIndex) {
  4615. var data = eachSeries.data;
  4616. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4617. calPoints.push(points);
  4618. var splitPointList = splitPoints(points);
  4619. splitPointList.forEach(function (points, index) {
  4620. context.beginPath();
  4621. context.setStrokeStyle(eachSeries.color);
  4622. context.setLineWidth(lineOption.width * opts.pixelRatio);
  4623. if (points.length === 1) {
  4624. context.moveTo(points[0].x, points[0].y);
  4625. context.arc(points[0].x, points[0].y, 1, 0, 2 * Math.PI);
  4626. } else {
  4627. context.moveTo(points[0].x, points[0].y);
  4628. if (lineOption.type === 'curve') {
  4629. points.forEach(function (item, index) {
  4630. if (index > 0) {
  4631. var ctrlPoint = createCurveControlPoints(points, index - 1);
  4632. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y,
  4633. item.x, item.
  4634. y);
  4635. }
  4636. });
  4637. } else {
  4638. points.forEach(function (item, index) {
  4639. if (index > 0) {
  4640. context.lineTo(item.x, item.y);
  4641. }
  4642. });
  4643. }
  4644. context.moveTo(points[0].x, points[0].y);
  4645. }
  4646. context.closePath();
  4647. context.stroke();
  4648. });
  4649. if (opts.dataPointShape !== false) {
  4650. var shape = config.dataPointShape[seriesIndex % config.dataPointShape.length];
  4651. drawPointShape(points, eachSeries.color, shape, context, opts);
  4652. }
  4653. });
  4654. if (opts.dataLabel !== false && process === 1) {
  4655. series.forEach(function (eachSeries, seriesIndex) {
  4656. var data = eachSeries.data;
  4657. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4658. drawPointText(points, eachSeries, config, context);
  4659. });
  4660. }
  4661. context.restore();
  4662. return {
  4663. xAxisPoints: xAxisPoints,
  4664. calPoints: calPoints,
  4665. eachSpacing: eachSpacing,
  4666. minRange: minRange,
  4667. maxRange: maxRange };
  4668. }
  4669. function drawMixDataPoints(series, opts, config, context) {
  4670. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  4671. var ranges = [].concat(opts.chartData.yAxisData.ranges);
  4672. var xAxisData = opts.chartData.xAxisData,
  4673. xAxisPoints = xAxisData.xAxisPoints,
  4674. eachSpacing = xAxisData.eachSpacing;
  4675. var minRange = ranges.pop();
  4676. var maxRange = ranges.shift();
  4677. var endY = opts.height - opts.area[2];
  4678. var calPoints = [];
  4679. var columnIndex = 0;
  4680. var columnLength = 0;
  4681. series.forEach(function (eachSeries, seriesIndex) {
  4682. if (eachSeries.type == 'column') {
  4683. columnLength += 1;
  4684. }
  4685. });
  4686. context.save();
  4687. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  4688. context.translate(opts._scrollDistance_, 0);
  4689. }
  4690. series.forEach(function (eachSeries, seriesIndex) {
  4691. var data = eachSeries.data;
  4692. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4693. calPoints.push(points);
  4694. // 绘制柱状数据图
  4695. if (eachSeries.type == 'column') {
  4696. points = fixColumeData(points, eachSpacing, columnLength, columnIndex, config, opts);
  4697. points.forEach(function (item, index) {
  4698. if (item !== null) {
  4699. context.beginPath();
  4700. context.setStrokeStyle(item.color || eachSeries.color);
  4701. context.setLineWidth(1);
  4702. context.setFillStyle(item.color || eachSeries.color);
  4703. var startX = item.x - item.width / 2;
  4704. var height = opts.height - item.y - opts.area[2];
  4705. context.moveTo(startX, item.y);
  4706. context.moveTo(startX - 1, item.y);
  4707. context.lineTo(startX + item.width - 2, item.y);
  4708. context.lineTo(startX + item.width - 2, opts.height - opts.area[2]);
  4709. context.lineTo(startX, opts.height - opts.area[2]);
  4710. context.lineTo(startX, item.y);
  4711. //context.rect(startX, item.y, item.width, height);
  4712. context.closePath();
  4713. context.stroke();
  4714. context.fill();
  4715. context.closePath();
  4716. context.fill();
  4717. }
  4718. });
  4719. columnIndex += 1;
  4720. }
  4721. //绘制区域图数据
  4722. if (eachSeries.type == 'area') {
  4723. var _splitPointList = splitPoints(points);var _loop4 = function _loop4(
  4724. i) {
  4725. var points = _splitPointList[i];
  4726. // 绘制区域数据
  4727. context.beginPath();
  4728. context.setStrokeStyle(eachSeries.color);
  4729. context.setFillStyle(hexToRgb(eachSeries.color, 0.2));
  4730. context.setLineWidth(2 * opts.pixelRatio);
  4731. if (points.length > 1) {
  4732. firstPoint = points[0];
  4733. var lastPoint = points[points.length - 1];
  4734. context.moveTo(firstPoint.x, firstPoint.y);
  4735. if (eachSeries.style === 'curve') {
  4736. points.forEach(function (item, index) {
  4737. if (index > 0) {
  4738. var ctrlPoint = createCurveControlPoints(points, index - 1);
  4739. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y, item.x, item.y);
  4740. }
  4741. });
  4742. } else {
  4743. points.forEach(function (item, index) {
  4744. if (index > 0) {
  4745. context.lineTo(item.x, item.y);
  4746. }
  4747. });
  4748. }
  4749. context.lineTo(lastPoint.x, endY);
  4750. context.lineTo(firstPoint.x, endY);
  4751. context.lineTo(firstPoint.x, firstPoint.y);
  4752. } else {
  4753. var item = points[0];
  4754. context.moveTo(item.x - eachSpacing / 2, item.y);
  4755. context.lineTo(item.x + eachSpacing / 2, item.y);
  4756. context.lineTo(item.x + eachSpacing / 2, endY);
  4757. context.lineTo(item.x - eachSpacing / 2, endY);
  4758. context.moveTo(item.x - eachSpacing / 2, item.y);
  4759. }
  4760. context.closePath();
  4761. context.fill();};for (var i = 0; i < _splitPointList.length; i++) {var firstPoint;_loop4(i);
  4762. }
  4763. }
  4764. // 绘制折线数据图
  4765. if (eachSeries.type == 'line') {
  4766. var splitPointList = splitPoints(points);
  4767. splitPointList.forEach(function (points, index) {
  4768. context.beginPath();
  4769. context.setStrokeStyle(eachSeries.color);
  4770. context.setLineWidth(2 * opts.pixelRatio);
  4771. if (points.length === 1) {
  4772. context.moveTo(points[0].x, points[0].y);
  4773. context.arc(points[0].x, points[0].y, 1, 0, 2 * Math.PI);
  4774. } else {
  4775. context.moveTo(points[0].x, points[0].y);
  4776. if (eachSeries.style == 'curve') {
  4777. points.forEach(function (item, index) {
  4778. if (index > 0) {
  4779. var ctrlPoint = createCurveControlPoints(points, index - 1);
  4780. context.bezierCurveTo(ctrlPoint.ctrA.x, ctrlPoint.ctrA.y, ctrlPoint.ctrB.x, ctrlPoint.ctrB.y,
  4781. item.x,
  4782. item.y);
  4783. }
  4784. });
  4785. } else {
  4786. points.forEach(function (item, index) {
  4787. if (index > 0) {
  4788. context.lineTo(item.x, item.y);
  4789. }
  4790. });
  4791. }
  4792. context.moveTo(points[0].x, points[0].y);
  4793. }
  4794. context.closePath();
  4795. context.stroke();
  4796. });
  4797. }
  4798. // 绘制点数据图
  4799. if (eachSeries.type == 'point') {
  4800. points.forEach(function (pointsa, index) {
  4801. if (pointsa) {
  4802. context.beginPath();
  4803. context.setFillStyle(eachSeries.color);
  4804. context.setStrokeStyle('#FFFFFF');
  4805. context.setLineWidth(1 * opts.pixelRatio);
  4806. context.moveTo(pointsa.x + 3.5 * opts.pixelRatio, pointsa.y);
  4807. context.arc(pointsa.x, pointsa.y, 4 * opts.pixelRatio, 0, 2 * Math.PI);
  4808. context.closePath();
  4809. context.fill();
  4810. context.stroke();
  4811. }
  4812. });
  4813. }
  4814. if (eachSeries.addPoint == true && eachSeries.type !== 'column') {
  4815. var shape = config.dataPointShape[seriesIndex % config.dataPointShape.length];
  4816. drawPointShape(points, eachSeries.color, shape, context, opts);
  4817. }
  4818. });
  4819. if (opts.dataLabel !== false && process === 1) {
  4820. var columnIndex = 0;
  4821. series.forEach(function (eachSeries, seriesIndex) {
  4822. var data = eachSeries.data;
  4823. var points = getDataPoints(data, minRange, maxRange, xAxisPoints, eachSpacing, opts, config, process);
  4824. if (eachSeries.type !== 'column') {
  4825. drawPointText(points, eachSeries, config, context);
  4826. } else {
  4827. points = fixColumeData(points, eachSpacing, columnLength, columnIndex, config, opts);
  4828. drawPointText(points, eachSeries, config, context);
  4829. columnIndex += 1;
  4830. }
  4831. });
  4832. }
  4833. context.restore();
  4834. return {
  4835. xAxisPoints: xAxisPoints,
  4836. calPoints: calPoints,
  4837. eachSpacing: eachSpacing,
  4838. minRange: minRange,
  4839. maxRange: maxRange };
  4840. }
  4841. function drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints) {
  4842. var toolTipOption = opts.extra.tooltip || {};
  4843. if (toolTipOption.horizentalLine && opts.tooltip && process === 1 && (opts.type == 'line' || opts.type == 'area' || opts.type == 'column' || opts.type == 'candle' || opts.type == 'mix')) {
  4844. drawToolTipHorizentalLine(opts, config, context, eachSpacing, xAxisPoints);
  4845. }
  4846. context.save();
  4847. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0 && opts.enableScroll === true) {
  4848. context.translate(opts._scrollDistance_, 0);
  4849. }
  4850. if (opts.tooltip && opts.tooltip.textList && opts.tooltip.textList.length && process === 1) {
  4851. drawToolTip(opts.tooltip.textList, opts.tooltip.offset, opts, config, context, eachSpacing, xAxisPoints);
  4852. }
  4853. context.restore();
  4854. }
  4855. function drawXAxis(categories, opts, config, context) {
  4856. var xAxisData = opts.chartData.xAxisData,
  4857. xAxisPoints = xAxisData.xAxisPoints,
  4858. startX = xAxisData.startX,
  4859. endX = xAxisData.endX,
  4860. eachSpacing = xAxisData.eachSpacing;
  4861. var boundaryGap = 'center';
  4862. if (opts.type == 'line' || opts.type == 'area') {
  4863. boundaryGap = opts.xAxis.boundaryGap;
  4864. }
  4865. var startY = opts.height - opts.area[2];
  4866. var endY = opts.area[0];
  4867. //绘制滚动条
  4868. if (opts.enableScroll && opts.xAxis.scrollShow) {
  4869. var scrollY = opts.height - opts.area[2] + config.xAxisHeight;
  4870. var scrollScreenWidth = endX - startX;
  4871. var scrollTotalWidth = eachSpacing * (xAxisPoints.length - 1);
  4872. var scrollWidth = scrollScreenWidth * scrollScreenWidth / scrollTotalWidth;
  4873. var scrollLeft = 0;
  4874. if (opts._scrollDistance_) {
  4875. scrollLeft = -opts._scrollDistance_ * scrollScreenWidth / scrollTotalWidth;
  4876. }
  4877. context.beginPath();
  4878. context.setLineCap('round');
  4879. context.setLineWidth(6 * opts.pixelRatio);
  4880. context.setStrokeStyle(opts.xAxis.scrollBackgroundColor || "#EFEBEF");
  4881. context.moveTo(startX, scrollY);
  4882. context.lineTo(endX, scrollY);
  4883. context.stroke();
  4884. context.closePath();
  4885. context.beginPath();
  4886. context.setLineCap('round');
  4887. context.setLineWidth(6 * opts.pixelRatio);
  4888. context.setStrokeStyle(opts.xAxis.scrollColor || "#A6A6A6");
  4889. context.moveTo(startX + scrollLeft, scrollY);
  4890. context.lineTo(startX + scrollLeft + scrollWidth, scrollY);
  4891. context.stroke();
  4892. context.closePath();
  4893. context.setLineCap('butt');
  4894. }
  4895. context.save();
  4896. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0) {
  4897. context.translate(opts._scrollDistance_, 0);
  4898. }
  4899. if (opts.xAxis.disableGrid !== true) {
  4900. context.setStrokeStyle(opts.xAxis.gridColor || "#cccccc");
  4901. context.setLineCap('butt');
  4902. context.setLineWidth(1 * opts.pixelRatio);
  4903. if (opts.xAxis.gridType == 'dash') {
  4904. context.setLineDash([opts.xAxis.dashLength, opts.xAxis.dashLength]);
  4905. }
  4906. if (opts.xAxis.type === 'calibration') {
  4907. xAxisPoints.forEach(function (item, index) {
  4908. if (index > 0) {
  4909. context.beginPath();
  4910. context.moveTo(item - eachSpacing / 2, startY);
  4911. context.lineTo(item - eachSpacing / 2, startY + 4 * opts.pixelRatio);
  4912. context.closePath();
  4913. context.stroke();
  4914. }
  4915. });
  4916. } else {
  4917. opts.xAxis.gridEval = opts.xAxis.gridEval || 1;
  4918. xAxisPoints.forEach(function (item, index) {
  4919. if (index % opts.xAxis.gridEval == 0) {
  4920. context.beginPath();
  4921. context.moveTo(item, startY);
  4922. context.lineTo(item, endY);
  4923. context.stroke();
  4924. }
  4925. });
  4926. }
  4927. context.setLineDash([]);
  4928. }
  4929. //不绘制X轴
  4930. if (opts.xAxis.disabled !== true) {
  4931. // 对X轴列表做抽稀处理
  4932. var validWidth = opts.width - opts.padding[1] - opts.padding[3] - config.yAxisWidth - config.yAxisTitleWidth;
  4933. //默认全部显示X轴标签
  4934. var maxXAxisListLength = categories.length;
  4935. //如果设置了X轴单屏数量
  4936. if (opts.xAxis.labelCount) {
  4937. //如果设置X轴密度
  4938. if (opts.xAxis.itemCount) {
  4939. maxXAxisListLength = Math.ceil(categories.length / opts.xAxis.itemCount * opts.xAxis.labelCount);
  4940. } else {
  4941. maxXAxisListLength = opts.xAxis.labelCount;
  4942. }
  4943. maxXAxisListLength -= 1;
  4944. }
  4945. var ratio = Math.ceil(categories.length / maxXAxisListLength);
  4946. var newCategories = [];
  4947. var cgLength = categories.length;
  4948. for (var i = 0; i < cgLength; i++) {
  4949. if (i % ratio !== 0) {
  4950. newCategories.push("");
  4951. } else {
  4952. newCategories.push(categories[i]);
  4953. }
  4954. }
  4955. newCategories[cgLength - 1] = categories[cgLength - 1];
  4956. var xAxisFontSize = opts.xAxis.fontSize || config.fontSize;
  4957. if (config._xAxisTextAngle_ === 0) {
  4958. newCategories.forEach(function (item, index) {
  4959. var offset = -measureText(item, xAxisFontSize) / 2;
  4960. if (boundaryGap == 'center') {
  4961. offset += eachSpacing / 2;
  4962. }
  4963. context.beginPath();
  4964. context.setFontSize(xAxisFontSize);
  4965. context.setFillStyle(opts.xAxis.fontColor || '#666666');
  4966. context.fillText(item, xAxisPoints[index] + offset, startY + xAxisFontSize + (config.xAxisHeight - xAxisFontSize) / 2);
  4967. context.closePath();
  4968. context.stroke();
  4969. });
  4970. } else {
  4971. newCategories.forEach(function (item, index) {
  4972. context.save();
  4973. context.beginPath();
  4974. context.setFontSize(xAxisFontSize);
  4975. context.setFillStyle(opts.xAxis.fontColor || '#666666');
  4976. var textWidth = measureText(item);
  4977. var offset = -textWidth;
  4978. if (boundaryGap == 'center') {
  4979. offset += eachSpacing / 2;
  4980. }
  4981. var _calRotateTranslate = calRotateTranslate(xAxisPoints[index] + eachSpacing / 2, startY + xAxisFontSize / 2 + 5, opts.height),
  4982. transX = _calRotateTranslate.transX,
  4983. transY = _calRotateTranslate.transY;
  4984. context.rotate(-1 * config._xAxisTextAngle_);
  4985. context.translate(transX, transY);
  4986. context.fillText(item, xAxisPoints[index] + offset, startY + xAxisFontSize + 5);
  4987. context.closePath();
  4988. context.stroke();
  4989. context.restore();
  4990. });
  4991. }
  4992. }
  4993. context.restore();
  4994. }
  4995. function drawYAxisGrid(categories, opts, config, context) {
  4996. if (opts.yAxis.disableGrid === true) {
  4997. return;
  4998. }
  4999. var spacingValid = opts.height - opts.area[0] - opts.area[2];
  5000. var eachSpacing = spacingValid / config.yAxisSplit;
  5001. var startX = opts.area[3];
  5002. var xAxisPoints = opts.chartData.xAxisData.xAxisPoints,
  5003. xAxiseachSpacing = opts.chartData.xAxisData.eachSpacing;
  5004. var TotalWidth = xAxiseachSpacing * (xAxisPoints.length - 1);
  5005. var endX = startX + TotalWidth;
  5006. var points = [];
  5007. for (var i = 0; i < config.yAxisSplit + 1; i++) {
  5008. points.push(opts.height - opts.area[2] - eachSpacing * i);
  5009. }
  5010. context.save();
  5011. if (opts._scrollDistance_ && opts._scrollDistance_ !== 0) {
  5012. context.translate(opts._scrollDistance_, 0);
  5013. }
  5014. if (opts.yAxis.gridType == 'dash') {
  5015. context.setLineDash([opts.yAxis.dashLength, opts.yAxis.dashLength]);
  5016. }
  5017. context.setStrokeStyle(opts.yAxis.gridColor || "#cccccc");
  5018. context.setLineWidth(1 * opts.pixelRatio);
  5019. points.forEach(function (item, index) {
  5020. context.beginPath();
  5021. context.moveTo(startX, item);
  5022. context.lineTo(endX, item);
  5023. context.stroke();
  5024. });
  5025. context.setLineDash([]);
  5026. context.restore();
  5027. }
  5028. function drawYAxis(series, opts, config, context) {
  5029. if (opts.yAxis.disabled === true) {
  5030. return;
  5031. }
  5032. var rangesFormat = opts.chartData.yAxisData.rangesFormat;
  5033. var spacingValid = opts.height - opts.area[0] - opts.area[2];
  5034. var eachSpacing = Math.floor(spacingValid / config.yAxisSplit);
  5035. var startX = opts.area[3];
  5036. var endX = opts.width - opts.area[1];
  5037. var endY = opts.height - opts.area[2];
  5038. var fillEndY = endY + config.xAxisHeight;
  5039. if (opts.xAxis.scrollShow) {
  5040. fillEndY -= 3 * opts.pixelRatio;
  5041. }
  5042. // set YAxis background
  5043. context.beginPath();
  5044. context.setFillStyle(opts.background || '#ffffff');
  5045. if (opts._scrollDistance_ < 0) {
  5046. context.fillRect(0, 0, startX, fillEndY);
  5047. }
  5048. if (opts.enableScroll == true) {
  5049. context.fillRect(endX, 0, opts.width, fillEndY);
  5050. }
  5051. context.closePath();
  5052. context.stroke();
  5053. var points = [];
  5054. for (var i = 0; i <= config.yAxisSplit; i++) {
  5055. points.push(opts.area[0] + eachSpacing * i);
  5056. }
  5057. var yAxisFontSize = opts.yAxis.fontSize || config.fontSize;
  5058. rangesFormat.forEach(function (item, index) {
  5059. var pos = points[index] ? points[index] : endY;
  5060. context.beginPath();
  5061. context.setFontSize(yAxisFontSize);
  5062. context.setFillStyle(opts.yAxis.fontColor || '#666666');
  5063. context.fillText(String(item), opts.area[3] - config.yAxisWidth, pos + yAxisFontSize / 2);
  5064. context.closePath();
  5065. context.stroke();
  5066. });
  5067. if (opts.yAxis.title) {
  5068. drawYAxisTitle(opts.yAxis.title, opts, config, context);
  5069. }
  5070. }
  5071. function drawLegend(series, opts, config, context, chartData) {
  5072. if (opts.legend.show === false) {
  5073. return;
  5074. }
  5075. var legendData = chartData.legendData;
  5076. var legendList = legendData.points;
  5077. var legendArea = legendData.area;
  5078. var padding = opts.legend.padding;
  5079. var fontSize = opts.legend.fontSize;
  5080. var shapeWidth = 15 * opts.pixelRatio;
  5081. var shapeRight = 5 * opts.pixelRatio;
  5082. var itemGap = opts.legend.itemGap;
  5083. var lineHeight = Math.max(opts.legend.lineHeight * opts.pixelRatio, fontSize);
  5084. //画背景及边框
  5085. context.beginPath();
  5086. context.setLineWidth(opts.legend.borderWidth);
  5087. context.setStrokeStyle(opts.legend.borderColor);
  5088. context.setFillStyle(opts.legend.backgroundColor);
  5089. context.moveTo(legendArea.start.x, legendArea.start.y);
  5090. context.rect(legendArea.start.x, legendArea.start.y, legendArea.width, legendArea.height);
  5091. context.closePath();
  5092. context.fill();
  5093. context.stroke();
  5094. legendList.forEach(function (itemList, listIndex) {
  5095. var width = 0;
  5096. var height = 0;
  5097. width = legendData.widthArr[listIndex];
  5098. height = legendData.heightArr[listIndex];
  5099. var startX = 0;
  5100. var startY = 0;
  5101. if (opts.legend.position == 'top' || opts.legend.position == 'bottom') {
  5102. startX = legendArea.start.x + (legendArea.width - width) / 2;
  5103. startY = legendArea.start.y + padding + listIndex * lineHeight;
  5104. } else {
  5105. if (listIndex == 0) {
  5106. width = 0;
  5107. } else {
  5108. width = legendData.widthArr[listIndex - 1];
  5109. }
  5110. startX = legendArea.start.x + padding + width;
  5111. startY = legendArea.start.y + padding + (legendArea.height - height) / 2;
  5112. }
  5113. context.setFontSize(config.fontSize);
  5114. for (var i = 0; i < itemList.length; i++) {
  5115. var item = itemList[i];
  5116. item.area = [0, 0, 0, 0];
  5117. item.area[0] = startX;
  5118. item.area[1] = startY;
  5119. item.area[3] = startY + lineHeight;
  5120. context.beginPath();
  5121. context.setLineWidth(1 * opts.pixelRatio);
  5122. context.setStrokeStyle(item.show ? item.color : opts.legend.hiddenColor);
  5123. context.setFillStyle(item.show ? item.color : opts.legend.hiddenColor);
  5124. switch (item.legendShape) {
  5125. case 'line':
  5126. context.moveTo(startX, startY + 0.5 * lineHeight - 2 * opts.pixelRatio);
  5127. context.fillRect(startX, startY + 0.5 * lineHeight - 2 * opts.pixelRatio, 15 * opts.pixelRatio, 4 * opts.pixelRatio);
  5128. break;
  5129. case 'triangle':
  5130. context.moveTo(startX + 7.5 * opts.pixelRatio, startY + 0.5 * lineHeight - 5 * opts.pixelRatio);
  5131. context.lineTo(startX + 2.5 * opts.pixelRatio, startY + 0.5 * lineHeight + 5 * opts.pixelRatio);
  5132. context.lineTo(startX + 12.5 * opts.pixelRatio, startY + 0.5 * lineHeight + 5 * opts.pixelRatio);
  5133. context.lineTo(startX + 7.5 * opts.pixelRatio, startY + 0.5 * lineHeight - 5 * opts.pixelRatio);
  5134. break;
  5135. case 'diamond':
  5136. context.moveTo(startX + 7.5 * opts.pixelRatio, startY + 0.5 * lineHeight - 5 * opts.pixelRatio);
  5137. context.lineTo(startX + 2.5 * opts.pixelRatio, startY + 0.5 * lineHeight);
  5138. context.lineTo(startX + 7.5 * opts.pixelRatio, startY + 0.5 * lineHeight + 5 * opts.pixelRatio);
  5139. context.lineTo(startX + 12.5 * opts.pixelRatio, startY + 0.5 * lineHeight);
  5140. context.lineTo(startX + 7.5 * opts.pixelRatio, startY + 0.5 * lineHeight - 5 * opts.pixelRatio);
  5141. break;
  5142. case 'circle':
  5143. context.moveTo(startX + 7.5 * opts.pixelRatio, startY + 0.5 * lineHeight);
  5144. context.arc(startX + 7.5 * opts.pixelRatio, startY + 0.5 * lineHeight, 5 * opts.pixelRatio, 0, 2 * Math.PI);
  5145. break;
  5146. case 'rect':
  5147. context.moveTo(startX, startY + 0.5 * lineHeight - 5 * opts.pixelRatio);
  5148. context.fillRect(startX, startY + 0.5 * lineHeight - 5 * opts.pixelRatio, 15 * opts.pixelRatio, 10 * opts.pixelRatio);
  5149. break;
  5150. default:
  5151. context.moveTo(startX, startY + 0.5 * lineHeight - 5 * opts.pixelRatio);
  5152. context.fillRect(startX, startY + 0.5 * lineHeight - 5 * opts.pixelRatio, 15 * opts.pixelRatio, 10 * opts.pixelRatio);}
  5153. context.closePath();
  5154. context.fill();
  5155. context.stroke();
  5156. startX += shapeWidth + shapeRight;
  5157. var fontTrans = 0.5 * lineHeight + 0.5 * fontSize - 2;
  5158. context.beginPath();
  5159. context.setFontSize(fontSize);
  5160. context.setFillStyle(item.show ? opts.legend.fontColor : opts.legend.hiddenColor);
  5161. context.fillText(item.name, startX, startY + fontTrans);
  5162. context.closePath();
  5163. context.stroke();
  5164. if (opts.legend.position == 'top' || opts.legend.position == 'bottom') {
  5165. startX += measureText(item.name, fontSize) + itemGap;
  5166. item.area[2] = startX;
  5167. } else {
  5168. item.area[2] = startX + measureText(item.name, fontSize) + itemGap;;
  5169. startX -= shapeWidth + shapeRight;
  5170. startY += lineHeight;
  5171. }
  5172. }
  5173. });
  5174. }
  5175. function drawPieDataPoints(series, opts, config, context) {
  5176. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  5177. var pieOption = assign({}, {
  5178. activeOpacity: 0.5,
  5179. activeRadius: 10 * opts.pixelRatio,
  5180. offsetAngle: 0,
  5181. labelWidth: 15 * opts.pixelRatio,
  5182. ringWidth: 0,
  5183. border: false,
  5184. borderWidth: 2,
  5185. borderColor: '#FFFFFF' },
  5186. opts.extra.pie);
  5187. var centerPosition = {
  5188. x: opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2,
  5189. y: opts.area[0] + (opts.height - opts.area[0] - opts.area[2]) / 2 };
  5190. if (config.pieChartLinePadding == 0) {
  5191. config.pieChartLinePadding = pieOption.activeRadius;
  5192. }
  5193. var radius = Math.min((opts.width - opts.area[1] - opts.area[3]) / 2 - config.pieChartLinePadding - config.pieChartTextPadding - config._pieTextMaxLength_, (opts.height - opts.area[0] - opts.area[2]) / 2 - config.pieChartLinePadding - config.pieChartTextPadding);
  5194. series = getPieDataPoints(series, radius, process);
  5195. var activeRadius = pieOption.activeRadius;
  5196. series = series.map(function (eachSeries) {
  5197. eachSeries._start_ += pieOption.offsetAngle * Math.PI / 180;
  5198. return eachSeries;
  5199. });
  5200. series.forEach(function (eachSeries, seriesIndex) {
  5201. if (opts.tooltip) {
  5202. if (opts.tooltip.index == seriesIndex) {
  5203. context.beginPath();
  5204. context.setFillStyle(hexToRgb(eachSeries.color, opts.extra.pie.activeOpacity || 0.5));
  5205. context.moveTo(centerPosition.x, centerPosition.y);
  5206. context.arc(centerPosition.x, centerPosition.y, eachSeries._radius_ + activeRadius, eachSeries._start_,
  5207. eachSeries._start_ + 2 *
  5208. eachSeries._proportion_ * Math.PI);
  5209. context.closePath();
  5210. context.fill();
  5211. }
  5212. }
  5213. context.beginPath();
  5214. context.setLineWidth(pieOption.borderWidth * opts.pixelRatio);
  5215. context.lineJoin = "round";
  5216. context.setStrokeStyle(pieOption.borderColor);
  5217. context.setFillStyle(eachSeries.color);
  5218. context.moveTo(centerPosition.x, centerPosition.y);
  5219. context.arc(centerPosition.x, centerPosition.y, eachSeries._radius_, eachSeries._start_, eachSeries._start_ + 2 * eachSeries._proportion_ * Math.PI);
  5220. context.closePath();
  5221. context.fill();
  5222. if (pieOption.border == true) {
  5223. context.stroke();
  5224. }
  5225. });
  5226. if (opts.type === 'ring') {
  5227. var innerPieWidth = radius * 0.6;
  5228. if (typeof opts.extra.pie.ringWidth === 'number' && opts.extra.pie.ringWidth > 0) {
  5229. innerPieWidth = Math.max(0, radius - opts.extra.pie.ringWidth);
  5230. }
  5231. context.beginPath();
  5232. context.setFillStyle(opts.background || '#ffffff');
  5233. context.moveTo(centerPosition.x, centerPosition.y);
  5234. context.arc(centerPosition.x, centerPosition.y, innerPieWidth, 0, 2 * Math.PI);
  5235. context.closePath();
  5236. context.fill();
  5237. }
  5238. if (opts.dataLabel !== false && process === 1) {
  5239. var valid = false;
  5240. for (var i = 0, len = series.length; i < len; i++) {
  5241. if (series[i].data > 0) {
  5242. valid = true;
  5243. break;
  5244. }
  5245. }
  5246. if (valid) {
  5247. drawPieText(series, opts, config, context, radius, centerPosition);
  5248. }
  5249. }
  5250. if (process === 1 && opts.type === 'ring') {
  5251. drawRingTitle(opts, config, context, centerPosition);
  5252. }
  5253. return {
  5254. center: centerPosition,
  5255. radius: radius,
  5256. series: series };
  5257. }
  5258. function drawRoseDataPoints(series, opts, config, context) {
  5259. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  5260. var roseOption = assign({}, {
  5261. type: 'area',
  5262. activeOpacity: 0.5,
  5263. activeRadius: 10 * opts.pixelRatio,
  5264. offsetAngle: 0,
  5265. labelWidth: 15 * opts.pixelRatio,
  5266. border: false,
  5267. borderWidth: 2,
  5268. borderColor: '#FFFFFF' },
  5269. opts.extra.rose);
  5270. if (config.pieChartLinePadding == 0) {
  5271. config.pieChartLinePadding = roseOption.activeRadius;
  5272. }
  5273. var centerPosition = {
  5274. x: opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2,
  5275. y: opts.area[0] + (opts.height - opts.area[0] - opts.area[2]) / 2 };
  5276. var radius = Math.min((opts.width - opts.area[1] - opts.area[3]) / 2 - config.pieChartLinePadding - config.pieChartTextPadding - config._pieTextMaxLength_, (opts.height - opts.area[0] - opts.area[2]) / 2 - config.pieChartLinePadding - config.pieChartTextPadding);
  5277. var minRadius = roseOption.minRadius || radius * 0.5;
  5278. series = getRoseDataPoints(series, roseOption.type, minRadius, radius, process);
  5279. var activeRadius = roseOption.activeRadius;
  5280. series = series.map(function (eachSeries) {
  5281. eachSeries._start_ += (roseOption.offsetAngle || 0) * Math.PI / 180;
  5282. return eachSeries;
  5283. });
  5284. series.forEach(function (eachSeries, seriesIndex) {
  5285. if (opts.tooltip) {
  5286. if (opts.tooltip.index == seriesIndex) {
  5287. context.beginPath();
  5288. context.setFillStyle(hexToRgb(eachSeries.color, roseOption.activeOpacity || 0.5));
  5289. context.moveTo(centerPosition.x, centerPosition.y);
  5290. context.arc(centerPosition.x, centerPosition.y, activeRadius + eachSeries._radius_, eachSeries._start_,
  5291. eachSeries._start_ + 2 * eachSeries._rose_proportion_ * Math.PI);
  5292. context.closePath();
  5293. context.fill();
  5294. }
  5295. }
  5296. context.beginPath();
  5297. context.setLineWidth(roseOption.borderWidth * opts.pixelRatio);
  5298. context.lineJoin = "round";
  5299. context.setStrokeStyle(roseOption.borderColor);
  5300. context.setFillStyle(eachSeries.color);
  5301. context.moveTo(centerPosition.x, centerPosition.y);
  5302. context.arc(centerPosition.x, centerPosition.y, eachSeries._radius_, eachSeries._start_, eachSeries._start_ + 2 *
  5303. eachSeries._rose_proportion_ * Math.PI);
  5304. context.closePath();
  5305. context.fill();
  5306. if (roseOption.border == true) {
  5307. context.stroke();
  5308. }
  5309. });
  5310. if (opts.dataLabel !== false && process === 1) {
  5311. var valid = false;
  5312. for (var i = 0, len = series.length; i < len; i++) {
  5313. if (series[i].data > 0) {
  5314. valid = true;
  5315. break;
  5316. }
  5317. }
  5318. if (valid) {
  5319. drawPieText(series, opts, config, context, radius, centerPosition);
  5320. }
  5321. }
  5322. return {
  5323. center: centerPosition,
  5324. radius: radius,
  5325. series: series };
  5326. }
  5327. function drawArcbarDataPoints(series, opts, config, context) {
  5328. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  5329. var arcbarOption = assign({}, {
  5330. startAngle: 0.75,
  5331. endAngle: 0.25,
  5332. type: 'default',
  5333. width: 12 * opts.pixelRatio },
  5334. opts.extra.arcbar);
  5335. series = getArcbarDataPoints(series, arcbarOption, process);
  5336. var centerPosition = {
  5337. x: opts.width / 2,
  5338. y: opts.height / 2 };
  5339. var radius = Math.min(centerPosition.x, centerPosition.y);
  5340. radius -= 5 * opts.pixelRatio;
  5341. radius -= arcbarOption.width / 2;
  5342. //背景颜色
  5343. context.setLineWidth(arcbarOption.width);
  5344. context.setStrokeStyle(arcbarOption.backgroundColor || '#E9E9E9');
  5345. context.setLineCap('round');
  5346. context.beginPath();
  5347. if (arcbarOption.type == 'default') {
  5348. context.arc(centerPosition.x, centerPosition.y, radius, arcbarOption.startAngle * Math.PI, arcbarOption.endAngle *
  5349. Math.PI, false);
  5350. } else {
  5351. context.arc(centerPosition.x, centerPosition.y, radius, 0, 2 * Math.PI, false);
  5352. }
  5353. context.stroke();
  5354. for (var i = 0; i < series.length; i++) {
  5355. var eachSeries = series[i];
  5356. context.setLineWidth(arcbarOption.width);
  5357. context.setStrokeStyle(eachSeries.color);
  5358. context.setLineCap('round');
  5359. context.beginPath();
  5360. context.arc(centerPosition.x, centerPosition.y, radius, arcbarOption.startAngle * Math.PI, eachSeries._proportion_ *
  5361. Math.PI, false);
  5362. context.stroke();
  5363. }
  5364. drawRingTitle(opts, config, context, centerPosition);
  5365. return {
  5366. center: centerPosition,
  5367. radius: radius,
  5368. series: series };
  5369. }
  5370. function drawGaugeDataPoints(categories, series, opts, config, context) {
  5371. var process = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;
  5372. var gaugeOption = assign({}, {
  5373. startAngle: 0.75,
  5374. endAngle: 0.25,
  5375. width: 15,
  5376. splitLine: {
  5377. fixRadius: 0,
  5378. splitNumber: 10,
  5379. width: 15,
  5380. color: '#FFFFFF',
  5381. childNumber: 5,
  5382. childWidth: 5 },
  5383. pointer: {
  5384. width: 15,
  5385. color: 'auto' } },
  5386. opts.extra.gauge);
  5387. if (gaugeOption.oldAngle == undefined) {
  5388. gaugeOption.oldAngle = gaugeOption.startAngle;
  5389. }
  5390. if (gaugeOption.oldData == undefined) {
  5391. gaugeOption.oldData = 0;
  5392. }
  5393. categories = getGaugeAxisPoints(categories, gaugeOption.startAngle, gaugeOption.endAngle);
  5394. var centerPosition = {
  5395. x: opts.width / 2,
  5396. y: opts.height / 2 };
  5397. var radius = Math.min(centerPosition.x, centerPosition.y);
  5398. radius -= 5 * opts.pixelRatio;
  5399. radius -= gaugeOption.width / 2;
  5400. var innerRadius = radius - gaugeOption.width;
  5401. //画背景
  5402. context.setLineWidth(gaugeOption.width);
  5403. context.setLineCap('butt');
  5404. for (var i = 0; i < categories.length; i++) {
  5405. var eachCategories = categories[i];
  5406. context.beginPath();
  5407. context.setStrokeStyle(eachCategories.color);
  5408. context.arc(centerPosition.x, centerPosition.y, radius, eachCategories._startAngle_ * Math.PI, eachCategories._endAngle_ *
  5409. Math.PI, false);
  5410. context.stroke();
  5411. }
  5412. context.save();
  5413. //画刻度线
  5414. var totalAngle = gaugeOption.startAngle - gaugeOption.endAngle + 1;
  5415. var splitAngle = totalAngle / gaugeOption.splitLine.splitNumber;
  5416. var childAngle = totalAngle / gaugeOption.splitLine.splitNumber / gaugeOption.splitLine.childNumber;
  5417. var startX = -radius - gaugeOption.width * 0.5 - gaugeOption.splitLine.fixRadius;
  5418. var endX = -radius - gaugeOption.width * 0.5 - gaugeOption.splitLine.fixRadius + gaugeOption.splitLine.width;
  5419. var childendX = -radius - gaugeOption.width * 0.5 - gaugeOption.splitLine.fixRadius + gaugeOption.splitLine.childWidth;
  5420. context.translate(centerPosition.x, centerPosition.y);
  5421. context.rotate((gaugeOption.startAngle - 1) * Math.PI);
  5422. for (var _i12 = 0; _i12 < gaugeOption.splitLine.splitNumber + 1; _i12++) {
  5423. context.beginPath();
  5424. context.setStrokeStyle(gaugeOption.splitLine.color);
  5425. context.setLineWidth(2 * opts.pixelRatio);
  5426. context.moveTo(startX, 0);
  5427. context.lineTo(endX, 0);
  5428. context.stroke();
  5429. context.rotate(splitAngle * Math.PI);
  5430. }
  5431. context.restore();
  5432. context.save();
  5433. context.translate(centerPosition.x, centerPosition.y);
  5434. context.rotate((gaugeOption.startAngle - 1) * Math.PI);
  5435. for (var _i13 = 0; _i13 < gaugeOption.splitLine.splitNumber * gaugeOption.splitLine.childNumber + 1; _i13++) {
  5436. context.beginPath();
  5437. context.setStrokeStyle(gaugeOption.splitLine.color);
  5438. context.setLineWidth(1 * opts.pixelRatio);
  5439. context.moveTo(startX, 0);
  5440. context.lineTo(childendX, 0);
  5441. context.stroke();
  5442. context.rotate(childAngle * Math.PI);
  5443. }
  5444. context.restore();
  5445. //画指针
  5446. series = getGaugeDataPoints(series, categories, gaugeOption, process);
  5447. for (var _i14 = 0; _i14 < series.length; _i14++) {
  5448. var eachSeries = series[_i14];
  5449. context.save();
  5450. context.translate(centerPosition.x, centerPosition.y);
  5451. context.rotate((eachSeries._proportion_ - 1) * Math.PI);
  5452. context.beginPath();
  5453. context.setFillStyle(eachSeries.color);
  5454. context.moveTo(gaugeOption.pointer.width, 0);
  5455. context.lineTo(0, -gaugeOption.pointer.width / 2);
  5456. context.lineTo(-innerRadius, 0);
  5457. context.lineTo(0, gaugeOption.pointer.width / 2);
  5458. context.lineTo(gaugeOption.pointer.width, 0);
  5459. context.closePath();
  5460. context.fill();
  5461. context.beginPath();
  5462. context.setFillStyle('#FFFFFF');
  5463. context.arc(0, 0, gaugeOption.pointer.width / 6, 0, 2 * Math.PI, false);
  5464. context.fill();
  5465. context.restore();
  5466. }
  5467. if (opts.dataLabel !== false) {
  5468. drawGaugeLabel(gaugeOption, radius, centerPosition, opts, config, context);
  5469. }
  5470. drawRingTitle(opts, config, context, centerPosition);
  5471. if (process === 1 && opts.type === 'gauge') {
  5472. opts.extra.gauge.oldAngle = series[0]._proportion_;
  5473. opts.extra.gauge.oldData = series[0].data;
  5474. }
  5475. return {
  5476. center: centerPosition,
  5477. radius: radius,
  5478. innerRadius: innerRadius,
  5479. categories: categories,
  5480. totalAngle: totalAngle };
  5481. }
  5482. function drawRadarDataPoints(series, opts, config, context) {
  5483. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  5484. var radarOption = assign({}, {
  5485. gridColor: '#cccccc',
  5486. labelColor: '#666666',
  5487. opacity: 0.2 },
  5488. opts.extra.radar);
  5489. var coordinateAngle = getRadarCoordinateSeries(opts.categories.length);
  5490. var centerPosition = {
  5491. x: opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2,
  5492. y: opts.area[0] + (opts.height - opts.area[0] - opts.area[2]) / 2 };
  5493. var radius = Math.min(centerPosition.x - (getMaxTextListLength(opts.categories) + config.radarLabelTextMargin),
  5494. centerPosition.y - config.radarLabelTextMargin);
  5495. //TODO逻辑不对
  5496. radius -= opts.padding[1];
  5497. // draw grid
  5498. context.beginPath();
  5499. context.setLineWidth(1 * opts.pixelRatio);
  5500. context.setStrokeStyle(radarOption.gridColor);
  5501. coordinateAngle.forEach(function (angle) {
  5502. var pos = convertCoordinateOrigin(radius * Math.cos(angle), radius * Math.sin(angle), centerPosition);
  5503. context.moveTo(centerPosition.x, centerPosition.y);
  5504. context.lineTo(pos.x, pos.y);
  5505. });
  5506. context.stroke();
  5507. context.closePath();
  5508. // draw split line grid
  5509. var _loop = function _loop(i) {
  5510. var startPos = {};
  5511. context.beginPath();
  5512. context.setLineWidth(1 * opts.pixelRatio);
  5513. context.setStrokeStyle(radarOption.gridColor);
  5514. coordinateAngle.forEach(function (angle, index) {
  5515. var pos = convertCoordinateOrigin(radius / config.radarGridCount * i * Math.cos(angle), radius / config.radarGridCount *
  5516. i * Math.sin(angle), centerPosition);
  5517. if (index === 0) {
  5518. startPos = pos;
  5519. context.moveTo(pos.x, pos.y);
  5520. } else {
  5521. context.lineTo(pos.x, pos.y);
  5522. }
  5523. });
  5524. context.lineTo(startPos.x, startPos.y);
  5525. context.stroke();
  5526. context.closePath();
  5527. };
  5528. for (var i = 1; i <= config.radarGridCount; i++) {
  5529. _loop(i);
  5530. }
  5531. var radarDataPoints = getRadarDataPoints(coordinateAngle, centerPosition, radius, series, opts, process);
  5532. radarDataPoints.forEach(function (eachSeries, seriesIndex) {
  5533. // 绘制区域数据
  5534. context.beginPath();
  5535. context.setFillStyle(hexToRgb(eachSeries.color, radarOption.opacity));
  5536. eachSeries.data.forEach(function (item, index) {
  5537. if (index === 0) {
  5538. context.moveTo(item.position.x, item.position.y);
  5539. } else {
  5540. context.lineTo(item.position.x, item.position.y);
  5541. }
  5542. });
  5543. context.closePath();
  5544. context.fill();
  5545. if (opts.dataPointShape !== false) {
  5546. var shape = config.dataPointShape[seriesIndex % config.dataPointShape.length];
  5547. var points = eachSeries.data.map(function (item) {
  5548. return item.position;
  5549. });
  5550. drawPointShape(points, eachSeries.color, shape, context, opts);
  5551. }
  5552. });
  5553. // draw label text
  5554. drawRadarLabel(coordinateAngle, radius, centerPosition, opts, config, context);
  5555. return {
  5556. center: centerPosition,
  5557. radius: radius,
  5558. angleList: coordinateAngle };
  5559. }
  5560. function normalInt(min, max, iter) {
  5561. iter = iter == 0 ? 1 : iter;
  5562. var arr = [];
  5563. for (var i = 0; i < iter; i++) {
  5564. arr[i] = Math.random();
  5565. };
  5566. return Math.floor(arr.reduce(function (i, j) {return i + j;}) / iter * (max - min)) + min;
  5567. };
  5568. function collisionNew(area, points, width, height) {
  5569. var isIn = false;
  5570. for (var i = 0; i < points.length; i++) {
  5571. if (points[i].area) {
  5572. if (area[3] < points[i].area[1] || area[0] > points[i].area[2] || area[1] > points[i].area[3] || area[2] < points[i].area[0]) {
  5573. if (area[0] < 0 || area[1] < 0 || area[2] > width || area[3] > height) {
  5574. isIn = true;
  5575. break;
  5576. } else {
  5577. isIn = false;
  5578. }
  5579. } else {
  5580. isIn = true;
  5581. break;
  5582. }
  5583. }
  5584. }
  5585. return isIn;
  5586. };
  5587. function getBoundingBox(data) {
  5588. var bounds = {},coords;
  5589. bounds.xMin = 180;
  5590. bounds.xMax = 0;
  5591. bounds.yMin = 90;
  5592. bounds.yMax = 0;
  5593. for (var i = 0; i < data.length; i++) {
  5594. var coorda = data[i].geometry.coordinates;
  5595. for (var k = 0; k < coorda.length; k++) {
  5596. coords = coorda[k];
  5597. if (coords.length == 1) {
  5598. coords = coords[0];
  5599. }
  5600. for (var j = 0; j < coords.length; j++) {
  5601. var longitude = coords[j][0];
  5602. var latitude = coords[j][1];
  5603. var point = {
  5604. x: longitude,
  5605. y: latitude };
  5606. bounds.xMin = bounds.xMin < point.x ? bounds.xMin : point.x;
  5607. bounds.xMax = bounds.xMax > point.x ? bounds.xMax : point.x;
  5608. bounds.yMin = bounds.yMin < point.y ? bounds.yMin : point.y;
  5609. bounds.yMax = bounds.yMax > point.y ? bounds.yMax : point.y;
  5610. }
  5611. }
  5612. }
  5613. return bounds;
  5614. }
  5615. function coordinateToPoint(latitude, longitude, bounds, scale, xoffset, yoffset) {
  5616. return {
  5617. x: (longitude - bounds.xMin) * scale + xoffset,
  5618. y: (bounds.yMax - latitude) * scale + yoffset };
  5619. }
  5620. function pointToCoordinate(pointY, pointX, bounds, scale, xoffset, yoffset) {
  5621. return {
  5622. x: (pointX - xoffset) / scale + bounds.xMin,
  5623. y: bounds.yMax - (pointY - yoffset) / scale };
  5624. }
  5625. function isRayIntersectsSegment(poi, s_poi, e_poi) {
  5626. if (s_poi[1] == e_poi[1]) {return false;}
  5627. if (s_poi[1] > poi[1] && e_poi[1] > poi[1]) {return false;}
  5628. if (s_poi[1] < poi[1] && e_poi[1] < poi[1]) {return false;}
  5629. if (s_poi[1] == poi[1] && e_poi[1] > poi[1]) {return false;}
  5630. if (e_poi[1] == poi[1] && s_poi[1] > poi[1]) {return false;}
  5631. if (s_poi[0] < poi[0] && e_poi[1] < poi[1]) {return false;}
  5632. var xseg = e_poi[0] - (e_poi[0] - s_poi[0]) * (e_poi[1] - poi[1]) / (e_poi[1] - s_poi[1]);
  5633. if (xseg < poi[0]) {
  5634. return false;
  5635. } else {
  5636. return true;
  5637. }
  5638. }
  5639. function isPoiWithinPoly(poi, poly) {
  5640. var sinsc = 0;
  5641. for (var i = 0; i < poly.length; i++) {
  5642. var epoly = poly[i][0];
  5643. if (poly.length == 1) {
  5644. epoly = poly[i][0];
  5645. }
  5646. for (var j = 0; j < epoly.length - 1; j++) {
  5647. var s_poi = epoly[j];
  5648. var e_poi = epoly[j + 1];
  5649. if (isRayIntersectsSegment(poi, s_poi, e_poi)) {
  5650. sinsc += 1;
  5651. }
  5652. }
  5653. }
  5654. if (sinsc % 2 == 1) {
  5655. return true;
  5656. } else {
  5657. return false;
  5658. }
  5659. }
  5660. function drawMapDataPoints(series, opts, config, context) {
  5661. var mapOption = assign({}, {
  5662. border: true,
  5663. borderWidth: 1,
  5664. borderColor: '#666666',
  5665. fillOpacity: 0.6,
  5666. activeBorderColor: '#f04864',
  5667. activeFillColor: '#facc14',
  5668. activeFillOpacity: 1 },
  5669. opts.extra.map);
  5670. var coords, point;
  5671. var data = series;
  5672. var bounds = getBoundingBox(data);
  5673. var xScale = opts.width / Math.abs(bounds.xMax - bounds.xMin);
  5674. var yScale = opts.height / Math.abs(bounds.yMax - bounds.yMin);
  5675. var scale = xScale < yScale ? xScale : yScale;
  5676. var xoffset = opts.width / 2 - Math.abs(bounds.xMax - bounds.xMin) / 2 * scale;
  5677. var yoffset = opts.height / 2 - Math.abs(bounds.yMax - bounds.yMin) / 2 * scale;
  5678. context.beginPath();
  5679. context.clearRect(0, 0, opts.width, opts.height);
  5680. context.setFillStyle(opts.background || '#FFFFFF');
  5681. context.rect(0, 0, opts.width, opts.height);
  5682. context.fill();
  5683. for (var i = 0; i < data.length; i++) {
  5684. context.beginPath();
  5685. context.setLineWidth(mapOption.borderWidth * opts.pixelRatio);
  5686. context.setStrokeStyle(mapOption.borderColor);
  5687. context.setFillStyle(hexToRgb(series[i].color, mapOption.fillOpacity));
  5688. if (opts.tooltip) {
  5689. if (opts.tooltip.index == i) {
  5690. context.setStrokeStyle(mapOption.activeBorderColor);
  5691. context.setFillStyle(hexToRgb(mapOption.activeFillColor, mapOption.activeFillOpacity));
  5692. }
  5693. }
  5694. var coorda = data[i].geometry.coordinates;
  5695. for (var k = 0; k < coorda.length; k++) {
  5696. coords = coorda[k];
  5697. if (coords.length == 1) {
  5698. coords = coords[0];
  5699. }
  5700. for (var j = 0; j < coords.length; j++) {
  5701. point = coordinateToPoint(coords[j][1], coords[j][0], bounds, scale, xoffset, yoffset);
  5702. if (j === 0) {
  5703. context.beginPath();
  5704. context.moveTo(point.x, point.y);
  5705. } else {
  5706. context.lineTo(point.x, point.y);
  5707. }
  5708. }
  5709. context.fill();
  5710. if (mapOption.border == true) {
  5711. context.stroke();
  5712. }
  5713. }
  5714. if (opts.dataLabel == true) {
  5715. var centerPoint = data[i].properties.centroid;
  5716. if (centerPoint) {
  5717. point = coordinateToPoint(centerPoint[1], centerPoint[0], bounds, scale, xoffset, yoffset);
  5718. var fontSize = data[i].textSize || config.fontSize;
  5719. var text = data[i].properties.name;
  5720. context.beginPath();
  5721. context.setFontSize(fontSize);
  5722. context.setFillStyle(data[i].textColor || '#666666');
  5723. context.fillText(text, point.x - measureText(text, fontSize) / 2, point.y + fontSize / 2);
  5724. context.closePath();
  5725. context.stroke();
  5726. }
  5727. }
  5728. }
  5729. opts.chartData.mapData = {
  5730. bounds: bounds,
  5731. scale: scale,
  5732. xoffset: xoffset,
  5733. yoffset: yoffset };
  5734. drawToolTipBridge(opts, config, context, 1);
  5735. context.draw();
  5736. }
  5737. function getWordCloudPoint(opts, type) {
  5738. var points = opts.series.sort(function (a, b) {return parseInt(b.textSize) - parseInt(a.textSize);});
  5739. switch (type) {
  5740. case 'normal':
  5741. for (var i = 0; i < points.length; i++) {
  5742. var text = points[i].name;
  5743. var tHeight = points[i].textSize;
  5744. var tWidth = measureText(text, tHeight);
  5745. var x = void 0,y = void 0;
  5746. var area = void 0;
  5747. var breaknum = 0;
  5748. while (true) {
  5749. breaknum++;
  5750. x = normalInt(-opts.width / 2, opts.width / 2, 5) - tWidth / 2;
  5751. y = normalInt(-opts.height / 2, opts.height / 2, 5) + tHeight / 2;
  5752. area = [x - 5 + opts.width / 2, y - 5 - tHeight + opts.height / 2, x + tWidth + 5 + opts.width / 2, y + 5 + opts.height / 2];
  5753. var isCollision = collisionNew(area, points, opts.width, opts.height);
  5754. if (!isCollision) break;
  5755. if (breaknum == 1000) {
  5756. area = [-100, -100, -100, -100];
  5757. break;
  5758. }
  5759. };
  5760. points[i].area = area;
  5761. }
  5762. break;
  5763. case 'vertical':var
  5764. Spin = function Spin() {
  5765. //获取均匀随机值,是否旋转,旋转的概率为(1-0.5)
  5766. if (Math.random() > 0.7) {
  5767. return true;
  5768. } else {return false;};
  5769. };;
  5770. for (var _i15 = 0; _i15 < points.length; _i15++) {
  5771. var _text = points[_i15].name;
  5772. var _tHeight = points[_i15].textSize;
  5773. var _tWidth = measureText(_text, _tHeight);
  5774. var isSpin = Spin();
  5775. var _x = void 0,_y = void 0,_area = void 0,areav = void 0;
  5776. var _breaknum = 0;
  5777. while (true) {
  5778. _breaknum++;
  5779. var _isCollision = void 0;
  5780. if (isSpin) {
  5781. _x = normalInt(-opts.width / 2, opts.width / 2, 5) - _tWidth / 2;
  5782. _y = normalInt(-opts.height / 2, opts.height / 2, 5) + _tHeight / 2;
  5783. _area = [_y - 5 - _tWidth + opts.width / 2, -_x - 5 + opts.height / 2, _y + 5 + opts.width / 2, -_x + _tHeight + 5 + opts.height / 2];
  5784. areav = [opts.width - (opts.width / 2 - opts.height / 2) - (-_x + _tHeight + 5 + opts.height / 2) - 5, opts.height / 2 - opts.width / 2 + (_y - 5 - _tWidth + opts.width / 2) - 5, opts.width - (opts.width / 2 - opts.height / 2) - (-_x + _tHeight + 5 + opts.height / 2) + _tHeight, opts.height / 2 - opts.width / 2 + (_y - 5 - _tWidth + opts.width / 2) + _tWidth + 5];
  5785. _isCollision = collisionNew(areav, points, opts.height, opts.width);
  5786. } else {
  5787. _x = normalInt(-opts.width / 2, opts.width / 2, 5) - _tWidth / 2;
  5788. _y = normalInt(-opts.height / 2, opts.height / 2, 5) + _tHeight / 2;
  5789. _area = [_x - 5 + opts.width / 2, _y - 5 - _tHeight + opts.height / 2, _x + _tWidth + 5 + opts.width / 2, _y + 5 + opts.height / 2];
  5790. _isCollision = collisionNew(_area, points, opts.width, opts.height);
  5791. }
  5792. if (!_isCollision) break;
  5793. if (_breaknum == 1000) {
  5794. _area = [-1000, -1000, -1000, -1000];
  5795. break;
  5796. }
  5797. };
  5798. if (isSpin) {
  5799. points[_i15].area = areav;
  5800. points[_i15].areav = _area;
  5801. } else {
  5802. points[_i15].area = _area;
  5803. }
  5804. points[_i15].rotate = isSpin;
  5805. };
  5806. break;}
  5807. return points;
  5808. }
  5809. function drawWordCloudDataPoints(series, opts, config, context) {
  5810. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  5811. var wordOption = assign({}, {
  5812. type: 'normal',
  5813. autoColors: true },
  5814. opts.extra.word);
  5815. context.beginPath();
  5816. context.setFillStyle(opts.background || '#FFFFFF');
  5817. context.rect(0, 0, opts.width, opts.height);
  5818. context.fill();
  5819. context.save();
  5820. var points = opts.chartData.wordCloudData;
  5821. context.translate(opts.width / 2, opts.height / 2);
  5822. for (var i = 0; i < points.length; i++) {
  5823. context.save();
  5824. if (points[i].rotate) {
  5825. context.rotate(90 * Math.PI / 180);
  5826. }
  5827. var text = points[i].name;
  5828. var tHeight = points[i].textSize;
  5829. var tWidth = measureText(text, tHeight);
  5830. context.beginPath();
  5831. context.setStrokeStyle(points[i].color);
  5832. context.setFillStyle(points[i].color);
  5833. context.setFontSize(tHeight);
  5834. if (points[i].rotate) {
  5835. if (points[i].areav[0] > 0) {
  5836. if (opts.tooltip) {
  5837. if (opts.tooltip.index == i) {
  5838. context.strokeText(text, (points[i].areav[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].areav[1] + 5 + tHeight - opts.height / 2) * process);
  5839. } else {
  5840. context.fillText(text, (points[i].areav[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].areav[1] + 5 + tHeight - opts.height / 2) * process);
  5841. }
  5842. } else {
  5843. context.fillText(text, (points[i].areav[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].areav[1] + 5 + tHeight - opts.height / 2) * process);
  5844. }
  5845. }
  5846. } else {
  5847. if (points[i].area[0] > 0) {
  5848. if (opts.tooltip) {
  5849. if (opts.tooltip.index == i) {
  5850. context.strokeText(text, (points[i].area[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].area[1] + 5 + tHeight - opts.height / 2) * process);
  5851. } else {
  5852. context.fillText(text, (points[i].area[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].area[1] + 5 + tHeight - opts.height / 2) * process);
  5853. }
  5854. } else {
  5855. context.fillText(text, (points[i].area[0] + 5 - opts.width / 2) * process - tWidth * (1 - process) / 2, (points[i].area[1] + 5 + tHeight - opts.height / 2) * process);
  5856. }
  5857. }
  5858. }
  5859. context.stroke();
  5860. context.restore();
  5861. }
  5862. context.restore();
  5863. }
  5864. function drawFunnelDataPoints(series, opts, config, context) {
  5865. var process = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
  5866. var funnelOption = assign({}, {
  5867. activeWidth: 10,
  5868. activeOpacity: 0.3,
  5869. border: false,
  5870. borderWidth: 2,
  5871. borderColor: '#FFFFFF',
  5872. fillOpacity: 1,
  5873. labelAlign: 'right' },
  5874. opts.extra.funnel);
  5875. var eachSpacing = (opts.height - opts.area[0] - opts.area[2]) / series.length;
  5876. var centerPosition = {
  5877. x: opts.area[3] + (opts.width - opts.area[1] - opts.area[3]) / 2,
  5878. y: opts.height - opts.area[2] };
  5879. var activeWidth = funnelOption.activeWidth;
  5880. var radius = Math.min((opts.width - opts.area[1] - opts.area[3]) / 2 - activeWidth, (opts.height - opts.area[0] - opts.area[2]) / 2 - activeWidth);
  5881. series = getFunnelDataPoints(series, radius, process);
  5882. context.save();
  5883. context.translate(centerPosition.x, centerPosition.y);
  5884. for (var i = 0; i < series.length; i++) {
  5885. if (i == 0) {
  5886. if (opts.tooltip) {
  5887. if (opts.tooltip.index == i) {
  5888. context.beginPath();
  5889. context.setFillStyle(hexToRgb(series[i].color, funnelOption.activeOpacity));
  5890. context.moveTo(-activeWidth, 0);
  5891. context.lineTo(-series[i].radius - activeWidth, -eachSpacing);
  5892. context.lineTo(series[i].radius + activeWidth, -eachSpacing);
  5893. context.lineTo(activeWidth, 0);
  5894. context.lineTo(-activeWidth, 0);
  5895. context.closePath();
  5896. context.fill();
  5897. }
  5898. }
  5899. series[i].funnelArea = [centerPosition.x - series[i].radius, centerPosition.y - eachSpacing, centerPosition.x + series[i].radius, centerPosition.y];
  5900. context.beginPath();
  5901. context.setLineWidth(funnelOption.borderWidth * opts.pixelRatio);
  5902. context.setStrokeStyle(funnelOption.borderColor);
  5903. context.setFillStyle(hexToRgb(series[i].color, funnelOption.fillOpacity));
  5904. context.moveTo(0, 0);
  5905. context.lineTo(-series[i].radius, -eachSpacing);
  5906. context.lineTo(series[i].radius, -eachSpacing);
  5907. context.lineTo(0, 0);
  5908. context.closePath();
  5909. context.fill();
  5910. if (funnelOption.border == true) {
  5911. context.stroke();
  5912. }
  5913. } else {
  5914. if (opts.tooltip) {
  5915. if (opts.tooltip.index == i) {
  5916. context.beginPath();
  5917. context.setFillStyle(hexToRgb(series[i].color, funnelOption.activeOpacity));
  5918. context.moveTo(0, 0);
  5919. context.lineTo(-series[i - 1].radius - activeWidth, 0);
  5920. context.lineTo(-series[i].radius - activeWidth, -eachSpacing);
  5921. context.lineTo(series[i].radius + activeWidth, -eachSpacing);
  5922. context.lineTo(series[i - 1].radius + activeWidth, 0);
  5923. context.lineTo(0, 0);
  5924. context.closePath();
  5925. context.fill();
  5926. context.closePath();
  5927. context.fill();
  5928. }
  5929. }
  5930. series[i].funnelArea = [centerPosition.x - series[i].radius, centerPosition.y - eachSpacing * (i + 1), centerPosition.x + series[i].radius, centerPosition.y - eachSpacing * i];
  5931. context.beginPath();
  5932. context.setLineWidth(funnelOption.borderWidth * opts.pixelRatio);
  5933. context.setStrokeStyle(funnelOption.borderColor);
  5934. context.setFillStyle(hexToRgb(series[i].color, funnelOption.fillOpacity));
  5935. context.moveTo(0, 0);
  5936. context.lineTo(-series[i - 1].radius, 0);
  5937. context.lineTo(-series[i].radius, -eachSpacing);
  5938. context.lineTo(series[i].radius, -eachSpacing);
  5939. context.lineTo(series[i - 1].radius, 0);
  5940. context.lineTo(0, 0);
  5941. context.closePath();
  5942. context.fill();
  5943. if (funnelOption.border == true) {
  5944. context.stroke();
  5945. }
  5946. }
  5947. context.translate(0, -eachSpacing);
  5948. }
  5949. context.restore();
  5950. if (opts.dataLabel !== false && process === 1) {
  5951. drawFunnelText(series, opts, context, eachSpacing, funnelOption.labelAlign, activeWidth, centerPosition);
  5952. }
  5953. return {
  5954. center: centerPosition,
  5955. radius: radius,
  5956. series: series };
  5957. }
  5958. function drawFunnelText(series, opts, context, eachSpacing, labelAlign, activeWidth, centerPosition) {
  5959. for (var i = 0; i < series.length; i++) {
  5960. var item = series[i];
  5961. var startX = void 0,endX = void 0,startY = void 0,fontSize = void 0;
  5962. var text = item.format ? item.format(+item._proportion_.toFixed(2)) : util.toFixed(item._proportion_ * 100) + '%';
  5963. if (labelAlign == 'right') {
  5964. if (i == 0) {
  5965. startX = (item.funnelArea[2] + centerPosition.x) / 2;
  5966. } else {
  5967. startX = (item.funnelArea[2] + series[i - 1].funnelArea[2]) / 2;
  5968. }
  5969. endX = startX + activeWidth * 2;
  5970. startY = item.funnelArea[1] + eachSpacing / 2;
  5971. fontSize = item.textSize || opts.fontSize;
  5972. context.setLineWidth(1 * opts.pixelRatio);
  5973. context.setStrokeStyle(item.color);
  5974. context.setFillStyle(item.color);
  5975. context.beginPath();
  5976. context.moveTo(startX, startY);
  5977. context.lineTo(endX, startY);
  5978. context.stroke();
  5979. context.closePath();
  5980. context.beginPath();
  5981. context.moveTo(endX, startY);
  5982. context.arc(endX, startY, 2, 0, 2 * Math.PI);
  5983. context.closePath();
  5984. context.fill();
  5985. context.beginPath();
  5986. context.setFontSize(fontSize);
  5987. context.setFillStyle(item.textColor || '#666666');
  5988. context.fillText(text, endX + 5, startY + fontSize / 2 - 2);
  5989. context.closePath();
  5990. context.stroke();
  5991. context.closePath();
  5992. } else {
  5993. if (i == 0) {
  5994. startX = (item.funnelArea[0] + centerPosition.x) / 2;
  5995. } else {
  5996. startX = (item.funnelArea[0] + series[i - 1].funnelArea[0]) / 2;
  5997. }
  5998. endX = startX - activeWidth * 2;
  5999. startY = item.funnelArea[1] + eachSpacing / 2;
  6000. fontSize = item.textSize || opts.fontSize;
  6001. context.setLineWidth(1 * opts.pixelRatio);
  6002. context.setStrokeStyle(item.color);
  6003. context.setFillStyle(item.color);
  6004. context.beginPath();
  6005. context.moveTo(startX, startY);
  6006. context.lineTo(endX, startY);
  6007. context.stroke();
  6008. context.closePath();
  6009. context.beginPath();
  6010. context.moveTo(endX, startY);
  6011. context.arc(endX, startY, 2, 0, 2 * Math.PI);
  6012. context.closePath();
  6013. context.fill();
  6014. context.beginPath();
  6015. context.setFontSize(fontSize);
  6016. context.setFillStyle(item.textColor || '#666666');
  6017. context.fillText(text, endX - 5 - measureText(text), startY + fontSize / 2 - 2);
  6018. context.closePath();
  6019. context.stroke();
  6020. context.closePath();
  6021. }
  6022. }
  6023. }
  6024. function drawCanvas(opts, context) {
  6025. context.draw();
  6026. }
  6027. var Timing = {
  6028. easeIn: function easeIn(pos) {
  6029. return Math.pow(pos, 3);
  6030. },
  6031. easeOut: function easeOut(pos) {
  6032. return Math.pow(pos - 1, 3) + 1;
  6033. },
  6034. easeInOut: function easeInOut(pos) {
  6035. if ((pos /= 0.5) < 1) {
  6036. return 0.5 * Math.pow(pos, 3);
  6037. } else {
  6038. return 0.5 * (Math.pow(pos - 2, 3) + 2);
  6039. }
  6040. },
  6041. linear: function linear(pos) {
  6042. return pos;
  6043. } };
  6044. function Animation(opts) {
  6045. this.isStop = false;
  6046. opts.duration = typeof opts.duration === 'undefined' ? 1000 : opts.duration;
  6047. opts.timing = opts.timing || 'linear';
  6048. var delay = 17;
  6049. function createAnimationFrame() {
  6050. if (typeof setTimeout !== 'undefined') {
  6051. return function (step, delay) {
  6052. setTimeout(function () {
  6053. var timeStamp = +new Date();
  6054. step(timeStamp);
  6055. }, delay);
  6056. };
  6057. } else if (typeof requestAnimationFrame !== 'undefined') {
  6058. return requestAnimationFrame;
  6059. } else {
  6060. return function (step) {
  6061. step(null);
  6062. };
  6063. }
  6064. };
  6065. var animationFrame = createAnimationFrame();
  6066. var startTimeStamp = null;
  6067. var _step = function step(timestamp) {
  6068. if (timestamp === null || this.isStop === true) {
  6069. opts.onProcess && opts.onProcess(1);
  6070. opts.onAnimationFinish && opts.onAnimationFinish();
  6071. return;
  6072. }
  6073. if (startTimeStamp === null) {
  6074. startTimeStamp = timestamp;
  6075. }
  6076. if (timestamp - startTimeStamp < opts.duration) {
  6077. var process = (timestamp - startTimeStamp) / opts.duration;
  6078. var timingFunction = Timing[opts.timing];
  6079. process = timingFunction(process);
  6080. opts.onProcess && opts.onProcess(process);
  6081. animationFrame(_step, delay);
  6082. } else {
  6083. opts.onProcess && opts.onProcess(1);
  6084. opts.onAnimationFinish && opts.onAnimationFinish();
  6085. }
  6086. };
  6087. _step = _step.bind(this);
  6088. animationFrame(_step, delay);
  6089. }
  6090. // stop animation immediately
  6091. // and tigger onAnimationFinish
  6092. Animation.prototype.stop = function () {
  6093. this.isStop = true;
  6094. };
  6095. function drawCharts(type, opts, config, context) {
  6096. var _this = this;
  6097. var series = opts.series;
  6098. var categories = opts.categories;
  6099. series = fillSeries(series, opts, config);
  6100. var duration = opts.animation ? opts.duration : 0;
  6101. this.animationInstance && this.animationInstance.stop();
  6102. var seriesMA = null;
  6103. if (type == 'candle') {
  6104. var average = assign({}, opts.extra.candle.average);
  6105. if (average.show) {
  6106. seriesMA = calCandleMA(average.day, average.name, average.color, series[0].data);
  6107. seriesMA = fillSeries(seriesMA, opts, config);
  6108. opts.seriesMA = seriesMA;
  6109. } else if (opts.seriesMA) {
  6110. seriesMA = opts.seriesMA = fillSeries(opts.seriesMA, opts, config);
  6111. } else {
  6112. seriesMA = series;
  6113. }
  6114. } else {
  6115. seriesMA = series;
  6116. }
  6117. /* 过滤掉show=false的series */
  6118. opts._series_ = series = filterSeries(series);
  6119. //重新计算图表区域
  6120. opts.area = new Array(4);
  6121. //复位绘图区域
  6122. for (var j = 0; j < 4; j++) {
  6123. opts.area[j] = opts.padding[j];
  6124. }
  6125. //通过计算三大区域:图例、X轴、Y轴的大小,确定绘图区域
  6126. var _calLegendData = calLegendData(seriesMA, opts, config, opts.chartData),
  6127. legendHeight = _calLegendData.area.wholeHeight,
  6128. legendWidth = _calLegendData.area.wholeWidth;
  6129. //TODO废弃config.legendHeight参数
  6130. config.legendHeight = legendHeight;
  6131. switch (opts.legend.position) {
  6132. case 'top':
  6133. opts.area[0] += legendHeight;
  6134. break;
  6135. case 'bottom':
  6136. opts.area[2] += legendHeight;
  6137. break;
  6138. case 'left':
  6139. opts.area[3] += legendWidth;
  6140. break;
  6141. case 'right':
  6142. opts.area[1] += legendWidth;
  6143. break;}
  6144. var _calYAxisData = {},yAxisWidth = 0;
  6145. if (opts.type === 'line' || opts.type === 'column' || opts.type === 'area' || opts.type === 'mix' || opts.type === 'candle') {
  6146. _calYAxisData = calYAxisData(series, opts, config);
  6147. yAxisWidth = _calYAxisData.yAxisWidth;
  6148. config.yAxisWidth = yAxisWidth;
  6149. opts.area[3] += yAxisWidth;
  6150. } else {
  6151. config.yAxisWidth = yAxisWidth;
  6152. }
  6153. opts.chartData.yAxisData = _calYAxisData;
  6154. if (opts.categories && opts.categories.length) {
  6155. opts.chartData.xAxisData = getXAxisPoints(opts.categories, opts, config);
  6156. var _calCategoriesData = calCategoriesData(opts.categories, opts, config, opts.chartData.xAxisData.eachSpacing),
  6157. xAxisHeight = _calCategoriesData.xAxisHeight,
  6158. angle = _calCategoriesData.angle;
  6159. config.xAxisHeight = xAxisHeight;
  6160. config._xAxisTextAngle_ = angle;
  6161. opts.area[2] += xAxisHeight;
  6162. opts.chartData.categoriesData = _calCategoriesData;
  6163. }
  6164. //计算右对齐偏移距离
  6165. if (opts.enableScroll && opts.xAxis.scrollAlign == 'right' && opts._scrollDistance_ === undefined) {
  6166. var offsetLeft = 0,
  6167. xAxisPoints = opts.chartData.xAxisData.xAxisPoints,
  6168. startX = opts.chartData.xAxisData.startX,
  6169. endX = opts.chartData.xAxisData.endX,
  6170. eachSpacing = opts.chartData.xAxisData.eachSpacing;
  6171. var totalWidth = eachSpacing * (xAxisPoints.length - 1);
  6172. var screenWidth = endX - startX;
  6173. offsetLeft = screenWidth - totalWidth;
  6174. _this.scrollOption = {
  6175. currentOffset: offsetLeft,
  6176. startTouchX: offsetLeft,
  6177. distance: 0,
  6178. lastMoveTime: 0 };
  6179. opts._scrollDistance_ = offsetLeft;
  6180. }
  6181. if (type === 'pie' || type === 'ring' || type === 'rose') {
  6182. config._pieTextMaxLength_ = opts.dataLabel === false ? 0 : getPieTextMaxLength(seriesMA);
  6183. }
  6184. switch (type) {
  6185. case 'word':
  6186. var wordOption = assign({}, {
  6187. type: 'normal',
  6188. autoColors: true },
  6189. opts.extra.word);
  6190. if (opts.updateData == true || opts.updateData == undefined) {
  6191. opts.chartData.wordCloudData = getWordCloudPoint(opts, wordOption.type);
  6192. }
  6193. this.animationInstance = new Animation({
  6194. timing: 'easeInOut',
  6195. duration: duration,
  6196. onProcess: function onProcess(process) {
  6197. context.clearRect(0, 0, opts.width, opts.height);
  6198. if (opts.rotate) {
  6199. contextRotate(context, opts);
  6200. }
  6201. drawWordCloudDataPoints(series, opts, config, context, process);
  6202. drawCanvas(opts, context);
  6203. },
  6204. onAnimationFinish: function onAnimationFinish() {
  6205. _this.event.trigger('renderComplete');
  6206. } });
  6207. break;
  6208. case 'map':
  6209. context.clearRect(0, 0, opts.width, opts.height);
  6210. drawMapDataPoints(series, opts, config, context);
  6211. break;
  6212. case 'funnel':
  6213. this.animationInstance = new Animation({
  6214. timing: 'easeInOut',
  6215. duration: duration,
  6216. onProcess: function onProcess(process) {
  6217. context.clearRect(0, 0, opts.width, opts.height);
  6218. if (opts.rotate) {
  6219. contextRotate(context, opts);
  6220. }
  6221. opts.chartData.funnelData = drawFunnelDataPoints(series, opts, config, context, process);
  6222. drawLegend(opts.series, opts, config, context, opts.chartData);
  6223. drawToolTipBridge(opts, config, context, process);
  6224. drawCanvas(opts, context);
  6225. },
  6226. onAnimationFinish: function onAnimationFinish() {
  6227. _this.event.trigger('renderComplete');
  6228. } });
  6229. break;
  6230. case 'line':
  6231. this.animationInstance = new Animation({
  6232. timing: 'easeIn',
  6233. duration: duration,
  6234. onProcess: function onProcess(process) {
  6235. context.clearRect(0, 0, opts.width, opts.height);
  6236. if (opts.rotate) {
  6237. contextRotate(context, opts);
  6238. }
  6239. drawYAxisGrid(categories, opts, config, context);
  6240. drawXAxis(categories, opts, config, context);
  6241. var _drawLineDataPoints = drawLineDataPoints(series, opts, config, context, process),
  6242. xAxisPoints = _drawLineDataPoints.xAxisPoints,
  6243. calPoints = _drawLineDataPoints.calPoints,
  6244. eachSpacing = _drawLineDataPoints.eachSpacing,
  6245. minRange = _drawLineDataPoints.minRange,
  6246. maxRange = _drawLineDataPoints.maxRange;
  6247. opts.chartData.xAxisPoints = xAxisPoints;
  6248. opts.chartData.calPoints = calPoints;
  6249. opts.chartData.eachSpacing = eachSpacing;
  6250. drawYAxis(series, opts, config, context);
  6251. if (opts.enableMarkLine !== false && process === 1) {
  6252. drawMarkLine(minRange, maxRange, opts, config, context);
  6253. }
  6254. drawLegend(opts.series, opts, config, context, opts.chartData);
  6255. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  6256. drawCanvas(opts, context);
  6257. },
  6258. onAnimationFinish: function onAnimationFinish() {
  6259. _this.event.trigger('renderComplete');
  6260. } });
  6261. break;
  6262. case 'mix':
  6263. this.animationInstance = new Animation({
  6264. timing: 'easeIn',
  6265. duration: duration,
  6266. onProcess: function onProcess(process) {
  6267. context.clearRect(0, 0, opts.width, opts.height);
  6268. if (opts.rotate) {
  6269. contextRotate(context, opts);
  6270. }
  6271. drawYAxisGrid(categories, opts, config, context);
  6272. drawXAxis(categories, opts, config, context);
  6273. var _drawMixDataPoints = drawMixDataPoints(series, opts, config, context, process),
  6274. xAxisPoints = _drawMixDataPoints.xAxisPoints,
  6275. calPoints = _drawMixDataPoints.calPoints,
  6276. eachSpacing = _drawMixDataPoints.eachSpacing,
  6277. minRange = _drawMixDataPoints.minRange,
  6278. maxRange = _drawMixDataPoints.maxRange;
  6279. opts.chartData.xAxisPoints = xAxisPoints;
  6280. opts.chartData.calPoints = calPoints;
  6281. opts.chartData.eachSpacing = eachSpacing;
  6282. drawYAxis(series, opts, config, context);
  6283. if (opts.enableMarkLine !== false && process === 1) {
  6284. drawMarkLine(minRange, maxRange, opts, config, context);
  6285. }
  6286. drawLegend(opts.series, opts, config, context, opts.chartData);
  6287. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  6288. drawCanvas(opts, context);
  6289. },
  6290. onAnimationFinish: function onAnimationFinish() {
  6291. _this.event.trigger('renderComplete');
  6292. } });
  6293. break;
  6294. case 'column':
  6295. this.animationInstance = new Animation({
  6296. timing: 'easeIn',
  6297. duration: duration,
  6298. onProcess: function onProcess(process) {
  6299. context.clearRect(0, 0, opts.width, opts.height);
  6300. if (opts.rotate) {
  6301. contextRotate(context, opts);
  6302. }
  6303. drawYAxisGrid(categories, opts, config, context);
  6304. drawXAxis(categories, opts, config, context);
  6305. var _drawColumnDataPoints = drawColumnDataPoints(series, opts, config, context, process),
  6306. xAxisPoints = _drawColumnDataPoints.xAxisPoints,
  6307. calPoints = _drawColumnDataPoints.calPoints,
  6308. eachSpacing = _drawColumnDataPoints.eachSpacing,
  6309. minRange = _drawColumnDataPoints.minRange,
  6310. maxRange = _drawColumnDataPoints.maxRange;
  6311. opts.chartData.xAxisPoints = xAxisPoints;
  6312. opts.chartData.calPoints = calPoints;
  6313. opts.chartData.eachSpacing = eachSpacing;
  6314. drawYAxis(series, opts, config, context);
  6315. if (opts.enableMarkLine !== false && process === 1) {
  6316. drawMarkLine(minRange, maxRange, opts, config, context);
  6317. }
  6318. drawLegend(opts.series, opts, config, context, opts.chartData);
  6319. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  6320. drawCanvas(opts, context);
  6321. },
  6322. onAnimationFinish: function onAnimationFinish() {
  6323. _this.event.trigger('renderComplete');
  6324. } });
  6325. break;
  6326. case 'area':
  6327. this.animationInstance = new Animation({
  6328. timing: 'easeIn',
  6329. duration: duration,
  6330. onProcess: function onProcess(process) {
  6331. context.clearRect(0, 0, opts.width, opts.height);
  6332. if (opts.rotate) {
  6333. contextRotate(context, opts);
  6334. }
  6335. drawYAxisGrid(categories, opts, config, context);
  6336. drawXAxis(categories, opts, config, context);
  6337. var _drawAreaDataPoints = drawAreaDataPoints(series, opts, config, context, process),
  6338. xAxisPoints = _drawAreaDataPoints.xAxisPoints,
  6339. calPoints = _drawAreaDataPoints.calPoints,
  6340. eachSpacing = _drawAreaDataPoints.eachSpacing,
  6341. minRange = _drawAreaDataPoints.minRange,
  6342. maxRange = _drawAreaDataPoints.maxRange;
  6343. opts.chartData.xAxisPoints = xAxisPoints;
  6344. opts.chartData.calPoints = calPoints;
  6345. opts.chartData.eachSpacing = eachSpacing;
  6346. drawYAxis(series, opts, config, context);
  6347. if (opts.enableMarkLine !== false && process === 1) {
  6348. drawMarkLine(minRange, maxRange, opts, config, context);
  6349. }
  6350. drawLegend(opts.series, opts, config, context, opts.chartData);
  6351. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  6352. drawCanvas(opts, context);
  6353. },
  6354. onAnimationFinish: function onAnimationFinish() {
  6355. _this.event.trigger('renderComplete');
  6356. } });
  6357. break;
  6358. case 'ring':
  6359. case 'pie':
  6360. this.animationInstance = new Animation({
  6361. timing: 'easeInOut',
  6362. duration: duration,
  6363. onProcess: function onProcess(process) {
  6364. context.clearRect(0, 0, opts.width, opts.height);
  6365. if (opts.rotate) {
  6366. contextRotate(context, opts);
  6367. }
  6368. opts.chartData.pieData = drawPieDataPoints(series, opts, config, context, process);
  6369. drawLegend(opts.series, opts, config, context, opts.chartData);
  6370. drawToolTipBridge(opts, config, context, process);
  6371. drawCanvas(opts, context);
  6372. },
  6373. onAnimationFinish: function onAnimationFinish() {
  6374. _this.event.trigger('renderComplete');
  6375. } });
  6376. break;
  6377. case 'rose':
  6378. this.animationInstance = new Animation({
  6379. timing: 'easeInOut',
  6380. duration: duration,
  6381. onProcess: function onProcess(process) {
  6382. context.clearRect(0, 0, opts.width, opts.height);
  6383. if (opts.rotate) {
  6384. contextRotate(context, opts);
  6385. }
  6386. opts.chartData.pieData = drawRoseDataPoints(series, opts, config, context, process);
  6387. drawLegend(opts.series, opts, config, context, opts.chartData);
  6388. drawToolTipBridge(opts, config, context, process);
  6389. drawCanvas(opts, context);
  6390. },
  6391. onAnimationFinish: function onAnimationFinish() {
  6392. _this.event.trigger('renderComplete');
  6393. } });
  6394. break;
  6395. case 'radar':
  6396. this.animationInstance = new Animation({
  6397. timing: 'easeInOut',
  6398. duration: duration,
  6399. onProcess: function onProcess(process) {
  6400. context.clearRect(0, 0, opts.width, opts.height);
  6401. if (opts.rotate) {
  6402. contextRotate(context, opts);
  6403. }
  6404. opts.chartData.radarData = drawRadarDataPoints(series, opts, config, context, process);
  6405. drawLegend(opts.series, opts, config, context, opts.chartData);
  6406. drawToolTipBridge(opts, config, context, process);
  6407. drawCanvas(opts, context);
  6408. },
  6409. onAnimationFinish: function onAnimationFinish() {
  6410. _this.event.trigger('renderComplete');
  6411. } });
  6412. break;
  6413. case 'arcbar':
  6414. this.animationInstance = new Animation({
  6415. timing: 'easeInOut',
  6416. duration: duration,
  6417. onProcess: function onProcess(process) {
  6418. context.clearRect(0, 0, opts.width, opts.height);
  6419. if (opts.rotate) {
  6420. contextRotate(context, opts);
  6421. }
  6422. opts.chartData.arcbarData = drawArcbarDataPoints(series, opts, config, context, process);
  6423. drawCanvas(opts, context);
  6424. },
  6425. onAnimationFinish: function onAnimationFinish() {
  6426. _this.event.trigger('renderComplete');
  6427. } });
  6428. break;
  6429. case 'gauge':
  6430. this.animationInstance = new Animation({
  6431. timing: 'easeInOut',
  6432. duration: duration,
  6433. onProcess: function onProcess(process) {
  6434. context.clearRect(0, 0, opts.width, opts.height);
  6435. if (opts.rotate) {
  6436. contextRotate(context, opts);
  6437. }
  6438. opts.chartData.gaugeData = drawGaugeDataPoints(categories, series, opts, config, context, process);
  6439. drawCanvas(opts, context);
  6440. },
  6441. onAnimationFinish: function onAnimationFinish() {
  6442. _this.event.trigger('renderComplete');
  6443. } });
  6444. break;
  6445. case 'candle':
  6446. this.animationInstance = new Animation({
  6447. timing: 'easeIn',
  6448. duration: duration,
  6449. onProcess: function onProcess(process) {
  6450. context.clearRect(0, 0, opts.width, opts.height);
  6451. if (opts.rotate) {
  6452. contextRotate(context, opts);
  6453. }
  6454. drawYAxisGrid(categories, opts, config, context);
  6455. drawXAxis(categories, opts, config, context);
  6456. var _drawCandleDataPoints = drawCandleDataPoints(series, seriesMA, opts, config, context, process),
  6457. xAxisPoints = _drawCandleDataPoints.xAxisPoints,
  6458. calPoints = _drawCandleDataPoints.calPoints,
  6459. eachSpacing = _drawCandleDataPoints.eachSpacing,
  6460. minRange = _drawCandleDataPoints.minRange,
  6461. maxRange = _drawCandleDataPoints.maxRange;
  6462. opts.chartData.xAxisPoints = xAxisPoints;
  6463. opts.chartData.calPoints = calPoints;
  6464. opts.chartData.eachSpacing = eachSpacing;
  6465. drawYAxis(series, opts, config, context);
  6466. if (opts.enableMarkLine !== false && process === 1) {
  6467. drawMarkLine(minRange, maxRange, opts, config, context);
  6468. }
  6469. if (seriesMA) {
  6470. drawLegend(seriesMA, opts, config, context, opts.chartData);
  6471. } else {
  6472. drawLegend(opts.series, opts, config, context, opts.chartData);
  6473. }
  6474. drawToolTipBridge(opts, config, context, process, eachSpacing, xAxisPoints);
  6475. drawCanvas(opts, context);
  6476. },
  6477. onAnimationFinish: function onAnimationFinish() {
  6478. _this.event.trigger('renderComplete');
  6479. } });
  6480. break;}
  6481. }
  6482. // simple event implement
  6483. function Event() {
  6484. this.events = {};
  6485. }
  6486. Event.prototype.addEventListener = function (type, listener) {
  6487. this.events[type] = this.events[type] || [];
  6488. this.events[type].push(listener);
  6489. };
  6490. Event.prototype.trigger = function () {
  6491. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  6492. args[_key] = arguments[_key];
  6493. }
  6494. var type = args[0];
  6495. var params = args.slice(1);
  6496. if (!!this.events[type]) {
  6497. this.events[type].forEach(function (listener) {
  6498. try {
  6499. listener.apply(null, params);
  6500. } catch (e) {
  6501. console.error(e);
  6502. }
  6503. });
  6504. }
  6505. };
  6506. var Charts = function Charts(opts) {
  6507. opts.pixelRatio = opts.pixelRatio ? opts.pixelRatio : 1;
  6508. opts.fontSize = opts.fontSize ? opts.fontSize * opts.pixelRatio : 13 * opts.pixelRatio;
  6509. opts.title = assign({}, opts.title);
  6510. opts.subtitle = assign({}, opts.subtitle);
  6511. opts.duration = opts.duration ? opts.duration : 1000;
  6512. opts.yAxis = assign({}, {
  6513. gridType: 'solid',
  6514. dashLength: 4 * opts.pixelRatio },
  6515. opts.yAxis);
  6516. opts.xAxis = assign({}, {
  6517. rotateLabel: false,
  6518. type: 'calibration',
  6519. gridType: 'solid',
  6520. dashLength: 4 * opts.pixelRatio,
  6521. scrollAlign: 'left',
  6522. boundaryGap: 'center' },
  6523. opts.xAxis);
  6524. opts.legend = assign({}, {
  6525. show: true,
  6526. position: 'bottom',
  6527. float: 'center',
  6528. backgroundColor: 'rgba(0,0,0,0)',
  6529. borderColor: 'rgba(0,0,0,0)',
  6530. borderWidth: 0,
  6531. padding: 5,
  6532. margin: 5,
  6533. itemGap: 10,
  6534. fontSize: opts.fontSize,
  6535. lineHeight: opts.fontSize,
  6536. fontColor: '#333333',
  6537. format: {},
  6538. hiddenColor: '#CECECE' },
  6539. opts.legend);
  6540. opts.legend.borderWidth = opts.legend.borderWidth * opts.pixelRatio;
  6541. opts.legend.itemGap = opts.legend.itemGap * opts.pixelRatio;
  6542. opts.legend.padding = opts.legend.padding * opts.pixelRatio;
  6543. opts.legend.margin = opts.legend.margin * opts.pixelRatio;
  6544. opts.extra = assign({}, opts.extra);
  6545. opts.rotate = opts.rotate ? true : false;
  6546. opts.animation = opts.animation ? true : false;
  6547. var config$$1 = JSON.parse(JSON.stringify(config));
  6548. config$$1.colors = opts.colors ? opts.colors : config$$1.colors;
  6549. config$$1.yAxisTitleWidth = opts.yAxis.disabled !== true && opts.yAxis.title ? config$$1.yAxisTitleWidth : 0;
  6550. if (opts.type == 'pie' || opts.type == 'ring') {
  6551. config$$1.pieChartLinePadding = opts.dataLabel === false ? 0 : opts.extra.pie.labelWidth * opts.pixelRatio || config$$1.pieChartLinePadding * opts.pixelRatio;
  6552. }
  6553. if (opts.type == 'rose') {
  6554. config$$1.pieChartLinePadding = opts.dataLabel === false ? 0 : opts.extra.rose.labelWidth * opts.pixelRatio || config$$1.pieChartLinePadding * opts.pixelRatio;
  6555. }
  6556. config$$1.pieChartTextPadding = opts.dataLabel === false ? 0 : config$$1.pieChartTextPadding * opts.pixelRatio;
  6557. config$$1.yAxisSplit = opts.yAxis.splitNumber ? opts.yAxis.splitNumber : config.yAxisSplit;
  6558. //屏幕旋转
  6559. config$$1.rotate = opts.rotate;
  6560. if (opts.rotate) {
  6561. var tempWidth = opts.width;
  6562. var tempHeight = opts.height;
  6563. opts.width = tempHeight;
  6564. opts.height = tempWidth;
  6565. }
  6566. //适配高分屏
  6567. opts.padding = opts.padding ? opts.padding : config$$1.padding;
  6568. for (var i = 0; i < 4; i++) {
  6569. opts.padding[i] *= opts.pixelRatio;
  6570. }
  6571. config$$1.yAxisWidth = config.yAxisWidth * opts.pixelRatio;
  6572. config$$1.xAxisHeight = config.xAxisHeight * opts.pixelRatio;
  6573. if (opts.enableScroll && opts.xAxis.scrollShow) {
  6574. config$$1.xAxisHeight += 6 * opts.pixelRatio;
  6575. }
  6576. config$$1.xAxisLineHeight = config.xAxisLineHeight * opts.pixelRatio;
  6577. config$$1.legendHeight = config.legendHeight * opts.pixelRatio;
  6578. config$$1.fontSize = opts.fontSize;
  6579. config$$1.titleFontSize = config.titleFontSize * opts.pixelRatio;
  6580. config$$1.subtitleFontSize = config.subtitleFontSize * opts.pixelRatio;
  6581. config$$1.toolTipPadding = config.toolTipPadding * opts.pixelRatio;
  6582. config$$1.toolTipLineHeight = config.toolTipLineHeight * opts.pixelRatio;
  6583. config$$1.columePadding = config.columePadding * opts.pixelRatio;
  6584. opts.$this = opts.$this ? opts.$this : this;
  6585. this.context = uni.createCanvasContext(opts.canvasId, opts.$this);
  6586. /* 兼容原生H5
  6587. this.context = document.getElementById(opts.canvasId).getContext("2d");
  6588. this.context.setStrokeStyle = function(e){ return this.strokeStyle=e; }
  6589. this.context.setLineWidth = function(e){ return this.lineWidth=e; }
  6590. this.context.setLineCap = function(e){ return this.lineCap=e; }
  6591. this.context.setFontSize = function(e){ return this.font=e+"px sans-serif"; }
  6592. this.context.setFillStyle = function(e){ return this.fillStyle=e; }
  6593. this.context.draw = function(){ }
  6594. */
  6595. opts.chartData = {};
  6596. this.event = new Event();
  6597. this.scrollOption = {
  6598. currentOffset: 0,
  6599. startTouchX: 0,
  6600. distance: 0,
  6601. lastMoveTime: 0 };
  6602. this.opts = opts;
  6603. this.config = config$$1;
  6604. drawCharts.call(this, opts.type, opts, config$$1, this.context);
  6605. };
  6606. Charts.prototype.updateData = function () {
  6607. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  6608. this.opts = assign({}, this.opts, data);
  6609. this.opts.updateData = true;
  6610. var scrollPosition = data.scrollPosition || 'current';
  6611. switch (scrollPosition) {
  6612. case 'current':
  6613. this.opts._scrollDistance_ = this.scrollOption.currentOffset;
  6614. break;
  6615. case 'left':
  6616. this.opts._scrollDistance_ = 0;
  6617. this.scrollOption = {
  6618. currentOffset: 0,
  6619. startTouchX: 0,
  6620. distance: 0,
  6621. lastMoveTime: 0 };
  6622. break;
  6623. case 'right':
  6624. var _calYAxisData = calYAxisData(this.opts.series, this.opts, this.config),
  6625. yAxisWidth = _calYAxisData.yAxisWidth;
  6626. this.config.yAxisWidth = yAxisWidth;
  6627. var offsetLeft = 0;
  6628. var _getXAxisPoints0 = getXAxisPoints(this.opts.categories, this.opts, this.config),
  6629. xAxisPoints = _getXAxisPoints0.xAxisPoints,
  6630. startX = _getXAxisPoints0.startX,
  6631. endX = _getXAxisPoints0.endX,
  6632. eachSpacing = _getXAxisPoints0.eachSpacing;
  6633. var totalWidth = eachSpacing * (xAxisPoints.length - 1);
  6634. var screenWidth = endX - startX;
  6635. offsetLeft = screenWidth - totalWidth;
  6636. this.scrollOption = {
  6637. currentOffset: offsetLeft,
  6638. startTouchX: offsetLeft,
  6639. distance: 0,
  6640. lastMoveTime: 0 };
  6641. this.opts._scrollDistance_ = offsetLeft;
  6642. break;}
  6643. drawCharts.call(this, this.opts.type, this.opts, this.config, this.context);
  6644. };
  6645. Charts.prototype.zoom = function () {
  6646. var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.opts.xAxis.itemCount;
  6647. if (this.opts.enableScroll !== true) {
  6648. console.log('请启用滚动条后使用!');
  6649. return;
  6650. }
  6651. //当前屏幕中间点
  6652. var centerPoint = Math.round(Math.abs(this.scrollOption.currentOffset) / this.opts.chartData.eachSpacing) + Math.round(
  6653. this.opts.xAxis.itemCount / 2);
  6654. this.opts.animation = false;
  6655. this.opts.xAxis.itemCount = val.itemCount;
  6656. //重新计算x轴偏移距离
  6657. var _calYAxisData = calYAxisData(this.opts.series, this.opts, this.config),
  6658. yAxisWidth = _calYAxisData.yAxisWidth;
  6659. this.config.yAxisWidth = yAxisWidth;
  6660. var offsetLeft = 0;
  6661. var _getXAxisPoints0 = getXAxisPoints(this.opts.categories, this.opts, this.config),
  6662. xAxisPoints = _getXAxisPoints0.xAxisPoints,
  6663. startX = _getXAxisPoints0.startX,
  6664. endX = _getXAxisPoints0.endX,
  6665. eachSpacing = _getXAxisPoints0.eachSpacing;
  6666. var centerLeft = eachSpacing * centerPoint;
  6667. var screenWidth = endX - startX;
  6668. var MaxLeft = screenWidth - eachSpacing * (xAxisPoints.length - 1);
  6669. offsetLeft = screenWidth / 2 - centerLeft;
  6670. if (offsetLeft > 0) {
  6671. offsetLeft = 0;
  6672. }
  6673. if (offsetLeft < MaxLeft) {
  6674. offsetLeft = MaxLeft;
  6675. }
  6676. this.scrollOption = {
  6677. currentOffset: offsetLeft,
  6678. startTouchX: offsetLeft,
  6679. distance: 0,
  6680. lastMoveTime: 0 };
  6681. this.opts._scrollDistance_ = offsetLeft;
  6682. drawCharts.call(this, this.opts.type, this.opts, this.config, this.context);
  6683. };
  6684. Charts.prototype.stopAnimation = function () {
  6685. this.animationInstance && this.animationInstance.stop();
  6686. };
  6687. Charts.prototype.addEventListener = function (type, listener) {
  6688. this.event.addEventListener(type, listener);
  6689. };
  6690. Charts.prototype.getCurrentDataIndex = function (e) {
  6691. var touches = null;
  6692. if (e.changedTouches) {
  6693. touches = e.changedTouches[0];
  6694. } else {
  6695. touches = e.mp.changedTouches[0];
  6696. }
  6697. if (touches) {
  6698. var _touches$ = getTouches(touches, this.opts, e);
  6699. if (this.opts.type === 'pie' || this.opts.type === 'ring' || this.opts.type === 'rose') {
  6700. return findPieChartCurrentIndex({
  6701. x: _touches$.x,
  6702. y: _touches$.y },
  6703. this.opts.chartData.pieData);
  6704. } else if (this.opts.type === 'radar') {
  6705. return findRadarChartCurrentIndex({
  6706. x: _touches$.x,
  6707. y: _touches$.y },
  6708. this.opts.chartData.radarData, this.opts.categories.length);
  6709. } else if (this.opts.type === 'funnel') {
  6710. return findFunnelChartCurrentIndex({
  6711. x: _touches$.x,
  6712. y: _touches$.y },
  6713. this.opts.chartData.funnelData);
  6714. } else if (this.opts.type === 'map') {
  6715. return findMapChartCurrentIndex({
  6716. x: _touches$.x,
  6717. y: _touches$.y },
  6718. this.opts);
  6719. } else if (this.opts.type === 'word') {
  6720. return findWordChartCurrentIndex({
  6721. x: _touches$.x,
  6722. y: _touches$.y },
  6723. this.opts.chartData.wordCloudData);
  6724. } else {
  6725. return findCurrentIndex({
  6726. x: _touches$.x,
  6727. y: _touches$.y },
  6728. this.opts.chartData.xAxisPoints, this.opts, this.config, Math.abs(this.scrollOption.currentOffset));
  6729. }
  6730. }
  6731. return -1;
  6732. };
  6733. Charts.prototype.getLegendDataIndex = function (e) {
  6734. var touches = null;
  6735. if (e.changedTouches) {
  6736. touches = e.changedTouches[0];
  6737. } else {
  6738. touches = e.mp.changedTouches[0];
  6739. }
  6740. if (touches) {
  6741. var _touches$ = getTouches(touches, this.opts, e);
  6742. return findLegendIndex({
  6743. x: _touches$.x,
  6744. y: _touches$.y },
  6745. this.opts.chartData.legendData);
  6746. }
  6747. return -1;
  6748. };
  6749. Charts.prototype.touchLegend = function (e) {
  6750. var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  6751. var touches = null;
  6752. if (e.changedTouches) {
  6753. touches = e.changedTouches[0];
  6754. } else {
  6755. touches = e.mp.changedTouches[0];
  6756. }
  6757. if (touches) {
  6758. var _touches$ = getTouches(touches, this.opts, e);
  6759. var index = this.getLegendDataIndex(e);
  6760. if (index >= 0) {
  6761. this.opts.series[index].show = !this.opts.series[index].show;
  6762. this.opts.animation = option.animation ? true : false;
  6763. drawCharts.call(this, this.opts.type, this.opts, this.config, this.context);
  6764. }
  6765. }
  6766. };
  6767. Charts.prototype.showToolTip = function (e) {
  6768. var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  6769. var touches = null;
  6770. if (e.changedTouches) {
  6771. touches = e.changedTouches[0];
  6772. } else {
  6773. touches = e.mp.changedTouches[0];
  6774. }
  6775. if (!touches) {
  6776. console.log("touchError");
  6777. }
  6778. var _touches$ = getTouches(touches, this.opts, e);
  6779. var currentOffset = this.scrollOption.currentOffset;
  6780. var opts = assign({}, this.opts, {
  6781. _scrollDistance_: currentOffset,
  6782. animation: false });
  6783. if (this.opts.type === 'line' || this.opts.type === 'area' || this.opts.type === 'column') {
  6784. var index = this.getCurrentDataIndex(e);
  6785. if (index > -1) {
  6786. var seriesData = getSeriesDataItem(this.opts.series, index);
  6787. if (seriesData.length !== 0) {
  6788. var _getToolTipData = getToolTipData(seriesData, this.opts.chartData.calPoints, index, this.opts.categories, option),
  6789. textList = _getToolTipData.textList,
  6790. offset = _getToolTipData.offset;
  6791. offset.y = _touches$.y;
  6792. opts.tooltip = {
  6793. textList: textList,
  6794. offset: offset,
  6795. option: option,
  6796. index: index };
  6797. }
  6798. }
  6799. drawCharts.call(this, opts.type, opts, this.config, this.context);
  6800. }
  6801. if (this.opts.type === 'mix') {
  6802. var index = this.getCurrentDataIndex(e);
  6803. if (index > -1) {
  6804. var currentOffset = this.scrollOption.currentOffset;
  6805. var opts = assign({}, this.opts, {
  6806. _scrollDistance_: currentOffset,
  6807. animation: false });
  6808. var seriesData = getSeriesDataItem(this.opts.series, index);
  6809. if (seriesData.length !== 0) {
  6810. var _getMixToolTipData = getMixToolTipData(seriesData, this.opts.chartData.calPoints, index, this.opts.categories, option),
  6811. textList = _getMixToolTipData.textList,
  6812. offset = _getMixToolTipData.offset;
  6813. offset.y = _touches$.y;
  6814. opts.tooltip = {
  6815. textList: textList,
  6816. offset: offset,
  6817. option: option,
  6818. index: index };
  6819. }
  6820. }
  6821. drawCharts.call(this, opts.type, opts, this.config, this.context);
  6822. }
  6823. if (this.opts.type === 'candle') {
  6824. var index = this.getCurrentDataIndex(e);
  6825. if (index > -1) {
  6826. var currentOffset = this.scrollOption.currentOffset;
  6827. var opts = assign({}, this.opts, {
  6828. _scrollDistance_: currentOffset,
  6829. animation: false });
  6830. var seriesData = getSeriesDataItem(this.opts.series, index);
  6831. if (seriesData.length !== 0) {
  6832. var _getToolTipData = getCandleToolTipData(this.opts.series[0].data, seriesData, this.opts.chartData.calPoints,
  6833. index, this.opts.categories, this.opts.extra.candle, option),
  6834. textList = _getToolTipData.textList,
  6835. offset = _getToolTipData.offset;
  6836. offset.y = _touches$.y;
  6837. opts.tooltip = {
  6838. textList: textList,
  6839. offset: offset,
  6840. option: option,
  6841. index: index };
  6842. }
  6843. }
  6844. drawCharts.call(this, opts.type, opts, this.config, this.context);
  6845. }
  6846. if (this.opts.type === 'pie' || this.opts.type === 'ring' || this.opts.type === 'rose' || this.opts.type === 'funnel') {
  6847. var index = this.getCurrentDataIndex(e);
  6848. if (index > -1) {
  6849. var currentOffset = this.scrollOption.currentOffset;
  6850. var opts = assign({}, this.opts, {
  6851. _scrollDistance_: currentOffset,
  6852. animation: false });
  6853. var seriesData = this.opts._series_[index];
  6854. var textList = [{
  6855. text: option.format ? option.format(seriesData) : seriesData.name + ': ' + seriesData.data,
  6856. color: seriesData.color }];
  6857. var offset = {
  6858. x: _touches$.x,
  6859. y: _touches$.y };
  6860. opts.tooltip = {
  6861. textList: textList,
  6862. offset: offset,
  6863. option: option,
  6864. index: index };
  6865. }
  6866. drawCharts.call(this, opts.type, opts, this.config, this.context);
  6867. }
  6868. if (this.opts.type === 'map' || this.opts.type === 'word') {
  6869. var index = this.getCurrentDataIndex(e);
  6870. if (index > -1) {
  6871. var currentOffset = this.scrollOption.currentOffset;
  6872. var opts = assign({}, this.opts, {
  6873. _scrollDistance_: currentOffset,
  6874. animation: false });
  6875. var seriesData = this.opts._series_[index];
  6876. var textList = [{
  6877. text: option.format ? option.format(seriesData) : seriesData.properties.name,
  6878. color: seriesData.color }];
  6879. var offset = {
  6880. x: _touches$.x,
  6881. y: _touches$.y };
  6882. opts.tooltip = {
  6883. textList: textList,
  6884. offset: offset,
  6885. option: option,
  6886. index: index };
  6887. }
  6888. opts.updateData = false;
  6889. drawCharts.call(this, opts.type, opts, this.config, this.context);
  6890. }
  6891. if (this.opts.type === 'radar') {
  6892. var index = this.getCurrentDataIndex(e);
  6893. if (index > -1) {
  6894. var currentOffset = this.scrollOption.currentOffset;
  6895. var opts = assign({}, this.opts, {
  6896. _scrollDistance_: currentOffset,
  6897. animation: false });
  6898. var seriesData = getSeriesDataItem(this.opts.series, index);
  6899. if (seriesData.length !== 0) {
  6900. var textList = seriesData.map(function (item) {
  6901. return {
  6902. text: option.format ? option.format(item) : item.name + ': ' + item.data,
  6903. color: item.color };
  6904. });
  6905. var offset = {
  6906. x: _touches$.x,
  6907. y: _touches$.y };
  6908. opts.tooltip = {
  6909. textList: textList,
  6910. offset: offset,
  6911. option: option,
  6912. index: index };
  6913. }
  6914. }
  6915. drawCharts.call(this, opts.type, opts, this.config, this.context);
  6916. }
  6917. };
  6918. Charts.prototype.translate = function (distance) {
  6919. this.scrollOption = {
  6920. currentOffset: distance,
  6921. startTouchX: distance,
  6922. distance: 0,
  6923. lastMoveTime: 0 };
  6924. var opts = assign({}, this.opts, {
  6925. _scrollDistance_: distance,
  6926. animation: false });
  6927. drawCharts.call(this, this.opts.type, opts, this.config, this.context);
  6928. };
  6929. Charts.prototype.scrollStart = function (e) {
  6930. var touches = null;
  6931. if (e.changedTouches) {
  6932. touches = e.changedTouches[0];
  6933. } else {
  6934. touches = e.mp.changedTouches[0];
  6935. }
  6936. var _touches$ = getTouches(touches, this.opts, e);
  6937. if (touches && this.opts.enableScroll === true) {
  6938. this.scrollOption.startTouchX = _touches$.x;
  6939. }
  6940. };
  6941. Charts.prototype.scroll = function (e) {
  6942. if (this.scrollOption.lastMoveTime === 0) {
  6943. this.scrollOption.lastMoveTime = Date.now();
  6944. }
  6945. var Limit = this.opts.extra.touchMoveLimit || 20;
  6946. var currMoveTime = Date.now();
  6947. var duration = currMoveTime - this.scrollOption.lastMoveTime;
  6948. if (duration < Math.floor(1000 / Limit)) return;
  6949. this.scrollOption.lastMoveTime = currMoveTime;
  6950. var touches = null;
  6951. if (e.changedTouches) {
  6952. touches = e.changedTouches[0];
  6953. } else {
  6954. touches = e.mp.changedTouches[0];
  6955. }
  6956. if (touches && this.opts.enableScroll === true) {
  6957. var _touches$ = getTouches(touches, this.opts, e);
  6958. var _distance;
  6959. _distance = _touches$.x - this.scrollOption.startTouchX;
  6960. var currentOffset = this.scrollOption.currentOffset;
  6961. var validDistance = calValidDistance(currentOffset + _distance, this.opts.chartData, this.config, this.opts);
  6962. this.scrollOption.distance = _distance = validDistance - currentOffset;
  6963. var opts = assign({}, this.opts, {
  6964. _scrollDistance_: currentOffset + _distance,
  6965. animation: false });
  6966. drawCharts.call(this, opts.type, opts, this.config, this.context);
  6967. return currentOffset + _distance;
  6968. }
  6969. };
  6970. Charts.prototype.scrollEnd = function (e) {
  6971. if (this.opts.enableScroll === true) {
  6972. var _scrollOption = this.scrollOption,
  6973. currentOffset = _scrollOption.currentOffset,
  6974. distance = _scrollOption.distance;
  6975. this.scrollOption.currentOffset = currentOffset + distance;
  6976. this.scrollOption.distance = 0;
  6977. }
  6978. };
  6979. if ( true && typeof module.exports === "object") {
  6980. module.exports = Charts;
  6981. //export default Charts;//建议使用nodejs的module导出方式,如报错请使用export方式导出
  6982. }
  6983. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  6984. /***/ }),
  6985. /***/ 2:
  6986. /*!***********************************!*\
  6987. !*** (webpack)/buildin/global.js ***!
  6988. \***********************************/
  6989. /*! no static exports found */
  6990. /***/ (function(module, exports) {
  6991. var g;
  6992. // This works in non-strict mode
  6993. g = (function() {
  6994. return this;
  6995. })();
  6996. try {
  6997. // This works if eval is allowed (see CSP)
  6998. g = g || new Function("return this")();
  6999. } catch (e) {
  7000. // This works if the window reference is available
  7001. if (typeof window === "object") g = window;
  7002. }
  7003. // g can still be undefined, but nothing to do about it...
  7004. // We return undefined, instead of nothing here, so it's
  7005. // easier to handle this case. if(!global) { ...}
  7006. module.exports = g;
  7007. /***/ }),
  7008. /***/ 214:
  7009. /*!********************************************************************************************************************************!*\
  7010. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/uni_modules/uni-popup/components/uni-popup/popup.js ***!
  7011. \********************************************************************************************************************************/
  7012. /*! no static exports found */
  7013. /***/ (function(module, exports, __webpack_require__) {
  7014. "use strict";
  7015. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default =
  7016. {
  7017. data: function data() {
  7018. return {};
  7019. },
  7020. created: function created() {
  7021. this.popup = this.getParent();
  7022. },
  7023. methods: {
  7024. /**
  7025. * 获取父元素实例
  7026. */
  7027. getParent: function getParent() {var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'uniPopup';
  7028. var parent = this.$parent;
  7029. var parentName = parent.$options.name;
  7030. while (parentName !== name) {
  7031. parent = parent.$parent;
  7032. if (!parent) return false;
  7033. parentName = parent.$options.name;
  7034. }
  7035. return parent;
  7036. } } };exports.default = _default;
  7037. /***/ }),
  7038. /***/ 215:
  7039. /*!*************************************************************************************************************************************!*\
  7040. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/uni_modules/uni-popup/components/uni-popup/i18n/index.js ***!
  7041. \*************************************************************************************************************************************/
  7042. /*! no static exports found */
  7043. /***/ (function(module, exports, __webpack_require__) {
  7044. "use strict";
  7045. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 216));
  7046. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 217));
  7047. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 218));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}var _default =
  7048. {
  7049. en: _en.default,
  7050. 'zh-Hans': _zhHans.default,
  7051. 'zh-Hant': _zhHant.default };exports.default = _default;
  7052. /***/ }),
  7053. /***/ 216:
  7054. /*!************************************************************************************************************************************!*\
  7055. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/uni_modules/uni-popup/components/uni-popup/i18n/en.json ***!
  7056. \************************************************************************************************************************************/
  7057. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  7058. /***/ (function(module) {
  7059. module.exports = JSON.parse("{\"uni-popup.cancel\":\"cancel\",\"uni-popup.ok\":\"ok\",\"uni-popup.placeholder\":\"pleace enter\",\"uni-popup.title\":\"Hint\",\"uni-popup.shareTitle\":\"Share to\"}");
  7060. /***/ }),
  7061. /***/ 217:
  7062. /*!*****************************************************************************************************************************************!*\
  7063. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json ***!
  7064. \*****************************************************************************************************************************************/
  7065. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  7066. /***/ (function(module) {
  7067. module.exports = JSON.parse("{\"uni-popup.cancel\":\"取消\",\"uni-popup.ok\":\"确定\",\"uni-popup.placeholder\":\"请输入\",\"uni-popup.title\":\"提示\",\"uni-popup.shareTitle\":\"分享到\"}");
  7068. /***/ }),
  7069. /***/ 218:
  7070. /*!*****************************************************************************************************************************************!*\
  7071. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json ***!
  7072. \*****************************************************************************************************************************************/
  7073. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  7074. /***/ (function(module) {
  7075. module.exports = JSON.parse("{\"uni-popup.cancel\":\"取消\",\"uni-popup.ok\":\"確定\",\"uni-popup.placeholder\":\"請輸入\",\"uni-popup.title\":\"提示\",\"uni-popup.shareTitle\":\"分享到\"}");
  7076. /***/ }),
  7077. /***/ 22:
  7078. /*!**********************************************************!*\
  7079. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  7080. \**********************************************************/
  7081. /*! no static exports found */
  7082. /***/ (function(module, exports, __webpack_require__) {
  7083. module.exports = __webpack_require__(/*! regenerator-runtime */ 23);
  7084. /***/ }),
  7085. /***/ 23:
  7086. /*!************************************************************!*\
  7087. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  7088. \************************************************************/
  7089. /*! no static exports found */
  7090. /***/ (function(module, exports, __webpack_require__) {
  7091. /**
  7092. * Copyright (c) 2014-present, Facebook, Inc.
  7093. *
  7094. * This source code is licensed under the MIT license found in the
  7095. * LICENSE file in the root directory of this source tree.
  7096. */
  7097. // This method of obtaining a reference to the global object needs to be
  7098. // kept identical to the way it is obtained in runtime.js
  7099. var g = (function() {
  7100. return this || (typeof self === "object" && self);
  7101. })() || Function("return this")();
  7102. // Use `getOwnPropertyNames` because not all browsers support calling
  7103. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  7104. var hadRuntime = g.regeneratorRuntime &&
  7105. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  7106. // Save the old regeneratorRuntime in case it needs to be restored later.
  7107. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  7108. // Force reevalutation of runtime.js.
  7109. g.regeneratorRuntime = undefined;
  7110. module.exports = __webpack_require__(/*! ./runtime */ 24);
  7111. if (hadRuntime) {
  7112. // Restore the original runtime.
  7113. g.regeneratorRuntime = oldRuntime;
  7114. } else {
  7115. // Remove the global property added by runtime.js.
  7116. try {
  7117. delete g.regeneratorRuntime;
  7118. } catch(e) {
  7119. g.regeneratorRuntime = undefined;
  7120. }
  7121. }
  7122. /***/ }),
  7123. /***/ 233:
  7124. /*!****************************************************************************************************************************************************!*\
  7125. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/uni_modules/uni-transition/components/uni-transition/createAnimation.js ***!
  7126. \****************************************************************************************************************************************************/
  7127. /*! no static exports found */
  7128. /***/ (function(module, exports, __webpack_require__) {
  7129. "use strict";
  7130. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.createAnimation = createAnimation;function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;} // const defaultOption = {
  7131. // duration: 300,
  7132. // timingFunction: 'linear',
  7133. // delay: 0,
  7134. // transformOrigin: '50% 50% 0'
  7135. // }
  7136. var
  7137. MPAnimation = /*#__PURE__*/function () {
  7138. function MPAnimation(options, _this) {_classCallCheck(this, MPAnimation);
  7139. this.options = options;
  7140. this.animation = uni.createAnimation(options);
  7141. this.currentStepAnimates = {};
  7142. this.next = 0;
  7143. this.$ = _this;
  7144. }_createClass(MPAnimation, [{ key: "_nvuePushAnimates", value: function _nvuePushAnimates(
  7145. type, args) {
  7146. var aniObj = this.currentStepAnimates[this.next];
  7147. var styles = {};
  7148. if (!aniObj) {
  7149. styles = {
  7150. styles: {},
  7151. config: {} };
  7152. } else {
  7153. styles = aniObj;
  7154. }
  7155. if (animateTypes1.includes(type)) {
  7156. if (!styles.styles.transform) {
  7157. styles.styles.transform = '';
  7158. }
  7159. var unit = '';
  7160. if (type === 'rotate') {
  7161. unit = 'deg';
  7162. }
  7163. styles.styles.transform += "".concat(type, "(").concat(args + unit, ") ");
  7164. } else {
  7165. styles.styles[type] = "".concat(args);
  7166. }
  7167. this.currentStepAnimates[this.next] = styles;
  7168. } }, { key: "_animateRun", value: function _animateRun()
  7169. {var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  7170. var ref = this.$.$refs['ani'].ref;
  7171. if (!ref) return;
  7172. return new Promise(function (resolve, reject) {
  7173. nvueAnimation.transition(ref, _objectSpread({
  7174. styles: styles },
  7175. config),
  7176. function (res) {
  7177. resolve();
  7178. });
  7179. });
  7180. } }, { key: "_nvueNextAnimate", value: function _nvueNextAnimate(
  7181. animates) {var _this2 = this;var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;var fn = arguments.length > 2 ? arguments[2] : undefined;
  7182. var obj = animates[step];
  7183. if (obj) {var
  7184. styles =
  7185. obj.styles,config = obj.config;
  7186. this._animateRun(styles, config).then(function () {
  7187. step += 1;
  7188. _this2._nvueNextAnimate(animates, step, fn);
  7189. });
  7190. } else {
  7191. this.currentStepAnimates = {};
  7192. typeof fn === 'function' && fn();
  7193. this.isEnd = true;
  7194. }
  7195. } }, { key: "step", value: function step()
  7196. {var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  7197. this.animation.step(config);
  7198. return this;
  7199. } }, { key: "run", value: function run(
  7200. fn) {
  7201. this.$.animationData = this.animation.export();
  7202. this.$.timer = setTimeout(function () {
  7203. typeof fn === 'function' && fn();
  7204. }, this.$.durationTime);
  7205. } }]);return MPAnimation;}();
  7206. var animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d',
  7207. 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY',
  7208. 'translateZ'];
  7209. var animateTypes2 = ['opacity', 'backgroundColor'];
  7210. var animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'];
  7211. animateTypes1.concat(animateTypes2, animateTypes3).forEach(function (type) {
  7212. MPAnimation.prototype[type] = function () {var _this$animation;
  7213. (_this$animation = this.animation)[type].apply(_this$animation, arguments);
  7214. return this;
  7215. };
  7216. });
  7217. function createAnimation(option, _this) {
  7218. if (!_this) return;
  7219. clearTimeout(_this.timer);
  7220. return new MPAnimation(option, _this);
  7221. }
  7222. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  7223. /***/ }),
  7224. /***/ 24:
  7225. /*!*****************************************************!*\
  7226. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  7227. \*****************************************************/
  7228. /*! no static exports found */
  7229. /***/ (function(module, exports) {
  7230. /**
  7231. * Copyright (c) 2014-present, Facebook, Inc.
  7232. *
  7233. * This source code is licensed under the MIT license found in the
  7234. * LICENSE file in the root directory of this source tree.
  7235. */
  7236. !(function(global) {
  7237. "use strict";
  7238. var Op = Object.prototype;
  7239. var hasOwn = Op.hasOwnProperty;
  7240. var undefined; // More compressible than void 0.
  7241. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  7242. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  7243. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  7244. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  7245. var inModule = typeof module === "object";
  7246. var runtime = global.regeneratorRuntime;
  7247. if (runtime) {
  7248. if (inModule) {
  7249. // If regeneratorRuntime is defined globally and we're in a module,
  7250. // make the exports object identical to regeneratorRuntime.
  7251. module.exports = runtime;
  7252. }
  7253. // Don't bother evaluating the rest of this file if the runtime was
  7254. // already defined globally.
  7255. return;
  7256. }
  7257. // Define the runtime globally (as expected by generated code) as either
  7258. // module.exports (if we're in a module) or a new, empty object.
  7259. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  7260. function wrap(innerFn, outerFn, self, tryLocsList) {
  7261. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  7262. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  7263. var generator = Object.create(protoGenerator.prototype);
  7264. var context = new Context(tryLocsList || []);
  7265. // The ._invoke method unifies the implementations of the .next,
  7266. // .throw, and .return methods.
  7267. generator._invoke = makeInvokeMethod(innerFn, self, context);
  7268. return generator;
  7269. }
  7270. runtime.wrap = wrap;
  7271. // Try/catch helper to minimize deoptimizations. Returns a completion
  7272. // record like context.tryEntries[i].completion. This interface could
  7273. // have been (and was previously) designed to take a closure to be
  7274. // invoked without arguments, but in all the cases we care about we
  7275. // already have an existing method we want to call, so there's no need
  7276. // to create a new function object. We can even get away with assuming
  7277. // the method takes exactly one argument, since that happens to be true
  7278. // in every case, so we don't have to touch the arguments object. The
  7279. // only additional allocation required is the completion record, which
  7280. // has a stable shape and so hopefully should be cheap to allocate.
  7281. function tryCatch(fn, obj, arg) {
  7282. try {
  7283. return { type: "normal", arg: fn.call(obj, arg) };
  7284. } catch (err) {
  7285. return { type: "throw", arg: err };
  7286. }
  7287. }
  7288. var GenStateSuspendedStart = "suspendedStart";
  7289. var GenStateSuspendedYield = "suspendedYield";
  7290. var GenStateExecuting = "executing";
  7291. var GenStateCompleted = "completed";
  7292. // Returning this object from the innerFn has the same effect as
  7293. // breaking out of the dispatch switch statement.
  7294. var ContinueSentinel = {};
  7295. // Dummy constructor functions that we use as the .constructor and
  7296. // .constructor.prototype properties for functions that return Generator
  7297. // objects. For full spec compliance, you may wish to configure your
  7298. // minifier not to mangle the names of these two functions.
  7299. function Generator() {}
  7300. function GeneratorFunction() {}
  7301. function GeneratorFunctionPrototype() {}
  7302. // This is a polyfill for %IteratorPrototype% for environments that
  7303. // don't natively support it.
  7304. var IteratorPrototype = {};
  7305. IteratorPrototype[iteratorSymbol] = function () {
  7306. return this;
  7307. };
  7308. var getProto = Object.getPrototypeOf;
  7309. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  7310. if (NativeIteratorPrototype &&
  7311. NativeIteratorPrototype !== Op &&
  7312. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  7313. // This environment has a native %IteratorPrototype%; use it instead
  7314. // of the polyfill.
  7315. IteratorPrototype = NativeIteratorPrototype;
  7316. }
  7317. var Gp = GeneratorFunctionPrototype.prototype =
  7318. Generator.prototype = Object.create(IteratorPrototype);
  7319. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  7320. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  7321. GeneratorFunctionPrototype[toStringTagSymbol] =
  7322. GeneratorFunction.displayName = "GeneratorFunction";
  7323. // Helper for defining the .next, .throw, and .return methods of the
  7324. // Iterator interface in terms of a single ._invoke method.
  7325. function defineIteratorMethods(prototype) {
  7326. ["next", "throw", "return"].forEach(function(method) {
  7327. prototype[method] = function(arg) {
  7328. return this._invoke(method, arg);
  7329. };
  7330. });
  7331. }
  7332. runtime.isGeneratorFunction = function(genFun) {
  7333. var ctor = typeof genFun === "function" && genFun.constructor;
  7334. return ctor
  7335. ? ctor === GeneratorFunction ||
  7336. // For the native GeneratorFunction constructor, the best we can
  7337. // do is to check its .name property.
  7338. (ctor.displayName || ctor.name) === "GeneratorFunction"
  7339. : false;
  7340. };
  7341. runtime.mark = function(genFun) {
  7342. if (Object.setPrototypeOf) {
  7343. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  7344. } else {
  7345. genFun.__proto__ = GeneratorFunctionPrototype;
  7346. if (!(toStringTagSymbol in genFun)) {
  7347. genFun[toStringTagSymbol] = "GeneratorFunction";
  7348. }
  7349. }
  7350. genFun.prototype = Object.create(Gp);
  7351. return genFun;
  7352. };
  7353. // Within the body of any async function, `await x` is transformed to
  7354. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  7355. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  7356. // meant to be awaited.
  7357. runtime.awrap = function(arg) {
  7358. return { __await: arg };
  7359. };
  7360. function AsyncIterator(generator) {
  7361. function invoke(method, arg, resolve, reject) {
  7362. var record = tryCatch(generator[method], generator, arg);
  7363. if (record.type === "throw") {
  7364. reject(record.arg);
  7365. } else {
  7366. var result = record.arg;
  7367. var value = result.value;
  7368. if (value &&
  7369. typeof value === "object" &&
  7370. hasOwn.call(value, "__await")) {
  7371. return Promise.resolve(value.__await).then(function(value) {
  7372. invoke("next", value, resolve, reject);
  7373. }, function(err) {
  7374. invoke("throw", err, resolve, reject);
  7375. });
  7376. }
  7377. return Promise.resolve(value).then(function(unwrapped) {
  7378. // When a yielded Promise is resolved, its final value becomes
  7379. // the .value of the Promise<{value,done}> result for the
  7380. // current iteration.
  7381. result.value = unwrapped;
  7382. resolve(result);
  7383. }, function(error) {
  7384. // If a rejected Promise was yielded, throw the rejection back
  7385. // into the async generator function so it can be handled there.
  7386. return invoke("throw", error, resolve, reject);
  7387. });
  7388. }
  7389. }
  7390. var previousPromise;
  7391. function enqueue(method, arg) {
  7392. function callInvokeWithMethodAndArg() {
  7393. return new Promise(function(resolve, reject) {
  7394. invoke(method, arg, resolve, reject);
  7395. });
  7396. }
  7397. return previousPromise =
  7398. // If enqueue has been called before, then we want to wait until
  7399. // all previous Promises have been resolved before calling invoke,
  7400. // so that results are always delivered in the correct order. If
  7401. // enqueue has not been called before, then it is important to
  7402. // call invoke immediately, without waiting on a callback to fire,
  7403. // so that the async generator function has the opportunity to do
  7404. // any necessary setup in a predictable way. This predictability
  7405. // is why the Promise constructor synchronously invokes its
  7406. // executor callback, and why async functions synchronously
  7407. // execute code before the first await. Since we implement simple
  7408. // async functions in terms of async generators, it is especially
  7409. // important to get this right, even though it requires care.
  7410. previousPromise ? previousPromise.then(
  7411. callInvokeWithMethodAndArg,
  7412. // Avoid propagating failures to Promises returned by later
  7413. // invocations of the iterator.
  7414. callInvokeWithMethodAndArg
  7415. ) : callInvokeWithMethodAndArg();
  7416. }
  7417. // Define the unified helper method that is used to implement .next,
  7418. // .throw, and .return (see defineIteratorMethods).
  7419. this._invoke = enqueue;
  7420. }
  7421. defineIteratorMethods(AsyncIterator.prototype);
  7422. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  7423. return this;
  7424. };
  7425. runtime.AsyncIterator = AsyncIterator;
  7426. // Note that simple async functions are implemented on top of
  7427. // AsyncIterator objects; they just return a Promise for the value of
  7428. // the final result produced by the iterator.
  7429. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  7430. var iter = new AsyncIterator(
  7431. wrap(innerFn, outerFn, self, tryLocsList)
  7432. );
  7433. return runtime.isGeneratorFunction(outerFn)
  7434. ? iter // If outerFn is a generator, return the full iterator.
  7435. : iter.next().then(function(result) {
  7436. return result.done ? result.value : iter.next();
  7437. });
  7438. };
  7439. function makeInvokeMethod(innerFn, self, context) {
  7440. var state = GenStateSuspendedStart;
  7441. return function invoke(method, arg) {
  7442. if (state === GenStateExecuting) {
  7443. throw new Error("Generator is already running");
  7444. }
  7445. if (state === GenStateCompleted) {
  7446. if (method === "throw") {
  7447. throw arg;
  7448. }
  7449. // Be forgiving, per 25.3.3.3.3 of the spec:
  7450. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  7451. return doneResult();
  7452. }
  7453. context.method = method;
  7454. context.arg = arg;
  7455. while (true) {
  7456. var delegate = context.delegate;
  7457. if (delegate) {
  7458. var delegateResult = maybeInvokeDelegate(delegate, context);
  7459. if (delegateResult) {
  7460. if (delegateResult === ContinueSentinel) continue;
  7461. return delegateResult;
  7462. }
  7463. }
  7464. if (context.method === "next") {
  7465. // Setting context._sent for legacy support of Babel's
  7466. // function.sent implementation.
  7467. context.sent = context._sent = context.arg;
  7468. } else if (context.method === "throw") {
  7469. if (state === GenStateSuspendedStart) {
  7470. state = GenStateCompleted;
  7471. throw context.arg;
  7472. }
  7473. context.dispatchException(context.arg);
  7474. } else if (context.method === "return") {
  7475. context.abrupt("return", context.arg);
  7476. }
  7477. state = GenStateExecuting;
  7478. var record = tryCatch(innerFn, self, context);
  7479. if (record.type === "normal") {
  7480. // If an exception is thrown from innerFn, we leave state ===
  7481. // GenStateExecuting and loop back for another invocation.
  7482. state = context.done
  7483. ? GenStateCompleted
  7484. : GenStateSuspendedYield;
  7485. if (record.arg === ContinueSentinel) {
  7486. continue;
  7487. }
  7488. return {
  7489. value: record.arg,
  7490. done: context.done
  7491. };
  7492. } else if (record.type === "throw") {
  7493. state = GenStateCompleted;
  7494. // Dispatch the exception by looping back around to the
  7495. // context.dispatchException(context.arg) call above.
  7496. context.method = "throw";
  7497. context.arg = record.arg;
  7498. }
  7499. }
  7500. };
  7501. }
  7502. // Call delegate.iterator[context.method](context.arg) and handle the
  7503. // result, either by returning a { value, done } result from the
  7504. // delegate iterator, or by modifying context.method and context.arg,
  7505. // setting context.delegate to null, and returning the ContinueSentinel.
  7506. function maybeInvokeDelegate(delegate, context) {
  7507. var method = delegate.iterator[context.method];
  7508. if (method === undefined) {
  7509. // A .throw or .return when the delegate iterator has no .throw
  7510. // method always terminates the yield* loop.
  7511. context.delegate = null;
  7512. if (context.method === "throw") {
  7513. if (delegate.iterator.return) {
  7514. // If the delegate iterator has a return method, give it a
  7515. // chance to clean up.
  7516. context.method = "return";
  7517. context.arg = undefined;
  7518. maybeInvokeDelegate(delegate, context);
  7519. if (context.method === "throw") {
  7520. // If maybeInvokeDelegate(context) changed context.method from
  7521. // "return" to "throw", let that override the TypeError below.
  7522. return ContinueSentinel;
  7523. }
  7524. }
  7525. context.method = "throw";
  7526. context.arg = new TypeError(
  7527. "The iterator does not provide a 'throw' method");
  7528. }
  7529. return ContinueSentinel;
  7530. }
  7531. var record = tryCatch(method, delegate.iterator, context.arg);
  7532. if (record.type === "throw") {
  7533. context.method = "throw";
  7534. context.arg = record.arg;
  7535. context.delegate = null;
  7536. return ContinueSentinel;
  7537. }
  7538. var info = record.arg;
  7539. if (! info) {
  7540. context.method = "throw";
  7541. context.arg = new TypeError("iterator result is not an object");
  7542. context.delegate = null;
  7543. return ContinueSentinel;
  7544. }
  7545. if (info.done) {
  7546. // Assign the result of the finished delegate to the temporary
  7547. // variable specified by delegate.resultName (see delegateYield).
  7548. context[delegate.resultName] = info.value;
  7549. // Resume execution at the desired location (see delegateYield).
  7550. context.next = delegate.nextLoc;
  7551. // If context.method was "throw" but the delegate handled the
  7552. // exception, let the outer generator proceed normally. If
  7553. // context.method was "next", forget context.arg since it has been
  7554. // "consumed" by the delegate iterator. If context.method was
  7555. // "return", allow the original .return call to continue in the
  7556. // outer generator.
  7557. if (context.method !== "return") {
  7558. context.method = "next";
  7559. context.arg = undefined;
  7560. }
  7561. } else {
  7562. // Re-yield the result returned by the delegate method.
  7563. return info;
  7564. }
  7565. // The delegate iterator is finished, so forget it and continue with
  7566. // the outer generator.
  7567. context.delegate = null;
  7568. return ContinueSentinel;
  7569. }
  7570. // Define Generator.prototype.{next,throw,return} in terms of the
  7571. // unified ._invoke helper method.
  7572. defineIteratorMethods(Gp);
  7573. Gp[toStringTagSymbol] = "Generator";
  7574. // A Generator should always return itself as the iterator object when the
  7575. // @@iterator function is called on it. Some browsers' implementations of the
  7576. // iterator prototype chain incorrectly implement this, causing the Generator
  7577. // object to not be returned from this call. This ensures that doesn't happen.
  7578. // See https://github.com/facebook/regenerator/issues/274 for more details.
  7579. Gp[iteratorSymbol] = function() {
  7580. return this;
  7581. };
  7582. Gp.toString = function() {
  7583. return "[object Generator]";
  7584. };
  7585. function pushTryEntry(locs) {
  7586. var entry = { tryLoc: locs[0] };
  7587. if (1 in locs) {
  7588. entry.catchLoc = locs[1];
  7589. }
  7590. if (2 in locs) {
  7591. entry.finallyLoc = locs[2];
  7592. entry.afterLoc = locs[3];
  7593. }
  7594. this.tryEntries.push(entry);
  7595. }
  7596. function resetTryEntry(entry) {
  7597. var record = entry.completion || {};
  7598. record.type = "normal";
  7599. delete record.arg;
  7600. entry.completion = record;
  7601. }
  7602. function Context(tryLocsList) {
  7603. // The root entry object (effectively a try statement without a catch
  7604. // or a finally block) gives us a place to store values thrown from
  7605. // locations where there is no enclosing try statement.
  7606. this.tryEntries = [{ tryLoc: "root" }];
  7607. tryLocsList.forEach(pushTryEntry, this);
  7608. this.reset(true);
  7609. }
  7610. runtime.keys = function(object) {
  7611. var keys = [];
  7612. for (var key in object) {
  7613. keys.push(key);
  7614. }
  7615. keys.reverse();
  7616. // Rather than returning an object with a next method, we keep
  7617. // things simple and return the next function itself.
  7618. return function next() {
  7619. while (keys.length) {
  7620. var key = keys.pop();
  7621. if (key in object) {
  7622. next.value = key;
  7623. next.done = false;
  7624. return next;
  7625. }
  7626. }
  7627. // To avoid creating an additional object, we just hang the .value
  7628. // and .done properties off the next function object itself. This
  7629. // also ensures that the minifier will not anonymize the function.
  7630. next.done = true;
  7631. return next;
  7632. };
  7633. };
  7634. function values(iterable) {
  7635. if (iterable) {
  7636. var iteratorMethod = iterable[iteratorSymbol];
  7637. if (iteratorMethod) {
  7638. return iteratorMethod.call(iterable);
  7639. }
  7640. if (typeof iterable.next === "function") {
  7641. return iterable;
  7642. }
  7643. if (!isNaN(iterable.length)) {
  7644. var i = -1, next = function next() {
  7645. while (++i < iterable.length) {
  7646. if (hasOwn.call(iterable, i)) {
  7647. next.value = iterable[i];
  7648. next.done = false;
  7649. return next;
  7650. }
  7651. }
  7652. next.value = undefined;
  7653. next.done = true;
  7654. return next;
  7655. };
  7656. return next.next = next;
  7657. }
  7658. }
  7659. // Return an iterator with no values.
  7660. return { next: doneResult };
  7661. }
  7662. runtime.values = values;
  7663. function doneResult() {
  7664. return { value: undefined, done: true };
  7665. }
  7666. Context.prototype = {
  7667. constructor: Context,
  7668. reset: function(skipTempReset) {
  7669. this.prev = 0;
  7670. this.next = 0;
  7671. // Resetting context._sent for legacy support of Babel's
  7672. // function.sent implementation.
  7673. this.sent = this._sent = undefined;
  7674. this.done = false;
  7675. this.delegate = null;
  7676. this.method = "next";
  7677. this.arg = undefined;
  7678. this.tryEntries.forEach(resetTryEntry);
  7679. if (!skipTempReset) {
  7680. for (var name in this) {
  7681. // Not sure about the optimal order of these conditions:
  7682. if (name.charAt(0) === "t" &&
  7683. hasOwn.call(this, name) &&
  7684. !isNaN(+name.slice(1))) {
  7685. this[name] = undefined;
  7686. }
  7687. }
  7688. }
  7689. },
  7690. stop: function() {
  7691. this.done = true;
  7692. var rootEntry = this.tryEntries[0];
  7693. var rootRecord = rootEntry.completion;
  7694. if (rootRecord.type === "throw") {
  7695. throw rootRecord.arg;
  7696. }
  7697. return this.rval;
  7698. },
  7699. dispatchException: function(exception) {
  7700. if (this.done) {
  7701. throw exception;
  7702. }
  7703. var context = this;
  7704. function handle(loc, caught) {
  7705. record.type = "throw";
  7706. record.arg = exception;
  7707. context.next = loc;
  7708. if (caught) {
  7709. // If the dispatched exception was caught by a catch block,
  7710. // then let that catch block handle the exception normally.
  7711. context.method = "next";
  7712. context.arg = undefined;
  7713. }
  7714. return !! caught;
  7715. }
  7716. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  7717. var entry = this.tryEntries[i];
  7718. var record = entry.completion;
  7719. if (entry.tryLoc === "root") {
  7720. // Exception thrown outside of any try block that could handle
  7721. // it, so set the completion value of the entire function to
  7722. // throw the exception.
  7723. return handle("end");
  7724. }
  7725. if (entry.tryLoc <= this.prev) {
  7726. var hasCatch = hasOwn.call(entry, "catchLoc");
  7727. var hasFinally = hasOwn.call(entry, "finallyLoc");
  7728. if (hasCatch && hasFinally) {
  7729. if (this.prev < entry.catchLoc) {
  7730. return handle(entry.catchLoc, true);
  7731. } else if (this.prev < entry.finallyLoc) {
  7732. return handle(entry.finallyLoc);
  7733. }
  7734. } else if (hasCatch) {
  7735. if (this.prev < entry.catchLoc) {
  7736. return handle(entry.catchLoc, true);
  7737. }
  7738. } else if (hasFinally) {
  7739. if (this.prev < entry.finallyLoc) {
  7740. return handle(entry.finallyLoc);
  7741. }
  7742. } else {
  7743. throw new Error("try statement without catch or finally");
  7744. }
  7745. }
  7746. }
  7747. },
  7748. abrupt: function(type, arg) {
  7749. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  7750. var entry = this.tryEntries[i];
  7751. if (entry.tryLoc <= this.prev &&
  7752. hasOwn.call(entry, "finallyLoc") &&
  7753. this.prev < entry.finallyLoc) {
  7754. var finallyEntry = entry;
  7755. break;
  7756. }
  7757. }
  7758. if (finallyEntry &&
  7759. (type === "break" ||
  7760. type === "continue") &&
  7761. finallyEntry.tryLoc <= arg &&
  7762. arg <= finallyEntry.finallyLoc) {
  7763. // Ignore the finally entry if control is not jumping to a
  7764. // location outside the try/catch block.
  7765. finallyEntry = null;
  7766. }
  7767. var record = finallyEntry ? finallyEntry.completion : {};
  7768. record.type = type;
  7769. record.arg = arg;
  7770. if (finallyEntry) {
  7771. this.method = "next";
  7772. this.next = finallyEntry.finallyLoc;
  7773. return ContinueSentinel;
  7774. }
  7775. return this.complete(record);
  7776. },
  7777. complete: function(record, afterLoc) {
  7778. if (record.type === "throw") {
  7779. throw record.arg;
  7780. }
  7781. if (record.type === "break" ||
  7782. record.type === "continue") {
  7783. this.next = record.arg;
  7784. } else if (record.type === "return") {
  7785. this.rval = this.arg = record.arg;
  7786. this.method = "return";
  7787. this.next = "end";
  7788. } else if (record.type === "normal" && afterLoc) {
  7789. this.next = afterLoc;
  7790. }
  7791. return ContinueSentinel;
  7792. },
  7793. finish: function(finallyLoc) {
  7794. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  7795. var entry = this.tryEntries[i];
  7796. if (entry.finallyLoc === finallyLoc) {
  7797. this.complete(entry.completion, entry.afterLoc);
  7798. resetTryEntry(entry);
  7799. return ContinueSentinel;
  7800. }
  7801. }
  7802. },
  7803. "catch": function(tryLoc) {
  7804. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  7805. var entry = this.tryEntries[i];
  7806. if (entry.tryLoc === tryLoc) {
  7807. var record = entry.completion;
  7808. if (record.type === "throw") {
  7809. var thrown = record.arg;
  7810. resetTryEntry(entry);
  7811. }
  7812. return thrown;
  7813. }
  7814. }
  7815. // The context.catch method must only be called with a location
  7816. // argument that corresponds to a known catch block.
  7817. throw new Error("illegal catch attempt");
  7818. },
  7819. delegateYield: function(iterable, resultName, nextLoc) {
  7820. this.delegate = {
  7821. iterator: values(iterable),
  7822. resultName: resultName,
  7823. nextLoc: nextLoc
  7824. };
  7825. if (this.method === "next") {
  7826. // Deliberately forget the last sent value so that we don't
  7827. // accidentally pass it on to the delegate.
  7828. this.arg = undefined;
  7829. }
  7830. return ContinueSentinel;
  7831. }
  7832. };
  7833. })(
  7834. // In sloppy mode, unbound `this` refers to the global object, fallback to
  7835. // Function constructor if we're in global strict mode. That is sadly a form
  7836. // of indirect eval which violates Content Security Policy.
  7837. (function() {
  7838. return this || (typeof self === "object" && self);
  7839. })() || Function("return this")()
  7840. );
  7841. /***/ }),
  7842. /***/ 3:
  7843. /*!*************************************************************!*\
  7844. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  7845. \*************************************************************/
  7846. /*! no static exports found */
  7847. /***/ (function(module, exports, __webpack_require__) {
  7848. "use strict";
  7849. /* WEBPACK VAR INJECTION */(function(uni, global) {Object.defineProperty(exports, "__esModule", { value: true });exports.compileI18nJsonStr = compileI18nJsonStr;exports.hasI18nJson = hasI18nJson;exports.initVueI18n = initVueI18n;exports.isI18nStr = isI18nStr;exports.normalizeLocale = normalizeLocale;exports.parseI18nJson = parseI18nJson;exports.resolveLocale = resolveLocale;exports.isString = exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}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);}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;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var isArray = Array.isArray;
  7850. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  7851. var defaultDelimiters = ['{', '}'];var
  7852. BaseFormatter = /*#__PURE__*/function () {
  7853. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  7854. this._caches = Object.create(null);
  7855. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  7856. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  7857. if (!values) {
  7858. return [message];
  7859. }
  7860. var tokens = this._caches[message];
  7861. if (!tokens) {
  7862. tokens = parse(message, delimiters);
  7863. this._caches[message] = tokens;
  7864. }
  7865. return compile(tokens, values);
  7866. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  7867. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  7868. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  7869. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  7870. var tokens = [];
  7871. var position = 0;
  7872. var text = '';
  7873. while (position < format.length) {
  7874. var char = format[position++];
  7875. if (char === startDelimiter) {
  7876. if (text) {
  7877. tokens.push({ type: 'text', value: text });
  7878. }
  7879. text = '';
  7880. var sub = '';
  7881. char = format[position++];
  7882. while (char !== undefined && char !== endDelimiter) {
  7883. sub += char;
  7884. char = format[position++];
  7885. }
  7886. var isClosed = char === endDelimiter;
  7887. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  7888. 'list' :
  7889. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  7890. 'named' :
  7891. 'unknown';
  7892. tokens.push({ value: sub, type: type });
  7893. }
  7894. // else if (char === '%') {
  7895. // // when found rails i18n syntax, skip text capture
  7896. // if (format[position] !== '{') {
  7897. // text += char
  7898. // }
  7899. // }
  7900. else {
  7901. text += char;
  7902. }
  7903. }
  7904. text && tokens.push({ type: 'text', value: text });
  7905. return tokens;
  7906. }
  7907. function compile(tokens, values) {
  7908. var compiled = [];
  7909. var index = 0;
  7910. var mode = isArray(values) ?
  7911. 'list' :
  7912. isObject(values) ?
  7913. 'named' :
  7914. 'unknown';
  7915. if (mode === 'unknown') {
  7916. return compiled;
  7917. }
  7918. while (index < tokens.length) {
  7919. var token = tokens[index];
  7920. switch (token.type) {
  7921. case 'text':
  7922. compiled.push(token.value);
  7923. break;
  7924. case 'list':
  7925. compiled.push(values[parseInt(token.value, 10)]);
  7926. break;
  7927. case 'named':
  7928. if (mode === 'named') {
  7929. compiled.push(values[token.value]);
  7930. } else
  7931. {
  7932. if (true) {
  7933. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  7934. }
  7935. }
  7936. break;
  7937. case 'unknown':
  7938. if (true) {
  7939. console.warn("Detect 'unknown' type of token!");
  7940. }
  7941. break;}
  7942. index++;
  7943. }
  7944. return compiled;
  7945. }
  7946. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  7947. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  7948. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  7949. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  7950. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  7951. var hasOwnProperty = Object.prototype.hasOwnProperty;
  7952. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  7953. var defaultFormatter = new BaseFormatter();
  7954. function include(str, parts) {
  7955. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  7956. }
  7957. function startsWith(str, parts) {
  7958. return parts.find(function (part) {return str.indexOf(part) === 0;});
  7959. }
  7960. function normalizeLocale(locale, messages) {
  7961. if (!locale) {
  7962. return;
  7963. }
  7964. locale = locale.trim().replace(/_/g, '-');
  7965. if (messages && messages[locale]) {
  7966. return locale;
  7967. }
  7968. locale = locale.toLowerCase();
  7969. if (locale.indexOf('zh') === 0) {
  7970. if (locale.indexOf('-hans') > -1) {
  7971. return LOCALE_ZH_HANS;
  7972. }
  7973. if (locale.indexOf('-hant') > -1) {
  7974. return LOCALE_ZH_HANT;
  7975. }
  7976. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  7977. return LOCALE_ZH_HANT;
  7978. }
  7979. return LOCALE_ZH_HANS;
  7980. }
  7981. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  7982. if (lang) {
  7983. return lang;
  7984. }
  7985. }var
  7986. I18n = /*#__PURE__*/function () {
  7987. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  7988. this.locale = LOCALE_EN;
  7989. this.fallbackLocale = LOCALE_EN;
  7990. this.message = {};
  7991. this.messages = {};
  7992. this.watchers = [];
  7993. if (fallbackLocale) {
  7994. this.fallbackLocale = fallbackLocale;
  7995. }
  7996. this.formater = formater || defaultFormatter;
  7997. this.messages = messages || {};
  7998. this.setLocale(locale || LOCALE_EN);
  7999. if (watcher) {
  8000. this.watchLocale(watcher);
  8001. }
  8002. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  8003. locale) {var _this = this;
  8004. var oldLocale = this.locale;
  8005. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  8006. if (!this.messages[this.locale]) {
  8007. // 可能初始化时不存在
  8008. this.messages[this.locale] = {};
  8009. }
  8010. this.message = this.messages[this.locale];
  8011. // 仅发生变化时,通知
  8012. if (oldLocale !== this.locale) {
  8013. this.watchers.forEach(function (watcher) {
  8014. watcher(_this.locale, oldLocale);
  8015. });
  8016. }
  8017. } }, { key: "getLocale", value: function getLocale()
  8018. {
  8019. return this.locale;
  8020. } }, { key: "watchLocale", value: function watchLocale(
  8021. fn) {var _this2 = this;
  8022. var index = this.watchers.push(fn) - 1;
  8023. return function () {
  8024. _this2.watchers.splice(index, 1);
  8025. };
  8026. } }, { key: "add", value: function add(
  8027. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  8028. var curMessages = this.messages[locale];
  8029. if (curMessages) {
  8030. if (override) {
  8031. Object.assign(curMessages, message);
  8032. } else
  8033. {
  8034. Object.keys(message).forEach(function (key) {
  8035. if (!hasOwn(curMessages, key)) {
  8036. curMessages[key] = message[key];
  8037. }
  8038. });
  8039. }
  8040. } else
  8041. {
  8042. this.messages[locale] = message;
  8043. }
  8044. } }, { key: "f", value: function f(
  8045. message, values, delimiters) {
  8046. return this.formater.interpolate(message, values, delimiters).join('');
  8047. } }, { key: "t", value: function t(
  8048. key, locale, values) {
  8049. var message = this.message;
  8050. if (typeof locale === 'string') {
  8051. locale = normalizeLocale(locale, this.messages);
  8052. locale && (message = this.messages[locale]);
  8053. } else
  8054. {
  8055. values = locale;
  8056. }
  8057. if (!hasOwn(message, key)) {
  8058. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  8059. return key;
  8060. }
  8061. return this.formater.interpolate(message[key], values).join('');
  8062. } }]);return I18n;}();exports.I18n = I18n;
  8063. function watchAppLocale(appVm, i18n) {
  8064. // 需要保证 watch 的触发在组件渲染之前
  8065. if (appVm.$watchLocale) {
  8066. // vue2
  8067. appVm.$watchLocale(function (newLocale) {
  8068. i18n.setLocale(newLocale);
  8069. });
  8070. } else
  8071. {
  8072. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  8073. i18n.setLocale(newLocale);
  8074. });
  8075. }
  8076. }
  8077. function getDefaultLocale() {
  8078. if (typeof uni !== 'undefined' && uni.getLocale) {
  8079. return uni.getLocale();
  8080. }
  8081. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  8082. if (typeof global !== 'undefined' && global.getLocale) {
  8083. return global.getLocale();
  8084. }
  8085. return LOCALE_EN;
  8086. }
  8087. function initVueI18n(locale) {var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;var watcher = arguments.length > 3 ? arguments[3] : undefined;
  8088. // 兼容旧版本入参
  8089. if (typeof locale !== 'string') {var _ref4 =
  8090. [
  8091. messages,
  8092. locale];locale = _ref4[0];messages = _ref4[1];
  8093. }
  8094. if (typeof locale !== 'string') {
  8095. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  8096. locale = getDefaultLocale();
  8097. }
  8098. if (typeof fallbackLocale !== 'string') {
  8099. fallbackLocale =
  8100. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  8101. LOCALE_EN;
  8102. }
  8103. var i18n = new I18n({
  8104. locale: locale,
  8105. fallbackLocale: fallbackLocale,
  8106. messages: messages,
  8107. watcher: watcher });
  8108. var _t = function t(key, values) {
  8109. if (typeof getApp !== 'function') {
  8110. // app view
  8111. /* eslint-disable no-func-assign */
  8112. _t = function t(key, values) {
  8113. return i18n.t(key, values);
  8114. };
  8115. } else
  8116. {
  8117. var isWatchedAppLocale = false;
  8118. _t = function t(key, values) {
  8119. var appVm = getApp().$vm;
  8120. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  8121. // options: {
  8122. // type: Array,
  8123. // default () {
  8124. // return [{
  8125. // icon: 'shop',
  8126. // text: t("uni-goods-nav.options.shop"),
  8127. // }, {
  8128. // icon: 'cart',
  8129. // text: t("uni-goods-nav.options.cart")
  8130. // }]
  8131. // }
  8132. // },
  8133. if (appVm) {
  8134. // 触发响应式
  8135. appVm.$locale;
  8136. if (!isWatchedAppLocale) {
  8137. isWatchedAppLocale = true;
  8138. watchAppLocale(appVm, i18n);
  8139. }
  8140. }
  8141. return i18n.t(key, values);
  8142. };
  8143. }
  8144. return _t(key, values);
  8145. };
  8146. return {
  8147. i18n: i18n,
  8148. f: function f(message, values, delimiters) {
  8149. return i18n.f(message, values, delimiters);
  8150. },
  8151. t: function t(key, values) {
  8152. return _t(key, values);
  8153. },
  8154. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  8155. return i18n.add(locale, message, override);
  8156. },
  8157. watch: function watch(fn) {
  8158. return i18n.watchLocale(fn);
  8159. },
  8160. getLocale: function getLocale() {
  8161. return i18n.getLocale();
  8162. },
  8163. setLocale: function setLocale(newLocale) {
  8164. return i18n.setLocale(newLocale);
  8165. } };
  8166. }
  8167. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  8168. var formater;
  8169. function hasI18nJson(jsonObj, delimiters) {
  8170. if (!formater) {
  8171. formater = new BaseFormatter();
  8172. }
  8173. return walkJsonObj(jsonObj, function (jsonObj, key) {
  8174. var value = jsonObj[key];
  8175. if (isString(value)) {
  8176. if (isI18nStr(value, delimiters)) {
  8177. return true;
  8178. }
  8179. } else
  8180. {
  8181. return hasI18nJson(value, delimiters);
  8182. }
  8183. });
  8184. }
  8185. function parseI18nJson(jsonObj, values, delimiters) {
  8186. if (!formater) {
  8187. formater = new BaseFormatter();
  8188. }
  8189. walkJsonObj(jsonObj, function (jsonObj, key) {
  8190. var value = jsonObj[key];
  8191. if (isString(value)) {
  8192. if (isI18nStr(value, delimiters)) {
  8193. jsonObj[key] = compileStr(value, values, delimiters);
  8194. }
  8195. } else
  8196. {
  8197. parseI18nJson(value, values, delimiters);
  8198. }
  8199. });
  8200. return jsonObj;
  8201. }
  8202. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  8203. if (!isI18nStr(jsonStr, delimiters)) {
  8204. return jsonStr;
  8205. }
  8206. if (!formater) {
  8207. formater = new BaseFormatter();
  8208. }
  8209. var localeValues = [];
  8210. Object.keys(locales).forEach(function (name) {
  8211. if (name !== locale) {
  8212. localeValues.push({
  8213. locale: name,
  8214. values: locales[name] });
  8215. }
  8216. });
  8217. localeValues.unshift({ locale: locale, values: locales[locale] });
  8218. try {
  8219. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  8220. }
  8221. catch (e) {}
  8222. return jsonStr;
  8223. }
  8224. function isI18nStr(value, delimiters) {
  8225. return value.indexOf(delimiters[0]) > -1;
  8226. }
  8227. function compileStr(value, values, delimiters) {
  8228. return formater.interpolate(value, values, delimiters).join('');
  8229. }
  8230. function compileValue(jsonObj, key, localeValues, delimiters) {
  8231. var value = jsonObj[key];
  8232. if (isString(value)) {
  8233. // 存在国际化
  8234. if (isI18nStr(value, delimiters)) {
  8235. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  8236. if (localeValues.length > 1) {
  8237. // 格式化国际化语言
  8238. var valueLocales = jsonObj[key + 'Locales'] = {};
  8239. localeValues.forEach(function (localValue) {
  8240. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  8241. });
  8242. }
  8243. }
  8244. } else
  8245. {
  8246. compileJsonObj(value, localeValues, delimiters);
  8247. }
  8248. }
  8249. function compileJsonObj(jsonObj, localeValues, delimiters) {
  8250. walkJsonObj(jsonObj, function (jsonObj, key) {
  8251. compileValue(jsonObj, key, localeValues, delimiters);
  8252. });
  8253. return jsonObj;
  8254. }
  8255. function walkJsonObj(jsonObj, walk) {
  8256. if (isArray(jsonObj)) {
  8257. for (var i = 0; i < jsonObj.length; i++) {
  8258. if (walk(jsonObj, i)) {
  8259. return true;
  8260. }
  8261. }
  8262. } else
  8263. if (isObject(jsonObj)) {
  8264. for (var key in jsonObj) {
  8265. if (walk(jsonObj, key)) {
  8266. return true;
  8267. }
  8268. }
  8269. }
  8270. return false;
  8271. }
  8272. function resolveLocale(locales) {
  8273. return function (locale) {
  8274. if (!locale) {
  8275. return locale;
  8276. }
  8277. locale = normalizeLocale(locale) || locale;
  8278. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  8279. };
  8280. }
  8281. function resolveLocaleChain(locale) {
  8282. var chain = [];
  8283. var tokens = locale.split('-');
  8284. while (tokens.length) {
  8285. chain.push(tokens.join('-'));
  8286. tokens.pop();
  8287. }
  8288. return chain;
  8289. }
  8290. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  8291. /***/ }),
  8292. /***/ 4:
  8293. /*!******************************************************************************************!*\
  8294. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  8295. \******************************************************************************************/
  8296. /*! exports provided: default */
  8297. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8298. "use strict";
  8299. __webpack_require__.r(__webpack_exports__);
  8300. /* WEBPACK VAR INJECTION */(function(global) {/*!
  8301. * Vue.js v2.6.11
  8302. * (c) 2014-2022 Evan You
  8303. * Released under the MIT License.
  8304. */
  8305. /* */
  8306. var emptyObject = Object.freeze({});
  8307. // These helpers produce better VM code in JS engines due to their
  8308. // explicitness and function inlining.
  8309. function isUndef (v) {
  8310. return v === undefined || v === null
  8311. }
  8312. function isDef (v) {
  8313. return v !== undefined && v !== null
  8314. }
  8315. function isTrue (v) {
  8316. return v === true
  8317. }
  8318. function isFalse (v) {
  8319. return v === false
  8320. }
  8321. /**
  8322. * Check if value is primitive.
  8323. */
  8324. function isPrimitive (value) {
  8325. return (
  8326. typeof value === 'string' ||
  8327. typeof value === 'number' ||
  8328. // $flow-disable-line
  8329. typeof value === 'symbol' ||
  8330. typeof value === 'boolean'
  8331. )
  8332. }
  8333. /**
  8334. * Quick object check - this is primarily used to tell
  8335. * Objects from primitive values when we know the value
  8336. * is a JSON-compliant type.
  8337. */
  8338. function isObject (obj) {
  8339. return obj !== null && typeof obj === 'object'
  8340. }
  8341. /**
  8342. * Get the raw type string of a value, e.g., [object Object].
  8343. */
  8344. var _toString = Object.prototype.toString;
  8345. function toRawType (value) {
  8346. return _toString.call(value).slice(8, -1)
  8347. }
  8348. /**
  8349. * Strict object type check. Only returns true
  8350. * for plain JavaScript objects.
  8351. */
  8352. function isPlainObject (obj) {
  8353. return _toString.call(obj) === '[object Object]'
  8354. }
  8355. function isRegExp (v) {
  8356. return _toString.call(v) === '[object RegExp]'
  8357. }
  8358. /**
  8359. * Check if val is a valid array index.
  8360. */
  8361. function isValidArrayIndex (val) {
  8362. var n = parseFloat(String(val));
  8363. return n >= 0 && Math.floor(n) === n && isFinite(val)
  8364. }
  8365. function isPromise (val) {
  8366. return (
  8367. isDef(val) &&
  8368. typeof val.then === 'function' &&
  8369. typeof val.catch === 'function'
  8370. )
  8371. }
  8372. /**
  8373. * Convert a value to a string that is actually rendered.
  8374. */
  8375. function toString (val) {
  8376. return val == null
  8377. ? ''
  8378. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  8379. ? JSON.stringify(val, null, 2)
  8380. : String(val)
  8381. }
  8382. /**
  8383. * Convert an input value to a number for persistence.
  8384. * If the conversion fails, return original string.
  8385. */
  8386. function toNumber (val) {
  8387. var n = parseFloat(val);
  8388. return isNaN(n) ? val : n
  8389. }
  8390. /**
  8391. * Make a map and return a function for checking if a key
  8392. * is in that map.
  8393. */
  8394. function makeMap (
  8395. str,
  8396. expectsLowerCase
  8397. ) {
  8398. var map = Object.create(null);
  8399. var list = str.split(',');
  8400. for (var i = 0; i < list.length; i++) {
  8401. map[list[i]] = true;
  8402. }
  8403. return expectsLowerCase
  8404. ? function (val) { return map[val.toLowerCase()]; }
  8405. : function (val) { return map[val]; }
  8406. }
  8407. /**
  8408. * Check if a tag is a built-in tag.
  8409. */
  8410. var isBuiltInTag = makeMap('slot,component', true);
  8411. /**
  8412. * Check if an attribute is a reserved attribute.
  8413. */
  8414. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  8415. /**
  8416. * Remove an item from an array.
  8417. */
  8418. function remove (arr, item) {
  8419. if (arr.length) {
  8420. var index = arr.indexOf(item);
  8421. if (index > -1) {
  8422. return arr.splice(index, 1)
  8423. }
  8424. }
  8425. }
  8426. /**
  8427. * Check whether an object has the property.
  8428. */
  8429. var hasOwnProperty = Object.prototype.hasOwnProperty;
  8430. function hasOwn (obj, key) {
  8431. return hasOwnProperty.call(obj, key)
  8432. }
  8433. /**
  8434. * Create a cached version of a pure function.
  8435. */
  8436. function cached (fn) {
  8437. var cache = Object.create(null);
  8438. return (function cachedFn (str) {
  8439. var hit = cache[str];
  8440. return hit || (cache[str] = fn(str))
  8441. })
  8442. }
  8443. /**
  8444. * Camelize a hyphen-delimited string.
  8445. */
  8446. var camelizeRE = /-(\w)/g;
  8447. var camelize = cached(function (str) {
  8448. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  8449. });
  8450. /**
  8451. * Capitalize a string.
  8452. */
  8453. var capitalize = cached(function (str) {
  8454. return str.charAt(0).toUpperCase() + str.slice(1)
  8455. });
  8456. /**
  8457. * Hyphenate a camelCase string.
  8458. */
  8459. var hyphenateRE = /\B([A-Z])/g;
  8460. var hyphenate = cached(function (str) {
  8461. return str.replace(hyphenateRE, '-$1').toLowerCase()
  8462. });
  8463. /**
  8464. * Simple bind polyfill for environments that do not support it,
  8465. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  8466. * since native bind is now performant enough in most browsers.
  8467. * But removing it would mean breaking code that was able to run in
  8468. * PhantomJS 1.x, so this must be kept for backward compatibility.
  8469. */
  8470. /* istanbul ignore next */
  8471. function polyfillBind (fn, ctx) {
  8472. function boundFn (a) {
  8473. var l = arguments.length;
  8474. return l
  8475. ? l > 1
  8476. ? fn.apply(ctx, arguments)
  8477. : fn.call(ctx, a)
  8478. : fn.call(ctx)
  8479. }
  8480. boundFn._length = fn.length;
  8481. return boundFn
  8482. }
  8483. function nativeBind (fn, ctx) {
  8484. return fn.bind(ctx)
  8485. }
  8486. var bind = Function.prototype.bind
  8487. ? nativeBind
  8488. : polyfillBind;
  8489. /**
  8490. * Convert an Array-like object to a real Array.
  8491. */
  8492. function toArray (list, start) {
  8493. start = start || 0;
  8494. var i = list.length - start;
  8495. var ret = new Array(i);
  8496. while (i--) {
  8497. ret[i] = list[i + start];
  8498. }
  8499. return ret
  8500. }
  8501. /**
  8502. * Mix properties into target object.
  8503. */
  8504. function extend (to, _from) {
  8505. for (var key in _from) {
  8506. to[key] = _from[key];
  8507. }
  8508. return to
  8509. }
  8510. /**
  8511. * Merge an Array of Objects into a single Object.
  8512. */
  8513. function toObject (arr) {
  8514. var res = {};
  8515. for (var i = 0; i < arr.length; i++) {
  8516. if (arr[i]) {
  8517. extend(res, arr[i]);
  8518. }
  8519. }
  8520. return res
  8521. }
  8522. /* eslint-disable no-unused-vars */
  8523. /**
  8524. * Perform no operation.
  8525. * Stubbing args to make Flow happy without leaving useless transpiled code
  8526. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  8527. */
  8528. function noop (a, b, c) {}
  8529. /**
  8530. * Always return false.
  8531. */
  8532. var no = function (a, b, c) { return false; };
  8533. /* eslint-enable no-unused-vars */
  8534. /**
  8535. * Return the same value.
  8536. */
  8537. var identity = function (_) { return _; };
  8538. /**
  8539. * Check if two values are loosely equal - that is,
  8540. * if they are plain objects, do they have the same shape?
  8541. */
  8542. function looseEqual (a, b) {
  8543. if (a === b) { return true }
  8544. var isObjectA = isObject(a);
  8545. var isObjectB = isObject(b);
  8546. if (isObjectA && isObjectB) {
  8547. try {
  8548. var isArrayA = Array.isArray(a);
  8549. var isArrayB = Array.isArray(b);
  8550. if (isArrayA && isArrayB) {
  8551. return a.length === b.length && a.every(function (e, i) {
  8552. return looseEqual(e, b[i])
  8553. })
  8554. } else if (a instanceof Date && b instanceof Date) {
  8555. return a.getTime() === b.getTime()
  8556. } else if (!isArrayA && !isArrayB) {
  8557. var keysA = Object.keys(a);
  8558. var keysB = Object.keys(b);
  8559. return keysA.length === keysB.length && keysA.every(function (key) {
  8560. return looseEqual(a[key], b[key])
  8561. })
  8562. } else {
  8563. /* istanbul ignore next */
  8564. return false
  8565. }
  8566. } catch (e) {
  8567. /* istanbul ignore next */
  8568. return false
  8569. }
  8570. } else if (!isObjectA && !isObjectB) {
  8571. return String(a) === String(b)
  8572. } else {
  8573. return false
  8574. }
  8575. }
  8576. /**
  8577. * Return the first index at which a loosely equal value can be
  8578. * found in the array (if value is a plain object, the array must
  8579. * contain an object of the same shape), or -1 if it is not present.
  8580. */
  8581. function looseIndexOf (arr, val) {
  8582. for (var i = 0; i < arr.length; i++) {
  8583. if (looseEqual(arr[i], val)) { return i }
  8584. }
  8585. return -1
  8586. }
  8587. /**
  8588. * Ensure a function is called only once.
  8589. */
  8590. function once (fn) {
  8591. var called = false;
  8592. return function () {
  8593. if (!called) {
  8594. called = true;
  8595. fn.apply(this, arguments);
  8596. }
  8597. }
  8598. }
  8599. var ASSET_TYPES = [
  8600. 'component',
  8601. 'directive',
  8602. 'filter'
  8603. ];
  8604. var LIFECYCLE_HOOKS = [
  8605. 'beforeCreate',
  8606. 'created',
  8607. 'beforeMount',
  8608. 'mounted',
  8609. 'beforeUpdate',
  8610. 'updated',
  8611. 'beforeDestroy',
  8612. 'destroyed',
  8613. 'activated',
  8614. 'deactivated',
  8615. 'errorCaptured',
  8616. 'serverPrefetch'
  8617. ];
  8618. /* */
  8619. var config = ({
  8620. /**
  8621. * Option merge strategies (used in core/util/options)
  8622. */
  8623. // $flow-disable-line
  8624. optionMergeStrategies: Object.create(null),
  8625. /**
  8626. * Whether to suppress warnings.
  8627. */
  8628. silent: false,
  8629. /**
  8630. * Show production mode tip message on boot?
  8631. */
  8632. productionTip: "development" !== 'production',
  8633. /**
  8634. * Whether to enable devtools
  8635. */
  8636. devtools: "development" !== 'production',
  8637. /**
  8638. * Whether to record perf
  8639. */
  8640. performance: false,
  8641. /**
  8642. * Error handler for watcher errors
  8643. */
  8644. errorHandler: null,
  8645. /**
  8646. * Warn handler for watcher warns
  8647. */
  8648. warnHandler: null,
  8649. /**
  8650. * Ignore certain custom elements
  8651. */
  8652. ignoredElements: [],
  8653. /**
  8654. * Custom user key aliases for v-on
  8655. */
  8656. // $flow-disable-line
  8657. keyCodes: Object.create(null),
  8658. /**
  8659. * Check if a tag is reserved so that it cannot be registered as a
  8660. * component. This is platform-dependent and may be overwritten.
  8661. */
  8662. isReservedTag: no,
  8663. /**
  8664. * Check if an attribute is reserved so that it cannot be used as a component
  8665. * prop. This is platform-dependent and may be overwritten.
  8666. */
  8667. isReservedAttr: no,
  8668. /**
  8669. * Check if a tag is an unknown element.
  8670. * Platform-dependent.
  8671. */
  8672. isUnknownElement: no,
  8673. /**
  8674. * Get the namespace of an element
  8675. */
  8676. getTagNamespace: noop,
  8677. /**
  8678. * Parse the real tag name for the specific platform.
  8679. */
  8680. parsePlatformTagName: identity,
  8681. /**
  8682. * Check if an attribute must be bound using property, e.g. value
  8683. * Platform-dependent.
  8684. */
  8685. mustUseProp: no,
  8686. /**
  8687. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  8688. * This will significantly reduce performance if set to false.
  8689. */
  8690. async: true,
  8691. /**
  8692. * Exposed for legacy reasons
  8693. */
  8694. _lifecycleHooks: LIFECYCLE_HOOKS
  8695. });
  8696. /* */
  8697. /**
  8698. * unicode letters used for parsing html tags, component names and property paths.
  8699. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  8700. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  8701. */
  8702. 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/;
  8703. /**
  8704. * Check if a string starts with $ or _
  8705. */
  8706. function isReserved (str) {
  8707. var c = (str + '').charCodeAt(0);
  8708. return c === 0x24 || c === 0x5F
  8709. }
  8710. /**
  8711. * Define a property.
  8712. */
  8713. function def (obj, key, val, enumerable) {
  8714. Object.defineProperty(obj, key, {
  8715. value: val,
  8716. enumerable: !!enumerable,
  8717. writable: true,
  8718. configurable: true
  8719. });
  8720. }
  8721. /**
  8722. * Parse simple path.
  8723. */
  8724. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  8725. function parsePath (path) {
  8726. if (bailRE.test(path)) {
  8727. return
  8728. }
  8729. var segments = path.split('.');
  8730. return function (obj) {
  8731. for (var i = 0; i < segments.length; i++) {
  8732. if (!obj) { return }
  8733. obj = obj[segments[i]];
  8734. }
  8735. return obj
  8736. }
  8737. }
  8738. /* */
  8739. // can we use __proto__?
  8740. var hasProto = '__proto__' in {};
  8741. // Browser environment sniffing
  8742. var inBrowser = typeof window !== 'undefined';
  8743. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  8744. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  8745. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  8746. var isIE = UA && /msie|trident/.test(UA);
  8747. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  8748. var isEdge = UA && UA.indexOf('edge/') > 0;
  8749. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  8750. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  8751. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  8752. var isPhantomJS = UA && /phantomjs/.test(UA);
  8753. var isFF = UA && UA.match(/firefox\/(\d+)/);
  8754. // Firefox has a "watch" function on Object.prototype...
  8755. var nativeWatch = ({}).watch;
  8756. if (inBrowser) {
  8757. try {
  8758. var opts = {};
  8759. Object.defineProperty(opts, 'passive', ({
  8760. get: function get () {
  8761. }
  8762. })); // https://github.com/facebook/flow/issues/285
  8763. window.addEventListener('test-passive', null, opts);
  8764. } catch (e) {}
  8765. }
  8766. // this needs to be lazy-evaled because vue may be required before
  8767. // vue-server-renderer can set VUE_ENV
  8768. var _isServer;
  8769. var isServerRendering = function () {
  8770. if (_isServer === undefined) {
  8771. /* istanbul ignore if */
  8772. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  8773. // detect presence of vue-server-renderer and avoid
  8774. // Webpack shimming the process
  8775. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  8776. } else {
  8777. _isServer = false;
  8778. }
  8779. }
  8780. return _isServer
  8781. };
  8782. // detect devtools
  8783. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  8784. /* istanbul ignore next */
  8785. function isNative (Ctor) {
  8786. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  8787. }
  8788. var hasSymbol =
  8789. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  8790. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  8791. var _Set;
  8792. /* istanbul ignore if */ // $flow-disable-line
  8793. if (typeof Set !== 'undefined' && isNative(Set)) {
  8794. // use native Set when available.
  8795. _Set = Set;
  8796. } else {
  8797. // a non-standard Set polyfill that only works with primitive keys.
  8798. _Set = /*@__PURE__*/(function () {
  8799. function Set () {
  8800. this.set = Object.create(null);
  8801. }
  8802. Set.prototype.has = function has (key) {
  8803. return this.set[key] === true
  8804. };
  8805. Set.prototype.add = function add (key) {
  8806. this.set[key] = true;
  8807. };
  8808. Set.prototype.clear = function clear () {
  8809. this.set = Object.create(null);
  8810. };
  8811. return Set;
  8812. }());
  8813. }
  8814. /* */
  8815. var warn = noop;
  8816. var tip = noop;
  8817. var generateComponentTrace = (noop); // work around flow check
  8818. var formatComponentName = (noop);
  8819. if (true) {
  8820. var hasConsole = typeof console !== 'undefined';
  8821. var classifyRE = /(?:^|[-_])(\w)/g;
  8822. var classify = function (str) { return str
  8823. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  8824. .replace(/[-_]/g, ''); };
  8825. warn = function (msg, vm) {
  8826. var trace = vm ? generateComponentTrace(vm) : '';
  8827. if (config.warnHandler) {
  8828. config.warnHandler.call(null, msg, vm, trace);
  8829. } else if (hasConsole && (!config.silent)) {
  8830. console.error(("[Vue warn]: " + msg + trace));
  8831. }
  8832. };
  8833. tip = function (msg, vm) {
  8834. if (hasConsole && (!config.silent)) {
  8835. console.warn("[Vue tip]: " + msg + (
  8836. vm ? generateComponentTrace(vm) : ''
  8837. ));
  8838. }
  8839. };
  8840. formatComponentName = function (vm, includeFile) {
  8841. if (vm.$root === vm) {
  8842. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  8843. return ('') + vm.$options.__file
  8844. }
  8845. return '<Root>'
  8846. }
  8847. var options = typeof vm === 'function' && vm.cid != null
  8848. ? vm.options
  8849. : vm._isVue
  8850. ? vm.$options || vm.constructor.options
  8851. : vm;
  8852. var name = options.name || options._componentTag;
  8853. var file = options.__file;
  8854. if (!name && file) {
  8855. var match = file.match(/([^/\\]+)\.vue$/);
  8856. name = match && match[1];
  8857. }
  8858. return (
  8859. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  8860. (file && includeFile !== false ? (" at " + file) : '')
  8861. )
  8862. };
  8863. var repeat = function (str, n) {
  8864. var res = '';
  8865. while (n) {
  8866. if (n % 2 === 1) { res += str; }
  8867. if (n > 1) { str += str; }
  8868. n >>= 1;
  8869. }
  8870. return res
  8871. };
  8872. generateComponentTrace = function (vm) {
  8873. if (vm._isVue && vm.$parent) {
  8874. var tree = [];
  8875. var currentRecursiveSequence = 0;
  8876. while (vm && vm.$options.name !== 'PageBody') {
  8877. if (tree.length > 0) {
  8878. var last = tree[tree.length - 1];
  8879. if (last.constructor === vm.constructor) {
  8880. currentRecursiveSequence++;
  8881. vm = vm.$parent;
  8882. continue
  8883. } else if (currentRecursiveSequence > 0) {
  8884. tree[tree.length - 1] = [last, currentRecursiveSequence];
  8885. currentRecursiveSequence = 0;
  8886. }
  8887. }
  8888. !vm.$options.isReserved && tree.push(vm);
  8889. vm = vm.$parent;
  8890. }
  8891. return '\n\nfound in\n\n' + tree
  8892. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  8893. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  8894. : formatComponentName(vm))); })
  8895. .join('\n')
  8896. } else {
  8897. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  8898. }
  8899. };
  8900. }
  8901. /* */
  8902. var uid = 0;
  8903. /**
  8904. * A dep is an observable that can have multiple
  8905. * directives subscribing to it.
  8906. */
  8907. var Dep = function Dep () {
  8908. this.id = uid++;
  8909. this.subs = [];
  8910. };
  8911. Dep.prototype.addSub = function addSub (sub) {
  8912. this.subs.push(sub);
  8913. };
  8914. Dep.prototype.removeSub = function removeSub (sub) {
  8915. remove(this.subs, sub);
  8916. };
  8917. Dep.prototype.depend = function depend () {
  8918. if (Dep.SharedObject.target) {
  8919. Dep.SharedObject.target.addDep(this);
  8920. }
  8921. };
  8922. Dep.prototype.notify = function notify () {
  8923. // stabilize the subscriber list first
  8924. var subs = this.subs.slice();
  8925. if ( true && !config.async) {
  8926. // subs aren't sorted in scheduler if not running async
  8927. // we need to sort them now to make sure they fire in correct
  8928. // order
  8929. subs.sort(function (a, b) { return a.id - b.id; });
  8930. }
  8931. for (var i = 0, l = subs.length; i < l; i++) {
  8932. subs[i].update();
  8933. }
  8934. };
  8935. // The current target watcher being evaluated.
  8936. // This is globally unique because only one watcher
  8937. // can be evaluated at a time.
  8938. // fixed by xxxxxx (nvue shared vuex)
  8939. /* eslint-disable no-undef */
  8940. Dep.SharedObject = {};
  8941. Dep.SharedObject.target = null;
  8942. Dep.SharedObject.targetStack = [];
  8943. function pushTarget (target) {
  8944. Dep.SharedObject.targetStack.push(target);
  8945. Dep.SharedObject.target = target;
  8946. Dep.target = target;
  8947. }
  8948. function popTarget () {
  8949. Dep.SharedObject.targetStack.pop();
  8950. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  8951. Dep.target = Dep.SharedObject.target;
  8952. }
  8953. /* */
  8954. var VNode = function VNode (
  8955. tag,
  8956. data,
  8957. children,
  8958. text,
  8959. elm,
  8960. context,
  8961. componentOptions,
  8962. asyncFactory
  8963. ) {
  8964. this.tag = tag;
  8965. this.data = data;
  8966. this.children = children;
  8967. this.text = text;
  8968. this.elm = elm;
  8969. this.ns = undefined;
  8970. this.context = context;
  8971. this.fnContext = undefined;
  8972. this.fnOptions = undefined;
  8973. this.fnScopeId = undefined;
  8974. this.key = data && data.key;
  8975. this.componentOptions = componentOptions;
  8976. this.componentInstance = undefined;
  8977. this.parent = undefined;
  8978. this.raw = false;
  8979. this.isStatic = false;
  8980. this.isRootInsert = true;
  8981. this.isComment = false;
  8982. this.isCloned = false;
  8983. this.isOnce = false;
  8984. this.asyncFactory = asyncFactory;
  8985. this.asyncMeta = undefined;
  8986. this.isAsyncPlaceholder = false;
  8987. };
  8988. var prototypeAccessors = { child: { configurable: true } };
  8989. // DEPRECATED: alias for componentInstance for backwards compat.
  8990. /* istanbul ignore next */
  8991. prototypeAccessors.child.get = function () {
  8992. return this.componentInstance
  8993. };
  8994. Object.defineProperties( VNode.prototype, prototypeAccessors );
  8995. var createEmptyVNode = function (text) {
  8996. if ( text === void 0 ) text = '';
  8997. var node = new VNode();
  8998. node.text = text;
  8999. node.isComment = true;
  9000. return node
  9001. };
  9002. function createTextVNode (val) {
  9003. return new VNode(undefined, undefined, undefined, String(val))
  9004. }
  9005. // optimized shallow clone
  9006. // used for static nodes and slot nodes because they may be reused across
  9007. // multiple renders, cloning them avoids errors when DOM manipulations rely
  9008. // on their elm reference.
  9009. function cloneVNode (vnode) {
  9010. var cloned = new VNode(
  9011. vnode.tag,
  9012. vnode.data,
  9013. // #7975
  9014. // clone children array to avoid mutating original in case of cloning
  9015. // a child.
  9016. vnode.children && vnode.children.slice(),
  9017. vnode.text,
  9018. vnode.elm,
  9019. vnode.context,
  9020. vnode.componentOptions,
  9021. vnode.asyncFactory
  9022. );
  9023. cloned.ns = vnode.ns;
  9024. cloned.isStatic = vnode.isStatic;
  9025. cloned.key = vnode.key;
  9026. cloned.isComment = vnode.isComment;
  9027. cloned.fnContext = vnode.fnContext;
  9028. cloned.fnOptions = vnode.fnOptions;
  9029. cloned.fnScopeId = vnode.fnScopeId;
  9030. cloned.asyncMeta = vnode.asyncMeta;
  9031. cloned.isCloned = true;
  9032. return cloned
  9033. }
  9034. /*
  9035. * not type checking this file because flow doesn't play well with
  9036. * dynamically accessing methods on Array prototype
  9037. */
  9038. var arrayProto = Array.prototype;
  9039. var arrayMethods = Object.create(arrayProto);
  9040. var methodsToPatch = [
  9041. 'push',
  9042. 'pop',
  9043. 'shift',
  9044. 'unshift',
  9045. 'splice',
  9046. 'sort',
  9047. 'reverse'
  9048. ];
  9049. /**
  9050. * Intercept mutating methods and emit events
  9051. */
  9052. methodsToPatch.forEach(function (method) {
  9053. // cache original method
  9054. var original = arrayProto[method];
  9055. def(arrayMethods, method, function mutator () {
  9056. var args = [], len = arguments.length;
  9057. while ( len-- ) args[ len ] = arguments[ len ];
  9058. var result = original.apply(this, args);
  9059. var ob = this.__ob__;
  9060. var inserted;
  9061. switch (method) {
  9062. case 'push':
  9063. case 'unshift':
  9064. inserted = args;
  9065. break
  9066. case 'splice':
  9067. inserted = args.slice(2);
  9068. break
  9069. }
  9070. if (inserted) { ob.observeArray(inserted); }
  9071. // notify change
  9072. ob.dep.notify();
  9073. return result
  9074. });
  9075. });
  9076. /* */
  9077. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  9078. /**
  9079. * In some cases we may want to disable observation inside a component's
  9080. * update computation.
  9081. */
  9082. var shouldObserve = true;
  9083. function toggleObserving (value) {
  9084. shouldObserve = value;
  9085. }
  9086. /**
  9087. * Observer class that is attached to each observed
  9088. * object. Once attached, the observer converts the target
  9089. * object's property keys into getter/setters that
  9090. * collect dependencies and dispatch updates.
  9091. */
  9092. var Observer = function Observer (value) {
  9093. this.value = value;
  9094. this.dep = new Dep();
  9095. this.vmCount = 0;
  9096. def(value, '__ob__', this);
  9097. if (Array.isArray(value)) {
  9098. if (hasProto) {
  9099. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  9100. if(value.push !== value.__proto__.push){
  9101. copyAugment(value, arrayMethods, arrayKeys);
  9102. } else {
  9103. protoAugment(value, arrayMethods);
  9104. }
  9105. }
  9106. } else {
  9107. copyAugment(value, arrayMethods, arrayKeys);
  9108. }
  9109. this.observeArray(value);
  9110. } else {
  9111. this.walk(value);
  9112. }
  9113. };
  9114. /**
  9115. * Walk through all properties and convert them into
  9116. * getter/setters. This method should only be called when
  9117. * value type is Object.
  9118. */
  9119. Observer.prototype.walk = function walk (obj) {
  9120. var keys = Object.keys(obj);
  9121. for (var i = 0; i < keys.length; i++) {
  9122. defineReactive$$1(obj, keys[i]);
  9123. }
  9124. };
  9125. /**
  9126. * Observe a list of Array items.
  9127. */
  9128. Observer.prototype.observeArray = function observeArray (items) {
  9129. for (var i = 0, l = items.length; i < l; i++) {
  9130. observe(items[i]);
  9131. }
  9132. };
  9133. // helpers
  9134. /**
  9135. * Augment a target Object or Array by intercepting
  9136. * the prototype chain using __proto__
  9137. */
  9138. function protoAugment (target, src) {
  9139. /* eslint-disable no-proto */
  9140. target.__proto__ = src;
  9141. /* eslint-enable no-proto */
  9142. }
  9143. /**
  9144. * Augment a target Object or Array by defining
  9145. * hidden properties.
  9146. */
  9147. /* istanbul ignore next */
  9148. function copyAugment (target, src, keys) {
  9149. for (var i = 0, l = keys.length; i < l; i++) {
  9150. var key = keys[i];
  9151. def(target, key, src[key]);
  9152. }
  9153. }
  9154. /**
  9155. * Attempt to create an observer instance for a value,
  9156. * returns the new observer if successfully observed,
  9157. * or the existing observer if the value already has one.
  9158. */
  9159. function observe (value, asRootData) {
  9160. if (!isObject(value) || value instanceof VNode) {
  9161. return
  9162. }
  9163. var ob;
  9164. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  9165. ob = value.__ob__;
  9166. } else if (
  9167. shouldObserve &&
  9168. !isServerRendering() &&
  9169. (Array.isArray(value) || isPlainObject(value)) &&
  9170. Object.isExtensible(value) &&
  9171. !value._isVue
  9172. ) {
  9173. ob = new Observer(value);
  9174. }
  9175. if (asRootData && ob) {
  9176. ob.vmCount++;
  9177. }
  9178. return ob
  9179. }
  9180. /**
  9181. * Define a reactive property on an Object.
  9182. */
  9183. function defineReactive$$1 (
  9184. obj,
  9185. key,
  9186. val,
  9187. customSetter,
  9188. shallow
  9189. ) {
  9190. var dep = new Dep();
  9191. var property = Object.getOwnPropertyDescriptor(obj, key);
  9192. if (property && property.configurable === false) {
  9193. return
  9194. }
  9195. // cater for pre-defined getter/setters
  9196. var getter = property && property.get;
  9197. var setter = property && property.set;
  9198. if ((!getter || setter) && arguments.length === 2) {
  9199. val = obj[key];
  9200. }
  9201. var childOb = !shallow && observe(val);
  9202. Object.defineProperty(obj, key, {
  9203. enumerable: true,
  9204. configurable: true,
  9205. get: function reactiveGetter () {
  9206. var value = getter ? getter.call(obj) : val;
  9207. if (Dep.SharedObject.target) { // fixed by xxxxxx
  9208. dep.depend();
  9209. if (childOb) {
  9210. childOb.dep.depend();
  9211. if (Array.isArray(value)) {
  9212. dependArray(value);
  9213. }
  9214. }
  9215. }
  9216. return value
  9217. },
  9218. set: function reactiveSetter (newVal) {
  9219. var value = getter ? getter.call(obj) : val;
  9220. /* eslint-disable no-self-compare */
  9221. if (newVal === value || (newVal !== newVal && value !== value)) {
  9222. return
  9223. }
  9224. /* eslint-enable no-self-compare */
  9225. if ( true && customSetter) {
  9226. customSetter();
  9227. }
  9228. // #7981: for accessor properties without setter
  9229. if (getter && !setter) { return }
  9230. if (setter) {
  9231. setter.call(obj, newVal);
  9232. } else {
  9233. val = newVal;
  9234. }
  9235. childOb = !shallow && observe(newVal);
  9236. dep.notify();
  9237. }
  9238. });
  9239. }
  9240. /**
  9241. * Set a property on an object. Adds the new property and
  9242. * triggers change notification if the property doesn't
  9243. * already exist.
  9244. */
  9245. function set (target, key, val) {
  9246. if ( true &&
  9247. (isUndef(target) || isPrimitive(target))
  9248. ) {
  9249. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  9250. }
  9251. if (Array.isArray(target) && isValidArrayIndex(key)) {
  9252. target.length = Math.max(target.length, key);
  9253. target.splice(key, 1, val);
  9254. return val
  9255. }
  9256. if (key in target && !(key in Object.prototype)) {
  9257. target[key] = val;
  9258. return val
  9259. }
  9260. var ob = (target).__ob__;
  9261. if (target._isVue || (ob && ob.vmCount)) {
  9262. true && warn(
  9263. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  9264. 'at runtime - declare it upfront in the data option.'
  9265. );
  9266. return val
  9267. }
  9268. if (!ob) {
  9269. target[key] = val;
  9270. return val
  9271. }
  9272. defineReactive$$1(ob.value, key, val);
  9273. ob.dep.notify();
  9274. return val
  9275. }
  9276. /**
  9277. * Delete a property and trigger change if necessary.
  9278. */
  9279. function del (target, key) {
  9280. if ( true &&
  9281. (isUndef(target) || isPrimitive(target))
  9282. ) {
  9283. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  9284. }
  9285. if (Array.isArray(target) && isValidArrayIndex(key)) {
  9286. target.splice(key, 1);
  9287. return
  9288. }
  9289. var ob = (target).__ob__;
  9290. if (target._isVue || (ob && ob.vmCount)) {
  9291. true && warn(
  9292. 'Avoid deleting properties on a Vue instance or its root $data ' +
  9293. '- just set it to null.'
  9294. );
  9295. return
  9296. }
  9297. if (!hasOwn(target, key)) {
  9298. return
  9299. }
  9300. delete target[key];
  9301. if (!ob) {
  9302. return
  9303. }
  9304. ob.dep.notify();
  9305. }
  9306. /**
  9307. * Collect dependencies on array elements when the array is touched, since
  9308. * we cannot intercept array element access like property getters.
  9309. */
  9310. function dependArray (value) {
  9311. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  9312. e = value[i];
  9313. e && e.__ob__ && e.__ob__.dep.depend();
  9314. if (Array.isArray(e)) {
  9315. dependArray(e);
  9316. }
  9317. }
  9318. }
  9319. /* */
  9320. /**
  9321. * Option overwriting strategies are functions that handle
  9322. * how to merge a parent option value and a child option
  9323. * value into the final value.
  9324. */
  9325. var strats = config.optionMergeStrategies;
  9326. /**
  9327. * Options with restrictions
  9328. */
  9329. if (true) {
  9330. strats.el = strats.propsData = function (parent, child, vm, key) {
  9331. if (!vm) {
  9332. warn(
  9333. "option \"" + key + "\" can only be used during instance " +
  9334. 'creation with the `new` keyword.'
  9335. );
  9336. }
  9337. return defaultStrat(parent, child)
  9338. };
  9339. }
  9340. /**
  9341. * Helper that recursively merges two data objects together.
  9342. */
  9343. function mergeData (to, from) {
  9344. if (!from) { return to }
  9345. var key, toVal, fromVal;
  9346. var keys = hasSymbol
  9347. ? Reflect.ownKeys(from)
  9348. : Object.keys(from);
  9349. for (var i = 0; i < keys.length; i++) {
  9350. key = keys[i];
  9351. // in case the object is already observed...
  9352. if (key === '__ob__') { continue }
  9353. toVal = to[key];
  9354. fromVal = from[key];
  9355. if (!hasOwn(to, key)) {
  9356. set(to, key, fromVal);
  9357. } else if (
  9358. toVal !== fromVal &&
  9359. isPlainObject(toVal) &&
  9360. isPlainObject(fromVal)
  9361. ) {
  9362. mergeData(toVal, fromVal);
  9363. }
  9364. }
  9365. return to
  9366. }
  9367. /**
  9368. * Data
  9369. */
  9370. function mergeDataOrFn (
  9371. parentVal,
  9372. childVal,
  9373. vm
  9374. ) {
  9375. if (!vm) {
  9376. // in a Vue.extend merge, both should be functions
  9377. if (!childVal) {
  9378. return parentVal
  9379. }
  9380. if (!parentVal) {
  9381. return childVal
  9382. }
  9383. // when parentVal & childVal are both present,
  9384. // we need to return a function that returns the
  9385. // merged result of both functions... no need to
  9386. // check if parentVal is a function here because
  9387. // it has to be a function to pass previous merges.
  9388. return function mergedDataFn () {
  9389. return mergeData(
  9390. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  9391. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  9392. )
  9393. }
  9394. } else {
  9395. return function mergedInstanceDataFn () {
  9396. // instance merge
  9397. var instanceData = typeof childVal === 'function'
  9398. ? childVal.call(vm, vm)
  9399. : childVal;
  9400. var defaultData = typeof parentVal === 'function'
  9401. ? parentVal.call(vm, vm)
  9402. : parentVal;
  9403. if (instanceData) {
  9404. return mergeData(instanceData, defaultData)
  9405. } else {
  9406. return defaultData
  9407. }
  9408. }
  9409. }
  9410. }
  9411. strats.data = function (
  9412. parentVal,
  9413. childVal,
  9414. vm
  9415. ) {
  9416. if (!vm) {
  9417. if (childVal && typeof childVal !== 'function') {
  9418. true && warn(
  9419. 'The "data" option should be a function ' +
  9420. 'that returns a per-instance value in component ' +
  9421. 'definitions.',
  9422. vm
  9423. );
  9424. return parentVal
  9425. }
  9426. return mergeDataOrFn(parentVal, childVal)
  9427. }
  9428. return mergeDataOrFn(parentVal, childVal, vm)
  9429. };
  9430. /**
  9431. * Hooks and props are merged as arrays.
  9432. */
  9433. function mergeHook (
  9434. parentVal,
  9435. childVal
  9436. ) {
  9437. var res = childVal
  9438. ? parentVal
  9439. ? parentVal.concat(childVal)
  9440. : Array.isArray(childVal)
  9441. ? childVal
  9442. : [childVal]
  9443. : parentVal;
  9444. return res
  9445. ? dedupeHooks(res)
  9446. : res
  9447. }
  9448. function dedupeHooks (hooks) {
  9449. var res = [];
  9450. for (var i = 0; i < hooks.length; i++) {
  9451. if (res.indexOf(hooks[i]) === -1) {
  9452. res.push(hooks[i]);
  9453. }
  9454. }
  9455. return res
  9456. }
  9457. LIFECYCLE_HOOKS.forEach(function (hook) {
  9458. strats[hook] = mergeHook;
  9459. });
  9460. /**
  9461. * Assets
  9462. *
  9463. * When a vm is present (instance creation), we need to do
  9464. * a three-way merge between constructor options, instance
  9465. * options and parent options.
  9466. */
  9467. function mergeAssets (
  9468. parentVal,
  9469. childVal,
  9470. vm,
  9471. key
  9472. ) {
  9473. var res = Object.create(parentVal || null);
  9474. if (childVal) {
  9475. true && assertObjectType(key, childVal, vm);
  9476. return extend(res, childVal)
  9477. } else {
  9478. return res
  9479. }
  9480. }
  9481. ASSET_TYPES.forEach(function (type) {
  9482. strats[type + 's'] = mergeAssets;
  9483. });
  9484. /**
  9485. * Watchers.
  9486. *
  9487. * Watchers hashes should not overwrite one
  9488. * another, so we merge them as arrays.
  9489. */
  9490. strats.watch = function (
  9491. parentVal,
  9492. childVal,
  9493. vm,
  9494. key
  9495. ) {
  9496. // work around Firefox's Object.prototype.watch...
  9497. if (parentVal === nativeWatch) { parentVal = undefined; }
  9498. if (childVal === nativeWatch) { childVal = undefined; }
  9499. /* istanbul ignore if */
  9500. if (!childVal) { return Object.create(parentVal || null) }
  9501. if (true) {
  9502. assertObjectType(key, childVal, vm);
  9503. }
  9504. if (!parentVal) { return childVal }
  9505. var ret = {};
  9506. extend(ret, parentVal);
  9507. for (var key$1 in childVal) {
  9508. var parent = ret[key$1];
  9509. var child = childVal[key$1];
  9510. if (parent && !Array.isArray(parent)) {
  9511. parent = [parent];
  9512. }
  9513. ret[key$1] = parent
  9514. ? parent.concat(child)
  9515. : Array.isArray(child) ? child : [child];
  9516. }
  9517. return ret
  9518. };
  9519. /**
  9520. * Other object hashes.
  9521. */
  9522. strats.props =
  9523. strats.methods =
  9524. strats.inject =
  9525. strats.computed = function (
  9526. parentVal,
  9527. childVal,
  9528. vm,
  9529. key
  9530. ) {
  9531. if (childVal && "development" !== 'production') {
  9532. assertObjectType(key, childVal, vm);
  9533. }
  9534. if (!parentVal) { return childVal }
  9535. var ret = Object.create(null);
  9536. extend(ret, parentVal);
  9537. if (childVal) { extend(ret, childVal); }
  9538. return ret
  9539. };
  9540. strats.provide = mergeDataOrFn;
  9541. /**
  9542. * Default strategy.
  9543. */
  9544. var defaultStrat = function (parentVal, childVal) {
  9545. return childVal === undefined
  9546. ? parentVal
  9547. : childVal
  9548. };
  9549. /**
  9550. * Validate component names
  9551. */
  9552. function checkComponents (options) {
  9553. for (var key in options.components) {
  9554. validateComponentName(key);
  9555. }
  9556. }
  9557. function validateComponentName (name) {
  9558. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  9559. warn(
  9560. 'Invalid component name: "' + name + '". Component names ' +
  9561. 'should conform to valid custom element name in html5 specification.'
  9562. );
  9563. }
  9564. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  9565. warn(
  9566. 'Do not use built-in or reserved HTML elements as component ' +
  9567. 'id: ' + name
  9568. );
  9569. }
  9570. }
  9571. /**
  9572. * Ensure all props option syntax are normalized into the
  9573. * Object-based format.
  9574. */
  9575. function normalizeProps (options, vm) {
  9576. var props = options.props;
  9577. if (!props) { return }
  9578. var res = {};
  9579. var i, val, name;
  9580. if (Array.isArray(props)) {
  9581. i = props.length;
  9582. while (i--) {
  9583. val = props[i];
  9584. if (typeof val === 'string') {
  9585. name = camelize(val);
  9586. res[name] = { type: null };
  9587. } else if (true) {
  9588. warn('props must be strings when using array syntax.');
  9589. }
  9590. }
  9591. } else if (isPlainObject(props)) {
  9592. for (var key in props) {
  9593. val = props[key];
  9594. name = camelize(key);
  9595. res[name] = isPlainObject(val)
  9596. ? val
  9597. : { type: val };
  9598. }
  9599. } else if (true) {
  9600. warn(
  9601. "Invalid value for option \"props\": expected an Array or an Object, " +
  9602. "but got " + (toRawType(props)) + ".",
  9603. vm
  9604. );
  9605. }
  9606. options.props = res;
  9607. }
  9608. /**
  9609. * Normalize all injections into Object-based format
  9610. */
  9611. function normalizeInject (options, vm) {
  9612. var inject = options.inject;
  9613. if (!inject) { return }
  9614. var normalized = options.inject = {};
  9615. if (Array.isArray(inject)) {
  9616. for (var i = 0; i < inject.length; i++) {
  9617. normalized[inject[i]] = { from: inject[i] };
  9618. }
  9619. } else if (isPlainObject(inject)) {
  9620. for (var key in inject) {
  9621. var val = inject[key];
  9622. normalized[key] = isPlainObject(val)
  9623. ? extend({ from: key }, val)
  9624. : { from: val };
  9625. }
  9626. } else if (true) {
  9627. warn(
  9628. "Invalid value for option \"inject\": expected an Array or an Object, " +
  9629. "but got " + (toRawType(inject)) + ".",
  9630. vm
  9631. );
  9632. }
  9633. }
  9634. /**
  9635. * Normalize raw function directives into object format.
  9636. */
  9637. function normalizeDirectives (options) {
  9638. var dirs = options.directives;
  9639. if (dirs) {
  9640. for (var key in dirs) {
  9641. var def$$1 = dirs[key];
  9642. if (typeof def$$1 === 'function') {
  9643. dirs[key] = { bind: def$$1, update: def$$1 };
  9644. }
  9645. }
  9646. }
  9647. }
  9648. function assertObjectType (name, value, vm) {
  9649. if (!isPlainObject(value)) {
  9650. warn(
  9651. "Invalid value for option \"" + name + "\": expected an Object, " +
  9652. "but got " + (toRawType(value)) + ".",
  9653. vm
  9654. );
  9655. }
  9656. }
  9657. /**
  9658. * Merge two option objects into a new one.
  9659. * Core utility used in both instantiation and inheritance.
  9660. */
  9661. function mergeOptions (
  9662. parent,
  9663. child,
  9664. vm
  9665. ) {
  9666. if (true) {
  9667. checkComponents(child);
  9668. }
  9669. if (typeof child === 'function') {
  9670. child = child.options;
  9671. }
  9672. normalizeProps(child, vm);
  9673. normalizeInject(child, vm);
  9674. normalizeDirectives(child);
  9675. // Apply extends and mixins on the child options,
  9676. // but only if it is a raw options object that isn't
  9677. // the result of another mergeOptions call.
  9678. // Only merged options has the _base property.
  9679. if (!child._base) {
  9680. if (child.extends) {
  9681. parent = mergeOptions(parent, child.extends, vm);
  9682. }
  9683. if (child.mixins) {
  9684. for (var i = 0, l = child.mixins.length; i < l; i++) {
  9685. parent = mergeOptions(parent, child.mixins[i], vm);
  9686. }
  9687. }
  9688. }
  9689. var options = {};
  9690. var key;
  9691. for (key in parent) {
  9692. mergeField(key);
  9693. }
  9694. for (key in child) {
  9695. if (!hasOwn(parent, key)) {
  9696. mergeField(key);
  9697. }
  9698. }
  9699. function mergeField (key) {
  9700. var strat = strats[key] || defaultStrat;
  9701. options[key] = strat(parent[key], child[key], vm, key);
  9702. }
  9703. return options
  9704. }
  9705. /**
  9706. * Resolve an asset.
  9707. * This function is used because child instances need access
  9708. * to assets defined in its ancestor chain.
  9709. */
  9710. function resolveAsset (
  9711. options,
  9712. type,
  9713. id,
  9714. warnMissing
  9715. ) {
  9716. /* istanbul ignore if */
  9717. if (typeof id !== 'string') {
  9718. return
  9719. }
  9720. var assets = options[type];
  9721. // check local registration variations first
  9722. if (hasOwn(assets, id)) { return assets[id] }
  9723. var camelizedId = camelize(id);
  9724. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  9725. var PascalCaseId = capitalize(camelizedId);
  9726. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  9727. // fallback to prototype chain
  9728. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  9729. if ( true && warnMissing && !res) {
  9730. warn(
  9731. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  9732. options
  9733. );
  9734. }
  9735. return res
  9736. }
  9737. /* */
  9738. function validateProp (
  9739. key,
  9740. propOptions,
  9741. propsData,
  9742. vm
  9743. ) {
  9744. var prop = propOptions[key];
  9745. var absent = !hasOwn(propsData, key);
  9746. var value = propsData[key];
  9747. // boolean casting
  9748. var booleanIndex = getTypeIndex(Boolean, prop.type);
  9749. if (booleanIndex > -1) {
  9750. if (absent && !hasOwn(prop, 'default')) {
  9751. value = false;
  9752. } else if (value === '' || value === hyphenate(key)) {
  9753. // only cast empty string / same name to boolean if
  9754. // boolean has higher priority
  9755. var stringIndex = getTypeIndex(String, prop.type);
  9756. if (stringIndex < 0 || booleanIndex < stringIndex) {
  9757. value = true;
  9758. }
  9759. }
  9760. }
  9761. // check default value
  9762. if (value === undefined) {
  9763. value = getPropDefaultValue(vm, prop, key);
  9764. // since the default value is a fresh copy,
  9765. // make sure to observe it.
  9766. var prevShouldObserve = shouldObserve;
  9767. toggleObserving(true);
  9768. observe(value);
  9769. toggleObserving(prevShouldObserve);
  9770. }
  9771. if (
  9772. true
  9773. ) {
  9774. assertProp(prop, key, value, vm, absent);
  9775. }
  9776. return value
  9777. }
  9778. /**
  9779. * Get the default value of a prop.
  9780. */
  9781. function getPropDefaultValue (vm, prop, key) {
  9782. // no default, return undefined
  9783. if (!hasOwn(prop, 'default')) {
  9784. return undefined
  9785. }
  9786. var def = prop.default;
  9787. // warn against non-factory defaults for Object & Array
  9788. if ( true && isObject(def)) {
  9789. warn(
  9790. 'Invalid default value for prop "' + key + '": ' +
  9791. 'Props with type Object/Array must use a factory function ' +
  9792. 'to return the default value.',
  9793. vm
  9794. );
  9795. }
  9796. // the raw prop value was also undefined from previous render,
  9797. // return previous default value to avoid unnecessary watcher trigger
  9798. if (vm && vm.$options.propsData &&
  9799. vm.$options.propsData[key] === undefined &&
  9800. vm._props[key] !== undefined
  9801. ) {
  9802. return vm._props[key]
  9803. }
  9804. // call factory function for non-Function types
  9805. // a value is Function if its prototype is function even across different execution context
  9806. return typeof def === 'function' && getType(prop.type) !== 'Function'
  9807. ? def.call(vm)
  9808. : def
  9809. }
  9810. /**
  9811. * Assert whether a prop is valid.
  9812. */
  9813. function assertProp (
  9814. prop,
  9815. name,
  9816. value,
  9817. vm,
  9818. absent
  9819. ) {
  9820. if (prop.required && absent) {
  9821. warn(
  9822. 'Missing required prop: "' + name + '"',
  9823. vm
  9824. );
  9825. return
  9826. }
  9827. if (value == null && !prop.required) {
  9828. return
  9829. }
  9830. var type = prop.type;
  9831. var valid = !type || type === true;
  9832. var expectedTypes = [];
  9833. if (type) {
  9834. if (!Array.isArray(type)) {
  9835. type = [type];
  9836. }
  9837. for (var i = 0; i < type.length && !valid; i++) {
  9838. var assertedType = assertType(value, type[i]);
  9839. expectedTypes.push(assertedType.expectedType || '');
  9840. valid = assertedType.valid;
  9841. }
  9842. }
  9843. if (!valid) {
  9844. warn(
  9845. getInvalidTypeMessage(name, value, expectedTypes),
  9846. vm
  9847. );
  9848. return
  9849. }
  9850. var validator = prop.validator;
  9851. if (validator) {
  9852. if (!validator(value)) {
  9853. warn(
  9854. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  9855. vm
  9856. );
  9857. }
  9858. }
  9859. }
  9860. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  9861. function assertType (value, type) {
  9862. var valid;
  9863. var expectedType = getType(type);
  9864. if (simpleCheckRE.test(expectedType)) {
  9865. var t = typeof value;
  9866. valid = t === expectedType.toLowerCase();
  9867. // for primitive wrapper objects
  9868. if (!valid && t === 'object') {
  9869. valid = value instanceof type;
  9870. }
  9871. } else if (expectedType === 'Object') {
  9872. valid = isPlainObject(value);
  9873. } else if (expectedType === 'Array') {
  9874. valid = Array.isArray(value);
  9875. } else {
  9876. valid = value instanceof type;
  9877. }
  9878. return {
  9879. valid: valid,
  9880. expectedType: expectedType
  9881. }
  9882. }
  9883. /**
  9884. * Use function string name to check built-in types,
  9885. * because a simple equality check will fail when running
  9886. * across different vms / iframes.
  9887. */
  9888. function getType (fn) {
  9889. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  9890. return match ? match[1] : ''
  9891. }
  9892. function isSameType (a, b) {
  9893. return getType(a) === getType(b)
  9894. }
  9895. function getTypeIndex (type, expectedTypes) {
  9896. if (!Array.isArray(expectedTypes)) {
  9897. return isSameType(expectedTypes, type) ? 0 : -1
  9898. }
  9899. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  9900. if (isSameType(expectedTypes[i], type)) {
  9901. return i
  9902. }
  9903. }
  9904. return -1
  9905. }
  9906. function getInvalidTypeMessage (name, value, expectedTypes) {
  9907. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  9908. " Expected " + (expectedTypes.map(capitalize).join(', '));
  9909. var expectedType = expectedTypes[0];
  9910. var receivedType = toRawType(value);
  9911. var expectedValue = styleValue(value, expectedType);
  9912. var receivedValue = styleValue(value, receivedType);
  9913. // check if we need to specify expected value
  9914. if (expectedTypes.length === 1 &&
  9915. isExplicable(expectedType) &&
  9916. !isBoolean(expectedType, receivedType)) {
  9917. message += " with value " + expectedValue;
  9918. }
  9919. message += ", got " + receivedType + " ";
  9920. // check if we need to specify received value
  9921. if (isExplicable(receivedType)) {
  9922. message += "with value " + receivedValue + ".";
  9923. }
  9924. return message
  9925. }
  9926. function styleValue (value, type) {
  9927. if (type === 'String') {
  9928. return ("\"" + value + "\"")
  9929. } else if (type === 'Number') {
  9930. return ("" + (Number(value)))
  9931. } else {
  9932. return ("" + value)
  9933. }
  9934. }
  9935. function isExplicable (value) {
  9936. var explicitTypes = ['string', 'number', 'boolean'];
  9937. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  9938. }
  9939. function isBoolean () {
  9940. var args = [], len = arguments.length;
  9941. while ( len-- ) args[ len ] = arguments[ len ];
  9942. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  9943. }
  9944. /* */
  9945. function handleError (err, vm, info) {
  9946. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  9947. // See: https://github.com/vuejs/vuex/issues/1505
  9948. pushTarget();
  9949. try {
  9950. if (vm) {
  9951. var cur = vm;
  9952. while ((cur = cur.$parent)) {
  9953. var hooks = cur.$options.errorCaptured;
  9954. if (hooks) {
  9955. for (var i = 0; i < hooks.length; i++) {
  9956. try {
  9957. var capture = hooks[i].call(cur, err, vm, info) === false;
  9958. if (capture) { return }
  9959. } catch (e) {
  9960. globalHandleError(e, cur, 'errorCaptured hook');
  9961. }
  9962. }
  9963. }
  9964. }
  9965. }
  9966. globalHandleError(err, vm, info);
  9967. } finally {
  9968. popTarget();
  9969. }
  9970. }
  9971. function invokeWithErrorHandling (
  9972. handler,
  9973. context,
  9974. args,
  9975. vm,
  9976. info
  9977. ) {
  9978. var res;
  9979. try {
  9980. res = args ? handler.apply(context, args) : handler.call(context);
  9981. if (res && !res._isVue && isPromise(res) && !res._handled) {
  9982. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  9983. // issue #9511
  9984. // avoid catch triggering multiple times when nested calls
  9985. res._handled = true;
  9986. }
  9987. } catch (e) {
  9988. handleError(e, vm, info);
  9989. }
  9990. return res
  9991. }
  9992. function globalHandleError (err, vm, info) {
  9993. if (config.errorHandler) {
  9994. try {
  9995. return config.errorHandler.call(null, err, vm, info)
  9996. } catch (e) {
  9997. // if the user intentionally throws the original error in the handler,
  9998. // do not log it twice
  9999. if (e !== err) {
  10000. logError(e, null, 'config.errorHandler');
  10001. }
  10002. }
  10003. }
  10004. logError(err, vm, info);
  10005. }
  10006. function logError (err, vm, info) {
  10007. if (true) {
  10008. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  10009. }
  10010. /* istanbul ignore else */
  10011. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  10012. console.error(err);
  10013. } else {
  10014. throw err
  10015. }
  10016. }
  10017. /* */
  10018. var callbacks = [];
  10019. var pending = false;
  10020. function flushCallbacks () {
  10021. pending = false;
  10022. var copies = callbacks.slice(0);
  10023. callbacks.length = 0;
  10024. for (var i = 0; i < copies.length; i++) {
  10025. copies[i]();
  10026. }
  10027. }
  10028. // Here we have async deferring wrappers using microtasks.
  10029. // In 2.5 we used (macro) tasks (in combination with microtasks).
  10030. // However, it has subtle problems when state is changed right before repaint
  10031. // (e.g. #6813, out-in transitions).
  10032. // Also, using (macro) tasks in event handler would cause some weird behaviors
  10033. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  10034. // So we now use microtasks everywhere, again.
  10035. // A major drawback of this tradeoff is that there are some scenarios
  10036. // where microtasks have too high a priority and fire in between supposedly
  10037. // sequential events (e.g. #4521, #6690, which have workarounds)
  10038. // or even between bubbling of the same event (#6566).
  10039. var timerFunc;
  10040. // The nextTick behavior leverages the microtask queue, which can be accessed
  10041. // via either native Promise.then or MutationObserver.
  10042. // MutationObserver has wider support, however it is seriously bugged in
  10043. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  10044. // completely stops working after triggering a few times... so, if native
  10045. // Promise is available, we will use it:
  10046. /* istanbul ignore next, $flow-disable-line */
  10047. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  10048. var p = Promise.resolve();
  10049. timerFunc = function () {
  10050. p.then(flushCallbacks);
  10051. // In problematic UIWebViews, Promise.then doesn't completely break, but
  10052. // it can get stuck in a weird state where callbacks are pushed into the
  10053. // microtask queue but the queue isn't being flushed, until the browser
  10054. // needs to do some other work, e.g. handle a timer. Therefore we can
  10055. // "force" the microtask queue to be flushed by adding an empty timer.
  10056. if (isIOS) { setTimeout(noop); }
  10057. };
  10058. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  10059. isNative(MutationObserver) ||
  10060. // PhantomJS and iOS 7.x
  10061. MutationObserver.toString() === '[object MutationObserverConstructor]'
  10062. )) {
  10063. // Use MutationObserver where native Promise is not available,
  10064. // e.g. PhantomJS, iOS7, Android 4.4
  10065. // (#6466 MutationObserver is unreliable in IE11)
  10066. var counter = 1;
  10067. var observer = new MutationObserver(flushCallbacks);
  10068. var textNode = document.createTextNode(String(counter));
  10069. observer.observe(textNode, {
  10070. characterData: true
  10071. });
  10072. timerFunc = function () {
  10073. counter = (counter + 1) % 2;
  10074. textNode.data = String(counter);
  10075. };
  10076. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  10077. // Fallback to setImmediate.
  10078. // Technically it leverages the (macro) task queue,
  10079. // but it is still a better choice than setTimeout.
  10080. timerFunc = function () {
  10081. setImmediate(flushCallbacks);
  10082. };
  10083. } else {
  10084. // Fallback to setTimeout.
  10085. timerFunc = function () {
  10086. setTimeout(flushCallbacks, 0);
  10087. };
  10088. }
  10089. function nextTick (cb, ctx) {
  10090. var _resolve;
  10091. callbacks.push(function () {
  10092. if (cb) {
  10093. try {
  10094. cb.call(ctx);
  10095. } catch (e) {
  10096. handleError(e, ctx, 'nextTick');
  10097. }
  10098. } else if (_resolve) {
  10099. _resolve(ctx);
  10100. }
  10101. });
  10102. if (!pending) {
  10103. pending = true;
  10104. timerFunc();
  10105. }
  10106. // $flow-disable-line
  10107. if (!cb && typeof Promise !== 'undefined') {
  10108. return new Promise(function (resolve) {
  10109. _resolve = resolve;
  10110. })
  10111. }
  10112. }
  10113. /* */
  10114. /* not type checking this file because flow doesn't play well with Proxy */
  10115. var initProxy;
  10116. if (true) {
  10117. var allowedGlobals = makeMap(
  10118. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  10119. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  10120. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  10121. 'require' // for Webpack/Browserify
  10122. );
  10123. var warnNonPresent = function (target, key) {
  10124. warn(
  10125. "Property or method \"" + key + "\" is not defined on the instance but " +
  10126. 'referenced during render. Make sure that this property is reactive, ' +
  10127. 'either in the data option, or for class-based components, by ' +
  10128. 'initializing the property. ' +
  10129. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  10130. target
  10131. );
  10132. };
  10133. var warnReservedPrefix = function (target, key) {
  10134. warn(
  10135. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  10136. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  10137. 'prevent conflicts with Vue internals. ' +
  10138. 'See: https://vuejs.org/v2/api/#data',
  10139. target
  10140. );
  10141. };
  10142. var hasProxy =
  10143. typeof Proxy !== 'undefined' && isNative(Proxy);
  10144. if (hasProxy) {
  10145. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  10146. config.keyCodes = new Proxy(config.keyCodes, {
  10147. set: function set (target, key, value) {
  10148. if (isBuiltInModifier(key)) {
  10149. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  10150. return false
  10151. } else {
  10152. target[key] = value;
  10153. return true
  10154. }
  10155. }
  10156. });
  10157. }
  10158. var hasHandler = {
  10159. has: function has (target, key) {
  10160. var has = key in target;
  10161. var isAllowed = allowedGlobals(key) ||
  10162. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  10163. if (!has && !isAllowed) {
  10164. if (key in target.$data) { warnReservedPrefix(target, key); }
  10165. else { warnNonPresent(target, key); }
  10166. }
  10167. return has || !isAllowed
  10168. }
  10169. };
  10170. var getHandler = {
  10171. get: function get (target, key) {
  10172. if (typeof key === 'string' && !(key in target)) {
  10173. if (key in target.$data) { warnReservedPrefix(target, key); }
  10174. else { warnNonPresent(target, key); }
  10175. }
  10176. return target[key]
  10177. }
  10178. };
  10179. initProxy = function initProxy (vm) {
  10180. if (hasProxy) {
  10181. // determine which proxy handler to use
  10182. var options = vm.$options;
  10183. var handlers = options.render && options.render._withStripped
  10184. ? getHandler
  10185. : hasHandler;
  10186. vm._renderProxy = new Proxy(vm, handlers);
  10187. } else {
  10188. vm._renderProxy = vm;
  10189. }
  10190. };
  10191. }
  10192. /* */
  10193. var seenObjects = new _Set();
  10194. /**
  10195. * Recursively traverse an object to evoke all converted
  10196. * getters, so that every nested property inside the object
  10197. * is collected as a "deep" dependency.
  10198. */
  10199. function traverse (val) {
  10200. _traverse(val, seenObjects);
  10201. seenObjects.clear();
  10202. }
  10203. function _traverse (val, seen) {
  10204. var i, keys;
  10205. var isA = Array.isArray(val);
  10206. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  10207. return
  10208. }
  10209. if (val.__ob__) {
  10210. var depId = val.__ob__.dep.id;
  10211. if (seen.has(depId)) {
  10212. return
  10213. }
  10214. seen.add(depId);
  10215. }
  10216. if (isA) {
  10217. i = val.length;
  10218. while (i--) { _traverse(val[i], seen); }
  10219. } else {
  10220. keys = Object.keys(val);
  10221. i = keys.length;
  10222. while (i--) { _traverse(val[keys[i]], seen); }
  10223. }
  10224. }
  10225. var mark;
  10226. var measure;
  10227. if (true) {
  10228. var perf = inBrowser && window.performance;
  10229. /* istanbul ignore if */
  10230. if (
  10231. perf &&
  10232. perf.mark &&
  10233. perf.measure &&
  10234. perf.clearMarks &&
  10235. perf.clearMeasures
  10236. ) {
  10237. mark = function (tag) { return perf.mark(tag); };
  10238. measure = function (name, startTag, endTag) {
  10239. perf.measure(name, startTag, endTag);
  10240. perf.clearMarks(startTag);
  10241. perf.clearMarks(endTag);
  10242. // perf.clearMeasures(name)
  10243. };
  10244. }
  10245. }
  10246. /* */
  10247. var normalizeEvent = cached(function (name) {
  10248. var passive = name.charAt(0) === '&';
  10249. name = passive ? name.slice(1) : name;
  10250. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  10251. name = once$$1 ? name.slice(1) : name;
  10252. var capture = name.charAt(0) === '!';
  10253. name = capture ? name.slice(1) : name;
  10254. return {
  10255. name: name,
  10256. once: once$$1,
  10257. capture: capture,
  10258. passive: passive
  10259. }
  10260. });
  10261. function createFnInvoker (fns, vm) {
  10262. function invoker () {
  10263. var arguments$1 = arguments;
  10264. var fns = invoker.fns;
  10265. if (Array.isArray(fns)) {
  10266. var cloned = fns.slice();
  10267. for (var i = 0; i < cloned.length; i++) {
  10268. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  10269. }
  10270. } else {
  10271. // return handler return value for single handlers
  10272. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  10273. }
  10274. }
  10275. invoker.fns = fns;
  10276. return invoker
  10277. }
  10278. function updateListeners (
  10279. on,
  10280. oldOn,
  10281. add,
  10282. remove$$1,
  10283. createOnceHandler,
  10284. vm
  10285. ) {
  10286. var name, def$$1, cur, old, event;
  10287. for (name in on) {
  10288. def$$1 = cur = on[name];
  10289. old = oldOn[name];
  10290. event = normalizeEvent(name);
  10291. if (isUndef(cur)) {
  10292. true && warn(
  10293. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  10294. vm
  10295. );
  10296. } else if (isUndef(old)) {
  10297. if (isUndef(cur.fns)) {
  10298. cur = on[name] = createFnInvoker(cur, vm);
  10299. }
  10300. if (isTrue(event.once)) {
  10301. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  10302. }
  10303. add(event.name, cur, event.capture, event.passive, event.params);
  10304. } else if (cur !== old) {
  10305. old.fns = cur;
  10306. on[name] = old;
  10307. }
  10308. }
  10309. for (name in oldOn) {
  10310. if (isUndef(on[name])) {
  10311. event = normalizeEvent(name);
  10312. remove$$1(event.name, oldOn[name], event.capture);
  10313. }
  10314. }
  10315. }
  10316. /* */
  10317. /* */
  10318. // fixed by xxxxxx (mp properties)
  10319. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  10320. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  10321. if (isUndef(propOptions)) {
  10322. return res
  10323. }
  10324. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  10325. var attrs = data.attrs;
  10326. var props = data.props;
  10327. if (isDef(attrs) || isDef(props)) {
  10328. for (var key in propOptions) {
  10329. var altKey = hyphenate(key);
  10330. var result = checkProp(res, props, key, altKey, true) ||
  10331. checkProp(res, attrs, key, altKey, false);
  10332. // externalClass
  10333. if (
  10334. result &&
  10335. res[key] &&
  10336. externalClasses.indexOf(altKey) !== -1 &&
  10337. context[camelize(res[key])]
  10338. ) {
  10339. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  10340. res[key] = context[camelize(res[key])];
  10341. }
  10342. }
  10343. }
  10344. return res
  10345. }
  10346. function extractPropsFromVNodeData (
  10347. data,
  10348. Ctor,
  10349. tag,
  10350. context// fixed by xxxxxx
  10351. ) {
  10352. // we are only extracting raw values here.
  10353. // validation and default values are handled in the child
  10354. // component itself.
  10355. var propOptions = Ctor.options.props;
  10356. if (isUndef(propOptions)) {
  10357. // fixed by xxxxxx
  10358. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  10359. }
  10360. var res = {};
  10361. var attrs = data.attrs;
  10362. var props = data.props;
  10363. if (isDef(attrs) || isDef(props)) {
  10364. for (var key in propOptions) {
  10365. var altKey = hyphenate(key);
  10366. if (true) {
  10367. var keyInLowerCase = key.toLowerCase();
  10368. if (
  10369. key !== keyInLowerCase &&
  10370. attrs && hasOwn(attrs, keyInLowerCase)
  10371. ) {
  10372. tip(
  10373. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  10374. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  10375. " \"" + key + "\". " +
  10376. "Note that HTML attributes are case-insensitive and camelCased " +
  10377. "props need to use their kebab-case equivalents when using in-DOM " +
  10378. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  10379. );
  10380. }
  10381. }
  10382. checkProp(res, props, key, altKey, true) ||
  10383. checkProp(res, attrs, key, altKey, false);
  10384. }
  10385. }
  10386. // fixed by xxxxxx
  10387. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  10388. }
  10389. function checkProp (
  10390. res,
  10391. hash,
  10392. key,
  10393. altKey,
  10394. preserve
  10395. ) {
  10396. if (isDef(hash)) {
  10397. if (hasOwn(hash, key)) {
  10398. res[key] = hash[key];
  10399. if (!preserve) {
  10400. delete hash[key];
  10401. }
  10402. return true
  10403. } else if (hasOwn(hash, altKey)) {
  10404. res[key] = hash[altKey];
  10405. if (!preserve) {
  10406. delete hash[altKey];
  10407. }
  10408. return true
  10409. }
  10410. }
  10411. return false
  10412. }
  10413. /* */
  10414. // The template compiler attempts to minimize the need for normalization by
  10415. // statically analyzing the template at compile time.
  10416. //
  10417. // For plain HTML markup, normalization can be completely skipped because the
  10418. // generated render function is guaranteed to return Array<VNode>. There are
  10419. // two cases where extra normalization is needed:
  10420. // 1. When the children contains components - because a functional component
  10421. // may return an Array instead of a single root. In this case, just a simple
  10422. // normalization is needed - if any child is an Array, we flatten the whole
  10423. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  10424. // because functional components already normalize their own children.
  10425. function simpleNormalizeChildren (children) {
  10426. for (var i = 0; i < children.length; i++) {
  10427. if (Array.isArray(children[i])) {
  10428. return Array.prototype.concat.apply([], children)
  10429. }
  10430. }
  10431. return children
  10432. }
  10433. // 2. When the children contains constructs that always generated nested Arrays,
  10434. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  10435. // with hand-written render functions / JSX. In such cases a full normalization
  10436. // is needed to cater to all possible types of children values.
  10437. function normalizeChildren (children) {
  10438. return isPrimitive(children)
  10439. ? [createTextVNode(children)]
  10440. : Array.isArray(children)
  10441. ? normalizeArrayChildren(children)
  10442. : undefined
  10443. }
  10444. function isTextNode (node) {
  10445. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  10446. }
  10447. function normalizeArrayChildren (children, nestedIndex) {
  10448. var res = [];
  10449. var i, c, lastIndex, last;
  10450. for (i = 0; i < children.length; i++) {
  10451. c = children[i];
  10452. if (isUndef(c) || typeof c === 'boolean') { continue }
  10453. lastIndex = res.length - 1;
  10454. last = res[lastIndex];
  10455. // nested
  10456. if (Array.isArray(c)) {
  10457. if (c.length > 0) {
  10458. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  10459. // merge adjacent text nodes
  10460. if (isTextNode(c[0]) && isTextNode(last)) {
  10461. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  10462. c.shift();
  10463. }
  10464. res.push.apply(res, c);
  10465. }
  10466. } else if (isPrimitive(c)) {
  10467. if (isTextNode(last)) {
  10468. // merge adjacent text nodes
  10469. // this is necessary for SSR hydration because text nodes are
  10470. // essentially merged when rendered to HTML strings
  10471. res[lastIndex] = createTextVNode(last.text + c);
  10472. } else if (c !== '') {
  10473. // convert primitive to vnode
  10474. res.push(createTextVNode(c));
  10475. }
  10476. } else {
  10477. if (isTextNode(c) && isTextNode(last)) {
  10478. // merge adjacent text nodes
  10479. res[lastIndex] = createTextVNode(last.text + c.text);
  10480. } else {
  10481. // default key for nested array children (likely generated by v-for)
  10482. if (isTrue(children._isVList) &&
  10483. isDef(c.tag) &&
  10484. isUndef(c.key) &&
  10485. isDef(nestedIndex)) {
  10486. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  10487. }
  10488. res.push(c);
  10489. }
  10490. }
  10491. }
  10492. return res
  10493. }
  10494. /* */
  10495. function initProvide (vm) {
  10496. var provide = vm.$options.provide;
  10497. if (provide) {
  10498. vm._provided = typeof provide === 'function'
  10499. ? provide.call(vm)
  10500. : provide;
  10501. }
  10502. }
  10503. function initInjections (vm) {
  10504. var result = resolveInject(vm.$options.inject, vm);
  10505. if (result) {
  10506. toggleObserving(false);
  10507. Object.keys(result).forEach(function (key) {
  10508. /* istanbul ignore else */
  10509. if (true) {
  10510. defineReactive$$1(vm, key, result[key], function () {
  10511. warn(
  10512. "Avoid mutating an injected value directly since the changes will be " +
  10513. "overwritten whenever the provided component re-renders. " +
  10514. "injection being mutated: \"" + key + "\"",
  10515. vm
  10516. );
  10517. });
  10518. } else {}
  10519. });
  10520. toggleObserving(true);
  10521. }
  10522. }
  10523. function resolveInject (inject, vm) {
  10524. if (inject) {
  10525. // inject is :any because flow is not smart enough to figure out cached
  10526. var result = Object.create(null);
  10527. var keys = hasSymbol
  10528. ? Reflect.ownKeys(inject)
  10529. : Object.keys(inject);
  10530. for (var i = 0; i < keys.length; i++) {
  10531. var key = keys[i];
  10532. // #6574 in case the inject object is observed...
  10533. if (key === '__ob__') { continue }
  10534. var provideKey = inject[key].from;
  10535. var source = vm;
  10536. while (source) {
  10537. if (source._provided && hasOwn(source._provided, provideKey)) {
  10538. result[key] = source._provided[provideKey];
  10539. break
  10540. }
  10541. source = source.$parent;
  10542. }
  10543. if (!source) {
  10544. if ('default' in inject[key]) {
  10545. var provideDefault = inject[key].default;
  10546. result[key] = typeof provideDefault === 'function'
  10547. ? provideDefault.call(vm)
  10548. : provideDefault;
  10549. } else if (true) {
  10550. warn(("Injection \"" + key + "\" not found"), vm);
  10551. }
  10552. }
  10553. }
  10554. return result
  10555. }
  10556. }
  10557. /* */
  10558. /**
  10559. * Runtime helper for resolving raw children VNodes into a slot object.
  10560. */
  10561. function resolveSlots (
  10562. children,
  10563. context
  10564. ) {
  10565. if (!children || !children.length) {
  10566. return {}
  10567. }
  10568. var slots = {};
  10569. for (var i = 0, l = children.length; i < l; i++) {
  10570. var child = children[i];
  10571. var data = child.data;
  10572. // remove slot attribute if the node is resolved as a Vue slot node
  10573. if (data && data.attrs && data.attrs.slot) {
  10574. delete data.attrs.slot;
  10575. }
  10576. // named slots should only be respected if the vnode was rendered in the
  10577. // same context.
  10578. if ((child.context === context || child.fnContext === context) &&
  10579. data && data.slot != null
  10580. ) {
  10581. var name = data.slot;
  10582. var slot = (slots[name] || (slots[name] = []));
  10583. if (child.tag === 'template') {
  10584. slot.push.apply(slot, child.children || []);
  10585. } else {
  10586. slot.push(child);
  10587. }
  10588. } else {
  10589. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  10590. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  10591. (slots['page'] || (slots['page'] = [])).push(child);
  10592. }else{
  10593. (slots.default || (slots.default = [])).push(child);
  10594. }
  10595. }
  10596. }
  10597. // ignore slots that contains only whitespace
  10598. for (var name$1 in slots) {
  10599. if (slots[name$1].every(isWhitespace)) {
  10600. delete slots[name$1];
  10601. }
  10602. }
  10603. return slots
  10604. }
  10605. function isWhitespace (node) {
  10606. return (node.isComment && !node.asyncFactory) || node.text === ' '
  10607. }
  10608. /* */
  10609. function normalizeScopedSlots (
  10610. slots,
  10611. normalSlots,
  10612. prevSlots
  10613. ) {
  10614. var res;
  10615. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  10616. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  10617. var key = slots && slots.$key;
  10618. if (!slots) {
  10619. res = {};
  10620. } else if (slots._normalized) {
  10621. // fast path 1: child component re-render only, parent did not change
  10622. return slots._normalized
  10623. } else if (
  10624. isStable &&
  10625. prevSlots &&
  10626. prevSlots !== emptyObject &&
  10627. key === prevSlots.$key &&
  10628. !hasNormalSlots &&
  10629. !prevSlots.$hasNormal
  10630. ) {
  10631. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  10632. // only need to normalize once
  10633. return prevSlots
  10634. } else {
  10635. res = {};
  10636. for (var key$1 in slots) {
  10637. if (slots[key$1] && key$1[0] !== '$') {
  10638. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  10639. }
  10640. }
  10641. }
  10642. // expose normal slots on scopedSlots
  10643. for (var key$2 in normalSlots) {
  10644. if (!(key$2 in res)) {
  10645. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  10646. }
  10647. }
  10648. // avoriaz seems to mock a non-extensible $scopedSlots object
  10649. // and when that is passed down this would cause an error
  10650. if (slots && Object.isExtensible(slots)) {
  10651. (slots)._normalized = res;
  10652. }
  10653. def(res, '$stable', isStable);
  10654. def(res, '$key', key);
  10655. def(res, '$hasNormal', hasNormalSlots);
  10656. return res
  10657. }
  10658. function normalizeScopedSlot(normalSlots, key, fn) {
  10659. var normalized = function () {
  10660. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  10661. res = res && typeof res === 'object' && !Array.isArray(res)
  10662. ? [res] // single vnode
  10663. : normalizeChildren(res);
  10664. return res && (
  10665. res.length === 0 ||
  10666. (res.length === 1 && res[0].isComment) // #9658
  10667. ) ? undefined
  10668. : res
  10669. };
  10670. // this is a slot using the new v-slot syntax without scope. although it is
  10671. // compiled as a scoped slot, render fn users would expect it to be present
  10672. // on this.$slots because the usage is semantically a normal slot.
  10673. if (fn.proxy) {
  10674. Object.defineProperty(normalSlots, key, {
  10675. get: normalized,
  10676. enumerable: true,
  10677. configurable: true
  10678. });
  10679. }
  10680. return normalized
  10681. }
  10682. function proxyNormalSlot(slots, key) {
  10683. return function () { return slots[key]; }
  10684. }
  10685. /* */
  10686. /**
  10687. * Runtime helper for rendering v-for lists.
  10688. */
  10689. function renderList (
  10690. val,
  10691. render
  10692. ) {
  10693. var ret, i, l, keys, key;
  10694. if (Array.isArray(val) || typeof val === 'string') {
  10695. ret = new Array(val.length);
  10696. for (i = 0, l = val.length; i < l; i++) {
  10697. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  10698. }
  10699. } else if (typeof val === 'number') {
  10700. ret = new Array(val);
  10701. for (i = 0; i < val; i++) {
  10702. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  10703. }
  10704. } else if (isObject(val)) {
  10705. if (hasSymbol && val[Symbol.iterator]) {
  10706. ret = [];
  10707. var iterator = val[Symbol.iterator]();
  10708. var result = iterator.next();
  10709. while (!result.done) {
  10710. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  10711. result = iterator.next();
  10712. }
  10713. } else {
  10714. keys = Object.keys(val);
  10715. ret = new Array(keys.length);
  10716. for (i = 0, l = keys.length; i < l; i++) {
  10717. key = keys[i];
  10718. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  10719. }
  10720. }
  10721. }
  10722. if (!isDef(ret)) {
  10723. ret = [];
  10724. }
  10725. (ret)._isVList = true;
  10726. return ret
  10727. }
  10728. /* */
  10729. /**
  10730. * Runtime helper for rendering <slot>
  10731. */
  10732. function renderSlot (
  10733. name,
  10734. fallback,
  10735. props,
  10736. bindObject
  10737. ) {
  10738. var scopedSlotFn = this.$scopedSlots[name];
  10739. var nodes;
  10740. if (scopedSlotFn) { // scoped slot
  10741. props = props || {};
  10742. if (bindObject) {
  10743. if ( true && !isObject(bindObject)) {
  10744. warn(
  10745. 'slot v-bind without argument expects an Object',
  10746. this
  10747. );
  10748. }
  10749. props = extend(extend({}, bindObject), props);
  10750. }
  10751. // fixed by xxxxxx app-plus scopedSlot
  10752. nodes = scopedSlotFn(props, this, props._i) || fallback;
  10753. } else {
  10754. nodes = this.$slots[name] || fallback;
  10755. }
  10756. var target = props && props.slot;
  10757. if (target) {
  10758. return this.$createElement('template', { slot: target }, nodes)
  10759. } else {
  10760. return nodes
  10761. }
  10762. }
  10763. /* */
  10764. /**
  10765. * Runtime helper for resolving filters
  10766. */
  10767. function resolveFilter (id) {
  10768. return resolveAsset(this.$options, 'filters', id, true) || identity
  10769. }
  10770. /* */
  10771. function isKeyNotMatch (expect, actual) {
  10772. if (Array.isArray(expect)) {
  10773. return expect.indexOf(actual) === -1
  10774. } else {
  10775. return expect !== actual
  10776. }
  10777. }
  10778. /**
  10779. * Runtime helper for checking keyCodes from config.
  10780. * exposed as Vue.prototype._k
  10781. * passing in eventKeyName as last argument separately for backwards compat
  10782. */
  10783. function checkKeyCodes (
  10784. eventKeyCode,
  10785. key,
  10786. builtInKeyCode,
  10787. eventKeyName,
  10788. builtInKeyName
  10789. ) {
  10790. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  10791. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  10792. return isKeyNotMatch(builtInKeyName, eventKeyName)
  10793. } else if (mappedKeyCode) {
  10794. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  10795. } else if (eventKeyName) {
  10796. return hyphenate(eventKeyName) !== key
  10797. }
  10798. }
  10799. /* */
  10800. /**
  10801. * Runtime helper for merging v-bind="object" into a VNode's data.
  10802. */
  10803. function bindObjectProps (
  10804. data,
  10805. tag,
  10806. value,
  10807. asProp,
  10808. isSync
  10809. ) {
  10810. if (value) {
  10811. if (!isObject(value)) {
  10812. true && warn(
  10813. 'v-bind without argument expects an Object or Array value',
  10814. this
  10815. );
  10816. } else {
  10817. if (Array.isArray(value)) {
  10818. value = toObject(value);
  10819. }
  10820. var hash;
  10821. var loop = function ( key ) {
  10822. if (
  10823. key === 'class' ||
  10824. key === 'style' ||
  10825. isReservedAttribute(key)
  10826. ) {
  10827. hash = data;
  10828. } else {
  10829. var type = data.attrs && data.attrs.type;
  10830. hash = asProp || config.mustUseProp(tag, type, key)
  10831. ? data.domProps || (data.domProps = {})
  10832. : data.attrs || (data.attrs = {});
  10833. }
  10834. var camelizedKey = camelize(key);
  10835. var hyphenatedKey = hyphenate(key);
  10836. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  10837. hash[key] = value[key];
  10838. if (isSync) {
  10839. var on = data.on || (data.on = {});
  10840. on[("update:" + key)] = function ($event) {
  10841. value[key] = $event;
  10842. };
  10843. }
  10844. }
  10845. };
  10846. for (var key in value) loop( key );
  10847. }
  10848. }
  10849. return data
  10850. }
  10851. /* */
  10852. /**
  10853. * Runtime helper for rendering static trees.
  10854. */
  10855. function renderStatic (
  10856. index,
  10857. isInFor
  10858. ) {
  10859. var cached = this._staticTrees || (this._staticTrees = []);
  10860. var tree = cached[index];
  10861. // if has already-rendered static tree and not inside v-for,
  10862. // we can reuse the same tree.
  10863. if (tree && !isInFor) {
  10864. return tree
  10865. }
  10866. // otherwise, render a fresh tree.
  10867. tree = cached[index] = this.$options.staticRenderFns[index].call(
  10868. this._renderProxy,
  10869. null,
  10870. this // for render fns generated for functional component templates
  10871. );
  10872. markStatic(tree, ("__static__" + index), false);
  10873. return tree
  10874. }
  10875. /**
  10876. * Runtime helper for v-once.
  10877. * Effectively it means marking the node as static with a unique key.
  10878. */
  10879. function markOnce (
  10880. tree,
  10881. index,
  10882. key
  10883. ) {
  10884. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  10885. return tree
  10886. }
  10887. function markStatic (
  10888. tree,
  10889. key,
  10890. isOnce
  10891. ) {
  10892. if (Array.isArray(tree)) {
  10893. for (var i = 0; i < tree.length; i++) {
  10894. if (tree[i] && typeof tree[i] !== 'string') {
  10895. markStaticNode(tree[i], (key + "_" + i), isOnce);
  10896. }
  10897. }
  10898. } else {
  10899. markStaticNode(tree, key, isOnce);
  10900. }
  10901. }
  10902. function markStaticNode (node, key, isOnce) {
  10903. node.isStatic = true;
  10904. node.key = key;
  10905. node.isOnce = isOnce;
  10906. }
  10907. /* */
  10908. function bindObjectListeners (data, value) {
  10909. if (value) {
  10910. if (!isPlainObject(value)) {
  10911. true && warn(
  10912. 'v-on without argument expects an Object value',
  10913. this
  10914. );
  10915. } else {
  10916. var on = data.on = data.on ? extend({}, data.on) : {};
  10917. for (var key in value) {
  10918. var existing = on[key];
  10919. var ours = value[key];
  10920. on[key] = existing ? [].concat(existing, ours) : ours;
  10921. }
  10922. }
  10923. }
  10924. return data
  10925. }
  10926. /* */
  10927. function resolveScopedSlots (
  10928. fns, // see flow/vnode
  10929. res,
  10930. // the following are added in 2.6
  10931. hasDynamicKeys,
  10932. contentHashKey
  10933. ) {
  10934. res = res || { $stable: !hasDynamicKeys };
  10935. for (var i = 0; i < fns.length; i++) {
  10936. var slot = fns[i];
  10937. if (Array.isArray(slot)) {
  10938. resolveScopedSlots(slot, res, hasDynamicKeys);
  10939. } else if (slot) {
  10940. // marker for reverse proxying v-slot without scope on this.$slots
  10941. if (slot.proxy) {
  10942. slot.fn.proxy = true;
  10943. }
  10944. res[slot.key] = slot.fn;
  10945. }
  10946. }
  10947. if (contentHashKey) {
  10948. (res).$key = contentHashKey;
  10949. }
  10950. return res
  10951. }
  10952. /* */
  10953. function bindDynamicKeys (baseObj, values) {
  10954. for (var i = 0; i < values.length; i += 2) {
  10955. var key = values[i];
  10956. if (typeof key === 'string' && key) {
  10957. baseObj[values[i]] = values[i + 1];
  10958. } else if ( true && key !== '' && key !== null) {
  10959. // null is a special value for explicitly removing a binding
  10960. warn(
  10961. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  10962. this
  10963. );
  10964. }
  10965. }
  10966. return baseObj
  10967. }
  10968. // helper to dynamically append modifier runtime markers to event names.
  10969. // ensure only append when value is already string, otherwise it will be cast
  10970. // to string and cause the type check to miss.
  10971. function prependModifier (value, symbol) {
  10972. return typeof value === 'string' ? symbol + value : value
  10973. }
  10974. /* */
  10975. function installRenderHelpers (target) {
  10976. target._o = markOnce;
  10977. target._n = toNumber;
  10978. target._s = toString;
  10979. target._l = renderList;
  10980. target._t = renderSlot;
  10981. target._q = looseEqual;
  10982. target._i = looseIndexOf;
  10983. target._m = renderStatic;
  10984. target._f = resolveFilter;
  10985. target._k = checkKeyCodes;
  10986. target._b = bindObjectProps;
  10987. target._v = createTextVNode;
  10988. target._e = createEmptyVNode;
  10989. target._u = resolveScopedSlots;
  10990. target._g = bindObjectListeners;
  10991. target._d = bindDynamicKeys;
  10992. target._p = prependModifier;
  10993. }
  10994. /* */
  10995. function FunctionalRenderContext (
  10996. data,
  10997. props,
  10998. children,
  10999. parent,
  11000. Ctor
  11001. ) {
  11002. var this$1 = this;
  11003. var options = Ctor.options;
  11004. // ensure the createElement function in functional components
  11005. // gets a unique context - this is necessary for correct named slot check
  11006. var contextVm;
  11007. if (hasOwn(parent, '_uid')) {
  11008. contextVm = Object.create(parent);
  11009. // $flow-disable-line
  11010. contextVm._original = parent;
  11011. } else {
  11012. // the context vm passed in is a functional context as well.
  11013. // in this case we want to make sure we are able to get a hold to the
  11014. // real context instance.
  11015. contextVm = parent;
  11016. // $flow-disable-line
  11017. parent = parent._original;
  11018. }
  11019. var isCompiled = isTrue(options._compiled);
  11020. var needNormalization = !isCompiled;
  11021. this.data = data;
  11022. this.props = props;
  11023. this.children = children;
  11024. this.parent = parent;
  11025. this.listeners = data.on || emptyObject;
  11026. this.injections = resolveInject(options.inject, parent);
  11027. this.slots = function () {
  11028. if (!this$1.$slots) {
  11029. normalizeScopedSlots(
  11030. data.scopedSlots,
  11031. this$1.$slots = resolveSlots(children, parent)
  11032. );
  11033. }
  11034. return this$1.$slots
  11035. };
  11036. Object.defineProperty(this, 'scopedSlots', ({
  11037. enumerable: true,
  11038. get: function get () {
  11039. return normalizeScopedSlots(data.scopedSlots, this.slots())
  11040. }
  11041. }));
  11042. // support for compiled functional template
  11043. if (isCompiled) {
  11044. // exposing $options for renderStatic()
  11045. this.$options = options;
  11046. // pre-resolve slots for renderSlot()
  11047. this.$slots = this.slots();
  11048. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  11049. }
  11050. if (options._scopeId) {
  11051. this._c = function (a, b, c, d) {
  11052. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  11053. if (vnode && !Array.isArray(vnode)) {
  11054. vnode.fnScopeId = options._scopeId;
  11055. vnode.fnContext = parent;
  11056. }
  11057. return vnode
  11058. };
  11059. } else {
  11060. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  11061. }
  11062. }
  11063. installRenderHelpers(FunctionalRenderContext.prototype);
  11064. function createFunctionalComponent (
  11065. Ctor,
  11066. propsData,
  11067. data,
  11068. contextVm,
  11069. children
  11070. ) {
  11071. var options = Ctor.options;
  11072. var props = {};
  11073. var propOptions = options.props;
  11074. if (isDef(propOptions)) {
  11075. for (var key in propOptions) {
  11076. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  11077. }
  11078. } else {
  11079. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  11080. if (isDef(data.props)) { mergeProps(props, data.props); }
  11081. }
  11082. var renderContext = new FunctionalRenderContext(
  11083. data,
  11084. props,
  11085. children,
  11086. contextVm,
  11087. Ctor
  11088. );
  11089. var vnode = options.render.call(null, renderContext._c, renderContext);
  11090. if (vnode instanceof VNode) {
  11091. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  11092. } else if (Array.isArray(vnode)) {
  11093. var vnodes = normalizeChildren(vnode) || [];
  11094. var res = new Array(vnodes.length);
  11095. for (var i = 0; i < vnodes.length; i++) {
  11096. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  11097. }
  11098. return res
  11099. }
  11100. }
  11101. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  11102. // #7817 clone node before setting fnContext, otherwise if the node is reused
  11103. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  11104. // that should not be matched to match.
  11105. var clone = cloneVNode(vnode);
  11106. clone.fnContext = contextVm;
  11107. clone.fnOptions = options;
  11108. if (true) {
  11109. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  11110. }
  11111. if (data.slot) {
  11112. (clone.data || (clone.data = {})).slot = data.slot;
  11113. }
  11114. return clone
  11115. }
  11116. function mergeProps (to, from) {
  11117. for (var key in from) {
  11118. to[camelize(key)] = from[key];
  11119. }
  11120. }
  11121. /* */
  11122. /* */
  11123. /* */
  11124. /* */
  11125. // inline hooks to be invoked on component VNodes during patch
  11126. var componentVNodeHooks = {
  11127. init: function init (vnode, hydrating) {
  11128. if (
  11129. vnode.componentInstance &&
  11130. !vnode.componentInstance._isDestroyed &&
  11131. vnode.data.keepAlive
  11132. ) {
  11133. // kept-alive components, treat as a patch
  11134. var mountedNode = vnode; // work around flow
  11135. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  11136. } else {
  11137. var child = vnode.componentInstance = createComponentInstanceForVnode(
  11138. vnode,
  11139. activeInstance
  11140. );
  11141. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  11142. }
  11143. },
  11144. prepatch: function prepatch (oldVnode, vnode) {
  11145. var options = vnode.componentOptions;
  11146. var child = vnode.componentInstance = oldVnode.componentInstance;
  11147. updateChildComponent(
  11148. child,
  11149. options.propsData, // updated props
  11150. options.listeners, // updated listeners
  11151. vnode, // new parent vnode
  11152. options.children // new children
  11153. );
  11154. },
  11155. insert: function insert (vnode) {
  11156. var context = vnode.context;
  11157. var componentInstance = vnode.componentInstance;
  11158. if (!componentInstance._isMounted) {
  11159. callHook(componentInstance, 'onServiceCreated');
  11160. callHook(componentInstance, 'onServiceAttached');
  11161. componentInstance._isMounted = true;
  11162. callHook(componentInstance, 'mounted');
  11163. }
  11164. if (vnode.data.keepAlive) {
  11165. if (context._isMounted) {
  11166. // vue-router#1212
  11167. // During updates, a kept-alive component's child components may
  11168. // change, so directly walking the tree here may call activated hooks
  11169. // on incorrect children. Instead we push them into a queue which will
  11170. // be processed after the whole patch process ended.
  11171. queueActivatedComponent(componentInstance);
  11172. } else {
  11173. activateChildComponent(componentInstance, true /* direct */);
  11174. }
  11175. }
  11176. },
  11177. destroy: function destroy (vnode) {
  11178. var componentInstance = vnode.componentInstance;
  11179. if (!componentInstance._isDestroyed) {
  11180. if (!vnode.data.keepAlive) {
  11181. componentInstance.$destroy();
  11182. } else {
  11183. deactivateChildComponent(componentInstance, true /* direct */);
  11184. }
  11185. }
  11186. }
  11187. };
  11188. var hooksToMerge = Object.keys(componentVNodeHooks);
  11189. function createComponent (
  11190. Ctor,
  11191. data,
  11192. context,
  11193. children,
  11194. tag
  11195. ) {
  11196. if (isUndef(Ctor)) {
  11197. return
  11198. }
  11199. var baseCtor = context.$options._base;
  11200. // plain options object: turn it into a constructor
  11201. if (isObject(Ctor)) {
  11202. Ctor = baseCtor.extend(Ctor);
  11203. }
  11204. // if at this stage it's not a constructor or an async component factory,
  11205. // reject.
  11206. if (typeof Ctor !== 'function') {
  11207. if (true) {
  11208. warn(("Invalid Component definition: " + (String(Ctor))), context);
  11209. }
  11210. return
  11211. }
  11212. // async component
  11213. var asyncFactory;
  11214. if (isUndef(Ctor.cid)) {
  11215. asyncFactory = Ctor;
  11216. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  11217. if (Ctor === undefined) {
  11218. // return a placeholder node for async component, which is rendered
  11219. // as a comment node but preserves all the raw information for the node.
  11220. // the information will be used for async server-rendering and hydration.
  11221. return createAsyncPlaceholder(
  11222. asyncFactory,
  11223. data,
  11224. context,
  11225. children,
  11226. tag
  11227. )
  11228. }
  11229. }
  11230. data = data || {};
  11231. // resolve constructor options in case global mixins are applied after
  11232. // component constructor creation
  11233. resolveConstructorOptions(Ctor);
  11234. // transform component v-model data into props & events
  11235. if (isDef(data.model)) {
  11236. transformModel(Ctor.options, data);
  11237. }
  11238. // extract props
  11239. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  11240. // functional component
  11241. if (isTrue(Ctor.options.functional)) {
  11242. return createFunctionalComponent(Ctor, propsData, data, context, children)
  11243. }
  11244. // extract listeners, since these needs to be treated as
  11245. // child component listeners instead of DOM listeners
  11246. var listeners = data.on;
  11247. // replace with listeners with .native modifier
  11248. // so it gets processed during parent component patch.
  11249. data.on = data.nativeOn;
  11250. if (isTrue(Ctor.options.abstract)) {
  11251. // abstract components do not keep anything
  11252. // other than props & listeners & slot
  11253. // work around flow
  11254. var slot = data.slot;
  11255. data = {};
  11256. if (slot) {
  11257. data.slot = slot;
  11258. }
  11259. }
  11260. // install component management hooks onto the placeholder node
  11261. installComponentHooks(data);
  11262. // return a placeholder vnode
  11263. var name = Ctor.options.name || tag;
  11264. var vnode = new VNode(
  11265. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  11266. data, undefined, undefined, undefined, context,
  11267. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  11268. asyncFactory
  11269. );
  11270. return vnode
  11271. }
  11272. function createComponentInstanceForVnode (
  11273. vnode, // we know it's MountedComponentVNode but flow doesn't
  11274. parent // activeInstance in lifecycle state
  11275. ) {
  11276. var options = {
  11277. _isComponent: true,
  11278. _parentVnode: vnode,
  11279. parent: parent
  11280. };
  11281. // check inline-template render functions
  11282. var inlineTemplate = vnode.data.inlineTemplate;
  11283. if (isDef(inlineTemplate)) {
  11284. options.render = inlineTemplate.render;
  11285. options.staticRenderFns = inlineTemplate.staticRenderFns;
  11286. }
  11287. return new vnode.componentOptions.Ctor(options)
  11288. }
  11289. function installComponentHooks (data) {
  11290. var hooks = data.hook || (data.hook = {});
  11291. for (var i = 0; i < hooksToMerge.length; i++) {
  11292. var key = hooksToMerge[i];
  11293. var existing = hooks[key];
  11294. var toMerge = componentVNodeHooks[key];
  11295. if (existing !== toMerge && !(existing && existing._merged)) {
  11296. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  11297. }
  11298. }
  11299. }
  11300. function mergeHook$1 (f1, f2) {
  11301. var merged = function (a, b) {
  11302. // flow complains about extra args which is why we use any
  11303. f1(a, b);
  11304. f2(a, b);
  11305. };
  11306. merged._merged = true;
  11307. return merged
  11308. }
  11309. // transform component v-model info (value and callback) into
  11310. // prop and event handler respectively.
  11311. function transformModel (options, data) {
  11312. var prop = (options.model && options.model.prop) || 'value';
  11313. var event = (options.model && options.model.event) || 'input'
  11314. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  11315. var on = data.on || (data.on = {});
  11316. var existing = on[event];
  11317. var callback = data.model.callback;
  11318. if (isDef(existing)) {
  11319. if (
  11320. Array.isArray(existing)
  11321. ? existing.indexOf(callback) === -1
  11322. : existing !== callback
  11323. ) {
  11324. on[event] = [callback].concat(existing);
  11325. }
  11326. } else {
  11327. on[event] = callback;
  11328. }
  11329. }
  11330. /* */
  11331. var SIMPLE_NORMALIZE = 1;
  11332. var ALWAYS_NORMALIZE = 2;
  11333. // wrapper function for providing a more flexible interface
  11334. // without getting yelled at by flow
  11335. function createElement (
  11336. context,
  11337. tag,
  11338. data,
  11339. children,
  11340. normalizationType,
  11341. alwaysNormalize
  11342. ) {
  11343. if (Array.isArray(data) || isPrimitive(data)) {
  11344. normalizationType = children;
  11345. children = data;
  11346. data = undefined;
  11347. }
  11348. if (isTrue(alwaysNormalize)) {
  11349. normalizationType = ALWAYS_NORMALIZE;
  11350. }
  11351. return _createElement(context, tag, data, children, normalizationType)
  11352. }
  11353. function _createElement (
  11354. context,
  11355. tag,
  11356. data,
  11357. children,
  11358. normalizationType
  11359. ) {
  11360. if (isDef(data) && isDef((data).__ob__)) {
  11361. true && warn(
  11362. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  11363. 'Always create fresh vnode data objects in each render!',
  11364. context
  11365. );
  11366. return createEmptyVNode()
  11367. }
  11368. // object syntax in v-bind
  11369. if (isDef(data) && isDef(data.is)) {
  11370. tag = data.is;
  11371. }
  11372. if (!tag) {
  11373. // in case of component :is set to falsy value
  11374. return createEmptyVNode()
  11375. }
  11376. // warn against non-primitive key
  11377. if ( true &&
  11378. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  11379. ) {
  11380. {
  11381. warn(
  11382. 'Avoid using non-primitive value as key, ' +
  11383. 'use string/number value instead.',
  11384. context
  11385. );
  11386. }
  11387. }
  11388. // support single function children as default scoped slot
  11389. if (Array.isArray(children) &&
  11390. typeof children[0] === 'function'
  11391. ) {
  11392. data = data || {};
  11393. data.scopedSlots = { default: children[0] };
  11394. children.length = 0;
  11395. }
  11396. if (normalizationType === ALWAYS_NORMALIZE) {
  11397. children = normalizeChildren(children);
  11398. } else if (normalizationType === SIMPLE_NORMALIZE) {
  11399. children = simpleNormalizeChildren(children);
  11400. }
  11401. var vnode, ns;
  11402. if (typeof tag === 'string') {
  11403. var Ctor;
  11404. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  11405. if (config.isReservedTag(tag)) {
  11406. // platform built-in elements
  11407. if ( true && isDef(data) && isDef(data.nativeOn)) {
  11408. warn(
  11409. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  11410. context
  11411. );
  11412. }
  11413. vnode = new VNode(
  11414. config.parsePlatformTagName(tag), data, children,
  11415. undefined, undefined, context
  11416. );
  11417. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  11418. // component
  11419. vnode = createComponent(Ctor, data, context, children, tag);
  11420. } else {
  11421. // unknown or unlisted namespaced elements
  11422. // check at runtime because it may get assigned a namespace when its
  11423. // parent normalizes children
  11424. vnode = new VNode(
  11425. tag, data, children,
  11426. undefined, undefined, context
  11427. );
  11428. }
  11429. } else {
  11430. // direct component options / constructor
  11431. vnode = createComponent(tag, data, context, children);
  11432. }
  11433. if (Array.isArray(vnode)) {
  11434. return vnode
  11435. } else if (isDef(vnode)) {
  11436. if (isDef(ns)) { applyNS(vnode, ns); }
  11437. if (isDef(data)) { registerDeepBindings(data); }
  11438. return vnode
  11439. } else {
  11440. return createEmptyVNode()
  11441. }
  11442. }
  11443. function applyNS (vnode, ns, force) {
  11444. vnode.ns = ns;
  11445. if (vnode.tag === 'foreignObject') {
  11446. // use default namespace inside foreignObject
  11447. ns = undefined;
  11448. force = true;
  11449. }
  11450. if (isDef(vnode.children)) {
  11451. for (var i = 0, l = vnode.children.length; i < l; i++) {
  11452. var child = vnode.children[i];
  11453. if (isDef(child.tag) && (
  11454. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  11455. applyNS(child, ns, force);
  11456. }
  11457. }
  11458. }
  11459. }
  11460. // ref #5318
  11461. // necessary to ensure parent re-render when deep bindings like :style and
  11462. // :class are used on slot nodes
  11463. function registerDeepBindings (data) {
  11464. if (isObject(data.style)) {
  11465. traverse(data.style);
  11466. }
  11467. if (isObject(data.class)) {
  11468. traverse(data.class);
  11469. }
  11470. }
  11471. /* */
  11472. function initRender (vm) {
  11473. vm._vnode = null; // the root of the child tree
  11474. vm._staticTrees = null; // v-once cached trees
  11475. var options = vm.$options;
  11476. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  11477. var renderContext = parentVnode && parentVnode.context;
  11478. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  11479. vm.$scopedSlots = emptyObject;
  11480. // bind the createElement fn to this instance
  11481. // so that we get proper render context inside it.
  11482. // args order: tag, data, children, normalizationType, alwaysNormalize
  11483. // internal version is used by render functions compiled from templates
  11484. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  11485. // normalization is always applied for the public version, used in
  11486. // user-written render functions.
  11487. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  11488. // $attrs & $listeners are exposed for easier HOC creation.
  11489. // they need to be reactive so that HOCs using them are always updated
  11490. var parentData = parentVnode && parentVnode.data;
  11491. /* istanbul ignore else */
  11492. if (true) {
  11493. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  11494. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  11495. }, true);
  11496. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  11497. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  11498. }, true);
  11499. } else {}
  11500. }
  11501. var currentRenderingInstance = null;
  11502. function renderMixin (Vue) {
  11503. // install runtime convenience helpers
  11504. installRenderHelpers(Vue.prototype);
  11505. Vue.prototype.$nextTick = function (fn) {
  11506. return nextTick(fn, this)
  11507. };
  11508. Vue.prototype._render = function () {
  11509. var vm = this;
  11510. var ref = vm.$options;
  11511. var render = ref.render;
  11512. var _parentVnode = ref._parentVnode;
  11513. if (_parentVnode) {
  11514. vm.$scopedSlots = normalizeScopedSlots(
  11515. _parentVnode.data.scopedSlots,
  11516. vm.$slots,
  11517. vm.$scopedSlots
  11518. );
  11519. }
  11520. // set parent vnode. this allows render functions to have access
  11521. // to the data on the placeholder node.
  11522. vm.$vnode = _parentVnode;
  11523. // render self
  11524. var vnode;
  11525. try {
  11526. // There's no need to maintain a stack because all render fns are called
  11527. // separately from one another. Nested component's render fns are called
  11528. // when parent component is patched.
  11529. currentRenderingInstance = vm;
  11530. vnode = render.call(vm._renderProxy, vm.$createElement);
  11531. } catch (e) {
  11532. handleError(e, vm, "render");
  11533. // return error render result,
  11534. // or previous vnode to prevent render error causing blank component
  11535. /* istanbul ignore else */
  11536. if ( true && vm.$options.renderError) {
  11537. try {
  11538. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  11539. } catch (e) {
  11540. handleError(e, vm, "renderError");
  11541. vnode = vm._vnode;
  11542. }
  11543. } else {
  11544. vnode = vm._vnode;
  11545. }
  11546. } finally {
  11547. currentRenderingInstance = null;
  11548. }
  11549. // if the returned array contains only a single node, allow it
  11550. if (Array.isArray(vnode) && vnode.length === 1) {
  11551. vnode = vnode[0];
  11552. }
  11553. // return empty vnode in case the render function errored out
  11554. if (!(vnode instanceof VNode)) {
  11555. if ( true && Array.isArray(vnode)) {
  11556. warn(
  11557. 'Multiple root nodes returned from render function. Render function ' +
  11558. 'should return a single root node.',
  11559. vm
  11560. );
  11561. }
  11562. vnode = createEmptyVNode();
  11563. }
  11564. // set parent
  11565. vnode.parent = _parentVnode;
  11566. return vnode
  11567. };
  11568. }
  11569. /* */
  11570. function ensureCtor (comp, base) {
  11571. if (
  11572. comp.__esModule ||
  11573. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  11574. ) {
  11575. comp = comp.default;
  11576. }
  11577. return isObject(comp)
  11578. ? base.extend(comp)
  11579. : comp
  11580. }
  11581. function createAsyncPlaceholder (
  11582. factory,
  11583. data,
  11584. context,
  11585. children,
  11586. tag
  11587. ) {
  11588. var node = createEmptyVNode();
  11589. node.asyncFactory = factory;
  11590. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  11591. return node
  11592. }
  11593. function resolveAsyncComponent (
  11594. factory,
  11595. baseCtor
  11596. ) {
  11597. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  11598. return factory.errorComp
  11599. }
  11600. if (isDef(factory.resolved)) {
  11601. return factory.resolved
  11602. }
  11603. var owner = currentRenderingInstance;
  11604. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  11605. // already pending
  11606. factory.owners.push(owner);
  11607. }
  11608. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  11609. return factory.loadingComp
  11610. }
  11611. if (owner && !isDef(factory.owners)) {
  11612. var owners = factory.owners = [owner];
  11613. var sync = true;
  11614. var timerLoading = null;
  11615. var timerTimeout = null
  11616. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  11617. var forceRender = function (renderCompleted) {
  11618. for (var i = 0, l = owners.length; i < l; i++) {
  11619. (owners[i]).$forceUpdate();
  11620. }
  11621. if (renderCompleted) {
  11622. owners.length = 0;
  11623. if (timerLoading !== null) {
  11624. clearTimeout(timerLoading);
  11625. timerLoading = null;
  11626. }
  11627. if (timerTimeout !== null) {
  11628. clearTimeout(timerTimeout);
  11629. timerTimeout = null;
  11630. }
  11631. }
  11632. };
  11633. var resolve = once(function (res) {
  11634. // cache resolved
  11635. factory.resolved = ensureCtor(res, baseCtor);
  11636. // invoke callbacks only if this is not a synchronous resolve
  11637. // (async resolves are shimmed as synchronous during SSR)
  11638. if (!sync) {
  11639. forceRender(true);
  11640. } else {
  11641. owners.length = 0;
  11642. }
  11643. });
  11644. var reject = once(function (reason) {
  11645. true && warn(
  11646. "Failed to resolve async component: " + (String(factory)) +
  11647. (reason ? ("\nReason: " + reason) : '')
  11648. );
  11649. if (isDef(factory.errorComp)) {
  11650. factory.error = true;
  11651. forceRender(true);
  11652. }
  11653. });
  11654. var res = factory(resolve, reject);
  11655. if (isObject(res)) {
  11656. if (isPromise(res)) {
  11657. // () => Promise
  11658. if (isUndef(factory.resolved)) {
  11659. res.then(resolve, reject);
  11660. }
  11661. } else if (isPromise(res.component)) {
  11662. res.component.then(resolve, reject);
  11663. if (isDef(res.error)) {
  11664. factory.errorComp = ensureCtor(res.error, baseCtor);
  11665. }
  11666. if (isDef(res.loading)) {
  11667. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  11668. if (res.delay === 0) {
  11669. factory.loading = true;
  11670. } else {
  11671. timerLoading = setTimeout(function () {
  11672. timerLoading = null;
  11673. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  11674. factory.loading = true;
  11675. forceRender(false);
  11676. }
  11677. }, res.delay || 200);
  11678. }
  11679. }
  11680. if (isDef(res.timeout)) {
  11681. timerTimeout = setTimeout(function () {
  11682. timerTimeout = null;
  11683. if (isUndef(factory.resolved)) {
  11684. reject(
  11685. true
  11686. ? ("timeout (" + (res.timeout) + "ms)")
  11687. : undefined
  11688. );
  11689. }
  11690. }, res.timeout);
  11691. }
  11692. }
  11693. }
  11694. sync = false;
  11695. // return in case resolved synchronously
  11696. return factory.loading
  11697. ? factory.loadingComp
  11698. : factory.resolved
  11699. }
  11700. }
  11701. /* */
  11702. function isAsyncPlaceholder (node) {
  11703. return node.isComment && node.asyncFactory
  11704. }
  11705. /* */
  11706. function getFirstComponentChild (children) {
  11707. if (Array.isArray(children)) {
  11708. for (var i = 0; i < children.length; i++) {
  11709. var c = children[i];
  11710. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  11711. return c
  11712. }
  11713. }
  11714. }
  11715. }
  11716. /* */
  11717. /* */
  11718. function initEvents (vm) {
  11719. vm._events = Object.create(null);
  11720. vm._hasHookEvent = false;
  11721. // init parent attached events
  11722. var listeners = vm.$options._parentListeners;
  11723. if (listeners) {
  11724. updateComponentListeners(vm, listeners);
  11725. }
  11726. }
  11727. var target;
  11728. function add (event, fn) {
  11729. target.$on(event, fn);
  11730. }
  11731. function remove$1 (event, fn) {
  11732. target.$off(event, fn);
  11733. }
  11734. function createOnceHandler (event, fn) {
  11735. var _target = target;
  11736. return function onceHandler () {
  11737. var res = fn.apply(null, arguments);
  11738. if (res !== null) {
  11739. _target.$off(event, onceHandler);
  11740. }
  11741. }
  11742. }
  11743. function updateComponentListeners (
  11744. vm,
  11745. listeners,
  11746. oldListeners
  11747. ) {
  11748. target = vm;
  11749. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  11750. target = undefined;
  11751. }
  11752. function eventsMixin (Vue) {
  11753. var hookRE = /^hook:/;
  11754. Vue.prototype.$on = function (event, fn) {
  11755. var vm = this;
  11756. if (Array.isArray(event)) {
  11757. for (var i = 0, l = event.length; i < l; i++) {
  11758. vm.$on(event[i], fn);
  11759. }
  11760. } else {
  11761. (vm._events[event] || (vm._events[event] = [])).push(fn);
  11762. // optimize hook:event cost by using a boolean flag marked at registration
  11763. // instead of a hash lookup
  11764. if (hookRE.test(event)) {
  11765. vm._hasHookEvent = true;
  11766. }
  11767. }
  11768. return vm
  11769. };
  11770. Vue.prototype.$once = function (event, fn) {
  11771. var vm = this;
  11772. function on () {
  11773. vm.$off(event, on);
  11774. fn.apply(vm, arguments);
  11775. }
  11776. on.fn = fn;
  11777. vm.$on(event, on);
  11778. return vm
  11779. };
  11780. Vue.prototype.$off = function (event, fn) {
  11781. var vm = this;
  11782. // all
  11783. if (!arguments.length) {
  11784. vm._events = Object.create(null);
  11785. return vm
  11786. }
  11787. // array of events
  11788. if (Array.isArray(event)) {
  11789. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  11790. vm.$off(event[i$1], fn);
  11791. }
  11792. return vm
  11793. }
  11794. // specific event
  11795. var cbs = vm._events[event];
  11796. if (!cbs) {
  11797. return vm
  11798. }
  11799. if (!fn) {
  11800. vm._events[event] = null;
  11801. return vm
  11802. }
  11803. // specific handler
  11804. var cb;
  11805. var i = cbs.length;
  11806. while (i--) {
  11807. cb = cbs[i];
  11808. if (cb === fn || cb.fn === fn) {
  11809. cbs.splice(i, 1);
  11810. break
  11811. }
  11812. }
  11813. return vm
  11814. };
  11815. Vue.prototype.$emit = function (event) {
  11816. var vm = this;
  11817. if (true) {
  11818. var lowerCaseEvent = event.toLowerCase();
  11819. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  11820. tip(
  11821. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  11822. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  11823. "Note that HTML attributes are case-insensitive and you cannot use " +
  11824. "v-on to listen to camelCase events when using in-DOM templates. " +
  11825. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  11826. );
  11827. }
  11828. }
  11829. var cbs = vm._events[event];
  11830. if (cbs) {
  11831. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  11832. var args = toArray(arguments, 1);
  11833. var info = "event handler for \"" + event + "\"";
  11834. for (var i = 0, l = cbs.length; i < l; i++) {
  11835. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  11836. }
  11837. }
  11838. return vm
  11839. };
  11840. }
  11841. /* */
  11842. var activeInstance = null;
  11843. var isUpdatingChildComponent = false;
  11844. function setActiveInstance(vm) {
  11845. var prevActiveInstance = activeInstance;
  11846. activeInstance = vm;
  11847. return function () {
  11848. activeInstance = prevActiveInstance;
  11849. }
  11850. }
  11851. function initLifecycle (vm) {
  11852. var options = vm.$options;
  11853. // locate first non-abstract parent
  11854. var parent = options.parent;
  11855. if (parent && !options.abstract) {
  11856. while (parent.$options.abstract && parent.$parent) {
  11857. parent = parent.$parent;
  11858. }
  11859. parent.$children.push(vm);
  11860. }
  11861. vm.$parent = parent;
  11862. vm.$root = parent ? parent.$root : vm;
  11863. vm.$children = [];
  11864. vm.$refs = {};
  11865. vm._watcher = null;
  11866. vm._inactive = null;
  11867. vm._directInactive = false;
  11868. vm._isMounted = false;
  11869. vm._isDestroyed = false;
  11870. vm._isBeingDestroyed = false;
  11871. }
  11872. function lifecycleMixin (Vue) {
  11873. Vue.prototype._update = function (vnode, hydrating) {
  11874. var vm = this;
  11875. var prevEl = vm.$el;
  11876. var prevVnode = vm._vnode;
  11877. var restoreActiveInstance = setActiveInstance(vm);
  11878. vm._vnode = vnode;
  11879. // Vue.prototype.__patch__ is injected in entry points
  11880. // based on the rendering backend used.
  11881. if (!prevVnode) {
  11882. // initial render
  11883. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  11884. } else {
  11885. // updates
  11886. vm.$el = vm.__patch__(prevVnode, vnode);
  11887. }
  11888. restoreActiveInstance();
  11889. // update __vue__ reference
  11890. if (prevEl) {
  11891. prevEl.__vue__ = null;
  11892. }
  11893. if (vm.$el) {
  11894. vm.$el.__vue__ = vm;
  11895. }
  11896. // if parent is an HOC, update its $el as well
  11897. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  11898. vm.$parent.$el = vm.$el;
  11899. }
  11900. // updated hook is called by the scheduler to ensure that children are
  11901. // updated in a parent's updated hook.
  11902. };
  11903. Vue.prototype.$forceUpdate = function () {
  11904. var vm = this;
  11905. if (vm._watcher) {
  11906. vm._watcher.update();
  11907. }
  11908. };
  11909. Vue.prototype.$destroy = function () {
  11910. var vm = this;
  11911. if (vm._isBeingDestroyed) {
  11912. return
  11913. }
  11914. callHook(vm, 'beforeDestroy');
  11915. vm._isBeingDestroyed = true;
  11916. // remove self from parent
  11917. var parent = vm.$parent;
  11918. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  11919. remove(parent.$children, vm);
  11920. }
  11921. // teardown watchers
  11922. if (vm._watcher) {
  11923. vm._watcher.teardown();
  11924. }
  11925. var i = vm._watchers.length;
  11926. while (i--) {
  11927. vm._watchers[i].teardown();
  11928. }
  11929. // remove reference from data ob
  11930. // frozen object may not have observer.
  11931. if (vm._data.__ob__) {
  11932. vm._data.__ob__.vmCount--;
  11933. }
  11934. // call the last hook...
  11935. vm._isDestroyed = true;
  11936. // invoke destroy hooks on current rendered tree
  11937. vm.__patch__(vm._vnode, null);
  11938. // fire destroyed hook
  11939. callHook(vm, 'destroyed');
  11940. // turn off all instance listeners.
  11941. vm.$off();
  11942. // remove __vue__ reference
  11943. if (vm.$el) {
  11944. vm.$el.__vue__ = null;
  11945. }
  11946. // release circular reference (#6759)
  11947. if (vm.$vnode) {
  11948. vm.$vnode.parent = null;
  11949. }
  11950. };
  11951. }
  11952. function updateChildComponent (
  11953. vm,
  11954. propsData,
  11955. listeners,
  11956. parentVnode,
  11957. renderChildren
  11958. ) {
  11959. if (true) {
  11960. isUpdatingChildComponent = true;
  11961. }
  11962. // determine whether component has slot children
  11963. // we need to do this before overwriting $options._renderChildren.
  11964. // check if there are dynamic scopedSlots (hand-written or compiled but with
  11965. // dynamic slot names). Static scoped slots compiled from template has the
  11966. // "$stable" marker.
  11967. var newScopedSlots = parentVnode.data.scopedSlots;
  11968. var oldScopedSlots = vm.$scopedSlots;
  11969. var hasDynamicScopedSlot = !!(
  11970. (newScopedSlots && !newScopedSlots.$stable) ||
  11971. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  11972. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  11973. );
  11974. // Any static slot children from the parent may have changed during parent's
  11975. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  11976. // update is necessary to ensure correctness.
  11977. var needsForceUpdate = !!(
  11978. renderChildren || // has new static slots
  11979. vm.$options._renderChildren || // has old static slots
  11980. hasDynamicScopedSlot
  11981. );
  11982. vm.$options._parentVnode = parentVnode;
  11983. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  11984. if (vm._vnode) { // update child tree's parent
  11985. vm._vnode.parent = parentVnode;
  11986. }
  11987. vm.$options._renderChildren = renderChildren;
  11988. // update $attrs and $listeners hash
  11989. // these are also reactive so they may trigger child update if the child
  11990. // used them during render
  11991. vm.$attrs = parentVnode.data.attrs || emptyObject;
  11992. vm.$listeners = listeners || emptyObject;
  11993. // update props
  11994. if (propsData && vm.$options.props) {
  11995. toggleObserving(false);
  11996. var props = vm._props;
  11997. var propKeys = vm.$options._propKeys || [];
  11998. for (var i = 0; i < propKeys.length; i++) {
  11999. var key = propKeys[i];
  12000. var propOptions = vm.$options.props; // wtf flow?
  12001. props[key] = validateProp(key, propOptions, propsData, vm);
  12002. }
  12003. toggleObserving(true);
  12004. // keep a copy of raw propsData
  12005. vm.$options.propsData = propsData;
  12006. }
  12007. // fixed by xxxxxx update properties(mp runtime)
  12008. vm._$updateProperties && vm._$updateProperties(vm);
  12009. // update listeners
  12010. listeners = listeners || emptyObject;
  12011. var oldListeners = vm.$options._parentListeners;
  12012. vm.$options._parentListeners = listeners;
  12013. updateComponentListeners(vm, listeners, oldListeners);
  12014. // resolve slots + force update if has children
  12015. if (needsForceUpdate) {
  12016. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  12017. vm.$forceUpdate();
  12018. }
  12019. if (true) {
  12020. isUpdatingChildComponent = false;
  12021. }
  12022. }
  12023. function isInInactiveTree (vm) {
  12024. while (vm && (vm = vm.$parent)) {
  12025. if (vm._inactive) { return true }
  12026. }
  12027. return false
  12028. }
  12029. function activateChildComponent (vm, direct) {
  12030. if (direct) {
  12031. vm._directInactive = false;
  12032. if (isInInactiveTree(vm)) {
  12033. return
  12034. }
  12035. } else if (vm._directInactive) {
  12036. return
  12037. }
  12038. if (vm._inactive || vm._inactive === null) {
  12039. vm._inactive = false;
  12040. for (var i = 0; i < vm.$children.length; i++) {
  12041. activateChildComponent(vm.$children[i]);
  12042. }
  12043. callHook(vm, 'activated');
  12044. }
  12045. }
  12046. function deactivateChildComponent (vm, direct) {
  12047. if (direct) {
  12048. vm._directInactive = true;
  12049. if (isInInactiveTree(vm)) {
  12050. return
  12051. }
  12052. }
  12053. if (!vm._inactive) {
  12054. vm._inactive = true;
  12055. for (var i = 0; i < vm.$children.length; i++) {
  12056. deactivateChildComponent(vm.$children[i]);
  12057. }
  12058. callHook(vm, 'deactivated');
  12059. }
  12060. }
  12061. function callHook (vm, hook) {
  12062. // #7573 disable dep collection when invoking lifecycle hooks
  12063. pushTarget();
  12064. var handlers = vm.$options[hook];
  12065. var info = hook + " hook";
  12066. if (handlers) {
  12067. for (var i = 0, j = handlers.length; i < j; i++) {
  12068. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  12069. }
  12070. }
  12071. if (vm._hasHookEvent) {
  12072. vm.$emit('hook:' + hook);
  12073. }
  12074. popTarget();
  12075. }
  12076. /* */
  12077. var MAX_UPDATE_COUNT = 100;
  12078. var queue = [];
  12079. var activatedChildren = [];
  12080. var has = {};
  12081. var circular = {};
  12082. var waiting = false;
  12083. var flushing = false;
  12084. var index = 0;
  12085. /**
  12086. * Reset the scheduler's state.
  12087. */
  12088. function resetSchedulerState () {
  12089. index = queue.length = activatedChildren.length = 0;
  12090. has = {};
  12091. if (true) {
  12092. circular = {};
  12093. }
  12094. waiting = flushing = false;
  12095. }
  12096. // Async edge case #6566 requires saving the timestamp when event listeners are
  12097. // attached. However, calling performance.now() has a perf overhead especially
  12098. // if the page has thousands of event listeners. Instead, we take a timestamp
  12099. // every time the scheduler flushes and use that for all event listeners
  12100. // attached during that flush.
  12101. var currentFlushTimestamp = 0;
  12102. // Async edge case fix requires storing an event listener's attach timestamp.
  12103. var getNow = Date.now;
  12104. // Determine what event timestamp the browser is using. Annoyingly, the
  12105. // timestamp can either be hi-res (relative to page load) or low-res
  12106. // (relative to UNIX epoch), so in order to compare time we have to use the
  12107. // same timestamp type when saving the flush timestamp.
  12108. // All IE versions use low-res event timestamps, and have problematic clock
  12109. // implementations (#9632)
  12110. if (inBrowser && !isIE) {
  12111. var performance = window.performance;
  12112. if (
  12113. performance &&
  12114. typeof performance.now === 'function' &&
  12115. getNow() > document.createEvent('Event').timeStamp
  12116. ) {
  12117. // if the event timestamp, although evaluated AFTER the Date.now(), is
  12118. // smaller than it, it means the event is using a hi-res timestamp,
  12119. // and we need to use the hi-res version for event listener timestamps as
  12120. // well.
  12121. getNow = function () { return performance.now(); };
  12122. }
  12123. }
  12124. /**
  12125. * Flush both queues and run the watchers.
  12126. */
  12127. function flushSchedulerQueue () {
  12128. currentFlushTimestamp = getNow();
  12129. flushing = true;
  12130. var watcher, id;
  12131. // Sort queue before flush.
  12132. // This ensures that:
  12133. // 1. Components are updated from parent to child. (because parent is always
  12134. // created before the child)
  12135. // 2. A component's user watchers are run before its render watcher (because
  12136. // user watchers are created before the render watcher)
  12137. // 3. If a component is destroyed during a parent component's watcher run,
  12138. // its watchers can be skipped.
  12139. queue.sort(function (a, b) { return a.id - b.id; });
  12140. // do not cache length because more watchers might be pushed
  12141. // as we run existing watchers
  12142. for (index = 0; index < queue.length; index++) {
  12143. watcher = queue[index];
  12144. if (watcher.before) {
  12145. watcher.before();
  12146. }
  12147. id = watcher.id;
  12148. has[id] = null;
  12149. watcher.run();
  12150. // in dev build, check and stop circular updates.
  12151. if ( true && has[id] != null) {
  12152. circular[id] = (circular[id] || 0) + 1;
  12153. if (circular[id] > MAX_UPDATE_COUNT) {
  12154. warn(
  12155. 'You may have an infinite update loop ' + (
  12156. watcher.user
  12157. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  12158. : "in a component render function."
  12159. ),
  12160. watcher.vm
  12161. );
  12162. break
  12163. }
  12164. }
  12165. }
  12166. // keep copies of post queues before resetting state
  12167. var activatedQueue = activatedChildren.slice();
  12168. var updatedQueue = queue.slice();
  12169. resetSchedulerState();
  12170. // call component updated and activated hooks
  12171. callActivatedHooks(activatedQueue);
  12172. callUpdatedHooks(updatedQueue);
  12173. // devtool hook
  12174. /* istanbul ignore if */
  12175. if (devtools && config.devtools) {
  12176. devtools.emit('flush');
  12177. }
  12178. }
  12179. function callUpdatedHooks (queue) {
  12180. var i = queue.length;
  12181. while (i--) {
  12182. var watcher = queue[i];
  12183. var vm = watcher.vm;
  12184. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  12185. callHook(vm, 'updated');
  12186. }
  12187. }
  12188. }
  12189. /**
  12190. * Queue a kept-alive component that was activated during patch.
  12191. * The queue will be processed after the entire tree has been patched.
  12192. */
  12193. function queueActivatedComponent (vm) {
  12194. // setting _inactive to false here so that a render function can
  12195. // rely on checking whether it's in an inactive tree (e.g. router-view)
  12196. vm._inactive = false;
  12197. activatedChildren.push(vm);
  12198. }
  12199. function callActivatedHooks (queue) {
  12200. for (var i = 0; i < queue.length; i++) {
  12201. queue[i]._inactive = true;
  12202. activateChildComponent(queue[i], true /* true */);
  12203. }
  12204. }
  12205. /**
  12206. * Push a watcher into the watcher queue.
  12207. * Jobs with duplicate IDs will be skipped unless it's
  12208. * pushed when the queue is being flushed.
  12209. */
  12210. function queueWatcher (watcher) {
  12211. var id = watcher.id;
  12212. if (has[id] == null) {
  12213. has[id] = true;
  12214. if (!flushing) {
  12215. queue.push(watcher);
  12216. } else {
  12217. // if already flushing, splice the watcher based on its id
  12218. // if already past its id, it will be run next immediately.
  12219. var i = queue.length - 1;
  12220. while (i > index && queue[i].id > watcher.id) {
  12221. i--;
  12222. }
  12223. queue.splice(i + 1, 0, watcher);
  12224. }
  12225. // queue the flush
  12226. if (!waiting) {
  12227. waiting = true;
  12228. if ( true && !config.async) {
  12229. flushSchedulerQueue();
  12230. return
  12231. }
  12232. nextTick(flushSchedulerQueue);
  12233. }
  12234. }
  12235. }
  12236. /* */
  12237. var uid$2 = 0;
  12238. /**
  12239. * A watcher parses an expression, collects dependencies,
  12240. * and fires callback when the expression value changes.
  12241. * This is used for both the $watch() api and directives.
  12242. */
  12243. var Watcher = function Watcher (
  12244. vm,
  12245. expOrFn,
  12246. cb,
  12247. options,
  12248. isRenderWatcher
  12249. ) {
  12250. this.vm = vm;
  12251. if (isRenderWatcher) {
  12252. vm._watcher = this;
  12253. }
  12254. vm._watchers.push(this);
  12255. // options
  12256. if (options) {
  12257. this.deep = !!options.deep;
  12258. this.user = !!options.user;
  12259. this.lazy = !!options.lazy;
  12260. this.sync = !!options.sync;
  12261. this.before = options.before;
  12262. } else {
  12263. this.deep = this.user = this.lazy = this.sync = false;
  12264. }
  12265. this.cb = cb;
  12266. this.id = ++uid$2; // uid for batching
  12267. this.active = true;
  12268. this.dirty = this.lazy; // for lazy watchers
  12269. this.deps = [];
  12270. this.newDeps = [];
  12271. this.depIds = new _Set();
  12272. this.newDepIds = new _Set();
  12273. this.expression = true
  12274. ? expOrFn.toString()
  12275. : undefined;
  12276. // parse expression for getter
  12277. if (typeof expOrFn === 'function') {
  12278. this.getter = expOrFn;
  12279. } else {
  12280. this.getter = parsePath(expOrFn);
  12281. if (!this.getter) {
  12282. this.getter = noop;
  12283. true && warn(
  12284. "Failed watching path: \"" + expOrFn + "\" " +
  12285. 'Watcher only accepts simple dot-delimited paths. ' +
  12286. 'For full control, use a function instead.',
  12287. vm
  12288. );
  12289. }
  12290. }
  12291. this.value = this.lazy
  12292. ? undefined
  12293. : this.get();
  12294. };
  12295. /**
  12296. * Evaluate the getter, and re-collect dependencies.
  12297. */
  12298. Watcher.prototype.get = function get () {
  12299. pushTarget(this);
  12300. var value;
  12301. var vm = this.vm;
  12302. try {
  12303. value = this.getter.call(vm, vm);
  12304. } catch (e) {
  12305. if (this.user) {
  12306. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  12307. } else {
  12308. throw e
  12309. }
  12310. } finally {
  12311. // "touch" every property so they are all tracked as
  12312. // dependencies for deep watching
  12313. if (this.deep) {
  12314. traverse(value);
  12315. }
  12316. popTarget();
  12317. this.cleanupDeps();
  12318. }
  12319. return value
  12320. };
  12321. /**
  12322. * Add a dependency to this directive.
  12323. */
  12324. Watcher.prototype.addDep = function addDep (dep) {
  12325. var id = dep.id;
  12326. if (!this.newDepIds.has(id)) {
  12327. this.newDepIds.add(id);
  12328. this.newDeps.push(dep);
  12329. if (!this.depIds.has(id)) {
  12330. dep.addSub(this);
  12331. }
  12332. }
  12333. };
  12334. /**
  12335. * Clean up for dependency collection.
  12336. */
  12337. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  12338. var i = this.deps.length;
  12339. while (i--) {
  12340. var dep = this.deps[i];
  12341. if (!this.newDepIds.has(dep.id)) {
  12342. dep.removeSub(this);
  12343. }
  12344. }
  12345. var tmp = this.depIds;
  12346. this.depIds = this.newDepIds;
  12347. this.newDepIds = tmp;
  12348. this.newDepIds.clear();
  12349. tmp = this.deps;
  12350. this.deps = this.newDeps;
  12351. this.newDeps = tmp;
  12352. this.newDeps.length = 0;
  12353. };
  12354. /**
  12355. * Subscriber interface.
  12356. * Will be called when a dependency changes.
  12357. */
  12358. Watcher.prototype.update = function update () {
  12359. /* istanbul ignore else */
  12360. if (this.lazy) {
  12361. this.dirty = true;
  12362. } else if (this.sync) {
  12363. this.run();
  12364. } else {
  12365. queueWatcher(this);
  12366. }
  12367. };
  12368. /**
  12369. * Scheduler job interface.
  12370. * Will be called by the scheduler.
  12371. */
  12372. Watcher.prototype.run = function run () {
  12373. if (this.active) {
  12374. var value = this.get();
  12375. if (
  12376. value !== this.value ||
  12377. // Deep watchers and watchers on Object/Arrays should fire even
  12378. // when the value is the same, because the value may
  12379. // have mutated.
  12380. isObject(value) ||
  12381. this.deep
  12382. ) {
  12383. // set new value
  12384. var oldValue = this.value;
  12385. this.value = value;
  12386. if (this.user) {
  12387. try {
  12388. this.cb.call(this.vm, value, oldValue);
  12389. } catch (e) {
  12390. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  12391. }
  12392. } else {
  12393. this.cb.call(this.vm, value, oldValue);
  12394. }
  12395. }
  12396. }
  12397. };
  12398. /**
  12399. * Evaluate the value of the watcher.
  12400. * This only gets called for lazy watchers.
  12401. */
  12402. Watcher.prototype.evaluate = function evaluate () {
  12403. this.value = this.get();
  12404. this.dirty = false;
  12405. };
  12406. /**
  12407. * Depend on all deps collected by this watcher.
  12408. */
  12409. Watcher.prototype.depend = function depend () {
  12410. var i = this.deps.length;
  12411. while (i--) {
  12412. this.deps[i].depend();
  12413. }
  12414. };
  12415. /**
  12416. * Remove self from all dependencies' subscriber list.
  12417. */
  12418. Watcher.prototype.teardown = function teardown () {
  12419. if (this.active) {
  12420. // remove self from vm's watcher list
  12421. // this is a somewhat expensive operation so we skip it
  12422. // if the vm is being destroyed.
  12423. if (!this.vm._isBeingDestroyed) {
  12424. remove(this.vm._watchers, this);
  12425. }
  12426. var i = this.deps.length;
  12427. while (i--) {
  12428. this.deps[i].removeSub(this);
  12429. }
  12430. this.active = false;
  12431. }
  12432. };
  12433. /* */
  12434. var sharedPropertyDefinition = {
  12435. enumerable: true,
  12436. configurable: true,
  12437. get: noop,
  12438. set: noop
  12439. };
  12440. function proxy (target, sourceKey, key) {
  12441. sharedPropertyDefinition.get = function proxyGetter () {
  12442. return this[sourceKey][key]
  12443. };
  12444. sharedPropertyDefinition.set = function proxySetter (val) {
  12445. this[sourceKey][key] = val;
  12446. };
  12447. Object.defineProperty(target, key, sharedPropertyDefinition);
  12448. }
  12449. function initState (vm) {
  12450. vm._watchers = [];
  12451. var opts = vm.$options;
  12452. if (opts.props) { initProps(vm, opts.props); }
  12453. if (opts.methods) { initMethods(vm, opts.methods); }
  12454. if (opts.data) {
  12455. initData(vm);
  12456. } else {
  12457. observe(vm._data = {}, true /* asRootData */);
  12458. }
  12459. if (opts.computed) { initComputed(vm, opts.computed); }
  12460. if (opts.watch && opts.watch !== nativeWatch) {
  12461. initWatch(vm, opts.watch);
  12462. }
  12463. }
  12464. function initProps (vm, propsOptions) {
  12465. var propsData = vm.$options.propsData || {};
  12466. var props = vm._props = {};
  12467. // cache prop keys so that future props updates can iterate using Array
  12468. // instead of dynamic object key enumeration.
  12469. var keys = vm.$options._propKeys = [];
  12470. var isRoot = !vm.$parent;
  12471. // root instance props should be converted
  12472. if (!isRoot) {
  12473. toggleObserving(false);
  12474. }
  12475. var loop = function ( key ) {
  12476. keys.push(key);
  12477. var value = validateProp(key, propsOptions, propsData, vm);
  12478. /* istanbul ignore else */
  12479. if (true) {
  12480. var hyphenatedKey = hyphenate(key);
  12481. if (isReservedAttribute(hyphenatedKey) ||
  12482. config.isReservedAttr(hyphenatedKey)) {
  12483. warn(
  12484. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  12485. vm
  12486. );
  12487. }
  12488. defineReactive$$1(props, key, value, function () {
  12489. if (!isRoot && !isUpdatingChildComponent) {
  12490. {
  12491. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  12492. return
  12493. }
  12494. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  12495. if(
  12496. key === 'value' &&
  12497. Array.isArray(vm.$options.behaviors) &&
  12498. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  12499. ){
  12500. return
  12501. }
  12502. if(vm._getFormData){
  12503. return
  12504. }
  12505. var $parent = vm.$parent;
  12506. while($parent){
  12507. if($parent.__next_tick_pending){
  12508. return
  12509. }
  12510. $parent = $parent.$parent;
  12511. }
  12512. }
  12513. warn(
  12514. "Avoid mutating a prop directly since the value will be " +
  12515. "overwritten whenever the parent component re-renders. " +
  12516. "Instead, use a data or computed property based on the prop's " +
  12517. "value. Prop being mutated: \"" + key + "\"",
  12518. vm
  12519. );
  12520. }
  12521. });
  12522. } else {}
  12523. // static props are already proxied on the component's prototype
  12524. // during Vue.extend(). We only need to proxy props defined at
  12525. // instantiation here.
  12526. if (!(key in vm)) {
  12527. proxy(vm, "_props", key);
  12528. }
  12529. };
  12530. for (var key in propsOptions) loop( key );
  12531. toggleObserving(true);
  12532. }
  12533. function initData (vm) {
  12534. var data = vm.$options.data;
  12535. data = vm._data = typeof data === 'function'
  12536. ? getData(data, vm)
  12537. : data || {};
  12538. if (!isPlainObject(data)) {
  12539. data = {};
  12540. true && warn(
  12541. 'data functions should return an object:\n' +
  12542. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  12543. vm
  12544. );
  12545. }
  12546. // proxy data on instance
  12547. var keys = Object.keys(data);
  12548. var props = vm.$options.props;
  12549. var methods = vm.$options.methods;
  12550. var i = keys.length;
  12551. while (i--) {
  12552. var key = keys[i];
  12553. if (true) {
  12554. if (methods && hasOwn(methods, key)) {
  12555. warn(
  12556. ("Method \"" + key + "\" has already been defined as a data property."),
  12557. vm
  12558. );
  12559. }
  12560. }
  12561. if (props && hasOwn(props, key)) {
  12562. true && warn(
  12563. "The data property \"" + key + "\" is already declared as a prop. " +
  12564. "Use prop default value instead.",
  12565. vm
  12566. );
  12567. } else if (!isReserved(key)) {
  12568. proxy(vm, "_data", key);
  12569. }
  12570. }
  12571. // observe data
  12572. observe(data, true /* asRootData */);
  12573. }
  12574. function getData (data, vm) {
  12575. // #7573 disable dep collection when invoking data getters
  12576. pushTarget();
  12577. try {
  12578. return data.call(vm, vm)
  12579. } catch (e) {
  12580. handleError(e, vm, "data()");
  12581. return {}
  12582. } finally {
  12583. popTarget();
  12584. }
  12585. }
  12586. var computedWatcherOptions = { lazy: true };
  12587. function initComputed (vm, computed) {
  12588. // $flow-disable-line
  12589. var watchers = vm._computedWatchers = Object.create(null);
  12590. // computed properties are just getters during SSR
  12591. var isSSR = isServerRendering();
  12592. for (var key in computed) {
  12593. var userDef = computed[key];
  12594. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  12595. if ( true && getter == null) {
  12596. warn(
  12597. ("Getter is missing for computed property \"" + key + "\"."),
  12598. vm
  12599. );
  12600. }
  12601. if (!isSSR) {
  12602. // create internal watcher for the computed property.
  12603. watchers[key] = new Watcher(
  12604. vm,
  12605. getter || noop,
  12606. noop,
  12607. computedWatcherOptions
  12608. );
  12609. }
  12610. // component-defined computed properties are already defined on the
  12611. // component prototype. We only need to define computed properties defined
  12612. // at instantiation here.
  12613. if (!(key in vm)) {
  12614. defineComputed(vm, key, userDef);
  12615. } else if (true) {
  12616. if (key in vm.$data) {
  12617. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  12618. } else if (vm.$options.props && key in vm.$options.props) {
  12619. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  12620. }
  12621. }
  12622. }
  12623. }
  12624. function defineComputed (
  12625. target,
  12626. key,
  12627. userDef
  12628. ) {
  12629. var shouldCache = !isServerRendering();
  12630. if (typeof userDef === 'function') {
  12631. sharedPropertyDefinition.get = shouldCache
  12632. ? createComputedGetter(key)
  12633. : createGetterInvoker(userDef);
  12634. sharedPropertyDefinition.set = noop;
  12635. } else {
  12636. sharedPropertyDefinition.get = userDef.get
  12637. ? shouldCache && userDef.cache !== false
  12638. ? createComputedGetter(key)
  12639. : createGetterInvoker(userDef.get)
  12640. : noop;
  12641. sharedPropertyDefinition.set = userDef.set || noop;
  12642. }
  12643. if ( true &&
  12644. sharedPropertyDefinition.set === noop) {
  12645. sharedPropertyDefinition.set = function () {
  12646. warn(
  12647. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  12648. this
  12649. );
  12650. };
  12651. }
  12652. Object.defineProperty(target, key, sharedPropertyDefinition);
  12653. }
  12654. function createComputedGetter (key) {
  12655. return function computedGetter () {
  12656. var watcher = this._computedWatchers && this._computedWatchers[key];
  12657. if (watcher) {
  12658. if (watcher.dirty) {
  12659. watcher.evaluate();
  12660. }
  12661. if (Dep.SharedObject.target) {// fixed by xxxxxx
  12662. watcher.depend();
  12663. }
  12664. return watcher.value
  12665. }
  12666. }
  12667. }
  12668. function createGetterInvoker(fn) {
  12669. return function computedGetter () {
  12670. return fn.call(this, this)
  12671. }
  12672. }
  12673. function initMethods (vm, methods) {
  12674. var props = vm.$options.props;
  12675. for (var key in methods) {
  12676. if (true) {
  12677. if (typeof methods[key] !== 'function') {
  12678. warn(
  12679. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  12680. "Did you reference the function correctly?",
  12681. vm
  12682. );
  12683. }
  12684. if (props && hasOwn(props, key)) {
  12685. warn(
  12686. ("Method \"" + key + "\" has already been defined as a prop."),
  12687. vm
  12688. );
  12689. }
  12690. if ((key in vm) && isReserved(key)) {
  12691. warn(
  12692. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  12693. "Avoid defining component methods that start with _ or $."
  12694. );
  12695. }
  12696. }
  12697. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  12698. }
  12699. }
  12700. function initWatch (vm, watch) {
  12701. for (var key in watch) {
  12702. var handler = watch[key];
  12703. if (Array.isArray(handler)) {
  12704. for (var i = 0; i < handler.length; i++) {
  12705. createWatcher(vm, key, handler[i]);
  12706. }
  12707. } else {
  12708. createWatcher(vm, key, handler);
  12709. }
  12710. }
  12711. }
  12712. function createWatcher (
  12713. vm,
  12714. expOrFn,
  12715. handler,
  12716. options
  12717. ) {
  12718. if (isPlainObject(handler)) {
  12719. options = handler;
  12720. handler = handler.handler;
  12721. }
  12722. if (typeof handler === 'string') {
  12723. handler = vm[handler];
  12724. }
  12725. return vm.$watch(expOrFn, handler, options)
  12726. }
  12727. function stateMixin (Vue) {
  12728. // flow somehow has problems with directly declared definition object
  12729. // when using Object.defineProperty, so we have to procedurally build up
  12730. // the object here.
  12731. var dataDef = {};
  12732. dataDef.get = function () { return this._data };
  12733. var propsDef = {};
  12734. propsDef.get = function () { return this._props };
  12735. if (true) {
  12736. dataDef.set = function () {
  12737. warn(
  12738. 'Avoid replacing instance root $data. ' +
  12739. 'Use nested data properties instead.',
  12740. this
  12741. );
  12742. };
  12743. propsDef.set = function () {
  12744. warn("$props is readonly.", this);
  12745. };
  12746. }
  12747. Object.defineProperty(Vue.prototype, '$data', dataDef);
  12748. Object.defineProperty(Vue.prototype, '$props', propsDef);
  12749. Vue.prototype.$set = set;
  12750. Vue.prototype.$delete = del;
  12751. Vue.prototype.$watch = function (
  12752. expOrFn,
  12753. cb,
  12754. options
  12755. ) {
  12756. var vm = this;
  12757. if (isPlainObject(cb)) {
  12758. return createWatcher(vm, expOrFn, cb, options)
  12759. }
  12760. options = options || {};
  12761. options.user = true;
  12762. var watcher = new Watcher(vm, expOrFn, cb, options);
  12763. if (options.immediate) {
  12764. try {
  12765. cb.call(vm, watcher.value);
  12766. } catch (error) {
  12767. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  12768. }
  12769. }
  12770. return function unwatchFn () {
  12771. watcher.teardown();
  12772. }
  12773. };
  12774. }
  12775. /* */
  12776. var uid$3 = 0;
  12777. function initMixin (Vue) {
  12778. Vue.prototype._init = function (options) {
  12779. var vm = this;
  12780. // a uid
  12781. vm._uid = uid$3++;
  12782. var startTag, endTag;
  12783. /* istanbul ignore if */
  12784. if ( true && config.performance && mark) {
  12785. startTag = "vue-perf-start:" + (vm._uid);
  12786. endTag = "vue-perf-end:" + (vm._uid);
  12787. mark(startTag);
  12788. }
  12789. // a flag to avoid this being observed
  12790. vm._isVue = true;
  12791. // merge options
  12792. if (options && options._isComponent) {
  12793. // optimize internal component instantiation
  12794. // since dynamic options merging is pretty slow, and none of the
  12795. // internal component options needs special treatment.
  12796. initInternalComponent(vm, options);
  12797. } else {
  12798. vm.$options = mergeOptions(
  12799. resolveConstructorOptions(vm.constructor),
  12800. options || {},
  12801. vm
  12802. );
  12803. }
  12804. /* istanbul ignore else */
  12805. if (true) {
  12806. initProxy(vm);
  12807. } else {}
  12808. // expose real self
  12809. vm._self = vm;
  12810. initLifecycle(vm);
  12811. initEvents(vm);
  12812. initRender(vm);
  12813. callHook(vm, 'beforeCreate');
  12814. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  12815. initState(vm);
  12816. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  12817. !vm._$fallback && callHook(vm, 'created');
  12818. /* istanbul ignore if */
  12819. if ( true && config.performance && mark) {
  12820. vm._name = formatComponentName(vm, false);
  12821. mark(endTag);
  12822. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  12823. }
  12824. if (vm.$options.el) {
  12825. vm.$mount(vm.$options.el);
  12826. }
  12827. };
  12828. }
  12829. function initInternalComponent (vm, options) {
  12830. var opts = vm.$options = Object.create(vm.constructor.options);
  12831. // doing this because it's faster than dynamic enumeration.
  12832. var parentVnode = options._parentVnode;
  12833. opts.parent = options.parent;
  12834. opts._parentVnode = parentVnode;
  12835. var vnodeComponentOptions = parentVnode.componentOptions;
  12836. opts.propsData = vnodeComponentOptions.propsData;
  12837. opts._parentListeners = vnodeComponentOptions.listeners;
  12838. opts._renderChildren = vnodeComponentOptions.children;
  12839. opts._componentTag = vnodeComponentOptions.tag;
  12840. if (options.render) {
  12841. opts.render = options.render;
  12842. opts.staticRenderFns = options.staticRenderFns;
  12843. }
  12844. }
  12845. function resolveConstructorOptions (Ctor) {
  12846. var options = Ctor.options;
  12847. if (Ctor.super) {
  12848. var superOptions = resolveConstructorOptions(Ctor.super);
  12849. var cachedSuperOptions = Ctor.superOptions;
  12850. if (superOptions !== cachedSuperOptions) {
  12851. // super option changed,
  12852. // need to resolve new options.
  12853. Ctor.superOptions = superOptions;
  12854. // check if there are any late-modified/attached options (#4976)
  12855. var modifiedOptions = resolveModifiedOptions(Ctor);
  12856. // update base extend options
  12857. if (modifiedOptions) {
  12858. extend(Ctor.extendOptions, modifiedOptions);
  12859. }
  12860. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  12861. if (options.name) {
  12862. options.components[options.name] = Ctor;
  12863. }
  12864. }
  12865. }
  12866. return options
  12867. }
  12868. function resolveModifiedOptions (Ctor) {
  12869. var modified;
  12870. var latest = Ctor.options;
  12871. var sealed = Ctor.sealedOptions;
  12872. for (var key in latest) {
  12873. if (latest[key] !== sealed[key]) {
  12874. if (!modified) { modified = {}; }
  12875. modified[key] = latest[key];
  12876. }
  12877. }
  12878. return modified
  12879. }
  12880. function Vue (options) {
  12881. if ( true &&
  12882. !(this instanceof Vue)
  12883. ) {
  12884. warn('Vue is a constructor and should be called with the `new` keyword');
  12885. }
  12886. this._init(options);
  12887. }
  12888. initMixin(Vue);
  12889. stateMixin(Vue);
  12890. eventsMixin(Vue);
  12891. lifecycleMixin(Vue);
  12892. renderMixin(Vue);
  12893. /* */
  12894. function initUse (Vue) {
  12895. Vue.use = function (plugin) {
  12896. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  12897. if (installedPlugins.indexOf(plugin) > -1) {
  12898. return this
  12899. }
  12900. // additional parameters
  12901. var args = toArray(arguments, 1);
  12902. args.unshift(this);
  12903. if (typeof plugin.install === 'function') {
  12904. plugin.install.apply(plugin, args);
  12905. } else if (typeof plugin === 'function') {
  12906. plugin.apply(null, args);
  12907. }
  12908. installedPlugins.push(plugin);
  12909. return this
  12910. };
  12911. }
  12912. /* */
  12913. function initMixin$1 (Vue) {
  12914. Vue.mixin = function (mixin) {
  12915. this.options = mergeOptions(this.options, mixin);
  12916. return this
  12917. };
  12918. }
  12919. /* */
  12920. function initExtend (Vue) {
  12921. /**
  12922. * Each instance constructor, including Vue, has a unique
  12923. * cid. This enables us to create wrapped "child
  12924. * constructors" for prototypal inheritance and cache them.
  12925. */
  12926. Vue.cid = 0;
  12927. var cid = 1;
  12928. /**
  12929. * Class inheritance
  12930. */
  12931. Vue.extend = function (extendOptions) {
  12932. extendOptions = extendOptions || {};
  12933. var Super = this;
  12934. var SuperId = Super.cid;
  12935. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  12936. if (cachedCtors[SuperId]) {
  12937. return cachedCtors[SuperId]
  12938. }
  12939. var name = extendOptions.name || Super.options.name;
  12940. if ( true && name) {
  12941. validateComponentName(name);
  12942. }
  12943. var Sub = function VueComponent (options) {
  12944. this._init(options);
  12945. };
  12946. Sub.prototype = Object.create(Super.prototype);
  12947. Sub.prototype.constructor = Sub;
  12948. Sub.cid = cid++;
  12949. Sub.options = mergeOptions(
  12950. Super.options,
  12951. extendOptions
  12952. );
  12953. Sub['super'] = Super;
  12954. // For props and computed properties, we define the proxy getters on
  12955. // the Vue instances at extension time, on the extended prototype. This
  12956. // avoids Object.defineProperty calls for each instance created.
  12957. if (Sub.options.props) {
  12958. initProps$1(Sub);
  12959. }
  12960. if (Sub.options.computed) {
  12961. initComputed$1(Sub);
  12962. }
  12963. // allow further extension/mixin/plugin usage
  12964. Sub.extend = Super.extend;
  12965. Sub.mixin = Super.mixin;
  12966. Sub.use = Super.use;
  12967. // create asset registers, so extended classes
  12968. // can have their private assets too.
  12969. ASSET_TYPES.forEach(function (type) {
  12970. Sub[type] = Super[type];
  12971. });
  12972. // enable recursive self-lookup
  12973. if (name) {
  12974. Sub.options.components[name] = Sub;
  12975. }
  12976. // keep a reference to the super options at extension time.
  12977. // later at instantiation we can check if Super's options have
  12978. // been updated.
  12979. Sub.superOptions = Super.options;
  12980. Sub.extendOptions = extendOptions;
  12981. Sub.sealedOptions = extend({}, Sub.options);
  12982. // cache constructor
  12983. cachedCtors[SuperId] = Sub;
  12984. return Sub
  12985. };
  12986. }
  12987. function initProps$1 (Comp) {
  12988. var props = Comp.options.props;
  12989. for (var key in props) {
  12990. proxy(Comp.prototype, "_props", key);
  12991. }
  12992. }
  12993. function initComputed$1 (Comp) {
  12994. var computed = Comp.options.computed;
  12995. for (var key in computed) {
  12996. defineComputed(Comp.prototype, key, computed[key]);
  12997. }
  12998. }
  12999. /* */
  13000. function initAssetRegisters (Vue) {
  13001. /**
  13002. * Create asset registration methods.
  13003. */
  13004. ASSET_TYPES.forEach(function (type) {
  13005. Vue[type] = function (
  13006. id,
  13007. definition
  13008. ) {
  13009. if (!definition) {
  13010. return this.options[type + 's'][id]
  13011. } else {
  13012. /* istanbul ignore if */
  13013. if ( true && type === 'component') {
  13014. validateComponentName(id);
  13015. }
  13016. if (type === 'component' && isPlainObject(definition)) {
  13017. definition.name = definition.name || id;
  13018. definition = this.options._base.extend(definition);
  13019. }
  13020. if (type === 'directive' && typeof definition === 'function') {
  13021. definition = { bind: definition, update: definition };
  13022. }
  13023. this.options[type + 's'][id] = definition;
  13024. return definition
  13025. }
  13026. };
  13027. });
  13028. }
  13029. /* */
  13030. function getComponentName (opts) {
  13031. return opts && (opts.Ctor.options.name || opts.tag)
  13032. }
  13033. function matches (pattern, name) {
  13034. if (Array.isArray(pattern)) {
  13035. return pattern.indexOf(name) > -1
  13036. } else if (typeof pattern === 'string') {
  13037. return pattern.split(',').indexOf(name) > -1
  13038. } else if (isRegExp(pattern)) {
  13039. return pattern.test(name)
  13040. }
  13041. /* istanbul ignore next */
  13042. return false
  13043. }
  13044. function pruneCache (keepAliveInstance, filter) {
  13045. var cache = keepAliveInstance.cache;
  13046. var keys = keepAliveInstance.keys;
  13047. var _vnode = keepAliveInstance._vnode;
  13048. for (var key in cache) {
  13049. var cachedNode = cache[key];
  13050. if (cachedNode) {
  13051. var name = getComponentName(cachedNode.componentOptions);
  13052. if (name && !filter(name)) {
  13053. pruneCacheEntry(cache, key, keys, _vnode);
  13054. }
  13055. }
  13056. }
  13057. }
  13058. function pruneCacheEntry (
  13059. cache,
  13060. key,
  13061. keys,
  13062. current
  13063. ) {
  13064. var cached$$1 = cache[key];
  13065. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  13066. cached$$1.componentInstance.$destroy();
  13067. }
  13068. cache[key] = null;
  13069. remove(keys, key);
  13070. }
  13071. var patternTypes = [String, RegExp, Array];
  13072. var KeepAlive = {
  13073. name: 'keep-alive',
  13074. abstract: true,
  13075. props: {
  13076. include: patternTypes,
  13077. exclude: patternTypes,
  13078. max: [String, Number]
  13079. },
  13080. created: function created () {
  13081. this.cache = Object.create(null);
  13082. this.keys = [];
  13083. },
  13084. destroyed: function destroyed () {
  13085. for (var key in this.cache) {
  13086. pruneCacheEntry(this.cache, key, this.keys);
  13087. }
  13088. },
  13089. mounted: function mounted () {
  13090. var this$1 = this;
  13091. this.$watch('include', function (val) {
  13092. pruneCache(this$1, function (name) { return matches(val, name); });
  13093. });
  13094. this.$watch('exclude', function (val) {
  13095. pruneCache(this$1, function (name) { return !matches(val, name); });
  13096. });
  13097. },
  13098. render: function render () {
  13099. var slot = this.$slots.default;
  13100. var vnode = getFirstComponentChild(slot);
  13101. var componentOptions = vnode && vnode.componentOptions;
  13102. if (componentOptions) {
  13103. // check pattern
  13104. var name = getComponentName(componentOptions);
  13105. var ref = this;
  13106. var include = ref.include;
  13107. var exclude = ref.exclude;
  13108. if (
  13109. // not included
  13110. (include && (!name || !matches(include, name))) ||
  13111. // excluded
  13112. (exclude && name && matches(exclude, name))
  13113. ) {
  13114. return vnode
  13115. }
  13116. var ref$1 = this;
  13117. var cache = ref$1.cache;
  13118. var keys = ref$1.keys;
  13119. var key = vnode.key == null
  13120. // same constructor may get registered as different local components
  13121. // so cid alone is not enough (#3269)
  13122. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  13123. : vnode.key;
  13124. if (cache[key]) {
  13125. vnode.componentInstance = cache[key].componentInstance;
  13126. // make current key freshest
  13127. remove(keys, key);
  13128. keys.push(key);
  13129. } else {
  13130. cache[key] = vnode;
  13131. keys.push(key);
  13132. // prune oldest entry
  13133. if (this.max && keys.length > parseInt(this.max)) {
  13134. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  13135. }
  13136. }
  13137. vnode.data.keepAlive = true;
  13138. }
  13139. return vnode || (slot && slot[0])
  13140. }
  13141. };
  13142. var builtInComponents = {
  13143. KeepAlive: KeepAlive
  13144. };
  13145. /* */
  13146. function initGlobalAPI (Vue) {
  13147. // config
  13148. var configDef = {};
  13149. configDef.get = function () { return config; };
  13150. if (true) {
  13151. configDef.set = function () {
  13152. warn(
  13153. 'Do not replace the Vue.config object, set individual fields instead.'
  13154. );
  13155. };
  13156. }
  13157. Object.defineProperty(Vue, 'config', configDef);
  13158. // exposed util methods.
  13159. // NOTE: these are not considered part of the public API - avoid relying on
  13160. // them unless you are aware of the risk.
  13161. Vue.util = {
  13162. warn: warn,
  13163. extend: extend,
  13164. mergeOptions: mergeOptions,
  13165. defineReactive: defineReactive$$1
  13166. };
  13167. Vue.set = set;
  13168. Vue.delete = del;
  13169. Vue.nextTick = nextTick;
  13170. // 2.6 explicit observable API
  13171. Vue.observable = function (obj) {
  13172. observe(obj);
  13173. return obj
  13174. };
  13175. Vue.options = Object.create(null);
  13176. ASSET_TYPES.forEach(function (type) {
  13177. Vue.options[type + 's'] = Object.create(null);
  13178. });
  13179. // this is used to identify the "base" constructor to extend all plain-object
  13180. // components with in Weex's multi-instance scenarios.
  13181. Vue.options._base = Vue;
  13182. extend(Vue.options.components, builtInComponents);
  13183. initUse(Vue);
  13184. initMixin$1(Vue);
  13185. initExtend(Vue);
  13186. initAssetRegisters(Vue);
  13187. }
  13188. initGlobalAPI(Vue);
  13189. Object.defineProperty(Vue.prototype, '$isServer', {
  13190. get: isServerRendering
  13191. });
  13192. Object.defineProperty(Vue.prototype, '$ssrContext', {
  13193. get: function get () {
  13194. /* istanbul ignore next */
  13195. return this.$vnode && this.$vnode.ssrContext
  13196. }
  13197. });
  13198. // expose FunctionalRenderContext for ssr runtime helper installation
  13199. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  13200. value: FunctionalRenderContext
  13201. });
  13202. Vue.version = '2.6.11';
  13203. /**
  13204. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  13205. */
  13206. var ARRAYTYPE = '[object Array]';
  13207. var OBJECTTYPE = '[object Object]';
  13208. // const FUNCTIONTYPE = '[object Function]'
  13209. function diff(current, pre) {
  13210. var result = {};
  13211. syncKeys(current, pre);
  13212. _diff(current, pre, '', result);
  13213. return result
  13214. }
  13215. function syncKeys(current, pre) {
  13216. if (current === pre) { return }
  13217. var rootCurrentType = type(current);
  13218. var rootPreType = type(pre);
  13219. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  13220. if(Object.keys(current).length >= Object.keys(pre).length){
  13221. for (var key in pre) {
  13222. var currentValue = current[key];
  13223. if (currentValue === undefined) {
  13224. current[key] = null;
  13225. } else {
  13226. syncKeys(currentValue, pre[key]);
  13227. }
  13228. }
  13229. }
  13230. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  13231. if (current.length >= pre.length) {
  13232. pre.forEach(function (item, index) {
  13233. syncKeys(current[index], item);
  13234. });
  13235. }
  13236. }
  13237. }
  13238. function _diff(current, pre, path, result) {
  13239. if (current === pre) { return }
  13240. var rootCurrentType = type(current);
  13241. var rootPreType = type(pre);
  13242. if (rootCurrentType == OBJECTTYPE) {
  13243. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  13244. setResult(result, path, current);
  13245. } else {
  13246. var loop = function ( key ) {
  13247. var currentValue = current[key];
  13248. var preValue = pre[key];
  13249. var currentType = type(currentValue);
  13250. var preType = type(preValue);
  13251. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  13252. if (currentValue !== pre[key]) {
  13253. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  13254. }
  13255. } else if (currentType == ARRAYTYPE) {
  13256. if (preType != ARRAYTYPE) {
  13257. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  13258. } else {
  13259. if (currentValue.length < preValue.length) {
  13260. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  13261. } else {
  13262. currentValue.forEach(function (item, index) {
  13263. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  13264. });
  13265. }
  13266. }
  13267. } else if (currentType == OBJECTTYPE) {
  13268. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  13269. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  13270. } else {
  13271. for (var subKey in currentValue) {
  13272. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  13273. }
  13274. }
  13275. }
  13276. };
  13277. for (var key in current) loop( key );
  13278. }
  13279. } else if (rootCurrentType == ARRAYTYPE) {
  13280. if (rootPreType != ARRAYTYPE) {
  13281. setResult(result, path, current);
  13282. } else {
  13283. if (current.length < pre.length) {
  13284. setResult(result, path, current);
  13285. } else {
  13286. current.forEach(function (item, index) {
  13287. _diff(item, pre[index], path + '[' + index + ']', result);
  13288. });
  13289. }
  13290. }
  13291. } else {
  13292. setResult(result, path, current);
  13293. }
  13294. }
  13295. function setResult(result, k, v) {
  13296. // if (type(v) != FUNCTIONTYPE) {
  13297. result[k] = v;
  13298. // }
  13299. }
  13300. function type(obj) {
  13301. return Object.prototype.toString.call(obj)
  13302. }
  13303. /* */
  13304. function flushCallbacks$1(vm) {
  13305. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  13306. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"vrv-platform","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  13307. var mpInstance = vm.$scope;
  13308. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  13309. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  13310. }
  13311. var copies = vm.__next_tick_callbacks.slice(0);
  13312. vm.__next_tick_callbacks.length = 0;
  13313. for (var i = 0; i < copies.length; i++) {
  13314. copies[i]();
  13315. }
  13316. }
  13317. }
  13318. function hasRenderWatcher(vm) {
  13319. return queue.find(function (watcher) { return vm._watcher === watcher; })
  13320. }
  13321. function nextTick$1(vm, cb) {
  13322. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  13323. //2.nextTick 之前存在 render watcher
  13324. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  13325. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"vrv-platform","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  13326. var mpInstance = vm.$scope;
  13327. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  13328. ']:nextVueTick');
  13329. }
  13330. return nextTick(cb, vm)
  13331. }else{
  13332. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"vrv-platform","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  13333. var mpInstance$1 = vm.$scope;
  13334. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  13335. ']:nextMPTick');
  13336. }
  13337. }
  13338. var _resolve;
  13339. if (!vm.__next_tick_callbacks) {
  13340. vm.__next_tick_callbacks = [];
  13341. }
  13342. vm.__next_tick_callbacks.push(function () {
  13343. if (cb) {
  13344. try {
  13345. cb.call(vm);
  13346. } catch (e) {
  13347. handleError(e, vm, 'nextTick');
  13348. }
  13349. } else if (_resolve) {
  13350. _resolve(vm);
  13351. }
  13352. });
  13353. // $flow-disable-line
  13354. if (!cb && typeof Promise !== 'undefined') {
  13355. return new Promise(function (resolve) {
  13356. _resolve = resolve;
  13357. })
  13358. }
  13359. }
  13360. /* */
  13361. function cloneWithData(vm) {
  13362. // 确保当前 vm 所有数据被同步
  13363. var ret = Object.create(null);
  13364. var dataKeys = [].concat(
  13365. Object.keys(vm._data || {}),
  13366. Object.keys(vm._computedWatchers || {}));
  13367. dataKeys.reduce(function(ret, key) {
  13368. ret[key] = vm[key];
  13369. return ret
  13370. }, ret);
  13371. // vue-composition-api
  13372. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  13373. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  13374. if (rawBindings) {
  13375. Object.keys(rawBindings).forEach(function (key) {
  13376. ret[key] = vm[key];
  13377. });
  13378. }
  13379. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  13380. Object.assign(ret, vm.$mp.data || {});
  13381. if (
  13382. Array.isArray(vm.$options.behaviors) &&
  13383. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  13384. ) { //form-field
  13385. ret['name'] = vm.name;
  13386. ret['value'] = vm.value;
  13387. }
  13388. return JSON.parse(JSON.stringify(ret))
  13389. }
  13390. var patch = function(oldVnode, vnode) {
  13391. var this$1 = this;
  13392. if (vnode === null) { //destroy
  13393. return
  13394. }
  13395. if (this.mpType === 'page' || this.mpType === 'component') {
  13396. var mpInstance = this.$scope;
  13397. var data = Object.create(null);
  13398. try {
  13399. data = cloneWithData(this);
  13400. } catch (err) {
  13401. console.error(err);
  13402. }
  13403. data.__webviewId__ = mpInstance.data.__webviewId__;
  13404. var mpData = Object.create(null);
  13405. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  13406. mpData[key] = mpInstance.data[key];
  13407. });
  13408. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  13409. if (Object.keys(diffData).length) {
  13410. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"vrv-platform","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  13411. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  13412. ']差量更新',
  13413. JSON.stringify(diffData));
  13414. }
  13415. this.__next_tick_pending = true;
  13416. mpInstance.setData(diffData, function () {
  13417. this$1.__next_tick_pending = false;
  13418. flushCallbacks$1(this$1);
  13419. });
  13420. } else {
  13421. flushCallbacks$1(this);
  13422. }
  13423. }
  13424. };
  13425. /* */
  13426. function createEmptyRender() {
  13427. }
  13428. function mountComponent$1(
  13429. vm,
  13430. el,
  13431. hydrating
  13432. ) {
  13433. if (!vm.mpType) {//main.js 中的 new Vue
  13434. return vm
  13435. }
  13436. if (vm.mpType === 'app') {
  13437. vm.$options.render = createEmptyRender;
  13438. }
  13439. if (!vm.$options.render) {
  13440. vm.$options.render = createEmptyRender;
  13441. if (true) {
  13442. /* istanbul ignore if */
  13443. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  13444. vm.$options.el || el) {
  13445. warn(
  13446. 'You are using the runtime-only build of Vue where the template ' +
  13447. 'compiler is not available. Either pre-compile the templates into ' +
  13448. 'render functions, or use the compiler-included build.',
  13449. vm
  13450. );
  13451. } else {
  13452. warn(
  13453. 'Failed to mount component: template or render function not defined.',
  13454. vm
  13455. );
  13456. }
  13457. }
  13458. }
  13459. !vm._$fallback && callHook(vm, 'beforeMount');
  13460. var updateComponent = function () {
  13461. vm._update(vm._render(), hydrating);
  13462. };
  13463. // we set this to vm._watcher inside the watcher's constructor
  13464. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  13465. // component's mounted hook), which relies on vm._watcher being already defined
  13466. new Watcher(vm, updateComponent, noop, {
  13467. before: function before() {
  13468. if (vm._isMounted && !vm._isDestroyed) {
  13469. callHook(vm, 'beforeUpdate');
  13470. }
  13471. }
  13472. }, true /* isRenderWatcher */);
  13473. hydrating = false;
  13474. return vm
  13475. }
  13476. /* */
  13477. function renderClass (
  13478. staticClass,
  13479. dynamicClass
  13480. ) {
  13481. if (isDef(staticClass) || isDef(dynamicClass)) {
  13482. return concat(staticClass, stringifyClass(dynamicClass))
  13483. }
  13484. /* istanbul ignore next */
  13485. return ''
  13486. }
  13487. function concat (a, b) {
  13488. return a ? b ? (a + ' ' + b) : a : (b || '')
  13489. }
  13490. function stringifyClass (value) {
  13491. if (Array.isArray(value)) {
  13492. return stringifyArray(value)
  13493. }
  13494. if (isObject(value)) {
  13495. return stringifyObject(value)
  13496. }
  13497. if (typeof value === 'string') {
  13498. return value
  13499. }
  13500. /* istanbul ignore next */
  13501. return ''
  13502. }
  13503. function stringifyArray (value) {
  13504. var res = '';
  13505. var stringified;
  13506. for (var i = 0, l = value.length; i < l; i++) {
  13507. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  13508. if (res) { res += ' '; }
  13509. res += stringified;
  13510. }
  13511. }
  13512. return res
  13513. }
  13514. function stringifyObject (value) {
  13515. var res = '';
  13516. for (var key in value) {
  13517. if (value[key]) {
  13518. if (res) { res += ' '; }
  13519. res += key;
  13520. }
  13521. }
  13522. return res
  13523. }
  13524. /* */
  13525. var parseStyleText = cached(function (cssText) {
  13526. var res = {};
  13527. var listDelimiter = /;(?![^(]*\))/g;
  13528. var propertyDelimiter = /:(.+)/;
  13529. cssText.split(listDelimiter).forEach(function (item) {
  13530. if (item) {
  13531. var tmp = item.split(propertyDelimiter);
  13532. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  13533. }
  13534. });
  13535. return res
  13536. });
  13537. // normalize possible array / string values into Object
  13538. function normalizeStyleBinding (bindingStyle) {
  13539. if (Array.isArray(bindingStyle)) {
  13540. return toObject(bindingStyle)
  13541. }
  13542. if (typeof bindingStyle === 'string') {
  13543. return parseStyleText(bindingStyle)
  13544. }
  13545. return bindingStyle
  13546. }
  13547. /* */
  13548. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  13549. function getTarget(obj, path) {
  13550. var parts = path.split('.');
  13551. var key = parts[0];
  13552. if (key.indexOf('__$n') === 0) { //number index
  13553. key = parseInt(key.replace('__$n', ''));
  13554. }
  13555. if (parts.length === 1) {
  13556. return obj[key]
  13557. }
  13558. return getTarget(obj[key], parts.slice(1).join('.'))
  13559. }
  13560. function internalMixin(Vue) {
  13561. Vue.config.errorHandler = function(err, vm, info) {
  13562. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  13563. console.error(err);
  13564. /* eslint-disable no-undef */
  13565. var app = typeof getApp === 'function' && getApp();
  13566. if (app && app.onError) {
  13567. app.onError(err);
  13568. }
  13569. };
  13570. var oldEmit = Vue.prototype.$emit;
  13571. Vue.prototype.$emit = function(event) {
  13572. if (this.$scope && event) {
  13573. (this.$scope['_triggerEvent'] || this.$scope['triggerEvent']).call(this.$scope, event, {
  13574. __args__: toArray(arguments, 1)
  13575. });
  13576. }
  13577. return oldEmit.apply(this, arguments)
  13578. };
  13579. Vue.prototype.$nextTick = function(fn) {
  13580. return nextTick$1(this, fn)
  13581. };
  13582. MP_METHODS.forEach(function (method) {
  13583. Vue.prototype[method] = function(args) {
  13584. if (this.$scope && this.$scope[method]) {
  13585. return this.$scope[method](args)
  13586. }
  13587. // mp-alipay
  13588. if (typeof my === 'undefined') {
  13589. return
  13590. }
  13591. if (method === 'createSelectorQuery') {
  13592. /* eslint-disable no-undef */
  13593. return my.createSelectorQuery(args)
  13594. } else if (method === 'createIntersectionObserver') {
  13595. /* eslint-disable no-undef */
  13596. return my.createIntersectionObserver(args)
  13597. }
  13598. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  13599. };
  13600. });
  13601. Vue.prototype.__init_provide = initProvide;
  13602. Vue.prototype.__init_injections = initInjections;
  13603. Vue.prototype.__call_hook = function(hook, args) {
  13604. var vm = this;
  13605. // #7573 disable dep collection when invoking lifecycle hooks
  13606. pushTarget();
  13607. var handlers = vm.$options[hook];
  13608. var info = hook + " hook";
  13609. var ret;
  13610. if (handlers) {
  13611. for (var i = 0, j = handlers.length; i < j; i++) {
  13612. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  13613. }
  13614. }
  13615. if (vm._hasHookEvent) {
  13616. vm.$emit('hook:' + hook, args);
  13617. }
  13618. popTarget();
  13619. return ret
  13620. };
  13621. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  13622. if (Array.isArray(modifiers)) {
  13623. if (modifiers.indexOf('trim') !== -1) {
  13624. value = value.trim();
  13625. }
  13626. if (modifiers.indexOf('number') !== -1) {
  13627. value = this._n(value);
  13628. }
  13629. }
  13630. if (!target) {
  13631. target = this;
  13632. }
  13633. // 解决动态属性添加
  13634. Vue.set(target, key, value);
  13635. };
  13636. Vue.prototype.__set_sync = function(target, key, value) {
  13637. if (!target) {
  13638. target = this;
  13639. }
  13640. // 解决动态属性添加
  13641. Vue.set(target, key, value);
  13642. };
  13643. Vue.prototype.__get_orig = function(item) {
  13644. if (isPlainObject(item)) {
  13645. return item['$orig'] || item
  13646. }
  13647. return item
  13648. };
  13649. Vue.prototype.__get_value = function(dataPath, target) {
  13650. return getTarget(target || this, dataPath)
  13651. };
  13652. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  13653. return renderClass(staticClass, dynamicClass)
  13654. };
  13655. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  13656. if (!dynamicStyle && !staticStyle) {
  13657. return ''
  13658. }
  13659. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  13660. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  13661. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  13662. };
  13663. Vue.prototype.__map = function(val, iteratee) {
  13664. //TODO 暂不考虑 string
  13665. var ret, i, l, keys, key;
  13666. if (Array.isArray(val)) {
  13667. ret = new Array(val.length);
  13668. for (i = 0, l = val.length; i < l; i++) {
  13669. ret[i] = iteratee(val[i], i);
  13670. }
  13671. return ret
  13672. } else if (isObject(val)) {
  13673. keys = Object.keys(val);
  13674. ret = Object.create(null);
  13675. for (i = 0, l = keys.length; i < l; i++) {
  13676. key = keys[i];
  13677. ret[key] = iteratee(val[key], key, i);
  13678. }
  13679. return ret
  13680. } else if (typeof val === 'number') {
  13681. ret = new Array(val);
  13682. for (i = 0, l = val; i < l; i++) {
  13683. // 第一个参数暂时仍和小程序一致
  13684. ret[i] = iteratee(i, i);
  13685. }
  13686. return ret
  13687. }
  13688. return []
  13689. };
  13690. }
  13691. /* */
  13692. var LIFECYCLE_HOOKS$1 = [
  13693. //App
  13694. 'onLaunch',
  13695. 'onShow',
  13696. 'onHide',
  13697. 'onUniNViewMessage',
  13698. 'onPageNotFound',
  13699. 'onThemeChange',
  13700. 'onError',
  13701. 'onUnhandledRejection',
  13702. //Page
  13703. 'onInit',
  13704. 'onLoad',
  13705. // 'onShow',
  13706. 'onReady',
  13707. // 'onHide',
  13708. 'onUnload',
  13709. 'onPullDownRefresh',
  13710. 'onReachBottom',
  13711. 'onTabItemTap',
  13712. 'onAddToFavorites',
  13713. 'onShareTimeline',
  13714. 'onShareAppMessage',
  13715. 'onResize',
  13716. 'onPageScroll',
  13717. 'onNavigationBarButtonTap',
  13718. 'onBackPress',
  13719. 'onNavigationBarSearchInputChanged',
  13720. 'onNavigationBarSearchInputConfirmed',
  13721. 'onNavigationBarSearchInputClicked',
  13722. //Component
  13723. // 'onReady', // 兼容旧版本,应该移除该事件
  13724. 'onPageShow',
  13725. 'onPageHide',
  13726. 'onPageResize'
  13727. ];
  13728. function lifecycleMixin$1(Vue) {
  13729. //fixed vue-class-component
  13730. var oldExtend = Vue.extend;
  13731. Vue.extend = function(extendOptions) {
  13732. extendOptions = extendOptions || {};
  13733. var methods = extendOptions.methods;
  13734. if (methods) {
  13735. Object.keys(methods).forEach(function (methodName) {
  13736. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  13737. extendOptions[methodName] = methods[methodName];
  13738. delete methods[methodName];
  13739. }
  13740. });
  13741. }
  13742. return oldExtend.call(this, extendOptions)
  13743. };
  13744. var strategies = Vue.config.optionMergeStrategies;
  13745. var mergeHook = strategies.created;
  13746. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  13747. strategies[hook] = mergeHook;
  13748. });
  13749. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  13750. }
  13751. /* */
  13752. // install platform patch function
  13753. Vue.prototype.__patch__ = patch;
  13754. // public mount method
  13755. Vue.prototype.$mount = function(
  13756. el ,
  13757. hydrating
  13758. ) {
  13759. return mountComponent$1(this, el, hydrating)
  13760. };
  13761. lifecycleMixin$1(Vue);
  13762. internalMixin(Vue);
  13763. /* */
  13764. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  13765. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  13766. /***/ }),
  13767. /***/ 5:
  13768. /*!***************************************************************************************!*\
  13769. !*** C:/Users/askin/IdeaProjects/airconditioner/sources/client/vrv-moblie/pages.json ***!
  13770. \***************************************************************************************/
  13771. /*! no static exports found */
  13772. /***/ (function(module, exports) {
  13773. /***/ })
  13774. }]);
  13775. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map