moment-with-locales.js 591 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757
  1. ;(function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. global.moment = factory()
  5. }(this, (function () { 'use strict';
  6. var hookCallback;
  7. function hooks() {
  8. return hookCallback.apply(null, arguments);
  9. }
  10. // This is done to register the method called with moment()
  11. // without creating circular dependencies.
  12. function setHookCallback(callback) {
  13. hookCallback = callback;
  14. }
  15. function isArray(input) {
  16. return (
  17. input instanceof Array ||
  18. Object.prototype.toString.call(input) === '[object Array]'
  19. );
  20. }
  21. function isObject(input) {
  22. // IE8 will treat undefined and null as object if it wasn't for
  23. // input != null
  24. return (
  25. input != null &&
  26. Object.prototype.toString.call(input) === '[object Object]'
  27. );
  28. }
  29. function hasOwnProp(a, b) {
  30. return Object.prototype.hasOwnProperty.call(a, b);
  31. }
  32. function isObjectEmpty(obj) {
  33. if (Object.getOwnPropertyNames) {
  34. return Object.getOwnPropertyNames(obj).length === 0;
  35. } else {
  36. var k;
  37. for (k in obj) {
  38. if (hasOwnProp(obj, k)) {
  39. return false;
  40. }
  41. }
  42. return true;
  43. }
  44. }
  45. function isUndefined(input) {
  46. return input === void 0;
  47. }
  48. function isNumber(input) {
  49. return (
  50. typeof input === 'number' ||
  51. Object.prototype.toString.call(input) === '[object Number]'
  52. );
  53. }
  54. function isDate(input) {
  55. return (
  56. input instanceof Date ||
  57. Object.prototype.toString.call(input) === '[object Date]'
  58. );
  59. }
  60. function map(arr, fn) {
  61. var res = [],
  62. i;
  63. for (i = 0; i < arr.length; ++i) {
  64. res.push(fn(arr[i], i));
  65. }
  66. return res;
  67. }
  68. function extend(a, b) {
  69. for (var i in b) {
  70. if (hasOwnProp(b, i)) {
  71. a[i] = b[i];
  72. }
  73. }
  74. if (hasOwnProp(b, 'toString')) {
  75. a.toString = b.toString;
  76. }
  77. if (hasOwnProp(b, 'valueOf')) {
  78. a.valueOf = b.valueOf;
  79. }
  80. return a;
  81. }
  82. function createUTC(input, format, locale, strict) {
  83. return createLocalOrUTC(input, format, locale, strict, true).utc();
  84. }
  85. function defaultParsingFlags() {
  86. // We need to deep clone this object.
  87. return {
  88. empty: false,
  89. unusedTokens: [],
  90. unusedInput: [],
  91. overflow: -2,
  92. charsLeftOver: 0,
  93. nullInput: false,
  94. invalidEra: null,
  95. invalidMonth: null,
  96. invalidFormat: false,
  97. userInvalidated: false,
  98. iso: false,
  99. parsedDateParts: [],
  100. era: null,
  101. meridiem: null,
  102. rfc2822: false,
  103. weekdayMismatch: false,
  104. };
  105. }
  106. function getParsingFlags(m) {
  107. if (m._pf == null) {
  108. m._pf = defaultParsingFlags();
  109. }
  110. return m._pf;
  111. }
  112. var some;
  113. if (Array.prototype.some) {
  114. some = Array.prototype.some;
  115. } else {
  116. some = function (fun) {
  117. var t = Object(this),
  118. len = t.length >>> 0,
  119. i;
  120. for (i = 0; i < len; i++) {
  121. if (i in t && fun.call(this, t[i], i, t)) {
  122. return true;
  123. }
  124. }
  125. return false;
  126. };
  127. }
  128. function isValid(m) {
  129. if (m._isValid == null) {
  130. var flags = getParsingFlags(m),
  131. parsedParts = some.call(flags.parsedDateParts, function (i) {
  132. return i != null;
  133. }),
  134. isNowValid =
  135. !isNaN(m._d.getTime()) &&
  136. flags.overflow < 0 &&
  137. !flags.empty &&
  138. !flags.invalidEra &&
  139. !flags.invalidMonth &&
  140. !flags.invalidWeekday &&
  141. !flags.weekdayMismatch &&
  142. !flags.nullInput &&
  143. !flags.invalidFormat &&
  144. !flags.userInvalidated &&
  145. (!flags.meridiem || (flags.meridiem && parsedParts));
  146. if (m._strict) {
  147. isNowValid =
  148. isNowValid &&
  149. flags.charsLeftOver === 0 &&
  150. flags.unusedTokens.length === 0 &&
  151. flags.bigHour === undefined;
  152. }
  153. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  154. m._isValid = isNowValid;
  155. } else {
  156. return isNowValid;
  157. }
  158. }
  159. return m._isValid;
  160. }
  161. function createInvalid(flags) {
  162. var m = createUTC(NaN);
  163. if (flags != null) {
  164. extend(getParsingFlags(m), flags);
  165. } else {
  166. getParsingFlags(m).userInvalidated = true;
  167. }
  168. return m;
  169. }
  170. // Plugins that add properties should also add the key here (null value),
  171. // so we can properly clone ourselves.
  172. var momentProperties = (hooks.momentProperties = []),
  173. updateInProgress = false;
  174. function copyConfig(to, from) {
  175. var i, prop, val;
  176. if (!isUndefined(from._isAMomentObject)) {
  177. to._isAMomentObject = from._isAMomentObject;
  178. }
  179. if (!isUndefined(from._i)) {
  180. to._i = from._i;
  181. }
  182. if (!isUndefined(from._f)) {
  183. to._f = from._f;
  184. }
  185. if (!isUndefined(from._l)) {
  186. to._l = from._l;
  187. }
  188. if (!isUndefined(from._strict)) {
  189. to._strict = from._strict;
  190. }
  191. if (!isUndefined(from._tzm)) {
  192. to._tzm = from._tzm;
  193. }
  194. if (!isUndefined(from._isUTC)) {
  195. to._isUTC = from._isUTC;
  196. }
  197. if (!isUndefined(from._offset)) {
  198. to._offset = from._offset;
  199. }
  200. if (!isUndefined(from._pf)) {
  201. to._pf = getParsingFlags(from);
  202. }
  203. if (!isUndefined(from._locale)) {
  204. to._locale = from._locale;
  205. }
  206. if (momentProperties.length > 0) {
  207. for (i = 0; i < momentProperties.length; i++) {
  208. prop = momentProperties[i];
  209. val = from[prop];
  210. if (!isUndefined(val)) {
  211. to[prop] = val;
  212. }
  213. }
  214. }
  215. return to;
  216. }
  217. // Moment prototype object
  218. function Moment(config) {
  219. copyConfig(this, config);
  220. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  221. if (!this.isValid()) {
  222. this._d = new Date(NaN);
  223. }
  224. // Prevent infinite loop in case updateOffset creates new moment
  225. // objects.
  226. if (updateInProgress === false) {
  227. updateInProgress = true;
  228. hooks.updateOffset(this);
  229. updateInProgress = false;
  230. }
  231. }
  232. function isMoment(obj) {
  233. return (
  234. obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
  235. );
  236. }
  237. function warn(msg) {
  238. if (
  239. hooks.suppressDeprecationWarnings === false &&
  240. typeof console !== 'undefined' &&
  241. console.warn
  242. ) {
  243. console.warn('Deprecation warning: ' + msg);
  244. }
  245. }
  246. function deprecate(msg, fn) {
  247. var firstTime = true;
  248. return extend(function () {
  249. if (hooks.deprecationHandler != null) {
  250. hooks.deprecationHandler(null, msg);
  251. }
  252. if (firstTime) {
  253. var args = [],
  254. arg,
  255. i,
  256. key;
  257. for (i = 0; i < arguments.length; i++) {
  258. arg = '';
  259. if (typeof arguments[i] === 'object') {
  260. arg += '\n[' + i + '] ';
  261. for (key in arguments[0]) {
  262. if (hasOwnProp(arguments[0], key)) {
  263. arg += key + ': ' + arguments[0][key] + ', ';
  264. }
  265. }
  266. arg = arg.slice(0, -2); // Remove trailing comma and space
  267. } else {
  268. arg = arguments[i];
  269. }
  270. args.push(arg);
  271. }
  272. warn(
  273. msg +
  274. '\nArguments: ' +
  275. Array.prototype.slice.call(args).join('') +
  276. '\n' +
  277. new Error().stack
  278. );
  279. firstTime = false;
  280. }
  281. return fn.apply(this, arguments);
  282. }, fn);
  283. }
  284. var deprecations = {};
  285. function deprecateSimple(name, msg) {
  286. if (hooks.deprecationHandler != null) {
  287. hooks.deprecationHandler(name, msg);
  288. }
  289. if (!deprecations[name]) {
  290. warn(msg);
  291. deprecations[name] = true;
  292. }
  293. }
  294. hooks.suppressDeprecationWarnings = false;
  295. hooks.deprecationHandler = null;
  296. function isFunction(input) {
  297. return (
  298. (typeof Function !== 'undefined' && input instanceof Function) ||
  299. Object.prototype.toString.call(input) === '[object Function]'
  300. );
  301. }
  302. function set(config) {
  303. var prop, i;
  304. for (i in config) {
  305. if (hasOwnProp(config, i)) {
  306. prop = config[i];
  307. if (isFunction(prop)) {
  308. this[i] = prop;
  309. } else {
  310. this['_' + i] = prop;
  311. }
  312. }
  313. }
  314. this._config = config;
  315. // Lenient ordinal parsing accepts just a number in addition to
  316. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  317. // TODO: Remove "ordinalParse" fallback in next major release.
  318. this._dayOfMonthOrdinalParseLenient = new RegExp(
  319. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  320. '|' +
  321. /\d{1,2}/.source
  322. );
  323. }
  324. function mergeConfigs(parentConfig, childConfig) {
  325. var res = extend({}, parentConfig),
  326. prop;
  327. for (prop in childConfig) {
  328. if (hasOwnProp(childConfig, prop)) {
  329. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  330. res[prop] = {};
  331. extend(res[prop], parentConfig[prop]);
  332. extend(res[prop], childConfig[prop]);
  333. } else if (childConfig[prop] != null) {
  334. res[prop] = childConfig[prop];
  335. } else {
  336. delete res[prop];
  337. }
  338. }
  339. }
  340. for (prop in parentConfig) {
  341. if (
  342. hasOwnProp(parentConfig, prop) &&
  343. !hasOwnProp(childConfig, prop) &&
  344. isObject(parentConfig[prop])
  345. ) {
  346. // make sure changes to properties don't modify parent config
  347. res[prop] = extend({}, res[prop]);
  348. }
  349. }
  350. return res;
  351. }
  352. function Locale(config) {
  353. if (config != null) {
  354. this.set(config);
  355. }
  356. }
  357. var keys;
  358. if (Object.keys) {
  359. keys = Object.keys;
  360. } else {
  361. keys = function (obj) {
  362. var i,
  363. res = [];
  364. for (i in obj) {
  365. if (hasOwnProp(obj, i)) {
  366. res.push(i);
  367. }
  368. }
  369. return res;
  370. };
  371. }
  372. var defaultCalendar = {
  373. sameDay: '[Today at] LT',
  374. nextDay: '[Tomorrow at] LT',
  375. nextWeek: 'dddd [at] LT',
  376. lastDay: '[Yesterday at] LT',
  377. lastWeek: '[Last] dddd [at] LT',
  378. sameElse: 'L',
  379. };
  380. function calendar(key, mom, now) {
  381. var output = this._calendar[key] || this._calendar['sameElse'];
  382. return isFunction(output) ? output.call(mom, now) : output;
  383. }
  384. function zeroFill(number, targetLength, forceSign) {
  385. var absNumber = '' + Math.abs(number),
  386. zerosToFill = targetLength - absNumber.length,
  387. sign = number >= 0;
  388. return (
  389. (sign ? (forceSign ? '+' : '') : '-') +
  390. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
  391. absNumber
  392. );
  393. }
  394. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
  395. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  396. formatFunctions = {},
  397. formatTokenFunctions = {};
  398. // token: 'M'
  399. // padded: ['MM', 2]
  400. // ordinal: 'Mo'
  401. // callback: function () { this.month() + 1 }
  402. function addFormatToken(token, padded, ordinal, callback) {
  403. var func = callback;
  404. if (typeof callback === 'string') {
  405. func = function () {
  406. return this[callback]();
  407. };
  408. }
  409. if (token) {
  410. formatTokenFunctions[token] = func;
  411. }
  412. if (padded) {
  413. formatTokenFunctions[padded[0]] = function () {
  414. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  415. };
  416. }
  417. if (ordinal) {
  418. formatTokenFunctions[ordinal] = function () {
  419. return this.localeData().ordinal(
  420. func.apply(this, arguments),
  421. token
  422. );
  423. };
  424. }
  425. }
  426. function removeFormattingTokens(input) {
  427. if (input.match(/\[[\s\S]/)) {
  428. return input.replace(/^\[|\]$/g, '');
  429. }
  430. return input.replace(/\\/g, '');
  431. }
  432. function makeFormatFunction(format) {
  433. var array = format.match(formattingTokens),
  434. i,
  435. length;
  436. for (i = 0, length = array.length; i < length; i++) {
  437. if (formatTokenFunctions[array[i]]) {
  438. array[i] = formatTokenFunctions[array[i]];
  439. } else {
  440. array[i] = removeFormattingTokens(array[i]);
  441. }
  442. }
  443. return function (mom) {
  444. var output = '',
  445. i;
  446. for (i = 0; i < length; i++) {
  447. output += isFunction(array[i])
  448. ? array[i].call(mom, format)
  449. : array[i];
  450. }
  451. return output;
  452. };
  453. }
  454. // format date using native date object
  455. function formatMoment(m, format) {
  456. if (!m.isValid()) {
  457. return m.localeData().invalidDate();
  458. }
  459. format = expandFormat(format, m.localeData());
  460. formatFunctions[format] =
  461. formatFunctions[format] || makeFormatFunction(format);
  462. return formatFunctions[format](m);
  463. }
  464. function expandFormat(format, locale) {
  465. var i = 5;
  466. function replaceLongDateFormatTokens(input) {
  467. return locale.longDateFormat(input) || input;
  468. }
  469. localFormattingTokens.lastIndex = 0;
  470. while (i >= 0 && localFormattingTokens.test(format)) {
  471. format = format.replace(
  472. localFormattingTokens,
  473. replaceLongDateFormatTokens
  474. );
  475. localFormattingTokens.lastIndex = 0;
  476. i -= 1;
  477. }
  478. return format;
  479. }
  480. var defaultLongDateFormat = {
  481. LTS: 'h:mm:ss A',
  482. LT: 'h:mm A',
  483. L: 'MM/DD/YYYY',
  484. LL: 'MMMM D, YYYY',
  485. LLL: 'MMMM D, YYYY h:mm A',
  486. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  487. };
  488. function longDateFormat(key) {
  489. var format = this._longDateFormat[key],
  490. formatUpper = this._longDateFormat[key.toUpperCase()];
  491. if (format || !formatUpper) {
  492. return format;
  493. }
  494. this._longDateFormat[key] = formatUpper
  495. .match(formattingTokens)
  496. .map(function (tok) {
  497. if (
  498. tok === 'MMMM' ||
  499. tok === 'MM' ||
  500. tok === 'DD' ||
  501. tok === 'dddd'
  502. ) {
  503. return tok.slice(1);
  504. }
  505. return tok;
  506. })
  507. .join('');
  508. return this._longDateFormat[key];
  509. }
  510. var defaultInvalidDate = 'Invalid date';
  511. function invalidDate() {
  512. return this._invalidDate;
  513. }
  514. var defaultOrdinal = '%d',
  515. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  516. function ordinal(number) {
  517. return this._ordinal.replace('%d', number);
  518. }
  519. var defaultRelativeTime = {
  520. future: 'in %s',
  521. past: '%s ago',
  522. s: 'a few seconds',
  523. ss: '%d seconds',
  524. m: 'a minute',
  525. mm: '%d minutes',
  526. h: 'an hour',
  527. hh: '%d hours',
  528. d: 'a day',
  529. dd: '%d days',
  530. w: 'a week',
  531. ww: '%d weeks',
  532. M: 'a month',
  533. MM: '%d months',
  534. y: 'a year',
  535. yy: '%d years',
  536. };
  537. function relativeTime(number, withoutSuffix, string, isFuture) {
  538. var output = this._relativeTime[string];
  539. return isFunction(output)
  540. ? output(number, withoutSuffix, string, isFuture)
  541. : output.replace(/%d/i, number);
  542. }
  543. function pastFuture(diff, output) {
  544. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  545. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  546. }
  547. var aliases = {};
  548. function addUnitAlias(unit, shorthand) {
  549. var lowerCase = unit.toLowerCase();
  550. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  551. }
  552. function normalizeUnits(units) {
  553. return typeof units === 'string'
  554. ? aliases[units] || aliases[units.toLowerCase()]
  555. : undefined;
  556. }
  557. function normalizeObjectUnits(inputObject) {
  558. var normalizedInput = {},
  559. normalizedProp,
  560. prop;
  561. for (prop in inputObject) {
  562. if (hasOwnProp(inputObject, prop)) {
  563. normalizedProp = normalizeUnits(prop);
  564. if (normalizedProp) {
  565. normalizedInput[normalizedProp] = inputObject[prop];
  566. }
  567. }
  568. }
  569. return normalizedInput;
  570. }
  571. var priorities = {};
  572. function addUnitPriority(unit, priority) {
  573. priorities[unit] = priority;
  574. }
  575. function getPrioritizedUnits(unitsObj) {
  576. var units = [],
  577. u;
  578. for (u in unitsObj) {
  579. if (hasOwnProp(unitsObj, u)) {
  580. units.push({ unit: u, priority: priorities[u] });
  581. }
  582. }
  583. units.sort(function (a, b) {
  584. return a.priority - b.priority;
  585. });
  586. return units;
  587. }
  588. function isLeapYear(year) {
  589. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  590. }
  591. function absFloor(number) {
  592. if (number < 0) {
  593. // -0 -> 0
  594. return Math.ceil(number) || 0;
  595. } else {
  596. return Math.floor(number);
  597. }
  598. }
  599. function toInt(argumentForCoercion) {
  600. var coercedNumber = +argumentForCoercion,
  601. value = 0;
  602. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  603. value = absFloor(coercedNumber);
  604. }
  605. return value;
  606. }
  607. function makeGetSet(unit, keepTime) {
  608. return function (value) {
  609. if (value != null) {
  610. set$1(this, unit, value);
  611. hooks.updateOffset(this, keepTime);
  612. return this;
  613. } else {
  614. return get(this, unit);
  615. }
  616. };
  617. }
  618. function get(mom, unit) {
  619. return mom.isValid()
  620. ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
  621. : NaN;
  622. }
  623. function set$1(mom, unit, value) {
  624. if (mom.isValid() && !isNaN(value)) {
  625. if (
  626. unit === 'FullYear' &&
  627. isLeapYear(mom.year()) &&
  628. mom.month() === 1 &&
  629. mom.date() === 29
  630. ) {
  631. value = toInt(value);
  632. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
  633. value,
  634. mom.month(),
  635. daysInMonth(value, mom.month())
  636. );
  637. } else {
  638. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  639. }
  640. }
  641. }
  642. // MOMENTS
  643. function stringGet(units) {
  644. units = normalizeUnits(units);
  645. if (isFunction(this[units])) {
  646. return this[units]();
  647. }
  648. return this;
  649. }
  650. function stringSet(units, value) {
  651. if (typeof units === 'object') {
  652. units = normalizeObjectUnits(units);
  653. var prioritized = getPrioritizedUnits(units),
  654. i;
  655. for (i = 0; i < prioritized.length; i++) {
  656. this[prioritized[i].unit](units[prioritized[i].unit]);
  657. }
  658. } else {
  659. units = normalizeUnits(units);
  660. if (isFunction(this[units])) {
  661. return this[units](value);
  662. }
  663. }
  664. return this;
  665. }
  666. var match1 = /\d/, // 0 - 9
  667. match2 = /\d\d/, // 00 - 99
  668. match3 = /\d{3}/, // 000 - 999
  669. match4 = /\d{4}/, // 0000 - 9999
  670. match6 = /[+-]?\d{6}/, // -999999 - 999999
  671. match1to2 = /\d\d?/, // 0 - 99
  672. match3to4 = /\d\d\d\d?/, // 999 - 9999
  673. match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
  674. match1to3 = /\d{1,3}/, // 0 - 999
  675. match1to4 = /\d{1,4}/, // 0 - 9999
  676. match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
  677. matchUnsigned = /\d+/, // 0 - inf
  678. matchSigned = /[+-]?\d+/, // -inf - inf
  679. matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
  680. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  681. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
  682. // any word (or two) characters or numbers including two/three word month in arabic.
  683. // includes scottish gaelic two word and hyphenated months
  684. matchWord = /[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,
  685. regexes;
  686. regexes = {};
  687. function addRegexToken(token, regex, strictRegex) {
  688. regexes[token] = isFunction(regex)
  689. ? regex
  690. : function (isStrict, localeData) {
  691. return isStrict && strictRegex ? strictRegex : regex;
  692. };
  693. }
  694. function getParseRegexForToken(token, config) {
  695. if (!hasOwnProp(regexes, token)) {
  696. return new RegExp(unescapeFormat(token));
  697. }
  698. return regexes[token](config._strict, config._locale);
  699. }
  700. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  701. function unescapeFormat(s) {
  702. return regexEscape(
  703. s
  704. .replace('\\', '')
  705. .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
  706. matched,
  707. p1,
  708. p2,
  709. p3,
  710. p4
  711. ) {
  712. return p1 || p2 || p3 || p4;
  713. })
  714. );
  715. }
  716. function regexEscape(s) {
  717. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  718. }
  719. var tokens = {};
  720. function addParseToken(token, callback) {
  721. var i,
  722. func = callback;
  723. if (typeof token === 'string') {
  724. token = [token];
  725. }
  726. if (isNumber(callback)) {
  727. func = function (input, array) {
  728. array[callback] = toInt(input);
  729. };
  730. }
  731. for (i = 0; i < token.length; i++) {
  732. tokens[token[i]] = func;
  733. }
  734. }
  735. function addWeekParseToken(token, callback) {
  736. addParseToken(token, function (input, array, config, token) {
  737. config._w = config._w || {};
  738. callback(input, config._w, config, token);
  739. });
  740. }
  741. function addTimeToArrayFromToken(token, input, config) {
  742. if (input != null && hasOwnProp(tokens, token)) {
  743. tokens[token](input, config._a, config, token);
  744. }
  745. }
  746. var YEAR = 0,
  747. MONTH = 1,
  748. DATE = 2,
  749. HOUR = 3,
  750. MINUTE = 4,
  751. SECOND = 5,
  752. MILLISECOND = 6,
  753. WEEK = 7,
  754. WEEKDAY = 8;
  755. function mod(n, x) {
  756. return ((n % x) + x) % x;
  757. }
  758. var indexOf;
  759. if (Array.prototype.indexOf) {
  760. indexOf = Array.prototype.indexOf;
  761. } else {
  762. indexOf = function (o) {
  763. // I know
  764. var i;
  765. for (i = 0; i < this.length; ++i) {
  766. if (this[i] === o) {
  767. return i;
  768. }
  769. }
  770. return -1;
  771. };
  772. }
  773. function daysInMonth(year, month) {
  774. if (isNaN(year) || isNaN(month)) {
  775. return NaN;
  776. }
  777. var modMonth = mod(month, 12);
  778. year += (month - modMonth) / 12;
  779. return modMonth === 1
  780. ? isLeapYear(year)
  781. ? 29
  782. : 28
  783. : 31 - ((modMonth % 7) % 2);
  784. }
  785. // FORMATTING
  786. addFormatToken('M', ['MM', 2], 'Mo', function () {
  787. return this.month() + 1;
  788. });
  789. addFormatToken('MMM', 0, 0, function (format) {
  790. return this.localeData().monthsShort(this, format);
  791. });
  792. addFormatToken('MMMM', 0, 0, function (format) {
  793. return this.localeData().months(this, format);
  794. });
  795. // ALIASES
  796. addUnitAlias('month', 'M');
  797. // PRIORITY
  798. addUnitPriority('month', 8);
  799. // PARSING
  800. addRegexToken('M', match1to2);
  801. addRegexToken('MM', match1to2, match2);
  802. addRegexToken('MMM', function (isStrict, locale) {
  803. return locale.monthsShortRegex(isStrict);
  804. });
  805. addRegexToken('MMMM', function (isStrict, locale) {
  806. return locale.monthsRegex(isStrict);
  807. });
  808. addParseToken(['M', 'MM'], function (input, array) {
  809. array[MONTH] = toInt(input) - 1;
  810. });
  811. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  812. var month = config._locale.monthsParse(input, token, config._strict);
  813. // if we didn't find a month name, mark the date as invalid.
  814. if (month != null) {
  815. array[MONTH] = month;
  816. } else {
  817. getParsingFlags(config).invalidMonth = input;
  818. }
  819. });
  820. // LOCALES
  821. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  822. '_'
  823. ),
  824. defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
  825. '_'
  826. ),
  827. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  828. defaultMonthsShortRegex = matchWord,
  829. defaultMonthsRegex = matchWord;
  830. function localeMonths(m, format) {
  831. if (!m) {
  832. return isArray(this._months)
  833. ? this._months
  834. : this._months['standalone'];
  835. }
  836. return isArray(this._months)
  837. ? this._months[m.month()]
  838. : this._months[
  839. (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
  840. ? 'format'
  841. : 'standalone'
  842. ][m.month()];
  843. }
  844. function localeMonthsShort(m, format) {
  845. if (!m) {
  846. return isArray(this._monthsShort)
  847. ? this._monthsShort
  848. : this._monthsShort['standalone'];
  849. }
  850. return isArray(this._monthsShort)
  851. ? this._monthsShort[m.month()]
  852. : this._monthsShort[
  853. MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
  854. ][m.month()];
  855. }
  856. function handleStrictParse(monthName, format, strict) {
  857. var i,
  858. ii,
  859. mom,
  860. llc = monthName.toLocaleLowerCase();
  861. if (!this._monthsParse) {
  862. // this is not used
  863. this._monthsParse = [];
  864. this._longMonthsParse = [];
  865. this._shortMonthsParse = [];
  866. for (i = 0; i < 12; ++i) {
  867. mom = createUTC([2000, i]);
  868. this._shortMonthsParse[i] = this.monthsShort(
  869. mom,
  870. ''
  871. ).toLocaleLowerCase();
  872. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  873. }
  874. }
  875. if (strict) {
  876. if (format === 'MMM') {
  877. ii = indexOf.call(this._shortMonthsParse, llc);
  878. return ii !== -1 ? ii : null;
  879. } else {
  880. ii = indexOf.call(this._longMonthsParse, llc);
  881. return ii !== -1 ? ii : null;
  882. }
  883. } else {
  884. if (format === 'MMM') {
  885. ii = indexOf.call(this._shortMonthsParse, llc);
  886. if (ii !== -1) {
  887. return ii;
  888. }
  889. ii = indexOf.call(this._longMonthsParse, llc);
  890. return ii !== -1 ? ii : null;
  891. } else {
  892. ii = indexOf.call(this._longMonthsParse, llc);
  893. if (ii !== -1) {
  894. return ii;
  895. }
  896. ii = indexOf.call(this._shortMonthsParse, llc);
  897. return ii !== -1 ? ii : null;
  898. }
  899. }
  900. }
  901. function localeMonthsParse(monthName, format, strict) {
  902. var i, mom, regex;
  903. if (this._monthsParseExact) {
  904. return handleStrictParse.call(this, monthName, format, strict);
  905. }
  906. if (!this._monthsParse) {
  907. this._monthsParse = [];
  908. this._longMonthsParse = [];
  909. this._shortMonthsParse = [];
  910. }
  911. // TODO: add sorting
  912. // Sorting makes sure if one month (or abbr) is a prefix of another
  913. // see sorting in computeMonthsParse
  914. for (i = 0; i < 12; i++) {
  915. // make the regex if we don't have it already
  916. mom = createUTC([2000, i]);
  917. if (strict && !this._longMonthsParse[i]) {
  918. this._longMonthsParse[i] = new RegExp(
  919. '^' + this.months(mom, '').replace('.', '') + '$',
  920. 'i'
  921. );
  922. this._shortMonthsParse[i] = new RegExp(
  923. '^' + this.monthsShort(mom, '').replace('.', '') + '$',
  924. 'i'
  925. );
  926. }
  927. if (!strict && !this._monthsParse[i]) {
  928. regex =
  929. '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  930. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  931. }
  932. // test the regex
  933. if (
  934. strict &&
  935. format === 'MMMM' &&
  936. this._longMonthsParse[i].test(monthName)
  937. ) {
  938. return i;
  939. } else if (
  940. strict &&
  941. format === 'MMM' &&
  942. this._shortMonthsParse[i].test(monthName)
  943. ) {
  944. return i;
  945. } else if (!strict && this._monthsParse[i].test(monthName)) {
  946. return i;
  947. }
  948. }
  949. }
  950. // MOMENTS
  951. function setMonth(mom, value) {
  952. var dayOfMonth;
  953. if (!mom.isValid()) {
  954. // No op
  955. return mom;
  956. }
  957. if (typeof value === 'string') {
  958. if (/^\d+$/.test(value)) {
  959. value = toInt(value);
  960. } else {
  961. value = mom.localeData().monthsParse(value);
  962. // TODO: Another silent failure?
  963. if (!isNumber(value)) {
  964. return mom;
  965. }
  966. }
  967. }
  968. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  969. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  970. return mom;
  971. }
  972. function getSetMonth(value) {
  973. if (value != null) {
  974. setMonth(this, value);
  975. hooks.updateOffset(this, true);
  976. return this;
  977. } else {
  978. return get(this, 'Month');
  979. }
  980. }
  981. function getDaysInMonth() {
  982. return daysInMonth(this.year(), this.month());
  983. }
  984. function monthsShortRegex(isStrict) {
  985. if (this._monthsParseExact) {
  986. if (!hasOwnProp(this, '_monthsRegex')) {
  987. computeMonthsParse.call(this);
  988. }
  989. if (isStrict) {
  990. return this._monthsShortStrictRegex;
  991. } else {
  992. return this._monthsShortRegex;
  993. }
  994. } else {
  995. if (!hasOwnProp(this, '_monthsShortRegex')) {
  996. this._monthsShortRegex = defaultMonthsShortRegex;
  997. }
  998. return this._monthsShortStrictRegex && isStrict
  999. ? this._monthsShortStrictRegex
  1000. : this._monthsShortRegex;
  1001. }
  1002. }
  1003. function monthsRegex(isStrict) {
  1004. if (this._monthsParseExact) {
  1005. if (!hasOwnProp(this, '_monthsRegex')) {
  1006. computeMonthsParse.call(this);
  1007. }
  1008. if (isStrict) {
  1009. return this._monthsStrictRegex;
  1010. } else {
  1011. return this._monthsRegex;
  1012. }
  1013. } else {
  1014. if (!hasOwnProp(this, '_monthsRegex')) {
  1015. this._monthsRegex = defaultMonthsRegex;
  1016. }
  1017. return this._monthsStrictRegex && isStrict
  1018. ? this._monthsStrictRegex
  1019. : this._monthsRegex;
  1020. }
  1021. }
  1022. function computeMonthsParse() {
  1023. function cmpLenRev(a, b) {
  1024. return b.length - a.length;
  1025. }
  1026. var shortPieces = [],
  1027. longPieces = [],
  1028. mixedPieces = [],
  1029. i,
  1030. mom;
  1031. for (i = 0; i < 12; i++) {
  1032. // make the regex if we don't have it already
  1033. mom = createUTC([2000, i]);
  1034. shortPieces.push(this.monthsShort(mom, ''));
  1035. longPieces.push(this.months(mom, ''));
  1036. mixedPieces.push(this.months(mom, ''));
  1037. mixedPieces.push(this.monthsShort(mom, ''));
  1038. }
  1039. // Sorting makes sure if one month (or abbr) is a prefix of another it
  1040. // will match the longer piece.
  1041. shortPieces.sort(cmpLenRev);
  1042. longPieces.sort(cmpLenRev);
  1043. mixedPieces.sort(cmpLenRev);
  1044. for (i = 0; i < 12; i++) {
  1045. shortPieces[i] = regexEscape(shortPieces[i]);
  1046. longPieces[i] = regexEscape(longPieces[i]);
  1047. }
  1048. for (i = 0; i < 24; i++) {
  1049. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1050. }
  1051. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1052. this._monthsShortRegex = this._monthsRegex;
  1053. this._monthsStrictRegex = new RegExp(
  1054. '^(' + longPieces.join('|') + ')',
  1055. 'i'
  1056. );
  1057. this._monthsShortStrictRegex = new RegExp(
  1058. '^(' + shortPieces.join('|') + ')',
  1059. 'i'
  1060. );
  1061. }
  1062. // FORMATTING
  1063. addFormatToken('Y', 0, 0, function () {
  1064. var y = this.year();
  1065. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  1066. });
  1067. addFormatToken(0, ['YY', 2], 0, function () {
  1068. return this.year() % 100;
  1069. });
  1070. addFormatToken(0, ['YYYY', 4], 0, 'year');
  1071. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  1072. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  1073. // ALIASES
  1074. addUnitAlias('year', 'y');
  1075. // PRIORITIES
  1076. addUnitPriority('year', 1);
  1077. // PARSING
  1078. addRegexToken('Y', matchSigned);
  1079. addRegexToken('YY', match1to2, match2);
  1080. addRegexToken('YYYY', match1to4, match4);
  1081. addRegexToken('YYYYY', match1to6, match6);
  1082. addRegexToken('YYYYYY', match1to6, match6);
  1083. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  1084. addParseToken('YYYY', function (input, array) {
  1085. array[YEAR] =
  1086. input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  1087. });
  1088. addParseToken('YY', function (input, array) {
  1089. array[YEAR] = hooks.parseTwoDigitYear(input);
  1090. });
  1091. addParseToken('Y', function (input, array) {
  1092. array[YEAR] = parseInt(input, 10);
  1093. });
  1094. // HELPERS
  1095. function daysInYear(year) {
  1096. return isLeapYear(year) ? 366 : 365;
  1097. }
  1098. // HOOKS
  1099. hooks.parseTwoDigitYear = function (input) {
  1100. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  1101. };
  1102. // MOMENTS
  1103. var getSetYear = makeGetSet('FullYear', true);
  1104. function getIsLeapYear() {
  1105. return isLeapYear(this.year());
  1106. }
  1107. function createDate(y, m, d, h, M, s, ms) {
  1108. // can't just apply() to create a date:
  1109. // https://stackoverflow.com/q/181348
  1110. var date;
  1111. // the date constructor remaps years 0-99 to 1900-1999
  1112. if (y < 100 && y >= 0) {
  1113. // preserve leap years using a full 400 year cycle, then reset
  1114. date = new Date(y + 400, m, d, h, M, s, ms);
  1115. if (isFinite(date.getFullYear())) {
  1116. date.setFullYear(y);
  1117. }
  1118. } else {
  1119. date = new Date(y, m, d, h, M, s, ms);
  1120. }
  1121. return date;
  1122. }
  1123. function createUTCDate(y) {
  1124. var date, args;
  1125. // the Date.UTC function remaps years 0-99 to 1900-1999
  1126. if (y < 100 && y >= 0) {
  1127. args = Array.prototype.slice.call(arguments);
  1128. // preserve leap years using a full 400 year cycle, then reset
  1129. args[0] = y + 400;
  1130. date = new Date(Date.UTC.apply(null, args));
  1131. if (isFinite(date.getUTCFullYear())) {
  1132. date.setUTCFullYear(y);
  1133. }
  1134. } else {
  1135. date = new Date(Date.UTC.apply(null, arguments));
  1136. }
  1137. return date;
  1138. }
  1139. // start-of-first-week - start-of-year
  1140. function firstWeekOffset(year, dow, doy) {
  1141. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  1142. fwd = 7 + dow - doy,
  1143. // first-week day local weekday -- which local weekday is fwd
  1144. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  1145. return -fwdlw + fwd - 1;
  1146. }
  1147. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  1148. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  1149. var localWeekday = (7 + weekday - dow) % 7,
  1150. weekOffset = firstWeekOffset(year, dow, doy),
  1151. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1152. resYear,
  1153. resDayOfYear;
  1154. if (dayOfYear <= 0) {
  1155. resYear = year - 1;
  1156. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1157. } else if (dayOfYear > daysInYear(year)) {
  1158. resYear = year + 1;
  1159. resDayOfYear = dayOfYear - daysInYear(year);
  1160. } else {
  1161. resYear = year;
  1162. resDayOfYear = dayOfYear;
  1163. }
  1164. return {
  1165. year: resYear,
  1166. dayOfYear: resDayOfYear,
  1167. };
  1168. }
  1169. function weekOfYear(mom, dow, doy) {
  1170. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1171. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1172. resWeek,
  1173. resYear;
  1174. if (week < 1) {
  1175. resYear = mom.year() - 1;
  1176. resWeek = week + weeksInYear(resYear, dow, doy);
  1177. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1178. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1179. resYear = mom.year() + 1;
  1180. } else {
  1181. resYear = mom.year();
  1182. resWeek = week;
  1183. }
  1184. return {
  1185. week: resWeek,
  1186. year: resYear,
  1187. };
  1188. }
  1189. function weeksInYear(year, dow, doy) {
  1190. var weekOffset = firstWeekOffset(year, dow, doy),
  1191. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1192. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1193. }
  1194. // FORMATTING
  1195. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1196. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1197. // ALIASES
  1198. addUnitAlias('week', 'w');
  1199. addUnitAlias('isoWeek', 'W');
  1200. // PRIORITIES
  1201. addUnitPriority('week', 5);
  1202. addUnitPriority('isoWeek', 5);
  1203. // PARSING
  1204. addRegexToken('w', match1to2);
  1205. addRegexToken('ww', match1to2, match2);
  1206. addRegexToken('W', match1to2);
  1207. addRegexToken('WW', match1to2, match2);
  1208. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
  1209. input,
  1210. week,
  1211. config,
  1212. token
  1213. ) {
  1214. week[token.substr(0, 1)] = toInt(input);
  1215. });
  1216. // HELPERS
  1217. // LOCALES
  1218. function localeWeek(mom) {
  1219. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1220. }
  1221. var defaultLocaleWeek = {
  1222. dow: 0, // Sunday is the first day of the week.
  1223. doy: 6, // The week that contains Jan 6th is the first week of the year.
  1224. };
  1225. function localeFirstDayOfWeek() {
  1226. return this._week.dow;
  1227. }
  1228. function localeFirstDayOfYear() {
  1229. return this._week.doy;
  1230. }
  1231. // MOMENTS
  1232. function getSetWeek(input) {
  1233. var week = this.localeData().week(this);
  1234. return input == null ? week : this.add((input - week) * 7, 'd');
  1235. }
  1236. function getSetISOWeek(input) {
  1237. var week = weekOfYear(this, 1, 4).week;
  1238. return input == null ? week : this.add((input - week) * 7, 'd');
  1239. }
  1240. // FORMATTING
  1241. addFormatToken('d', 0, 'do', 'day');
  1242. addFormatToken('dd', 0, 0, function (format) {
  1243. return this.localeData().weekdaysMin(this, format);
  1244. });
  1245. addFormatToken('ddd', 0, 0, function (format) {
  1246. return this.localeData().weekdaysShort(this, format);
  1247. });
  1248. addFormatToken('dddd', 0, 0, function (format) {
  1249. return this.localeData().weekdays(this, format);
  1250. });
  1251. addFormatToken('e', 0, 0, 'weekday');
  1252. addFormatToken('E', 0, 0, 'isoWeekday');
  1253. // ALIASES
  1254. addUnitAlias('day', 'd');
  1255. addUnitAlias('weekday', 'e');
  1256. addUnitAlias('isoWeekday', 'E');
  1257. // PRIORITY
  1258. addUnitPriority('day', 11);
  1259. addUnitPriority('weekday', 11);
  1260. addUnitPriority('isoWeekday', 11);
  1261. // PARSING
  1262. addRegexToken('d', match1to2);
  1263. addRegexToken('e', match1to2);
  1264. addRegexToken('E', match1to2);
  1265. addRegexToken('dd', function (isStrict, locale) {
  1266. return locale.weekdaysMinRegex(isStrict);
  1267. });
  1268. addRegexToken('ddd', function (isStrict, locale) {
  1269. return locale.weekdaysShortRegex(isStrict);
  1270. });
  1271. addRegexToken('dddd', function (isStrict, locale) {
  1272. return locale.weekdaysRegex(isStrict);
  1273. });
  1274. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1275. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1276. // if we didn't get a weekday name, mark the date as invalid
  1277. if (weekday != null) {
  1278. week.d = weekday;
  1279. } else {
  1280. getParsingFlags(config).invalidWeekday = input;
  1281. }
  1282. });
  1283. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1284. week[token] = toInt(input);
  1285. });
  1286. // HELPERS
  1287. function parseWeekday(input, locale) {
  1288. if (typeof input !== 'string') {
  1289. return input;
  1290. }
  1291. if (!isNaN(input)) {
  1292. return parseInt(input, 10);
  1293. }
  1294. input = locale.weekdaysParse(input);
  1295. if (typeof input === 'number') {
  1296. return input;
  1297. }
  1298. return null;
  1299. }
  1300. function parseIsoWeekday(input, locale) {
  1301. if (typeof input === 'string') {
  1302. return locale.weekdaysParse(input) % 7 || 7;
  1303. }
  1304. return isNaN(input) ? null : input;
  1305. }
  1306. // LOCALES
  1307. function shiftWeekdays(ws, n) {
  1308. return ws.slice(n, 7).concat(ws.slice(0, n));
  1309. }
  1310. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  1311. '_'
  1312. ),
  1313. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1314. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1315. defaultWeekdaysRegex = matchWord,
  1316. defaultWeekdaysShortRegex = matchWord,
  1317. defaultWeekdaysMinRegex = matchWord;
  1318. function localeWeekdays(m, format) {
  1319. var weekdays = isArray(this._weekdays)
  1320. ? this._weekdays
  1321. : this._weekdays[
  1322. m && m !== true && this._weekdays.isFormat.test(format)
  1323. ? 'format'
  1324. : 'standalone'
  1325. ];
  1326. return m === true
  1327. ? shiftWeekdays(weekdays, this._week.dow)
  1328. : m
  1329. ? weekdays[m.day()]
  1330. : weekdays;
  1331. }
  1332. function localeWeekdaysShort(m) {
  1333. return m === true
  1334. ? shiftWeekdays(this._weekdaysShort, this._week.dow)
  1335. : m
  1336. ? this._weekdaysShort[m.day()]
  1337. : this._weekdaysShort;
  1338. }
  1339. function localeWeekdaysMin(m) {
  1340. return m === true
  1341. ? shiftWeekdays(this._weekdaysMin, this._week.dow)
  1342. : m
  1343. ? this._weekdaysMin[m.day()]
  1344. : this._weekdaysMin;
  1345. }
  1346. function handleStrictParse$1(weekdayName, format, strict) {
  1347. var i,
  1348. ii,
  1349. mom,
  1350. llc = weekdayName.toLocaleLowerCase();
  1351. if (!this._weekdaysParse) {
  1352. this._weekdaysParse = [];
  1353. this._shortWeekdaysParse = [];
  1354. this._minWeekdaysParse = [];
  1355. for (i = 0; i < 7; ++i) {
  1356. mom = createUTC([2000, 1]).day(i);
  1357. this._minWeekdaysParse[i] = this.weekdaysMin(
  1358. mom,
  1359. ''
  1360. ).toLocaleLowerCase();
  1361. this._shortWeekdaysParse[i] = this.weekdaysShort(
  1362. mom,
  1363. ''
  1364. ).toLocaleLowerCase();
  1365. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1366. }
  1367. }
  1368. if (strict) {
  1369. if (format === 'dddd') {
  1370. ii = indexOf.call(this._weekdaysParse, llc);
  1371. return ii !== -1 ? ii : null;
  1372. } else if (format === 'ddd') {
  1373. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1374. return ii !== -1 ? ii : null;
  1375. } else {
  1376. ii = indexOf.call(this._minWeekdaysParse, llc);
  1377. return ii !== -1 ? ii : null;
  1378. }
  1379. } else {
  1380. if (format === 'dddd') {
  1381. ii = indexOf.call(this._weekdaysParse, llc);
  1382. if (ii !== -1) {
  1383. return ii;
  1384. }
  1385. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1386. if (ii !== -1) {
  1387. return ii;
  1388. }
  1389. ii = indexOf.call(this._minWeekdaysParse, llc);
  1390. return ii !== -1 ? ii : null;
  1391. } else if (format === 'ddd') {
  1392. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1393. if (ii !== -1) {
  1394. return ii;
  1395. }
  1396. ii = indexOf.call(this._weekdaysParse, llc);
  1397. if (ii !== -1) {
  1398. return ii;
  1399. }
  1400. ii = indexOf.call(this._minWeekdaysParse, llc);
  1401. return ii !== -1 ? ii : null;
  1402. } else {
  1403. ii = indexOf.call(this._minWeekdaysParse, llc);
  1404. if (ii !== -1) {
  1405. return ii;
  1406. }
  1407. ii = indexOf.call(this._weekdaysParse, llc);
  1408. if (ii !== -1) {
  1409. return ii;
  1410. }
  1411. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1412. return ii !== -1 ? ii : null;
  1413. }
  1414. }
  1415. }
  1416. function localeWeekdaysParse(weekdayName, format, strict) {
  1417. var i, mom, regex;
  1418. if (this._weekdaysParseExact) {
  1419. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1420. }
  1421. if (!this._weekdaysParse) {
  1422. this._weekdaysParse = [];
  1423. this._minWeekdaysParse = [];
  1424. this._shortWeekdaysParse = [];
  1425. this._fullWeekdaysParse = [];
  1426. }
  1427. for (i = 0; i < 7; i++) {
  1428. // make the regex if we don't have it already
  1429. mom = createUTC([2000, 1]).day(i);
  1430. if (strict && !this._fullWeekdaysParse[i]) {
  1431. this._fullWeekdaysParse[i] = new RegExp(
  1432. '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
  1433. 'i'
  1434. );
  1435. this._shortWeekdaysParse[i] = new RegExp(
  1436. '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
  1437. 'i'
  1438. );
  1439. this._minWeekdaysParse[i] = new RegExp(
  1440. '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
  1441. 'i'
  1442. );
  1443. }
  1444. if (!this._weekdaysParse[i]) {
  1445. regex =
  1446. '^' +
  1447. this.weekdays(mom, '') +
  1448. '|^' +
  1449. this.weekdaysShort(mom, '') +
  1450. '|^' +
  1451. this.weekdaysMin(mom, '');
  1452. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1453. }
  1454. // test the regex
  1455. if (
  1456. strict &&
  1457. format === 'dddd' &&
  1458. this._fullWeekdaysParse[i].test(weekdayName)
  1459. ) {
  1460. return i;
  1461. } else if (
  1462. strict &&
  1463. format === 'ddd' &&
  1464. this._shortWeekdaysParse[i].test(weekdayName)
  1465. ) {
  1466. return i;
  1467. } else if (
  1468. strict &&
  1469. format === 'dd' &&
  1470. this._minWeekdaysParse[i].test(weekdayName)
  1471. ) {
  1472. return i;
  1473. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1474. return i;
  1475. }
  1476. }
  1477. }
  1478. // MOMENTS
  1479. function getSetDayOfWeek(input) {
  1480. if (!this.isValid()) {
  1481. return input != null ? this : NaN;
  1482. }
  1483. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1484. if (input != null) {
  1485. input = parseWeekday(input, this.localeData());
  1486. return this.add(input - day, 'd');
  1487. } else {
  1488. return day;
  1489. }
  1490. }
  1491. function getSetLocaleDayOfWeek(input) {
  1492. if (!this.isValid()) {
  1493. return input != null ? this : NaN;
  1494. }
  1495. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1496. return input == null ? weekday : this.add(input - weekday, 'd');
  1497. }
  1498. function getSetISODayOfWeek(input) {
  1499. if (!this.isValid()) {
  1500. return input != null ? this : NaN;
  1501. }
  1502. // behaves the same as moment#day except
  1503. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1504. // as a setter, sunday should belong to the previous week.
  1505. if (input != null) {
  1506. var weekday = parseIsoWeekday(input, this.localeData());
  1507. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1508. } else {
  1509. return this.day() || 7;
  1510. }
  1511. }
  1512. function weekdaysRegex(isStrict) {
  1513. if (this._weekdaysParseExact) {
  1514. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1515. computeWeekdaysParse.call(this);
  1516. }
  1517. if (isStrict) {
  1518. return this._weekdaysStrictRegex;
  1519. } else {
  1520. return this._weekdaysRegex;
  1521. }
  1522. } else {
  1523. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1524. this._weekdaysRegex = defaultWeekdaysRegex;
  1525. }
  1526. return this._weekdaysStrictRegex && isStrict
  1527. ? this._weekdaysStrictRegex
  1528. : this._weekdaysRegex;
  1529. }
  1530. }
  1531. function weekdaysShortRegex(isStrict) {
  1532. if (this._weekdaysParseExact) {
  1533. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1534. computeWeekdaysParse.call(this);
  1535. }
  1536. if (isStrict) {
  1537. return this._weekdaysShortStrictRegex;
  1538. } else {
  1539. return this._weekdaysShortRegex;
  1540. }
  1541. } else {
  1542. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1543. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1544. }
  1545. return this._weekdaysShortStrictRegex && isStrict
  1546. ? this._weekdaysShortStrictRegex
  1547. : this._weekdaysShortRegex;
  1548. }
  1549. }
  1550. function weekdaysMinRegex(isStrict) {
  1551. if (this._weekdaysParseExact) {
  1552. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1553. computeWeekdaysParse.call(this);
  1554. }
  1555. if (isStrict) {
  1556. return this._weekdaysMinStrictRegex;
  1557. } else {
  1558. return this._weekdaysMinRegex;
  1559. }
  1560. } else {
  1561. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1562. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1563. }
  1564. return this._weekdaysMinStrictRegex && isStrict
  1565. ? this._weekdaysMinStrictRegex
  1566. : this._weekdaysMinRegex;
  1567. }
  1568. }
  1569. function computeWeekdaysParse() {
  1570. function cmpLenRev(a, b) {
  1571. return b.length - a.length;
  1572. }
  1573. var minPieces = [],
  1574. shortPieces = [],
  1575. longPieces = [],
  1576. mixedPieces = [],
  1577. i,
  1578. mom,
  1579. minp,
  1580. shortp,
  1581. longp;
  1582. for (i = 0; i < 7; i++) {
  1583. // make the regex if we don't have it already
  1584. mom = createUTC([2000, 1]).day(i);
  1585. minp = regexEscape(this.weekdaysMin(mom, ''));
  1586. shortp = regexEscape(this.weekdaysShort(mom, ''));
  1587. longp = regexEscape(this.weekdays(mom, ''));
  1588. minPieces.push(minp);
  1589. shortPieces.push(shortp);
  1590. longPieces.push(longp);
  1591. mixedPieces.push(minp);
  1592. mixedPieces.push(shortp);
  1593. mixedPieces.push(longp);
  1594. }
  1595. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1596. // will match the longer piece.
  1597. minPieces.sort(cmpLenRev);
  1598. shortPieces.sort(cmpLenRev);
  1599. longPieces.sort(cmpLenRev);
  1600. mixedPieces.sort(cmpLenRev);
  1601. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1602. this._weekdaysShortRegex = this._weekdaysRegex;
  1603. this._weekdaysMinRegex = this._weekdaysRegex;
  1604. this._weekdaysStrictRegex = new RegExp(
  1605. '^(' + longPieces.join('|') + ')',
  1606. 'i'
  1607. );
  1608. this._weekdaysShortStrictRegex = new RegExp(
  1609. '^(' + shortPieces.join('|') + ')',
  1610. 'i'
  1611. );
  1612. this._weekdaysMinStrictRegex = new RegExp(
  1613. '^(' + minPieces.join('|') + ')',
  1614. 'i'
  1615. );
  1616. }
  1617. // FORMATTING
  1618. function hFormat() {
  1619. return this.hours() % 12 || 12;
  1620. }
  1621. function kFormat() {
  1622. return this.hours() || 24;
  1623. }
  1624. addFormatToken('H', ['HH', 2], 0, 'hour');
  1625. addFormatToken('h', ['hh', 2], 0, hFormat);
  1626. addFormatToken('k', ['kk', 2], 0, kFormat);
  1627. addFormatToken('hmm', 0, 0, function () {
  1628. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1629. });
  1630. addFormatToken('hmmss', 0, 0, function () {
  1631. return (
  1632. '' +
  1633. hFormat.apply(this) +
  1634. zeroFill(this.minutes(), 2) +
  1635. zeroFill(this.seconds(), 2)
  1636. );
  1637. });
  1638. addFormatToken('Hmm', 0, 0, function () {
  1639. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1640. });
  1641. addFormatToken('Hmmss', 0, 0, function () {
  1642. return (
  1643. '' +
  1644. this.hours() +
  1645. zeroFill(this.minutes(), 2) +
  1646. zeroFill(this.seconds(), 2)
  1647. );
  1648. });
  1649. function meridiem(token, lowercase) {
  1650. addFormatToken(token, 0, 0, function () {
  1651. return this.localeData().meridiem(
  1652. this.hours(),
  1653. this.minutes(),
  1654. lowercase
  1655. );
  1656. });
  1657. }
  1658. meridiem('a', true);
  1659. meridiem('A', false);
  1660. // ALIASES
  1661. addUnitAlias('hour', 'h');
  1662. // PRIORITY
  1663. addUnitPriority('hour', 13);
  1664. // PARSING
  1665. function matchMeridiem(isStrict, locale) {
  1666. return locale._meridiemParse;
  1667. }
  1668. addRegexToken('a', matchMeridiem);
  1669. addRegexToken('A', matchMeridiem);
  1670. addRegexToken('H', match1to2);
  1671. addRegexToken('h', match1to2);
  1672. addRegexToken('k', match1to2);
  1673. addRegexToken('HH', match1to2, match2);
  1674. addRegexToken('hh', match1to2, match2);
  1675. addRegexToken('kk', match1to2, match2);
  1676. addRegexToken('hmm', match3to4);
  1677. addRegexToken('hmmss', match5to6);
  1678. addRegexToken('Hmm', match3to4);
  1679. addRegexToken('Hmmss', match5to6);
  1680. addParseToken(['H', 'HH'], HOUR);
  1681. addParseToken(['k', 'kk'], function (input, array, config) {
  1682. var kInput = toInt(input);
  1683. array[HOUR] = kInput === 24 ? 0 : kInput;
  1684. });
  1685. addParseToken(['a', 'A'], function (input, array, config) {
  1686. config._isPm = config._locale.isPM(input);
  1687. config._meridiem = input;
  1688. });
  1689. addParseToken(['h', 'hh'], function (input, array, config) {
  1690. array[HOUR] = toInt(input);
  1691. getParsingFlags(config).bigHour = true;
  1692. });
  1693. addParseToken('hmm', function (input, array, config) {
  1694. var pos = input.length - 2;
  1695. array[HOUR] = toInt(input.substr(0, pos));
  1696. array[MINUTE] = toInt(input.substr(pos));
  1697. getParsingFlags(config).bigHour = true;
  1698. });
  1699. addParseToken('hmmss', function (input, array, config) {
  1700. var pos1 = input.length - 4,
  1701. pos2 = input.length - 2;
  1702. array[HOUR] = toInt(input.substr(0, pos1));
  1703. array[MINUTE] = toInt(input.substr(pos1, 2));
  1704. array[SECOND] = toInt(input.substr(pos2));
  1705. getParsingFlags(config).bigHour = true;
  1706. });
  1707. addParseToken('Hmm', function (input, array, config) {
  1708. var pos = input.length - 2;
  1709. array[HOUR] = toInt(input.substr(0, pos));
  1710. array[MINUTE] = toInt(input.substr(pos));
  1711. });
  1712. addParseToken('Hmmss', function (input, array, config) {
  1713. var pos1 = input.length - 4,
  1714. pos2 = input.length - 2;
  1715. array[HOUR] = toInt(input.substr(0, pos1));
  1716. array[MINUTE] = toInt(input.substr(pos1, 2));
  1717. array[SECOND] = toInt(input.substr(pos2));
  1718. });
  1719. // LOCALES
  1720. function localeIsPM(input) {
  1721. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1722. // Using charAt should be more compatible.
  1723. return (input + '').toLowerCase().charAt(0) === 'p';
  1724. }
  1725. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  1726. // Setting the hour should keep the time, because the user explicitly
  1727. // specified which hour they want. So trying to maintain the same hour (in
  1728. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1729. // this rule.
  1730. getSetHour = makeGetSet('Hours', true);
  1731. function localeMeridiem(hours, minutes, isLower) {
  1732. if (hours > 11) {
  1733. return isLower ? 'pm' : 'PM';
  1734. } else {
  1735. return isLower ? 'am' : 'AM';
  1736. }
  1737. }
  1738. var baseConfig = {
  1739. calendar: defaultCalendar,
  1740. longDateFormat: defaultLongDateFormat,
  1741. invalidDate: defaultInvalidDate,
  1742. ordinal: defaultOrdinal,
  1743. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1744. relativeTime: defaultRelativeTime,
  1745. months: defaultLocaleMonths,
  1746. monthsShort: defaultLocaleMonthsShort,
  1747. week: defaultLocaleWeek,
  1748. weekdays: defaultLocaleWeekdays,
  1749. weekdaysMin: defaultLocaleWeekdaysMin,
  1750. weekdaysShort: defaultLocaleWeekdaysShort,
  1751. meridiemParse: defaultLocaleMeridiemParse,
  1752. };
  1753. // internal storage for locale config files
  1754. var locales = {},
  1755. localeFamilies = {},
  1756. globalLocale;
  1757. function commonPrefix(arr1, arr2) {
  1758. var i,
  1759. minl = Math.min(arr1.length, arr2.length);
  1760. for (i = 0; i < minl; i += 1) {
  1761. if (arr1[i] !== arr2[i]) {
  1762. return i;
  1763. }
  1764. }
  1765. return minl;
  1766. }
  1767. function normalizeLocale(key) {
  1768. return key ? key.toLowerCase().replace('_', '-') : key;
  1769. }
  1770. // pick the locale from the array
  1771. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1772. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1773. function chooseLocale(names) {
  1774. var i = 0,
  1775. j,
  1776. next,
  1777. locale,
  1778. split;
  1779. while (i < names.length) {
  1780. split = normalizeLocale(names[i]).split('-');
  1781. j = split.length;
  1782. next = normalizeLocale(names[i + 1]);
  1783. next = next ? next.split('-') : null;
  1784. while (j > 0) {
  1785. locale = loadLocale(split.slice(0, j).join('-'));
  1786. if (locale) {
  1787. return locale;
  1788. }
  1789. if (
  1790. next &&
  1791. next.length >= j &&
  1792. commonPrefix(split, next) >= j - 1
  1793. ) {
  1794. //the next array item is better than a shallower substring of this one
  1795. break;
  1796. }
  1797. j--;
  1798. }
  1799. i++;
  1800. }
  1801. return globalLocale;
  1802. }
  1803. function loadLocale(name) {
  1804. var oldLocale = null,
  1805. aliasedRequire;
  1806. // TODO: Find a better way to register and load all the locales in Node
  1807. if (
  1808. locales[name] === undefined &&
  1809. typeof module !== 'undefined' &&
  1810. module &&
  1811. module.exports
  1812. ) {
  1813. try {
  1814. oldLocale = globalLocale._abbr;
  1815. aliasedRequire = require;
  1816. aliasedRequire('./locale/' + name);
  1817. getSetGlobalLocale(oldLocale);
  1818. } catch (e) {
  1819. // mark as not found to avoid repeating expensive file require call causing high CPU
  1820. // when trying to find en-US, en_US, en-us for every format call
  1821. locales[name] = null; // null means not found
  1822. }
  1823. }
  1824. return locales[name];
  1825. }
  1826. // This function will load locale and then set the global locale. If
  1827. // no arguments are passed in, it will simply return the current global
  1828. // locale key.
  1829. function getSetGlobalLocale(key, values) {
  1830. var data;
  1831. if (key) {
  1832. if (isUndefined(values)) {
  1833. data = getLocale(key);
  1834. } else {
  1835. data = defineLocale(key, values);
  1836. }
  1837. if (data) {
  1838. // moment.duration._locale = moment._locale = data;
  1839. globalLocale = data;
  1840. } else {
  1841. if (typeof console !== 'undefined' && console.warn) {
  1842. //warn user if arguments are passed but the locale could not be set
  1843. console.warn(
  1844. 'Locale ' + key + ' not found. Did you forget to load it?'
  1845. );
  1846. }
  1847. }
  1848. }
  1849. return globalLocale._abbr;
  1850. }
  1851. function defineLocale(name, config) {
  1852. if (config !== null) {
  1853. var locale,
  1854. parentConfig = baseConfig;
  1855. config.abbr = name;
  1856. if (locales[name] != null) {
  1857. deprecateSimple(
  1858. 'defineLocaleOverride',
  1859. 'use moment.updateLocale(localeName, config) to change ' +
  1860. 'an existing locale. moment.defineLocale(localeName, ' +
  1861. 'config) should only be used for creating a new locale ' +
  1862. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
  1863. );
  1864. parentConfig = locales[name]._config;
  1865. } else if (config.parentLocale != null) {
  1866. if (locales[config.parentLocale] != null) {
  1867. parentConfig = locales[config.parentLocale]._config;
  1868. } else {
  1869. locale = loadLocale(config.parentLocale);
  1870. if (locale != null) {
  1871. parentConfig = locale._config;
  1872. } else {
  1873. if (!localeFamilies[config.parentLocale]) {
  1874. localeFamilies[config.parentLocale] = [];
  1875. }
  1876. localeFamilies[config.parentLocale].push({
  1877. name: name,
  1878. config: config,
  1879. });
  1880. return null;
  1881. }
  1882. }
  1883. }
  1884. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1885. if (localeFamilies[name]) {
  1886. localeFamilies[name].forEach(function (x) {
  1887. defineLocale(x.name, x.config);
  1888. });
  1889. }
  1890. // backwards compat for now: also set the locale
  1891. // make sure we set the locale AFTER all child locales have been
  1892. // created, so we won't end up with the child locale set.
  1893. getSetGlobalLocale(name);
  1894. return locales[name];
  1895. } else {
  1896. // useful for testing
  1897. delete locales[name];
  1898. return null;
  1899. }
  1900. }
  1901. function updateLocale(name, config) {
  1902. if (config != null) {
  1903. var locale,
  1904. tmpLocale,
  1905. parentConfig = baseConfig;
  1906. if (locales[name] != null && locales[name].parentLocale != null) {
  1907. // Update existing child locale in-place to avoid memory-leaks
  1908. locales[name].set(mergeConfigs(locales[name]._config, config));
  1909. } else {
  1910. // MERGE
  1911. tmpLocale = loadLocale(name);
  1912. if (tmpLocale != null) {
  1913. parentConfig = tmpLocale._config;
  1914. }
  1915. config = mergeConfigs(parentConfig, config);
  1916. if (tmpLocale == null) {
  1917. // updateLocale is called for creating a new locale
  1918. // Set abbr so it will have a name (getters return
  1919. // undefined otherwise).
  1920. config.abbr = name;
  1921. }
  1922. locale = new Locale(config);
  1923. locale.parentLocale = locales[name];
  1924. locales[name] = locale;
  1925. }
  1926. // backwards compat for now: also set the locale
  1927. getSetGlobalLocale(name);
  1928. } else {
  1929. // pass null for config to unupdate, useful for tests
  1930. if (locales[name] != null) {
  1931. if (locales[name].parentLocale != null) {
  1932. locales[name] = locales[name].parentLocale;
  1933. if (name === getSetGlobalLocale()) {
  1934. getSetGlobalLocale(name);
  1935. }
  1936. } else if (locales[name] != null) {
  1937. delete locales[name];
  1938. }
  1939. }
  1940. }
  1941. return locales[name];
  1942. }
  1943. // returns locale data
  1944. function getLocale(key) {
  1945. var locale;
  1946. if (key && key._locale && key._locale._abbr) {
  1947. key = key._locale._abbr;
  1948. }
  1949. if (!key) {
  1950. return globalLocale;
  1951. }
  1952. if (!isArray(key)) {
  1953. //short-circuit everything else
  1954. locale = loadLocale(key);
  1955. if (locale) {
  1956. return locale;
  1957. }
  1958. key = [key];
  1959. }
  1960. return chooseLocale(key);
  1961. }
  1962. function listLocales() {
  1963. return keys(locales);
  1964. }
  1965. function checkOverflow(m) {
  1966. var overflow,
  1967. a = m._a;
  1968. if (a && getParsingFlags(m).overflow === -2) {
  1969. overflow =
  1970. a[MONTH] < 0 || a[MONTH] > 11
  1971. ? MONTH
  1972. : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
  1973. ? DATE
  1974. : a[HOUR] < 0 ||
  1975. a[HOUR] > 24 ||
  1976. (a[HOUR] === 24 &&
  1977. (a[MINUTE] !== 0 ||
  1978. a[SECOND] !== 0 ||
  1979. a[MILLISECOND] !== 0))
  1980. ? HOUR
  1981. : a[MINUTE] < 0 || a[MINUTE] > 59
  1982. ? MINUTE
  1983. : a[SECOND] < 0 || a[SECOND] > 59
  1984. ? SECOND
  1985. : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
  1986. ? MILLISECOND
  1987. : -1;
  1988. if (
  1989. getParsingFlags(m)._overflowDayOfYear &&
  1990. (overflow < YEAR || overflow > DATE)
  1991. ) {
  1992. overflow = DATE;
  1993. }
  1994. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1995. overflow = WEEK;
  1996. }
  1997. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1998. overflow = WEEKDAY;
  1999. }
  2000. getParsingFlags(m).overflow = overflow;
  2001. }
  2002. return m;
  2003. }
  2004. // iso 8601 regex
  2005. // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
  2006. var extendedIsoRegex = /^\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)?)?$/,
  2007. basicIsoRegex = /^\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)?)?$/,
  2008. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  2009. isoDates = [
  2010. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  2011. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  2012. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  2013. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  2014. ['YYYY-DDD', /\d{4}-\d{3}/],
  2015. ['YYYY-MM', /\d{4}-\d\d/, false],
  2016. ['YYYYYYMMDD', /[+-]\d{10}/],
  2017. ['YYYYMMDD', /\d{8}/],
  2018. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  2019. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  2020. ['YYYYDDD', /\d{7}/],
  2021. ['YYYYMM', /\d{6}/, false],
  2022. ['YYYY', /\d{4}/, false],
  2023. ],
  2024. // iso time formats and regexes
  2025. isoTimes = [
  2026. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  2027. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  2028. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  2029. ['HH:mm', /\d\d:\d\d/],
  2030. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  2031. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  2032. ['HHmmss', /\d\d\d\d\d\d/],
  2033. ['HHmm', /\d\d\d\d/],
  2034. ['HH', /\d\d/],
  2035. ],
  2036. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  2037. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  2038. rfc2822 = /^(?:(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}))$/,
  2039. obsOffsets = {
  2040. UT: 0,
  2041. GMT: 0,
  2042. EDT: -4 * 60,
  2043. EST: -5 * 60,
  2044. CDT: -5 * 60,
  2045. CST: -6 * 60,
  2046. MDT: -6 * 60,
  2047. MST: -7 * 60,
  2048. PDT: -7 * 60,
  2049. PST: -8 * 60,
  2050. };
  2051. // date from iso format
  2052. function configFromISO(config) {
  2053. var i,
  2054. l,
  2055. string = config._i,
  2056. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  2057. allowTime,
  2058. dateFormat,
  2059. timeFormat,
  2060. tzFormat;
  2061. if (match) {
  2062. getParsingFlags(config).iso = true;
  2063. for (i = 0, l = isoDates.length; i < l; i++) {
  2064. if (isoDates[i][1].exec(match[1])) {
  2065. dateFormat = isoDates[i][0];
  2066. allowTime = isoDates[i][2] !== false;
  2067. break;
  2068. }
  2069. }
  2070. if (dateFormat == null) {
  2071. config._isValid = false;
  2072. return;
  2073. }
  2074. if (match[3]) {
  2075. for (i = 0, l = isoTimes.length; i < l; i++) {
  2076. if (isoTimes[i][1].exec(match[3])) {
  2077. // match[2] should be 'T' or space
  2078. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  2079. break;
  2080. }
  2081. }
  2082. if (timeFormat == null) {
  2083. config._isValid = false;
  2084. return;
  2085. }
  2086. }
  2087. if (!allowTime && timeFormat != null) {
  2088. config._isValid = false;
  2089. return;
  2090. }
  2091. if (match[4]) {
  2092. if (tzRegex.exec(match[4])) {
  2093. tzFormat = 'Z';
  2094. } else {
  2095. config._isValid = false;
  2096. return;
  2097. }
  2098. }
  2099. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  2100. configFromStringAndFormat(config);
  2101. } else {
  2102. config._isValid = false;
  2103. }
  2104. }
  2105. function extractFromRFC2822Strings(
  2106. yearStr,
  2107. monthStr,
  2108. dayStr,
  2109. hourStr,
  2110. minuteStr,
  2111. secondStr
  2112. ) {
  2113. var result = [
  2114. untruncateYear(yearStr),
  2115. defaultLocaleMonthsShort.indexOf(monthStr),
  2116. parseInt(dayStr, 10),
  2117. parseInt(hourStr, 10),
  2118. parseInt(minuteStr, 10),
  2119. ];
  2120. if (secondStr) {
  2121. result.push(parseInt(secondStr, 10));
  2122. }
  2123. return result;
  2124. }
  2125. function untruncateYear(yearStr) {
  2126. var year = parseInt(yearStr, 10);
  2127. if (year <= 49) {
  2128. return 2000 + year;
  2129. } else if (year <= 999) {
  2130. return 1900 + year;
  2131. }
  2132. return year;
  2133. }
  2134. function preprocessRFC2822(s) {
  2135. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  2136. return s
  2137. .replace(/\([^)]*\)|[\n\t]/g, ' ')
  2138. .replace(/(\s\s+)/g, ' ')
  2139. .replace(/^\s\s*/, '')
  2140. .replace(/\s\s*$/, '');
  2141. }
  2142. function checkWeekday(weekdayStr, parsedInput, config) {
  2143. if (weekdayStr) {
  2144. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  2145. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  2146. weekdayActual = new Date(
  2147. parsedInput[0],
  2148. parsedInput[1],
  2149. parsedInput[2]
  2150. ).getDay();
  2151. if (weekdayProvided !== weekdayActual) {
  2152. getParsingFlags(config).weekdayMismatch = true;
  2153. config._isValid = false;
  2154. return false;
  2155. }
  2156. }
  2157. return true;
  2158. }
  2159. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  2160. if (obsOffset) {
  2161. return obsOffsets[obsOffset];
  2162. } else if (militaryOffset) {
  2163. // the only allowed military tz is Z
  2164. return 0;
  2165. } else {
  2166. var hm = parseInt(numOffset, 10),
  2167. m = hm % 100,
  2168. h = (hm - m) / 100;
  2169. return h * 60 + m;
  2170. }
  2171. }
  2172. // date and time from ref 2822 format
  2173. function configFromRFC2822(config) {
  2174. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  2175. parsedArray;
  2176. if (match) {
  2177. parsedArray = extractFromRFC2822Strings(
  2178. match[4],
  2179. match[3],
  2180. match[2],
  2181. match[5],
  2182. match[6],
  2183. match[7]
  2184. );
  2185. if (!checkWeekday(match[1], parsedArray, config)) {
  2186. return;
  2187. }
  2188. config._a = parsedArray;
  2189. config._tzm = calculateOffset(match[8], match[9], match[10]);
  2190. config._d = createUTCDate.apply(null, config._a);
  2191. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2192. getParsingFlags(config).rfc2822 = true;
  2193. } else {
  2194. config._isValid = false;
  2195. }
  2196. }
  2197. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  2198. function configFromString(config) {
  2199. var matched = aspNetJsonRegex.exec(config._i);
  2200. if (matched !== null) {
  2201. config._d = new Date(+matched[1]);
  2202. return;
  2203. }
  2204. configFromISO(config);
  2205. if (config._isValid === false) {
  2206. delete config._isValid;
  2207. } else {
  2208. return;
  2209. }
  2210. configFromRFC2822(config);
  2211. if (config._isValid === false) {
  2212. delete config._isValid;
  2213. } else {
  2214. return;
  2215. }
  2216. if (config._strict) {
  2217. config._isValid = false;
  2218. } else {
  2219. // Final attempt, use Input Fallback
  2220. hooks.createFromInputFallback(config);
  2221. }
  2222. }
  2223. hooks.createFromInputFallback = deprecate(
  2224. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  2225. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  2226. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  2227. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2228. function (config) {
  2229. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2230. }
  2231. );
  2232. // Pick the first defined of two or three arguments.
  2233. function defaults(a, b, c) {
  2234. if (a != null) {
  2235. return a;
  2236. }
  2237. if (b != null) {
  2238. return b;
  2239. }
  2240. return c;
  2241. }
  2242. function currentDateArray(config) {
  2243. // hooks is actually the exported moment object
  2244. var nowValue = new Date(hooks.now());
  2245. if (config._useUTC) {
  2246. return [
  2247. nowValue.getUTCFullYear(),
  2248. nowValue.getUTCMonth(),
  2249. nowValue.getUTCDate(),
  2250. ];
  2251. }
  2252. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  2253. }
  2254. // convert an array to a date.
  2255. // the array should mirror the parameters below
  2256. // note: all values past the year are optional and will default to the lowest possible value.
  2257. // [year, month, day , hour, minute, second, millisecond]
  2258. function configFromArray(config) {
  2259. var i,
  2260. date,
  2261. input = [],
  2262. currentDate,
  2263. expectedWeekday,
  2264. yearToUse;
  2265. if (config._d) {
  2266. return;
  2267. }
  2268. currentDate = currentDateArray(config);
  2269. //compute day of the year from weeks and weekdays
  2270. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  2271. dayOfYearFromWeekInfo(config);
  2272. }
  2273. //if the day of the year is set, figure out what it is
  2274. if (config._dayOfYear != null) {
  2275. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  2276. if (
  2277. config._dayOfYear > daysInYear(yearToUse) ||
  2278. config._dayOfYear === 0
  2279. ) {
  2280. getParsingFlags(config)._overflowDayOfYear = true;
  2281. }
  2282. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  2283. config._a[MONTH] = date.getUTCMonth();
  2284. config._a[DATE] = date.getUTCDate();
  2285. }
  2286. // Default to current date.
  2287. // * if no year, month, day of month are given, default to today
  2288. // * if day of month is given, default month and year
  2289. // * if month is given, default only year
  2290. // * if year is given, don't default anything
  2291. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  2292. config._a[i] = input[i] = currentDate[i];
  2293. }
  2294. // Zero out whatever was not defaulted, including time
  2295. for (; i < 7; i++) {
  2296. config._a[i] = input[i] =
  2297. config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
  2298. }
  2299. // Check for 24:00:00.000
  2300. if (
  2301. config._a[HOUR] === 24 &&
  2302. config._a[MINUTE] === 0 &&
  2303. config._a[SECOND] === 0 &&
  2304. config._a[MILLISECOND] === 0
  2305. ) {
  2306. config._nextDay = true;
  2307. config._a[HOUR] = 0;
  2308. }
  2309. config._d = (config._useUTC ? createUTCDate : createDate).apply(
  2310. null,
  2311. input
  2312. );
  2313. expectedWeekday = config._useUTC
  2314. ? config._d.getUTCDay()
  2315. : config._d.getDay();
  2316. // Apply timezone offset from input. The actual utcOffset can be changed
  2317. // with parseZone.
  2318. if (config._tzm != null) {
  2319. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2320. }
  2321. if (config._nextDay) {
  2322. config._a[HOUR] = 24;
  2323. }
  2324. // check for mismatching day of week
  2325. if (
  2326. config._w &&
  2327. typeof config._w.d !== 'undefined' &&
  2328. config._w.d !== expectedWeekday
  2329. ) {
  2330. getParsingFlags(config).weekdayMismatch = true;
  2331. }
  2332. }
  2333. function dayOfYearFromWeekInfo(config) {
  2334. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  2335. w = config._w;
  2336. if (w.GG != null || w.W != null || w.E != null) {
  2337. dow = 1;
  2338. doy = 4;
  2339. // TODO: We need to take the current isoWeekYear, but that depends on
  2340. // how we interpret now (local, utc, fixed offset). So create
  2341. // a now version of current config (take local/utc/offset flags, and
  2342. // create now).
  2343. weekYear = defaults(
  2344. w.GG,
  2345. config._a[YEAR],
  2346. weekOfYear(createLocal(), 1, 4).year
  2347. );
  2348. week = defaults(w.W, 1);
  2349. weekday = defaults(w.E, 1);
  2350. if (weekday < 1 || weekday > 7) {
  2351. weekdayOverflow = true;
  2352. }
  2353. } else {
  2354. dow = config._locale._week.dow;
  2355. doy = config._locale._week.doy;
  2356. curWeek = weekOfYear(createLocal(), dow, doy);
  2357. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  2358. // Default to current week.
  2359. week = defaults(w.w, curWeek.week);
  2360. if (w.d != null) {
  2361. // weekday -- low day numbers are considered next week
  2362. weekday = w.d;
  2363. if (weekday < 0 || weekday > 6) {
  2364. weekdayOverflow = true;
  2365. }
  2366. } else if (w.e != null) {
  2367. // local weekday -- counting starts from beginning of week
  2368. weekday = w.e + dow;
  2369. if (w.e < 0 || w.e > 6) {
  2370. weekdayOverflow = true;
  2371. }
  2372. } else {
  2373. // default to beginning of week
  2374. weekday = dow;
  2375. }
  2376. }
  2377. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  2378. getParsingFlags(config)._overflowWeeks = true;
  2379. } else if (weekdayOverflow != null) {
  2380. getParsingFlags(config)._overflowWeekday = true;
  2381. } else {
  2382. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  2383. config._a[YEAR] = temp.year;
  2384. config._dayOfYear = temp.dayOfYear;
  2385. }
  2386. }
  2387. // constant that refers to the ISO standard
  2388. hooks.ISO_8601 = function () {};
  2389. // constant that refers to the RFC 2822 form
  2390. hooks.RFC_2822 = function () {};
  2391. // date from string and format string
  2392. function configFromStringAndFormat(config) {
  2393. // TODO: Move this to another part of the creation flow to prevent circular deps
  2394. if (config._f === hooks.ISO_8601) {
  2395. configFromISO(config);
  2396. return;
  2397. }
  2398. if (config._f === hooks.RFC_2822) {
  2399. configFromRFC2822(config);
  2400. return;
  2401. }
  2402. config._a = [];
  2403. getParsingFlags(config).empty = true;
  2404. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2405. var string = '' + config._i,
  2406. i,
  2407. parsedInput,
  2408. tokens,
  2409. token,
  2410. skipped,
  2411. stringLength = string.length,
  2412. totalParsedInputLength = 0,
  2413. era;
  2414. tokens =
  2415. expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2416. for (i = 0; i < tokens.length; i++) {
  2417. token = tokens[i];
  2418. parsedInput = (string.match(getParseRegexForToken(token, config)) ||
  2419. [])[0];
  2420. if (parsedInput) {
  2421. skipped = string.substr(0, string.indexOf(parsedInput));
  2422. if (skipped.length > 0) {
  2423. getParsingFlags(config).unusedInput.push(skipped);
  2424. }
  2425. string = string.slice(
  2426. string.indexOf(parsedInput) + parsedInput.length
  2427. );
  2428. totalParsedInputLength += parsedInput.length;
  2429. }
  2430. // don't parse if it's not a known token
  2431. if (formatTokenFunctions[token]) {
  2432. if (parsedInput) {
  2433. getParsingFlags(config).empty = false;
  2434. } else {
  2435. getParsingFlags(config).unusedTokens.push(token);
  2436. }
  2437. addTimeToArrayFromToken(token, parsedInput, config);
  2438. } else if (config._strict && !parsedInput) {
  2439. getParsingFlags(config).unusedTokens.push(token);
  2440. }
  2441. }
  2442. // add remaining unparsed input length to the string
  2443. getParsingFlags(config).charsLeftOver =
  2444. stringLength - totalParsedInputLength;
  2445. if (string.length > 0) {
  2446. getParsingFlags(config).unusedInput.push(string);
  2447. }
  2448. // clear _12h flag if hour is <= 12
  2449. if (
  2450. config._a[HOUR] <= 12 &&
  2451. getParsingFlags(config).bigHour === true &&
  2452. config._a[HOUR] > 0
  2453. ) {
  2454. getParsingFlags(config).bigHour = undefined;
  2455. }
  2456. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2457. getParsingFlags(config).meridiem = config._meridiem;
  2458. // handle meridiem
  2459. config._a[HOUR] = meridiemFixWrap(
  2460. config._locale,
  2461. config._a[HOUR],
  2462. config._meridiem
  2463. );
  2464. // handle era
  2465. era = getParsingFlags(config).era;
  2466. if (era !== null) {
  2467. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  2468. }
  2469. configFromArray(config);
  2470. checkOverflow(config);
  2471. }
  2472. function meridiemFixWrap(locale, hour, meridiem) {
  2473. var isPm;
  2474. if (meridiem == null) {
  2475. // nothing to do
  2476. return hour;
  2477. }
  2478. if (locale.meridiemHour != null) {
  2479. return locale.meridiemHour(hour, meridiem);
  2480. } else if (locale.isPM != null) {
  2481. // Fallback
  2482. isPm = locale.isPM(meridiem);
  2483. if (isPm && hour < 12) {
  2484. hour += 12;
  2485. }
  2486. if (!isPm && hour === 12) {
  2487. hour = 0;
  2488. }
  2489. return hour;
  2490. } else {
  2491. // this is not supposed to happen
  2492. return hour;
  2493. }
  2494. }
  2495. // date from string and array of format strings
  2496. function configFromStringAndArray(config) {
  2497. var tempConfig,
  2498. bestMoment,
  2499. scoreToBeat,
  2500. i,
  2501. currentScore,
  2502. validFormatFound,
  2503. bestFormatIsValid = false;
  2504. if (config._f.length === 0) {
  2505. getParsingFlags(config).invalidFormat = true;
  2506. config._d = new Date(NaN);
  2507. return;
  2508. }
  2509. for (i = 0; i < config._f.length; i++) {
  2510. currentScore = 0;
  2511. validFormatFound = false;
  2512. tempConfig = copyConfig({}, config);
  2513. if (config._useUTC != null) {
  2514. tempConfig._useUTC = config._useUTC;
  2515. }
  2516. tempConfig._f = config._f[i];
  2517. configFromStringAndFormat(tempConfig);
  2518. if (isValid(tempConfig)) {
  2519. validFormatFound = true;
  2520. }
  2521. // if there is any input that was not parsed add a penalty for that format
  2522. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2523. //or tokens
  2524. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2525. getParsingFlags(tempConfig).score = currentScore;
  2526. if (!bestFormatIsValid) {
  2527. if (
  2528. scoreToBeat == null ||
  2529. currentScore < scoreToBeat ||
  2530. validFormatFound
  2531. ) {
  2532. scoreToBeat = currentScore;
  2533. bestMoment = tempConfig;
  2534. if (validFormatFound) {
  2535. bestFormatIsValid = true;
  2536. }
  2537. }
  2538. } else {
  2539. if (currentScore < scoreToBeat) {
  2540. scoreToBeat = currentScore;
  2541. bestMoment = tempConfig;
  2542. }
  2543. }
  2544. }
  2545. extend(config, bestMoment || tempConfig);
  2546. }
  2547. function configFromObject(config) {
  2548. if (config._d) {
  2549. return;
  2550. }
  2551. var i = normalizeObjectUnits(config._i),
  2552. dayOrDate = i.day === undefined ? i.date : i.day;
  2553. config._a = map(
  2554. [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
  2555. function (obj) {
  2556. return obj && parseInt(obj, 10);
  2557. }
  2558. );
  2559. configFromArray(config);
  2560. }
  2561. function createFromConfig(config) {
  2562. var res = new Moment(checkOverflow(prepareConfig(config)));
  2563. if (res._nextDay) {
  2564. // Adding is smart enough around DST
  2565. res.add(1, 'd');
  2566. res._nextDay = undefined;
  2567. }
  2568. return res;
  2569. }
  2570. function prepareConfig(config) {
  2571. var input = config._i,
  2572. format = config._f;
  2573. config._locale = config._locale || getLocale(config._l);
  2574. if (input === null || (format === undefined && input === '')) {
  2575. return createInvalid({ nullInput: true });
  2576. }
  2577. if (typeof input === 'string') {
  2578. config._i = input = config._locale.preparse(input);
  2579. }
  2580. if (isMoment(input)) {
  2581. return new Moment(checkOverflow(input));
  2582. } else if (isDate(input)) {
  2583. config._d = input;
  2584. } else if (isArray(format)) {
  2585. configFromStringAndArray(config);
  2586. } else if (format) {
  2587. configFromStringAndFormat(config);
  2588. } else {
  2589. configFromInput(config);
  2590. }
  2591. if (!isValid(config)) {
  2592. config._d = null;
  2593. }
  2594. return config;
  2595. }
  2596. function configFromInput(config) {
  2597. var input = config._i;
  2598. if (isUndefined(input)) {
  2599. config._d = new Date(hooks.now());
  2600. } else if (isDate(input)) {
  2601. config._d = new Date(input.valueOf());
  2602. } else if (typeof input === 'string') {
  2603. configFromString(config);
  2604. } else if (isArray(input)) {
  2605. config._a = map(input.slice(0), function (obj) {
  2606. return parseInt(obj, 10);
  2607. });
  2608. configFromArray(config);
  2609. } else if (isObject(input)) {
  2610. configFromObject(config);
  2611. } else if (isNumber(input)) {
  2612. // from milliseconds
  2613. config._d = new Date(input);
  2614. } else {
  2615. hooks.createFromInputFallback(config);
  2616. }
  2617. }
  2618. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  2619. var c = {};
  2620. if (format === true || format === false) {
  2621. strict = format;
  2622. format = undefined;
  2623. }
  2624. if (locale === true || locale === false) {
  2625. strict = locale;
  2626. locale = undefined;
  2627. }
  2628. if (
  2629. (isObject(input) && isObjectEmpty(input)) ||
  2630. (isArray(input) && input.length === 0)
  2631. ) {
  2632. input = undefined;
  2633. }
  2634. // object construction must be done this way.
  2635. // https://github.com/moment/moment/issues/1423
  2636. c._isAMomentObject = true;
  2637. c._useUTC = c._isUTC = isUTC;
  2638. c._l = locale;
  2639. c._i = input;
  2640. c._f = format;
  2641. c._strict = strict;
  2642. return createFromConfig(c);
  2643. }
  2644. function createLocal(input, format, locale, strict) {
  2645. return createLocalOrUTC(input, format, locale, strict, false);
  2646. }
  2647. var prototypeMin = deprecate(
  2648. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2649. function () {
  2650. var other = createLocal.apply(null, arguments);
  2651. if (this.isValid() && other.isValid()) {
  2652. return other < this ? this : other;
  2653. } else {
  2654. return createInvalid();
  2655. }
  2656. }
  2657. ),
  2658. prototypeMax = deprecate(
  2659. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2660. function () {
  2661. var other = createLocal.apply(null, arguments);
  2662. if (this.isValid() && other.isValid()) {
  2663. return other > this ? this : other;
  2664. } else {
  2665. return createInvalid();
  2666. }
  2667. }
  2668. );
  2669. // Pick a moment m from moments so that m[fn](other) is true for all
  2670. // other. This relies on the function fn to be transitive.
  2671. //
  2672. // moments should either be an array of moment objects or an array, whose
  2673. // first element is an array of moment objects.
  2674. function pickBy(fn, moments) {
  2675. var res, i;
  2676. if (moments.length === 1 && isArray(moments[0])) {
  2677. moments = moments[0];
  2678. }
  2679. if (!moments.length) {
  2680. return createLocal();
  2681. }
  2682. res = moments[0];
  2683. for (i = 1; i < moments.length; ++i) {
  2684. if (!moments[i].isValid() || moments[i][fn](res)) {
  2685. res = moments[i];
  2686. }
  2687. }
  2688. return res;
  2689. }
  2690. // TODO: Use [].sort instead?
  2691. function min() {
  2692. var args = [].slice.call(arguments, 0);
  2693. return pickBy('isBefore', args);
  2694. }
  2695. function max() {
  2696. var args = [].slice.call(arguments, 0);
  2697. return pickBy('isAfter', args);
  2698. }
  2699. var now = function () {
  2700. return Date.now ? Date.now() : +new Date();
  2701. };
  2702. var ordering = [
  2703. 'year',
  2704. 'quarter',
  2705. 'month',
  2706. 'week',
  2707. 'day',
  2708. 'hour',
  2709. 'minute',
  2710. 'second',
  2711. 'millisecond',
  2712. ];
  2713. function isDurationValid(m) {
  2714. var key,
  2715. unitHasDecimal = false,
  2716. i;
  2717. for (key in m) {
  2718. if (
  2719. hasOwnProp(m, key) &&
  2720. !(
  2721. indexOf.call(ordering, key) !== -1 &&
  2722. (m[key] == null || !isNaN(m[key]))
  2723. )
  2724. ) {
  2725. return false;
  2726. }
  2727. }
  2728. for (i = 0; i < ordering.length; ++i) {
  2729. if (m[ordering[i]]) {
  2730. if (unitHasDecimal) {
  2731. return false; // only allow non-integers for smallest unit
  2732. }
  2733. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2734. unitHasDecimal = true;
  2735. }
  2736. }
  2737. }
  2738. return true;
  2739. }
  2740. function isValid$1() {
  2741. return this._isValid;
  2742. }
  2743. function createInvalid$1() {
  2744. return createDuration(NaN);
  2745. }
  2746. function Duration(duration) {
  2747. var normalizedInput = normalizeObjectUnits(duration),
  2748. years = normalizedInput.year || 0,
  2749. quarters = normalizedInput.quarter || 0,
  2750. months = normalizedInput.month || 0,
  2751. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  2752. days = normalizedInput.day || 0,
  2753. hours = normalizedInput.hour || 0,
  2754. minutes = normalizedInput.minute || 0,
  2755. seconds = normalizedInput.second || 0,
  2756. milliseconds = normalizedInput.millisecond || 0;
  2757. this._isValid = isDurationValid(normalizedInput);
  2758. // representation for dateAddRemove
  2759. this._milliseconds =
  2760. +milliseconds +
  2761. seconds * 1e3 + // 1000
  2762. minutes * 6e4 + // 1000 * 60
  2763. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2764. // Because of dateAddRemove treats 24 hours as different from a
  2765. // day when working around DST, we need to store them separately
  2766. this._days = +days + weeks * 7;
  2767. // It is impossible to translate months into days without knowing
  2768. // which months you are are talking about, so we have to store
  2769. // it separately.
  2770. this._months = +months + quarters * 3 + years * 12;
  2771. this._data = {};
  2772. this._locale = getLocale();
  2773. this._bubble();
  2774. }
  2775. function isDuration(obj) {
  2776. return obj instanceof Duration;
  2777. }
  2778. function absRound(number) {
  2779. if (number < 0) {
  2780. return Math.round(-1 * number) * -1;
  2781. } else {
  2782. return Math.round(number);
  2783. }
  2784. }
  2785. // compare two arrays, return the number of differences
  2786. function compareArrays(array1, array2, dontConvert) {
  2787. var len = Math.min(array1.length, array2.length),
  2788. lengthDiff = Math.abs(array1.length - array2.length),
  2789. diffs = 0,
  2790. i;
  2791. for (i = 0; i < len; i++) {
  2792. if (
  2793. (dontConvert && array1[i] !== array2[i]) ||
  2794. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
  2795. ) {
  2796. diffs++;
  2797. }
  2798. }
  2799. return diffs + lengthDiff;
  2800. }
  2801. // FORMATTING
  2802. function offset(token, separator) {
  2803. addFormatToken(token, 0, 0, function () {
  2804. var offset = this.utcOffset(),
  2805. sign = '+';
  2806. if (offset < 0) {
  2807. offset = -offset;
  2808. sign = '-';
  2809. }
  2810. return (
  2811. sign +
  2812. zeroFill(~~(offset / 60), 2) +
  2813. separator +
  2814. zeroFill(~~offset % 60, 2)
  2815. );
  2816. });
  2817. }
  2818. offset('Z', ':');
  2819. offset('ZZ', '');
  2820. // PARSING
  2821. addRegexToken('Z', matchShortOffset);
  2822. addRegexToken('ZZ', matchShortOffset);
  2823. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2824. config._useUTC = true;
  2825. config._tzm = offsetFromString(matchShortOffset, input);
  2826. });
  2827. // HELPERS
  2828. // timezone chunker
  2829. // '+10:00' > ['10', '00']
  2830. // '-1530' > ['-15', '30']
  2831. var chunkOffset = /([\+\-]|\d\d)/gi;
  2832. function offsetFromString(matcher, string) {
  2833. var matches = (string || '').match(matcher),
  2834. chunk,
  2835. parts,
  2836. minutes;
  2837. if (matches === null) {
  2838. return null;
  2839. }
  2840. chunk = matches[matches.length - 1] || [];
  2841. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2842. minutes = +(parts[1] * 60) + toInt(parts[2]);
  2843. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  2844. }
  2845. // Return a moment from input, that is local/utc/zone equivalent to model.
  2846. function cloneWithOffset(input, model) {
  2847. var res, diff;
  2848. if (model._isUTC) {
  2849. res = model.clone();
  2850. diff =
  2851. (isMoment(input) || isDate(input)
  2852. ? input.valueOf()
  2853. : createLocal(input).valueOf()) - res.valueOf();
  2854. // Use low-level api, because this fn is low-level api.
  2855. res._d.setTime(res._d.valueOf() + diff);
  2856. hooks.updateOffset(res, false);
  2857. return res;
  2858. } else {
  2859. return createLocal(input).local();
  2860. }
  2861. }
  2862. function getDateOffset(m) {
  2863. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2864. // https://github.com/moment/moment/pull/1871
  2865. return -Math.round(m._d.getTimezoneOffset());
  2866. }
  2867. // HOOKS
  2868. // This function will be called whenever a moment is mutated.
  2869. // It is intended to keep the offset in sync with the timezone.
  2870. hooks.updateOffset = function () {};
  2871. // MOMENTS
  2872. // keepLocalTime = true means only change the timezone, without
  2873. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2874. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2875. // +0200, so we adjust the time as needed, to be valid.
  2876. //
  2877. // Keeping the time actually adds/subtracts (one hour)
  2878. // from the actual represented time. That is why we call updateOffset
  2879. // a second time. In case it wants us to change the offset again
  2880. // _changeInProgress == true case, then we have to adjust, because
  2881. // there is no such time in the given timezone.
  2882. function getSetOffset(input, keepLocalTime, keepMinutes) {
  2883. var offset = this._offset || 0,
  2884. localAdjust;
  2885. if (!this.isValid()) {
  2886. return input != null ? this : NaN;
  2887. }
  2888. if (input != null) {
  2889. if (typeof input === 'string') {
  2890. input = offsetFromString(matchShortOffset, input);
  2891. if (input === null) {
  2892. return this;
  2893. }
  2894. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2895. input = input * 60;
  2896. }
  2897. if (!this._isUTC && keepLocalTime) {
  2898. localAdjust = getDateOffset(this);
  2899. }
  2900. this._offset = input;
  2901. this._isUTC = true;
  2902. if (localAdjust != null) {
  2903. this.add(localAdjust, 'm');
  2904. }
  2905. if (offset !== input) {
  2906. if (!keepLocalTime || this._changeInProgress) {
  2907. addSubtract(
  2908. this,
  2909. createDuration(input - offset, 'm'),
  2910. 1,
  2911. false
  2912. );
  2913. } else if (!this._changeInProgress) {
  2914. this._changeInProgress = true;
  2915. hooks.updateOffset(this, true);
  2916. this._changeInProgress = null;
  2917. }
  2918. }
  2919. return this;
  2920. } else {
  2921. return this._isUTC ? offset : getDateOffset(this);
  2922. }
  2923. }
  2924. function getSetZone(input, keepLocalTime) {
  2925. if (input != null) {
  2926. if (typeof input !== 'string') {
  2927. input = -input;
  2928. }
  2929. this.utcOffset(input, keepLocalTime);
  2930. return this;
  2931. } else {
  2932. return -this.utcOffset();
  2933. }
  2934. }
  2935. function setOffsetToUTC(keepLocalTime) {
  2936. return this.utcOffset(0, keepLocalTime);
  2937. }
  2938. function setOffsetToLocal(keepLocalTime) {
  2939. if (this._isUTC) {
  2940. this.utcOffset(0, keepLocalTime);
  2941. this._isUTC = false;
  2942. if (keepLocalTime) {
  2943. this.subtract(getDateOffset(this), 'm');
  2944. }
  2945. }
  2946. return this;
  2947. }
  2948. function setOffsetToParsedOffset() {
  2949. if (this._tzm != null) {
  2950. this.utcOffset(this._tzm, false, true);
  2951. } else if (typeof this._i === 'string') {
  2952. var tZone = offsetFromString(matchOffset, this._i);
  2953. if (tZone != null) {
  2954. this.utcOffset(tZone);
  2955. } else {
  2956. this.utcOffset(0, true);
  2957. }
  2958. }
  2959. return this;
  2960. }
  2961. function hasAlignedHourOffset(input) {
  2962. if (!this.isValid()) {
  2963. return false;
  2964. }
  2965. input = input ? createLocal(input).utcOffset() : 0;
  2966. return (this.utcOffset() - input) % 60 === 0;
  2967. }
  2968. function isDaylightSavingTime() {
  2969. return (
  2970. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2971. this.utcOffset() > this.clone().month(5).utcOffset()
  2972. );
  2973. }
  2974. function isDaylightSavingTimeShifted() {
  2975. if (!isUndefined(this._isDSTShifted)) {
  2976. return this._isDSTShifted;
  2977. }
  2978. var c = {},
  2979. other;
  2980. copyConfig(c, this);
  2981. c = prepareConfig(c);
  2982. if (c._a) {
  2983. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2984. this._isDSTShifted =
  2985. this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  2986. } else {
  2987. this._isDSTShifted = false;
  2988. }
  2989. return this._isDSTShifted;
  2990. }
  2991. function isLocal() {
  2992. return this.isValid() ? !this._isUTC : false;
  2993. }
  2994. function isUtcOffset() {
  2995. return this.isValid() ? this._isUTC : false;
  2996. }
  2997. function isUtc() {
  2998. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2999. }
  3000. // ASP.NET json date format regex
  3001. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  3002. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  3003. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  3004. // and further modified to allow for strings containing both week and day
  3005. isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  3006. function createDuration(input, key) {
  3007. var duration = input,
  3008. // matching against regexp is expensive, do it on demand
  3009. match = null,
  3010. sign,
  3011. ret,
  3012. diffRes;
  3013. if (isDuration(input)) {
  3014. duration = {
  3015. ms: input._milliseconds,
  3016. d: input._days,
  3017. M: input._months,
  3018. };
  3019. } else if (isNumber(input) || !isNaN(+input)) {
  3020. duration = {};
  3021. if (key) {
  3022. duration[key] = +input;
  3023. } else {
  3024. duration.milliseconds = +input;
  3025. }
  3026. } else if ((match = aspNetRegex.exec(input))) {
  3027. sign = match[1] === '-' ? -1 : 1;
  3028. duration = {
  3029. y: 0,
  3030. d: toInt(match[DATE]) * sign,
  3031. h: toInt(match[HOUR]) * sign,
  3032. m: toInt(match[MINUTE]) * sign,
  3033. s: toInt(match[SECOND]) * sign,
  3034. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
  3035. };
  3036. } else if ((match = isoRegex.exec(input))) {
  3037. sign = match[1] === '-' ? -1 : 1;
  3038. duration = {
  3039. y: parseIso(match[2], sign),
  3040. M: parseIso(match[3], sign),
  3041. w: parseIso(match[4], sign),
  3042. d: parseIso(match[5], sign),
  3043. h: parseIso(match[6], sign),
  3044. m: parseIso(match[7], sign),
  3045. s: parseIso(match[8], sign),
  3046. };
  3047. } else if (duration == null) {
  3048. // checks for null or undefined
  3049. duration = {};
  3050. } else if (
  3051. typeof duration === 'object' &&
  3052. ('from' in duration || 'to' in duration)
  3053. ) {
  3054. diffRes = momentsDifference(
  3055. createLocal(duration.from),
  3056. createLocal(duration.to)
  3057. );
  3058. duration = {};
  3059. duration.ms = diffRes.milliseconds;
  3060. duration.M = diffRes.months;
  3061. }
  3062. ret = new Duration(duration);
  3063. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  3064. ret._locale = input._locale;
  3065. }
  3066. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  3067. ret._isValid = input._isValid;
  3068. }
  3069. return ret;
  3070. }
  3071. createDuration.fn = Duration.prototype;
  3072. createDuration.invalid = createInvalid$1;
  3073. function parseIso(inp, sign) {
  3074. // We'd normally use ~~inp for this, but unfortunately it also
  3075. // converts floats to ints.
  3076. // inp may be undefined, so careful calling replace on it.
  3077. var res = inp && parseFloat(inp.replace(',', '.'));
  3078. // apply sign while we're at it
  3079. return (isNaN(res) ? 0 : res) * sign;
  3080. }
  3081. function positiveMomentsDifference(base, other) {
  3082. var res = {};
  3083. res.months =
  3084. other.month() - base.month() + (other.year() - base.year()) * 12;
  3085. if (base.clone().add(res.months, 'M').isAfter(other)) {
  3086. --res.months;
  3087. }
  3088. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  3089. return res;
  3090. }
  3091. function momentsDifference(base, other) {
  3092. var res;
  3093. if (!(base.isValid() && other.isValid())) {
  3094. return { milliseconds: 0, months: 0 };
  3095. }
  3096. other = cloneWithOffset(other, base);
  3097. if (base.isBefore(other)) {
  3098. res = positiveMomentsDifference(base, other);
  3099. } else {
  3100. res = positiveMomentsDifference(other, base);
  3101. res.milliseconds = -res.milliseconds;
  3102. res.months = -res.months;
  3103. }
  3104. return res;
  3105. }
  3106. // TODO: remove 'name' arg after deprecation is removed
  3107. function createAdder(direction, name) {
  3108. return function (val, period) {
  3109. var dur, tmp;
  3110. //invert the arguments, but complain about it
  3111. if (period !== null && !isNaN(+period)) {
  3112. deprecateSimple(
  3113. name,
  3114. 'moment().' +
  3115. name +
  3116. '(period, number) is deprecated. Please use moment().' +
  3117. name +
  3118. '(number, period). ' +
  3119. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
  3120. );
  3121. tmp = val;
  3122. val = period;
  3123. period = tmp;
  3124. }
  3125. dur = createDuration(val, period);
  3126. addSubtract(this, dur, direction);
  3127. return this;
  3128. };
  3129. }
  3130. function addSubtract(mom, duration, isAdding, updateOffset) {
  3131. var milliseconds = duration._milliseconds,
  3132. days = absRound(duration._days),
  3133. months = absRound(duration._months);
  3134. if (!mom.isValid()) {
  3135. // No op
  3136. return;
  3137. }
  3138. updateOffset = updateOffset == null ? true : updateOffset;
  3139. if (months) {
  3140. setMonth(mom, get(mom, 'Month') + months * isAdding);
  3141. }
  3142. if (days) {
  3143. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  3144. }
  3145. if (milliseconds) {
  3146. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  3147. }
  3148. if (updateOffset) {
  3149. hooks.updateOffset(mom, days || months);
  3150. }
  3151. }
  3152. var add = createAdder(1, 'add'),
  3153. subtract = createAdder(-1, 'subtract');
  3154. function isString(input) {
  3155. return typeof input === 'string' || input instanceof String;
  3156. }
  3157. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  3158. function isMomentInput(input) {
  3159. return (
  3160. isMoment(input) ||
  3161. isDate(input) ||
  3162. isString(input) ||
  3163. isNumber(input) ||
  3164. isNumberOrStringArray(input) ||
  3165. isMomentInputObject(input) ||
  3166. input === null ||
  3167. input === undefined
  3168. );
  3169. }
  3170. function isMomentInputObject(input) {
  3171. var objectTest = isObject(input) && !isObjectEmpty(input),
  3172. propertyTest = false,
  3173. properties = [
  3174. 'years',
  3175. 'year',
  3176. 'y',
  3177. 'months',
  3178. 'month',
  3179. 'M',
  3180. 'days',
  3181. 'day',
  3182. 'd',
  3183. 'dates',
  3184. 'date',
  3185. 'D',
  3186. 'hours',
  3187. 'hour',
  3188. 'h',
  3189. 'minutes',
  3190. 'minute',
  3191. 'm',
  3192. 'seconds',
  3193. 'second',
  3194. 's',
  3195. 'milliseconds',
  3196. 'millisecond',
  3197. 'ms',
  3198. ],
  3199. i,
  3200. property;
  3201. for (i = 0; i < properties.length; i += 1) {
  3202. property = properties[i];
  3203. propertyTest = propertyTest || hasOwnProp(input, property);
  3204. }
  3205. return objectTest && propertyTest;
  3206. }
  3207. function isNumberOrStringArray(input) {
  3208. var arrayTest = isArray(input),
  3209. dataTypeTest = false;
  3210. if (arrayTest) {
  3211. dataTypeTest =
  3212. input.filter(function (item) {
  3213. return !isNumber(item) && isString(input);
  3214. }).length === 0;
  3215. }
  3216. return arrayTest && dataTypeTest;
  3217. }
  3218. function isCalendarSpec(input) {
  3219. var objectTest = isObject(input) && !isObjectEmpty(input),
  3220. propertyTest = false,
  3221. properties = [
  3222. 'sameDay',
  3223. 'nextDay',
  3224. 'lastDay',
  3225. 'nextWeek',
  3226. 'lastWeek',
  3227. 'sameElse',
  3228. ],
  3229. i,
  3230. property;
  3231. for (i = 0; i < properties.length; i += 1) {
  3232. property = properties[i];
  3233. propertyTest = propertyTest || hasOwnProp(input, property);
  3234. }
  3235. return objectTest && propertyTest;
  3236. }
  3237. function getCalendarFormat(myMoment, now) {
  3238. var diff = myMoment.diff(now, 'days', true);
  3239. return diff < -6
  3240. ? 'sameElse'
  3241. : diff < -1
  3242. ? 'lastWeek'
  3243. : diff < 0
  3244. ? 'lastDay'
  3245. : diff < 1
  3246. ? 'sameDay'
  3247. : diff < 2
  3248. ? 'nextDay'
  3249. : diff < 7
  3250. ? 'nextWeek'
  3251. : 'sameElse';
  3252. }
  3253. function calendar$1(time, formats) {
  3254. // Support for single parameter, formats only overload to the calendar function
  3255. if (arguments.length === 1) {
  3256. if (isMomentInput(arguments[0])) {
  3257. time = arguments[0];
  3258. formats = undefined;
  3259. } else if (isCalendarSpec(arguments[0])) {
  3260. formats = arguments[0];
  3261. time = undefined;
  3262. }
  3263. }
  3264. // We want to compare the start of today, vs this.
  3265. // Getting start-of-today depends on whether we're local/utc/offset or not.
  3266. var now = time || createLocal(),
  3267. sod = cloneWithOffset(now, this).startOf('day'),
  3268. format = hooks.calendarFormat(this, sod) || 'sameElse',
  3269. output =
  3270. formats &&
  3271. (isFunction(formats[format])
  3272. ? formats[format].call(this, now)
  3273. : formats[format]);
  3274. return this.format(
  3275. output || this.localeData().calendar(format, this, createLocal(now))
  3276. );
  3277. }
  3278. function clone() {
  3279. return new Moment(this);
  3280. }
  3281. function isAfter(input, units) {
  3282. var localInput = isMoment(input) ? input : createLocal(input);
  3283. if (!(this.isValid() && localInput.isValid())) {
  3284. return false;
  3285. }
  3286. units = normalizeUnits(units) || 'millisecond';
  3287. if (units === 'millisecond') {
  3288. return this.valueOf() > localInput.valueOf();
  3289. } else {
  3290. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  3291. }
  3292. }
  3293. function isBefore(input, units) {
  3294. var localInput = isMoment(input) ? input : createLocal(input);
  3295. if (!(this.isValid() && localInput.isValid())) {
  3296. return false;
  3297. }
  3298. units = normalizeUnits(units) || 'millisecond';
  3299. if (units === 'millisecond') {
  3300. return this.valueOf() < localInput.valueOf();
  3301. } else {
  3302. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  3303. }
  3304. }
  3305. function isBetween(from, to, units, inclusivity) {
  3306. var localFrom = isMoment(from) ? from : createLocal(from),
  3307. localTo = isMoment(to) ? to : createLocal(to);
  3308. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  3309. return false;
  3310. }
  3311. inclusivity = inclusivity || '()';
  3312. return (
  3313. (inclusivity[0] === '('
  3314. ? this.isAfter(localFrom, units)
  3315. : !this.isBefore(localFrom, units)) &&
  3316. (inclusivity[1] === ')'
  3317. ? this.isBefore(localTo, units)
  3318. : !this.isAfter(localTo, units))
  3319. );
  3320. }
  3321. function isSame(input, units) {
  3322. var localInput = isMoment(input) ? input : createLocal(input),
  3323. inputMs;
  3324. if (!(this.isValid() && localInput.isValid())) {
  3325. return false;
  3326. }
  3327. units = normalizeUnits(units) || 'millisecond';
  3328. if (units === 'millisecond') {
  3329. return this.valueOf() === localInput.valueOf();
  3330. } else {
  3331. inputMs = localInput.valueOf();
  3332. return (
  3333. this.clone().startOf(units).valueOf() <= inputMs &&
  3334. inputMs <= this.clone().endOf(units).valueOf()
  3335. );
  3336. }
  3337. }
  3338. function isSameOrAfter(input, units) {
  3339. return this.isSame(input, units) || this.isAfter(input, units);
  3340. }
  3341. function isSameOrBefore(input, units) {
  3342. return this.isSame(input, units) || this.isBefore(input, units);
  3343. }
  3344. function diff(input, units, asFloat) {
  3345. var that, zoneDelta, output;
  3346. if (!this.isValid()) {
  3347. return NaN;
  3348. }
  3349. that = cloneWithOffset(input, this);
  3350. if (!that.isValid()) {
  3351. return NaN;
  3352. }
  3353. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  3354. units = normalizeUnits(units);
  3355. switch (units) {
  3356. case 'year':
  3357. output = monthDiff(this, that) / 12;
  3358. break;
  3359. case 'month':
  3360. output = monthDiff(this, that);
  3361. break;
  3362. case 'quarter':
  3363. output = monthDiff(this, that) / 3;
  3364. break;
  3365. case 'second':
  3366. output = (this - that) / 1e3;
  3367. break; // 1000
  3368. case 'minute':
  3369. output = (this - that) / 6e4;
  3370. break; // 1000 * 60
  3371. case 'hour':
  3372. output = (this - that) / 36e5;
  3373. break; // 1000 * 60 * 60
  3374. case 'day':
  3375. output = (this - that - zoneDelta) / 864e5;
  3376. break; // 1000 * 60 * 60 * 24, negate dst
  3377. case 'week':
  3378. output = (this - that - zoneDelta) / 6048e5;
  3379. break; // 1000 * 60 * 60 * 24 * 7, negate dst
  3380. default:
  3381. output = this - that;
  3382. }
  3383. return asFloat ? output : absFloor(output);
  3384. }
  3385. function monthDiff(a, b) {
  3386. if (a.date() < b.date()) {
  3387. // end-of-month calculations work correct when the start month has more
  3388. // days than the end month.
  3389. return -monthDiff(b, a);
  3390. }
  3391. // difference in months
  3392. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  3393. // b is in (anchor - 1 month, anchor + 1 month)
  3394. anchor = a.clone().add(wholeMonthDiff, 'months'),
  3395. anchor2,
  3396. adjust;
  3397. if (b - anchor < 0) {
  3398. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  3399. // linear across the month
  3400. adjust = (b - anchor) / (anchor - anchor2);
  3401. } else {
  3402. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  3403. // linear across the month
  3404. adjust = (b - anchor) / (anchor2 - anchor);
  3405. }
  3406. //check for negative zero, return zero if negative zero
  3407. return -(wholeMonthDiff + adjust) || 0;
  3408. }
  3409. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  3410. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  3411. function toString() {
  3412. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  3413. }
  3414. function toISOString(keepOffset) {
  3415. if (!this.isValid()) {
  3416. return null;
  3417. }
  3418. var utc = keepOffset !== true,
  3419. m = utc ? this.clone().utc() : this;
  3420. if (m.year() < 0 || m.year() > 9999) {
  3421. return formatMoment(
  3422. m,
  3423. utc
  3424. ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
  3425. : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3426. );
  3427. }
  3428. if (isFunction(Date.prototype.toISOString)) {
  3429. // native implementation is ~50x faster, use it when we can
  3430. if (utc) {
  3431. return this.toDate().toISOString();
  3432. } else {
  3433. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
  3434. .toISOString()
  3435. .replace('Z', formatMoment(m, 'Z'));
  3436. }
  3437. }
  3438. return formatMoment(
  3439. m,
  3440. utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3441. );
  3442. }
  3443. /**
  3444. * Return a human readable representation of a moment that can
  3445. * also be evaluated to get a new moment which is the same
  3446. *
  3447. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  3448. */
  3449. function inspect() {
  3450. if (!this.isValid()) {
  3451. return 'moment.invalid(/* ' + this._i + ' */)';
  3452. }
  3453. var func = 'moment',
  3454. zone = '',
  3455. prefix,
  3456. year,
  3457. datetime,
  3458. suffix;
  3459. if (!this.isLocal()) {
  3460. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  3461. zone = 'Z';
  3462. }
  3463. prefix = '[' + func + '("]';
  3464. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  3465. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  3466. suffix = zone + '[")]';
  3467. return this.format(prefix + year + datetime + suffix);
  3468. }
  3469. function format(inputString) {
  3470. if (!inputString) {
  3471. inputString = this.isUtc()
  3472. ? hooks.defaultFormatUtc
  3473. : hooks.defaultFormat;
  3474. }
  3475. var output = formatMoment(this, inputString);
  3476. return this.localeData().postformat(output);
  3477. }
  3478. function from(time, withoutSuffix) {
  3479. if (
  3480. this.isValid() &&
  3481. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3482. ) {
  3483. return createDuration({ to: this, from: time })
  3484. .locale(this.locale())
  3485. .humanize(!withoutSuffix);
  3486. } else {
  3487. return this.localeData().invalidDate();
  3488. }
  3489. }
  3490. function fromNow(withoutSuffix) {
  3491. return this.from(createLocal(), withoutSuffix);
  3492. }
  3493. function to(time, withoutSuffix) {
  3494. if (
  3495. this.isValid() &&
  3496. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3497. ) {
  3498. return createDuration({ from: this, to: time })
  3499. .locale(this.locale())
  3500. .humanize(!withoutSuffix);
  3501. } else {
  3502. return this.localeData().invalidDate();
  3503. }
  3504. }
  3505. function toNow(withoutSuffix) {
  3506. return this.to(createLocal(), withoutSuffix);
  3507. }
  3508. // If passed a locale key, it will set the locale for this
  3509. // instance. Otherwise, it will return the locale configuration
  3510. // variables for this instance.
  3511. function locale(key) {
  3512. var newLocaleData;
  3513. if (key === undefined) {
  3514. return this._locale._abbr;
  3515. } else {
  3516. newLocaleData = getLocale(key);
  3517. if (newLocaleData != null) {
  3518. this._locale = newLocaleData;
  3519. }
  3520. return this;
  3521. }
  3522. }
  3523. var lang = deprecate(
  3524. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  3525. function (key) {
  3526. if (key === undefined) {
  3527. return this.localeData();
  3528. } else {
  3529. return this.locale(key);
  3530. }
  3531. }
  3532. );
  3533. function localeData() {
  3534. return this._locale;
  3535. }
  3536. var MS_PER_SECOND = 1000,
  3537. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  3538. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  3539. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  3540. // actual modulo - handles negative numbers (for dates before 1970):
  3541. function mod$1(dividend, divisor) {
  3542. return ((dividend % divisor) + divisor) % divisor;
  3543. }
  3544. function localStartOfDate(y, m, d) {
  3545. // the date constructor remaps years 0-99 to 1900-1999
  3546. if (y < 100 && y >= 0) {
  3547. // preserve leap years using a full 400 year cycle, then reset
  3548. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  3549. } else {
  3550. return new Date(y, m, d).valueOf();
  3551. }
  3552. }
  3553. function utcStartOfDate(y, m, d) {
  3554. // Date.UTC remaps years 0-99 to 1900-1999
  3555. if (y < 100 && y >= 0) {
  3556. // preserve leap years using a full 400 year cycle, then reset
  3557. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  3558. } else {
  3559. return Date.UTC(y, m, d);
  3560. }
  3561. }
  3562. function startOf(units) {
  3563. var time, startOfDate;
  3564. units = normalizeUnits(units);
  3565. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3566. return this;
  3567. }
  3568. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3569. switch (units) {
  3570. case 'year':
  3571. time = startOfDate(this.year(), 0, 1);
  3572. break;
  3573. case 'quarter':
  3574. time = startOfDate(
  3575. this.year(),
  3576. this.month() - (this.month() % 3),
  3577. 1
  3578. );
  3579. break;
  3580. case 'month':
  3581. time = startOfDate(this.year(), this.month(), 1);
  3582. break;
  3583. case 'week':
  3584. time = startOfDate(
  3585. this.year(),
  3586. this.month(),
  3587. this.date() - this.weekday()
  3588. );
  3589. break;
  3590. case 'isoWeek':
  3591. time = startOfDate(
  3592. this.year(),
  3593. this.month(),
  3594. this.date() - (this.isoWeekday() - 1)
  3595. );
  3596. break;
  3597. case 'day':
  3598. case 'date':
  3599. time = startOfDate(this.year(), this.month(), this.date());
  3600. break;
  3601. case 'hour':
  3602. time = this._d.valueOf();
  3603. time -= mod$1(
  3604. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3605. MS_PER_HOUR
  3606. );
  3607. break;
  3608. case 'minute':
  3609. time = this._d.valueOf();
  3610. time -= mod$1(time, MS_PER_MINUTE);
  3611. break;
  3612. case 'second':
  3613. time = this._d.valueOf();
  3614. time -= mod$1(time, MS_PER_SECOND);
  3615. break;
  3616. }
  3617. this._d.setTime(time);
  3618. hooks.updateOffset(this, true);
  3619. return this;
  3620. }
  3621. function endOf(units) {
  3622. var time, startOfDate;
  3623. units = normalizeUnits(units);
  3624. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3625. return this;
  3626. }
  3627. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3628. switch (units) {
  3629. case 'year':
  3630. time = startOfDate(this.year() + 1, 0, 1) - 1;
  3631. break;
  3632. case 'quarter':
  3633. time =
  3634. startOfDate(
  3635. this.year(),
  3636. this.month() - (this.month() % 3) + 3,
  3637. 1
  3638. ) - 1;
  3639. break;
  3640. case 'month':
  3641. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  3642. break;
  3643. case 'week':
  3644. time =
  3645. startOfDate(
  3646. this.year(),
  3647. this.month(),
  3648. this.date() - this.weekday() + 7
  3649. ) - 1;
  3650. break;
  3651. case 'isoWeek':
  3652. time =
  3653. startOfDate(
  3654. this.year(),
  3655. this.month(),
  3656. this.date() - (this.isoWeekday() - 1) + 7
  3657. ) - 1;
  3658. break;
  3659. case 'day':
  3660. case 'date':
  3661. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  3662. break;
  3663. case 'hour':
  3664. time = this._d.valueOf();
  3665. time +=
  3666. MS_PER_HOUR -
  3667. mod$1(
  3668. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3669. MS_PER_HOUR
  3670. ) -
  3671. 1;
  3672. break;
  3673. case 'minute':
  3674. time = this._d.valueOf();
  3675. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  3676. break;
  3677. case 'second':
  3678. time = this._d.valueOf();
  3679. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  3680. break;
  3681. }
  3682. this._d.setTime(time);
  3683. hooks.updateOffset(this, true);
  3684. return this;
  3685. }
  3686. function valueOf() {
  3687. return this._d.valueOf() - (this._offset || 0) * 60000;
  3688. }
  3689. function unix() {
  3690. return Math.floor(this.valueOf() / 1000);
  3691. }
  3692. function toDate() {
  3693. return new Date(this.valueOf());
  3694. }
  3695. function toArray() {
  3696. var m = this;
  3697. return [
  3698. m.year(),
  3699. m.month(),
  3700. m.date(),
  3701. m.hour(),
  3702. m.minute(),
  3703. m.second(),
  3704. m.millisecond(),
  3705. ];
  3706. }
  3707. function toObject() {
  3708. var m = this;
  3709. return {
  3710. years: m.year(),
  3711. months: m.month(),
  3712. date: m.date(),
  3713. hours: m.hours(),
  3714. minutes: m.minutes(),
  3715. seconds: m.seconds(),
  3716. milliseconds: m.milliseconds(),
  3717. };
  3718. }
  3719. function toJSON() {
  3720. // new Date(NaN).toJSON() === null
  3721. return this.isValid() ? this.toISOString() : null;
  3722. }
  3723. function isValid$2() {
  3724. return isValid(this);
  3725. }
  3726. function parsingFlags() {
  3727. return extend({}, getParsingFlags(this));
  3728. }
  3729. function invalidAt() {
  3730. return getParsingFlags(this).overflow;
  3731. }
  3732. function creationData() {
  3733. return {
  3734. input: this._i,
  3735. format: this._f,
  3736. locale: this._locale,
  3737. isUTC: this._isUTC,
  3738. strict: this._strict,
  3739. };
  3740. }
  3741. addFormatToken('N', 0, 0, 'eraAbbr');
  3742. addFormatToken('NN', 0, 0, 'eraAbbr');
  3743. addFormatToken('NNN', 0, 0, 'eraAbbr');
  3744. addFormatToken('NNNN', 0, 0, 'eraName');
  3745. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  3746. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  3747. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  3748. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  3749. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  3750. addRegexToken('N', matchEraAbbr);
  3751. addRegexToken('NN', matchEraAbbr);
  3752. addRegexToken('NNN', matchEraAbbr);
  3753. addRegexToken('NNNN', matchEraName);
  3754. addRegexToken('NNNNN', matchEraNarrow);
  3755. addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
  3756. input,
  3757. array,
  3758. config,
  3759. token
  3760. ) {
  3761. var era = config._locale.erasParse(input, token, config._strict);
  3762. if (era) {
  3763. getParsingFlags(config).era = era;
  3764. } else {
  3765. getParsingFlags(config).invalidEra = input;
  3766. }
  3767. });
  3768. addRegexToken('y', matchUnsigned);
  3769. addRegexToken('yy', matchUnsigned);
  3770. addRegexToken('yyy', matchUnsigned);
  3771. addRegexToken('yyyy', matchUnsigned);
  3772. addRegexToken('yo', matchEraYearOrdinal);
  3773. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  3774. addParseToken(['yo'], function (input, array, config, token) {
  3775. var match;
  3776. if (config._locale._eraYearOrdinalRegex) {
  3777. match = input.match(config._locale._eraYearOrdinalRegex);
  3778. }
  3779. if (config._locale.eraYearOrdinalParse) {
  3780. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  3781. } else {
  3782. array[YEAR] = parseInt(input, 10);
  3783. }
  3784. });
  3785. function localeEras(m, format) {
  3786. var i,
  3787. l,
  3788. date,
  3789. eras = this._eras || getLocale('en')._eras;
  3790. for (i = 0, l = eras.length; i < l; ++i) {
  3791. switch (typeof eras[i].since) {
  3792. case 'string':
  3793. // truncate time
  3794. date = hooks(eras[i].since).startOf('day');
  3795. eras[i].since = date.valueOf();
  3796. break;
  3797. }
  3798. switch (typeof eras[i].until) {
  3799. case 'undefined':
  3800. eras[i].until = +Infinity;
  3801. break;
  3802. case 'string':
  3803. // truncate time
  3804. date = hooks(eras[i].until).startOf('day').valueOf();
  3805. eras[i].until = date.valueOf();
  3806. break;
  3807. }
  3808. }
  3809. return eras;
  3810. }
  3811. function localeErasParse(eraName, format, strict) {
  3812. var i,
  3813. l,
  3814. eras = this.eras(),
  3815. name,
  3816. abbr,
  3817. narrow;
  3818. eraName = eraName.toUpperCase();
  3819. for (i = 0, l = eras.length; i < l; ++i) {
  3820. name = eras[i].name.toUpperCase();
  3821. abbr = eras[i].abbr.toUpperCase();
  3822. narrow = eras[i].narrow.toUpperCase();
  3823. if (strict) {
  3824. switch (format) {
  3825. case 'N':
  3826. case 'NN':
  3827. case 'NNN':
  3828. if (abbr === eraName) {
  3829. return eras[i];
  3830. }
  3831. break;
  3832. case 'NNNN':
  3833. if (name === eraName) {
  3834. return eras[i];
  3835. }
  3836. break;
  3837. case 'NNNNN':
  3838. if (narrow === eraName) {
  3839. return eras[i];
  3840. }
  3841. break;
  3842. }
  3843. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  3844. return eras[i];
  3845. }
  3846. }
  3847. }
  3848. function localeErasConvertYear(era, year) {
  3849. var dir = era.since <= era.until ? +1 : -1;
  3850. if (year === undefined) {
  3851. return hooks(era.since).year();
  3852. } else {
  3853. return hooks(era.since).year() + (year - era.offset) * dir;
  3854. }
  3855. }
  3856. function getEraName() {
  3857. var i,
  3858. l,
  3859. val,
  3860. eras = this.localeData().eras();
  3861. for (i = 0, l = eras.length; i < l; ++i) {
  3862. // truncate time
  3863. val = this.startOf('day').valueOf();
  3864. if (eras[i].since <= val && val <= eras[i].until) {
  3865. return eras[i].name;
  3866. }
  3867. if (eras[i].until <= val && val <= eras[i].since) {
  3868. return eras[i].name;
  3869. }
  3870. }
  3871. return '';
  3872. }
  3873. function getEraNarrow() {
  3874. var i,
  3875. l,
  3876. val,
  3877. eras = this.localeData().eras();
  3878. for (i = 0, l = eras.length; i < l; ++i) {
  3879. // truncate time
  3880. val = this.startOf('day').valueOf();
  3881. if (eras[i].since <= val && val <= eras[i].until) {
  3882. return eras[i].narrow;
  3883. }
  3884. if (eras[i].until <= val && val <= eras[i].since) {
  3885. return eras[i].narrow;
  3886. }
  3887. }
  3888. return '';
  3889. }
  3890. function getEraAbbr() {
  3891. var i,
  3892. l,
  3893. val,
  3894. eras = this.localeData().eras();
  3895. for (i = 0, l = eras.length; i < l; ++i) {
  3896. // truncate time
  3897. val = this.startOf('day').valueOf();
  3898. if (eras[i].since <= val && val <= eras[i].until) {
  3899. return eras[i].abbr;
  3900. }
  3901. if (eras[i].until <= val && val <= eras[i].since) {
  3902. return eras[i].abbr;
  3903. }
  3904. }
  3905. return '';
  3906. }
  3907. function getEraYear() {
  3908. var i,
  3909. l,
  3910. dir,
  3911. val,
  3912. eras = this.localeData().eras();
  3913. for (i = 0, l = eras.length; i < l; ++i) {
  3914. dir = eras[i].since <= eras[i].until ? +1 : -1;
  3915. // truncate time
  3916. val = this.startOf('day').valueOf();
  3917. if (
  3918. (eras[i].since <= val && val <= eras[i].until) ||
  3919. (eras[i].until <= val && val <= eras[i].since)
  3920. ) {
  3921. return (
  3922. (this.year() - hooks(eras[i].since).year()) * dir +
  3923. eras[i].offset
  3924. );
  3925. }
  3926. }
  3927. return this.year();
  3928. }
  3929. function erasNameRegex(isStrict) {
  3930. if (!hasOwnProp(this, '_erasNameRegex')) {
  3931. computeErasParse.call(this);
  3932. }
  3933. return isStrict ? this._erasNameRegex : this._erasRegex;
  3934. }
  3935. function erasAbbrRegex(isStrict) {
  3936. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  3937. computeErasParse.call(this);
  3938. }
  3939. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  3940. }
  3941. function erasNarrowRegex(isStrict) {
  3942. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  3943. computeErasParse.call(this);
  3944. }
  3945. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  3946. }
  3947. function matchEraAbbr(isStrict, locale) {
  3948. return locale.erasAbbrRegex(isStrict);
  3949. }
  3950. function matchEraName(isStrict, locale) {
  3951. return locale.erasNameRegex(isStrict);
  3952. }
  3953. function matchEraNarrow(isStrict, locale) {
  3954. return locale.erasNarrowRegex(isStrict);
  3955. }
  3956. function matchEraYearOrdinal(isStrict, locale) {
  3957. return locale._eraYearOrdinalRegex || matchUnsigned;
  3958. }
  3959. function computeErasParse() {
  3960. var abbrPieces = [],
  3961. namePieces = [],
  3962. narrowPieces = [],
  3963. mixedPieces = [],
  3964. i,
  3965. l,
  3966. eras = this.eras();
  3967. for (i = 0, l = eras.length; i < l; ++i) {
  3968. namePieces.push(regexEscape(eras[i].name));
  3969. abbrPieces.push(regexEscape(eras[i].abbr));
  3970. narrowPieces.push(regexEscape(eras[i].narrow));
  3971. mixedPieces.push(regexEscape(eras[i].name));
  3972. mixedPieces.push(regexEscape(eras[i].abbr));
  3973. mixedPieces.push(regexEscape(eras[i].narrow));
  3974. }
  3975. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  3976. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  3977. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  3978. this._erasNarrowRegex = new RegExp(
  3979. '^(' + narrowPieces.join('|') + ')',
  3980. 'i'
  3981. );
  3982. }
  3983. // FORMATTING
  3984. addFormatToken(0, ['gg', 2], 0, function () {
  3985. return this.weekYear() % 100;
  3986. });
  3987. addFormatToken(0, ['GG', 2], 0, function () {
  3988. return this.isoWeekYear() % 100;
  3989. });
  3990. function addWeekYearFormatToken(token, getter) {
  3991. addFormatToken(0, [token, token.length], 0, getter);
  3992. }
  3993. addWeekYearFormatToken('gggg', 'weekYear');
  3994. addWeekYearFormatToken('ggggg', 'weekYear');
  3995. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  3996. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  3997. // ALIASES
  3998. addUnitAlias('weekYear', 'gg');
  3999. addUnitAlias('isoWeekYear', 'GG');
  4000. // PRIORITY
  4001. addUnitPriority('weekYear', 1);
  4002. addUnitPriority('isoWeekYear', 1);
  4003. // PARSING
  4004. addRegexToken('G', matchSigned);
  4005. addRegexToken('g', matchSigned);
  4006. addRegexToken('GG', match1to2, match2);
  4007. addRegexToken('gg', match1to2, match2);
  4008. addRegexToken('GGGG', match1to4, match4);
  4009. addRegexToken('gggg', match1to4, match4);
  4010. addRegexToken('GGGGG', match1to6, match6);
  4011. addRegexToken('ggggg', match1to6, match6);
  4012. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
  4013. input,
  4014. week,
  4015. config,
  4016. token
  4017. ) {
  4018. week[token.substr(0, 2)] = toInt(input);
  4019. });
  4020. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  4021. week[token] = hooks.parseTwoDigitYear(input);
  4022. });
  4023. // MOMENTS
  4024. function getSetWeekYear(input) {
  4025. return getSetWeekYearHelper.call(
  4026. this,
  4027. input,
  4028. this.week(),
  4029. this.weekday(),
  4030. this.localeData()._week.dow,
  4031. this.localeData()._week.doy
  4032. );
  4033. }
  4034. function getSetISOWeekYear(input) {
  4035. return getSetWeekYearHelper.call(
  4036. this,
  4037. input,
  4038. this.isoWeek(),
  4039. this.isoWeekday(),
  4040. 1,
  4041. 4
  4042. );
  4043. }
  4044. function getISOWeeksInYear() {
  4045. return weeksInYear(this.year(), 1, 4);
  4046. }
  4047. function getISOWeeksInISOWeekYear() {
  4048. return weeksInYear(this.isoWeekYear(), 1, 4);
  4049. }
  4050. function getWeeksInYear() {
  4051. var weekInfo = this.localeData()._week;
  4052. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  4053. }
  4054. function getWeeksInWeekYear() {
  4055. var weekInfo = this.localeData()._week;
  4056. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  4057. }
  4058. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  4059. var weeksTarget;
  4060. if (input == null) {
  4061. return weekOfYear(this, dow, doy).year;
  4062. } else {
  4063. weeksTarget = weeksInYear(input, dow, doy);
  4064. if (week > weeksTarget) {
  4065. week = weeksTarget;
  4066. }
  4067. return setWeekAll.call(this, input, week, weekday, dow, doy);
  4068. }
  4069. }
  4070. function setWeekAll(weekYear, week, weekday, dow, doy) {
  4071. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  4072. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  4073. this.year(date.getUTCFullYear());
  4074. this.month(date.getUTCMonth());
  4075. this.date(date.getUTCDate());
  4076. return this;
  4077. }
  4078. // FORMATTING
  4079. addFormatToken('Q', 0, 'Qo', 'quarter');
  4080. // ALIASES
  4081. addUnitAlias('quarter', 'Q');
  4082. // PRIORITY
  4083. addUnitPriority('quarter', 7);
  4084. // PARSING
  4085. addRegexToken('Q', match1);
  4086. addParseToken('Q', function (input, array) {
  4087. array[MONTH] = (toInt(input) - 1) * 3;
  4088. });
  4089. // MOMENTS
  4090. function getSetQuarter(input) {
  4091. return input == null
  4092. ? Math.ceil((this.month() + 1) / 3)
  4093. : this.month((input - 1) * 3 + (this.month() % 3));
  4094. }
  4095. // FORMATTING
  4096. addFormatToken('D', ['DD', 2], 'Do', 'date');
  4097. // ALIASES
  4098. addUnitAlias('date', 'D');
  4099. // PRIORITY
  4100. addUnitPriority('date', 9);
  4101. // PARSING
  4102. addRegexToken('D', match1to2);
  4103. addRegexToken('DD', match1to2, match2);
  4104. addRegexToken('Do', function (isStrict, locale) {
  4105. // TODO: Remove "ordinalParse" fallback in next major release.
  4106. return isStrict
  4107. ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
  4108. : locale._dayOfMonthOrdinalParseLenient;
  4109. });
  4110. addParseToken(['D', 'DD'], DATE);
  4111. addParseToken('Do', function (input, array) {
  4112. array[DATE] = toInt(input.match(match1to2)[0]);
  4113. });
  4114. // MOMENTS
  4115. var getSetDayOfMonth = makeGetSet('Date', true);
  4116. // FORMATTING
  4117. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  4118. // ALIASES
  4119. addUnitAlias('dayOfYear', 'DDD');
  4120. // PRIORITY
  4121. addUnitPriority('dayOfYear', 4);
  4122. // PARSING
  4123. addRegexToken('DDD', match1to3);
  4124. addRegexToken('DDDD', match3);
  4125. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  4126. config._dayOfYear = toInt(input);
  4127. });
  4128. // HELPERS
  4129. // MOMENTS
  4130. function getSetDayOfYear(input) {
  4131. var dayOfYear =
  4132. Math.round(
  4133. (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
  4134. ) + 1;
  4135. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  4136. }
  4137. // FORMATTING
  4138. addFormatToken('m', ['mm', 2], 0, 'minute');
  4139. // ALIASES
  4140. addUnitAlias('minute', 'm');
  4141. // PRIORITY
  4142. addUnitPriority('minute', 14);
  4143. // PARSING
  4144. addRegexToken('m', match1to2);
  4145. addRegexToken('mm', match1to2, match2);
  4146. addParseToken(['m', 'mm'], MINUTE);
  4147. // MOMENTS
  4148. var getSetMinute = makeGetSet('Minutes', false);
  4149. // FORMATTING
  4150. addFormatToken('s', ['ss', 2], 0, 'second');
  4151. // ALIASES
  4152. addUnitAlias('second', 's');
  4153. // PRIORITY
  4154. addUnitPriority('second', 15);
  4155. // PARSING
  4156. addRegexToken('s', match1to2);
  4157. addRegexToken('ss', match1to2, match2);
  4158. addParseToken(['s', 'ss'], SECOND);
  4159. // MOMENTS
  4160. var getSetSecond = makeGetSet('Seconds', false);
  4161. // FORMATTING
  4162. addFormatToken('S', 0, 0, function () {
  4163. return ~~(this.millisecond() / 100);
  4164. });
  4165. addFormatToken(0, ['SS', 2], 0, function () {
  4166. return ~~(this.millisecond() / 10);
  4167. });
  4168. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  4169. addFormatToken(0, ['SSSS', 4], 0, function () {
  4170. return this.millisecond() * 10;
  4171. });
  4172. addFormatToken(0, ['SSSSS', 5], 0, function () {
  4173. return this.millisecond() * 100;
  4174. });
  4175. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  4176. return this.millisecond() * 1000;
  4177. });
  4178. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  4179. return this.millisecond() * 10000;
  4180. });
  4181. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  4182. return this.millisecond() * 100000;
  4183. });
  4184. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  4185. return this.millisecond() * 1000000;
  4186. });
  4187. // ALIASES
  4188. addUnitAlias('millisecond', 'ms');
  4189. // PRIORITY
  4190. addUnitPriority('millisecond', 16);
  4191. // PARSING
  4192. addRegexToken('S', match1to3, match1);
  4193. addRegexToken('SS', match1to3, match2);
  4194. addRegexToken('SSS', match1to3, match3);
  4195. var token, getSetMillisecond;
  4196. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  4197. addRegexToken(token, matchUnsigned);
  4198. }
  4199. function parseMs(input, array) {
  4200. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  4201. }
  4202. for (token = 'S'; token.length <= 9; token += 'S') {
  4203. addParseToken(token, parseMs);
  4204. }
  4205. getSetMillisecond = makeGetSet('Milliseconds', false);
  4206. // FORMATTING
  4207. addFormatToken('z', 0, 0, 'zoneAbbr');
  4208. addFormatToken('zz', 0, 0, 'zoneName');
  4209. // MOMENTS
  4210. function getZoneAbbr() {
  4211. return this._isUTC ? 'UTC' : '';
  4212. }
  4213. function getZoneName() {
  4214. return this._isUTC ? 'Coordinated Universal Time' : '';
  4215. }
  4216. var proto = Moment.prototype;
  4217. proto.add = add;
  4218. proto.calendar = calendar$1;
  4219. proto.clone = clone;
  4220. proto.diff = diff;
  4221. proto.endOf = endOf;
  4222. proto.format = format;
  4223. proto.from = from;
  4224. proto.fromNow = fromNow;
  4225. proto.to = to;
  4226. proto.toNow = toNow;
  4227. proto.get = stringGet;
  4228. proto.invalidAt = invalidAt;
  4229. proto.isAfter = isAfter;
  4230. proto.isBefore = isBefore;
  4231. proto.isBetween = isBetween;
  4232. proto.isSame = isSame;
  4233. proto.isSameOrAfter = isSameOrAfter;
  4234. proto.isSameOrBefore = isSameOrBefore;
  4235. proto.isValid = isValid$2;
  4236. proto.lang = lang;
  4237. proto.locale = locale;
  4238. proto.localeData = localeData;
  4239. proto.max = prototypeMax;
  4240. proto.min = prototypeMin;
  4241. proto.parsingFlags = parsingFlags;
  4242. proto.set = stringSet;
  4243. proto.startOf = startOf;
  4244. proto.subtract = subtract;
  4245. proto.toArray = toArray;
  4246. proto.toObject = toObject;
  4247. proto.toDate = toDate;
  4248. proto.toISOString = toISOString;
  4249. proto.inspect = inspect;
  4250. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  4251. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  4252. return 'Moment<' + this.format() + '>';
  4253. };
  4254. }
  4255. proto.toJSON = toJSON;
  4256. proto.toString = toString;
  4257. proto.unix = unix;
  4258. proto.valueOf = valueOf;
  4259. proto.creationData = creationData;
  4260. proto.eraName = getEraName;
  4261. proto.eraNarrow = getEraNarrow;
  4262. proto.eraAbbr = getEraAbbr;
  4263. proto.eraYear = getEraYear;
  4264. proto.year = getSetYear;
  4265. proto.isLeapYear = getIsLeapYear;
  4266. proto.weekYear = getSetWeekYear;
  4267. proto.isoWeekYear = getSetISOWeekYear;
  4268. proto.quarter = proto.quarters = getSetQuarter;
  4269. proto.month = getSetMonth;
  4270. proto.daysInMonth = getDaysInMonth;
  4271. proto.week = proto.weeks = getSetWeek;
  4272. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  4273. proto.weeksInYear = getWeeksInYear;
  4274. proto.weeksInWeekYear = getWeeksInWeekYear;
  4275. proto.isoWeeksInYear = getISOWeeksInYear;
  4276. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  4277. proto.date = getSetDayOfMonth;
  4278. proto.day = proto.days = getSetDayOfWeek;
  4279. proto.weekday = getSetLocaleDayOfWeek;
  4280. proto.isoWeekday = getSetISODayOfWeek;
  4281. proto.dayOfYear = getSetDayOfYear;
  4282. proto.hour = proto.hours = getSetHour;
  4283. proto.minute = proto.minutes = getSetMinute;
  4284. proto.second = proto.seconds = getSetSecond;
  4285. proto.millisecond = proto.milliseconds = getSetMillisecond;
  4286. proto.utcOffset = getSetOffset;
  4287. proto.utc = setOffsetToUTC;
  4288. proto.local = setOffsetToLocal;
  4289. proto.parseZone = setOffsetToParsedOffset;
  4290. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  4291. proto.isDST = isDaylightSavingTime;
  4292. proto.isLocal = isLocal;
  4293. proto.isUtcOffset = isUtcOffset;
  4294. proto.isUtc = isUtc;
  4295. proto.isUTC = isUtc;
  4296. proto.zoneAbbr = getZoneAbbr;
  4297. proto.zoneName = getZoneName;
  4298. proto.dates = deprecate(
  4299. 'dates accessor is deprecated. Use date instead.',
  4300. getSetDayOfMonth
  4301. );
  4302. proto.months = deprecate(
  4303. 'months accessor is deprecated. Use month instead',
  4304. getSetMonth
  4305. );
  4306. proto.years = deprecate(
  4307. 'years accessor is deprecated. Use year instead',
  4308. getSetYear
  4309. );
  4310. proto.zone = deprecate(
  4311. 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
  4312. getSetZone
  4313. );
  4314. proto.isDSTShifted = deprecate(
  4315. 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
  4316. isDaylightSavingTimeShifted
  4317. );
  4318. function createUnix(input) {
  4319. return createLocal(input * 1000);
  4320. }
  4321. function createInZone() {
  4322. return createLocal.apply(null, arguments).parseZone();
  4323. }
  4324. function preParsePostFormat(string) {
  4325. return string;
  4326. }
  4327. var proto$1 = Locale.prototype;
  4328. proto$1.calendar = calendar;
  4329. proto$1.longDateFormat = longDateFormat;
  4330. proto$1.invalidDate = invalidDate;
  4331. proto$1.ordinal = ordinal;
  4332. proto$1.preparse = preParsePostFormat;
  4333. proto$1.postformat = preParsePostFormat;
  4334. proto$1.relativeTime = relativeTime;
  4335. proto$1.pastFuture = pastFuture;
  4336. proto$1.set = set;
  4337. proto$1.eras = localeEras;
  4338. proto$1.erasParse = localeErasParse;
  4339. proto$1.erasConvertYear = localeErasConvertYear;
  4340. proto$1.erasAbbrRegex = erasAbbrRegex;
  4341. proto$1.erasNameRegex = erasNameRegex;
  4342. proto$1.erasNarrowRegex = erasNarrowRegex;
  4343. proto$1.months = localeMonths;
  4344. proto$1.monthsShort = localeMonthsShort;
  4345. proto$1.monthsParse = localeMonthsParse;
  4346. proto$1.monthsRegex = monthsRegex;
  4347. proto$1.monthsShortRegex = monthsShortRegex;
  4348. proto$1.week = localeWeek;
  4349. proto$1.firstDayOfYear = localeFirstDayOfYear;
  4350. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  4351. proto$1.weekdays = localeWeekdays;
  4352. proto$1.weekdaysMin = localeWeekdaysMin;
  4353. proto$1.weekdaysShort = localeWeekdaysShort;
  4354. proto$1.weekdaysParse = localeWeekdaysParse;
  4355. proto$1.weekdaysRegex = weekdaysRegex;
  4356. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  4357. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  4358. proto$1.isPM = localeIsPM;
  4359. proto$1.meridiem = localeMeridiem;
  4360. function get$1(format, index, field, setter) {
  4361. var locale = getLocale(),
  4362. utc = createUTC().set(setter, index);
  4363. return locale[field](utc, format);
  4364. }
  4365. function listMonthsImpl(format, index, field) {
  4366. if (isNumber(format)) {
  4367. index = format;
  4368. format = undefined;
  4369. }
  4370. format = format || '';
  4371. if (index != null) {
  4372. return get$1(format, index, field, 'month');
  4373. }
  4374. var i,
  4375. out = [];
  4376. for (i = 0; i < 12; i++) {
  4377. out[i] = get$1(format, i, field, 'month');
  4378. }
  4379. return out;
  4380. }
  4381. // ()
  4382. // (5)
  4383. // (fmt, 5)
  4384. // (fmt)
  4385. // (true)
  4386. // (true, 5)
  4387. // (true, fmt, 5)
  4388. // (true, fmt)
  4389. function listWeekdaysImpl(localeSorted, format, index, field) {
  4390. if (typeof localeSorted === 'boolean') {
  4391. if (isNumber(format)) {
  4392. index = format;
  4393. format = undefined;
  4394. }
  4395. format = format || '';
  4396. } else {
  4397. format = localeSorted;
  4398. index = format;
  4399. localeSorted = false;
  4400. if (isNumber(format)) {
  4401. index = format;
  4402. format = undefined;
  4403. }
  4404. format = format || '';
  4405. }
  4406. var locale = getLocale(),
  4407. shift = localeSorted ? locale._week.dow : 0,
  4408. i,
  4409. out = [];
  4410. if (index != null) {
  4411. return get$1(format, (index + shift) % 7, field, 'day');
  4412. }
  4413. for (i = 0; i < 7; i++) {
  4414. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  4415. }
  4416. return out;
  4417. }
  4418. function listMonths(format, index) {
  4419. return listMonthsImpl(format, index, 'months');
  4420. }
  4421. function listMonthsShort(format, index) {
  4422. return listMonthsImpl(format, index, 'monthsShort');
  4423. }
  4424. function listWeekdays(localeSorted, format, index) {
  4425. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  4426. }
  4427. function listWeekdaysShort(localeSorted, format, index) {
  4428. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  4429. }
  4430. function listWeekdaysMin(localeSorted, format, index) {
  4431. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  4432. }
  4433. getSetGlobalLocale('en', {
  4434. eras: [
  4435. {
  4436. since: '0001-01-01',
  4437. until: +Infinity,
  4438. offset: 1,
  4439. name: 'Anno Domini',
  4440. narrow: 'AD',
  4441. abbr: 'AD',
  4442. },
  4443. {
  4444. since: '0000-12-31',
  4445. until: -Infinity,
  4446. offset: 1,
  4447. name: 'Before Christ',
  4448. narrow: 'BC',
  4449. abbr: 'BC',
  4450. },
  4451. ],
  4452. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  4453. ordinal: function (number) {
  4454. var b = number % 10,
  4455. output =
  4456. toInt((number % 100) / 10) === 1
  4457. ? 'th'
  4458. : b === 1
  4459. ? 'st'
  4460. : b === 2
  4461. ? 'nd'
  4462. : b === 3
  4463. ? 'rd'
  4464. : 'th';
  4465. return number + output;
  4466. },
  4467. });
  4468. // Side effect imports
  4469. hooks.lang = deprecate(
  4470. 'moment.lang is deprecated. Use moment.locale instead.',
  4471. getSetGlobalLocale
  4472. );
  4473. hooks.langData = deprecate(
  4474. 'moment.langData is deprecated. Use moment.localeData instead.',
  4475. getLocale
  4476. );
  4477. var mathAbs = Math.abs;
  4478. function abs() {
  4479. var data = this._data;
  4480. this._milliseconds = mathAbs(this._milliseconds);
  4481. this._days = mathAbs(this._days);
  4482. this._months = mathAbs(this._months);
  4483. data.milliseconds = mathAbs(data.milliseconds);
  4484. data.seconds = mathAbs(data.seconds);
  4485. data.minutes = mathAbs(data.minutes);
  4486. data.hours = mathAbs(data.hours);
  4487. data.months = mathAbs(data.months);
  4488. data.years = mathAbs(data.years);
  4489. return this;
  4490. }
  4491. function addSubtract$1(duration, input, value, direction) {
  4492. var other = createDuration(input, value);
  4493. duration._milliseconds += direction * other._milliseconds;
  4494. duration._days += direction * other._days;
  4495. duration._months += direction * other._months;
  4496. return duration._bubble();
  4497. }
  4498. // supports only 2.0-style add(1, 's') or add(duration)
  4499. function add$1(input, value) {
  4500. return addSubtract$1(this, input, value, 1);
  4501. }
  4502. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  4503. function subtract$1(input, value) {
  4504. return addSubtract$1(this, input, value, -1);
  4505. }
  4506. function absCeil(number) {
  4507. if (number < 0) {
  4508. return Math.floor(number);
  4509. } else {
  4510. return Math.ceil(number);
  4511. }
  4512. }
  4513. function bubble() {
  4514. var milliseconds = this._milliseconds,
  4515. days = this._days,
  4516. months = this._months,
  4517. data = this._data,
  4518. seconds,
  4519. minutes,
  4520. hours,
  4521. years,
  4522. monthsFromDays;
  4523. // if we have a mix of positive and negative values, bubble down first
  4524. // check: https://github.com/moment/moment/issues/2166
  4525. if (
  4526. !(
  4527. (milliseconds >= 0 && days >= 0 && months >= 0) ||
  4528. (milliseconds <= 0 && days <= 0 && months <= 0)
  4529. )
  4530. ) {
  4531. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  4532. days = 0;
  4533. months = 0;
  4534. }
  4535. // The following code bubbles up values, see the tests for
  4536. // examples of what that means.
  4537. data.milliseconds = milliseconds % 1000;
  4538. seconds = absFloor(milliseconds / 1000);
  4539. data.seconds = seconds % 60;
  4540. minutes = absFloor(seconds / 60);
  4541. data.minutes = minutes % 60;
  4542. hours = absFloor(minutes / 60);
  4543. data.hours = hours % 24;
  4544. days += absFloor(hours / 24);
  4545. // convert days to months
  4546. monthsFromDays = absFloor(daysToMonths(days));
  4547. months += monthsFromDays;
  4548. days -= absCeil(monthsToDays(monthsFromDays));
  4549. // 12 months -> 1 year
  4550. years = absFloor(months / 12);
  4551. months %= 12;
  4552. data.days = days;
  4553. data.months = months;
  4554. data.years = years;
  4555. return this;
  4556. }
  4557. function daysToMonths(days) {
  4558. // 400 years have 146097 days (taking into account leap year rules)
  4559. // 400 years have 12 months === 4800
  4560. return (days * 4800) / 146097;
  4561. }
  4562. function monthsToDays(months) {
  4563. // the reverse of daysToMonths
  4564. return (months * 146097) / 4800;
  4565. }
  4566. function as(units) {
  4567. if (!this.isValid()) {
  4568. return NaN;
  4569. }
  4570. var days,
  4571. months,
  4572. milliseconds = this._milliseconds;
  4573. units = normalizeUnits(units);
  4574. if (units === 'month' || units === 'quarter' || units === 'year') {
  4575. days = this._days + milliseconds / 864e5;
  4576. months = this._months + daysToMonths(days);
  4577. switch (units) {
  4578. case 'month':
  4579. return months;
  4580. case 'quarter':
  4581. return months / 3;
  4582. case 'year':
  4583. return months / 12;
  4584. }
  4585. } else {
  4586. // handle milliseconds separately because of floating point math errors (issue #1867)
  4587. days = this._days + Math.round(monthsToDays(this._months));
  4588. switch (units) {
  4589. case 'week':
  4590. return days / 7 + milliseconds / 6048e5;
  4591. case 'day':
  4592. return days + milliseconds / 864e5;
  4593. case 'hour':
  4594. return days * 24 + milliseconds / 36e5;
  4595. case 'minute':
  4596. return days * 1440 + milliseconds / 6e4;
  4597. case 'second':
  4598. return days * 86400 + milliseconds / 1000;
  4599. // Math.floor prevents floating point math errors here
  4600. case 'millisecond':
  4601. return Math.floor(days * 864e5) + milliseconds;
  4602. default:
  4603. throw new Error('Unknown unit ' + units);
  4604. }
  4605. }
  4606. }
  4607. // TODO: Use this.as('ms')?
  4608. function valueOf$1() {
  4609. if (!this.isValid()) {
  4610. return NaN;
  4611. }
  4612. return (
  4613. this._milliseconds +
  4614. this._days * 864e5 +
  4615. (this._months % 12) * 2592e6 +
  4616. toInt(this._months / 12) * 31536e6
  4617. );
  4618. }
  4619. function makeAs(alias) {
  4620. return function () {
  4621. return this.as(alias);
  4622. };
  4623. }
  4624. var asMilliseconds = makeAs('ms'),
  4625. asSeconds = makeAs('s'),
  4626. asMinutes = makeAs('m'),
  4627. asHours = makeAs('h'),
  4628. asDays = makeAs('d'),
  4629. asWeeks = makeAs('w'),
  4630. asMonths = makeAs('M'),
  4631. asQuarters = makeAs('Q'),
  4632. asYears = makeAs('y');
  4633. function clone$1() {
  4634. return createDuration(this);
  4635. }
  4636. function get$2(units) {
  4637. units = normalizeUnits(units);
  4638. return this.isValid() ? this[units + 's']() : NaN;
  4639. }
  4640. function makeGetter(name) {
  4641. return function () {
  4642. return this.isValid() ? this._data[name] : NaN;
  4643. };
  4644. }
  4645. var milliseconds = makeGetter('milliseconds'),
  4646. seconds = makeGetter('seconds'),
  4647. minutes = makeGetter('minutes'),
  4648. hours = makeGetter('hours'),
  4649. days = makeGetter('days'),
  4650. months = makeGetter('months'),
  4651. years = makeGetter('years');
  4652. function weeks() {
  4653. return absFloor(this.days() / 7);
  4654. }
  4655. var round = Math.round,
  4656. thresholds = {
  4657. ss: 44, // a few seconds to seconds
  4658. s: 45, // seconds to minute
  4659. m: 45, // minutes to hour
  4660. h: 22, // hours to day
  4661. d: 26, // days to month/week
  4662. w: null, // weeks to month
  4663. M: 11, // months to year
  4664. };
  4665. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  4666. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  4667. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  4668. }
  4669. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  4670. var duration = createDuration(posNegDuration).abs(),
  4671. seconds = round(duration.as('s')),
  4672. minutes = round(duration.as('m')),
  4673. hours = round(duration.as('h')),
  4674. days = round(duration.as('d')),
  4675. months = round(duration.as('M')),
  4676. weeks = round(duration.as('w')),
  4677. years = round(duration.as('y')),
  4678. a =
  4679. (seconds <= thresholds.ss && ['s', seconds]) ||
  4680. (seconds < thresholds.s && ['ss', seconds]) ||
  4681. (minutes <= 1 && ['m']) ||
  4682. (minutes < thresholds.m && ['mm', minutes]) ||
  4683. (hours <= 1 && ['h']) ||
  4684. (hours < thresholds.h && ['hh', hours]) ||
  4685. (days <= 1 && ['d']) ||
  4686. (days < thresholds.d && ['dd', days]);
  4687. if (thresholds.w != null) {
  4688. a =
  4689. a ||
  4690. (weeks <= 1 && ['w']) ||
  4691. (weeks < thresholds.w && ['ww', weeks]);
  4692. }
  4693. a = a ||
  4694. (months <= 1 && ['M']) ||
  4695. (months < thresholds.M && ['MM', months]) ||
  4696. (years <= 1 && ['y']) || ['yy', years];
  4697. a[2] = withoutSuffix;
  4698. a[3] = +posNegDuration > 0;
  4699. a[4] = locale;
  4700. return substituteTimeAgo.apply(null, a);
  4701. }
  4702. // This function allows you to set the rounding function for relative time strings
  4703. function getSetRelativeTimeRounding(roundingFunction) {
  4704. if (roundingFunction === undefined) {
  4705. return round;
  4706. }
  4707. if (typeof roundingFunction === 'function') {
  4708. round = roundingFunction;
  4709. return true;
  4710. }
  4711. return false;
  4712. }
  4713. // This function allows you to set a threshold for relative time strings
  4714. function getSetRelativeTimeThreshold(threshold, limit) {
  4715. if (thresholds[threshold] === undefined) {
  4716. return false;
  4717. }
  4718. if (limit === undefined) {
  4719. return thresholds[threshold];
  4720. }
  4721. thresholds[threshold] = limit;
  4722. if (threshold === 's') {
  4723. thresholds.ss = limit - 1;
  4724. }
  4725. return true;
  4726. }
  4727. function humanize(argWithSuffix, argThresholds) {
  4728. if (!this.isValid()) {
  4729. return this.localeData().invalidDate();
  4730. }
  4731. var withSuffix = false,
  4732. th = thresholds,
  4733. locale,
  4734. output;
  4735. if (typeof argWithSuffix === 'object') {
  4736. argThresholds = argWithSuffix;
  4737. argWithSuffix = false;
  4738. }
  4739. if (typeof argWithSuffix === 'boolean') {
  4740. withSuffix = argWithSuffix;
  4741. }
  4742. if (typeof argThresholds === 'object') {
  4743. th = Object.assign({}, thresholds, argThresholds);
  4744. if (argThresholds.s != null && argThresholds.ss == null) {
  4745. th.ss = argThresholds.s - 1;
  4746. }
  4747. }
  4748. locale = this.localeData();
  4749. output = relativeTime$1(this, !withSuffix, th, locale);
  4750. if (withSuffix) {
  4751. output = locale.pastFuture(+this, output);
  4752. }
  4753. return locale.postformat(output);
  4754. }
  4755. var abs$1 = Math.abs;
  4756. function sign(x) {
  4757. return (x > 0) - (x < 0) || +x;
  4758. }
  4759. function toISOString$1() {
  4760. // for ISO strings we do not use the normal bubbling rules:
  4761. // * milliseconds bubble up until they become hours
  4762. // * days do not bubble at all
  4763. // * months bubble up until they become years
  4764. // This is because there is no context-free conversion between hours and days
  4765. // (think of clock changes)
  4766. // and also not between days and months (28-31 days per month)
  4767. if (!this.isValid()) {
  4768. return this.localeData().invalidDate();
  4769. }
  4770. var seconds = abs$1(this._milliseconds) / 1000,
  4771. days = abs$1(this._days),
  4772. months = abs$1(this._months),
  4773. minutes,
  4774. hours,
  4775. years,
  4776. s,
  4777. total = this.asSeconds(),
  4778. totalSign,
  4779. ymSign,
  4780. daysSign,
  4781. hmsSign;
  4782. if (!total) {
  4783. // this is the same as C#'s (Noda) and python (isodate)...
  4784. // but not other JS (goog.date)
  4785. return 'P0D';
  4786. }
  4787. // 3600 seconds -> 60 minutes -> 1 hour
  4788. minutes = absFloor(seconds / 60);
  4789. hours = absFloor(minutes / 60);
  4790. seconds %= 60;
  4791. minutes %= 60;
  4792. // 12 months -> 1 year
  4793. years = absFloor(months / 12);
  4794. months %= 12;
  4795. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  4796. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  4797. totalSign = total < 0 ? '-' : '';
  4798. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  4799. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  4800. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  4801. return (
  4802. totalSign +
  4803. 'P' +
  4804. (years ? ymSign + years + 'Y' : '') +
  4805. (months ? ymSign + months + 'M' : '') +
  4806. (days ? daysSign + days + 'D' : '') +
  4807. (hours || minutes || seconds ? 'T' : '') +
  4808. (hours ? hmsSign + hours + 'H' : '') +
  4809. (minutes ? hmsSign + minutes + 'M' : '') +
  4810. (seconds ? hmsSign + s + 'S' : '')
  4811. );
  4812. }
  4813. var proto$2 = Duration.prototype;
  4814. proto$2.isValid = isValid$1;
  4815. proto$2.abs = abs;
  4816. proto$2.add = add$1;
  4817. proto$2.subtract = subtract$1;
  4818. proto$2.as = as;
  4819. proto$2.asMilliseconds = asMilliseconds;
  4820. proto$2.asSeconds = asSeconds;
  4821. proto$2.asMinutes = asMinutes;
  4822. proto$2.asHours = asHours;
  4823. proto$2.asDays = asDays;
  4824. proto$2.asWeeks = asWeeks;
  4825. proto$2.asMonths = asMonths;
  4826. proto$2.asQuarters = asQuarters;
  4827. proto$2.asYears = asYears;
  4828. proto$2.valueOf = valueOf$1;
  4829. proto$2._bubble = bubble;
  4830. proto$2.clone = clone$1;
  4831. proto$2.get = get$2;
  4832. proto$2.milliseconds = milliseconds;
  4833. proto$2.seconds = seconds;
  4834. proto$2.minutes = minutes;
  4835. proto$2.hours = hours;
  4836. proto$2.days = days;
  4837. proto$2.weeks = weeks;
  4838. proto$2.months = months;
  4839. proto$2.years = years;
  4840. proto$2.humanize = humanize;
  4841. proto$2.toISOString = toISOString$1;
  4842. proto$2.toString = toISOString$1;
  4843. proto$2.toJSON = toISOString$1;
  4844. proto$2.locale = locale;
  4845. proto$2.localeData = localeData;
  4846. proto$2.toIsoString = deprecate(
  4847. 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
  4848. toISOString$1
  4849. );
  4850. proto$2.lang = lang;
  4851. // FORMATTING
  4852. addFormatToken('X', 0, 0, 'unix');
  4853. addFormatToken('x', 0, 0, 'valueOf');
  4854. // PARSING
  4855. addRegexToken('x', matchSigned);
  4856. addRegexToken('X', matchTimestamp);
  4857. addParseToken('X', function (input, array, config) {
  4858. config._d = new Date(parseFloat(input) * 1000);
  4859. });
  4860. addParseToken('x', function (input, array, config) {
  4861. config._d = new Date(toInt(input));
  4862. });
  4863. //! moment.js
  4864. hooks.version = '2.27.0';
  4865. setHookCallback(createLocal);
  4866. hooks.fn = proto;
  4867. hooks.min = min;
  4868. hooks.max = max;
  4869. hooks.now = now;
  4870. hooks.utc = createUTC;
  4871. hooks.unix = createUnix;
  4872. hooks.months = listMonths;
  4873. hooks.isDate = isDate;
  4874. hooks.locale = getSetGlobalLocale;
  4875. hooks.invalid = createInvalid;
  4876. hooks.duration = createDuration;
  4877. hooks.isMoment = isMoment;
  4878. hooks.weekdays = listWeekdays;
  4879. hooks.parseZone = createInZone;
  4880. hooks.localeData = getLocale;
  4881. hooks.isDuration = isDuration;
  4882. hooks.monthsShort = listMonthsShort;
  4883. hooks.weekdaysMin = listWeekdaysMin;
  4884. hooks.defineLocale = defineLocale;
  4885. hooks.updateLocale = updateLocale;
  4886. hooks.locales = listLocales;
  4887. hooks.weekdaysShort = listWeekdaysShort;
  4888. hooks.normalizeUnits = normalizeUnits;
  4889. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  4890. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  4891. hooks.calendarFormat = getCalendarFormat;
  4892. hooks.prototype = proto;
  4893. // currently HTML5 input type only supports 24-hour formats
  4894. hooks.HTML5_FMT = {
  4895. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  4896. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  4897. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  4898. DATE: 'YYYY-MM-DD', // <input type="date" />
  4899. TIME: 'HH:mm', // <input type="time" />
  4900. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  4901. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  4902. WEEK: 'GGGG-[W]WW', // <input type="week" />
  4903. MONTH: 'YYYY-MM', // <input type="month" />
  4904. };
  4905. //! moment.js locale configuration
  4906. hooks.defineLocale('af', {
  4907. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
  4908. '_'
  4909. ),
  4910. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  4911. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
  4912. '_'
  4913. ),
  4914. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  4915. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  4916. meridiemParse: /vm|nm/i,
  4917. isPM: function (input) {
  4918. return /^nm$/i.test(input);
  4919. },
  4920. meridiem: function (hours, minutes, isLower) {
  4921. if (hours < 12) {
  4922. return isLower ? 'vm' : 'VM';
  4923. } else {
  4924. return isLower ? 'nm' : 'NM';
  4925. }
  4926. },
  4927. longDateFormat: {
  4928. LT: 'HH:mm',
  4929. LTS: 'HH:mm:ss',
  4930. L: 'DD/MM/YYYY',
  4931. LL: 'D MMMM YYYY',
  4932. LLL: 'D MMMM YYYY HH:mm',
  4933. LLLL: 'dddd, D MMMM YYYY HH:mm',
  4934. },
  4935. calendar: {
  4936. sameDay: '[Vandag om] LT',
  4937. nextDay: '[Môre om] LT',
  4938. nextWeek: 'dddd [om] LT',
  4939. lastDay: '[Gister om] LT',
  4940. lastWeek: '[Laas] dddd [om] LT',
  4941. sameElse: 'L',
  4942. },
  4943. relativeTime: {
  4944. future: 'oor %s',
  4945. past: '%s gelede',
  4946. s: "'n paar sekondes",
  4947. ss: '%d sekondes',
  4948. m: "'n minuut",
  4949. mm: '%d minute',
  4950. h: "'n uur",
  4951. hh: '%d ure',
  4952. d: "'n dag",
  4953. dd: '%d dae',
  4954. M: "'n maand",
  4955. MM: '%d maande',
  4956. y: "'n jaar",
  4957. yy: '%d jaar',
  4958. },
  4959. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  4960. ordinal: function (number) {
  4961. return (
  4962. number +
  4963. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  4964. ); // Thanks to Joris Röling : https://github.com/jjupiter
  4965. },
  4966. week: {
  4967. dow: 1, // Maandag is die eerste dag van die week.
  4968. doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  4969. },
  4970. });
  4971. //! moment.js locale configuration
  4972. var pluralForm = function (n) {
  4973. return n === 0
  4974. ? 0
  4975. : n === 1
  4976. ? 1
  4977. : n === 2
  4978. ? 2
  4979. : n % 100 >= 3 && n % 100 <= 10
  4980. ? 3
  4981. : n % 100 >= 11
  4982. ? 4
  4983. : 5;
  4984. },
  4985. plurals = {
  4986. s: [
  4987. 'أقل من ثانية',
  4988. 'ثانية واحدة',
  4989. ['ثانيتان', 'ثانيتين'],
  4990. '%d ثوان',
  4991. '%d ثانية',
  4992. '%d ثانية',
  4993. ],
  4994. m: [
  4995. 'أقل من دقيقة',
  4996. 'دقيقة واحدة',
  4997. ['دقيقتان', 'دقيقتين'],
  4998. '%d دقائق',
  4999. '%d دقيقة',
  5000. '%d دقيقة',
  5001. ],
  5002. h: [
  5003. 'أقل من ساعة',
  5004. 'ساعة واحدة',
  5005. ['ساعتان', 'ساعتين'],
  5006. '%d ساعات',
  5007. '%d ساعة',
  5008. '%d ساعة',
  5009. ],
  5010. d: [
  5011. 'أقل من يوم',
  5012. 'يوم واحد',
  5013. ['يومان', 'يومين'],
  5014. '%d أيام',
  5015. '%d يومًا',
  5016. '%d يوم',
  5017. ],
  5018. M: [
  5019. 'أقل من شهر',
  5020. 'شهر واحد',
  5021. ['شهران', 'شهرين'],
  5022. '%d أشهر',
  5023. '%d شهرا',
  5024. '%d شهر',
  5025. ],
  5026. y: [
  5027. 'أقل من عام',
  5028. 'عام واحد',
  5029. ['عامان', 'عامين'],
  5030. '%d أعوام',
  5031. '%d عامًا',
  5032. '%d عام',
  5033. ],
  5034. },
  5035. pluralize = function (u) {
  5036. return function (number, withoutSuffix, string, isFuture) {
  5037. var f = pluralForm(number),
  5038. str = plurals[u][pluralForm(number)];
  5039. if (f === 2) {
  5040. str = str[withoutSuffix ? 0 : 1];
  5041. }
  5042. return str.replace(/%d/i, number);
  5043. };
  5044. },
  5045. months$1 = [
  5046. 'جانفي',
  5047. 'فيفري',
  5048. 'مارس',
  5049. 'أفريل',
  5050. 'ماي',
  5051. 'جوان',
  5052. 'جويلية',
  5053. 'أوت',
  5054. 'سبتمبر',
  5055. 'أكتوبر',
  5056. 'نوفمبر',
  5057. 'ديسمبر',
  5058. ];
  5059. hooks.defineLocale('ar-dz', {
  5060. months: months$1,
  5061. monthsShort: months$1,
  5062. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5063. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5064. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5065. weekdaysParseExact: true,
  5066. longDateFormat: {
  5067. LT: 'HH:mm',
  5068. LTS: 'HH:mm:ss',
  5069. L: 'D/\u200FM/\u200FYYYY',
  5070. LL: 'D MMMM YYYY',
  5071. LLL: 'D MMMM YYYY HH:mm',
  5072. LLLL: 'dddd D MMMM YYYY HH:mm',
  5073. },
  5074. meridiemParse: /ص|م/,
  5075. isPM: function (input) {
  5076. return 'م' === input;
  5077. },
  5078. meridiem: function (hour, minute, isLower) {
  5079. if (hour < 12) {
  5080. return 'ص';
  5081. } else {
  5082. return 'م';
  5083. }
  5084. },
  5085. calendar: {
  5086. sameDay: '[اليوم عند الساعة] LT',
  5087. nextDay: '[غدًا عند الساعة] LT',
  5088. nextWeek: 'dddd [عند الساعة] LT',
  5089. lastDay: '[أمس عند الساعة] LT',
  5090. lastWeek: 'dddd [عند الساعة] LT',
  5091. sameElse: 'L',
  5092. },
  5093. relativeTime: {
  5094. future: 'بعد %s',
  5095. past: 'منذ %s',
  5096. s: pluralize('s'),
  5097. ss: pluralize('s'),
  5098. m: pluralize('m'),
  5099. mm: pluralize('m'),
  5100. h: pluralize('h'),
  5101. hh: pluralize('h'),
  5102. d: pluralize('d'),
  5103. dd: pluralize('d'),
  5104. M: pluralize('M'),
  5105. MM: pluralize('M'),
  5106. y: pluralize('y'),
  5107. yy: pluralize('y'),
  5108. },
  5109. postformat: function (string) {
  5110. return string.replace(/,/g, '،');
  5111. },
  5112. week: {
  5113. dow: 0, // Sunday is the first day of the week.
  5114. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5115. },
  5116. });
  5117. //! moment.js locale configuration
  5118. hooks.defineLocale('ar-kw', {
  5119. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5120. '_'
  5121. ),
  5122. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5123. '_'
  5124. ),
  5125. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5126. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5127. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5128. weekdaysParseExact: true,
  5129. longDateFormat: {
  5130. LT: 'HH:mm',
  5131. LTS: 'HH:mm:ss',
  5132. L: 'DD/MM/YYYY',
  5133. LL: 'D MMMM YYYY',
  5134. LLL: 'D MMMM YYYY HH:mm',
  5135. LLLL: 'dddd D MMMM YYYY HH:mm',
  5136. },
  5137. calendar: {
  5138. sameDay: '[اليوم على الساعة] LT',
  5139. nextDay: '[غدا على الساعة] LT',
  5140. nextWeek: 'dddd [على الساعة] LT',
  5141. lastDay: '[أمس على الساعة] LT',
  5142. lastWeek: 'dddd [على الساعة] LT',
  5143. sameElse: 'L',
  5144. },
  5145. relativeTime: {
  5146. future: 'في %s',
  5147. past: 'منذ %s',
  5148. s: 'ثوان',
  5149. ss: '%d ثانية',
  5150. m: 'دقيقة',
  5151. mm: '%d دقائق',
  5152. h: 'ساعة',
  5153. hh: '%d ساعات',
  5154. d: 'يوم',
  5155. dd: '%d أيام',
  5156. M: 'شهر',
  5157. MM: '%d أشهر',
  5158. y: 'سنة',
  5159. yy: '%d سنوات',
  5160. },
  5161. week: {
  5162. dow: 0, // Sunday is the first day of the week.
  5163. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5164. },
  5165. });
  5166. //! moment.js locale configuration
  5167. var symbolMap = {
  5168. '1': '1',
  5169. '2': '2',
  5170. '3': '3',
  5171. '4': '4',
  5172. '5': '5',
  5173. '6': '6',
  5174. '7': '7',
  5175. '8': '8',
  5176. '9': '9',
  5177. '0': '0',
  5178. },
  5179. pluralForm$1 = function (n) {
  5180. return n === 0
  5181. ? 0
  5182. : n === 1
  5183. ? 1
  5184. : n === 2
  5185. ? 2
  5186. : n % 100 >= 3 && n % 100 <= 10
  5187. ? 3
  5188. : n % 100 >= 11
  5189. ? 4
  5190. : 5;
  5191. },
  5192. plurals$1 = {
  5193. s: [
  5194. 'أقل من ثانية',
  5195. 'ثانية واحدة',
  5196. ['ثانيتان', 'ثانيتين'],
  5197. '%d ثوان',
  5198. '%d ثانية',
  5199. '%d ثانية',
  5200. ],
  5201. m: [
  5202. 'أقل من دقيقة',
  5203. 'دقيقة واحدة',
  5204. ['دقيقتان', 'دقيقتين'],
  5205. '%d دقائق',
  5206. '%d دقيقة',
  5207. '%d دقيقة',
  5208. ],
  5209. h: [
  5210. 'أقل من ساعة',
  5211. 'ساعة واحدة',
  5212. ['ساعتان', 'ساعتين'],
  5213. '%d ساعات',
  5214. '%d ساعة',
  5215. '%d ساعة',
  5216. ],
  5217. d: [
  5218. 'أقل من يوم',
  5219. 'يوم واحد',
  5220. ['يومان', 'يومين'],
  5221. '%d أيام',
  5222. '%d يومًا',
  5223. '%d يوم',
  5224. ],
  5225. M: [
  5226. 'أقل من شهر',
  5227. 'شهر واحد',
  5228. ['شهران', 'شهرين'],
  5229. '%d أشهر',
  5230. '%d شهرا',
  5231. '%d شهر',
  5232. ],
  5233. y: [
  5234. 'أقل من عام',
  5235. 'عام واحد',
  5236. ['عامان', 'عامين'],
  5237. '%d أعوام',
  5238. '%d عامًا',
  5239. '%d عام',
  5240. ],
  5241. },
  5242. pluralize$1 = function (u) {
  5243. return function (number, withoutSuffix, string, isFuture) {
  5244. var f = pluralForm$1(number),
  5245. str = plurals$1[u][pluralForm$1(number)];
  5246. if (f === 2) {
  5247. str = str[withoutSuffix ? 0 : 1];
  5248. }
  5249. return str.replace(/%d/i, number);
  5250. };
  5251. },
  5252. months$2 = [
  5253. 'يناير',
  5254. 'فبراير',
  5255. 'مارس',
  5256. 'أبريل',
  5257. 'مايو',
  5258. 'يونيو',
  5259. 'يوليو',
  5260. 'أغسطس',
  5261. 'سبتمبر',
  5262. 'أكتوبر',
  5263. 'نوفمبر',
  5264. 'ديسمبر',
  5265. ];
  5266. hooks.defineLocale('ar-ly', {
  5267. months: months$2,
  5268. monthsShort: months$2,
  5269. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5270. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5271. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5272. weekdaysParseExact: true,
  5273. longDateFormat: {
  5274. LT: 'HH:mm',
  5275. LTS: 'HH:mm:ss',
  5276. L: 'D/\u200FM/\u200FYYYY',
  5277. LL: 'D MMMM YYYY',
  5278. LLL: 'D MMMM YYYY HH:mm',
  5279. LLLL: 'dddd D MMMM YYYY HH:mm',
  5280. },
  5281. meridiemParse: /ص|م/,
  5282. isPM: function (input) {
  5283. return 'م' === input;
  5284. },
  5285. meridiem: function (hour, minute, isLower) {
  5286. if (hour < 12) {
  5287. return 'ص';
  5288. } else {
  5289. return 'م';
  5290. }
  5291. },
  5292. calendar: {
  5293. sameDay: '[اليوم عند الساعة] LT',
  5294. nextDay: '[غدًا عند الساعة] LT',
  5295. nextWeek: 'dddd [عند الساعة] LT',
  5296. lastDay: '[أمس عند الساعة] LT',
  5297. lastWeek: 'dddd [عند الساعة] LT',
  5298. sameElse: 'L',
  5299. },
  5300. relativeTime: {
  5301. future: 'بعد %s',
  5302. past: 'منذ %s',
  5303. s: pluralize$1('s'),
  5304. ss: pluralize$1('s'),
  5305. m: pluralize$1('m'),
  5306. mm: pluralize$1('m'),
  5307. h: pluralize$1('h'),
  5308. hh: pluralize$1('h'),
  5309. d: pluralize$1('d'),
  5310. dd: pluralize$1('d'),
  5311. M: pluralize$1('M'),
  5312. MM: pluralize$1('M'),
  5313. y: pluralize$1('y'),
  5314. yy: pluralize$1('y'),
  5315. },
  5316. preparse: function (string) {
  5317. return string.replace(/،/g, ',');
  5318. },
  5319. postformat: function (string) {
  5320. return string
  5321. .replace(/\d/g, function (match) {
  5322. return symbolMap[match];
  5323. })
  5324. .replace(/,/g, '،');
  5325. },
  5326. week: {
  5327. dow: 6, // Saturday is the first day of the week.
  5328. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5329. },
  5330. });
  5331. //! moment.js locale configuration
  5332. hooks.defineLocale('ar-ma', {
  5333. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5334. '_'
  5335. ),
  5336. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5337. '_'
  5338. ),
  5339. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5340. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5341. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5342. weekdaysParseExact: true,
  5343. longDateFormat: {
  5344. LT: 'HH:mm',
  5345. LTS: 'HH:mm:ss',
  5346. L: 'DD/MM/YYYY',
  5347. LL: 'D MMMM YYYY',
  5348. LLL: 'D MMMM YYYY HH:mm',
  5349. LLLL: 'dddd D MMMM YYYY HH:mm',
  5350. },
  5351. calendar: {
  5352. sameDay: '[اليوم على الساعة] LT',
  5353. nextDay: '[غدا على الساعة] LT',
  5354. nextWeek: 'dddd [على الساعة] LT',
  5355. lastDay: '[أمس على الساعة] LT',
  5356. lastWeek: 'dddd [على الساعة] LT',
  5357. sameElse: 'L',
  5358. },
  5359. relativeTime: {
  5360. future: 'في %s',
  5361. past: 'منذ %s',
  5362. s: 'ثوان',
  5363. ss: '%d ثانية',
  5364. m: 'دقيقة',
  5365. mm: '%d دقائق',
  5366. h: 'ساعة',
  5367. hh: '%d ساعات',
  5368. d: 'يوم',
  5369. dd: '%d أيام',
  5370. M: 'شهر',
  5371. MM: '%d أشهر',
  5372. y: 'سنة',
  5373. yy: '%d سنوات',
  5374. },
  5375. week: {
  5376. dow: 6, // Saturday is the first day of the week.
  5377. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5378. },
  5379. });
  5380. //! moment.js locale configuration
  5381. var symbolMap$1 = {
  5382. '1': '١',
  5383. '2': '٢',
  5384. '3': '٣',
  5385. '4': '٤',
  5386. '5': '٥',
  5387. '6': '٦',
  5388. '7': '٧',
  5389. '8': '٨',
  5390. '9': '٩',
  5391. '0': '٠',
  5392. },
  5393. numberMap = {
  5394. '١': '1',
  5395. '٢': '2',
  5396. '٣': '3',
  5397. '٤': '4',
  5398. '٥': '5',
  5399. '٦': '6',
  5400. '٧': '7',
  5401. '٨': '8',
  5402. '٩': '9',
  5403. '٠': '0',
  5404. };
  5405. hooks.defineLocale('ar-sa', {
  5406. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5407. '_'
  5408. ),
  5409. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5410. '_'
  5411. ),
  5412. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5413. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5414. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5415. weekdaysParseExact: true,
  5416. longDateFormat: {
  5417. LT: 'HH:mm',
  5418. LTS: 'HH:mm:ss',
  5419. L: 'DD/MM/YYYY',
  5420. LL: 'D MMMM YYYY',
  5421. LLL: 'D MMMM YYYY HH:mm',
  5422. LLLL: 'dddd D MMMM YYYY HH:mm',
  5423. },
  5424. meridiemParse: /ص|م/,
  5425. isPM: function (input) {
  5426. return 'م' === input;
  5427. },
  5428. meridiem: function (hour, minute, isLower) {
  5429. if (hour < 12) {
  5430. return 'ص';
  5431. } else {
  5432. return 'م';
  5433. }
  5434. },
  5435. calendar: {
  5436. sameDay: '[اليوم على الساعة] LT',
  5437. nextDay: '[غدا على الساعة] LT',
  5438. nextWeek: 'dddd [على الساعة] LT',
  5439. lastDay: '[أمس على الساعة] LT',
  5440. lastWeek: 'dddd [على الساعة] LT',
  5441. sameElse: 'L',
  5442. },
  5443. relativeTime: {
  5444. future: 'في %s',
  5445. past: 'منذ %s',
  5446. s: 'ثوان',
  5447. ss: '%d ثانية',
  5448. m: 'دقيقة',
  5449. mm: '%d دقائق',
  5450. h: 'ساعة',
  5451. hh: '%d ساعات',
  5452. d: 'يوم',
  5453. dd: '%d أيام',
  5454. M: 'شهر',
  5455. MM: '%d أشهر',
  5456. y: 'سنة',
  5457. yy: '%d سنوات',
  5458. },
  5459. preparse: function (string) {
  5460. return string
  5461. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5462. return numberMap[match];
  5463. })
  5464. .replace(/،/g, ',');
  5465. },
  5466. postformat: function (string) {
  5467. return string
  5468. .replace(/\d/g, function (match) {
  5469. return symbolMap$1[match];
  5470. })
  5471. .replace(/,/g, '،');
  5472. },
  5473. week: {
  5474. dow: 0, // Sunday is the first day of the week.
  5475. doy: 6, // The week that contains Jan 6th is the first week of the year.
  5476. },
  5477. });
  5478. //! moment.js locale configuration
  5479. hooks.defineLocale('ar-tn', {
  5480. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5481. '_'
  5482. ),
  5483. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5484. '_'
  5485. ),
  5486. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5487. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5488. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5489. weekdaysParseExact: true,
  5490. longDateFormat: {
  5491. LT: 'HH:mm',
  5492. LTS: 'HH:mm:ss',
  5493. L: 'DD/MM/YYYY',
  5494. LL: 'D MMMM YYYY',
  5495. LLL: 'D MMMM YYYY HH:mm',
  5496. LLLL: 'dddd D MMMM YYYY HH:mm',
  5497. },
  5498. calendar: {
  5499. sameDay: '[اليوم على الساعة] LT',
  5500. nextDay: '[غدا على الساعة] LT',
  5501. nextWeek: 'dddd [على الساعة] LT',
  5502. lastDay: '[أمس على الساعة] LT',
  5503. lastWeek: 'dddd [على الساعة] LT',
  5504. sameElse: 'L',
  5505. },
  5506. relativeTime: {
  5507. future: 'في %s',
  5508. past: 'منذ %s',
  5509. s: 'ثوان',
  5510. ss: '%d ثانية',
  5511. m: 'دقيقة',
  5512. mm: '%d دقائق',
  5513. h: 'ساعة',
  5514. hh: '%d ساعات',
  5515. d: 'يوم',
  5516. dd: '%d أيام',
  5517. M: 'شهر',
  5518. MM: '%d أشهر',
  5519. y: 'سنة',
  5520. yy: '%d سنوات',
  5521. },
  5522. week: {
  5523. dow: 1, // Monday is the first day of the week.
  5524. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5525. },
  5526. });
  5527. //! moment.js locale configuration
  5528. var symbolMap$2 = {
  5529. '1': '١',
  5530. '2': '٢',
  5531. '3': '٣',
  5532. '4': '٤',
  5533. '5': '٥',
  5534. '6': '٦',
  5535. '7': '٧',
  5536. '8': '٨',
  5537. '9': '٩',
  5538. '0': '٠',
  5539. },
  5540. numberMap$1 = {
  5541. '١': '1',
  5542. '٢': '2',
  5543. '٣': '3',
  5544. '٤': '4',
  5545. '٥': '5',
  5546. '٦': '6',
  5547. '٧': '7',
  5548. '٨': '8',
  5549. '٩': '9',
  5550. '٠': '0',
  5551. },
  5552. pluralForm$2 = function (n) {
  5553. return n === 0
  5554. ? 0
  5555. : n === 1
  5556. ? 1
  5557. : n === 2
  5558. ? 2
  5559. : n % 100 >= 3 && n % 100 <= 10
  5560. ? 3
  5561. : n % 100 >= 11
  5562. ? 4
  5563. : 5;
  5564. },
  5565. plurals$2 = {
  5566. s: [
  5567. 'أقل من ثانية',
  5568. 'ثانية واحدة',
  5569. ['ثانيتان', 'ثانيتين'],
  5570. '%d ثوان',
  5571. '%d ثانية',
  5572. '%d ثانية',
  5573. ],
  5574. m: [
  5575. 'أقل من دقيقة',
  5576. 'دقيقة واحدة',
  5577. ['دقيقتان', 'دقيقتين'],
  5578. '%d دقائق',
  5579. '%d دقيقة',
  5580. '%d دقيقة',
  5581. ],
  5582. h: [
  5583. 'أقل من ساعة',
  5584. 'ساعة واحدة',
  5585. ['ساعتان', 'ساعتين'],
  5586. '%d ساعات',
  5587. '%d ساعة',
  5588. '%d ساعة',
  5589. ],
  5590. d: [
  5591. 'أقل من يوم',
  5592. 'يوم واحد',
  5593. ['يومان', 'يومين'],
  5594. '%d أيام',
  5595. '%d يومًا',
  5596. '%d يوم',
  5597. ],
  5598. M: [
  5599. 'أقل من شهر',
  5600. 'شهر واحد',
  5601. ['شهران', 'شهرين'],
  5602. '%d أشهر',
  5603. '%d شهرا',
  5604. '%d شهر',
  5605. ],
  5606. y: [
  5607. 'أقل من عام',
  5608. 'عام واحد',
  5609. ['عامان', 'عامين'],
  5610. '%d أعوام',
  5611. '%d عامًا',
  5612. '%d عام',
  5613. ],
  5614. },
  5615. pluralize$2 = function (u) {
  5616. return function (number, withoutSuffix, string, isFuture) {
  5617. var f = pluralForm$2(number),
  5618. str = plurals$2[u][pluralForm$2(number)];
  5619. if (f === 2) {
  5620. str = str[withoutSuffix ? 0 : 1];
  5621. }
  5622. return str.replace(/%d/i, number);
  5623. };
  5624. },
  5625. months$3 = [
  5626. 'يناير',
  5627. 'فبراير',
  5628. 'مارس',
  5629. 'أبريل',
  5630. 'مايو',
  5631. 'يونيو',
  5632. 'يوليو',
  5633. 'أغسطس',
  5634. 'سبتمبر',
  5635. 'أكتوبر',
  5636. 'نوفمبر',
  5637. 'ديسمبر',
  5638. ];
  5639. hooks.defineLocale('ar', {
  5640. months: months$3,
  5641. monthsShort: months$3,
  5642. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5643. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5644. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5645. weekdaysParseExact: true,
  5646. longDateFormat: {
  5647. LT: 'HH:mm',
  5648. LTS: 'HH:mm:ss',
  5649. L: 'D/\u200FM/\u200FYYYY',
  5650. LL: 'D MMMM YYYY',
  5651. LLL: 'D MMMM YYYY HH:mm',
  5652. LLLL: 'dddd D MMMM YYYY HH:mm',
  5653. },
  5654. meridiemParse: /ص|م/,
  5655. isPM: function (input) {
  5656. return 'م' === input;
  5657. },
  5658. meridiem: function (hour, minute, isLower) {
  5659. if (hour < 12) {
  5660. return 'ص';
  5661. } else {
  5662. return 'م';
  5663. }
  5664. },
  5665. calendar: {
  5666. sameDay: '[اليوم عند الساعة] LT',
  5667. nextDay: '[غدًا عند الساعة] LT',
  5668. nextWeek: 'dddd [عند الساعة] LT',
  5669. lastDay: '[أمس عند الساعة] LT',
  5670. lastWeek: 'dddd [عند الساعة] LT',
  5671. sameElse: 'L',
  5672. },
  5673. relativeTime: {
  5674. future: 'بعد %s',
  5675. past: 'منذ %s',
  5676. s: pluralize$2('s'),
  5677. ss: pluralize$2('s'),
  5678. m: pluralize$2('m'),
  5679. mm: pluralize$2('m'),
  5680. h: pluralize$2('h'),
  5681. hh: pluralize$2('h'),
  5682. d: pluralize$2('d'),
  5683. dd: pluralize$2('d'),
  5684. M: pluralize$2('M'),
  5685. MM: pluralize$2('M'),
  5686. y: pluralize$2('y'),
  5687. yy: pluralize$2('y'),
  5688. },
  5689. preparse: function (string) {
  5690. return string
  5691. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5692. return numberMap$1[match];
  5693. })
  5694. .replace(/،/g, ',');
  5695. },
  5696. postformat: function (string) {
  5697. return string
  5698. .replace(/\d/g, function (match) {
  5699. return symbolMap$2[match];
  5700. })
  5701. .replace(/,/g, '،');
  5702. },
  5703. week: {
  5704. dow: 6, // Saturday is the first day of the week.
  5705. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5706. },
  5707. });
  5708. //! moment.js locale configuration
  5709. var suffixes = {
  5710. 1: '-inci',
  5711. 5: '-inci',
  5712. 8: '-inci',
  5713. 70: '-inci',
  5714. 80: '-inci',
  5715. 2: '-nci',
  5716. 7: '-nci',
  5717. 20: '-nci',
  5718. 50: '-nci',
  5719. 3: '-üncü',
  5720. 4: '-üncü',
  5721. 100: '-üncü',
  5722. 6: '-ncı',
  5723. 9: '-uncu',
  5724. 10: '-uncu',
  5725. 30: '-uncu',
  5726. 60: '-ıncı',
  5727. 90: '-ıncı',
  5728. };
  5729. hooks.defineLocale('az', {
  5730. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
  5731. '_'
  5732. ),
  5733. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  5734. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
  5735. '_'
  5736. ),
  5737. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  5738. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  5739. weekdaysParseExact: true,
  5740. longDateFormat: {
  5741. LT: 'HH:mm',
  5742. LTS: 'HH:mm:ss',
  5743. L: 'DD.MM.YYYY',
  5744. LL: 'D MMMM YYYY',
  5745. LLL: 'D MMMM YYYY HH:mm',
  5746. LLLL: 'dddd, D MMMM YYYY HH:mm',
  5747. },
  5748. calendar: {
  5749. sameDay: '[bugün saat] LT',
  5750. nextDay: '[sabah saat] LT',
  5751. nextWeek: '[gələn həftə] dddd [saat] LT',
  5752. lastDay: '[dünən] LT',
  5753. lastWeek: '[keçən həftə] dddd [saat] LT',
  5754. sameElse: 'L',
  5755. },
  5756. relativeTime: {
  5757. future: '%s sonra',
  5758. past: '%s əvvəl',
  5759. s: 'birneçə saniyə',
  5760. ss: '%d saniyə',
  5761. m: 'bir dəqiqə',
  5762. mm: '%d dəqiqə',
  5763. h: 'bir saat',
  5764. hh: '%d saat',
  5765. d: 'bir gün',
  5766. dd: '%d gün',
  5767. M: 'bir ay',
  5768. MM: '%d ay',
  5769. y: 'bir il',
  5770. yy: '%d il',
  5771. },
  5772. meridiemParse: /gecə|səhər|gündüz|axşam/,
  5773. isPM: function (input) {
  5774. return /^(gündüz|axşam)$/.test(input);
  5775. },
  5776. meridiem: function (hour, minute, isLower) {
  5777. if (hour < 4) {
  5778. return 'gecə';
  5779. } else if (hour < 12) {
  5780. return 'səhər';
  5781. } else if (hour < 17) {
  5782. return 'gündüz';
  5783. } else {
  5784. return 'axşam';
  5785. }
  5786. },
  5787. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  5788. ordinal: function (number) {
  5789. if (number === 0) {
  5790. // special case for zero
  5791. return number + '-ıncı';
  5792. }
  5793. var a = number % 10,
  5794. b = (number % 100) - a,
  5795. c = number >= 100 ? 100 : null;
  5796. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  5797. },
  5798. week: {
  5799. dow: 1, // Monday is the first day of the week.
  5800. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5801. },
  5802. });
  5803. //! moment.js locale configuration
  5804. function plural(word, num) {
  5805. var forms = word.split('_');
  5806. return num % 10 === 1 && num % 100 !== 11
  5807. ? forms[0]
  5808. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  5809. ? forms[1]
  5810. : forms[2];
  5811. }
  5812. function relativeTimeWithPlural(number, withoutSuffix, key) {
  5813. var format = {
  5814. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  5815. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  5816. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  5817. dd: 'дзень_дні_дзён',
  5818. MM: 'месяц_месяцы_месяцаў',
  5819. yy: 'год_гады_гадоў',
  5820. };
  5821. if (key === 'm') {
  5822. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  5823. } else if (key === 'h') {
  5824. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  5825. } else {
  5826. return number + ' ' + plural(format[key], +number);
  5827. }
  5828. }
  5829. hooks.defineLocale('be', {
  5830. months: {
  5831. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
  5832. '_'
  5833. ),
  5834. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
  5835. '_'
  5836. ),
  5837. },
  5838. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
  5839. '_'
  5840. ),
  5841. weekdays: {
  5842. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
  5843. '_'
  5844. ),
  5845. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
  5846. '_'
  5847. ),
  5848. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
  5849. },
  5850. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5851. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5852. longDateFormat: {
  5853. LT: 'HH:mm',
  5854. LTS: 'HH:mm:ss',
  5855. L: 'DD.MM.YYYY',
  5856. LL: 'D MMMM YYYY г.',
  5857. LLL: 'D MMMM YYYY г., HH:mm',
  5858. LLLL: 'dddd, D MMMM YYYY г., HH:mm',
  5859. },
  5860. calendar: {
  5861. sameDay: '[Сёння ў] LT',
  5862. nextDay: '[Заўтра ў] LT',
  5863. lastDay: '[Учора ў] LT',
  5864. nextWeek: function () {
  5865. return '[У] dddd [ў] LT';
  5866. },
  5867. lastWeek: function () {
  5868. switch (this.day()) {
  5869. case 0:
  5870. case 3:
  5871. case 5:
  5872. case 6:
  5873. return '[У мінулую] dddd [ў] LT';
  5874. case 1:
  5875. case 2:
  5876. case 4:
  5877. return '[У мінулы] dddd [ў] LT';
  5878. }
  5879. },
  5880. sameElse: 'L',
  5881. },
  5882. relativeTime: {
  5883. future: 'праз %s',
  5884. past: '%s таму',
  5885. s: 'некалькі секунд',
  5886. m: relativeTimeWithPlural,
  5887. mm: relativeTimeWithPlural,
  5888. h: relativeTimeWithPlural,
  5889. hh: relativeTimeWithPlural,
  5890. d: 'дзень',
  5891. dd: relativeTimeWithPlural,
  5892. M: 'месяц',
  5893. MM: relativeTimeWithPlural,
  5894. y: 'год',
  5895. yy: relativeTimeWithPlural,
  5896. },
  5897. meridiemParse: /ночы|раніцы|дня|вечара/,
  5898. isPM: function (input) {
  5899. return /^(дня|вечара)$/.test(input);
  5900. },
  5901. meridiem: function (hour, minute, isLower) {
  5902. if (hour < 4) {
  5903. return 'ночы';
  5904. } else if (hour < 12) {
  5905. return 'раніцы';
  5906. } else if (hour < 17) {
  5907. return 'дня';
  5908. } else {
  5909. return 'вечара';
  5910. }
  5911. },
  5912. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  5913. ordinal: function (number, period) {
  5914. switch (period) {
  5915. case 'M':
  5916. case 'd':
  5917. case 'DDD':
  5918. case 'w':
  5919. case 'W':
  5920. return (number % 10 === 2 || number % 10 === 3) &&
  5921. number % 100 !== 12 &&
  5922. number % 100 !== 13
  5923. ? number + '-і'
  5924. : number + '-ы';
  5925. case 'D':
  5926. return number + '-га';
  5927. default:
  5928. return number;
  5929. }
  5930. },
  5931. week: {
  5932. dow: 1, // Monday is the first day of the week.
  5933. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5934. },
  5935. });
  5936. //! moment.js locale configuration
  5937. hooks.defineLocale('bg', {
  5938. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
  5939. '_'
  5940. ),
  5941. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  5942. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
  5943. '_'
  5944. ),
  5945. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  5946. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  5947. longDateFormat: {
  5948. LT: 'H:mm',
  5949. LTS: 'H:mm:ss',
  5950. L: 'D.MM.YYYY',
  5951. LL: 'D MMMM YYYY',
  5952. LLL: 'D MMMM YYYY H:mm',
  5953. LLLL: 'dddd, D MMMM YYYY H:mm',
  5954. },
  5955. calendar: {
  5956. sameDay: '[Днес в] LT',
  5957. nextDay: '[Утре в] LT',
  5958. nextWeek: 'dddd [в] LT',
  5959. lastDay: '[Вчера в] LT',
  5960. lastWeek: function () {
  5961. switch (this.day()) {
  5962. case 0:
  5963. case 3:
  5964. case 6:
  5965. return '[Миналата] dddd [в] LT';
  5966. case 1:
  5967. case 2:
  5968. case 4:
  5969. case 5:
  5970. return '[Миналия] dddd [в] LT';
  5971. }
  5972. },
  5973. sameElse: 'L',
  5974. },
  5975. relativeTime: {
  5976. future: 'след %s',
  5977. past: 'преди %s',
  5978. s: 'няколко секунди',
  5979. ss: '%d секунди',
  5980. m: 'минута',
  5981. mm: '%d минути',
  5982. h: 'час',
  5983. hh: '%d часа',
  5984. d: 'ден',
  5985. dd: '%d дена',
  5986. M: 'месец',
  5987. MM: '%d месеца',
  5988. y: 'година',
  5989. yy: '%d години',
  5990. },
  5991. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  5992. ordinal: function (number) {
  5993. var lastDigit = number % 10,
  5994. last2Digits = number % 100;
  5995. if (number === 0) {
  5996. return number + '-ев';
  5997. } else if (last2Digits === 0) {
  5998. return number + '-ен';
  5999. } else if (last2Digits > 10 && last2Digits < 20) {
  6000. return number + '-ти';
  6001. } else if (lastDigit === 1) {
  6002. return number + '-ви';
  6003. } else if (lastDigit === 2) {
  6004. return number + '-ри';
  6005. } else if (lastDigit === 7 || lastDigit === 8) {
  6006. return number + '-ми';
  6007. } else {
  6008. return number + '-ти';
  6009. }
  6010. },
  6011. week: {
  6012. dow: 1, // Monday is the first day of the week.
  6013. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6014. },
  6015. });
  6016. //! moment.js locale configuration
  6017. hooks.defineLocale('bm', {
  6018. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
  6019. '_'
  6020. ),
  6021. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  6022. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  6023. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  6024. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  6025. longDateFormat: {
  6026. LT: 'HH:mm',
  6027. LTS: 'HH:mm:ss',
  6028. L: 'DD/MM/YYYY',
  6029. LL: 'MMMM [tile] D [san] YYYY',
  6030. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6031. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6032. },
  6033. calendar: {
  6034. sameDay: '[Bi lɛrɛ] LT',
  6035. nextDay: '[Sini lɛrɛ] LT',
  6036. nextWeek: 'dddd [don lɛrɛ] LT',
  6037. lastDay: '[Kunu lɛrɛ] LT',
  6038. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  6039. sameElse: 'L',
  6040. },
  6041. relativeTime: {
  6042. future: '%s kɔnɔ',
  6043. past: 'a bɛ %s bɔ',
  6044. s: 'sanga dama dama',
  6045. ss: 'sekondi %d',
  6046. m: 'miniti kelen',
  6047. mm: 'miniti %d',
  6048. h: 'lɛrɛ kelen',
  6049. hh: 'lɛrɛ %d',
  6050. d: 'tile kelen',
  6051. dd: 'tile %d',
  6052. M: 'kalo kelen',
  6053. MM: 'kalo %d',
  6054. y: 'san kelen',
  6055. yy: 'san %d',
  6056. },
  6057. week: {
  6058. dow: 1, // Monday is the first day of the week.
  6059. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6060. },
  6061. });
  6062. //! moment.js locale configuration
  6063. var symbolMap$3 = {
  6064. '1': '১',
  6065. '2': '২',
  6066. '3': '৩',
  6067. '4': '৪',
  6068. '5': '৫',
  6069. '6': '৬',
  6070. '7': '৭',
  6071. '8': '৮',
  6072. '9': '৯',
  6073. '0': '০',
  6074. },
  6075. numberMap$2 = {
  6076. '১': '1',
  6077. '২': '2',
  6078. '৩': '3',
  6079. '৪': '4',
  6080. '৫': '5',
  6081. '৬': '6',
  6082. '৭': '7',
  6083. '৮': '8',
  6084. '৯': '9',
  6085. '০': '0',
  6086. };
  6087. hooks.defineLocale('bn', {
  6088. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6089. '_'
  6090. ),
  6091. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6092. '_'
  6093. ),
  6094. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6095. '_'
  6096. ),
  6097. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6098. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6099. longDateFormat: {
  6100. LT: 'A h:mm সময়',
  6101. LTS: 'A h:mm:ss সময়',
  6102. L: 'DD/MM/YYYY',
  6103. LL: 'D MMMM YYYY',
  6104. LLL: 'D MMMM YYYY, A h:mm সময়',
  6105. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6106. },
  6107. calendar: {
  6108. sameDay: '[আজ] LT',
  6109. nextDay: '[আগামীকাল] LT',
  6110. nextWeek: 'dddd, LT',
  6111. lastDay: '[গতকাল] LT',
  6112. lastWeek: '[গত] dddd, LT',
  6113. sameElse: 'L',
  6114. },
  6115. relativeTime: {
  6116. future: '%s পরে',
  6117. past: '%s আগে',
  6118. s: 'কয়েক সেকেন্ড',
  6119. ss: '%d সেকেন্ড',
  6120. m: 'এক মিনিট',
  6121. mm: '%d মিনিট',
  6122. h: 'এক ঘন্টা',
  6123. hh: '%d ঘন্টা',
  6124. d: 'এক দিন',
  6125. dd: '%d দিন',
  6126. M: 'এক মাস',
  6127. MM: '%d মাস',
  6128. y: 'এক বছর',
  6129. yy: '%d বছর',
  6130. },
  6131. preparse: function (string) {
  6132. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6133. return numberMap$2[match];
  6134. });
  6135. },
  6136. postformat: function (string) {
  6137. return string.replace(/\d/g, function (match) {
  6138. return symbolMap$3[match];
  6139. });
  6140. },
  6141. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  6142. meridiemHour: function (hour, meridiem) {
  6143. if (hour === 12) {
  6144. hour = 0;
  6145. }
  6146. if (
  6147. (meridiem === 'রাত' && hour >= 4) ||
  6148. (meridiem === 'দুপুর' && hour < 5) ||
  6149. meridiem === 'বিকাল'
  6150. ) {
  6151. return hour + 12;
  6152. } else {
  6153. return hour;
  6154. }
  6155. },
  6156. meridiem: function (hour, minute, isLower) {
  6157. if (hour < 4) {
  6158. return 'রাত';
  6159. } else if (hour < 10) {
  6160. return 'সকাল';
  6161. } else if (hour < 17) {
  6162. return 'দুপুর';
  6163. } else if (hour < 20) {
  6164. return 'বিকাল';
  6165. } else {
  6166. return 'রাত';
  6167. }
  6168. },
  6169. week: {
  6170. dow: 0, // Sunday is the first day of the week.
  6171. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6172. },
  6173. });
  6174. //! moment.js locale configuration
  6175. var symbolMap$4 = {
  6176. '1': '༡',
  6177. '2': '༢',
  6178. '3': '༣',
  6179. '4': '༤',
  6180. '5': '༥',
  6181. '6': '༦',
  6182. '7': '༧',
  6183. '8': '༨',
  6184. '9': '༩',
  6185. '0': '༠',
  6186. },
  6187. numberMap$3 = {
  6188. '༡': '1',
  6189. '༢': '2',
  6190. '༣': '3',
  6191. '༤': '4',
  6192. '༥': '5',
  6193. '༦': '6',
  6194. '༧': '7',
  6195. '༨': '8',
  6196. '༩': '9',
  6197. '༠': '0',
  6198. };
  6199. hooks.defineLocale('bo', {
  6200. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  6201. '_'
  6202. ),
  6203. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  6204. '_'
  6205. ),
  6206. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  6207. monthsParseExact: true,
  6208. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  6209. '_'
  6210. ),
  6211. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  6212. '_'
  6213. ),
  6214. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  6215. longDateFormat: {
  6216. LT: 'A h:mm',
  6217. LTS: 'A h:mm:ss',
  6218. L: 'DD/MM/YYYY',
  6219. LL: 'D MMMM YYYY',
  6220. LLL: 'D MMMM YYYY, A h:mm',
  6221. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  6222. },
  6223. calendar: {
  6224. sameDay: '[དི་རིང] LT',
  6225. nextDay: '[སང་ཉིན] LT',
  6226. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  6227. lastDay: '[ཁ་སང] LT',
  6228. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  6229. sameElse: 'L',
  6230. },
  6231. relativeTime: {
  6232. future: '%s ལ་',
  6233. past: '%s སྔན་ལ',
  6234. s: 'ལམ་སང',
  6235. ss: '%d སྐར་ཆ།',
  6236. m: 'སྐར་མ་གཅིག',
  6237. mm: '%d སྐར་མ',
  6238. h: 'ཆུ་ཚོད་གཅིག',
  6239. hh: '%d ཆུ་ཚོད',
  6240. d: 'ཉིན་གཅིག',
  6241. dd: '%d ཉིན་',
  6242. M: 'ཟླ་བ་གཅིག',
  6243. MM: '%d ཟླ་བ',
  6244. y: 'ལོ་གཅིག',
  6245. yy: '%d ལོ',
  6246. },
  6247. preparse: function (string) {
  6248. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  6249. return numberMap$3[match];
  6250. });
  6251. },
  6252. postformat: function (string) {
  6253. return string.replace(/\d/g, function (match) {
  6254. return symbolMap$4[match];
  6255. });
  6256. },
  6257. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  6258. meridiemHour: function (hour, meridiem) {
  6259. if (hour === 12) {
  6260. hour = 0;
  6261. }
  6262. if (
  6263. (meridiem === 'མཚན་མོ' && hour >= 4) ||
  6264. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  6265. meridiem === 'དགོང་དག'
  6266. ) {
  6267. return hour + 12;
  6268. } else {
  6269. return hour;
  6270. }
  6271. },
  6272. meridiem: function (hour, minute, isLower) {
  6273. if (hour < 4) {
  6274. return 'མཚན་མོ';
  6275. } else if (hour < 10) {
  6276. return 'ཞོགས་ཀས';
  6277. } else if (hour < 17) {
  6278. return 'ཉིན་གུང';
  6279. } else if (hour < 20) {
  6280. return 'དགོང་དག';
  6281. } else {
  6282. return 'མཚན་མོ';
  6283. }
  6284. },
  6285. week: {
  6286. dow: 0, // Sunday is the first day of the week.
  6287. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6288. },
  6289. });
  6290. //! moment.js locale configuration
  6291. function relativeTimeWithMutation(number, withoutSuffix, key) {
  6292. var format = {
  6293. mm: 'munutenn',
  6294. MM: 'miz',
  6295. dd: 'devezh',
  6296. };
  6297. return number + ' ' + mutation(format[key], number);
  6298. }
  6299. function specialMutationForYears(number) {
  6300. switch (lastNumber(number)) {
  6301. case 1:
  6302. case 3:
  6303. case 4:
  6304. case 5:
  6305. case 9:
  6306. return number + ' bloaz';
  6307. default:
  6308. return number + ' vloaz';
  6309. }
  6310. }
  6311. function lastNumber(number) {
  6312. if (number > 9) {
  6313. return lastNumber(number % 10);
  6314. }
  6315. return number;
  6316. }
  6317. function mutation(text, number) {
  6318. if (number === 2) {
  6319. return softMutation(text);
  6320. }
  6321. return text;
  6322. }
  6323. function softMutation(text) {
  6324. var mutationTable = {
  6325. m: 'v',
  6326. b: 'v',
  6327. d: 'z',
  6328. };
  6329. if (mutationTable[text.charAt(0)] === undefined) {
  6330. return text;
  6331. }
  6332. return mutationTable[text.charAt(0)] + text.substring(1);
  6333. }
  6334. var monthsParse = [
  6335. /^gen/i,
  6336. /^c[ʼ\']hwe/i,
  6337. /^meu/i,
  6338. /^ebr/i,
  6339. /^mae/i,
  6340. /^(mez|eve)/i,
  6341. /^gou/i,
  6342. /^eos/i,
  6343. /^gwe/i,
  6344. /^her/i,
  6345. /^du/i,
  6346. /^ker/i,
  6347. ],
  6348. monthsRegex$1 = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6349. monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  6350. monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6351. fullWeekdaysParse = [
  6352. /^sul/i,
  6353. /^lun/i,
  6354. /^meurzh/i,
  6355. /^merc[ʼ\']her/i,
  6356. /^yaou/i,
  6357. /^gwener/i,
  6358. /^sadorn/i,
  6359. ],
  6360. shortWeekdaysParse = [
  6361. /^Sul/i,
  6362. /^Lun/i,
  6363. /^Meu/i,
  6364. /^Mer/i,
  6365. /^Yao/i,
  6366. /^Gwe/i,
  6367. /^Sad/i,
  6368. ],
  6369. minWeekdaysParse = [
  6370. /^Su/i,
  6371. /^Lu/i,
  6372. /^Me([^r]|$)/i,
  6373. /^Mer/i,
  6374. /^Ya/i,
  6375. /^Gw/i,
  6376. /^Sa/i,
  6377. ];
  6378. hooks.defineLocale('br', {
  6379. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
  6380. '_'
  6381. ),
  6382. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  6383. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  6384. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  6385. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  6386. weekdaysParse: minWeekdaysParse,
  6387. fullWeekdaysParse: fullWeekdaysParse,
  6388. shortWeekdaysParse: shortWeekdaysParse,
  6389. minWeekdaysParse: minWeekdaysParse,
  6390. monthsRegex: monthsRegex$1,
  6391. monthsShortRegex: monthsRegex$1,
  6392. monthsStrictRegex: monthsStrictRegex,
  6393. monthsShortStrictRegex: monthsShortStrictRegex,
  6394. monthsParse: monthsParse,
  6395. longMonthsParse: monthsParse,
  6396. shortMonthsParse: monthsParse,
  6397. longDateFormat: {
  6398. LT: 'HH:mm',
  6399. LTS: 'HH:mm:ss',
  6400. L: 'DD/MM/YYYY',
  6401. LL: 'D [a viz] MMMM YYYY',
  6402. LLL: 'D [a viz] MMMM YYYY HH:mm',
  6403. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
  6404. },
  6405. calendar: {
  6406. sameDay: '[Hiziv da] LT',
  6407. nextDay: '[Warcʼhoazh da] LT',
  6408. nextWeek: 'dddd [da] LT',
  6409. lastDay: '[Decʼh da] LT',
  6410. lastWeek: 'dddd [paset da] LT',
  6411. sameElse: 'L',
  6412. },
  6413. relativeTime: {
  6414. future: 'a-benn %s',
  6415. past: '%s ʼzo',
  6416. s: 'un nebeud segondennoù',
  6417. ss: '%d eilenn',
  6418. m: 'ur vunutenn',
  6419. mm: relativeTimeWithMutation,
  6420. h: 'un eur',
  6421. hh: '%d eur',
  6422. d: 'un devezh',
  6423. dd: relativeTimeWithMutation,
  6424. M: 'ur miz',
  6425. MM: relativeTimeWithMutation,
  6426. y: 'ur bloaz',
  6427. yy: specialMutationForYears,
  6428. },
  6429. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  6430. ordinal: function (number) {
  6431. var output = number === 1 ? 'añ' : 'vet';
  6432. return number + output;
  6433. },
  6434. week: {
  6435. dow: 1, // Monday is the first day of the week.
  6436. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6437. },
  6438. meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
  6439. isPM: function (token) {
  6440. return token === 'g.m.';
  6441. },
  6442. meridiem: function (hour, minute, isLower) {
  6443. return hour < 12 ? 'a.m.' : 'g.m.';
  6444. },
  6445. });
  6446. //! moment.js locale configuration
  6447. function translate(number, withoutSuffix, key) {
  6448. var result = number + ' ';
  6449. switch (key) {
  6450. case 'ss':
  6451. if (number === 1) {
  6452. result += 'sekunda';
  6453. } else if (number === 2 || number === 3 || number === 4) {
  6454. result += 'sekunde';
  6455. } else {
  6456. result += 'sekundi';
  6457. }
  6458. return result;
  6459. case 'm':
  6460. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6461. case 'mm':
  6462. if (number === 1) {
  6463. result += 'minuta';
  6464. } else if (number === 2 || number === 3 || number === 4) {
  6465. result += 'minute';
  6466. } else {
  6467. result += 'minuta';
  6468. }
  6469. return result;
  6470. case 'h':
  6471. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6472. case 'hh':
  6473. if (number === 1) {
  6474. result += 'sat';
  6475. } else if (number === 2 || number === 3 || number === 4) {
  6476. result += 'sata';
  6477. } else {
  6478. result += 'sati';
  6479. }
  6480. return result;
  6481. case 'dd':
  6482. if (number === 1) {
  6483. result += 'dan';
  6484. } else {
  6485. result += 'dana';
  6486. }
  6487. return result;
  6488. case 'MM':
  6489. if (number === 1) {
  6490. result += 'mjesec';
  6491. } else if (number === 2 || number === 3 || number === 4) {
  6492. result += 'mjeseca';
  6493. } else {
  6494. result += 'mjeseci';
  6495. }
  6496. return result;
  6497. case 'yy':
  6498. if (number === 1) {
  6499. result += 'godina';
  6500. } else if (number === 2 || number === 3 || number === 4) {
  6501. result += 'godine';
  6502. } else {
  6503. result += 'godina';
  6504. }
  6505. return result;
  6506. }
  6507. }
  6508. hooks.defineLocale('bs', {
  6509. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
  6510. '_'
  6511. ),
  6512. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
  6513. '_'
  6514. ),
  6515. monthsParseExact: true,
  6516. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  6517. '_'
  6518. ),
  6519. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6520. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  6521. weekdaysParseExact: true,
  6522. longDateFormat: {
  6523. LT: 'H:mm',
  6524. LTS: 'H:mm:ss',
  6525. L: 'DD.MM.YYYY',
  6526. LL: 'D. MMMM YYYY',
  6527. LLL: 'D. MMMM YYYY H:mm',
  6528. LLLL: 'dddd, D. MMMM YYYY H:mm',
  6529. },
  6530. calendar: {
  6531. sameDay: '[danas u] LT',
  6532. nextDay: '[sutra u] LT',
  6533. nextWeek: function () {
  6534. switch (this.day()) {
  6535. case 0:
  6536. return '[u] [nedjelju] [u] LT';
  6537. case 3:
  6538. return '[u] [srijedu] [u] LT';
  6539. case 6:
  6540. return '[u] [subotu] [u] LT';
  6541. case 1:
  6542. case 2:
  6543. case 4:
  6544. case 5:
  6545. return '[u] dddd [u] LT';
  6546. }
  6547. },
  6548. lastDay: '[jučer u] LT',
  6549. lastWeek: function () {
  6550. switch (this.day()) {
  6551. case 0:
  6552. case 3:
  6553. return '[prošlu] dddd [u] LT';
  6554. case 6:
  6555. return '[prošle] [subote] [u] LT';
  6556. case 1:
  6557. case 2:
  6558. case 4:
  6559. case 5:
  6560. return '[prošli] dddd [u] LT';
  6561. }
  6562. },
  6563. sameElse: 'L',
  6564. },
  6565. relativeTime: {
  6566. future: 'za %s',
  6567. past: 'prije %s',
  6568. s: 'par sekundi',
  6569. ss: translate,
  6570. m: translate,
  6571. mm: translate,
  6572. h: translate,
  6573. hh: translate,
  6574. d: 'dan',
  6575. dd: translate,
  6576. M: 'mjesec',
  6577. MM: translate,
  6578. y: 'godinu',
  6579. yy: translate,
  6580. },
  6581. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6582. ordinal: '%d.',
  6583. week: {
  6584. dow: 1, // Monday is the first day of the week.
  6585. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6586. },
  6587. });
  6588. //! moment.js locale configuration
  6589. hooks.defineLocale('ca', {
  6590. months: {
  6591. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
  6592. '_'
  6593. ),
  6594. format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split(
  6595. '_'
  6596. ),
  6597. isFormat: /D[oD]?(\s)+MMMM/,
  6598. },
  6599. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
  6600. '_'
  6601. ),
  6602. monthsParseExact: true,
  6603. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
  6604. '_'
  6605. ),
  6606. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  6607. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  6608. weekdaysParseExact: true,
  6609. longDateFormat: {
  6610. LT: 'H:mm',
  6611. LTS: 'H:mm:ss',
  6612. L: 'DD/MM/YYYY',
  6613. LL: 'D MMMM [de] YYYY',
  6614. ll: 'D MMM YYYY',
  6615. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  6616. lll: 'D MMM YYYY, H:mm',
  6617. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  6618. llll: 'ddd D MMM YYYY, H:mm',
  6619. },
  6620. calendar: {
  6621. sameDay: function () {
  6622. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6623. },
  6624. nextDay: function () {
  6625. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6626. },
  6627. nextWeek: function () {
  6628. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6629. },
  6630. lastDay: function () {
  6631. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6632. },
  6633. lastWeek: function () {
  6634. return (
  6635. '[el] dddd [passat a ' +
  6636. (this.hours() !== 1 ? 'les' : 'la') +
  6637. '] LT'
  6638. );
  6639. },
  6640. sameElse: 'L',
  6641. },
  6642. relativeTime: {
  6643. future: "d'aquí %s",
  6644. past: 'fa %s',
  6645. s: 'uns segons',
  6646. ss: '%d segons',
  6647. m: 'un minut',
  6648. mm: '%d minuts',
  6649. h: 'una hora',
  6650. hh: '%d hores',
  6651. d: 'un dia',
  6652. dd: '%d dies',
  6653. M: 'un mes',
  6654. MM: '%d mesos',
  6655. y: 'un any',
  6656. yy: '%d anys',
  6657. },
  6658. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  6659. ordinal: function (number, period) {
  6660. var output =
  6661. number === 1
  6662. ? 'r'
  6663. : number === 2
  6664. ? 'n'
  6665. : number === 3
  6666. ? 'r'
  6667. : number === 4
  6668. ? 't'
  6669. : 'è';
  6670. if (period === 'w' || period === 'W') {
  6671. output = 'a';
  6672. }
  6673. return number + output;
  6674. },
  6675. week: {
  6676. dow: 1, // Monday is the first day of the week.
  6677. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6678. },
  6679. });
  6680. //! moment.js locale configuration
  6681. var months$4 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
  6682. '_'
  6683. ),
  6684. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  6685. monthsParse$1 = [
  6686. /^led/i,
  6687. /^úno/i,
  6688. /^bře/i,
  6689. /^dub/i,
  6690. /^kvě/i,
  6691. /^(čvn|červen$|června)/i,
  6692. /^(čvc|červenec|července)/i,
  6693. /^srp/i,
  6694. /^zář/i,
  6695. /^říj/i,
  6696. /^lis/i,
  6697. /^pro/i,
  6698. ],
  6699. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6700. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6701. monthsRegex$2 = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
  6702. function plural$1(n) {
  6703. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  6704. }
  6705. function translate$1(number, withoutSuffix, key, isFuture) {
  6706. var result = number + ' ';
  6707. switch (key) {
  6708. case 's': // a few seconds / in a few seconds / a few seconds ago
  6709. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  6710. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  6711. if (withoutSuffix || isFuture) {
  6712. return result + (plural$1(number) ? 'sekundy' : 'sekund');
  6713. } else {
  6714. return result + 'sekundami';
  6715. }
  6716. case 'm': // a minute / in a minute / a minute ago
  6717. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  6718. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  6719. if (withoutSuffix || isFuture) {
  6720. return result + (plural$1(number) ? 'minuty' : 'minut');
  6721. } else {
  6722. return result + 'minutami';
  6723. }
  6724. case 'h': // an hour / in an hour / an hour ago
  6725. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  6726. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  6727. if (withoutSuffix || isFuture) {
  6728. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  6729. } else {
  6730. return result + 'hodinami';
  6731. }
  6732. case 'd': // a day / in a day / a day ago
  6733. return withoutSuffix || isFuture ? 'den' : 'dnem';
  6734. case 'dd': // 9 days / in 9 days / 9 days ago
  6735. if (withoutSuffix || isFuture) {
  6736. return result + (plural$1(number) ? 'dny' : 'dní');
  6737. } else {
  6738. return result + 'dny';
  6739. }
  6740. case 'M': // a month / in a month / a month ago
  6741. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  6742. case 'MM': // 9 months / in 9 months / 9 months ago
  6743. if (withoutSuffix || isFuture) {
  6744. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  6745. } else {
  6746. return result + 'měsíci';
  6747. }
  6748. case 'y': // a year / in a year / a year ago
  6749. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  6750. case 'yy': // 9 years / in 9 years / 9 years ago
  6751. if (withoutSuffix || isFuture) {
  6752. return result + (plural$1(number) ? 'roky' : 'let');
  6753. } else {
  6754. return result + 'lety';
  6755. }
  6756. }
  6757. }
  6758. hooks.defineLocale('cs', {
  6759. months: months$4,
  6760. monthsShort: monthsShort,
  6761. monthsRegex: monthsRegex$2,
  6762. monthsShortRegex: monthsRegex$2,
  6763. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6764. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6765. monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  6766. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  6767. monthsParse: monthsParse$1,
  6768. longMonthsParse: monthsParse$1,
  6769. shortMonthsParse: monthsParse$1,
  6770. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  6771. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  6772. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  6773. longDateFormat: {
  6774. LT: 'H:mm',
  6775. LTS: 'H:mm:ss',
  6776. L: 'DD.MM.YYYY',
  6777. LL: 'D. MMMM YYYY',
  6778. LLL: 'D. MMMM YYYY H:mm',
  6779. LLLL: 'dddd D. MMMM YYYY H:mm',
  6780. l: 'D. M. YYYY',
  6781. },
  6782. calendar: {
  6783. sameDay: '[dnes v] LT',
  6784. nextDay: '[zítra v] LT',
  6785. nextWeek: function () {
  6786. switch (this.day()) {
  6787. case 0:
  6788. return '[v neděli v] LT';
  6789. case 1:
  6790. case 2:
  6791. return '[v] dddd [v] LT';
  6792. case 3:
  6793. return '[ve středu v] LT';
  6794. case 4:
  6795. return '[ve čtvrtek v] LT';
  6796. case 5:
  6797. return '[v pátek v] LT';
  6798. case 6:
  6799. return '[v sobotu v] LT';
  6800. }
  6801. },
  6802. lastDay: '[včera v] LT',
  6803. lastWeek: function () {
  6804. switch (this.day()) {
  6805. case 0:
  6806. return '[minulou neděli v] LT';
  6807. case 1:
  6808. case 2:
  6809. return '[minulé] dddd [v] LT';
  6810. case 3:
  6811. return '[minulou středu v] LT';
  6812. case 4:
  6813. case 5:
  6814. return '[minulý] dddd [v] LT';
  6815. case 6:
  6816. return '[minulou sobotu v] LT';
  6817. }
  6818. },
  6819. sameElse: 'L',
  6820. },
  6821. relativeTime: {
  6822. future: 'za %s',
  6823. past: 'před %s',
  6824. s: translate$1,
  6825. ss: translate$1,
  6826. m: translate$1,
  6827. mm: translate$1,
  6828. h: translate$1,
  6829. hh: translate$1,
  6830. d: translate$1,
  6831. dd: translate$1,
  6832. M: translate$1,
  6833. MM: translate$1,
  6834. y: translate$1,
  6835. yy: translate$1,
  6836. },
  6837. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6838. ordinal: '%d.',
  6839. week: {
  6840. dow: 1, // Monday is the first day of the week.
  6841. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6842. },
  6843. });
  6844. //! moment.js locale configuration
  6845. hooks.defineLocale('cv', {
  6846. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
  6847. '_'
  6848. ),
  6849. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  6850. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
  6851. '_'
  6852. ),
  6853. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  6854. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  6855. longDateFormat: {
  6856. LT: 'HH:mm',
  6857. LTS: 'HH:mm:ss',
  6858. L: 'DD-MM-YYYY',
  6859. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  6860. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6861. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6862. },
  6863. calendar: {
  6864. sameDay: '[Паян] LT [сехетре]',
  6865. nextDay: '[Ыран] LT [сехетре]',
  6866. lastDay: '[Ӗнер] LT [сехетре]',
  6867. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  6868. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  6869. sameElse: 'L',
  6870. },
  6871. relativeTime: {
  6872. future: function (output) {
  6873. var affix = /сехет$/i.exec(output)
  6874. ? 'рен'
  6875. : /ҫул$/i.exec(output)
  6876. ? 'тан'
  6877. : 'ран';
  6878. return output + affix;
  6879. },
  6880. past: '%s каялла',
  6881. s: 'пӗр-ик ҫеккунт',
  6882. ss: '%d ҫеккунт',
  6883. m: 'пӗр минут',
  6884. mm: '%d минут',
  6885. h: 'пӗр сехет',
  6886. hh: '%d сехет',
  6887. d: 'пӗр кун',
  6888. dd: '%d кун',
  6889. M: 'пӗр уйӑх',
  6890. MM: '%d уйӑх',
  6891. y: 'пӗр ҫул',
  6892. yy: '%d ҫул',
  6893. },
  6894. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  6895. ordinal: '%d-мӗш',
  6896. week: {
  6897. dow: 1, // Monday is the first day of the week.
  6898. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6899. },
  6900. });
  6901. //! moment.js locale configuration
  6902. hooks.defineLocale('cy', {
  6903. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  6904. '_'
  6905. ),
  6906. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  6907. '_'
  6908. ),
  6909. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  6910. '_'
  6911. ),
  6912. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  6913. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  6914. weekdaysParseExact: true,
  6915. // time formats are the same as en-gb
  6916. longDateFormat: {
  6917. LT: 'HH:mm',
  6918. LTS: 'HH:mm:ss',
  6919. L: 'DD/MM/YYYY',
  6920. LL: 'D MMMM YYYY',
  6921. LLL: 'D MMMM YYYY HH:mm',
  6922. LLLL: 'dddd, D MMMM YYYY HH:mm',
  6923. },
  6924. calendar: {
  6925. sameDay: '[Heddiw am] LT',
  6926. nextDay: '[Yfory am] LT',
  6927. nextWeek: 'dddd [am] LT',
  6928. lastDay: '[Ddoe am] LT',
  6929. lastWeek: 'dddd [diwethaf am] LT',
  6930. sameElse: 'L',
  6931. },
  6932. relativeTime: {
  6933. future: 'mewn %s',
  6934. past: '%s yn ôl',
  6935. s: 'ychydig eiliadau',
  6936. ss: '%d eiliad',
  6937. m: 'munud',
  6938. mm: '%d munud',
  6939. h: 'awr',
  6940. hh: '%d awr',
  6941. d: 'diwrnod',
  6942. dd: '%d diwrnod',
  6943. M: 'mis',
  6944. MM: '%d mis',
  6945. y: 'blwyddyn',
  6946. yy: '%d flynedd',
  6947. },
  6948. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  6949. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  6950. ordinal: function (number) {
  6951. var b = number,
  6952. output = '',
  6953. lookup = [
  6954. '',
  6955. 'af',
  6956. 'il',
  6957. 'ydd',
  6958. 'ydd',
  6959. 'ed',
  6960. 'ed',
  6961. 'ed',
  6962. 'fed',
  6963. 'fed',
  6964. 'fed', // 1af to 10fed
  6965. 'eg',
  6966. 'fed',
  6967. 'eg',
  6968. 'eg',
  6969. 'fed',
  6970. 'eg',
  6971. 'eg',
  6972. 'fed',
  6973. 'eg',
  6974. 'fed', // 11eg to 20fed
  6975. ];
  6976. if (b > 20) {
  6977. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  6978. output = 'fed'; // not 30ain, 70ain or 90ain
  6979. } else {
  6980. output = 'ain';
  6981. }
  6982. } else if (b > 0) {
  6983. output = lookup[b];
  6984. }
  6985. return number + output;
  6986. },
  6987. week: {
  6988. dow: 1, // Monday is the first day of the week.
  6989. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6990. },
  6991. });
  6992. //! moment.js locale configuration
  6993. hooks.defineLocale('da', {
  6994. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
  6995. '_'
  6996. ),
  6997. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  6998. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  6999. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  7000. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7001. longDateFormat: {
  7002. LT: 'HH:mm',
  7003. LTS: 'HH:mm:ss',
  7004. L: 'DD.MM.YYYY',
  7005. LL: 'D. MMMM YYYY',
  7006. LLL: 'D. MMMM YYYY HH:mm',
  7007. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
  7008. },
  7009. calendar: {
  7010. sameDay: '[i dag kl.] LT',
  7011. nextDay: '[i morgen kl.] LT',
  7012. nextWeek: 'på dddd [kl.] LT',
  7013. lastDay: '[i går kl.] LT',
  7014. lastWeek: '[i] dddd[s kl.] LT',
  7015. sameElse: 'L',
  7016. },
  7017. relativeTime: {
  7018. future: 'om %s',
  7019. past: '%s siden',
  7020. s: 'få sekunder',
  7021. ss: '%d sekunder',
  7022. m: 'et minut',
  7023. mm: '%d minutter',
  7024. h: 'en time',
  7025. hh: '%d timer',
  7026. d: 'en dag',
  7027. dd: '%d dage',
  7028. M: 'en måned',
  7029. MM: '%d måneder',
  7030. y: 'et år',
  7031. yy: '%d år',
  7032. },
  7033. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7034. ordinal: '%d.',
  7035. week: {
  7036. dow: 1, // Monday is the first day of the week.
  7037. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7038. },
  7039. });
  7040. //! moment.js locale configuration
  7041. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7042. var format = {
  7043. m: ['eine Minute', 'einer Minute'],
  7044. h: ['eine Stunde', 'einer Stunde'],
  7045. d: ['ein Tag', 'einem Tag'],
  7046. dd: [number + ' Tage', number + ' Tagen'],
  7047. w: ['eine Woche', 'einer Woche'],
  7048. M: ['ein Monat', 'einem Monat'],
  7049. MM: [number + ' Monate', number + ' Monaten'],
  7050. y: ['ein Jahr', 'einem Jahr'],
  7051. yy: [number + ' Jahre', number + ' Jahren'],
  7052. };
  7053. return withoutSuffix ? format[key][0] : format[key][1];
  7054. }
  7055. hooks.defineLocale('de-at', {
  7056. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7057. '_'
  7058. ),
  7059. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7060. '_'
  7061. ),
  7062. monthsParseExact: true,
  7063. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7064. '_'
  7065. ),
  7066. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7067. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7068. weekdaysParseExact: true,
  7069. longDateFormat: {
  7070. LT: 'HH:mm',
  7071. LTS: 'HH:mm:ss',
  7072. L: 'DD.MM.YYYY',
  7073. LL: 'D. MMMM YYYY',
  7074. LLL: 'D. MMMM YYYY HH:mm',
  7075. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7076. },
  7077. calendar: {
  7078. sameDay: '[heute um] LT [Uhr]',
  7079. sameElse: 'L',
  7080. nextDay: '[morgen um] LT [Uhr]',
  7081. nextWeek: 'dddd [um] LT [Uhr]',
  7082. lastDay: '[gestern um] LT [Uhr]',
  7083. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7084. },
  7085. relativeTime: {
  7086. future: 'in %s',
  7087. past: 'vor %s',
  7088. s: 'ein paar Sekunden',
  7089. ss: '%d Sekunden',
  7090. m: processRelativeTime,
  7091. mm: '%d Minuten',
  7092. h: processRelativeTime,
  7093. hh: '%d Stunden',
  7094. d: processRelativeTime,
  7095. dd: processRelativeTime,
  7096. w: processRelativeTime,
  7097. ww: '%d Wochen',
  7098. M: processRelativeTime,
  7099. MM: processRelativeTime,
  7100. y: processRelativeTime,
  7101. yy: processRelativeTime,
  7102. },
  7103. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7104. ordinal: '%d.',
  7105. week: {
  7106. dow: 1, // Monday is the first day of the week.
  7107. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7108. },
  7109. });
  7110. //! moment.js locale configuration
  7111. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  7112. var format = {
  7113. m: ['eine Minute', 'einer Minute'],
  7114. h: ['eine Stunde', 'einer Stunde'],
  7115. d: ['ein Tag', 'einem Tag'],
  7116. dd: [number + ' Tage', number + ' Tagen'],
  7117. w: ['eine Woche', 'einer Woche'],
  7118. M: ['ein Monat', 'einem Monat'],
  7119. MM: [number + ' Monate', number + ' Monaten'],
  7120. y: ['ein Jahr', 'einem Jahr'],
  7121. yy: [number + ' Jahre', number + ' Jahren'],
  7122. };
  7123. return withoutSuffix ? format[key][0] : format[key][1];
  7124. }
  7125. hooks.defineLocale('de-ch', {
  7126. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7127. '_'
  7128. ),
  7129. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7130. '_'
  7131. ),
  7132. monthsParseExact: true,
  7133. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7134. '_'
  7135. ),
  7136. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7137. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7138. weekdaysParseExact: true,
  7139. longDateFormat: {
  7140. LT: 'HH:mm',
  7141. LTS: 'HH:mm:ss',
  7142. L: 'DD.MM.YYYY',
  7143. LL: 'D. MMMM YYYY',
  7144. LLL: 'D. MMMM YYYY HH:mm',
  7145. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7146. },
  7147. calendar: {
  7148. sameDay: '[heute um] LT [Uhr]',
  7149. sameElse: 'L',
  7150. nextDay: '[morgen um] LT [Uhr]',
  7151. nextWeek: 'dddd [um] LT [Uhr]',
  7152. lastDay: '[gestern um] LT [Uhr]',
  7153. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7154. },
  7155. relativeTime: {
  7156. future: 'in %s',
  7157. past: 'vor %s',
  7158. s: 'ein paar Sekunden',
  7159. ss: '%d Sekunden',
  7160. m: processRelativeTime$1,
  7161. mm: '%d Minuten',
  7162. h: processRelativeTime$1,
  7163. hh: '%d Stunden',
  7164. d: processRelativeTime$1,
  7165. dd: processRelativeTime$1,
  7166. w: processRelativeTime$1,
  7167. ww: '%d Wochen',
  7168. M: processRelativeTime$1,
  7169. MM: processRelativeTime$1,
  7170. y: processRelativeTime$1,
  7171. yy: processRelativeTime$1,
  7172. },
  7173. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7174. ordinal: '%d.',
  7175. week: {
  7176. dow: 1, // Monday is the first day of the week.
  7177. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7178. },
  7179. });
  7180. //! moment.js locale configuration
  7181. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  7182. var format = {
  7183. m: ['eine Minute', 'einer Minute'],
  7184. h: ['eine Stunde', 'einer Stunde'],
  7185. d: ['ein Tag', 'einem Tag'],
  7186. dd: [number + ' Tage', number + ' Tagen'],
  7187. w: ['eine Woche', 'einer Woche'],
  7188. M: ['ein Monat', 'einem Monat'],
  7189. MM: [number + ' Monate', number + ' Monaten'],
  7190. y: ['ein Jahr', 'einem Jahr'],
  7191. yy: [number + ' Jahre', number + ' Jahren'],
  7192. };
  7193. return withoutSuffix ? format[key][0] : format[key][1];
  7194. }
  7195. hooks.defineLocale('de', {
  7196. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7197. '_'
  7198. ),
  7199. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7200. '_'
  7201. ),
  7202. monthsParseExact: true,
  7203. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7204. '_'
  7205. ),
  7206. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7207. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7208. weekdaysParseExact: true,
  7209. longDateFormat: {
  7210. LT: 'HH:mm',
  7211. LTS: 'HH:mm:ss',
  7212. L: 'DD.MM.YYYY',
  7213. LL: 'D. MMMM YYYY',
  7214. LLL: 'D. MMMM YYYY HH:mm',
  7215. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7216. },
  7217. calendar: {
  7218. sameDay: '[heute um] LT [Uhr]',
  7219. sameElse: 'L',
  7220. nextDay: '[morgen um] LT [Uhr]',
  7221. nextWeek: 'dddd [um] LT [Uhr]',
  7222. lastDay: '[gestern um] LT [Uhr]',
  7223. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7224. },
  7225. relativeTime: {
  7226. future: 'in %s',
  7227. past: 'vor %s',
  7228. s: 'ein paar Sekunden',
  7229. ss: '%d Sekunden',
  7230. m: processRelativeTime$2,
  7231. mm: '%d Minuten',
  7232. h: processRelativeTime$2,
  7233. hh: '%d Stunden',
  7234. d: processRelativeTime$2,
  7235. dd: processRelativeTime$2,
  7236. w: processRelativeTime$2,
  7237. ww: '%d Wochen',
  7238. M: processRelativeTime$2,
  7239. MM: processRelativeTime$2,
  7240. y: processRelativeTime$2,
  7241. yy: processRelativeTime$2,
  7242. },
  7243. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7244. ordinal: '%d.',
  7245. week: {
  7246. dow: 1, // Monday is the first day of the week.
  7247. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7248. },
  7249. });
  7250. //! moment.js locale configuration
  7251. var months$5 = [
  7252. 'ޖެނުއަރީ',
  7253. 'ފެބްރުއަރީ',
  7254. 'މާރިޗު',
  7255. 'އޭޕްރީލު',
  7256. 'މޭ',
  7257. 'ޖޫން',
  7258. 'ޖުލައި',
  7259. 'އޯގަސްޓު',
  7260. 'ސެޕްޓެމްބަރު',
  7261. 'އޮކްޓޯބަރު',
  7262. 'ނޮވެމްބަރު',
  7263. 'ޑިސެމްބަރު',
  7264. ],
  7265. weekdays = [
  7266. 'އާދިއްތަ',
  7267. 'ހޯމަ',
  7268. 'އަންގާރަ',
  7269. 'ބުދަ',
  7270. 'ބުރާސްފަތި',
  7271. 'ހުކުރު',
  7272. 'ހޮނިހިރު',
  7273. ];
  7274. hooks.defineLocale('dv', {
  7275. months: months$5,
  7276. monthsShort: months$5,
  7277. weekdays: weekdays,
  7278. weekdaysShort: weekdays,
  7279. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  7280. longDateFormat: {
  7281. LT: 'HH:mm',
  7282. LTS: 'HH:mm:ss',
  7283. L: 'D/M/YYYY',
  7284. LL: 'D MMMM YYYY',
  7285. LLL: 'D MMMM YYYY HH:mm',
  7286. LLLL: 'dddd D MMMM YYYY HH:mm',
  7287. },
  7288. meridiemParse: /މކ|މފ/,
  7289. isPM: function (input) {
  7290. return 'މފ' === input;
  7291. },
  7292. meridiem: function (hour, minute, isLower) {
  7293. if (hour < 12) {
  7294. return 'މކ';
  7295. } else {
  7296. return 'މފ';
  7297. }
  7298. },
  7299. calendar: {
  7300. sameDay: '[މިއަދު] LT',
  7301. nextDay: '[މާދަމާ] LT',
  7302. nextWeek: 'dddd LT',
  7303. lastDay: '[އިއްޔެ] LT',
  7304. lastWeek: '[ފާއިތުވި] dddd LT',
  7305. sameElse: 'L',
  7306. },
  7307. relativeTime: {
  7308. future: 'ތެރޭގައި %s',
  7309. past: 'ކުރިން %s',
  7310. s: 'ސިކުންތުކޮޅެއް',
  7311. ss: 'd% ސިކުންތު',
  7312. m: 'މިނިޓެއް',
  7313. mm: 'މިނިޓު %d',
  7314. h: 'ގަޑިއިރެއް',
  7315. hh: 'ގަޑިއިރު %d',
  7316. d: 'ދުވަހެއް',
  7317. dd: 'ދުވަސް %d',
  7318. M: 'މަހެއް',
  7319. MM: 'މަސް %d',
  7320. y: 'އަހަރެއް',
  7321. yy: 'އަހަރު %d',
  7322. },
  7323. preparse: function (string) {
  7324. return string.replace(/،/g, ',');
  7325. },
  7326. postformat: function (string) {
  7327. return string.replace(/,/g, '،');
  7328. },
  7329. week: {
  7330. dow: 7, // Sunday is the first day of the week.
  7331. doy: 12, // The week that contains Jan 12th is the first week of the year.
  7332. },
  7333. });
  7334. //! moment.js locale configuration
  7335. function isFunction$1(input) {
  7336. return (
  7337. (typeof Function !== 'undefined' && input instanceof Function) ||
  7338. Object.prototype.toString.call(input) === '[object Function]'
  7339. );
  7340. }
  7341. hooks.defineLocale('el', {
  7342. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
  7343. '_'
  7344. ),
  7345. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
  7346. '_'
  7347. ),
  7348. months: function (momentToFormat, format) {
  7349. if (!momentToFormat) {
  7350. return this._monthsNominativeEl;
  7351. } else if (
  7352. typeof format === 'string' &&
  7353. /D/.test(format.substring(0, format.indexOf('MMMM')))
  7354. ) {
  7355. // if there is a day number before 'MMMM'
  7356. return this._monthsGenitiveEl[momentToFormat.month()];
  7357. } else {
  7358. return this._monthsNominativeEl[momentToFormat.month()];
  7359. }
  7360. },
  7361. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  7362. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
  7363. '_'
  7364. ),
  7365. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  7366. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  7367. meridiem: function (hours, minutes, isLower) {
  7368. if (hours > 11) {
  7369. return isLower ? 'μμ' : 'ΜΜ';
  7370. } else {
  7371. return isLower ? 'πμ' : 'ΠΜ';
  7372. }
  7373. },
  7374. isPM: function (input) {
  7375. return (input + '').toLowerCase()[0] === 'μ';
  7376. },
  7377. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  7378. longDateFormat: {
  7379. LT: 'h:mm A',
  7380. LTS: 'h:mm:ss A',
  7381. L: 'DD/MM/YYYY',
  7382. LL: 'D MMMM YYYY',
  7383. LLL: 'D MMMM YYYY h:mm A',
  7384. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7385. },
  7386. calendarEl: {
  7387. sameDay: '[Σήμερα {}] LT',
  7388. nextDay: '[Αύριο {}] LT',
  7389. nextWeek: 'dddd [{}] LT',
  7390. lastDay: '[Χθες {}] LT',
  7391. lastWeek: function () {
  7392. switch (this.day()) {
  7393. case 6:
  7394. return '[το προηγούμενο] dddd [{}] LT';
  7395. default:
  7396. return '[την προηγούμενη] dddd [{}] LT';
  7397. }
  7398. },
  7399. sameElse: 'L',
  7400. },
  7401. calendar: function (key, mom) {
  7402. var output = this._calendarEl[key],
  7403. hours = mom && mom.hours();
  7404. if (isFunction$1(output)) {
  7405. output = output.apply(mom);
  7406. }
  7407. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  7408. },
  7409. relativeTime: {
  7410. future: 'σε %s',
  7411. past: '%s πριν',
  7412. s: 'λίγα δευτερόλεπτα',
  7413. ss: '%d δευτερόλεπτα',
  7414. m: 'ένα λεπτό',
  7415. mm: '%d λεπτά',
  7416. h: 'μία ώρα',
  7417. hh: '%d ώρες',
  7418. d: 'μία μέρα',
  7419. dd: '%d μέρες',
  7420. M: 'ένας μήνας',
  7421. MM: '%d μήνες',
  7422. y: 'ένας χρόνος',
  7423. yy: '%d χρόνια',
  7424. },
  7425. dayOfMonthOrdinalParse: /\d{1,2}η/,
  7426. ordinal: '%dη',
  7427. week: {
  7428. dow: 1, // Monday is the first day of the week.
  7429. doy: 4, // The week that contains Jan 4st is the first week of the year.
  7430. },
  7431. });
  7432. //! moment.js locale configuration
  7433. hooks.defineLocale('en-au', {
  7434. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7435. '_'
  7436. ),
  7437. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7438. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7439. '_'
  7440. ),
  7441. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7442. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7443. longDateFormat: {
  7444. LT: 'h:mm A',
  7445. LTS: 'h:mm:ss A',
  7446. L: 'DD/MM/YYYY',
  7447. LL: 'D MMMM YYYY',
  7448. LLL: 'D MMMM YYYY h:mm A',
  7449. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7450. },
  7451. calendar: {
  7452. sameDay: '[Today at] LT',
  7453. nextDay: '[Tomorrow at] LT',
  7454. nextWeek: 'dddd [at] LT',
  7455. lastDay: '[Yesterday at] LT',
  7456. lastWeek: '[Last] dddd [at] LT',
  7457. sameElse: 'L',
  7458. },
  7459. relativeTime: {
  7460. future: 'in %s',
  7461. past: '%s ago',
  7462. s: 'a few seconds',
  7463. ss: '%d seconds',
  7464. m: 'a minute',
  7465. mm: '%d minutes',
  7466. h: 'an hour',
  7467. hh: '%d hours',
  7468. d: 'a day',
  7469. dd: '%d days',
  7470. M: 'a month',
  7471. MM: '%d months',
  7472. y: 'a year',
  7473. yy: '%d years',
  7474. },
  7475. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7476. ordinal: function (number) {
  7477. var b = number % 10,
  7478. output =
  7479. ~~((number % 100) / 10) === 1
  7480. ? 'th'
  7481. : b === 1
  7482. ? 'st'
  7483. : b === 2
  7484. ? 'nd'
  7485. : b === 3
  7486. ? 'rd'
  7487. : 'th';
  7488. return number + output;
  7489. },
  7490. week: {
  7491. dow: 0, // Sunday is the first day of the week.
  7492. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7493. },
  7494. });
  7495. //! moment.js locale configuration
  7496. hooks.defineLocale('en-ca', {
  7497. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7498. '_'
  7499. ),
  7500. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7501. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7502. '_'
  7503. ),
  7504. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7505. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7506. longDateFormat: {
  7507. LT: 'h:mm A',
  7508. LTS: 'h:mm:ss A',
  7509. L: 'YYYY-MM-DD',
  7510. LL: 'MMMM D, YYYY',
  7511. LLL: 'MMMM D, YYYY h:mm A',
  7512. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  7513. },
  7514. calendar: {
  7515. sameDay: '[Today at] LT',
  7516. nextDay: '[Tomorrow at] LT',
  7517. nextWeek: 'dddd [at] LT',
  7518. lastDay: '[Yesterday at] LT',
  7519. lastWeek: '[Last] dddd [at] LT',
  7520. sameElse: 'L',
  7521. },
  7522. relativeTime: {
  7523. future: 'in %s',
  7524. past: '%s ago',
  7525. s: 'a few seconds',
  7526. ss: '%d seconds',
  7527. m: 'a minute',
  7528. mm: '%d minutes',
  7529. h: 'an hour',
  7530. hh: '%d hours',
  7531. d: 'a day',
  7532. dd: '%d days',
  7533. M: 'a month',
  7534. MM: '%d months',
  7535. y: 'a year',
  7536. yy: '%d years',
  7537. },
  7538. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7539. ordinal: function (number) {
  7540. var b = number % 10,
  7541. output =
  7542. ~~((number % 100) / 10) === 1
  7543. ? 'th'
  7544. : b === 1
  7545. ? 'st'
  7546. : b === 2
  7547. ? 'nd'
  7548. : b === 3
  7549. ? 'rd'
  7550. : 'th';
  7551. return number + output;
  7552. },
  7553. });
  7554. //! moment.js locale configuration
  7555. hooks.defineLocale('en-gb', {
  7556. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7557. '_'
  7558. ),
  7559. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7560. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7561. '_'
  7562. ),
  7563. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7564. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7565. longDateFormat: {
  7566. LT: 'HH:mm',
  7567. LTS: 'HH:mm:ss',
  7568. L: 'DD/MM/YYYY',
  7569. LL: 'D MMMM YYYY',
  7570. LLL: 'D MMMM YYYY HH:mm',
  7571. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7572. },
  7573. calendar: {
  7574. sameDay: '[Today at] LT',
  7575. nextDay: '[Tomorrow at] LT',
  7576. nextWeek: 'dddd [at] LT',
  7577. lastDay: '[Yesterday at] LT',
  7578. lastWeek: '[Last] dddd [at] LT',
  7579. sameElse: 'L',
  7580. },
  7581. relativeTime: {
  7582. future: 'in %s',
  7583. past: '%s ago',
  7584. s: 'a few seconds',
  7585. ss: '%d seconds',
  7586. m: 'a minute',
  7587. mm: '%d minutes',
  7588. h: 'an hour',
  7589. hh: '%d hours',
  7590. d: 'a day',
  7591. dd: '%d days',
  7592. M: 'a month',
  7593. MM: '%d months',
  7594. y: 'a year',
  7595. yy: '%d years',
  7596. },
  7597. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7598. ordinal: function (number) {
  7599. var b = number % 10,
  7600. output =
  7601. ~~((number % 100) / 10) === 1
  7602. ? 'th'
  7603. : b === 1
  7604. ? 'st'
  7605. : b === 2
  7606. ? 'nd'
  7607. : b === 3
  7608. ? 'rd'
  7609. : 'th';
  7610. return number + output;
  7611. },
  7612. week: {
  7613. dow: 1, // Monday is the first day of the week.
  7614. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7615. },
  7616. });
  7617. //! moment.js locale configuration
  7618. hooks.defineLocale('en-ie', {
  7619. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7620. '_'
  7621. ),
  7622. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7623. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7624. '_'
  7625. ),
  7626. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7627. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7628. longDateFormat: {
  7629. LT: 'HH:mm',
  7630. LTS: 'HH:mm:ss',
  7631. L: 'DD/MM/YYYY',
  7632. LL: 'D MMMM YYYY',
  7633. LLL: 'D MMMM YYYY HH:mm',
  7634. LLLL: 'dddd D MMMM YYYY HH:mm',
  7635. },
  7636. calendar: {
  7637. sameDay: '[Today at] LT',
  7638. nextDay: '[Tomorrow at] LT',
  7639. nextWeek: 'dddd [at] LT',
  7640. lastDay: '[Yesterday at] LT',
  7641. lastWeek: '[Last] dddd [at] LT',
  7642. sameElse: 'L',
  7643. },
  7644. relativeTime: {
  7645. future: 'in %s',
  7646. past: '%s ago',
  7647. s: 'a few seconds',
  7648. ss: '%d seconds',
  7649. m: 'a minute',
  7650. mm: '%d minutes',
  7651. h: 'an hour',
  7652. hh: '%d hours',
  7653. d: 'a day',
  7654. dd: '%d days',
  7655. M: 'a month',
  7656. MM: '%d months',
  7657. y: 'a year',
  7658. yy: '%d years',
  7659. },
  7660. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7661. ordinal: function (number) {
  7662. var b = number % 10,
  7663. output =
  7664. ~~((number % 100) / 10) === 1
  7665. ? 'th'
  7666. : b === 1
  7667. ? 'st'
  7668. : b === 2
  7669. ? 'nd'
  7670. : b === 3
  7671. ? 'rd'
  7672. : 'th';
  7673. return number + output;
  7674. },
  7675. week: {
  7676. dow: 1, // Monday is the first day of the week.
  7677. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7678. },
  7679. });
  7680. //! moment.js locale configuration
  7681. hooks.defineLocale('en-il', {
  7682. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7683. '_'
  7684. ),
  7685. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7686. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7687. '_'
  7688. ),
  7689. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7690. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7691. longDateFormat: {
  7692. LT: 'HH:mm',
  7693. LTS: 'HH:mm:ss',
  7694. L: 'DD/MM/YYYY',
  7695. LL: 'D MMMM YYYY',
  7696. LLL: 'D MMMM YYYY HH:mm',
  7697. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7698. },
  7699. calendar: {
  7700. sameDay: '[Today at] LT',
  7701. nextDay: '[Tomorrow at] LT',
  7702. nextWeek: 'dddd [at] LT',
  7703. lastDay: '[Yesterday at] LT',
  7704. lastWeek: '[Last] dddd [at] LT',
  7705. sameElse: 'L',
  7706. },
  7707. relativeTime: {
  7708. future: 'in %s',
  7709. past: '%s ago',
  7710. s: 'a few seconds',
  7711. ss: '%d seconds',
  7712. m: 'a minute',
  7713. mm: '%d minutes',
  7714. h: 'an hour',
  7715. hh: '%d hours',
  7716. d: 'a day',
  7717. dd: '%d days',
  7718. M: 'a month',
  7719. MM: '%d months',
  7720. y: 'a year',
  7721. yy: '%d years',
  7722. },
  7723. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7724. ordinal: function (number) {
  7725. var b = number % 10,
  7726. output =
  7727. ~~((number % 100) / 10) === 1
  7728. ? 'th'
  7729. : b === 1
  7730. ? 'st'
  7731. : b === 2
  7732. ? 'nd'
  7733. : b === 3
  7734. ? 'rd'
  7735. : 'th';
  7736. return number + output;
  7737. },
  7738. });
  7739. //! moment.js locale configuration
  7740. hooks.defineLocale('en-in', {
  7741. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7742. '_'
  7743. ),
  7744. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7745. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7746. '_'
  7747. ),
  7748. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7749. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7750. longDateFormat: {
  7751. LT: 'h:mm A',
  7752. LTS: 'h:mm:ss A',
  7753. L: 'DD/MM/YYYY',
  7754. LL: 'D MMMM YYYY',
  7755. LLL: 'D MMMM YYYY h:mm A',
  7756. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7757. },
  7758. calendar: {
  7759. sameDay: '[Today at] LT',
  7760. nextDay: '[Tomorrow at] LT',
  7761. nextWeek: 'dddd [at] LT',
  7762. lastDay: '[Yesterday at] LT',
  7763. lastWeek: '[Last] dddd [at] LT',
  7764. sameElse: 'L',
  7765. },
  7766. relativeTime: {
  7767. future: 'in %s',
  7768. past: '%s ago',
  7769. s: 'a few seconds',
  7770. ss: '%d seconds',
  7771. m: 'a minute',
  7772. mm: '%d minutes',
  7773. h: 'an hour',
  7774. hh: '%d hours',
  7775. d: 'a day',
  7776. dd: '%d days',
  7777. M: 'a month',
  7778. MM: '%d months',
  7779. y: 'a year',
  7780. yy: '%d years',
  7781. },
  7782. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7783. ordinal: function (number) {
  7784. var b = number % 10,
  7785. output =
  7786. ~~((number % 100) / 10) === 1
  7787. ? 'th'
  7788. : b === 1
  7789. ? 'st'
  7790. : b === 2
  7791. ? 'nd'
  7792. : b === 3
  7793. ? 'rd'
  7794. : 'th';
  7795. return number + output;
  7796. },
  7797. week: {
  7798. dow: 0, // Sunday is the first day of the week.
  7799. doy: 6, // The week that contains Jan 1st is the first week of the year.
  7800. },
  7801. });
  7802. //! moment.js locale configuration
  7803. hooks.defineLocale('en-nz', {
  7804. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7805. '_'
  7806. ),
  7807. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7808. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7809. '_'
  7810. ),
  7811. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7812. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7813. longDateFormat: {
  7814. LT: 'h:mm A',
  7815. LTS: 'h:mm:ss A',
  7816. L: 'DD/MM/YYYY',
  7817. LL: 'D MMMM YYYY',
  7818. LLL: 'D MMMM YYYY h:mm A',
  7819. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7820. },
  7821. calendar: {
  7822. sameDay: '[Today at] LT',
  7823. nextDay: '[Tomorrow at] LT',
  7824. nextWeek: 'dddd [at] LT',
  7825. lastDay: '[Yesterday at] LT',
  7826. lastWeek: '[Last] dddd [at] LT',
  7827. sameElse: 'L',
  7828. },
  7829. relativeTime: {
  7830. future: 'in %s',
  7831. past: '%s ago',
  7832. s: 'a few seconds',
  7833. ss: '%d seconds',
  7834. m: 'a minute',
  7835. mm: '%d minutes',
  7836. h: 'an hour',
  7837. hh: '%d hours',
  7838. d: 'a day',
  7839. dd: '%d days',
  7840. M: 'a month',
  7841. MM: '%d months',
  7842. y: 'a year',
  7843. yy: '%d years',
  7844. },
  7845. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7846. ordinal: function (number) {
  7847. var b = number % 10,
  7848. output =
  7849. ~~((number % 100) / 10) === 1
  7850. ? 'th'
  7851. : b === 1
  7852. ? 'st'
  7853. : b === 2
  7854. ? 'nd'
  7855. : b === 3
  7856. ? 'rd'
  7857. : 'th';
  7858. return number + output;
  7859. },
  7860. week: {
  7861. dow: 1, // Monday is the first day of the week.
  7862. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7863. },
  7864. });
  7865. //! moment.js locale configuration
  7866. hooks.defineLocale('en-sg', {
  7867. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7868. '_'
  7869. ),
  7870. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7871. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7872. '_'
  7873. ),
  7874. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7875. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7876. longDateFormat: {
  7877. LT: 'HH:mm',
  7878. LTS: 'HH:mm:ss',
  7879. L: 'DD/MM/YYYY',
  7880. LL: 'D MMMM YYYY',
  7881. LLL: 'D MMMM YYYY HH:mm',
  7882. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7883. },
  7884. calendar: {
  7885. sameDay: '[Today at] LT',
  7886. nextDay: '[Tomorrow at] LT',
  7887. nextWeek: 'dddd [at] LT',
  7888. lastDay: '[Yesterday at] LT',
  7889. lastWeek: '[Last] dddd [at] LT',
  7890. sameElse: 'L',
  7891. },
  7892. relativeTime: {
  7893. future: 'in %s',
  7894. past: '%s ago',
  7895. s: 'a few seconds',
  7896. ss: '%d seconds',
  7897. m: 'a minute',
  7898. mm: '%d minutes',
  7899. h: 'an hour',
  7900. hh: '%d hours',
  7901. d: 'a day',
  7902. dd: '%d days',
  7903. M: 'a month',
  7904. MM: '%d months',
  7905. y: 'a year',
  7906. yy: '%d years',
  7907. },
  7908. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7909. ordinal: function (number) {
  7910. var b = number % 10,
  7911. output =
  7912. ~~((number % 100) / 10) === 1
  7913. ? 'th'
  7914. : b === 1
  7915. ? 'st'
  7916. : b === 2
  7917. ? 'nd'
  7918. : b === 3
  7919. ? 'rd'
  7920. : 'th';
  7921. return number + output;
  7922. },
  7923. week: {
  7924. dow: 1, // Monday is the first day of the week.
  7925. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7926. },
  7927. });
  7928. //! moment.js locale configuration
  7929. hooks.defineLocale('eo', {
  7930. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
  7931. '_'
  7932. ),
  7933. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  7934. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  7935. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  7936. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  7937. longDateFormat: {
  7938. LT: 'HH:mm',
  7939. LTS: 'HH:mm:ss',
  7940. L: 'YYYY-MM-DD',
  7941. LL: '[la] D[-an de] MMMM, YYYY',
  7942. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  7943. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  7944. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
  7945. },
  7946. meridiemParse: /[ap]\.t\.m/i,
  7947. isPM: function (input) {
  7948. return input.charAt(0).toLowerCase() === 'p';
  7949. },
  7950. meridiem: function (hours, minutes, isLower) {
  7951. if (hours > 11) {
  7952. return isLower ? 'p.t.m.' : 'P.T.M.';
  7953. } else {
  7954. return isLower ? 'a.t.m.' : 'A.T.M.';
  7955. }
  7956. },
  7957. calendar: {
  7958. sameDay: '[Hodiaŭ je] LT',
  7959. nextDay: '[Morgaŭ je] LT',
  7960. nextWeek: 'dddd[n je] LT',
  7961. lastDay: '[Hieraŭ je] LT',
  7962. lastWeek: '[pasintan] dddd[n je] LT',
  7963. sameElse: 'L',
  7964. },
  7965. relativeTime: {
  7966. future: 'post %s',
  7967. past: 'antaŭ %s',
  7968. s: 'kelkaj sekundoj',
  7969. ss: '%d sekundoj',
  7970. m: 'unu minuto',
  7971. mm: '%d minutoj',
  7972. h: 'unu horo',
  7973. hh: '%d horoj',
  7974. d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
  7975. dd: '%d tagoj',
  7976. M: 'unu monato',
  7977. MM: '%d monatoj',
  7978. y: 'unu jaro',
  7979. yy: '%d jaroj',
  7980. },
  7981. dayOfMonthOrdinalParse: /\d{1,2}a/,
  7982. ordinal: '%da',
  7983. week: {
  7984. dow: 1, // Monday is the first day of the week.
  7985. doy: 7, // The week that contains Jan 7th is the first week of the year.
  7986. },
  7987. });
  7988. //! moment.js locale configuration
  7989. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  7990. '_'
  7991. ),
  7992. monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  7993. monthsParse$2 = [
  7994. /^ene/i,
  7995. /^feb/i,
  7996. /^mar/i,
  7997. /^abr/i,
  7998. /^may/i,
  7999. /^jun/i,
  8000. /^jul/i,
  8001. /^ago/i,
  8002. /^sep/i,
  8003. /^oct/i,
  8004. /^nov/i,
  8005. /^dic/i,
  8006. ],
  8007. monthsRegex$3 = /^(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;
  8008. hooks.defineLocale('es-do', {
  8009. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8010. '_'
  8011. ),
  8012. monthsShort: function (m, format) {
  8013. if (!m) {
  8014. return monthsShortDot;
  8015. } else if (/-MMM-/.test(format)) {
  8016. return monthsShort$1[m.month()];
  8017. } else {
  8018. return monthsShortDot[m.month()];
  8019. }
  8020. },
  8021. monthsRegex: monthsRegex$3,
  8022. monthsShortRegex: monthsRegex$3,
  8023. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8024. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8025. monthsParse: monthsParse$2,
  8026. longMonthsParse: monthsParse$2,
  8027. shortMonthsParse: monthsParse$2,
  8028. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8029. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8030. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8031. weekdaysParseExact: true,
  8032. longDateFormat: {
  8033. LT: 'h:mm A',
  8034. LTS: 'h:mm:ss A',
  8035. L: 'DD/MM/YYYY',
  8036. LL: 'D [de] MMMM [de] YYYY',
  8037. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8038. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8039. },
  8040. calendar: {
  8041. sameDay: function () {
  8042. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8043. },
  8044. nextDay: function () {
  8045. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8046. },
  8047. nextWeek: function () {
  8048. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8049. },
  8050. lastDay: function () {
  8051. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8052. },
  8053. lastWeek: function () {
  8054. return (
  8055. '[el] dddd [pasado a la' +
  8056. (this.hours() !== 1 ? 's' : '') +
  8057. '] LT'
  8058. );
  8059. },
  8060. sameElse: 'L',
  8061. },
  8062. relativeTime: {
  8063. future: 'en %s',
  8064. past: 'hace %s',
  8065. s: 'unos segundos',
  8066. ss: '%d segundos',
  8067. m: 'un minuto',
  8068. mm: '%d minutos',
  8069. h: 'una hora',
  8070. hh: '%d horas',
  8071. d: 'un día',
  8072. dd: '%d días',
  8073. M: 'un mes',
  8074. MM: '%d meses',
  8075. y: 'un año',
  8076. yy: '%d años',
  8077. },
  8078. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8079. ordinal: '%dº',
  8080. week: {
  8081. dow: 1, // Monday is the first day of the week.
  8082. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8083. },
  8084. });
  8085. //! moment.js locale configuration
  8086. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8087. '_'
  8088. ),
  8089. monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8090. monthsParse$3 = [
  8091. /^ene/i,
  8092. /^feb/i,
  8093. /^mar/i,
  8094. /^abr/i,
  8095. /^may/i,
  8096. /^jun/i,
  8097. /^jul/i,
  8098. /^ago/i,
  8099. /^sep/i,
  8100. /^oct/i,
  8101. /^nov/i,
  8102. /^dic/i,
  8103. ],
  8104. monthsRegex$4 = /^(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;
  8105. hooks.defineLocale('es-us', {
  8106. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8107. '_'
  8108. ),
  8109. monthsShort: function (m, format) {
  8110. if (!m) {
  8111. return monthsShortDot$1;
  8112. } else if (/-MMM-/.test(format)) {
  8113. return monthsShort$2[m.month()];
  8114. } else {
  8115. return monthsShortDot$1[m.month()];
  8116. }
  8117. },
  8118. monthsRegex: monthsRegex$4,
  8119. monthsShortRegex: monthsRegex$4,
  8120. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8121. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8122. monthsParse: monthsParse$3,
  8123. longMonthsParse: monthsParse$3,
  8124. shortMonthsParse: monthsParse$3,
  8125. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8126. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8127. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8128. weekdaysParseExact: true,
  8129. longDateFormat: {
  8130. LT: 'h:mm A',
  8131. LTS: 'h:mm:ss A',
  8132. L: 'MM/DD/YYYY',
  8133. LL: 'D [de] MMMM [de] YYYY',
  8134. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8135. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8136. },
  8137. calendar: {
  8138. sameDay: function () {
  8139. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8140. },
  8141. nextDay: function () {
  8142. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8143. },
  8144. nextWeek: function () {
  8145. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8146. },
  8147. lastDay: function () {
  8148. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8149. },
  8150. lastWeek: function () {
  8151. return (
  8152. '[el] dddd [pasado a la' +
  8153. (this.hours() !== 1 ? 's' : '') +
  8154. '] LT'
  8155. );
  8156. },
  8157. sameElse: 'L',
  8158. },
  8159. relativeTime: {
  8160. future: 'en %s',
  8161. past: 'hace %s',
  8162. s: 'unos segundos',
  8163. ss: '%d segundos',
  8164. m: 'un minuto',
  8165. mm: '%d minutos',
  8166. h: 'una hora',
  8167. hh: '%d horas',
  8168. d: 'un día',
  8169. dd: '%d días',
  8170. M: 'un mes',
  8171. MM: '%d meses',
  8172. y: 'un año',
  8173. yy: '%d años',
  8174. },
  8175. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8176. ordinal: '%dº',
  8177. week: {
  8178. dow: 0, // Sunday is the first day of the week.
  8179. doy: 6, // The week that contains Jan 6th is the first week of the year.
  8180. },
  8181. });
  8182. //! moment.js locale configuration
  8183. var monthsShortDot$2 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8184. '_'
  8185. ),
  8186. monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8187. monthsParse$4 = [
  8188. /^ene/i,
  8189. /^feb/i,
  8190. /^mar/i,
  8191. /^abr/i,
  8192. /^may/i,
  8193. /^jun/i,
  8194. /^jul/i,
  8195. /^ago/i,
  8196. /^sep/i,
  8197. /^oct/i,
  8198. /^nov/i,
  8199. /^dic/i,
  8200. ],
  8201. monthsRegex$5 = /^(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;
  8202. hooks.defineLocale('es', {
  8203. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8204. '_'
  8205. ),
  8206. monthsShort: function (m, format) {
  8207. if (!m) {
  8208. return monthsShortDot$2;
  8209. } else if (/-MMM-/.test(format)) {
  8210. return monthsShort$3[m.month()];
  8211. } else {
  8212. return monthsShortDot$2[m.month()];
  8213. }
  8214. },
  8215. monthsRegex: monthsRegex$5,
  8216. monthsShortRegex: monthsRegex$5,
  8217. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8218. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8219. monthsParse: monthsParse$4,
  8220. longMonthsParse: monthsParse$4,
  8221. shortMonthsParse: monthsParse$4,
  8222. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8223. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8224. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8225. weekdaysParseExact: true,
  8226. longDateFormat: {
  8227. LT: 'H:mm',
  8228. LTS: 'H:mm:ss',
  8229. L: 'DD/MM/YYYY',
  8230. LL: 'D [de] MMMM [de] YYYY',
  8231. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8232. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8233. },
  8234. calendar: {
  8235. sameDay: function () {
  8236. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8237. },
  8238. nextDay: function () {
  8239. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8240. },
  8241. nextWeek: function () {
  8242. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8243. },
  8244. lastDay: function () {
  8245. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8246. },
  8247. lastWeek: function () {
  8248. return (
  8249. '[el] dddd [pasado a la' +
  8250. (this.hours() !== 1 ? 's' : '') +
  8251. '] LT'
  8252. );
  8253. },
  8254. sameElse: 'L',
  8255. },
  8256. relativeTime: {
  8257. future: 'en %s',
  8258. past: 'hace %s',
  8259. s: 'unos segundos',
  8260. ss: '%d segundos',
  8261. m: 'un minuto',
  8262. mm: '%d minutos',
  8263. h: 'una hora',
  8264. hh: '%d horas',
  8265. d: 'un día',
  8266. dd: '%d días',
  8267. M: 'un mes',
  8268. MM: '%d meses',
  8269. y: 'un año',
  8270. yy: '%d años',
  8271. },
  8272. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8273. ordinal: '%dº',
  8274. week: {
  8275. dow: 1, // Monday is the first day of the week.
  8276. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8277. },
  8278. invalidDate: 'Fecha invalida',
  8279. });
  8280. //! moment.js locale configuration
  8281. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  8282. var format = {
  8283. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  8284. ss: [number + 'sekundi', number + 'sekundit'],
  8285. m: ['ühe minuti', 'üks minut'],
  8286. mm: [number + ' minuti', number + ' minutit'],
  8287. h: ['ühe tunni', 'tund aega', 'üks tund'],
  8288. hh: [number + ' tunni', number + ' tundi'],
  8289. d: ['ühe päeva', 'üks päev'],
  8290. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  8291. MM: [number + ' kuu', number + ' kuud'],
  8292. y: ['ühe aasta', 'aasta', 'üks aasta'],
  8293. yy: [number + ' aasta', number + ' aastat'],
  8294. };
  8295. if (withoutSuffix) {
  8296. return format[key][2] ? format[key][2] : format[key][1];
  8297. }
  8298. return isFuture ? format[key][0] : format[key][1];
  8299. }
  8300. hooks.defineLocale('et', {
  8301. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
  8302. '_'
  8303. ),
  8304. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(
  8305. '_'
  8306. ),
  8307. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
  8308. '_'
  8309. ),
  8310. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  8311. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  8312. longDateFormat: {
  8313. LT: 'H:mm',
  8314. LTS: 'H:mm:ss',
  8315. L: 'DD.MM.YYYY',
  8316. LL: 'D. MMMM YYYY',
  8317. LLL: 'D. MMMM YYYY H:mm',
  8318. LLLL: 'dddd, D. MMMM YYYY H:mm',
  8319. },
  8320. calendar: {
  8321. sameDay: '[Täna,] LT',
  8322. nextDay: '[Homme,] LT',
  8323. nextWeek: '[Järgmine] dddd LT',
  8324. lastDay: '[Eile,] LT',
  8325. lastWeek: '[Eelmine] dddd LT',
  8326. sameElse: 'L',
  8327. },
  8328. relativeTime: {
  8329. future: '%s pärast',
  8330. past: '%s tagasi',
  8331. s: processRelativeTime$3,
  8332. ss: processRelativeTime$3,
  8333. m: processRelativeTime$3,
  8334. mm: processRelativeTime$3,
  8335. h: processRelativeTime$3,
  8336. hh: processRelativeTime$3,
  8337. d: processRelativeTime$3,
  8338. dd: '%d päeva',
  8339. M: processRelativeTime$3,
  8340. MM: processRelativeTime$3,
  8341. y: processRelativeTime$3,
  8342. yy: processRelativeTime$3,
  8343. },
  8344. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8345. ordinal: '%d.',
  8346. week: {
  8347. dow: 1, // Monday is the first day of the week.
  8348. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8349. },
  8350. });
  8351. //! moment.js locale configuration
  8352. hooks.defineLocale('eu', {
  8353. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
  8354. '_'
  8355. ),
  8356. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
  8357. '_'
  8358. ),
  8359. monthsParseExact: true,
  8360. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
  8361. '_'
  8362. ),
  8363. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  8364. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  8365. weekdaysParseExact: true,
  8366. longDateFormat: {
  8367. LT: 'HH:mm',
  8368. LTS: 'HH:mm:ss',
  8369. L: 'YYYY-MM-DD',
  8370. LL: 'YYYY[ko] MMMM[ren] D[a]',
  8371. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  8372. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  8373. l: 'YYYY-M-D',
  8374. ll: 'YYYY[ko] MMM D[a]',
  8375. lll: 'YYYY[ko] MMM D[a] HH:mm',
  8376. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
  8377. },
  8378. calendar: {
  8379. sameDay: '[gaur] LT[etan]',
  8380. nextDay: '[bihar] LT[etan]',
  8381. nextWeek: 'dddd LT[etan]',
  8382. lastDay: '[atzo] LT[etan]',
  8383. lastWeek: '[aurreko] dddd LT[etan]',
  8384. sameElse: 'L',
  8385. },
  8386. relativeTime: {
  8387. future: '%s barru',
  8388. past: 'duela %s',
  8389. s: 'segundo batzuk',
  8390. ss: '%d segundo',
  8391. m: 'minutu bat',
  8392. mm: '%d minutu',
  8393. h: 'ordu bat',
  8394. hh: '%d ordu',
  8395. d: 'egun bat',
  8396. dd: '%d egun',
  8397. M: 'hilabete bat',
  8398. MM: '%d hilabete',
  8399. y: 'urte bat',
  8400. yy: '%d urte',
  8401. },
  8402. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8403. ordinal: '%d.',
  8404. week: {
  8405. dow: 1, // Monday is the first day of the week.
  8406. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8407. },
  8408. });
  8409. //! moment.js locale configuration
  8410. var symbolMap$5 = {
  8411. '1': '۱',
  8412. '2': '۲',
  8413. '3': '۳',
  8414. '4': '۴',
  8415. '5': '۵',
  8416. '6': '۶',
  8417. '7': '۷',
  8418. '8': '۸',
  8419. '9': '۹',
  8420. '0': '۰',
  8421. },
  8422. numberMap$4 = {
  8423. '۱': '1',
  8424. '۲': '2',
  8425. '۳': '3',
  8426. '۴': '4',
  8427. '۵': '5',
  8428. '۶': '6',
  8429. '۷': '7',
  8430. '۸': '8',
  8431. '۹': '9',
  8432. '۰': '0',
  8433. };
  8434. hooks.defineLocale('fa', {
  8435. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8436. '_'
  8437. ),
  8438. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8439. '_'
  8440. ),
  8441. weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8442. '_'
  8443. ),
  8444. weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8445. '_'
  8446. ),
  8447. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  8448. weekdaysParseExact: true,
  8449. longDateFormat: {
  8450. LT: 'HH:mm',
  8451. LTS: 'HH:mm:ss',
  8452. L: 'DD/MM/YYYY',
  8453. LL: 'D MMMM YYYY',
  8454. LLL: 'D MMMM YYYY HH:mm',
  8455. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8456. },
  8457. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  8458. isPM: function (input) {
  8459. return /بعد از ظهر/.test(input);
  8460. },
  8461. meridiem: function (hour, minute, isLower) {
  8462. if (hour < 12) {
  8463. return 'قبل از ظهر';
  8464. } else {
  8465. return 'بعد از ظهر';
  8466. }
  8467. },
  8468. calendar: {
  8469. sameDay: '[امروز ساعت] LT',
  8470. nextDay: '[فردا ساعت] LT',
  8471. nextWeek: 'dddd [ساعت] LT',
  8472. lastDay: '[دیروز ساعت] LT',
  8473. lastWeek: 'dddd [پیش] [ساعت] LT',
  8474. sameElse: 'L',
  8475. },
  8476. relativeTime: {
  8477. future: 'در %s',
  8478. past: '%s پیش',
  8479. s: 'چند ثانیه',
  8480. ss: '%d ثانیه',
  8481. m: 'یک دقیقه',
  8482. mm: '%d دقیقه',
  8483. h: 'یک ساعت',
  8484. hh: '%d ساعت',
  8485. d: 'یک روز',
  8486. dd: '%d روز',
  8487. M: 'یک ماه',
  8488. MM: '%d ماه',
  8489. y: 'یک سال',
  8490. yy: '%d سال',
  8491. },
  8492. preparse: function (string) {
  8493. return string
  8494. .replace(/[۰-۹]/g, function (match) {
  8495. return numberMap$4[match];
  8496. })
  8497. .replace(/،/g, ',');
  8498. },
  8499. postformat: function (string) {
  8500. return string
  8501. .replace(/\d/g, function (match) {
  8502. return symbolMap$5[match];
  8503. })
  8504. .replace(/,/g, '،');
  8505. },
  8506. dayOfMonthOrdinalParse: /\d{1,2}م/,
  8507. ordinal: '%dم',
  8508. week: {
  8509. dow: 6, // Saturday is the first day of the week.
  8510. doy: 12, // The week that contains Jan 12th is the first week of the year.
  8511. },
  8512. });
  8513. //! moment.js locale configuration
  8514. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
  8515. ' '
  8516. ),
  8517. numbersFuture = [
  8518. 'nolla',
  8519. 'yhden',
  8520. 'kahden',
  8521. 'kolmen',
  8522. 'neljän',
  8523. 'viiden',
  8524. 'kuuden',
  8525. numbersPast[7],
  8526. numbersPast[8],
  8527. numbersPast[9],
  8528. ];
  8529. function translate$2(number, withoutSuffix, key, isFuture) {
  8530. var result = '';
  8531. switch (key) {
  8532. case 's':
  8533. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  8534. case 'ss':
  8535. result = isFuture ? 'sekunnin' : 'sekuntia';
  8536. break;
  8537. case 'm':
  8538. return isFuture ? 'minuutin' : 'minuutti';
  8539. case 'mm':
  8540. result = isFuture ? 'minuutin' : 'minuuttia';
  8541. break;
  8542. case 'h':
  8543. return isFuture ? 'tunnin' : 'tunti';
  8544. case 'hh':
  8545. result = isFuture ? 'tunnin' : 'tuntia';
  8546. break;
  8547. case 'd':
  8548. return isFuture ? 'päivän' : 'päivä';
  8549. case 'dd':
  8550. result = isFuture ? 'päivän' : 'päivää';
  8551. break;
  8552. case 'M':
  8553. return isFuture ? 'kuukauden' : 'kuukausi';
  8554. case 'MM':
  8555. result = isFuture ? 'kuukauden' : 'kuukautta';
  8556. break;
  8557. case 'y':
  8558. return isFuture ? 'vuoden' : 'vuosi';
  8559. case 'yy':
  8560. result = isFuture ? 'vuoden' : 'vuotta';
  8561. break;
  8562. }
  8563. result = verbalNumber(number, isFuture) + ' ' + result;
  8564. return result;
  8565. }
  8566. function verbalNumber(number, isFuture) {
  8567. return number < 10
  8568. ? isFuture
  8569. ? numbersFuture[number]
  8570. : numbersPast[number]
  8571. : number;
  8572. }
  8573. hooks.defineLocale('fi', {
  8574. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
  8575. '_'
  8576. ),
  8577. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
  8578. '_'
  8579. ),
  8580. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
  8581. '_'
  8582. ),
  8583. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8584. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8585. longDateFormat: {
  8586. LT: 'HH.mm',
  8587. LTS: 'HH.mm.ss',
  8588. L: 'DD.MM.YYYY',
  8589. LL: 'Do MMMM[ta] YYYY',
  8590. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  8591. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  8592. l: 'D.M.YYYY',
  8593. ll: 'Do MMM YYYY',
  8594. lll: 'Do MMM YYYY, [klo] HH.mm',
  8595. llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
  8596. },
  8597. calendar: {
  8598. sameDay: '[tänään] [klo] LT',
  8599. nextDay: '[huomenna] [klo] LT',
  8600. nextWeek: 'dddd [klo] LT',
  8601. lastDay: '[eilen] [klo] LT',
  8602. lastWeek: '[viime] dddd[na] [klo] LT',
  8603. sameElse: 'L',
  8604. },
  8605. relativeTime: {
  8606. future: '%s päästä',
  8607. past: '%s sitten',
  8608. s: translate$2,
  8609. ss: translate$2,
  8610. m: translate$2,
  8611. mm: translate$2,
  8612. h: translate$2,
  8613. hh: translate$2,
  8614. d: translate$2,
  8615. dd: translate$2,
  8616. M: translate$2,
  8617. MM: translate$2,
  8618. y: translate$2,
  8619. yy: translate$2,
  8620. },
  8621. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8622. ordinal: '%d.',
  8623. week: {
  8624. dow: 1, // Monday is the first day of the week.
  8625. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8626. },
  8627. });
  8628. //! moment.js locale configuration
  8629. hooks.defineLocale('fil', {
  8630. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  8631. '_'
  8632. ),
  8633. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  8634. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  8635. '_'
  8636. ),
  8637. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  8638. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  8639. longDateFormat: {
  8640. LT: 'HH:mm',
  8641. LTS: 'HH:mm:ss',
  8642. L: 'MM/D/YYYY',
  8643. LL: 'MMMM D, YYYY',
  8644. LLL: 'MMMM D, YYYY HH:mm',
  8645. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  8646. },
  8647. calendar: {
  8648. sameDay: 'LT [ngayong araw]',
  8649. nextDay: '[Bukas ng] LT',
  8650. nextWeek: 'LT [sa susunod na] dddd',
  8651. lastDay: 'LT [kahapon]',
  8652. lastWeek: 'LT [noong nakaraang] dddd',
  8653. sameElse: 'L',
  8654. },
  8655. relativeTime: {
  8656. future: 'sa loob ng %s',
  8657. past: '%s ang nakalipas',
  8658. s: 'ilang segundo',
  8659. ss: '%d segundo',
  8660. m: 'isang minuto',
  8661. mm: '%d minuto',
  8662. h: 'isang oras',
  8663. hh: '%d oras',
  8664. d: 'isang araw',
  8665. dd: '%d araw',
  8666. M: 'isang buwan',
  8667. MM: '%d buwan',
  8668. y: 'isang taon',
  8669. yy: '%d taon',
  8670. },
  8671. dayOfMonthOrdinalParse: /\d{1,2}/,
  8672. ordinal: function (number) {
  8673. return number;
  8674. },
  8675. week: {
  8676. dow: 1, // Monday is the first day of the week.
  8677. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8678. },
  8679. });
  8680. //! moment.js locale configuration
  8681. hooks.defineLocale('fo', {
  8682. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
  8683. '_'
  8684. ),
  8685. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8686. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
  8687. '_'
  8688. ),
  8689. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  8690. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  8691. longDateFormat: {
  8692. LT: 'HH:mm',
  8693. LTS: 'HH:mm:ss',
  8694. L: 'DD/MM/YYYY',
  8695. LL: 'D MMMM YYYY',
  8696. LLL: 'D MMMM YYYY HH:mm',
  8697. LLLL: 'dddd D. MMMM, YYYY HH:mm',
  8698. },
  8699. calendar: {
  8700. sameDay: '[Í dag kl.] LT',
  8701. nextDay: '[Í morgin kl.] LT',
  8702. nextWeek: 'dddd [kl.] LT',
  8703. lastDay: '[Í gjár kl.] LT',
  8704. lastWeek: '[síðstu] dddd [kl] LT',
  8705. sameElse: 'L',
  8706. },
  8707. relativeTime: {
  8708. future: 'um %s',
  8709. past: '%s síðani',
  8710. s: 'fá sekund',
  8711. ss: '%d sekundir',
  8712. m: 'ein minuttur',
  8713. mm: '%d minuttir',
  8714. h: 'ein tími',
  8715. hh: '%d tímar',
  8716. d: 'ein dagur',
  8717. dd: '%d dagar',
  8718. M: 'ein mánaður',
  8719. MM: '%d mánaðir',
  8720. y: 'eitt ár',
  8721. yy: '%d ár',
  8722. },
  8723. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8724. ordinal: '%d.',
  8725. week: {
  8726. dow: 1, // Monday is the first day of the week.
  8727. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8728. },
  8729. });
  8730. //! moment.js locale configuration
  8731. hooks.defineLocale('fr-ca', {
  8732. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8733. '_'
  8734. ),
  8735. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8736. '_'
  8737. ),
  8738. monthsParseExact: true,
  8739. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8740. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8741. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8742. weekdaysParseExact: true,
  8743. longDateFormat: {
  8744. LT: 'HH:mm',
  8745. LTS: 'HH:mm:ss',
  8746. L: 'YYYY-MM-DD',
  8747. LL: 'D MMMM YYYY',
  8748. LLL: 'D MMMM YYYY HH:mm',
  8749. LLLL: 'dddd D MMMM YYYY HH:mm',
  8750. },
  8751. calendar: {
  8752. sameDay: '[Aujourd’hui à] LT',
  8753. nextDay: '[Demain à] LT',
  8754. nextWeek: 'dddd [à] LT',
  8755. lastDay: '[Hier à] LT',
  8756. lastWeek: 'dddd [dernier à] LT',
  8757. sameElse: 'L',
  8758. },
  8759. relativeTime: {
  8760. future: 'dans %s',
  8761. past: 'il y a %s',
  8762. s: 'quelques secondes',
  8763. ss: '%d secondes',
  8764. m: 'une minute',
  8765. mm: '%d minutes',
  8766. h: 'une heure',
  8767. hh: '%d heures',
  8768. d: 'un jour',
  8769. dd: '%d jours',
  8770. M: 'un mois',
  8771. MM: '%d mois',
  8772. y: 'un an',
  8773. yy: '%d ans',
  8774. },
  8775. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  8776. ordinal: function (number, period) {
  8777. switch (period) {
  8778. // Words with masculine grammatical gender: mois, trimestre, jour
  8779. default:
  8780. case 'M':
  8781. case 'Q':
  8782. case 'D':
  8783. case 'DDD':
  8784. case 'd':
  8785. return number + (number === 1 ? 'er' : 'e');
  8786. // Words with feminine grammatical gender: semaine
  8787. case 'w':
  8788. case 'W':
  8789. return number + (number === 1 ? 're' : 'e');
  8790. }
  8791. },
  8792. });
  8793. //! moment.js locale configuration
  8794. hooks.defineLocale('fr-ch', {
  8795. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8796. '_'
  8797. ),
  8798. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8799. '_'
  8800. ),
  8801. monthsParseExact: true,
  8802. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8803. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8804. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8805. weekdaysParseExact: true,
  8806. longDateFormat: {
  8807. LT: 'HH:mm',
  8808. LTS: 'HH:mm:ss',
  8809. L: 'DD.MM.YYYY',
  8810. LL: 'D MMMM YYYY',
  8811. LLL: 'D MMMM YYYY HH:mm',
  8812. LLLL: 'dddd D MMMM YYYY HH:mm',
  8813. },
  8814. calendar: {
  8815. sameDay: '[Aujourd’hui à] LT',
  8816. nextDay: '[Demain à] LT',
  8817. nextWeek: 'dddd [à] LT',
  8818. lastDay: '[Hier à] LT',
  8819. lastWeek: 'dddd [dernier à] LT',
  8820. sameElse: 'L',
  8821. },
  8822. relativeTime: {
  8823. future: 'dans %s',
  8824. past: 'il y a %s',
  8825. s: 'quelques secondes',
  8826. ss: '%d secondes',
  8827. m: 'une minute',
  8828. mm: '%d minutes',
  8829. h: 'une heure',
  8830. hh: '%d heures',
  8831. d: 'un jour',
  8832. dd: '%d jours',
  8833. M: 'un mois',
  8834. MM: '%d mois',
  8835. y: 'un an',
  8836. yy: '%d ans',
  8837. },
  8838. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  8839. ordinal: function (number, period) {
  8840. switch (period) {
  8841. // Words with masculine grammatical gender: mois, trimestre, jour
  8842. default:
  8843. case 'M':
  8844. case 'Q':
  8845. case 'D':
  8846. case 'DDD':
  8847. case 'd':
  8848. return number + (number === 1 ? 'er' : 'e');
  8849. // Words with feminine grammatical gender: semaine
  8850. case 'w':
  8851. case 'W':
  8852. return number + (number === 1 ? 're' : 'e');
  8853. }
  8854. },
  8855. week: {
  8856. dow: 1, // Monday is the first day of the week.
  8857. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8858. },
  8859. });
  8860. //! moment.js locale configuration
  8861. var monthsStrictRegex$1 = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  8862. monthsShortStrictRegex$1 = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  8863. monthsRegex$6 = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  8864. monthsParse$5 = [
  8865. /^janv/i,
  8866. /^févr/i,
  8867. /^mars/i,
  8868. /^avr/i,
  8869. /^mai/i,
  8870. /^juin/i,
  8871. /^juil/i,
  8872. /^août/i,
  8873. /^sept/i,
  8874. /^oct/i,
  8875. /^nov/i,
  8876. /^déc/i,
  8877. ];
  8878. hooks.defineLocale('fr', {
  8879. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8880. '_'
  8881. ),
  8882. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8883. '_'
  8884. ),
  8885. monthsRegex: monthsRegex$6,
  8886. monthsShortRegex: monthsRegex$6,
  8887. monthsStrictRegex: monthsStrictRegex$1,
  8888. monthsShortStrictRegex: monthsShortStrictRegex$1,
  8889. monthsParse: monthsParse$5,
  8890. longMonthsParse: monthsParse$5,
  8891. shortMonthsParse: monthsParse$5,
  8892. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8893. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8894. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8895. weekdaysParseExact: true,
  8896. longDateFormat: {
  8897. LT: 'HH:mm',
  8898. LTS: 'HH:mm:ss',
  8899. L: 'DD/MM/YYYY',
  8900. LL: 'D MMMM YYYY',
  8901. LLL: 'D MMMM YYYY HH:mm',
  8902. LLLL: 'dddd D MMMM YYYY HH:mm',
  8903. },
  8904. calendar: {
  8905. sameDay: '[Aujourd’hui à] LT',
  8906. nextDay: '[Demain à] LT',
  8907. nextWeek: 'dddd [à] LT',
  8908. lastDay: '[Hier à] LT',
  8909. lastWeek: 'dddd [dernier à] LT',
  8910. sameElse: 'L',
  8911. },
  8912. relativeTime: {
  8913. future: 'dans %s',
  8914. past: 'il y a %s',
  8915. s: 'quelques secondes',
  8916. ss: '%d secondes',
  8917. m: 'une minute',
  8918. mm: '%d minutes',
  8919. h: 'une heure',
  8920. hh: '%d heures',
  8921. d: 'un jour',
  8922. dd: '%d jours',
  8923. M: 'un mois',
  8924. MM: '%d mois',
  8925. y: 'un an',
  8926. yy: '%d ans',
  8927. },
  8928. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  8929. ordinal: function (number, period) {
  8930. switch (period) {
  8931. // TODO: Return 'e' when day of month > 1. Move this case inside
  8932. // block for masculine words below.
  8933. // See https://github.com/moment/moment/issues/3375
  8934. case 'D':
  8935. return number + (number === 1 ? 'er' : '');
  8936. // Words with masculine grammatical gender: mois, trimestre, jour
  8937. default:
  8938. case 'M':
  8939. case 'Q':
  8940. case 'DDD':
  8941. case 'd':
  8942. return number + (number === 1 ? 'er' : 'e');
  8943. // Words with feminine grammatical gender: semaine
  8944. case 'w':
  8945. case 'W':
  8946. return number + (number === 1 ? 're' : 'e');
  8947. }
  8948. },
  8949. week: {
  8950. dow: 1, // Monday is the first day of the week.
  8951. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8952. },
  8953. });
  8954. //! moment.js locale configuration
  8955. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
  8956. '_'
  8957. ),
  8958. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
  8959. '_'
  8960. );
  8961. hooks.defineLocale('fy', {
  8962. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  8963. '_'
  8964. ),
  8965. monthsShort: function (m, format) {
  8966. if (!m) {
  8967. return monthsShortWithDots;
  8968. } else if (/-MMM-/.test(format)) {
  8969. return monthsShortWithoutDots[m.month()];
  8970. } else {
  8971. return monthsShortWithDots[m.month()];
  8972. }
  8973. },
  8974. monthsParseExact: true,
  8975. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  8976. '_'
  8977. ),
  8978. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  8979. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  8980. weekdaysParseExact: true,
  8981. longDateFormat: {
  8982. LT: 'HH:mm',
  8983. LTS: 'HH:mm:ss',
  8984. L: 'DD-MM-YYYY',
  8985. LL: 'D MMMM YYYY',
  8986. LLL: 'D MMMM YYYY HH:mm',
  8987. LLLL: 'dddd D MMMM YYYY HH:mm',
  8988. },
  8989. calendar: {
  8990. sameDay: '[hjoed om] LT',
  8991. nextDay: '[moarn om] LT',
  8992. nextWeek: 'dddd [om] LT',
  8993. lastDay: '[juster om] LT',
  8994. lastWeek: '[ôfrûne] dddd [om] LT',
  8995. sameElse: 'L',
  8996. },
  8997. relativeTime: {
  8998. future: 'oer %s',
  8999. past: '%s lyn',
  9000. s: 'in pear sekonden',
  9001. ss: '%d sekonden',
  9002. m: 'ien minút',
  9003. mm: '%d minuten',
  9004. h: 'ien oere',
  9005. hh: '%d oeren',
  9006. d: 'ien dei',
  9007. dd: '%d dagen',
  9008. M: 'ien moanne',
  9009. MM: '%d moannen',
  9010. y: 'ien jier',
  9011. yy: '%d jierren',
  9012. },
  9013. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9014. ordinal: function (number) {
  9015. return (
  9016. number +
  9017. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  9018. );
  9019. },
  9020. week: {
  9021. dow: 1, // Monday is the first day of the week.
  9022. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9023. },
  9024. });
  9025. //! moment.js locale configuration
  9026. var months$6 = [
  9027. 'Eanáir',
  9028. 'Feabhra',
  9029. 'Márta',
  9030. 'Aibreán',
  9031. 'Bealtaine',
  9032. 'Meitheamh',
  9033. 'Iúil',
  9034. 'Lúnasa',
  9035. 'Meán Fómhair',
  9036. 'Deireadh Fómhair',
  9037. 'Samhain',
  9038. 'Nollaig',
  9039. ],
  9040. monthsShort$4 = [
  9041. 'Ean',
  9042. 'Feabh',
  9043. 'Márt',
  9044. 'Aib',
  9045. 'Beal',
  9046. 'Meith',
  9047. 'Iúil',
  9048. 'Lún',
  9049. 'M.F.',
  9050. 'D.F.',
  9051. 'Samh',
  9052. 'Noll',
  9053. ],
  9054. weekdays$1 = [
  9055. 'Dé Domhnaigh',
  9056. 'Dé Luain',
  9057. 'Dé Máirt',
  9058. 'Dé Céadaoin',
  9059. 'Déardaoin',
  9060. 'Dé hAoine',
  9061. 'Dé Sathairn',
  9062. ],
  9063. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  9064. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  9065. hooks.defineLocale('ga', {
  9066. months: months$6,
  9067. monthsShort: monthsShort$4,
  9068. monthsParseExact: true,
  9069. weekdays: weekdays$1,
  9070. weekdaysShort: weekdaysShort,
  9071. weekdaysMin: weekdaysMin,
  9072. longDateFormat: {
  9073. LT: 'HH:mm',
  9074. LTS: 'HH:mm:ss',
  9075. L: 'DD/MM/YYYY',
  9076. LL: 'D MMMM YYYY',
  9077. LLL: 'D MMMM YYYY HH:mm',
  9078. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9079. },
  9080. calendar: {
  9081. sameDay: '[Inniu ag] LT',
  9082. nextDay: '[Amárach ag] LT',
  9083. nextWeek: 'dddd [ag] LT',
  9084. lastDay: '[Inné ag] LT',
  9085. lastWeek: 'dddd [seo caite] [ag] LT',
  9086. sameElse: 'L',
  9087. },
  9088. relativeTime: {
  9089. future: 'i %s',
  9090. past: '%s ó shin',
  9091. s: 'cúpla soicind',
  9092. ss: '%d soicind',
  9093. m: 'nóiméad',
  9094. mm: '%d nóiméad',
  9095. h: 'uair an chloig',
  9096. hh: '%d uair an chloig',
  9097. d: 'lá',
  9098. dd: '%d lá',
  9099. M: 'mí',
  9100. MM: '%d míonna',
  9101. y: 'bliain',
  9102. yy: '%d bliain',
  9103. },
  9104. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9105. ordinal: function (number) {
  9106. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9107. return number + output;
  9108. },
  9109. week: {
  9110. dow: 1, // Monday is the first day of the week.
  9111. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9112. },
  9113. });
  9114. //! moment.js locale configuration
  9115. var months$7 = [
  9116. 'Am Faoilleach',
  9117. 'An Gearran',
  9118. 'Am Màrt',
  9119. 'An Giblean',
  9120. 'An Cèitean',
  9121. 'An t-Ògmhios',
  9122. 'An t-Iuchar',
  9123. 'An Lùnastal',
  9124. 'An t-Sultain',
  9125. 'An Dàmhair',
  9126. 'An t-Samhain',
  9127. 'An Dùbhlachd',
  9128. ],
  9129. monthsShort$5 = [
  9130. 'Faoi',
  9131. 'Gear',
  9132. 'Màrt',
  9133. 'Gibl',
  9134. 'Cèit',
  9135. 'Ògmh',
  9136. 'Iuch',
  9137. 'Lùn',
  9138. 'Sult',
  9139. 'Dàmh',
  9140. 'Samh',
  9141. 'Dùbh',
  9142. ],
  9143. weekdays$2 = [
  9144. 'Didòmhnaich',
  9145. 'Diluain',
  9146. 'Dimàirt',
  9147. 'Diciadain',
  9148. 'Diardaoin',
  9149. 'Dihaoine',
  9150. 'Disathairne',
  9151. ],
  9152. weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  9153. weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  9154. hooks.defineLocale('gd', {
  9155. months: months$7,
  9156. monthsShort: monthsShort$5,
  9157. monthsParseExact: true,
  9158. weekdays: weekdays$2,
  9159. weekdaysShort: weekdaysShort$1,
  9160. weekdaysMin: weekdaysMin$1,
  9161. longDateFormat: {
  9162. LT: 'HH:mm',
  9163. LTS: 'HH:mm:ss',
  9164. L: 'DD/MM/YYYY',
  9165. LL: 'D MMMM YYYY',
  9166. LLL: 'D MMMM YYYY HH:mm',
  9167. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9168. },
  9169. calendar: {
  9170. sameDay: '[An-diugh aig] LT',
  9171. nextDay: '[A-màireach aig] LT',
  9172. nextWeek: 'dddd [aig] LT',
  9173. lastDay: '[An-dè aig] LT',
  9174. lastWeek: 'dddd [seo chaidh] [aig] LT',
  9175. sameElse: 'L',
  9176. },
  9177. relativeTime: {
  9178. future: 'ann an %s',
  9179. past: 'bho chionn %s',
  9180. s: 'beagan diogan',
  9181. ss: '%d diogan',
  9182. m: 'mionaid',
  9183. mm: '%d mionaidean',
  9184. h: 'uair',
  9185. hh: '%d uairean',
  9186. d: 'latha',
  9187. dd: '%d latha',
  9188. M: 'mìos',
  9189. MM: '%d mìosan',
  9190. y: 'bliadhna',
  9191. yy: '%d bliadhna',
  9192. },
  9193. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9194. ordinal: function (number) {
  9195. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9196. return number + output;
  9197. },
  9198. week: {
  9199. dow: 1, // Monday is the first day of the week.
  9200. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9201. },
  9202. });
  9203. //! moment.js locale configuration
  9204. hooks.defineLocale('gl', {
  9205. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  9206. '_'
  9207. ),
  9208. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  9209. '_'
  9210. ),
  9211. monthsParseExact: true,
  9212. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9213. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9214. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9215. weekdaysParseExact: true,
  9216. longDateFormat: {
  9217. LT: 'H:mm',
  9218. LTS: 'H:mm:ss',
  9219. L: 'DD/MM/YYYY',
  9220. LL: 'D [de] MMMM [de] YYYY',
  9221. LLL: 'D [de] MMMM [de] YYYY H:mm',
  9222. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  9223. },
  9224. calendar: {
  9225. sameDay: function () {
  9226. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9227. },
  9228. nextDay: function () {
  9229. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9230. },
  9231. nextWeek: function () {
  9232. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  9233. },
  9234. lastDay: function () {
  9235. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  9236. },
  9237. lastWeek: function () {
  9238. return (
  9239. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
  9240. );
  9241. },
  9242. sameElse: 'L',
  9243. },
  9244. relativeTime: {
  9245. future: function (str) {
  9246. if (str.indexOf('un') === 0) {
  9247. return 'n' + str;
  9248. }
  9249. return 'en ' + str;
  9250. },
  9251. past: 'hai %s',
  9252. s: 'uns segundos',
  9253. ss: '%d segundos',
  9254. m: 'un minuto',
  9255. mm: '%d minutos',
  9256. h: 'unha hora',
  9257. hh: '%d horas',
  9258. d: 'un día',
  9259. dd: '%d días',
  9260. M: 'un mes',
  9261. MM: '%d meses',
  9262. y: 'un ano',
  9263. yy: '%d anos',
  9264. },
  9265. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9266. ordinal: '%dº',
  9267. week: {
  9268. dow: 1, // Monday is the first day of the week.
  9269. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9270. },
  9271. });
  9272. //! moment.js locale configuration
  9273. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  9274. var format = {
  9275. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  9276. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  9277. m: ['एका मिणटान', 'एक मिनूट'],
  9278. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  9279. h: ['एका वरान', 'एक वर'],
  9280. hh: [number + ' वरांनी', number + ' वरां'],
  9281. d: ['एका दिसान', 'एक दीस'],
  9282. dd: [number + ' दिसांनी', number + ' दीस'],
  9283. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  9284. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  9285. y: ['एका वर्सान', 'एक वर्स'],
  9286. yy: [number + ' वर्सांनी', number + ' वर्सां'],
  9287. };
  9288. return isFuture ? format[key][0] : format[key][1];
  9289. }
  9290. hooks.defineLocale('gom-deva', {
  9291. months: {
  9292. standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  9293. '_'
  9294. ),
  9295. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
  9296. '_'
  9297. ),
  9298. isFormat: /MMMM(\s)+D[oD]?/,
  9299. },
  9300. monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  9301. '_'
  9302. ),
  9303. monthsParseExact: true,
  9304. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  9305. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  9306. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  9307. weekdaysParseExact: true,
  9308. longDateFormat: {
  9309. LT: 'A h:mm [वाजतां]',
  9310. LTS: 'A h:mm:ss [वाजतां]',
  9311. L: 'DD-MM-YYYY',
  9312. LL: 'D MMMM YYYY',
  9313. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  9314. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  9315. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
  9316. },
  9317. calendar: {
  9318. sameDay: '[आयज] LT',
  9319. nextDay: '[फाल्यां] LT',
  9320. nextWeek: '[फुडलो] dddd[,] LT',
  9321. lastDay: '[काल] LT',
  9322. lastWeek: '[फाटलो] dddd[,] LT',
  9323. sameElse: 'L',
  9324. },
  9325. relativeTime: {
  9326. future: '%s',
  9327. past: '%s आदीं',
  9328. s: processRelativeTime$4,
  9329. ss: processRelativeTime$4,
  9330. m: processRelativeTime$4,
  9331. mm: processRelativeTime$4,
  9332. h: processRelativeTime$4,
  9333. hh: processRelativeTime$4,
  9334. d: processRelativeTime$4,
  9335. dd: processRelativeTime$4,
  9336. M: processRelativeTime$4,
  9337. MM: processRelativeTime$4,
  9338. y: processRelativeTime$4,
  9339. yy: processRelativeTime$4,
  9340. },
  9341. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  9342. ordinal: function (number, period) {
  9343. switch (period) {
  9344. // the ordinal 'वेर' only applies to day of the month
  9345. case 'D':
  9346. return number + 'वेर';
  9347. default:
  9348. case 'M':
  9349. case 'Q':
  9350. case 'DDD':
  9351. case 'd':
  9352. case 'w':
  9353. case 'W':
  9354. return number;
  9355. }
  9356. },
  9357. week: {
  9358. dow: 1, // Monday is the first day of the week.
  9359. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9360. },
  9361. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  9362. meridiemHour: function (hour, meridiem) {
  9363. if (hour === 12) {
  9364. hour = 0;
  9365. }
  9366. if (meridiem === 'राती') {
  9367. return hour < 4 ? hour : hour + 12;
  9368. } else if (meridiem === 'सकाळीं') {
  9369. return hour;
  9370. } else if (meridiem === 'दनपारां') {
  9371. return hour > 12 ? hour : hour + 12;
  9372. } else if (meridiem === 'सांजे') {
  9373. return hour + 12;
  9374. }
  9375. },
  9376. meridiem: function (hour, minute, isLower) {
  9377. if (hour < 4) {
  9378. return 'राती';
  9379. } else if (hour < 12) {
  9380. return 'सकाळीं';
  9381. } else if (hour < 16) {
  9382. return 'दनपारां';
  9383. } else if (hour < 20) {
  9384. return 'सांजे';
  9385. } else {
  9386. return 'राती';
  9387. }
  9388. },
  9389. });
  9390. //! moment.js locale configuration
  9391. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  9392. var format = {
  9393. s: ['thoddea sekondamni', 'thodde sekond'],
  9394. ss: [number + ' sekondamni', number + ' sekond'],
  9395. m: ['eka mintan', 'ek minut'],
  9396. mm: [number + ' mintamni', number + ' mintam'],
  9397. h: ['eka voran', 'ek vor'],
  9398. hh: [number + ' voramni', number + ' voram'],
  9399. d: ['eka disan', 'ek dis'],
  9400. dd: [number + ' disamni', number + ' dis'],
  9401. M: ['eka mhoinean', 'ek mhoino'],
  9402. MM: [number + ' mhoineamni', number + ' mhoine'],
  9403. y: ['eka vorsan', 'ek voros'],
  9404. yy: [number + ' vorsamni', number + ' vorsam'],
  9405. };
  9406. return isFuture ? format[key][0] : format[key][1];
  9407. }
  9408. hooks.defineLocale('gom-latn', {
  9409. months: {
  9410. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  9411. '_'
  9412. ),
  9413. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  9414. '_'
  9415. ),
  9416. isFormat: /MMMM(\s)+D[oD]?/,
  9417. },
  9418. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
  9419. '_'
  9420. ),
  9421. monthsParseExact: true,
  9422. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  9423. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9424. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9425. weekdaysParseExact: true,
  9426. longDateFormat: {
  9427. LT: 'A h:mm [vazta]',
  9428. LTS: 'A h:mm:ss [vazta]',
  9429. L: 'DD-MM-YYYY',
  9430. LL: 'D MMMM YYYY',
  9431. LLL: 'D MMMM YYYY A h:mm [vazta]',
  9432. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  9433. llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
  9434. },
  9435. calendar: {
  9436. sameDay: '[Aiz] LT',
  9437. nextDay: '[Faleam] LT',
  9438. nextWeek: '[Fuddlo] dddd[,] LT',
  9439. lastDay: '[Kal] LT',
  9440. lastWeek: '[Fattlo] dddd[,] LT',
  9441. sameElse: 'L',
  9442. },
  9443. relativeTime: {
  9444. future: '%s',
  9445. past: '%s adim',
  9446. s: processRelativeTime$5,
  9447. ss: processRelativeTime$5,
  9448. m: processRelativeTime$5,
  9449. mm: processRelativeTime$5,
  9450. h: processRelativeTime$5,
  9451. hh: processRelativeTime$5,
  9452. d: processRelativeTime$5,
  9453. dd: processRelativeTime$5,
  9454. M: processRelativeTime$5,
  9455. MM: processRelativeTime$5,
  9456. y: processRelativeTime$5,
  9457. yy: processRelativeTime$5,
  9458. },
  9459. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  9460. ordinal: function (number, period) {
  9461. switch (period) {
  9462. // the ordinal 'er' only applies to day of the month
  9463. case 'D':
  9464. return number + 'er';
  9465. default:
  9466. case 'M':
  9467. case 'Q':
  9468. case 'DDD':
  9469. case 'd':
  9470. case 'w':
  9471. case 'W':
  9472. return number;
  9473. }
  9474. },
  9475. week: {
  9476. dow: 1, // Monday is the first day of the week.
  9477. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9478. },
  9479. meridiemParse: /rati|sokallim|donparam|sanje/,
  9480. meridiemHour: function (hour, meridiem) {
  9481. if (hour === 12) {
  9482. hour = 0;
  9483. }
  9484. if (meridiem === 'rati') {
  9485. return hour < 4 ? hour : hour + 12;
  9486. } else if (meridiem === 'sokallim') {
  9487. return hour;
  9488. } else if (meridiem === 'donparam') {
  9489. return hour > 12 ? hour : hour + 12;
  9490. } else if (meridiem === 'sanje') {
  9491. return hour + 12;
  9492. }
  9493. },
  9494. meridiem: function (hour, minute, isLower) {
  9495. if (hour < 4) {
  9496. return 'rati';
  9497. } else if (hour < 12) {
  9498. return 'sokallim';
  9499. } else if (hour < 16) {
  9500. return 'donparam';
  9501. } else if (hour < 20) {
  9502. return 'sanje';
  9503. } else {
  9504. return 'rati';
  9505. }
  9506. },
  9507. });
  9508. //! moment.js locale configuration
  9509. var symbolMap$6 = {
  9510. '1': '૧',
  9511. '2': '૨',
  9512. '3': '૩',
  9513. '4': '૪',
  9514. '5': '૫',
  9515. '6': '૬',
  9516. '7': '૭',
  9517. '8': '૮',
  9518. '9': '૯',
  9519. '0': '૦',
  9520. },
  9521. numberMap$5 = {
  9522. '૧': '1',
  9523. '૨': '2',
  9524. '૩': '3',
  9525. '૪': '4',
  9526. '૫': '5',
  9527. '૬': '6',
  9528. '૭': '7',
  9529. '૮': '8',
  9530. '૯': '9',
  9531. '૦': '0',
  9532. };
  9533. hooks.defineLocale('gu', {
  9534. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
  9535. '_'
  9536. ),
  9537. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
  9538. '_'
  9539. ),
  9540. monthsParseExact: true,
  9541. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
  9542. '_'
  9543. ),
  9544. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  9545. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  9546. longDateFormat: {
  9547. LT: 'A h:mm વાગ્યે',
  9548. LTS: 'A h:mm:ss વાગ્યે',
  9549. L: 'DD/MM/YYYY',
  9550. LL: 'D MMMM YYYY',
  9551. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  9552. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
  9553. },
  9554. calendar: {
  9555. sameDay: '[આજ] LT',
  9556. nextDay: '[કાલે] LT',
  9557. nextWeek: 'dddd, LT',
  9558. lastDay: '[ગઇકાલે] LT',
  9559. lastWeek: '[પાછલા] dddd, LT',
  9560. sameElse: 'L',
  9561. },
  9562. relativeTime: {
  9563. future: '%s મા',
  9564. past: '%s પહેલા',
  9565. s: 'અમુક પળો',
  9566. ss: '%d સેકંડ',
  9567. m: 'એક મિનિટ',
  9568. mm: '%d મિનિટ',
  9569. h: 'એક કલાક',
  9570. hh: '%d કલાક',
  9571. d: 'એક દિવસ',
  9572. dd: '%d દિવસ',
  9573. M: 'એક મહિનો',
  9574. MM: '%d મહિનો',
  9575. y: 'એક વર્ષ',
  9576. yy: '%d વર્ષ',
  9577. },
  9578. preparse: function (string) {
  9579. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  9580. return numberMap$5[match];
  9581. });
  9582. },
  9583. postformat: function (string) {
  9584. return string.replace(/\d/g, function (match) {
  9585. return symbolMap$6[match];
  9586. });
  9587. },
  9588. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  9589. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  9590. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  9591. meridiemHour: function (hour, meridiem) {
  9592. if (hour === 12) {
  9593. hour = 0;
  9594. }
  9595. if (meridiem === 'રાત') {
  9596. return hour < 4 ? hour : hour + 12;
  9597. } else if (meridiem === 'સવાર') {
  9598. return hour;
  9599. } else if (meridiem === 'બપોર') {
  9600. return hour >= 10 ? hour : hour + 12;
  9601. } else if (meridiem === 'સાંજ') {
  9602. return hour + 12;
  9603. }
  9604. },
  9605. meridiem: function (hour, minute, isLower) {
  9606. if (hour < 4) {
  9607. return 'રાત';
  9608. } else if (hour < 10) {
  9609. return 'સવાર';
  9610. } else if (hour < 17) {
  9611. return 'બપોર';
  9612. } else if (hour < 20) {
  9613. return 'સાંજ';
  9614. } else {
  9615. return 'રાત';
  9616. }
  9617. },
  9618. week: {
  9619. dow: 0, // Sunday is the first day of the week.
  9620. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9621. },
  9622. });
  9623. //! moment.js locale configuration
  9624. hooks.defineLocale('he', {
  9625. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
  9626. '_'
  9627. ),
  9628. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
  9629. '_'
  9630. ),
  9631. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  9632. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  9633. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  9634. longDateFormat: {
  9635. LT: 'HH:mm',
  9636. LTS: 'HH:mm:ss',
  9637. L: 'DD/MM/YYYY',
  9638. LL: 'D [ב]MMMM YYYY',
  9639. LLL: 'D [ב]MMMM YYYY HH:mm',
  9640. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  9641. l: 'D/M/YYYY',
  9642. ll: 'D MMM YYYY',
  9643. lll: 'D MMM YYYY HH:mm',
  9644. llll: 'ddd, D MMM YYYY HH:mm',
  9645. },
  9646. calendar: {
  9647. sameDay: '[היום ב־]LT',
  9648. nextDay: '[מחר ב־]LT',
  9649. nextWeek: 'dddd [בשעה] LT',
  9650. lastDay: '[אתמול ב־]LT',
  9651. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  9652. sameElse: 'L',
  9653. },
  9654. relativeTime: {
  9655. future: 'בעוד %s',
  9656. past: 'לפני %s',
  9657. s: 'מספר שניות',
  9658. ss: '%d שניות',
  9659. m: 'דקה',
  9660. mm: '%d דקות',
  9661. h: 'שעה',
  9662. hh: function (number) {
  9663. if (number === 2) {
  9664. return 'שעתיים';
  9665. }
  9666. return number + ' שעות';
  9667. },
  9668. d: 'יום',
  9669. dd: function (number) {
  9670. if (number === 2) {
  9671. return 'יומיים';
  9672. }
  9673. return number + ' ימים';
  9674. },
  9675. M: 'חודש',
  9676. MM: function (number) {
  9677. if (number === 2) {
  9678. return 'חודשיים';
  9679. }
  9680. return number + ' חודשים';
  9681. },
  9682. y: 'שנה',
  9683. yy: function (number) {
  9684. if (number === 2) {
  9685. return 'שנתיים';
  9686. } else if (number % 10 === 0 && number !== 10) {
  9687. return number + ' שנה';
  9688. }
  9689. return number + ' שנים';
  9690. },
  9691. },
  9692. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  9693. isPM: function (input) {
  9694. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  9695. },
  9696. meridiem: function (hour, minute, isLower) {
  9697. if (hour < 5) {
  9698. return 'לפנות בוקר';
  9699. } else if (hour < 10) {
  9700. return 'בבוקר';
  9701. } else if (hour < 12) {
  9702. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  9703. } else if (hour < 18) {
  9704. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  9705. } else {
  9706. return 'בערב';
  9707. }
  9708. },
  9709. });
  9710. //! moment.js locale configuration
  9711. var symbolMap$7 = {
  9712. '1': '१',
  9713. '2': '२',
  9714. '3': '३',
  9715. '4': '४',
  9716. '5': '५',
  9717. '6': '६',
  9718. '7': '७',
  9719. '8': '८',
  9720. '9': '९',
  9721. '0': '०',
  9722. },
  9723. numberMap$6 = {
  9724. '१': '1',
  9725. '२': '2',
  9726. '३': '3',
  9727. '४': '4',
  9728. '५': '5',
  9729. '६': '6',
  9730. '७': '7',
  9731. '८': '8',
  9732. '९': '9',
  9733. '०': '0',
  9734. };
  9735. hooks.defineLocale('hi', {
  9736. months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
  9737. '_'
  9738. ),
  9739. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
  9740. '_'
  9741. ),
  9742. monthsParseExact: true,
  9743. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9744. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  9745. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9746. longDateFormat: {
  9747. LT: 'A h:mm बजे',
  9748. LTS: 'A h:mm:ss बजे',
  9749. L: 'DD/MM/YYYY',
  9750. LL: 'D MMMM YYYY',
  9751. LLL: 'D MMMM YYYY, A h:mm बजे',
  9752. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
  9753. },
  9754. calendar: {
  9755. sameDay: '[आज] LT',
  9756. nextDay: '[कल] LT',
  9757. nextWeek: 'dddd, LT',
  9758. lastDay: '[कल] LT',
  9759. lastWeek: '[पिछले] dddd, LT',
  9760. sameElse: 'L',
  9761. },
  9762. relativeTime: {
  9763. future: '%s में',
  9764. past: '%s पहले',
  9765. s: 'कुछ ही क्षण',
  9766. ss: '%d सेकंड',
  9767. m: 'एक मिनट',
  9768. mm: '%d मिनट',
  9769. h: 'एक घंटा',
  9770. hh: '%d घंटे',
  9771. d: 'एक दिन',
  9772. dd: '%d दिन',
  9773. M: 'एक महीने',
  9774. MM: '%d महीने',
  9775. y: 'एक वर्ष',
  9776. yy: '%d वर्ष',
  9777. },
  9778. preparse: function (string) {
  9779. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9780. return numberMap$6[match];
  9781. });
  9782. },
  9783. postformat: function (string) {
  9784. return string.replace(/\d/g, function (match) {
  9785. return symbolMap$7[match];
  9786. });
  9787. },
  9788. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  9789. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  9790. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  9791. meridiemHour: function (hour, meridiem) {
  9792. if (hour === 12) {
  9793. hour = 0;
  9794. }
  9795. if (meridiem === 'रात') {
  9796. return hour < 4 ? hour : hour + 12;
  9797. } else if (meridiem === 'सुबह') {
  9798. return hour;
  9799. } else if (meridiem === 'दोपहर') {
  9800. return hour >= 10 ? hour : hour + 12;
  9801. } else if (meridiem === 'शाम') {
  9802. return hour + 12;
  9803. }
  9804. },
  9805. meridiem: function (hour, minute, isLower) {
  9806. if (hour < 4) {
  9807. return 'रात';
  9808. } else if (hour < 10) {
  9809. return 'सुबह';
  9810. } else if (hour < 17) {
  9811. return 'दोपहर';
  9812. } else if (hour < 20) {
  9813. return 'शाम';
  9814. } else {
  9815. return 'रात';
  9816. }
  9817. },
  9818. week: {
  9819. dow: 0, // Sunday is the first day of the week.
  9820. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9821. },
  9822. });
  9823. //! moment.js locale configuration
  9824. function translate$3(number, withoutSuffix, key) {
  9825. var result = number + ' ';
  9826. switch (key) {
  9827. case 'ss':
  9828. if (number === 1) {
  9829. result += 'sekunda';
  9830. } else if (number === 2 || number === 3 || number === 4) {
  9831. result += 'sekunde';
  9832. } else {
  9833. result += 'sekundi';
  9834. }
  9835. return result;
  9836. case 'm':
  9837. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  9838. case 'mm':
  9839. if (number === 1) {
  9840. result += 'minuta';
  9841. } else if (number === 2 || number === 3 || number === 4) {
  9842. result += 'minute';
  9843. } else {
  9844. result += 'minuta';
  9845. }
  9846. return result;
  9847. case 'h':
  9848. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  9849. case 'hh':
  9850. if (number === 1) {
  9851. result += 'sat';
  9852. } else if (number === 2 || number === 3 || number === 4) {
  9853. result += 'sata';
  9854. } else {
  9855. result += 'sati';
  9856. }
  9857. return result;
  9858. case 'dd':
  9859. if (number === 1) {
  9860. result += 'dan';
  9861. } else {
  9862. result += 'dana';
  9863. }
  9864. return result;
  9865. case 'MM':
  9866. if (number === 1) {
  9867. result += 'mjesec';
  9868. } else if (number === 2 || number === 3 || number === 4) {
  9869. result += 'mjeseca';
  9870. } else {
  9871. result += 'mjeseci';
  9872. }
  9873. return result;
  9874. case 'yy':
  9875. if (number === 1) {
  9876. result += 'godina';
  9877. } else if (number === 2 || number === 3 || number === 4) {
  9878. result += 'godine';
  9879. } else {
  9880. result += 'godina';
  9881. }
  9882. return result;
  9883. }
  9884. }
  9885. hooks.defineLocale('hr', {
  9886. months: {
  9887. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  9888. '_'
  9889. ),
  9890. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  9891. '_'
  9892. ),
  9893. },
  9894. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  9895. '_'
  9896. ),
  9897. monthsParseExact: true,
  9898. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  9899. '_'
  9900. ),
  9901. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  9902. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  9903. weekdaysParseExact: true,
  9904. longDateFormat: {
  9905. LT: 'H:mm',
  9906. LTS: 'H:mm:ss',
  9907. L: 'DD.MM.YYYY',
  9908. LL: 'Do MMMM YYYY',
  9909. LLL: 'Do MMMM YYYY H:mm',
  9910. LLLL: 'dddd, Do MMMM YYYY H:mm',
  9911. },
  9912. calendar: {
  9913. sameDay: '[danas u] LT',
  9914. nextDay: '[sutra u] LT',
  9915. nextWeek: function () {
  9916. switch (this.day()) {
  9917. case 0:
  9918. return '[u] [nedjelju] [u] LT';
  9919. case 3:
  9920. return '[u] [srijedu] [u] LT';
  9921. case 6:
  9922. return '[u] [subotu] [u] LT';
  9923. case 1:
  9924. case 2:
  9925. case 4:
  9926. case 5:
  9927. return '[u] dddd [u] LT';
  9928. }
  9929. },
  9930. lastDay: '[jučer u] LT',
  9931. lastWeek: function () {
  9932. switch (this.day()) {
  9933. case 0:
  9934. return '[prošlu] [nedjelju] [u] LT';
  9935. case 3:
  9936. return '[prošlu] [srijedu] [u] LT';
  9937. case 6:
  9938. return '[prošle] [subote] [u] LT';
  9939. case 1:
  9940. case 2:
  9941. case 4:
  9942. case 5:
  9943. return '[prošli] dddd [u] LT';
  9944. }
  9945. },
  9946. sameElse: 'L',
  9947. },
  9948. relativeTime: {
  9949. future: 'za %s',
  9950. past: 'prije %s',
  9951. s: 'par sekundi',
  9952. ss: translate$3,
  9953. m: translate$3,
  9954. mm: translate$3,
  9955. h: translate$3,
  9956. hh: translate$3,
  9957. d: 'dan',
  9958. dd: translate$3,
  9959. M: 'mjesec',
  9960. MM: translate$3,
  9961. y: 'godinu',
  9962. yy: translate$3,
  9963. },
  9964. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9965. ordinal: '%d.',
  9966. week: {
  9967. dow: 1, // Monday is the first day of the week.
  9968. doy: 7, // The week that contains Jan 7th is the first week of the year.
  9969. },
  9970. });
  9971. //! moment.js locale configuration
  9972. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
  9973. ' '
  9974. );
  9975. function translate$4(number, withoutSuffix, key, isFuture) {
  9976. var num = number;
  9977. switch (key) {
  9978. case 's':
  9979. return isFuture || withoutSuffix
  9980. ? 'néhány másodperc'
  9981. : 'néhány másodperce';
  9982. case 'ss':
  9983. return num + (isFuture || withoutSuffix)
  9984. ? ' másodperc'
  9985. : ' másodperce';
  9986. case 'm':
  9987. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  9988. case 'mm':
  9989. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  9990. case 'h':
  9991. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  9992. case 'hh':
  9993. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  9994. case 'd':
  9995. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  9996. case 'dd':
  9997. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  9998. case 'M':
  9999. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10000. case 'MM':
  10001. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10002. case 'y':
  10003. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  10004. case 'yy':
  10005. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  10006. }
  10007. return '';
  10008. }
  10009. function week(isFuture) {
  10010. return (
  10011. (isFuture ? '' : '[múlt] ') +
  10012. '[' +
  10013. weekEndings[this.day()] +
  10014. '] LT[-kor]'
  10015. );
  10016. }
  10017. hooks.defineLocale('hu', {
  10018. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
  10019. '_'
  10020. ),
  10021. monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split(
  10022. '_'
  10023. ),
  10024. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  10025. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  10026. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  10027. longDateFormat: {
  10028. LT: 'H:mm',
  10029. LTS: 'H:mm:ss',
  10030. L: 'YYYY.MM.DD.',
  10031. LL: 'YYYY. MMMM D.',
  10032. LLL: 'YYYY. MMMM D. H:mm',
  10033. LLLL: 'YYYY. MMMM D., dddd H:mm',
  10034. },
  10035. meridiemParse: /de|du/i,
  10036. isPM: function (input) {
  10037. return input.charAt(1).toLowerCase() === 'u';
  10038. },
  10039. meridiem: function (hours, minutes, isLower) {
  10040. if (hours < 12) {
  10041. return isLower === true ? 'de' : 'DE';
  10042. } else {
  10043. return isLower === true ? 'du' : 'DU';
  10044. }
  10045. },
  10046. calendar: {
  10047. sameDay: '[ma] LT[-kor]',
  10048. nextDay: '[holnap] LT[-kor]',
  10049. nextWeek: function () {
  10050. return week.call(this, true);
  10051. },
  10052. lastDay: '[tegnap] LT[-kor]',
  10053. lastWeek: function () {
  10054. return week.call(this, false);
  10055. },
  10056. sameElse: 'L',
  10057. },
  10058. relativeTime: {
  10059. future: '%s múlva',
  10060. past: '%s',
  10061. s: translate$4,
  10062. ss: translate$4,
  10063. m: translate$4,
  10064. mm: translate$4,
  10065. h: translate$4,
  10066. hh: translate$4,
  10067. d: translate$4,
  10068. dd: translate$4,
  10069. M: translate$4,
  10070. MM: translate$4,
  10071. y: translate$4,
  10072. yy: translate$4,
  10073. },
  10074. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10075. ordinal: '%d.',
  10076. week: {
  10077. dow: 1, // Monday is the first day of the week.
  10078. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10079. },
  10080. });
  10081. //! moment.js locale configuration
  10082. hooks.defineLocale('hy-am', {
  10083. months: {
  10084. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
  10085. '_'
  10086. ),
  10087. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
  10088. '_'
  10089. ),
  10090. },
  10091. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  10092. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
  10093. '_'
  10094. ),
  10095. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10096. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10097. longDateFormat: {
  10098. LT: 'HH:mm',
  10099. LTS: 'HH:mm:ss',
  10100. L: 'DD.MM.YYYY',
  10101. LL: 'D MMMM YYYY թ.',
  10102. LLL: 'D MMMM YYYY թ., HH:mm',
  10103. LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
  10104. },
  10105. calendar: {
  10106. sameDay: '[այսօր] LT',
  10107. nextDay: '[վաղը] LT',
  10108. lastDay: '[երեկ] LT',
  10109. nextWeek: function () {
  10110. return 'dddd [օրը ժամը] LT';
  10111. },
  10112. lastWeek: function () {
  10113. return '[անցած] dddd [օրը ժամը] LT';
  10114. },
  10115. sameElse: 'L',
  10116. },
  10117. relativeTime: {
  10118. future: '%s հետո',
  10119. past: '%s առաջ',
  10120. s: 'մի քանի վայրկյան',
  10121. ss: '%d վայրկյան',
  10122. m: 'րոպե',
  10123. mm: '%d րոպե',
  10124. h: 'ժամ',
  10125. hh: '%d ժամ',
  10126. d: 'օր',
  10127. dd: '%d օր',
  10128. M: 'ամիս',
  10129. MM: '%d ամիս',
  10130. y: 'տարի',
  10131. yy: '%d տարի',
  10132. },
  10133. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  10134. isPM: function (input) {
  10135. return /^(ցերեկվա|երեկոյան)$/.test(input);
  10136. },
  10137. meridiem: function (hour) {
  10138. if (hour < 4) {
  10139. return 'գիշերվա';
  10140. } else if (hour < 12) {
  10141. return 'առավոտվա';
  10142. } else if (hour < 17) {
  10143. return 'ցերեկվա';
  10144. } else {
  10145. return 'երեկոյան';
  10146. }
  10147. },
  10148. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  10149. ordinal: function (number, period) {
  10150. switch (period) {
  10151. case 'DDD':
  10152. case 'w':
  10153. case 'W':
  10154. case 'DDDo':
  10155. if (number === 1) {
  10156. return number + '-ին';
  10157. }
  10158. return number + '-րդ';
  10159. default:
  10160. return number;
  10161. }
  10162. },
  10163. week: {
  10164. dow: 1, // Monday is the first day of the week.
  10165. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10166. },
  10167. });
  10168. //! moment.js locale configuration
  10169. hooks.defineLocale('id', {
  10170. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
  10171. '_'
  10172. ),
  10173. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  10174. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  10175. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  10176. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  10177. longDateFormat: {
  10178. LT: 'HH.mm',
  10179. LTS: 'HH.mm.ss',
  10180. L: 'DD/MM/YYYY',
  10181. LL: 'D MMMM YYYY',
  10182. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10183. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10184. },
  10185. meridiemParse: /pagi|siang|sore|malam/,
  10186. meridiemHour: function (hour, meridiem) {
  10187. if (hour === 12) {
  10188. hour = 0;
  10189. }
  10190. if (meridiem === 'pagi') {
  10191. return hour;
  10192. } else if (meridiem === 'siang') {
  10193. return hour >= 11 ? hour : hour + 12;
  10194. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10195. return hour + 12;
  10196. }
  10197. },
  10198. meridiem: function (hours, minutes, isLower) {
  10199. if (hours < 11) {
  10200. return 'pagi';
  10201. } else if (hours < 15) {
  10202. return 'siang';
  10203. } else if (hours < 19) {
  10204. return 'sore';
  10205. } else {
  10206. return 'malam';
  10207. }
  10208. },
  10209. calendar: {
  10210. sameDay: '[Hari ini pukul] LT',
  10211. nextDay: '[Besok pukul] LT',
  10212. nextWeek: 'dddd [pukul] LT',
  10213. lastDay: '[Kemarin pukul] LT',
  10214. lastWeek: 'dddd [lalu pukul] LT',
  10215. sameElse: 'L',
  10216. },
  10217. relativeTime: {
  10218. future: 'dalam %s',
  10219. past: '%s yang lalu',
  10220. s: 'beberapa detik',
  10221. ss: '%d detik',
  10222. m: 'semenit',
  10223. mm: '%d menit',
  10224. h: 'sejam',
  10225. hh: '%d jam',
  10226. d: 'sehari',
  10227. dd: '%d hari',
  10228. M: 'sebulan',
  10229. MM: '%d bulan',
  10230. y: 'setahun',
  10231. yy: '%d tahun',
  10232. },
  10233. week: {
  10234. dow: 0, // Sunday is the first day of the week.
  10235. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10236. },
  10237. });
  10238. //! moment.js locale configuration
  10239. function plural$2(n) {
  10240. if (n % 100 === 11) {
  10241. return true;
  10242. } else if (n % 10 === 1) {
  10243. return false;
  10244. }
  10245. return true;
  10246. }
  10247. function translate$5(number, withoutSuffix, key, isFuture) {
  10248. var result = number + ' ';
  10249. switch (key) {
  10250. case 's':
  10251. return withoutSuffix || isFuture
  10252. ? 'nokkrar sekúndur'
  10253. : 'nokkrum sekúndum';
  10254. case 'ss':
  10255. if (plural$2(number)) {
  10256. return (
  10257. result +
  10258. (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
  10259. );
  10260. }
  10261. return result + 'sekúnda';
  10262. case 'm':
  10263. return withoutSuffix ? 'mínúta' : 'mínútu';
  10264. case 'mm':
  10265. if (plural$2(number)) {
  10266. return (
  10267. result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
  10268. );
  10269. } else if (withoutSuffix) {
  10270. return result + 'mínúta';
  10271. }
  10272. return result + 'mínútu';
  10273. case 'hh':
  10274. if (plural$2(number)) {
  10275. return (
  10276. result +
  10277. (withoutSuffix || isFuture
  10278. ? 'klukkustundir'
  10279. : 'klukkustundum')
  10280. );
  10281. }
  10282. return result + 'klukkustund';
  10283. case 'd':
  10284. if (withoutSuffix) {
  10285. return 'dagur';
  10286. }
  10287. return isFuture ? 'dag' : 'degi';
  10288. case 'dd':
  10289. if (plural$2(number)) {
  10290. if (withoutSuffix) {
  10291. return result + 'dagar';
  10292. }
  10293. return result + (isFuture ? 'daga' : 'dögum');
  10294. } else if (withoutSuffix) {
  10295. return result + 'dagur';
  10296. }
  10297. return result + (isFuture ? 'dag' : 'degi');
  10298. case 'M':
  10299. if (withoutSuffix) {
  10300. return 'mánuður';
  10301. }
  10302. return isFuture ? 'mánuð' : 'mánuði';
  10303. case 'MM':
  10304. if (plural$2(number)) {
  10305. if (withoutSuffix) {
  10306. return result + 'mánuðir';
  10307. }
  10308. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10309. } else if (withoutSuffix) {
  10310. return result + 'mánuður';
  10311. }
  10312. return result + (isFuture ? 'mánuð' : 'mánuði');
  10313. case 'y':
  10314. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10315. case 'yy':
  10316. if (plural$2(number)) {
  10317. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10318. }
  10319. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10320. }
  10321. }
  10322. hooks.defineLocale('is', {
  10323. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
  10324. '_'
  10325. ),
  10326. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10327. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
  10328. '_'
  10329. ),
  10330. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10331. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10332. longDateFormat: {
  10333. LT: 'H:mm',
  10334. LTS: 'H:mm:ss',
  10335. L: 'DD.MM.YYYY',
  10336. LL: 'D. MMMM YYYY',
  10337. LLL: 'D. MMMM YYYY [kl.] H:mm',
  10338. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
  10339. },
  10340. calendar: {
  10341. sameDay: '[í dag kl.] LT',
  10342. nextDay: '[á morgun kl.] LT',
  10343. nextWeek: 'dddd [kl.] LT',
  10344. lastDay: '[í gær kl.] LT',
  10345. lastWeek: '[síðasta] dddd [kl.] LT',
  10346. sameElse: 'L',
  10347. },
  10348. relativeTime: {
  10349. future: 'eftir %s',
  10350. past: 'fyrir %s síðan',
  10351. s: translate$5,
  10352. ss: translate$5,
  10353. m: translate$5,
  10354. mm: translate$5,
  10355. h: 'klukkustund',
  10356. hh: translate$5,
  10357. d: translate$5,
  10358. dd: translate$5,
  10359. M: translate$5,
  10360. MM: translate$5,
  10361. y: translate$5,
  10362. yy: translate$5,
  10363. },
  10364. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10365. ordinal: '%d.',
  10366. week: {
  10367. dow: 1, // Monday is the first day of the week.
  10368. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10369. },
  10370. });
  10371. //! moment.js locale configuration
  10372. hooks.defineLocale('it-ch', {
  10373. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10374. '_'
  10375. ),
  10376. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10377. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10378. '_'
  10379. ),
  10380. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10381. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10382. longDateFormat: {
  10383. LT: 'HH:mm',
  10384. LTS: 'HH:mm:ss',
  10385. L: 'DD.MM.YYYY',
  10386. LL: 'D MMMM YYYY',
  10387. LLL: 'D MMMM YYYY HH:mm',
  10388. LLLL: 'dddd D MMMM YYYY HH:mm',
  10389. },
  10390. calendar: {
  10391. sameDay: '[Oggi alle] LT',
  10392. nextDay: '[Domani alle] LT',
  10393. nextWeek: 'dddd [alle] LT',
  10394. lastDay: '[Ieri alle] LT',
  10395. lastWeek: function () {
  10396. switch (this.day()) {
  10397. case 0:
  10398. return '[la scorsa] dddd [alle] LT';
  10399. default:
  10400. return '[lo scorso] dddd [alle] LT';
  10401. }
  10402. },
  10403. sameElse: 'L',
  10404. },
  10405. relativeTime: {
  10406. future: function (s) {
  10407. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  10408. },
  10409. past: '%s fa',
  10410. s: 'alcuni secondi',
  10411. ss: '%d secondi',
  10412. m: 'un minuto',
  10413. mm: '%d minuti',
  10414. h: "un'ora",
  10415. hh: '%d ore',
  10416. d: 'un giorno',
  10417. dd: '%d giorni',
  10418. M: 'un mese',
  10419. MM: '%d mesi',
  10420. y: 'un anno',
  10421. yy: '%d anni',
  10422. },
  10423. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10424. ordinal: '%dº',
  10425. week: {
  10426. dow: 1, // Monday is the first day of the week.
  10427. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10428. },
  10429. });
  10430. //! moment.js locale configuration
  10431. hooks.defineLocale('it', {
  10432. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10433. '_'
  10434. ),
  10435. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10436. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10437. '_'
  10438. ),
  10439. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10440. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10441. longDateFormat: {
  10442. LT: 'HH:mm',
  10443. LTS: 'HH:mm:ss',
  10444. L: 'DD/MM/YYYY',
  10445. LL: 'D MMMM YYYY',
  10446. LLL: 'D MMMM YYYY HH:mm',
  10447. LLLL: 'dddd D MMMM YYYY HH:mm',
  10448. },
  10449. calendar: {
  10450. sameDay: function () {
  10451. return (
  10452. '[Oggi a' +
  10453. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10454. ']LT'
  10455. );
  10456. },
  10457. nextDay: function () {
  10458. return (
  10459. '[Domani a' +
  10460. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10461. ']LT'
  10462. );
  10463. },
  10464. nextWeek: function () {
  10465. return (
  10466. 'dddd [a' +
  10467. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10468. ']LT'
  10469. );
  10470. },
  10471. lastDay: function () {
  10472. return (
  10473. '[Ieri a' +
  10474. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10475. ']LT'
  10476. );
  10477. },
  10478. lastWeek: function () {
  10479. switch (this.day()) {
  10480. case 0:
  10481. return (
  10482. '[La scorsa] dddd [a' +
  10483. (this.hours() > 1
  10484. ? 'lle '
  10485. : this.hours() === 0
  10486. ? ' '
  10487. : "ll'") +
  10488. ']LT'
  10489. );
  10490. default:
  10491. return (
  10492. '[Lo scorso] dddd [a' +
  10493. (this.hours() > 1
  10494. ? 'lle '
  10495. : this.hours() === 0
  10496. ? ' '
  10497. : "ll'") +
  10498. ']LT'
  10499. );
  10500. }
  10501. },
  10502. sameElse: 'L',
  10503. },
  10504. relativeTime: {
  10505. future: 'tra %s',
  10506. past: '%s fa',
  10507. s: 'alcuni secondi',
  10508. ss: '%d secondi',
  10509. m: 'un minuto',
  10510. mm: '%d minuti',
  10511. h: "un'ora",
  10512. hh: '%d ore',
  10513. d: 'un giorno',
  10514. dd: '%d giorni',
  10515. M: 'un mese',
  10516. MM: '%d mesi',
  10517. y: 'un anno',
  10518. yy: '%d anni',
  10519. },
  10520. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10521. ordinal: '%dº',
  10522. week: {
  10523. dow: 1, // Monday is the first day of the week.
  10524. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10525. },
  10526. });
  10527. //! moment.js locale configuration
  10528. hooks.defineLocale('ja', {
  10529. eras: [
  10530. {
  10531. since: '2019-05-01',
  10532. offset: 1,
  10533. name: '令和',
  10534. narrow: '㋿',
  10535. abbr: 'R',
  10536. },
  10537. {
  10538. since: '1989-01-08',
  10539. until: '2019-04-30',
  10540. offset: 1,
  10541. name: '平成',
  10542. narrow: '㍻',
  10543. abbr: 'H',
  10544. },
  10545. {
  10546. since: '1926-12-25',
  10547. until: '1989-01-07',
  10548. offset: 1,
  10549. name: '昭和',
  10550. narrow: '㍼',
  10551. abbr: 'S',
  10552. },
  10553. {
  10554. since: '1912-07-30',
  10555. until: '1926-12-24',
  10556. offset: 1,
  10557. name: '大正',
  10558. narrow: '㍽',
  10559. abbr: 'T',
  10560. },
  10561. {
  10562. since: '1873-01-01',
  10563. until: '1912-07-29',
  10564. offset: 6,
  10565. name: '明治',
  10566. narrow: '㍾',
  10567. abbr: 'M',
  10568. },
  10569. {
  10570. since: '0001-01-01',
  10571. until: '1873-12-31',
  10572. offset: 1,
  10573. name: '西暦',
  10574. narrow: 'AD',
  10575. abbr: 'AD',
  10576. },
  10577. {
  10578. since: '0000-12-31',
  10579. until: -Infinity,
  10580. offset: 1,
  10581. name: '紀元前',
  10582. narrow: 'BC',
  10583. abbr: 'BC',
  10584. },
  10585. ],
  10586. eraYearOrdinalRegex: /(元|\d+)年/,
  10587. eraYearOrdinalParse: function (input, match) {
  10588. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  10589. },
  10590. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10591. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  10592. '_'
  10593. ),
  10594. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  10595. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  10596. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  10597. longDateFormat: {
  10598. LT: 'HH:mm',
  10599. LTS: 'HH:mm:ss',
  10600. L: 'YYYY/MM/DD',
  10601. LL: 'YYYY年M月D日',
  10602. LLL: 'YYYY年M月D日 HH:mm',
  10603. LLLL: 'YYYY年M月D日 dddd HH:mm',
  10604. l: 'YYYY/MM/DD',
  10605. ll: 'YYYY年M月D日',
  10606. lll: 'YYYY年M月D日 HH:mm',
  10607. llll: 'YYYY年M月D日(ddd) HH:mm',
  10608. },
  10609. meridiemParse: /午前|午後/i,
  10610. isPM: function (input) {
  10611. return input === '午後';
  10612. },
  10613. meridiem: function (hour, minute, isLower) {
  10614. if (hour < 12) {
  10615. return '午前';
  10616. } else {
  10617. return '午後';
  10618. }
  10619. },
  10620. calendar: {
  10621. sameDay: '[今日] LT',
  10622. nextDay: '[明日] LT',
  10623. nextWeek: function (now) {
  10624. if (now.week() !== this.week()) {
  10625. return '[来週]dddd LT';
  10626. } else {
  10627. return 'dddd LT';
  10628. }
  10629. },
  10630. lastDay: '[昨日] LT',
  10631. lastWeek: function (now) {
  10632. if (this.week() !== now.week()) {
  10633. return '[先週]dddd LT';
  10634. } else {
  10635. return 'dddd LT';
  10636. }
  10637. },
  10638. sameElse: 'L',
  10639. },
  10640. dayOfMonthOrdinalParse: /\d{1,2}日/,
  10641. ordinal: function (number, period) {
  10642. switch (period) {
  10643. case 'y':
  10644. return number === 1 ? '元年' : number + '年';
  10645. case 'd':
  10646. case 'D':
  10647. case 'DDD':
  10648. return number + '日';
  10649. default:
  10650. return number;
  10651. }
  10652. },
  10653. relativeTime: {
  10654. future: '%s後',
  10655. past: '%s前',
  10656. s: '数秒',
  10657. ss: '%d秒',
  10658. m: '1分',
  10659. mm: '%d分',
  10660. h: '1時間',
  10661. hh: '%d時間',
  10662. d: '1日',
  10663. dd: '%d日',
  10664. M: '1ヶ月',
  10665. MM: '%dヶ月',
  10666. y: '1年',
  10667. yy: '%d年',
  10668. },
  10669. });
  10670. //! moment.js locale configuration
  10671. hooks.defineLocale('jv', {
  10672. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  10673. '_'
  10674. ),
  10675. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  10676. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  10677. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  10678. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  10679. longDateFormat: {
  10680. LT: 'HH.mm',
  10681. LTS: 'HH.mm.ss',
  10682. L: 'DD/MM/YYYY',
  10683. LL: 'D MMMM YYYY',
  10684. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10685. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10686. },
  10687. meridiemParse: /enjing|siyang|sonten|ndalu/,
  10688. meridiemHour: function (hour, meridiem) {
  10689. if (hour === 12) {
  10690. hour = 0;
  10691. }
  10692. if (meridiem === 'enjing') {
  10693. return hour;
  10694. } else if (meridiem === 'siyang') {
  10695. return hour >= 11 ? hour : hour + 12;
  10696. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  10697. return hour + 12;
  10698. }
  10699. },
  10700. meridiem: function (hours, minutes, isLower) {
  10701. if (hours < 11) {
  10702. return 'enjing';
  10703. } else if (hours < 15) {
  10704. return 'siyang';
  10705. } else if (hours < 19) {
  10706. return 'sonten';
  10707. } else {
  10708. return 'ndalu';
  10709. }
  10710. },
  10711. calendar: {
  10712. sameDay: '[Dinten puniko pukul] LT',
  10713. nextDay: '[Mbenjang pukul] LT',
  10714. nextWeek: 'dddd [pukul] LT',
  10715. lastDay: '[Kala wingi pukul] LT',
  10716. lastWeek: 'dddd [kepengker pukul] LT',
  10717. sameElse: 'L',
  10718. },
  10719. relativeTime: {
  10720. future: 'wonten ing %s',
  10721. past: '%s ingkang kepengker',
  10722. s: 'sawetawis detik',
  10723. ss: '%d detik',
  10724. m: 'setunggal menit',
  10725. mm: '%d menit',
  10726. h: 'setunggal jam',
  10727. hh: '%d jam',
  10728. d: 'sedinten',
  10729. dd: '%d dinten',
  10730. M: 'sewulan',
  10731. MM: '%d wulan',
  10732. y: 'setaun',
  10733. yy: '%d taun',
  10734. },
  10735. week: {
  10736. dow: 1, // Monday is the first day of the week.
  10737. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10738. },
  10739. });
  10740. //! moment.js locale configuration
  10741. hooks.defineLocale('ka', {
  10742. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
  10743. '_'
  10744. ),
  10745. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  10746. weekdays: {
  10747. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
  10748. '_'
  10749. ),
  10750. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
  10751. '_'
  10752. ),
  10753. isFormat: /(წინა|შემდეგ)/,
  10754. },
  10755. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  10756. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  10757. longDateFormat: {
  10758. LT: 'HH:mm',
  10759. LTS: 'HH:mm:ss',
  10760. L: 'DD/MM/YYYY',
  10761. LL: 'D MMMM YYYY',
  10762. LLL: 'D MMMM YYYY HH:mm',
  10763. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10764. },
  10765. calendar: {
  10766. sameDay: '[დღეს] LT[-ზე]',
  10767. nextDay: '[ხვალ] LT[-ზე]',
  10768. lastDay: '[გუშინ] LT[-ზე]',
  10769. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  10770. lastWeek: '[წინა] dddd LT-ზე',
  10771. sameElse: 'L',
  10772. },
  10773. relativeTime: {
  10774. future: function (s) {
  10775. return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (
  10776. $0,
  10777. $1,
  10778. $2
  10779. ) {
  10780. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  10781. });
  10782. },
  10783. past: function (s) {
  10784. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  10785. return s.replace(/(ი|ე)$/, 'ის წინ');
  10786. }
  10787. if (/წელი/.test(s)) {
  10788. return s.replace(/წელი$/, 'წლის წინ');
  10789. }
  10790. return s;
  10791. },
  10792. s: 'რამდენიმე წამი',
  10793. ss: '%d წამი',
  10794. m: 'წუთი',
  10795. mm: '%d წუთი',
  10796. h: 'საათი',
  10797. hh: '%d საათი',
  10798. d: 'დღე',
  10799. dd: '%d დღე',
  10800. M: 'თვე',
  10801. MM: '%d თვე',
  10802. y: 'წელი',
  10803. yy: '%d წელი',
  10804. },
  10805. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  10806. ordinal: function (number) {
  10807. if (number === 0) {
  10808. return number;
  10809. }
  10810. if (number === 1) {
  10811. return number + '-ლი';
  10812. }
  10813. if (
  10814. number < 20 ||
  10815. (number <= 100 && number % 20 === 0) ||
  10816. number % 100 === 0
  10817. ) {
  10818. return 'მე-' + number;
  10819. }
  10820. return number + '-ე';
  10821. },
  10822. week: {
  10823. dow: 1,
  10824. doy: 7,
  10825. },
  10826. });
  10827. //! moment.js locale configuration
  10828. var suffixes$1 = {
  10829. 0: '-ші',
  10830. 1: '-ші',
  10831. 2: '-ші',
  10832. 3: '-ші',
  10833. 4: '-ші',
  10834. 5: '-ші',
  10835. 6: '-шы',
  10836. 7: '-ші',
  10837. 8: '-ші',
  10838. 9: '-шы',
  10839. 10: '-шы',
  10840. 20: '-шы',
  10841. 30: '-шы',
  10842. 40: '-шы',
  10843. 50: '-ші',
  10844. 60: '-шы',
  10845. 70: '-ші',
  10846. 80: '-ші',
  10847. 90: '-шы',
  10848. 100: '-ші',
  10849. };
  10850. hooks.defineLocale('kk', {
  10851. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
  10852. '_'
  10853. ),
  10854. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  10855. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
  10856. '_'
  10857. ),
  10858. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  10859. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  10860. longDateFormat: {
  10861. LT: 'HH:mm',
  10862. LTS: 'HH:mm:ss',
  10863. L: 'DD.MM.YYYY',
  10864. LL: 'D MMMM YYYY',
  10865. LLL: 'D MMMM YYYY HH:mm',
  10866. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10867. },
  10868. calendar: {
  10869. sameDay: '[Бүгін сағат] LT',
  10870. nextDay: '[Ертең сағат] LT',
  10871. nextWeek: 'dddd [сағат] LT',
  10872. lastDay: '[Кеше сағат] LT',
  10873. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  10874. sameElse: 'L',
  10875. },
  10876. relativeTime: {
  10877. future: '%s ішінде',
  10878. past: '%s бұрын',
  10879. s: 'бірнеше секунд',
  10880. ss: '%d секунд',
  10881. m: 'бір минут',
  10882. mm: '%d минут',
  10883. h: 'бір сағат',
  10884. hh: '%d сағат',
  10885. d: 'бір күн',
  10886. dd: '%d күн',
  10887. M: 'бір ай',
  10888. MM: '%d ай',
  10889. y: 'бір жыл',
  10890. yy: '%d жыл',
  10891. },
  10892. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  10893. ordinal: function (number) {
  10894. var a = number % 10,
  10895. b = number >= 100 ? 100 : null;
  10896. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  10897. },
  10898. week: {
  10899. dow: 1, // Monday is the first day of the week.
  10900. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10901. },
  10902. });
  10903. //! moment.js locale configuration
  10904. var symbolMap$8 = {
  10905. '1': '១',
  10906. '2': '២',
  10907. '3': '៣',
  10908. '4': '៤',
  10909. '5': '៥',
  10910. '6': '៦',
  10911. '7': '៧',
  10912. '8': '៨',
  10913. '9': '៩',
  10914. '0': '០',
  10915. },
  10916. numberMap$7 = {
  10917. '១': '1',
  10918. '២': '2',
  10919. '៣': '3',
  10920. '៤': '4',
  10921. '៥': '5',
  10922. '៦': '6',
  10923. '៧': '7',
  10924. '៨': '8',
  10925. '៩': '9',
  10926. '០': '0',
  10927. };
  10928. hooks.defineLocale('km', {
  10929. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  10930. '_'
  10931. ),
  10932. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  10933. '_'
  10934. ),
  10935. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  10936. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  10937. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  10938. weekdaysParseExact: true,
  10939. longDateFormat: {
  10940. LT: 'HH:mm',
  10941. LTS: 'HH:mm:ss',
  10942. L: 'DD/MM/YYYY',
  10943. LL: 'D MMMM YYYY',
  10944. LLL: 'D MMMM YYYY HH:mm',
  10945. LLLL: 'dddd, D MMMM YYYY HH:mm',
  10946. },
  10947. meridiemParse: /ព្រឹក|ល្ងាច/,
  10948. isPM: function (input) {
  10949. return input === 'ល្ងាច';
  10950. },
  10951. meridiem: function (hour, minute, isLower) {
  10952. if (hour < 12) {
  10953. return 'ព្រឹក';
  10954. } else {
  10955. return 'ល្ងាច';
  10956. }
  10957. },
  10958. calendar: {
  10959. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  10960. nextDay: '[ស្អែក ម៉ោង] LT',
  10961. nextWeek: 'dddd [ម៉ោង] LT',
  10962. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  10963. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  10964. sameElse: 'L',
  10965. },
  10966. relativeTime: {
  10967. future: '%sទៀត',
  10968. past: '%sមុន',
  10969. s: 'ប៉ុន្មានវិនាទី',
  10970. ss: '%d វិនាទី',
  10971. m: 'មួយនាទី',
  10972. mm: '%d នាទី',
  10973. h: 'មួយម៉ោង',
  10974. hh: '%d ម៉ោង',
  10975. d: 'មួយថ្ងៃ',
  10976. dd: '%d ថ្ងៃ',
  10977. M: 'មួយខែ',
  10978. MM: '%d ខែ',
  10979. y: 'មួយឆ្នាំ',
  10980. yy: '%d ឆ្នាំ',
  10981. },
  10982. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  10983. ordinal: 'ទី%d',
  10984. preparse: function (string) {
  10985. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  10986. return numberMap$7[match];
  10987. });
  10988. },
  10989. postformat: function (string) {
  10990. return string.replace(/\d/g, function (match) {
  10991. return symbolMap$8[match];
  10992. });
  10993. },
  10994. week: {
  10995. dow: 1, // Monday is the first day of the week.
  10996. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10997. },
  10998. });
  10999. //! moment.js locale configuration
  11000. var symbolMap$9 = {
  11001. '1': '೧',
  11002. '2': '೨',
  11003. '3': '೩',
  11004. '4': '೪',
  11005. '5': '೫',
  11006. '6': '೬',
  11007. '7': '೭',
  11008. '8': '೮',
  11009. '9': '೯',
  11010. '0': '೦',
  11011. },
  11012. numberMap$8 = {
  11013. '೧': '1',
  11014. '೨': '2',
  11015. '೩': '3',
  11016. '೪': '4',
  11017. '೫': '5',
  11018. '೬': '6',
  11019. '೭': '7',
  11020. '೮': '8',
  11021. '೯': '9',
  11022. '೦': '0',
  11023. };
  11024. hooks.defineLocale('kn', {
  11025. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
  11026. '_'
  11027. ),
  11028. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
  11029. '_'
  11030. ),
  11031. monthsParseExact: true,
  11032. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
  11033. '_'
  11034. ),
  11035. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  11036. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  11037. longDateFormat: {
  11038. LT: 'A h:mm',
  11039. LTS: 'A h:mm:ss',
  11040. L: 'DD/MM/YYYY',
  11041. LL: 'D MMMM YYYY',
  11042. LLL: 'D MMMM YYYY, A h:mm',
  11043. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  11044. },
  11045. calendar: {
  11046. sameDay: '[ಇಂದು] LT',
  11047. nextDay: '[ನಾಳೆ] LT',
  11048. nextWeek: 'dddd, LT',
  11049. lastDay: '[ನಿನ್ನೆ] LT',
  11050. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  11051. sameElse: 'L',
  11052. },
  11053. relativeTime: {
  11054. future: '%s ನಂತರ',
  11055. past: '%s ಹಿಂದೆ',
  11056. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  11057. ss: '%d ಸೆಕೆಂಡುಗಳು',
  11058. m: 'ಒಂದು ನಿಮಿಷ',
  11059. mm: '%d ನಿಮಿಷ',
  11060. h: 'ಒಂದು ಗಂಟೆ',
  11061. hh: '%d ಗಂಟೆ',
  11062. d: 'ಒಂದು ದಿನ',
  11063. dd: '%d ದಿನ',
  11064. M: 'ಒಂದು ತಿಂಗಳು',
  11065. MM: '%d ತಿಂಗಳು',
  11066. y: 'ಒಂದು ವರ್ಷ',
  11067. yy: '%d ವರ್ಷ',
  11068. },
  11069. preparse: function (string) {
  11070. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  11071. return numberMap$8[match];
  11072. });
  11073. },
  11074. postformat: function (string) {
  11075. return string.replace(/\d/g, function (match) {
  11076. return symbolMap$9[match];
  11077. });
  11078. },
  11079. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  11080. meridiemHour: function (hour, meridiem) {
  11081. if (hour === 12) {
  11082. hour = 0;
  11083. }
  11084. if (meridiem === 'ರಾತ್ರಿ') {
  11085. return hour < 4 ? hour : hour + 12;
  11086. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  11087. return hour;
  11088. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  11089. return hour >= 10 ? hour : hour + 12;
  11090. } else if (meridiem === 'ಸಂಜೆ') {
  11091. return hour + 12;
  11092. }
  11093. },
  11094. meridiem: function (hour, minute, isLower) {
  11095. if (hour < 4) {
  11096. return 'ರಾತ್ರಿ';
  11097. } else if (hour < 10) {
  11098. return 'ಬೆಳಿಗ್ಗೆ';
  11099. } else if (hour < 17) {
  11100. return 'ಮಧ್ಯಾಹ್ನ';
  11101. } else if (hour < 20) {
  11102. return 'ಸಂಜೆ';
  11103. } else {
  11104. return 'ರಾತ್ರಿ';
  11105. }
  11106. },
  11107. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  11108. ordinal: function (number) {
  11109. return number + 'ನೇ';
  11110. },
  11111. week: {
  11112. dow: 0, // Sunday is the first day of the week.
  11113. doy: 6, // The week that contains Jan 6th is the first week of the year.
  11114. },
  11115. });
  11116. //! moment.js locale configuration
  11117. hooks.defineLocale('ko', {
  11118. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  11119. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
  11120. '_'
  11121. ),
  11122. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  11123. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  11124. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  11125. longDateFormat: {
  11126. LT: 'A h:mm',
  11127. LTS: 'A h:mm:ss',
  11128. L: 'YYYY.MM.DD.',
  11129. LL: 'YYYY년 MMMM D일',
  11130. LLL: 'YYYY년 MMMM D일 A h:mm',
  11131. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  11132. l: 'YYYY.MM.DD.',
  11133. ll: 'YYYY년 MMMM D일',
  11134. lll: 'YYYY년 MMMM D일 A h:mm',
  11135. llll: 'YYYY년 MMMM D일 dddd A h:mm',
  11136. },
  11137. calendar: {
  11138. sameDay: '오늘 LT',
  11139. nextDay: '내일 LT',
  11140. nextWeek: 'dddd LT',
  11141. lastDay: '어제 LT',
  11142. lastWeek: '지난주 dddd LT',
  11143. sameElse: 'L',
  11144. },
  11145. relativeTime: {
  11146. future: '%s 후',
  11147. past: '%s 전',
  11148. s: '몇 초',
  11149. ss: '%d초',
  11150. m: '1분',
  11151. mm: '%d분',
  11152. h: '한 시간',
  11153. hh: '%d시간',
  11154. d: '하루',
  11155. dd: '%d일',
  11156. M: '한 달',
  11157. MM: '%d달',
  11158. y: '일 년',
  11159. yy: '%d년',
  11160. },
  11161. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  11162. ordinal: function (number, period) {
  11163. switch (period) {
  11164. case 'd':
  11165. case 'D':
  11166. case 'DDD':
  11167. return number + '일';
  11168. case 'M':
  11169. return number + '월';
  11170. case 'w':
  11171. case 'W':
  11172. return number + '주';
  11173. default:
  11174. return number;
  11175. }
  11176. },
  11177. meridiemParse: /오전|오후/,
  11178. isPM: function (token) {
  11179. return token === '오후';
  11180. },
  11181. meridiem: function (hour, minute, isUpper) {
  11182. return hour < 12 ? '오전' : '오후';
  11183. },
  11184. });
  11185. //! moment.js locale configuration
  11186. var symbolMap$a = {
  11187. '1': '١',
  11188. '2': '٢',
  11189. '3': '٣',
  11190. '4': '٤',
  11191. '5': '٥',
  11192. '6': '٦',
  11193. '7': '٧',
  11194. '8': '٨',
  11195. '9': '٩',
  11196. '0': '٠',
  11197. },
  11198. numberMap$9 = {
  11199. '١': '1',
  11200. '٢': '2',
  11201. '٣': '3',
  11202. '٤': '4',
  11203. '٥': '5',
  11204. '٦': '6',
  11205. '٧': '7',
  11206. '٨': '8',
  11207. '٩': '9',
  11208. '٠': '0',
  11209. },
  11210. months$8 = [
  11211. 'کانونی دووەم',
  11212. 'شوبات',
  11213. 'ئازار',
  11214. 'نیسان',
  11215. 'ئایار',
  11216. 'حوزەیران',
  11217. 'تەمموز',
  11218. 'ئاب',
  11219. 'ئەیلوول',
  11220. 'تشرینی یەكەم',
  11221. 'تشرینی دووەم',
  11222. 'كانونی یەکەم',
  11223. ];
  11224. hooks.defineLocale('ku', {
  11225. months: months$8,
  11226. monthsShort: months$8,
  11227. weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
  11228. '_'
  11229. ),
  11230. weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(
  11231. '_'
  11232. ),
  11233. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  11234. weekdaysParseExact: true,
  11235. longDateFormat: {
  11236. LT: 'HH:mm',
  11237. LTS: 'HH:mm:ss',
  11238. L: 'DD/MM/YYYY',
  11239. LL: 'D MMMM YYYY',
  11240. LLL: 'D MMMM YYYY HH:mm',
  11241. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11242. },
  11243. meridiemParse: /ئێواره‌|به‌یانی/,
  11244. isPM: function (input) {
  11245. return /ئێواره‌/.test(input);
  11246. },
  11247. meridiem: function (hour, minute, isLower) {
  11248. if (hour < 12) {
  11249. return 'به‌یانی';
  11250. } else {
  11251. return 'ئێواره‌';
  11252. }
  11253. },
  11254. calendar: {
  11255. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  11256. nextDay: '[به‌یانی كاتژمێر] LT',
  11257. nextWeek: 'dddd [كاتژمێر] LT',
  11258. lastDay: '[دوێنێ كاتژمێر] LT',
  11259. lastWeek: 'dddd [كاتژمێر] LT',
  11260. sameElse: 'L',
  11261. },
  11262. relativeTime: {
  11263. future: 'له‌ %s',
  11264. past: '%s',
  11265. s: 'چه‌ند چركه‌یه‌ك',
  11266. ss: 'چركه‌ %d',
  11267. m: 'یه‌ك خوله‌ك',
  11268. mm: '%d خوله‌ك',
  11269. h: 'یه‌ك كاتژمێر',
  11270. hh: '%d كاتژمێر',
  11271. d: 'یه‌ك ڕۆژ',
  11272. dd: '%d ڕۆژ',
  11273. M: 'یه‌ك مانگ',
  11274. MM: '%d مانگ',
  11275. y: 'یه‌ك ساڵ',
  11276. yy: '%d ساڵ',
  11277. },
  11278. preparse: function (string) {
  11279. return string
  11280. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  11281. return numberMap$9[match];
  11282. })
  11283. .replace(/،/g, ',');
  11284. },
  11285. postformat: function (string) {
  11286. return string
  11287. .replace(/\d/g, function (match) {
  11288. return symbolMap$a[match];
  11289. })
  11290. .replace(/,/g, '،');
  11291. },
  11292. week: {
  11293. dow: 6, // Saturday is the first day of the week.
  11294. doy: 12, // The week that contains Jan 12th is the first week of the year.
  11295. },
  11296. });
  11297. //! moment.js locale configuration
  11298. var suffixes$2 = {
  11299. 0: '-чү',
  11300. 1: '-чи',
  11301. 2: '-чи',
  11302. 3: '-чү',
  11303. 4: '-чү',
  11304. 5: '-чи',
  11305. 6: '-чы',
  11306. 7: '-чи',
  11307. 8: '-чи',
  11308. 9: '-чу',
  11309. 10: '-чу',
  11310. 20: '-чы',
  11311. 30: '-чу',
  11312. 40: '-чы',
  11313. 50: '-чү',
  11314. 60: '-чы',
  11315. 70: '-чи',
  11316. 80: '-чи',
  11317. 90: '-чу',
  11318. 100: '-чү',
  11319. };
  11320. hooks.defineLocale('ky', {
  11321. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  11322. '_'
  11323. ),
  11324. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
  11325. '_'
  11326. ),
  11327. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
  11328. '_'
  11329. ),
  11330. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11331. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11332. longDateFormat: {
  11333. LT: 'HH:mm',
  11334. LTS: 'HH:mm:ss',
  11335. L: 'DD.MM.YYYY',
  11336. LL: 'D MMMM YYYY',
  11337. LLL: 'D MMMM YYYY HH:mm',
  11338. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11339. },
  11340. calendar: {
  11341. sameDay: '[Бүгүн саат] LT',
  11342. nextDay: '[Эртең саат] LT',
  11343. nextWeek: 'dddd [саат] LT',
  11344. lastDay: '[Кечээ саат] LT',
  11345. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  11346. sameElse: 'L',
  11347. },
  11348. relativeTime: {
  11349. future: '%s ичинде',
  11350. past: '%s мурун',
  11351. s: 'бирнече секунд',
  11352. ss: '%d секунд',
  11353. m: 'бир мүнөт',
  11354. mm: '%d мүнөт',
  11355. h: 'бир саат',
  11356. hh: '%d саат',
  11357. d: 'бир күн',
  11358. dd: '%d күн',
  11359. M: 'бир ай',
  11360. MM: '%d ай',
  11361. y: 'бир жыл',
  11362. yy: '%d жыл',
  11363. },
  11364. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11365. ordinal: function (number) {
  11366. var a = number % 10,
  11367. b = number >= 100 ? 100 : null;
  11368. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  11369. },
  11370. week: {
  11371. dow: 1, // Monday is the first day of the week.
  11372. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11373. },
  11374. });
  11375. //! moment.js locale configuration
  11376. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  11377. var format = {
  11378. m: ['eng Minutt', 'enger Minutt'],
  11379. h: ['eng Stonn', 'enger Stonn'],
  11380. d: ['een Dag', 'engem Dag'],
  11381. M: ['ee Mount', 'engem Mount'],
  11382. y: ['ee Joer', 'engem Joer'],
  11383. };
  11384. return withoutSuffix ? format[key][0] : format[key][1];
  11385. }
  11386. function processFutureTime(string) {
  11387. var number = string.substr(0, string.indexOf(' '));
  11388. if (eifelerRegelAppliesToNumber(number)) {
  11389. return 'a ' + string;
  11390. }
  11391. return 'an ' + string;
  11392. }
  11393. function processPastTime(string) {
  11394. var number = string.substr(0, string.indexOf(' '));
  11395. if (eifelerRegelAppliesToNumber(number)) {
  11396. return 'viru ' + string;
  11397. }
  11398. return 'virun ' + string;
  11399. }
  11400. /**
  11401. * Returns true if the word before the given number loses the '-n' ending.
  11402. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  11403. *
  11404. * @param number {integer}
  11405. * @returns {boolean}
  11406. */
  11407. function eifelerRegelAppliesToNumber(number) {
  11408. number = parseInt(number, 10);
  11409. if (isNaN(number)) {
  11410. return false;
  11411. }
  11412. if (number < 0) {
  11413. // Negative Number --> always true
  11414. return true;
  11415. } else if (number < 10) {
  11416. // Only 1 digit
  11417. if (4 <= number && number <= 7) {
  11418. return true;
  11419. }
  11420. return false;
  11421. } else if (number < 100) {
  11422. // 2 digits
  11423. var lastDigit = number % 10,
  11424. firstDigit = number / 10;
  11425. if (lastDigit === 0) {
  11426. return eifelerRegelAppliesToNumber(firstDigit);
  11427. }
  11428. return eifelerRegelAppliesToNumber(lastDigit);
  11429. } else if (number < 10000) {
  11430. // 3 or 4 digits --> recursively check first digit
  11431. while (number >= 10) {
  11432. number = number / 10;
  11433. }
  11434. return eifelerRegelAppliesToNumber(number);
  11435. } else {
  11436. // Anything larger than 4 digits: recursively check first n-3 digits
  11437. number = number / 1000;
  11438. return eifelerRegelAppliesToNumber(number);
  11439. }
  11440. }
  11441. hooks.defineLocale('lb', {
  11442. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  11443. '_'
  11444. ),
  11445. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
  11446. '_'
  11447. ),
  11448. monthsParseExact: true,
  11449. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
  11450. '_'
  11451. ),
  11452. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  11453. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  11454. weekdaysParseExact: true,
  11455. longDateFormat: {
  11456. LT: 'H:mm [Auer]',
  11457. LTS: 'H:mm:ss [Auer]',
  11458. L: 'DD.MM.YYYY',
  11459. LL: 'D. MMMM YYYY',
  11460. LLL: 'D. MMMM YYYY H:mm [Auer]',
  11461. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
  11462. },
  11463. calendar: {
  11464. sameDay: '[Haut um] LT',
  11465. sameElse: 'L',
  11466. nextDay: '[Muer um] LT',
  11467. nextWeek: 'dddd [um] LT',
  11468. lastDay: '[Gëschter um] LT',
  11469. lastWeek: function () {
  11470. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  11471. switch (this.day()) {
  11472. case 2:
  11473. case 4:
  11474. return '[Leschten] dddd [um] LT';
  11475. default:
  11476. return '[Leschte] dddd [um] LT';
  11477. }
  11478. },
  11479. },
  11480. relativeTime: {
  11481. future: processFutureTime,
  11482. past: processPastTime,
  11483. s: 'e puer Sekonnen',
  11484. ss: '%d Sekonnen',
  11485. m: processRelativeTime$6,
  11486. mm: '%d Minutten',
  11487. h: processRelativeTime$6,
  11488. hh: '%d Stonnen',
  11489. d: processRelativeTime$6,
  11490. dd: '%d Deeg',
  11491. M: processRelativeTime$6,
  11492. MM: '%d Méint',
  11493. y: processRelativeTime$6,
  11494. yy: '%d Joer',
  11495. },
  11496. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11497. ordinal: '%d.',
  11498. week: {
  11499. dow: 1, // Monday is the first day of the week.
  11500. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11501. },
  11502. });
  11503. //! moment.js locale configuration
  11504. hooks.defineLocale('lo', {
  11505. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11506. '_'
  11507. ),
  11508. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11509. '_'
  11510. ),
  11511. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11512. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11513. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  11514. weekdaysParseExact: true,
  11515. longDateFormat: {
  11516. LT: 'HH:mm',
  11517. LTS: 'HH:mm:ss',
  11518. L: 'DD/MM/YYYY',
  11519. LL: 'D MMMM YYYY',
  11520. LLL: 'D MMMM YYYY HH:mm',
  11521. LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
  11522. },
  11523. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  11524. isPM: function (input) {
  11525. return input === 'ຕອນແລງ';
  11526. },
  11527. meridiem: function (hour, minute, isLower) {
  11528. if (hour < 12) {
  11529. return 'ຕອນເຊົ້າ';
  11530. } else {
  11531. return 'ຕອນແລງ';
  11532. }
  11533. },
  11534. calendar: {
  11535. sameDay: '[ມື້ນີ້ເວລາ] LT',
  11536. nextDay: '[ມື້ອື່ນເວລາ] LT',
  11537. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  11538. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  11539. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  11540. sameElse: 'L',
  11541. },
  11542. relativeTime: {
  11543. future: 'ອີກ %s',
  11544. past: '%sຜ່ານມາ',
  11545. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  11546. ss: '%d ວິນາທີ',
  11547. m: '1 ນາທີ',
  11548. mm: '%d ນາທີ',
  11549. h: '1 ຊົ່ວໂມງ',
  11550. hh: '%d ຊົ່ວໂມງ',
  11551. d: '1 ມື້',
  11552. dd: '%d ມື້',
  11553. M: '1 ເດືອນ',
  11554. MM: '%d ເດືອນ',
  11555. y: '1 ປີ',
  11556. yy: '%d ປີ',
  11557. },
  11558. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  11559. ordinal: function (number) {
  11560. return 'ທີ່' + number;
  11561. },
  11562. });
  11563. //! moment.js locale configuration
  11564. var units = {
  11565. ss: 'sekundė_sekundžių_sekundes',
  11566. m: 'minutė_minutės_minutę',
  11567. mm: 'minutės_minučių_minutes',
  11568. h: 'valanda_valandos_valandą',
  11569. hh: 'valandos_valandų_valandas',
  11570. d: 'diena_dienos_dieną',
  11571. dd: 'dienos_dienų_dienas',
  11572. M: 'mėnuo_mėnesio_mėnesį',
  11573. MM: 'mėnesiai_mėnesių_mėnesius',
  11574. y: 'metai_metų_metus',
  11575. yy: 'metai_metų_metus',
  11576. };
  11577. function translateSeconds(number, withoutSuffix, key, isFuture) {
  11578. if (withoutSuffix) {
  11579. return 'kelios sekundės';
  11580. } else {
  11581. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  11582. }
  11583. }
  11584. function translateSingular(number, withoutSuffix, key, isFuture) {
  11585. return withoutSuffix
  11586. ? forms(key)[0]
  11587. : isFuture
  11588. ? forms(key)[1]
  11589. : forms(key)[2];
  11590. }
  11591. function special(number) {
  11592. return number % 10 === 0 || (number > 10 && number < 20);
  11593. }
  11594. function forms(key) {
  11595. return units[key].split('_');
  11596. }
  11597. function translate$6(number, withoutSuffix, key, isFuture) {
  11598. var result = number + ' ';
  11599. if (number === 1) {
  11600. return (
  11601. result + translateSingular(number, withoutSuffix, key[0], isFuture)
  11602. );
  11603. } else if (withoutSuffix) {
  11604. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  11605. } else {
  11606. if (isFuture) {
  11607. return result + forms(key)[1];
  11608. } else {
  11609. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  11610. }
  11611. }
  11612. }
  11613. hooks.defineLocale('lt', {
  11614. months: {
  11615. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
  11616. '_'
  11617. ),
  11618. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  11619. '_'
  11620. ),
  11621. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
  11622. },
  11623. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  11624. weekdays: {
  11625. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  11626. '_'
  11627. ),
  11628. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  11629. '_'
  11630. ),
  11631. isFormat: /dddd HH:mm/,
  11632. },
  11633. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  11634. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  11635. weekdaysParseExact: true,
  11636. longDateFormat: {
  11637. LT: 'HH:mm',
  11638. LTS: 'HH:mm:ss',
  11639. L: 'YYYY-MM-DD',
  11640. LL: 'YYYY [m.] MMMM D [d.]',
  11641. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11642. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  11643. l: 'YYYY-MM-DD',
  11644. ll: 'YYYY [m.] MMMM D [d.]',
  11645. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11646. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
  11647. },
  11648. calendar: {
  11649. sameDay: '[Šiandien] LT',
  11650. nextDay: '[Rytoj] LT',
  11651. nextWeek: 'dddd LT',
  11652. lastDay: '[Vakar] LT',
  11653. lastWeek: '[Praėjusį] dddd LT',
  11654. sameElse: 'L',
  11655. },
  11656. relativeTime: {
  11657. future: 'po %s',
  11658. past: 'prieš %s',
  11659. s: translateSeconds,
  11660. ss: translate$6,
  11661. m: translateSingular,
  11662. mm: translate$6,
  11663. h: translateSingular,
  11664. hh: translate$6,
  11665. d: translateSingular,
  11666. dd: translate$6,
  11667. M: translateSingular,
  11668. MM: translate$6,
  11669. y: translateSingular,
  11670. yy: translate$6,
  11671. },
  11672. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  11673. ordinal: function (number) {
  11674. return number + '-oji';
  11675. },
  11676. week: {
  11677. dow: 1, // Monday is the first day of the week.
  11678. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11679. },
  11680. });
  11681. //! moment.js locale configuration
  11682. var units$1 = {
  11683. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  11684. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11685. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11686. h: 'stundas_stundām_stunda_stundas'.split('_'),
  11687. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  11688. d: 'dienas_dienām_diena_dienas'.split('_'),
  11689. dd: 'dienas_dienām_diena_dienas'.split('_'),
  11690. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11691. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11692. y: 'gada_gadiem_gads_gadi'.split('_'),
  11693. yy: 'gada_gadiem_gads_gadi'.split('_'),
  11694. };
  11695. /**
  11696. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  11697. */
  11698. function format$1(forms, number, withoutSuffix) {
  11699. if (withoutSuffix) {
  11700. // E.g. "21 minūte", "3 minūtes".
  11701. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  11702. } else {
  11703. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  11704. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  11705. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  11706. }
  11707. }
  11708. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  11709. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  11710. }
  11711. function relativeTimeWithSingular(number, withoutSuffix, key) {
  11712. return format$1(units$1[key], number, withoutSuffix);
  11713. }
  11714. function relativeSeconds(number, withoutSuffix) {
  11715. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  11716. }
  11717. hooks.defineLocale('lv', {
  11718. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
  11719. '_'
  11720. ),
  11721. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  11722. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
  11723. '_'
  11724. ),
  11725. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  11726. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  11727. weekdaysParseExact: true,
  11728. longDateFormat: {
  11729. LT: 'HH:mm',
  11730. LTS: 'HH:mm:ss',
  11731. L: 'DD.MM.YYYY.',
  11732. LL: 'YYYY. [gada] D. MMMM',
  11733. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  11734. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
  11735. },
  11736. calendar: {
  11737. sameDay: '[Šodien pulksten] LT',
  11738. nextDay: '[Rīt pulksten] LT',
  11739. nextWeek: 'dddd [pulksten] LT',
  11740. lastDay: '[Vakar pulksten] LT',
  11741. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  11742. sameElse: 'L',
  11743. },
  11744. relativeTime: {
  11745. future: 'pēc %s',
  11746. past: 'pirms %s',
  11747. s: relativeSeconds,
  11748. ss: relativeTimeWithPlural$1,
  11749. m: relativeTimeWithSingular,
  11750. mm: relativeTimeWithPlural$1,
  11751. h: relativeTimeWithSingular,
  11752. hh: relativeTimeWithPlural$1,
  11753. d: relativeTimeWithSingular,
  11754. dd: relativeTimeWithPlural$1,
  11755. M: relativeTimeWithSingular,
  11756. MM: relativeTimeWithPlural$1,
  11757. y: relativeTimeWithSingular,
  11758. yy: relativeTimeWithPlural$1,
  11759. },
  11760. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11761. ordinal: '%d.',
  11762. week: {
  11763. dow: 1, // Monday is the first day of the week.
  11764. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11765. },
  11766. });
  11767. //! moment.js locale configuration
  11768. var translator = {
  11769. words: {
  11770. //Different grammatical cases
  11771. ss: ['sekund', 'sekunda', 'sekundi'],
  11772. m: ['jedan minut', 'jednog minuta'],
  11773. mm: ['minut', 'minuta', 'minuta'],
  11774. h: ['jedan sat', 'jednog sata'],
  11775. hh: ['sat', 'sata', 'sati'],
  11776. dd: ['dan', 'dana', 'dana'],
  11777. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  11778. yy: ['godina', 'godine', 'godina'],
  11779. },
  11780. correctGrammaticalCase: function (number, wordKey) {
  11781. return number === 1
  11782. ? wordKey[0]
  11783. : number >= 2 && number <= 4
  11784. ? wordKey[1]
  11785. : wordKey[2];
  11786. },
  11787. translate: function (number, withoutSuffix, key) {
  11788. var wordKey = translator.words[key];
  11789. if (key.length === 1) {
  11790. return withoutSuffix ? wordKey[0] : wordKey[1];
  11791. } else {
  11792. return (
  11793. number +
  11794. ' ' +
  11795. translator.correctGrammaticalCase(number, wordKey)
  11796. );
  11797. }
  11798. },
  11799. };
  11800. hooks.defineLocale('me', {
  11801. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  11802. '_'
  11803. ),
  11804. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  11805. '_'
  11806. ),
  11807. monthsParseExact: true,
  11808. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  11809. '_'
  11810. ),
  11811. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  11812. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  11813. weekdaysParseExact: true,
  11814. longDateFormat: {
  11815. LT: 'H:mm',
  11816. LTS: 'H:mm:ss',
  11817. L: 'DD.MM.YYYY',
  11818. LL: 'D. MMMM YYYY',
  11819. LLL: 'D. MMMM YYYY H:mm',
  11820. LLLL: 'dddd, D. MMMM YYYY H:mm',
  11821. },
  11822. calendar: {
  11823. sameDay: '[danas u] LT',
  11824. nextDay: '[sjutra u] LT',
  11825. nextWeek: function () {
  11826. switch (this.day()) {
  11827. case 0:
  11828. return '[u] [nedjelju] [u] LT';
  11829. case 3:
  11830. return '[u] [srijedu] [u] LT';
  11831. case 6:
  11832. return '[u] [subotu] [u] LT';
  11833. case 1:
  11834. case 2:
  11835. case 4:
  11836. case 5:
  11837. return '[u] dddd [u] LT';
  11838. }
  11839. },
  11840. lastDay: '[juče u] LT',
  11841. lastWeek: function () {
  11842. var lastWeekDays = [
  11843. '[prošle] [nedjelje] [u] LT',
  11844. '[prošlog] [ponedjeljka] [u] LT',
  11845. '[prošlog] [utorka] [u] LT',
  11846. '[prošle] [srijede] [u] LT',
  11847. '[prošlog] [četvrtka] [u] LT',
  11848. '[prošlog] [petka] [u] LT',
  11849. '[prošle] [subote] [u] LT',
  11850. ];
  11851. return lastWeekDays[this.day()];
  11852. },
  11853. sameElse: 'L',
  11854. },
  11855. relativeTime: {
  11856. future: 'za %s',
  11857. past: 'prije %s',
  11858. s: 'nekoliko sekundi',
  11859. ss: translator.translate,
  11860. m: translator.translate,
  11861. mm: translator.translate,
  11862. h: translator.translate,
  11863. hh: translator.translate,
  11864. d: 'dan',
  11865. dd: translator.translate,
  11866. M: 'mjesec',
  11867. MM: translator.translate,
  11868. y: 'godinu',
  11869. yy: translator.translate,
  11870. },
  11871. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11872. ordinal: '%d.',
  11873. week: {
  11874. dow: 1, // Monday is the first day of the week.
  11875. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11876. },
  11877. });
  11878. //! moment.js locale configuration
  11879. hooks.defineLocale('mi', {
  11880. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split(
  11881. '_'
  11882. ),
  11883. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  11884. '_'
  11885. ),
  11886. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11887. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11888. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11889. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  11890. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  11891. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11892. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11893. longDateFormat: {
  11894. LT: 'HH:mm',
  11895. LTS: 'HH:mm:ss',
  11896. L: 'DD/MM/YYYY',
  11897. LL: 'D MMMM YYYY',
  11898. LLL: 'D MMMM YYYY [i] HH:mm',
  11899. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  11900. },
  11901. calendar: {
  11902. sameDay: '[i teie mahana, i] LT',
  11903. nextDay: '[apopo i] LT',
  11904. nextWeek: 'dddd [i] LT',
  11905. lastDay: '[inanahi i] LT',
  11906. lastWeek: 'dddd [whakamutunga i] LT',
  11907. sameElse: 'L',
  11908. },
  11909. relativeTime: {
  11910. future: 'i roto i %s',
  11911. past: '%s i mua',
  11912. s: 'te hēkona ruarua',
  11913. ss: '%d hēkona',
  11914. m: 'he meneti',
  11915. mm: '%d meneti',
  11916. h: 'te haora',
  11917. hh: '%d haora',
  11918. d: 'he ra',
  11919. dd: '%d ra',
  11920. M: 'he marama',
  11921. MM: '%d marama',
  11922. y: 'he tau',
  11923. yy: '%d tau',
  11924. },
  11925. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11926. ordinal: '%dº',
  11927. week: {
  11928. dow: 1, // Monday is the first day of the week.
  11929. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11930. },
  11931. });
  11932. //! moment.js locale configuration
  11933. hooks.defineLocale('mk', {
  11934. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
  11935. '_'
  11936. ),
  11937. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  11938. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
  11939. '_'
  11940. ),
  11941. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  11942. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  11943. longDateFormat: {
  11944. LT: 'H:mm',
  11945. LTS: 'H:mm:ss',
  11946. L: 'D.MM.YYYY',
  11947. LL: 'D MMMM YYYY',
  11948. LLL: 'D MMMM YYYY H:mm',
  11949. LLLL: 'dddd, D MMMM YYYY H:mm',
  11950. },
  11951. calendar: {
  11952. sameDay: '[Денес во] LT',
  11953. nextDay: '[Утре во] LT',
  11954. nextWeek: '[Во] dddd [во] LT',
  11955. lastDay: '[Вчера во] LT',
  11956. lastWeek: function () {
  11957. switch (this.day()) {
  11958. case 0:
  11959. case 3:
  11960. case 6:
  11961. return '[Изминатата] dddd [во] LT';
  11962. case 1:
  11963. case 2:
  11964. case 4:
  11965. case 5:
  11966. return '[Изминатиот] dddd [во] LT';
  11967. }
  11968. },
  11969. sameElse: 'L',
  11970. },
  11971. relativeTime: {
  11972. future: 'за %s',
  11973. past: 'пред %s',
  11974. s: 'неколку секунди',
  11975. ss: '%d секунди',
  11976. m: 'една минута',
  11977. mm: '%d минути',
  11978. h: 'еден час',
  11979. hh: '%d часа',
  11980. d: 'еден ден',
  11981. dd: '%d дена',
  11982. M: 'еден месец',
  11983. MM: '%d месеци',
  11984. y: 'една година',
  11985. yy: '%d години',
  11986. },
  11987. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  11988. ordinal: function (number) {
  11989. var lastDigit = number % 10,
  11990. last2Digits = number % 100;
  11991. if (number === 0) {
  11992. return number + '-ев';
  11993. } else if (last2Digits === 0) {
  11994. return number + '-ен';
  11995. } else if (last2Digits > 10 && last2Digits < 20) {
  11996. return number + '-ти';
  11997. } else if (lastDigit === 1) {
  11998. return number + '-ви';
  11999. } else if (lastDigit === 2) {
  12000. return number + '-ри';
  12001. } else if (lastDigit === 7 || lastDigit === 8) {
  12002. return number + '-ми';
  12003. } else {
  12004. return number + '-ти';
  12005. }
  12006. },
  12007. week: {
  12008. dow: 1, // Monday is the first day of the week.
  12009. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12010. },
  12011. });
  12012. //! moment.js locale configuration
  12013. hooks.defineLocale('ml', {
  12014. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
  12015. '_'
  12016. ),
  12017. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
  12018. '_'
  12019. ),
  12020. monthsParseExact: true,
  12021. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
  12022. '_'
  12023. ),
  12024. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  12025. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  12026. longDateFormat: {
  12027. LT: 'A h:mm -നു',
  12028. LTS: 'A h:mm:ss -നു',
  12029. L: 'DD/MM/YYYY',
  12030. LL: 'D MMMM YYYY',
  12031. LLL: 'D MMMM YYYY, A h:mm -നു',
  12032. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
  12033. },
  12034. calendar: {
  12035. sameDay: '[ഇന്ന്] LT',
  12036. nextDay: '[നാളെ] LT',
  12037. nextWeek: 'dddd, LT',
  12038. lastDay: '[ഇന്നലെ] LT',
  12039. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  12040. sameElse: 'L',
  12041. },
  12042. relativeTime: {
  12043. future: '%s കഴിഞ്ഞ്',
  12044. past: '%s മുൻപ്',
  12045. s: 'അൽപ നിമിഷങ്ങൾ',
  12046. ss: '%d സെക്കൻഡ്',
  12047. m: 'ഒരു മിനിറ്റ്',
  12048. mm: '%d മിനിറ്റ്',
  12049. h: 'ഒരു മണിക്കൂർ',
  12050. hh: '%d മണിക്കൂർ',
  12051. d: 'ഒരു ദിവസം',
  12052. dd: '%d ദിവസം',
  12053. M: 'ഒരു മാസം',
  12054. MM: '%d മാസം',
  12055. y: 'ഒരു വർഷം',
  12056. yy: '%d വർഷം',
  12057. },
  12058. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  12059. meridiemHour: function (hour, meridiem) {
  12060. if (hour === 12) {
  12061. hour = 0;
  12062. }
  12063. if (
  12064. (meridiem === 'രാത്രി' && hour >= 4) ||
  12065. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  12066. meridiem === 'വൈകുന്നേരം'
  12067. ) {
  12068. return hour + 12;
  12069. } else {
  12070. return hour;
  12071. }
  12072. },
  12073. meridiem: function (hour, minute, isLower) {
  12074. if (hour < 4) {
  12075. return 'രാത്രി';
  12076. } else if (hour < 12) {
  12077. return 'രാവിലെ';
  12078. } else if (hour < 17) {
  12079. return 'ഉച്ച കഴിഞ്ഞ്';
  12080. } else if (hour < 20) {
  12081. return 'വൈകുന്നേരം';
  12082. } else {
  12083. return 'രാത്രി';
  12084. }
  12085. },
  12086. });
  12087. //! moment.js locale configuration
  12088. function translate$7(number, withoutSuffix, key, isFuture) {
  12089. switch (key) {
  12090. case 's':
  12091. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  12092. case 'ss':
  12093. return number + (withoutSuffix ? ' секунд' : ' секундын');
  12094. case 'm':
  12095. case 'mm':
  12096. return number + (withoutSuffix ? ' минут' : ' минутын');
  12097. case 'h':
  12098. case 'hh':
  12099. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  12100. case 'd':
  12101. case 'dd':
  12102. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  12103. case 'M':
  12104. case 'MM':
  12105. return number + (withoutSuffix ? ' сар' : ' сарын');
  12106. case 'y':
  12107. case 'yy':
  12108. return number + (withoutSuffix ? ' жил' : ' жилийн');
  12109. default:
  12110. return number;
  12111. }
  12112. }
  12113. hooks.defineLocale('mn', {
  12114. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
  12115. '_'
  12116. ),
  12117. monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
  12118. '_'
  12119. ),
  12120. monthsParseExact: true,
  12121. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  12122. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  12123. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  12124. weekdaysParseExact: true,
  12125. longDateFormat: {
  12126. LT: 'HH:mm',
  12127. LTS: 'HH:mm:ss',
  12128. L: 'YYYY-MM-DD',
  12129. LL: 'YYYY оны MMMMын D',
  12130. LLL: 'YYYY оны MMMMын D HH:mm',
  12131. LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
  12132. },
  12133. meridiemParse: /ҮӨ|ҮХ/i,
  12134. isPM: function (input) {
  12135. return input === 'ҮХ';
  12136. },
  12137. meridiem: function (hour, minute, isLower) {
  12138. if (hour < 12) {
  12139. return 'ҮӨ';
  12140. } else {
  12141. return 'ҮХ';
  12142. }
  12143. },
  12144. calendar: {
  12145. sameDay: '[Өнөөдөр] LT',
  12146. nextDay: '[Маргааш] LT',
  12147. nextWeek: '[Ирэх] dddd LT',
  12148. lastDay: '[Өчигдөр] LT',
  12149. lastWeek: '[Өнгөрсөн] dddd LT',
  12150. sameElse: 'L',
  12151. },
  12152. relativeTime: {
  12153. future: '%s дараа',
  12154. past: '%s өмнө',
  12155. s: translate$7,
  12156. ss: translate$7,
  12157. m: translate$7,
  12158. mm: translate$7,
  12159. h: translate$7,
  12160. hh: translate$7,
  12161. d: translate$7,
  12162. dd: translate$7,
  12163. M: translate$7,
  12164. MM: translate$7,
  12165. y: translate$7,
  12166. yy: translate$7,
  12167. },
  12168. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  12169. ordinal: function (number, period) {
  12170. switch (period) {
  12171. case 'd':
  12172. case 'D':
  12173. case 'DDD':
  12174. return number + ' өдөр';
  12175. default:
  12176. return number;
  12177. }
  12178. },
  12179. });
  12180. //! moment.js locale configuration
  12181. var symbolMap$b = {
  12182. '1': '१',
  12183. '2': '२',
  12184. '3': '३',
  12185. '4': '४',
  12186. '5': '५',
  12187. '6': '६',
  12188. '7': '७',
  12189. '8': '८',
  12190. '9': '९',
  12191. '0': '०',
  12192. },
  12193. numberMap$a = {
  12194. '१': '1',
  12195. '२': '2',
  12196. '३': '3',
  12197. '४': '4',
  12198. '५': '5',
  12199. '६': '6',
  12200. '७': '7',
  12201. '८': '8',
  12202. '९': '9',
  12203. '०': '0',
  12204. };
  12205. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  12206. var output = '';
  12207. if (withoutSuffix) {
  12208. switch (string) {
  12209. case 's':
  12210. output = 'काही सेकंद';
  12211. break;
  12212. case 'ss':
  12213. output = '%d सेकंद';
  12214. break;
  12215. case 'm':
  12216. output = 'एक मिनिट';
  12217. break;
  12218. case 'mm':
  12219. output = '%d मिनिटे';
  12220. break;
  12221. case 'h':
  12222. output = 'एक तास';
  12223. break;
  12224. case 'hh':
  12225. output = '%d तास';
  12226. break;
  12227. case 'd':
  12228. output = 'एक दिवस';
  12229. break;
  12230. case 'dd':
  12231. output = '%d दिवस';
  12232. break;
  12233. case 'M':
  12234. output = 'एक महिना';
  12235. break;
  12236. case 'MM':
  12237. output = '%d महिने';
  12238. break;
  12239. case 'y':
  12240. output = 'एक वर्ष';
  12241. break;
  12242. case 'yy':
  12243. output = '%d वर्षे';
  12244. break;
  12245. }
  12246. } else {
  12247. switch (string) {
  12248. case 's':
  12249. output = 'काही सेकंदां';
  12250. break;
  12251. case 'ss':
  12252. output = '%d सेकंदां';
  12253. break;
  12254. case 'm':
  12255. output = 'एका मिनिटा';
  12256. break;
  12257. case 'mm':
  12258. output = '%d मिनिटां';
  12259. break;
  12260. case 'h':
  12261. output = 'एका तासा';
  12262. break;
  12263. case 'hh':
  12264. output = '%d तासां';
  12265. break;
  12266. case 'd':
  12267. output = 'एका दिवसा';
  12268. break;
  12269. case 'dd':
  12270. output = '%d दिवसां';
  12271. break;
  12272. case 'M':
  12273. output = 'एका महिन्या';
  12274. break;
  12275. case 'MM':
  12276. output = '%d महिन्यां';
  12277. break;
  12278. case 'y':
  12279. output = 'एका वर्षा';
  12280. break;
  12281. case 'yy':
  12282. output = '%d वर्षां';
  12283. break;
  12284. }
  12285. }
  12286. return output.replace(/%d/i, number);
  12287. }
  12288. hooks.defineLocale('mr', {
  12289. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  12290. '_'
  12291. ),
  12292. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  12293. '_'
  12294. ),
  12295. monthsParseExact: true,
  12296. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  12297. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  12298. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  12299. longDateFormat: {
  12300. LT: 'A h:mm वाजता',
  12301. LTS: 'A h:mm:ss वाजता',
  12302. L: 'DD/MM/YYYY',
  12303. LL: 'D MMMM YYYY',
  12304. LLL: 'D MMMM YYYY, A h:mm वाजता',
  12305. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
  12306. },
  12307. calendar: {
  12308. sameDay: '[आज] LT',
  12309. nextDay: '[उद्या] LT',
  12310. nextWeek: 'dddd, LT',
  12311. lastDay: '[काल] LT',
  12312. lastWeek: '[मागील] dddd, LT',
  12313. sameElse: 'L',
  12314. },
  12315. relativeTime: {
  12316. future: '%sमध्ये',
  12317. past: '%sपूर्वी',
  12318. s: relativeTimeMr,
  12319. ss: relativeTimeMr,
  12320. m: relativeTimeMr,
  12321. mm: relativeTimeMr,
  12322. h: relativeTimeMr,
  12323. hh: relativeTimeMr,
  12324. d: relativeTimeMr,
  12325. dd: relativeTimeMr,
  12326. M: relativeTimeMr,
  12327. MM: relativeTimeMr,
  12328. y: relativeTimeMr,
  12329. yy: relativeTimeMr,
  12330. },
  12331. preparse: function (string) {
  12332. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12333. return numberMap$a[match];
  12334. });
  12335. },
  12336. postformat: function (string) {
  12337. return string.replace(/\d/g, function (match) {
  12338. return symbolMap$b[match];
  12339. });
  12340. },
  12341. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  12342. meridiemHour: function (hour, meridiem) {
  12343. if (hour === 12) {
  12344. hour = 0;
  12345. }
  12346. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  12347. return hour;
  12348. } else if (
  12349. meridiem === 'दुपारी' ||
  12350. meridiem === 'सायंकाळी' ||
  12351. meridiem === 'रात्री'
  12352. ) {
  12353. return hour >= 12 ? hour : hour + 12;
  12354. }
  12355. },
  12356. meridiem: function (hour, minute, isLower) {
  12357. if (hour >= 0 && hour < 6) {
  12358. return 'पहाटे';
  12359. } else if (hour < 12) {
  12360. return 'सकाळी';
  12361. } else if (hour < 17) {
  12362. return 'दुपारी';
  12363. } else if (hour < 20) {
  12364. return 'सायंकाळी';
  12365. } else {
  12366. return 'रात्री';
  12367. }
  12368. },
  12369. week: {
  12370. dow: 0, // Sunday is the first day of the week.
  12371. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12372. },
  12373. });
  12374. //! moment.js locale configuration
  12375. hooks.defineLocale('ms-my', {
  12376. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12377. '_'
  12378. ),
  12379. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12380. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12381. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12382. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12383. longDateFormat: {
  12384. LT: 'HH.mm',
  12385. LTS: 'HH.mm.ss',
  12386. L: 'DD/MM/YYYY',
  12387. LL: 'D MMMM YYYY',
  12388. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12389. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12390. },
  12391. meridiemParse: /pagi|tengahari|petang|malam/,
  12392. meridiemHour: function (hour, meridiem) {
  12393. if (hour === 12) {
  12394. hour = 0;
  12395. }
  12396. if (meridiem === 'pagi') {
  12397. return hour;
  12398. } else if (meridiem === 'tengahari') {
  12399. return hour >= 11 ? hour : hour + 12;
  12400. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12401. return hour + 12;
  12402. }
  12403. },
  12404. meridiem: function (hours, minutes, isLower) {
  12405. if (hours < 11) {
  12406. return 'pagi';
  12407. } else if (hours < 15) {
  12408. return 'tengahari';
  12409. } else if (hours < 19) {
  12410. return 'petang';
  12411. } else {
  12412. return 'malam';
  12413. }
  12414. },
  12415. calendar: {
  12416. sameDay: '[Hari ini pukul] LT',
  12417. nextDay: '[Esok pukul] LT',
  12418. nextWeek: 'dddd [pukul] LT',
  12419. lastDay: '[Kelmarin pukul] LT',
  12420. lastWeek: 'dddd [lepas pukul] LT',
  12421. sameElse: 'L',
  12422. },
  12423. relativeTime: {
  12424. future: 'dalam %s',
  12425. past: '%s yang lepas',
  12426. s: 'beberapa saat',
  12427. ss: '%d saat',
  12428. m: 'seminit',
  12429. mm: '%d minit',
  12430. h: 'sejam',
  12431. hh: '%d jam',
  12432. d: 'sehari',
  12433. dd: '%d hari',
  12434. M: 'sebulan',
  12435. MM: '%d bulan',
  12436. y: 'setahun',
  12437. yy: '%d tahun',
  12438. },
  12439. week: {
  12440. dow: 1, // Monday is the first day of the week.
  12441. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12442. },
  12443. });
  12444. //! moment.js locale configuration
  12445. hooks.defineLocale('ms', {
  12446. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12447. '_'
  12448. ),
  12449. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12450. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12451. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12452. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12453. longDateFormat: {
  12454. LT: 'HH.mm',
  12455. LTS: 'HH.mm.ss',
  12456. L: 'DD/MM/YYYY',
  12457. LL: 'D MMMM YYYY',
  12458. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12459. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12460. },
  12461. meridiemParse: /pagi|tengahari|petang|malam/,
  12462. meridiemHour: function (hour, meridiem) {
  12463. if (hour === 12) {
  12464. hour = 0;
  12465. }
  12466. if (meridiem === 'pagi') {
  12467. return hour;
  12468. } else if (meridiem === 'tengahari') {
  12469. return hour >= 11 ? hour : hour + 12;
  12470. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12471. return hour + 12;
  12472. }
  12473. },
  12474. meridiem: function (hours, minutes, isLower) {
  12475. if (hours < 11) {
  12476. return 'pagi';
  12477. } else if (hours < 15) {
  12478. return 'tengahari';
  12479. } else if (hours < 19) {
  12480. return 'petang';
  12481. } else {
  12482. return 'malam';
  12483. }
  12484. },
  12485. calendar: {
  12486. sameDay: '[Hari ini pukul] LT',
  12487. nextDay: '[Esok pukul] LT',
  12488. nextWeek: 'dddd [pukul] LT',
  12489. lastDay: '[Kelmarin pukul] LT',
  12490. lastWeek: 'dddd [lepas pukul] LT',
  12491. sameElse: 'L',
  12492. },
  12493. relativeTime: {
  12494. future: 'dalam %s',
  12495. past: '%s yang lepas',
  12496. s: 'beberapa saat',
  12497. ss: '%d saat',
  12498. m: 'seminit',
  12499. mm: '%d minit',
  12500. h: 'sejam',
  12501. hh: '%d jam',
  12502. d: 'sehari',
  12503. dd: '%d hari',
  12504. M: 'sebulan',
  12505. MM: '%d bulan',
  12506. y: 'setahun',
  12507. yy: '%d tahun',
  12508. },
  12509. week: {
  12510. dow: 1, // Monday is the first day of the week.
  12511. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12512. },
  12513. });
  12514. //! moment.js locale configuration
  12515. hooks.defineLocale('mt', {
  12516. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
  12517. '_'
  12518. ),
  12519. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  12520. weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
  12521. '_'
  12522. ),
  12523. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  12524. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  12525. longDateFormat: {
  12526. LT: 'HH:mm',
  12527. LTS: 'HH:mm:ss',
  12528. L: 'DD/MM/YYYY',
  12529. LL: 'D MMMM YYYY',
  12530. LLL: 'D MMMM YYYY HH:mm',
  12531. LLLL: 'dddd, D MMMM YYYY HH:mm',
  12532. },
  12533. calendar: {
  12534. sameDay: '[Illum fil-]LT',
  12535. nextDay: '[Għada fil-]LT',
  12536. nextWeek: 'dddd [fil-]LT',
  12537. lastDay: '[Il-bieraħ fil-]LT',
  12538. lastWeek: 'dddd [li għadda] [fil-]LT',
  12539. sameElse: 'L',
  12540. },
  12541. relativeTime: {
  12542. future: 'f’ %s',
  12543. past: '%s ilu',
  12544. s: 'ftit sekondi',
  12545. ss: '%d sekondi',
  12546. m: 'minuta',
  12547. mm: '%d minuti',
  12548. h: 'siegħa',
  12549. hh: '%d siegħat',
  12550. d: 'ġurnata',
  12551. dd: '%d ġranet',
  12552. M: 'xahar',
  12553. MM: '%d xhur',
  12554. y: 'sena',
  12555. yy: '%d sni',
  12556. },
  12557. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12558. ordinal: '%dº',
  12559. week: {
  12560. dow: 1, // Monday is the first day of the week.
  12561. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12562. },
  12563. });
  12564. //! moment.js locale configuration
  12565. var symbolMap$c = {
  12566. '1': '၁',
  12567. '2': '၂',
  12568. '3': '၃',
  12569. '4': '၄',
  12570. '5': '၅',
  12571. '6': '၆',
  12572. '7': '၇',
  12573. '8': '၈',
  12574. '9': '၉',
  12575. '0': '၀',
  12576. },
  12577. numberMap$b = {
  12578. '၁': '1',
  12579. '၂': '2',
  12580. '၃': '3',
  12581. '၄': '4',
  12582. '၅': '5',
  12583. '၆': '6',
  12584. '၇': '7',
  12585. '၈': '8',
  12586. '၉': '9',
  12587. '၀': '0',
  12588. };
  12589. hooks.defineLocale('my', {
  12590. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  12591. '_'
  12592. ),
  12593. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  12594. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  12595. '_'
  12596. ),
  12597. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12598. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12599. longDateFormat: {
  12600. LT: 'HH:mm',
  12601. LTS: 'HH:mm:ss',
  12602. L: 'DD/MM/YYYY',
  12603. LL: 'D MMMM YYYY',
  12604. LLL: 'D MMMM YYYY HH:mm',
  12605. LLLL: 'dddd D MMMM YYYY HH:mm',
  12606. },
  12607. calendar: {
  12608. sameDay: '[ယနေ.] LT [မှာ]',
  12609. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  12610. nextWeek: 'dddd LT [မှာ]',
  12611. lastDay: '[မနေ.က] LT [မှာ]',
  12612. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  12613. sameElse: 'L',
  12614. },
  12615. relativeTime: {
  12616. future: 'လာမည့် %s မှာ',
  12617. past: 'လွန်ခဲ့သော %s က',
  12618. s: 'စက္ကန်.အနည်းငယ်',
  12619. ss: '%d စက္ကန့်',
  12620. m: 'တစ်မိနစ်',
  12621. mm: '%d မိနစ်',
  12622. h: 'တစ်နာရီ',
  12623. hh: '%d နာရီ',
  12624. d: 'တစ်ရက်',
  12625. dd: '%d ရက်',
  12626. M: 'တစ်လ',
  12627. MM: '%d လ',
  12628. y: 'တစ်နှစ်',
  12629. yy: '%d နှစ်',
  12630. },
  12631. preparse: function (string) {
  12632. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  12633. return numberMap$b[match];
  12634. });
  12635. },
  12636. postformat: function (string) {
  12637. return string.replace(/\d/g, function (match) {
  12638. return symbolMap$c[match];
  12639. });
  12640. },
  12641. week: {
  12642. dow: 1, // Monday is the first day of the week.
  12643. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12644. },
  12645. });
  12646. //! moment.js locale configuration
  12647. hooks.defineLocale('nb', {
  12648. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  12649. '_'
  12650. ),
  12651. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  12652. '_'
  12653. ),
  12654. monthsParseExact: true,
  12655. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  12656. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  12657. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  12658. weekdaysParseExact: true,
  12659. longDateFormat: {
  12660. LT: 'HH:mm',
  12661. LTS: 'HH:mm:ss',
  12662. L: 'DD.MM.YYYY',
  12663. LL: 'D. MMMM YYYY',
  12664. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  12665. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  12666. },
  12667. calendar: {
  12668. sameDay: '[i dag kl.] LT',
  12669. nextDay: '[i morgen kl.] LT',
  12670. nextWeek: 'dddd [kl.] LT',
  12671. lastDay: '[i går kl.] LT',
  12672. lastWeek: '[forrige] dddd [kl.] LT',
  12673. sameElse: 'L',
  12674. },
  12675. relativeTime: {
  12676. future: 'om %s',
  12677. past: '%s siden',
  12678. s: 'noen sekunder',
  12679. ss: '%d sekunder',
  12680. m: 'ett minutt',
  12681. mm: '%d minutter',
  12682. h: 'en time',
  12683. hh: '%d timer',
  12684. d: 'en dag',
  12685. dd: '%d dager',
  12686. M: 'en måned',
  12687. MM: '%d måneder',
  12688. y: 'ett år',
  12689. yy: '%d år',
  12690. },
  12691. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12692. ordinal: '%d.',
  12693. week: {
  12694. dow: 1, // Monday is the first day of the week.
  12695. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12696. },
  12697. });
  12698. //! moment.js locale configuration
  12699. var symbolMap$d = {
  12700. '1': '१',
  12701. '2': '२',
  12702. '3': '३',
  12703. '4': '४',
  12704. '5': '५',
  12705. '6': '६',
  12706. '7': '७',
  12707. '8': '८',
  12708. '9': '९',
  12709. '0': '०',
  12710. },
  12711. numberMap$c = {
  12712. '१': '1',
  12713. '२': '2',
  12714. '३': '3',
  12715. '४': '4',
  12716. '५': '5',
  12717. '६': '6',
  12718. '७': '7',
  12719. '८': '8',
  12720. '९': '9',
  12721. '०': '0',
  12722. };
  12723. hooks.defineLocale('ne', {
  12724. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  12725. '_'
  12726. ),
  12727. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  12728. '_'
  12729. ),
  12730. monthsParseExact: true,
  12731. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  12732. '_'
  12733. ),
  12734. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  12735. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  12736. weekdaysParseExact: true,
  12737. longDateFormat: {
  12738. LT: 'Aको h:mm बजे',
  12739. LTS: 'Aको h:mm:ss बजे',
  12740. L: 'DD/MM/YYYY',
  12741. LL: 'D MMMM YYYY',
  12742. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  12743. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
  12744. },
  12745. preparse: function (string) {
  12746. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12747. return numberMap$c[match];
  12748. });
  12749. },
  12750. postformat: function (string) {
  12751. return string.replace(/\d/g, function (match) {
  12752. return symbolMap$d[match];
  12753. });
  12754. },
  12755. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  12756. meridiemHour: function (hour, meridiem) {
  12757. if (hour === 12) {
  12758. hour = 0;
  12759. }
  12760. if (meridiem === 'राति') {
  12761. return hour < 4 ? hour : hour + 12;
  12762. } else if (meridiem === 'बिहान') {
  12763. return hour;
  12764. } else if (meridiem === 'दिउँसो') {
  12765. return hour >= 10 ? hour : hour + 12;
  12766. } else if (meridiem === 'साँझ') {
  12767. return hour + 12;
  12768. }
  12769. },
  12770. meridiem: function (hour, minute, isLower) {
  12771. if (hour < 3) {
  12772. return 'राति';
  12773. } else if (hour < 12) {
  12774. return 'बिहान';
  12775. } else if (hour < 16) {
  12776. return 'दिउँसो';
  12777. } else if (hour < 20) {
  12778. return 'साँझ';
  12779. } else {
  12780. return 'राति';
  12781. }
  12782. },
  12783. calendar: {
  12784. sameDay: '[आज] LT',
  12785. nextDay: '[भोलि] LT',
  12786. nextWeek: '[आउँदो] dddd[,] LT',
  12787. lastDay: '[हिजो] LT',
  12788. lastWeek: '[गएको] dddd[,] LT',
  12789. sameElse: 'L',
  12790. },
  12791. relativeTime: {
  12792. future: '%sमा',
  12793. past: '%s अगाडि',
  12794. s: 'केही क्षण',
  12795. ss: '%d सेकेण्ड',
  12796. m: 'एक मिनेट',
  12797. mm: '%d मिनेट',
  12798. h: 'एक घण्टा',
  12799. hh: '%d घण्टा',
  12800. d: 'एक दिन',
  12801. dd: '%d दिन',
  12802. M: 'एक महिना',
  12803. MM: '%d महिना',
  12804. y: 'एक बर्ष',
  12805. yy: '%d बर्ष',
  12806. },
  12807. week: {
  12808. dow: 0, // Sunday is the first day of the week.
  12809. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12810. },
  12811. });
  12812. //! moment.js locale configuration
  12813. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  12814. '_'
  12815. ),
  12816. monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  12817. '_'
  12818. ),
  12819. monthsParse$6 = [
  12820. /^jan/i,
  12821. /^feb/i,
  12822. /^maart|mrt.?$/i,
  12823. /^apr/i,
  12824. /^mei$/i,
  12825. /^jun[i.]?$/i,
  12826. /^jul[i.]?$/i,
  12827. /^aug/i,
  12828. /^sep/i,
  12829. /^okt/i,
  12830. /^nov/i,
  12831. /^dec/i,
  12832. ],
  12833. monthsRegex$7 = /^(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;
  12834. hooks.defineLocale('nl-be', {
  12835. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  12836. '_'
  12837. ),
  12838. monthsShort: function (m, format) {
  12839. if (!m) {
  12840. return monthsShortWithDots$1;
  12841. } else if (/-MMM-/.test(format)) {
  12842. return monthsShortWithoutDots$1[m.month()];
  12843. } else {
  12844. return monthsShortWithDots$1[m.month()];
  12845. }
  12846. },
  12847. monthsRegex: monthsRegex$7,
  12848. monthsShortRegex: monthsRegex$7,
  12849. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  12850. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  12851. monthsParse: monthsParse$6,
  12852. longMonthsParse: monthsParse$6,
  12853. shortMonthsParse: monthsParse$6,
  12854. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  12855. '_'
  12856. ),
  12857. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  12858. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  12859. weekdaysParseExact: true,
  12860. longDateFormat: {
  12861. LT: 'HH:mm',
  12862. LTS: 'HH:mm:ss',
  12863. L: 'DD/MM/YYYY',
  12864. LL: 'D MMMM YYYY',
  12865. LLL: 'D MMMM YYYY HH:mm',
  12866. LLLL: 'dddd D MMMM YYYY HH:mm',
  12867. },
  12868. calendar: {
  12869. sameDay: '[vandaag om] LT',
  12870. nextDay: '[morgen om] LT',
  12871. nextWeek: 'dddd [om] LT',
  12872. lastDay: '[gisteren om] LT',
  12873. lastWeek: '[afgelopen] dddd [om] LT',
  12874. sameElse: 'L',
  12875. },
  12876. relativeTime: {
  12877. future: 'over %s',
  12878. past: '%s geleden',
  12879. s: 'een paar seconden',
  12880. ss: '%d seconden',
  12881. m: 'één minuut',
  12882. mm: '%d minuten',
  12883. h: 'één uur',
  12884. hh: '%d uur',
  12885. d: 'één dag',
  12886. dd: '%d dagen',
  12887. M: 'één maand',
  12888. MM: '%d maanden',
  12889. y: 'één jaar',
  12890. yy: '%d jaar',
  12891. },
  12892. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12893. ordinal: function (number) {
  12894. return (
  12895. number +
  12896. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  12897. );
  12898. },
  12899. week: {
  12900. dow: 1, // Monday is the first day of the week.
  12901. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12902. },
  12903. });
  12904. //! moment.js locale configuration
  12905. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  12906. '_'
  12907. ),
  12908. monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  12909. '_'
  12910. ),
  12911. monthsParse$7 = [
  12912. /^jan/i,
  12913. /^feb/i,
  12914. /^maart|mrt.?$/i,
  12915. /^apr/i,
  12916. /^mei$/i,
  12917. /^jun[i.]?$/i,
  12918. /^jul[i.]?$/i,
  12919. /^aug/i,
  12920. /^sep/i,
  12921. /^okt/i,
  12922. /^nov/i,
  12923. /^dec/i,
  12924. ],
  12925. monthsRegex$8 = /^(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;
  12926. hooks.defineLocale('nl', {
  12927. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  12928. '_'
  12929. ),
  12930. monthsShort: function (m, format) {
  12931. if (!m) {
  12932. return monthsShortWithDots$2;
  12933. } else if (/-MMM-/.test(format)) {
  12934. return monthsShortWithoutDots$2[m.month()];
  12935. } else {
  12936. return monthsShortWithDots$2[m.month()];
  12937. }
  12938. },
  12939. monthsRegex: monthsRegex$8,
  12940. monthsShortRegex: monthsRegex$8,
  12941. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  12942. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  12943. monthsParse: monthsParse$7,
  12944. longMonthsParse: monthsParse$7,
  12945. shortMonthsParse: monthsParse$7,
  12946. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  12947. '_'
  12948. ),
  12949. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  12950. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  12951. weekdaysParseExact: true,
  12952. longDateFormat: {
  12953. LT: 'HH:mm',
  12954. LTS: 'HH:mm:ss',
  12955. L: 'DD-MM-YYYY',
  12956. LL: 'D MMMM YYYY',
  12957. LLL: 'D MMMM YYYY HH:mm',
  12958. LLLL: 'dddd D MMMM YYYY HH:mm',
  12959. },
  12960. calendar: {
  12961. sameDay: '[vandaag om] LT',
  12962. nextDay: '[morgen om] LT',
  12963. nextWeek: 'dddd [om] LT',
  12964. lastDay: '[gisteren om] LT',
  12965. lastWeek: '[afgelopen] dddd [om] LT',
  12966. sameElse: 'L',
  12967. },
  12968. relativeTime: {
  12969. future: 'over %s',
  12970. past: '%s geleden',
  12971. s: 'een paar seconden',
  12972. ss: '%d seconden',
  12973. m: 'één minuut',
  12974. mm: '%d minuten',
  12975. h: 'één uur',
  12976. hh: '%d uur',
  12977. d: 'één dag',
  12978. dd: '%d dagen',
  12979. M: 'één maand',
  12980. MM: '%d maanden',
  12981. y: 'één jaar',
  12982. yy: '%d jaar',
  12983. },
  12984. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12985. ordinal: function (number) {
  12986. return (
  12987. number +
  12988. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  12989. );
  12990. },
  12991. week: {
  12992. dow: 1, // Monday is the first day of the week.
  12993. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12994. },
  12995. });
  12996. //! moment.js locale configuration
  12997. hooks.defineLocale('nn', {
  12998. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  12999. '_'
  13000. ),
  13001. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  13002. '_'
  13003. ),
  13004. monthsParseExact: true,
  13005. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  13006. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  13007. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  13008. weekdaysParseExact: true,
  13009. longDateFormat: {
  13010. LT: 'HH:mm',
  13011. LTS: 'HH:mm:ss',
  13012. L: 'DD.MM.YYYY',
  13013. LL: 'D. MMMM YYYY',
  13014. LLL: 'D. MMMM YYYY [kl.] H:mm',
  13015. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  13016. },
  13017. calendar: {
  13018. sameDay: '[I dag klokka] LT',
  13019. nextDay: '[I morgon klokka] LT',
  13020. nextWeek: 'dddd [klokka] LT',
  13021. lastDay: '[I går klokka] LT',
  13022. lastWeek: '[Føregåande] dddd [klokka] LT',
  13023. sameElse: 'L',
  13024. },
  13025. relativeTime: {
  13026. future: 'om %s',
  13027. past: '%s sidan',
  13028. s: 'nokre sekund',
  13029. ss: '%d sekund',
  13030. m: 'eit minutt',
  13031. mm: '%d minutt',
  13032. h: 'ein time',
  13033. hh: '%d timar',
  13034. d: 'ein dag',
  13035. dd: '%d dagar',
  13036. M: 'ein månad',
  13037. MM: '%d månader',
  13038. y: 'eit år',
  13039. yy: '%d år',
  13040. },
  13041. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13042. ordinal: '%d.',
  13043. week: {
  13044. dow: 1, // Monday is the first day of the week.
  13045. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13046. },
  13047. });
  13048. //! moment.js locale configuration
  13049. hooks.defineLocale('oc-lnc', {
  13050. months: {
  13051. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  13052. '_'
  13053. ),
  13054. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split(
  13055. '_'
  13056. ),
  13057. isFormat: /D[oD]?(\s)+MMMM/,
  13058. },
  13059. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  13060. '_'
  13061. ),
  13062. monthsParseExact: true,
  13063. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  13064. '_'
  13065. ),
  13066. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  13067. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  13068. weekdaysParseExact: true,
  13069. longDateFormat: {
  13070. LT: 'H:mm',
  13071. LTS: 'H:mm:ss',
  13072. L: 'DD/MM/YYYY',
  13073. LL: 'D MMMM [de] YYYY',
  13074. ll: 'D MMM YYYY',
  13075. LLL: 'D MMMM [de] YYYY [a] H:mm',
  13076. lll: 'D MMM YYYY, H:mm',
  13077. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  13078. llll: 'ddd D MMM YYYY, H:mm',
  13079. },
  13080. calendar: {
  13081. sameDay: '[uèi a] LT',
  13082. nextDay: '[deman a] LT',
  13083. nextWeek: 'dddd [a] LT',
  13084. lastDay: '[ièr a] LT',
  13085. lastWeek: 'dddd [passat a] LT',
  13086. sameElse: 'L',
  13087. },
  13088. relativeTime: {
  13089. future: "d'aquí %s",
  13090. past: 'fa %s',
  13091. s: 'unas segondas',
  13092. ss: '%d segondas',
  13093. m: 'una minuta',
  13094. mm: '%d minutas',
  13095. h: 'una ora',
  13096. hh: '%d oras',
  13097. d: 'un jorn',
  13098. dd: '%d jorns',
  13099. M: 'un mes',
  13100. MM: '%d meses',
  13101. y: 'un an',
  13102. yy: '%d ans',
  13103. },
  13104. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  13105. ordinal: function (number, period) {
  13106. var output =
  13107. number === 1
  13108. ? 'r'
  13109. : number === 2
  13110. ? 'n'
  13111. : number === 3
  13112. ? 'r'
  13113. : number === 4
  13114. ? 't'
  13115. : 'è';
  13116. if (period === 'w' || period === 'W') {
  13117. output = 'a';
  13118. }
  13119. return number + output;
  13120. },
  13121. week: {
  13122. dow: 1, // Monday is the first day of the week.
  13123. doy: 4,
  13124. },
  13125. });
  13126. //! moment.js locale configuration
  13127. var symbolMap$e = {
  13128. '1': '੧',
  13129. '2': '੨',
  13130. '3': '੩',
  13131. '4': '੪',
  13132. '5': '੫',
  13133. '6': '੬',
  13134. '7': '੭',
  13135. '8': '੮',
  13136. '9': '੯',
  13137. '0': '੦',
  13138. },
  13139. numberMap$d = {
  13140. '੧': '1',
  13141. '੨': '2',
  13142. '੩': '3',
  13143. '੪': '4',
  13144. '੫': '5',
  13145. '੬': '6',
  13146. '੭': '7',
  13147. '੮': '8',
  13148. '੯': '9',
  13149. '੦': '0',
  13150. };
  13151. hooks.defineLocale('pa-in', {
  13152. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  13153. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13154. '_'
  13155. ),
  13156. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13157. '_'
  13158. ),
  13159. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
  13160. '_'
  13161. ),
  13162. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13163. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13164. longDateFormat: {
  13165. LT: 'A h:mm ਵਜੇ',
  13166. LTS: 'A h:mm:ss ਵਜੇ',
  13167. L: 'DD/MM/YYYY',
  13168. LL: 'D MMMM YYYY',
  13169. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  13170. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
  13171. },
  13172. calendar: {
  13173. sameDay: '[ਅਜ] LT',
  13174. nextDay: '[ਕਲ] LT',
  13175. nextWeek: '[ਅਗਲਾ] dddd, LT',
  13176. lastDay: '[ਕਲ] LT',
  13177. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  13178. sameElse: 'L',
  13179. },
  13180. relativeTime: {
  13181. future: '%s ਵਿੱਚ',
  13182. past: '%s ਪਿਛਲੇ',
  13183. s: 'ਕੁਝ ਸਕਿੰਟ',
  13184. ss: '%d ਸਕਿੰਟ',
  13185. m: 'ਇਕ ਮਿੰਟ',
  13186. mm: '%d ਮਿੰਟ',
  13187. h: 'ਇੱਕ ਘੰਟਾ',
  13188. hh: '%d ਘੰਟੇ',
  13189. d: 'ਇੱਕ ਦਿਨ',
  13190. dd: '%d ਦਿਨ',
  13191. M: 'ਇੱਕ ਮਹੀਨਾ',
  13192. MM: '%d ਮਹੀਨੇ',
  13193. y: 'ਇੱਕ ਸਾਲ',
  13194. yy: '%d ਸਾਲ',
  13195. },
  13196. preparse: function (string) {
  13197. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  13198. return numberMap$d[match];
  13199. });
  13200. },
  13201. postformat: function (string) {
  13202. return string.replace(/\d/g, function (match) {
  13203. return symbolMap$e[match];
  13204. });
  13205. },
  13206. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  13207. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  13208. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  13209. meridiemHour: function (hour, meridiem) {
  13210. if (hour === 12) {
  13211. hour = 0;
  13212. }
  13213. if (meridiem === 'ਰਾਤ') {
  13214. return hour < 4 ? hour : hour + 12;
  13215. } else if (meridiem === 'ਸਵੇਰ') {
  13216. return hour;
  13217. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  13218. return hour >= 10 ? hour : hour + 12;
  13219. } else if (meridiem === 'ਸ਼ਾਮ') {
  13220. return hour + 12;
  13221. }
  13222. },
  13223. meridiem: function (hour, minute, isLower) {
  13224. if (hour < 4) {
  13225. return 'ਰਾਤ';
  13226. } else if (hour < 10) {
  13227. return 'ਸਵੇਰ';
  13228. } else if (hour < 17) {
  13229. return 'ਦੁਪਹਿਰ';
  13230. } else if (hour < 20) {
  13231. return 'ਸ਼ਾਮ';
  13232. } else {
  13233. return 'ਰਾਤ';
  13234. }
  13235. },
  13236. week: {
  13237. dow: 0, // Sunday is the first day of the week.
  13238. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13239. },
  13240. });
  13241. //! moment.js locale configuration
  13242. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
  13243. '_'
  13244. ),
  13245. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
  13246. '_'
  13247. );
  13248. function plural$3(n) {
  13249. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  13250. }
  13251. function translate$8(number, withoutSuffix, key) {
  13252. var result = number + ' ';
  13253. switch (key) {
  13254. case 'ss':
  13255. return result + (plural$3(number) ? 'sekundy' : 'sekund');
  13256. case 'm':
  13257. return withoutSuffix ? 'minuta' : 'minutę';
  13258. case 'mm':
  13259. return result + (plural$3(number) ? 'minuty' : 'minut');
  13260. case 'h':
  13261. return withoutSuffix ? 'godzina' : 'godzinę';
  13262. case 'hh':
  13263. return result + (plural$3(number) ? 'godziny' : 'godzin');
  13264. case 'MM':
  13265. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  13266. case 'yy':
  13267. return result + (plural$3(number) ? 'lata' : 'lat');
  13268. }
  13269. }
  13270. hooks.defineLocale('pl', {
  13271. months: function (momentToFormat, format) {
  13272. if (!momentToFormat) {
  13273. return monthsNominative;
  13274. } else if (format === '') {
  13275. // Hack: if format empty we know this is used to generate
  13276. // RegExp by moment. Give then back both valid forms of months
  13277. // in RegExp ready format.
  13278. return (
  13279. '(' +
  13280. monthsSubjective[momentToFormat.month()] +
  13281. '|' +
  13282. monthsNominative[momentToFormat.month()] +
  13283. ')'
  13284. );
  13285. } else if (/D MMMM/.test(format)) {
  13286. return monthsSubjective[momentToFormat.month()];
  13287. } else {
  13288. return monthsNominative[momentToFormat.month()];
  13289. }
  13290. },
  13291. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  13292. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
  13293. '_'
  13294. ),
  13295. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  13296. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  13297. longDateFormat: {
  13298. LT: 'HH:mm',
  13299. LTS: 'HH:mm:ss',
  13300. L: 'DD.MM.YYYY',
  13301. LL: 'D MMMM YYYY',
  13302. LLL: 'D MMMM YYYY HH:mm',
  13303. LLLL: 'dddd, D MMMM YYYY HH:mm',
  13304. },
  13305. calendar: {
  13306. sameDay: '[Dziś o] LT',
  13307. nextDay: '[Jutro o] LT',
  13308. nextWeek: function () {
  13309. switch (this.day()) {
  13310. case 0:
  13311. return '[W niedzielę o] LT';
  13312. case 2:
  13313. return '[We wtorek o] LT';
  13314. case 3:
  13315. return '[W środę o] LT';
  13316. case 6:
  13317. return '[W sobotę o] LT';
  13318. default:
  13319. return '[W] dddd [o] LT';
  13320. }
  13321. },
  13322. lastDay: '[Wczoraj o] LT',
  13323. lastWeek: function () {
  13324. switch (this.day()) {
  13325. case 0:
  13326. return '[W zeszłą niedzielę o] LT';
  13327. case 3:
  13328. return '[W zeszłą środę o] LT';
  13329. case 6:
  13330. return '[W zeszłą sobotę o] LT';
  13331. default:
  13332. return '[W zeszły] dddd [o] LT';
  13333. }
  13334. },
  13335. sameElse: 'L',
  13336. },
  13337. relativeTime: {
  13338. future: 'za %s',
  13339. past: '%s temu',
  13340. s: 'kilka sekund',
  13341. ss: translate$8,
  13342. m: translate$8,
  13343. mm: translate$8,
  13344. h: translate$8,
  13345. hh: translate$8,
  13346. d: '1 dzień',
  13347. dd: '%d dni',
  13348. M: 'miesiąc',
  13349. MM: translate$8,
  13350. y: 'rok',
  13351. yy: translate$8,
  13352. },
  13353. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13354. ordinal: '%d.',
  13355. week: {
  13356. dow: 1, // Monday is the first day of the week.
  13357. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13358. },
  13359. });
  13360. //! moment.js locale configuration
  13361. hooks.defineLocale('pt-br', {
  13362. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13363. '_'
  13364. ),
  13365. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13366. weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
  13367. '_'
  13368. ),
  13369. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  13370. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  13371. weekdaysParseExact: true,
  13372. longDateFormat: {
  13373. LT: 'HH:mm',
  13374. LTS: 'HH:mm:ss',
  13375. L: 'DD/MM/YYYY',
  13376. LL: 'D [de] MMMM [de] YYYY',
  13377. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  13378. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
  13379. },
  13380. calendar: {
  13381. sameDay: '[Hoje às] LT',
  13382. nextDay: '[Amanhã às] LT',
  13383. nextWeek: 'dddd [às] LT',
  13384. lastDay: '[Ontem às] LT',
  13385. lastWeek: function () {
  13386. return this.day() === 0 || this.day() === 6
  13387. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13388. : '[Última] dddd [às] LT'; // Monday - Friday
  13389. },
  13390. sameElse: 'L',
  13391. },
  13392. relativeTime: {
  13393. future: 'em %s',
  13394. past: 'há %s',
  13395. s: 'poucos segundos',
  13396. ss: '%d segundos',
  13397. m: 'um minuto',
  13398. mm: '%d minutos',
  13399. h: 'uma hora',
  13400. hh: '%d horas',
  13401. d: 'um dia',
  13402. dd: '%d dias',
  13403. M: 'um mês',
  13404. MM: '%d meses',
  13405. y: 'um ano',
  13406. yy: '%d anos',
  13407. },
  13408. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13409. ordinal: '%dº',
  13410. });
  13411. //! moment.js locale configuration
  13412. hooks.defineLocale('pt', {
  13413. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13414. '_'
  13415. ),
  13416. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13417. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
  13418. '_'
  13419. ),
  13420. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13421. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13422. weekdaysParseExact: true,
  13423. longDateFormat: {
  13424. LT: 'HH:mm',
  13425. LTS: 'HH:mm:ss',
  13426. L: 'DD/MM/YYYY',
  13427. LL: 'D [de] MMMM [de] YYYY',
  13428. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  13429. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
  13430. },
  13431. calendar: {
  13432. sameDay: '[Hoje às] LT',
  13433. nextDay: '[Amanhã às] LT',
  13434. nextWeek: 'dddd [às] LT',
  13435. lastDay: '[Ontem às] LT',
  13436. lastWeek: function () {
  13437. return this.day() === 0 || this.day() === 6
  13438. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13439. : '[Última] dddd [às] LT'; // Monday - Friday
  13440. },
  13441. sameElse: 'L',
  13442. },
  13443. relativeTime: {
  13444. future: 'em %s',
  13445. past: 'há %s',
  13446. s: 'segundos',
  13447. ss: '%d segundos',
  13448. m: 'um minuto',
  13449. mm: '%d minutos',
  13450. h: 'uma hora',
  13451. hh: '%d horas',
  13452. d: 'um dia',
  13453. dd: '%d dias',
  13454. M: 'um mês',
  13455. MM: '%d meses',
  13456. y: 'um ano',
  13457. yy: '%d anos',
  13458. },
  13459. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13460. ordinal: '%dº',
  13461. week: {
  13462. dow: 1, // Monday is the first day of the week.
  13463. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13464. },
  13465. });
  13466. //! moment.js locale configuration
  13467. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  13468. var format = {
  13469. ss: 'secunde',
  13470. mm: 'minute',
  13471. hh: 'ore',
  13472. dd: 'zile',
  13473. MM: 'luni',
  13474. yy: 'ani',
  13475. },
  13476. separator = ' ';
  13477. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  13478. separator = ' de ';
  13479. }
  13480. return number + separator + format[key];
  13481. }
  13482. hooks.defineLocale('ro', {
  13483. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  13484. '_'
  13485. ),
  13486. monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  13487. '_'
  13488. ),
  13489. monthsParseExact: true,
  13490. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  13491. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  13492. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  13493. longDateFormat: {
  13494. LT: 'H:mm',
  13495. LTS: 'H:mm:ss',
  13496. L: 'DD.MM.YYYY',
  13497. LL: 'D MMMM YYYY',
  13498. LLL: 'D MMMM YYYY H:mm',
  13499. LLLL: 'dddd, D MMMM YYYY H:mm',
  13500. },
  13501. calendar: {
  13502. sameDay: '[azi la] LT',
  13503. nextDay: '[mâine la] LT',
  13504. nextWeek: 'dddd [la] LT',
  13505. lastDay: '[ieri la] LT',
  13506. lastWeek: '[fosta] dddd [la] LT',
  13507. sameElse: 'L',
  13508. },
  13509. relativeTime: {
  13510. future: 'peste %s',
  13511. past: '%s în urmă',
  13512. s: 'câteva secunde',
  13513. ss: relativeTimeWithPlural$2,
  13514. m: 'un minut',
  13515. mm: relativeTimeWithPlural$2,
  13516. h: 'o oră',
  13517. hh: relativeTimeWithPlural$2,
  13518. d: 'o zi',
  13519. dd: relativeTimeWithPlural$2,
  13520. M: 'o lună',
  13521. MM: relativeTimeWithPlural$2,
  13522. y: 'un an',
  13523. yy: relativeTimeWithPlural$2,
  13524. },
  13525. week: {
  13526. dow: 1, // Monday is the first day of the week.
  13527. doy: 7, // The week that contains Jan 7th is the first week of the year.
  13528. },
  13529. });
  13530. //! moment.js locale configuration
  13531. function plural$4(word, num) {
  13532. var forms = word.split('_');
  13533. return num % 10 === 1 && num % 100 !== 11
  13534. ? forms[0]
  13535. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  13536. ? forms[1]
  13537. : forms[2];
  13538. }
  13539. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  13540. var format = {
  13541. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  13542. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  13543. hh: 'час_часа_часов',
  13544. dd: 'день_дня_дней',
  13545. MM: 'месяц_месяца_месяцев',
  13546. yy: 'год_года_лет',
  13547. };
  13548. if (key === 'm') {
  13549. return withoutSuffix ? 'минута' : 'минуту';
  13550. } else {
  13551. return number + ' ' + plural$4(format[key], +number);
  13552. }
  13553. }
  13554. var monthsParse$8 = [
  13555. /^янв/i,
  13556. /^фев/i,
  13557. /^мар/i,
  13558. /^апр/i,
  13559. /^ма[йя]/i,
  13560. /^июн/i,
  13561. /^июл/i,
  13562. /^авг/i,
  13563. /^сен/i,
  13564. /^окт/i,
  13565. /^ноя/i,
  13566. /^дек/i,
  13567. ];
  13568. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  13569. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  13570. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  13571. hooks.defineLocale('ru', {
  13572. months: {
  13573. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
  13574. '_'
  13575. ),
  13576. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  13577. '_'
  13578. ),
  13579. },
  13580. monthsShort: {
  13581. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  13582. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
  13583. '_'
  13584. ),
  13585. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
  13586. '_'
  13587. ),
  13588. },
  13589. weekdays: {
  13590. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
  13591. '_'
  13592. ),
  13593. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
  13594. '_'
  13595. ),
  13596. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
  13597. },
  13598. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13599. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13600. monthsParse: monthsParse$8,
  13601. longMonthsParse: monthsParse$8,
  13602. shortMonthsParse: monthsParse$8,
  13603. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  13604. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13605. // копия предыдущего
  13606. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13607. // полные названия с падежами
  13608. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  13609. // Выражение, которое соответствует только сокращённым формам
  13610. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  13611. longDateFormat: {
  13612. LT: 'H:mm',
  13613. LTS: 'H:mm:ss',
  13614. L: 'DD.MM.YYYY',
  13615. LL: 'D MMMM YYYY г.',
  13616. LLL: 'D MMMM YYYY г., H:mm',
  13617. LLLL: 'dddd, D MMMM YYYY г., H:mm',
  13618. },
  13619. calendar: {
  13620. sameDay: '[Сегодня, в] LT',
  13621. nextDay: '[Завтра, в] LT',
  13622. lastDay: '[Вчера, в] LT',
  13623. nextWeek: function (now) {
  13624. if (now.week() !== this.week()) {
  13625. switch (this.day()) {
  13626. case 0:
  13627. return '[В следующее] dddd, [в] LT';
  13628. case 1:
  13629. case 2:
  13630. case 4:
  13631. return '[В следующий] dddd, [в] LT';
  13632. case 3:
  13633. case 5:
  13634. case 6:
  13635. return '[В следующую] dddd, [в] LT';
  13636. }
  13637. } else {
  13638. if (this.day() === 2) {
  13639. return '[Во] dddd, [в] LT';
  13640. } else {
  13641. return '[В] dddd, [в] LT';
  13642. }
  13643. }
  13644. },
  13645. lastWeek: function (now) {
  13646. if (now.week() !== this.week()) {
  13647. switch (this.day()) {
  13648. case 0:
  13649. return '[В прошлое] dddd, [в] LT';
  13650. case 1:
  13651. case 2:
  13652. case 4:
  13653. return '[В прошлый] dddd, [в] LT';
  13654. case 3:
  13655. case 5:
  13656. case 6:
  13657. return '[В прошлую] dddd, [в] LT';
  13658. }
  13659. } else {
  13660. if (this.day() === 2) {
  13661. return '[Во] dddd, [в] LT';
  13662. } else {
  13663. return '[В] dddd, [в] LT';
  13664. }
  13665. }
  13666. },
  13667. sameElse: 'L',
  13668. },
  13669. relativeTime: {
  13670. future: 'через %s',
  13671. past: '%s назад',
  13672. s: 'несколько секунд',
  13673. ss: relativeTimeWithPlural$3,
  13674. m: relativeTimeWithPlural$3,
  13675. mm: relativeTimeWithPlural$3,
  13676. h: 'час',
  13677. hh: relativeTimeWithPlural$3,
  13678. d: 'день',
  13679. dd: relativeTimeWithPlural$3,
  13680. M: 'месяц',
  13681. MM: relativeTimeWithPlural$3,
  13682. y: 'год',
  13683. yy: relativeTimeWithPlural$3,
  13684. },
  13685. meridiemParse: /ночи|утра|дня|вечера/i,
  13686. isPM: function (input) {
  13687. return /^(дня|вечера)$/.test(input);
  13688. },
  13689. meridiem: function (hour, minute, isLower) {
  13690. if (hour < 4) {
  13691. return 'ночи';
  13692. } else if (hour < 12) {
  13693. return 'утра';
  13694. } else if (hour < 17) {
  13695. return 'дня';
  13696. } else {
  13697. return 'вечера';
  13698. }
  13699. },
  13700. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  13701. ordinal: function (number, period) {
  13702. switch (period) {
  13703. case 'M':
  13704. case 'd':
  13705. case 'DDD':
  13706. return number + '-й';
  13707. case 'D':
  13708. return number + '-го';
  13709. case 'w':
  13710. case 'W':
  13711. return number + '-я';
  13712. default:
  13713. return number;
  13714. }
  13715. },
  13716. week: {
  13717. dow: 1, // Monday is the first day of the week.
  13718. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13719. },
  13720. });
  13721. //! moment.js locale configuration
  13722. var months$9 = [
  13723. 'جنوري',
  13724. 'فيبروري',
  13725. 'مارچ',
  13726. 'اپريل',
  13727. 'مئي',
  13728. 'جون',
  13729. 'جولاءِ',
  13730. 'آگسٽ',
  13731. 'سيپٽمبر',
  13732. 'آڪٽوبر',
  13733. 'نومبر',
  13734. 'ڊسمبر',
  13735. ],
  13736. days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  13737. hooks.defineLocale('sd', {
  13738. months: months$9,
  13739. monthsShort: months$9,
  13740. weekdays: days$1,
  13741. weekdaysShort: days$1,
  13742. weekdaysMin: days$1,
  13743. longDateFormat: {
  13744. LT: 'HH:mm',
  13745. LTS: 'HH:mm:ss',
  13746. L: 'DD/MM/YYYY',
  13747. LL: 'D MMMM YYYY',
  13748. LLL: 'D MMMM YYYY HH:mm',
  13749. LLLL: 'dddd، D MMMM YYYY HH:mm',
  13750. },
  13751. meridiemParse: /صبح|شام/,
  13752. isPM: function (input) {
  13753. return 'شام' === input;
  13754. },
  13755. meridiem: function (hour, minute, isLower) {
  13756. if (hour < 12) {
  13757. return 'صبح';
  13758. }
  13759. return 'شام';
  13760. },
  13761. calendar: {
  13762. sameDay: '[اڄ] LT',
  13763. nextDay: '[سڀاڻي] LT',
  13764. nextWeek: 'dddd [اڳين هفتي تي] LT',
  13765. lastDay: '[ڪالهه] LT',
  13766. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  13767. sameElse: 'L',
  13768. },
  13769. relativeTime: {
  13770. future: '%s پوء',
  13771. past: '%s اڳ',
  13772. s: 'چند سيڪنڊ',
  13773. ss: '%d سيڪنڊ',
  13774. m: 'هڪ منٽ',
  13775. mm: '%d منٽ',
  13776. h: 'هڪ ڪلاڪ',
  13777. hh: '%d ڪلاڪ',
  13778. d: 'هڪ ڏينهن',
  13779. dd: '%d ڏينهن',
  13780. M: 'هڪ مهينو',
  13781. MM: '%d مهينا',
  13782. y: 'هڪ سال',
  13783. yy: '%d سال',
  13784. },
  13785. preparse: function (string) {
  13786. return string.replace(/،/g, ',');
  13787. },
  13788. postformat: function (string) {
  13789. return string.replace(/,/g, '،');
  13790. },
  13791. week: {
  13792. dow: 1, // Monday is the first day of the week.
  13793. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13794. },
  13795. });
  13796. //! moment.js locale configuration
  13797. hooks.defineLocale('se', {
  13798. months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split(
  13799. '_'
  13800. ),
  13801. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(
  13802. '_'
  13803. ),
  13804. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
  13805. '_'
  13806. ),
  13807. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  13808. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  13809. longDateFormat: {
  13810. LT: 'HH:mm',
  13811. LTS: 'HH:mm:ss',
  13812. L: 'DD.MM.YYYY',
  13813. LL: 'MMMM D. [b.] YYYY',
  13814. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  13815. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
  13816. },
  13817. calendar: {
  13818. sameDay: '[otne ti] LT',
  13819. nextDay: '[ihttin ti] LT',
  13820. nextWeek: 'dddd [ti] LT',
  13821. lastDay: '[ikte ti] LT',
  13822. lastWeek: '[ovddit] dddd [ti] LT',
  13823. sameElse: 'L',
  13824. },
  13825. relativeTime: {
  13826. future: '%s geažes',
  13827. past: 'maŋit %s',
  13828. s: 'moadde sekunddat',
  13829. ss: '%d sekunddat',
  13830. m: 'okta minuhta',
  13831. mm: '%d minuhtat',
  13832. h: 'okta diimmu',
  13833. hh: '%d diimmut',
  13834. d: 'okta beaivi',
  13835. dd: '%d beaivvit',
  13836. M: 'okta mánnu',
  13837. MM: '%d mánut',
  13838. y: 'okta jahki',
  13839. yy: '%d jagit',
  13840. },
  13841. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13842. ordinal: '%d.',
  13843. week: {
  13844. dow: 1, // Monday is the first day of the week.
  13845. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13846. },
  13847. });
  13848. //! moment.js locale configuration
  13849. /*jshint -W100*/
  13850. hooks.defineLocale('si', {
  13851. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
  13852. '_'
  13853. ),
  13854. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
  13855. '_'
  13856. ),
  13857. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
  13858. '_'
  13859. ),
  13860. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  13861. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  13862. weekdaysParseExact: true,
  13863. longDateFormat: {
  13864. LT: 'a h:mm',
  13865. LTS: 'a h:mm:ss',
  13866. L: 'YYYY/MM/DD',
  13867. LL: 'YYYY MMMM D',
  13868. LLL: 'YYYY MMMM D, a h:mm',
  13869. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
  13870. },
  13871. calendar: {
  13872. sameDay: '[අද] LT[ට]',
  13873. nextDay: '[හෙට] LT[ට]',
  13874. nextWeek: 'dddd LT[ට]',
  13875. lastDay: '[ඊයේ] LT[ට]',
  13876. lastWeek: '[පසුගිය] dddd LT[ට]',
  13877. sameElse: 'L',
  13878. },
  13879. relativeTime: {
  13880. future: '%sකින්',
  13881. past: '%sකට පෙර',
  13882. s: 'තත්පර කිහිපය',
  13883. ss: 'තත්පර %d',
  13884. m: 'මිනිත්තුව',
  13885. mm: 'මිනිත්තු %d',
  13886. h: 'පැය',
  13887. hh: 'පැය %d',
  13888. d: 'දිනය',
  13889. dd: 'දින %d',
  13890. M: 'මාසය',
  13891. MM: 'මාස %d',
  13892. y: 'වසර',
  13893. yy: 'වසර %d',
  13894. },
  13895. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  13896. ordinal: function (number) {
  13897. return number + ' වැනි';
  13898. },
  13899. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  13900. isPM: function (input) {
  13901. return input === 'ප.ව.' || input === 'පස් වරු';
  13902. },
  13903. meridiem: function (hours, minutes, isLower) {
  13904. if (hours > 11) {
  13905. return isLower ? 'ප.ව.' : 'පස් වරු';
  13906. } else {
  13907. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  13908. }
  13909. },
  13910. });
  13911. //! moment.js locale configuration
  13912. var months$a = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
  13913. '_'
  13914. ),
  13915. monthsShort$6 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  13916. function plural$5(n) {
  13917. return n > 1 && n < 5;
  13918. }
  13919. function translate$9(number, withoutSuffix, key, isFuture) {
  13920. var result = number + ' ';
  13921. switch (key) {
  13922. case 's': // a few seconds / in a few seconds / a few seconds ago
  13923. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  13924. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  13925. if (withoutSuffix || isFuture) {
  13926. return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
  13927. } else {
  13928. return result + 'sekundami';
  13929. }
  13930. case 'm': // a minute / in a minute / a minute ago
  13931. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  13932. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  13933. if (withoutSuffix || isFuture) {
  13934. return result + (plural$5(number) ? 'minúty' : 'minút');
  13935. } else {
  13936. return result + 'minútami';
  13937. }
  13938. case 'h': // an hour / in an hour / an hour ago
  13939. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  13940. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  13941. if (withoutSuffix || isFuture) {
  13942. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  13943. } else {
  13944. return result + 'hodinami';
  13945. }
  13946. case 'd': // a day / in a day / a day ago
  13947. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  13948. case 'dd': // 9 days / in 9 days / 9 days ago
  13949. if (withoutSuffix || isFuture) {
  13950. return result + (plural$5(number) ? 'dni' : 'dní');
  13951. } else {
  13952. return result + 'dňami';
  13953. }
  13954. case 'M': // a month / in a month / a month ago
  13955. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  13956. case 'MM': // 9 months / in 9 months / 9 months ago
  13957. if (withoutSuffix || isFuture) {
  13958. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  13959. } else {
  13960. return result + 'mesiacmi';
  13961. }
  13962. case 'y': // a year / in a year / a year ago
  13963. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  13964. case 'yy': // 9 years / in 9 years / 9 years ago
  13965. if (withoutSuffix || isFuture) {
  13966. return result + (plural$5(number) ? 'roky' : 'rokov');
  13967. } else {
  13968. return result + 'rokmi';
  13969. }
  13970. }
  13971. }
  13972. hooks.defineLocale('sk', {
  13973. months: months$a,
  13974. monthsShort: monthsShort$6,
  13975. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  13976. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  13977. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  13978. longDateFormat: {
  13979. LT: 'H:mm',
  13980. LTS: 'H:mm:ss',
  13981. L: 'DD.MM.YYYY',
  13982. LL: 'D. MMMM YYYY',
  13983. LLL: 'D. MMMM YYYY H:mm',
  13984. LLLL: 'dddd D. MMMM YYYY H:mm',
  13985. },
  13986. calendar: {
  13987. sameDay: '[dnes o] LT',
  13988. nextDay: '[zajtra o] LT',
  13989. nextWeek: function () {
  13990. switch (this.day()) {
  13991. case 0:
  13992. return '[v nedeľu o] LT';
  13993. case 1:
  13994. case 2:
  13995. return '[v] dddd [o] LT';
  13996. case 3:
  13997. return '[v stredu o] LT';
  13998. case 4:
  13999. return '[vo štvrtok o] LT';
  14000. case 5:
  14001. return '[v piatok o] LT';
  14002. case 6:
  14003. return '[v sobotu o] LT';
  14004. }
  14005. },
  14006. lastDay: '[včera o] LT',
  14007. lastWeek: function () {
  14008. switch (this.day()) {
  14009. case 0:
  14010. return '[minulú nedeľu o] LT';
  14011. case 1:
  14012. case 2:
  14013. return '[minulý] dddd [o] LT';
  14014. case 3:
  14015. return '[minulú stredu o] LT';
  14016. case 4:
  14017. case 5:
  14018. return '[minulý] dddd [o] LT';
  14019. case 6:
  14020. return '[minulú sobotu o] LT';
  14021. }
  14022. },
  14023. sameElse: 'L',
  14024. },
  14025. relativeTime: {
  14026. future: 'za %s',
  14027. past: 'pred %s',
  14028. s: translate$9,
  14029. ss: translate$9,
  14030. m: translate$9,
  14031. mm: translate$9,
  14032. h: translate$9,
  14033. hh: translate$9,
  14034. d: translate$9,
  14035. dd: translate$9,
  14036. M: translate$9,
  14037. MM: translate$9,
  14038. y: translate$9,
  14039. yy: translate$9,
  14040. },
  14041. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14042. ordinal: '%d.',
  14043. week: {
  14044. dow: 1, // Monday is the first day of the week.
  14045. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14046. },
  14047. });
  14048. //! moment.js locale configuration
  14049. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  14050. var result = number + ' ';
  14051. switch (key) {
  14052. case 's':
  14053. return withoutSuffix || isFuture
  14054. ? 'nekaj sekund'
  14055. : 'nekaj sekundami';
  14056. case 'ss':
  14057. if (number === 1) {
  14058. result += withoutSuffix ? 'sekundo' : 'sekundi';
  14059. } else if (number === 2) {
  14060. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  14061. } else if (number < 5) {
  14062. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  14063. } else {
  14064. result += 'sekund';
  14065. }
  14066. return result;
  14067. case 'm':
  14068. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  14069. case 'mm':
  14070. if (number === 1) {
  14071. result += withoutSuffix ? 'minuta' : 'minuto';
  14072. } else if (number === 2) {
  14073. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  14074. } else if (number < 5) {
  14075. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  14076. } else {
  14077. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  14078. }
  14079. return result;
  14080. case 'h':
  14081. return withoutSuffix ? 'ena ura' : 'eno uro';
  14082. case 'hh':
  14083. if (number === 1) {
  14084. result += withoutSuffix ? 'ura' : 'uro';
  14085. } else if (number === 2) {
  14086. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  14087. } else if (number < 5) {
  14088. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  14089. } else {
  14090. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  14091. }
  14092. return result;
  14093. case 'd':
  14094. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  14095. case 'dd':
  14096. if (number === 1) {
  14097. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  14098. } else if (number === 2) {
  14099. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  14100. } else {
  14101. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  14102. }
  14103. return result;
  14104. case 'M':
  14105. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  14106. case 'MM':
  14107. if (number === 1) {
  14108. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  14109. } else if (number === 2) {
  14110. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  14111. } else if (number < 5) {
  14112. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  14113. } else {
  14114. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  14115. }
  14116. return result;
  14117. case 'y':
  14118. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  14119. case 'yy':
  14120. if (number === 1) {
  14121. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  14122. } else if (number === 2) {
  14123. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  14124. } else if (number < 5) {
  14125. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  14126. } else {
  14127. result += withoutSuffix || isFuture ? 'let' : 'leti';
  14128. }
  14129. return result;
  14130. }
  14131. }
  14132. hooks.defineLocale('sl', {
  14133. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
  14134. '_'
  14135. ),
  14136. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
  14137. '_'
  14138. ),
  14139. monthsParseExact: true,
  14140. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  14141. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  14142. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  14143. weekdaysParseExact: true,
  14144. longDateFormat: {
  14145. LT: 'H:mm',
  14146. LTS: 'H:mm:ss',
  14147. L: 'DD. MM. YYYY',
  14148. LL: 'D. MMMM YYYY',
  14149. LLL: 'D. MMMM YYYY H:mm',
  14150. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14151. },
  14152. calendar: {
  14153. sameDay: '[danes ob] LT',
  14154. nextDay: '[jutri ob] LT',
  14155. nextWeek: function () {
  14156. switch (this.day()) {
  14157. case 0:
  14158. return '[v] [nedeljo] [ob] LT';
  14159. case 3:
  14160. return '[v] [sredo] [ob] LT';
  14161. case 6:
  14162. return '[v] [soboto] [ob] LT';
  14163. case 1:
  14164. case 2:
  14165. case 4:
  14166. case 5:
  14167. return '[v] dddd [ob] LT';
  14168. }
  14169. },
  14170. lastDay: '[včeraj ob] LT',
  14171. lastWeek: function () {
  14172. switch (this.day()) {
  14173. case 0:
  14174. return '[prejšnjo] [nedeljo] [ob] LT';
  14175. case 3:
  14176. return '[prejšnjo] [sredo] [ob] LT';
  14177. case 6:
  14178. return '[prejšnjo] [soboto] [ob] LT';
  14179. case 1:
  14180. case 2:
  14181. case 4:
  14182. case 5:
  14183. return '[prejšnji] dddd [ob] LT';
  14184. }
  14185. },
  14186. sameElse: 'L',
  14187. },
  14188. relativeTime: {
  14189. future: 'čez %s',
  14190. past: 'pred %s',
  14191. s: processRelativeTime$7,
  14192. ss: processRelativeTime$7,
  14193. m: processRelativeTime$7,
  14194. mm: processRelativeTime$7,
  14195. h: processRelativeTime$7,
  14196. hh: processRelativeTime$7,
  14197. d: processRelativeTime$7,
  14198. dd: processRelativeTime$7,
  14199. M: processRelativeTime$7,
  14200. MM: processRelativeTime$7,
  14201. y: processRelativeTime$7,
  14202. yy: processRelativeTime$7,
  14203. },
  14204. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14205. ordinal: '%d.',
  14206. week: {
  14207. dow: 1, // Monday is the first day of the week.
  14208. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14209. },
  14210. });
  14211. //! moment.js locale configuration
  14212. hooks.defineLocale('sq', {
  14213. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
  14214. '_'
  14215. ),
  14216. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  14217. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
  14218. '_'
  14219. ),
  14220. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  14221. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  14222. weekdaysParseExact: true,
  14223. meridiemParse: /PD|MD/,
  14224. isPM: function (input) {
  14225. return input.charAt(0) === 'M';
  14226. },
  14227. meridiem: function (hours, minutes, isLower) {
  14228. return hours < 12 ? 'PD' : 'MD';
  14229. },
  14230. longDateFormat: {
  14231. LT: 'HH:mm',
  14232. LTS: 'HH:mm:ss',
  14233. L: 'DD/MM/YYYY',
  14234. LL: 'D MMMM YYYY',
  14235. LLL: 'D MMMM YYYY HH:mm',
  14236. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14237. },
  14238. calendar: {
  14239. sameDay: '[Sot në] LT',
  14240. nextDay: '[Nesër në] LT',
  14241. nextWeek: 'dddd [në] LT',
  14242. lastDay: '[Dje në] LT',
  14243. lastWeek: 'dddd [e kaluar në] LT',
  14244. sameElse: 'L',
  14245. },
  14246. relativeTime: {
  14247. future: 'në %s',
  14248. past: '%s më parë',
  14249. s: 'disa sekonda',
  14250. ss: '%d sekonda',
  14251. m: 'një minutë',
  14252. mm: '%d minuta',
  14253. h: 'një orë',
  14254. hh: '%d orë',
  14255. d: 'një ditë',
  14256. dd: '%d ditë',
  14257. M: 'një muaj',
  14258. MM: '%d muaj',
  14259. y: 'një vit',
  14260. yy: '%d vite',
  14261. },
  14262. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14263. ordinal: '%d.',
  14264. week: {
  14265. dow: 1, // Monday is the first day of the week.
  14266. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14267. },
  14268. });
  14269. //! moment.js locale configuration
  14270. var translator$1 = {
  14271. words: {
  14272. //Different grammatical cases
  14273. ss: ['секунда', 'секунде', 'секунди'],
  14274. m: ['један минут', 'једне минуте'],
  14275. mm: ['минут', 'минуте', 'минута'],
  14276. h: ['један сат', 'једног сата'],
  14277. hh: ['сат', 'сата', 'сати'],
  14278. dd: ['дан', 'дана', 'дана'],
  14279. MM: ['месец', 'месеца', 'месеци'],
  14280. yy: ['година', 'године', 'година'],
  14281. },
  14282. correctGrammaticalCase: function (number, wordKey) {
  14283. return number === 1
  14284. ? wordKey[0]
  14285. : number >= 2 && number <= 4
  14286. ? wordKey[1]
  14287. : wordKey[2];
  14288. },
  14289. translate: function (number, withoutSuffix, key) {
  14290. var wordKey = translator$1.words[key];
  14291. if (key.length === 1) {
  14292. return withoutSuffix ? wordKey[0] : wordKey[1];
  14293. } else {
  14294. return (
  14295. number +
  14296. ' ' +
  14297. translator$1.correctGrammaticalCase(number, wordKey)
  14298. );
  14299. }
  14300. },
  14301. };
  14302. hooks.defineLocale('sr-cyrl', {
  14303. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
  14304. '_'
  14305. ),
  14306. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
  14307. '_'
  14308. ),
  14309. monthsParseExact: true,
  14310. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  14311. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  14312. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  14313. weekdaysParseExact: true,
  14314. longDateFormat: {
  14315. LT: 'H:mm',
  14316. LTS: 'H:mm:ss',
  14317. L: 'DD.MM.YYYY',
  14318. LL: 'D. MMMM YYYY',
  14319. LLL: 'D. MMMM YYYY H:mm',
  14320. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14321. },
  14322. calendar: {
  14323. sameDay: '[данас у] LT',
  14324. nextDay: '[сутра у] LT',
  14325. nextWeek: function () {
  14326. switch (this.day()) {
  14327. case 0:
  14328. return '[у] [недељу] [у] LT';
  14329. case 3:
  14330. return '[у] [среду] [у] LT';
  14331. case 6:
  14332. return '[у] [суботу] [у] LT';
  14333. case 1:
  14334. case 2:
  14335. case 4:
  14336. case 5:
  14337. return '[у] dddd [у] LT';
  14338. }
  14339. },
  14340. lastDay: '[јуче у] LT',
  14341. lastWeek: function () {
  14342. var lastWeekDays = [
  14343. '[прошле] [недеље] [у] LT',
  14344. '[прошлог] [понедељка] [у] LT',
  14345. '[прошлог] [уторка] [у] LT',
  14346. '[прошле] [среде] [у] LT',
  14347. '[прошлог] [четвртка] [у] LT',
  14348. '[прошлог] [петка] [у] LT',
  14349. '[прошле] [суботе] [у] LT',
  14350. ];
  14351. return lastWeekDays[this.day()];
  14352. },
  14353. sameElse: 'L',
  14354. },
  14355. relativeTime: {
  14356. future: 'за %s',
  14357. past: 'пре %s',
  14358. s: 'неколико секунди',
  14359. ss: translator$1.translate,
  14360. m: translator$1.translate,
  14361. mm: translator$1.translate,
  14362. h: translator$1.translate,
  14363. hh: translator$1.translate,
  14364. d: 'дан',
  14365. dd: translator$1.translate,
  14366. M: 'месец',
  14367. MM: translator$1.translate,
  14368. y: 'годину',
  14369. yy: translator$1.translate,
  14370. },
  14371. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14372. ordinal: '%d.',
  14373. week: {
  14374. dow: 1, // Monday is the first day of the week.
  14375. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14376. },
  14377. });
  14378. //! moment.js locale configuration
  14379. var translator$2 = {
  14380. words: {
  14381. //Different grammatical cases
  14382. ss: ['sekunda', 'sekunde', 'sekundi'],
  14383. m: ['jedan minut', 'jedne minute'],
  14384. mm: ['minut', 'minute', 'minuta'],
  14385. h: ['jedan sat', 'jednog sata'],
  14386. hh: ['sat', 'sata', 'sati'],
  14387. dd: ['dan', 'dana', 'dana'],
  14388. MM: ['mesec', 'meseca', 'meseci'],
  14389. yy: ['godina', 'godine', 'godina'],
  14390. },
  14391. correctGrammaticalCase: function (number, wordKey) {
  14392. return number === 1
  14393. ? wordKey[0]
  14394. : number >= 2 && number <= 4
  14395. ? wordKey[1]
  14396. : wordKey[2];
  14397. },
  14398. translate: function (number, withoutSuffix, key) {
  14399. var wordKey = translator$2.words[key];
  14400. if (key.length === 1) {
  14401. return withoutSuffix ? wordKey[0] : wordKey[1];
  14402. } else {
  14403. return (
  14404. number +
  14405. ' ' +
  14406. translator$2.correctGrammaticalCase(number, wordKey)
  14407. );
  14408. }
  14409. },
  14410. };
  14411. hooks.defineLocale('sr', {
  14412. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  14413. '_'
  14414. ),
  14415. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  14416. '_'
  14417. ),
  14418. monthsParseExact: true,
  14419. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
  14420. '_'
  14421. ),
  14422. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  14423. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  14424. weekdaysParseExact: true,
  14425. longDateFormat: {
  14426. LT: 'H:mm',
  14427. LTS: 'H:mm:ss',
  14428. L: 'DD.MM.YYYY',
  14429. LL: 'D. MMMM YYYY',
  14430. LLL: 'D. MMMM YYYY H:mm',
  14431. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14432. },
  14433. calendar: {
  14434. sameDay: '[danas u] LT',
  14435. nextDay: '[sutra u] LT',
  14436. nextWeek: function () {
  14437. switch (this.day()) {
  14438. case 0:
  14439. return '[u] [nedelju] [u] LT';
  14440. case 3:
  14441. return '[u] [sredu] [u] LT';
  14442. case 6:
  14443. return '[u] [subotu] [u] LT';
  14444. case 1:
  14445. case 2:
  14446. case 4:
  14447. case 5:
  14448. return '[u] dddd [u] LT';
  14449. }
  14450. },
  14451. lastDay: '[juče u] LT',
  14452. lastWeek: function () {
  14453. var lastWeekDays = [
  14454. '[prošle] [nedelje] [u] LT',
  14455. '[prošlog] [ponedeljka] [u] LT',
  14456. '[prošlog] [utorka] [u] LT',
  14457. '[prošle] [srede] [u] LT',
  14458. '[prošlog] [četvrtka] [u] LT',
  14459. '[prošlog] [petka] [u] LT',
  14460. '[prošle] [subote] [u] LT',
  14461. ];
  14462. return lastWeekDays[this.day()];
  14463. },
  14464. sameElse: 'L',
  14465. },
  14466. relativeTime: {
  14467. future: 'za %s',
  14468. past: 'pre %s',
  14469. s: 'nekoliko sekundi',
  14470. ss: translator$2.translate,
  14471. m: translator$2.translate,
  14472. mm: translator$2.translate,
  14473. h: translator$2.translate,
  14474. hh: translator$2.translate,
  14475. d: 'dan',
  14476. dd: translator$2.translate,
  14477. M: 'mesec',
  14478. MM: translator$2.translate,
  14479. y: 'godinu',
  14480. yy: translator$2.translate,
  14481. },
  14482. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14483. ordinal: '%d.',
  14484. week: {
  14485. dow: 1, // Monday is the first day of the week.
  14486. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14487. },
  14488. });
  14489. //! moment.js locale configuration
  14490. hooks.defineLocale('ss', {
  14491. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  14492. '_'
  14493. ),
  14494. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  14495. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  14496. '_'
  14497. ),
  14498. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  14499. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  14500. weekdaysParseExact: true,
  14501. longDateFormat: {
  14502. LT: 'h:mm A',
  14503. LTS: 'h:mm:ss A',
  14504. L: 'DD/MM/YYYY',
  14505. LL: 'D MMMM YYYY',
  14506. LLL: 'D MMMM YYYY h:mm A',
  14507. LLLL: 'dddd, D MMMM YYYY h:mm A',
  14508. },
  14509. calendar: {
  14510. sameDay: '[Namuhla nga] LT',
  14511. nextDay: '[Kusasa nga] LT',
  14512. nextWeek: 'dddd [nga] LT',
  14513. lastDay: '[Itolo nga] LT',
  14514. lastWeek: 'dddd [leliphelile] [nga] LT',
  14515. sameElse: 'L',
  14516. },
  14517. relativeTime: {
  14518. future: 'nga %s',
  14519. past: 'wenteka nga %s',
  14520. s: 'emizuzwana lomcane',
  14521. ss: '%d mzuzwana',
  14522. m: 'umzuzu',
  14523. mm: '%d emizuzu',
  14524. h: 'lihora',
  14525. hh: '%d emahora',
  14526. d: 'lilanga',
  14527. dd: '%d emalanga',
  14528. M: 'inyanga',
  14529. MM: '%d tinyanga',
  14530. y: 'umnyaka',
  14531. yy: '%d iminyaka',
  14532. },
  14533. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  14534. meridiem: function (hours, minutes, isLower) {
  14535. if (hours < 11) {
  14536. return 'ekuseni';
  14537. } else if (hours < 15) {
  14538. return 'emini';
  14539. } else if (hours < 19) {
  14540. return 'entsambama';
  14541. } else {
  14542. return 'ebusuku';
  14543. }
  14544. },
  14545. meridiemHour: function (hour, meridiem) {
  14546. if (hour === 12) {
  14547. hour = 0;
  14548. }
  14549. if (meridiem === 'ekuseni') {
  14550. return hour;
  14551. } else if (meridiem === 'emini') {
  14552. return hour >= 11 ? hour : hour + 12;
  14553. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  14554. if (hour === 0) {
  14555. return 0;
  14556. }
  14557. return hour + 12;
  14558. }
  14559. },
  14560. dayOfMonthOrdinalParse: /\d{1,2}/,
  14561. ordinal: '%d',
  14562. week: {
  14563. dow: 1, // Monday is the first day of the week.
  14564. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14565. },
  14566. });
  14567. //! moment.js locale configuration
  14568. hooks.defineLocale('sv', {
  14569. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
  14570. '_'
  14571. ),
  14572. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  14573. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  14574. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  14575. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  14576. longDateFormat: {
  14577. LT: 'HH:mm',
  14578. LTS: 'HH:mm:ss',
  14579. L: 'YYYY-MM-DD',
  14580. LL: 'D MMMM YYYY',
  14581. LLL: 'D MMMM YYYY [kl.] HH:mm',
  14582. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  14583. lll: 'D MMM YYYY HH:mm',
  14584. llll: 'ddd D MMM YYYY HH:mm',
  14585. },
  14586. calendar: {
  14587. sameDay: '[Idag] LT',
  14588. nextDay: '[Imorgon] LT',
  14589. lastDay: '[Igår] LT',
  14590. nextWeek: '[På] dddd LT',
  14591. lastWeek: '[I] dddd[s] LT',
  14592. sameElse: 'L',
  14593. },
  14594. relativeTime: {
  14595. future: 'om %s',
  14596. past: 'för %s sedan',
  14597. s: 'några sekunder',
  14598. ss: '%d sekunder',
  14599. m: 'en minut',
  14600. mm: '%d minuter',
  14601. h: 'en timme',
  14602. hh: '%d timmar',
  14603. d: 'en dag',
  14604. dd: '%d dagar',
  14605. M: 'en månad',
  14606. MM: '%d månader',
  14607. y: 'ett år',
  14608. yy: '%d år',
  14609. },
  14610. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  14611. ordinal: function (number) {
  14612. var b = number % 10,
  14613. output =
  14614. ~~((number % 100) / 10) === 1
  14615. ? ':e'
  14616. : b === 1
  14617. ? ':a'
  14618. : b === 2
  14619. ? ':a'
  14620. : b === 3
  14621. ? ':e'
  14622. : ':e';
  14623. return number + output;
  14624. },
  14625. week: {
  14626. dow: 1, // Monday is the first day of the week.
  14627. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14628. },
  14629. });
  14630. //! moment.js locale configuration
  14631. hooks.defineLocale('sw', {
  14632. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  14633. '_'
  14634. ),
  14635. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  14636. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  14637. '_'
  14638. ),
  14639. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  14640. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  14641. weekdaysParseExact: true,
  14642. longDateFormat: {
  14643. LT: 'hh:mm A',
  14644. LTS: 'HH:mm:ss',
  14645. L: 'DD.MM.YYYY',
  14646. LL: 'D MMMM YYYY',
  14647. LLL: 'D MMMM YYYY HH:mm',
  14648. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14649. },
  14650. calendar: {
  14651. sameDay: '[leo saa] LT',
  14652. nextDay: '[kesho saa] LT',
  14653. nextWeek: '[wiki ijayo] dddd [saat] LT',
  14654. lastDay: '[jana] LT',
  14655. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  14656. sameElse: 'L',
  14657. },
  14658. relativeTime: {
  14659. future: '%s baadaye',
  14660. past: 'tokea %s',
  14661. s: 'hivi punde',
  14662. ss: 'sekunde %d',
  14663. m: 'dakika moja',
  14664. mm: 'dakika %d',
  14665. h: 'saa limoja',
  14666. hh: 'masaa %d',
  14667. d: 'siku moja',
  14668. dd: 'siku %d',
  14669. M: 'mwezi mmoja',
  14670. MM: 'miezi %d',
  14671. y: 'mwaka mmoja',
  14672. yy: 'miaka %d',
  14673. },
  14674. week: {
  14675. dow: 1, // Monday is the first day of the week.
  14676. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14677. },
  14678. });
  14679. //! moment.js locale configuration
  14680. var symbolMap$f = {
  14681. '1': '௧',
  14682. '2': '௨',
  14683. '3': '௩',
  14684. '4': '௪',
  14685. '5': '௫',
  14686. '6': '௬',
  14687. '7': '௭',
  14688. '8': '௮',
  14689. '9': '௯',
  14690. '0': '௦',
  14691. },
  14692. numberMap$e = {
  14693. '௧': '1',
  14694. '௨': '2',
  14695. '௩': '3',
  14696. '௪': '4',
  14697. '௫': '5',
  14698. '௬': '6',
  14699. '௭': '7',
  14700. '௮': '8',
  14701. '௯': '9',
  14702. '௦': '0',
  14703. };
  14704. hooks.defineLocale('ta', {
  14705. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  14706. '_'
  14707. ),
  14708. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  14709. '_'
  14710. ),
  14711. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
  14712. '_'
  14713. ),
  14714. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
  14715. '_'
  14716. ),
  14717. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  14718. longDateFormat: {
  14719. LT: 'HH:mm',
  14720. LTS: 'HH:mm:ss',
  14721. L: 'DD/MM/YYYY',
  14722. LL: 'D MMMM YYYY',
  14723. LLL: 'D MMMM YYYY, HH:mm',
  14724. LLLL: 'dddd, D MMMM YYYY, HH:mm',
  14725. },
  14726. calendar: {
  14727. sameDay: '[இன்று] LT',
  14728. nextDay: '[நாளை] LT',
  14729. nextWeek: 'dddd, LT',
  14730. lastDay: '[நேற்று] LT',
  14731. lastWeek: '[கடந்த வாரம்] dddd, LT',
  14732. sameElse: 'L',
  14733. },
  14734. relativeTime: {
  14735. future: '%s இல்',
  14736. past: '%s முன்',
  14737. s: 'ஒரு சில விநாடிகள்',
  14738. ss: '%d விநாடிகள்',
  14739. m: 'ஒரு நிமிடம்',
  14740. mm: '%d நிமிடங்கள்',
  14741. h: 'ஒரு மணி நேரம்',
  14742. hh: '%d மணி நேரம்',
  14743. d: 'ஒரு நாள்',
  14744. dd: '%d நாட்கள்',
  14745. M: 'ஒரு மாதம்',
  14746. MM: '%d மாதங்கள்',
  14747. y: 'ஒரு வருடம்',
  14748. yy: '%d ஆண்டுகள்',
  14749. },
  14750. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  14751. ordinal: function (number) {
  14752. return number + 'வது';
  14753. },
  14754. preparse: function (string) {
  14755. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  14756. return numberMap$e[match];
  14757. });
  14758. },
  14759. postformat: function (string) {
  14760. return string.replace(/\d/g, function (match) {
  14761. return symbolMap$f[match];
  14762. });
  14763. },
  14764. // refer http://ta.wikipedia.org/s/1er1
  14765. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  14766. meridiem: function (hour, minute, isLower) {
  14767. if (hour < 2) {
  14768. return ' யாமம்';
  14769. } else if (hour < 6) {
  14770. return ' வைகறை'; // வைகறை
  14771. } else if (hour < 10) {
  14772. return ' காலை'; // காலை
  14773. } else if (hour < 14) {
  14774. return ' நண்பகல்'; // நண்பகல்
  14775. } else if (hour < 18) {
  14776. return ' எற்பாடு'; // எற்பாடு
  14777. } else if (hour < 22) {
  14778. return ' மாலை'; // மாலை
  14779. } else {
  14780. return ' யாமம்';
  14781. }
  14782. },
  14783. meridiemHour: function (hour, meridiem) {
  14784. if (hour === 12) {
  14785. hour = 0;
  14786. }
  14787. if (meridiem === 'யாமம்') {
  14788. return hour < 2 ? hour : hour + 12;
  14789. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  14790. return hour;
  14791. } else if (meridiem === 'நண்பகல்') {
  14792. return hour >= 10 ? hour : hour + 12;
  14793. } else {
  14794. return hour + 12;
  14795. }
  14796. },
  14797. week: {
  14798. dow: 0, // Sunday is the first day of the week.
  14799. doy: 6, // The week that contains Jan 6th is the first week of the year.
  14800. },
  14801. });
  14802. //! moment.js locale configuration
  14803. hooks.defineLocale('te', {
  14804. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
  14805. '_'
  14806. ),
  14807. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
  14808. '_'
  14809. ),
  14810. monthsParseExact: true,
  14811. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
  14812. '_'
  14813. ),
  14814. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  14815. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  14816. longDateFormat: {
  14817. LT: 'A h:mm',
  14818. LTS: 'A h:mm:ss',
  14819. L: 'DD/MM/YYYY',
  14820. LL: 'D MMMM YYYY',
  14821. LLL: 'D MMMM YYYY, A h:mm',
  14822. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  14823. },
  14824. calendar: {
  14825. sameDay: '[నేడు] LT',
  14826. nextDay: '[రేపు] LT',
  14827. nextWeek: 'dddd, LT',
  14828. lastDay: '[నిన్న] LT',
  14829. lastWeek: '[గత] dddd, LT',
  14830. sameElse: 'L',
  14831. },
  14832. relativeTime: {
  14833. future: '%s లో',
  14834. past: '%s క్రితం',
  14835. s: 'కొన్ని క్షణాలు',
  14836. ss: '%d సెకన్లు',
  14837. m: 'ఒక నిమిషం',
  14838. mm: '%d నిమిషాలు',
  14839. h: 'ఒక గంట',
  14840. hh: '%d గంటలు',
  14841. d: 'ఒక రోజు',
  14842. dd: '%d రోజులు',
  14843. M: 'ఒక నెల',
  14844. MM: '%d నెలలు',
  14845. y: 'ఒక సంవత్సరం',
  14846. yy: '%d సంవత్సరాలు',
  14847. },
  14848. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  14849. ordinal: '%dవ',
  14850. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  14851. meridiemHour: function (hour, meridiem) {
  14852. if (hour === 12) {
  14853. hour = 0;
  14854. }
  14855. if (meridiem === 'రాత్రి') {
  14856. return hour < 4 ? hour : hour + 12;
  14857. } else if (meridiem === 'ఉదయం') {
  14858. return hour;
  14859. } else if (meridiem === 'మధ్యాహ్నం') {
  14860. return hour >= 10 ? hour : hour + 12;
  14861. } else if (meridiem === 'సాయంత్రం') {
  14862. return hour + 12;
  14863. }
  14864. },
  14865. meridiem: function (hour, minute, isLower) {
  14866. if (hour < 4) {
  14867. return 'రాత్రి';
  14868. } else if (hour < 10) {
  14869. return 'ఉదయం';
  14870. } else if (hour < 17) {
  14871. return 'మధ్యాహ్నం';
  14872. } else if (hour < 20) {
  14873. return 'సాయంత్రం';
  14874. } else {
  14875. return 'రాత్రి';
  14876. }
  14877. },
  14878. week: {
  14879. dow: 0, // Sunday is the first day of the week.
  14880. doy: 6, // The week that contains Jan 6th is the first week of the year.
  14881. },
  14882. });
  14883. //! moment.js locale configuration
  14884. hooks.defineLocale('tet', {
  14885. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  14886. '_'
  14887. ),
  14888. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  14889. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  14890. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  14891. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  14892. longDateFormat: {
  14893. LT: 'HH:mm',
  14894. LTS: 'HH:mm:ss',
  14895. L: 'DD/MM/YYYY',
  14896. LL: 'D MMMM YYYY',
  14897. LLL: 'D MMMM YYYY HH:mm',
  14898. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14899. },
  14900. calendar: {
  14901. sameDay: '[Ohin iha] LT',
  14902. nextDay: '[Aban iha] LT',
  14903. nextWeek: 'dddd [iha] LT',
  14904. lastDay: '[Horiseik iha] LT',
  14905. lastWeek: 'dddd [semana kotuk] [iha] LT',
  14906. sameElse: 'L',
  14907. },
  14908. relativeTime: {
  14909. future: 'iha %s',
  14910. past: '%s liuba',
  14911. s: 'segundu balun',
  14912. ss: 'segundu %d',
  14913. m: 'minutu ida',
  14914. mm: 'minutu %d',
  14915. h: 'oras ida',
  14916. hh: 'oras %d',
  14917. d: 'loron ida',
  14918. dd: 'loron %d',
  14919. M: 'fulan ida',
  14920. MM: 'fulan %d',
  14921. y: 'tinan ida',
  14922. yy: 'tinan %d',
  14923. },
  14924. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  14925. ordinal: function (number) {
  14926. var b = number % 10,
  14927. output =
  14928. ~~((number % 100) / 10) === 1
  14929. ? 'th'
  14930. : b === 1
  14931. ? 'st'
  14932. : b === 2
  14933. ? 'nd'
  14934. : b === 3
  14935. ? 'rd'
  14936. : 'th';
  14937. return number + output;
  14938. },
  14939. week: {
  14940. dow: 1, // Monday is the first day of the week.
  14941. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14942. },
  14943. });
  14944. //! moment.js locale configuration
  14945. var suffixes$3 = {
  14946. 0: '-ум',
  14947. 1: '-ум',
  14948. 2: '-юм',
  14949. 3: '-юм',
  14950. 4: '-ум',
  14951. 5: '-ум',
  14952. 6: '-ум',
  14953. 7: '-ум',
  14954. 8: '-ум',
  14955. 9: '-ум',
  14956. 10: '-ум',
  14957. 12: '-ум',
  14958. 13: '-ум',
  14959. 20: '-ум',
  14960. 30: '-юм',
  14961. 40: '-ум',
  14962. 50: '-ум',
  14963. 60: '-ум',
  14964. 70: '-ум',
  14965. 80: '-ум',
  14966. 90: '-ум',
  14967. 100: '-ум',
  14968. };
  14969. hooks.defineLocale('tg', {
  14970. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  14971. '_'
  14972. ),
  14973. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  14974. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
  14975. '_'
  14976. ),
  14977. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  14978. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  14979. longDateFormat: {
  14980. LT: 'HH:mm',
  14981. LTS: 'HH:mm:ss',
  14982. L: 'DD/MM/YYYY',
  14983. LL: 'D MMMM YYYY',
  14984. LLL: 'D MMMM YYYY HH:mm',
  14985. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14986. },
  14987. calendar: {
  14988. sameDay: '[Имрӯз соати] LT',
  14989. nextDay: '[Пагоҳ соати] LT',
  14990. lastDay: '[Дирӯз соати] LT',
  14991. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  14992. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  14993. sameElse: 'L',
  14994. },
  14995. relativeTime: {
  14996. future: 'баъди %s',
  14997. past: '%s пеш',
  14998. s: 'якчанд сония',
  14999. m: 'як дақиқа',
  15000. mm: '%d дақиқа',
  15001. h: 'як соат',
  15002. hh: '%d соат',
  15003. d: 'як рӯз',
  15004. dd: '%d рӯз',
  15005. M: 'як моҳ',
  15006. MM: '%d моҳ',
  15007. y: 'як сол',
  15008. yy: '%d сол',
  15009. },
  15010. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  15011. meridiemHour: function (hour, meridiem) {
  15012. if (hour === 12) {
  15013. hour = 0;
  15014. }
  15015. if (meridiem === 'шаб') {
  15016. return hour < 4 ? hour : hour + 12;
  15017. } else if (meridiem === 'субҳ') {
  15018. return hour;
  15019. } else if (meridiem === 'рӯз') {
  15020. return hour >= 11 ? hour : hour + 12;
  15021. } else if (meridiem === 'бегоҳ') {
  15022. return hour + 12;
  15023. }
  15024. },
  15025. meridiem: function (hour, minute, isLower) {
  15026. if (hour < 4) {
  15027. return 'шаб';
  15028. } else if (hour < 11) {
  15029. return 'субҳ';
  15030. } else if (hour < 16) {
  15031. return 'рӯз';
  15032. } else if (hour < 19) {
  15033. return 'бегоҳ';
  15034. } else {
  15035. return 'шаб';
  15036. }
  15037. },
  15038. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  15039. ordinal: function (number) {
  15040. var a = number % 10,
  15041. b = number >= 100 ? 100 : null;
  15042. return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
  15043. },
  15044. week: {
  15045. dow: 1, // Monday is the first day of the week.
  15046. doy: 7, // The week that contains Jan 1th is the first week of the year.
  15047. },
  15048. });
  15049. //! moment.js locale configuration
  15050. hooks.defineLocale('th', {
  15051. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
  15052. '_'
  15053. ),
  15054. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
  15055. '_'
  15056. ),
  15057. monthsParseExact: true,
  15058. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  15059. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  15060. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  15061. weekdaysParseExact: true,
  15062. longDateFormat: {
  15063. LT: 'H:mm',
  15064. LTS: 'H:mm:ss',
  15065. L: 'DD/MM/YYYY',
  15066. LL: 'D MMMM YYYY',
  15067. LLL: 'D MMMM YYYY เวลา H:mm',
  15068. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
  15069. },
  15070. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  15071. isPM: function (input) {
  15072. return input === 'หลังเที่ยง';
  15073. },
  15074. meridiem: function (hour, minute, isLower) {
  15075. if (hour < 12) {
  15076. return 'ก่อนเที่ยง';
  15077. } else {
  15078. return 'หลังเที่ยง';
  15079. }
  15080. },
  15081. calendar: {
  15082. sameDay: '[วันนี้ เวลา] LT',
  15083. nextDay: '[พรุ่งนี้ เวลา] LT',
  15084. nextWeek: 'dddd[หน้า เวลา] LT',
  15085. lastDay: '[เมื่อวานนี้ เวลา] LT',
  15086. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  15087. sameElse: 'L',
  15088. },
  15089. relativeTime: {
  15090. future: 'อีก %s',
  15091. past: '%sที่แล้ว',
  15092. s: 'ไม่กี่วินาที',
  15093. ss: '%d วินาที',
  15094. m: '1 นาที',
  15095. mm: '%d นาที',
  15096. h: '1 ชั่วโมง',
  15097. hh: '%d ชั่วโมง',
  15098. d: '1 วัน',
  15099. dd: '%d วัน',
  15100. M: '1 เดือน',
  15101. MM: '%d เดือน',
  15102. y: '1 ปี',
  15103. yy: '%d ปี',
  15104. },
  15105. });
  15106. //! moment.js locale configuration
  15107. var suffixes$4 = {
  15108. 1: "'inji",
  15109. 5: "'inji",
  15110. 8: "'inji",
  15111. 70: "'inji",
  15112. 80: "'inji",
  15113. 2: "'nji",
  15114. 7: "'nji",
  15115. 20: "'nji",
  15116. 50: "'nji",
  15117. 3: "'ünji",
  15118. 4: "'ünji",
  15119. 100: "'ünji",
  15120. 6: "'njy",
  15121. 9: "'unjy",
  15122. 10: "'unjy",
  15123. 30: "'unjy",
  15124. 60: "'ynjy",
  15125. 90: "'ynjy",
  15126. };
  15127. hooks.defineLocale('tk', {
  15128. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
  15129. '_'
  15130. ),
  15131. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  15132. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
  15133. '_'
  15134. ),
  15135. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  15136. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  15137. longDateFormat: {
  15138. LT: 'HH:mm',
  15139. LTS: 'HH:mm:ss',
  15140. L: 'DD.MM.YYYY',
  15141. LL: 'D MMMM YYYY',
  15142. LLL: 'D MMMM YYYY HH:mm',
  15143. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15144. },
  15145. calendar: {
  15146. sameDay: '[bugün sagat] LT',
  15147. nextDay: '[ertir sagat] LT',
  15148. nextWeek: '[indiki] dddd [sagat] LT',
  15149. lastDay: '[düýn] LT',
  15150. lastWeek: '[geçen] dddd [sagat] LT',
  15151. sameElse: 'L',
  15152. },
  15153. relativeTime: {
  15154. future: '%s soň',
  15155. past: '%s öň',
  15156. s: 'birnäçe sekunt',
  15157. m: 'bir minut',
  15158. mm: '%d minut',
  15159. h: 'bir sagat',
  15160. hh: '%d sagat',
  15161. d: 'bir gün',
  15162. dd: '%d gün',
  15163. M: 'bir aý',
  15164. MM: '%d aý',
  15165. y: 'bir ýyl',
  15166. yy: '%d ýyl',
  15167. },
  15168. ordinal: function (number, period) {
  15169. switch (period) {
  15170. case 'd':
  15171. case 'D':
  15172. case 'Do':
  15173. case 'DD':
  15174. return number;
  15175. default:
  15176. if (number === 0) {
  15177. // special case for zero
  15178. return number + "'unjy";
  15179. }
  15180. var a = number % 10,
  15181. b = (number % 100) - a,
  15182. c = number >= 100 ? 100 : null;
  15183. return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
  15184. }
  15185. },
  15186. week: {
  15187. dow: 1, // Monday is the first day of the week.
  15188. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15189. },
  15190. });
  15191. //! moment.js locale configuration
  15192. hooks.defineLocale('tl-ph', {
  15193. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  15194. '_'
  15195. ),
  15196. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  15197. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  15198. '_'
  15199. ),
  15200. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  15201. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  15202. longDateFormat: {
  15203. LT: 'HH:mm',
  15204. LTS: 'HH:mm:ss',
  15205. L: 'MM/D/YYYY',
  15206. LL: 'MMMM D, YYYY',
  15207. LLL: 'MMMM D, YYYY HH:mm',
  15208. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  15209. },
  15210. calendar: {
  15211. sameDay: 'LT [ngayong araw]',
  15212. nextDay: '[Bukas ng] LT',
  15213. nextWeek: 'LT [sa susunod na] dddd',
  15214. lastDay: 'LT [kahapon]',
  15215. lastWeek: 'LT [noong nakaraang] dddd',
  15216. sameElse: 'L',
  15217. },
  15218. relativeTime: {
  15219. future: 'sa loob ng %s',
  15220. past: '%s ang nakalipas',
  15221. s: 'ilang segundo',
  15222. ss: '%d segundo',
  15223. m: 'isang minuto',
  15224. mm: '%d minuto',
  15225. h: 'isang oras',
  15226. hh: '%d oras',
  15227. d: 'isang araw',
  15228. dd: '%d araw',
  15229. M: 'isang buwan',
  15230. MM: '%d buwan',
  15231. y: 'isang taon',
  15232. yy: '%d taon',
  15233. },
  15234. dayOfMonthOrdinalParse: /\d{1,2}/,
  15235. ordinal: function (number) {
  15236. return number;
  15237. },
  15238. week: {
  15239. dow: 1, // Monday is the first day of the week.
  15240. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15241. },
  15242. });
  15243. //! moment.js locale configuration
  15244. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  15245. function translateFuture(output) {
  15246. var time = output;
  15247. time =
  15248. output.indexOf('jaj') !== -1
  15249. ? time.slice(0, -3) + 'leS'
  15250. : output.indexOf('jar') !== -1
  15251. ? time.slice(0, -3) + 'waQ'
  15252. : output.indexOf('DIS') !== -1
  15253. ? time.slice(0, -3) + 'nem'
  15254. : time + ' pIq';
  15255. return time;
  15256. }
  15257. function translatePast(output) {
  15258. var time = output;
  15259. time =
  15260. output.indexOf('jaj') !== -1
  15261. ? time.slice(0, -3) + 'Hu’'
  15262. : output.indexOf('jar') !== -1
  15263. ? time.slice(0, -3) + 'wen'
  15264. : output.indexOf('DIS') !== -1
  15265. ? time.slice(0, -3) + 'ben'
  15266. : time + ' ret';
  15267. return time;
  15268. }
  15269. function translate$a(number, withoutSuffix, string, isFuture) {
  15270. var numberNoun = numberAsNoun(number);
  15271. switch (string) {
  15272. case 'ss':
  15273. return numberNoun + ' lup';
  15274. case 'mm':
  15275. return numberNoun + ' tup';
  15276. case 'hh':
  15277. return numberNoun + ' rep';
  15278. case 'dd':
  15279. return numberNoun + ' jaj';
  15280. case 'MM':
  15281. return numberNoun + ' jar';
  15282. case 'yy':
  15283. return numberNoun + ' DIS';
  15284. }
  15285. }
  15286. function numberAsNoun(number) {
  15287. var hundred = Math.floor((number % 1000) / 100),
  15288. ten = Math.floor((number % 100) / 10),
  15289. one = number % 10,
  15290. word = '';
  15291. if (hundred > 0) {
  15292. word += numbersNouns[hundred] + 'vatlh';
  15293. }
  15294. if (ten > 0) {
  15295. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  15296. }
  15297. if (one > 0) {
  15298. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  15299. }
  15300. return word === '' ? 'pagh' : word;
  15301. }
  15302. hooks.defineLocale('tlh', {
  15303. months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
  15304. '_'
  15305. ),
  15306. monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
  15307. '_'
  15308. ),
  15309. monthsParseExact: true,
  15310. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15311. '_'
  15312. ),
  15313. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15314. '_'
  15315. ),
  15316. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15317. '_'
  15318. ),
  15319. longDateFormat: {
  15320. LT: 'HH:mm',
  15321. LTS: 'HH:mm:ss',
  15322. L: 'DD.MM.YYYY',
  15323. LL: 'D MMMM YYYY',
  15324. LLL: 'D MMMM YYYY HH:mm',
  15325. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15326. },
  15327. calendar: {
  15328. sameDay: '[DaHjaj] LT',
  15329. nextDay: '[wa’leS] LT',
  15330. nextWeek: 'LLL',
  15331. lastDay: '[wa’Hu’] LT',
  15332. lastWeek: 'LLL',
  15333. sameElse: 'L',
  15334. },
  15335. relativeTime: {
  15336. future: translateFuture,
  15337. past: translatePast,
  15338. s: 'puS lup',
  15339. ss: translate$a,
  15340. m: 'wa’ tup',
  15341. mm: translate$a,
  15342. h: 'wa’ rep',
  15343. hh: translate$a,
  15344. d: 'wa’ jaj',
  15345. dd: translate$a,
  15346. M: 'wa’ jar',
  15347. MM: translate$a,
  15348. y: 'wa’ DIS',
  15349. yy: translate$a,
  15350. },
  15351. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15352. ordinal: '%d.',
  15353. week: {
  15354. dow: 1, // Monday is the first day of the week.
  15355. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15356. },
  15357. });
  15358. //! moment.js locale configuration
  15359. var suffixes$5 = {
  15360. 1: "'inci",
  15361. 5: "'inci",
  15362. 8: "'inci",
  15363. 70: "'inci",
  15364. 80: "'inci",
  15365. 2: "'nci",
  15366. 7: "'nci",
  15367. 20: "'nci",
  15368. 50: "'nci",
  15369. 3: "'üncü",
  15370. 4: "'üncü",
  15371. 100: "'üncü",
  15372. 6: "'ncı",
  15373. 9: "'uncu",
  15374. 10: "'uncu",
  15375. 30: "'uncu",
  15376. 60: "'ıncı",
  15377. 90: "'ıncı",
  15378. };
  15379. hooks.defineLocale('tr', {
  15380. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
  15381. '_'
  15382. ),
  15383. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  15384. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
  15385. '_'
  15386. ),
  15387. weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  15388. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  15389. meridiem: function (hours, minutes, isLower) {
  15390. if (hours < 12) {
  15391. return isLower ? 'öö' : 'ÖÖ';
  15392. } else {
  15393. return isLower ? 'ös' : 'ÖS';
  15394. }
  15395. },
  15396. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  15397. isPM: function (input) {
  15398. return input === 'ös' || input === 'ÖS';
  15399. },
  15400. longDateFormat: {
  15401. LT: 'HH:mm',
  15402. LTS: 'HH:mm:ss',
  15403. L: 'DD.MM.YYYY',
  15404. LL: 'D MMMM YYYY',
  15405. LLL: 'D MMMM YYYY HH:mm',
  15406. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15407. },
  15408. calendar: {
  15409. sameDay: '[bugün saat] LT',
  15410. nextDay: '[yarın saat] LT',
  15411. nextWeek: '[gelecek] dddd [saat] LT',
  15412. lastDay: '[dün] LT',
  15413. lastWeek: '[geçen] dddd [saat] LT',
  15414. sameElse: 'L',
  15415. },
  15416. relativeTime: {
  15417. future: '%s sonra',
  15418. past: '%s önce',
  15419. s: 'birkaç saniye',
  15420. ss: '%d saniye',
  15421. m: 'bir dakika',
  15422. mm: '%d dakika',
  15423. h: 'bir saat',
  15424. hh: '%d saat',
  15425. d: 'bir gün',
  15426. dd: '%d gün',
  15427. M: 'bir ay',
  15428. MM: '%d ay',
  15429. y: 'bir yıl',
  15430. yy: '%d yıl',
  15431. },
  15432. ordinal: function (number, period) {
  15433. switch (period) {
  15434. case 'd':
  15435. case 'D':
  15436. case 'Do':
  15437. case 'DD':
  15438. return number;
  15439. default:
  15440. if (number === 0) {
  15441. // special case for zero
  15442. return number + "'ıncı";
  15443. }
  15444. var a = number % 10,
  15445. b = (number % 100) - a,
  15446. c = number >= 100 ? 100 : null;
  15447. return number + (suffixes$5[a] || suffixes$5[b] || suffixes$5[c]);
  15448. }
  15449. },
  15450. week: {
  15451. dow: 1, // Monday is the first day of the week.
  15452. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15453. },
  15454. });
  15455. //! moment.js locale configuration
  15456. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  15457. // This is currently too difficult (maybe even impossible) to add.
  15458. hooks.defineLocale('tzl', {
  15459. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  15460. '_'
  15461. ),
  15462. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  15463. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  15464. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15465. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  15466. longDateFormat: {
  15467. LT: 'HH.mm',
  15468. LTS: 'HH.mm.ss',
  15469. L: 'DD.MM.YYYY',
  15470. LL: 'D. MMMM [dallas] YYYY',
  15471. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  15472. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
  15473. },
  15474. meridiemParse: /d\'o|d\'a/i,
  15475. isPM: function (input) {
  15476. return "d'o" === input.toLowerCase();
  15477. },
  15478. meridiem: function (hours, minutes, isLower) {
  15479. if (hours > 11) {
  15480. return isLower ? "d'o" : "D'O";
  15481. } else {
  15482. return isLower ? "d'a" : "D'A";
  15483. }
  15484. },
  15485. calendar: {
  15486. sameDay: '[oxhi à] LT',
  15487. nextDay: '[demà à] LT',
  15488. nextWeek: 'dddd [à] LT',
  15489. lastDay: '[ieiri à] LT',
  15490. lastWeek: '[sür el] dddd [lasteu à] LT',
  15491. sameElse: 'L',
  15492. },
  15493. relativeTime: {
  15494. future: 'osprei %s',
  15495. past: 'ja%s',
  15496. s: processRelativeTime$8,
  15497. ss: processRelativeTime$8,
  15498. m: processRelativeTime$8,
  15499. mm: processRelativeTime$8,
  15500. h: processRelativeTime$8,
  15501. hh: processRelativeTime$8,
  15502. d: processRelativeTime$8,
  15503. dd: processRelativeTime$8,
  15504. M: processRelativeTime$8,
  15505. MM: processRelativeTime$8,
  15506. y: processRelativeTime$8,
  15507. yy: processRelativeTime$8,
  15508. },
  15509. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15510. ordinal: '%d.',
  15511. week: {
  15512. dow: 1, // Monday is the first day of the week.
  15513. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15514. },
  15515. });
  15516. function processRelativeTime$8(number, withoutSuffix, key, isFuture) {
  15517. var format = {
  15518. s: ['viensas secunds', "'iensas secunds"],
  15519. ss: [number + ' secunds', '' + number + ' secunds'],
  15520. m: ["'n míut", "'iens míut"],
  15521. mm: [number + ' míuts', '' + number + ' míuts'],
  15522. h: ["'n þora", "'iensa þora"],
  15523. hh: [number + ' þoras', '' + number + ' þoras'],
  15524. d: ["'n ziua", "'iensa ziua"],
  15525. dd: [number + ' ziuas', '' + number + ' ziuas'],
  15526. M: ["'n mes", "'iens mes"],
  15527. MM: [number + ' mesen', '' + number + ' mesen'],
  15528. y: ["'n ar", "'iens ar"],
  15529. yy: [number + ' ars', '' + number + ' ars'],
  15530. };
  15531. return isFuture
  15532. ? format[key][0]
  15533. : withoutSuffix
  15534. ? format[key][0]
  15535. : format[key][1];
  15536. }
  15537. //! moment.js locale configuration
  15538. hooks.defineLocale('tzm-latn', {
  15539. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15540. '_'
  15541. ),
  15542. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15543. '_'
  15544. ),
  15545. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15546. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15547. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15548. longDateFormat: {
  15549. LT: 'HH:mm',
  15550. LTS: 'HH:mm:ss',
  15551. L: 'DD/MM/YYYY',
  15552. LL: 'D MMMM YYYY',
  15553. LLL: 'D MMMM YYYY HH:mm',
  15554. LLLL: 'dddd D MMMM YYYY HH:mm',
  15555. },
  15556. calendar: {
  15557. sameDay: '[asdkh g] LT',
  15558. nextDay: '[aska g] LT',
  15559. nextWeek: 'dddd [g] LT',
  15560. lastDay: '[assant g] LT',
  15561. lastWeek: 'dddd [g] LT',
  15562. sameElse: 'L',
  15563. },
  15564. relativeTime: {
  15565. future: 'dadkh s yan %s',
  15566. past: 'yan %s',
  15567. s: 'imik',
  15568. ss: '%d imik',
  15569. m: 'minuḍ',
  15570. mm: '%d minuḍ',
  15571. h: 'saɛa',
  15572. hh: '%d tassaɛin',
  15573. d: 'ass',
  15574. dd: '%d ossan',
  15575. M: 'ayowr',
  15576. MM: '%d iyyirn',
  15577. y: 'asgas',
  15578. yy: '%d isgasn',
  15579. },
  15580. week: {
  15581. dow: 6, // Saturday is the first day of the week.
  15582. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15583. },
  15584. });
  15585. //! moment.js locale configuration
  15586. hooks.defineLocale('tzm', {
  15587. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15588. '_'
  15589. ),
  15590. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15591. '_'
  15592. ),
  15593. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15594. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15595. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15596. longDateFormat: {
  15597. LT: 'HH:mm',
  15598. LTS: 'HH:mm:ss',
  15599. L: 'DD/MM/YYYY',
  15600. LL: 'D MMMM YYYY',
  15601. LLL: 'D MMMM YYYY HH:mm',
  15602. LLLL: 'dddd D MMMM YYYY HH:mm',
  15603. },
  15604. calendar: {
  15605. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  15606. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  15607. nextWeek: 'dddd [ⴴ] LT',
  15608. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  15609. lastWeek: 'dddd [ⴴ] LT',
  15610. sameElse: 'L',
  15611. },
  15612. relativeTime: {
  15613. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  15614. past: 'ⵢⴰⵏ %s',
  15615. s: 'ⵉⵎⵉⴽ',
  15616. ss: '%d ⵉⵎⵉⴽ',
  15617. m: 'ⵎⵉⵏⵓⴺ',
  15618. mm: '%d ⵎⵉⵏⵓⴺ',
  15619. h: 'ⵙⴰⵄⴰ',
  15620. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  15621. d: 'ⴰⵙⵙ',
  15622. dd: '%d oⵙⵙⴰⵏ',
  15623. M: 'ⴰⵢoⵓⵔ',
  15624. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  15625. y: 'ⴰⵙⴳⴰⵙ',
  15626. yy: '%d ⵉⵙⴳⴰⵙⵏ',
  15627. },
  15628. week: {
  15629. dow: 6, // Saturday is the first day of the week.
  15630. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15631. },
  15632. });
  15633. //! moment.js language configuration
  15634. hooks.defineLocale('ug-cn', {
  15635. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15636. '_'
  15637. ),
  15638. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15639. '_'
  15640. ),
  15641. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  15642. '_'
  15643. ),
  15644. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15645. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15646. longDateFormat: {
  15647. LT: 'HH:mm',
  15648. LTS: 'HH:mm:ss',
  15649. L: 'YYYY-MM-DD',
  15650. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  15651. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15652. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15653. },
  15654. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  15655. meridiemHour: function (hour, meridiem) {
  15656. if (hour === 12) {
  15657. hour = 0;
  15658. }
  15659. if (
  15660. meridiem === 'يېرىم كېچە' ||
  15661. meridiem === 'سەھەر' ||
  15662. meridiem === 'چۈشتىن بۇرۇن'
  15663. ) {
  15664. return hour;
  15665. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  15666. return hour + 12;
  15667. } else {
  15668. return hour >= 11 ? hour : hour + 12;
  15669. }
  15670. },
  15671. meridiem: function (hour, minute, isLower) {
  15672. var hm = hour * 100 + minute;
  15673. if (hm < 600) {
  15674. return 'يېرىم كېچە';
  15675. } else if (hm < 900) {
  15676. return 'سەھەر';
  15677. } else if (hm < 1130) {
  15678. return 'چۈشتىن بۇرۇن';
  15679. } else if (hm < 1230) {
  15680. return 'چۈش';
  15681. } else if (hm < 1800) {
  15682. return 'چۈشتىن كېيىن';
  15683. } else {
  15684. return 'كەچ';
  15685. }
  15686. },
  15687. calendar: {
  15688. sameDay: '[بۈگۈن سائەت] LT',
  15689. nextDay: '[ئەتە سائەت] LT',
  15690. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  15691. lastDay: '[تۆنۈگۈن] LT',
  15692. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  15693. sameElse: 'L',
  15694. },
  15695. relativeTime: {
  15696. future: '%s كېيىن',
  15697. past: '%s بۇرۇن',
  15698. s: 'نەچچە سېكونت',
  15699. ss: '%d سېكونت',
  15700. m: 'بىر مىنۇت',
  15701. mm: '%d مىنۇت',
  15702. h: 'بىر سائەت',
  15703. hh: '%d سائەت',
  15704. d: 'بىر كۈن',
  15705. dd: '%d كۈن',
  15706. M: 'بىر ئاي',
  15707. MM: '%d ئاي',
  15708. y: 'بىر يىل',
  15709. yy: '%d يىل',
  15710. },
  15711. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  15712. ordinal: function (number, period) {
  15713. switch (period) {
  15714. case 'd':
  15715. case 'D':
  15716. case 'DDD':
  15717. return number + '-كۈنى';
  15718. case 'w':
  15719. case 'W':
  15720. return number + '-ھەپتە';
  15721. default:
  15722. return number;
  15723. }
  15724. },
  15725. preparse: function (string) {
  15726. return string.replace(/،/g, ',');
  15727. },
  15728. postformat: function (string) {
  15729. return string.replace(/,/g, '،');
  15730. },
  15731. week: {
  15732. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  15733. dow: 1, // Monday is the first day of the week.
  15734. doy: 7, // The week that contains Jan 1st is the first week of the year.
  15735. },
  15736. });
  15737. //! moment.js locale configuration
  15738. function plural$6(word, num) {
  15739. var forms = word.split('_');
  15740. return num % 10 === 1 && num % 100 !== 11
  15741. ? forms[0]
  15742. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  15743. ? forms[1]
  15744. : forms[2];
  15745. }
  15746. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  15747. var format = {
  15748. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  15749. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  15750. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  15751. dd: 'день_дні_днів',
  15752. MM: 'місяць_місяці_місяців',
  15753. yy: 'рік_роки_років',
  15754. };
  15755. if (key === 'm') {
  15756. return withoutSuffix ? 'хвилина' : 'хвилину';
  15757. } else if (key === 'h') {
  15758. return withoutSuffix ? 'година' : 'годину';
  15759. } else {
  15760. return number + ' ' + plural$6(format[key], +number);
  15761. }
  15762. }
  15763. function weekdaysCaseReplace(m, format) {
  15764. var weekdays = {
  15765. nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
  15766. '_'
  15767. ),
  15768. accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
  15769. '_'
  15770. ),
  15771. genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
  15772. '_'
  15773. ),
  15774. },
  15775. nounCase;
  15776. if (m === true) {
  15777. return weekdays['nominative']
  15778. .slice(1, 7)
  15779. .concat(weekdays['nominative'].slice(0, 1));
  15780. }
  15781. if (!m) {
  15782. return weekdays['nominative'];
  15783. }
  15784. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
  15785. ? 'accusative'
  15786. : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
  15787. ? 'genitive'
  15788. : 'nominative';
  15789. return weekdays[nounCase][m.day()];
  15790. }
  15791. function processHoursFunction(str) {
  15792. return function () {
  15793. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  15794. };
  15795. }
  15796. hooks.defineLocale('uk', {
  15797. months: {
  15798. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
  15799. '_'
  15800. ),
  15801. standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
  15802. '_'
  15803. ),
  15804. },
  15805. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
  15806. '_'
  15807. ),
  15808. weekdays: weekdaysCaseReplace,
  15809. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15810. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15811. longDateFormat: {
  15812. LT: 'HH:mm',
  15813. LTS: 'HH:mm:ss',
  15814. L: 'DD.MM.YYYY',
  15815. LL: 'D MMMM YYYY р.',
  15816. LLL: 'D MMMM YYYY р., HH:mm',
  15817. LLLL: 'dddd, D MMMM YYYY р., HH:mm',
  15818. },
  15819. calendar: {
  15820. sameDay: processHoursFunction('[Сьогодні '),
  15821. nextDay: processHoursFunction('[Завтра '),
  15822. lastDay: processHoursFunction('[Вчора '),
  15823. nextWeek: processHoursFunction('[У] dddd ['),
  15824. lastWeek: function () {
  15825. switch (this.day()) {
  15826. case 0:
  15827. case 3:
  15828. case 5:
  15829. case 6:
  15830. return processHoursFunction('[Минулої] dddd [').call(this);
  15831. case 1:
  15832. case 2:
  15833. case 4:
  15834. return processHoursFunction('[Минулого] dddd [').call(this);
  15835. }
  15836. },
  15837. sameElse: 'L',
  15838. },
  15839. relativeTime: {
  15840. future: 'за %s',
  15841. past: '%s тому',
  15842. s: 'декілька секунд',
  15843. ss: relativeTimeWithPlural$4,
  15844. m: relativeTimeWithPlural$4,
  15845. mm: relativeTimeWithPlural$4,
  15846. h: 'годину',
  15847. hh: relativeTimeWithPlural$4,
  15848. d: 'день',
  15849. dd: relativeTimeWithPlural$4,
  15850. M: 'місяць',
  15851. MM: relativeTimeWithPlural$4,
  15852. y: 'рік',
  15853. yy: relativeTimeWithPlural$4,
  15854. },
  15855. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  15856. meridiemParse: /ночі|ранку|дня|вечора/,
  15857. isPM: function (input) {
  15858. return /^(дня|вечора)$/.test(input);
  15859. },
  15860. meridiem: function (hour, minute, isLower) {
  15861. if (hour < 4) {
  15862. return 'ночі';
  15863. } else if (hour < 12) {
  15864. return 'ранку';
  15865. } else if (hour < 17) {
  15866. return 'дня';
  15867. } else {
  15868. return 'вечора';
  15869. }
  15870. },
  15871. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  15872. ordinal: function (number, period) {
  15873. switch (period) {
  15874. case 'M':
  15875. case 'd':
  15876. case 'DDD':
  15877. case 'w':
  15878. case 'W':
  15879. return number + '-й';
  15880. case 'D':
  15881. return number + '-го';
  15882. default:
  15883. return number;
  15884. }
  15885. },
  15886. week: {
  15887. dow: 1, // Monday is the first day of the week.
  15888. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15889. },
  15890. });
  15891. //! moment.js locale configuration
  15892. var months$b = [
  15893. 'جنوری',
  15894. 'فروری',
  15895. 'مارچ',
  15896. 'اپریل',
  15897. 'مئی',
  15898. 'جون',
  15899. 'جولائی',
  15900. 'اگست',
  15901. 'ستمبر',
  15902. 'اکتوبر',
  15903. 'نومبر',
  15904. 'دسمبر',
  15905. ],
  15906. days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  15907. hooks.defineLocale('ur', {
  15908. months: months$b,
  15909. monthsShort: months$b,
  15910. weekdays: days$2,
  15911. weekdaysShort: days$2,
  15912. weekdaysMin: days$2,
  15913. longDateFormat: {
  15914. LT: 'HH:mm',
  15915. LTS: 'HH:mm:ss',
  15916. L: 'DD/MM/YYYY',
  15917. LL: 'D MMMM YYYY',
  15918. LLL: 'D MMMM YYYY HH:mm',
  15919. LLLL: 'dddd، D MMMM YYYY HH:mm',
  15920. },
  15921. meridiemParse: /صبح|شام/,
  15922. isPM: function (input) {
  15923. return 'شام' === input;
  15924. },
  15925. meridiem: function (hour, minute, isLower) {
  15926. if (hour < 12) {
  15927. return 'صبح';
  15928. }
  15929. return 'شام';
  15930. },
  15931. calendar: {
  15932. sameDay: '[آج بوقت] LT',
  15933. nextDay: '[کل بوقت] LT',
  15934. nextWeek: 'dddd [بوقت] LT',
  15935. lastDay: '[گذشتہ روز بوقت] LT',
  15936. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  15937. sameElse: 'L',
  15938. },
  15939. relativeTime: {
  15940. future: '%s بعد',
  15941. past: '%s قبل',
  15942. s: 'چند سیکنڈ',
  15943. ss: '%d سیکنڈ',
  15944. m: 'ایک منٹ',
  15945. mm: '%d منٹ',
  15946. h: 'ایک گھنٹہ',
  15947. hh: '%d گھنٹے',
  15948. d: 'ایک دن',
  15949. dd: '%d دن',
  15950. M: 'ایک ماہ',
  15951. MM: '%d ماہ',
  15952. y: 'ایک سال',
  15953. yy: '%d سال',
  15954. },
  15955. preparse: function (string) {
  15956. return string.replace(/،/g, ',');
  15957. },
  15958. postformat: function (string) {
  15959. return string.replace(/,/g, '،');
  15960. },
  15961. week: {
  15962. dow: 1, // Monday is the first day of the week.
  15963. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15964. },
  15965. });
  15966. //! moment.js locale configuration
  15967. hooks.defineLocale('uz-latn', {
  15968. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
  15969. '_'
  15970. ),
  15971. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  15972. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
  15973. '_'
  15974. ),
  15975. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  15976. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  15977. longDateFormat: {
  15978. LT: 'HH:mm',
  15979. LTS: 'HH:mm:ss',
  15980. L: 'DD/MM/YYYY',
  15981. LL: 'D MMMM YYYY',
  15982. LLL: 'D MMMM YYYY HH:mm',
  15983. LLLL: 'D MMMM YYYY, dddd HH:mm',
  15984. },
  15985. calendar: {
  15986. sameDay: '[Bugun soat] LT [da]',
  15987. nextDay: '[Ertaga] LT [da]',
  15988. nextWeek: 'dddd [kuni soat] LT [da]',
  15989. lastDay: '[Kecha soat] LT [da]',
  15990. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  15991. sameElse: 'L',
  15992. },
  15993. relativeTime: {
  15994. future: 'Yaqin %s ichida',
  15995. past: 'Bir necha %s oldin',
  15996. s: 'soniya',
  15997. ss: '%d soniya',
  15998. m: 'bir daqiqa',
  15999. mm: '%d daqiqa',
  16000. h: 'bir soat',
  16001. hh: '%d soat',
  16002. d: 'bir kun',
  16003. dd: '%d kun',
  16004. M: 'bir oy',
  16005. MM: '%d oy',
  16006. y: 'bir yil',
  16007. yy: '%d yil',
  16008. },
  16009. week: {
  16010. dow: 1, // Monday is the first day of the week.
  16011. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16012. },
  16013. });
  16014. //! moment.js locale configuration
  16015. hooks.defineLocale('uz', {
  16016. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  16017. '_'
  16018. ),
  16019. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  16020. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  16021. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  16022. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  16023. longDateFormat: {
  16024. LT: 'HH:mm',
  16025. LTS: 'HH:mm:ss',
  16026. L: 'DD/MM/YYYY',
  16027. LL: 'D MMMM YYYY',
  16028. LLL: 'D MMMM YYYY HH:mm',
  16029. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16030. },
  16031. calendar: {
  16032. sameDay: '[Бугун соат] LT [да]',
  16033. nextDay: '[Эртага] LT [да]',
  16034. nextWeek: 'dddd [куни соат] LT [да]',
  16035. lastDay: '[Кеча соат] LT [да]',
  16036. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  16037. sameElse: 'L',
  16038. },
  16039. relativeTime: {
  16040. future: 'Якин %s ичида',
  16041. past: 'Бир неча %s олдин',
  16042. s: 'фурсат',
  16043. ss: '%d фурсат',
  16044. m: 'бир дакика',
  16045. mm: '%d дакика',
  16046. h: 'бир соат',
  16047. hh: '%d соат',
  16048. d: 'бир кун',
  16049. dd: '%d кун',
  16050. M: 'бир ой',
  16051. MM: '%d ой',
  16052. y: 'бир йил',
  16053. yy: '%d йил',
  16054. },
  16055. week: {
  16056. dow: 1, // Monday is the first day of the week.
  16057. doy: 7, // The week that contains Jan 4th is the first week of the year.
  16058. },
  16059. });
  16060. //! moment.js locale configuration
  16061. hooks.defineLocale('vi', {
  16062. months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split(
  16063. '_'
  16064. ),
  16065. monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
  16066. '_'
  16067. ),
  16068. monthsParseExact: true,
  16069. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
  16070. '_'
  16071. ),
  16072. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16073. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16074. weekdaysParseExact: true,
  16075. meridiemParse: /sa|ch/i,
  16076. isPM: function (input) {
  16077. return /^ch$/i.test(input);
  16078. },
  16079. meridiem: function (hours, minutes, isLower) {
  16080. if (hours < 12) {
  16081. return isLower ? 'sa' : 'SA';
  16082. } else {
  16083. return isLower ? 'ch' : 'CH';
  16084. }
  16085. },
  16086. longDateFormat: {
  16087. LT: 'HH:mm',
  16088. LTS: 'HH:mm:ss',
  16089. L: 'DD/MM/YYYY',
  16090. LL: 'D MMMM [năm] YYYY',
  16091. LLL: 'D MMMM [năm] YYYY HH:mm',
  16092. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  16093. l: 'DD/M/YYYY',
  16094. ll: 'D MMM YYYY',
  16095. lll: 'D MMM YYYY HH:mm',
  16096. llll: 'ddd, D MMM YYYY HH:mm',
  16097. },
  16098. calendar: {
  16099. sameDay: '[Hôm nay lúc] LT',
  16100. nextDay: '[Ngày mai lúc] LT',
  16101. nextWeek: 'dddd [tuần tới lúc] LT',
  16102. lastDay: '[Hôm qua lúc] LT',
  16103. lastWeek: 'dddd [tuần trước lúc] LT',
  16104. sameElse: 'L',
  16105. },
  16106. relativeTime: {
  16107. future: '%s tới',
  16108. past: '%s trước',
  16109. s: 'vài giây',
  16110. ss: '%d giây',
  16111. m: 'một phút',
  16112. mm: '%d phút',
  16113. h: 'một giờ',
  16114. hh: '%d giờ',
  16115. d: 'một ngày',
  16116. dd: '%d ngày',
  16117. M: 'một tháng',
  16118. MM: '%d tháng',
  16119. y: 'một năm',
  16120. yy: '%d năm',
  16121. },
  16122. dayOfMonthOrdinalParse: /\d{1,2}/,
  16123. ordinal: function (number) {
  16124. return number;
  16125. },
  16126. week: {
  16127. dow: 1, // Monday is the first day of the week.
  16128. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16129. },
  16130. });
  16131. //! moment.js locale configuration
  16132. hooks.defineLocale('x-pseudo', {
  16133. months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split(
  16134. '_'
  16135. ),
  16136. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  16137. '_'
  16138. ),
  16139. monthsParseExact: true,
  16140. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  16141. '_'
  16142. ),
  16143. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  16144. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  16145. weekdaysParseExact: true,
  16146. longDateFormat: {
  16147. LT: 'HH:mm',
  16148. L: 'DD/MM/YYYY',
  16149. LL: 'D MMMM YYYY',
  16150. LLL: 'D MMMM YYYY HH:mm',
  16151. LLLL: 'dddd, D MMMM YYYY HH:mm',
  16152. },
  16153. calendar: {
  16154. sameDay: '[T~ódá~ý át] LT',
  16155. nextDay: '[T~ómó~rró~w át] LT',
  16156. nextWeek: 'dddd [át] LT',
  16157. lastDay: '[Ý~ést~érdá~ý át] LT',
  16158. lastWeek: '[L~ást] dddd [át] LT',
  16159. sameElse: 'L',
  16160. },
  16161. relativeTime: {
  16162. future: 'í~ñ %s',
  16163. past: '%s á~gó',
  16164. s: 'á ~féw ~sécó~ñds',
  16165. ss: '%d s~écóñ~ds',
  16166. m: 'á ~míñ~úté',
  16167. mm: '%d m~íñú~tés',
  16168. h: 'á~ñ hó~úr',
  16169. hh: '%d h~óúrs',
  16170. d: 'á ~dáý',
  16171. dd: '%d d~áýs',
  16172. M: 'á ~móñ~th',
  16173. MM: '%d m~óñt~hs',
  16174. y: 'á ~ýéár',
  16175. yy: '%d ý~éárs',
  16176. },
  16177. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  16178. ordinal: function (number) {
  16179. var b = number % 10,
  16180. output =
  16181. ~~((number % 100) / 10) === 1
  16182. ? 'th'
  16183. : b === 1
  16184. ? 'st'
  16185. : b === 2
  16186. ? 'nd'
  16187. : b === 3
  16188. ? 'rd'
  16189. : 'th';
  16190. return number + output;
  16191. },
  16192. week: {
  16193. dow: 1, // Monday is the first day of the week.
  16194. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16195. },
  16196. });
  16197. //! moment.js locale configuration
  16198. hooks.defineLocale('yo', {
  16199. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
  16200. '_'
  16201. ),
  16202. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  16203. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  16204. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  16205. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  16206. longDateFormat: {
  16207. LT: 'h:mm A',
  16208. LTS: 'h:mm:ss A',
  16209. L: 'DD/MM/YYYY',
  16210. LL: 'D MMMM YYYY',
  16211. LLL: 'D MMMM YYYY h:mm A',
  16212. LLLL: 'dddd, D MMMM YYYY h:mm A',
  16213. },
  16214. calendar: {
  16215. sameDay: '[Ònì ni] LT',
  16216. nextDay: '[Ọ̀la ni] LT',
  16217. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  16218. lastDay: '[Àna ni] LT',
  16219. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  16220. sameElse: 'L',
  16221. },
  16222. relativeTime: {
  16223. future: 'ní %s',
  16224. past: '%s kọjá',
  16225. s: 'ìsẹjú aayá die',
  16226. ss: 'aayá %d',
  16227. m: 'ìsẹjú kan',
  16228. mm: 'ìsẹjú %d',
  16229. h: 'wákati kan',
  16230. hh: 'wákati %d',
  16231. d: 'ọjọ́ kan',
  16232. dd: 'ọjọ́ %d',
  16233. M: 'osù kan',
  16234. MM: 'osù %d',
  16235. y: 'ọdún kan',
  16236. yy: 'ọdún %d',
  16237. },
  16238. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  16239. ordinal: 'ọjọ́ %d',
  16240. week: {
  16241. dow: 1, // Monday is the first day of the week.
  16242. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16243. },
  16244. });
  16245. //! moment.js locale configuration
  16246. hooks.defineLocale('zh-cn', {
  16247. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16248. '_'
  16249. ),
  16250. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16251. '_'
  16252. ),
  16253. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16254. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  16255. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16256. longDateFormat: {
  16257. LT: 'HH:mm',
  16258. LTS: 'HH:mm:ss',
  16259. L: 'YYYY/MM/DD',
  16260. LL: 'YYYY年M月D日',
  16261. LLL: 'YYYY年M月D日Ah点mm分',
  16262. LLLL: 'YYYY年M月D日ddddAh点mm分',
  16263. l: 'YYYY/M/D',
  16264. ll: 'YYYY年M月D日',
  16265. lll: 'YYYY年M月D日 HH:mm',
  16266. llll: 'YYYY年M月D日dddd HH:mm',
  16267. },
  16268. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16269. meridiemHour: function (hour, meridiem) {
  16270. if (hour === 12) {
  16271. hour = 0;
  16272. }
  16273. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16274. return hour;
  16275. } else if (meridiem === '下午' || meridiem === '晚上') {
  16276. return hour + 12;
  16277. } else {
  16278. // '中午'
  16279. return hour >= 11 ? hour : hour + 12;
  16280. }
  16281. },
  16282. meridiem: function (hour, minute, isLower) {
  16283. var hm = hour * 100 + minute;
  16284. if (hm < 600) {
  16285. return '凌晨';
  16286. } else if (hm < 900) {
  16287. return '早上';
  16288. } else if (hm < 1130) {
  16289. return '上午';
  16290. } else if (hm < 1230) {
  16291. return '中午';
  16292. } else if (hm < 1800) {
  16293. return '下午';
  16294. } else {
  16295. return '晚上';
  16296. }
  16297. },
  16298. calendar: {
  16299. sameDay: '[今天]LT',
  16300. nextDay: '[明天]LT',
  16301. nextWeek: function (now) {
  16302. if (now.week() !== this.week()) {
  16303. return '[下]dddLT';
  16304. } else {
  16305. return '[本]dddLT';
  16306. }
  16307. },
  16308. lastDay: '[昨天]LT',
  16309. lastWeek: function (now) {
  16310. if (this.week() !== now.week()) {
  16311. return '[上]dddLT';
  16312. } else {
  16313. return '[本]dddLT';
  16314. }
  16315. },
  16316. sameElse: 'L',
  16317. },
  16318. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  16319. ordinal: function (number, period) {
  16320. switch (period) {
  16321. case 'd':
  16322. case 'D':
  16323. case 'DDD':
  16324. return number + '日';
  16325. case 'M':
  16326. return number + '月';
  16327. case 'w':
  16328. case 'W':
  16329. return number + '周';
  16330. default:
  16331. return number;
  16332. }
  16333. },
  16334. relativeTime: {
  16335. future: '%s后',
  16336. past: '%s前',
  16337. s: '几秒',
  16338. ss: '%d 秒',
  16339. m: '1 分钟',
  16340. mm: '%d 分钟',
  16341. h: '1 小时',
  16342. hh: '%d 小时',
  16343. d: '1 天',
  16344. dd: '%d 天',
  16345. M: '1 个月',
  16346. MM: '%d 个月',
  16347. y: '1 年',
  16348. yy: '%d 年',
  16349. },
  16350. week: {
  16351. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16352. dow: 1, // Monday is the first day of the week.
  16353. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16354. },
  16355. });
  16356. //! moment.js locale configuration
  16357. hooks.defineLocale('zh-hk', {
  16358. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16359. '_'
  16360. ),
  16361. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16362. '_'
  16363. ),
  16364. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16365. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16366. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16367. longDateFormat: {
  16368. LT: 'HH:mm',
  16369. LTS: 'HH:mm:ss',
  16370. L: 'YYYY/MM/DD',
  16371. LL: 'YYYY年M月D日',
  16372. LLL: 'YYYY年M月D日 HH:mm',
  16373. LLLL: 'YYYY年M月D日dddd HH:mm',
  16374. l: 'YYYY/M/D',
  16375. ll: 'YYYY年M月D日',
  16376. lll: 'YYYY年M月D日 HH:mm',
  16377. llll: 'YYYY年M月D日dddd HH:mm',
  16378. },
  16379. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16380. meridiemHour: function (hour, meridiem) {
  16381. if (hour === 12) {
  16382. hour = 0;
  16383. }
  16384. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16385. return hour;
  16386. } else if (meridiem === '中午') {
  16387. return hour >= 11 ? hour : hour + 12;
  16388. } else if (meridiem === '下午' || meridiem === '晚上') {
  16389. return hour + 12;
  16390. }
  16391. },
  16392. meridiem: function (hour, minute, isLower) {
  16393. var hm = hour * 100 + minute;
  16394. if (hm < 600) {
  16395. return '凌晨';
  16396. } else if (hm < 900) {
  16397. return '早上';
  16398. } else if (hm < 1200) {
  16399. return '上午';
  16400. } else if (hm === 1200) {
  16401. return '中午';
  16402. } else if (hm < 1800) {
  16403. return '下午';
  16404. } else {
  16405. return '晚上';
  16406. }
  16407. },
  16408. calendar: {
  16409. sameDay: '[今天]LT',
  16410. nextDay: '[明天]LT',
  16411. nextWeek: '[下]ddddLT',
  16412. lastDay: '[昨天]LT',
  16413. lastWeek: '[上]ddddLT',
  16414. sameElse: 'L',
  16415. },
  16416. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16417. ordinal: function (number, period) {
  16418. switch (period) {
  16419. case 'd':
  16420. case 'D':
  16421. case 'DDD':
  16422. return number + '日';
  16423. case 'M':
  16424. return number + '月';
  16425. case 'w':
  16426. case 'W':
  16427. return number + '週';
  16428. default:
  16429. return number;
  16430. }
  16431. },
  16432. relativeTime: {
  16433. future: '%s後',
  16434. past: '%s前',
  16435. s: '幾秒',
  16436. ss: '%d 秒',
  16437. m: '1 分鐘',
  16438. mm: '%d 分鐘',
  16439. h: '1 小時',
  16440. hh: '%d 小時',
  16441. d: '1 天',
  16442. dd: '%d 天',
  16443. M: '1 個月',
  16444. MM: '%d 個月',
  16445. y: '1 年',
  16446. yy: '%d 年',
  16447. },
  16448. });
  16449. //! moment.js locale configuration
  16450. hooks.defineLocale('zh-mo', {
  16451. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16452. '_'
  16453. ),
  16454. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16455. '_'
  16456. ),
  16457. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16458. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16459. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16460. longDateFormat: {
  16461. LT: 'HH:mm',
  16462. LTS: 'HH:mm:ss',
  16463. L: 'DD/MM/YYYY',
  16464. LL: 'YYYY年M月D日',
  16465. LLL: 'YYYY年M月D日 HH:mm',
  16466. LLLL: 'YYYY年M月D日dddd HH:mm',
  16467. l: 'D/M/YYYY',
  16468. ll: 'YYYY年M月D日',
  16469. lll: 'YYYY年M月D日 HH:mm',
  16470. llll: 'YYYY年M月D日dddd HH:mm',
  16471. },
  16472. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16473. meridiemHour: function (hour, meridiem) {
  16474. if (hour === 12) {
  16475. hour = 0;
  16476. }
  16477. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16478. return hour;
  16479. } else if (meridiem === '中午') {
  16480. return hour >= 11 ? hour : hour + 12;
  16481. } else if (meridiem === '下午' || meridiem === '晚上') {
  16482. return hour + 12;
  16483. }
  16484. },
  16485. meridiem: function (hour, minute, isLower) {
  16486. var hm = hour * 100 + minute;
  16487. if (hm < 600) {
  16488. return '凌晨';
  16489. } else if (hm < 900) {
  16490. return '早上';
  16491. } else if (hm < 1130) {
  16492. return '上午';
  16493. } else if (hm < 1230) {
  16494. return '中午';
  16495. } else if (hm < 1800) {
  16496. return '下午';
  16497. } else {
  16498. return '晚上';
  16499. }
  16500. },
  16501. calendar: {
  16502. sameDay: '[今天] LT',
  16503. nextDay: '[明天] LT',
  16504. nextWeek: '[下]dddd LT',
  16505. lastDay: '[昨天] LT',
  16506. lastWeek: '[上]dddd LT',
  16507. sameElse: 'L',
  16508. },
  16509. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16510. ordinal: function (number, period) {
  16511. switch (period) {
  16512. case 'd':
  16513. case 'D':
  16514. case 'DDD':
  16515. return number + '日';
  16516. case 'M':
  16517. return number + '月';
  16518. case 'w':
  16519. case 'W':
  16520. return number + '週';
  16521. default:
  16522. return number;
  16523. }
  16524. },
  16525. relativeTime: {
  16526. future: '%s內',
  16527. past: '%s前',
  16528. s: '幾秒',
  16529. ss: '%d 秒',
  16530. m: '1 分鐘',
  16531. mm: '%d 分鐘',
  16532. h: '1 小時',
  16533. hh: '%d 小時',
  16534. d: '1 天',
  16535. dd: '%d 天',
  16536. M: '1 個月',
  16537. MM: '%d 個月',
  16538. y: '1 年',
  16539. yy: '%d 年',
  16540. },
  16541. });
  16542. //! moment.js locale configuration
  16543. hooks.defineLocale('zh-tw', {
  16544. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16545. '_'
  16546. ),
  16547. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16548. '_'
  16549. ),
  16550. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16551. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16552. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16553. longDateFormat: {
  16554. LT: 'HH:mm',
  16555. LTS: 'HH:mm:ss',
  16556. L: 'YYYY/MM/DD',
  16557. LL: 'YYYY年M月D日',
  16558. LLL: 'YYYY年M月D日 HH:mm',
  16559. LLLL: 'YYYY年M月D日dddd HH:mm',
  16560. l: 'YYYY/M/D',
  16561. ll: 'YYYY年M月D日',
  16562. lll: 'YYYY年M月D日 HH:mm',
  16563. llll: 'YYYY年M月D日dddd HH:mm',
  16564. },
  16565. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16566. meridiemHour: function (hour, meridiem) {
  16567. if (hour === 12) {
  16568. hour = 0;
  16569. }
  16570. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16571. return hour;
  16572. } else if (meridiem === '中午') {
  16573. return hour >= 11 ? hour : hour + 12;
  16574. } else if (meridiem === '下午' || meridiem === '晚上') {
  16575. return hour + 12;
  16576. }
  16577. },
  16578. meridiem: function (hour, minute, isLower) {
  16579. var hm = hour * 100 + minute;
  16580. if (hm < 600) {
  16581. return '凌晨';
  16582. } else if (hm < 900) {
  16583. return '早上';
  16584. } else if (hm < 1130) {
  16585. return '上午';
  16586. } else if (hm < 1230) {
  16587. return '中午';
  16588. } else if (hm < 1800) {
  16589. return '下午';
  16590. } else {
  16591. return '晚上';
  16592. }
  16593. },
  16594. calendar: {
  16595. sameDay: '[今天] LT',
  16596. nextDay: '[明天] LT',
  16597. nextWeek: '[下]dddd LT',
  16598. lastDay: '[昨天] LT',
  16599. lastWeek: '[上]dddd LT',
  16600. sameElse: 'L',
  16601. },
  16602. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16603. ordinal: function (number, period) {
  16604. switch (period) {
  16605. case 'd':
  16606. case 'D':
  16607. case 'DDD':
  16608. return number + '日';
  16609. case 'M':
  16610. return number + '月';
  16611. case 'w':
  16612. case 'W':
  16613. return number + '週';
  16614. default:
  16615. return number;
  16616. }
  16617. },
  16618. relativeTime: {
  16619. future: '%s後',
  16620. past: '%s前',
  16621. s: '幾秒',
  16622. ss: '%d 秒',
  16623. m: '1 分鐘',
  16624. mm: '%d 分鐘',
  16625. h: '1 小時',
  16626. hh: '%d 小時',
  16627. d: '1 天',
  16628. dd: '%d 天',
  16629. M: '1 個月',
  16630. MM: '%d 個月',
  16631. y: '1 年',
  16632. yy: '%d 年',
  16633. },
  16634. });
  16635. hooks.locale('en');
  16636. return hooks;
  16637. })));