moment.js 483 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802
  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 () {
  6. 'use strict';
  7. var hookCallback;
  8. function hooks() {
  9. return hookCallback.apply(null, arguments);
  10. }
  11. // This is done to register the method called with moment()
  12. // without creating circular dependencies.
  13. function setHookCallback(callback) {
  14. hookCallback = callback;
  15. }
  16. function isArray(input) {
  17. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  18. }
  19. function isObject(input) {
  20. // IE8 will treat undefined and null as object if it wasn't for
  21. // input != null
  22. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  23. }
  24. function isObjectEmpty(obj) {
  25. var k;
  26. for (k in obj) {
  27. // even if its not own property I'd still call it non-empty
  28. return false;
  29. }
  30. return true;
  31. }
  32. function isUndefined(input) {
  33. return input === void 0;
  34. }
  35. function isNumber(input) {
  36. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  37. }
  38. function isDate(input) {
  39. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  40. }
  41. function map(arr, fn) {
  42. var res = [], i;
  43. for (i = 0; i < arr.length; ++i) {
  44. res.push(fn(arr[i], i));
  45. }
  46. return res;
  47. }
  48. function hasOwnProp(a, b) {
  49. return Object.prototype.hasOwnProperty.call(a, b);
  50. }
  51. function extend(a, b) {
  52. for (var i in b) {
  53. if (hasOwnProp(b, i)) {
  54. a[i] = b[i];
  55. }
  56. }
  57. if (hasOwnProp(b, 'toString')) {
  58. a.toString = b.toString;
  59. }
  60. if (hasOwnProp(b, 'valueOf')) {
  61. a.valueOf = b.valueOf;
  62. }
  63. return a;
  64. }
  65. function createUTC(input, format, locale, strict) {
  66. return createLocalOrUTC(input, format, locale, strict, true).utc();
  67. }
  68. function defaultParsingFlags() {
  69. // We need to deep clone this object.
  70. return {
  71. empty: false,
  72. unusedTokens: [],
  73. unusedInput: [],
  74. overflow: -2,
  75. charsLeftOver: 0,
  76. nullInput: false,
  77. invalidMonth: null,
  78. invalidFormat: false,
  79. userInvalidated: false,
  80. iso: false,
  81. parsedDateParts: [],
  82. meridiem: null,
  83. rfc2822: false,
  84. weekdayMismatch: false
  85. };
  86. }
  87. function getParsingFlags(m) {
  88. if (m._pf == null) {
  89. m._pf = defaultParsingFlags();
  90. }
  91. return m._pf;
  92. }
  93. var some;
  94. if (Array.prototype.some) {
  95. some = Array.prototype.some;
  96. } else {
  97. some = function (fun) {
  98. var t = Object(this);
  99. var len = t.length >>> 0;
  100. for (var i = 0; i < len; i++) {
  101. if (i in t && fun.call(this, t[i], i, t)) {
  102. return true;
  103. }
  104. }
  105. return false;
  106. };
  107. }
  108. var some$1 = some;
  109. function isValid(m) {
  110. if (m._isValid == null) {
  111. var flags = getParsingFlags(m);
  112. var parsedParts = some$1.call(flags.parsedDateParts, function (i) {
  113. return i != null;
  114. });
  115. var isNowValid = !isNaN(m._d.getTime()) &&
  116. flags.overflow < 0 &&
  117. !flags.empty &&
  118. !flags.invalidMonth &&
  119. !flags.invalidWeekday &&
  120. !flags.nullInput &&
  121. !flags.invalidFormat &&
  122. !flags.userInvalidated &&
  123. (!flags.meridiem || (flags.meridiem && parsedParts));
  124. if (m._strict) {
  125. isNowValid = isNowValid &&
  126. flags.charsLeftOver === 0 &&
  127. flags.unusedTokens.length === 0 &&
  128. flags.bigHour === undefined;
  129. }
  130. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  131. m._isValid = isNowValid;
  132. }
  133. else {
  134. return isNowValid;
  135. }
  136. }
  137. return m._isValid;
  138. }
  139. function createInvalid(flags) {
  140. var m = createUTC(NaN);
  141. if (flags != null) {
  142. extend(getParsingFlags(m), flags);
  143. }
  144. else {
  145. getParsingFlags(m).userInvalidated = true;
  146. }
  147. return m;
  148. }
  149. // Plugins that add properties should also add the key here (null value),
  150. // so we can properly clone ourselves.
  151. var momentProperties = hooks.momentProperties = [];
  152. function copyConfig(to, from) {
  153. var i, prop, val;
  154. if (!isUndefined(from._isAMomentObject)) {
  155. to._isAMomentObject = from._isAMomentObject;
  156. }
  157. if (!isUndefined(from._i)) {
  158. to._i = from._i;
  159. }
  160. if (!isUndefined(from._f)) {
  161. to._f = from._f;
  162. }
  163. if (!isUndefined(from._l)) {
  164. to._l = from._l;
  165. }
  166. if (!isUndefined(from._strict)) {
  167. to._strict = from._strict;
  168. }
  169. if (!isUndefined(from._tzm)) {
  170. to._tzm = from._tzm;
  171. }
  172. if (!isUndefined(from._isUTC)) {
  173. to._isUTC = from._isUTC;
  174. }
  175. if (!isUndefined(from._offset)) {
  176. to._offset = from._offset;
  177. }
  178. if (!isUndefined(from._pf)) {
  179. to._pf = getParsingFlags(from);
  180. }
  181. if (!isUndefined(from._locale)) {
  182. to._locale = from._locale;
  183. }
  184. if (momentProperties.length > 0) {
  185. for (i = 0; i < momentProperties.length; i++) {
  186. prop = momentProperties[i];
  187. val = from[prop];
  188. if (!isUndefined(val)) {
  189. to[prop] = val;
  190. }
  191. }
  192. }
  193. return to;
  194. }
  195. var updateInProgress = false;
  196. // Moment prototype object
  197. function Moment(config) {
  198. copyConfig(this, config);
  199. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  200. if (!this.isValid()) {
  201. this._d = new Date(NaN);
  202. }
  203. // Prevent infinite loop in case updateOffset creates new moment
  204. // objects.
  205. if (updateInProgress === false) {
  206. updateInProgress = true;
  207. hooks.updateOffset(this);
  208. updateInProgress = false;
  209. }
  210. }
  211. function isMoment(obj) {
  212. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  213. }
  214. function absFloor(number) {
  215. if (number < 0) {
  216. // -0 -> 0
  217. return Math.ceil(number) || 0;
  218. } else {
  219. return Math.floor(number);
  220. }
  221. }
  222. function toInt(argumentForCoercion) {
  223. var coercedNumber = +argumentForCoercion,
  224. value = 0;
  225. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  226. value = absFloor(coercedNumber);
  227. }
  228. return value;
  229. }
  230. // compare two arrays, return the number of differences
  231. function compareArrays(array1, array2, dontConvert) {
  232. var len = Math.min(array1.length, array2.length),
  233. lengthDiff = Math.abs(array1.length - array2.length),
  234. diffs = 0,
  235. i;
  236. for (i = 0; i < len; i++) {
  237. if ((dontConvert && array1[i] !== array2[i]) ||
  238. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  239. diffs++;
  240. }
  241. }
  242. return diffs + lengthDiff;
  243. }
  244. function warn(msg) {
  245. if (hooks.suppressDeprecationWarnings === false &&
  246. (typeof console !== 'undefined') && console.warn) {
  247. console.warn('Deprecation warning: ' + msg);
  248. }
  249. }
  250. function deprecate(msg, fn) {
  251. var firstTime = true;
  252. return extend(function () {
  253. if (hooks.deprecationHandler != null) {
  254. hooks.deprecationHandler(null, msg);
  255. }
  256. if (firstTime) {
  257. var args = [];
  258. var arg;
  259. for (var i = 0; i < arguments.length; i++) {
  260. arg = '';
  261. if (typeof arguments[i] === 'object') {
  262. arg += '\n[' + i + '] ';
  263. for (var key in arguments[0]) {
  264. arg += key + ': ' + arguments[0][key] + ', ';
  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(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
  273. firstTime = false;
  274. }
  275. return fn.apply(this, arguments);
  276. }, fn);
  277. }
  278. var deprecations = {};
  279. function deprecateSimple(name, msg) {
  280. if (hooks.deprecationHandler != null) {
  281. hooks.deprecationHandler(name, msg);
  282. }
  283. if (!deprecations[name]) {
  284. warn(msg);
  285. deprecations[name] = true;
  286. }
  287. }
  288. hooks.suppressDeprecationWarnings = false;
  289. hooks.deprecationHandler = null;
  290. function isFunction(input) {
  291. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  292. }
  293. function set(config) {
  294. var prop, i;
  295. for (i in config) {
  296. prop = config[i];
  297. if (isFunction(prop)) {
  298. this[i] = prop;
  299. } else {
  300. this['_' + i] = prop;
  301. }
  302. }
  303. this._config = config;
  304. // Lenient ordinal parsing accepts just a number in addition to
  305. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  306. // TODO: Remove "ordinalParse" fallback in next major release.
  307. this._dayOfMonthOrdinalParseLenient = new RegExp(
  308. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  309. '|' + (/\d{1,2}/).source);
  310. }
  311. function mergeConfigs(parentConfig, childConfig) {
  312. var res = extend({}, parentConfig), prop;
  313. for (prop in childConfig) {
  314. if (hasOwnProp(childConfig, prop)) {
  315. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  316. res[prop] = {};
  317. extend(res[prop], parentConfig[prop]);
  318. extend(res[prop], childConfig[prop]);
  319. } else if (childConfig[prop] != null) {
  320. res[prop] = childConfig[prop];
  321. } else {
  322. delete res[prop];
  323. }
  324. }
  325. }
  326. for (prop in parentConfig) {
  327. if (hasOwnProp(parentConfig, prop) &&
  328. !hasOwnProp(childConfig, prop) &&
  329. isObject(parentConfig[prop])) {
  330. // make sure changes to properties don't modify parent config
  331. res[prop] = extend({}, res[prop]);
  332. }
  333. }
  334. return res;
  335. }
  336. function Locale(config) {
  337. if (config != null) {
  338. this.set(config);
  339. }
  340. }
  341. var keys;
  342. if (Object.keys) {
  343. keys = Object.keys;
  344. } else {
  345. keys = function (obj) {
  346. var i, res = [];
  347. for (i in obj) {
  348. if (hasOwnProp(obj, i)) {
  349. res.push(i);
  350. }
  351. }
  352. return res;
  353. };
  354. }
  355. var keys$1 = keys;
  356. var defaultCalendar = {
  357. sameDay: '[Today at] LT',
  358. nextDay: '[Tomorrow at] LT',
  359. nextWeek: 'dddd [at] LT',
  360. lastDay: '[Yesterday at] LT',
  361. lastWeek: '[Last] dddd [at] LT',
  362. sameElse: 'L'
  363. };
  364. function calendar(key, mom, now) {
  365. var output = this._calendar[key] || this._calendar['sameElse'];
  366. return isFunction(output) ? output.call(mom, now) : output;
  367. }
  368. var defaultLongDateFormat = {
  369. LTS: 'h:mm:ss A',
  370. LT: 'h:mm A',
  371. L: 'MM/DD/YYYY',
  372. LL: 'MMMM D, YYYY',
  373. LLL: 'MMMM D, YYYY h:mm A',
  374. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  375. };
  376. function longDateFormat(key) {
  377. var format = this._longDateFormat[key],
  378. formatUpper = this._longDateFormat[key.toUpperCase()];
  379. if (format || !formatUpper) {
  380. return format;
  381. }
  382. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  383. return val.slice(1);
  384. });
  385. return this._longDateFormat[key];
  386. }
  387. var defaultInvalidDate = 'Invalid date';
  388. function invalidDate() {
  389. return this._invalidDate;
  390. }
  391. var defaultOrdinal = '%d';
  392. var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  393. function ordinal(number) {
  394. return this._ordinal.replace('%d', number);
  395. }
  396. var defaultRelativeTime = {
  397. future: 'in %s',
  398. past: '%s ago',
  399. s: 'a few seconds',
  400. ss: '%d seconds',
  401. m: 'a minute',
  402. mm: '%d minutes',
  403. h: 'an hour',
  404. hh: '%d hours',
  405. d: 'a day',
  406. dd: '%d days',
  407. M: 'a month',
  408. MM: '%d months',
  409. y: 'a year',
  410. yy: '%d years'
  411. };
  412. function relativeTime(number, withoutSuffix, string, isFuture) {
  413. var output = this._relativeTime[string];
  414. return (isFunction(output)) ?
  415. output(number, withoutSuffix, string, isFuture) :
  416. output.replace(/%d/i, number);
  417. }
  418. function pastFuture(diff, output) {
  419. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  420. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  421. }
  422. var aliases = {};
  423. function addUnitAlias(unit, shorthand) {
  424. var lowerCase = unit.toLowerCase();
  425. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  426. }
  427. function normalizeUnits(units) {
  428. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  429. }
  430. function normalizeObjectUnits(inputObject) {
  431. var normalizedInput = {},
  432. normalizedProp,
  433. prop;
  434. for (prop in inputObject) {
  435. if (hasOwnProp(inputObject, prop)) {
  436. normalizedProp = normalizeUnits(prop);
  437. if (normalizedProp) {
  438. normalizedInput[normalizedProp] = inputObject[prop];
  439. }
  440. }
  441. }
  442. return normalizedInput;
  443. }
  444. var priorities = {};
  445. function addUnitPriority(unit, priority) {
  446. priorities[unit] = priority;
  447. }
  448. function getPrioritizedUnits(unitsObj) {
  449. var units = [];
  450. for (var u in unitsObj) {
  451. units.push({unit: u, priority: priorities[u]});
  452. }
  453. units.sort(function (a, b) {
  454. return a.priority - b.priority;
  455. });
  456. return units;
  457. }
  458. function makeGetSet(unit, keepTime) {
  459. return function (value) {
  460. if (value != null) {
  461. set$1(this, unit, value);
  462. hooks.updateOffset(this, keepTime);
  463. return this;
  464. } else {
  465. return get(this, unit);
  466. }
  467. };
  468. }
  469. function get(mom, unit) {
  470. return mom.isValid() ?
  471. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  472. }
  473. function set$1(mom, unit, value) {
  474. if (mom.isValid()) {
  475. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  476. }
  477. }
  478. // MOMENTS
  479. function stringGet(units) {
  480. units = normalizeUnits(units);
  481. if (isFunction(this[units])) {
  482. return this[units]();
  483. }
  484. return this;
  485. }
  486. function stringSet(units, value) {
  487. if (typeof units === 'object') {
  488. units = normalizeObjectUnits(units);
  489. var prioritized = getPrioritizedUnits(units);
  490. for (var i = 0; i < prioritized.length; i++) {
  491. this[prioritized[i].unit](units[prioritized[i].unit]);
  492. }
  493. } else {
  494. units = normalizeUnits(units);
  495. if (isFunction(this[units])) {
  496. return this[units](value);
  497. }
  498. }
  499. return this;
  500. }
  501. function zeroFill(number, targetLength, forceSign) {
  502. var absNumber = '' + Math.abs(number),
  503. zerosToFill = targetLength - absNumber.length,
  504. sign = number >= 0;
  505. return (sign ? (forceSign ? '+' : '') : '-') +
  506. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  507. }
  508. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
  509. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  510. var formatFunctions = {};
  511. var formatTokenFunctions = {};
  512. // token: 'M'
  513. // padded: ['MM', 2]
  514. // ordinal: 'Mo'
  515. // callback: function () { this.month() + 1 }
  516. function addFormatToken(token, padded, ordinal, callback) {
  517. var func = callback;
  518. if (typeof callback === 'string') {
  519. func = function () {
  520. return this[callback]();
  521. };
  522. }
  523. if (token) {
  524. formatTokenFunctions[token] = func;
  525. }
  526. if (padded) {
  527. formatTokenFunctions[padded[0]] = function () {
  528. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  529. };
  530. }
  531. if (ordinal) {
  532. formatTokenFunctions[ordinal] = function () {
  533. return this.localeData().ordinal(func.apply(this, arguments), token);
  534. };
  535. }
  536. }
  537. function removeFormattingTokens(input) {
  538. if (input.match(/\[[\s\S]/)) {
  539. return input.replace(/^\[|\]$/g, '');
  540. }
  541. return input.replace(/\\/g, '');
  542. }
  543. function makeFormatFunction(format) {
  544. var array = format.match(formattingTokens), i, length;
  545. for (i = 0, length = array.length; i < length; i++) {
  546. if (formatTokenFunctions[array[i]]) {
  547. array[i] = formatTokenFunctions[array[i]];
  548. } else {
  549. array[i] = removeFormattingTokens(array[i]);
  550. }
  551. }
  552. return function (mom) {
  553. var output = '', i;
  554. for (i = 0; i < length; i++) {
  555. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  556. }
  557. return output;
  558. };
  559. }
  560. // format date using native date object
  561. function formatMoment(m, format) {
  562. if (!m.isValid()) {
  563. return m.localeData().invalidDate();
  564. }
  565. format = expandFormat(format, m.localeData());
  566. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  567. return formatFunctions[format](m);
  568. }
  569. function expandFormat(format, locale) {
  570. var i = 5;
  571. function replaceLongDateFormatTokens(input) {
  572. return locale.longDateFormat(input) || input;
  573. }
  574. localFormattingTokens.lastIndex = 0;
  575. while (i >= 0 && localFormattingTokens.test(format)) {
  576. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  577. localFormattingTokens.lastIndex = 0;
  578. i -= 1;
  579. }
  580. return format;
  581. }
  582. var match1 = /\d/; // 0 - 9
  583. var match2 = /\d\d/; // 00 - 99
  584. var match3 = /\d{3}/; // 000 - 999
  585. var match4 = /\d{4}/; // 0000 - 9999
  586. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  587. var match1to2 = /\d\d?/; // 0 - 99
  588. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  589. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  590. var match1to3 = /\d{1,3}/; // 0 - 999
  591. var match1to4 = /\d{1,4}/; // 0 - 9999
  592. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  593. var matchUnsigned = /\d+/; // 0 - inf
  594. var matchSigned = /[+-]?\d+/; // -inf - inf
  595. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  596. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  597. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  598. // any word (or two) characters or numbers including two/three word month in arabic.
  599. // includes scottish gaelic two word and hyphenated months
  600. var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
  601. var regexes = {};
  602. function addRegexToken(token, regex, strictRegex) {
  603. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  604. return (isStrict && strictRegex) ? strictRegex : regex;
  605. };
  606. }
  607. function getParseRegexForToken(token, config) {
  608. if (!hasOwnProp(regexes, token)) {
  609. return new RegExp(unescapeFormat(token));
  610. }
  611. return regexes[token](config._strict, config._locale);
  612. }
  613. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  614. function unescapeFormat(s) {
  615. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  616. return p1 || p2 || p3 || p4;
  617. }));
  618. }
  619. function regexEscape(s) {
  620. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  621. }
  622. var tokens = {};
  623. function addParseToken(token, callback) {
  624. var i, func = callback;
  625. if (typeof token === 'string') {
  626. token = [token];
  627. }
  628. if (isNumber(callback)) {
  629. func = function (input, array) {
  630. array[callback] = toInt(input);
  631. };
  632. }
  633. for (i = 0; i < token.length; i++) {
  634. tokens[token[i]] = func;
  635. }
  636. }
  637. function addWeekParseToken(token, callback) {
  638. addParseToken(token, function (input, array, config, token) {
  639. config._w = config._w || {};
  640. callback(input, config._w, config, token);
  641. });
  642. }
  643. function addTimeToArrayFromToken(token, input, config) {
  644. if (input != null && hasOwnProp(tokens, token)) {
  645. tokens[token](input, config._a, config, token);
  646. }
  647. }
  648. var YEAR = 0;
  649. var MONTH = 1;
  650. var DATE = 2;
  651. var HOUR = 3;
  652. var MINUTE = 4;
  653. var SECOND = 5;
  654. var MILLISECOND = 6;
  655. var WEEK = 7;
  656. var WEEKDAY = 8;
  657. var indexOf;
  658. if (Array.prototype.indexOf) {
  659. indexOf = Array.prototype.indexOf;
  660. } else {
  661. indexOf = function (o) {
  662. // I know
  663. var i;
  664. for (i = 0; i < this.length; ++i) {
  665. if (this[i] === o) {
  666. return i;
  667. }
  668. }
  669. return -1;
  670. };
  671. }
  672. var indexOf$1 = indexOf;
  673. function daysInMonth(year, month) {
  674. return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
  675. }
  676. // FORMATTING
  677. addFormatToken('M', ['MM', 2], 'Mo', function () {
  678. return this.month() + 1;
  679. });
  680. addFormatToken('MMM', 0, 0, function (format) {
  681. return this.localeData().monthsShort(this, format);
  682. });
  683. addFormatToken('MMMM', 0, 0, function (format) {
  684. return this.localeData().months(this, format);
  685. });
  686. // ALIASES
  687. addUnitAlias('month', 'M');
  688. // PRIORITY
  689. addUnitPriority('month', 8);
  690. // PARSING
  691. addRegexToken('M', match1to2);
  692. addRegexToken('MM', match1to2, match2);
  693. addRegexToken('MMM', function (isStrict, locale) {
  694. return locale.monthsShortRegex(isStrict);
  695. });
  696. addRegexToken('MMMM', function (isStrict, locale) {
  697. return locale.monthsRegex(isStrict);
  698. });
  699. addParseToken(['M', 'MM'], function (input, array) {
  700. array[MONTH] = toInt(input) - 1;
  701. });
  702. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  703. var month = config._locale.monthsParse(input, token, config._strict);
  704. // if we didn't find a month name, mark the date as invalid.
  705. if (month != null) {
  706. array[MONTH] = month;
  707. } else {
  708. getParsingFlags(config).invalidMonth = input;
  709. }
  710. });
  711. // LOCALES
  712. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
  713. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  714. function localeMonths(m, format) {
  715. if (!m) {
  716. return isArray(this._months) ? this._months :
  717. this._months['standalone'];
  718. }
  719. return isArray(this._months) ? this._months[m.month()] :
  720. this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  721. }
  722. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  723. function localeMonthsShort(m, format) {
  724. if (!m) {
  725. return isArray(this._monthsShort) ? this._monthsShort :
  726. this._monthsShort['standalone'];
  727. }
  728. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  729. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  730. }
  731. function handleStrictParse(monthName, format, strict) {
  732. var i, ii, mom, llc = monthName.toLocaleLowerCase();
  733. if (!this._monthsParse) {
  734. // this is not used
  735. this._monthsParse = [];
  736. this._longMonthsParse = [];
  737. this._shortMonthsParse = [];
  738. for (i = 0; i < 12; ++i) {
  739. mom = createUTC([2000, i]);
  740. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  741. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  742. }
  743. }
  744. if (strict) {
  745. if (format === 'MMM') {
  746. ii = indexOf$1.call(this._shortMonthsParse, llc);
  747. return ii !== -1 ? ii : null;
  748. } else {
  749. ii = indexOf$1.call(this._longMonthsParse, llc);
  750. return ii !== -1 ? ii : null;
  751. }
  752. } else {
  753. if (format === 'MMM') {
  754. ii = indexOf$1.call(this._shortMonthsParse, llc);
  755. if (ii !== -1) {
  756. return ii;
  757. }
  758. ii = indexOf$1.call(this._longMonthsParse, llc);
  759. return ii !== -1 ? ii : null;
  760. } else {
  761. ii = indexOf$1.call(this._longMonthsParse, llc);
  762. if (ii !== -1) {
  763. return ii;
  764. }
  765. ii = indexOf$1.call(this._shortMonthsParse, llc);
  766. return ii !== -1 ? ii : null;
  767. }
  768. }
  769. }
  770. function localeMonthsParse(monthName, format, strict) {
  771. var i, mom, regex;
  772. if (this._monthsParseExact) {
  773. return handleStrictParse.call(this, monthName, format, strict);
  774. }
  775. if (!this._monthsParse) {
  776. this._monthsParse = [];
  777. this._longMonthsParse = [];
  778. this._shortMonthsParse = [];
  779. }
  780. // TODO: add sorting
  781. // Sorting makes sure if one month (or abbr) is a prefix of another
  782. // see sorting in computeMonthsParse
  783. for (i = 0; i < 12; i++) {
  784. // make the regex if we don't have it already
  785. mom = createUTC([2000, i]);
  786. if (strict && !this._longMonthsParse[i]) {
  787. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  788. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  789. }
  790. if (!strict && !this._monthsParse[i]) {
  791. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  792. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  793. }
  794. // test the regex
  795. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  796. return i;
  797. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  798. return i;
  799. } else if (!strict && this._monthsParse[i].test(monthName)) {
  800. return i;
  801. }
  802. }
  803. }
  804. // MOMENTS
  805. function setMonth(mom, value) {
  806. var dayOfMonth;
  807. if (!mom.isValid()) {
  808. // No op
  809. return mom;
  810. }
  811. if (typeof value === 'string') {
  812. if (/^\d+$/.test(value)) {
  813. value = toInt(value);
  814. } else {
  815. value = mom.localeData().monthsParse(value);
  816. // TODO: Another silent failure?
  817. if (!isNumber(value)) {
  818. return mom;
  819. }
  820. }
  821. }
  822. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  823. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  824. return mom;
  825. }
  826. function getSetMonth(value) {
  827. if (value != null) {
  828. setMonth(this, value);
  829. hooks.updateOffset(this, true);
  830. return this;
  831. } else {
  832. return get(this, 'Month');
  833. }
  834. }
  835. function getDaysInMonth() {
  836. return daysInMonth(this.year(), this.month());
  837. }
  838. var defaultMonthsShortRegex = matchWord;
  839. function monthsShortRegex(isStrict) {
  840. if (this._monthsParseExact) {
  841. if (!hasOwnProp(this, '_monthsRegex')) {
  842. computeMonthsParse.call(this);
  843. }
  844. if (isStrict) {
  845. return this._monthsShortStrictRegex;
  846. } else {
  847. return this._monthsShortRegex;
  848. }
  849. } else {
  850. if (!hasOwnProp(this, '_monthsShortRegex')) {
  851. this._monthsShortRegex = defaultMonthsShortRegex;
  852. }
  853. return this._monthsShortStrictRegex && isStrict ?
  854. this._monthsShortStrictRegex : this._monthsShortRegex;
  855. }
  856. }
  857. var defaultMonthsRegex = matchWord;
  858. function monthsRegex(isStrict) {
  859. if (this._monthsParseExact) {
  860. if (!hasOwnProp(this, '_monthsRegex')) {
  861. computeMonthsParse.call(this);
  862. }
  863. if (isStrict) {
  864. return this._monthsStrictRegex;
  865. } else {
  866. return this._monthsRegex;
  867. }
  868. } else {
  869. if (!hasOwnProp(this, '_monthsRegex')) {
  870. this._monthsRegex = defaultMonthsRegex;
  871. }
  872. return this._monthsStrictRegex && isStrict ?
  873. this._monthsStrictRegex : this._monthsRegex;
  874. }
  875. }
  876. function computeMonthsParse() {
  877. function cmpLenRev(a, b) {
  878. return b.length - a.length;
  879. }
  880. var shortPieces = [], longPieces = [], mixedPieces = [],
  881. i, mom;
  882. for (i = 0; i < 12; i++) {
  883. // make the regex if we don't have it already
  884. mom = createUTC([2000, i]);
  885. shortPieces.push(this.monthsShort(mom, ''));
  886. longPieces.push(this.months(mom, ''));
  887. mixedPieces.push(this.months(mom, ''));
  888. mixedPieces.push(this.monthsShort(mom, ''));
  889. }
  890. // Sorting makes sure if one month (or abbr) is a prefix of another it
  891. // will match the longer piece.
  892. shortPieces.sort(cmpLenRev);
  893. longPieces.sort(cmpLenRev);
  894. mixedPieces.sort(cmpLenRev);
  895. for (i = 0; i < 12; i++) {
  896. shortPieces[i] = regexEscape(shortPieces[i]);
  897. longPieces[i] = regexEscape(longPieces[i]);
  898. }
  899. for (i = 0; i < 24; i++) {
  900. mixedPieces[i] = regexEscape(mixedPieces[i]);
  901. }
  902. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  903. this._monthsShortRegex = this._monthsRegex;
  904. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  905. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  906. }
  907. // FORMATTING
  908. addFormatToken('Y', 0, 0, function () {
  909. var y = this.year();
  910. return y <= 9999 ? '' + y : '+' + y;
  911. });
  912. addFormatToken(0, ['YY', 2], 0, function () {
  913. return this.year() % 100;
  914. });
  915. addFormatToken(0, ['YYYY', 4], 0, 'year');
  916. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  917. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  918. // ALIASES
  919. addUnitAlias('year', 'y');
  920. // PRIORITIES
  921. addUnitPriority('year', 1);
  922. // PARSING
  923. addRegexToken('Y', matchSigned);
  924. addRegexToken('YY', match1to2, match2);
  925. addRegexToken('YYYY', match1to4, match4);
  926. addRegexToken('YYYYY', match1to6, match6);
  927. addRegexToken('YYYYYY', match1to6, match6);
  928. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  929. addParseToken('YYYY', function (input, array) {
  930. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  931. });
  932. addParseToken('YY', function (input, array) {
  933. array[YEAR] = hooks.parseTwoDigitYear(input);
  934. });
  935. addParseToken('Y', function (input, array) {
  936. array[YEAR] = parseInt(input, 10);
  937. });
  938. // HELPERS
  939. function daysInYear(year) {
  940. return isLeapYear(year) ? 366 : 365;
  941. }
  942. function isLeapYear(year) {
  943. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  944. }
  945. // HOOKS
  946. hooks.parseTwoDigitYear = function (input) {
  947. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  948. };
  949. // MOMENTS
  950. var getSetYear = makeGetSet('FullYear', true);
  951. function getIsLeapYear() {
  952. return isLeapYear(this.year());
  953. }
  954. function createDate(y, m, d, h, M, s, ms) {
  955. // can't just apply() to create a date:
  956. // https://stackoverflow.com/q/181348
  957. var date = new Date(y, m, d, h, M, s, ms);
  958. // the date constructor remaps years 0-99 to 1900-1999
  959. if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
  960. date.setFullYear(y);
  961. }
  962. return date;
  963. }
  964. function createUTCDate(y) {
  965. var date = new Date(Date.UTC.apply(null, arguments));
  966. // the Date.UTC function remaps years 0-99 to 1900-1999
  967. if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
  968. date.setUTCFullYear(y);
  969. }
  970. return date;
  971. }
  972. // start-of-first-week - start-of-year
  973. function firstWeekOffset(year, dow, doy) {
  974. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  975. fwd = 7 + dow - doy,
  976. // first-week day local weekday -- which local weekday is fwd
  977. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  978. return -fwdlw + fwd - 1;
  979. }
  980. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  981. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  982. var localWeekday = (7 + weekday - dow) % 7,
  983. weekOffset = firstWeekOffset(year, dow, doy),
  984. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  985. resYear, resDayOfYear;
  986. if (dayOfYear <= 0) {
  987. resYear = year - 1;
  988. resDayOfYear = daysInYear(resYear) + dayOfYear;
  989. } else if (dayOfYear > daysInYear(year)) {
  990. resYear = year + 1;
  991. resDayOfYear = dayOfYear - daysInYear(year);
  992. } else {
  993. resYear = year;
  994. resDayOfYear = dayOfYear;
  995. }
  996. return {
  997. year: resYear,
  998. dayOfYear: resDayOfYear
  999. };
  1000. }
  1001. function weekOfYear(mom, dow, doy) {
  1002. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1003. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1004. resWeek, resYear;
  1005. if (week < 1) {
  1006. resYear = mom.year() - 1;
  1007. resWeek = week + weeksInYear(resYear, dow, doy);
  1008. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1009. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1010. resYear = mom.year() + 1;
  1011. } else {
  1012. resYear = mom.year();
  1013. resWeek = week;
  1014. }
  1015. return {
  1016. week: resWeek,
  1017. year: resYear
  1018. };
  1019. }
  1020. function weeksInYear(year, dow, doy) {
  1021. var weekOffset = firstWeekOffset(year, dow, doy),
  1022. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1023. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1024. }
  1025. // FORMATTING
  1026. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1027. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1028. // ALIASES
  1029. addUnitAlias('week', 'w');
  1030. addUnitAlias('isoWeek', 'W');
  1031. // PRIORITIES
  1032. addUnitPriority('week', 5);
  1033. addUnitPriority('isoWeek', 5);
  1034. // PARSING
  1035. addRegexToken('w', match1to2);
  1036. addRegexToken('ww', match1to2, match2);
  1037. addRegexToken('W', match1to2);
  1038. addRegexToken('WW', match1to2, match2);
  1039. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  1040. week[token.substr(0, 1)] = toInt(input);
  1041. });
  1042. // HELPERS
  1043. // LOCALES
  1044. function localeWeek(mom) {
  1045. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1046. }
  1047. var defaultLocaleWeek = {
  1048. dow: 0, // Sunday is the first day of the week.
  1049. doy: 6 // The week that contains Jan 1st is the first week of the year.
  1050. };
  1051. function localeFirstDayOfWeek() {
  1052. return this._week.dow;
  1053. }
  1054. function localeFirstDayOfYear() {
  1055. return this._week.doy;
  1056. }
  1057. // MOMENTS
  1058. function getSetWeek(input) {
  1059. var week = this.localeData().week(this);
  1060. return input == null ? week : this.add((input - week) * 7, 'd');
  1061. }
  1062. function getSetISOWeek(input) {
  1063. var week = weekOfYear(this, 1, 4).week;
  1064. return input == null ? week : this.add((input - week) * 7, 'd');
  1065. }
  1066. // FORMATTING
  1067. addFormatToken('d', 0, 'do', 'day');
  1068. addFormatToken('dd', 0, 0, function (format) {
  1069. return this.localeData().weekdaysMin(this, format);
  1070. });
  1071. addFormatToken('ddd', 0, 0, function (format) {
  1072. return this.localeData().weekdaysShort(this, format);
  1073. });
  1074. addFormatToken('dddd', 0, 0, function (format) {
  1075. return this.localeData().weekdays(this, format);
  1076. });
  1077. addFormatToken('e', 0, 0, 'weekday');
  1078. addFormatToken('E', 0, 0, 'isoWeekday');
  1079. // ALIASES
  1080. addUnitAlias('day', 'd');
  1081. addUnitAlias('weekday', 'e');
  1082. addUnitAlias('isoWeekday', 'E');
  1083. // PRIORITY
  1084. addUnitPriority('day', 11);
  1085. addUnitPriority('weekday', 11);
  1086. addUnitPriority('isoWeekday', 11);
  1087. // PARSING
  1088. addRegexToken('d', match1to2);
  1089. addRegexToken('e', match1to2);
  1090. addRegexToken('E', match1to2);
  1091. addRegexToken('dd', function (isStrict, locale) {
  1092. return locale.weekdaysMinRegex(isStrict);
  1093. });
  1094. addRegexToken('ddd', function (isStrict, locale) {
  1095. return locale.weekdaysShortRegex(isStrict);
  1096. });
  1097. addRegexToken('dddd', function (isStrict, locale) {
  1098. return locale.weekdaysRegex(isStrict);
  1099. });
  1100. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1101. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1102. // if we didn't get a weekday name, mark the date as invalid
  1103. if (weekday != null) {
  1104. week.d = weekday;
  1105. } else {
  1106. getParsingFlags(config).invalidWeekday = input;
  1107. }
  1108. });
  1109. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1110. week[token] = toInt(input);
  1111. });
  1112. // HELPERS
  1113. function parseWeekday(input, locale) {
  1114. if (typeof input !== 'string') {
  1115. return input;
  1116. }
  1117. if (!isNaN(input)) {
  1118. return parseInt(input, 10);
  1119. }
  1120. input = locale.weekdaysParse(input);
  1121. if (typeof input === 'number') {
  1122. return input;
  1123. }
  1124. return null;
  1125. }
  1126. function parseIsoWeekday(input, locale) {
  1127. if (typeof input === 'string') {
  1128. return locale.weekdaysParse(input) % 7 || 7;
  1129. }
  1130. return isNaN(input) ? null : input;
  1131. }
  1132. // LOCALES
  1133. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  1134. function localeWeekdays(m, format) {
  1135. if (!m) {
  1136. return isArray(this._weekdays) ? this._weekdays :
  1137. this._weekdays['standalone'];
  1138. }
  1139. return isArray(this._weekdays) ? this._weekdays[m.day()] :
  1140. this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
  1141. }
  1142. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  1143. function localeWeekdaysShort(m) {
  1144. return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  1145. }
  1146. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  1147. function localeWeekdaysMin(m) {
  1148. return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  1149. }
  1150. function handleStrictParse$1(weekdayName, format, strict) {
  1151. var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
  1152. if (!this._weekdaysParse) {
  1153. this._weekdaysParse = [];
  1154. this._shortWeekdaysParse = [];
  1155. this._minWeekdaysParse = [];
  1156. for (i = 0; i < 7; ++i) {
  1157. mom = createUTC([2000, 1]).day(i);
  1158. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  1159. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  1160. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1161. }
  1162. }
  1163. if (strict) {
  1164. if (format === 'dddd') {
  1165. ii = indexOf$1.call(this._weekdaysParse, llc);
  1166. return ii !== -1 ? ii : null;
  1167. } else if (format === 'ddd') {
  1168. ii = indexOf$1.call(this._shortWeekdaysParse, llc);
  1169. return ii !== -1 ? ii : null;
  1170. } else {
  1171. ii = indexOf$1.call(this._minWeekdaysParse, llc);
  1172. return ii !== -1 ? ii : null;
  1173. }
  1174. } else {
  1175. if (format === 'dddd') {
  1176. ii = indexOf$1.call(this._weekdaysParse, llc);
  1177. if (ii !== -1) {
  1178. return ii;
  1179. }
  1180. ii = indexOf$1.call(this._shortWeekdaysParse, llc);
  1181. if (ii !== -1) {
  1182. return ii;
  1183. }
  1184. ii = indexOf$1.call(this._minWeekdaysParse, llc);
  1185. return ii !== -1 ? ii : null;
  1186. } else if (format === 'ddd') {
  1187. ii = indexOf$1.call(this._shortWeekdaysParse, llc);
  1188. if (ii !== -1) {
  1189. return ii;
  1190. }
  1191. ii = indexOf$1.call(this._weekdaysParse, llc);
  1192. if (ii !== -1) {
  1193. return ii;
  1194. }
  1195. ii = indexOf$1.call(this._minWeekdaysParse, llc);
  1196. return ii !== -1 ? ii : null;
  1197. } else {
  1198. ii = indexOf$1.call(this._minWeekdaysParse, llc);
  1199. if (ii !== -1) {
  1200. return ii;
  1201. }
  1202. ii = indexOf$1.call(this._weekdaysParse, llc);
  1203. if (ii !== -1) {
  1204. return ii;
  1205. }
  1206. ii = indexOf$1.call(this._shortWeekdaysParse, llc);
  1207. return ii !== -1 ? ii : null;
  1208. }
  1209. }
  1210. }
  1211. function localeWeekdaysParse(weekdayName, format, strict) {
  1212. var i, mom, regex;
  1213. if (this._weekdaysParseExact) {
  1214. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1215. }
  1216. if (!this._weekdaysParse) {
  1217. this._weekdaysParse = [];
  1218. this._minWeekdaysParse = [];
  1219. this._shortWeekdaysParse = [];
  1220. this._fullWeekdaysParse = [];
  1221. }
  1222. for (i = 0; i < 7; i++) {
  1223. // make the regex if we don't have it already
  1224. mom = createUTC([2000, 1]).day(i);
  1225. if (strict && !this._fullWeekdaysParse[i]) {
  1226. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
  1227. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
  1228. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
  1229. }
  1230. if (!this._weekdaysParse[i]) {
  1231. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  1232. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1233. }
  1234. // test the regex
  1235. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  1236. return i;
  1237. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  1238. return i;
  1239. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  1240. return i;
  1241. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1242. return i;
  1243. }
  1244. }
  1245. }
  1246. // MOMENTS
  1247. function getSetDayOfWeek(input) {
  1248. if (!this.isValid()) {
  1249. return input != null ? this : NaN;
  1250. }
  1251. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1252. if (input != null) {
  1253. input = parseWeekday(input, this.localeData());
  1254. return this.add(input - day, 'd');
  1255. } else {
  1256. return day;
  1257. }
  1258. }
  1259. function getSetLocaleDayOfWeek(input) {
  1260. if (!this.isValid()) {
  1261. return input != null ? this : NaN;
  1262. }
  1263. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1264. return input == null ? weekday : this.add(input - weekday, 'd');
  1265. }
  1266. function getSetISODayOfWeek(input) {
  1267. if (!this.isValid()) {
  1268. return input != null ? this : NaN;
  1269. }
  1270. // behaves the same as moment#day except
  1271. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1272. // as a setter, sunday should belong to the previous week.
  1273. if (input != null) {
  1274. var weekday = parseIsoWeekday(input, this.localeData());
  1275. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1276. } else {
  1277. return this.day() || 7;
  1278. }
  1279. }
  1280. var defaultWeekdaysRegex = matchWord;
  1281. function weekdaysRegex(isStrict) {
  1282. if (this._weekdaysParseExact) {
  1283. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1284. computeWeekdaysParse.call(this);
  1285. }
  1286. if (isStrict) {
  1287. return this._weekdaysStrictRegex;
  1288. } else {
  1289. return this._weekdaysRegex;
  1290. }
  1291. } else {
  1292. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1293. this._weekdaysRegex = defaultWeekdaysRegex;
  1294. }
  1295. return this._weekdaysStrictRegex && isStrict ?
  1296. this._weekdaysStrictRegex : this._weekdaysRegex;
  1297. }
  1298. }
  1299. var defaultWeekdaysShortRegex = matchWord;
  1300. function weekdaysShortRegex(isStrict) {
  1301. if (this._weekdaysParseExact) {
  1302. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1303. computeWeekdaysParse.call(this);
  1304. }
  1305. if (isStrict) {
  1306. return this._weekdaysShortStrictRegex;
  1307. } else {
  1308. return this._weekdaysShortRegex;
  1309. }
  1310. } else {
  1311. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1312. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1313. }
  1314. return this._weekdaysShortStrictRegex && isStrict ?
  1315. this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  1316. }
  1317. }
  1318. var defaultWeekdaysMinRegex = matchWord;
  1319. function weekdaysMinRegex(isStrict) {
  1320. if (this._weekdaysParseExact) {
  1321. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1322. computeWeekdaysParse.call(this);
  1323. }
  1324. if (isStrict) {
  1325. return this._weekdaysMinStrictRegex;
  1326. } else {
  1327. return this._weekdaysMinRegex;
  1328. }
  1329. } else {
  1330. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1331. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1332. }
  1333. return this._weekdaysMinStrictRegex && isStrict ?
  1334. this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  1335. }
  1336. }
  1337. function computeWeekdaysParse() {
  1338. function cmpLenRev(a, b) {
  1339. return b.length - a.length;
  1340. }
  1341. var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
  1342. i, mom, minp, shortp, longp;
  1343. for (i = 0; i < 7; i++) {
  1344. // make the regex if we don't have it already
  1345. mom = createUTC([2000, 1]).day(i);
  1346. minp = this.weekdaysMin(mom, '');
  1347. shortp = this.weekdaysShort(mom, '');
  1348. longp = this.weekdays(mom, '');
  1349. minPieces.push(minp);
  1350. shortPieces.push(shortp);
  1351. longPieces.push(longp);
  1352. mixedPieces.push(minp);
  1353. mixedPieces.push(shortp);
  1354. mixedPieces.push(longp);
  1355. }
  1356. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1357. // will match the longer piece.
  1358. minPieces.sort(cmpLenRev);
  1359. shortPieces.sort(cmpLenRev);
  1360. longPieces.sort(cmpLenRev);
  1361. mixedPieces.sort(cmpLenRev);
  1362. for (i = 0; i < 7; i++) {
  1363. shortPieces[i] = regexEscape(shortPieces[i]);
  1364. longPieces[i] = regexEscape(longPieces[i]);
  1365. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1366. }
  1367. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1368. this._weekdaysShortRegex = this._weekdaysRegex;
  1369. this._weekdaysMinRegex = this._weekdaysRegex;
  1370. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  1371. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  1372. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  1373. }
  1374. // FORMATTING
  1375. function hFormat() {
  1376. return this.hours() % 12 || 12;
  1377. }
  1378. function kFormat() {
  1379. return this.hours() || 24;
  1380. }
  1381. addFormatToken('H', ['HH', 2], 0, 'hour');
  1382. addFormatToken('h', ['hh', 2], 0, hFormat);
  1383. addFormatToken('k', ['kk', 2], 0, kFormat);
  1384. addFormatToken('hmm', 0, 0, function () {
  1385. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1386. });
  1387. addFormatToken('hmmss', 0, 0, function () {
  1388. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  1389. zeroFill(this.seconds(), 2);
  1390. });
  1391. addFormatToken('Hmm', 0, 0, function () {
  1392. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1393. });
  1394. addFormatToken('Hmmss', 0, 0, function () {
  1395. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  1396. zeroFill(this.seconds(), 2);
  1397. });
  1398. function meridiem(token, lowercase) {
  1399. addFormatToken(token, 0, 0, function () {
  1400. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  1401. });
  1402. }
  1403. meridiem('a', true);
  1404. meridiem('A', false);
  1405. // ALIASES
  1406. addUnitAlias('hour', 'h');
  1407. // PRIORITY
  1408. addUnitPriority('hour', 13);
  1409. // PARSING
  1410. function matchMeridiem(isStrict, locale) {
  1411. return locale._meridiemParse;
  1412. }
  1413. addRegexToken('a', matchMeridiem);
  1414. addRegexToken('A', matchMeridiem);
  1415. addRegexToken('H', match1to2);
  1416. addRegexToken('h', match1to2);
  1417. addRegexToken('k', match1to2);
  1418. addRegexToken('HH', match1to2, match2);
  1419. addRegexToken('hh', match1to2, match2);
  1420. addRegexToken('kk', match1to2, match2);
  1421. addRegexToken('hmm', match3to4);
  1422. addRegexToken('hmmss', match5to6);
  1423. addRegexToken('Hmm', match3to4);
  1424. addRegexToken('Hmmss', match5to6);
  1425. addParseToken(['H', 'HH'], HOUR);
  1426. addParseToken(['k', 'kk'], function (input, array, config) {
  1427. var kInput = toInt(input);
  1428. array[HOUR] = kInput === 24 ? 0 : kInput;
  1429. });
  1430. addParseToken(['a', 'A'], function (input, array, config) {
  1431. config._isPm = config._locale.isPM(input);
  1432. config._meridiem = input;
  1433. });
  1434. addParseToken(['h', 'hh'], function (input, array, config) {
  1435. array[HOUR] = toInt(input);
  1436. getParsingFlags(config).bigHour = true;
  1437. });
  1438. addParseToken('hmm', function (input, array, config) {
  1439. var pos = input.length - 2;
  1440. array[HOUR] = toInt(input.substr(0, pos));
  1441. array[MINUTE] = toInt(input.substr(pos));
  1442. getParsingFlags(config).bigHour = true;
  1443. });
  1444. addParseToken('hmmss', function (input, array, config) {
  1445. var pos1 = input.length - 4;
  1446. var pos2 = input.length - 2;
  1447. array[HOUR] = toInt(input.substr(0, pos1));
  1448. array[MINUTE] = toInt(input.substr(pos1, 2));
  1449. array[SECOND] = toInt(input.substr(pos2));
  1450. getParsingFlags(config).bigHour = true;
  1451. });
  1452. addParseToken('Hmm', function (input, array, config) {
  1453. var pos = input.length - 2;
  1454. array[HOUR] = toInt(input.substr(0, pos));
  1455. array[MINUTE] = toInt(input.substr(pos));
  1456. });
  1457. addParseToken('Hmmss', function (input, array, config) {
  1458. var pos1 = input.length - 4;
  1459. var pos2 = input.length - 2;
  1460. array[HOUR] = toInt(input.substr(0, pos1));
  1461. array[MINUTE] = toInt(input.substr(pos1, 2));
  1462. array[SECOND] = toInt(input.substr(pos2));
  1463. });
  1464. // LOCALES
  1465. function localeIsPM(input) {
  1466. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1467. // Using charAt should be more compatible.
  1468. return ((input + '').toLowerCase().charAt(0) === 'p');
  1469. }
  1470. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  1471. function localeMeridiem(hours, minutes, isLower) {
  1472. if (hours > 11) {
  1473. return isLower ? 'pm' : 'PM';
  1474. } else {
  1475. return isLower ? 'am' : 'AM';
  1476. }
  1477. }
  1478. // MOMENTS
  1479. // Setting the hour should keep the time, because the user explicitly
  1480. // specified which hour he wants. So trying to maintain the same hour (in
  1481. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1482. // this rule.
  1483. var getSetHour = makeGetSet('Hours', true);
  1484. // months
  1485. // week
  1486. // weekdays
  1487. // meridiem
  1488. var baseConfig = {
  1489. calendar: defaultCalendar,
  1490. longDateFormat: defaultLongDateFormat,
  1491. invalidDate: defaultInvalidDate,
  1492. ordinal: defaultOrdinal,
  1493. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1494. relativeTime: defaultRelativeTime,
  1495. months: defaultLocaleMonths,
  1496. monthsShort: defaultLocaleMonthsShort,
  1497. week: defaultLocaleWeek,
  1498. weekdays: defaultLocaleWeekdays,
  1499. weekdaysMin: defaultLocaleWeekdaysMin,
  1500. weekdaysShort: defaultLocaleWeekdaysShort,
  1501. meridiemParse: defaultLocaleMeridiemParse
  1502. };
  1503. // internal storage for locale config files
  1504. var locales = {};
  1505. var localeFamilies = {};
  1506. var globalLocale;
  1507. function normalizeLocale(key) {
  1508. return key ? key.toLowerCase().replace('_', '-') : key;
  1509. }
  1510. // pick the locale from the array
  1511. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1512. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1513. function chooseLocale(names) {
  1514. var i = 0, j, next, locale, split;
  1515. while (i < names.length) {
  1516. split = normalizeLocale(names[i]).split('-');
  1517. j = split.length;
  1518. next = normalizeLocale(names[i + 1]);
  1519. next = next ? next.split('-') : null;
  1520. while (j > 0) {
  1521. locale = loadLocale(split.slice(0, j).join('-'));
  1522. if (locale) {
  1523. return locale;
  1524. }
  1525. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  1526. //the next array item is better than a shallower substring of this one
  1527. break;
  1528. }
  1529. j--;
  1530. }
  1531. i++;
  1532. }
  1533. return null;
  1534. }
  1535. function loadLocale(name) {
  1536. var oldLocale = null;
  1537. // TODO: Find a better way to register and load all the locales in Node
  1538. if (!locales[name] && (typeof module !== 'undefined') &&
  1539. module && module.exports) {
  1540. try {
  1541. oldLocale = globalLocale._abbr;
  1542. require('./locale/' + name);
  1543. // because defineLocale currently also sets the global locale, we
  1544. // want to undo that for lazy loaded locales
  1545. getSetGlobalLocale(oldLocale);
  1546. } catch (e) {
  1547. }
  1548. }
  1549. return locales[name];
  1550. }
  1551. // This function will load locale and then set the global locale. If
  1552. // no arguments are passed in, it will simply return the current global
  1553. // locale key.
  1554. function getSetGlobalLocale(key, values) {
  1555. var data;
  1556. if (key) {
  1557. if (isUndefined(values)) {
  1558. data = getLocale(key);
  1559. }
  1560. else {
  1561. data = defineLocale(key, values);
  1562. }
  1563. if (data) {
  1564. // moment.duration._locale = moment._locale = data;
  1565. globalLocale = data;
  1566. }
  1567. }
  1568. return globalLocale._abbr;
  1569. }
  1570. function defineLocale(name, config) {
  1571. if (config !== null) {
  1572. var parentConfig = baseConfig;
  1573. config.abbr = name;
  1574. if (locales[name] != null) {
  1575. deprecateSimple('defineLocaleOverride',
  1576. 'use moment.updateLocale(localeName, config) to change ' +
  1577. 'an existing locale. moment.defineLocale(localeName, ' +
  1578. 'config) should only be used for creating a new locale ' +
  1579. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  1580. parentConfig = locales[name]._config;
  1581. } else if (config.parentLocale != null) {
  1582. if (locales[config.parentLocale] != null) {
  1583. parentConfig = locales[config.parentLocale]._config;
  1584. } else {
  1585. if (!localeFamilies[config.parentLocale]) {
  1586. localeFamilies[config.parentLocale] = [];
  1587. }
  1588. localeFamilies[config.parentLocale].push({
  1589. name: name,
  1590. config: config
  1591. });
  1592. return null;
  1593. }
  1594. }
  1595. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1596. if (localeFamilies[name]) {
  1597. localeFamilies[name].forEach(function (x) {
  1598. defineLocale(x.name, x.config);
  1599. });
  1600. }
  1601. // backwards compat for now: also set the locale
  1602. // make sure we set the locale AFTER all child locales have been
  1603. // created, so we won't end up with the child locale set.
  1604. getSetGlobalLocale(name);
  1605. return locales[name];
  1606. } else {
  1607. // useful for testing
  1608. delete locales[name];
  1609. return null;
  1610. }
  1611. }
  1612. function updateLocale(name, config) {
  1613. if (config != null) {
  1614. var locale, parentConfig = baseConfig;
  1615. // MERGE
  1616. if (locales[name] != null) {
  1617. parentConfig = locales[name]._config;
  1618. }
  1619. config = mergeConfigs(parentConfig, config);
  1620. locale = new Locale(config);
  1621. locale.parentLocale = locales[name];
  1622. locales[name] = locale;
  1623. // backwards compat for now: also set the locale
  1624. getSetGlobalLocale(name);
  1625. } else {
  1626. // pass null for config to unupdate, useful for tests
  1627. if (locales[name] != null) {
  1628. if (locales[name].parentLocale != null) {
  1629. locales[name] = locales[name].parentLocale;
  1630. } else if (locales[name] != null) {
  1631. delete locales[name];
  1632. }
  1633. }
  1634. }
  1635. return locales[name];
  1636. }
  1637. // returns locale data
  1638. function getLocale(key) {
  1639. var locale;
  1640. if (key && key._locale && key._locale._abbr) {
  1641. key = key._locale._abbr;
  1642. }
  1643. if (!key) {
  1644. return globalLocale;
  1645. }
  1646. if (!isArray(key)) {
  1647. //short-circuit everything else
  1648. locale = loadLocale(key);
  1649. if (locale) {
  1650. return locale;
  1651. }
  1652. key = [key];
  1653. }
  1654. return chooseLocale(key);
  1655. }
  1656. function listLocales() {
  1657. return keys$1(locales);
  1658. }
  1659. function checkOverflow(m) {
  1660. var overflow;
  1661. var a = m._a;
  1662. if (a && getParsingFlags(m).overflow === -2) {
  1663. overflow =
  1664. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  1665. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  1666. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  1667. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  1668. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  1669. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  1670. -1;
  1671. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  1672. overflow = DATE;
  1673. }
  1674. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1675. overflow = WEEK;
  1676. }
  1677. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1678. overflow = WEEKDAY;
  1679. }
  1680. getParsingFlags(m).overflow = overflow;
  1681. }
  1682. return m;
  1683. }
  1684. // iso 8601 regex
  1685. // 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)
  1686. 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)?)?$/;
  1687. var 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)?)?$/;
  1688. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  1689. var isoDates = [
  1690. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  1691. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  1692. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  1693. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  1694. ['YYYY-DDD', /\d{4}-\d{3}/],
  1695. ['YYYY-MM', /\d{4}-\d\d/, false],
  1696. ['YYYYYYMMDD', /[+-]\d{10}/],
  1697. ['YYYYMMDD', /\d{8}/],
  1698. // YYYYMM is NOT allowed by the standard
  1699. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  1700. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  1701. ['YYYYDDD', /\d{7}/]
  1702. ];
  1703. // iso time formats and regexes
  1704. var isoTimes = [
  1705. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  1706. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  1707. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  1708. ['HH:mm', /\d\d:\d\d/],
  1709. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  1710. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  1711. ['HHmmss', /\d\d\d\d\d\d/],
  1712. ['HHmm', /\d\d\d\d/],
  1713. ['HH', /\d\d/]
  1714. ];
  1715. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  1716. // date from iso format
  1717. function configFromISO(config) {
  1718. var i, l,
  1719. string = config._i,
  1720. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  1721. allowTime, dateFormat, timeFormat, tzFormat;
  1722. if (match) {
  1723. getParsingFlags(config).iso = true;
  1724. for (i = 0, l = isoDates.length; i < l; i++) {
  1725. if (isoDates[i][1].exec(match[1])) {
  1726. dateFormat = isoDates[i][0];
  1727. allowTime = isoDates[i][2] !== false;
  1728. break;
  1729. }
  1730. }
  1731. if (dateFormat == null) {
  1732. config._isValid = false;
  1733. return;
  1734. }
  1735. if (match[3]) {
  1736. for (i = 0, l = isoTimes.length; i < l; i++) {
  1737. if (isoTimes[i][1].exec(match[3])) {
  1738. // match[2] should be 'T' or space
  1739. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  1740. break;
  1741. }
  1742. }
  1743. if (timeFormat == null) {
  1744. config._isValid = false;
  1745. return;
  1746. }
  1747. }
  1748. if (!allowTime && timeFormat != null) {
  1749. config._isValid = false;
  1750. return;
  1751. }
  1752. if (match[4]) {
  1753. if (tzRegex.exec(match[4])) {
  1754. tzFormat = 'Z';
  1755. } else {
  1756. config._isValid = false;
  1757. return;
  1758. }
  1759. }
  1760. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  1761. configFromStringAndFormat(config);
  1762. } else {
  1763. config._isValid = false;
  1764. }
  1765. }
  1766. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  1767. var basicRfcRegex = /^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;
  1768. // date and time from ref 2822 format
  1769. function configFromRFC2822(config) {
  1770. var string, match, dayFormat,
  1771. dateFormat, timeFormat, tzFormat;
  1772. var timezones = {
  1773. ' GMT': ' +0000',
  1774. ' EDT': ' -0400',
  1775. ' EST': ' -0500',
  1776. ' CDT': ' -0500',
  1777. ' CST': ' -0600',
  1778. ' MDT': ' -0600',
  1779. ' MST': ' -0700',
  1780. ' PDT': ' -0700',
  1781. ' PST': ' -0800'
  1782. };
  1783. var military = 'YXWVUTSRQPONZABCDEFGHIKLM';
  1784. var timezone, timezoneIndex;
  1785. string = config._i
  1786. .replace(/\([^\)]*\)|[\n\t]/g, ' ') // Remove comments and folding whitespace
  1787. .replace(/(\s\s+)/g, ' ') // Replace multiple-spaces with a single space
  1788. .replace(/^\s|\s$/g, ''); // Remove leading and trailing spaces
  1789. match = basicRfcRegex.exec(string);
  1790. if (match) {
  1791. dayFormat = match[1] ? 'ddd' + ((match[1].length === 5) ? ', ' : ' ') : '';
  1792. dateFormat = 'D MMM ' + ((match[2].length > 10) ? 'YYYY ' : 'YY ');
  1793. timeFormat = 'HH:mm' + (match[4] ? ':ss' : '');
  1794. // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
  1795. if (match[1]) { // day of week given
  1796. var momentDate = new Date(match[2]);
  1797. var momentDay = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][momentDate.getDay()];
  1798. if (match[1].substr(0, 3) !== momentDay) {
  1799. getParsingFlags(config).weekdayMismatch = true;
  1800. config._isValid = false;
  1801. return;
  1802. }
  1803. }
  1804. switch (match[5].length) {
  1805. case 2: // military
  1806. if (timezoneIndex === 0) {
  1807. timezone = ' +0000';
  1808. } else {
  1809. timezoneIndex = military.indexOf(match[5][1].toUpperCase()) - 12;
  1810. timezone = ((timezoneIndex < 0) ? ' -' : ' +') +
  1811. (('' + timezoneIndex).replace(/^-?/, '0')).match(/..$/)[0] + '00';
  1812. }
  1813. break;
  1814. case 4: // Zone
  1815. timezone = timezones[match[5]];
  1816. break;
  1817. default: // UT or +/-9999
  1818. timezone = timezones[' GMT'];
  1819. }
  1820. match[5] = timezone;
  1821. config._i = match.splice(1).join('');
  1822. tzFormat = ' ZZ';
  1823. config._f = dayFormat + dateFormat + timeFormat + tzFormat;
  1824. configFromStringAndFormat(config);
  1825. getParsingFlags(config).rfc2822 = true;
  1826. } else {
  1827. config._isValid = false;
  1828. }
  1829. }
  1830. // date from iso format or fallback
  1831. function configFromString(config) {
  1832. var matched = aspNetJsonRegex.exec(config._i);
  1833. if (matched !== null) {
  1834. config._d = new Date(+matched[1]);
  1835. return;
  1836. }
  1837. configFromISO(config);
  1838. if (config._isValid === false) {
  1839. delete config._isValid;
  1840. } else {
  1841. return;
  1842. }
  1843. configFromRFC2822(config);
  1844. if (config._isValid === false) {
  1845. delete config._isValid;
  1846. } else {
  1847. return;
  1848. }
  1849. // Final attempt, use Input Fallback
  1850. hooks.createFromInputFallback(config);
  1851. }
  1852. hooks.createFromInputFallback = deprecate(
  1853. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  1854. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  1855. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  1856. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  1857. function (config) {
  1858. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  1859. }
  1860. );
  1861. // Pick the first defined of two or three arguments.
  1862. function defaults(a, b, c) {
  1863. if (a != null) {
  1864. return a;
  1865. }
  1866. if (b != null) {
  1867. return b;
  1868. }
  1869. return c;
  1870. }
  1871. function currentDateArray(config) {
  1872. // hooks is actually the exported moment object
  1873. var nowValue = new Date(hooks.now());
  1874. if (config._useUTC) {
  1875. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  1876. }
  1877. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  1878. }
  1879. // convert an array to a date.
  1880. // the array should mirror the parameters below
  1881. // note: all values past the year are optional and will default to the lowest possible value.
  1882. // [year, month, day , hour, minute, second, millisecond]
  1883. function configFromArray(config) {
  1884. var i, date, input = [], currentDate, yearToUse;
  1885. if (config._d) {
  1886. return;
  1887. }
  1888. currentDate = currentDateArray(config);
  1889. //compute day of the year from weeks and weekdays
  1890. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  1891. dayOfYearFromWeekInfo(config);
  1892. }
  1893. //if the day of the year is set, figure out what it is
  1894. if (config._dayOfYear != null) {
  1895. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  1896. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  1897. getParsingFlags(config)._overflowDayOfYear = true;
  1898. }
  1899. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  1900. config._a[MONTH] = date.getUTCMonth();
  1901. config._a[DATE] = date.getUTCDate();
  1902. }
  1903. // Default to current date.
  1904. // * if no year, month, day of month are given, default to today
  1905. // * if day of month is given, default month and year
  1906. // * if month is given, default only year
  1907. // * if year is given, don't default anything
  1908. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  1909. config._a[i] = input[i] = currentDate[i];
  1910. }
  1911. // Zero out whatever was not defaulted, including time
  1912. for (; i < 7; i++) {
  1913. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  1914. }
  1915. // Check for 24:00:00.000
  1916. if (config._a[HOUR] === 24 &&
  1917. config._a[MINUTE] === 0 &&
  1918. config._a[SECOND] === 0 &&
  1919. config._a[MILLISECOND] === 0) {
  1920. config._nextDay = true;
  1921. config._a[HOUR] = 0;
  1922. }
  1923. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  1924. // Apply timezone offset from input. The actual utcOffset can be changed
  1925. // with parseZone.
  1926. if (config._tzm != null) {
  1927. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  1928. }
  1929. if (config._nextDay) {
  1930. config._a[HOUR] = 24;
  1931. }
  1932. }
  1933. function dayOfYearFromWeekInfo(config) {
  1934. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  1935. w = config._w;
  1936. if (w.GG != null || w.W != null || w.E != null) {
  1937. dow = 1;
  1938. doy = 4;
  1939. // TODO: We need to take the current isoWeekYear, but that depends on
  1940. // how we interpret now (local, utc, fixed offset). So create
  1941. // a now version of current config (take local/utc/offset flags, and
  1942. // create now).
  1943. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  1944. week = defaults(w.W, 1);
  1945. weekday = defaults(w.E, 1);
  1946. if (weekday < 1 || weekday > 7) {
  1947. weekdayOverflow = true;
  1948. }
  1949. } else {
  1950. dow = config._locale._week.dow;
  1951. doy = config._locale._week.doy;
  1952. var curWeek = weekOfYear(createLocal(), dow, doy);
  1953. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  1954. // Default to current week.
  1955. week = defaults(w.w, curWeek.week);
  1956. if (w.d != null) {
  1957. // weekday -- low day numbers are considered next week
  1958. weekday = w.d;
  1959. if (weekday < 0 || weekday > 6) {
  1960. weekdayOverflow = true;
  1961. }
  1962. } else if (w.e != null) {
  1963. // local weekday -- counting starts from begining of week
  1964. weekday = w.e + dow;
  1965. if (w.e < 0 || w.e > 6) {
  1966. weekdayOverflow = true;
  1967. }
  1968. } else {
  1969. // default to begining of week
  1970. weekday = dow;
  1971. }
  1972. }
  1973. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  1974. getParsingFlags(config)._overflowWeeks = true;
  1975. } else if (weekdayOverflow != null) {
  1976. getParsingFlags(config)._overflowWeekday = true;
  1977. } else {
  1978. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  1979. config._a[YEAR] = temp.year;
  1980. config._dayOfYear = temp.dayOfYear;
  1981. }
  1982. }
  1983. // constant that refers to the ISO standard
  1984. hooks.ISO_8601 = function () {
  1985. };
  1986. // constant that refers to the RFC 2822 form
  1987. hooks.RFC_2822 = function () {
  1988. };
  1989. // date from string and format string
  1990. function configFromStringAndFormat(config) {
  1991. // TODO: Move this to another part of the creation flow to prevent circular deps
  1992. if (config._f === hooks.ISO_8601) {
  1993. configFromISO(config);
  1994. return;
  1995. }
  1996. if (config._f === hooks.RFC_2822) {
  1997. configFromRFC2822(config);
  1998. return;
  1999. }
  2000. config._a = [];
  2001. getParsingFlags(config).empty = true;
  2002. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2003. var string = '' + config._i,
  2004. i, parsedInput, tokens, token, skipped,
  2005. stringLength = string.length,
  2006. totalParsedInputLength = 0;
  2007. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2008. for (i = 0; i < tokens.length; i++) {
  2009. token = tokens[i];
  2010. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  2011. // console.log('token', token, 'parsedInput', parsedInput,
  2012. // 'regex', getParseRegexForToken(token, config));
  2013. if (parsedInput) {
  2014. skipped = string.substr(0, string.indexOf(parsedInput));
  2015. if (skipped.length > 0) {
  2016. getParsingFlags(config).unusedInput.push(skipped);
  2017. }
  2018. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  2019. totalParsedInputLength += parsedInput.length;
  2020. }
  2021. // don't parse if it's not a known token
  2022. if (formatTokenFunctions[token]) {
  2023. if (parsedInput) {
  2024. getParsingFlags(config).empty = false;
  2025. }
  2026. else {
  2027. getParsingFlags(config).unusedTokens.push(token);
  2028. }
  2029. addTimeToArrayFromToken(token, parsedInput, config);
  2030. }
  2031. else if (config._strict && !parsedInput) {
  2032. getParsingFlags(config).unusedTokens.push(token);
  2033. }
  2034. }
  2035. // add remaining unparsed input length to the string
  2036. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  2037. if (string.length > 0) {
  2038. getParsingFlags(config).unusedInput.push(string);
  2039. }
  2040. // clear _12h flag if hour is <= 12
  2041. if (config._a[HOUR] <= 12 &&
  2042. getParsingFlags(config).bigHour === true &&
  2043. config._a[HOUR] > 0) {
  2044. getParsingFlags(config).bigHour = undefined;
  2045. }
  2046. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2047. getParsingFlags(config).meridiem = config._meridiem;
  2048. // handle meridiem
  2049. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  2050. configFromArray(config);
  2051. checkOverflow(config);
  2052. }
  2053. function meridiemFixWrap(locale, hour, meridiem) {
  2054. var isPm;
  2055. if (meridiem == null) {
  2056. // nothing to do
  2057. return hour;
  2058. }
  2059. if (locale.meridiemHour != null) {
  2060. return locale.meridiemHour(hour, meridiem);
  2061. } else if (locale.isPM != null) {
  2062. // Fallback
  2063. isPm = locale.isPM(meridiem);
  2064. if (isPm && hour < 12) {
  2065. hour += 12;
  2066. }
  2067. if (!isPm && hour === 12) {
  2068. hour = 0;
  2069. }
  2070. return hour;
  2071. } else {
  2072. // this is not supposed to happen
  2073. return hour;
  2074. }
  2075. }
  2076. // date from string and array of format strings
  2077. function configFromStringAndArray(config) {
  2078. var tempConfig,
  2079. bestMoment,
  2080. scoreToBeat,
  2081. i,
  2082. currentScore;
  2083. if (config._f.length === 0) {
  2084. getParsingFlags(config).invalidFormat = true;
  2085. config._d = new Date(NaN);
  2086. return;
  2087. }
  2088. for (i = 0; i < config._f.length; i++) {
  2089. currentScore = 0;
  2090. tempConfig = copyConfig({}, config);
  2091. if (config._useUTC != null) {
  2092. tempConfig._useUTC = config._useUTC;
  2093. }
  2094. tempConfig._f = config._f[i];
  2095. configFromStringAndFormat(tempConfig);
  2096. if (!isValid(tempConfig)) {
  2097. continue;
  2098. }
  2099. // if there is any input that was not parsed add a penalty for that format
  2100. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2101. //or tokens
  2102. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2103. getParsingFlags(tempConfig).score = currentScore;
  2104. if (scoreToBeat == null || currentScore < scoreToBeat) {
  2105. scoreToBeat = currentScore;
  2106. bestMoment = tempConfig;
  2107. }
  2108. }
  2109. extend(config, bestMoment || tempConfig);
  2110. }
  2111. function configFromObject(config) {
  2112. if (config._d) {
  2113. return;
  2114. }
  2115. var i = normalizeObjectUnits(config._i);
  2116. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  2117. return obj && parseInt(obj, 10);
  2118. });
  2119. configFromArray(config);
  2120. }
  2121. function createFromConfig(config) {
  2122. var res = new Moment(checkOverflow(prepareConfig(config)));
  2123. if (res._nextDay) {
  2124. // Adding is smart enough around DST
  2125. res.add(1, 'd');
  2126. res._nextDay = undefined;
  2127. }
  2128. return res;
  2129. }
  2130. function prepareConfig(config) {
  2131. var input = config._i,
  2132. format = config._f;
  2133. config._locale = config._locale || getLocale(config._l);
  2134. if (input === null || (format === undefined && input === '')) {
  2135. return createInvalid({nullInput: true});
  2136. }
  2137. if (typeof input === 'string') {
  2138. config._i = input = config._locale.preparse(input);
  2139. }
  2140. if (isMoment(input)) {
  2141. return new Moment(checkOverflow(input));
  2142. } else if (isDate(input)) {
  2143. config._d = input;
  2144. } else if (isArray(format)) {
  2145. configFromStringAndArray(config);
  2146. } else if (format) {
  2147. configFromStringAndFormat(config);
  2148. } else {
  2149. configFromInput(config);
  2150. }
  2151. if (!isValid(config)) {
  2152. config._d = null;
  2153. }
  2154. return config;
  2155. }
  2156. function configFromInput(config) {
  2157. var input = config._i;
  2158. if (isUndefined(input)) {
  2159. config._d = new Date(hooks.now());
  2160. } else if (isDate(input)) {
  2161. config._d = new Date(input.valueOf());
  2162. } else if (typeof input === 'string') {
  2163. configFromString(config);
  2164. } else if (isArray(input)) {
  2165. config._a = map(input.slice(0), function (obj) {
  2166. return parseInt(obj, 10);
  2167. });
  2168. configFromArray(config);
  2169. } else if (isObject(input)) {
  2170. configFromObject(config);
  2171. } else if (isNumber(input)) {
  2172. // from milliseconds
  2173. config._d = new Date(input);
  2174. } else {
  2175. hooks.createFromInputFallback(config);
  2176. }
  2177. }
  2178. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  2179. var c = {};
  2180. if (locale === true || locale === false) {
  2181. strict = locale;
  2182. locale = undefined;
  2183. }
  2184. if ((isObject(input) && isObjectEmpty(input)) ||
  2185. (isArray(input) && input.length === 0)) {
  2186. input = undefined;
  2187. }
  2188. // object construction must be done this way.
  2189. // https://github.com/moment/moment/issues/1423
  2190. c._isAMomentObject = true;
  2191. c._useUTC = c._isUTC = isUTC;
  2192. c._l = locale;
  2193. c._i = input;
  2194. c._f = format;
  2195. c._strict = strict;
  2196. return createFromConfig(c);
  2197. }
  2198. function createLocal(input, format, locale, strict) {
  2199. return createLocalOrUTC(input, format, locale, strict, false);
  2200. }
  2201. var prototypeMin = deprecate(
  2202. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2203. function () {
  2204. var other = createLocal.apply(null, arguments);
  2205. if (this.isValid() && other.isValid()) {
  2206. return other < this ? this : other;
  2207. } else {
  2208. return createInvalid();
  2209. }
  2210. }
  2211. );
  2212. var prototypeMax = deprecate(
  2213. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2214. function () {
  2215. var other = createLocal.apply(null, arguments);
  2216. if (this.isValid() && other.isValid()) {
  2217. return other > this ? this : other;
  2218. } else {
  2219. return createInvalid();
  2220. }
  2221. }
  2222. );
  2223. // Pick a moment m from moments so that m[fn](other) is true for all
  2224. // other. This relies on the function fn to be transitive.
  2225. //
  2226. // moments should either be an array of moment objects or an array, whose
  2227. // first element is an array of moment objects.
  2228. function pickBy(fn, moments) {
  2229. var res, i;
  2230. if (moments.length === 1 && isArray(moments[0])) {
  2231. moments = moments[0];
  2232. }
  2233. if (!moments.length) {
  2234. return createLocal();
  2235. }
  2236. res = moments[0];
  2237. for (i = 1; i < moments.length; ++i) {
  2238. if (!moments[i].isValid() || moments[i][fn](res)) {
  2239. res = moments[i];
  2240. }
  2241. }
  2242. return res;
  2243. }
  2244. // TODO: Use [].sort instead?
  2245. function min() {
  2246. var args = [].slice.call(arguments, 0);
  2247. return pickBy('isBefore', args);
  2248. }
  2249. function max() {
  2250. var args = [].slice.call(arguments, 0);
  2251. return pickBy('isAfter', args);
  2252. }
  2253. var now = function () {
  2254. return Date.now ? Date.now() : +(new Date());
  2255. };
  2256. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  2257. function isDurationValid(m) {
  2258. for (var key in m) {
  2259. if (!(ordering.indexOf(key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  2260. return false;
  2261. }
  2262. }
  2263. var unitHasDecimal = false;
  2264. for (var i = 0; i < ordering.length; ++i) {
  2265. if (m[ordering[i]]) {
  2266. if (unitHasDecimal) {
  2267. return false; // only allow non-integers for smallest unit
  2268. }
  2269. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2270. unitHasDecimal = true;
  2271. }
  2272. }
  2273. }
  2274. return true;
  2275. }
  2276. function isValid$1() {
  2277. return this._isValid;
  2278. }
  2279. function createInvalid$1() {
  2280. return createDuration(NaN);
  2281. }
  2282. function Duration(duration) {
  2283. var normalizedInput = normalizeObjectUnits(duration),
  2284. years = normalizedInput.year || 0,
  2285. quarters = normalizedInput.quarter || 0,
  2286. months = normalizedInput.month || 0,
  2287. weeks = normalizedInput.week || 0,
  2288. days = normalizedInput.day || 0,
  2289. hours = normalizedInput.hour || 0,
  2290. minutes = normalizedInput.minute || 0,
  2291. seconds = normalizedInput.second || 0,
  2292. milliseconds = normalizedInput.millisecond || 0;
  2293. this._isValid = isDurationValid(normalizedInput);
  2294. // representation for dateAddRemove
  2295. this._milliseconds = +milliseconds +
  2296. seconds * 1e3 + // 1000
  2297. minutes * 6e4 + // 1000 * 60
  2298. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2299. // Because of dateAddRemove treats 24 hours as different from a
  2300. // day when working around DST, we need to store them separately
  2301. this._days = +days +
  2302. weeks * 7;
  2303. // It is impossible translate months into days without knowing
  2304. // which months you are are talking about, so we have to store
  2305. // it separately.
  2306. this._months = +months +
  2307. quarters * 3 +
  2308. years * 12;
  2309. this._data = {};
  2310. this._locale = getLocale();
  2311. this._bubble();
  2312. }
  2313. function isDuration(obj) {
  2314. return obj instanceof Duration;
  2315. }
  2316. function absRound(number) {
  2317. if (number < 0) {
  2318. return Math.round(-1 * number) * -1;
  2319. } else {
  2320. return Math.round(number);
  2321. }
  2322. }
  2323. // FORMATTING
  2324. function offset(token, separator) {
  2325. addFormatToken(token, 0, 0, function () {
  2326. var offset = this.utcOffset();
  2327. var sign = '+';
  2328. if (offset < 0) {
  2329. offset = -offset;
  2330. sign = '-';
  2331. }
  2332. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  2333. });
  2334. }
  2335. offset('Z', ':');
  2336. offset('ZZ', '');
  2337. // PARSING
  2338. addRegexToken('Z', matchShortOffset);
  2339. addRegexToken('ZZ', matchShortOffset);
  2340. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2341. config._useUTC = true;
  2342. config._tzm = offsetFromString(matchShortOffset, input);
  2343. });
  2344. // HELPERS
  2345. // timezone chunker
  2346. // '+10:00' > ['10', '00']
  2347. // '-1530' > ['-15', '30']
  2348. var chunkOffset = /([\+\-]|\d\d)/gi;
  2349. function offsetFromString(matcher, string) {
  2350. var matches = (string || '').match(matcher);
  2351. if (matches === null) {
  2352. return null;
  2353. }
  2354. var chunk = matches[matches.length - 1] || [];
  2355. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2356. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  2357. return minutes === 0 ?
  2358. 0 :
  2359. parts[0] === '+' ? minutes : -minutes;
  2360. }
  2361. // Return a moment from input, that is local/utc/zone equivalent to model.
  2362. function cloneWithOffset(input, model) {
  2363. var res, diff;
  2364. if (model._isUTC) {
  2365. res = model.clone();
  2366. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  2367. // Use low-level api, because this fn is low-level api.
  2368. res._d.setTime(res._d.valueOf() + diff);
  2369. hooks.updateOffset(res, false);
  2370. return res;
  2371. } else {
  2372. return createLocal(input).local();
  2373. }
  2374. }
  2375. function getDateOffset(m) {
  2376. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2377. // https://github.com/moment/moment/pull/1871
  2378. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  2379. }
  2380. // HOOKS
  2381. // This function will be called whenever a moment is mutated.
  2382. // It is intended to keep the offset in sync with the timezone.
  2383. hooks.updateOffset = function () {
  2384. };
  2385. // MOMENTS
  2386. // keepLocalTime = true means only change the timezone, without
  2387. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2388. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2389. // +0200, so we adjust the time as needed, to be valid.
  2390. //
  2391. // Keeping the time actually adds/subtracts (one hour)
  2392. // from the actual represented time. That is why we call updateOffset
  2393. // a second time. In case it wants us to change the offset again
  2394. // _changeInProgress == true case, then we have to adjust, because
  2395. // there is no such time in the given timezone.
  2396. function getSetOffset(input, keepLocalTime, keepMinutes) {
  2397. var offset = this._offset || 0,
  2398. localAdjust;
  2399. if (!this.isValid()) {
  2400. return input != null ? this : NaN;
  2401. }
  2402. if (input != null) {
  2403. if (typeof input === 'string') {
  2404. input = offsetFromString(matchShortOffset, input);
  2405. if (input === null) {
  2406. return this;
  2407. }
  2408. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2409. input = input * 60;
  2410. }
  2411. if (!this._isUTC && keepLocalTime) {
  2412. localAdjust = getDateOffset(this);
  2413. }
  2414. this._offset = input;
  2415. this._isUTC = true;
  2416. if (localAdjust != null) {
  2417. this.add(localAdjust, 'm');
  2418. }
  2419. if (offset !== input) {
  2420. if (!keepLocalTime || this._changeInProgress) {
  2421. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  2422. } else if (!this._changeInProgress) {
  2423. this._changeInProgress = true;
  2424. hooks.updateOffset(this, true);
  2425. this._changeInProgress = null;
  2426. }
  2427. }
  2428. return this;
  2429. } else {
  2430. return this._isUTC ? offset : getDateOffset(this);
  2431. }
  2432. }
  2433. function getSetZone(input, keepLocalTime) {
  2434. if (input != null) {
  2435. if (typeof input !== 'string') {
  2436. input = -input;
  2437. }
  2438. this.utcOffset(input, keepLocalTime);
  2439. return this;
  2440. } else {
  2441. return -this.utcOffset();
  2442. }
  2443. }
  2444. function setOffsetToUTC(keepLocalTime) {
  2445. return this.utcOffset(0, keepLocalTime);
  2446. }
  2447. function setOffsetToLocal(keepLocalTime) {
  2448. if (this._isUTC) {
  2449. this.utcOffset(0, keepLocalTime);
  2450. this._isUTC = false;
  2451. if (keepLocalTime) {
  2452. this.subtract(getDateOffset(this), 'm');
  2453. }
  2454. }
  2455. return this;
  2456. }
  2457. function setOffsetToParsedOffset() {
  2458. if (this._tzm != null) {
  2459. this.utcOffset(this._tzm, false, true);
  2460. } else if (typeof this._i === 'string') {
  2461. var tZone = offsetFromString(matchOffset, this._i);
  2462. if (tZone != null) {
  2463. this.utcOffset(tZone);
  2464. }
  2465. else {
  2466. this.utcOffset(0, true);
  2467. }
  2468. }
  2469. return this;
  2470. }
  2471. function hasAlignedHourOffset(input) {
  2472. if (!this.isValid()) {
  2473. return false;
  2474. }
  2475. input = input ? createLocal(input).utcOffset() : 0;
  2476. return (this.utcOffset() - input) % 60 === 0;
  2477. }
  2478. function isDaylightSavingTime() {
  2479. return (
  2480. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2481. this.utcOffset() > this.clone().month(5).utcOffset()
  2482. );
  2483. }
  2484. function isDaylightSavingTimeShifted() {
  2485. if (!isUndefined(this._isDSTShifted)) {
  2486. return this._isDSTShifted;
  2487. }
  2488. var c = {};
  2489. copyConfig(c, this);
  2490. c = prepareConfig(c);
  2491. if (c._a) {
  2492. var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2493. this._isDSTShifted = this.isValid() &&
  2494. compareArrays(c._a, other.toArray()) > 0;
  2495. } else {
  2496. this._isDSTShifted = false;
  2497. }
  2498. return this._isDSTShifted;
  2499. }
  2500. function isLocal() {
  2501. return this.isValid() ? !this._isUTC : false;
  2502. }
  2503. function isUtcOffset() {
  2504. return this.isValid() ? this._isUTC : false;
  2505. }
  2506. function isUtc() {
  2507. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2508. }
  2509. // ASP.NET json date format regex
  2510. var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
  2511. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  2512. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  2513. // and further modified to allow for strings containing both week and day
  2514. var isoRegex = /^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;
  2515. function createDuration(input, key) {
  2516. var duration = input,
  2517. // matching against regexp is expensive, do it on demand
  2518. match = null,
  2519. sign,
  2520. ret,
  2521. diffRes;
  2522. if (isDuration(input)) {
  2523. duration = {
  2524. ms: input._milliseconds,
  2525. d: input._days,
  2526. M: input._months
  2527. };
  2528. } else if (isNumber(input)) {
  2529. duration = {};
  2530. if (key) {
  2531. duration[key] = input;
  2532. } else {
  2533. duration.milliseconds = input;
  2534. }
  2535. } else if (!!(match = aspNetRegex.exec(input))) {
  2536. sign = (match[1] === '-') ? -1 : 1;
  2537. duration = {
  2538. y: 0,
  2539. d: toInt(match[DATE]) * sign,
  2540. h: toInt(match[HOUR]) * sign,
  2541. m: toInt(match[MINUTE]) * sign,
  2542. s: toInt(match[SECOND]) * sign,
  2543. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  2544. };
  2545. } else if (!!(match = isoRegex.exec(input))) {
  2546. sign = (match[1] === '-') ? -1 : 1;
  2547. duration = {
  2548. y: parseIso(match[2], sign),
  2549. M: parseIso(match[3], sign),
  2550. w: parseIso(match[4], sign),
  2551. d: parseIso(match[5], sign),
  2552. h: parseIso(match[6], sign),
  2553. m: parseIso(match[7], sign),
  2554. s: parseIso(match[8], sign)
  2555. };
  2556. } else if (duration == null) {// checks for null or undefined
  2557. duration = {};
  2558. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  2559. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  2560. duration = {};
  2561. duration.ms = diffRes.milliseconds;
  2562. duration.M = diffRes.months;
  2563. }
  2564. ret = new Duration(duration);
  2565. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  2566. ret._locale = input._locale;
  2567. }
  2568. return ret;
  2569. }
  2570. createDuration.fn = Duration.prototype;
  2571. createDuration.invalid = createInvalid$1;
  2572. function parseIso(inp, sign) {
  2573. // We'd normally use ~~inp for this, but unfortunately it also
  2574. // converts floats to ints.
  2575. // inp may be undefined, so careful calling replace on it.
  2576. var res = inp && parseFloat(inp.replace(',', '.'));
  2577. // apply sign while we're at it
  2578. return (isNaN(res) ? 0 : res) * sign;
  2579. }
  2580. function positiveMomentsDifference(base, other) {
  2581. var res = {milliseconds: 0, months: 0};
  2582. res.months = other.month() - base.month() +
  2583. (other.year() - base.year()) * 12;
  2584. if (base.clone().add(res.months, 'M').isAfter(other)) {
  2585. --res.months;
  2586. }
  2587. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  2588. return res;
  2589. }
  2590. function momentsDifference(base, other) {
  2591. var res;
  2592. if (!(base.isValid() && other.isValid())) {
  2593. return {milliseconds: 0, months: 0};
  2594. }
  2595. other = cloneWithOffset(other, base);
  2596. if (base.isBefore(other)) {
  2597. res = positiveMomentsDifference(base, other);
  2598. } else {
  2599. res = positiveMomentsDifference(other, base);
  2600. res.milliseconds = -res.milliseconds;
  2601. res.months = -res.months;
  2602. }
  2603. return res;
  2604. }
  2605. // TODO: remove 'name' arg after deprecation is removed
  2606. function createAdder(direction, name) {
  2607. return function (val, period) {
  2608. var dur, tmp;
  2609. //invert the arguments, but complain about it
  2610. if (period !== null && !isNaN(+period)) {
  2611. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
  2612. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  2613. tmp = val;
  2614. val = period;
  2615. period = tmp;
  2616. }
  2617. val = typeof val === 'string' ? +val : val;
  2618. dur = createDuration(val, period);
  2619. addSubtract(this, dur, direction);
  2620. return this;
  2621. };
  2622. }
  2623. function addSubtract(mom, duration, isAdding, updateOffset) {
  2624. var milliseconds = duration._milliseconds,
  2625. days = absRound(duration._days),
  2626. months = absRound(duration._months);
  2627. if (!mom.isValid()) {
  2628. // No op
  2629. return;
  2630. }
  2631. updateOffset = updateOffset == null ? true : updateOffset;
  2632. if (milliseconds) {
  2633. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  2634. }
  2635. if (days) {
  2636. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  2637. }
  2638. if (months) {
  2639. setMonth(mom, get(mom, 'Month') + months * isAdding);
  2640. }
  2641. if (updateOffset) {
  2642. hooks.updateOffset(mom, days || months);
  2643. }
  2644. }
  2645. var add = createAdder(1, 'add');
  2646. var subtract = createAdder(-1, 'subtract');
  2647. function getCalendarFormat(myMoment, now) {
  2648. var diff = myMoment.diff(now, 'days', true);
  2649. return diff < -6 ? 'sameElse' :
  2650. diff < -1 ? 'lastWeek' :
  2651. diff < 0 ? 'lastDay' :
  2652. diff < 1 ? 'sameDay' :
  2653. diff < 2 ? 'nextDay' :
  2654. diff < 7 ? 'nextWeek' : 'sameElse';
  2655. }
  2656. function calendar$1(time, formats) {
  2657. // We want to compare the start of today, vs this.
  2658. // Getting start-of-today depends on whether we're local/utc/offset or not.
  2659. var now = time || createLocal(),
  2660. sod = cloneWithOffset(now, this).startOf('day'),
  2661. format = hooks.calendarFormat(this, sod) || 'sameElse';
  2662. var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  2663. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  2664. }
  2665. function clone() {
  2666. return new Moment(this);
  2667. }
  2668. function isAfter(input, units) {
  2669. var localInput = isMoment(input) ? input : createLocal(input);
  2670. if (!(this.isValid() && localInput.isValid())) {
  2671. return false;
  2672. }
  2673. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  2674. if (units === 'millisecond') {
  2675. return this.valueOf() > localInput.valueOf();
  2676. } else {
  2677. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  2678. }
  2679. }
  2680. function isBefore(input, units) {
  2681. var localInput = isMoment(input) ? input : createLocal(input);
  2682. if (!(this.isValid() && localInput.isValid())) {
  2683. return false;
  2684. }
  2685. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  2686. if (units === 'millisecond') {
  2687. return this.valueOf() < localInput.valueOf();
  2688. } else {
  2689. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  2690. }
  2691. }
  2692. function isBetween(from, to, units, inclusivity) {
  2693. inclusivity = inclusivity || '()';
  2694. return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
  2695. (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
  2696. }
  2697. function isSame(input, units) {
  2698. var localInput = isMoment(input) ? input : createLocal(input),
  2699. inputMs;
  2700. if (!(this.isValid() && localInput.isValid())) {
  2701. return false;
  2702. }
  2703. units = normalizeUnits(units || 'millisecond');
  2704. if (units === 'millisecond') {
  2705. return this.valueOf() === localInput.valueOf();
  2706. } else {
  2707. inputMs = localInput.valueOf();
  2708. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  2709. }
  2710. }
  2711. function isSameOrAfter(input, units) {
  2712. return this.isSame(input, units) || this.isAfter(input, units);
  2713. }
  2714. function isSameOrBefore(input, units) {
  2715. return this.isSame(input, units) || this.isBefore(input, units);
  2716. }
  2717. function diff(input, units, asFloat) {
  2718. var that,
  2719. zoneDelta,
  2720. delta, output;
  2721. if (!this.isValid()) {
  2722. return NaN;
  2723. }
  2724. that = cloneWithOffset(input, this);
  2725. if (!that.isValid()) {
  2726. return NaN;
  2727. }
  2728. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  2729. units = normalizeUnits(units);
  2730. if (units === 'year' || units === 'month' || units === 'quarter') {
  2731. output = monthDiff(this, that);
  2732. if (units === 'quarter') {
  2733. output = output / 3;
  2734. } else if (units === 'year') {
  2735. output = output / 12;
  2736. }
  2737. } else {
  2738. delta = this - that;
  2739. output = units === 'second' ? delta / 1e3 : // 1000
  2740. units === 'minute' ? delta / 6e4 : // 1000 * 60
  2741. units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60
  2742. units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
  2743. units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
  2744. delta;
  2745. }
  2746. return asFloat ? output : absFloor(output);
  2747. }
  2748. function monthDiff(a, b) {
  2749. // difference in months
  2750. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  2751. // b is in (anchor - 1 month, anchor + 1 month)
  2752. anchor = a.clone().add(wholeMonthDiff, 'months'),
  2753. anchor2, adjust;
  2754. if (b - anchor < 0) {
  2755. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  2756. // linear across the month
  2757. adjust = (b - anchor) / (anchor - anchor2);
  2758. } else {
  2759. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  2760. // linear across the month
  2761. adjust = (b - anchor) / (anchor2 - anchor);
  2762. }
  2763. //check for negative zero, return zero if negative zero
  2764. return -(wholeMonthDiff + adjust) || 0;
  2765. }
  2766. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  2767. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  2768. function toString() {
  2769. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  2770. }
  2771. function toISOString() {
  2772. if (!this.isValid()) {
  2773. return null;
  2774. }
  2775. var m = this.clone().utc();
  2776. if (m.year() < 0 || m.year() > 9999) {
  2777. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  2778. }
  2779. if (isFunction(Date.prototype.toISOString)) {
  2780. // native implementation is ~50x faster, use it when we can
  2781. return this.toDate().toISOString();
  2782. }
  2783. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  2784. }
  2785. /**
  2786. * Return a human readable representation of a moment that can
  2787. * also be evaluated to get a new moment which is the same
  2788. *
  2789. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  2790. */
  2791. function inspect() {
  2792. if (!this.isValid()) {
  2793. return 'moment.invalid(/* ' + this._i + ' */)';
  2794. }
  2795. var func = 'moment';
  2796. var zone = '';
  2797. if (!this.isLocal()) {
  2798. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  2799. zone = 'Z';
  2800. }
  2801. var prefix = '[' + func + '("]';
  2802. var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
  2803. var datetime = '-MM-DD[T]HH:mm:ss.SSS';
  2804. var suffix = zone + '[")]';
  2805. return this.format(prefix + year + datetime + suffix);
  2806. }
  2807. function format(inputString) {
  2808. if (!inputString) {
  2809. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  2810. }
  2811. var output = formatMoment(this, inputString);
  2812. return this.localeData().postformat(output);
  2813. }
  2814. function from(time, withoutSuffix) {
  2815. if (this.isValid() &&
  2816. ((isMoment(time) && time.isValid()) ||
  2817. createLocal(time).isValid())) {
  2818. return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  2819. } else {
  2820. return this.localeData().invalidDate();
  2821. }
  2822. }
  2823. function fromNow(withoutSuffix) {
  2824. return this.from(createLocal(), withoutSuffix);
  2825. }
  2826. function to(time, withoutSuffix) {
  2827. if (this.isValid() &&
  2828. ((isMoment(time) && time.isValid()) ||
  2829. createLocal(time).isValid())) {
  2830. return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  2831. } else {
  2832. return this.localeData().invalidDate();
  2833. }
  2834. }
  2835. function toNow(withoutSuffix) {
  2836. return this.to(createLocal(), withoutSuffix);
  2837. }
  2838. // If passed a locale key, it will set the locale for this
  2839. // instance. Otherwise, it will return the locale configuration
  2840. // variables for this instance.
  2841. function locale(key) {
  2842. var newLocaleData;
  2843. if (key === undefined) {
  2844. return this._locale._abbr;
  2845. } else {
  2846. newLocaleData = getLocale(key);
  2847. if (newLocaleData != null) {
  2848. this._locale = newLocaleData;
  2849. }
  2850. return this;
  2851. }
  2852. }
  2853. var lang = deprecate(
  2854. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  2855. function (key) {
  2856. if (key === undefined) {
  2857. return this.localeData();
  2858. } else {
  2859. return this.locale(key);
  2860. }
  2861. }
  2862. );
  2863. function localeData() {
  2864. return this._locale;
  2865. }
  2866. function startOf(units) {
  2867. units = normalizeUnits(units);
  2868. // the following switch intentionally omits break keywords
  2869. // to utilize falling through the cases.
  2870. switch (units) {
  2871. case 'year':
  2872. this.month(0);
  2873. /* falls through */
  2874. case 'quarter':
  2875. case 'month':
  2876. this.date(1);
  2877. /* falls through */
  2878. case 'week':
  2879. case 'isoWeek':
  2880. case 'day':
  2881. case 'date':
  2882. this.hours(0);
  2883. /* falls through */
  2884. case 'hour':
  2885. this.minutes(0);
  2886. /* falls through */
  2887. case 'minute':
  2888. this.seconds(0);
  2889. /* falls through */
  2890. case 'second':
  2891. this.milliseconds(0);
  2892. }
  2893. // weeks are a special case
  2894. if (units === 'week') {
  2895. this.weekday(0);
  2896. }
  2897. if (units === 'isoWeek') {
  2898. this.isoWeekday(1);
  2899. }
  2900. // quarters are also special
  2901. if (units === 'quarter') {
  2902. this.month(Math.floor(this.month() / 3) * 3);
  2903. }
  2904. return this;
  2905. }
  2906. function endOf(units) {
  2907. units = normalizeUnits(units);
  2908. if (units === undefined || units === 'millisecond') {
  2909. return this;
  2910. }
  2911. // 'date' is an alias for 'day', so it should be considered as such.
  2912. if (units === 'date') {
  2913. units = 'day';
  2914. }
  2915. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  2916. }
  2917. function valueOf() {
  2918. return this._d.valueOf() - ((this._offset || 0) * 60000);
  2919. }
  2920. function unix() {
  2921. return Math.floor(this.valueOf() / 1000);
  2922. }
  2923. function toDate() {
  2924. return new Date(this.valueOf());
  2925. }
  2926. function toArray() {
  2927. var m = this;
  2928. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  2929. }
  2930. function toObject() {
  2931. var m = this;
  2932. return {
  2933. years: m.year(),
  2934. months: m.month(),
  2935. date: m.date(),
  2936. hours: m.hours(),
  2937. minutes: m.minutes(),
  2938. seconds: m.seconds(),
  2939. milliseconds: m.milliseconds()
  2940. };
  2941. }
  2942. function toJSON() {
  2943. // new Date(NaN).toJSON() === null
  2944. return this.isValid() ? this.toISOString() : null;
  2945. }
  2946. function isValid$2() {
  2947. return isValid(this);
  2948. }
  2949. function parsingFlags() {
  2950. return extend({}, getParsingFlags(this));
  2951. }
  2952. function invalidAt() {
  2953. return getParsingFlags(this).overflow;
  2954. }
  2955. function creationData() {
  2956. return {
  2957. input: this._i,
  2958. format: this._f,
  2959. locale: this._locale,
  2960. isUTC: this._isUTC,
  2961. strict: this._strict
  2962. };
  2963. }
  2964. // FORMATTING
  2965. addFormatToken(0, ['gg', 2], 0, function () {
  2966. return this.weekYear() % 100;
  2967. });
  2968. addFormatToken(0, ['GG', 2], 0, function () {
  2969. return this.isoWeekYear() % 100;
  2970. });
  2971. function addWeekYearFormatToken(token, getter) {
  2972. addFormatToken(0, [token, token.length], 0, getter);
  2973. }
  2974. addWeekYearFormatToken('gggg', 'weekYear');
  2975. addWeekYearFormatToken('ggggg', 'weekYear');
  2976. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  2977. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  2978. // ALIASES
  2979. addUnitAlias('weekYear', 'gg');
  2980. addUnitAlias('isoWeekYear', 'GG');
  2981. // PRIORITY
  2982. addUnitPriority('weekYear', 1);
  2983. addUnitPriority('isoWeekYear', 1);
  2984. // PARSING
  2985. addRegexToken('G', matchSigned);
  2986. addRegexToken('g', matchSigned);
  2987. addRegexToken('GG', match1to2, match2);
  2988. addRegexToken('gg', match1to2, match2);
  2989. addRegexToken('GGGG', match1to4, match4);
  2990. addRegexToken('gggg', match1to4, match4);
  2991. addRegexToken('GGGGG', match1to6, match6);
  2992. addRegexToken('ggggg', match1to6, match6);
  2993. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  2994. week[token.substr(0, 2)] = toInt(input);
  2995. });
  2996. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  2997. week[token] = hooks.parseTwoDigitYear(input);
  2998. });
  2999. // MOMENTS
  3000. function getSetWeekYear(input) {
  3001. return getSetWeekYearHelper.call(this,
  3002. input,
  3003. this.week(),
  3004. this.weekday(),
  3005. this.localeData()._week.dow,
  3006. this.localeData()._week.doy);
  3007. }
  3008. function getSetISOWeekYear(input) {
  3009. return getSetWeekYearHelper.call(this,
  3010. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  3011. }
  3012. function getISOWeeksInYear() {
  3013. return weeksInYear(this.year(), 1, 4);
  3014. }
  3015. function getWeeksInYear() {
  3016. var weekInfo = this.localeData()._week;
  3017. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  3018. }
  3019. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  3020. var weeksTarget;
  3021. if (input == null) {
  3022. return weekOfYear(this, dow, doy).year;
  3023. } else {
  3024. weeksTarget = weeksInYear(input, dow, doy);
  3025. if (week > weeksTarget) {
  3026. week = weeksTarget;
  3027. }
  3028. return setWeekAll.call(this, input, week, weekday, dow, doy);
  3029. }
  3030. }
  3031. function setWeekAll(weekYear, week, weekday, dow, doy) {
  3032. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  3033. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  3034. this.year(date.getUTCFullYear());
  3035. this.month(date.getUTCMonth());
  3036. this.date(date.getUTCDate());
  3037. return this;
  3038. }
  3039. // FORMATTING
  3040. addFormatToken('Q', 0, 'Qo', 'quarter');
  3041. // ALIASES
  3042. addUnitAlias('quarter', 'Q');
  3043. // PRIORITY
  3044. addUnitPriority('quarter', 7);
  3045. // PARSING
  3046. addRegexToken('Q', match1);
  3047. addParseToken('Q', function (input, array) {
  3048. array[MONTH] = (toInt(input) - 1) * 3;
  3049. });
  3050. // MOMENTS
  3051. function getSetQuarter(input) {
  3052. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  3053. }
  3054. // FORMATTING
  3055. addFormatToken('D', ['DD', 2], 'Do', 'date');
  3056. // ALIASES
  3057. addUnitAlias('date', 'D');
  3058. // PRIOROITY
  3059. addUnitPriority('date', 9);
  3060. // PARSING
  3061. addRegexToken('D', match1to2);
  3062. addRegexToken('DD', match1to2, match2);
  3063. addRegexToken('Do', function (isStrict, locale) {
  3064. // TODO: Remove "ordinalParse" fallback in next major release.
  3065. return isStrict ?
  3066. (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
  3067. locale._dayOfMonthOrdinalParseLenient;
  3068. });
  3069. addParseToken(['D', 'DD'], DATE);
  3070. addParseToken('Do', function (input, array) {
  3071. array[DATE] = toInt(input.match(match1to2)[0], 10);
  3072. });
  3073. // MOMENTS
  3074. var getSetDayOfMonth = makeGetSet('Date', true);
  3075. // FORMATTING
  3076. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  3077. // ALIASES
  3078. addUnitAlias('dayOfYear', 'DDD');
  3079. // PRIORITY
  3080. addUnitPriority('dayOfYear', 4);
  3081. // PARSING
  3082. addRegexToken('DDD', match1to3);
  3083. addRegexToken('DDDD', match3);
  3084. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  3085. config._dayOfYear = toInt(input);
  3086. });
  3087. // HELPERS
  3088. // MOMENTS
  3089. function getSetDayOfYear(input) {
  3090. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  3091. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  3092. }
  3093. // FORMATTING
  3094. addFormatToken('m', ['mm', 2], 0, 'minute');
  3095. // ALIASES
  3096. addUnitAlias('minute', 'm');
  3097. // PRIORITY
  3098. addUnitPriority('minute', 14);
  3099. // PARSING
  3100. addRegexToken('m', match1to2);
  3101. addRegexToken('mm', match1to2, match2);
  3102. addParseToken(['m', 'mm'], MINUTE);
  3103. // MOMENTS
  3104. var getSetMinute = makeGetSet('Minutes', false);
  3105. // FORMATTING
  3106. addFormatToken('s', ['ss', 2], 0, 'second');
  3107. // ALIASES
  3108. addUnitAlias('second', 's');
  3109. // PRIORITY
  3110. addUnitPriority('second', 15);
  3111. // PARSING
  3112. addRegexToken('s', match1to2);
  3113. addRegexToken('ss', match1to2, match2);
  3114. addParseToken(['s', 'ss'], SECOND);
  3115. // MOMENTS
  3116. var getSetSecond = makeGetSet('Seconds', false);
  3117. // FORMATTING
  3118. addFormatToken('S', 0, 0, function () {
  3119. return ~~(this.millisecond() / 100);
  3120. });
  3121. addFormatToken(0, ['SS', 2], 0, function () {
  3122. return ~~(this.millisecond() / 10);
  3123. });
  3124. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  3125. addFormatToken(0, ['SSSS', 4], 0, function () {
  3126. return this.millisecond() * 10;
  3127. });
  3128. addFormatToken(0, ['SSSSS', 5], 0, function () {
  3129. return this.millisecond() * 100;
  3130. });
  3131. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  3132. return this.millisecond() * 1000;
  3133. });
  3134. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  3135. return this.millisecond() * 10000;
  3136. });
  3137. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  3138. return this.millisecond() * 100000;
  3139. });
  3140. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  3141. return this.millisecond() * 1000000;
  3142. });
  3143. // ALIASES
  3144. addUnitAlias('millisecond', 'ms');
  3145. // PRIORITY
  3146. addUnitPriority('millisecond', 16);
  3147. // PARSING
  3148. addRegexToken('S', match1to3, match1);
  3149. addRegexToken('SS', match1to3, match2);
  3150. addRegexToken('SSS', match1to3, match3);
  3151. var token;
  3152. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  3153. addRegexToken(token, matchUnsigned);
  3154. }
  3155. function parseMs(input, array) {
  3156. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  3157. }
  3158. for (token = 'S'; token.length <= 9; token += 'S') {
  3159. addParseToken(token, parseMs);
  3160. }
  3161. // MOMENTS
  3162. var getSetMillisecond = makeGetSet('Milliseconds', false);
  3163. // FORMATTING
  3164. addFormatToken('z', 0, 0, 'zoneAbbr');
  3165. addFormatToken('zz', 0, 0, 'zoneName');
  3166. // MOMENTS
  3167. function getZoneAbbr() {
  3168. return this._isUTC ? 'UTC' : '';
  3169. }
  3170. function getZoneName() {
  3171. return this._isUTC ? 'Coordinated Universal Time' : '';
  3172. }
  3173. var proto = Moment.prototype;
  3174. proto.add = add;
  3175. proto.calendar = calendar$1;
  3176. proto.clone = clone;
  3177. proto.diff = diff;
  3178. proto.endOf = endOf;
  3179. proto.format = format;
  3180. proto.from = from;
  3181. proto.fromNow = fromNow;
  3182. proto.to = to;
  3183. proto.toNow = toNow;
  3184. proto.get = stringGet;
  3185. proto.invalidAt = invalidAt;
  3186. proto.isAfter = isAfter;
  3187. proto.isBefore = isBefore;
  3188. proto.isBetween = isBetween;
  3189. proto.isSame = isSame;
  3190. proto.isSameOrAfter = isSameOrAfter;
  3191. proto.isSameOrBefore = isSameOrBefore;
  3192. proto.isValid = isValid$2;
  3193. proto.lang = lang;
  3194. proto.locale = locale;
  3195. proto.localeData = localeData;
  3196. proto.max = prototypeMax;
  3197. proto.min = prototypeMin;
  3198. proto.parsingFlags = parsingFlags;
  3199. proto.set = stringSet;
  3200. proto.startOf = startOf;
  3201. proto.subtract = subtract;
  3202. proto.toArray = toArray;
  3203. proto.toObject = toObject;
  3204. proto.toDate = toDate;
  3205. proto.toISOString = toISOString;
  3206. proto.inspect = inspect;
  3207. proto.toJSON = toJSON;
  3208. proto.toString = toString;
  3209. proto.unix = unix;
  3210. proto.valueOf = valueOf;
  3211. proto.creationData = creationData;
  3212. // Year
  3213. proto.year = getSetYear;
  3214. proto.isLeapYear = getIsLeapYear;
  3215. // Week Year
  3216. proto.weekYear = getSetWeekYear;
  3217. proto.isoWeekYear = getSetISOWeekYear;
  3218. // Quarter
  3219. proto.quarter = proto.quarters = getSetQuarter;
  3220. // Month
  3221. proto.month = getSetMonth;
  3222. proto.daysInMonth = getDaysInMonth;
  3223. // Week
  3224. proto.week = proto.weeks = getSetWeek;
  3225. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  3226. proto.weeksInYear = getWeeksInYear;
  3227. proto.isoWeeksInYear = getISOWeeksInYear;
  3228. // Day
  3229. proto.date = getSetDayOfMonth;
  3230. proto.day = proto.days = getSetDayOfWeek;
  3231. proto.weekday = getSetLocaleDayOfWeek;
  3232. proto.isoWeekday = getSetISODayOfWeek;
  3233. proto.dayOfYear = getSetDayOfYear;
  3234. // Hour
  3235. proto.hour = proto.hours = getSetHour;
  3236. // Minute
  3237. proto.minute = proto.minutes = getSetMinute;
  3238. // Second
  3239. proto.second = proto.seconds = getSetSecond;
  3240. // Millisecond
  3241. proto.millisecond = proto.milliseconds = getSetMillisecond;
  3242. // Offset
  3243. proto.utcOffset = getSetOffset;
  3244. proto.utc = setOffsetToUTC;
  3245. proto.local = setOffsetToLocal;
  3246. proto.parseZone = setOffsetToParsedOffset;
  3247. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  3248. proto.isDST = isDaylightSavingTime;
  3249. proto.isLocal = isLocal;
  3250. proto.isUtcOffset = isUtcOffset;
  3251. proto.isUtc = isUtc;
  3252. proto.isUTC = isUtc;
  3253. // Timezone
  3254. proto.zoneAbbr = getZoneAbbr;
  3255. proto.zoneName = getZoneName;
  3256. // Deprecations
  3257. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  3258. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  3259. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  3260. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  3261. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  3262. function createUnix(input) {
  3263. return createLocal(input * 1000);
  3264. }
  3265. function createInZone() {
  3266. return createLocal.apply(null, arguments).parseZone();
  3267. }
  3268. function preParsePostFormat(string) {
  3269. return string;
  3270. }
  3271. var proto$1 = Locale.prototype;
  3272. proto$1.calendar = calendar;
  3273. proto$1.longDateFormat = longDateFormat;
  3274. proto$1.invalidDate = invalidDate;
  3275. proto$1.ordinal = ordinal;
  3276. proto$1.preparse = preParsePostFormat;
  3277. proto$1.postformat = preParsePostFormat;
  3278. proto$1.relativeTime = relativeTime;
  3279. proto$1.pastFuture = pastFuture;
  3280. proto$1.set = set;
  3281. // Month
  3282. proto$1.months = localeMonths;
  3283. proto$1.monthsShort = localeMonthsShort;
  3284. proto$1.monthsParse = localeMonthsParse;
  3285. proto$1.monthsRegex = monthsRegex;
  3286. proto$1.monthsShortRegex = monthsShortRegex;
  3287. // Week
  3288. proto$1.week = localeWeek;
  3289. proto$1.firstDayOfYear = localeFirstDayOfYear;
  3290. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  3291. // Day of Week
  3292. proto$1.weekdays = localeWeekdays;
  3293. proto$1.weekdaysMin = localeWeekdaysMin;
  3294. proto$1.weekdaysShort = localeWeekdaysShort;
  3295. proto$1.weekdaysParse = localeWeekdaysParse;
  3296. proto$1.weekdaysRegex = weekdaysRegex;
  3297. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  3298. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  3299. // Hours
  3300. proto$1.isPM = localeIsPM;
  3301. proto$1.meridiem = localeMeridiem;
  3302. function get$1(format, index, field, setter) {
  3303. var locale = getLocale();
  3304. var utc = createUTC().set(setter, index);
  3305. return locale[field](utc, format);
  3306. }
  3307. function listMonthsImpl(format, index, field) {
  3308. if (isNumber(format)) {
  3309. index = format;
  3310. format = undefined;
  3311. }
  3312. format = format || '';
  3313. if (index != null) {
  3314. return get$1(format, index, field, 'month');
  3315. }
  3316. var i;
  3317. var out = [];
  3318. for (i = 0; i < 12; i++) {
  3319. out[i] = get$1(format, i, field, 'month');
  3320. }
  3321. return out;
  3322. }
  3323. // ()
  3324. // (5)
  3325. // (fmt, 5)
  3326. // (fmt)
  3327. // (true)
  3328. // (true, 5)
  3329. // (true, fmt, 5)
  3330. // (true, fmt)
  3331. function listWeekdaysImpl(localeSorted, format, index, field) {
  3332. if (typeof localeSorted === 'boolean') {
  3333. if (isNumber(format)) {
  3334. index = format;
  3335. format = undefined;
  3336. }
  3337. format = format || '';
  3338. } else {
  3339. format = localeSorted;
  3340. index = format;
  3341. localeSorted = false;
  3342. if (isNumber(format)) {
  3343. index = format;
  3344. format = undefined;
  3345. }
  3346. format = format || '';
  3347. }
  3348. var locale = getLocale(),
  3349. shift = localeSorted ? locale._week.dow : 0;
  3350. if (index != null) {
  3351. return get$1(format, (index + shift) % 7, field, 'day');
  3352. }
  3353. var i;
  3354. var out = [];
  3355. for (i = 0; i < 7; i++) {
  3356. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  3357. }
  3358. return out;
  3359. }
  3360. function listMonths(format, index) {
  3361. return listMonthsImpl(format, index, 'months');
  3362. }
  3363. function listMonthsShort(format, index) {
  3364. return listMonthsImpl(format, index, 'monthsShort');
  3365. }
  3366. function listWeekdays(localeSorted, format, index) {
  3367. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  3368. }
  3369. function listWeekdaysShort(localeSorted, format, index) {
  3370. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  3371. }
  3372. function listWeekdaysMin(localeSorted, format, index) {
  3373. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  3374. }
  3375. getSetGlobalLocale('en', {
  3376. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  3377. ordinal: function (number) {
  3378. var b = number % 10,
  3379. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  3380. (b === 1) ? 'st' :
  3381. (b === 2) ? 'nd' :
  3382. (b === 3) ? 'rd' : 'th';
  3383. return number + output;
  3384. }
  3385. });
  3386. // Side effect imports
  3387. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  3388. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  3389. var mathAbs = Math.abs;
  3390. function abs() {
  3391. var data = this._data;
  3392. this._milliseconds = mathAbs(this._milliseconds);
  3393. this._days = mathAbs(this._days);
  3394. this._months = mathAbs(this._months);
  3395. data.milliseconds = mathAbs(data.milliseconds);
  3396. data.seconds = mathAbs(data.seconds);
  3397. data.minutes = mathAbs(data.minutes);
  3398. data.hours = mathAbs(data.hours);
  3399. data.months = mathAbs(data.months);
  3400. data.years = mathAbs(data.years);
  3401. return this;
  3402. }
  3403. function addSubtract$1(duration, input, value, direction) {
  3404. var other = createDuration(input, value);
  3405. duration._milliseconds += direction * other._milliseconds;
  3406. duration._days += direction * other._days;
  3407. duration._months += direction * other._months;
  3408. return duration._bubble();
  3409. }
  3410. // supports only 2.0-style add(1, 's') or add(duration)
  3411. function add$1(input, value) {
  3412. return addSubtract$1(this, input, value, 1);
  3413. }
  3414. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  3415. function subtract$1(input, value) {
  3416. return addSubtract$1(this, input, value, -1);
  3417. }
  3418. function absCeil(number) {
  3419. if (number < 0) {
  3420. return Math.floor(number);
  3421. } else {
  3422. return Math.ceil(number);
  3423. }
  3424. }
  3425. function bubble() {
  3426. var milliseconds = this._milliseconds;
  3427. var days = this._days;
  3428. var months = this._months;
  3429. var data = this._data;
  3430. var seconds, minutes, hours, years, monthsFromDays;
  3431. // if we have a mix of positive and negative values, bubble down first
  3432. // check: https://github.com/moment/moment/issues/2166
  3433. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  3434. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  3435. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  3436. days = 0;
  3437. months = 0;
  3438. }
  3439. // The following code bubbles up values, see the tests for
  3440. // examples of what that means.
  3441. data.milliseconds = milliseconds % 1000;
  3442. seconds = absFloor(milliseconds / 1000);
  3443. data.seconds = seconds % 60;
  3444. minutes = absFloor(seconds / 60);
  3445. data.minutes = minutes % 60;
  3446. hours = absFloor(minutes / 60);
  3447. data.hours = hours % 24;
  3448. days += absFloor(hours / 24);
  3449. // convert days to months
  3450. monthsFromDays = absFloor(daysToMonths(days));
  3451. months += monthsFromDays;
  3452. days -= absCeil(monthsToDays(monthsFromDays));
  3453. // 12 months -> 1 year
  3454. years = absFloor(months / 12);
  3455. months %= 12;
  3456. data.days = days;
  3457. data.months = months;
  3458. data.years = years;
  3459. return this;
  3460. }
  3461. function daysToMonths(days) {
  3462. // 400 years have 146097 days (taking into account leap year rules)
  3463. // 400 years have 12 months === 4800
  3464. return days * 4800 / 146097;
  3465. }
  3466. function monthsToDays(months) {
  3467. // the reverse of daysToMonths
  3468. return months * 146097 / 4800;
  3469. }
  3470. function as(units) {
  3471. if (!this.isValid()) {
  3472. return NaN;
  3473. }
  3474. var days;
  3475. var months;
  3476. var milliseconds = this._milliseconds;
  3477. units = normalizeUnits(units);
  3478. if (units === 'month' || units === 'year') {
  3479. days = this._days + milliseconds / 864e5;
  3480. months = this._months + daysToMonths(days);
  3481. return units === 'month' ? months : months / 12;
  3482. } else {
  3483. // handle milliseconds separately because of floating point math errors (issue #1867)
  3484. days = this._days + Math.round(monthsToDays(this._months));
  3485. switch (units) {
  3486. case 'week' :
  3487. return days / 7 + milliseconds / 6048e5;
  3488. case 'day' :
  3489. return days + milliseconds / 864e5;
  3490. case 'hour' :
  3491. return days * 24 + milliseconds / 36e5;
  3492. case 'minute' :
  3493. return days * 1440 + milliseconds / 6e4;
  3494. case 'second' :
  3495. return days * 86400 + milliseconds / 1000;
  3496. // Math.floor prevents floating point math errors here
  3497. case 'millisecond':
  3498. return Math.floor(days * 864e5) + milliseconds;
  3499. default:
  3500. throw new Error('Unknown unit ' + units);
  3501. }
  3502. }
  3503. }
  3504. // TODO: Use this.as('ms')?
  3505. function valueOf$1() {
  3506. if (!this.isValid()) {
  3507. return NaN;
  3508. }
  3509. return (
  3510. this._milliseconds +
  3511. this._days * 864e5 +
  3512. (this._months % 12) * 2592e6 +
  3513. toInt(this._months / 12) * 31536e6
  3514. );
  3515. }
  3516. function makeAs(alias) {
  3517. return function () {
  3518. return this.as(alias);
  3519. };
  3520. }
  3521. var asMilliseconds = makeAs('ms');
  3522. var asSeconds = makeAs('s');
  3523. var asMinutes = makeAs('m');
  3524. var asHours = makeAs('h');
  3525. var asDays = makeAs('d');
  3526. var asWeeks = makeAs('w');
  3527. var asMonths = makeAs('M');
  3528. var asYears = makeAs('y');
  3529. function get$2(units) {
  3530. units = normalizeUnits(units);
  3531. return this.isValid() ? this[units + 's']() : NaN;
  3532. }
  3533. function makeGetter(name) {
  3534. return function () {
  3535. return this.isValid() ? this._data[name] : NaN;
  3536. };
  3537. }
  3538. var milliseconds = makeGetter('milliseconds');
  3539. var seconds = makeGetter('seconds');
  3540. var minutes = makeGetter('minutes');
  3541. var hours = makeGetter('hours');
  3542. var days = makeGetter('days');
  3543. var months = makeGetter('months');
  3544. var years = makeGetter('years');
  3545. function weeks() {
  3546. return absFloor(this.days() / 7);
  3547. }
  3548. var round = Math.round;
  3549. var thresholds = {
  3550. ss: 44, // a few seconds to seconds
  3551. s: 45, // seconds to minute
  3552. m: 45, // minutes to hour
  3553. h: 22, // hours to day
  3554. d: 26, // days to month
  3555. M: 11 // months to year
  3556. };
  3557. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  3558. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  3559. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  3560. }
  3561. function relativeTime$1(posNegDuration, withoutSuffix, locale) {
  3562. var duration = createDuration(posNegDuration).abs();
  3563. var seconds = round(duration.as('s'));
  3564. var minutes = round(duration.as('m'));
  3565. var hours = round(duration.as('h'));
  3566. var days = round(duration.as('d'));
  3567. var months = round(duration.as('M'));
  3568. var years = round(duration.as('y'));
  3569. var a = seconds <= thresholds.ss && ['s', seconds] ||
  3570. seconds < thresholds.s && ['ss', seconds] ||
  3571. minutes <= 1 && ['m'] ||
  3572. minutes < thresholds.m && ['mm', minutes] ||
  3573. hours <= 1 && ['h'] ||
  3574. hours < thresholds.h && ['hh', hours] ||
  3575. days <= 1 && ['d'] ||
  3576. days < thresholds.d && ['dd', days] ||
  3577. months <= 1 && ['M'] ||
  3578. months < thresholds.M && ['MM', months] ||
  3579. years <= 1 && ['y'] || ['yy', years];
  3580. a[2] = withoutSuffix;
  3581. a[3] = +posNegDuration > 0;
  3582. a[4] = locale;
  3583. return substituteTimeAgo.apply(null, a);
  3584. }
  3585. // This function allows you to set the rounding function for relative time strings
  3586. function getSetRelativeTimeRounding(roundingFunction) {
  3587. if (roundingFunction === undefined) {
  3588. return round;
  3589. }
  3590. if (typeof(roundingFunction) === 'function') {
  3591. round = roundingFunction;
  3592. return true;
  3593. }
  3594. return false;
  3595. }
  3596. // This function allows you to set a threshold for relative time strings
  3597. function getSetRelativeTimeThreshold(threshold, limit) {
  3598. if (thresholds[threshold] === undefined) {
  3599. return false;
  3600. }
  3601. if (limit === undefined) {
  3602. return thresholds[threshold];
  3603. }
  3604. thresholds[threshold] = limit;
  3605. if (threshold === 's') {
  3606. thresholds.ss = limit - 1;
  3607. }
  3608. return true;
  3609. }
  3610. function humanize(withSuffix) {
  3611. if (!this.isValid()) {
  3612. return this.localeData().invalidDate();
  3613. }
  3614. var locale = this.localeData();
  3615. var output = relativeTime$1(this, !withSuffix, locale);
  3616. if (withSuffix) {
  3617. output = locale.pastFuture(+this, output);
  3618. }
  3619. return locale.postformat(output);
  3620. }
  3621. var abs$1 = Math.abs;
  3622. function toISOString$1() {
  3623. // for ISO strings we do not use the normal bubbling rules:
  3624. // * milliseconds bubble up until they become hours
  3625. // * days do not bubble at all
  3626. // * months bubble up until they become years
  3627. // This is because there is no context-free conversion between hours and days
  3628. // (think of clock changes)
  3629. // and also not between days and months (28-31 days per month)
  3630. if (!this.isValid()) {
  3631. return this.localeData().invalidDate();
  3632. }
  3633. var seconds = abs$1(this._milliseconds) / 1000;
  3634. var days = abs$1(this._days);
  3635. var months = abs$1(this._months);
  3636. var minutes, hours, years;
  3637. // 3600 seconds -> 60 minutes -> 1 hour
  3638. minutes = absFloor(seconds / 60);
  3639. hours = absFloor(minutes / 60);
  3640. seconds %= 60;
  3641. minutes %= 60;
  3642. // 12 months -> 1 year
  3643. years = absFloor(months / 12);
  3644. months %= 12;
  3645. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  3646. var Y = years;
  3647. var M = months;
  3648. var D = days;
  3649. var h = hours;
  3650. var m = minutes;
  3651. var s = seconds;
  3652. var total = this.asSeconds();
  3653. if (!total) {
  3654. // this is the same as C#'s (Noda) and python (isodate)...
  3655. // but not other JS (goog.date)
  3656. return 'P0D';
  3657. }
  3658. return (total < 0 ? '-' : '') +
  3659. 'P' +
  3660. (Y ? Y + 'Y' : '') +
  3661. (M ? M + 'M' : '') +
  3662. (D ? D + 'D' : '') +
  3663. ((h || m || s) ? 'T' : '') +
  3664. (h ? h + 'H' : '') +
  3665. (m ? m + 'M' : '') +
  3666. (s ? s + 'S' : '');
  3667. }
  3668. var proto$2 = Duration.prototype;
  3669. proto$2.isValid = isValid$1;
  3670. proto$2.abs = abs;
  3671. proto$2.add = add$1;
  3672. proto$2.subtract = subtract$1;
  3673. proto$2.as = as;
  3674. proto$2.asMilliseconds = asMilliseconds;
  3675. proto$2.asSeconds = asSeconds;
  3676. proto$2.asMinutes = asMinutes;
  3677. proto$2.asHours = asHours;
  3678. proto$2.asDays = asDays;
  3679. proto$2.asWeeks = asWeeks;
  3680. proto$2.asMonths = asMonths;
  3681. proto$2.asYears = asYears;
  3682. proto$2.valueOf = valueOf$1;
  3683. proto$2._bubble = bubble;
  3684. proto$2.get = get$2;
  3685. proto$2.milliseconds = milliseconds;
  3686. proto$2.seconds = seconds;
  3687. proto$2.minutes = minutes;
  3688. proto$2.hours = hours;
  3689. proto$2.days = days;
  3690. proto$2.weeks = weeks;
  3691. proto$2.months = months;
  3692. proto$2.years = years;
  3693. proto$2.humanize = humanize;
  3694. proto$2.toISOString = toISOString$1;
  3695. proto$2.toString = toISOString$1;
  3696. proto$2.toJSON = toISOString$1;
  3697. proto$2.locale = locale;
  3698. proto$2.localeData = localeData;
  3699. // Deprecations
  3700. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  3701. proto$2.lang = lang;
  3702. // Side effect imports
  3703. // FORMATTING
  3704. addFormatToken('X', 0, 0, 'unix');
  3705. addFormatToken('x', 0, 0, 'valueOf');
  3706. // PARSING
  3707. addRegexToken('x', matchSigned);
  3708. addRegexToken('X', matchTimestamp);
  3709. addParseToken('X', function (input, array, config) {
  3710. config._d = new Date(parseFloat(input, 10) * 1000);
  3711. });
  3712. addParseToken('x', function (input, array, config) {
  3713. config._d = new Date(toInt(input));
  3714. });
  3715. // Side effect imports
  3716. //! moment.js
  3717. //! version : 2.18.1
  3718. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  3719. //! license : MIT
  3720. //! momentjs.com
  3721. hooks.version = '2.18.1';
  3722. setHookCallback(createLocal);
  3723. hooks.fn = proto;
  3724. hooks.min = min;
  3725. hooks.max = max;
  3726. hooks.now = now;
  3727. hooks.utc = createUTC;
  3728. hooks.unix = createUnix;
  3729. hooks.months = listMonths;
  3730. hooks.isDate = isDate;
  3731. hooks.locale = getSetGlobalLocale;
  3732. hooks.invalid = createInvalid;
  3733. hooks.duration = createDuration;
  3734. hooks.isMoment = isMoment;
  3735. hooks.weekdays = listWeekdays;
  3736. hooks.parseZone = createInZone;
  3737. hooks.localeData = getLocale;
  3738. hooks.isDuration = isDuration;
  3739. hooks.monthsShort = listMonthsShort;
  3740. hooks.weekdaysMin = listWeekdaysMin;
  3741. hooks.defineLocale = defineLocale;
  3742. hooks.updateLocale = updateLocale;
  3743. hooks.locales = listLocales;
  3744. hooks.weekdaysShort = listWeekdaysShort;
  3745. hooks.normalizeUnits = normalizeUnits;
  3746. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  3747. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  3748. hooks.calendarFormat = getCalendarFormat;
  3749. hooks.prototype = proto;
  3750. //! moment.js locale configuration
  3751. //! locale : Afrikaans [af]
  3752. //! author : Werner Mollentze : https://github.com/wernerm
  3753. hooks.defineLocale('af', {
  3754. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  3755. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  3756. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  3757. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  3758. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  3759. meridiemParse: /vm|nm/i,
  3760. isPM: function (input) {
  3761. return /^nm$/i.test(input);
  3762. },
  3763. meridiem: function (hours, minutes, isLower) {
  3764. if (hours < 12) {
  3765. return isLower ? 'vm' : 'VM';
  3766. } else {
  3767. return isLower ? 'nm' : 'NM';
  3768. }
  3769. },
  3770. longDateFormat: {
  3771. LT: 'HH:mm',
  3772. LTS: 'HH:mm:ss',
  3773. L: 'DD/MM/YYYY',
  3774. LL: 'D MMMM YYYY',
  3775. LLL: 'D MMMM YYYY HH:mm',
  3776. LLLL: 'dddd, D MMMM YYYY HH:mm'
  3777. },
  3778. calendar: {
  3779. sameDay: '[Vandag om] LT',
  3780. nextDay: '[Môre om] LT',
  3781. nextWeek: 'dddd [om] LT',
  3782. lastDay: '[Gister om] LT',
  3783. lastWeek: '[Laas] dddd [om] LT',
  3784. sameElse: 'L'
  3785. },
  3786. relativeTime: {
  3787. future: 'oor %s',
  3788. past: '%s gelede',
  3789. s: '\'n paar sekondes',
  3790. m: '\'n minuut',
  3791. mm: '%d minute',
  3792. h: '\'n uur',
  3793. hh: '%d ure',
  3794. d: '\'n dag',
  3795. dd: '%d dae',
  3796. M: '\'n maand',
  3797. MM: '%d maande',
  3798. y: '\'n jaar',
  3799. yy: '%d jaar'
  3800. },
  3801. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  3802. ordinal: function (number) {
  3803. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  3804. },
  3805. week: {
  3806. dow: 1, // Maandag is die eerste dag van die week.
  3807. doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  3808. }
  3809. });
  3810. //! moment.js locale configuration
  3811. //! locale : Arabic (Algeria) [ar-dz]
  3812. //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
  3813. hooks.defineLocale('ar-dz', {
  3814. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3815. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3816. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3817. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3818. weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
  3819. weekdaysParseExact: true,
  3820. longDateFormat: {
  3821. LT: 'HH:mm',
  3822. LTS: 'HH:mm:ss',
  3823. L: 'DD/MM/YYYY',
  3824. LL: 'D MMMM YYYY',
  3825. LLL: 'D MMMM YYYY HH:mm',
  3826. LLLL: 'dddd D MMMM YYYY HH:mm'
  3827. },
  3828. calendar: {
  3829. sameDay: '[اليوم على الساعة] LT',
  3830. nextDay: '[غدا على الساعة] LT',
  3831. nextWeek: 'dddd [على الساعة] LT',
  3832. lastDay: '[أمس على الساعة] LT',
  3833. lastWeek: 'dddd [على الساعة] LT',
  3834. sameElse: 'L'
  3835. },
  3836. relativeTime: {
  3837. future: 'في %s',
  3838. past: 'منذ %s',
  3839. s: 'ثوان',
  3840. m: 'دقيقة',
  3841. mm: '%d دقائق',
  3842. h: 'ساعة',
  3843. hh: '%d ساعات',
  3844. d: 'يوم',
  3845. dd: '%d أيام',
  3846. M: 'شهر',
  3847. MM: '%d أشهر',
  3848. y: 'سنة',
  3849. yy: '%d سنوات'
  3850. },
  3851. week: {
  3852. dow: 0, // Sunday is the first day of the week.
  3853. doy: 4 // The week that contains Jan 1st is the first week of the year.
  3854. }
  3855. });
  3856. //! moment.js locale configuration
  3857. //! locale : Arabic (Kuwait) [ar-kw]
  3858. //! author : Nusret Parlak: https://github.com/nusretparlak
  3859. hooks.defineLocale('ar-kw', {
  3860. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3861. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3862. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3863. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3864. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3865. weekdaysParseExact: true,
  3866. longDateFormat: {
  3867. LT: 'HH:mm',
  3868. LTS: 'HH:mm:ss',
  3869. L: 'DD/MM/YYYY',
  3870. LL: 'D MMMM YYYY',
  3871. LLL: 'D MMMM YYYY HH:mm',
  3872. LLLL: 'dddd D MMMM YYYY HH:mm'
  3873. },
  3874. calendar: {
  3875. sameDay: '[اليوم على الساعة] LT',
  3876. nextDay: '[غدا على الساعة] LT',
  3877. nextWeek: 'dddd [على الساعة] LT',
  3878. lastDay: '[أمس على الساعة] LT',
  3879. lastWeek: 'dddd [على الساعة] LT',
  3880. sameElse: 'L'
  3881. },
  3882. relativeTime: {
  3883. future: 'في %s',
  3884. past: 'منذ %s',
  3885. s: 'ثوان',
  3886. m: 'دقيقة',
  3887. mm: '%d دقائق',
  3888. h: 'ساعة',
  3889. hh: '%d ساعات',
  3890. d: 'يوم',
  3891. dd: '%d أيام',
  3892. M: 'شهر',
  3893. MM: '%d أشهر',
  3894. y: 'سنة',
  3895. yy: '%d سنوات'
  3896. },
  3897. week: {
  3898. dow: 0, // Sunday is the first day of the week.
  3899. doy: 12 // The week that contains Jan 1st is the first week of the year.
  3900. }
  3901. });
  3902. //! moment.js locale configuration
  3903. //! locale : Arabic (Lybia) [ar-ly]
  3904. //! author : Ali Hmer: https://github.com/kikoanis
  3905. var symbolMap = {
  3906. '1': '1',
  3907. '2': '2',
  3908. '3': '3',
  3909. '4': '4',
  3910. '5': '5',
  3911. '6': '6',
  3912. '7': '7',
  3913. '8': '8',
  3914. '9': '9',
  3915. '0': '0'
  3916. };
  3917. var pluralForm = function (n) {
  3918. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  3919. };
  3920. var plurals = {
  3921. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  3922. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  3923. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  3924. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  3925. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  3926. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  3927. };
  3928. var pluralize = function (u) {
  3929. return function (number, withoutSuffix, string, isFuture) {
  3930. var f = pluralForm(number),
  3931. str = plurals[u][pluralForm(number)];
  3932. if (f === 2) {
  3933. str = str[withoutSuffix ? 0 : 1];
  3934. }
  3935. return str.replace(/%d/i, number);
  3936. };
  3937. };
  3938. var months$1 = [
  3939. 'يناير',
  3940. 'فبراير',
  3941. 'مارس',
  3942. 'أبريل',
  3943. 'مايو',
  3944. 'يونيو',
  3945. 'يوليو',
  3946. 'أغسطس',
  3947. 'سبتمبر',
  3948. 'أكتوبر',
  3949. 'نوفمبر',
  3950. 'ديسمبر'
  3951. ];
  3952. hooks.defineLocale('ar-ly', {
  3953. months: months$1,
  3954. monthsShort: months$1,
  3955. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3956. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3957. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3958. weekdaysParseExact: true,
  3959. longDateFormat: {
  3960. LT: 'HH:mm',
  3961. LTS: 'HH:mm:ss',
  3962. L: 'D/\u200FM/\u200FYYYY',
  3963. LL: 'D MMMM YYYY',
  3964. LLL: 'D MMMM YYYY HH:mm',
  3965. LLLL: 'dddd D MMMM YYYY HH:mm'
  3966. },
  3967. meridiemParse: /ص|م/,
  3968. isPM: function (input) {
  3969. return 'م' === input;
  3970. },
  3971. meridiem: function (hour, minute, isLower) {
  3972. if (hour < 12) {
  3973. return 'ص';
  3974. } else {
  3975. return 'م';
  3976. }
  3977. },
  3978. calendar: {
  3979. sameDay: '[اليوم عند الساعة] LT',
  3980. nextDay: '[غدًا عند الساعة] LT',
  3981. nextWeek: 'dddd [عند الساعة] LT',
  3982. lastDay: '[أمس عند الساعة] LT',
  3983. lastWeek: 'dddd [عند الساعة] LT',
  3984. sameElse: 'L'
  3985. },
  3986. relativeTime: {
  3987. future: 'بعد %s',
  3988. past: 'منذ %s',
  3989. s: pluralize('s'),
  3990. m: pluralize('m'),
  3991. mm: pluralize('m'),
  3992. h: pluralize('h'),
  3993. hh: pluralize('h'),
  3994. d: pluralize('d'),
  3995. dd: pluralize('d'),
  3996. M: pluralize('M'),
  3997. MM: pluralize('M'),
  3998. y: pluralize('y'),
  3999. yy: pluralize('y')
  4000. },
  4001. preparse: function (string) {
  4002. return string.replace(/\u200f/g, '').replace(/،/g, ',');
  4003. },
  4004. postformat: function (string) {
  4005. return string.replace(/\d/g, function (match) {
  4006. return symbolMap[match];
  4007. }).replace(/,/g, '،');
  4008. },
  4009. week: {
  4010. dow: 6, // Saturday is the first day of the week.
  4011. doy: 12 // The week that contains Jan 1st is the first week of the year.
  4012. }
  4013. });
  4014. //! moment.js locale configuration
  4015. //! locale : Arabic (Morocco) [ar-ma]
  4016. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  4017. //! author : Abdel Said : https://github.com/abdelsaid
  4018. hooks.defineLocale('ar-ma', {
  4019. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  4020. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  4021. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4022. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  4023. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4024. weekdaysParseExact: true,
  4025. longDateFormat: {
  4026. LT: 'HH:mm',
  4027. LTS: 'HH:mm:ss',
  4028. L: 'DD/MM/YYYY',
  4029. LL: 'D MMMM YYYY',
  4030. LLL: 'D MMMM YYYY HH:mm',
  4031. LLLL: 'dddd D MMMM YYYY HH:mm'
  4032. },
  4033. calendar: {
  4034. sameDay: '[اليوم على الساعة] LT',
  4035. nextDay: '[غدا على الساعة] LT',
  4036. nextWeek: 'dddd [على الساعة] LT',
  4037. lastDay: '[أمس على الساعة] LT',
  4038. lastWeek: 'dddd [على الساعة] LT',
  4039. sameElse: 'L'
  4040. },
  4041. relativeTime: {
  4042. future: 'في %s',
  4043. past: 'منذ %s',
  4044. s: 'ثوان',
  4045. m: 'دقيقة',
  4046. mm: '%d دقائق',
  4047. h: 'ساعة',
  4048. hh: '%d ساعات',
  4049. d: 'يوم',
  4050. dd: '%d أيام',
  4051. M: 'شهر',
  4052. MM: '%d أشهر',
  4053. y: 'سنة',
  4054. yy: '%d سنوات'
  4055. },
  4056. week: {
  4057. dow: 6, // Saturday is the first day of the week.
  4058. doy: 12 // The week that contains Jan 1st is the first week of the year.
  4059. }
  4060. });
  4061. //! moment.js locale configuration
  4062. //! locale : Arabic (Saudi Arabia) [ar-sa]
  4063. //! author : Suhail Alkowaileet : https://github.com/xsoh
  4064. var symbolMap$1 = {
  4065. '1': '١',
  4066. '2': '٢',
  4067. '3': '٣',
  4068. '4': '٤',
  4069. '5': '٥',
  4070. '6': '٦',
  4071. '7': '٧',
  4072. '8': '٨',
  4073. '9': '٩',
  4074. '0': '٠'
  4075. };
  4076. var numberMap = {
  4077. '١': '1',
  4078. '٢': '2',
  4079. '٣': '3',
  4080. '٤': '4',
  4081. '٥': '5',
  4082. '٦': '6',
  4083. '٧': '7',
  4084. '٨': '8',
  4085. '٩': '9',
  4086. '٠': '0'
  4087. };
  4088. hooks.defineLocale('ar-sa', {
  4089. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4090. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4091. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4092. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4093. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4094. weekdaysParseExact: true,
  4095. longDateFormat: {
  4096. LT: 'HH:mm',
  4097. LTS: 'HH:mm:ss',
  4098. L: 'DD/MM/YYYY',
  4099. LL: 'D MMMM YYYY',
  4100. LLL: 'D MMMM YYYY HH:mm',
  4101. LLLL: 'dddd D MMMM YYYY HH:mm'
  4102. },
  4103. meridiemParse: /ص|م/,
  4104. isPM: function (input) {
  4105. return 'م' === input;
  4106. },
  4107. meridiem: function (hour, minute, isLower) {
  4108. if (hour < 12) {
  4109. return 'ص';
  4110. } else {
  4111. return 'م';
  4112. }
  4113. },
  4114. calendar: {
  4115. sameDay: '[اليوم على الساعة] LT',
  4116. nextDay: '[غدا على الساعة] LT',
  4117. nextWeek: 'dddd [على الساعة] LT',
  4118. lastDay: '[أمس على الساعة] LT',
  4119. lastWeek: 'dddd [على الساعة] LT',
  4120. sameElse: 'L'
  4121. },
  4122. relativeTime: {
  4123. future: 'في %s',
  4124. past: 'منذ %s',
  4125. s: 'ثوان',
  4126. m: 'دقيقة',
  4127. mm: '%d دقائق',
  4128. h: 'ساعة',
  4129. hh: '%d ساعات',
  4130. d: 'يوم',
  4131. dd: '%d أيام',
  4132. M: 'شهر',
  4133. MM: '%d أشهر',
  4134. y: 'سنة',
  4135. yy: '%d سنوات'
  4136. },
  4137. preparse: function (string) {
  4138. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  4139. return numberMap[match];
  4140. }).replace(/،/g, ',');
  4141. },
  4142. postformat: function (string) {
  4143. return string.replace(/\d/g, function (match) {
  4144. return symbolMap$1[match];
  4145. }).replace(/,/g, '،');
  4146. },
  4147. week: {
  4148. dow: 0, // Sunday is the first day of the week.
  4149. doy: 6 // The week that contains Jan 1st is the first week of the year.
  4150. }
  4151. });
  4152. //! moment.js locale configuration
  4153. //! locale : Arabic (Tunisia) [ar-tn]
  4154. //! author : Nader Toukabri : https://github.com/naderio
  4155. hooks.defineLocale('ar-tn', {
  4156. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4157. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4158. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4159. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4160. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4161. weekdaysParseExact: true,
  4162. longDateFormat: {
  4163. LT: 'HH:mm',
  4164. LTS: 'HH:mm:ss',
  4165. L: 'DD/MM/YYYY',
  4166. LL: 'D MMMM YYYY',
  4167. LLL: 'D MMMM YYYY HH:mm',
  4168. LLLL: 'dddd D MMMM YYYY HH:mm'
  4169. },
  4170. calendar: {
  4171. sameDay: '[اليوم على الساعة] LT',
  4172. nextDay: '[غدا على الساعة] LT',
  4173. nextWeek: 'dddd [على الساعة] LT',
  4174. lastDay: '[أمس على الساعة] LT',
  4175. lastWeek: 'dddd [على الساعة] LT',
  4176. sameElse: 'L'
  4177. },
  4178. relativeTime: {
  4179. future: 'في %s',
  4180. past: 'منذ %s',
  4181. s: 'ثوان',
  4182. m: 'دقيقة',
  4183. mm: '%d دقائق',
  4184. h: 'ساعة',
  4185. hh: '%d ساعات',
  4186. d: 'يوم',
  4187. dd: '%d أيام',
  4188. M: 'شهر',
  4189. MM: '%d أشهر',
  4190. y: 'سنة',
  4191. yy: '%d سنوات'
  4192. },
  4193. week: {
  4194. dow: 1, // Monday is the first day of the week.
  4195. doy: 4 // The week that contains Jan 4th is the first week of the year.
  4196. }
  4197. });
  4198. //! moment.js locale configuration
  4199. //! locale : Arabic [ar]
  4200. //! author : Abdel Said: https://github.com/abdelsaid
  4201. //! author : Ahmed Elkhatib
  4202. //! author : forabi https://github.com/forabi
  4203. var symbolMap$2 = {
  4204. '1': '١',
  4205. '2': '٢',
  4206. '3': '٣',
  4207. '4': '٤',
  4208. '5': '٥',
  4209. '6': '٦',
  4210. '7': '٧',
  4211. '8': '٨',
  4212. '9': '٩',
  4213. '0': '٠'
  4214. };
  4215. var numberMap$1 = {
  4216. '١': '1',
  4217. '٢': '2',
  4218. '٣': '3',
  4219. '٤': '4',
  4220. '٥': '5',
  4221. '٦': '6',
  4222. '٧': '7',
  4223. '٨': '8',
  4224. '٩': '9',
  4225. '٠': '0'
  4226. };
  4227. var pluralForm$1 = function (n) {
  4228. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  4229. };
  4230. var plurals$1 = {
  4231. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  4232. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  4233. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  4234. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  4235. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  4236. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  4237. };
  4238. var pluralize$1 = function (u) {
  4239. return function (number, withoutSuffix, string, isFuture) {
  4240. var f = pluralForm$1(number),
  4241. str = plurals$1[u][pluralForm$1(number)];
  4242. if (f === 2) {
  4243. str = str[withoutSuffix ? 0 : 1];
  4244. }
  4245. return str.replace(/%d/i, number);
  4246. };
  4247. };
  4248. var months$2 = [
  4249. 'كانون الثاني يناير',
  4250. 'شباط فبراير',
  4251. 'آذار مارس',
  4252. 'نيسان أبريل',
  4253. 'أيار مايو',
  4254. 'حزيران يونيو',
  4255. 'تموز يوليو',
  4256. 'آب أغسطس',
  4257. 'أيلول سبتمبر',
  4258. 'تشرين الأول أكتوبر',
  4259. 'تشرين الثاني نوفمبر',
  4260. 'كانون الأول ديسمبر'
  4261. ];
  4262. hooks.defineLocale('ar', {
  4263. months: months$2,
  4264. monthsShort: months$2,
  4265. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4266. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4267. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4268. weekdaysParseExact: true,
  4269. longDateFormat: {
  4270. LT: 'HH:mm',
  4271. LTS: 'HH:mm:ss',
  4272. L: 'D/\u200FM/\u200FYYYY',
  4273. LL: 'D MMMM YYYY',
  4274. LLL: 'D MMMM YYYY HH:mm',
  4275. LLLL: 'dddd D MMMM YYYY HH:mm'
  4276. },
  4277. meridiemParse: /ص|م/,
  4278. isPM: function (input) {
  4279. return 'م' === input;
  4280. },
  4281. meridiem: function (hour, minute, isLower) {
  4282. if (hour < 12) {
  4283. return 'ص';
  4284. } else {
  4285. return 'م';
  4286. }
  4287. },
  4288. calendar: {
  4289. sameDay: '[اليوم عند الساعة] LT',
  4290. nextDay: '[غدًا عند الساعة] LT',
  4291. nextWeek: 'dddd [عند الساعة] LT',
  4292. lastDay: '[أمس عند الساعة] LT',
  4293. lastWeek: 'dddd [عند الساعة] LT',
  4294. sameElse: 'L'
  4295. },
  4296. relativeTime: {
  4297. future: 'بعد %s',
  4298. past: 'منذ %s',
  4299. s: pluralize$1('s'),
  4300. m: pluralize$1('m'),
  4301. mm: pluralize$1('m'),
  4302. h: pluralize$1('h'),
  4303. hh: pluralize$1('h'),
  4304. d: pluralize$1('d'),
  4305. dd: pluralize$1('d'),
  4306. M: pluralize$1('M'),
  4307. MM: pluralize$1('M'),
  4308. y: pluralize$1('y'),
  4309. yy: pluralize$1('y')
  4310. },
  4311. preparse: function (string) {
  4312. return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  4313. return numberMap$1[match];
  4314. }).replace(/،/g, ',');
  4315. },
  4316. postformat: function (string) {
  4317. return string.replace(/\d/g, function (match) {
  4318. return symbolMap$2[match];
  4319. }).replace(/,/g, '،');
  4320. },
  4321. week: {
  4322. dow: 6, // Saturday is the first day of the week.
  4323. doy: 12 // The week that contains Jan 1st is the first week of the year.
  4324. }
  4325. });
  4326. //! moment.js locale configuration
  4327. //! locale : Azerbaijani [az]
  4328. //! author : topchiyev : https://github.com/topchiyev
  4329. var suffixes = {
  4330. 1: '-inci',
  4331. 5: '-inci',
  4332. 8: '-inci',
  4333. 70: '-inci',
  4334. 80: '-inci',
  4335. 2: '-nci',
  4336. 7: '-nci',
  4337. 20: '-nci',
  4338. 50: '-nci',
  4339. 3: '-üncü',
  4340. 4: '-üncü',
  4341. 100: '-üncü',
  4342. 6: '-ncı',
  4343. 9: '-uncu',
  4344. 10: '-uncu',
  4345. 30: '-uncu',
  4346. 60: '-ıncı',
  4347. 90: '-ıncı'
  4348. };
  4349. hooks.defineLocale('az', {
  4350. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  4351. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  4352. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  4353. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  4354. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  4355. weekdaysParseExact: true,
  4356. longDateFormat: {
  4357. LT: 'HH:mm',
  4358. LTS: 'HH:mm:ss',
  4359. L: 'DD.MM.YYYY',
  4360. LL: 'D MMMM YYYY',
  4361. LLL: 'D MMMM YYYY HH:mm',
  4362. LLLL: 'dddd, D MMMM YYYY HH:mm'
  4363. },
  4364. calendar: {
  4365. sameDay: '[bugün saat] LT',
  4366. nextDay: '[sabah saat] LT',
  4367. nextWeek: '[gələn həftə] dddd [saat] LT',
  4368. lastDay: '[dünən] LT',
  4369. lastWeek: '[keçən həftə] dddd [saat] LT',
  4370. sameElse: 'L'
  4371. },
  4372. relativeTime: {
  4373. future: '%s sonra',
  4374. past: '%s əvvəl',
  4375. s: 'birneçə saniyyə',
  4376. m: 'bir dəqiqə',
  4377. mm: '%d dəqiqə',
  4378. h: 'bir saat',
  4379. hh: '%d saat',
  4380. d: 'bir gün',
  4381. dd: '%d gün',
  4382. M: 'bir ay',
  4383. MM: '%d ay',
  4384. y: 'bir il',
  4385. yy: '%d il'
  4386. },
  4387. meridiemParse: /gecə|səhər|gündüz|axşam/,
  4388. isPM: function (input) {
  4389. return /^(gündüz|axşam)$/.test(input);
  4390. },
  4391. meridiem: function (hour, minute, isLower) {
  4392. if (hour < 4) {
  4393. return 'gecə';
  4394. } else if (hour < 12) {
  4395. return 'səhər';
  4396. } else if (hour < 17) {
  4397. return 'gündüz';
  4398. } else {
  4399. return 'axşam';
  4400. }
  4401. },
  4402. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  4403. ordinal: function (number) {
  4404. if (number === 0) { // special case for zero
  4405. return number + '-ıncı';
  4406. }
  4407. var a = number % 10,
  4408. b = number % 100 - a,
  4409. c = number >= 100 ? 100 : null;
  4410. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  4411. },
  4412. week: {
  4413. dow: 1, // Monday is the first day of the week.
  4414. doy: 7 // The week that contains Jan 1st is the first week of the year.
  4415. }
  4416. });
  4417. //! moment.js locale configuration
  4418. //! locale : Belarusian [be]
  4419. //! author : Dmitry Demidov : https://github.com/demidov91
  4420. //! author: Praleska: http://praleska.pro/
  4421. //! Author : Menelion Elensúle : https://github.com/Oire
  4422. function plural(word, num) {
  4423. var forms = word.split('_');
  4424. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  4425. }
  4426. function relativeTimeWithPlural(number, withoutSuffix, key) {
  4427. var format = {
  4428. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  4429. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  4430. 'dd': 'дзень_дні_дзён',
  4431. 'MM': 'месяц_месяцы_месяцаў',
  4432. 'yy': 'год_гады_гадоў'
  4433. };
  4434. if (key === 'm') {
  4435. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  4436. }
  4437. else if (key === 'h') {
  4438. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  4439. }
  4440. else {
  4441. return number + ' ' + plural(format[key], +number);
  4442. }
  4443. }
  4444. hooks.defineLocale('be', {
  4445. months: {
  4446. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  4447. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  4448. },
  4449. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  4450. weekdays: {
  4451. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  4452. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  4453. isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
  4454. },
  4455. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4456. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4457. longDateFormat: {
  4458. LT: 'HH:mm',
  4459. LTS: 'HH:mm:ss',
  4460. L: 'DD.MM.YYYY',
  4461. LL: 'D MMMM YYYY г.',
  4462. LLL: 'D MMMM YYYY г., HH:mm',
  4463. LLLL: 'dddd, D MMMM YYYY г., HH:mm'
  4464. },
  4465. calendar: {
  4466. sameDay: '[Сёння ў] LT',
  4467. nextDay: '[Заўтра ў] LT',
  4468. lastDay: '[Учора ў] LT',
  4469. nextWeek: function () {
  4470. return '[У] dddd [ў] LT';
  4471. },
  4472. lastWeek: function () {
  4473. switch (this.day()) {
  4474. case 0:
  4475. case 3:
  4476. case 5:
  4477. case 6:
  4478. return '[У мінулую] dddd [ў] LT';
  4479. case 1:
  4480. case 2:
  4481. case 4:
  4482. return '[У мінулы] dddd [ў] LT';
  4483. }
  4484. },
  4485. sameElse: 'L'
  4486. },
  4487. relativeTime: {
  4488. future: 'праз %s',
  4489. past: '%s таму',
  4490. s: 'некалькі секунд',
  4491. m: relativeTimeWithPlural,
  4492. mm: relativeTimeWithPlural,
  4493. h: relativeTimeWithPlural,
  4494. hh: relativeTimeWithPlural,
  4495. d: 'дзень',
  4496. dd: relativeTimeWithPlural,
  4497. M: 'месяц',
  4498. MM: relativeTimeWithPlural,
  4499. y: 'год',
  4500. yy: relativeTimeWithPlural
  4501. },
  4502. meridiemParse: /ночы|раніцы|дня|вечара/,
  4503. isPM: function (input) {
  4504. return /^(дня|вечара)$/.test(input);
  4505. },
  4506. meridiem: function (hour, minute, isLower) {
  4507. if (hour < 4) {
  4508. return 'ночы';
  4509. } else if (hour < 12) {
  4510. return 'раніцы';
  4511. } else if (hour < 17) {
  4512. return 'дня';
  4513. } else {
  4514. return 'вечара';
  4515. }
  4516. },
  4517. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  4518. ordinal: function (number, period) {
  4519. switch (period) {
  4520. case 'M':
  4521. case 'd':
  4522. case 'DDD':
  4523. case 'w':
  4524. case 'W':
  4525. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  4526. case 'D':
  4527. return number + '-га';
  4528. default:
  4529. return number;
  4530. }
  4531. },
  4532. week: {
  4533. dow: 1, // Monday is the first day of the week.
  4534. doy: 7 // The week that contains Jan 1st is the first week of the year.
  4535. }
  4536. });
  4537. //! moment.js locale configuration
  4538. //! locale : Bulgarian [bg]
  4539. //! author : Krasen Borisov : https://github.com/kraz
  4540. hooks.defineLocale('bg', {
  4541. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  4542. monthsShort: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  4543. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  4544. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  4545. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  4546. longDateFormat: {
  4547. LT: 'H:mm',
  4548. LTS: 'H:mm:ss',
  4549. L: 'D.MM.YYYY',
  4550. LL: 'D MMMM YYYY',
  4551. LLL: 'D MMMM YYYY H:mm',
  4552. LLLL: 'dddd, D MMMM YYYY H:mm'
  4553. },
  4554. calendar: {
  4555. sameDay: '[Днес в] LT',
  4556. nextDay: '[Утре в] LT',
  4557. nextWeek: 'dddd [в] LT',
  4558. lastDay: '[Вчера в] LT',
  4559. lastWeek: function () {
  4560. switch (this.day()) {
  4561. case 0:
  4562. case 3:
  4563. case 6:
  4564. return '[В изминалата] dddd [в] LT';
  4565. case 1:
  4566. case 2:
  4567. case 4:
  4568. case 5:
  4569. return '[В изминалия] dddd [в] LT';
  4570. }
  4571. },
  4572. sameElse: 'L'
  4573. },
  4574. relativeTime: {
  4575. future: 'след %s',
  4576. past: 'преди %s',
  4577. s: 'няколко секунди',
  4578. m: 'минута',
  4579. mm: '%d минути',
  4580. h: 'час',
  4581. hh: '%d часа',
  4582. d: 'ден',
  4583. dd: '%d дни',
  4584. M: 'месец',
  4585. MM: '%d месеца',
  4586. y: 'година',
  4587. yy: '%d години'
  4588. },
  4589. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  4590. ordinal: function (number) {
  4591. var lastDigit = number % 10,
  4592. last2Digits = number % 100;
  4593. if (number === 0) {
  4594. return number + '-ев';
  4595. } else if (last2Digits === 0) {
  4596. return number + '-ен';
  4597. } else if (last2Digits > 10 && last2Digits < 20) {
  4598. return number + '-ти';
  4599. } else if (lastDigit === 1) {
  4600. return number + '-ви';
  4601. } else if (lastDigit === 2) {
  4602. return number + '-ри';
  4603. } else if (lastDigit === 7 || lastDigit === 8) {
  4604. return number + '-ми';
  4605. } else {
  4606. return number + '-ти';
  4607. }
  4608. },
  4609. week: {
  4610. dow: 1, // Monday is the first day of the week.
  4611. doy: 7 // The week that contains Jan 1st is the first week of the year.
  4612. }
  4613. });
  4614. //! moment.js locale configuration
  4615. //! locale : Bengali [bn]
  4616. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  4617. var symbolMap$3 = {
  4618. '1': '১',
  4619. '2': '২',
  4620. '3': '৩',
  4621. '4': '৪',
  4622. '5': '৫',
  4623. '6': '৬',
  4624. '7': '৭',
  4625. '8': '৮',
  4626. '9': '৯',
  4627. '0': '০'
  4628. };
  4629. var numberMap$2 = {
  4630. '১': '1',
  4631. '২': '2',
  4632. '৩': '3',
  4633. '৪': '4',
  4634. '৫': '5',
  4635. '৬': '6',
  4636. '৭': '7',
  4637. '৮': '8',
  4638. '৯': '9',
  4639. '০': '0'
  4640. };
  4641. hooks.defineLocale('bn', {
  4642. months: 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  4643. monthsShort: 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  4644. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  4645. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  4646. weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
  4647. longDateFormat: {
  4648. LT: 'A h:mm সময়',
  4649. LTS: 'A h:mm:ss সময়',
  4650. L: 'DD/MM/YYYY',
  4651. LL: 'D MMMM YYYY',
  4652. LLL: 'D MMMM YYYY, A h:mm সময়',
  4653. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
  4654. },
  4655. calendar: {
  4656. sameDay: '[আজ] LT',
  4657. nextDay: '[আগামীকাল] LT',
  4658. nextWeek: 'dddd, LT',
  4659. lastDay: '[গতকাল] LT',
  4660. lastWeek: '[গত] dddd, LT',
  4661. sameElse: 'L'
  4662. },
  4663. relativeTime: {
  4664. future: '%s পরে',
  4665. past: '%s আগে',
  4666. s: 'কয়েক সেকেন্ড',
  4667. m: 'এক মিনিট',
  4668. mm: '%d মিনিট',
  4669. h: 'এক ঘন্টা',
  4670. hh: '%d ঘন্টা',
  4671. d: 'এক দিন',
  4672. dd: '%d দিন',
  4673. M: 'এক মাস',
  4674. MM: '%d মাস',
  4675. y: 'এক বছর',
  4676. yy: '%d বছর'
  4677. },
  4678. preparse: function (string) {
  4679. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  4680. return numberMap$2[match];
  4681. });
  4682. },
  4683. postformat: function (string) {
  4684. return string.replace(/\d/g, function (match) {
  4685. return symbolMap$3[match];
  4686. });
  4687. },
  4688. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  4689. meridiemHour: function (hour, meridiem) {
  4690. if (hour === 12) {
  4691. hour = 0;
  4692. }
  4693. if ((meridiem === 'রাত' && hour >= 4) ||
  4694. (meridiem === 'দুপুর' && hour < 5) ||
  4695. meridiem === 'বিকাল') {
  4696. return hour + 12;
  4697. } else {
  4698. return hour;
  4699. }
  4700. },
  4701. meridiem: function (hour, minute, isLower) {
  4702. if (hour < 4) {
  4703. return 'রাত';
  4704. } else if (hour < 10) {
  4705. return 'সকাল';
  4706. } else if (hour < 17) {
  4707. return 'দুপুর';
  4708. } else if (hour < 20) {
  4709. return 'বিকাল';
  4710. } else {
  4711. return 'রাত';
  4712. }
  4713. },
  4714. week: {
  4715. dow: 0, // Sunday is the first day of the week.
  4716. doy: 6 // The week that contains Jan 1st is the first week of the year.
  4717. }
  4718. });
  4719. //! moment.js locale configuration
  4720. //! locale : Tibetan [bo]
  4721. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  4722. var symbolMap$4 = {
  4723. '1': '༡',
  4724. '2': '༢',
  4725. '3': '༣',
  4726. '4': '༤',
  4727. '5': '༥',
  4728. '6': '༦',
  4729. '7': '༧',
  4730. '8': '༨',
  4731. '9': '༩',
  4732. '0': '༠'
  4733. };
  4734. var numberMap$3 = {
  4735. '༡': '1',
  4736. '༢': '2',
  4737. '༣': '3',
  4738. '༤': '4',
  4739. '༥': '5',
  4740. '༦': '6',
  4741. '༧': '7',
  4742. '༨': '8',
  4743. '༩': '9',
  4744. '༠': '0'
  4745. };
  4746. hooks.defineLocale('bo', {
  4747. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4748. monthsShort: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4749. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  4750. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4751. weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4752. longDateFormat: {
  4753. LT: 'A h:mm',
  4754. LTS: 'A h:mm:ss',
  4755. L: 'DD/MM/YYYY',
  4756. LL: 'D MMMM YYYY',
  4757. LLL: 'D MMMM YYYY, A h:mm',
  4758. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  4759. },
  4760. calendar: {
  4761. sameDay: '[དི་རིང] LT',
  4762. nextDay: '[སང་ཉིན] LT',
  4763. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  4764. lastDay: '[ཁ་སང] LT',
  4765. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  4766. sameElse: 'L'
  4767. },
  4768. relativeTime: {
  4769. future: '%s ལ་',
  4770. past: '%s སྔན་ལ',
  4771. s: 'ལམ་སང',
  4772. m: 'སྐར་མ་གཅིག',
  4773. mm: '%d སྐར་མ',
  4774. h: 'ཆུ་ཚོད་གཅིག',
  4775. hh: '%d ཆུ་ཚོད',
  4776. d: 'ཉིན་གཅིག',
  4777. dd: '%d ཉིན་',
  4778. M: 'ཟླ་བ་གཅིག',
  4779. MM: '%d ཟླ་བ',
  4780. y: 'ལོ་གཅིག',
  4781. yy: '%d ལོ'
  4782. },
  4783. preparse: function (string) {
  4784. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  4785. return numberMap$3[match];
  4786. });
  4787. },
  4788. postformat: function (string) {
  4789. return string.replace(/\d/g, function (match) {
  4790. return symbolMap$4[match];
  4791. });
  4792. },
  4793. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  4794. meridiemHour: function (hour, meridiem) {
  4795. if (hour === 12) {
  4796. hour = 0;
  4797. }
  4798. if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
  4799. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  4800. meridiem === 'དགོང་དག') {
  4801. return hour + 12;
  4802. } else {
  4803. return hour;
  4804. }
  4805. },
  4806. meridiem: function (hour, minute, isLower) {
  4807. if (hour < 4) {
  4808. return 'མཚན་མོ';
  4809. } else if (hour < 10) {
  4810. return 'ཞོགས་ཀས';
  4811. } else if (hour < 17) {
  4812. return 'ཉིན་གུང';
  4813. } else if (hour < 20) {
  4814. return 'དགོང་དག';
  4815. } else {
  4816. return 'མཚན་མོ';
  4817. }
  4818. },
  4819. week: {
  4820. dow: 0, // Sunday is the first day of the week.
  4821. doy: 6 // The week that contains Jan 1st is the first week of the year.
  4822. }
  4823. });
  4824. //! moment.js locale configuration
  4825. //! locale : Breton [br]
  4826. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  4827. function relativeTimeWithMutation(number, withoutSuffix, key) {
  4828. var format = {
  4829. 'mm': 'munutenn',
  4830. 'MM': 'miz',
  4831. 'dd': 'devezh'
  4832. };
  4833. return number + ' ' + mutation(format[key], number);
  4834. }
  4835. function specialMutationForYears(number) {
  4836. switch (lastNumber(number)) {
  4837. case 1:
  4838. case 3:
  4839. case 4:
  4840. case 5:
  4841. case 9:
  4842. return number + ' bloaz';
  4843. default:
  4844. return number + ' vloaz';
  4845. }
  4846. }
  4847. function lastNumber(number) {
  4848. if (number > 9) {
  4849. return lastNumber(number % 10);
  4850. }
  4851. return number;
  4852. }
  4853. function mutation(text, number) {
  4854. if (number === 2) {
  4855. return softMutation(text);
  4856. }
  4857. return text;
  4858. }
  4859. function softMutation(text) {
  4860. var mutationTable = {
  4861. 'm': 'v',
  4862. 'b': 'v',
  4863. 'd': 'z'
  4864. };
  4865. if (mutationTable[text.charAt(0)] === undefined) {
  4866. return text;
  4867. }
  4868. return mutationTable[text.charAt(0)] + text.substring(1);
  4869. }
  4870. hooks.defineLocale('br', {
  4871. months: 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  4872. monthsShort: 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  4873. weekdays: 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  4874. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  4875. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  4876. weekdaysParseExact: true,
  4877. longDateFormat: {
  4878. LT: 'h[e]mm A',
  4879. LTS: 'h[e]mm:ss A',
  4880. L: 'DD/MM/YYYY',
  4881. LL: 'D [a viz] MMMM YYYY',
  4882. LLL: 'D [a viz] MMMM YYYY h[e]mm A',
  4883. LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  4884. },
  4885. calendar: {
  4886. sameDay: '[Hiziv da] LT',
  4887. nextDay: '[Warc\'hoazh da] LT',
  4888. nextWeek: 'dddd [da] LT',
  4889. lastDay: '[Dec\'h da] LT',
  4890. lastWeek: 'dddd [paset da] LT',
  4891. sameElse: 'L'
  4892. },
  4893. relativeTime: {
  4894. future: 'a-benn %s',
  4895. past: '%s \'zo',
  4896. s: 'un nebeud segondennoù',
  4897. m: 'ur vunutenn',
  4898. mm: relativeTimeWithMutation,
  4899. h: 'un eur',
  4900. hh: '%d eur',
  4901. d: 'un devezh',
  4902. dd: relativeTimeWithMutation,
  4903. M: 'ur miz',
  4904. MM: relativeTimeWithMutation,
  4905. y: 'ur bloaz',
  4906. yy: specialMutationForYears
  4907. },
  4908. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  4909. ordinal: function (number) {
  4910. var output = (number === 1) ? 'añ' : 'vet';
  4911. return number + output;
  4912. },
  4913. week: {
  4914. dow: 1, // Monday is the first day of the week.
  4915. doy: 4 // The week that contains Jan 4th is the first week of the year.
  4916. }
  4917. });
  4918. //! moment.js locale configuration
  4919. //! locale : Bosnian [bs]
  4920. //! author : Nedim Cholich : https://github.com/frontyard
  4921. //! based on (hr) translation by Bojan Marković
  4922. function translate(number, withoutSuffix, key) {
  4923. var result = number + ' ';
  4924. switch (key) {
  4925. case 'm':
  4926. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  4927. case 'mm':
  4928. if (number === 1) {
  4929. result += 'minuta';
  4930. } else if (number === 2 || number === 3 || number === 4) {
  4931. result += 'minute';
  4932. } else {
  4933. result += 'minuta';
  4934. }
  4935. return result;
  4936. case 'h':
  4937. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  4938. case 'hh':
  4939. if (number === 1) {
  4940. result += 'sat';
  4941. } else if (number === 2 || number === 3 || number === 4) {
  4942. result += 'sata';
  4943. } else {
  4944. result += 'sati';
  4945. }
  4946. return result;
  4947. case 'dd':
  4948. if (number === 1) {
  4949. result += 'dan';
  4950. } else {
  4951. result += 'dana';
  4952. }
  4953. return result;
  4954. case 'MM':
  4955. if (number === 1) {
  4956. result += 'mjesec';
  4957. } else if (number === 2 || number === 3 || number === 4) {
  4958. result += 'mjeseca';
  4959. } else {
  4960. result += 'mjeseci';
  4961. }
  4962. return result;
  4963. case 'yy':
  4964. if (number === 1) {
  4965. result += 'godina';
  4966. } else if (number === 2 || number === 3 || number === 4) {
  4967. result += 'godine';
  4968. } else {
  4969. result += 'godina';
  4970. }
  4971. return result;
  4972. }
  4973. }
  4974. hooks.defineLocale('bs', {
  4975. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  4976. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  4977. monthsParseExact: true,
  4978. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  4979. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  4980. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  4981. weekdaysParseExact: true,
  4982. longDateFormat: {
  4983. LT: 'H:mm',
  4984. LTS: 'H:mm:ss',
  4985. L: 'DD.MM.YYYY',
  4986. LL: 'D. MMMM YYYY',
  4987. LLL: 'D. MMMM YYYY H:mm',
  4988. LLLL: 'dddd, D. MMMM YYYY H:mm'
  4989. },
  4990. calendar: {
  4991. sameDay: '[danas u] LT',
  4992. nextDay: '[sutra u] LT',
  4993. nextWeek: function () {
  4994. switch (this.day()) {
  4995. case 0:
  4996. return '[u] [nedjelju] [u] LT';
  4997. case 3:
  4998. return '[u] [srijedu] [u] LT';
  4999. case 6:
  5000. return '[u] [subotu] [u] LT';
  5001. case 1:
  5002. case 2:
  5003. case 4:
  5004. case 5:
  5005. return '[u] dddd [u] LT';
  5006. }
  5007. },
  5008. lastDay: '[jučer u] LT',
  5009. lastWeek: function () {
  5010. switch (this.day()) {
  5011. case 0:
  5012. case 3:
  5013. return '[prošlu] dddd [u] LT';
  5014. case 6:
  5015. return '[prošle] [subote] [u] LT';
  5016. case 1:
  5017. case 2:
  5018. case 4:
  5019. case 5:
  5020. return '[prošli] dddd [u] LT';
  5021. }
  5022. },
  5023. sameElse: 'L'
  5024. },
  5025. relativeTime: {
  5026. future: 'za %s',
  5027. past: 'prije %s',
  5028. s: 'par sekundi',
  5029. m: translate,
  5030. mm: translate,
  5031. h: translate,
  5032. hh: translate,
  5033. d: 'dan',
  5034. dd: translate,
  5035. M: 'mjesec',
  5036. MM: translate,
  5037. y: 'godinu',
  5038. yy: translate
  5039. },
  5040. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5041. ordinal: '%d.',
  5042. week: {
  5043. dow: 1, // Monday is the first day of the week.
  5044. doy: 7 // The week that contains Jan 1st is the first week of the year.
  5045. }
  5046. });
  5047. //! moment.js locale configuration
  5048. //! locale : Catalan [ca]
  5049. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  5050. hooks.defineLocale('ca', {
  5051. months: {
  5052. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  5053. 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('_'),
  5054. isFormat: /D[oD]?(\s)+MMMM/
  5055. },
  5056. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  5057. monthsParseExact: true,
  5058. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  5059. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  5060. weekdaysMin: 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  5061. weekdaysParseExact: true,
  5062. longDateFormat: {
  5063. LT: 'H:mm',
  5064. LTS: 'H:mm:ss',
  5065. L: 'DD/MM/YYYY',
  5066. LL: '[el] D MMMM [de] YYYY',
  5067. ll: 'D MMM YYYY',
  5068. LLL: '[el] D MMMM [de] YYYY [a les] H:mm',
  5069. lll: 'D MMM YYYY, H:mm',
  5070. LLLL: '[el] dddd D MMMM [de] YYYY [a les] H:mm',
  5071. llll: 'ddd D MMM YYYY, H:mm'
  5072. },
  5073. calendar: {
  5074. sameDay: function () {
  5075. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5076. },
  5077. nextDay: function () {
  5078. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5079. },
  5080. nextWeek: function () {
  5081. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5082. },
  5083. lastDay: function () {
  5084. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5085. },
  5086. lastWeek: function () {
  5087. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5088. },
  5089. sameElse: 'L'
  5090. },
  5091. relativeTime: {
  5092. future: 'd\'aquí %s',
  5093. past: 'fa %s',
  5094. s: 'uns segons',
  5095. m: 'un minut',
  5096. mm: '%d minuts',
  5097. h: 'una hora',
  5098. hh: '%d hores',
  5099. d: 'un dia',
  5100. dd: '%d dies',
  5101. M: 'un mes',
  5102. MM: '%d mesos',
  5103. y: 'un any',
  5104. yy: '%d anys'
  5105. },
  5106. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  5107. ordinal: function (number, period) {
  5108. var output = (number === 1) ? 'r' :
  5109. (number === 2) ? 'n' :
  5110. (number === 3) ? 'r' :
  5111. (number === 4) ? 't' : 'è';
  5112. if (period === 'w' || period === 'W') {
  5113. output = 'a';
  5114. }
  5115. return number + output;
  5116. },
  5117. week: {
  5118. dow: 1, // Monday is the first day of the week.
  5119. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5120. }
  5121. });
  5122. //! moment.js locale configuration
  5123. //! locale : Czech [cs]
  5124. //! author : petrbela : https://github.com/petrbela
  5125. var months$3 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
  5126. var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  5127. function plural$1(n) {
  5128. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  5129. }
  5130. function translate$1(number, withoutSuffix, key, isFuture) {
  5131. var result = number + ' ';
  5132. switch (key) {
  5133. case 's': // a few seconds / in a few seconds / a few seconds ago
  5134. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  5135. case 'm': // a minute / in a minute / a minute ago
  5136. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  5137. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  5138. if (withoutSuffix || isFuture) {
  5139. return result + (plural$1(number) ? 'minuty' : 'minut');
  5140. } else {
  5141. return result + 'minutami';
  5142. }
  5143. break;
  5144. case 'h': // an hour / in an hour / an hour ago
  5145. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  5146. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  5147. if (withoutSuffix || isFuture) {
  5148. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  5149. } else {
  5150. return result + 'hodinami';
  5151. }
  5152. break;
  5153. case 'd': // a day / in a day / a day ago
  5154. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  5155. case 'dd': // 9 days / in 9 days / 9 days ago
  5156. if (withoutSuffix || isFuture) {
  5157. return result + (plural$1(number) ? 'dny' : 'dní');
  5158. } else {
  5159. return result + 'dny';
  5160. }
  5161. break;
  5162. case 'M': // a month / in a month / a month ago
  5163. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  5164. case 'MM': // 9 months / in 9 months / 9 months ago
  5165. if (withoutSuffix || isFuture) {
  5166. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  5167. } else {
  5168. return result + 'měsíci';
  5169. }
  5170. break;
  5171. case 'y': // a year / in a year / a year ago
  5172. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  5173. case 'yy': // 9 years / in 9 years / 9 years ago
  5174. if (withoutSuffix || isFuture) {
  5175. return result + (plural$1(number) ? 'roky' : 'let');
  5176. } else {
  5177. return result + 'lety';
  5178. }
  5179. break;
  5180. }
  5181. }
  5182. hooks.defineLocale('cs', {
  5183. months: months$3,
  5184. monthsShort: monthsShort,
  5185. monthsParse: (function (months, monthsShort) {
  5186. var i, _monthsParse = [];
  5187. for (i = 0; i < 12; i++) {
  5188. // use custom parser to solve problem with July (červenec)
  5189. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  5190. }
  5191. return _monthsParse;
  5192. }(months$3, monthsShort)),
  5193. shortMonthsParse: (function (monthsShort) {
  5194. var i, _shortMonthsParse = [];
  5195. for (i = 0; i < 12; i++) {
  5196. _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
  5197. }
  5198. return _shortMonthsParse;
  5199. }(monthsShort)),
  5200. longMonthsParse: (function (months) {
  5201. var i, _longMonthsParse = [];
  5202. for (i = 0; i < 12; i++) {
  5203. _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
  5204. }
  5205. return _longMonthsParse;
  5206. }(months$3)),
  5207. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  5208. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  5209. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  5210. longDateFormat: {
  5211. LT: 'H:mm',
  5212. LTS: 'H:mm:ss',
  5213. L: 'DD.MM.YYYY',
  5214. LL: 'D. MMMM YYYY',
  5215. LLL: 'D. MMMM YYYY H:mm',
  5216. LLLL: 'dddd D. MMMM YYYY H:mm',
  5217. l: 'D. M. YYYY'
  5218. },
  5219. calendar: {
  5220. sameDay: '[dnes v] LT',
  5221. nextDay: '[zítra v] LT',
  5222. nextWeek: function () {
  5223. switch (this.day()) {
  5224. case 0:
  5225. return '[v neděli v] LT';
  5226. case 1:
  5227. case 2:
  5228. return '[v] dddd [v] LT';
  5229. case 3:
  5230. return '[ve středu v] LT';
  5231. case 4:
  5232. return '[ve čtvrtek v] LT';
  5233. case 5:
  5234. return '[v pátek v] LT';
  5235. case 6:
  5236. return '[v sobotu v] LT';
  5237. }
  5238. },
  5239. lastDay: '[včera v] LT',
  5240. lastWeek: function () {
  5241. switch (this.day()) {
  5242. case 0:
  5243. return '[minulou neděli v] LT';
  5244. case 1:
  5245. case 2:
  5246. return '[minulé] dddd [v] LT';
  5247. case 3:
  5248. return '[minulou středu v] LT';
  5249. case 4:
  5250. case 5:
  5251. return '[minulý] dddd [v] LT';
  5252. case 6:
  5253. return '[minulou sobotu v] LT';
  5254. }
  5255. },
  5256. sameElse: 'L'
  5257. },
  5258. relativeTime: {
  5259. future: 'za %s',
  5260. past: 'před %s',
  5261. s: translate$1,
  5262. m: translate$1,
  5263. mm: translate$1,
  5264. h: translate$1,
  5265. hh: translate$1,
  5266. d: translate$1,
  5267. dd: translate$1,
  5268. M: translate$1,
  5269. MM: translate$1,
  5270. y: translate$1,
  5271. yy: translate$1
  5272. },
  5273. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5274. ordinal: '%d.',
  5275. week: {
  5276. dow: 1, // Monday is the first day of the week.
  5277. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5278. }
  5279. });
  5280. //! moment.js locale configuration
  5281. //! locale : Chuvash [cv]
  5282. //! author : Anatoly Mironov : https://github.com/mirontoli
  5283. hooks.defineLocale('cv', {
  5284. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  5285. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  5286. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  5287. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  5288. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  5289. longDateFormat: {
  5290. LT: 'HH:mm',
  5291. LTS: 'HH:mm:ss',
  5292. L: 'DD-MM-YYYY',
  5293. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  5294. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  5295. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  5296. },
  5297. calendar: {
  5298. sameDay: '[Паян] LT [сехетре]',
  5299. nextDay: '[Ыран] LT [сехетре]',
  5300. lastDay: '[Ӗнер] LT [сехетре]',
  5301. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  5302. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  5303. sameElse: 'L'
  5304. },
  5305. relativeTime: {
  5306. future: function (output) {
  5307. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  5308. return output + affix;
  5309. },
  5310. past: '%s каялла',
  5311. s: 'пӗр-ик ҫеккунт',
  5312. m: 'пӗр минут',
  5313. mm: '%d минут',
  5314. h: 'пӗр сехет',
  5315. hh: '%d сехет',
  5316. d: 'пӗр кун',
  5317. dd: '%d кун',
  5318. M: 'пӗр уйӑх',
  5319. MM: '%d уйӑх',
  5320. y: 'пӗр ҫул',
  5321. yy: '%d ҫул'
  5322. },
  5323. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  5324. ordinal: '%d-мӗш',
  5325. week: {
  5326. dow: 1, // Monday is the first day of the week.
  5327. doy: 7 // The week that contains Jan 1st is the first week of the year.
  5328. }
  5329. });
  5330. //! moment.js locale configuration
  5331. //! locale : Welsh [cy]
  5332. //! author : Robert Allen : https://github.com/robgallen
  5333. //! author : https://github.com/ryangreaves
  5334. hooks.defineLocale('cy', {
  5335. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  5336. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  5337. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  5338. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  5339. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  5340. weekdaysParseExact: true,
  5341. // time formats are the same as en-gb
  5342. longDateFormat: {
  5343. LT: 'HH:mm',
  5344. LTS: 'HH:mm:ss',
  5345. L: 'DD/MM/YYYY',
  5346. LL: 'D MMMM YYYY',
  5347. LLL: 'D MMMM YYYY HH:mm',
  5348. LLLL: 'dddd, D MMMM YYYY HH:mm'
  5349. },
  5350. calendar: {
  5351. sameDay: '[Heddiw am] LT',
  5352. nextDay: '[Yfory am] LT',
  5353. nextWeek: 'dddd [am] LT',
  5354. lastDay: '[Ddoe am] LT',
  5355. lastWeek: 'dddd [diwethaf am] LT',
  5356. sameElse: 'L'
  5357. },
  5358. relativeTime: {
  5359. future: 'mewn %s',
  5360. past: '%s yn ôl',
  5361. s: 'ychydig eiliadau',
  5362. m: 'munud',
  5363. mm: '%d munud',
  5364. h: 'awr',
  5365. hh: '%d awr',
  5366. d: 'diwrnod',
  5367. dd: '%d diwrnod',
  5368. M: 'mis',
  5369. MM: '%d mis',
  5370. y: 'blwyddyn',
  5371. yy: '%d flynedd'
  5372. },
  5373. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  5374. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  5375. ordinal: function (number) {
  5376. var b = number,
  5377. output = '',
  5378. lookup = [
  5379. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  5380. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  5381. ];
  5382. if (b > 20) {
  5383. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  5384. output = 'fed'; // not 30ain, 70ain or 90ain
  5385. } else {
  5386. output = 'ain';
  5387. }
  5388. } else if (b > 0) {
  5389. output = lookup[b];
  5390. }
  5391. return number + output;
  5392. },
  5393. week: {
  5394. dow: 1, // Monday is the first day of the week.
  5395. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5396. }
  5397. });
  5398. //! moment.js locale configuration
  5399. //! locale : Danish [da]
  5400. //! author : Ulrik Nielsen : https://github.com/mrbase
  5401. hooks.defineLocale('da', {
  5402. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  5403. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  5404. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  5405. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  5406. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  5407. longDateFormat: {
  5408. LT: 'HH:mm',
  5409. LTS: 'HH:mm:ss',
  5410. L: 'DD/MM/YYYY',
  5411. LL: 'D. MMMM YYYY',
  5412. LLL: 'D. MMMM YYYY HH:mm',
  5413. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  5414. },
  5415. calendar: {
  5416. sameDay: '[i dag kl.] LT',
  5417. nextDay: '[i morgen kl.] LT',
  5418. nextWeek: 'på dddd [kl.] LT',
  5419. lastDay: '[i går kl.] LT',
  5420. lastWeek: '[i] dddd[s kl.] LT',
  5421. sameElse: 'L'
  5422. },
  5423. relativeTime: {
  5424. future: 'om %s',
  5425. past: '%s siden',
  5426. s: 'få sekunder',
  5427. m: 'et minut',
  5428. mm: '%d minutter',
  5429. h: 'en time',
  5430. hh: '%d timer',
  5431. d: 'en dag',
  5432. dd: '%d dage',
  5433. M: 'en måned',
  5434. MM: '%d måneder',
  5435. y: 'et år',
  5436. yy: '%d år'
  5437. },
  5438. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5439. ordinal: '%d.',
  5440. week: {
  5441. dow: 1, // Monday is the first day of the week.
  5442. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5443. }
  5444. });
  5445. //! moment.js locale configuration
  5446. //! locale : German (Austria) [de-at]
  5447. //! author : lluchs : https://github.com/lluchs
  5448. //! author: Menelion Elensúle: https://github.com/Oire
  5449. //! author : Martin Groller : https://github.com/MadMG
  5450. //! author : Mikolaj Dadela : https://github.com/mik01aj
  5451. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  5452. var format = {
  5453. 'm': ['eine Minute', 'einer Minute'],
  5454. 'h': ['eine Stunde', 'einer Stunde'],
  5455. 'd': ['ein Tag', 'einem Tag'],
  5456. 'dd': [number + ' Tage', number + ' Tagen'],
  5457. 'M': ['ein Monat', 'einem Monat'],
  5458. 'MM': [number + ' Monate', number + ' Monaten'],
  5459. 'y': ['ein Jahr', 'einem Jahr'],
  5460. 'yy': [number + ' Jahre', number + ' Jahren']
  5461. };
  5462. return withoutSuffix ? format[key][0] : format[key][1];
  5463. }
  5464. hooks.defineLocale('de-at', {
  5465. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5466. monthsShort: 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  5467. monthsParseExact: true,
  5468. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5469. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5470. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5471. weekdaysParseExact: true,
  5472. longDateFormat: {
  5473. LT: 'HH:mm',
  5474. LTS: 'HH:mm:ss',
  5475. L: 'DD.MM.YYYY',
  5476. LL: 'D. MMMM YYYY',
  5477. LLL: 'D. MMMM YYYY HH:mm',
  5478. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  5479. },
  5480. calendar: {
  5481. sameDay: '[heute um] LT [Uhr]',
  5482. sameElse: 'L',
  5483. nextDay: '[morgen um] LT [Uhr]',
  5484. nextWeek: 'dddd [um] LT [Uhr]',
  5485. lastDay: '[gestern um] LT [Uhr]',
  5486. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5487. },
  5488. relativeTime: {
  5489. future: 'in %s',
  5490. past: 'vor %s',
  5491. s: 'ein paar Sekunden',
  5492. m: processRelativeTime,
  5493. mm: '%d Minuten',
  5494. h: processRelativeTime,
  5495. hh: '%d Stunden',
  5496. d: processRelativeTime,
  5497. dd: processRelativeTime,
  5498. M: processRelativeTime,
  5499. MM: processRelativeTime,
  5500. y: processRelativeTime,
  5501. yy: processRelativeTime
  5502. },
  5503. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5504. ordinal: '%d.',
  5505. week: {
  5506. dow: 1, // Monday is the first day of the week.
  5507. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5508. }
  5509. });
  5510. //! moment.js locale configuration
  5511. //! locale : German (Switzerland) [de-ch]
  5512. //! author : sschueller : https://github.com/sschueller
  5513. // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
  5514. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  5515. var format = {
  5516. 'm': ['eine Minute', 'einer Minute'],
  5517. 'h': ['eine Stunde', 'einer Stunde'],
  5518. 'd': ['ein Tag', 'einem Tag'],
  5519. 'dd': [number + ' Tage', number + ' Tagen'],
  5520. 'M': ['ein Monat', 'einem Monat'],
  5521. 'MM': [number + ' Monate', number + ' Monaten'],
  5522. 'y': ['ein Jahr', 'einem Jahr'],
  5523. 'yy': [number + ' Jahre', number + ' Jahren']
  5524. };
  5525. return withoutSuffix ? format[key][0] : format[key][1];
  5526. }
  5527. hooks.defineLocale('de-ch', {
  5528. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5529. monthsShort: 'Jan._Febr._März_April_Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.'.split('_'),
  5530. monthsParseExact: true,
  5531. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5532. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5533. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5534. weekdaysParseExact: true,
  5535. longDateFormat: {
  5536. LT: 'HH.mm',
  5537. LTS: 'HH.mm.ss',
  5538. L: 'DD.MM.YYYY',
  5539. LL: 'D. MMMM YYYY',
  5540. LLL: 'D. MMMM YYYY HH.mm',
  5541. LLLL: 'dddd, D. MMMM YYYY HH.mm'
  5542. },
  5543. calendar: {
  5544. sameDay: '[heute um] LT [Uhr]',
  5545. sameElse: 'L',
  5546. nextDay: '[morgen um] LT [Uhr]',
  5547. nextWeek: 'dddd [um] LT [Uhr]',
  5548. lastDay: '[gestern um] LT [Uhr]',
  5549. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5550. },
  5551. relativeTime: {
  5552. future: 'in %s',
  5553. past: 'vor %s',
  5554. s: 'ein paar Sekunden',
  5555. m: processRelativeTime$1,
  5556. mm: '%d Minuten',
  5557. h: processRelativeTime$1,
  5558. hh: '%d Stunden',
  5559. d: processRelativeTime$1,
  5560. dd: processRelativeTime$1,
  5561. M: processRelativeTime$1,
  5562. MM: processRelativeTime$1,
  5563. y: processRelativeTime$1,
  5564. yy: processRelativeTime$1
  5565. },
  5566. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5567. ordinal: '%d.',
  5568. week: {
  5569. dow: 1, // Monday is the first day of the week.
  5570. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5571. }
  5572. });
  5573. //! moment.js locale configuration
  5574. //! locale : German [de]
  5575. //! author : lluchs : https://github.com/lluchs
  5576. //! author: Menelion Elensúle: https://github.com/Oire
  5577. //! author : Mikolaj Dadela : https://github.com/mik01aj
  5578. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  5579. var format = {
  5580. 'm': ['eine Minute', 'einer Minute'],
  5581. 'h': ['eine Stunde', 'einer Stunde'],
  5582. 'd': ['ein Tag', 'einem Tag'],
  5583. 'dd': [number + ' Tage', number + ' Tagen'],
  5584. 'M': ['ein Monat', 'einem Monat'],
  5585. 'MM': [number + ' Monate', number + ' Monaten'],
  5586. 'y': ['ein Jahr', 'einem Jahr'],
  5587. 'yy': [number + ' Jahre', number + ' Jahren']
  5588. };
  5589. return withoutSuffix ? format[key][0] : format[key][1];
  5590. }
  5591. hooks.defineLocale('de', {
  5592. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5593. monthsShort: 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  5594. monthsParseExact: true,
  5595. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5596. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5597. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5598. weekdaysParseExact: true,
  5599. longDateFormat: {
  5600. LT: 'HH:mm',
  5601. LTS: 'HH:mm:ss',
  5602. L: 'DD.MM.YYYY',
  5603. LL: 'D. MMMM YYYY',
  5604. LLL: 'D. MMMM YYYY HH:mm',
  5605. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  5606. },
  5607. calendar: {
  5608. sameDay: '[heute um] LT [Uhr]',
  5609. sameElse: 'L',
  5610. nextDay: '[morgen um] LT [Uhr]',
  5611. nextWeek: 'dddd [um] LT [Uhr]',
  5612. lastDay: '[gestern um] LT [Uhr]',
  5613. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5614. },
  5615. relativeTime: {
  5616. future: 'in %s',
  5617. past: 'vor %s',
  5618. s: 'ein paar Sekunden',
  5619. m: processRelativeTime$2,
  5620. mm: '%d Minuten',
  5621. h: processRelativeTime$2,
  5622. hh: '%d Stunden',
  5623. d: processRelativeTime$2,
  5624. dd: processRelativeTime$2,
  5625. M: processRelativeTime$2,
  5626. MM: processRelativeTime$2,
  5627. y: processRelativeTime$2,
  5628. yy: processRelativeTime$2
  5629. },
  5630. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5631. ordinal: '%d.',
  5632. week: {
  5633. dow: 1, // Monday is the first day of the week.
  5634. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5635. }
  5636. });
  5637. //! moment.js locale configuration
  5638. //! locale : Maldivian [dv]
  5639. //! author : Jawish Hameed : https://github.com/jawish
  5640. var months$4 = [
  5641. 'ޖެނުއަރީ',
  5642. 'ފެބްރުއަރީ',
  5643. 'މާރިޗު',
  5644. 'އޭޕްރީލު',
  5645. 'މޭ',
  5646. 'ޖޫން',
  5647. 'ޖުލައި',
  5648. 'އޯގަސްޓު',
  5649. 'ސެޕްޓެމްބަރު',
  5650. 'އޮކްޓޯބަރު',
  5651. 'ނޮވެމްބަރު',
  5652. 'ޑިސެމްބަރު'
  5653. ];
  5654. var weekdays = [
  5655. 'އާދިއްތަ',
  5656. 'ހޯމަ',
  5657. 'އަންގާރަ',
  5658. 'ބުދަ',
  5659. 'ބުރާސްފަތި',
  5660. 'ހުކުރު',
  5661. 'ހޮނިހިރު'
  5662. ];
  5663. hooks.defineLocale('dv', {
  5664. months: months$4,
  5665. monthsShort: months$4,
  5666. weekdays: weekdays,
  5667. weekdaysShort: weekdays,
  5668. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  5669. longDateFormat: {
  5670. LT: 'HH:mm',
  5671. LTS: 'HH:mm:ss',
  5672. L: 'D/M/YYYY',
  5673. LL: 'D MMMM YYYY',
  5674. LLL: 'D MMMM YYYY HH:mm',
  5675. LLLL: 'dddd D MMMM YYYY HH:mm'
  5676. },
  5677. meridiemParse: /މކ|މފ/,
  5678. isPM: function (input) {
  5679. return 'މފ' === input;
  5680. },
  5681. meridiem: function (hour, minute, isLower) {
  5682. if (hour < 12) {
  5683. return 'މކ';
  5684. } else {
  5685. return 'މފ';
  5686. }
  5687. },
  5688. calendar: {
  5689. sameDay: '[މިއަދު] LT',
  5690. nextDay: '[މާދަމާ] LT',
  5691. nextWeek: 'dddd LT',
  5692. lastDay: '[އިއްޔެ] LT',
  5693. lastWeek: '[ފާއިތުވި] dddd LT',
  5694. sameElse: 'L'
  5695. },
  5696. relativeTime: {
  5697. future: 'ތެރޭގައި %s',
  5698. past: 'ކުރިން %s',
  5699. s: 'ސިކުންތުކޮޅެއް',
  5700. m: 'މިނިޓެއް',
  5701. mm: 'މިނިޓު %d',
  5702. h: 'ގަޑިއިރެއް',
  5703. hh: 'ގަޑިއިރު %d',
  5704. d: 'ދުވަހެއް',
  5705. dd: 'ދުވަސް %d',
  5706. M: 'މަހެއް',
  5707. MM: 'މަސް %d',
  5708. y: 'އަހަރެއް',
  5709. yy: 'އަހަރު %d'
  5710. },
  5711. preparse: function (string) {
  5712. return string.replace(/،/g, ',');
  5713. },
  5714. postformat: function (string) {
  5715. return string.replace(/,/g, '،');
  5716. },
  5717. week: {
  5718. dow: 7, // Sunday is the first day of the week.
  5719. doy: 12 // The week that contains Jan 1st is the first week of the year.
  5720. }
  5721. });
  5722. //! moment.js locale configuration
  5723. //! locale : Greek [el]
  5724. //! author : Aggelos Karalias : https://github.com/mehiel
  5725. hooks.defineLocale('el', {
  5726. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  5727. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  5728. months: function (momentToFormat, format) {
  5729. if (!momentToFormat) {
  5730. return this._monthsNominativeEl;
  5731. } else if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  5732. return this._monthsGenitiveEl[momentToFormat.month()];
  5733. } else {
  5734. return this._monthsNominativeEl[momentToFormat.month()];
  5735. }
  5736. },
  5737. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  5738. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  5739. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  5740. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  5741. meridiem: function (hours, minutes, isLower) {
  5742. if (hours > 11) {
  5743. return isLower ? 'μμ' : 'ΜΜ';
  5744. } else {
  5745. return isLower ? 'πμ' : 'ΠΜ';
  5746. }
  5747. },
  5748. isPM: function (input) {
  5749. return ((input + '').toLowerCase()[0] === 'μ');
  5750. },
  5751. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  5752. longDateFormat: {
  5753. LT: 'h:mm A',
  5754. LTS: 'h:mm:ss A',
  5755. L: 'DD/MM/YYYY',
  5756. LL: 'D MMMM YYYY',
  5757. LLL: 'D MMMM YYYY h:mm A',
  5758. LLLL: 'dddd, D MMMM YYYY h:mm A'
  5759. },
  5760. calendarEl: {
  5761. sameDay: '[Σήμερα {}] LT',
  5762. nextDay: '[Αύριο {}] LT',
  5763. nextWeek: 'dddd [{}] LT',
  5764. lastDay: '[Χθες {}] LT',
  5765. lastWeek: function () {
  5766. switch (this.day()) {
  5767. case 6:
  5768. return '[το προηγούμενο] dddd [{}] LT';
  5769. default:
  5770. return '[την προηγούμενη] dddd [{}] LT';
  5771. }
  5772. },
  5773. sameElse: 'L'
  5774. },
  5775. calendar: function (key, mom) {
  5776. var output = this._calendarEl[key],
  5777. hours = mom && mom.hours();
  5778. if (isFunction(output)) {
  5779. output = output.apply(mom);
  5780. }
  5781. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  5782. },
  5783. relativeTime: {
  5784. future: 'σε %s',
  5785. past: '%s πριν',
  5786. s: 'λίγα δευτερόλεπτα',
  5787. m: 'ένα λεπτό',
  5788. mm: '%d λεπτά',
  5789. h: 'μία ώρα',
  5790. hh: '%d ώρες',
  5791. d: 'μία μέρα',
  5792. dd: '%d μέρες',
  5793. M: 'ένας μήνας',
  5794. MM: '%d μήνες',
  5795. y: 'ένας χρόνος',
  5796. yy: '%d χρόνια'
  5797. },
  5798. dayOfMonthOrdinalParse: /\d{1,2}η/,
  5799. ordinal: '%dη',
  5800. week: {
  5801. dow: 1, // Monday is the first day of the week.
  5802. doy: 4 // The week that contains Jan 4st is the first week of the year.
  5803. }
  5804. });
  5805. //! moment.js locale configuration
  5806. //! locale : English (Australia) [en-au]
  5807. //! author : Jared Morse : https://github.com/jarcoal
  5808. hooks.defineLocale('en-au', {
  5809. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5810. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5811. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5812. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5813. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5814. longDateFormat: {
  5815. LT: 'h:mm A',
  5816. LTS: 'h:mm:ss A',
  5817. L: 'DD/MM/YYYY',
  5818. LL: 'D MMMM YYYY',
  5819. LLL: 'D MMMM YYYY h:mm A',
  5820. LLLL: 'dddd, D MMMM YYYY h:mm A'
  5821. },
  5822. calendar: {
  5823. sameDay: '[Today at] LT',
  5824. nextDay: '[Tomorrow at] LT',
  5825. nextWeek: 'dddd [at] LT',
  5826. lastDay: '[Yesterday at] LT',
  5827. lastWeek: '[Last] dddd [at] LT',
  5828. sameElse: 'L'
  5829. },
  5830. relativeTime: {
  5831. future: 'in %s',
  5832. past: '%s ago',
  5833. s: 'a few seconds',
  5834. m: 'a minute',
  5835. mm: '%d minutes',
  5836. h: 'an hour',
  5837. hh: '%d hours',
  5838. d: 'a day',
  5839. dd: '%d days',
  5840. M: 'a month',
  5841. MM: '%d months',
  5842. y: 'a year',
  5843. yy: '%d years'
  5844. },
  5845. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5846. ordinal: function (number) {
  5847. var b = number % 10,
  5848. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5849. (b === 1) ? 'st' :
  5850. (b === 2) ? 'nd' :
  5851. (b === 3) ? 'rd' : 'th';
  5852. return number + output;
  5853. },
  5854. week: {
  5855. dow: 1, // Monday is the first day of the week.
  5856. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5857. }
  5858. });
  5859. //! moment.js locale configuration
  5860. //! locale : English (Canada) [en-ca]
  5861. //! author : Jonathan Abourbih : https://github.com/jonbca
  5862. hooks.defineLocale('en-ca', {
  5863. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5864. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5865. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5866. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5867. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5868. longDateFormat: {
  5869. LT: 'h:mm A',
  5870. LTS: 'h:mm:ss A',
  5871. L: 'YYYY-MM-DD',
  5872. LL: 'MMMM D, YYYY',
  5873. LLL: 'MMMM D, YYYY h:mm A',
  5874. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  5875. },
  5876. calendar: {
  5877. sameDay: '[Today at] LT',
  5878. nextDay: '[Tomorrow at] LT',
  5879. nextWeek: 'dddd [at] LT',
  5880. lastDay: '[Yesterday at] LT',
  5881. lastWeek: '[Last] dddd [at] LT',
  5882. sameElse: 'L'
  5883. },
  5884. relativeTime: {
  5885. future: 'in %s',
  5886. past: '%s ago',
  5887. s: 'a few seconds',
  5888. m: 'a minute',
  5889. mm: '%d minutes',
  5890. h: 'an hour',
  5891. hh: '%d hours',
  5892. d: 'a day',
  5893. dd: '%d days',
  5894. M: 'a month',
  5895. MM: '%d months',
  5896. y: 'a year',
  5897. yy: '%d years'
  5898. },
  5899. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5900. ordinal: function (number) {
  5901. var b = number % 10,
  5902. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5903. (b === 1) ? 'st' :
  5904. (b === 2) ? 'nd' :
  5905. (b === 3) ? 'rd' : 'th';
  5906. return number + output;
  5907. }
  5908. });
  5909. //! moment.js locale configuration
  5910. //! locale : English (United Kingdom) [en-gb]
  5911. //! author : Chris Gedrim : https://github.com/chrisgedrim
  5912. hooks.defineLocale('en-gb', {
  5913. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5914. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5915. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5916. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5917. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5918. longDateFormat: {
  5919. LT: 'HH:mm',
  5920. LTS: 'HH:mm:ss',
  5921. L: 'DD/MM/YYYY',
  5922. LL: 'D MMMM YYYY',
  5923. LLL: 'D MMMM YYYY HH:mm',
  5924. LLLL: 'dddd, D MMMM YYYY HH:mm'
  5925. },
  5926. calendar: {
  5927. sameDay: '[Today at] LT',
  5928. nextDay: '[Tomorrow at] LT',
  5929. nextWeek: 'dddd [at] LT',
  5930. lastDay: '[Yesterday at] LT',
  5931. lastWeek: '[Last] dddd [at] LT',
  5932. sameElse: 'L'
  5933. },
  5934. relativeTime: {
  5935. future: 'in %s',
  5936. past: '%s ago',
  5937. s: 'a few seconds',
  5938. m: 'a minute',
  5939. mm: '%d minutes',
  5940. h: 'an hour',
  5941. hh: '%d hours',
  5942. d: 'a day',
  5943. dd: '%d days',
  5944. M: 'a month',
  5945. MM: '%d months',
  5946. y: 'a year',
  5947. yy: '%d years'
  5948. },
  5949. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5950. ordinal: function (number) {
  5951. var b = number % 10,
  5952. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5953. (b === 1) ? 'st' :
  5954. (b === 2) ? 'nd' :
  5955. (b === 3) ? 'rd' : 'th';
  5956. return number + output;
  5957. },
  5958. week: {
  5959. dow: 1, // Monday is the first day of the week.
  5960. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5961. }
  5962. });
  5963. //! moment.js locale configuration
  5964. //! locale : English (Ireland) [en-ie]
  5965. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  5966. hooks.defineLocale('en-ie', {
  5967. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5968. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5969. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5970. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5971. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5972. longDateFormat: {
  5973. LT: 'HH:mm',
  5974. LTS: 'HH:mm:ss',
  5975. L: 'DD-MM-YYYY',
  5976. LL: 'D MMMM YYYY',
  5977. LLL: 'D MMMM YYYY HH:mm',
  5978. LLLL: 'dddd D MMMM YYYY HH:mm'
  5979. },
  5980. calendar: {
  5981. sameDay: '[Today at] LT',
  5982. nextDay: '[Tomorrow at] LT',
  5983. nextWeek: 'dddd [at] LT',
  5984. lastDay: '[Yesterday at] LT',
  5985. lastWeek: '[Last] dddd [at] LT',
  5986. sameElse: 'L'
  5987. },
  5988. relativeTime: {
  5989. future: 'in %s',
  5990. past: '%s ago',
  5991. s: 'a few seconds',
  5992. m: 'a minute',
  5993. mm: '%d minutes',
  5994. h: 'an hour',
  5995. hh: '%d hours',
  5996. d: 'a day',
  5997. dd: '%d days',
  5998. M: 'a month',
  5999. MM: '%d months',
  6000. y: 'a year',
  6001. yy: '%d years'
  6002. },
  6003. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6004. ordinal: function (number) {
  6005. var b = number % 10,
  6006. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6007. (b === 1) ? 'st' :
  6008. (b === 2) ? 'nd' :
  6009. (b === 3) ? 'rd' : 'th';
  6010. return number + output;
  6011. },
  6012. week: {
  6013. dow: 1, // Monday is the first day of the week.
  6014. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6015. }
  6016. });
  6017. //! moment.js locale configuration
  6018. //! locale : English (New Zealand) [en-nz]
  6019. //! author : Luke McGregor : https://github.com/lukemcgregor
  6020. hooks.defineLocale('en-nz', {
  6021. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6022. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6023. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6024. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6025. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6026. longDateFormat: {
  6027. LT: 'h:mm A',
  6028. LTS: 'h:mm:ss A',
  6029. L: 'DD/MM/YYYY',
  6030. LL: 'D MMMM YYYY',
  6031. LLL: 'D MMMM YYYY h:mm A',
  6032. LLLL: 'dddd, D MMMM YYYY h:mm A'
  6033. },
  6034. calendar: {
  6035. sameDay: '[Today at] LT',
  6036. nextDay: '[Tomorrow at] LT',
  6037. nextWeek: 'dddd [at] LT',
  6038. lastDay: '[Yesterday at] LT',
  6039. lastWeek: '[Last] dddd [at] LT',
  6040. sameElse: 'L'
  6041. },
  6042. relativeTime: {
  6043. future: 'in %s',
  6044. past: '%s ago',
  6045. s: 'a few seconds',
  6046. m: 'a minute',
  6047. mm: '%d minutes',
  6048. h: 'an hour',
  6049. hh: '%d hours',
  6050. d: 'a day',
  6051. dd: '%d days',
  6052. M: 'a month',
  6053. MM: '%d months',
  6054. y: 'a year',
  6055. yy: '%d years'
  6056. },
  6057. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6058. ordinal: function (number) {
  6059. var b = number % 10,
  6060. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6061. (b === 1) ? 'st' :
  6062. (b === 2) ? 'nd' :
  6063. (b === 3) ? 'rd' : 'th';
  6064. return number + output;
  6065. },
  6066. week: {
  6067. dow: 1, // Monday is the first day of the week.
  6068. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6069. }
  6070. });
  6071. //! moment.js locale configuration
  6072. //! locale : Esperanto [eo]
  6073. //! author : Colin Dean : https://github.com/colindean
  6074. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  6075. //! comment : miestasmia corrected the translation by colindean
  6076. hooks.defineLocale('eo', {
  6077. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  6078. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  6079. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  6080. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  6081. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  6082. longDateFormat: {
  6083. LT: 'HH:mm',
  6084. LTS: 'HH:mm:ss',
  6085. L: 'YYYY-MM-DD',
  6086. LL: 'D[-a de] MMMM, YYYY',
  6087. LLL: 'D[-a de] MMMM, YYYY HH:mm',
  6088. LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
  6089. },
  6090. meridiemParse: /[ap]\.t\.m/i,
  6091. isPM: function (input) {
  6092. return input.charAt(0).toLowerCase() === 'p';
  6093. },
  6094. meridiem: function (hours, minutes, isLower) {
  6095. if (hours > 11) {
  6096. return isLower ? 'p.t.m.' : 'P.T.M.';
  6097. } else {
  6098. return isLower ? 'a.t.m.' : 'A.T.M.';
  6099. }
  6100. },
  6101. calendar: {
  6102. sameDay: '[Hodiaŭ je] LT',
  6103. nextDay: '[Morgaŭ je] LT',
  6104. nextWeek: 'dddd [je] LT',
  6105. lastDay: '[Hieraŭ je] LT',
  6106. lastWeek: '[pasinta] dddd [je] LT',
  6107. sameElse: 'L'
  6108. },
  6109. relativeTime: {
  6110. future: 'post %s',
  6111. past: 'antaŭ %s',
  6112. s: 'sekundoj',
  6113. m: 'minuto',
  6114. mm: '%d minutoj',
  6115. h: 'horo',
  6116. hh: '%d horoj',
  6117. d: 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  6118. dd: '%d tagoj',
  6119. M: 'monato',
  6120. MM: '%d monatoj',
  6121. y: 'jaro',
  6122. yy: '%d jaroj'
  6123. },
  6124. dayOfMonthOrdinalParse: /\d{1,2}a/,
  6125. ordinal: '%da',
  6126. week: {
  6127. dow: 1, // Monday is the first day of the week.
  6128. doy: 7 // The week that contains Jan 1st is the first week of the year.
  6129. }
  6130. });
  6131. //! moment.js locale configuration
  6132. //! locale : Spanish (Dominican Republic) [es-do]
  6133. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  6134. var monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6135. hooks.defineLocale('es-do', {
  6136. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6137. monthsShort: function (m, format) {
  6138. if (!m) {
  6139. return monthsShortDot;
  6140. } else if (/-MMM-/.test(format)) {
  6141. return monthsShort$1[m.month()];
  6142. } else {
  6143. return monthsShortDot[m.month()];
  6144. }
  6145. },
  6146. monthsParseExact: true,
  6147. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6148. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6149. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6150. weekdaysParseExact: true,
  6151. longDateFormat: {
  6152. LT: 'h:mm A',
  6153. LTS: 'h:mm:ss A',
  6154. L: 'DD/MM/YYYY',
  6155. LL: 'D [de] MMMM [de] YYYY',
  6156. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  6157. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
  6158. },
  6159. calendar: {
  6160. sameDay: function () {
  6161. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6162. },
  6163. nextDay: function () {
  6164. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6165. },
  6166. nextWeek: function () {
  6167. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6168. },
  6169. lastDay: function () {
  6170. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6171. },
  6172. lastWeek: function () {
  6173. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6174. },
  6175. sameElse: 'L'
  6176. },
  6177. relativeTime: {
  6178. future: 'en %s',
  6179. past: 'hace %s',
  6180. s: 'unos segundos',
  6181. m: 'un minuto',
  6182. mm: '%d minutos',
  6183. h: 'una hora',
  6184. hh: '%d horas',
  6185. d: 'un día',
  6186. dd: '%d días',
  6187. M: 'un mes',
  6188. MM: '%d meses',
  6189. y: 'un año',
  6190. yy: '%d años'
  6191. },
  6192. dayOfMonthOrdinalParse: /\d{1,2}º/,
  6193. ordinal: '%dº',
  6194. week: {
  6195. dow: 1, // Monday is the first day of the week.
  6196. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6197. }
  6198. });
  6199. //! moment.js locale configuration
  6200. //! locale : Spanish [es]
  6201. //! author : Julio Napurí : https://github.com/julionc
  6202. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  6203. var monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6204. hooks.defineLocale('es', {
  6205. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6206. monthsShort: function (m, format) {
  6207. if (!m) {
  6208. return monthsShortDot$1;
  6209. } else if (/-MMM-/.test(format)) {
  6210. return monthsShort$2[m.month()];
  6211. } else {
  6212. return monthsShortDot$1[m.month()];
  6213. }
  6214. },
  6215. monthsParseExact: true,
  6216. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6217. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6218. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6219. weekdaysParseExact: true,
  6220. longDateFormat: {
  6221. LT: 'H:mm',
  6222. LTS: 'H:mm:ss',
  6223. L: 'DD/MM/YYYY',
  6224. LL: 'D [de] MMMM [de] YYYY',
  6225. LLL: 'D [de] MMMM [de] YYYY H:mm',
  6226. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  6227. },
  6228. calendar: {
  6229. sameDay: function () {
  6230. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6231. },
  6232. nextDay: function () {
  6233. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6234. },
  6235. nextWeek: function () {
  6236. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6237. },
  6238. lastDay: function () {
  6239. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6240. },
  6241. lastWeek: function () {
  6242. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6243. },
  6244. sameElse: 'L'
  6245. },
  6246. relativeTime: {
  6247. future: 'en %s',
  6248. past: 'hace %s',
  6249. s: 'unos segundos',
  6250. m: 'un minuto',
  6251. mm: '%d minutos',
  6252. h: 'una hora',
  6253. hh: '%d horas',
  6254. d: 'un día',
  6255. dd: '%d días',
  6256. M: 'un mes',
  6257. MM: '%d meses',
  6258. y: 'un año',
  6259. yy: '%d años'
  6260. },
  6261. dayOfMonthOrdinalParse: /\d{1,2}º/,
  6262. ordinal: '%dº',
  6263. week: {
  6264. dow: 1, // Monday is the first day of the week.
  6265. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6266. }
  6267. });
  6268. //! moment.js locale configuration
  6269. //! locale : Estonian [et]
  6270. //! author : Henry Kehlmann : https://github.com/madhenry
  6271. //! improvements : Illimar Tambek : https://github.com/ragulka
  6272. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  6273. var format = {
  6274. 's': ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  6275. 'm': ['ühe minuti', 'üks minut'],
  6276. 'mm': [number + ' minuti', number + ' minutit'],
  6277. 'h': ['ühe tunni', 'tund aega', 'üks tund'],
  6278. 'hh': [number + ' tunni', number + ' tundi'],
  6279. 'd': ['ühe päeva', 'üks päev'],
  6280. 'M': ['kuu aja', 'kuu aega', 'üks kuu'],
  6281. 'MM': [number + ' kuu', number + ' kuud'],
  6282. 'y': ['ühe aasta', 'aasta', 'üks aasta'],
  6283. 'yy': [number + ' aasta', number + ' aastat']
  6284. };
  6285. if (withoutSuffix) {
  6286. return format[key][2] ? format[key][2] : format[key][1];
  6287. }
  6288. return isFuture ? format[key][0] : format[key][1];
  6289. }
  6290. hooks.defineLocale('et', {
  6291. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  6292. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  6293. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  6294. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  6295. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  6296. longDateFormat: {
  6297. LT: 'H:mm',
  6298. LTS: 'H:mm:ss',
  6299. L: 'DD.MM.YYYY',
  6300. LL: 'D. MMMM YYYY',
  6301. LLL: 'D. MMMM YYYY H:mm',
  6302. LLLL: 'dddd, D. MMMM YYYY H:mm'
  6303. },
  6304. calendar: {
  6305. sameDay: '[Täna,] LT',
  6306. nextDay: '[Homme,] LT',
  6307. nextWeek: '[Järgmine] dddd LT',
  6308. lastDay: '[Eile,] LT',
  6309. lastWeek: '[Eelmine] dddd LT',
  6310. sameElse: 'L'
  6311. },
  6312. relativeTime: {
  6313. future: '%s pärast',
  6314. past: '%s tagasi',
  6315. s: processRelativeTime$3,
  6316. m: processRelativeTime$3,
  6317. mm: processRelativeTime$3,
  6318. h: processRelativeTime$3,
  6319. hh: processRelativeTime$3,
  6320. d: processRelativeTime$3,
  6321. dd: '%d päeva',
  6322. M: processRelativeTime$3,
  6323. MM: processRelativeTime$3,
  6324. y: processRelativeTime$3,
  6325. yy: processRelativeTime$3
  6326. },
  6327. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6328. ordinal: '%d.',
  6329. week: {
  6330. dow: 1, // Monday is the first day of the week.
  6331. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6332. }
  6333. });
  6334. //! moment.js locale configuration
  6335. //! locale : Basque [eu]
  6336. //! author : Eneko Illarramendi : https://github.com/eillarra
  6337. hooks.defineLocale('eu', {
  6338. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  6339. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  6340. monthsParseExact: true,
  6341. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  6342. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  6343. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  6344. weekdaysParseExact: true,
  6345. longDateFormat: {
  6346. LT: 'HH:mm',
  6347. LTS: 'HH:mm:ss',
  6348. L: 'YYYY-MM-DD',
  6349. LL: 'YYYY[ko] MMMM[ren] D[a]',
  6350. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  6351. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  6352. l: 'YYYY-M-D',
  6353. ll: 'YYYY[ko] MMM D[a]',
  6354. lll: 'YYYY[ko] MMM D[a] HH:mm',
  6355. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
  6356. },
  6357. calendar: {
  6358. sameDay: '[gaur] LT[etan]',
  6359. nextDay: '[bihar] LT[etan]',
  6360. nextWeek: 'dddd LT[etan]',
  6361. lastDay: '[atzo] LT[etan]',
  6362. lastWeek: '[aurreko] dddd LT[etan]',
  6363. sameElse: 'L'
  6364. },
  6365. relativeTime: {
  6366. future: '%s barru',
  6367. past: 'duela %s',
  6368. s: 'segundo batzuk',
  6369. m: 'minutu bat',
  6370. mm: '%d minutu',
  6371. h: 'ordu bat',
  6372. hh: '%d ordu',
  6373. d: 'egun bat',
  6374. dd: '%d egun',
  6375. M: 'hilabete bat',
  6376. MM: '%d hilabete',
  6377. y: 'urte bat',
  6378. yy: '%d urte'
  6379. },
  6380. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6381. ordinal: '%d.',
  6382. week: {
  6383. dow: 1, // Monday is the first day of the week.
  6384. doy: 7 // The week that contains Jan 1st is the first week of the year.
  6385. }
  6386. });
  6387. //! moment.js locale configuration
  6388. //! locale : Persian [fa]
  6389. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  6390. var symbolMap$5 = {
  6391. '1': '۱',
  6392. '2': '۲',
  6393. '3': '۳',
  6394. '4': '۴',
  6395. '5': '۵',
  6396. '6': '۶',
  6397. '7': '۷',
  6398. '8': '۸',
  6399. '9': '۹',
  6400. '0': '۰'
  6401. };
  6402. var numberMap$4 = {
  6403. '۱': '1',
  6404. '۲': '2',
  6405. '۳': '3',
  6406. '۴': '4',
  6407. '۵': '5',
  6408. '۶': '6',
  6409. '۷': '7',
  6410. '۸': '8',
  6411. '۹': '9',
  6412. '۰': '0'
  6413. };
  6414. hooks.defineLocale('fa', {
  6415. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  6416. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  6417. weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  6418. weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  6419. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  6420. weekdaysParseExact: true,
  6421. longDateFormat: {
  6422. LT: 'HH:mm',
  6423. LTS: 'HH:mm:ss',
  6424. L: 'DD/MM/YYYY',
  6425. LL: 'D MMMM YYYY',
  6426. LLL: 'D MMMM YYYY HH:mm',
  6427. LLLL: 'dddd, D MMMM YYYY HH:mm'
  6428. },
  6429. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  6430. isPM: function (input) {
  6431. return /بعد از ظهر/.test(input);
  6432. },
  6433. meridiem: function (hour, minute, isLower) {
  6434. if (hour < 12) {
  6435. return 'قبل از ظهر';
  6436. } else {
  6437. return 'بعد از ظهر';
  6438. }
  6439. },
  6440. calendar: {
  6441. sameDay: '[امروز ساعت] LT',
  6442. nextDay: '[فردا ساعت] LT',
  6443. nextWeek: 'dddd [ساعت] LT',
  6444. lastDay: '[دیروز ساعت] LT',
  6445. lastWeek: 'dddd [پیش] [ساعت] LT',
  6446. sameElse: 'L'
  6447. },
  6448. relativeTime: {
  6449. future: 'در %s',
  6450. past: '%s پیش',
  6451. s: 'چند ثانیه',
  6452. m: 'یک دقیقه',
  6453. mm: '%d دقیقه',
  6454. h: 'یک ساعت',
  6455. hh: '%d ساعت',
  6456. d: 'یک روز',
  6457. dd: '%d روز',
  6458. M: 'یک ماه',
  6459. MM: '%d ماه',
  6460. y: 'یک سال',
  6461. yy: '%d سال'
  6462. },
  6463. preparse: function (string) {
  6464. return string.replace(/[۰-۹]/g, function (match) {
  6465. return numberMap$4[match];
  6466. }).replace(/،/g, ',');
  6467. },
  6468. postformat: function (string) {
  6469. return string.replace(/\d/g, function (match) {
  6470. return symbolMap$5[match];
  6471. }).replace(/,/g, '،');
  6472. },
  6473. dayOfMonthOrdinalParse: /\d{1,2}م/,
  6474. ordinal: '%dم',
  6475. week: {
  6476. dow: 6, // Saturday is the first day of the week.
  6477. doy: 12 // The week that contains Jan 1st is the first week of the year.
  6478. }
  6479. });
  6480. //! moment.js locale configuration
  6481. //! locale : Finnish [fi]
  6482. //! author : Tarmo Aidantausta : https://github.com/bleadof
  6483. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' ');
  6484. var numbersFuture = [
  6485. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  6486. numbersPast[7], numbersPast[8], numbersPast[9]
  6487. ];
  6488. function translate$2(number, withoutSuffix, key, isFuture) {
  6489. var result = '';
  6490. switch (key) {
  6491. case 's':
  6492. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  6493. case 'm':
  6494. return isFuture ? 'minuutin' : 'minuutti';
  6495. case 'mm':
  6496. result = isFuture ? 'minuutin' : 'minuuttia';
  6497. break;
  6498. case 'h':
  6499. return isFuture ? 'tunnin' : 'tunti';
  6500. case 'hh':
  6501. result = isFuture ? 'tunnin' : 'tuntia';
  6502. break;
  6503. case 'd':
  6504. return isFuture ? 'päivän' : 'päivä';
  6505. case 'dd':
  6506. result = isFuture ? 'päivän' : 'päivää';
  6507. break;
  6508. case 'M':
  6509. return isFuture ? 'kuukauden' : 'kuukausi';
  6510. case 'MM':
  6511. result = isFuture ? 'kuukauden' : 'kuukautta';
  6512. break;
  6513. case 'y':
  6514. return isFuture ? 'vuoden' : 'vuosi';
  6515. case 'yy':
  6516. result = isFuture ? 'vuoden' : 'vuotta';
  6517. break;
  6518. }
  6519. result = verbalNumber(number, isFuture) + ' ' + result;
  6520. return result;
  6521. }
  6522. function verbalNumber(number, isFuture) {
  6523. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  6524. }
  6525. hooks.defineLocale('fi', {
  6526. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  6527. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  6528. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  6529. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  6530. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  6531. longDateFormat: {
  6532. LT: 'HH.mm',
  6533. LTS: 'HH.mm.ss',
  6534. L: 'DD.MM.YYYY',
  6535. LL: 'Do MMMM[ta] YYYY',
  6536. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  6537. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  6538. l: 'D.M.YYYY',
  6539. ll: 'Do MMM YYYY',
  6540. lll: 'Do MMM YYYY, [klo] HH.mm',
  6541. llll: 'ddd, Do MMM YYYY, [klo] HH.mm'
  6542. },
  6543. calendar: {
  6544. sameDay: '[tänään] [klo] LT',
  6545. nextDay: '[huomenna] [klo] LT',
  6546. nextWeek: 'dddd [klo] LT',
  6547. lastDay: '[eilen] [klo] LT',
  6548. lastWeek: '[viime] dddd[na] [klo] LT',
  6549. sameElse: 'L'
  6550. },
  6551. relativeTime: {
  6552. future: '%s päästä',
  6553. past: '%s sitten',
  6554. s: translate$2,
  6555. m: translate$2,
  6556. mm: translate$2,
  6557. h: translate$2,
  6558. hh: translate$2,
  6559. d: translate$2,
  6560. dd: translate$2,
  6561. M: translate$2,
  6562. MM: translate$2,
  6563. y: translate$2,
  6564. yy: translate$2
  6565. },
  6566. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6567. ordinal: '%d.',
  6568. week: {
  6569. dow: 1, // Monday is the first day of the week.
  6570. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6571. }
  6572. });
  6573. //! moment.js locale configuration
  6574. //! locale : Faroese [fo]
  6575. //! author : Ragnar Johannesen : https://github.com/ragnar123
  6576. hooks.defineLocale('fo', {
  6577. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  6578. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  6579. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  6580. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  6581. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  6582. longDateFormat: {
  6583. LT: 'HH:mm',
  6584. LTS: 'HH:mm:ss',
  6585. L: 'DD/MM/YYYY',
  6586. LL: 'D MMMM YYYY',
  6587. LLL: 'D MMMM YYYY HH:mm',
  6588. LLLL: 'dddd D. MMMM, YYYY HH:mm'
  6589. },
  6590. calendar: {
  6591. sameDay: '[Í dag kl.] LT',
  6592. nextDay: '[Í morgin kl.] LT',
  6593. nextWeek: 'dddd [kl.] LT',
  6594. lastDay: '[Í gjár kl.] LT',
  6595. lastWeek: '[síðstu] dddd [kl] LT',
  6596. sameElse: 'L'
  6597. },
  6598. relativeTime: {
  6599. future: 'um %s',
  6600. past: '%s síðani',
  6601. s: 'fá sekund',
  6602. m: 'ein minutt',
  6603. mm: '%d minuttir',
  6604. h: 'ein tími',
  6605. hh: '%d tímar',
  6606. d: 'ein dagur',
  6607. dd: '%d dagar',
  6608. M: 'ein mánaði',
  6609. MM: '%d mánaðir',
  6610. y: 'eitt ár',
  6611. yy: '%d ár'
  6612. },
  6613. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6614. ordinal: '%d.',
  6615. week: {
  6616. dow: 1, // Monday is the first day of the week.
  6617. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6618. }
  6619. });
  6620. //! moment.js locale configuration
  6621. //! locale : French (Canada) [fr-ca]
  6622. //! author : Jonathan Abourbih : https://github.com/jonbca
  6623. hooks.defineLocale('fr-ca', {
  6624. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6625. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6626. monthsParseExact: true,
  6627. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6628. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6629. weekdaysMin: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6630. weekdaysParseExact: true,
  6631. longDateFormat: {
  6632. LT: 'HH:mm',
  6633. LTS: 'HH:mm:ss',
  6634. L: 'YYYY-MM-DD',
  6635. LL: 'D MMMM YYYY',
  6636. LLL: 'D MMMM YYYY HH:mm',
  6637. LLLL: 'dddd D MMMM YYYY HH:mm'
  6638. },
  6639. calendar: {
  6640. sameDay: '[Aujourd’hui à] LT',
  6641. nextDay: '[Demain à] LT',
  6642. nextWeek: 'dddd [à] LT',
  6643. lastDay: '[Hier à] LT',
  6644. lastWeek: 'dddd [dernier à] LT',
  6645. sameElse: 'L'
  6646. },
  6647. relativeTime: {
  6648. future: 'dans %s',
  6649. past: 'il y a %s',
  6650. s: 'quelques secondes',
  6651. m: 'une minute',
  6652. mm: '%d minutes',
  6653. h: 'une heure',
  6654. hh: '%d heures',
  6655. d: 'un jour',
  6656. dd: '%d jours',
  6657. M: 'un mois',
  6658. MM: '%d mois',
  6659. y: 'un an',
  6660. yy: '%d ans'
  6661. },
  6662. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  6663. ordinal: function (number, period) {
  6664. switch (period) {
  6665. // Words with masculine grammatical gender: mois, trimestre, jour
  6666. default:
  6667. case 'M':
  6668. case 'Q':
  6669. case 'D':
  6670. case 'DDD':
  6671. case 'd':
  6672. return number + (number === 1 ? 'er' : 'e');
  6673. // Words with feminine grammatical gender: semaine
  6674. case 'w':
  6675. case 'W':
  6676. return number + (number === 1 ? 're' : 'e');
  6677. }
  6678. }
  6679. });
  6680. //! moment.js locale configuration
  6681. //! locale : French (Switzerland) [fr-ch]
  6682. //! author : Gaspard Bucher : https://github.com/gaspard
  6683. hooks.defineLocale('fr-ch', {
  6684. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6685. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6686. monthsParseExact: true,
  6687. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6688. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6689. weekdaysMin: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6690. weekdaysParseExact: true,
  6691. longDateFormat: {
  6692. LT: 'HH:mm',
  6693. LTS: 'HH:mm:ss',
  6694. L: 'DD.MM.YYYY',
  6695. LL: 'D MMMM YYYY',
  6696. LLL: 'D MMMM YYYY HH:mm',
  6697. LLLL: 'dddd D MMMM YYYY HH:mm'
  6698. },
  6699. calendar: {
  6700. sameDay: '[Aujourd’hui à] LT',
  6701. nextDay: '[Demain à] LT',
  6702. nextWeek: 'dddd [à] LT',
  6703. lastDay: '[Hier à] LT',
  6704. lastWeek: 'dddd [dernier à] LT',
  6705. sameElse: 'L'
  6706. },
  6707. relativeTime: {
  6708. future: 'dans %s',
  6709. past: 'il y a %s',
  6710. s: 'quelques secondes',
  6711. m: 'une minute',
  6712. mm: '%d minutes',
  6713. h: 'une heure',
  6714. hh: '%d heures',
  6715. d: 'un jour',
  6716. dd: '%d jours',
  6717. M: 'un mois',
  6718. MM: '%d mois',
  6719. y: 'un an',
  6720. yy: '%d ans'
  6721. },
  6722. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  6723. ordinal: function (number, period) {
  6724. switch (period) {
  6725. // Words with masculine grammatical gender: mois, trimestre, jour
  6726. default:
  6727. case 'M':
  6728. case 'Q':
  6729. case 'D':
  6730. case 'DDD':
  6731. case 'd':
  6732. return number + (number === 1 ? 'er' : 'e');
  6733. // Words with feminine grammatical gender: semaine
  6734. case 'w':
  6735. case 'W':
  6736. return number + (number === 1 ? 're' : 'e');
  6737. }
  6738. },
  6739. week: {
  6740. dow: 1, // Monday is the first day of the week.
  6741. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6742. }
  6743. });
  6744. //! moment.js locale configuration
  6745. //! locale : French [fr]
  6746. //! author : John Fischer : https://github.com/jfroffice
  6747. hooks.defineLocale('fr', {
  6748. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6749. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6750. monthsParseExact: true,
  6751. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6752. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6753. weekdaysMin: 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6754. weekdaysParseExact: true,
  6755. longDateFormat: {
  6756. LT: 'HH:mm',
  6757. LTS: 'HH:mm:ss',
  6758. L: 'DD/MM/YYYY',
  6759. LL: 'D MMMM YYYY',
  6760. LLL: 'D MMMM YYYY HH:mm',
  6761. LLLL: 'dddd D MMMM YYYY HH:mm'
  6762. },
  6763. calendar: {
  6764. sameDay: '[Aujourd’hui à] LT',
  6765. nextDay: '[Demain à] LT',
  6766. nextWeek: 'dddd [à] LT',
  6767. lastDay: '[Hier à] LT',
  6768. lastWeek: 'dddd [dernier à] LT',
  6769. sameElse: 'L'
  6770. },
  6771. relativeTime: {
  6772. future: 'dans %s',
  6773. past: 'il y a %s',
  6774. s: 'quelques secondes',
  6775. m: 'une minute',
  6776. mm: '%d minutes',
  6777. h: 'une heure',
  6778. hh: '%d heures',
  6779. d: 'un jour',
  6780. dd: '%d jours',
  6781. M: 'un mois',
  6782. MM: '%d mois',
  6783. y: 'un an',
  6784. yy: '%d ans'
  6785. },
  6786. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  6787. ordinal: function (number, period) {
  6788. switch (period) {
  6789. // TODO: Return 'e' when day of month > 1. Move this case inside
  6790. // block for masculine words below.
  6791. // See https://github.com/moment/moment/issues/3375
  6792. case 'D':
  6793. return number + (number === 1 ? 'er' : '');
  6794. // Words with masculine grammatical gender: mois, trimestre, jour
  6795. default:
  6796. case 'M':
  6797. case 'Q':
  6798. case 'DDD':
  6799. case 'd':
  6800. return number + (number === 1 ? 'er' : 'e');
  6801. // Words with feminine grammatical gender: semaine
  6802. case 'w':
  6803. case 'W':
  6804. return number + (number === 1 ? 're' : 'e');
  6805. }
  6806. },
  6807. week: {
  6808. dow: 1, // Monday is the first day of the week.
  6809. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6810. }
  6811. });
  6812. //! moment.js locale configuration
  6813. //! locale : Frisian [fy]
  6814. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  6815. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
  6816. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  6817. hooks.defineLocale('fy', {
  6818. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  6819. monthsShort: function (m, format) {
  6820. if (!m) {
  6821. return monthsShortWithDots;
  6822. } else if (/-MMM-/.test(format)) {
  6823. return monthsShortWithoutDots[m.month()];
  6824. } else {
  6825. return monthsShortWithDots[m.month()];
  6826. }
  6827. },
  6828. monthsParseExact: true,
  6829. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  6830. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  6831. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  6832. weekdaysParseExact: true,
  6833. longDateFormat: {
  6834. LT: 'HH:mm',
  6835. LTS: 'HH:mm:ss',
  6836. L: 'DD-MM-YYYY',
  6837. LL: 'D MMMM YYYY',
  6838. LLL: 'D MMMM YYYY HH:mm',
  6839. LLLL: 'dddd D MMMM YYYY HH:mm'
  6840. },
  6841. calendar: {
  6842. sameDay: '[hjoed om] LT',
  6843. nextDay: '[moarn om] LT',
  6844. nextWeek: 'dddd [om] LT',
  6845. lastDay: '[juster om] LT',
  6846. lastWeek: '[ôfrûne] dddd [om] LT',
  6847. sameElse: 'L'
  6848. },
  6849. relativeTime: {
  6850. future: 'oer %s',
  6851. past: '%s lyn',
  6852. s: 'in pear sekonden',
  6853. m: 'ien minút',
  6854. mm: '%d minuten',
  6855. h: 'ien oere',
  6856. hh: '%d oeren',
  6857. d: 'ien dei',
  6858. dd: '%d dagen',
  6859. M: 'ien moanne',
  6860. MM: '%d moannen',
  6861. y: 'ien jier',
  6862. yy: '%d jierren'
  6863. },
  6864. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  6865. ordinal: function (number) {
  6866. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  6867. },
  6868. week: {
  6869. dow: 1, // Monday is the first day of the week.
  6870. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6871. }
  6872. });
  6873. //! moment.js locale configuration
  6874. //! locale : Scottish Gaelic [gd]
  6875. //! author : Jon Ashdown : https://github.com/jonashdown
  6876. var months$5 = [
  6877. 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
  6878. ];
  6879. var monthsShort$3 = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  6880. var weekdays$1 = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  6881. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  6882. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  6883. hooks.defineLocale('gd', {
  6884. months: months$5,
  6885. monthsShort: monthsShort$3,
  6886. monthsParseExact: true,
  6887. weekdays: weekdays$1,
  6888. weekdaysShort: weekdaysShort,
  6889. weekdaysMin: weekdaysMin,
  6890. longDateFormat: {
  6891. LT: 'HH:mm',
  6892. LTS: 'HH:mm:ss',
  6893. L: 'DD/MM/YYYY',
  6894. LL: 'D MMMM YYYY',
  6895. LLL: 'D MMMM YYYY HH:mm',
  6896. LLLL: 'dddd, D MMMM YYYY HH:mm'
  6897. },
  6898. calendar: {
  6899. sameDay: '[An-diugh aig] LT',
  6900. nextDay: '[A-màireach aig] LT',
  6901. nextWeek: 'dddd [aig] LT',
  6902. lastDay: '[An-dè aig] LT',
  6903. lastWeek: 'dddd [seo chaidh] [aig] LT',
  6904. sameElse: 'L'
  6905. },
  6906. relativeTime: {
  6907. future: 'ann an %s',
  6908. past: 'bho chionn %s',
  6909. s: 'beagan diogan',
  6910. m: 'mionaid',
  6911. mm: '%d mionaidean',
  6912. h: 'uair',
  6913. hh: '%d uairean',
  6914. d: 'latha',
  6915. dd: '%d latha',
  6916. M: 'mìos',
  6917. MM: '%d mìosan',
  6918. y: 'bliadhna',
  6919. yy: '%d bliadhna'
  6920. },
  6921. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  6922. ordinal: function (number) {
  6923. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  6924. return number + output;
  6925. },
  6926. week: {
  6927. dow: 1, // Monday is the first day of the week.
  6928. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6929. }
  6930. });
  6931. //! moment.js locale configuration
  6932. //! locale : Galician [gl]
  6933. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  6934. hooks.defineLocale('gl', {
  6935. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  6936. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  6937. monthsParseExact: true,
  6938. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  6939. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  6940. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  6941. weekdaysParseExact: true,
  6942. longDateFormat: {
  6943. LT: 'H:mm',
  6944. LTS: 'H:mm:ss',
  6945. L: 'DD/MM/YYYY',
  6946. LL: 'D [de] MMMM [de] YYYY',
  6947. LLL: 'D [de] MMMM [de] YYYY H:mm',
  6948. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  6949. },
  6950. calendar: {
  6951. sameDay: function () {
  6952. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  6953. },
  6954. nextDay: function () {
  6955. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  6956. },
  6957. nextWeek: function () {
  6958. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  6959. },
  6960. lastDay: function () {
  6961. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  6962. },
  6963. lastWeek: function () {
  6964. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  6965. },
  6966. sameElse: 'L'
  6967. },
  6968. relativeTime: {
  6969. future: function (str) {
  6970. if (str.indexOf('un') === 0) {
  6971. return 'n' + str;
  6972. }
  6973. return 'en ' + str;
  6974. },
  6975. past: 'hai %s',
  6976. s: 'uns segundos',
  6977. m: 'un minuto',
  6978. mm: '%d minutos',
  6979. h: 'unha hora',
  6980. hh: '%d horas',
  6981. d: 'un día',
  6982. dd: '%d días',
  6983. M: 'un mes',
  6984. MM: '%d meses',
  6985. y: 'un ano',
  6986. yy: '%d anos'
  6987. },
  6988. dayOfMonthOrdinalParse: /\d{1,2}º/,
  6989. ordinal: '%dº',
  6990. week: {
  6991. dow: 1, // Monday is the first day of the week.
  6992. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6993. }
  6994. });
  6995. //! moment.js locale configuration
  6996. //! locale : Konkani Latin script [gom-latn]
  6997. //! author : The Discoverer : https://github.com/WikiDiscoverer
  6998. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  6999. var format = {
  7000. 's': ['thodde secondanim', 'thodde second'],
  7001. 'm': ['eka mintan', 'ek minute'],
  7002. 'mm': [number + ' mintanim', number + ' mintam'],
  7003. 'h': ['eka horan', 'ek hor'],
  7004. 'hh': [number + ' horanim', number + ' hor'],
  7005. 'd': ['eka disan', 'ek dis'],
  7006. 'dd': [number + ' disanim', number + ' dis'],
  7007. 'M': ['eka mhoinean', 'ek mhoino'],
  7008. 'MM': [number + ' mhoineanim', number + ' mhoine'],
  7009. 'y': ['eka vorsan', 'ek voros'],
  7010. 'yy': [number + ' vorsanim', number + ' vorsam']
  7011. };
  7012. return withoutSuffix ? format[key][0] : format[key][1];
  7013. }
  7014. hooks.defineLocale('gom-latn', {
  7015. months: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  7016. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  7017. monthsParseExact: true,
  7018. weekdays: 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
  7019. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  7020. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  7021. weekdaysParseExact: true,
  7022. longDateFormat: {
  7023. LT: 'A h:mm [vazta]',
  7024. LTS: 'A h:mm:ss [vazta]',
  7025. L: 'DD-MM-YYYY',
  7026. LL: 'D MMMM YYYY',
  7027. LLL: 'D MMMM YYYY A h:mm [vazta]',
  7028. LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
  7029. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  7030. },
  7031. calendar: {
  7032. sameDay: '[Aiz] LT',
  7033. nextDay: '[Faleam] LT',
  7034. nextWeek: '[Ieta to] dddd[,] LT',
  7035. lastDay: '[Kal] LT',
  7036. lastWeek: '[Fatlo] dddd[,] LT',
  7037. sameElse: 'L'
  7038. },
  7039. relativeTime: {
  7040. future: '%s',
  7041. past: '%s adim',
  7042. s: processRelativeTime$4,
  7043. m: processRelativeTime$4,
  7044. mm: processRelativeTime$4,
  7045. h: processRelativeTime$4,
  7046. hh: processRelativeTime$4,
  7047. d: processRelativeTime$4,
  7048. dd: processRelativeTime$4,
  7049. M: processRelativeTime$4,
  7050. MM: processRelativeTime$4,
  7051. y: processRelativeTime$4,
  7052. yy: processRelativeTime$4
  7053. },
  7054. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  7055. ordinal: function (number, period) {
  7056. switch (period) {
  7057. // the ordinal 'er' only applies to day of the month
  7058. case 'D':
  7059. return number + 'er';
  7060. default:
  7061. case 'M':
  7062. case 'Q':
  7063. case 'DDD':
  7064. case 'd':
  7065. case 'w':
  7066. case 'W':
  7067. return number;
  7068. }
  7069. },
  7070. week: {
  7071. dow: 1, // Monday is the first day of the week.
  7072. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7073. },
  7074. meridiemParse: /rati|sokalli|donparam|sanje/,
  7075. meridiemHour: function (hour, meridiem) {
  7076. if (hour === 12) {
  7077. hour = 0;
  7078. }
  7079. if (meridiem === 'rati') {
  7080. return hour < 4 ? hour : hour + 12;
  7081. } else if (meridiem === 'sokalli') {
  7082. return hour;
  7083. } else if (meridiem === 'donparam') {
  7084. return hour > 12 ? hour : hour + 12;
  7085. } else if (meridiem === 'sanje') {
  7086. return hour + 12;
  7087. }
  7088. },
  7089. meridiem: function (hour, minute, isLower) {
  7090. if (hour < 4) {
  7091. return 'rati';
  7092. } else if (hour < 12) {
  7093. return 'sokalli';
  7094. } else if (hour < 16) {
  7095. return 'donparam';
  7096. } else if (hour < 20) {
  7097. return 'sanje';
  7098. } else {
  7099. return 'rati';
  7100. }
  7101. }
  7102. });
  7103. //! moment.js locale configuration
  7104. //! locale : Hebrew [he]
  7105. //! author : Tomer Cohen : https://github.com/tomer
  7106. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  7107. //! author : Tal Ater : https://github.com/TalAter
  7108. hooks.defineLocale('he', {
  7109. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  7110. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  7111. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  7112. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  7113. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  7114. longDateFormat: {
  7115. LT: 'HH:mm',
  7116. LTS: 'HH:mm:ss',
  7117. L: 'DD/MM/YYYY',
  7118. LL: 'D [ב]MMMM YYYY',
  7119. LLL: 'D [ב]MMMM YYYY HH:mm',
  7120. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  7121. l: 'D/M/YYYY',
  7122. ll: 'D MMM YYYY',
  7123. lll: 'D MMM YYYY HH:mm',
  7124. llll: 'ddd, D MMM YYYY HH:mm'
  7125. },
  7126. calendar: {
  7127. sameDay: '[היום ב־]LT',
  7128. nextDay: '[מחר ב־]LT',
  7129. nextWeek: 'dddd [בשעה] LT',
  7130. lastDay: '[אתמול ב־]LT',
  7131. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  7132. sameElse: 'L'
  7133. },
  7134. relativeTime: {
  7135. future: 'בעוד %s',
  7136. past: 'לפני %s',
  7137. s: 'מספר שניות',
  7138. m: 'דקה',
  7139. mm: '%d דקות',
  7140. h: 'שעה',
  7141. hh: function (number) {
  7142. if (number === 2) {
  7143. return 'שעתיים';
  7144. }
  7145. return number + ' שעות';
  7146. },
  7147. d: 'יום',
  7148. dd: function (number) {
  7149. if (number === 2) {
  7150. return 'יומיים';
  7151. }
  7152. return number + ' ימים';
  7153. },
  7154. M: 'חודש',
  7155. MM: function (number) {
  7156. if (number === 2) {
  7157. return 'חודשיים';
  7158. }
  7159. return number + ' חודשים';
  7160. },
  7161. y: 'שנה',
  7162. yy: function (number) {
  7163. if (number === 2) {
  7164. return 'שנתיים';
  7165. } else if (number % 10 === 0 && number !== 10) {
  7166. return number + ' שנה';
  7167. }
  7168. return number + ' שנים';
  7169. }
  7170. },
  7171. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  7172. isPM: function (input) {
  7173. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  7174. },
  7175. meridiem: function (hour, minute, isLower) {
  7176. if (hour < 5) {
  7177. return 'לפנות בוקר';
  7178. } else if (hour < 10) {
  7179. return 'בבוקר';
  7180. } else if (hour < 12) {
  7181. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  7182. } else if (hour < 18) {
  7183. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  7184. } else {
  7185. return 'בערב';
  7186. }
  7187. }
  7188. });
  7189. //! moment.js locale configuration
  7190. //! locale : Hindi [hi]
  7191. //! author : Mayank Singhal : https://github.com/mayanksinghal
  7192. var symbolMap$6 = {
  7193. '1': '१',
  7194. '2': '२',
  7195. '3': '३',
  7196. '4': '४',
  7197. '5': '५',
  7198. '6': '६',
  7199. '7': '७',
  7200. '8': '८',
  7201. '9': '९',
  7202. '0': '०'
  7203. };
  7204. var numberMap$5 = {
  7205. '१': '1',
  7206. '२': '2',
  7207. '३': '3',
  7208. '४': '4',
  7209. '५': '5',
  7210. '६': '6',
  7211. '७': '7',
  7212. '८': '8',
  7213. '९': '9',
  7214. '०': '0'
  7215. };
  7216. hooks.defineLocale('hi', {
  7217. months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  7218. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  7219. monthsParseExact: true,
  7220. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  7221. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  7222. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  7223. longDateFormat: {
  7224. LT: 'A h:mm बजे',
  7225. LTS: 'A h:mm:ss बजे',
  7226. L: 'DD/MM/YYYY',
  7227. LL: 'D MMMM YYYY',
  7228. LLL: 'D MMMM YYYY, A h:mm बजे',
  7229. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'
  7230. },
  7231. calendar: {
  7232. sameDay: '[आज] LT',
  7233. nextDay: '[कल] LT',
  7234. nextWeek: 'dddd, LT',
  7235. lastDay: '[कल] LT',
  7236. lastWeek: '[पिछले] dddd, LT',
  7237. sameElse: 'L'
  7238. },
  7239. relativeTime: {
  7240. future: '%s में',
  7241. past: '%s पहले',
  7242. s: 'कुछ ही क्षण',
  7243. m: 'एक मिनट',
  7244. mm: '%d मिनट',
  7245. h: 'एक घंटा',
  7246. hh: '%d घंटे',
  7247. d: 'एक दिन',
  7248. dd: '%d दिन',
  7249. M: 'एक महीने',
  7250. MM: '%d महीने',
  7251. y: 'एक वर्ष',
  7252. yy: '%d वर्ष'
  7253. },
  7254. preparse: function (string) {
  7255. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  7256. return numberMap$5[match];
  7257. });
  7258. },
  7259. postformat: function (string) {
  7260. return string.replace(/\d/g, function (match) {
  7261. return symbolMap$6[match];
  7262. });
  7263. },
  7264. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  7265. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  7266. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  7267. meridiemHour: function (hour, meridiem) {
  7268. if (hour === 12) {
  7269. hour = 0;
  7270. }
  7271. if (meridiem === 'रात') {
  7272. return hour < 4 ? hour : hour + 12;
  7273. } else if (meridiem === 'सुबह') {
  7274. return hour;
  7275. } else if (meridiem === 'दोपहर') {
  7276. return hour >= 10 ? hour : hour + 12;
  7277. } else if (meridiem === 'शाम') {
  7278. return hour + 12;
  7279. }
  7280. },
  7281. meridiem: function (hour, minute, isLower) {
  7282. if (hour < 4) {
  7283. return 'रात';
  7284. } else if (hour < 10) {
  7285. return 'सुबह';
  7286. } else if (hour < 17) {
  7287. return 'दोपहर';
  7288. } else if (hour < 20) {
  7289. return 'शाम';
  7290. } else {
  7291. return 'रात';
  7292. }
  7293. },
  7294. week: {
  7295. dow: 0, // Sunday is the first day of the week.
  7296. doy: 6 // The week that contains Jan 1st is the first week of the year.
  7297. }
  7298. });
  7299. //! moment.js locale configuration
  7300. //! locale : Croatian [hr]
  7301. //! author : Bojan Marković : https://github.com/bmarkovic
  7302. function translate$3(number, withoutSuffix, key) {
  7303. var result = number + ' ';
  7304. switch (key) {
  7305. case 'm':
  7306. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  7307. case 'mm':
  7308. if (number === 1) {
  7309. result += 'minuta';
  7310. } else if (number === 2 || number === 3 || number === 4) {
  7311. result += 'minute';
  7312. } else {
  7313. result += 'minuta';
  7314. }
  7315. return result;
  7316. case 'h':
  7317. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  7318. case 'hh':
  7319. if (number === 1) {
  7320. result += 'sat';
  7321. } else if (number === 2 || number === 3 || number === 4) {
  7322. result += 'sata';
  7323. } else {
  7324. result += 'sati';
  7325. }
  7326. return result;
  7327. case 'dd':
  7328. if (number === 1) {
  7329. result += 'dan';
  7330. } else {
  7331. result += 'dana';
  7332. }
  7333. return result;
  7334. case 'MM':
  7335. if (number === 1) {
  7336. result += 'mjesec';
  7337. } else if (number === 2 || number === 3 || number === 4) {
  7338. result += 'mjeseca';
  7339. } else {
  7340. result += 'mjeseci';
  7341. }
  7342. return result;
  7343. case 'yy':
  7344. if (number === 1) {
  7345. result += 'godina';
  7346. } else if (number === 2 || number === 3 || number === 4) {
  7347. result += 'godine';
  7348. } else {
  7349. result += 'godina';
  7350. }
  7351. return result;
  7352. }
  7353. }
  7354. hooks.defineLocale('hr', {
  7355. months: {
  7356. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  7357. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  7358. },
  7359. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  7360. monthsParseExact: true,
  7361. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  7362. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  7363. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  7364. weekdaysParseExact: true,
  7365. longDateFormat: {
  7366. LT: 'H:mm',
  7367. LTS: 'H:mm:ss',
  7368. L: 'DD.MM.YYYY',
  7369. LL: 'D. MMMM YYYY',
  7370. LLL: 'D. MMMM YYYY H:mm',
  7371. LLLL: 'dddd, D. MMMM YYYY H:mm'
  7372. },
  7373. calendar: {
  7374. sameDay: '[danas u] LT',
  7375. nextDay: '[sutra u] LT',
  7376. nextWeek: function () {
  7377. switch (this.day()) {
  7378. case 0:
  7379. return '[u] [nedjelju] [u] LT';
  7380. case 3:
  7381. return '[u] [srijedu] [u] LT';
  7382. case 6:
  7383. return '[u] [subotu] [u] LT';
  7384. case 1:
  7385. case 2:
  7386. case 4:
  7387. case 5:
  7388. return '[u] dddd [u] LT';
  7389. }
  7390. },
  7391. lastDay: '[jučer u] LT',
  7392. lastWeek: function () {
  7393. switch (this.day()) {
  7394. case 0:
  7395. case 3:
  7396. return '[prošlu] dddd [u] LT';
  7397. case 6:
  7398. return '[prošle] [subote] [u] LT';
  7399. case 1:
  7400. case 2:
  7401. case 4:
  7402. case 5:
  7403. return '[prošli] dddd [u] LT';
  7404. }
  7405. },
  7406. sameElse: 'L'
  7407. },
  7408. relativeTime: {
  7409. future: 'za %s',
  7410. past: 'prije %s',
  7411. s: 'par sekundi',
  7412. m: translate$3,
  7413. mm: translate$3,
  7414. h: translate$3,
  7415. hh: translate$3,
  7416. d: 'dan',
  7417. dd: translate$3,
  7418. M: 'mjesec',
  7419. MM: translate$3,
  7420. y: 'godinu',
  7421. yy: translate$3
  7422. },
  7423. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7424. ordinal: '%d.',
  7425. week: {
  7426. dow: 1, // Monday is the first day of the week.
  7427. doy: 7 // The week that contains Jan 1st is the first week of the year.
  7428. }
  7429. });
  7430. //! moment.js locale configuration
  7431. //! locale : Hungarian [hu]
  7432. //! author : Adam Brunner : https://github.com/adambrunner
  7433. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  7434. function translate$4(number, withoutSuffix, key, isFuture) {
  7435. var num = number,
  7436. suffix;
  7437. switch (key) {
  7438. case 's':
  7439. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  7440. case 'm':
  7441. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  7442. case 'mm':
  7443. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  7444. case 'h':
  7445. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  7446. case 'hh':
  7447. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  7448. case 'd':
  7449. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  7450. case 'dd':
  7451. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  7452. case 'M':
  7453. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  7454. case 'MM':
  7455. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  7456. case 'y':
  7457. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  7458. case 'yy':
  7459. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  7460. }
  7461. return '';
  7462. }
  7463. function week(isFuture) {
  7464. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  7465. }
  7466. hooks.defineLocale('hu', {
  7467. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  7468. monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  7469. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  7470. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  7471. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  7472. longDateFormat: {
  7473. LT: 'H:mm',
  7474. LTS: 'H:mm:ss',
  7475. L: 'YYYY.MM.DD.',
  7476. LL: 'YYYY. MMMM D.',
  7477. LLL: 'YYYY. MMMM D. H:mm',
  7478. LLLL: 'YYYY. MMMM D., dddd H:mm'
  7479. },
  7480. meridiemParse: /de|du/i,
  7481. isPM: function (input) {
  7482. return input.charAt(1).toLowerCase() === 'u';
  7483. },
  7484. meridiem: function (hours, minutes, isLower) {
  7485. if (hours < 12) {
  7486. return isLower === true ? 'de' : 'DE';
  7487. } else {
  7488. return isLower === true ? 'du' : 'DU';
  7489. }
  7490. },
  7491. calendar: {
  7492. sameDay: '[ma] LT[-kor]',
  7493. nextDay: '[holnap] LT[-kor]',
  7494. nextWeek: function () {
  7495. return week.call(this, true);
  7496. },
  7497. lastDay: '[tegnap] LT[-kor]',
  7498. lastWeek: function () {
  7499. return week.call(this, false);
  7500. },
  7501. sameElse: 'L'
  7502. },
  7503. relativeTime: {
  7504. future: '%s múlva',
  7505. past: '%s',
  7506. s: translate$4,
  7507. m: translate$4,
  7508. mm: translate$4,
  7509. h: translate$4,
  7510. hh: translate$4,
  7511. d: translate$4,
  7512. dd: translate$4,
  7513. M: translate$4,
  7514. MM: translate$4,
  7515. y: translate$4,
  7516. yy: translate$4
  7517. },
  7518. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7519. ordinal: '%d.',
  7520. week: {
  7521. dow: 1, // Monday is the first day of the week.
  7522. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7523. }
  7524. });
  7525. //! moment.js locale configuration
  7526. //! locale : Armenian [hy-am]
  7527. //! author : Armendarabyan : https://github.com/armendarabyan
  7528. hooks.defineLocale('hy-am', {
  7529. months: {
  7530. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  7531. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  7532. },
  7533. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  7534. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  7535. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  7536. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  7537. longDateFormat: {
  7538. LT: 'HH:mm',
  7539. LTS: 'HH:mm:ss',
  7540. L: 'DD.MM.YYYY',
  7541. LL: 'D MMMM YYYY թ.',
  7542. LLL: 'D MMMM YYYY թ., HH:mm',
  7543. LLLL: 'dddd, D MMMM YYYY թ., HH:mm'
  7544. },
  7545. calendar: {
  7546. sameDay: '[այսօր] LT',
  7547. nextDay: '[վաղը] LT',
  7548. lastDay: '[երեկ] LT',
  7549. nextWeek: function () {
  7550. return 'dddd [օրը ժամը] LT';
  7551. },
  7552. lastWeek: function () {
  7553. return '[անցած] dddd [օրը ժամը] LT';
  7554. },
  7555. sameElse: 'L'
  7556. },
  7557. relativeTime: {
  7558. future: '%s հետո',
  7559. past: '%s առաջ',
  7560. s: 'մի քանի վայրկյան',
  7561. m: 'րոպե',
  7562. mm: '%d րոպե',
  7563. h: 'ժամ',
  7564. hh: '%d ժամ',
  7565. d: 'օր',
  7566. dd: '%d օր',
  7567. M: 'ամիս',
  7568. MM: '%d ամիս',
  7569. y: 'տարի',
  7570. yy: '%d տարի'
  7571. },
  7572. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  7573. isPM: function (input) {
  7574. return /^(ցերեկվա|երեկոյան)$/.test(input);
  7575. },
  7576. meridiem: function (hour) {
  7577. if (hour < 4) {
  7578. return 'գիշերվա';
  7579. } else if (hour < 12) {
  7580. return 'առավոտվա';
  7581. } else if (hour < 17) {
  7582. return 'ցերեկվա';
  7583. } else {
  7584. return 'երեկոյան';
  7585. }
  7586. },
  7587. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  7588. ordinal: function (number, period) {
  7589. switch (period) {
  7590. case 'DDD':
  7591. case 'w':
  7592. case 'W':
  7593. case 'DDDo':
  7594. if (number === 1) {
  7595. return number + '-ին';
  7596. }
  7597. return number + '-րդ';
  7598. default:
  7599. return number;
  7600. }
  7601. },
  7602. week: {
  7603. dow: 1, // Monday is the first day of the week.
  7604. doy: 7 // The week that contains Jan 1st is the first week of the year.
  7605. }
  7606. });
  7607. //! moment.js locale configuration
  7608. //! locale : Indonesian [id]
  7609. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  7610. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  7611. hooks.defineLocale('id', {
  7612. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  7613. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  7614. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  7615. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  7616. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  7617. longDateFormat: {
  7618. LT: 'HH.mm',
  7619. LTS: 'HH.mm.ss',
  7620. L: 'DD/MM/YYYY',
  7621. LL: 'D MMMM YYYY',
  7622. LLL: 'D MMMM YYYY [pukul] HH.mm',
  7623. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  7624. },
  7625. meridiemParse: /pagi|siang|sore|malam/,
  7626. meridiemHour: function (hour, meridiem) {
  7627. if (hour === 12) {
  7628. hour = 0;
  7629. }
  7630. if (meridiem === 'pagi') {
  7631. return hour;
  7632. } else if (meridiem === 'siang') {
  7633. return hour >= 11 ? hour : hour + 12;
  7634. } else if (meridiem === 'sore' || meridiem === 'malam') {
  7635. return hour + 12;
  7636. }
  7637. },
  7638. meridiem: function (hours, minutes, isLower) {
  7639. if (hours < 11) {
  7640. return 'pagi';
  7641. } else if (hours < 15) {
  7642. return 'siang';
  7643. } else if (hours < 19) {
  7644. return 'sore';
  7645. } else {
  7646. return 'malam';
  7647. }
  7648. },
  7649. calendar: {
  7650. sameDay: '[Hari ini pukul] LT',
  7651. nextDay: '[Besok pukul] LT',
  7652. nextWeek: 'dddd [pukul] LT',
  7653. lastDay: '[Kemarin pukul] LT',
  7654. lastWeek: 'dddd [lalu pukul] LT',
  7655. sameElse: 'L'
  7656. },
  7657. relativeTime: {
  7658. future: 'dalam %s',
  7659. past: '%s yang lalu',
  7660. s: 'beberapa detik',
  7661. m: 'semenit',
  7662. mm: '%d menit',
  7663. h: 'sejam',
  7664. hh: '%d jam',
  7665. d: 'sehari',
  7666. dd: '%d hari',
  7667. M: 'sebulan',
  7668. MM: '%d bulan',
  7669. y: 'setahun',
  7670. yy: '%d tahun'
  7671. },
  7672. week: {
  7673. dow: 1, // Monday is the first day of the week.
  7674. doy: 7 // The week that contains Jan 1st is the first week of the year.
  7675. }
  7676. });
  7677. //! moment.js locale configuration
  7678. //! locale : Icelandic [is]
  7679. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  7680. function plural$2(n) {
  7681. if (n % 100 === 11) {
  7682. return true;
  7683. } else if (n % 10 === 1) {
  7684. return false;
  7685. }
  7686. return true;
  7687. }
  7688. function translate$5(number, withoutSuffix, key, isFuture) {
  7689. var result = number + ' ';
  7690. switch (key) {
  7691. case 's':
  7692. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  7693. case 'm':
  7694. return withoutSuffix ? 'mínúta' : 'mínútu';
  7695. case 'mm':
  7696. if (plural$2(number)) {
  7697. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  7698. } else if (withoutSuffix) {
  7699. return result + 'mínúta';
  7700. }
  7701. return result + 'mínútu';
  7702. case 'hh':
  7703. if (plural$2(number)) {
  7704. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  7705. }
  7706. return result + 'klukkustund';
  7707. case 'd':
  7708. if (withoutSuffix) {
  7709. return 'dagur';
  7710. }
  7711. return isFuture ? 'dag' : 'degi';
  7712. case 'dd':
  7713. if (plural$2(number)) {
  7714. if (withoutSuffix) {
  7715. return result + 'dagar';
  7716. }
  7717. return result + (isFuture ? 'daga' : 'dögum');
  7718. } else if (withoutSuffix) {
  7719. return result + 'dagur';
  7720. }
  7721. return result + (isFuture ? 'dag' : 'degi');
  7722. case 'M':
  7723. if (withoutSuffix) {
  7724. return 'mánuður';
  7725. }
  7726. return isFuture ? 'mánuð' : 'mánuði';
  7727. case 'MM':
  7728. if (plural$2(number)) {
  7729. if (withoutSuffix) {
  7730. return result + 'mánuðir';
  7731. }
  7732. return result + (isFuture ? 'mánuði' : 'mánuðum');
  7733. } else if (withoutSuffix) {
  7734. return result + 'mánuður';
  7735. }
  7736. return result + (isFuture ? 'mánuð' : 'mánuði');
  7737. case 'y':
  7738. return withoutSuffix || isFuture ? 'ár' : 'ári';
  7739. case 'yy':
  7740. if (plural$2(number)) {
  7741. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  7742. }
  7743. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  7744. }
  7745. }
  7746. hooks.defineLocale('is', {
  7747. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  7748. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  7749. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  7750. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  7751. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  7752. longDateFormat: {
  7753. LT: 'H:mm',
  7754. LTS: 'H:mm:ss',
  7755. L: 'DD.MM.YYYY',
  7756. LL: 'D. MMMM YYYY',
  7757. LLL: 'D. MMMM YYYY [kl.] H:mm',
  7758. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'
  7759. },
  7760. calendar: {
  7761. sameDay: '[í dag kl.] LT',
  7762. nextDay: '[á morgun kl.] LT',
  7763. nextWeek: 'dddd [kl.] LT',
  7764. lastDay: '[í gær kl.] LT',
  7765. lastWeek: '[síðasta] dddd [kl.] LT',
  7766. sameElse: 'L'
  7767. },
  7768. relativeTime: {
  7769. future: 'eftir %s',
  7770. past: 'fyrir %s síðan',
  7771. s: translate$5,
  7772. m: translate$5,
  7773. mm: translate$5,
  7774. h: 'klukkustund',
  7775. hh: translate$5,
  7776. d: translate$5,
  7777. dd: translate$5,
  7778. M: translate$5,
  7779. MM: translate$5,
  7780. y: translate$5,
  7781. yy: translate$5
  7782. },
  7783. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7784. ordinal: '%d.',
  7785. week: {
  7786. dow: 1, // Monday is the first day of the week.
  7787. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7788. }
  7789. });
  7790. //! moment.js locale configuration
  7791. //! locale : Italian [it]
  7792. //! author : Lorenzo : https://github.com/aliem
  7793. //! author: Mattia Larentis: https://github.com/nostalgiaz
  7794. hooks.defineLocale('it', {
  7795. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  7796. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  7797. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  7798. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  7799. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  7800. longDateFormat: {
  7801. LT: 'HH:mm',
  7802. LTS: 'HH:mm:ss',
  7803. L: 'DD/MM/YYYY',
  7804. LL: 'D MMMM YYYY',
  7805. LLL: 'D MMMM YYYY HH:mm',
  7806. LLLL: 'dddd, D MMMM YYYY HH:mm'
  7807. },
  7808. calendar: {
  7809. sameDay: '[Oggi alle] LT',
  7810. nextDay: '[Domani alle] LT',
  7811. nextWeek: 'dddd [alle] LT',
  7812. lastDay: '[Ieri alle] LT',
  7813. lastWeek: function () {
  7814. switch (this.day()) {
  7815. case 0:
  7816. return '[la scorsa] dddd [alle] LT';
  7817. default:
  7818. return '[lo scorso] dddd [alle] LT';
  7819. }
  7820. },
  7821. sameElse: 'L'
  7822. },
  7823. relativeTime: {
  7824. future: function (s) {
  7825. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  7826. },
  7827. past: '%s fa',
  7828. s: 'alcuni secondi',
  7829. m: 'un minuto',
  7830. mm: '%d minuti',
  7831. h: 'un\'ora',
  7832. hh: '%d ore',
  7833. d: 'un giorno',
  7834. dd: '%d giorni',
  7835. M: 'un mese',
  7836. MM: '%d mesi',
  7837. y: 'un anno',
  7838. yy: '%d anni'
  7839. },
  7840. dayOfMonthOrdinalParse: /\d{1,2}º/,
  7841. ordinal: '%dº',
  7842. week: {
  7843. dow: 1, // Monday is the first day of the week.
  7844. doy: 4 // The week that contains Jan 4th is the first week of the year.
  7845. }
  7846. });
  7847. //! moment.js locale configuration
  7848. //! locale : Japanese [ja]
  7849. //! author : LI Long : https://github.com/baryon
  7850. hooks.defineLocale('ja', {
  7851. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  7852. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  7853. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  7854. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  7855. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  7856. longDateFormat: {
  7857. LT: 'HH:mm',
  7858. LTS: 'HH:mm:ss',
  7859. L: 'YYYY/MM/DD',
  7860. LL: 'YYYY年M月D日',
  7861. LLL: 'YYYY年M月D日 HH:mm',
  7862. LLLL: 'YYYY年M月D日 HH:mm dddd',
  7863. l: 'YYYY/MM/DD',
  7864. ll: 'YYYY年M月D日',
  7865. lll: 'YYYY年M月D日 HH:mm',
  7866. llll: 'YYYY年M月D日 HH:mm dddd'
  7867. },
  7868. meridiemParse: /午前|午後/i,
  7869. isPM: function (input) {
  7870. return input === '午後';
  7871. },
  7872. meridiem: function (hour, minute, isLower) {
  7873. if (hour < 12) {
  7874. return '午前';
  7875. } else {
  7876. return '午後';
  7877. }
  7878. },
  7879. calendar: {
  7880. sameDay: '[今日] LT',
  7881. nextDay: '[明日] LT',
  7882. nextWeek: '[来週]dddd LT',
  7883. lastDay: '[昨日] LT',
  7884. lastWeek: '[前週]dddd LT',
  7885. sameElse: 'L'
  7886. },
  7887. dayOfMonthOrdinalParse: /\d{1,2}日/,
  7888. ordinal: function (number, period) {
  7889. switch (period) {
  7890. case 'd':
  7891. case 'D':
  7892. case 'DDD':
  7893. return number + '日';
  7894. default:
  7895. return number;
  7896. }
  7897. },
  7898. relativeTime: {
  7899. future: '%s後',
  7900. past: '%s前',
  7901. s: '数秒',
  7902. m: '1分',
  7903. mm: '%d分',
  7904. h: '1時間',
  7905. hh: '%d時間',
  7906. d: '1日',
  7907. dd: '%d日',
  7908. M: '1ヶ月',
  7909. MM: '%dヶ月',
  7910. y: '1年',
  7911. yy: '%d年'
  7912. }
  7913. });
  7914. //! moment.js locale configuration
  7915. //! locale : Javanese [jv]
  7916. //! author : Rony Lantip : https://github.com/lantip
  7917. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  7918. hooks.defineLocale('jv', {
  7919. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  7920. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  7921. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  7922. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  7923. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  7924. longDateFormat: {
  7925. LT: 'HH.mm',
  7926. LTS: 'HH.mm.ss',
  7927. L: 'DD/MM/YYYY',
  7928. LL: 'D MMMM YYYY',
  7929. LLL: 'D MMMM YYYY [pukul] HH.mm',
  7930. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  7931. },
  7932. meridiemParse: /enjing|siyang|sonten|ndalu/,
  7933. meridiemHour: function (hour, meridiem) {
  7934. if (hour === 12) {
  7935. hour = 0;
  7936. }
  7937. if (meridiem === 'enjing') {
  7938. return hour;
  7939. } else if (meridiem === 'siyang') {
  7940. return hour >= 11 ? hour : hour + 12;
  7941. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  7942. return hour + 12;
  7943. }
  7944. },
  7945. meridiem: function (hours, minutes, isLower) {
  7946. if (hours < 11) {
  7947. return 'enjing';
  7948. } else if (hours < 15) {
  7949. return 'siyang';
  7950. } else if (hours < 19) {
  7951. return 'sonten';
  7952. } else {
  7953. return 'ndalu';
  7954. }
  7955. },
  7956. calendar: {
  7957. sameDay: '[Dinten puniko pukul] LT',
  7958. nextDay: '[Mbenjang pukul] LT',
  7959. nextWeek: 'dddd [pukul] LT',
  7960. lastDay: '[Kala wingi pukul] LT',
  7961. lastWeek: 'dddd [kepengker pukul] LT',
  7962. sameElse: 'L'
  7963. },
  7964. relativeTime: {
  7965. future: 'wonten ing %s',
  7966. past: '%s ingkang kepengker',
  7967. s: 'sawetawis detik',
  7968. m: 'setunggal menit',
  7969. mm: '%d menit',
  7970. h: 'setunggal jam',
  7971. hh: '%d jam',
  7972. d: 'sedinten',
  7973. dd: '%d dinten',
  7974. M: 'sewulan',
  7975. MM: '%d wulan',
  7976. y: 'setaun',
  7977. yy: '%d taun'
  7978. },
  7979. week: {
  7980. dow: 1, // Monday is the first day of the week.
  7981. doy: 7 // The week that contains Jan 1st is the first week of the year.
  7982. }
  7983. });
  7984. //! moment.js locale configuration
  7985. //! locale : Georgian [ka]
  7986. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  7987. hooks.defineLocale('ka', {
  7988. months: {
  7989. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  7990. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  7991. },
  7992. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  7993. weekdays: {
  7994. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  7995. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  7996. isFormat: /(წინა|შემდეგ)/
  7997. },
  7998. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  7999. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  8000. longDateFormat: {
  8001. LT: 'h:mm A',
  8002. LTS: 'h:mm:ss A',
  8003. L: 'DD/MM/YYYY',
  8004. LL: 'D MMMM YYYY',
  8005. LLL: 'D MMMM YYYY h:mm A',
  8006. LLLL: 'dddd, D MMMM YYYY h:mm A'
  8007. },
  8008. calendar: {
  8009. sameDay: '[დღეს] LT[-ზე]',
  8010. nextDay: '[ხვალ] LT[-ზე]',
  8011. lastDay: '[გუშინ] LT[-ზე]',
  8012. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  8013. lastWeek: '[წინა] dddd LT-ზე',
  8014. sameElse: 'L'
  8015. },
  8016. relativeTime: {
  8017. future: function (s) {
  8018. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  8019. s.replace(/ი$/, 'ში') :
  8020. s + 'ში';
  8021. },
  8022. past: function (s) {
  8023. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  8024. return s.replace(/(ი|ე)$/, 'ის უკან');
  8025. }
  8026. if ((/წელი/).test(s)) {
  8027. return s.replace(/წელი$/, 'წლის უკან');
  8028. }
  8029. },
  8030. s: 'რამდენიმე წამი',
  8031. m: 'წუთი',
  8032. mm: '%d წუთი',
  8033. h: 'საათი',
  8034. hh: '%d საათი',
  8035. d: 'დღე',
  8036. dd: '%d დღე',
  8037. M: 'თვე',
  8038. MM: '%d თვე',
  8039. y: 'წელი',
  8040. yy: '%d წელი'
  8041. },
  8042. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  8043. ordinal: function (number) {
  8044. if (number === 0) {
  8045. return number;
  8046. }
  8047. if (number === 1) {
  8048. return number + '-ლი';
  8049. }
  8050. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  8051. return 'მე-' + number;
  8052. }
  8053. return number + '-ე';
  8054. },
  8055. week: {
  8056. dow: 1,
  8057. doy: 7
  8058. }
  8059. });
  8060. //! moment.js locale configuration
  8061. //! locale : Kazakh [kk]
  8062. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  8063. var suffixes$1 = {
  8064. 0: '-ші',
  8065. 1: '-ші',
  8066. 2: '-ші',
  8067. 3: '-ші',
  8068. 4: '-ші',
  8069. 5: '-ші',
  8070. 6: '-шы',
  8071. 7: '-ші',
  8072. 8: '-ші',
  8073. 9: '-шы',
  8074. 10: '-шы',
  8075. 20: '-шы',
  8076. 30: '-шы',
  8077. 40: '-шы',
  8078. 50: '-ші',
  8079. 60: '-шы',
  8080. 70: '-ші',
  8081. 80: '-ші',
  8082. 90: '-шы',
  8083. 100: '-ші'
  8084. };
  8085. hooks.defineLocale('kk', {
  8086. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  8087. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  8088. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  8089. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  8090. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  8091. longDateFormat: {
  8092. LT: 'HH:mm',
  8093. LTS: 'HH:mm:ss',
  8094. L: 'DD.MM.YYYY',
  8095. LL: 'D MMMM YYYY',
  8096. LLL: 'D MMMM YYYY HH:mm',
  8097. LLLL: 'dddd, D MMMM YYYY HH:mm'
  8098. },
  8099. calendar: {
  8100. sameDay: '[Бүгін сағат] LT',
  8101. nextDay: '[Ертең сағат] LT',
  8102. nextWeek: 'dddd [сағат] LT',
  8103. lastDay: '[Кеше сағат] LT',
  8104. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  8105. sameElse: 'L'
  8106. },
  8107. relativeTime: {
  8108. future: '%s ішінде',
  8109. past: '%s бұрын',
  8110. s: 'бірнеше секунд',
  8111. m: 'бір минут',
  8112. mm: '%d минут',
  8113. h: 'бір сағат',
  8114. hh: '%d сағат',
  8115. d: 'бір күн',
  8116. dd: '%d күн',
  8117. M: 'бір ай',
  8118. MM: '%d ай',
  8119. y: 'бір жыл',
  8120. yy: '%d жыл'
  8121. },
  8122. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  8123. ordinal: function (number) {
  8124. var a = number % 10,
  8125. b = number >= 100 ? 100 : null;
  8126. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  8127. },
  8128. week: {
  8129. dow: 1, // Monday is the first day of the week.
  8130. doy: 7 // The week that contains Jan 1st is the first week of the year.
  8131. }
  8132. });
  8133. //! moment.js locale configuration
  8134. //! locale : Cambodian [km]
  8135. //! author : Kruy Vanna : https://github.com/kruyvanna
  8136. hooks.defineLocale('km', {
  8137. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  8138. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  8139. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8140. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8141. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8142. longDateFormat: {
  8143. LT: 'HH:mm',
  8144. LTS: 'HH:mm:ss',
  8145. L: 'DD/MM/YYYY',
  8146. LL: 'D MMMM YYYY',
  8147. LLL: 'D MMMM YYYY HH:mm',
  8148. LLLL: 'dddd, D MMMM YYYY HH:mm'
  8149. },
  8150. calendar: {
  8151. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  8152. nextDay: '[ស្អែក ម៉ោង] LT',
  8153. nextWeek: 'dddd [ម៉ោង] LT',
  8154. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  8155. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  8156. sameElse: 'L'
  8157. },
  8158. relativeTime: {
  8159. future: '%sទៀត',
  8160. past: '%sមុន',
  8161. s: 'ប៉ុន្មានវិនាទី',
  8162. m: 'មួយនាទី',
  8163. mm: '%d នាទី',
  8164. h: 'មួយម៉ោង',
  8165. hh: '%d ម៉ោង',
  8166. d: 'មួយថ្ងៃ',
  8167. dd: '%d ថ្ងៃ',
  8168. M: 'មួយខែ',
  8169. MM: '%d ខែ',
  8170. y: 'មួយឆ្នាំ',
  8171. yy: '%d ឆ្នាំ'
  8172. },
  8173. week: {
  8174. dow: 1, // Monday is the first day of the week.
  8175. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8176. }
  8177. });
  8178. //! moment.js locale configuration
  8179. //! locale : Kannada [kn]
  8180. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  8181. var symbolMap$7 = {
  8182. '1': '೧',
  8183. '2': '೨',
  8184. '3': '೩',
  8185. '4': '೪',
  8186. '5': '೫',
  8187. '6': '೬',
  8188. '7': '೭',
  8189. '8': '೮',
  8190. '9': '೯',
  8191. '0': '೦'
  8192. };
  8193. var numberMap$6 = {
  8194. '೧': '1',
  8195. '೨': '2',
  8196. '೩': '3',
  8197. '೪': '4',
  8198. '೫': '5',
  8199. '೬': '6',
  8200. '೭': '7',
  8201. '೮': '8',
  8202. '೯': '9',
  8203. '೦': '0'
  8204. };
  8205. hooks.defineLocale('kn', {
  8206. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  8207. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'),
  8208. monthsParseExact: true,
  8209. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  8210. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  8211. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  8212. longDateFormat: {
  8213. LT: 'A h:mm',
  8214. LTS: 'A h:mm:ss',
  8215. L: 'DD/MM/YYYY',
  8216. LL: 'D MMMM YYYY',
  8217. LLL: 'D MMMM YYYY, A h:mm',
  8218. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  8219. },
  8220. calendar: {
  8221. sameDay: '[ಇಂದು] LT',
  8222. nextDay: '[ನಾಳೆ] LT',
  8223. nextWeek: 'dddd, LT',
  8224. lastDay: '[ನಿನ್ನೆ] LT',
  8225. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  8226. sameElse: 'L'
  8227. },
  8228. relativeTime: {
  8229. future: '%s ನಂತರ',
  8230. past: '%s ಹಿಂದೆ',
  8231. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  8232. m: 'ಒಂದು ನಿಮಿಷ',
  8233. mm: '%d ನಿಮಿಷ',
  8234. h: 'ಒಂದು ಗಂಟೆ',
  8235. hh: '%d ಗಂಟೆ',
  8236. d: 'ಒಂದು ದಿನ',
  8237. dd: '%d ದಿನ',
  8238. M: 'ಒಂದು ತಿಂಗಳು',
  8239. MM: '%d ತಿಂಗಳು',
  8240. y: 'ಒಂದು ವರ್ಷ',
  8241. yy: '%d ವರ್ಷ'
  8242. },
  8243. preparse: function (string) {
  8244. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  8245. return numberMap$6[match];
  8246. });
  8247. },
  8248. postformat: function (string) {
  8249. return string.replace(/\d/g, function (match) {
  8250. return symbolMap$7[match];
  8251. });
  8252. },
  8253. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  8254. meridiemHour: function (hour, meridiem) {
  8255. if (hour === 12) {
  8256. hour = 0;
  8257. }
  8258. if (meridiem === 'ರಾತ್ರಿ') {
  8259. return hour < 4 ? hour : hour + 12;
  8260. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  8261. return hour;
  8262. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  8263. return hour >= 10 ? hour : hour + 12;
  8264. } else if (meridiem === 'ಸಂಜೆ') {
  8265. return hour + 12;
  8266. }
  8267. },
  8268. meridiem: function (hour, minute, isLower) {
  8269. if (hour < 4) {
  8270. return 'ರಾತ್ರಿ';
  8271. } else if (hour < 10) {
  8272. return 'ಬೆಳಿಗ್ಗೆ';
  8273. } else if (hour < 17) {
  8274. return 'ಮಧ್ಯಾಹ್ನ';
  8275. } else if (hour < 20) {
  8276. return 'ಸಂಜೆ';
  8277. } else {
  8278. return 'ರಾತ್ರಿ';
  8279. }
  8280. },
  8281. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  8282. ordinal: function (number) {
  8283. return number + 'ನೇ';
  8284. },
  8285. week: {
  8286. dow: 0, // Sunday is the first day of the week.
  8287. doy: 6 // The week that contains Jan 1st is the first week of the year.
  8288. }
  8289. });
  8290. //! moment.js locale configuration
  8291. //! locale : Korean [ko]
  8292. //! author : Kyungwook, Park : https://github.com/kyungw00k
  8293. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  8294. hooks.defineLocale('ko', {
  8295. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  8296. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  8297. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  8298. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  8299. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  8300. longDateFormat: {
  8301. LT: 'A h:mm',
  8302. LTS: 'A h:mm:ss',
  8303. L: 'YYYY.MM.DD',
  8304. LL: 'YYYY년 MMMM D일',
  8305. LLL: 'YYYY년 MMMM D일 A h:mm',
  8306. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  8307. l: 'YYYY.MM.DD',
  8308. ll: 'YYYY년 MMMM D일',
  8309. lll: 'YYYY년 MMMM D일 A h:mm',
  8310. llll: 'YYYY년 MMMM D일 dddd A h:mm'
  8311. },
  8312. calendar: {
  8313. sameDay: '오늘 LT',
  8314. nextDay: '내일 LT',
  8315. nextWeek: 'dddd LT',
  8316. lastDay: '어제 LT',
  8317. lastWeek: '지난주 dddd LT',
  8318. sameElse: 'L'
  8319. },
  8320. relativeTime: {
  8321. future: '%s 후',
  8322. past: '%s 전',
  8323. s: '몇 초',
  8324. ss: '%d초',
  8325. m: '1분',
  8326. mm: '%d분',
  8327. h: '한 시간',
  8328. hh: '%d시간',
  8329. d: '하루',
  8330. dd: '%d일',
  8331. M: '한 달',
  8332. MM: '%d달',
  8333. y: '일 년',
  8334. yy: '%d년'
  8335. },
  8336. dayOfMonthOrdinalParse: /\d{1,2}일/,
  8337. ordinal: '%d일',
  8338. meridiemParse: /오전|오후/,
  8339. isPM: function (token) {
  8340. return token === '오후';
  8341. },
  8342. meridiem: function (hour, minute, isUpper) {
  8343. return hour < 12 ? '오전' : '오후';
  8344. }
  8345. });
  8346. //! moment.js locale configuration
  8347. //! locale : Kyrgyz [ky]
  8348. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  8349. var suffixes$2 = {
  8350. 0: '-чү',
  8351. 1: '-чи',
  8352. 2: '-чи',
  8353. 3: '-чү',
  8354. 4: '-чү',
  8355. 5: '-чи',
  8356. 6: '-чы',
  8357. 7: '-чи',
  8358. 8: '-чи',
  8359. 9: '-чу',
  8360. 10: '-чу',
  8361. 20: '-чы',
  8362. 30: '-чу',
  8363. 40: '-чы',
  8364. 50: '-чү',
  8365. 60: '-чы',
  8366. 70: '-чи',
  8367. 80: '-чи',
  8368. 90: '-чу',
  8369. 100: '-чү'
  8370. };
  8371. hooks.defineLocale('ky', {
  8372. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  8373. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  8374. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  8375. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  8376. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  8377. longDateFormat: {
  8378. LT: 'HH:mm',
  8379. LTS: 'HH:mm:ss',
  8380. L: 'DD.MM.YYYY',
  8381. LL: 'D MMMM YYYY',
  8382. LLL: 'D MMMM YYYY HH:mm',
  8383. LLLL: 'dddd, D MMMM YYYY HH:mm'
  8384. },
  8385. calendar: {
  8386. sameDay: '[Бүгүн саат] LT',
  8387. nextDay: '[Эртең саат] LT',
  8388. nextWeek: 'dddd [саат] LT',
  8389. lastDay: '[Кече саат] LT',
  8390. lastWeek: '[Өткен аптанын] dddd [күнү] [саат] LT',
  8391. sameElse: 'L'
  8392. },
  8393. relativeTime: {
  8394. future: '%s ичинде',
  8395. past: '%s мурун',
  8396. s: 'бирнече секунд',
  8397. m: 'бир мүнөт',
  8398. mm: '%d мүнөт',
  8399. h: 'бир саат',
  8400. hh: '%d саат',
  8401. d: 'бир күн',
  8402. dd: '%d күн',
  8403. M: 'бир ай',
  8404. MM: '%d ай',
  8405. y: 'бир жыл',
  8406. yy: '%d жыл'
  8407. },
  8408. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  8409. ordinal: function (number) {
  8410. var a = number % 10,
  8411. b = number >= 100 ? 100 : null;
  8412. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  8413. },
  8414. week: {
  8415. dow: 1, // Monday is the first day of the week.
  8416. doy: 7 // The week that contains Jan 1st is the first week of the year.
  8417. }
  8418. });
  8419. //! moment.js locale configuration
  8420. //! locale : Luxembourgish [lb]
  8421. //! author : mweimerskirch : https://github.com/mweimerskirch
  8422. //! author : David Raison : https://github.com/kwisatz
  8423. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  8424. var format = {
  8425. 'm': ['eng Minutt', 'enger Minutt'],
  8426. 'h': ['eng Stonn', 'enger Stonn'],
  8427. 'd': ['een Dag', 'engem Dag'],
  8428. 'M': ['ee Mount', 'engem Mount'],
  8429. 'y': ['ee Joer', 'engem Joer']
  8430. };
  8431. return withoutSuffix ? format[key][0] : format[key][1];
  8432. }
  8433. function processFutureTime(string) {
  8434. var number = string.substr(0, string.indexOf(' '));
  8435. if (eifelerRegelAppliesToNumber(number)) {
  8436. return 'a ' + string;
  8437. }
  8438. return 'an ' + string;
  8439. }
  8440. function processPastTime(string) {
  8441. var number = string.substr(0, string.indexOf(' '));
  8442. if (eifelerRegelAppliesToNumber(number)) {
  8443. return 'viru ' + string;
  8444. }
  8445. return 'virun ' + string;
  8446. }
  8447. /**
  8448. * Returns true if the word before the given number loses the '-n' ending.
  8449. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  8450. *
  8451. * @param number {integer}
  8452. * @returns {boolean}
  8453. */
  8454. function eifelerRegelAppliesToNumber(number) {
  8455. number = parseInt(number, 10);
  8456. if (isNaN(number)) {
  8457. return false;
  8458. }
  8459. if (number < 0) {
  8460. // Negative Number --> always true
  8461. return true;
  8462. } else if (number < 10) {
  8463. // Only 1 digit
  8464. if (4 <= number && number <= 7) {
  8465. return true;
  8466. }
  8467. return false;
  8468. } else if (number < 100) {
  8469. // 2 digits
  8470. var lastDigit = number % 10, firstDigit = number / 10;
  8471. if (lastDigit === 0) {
  8472. return eifelerRegelAppliesToNumber(firstDigit);
  8473. }
  8474. return eifelerRegelAppliesToNumber(lastDigit);
  8475. } else if (number < 10000) {
  8476. // 3 or 4 digits --> recursively check first digit
  8477. while (number >= 10) {
  8478. number = number / 10;
  8479. }
  8480. return eifelerRegelAppliesToNumber(number);
  8481. } else {
  8482. // Anything larger than 4 digits: recursively check first n-3 digits
  8483. number = number / 1000;
  8484. return eifelerRegelAppliesToNumber(number);
  8485. }
  8486. }
  8487. hooks.defineLocale('lb', {
  8488. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  8489. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  8490. monthsParseExact: true,
  8491. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  8492. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  8493. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  8494. weekdaysParseExact: true,
  8495. longDateFormat: {
  8496. LT: 'H:mm [Auer]',
  8497. LTS: 'H:mm:ss [Auer]',
  8498. L: 'DD.MM.YYYY',
  8499. LL: 'D. MMMM YYYY',
  8500. LLL: 'D. MMMM YYYY H:mm [Auer]',
  8501. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  8502. },
  8503. calendar: {
  8504. sameDay: '[Haut um] LT',
  8505. sameElse: 'L',
  8506. nextDay: '[Muer um] LT',
  8507. nextWeek: 'dddd [um] LT',
  8508. lastDay: '[Gëschter um] LT',
  8509. lastWeek: function () {
  8510. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  8511. switch (this.day()) {
  8512. case 2:
  8513. case 4:
  8514. return '[Leschten] dddd [um] LT';
  8515. default:
  8516. return '[Leschte] dddd [um] LT';
  8517. }
  8518. }
  8519. },
  8520. relativeTime: {
  8521. future: processFutureTime,
  8522. past: processPastTime,
  8523. s: 'e puer Sekonnen',
  8524. m: processRelativeTime$5,
  8525. mm: '%d Minutten',
  8526. h: processRelativeTime$5,
  8527. hh: '%d Stonnen',
  8528. d: processRelativeTime$5,
  8529. dd: '%d Deeg',
  8530. M: processRelativeTime$5,
  8531. MM: '%d Méint',
  8532. y: processRelativeTime$5,
  8533. yy: '%d Joer'
  8534. },
  8535. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8536. ordinal: '%d.',
  8537. week: {
  8538. dow: 1, // Monday is the first day of the week.
  8539. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8540. }
  8541. });
  8542. //! moment.js locale configuration
  8543. //! locale : Lao [lo]
  8544. //! author : Ryan Hart : https://github.com/ryanhart2
  8545. hooks.defineLocale('lo', {
  8546. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  8547. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  8548. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  8549. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  8550. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  8551. weekdaysParseExact: true,
  8552. longDateFormat: {
  8553. LT: 'HH:mm',
  8554. LTS: 'HH:mm:ss',
  8555. L: 'DD/MM/YYYY',
  8556. LL: 'D MMMM YYYY',
  8557. LLL: 'D MMMM YYYY HH:mm',
  8558. LLLL: 'ວັນdddd D MMMM YYYY HH:mm'
  8559. },
  8560. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  8561. isPM: function (input) {
  8562. return input === 'ຕອນແລງ';
  8563. },
  8564. meridiem: function (hour, minute, isLower) {
  8565. if (hour < 12) {
  8566. return 'ຕອນເຊົ້າ';
  8567. } else {
  8568. return 'ຕອນແລງ';
  8569. }
  8570. },
  8571. calendar: {
  8572. sameDay: '[ມື້ນີ້ເວລາ] LT',
  8573. nextDay: '[ມື້ອື່ນເວລາ] LT',
  8574. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  8575. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  8576. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  8577. sameElse: 'L'
  8578. },
  8579. relativeTime: {
  8580. future: 'ອີກ %s',
  8581. past: '%sຜ່ານມາ',
  8582. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  8583. m: '1 ນາທີ',
  8584. mm: '%d ນາທີ',
  8585. h: '1 ຊົ່ວໂມງ',
  8586. hh: '%d ຊົ່ວໂມງ',
  8587. d: '1 ມື້',
  8588. dd: '%d ມື້',
  8589. M: '1 ເດືອນ',
  8590. MM: '%d ເດືອນ',
  8591. y: '1 ປີ',
  8592. yy: '%d ປີ'
  8593. },
  8594. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  8595. ordinal: function (number) {
  8596. return 'ທີ່' + number;
  8597. }
  8598. });
  8599. //! moment.js locale configuration
  8600. //! locale : Lithuanian [lt]
  8601. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  8602. var units = {
  8603. 'm': 'minutė_minutės_minutę',
  8604. 'mm': 'minutės_minučių_minutes',
  8605. 'h': 'valanda_valandos_valandą',
  8606. 'hh': 'valandos_valandų_valandas',
  8607. 'd': 'diena_dienos_dieną',
  8608. 'dd': 'dienos_dienų_dienas',
  8609. 'M': 'mėnuo_mėnesio_mėnesį',
  8610. 'MM': 'mėnesiai_mėnesių_mėnesius',
  8611. 'y': 'metai_metų_metus',
  8612. 'yy': 'metai_metų_metus'
  8613. };
  8614. function translateSeconds(number, withoutSuffix, key, isFuture) {
  8615. if (withoutSuffix) {
  8616. return 'kelios sekundės';
  8617. } else {
  8618. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  8619. }
  8620. }
  8621. function translateSingular(number, withoutSuffix, key, isFuture) {
  8622. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  8623. }
  8624. function special(number) {
  8625. return number % 10 === 0 || (number > 10 && number < 20);
  8626. }
  8627. function forms(key) {
  8628. return units[key].split('_');
  8629. }
  8630. function translate$6(number, withoutSuffix, key, isFuture) {
  8631. var result = number + ' ';
  8632. if (number === 1) {
  8633. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  8634. } else if (withoutSuffix) {
  8635. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  8636. } else {
  8637. if (isFuture) {
  8638. return result + forms(key)[1];
  8639. } else {
  8640. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  8641. }
  8642. }
  8643. }
  8644. hooks.defineLocale('lt', {
  8645. months: {
  8646. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  8647. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  8648. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  8649. },
  8650. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  8651. weekdays: {
  8652. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  8653. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  8654. isFormat: /dddd HH:mm/
  8655. },
  8656. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  8657. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  8658. weekdaysParseExact: true,
  8659. longDateFormat: {
  8660. LT: 'HH:mm',
  8661. LTS: 'HH:mm:ss',
  8662. L: 'YYYY-MM-DD',
  8663. LL: 'YYYY [m.] MMMM D [d.]',
  8664. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  8665. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  8666. l: 'YYYY-MM-DD',
  8667. ll: 'YYYY [m.] MMMM D [d.]',
  8668. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  8669. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  8670. },
  8671. calendar: {
  8672. sameDay: '[Šiandien] LT',
  8673. nextDay: '[Rytoj] LT',
  8674. nextWeek: 'dddd LT',
  8675. lastDay: '[Vakar] LT',
  8676. lastWeek: '[Praėjusį] dddd LT',
  8677. sameElse: 'L'
  8678. },
  8679. relativeTime: {
  8680. future: 'po %s',
  8681. past: 'prieš %s',
  8682. s: translateSeconds,
  8683. m: translateSingular,
  8684. mm: translate$6,
  8685. h: translateSingular,
  8686. hh: translate$6,
  8687. d: translateSingular,
  8688. dd: translate$6,
  8689. M: translateSingular,
  8690. MM: translate$6,
  8691. y: translateSingular,
  8692. yy: translate$6
  8693. },
  8694. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  8695. ordinal: function (number) {
  8696. return number + '-oji';
  8697. },
  8698. week: {
  8699. dow: 1, // Monday is the first day of the week.
  8700. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8701. }
  8702. });
  8703. //! moment.js locale configuration
  8704. //! locale : Latvian [lv]
  8705. //! author : Kristaps Karlsons : https://github.com/skakri
  8706. //! author : Jānis Elmeris : https://github.com/JanisE
  8707. var units$1 = {
  8708. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  8709. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  8710. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  8711. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  8712. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  8713. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  8714. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  8715. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  8716. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  8717. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  8718. };
  8719. /**
  8720. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  8721. */
  8722. function format$1(forms, number, withoutSuffix) {
  8723. if (withoutSuffix) {
  8724. // E.g. "21 minūte", "3 minūtes".
  8725. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  8726. } else {
  8727. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  8728. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  8729. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  8730. }
  8731. }
  8732. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  8733. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  8734. }
  8735. function relativeTimeWithSingular(number, withoutSuffix, key) {
  8736. return format$1(units$1[key], number, withoutSuffix);
  8737. }
  8738. function relativeSeconds(number, withoutSuffix) {
  8739. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  8740. }
  8741. hooks.defineLocale('lv', {
  8742. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  8743. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  8744. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  8745. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  8746. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  8747. weekdaysParseExact: true,
  8748. longDateFormat: {
  8749. LT: 'HH:mm',
  8750. LTS: 'HH:mm:ss',
  8751. L: 'DD.MM.YYYY.',
  8752. LL: 'YYYY. [gada] D. MMMM',
  8753. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  8754. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  8755. },
  8756. calendar: {
  8757. sameDay: '[Šodien pulksten] LT',
  8758. nextDay: '[Rīt pulksten] LT',
  8759. nextWeek: 'dddd [pulksten] LT',
  8760. lastDay: '[Vakar pulksten] LT',
  8761. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  8762. sameElse: 'L'
  8763. },
  8764. relativeTime: {
  8765. future: 'pēc %s',
  8766. past: 'pirms %s',
  8767. s: relativeSeconds,
  8768. m: relativeTimeWithSingular,
  8769. mm: relativeTimeWithPlural$1,
  8770. h: relativeTimeWithSingular,
  8771. hh: relativeTimeWithPlural$1,
  8772. d: relativeTimeWithSingular,
  8773. dd: relativeTimeWithPlural$1,
  8774. M: relativeTimeWithSingular,
  8775. MM: relativeTimeWithPlural$1,
  8776. y: relativeTimeWithSingular,
  8777. yy: relativeTimeWithPlural$1
  8778. },
  8779. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8780. ordinal: '%d.',
  8781. week: {
  8782. dow: 1, // Monday is the first day of the week.
  8783. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8784. }
  8785. });
  8786. //! moment.js locale configuration
  8787. //! locale : Montenegrin [me]
  8788. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  8789. var translator = {
  8790. words: { //Different grammatical cases
  8791. m: ['jedan minut', 'jednog minuta'],
  8792. mm: ['minut', 'minuta', 'minuta'],
  8793. h: ['jedan sat', 'jednog sata'],
  8794. hh: ['sat', 'sata', 'sati'],
  8795. dd: ['dan', 'dana', 'dana'],
  8796. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  8797. yy: ['godina', 'godine', 'godina']
  8798. },
  8799. correctGrammaticalCase: function (number, wordKey) {
  8800. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  8801. },
  8802. translate: function (number, withoutSuffix, key) {
  8803. var wordKey = translator.words[key];
  8804. if (key.length === 1) {
  8805. return withoutSuffix ? wordKey[0] : wordKey[1];
  8806. } else {
  8807. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  8808. }
  8809. }
  8810. };
  8811. hooks.defineLocale('me', {
  8812. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  8813. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  8814. monthsParseExact: true,
  8815. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  8816. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  8817. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  8818. weekdaysParseExact: true,
  8819. longDateFormat: {
  8820. LT: 'H:mm',
  8821. LTS: 'H:mm:ss',
  8822. L: 'DD.MM.YYYY',
  8823. LL: 'D. MMMM YYYY',
  8824. LLL: 'D. MMMM YYYY H:mm',
  8825. LLLL: 'dddd, D. MMMM YYYY H:mm'
  8826. },
  8827. calendar: {
  8828. sameDay: '[danas u] LT',
  8829. nextDay: '[sjutra u] LT',
  8830. nextWeek: function () {
  8831. switch (this.day()) {
  8832. case 0:
  8833. return '[u] [nedjelju] [u] LT';
  8834. case 3:
  8835. return '[u] [srijedu] [u] LT';
  8836. case 6:
  8837. return '[u] [subotu] [u] LT';
  8838. case 1:
  8839. case 2:
  8840. case 4:
  8841. case 5:
  8842. return '[u] dddd [u] LT';
  8843. }
  8844. },
  8845. lastDay: '[juče u] LT',
  8846. lastWeek: function () {
  8847. var lastWeekDays = [
  8848. '[prošle] [nedjelje] [u] LT',
  8849. '[prošlog] [ponedjeljka] [u] LT',
  8850. '[prošlog] [utorka] [u] LT',
  8851. '[prošle] [srijede] [u] LT',
  8852. '[prošlog] [četvrtka] [u] LT',
  8853. '[prošlog] [petka] [u] LT',
  8854. '[prošle] [subote] [u] LT'
  8855. ];
  8856. return lastWeekDays[this.day()];
  8857. },
  8858. sameElse: 'L'
  8859. },
  8860. relativeTime: {
  8861. future: 'za %s',
  8862. past: 'prije %s',
  8863. s: 'nekoliko sekundi',
  8864. m: translator.translate,
  8865. mm: translator.translate,
  8866. h: translator.translate,
  8867. hh: translator.translate,
  8868. d: 'dan',
  8869. dd: translator.translate,
  8870. M: 'mjesec',
  8871. MM: translator.translate,
  8872. y: 'godinu',
  8873. yy: translator.translate
  8874. },
  8875. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8876. ordinal: '%d.',
  8877. week: {
  8878. dow: 1, // Monday is the first day of the week.
  8879. doy: 7 // The week that contains Jan 1st is the first week of the year.
  8880. }
  8881. });
  8882. //! moment.js locale configuration
  8883. //! locale : Maori [mi]
  8884. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  8885. hooks.defineLocale('mi', {
  8886. 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('_'),
  8887. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  8888. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8889. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8890. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  8891. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  8892. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  8893. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  8894. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  8895. longDateFormat: {
  8896. LT: 'HH:mm',
  8897. LTS: 'HH:mm:ss',
  8898. L: 'DD/MM/YYYY',
  8899. LL: 'D MMMM YYYY',
  8900. LLL: 'D MMMM YYYY [i] HH:mm',
  8901. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  8902. },
  8903. calendar: {
  8904. sameDay: '[i teie mahana, i] LT',
  8905. nextDay: '[apopo i] LT',
  8906. nextWeek: 'dddd [i] LT',
  8907. lastDay: '[inanahi i] LT',
  8908. lastWeek: 'dddd [whakamutunga i] LT',
  8909. sameElse: 'L'
  8910. },
  8911. relativeTime: {
  8912. future: 'i roto i %s',
  8913. past: '%s i mua',
  8914. s: 'te hēkona ruarua',
  8915. m: 'he meneti',
  8916. mm: '%d meneti',
  8917. h: 'te haora',
  8918. hh: '%d haora',
  8919. d: 'he ra',
  8920. dd: '%d ra',
  8921. M: 'he marama',
  8922. MM: '%d marama',
  8923. y: 'he tau',
  8924. yy: '%d tau'
  8925. },
  8926. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8927. ordinal: '%dº',
  8928. week: {
  8929. dow: 1, // Monday is the first day of the week.
  8930. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8931. }
  8932. });
  8933. //! moment.js locale configuration
  8934. //! locale : Macedonian [mk]
  8935. //! author : Borislav Mickov : https://github.com/B0k0
  8936. hooks.defineLocale('mk', {
  8937. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  8938. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  8939. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  8940. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  8941. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  8942. longDateFormat: {
  8943. LT: 'H:mm',
  8944. LTS: 'H:mm:ss',
  8945. L: 'D.MM.YYYY',
  8946. LL: 'D MMMM YYYY',
  8947. LLL: 'D MMMM YYYY H:mm',
  8948. LLLL: 'dddd, D MMMM YYYY H:mm'
  8949. },
  8950. calendar: {
  8951. sameDay: '[Денес во] LT',
  8952. nextDay: '[Утре во] LT',
  8953. nextWeek: '[Во] dddd [во] LT',
  8954. lastDay: '[Вчера во] LT',
  8955. lastWeek: function () {
  8956. switch (this.day()) {
  8957. case 0:
  8958. case 3:
  8959. case 6:
  8960. return '[Изминатата] dddd [во] LT';
  8961. case 1:
  8962. case 2:
  8963. case 4:
  8964. case 5:
  8965. return '[Изминатиот] dddd [во] LT';
  8966. }
  8967. },
  8968. sameElse: 'L'
  8969. },
  8970. relativeTime: {
  8971. future: 'после %s',
  8972. past: 'пред %s',
  8973. s: 'неколку секунди',
  8974. m: 'минута',
  8975. mm: '%d минути',
  8976. h: 'час',
  8977. hh: '%d часа',
  8978. d: 'ден',
  8979. dd: '%d дена',
  8980. M: 'месец',
  8981. MM: '%d месеци',
  8982. y: 'година',
  8983. yy: '%d години'
  8984. },
  8985. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  8986. ordinal: function (number) {
  8987. var lastDigit = number % 10,
  8988. last2Digits = number % 100;
  8989. if (number === 0) {
  8990. return number + '-ев';
  8991. } else if (last2Digits === 0) {
  8992. return number + '-ен';
  8993. } else if (last2Digits > 10 && last2Digits < 20) {
  8994. return number + '-ти';
  8995. } else if (lastDigit === 1) {
  8996. return number + '-ви';
  8997. } else if (lastDigit === 2) {
  8998. return number + '-ри';
  8999. } else if (lastDigit === 7 || lastDigit === 8) {
  9000. return number + '-ми';
  9001. } else {
  9002. return number + '-ти';
  9003. }
  9004. },
  9005. week: {
  9006. dow: 1, // Monday is the first day of the week.
  9007. doy: 7 // The week that contains Jan 1st is the first week of the year.
  9008. }
  9009. });
  9010. //! moment.js locale configuration
  9011. //! locale : Malayalam [ml]
  9012. //! author : Floyd Pink : https://github.com/floydpink
  9013. hooks.defineLocale('ml', {
  9014. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  9015. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  9016. monthsParseExact: true,
  9017. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  9018. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  9019. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  9020. longDateFormat: {
  9021. LT: 'A h:mm -നു',
  9022. LTS: 'A h:mm:ss -നു',
  9023. L: 'DD/MM/YYYY',
  9024. LL: 'D MMMM YYYY',
  9025. LLL: 'D MMMM YYYY, A h:mm -നു',
  9026. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'
  9027. },
  9028. calendar: {
  9029. sameDay: '[ഇന്ന്] LT',
  9030. nextDay: '[നാളെ] LT',
  9031. nextWeek: 'dddd, LT',
  9032. lastDay: '[ഇന്നലെ] LT',
  9033. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  9034. sameElse: 'L'
  9035. },
  9036. relativeTime: {
  9037. future: '%s കഴിഞ്ഞ്',
  9038. past: '%s മുൻപ്',
  9039. s: 'അൽപ നിമിഷങ്ങൾ',
  9040. m: 'ഒരു മിനിറ്റ്',
  9041. mm: '%d മിനിറ്റ്',
  9042. h: 'ഒരു മണിക്കൂർ',
  9043. hh: '%d മണിക്കൂർ',
  9044. d: 'ഒരു ദിവസം',
  9045. dd: '%d ദിവസം',
  9046. M: 'ഒരു മാസം',
  9047. MM: '%d മാസം',
  9048. y: 'ഒരു വർഷം',
  9049. yy: '%d വർഷം'
  9050. },
  9051. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  9052. meridiemHour: function (hour, meridiem) {
  9053. if (hour === 12) {
  9054. hour = 0;
  9055. }
  9056. if ((meridiem === 'രാത്രി' && hour >= 4) ||
  9057. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  9058. meridiem === 'വൈകുന്നേരം') {
  9059. return hour + 12;
  9060. } else {
  9061. return hour;
  9062. }
  9063. },
  9064. meridiem: function (hour, minute, isLower) {
  9065. if (hour < 4) {
  9066. return 'രാത്രി';
  9067. } else if (hour < 12) {
  9068. return 'രാവിലെ';
  9069. } else if (hour < 17) {
  9070. return 'ഉച്ച കഴിഞ്ഞ്';
  9071. } else if (hour < 20) {
  9072. return 'വൈകുന്നേരം';
  9073. } else {
  9074. return 'രാത്രി';
  9075. }
  9076. }
  9077. });
  9078. //! moment.js locale configuration
  9079. //! locale : Marathi [mr]
  9080. //! author : Harshad Kale : https://github.com/kalehv
  9081. //! author : Vivek Athalye : https://github.com/vnathalye
  9082. var symbolMap$8 = {
  9083. '1': '१',
  9084. '2': '२',
  9085. '3': '३',
  9086. '4': '४',
  9087. '5': '५',
  9088. '6': '६',
  9089. '7': '७',
  9090. '8': '८',
  9091. '9': '९',
  9092. '0': '०'
  9093. };
  9094. var numberMap$7 = {
  9095. '१': '1',
  9096. '२': '2',
  9097. '३': '3',
  9098. '४': '4',
  9099. '५': '5',
  9100. '६': '6',
  9101. '७': '7',
  9102. '८': '8',
  9103. '९': '9',
  9104. '०': '0'
  9105. };
  9106. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  9107. var output = '';
  9108. if (withoutSuffix) {
  9109. switch (string) {
  9110. case 's':
  9111. output = 'काही सेकंद';
  9112. break;
  9113. case 'm':
  9114. output = 'एक मिनिट';
  9115. break;
  9116. case 'mm':
  9117. output = '%d मिनिटे';
  9118. break;
  9119. case 'h':
  9120. output = 'एक तास';
  9121. break;
  9122. case 'hh':
  9123. output = '%d तास';
  9124. break;
  9125. case 'd':
  9126. output = 'एक दिवस';
  9127. break;
  9128. case 'dd':
  9129. output = '%d दिवस';
  9130. break;
  9131. case 'M':
  9132. output = 'एक महिना';
  9133. break;
  9134. case 'MM':
  9135. output = '%d महिने';
  9136. break;
  9137. case 'y':
  9138. output = 'एक वर्ष';
  9139. break;
  9140. case 'yy':
  9141. output = '%d वर्षे';
  9142. break;
  9143. }
  9144. }
  9145. else {
  9146. switch (string) {
  9147. case 's':
  9148. output = 'काही सेकंदां';
  9149. break;
  9150. case 'm':
  9151. output = 'एका मिनिटा';
  9152. break;
  9153. case 'mm':
  9154. output = '%d मिनिटां';
  9155. break;
  9156. case 'h':
  9157. output = 'एका तासा';
  9158. break;
  9159. case 'hh':
  9160. output = '%d तासां';
  9161. break;
  9162. case 'd':
  9163. output = 'एका दिवसा';
  9164. break;
  9165. case 'dd':
  9166. output = '%d दिवसां';
  9167. break;
  9168. case 'M':
  9169. output = 'एका महिन्या';
  9170. break;
  9171. case 'MM':
  9172. output = '%d महिन्यां';
  9173. break;
  9174. case 'y':
  9175. output = 'एका वर्षा';
  9176. break;
  9177. case 'yy':
  9178. output = '%d वर्षां';
  9179. break;
  9180. }
  9181. }
  9182. return output.replace(/%d/i, number);
  9183. }
  9184. hooks.defineLocale('mr', {
  9185. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  9186. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  9187. monthsParseExact: true,
  9188. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9189. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  9190. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9191. longDateFormat: {
  9192. LT: 'A h:mm वाजता',
  9193. LTS: 'A h:mm:ss वाजता',
  9194. L: 'DD/MM/YYYY',
  9195. LL: 'D MMMM YYYY',
  9196. LLL: 'D MMMM YYYY, A h:mm वाजता',
  9197. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'
  9198. },
  9199. calendar: {
  9200. sameDay: '[आज] LT',
  9201. nextDay: '[उद्या] LT',
  9202. nextWeek: 'dddd, LT',
  9203. lastDay: '[काल] LT',
  9204. lastWeek: '[मागील] dddd, LT',
  9205. sameElse: 'L'
  9206. },
  9207. relativeTime: {
  9208. future: '%sमध्ये',
  9209. past: '%sपूर्वी',
  9210. s: relativeTimeMr,
  9211. m: relativeTimeMr,
  9212. mm: relativeTimeMr,
  9213. h: relativeTimeMr,
  9214. hh: relativeTimeMr,
  9215. d: relativeTimeMr,
  9216. dd: relativeTimeMr,
  9217. M: relativeTimeMr,
  9218. MM: relativeTimeMr,
  9219. y: relativeTimeMr,
  9220. yy: relativeTimeMr
  9221. },
  9222. preparse: function (string) {
  9223. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9224. return numberMap$7[match];
  9225. });
  9226. },
  9227. postformat: function (string) {
  9228. return string.replace(/\d/g, function (match) {
  9229. return symbolMap$8[match];
  9230. });
  9231. },
  9232. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  9233. meridiemHour: function (hour, meridiem) {
  9234. if (hour === 12) {
  9235. hour = 0;
  9236. }
  9237. if (meridiem === 'रात्री') {
  9238. return hour < 4 ? hour : hour + 12;
  9239. } else if (meridiem === 'सकाळी') {
  9240. return hour;
  9241. } else if (meridiem === 'दुपारी') {
  9242. return hour >= 10 ? hour : hour + 12;
  9243. } else if (meridiem === 'सायंकाळी') {
  9244. return hour + 12;
  9245. }
  9246. },
  9247. meridiem: function (hour, minute, isLower) {
  9248. if (hour < 4) {
  9249. return 'रात्री';
  9250. } else if (hour < 10) {
  9251. return 'सकाळी';
  9252. } else if (hour < 17) {
  9253. return 'दुपारी';
  9254. } else if (hour < 20) {
  9255. return 'सायंकाळी';
  9256. } else {
  9257. return 'रात्री';
  9258. }
  9259. },
  9260. week: {
  9261. dow: 0, // Sunday is the first day of the week.
  9262. doy: 6 // The week that contains Jan 1st is the first week of the year.
  9263. }
  9264. });
  9265. //! moment.js locale configuration
  9266. //! locale : Malay [ms-my]
  9267. //! note : DEPRECATED, the correct one is [ms]
  9268. //! author : Weldan Jamili : https://github.com/weldan
  9269. hooks.defineLocale('ms-my', {
  9270. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  9271. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  9272. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  9273. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  9274. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  9275. longDateFormat: {
  9276. LT: 'HH.mm',
  9277. LTS: 'HH.mm.ss',
  9278. L: 'DD/MM/YYYY',
  9279. LL: 'D MMMM YYYY',
  9280. LLL: 'D MMMM YYYY [pukul] HH.mm',
  9281. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  9282. },
  9283. meridiemParse: /pagi|tengahari|petang|malam/,
  9284. meridiemHour: function (hour, meridiem) {
  9285. if (hour === 12) {
  9286. hour = 0;
  9287. }
  9288. if (meridiem === 'pagi') {
  9289. return hour;
  9290. } else if (meridiem === 'tengahari') {
  9291. return hour >= 11 ? hour : hour + 12;
  9292. } else if (meridiem === 'petang' || meridiem === 'malam') {
  9293. return hour + 12;
  9294. }
  9295. },
  9296. meridiem: function (hours, minutes, isLower) {
  9297. if (hours < 11) {
  9298. return 'pagi';
  9299. } else if (hours < 15) {
  9300. return 'tengahari';
  9301. } else if (hours < 19) {
  9302. return 'petang';
  9303. } else {
  9304. return 'malam';
  9305. }
  9306. },
  9307. calendar: {
  9308. sameDay: '[Hari ini pukul] LT',
  9309. nextDay: '[Esok pukul] LT',
  9310. nextWeek: 'dddd [pukul] LT',
  9311. lastDay: '[Kelmarin pukul] LT',
  9312. lastWeek: 'dddd [lepas pukul] LT',
  9313. sameElse: 'L'
  9314. },
  9315. relativeTime: {
  9316. future: 'dalam %s',
  9317. past: '%s yang lepas',
  9318. s: 'beberapa saat',
  9319. m: 'seminit',
  9320. mm: '%d minit',
  9321. h: 'sejam',
  9322. hh: '%d jam',
  9323. d: 'sehari',
  9324. dd: '%d hari',
  9325. M: 'sebulan',
  9326. MM: '%d bulan',
  9327. y: 'setahun',
  9328. yy: '%d tahun'
  9329. },
  9330. week: {
  9331. dow: 1, // Monday is the first day of the week.
  9332. doy: 7 // The week that contains Jan 1st is the first week of the year.
  9333. }
  9334. });
  9335. //! moment.js locale configuration
  9336. //! locale : Malay [ms]
  9337. //! author : Weldan Jamili : https://github.com/weldan
  9338. hooks.defineLocale('ms', {
  9339. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  9340. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  9341. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  9342. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  9343. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  9344. longDateFormat: {
  9345. LT: 'HH.mm',
  9346. LTS: 'HH.mm.ss',
  9347. L: 'DD/MM/YYYY',
  9348. LL: 'D MMMM YYYY',
  9349. LLL: 'D MMMM YYYY [pukul] HH.mm',
  9350. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  9351. },
  9352. meridiemParse: /pagi|tengahari|petang|malam/,
  9353. meridiemHour: function (hour, meridiem) {
  9354. if (hour === 12) {
  9355. hour = 0;
  9356. }
  9357. if (meridiem === 'pagi') {
  9358. return hour;
  9359. } else if (meridiem === 'tengahari') {
  9360. return hour >= 11 ? hour : hour + 12;
  9361. } else if (meridiem === 'petang' || meridiem === 'malam') {
  9362. return hour + 12;
  9363. }
  9364. },
  9365. meridiem: function (hours, minutes, isLower) {
  9366. if (hours < 11) {
  9367. return 'pagi';
  9368. } else if (hours < 15) {
  9369. return 'tengahari';
  9370. } else if (hours < 19) {
  9371. return 'petang';
  9372. } else {
  9373. return 'malam';
  9374. }
  9375. },
  9376. calendar: {
  9377. sameDay: '[Hari ini pukul] LT',
  9378. nextDay: '[Esok pukul] LT',
  9379. nextWeek: 'dddd [pukul] LT',
  9380. lastDay: '[Kelmarin pukul] LT',
  9381. lastWeek: 'dddd [lepas pukul] LT',
  9382. sameElse: 'L'
  9383. },
  9384. relativeTime: {
  9385. future: 'dalam %s',
  9386. past: '%s yang lepas',
  9387. s: 'beberapa saat',
  9388. m: 'seminit',
  9389. mm: '%d minit',
  9390. h: 'sejam',
  9391. hh: '%d jam',
  9392. d: 'sehari',
  9393. dd: '%d hari',
  9394. M: 'sebulan',
  9395. MM: '%d bulan',
  9396. y: 'setahun',
  9397. yy: '%d tahun'
  9398. },
  9399. week: {
  9400. dow: 1, // Monday is the first day of the week.
  9401. doy: 7 // The week that contains Jan 1st is the first week of the year.
  9402. }
  9403. });
  9404. //! moment.js locale configuration
  9405. //! locale : Burmese [my]
  9406. //! author : Squar team, mysquar.com
  9407. //! author : David Rossellat : https://github.com/gholadr
  9408. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  9409. var symbolMap$9 = {
  9410. '1': '၁',
  9411. '2': '၂',
  9412. '3': '၃',
  9413. '4': '၄',
  9414. '5': '၅',
  9415. '6': '၆',
  9416. '7': '၇',
  9417. '8': '၈',
  9418. '9': '၉',
  9419. '0': '၀'
  9420. };
  9421. var numberMap$8 = {
  9422. '၁': '1',
  9423. '၂': '2',
  9424. '၃': '3',
  9425. '၄': '4',
  9426. '၅': '5',
  9427. '၆': '6',
  9428. '၇': '7',
  9429. '၈': '8',
  9430. '၉': '9',
  9431. '၀': '0'
  9432. };
  9433. hooks.defineLocale('my', {
  9434. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  9435. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  9436. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  9437. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  9438. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  9439. longDateFormat: {
  9440. LT: 'HH:mm',
  9441. LTS: 'HH:mm:ss',
  9442. L: 'DD/MM/YYYY',
  9443. LL: 'D MMMM YYYY',
  9444. LLL: 'D MMMM YYYY HH:mm',
  9445. LLLL: 'dddd D MMMM YYYY HH:mm'
  9446. },
  9447. calendar: {
  9448. sameDay: '[ယနေ.] LT [မှာ]',
  9449. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  9450. nextWeek: 'dddd LT [မှာ]',
  9451. lastDay: '[မနေ.က] LT [မှာ]',
  9452. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  9453. sameElse: 'L'
  9454. },
  9455. relativeTime: {
  9456. future: 'လာမည့် %s မှာ',
  9457. past: 'လွန်ခဲ့သော %s က',
  9458. s: 'စက္ကန်.အနည်းငယ်',
  9459. m: 'တစ်မိနစ်',
  9460. mm: '%d မိနစ်',
  9461. h: 'တစ်နာရီ',
  9462. hh: '%d နာရီ',
  9463. d: 'တစ်ရက်',
  9464. dd: '%d ရက်',
  9465. M: 'တစ်လ',
  9466. MM: '%d လ',
  9467. y: 'တစ်နှစ်',
  9468. yy: '%d နှစ်'
  9469. },
  9470. preparse: function (string) {
  9471. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  9472. return numberMap$8[match];
  9473. });
  9474. },
  9475. postformat: function (string) {
  9476. return string.replace(/\d/g, function (match) {
  9477. return symbolMap$9[match];
  9478. });
  9479. },
  9480. week: {
  9481. dow: 1, // Monday is the first day of the week.
  9482. doy: 4 // The week that contains Jan 1st is the first week of the year.
  9483. }
  9484. });
  9485. //! moment.js locale configuration
  9486. //! locale : Norwegian Bokmål [nb]
  9487. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  9488. //! Sigurd Gartmann : https://github.com/sigurdga
  9489. hooks.defineLocale('nb', {
  9490. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  9491. monthsShort: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  9492. monthsParseExact: true,
  9493. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  9494. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  9495. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  9496. weekdaysParseExact: true,
  9497. longDateFormat: {
  9498. LT: 'HH:mm',
  9499. LTS: 'HH:mm:ss',
  9500. L: 'DD.MM.YYYY',
  9501. LL: 'D. MMMM YYYY',
  9502. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  9503. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
  9504. },
  9505. calendar: {
  9506. sameDay: '[i dag kl.] LT',
  9507. nextDay: '[i morgen kl.] LT',
  9508. nextWeek: 'dddd [kl.] LT',
  9509. lastDay: '[i går kl.] LT',
  9510. lastWeek: '[forrige] dddd [kl.] LT',
  9511. sameElse: 'L'
  9512. },
  9513. relativeTime: {
  9514. future: 'om %s',
  9515. past: '%s siden',
  9516. s: 'noen sekunder',
  9517. m: 'ett minutt',
  9518. mm: '%d minutter',
  9519. h: 'en time',
  9520. hh: '%d timer',
  9521. d: 'en dag',
  9522. dd: '%d dager',
  9523. M: 'en måned',
  9524. MM: '%d måneder',
  9525. y: 'ett år',
  9526. yy: '%d år'
  9527. },
  9528. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9529. ordinal: '%d.',
  9530. week: {
  9531. dow: 1, // Monday is the first day of the week.
  9532. doy: 4 // The week that contains Jan 4th is the first week of the year.
  9533. }
  9534. });
  9535. //! moment.js locale configuration
  9536. //! locale : Nepalese [ne]
  9537. //! author : suvash : https://github.com/suvash
  9538. var symbolMap$10 = {
  9539. '1': '१',
  9540. '2': '२',
  9541. '3': '३',
  9542. '4': '४',
  9543. '5': '५',
  9544. '6': '६',
  9545. '7': '७',
  9546. '8': '८',
  9547. '9': '९',
  9548. '0': '०'
  9549. };
  9550. var numberMap$9 = {
  9551. '१': '1',
  9552. '२': '2',
  9553. '३': '3',
  9554. '४': '4',
  9555. '५': '5',
  9556. '६': '6',
  9557. '७': '7',
  9558. '८': '8',
  9559. '९': '9',
  9560. '०': '0'
  9561. };
  9562. hooks.defineLocale('ne', {
  9563. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  9564. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  9565. monthsParseExact: true,
  9566. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  9567. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  9568. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  9569. weekdaysParseExact: true,
  9570. longDateFormat: {
  9571. LT: 'Aको h:mm बजे',
  9572. LTS: 'Aको h:mm:ss बजे',
  9573. L: 'DD/MM/YYYY',
  9574. LL: 'D MMMM YYYY',
  9575. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  9576. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'
  9577. },
  9578. preparse: function (string) {
  9579. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9580. return numberMap$9[match];
  9581. });
  9582. },
  9583. postformat: function (string) {
  9584. return string.replace(/\d/g, function (match) {
  9585. return symbolMap$10[match];
  9586. });
  9587. },
  9588. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  9589. meridiemHour: function (hour, meridiem) {
  9590. if (hour === 12) {
  9591. hour = 0;
  9592. }
  9593. if (meridiem === 'राति') {
  9594. return hour < 4 ? hour : hour + 12;
  9595. } else if (meridiem === 'बिहान') {
  9596. return hour;
  9597. } else if (meridiem === 'दिउँसो') {
  9598. return hour >= 10 ? hour : hour + 12;
  9599. } else if (meridiem === 'साँझ') {
  9600. return hour + 12;
  9601. }
  9602. },
  9603. meridiem: function (hour, minute, isLower) {
  9604. if (hour < 3) {
  9605. return 'राति';
  9606. } else if (hour < 12) {
  9607. return 'बिहान';
  9608. } else if (hour < 16) {
  9609. return 'दिउँसो';
  9610. } else if (hour < 20) {
  9611. return 'साँझ';
  9612. } else {
  9613. return 'राति';
  9614. }
  9615. },
  9616. calendar: {
  9617. sameDay: '[आज] LT',
  9618. nextDay: '[भोलि] LT',
  9619. nextWeek: '[आउँदो] dddd[,] LT',
  9620. lastDay: '[हिजो] LT',
  9621. lastWeek: '[गएको] dddd[,] LT',
  9622. sameElse: 'L'
  9623. },
  9624. relativeTime: {
  9625. future: '%sमा',
  9626. past: '%s अगाडि',
  9627. s: 'केही क्षण',
  9628. m: 'एक मिनेट',
  9629. mm: '%d मिनेट',
  9630. h: 'एक घण्टा',
  9631. hh: '%d घण्टा',
  9632. d: 'एक दिन',
  9633. dd: '%d दिन',
  9634. M: 'एक महिना',
  9635. MM: '%d महिना',
  9636. y: 'एक बर्ष',
  9637. yy: '%d बर्ष'
  9638. },
  9639. week: {
  9640. dow: 0, // Sunday is the first day of the week.
  9641. doy: 6 // The week that contains Jan 1st is the first week of the year.
  9642. }
  9643. });
  9644. //! moment.js locale configuration
  9645. //! locale : Dutch (Belgium) [nl-be]
  9646. //! author : Joris Röling : https://github.com/jorisroling
  9647. //! author : Jacob Middag : https://github.com/middagj
  9648. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  9649. var monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  9650. var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
  9651. var monthsRegex$1 = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  9652. hooks.defineLocale('nl-be', {
  9653. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  9654. monthsShort: function (m, format) {
  9655. if (!m) {
  9656. return monthsShortWithDots$1;
  9657. } else if (/-MMM-/.test(format)) {
  9658. return monthsShortWithoutDots$1[m.month()];
  9659. } else {
  9660. return monthsShortWithDots$1[m.month()];
  9661. }
  9662. },
  9663. monthsRegex: monthsRegex$1,
  9664. monthsShortRegex: monthsRegex$1,
  9665. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  9666. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  9667. monthsParse: monthsParse,
  9668. longMonthsParse: monthsParse,
  9669. shortMonthsParse: monthsParse,
  9670. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  9671. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  9672. weekdaysMin: 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  9673. weekdaysParseExact: true,
  9674. longDateFormat: {
  9675. LT: 'HH:mm',
  9676. LTS: 'HH:mm:ss',
  9677. L: 'DD/MM/YYYY',
  9678. LL: 'D MMMM YYYY',
  9679. LLL: 'D MMMM YYYY HH:mm',
  9680. LLLL: 'dddd D MMMM YYYY HH:mm'
  9681. },
  9682. calendar: {
  9683. sameDay: '[vandaag om] LT',
  9684. nextDay: '[morgen om] LT',
  9685. nextWeek: 'dddd [om] LT',
  9686. lastDay: '[gisteren om] LT',
  9687. lastWeek: '[afgelopen] dddd [om] LT',
  9688. sameElse: 'L'
  9689. },
  9690. relativeTime: {
  9691. future: 'over %s',
  9692. past: '%s geleden',
  9693. s: 'een paar seconden',
  9694. m: 'één minuut',
  9695. mm: '%d minuten',
  9696. h: 'één uur',
  9697. hh: '%d uur',
  9698. d: 'één dag',
  9699. dd: '%d dagen',
  9700. M: 'één maand',
  9701. MM: '%d maanden',
  9702. y: 'één jaar',
  9703. yy: '%d jaar'
  9704. },
  9705. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9706. ordinal: function (number) {
  9707. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  9708. },
  9709. week: {
  9710. dow: 1, // Monday is the first day of the week.
  9711. doy: 4 // The week that contains Jan 4th is the first week of the year.
  9712. }
  9713. });
  9714. //! moment.js locale configuration
  9715. //! locale : Dutch [nl]
  9716. //! author : Joris Röling : https://github.com/jorisroling
  9717. //! author : Jacob Middag : https://github.com/middagj
  9718. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  9719. var monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  9720. var monthsParse$1 = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
  9721. var monthsRegex$2 = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  9722. hooks.defineLocale('nl', {
  9723. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  9724. monthsShort: function (m, format) {
  9725. if (!m) {
  9726. return monthsShortWithDots$2;
  9727. } else if (/-MMM-/.test(format)) {
  9728. return monthsShortWithoutDots$2[m.month()];
  9729. } else {
  9730. return monthsShortWithDots$2[m.month()];
  9731. }
  9732. },
  9733. monthsRegex: monthsRegex$2,
  9734. monthsShortRegex: monthsRegex$2,
  9735. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  9736. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  9737. monthsParse: monthsParse$1,
  9738. longMonthsParse: monthsParse$1,
  9739. shortMonthsParse: monthsParse$1,
  9740. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  9741. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  9742. weekdaysMin: 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  9743. weekdaysParseExact: true,
  9744. longDateFormat: {
  9745. LT: 'HH:mm',
  9746. LTS: 'HH:mm:ss',
  9747. L: 'DD-MM-YYYY',
  9748. LL: 'D MMMM YYYY',
  9749. LLL: 'D MMMM YYYY HH:mm',
  9750. LLLL: 'dddd D MMMM YYYY HH:mm'
  9751. },
  9752. calendar: {
  9753. sameDay: '[vandaag om] LT',
  9754. nextDay: '[morgen om] LT',
  9755. nextWeek: 'dddd [om] LT',
  9756. lastDay: '[gisteren om] LT',
  9757. lastWeek: '[afgelopen] dddd [om] LT',
  9758. sameElse: 'L'
  9759. },
  9760. relativeTime: {
  9761. future: 'over %s',
  9762. past: '%s geleden',
  9763. s: 'een paar seconden',
  9764. m: 'één minuut',
  9765. mm: '%d minuten',
  9766. h: 'één uur',
  9767. hh: '%d uur',
  9768. d: 'één dag',
  9769. dd: '%d dagen',
  9770. M: 'één maand',
  9771. MM: '%d maanden',
  9772. y: 'één jaar',
  9773. yy: '%d jaar'
  9774. },
  9775. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9776. ordinal: function (number) {
  9777. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  9778. },
  9779. week: {
  9780. dow: 1, // Monday is the first day of the week.
  9781. doy: 4 // The week that contains Jan 4th is the first week of the year.
  9782. }
  9783. });
  9784. //! moment.js locale configuration
  9785. //! locale : Nynorsk [nn]
  9786. //! author : https://github.com/mechuwind
  9787. hooks.defineLocale('nn', {
  9788. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  9789. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  9790. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  9791. weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  9792. weekdaysMin: 'su_må_ty_on_to_fr_lø'.split('_'),
  9793. longDateFormat: {
  9794. LT: 'HH:mm',
  9795. LTS: 'HH:mm:ss',
  9796. L: 'DD.MM.YYYY',
  9797. LL: 'D. MMMM YYYY',
  9798. LLL: 'D. MMMM YYYY [kl.] H:mm',
  9799. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
  9800. },
  9801. calendar: {
  9802. sameDay: '[I dag klokka] LT',
  9803. nextDay: '[I morgon klokka] LT',
  9804. nextWeek: 'dddd [klokka] LT',
  9805. lastDay: '[I går klokka] LT',
  9806. lastWeek: '[Føregåande] dddd [klokka] LT',
  9807. sameElse: 'L'
  9808. },
  9809. relativeTime: {
  9810. future: 'om %s',
  9811. past: '%s sidan',
  9812. s: 'nokre sekund',
  9813. m: 'eit minutt',
  9814. mm: '%d minutt',
  9815. h: 'ein time',
  9816. hh: '%d timar',
  9817. d: 'ein dag',
  9818. dd: '%d dagar',
  9819. M: 'ein månad',
  9820. MM: '%d månader',
  9821. y: 'eit år',
  9822. yy: '%d år'
  9823. },
  9824. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9825. ordinal: '%d.',
  9826. week: {
  9827. dow: 1, // Monday is the first day of the week.
  9828. doy: 4 // The week that contains Jan 4th is the first week of the year.
  9829. }
  9830. });
  9831. //! moment.js locale configuration
  9832. //! locale : Punjabi (India) [pa-in]
  9833. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  9834. var symbolMap$11 = {
  9835. '1': '੧',
  9836. '2': '੨',
  9837. '3': '੩',
  9838. '4': '੪',
  9839. '5': '੫',
  9840. '6': '੬',
  9841. '7': '੭',
  9842. '8': '੮',
  9843. '9': '੯',
  9844. '0': '੦'
  9845. };
  9846. var numberMap$10 = {
  9847. '੧': '1',
  9848. '੨': '2',
  9849. '੩': '3',
  9850. '੪': '4',
  9851. '੫': '5',
  9852. '੬': '6',
  9853. '੭': '7',
  9854. '੮': '8',
  9855. '੯': '9',
  9856. '੦': '0'
  9857. };
  9858. hooks.defineLocale('pa-in', {
  9859. // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
  9860. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  9861. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  9862. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  9863. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  9864. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  9865. longDateFormat: {
  9866. LT: 'A h:mm ਵਜੇ',
  9867. LTS: 'A h:mm:ss ਵਜੇ',
  9868. L: 'DD/MM/YYYY',
  9869. LL: 'D MMMM YYYY',
  9870. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  9871. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  9872. },
  9873. calendar: {
  9874. sameDay: '[ਅਜ] LT',
  9875. nextDay: '[ਕਲ] LT',
  9876. nextWeek: 'dddd, LT',
  9877. lastDay: '[ਕਲ] LT',
  9878. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  9879. sameElse: 'L'
  9880. },
  9881. relativeTime: {
  9882. future: '%s ਵਿੱਚ',
  9883. past: '%s ਪਿਛਲੇ',
  9884. s: 'ਕੁਝ ਸਕਿੰਟ',
  9885. m: 'ਇਕ ਮਿੰਟ',
  9886. mm: '%d ਮਿੰਟ',
  9887. h: 'ਇੱਕ ਘੰਟਾ',
  9888. hh: '%d ਘੰਟੇ',
  9889. d: 'ਇੱਕ ਦਿਨ',
  9890. dd: '%d ਦਿਨ',
  9891. M: 'ਇੱਕ ਮਹੀਨਾ',
  9892. MM: '%d ਮਹੀਨੇ',
  9893. y: 'ਇੱਕ ਸਾਲ',
  9894. yy: '%d ਸਾਲ'
  9895. },
  9896. preparse: function (string) {
  9897. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  9898. return numberMap$10[match];
  9899. });
  9900. },
  9901. postformat: function (string) {
  9902. return string.replace(/\d/g, function (match) {
  9903. return symbolMap$11[match];
  9904. });
  9905. },
  9906. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  9907. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  9908. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  9909. meridiemHour: function (hour, meridiem) {
  9910. if (hour === 12) {
  9911. hour = 0;
  9912. }
  9913. if (meridiem === 'ਰਾਤ') {
  9914. return hour < 4 ? hour : hour + 12;
  9915. } else if (meridiem === 'ਸਵੇਰ') {
  9916. return hour;
  9917. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  9918. return hour >= 10 ? hour : hour + 12;
  9919. } else if (meridiem === 'ਸ਼ਾਮ') {
  9920. return hour + 12;
  9921. }
  9922. },
  9923. meridiem: function (hour, minute, isLower) {
  9924. if (hour < 4) {
  9925. return 'ਰਾਤ';
  9926. } else if (hour < 10) {
  9927. return 'ਸਵੇਰ';
  9928. } else if (hour < 17) {
  9929. return 'ਦੁਪਹਿਰ';
  9930. } else if (hour < 20) {
  9931. return 'ਸ਼ਾਮ';
  9932. } else {
  9933. return 'ਰਾਤ';
  9934. }
  9935. },
  9936. week: {
  9937. dow: 0, // Sunday is the first day of the week.
  9938. doy: 6 // The week that contains Jan 1st is the first week of the year.
  9939. }
  9940. });
  9941. //! moment.js locale configuration
  9942. //! locale : Polish [pl]
  9943. //! author : Rafal Hirsz : https://github.com/evoL
  9944. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
  9945. var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  9946. function plural$3(n) {
  9947. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  9948. }
  9949. function translate$7(number, withoutSuffix, key) {
  9950. var result = number + ' ';
  9951. switch (key) {
  9952. case 'm':
  9953. return withoutSuffix ? 'minuta' : 'minutę';
  9954. case 'mm':
  9955. return result + (plural$3(number) ? 'minuty' : 'minut');
  9956. case 'h':
  9957. return withoutSuffix ? 'godzina' : 'godzinę';
  9958. case 'hh':
  9959. return result + (plural$3(number) ? 'godziny' : 'godzin');
  9960. case 'MM':
  9961. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  9962. case 'yy':
  9963. return result + (plural$3(number) ? 'lata' : 'lat');
  9964. }
  9965. }
  9966. hooks.defineLocale('pl', {
  9967. months: function (momentToFormat, format) {
  9968. if (!momentToFormat) {
  9969. return monthsNominative;
  9970. } else if (format === '') {
  9971. // Hack: if format empty we know this is used to generate
  9972. // RegExp by moment. Give then back both valid forms of months
  9973. // in RegExp ready format.
  9974. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  9975. } else if (/D MMMM/.test(format)) {
  9976. return monthsSubjective[momentToFormat.month()];
  9977. } else {
  9978. return monthsNominative[momentToFormat.month()];
  9979. }
  9980. },
  9981. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  9982. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  9983. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  9984. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  9985. longDateFormat: {
  9986. LT: 'HH:mm',
  9987. LTS: 'HH:mm:ss',
  9988. L: 'DD.MM.YYYY',
  9989. LL: 'D MMMM YYYY',
  9990. LLL: 'D MMMM YYYY HH:mm',
  9991. LLLL: 'dddd, D MMMM YYYY HH:mm'
  9992. },
  9993. calendar: {
  9994. sameDay: '[Dziś o] LT',
  9995. nextDay: '[Jutro o] LT',
  9996. nextWeek: '[W] dddd [o] LT',
  9997. lastDay: '[Wczoraj o] LT',
  9998. lastWeek: function () {
  9999. switch (this.day()) {
  10000. case 0:
  10001. return '[W zeszłą niedzielę o] LT';
  10002. case 3:
  10003. return '[W zeszłą środę o] LT';
  10004. case 6:
  10005. return '[W zeszłą sobotę o] LT';
  10006. default:
  10007. return '[W zeszły] dddd [o] LT';
  10008. }
  10009. },
  10010. sameElse: 'L'
  10011. },
  10012. relativeTime: {
  10013. future: 'za %s',
  10014. past: '%s temu',
  10015. s: 'kilka sekund',
  10016. m: translate$7,
  10017. mm: translate$7,
  10018. h: translate$7,
  10019. hh: translate$7,
  10020. d: '1 dzień',
  10021. dd: '%d dni',
  10022. M: 'miesiąc',
  10023. MM: translate$7,
  10024. y: 'rok',
  10025. yy: translate$7
  10026. },
  10027. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10028. ordinal: '%d.',
  10029. week: {
  10030. dow: 1, // Monday is the first day of the week.
  10031. doy: 4 // The week that contains Jan 4th is the first week of the year.
  10032. }
  10033. });
  10034. //! moment.js locale configuration
  10035. //! locale : Portuguese (Brazil) [pt-br]
  10036. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  10037. hooks.defineLocale('pt-br', {
  10038. months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  10039. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  10040. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  10041. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  10042. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  10043. weekdaysParseExact: true,
  10044. longDateFormat: {
  10045. LT: 'HH:mm',
  10046. LTS: 'HH:mm:ss',
  10047. L: 'DD/MM/YYYY',
  10048. LL: 'D [de] MMMM [de] YYYY',
  10049. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  10050. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  10051. },
  10052. calendar: {
  10053. sameDay: '[Hoje às] LT',
  10054. nextDay: '[Amanhã às] LT',
  10055. nextWeek: 'dddd [às] LT',
  10056. lastDay: '[Ontem às] LT',
  10057. lastWeek: function () {
  10058. return (this.day() === 0 || this.day() === 6) ?
  10059. '[Último] dddd [às] LT' : // Saturday + Sunday
  10060. '[Última] dddd [às] LT'; // Monday - Friday
  10061. },
  10062. sameElse: 'L'
  10063. },
  10064. relativeTime: {
  10065. future: 'em %s',
  10066. past: '%s atrás',
  10067. s: 'poucos segundos',
  10068. m: 'um minuto',
  10069. mm: '%d minutos',
  10070. h: 'uma hora',
  10071. hh: '%d horas',
  10072. d: 'um dia',
  10073. dd: '%d dias',
  10074. M: 'um mês',
  10075. MM: '%d meses',
  10076. y: 'um ano',
  10077. yy: '%d anos'
  10078. },
  10079. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10080. ordinal: '%dº'
  10081. });
  10082. //! moment.js locale configuration
  10083. //! locale : Portuguese [pt]
  10084. //! author : Jefferson : https://github.com/jalex79
  10085. hooks.defineLocale('pt', {
  10086. months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  10087. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  10088. weekdays: 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
  10089. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  10090. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  10091. weekdaysParseExact: true,
  10092. longDateFormat: {
  10093. LT: 'HH:mm',
  10094. LTS: 'HH:mm:ss',
  10095. L: 'DD/MM/YYYY',
  10096. LL: 'D [de] MMMM [de] YYYY',
  10097. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  10098. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm'
  10099. },
  10100. calendar: {
  10101. sameDay: '[Hoje às] LT',
  10102. nextDay: '[Amanhã às] LT',
  10103. nextWeek: 'dddd [às] LT',
  10104. lastDay: '[Ontem às] LT',
  10105. lastWeek: function () {
  10106. return (this.day() === 0 || this.day() === 6) ?
  10107. '[Último] dddd [às] LT' : // Saturday + Sunday
  10108. '[Última] dddd [às] LT'; // Monday - Friday
  10109. },
  10110. sameElse: 'L'
  10111. },
  10112. relativeTime: {
  10113. future: 'em %s',
  10114. past: 'há %s',
  10115. s: 'segundos',
  10116. m: 'um minuto',
  10117. mm: '%d minutos',
  10118. h: 'uma hora',
  10119. hh: '%d horas',
  10120. d: 'um dia',
  10121. dd: '%d dias',
  10122. M: 'um mês',
  10123. MM: '%d meses',
  10124. y: 'um ano',
  10125. yy: '%d anos'
  10126. },
  10127. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10128. ordinal: '%dº',
  10129. week: {
  10130. dow: 1, // Monday is the first day of the week.
  10131. doy: 4 // The week that contains Jan 4th is the first week of the year.
  10132. }
  10133. });
  10134. //! moment.js locale configuration
  10135. //! locale : Romanian [ro]
  10136. //! author : Vlad Gurdiga : https://github.com/gurdiga
  10137. //! author : Valentin Agachi : https://github.com/avaly
  10138. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  10139. var format = {
  10140. 'mm': 'minute',
  10141. 'hh': 'ore',
  10142. 'dd': 'zile',
  10143. 'MM': 'luni',
  10144. 'yy': 'ani'
  10145. },
  10146. separator = ' ';
  10147. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  10148. separator = ' de ';
  10149. }
  10150. return number + separator + format[key];
  10151. }
  10152. hooks.defineLocale('ro', {
  10153. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  10154. monthsShort: 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  10155. monthsParseExact: true,
  10156. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  10157. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  10158. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  10159. longDateFormat: {
  10160. LT: 'H:mm',
  10161. LTS: 'H:mm:ss',
  10162. L: 'DD.MM.YYYY',
  10163. LL: 'D MMMM YYYY',
  10164. LLL: 'D MMMM YYYY H:mm',
  10165. LLLL: 'dddd, D MMMM YYYY H:mm'
  10166. },
  10167. calendar: {
  10168. sameDay: '[azi la] LT',
  10169. nextDay: '[mâine la] LT',
  10170. nextWeek: 'dddd [la] LT',
  10171. lastDay: '[ieri la] LT',
  10172. lastWeek: '[fosta] dddd [la] LT',
  10173. sameElse: 'L'
  10174. },
  10175. relativeTime: {
  10176. future: 'peste %s',
  10177. past: '%s în urmă',
  10178. s: 'câteva secunde',
  10179. m: 'un minut',
  10180. mm: relativeTimeWithPlural$2,
  10181. h: 'o oră',
  10182. hh: relativeTimeWithPlural$2,
  10183. d: 'o zi',
  10184. dd: relativeTimeWithPlural$2,
  10185. M: 'o lună',
  10186. MM: relativeTimeWithPlural$2,
  10187. y: 'un an',
  10188. yy: relativeTimeWithPlural$2
  10189. },
  10190. week: {
  10191. dow: 1, // Monday is the first day of the week.
  10192. doy: 7 // The week that contains Jan 1st is the first week of the year.
  10193. }
  10194. });
  10195. //! moment.js locale configuration
  10196. //! locale : Russian [ru]
  10197. //! author : Viktorminator : https://github.com/Viktorminator
  10198. //! Author : Menelion Elensúle : https://github.com/Oire
  10199. //! author : Коренберг Марк : https://github.com/socketpair
  10200. function plural$4(word, num) {
  10201. var forms = word.split('_');
  10202. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  10203. }
  10204. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  10205. var format = {
  10206. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  10207. 'hh': 'час_часа_часов',
  10208. 'dd': 'день_дня_дней',
  10209. 'MM': 'месяц_месяца_месяцев',
  10210. 'yy': 'год_года_лет'
  10211. };
  10212. if (key === 'm') {
  10213. return withoutSuffix ? 'минута' : 'минуту';
  10214. }
  10215. else {
  10216. return number + ' ' + plural$4(format[key], +number);
  10217. }
  10218. }
  10219. var monthsParse$2 = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  10220. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  10221. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  10222. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  10223. hooks.defineLocale('ru', {
  10224. months: {
  10225. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  10226. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  10227. },
  10228. monthsShort: {
  10229. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  10230. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  10231. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  10232. },
  10233. weekdays: {
  10234. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  10235. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  10236. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  10237. },
  10238. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  10239. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  10240. monthsParse: monthsParse$2,
  10241. longMonthsParse: monthsParse$2,
  10242. shortMonthsParse: monthsParse$2,
  10243. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  10244. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  10245. // копия предыдущего
  10246. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  10247. // полные названия с падежами
  10248. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  10249. // Выражение, которое соотвествует только сокращённым формам
  10250. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  10251. longDateFormat: {
  10252. LT: 'HH:mm',
  10253. LTS: 'HH:mm:ss',
  10254. L: 'DD.MM.YYYY',
  10255. LL: 'D MMMM YYYY г.',
  10256. LLL: 'D MMMM YYYY г., HH:mm',
  10257. LLLL: 'dddd, D MMMM YYYY г., HH:mm'
  10258. },
  10259. calendar: {
  10260. sameDay: '[Сегодня в] LT',
  10261. nextDay: '[Завтра в] LT',
  10262. lastDay: '[Вчера в] LT',
  10263. nextWeek: function (now) {
  10264. if (now.week() !== this.week()) {
  10265. switch (this.day()) {
  10266. case 0:
  10267. return '[В следующее] dddd [в] LT';
  10268. case 1:
  10269. case 2:
  10270. case 4:
  10271. return '[В следующий] dddd [в] LT';
  10272. case 3:
  10273. case 5:
  10274. case 6:
  10275. return '[В следующую] dddd [в] LT';
  10276. }
  10277. } else {
  10278. if (this.day() === 2) {
  10279. return '[Во] dddd [в] LT';
  10280. } else {
  10281. return '[В] dddd [в] LT';
  10282. }
  10283. }
  10284. },
  10285. lastWeek: function (now) {
  10286. if (now.week() !== this.week()) {
  10287. switch (this.day()) {
  10288. case 0:
  10289. return '[В прошлое] dddd [в] LT';
  10290. case 1:
  10291. case 2:
  10292. case 4:
  10293. return '[В прошлый] dddd [в] LT';
  10294. case 3:
  10295. case 5:
  10296. case 6:
  10297. return '[В прошлую] dddd [в] LT';
  10298. }
  10299. } else {
  10300. if (this.day() === 2) {
  10301. return '[Во] dddd [в] LT';
  10302. } else {
  10303. return '[В] dddd [в] LT';
  10304. }
  10305. }
  10306. },
  10307. sameElse: 'L'
  10308. },
  10309. relativeTime: {
  10310. future: 'через %s',
  10311. past: '%s назад',
  10312. s: 'несколько секунд',
  10313. m: relativeTimeWithPlural$3,
  10314. mm: relativeTimeWithPlural$3,
  10315. h: 'час',
  10316. hh: relativeTimeWithPlural$3,
  10317. d: 'день',
  10318. dd: relativeTimeWithPlural$3,
  10319. M: 'месяц',
  10320. MM: relativeTimeWithPlural$3,
  10321. y: 'год',
  10322. yy: relativeTimeWithPlural$3
  10323. },
  10324. meridiemParse: /ночи|утра|дня|вечера/i,
  10325. isPM: function (input) {
  10326. return /^(дня|вечера)$/.test(input);
  10327. },
  10328. meridiem: function (hour, minute, isLower) {
  10329. if (hour < 4) {
  10330. return 'ночи';
  10331. } else if (hour < 12) {
  10332. return 'утра';
  10333. } else if (hour < 17) {
  10334. return 'дня';
  10335. } else {
  10336. return 'вечера';
  10337. }
  10338. },
  10339. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  10340. ordinal: function (number, period) {
  10341. switch (period) {
  10342. case 'M':
  10343. case 'd':
  10344. case 'DDD':
  10345. return number + '-й';
  10346. case 'D':
  10347. return number + '-го';
  10348. case 'w':
  10349. case 'W':
  10350. return number + '-я';
  10351. default:
  10352. return number;
  10353. }
  10354. },
  10355. week: {
  10356. dow: 1, // Monday is the first day of the week.
  10357. doy: 7 // The week that contains Jan 1st is the first week of the year.
  10358. }
  10359. });
  10360. //! moment.js locale configuration
  10361. //! locale : Sindhi [sd]
  10362. //! author : Narain Sagar : https://github.com/narainsagar
  10363. var months$6 = [
  10364. 'جنوري',
  10365. 'فيبروري',
  10366. 'مارچ',
  10367. 'اپريل',
  10368. 'مئي',
  10369. 'جون',
  10370. 'جولاءِ',
  10371. 'آگسٽ',
  10372. 'سيپٽمبر',
  10373. 'آڪٽوبر',
  10374. 'نومبر',
  10375. 'ڊسمبر'
  10376. ];
  10377. var days$1 = [
  10378. 'آچر',
  10379. 'سومر',
  10380. 'اڱارو',
  10381. 'اربع',
  10382. 'خميس',
  10383. 'جمع',
  10384. 'ڇنڇر'
  10385. ];
  10386. hooks.defineLocale('sd', {
  10387. months: months$6,
  10388. monthsShort: months$6,
  10389. weekdays: days$1,
  10390. weekdaysShort: days$1,
  10391. weekdaysMin: days$1,
  10392. longDateFormat: {
  10393. LT: 'HH:mm',
  10394. LTS: 'HH:mm:ss',
  10395. L: 'DD/MM/YYYY',
  10396. LL: 'D MMMM YYYY',
  10397. LLL: 'D MMMM YYYY HH:mm',
  10398. LLLL: 'dddd، D MMMM YYYY HH:mm'
  10399. },
  10400. meridiemParse: /صبح|شام/,
  10401. isPM: function (input) {
  10402. return 'شام' === input;
  10403. },
  10404. meridiem: function (hour, minute, isLower) {
  10405. if (hour < 12) {
  10406. return 'صبح';
  10407. }
  10408. return 'شام';
  10409. },
  10410. calendar: {
  10411. sameDay: '[اڄ] LT',
  10412. nextDay: '[سڀاڻي] LT',
  10413. nextWeek: 'dddd [اڳين هفتي تي] LT',
  10414. lastDay: '[ڪالهه] LT',
  10415. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  10416. sameElse: 'L'
  10417. },
  10418. relativeTime: {
  10419. future: '%s پوء',
  10420. past: '%s اڳ',
  10421. s: 'چند سيڪنڊ',
  10422. m: 'هڪ منٽ',
  10423. mm: '%d منٽ',
  10424. h: 'هڪ ڪلاڪ',
  10425. hh: '%d ڪلاڪ',
  10426. d: 'هڪ ڏينهن',
  10427. dd: '%d ڏينهن',
  10428. M: 'هڪ مهينو',
  10429. MM: '%d مهينا',
  10430. y: 'هڪ سال',
  10431. yy: '%d سال'
  10432. },
  10433. preparse: function (string) {
  10434. return string.replace(/،/g, ',');
  10435. },
  10436. postformat: function (string) {
  10437. return string.replace(/,/g, '،');
  10438. },
  10439. week: {
  10440. dow: 1, // Monday is the first day of the week.
  10441. doy: 4 // The week that contains Jan 4th is the first week of the year.
  10442. }
  10443. });
  10444. //! moment.js locale configuration
  10445. //! locale : Northern Sami [se]
  10446. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  10447. hooks.defineLocale('se', {
  10448. 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('_'),
  10449. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  10450. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  10451. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  10452. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  10453. longDateFormat: {
  10454. LT: 'HH:mm',
  10455. LTS: 'HH:mm:ss',
  10456. L: 'DD.MM.YYYY',
  10457. LL: 'MMMM D. [b.] YYYY',
  10458. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  10459. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  10460. },
  10461. calendar: {
  10462. sameDay: '[otne ti] LT',
  10463. nextDay: '[ihttin ti] LT',
  10464. nextWeek: 'dddd [ti] LT',
  10465. lastDay: '[ikte ti] LT',
  10466. lastWeek: '[ovddit] dddd [ti] LT',
  10467. sameElse: 'L'
  10468. },
  10469. relativeTime: {
  10470. future: '%s geažes',
  10471. past: 'maŋit %s',
  10472. s: 'moadde sekunddat',
  10473. m: 'okta minuhta',
  10474. mm: '%d minuhtat',
  10475. h: 'okta diimmu',
  10476. hh: '%d diimmut',
  10477. d: 'okta beaivi',
  10478. dd: '%d beaivvit',
  10479. M: 'okta mánnu',
  10480. MM: '%d mánut',
  10481. y: 'okta jahki',
  10482. yy: '%d jagit'
  10483. },
  10484. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10485. ordinal: '%d.',
  10486. week: {
  10487. dow: 1, // Monday is the first day of the week.
  10488. doy: 4 // The week that contains Jan 4th is the first week of the year.
  10489. }
  10490. });
  10491. //! moment.js locale configuration
  10492. //! locale : Sinhalese [si]
  10493. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  10494. /*jshint -W100*/
  10495. hooks.defineLocale('si', {
  10496. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  10497. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  10498. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  10499. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  10500. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  10501. weekdaysParseExact: true,
  10502. longDateFormat: {
  10503. LT: 'a h:mm',
  10504. LTS: 'a h:mm:ss',
  10505. L: 'YYYY/MM/DD',
  10506. LL: 'YYYY MMMM D',
  10507. LLL: 'YYYY MMMM D, a h:mm',
  10508. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  10509. },
  10510. calendar: {
  10511. sameDay: '[අද] LT[ට]',
  10512. nextDay: '[හෙට] LT[ට]',
  10513. nextWeek: 'dddd LT[ට]',
  10514. lastDay: '[ඊයේ] LT[ට]',
  10515. lastWeek: '[පසුගිය] dddd LT[ට]',
  10516. sameElse: 'L'
  10517. },
  10518. relativeTime: {
  10519. future: '%sකින්',
  10520. past: '%sකට පෙර',
  10521. s: 'තත්පර කිහිපය',
  10522. m: 'මිනිත්තුව',
  10523. mm: 'මිනිත්තු %d',
  10524. h: 'පැය',
  10525. hh: 'පැය %d',
  10526. d: 'දිනය',
  10527. dd: 'දින %d',
  10528. M: 'මාසය',
  10529. MM: 'මාස %d',
  10530. y: 'වසර',
  10531. yy: 'වසර %d'
  10532. },
  10533. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  10534. ordinal: function (number) {
  10535. return number + ' වැනි';
  10536. },
  10537. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  10538. isPM: function (input) {
  10539. return input === 'ප.ව.' || input === 'පස් වරු';
  10540. },
  10541. meridiem: function (hours, minutes, isLower) {
  10542. if (hours > 11) {
  10543. return isLower ? 'ප.ව.' : 'පස් වරු';
  10544. } else {
  10545. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  10546. }
  10547. }
  10548. });
  10549. //! moment.js locale configuration
  10550. //! locale : Slovak [sk]
  10551. //! author : Martin Minka : https://github.com/k2s
  10552. //! based on work of petrbela : https://github.com/petrbela
  10553. var months$7 = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
  10554. var monthsShort$4 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  10555. function plural$5(n) {
  10556. return (n > 1) && (n < 5);
  10557. }
  10558. function translate$8(number, withoutSuffix, key, isFuture) {
  10559. var result = number + ' ';
  10560. switch (key) {
  10561. case 's': // a few seconds / in a few seconds / a few seconds ago
  10562. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  10563. case 'm': // a minute / in a minute / a minute ago
  10564. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  10565. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  10566. if (withoutSuffix || isFuture) {
  10567. return result + (plural$5(number) ? 'minúty' : 'minút');
  10568. } else {
  10569. return result + 'minútami';
  10570. }
  10571. break;
  10572. case 'h': // an hour / in an hour / an hour ago
  10573. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  10574. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  10575. if (withoutSuffix || isFuture) {
  10576. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  10577. } else {
  10578. return result + 'hodinami';
  10579. }
  10580. break;
  10581. case 'd': // a day / in a day / a day ago
  10582. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  10583. case 'dd': // 9 days / in 9 days / 9 days ago
  10584. if (withoutSuffix || isFuture) {
  10585. return result + (plural$5(number) ? 'dni' : 'dní');
  10586. } else {
  10587. return result + 'dňami';
  10588. }
  10589. break;
  10590. case 'M': // a month / in a month / a month ago
  10591. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  10592. case 'MM': // 9 months / in 9 months / 9 months ago
  10593. if (withoutSuffix || isFuture) {
  10594. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  10595. } else {
  10596. return result + 'mesiacmi';
  10597. }
  10598. break;
  10599. case 'y': // a year / in a year / a year ago
  10600. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  10601. case 'yy': // 9 years / in 9 years / 9 years ago
  10602. if (withoutSuffix || isFuture) {
  10603. return result + (plural$5(number) ? 'roky' : 'rokov');
  10604. } else {
  10605. return result + 'rokmi';
  10606. }
  10607. break;
  10608. }
  10609. }
  10610. hooks.defineLocale('sk', {
  10611. months: months$7,
  10612. monthsShort: monthsShort$4,
  10613. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  10614. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  10615. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  10616. longDateFormat: {
  10617. LT: 'H:mm',
  10618. LTS: 'H:mm:ss',
  10619. L: 'DD.MM.YYYY',
  10620. LL: 'D. MMMM YYYY',
  10621. LLL: 'D. MMMM YYYY H:mm',
  10622. LLLL: 'dddd D. MMMM YYYY H:mm'
  10623. },
  10624. calendar: {
  10625. sameDay: '[dnes o] LT',
  10626. nextDay: '[zajtra o] LT',
  10627. nextWeek: function () {
  10628. switch (this.day()) {
  10629. case 0:
  10630. return '[v nedeľu o] LT';
  10631. case 1:
  10632. case 2:
  10633. return '[v] dddd [o] LT';
  10634. case 3:
  10635. return '[v stredu o] LT';
  10636. case 4:
  10637. return '[vo štvrtok o] LT';
  10638. case 5:
  10639. return '[v piatok o] LT';
  10640. case 6:
  10641. return '[v sobotu o] LT';
  10642. }
  10643. },
  10644. lastDay: '[včera o] LT',
  10645. lastWeek: function () {
  10646. switch (this.day()) {
  10647. case 0:
  10648. return '[minulú nedeľu o] LT';
  10649. case 1:
  10650. case 2:
  10651. return '[minulý] dddd [o] LT';
  10652. case 3:
  10653. return '[minulú stredu o] LT';
  10654. case 4:
  10655. case 5:
  10656. return '[minulý] dddd [o] LT';
  10657. case 6:
  10658. return '[minulú sobotu o] LT';
  10659. }
  10660. },
  10661. sameElse: 'L'
  10662. },
  10663. relativeTime: {
  10664. future: 'za %s',
  10665. past: 'pred %s',
  10666. s: translate$8,
  10667. m: translate$8,
  10668. mm: translate$8,
  10669. h: translate$8,
  10670. hh: translate$8,
  10671. d: translate$8,
  10672. dd: translate$8,
  10673. M: translate$8,
  10674. MM: translate$8,
  10675. y: translate$8,
  10676. yy: translate$8
  10677. },
  10678. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10679. ordinal: '%d.',
  10680. week: {
  10681. dow: 1, // Monday is the first day of the week.
  10682. doy: 4 // The week that contains Jan 4th is the first week of the year.
  10683. }
  10684. });
  10685. //! moment.js locale configuration
  10686. //! locale : Slovenian [sl]
  10687. //! author : Robert Sedovšek : https://github.com/sedovsek
  10688. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  10689. var result = number + ' ';
  10690. switch (key) {
  10691. case 's':
  10692. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  10693. case 'm':
  10694. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  10695. case 'mm':
  10696. if (number === 1) {
  10697. result += withoutSuffix ? 'minuta' : 'minuto';
  10698. } else if (number === 2) {
  10699. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  10700. } else if (number < 5) {
  10701. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  10702. } else {
  10703. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  10704. }
  10705. return result;
  10706. case 'h':
  10707. return withoutSuffix ? 'ena ura' : 'eno uro';
  10708. case 'hh':
  10709. if (number === 1) {
  10710. result += withoutSuffix ? 'ura' : 'uro';
  10711. } else if (number === 2) {
  10712. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  10713. } else if (number < 5) {
  10714. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  10715. } else {
  10716. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  10717. }
  10718. return result;
  10719. case 'd':
  10720. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  10721. case 'dd':
  10722. if (number === 1) {
  10723. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  10724. } else if (number === 2) {
  10725. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  10726. } else {
  10727. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  10728. }
  10729. return result;
  10730. case 'M':
  10731. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  10732. case 'MM':
  10733. if (number === 1) {
  10734. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  10735. } else if (number === 2) {
  10736. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  10737. } else if (number < 5) {
  10738. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  10739. } else {
  10740. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  10741. }
  10742. return result;
  10743. case 'y':
  10744. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  10745. case 'yy':
  10746. if (number === 1) {
  10747. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  10748. } else if (number === 2) {
  10749. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  10750. } else if (number < 5) {
  10751. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  10752. } else {
  10753. result += withoutSuffix || isFuture ? 'let' : 'leti';
  10754. }
  10755. return result;
  10756. }
  10757. }
  10758. hooks.defineLocale('sl', {
  10759. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  10760. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  10761. monthsParseExact: true,
  10762. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  10763. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  10764. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  10765. weekdaysParseExact: true,
  10766. longDateFormat: {
  10767. LT: 'H:mm',
  10768. LTS: 'H:mm:ss',
  10769. L: 'DD.MM.YYYY',
  10770. LL: 'D. MMMM YYYY',
  10771. LLL: 'D. MMMM YYYY H:mm',
  10772. LLLL: 'dddd, D. MMMM YYYY H:mm'
  10773. },
  10774. calendar: {
  10775. sameDay: '[danes ob] LT',
  10776. nextDay: '[jutri ob] LT',
  10777. nextWeek: function () {
  10778. switch (this.day()) {
  10779. case 0:
  10780. return '[v] [nedeljo] [ob] LT';
  10781. case 3:
  10782. return '[v] [sredo] [ob] LT';
  10783. case 6:
  10784. return '[v] [soboto] [ob] LT';
  10785. case 1:
  10786. case 2:
  10787. case 4:
  10788. case 5:
  10789. return '[v] dddd [ob] LT';
  10790. }
  10791. },
  10792. lastDay: '[včeraj ob] LT',
  10793. lastWeek: function () {
  10794. switch (this.day()) {
  10795. case 0:
  10796. return '[prejšnjo] [nedeljo] [ob] LT';
  10797. case 3:
  10798. return '[prejšnjo] [sredo] [ob] LT';
  10799. case 6:
  10800. return '[prejšnjo] [soboto] [ob] LT';
  10801. case 1:
  10802. case 2:
  10803. case 4:
  10804. case 5:
  10805. return '[prejšnji] dddd [ob] LT';
  10806. }
  10807. },
  10808. sameElse: 'L'
  10809. },
  10810. relativeTime: {
  10811. future: 'čez %s',
  10812. past: 'pred %s',
  10813. s: processRelativeTime$6,
  10814. m: processRelativeTime$6,
  10815. mm: processRelativeTime$6,
  10816. h: processRelativeTime$6,
  10817. hh: processRelativeTime$6,
  10818. d: processRelativeTime$6,
  10819. dd: processRelativeTime$6,
  10820. M: processRelativeTime$6,
  10821. MM: processRelativeTime$6,
  10822. y: processRelativeTime$6,
  10823. yy: processRelativeTime$6
  10824. },
  10825. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10826. ordinal: '%d.',
  10827. week: {
  10828. dow: 1, // Monday is the first day of the week.
  10829. doy: 7 // The week that contains Jan 1st is the first week of the year.
  10830. }
  10831. });
  10832. //! moment.js locale configuration
  10833. //! locale : Albanian [sq]
  10834. //! author : Flakërim Ismani : https://github.com/flakerimi
  10835. //! author : Menelion Elensúle : https://github.com/Oire
  10836. //! author : Oerd Cukalla : https://github.com/oerd
  10837. hooks.defineLocale('sq', {
  10838. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  10839. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  10840. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  10841. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  10842. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  10843. weekdaysParseExact: true,
  10844. meridiemParse: /PD|MD/,
  10845. isPM: function (input) {
  10846. return input.charAt(0) === 'M';
  10847. },
  10848. meridiem: function (hours, minutes, isLower) {
  10849. return hours < 12 ? 'PD' : 'MD';
  10850. },
  10851. longDateFormat: {
  10852. LT: 'HH:mm',
  10853. LTS: 'HH:mm:ss',
  10854. L: 'DD/MM/YYYY',
  10855. LL: 'D MMMM YYYY',
  10856. LLL: 'D MMMM YYYY HH:mm',
  10857. LLLL: 'dddd, D MMMM YYYY HH:mm'
  10858. },
  10859. calendar: {
  10860. sameDay: '[Sot në] LT',
  10861. nextDay: '[Nesër në] LT',
  10862. nextWeek: 'dddd [në] LT',
  10863. lastDay: '[Dje në] LT',
  10864. lastWeek: 'dddd [e kaluar në] LT',
  10865. sameElse: 'L'
  10866. },
  10867. relativeTime: {
  10868. future: 'në %s',
  10869. past: '%s më parë',
  10870. s: 'disa sekonda',
  10871. m: 'një minutë',
  10872. mm: '%d minuta',
  10873. h: 'një orë',
  10874. hh: '%d orë',
  10875. d: 'një ditë',
  10876. dd: '%d ditë',
  10877. M: 'një muaj',
  10878. MM: '%d muaj',
  10879. y: 'një vit',
  10880. yy: '%d vite'
  10881. },
  10882. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10883. ordinal: '%d.',
  10884. week: {
  10885. dow: 1, // Monday is the first day of the week.
  10886. doy: 4 // The week that contains Jan 4th is the first week of the year.
  10887. }
  10888. });
  10889. //! moment.js locale configuration
  10890. //! locale : Serbian Cyrillic [sr-cyrl]
  10891. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  10892. var translator$1 = {
  10893. words: { //Different grammatical cases
  10894. m: ['један минут', 'једне минуте'],
  10895. mm: ['минут', 'минуте', 'минута'],
  10896. h: ['један сат', 'једног сата'],
  10897. hh: ['сат', 'сата', 'сати'],
  10898. dd: ['дан', 'дана', 'дана'],
  10899. MM: ['месец', 'месеца', 'месеци'],
  10900. yy: ['година', 'године', 'година']
  10901. },
  10902. correctGrammaticalCase: function (number, wordKey) {
  10903. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  10904. },
  10905. translate: function (number, withoutSuffix, key) {
  10906. var wordKey = translator$1.words[key];
  10907. if (key.length === 1) {
  10908. return withoutSuffix ? wordKey[0] : wordKey[1];
  10909. } else {
  10910. return number + ' ' + translator$1.correctGrammaticalCase(number, wordKey);
  10911. }
  10912. }
  10913. };
  10914. hooks.defineLocale('sr-cyrl', {
  10915. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  10916. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  10917. monthsParseExact: true,
  10918. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  10919. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  10920. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  10921. weekdaysParseExact: true,
  10922. longDateFormat: {
  10923. LT: 'H:mm',
  10924. LTS: 'H:mm:ss',
  10925. L: 'DD.MM.YYYY',
  10926. LL: 'D. MMMM YYYY',
  10927. LLL: 'D. MMMM YYYY H:mm',
  10928. LLLL: 'dddd, D. MMMM YYYY H:mm'
  10929. },
  10930. calendar: {
  10931. sameDay: '[данас у] LT',
  10932. nextDay: '[сутра у] LT',
  10933. nextWeek: function () {
  10934. switch (this.day()) {
  10935. case 0:
  10936. return '[у] [недељу] [у] LT';
  10937. case 3:
  10938. return '[у] [среду] [у] LT';
  10939. case 6:
  10940. return '[у] [суботу] [у] LT';
  10941. case 1:
  10942. case 2:
  10943. case 4:
  10944. case 5:
  10945. return '[у] dddd [у] LT';
  10946. }
  10947. },
  10948. lastDay: '[јуче у] LT',
  10949. lastWeek: function () {
  10950. var lastWeekDays = [
  10951. '[прошле] [недеље] [у] LT',
  10952. '[прошлог] [понедељка] [у] LT',
  10953. '[прошлог] [уторка] [у] LT',
  10954. '[прошле] [среде] [у] LT',
  10955. '[прошлог] [четвртка] [у] LT',
  10956. '[прошлог] [петка] [у] LT',
  10957. '[прошле] [суботе] [у] LT'
  10958. ];
  10959. return lastWeekDays[this.day()];
  10960. },
  10961. sameElse: 'L'
  10962. },
  10963. relativeTime: {
  10964. future: 'за %s',
  10965. past: 'пре %s',
  10966. s: 'неколико секунди',
  10967. m: translator$1.translate,
  10968. mm: translator$1.translate,
  10969. h: translator$1.translate,
  10970. hh: translator$1.translate,
  10971. d: 'дан',
  10972. dd: translator$1.translate,
  10973. M: 'месец',
  10974. MM: translator$1.translate,
  10975. y: 'годину',
  10976. yy: translator$1.translate
  10977. },
  10978. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10979. ordinal: '%d.',
  10980. week: {
  10981. dow: 1, // Monday is the first day of the week.
  10982. doy: 7 // The week that contains Jan 1st is the first week of the year.
  10983. }
  10984. });
  10985. //! moment.js locale configuration
  10986. //! locale : Serbian [sr]
  10987. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  10988. var translator$2 = {
  10989. words: { //Different grammatical cases
  10990. m: ['jedan minut', 'jedne minute'],
  10991. mm: ['minut', 'minute', 'minuta'],
  10992. h: ['jedan sat', 'jednog sata'],
  10993. hh: ['sat', 'sata', 'sati'],
  10994. dd: ['dan', 'dana', 'dana'],
  10995. MM: ['mesec', 'meseca', 'meseci'],
  10996. yy: ['godina', 'godine', 'godina']
  10997. },
  10998. correctGrammaticalCase: function (number, wordKey) {
  10999. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  11000. },
  11001. translate: function (number, withoutSuffix, key) {
  11002. var wordKey = translator$2.words[key];
  11003. if (key.length === 1) {
  11004. return withoutSuffix ? wordKey[0] : wordKey[1];
  11005. } else {
  11006. return number + ' ' + translator$2.correctGrammaticalCase(number, wordKey);
  11007. }
  11008. }
  11009. };
  11010. hooks.defineLocale('sr', {
  11011. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  11012. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  11013. monthsParseExact: true,
  11014. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  11015. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  11016. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  11017. weekdaysParseExact: true,
  11018. longDateFormat: {
  11019. LT: 'H:mm',
  11020. LTS: 'H:mm:ss',
  11021. L: 'DD.MM.YYYY',
  11022. LL: 'D. MMMM YYYY',
  11023. LLL: 'D. MMMM YYYY H:mm',
  11024. LLLL: 'dddd, D. MMMM YYYY H:mm'
  11025. },
  11026. calendar: {
  11027. sameDay: '[danas u] LT',
  11028. nextDay: '[sutra u] LT',
  11029. nextWeek: function () {
  11030. switch (this.day()) {
  11031. case 0:
  11032. return '[u] [nedelju] [u] LT';
  11033. case 3:
  11034. return '[u] [sredu] [u] LT';
  11035. case 6:
  11036. return '[u] [subotu] [u] LT';
  11037. case 1:
  11038. case 2:
  11039. case 4:
  11040. case 5:
  11041. return '[u] dddd [u] LT';
  11042. }
  11043. },
  11044. lastDay: '[juče u] LT',
  11045. lastWeek: function () {
  11046. var lastWeekDays = [
  11047. '[prošle] [nedelje] [u] LT',
  11048. '[prošlog] [ponedeljka] [u] LT',
  11049. '[prošlog] [utorka] [u] LT',
  11050. '[prošle] [srede] [u] LT',
  11051. '[prošlog] [četvrtka] [u] LT',
  11052. '[prošlog] [petka] [u] LT',
  11053. '[prošle] [subote] [u] LT'
  11054. ];
  11055. return lastWeekDays[this.day()];
  11056. },
  11057. sameElse: 'L'
  11058. },
  11059. relativeTime: {
  11060. future: 'za %s',
  11061. past: 'pre %s',
  11062. s: 'nekoliko sekundi',
  11063. m: translator$2.translate,
  11064. mm: translator$2.translate,
  11065. h: translator$2.translate,
  11066. hh: translator$2.translate,
  11067. d: 'dan',
  11068. dd: translator$2.translate,
  11069. M: 'mesec',
  11070. MM: translator$2.translate,
  11071. y: 'godinu',
  11072. yy: translator$2.translate
  11073. },
  11074. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11075. ordinal: '%d.',
  11076. week: {
  11077. dow: 1, // Monday is the first day of the week.
  11078. doy: 7 // The week that contains Jan 1st is the first week of the year.
  11079. }
  11080. });
  11081. //! moment.js locale configuration
  11082. //! locale : siSwati [ss]
  11083. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  11084. hooks.defineLocale('ss', {
  11085. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  11086. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  11087. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  11088. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  11089. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  11090. weekdaysParseExact: true,
  11091. longDateFormat: {
  11092. LT: 'h:mm A',
  11093. LTS: 'h:mm:ss A',
  11094. L: 'DD/MM/YYYY',
  11095. LL: 'D MMMM YYYY',
  11096. LLL: 'D MMMM YYYY h:mm A',
  11097. LLLL: 'dddd, D MMMM YYYY h:mm A'
  11098. },
  11099. calendar: {
  11100. sameDay: '[Namuhla nga] LT',
  11101. nextDay: '[Kusasa nga] LT',
  11102. nextWeek: 'dddd [nga] LT',
  11103. lastDay: '[Itolo nga] LT',
  11104. lastWeek: 'dddd [leliphelile] [nga] LT',
  11105. sameElse: 'L'
  11106. },
  11107. relativeTime: {
  11108. future: 'nga %s',
  11109. past: 'wenteka nga %s',
  11110. s: 'emizuzwana lomcane',
  11111. m: 'umzuzu',
  11112. mm: '%d emizuzu',
  11113. h: 'lihora',
  11114. hh: '%d emahora',
  11115. d: 'lilanga',
  11116. dd: '%d emalanga',
  11117. M: 'inyanga',
  11118. MM: '%d tinyanga',
  11119. y: 'umnyaka',
  11120. yy: '%d iminyaka'
  11121. },
  11122. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  11123. meridiem: function (hours, minutes, isLower) {
  11124. if (hours < 11) {
  11125. return 'ekuseni';
  11126. } else if (hours < 15) {
  11127. return 'emini';
  11128. } else if (hours < 19) {
  11129. return 'entsambama';
  11130. } else {
  11131. return 'ebusuku';
  11132. }
  11133. },
  11134. meridiemHour: function (hour, meridiem) {
  11135. if (hour === 12) {
  11136. hour = 0;
  11137. }
  11138. if (meridiem === 'ekuseni') {
  11139. return hour;
  11140. } else if (meridiem === 'emini') {
  11141. return hour >= 11 ? hour : hour + 12;
  11142. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  11143. if (hour === 0) {
  11144. return 0;
  11145. }
  11146. return hour + 12;
  11147. }
  11148. },
  11149. dayOfMonthOrdinalParse: /\d{1,2}/,
  11150. ordinal: '%d',
  11151. week: {
  11152. dow: 1, // Monday is the first day of the week.
  11153. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11154. }
  11155. });
  11156. //! moment.js locale configuration
  11157. //! locale : Swedish [sv]
  11158. //! author : Jens Alm : https://github.com/ulmus
  11159. hooks.defineLocale('sv', {
  11160. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  11161. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  11162. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  11163. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  11164. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  11165. longDateFormat: {
  11166. LT: 'HH:mm',
  11167. LTS: 'HH:mm:ss',
  11168. L: 'YYYY-MM-DD',
  11169. LL: 'D MMMM YYYY',
  11170. LLL: 'D MMMM YYYY [kl.] HH:mm',
  11171. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  11172. lll: 'D MMM YYYY HH:mm',
  11173. llll: 'ddd D MMM YYYY HH:mm'
  11174. },
  11175. calendar: {
  11176. sameDay: '[Idag] LT',
  11177. nextDay: '[Imorgon] LT',
  11178. lastDay: '[Igår] LT',
  11179. nextWeek: '[På] dddd LT',
  11180. lastWeek: '[I] dddd[s] LT',
  11181. sameElse: 'L'
  11182. },
  11183. relativeTime: {
  11184. future: 'om %s',
  11185. past: 'för %s sedan',
  11186. s: 'några sekunder',
  11187. m: 'en minut',
  11188. mm: '%d minuter',
  11189. h: 'en timme',
  11190. hh: '%d timmar',
  11191. d: 'en dag',
  11192. dd: '%d dagar',
  11193. M: 'en månad',
  11194. MM: '%d månader',
  11195. y: 'ett år',
  11196. yy: '%d år'
  11197. },
  11198. dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
  11199. ordinal: function (number) {
  11200. var b = number % 10,
  11201. output = (~~(number % 100 / 10) === 1) ? 'e' :
  11202. (b === 1) ? 'a' :
  11203. (b === 2) ? 'a' :
  11204. (b === 3) ? 'e' : 'e';
  11205. return number + output;
  11206. },
  11207. week: {
  11208. dow: 1, // Monday is the first day of the week.
  11209. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11210. }
  11211. });
  11212. //! moment.js locale configuration
  11213. //! locale : Swahili [sw]
  11214. //! author : Fahad Kassim : https://github.com/fadsel
  11215. hooks.defineLocale('sw', {
  11216. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  11217. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  11218. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  11219. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  11220. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  11221. weekdaysParseExact: true,
  11222. longDateFormat: {
  11223. LT: 'HH:mm',
  11224. LTS: 'HH:mm:ss',
  11225. L: 'DD.MM.YYYY',
  11226. LL: 'D MMMM YYYY',
  11227. LLL: 'D MMMM YYYY HH:mm',
  11228. LLLL: 'dddd, D MMMM YYYY HH:mm'
  11229. },
  11230. calendar: {
  11231. sameDay: '[leo saa] LT',
  11232. nextDay: '[kesho saa] LT',
  11233. nextWeek: '[wiki ijayo] dddd [saat] LT',
  11234. lastDay: '[jana] LT',
  11235. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  11236. sameElse: 'L'
  11237. },
  11238. relativeTime: {
  11239. future: '%s baadaye',
  11240. past: 'tokea %s',
  11241. s: 'hivi punde',
  11242. m: 'dakika moja',
  11243. mm: 'dakika %d',
  11244. h: 'saa limoja',
  11245. hh: 'masaa %d',
  11246. d: 'siku moja',
  11247. dd: 'masiku %d',
  11248. M: 'mwezi mmoja',
  11249. MM: 'miezi %d',
  11250. y: 'mwaka mmoja',
  11251. yy: 'miaka %d'
  11252. },
  11253. week: {
  11254. dow: 1, // Monday is the first day of the week.
  11255. doy: 7 // The week that contains Jan 1st is the first week of the year.
  11256. }
  11257. });
  11258. //! moment.js locale configuration
  11259. //! locale : Tamil [ta]
  11260. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  11261. var symbolMap$12 = {
  11262. '1': '௧',
  11263. '2': '௨',
  11264. '3': '௩',
  11265. '4': '௪',
  11266. '5': '௫',
  11267. '6': '௬',
  11268. '7': '௭',
  11269. '8': '௮',
  11270. '9': '௯',
  11271. '0': '௦'
  11272. };
  11273. var numberMap$11 = {
  11274. '௧': '1',
  11275. '௨': '2',
  11276. '௩': '3',
  11277. '௪': '4',
  11278. '௫': '5',
  11279. '௬': '6',
  11280. '௭': '7',
  11281. '௮': '8',
  11282. '௯': '9',
  11283. '௦': '0'
  11284. };
  11285. hooks.defineLocale('ta', {
  11286. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  11287. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  11288. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  11289. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  11290. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  11291. longDateFormat: {
  11292. LT: 'HH:mm',
  11293. LTS: 'HH:mm:ss',
  11294. L: 'DD/MM/YYYY',
  11295. LL: 'D MMMM YYYY',
  11296. LLL: 'D MMMM YYYY, HH:mm',
  11297. LLLL: 'dddd, D MMMM YYYY, HH:mm'
  11298. },
  11299. calendar: {
  11300. sameDay: '[இன்று] LT',
  11301. nextDay: '[நாளை] LT',
  11302. nextWeek: 'dddd, LT',
  11303. lastDay: '[நேற்று] LT',
  11304. lastWeek: '[கடந்த வாரம்] dddd, LT',
  11305. sameElse: 'L'
  11306. },
  11307. relativeTime: {
  11308. future: '%s இல்',
  11309. past: '%s முன்',
  11310. s: 'ஒரு சில விநாடிகள்',
  11311. m: 'ஒரு நிமிடம்',
  11312. mm: '%d நிமிடங்கள்',
  11313. h: 'ஒரு மணி நேரம்',
  11314. hh: '%d மணி நேரம்',
  11315. d: 'ஒரு நாள்',
  11316. dd: '%d நாட்கள்',
  11317. M: 'ஒரு மாதம்',
  11318. MM: '%d மாதங்கள்',
  11319. y: 'ஒரு வருடம்',
  11320. yy: '%d ஆண்டுகள்'
  11321. },
  11322. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  11323. ordinal: function (number) {
  11324. return number + 'வது';
  11325. },
  11326. preparse: function (string) {
  11327. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  11328. return numberMap$11[match];
  11329. });
  11330. },
  11331. postformat: function (string) {
  11332. return string.replace(/\d/g, function (match) {
  11333. return symbolMap$12[match];
  11334. });
  11335. },
  11336. // refer http://ta.wikipedia.org/s/1er1
  11337. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  11338. meridiem: function (hour, minute, isLower) {
  11339. if (hour < 2) {
  11340. return ' யாமம்';
  11341. } else if (hour < 6) {
  11342. return ' வைகறை'; // வைகறை
  11343. } else if (hour < 10) {
  11344. return ' காலை'; // காலை
  11345. } else if (hour < 14) {
  11346. return ' நண்பகல்'; // நண்பகல்
  11347. } else if (hour < 18) {
  11348. return ' எற்பாடு'; // எற்பாடு
  11349. } else if (hour < 22) {
  11350. return ' மாலை'; // மாலை
  11351. } else {
  11352. return ' யாமம்';
  11353. }
  11354. },
  11355. meridiemHour: function (hour, meridiem) {
  11356. if (hour === 12) {
  11357. hour = 0;
  11358. }
  11359. if (meridiem === 'யாமம்') {
  11360. return hour < 2 ? hour : hour + 12;
  11361. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  11362. return hour;
  11363. } else if (meridiem === 'நண்பகல்') {
  11364. return hour >= 10 ? hour : hour + 12;
  11365. } else {
  11366. return hour + 12;
  11367. }
  11368. },
  11369. week: {
  11370. dow: 0, // Sunday is the first day of the week.
  11371. doy: 6 // The week that contains Jan 1st is the first week of the year.
  11372. }
  11373. });
  11374. //! moment.js locale configuration
  11375. //! locale : Telugu [te]
  11376. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  11377. hooks.defineLocale('te', {
  11378. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  11379. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  11380. monthsParseExact: true,
  11381. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  11382. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  11383. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  11384. longDateFormat: {
  11385. LT: 'A h:mm',
  11386. LTS: 'A h:mm:ss',
  11387. L: 'DD/MM/YYYY',
  11388. LL: 'D MMMM YYYY',
  11389. LLL: 'D MMMM YYYY, A h:mm',
  11390. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  11391. },
  11392. calendar: {
  11393. sameDay: '[నేడు] LT',
  11394. nextDay: '[రేపు] LT',
  11395. nextWeek: 'dddd, LT',
  11396. lastDay: '[నిన్న] LT',
  11397. lastWeek: '[గత] dddd, LT',
  11398. sameElse: 'L'
  11399. },
  11400. relativeTime: {
  11401. future: '%s లో',
  11402. past: '%s క్రితం',
  11403. s: 'కొన్ని క్షణాలు',
  11404. m: 'ఒక నిమిషం',
  11405. mm: '%d నిమిషాలు',
  11406. h: 'ఒక గంట',
  11407. hh: '%d గంటలు',
  11408. d: 'ఒక రోజు',
  11409. dd: '%d రోజులు',
  11410. M: 'ఒక నెల',
  11411. MM: '%d నెలలు',
  11412. y: 'ఒక సంవత్సరం',
  11413. yy: '%d సంవత్సరాలు'
  11414. },
  11415. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  11416. ordinal: '%dవ',
  11417. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  11418. meridiemHour: function (hour, meridiem) {
  11419. if (hour === 12) {
  11420. hour = 0;
  11421. }
  11422. if (meridiem === 'రాత్రి') {
  11423. return hour < 4 ? hour : hour + 12;
  11424. } else if (meridiem === 'ఉదయం') {
  11425. return hour;
  11426. } else if (meridiem === 'మధ్యాహ్నం') {
  11427. return hour >= 10 ? hour : hour + 12;
  11428. } else if (meridiem === 'సాయంత్రం') {
  11429. return hour + 12;
  11430. }
  11431. },
  11432. meridiem: function (hour, minute, isLower) {
  11433. if (hour < 4) {
  11434. return 'రాత్రి';
  11435. } else if (hour < 10) {
  11436. return 'ఉదయం';
  11437. } else if (hour < 17) {
  11438. return 'మధ్యాహ్నం';
  11439. } else if (hour < 20) {
  11440. return 'సాయంత్రం';
  11441. } else {
  11442. return 'రాత్రి';
  11443. }
  11444. },
  11445. week: {
  11446. dow: 0, // Sunday is the first day of the week.
  11447. doy: 6 // The week that contains Jan 1st is the first week of the year.
  11448. }
  11449. });
  11450. //! moment.js locale configuration
  11451. //! locale : Tetun Dili (East Timor) [tet]
  11452. //! author : Joshua Brooks : https://github.com/joshbrooks
  11453. //! author : Onorio De J. Afonso : https://github.com/marobo
  11454. hooks.defineLocale('tet', {
  11455. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  11456. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
  11457. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
  11458. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
  11459. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
  11460. longDateFormat: {
  11461. LT: 'HH:mm',
  11462. LTS: 'HH:mm:ss',
  11463. L: 'DD/MM/YYYY',
  11464. LL: 'D MMMM YYYY',
  11465. LLL: 'D MMMM YYYY HH:mm',
  11466. LLLL: 'dddd, D MMMM YYYY HH:mm'
  11467. },
  11468. calendar: {
  11469. sameDay: '[Ohin iha] LT',
  11470. nextDay: '[Aban iha] LT',
  11471. nextWeek: 'dddd [iha] LT',
  11472. lastDay: '[Horiseik iha] LT',
  11473. lastWeek: 'dddd [semana kotuk] [iha] LT',
  11474. sameElse: 'L'
  11475. },
  11476. relativeTime: {
  11477. future: 'iha %s',
  11478. past: '%s liuba',
  11479. s: 'minutu balun',
  11480. m: 'minutu ida',
  11481. mm: 'minutus %d',
  11482. h: 'horas ida',
  11483. hh: 'horas %d',
  11484. d: 'loron ida',
  11485. dd: 'loron %d',
  11486. M: 'fulan ida',
  11487. MM: 'fulan %d',
  11488. y: 'tinan ida',
  11489. yy: 'tinan %d'
  11490. },
  11491. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11492. ordinal: function (number) {
  11493. var b = number % 10,
  11494. output = (~~(number % 100 / 10) === 1) ? 'th' :
  11495. (b === 1) ? 'st' :
  11496. (b === 2) ? 'nd' :
  11497. (b === 3) ? 'rd' : 'th';
  11498. return number + output;
  11499. },
  11500. week: {
  11501. dow: 1, // Monday is the first day of the week.
  11502. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11503. }
  11504. });
  11505. //! moment.js locale configuration
  11506. //! locale : Thai [th]
  11507. //! author : Kridsada Thanabulpong : https://github.com/sirn
  11508. hooks.defineLocale('th', {
  11509. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  11510. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  11511. monthsParseExact: true,
  11512. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  11513. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  11514. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  11515. weekdaysParseExact: true,
  11516. longDateFormat: {
  11517. LT: 'H:mm',
  11518. LTS: 'H:mm:ss',
  11519. L: 'DD/MM/YYYY',
  11520. LL: 'D MMMM YYYY',
  11521. LLL: 'D MMMM YYYY เวลา H:mm',
  11522. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'
  11523. },
  11524. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  11525. isPM: function (input) {
  11526. return input === 'หลังเที่ยง';
  11527. },
  11528. meridiem: function (hour, minute, isLower) {
  11529. if (hour < 12) {
  11530. return 'ก่อนเที่ยง';
  11531. } else {
  11532. return 'หลังเที่ยง';
  11533. }
  11534. },
  11535. calendar: {
  11536. sameDay: '[วันนี้ เวลา] LT',
  11537. nextDay: '[พรุ่งนี้ เวลา] LT',
  11538. nextWeek: 'dddd[หน้า เวลา] LT',
  11539. lastDay: '[เมื่อวานนี้ เวลา] LT',
  11540. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  11541. sameElse: 'L'
  11542. },
  11543. relativeTime: {
  11544. future: 'อีก %s',
  11545. past: '%sที่แล้ว',
  11546. s: 'ไม่กี่วินาที',
  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. });
  11559. //! moment.js locale configuration
  11560. //! locale : Tagalog (Philippines) [tl-ph]
  11561. //! author : Dan Hagman : https://github.com/hagmandan
  11562. hooks.defineLocale('tl-ph', {
  11563. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  11564. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  11565. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  11566. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  11567. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  11568. longDateFormat: {
  11569. LT: 'HH:mm',
  11570. LTS: 'HH:mm:ss',
  11571. L: 'MM/D/YYYY',
  11572. LL: 'MMMM D, YYYY',
  11573. LLL: 'MMMM D, YYYY HH:mm',
  11574. LLLL: 'dddd, MMMM DD, YYYY HH:mm'
  11575. },
  11576. calendar: {
  11577. sameDay: 'LT [ngayong araw]',
  11578. nextDay: '[Bukas ng] LT',
  11579. nextWeek: 'LT [sa susunod na] dddd',
  11580. lastDay: 'LT [kahapon]',
  11581. lastWeek: 'LT [noong nakaraang] dddd',
  11582. sameElse: 'L'
  11583. },
  11584. relativeTime: {
  11585. future: 'sa loob ng %s',
  11586. past: '%s ang nakalipas',
  11587. s: 'ilang segundo',
  11588. m: 'isang minuto',
  11589. mm: '%d minuto',
  11590. h: 'isang oras',
  11591. hh: '%d oras',
  11592. d: 'isang araw',
  11593. dd: '%d araw',
  11594. M: 'isang buwan',
  11595. MM: '%d buwan',
  11596. y: 'isang taon',
  11597. yy: '%d taon'
  11598. },
  11599. dayOfMonthOrdinalParse: /\d{1,2}/,
  11600. ordinal: function (number) {
  11601. return number;
  11602. },
  11603. week: {
  11604. dow: 1, // Monday is the first day of the week.
  11605. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11606. }
  11607. });
  11608. //! moment.js locale configuration
  11609. //! locale : Klingon [tlh]
  11610. //! author : Dominika Kruk : https://github.com/amaranthrose
  11611. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  11612. function translateFuture(output) {
  11613. var time = output;
  11614. time = (output.indexOf('jaj') !== -1) ?
  11615. time.slice(0, -3) + 'leS' :
  11616. (output.indexOf('jar') !== -1) ?
  11617. time.slice(0, -3) + 'waQ' :
  11618. (output.indexOf('DIS') !== -1) ?
  11619. time.slice(0, -3) + 'nem' :
  11620. time + ' pIq';
  11621. return time;
  11622. }
  11623. function translatePast(output) {
  11624. var time = output;
  11625. time = (output.indexOf('jaj') !== -1) ?
  11626. time.slice(0, -3) + 'Hu’' :
  11627. (output.indexOf('jar') !== -1) ?
  11628. time.slice(0, -3) + 'wen' :
  11629. (output.indexOf('DIS') !== -1) ?
  11630. time.slice(0, -3) + 'ben' :
  11631. time + ' ret';
  11632. return time;
  11633. }
  11634. function translate$9(number, withoutSuffix, string, isFuture) {
  11635. var numberNoun = numberAsNoun(number);
  11636. switch (string) {
  11637. case 'mm':
  11638. return numberNoun + ' tup';
  11639. case 'hh':
  11640. return numberNoun + ' rep';
  11641. case 'dd':
  11642. return numberNoun + ' jaj';
  11643. case 'MM':
  11644. return numberNoun + ' jar';
  11645. case 'yy':
  11646. return numberNoun + ' DIS';
  11647. }
  11648. }
  11649. function numberAsNoun(number) {
  11650. var hundred = Math.floor((number % 1000) / 100),
  11651. ten = Math.floor((number % 100) / 10),
  11652. one = number % 10,
  11653. word = '';
  11654. if (hundred > 0) {
  11655. word += numbersNouns[hundred] + 'vatlh';
  11656. }
  11657. if (ten > 0) {
  11658. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  11659. }
  11660. if (one > 0) {
  11661. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  11662. }
  11663. return (word === '') ? 'pagh' : word;
  11664. }
  11665. hooks.defineLocale('tlh', {
  11666. 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('_'),
  11667. 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('_'),
  11668. monthsParseExact: true,
  11669. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11670. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11671. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11672. longDateFormat: {
  11673. LT: 'HH:mm',
  11674. LTS: 'HH:mm:ss',
  11675. L: 'DD.MM.YYYY',
  11676. LL: 'D MMMM YYYY',
  11677. LLL: 'D MMMM YYYY HH:mm',
  11678. LLLL: 'dddd, D MMMM YYYY HH:mm'
  11679. },
  11680. calendar: {
  11681. sameDay: '[DaHjaj] LT',
  11682. nextDay: '[wa’leS] LT',
  11683. nextWeek: 'LLL',
  11684. lastDay: '[wa’Hu’] LT',
  11685. lastWeek: 'LLL',
  11686. sameElse: 'L'
  11687. },
  11688. relativeTime: {
  11689. future: translateFuture,
  11690. past: translatePast,
  11691. s: 'puS lup',
  11692. m: 'wa’ tup',
  11693. mm: translate$9,
  11694. h: 'wa’ rep',
  11695. hh: translate$9,
  11696. d: 'wa’ jaj',
  11697. dd: translate$9,
  11698. M: 'wa’ jar',
  11699. MM: translate$9,
  11700. y: 'wa’ DIS',
  11701. yy: translate$9
  11702. },
  11703. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11704. ordinal: '%d.',
  11705. week: {
  11706. dow: 1, // Monday is the first day of the week.
  11707. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11708. }
  11709. });
  11710. //! moment.js locale configuration
  11711. //! locale : Turkish [tr]
  11712. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  11713. //! Burak Yiğit Kaya: https://github.com/BYK
  11714. var suffixes$3 = {
  11715. 1: '\'inci',
  11716. 5: '\'inci',
  11717. 8: '\'inci',
  11718. 70: '\'inci',
  11719. 80: '\'inci',
  11720. 2: '\'nci',
  11721. 7: '\'nci',
  11722. 20: '\'nci',
  11723. 50: '\'nci',
  11724. 3: '\'üncü',
  11725. 4: '\'üncü',
  11726. 100: '\'üncü',
  11727. 6: '\'ncı',
  11728. 9: '\'uncu',
  11729. 10: '\'uncu',
  11730. 30: '\'uncu',
  11731. 60: '\'ıncı',
  11732. 90: '\'ıncı'
  11733. };
  11734. hooks.defineLocale('tr', {
  11735. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  11736. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  11737. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  11738. weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  11739. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  11740. longDateFormat: {
  11741. LT: 'HH:mm',
  11742. LTS: 'HH:mm:ss',
  11743. L: 'DD.MM.YYYY',
  11744. LL: 'D MMMM YYYY',
  11745. LLL: 'D MMMM YYYY HH:mm',
  11746. LLLL: 'dddd, D MMMM YYYY HH:mm'
  11747. },
  11748. calendar: {
  11749. sameDay: '[bugün saat] LT',
  11750. nextDay: '[yarın saat] LT',
  11751. nextWeek: '[haftaya] dddd [saat] LT',
  11752. lastDay: '[dün] LT',
  11753. lastWeek: '[geçen hafta] dddd [saat] LT',
  11754. sameElse: 'L'
  11755. },
  11756. relativeTime: {
  11757. future: '%s sonra',
  11758. past: '%s önce',
  11759. s: 'birkaç saniye',
  11760. m: 'bir dakika',
  11761. mm: '%d dakika',
  11762. h: 'bir saat',
  11763. hh: '%d saat',
  11764. d: 'bir gün',
  11765. dd: '%d gün',
  11766. M: 'bir ay',
  11767. MM: '%d ay',
  11768. y: 'bir yıl',
  11769. yy: '%d yıl'
  11770. },
  11771. dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  11772. ordinal: function (number) {
  11773. if (number === 0) { // special case for zero
  11774. return number + '\'ıncı';
  11775. }
  11776. var a = number % 10,
  11777. b = number % 100 - a,
  11778. c = number >= 100 ? 100 : null;
  11779. return number + (suffixes$3[a] || suffixes$3[b] || suffixes$3[c]);
  11780. },
  11781. week: {
  11782. dow: 1, // Monday is the first day of the week.
  11783. doy: 7 // The week that contains Jan 1st is the first week of the year.
  11784. }
  11785. });
  11786. //! moment.js locale configuration
  11787. //! locale : Talossan [tzl]
  11788. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  11789. //! author : Iustì Canun
  11790. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  11791. // This is currently too difficult (maybe even impossible) to add.
  11792. hooks.defineLocale('tzl', {
  11793. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  11794. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  11795. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  11796. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  11797. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  11798. longDateFormat: {
  11799. LT: 'HH.mm',
  11800. LTS: 'HH.mm.ss',
  11801. L: 'DD.MM.YYYY',
  11802. LL: 'D. MMMM [dallas] YYYY',
  11803. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  11804. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  11805. },
  11806. meridiemParse: /d\'o|d\'a/i,
  11807. isPM: function (input) {
  11808. return 'd\'o' === input.toLowerCase();
  11809. },
  11810. meridiem: function (hours, minutes, isLower) {
  11811. if (hours > 11) {
  11812. return isLower ? 'd\'o' : 'D\'O';
  11813. } else {
  11814. return isLower ? 'd\'a' : 'D\'A';
  11815. }
  11816. },
  11817. calendar: {
  11818. sameDay: '[oxhi à] LT',
  11819. nextDay: '[demà à] LT',
  11820. nextWeek: 'dddd [à] LT',
  11821. lastDay: '[ieiri à] LT',
  11822. lastWeek: '[sür el] dddd [lasteu à] LT',
  11823. sameElse: 'L'
  11824. },
  11825. relativeTime: {
  11826. future: 'osprei %s',
  11827. past: 'ja%s',
  11828. s: processRelativeTime$7,
  11829. m: processRelativeTime$7,
  11830. mm: processRelativeTime$7,
  11831. h: processRelativeTime$7,
  11832. hh: processRelativeTime$7,
  11833. d: processRelativeTime$7,
  11834. dd: processRelativeTime$7,
  11835. M: processRelativeTime$7,
  11836. MM: processRelativeTime$7,
  11837. y: processRelativeTime$7,
  11838. yy: processRelativeTime$7
  11839. },
  11840. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11841. ordinal: '%d.',
  11842. week: {
  11843. dow: 1, // Monday is the first day of the week.
  11844. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11845. }
  11846. });
  11847. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  11848. var format = {
  11849. 's': ['viensas secunds', '\'iensas secunds'],
  11850. 'm': ['\'n míut', '\'iens míut'],
  11851. 'mm': [number + ' míuts', '' + number + ' míuts'],
  11852. 'h': ['\'n þora', '\'iensa þora'],
  11853. 'hh': [number + ' þoras', '' + number + ' þoras'],
  11854. 'd': ['\'n ziua', '\'iensa ziua'],
  11855. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  11856. 'M': ['\'n mes', '\'iens mes'],
  11857. 'MM': [number + ' mesen', '' + number + ' mesen'],
  11858. 'y': ['\'n ar', '\'iens ar'],
  11859. 'yy': [number + ' ars', '' + number + ' ars']
  11860. };
  11861. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  11862. }
  11863. //! moment.js locale configuration
  11864. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  11865. //! author : Abdel Said : https://github.com/abdelsaid
  11866. hooks.defineLocale('tzm-latn', {
  11867. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  11868. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  11869. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  11870. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  11871. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  11872. longDateFormat: {
  11873. LT: 'HH:mm',
  11874. LTS: 'HH:mm:ss',
  11875. L: 'DD/MM/YYYY',
  11876. LL: 'D MMMM YYYY',
  11877. LLL: 'D MMMM YYYY HH:mm',
  11878. LLLL: 'dddd D MMMM YYYY HH:mm'
  11879. },
  11880. calendar: {
  11881. sameDay: '[asdkh g] LT',
  11882. nextDay: '[aska g] LT',
  11883. nextWeek: 'dddd [g] LT',
  11884. lastDay: '[assant g] LT',
  11885. lastWeek: 'dddd [g] LT',
  11886. sameElse: 'L'
  11887. },
  11888. relativeTime: {
  11889. future: 'dadkh s yan %s',
  11890. past: 'yan %s',
  11891. s: 'imik',
  11892. m: 'minuḍ',
  11893. mm: '%d minuḍ',
  11894. h: 'saɛa',
  11895. hh: '%d tassaɛin',
  11896. d: 'ass',
  11897. dd: '%d ossan',
  11898. M: 'ayowr',
  11899. MM: '%d iyyirn',
  11900. y: 'asgas',
  11901. yy: '%d isgasn'
  11902. },
  11903. week: {
  11904. dow: 6, // Saturday is the first day of the week.
  11905. doy: 12 // The week that contains Jan 1st is the first week of the year.
  11906. }
  11907. });
  11908. //! moment.js locale configuration
  11909. //! locale : Central Atlas Tamazight [tzm]
  11910. //! author : Abdel Said : https://github.com/abdelsaid
  11911. hooks.defineLocale('tzm', {
  11912. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  11913. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  11914. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  11915. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  11916. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  11917. longDateFormat: {
  11918. LT: 'HH:mm',
  11919. LTS: 'HH:mm:ss',
  11920. L: 'DD/MM/YYYY',
  11921. LL: 'D MMMM YYYY',
  11922. LLL: 'D MMMM YYYY HH:mm',
  11923. LLLL: 'dddd D MMMM YYYY HH:mm'
  11924. },
  11925. calendar: {
  11926. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  11927. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  11928. nextWeek: 'dddd [ⴴ] LT',
  11929. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  11930. lastWeek: 'dddd [ⴴ] LT',
  11931. sameElse: 'L'
  11932. },
  11933. relativeTime: {
  11934. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  11935. past: 'ⵢⴰⵏ %s',
  11936. s: 'ⵉⵎⵉⴽ',
  11937. m: 'ⵎⵉⵏⵓⴺ',
  11938. mm: '%d ⵎⵉⵏⵓⴺ',
  11939. h: 'ⵙⴰⵄⴰ',
  11940. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  11941. d: 'ⴰⵙⵙ',
  11942. dd: '%d oⵙⵙⴰⵏ',
  11943. M: 'ⴰⵢoⵓⵔ',
  11944. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  11945. y: 'ⴰⵙⴳⴰⵙ',
  11946. yy: '%d ⵉⵙⴳⴰⵙⵏ'
  11947. },
  11948. week: {
  11949. dow: 6, // Saturday is the first day of the week.
  11950. doy: 12 // The week that contains Jan 1st is the first week of the year.
  11951. }
  11952. });
  11953. //! moment.js locale configuration
  11954. //! locale : Ukrainian [uk]
  11955. //! author : zemlanin : https://github.com/zemlanin
  11956. //! Author : Menelion Elensúle : https://github.com/Oire
  11957. function plural$6(word, num) {
  11958. var forms = word.split('_');
  11959. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  11960. }
  11961. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  11962. var format = {
  11963. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  11964. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  11965. 'dd': 'день_дні_днів',
  11966. 'MM': 'місяць_місяці_місяців',
  11967. 'yy': 'рік_роки_років'
  11968. };
  11969. if (key === 'm') {
  11970. return withoutSuffix ? 'хвилина' : 'хвилину';
  11971. }
  11972. else if (key === 'h') {
  11973. return withoutSuffix ? 'година' : 'годину';
  11974. }
  11975. else {
  11976. return number + ' ' + plural$6(format[key], +number);
  11977. }
  11978. }
  11979. function weekdaysCaseReplace(m, format) {
  11980. var weekdays = {
  11981. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  11982. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  11983. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  11984. };
  11985. if (!m) {
  11986. return weekdays['nominative'];
  11987. }
  11988. var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  11989. 'accusative' :
  11990. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  11991. 'genitive' :
  11992. 'nominative');
  11993. return weekdays[nounCase][m.day()];
  11994. }
  11995. function processHoursFunction(str) {
  11996. return function () {
  11997. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  11998. };
  11999. }
  12000. hooks.defineLocale('uk', {
  12001. months: {
  12002. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  12003. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  12004. },
  12005. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  12006. weekdays: weekdaysCaseReplace,
  12007. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  12008. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  12009. longDateFormat: {
  12010. LT: 'HH:mm',
  12011. LTS: 'HH:mm:ss',
  12012. L: 'DD.MM.YYYY',
  12013. LL: 'D MMMM YYYY р.',
  12014. LLL: 'D MMMM YYYY р., HH:mm',
  12015. LLLL: 'dddd, D MMMM YYYY р., HH:mm'
  12016. },
  12017. calendar: {
  12018. sameDay: processHoursFunction('[Сьогодні '),
  12019. nextDay: processHoursFunction('[Завтра '),
  12020. lastDay: processHoursFunction('[Вчора '),
  12021. nextWeek: processHoursFunction('[У] dddd ['),
  12022. lastWeek: function () {
  12023. switch (this.day()) {
  12024. case 0:
  12025. case 3:
  12026. case 5:
  12027. case 6:
  12028. return processHoursFunction('[Минулої] dddd [').call(this);
  12029. case 1:
  12030. case 2:
  12031. case 4:
  12032. return processHoursFunction('[Минулого] dddd [').call(this);
  12033. }
  12034. },
  12035. sameElse: 'L'
  12036. },
  12037. relativeTime: {
  12038. future: 'за %s',
  12039. past: '%s тому',
  12040. s: 'декілька секунд',
  12041. m: relativeTimeWithPlural$4,
  12042. mm: relativeTimeWithPlural$4,
  12043. h: 'годину',
  12044. hh: relativeTimeWithPlural$4,
  12045. d: 'день',
  12046. dd: relativeTimeWithPlural$4,
  12047. M: 'місяць',
  12048. MM: relativeTimeWithPlural$4,
  12049. y: 'рік',
  12050. yy: relativeTimeWithPlural$4
  12051. },
  12052. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  12053. meridiemParse: /ночі|ранку|дня|вечора/,
  12054. isPM: function (input) {
  12055. return /^(дня|вечора)$/.test(input);
  12056. },
  12057. meridiem: function (hour, minute, isLower) {
  12058. if (hour < 4) {
  12059. return 'ночі';
  12060. } else if (hour < 12) {
  12061. return 'ранку';
  12062. } else if (hour < 17) {
  12063. return 'дня';
  12064. } else {
  12065. return 'вечора';
  12066. }
  12067. },
  12068. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  12069. ordinal: function (number, period) {
  12070. switch (period) {
  12071. case 'M':
  12072. case 'd':
  12073. case 'DDD':
  12074. case 'w':
  12075. case 'W':
  12076. return number + '-й';
  12077. case 'D':
  12078. return number + '-го';
  12079. default:
  12080. return number;
  12081. }
  12082. },
  12083. week: {
  12084. dow: 1, // Monday is the first day of the week.
  12085. doy: 7 // The week that contains Jan 1st is the first week of the year.
  12086. }
  12087. });
  12088. //! moment.js locale configuration
  12089. //! locale : Urdu [ur]
  12090. //! author : Sawood Alam : https://github.com/ibnesayeed
  12091. //! author : Zack : https://github.com/ZackVision
  12092. var months$8 = [
  12093. 'جنوری',
  12094. 'فروری',
  12095. 'مارچ',
  12096. 'اپریل',
  12097. 'مئی',
  12098. 'جون',
  12099. 'جولائی',
  12100. 'اگست',
  12101. 'ستمبر',
  12102. 'اکتوبر',
  12103. 'نومبر',
  12104. 'دسمبر'
  12105. ];
  12106. var days$2 = [
  12107. 'اتوار',
  12108. 'پیر',
  12109. 'منگل',
  12110. 'بدھ',
  12111. 'جمعرات',
  12112. 'جمعہ',
  12113. 'ہفتہ'
  12114. ];
  12115. hooks.defineLocale('ur', {
  12116. months: months$8,
  12117. monthsShort: months$8,
  12118. weekdays: days$2,
  12119. weekdaysShort: days$2,
  12120. weekdaysMin: days$2,
  12121. longDateFormat: {
  12122. LT: 'HH:mm',
  12123. LTS: 'HH:mm:ss',
  12124. L: 'DD/MM/YYYY',
  12125. LL: 'D MMMM YYYY',
  12126. LLL: 'D MMMM YYYY HH:mm',
  12127. LLLL: 'dddd، D MMMM YYYY HH:mm'
  12128. },
  12129. meridiemParse: /صبح|شام/,
  12130. isPM: function (input) {
  12131. return 'شام' === input;
  12132. },
  12133. meridiem: function (hour, minute, isLower) {
  12134. if (hour < 12) {
  12135. return 'صبح';
  12136. }
  12137. return 'شام';
  12138. },
  12139. calendar: {
  12140. sameDay: '[آج بوقت] LT',
  12141. nextDay: '[کل بوقت] LT',
  12142. nextWeek: 'dddd [بوقت] LT',
  12143. lastDay: '[گذشتہ روز بوقت] LT',
  12144. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  12145. sameElse: 'L'
  12146. },
  12147. relativeTime: {
  12148. future: '%s بعد',
  12149. past: '%s قبل',
  12150. s: 'چند سیکنڈ',
  12151. m: 'ایک منٹ',
  12152. mm: '%d منٹ',
  12153. h: 'ایک گھنٹہ',
  12154. hh: '%d گھنٹے',
  12155. d: 'ایک دن',
  12156. dd: '%d دن',
  12157. M: 'ایک ماہ',
  12158. MM: '%d ماہ',
  12159. y: 'ایک سال',
  12160. yy: '%d سال'
  12161. },
  12162. preparse: function (string) {
  12163. return string.replace(/،/g, ',');
  12164. },
  12165. postformat: function (string) {
  12166. return string.replace(/,/g, '،');
  12167. },
  12168. week: {
  12169. dow: 1, // Monday is the first day of the week.
  12170. doy: 4 // The week that contains Jan 4th is the first week of the year.
  12171. }
  12172. });
  12173. //! moment.js locale configuration
  12174. //! locale : Uzbek Latin [uz-latn]
  12175. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  12176. hooks.defineLocale('uz-latn', {
  12177. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  12178. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  12179. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  12180. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  12181. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  12182. longDateFormat: {
  12183. LT: 'HH:mm',
  12184. LTS: 'HH:mm:ss',
  12185. L: 'DD/MM/YYYY',
  12186. LL: 'D MMMM YYYY',
  12187. LLL: 'D MMMM YYYY HH:mm',
  12188. LLLL: 'D MMMM YYYY, dddd HH:mm'
  12189. },
  12190. calendar: {
  12191. sameDay: '[Bugun soat] LT [da]',
  12192. nextDay: '[Ertaga] LT [da]',
  12193. nextWeek: 'dddd [kuni soat] LT [da]',
  12194. lastDay: '[Kecha soat] LT [da]',
  12195. lastWeek: '[O\'tgan] dddd [kuni soat] LT [da]',
  12196. sameElse: 'L'
  12197. },
  12198. relativeTime: {
  12199. future: 'Yaqin %s ichida',
  12200. past: 'Bir necha %s oldin',
  12201. s: 'soniya',
  12202. m: 'bir daqiqa',
  12203. mm: '%d daqiqa',
  12204. h: 'bir soat',
  12205. hh: '%d soat',
  12206. d: 'bir kun',
  12207. dd: '%d kun',
  12208. M: 'bir oy',
  12209. MM: '%d oy',
  12210. y: 'bir yil',
  12211. yy: '%d yil'
  12212. },
  12213. week: {
  12214. dow: 1, // Monday is the first day of the week.
  12215. doy: 7 // The week that contains Jan 1st is the first week of the year.
  12216. }
  12217. });
  12218. //! moment.js locale configuration
  12219. //! locale : Uzbek [uz]
  12220. //! author : Sardor Muminov : https://github.com/muminoff
  12221. hooks.defineLocale('uz', {
  12222. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  12223. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  12224. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  12225. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  12226. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  12227. longDateFormat: {
  12228. LT: 'HH:mm',
  12229. LTS: 'HH:mm:ss',
  12230. L: 'DD/MM/YYYY',
  12231. LL: 'D MMMM YYYY',
  12232. LLL: 'D MMMM YYYY HH:mm',
  12233. LLLL: 'D MMMM YYYY, dddd HH:mm'
  12234. },
  12235. calendar: {
  12236. sameDay: '[Бугун соат] LT [да]',
  12237. nextDay: '[Эртага] LT [да]',
  12238. nextWeek: 'dddd [куни соат] LT [да]',
  12239. lastDay: '[Кеча соат] LT [да]',
  12240. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  12241. sameElse: 'L'
  12242. },
  12243. relativeTime: {
  12244. future: 'Якин %s ичида',
  12245. past: 'Бир неча %s олдин',
  12246. s: 'фурсат',
  12247. m: 'бир дакика',
  12248. mm: '%d дакика',
  12249. h: 'бир соат',
  12250. hh: '%d соат',
  12251. d: 'бир кун',
  12252. dd: '%d кун',
  12253. M: 'бир ой',
  12254. MM: '%d ой',
  12255. y: 'бир йил',
  12256. yy: '%d йил'
  12257. },
  12258. week: {
  12259. dow: 1, // Monday is the first day of the week.
  12260. doy: 7 // The week that contains Jan 4th is the first week of the year.
  12261. }
  12262. });
  12263. //! moment.js locale configuration
  12264. //! locale : Vietnamese [vi]
  12265. //! author : Bang Nguyen : https://github.com/bangnk
  12266. hooks.defineLocale('vi', {
  12267. 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('_'),
  12268. monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  12269. monthsParseExact: true,
  12270. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  12271. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  12272. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  12273. weekdaysParseExact: true,
  12274. meridiemParse: /sa|ch/i,
  12275. isPM: function (input) {
  12276. return /^ch$/i.test(input);
  12277. },
  12278. meridiem: function (hours, minutes, isLower) {
  12279. if (hours < 12) {
  12280. return isLower ? 'sa' : 'SA';
  12281. } else {
  12282. return isLower ? 'ch' : 'CH';
  12283. }
  12284. },
  12285. longDateFormat: {
  12286. LT: 'HH:mm',
  12287. LTS: 'HH:mm:ss',
  12288. L: 'DD/MM/YYYY',
  12289. LL: 'D MMMM [năm] YYYY',
  12290. LLL: 'D MMMM [năm] YYYY HH:mm',
  12291. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  12292. l: 'DD/M/YYYY',
  12293. ll: 'D MMM YYYY',
  12294. lll: 'D MMM YYYY HH:mm',
  12295. llll: 'ddd, D MMM YYYY HH:mm'
  12296. },
  12297. calendar: {
  12298. sameDay: '[Hôm nay lúc] LT',
  12299. nextDay: '[Ngày mai lúc] LT',
  12300. nextWeek: 'dddd [tuần tới lúc] LT',
  12301. lastDay: '[Hôm qua lúc] LT',
  12302. lastWeek: 'dddd [tuần rồi lúc] LT',
  12303. sameElse: 'L'
  12304. },
  12305. relativeTime: {
  12306. future: '%s tới',
  12307. past: '%s trước',
  12308. s: 'vài giây',
  12309. m: 'một phút',
  12310. mm: '%d phút',
  12311. h: 'một giờ',
  12312. hh: '%d giờ',
  12313. d: 'một ngày',
  12314. dd: '%d ngày',
  12315. M: 'một tháng',
  12316. MM: '%d tháng',
  12317. y: 'một năm',
  12318. yy: '%d năm'
  12319. },
  12320. dayOfMonthOrdinalParse: /\d{1,2}/,
  12321. ordinal: function (number) {
  12322. return number;
  12323. },
  12324. week: {
  12325. dow: 1, // Monday is the first day of the week.
  12326. doy: 4 // The week that contains Jan 4th is the first week of the year.
  12327. }
  12328. });
  12329. //! moment.js locale configuration
  12330. //! locale : Pseudo [x-pseudo]
  12331. //! author : Andrew Hood : https://github.com/andrewhood125
  12332. hooks.defineLocale('x-pseudo', {
  12333. 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('_'),
  12334. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  12335. monthsParseExact: true,
  12336. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  12337. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  12338. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  12339. weekdaysParseExact: true,
  12340. longDateFormat: {
  12341. LT: 'HH:mm',
  12342. L: 'DD/MM/YYYY',
  12343. LL: 'D MMMM YYYY',
  12344. LLL: 'D MMMM YYYY HH:mm',
  12345. LLLL: 'dddd, D MMMM YYYY HH:mm'
  12346. },
  12347. calendar: {
  12348. sameDay: '[T~ódá~ý át] LT',
  12349. nextDay: '[T~ómó~rró~w át] LT',
  12350. nextWeek: 'dddd [át] LT',
  12351. lastDay: '[Ý~ést~érdá~ý át] LT',
  12352. lastWeek: '[L~ást] dddd [át] LT',
  12353. sameElse: 'L'
  12354. },
  12355. relativeTime: {
  12356. future: 'í~ñ %s',
  12357. past: '%s á~gó',
  12358. s: 'á ~féw ~sécó~ñds',
  12359. m: 'á ~míñ~úté',
  12360. mm: '%d m~íñú~tés',
  12361. h: 'á~ñ hó~úr',
  12362. hh: '%d h~óúrs',
  12363. d: 'á ~dáý',
  12364. dd: '%d d~áýs',
  12365. M: 'á ~móñ~th',
  12366. MM: '%d m~óñt~hs',
  12367. y: 'á ~ýéár',
  12368. yy: '%d ý~éárs'
  12369. },
  12370. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  12371. ordinal: function (number) {
  12372. var b = number % 10,
  12373. output = (~~(number % 100 / 10) === 1) ? 'th' :
  12374. (b === 1) ? 'st' :
  12375. (b === 2) ? 'nd' :
  12376. (b === 3) ? 'rd' : 'th';
  12377. return number + output;
  12378. },
  12379. week: {
  12380. dow: 1, // Monday is the first day of the week.
  12381. doy: 4 // The week that contains Jan 4th is the first week of the year.
  12382. }
  12383. });
  12384. //! moment.js locale configuration
  12385. //! locale : Yoruba Nigeria [yo]
  12386. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  12387. hooks.defineLocale('yo', {
  12388. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  12389. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  12390. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  12391. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  12392. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  12393. longDateFormat: {
  12394. LT: 'h:mm A',
  12395. LTS: 'h:mm:ss A',
  12396. L: 'DD/MM/YYYY',
  12397. LL: 'D MMMM YYYY',
  12398. LLL: 'D MMMM YYYY h:mm A',
  12399. LLLL: 'dddd, D MMMM YYYY h:mm A'
  12400. },
  12401. calendar: {
  12402. sameDay: '[Ònì ni] LT',
  12403. nextDay: '[Ọ̀la ni] LT',
  12404. nextWeek: 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
  12405. lastDay: '[Àna ni] LT',
  12406. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  12407. sameElse: 'L'
  12408. },
  12409. relativeTime: {
  12410. future: 'ní %s',
  12411. past: '%s kọjá',
  12412. s: 'ìsẹjú aayá die',
  12413. m: 'ìsẹjú kan',
  12414. mm: 'ìsẹjú %d',
  12415. h: 'wákati kan',
  12416. hh: 'wákati %d',
  12417. d: 'ọjọ́ kan',
  12418. dd: 'ọjọ́ %d',
  12419. M: 'osù kan',
  12420. MM: 'osù %d',
  12421. y: 'ọdún kan',
  12422. yy: 'ọdún %d'
  12423. },
  12424. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  12425. ordinal: 'ọjọ́ %d',
  12426. week: {
  12427. dow: 1, // Monday is the first day of the week.
  12428. doy: 4 // The week that contains Jan 4th is the first week of the year.
  12429. }
  12430. });
  12431. //! moment.js locale configuration
  12432. //! locale : Chinese (China) [zh-cn]
  12433. //! author : suupic : https://github.com/suupic
  12434. //! author : Zeno Zeng : https://github.com/zenozeng
  12435. hooks.defineLocale('zh-cn', {
  12436. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12437. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12438. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12439. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  12440. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  12441. longDateFormat: {
  12442. LT: 'HH:mm',
  12443. LTS: 'HH:mm:ss',
  12444. L: 'YYYY年MMMD日',
  12445. LL: 'YYYY年MMMD日',
  12446. LLL: 'YYYY年MMMD日Ah点mm分',
  12447. LLLL: 'YYYY年MMMD日ddddAh点mm分',
  12448. l: 'YYYY年MMMD日',
  12449. ll: 'YYYY年MMMD日',
  12450. lll: 'YYYY年MMMD日 HH:mm',
  12451. llll: 'YYYY年MMMD日dddd HH:mm'
  12452. },
  12453. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12454. meridiemHour: function (hour, meridiem) {
  12455. if (hour === 12) {
  12456. hour = 0;
  12457. }
  12458. if (meridiem === '凌晨' || meridiem === '早上' ||
  12459. meridiem === '上午') {
  12460. return hour;
  12461. } else if (meridiem === '下午' || meridiem === '晚上') {
  12462. return hour + 12;
  12463. } else {
  12464. // '中午'
  12465. return hour >= 11 ? hour : hour + 12;
  12466. }
  12467. },
  12468. meridiem: function (hour, minute, isLower) {
  12469. var hm = hour * 100 + minute;
  12470. if (hm < 600) {
  12471. return '凌晨';
  12472. } else if (hm < 900) {
  12473. return '早上';
  12474. } else if (hm < 1130) {
  12475. return '上午';
  12476. } else if (hm < 1230) {
  12477. return '中午';
  12478. } else if (hm < 1800) {
  12479. return '下午';
  12480. } else {
  12481. return '晚上';
  12482. }
  12483. },
  12484. calendar: {
  12485. sameDay: '[今天]LT',
  12486. nextDay: '[明天]LT',
  12487. nextWeek: '[下]ddddLT',
  12488. lastDay: '[昨天]LT',
  12489. lastWeek: '[上]ddddLT',
  12490. sameElse: 'L'
  12491. },
  12492. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  12493. ordinal: function (number, period) {
  12494. switch (period) {
  12495. case 'd':
  12496. case 'D':
  12497. case 'DDD':
  12498. return number + '日';
  12499. case 'M':
  12500. return number + '月';
  12501. case 'w':
  12502. case 'W':
  12503. return number + '周';
  12504. default:
  12505. return number;
  12506. }
  12507. },
  12508. relativeTime: {
  12509. future: '%s内',
  12510. past: '%s前',
  12511. s: '几秒',
  12512. m: '1 分钟',
  12513. mm: '%d 分钟',
  12514. h: '1 小时',
  12515. hh: '%d 小时',
  12516. d: '1 天',
  12517. dd: '%d 天',
  12518. M: '1 个月',
  12519. MM: '%d 个月',
  12520. y: '1 年',
  12521. yy: '%d 年'
  12522. },
  12523. week: {
  12524. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  12525. dow: 1, // Monday is the first day of the week.
  12526. doy: 4 // The week that contains Jan 4th is the first week of the year.
  12527. }
  12528. });
  12529. //! moment.js locale configuration
  12530. //! locale : Chinese (Hong Kong) [zh-hk]
  12531. //! author : Ben : https://github.com/ben-lin
  12532. //! author : Chris Lam : https://github.com/hehachris
  12533. //! author : Konstantin : https://github.com/skfd
  12534. hooks.defineLocale('zh-hk', {
  12535. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12536. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12537. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12538. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  12539. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  12540. longDateFormat: {
  12541. LT: 'HH:mm',
  12542. LTS: 'HH:mm:ss',
  12543. L: 'YYYY年MMMD日',
  12544. LL: 'YYYY年MMMD日',
  12545. LLL: 'YYYY年MMMD日 HH:mm',
  12546. LLLL: 'YYYY年MMMD日dddd HH:mm',
  12547. l: 'YYYY年MMMD日',
  12548. ll: 'YYYY年MMMD日',
  12549. lll: 'YYYY年MMMD日 HH:mm',
  12550. llll: 'YYYY年MMMD日dddd HH:mm'
  12551. },
  12552. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12553. meridiemHour: function (hour, meridiem) {
  12554. if (hour === 12) {
  12555. hour = 0;
  12556. }
  12557. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  12558. return hour;
  12559. } else if (meridiem === '中午') {
  12560. return hour >= 11 ? hour : hour + 12;
  12561. } else if (meridiem === '下午' || meridiem === '晚上') {
  12562. return hour + 12;
  12563. }
  12564. },
  12565. meridiem: function (hour, minute, isLower) {
  12566. var hm = hour * 100 + minute;
  12567. if (hm < 600) {
  12568. return '凌晨';
  12569. } else if (hm < 900) {
  12570. return '早上';
  12571. } else if (hm < 1130) {
  12572. return '上午';
  12573. } else if (hm < 1230) {
  12574. return '中午';
  12575. } else if (hm < 1800) {
  12576. return '下午';
  12577. } else {
  12578. return '晚上';
  12579. }
  12580. },
  12581. calendar: {
  12582. sameDay: '[今天]LT',
  12583. nextDay: '[明天]LT',
  12584. nextWeek: '[下]ddddLT',
  12585. lastDay: '[昨天]LT',
  12586. lastWeek: '[上]ddddLT',
  12587. sameElse: 'L'
  12588. },
  12589. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  12590. ordinal: function (number, period) {
  12591. switch (period) {
  12592. case 'd' :
  12593. case 'D' :
  12594. case 'DDD' :
  12595. return number + '日';
  12596. case 'M' :
  12597. return number + '月';
  12598. case 'w' :
  12599. case 'W' :
  12600. return number + '週';
  12601. default :
  12602. return number;
  12603. }
  12604. },
  12605. relativeTime: {
  12606. future: '%s內',
  12607. past: '%s前',
  12608. s: '幾秒',
  12609. m: '1 分鐘',
  12610. mm: '%d 分鐘',
  12611. h: '1 小時',
  12612. hh: '%d 小時',
  12613. d: '1 天',
  12614. dd: '%d 天',
  12615. M: '1 個月',
  12616. MM: '%d 個月',
  12617. y: '1 年',
  12618. yy: '%d 年'
  12619. }
  12620. });
  12621. //! moment.js locale configuration
  12622. //! locale : Chinese (Taiwan) [zh-tw]
  12623. //! author : Ben : https://github.com/ben-lin
  12624. //! author : Chris Lam : https://github.com/hehachris
  12625. hooks.defineLocale('zh-tw', {
  12626. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12627. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12628. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12629. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  12630. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  12631. longDateFormat: {
  12632. LT: 'HH:mm',
  12633. LTS: 'HH:mm:ss',
  12634. L: 'YYYY年MMMD日',
  12635. LL: 'YYYY年MMMD日',
  12636. LLL: 'YYYY年MMMD日 HH:mm',
  12637. LLLL: 'YYYY年MMMD日dddd HH:mm',
  12638. l: 'YYYY年MMMD日',
  12639. ll: 'YYYY年MMMD日',
  12640. lll: 'YYYY年MMMD日 HH:mm',
  12641. llll: 'YYYY年MMMD日dddd HH:mm'
  12642. },
  12643. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12644. meridiemHour: function (hour, meridiem) {
  12645. if (hour === 12) {
  12646. hour = 0;
  12647. }
  12648. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  12649. return hour;
  12650. } else if (meridiem === '中午') {
  12651. return hour >= 11 ? hour : hour + 12;
  12652. } else if (meridiem === '下午' || meridiem === '晚上') {
  12653. return hour + 12;
  12654. }
  12655. },
  12656. meridiem: function (hour, minute, isLower) {
  12657. var hm = hour * 100 + minute;
  12658. if (hm < 600) {
  12659. return '凌晨';
  12660. } else if (hm < 900) {
  12661. return '早上';
  12662. } else if (hm < 1130) {
  12663. return '上午';
  12664. } else if (hm < 1230) {
  12665. return '中午';
  12666. } else if (hm < 1800) {
  12667. return '下午';
  12668. } else {
  12669. return '晚上';
  12670. }
  12671. },
  12672. calendar: {
  12673. sameDay: '[今天]LT',
  12674. nextDay: '[明天]LT',
  12675. nextWeek: '[下]ddddLT',
  12676. lastDay: '[昨天]LT',
  12677. lastWeek: '[上]ddddLT',
  12678. sameElse: 'L'
  12679. },
  12680. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  12681. ordinal: function (number, period) {
  12682. switch (period) {
  12683. case 'd' :
  12684. case 'D' :
  12685. case 'DDD' :
  12686. return number + '日';
  12687. case 'M' :
  12688. return number + '月';
  12689. case 'w' :
  12690. case 'W' :
  12691. return number + '週';
  12692. default :
  12693. return number;
  12694. }
  12695. },
  12696. relativeTime: {
  12697. future: '%s內',
  12698. past: '%s前',
  12699. s: '幾秒',
  12700. m: '1 分鐘',
  12701. mm: '%d 分鐘',
  12702. h: '1 小時',
  12703. hh: '%d 小時',
  12704. d: '1 天',
  12705. dd: '%d 天',
  12706. M: '1 個月',
  12707. MM: '%d 個月',
  12708. y: '1 年',
  12709. yy: '%d 年'
  12710. }
  12711. });
  12712. hooks.locale('en');
  12713. return hooks;
  12714. })));