moment-with-locales.js 453 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036
  1. ;(function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. global.moment = factory()
  5. }(this, (function () { 'use strict';
  6. var hookCallback;
  7. function hooks () {
  8. return hookCallback.apply(null, arguments);
  9. }
  10. // This is done to register the method called with moment()
  11. // without creating circular dependencies.
  12. function setHookCallback (callback) {
  13. hookCallback = callback;
  14. }
  15. function isArray(input) {
  16. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  17. }
  18. function isObject(input) {
  19. // IE8 will treat undefined and null as object if it wasn't for
  20. // input != null
  21. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  22. }
  23. function isObjectEmpty(obj) {
  24. if (Object.getOwnPropertyNames) {
  25. return (Object.getOwnPropertyNames(obj).length === 0);
  26. } else {
  27. var k;
  28. for (k in obj) {
  29. if (obj.hasOwnProperty(k)) {
  30. return false;
  31. }
  32. }
  33. return true;
  34. }
  35. }
  36. function isUndefined(input) {
  37. return input === void 0;
  38. }
  39. function isNumber(input) {
  40. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  41. }
  42. function isDate(input) {
  43. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  44. }
  45. function map(arr, fn) {
  46. var res = [], i;
  47. for (i = 0; i < arr.length; ++i) {
  48. res.push(fn(arr[i], i));
  49. }
  50. return res;
  51. }
  52. function hasOwnProp(a, b) {
  53. return Object.prototype.hasOwnProperty.call(a, b);
  54. }
  55. function extend(a, b) {
  56. for (var i in b) {
  57. if (hasOwnProp(b, i)) {
  58. a[i] = b[i];
  59. }
  60. }
  61. if (hasOwnProp(b, 'toString')) {
  62. a.toString = b.toString;
  63. }
  64. if (hasOwnProp(b, 'valueOf')) {
  65. a.valueOf = b.valueOf;
  66. }
  67. return a;
  68. }
  69. function createUTC (input, format, locale, strict) {
  70. return createLocalOrUTC(input, format, locale, strict, true).utc();
  71. }
  72. function defaultParsingFlags() {
  73. // We need to deep clone this object.
  74. return {
  75. empty : false,
  76. unusedTokens : [],
  77. unusedInput : [],
  78. overflow : -2,
  79. charsLeftOver : 0,
  80. nullInput : false,
  81. invalidMonth : null,
  82. invalidFormat : false,
  83. userInvalidated : false,
  84. iso : false,
  85. parsedDateParts : [],
  86. meridiem : null,
  87. rfc2822 : false,
  88. weekdayMismatch : false
  89. };
  90. }
  91. function getParsingFlags(m) {
  92. if (m._pf == null) {
  93. m._pf = defaultParsingFlags();
  94. }
  95. return m._pf;
  96. }
  97. var some;
  98. if (Array.prototype.some) {
  99. some = Array.prototype.some;
  100. } else {
  101. some = function (fun) {
  102. var t = Object(this);
  103. var len = t.length >>> 0;
  104. for (var i = 0; i < len; i++) {
  105. if (i in t && fun.call(this, t[i], i, t)) {
  106. return true;
  107. }
  108. }
  109. return false;
  110. };
  111. }
  112. function isValid(m) {
  113. if (m._isValid == null) {
  114. var flags = getParsingFlags(m);
  115. var parsedParts = some.call(flags.parsedDateParts, function (i) {
  116. return i != null;
  117. });
  118. var isNowValid = !isNaN(m._d.getTime()) &&
  119. flags.overflow < 0 &&
  120. !flags.empty &&
  121. !flags.invalidMonth &&
  122. !flags.invalidWeekday &&
  123. !flags.weekdayMismatch &&
  124. !flags.nullInput &&
  125. !flags.invalidFormat &&
  126. !flags.userInvalidated &&
  127. (!flags.meridiem || (flags.meridiem && parsedParts));
  128. if (m._strict) {
  129. isNowValid = isNowValid &&
  130. flags.charsLeftOver === 0 &&
  131. flags.unusedTokens.length === 0 &&
  132. flags.bigHour === undefined;
  133. }
  134. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  135. m._isValid = isNowValid;
  136. }
  137. else {
  138. return isNowValid;
  139. }
  140. }
  141. return m._isValid;
  142. }
  143. function createInvalid (flags) {
  144. var m = createUTC(NaN);
  145. if (flags != null) {
  146. extend(getParsingFlags(m), flags);
  147. }
  148. else {
  149. getParsingFlags(m).userInvalidated = true;
  150. }
  151. return m;
  152. }
  153. // Plugins that add properties should also add the key here (null value),
  154. // so we can properly clone ourselves.
  155. var momentProperties = hooks.momentProperties = [];
  156. function copyConfig(to, from) {
  157. var i, prop, val;
  158. if (!isUndefined(from._isAMomentObject)) {
  159. to._isAMomentObject = from._isAMomentObject;
  160. }
  161. if (!isUndefined(from._i)) {
  162. to._i = from._i;
  163. }
  164. if (!isUndefined(from._f)) {
  165. to._f = from._f;
  166. }
  167. if (!isUndefined(from._l)) {
  168. to._l = from._l;
  169. }
  170. if (!isUndefined(from._strict)) {
  171. to._strict = from._strict;
  172. }
  173. if (!isUndefined(from._tzm)) {
  174. to._tzm = from._tzm;
  175. }
  176. if (!isUndefined(from._isUTC)) {
  177. to._isUTC = from._isUTC;
  178. }
  179. if (!isUndefined(from._offset)) {
  180. to._offset = from._offset;
  181. }
  182. if (!isUndefined(from._pf)) {
  183. to._pf = getParsingFlags(from);
  184. }
  185. if (!isUndefined(from._locale)) {
  186. to._locale = from._locale;
  187. }
  188. if (momentProperties.length > 0) {
  189. for (i = 0; i < momentProperties.length; i++) {
  190. prop = momentProperties[i];
  191. val = from[prop];
  192. if (!isUndefined(val)) {
  193. to[prop] = val;
  194. }
  195. }
  196. }
  197. return to;
  198. }
  199. var updateInProgress = false;
  200. // Moment prototype object
  201. function Moment(config) {
  202. copyConfig(this, config);
  203. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  204. if (!this.isValid()) {
  205. this._d = new Date(NaN);
  206. }
  207. // Prevent infinite loop in case updateOffset creates new moment
  208. // objects.
  209. if (updateInProgress === false) {
  210. updateInProgress = true;
  211. hooks.updateOffset(this);
  212. updateInProgress = false;
  213. }
  214. }
  215. function isMoment (obj) {
  216. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  217. }
  218. function absFloor (number) {
  219. if (number < 0) {
  220. // -0 -> 0
  221. return Math.ceil(number) || 0;
  222. } else {
  223. return Math.floor(number);
  224. }
  225. }
  226. function toInt(argumentForCoercion) {
  227. var coercedNumber = +argumentForCoercion,
  228. value = 0;
  229. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  230. value = absFloor(coercedNumber);
  231. }
  232. return value;
  233. }
  234. // compare two arrays, return the number of differences
  235. function compareArrays(array1, array2, dontConvert) {
  236. var len = Math.min(array1.length, array2.length),
  237. lengthDiff = Math.abs(array1.length - array2.length),
  238. diffs = 0,
  239. i;
  240. for (i = 0; i < len; i++) {
  241. if ((dontConvert && array1[i] !== array2[i]) ||
  242. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  243. diffs++;
  244. }
  245. }
  246. return diffs + lengthDiff;
  247. }
  248. function warn(msg) {
  249. if (hooks.suppressDeprecationWarnings === false &&
  250. (typeof console !== 'undefined') && console.warn) {
  251. console.warn('Deprecation warning: ' + msg);
  252. }
  253. }
  254. function deprecate(msg, fn) {
  255. var firstTime = true;
  256. return extend(function () {
  257. if (hooks.deprecationHandler != null) {
  258. hooks.deprecationHandler(null, msg);
  259. }
  260. if (firstTime) {
  261. var args = [];
  262. var arg;
  263. for (var i = 0; i < arguments.length; i++) {
  264. arg = '';
  265. if (typeof arguments[i] === 'object') {
  266. arg += '\n[' + i + '] ';
  267. for (var key in arguments[0]) {
  268. arg += key + ': ' + arguments[0][key] + ', ';
  269. }
  270. arg = arg.slice(0, -2); // Remove trailing comma and space
  271. } else {
  272. arg = arguments[i];
  273. }
  274. args.push(arg);
  275. }
  276. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
  277. firstTime = false;
  278. }
  279. return fn.apply(this, arguments);
  280. }, fn);
  281. }
  282. var deprecations = {};
  283. function deprecateSimple(name, msg) {
  284. if (hooks.deprecationHandler != null) {
  285. hooks.deprecationHandler(name, msg);
  286. }
  287. if (!deprecations[name]) {
  288. warn(msg);
  289. deprecations[name] = true;
  290. }
  291. }
  292. hooks.suppressDeprecationWarnings = false;
  293. hooks.deprecationHandler = null;
  294. function isFunction(input) {
  295. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  296. }
  297. function set (config) {
  298. var prop, i;
  299. for (i in config) {
  300. prop = config[i];
  301. if (isFunction(prop)) {
  302. this[i] = prop;
  303. } else {
  304. this['_' + i] = prop;
  305. }
  306. }
  307. this._config = config;
  308. // Lenient ordinal parsing accepts just a number in addition to
  309. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  310. // TODO: Remove "ordinalParse" fallback in next major release.
  311. this._dayOfMonthOrdinalParseLenient = new RegExp(
  312. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  313. '|' + (/\d{1,2}/).source);
  314. }
  315. function mergeConfigs(parentConfig, childConfig) {
  316. var res = extend({}, parentConfig), prop;
  317. for (prop in childConfig) {
  318. if (hasOwnProp(childConfig, prop)) {
  319. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  320. res[prop] = {};
  321. extend(res[prop], parentConfig[prop]);
  322. extend(res[prop], childConfig[prop]);
  323. } else if (childConfig[prop] != null) {
  324. res[prop] = childConfig[prop];
  325. } else {
  326. delete res[prop];
  327. }
  328. }
  329. }
  330. for (prop in parentConfig) {
  331. if (hasOwnProp(parentConfig, prop) &&
  332. !hasOwnProp(childConfig, prop) &&
  333. isObject(parentConfig[prop])) {
  334. // make sure changes to properties don't modify parent config
  335. res[prop] = extend({}, res[prop]);
  336. }
  337. }
  338. return res;
  339. }
  340. function Locale(config) {
  341. if (config != null) {
  342. this.set(config);
  343. }
  344. }
  345. var keys;
  346. if (Object.keys) {
  347. keys = Object.keys;
  348. } else {
  349. keys = function (obj) {
  350. var i, res = [];
  351. for (i in obj) {
  352. if (hasOwnProp(obj, i)) {
  353. res.push(i);
  354. }
  355. }
  356. return res;
  357. };
  358. }
  359. var defaultCalendar = {
  360. sameDay : '[Today at] LT',
  361. nextDay : '[Tomorrow at] LT',
  362. nextWeek : 'dddd [at] LT',
  363. lastDay : '[Yesterday at] LT',
  364. lastWeek : '[Last] dddd [at] LT',
  365. sameElse : 'L'
  366. };
  367. function calendar (key, mom, now) {
  368. var output = this._calendar[key] || this._calendar['sameElse'];
  369. return isFunction(output) ? output.call(mom, now) : output;
  370. }
  371. var defaultLongDateFormat = {
  372. LTS : 'h:mm:ss A',
  373. LT : 'h:mm A',
  374. L : 'MM/DD/YYYY',
  375. LL : 'MMMM D, YYYY',
  376. LLL : 'MMMM D, YYYY h:mm A',
  377. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  378. };
  379. function longDateFormat (key) {
  380. var format = this._longDateFormat[key],
  381. formatUpper = this._longDateFormat[key.toUpperCase()];
  382. if (format || !formatUpper) {
  383. return format;
  384. }
  385. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  386. return val.slice(1);
  387. });
  388. return this._longDateFormat[key];
  389. }
  390. var defaultInvalidDate = 'Invalid date';
  391. function invalidDate () {
  392. return this._invalidDate;
  393. }
  394. var defaultOrdinal = '%d';
  395. var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  396. function ordinal (number) {
  397. return this._ordinal.replace('%d', number);
  398. }
  399. var defaultRelativeTime = {
  400. future : 'in %s',
  401. past : '%s ago',
  402. s : 'a few seconds',
  403. ss : '%d seconds',
  404. m : 'a minute',
  405. mm : '%d minutes',
  406. h : 'an hour',
  407. hh : '%d hours',
  408. d : 'a day',
  409. dd : '%d days',
  410. M : 'a month',
  411. MM : '%d months',
  412. y : 'a year',
  413. yy : '%d years'
  414. };
  415. function relativeTime (number, withoutSuffix, string, isFuture) {
  416. var output = this._relativeTime[string];
  417. return (isFunction(output)) ?
  418. output(number, withoutSuffix, string, isFuture) :
  419. output.replace(/%d/i, number);
  420. }
  421. function pastFuture (diff, output) {
  422. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  423. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  424. }
  425. var aliases = {};
  426. function addUnitAlias (unit, shorthand) {
  427. var lowerCase = unit.toLowerCase();
  428. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  429. }
  430. function normalizeUnits(units) {
  431. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  432. }
  433. function normalizeObjectUnits(inputObject) {
  434. var normalizedInput = {},
  435. normalizedProp,
  436. prop;
  437. for (prop in inputObject) {
  438. if (hasOwnProp(inputObject, prop)) {
  439. normalizedProp = normalizeUnits(prop);
  440. if (normalizedProp) {
  441. normalizedInput[normalizedProp] = inputObject[prop];
  442. }
  443. }
  444. }
  445. return normalizedInput;
  446. }
  447. var priorities = {};
  448. function addUnitPriority(unit, priority) {
  449. priorities[unit] = priority;
  450. }
  451. function getPrioritizedUnits(unitsObj) {
  452. var units = [];
  453. for (var u in unitsObj) {
  454. units.push({unit: u, priority: priorities[u]});
  455. }
  456. units.sort(function (a, b) {
  457. return a.priority - b.priority;
  458. });
  459. return units;
  460. }
  461. function zeroFill(number, targetLength, forceSign) {
  462. var absNumber = '' + Math.abs(number),
  463. zerosToFill = targetLength - absNumber.length,
  464. sign = number >= 0;
  465. return (sign ? (forceSign ? '+' : '') : '-') +
  466. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  467. }
  468. 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;
  469. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  470. var formatFunctions = {};
  471. var formatTokenFunctions = {};
  472. // token: 'M'
  473. // padded: ['MM', 2]
  474. // ordinal: 'Mo'
  475. // callback: function () { this.month() + 1 }
  476. function addFormatToken (token, padded, ordinal, callback) {
  477. var func = callback;
  478. if (typeof callback === 'string') {
  479. func = function () {
  480. return this[callback]();
  481. };
  482. }
  483. if (token) {
  484. formatTokenFunctions[token] = func;
  485. }
  486. if (padded) {
  487. formatTokenFunctions[padded[0]] = function () {
  488. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  489. };
  490. }
  491. if (ordinal) {
  492. formatTokenFunctions[ordinal] = function () {
  493. return this.localeData().ordinal(func.apply(this, arguments), token);
  494. };
  495. }
  496. }
  497. function removeFormattingTokens(input) {
  498. if (input.match(/\[[\s\S]/)) {
  499. return input.replace(/^\[|\]$/g, '');
  500. }
  501. return input.replace(/\\/g, '');
  502. }
  503. function makeFormatFunction(format) {
  504. var array = format.match(formattingTokens), i, length;
  505. for (i = 0, length = array.length; i < length; i++) {
  506. if (formatTokenFunctions[array[i]]) {
  507. array[i] = formatTokenFunctions[array[i]];
  508. } else {
  509. array[i] = removeFormattingTokens(array[i]);
  510. }
  511. }
  512. return function (mom) {
  513. var output = '', i;
  514. for (i = 0; i < length; i++) {
  515. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  516. }
  517. return output;
  518. };
  519. }
  520. // format date using native date object
  521. function formatMoment(m, format) {
  522. if (!m.isValid()) {
  523. return m.localeData().invalidDate();
  524. }
  525. format = expandFormat(format, m.localeData());
  526. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  527. return formatFunctions[format](m);
  528. }
  529. function expandFormat(format, locale) {
  530. var i = 5;
  531. function replaceLongDateFormatTokens(input) {
  532. return locale.longDateFormat(input) || input;
  533. }
  534. localFormattingTokens.lastIndex = 0;
  535. while (i >= 0 && localFormattingTokens.test(format)) {
  536. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  537. localFormattingTokens.lastIndex = 0;
  538. i -= 1;
  539. }
  540. return format;
  541. }
  542. var match1 = /\d/; // 0 - 9
  543. var match2 = /\d\d/; // 00 - 99
  544. var match3 = /\d{3}/; // 000 - 999
  545. var match4 = /\d{4}/; // 0000 - 9999
  546. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  547. var match1to2 = /\d\d?/; // 0 - 99
  548. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  549. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  550. var match1to3 = /\d{1,3}/; // 0 - 999
  551. var match1to4 = /\d{1,4}/; // 0 - 9999
  552. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  553. var matchUnsigned = /\d+/; // 0 - inf
  554. var matchSigned = /[+-]?\d+/; // -inf - inf
  555. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  556. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  557. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  558. // any word (or two) characters or numbers including two/three word month in arabic.
  559. // includes scottish gaelic two word and hyphenated months
  560. var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
  561. var regexes = {};
  562. function addRegexToken (token, regex, strictRegex) {
  563. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  564. return (isStrict && strictRegex) ? strictRegex : regex;
  565. };
  566. }
  567. function getParseRegexForToken (token, config) {
  568. if (!hasOwnProp(regexes, token)) {
  569. return new RegExp(unescapeFormat(token));
  570. }
  571. return regexes[token](config._strict, config._locale);
  572. }
  573. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  574. function unescapeFormat(s) {
  575. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  576. return p1 || p2 || p3 || p4;
  577. }));
  578. }
  579. function regexEscape(s) {
  580. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  581. }
  582. var tokens = {};
  583. function addParseToken (token, callback) {
  584. var i, func = callback;
  585. if (typeof token === 'string') {
  586. token = [token];
  587. }
  588. if (isNumber(callback)) {
  589. func = function (input, array) {
  590. array[callback] = toInt(input);
  591. };
  592. }
  593. for (i = 0; i < token.length; i++) {
  594. tokens[token[i]] = func;
  595. }
  596. }
  597. function addWeekParseToken (token, callback) {
  598. addParseToken(token, function (input, array, config, token) {
  599. config._w = config._w || {};
  600. callback(input, config._w, config, token);
  601. });
  602. }
  603. function addTimeToArrayFromToken(token, input, config) {
  604. if (input != null && hasOwnProp(tokens, token)) {
  605. tokens[token](input, config._a, config, token);
  606. }
  607. }
  608. var YEAR = 0;
  609. var MONTH = 1;
  610. var DATE = 2;
  611. var HOUR = 3;
  612. var MINUTE = 4;
  613. var SECOND = 5;
  614. var MILLISECOND = 6;
  615. var WEEK = 7;
  616. var WEEKDAY = 8;
  617. // FORMATTING
  618. addFormatToken('Y', 0, 0, function () {
  619. var y = this.year();
  620. return y <= 9999 ? '' + y : '+' + y;
  621. });
  622. addFormatToken(0, ['YY', 2], 0, function () {
  623. return this.year() % 100;
  624. });
  625. addFormatToken(0, ['YYYY', 4], 0, 'year');
  626. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  627. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  628. // ALIASES
  629. addUnitAlias('year', 'y');
  630. // PRIORITIES
  631. addUnitPriority('year', 1);
  632. // PARSING
  633. addRegexToken('Y', matchSigned);
  634. addRegexToken('YY', match1to2, match2);
  635. addRegexToken('YYYY', match1to4, match4);
  636. addRegexToken('YYYYY', match1to6, match6);
  637. addRegexToken('YYYYYY', match1to6, match6);
  638. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  639. addParseToken('YYYY', function (input, array) {
  640. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  641. });
  642. addParseToken('YY', function (input, array) {
  643. array[YEAR] = hooks.parseTwoDigitYear(input);
  644. });
  645. addParseToken('Y', function (input, array) {
  646. array[YEAR] = parseInt(input, 10);
  647. });
  648. // HELPERS
  649. function daysInYear(year) {
  650. return isLeapYear(year) ? 366 : 365;
  651. }
  652. function isLeapYear(year) {
  653. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  654. }
  655. // HOOKS
  656. hooks.parseTwoDigitYear = function (input) {
  657. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  658. };
  659. // MOMENTS
  660. var getSetYear = makeGetSet('FullYear', true);
  661. function getIsLeapYear () {
  662. return isLeapYear(this.year());
  663. }
  664. function makeGetSet (unit, keepTime) {
  665. return function (value) {
  666. if (value != null) {
  667. set$1(this, unit, value);
  668. hooks.updateOffset(this, keepTime);
  669. return this;
  670. } else {
  671. return get(this, unit);
  672. }
  673. };
  674. }
  675. function get (mom, unit) {
  676. return mom.isValid() ?
  677. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  678. }
  679. function set$1 (mom, unit, value) {
  680. if (mom.isValid() && !isNaN(value)) {
  681. if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
  682. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
  683. }
  684. else {
  685. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  686. }
  687. }
  688. }
  689. // MOMENTS
  690. function stringGet (units) {
  691. units = normalizeUnits(units);
  692. if (isFunction(this[units])) {
  693. return this[units]();
  694. }
  695. return this;
  696. }
  697. function stringSet (units, value) {
  698. if (typeof units === 'object') {
  699. units = normalizeObjectUnits(units);
  700. var prioritized = getPrioritizedUnits(units);
  701. for (var i = 0; i < prioritized.length; i++) {
  702. this[prioritized[i].unit](units[prioritized[i].unit]);
  703. }
  704. } else {
  705. units = normalizeUnits(units);
  706. if (isFunction(this[units])) {
  707. return this[units](value);
  708. }
  709. }
  710. return this;
  711. }
  712. function mod(n, x) {
  713. return ((n % x) + x) % x;
  714. }
  715. var indexOf;
  716. if (Array.prototype.indexOf) {
  717. indexOf = Array.prototype.indexOf;
  718. } else {
  719. indexOf = function (o) {
  720. // I know
  721. var i;
  722. for (i = 0; i < this.length; ++i) {
  723. if (this[i] === o) {
  724. return i;
  725. }
  726. }
  727. return -1;
  728. };
  729. }
  730. function daysInMonth(year, month) {
  731. if (isNaN(year) || isNaN(month)) {
  732. return NaN;
  733. }
  734. var modMonth = mod(month, 12);
  735. year += (month - modMonth) / 12;
  736. return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
  737. }
  738. // FORMATTING
  739. addFormatToken('M', ['MM', 2], 'Mo', function () {
  740. return this.month() + 1;
  741. });
  742. addFormatToken('MMM', 0, 0, function (format) {
  743. return this.localeData().monthsShort(this, format);
  744. });
  745. addFormatToken('MMMM', 0, 0, function (format) {
  746. return this.localeData().months(this, format);
  747. });
  748. // ALIASES
  749. addUnitAlias('month', 'M');
  750. // PRIORITY
  751. addUnitPriority('month', 8);
  752. // PARSING
  753. addRegexToken('M', match1to2);
  754. addRegexToken('MM', match1to2, match2);
  755. addRegexToken('MMM', function (isStrict, locale) {
  756. return locale.monthsShortRegex(isStrict);
  757. });
  758. addRegexToken('MMMM', function (isStrict, locale) {
  759. return locale.monthsRegex(isStrict);
  760. });
  761. addParseToken(['M', 'MM'], function (input, array) {
  762. array[MONTH] = toInt(input) - 1;
  763. });
  764. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  765. var month = config._locale.monthsParse(input, token, config._strict);
  766. // if we didn't find a month name, mark the date as invalid.
  767. if (month != null) {
  768. array[MONTH] = month;
  769. } else {
  770. getParsingFlags(config).invalidMonth = input;
  771. }
  772. });
  773. // LOCALES
  774. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
  775. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  776. function localeMonths (m, format) {
  777. if (!m) {
  778. return isArray(this._months) ? this._months :
  779. this._months['standalone'];
  780. }
  781. return isArray(this._months) ? this._months[m.month()] :
  782. this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  783. }
  784. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  785. function localeMonthsShort (m, format) {
  786. if (!m) {
  787. return isArray(this._monthsShort) ? this._monthsShort :
  788. this._monthsShort['standalone'];
  789. }
  790. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  791. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  792. }
  793. function handleStrictParse(monthName, format, strict) {
  794. var i, ii, mom, llc = monthName.toLocaleLowerCase();
  795. if (!this._monthsParse) {
  796. // this is not used
  797. this._monthsParse = [];
  798. this._longMonthsParse = [];
  799. this._shortMonthsParse = [];
  800. for (i = 0; i < 12; ++i) {
  801. mom = createUTC([2000, i]);
  802. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  803. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  804. }
  805. }
  806. if (strict) {
  807. if (format === 'MMM') {
  808. ii = indexOf.call(this._shortMonthsParse, llc);
  809. return ii !== -1 ? ii : null;
  810. } else {
  811. ii = indexOf.call(this._longMonthsParse, llc);
  812. return ii !== -1 ? ii : null;
  813. }
  814. } else {
  815. if (format === 'MMM') {
  816. ii = indexOf.call(this._shortMonthsParse, llc);
  817. if (ii !== -1) {
  818. return ii;
  819. }
  820. ii = indexOf.call(this._longMonthsParse, llc);
  821. return ii !== -1 ? ii : null;
  822. } else {
  823. ii = indexOf.call(this._longMonthsParse, llc);
  824. if (ii !== -1) {
  825. return ii;
  826. }
  827. ii = indexOf.call(this._shortMonthsParse, llc);
  828. return ii !== -1 ? ii : null;
  829. }
  830. }
  831. }
  832. function localeMonthsParse (monthName, format, strict) {
  833. var i, mom, regex;
  834. if (this._monthsParseExact) {
  835. return handleStrictParse.call(this, monthName, format, strict);
  836. }
  837. if (!this._monthsParse) {
  838. this._monthsParse = [];
  839. this._longMonthsParse = [];
  840. this._shortMonthsParse = [];
  841. }
  842. // TODO: add sorting
  843. // Sorting makes sure if one month (or abbr) is a prefix of another
  844. // see sorting in computeMonthsParse
  845. for (i = 0; i < 12; i++) {
  846. // make the regex if we don't have it already
  847. mom = createUTC([2000, i]);
  848. if (strict && !this._longMonthsParse[i]) {
  849. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  850. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  851. }
  852. if (!strict && !this._monthsParse[i]) {
  853. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  854. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  855. }
  856. // test the regex
  857. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  858. return i;
  859. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  860. return i;
  861. } else if (!strict && this._monthsParse[i].test(monthName)) {
  862. return i;
  863. }
  864. }
  865. }
  866. // MOMENTS
  867. function setMonth (mom, value) {
  868. var dayOfMonth;
  869. if (!mom.isValid()) {
  870. // No op
  871. return mom;
  872. }
  873. if (typeof value === 'string') {
  874. if (/^\d+$/.test(value)) {
  875. value = toInt(value);
  876. } else {
  877. value = mom.localeData().monthsParse(value);
  878. // TODO: Another silent failure?
  879. if (!isNumber(value)) {
  880. return mom;
  881. }
  882. }
  883. }
  884. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  885. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  886. return mom;
  887. }
  888. function getSetMonth (value) {
  889. if (value != null) {
  890. setMonth(this, value);
  891. hooks.updateOffset(this, true);
  892. return this;
  893. } else {
  894. return get(this, 'Month');
  895. }
  896. }
  897. function getDaysInMonth () {
  898. return daysInMonth(this.year(), this.month());
  899. }
  900. var defaultMonthsShortRegex = matchWord;
  901. function monthsShortRegex (isStrict) {
  902. if (this._monthsParseExact) {
  903. if (!hasOwnProp(this, '_monthsRegex')) {
  904. computeMonthsParse.call(this);
  905. }
  906. if (isStrict) {
  907. return this._monthsShortStrictRegex;
  908. } else {
  909. return this._monthsShortRegex;
  910. }
  911. } else {
  912. if (!hasOwnProp(this, '_monthsShortRegex')) {
  913. this._monthsShortRegex = defaultMonthsShortRegex;
  914. }
  915. return this._monthsShortStrictRegex && isStrict ?
  916. this._monthsShortStrictRegex : this._monthsShortRegex;
  917. }
  918. }
  919. var defaultMonthsRegex = matchWord;
  920. function monthsRegex (isStrict) {
  921. if (this._monthsParseExact) {
  922. if (!hasOwnProp(this, '_monthsRegex')) {
  923. computeMonthsParse.call(this);
  924. }
  925. if (isStrict) {
  926. return this._monthsStrictRegex;
  927. } else {
  928. return this._monthsRegex;
  929. }
  930. } else {
  931. if (!hasOwnProp(this, '_monthsRegex')) {
  932. this._monthsRegex = defaultMonthsRegex;
  933. }
  934. return this._monthsStrictRegex && isStrict ?
  935. this._monthsStrictRegex : this._monthsRegex;
  936. }
  937. }
  938. function computeMonthsParse () {
  939. function cmpLenRev(a, b) {
  940. return b.length - a.length;
  941. }
  942. var shortPieces = [], longPieces = [], mixedPieces = [],
  943. i, mom;
  944. for (i = 0; i < 12; i++) {
  945. // make the regex if we don't have it already
  946. mom = createUTC([2000, i]);
  947. shortPieces.push(this.monthsShort(mom, ''));
  948. longPieces.push(this.months(mom, ''));
  949. mixedPieces.push(this.months(mom, ''));
  950. mixedPieces.push(this.monthsShort(mom, ''));
  951. }
  952. // Sorting makes sure if one month (or abbr) is a prefix of another it
  953. // will match the longer piece.
  954. shortPieces.sort(cmpLenRev);
  955. longPieces.sort(cmpLenRev);
  956. mixedPieces.sort(cmpLenRev);
  957. for (i = 0; i < 12; i++) {
  958. shortPieces[i] = regexEscape(shortPieces[i]);
  959. longPieces[i] = regexEscape(longPieces[i]);
  960. }
  961. for (i = 0; i < 24; i++) {
  962. mixedPieces[i] = regexEscape(mixedPieces[i]);
  963. }
  964. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  965. this._monthsShortRegex = this._monthsRegex;
  966. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  967. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  968. }
  969. function createDate (y, m, d, h, M, s, ms) {
  970. // can't just apply() to create a date:
  971. // https://stackoverflow.com/q/181348
  972. var date = new Date(y, m, d, h, M, s, ms);
  973. // the date constructor remaps years 0-99 to 1900-1999
  974. if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
  975. date.setFullYear(y);
  976. }
  977. return date;
  978. }
  979. function createUTCDate (y) {
  980. var date = new Date(Date.UTC.apply(null, arguments));
  981. // the Date.UTC function remaps years 0-99 to 1900-1999
  982. if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
  983. date.setUTCFullYear(y);
  984. }
  985. return date;
  986. }
  987. // start-of-first-week - start-of-year
  988. function firstWeekOffset(year, dow, doy) {
  989. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  990. fwd = 7 + dow - doy,
  991. // first-week day local weekday -- which local weekday is fwd
  992. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  993. return -fwdlw + fwd - 1;
  994. }
  995. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  996. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  997. var localWeekday = (7 + weekday - dow) % 7,
  998. weekOffset = firstWeekOffset(year, dow, doy),
  999. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1000. resYear, resDayOfYear;
  1001. if (dayOfYear <= 0) {
  1002. resYear = year - 1;
  1003. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1004. } else if (dayOfYear > daysInYear(year)) {
  1005. resYear = year + 1;
  1006. resDayOfYear = dayOfYear - daysInYear(year);
  1007. } else {
  1008. resYear = year;
  1009. resDayOfYear = dayOfYear;
  1010. }
  1011. return {
  1012. year: resYear,
  1013. dayOfYear: resDayOfYear
  1014. };
  1015. }
  1016. function weekOfYear(mom, dow, doy) {
  1017. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1018. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1019. resWeek, resYear;
  1020. if (week < 1) {
  1021. resYear = mom.year() - 1;
  1022. resWeek = week + weeksInYear(resYear, dow, doy);
  1023. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1024. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1025. resYear = mom.year() + 1;
  1026. } else {
  1027. resYear = mom.year();
  1028. resWeek = week;
  1029. }
  1030. return {
  1031. week: resWeek,
  1032. year: resYear
  1033. };
  1034. }
  1035. function weeksInYear(year, dow, doy) {
  1036. var weekOffset = firstWeekOffset(year, dow, doy),
  1037. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1038. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1039. }
  1040. // FORMATTING
  1041. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1042. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1043. // ALIASES
  1044. addUnitAlias('week', 'w');
  1045. addUnitAlias('isoWeek', 'W');
  1046. // PRIORITIES
  1047. addUnitPriority('week', 5);
  1048. addUnitPriority('isoWeek', 5);
  1049. // PARSING
  1050. addRegexToken('w', match1to2);
  1051. addRegexToken('ww', match1to2, match2);
  1052. addRegexToken('W', match1to2);
  1053. addRegexToken('WW', match1to2, match2);
  1054. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  1055. week[token.substr(0, 1)] = toInt(input);
  1056. });
  1057. // HELPERS
  1058. // LOCALES
  1059. function localeWeek (mom) {
  1060. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1061. }
  1062. var defaultLocaleWeek = {
  1063. dow : 0, // Sunday is the first day of the week.
  1064. doy : 6 // The week that contains Jan 1st is the first week of the year.
  1065. };
  1066. function localeFirstDayOfWeek () {
  1067. return this._week.dow;
  1068. }
  1069. function localeFirstDayOfYear () {
  1070. return this._week.doy;
  1071. }
  1072. // MOMENTS
  1073. function getSetWeek (input) {
  1074. var week = this.localeData().week(this);
  1075. return input == null ? week : this.add((input - week) * 7, 'd');
  1076. }
  1077. function getSetISOWeek (input) {
  1078. var week = weekOfYear(this, 1, 4).week;
  1079. return input == null ? week : this.add((input - week) * 7, 'd');
  1080. }
  1081. // FORMATTING
  1082. addFormatToken('d', 0, 'do', 'day');
  1083. addFormatToken('dd', 0, 0, function (format) {
  1084. return this.localeData().weekdaysMin(this, format);
  1085. });
  1086. addFormatToken('ddd', 0, 0, function (format) {
  1087. return this.localeData().weekdaysShort(this, format);
  1088. });
  1089. addFormatToken('dddd', 0, 0, function (format) {
  1090. return this.localeData().weekdays(this, format);
  1091. });
  1092. addFormatToken('e', 0, 0, 'weekday');
  1093. addFormatToken('E', 0, 0, 'isoWeekday');
  1094. // ALIASES
  1095. addUnitAlias('day', 'd');
  1096. addUnitAlias('weekday', 'e');
  1097. addUnitAlias('isoWeekday', 'E');
  1098. // PRIORITY
  1099. addUnitPriority('day', 11);
  1100. addUnitPriority('weekday', 11);
  1101. addUnitPriority('isoWeekday', 11);
  1102. // PARSING
  1103. addRegexToken('d', match1to2);
  1104. addRegexToken('e', match1to2);
  1105. addRegexToken('E', match1to2);
  1106. addRegexToken('dd', function (isStrict, locale) {
  1107. return locale.weekdaysMinRegex(isStrict);
  1108. });
  1109. addRegexToken('ddd', function (isStrict, locale) {
  1110. return locale.weekdaysShortRegex(isStrict);
  1111. });
  1112. addRegexToken('dddd', function (isStrict, locale) {
  1113. return locale.weekdaysRegex(isStrict);
  1114. });
  1115. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1116. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1117. // if we didn't get a weekday name, mark the date as invalid
  1118. if (weekday != null) {
  1119. week.d = weekday;
  1120. } else {
  1121. getParsingFlags(config).invalidWeekday = input;
  1122. }
  1123. });
  1124. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1125. week[token] = toInt(input);
  1126. });
  1127. // HELPERS
  1128. function parseWeekday(input, locale) {
  1129. if (typeof input !== 'string') {
  1130. return input;
  1131. }
  1132. if (!isNaN(input)) {
  1133. return parseInt(input, 10);
  1134. }
  1135. input = locale.weekdaysParse(input);
  1136. if (typeof input === 'number') {
  1137. return input;
  1138. }
  1139. return null;
  1140. }
  1141. function parseIsoWeekday(input, locale) {
  1142. if (typeof input === 'string') {
  1143. return locale.weekdaysParse(input) % 7 || 7;
  1144. }
  1145. return isNaN(input) ? null : input;
  1146. }
  1147. // LOCALES
  1148. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  1149. function localeWeekdays (m, format) {
  1150. if (!m) {
  1151. return isArray(this._weekdays) ? this._weekdays :
  1152. this._weekdays['standalone'];
  1153. }
  1154. return isArray(this._weekdays) ? this._weekdays[m.day()] :
  1155. this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
  1156. }
  1157. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  1158. function localeWeekdaysShort (m) {
  1159. return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  1160. }
  1161. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  1162. function localeWeekdaysMin (m) {
  1163. return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  1164. }
  1165. function handleStrictParse$1(weekdayName, format, strict) {
  1166. var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
  1167. if (!this._weekdaysParse) {
  1168. this._weekdaysParse = [];
  1169. this._shortWeekdaysParse = [];
  1170. this._minWeekdaysParse = [];
  1171. for (i = 0; i < 7; ++i) {
  1172. mom = createUTC([2000, 1]).day(i);
  1173. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  1174. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  1175. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1176. }
  1177. }
  1178. if (strict) {
  1179. if (format === 'dddd') {
  1180. ii = indexOf.call(this._weekdaysParse, llc);
  1181. return ii !== -1 ? ii : null;
  1182. } else if (format === 'ddd') {
  1183. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1184. return ii !== -1 ? ii : null;
  1185. } else {
  1186. ii = indexOf.call(this._minWeekdaysParse, llc);
  1187. return ii !== -1 ? ii : null;
  1188. }
  1189. } else {
  1190. if (format === 'dddd') {
  1191. ii = indexOf.call(this._weekdaysParse, llc);
  1192. if (ii !== -1) {
  1193. return ii;
  1194. }
  1195. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1196. if (ii !== -1) {
  1197. return ii;
  1198. }
  1199. ii = indexOf.call(this._minWeekdaysParse, llc);
  1200. return ii !== -1 ? ii : null;
  1201. } else if (format === 'ddd') {
  1202. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1203. if (ii !== -1) {
  1204. return ii;
  1205. }
  1206. ii = indexOf.call(this._weekdaysParse, llc);
  1207. if (ii !== -1) {
  1208. return ii;
  1209. }
  1210. ii = indexOf.call(this._minWeekdaysParse, llc);
  1211. return ii !== -1 ? ii : null;
  1212. } else {
  1213. ii = indexOf.call(this._minWeekdaysParse, llc);
  1214. if (ii !== -1) {
  1215. return ii;
  1216. }
  1217. ii = indexOf.call(this._weekdaysParse, llc);
  1218. if (ii !== -1) {
  1219. return ii;
  1220. }
  1221. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1222. return ii !== -1 ? ii : null;
  1223. }
  1224. }
  1225. }
  1226. function localeWeekdaysParse (weekdayName, format, strict) {
  1227. var i, mom, regex;
  1228. if (this._weekdaysParseExact) {
  1229. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1230. }
  1231. if (!this._weekdaysParse) {
  1232. this._weekdaysParse = [];
  1233. this._minWeekdaysParse = [];
  1234. this._shortWeekdaysParse = [];
  1235. this._fullWeekdaysParse = [];
  1236. }
  1237. for (i = 0; i < 7; i++) {
  1238. // make the regex if we don't have it already
  1239. mom = createUTC([2000, 1]).day(i);
  1240. if (strict && !this._fullWeekdaysParse[i]) {
  1241. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
  1242. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
  1243. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
  1244. }
  1245. if (!this._weekdaysParse[i]) {
  1246. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  1247. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1248. }
  1249. // test the regex
  1250. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  1251. return i;
  1252. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  1253. return i;
  1254. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  1255. return i;
  1256. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1257. return i;
  1258. }
  1259. }
  1260. }
  1261. // MOMENTS
  1262. function getSetDayOfWeek (input) {
  1263. if (!this.isValid()) {
  1264. return input != null ? this : NaN;
  1265. }
  1266. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1267. if (input != null) {
  1268. input = parseWeekday(input, this.localeData());
  1269. return this.add(input - day, 'd');
  1270. } else {
  1271. return day;
  1272. }
  1273. }
  1274. function getSetLocaleDayOfWeek (input) {
  1275. if (!this.isValid()) {
  1276. return input != null ? this : NaN;
  1277. }
  1278. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1279. return input == null ? weekday : this.add(input - weekday, 'd');
  1280. }
  1281. function getSetISODayOfWeek (input) {
  1282. if (!this.isValid()) {
  1283. return input != null ? this : NaN;
  1284. }
  1285. // behaves the same as moment#day except
  1286. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1287. // as a setter, sunday should belong to the previous week.
  1288. if (input != null) {
  1289. var weekday = parseIsoWeekday(input, this.localeData());
  1290. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1291. } else {
  1292. return this.day() || 7;
  1293. }
  1294. }
  1295. var defaultWeekdaysRegex = matchWord;
  1296. function weekdaysRegex (isStrict) {
  1297. if (this._weekdaysParseExact) {
  1298. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1299. computeWeekdaysParse.call(this);
  1300. }
  1301. if (isStrict) {
  1302. return this._weekdaysStrictRegex;
  1303. } else {
  1304. return this._weekdaysRegex;
  1305. }
  1306. } else {
  1307. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1308. this._weekdaysRegex = defaultWeekdaysRegex;
  1309. }
  1310. return this._weekdaysStrictRegex && isStrict ?
  1311. this._weekdaysStrictRegex : this._weekdaysRegex;
  1312. }
  1313. }
  1314. var defaultWeekdaysShortRegex = matchWord;
  1315. function weekdaysShortRegex (isStrict) {
  1316. if (this._weekdaysParseExact) {
  1317. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1318. computeWeekdaysParse.call(this);
  1319. }
  1320. if (isStrict) {
  1321. return this._weekdaysShortStrictRegex;
  1322. } else {
  1323. return this._weekdaysShortRegex;
  1324. }
  1325. } else {
  1326. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1327. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1328. }
  1329. return this._weekdaysShortStrictRegex && isStrict ?
  1330. this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  1331. }
  1332. }
  1333. var defaultWeekdaysMinRegex = matchWord;
  1334. function weekdaysMinRegex (isStrict) {
  1335. if (this._weekdaysParseExact) {
  1336. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1337. computeWeekdaysParse.call(this);
  1338. }
  1339. if (isStrict) {
  1340. return this._weekdaysMinStrictRegex;
  1341. } else {
  1342. return this._weekdaysMinRegex;
  1343. }
  1344. } else {
  1345. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1346. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1347. }
  1348. return this._weekdaysMinStrictRegex && isStrict ?
  1349. this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  1350. }
  1351. }
  1352. function computeWeekdaysParse () {
  1353. function cmpLenRev(a, b) {
  1354. return b.length - a.length;
  1355. }
  1356. var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
  1357. i, mom, minp, shortp, longp;
  1358. for (i = 0; i < 7; i++) {
  1359. // make the regex if we don't have it already
  1360. mom = createUTC([2000, 1]).day(i);
  1361. minp = this.weekdaysMin(mom, '');
  1362. shortp = this.weekdaysShort(mom, '');
  1363. longp = this.weekdays(mom, '');
  1364. minPieces.push(minp);
  1365. shortPieces.push(shortp);
  1366. longPieces.push(longp);
  1367. mixedPieces.push(minp);
  1368. mixedPieces.push(shortp);
  1369. mixedPieces.push(longp);
  1370. }
  1371. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1372. // will match the longer piece.
  1373. minPieces.sort(cmpLenRev);
  1374. shortPieces.sort(cmpLenRev);
  1375. longPieces.sort(cmpLenRev);
  1376. mixedPieces.sort(cmpLenRev);
  1377. for (i = 0; i < 7; i++) {
  1378. shortPieces[i] = regexEscape(shortPieces[i]);
  1379. longPieces[i] = regexEscape(longPieces[i]);
  1380. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1381. }
  1382. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1383. this._weekdaysShortRegex = this._weekdaysRegex;
  1384. this._weekdaysMinRegex = this._weekdaysRegex;
  1385. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  1386. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  1387. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  1388. }
  1389. // FORMATTING
  1390. function hFormat() {
  1391. return this.hours() % 12 || 12;
  1392. }
  1393. function kFormat() {
  1394. return this.hours() || 24;
  1395. }
  1396. addFormatToken('H', ['HH', 2], 0, 'hour');
  1397. addFormatToken('h', ['hh', 2], 0, hFormat);
  1398. addFormatToken('k', ['kk', 2], 0, kFormat);
  1399. addFormatToken('hmm', 0, 0, function () {
  1400. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1401. });
  1402. addFormatToken('hmmss', 0, 0, function () {
  1403. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  1404. zeroFill(this.seconds(), 2);
  1405. });
  1406. addFormatToken('Hmm', 0, 0, function () {
  1407. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1408. });
  1409. addFormatToken('Hmmss', 0, 0, function () {
  1410. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  1411. zeroFill(this.seconds(), 2);
  1412. });
  1413. function meridiem (token, lowercase) {
  1414. addFormatToken(token, 0, 0, function () {
  1415. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  1416. });
  1417. }
  1418. meridiem('a', true);
  1419. meridiem('A', false);
  1420. // ALIASES
  1421. addUnitAlias('hour', 'h');
  1422. // PRIORITY
  1423. addUnitPriority('hour', 13);
  1424. // PARSING
  1425. function matchMeridiem (isStrict, locale) {
  1426. return locale._meridiemParse;
  1427. }
  1428. addRegexToken('a', matchMeridiem);
  1429. addRegexToken('A', matchMeridiem);
  1430. addRegexToken('H', match1to2);
  1431. addRegexToken('h', match1to2);
  1432. addRegexToken('k', match1to2);
  1433. addRegexToken('HH', match1to2, match2);
  1434. addRegexToken('hh', match1to2, match2);
  1435. addRegexToken('kk', match1to2, match2);
  1436. addRegexToken('hmm', match3to4);
  1437. addRegexToken('hmmss', match5to6);
  1438. addRegexToken('Hmm', match3to4);
  1439. addRegexToken('Hmmss', match5to6);
  1440. addParseToken(['H', 'HH'], HOUR);
  1441. addParseToken(['k', 'kk'], function (input, array, config) {
  1442. var kInput = toInt(input);
  1443. array[HOUR] = kInput === 24 ? 0 : kInput;
  1444. });
  1445. addParseToken(['a', 'A'], function (input, array, config) {
  1446. config._isPm = config._locale.isPM(input);
  1447. config._meridiem = input;
  1448. });
  1449. addParseToken(['h', 'hh'], function (input, array, config) {
  1450. array[HOUR] = toInt(input);
  1451. getParsingFlags(config).bigHour = true;
  1452. });
  1453. addParseToken('hmm', function (input, array, config) {
  1454. var pos = input.length - 2;
  1455. array[HOUR] = toInt(input.substr(0, pos));
  1456. array[MINUTE] = toInt(input.substr(pos));
  1457. getParsingFlags(config).bigHour = true;
  1458. });
  1459. addParseToken('hmmss', function (input, array, config) {
  1460. var pos1 = input.length - 4;
  1461. var pos2 = input.length - 2;
  1462. array[HOUR] = toInt(input.substr(0, pos1));
  1463. array[MINUTE] = toInt(input.substr(pos1, 2));
  1464. array[SECOND] = toInt(input.substr(pos2));
  1465. getParsingFlags(config).bigHour = true;
  1466. });
  1467. addParseToken('Hmm', function (input, array, config) {
  1468. var pos = input.length - 2;
  1469. array[HOUR] = toInt(input.substr(0, pos));
  1470. array[MINUTE] = toInt(input.substr(pos));
  1471. });
  1472. addParseToken('Hmmss', function (input, array, config) {
  1473. var pos1 = input.length - 4;
  1474. var pos2 = input.length - 2;
  1475. array[HOUR] = toInt(input.substr(0, pos1));
  1476. array[MINUTE] = toInt(input.substr(pos1, 2));
  1477. array[SECOND] = toInt(input.substr(pos2));
  1478. });
  1479. // LOCALES
  1480. function localeIsPM (input) {
  1481. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1482. // Using charAt should be more compatible.
  1483. return ((input + '').toLowerCase().charAt(0) === 'p');
  1484. }
  1485. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  1486. function localeMeridiem (hours, minutes, isLower) {
  1487. if (hours > 11) {
  1488. return isLower ? 'pm' : 'PM';
  1489. } else {
  1490. return isLower ? 'am' : 'AM';
  1491. }
  1492. }
  1493. // MOMENTS
  1494. // Setting the hour should keep the time, because the user explicitly
  1495. // specified which hour he wants. So trying to maintain the same hour (in
  1496. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1497. // this rule.
  1498. var getSetHour = makeGetSet('Hours', true);
  1499. // months
  1500. // week
  1501. // weekdays
  1502. // meridiem
  1503. var baseConfig = {
  1504. calendar: defaultCalendar,
  1505. longDateFormat: defaultLongDateFormat,
  1506. invalidDate: defaultInvalidDate,
  1507. ordinal: defaultOrdinal,
  1508. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1509. relativeTime: defaultRelativeTime,
  1510. months: defaultLocaleMonths,
  1511. monthsShort: defaultLocaleMonthsShort,
  1512. week: defaultLocaleWeek,
  1513. weekdays: defaultLocaleWeekdays,
  1514. weekdaysMin: defaultLocaleWeekdaysMin,
  1515. weekdaysShort: defaultLocaleWeekdaysShort,
  1516. meridiemParse: defaultLocaleMeridiemParse
  1517. };
  1518. // internal storage for locale config files
  1519. var locales = {};
  1520. var localeFamilies = {};
  1521. var globalLocale;
  1522. function normalizeLocale(key) {
  1523. return key ? key.toLowerCase().replace('_', '-') : key;
  1524. }
  1525. // pick the locale from the array
  1526. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1527. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1528. function chooseLocale(names) {
  1529. var i = 0, j, next, locale, split;
  1530. while (i < names.length) {
  1531. split = normalizeLocale(names[i]).split('-');
  1532. j = split.length;
  1533. next = normalizeLocale(names[i + 1]);
  1534. next = next ? next.split('-') : null;
  1535. while (j > 0) {
  1536. locale = loadLocale(split.slice(0, j).join('-'));
  1537. if (locale) {
  1538. return locale;
  1539. }
  1540. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  1541. //the next array item is better than a shallower substring of this one
  1542. break;
  1543. }
  1544. j--;
  1545. }
  1546. i++;
  1547. }
  1548. return null;
  1549. }
  1550. function loadLocale(name) {
  1551. var oldLocale = null;
  1552. // TODO: Find a better way to register and load all the locales in Node
  1553. if (!locales[name] && (typeof module !== 'undefined') &&
  1554. module && module.exports) {
  1555. try {
  1556. oldLocale = globalLocale._abbr;
  1557. var aliasedRequire = require;
  1558. aliasedRequire('./locale/' + name);
  1559. getSetGlobalLocale(oldLocale);
  1560. } catch (e) {}
  1561. }
  1562. return locales[name];
  1563. }
  1564. // This function will load locale and then set the global locale. If
  1565. // no arguments are passed in, it will simply return the current global
  1566. // locale key.
  1567. function getSetGlobalLocale (key, values) {
  1568. var data;
  1569. if (key) {
  1570. if (isUndefined(values)) {
  1571. data = getLocale(key);
  1572. }
  1573. else {
  1574. data = defineLocale(key, values);
  1575. }
  1576. if (data) {
  1577. // moment.duration._locale = moment._locale = data;
  1578. globalLocale = data;
  1579. }
  1580. }
  1581. return globalLocale._abbr;
  1582. }
  1583. function defineLocale (name, config) {
  1584. if (config !== null) {
  1585. var parentConfig = baseConfig;
  1586. config.abbr = name;
  1587. if (locales[name] != null) {
  1588. deprecateSimple('defineLocaleOverride',
  1589. 'use moment.updateLocale(localeName, config) to change ' +
  1590. 'an existing locale. moment.defineLocale(localeName, ' +
  1591. 'config) should only be used for creating a new locale ' +
  1592. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  1593. parentConfig = locales[name]._config;
  1594. } else if (config.parentLocale != null) {
  1595. if (locales[config.parentLocale] != null) {
  1596. parentConfig = locales[config.parentLocale]._config;
  1597. } else {
  1598. if (!localeFamilies[config.parentLocale]) {
  1599. localeFamilies[config.parentLocale] = [];
  1600. }
  1601. localeFamilies[config.parentLocale].push({
  1602. name: name,
  1603. config: config
  1604. });
  1605. return null;
  1606. }
  1607. }
  1608. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1609. if (localeFamilies[name]) {
  1610. localeFamilies[name].forEach(function (x) {
  1611. defineLocale(x.name, x.config);
  1612. });
  1613. }
  1614. // backwards compat for now: also set the locale
  1615. // make sure we set the locale AFTER all child locales have been
  1616. // created, so we won't end up with the child locale set.
  1617. getSetGlobalLocale(name);
  1618. return locales[name];
  1619. } else {
  1620. // useful for testing
  1621. delete locales[name];
  1622. return null;
  1623. }
  1624. }
  1625. function updateLocale(name, config) {
  1626. if (config != null) {
  1627. var locale, tmpLocale, parentConfig = baseConfig;
  1628. // MERGE
  1629. tmpLocale = loadLocale(name);
  1630. if (tmpLocale != null) {
  1631. parentConfig = tmpLocale._config;
  1632. }
  1633. config = mergeConfigs(parentConfig, config);
  1634. locale = new Locale(config);
  1635. locale.parentLocale = locales[name];
  1636. locales[name] = locale;
  1637. // backwards compat for now: also set the locale
  1638. getSetGlobalLocale(name);
  1639. } else {
  1640. // pass null for config to unupdate, useful for tests
  1641. if (locales[name] != null) {
  1642. if (locales[name].parentLocale != null) {
  1643. locales[name] = locales[name].parentLocale;
  1644. } else if (locales[name] != null) {
  1645. delete locales[name];
  1646. }
  1647. }
  1648. }
  1649. return locales[name];
  1650. }
  1651. // returns locale data
  1652. function getLocale (key) {
  1653. var locale;
  1654. if (key && key._locale && key._locale._abbr) {
  1655. key = key._locale._abbr;
  1656. }
  1657. if (!key) {
  1658. return globalLocale;
  1659. }
  1660. if (!isArray(key)) {
  1661. //short-circuit everything else
  1662. locale = loadLocale(key);
  1663. if (locale) {
  1664. return locale;
  1665. }
  1666. key = [key];
  1667. }
  1668. return chooseLocale(key);
  1669. }
  1670. function listLocales() {
  1671. return keys(locales);
  1672. }
  1673. function checkOverflow (m) {
  1674. var overflow;
  1675. var a = m._a;
  1676. if (a && getParsingFlags(m).overflow === -2) {
  1677. overflow =
  1678. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  1679. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  1680. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  1681. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  1682. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  1683. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  1684. -1;
  1685. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  1686. overflow = DATE;
  1687. }
  1688. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1689. overflow = WEEK;
  1690. }
  1691. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1692. overflow = WEEKDAY;
  1693. }
  1694. getParsingFlags(m).overflow = overflow;
  1695. }
  1696. return m;
  1697. }
  1698. // Pick the first defined of two or three arguments.
  1699. function defaults(a, b, c) {
  1700. if (a != null) {
  1701. return a;
  1702. }
  1703. if (b != null) {
  1704. return b;
  1705. }
  1706. return c;
  1707. }
  1708. function currentDateArray(config) {
  1709. // hooks is actually the exported moment object
  1710. var nowValue = new Date(hooks.now());
  1711. if (config._useUTC) {
  1712. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  1713. }
  1714. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  1715. }
  1716. // convert an array to a date.
  1717. // the array should mirror the parameters below
  1718. // note: all values past the year are optional and will default to the lowest possible value.
  1719. // [year, month, day , hour, minute, second, millisecond]
  1720. function configFromArray (config) {
  1721. var i, date, input = [], currentDate, expectedWeekday, yearToUse;
  1722. if (config._d) {
  1723. return;
  1724. }
  1725. currentDate = currentDateArray(config);
  1726. //compute day of the year from weeks and weekdays
  1727. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  1728. dayOfYearFromWeekInfo(config);
  1729. }
  1730. //if the day of the year is set, figure out what it is
  1731. if (config._dayOfYear != null) {
  1732. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  1733. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  1734. getParsingFlags(config)._overflowDayOfYear = true;
  1735. }
  1736. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  1737. config._a[MONTH] = date.getUTCMonth();
  1738. config._a[DATE] = date.getUTCDate();
  1739. }
  1740. // Default to current date.
  1741. // * if no year, month, day of month are given, default to today
  1742. // * if day of month is given, default month and year
  1743. // * if month is given, default only year
  1744. // * if year is given, don't default anything
  1745. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  1746. config._a[i] = input[i] = currentDate[i];
  1747. }
  1748. // Zero out whatever was not defaulted, including time
  1749. for (; i < 7; i++) {
  1750. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  1751. }
  1752. // Check for 24:00:00.000
  1753. if (config._a[HOUR] === 24 &&
  1754. config._a[MINUTE] === 0 &&
  1755. config._a[SECOND] === 0 &&
  1756. config._a[MILLISECOND] === 0) {
  1757. config._nextDay = true;
  1758. config._a[HOUR] = 0;
  1759. }
  1760. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  1761. expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
  1762. // Apply timezone offset from input. The actual utcOffset can be changed
  1763. // with parseZone.
  1764. if (config._tzm != null) {
  1765. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  1766. }
  1767. if (config._nextDay) {
  1768. config._a[HOUR] = 24;
  1769. }
  1770. // check for mismatching day of week
  1771. if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
  1772. getParsingFlags(config).weekdayMismatch = true;
  1773. }
  1774. }
  1775. function dayOfYearFromWeekInfo(config) {
  1776. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  1777. w = config._w;
  1778. if (w.GG != null || w.W != null || w.E != null) {
  1779. dow = 1;
  1780. doy = 4;
  1781. // TODO: We need to take the current isoWeekYear, but that depends on
  1782. // how we interpret now (local, utc, fixed offset). So create
  1783. // a now version of current config (take local/utc/offset flags, and
  1784. // create now).
  1785. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  1786. week = defaults(w.W, 1);
  1787. weekday = defaults(w.E, 1);
  1788. if (weekday < 1 || weekday > 7) {
  1789. weekdayOverflow = true;
  1790. }
  1791. } else {
  1792. dow = config._locale._week.dow;
  1793. doy = config._locale._week.doy;
  1794. var curWeek = weekOfYear(createLocal(), dow, doy);
  1795. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  1796. // Default to current week.
  1797. week = defaults(w.w, curWeek.week);
  1798. if (w.d != null) {
  1799. // weekday -- low day numbers are considered next week
  1800. weekday = w.d;
  1801. if (weekday < 0 || weekday > 6) {
  1802. weekdayOverflow = true;
  1803. }
  1804. } else if (w.e != null) {
  1805. // local weekday -- counting starts from begining of week
  1806. weekday = w.e + dow;
  1807. if (w.e < 0 || w.e > 6) {
  1808. weekdayOverflow = true;
  1809. }
  1810. } else {
  1811. // default to begining of week
  1812. weekday = dow;
  1813. }
  1814. }
  1815. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  1816. getParsingFlags(config)._overflowWeeks = true;
  1817. } else if (weekdayOverflow != null) {
  1818. getParsingFlags(config)._overflowWeekday = true;
  1819. } else {
  1820. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  1821. config._a[YEAR] = temp.year;
  1822. config._dayOfYear = temp.dayOfYear;
  1823. }
  1824. }
  1825. // iso 8601 regex
  1826. // 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)
  1827. 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)?)?$/;
  1828. 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)?)?$/;
  1829. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  1830. var isoDates = [
  1831. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  1832. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  1833. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  1834. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  1835. ['YYYY-DDD', /\d{4}-\d{3}/],
  1836. ['YYYY-MM', /\d{4}-\d\d/, false],
  1837. ['YYYYYYMMDD', /[+-]\d{10}/],
  1838. ['YYYYMMDD', /\d{8}/],
  1839. // YYYYMM is NOT allowed by the standard
  1840. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  1841. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  1842. ['YYYYDDD', /\d{7}/]
  1843. ];
  1844. // iso time formats and regexes
  1845. var isoTimes = [
  1846. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  1847. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  1848. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  1849. ['HH:mm', /\d\d:\d\d/],
  1850. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  1851. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  1852. ['HHmmss', /\d\d\d\d\d\d/],
  1853. ['HHmm', /\d\d\d\d/],
  1854. ['HH', /\d\d/]
  1855. ];
  1856. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  1857. // date from iso format
  1858. function configFromISO(config) {
  1859. var i, l,
  1860. string = config._i,
  1861. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  1862. allowTime, dateFormat, timeFormat, tzFormat;
  1863. if (match) {
  1864. getParsingFlags(config).iso = true;
  1865. for (i = 0, l = isoDates.length; i < l; i++) {
  1866. if (isoDates[i][1].exec(match[1])) {
  1867. dateFormat = isoDates[i][0];
  1868. allowTime = isoDates[i][2] !== false;
  1869. break;
  1870. }
  1871. }
  1872. if (dateFormat == null) {
  1873. config._isValid = false;
  1874. return;
  1875. }
  1876. if (match[3]) {
  1877. for (i = 0, l = isoTimes.length; i < l; i++) {
  1878. if (isoTimes[i][1].exec(match[3])) {
  1879. // match[2] should be 'T' or space
  1880. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  1881. break;
  1882. }
  1883. }
  1884. if (timeFormat == null) {
  1885. config._isValid = false;
  1886. return;
  1887. }
  1888. }
  1889. if (!allowTime && timeFormat != null) {
  1890. config._isValid = false;
  1891. return;
  1892. }
  1893. if (match[4]) {
  1894. if (tzRegex.exec(match[4])) {
  1895. tzFormat = 'Z';
  1896. } else {
  1897. config._isValid = false;
  1898. return;
  1899. }
  1900. }
  1901. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  1902. configFromStringAndFormat(config);
  1903. } else {
  1904. config._isValid = false;
  1905. }
  1906. }
  1907. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  1908. var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
  1909. function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
  1910. var result = [
  1911. untruncateYear(yearStr),
  1912. defaultLocaleMonthsShort.indexOf(monthStr),
  1913. parseInt(dayStr, 10),
  1914. parseInt(hourStr, 10),
  1915. parseInt(minuteStr, 10)
  1916. ];
  1917. if (secondStr) {
  1918. result.push(parseInt(secondStr, 10));
  1919. }
  1920. return result;
  1921. }
  1922. function untruncateYear(yearStr) {
  1923. var year = parseInt(yearStr, 10);
  1924. if (year <= 49) {
  1925. return 2000 + year;
  1926. } else if (year <= 999) {
  1927. return 1900 + year;
  1928. }
  1929. return year;
  1930. }
  1931. function preprocessRFC2822(s) {
  1932. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  1933. return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim();
  1934. }
  1935. function checkWeekday(weekdayStr, parsedInput, config) {
  1936. if (weekdayStr) {
  1937. // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
  1938. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  1939. weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
  1940. if (weekdayProvided !== weekdayActual) {
  1941. getParsingFlags(config).weekdayMismatch = true;
  1942. config._isValid = false;
  1943. return false;
  1944. }
  1945. }
  1946. return true;
  1947. }
  1948. var obsOffsets = {
  1949. UT: 0,
  1950. GMT: 0,
  1951. EDT: -4 * 60,
  1952. EST: -5 * 60,
  1953. CDT: -5 * 60,
  1954. CST: -6 * 60,
  1955. MDT: -6 * 60,
  1956. MST: -7 * 60,
  1957. PDT: -7 * 60,
  1958. PST: -8 * 60
  1959. };
  1960. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  1961. if (obsOffset) {
  1962. return obsOffsets[obsOffset];
  1963. } else if (militaryOffset) {
  1964. // the only allowed military tz is Z
  1965. return 0;
  1966. } else {
  1967. var hm = parseInt(numOffset, 10);
  1968. var m = hm % 100, h = (hm - m) / 100;
  1969. return h * 60 + m;
  1970. }
  1971. }
  1972. // date and time from ref 2822 format
  1973. function configFromRFC2822(config) {
  1974. var match = rfc2822.exec(preprocessRFC2822(config._i));
  1975. if (match) {
  1976. var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
  1977. if (!checkWeekday(match[1], parsedArray, config)) {
  1978. return;
  1979. }
  1980. config._a = parsedArray;
  1981. config._tzm = calculateOffset(match[8], match[9], match[10]);
  1982. config._d = createUTCDate.apply(null, config._a);
  1983. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  1984. getParsingFlags(config).rfc2822 = true;
  1985. } else {
  1986. config._isValid = false;
  1987. }
  1988. }
  1989. // date from iso format or fallback
  1990. function configFromString(config) {
  1991. var matched = aspNetJsonRegex.exec(config._i);
  1992. if (matched !== null) {
  1993. config._d = new Date(+matched[1]);
  1994. return;
  1995. }
  1996. configFromISO(config);
  1997. if (config._isValid === false) {
  1998. delete config._isValid;
  1999. } else {
  2000. return;
  2001. }
  2002. configFromRFC2822(config);
  2003. if (config._isValid === false) {
  2004. delete config._isValid;
  2005. } else {
  2006. return;
  2007. }
  2008. // Final attempt, use Input Fallback
  2009. hooks.createFromInputFallback(config);
  2010. }
  2011. hooks.createFromInputFallback = deprecate(
  2012. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  2013. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  2014. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  2015. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2016. function (config) {
  2017. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2018. }
  2019. );
  2020. // constant that refers to the ISO standard
  2021. hooks.ISO_8601 = function () {};
  2022. // constant that refers to the RFC 2822 form
  2023. hooks.RFC_2822 = function () {};
  2024. // date from string and format string
  2025. function configFromStringAndFormat(config) {
  2026. // TODO: Move this to another part of the creation flow to prevent circular deps
  2027. if (config._f === hooks.ISO_8601) {
  2028. configFromISO(config);
  2029. return;
  2030. }
  2031. if (config._f === hooks.RFC_2822) {
  2032. configFromRFC2822(config);
  2033. return;
  2034. }
  2035. config._a = [];
  2036. getParsingFlags(config).empty = true;
  2037. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2038. var string = '' + config._i,
  2039. i, parsedInput, tokens, token, skipped,
  2040. stringLength = string.length,
  2041. totalParsedInputLength = 0;
  2042. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2043. for (i = 0; i < tokens.length; i++) {
  2044. token = tokens[i];
  2045. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  2046. // console.log('token', token, 'parsedInput', parsedInput,
  2047. // 'regex', getParseRegexForToken(token, config));
  2048. if (parsedInput) {
  2049. skipped = string.substr(0, string.indexOf(parsedInput));
  2050. if (skipped.length > 0) {
  2051. getParsingFlags(config).unusedInput.push(skipped);
  2052. }
  2053. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  2054. totalParsedInputLength += parsedInput.length;
  2055. }
  2056. // don't parse if it's not a known token
  2057. if (formatTokenFunctions[token]) {
  2058. if (parsedInput) {
  2059. getParsingFlags(config).empty = false;
  2060. }
  2061. else {
  2062. getParsingFlags(config).unusedTokens.push(token);
  2063. }
  2064. addTimeToArrayFromToken(token, parsedInput, config);
  2065. }
  2066. else if (config._strict && !parsedInput) {
  2067. getParsingFlags(config).unusedTokens.push(token);
  2068. }
  2069. }
  2070. // add remaining unparsed input length to the string
  2071. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  2072. if (string.length > 0) {
  2073. getParsingFlags(config).unusedInput.push(string);
  2074. }
  2075. // clear _12h flag if hour is <= 12
  2076. if (config._a[HOUR] <= 12 &&
  2077. getParsingFlags(config).bigHour === true &&
  2078. config._a[HOUR] > 0) {
  2079. getParsingFlags(config).bigHour = undefined;
  2080. }
  2081. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2082. getParsingFlags(config).meridiem = config._meridiem;
  2083. // handle meridiem
  2084. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  2085. configFromArray(config);
  2086. checkOverflow(config);
  2087. }
  2088. function meridiemFixWrap (locale, hour, meridiem) {
  2089. var isPm;
  2090. if (meridiem == null) {
  2091. // nothing to do
  2092. return hour;
  2093. }
  2094. if (locale.meridiemHour != null) {
  2095. return locale.meridiemHour(hour, meridiem);
  2096. } else if (locale.isPM != null) {
  2097. // Fallback
  2098. isPm = locale.isPM(meridiem);
  2099. if (isPm && hour < 12) {
  2100. hour += 12;
  2101. }
  2102. if (!isPm && hour === 12) {
  2103. hour = 0;
  2104. }
  2105. return hour;
  2106. } else {
  2107. // this is not supposed to happen
  2108. return hour;
  2109. }
  2110. }
  2111. // date from string and array of format strings
  2112. function configFromStringAndArray(config) {
  2113. var tempConfig,
  2114. bestMoment,
  2115. scoreToBeat,
  2116. i,
  2117. currentScore;
  2118. if (config._f.length === 0) {
  2119. getParsingFlags(config).invalidFormat = true;
  2120. config._d = new Date(NaN);
  2121. return;
  2122. }
  2123. for (i = 0; i < config._f.length; i++) {
  2124. currentScore = 0;
  2125. tempConfig = copyConfig({}, config);
  2126. if (config._useUTC != null) {
  2127. tempConfig._useUTC = config._useUTC;
  2128. }
  2129. tempConfig._f = config._f[i];
  2130. configFromStringAndFormat(tempConfig);
  2131. if (!isValid(tempConfig)) {
  2132. continue;
  2133. }
  2134. // if there is any input that was not parsed add a penalty for that format
  2135. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2136. //or tokens
  2137. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2138. getParsingFlags(tempConfig).score = currentScore;
  2139. if (scoreToBeat == null || currentScore < scoreToBeat) {
  2140. scoreToBeat = currentScore;
  2141. bestMoment = tempConfig;
  2142. }
  2143. }
  2144. extend(config, bestMoment || tempConfig);
  2145. }
  2146. function configFromObject(config) {
  2147. if (config._d) {
  2148. return;
  2149. }
  2150. var i = normalizeObjectUnits(config._i);
  2151. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  2152. return obj && parseInt(obj, 10);
  2153. });
  2154. configFromArray(config);
  2155. }
  2156. function createFromConfig (config) {
  2157. var res = new Moment(checkOverflow(prepareConfig(config)));
  2158. if (res._nextDay) {
  2159. // Adding is smart enough around DST
  2160. res.add(1, 'd');
  2161. res._nextDay = undefined;
  2162. }
  2163. return res;
  2164. }
  2165. function prepareConfig (config) {
  2166. var input = config._i,
  2167. format = config._f;
  2168. config._locale = config._locale || getLocale(config._l);
  2169. if (input === null || (format === undefined && input === '')) {
  2170. return createInvalid({nullInput: true});
  2171. }
  2172. if (typeof input === 'string') {
  2173. config._i = input = config._locale.preparse(input);
  2174. }
  2175. if (isMoment(input)) {
  2176. return new Moment(checkOverflow(input));
  2177. } else if (isDate(input)) {
  2178. config._d = input;
  2179. } else if (isArray(format)) {
  2180. configFromStringAndArray(config);
  2181. } else if (format) {
  2182. configFromStringAndFormat(config);
  2183. } else {
  2184. configFromInput(config);
  2185. }
  2186. if (!isValid(config)) {
  2187. config._d = null;
  2188. }
  2189. return config;
  2190. }
  2191. function configFromInput(config) {
  2192. var input = config._i;
  2193. if (isUndefined(input)) {
  2194. config._d = new Date(hooks.now());
  2195. } else if (isDate(input)) {
  2196. config._d = new Date(input.valueOf());
  2197. } else if (typeof input === 'string') {
  2198. configFromString(config);
  2199. } else if (isArray(input)) {
  2200. config._a = map(input.slice(0), function (obj) {
  2201. return parseInt(obj, 10);
  2202. });
  2203. configFromArray(config);
  2204. } else if (isObject(input)) {
  2205. configFromObject(config);
  2206. } else if (isNumber(input)) {
  2207. // from milliseconds
  2208. config._d = new Date(input);
  2209. } else {
  2210. hooks.createFromInputFallback(config);
  2211. }
  2212. }
  2213. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  2214. var c = {};
  2215. if (locale === true || locale === false) {
  2216. strict = locale;
  2217. locale = undefined;
  2218. }
  2219. if ((isObject(input) && isObjectEmpty(input)) ||
  2220. (isArray(input) && input.length === 0)) {
  2221. input = undefined;
  2222. }
  2223. // object construction must be done this way.
  2224. // https://github.com/moment/moment/issues/1423
  2225. c._isAMomentObject = true;
  2226. c._useUTC = c._isUTC = isUTC;
  2227. c._l = locale;
  2228. c._i = input;
  2229. c._f = format;
  2230. c._strict = strict;
  2231. return createFromConfig(c);
  2232. }
  2233. function createLocal (input, format, locale, strict) {
  2234. return createLocalOrUTC(input, format, locale, strict, false);
  2235. }
  2236. var prototypeMin = deprecate(
  2237. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2238. function () {
  2239. var other = createLocal.apply(null, arguments);
  2240. if (this.isValid() && other.isValid()) {
  2241. return other < this ? this : other;
  2242. } else {
  2243. return createInvalid();
  2244. }
  2245. }
  2246. );
  2247. var prototypeMax = deprecate(
  2248. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2249. function () {
  2250. var other = createLocal.apply(null, arguments);
  2251. if (this.isValid() && other.isValid()) {
  2252. return other > this ? this : other;
  2253. } else {
  2254. return createInvalid();
  2255. }
  2256. }
  2257. );
  2258. // Pick a moment m from moments so that m[fn](other) is true for all
  2259. // other. This relies on the function fn to be transitive.
  2260. //
  2261. // moments should either be an array of moment objects or an array, whose
  2262. // first element is an array of moment objects.
  2263. function pickBy(fn, moments) {
  2264. var res, i;
  2265. if (moments.length === 1 && isArray(moments[0])) {
  2266. moments = moments[0];
  2267. }
  2268. if (!moments.length) {
  2269. return createLocal();
  2270. }
  2271. res = moments[0];
  2272. for (i = 1; i < moments.length; ++i) {
  2273. if (!moments[i].isValid() || moments[i][fn](res)) {
  2274. res = moments[i];
  2275. }
  2276. }
  2277. return res;
  2278. }
  2279. // TODO: Use [].sort instead?
  2280. function min () {
  2281. var args = [].slice.call(arguments, 0);
  2282. return pickBy('isBefore', args);
  2283. }
  2284. function max () {
  2285. var args = [].slice.call(arguments, 0);
  2286. return pickBy('isAfter', args);
  2287. }
  2288. var now = function () {
  2289. return Date.now ? Date.now() : +(new Date());
  2290. };
  2291. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  2292. function isDurationValid(m) {
  2293. for (var key in m) {
  2294. if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  2295. return false;
  2296. }
  2297. }
  2298. var unitHasDecimal = false;
  2299. for (var i = 0; i < ordering.length; ++i) {
  2300. if (m[ordering[i]]) {
  2301. if (unitHasDecimal) {
  2302. return false; // only allow non-integers for smallest unit
  2303. }
  2304. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2305. unitHasDecimal = true;
  2306. }
  2307. }
  2308. }
  2309. return true;
  2310. }
  2311. function isValid$1() {
  2312. return this._isValid;
  2313. }
  2314. function createInvalid$1() {
  2315. return createDuration(NaN);
  2316. }
  2317. function Duration (duration) {
  2318. var normalizedInput = normalizeObjectUnits(duration),
  2319. years = normalizedInput.year || 0,
  2320. quarters = normalizedInput.quarter || 0,
  2321. months = normalizedInput.month || 0,
  2322. weeks = normalizedInput.week || 0,
  2323. days = normalizedInput.day || 0,
  2324. hours = normalizedInput.hour || 0,
  2325. minutes = normalizedInput.minute || 0,
  2326. seconds = normalizedInput.second || 0,
  2327. milliseconds = normalizedInput.millisecond || 0;
  2328. this._isValid = isDurationValid(normalizedInput);
  2329. // representation for dateAddRemove
  2330. this._milliseconds = +milliseconds +
  2331. seconds * 1e3 + // 1000
  2332. minutes * 6e4 + // 1000 * 60
  2333. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2334. // Because of dateAddRemove treats 24 hours as different from a
  2335. // day when working around DST, we need to store them separately
  2336. this._days = +days +
  2337. weeks * 7;
  2338. // It is impossible to translate months into days without knowing
  2339. // which months you are are talking about, so we have to store
  2340. // it separately.
  2341. this._months = +months +
  2342. quarters * 3 +
  2343. years * 12;
  2344. this._data = {};
  2345. this._locale = getLocale();
  2346. this._bubble();
  2347. }
  2348. function isDuration (obj) {
  2349. return obj instanceof Duration;
  2350. }
  2351. function absRound (number) {
  2352. if (number < 0) {
  2353. return Math.round(-1 * number) * -1;
  2354. } else {
  2355. return Math.round(number);
  2356. }
  2357. }
  2358. // FORMATTING
  2359. function offset (token, separator) {
  2360. addFormatToken(token, 0, 0, function () {
  2361. var offset = this.utcOffset();
  2362. var sign = '+';
  2363. if (offset < 0) {
  2364. offset = -offset;
  2365. sign = '-';
  2366. }
  2367. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  2368. });
  2369. }
  2370. offset('Z', ':');
  2371. offset('ZZ', '');
  2372. // PARSING
  2373. addRegexToken('Z', matchShortOffset);
  2374. addRegexToken('ZZ', matchShortOffset);
  2375. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2376. config._useUTC = true;
  2377. config._tzm = offsetFromString(matchShortOffset, input);
  2378. });
  2379. // HELPERS
  2380. // timezone chunker
  2381. // '+10:00' > ['10', '00']
  2382. // '-1530' > ['-15', '30']
  2383. var chunkOffset = /([\+\-]|\d\d)/gi;
  2384. function offsetFromString(matcher, string) {
  2385. var matches = (string || '').match(matcher);
  2386. if (matches === null) {
  2387. return null;
  2388. }
  2389. var chunk = matches[matches.length - 1] || [];
  2390. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2391. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  2392. return minutes === 0 ?
  2393. 0 :
  2394. parts[0] === '+' ? minutes : -minutes;
  2395. }
  2396. // Return a moment from input, that is local/utc/zone equivalent to model.
  2397. function cloneWithOffset(input, model) {
  2398. var res, diff;
  2399. if (model._isUTC) {
  2400. res = model.clone();
  2401. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  2402. // Use low-level api, because this fn is low-level api.
  2403. res._d.setTime(res._d.valueOf() + diff);
  2404. hooks.updateOffset(res, false);
  2405. return res;
  2406. } else {
  2407. return createLocal(input).local();
  2408. }
  2409. }
  2410. function getDateOffset (m) {
  2411. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2412. // https://github.com/moment/moment/pull/1871
  2413. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  2414. }
  2415. // HOOKS
  2416. // This function will be called whenever a moment is mutated.
  2417. // It is intended to keep the offset in sync with the timezone.
  2418. hooks.updateOffset = function () {};
  2419. // MOMENTS
  2420. // keepLocalTime = true means only change the timezone, without
  2421. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2422. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2423. // +0200, so we adjust the time as needed, to be valid.
  2424. //
  2425. // Keeping the time actually adds/subtracts (one hour)
  2426. // from the actual represented time. That is why we call updateOffset
  2427. // a second time. In case it wants us to change the offset again
  2428. // _changeInProgress == true case, then we have to adjust, because
  2429. // there is no such time in the given timezone.
  2430. function getSetOffset (input, keepLocalTime, keepMinutes) {
  2431. var offset = this._offset || 0,
  2432. localAdjust;
  2433. if (!this.isValid()) {
  2434. return input != null ? this : NaN;
  2435. }
  2436. if (input != null) {
  2437. if (typeof input === 'string') {
  2438. input = offsetFromString(matchShortOffset, input);
  2439. if (input === null) {
  2440. return this;
  2441. }
  2442. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2443. input = input * 60;
  2444. }
  2445. if (!this._isUTC && keepLocalTime) {
  2446. localAdjust = getDateOffset(this);
  2447. }
  2448. this._offset = input;
  2449. this._isUTC = true;
  2450. if (localAdjust != null) {
  2451. this.add(localAdjust, 'm');
  2452. }
  2453. if (offset !== input) {
  2454. if (!keepLocalTime || this._changeInProgress) {
  2455. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  2456. } else if (!this._changeInProgress) {
  2457. this._changeInProgress = true;
  2458. hooks.updateOffset(this, true);
  2459. this._changeInProgress = null;
  2460. }
  2461. }
  2462. return this;
  2463. } else {
  2464. return this._isUTC ? offset : getDateOffset(this);
  2465. }
  2466. }
  2467. function getSetZone (input, keepLocalTime) {
  2468. if (input != null) {
  2469. if (typeof input !== 'string') {
  2470. input = -input;
  2471. }
  2472. this.utcOffset(input, keepLocalTime);
  2473. return this;
  2474. } else {
  2475. return -this.utcOffset();
  2476. }
  2477. }
  2478. function setOffsetToUTC (keepLocalTime) {
  2479. return this.utcOffset(0, keepLocalTime);
  2480. }
  2481. function setOffsetToLocal (keepLocalTime) {
  2482. if (this._isUTC) {
  2483. this.utcOffset(0, keepLocalTime);
  2484. this._isUTC = false;
  2485. if (keepLocalTime) {
  2486. this.subtract(getDateOffset(this), 'm');
  2487. }
  2488. }
  2489. return this;
  2490. }
  2491. function setOffsetToParsedOffset () {
  2492. if (this._tzm != null) {
  2493. this.utcOffset(this._tzm, false, true);
  2494. } else if (typeof this._i === 'string') {
  2495. var tZone = offsetFromString(matchOffset, this._i);
  2496. if (tZone != null) {
  2497. this.utcOffset(tZone);
  2498. }
  2499. else {
  2500. this.utcOffset(0, true);
  2501. }
  2502. }
  2503. return this;
  2504. }
  2505. function hasAlignedHourOffset (input) {
  2506. if (!this.isValid()) {
  2507. return false;
  2508. }
  2509. input = input ? createLocal(input).utcOffset() : 0;
  2510. return (this.utcOffset() - input) % 60 === 0;
  2511. }
  2512. function isDaylightSavingTime () {
  2513. return (
  2514. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2515. this.utcOffset() > this.clone().month(5).utcOffset()
  2516. );
  2517. }
  2518. function isDaylightSavingTimeShifted () {
  2519. if (!isUndefined(this._isDSTShifted)) {
  2520. return this._isDSTShifted;
  2521. }
  2522. var c = {};
  2523. copyConfig(c, this);
  2524. c = prepareConfig(c);
  2525. if (c._a) {
  2526. var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2527. this._isDSTShifted = this.isValid() &&
  2528. compareArrays(c._a, other.toArray()) > 0;
  2529. } else {
  2530. this._isDSTShifted = false;
  2531. }
  2532. return this._isDSTShifted;
  2533. }
  2534. function isLocal () {
  2535. return this.isValid() ? !this._isUTC : false;
  2536. }
  2537. function isUtcOffset () {
  2538. return this.isValid() ? this._isUTC : false;
  2539. }
  2540. function isUtc () {
  2541. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2542. }
  2543. // ASP.NET json date format regex
  2544. var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
  2545. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  2546. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  2547. // and further modified to allow for strings containing both week and day
  2548. 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)?)?$/;
  2549. function createDuration (input, key) {
  2550. var duration = input,
  2551. // matching against regexp is expensive, do it on demand
  2552. match = null,
  2553. sign,
  2554. ret,
  2555. diffRes;
  2556. if (isDuration(input)) {
  2557. duration = {
  2558. ms : input._milliseconds,
  2559. d : input._days,
  2560. M : input._months
  2561. };
  2562. } else if (isNumber(input)) {
  2563. duration = {};
  2564. if (key) {
  2565. duration[key] = input;
  2566. } else {
  2567. duration.milliseconds = input;
  2568. }
  2569. } else if (!!(match = aspNetRegex.exec(input))) {
  2570. sign = (match[1] === '-') ? -1 : 1;
  2571. duration = {
  2572. y : 0,
  2573. d : toInt(match[DATE]) * sign,
  2574. h : toInt(match[HOUR]) * sign,
  2575. m : toInt(match[MINUTE]) * sign,
  2576. s : toInt(match[SECOND]) * sign,
  2577. ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  2578. };
  2579. } else if (!!(match = isoRegex.exec(input))) {
  2580. sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
  2581. duration = {
  2582. y : parseIso(match[2], sign),
  2583. M : parseIso(match[3], sign),
  2584. w : parseIso(match[4], sign),
  2585. d : parseIso(match[5], sign),
  2586. h : parseIso(match[6], sign),
  2587. m : parseIso(match[7], sign),
  2588. s : parseIso(match[8], sign)
  2589. };
  2590. } else if (duration == null) {// checks for null or undefined
  2591. duration = {};
  2592. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  2593. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  2594. duration = {};
  2595. duration.ms = diffRes.milliseconds;
  2596. duration.M = diffRes.months;
  2597. }
  2598. ret = new Duration(duration);
  2599. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  2600. ret._locale = input._locale;
  2601. }
  2602. return ret;
  2603. }
  2604. createDuration.fn = Duration.prototype;
  2605. createDuration.invalid = createInvalid$1;
  2606. function parseIso (inp, sign) {
  2607. // We'd normally use ~~inp for this, but unfortunately it also
  2608. // converts floats to ints.
  2609. // inp may be undefined, so careful calling replace on it.
  2610. var res = inp && parseFloat(inp.replace(',', '.'));
  2611. // apply sign while we're at it
  2612. return (isNaN(res) ? 0 : res) * sign;
  2613. }
  2614. function positiveMomentsDifference(base, other) {
  2615. var res = {milliseconds: 0, months: 0};
  2616. res.months = other.month() - base.month() +
  2617. (other.year() - base.year()) * 12;
  2618. if (base.clone().add(res.months, 'M').isAfter(other)) {
  2619. --res.months;
  2620. }
  2621. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  2622. return res;
  2623. }
  2624. function momentsDifference(base, other) {
  2625. var res;
  2626. if (!(base.isValid() && other.isValid())) {
  2627. return {milliseconds: 0, months: 0};
  2628. }
  2629. other = cloneWithOffset(other, base);
  2630. if (base.isBefore(other)) {
  2631. res = positiveMomentsDifference(base, other);
  2632. } else {
  2633. res = positiveMomentsDifference(other, base);
  2634. res.milliseconds = -res.milliseconds;
  2635. res.months = -res.months;
  2636. }
  2637. return res;
  2638. }
  2639. // TODO: remove 'name' arg after deprecation is removed
  2640. function createAdder(direction, name) {
  2641. return function (val, period) {
  2642. var dur, tmp;
  2643. //invert the arguments, but complain about it
  2644. if (period !== null && !isNaN(+period)) {
  2645. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
  2646. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  2647. tmp = val; val = period; period = tmp;
  2648. }
  2649. val = typeof val === 'string' ? +val : val;
  2650. dur = createDuration(val, period);
  2651. addSubtract(this, dur, direction);
  2652. return this;
  2653. };
  2654. }
  2655. function addSubtract (mom, duration, isAdding, updateOffset) {
  2656. var milliseconds = duration._milliseconds,
  2657. days = absRound(duration._days),
  2658. months = absRound(duration._months);
  2659. if (!mom.isValid()) {
  2660. // No op
  2661. return;
  2662. }
  2663. updateOffset = updateOffset == null ? true : updateOffset;
  2664. if (months) {
  2665. setMonth(mom, get(mom, 'Month') + months * isAdding);
  2666. }
  2667. if (days) {
  2668. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  2669. }
  2670. if (milliseconds) {
  2671. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  2672. }
  2673. if (updateOffset) {
  2674. hooks.updateOffset(mom, days || months);
  2675. }
  2676. }
  2677. var add = createAdder(1, 'add');
  2678. var subtract = createAdder(-1, 'subtract');
  2679. function getCalendarFormat(myMoment, now) {
  2680. var diff = myMoment.diff(now, 'days', true);
  2681. return diff < -6 ? 'sameElse' :
  2682. diff < -1 ? 'lastWeek' :
  2683. diff < 0 ? 'lastDay' :
  2684. diff < 1 ? 'sameDay' :
  2685. diff < 2 ? 'nextDay' :
  2686. diff < 7 ? 'nextWeek' : 'sameElse';
  2687. }
  2688. function calendar$1 (time, formats) {
  2689. // We want to compare the start of today, vs this.
  2690. // Getting start-of-today depends on whether we're local/utc/offset or not.
  2691. var now = time || createLocal(),
  2692. sod = cloneWithOffset(now, this).startOf('day'),
  2693. format = hooks.calendarFormat(this, sod) || 'sameElse';
  2694. var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  2695. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  2696. }
  2697. function clone () {
  2698. return new Moment(this);
  2699. }
  2700. function isAfter (input, units) {
  2701. var localInput = isMoment(input) ? input : createLocal(input);
  2702. if (!(this.isValid() && localInput.isValid())) {
  2703. return false;
  2704. }
  2705. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  2706. if (units === 'millisecond') {
  2707. return this.valueOf() > localInput.valueOf();
  2708. } else {
  2709. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  2710. }
  2711. }
  2712. function isBefore (input, units) {
  2713. var localInput = isMoment(input) ? input : createLocal(input);
  2714. if (!(this.isValid() && localInput.isValid())) {
  2715. return false;
  2716. }
  2717. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  2718. if (units === 'millisecond') {
  2719. return this.valueOf() < localInput.valueOf();
  2720. } else {
  2721. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  2722. }
  2723. }
  2724. function isBetween (from, to, units, inclusivity) {
  2725. inclusivity = inclusivity || '()';
  2726. return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
  2727. (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
  2728. }
  2729. function isSame (input, units) {
  2730. var localInput = isMoment(input) ? input : createLocal(input),
  2731. inputMs;
  2732. if (!(this.isValid() && localInput.isValid())) {
  2733. return false;
  2734. }
  2735. units = normalizeUnits(units || 'millisecond');
  2736. if (units === 'millisecond') {
  2737. return this.valueOf() === localInput.valueOf();
  2738. } else {
  2739. inputMs = localInput.valueOf();
  2740. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  2741. }
  2742. }
  2743. function isSameOrAfter (input, units) {
  2744. return this.isSame(input, units) || this.isAfter(input,units);
  2745. }
  2746. function isSameOrBefore (input, units) {
  2747. return this.isSame(input, units) || this.isBefore(input,units);
  2748. }
  2749. function diff (input, units, asFloat) {
  2750. var that,
  2751. zoneDelta,
  2752. delta, output;
  2753. if (!this.isValid()) {
  2754. return NaN;
  2755. }
  2756. that = cloneWithOffset(input, this);
  2757. if (!that.isValid()) {
  2758. return NaN;
  2759. }
  2760. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  2761. units = normalizeUnits(units);
  2762. switch (units) {
  2763. case 'year': output = monthDiff(this, that) / 12; break;
  2764. case 'month': output = monthDiff(this, that); break;
  2765. case 'quarter': output = monthDiff(this, that) / 3; break;
  2766. case 'second': output = (this - that) / 1e3; break; // 1000
  2767. case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
  2768. case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
  2769. case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
  2770. case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
  2771. default: output = this - that;
  2772. }
  2773. return asFloat ? output : absFloor(output);
  2774. }
  2775. function monthDiff (a, b) {
  2776. // difference in months
  2777. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  2778. // b is in (anchor - 1 month, anchor + 1 month)
  2779. anchor = a.clone().add(wholeMonthDiff, 'months'),
  2780. anchor2, adjust;
  2781. if (b - anchor < 0) {
  2782. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  2783. // linear across the month
  2784. adjust = (b - anchor) / (anchor - anchor2);
  2785. } else {
  2786. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  2787. // linear across the month
  2788. adjust = (b - anchor) / (anchor2 - anchor);
  2789. }
  2790. //check for negative zero, return zero if negative zero
  2791. return -(wholeMonthDiff + adjust) || 0;
  2792. }
  2793. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  2794. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  2795. function toString () {
  2796. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  2797. }
  2798. function toISOString() {
  2799. if (!this.isValid()) {
  2800. return null;
  2801. }
  2802. var m = this.clone().utc();
  2803. if (m.year() < 0 || m.year() > 9999) {
  2804. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  2805. }
  2806. if (isFunction(Date.prototype.toISOString)) {
  2807. // native implementation is ~50x faster, use it when we can
  2808. return this.toDate().toISOString();
  2809. }
  2810. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  2811. }
  2812. /**
  2813. * Return a human readable representation of a moment that can
  2814. * also be evaluated to get a new moment which is the same
  2815. *
  2816. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  2817. */
  2818. function inspect () {
  2819. if (!this.isValid()) {
  2820. return 'moment.invalid(/* ' + this._i + ' */)';
  2821. }
  2822. var func = 'moment';
  2823. var zone = '';
  2824. if (!this.isLocal()) {
  2825. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  2826. zone = 'Z';
  2827. }
  2828. var prefix = '[' + func + '("]';
  2829. var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
  2830. var datetime = '-MM-DD[T]HH:mm:ss.SSS';
  2831. var suffix = zone + '[")]';
  2832. return this.format(prefix + year + datetime + suffix);
  2833. }
  2834. function format (inputString) {
  2835. if (!inputString) {
  2836. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  2837. }
  2838. var output = formatMoment(this, inputString);
  2839. return this.localeData().postformat(output);
  2840. }
  2841. function from (time, withoutSuffix) {
  2842. if (this.isValid() &&
  2843. ((isMoment(time) && time.isValid()) ||
  2844. createLocal(time).isValid())) {
  2845. return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  2846. } else {
  2847. return this.localeData().invalidDate();
  2848. }
  2849. }
  2850. function fromNow (withoutSuffix) {
  2851. return this.from(createLocal(), withoutSuffix);
  2852. }
  2853. function to (time, withoutSuffix) {
  2854. if (this.isValid() &&
  2855. ((isMoment(time) && time.isValid()) ||
  2856. createLocal(time).isValid())) {
  2857. return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  2858. } else {
  2859. return this.localeData().invalidDate();
  2860. }
  2861. }
  2862. function toNow (withoutSuffix) {
  2863. return this.to(createLocal(), withoutSuffix);
  2864. }
  2865. // If passed a locale key, it will set the locale for this
  2866. // instance. Otherwise, it will return the locale configuration
  2867. // variables for this instance.
  2868. function locale (key) {
  2869. var newLocaleData;
  2870. if (key === undefined) {
  2871. return this._locale._abbr;
  2872. } else {
  2873. newLocaleData = getLocale(key);
  2874. if (newLocaleData != null) {
  2875. this._locale = newLocaleData;
  2876. }
  2877. return this;
  2878. }
  2879. }
  2880. var lang = deprecate(
  2881. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  2882. function (key) {
  2883. if (key === undefined) {
  2884. return this.localeData();
  2885. } else {
  2886. return this.locale(key);
  2887. }
  2888. }
  2889. );
  2890. function localeData () {
  2891. return this._locale;
  2892. }
  2893. function startOf (units) {
  2894. units = normalizeUnits(units);
  2895. // the following switch intentionally omits break keywords
  2896. // to utilize falling through the cases.
  2897. switch (units) {
  2898. case 'year':
  2899. this.month(0);
  2900. /* falls through */
  2901. case 'quarter':
  2902. case 'month':
  2903. this.date(1);
  2904. /* falls through */
  2905. case 'week':
  2906. case 'isoWeek':
  2907. case 'day':
  2908. case 'date':
  2909. this.hours(0);
  2910. /* falls through */
  2911. case 'hour':
  2912. this.minutes(0);
  2913. /* falls through */
  2914. case 'minute':
  2915. this.seconds(0);
  2916. /* falls through */
  2917. case 'second':
  2918. this.milliseconds(0);
  2919. }
  2920. // weeks are a special case
  2921. if (units === 'week') {
  2922. this.weekday(0);
  2923. }
  2924. if (units === 'isoWeek') {
  2925. this.isoWeekday(1);
  2926. }
  2927. // quarters are also special
  2928. if (units === 'quarter') {
  2929. this.month(Math.floor(this.month() / 3) * 3);
  2930. }
  2931. return this;
  2932. }
  2933. function endOf (units) {
  2934. units = normalizeUnits(units);
  2935. if (units === undefined || units === 'millisecond') {
  2936. return this;
  2937. }
  2938. // 'date' is an alias for 'day', so it should be considered as such.
  2939. if (units === 'date') {
  2940. units = 'day';
  2941. }
  2942. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  2943. }
  2944. function valueOf () {
  2945. return this._d.valueOf() - ((this._offset || 0) * 60000);
  2946. }
  2947. function unix () {
  2948. return Math.floor(this.valueOf() / 1000);
  2949. }
  2950. function toDate () {
  2951. return new Date(this.valueOf());
  2952. }
  2953. function toArray () {
  2954. var m = this;
  2955. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  2956. }
  2957. function toObject () {
  2958. var m = this;
  2959. return {
  2960. years: m.year(),
  2961. months: m.month(),
  2962. date: m.date(),
  2963. hours: m.hours(),
  2964. minutes: m.minutes(),
  2965. seconds: m.seconds(),
  2966. milliseconds: m.milliseconds()
  2967. };
  2968. }
  2969. function toJSON () {
  2970. // new Date(NaN).toJSON() === null
  2971. return this.isValid() ? this.toISOString() : null;
  2972. }
  2973. function isValid$2 () {
  2974. return isValid(this);
  2975. }
  2976. function parsingFlags () {
  2977. return extend({}, getParsingFlags(this));
  2978. }
  2979. function invalidAt () {
  2980. return getParsingFlags(this).overflow;
  2981. }
  2982. function creationData() {
  2983. return {
  2984. input: this._i,
  2985. format: this._f,
  2986. locale: this._locale,
  2987. isUTC: this._isUTC,
  2988. strict: this._strict
  2989. };
  2990. }
  2991. // FORMATTING
  2992. addFormatToken(0, ['gg', 2], 0, function () {
  2993. return this.weekYear() % 100;
  2994. });
  2995. addFormatToken(0, ['GG', 2], 0, function () {
  2996. return this.isoWeekYear() % 100;
  2997. });
  2998. function addWeekYearFormatToken (token, getter) {
  2999. addFormatToken(0, [token, token.length], 0, getter);
  3000. }
  3001. addWeekYearFormatToken('gggg', 'weekYear');
  3002. addWeekYearFormatToken('ggggg', 'weekYear');
  3003. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  3004. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  3005. // ALIASES
  3006. addUnitAlias('weekYear', 'gg');
  3007. addUnitAlias('isoWeekYear', 'GG');
  3008. // PRIORITY
  3009. addUnitPriority('weekYear', 1);
  3010. addUnitPriority('isoWeekYear', 1);
  3011. // PARSING
  3012. addRegexToken('G', matchSigned);
  3013. addRegexToken('g', matchSigned);
  3014. addRegexToken('GG', match1to2, match2);
  3015. addRegexToken('gg', match1to2, match2);
  3016. addRegexToken('GGGG', match1to4, match4);
  3017. addRegexToken('gggg', match1to4, match4);
  3018. addRegexToken('GGGGG', match1to6, match6);
  3019. addRegexToken('ggggg', match1to6, match6);
  3020. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  3021. week[token.substr(0, 2)] = toInt(input);
  3022. });
  3023. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  3024. week[token] = hooks.parseTwoDigitYear(input);
  3025. });
  3026. // MOMENTS
  3027. function getSetWeekYear (input) {
  3028. return getSetWeekYearHelper.call(this,
  3029. input,
  3030. this.week(),
  3031. this.weekday(),
  3032. this.localeData()._week.dow,
  3033. this.localeData()._week.doy);
  3034. }
  3035. function getSetISOWeekYear (input) {
  3036. return getSetWeekYearHelper.call(this,
  3037. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  3038. }
  3039. function getISOWeeksInYear () {
  3040. return weeksInYear(this.year(), 1, 4);
  3041. }
  3042. function getWeeksInYear () {
  3043. var weekInfo = this.localeData()._week;
  3044. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  3045. }
  3046. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  3047. var weeksTarget;
  3048. if (input == null) {
  3049. return weekOfYear(this, dow, doy).year;
  3050. } else {
  3051. weeksTarget = weeksInYear(input, dow, doy);
  3052. if (week > weeksTarget) {
  3053. week = weeksTarget;
  3054. }
  3055. return setWeekAll.call(this, input, week, weekday, dow, doy);
  3056. }
  3057. }
  3058. function setWeekAll(weekYear, week, weekday, dow, doy) {
  3059. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  3060. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  3061. this.year(date.getUTCFullYear());
  3062. this.month(date.getUTCMonth());
  3063. this.date(date.getUTCDate());
  3064. return this;
  3065. }
  3066. // FORMATTING
  3067. addFormatToken('Q', 0, 'Qo', 'quarter');
  3068. // ALIASES
  3069. addUnitAlias('quarter', 'Q');
  3070. // PRIORITY
  3071. addUnitPriority('quarter', 7);
  3072. // PARSING
  3073. addRegexToken('Q', match1);
  3074. addParseToken('Q', function (input, array) {
  3075. array[MONTH] = (toInt(input) - 1) * 3;
  3076. });
  3077. // MOMENTS
  3078. function getSetQuarter (input) {
  3079. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  3080. }
  3081. // FORMATTING
  3082. addFormatToken('D', ['DD', 2], 'Do', 'date');
  3083. // ALIASES
  3084. addUnitAlias('date', 'D');
  3085. // PRIOROITY
  3086. addUnitPriority('date', 9);
  3087. // PARSING
  3088. addRegexToken('D', match1to2);
  3089. addRegexToken('DD', match1to2, match2);
  3090. addRegexToken('Do', function (isStrict, locale) {
  3091. // TODO: Remove "ordinalParse" fallback in next major release.
  3092. return isStrict ?
  3093. (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
  3094. locale._dayOfMonthOrdinalParseLenient;
  3095. });
  3096. addParseToken(['D', 'DD'], DATE);
  3097. addParseToken('Do', function (input, array) {
  3098. array[DATE] = toInt(input.match(match1to2)[0]);
  3099. });
  3100. // MOMENTS
  3101. var getSetDayOfMonth = makeGetSet('Date', true);
  3102. // FORMATTING
  3103. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  3104. // ALIASES
  3105. addUnitAlias('dayOfYear', 'DDD');
  3106. // PRIORITY
  3107. addUnitPriority('dayOfYear', 4);
  3108. // PARSING
  3109. addRegexToken('DDD', match1to3);
  3110. addRegexToken('DDDD', match3);
  3111. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  3112. config._dayOfYear = toInt(input);
  3113. });
  3114. // HELPERS
  3115. // MOMENTS
  3116. function getSetDayOfYear (input) {
  3117. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  3118. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  3119. }
  3120. // FORMATTING
  3121. addFormatToken('m', ['mm', 2], 0, 'minute');
  3122. // ALIASES
  3123. addUnitAlias('minute', 'm');
  3124. // PRIORITY
  3125. addUnitPriority('minute', 14);
  3126. // PARSING
  3127. addRegexToken('m', match1to2);
  3128. addRegexToken('mm', match1to2, match2);
  3129. addParseToken(['m', 'mm'], MINUTE);
  3130. // MOMENTS
  3131. var getSetMinute = makeGetSet('Minutes', false);
  3132. // FORMATTING
  3133. addFormatToken('s', ['ss', 2], 0, 'second');
  3134. // ALIASES
  3135. addUnitAlias('second', 's');
  3136. // PRIORITY
  3137. addUnitPriority('second', 15);
  3138. // PARSING
  3139. addRegexToken('s', match1to2);
  3140. addRegexToken('ss', match1to2, match2);
  3141. addParseToken(['s', 'ss'], SECOND);
  3142. // MOMENTS
  3143. var getSetSecond = makeGetSet('Seconds', false);
  3144. // FORMATTING
  3145. addFormatToken('S', 0, 0, function () {
  3146. return ~~(this.millisecond() / 100);
  3147. });
  3148. addFormatToken(0, ['SS', 2], 0, function () {
  3149. return ~~(this.millisecond() / 10);
  3150. });
  3151. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  3152. addFormatToken(0, ['SSSS', 4], 0, function () {
  3153. return this.millisecond() * 10;
  3154. });
  3155. addFormatToken(0, ['SSSSS', 5], 0, function () {
  3156. return this.millisecond() * 100;
  3157. });
  3158. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  3159. return this.millisecond() * 1000;
  3160. });
  3161. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  3162. return this.millisecond() * 10000;
  3163. });
  3164. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  3165. return this.millisecond() * 100000;
  3166. });
  3167. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  3168. return this.millisecond() * 1000000;
  3169. });
  3170. // ALIASES
  3171. addUnitAlias('millisecond', 'ms');
  3172. // PRIORITY
  3173. addUnitPriority('millisecond', 16);
  3174. // PARSING
  3175. addRegexToken('S', match1to3, match1);
  3176. addRegexToken('SS', match1to3, match2);
  3177. addRegexToken('SSS', match1to3, match3);
  3178. var token;
  3179. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  3180. addRegexToken(token, matchUnsigned);
  3181. }
  3182. function parseMs(input, array) {
  3183. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  3184. }
  3185. for (token = 'S'; token.length <= 9; token += 'S') {
  3186. addParseToken(token, parseMs);
  3187. }
  3188. // MOMENTS
  3189. var getSetMillisecond = makeGetSet('Milliseconds', false);
  3190. // FORMATTING
  3191. addFormatToken('z', 0, 0, 'zoneAbbr');
  3192. addFormatToken('zz', 0, 0, 'zoneName');
  3193. // MOMENTS
  3194. function getZoneAbbr () {
  3195. return this._isUTC ? 'UTC' : '';
  3196. }
  3197. function getZoneName () {
  3198. return this._isUTC ? 'Coordinated Universal Time' : '';
  3199. }
  3200. var proto = Moment.prototype;
  3201. proto.add = add;
  3202. proto.calendar = calendar$1;
  3203. proto.clone = clone;
  3204. proto.diff = diff;
  3205. proto.endOf = endOf;
  3206. proto.format = format;
  3207. proto.from = from;
  3208. proto.fromNow = fromNow;
  3209. proto.to = to;
  3210. proto.toNow = toNow;
  3211. proto.get = stringGet;
  3212. proto.invalidAt = invalidAt;
  3213. proto.isAfter = isAfter;
  3214. proto.isBefore = isBefore;
  3215. proto.isBetween = isBetween;
  3216. proto.isSame = isSame;
  3217. proto.isSameOrAfter = isSameOrAfter;
  3218. proto.isSameOrBefore = isSameOrBefore;
  3219. proto.isValid = isValid$2;
  3220. proto.lang = lang;
  3221. proto.locale = locale;
  3222. proto.localeData = localeData;
  3223. proto.max = prototypeMax;
  3224. proto.min = prototypeMin;
  3225. proto.parsingFlags = parsingFlags;
  3226. proto.set = stringSet;
  3227. proto.startOf = startOf;
  3228. proto.subtract = subtract;
  3229. proto.toArray = toArray;
  3230. proto.toObject = toObject;
  3231. proto.toDate = toDate;
  3232. proto.toISOString = toISOString;
  3233. proto.inspect = inspect;
  3234. proto.toJSON = toJSON;
  3235. proto.toString = toString;
  3236. proto.unix = unix;
  3237. proto.valueOf = valueOf;
  3238. proto.creationData = creationData;
  3239. // Year
  3240. proto.year = getSetYear;
  3241. proto.isLeapYear = getIsLeapYear;
  3242. // Week Year
  3243. proto.weekYear = getSetWeekYear;
  3244. proto.isoWeekYear = getSetISOWeekYear;
  3245. // Quarter
  3246. proto.quarter = proto.quarters = getSetQuarter;
  3247. // Month
  3248. proto.month = getSetMonth;
  3249. proto.daysInMonth = getDaysInMonth;
  3250. // Week
  3251. proto.week = proto.weeks = getSetWeek;
  3252. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  3253. proto.weeksInYear = getWeeksInYear;
  3254. proto.isoWeeksInYear = getISOWeeksInYear;
  3255. // Day
  3256. proto.date = getSetDayOfMonth;
  3257. proto.day = proto.days = getSetDayOfWeek;
  3258. proto.weekday = getSetLocaleDayOfWeek;
  3259. proto.isoWeekday = getSetISODayOfWeek;
  3260. proto.dayOfYear = getSetDayOfYear;
  3261. // Hour
  3262. proto.hour = proto.hours = getSetHour;
  3263. // Minute
  3264. proto.minute = proto.minutes = getSetMinute;
  3265. // Second
  3266. proto.second = proto.seconds = getSetSecond;
  3267. // Millisecond
  3268. proto.millisecond = proto.milliseconds = getSetMillisecond;
  3269. // Offset
  3270. proto.utcOffset = getSetOffset;
  3271. proto.utc = setOffsetToUTC;
  3272. proto.local = setOffsetToLocal;
  3273. proto.parseZone = setOffsetToParsedOffset;
  3274. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  3275. proto.isDST = isDaylightSavingTime;
  3276. proto.isLocal = isLocal;
  3277. proto.isUtcOffset = isUtcOffset;
  3278. proto.isUtc = isUtc;
  3279. proto.isUTC = isUtc;
  3280. // Timezone
  3281. proto.zoneAbbr = getZoneAbbr;
  3282. proto.zoneName = getZoneName;
  3283. // Deprecations
  3284. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  3285. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  3286. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  3287. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  3288. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  3289. function createUnix (input) {
  3290. return createLocal(input * 1000);
  3291. }
  3292. function createInZone () {
  3293. return createLocal.apply(null, arguments).parseZone();
  3294. }
  3295. function preParsePostFormat (string) {
  3296. return string;
  3297. }
  3298. var proto$1 = Locale.prototype;
  3299. proto$1.calendar = calendar;
  3300. proto$1.longDateFormat = longDateFormat;
  3301. proto$1.invalidDate = invalidDate;
  3302. proto$1.ordinal = ordinal;
  3303. proto$1.preparse = preParsePostFormat;
  3304. proto$1.postformat = preParsePostFormat;
  3305. proto$1.relativeTime = relativeTime;
  3306. proto$1.pastFuture = pastFuture;
  3307. proto$1.set = set;
  3308. // Month
  3309. proto$1.months = localeMonths;
  3310. proto$1.monthsShort = localeMonthsShort;
  3311. proto$1.monthsParse = localeMonthsParse;
  3312. proto$1.monthsRegex = monthsRegex;
  3313. proto$1.monthsShortRegex = monthsShortRegex;
  3314. // Week
  3315. proto$1.week = localeWeek;
  3316. proto$1.firstDayOfYear = localeFirstDayOfYear;
  3317. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  3318. // Day of Week
  3319. proto$1.weekdays = localeWeekdays;
  3320. proto$1.weekdaysMin = localeWeekdaysMin;
  3321. proto$1.weekdaysShort = localeWeekdaysShort;
  3322. proto$1.weekdaysParse = localeWeekdaysParse;
  3323. proto$1.weekdaysRegex = weekdaysRegex;
  3324. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  3325. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  3326. // Hours
  3327. proto$1.isPM = localeIsPM;
  3328. proto$1.meridiem = localeMeridiem;
  3329. function get$1 (format, index, field, setter) {
  3330. var locale = getLocale();
  3331. var utc = createUTC().set(setter, index);
  3332. return locale[field](utc, format);
  3333. }
  3334. function listMonthsImpl (format, index, field) {
  3335. if (isNumber(format)) {
  3336. index = format;
  3337. format = undefined;
  3338. }
  3339. format = format || '';
  3340. if (index != null) {
  3341. return get$1(format, index, field, 'month');
  3342. }
  3343. var i;
  3344. var out = [];
  3345. for (i = 0; i < 12; i++) {
  3346. out[i] = get$1(format, i, field, 'month');
  3347. }
  3348. return out;
  3349. }
  3350. // ()
  3351. // (5)
  3352. // (fmt, 5)
  3353. // (fmt)
  3354. // (true)
  3355. // (true, 5)
  3356. // (true, fmt, 5)
  3357. // (true, fmt)
  3358. function listWeekdaysImpl (localeSorted, format, index, field) {
  3359. if (typeof localeSorted === 'boolean') {
  3360. if (isNumber(format)) {
  3361. index = format;
  3362. format = undefined;
  3363. }
  3364. format = format || '';
  3365. } else {
  3366. format = localeSorted;
  3367. index = format;
  3368. localeSorted = false;
  3369. if (isNumber(format)) {
  3370. index = format;
  3371. format = undefined;
  3372. }
  3373. format = format || '';
  3374. }
  3375. var locale = getLocale(),
  3376. shift = localeSorted ? locale._week.dow : 0;
  3377. if (index != null) {
  3378. return get$1(format, (index + shift) % 7, field, 'day');
  3379. }
  3380. var i;
  3381. var out = [];
  3382. for (i = 0; i < 7; i++) {
  3383. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  3384. }
  3385. return out;
  3386. }
  3387. function listMonths (format, index) {
  3388. return listMonthsImpl(format, index, 'months');
  3389. }
  3390. function listMonthsShort (format, index) {
  3391. return listMonthsImpl(format, index, 'monthsShort');
  3392. }
  3393. function listWeekdays (localeSorted, format, index) {
  3394. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  3395. }
  3396. function listWeekdaysShort (localeSorted, format, index) {
  3397. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  3398. }
  3399. function listWeekdaysMin (localeSorted, format, index) {
  3400. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  3401. }
  3402. getSetGlobalLocale('en', {
  3403. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  3404. ordinal : function (number) {
  3405. var b = number % 10,
  3406. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  3407. (b === 1) ? 'st' :
  3408. (b === 2) ? 'nd' :
  3409. (b === 3) ? 'rd' : 'th';
  3410. return number + output;
  3411. }
  3412. });
  3413. // Side effect imports
  3414. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  3415. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  3416. var mathAbs = Math.abs;
  3417. function abs () {
  3418. var data = this._data;
  3419. this._milliseconds = mathAbs(this._milliseconds);
  3420. this._days = mathAbs(this._days);
  3421. this._months = mathAbs(this._months);
  3422. data.milliseconds = mathAbs(data.milliseconds);
  3423. data.seconds = mathAbs(data.seconds);
  3424. data.minutes = mathAbs(data.minutes);
  3425. data.hours = mathAbs(data.hours);
  3426. data.months = mathAbs(data.months);
  3427. data.years = mathAbs(data.years);
  3428. return this;
  3429. }
  3430. function addSubtract$1 (duration, input, value, direction) {
  3431. var other = createDuration(input, value);
  3432. duration._milliseconds += direction * other._milliseconds;
  3433. duration._days += direction * other._days;
  3434. duration._months += direction * other._months;
  3435. return duration._bubble();
  3436. }
  3437. // supports only 2.0-style add(1, 's') or add(duration)
  3438. function add$1 (input, value) {
  3439. return addSubtract$1(this, input, value, 1);
  3440. }
  3441. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  3442. function subtract$1 (input, value) {
  3443. return addSubtract$1(this, input, value, -1);
  3444. }
  3445. function absCeil (number) {
  3446. if (number < 0) {
  3447. return Math.floor(number);
  3448. } else {
  3449. return Math.ceil(number);
  3450. }
  3451. }
  3452. function bubble () {
  3453. var milliseconds = this._milliseconds;
  3454. var days = this._days;
  3455. var months = this._months;
  3456. var data = this._data;
  3457. var seconds, minutes, hours, years, monthsFromDays;
  3458. // if we have a mix of positive and negative values, bubble down first
  3459. // check: https://github.com/moment/moment/issues/2166
  3460. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  3461. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  3462. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  3463. days = 0;
  3464. months = 0;
  3465. }
  3466. // The following code bubbles up values, see the tests for
  3467. // examples of what that means.
  3468. data.milliseconds = milliseconds % 1000;
  3469. seconds = absFloor(milliseconds / 1000);
  3470. data.seconds = seconds % 60;
  3471. minutes = absFloor(seconds / 60);
  3472. data.minutes = minutes % 60;
  3473. hours = absFloor(minutes / 60);
  3474. data.hours = hours % 24;
  3475. days += absFloor(hours / 24);
  3476. // convert days to months
  3477. monthsFromDays = absFloor(daysToMonths(days));
  3478. months += monthsFromDays;
  3479. days -= absCeil(monthsToDays(monthsFromDays));
  3480. // 12 months -> 1 year
  3481. years = absFloor(months / 12);
  3482. months %= 12;
  3483. data.days = days;
  3484. data.months = months;
  3485. data.years = years;
  3486. return this;
  3487. }
  3488. function daysToMonths (days) {
  3489. // 400 years have 146097 days (taking into account leap year rules)
  3490. // 400 years have 12 months === 4800
  3491. return days * 4800 / 146097;
  3492. }
  3493. function monthsToDays (months) {
  3494. // the reverse of daysToMonths
  3495. return months * 146097 / 4800;
  3496. }
  3497. function as (units) {
  3498. if (!this.isValid()) {
  3499. return NaN;
  3500. }
  3501. var days;
  3502. var months;
  3503. var milliseconds = this._milliseconds;
  3504. units = normalizeUnits(units);
  3505. if (units === 'month' || units === 'year') {
  3506. days = this._days + milliseconds / 864e5;
  3507. months = this._months + daysToMonths(days);
  3508. return units === 'month' ? months : months / 12;
  3509. } else {
  3510. // handle milliseconds separately because of floating point math errors (issue #1867)
  3511. days = this._days + Math.round(monthsToDays(this._months));
  3512. switch (units) {
  3513. case 'week' : return days / 7 + milliseconds / 6048e5;
  3514. case 'day' : return days + milliseconds / 864e5;
  3515. case 'hour' : return days * 24 + milliseconds / 36e5;
  3516. case 'minute' : return days * 1440 + milliseconds / 6e4;
  3517. case 'second' : return days * 86400 + milliseconds / 1000;
  3518. // Math.floor prevents floating point math errors here
  3519. case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
  3520. default: throw new Error('Unknown unit ' + units);
  3521. }
  3522. }
  3523. }
  3524. // TODO: Use this.as('ms')?
  3525. function valueOf$1 () {
  3526. if (!this.isValid()) {
  3527. return NaN;
  3528. }
  3529. return (
  3530. this._milliseconds +
  3531. this._days * 864e5 +
  3532. (this._months % 12) * 2592e6 +
  3533. toInt(this._months / 12) * 31536e6
  3534. );
  3535. }
  3536. function makeAs (alias) {
  3537. return function () {
  3538. return this.as(alias);
  3539. };
  3540. }
  3541. var asMilliseconds = makeAs('ms');
  3542. var asSeconds = makeAs('s');
  3543. var asMinutes = makeAs('m');
  3544. var asHours = makeAs('h');
  3545. var asDays = makeAs('d');
  3546. var asWeeks = makeAs('w');
  3547. var asMonths = makeAs('M');
  3548. var asYears = makeAs('y');
  3549. function clone$1 () {
  3550. return createDuration(this);
  3551. }
  3552. function get$2 (units) {
  3553. units = normalizeUnits(units);
  3554. return this.isValid() ? this[units + 's']() : NaN;
  3555. }
  3556. function makeGetter(name) {
  3557. return function () {
  3558. return this.isValid() ? this._data[name] : NaN;
  3559. };
  3560. }
  3561. var milliseconds = makeGetter('milliseconds');
  3562. var seconds = makeGetter('seconds');
  3563. var minutes = makeGetter('minutes');
  3564. var hours = makeGetter('hours');
  3565. var days = makeGetter('days');
  3566. var months = makeGetter('months');
  3567. var years = makeGetter('years');
  3568. function weeks () {
  3569. return absFloor(this.days() / 7);
  3570. }
  3571. var round = Math.round;
  3572. var thresholds = {
  3573. ss: 44, // a few seconds to seconds
  3574. s : 45, // seconds to minute
  3575. m : 45, // minutes to hour
  3576. h : 22, // hours to day
  3577. d : 26, // days to month
  3578. M : 11 // months to year
  3579. };
  3580. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  3581. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  3582. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  3583. }
  3584. function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
  3585. var duration = createDuration(posNegDuration).abs();
  3586. var seconds = round(duration.as('s'));
  3587. var minutes = round(duration.as('m'));
  3588. var hours = round(duration.as('h'));
  3589. var days = round(duration.as('d'));
  3590. var months = round(duration.as('M'));
  3591. var years = round(duration.as('y'));
  3592. var a = seconds <= thresholds.ss && ['s', seconds] ||
  3593. seconds < thresholds.s && ['ss', seconds] ||
  3594. minutes <= 1 && ['m'] ||
  3595. minutes < thresholds.m && ['mm', minutes] ||
  3596. hours <= 1 && ['h'] ||
  3597. hours < thresholds.h && ['hh', hours] ||
  3598. days <= 1 && ['d'] ||
  3599. days < thresholds.d && ['dd', days] ||
  3600. months <= 1 && ['M'] ||
  3601. months < thresholds.M && ['MM', months] ||
  3602. years <= 1 && ['y'] || ['yy', years];
  3603. a[2] = withoutSuffix;
  3604. a[3] = +posNegDuration > 0;
  3605. a[4] = locale;
  3606. return substituteTimeAgo.apply(null, a);
  3607. }
  3608. // This function allows you to set the rounding function for relative time strings
  3609. function getSetRelativeTimeRounding (roundingFunction) {
  3610. if (roundingFunction === undefined) {
  3611. return round;
  3612. }
  3613. if (typeof(roundingFunction) === 'function') {
  3614. round = roundingFunction;
  3615. return true;
  3616. }
  3617. return false;
  3618. }
  3619. // This function allows you to set a threshold for relative time strings
  3620. function getSetRelativeTimeThreshold (threshold, limit) {
  3621. if (thresholds[threshold] === undefined) {
  3622. return false;
  3623. }
  3624. if (limit === undefined) {
  3625. return thresholds[threshold];
  3626. }
  3627. thresholds[threshold] = limit;
  3628. if (threshold === 's') {
  3629. thresholds.ss = limit - 1;
  3630. }
  3631. return true;
  3632. }
  3633. function humanize (withSuffix) {
  3634. if (!this.isValid()) {
  3635. return this.localeData().invalidDate();
  3636. }
  3637. var locale = this.localeData();
  3638. var output = relativeTime$1(this, !withSuffix, locale);
  3639. if (withSuffix) {
  3640. output = locale.pastFuture(+this, output);
  3641. }
  3642. return locale.postformat(output);
  3643. }
  3644. var abs$1 = Math.abs;
  3645. function sign(x) {
  3646. return ((x > 0) - (x < 0)) || +x;
  3647. }
  3648. function toISOString$1() {
  3649. // for ISO strings we do not use the normal bubbling rules:
  3650. // * milliseconds bubble up until they become hours
  3651. // * days do not bubble at all
  3652. // * months bubble up until they become years
  3653. // This is because there is no context-free conversion between hours and days
  3654. // (think of clock changes)
  3655. // and also not between days and months (28-31 days per month)
  3656. if (!this.isValid()) {
  3657. return this.localeData().invalidDate();
  3658. }
  3659. var seconds = abs$1(this._milliseconds) / 1000;
  3660. var days = abs$1(this._days);
  3661. var months = abs$1(this._months);
  3662. var minutes, hours, years;
  3663. // 3600 seconds -> 60 minutes -> 1 hour
  3664. minutes = absFloor(seconds / 60);
  3665. hours = absFloor(minutes / 60);
  3666. seconds %= 60;
  3667. minutes %= 60;
  3668. // 12 months -> 1 year
  3669. years = absFloor(months / 12);
  3670. months %= 12;
  3671. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  3672. var Y = years;
  3673. var M = months;
  3674. var D = days;
  3675. var h = hours;
  3676. var m = minutes;
  3677. var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  3678. var total = this.asSeconds();
  3679. if (!total) {
  3680. // this is the same as C#'s (Noda) and python (isodate)...
  3681. // but not other JS (goog.date)
  3682. return 'P0D';
  3683. }
  3684. var totalSign = total < 0 ? '-' : '';
  3685. var ymSign = sign(this._months) !== sign(total) ? '-' : '';
  3686. var daysSign = sign(this._days) !== sign(total) ? '-' : '';
  3687. var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  3688. return totalSign + 'P' +
  3689. (Y ? ymSign + Y + 'Y' : '') +
  3690. (M ? ymSign + M + 'M' : '') +
  3691. (D ? daysSign + D + 'D' : '') +
  3692. ((h || m || s) ? 'T' : '') +
  3693. (h ? hmsSign + h + 'H' : '') +
  3694. (m ? hmsSign + m + 'M' : '') +
  3695. (s ? hmsSign + s + 'S' : '');
  3696. }
  3697. var proto$2 = Duration.prototype;
  3698. proto$2.isValid = isValid$1;
  3699. proto$2.abs = abs;
  3700. proto$2.add = add$1;
  3701. proto$2.subtract = subtract$1;
  3702. proto$2.as = as;
  3703. proto$2.asMilliseconds = asMilliseconds;
  3704. proto$2.asSeconds = asSeconds;
  3705. proto$2.asMinutes = asMinutes;
  3706. proto$2.asHours = asHours;
  3707. proto$2.asDays = asDays;
  3708. proto$2.asWeeks = asWeeks;
  3709. proto$2.asMonths = asMonths;
  3710. proto$2.asYears = asYears;
  3711. proto$2.valueOf = valueOf$1;
  3712. proto$2._bubble = bubble;
  3713. proto$2.clone = clone$1;
  3714. proto$2.get = get$2;
  3715. proto$2.milliseconds = milliseconds;
  3716. proto$2.seconds = seconds;
  3717. proto$2.minutes = minutes;
  3718. proto$2.hours = hours;
  3719. proto$2.days = days;
  3720. proto$2.weeks = weeks;
  3721. proto$2.months = months;
  3722. proto$2.years = years;
  3723. proto$2.humanize = humanize;
  3724. proto$2.toISOString = toISOString$1;
  3725. proto$2.toString = toISOString$1;
  3726. proto$2.toJSON = toISOString$1;
  3727. proto$2.locale = locale;
  3728. proto$2.localeData = localeData;
  3729. // Deprecations
  3730. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  3731. proto$2.lang = lang;
  3732. // Side effect imports
  3733. // FORMATTING
  3734. addFormatToken('X', 0, 0, 'unix');
  3735. addFormatToken('x', 0, 0, 'valueOf');
  3736. // PARSING
  3737. addRegexToken('x', matchSigned);
  3738. addRegexToken('X', matchTimestamp);
  3739. addParseToken('X', function (input, array, config) {
  3740. config._d = new Date(parseFloat(input, 10) * 1000);
  3741. });
  3742. addParseToken('x', function (input, array, config) {
  3743. config._d = new Date(toInt(input));
  3744. });
  3745. // Side effect imports
  3746. //! moment.js
  3747. //! version : 2.19.4
  3748. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  3749. //! license : MIT
  3750. //! momentjs.com
  3751. hooks.version = '2.19.4';
  3752. setHookCallback(createLocal);
  3753. hooks.fn = proto;
  3754. hooks.min = min;
  3755. hooks.max = max;
  3756. hooks.now = now;
  3757. hooks.utc = createUTC;
  3758. hooks.unix = createUnix;
  3759. hooks.months = listMonths;
  3760. hooks.isDate = isDate;
  3761. hooks.locale = getSetGlobalLocale;
  3762. hooks.invalid = createInvalid;
  3763. hooks.duration = createDuration;
  3764. hooks.isMoment = isMoment;
  3765. hooks.weekdays = listWeekdays;
  3766. hooks.parseZone = createInZone;
  3767. hooks.localeData = getLocale;
  3768. hooks.isDuration = isDuration;
  3769. hooks.monthsShort = listMonthsShort;
  3770. hooks.weekdaysMin = listWeekdaysMin;
  3771. hooks.defineLocale = defineLocale;
  3772. hooks.updateLocale = updateLocale;
  3773. hooks.locales = listLocales;
  3774. hooks.weekdaysShort = listWeekdaysShort;
  3775. hooks.normalizeUnits = normalizeUnits;
  3776. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  3777. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  3778. hooks.calendarFormat = getCalendarFormat;
  3779. hooks.prototype = proto;
  3780. //! moment.js locale configuration
  3781. //! locale : Afrikaans [af]
  3782. //! author : Werner Mollentze : https://github.com/wernerm
  3783. hooks.defineLocale('af', {
  3784. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  3785. monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  3786. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  3787. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  3788. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  3789. meridiemParse: /vm|nm/i,
  3790. isPM : function (input) {
  3791. return /^nm$/i.test(input);
  3792. },
  3793. meridiem : function (hours, minutes, isLower) {
  3794. if (hours < 12) {
  3795. return isLower ? 'vm' : 'VM';
  3796. } else {
  3797. return isLower ? 'nm' : 'NM';
  3798. }
  3799. },
  3800. longDateFormat : {
  3801. LT : 'HH:mm',
  3802. LTS : 'HH:mm:ss',
  3803. L : 'DD/MM/YYYY',
  3804. LL : 'D MMMM YYYY',
  3805. LLL : 'D MMMM YYYY HH:mm',
  3806. LLLL : 'dddd, D MMMM YYYY HH:mm'
  3807. },
  3808. calendar : {
  3809. sameDay : '[Vandag om] LT',
  3810. nextDay : '[Môre om] LT',
  3811. nextWeek : 'dddd [om] LT',
  3812. lastDay : '[Gister om] LT',
  3813. lastWeek : '[Laas] dddd [om] LT',
  3814. sameElse : 'L'
  3815. },
  3816. relativeTime : {
  3817. future : 'oor %s',
  3818. past : '%s gelede',
  3819. s : '\'n paar sekondes',
  3820. m : '\'n minuut',
  3821. mm : '%d minute',
  3822. h : '\'n uur',
  3823. hh : '%d ure',
  3824. d : '\'n dag',
  3825. dd : '%d dae',
  3826. M : '\'n maand',
  3827. MM : '%d maande',
  3828. y : '\'n jaar',
  3829. yy : '%d jaar'
  3830. },
  3831. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  3832. ordinal : function (number) {
  3833. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  3834. },
  3835. week : {
  3836. dow : 1, // Maandag is die eerste dag van die week.
  3837. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  3838. }
  3839. });
  3840. //! moment.js locale configuration
  3841. //! locale : Arabic (Algeria) [ar-dz]
  3842. //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
  3843. hooks.defineLocale('ar-dz', {
  3844. months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3845. monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3846. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3847. weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3848. weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
  3849. weekdaysParseExact : true,
  3850. longDateFormat : {
  3851. LT : 'HH:mm',
  3852. LTS : 'HH:mm:ss',
  3853. L : 'DD/MM/YYYY',
  3854. LL : 'D MMMM YYYY',
  3855. LLL : 'D MMMM YYYY HH:mm',
  3856. LLLL : 'dddd D MMMM YYYY HH:mm'
  3857. },
  3858. calendar : {
  3859. sameDay: '[اليوم على الساعة] LT',
  3860. nextDay: '[غدا على الساعة] LT',
  3861. nextWeek: 'dddd [على الساعة] LT',
  3862. lastDay: '[أمس على الساعة] LT',
  3863. lastWeek: 'dddd [على الساعة] LT',
  3864. sameElse: 'L'
  3865. },
  3866. relativeTime : {
  3867. future : 'في %s',
  3868. past : 'منذ %s',
  3869. s : 'ثوان',
  3870. m : 'دقيقة',
  3871. mm : '%d دقائق',
  3872. h : 'ساعة',
  3873. hh : '%d ساعات',
  3874. d : 'يوم',
  3875. dd : '%d أيام',
  3876. M : 'شهر',
  3877. MM : '%d أشهر',
  3878. y : 'سنة',
  3879. yy : '%d سنوات'
  3880. },
  3881. week : {
  3882. dow : 0, // Sunday is the first day of the week.
  3883. doy : 4 // The week that contains Jan 1st is the first week of the year.
  3884. }
  3885. });
  3886. //! moment.js locale configuration
  3887. //! locale : Arabic (Kuwait) [ar-kw]
  3888. //! author : Nusret Parlak: https://github.com/nusretparlak
  3889. hooks.defineLocale('ar-kw', {
  3890. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3891. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3892. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3893. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3894. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3895. weekdaysParseExact : true,
  3896. longDateFormat : {
  3897. LT : 'HH:mm',
  3898. LTS : 'HH:mm:ss',
  3899. L : 'DD/MM/YYYY',
  3900. LL : 'D MMMM YYYY',
  3901. LLL : 'D MMMM YYYY HH:mm',
  3902. LLLL : 'dddd D MMMM YYYY HH:mm'
  3903. },
  3904. calendar : {
  3905. sameDay: '[اليوم على الساعة] LT',
  3906. nextDay: '[غدا على الساعة] LT',
  3907. nextWeek: 'dddd [على الساعة] LT',
  3908. lastDay: '[أمس على الساعة] LT',
  3909. lastWeek: 'dddd [على الساعة] LT',
  3910. sameElse: 'L'
  3911. },
  3912. relativeTime : {
  3913. future : 'في %s',
  3914. past : 'منذ %s',
  3915. s : 'ثوان',
  3916. m : 'دقيقة',
  3917. mm : '%d دقائق',
  3918. h : 'ساعة',
  3919. hh : '%d ساعات',
  3920. d : 'يوم',
  3921. dd : '%d أيام',
  3922. M : 'شهر',
  3923. MM : '%d أشهر',
  3924. y : 'سنة',
  3925. yy : '%d سنوات'
  3926. },
  3927. week : {
  3928. dow : 0, // Sunday is the first day of the week.
  3929. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3930. }
  3931. });
  3932. //! moment.js locale configuration
  3933. //! locale : Arabic (Lybia) [ar-ly]
  3934. //! author : Ali Hmer: https://github.com/kikoanis
  3935. var symbolMap = {
  3936. '1': '1',
  3937. '2': '2',
  3938. '3': '3',
  3939. '4': '4',
  3940. '5': '5',
  3941. '6': '6',
  3942. '7': '7',
  3943. '8': '8',
  3944. '9': '9',
  3945. '0': '0'
  3946. };
  3947. var pluralForm = function (n) {
  3948. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  3949. };
  3950. var plurals = {
  3951. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  3952. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  3953. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  3954. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  3955. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  3956. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  3957. };
  3958. var pluralize = function (u) {
  3959. return function (number, withoutSuffix, string, isFuture) {
  3960. var f = pluralForm(number),
  3961. str = plurals[u][pluralForm(number)];
  3962. if (f === 2) {
  3963. str = str[withoutSuffix ? 0 : 1];
  3964. }
  3965. return str.replace(/%d/i, number);
  3966. };
  3967. };
  3968. var months$1 = [
  3969. 'يناير',
  3970. 'فبراير',
  3971. 'مارس',
  3972. 'أبريل',
  3973. 'مايو',
  3974. 'يونيو',
  3975. 'يوليو',
  3976. 'أغسطس',
  3977. 'سبتمبر',
  3978. 'أكتوبر',
  3979. 'نوفمبر',
  3980. 'ديسمبر'
  3981. ];
  3982. hooks.defineLocale('ar-ly', {
  3983. months : months$1,
  3984. monthsShort : months$1,
  3985. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3986. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3987. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3988. weekdaysParseExact : true,
  3989. longDateFormat : {
  3990. LT : 'HH:mm',
  3991. LTS : 'HH:mm:ss',
  3992. L : 'D/\u200FM/\u200FYYYY',
  3993. LL : 'D MMMM YYYY',
  3994. LLL : 'D MMMM YYYY HH:mm',
  3995. LLLL : 'dddd D MMMM YYYY HH:mm'
  3996. },
  3997. meridiemParse: /ص|م/,
  3998. isPM : function (input) {
  3999. return 'م' === input;
  4000. },
  4001. meridiem : function (hour, minute, isLower) {
  4002. if (hour < 12) {
  4003. return 'ص';
  4004. } else {
  4005. return 'م';
  4006. }
  4007. },
  4008. calendar : {
  4009. sameDay: '[اليوم عند الساعة] LT',
  4010. nextDay: '[غدًا عند الساعة] LT',
  4011. nextWeek: 'dddd [عند الساعة] LT',
  4012. lastDay: '[أمس عند الساعة] LT',
  4013. lastWeek: 'dddd [عند الساعة] LT',
  4014. sameElse: 'L'
  4015. },
  4016. relativeTime : {
  4017. future : 'بعد %s',
  4018. past : 'منذ %s',
  4019. s : pluralize('s'),
  4020. m : pluralize('m'),
  4021. mm : pluralize('m'),
  4022. h : pluralize('h'),
  4023. hh : pluralize('h'),
  4024. d : pluralize('d'),
  4025. dd : pluralize('d'),
  4026. M : pluralize('M'),
  4027. MM : pluralize('M'),
  4028. y : pluralize('y'),
  4029. yy : pluralize('y')
  4030. },
  4031. preparse: function (string) {
  4032. return string.replace(/،/g, ',');
  4033. },
  4034. postformat: function (string) {
  4035. return string.replace(/\d/g, function (match) {
  4036. return symbolMap[match];
  4037. }).replace(/,/g, '،');
  4038. },
  4039. week : {
  4040. dow : 6, // Saturday is the first day of the week.
  4041. doy : 12 // The week that contains Jan 1st is the first week of the year.
  4042. }
  4043. });
  4044. //! moment.js locale configuration
  4045. //! locale : Arabic (Morocco) [ar-ma]
  4046. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  4047. //! author : Abdel Said : https://github.com/abdelsaid
  4048. hooks.defineLocale('ar-ma', {
  4049. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  4050. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  4051. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4052. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  4053. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4054. weekdaysParseExact : true,
  4055. longDateFormat : {
  4056. LT : 'HH:mm',
  4057. LTS : 'HH:mm:ss',
  4058. L : 'DD/MM/YYYY',
  4059. LL : 'D MMMM YYYY',
  4060. LLL : 'D MMMM YYYY HH:mm',
  4061. LLLL : 'dddd D MMMM YYYY HH:mm'
  4062. },
  4063. calendar : {
  4064. sameDay: '[اليوم على الساعة] LT',
  4065. nextDay: '[غدا على الساعة] LT',
  4066. nextWeek: 'dddd [على الساعة] LT',
  4067. lastDay: '[أمس على الساعة] LT',
  4068. lastWeek: 'dddd [على الساعة] LT',
  4069. sameElse: 'L'
  4070. },
  4071. relativeTime : {
  4072. future : 'في %s',
  4073. past : 'منذ %s',
  4074. s : 'ثوان',
  4075. m : 'دقيقة',
  4076. mm : '%d دقائق',
  4077. h : 'ساعة',
  4078. hh : '%d ساعات',
  4079. d : 'يوم',
  4080. dd : '%d أيام',
  4081. M : 'شهر',
  4082. MM : '%d أشهر',
  4083. y : 'سنة',
  4084. yy : '%d سنوات'
  4085. },
  4086. week : {
  4087. dow : 6, // Saturday is the first day of the week.
  4088. doy : 12 // The week that contains Jan 1st is the first week of the year.
  4089. }
  4090. });
  4091. //! moment.js locale configuration
  4092. //! locale : Arabic (Saudi Arabia) [ar-sa]
  4093. //! author : Suhail Alkowaileet : https://github.com/xsoh
  4094. var symbolMap$1 = {
  4095. '1': '١',
  4096. '2': '٢',
  4097. '3': '٣',
  4098. '4': '٤',
  4099. '5': '٥',
  4100. '6': '٦',
  4101. '7': '٧',
  4102. '8': '٨',
  4103. '9': '٩',
  4104. '0': '٠'
  4105. };
  4106. var numberMap = {
  4107. '١': '1',
  4108. '٢': '2',
  4109. '٣': '3',
  4110. '٤': '4',
  4111. '٥': '5',
  4112. '٦': '6',
  4113. '٧': '7',
  4114. '٨': '8',
  4115. '٩': '9',
  4116. '٠': '0'
  4117. };
  4118. hooks.defineLocale('ar-sa', {
  4119. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4120. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4121. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4122. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4123. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4124. weekdaysParseExact : true,
  4125. longDateFormat : {
  4126. LT : 'HH:mm',
  4127. LTS : 'HH:mm:ss',
  4128. L : 'DD/MM/YYYY',
  4129. LL : 'D MMMM YYYY',
  4130. LLL : 'D MMMM YYYY HH:mm',
  4131. LLLL : 'dddd D MMMM YYYY HH:mm'
  4132. },
  4133. meridiemParse: /ص|م/,
  4134. isPM : function (input) {
  4135. return 'م' === input;
  4136. },
  4137. meridiem : function (hour, minute, isLower) {
  4138. if (hour < 12) {
  4139. return 'ص';
  4140. } else {
  4141. return 'م';
  4142. }
  4143. },
  4144. calendar : {
  4145. sameDay: '[اليوم على الساعة] LT',
  4146. nextDay: '[غدا على الساعة] LT',
  4147. nextWeek: 'dddd [على الساعة] LT',
  4148. lastDay: '[أمس على الساعة] LT',
  4149. lastWeek: 'dddd [على الساعة] LT',
  4150. sameElse: 'L'
  4151. },
  4152. relativeTime : {
  4153. future : 'في %s',
  4154. past : 'منذ %s',
  4155. s : 'ثوان',
  4156. m : 'دقيقة',
  4157. mm : '%d دقائق',
  4158. h : 'ساعة',
  4159. hh : '%d ساعات',
  4160. d : 'يوم',
  4161. dd : '%d أيام',
  4162. M : 'شهر',
  4163. MM : '%d أشهر',
  4164. y : 'سنة',
  4165. yy : '%d سنوات'
  4166. },
  4167. preparse: function (string) {
  4168. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  4169. return numberMap[match];
  4170. }).replace(/،/g, ',');
  4171. },
  4172. postformat: function (string) {
  4173. return string.replace(/\d/g, function (match) {
  4174. return symbolMap$1[match];
  4175. }).replace(/,/g, '،');
  4176. },
  4177. week : {
  4178. dow : 0, // Sunday is the first day of the week.
  4179. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4180. }
  4181. });
  4182. //! moment.js locale configuration
  4183. //! locale : Arabic (Tunisia) [ar-tn]
  4184. //! author : Nader Toukabri : https://github.com/naderio
  4185. hooks.defineLocale('ar-tn', {
  4186. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4187. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  4188. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4189. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4190. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4191. weekdaysParseExact : true,
  4192. longDateFormat: {
  4193. LT: 'HH:mm',
  4194. LTS: 'HH:mm:ss',
  4195. L: 'DD/MM/YYYY',
  4196. LL: 'D MMMM YYYY',
  4197. LLL: 'D MMMM YYYY HH:mm',
  4198. LLLL: 'dddd D MMMM YYYY HH:mm'
  4199. },
  4200. calendar: {
  4201. sameDay: '[اليوم على الساعة] LT',
  4202. nextDay: '[غدا على الساعة] LT',
  4203. nextWeek: 'dddd [على الساعة] LT',
  4204. lastDay: '[أمس على الساعة] LT',
  4205. lastWeek: 'dddd [على الساعة] LT',
  4206. sameElse: 'L'
  4207. },
  4208. relativeTime: {
  4209. future: 'في %s',
  4210. past: 'منذ %s',
  4211. s: 'ثوان',
  4212. m: 'دقيقة',
  4213. mm: '%d دقائق',
  4214. h: 'ساعة',
  4215. hh: '%d ساعات',
  4216. d: 'يوم',
  4217. dd: '%d أيام',
  4218. M: 'شهر',
  4219. MM: '%d أشهر',
  4220. y: 'سنة',
  4221. yy: '%d سنوات'
  4222. },
  4223. week: {
  4224. dow: 1, // Monday is the first day of the week.
  4225. doy: 4 // The week that contains Jan 4th is the first week of the year.
  4226. }
  4227. });
  4228. //! moment.js locale configuration
  4229. //! locale : Arabic [ar]
  4230. //! author : Abdel Said: https://github.com/abdelsaid
  4231. //! author : Ahmed Elkhatib
  4232. //! author : forabi https://github.com/forabi
  4233. var symbolMap$2 = {
  4234. '1': '١',
  4235. '2': '٢',
  4236. '3': '٣',
  4237. '4': '٤',
  4238. '5': '٥',
  4239. '6': '٦',
  4240. '7': '٧',
  4241. '8': '٨',
  4242. '9': '٩',
  4243. '0': '٠'
  4244. };
  4245. var numberMap$1 = {
  4246. '١': '1',
  4247. '٢': '2',
  4248. '٣': '3',
  4249. '٤': '4',
  4250. '٥': '5',
  4251. '٦': '6',
  4252. '٧': '7',
  4253. '٨': '8',
  4254. '٩': '9',
  4255. '٠': '0'
  4256. };
  4257. var pluralForm$1 = function (n) {
  4258. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  4259. };
  4260. var plurals$1 = {
  4261. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  4262. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  4263. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  4264. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  4265. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  4266. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  4267. };
  4268. var pluralize$1 = function (u) {
  4269. return function (number, withoutSuffix, string, isFuture) {
  4270. var f = pluralForm$1(number),
  4271. str = plurals$1[u][pluralForm$1(number)];
  4272. if (f === 2) {
  4273. str = str[withoutSuffix ? 0 : 1];
  4274. }
  4275. return str.replace(/%d/i, number);
  4276. };
  4277. };
  4278. var months$2 = [
  4279. 'كانون الثاني يناير',
  4280. 'شباط فبراير',
  4281. 'آذار مارس',
  4282. 'نيسان أبريل',
  4283. 'أيار مايو',
  4284. 'حزيران يونيو',
  4285. 'تموز يوليو',
  4286. 'آب أغسطس',
  4287. 'أيلول سبتمبر',
  4288. 'تشرين الأول أكتوبر',
  4289. 'تشرين الثاني نوفمبر',
  4290. 'كانون الأول ديسمبر'
  4291. ];
  4292. hooks.defineLocale('ar', {
  4293. months : months$2,
  4294. monthsShort : months$2,
  4295. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  4296. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  4297. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  4298. weekdaysParseExact : true,
  4299. longDateFormat : {
  4300. LT : 'HH:mm',
  4301. LTS : 'HH:mm:ss',
  4302. L : 'D/\u200FM/\u200FYYYY',
  4303. LL : 'D MMMM YYYY',
  4304. LLL : 'D MMMM YYYY HH:mm',
  4305. LLLL : 'dddd D MMMM YYYY HH:mm'
  4306. },
  4307. meridiemParse: /ص|م/,
  4308. isPM : function (input) {
  4309. return 'م' === input;
  4310. },
  4311. meridiem : function (hour, minute, isLower) {
  4312. if (hour < 12) {
  4313. return 'ص';
  4314. } else {
  4315. return 'م';
  4316. }
  4317. },
  4318. calendar : {
  4319. sameDay: '[اليوم عند الساعة] LT',
  4320. nextDay: '[غدًا عند الساعة] LT',
  4321. nextWeek: 'dddd [عند الساعة] LT',
  4322. lastDay: '[أمس عند الساعة] LT',
  4323. lastWeek: 'dddd [عند الساعة] LT',
  4324. sameElse: 'L'
  4325. },
  4326. relativeTime : {
  4327. future : 'بعد %s',
  4328. past : 'منذ %s',
  4329. s : pluralize$1('s'),
  4330. m : pluralize$1('m'),
  4331. mm : pluralize$1('m'),
  4332. h : pluralize$1('h'),
  4333. hh : pluralize$1('h'),
  4334. d : pluralize$1('d'),
  4335. dd : pluralize$1('d'),
  4336. M : pluralize$1('M'),
  4337. MM : pluralize$1('M'),
  4338. y : pluralize$1('y'),
  4339. yy : pluralize$1('y')
  4340. },
  4341. preparse: function (string) {
  4342. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  4343. return numberMap$1[match];
  4344. }).replace(/،/g, ',');
  4345. },
  4346. postformat: function (string) {
  4347. return string.replace(/\d/g, function (match) {
  4348. return symbolMap$2[match];
  4349. }).replace(/,/g, '،');
  4350. },
  4351. week : {
  4352. dow : 6, // Saturday is the first day of the week.
  4353. doy : 12 // The week that contains Jan 1st is the first week of the year.
  4354. }
  4355. });
  4356. //! moment.js locale configuration
  4357. //! locale : Azerbaijani [az]
  4358. //! author : topchiyev : https://github.com/topchiyev
  4359. var suffixes = {
  4360. 1: '-inci',
  4361. 5: '-inci',
  4362. 8: '-inci',
  4363. 70: '-inci',
  4364. 80: '-inci',
  4365. 2: '-nci',
  4366. 7: '-nci',
  4367. 20: '-nci',
  4368. 50: '-nci',
  4369. 3: '-üncü',
  4370. 4: '-üncü',
  4371. 100: '-üncü',
  4372. 6: '-ncı',
  4373. 9: '-uncu',
  4374. 10: '-uncu',
  4375. 30: '-uncu',
  4376. 60: '-ıncı',
  4377. 90: '-ıncı'
  4378. };
  4379. hooks.defineLocale('az', {
  4380. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  4381. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  4382. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  4383. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  4384. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  4385. weekdaysParseExact : true,
  4386. longDateFormat : {
  4387. LT : 'HH:mm',
  4388. LTS : 'HH:mm:ss',
  4389. L : 'DD.MM.YYYY',
  4390. LL : 'D MMMM YYYY',
  4391. LLL : 'D MMMM YYYY HH:mm',
  4392. LLLL : 'dddd, D MMMM YYYY HH:mm'
  4393. },
  4394. calendar : {
  4395. sameDay : '[bugün saat] LT',
  4396. nextDay : '[sabah saat] LT',
  4397. nextWeek : '[gələn həftə] dddd [saat] LT',
  4398. lastDay : '[dünən] LT',
  4399. lastWeek : '[keçən həftə] dddd [saat] LT',
  4400. sameElse : 'L'
  4401. },
  4402. relativeTime : {
  4403. future : '%s sonra',
  4404. past : '%s əvvəl',
  4405. s : 'birneçə saniyyə',
  4406. m : 'bir dəqiqə',
  4407. mm : '%d dəqiqə',
  4408. h : 'bir saat',
  4409. hh : '%d saat',
  4410. d : 'bir gün',
  4411. dd : '%d gün',
  4412. M : 'bir ay',
  4413. MM : '%d ay',
  4414. y : 'bir il',
  4415. yy : '%d il'
  4416. },
  4417. meridiemParse: /gecə|səhər|gündüz|axşam/,
  4418. isPM : function (input) {
  4419. return /^(gündüz|axşam)$/.test(input);
  4420. },
  4421. meridiem : function (hour, minute, isLower) {
  4422. if (hour < 4) {
  4423. return 'gecə';
  4424. } else if (hour < 12) {
  4425. return 'səhər';
  4426. } else if (hour < 17) {
  4427. return 'gündüz';
  4428. } else {
  4429. return 'axşam';
  4430. }
  4431. },
  4432. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  4433. ordinal : function (number) {
  4434. if (number === 0) { // special case for zero
  4435. return number + '-ıncı';
  4436. }
  4437. var a = number % 10,
  4438. b = number % 100 - a,
  4439. c = number >= 100 ? 100 : null;
  4440. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  4441. },
  4442. week : {
  4443. dow : 1, // Monday is the first day of the week.
  4444. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4445. }
  4446. });
  4447. //! moment.js locale configuration
  4448. //! locale : Belarusian [be]
  4449. //! author : Dmitry Demidov : https://github.com/demidov91
  4450. //! author: Praleska: http://praleska.pro/
  4451. //! Author : Menelion Elensúle : https://github.com/Oire
  4452. function plural(word, num) {
  4453. var forms = word.split('_');
  4454. 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]);
  4455. }
  4456. function relativeTimeWithPlural(number, withoutSuffix, key) {
  4457. var format = {
  4458. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  4459. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  4460. 'dd': 'дзень_дні_дзён',
  4461. 'MM': 'месяц_месяцы_месяцаў',
  4462. 'yy': 'год_гады_гадоў'
  4463. };
  4464. if (key === 'm') {
  4465. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  4466. }
  4467. else if (key === 'h') {
  4468. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  4469. }
  4470. else {
  4471. return number + ' ' + plural(format[key], +number);
  4472. }
  4473. }
  4474. hooks.defineLocale('be', {
  4475. months : {
  4476. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  4477. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  4478. },
  4479. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  4480. weekdays : {
  4481. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  4482. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  4483. isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
  4484. },
  4485. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4486. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  4487. longDateFormat : {
  4488. LT : 'HH:mm',
  4489. LTS : 'HH:mm:ss',
  4490. L : 'DD.MM.YYYY',
  4491. LL : 'D MMMM YYYY г.',
  4492. LLL : 'D MMMM YYYY г., HH:mm',
  4493. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  4494. },
  4495. calendar : {
  4496. sameDay: '[Сёння ў] LT',
  4497. nextDay: '[Заўтра ў] LT',
  4498. lastDay: '[Учора ў] LT',
  4499. nextWeek: function () {
  4500. return '[У] dddd [ў] LT';
  4501. },
  4502. lastWeek: function () {
  4503. switch (this.day()) {
  4504. case 0:
  4505. case 3:
  4506. case 5:
  4507. case 6:
  4508. return '[У мінулую] dddd [ў] LT';
  4509. case 1:
  4510. case 2:
  4511. case 4:
  4512. return '[У мінулы] dddd [ў] LT';
  4513. }
  4514. },
  4515. sameElse: 'L'
  4516. },
  4517. relativeTime : {
  4518. future : 'праз %s',
  4519. past : '%s таму',
  4520. s : 'некалькі секунд',
  4521. m : relativeTimeWithPlural,
  4522. mm : relativeTimeWithPlural,
  4523. h : relativeTimeWithPlural,
  4524. hh : relativeTimeWithPlural,
  4525. d : 'дзень',
  4526. dd : relativeTimeWithPlural,
  4527. M : 'месяц',
  4528. MM : relativeTimeWithPlural,
  4529. y : 'год',
  4530. yy : relativeTimeWithPlural
  4531. },
  4532. meridiemParse: /ночы|раніцы|дня|вечара/,
  4533. isPM : function (input) {
  4534. return /^(дня|вечара)$/.test(input);
  4535. },
  4536. meridiem : function (hour, minute, isLower) {
  4537. if (hour < 4) {
  4538. return 'ночы';
  4539. } else if (hour < 12) {
  4540. return 'раніцы';
  4541. } else if (hour < 17) {
  4542. return 'дня';
  4543. } else {
  4544. return 'вечара';
  4545. }
  4546. },
  4547. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  4548. ordinal: function (number, period) {
  4549. switch (period) {
  4550. case 'M':
  4551. case 'd':
  4552. case 'DDD':
  4553. case 'w':
  4554. case 'W':
  4555. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  4556. case 'D':
  4557. return number + '-га';
  4558. default:
  4559. return number;
  4560. }
  4561. },
  4562. week : {
  4563. dow : 1, // Monday is the first day of the week.
  4564. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4565. }
  4566. });
  4567. //! moment.js locale configuration
  4568. //! locale : Bulgarian [bg]
  4569. //! author : Krasen Borisov : https://github.com/kraz
  4570. hooks.defineLocale('bg', {
  4571. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  4572. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  4573. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  4574. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  4575. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  4576. longDateFormat : {
  4577. LT : 'H:mm',
  4578. LTS : 'H:mm:ss',
  4579. L : 'D.MM.YYYY',
  4580. LL : 'D MMMM YYYY',
  4581. LLL : 'D MMMM YYYY H:mm',
  4582. LLLL : 'dddd, D MMMM YYYY H:mm'
  4583. },
  4584. calendar : {
  4585. sameDay : '[Днес в] LT',
  4586. nextDay : '[Утре в] LT',
  4587. nextWeek : 'dddd [в] LT',
  4588. lastDay : '[Вчера в] LT',
  4589. lastWeek : function () {
  4590. switch (this.day()) {
  4591. case 0:
  4592. case 3:
  4593. case 6:
  4594. return '[В изминалата] dddd [в] LT';
  4595. case 1:
  4596. case 2:
  4597. case 4:
  4598. case 5:
  4599. return '[В изминалия] dddd [в] LT';
  4600. }
  4601. },
  4602. sameElse : 'L'
  4603. },
  4604. relativeTime : {
  4605. future : 'след %s',
  4606. past : 'преди %s',
  4607. s : 'няколко секунди',
  4608. m : 'минута',
  4609. mm : '%d минути',
  4610. h : 'час',
  4611. hh : '%d часа',
  4612. d : 'ден',
  4613. dd : '%d дни',
  4614. M : 'месец',
  4615. MM : '%d месеца',
  4616. y : 'година',
  4617. yy : '%d години'
  4618. },
  4619. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  4620. ordinal : function (number) {
  4621. var lastDigit = number % 10,
  4622. last2Digits = number % 100;
  4623. if (number === 0) {
  4624. return number + '-ев';
  4625. } else if (last2Digits === 0) {
  4626. return number + '-ен';
  4627. } else if (last2Digits > 10 && last2Digits < 20) {
  4628. return number + '-ти';
  4629. } else if (lastDigit === 1) {
  4630. return number + '-ви';
  4631. } else if (lastDigit === 2) {
  4632. return number + '-ри';
  4633. } else if (lastDigit === 7 || lastDigit === 8) {
  4634. return number + '-ми';
  4635. } else {
  4636. return number + '-ти';
  4637. }
  4638. },
  4639. week : {
  4640. dow : 1, // Monday is the first day of the week.
  4641. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4642. }
  4643. });
  4644. //! moment.js locale configuration
  4645. //! locale : Bambara [bm]
  4646. //! author : Estelle Comment : https://github.com/estellecomment
  4647. // Language contact person : Abdoufata Kane : https://github.com/abdoufata
  4648. hooks.defineLocale('bm', {
  4649. months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
  4650. monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  4651. weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  4652. weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  4653. weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  4654. longDateFormat : {
  4655. LT : 'HH:mm',
  4656. LTS : 'HH:mm:ss',
  4657. L : 'DD/MM/YYYY',
  4658. LL : 'MMMM [tile] D [san] YYYY',
  4659. LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  4660. LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
  4661. },
  4662. calendar : {
  4663. sameDay : '[Bi lɛrɛ] LT',
  4664. nextDay : '[Sini lɛrɛ] LT',
  4665. nextWeek : 'dddd [don lɛrɛ] LT',
  4666. lastDay : '[Kunu lɛrɛ] LT',
  4667. lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
  4668. sameElse : 'L'
  4669. },
  4670. relativeTime : {
  4671. future : '%s kɔnɔ',
  4672. past : 'a bɛ %s bɔ',
  4673. s : 'sanga dama dama',
  4674. m : 'miniti kelen',
  4675. mm : 'miniti %d',
  4676. h : 'lɛrɛ kelen',
  4677. hh : 'lɛrɛ %d',
  4678. d : 'tile kelen',
  4679. dd : 'tile %d',
  4680. M : 'kalo kelen',
  4681. MM : 'kalo %d',
  4682. y : 'san kelen',
  4683. yy : 'san %d'
  4684. },
  4685. week : {
  4686. dow : 1, // Monday is the first day of the week.
  4687. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4688. }
  4689. });
  4690. //! moment.js locale configuration
  4691. //! locale : Bengali [bn]
  4692. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  4693. var symbolMap$3 = {
  4694. '1': '১',
  4695. '2': '২',
  4696. '3': '৩',
  4697. '4': '৪',
  4698. '5': '৫',
  4699. '6': '৬',
  4700. '7': '৭',
  4701. '8': '৮',
  4702. '9': '৯',
  4703. '0': '০'
  4704. };
  4705. var numberMap$2 = {
  4706. '১': '1',
  4707. '২': '2',
  4708. '৩': '3',
  4709. '৪': '4',
  4710. '৫': '5',
  4711. '৬': '6',
  4712. '৭': '7',
  4713. '৮': '8',
  4714. '৯': '9',
  4715. '০': '0'
  4716. };
  4717. hooks.defineLocale('bn', {
  4718. months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  4719. monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  4720. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  4721. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  4722. weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
  4723. longDateFormat : {
  4724. LT : 'A h:mm সময়',
  4725. LTS : 'A h:mm:ss সময়',
  4726. L : 'DD/MM/YYYY',
  4727. LL : 'D MMMM YYYY',
  4728. LLL : 'D MMMM YYYY, A h:mm সময়',
  4729. LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
  4730. },
  4731. calendar : {
  4732. sameDay : '[আজ] LT',
  4733. nextDay : '[আগামীকাল] LT',
  4734. nextWeek : 'dddd, LT',
  4735. lastDay : '[গতকাল] LT',
  4736. lastWeek : '[গত] dddd, LT',
  4737. sameElse : 'L'
  4738. },
  4739. relativeTime : {
  4740. future : '%s পরে',
  4741. past : '%s আগে',
  4742. s : 'কয়েক সেকেন্ড',
  4743. m : 'এক মিনিট',
  4744. mm : '%d মিনিট',
  4745. h : 'এক ঘন্টা',
  4746. hh : '%d ঘন্টা',
  4747. d : 'এক দিন',
  4748. dd : '%d দিন',
  4749. M : 'এক মাস',
  4750. MM : '%d মাস',
  4751. y : 'এক বছর',
  4752. yy : '%d বছর'
  4753. },
  4754. preparse: function (string) {
  4755. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  4756. return numberMap$2[match];
  4757. });
  4758. },
  4759. postformat: function (string) {
  4760. return string.replace(/\d/g, function (match) {
  4761. return symbolMap$3[match];
  4762. });
  4763. },
  4764. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  4765. meridiemHour : function (hour, meridiem) {
  4766. if (hour === 12) {
  4767. hour = 0;
  4768. }
  4769. if ((meridiem === 'রাত' && hour >= 4) ||
  4770. (meridiem === 'দুপুর' && hour < 5) ||
  4771. meridiem === 'বিকাল') {
  4772. return hour + 12;
  4773. } else {
  4774. return hour;
  4775. }
  4776. },
  4777. meridiem : function (hour, minute, isLower) {
  4778. if (hour < 4) {
  4779. return 'রাত';
  4780. } else if (hour < 10) {
  4781. return 'সকাল';
  4782. } else if (hour < 17) {
  4783. return 'দুপুর';
  4784. } else if (hour < 20) {
  4785. return 'বিকাল';
  4786. } else {
  4787. return 'রাত';
  4788. }
  4789. },
  4790. week : {
  4791. dow : 0, // Sunday is the first day of the week.
  4792. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4793. }
  4794. });
  4795. //! moment.js locale configuration
  4796. //! locale : Tibetan [bo]
  4797. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  4798. var symbolMap$4 = {
  4799. '1': '༡',
  4800. '2': '༢',
  4801. '3': '༣',
  4802. '4': '༤',
  4803. '5': '༥',
  4804. '6': '༦',
  4805. '7': '༧',
  4806. '8': '༨',
  4807. '9': '༩',
  4808. '0': '༠'
  4809. };
  4810. var numberMap$3 = {
  4811. '༡': '1',
  4812. '༢': '2',
  4813. '༣': '3',
  4814. '༤': '4',
  4815. '༥': '5',
  4816. '༦': '6',
  4817. '༧': '7',
  4818. '༨': '8',
  4819. '༩': '9',
  4820. '༠': '0'
  4821. };
  4822. hooks.defineLocale('bo', {
  4823. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4824. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  4825. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  4826. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4827. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  4828. longDateFormat : {
  4829. LT : 'A h:mm',
  4830. LTS : 'A h:mm:ss',
  4831. L : 'DD/MM/YYYY',
  4832. LL : 'D MMMM YYYY',
  4833. LLL : 'D MMMM YYYY, A h:mm',
  4834. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  4835. },
  4836. calendar : {
  4837. sameDay : '[དི་རིང] LT',
  4838. nextDay : '[སང་ཉིན] LT',
  4839. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  4840. lastDay : '[ཁ་སང] LT',
  4841. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  4842. sameElse : 'L'
  4843. },
  4844. relativeTime : {
  4845. future : '%s ལ་',
  4846. past : '%s སྔན་ལ',
  4847. s : 'ལམ་སང',
  4848. m : 'སྐར་མ་གཅིག',
  4849. mm : '%d སྐར་མ',
  4850. h : 'ཆུ་ཚོད་གཅིག',
  4851. hh : '%d ཆུ་ཚོད',
  4852. d : 'ཉིན་གཅིག',
  4853. dd : '%d ཉིན་',
  4854. M : 'ཟླ་བ་གཅིག',
  4855. MM : '%d ཟླ་བ',
  4856. y : 'ལོ་གཅིག',
  4857. yy : '%d ལོ'
  4858. },
  4859. preparse: function (string) {
  4860. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  4861. return numberMap$3[match];
  4862. });
  4863. },
  4864. postformat: function (string) {
  4865. return string.replace(/\d/g, function (match) {
  4866. return symbolMap$4[match];
  4867. });
  4868. },
  4869. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  4870. meridiemHour : function (hour, meridiem) {
  4871. if (hour === 12) {
  4872. hour = 0;
  4873. }
  4874. if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
  4875. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  4876. meridiem === 'དགོང་དག') {
  4877. return hour + 12;
  4878. } else {
  4879. return hour;
  4880. }
  4881. },
  4882. meridiem : function (hour, minute, isLower) {
  4883. if (hour < 4) {
  4884. return 'མཚན་མོ';
  4885. } else if (hour < 10) {
  4886. return 'ཞོགས་ཀས';
  4887. } else if (hour < 17) {
  4888. return 'ཉིན་གུང';
  4889. } else if (hour < 20) {
  4890. return 'དགོང་དག';
  4891. } else {
  4892. return 'མཚན་མོ';
  4893. }
  4894. },
  4895. week : {
  4896. dow : 0, // Sunday is the first day of the week.
  4897. doy : 6 // The week that contains Jan 1st is the first week of the year.
  4898. }
  4899. });
  4900. //! moment.js locale configuration
  4901. //! locale : Breton [br]
  4902. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  4903. function relativeTimeWithMutation(number, withoutSuffix, key) {
  4904. var format = {
  4905. 'mm': 'munutenn',
  4906. 'MM': 'miz',
  4907. 'dd': 'devezh'
  4908. };
  4909. return number + ' ' + mutation(format[key], number);
  4910. }
  4911. function specialMutationForYears(number) {
  4912. switch (lastNumber(number)) {
  4913. case 1:
  4914. case 3:
  4915. case 4:
  4916. case 5:
  4917. case 9:
  4918. return number + ' bloaz';
  4919. default:
  4920. return number + ' vloaz';
  4921. }
  4922. }
  4923. function lastNumber(number) {
  4924. if (number > 9) {
  4925. return lastNumber(number % 10);
  4926. }
  4927. return number;
  4928. }
  4929. function mutation(text, number) {
  4930. if (number === 2) {
  4931. return softMutation(text);
  4932. }
  4933. return text;
  4934. }
  4935. function softMutation(text) {
  4936. var mutationTable = {
  4937. 'm': 'v',
  4938. 'b': 'v',
  4939. 'd': 'z'
  4940. };
  4941. if (mutationTable[text.charAt(0)] === undefined) {
  4942. return text;
  4943. }
  4944. return mutationTable[text.charAt(0)] + text.substring(1);
  4945. }
  4946. hooks.defineLocale('br', {
  4947. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  4948. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  4949. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  4950. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  4951. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  4952. weekdaysParseExact : true,
  4953. longDateFormat : {
  4954. LT : 'h[e]mm A',
  4955. LTS : 'h[e]mm:ss A',
  4956. L : 'DD/MM/YYYY',
  4957. LL : 'D [a viz] MMMM YYYY',
  4958. LLL : 'D [a viz] MMMM YYYY h[e]mm A',
  4959. LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  4960. },
  4961. calendar : {
  4962. sameDay : '[Hiziv da] LT',
  4963. nextDay : '[Warc\'hoazh da] LT',
  4964. nextWeek : 'dddd [da] LT',
  4965. lastDay : '[Dec\'h da] LT',
  4966. lastWeek : 'dddd [paset da] LT',
  4967. sameElse : 'L'
  4968. },
  4969. relativeTime : {
  4970. future : 'a-benn %s',
  4971. past : '%s \'zo',
  4972. s : 'un nebeud segondennoù',
  4973. m : 'ur vunutenn',
  4974. mm : relativeTimeWithMutation,
  4975. h : 'un eur',
  4976. hh : '%d eur',
  4977. d : 'un devezh',
  4978. dd : relativeTimeWithMutation,
  4979. M : 'ur miz',
  4980. MM : relativeTimeWithMutation,
  4981. y : 'ur bloaz',
  4982. yy : specialMutationForYears
  4983. },
  4984. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  4985. ordinal : function (number) {
  4986. var output = (number === 1) ? 'añ' : 'vet';
  4987. return number + output;
  4988. },
  4989. week : {
  4990. dow : 1, // Monday is the first day of the week.
  4991. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4992. }
  4993. });
  4994. //! moment.js locale configuration
  4995. //! locale : Bosnian [bs]
  4996. //! author : Nedim Cholich : https://github.com/frontyard
  4997. //! based on (hr) translation by Bojan Marković
  4998. function translate(number, withoutSuffix, key) {
  4999. var result = number + ' ';
  5000. switch (key) {
  5001. case 'm':
  5002. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  5003. case 'mm':
  5004. if (number === 1) {
  5005. result += 'minuta';
  5006. } else if (number === 2 || number === 3 || number === 4) {
  5007. result += 'minute';
  5008. } else {
  5009. result += 'minuta';
  5010. }
  5011. return result;
  5012. case 'h':
  5013. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  5014. case 'hh':
  5015. if (number === 1) {
  5016. result += 'sat';
  5017. } else if (number === 2 || number === 3 || number === 4) {
  5018. result += 'sata';
  5019. } else {
  5020. result += 'sati';
  5021. }
  5022. return result;
  5023. case 'dd':
  5024. if (number === 1) {
  5025. result += 'dan';
  5026. } else {
  5027. result += 'dana';
  5028. }
  5029. return result;
  5030. case 'MM':
  5031. if (number === 1) {
  5032. result += 'mjesec';
  5033. } else if (number === 2 || number === 3 || number === 4) {
  5034. result += 'mjeseca';
  5035. } else {
  5036. result += 'mjeseci';
  5037. }
  5038. return result;
  5039. case 'yy':
  5040. if (number === 1) {
  5041. result += 'godina';
  5042. } else if (number === 2 || number === 3 || number === 4) {
  5043. result += 'godine';
  5044. } else {
  5045. result += 'godina';
  5046. }
  5047. return result;
  5048. }
  5049. }
  5050. hooks.defineLocale('bs', {
  5051. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  5052. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  5053. monthsParseExact: true,
  5054. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  5055. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  5056. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  5057. weekdaysParseExact : true,
  5058. longDateFormat : {
  5059. LT : 'H:mm',
  5060. LTS : 'H:mm:ss',
  5061. L : 'DD.MM.YYYY',
  5062. LL : 'D. MMMM YYYY',
  5063. LLL : 'D. MMMM YYYY H:mm',
  5064. LLLL : 'dddd, D. MMMM YYYY H:mm'
  5065. },
  5066. calendar : {
  5067. sameDay : '[danas u] LT',
  5068. nextDay : '[sutra u] LT',
  5069. nextWeek : function () {
  5070. switch (this.day()) {
  5071. case 0:
  5072. return '[u] [nedjelju] [u] LT';
  5073. case 3:
  5074. return '[u] [srijedu] [u] LT';
  5075. case 6:
  5076. return '[u] [subotu] [u] LT';
  5077. case 1:
  5078. case 2:
  5079. case 4:
  5080. case 5:
  5081. return '[u] dddd [u] LT';
  5082. }
  5083. },
  5084. lastDay : '[jučer u] LT',
  5085. lastWeek : function () {
  5086. switch (this.day()) {
  5087. case 0:
  5088. case 3:
  5089. return '[prošlu] dddd [u] LT';
  5090. case 6:
  5091. return '[prošle] [subote] [u] LT';
  5092. case 1:
  5093. case 2:
  5094. case 4:
  5095. case 5:
  5096. return '[prošli] dddd [u] LT';
  5097. }
  5098. },
  5099. sameElse : 'L'
  5100. },
  5101. relativeTime : {
  5102. future : 'za %s',
  5103. past : 'prije %s',
  5104. s : 'par sekundi',
  5105. m : translate,
  5106. mm : translate,
  5107. h : translate,
  5108. hh : translate,
  5109. d : 'dan',
  5110. dd : translate,
  5111. M : 'mjesec',
  5112. MM : translate,
  5113. y : 'godinu',
  5114. yy : translate
  5115. },
  5116. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5117. ordinal : '%d.',
  5118. week : {
  5119. dow : 1, // Monday is the first day of the week.
  5120. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5121. }
  5122. });
  5123. //! moment.js locale configuration
  5124. //! locale : Catalan [ca]
  5125. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  5126. hooks.defineLocale('ca', {
  5127. months : {
  5128. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  5129. 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('_'),
  5130. isFormat: /D[oD]?(\s)+MMMM/
  5131. },
  5132. monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  5133. monthsParseExact : true,
  5134. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  5135. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  5136. weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  5137. weekdaysParseExact : true,
  5138. longDateFormat : {
  5139. LT : 'H:mm',
  5140. LTS : 'H:mm:ss',
  5141. L : 'DD/MM/YYYY',
  5142. LL : 'D MMMM [de] YYYY',
  5143. ll : 'D MMM YYYY',
  5144. LLL : 'D MMMM [de] YYYY [a les] H:mm',
  5145. lll : 'D MMM YYYY, H:mm',
  5146. LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
  5147. llll : 'ddd D MMM YYYY, H:mm'
  5148. },
  5149. calendar : {
  5150. sameDay : function () {
  5151. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5152. },
  5153. nextDay : function () {
  5154. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5155. },
  5156. nextWeek : function () {
  5157. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5158. },
  5159. lastDay : function () {
  5160. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5161. },
  5162. lastWeek : function () {
  5163. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  5164. },
  5165. sameElse : 'L'
  5166. },
  5167. relativeTime : {
  5168. future : 'd\'aquí %s',
  5169. past : 'fa %s',
  5170. s : 'uns segons',
  5171. m : 'un minut',
  5172. mm : '%d minuts',
  5173. h : 'una hora',
  5174. hh : '%d hores',
  5175. d : 'un dia',
  5176. dd : '%d dies',
  5177. M : 'un mes',
  5178. MM : '%d mesos',
  5179. y : 'un any',
  5180. yy : '%d anys'
  5181. },
  5182. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  5183. ordinal : function (number, period) {
  5184. var output = (number === 1) ? 'r' :
  5185. (number === 2) ? 'n' :
  5186. (number === 3) ? 'r' :
  5187. (number === 4) ? 't' : 'è';
  5188. if (period === 'w' || period === 'W') {
  5189. output = 'a';
  5190. }
  5191. return number + output;
  5192. },
  5193. week : {
  5194. dow : 1, // Monday is the first day of the week.
  5195. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5196. }
  5197. });
  5198. //! moment.js locale configuration
  5199. //! locale : Czech [cs]
  5200. //! author : petrbela : https://github.com/petrbela
  5201. var months$3 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
  5202. var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  5203. function plural$1(n) {
  5204. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  5205. }
  5206. function translate$1(number, withoutSuffix, key, isFuture) {
  5207. var result = number + ' ';
  5208. switch (key) {
  5209. case 's': // a few seconds / in a few seconds / a few seconds ago
  5210. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  5211. case 'm': // a minute / in a minute / a minute ago
  5212. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  5213. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  5214. if (withoutSuffix || isFuture) {
  5215. return result + (plural$1(number) ? 'minuty' : 'minut');
  5216. } else {
  5217. return result + 'minutami';
  5218. }
  5219. break;
  5220. case 'h': // an hour / in an hour / an hour ago
  5221. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  5222. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  5223. if (withoutSuffix || isFuture) {
  5224. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  5225. } else {
  5226. return result + 'hodinami';
  5227. }
  5228. break;
  5229. case 'd': // a day / in a day / a day ago
  5230. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  5231. case 'dd': // 9 days / in 9 days / 9 days ago
  5232. if (withoutSuffix || isFuture) {
  5233. return result + (plural$1(number) ? 'dny' : 'dní');
  5234. } else {
  5235. return result + 'dny';
  5236. }
  5237. break;
  5238. case 'M': // a month / in a month / a month ago
  5239. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  5240. case 'MM': // 9 months / in 9 months / 9 months ago
  5241. if (withoutSuffix || isFuture) {
  5242. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  5243. } else {
  5244. return result + 'měsíci';
  5245. }
  5246. break;
  5247. case 'y': // a year / in a year / a year ago
  5248. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  5249. case 'yy': // 9 years / in 9 years / 9 years ago
  5250. if (withoutSuffix || isFuture) {
  5251. return result + (plural$1(number) ? 'roky' : 'let');
  5252. } else {
  5253. return result + 'lety';
  5254. }
  5255. break;
  5256. }
  5257. }
  5258. hooks.defineLocale('cs', {
  5259. months : months$3,
  5260. monthsShort : monthsShort,
  5261. monthsParse : (function (months, monthsShort) {
  5262. var i, _monthsParse = [];
  5263. for (i = 0; i < 12; i++) {
  5264. // use custom parser to solve problem with July (červenec)
  5265. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  5266. }
  5267. return _monthsParse;
  5268. }(months$3, monthsShort)),
  5269. shortMonthsParse : (function (monthsShort) {
  5270. var i, _shortMonthsParse = [];
  5271. for (i = 0; i < 12; i++) {
  5272. _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
  5273. }
  5274. return _shortMonthsParse;
  5275. }(monthsShort)),
  5276. longMonthsParse : (function (months) {
  5277. var i, _longMonthsParse = [];
  5278. for (i = 0; i < 12; i++) {
  5279. _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
  5280. }
  5281. return _longMonthsParse;
  5282. }(months$3)),
  5283. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  5284. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  5285. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  5286. longDateFormat : {
  5287. LT: 'H:mm',
  5288. LTS : 'H:mm:ss',
  5289. L : 'DD.MM.YYYY',
  5290. LL : 'D. MMMM YYYY',
  5291. LLL : 'D. MMMM YYYY H:mm',
  5292. LLLL : 'dddd D. MMMM YYYY H:mm',
  5293. l : 'D. M. YYYY'
  5294. },
  5295. calendar : {
  5296. sameDay: '[dnes v] LT',
  5297. nextDay: '[zítra v] LT',
  5298. nextWeek: function () {
  5299. switch (this.day()) {
  5300. case 0:
  5301. return '[v neděli v] LT';
  5302. case 1:
  5303. case 2:
  5304. return '[v] dddd [v] LT';
  5305. case 3:
  5306. return '[ve středu v] LT';
  5307. case 4:
  5308. return '[ve čtvrtek v] LT';
  5309. case 5:
  5310. return '[v pátek v] LT';
  5311. case 6:
  5312. return '[v sobotu v] LT';
  5313. }
  5314. },
  5315. lastDay: '[včera v] LT',
  5316. lastWeek: function () {
  5317. switch (this.day()) {
  5318. case 0:
  5319. return '[minulou neděli v] LT';
  5320. case 1:
  5321. case 2:
  5322. return '[minulé] dddd [v] LT';
  5323. case 3:
  5324. return '[minulou středu v] LT';
  5325. case 4:
  5326. case 5:
  5327. return '[minulý] dddd [v] LT';
  5328. case 6:
  5329. return '[minulou sobotu v] LT';
  5330. }
  5331. },
  5332. sameElse: 'L'
  5333. },
  5334. relativeTime : {
  5335. future : 'za %s',
  5336. past : 'před %s',
  5337. s : translate$1,
  5338. m : translate$1,
  5339. mm : translate$1,
  5340. h : translate$1,
  5341. hh : translate$1,
  5342. d : translate$1,
  5343. dd : translate$1,
  5344. M : translate$1,
  5345. MM : translate$1,
  5346. y : translate$1,
  5347. yy : translate$1
  5348. },
  5349. dayOfMonthOrdinalParse : /\d{1,2}\./,
  5350. ordinal : '%d.',
  5351. week : {
  5352. dow : 1, // Monday is the first day of the week.
  5353. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5354. }
  5355. });
  5356. //! moment.js locale configuration
  5357. //! locale : Chuvash [cv]
  5358. //! author : Anatoly Mironov : https://github.com/mirontoli
  5359. hooks.defineLocale('cv', {
  5360. months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  5361. monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  5362. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  5363. weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  5364. weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  5365. longDateFormat : {
  5366. LT : 'HH:mm',
  5367. LTS : 'HH:mm:ss',
  5368. L : 'DD-MM-YYYY',
  5369. LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  5370. LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  5371. LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  5372. },
  5373. calendar : {
  5374. sameDay: '[Паян] LT [сехетре]',
  5375. nextDay: '[Ыран] LT [сехетре]',
  5376. lastDay: '[Ӗнер] LT [сехетре]',
  5377. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  5378. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  5379. sameElse: 'L'
  5380. },
  5381. relativeTime : {
  5382. future : function (output) {
  5383. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  5384. return output + affix;
  5385. },
  5386. past : '%s каялла',
  5387. s : 'пӗр-ик ҫеккунт',
  5388. m : 'пӗр минут',
  5389. mm : '%d минут',
  5390. h : 'пӗр сехет',
  5391. hh : '%d сехет',
  5392. d : 'пӗр кун',
  5393. dd : '%d кун',
  5394. M : 'пӗр уйӑх',
  5395. MM : '%d уйӑх',
  5396. y : 'пӗр ҫул',
  5397. yy : '%d ҫул'
  5398. },
  5399. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  5400. ordinal : '%d-мӗш',
  5401. week : {
  5402. dow : 1, // Monday is the first day of the week.
  5403. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5404. }
  5405. });
  5406. //! moment.js locale configuration
  5407. //! locale : Welsh [cy]
  5408. //! author : Robert Allen : https://github.com/robgallen
  5409. //! author : https://github.com/ryangreaves
  5410. hooks.defineLocale('cy', {
  5411. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  5412. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  5413. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  5414. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  5415. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  5416. weekdaysParseExact : true,
  5417. // time formats are the same as en-gb
  5418. longDateFormat: {
  5419. LT: 'HH:mm',
  5420. LTS : 'HH:mm:ss',
  5421. L: 'DD/MM/YYYY',
  5422. LL: 'D MMMM YYYY',
  5423. LLL: 'D MMMM YYYY HH:mm',
  5424. LLLL: 'dddd, D MMMM YYYY HH:mm'
  5425. },
  5426. calendar: {
  5427. sameDay: '[Heddiw am] LT',
  5428. nextDay: '[Yfory am] LT',
  5429. nextWeek: 'dddd [am] LT',
  5430. lastDay: '[Ddoe am] LT',
  5431. lastWeek: 'dddd [diwethaf am] LT',
  5432. sameElse: 'L'
  5433. },
  5434. relativeTime: {
  5435. future: 'mewn %s',
  5436. past: '%s yn ôl',
  5437. s: 'ychydig eiliadau',
  5438. m: 'munud',
  5439. mm: '%d munud',
  5440. h: 'awr',
  5441. hh: '%d awr',
  5442. d: 'diwrnod',
  5443. dd: '%d diwrnod',
  5444. M: 'mis',
  5445. MM: '%d mis',
  5446. y: 'blwyddyn',
  5447. yy: '%d flynedd'
  5448. },
  5449. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  5450. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  5451. ordinal: function (number) {
  5452. var b = number,
  5453. output = '',
  5454. lookup = [
  5455. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  5456. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  5457. ];
  5458. if (b > 20) {
  5459. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  5460. output = 'fed'; // not 30ain, 70ain or 90ain
  5461. } else {
  5462. output = 'ain';
  5463. }
  5464. } else if (b > 0) {
  5465. output = lookup[b];
  5466. }
  5467. return number + output;
  5468. },
  5469. week : {
  5470. dow : 1, // Monday is the first day of the week.
  5471. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5472. }
  5473. });
  5474. //! moment.js locale configuration
  5475. //! locale : Danish [da]
  5476. //! author : Ulrik Nielsen : https://github.com/mrbase
  5477. hooks.defineLocale('da', {
  5478. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  5479. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  5480. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  5481. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  5482. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  5483. longDateFormat : {
  5484. LT : 'HH:mm',
  5485. LTS : 'HH:mm:ss',
  5486. L : 'DD.MM.YYYY',
  5487. LL : 'D. MMMM YYYY',
  5488. LLL : 'D. MMMM YYYY HH:mm',
  5489. LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  5490. },
  5491. calendar : {
  5492. sameDay : '[i dag kl.] LT',
  5493. nextDay : '[i morgen kl.] LT',
  5494. nextWeek : 'på dddd [kl.] LT',
  5495. lastDay : '[i går kl.] LT',
  5496. lastWeek : '[i] dddd[s kl.] LT',
  5497. sameElse : 'L'
  5498. },
  5499. relativeTime : {
  5500. future : 'om %s',
  5501. past : '%s siden',
  5502. s : 'få sekunder',
  5503. m : 'et minut',
  5504. mm : '%d minutter',
  5505. h : 'en time',
  5506. hh : '%d timer',
  5507. d : 'en dag',
  5508. dd : '%d dage',
  5509. M : 'en måned',
  5510. MM : '%d måneder',
  5511. y : 'et år',
  5512. yy : '%d år'
  5513. },
  5514. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5515. ordinal : '%d.',
  5516. week : {
  5517. dow : 1, // Monday is the first day of the week.
  5518. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5519. }
  5520. });
  5521. //! moment.js locale configuration
  5522. //! locale : German (Austria) [de-at]
  5523. //! author : lluchs : https://github.com/lluchs
  5524. //! author: Menelion Elensúle: https://github.com/Oire
  5525. //! author : Martin Groller : https://github.com/MadMG
  5526. //! author : Mikolaj Dadela : https://github.com/mik01aj
  5527. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  5528. var format = {
  5529. 'm': ['eine Minute', 'einer Minute'],
  5530. 'h': ['eine Stunde', 'einer Stunde'],
  5531. 'd': ['ein Tag', 'einem Tag'],
  5532. 'dd': [number + ' Tage', number + ' Tagen'],
  5533. 'M': ['ein Monat', 'einem Monat'],
  5534. 'MM': [number + ' Monate', number + ' Monaten'],
  5535. 'y': ['ein Jahr', 'einem Jahr'],
  5536. 'yy': [number + ' Jahre', number + ' Jahren']
  5537. };
  5538. return withoutSuffix ? format[key][0] : format[key][1];
  5539. }
  5540. hooks.defineLocale('de-at', {
  5541. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5542. monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  5543. monthsParseExact : true,
  5544. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5545. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5546. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5547. weekdaysParseExact : true,
  5548. longDateFormat : {
  5549. LT: 'HH:mm',
  5550. LTS: 'HH:mm:ss',
  5551. L : 'DD.MM.YYYY',
  5552. LL : 'D. MMMM YYYY',
  5553. LLL : 'D. MMMM YYYY HH:mm',
  5554. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5555. },
  5556. calendar : {
  5557. sameDay: '[heute um] LT [Uhr]',
  5558. sameElse: 'L',
  5559. nextDay: '[morgen um] LT [Uhr]',
  5560. nextWeek: 'dddd [um] LT [Uhr]',
  5561. lastDay: '[gestern um] LT [Uhr]',
  5562. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5563. },
  5564. relativeTime : {
  5565. future : 'in %s',
  5566. past : 'vor %s',
  5567. s : 'ein paar Sekunden',
  5568. m : processRelativeTime,
  5569. mm : '%d Minuten',
  5570. h : processRelativeTime,
  5571. hh : '%d Stunden',
  5572. d : processRelativeTime,
  5573. dd : processRelativeTime,
  5574. M : processRelativeTime,
  5575. MM : processRelativeTime,
  5576. y : processRelativeTime,
  5577. yy : processRelativeTime
  5578. },
  5579. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5580. ordinal : '%d.',
  5581. week : {
  5582. dow : 1, // Monday is the first day of the week.
  5583. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5584. }
  5585. });
  5586. //! moment.js locale configuration
  5587. //! locale : German (Switzerland) [de-ch]
  5588. //! author : sschueller : https://github.com/sschueller
  5589. // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
  5590. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  5591. var format = {
  5592. 'm': ['eine Minute', 'einer Minute'],
  5593. 'h': ['eine Stunde', 'einer Stunde'],
  5594. 'd': ['ein Tag', 'einem Tag'],
  5595. 'dd': [number + ' Tage', number + ' Tagen'],
  5596. 'M': ['ein Monat', 'einem Monat'],
  5597. 'MM': [number + ' Monate', number + ' Monaten'],
  5598. 'y': ['ein Jahr', 'einem Jahr'],
  5599. 'yy': [number + ' Jahre', number + ' Jahren']
  5600. };
  5601. return withoutSuffix ? format[key][0] : format[key][1];
  5602. }
  5603. hooks.defineLocale('de-ch', {
  5604. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5605. monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  5606. monthsParseExact : true,
  5607. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5608. weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5609. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5610. weekdaysParseExact : true,
  5611. longDateFormat : {
  5612. LT: 'HH.mm',
  5613. LTS: 'HH.mm.ss',
  5614. L : 'DD.MM.YYYY',
  5615. LL : 'D. MMMM YYYY',
  5616. LLL : 'D. MMMM YYYY HH.mm',
  5617. LLLL : 'dddd, D. MMMM YYYY HH.mm'
  5618. },
  5619. calendar : {
  5620. sameDay: '[heute um] LT [Uhr]',
  5621. sameElse: 'L',
  5622. nextDay: '[morgen um] LT [Uhr]',
  5623. nextWeek: 'dddd [um] LT [Uhr]',
  5624. lastDay: '[gestern um] LT [Uhr]',
  5625. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5626. },
  5627. relativeTime : {
  5628. future : 'in %s',
  5629. past : 'vor %s',
  5630. s : 'ein paar Sekunden',
  5631. m : processRelativeTime$1,
  5632. mm : '%d Minuten',
  5633. h : processRelativeTime$1,
  5634. hh : '%d Stunden',
  5635. d : processRelativeTime$1,
  5636. dd : processRelativeTime$1,
  5637. M : processRelativeTime$1,
  5638. MM : processRelativeTime$1,
  5639. y : processRelativeTime$1,
  5640. yy : processRelativeTime$1
  5641. },
  5642. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5643. ordinal : '%d.',
  5644. week : {
  5645. dow : 1, // Monday is the first day of the week.
  5646. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5647. }
  5648. });
  5649. //! moment.js locale configuration
  5650. //! locale : German [de]
  5651. //! author : lluchs : https://github.com/lluchs
  5652. //! author: Menelion Elensúle: https://github.com/Oire
  5653. //! author : Mikolaj Dadela : https://github.com/mik01aj
  5654. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  5655. var format = {
  5656. 'm': ['eine Minute', 'einer Minute'],
  5657. 'h': ['eine Stunde', 'einer Stunde'],
  5658. 'd': ['ein Tag', 'einem Tag'],
  5659. 'dd': [number + ' Tage', number + ' Tagen'],
  5660. 'M': ['ein Monat', 'einem Monat'],
  5661. 'MM': [number + ' Monate', number + ' Monaten'],
  5662. 'y': ['ein Jahr', 'einem Jahr'],
  5663. 'yy': [number + ' Jahre', number + ' Jahren']
  5664. };
  5665. return withoutSuffix ? format[key][0] : format[key][1];
  5666. }
  5667. hooks.defineLocale('de', {
  5668. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  5669. monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  5670. monthsParseExact : true,
  5671. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  5672. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  5673. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  5674. weekdaysParseExact : true,
  5675. longDateFormat : {
  5676. LT: 'HH:mm',
  5677. LTS: 'HH:mm:ss',
  5678. L : 'DD.MM.YYYY',
  5679. LL : 'D. MMMM YYYY',
  5680. LLL : 'D. MMMM YYYY HH:mm',
  5681. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  5682. },
  5683. calendar : {
  5684. sameDay: '[heute um] LT [Uhr]',
  5685. sameElse: 'L',
  5686. nextDay: '[morgen um] LT [Uhr]',
  5687. nextWeek: 'dddd [um] LT [Uhr]',
  5688. lastDay: '[gestern um] LT [Uhr]',
  5689. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  5690. },
  5691. relativeTime : {
  5692. future : 'in %s',
  5693. past : 'vor %s',
  5694. s : 'ein paar Sekunden',
  5695. m : processRelativeTime$2,
  5696. mm : '%d Minuten',
  5697. h : processRelativeTime$2,
  5698. hh : '%d Stunden',
  5699. d : processRelativeTime$2,
  5700. dd : processRelativeTime$2,
  5701. M : processRelativeTime$2,
  5702. MM : processRelativeTime$2,
  5703. y : processRelativeTime$2,
  5704. yy : processRelativeTime$2
  5705. },
  5706. dayOfMonthOrdinalParse: /\d{1,2}\./,
  5707. ordinal : '%d.',
  5708. week : {
  5709. dow : 1, // Monday is the first day of the week.
  5710. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5711. }
  5712. });
  5713. //! moment.js locale configuration
  5714. //! locale : Maldivian [dv]
  5715. //! author : Jawish Hameed : https://github.com/jawish
  5716. var months$4 = [
  5717. 'ޖެނުއަރީ',
  5718. 'ފެބްރުއަރީ',
  5719. 'މާރިޗު',
  5720. 'އޭޕްރީލު',
  5721. 'މޭ',
  5722. 'ޖޫން',
  5723. 'ޖުލައި',
  5724. 'އޯގަސްޓު',
  5725. 'ސެޕްޓެމްބަރު',
  5726. 'އޮކްޓޯބަރު',
  5727. 'ނޮވެމްބަރު',
  5728. 'ޑިސެމްބަރު'
  5729. ];
  5730. var weekdays = [
  5731. 'އާދިއްތަ',
  5732. 'ހޯމަ',
  5733. 'އަންގާރަ',
  5734. 'ބުދަ',
  5735. 'ބުރާސްފަތި',
  5736. 'ހުކުރު',
  5737. 'ހޮނިހިރު'
  5738. ];
  5739. hooks.defineLocale('dv', {
  5740. months : months$4,
  5741. monthsShort : months$4,
  5742. weekdays : weekdays,
  5743. weekdaysShort : weekdays,
  5744. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  5745. longDateFormat : {
  5746. LT : 'HH:mm',
  5747. LTS : 'HH:mm:ss',
  5748. L : 'D/M/YYYY',
  5749. LL : 'D MMMM YYYY',
  5750. LLL : 'D MMMM YYYY HH:mm',
  5751. LLLL : 'dddd D MMMM YYYY HH:mm'
  5752. },
  5753. meridiemParse: /މކ|މފ/,
  5754. isPM : function (input) {
  5755. return 'މފ' === input;
  5756. },
  5757. meridiem : function (hour, minute, isLower) {
  5758. if (hour < 12) {
  5759. return 'މކ';
  5760. } else {
  5761. return 'މފ';
  5762. }
  5763. },
  5764. calendar : {
  5765. sameDay : '[މިއަދު] LT',
  5766. nextDay : '[މާދަމާ] LT',
  5767. nextWeek : 'dddd LT',
  5768. lastDay : '[އިއްޔެ] LT',
  5769. lastWeek : '[ފާއިތުވި] dddd LT',
  5770. sameElse : 'L'
  5771. },
  5772. relativeTime : {
  5773. future : 'ތެރޭގައި %s',
  5774. past : 'ކުރިން %s',
  5775. s : 'ސިކުންތުކޮޅެއް',
  5776. m : 'މިނިޓެއް',
  5777. mm : 'މިނިޓު %d',
  5778. h : 'ގަޑިއިރެއް',
  5779. hh : 'ގަޑިއިރު %d',
  5780. d : 'ދުވަހެއް',
  5781. dd : 'ދުވަސް %d',
  5782. M : 'މަހެއް',
  5783. MM : 'މަސް %d',
  5784. y : 'އަހަރެއް',
  5785. yy : 'އަހަރު %d'
  5786. },
  5787. preparse: function (string) {
  5788. return string.replace(/،/g, ',');
  5789. },
  5790. postformat: function (string) {
  5791. return string.replace(/,/g, '،');
  5792. },
  5793. week : {
  5794. dow : 7, // Sunday is the first day of the week.
  5795. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5796. }
  5797. });
  5798. //! moment.js locale configuration
  5799. //! locale : Greek [el]
  5800. //! author : Aggelos Karalias : https://github.com/mehiel
  5801. hooks.defineLocale('el', {
  5802. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  5803. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  5804. months : function (momentToFormat, format) {
  5805. if (!momentToFormat) {
  5806. return this._monthsNominativeEl;
  5807. } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  5808. return this._monthsGenitiveEl[momentToFormat.month()];
  5809. } else {
  5810. return this._monthsNominativeEl[momentToFormat.month()];
  5811. }
  5812. },
  5813. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  5814. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  5815. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  5816. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  5817. meridiem : function (hours, minutes, isLower) {
  5818. if (hours > 11) {
  5819. return isLower ? 'μμ' : 'ΜΜ';
  5820. } else {
  5821. return isLower ? 'πμ' : 'ΠΜ';
  5822. }
  5823. },
  5824. isPM : function (input) {
  5825. return ((input + '').toLowerCase()[0] === 'μ');
  5826. },
  5827. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  5828. longDateFormat : {
  5829. LT : 'h:mm A',
  5830. LTS : 'h:mm:ss A',
  5831. L : 'DD/MM/YYYY',
  5832. LL : 'D MMMM YYYY',
  5833. LLL : 'D MMMM YYYY h:mm A',
  5834. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5835. },
  5836. calendarEl : {
  5837. sameDay : '[Σήμερα {}] LT',
  5838. nextDay : '[Αύριο {}] LT',
  5839. nextWeek : 'dddd [{}] LT',
  5840. lastDay : '[Χθες {}] LT',
  5841. lastWeek : function () {
  5842. switch (this.day()) {
  5843. case 6:
  5844. return '[το προηγούμενο] dddd [{}] LT';
  5845. default:
  5846. return '[την προηγούμενη] dddd [{}] LT';
  5847. }
  5848. },
  5849. sameElse : 'L'
  5850. },
  5851. calendar : function (key, mom) {
  5852. var output = this._calendarEl[key],
  5853. hours = mom && mom.hours();
  5854. if (isFunction(output)) {
  5855. output = output.apply(mom);
  5856. }
  5857. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  5858. },
  5859. relativeTime : {
  5860. future : 'σε %s',
  5861. past : '%s πριν',
  5862. s : 'λίγα δευτερόλεπτα',
  5863. m : 'ένα λεπτό',
  5864. mm : '%d λεπτά',
  5865. h : 'μία ώρα',
  5866. hh : '%d ώρες',
  5867. d : 'μία μέρα',
  5868. dd : '%d μέρες',
  5869. M : 'ένας μήνας',
  5870. MM : '%d μήνες',
  5871. y : 'ένας χρόνος',
  5872. yy : '%d χρόνια'
  5873. },
  5874. dayOfMonthOrdinalParse: /\d{1,2}η/,
  5875. ordinal: '%dη',
  5876. week : {
  5877. dow : 1, // Monday is the first day of the week.
  5878. doy : 4 // The week that contains Jan 4st is the first week of the year.
  5879. }
  5880. });
  5881. //! moment.js locale configuration
  5882. //! locale : English (Australia) [en-au]
  5883. //! author : Jared Morse : https://github.com/jarcoal
  5884. hooks.defineLocale('en-au', {
  5885. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5886. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5887. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5888. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5889. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5890. longDateFormat : {
  5891. LT : 'h:mm A',
  5892. LTS : 'h:mm:ss A',
  5893. L : 'DD/MM/YYYY',
  5894. LL : 'D MMMM YYYY',
  5895. LLL : 'D MMMM YYYY h:mm A',
  5896. LLLL : 'dddd, D MMMM YYYY h:mm A'
  5897. },
  5898. calendar : {
  5899. sameDay : '[Today at] LT',
  5900. nextDay : '[Tomorrow at] LT',
  5901. nextWeek : 'dddd [at] LT',
  5902. lastDay : '[Yesterday at] LT',
  5903. lastWeek : '[Last] dddd [at] LT',
  5904. sameElse : 'L'
  5905. },
  5906. relativeTime : {
  5907. future : 'in %s',
  5908. past : '%s ago',
  5909. s : 'a few seconds',
  5910. m : 'a minute',
  5911. mm : '%d minutes',
  5912. h : 'an hour',
  5913. hh : '%d hours',
  5914. d : 'a day',
  5915. dd : '%d days',
  5916. M : 'a month',
  5917. MM : '%d months',
  5918. y : 'a year',
  5919. yy : '%d years'
  5920. },
  5921. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5922. ordinal : function (number) {
  5923. var b = number % 10,
  5924. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5925. (b === 1) ? 'st' :
  5926. (b === 2) ? 'nd' :
  5927. (b === 3) ? 'rd' : 'th';
  5928. return number + output;
  5929. },
  5930. week : {
  5931. dow : 1, // Monday is the first day of the week.
  5932. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5933. }
  5934. });
  5935. //! moment.js locale configuration
  5936. //! locale : English (Canada) [en-ca]
  5937. //! author : Jonathan Abourbih : https://github.com/jonbca
  5938. hooks.defineLocale('en-ca', {
  5939. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5940. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5941. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5942. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5943. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5944. longDateFormat : {
  5945. LT : 'h:mm A',
  5946. LTS : 'h:mm:ss A',
  5947. L : 'YYYY-MM-DD',
  5948. LL : 'MMMM D, YYYY',
  5949. LLL : 'MMMM D, YYYY h:mm A',
  5950. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  5951. },
  5952. calendar : {
  5953. sameDay : '[Today at] LT',
  5954. nextDay : '[Tomorrow at] LT',
  5955. nextWeek : 'dddd [at] LT',
  5956. lastDay : '[Yesterday at] LT',
  5957. lastWeek : '[Last] dddd [at] LT',
  5958. sameElse : 'L'
  5959. },
  5960. relativeTime : {
  5961. future : 'in %s',
  5962. past : '%s ago',
  5963. s : 'a few seconds',
  5964. m : 'a minute',
  5965. mm : '%d minutes',
  5966. h : 'an hour',
  5967. hh : '%d hours',
  5968. d : 'a day',
  5969. dd : '%d days',
  5970. M : 'a month',
  5971. MM : '%d months',
  5972. y : 'a year',
  5973. yy : '%d years'
  5974. },
  5975. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  5976. ordinal : function (number) {
  5977. var b = number % 10,
  5978. output = (~~(number % 100 / 10) === 1) ? 'th' :
  5979. (b === 1) ? 'st' :
  5980. (b === 2) ? 'nd' :
  5981. (b === 3) ? 'rd' : 'th';
  5982. return number + output;
  5983. }
  5984. });
  5985. //! moment.js locale configuration
  5986. //! locale : English (United Kingdom) [en-gb]
  5987. //! author : Chris Gedrim : https://github.com/chrisgedrim
  5988. hooks.defineLocale('en-gb', {
  5989. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  5990. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  5991. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  5992. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  5993. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  5994. longDateFormat : {
  5995. LT : 'HH:mm',
  5996. LTS : 'HH:mm:ss',
  5997. L : 'DD/MM/YYYY',
  5998. LL : 'D MMMM YYYY',
  5999. LLL : 'D MMMM YYYY HH:mm',
  6000. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6001. },
  6002. calendar : {
  6003. sameDay : '[Today at] LT',
  6004. nextDay : '[Tomorrow at] LT',
  6005. nextWeek : 'dddd [at] LT',
  6006. lastDay : '[Yesterday at] LT',
  6007. lastWeek : '[Last] dddd [at] LT',
  6008. sameElse : 'L'
  6009. },
  6010. relativeTime : {
  6011. future : 'in %s',
  6012. past : '%s ago',
  6013. s : 'a few seconds',
  6014. m : 'a minute',
  6015. mm : '%d minutes',
  6016. h : 'an hour',
  6017. hh : '%d hours',
  6018. d : 'a day',
  6019. dd : '%d days',
  6020. M : 'a month',
  6021. MM : '%d months',
  6022. y : 'a year',
  6023. yy : '%d years'
  6024. },
  6025. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6026. ordinal : function (number) {
  6027. var b = number % 10,
  6028. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6029. (b === 1) ? 'st' :
  6030. (b === 2) ? 'nd' :
  6031. (b === 3) ? 'rd' : 'th';
  6032. return number + output;
  6033. },
  6034. week : {
  6035. dow : 1, // Monday is the first day of the week.
  6036. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6037. }
  6038. });
  6039. //! moment.js locale configuration
  6040. //! locale : English (Ireland) [en-ie]
  6041. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  6042. hooks.defineLocale('en-ie', {
  6043. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6044. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6045. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6046. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6047. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6048. longDateFormat : {
  6049. LT : 'HH:mm',
  6050. LTS : 'HH:mm:ss',
  6051. L : 'DD-MM-YYYY',
  6052. LL : 'D MMMM YYYY',
  6053. LLL : 'D MMMM YYYY HH:mm',
  6054. LLLL : 'dddd D MMMM YYYY HH:mm'
  6055. },
  6056. calendar : {
  6057. sameDay : '[Today at] LT',
  6058. nextDay : '[Tomorrow at] LT',
  6059. nextWeek : 'dddd [at] LT',
  6060. lastDay : '[Yesterday at] LT',
  6061. lastWeek : '[Last] dddd [at] LT',
  6062. sameElse : 'L'
  6063. },
  6064. relativeTime : {
  6065. future : 'in %s',
  6066. past : '%s ago',
  6067. s : 'a few seconds',
  6068. m : 'a minute',
  6069. mm : '%d minutes',
  6070. h : 'an hour',
  6071. hh : '%d hours',
  6072. d : 'a day',
  6073. dd : '%d days',
  6074. M : 'a month',
  6075. MM : '%d months',
  6076. y : 'a year',
  6077. yy : '%d years'
  6078. },
  6079. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6080. ordinal : function (number) {
  6081. var b = number % 10,
  6082. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6083. (b === 1) ? 'st' :
  6084. (b === 2) ? 'nd' :
  6085. (b === 3) ? 'rd' : 'th';
  6086. return number + output;
  6087. },
  6088. week : {
  6089. dow : 1, // Monday is the first day of the week.
  6090. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6091. }
  6092. });
  6093. //! moment.js locale configuration
  6094. //! locale : English (New Zealand) [en-nz]
  6095. //! author : Luke McGregor : https://github.com/lukemcgregor
  6096. hooks.defineLocale('en-nz', {
  6097. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  6098. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  6099. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  6100. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  6101. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  6102. longDateFormat : {
  6103. LT : 'h:mm A',
  6104. LTS : 'h:mm:ss A',
  6105. L : 'DD/MM/YYYY',
  6106. LL : 'D MMMM YYYY',
  6107. LLL : 'D MMMM YYYY h:mm A',
  6108. LLLL : 'dddd, D MMMM YYYY h:mm A'
  6109. },
  6110. calendar : {
  6111. sameDay : '[Today at] LT',
  6112. nextDay : '[Tomorrow at] LT',
  6113. nextWeek : 'dddd [at] LT',
  6114. lastDay : '[Yesterday at] LT',
  6115. lastWeek : '[Last] dddd [at] LT',
  6116. sameElse : 'L'
  6117. },
  6118. relativeTime : {
  6119. future : 'in %s',
  6120. past : '%s ago',
  6121. s : 'a few seconds',
  6122. m : 'a minute',
  6123. mm : '%d minutes',
  6124. h : 'an hour',
  6125. hh : '%d hours',
  6126. d : 'a day',
  6127. dd : '%d days',
  6128. M : 'a month',
  6129. MM : '%d months',
  6130. y : 'a year',
  6131. yy : '%d years'
  6132. },
  6133. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  6134. ordinal : function (number) {
  6135. var b = number % 10,
  6136. output = (~~(number % 100 / 10) === 1) ? 'th' :
  6137. (b === 1) ? 'st' :
  6138. (b === 2) ? 'nd' :
  6139. (b === 3) ? 'rd' : 'th';
  6140. return number + output;
  6141. },
  6142. week : {
  6143. dow : 1, // Monday is the first day of the week.
  6144. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6145. }
  6146. });
  6147. //! moment.js locale configuration
  6148. //! locale : Esperanto [eo]
  6149. //! author : Colin Dean : https://github.com/colindean
  6150. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  6151. //! comment : miestasmia corrected the translation by colindean
  6152. hooks.defineLocale('eo', {
  6153. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  6154. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  6155. weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  6156. weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  6157. weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  6158. longDateFormat : {
  6159. LT : 'HH:mm',
  6160. LTS : 'HH:mm:ss',
  6161. L : 'YYYY-MM-DD',
  6162. LL : 'D[-a de] MMMM, YYYY',
  6163. LLL : 'D[-a de] MMMM, YYYY HH:mm',
  6164. LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
  6165. },
  6166. meridiemParse: /[ap]\.t\.m/i,
  6167. isPM: function (input) {
  6168. return input.charAt(0).toLowerCase() === 'p';
  6169. },
  6170. meridiem : function (hours, minutes, isLower) {
  6171. if (hours > 11) {
  6172. return isLower ? 'p.t.m.' : 'P.T.M.';
  6173. } else {
  6174. return isLower ? 'a.t.m.' : 'A.T.M.';
  6175. }
  6176. },
  6177. calendar : {
  6178. sameDay : '[Hodiaŭ je] LT',
  6179. nextDay : '[Morgaŭ je] LT',
  6180. nextWeek : 'dddd [je] LT',
  6181. lastDay : '[Hieraŭ je] LT',
  6182. lastWeek : '[pasinta] dddd [je] LT',
  6183. sameElse : 'L'
  6184. },
  6185. relativeTime : {
  6186. future : 'post %s',
  6187. past : 'antaŭ %s',
  6188. s : 'sekundoj',
  6189. m : 'minuto',
  6190. mm : '%d minutoj',
  6191. h : 'horo',
  6192. hh : '%d horoj',
  6193. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  6194. dd : '%d tagoj',
  6195. M : 'monato',
  6196. MM : '%d monatoj',
  6197. y : 'jaro',
  6198. yy : '%d jaroj'
  6199. },
  6200. dayOfMonthOrdinalParse: /\d{1,2}a/,
  6201. ordinal : '%da',
  6202. week : {
  6203. dow : 1, // Monday is the first day of the week.
  6204. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6205. }
  6206. });
  6207. //! moment.js locale configuration
  6208. //! locale : Spanish (Dominican Republic) [es-do]
  6209. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  6210. var monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6211. var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  6212. var monthsRegex$1 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  6213. hooks.defineLocale('es-do', {
  6214. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6215. monthsShort : function (m, format) {
  6216. if (!m) {
  6217. return monthsShortDot;
  6218. } else if (/-MMM-/.test(format)) {
  6219. return monthsShort$1[m.month()];
  6220. } else {
  6221. return monthsShortDot[m.month()];
  6222. }
  6223. },
  6224. monthsRegex: monthsRegex$1,
  6225. monthsShortRegex: monthsRegex$1,
  6226. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  6227. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  6228. monthsParse: monthsParse,
  6229. longMonthsParse: monthsParse,
  6230. shortMonthsParse: monthsParse,
  6231. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6232. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6233. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6234. weekdaysParseExact : true,
  6235. longDateFormat : {
  6236. LT : 'h:mm A',
  6237. LTS : 'h:mm:ss A',
  6238. L : 'DD/MM/YYYY',
  6239. LL : 'D [de] MMMM [de] YYYY',
  6240. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  6241. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  6242. },
  6243. calendar : {
  6244. sameDay : function () {
  6245. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6246. },
  6247. nextDay : function () {
  6248. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6249. },
  6250. nextWeek : function () {
  6251. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6252. },
  6253. lastDay : function () {
  6254. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6255. },
  6256. lastWeek : function () {
  6257. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6258. },
  6259. sameElse : 'L'
  6260. },
  6261. relativeTime : {
  6262. future : 'en %s',
  6263. past : 'hace %s',
  6264. s : 'unos segundos',
  6265. m : 'un minuto',
  6266. mm : '%d minutos',
  6267. h : 'una hora',
  6268. hh : '%d horas',
  6269. d : 'un día',
  6270. dd : '%d días',
  6271. M : 'un mes',
  6272. MM : '%d meses',
  6273. y : 'un año',
  6274. yy : '%d años'
  6275. },
  6276. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6277. ordinal : '%dº',
  6278. week : {
  6279. dow : 1, // Monday is the first day of the week.
  6280. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6281. }
  6282. });
  6283. //! moment.js locale configuration
  6284. //! locale : Spanish (United States) [es-us]
  6285. //! author : bustta : https://github.com/bustta
  6286. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  6287. var monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6288. hooks.defineLocale('es-us', {
  6289. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6290. monthsShort : function (m, format) {
  6291. if (!m) {
  6292. return monthsShortDot$1;
  6293. } else if (/-MMM-/.test(format)) {
  6294. return monthsShort$2[m.month()];
  6295. } else {
  6296. return monthsShortDot$1[m.month()];
  6297. }
  6298. },
  6299. monthsParseExact : true,
  6300. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6301. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6302. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6303. weekdaysParseExact : true,
  6304. longDateFormat : {
  6305. LT : 'H:mm',
  6306. LTS : 'H:mm:ss',
  6307. L : 'MM/DD/YYYY',
  6308. LL : 'MMMM [de] D [de] YYYY',
  6309. LLL : 'MMMM [de] D [de] YYYY H:mm',
  6310. LLLL : 'dddd, MMMM [de] D [de] YYYY H:mm'
  6311. },
  6312. calendar : {
  6313. sameDay : function () {
  6314. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6315. },
  6316. nextDay : function () {
  6317. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6318. },
  6319. nextWeek : function () {
  6320. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6321. },
  6322. lastDay : function () {
  6323. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6324. },
  6325. lastWeek : function () {
  6326. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6327. },
  6328. sameElse : 'L'
  6329. },
  6330. relativeTime : {
  6331. future : 'en %s',
  6332. past : 'hace %s',
  6333. s : 'unos segundos',
  6334. m : 'un minuto',
  6335. mm : '%d minutos',
  6336. h : 'una hora',
  6337. hh : '%d horas',
  6338. d : 'un día',
  6339. dd : '%d días',
  6340. M : 'un mes',
  6341. MM : '%d meses',
  6342. y : 'un año',
  6343. yy : '%d años'
  6344. },
  6345. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6346. ordinal : '%dº',
  6347. week : {
  6348. dow : 0, // Sunday is the first day of the week.
  6349. doy : 6 // The week that contains Jan 1st is the first week of the year.
  6350. }
  6351. });
  6352. //! moment.js locale configuration
  6353. //! locale : Spanish [es]
  6354. //! author : Julio Napurí : https://github.com/julionc
  6355. var monthsShortDot$2 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  6356. var monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  6357. var monthsParse$1 = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  6358. var monthsRegex$2 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  6359. hooks.defineLocale('es', {
  6360. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  6361. monthsShort : function (m, format) {
  6362. if (!m) {
  6363. return monthsShortDot$2;
  6364. } else if (/-MMM-/.test(format)) {
  6365. return monthsShort$3[m.month()];
  6366. } else {
  6367. return monthsShortDot$2[m.month()];
  6368. }
  6369. },
  6370. monthsRegex : monthsRegex$2,
  6371. monthsShortRegex : monthsRegex$2,
  6372. monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  6373. monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  6374. monthsParse : monthsParse$1,
  6375. longMonthsParse : monthsParse$1,
  6376. shortMonthsParse : monthsParse$1,
  6377. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  6378. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  6379. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  6380. weekdaysParseExact : true,
  6381. longDateFormat : {
  6382. LT : 'H:mm',
  6383. LTS : 'H:mm:ss',
  6384. L : 'DD/MM/YYYY',
  6385. LL : 'D [de] MMMM [de] YYYY',
  6386. LLL : 'D [de] MMMM [de] YYYY H:mm',
  6387. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  6388. },
  6389. calendar : {
  6390. sameDay : function () {
  6391. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6392. },
  6393. nextDay : function () {
  6394. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6395. },
  6396. nextWeek : function () {
  6397. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6398. },
  6399. lastDay : function () {
  6400. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6401. },
  6402. lastWeek : function () {
  6403. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  6404. },
  6405. sameElse : 'L'
  6406. },
  6407. relativeTime : {
  6408. future : 'en %s',
  6409. past : 'hace %s',
  6410. s : 'unos segundos',
  6411. m : 'un minuto',
  6412. mm : '%d minutos',
  6413. h : 'una hora',
  6414. hh : '%d horas',
  6415. d : 'un día',
  6416. dd : '%d días',
  6417. M : 'un mes',
  6418. MM : '%d meses',
  6419. y : 'un año',
  6420. yy : '%d años'
  6421. },
  6422. dayOfMonthOrdinalParse : /\d{1,2}º/,
  6423. ordinal : '%dº',
  6424. week : {
  6425. dow : 1, // Monday is the first day of the week.
  6426. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6427. }
  6428. });
  6429. //! moment.js locale configuration
  6430. //! locale : Estonian [et]
  6431. //! author : Henry Kehlmann : https://github.com/madhenry
  6432. //! improvements : Illimar Tambek : https://github.com/ragulka
  6433. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  6434. var format = {
  6435. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  6436. 'm' : ['ühe minuti', 'üks minut'],
  6437. 'mm': [number + ' minuti', number + ' minutit'],
  6438. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  6439. 'hh': [number + ' tunni', number + ' tundi'],
  6440. 'd' : ['ühe päeva', 'üks päev'],
  6441. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  6442. 'MM': [number + ' kuu', number + ' kuud'],
  6443. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  6444. 'yy': [number + ' aasta', number + ' aastat']
  6445. };
  6446. if (withoutSuffix) {
  6447. return format[key][2] ? format[key][2] : format[key][1];
  6448. }
  6449. return isFuture ? format[key][0] : format[key][1];
  6450. }
  6451. hooks.defineLocale('et', {
  6452. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  6453. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  6454. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  6455. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  6456. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  6457. longDateFormat : {
  6458. LT : 'H:mm',
  6459. LTS : 'H:mm:ss',
  6460. L : 'DD.MM.YYYY',
  6461. LL : 'D. MMMM YYYY',
  6462. LLL : 'D. MMMM YYYY H:mm',
  6463. LLLL : 'dddd, D. MMMM YYYY H:mm'
  6464. },
  6465. calendar : {
  6466. sameDay : '[Täna,] LT',
  6467. nextDay : '[Homme,] LT',
  6468. nextWeek : '[Järgmine] dddd LT',
  6469. lastDay : '[Eile,] LT',
  6470. lastWeek : '[Eelmine] dddd LT',
  6471. sameElse : 'L'
  6472. },
  6473. relativeTime : {
  6474. future : '%s pärast',
  6475. past : '%s tagasi',
  6476. s : processRelativeTime$3,
  6477. m : processRelativeTime$3,
  6478. mm : processRelativeTime$3,
  6479. h : processRelativeTime$3,
  6480. hh : processRelativeTime$3,
  6481. d : processRelativeTime$3,
  6482. dd : '%d päeva',
  6483. M : processRelativeTime$3,
  6484. MM : processRelativeTime$3,
  6485. y : processRelativeTime$3,
  6486. yy : processRelativeTime$3
  6487. },
  6488. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6489. ordinal : '%d.',
  6490. week : {
  6491. dow : 1, // Monday is the first day of the week.
  6492. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6493. }
  6494. });
  6495. //! moment.js locale configuration
  6496. //! locale : Basque [eu]
  6497. //! author : Eneko Illarramendi : https://github.com/eillarra
  6498. hooks.defineLocale('eu', {
  6499. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  6500. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  6501. monthsParseExact : true,
  6502. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  6503. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  6504. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  6505. weekdaysParseExact : true,
  6506. longDateFormat : {
  6507. LT : 'HH:mm',
  6508. LTS : 'HH:mm:ss',
  6509. L : 'YYYY-MM-DD',
  6510. LL : 'YYYY[ko] MMMM[ren] D[a]',
  6511. LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  6512. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  6513. l : 'YYYY-M-D',
  6514. ll : 'YYYY[ko] MMM D[a]',
  6515. lll : 'YYYY[ko] MMM D[a] HH:mm',
  6516. llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
  6517. },
  6518. calendar : {
  6519. sameDay : '[gaur] LT[etan]',
  6520. nextDay : '[bihar] LT[etan]',
  6521. nextWeek : 'dddd LT[etan]',
  6522. lastDay : '[atzo] LT[etan]',
  6523. lastWeek : '[aurreko] dddd LT[etan]',
  6524. sameElse : 'L'
  6525. },
  6526. relativeTime : {
  6527. future : '%s barru',
  6528. past : 'duela %s',
  6529. s : 'segundo batzuk',
  6530. m : 'minutu bat',
  6531. mm : '%d minutu',
  6532. h : 'ordu bat',
  6533. hh : '%d ordu',
  6534. d : 'egun bat',
  6535. dd : '%d egun',
  6536. M : 'hilabete bat',
  6537. MM : '%d hilabete',
  6538. y : 'urte bat',
  6539. yy : '%d urte'
  6540. },
  6541. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6542. ordinal : '%d.',
  6543. week : {
  6544. dow : 1, // Monday is the first day of the week.
  6545. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6546. }
  6547. });
  6548. //! moment.js locale configuration
  6549. //! locale : Persian [fa]
  6550. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  6551. var symbolMap$5 = {
  6552. '1': '۱',
  6553. '2': '۲',
  6554. '3': '۳',
  6555. '4': '۴',
  6556. '5': '۵',
  6557. '6': '۶',
  6558. '7': '۷',
  6559. '8': '۸',
  6560. '9': '۹',
  6561. '0': '۰'
  6562. };
  6563. var numberMap$4 = {
  6564. '۱': '1',
  6565. '۲': '2',
  6566. '۳': '3',
  6567. '۴': '4',
  6568. '۵': '5',
  6569. '۶': '6',
  6570. '۷': '7',
  6571. '۸': '8',
  6572. '۹': '9',
  6573. '۰': '0'
  6574. };
  6575. hooks.defineLocale('fa', {
  6576. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  6577. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  6578. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  6579. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  6580. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  6581. weekdaysParseExact : true,
  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. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  6591. isPM: function (input) {
  6592. return /بعد از ظهر/.test(input);
  6593. },
  6594. meridiem : function (hour, minute, isLower) {
  6595. if (hour < 12) {
  6596. return 'قبل از ظهر';
  6597. } else {
  6598. return 'بعد از ظهر';
  6599. }
  6600. },
  6601. calendar : {
  6602. sameDay : '[امروز ساعت] LT',
  6603. nextDay : '[فردا ساعت] LT',
  6604. nextWeek : 'dddd [ساعت] LT',
  6605. lastDay : '[دیروز ساعت] LT',
  6606. lastWeek : 'dddd [پیش] [ساعت] LT',
  6607. sameElse : 'L'
  6608. },
  6609. relativeTime : {
  6610. future : 'در %s',
  6611. past : '%s پیش',
  6612. s : 'چند ثانیه',
  6613. m : 'یک دقیقه',
  6614. mm : '%d دقیقه',
  6615. h : 'یک ساعت',
  6616. hh : '%d ساعت',
  6617. d : 'یک روز',
  6618. dd : '%d روز',
  6619. M : 'یک ماه',
  6620. MM : '%d ماه',
  6621. y : 'یک سال',
  6622. yy : '%d سال'
  6623. },
  6624. preparse: function (string) {
  6625. return string.replace(/[۰-۹]/g, function (match) {
  6626. return numberMap$4[match];
  6627. }).replace(/،/g, ',');
  6628. },
  6629. postformat: function (string) {
  6630. return string.replace(/\d/g, function (match) {
  6631. return symbolMap$5[match];
  6632. }).replace(/,/g, '،');
  6633. },
  6634. dayOfMonthOrdinalParse: /\d{1,2}م/,
  6635. ordinal : '%dم',
  6636. week : {
  6637. dow : 6, // Saturday is the first day of the week.
  6638. doy : 12 // The week that contains Jan 1st is the first week of the year.
  6639. }
  6640. });
  6641. //! moment.js locale configuration
  6642. //! locale : Finnish [fi]
  6643. //! author : Tarmo Aidantausta : https://github.com/bleadof
  6644. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' ');
  6645. var numbersFuture = [
  6646. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  6647. numbersPast[7], numbersPast[8], numbersPast[9]
  6648. ];
  6649. function translate$2(number, withoutSuffix, key, isFuture) {
  6650. var result = '';
  6651. switch (key) {
  6652. case 's':
  6653. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  6654. case 'm':
  6655. return isFuture ? 'minuutin' : 'minuutti';
  6656. case 'mm':
  6657. result = isFuture ? 'minuutin' : 'minuuttia';
  6658. break;
  6659. case 'h':
  6660. return isFuture ? 'tunnin' : 'tunti';
  6661. case 'hh':
  6662. result = isFuture ? 'tunnin' : 'tuntia';
  6663. break;
  6664. case 'd':
  6665. return isFuture ? 'päivän' : 'päivä';
  6666. case 'dd':
  6667. result = isFuture ? 'päivän' : 'päivää';
  6668. break;
  6669. case 'M':
  6670. return isFuture ? 'kuukauden' : 'kuukausi';
  6671. case 'MM':
  6672. result = isFuture ? 'kuukauden' : 'kuukautta';
  6673. break;
  6674. case 'y':
  6675. return isFuture ? 'vuoden' : 'vuosi';
  6676. case 'yy':
  6677. result = isFuture ? 'vuoden' : 'vuotta';
  6678. break;
  6679. }
  6680. result = verbalNumber(number, isFuture) + ' ' + result;
  6681. return result;
  6682. }
  6683. function verbalNumber(number, isFuture) {
  6684. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  6685. }
  6686. hooks.defineLocale('fi', {
  6687. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  6688. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  6689. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  6690. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  6691. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  6692. longDateFormat : {
  6693. LT : 'HH.mm',
  6694. LTS : 'HH.mm.ss',
  6695. L : 'DD.MM.YYYY',
  6696. LL : 'Do MMMM[ta] YYYY',
  6697. LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
  6698. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  6699. l : 'D.M.YYYY',
  6700. ll : 'Do MMM YYYY',
  6701. lll : 'Do MMM YYYY, [klo] HH.mm',
  6702. llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
  6703. },
  6704. calendar : {
  6705. sameDay : '[tänään] [klo] LT',
  6706. nextDay : '[huomenna] [klo] LT',
  6707. nextWeek : 'dddd [klo] LT',
  6708. lastDay : '[eilen] [klo] LT',
  6709. lastWeek : '[viime] dddd[na] [klo] LT',
  6710. sameElse : 'L'
  6711. },
  6712. relativeTime : {
  6713. future : '%s päästä',
  6714. past : '%s sitten',
  6715. s : translate$2,
  6716. m : translate$2,
  6717. mm : translate$2,
  6718. h : translate$2,
  6719. hh : translate$2,
  6720. d : translate$2,
  6721. dd : translate$2,
  6722. M : translate$2,
  6723. MM : translate$2,
  6724. y : translate$2,
  6725. yy : translate$2
  6726. },
  6727. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6728. ordinal : '%d.',
  6729. week : {
  6730. dow : 1, // Monday is the first day of the week.
  6731. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6732. }
  6733. });
  6734. //! moment.js locale configuration
  6735. //! locale : Faroese [fo]
  6736. //! author : Ragnar Johannesen : https://github.com/ragnar123
  6737. hooks.defineLocale('fo', {
  6738. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  6739. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  6740. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  6741. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  6742. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  6743. longDateFormat : {
  6744. LT : 'HH:mm',
  6745. LTS : 'HH:mm:ss',
  6746. L : 'DD/MM/YYYY',
  6747. LL : 'D MMMM YYYY',
  6748. LLL : 'D MMMM YYYY HH:mm',
  6749. LLLL : 'dddd D. MMMM, YYYY HH:mm'
  6750. },
  6751. calendar : {
  6752. sameDay : '[Í dag kl.] LT',
  6753. nextDay : '[Í morgin kl.] LT',
  6754. nextWeek : 'dddd [kl.] LT',
  6755. lastDay : '[Í gjár kl.] LT',
  6756. lastWeek : '[síðstu] dddd [kl] LT',
  6757. sameElse : 'L'
  6758. },
  6759. relativeTime : {
  6760. future : 'um %s',
  6761. past : '%s síðani',
  6762. s : 'fá sekund',
  6763. m : 'ein minutt',
  6764. mm : '%d minuttir',
  6765. h : 'ein tími',
  6766. hh : '%d tímar',
  6767. d : 'ein dagur',
  6768. dd : '%d dagar',
  6769. M : 'ein mánaði',
  6770. MM : '%d mánaðir',
  6771. y : 'eitt ár',
  6772. yy : '%d ár'
  6773. },
  6774. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6775. ordinal : '%d.',
  6776. week : {
  6777. dow : 1, // Monday is the first day of the week.
  6778. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6779. }
  6780. });
  6781. //! moment.js locale configuration
  6782. //! locale : French (Canada) [fr-ca]
  6783. //! author : Jonathan Abourbih : https://github.com/jonbca
  6784. hooks.defineLocale('fr-ca', {
  6785. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6786. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6787. monthsParseExact : true,
  6788. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6789. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6790. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6791. weekdaysParseExact : true,
  6792. longDateFormat : {
  6793. LT : 'HH:mm',
  6794. LTS : 'HH:mm:ss',
  6795. L : 'YYYY-MM-DD',
  6796. LL : 'D MMMM YYYY',
  6797. LLL : 'D MMMM YYYY HH:mm',
  6798. LLLL : 'dddd D MMMM YYYY HH:mm'
  6799. },
  6800. calendar : {
  6801. sameDay : '[Aujourd’hui à] LT',
  6802. nextDay : '[Demain à] LT',
  6803. nextWeek : 'dddd [à] LT',
  6804. lastDay : '[Hier à] LT',
  6805. lastWeek : 'dddd [dernier à] LT',
  6806. sameElse : 'L'
  6807. },
  6808. relativeTime : {
  6809. future : 'dans %s',
  6810. past : 'il y a %s',
  6811. s : 'quelques secondes',
  6812. m : 'une minute',
  6813. mm : '%d minutes',
  6814. h : 'une heure',
  6815. hh : '%d heures',
  6816. d : 'un jour',
  6817. dd : '%d jours',
  6818. M : 'un mois',
  6819. MM : '%d mois',
  6820. y : 'un an',
  6821. yy : '%d ans'
  6822. },
  6823. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  6824. ordinal : function (number, period) {
  6825. switch (period) {
  6826. // Words with masculine grammatical gender: mois, trimestre, jour
  6827. default:
  6828. case 'M':
  6829. case 'Q':
  6830. case 'D':
  6831. case 'DDD':
  6832. case 'd':
  6833. return number + (number === 1 ? 'er' : 'e');
  6834. // Words with feminine grammatical gender: semaine
  6835. case 'w':
  6836. case 'W':
  6837. return number + (number === 1 ? 're' : 'e');
  6838. }
  6839. }
  6840. });
  6841. //! moment.js locale configuration
  6842. //! locale : French (Switzerland) [fr-ch]
  6843. //! author : Gaspard Bucher : https://github.com/gaspard
  6844. hooks.defineLocale('fr-ch', {
  6845. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6846. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6847. monthsParseExact : true,
  6848. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6849. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6850. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6851. weekdaysParseExact : true,
  6852. longDateFormat : {
  6853. LT : 'HH:mm',
  6854. LTS : 'HH:mm:ss',
  6855. L : 'DD.MM.YYYY',
  6856. LL : 'D MMMM YYYY',
  6857. LLL : 'D MMMM YYYY HH:mm',
  6858. LLLL : 'dddd D MMMM YYYY HH:mm'
  6859. },
  6860. calendar : {
  6861. sameDay : '[Aujourd’hui à] LT',
  6862. nextDay : '[Demain à] LT',
  6863. nextWeek : 'dddd [à] LT',
  6864. lastDay : '[Hier à] LT',
  6865. lastWeek : 'dddd [dernier à] LT',
  6866. sameElse : 'L'
  6867. },
  6868. relativeTime : {
  6869. future : 'dans %s',
  6870. past : 'il y a %s',
  6871. s : 'quelques secondes',
  6872. m : 'une minute',
  6873. mm : '%d minutes',
  6874. h : 'une heure',
  6875. hh : '%d heures',
  6876. d : 'un jour',
  6877. dd : '%d jours',
  6878. M : 'un mois',
  6879. MM : '%d mois',
  6880. y : 'un an',
  6881. yy : '%d ans'
  6882. },
  6883. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  6884. ordinal : function (number, period) {
  6885. switch (period) {
  6886. // Words with masculine grammatical gender: mois, trimestre, jour
  6887. default:
  6888. case 'M':
  6889. case 'Q':
  6890. case 'D':
  6891. case 'DDD':
  6892. case 'd':
  6893. return number + (number === 1 ? 'er' : 'e');
  6894. // Words with feminine grammatical gender: semaine
  6895. case 'w':
  6896. case 'W':
  6897. return number + (number === 1 ? 're' : 'e');
  6898. }
  6899. },
  6900. week : {
  6901. dow : 1, // Monday is the first day of the week.
  6902. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6903. }
  6904. });
  6905. //! moment.js locale configuration
  6906. //! locale : French [fr]
  6907. //! author : John Fischer : https://github.com/jfroffice
  6908. hooks.defineLocale('fr', {
  6909. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  6910. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  6911. monthsParseExact : true,
  6912. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  6913. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  6914. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  6915. weekdaysParseExact : true,
  6916. longDateFormat : {
  6917. LT : 'HH:mm',
  6918. LTS : 'HH:mm:ss',
  6919. L : 'DD/MM/YYYY',
  6920. LL : 'D MMMM YYYY',
  6921. LLL : 'D MMMM YYYY HH:mm',
  6922. LLLL : 'dddd D MMMM YYYY HH:mm'
  6923. },
  6924. calendar : {
  6925. sameDay : '[Aujourd’hui à] LT',
  6926. nextDay : '[Demain à] LT',
  6927. nextWeek : 'dddd [à] LT',
  6928. lastDay : '[Hier à] LT',
  6929. lastWeek : 'dddd [dernier à] LT',
  6930. sameElse : 'L'
  6931. },
  6932. relativeTime : {
  6933. future : 'dans %s',
  6934. past : 'il y a %s',
  6935. s : 'quelques secondes',
  6936. m : 'une minute',
  6937. mm : '%d minutes',
  6938. h : 'une heure',
  6939. hh : '%d heures',
  6940. d : 'un jour',
  6941. dd : '%d jours',
  6942. M : 'un mois',
  6943. MM : '%d mois',
  6944. y : 'un an',
  6945. yy : '%d ans'
  6946. },
  6947. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  6948. ordinal : function (number, period) {
  6949. switch (period) {
  6950. // TODO: Return 'e' when day of month > 1. Move this case inside
  6951. // block for masculine words below.
  6952. // See https://github.com/moment/moment/issues/3375
  6953. case 'D':
  6954. return number + (number === 1 ? 'er' : '');
  6955. // Words with masculine grammatical gender: mois, trimestre, jour
  6956. default:
  6957. case 'M':
  6958. case 'Q':
  6959. case 'DDD':
  6960. case 'd':
  6961. return number + (number === 1 ? 'er' : 'e');
  6962. // Words with feminine grammatical gender: semaine
  6963. case 'w':
  6964. case 'W':
  6965. return number + (number === 1 ? 're' : 'e');
  6966. }
  6967. },
  6968. week : {
  6969. dow : 1, // Monday is the first day of the week.
  6970. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6971. }
  6972. });
  6973. //! moment.js locale configuration
  6974. //! locale : Frisian [fy]
  6975. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  6976. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
  6977. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  6978. hooks.defineLocale('fy', {
  6979. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  6980. monthsShort : function (m, format) {
  6981. if (!m) {
  6982. return monthsShortWithDots;
  6983. } else if (/-MMM-/.test(format)) {
  6984. return monthsShortWithoutDots[m.month()];
  6985. } else {
  6986. return monthsShortWithDots[m.month()];
  6987. }
  6988. },
  6989. monthsParseExact : true,
  6990. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  6991. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  6992. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  6993. weekdaysParseExact : true,
  6994. longDateFormat : {
  6995. LT : 'HH:mm',
  6996. LTS : 'HH:mm:ss',
  6997. L : 'DD-MM-YYYY',
  6998. LL : 'D MMMM YYYY',
  6999. LLL : 'D MMMM YYYY HH:mm',
  7000. LLLL : 'dddd D MMMM YYYY HH:mm'
  7001. },
  7002. calendar : {
  7003. sameDay: '[hjoed om] LT',
  7004. nextDay: '[moarn om] LT',
  7005. nextWeek: 'dddd [om] LT',
  7006. lastDay: '[juster om] LT',
  7007. lastWeek: '[ôfrûne] dddd [om] LT',
  7008. sameElse: 'L'
  7009. },
  7010. relativeTime : {
  7011. future : 'oer %s',
  7012. past : '%s lyn',
  7013. s : 'in pear sekonden',
  7014. m : 'ien minút',
  7015. mm : '%d minuten',
  7016. h : 'ien oere',
  7017. hh : '%d oeren',
  7018. d : 'ien dei',
  7019. dd : '%d dagen',
  7020. M : 'ien moanne',
  7021. MM : '%d moannen',
  7022. y : 'ien jier',
  7023. yy : '%d jierren'
  7024. },
  7025. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  7026. ordinal : function (number) {
  7027. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  7028. },
  7029. week : {
  7030. dow : 1, // Monday is the first day of the week.
  7031. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7032. }
  7033. });
  7034. //! moment.js locale configuration
  7035. //! locale : Scottish Gaelic [gd]
  7036. //! author : Jon Ashdown : https://github.com/jonashdown
  7037. var months$5 = [
  7038. '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'
  7039. ];
  7040. var monthsShort$4 = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  7041. var weekdays$1 = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  7042. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  7043. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  7044. hooks.defineLocale('gd', {
  7045. months : months$5,
  7046. monthsShort : monthsShort$4,
  7047. monthsParseExact : true,
  7048. weekdays : weekdays$1,
  7049. weekdaysShort : weekdaysShort,
  7050. weekdaysMin : weekdaysMin,
  7051. longDateFormat : {
  7052. LT : 'HH:mm',
  7053. LTS : 'HH:mm:ss',
  7054. L : 'DD/MM/YYYY',
  7055. LL : 'D MMMM YYYY',
  7056. LLL : 'D MMMM YYYY HH:mm',
  7057. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7058. },
  7059. calendar : {
  7060. sameDay : '[An-diugh aig] LT',
  7061. nextDay : '[A-màireach aig] LT',
  7062. nextWeek : 'dddd [aig] LT',
  7063. lastDay : '[An-dè aig] LT',
  7064. lastWeek : 'dddd [seo chaidh] [aig] LT',
  7065. sameElse : 'L'
  7066. },
  7067. relativeTime : {
  7068. future : 'ann an %s',
  7069. past : 'bho chionn %s',
  7070. s : 'beagan diogan',
  7071. m : 'mionaid',
  7072. mm : '%d mionaidean',
  7073. h : 'uair',
  7074. hh : '%d uairean',
  7075. d : 'latha',
  7076. dd : '%d latha',
  7077. M : 'mìos',
  7078. MM : '%d mìosan',
  7079. y : 'bliadhna',
  7080. yy : '%d bliadhna'
  7081. },
  7082. dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
  7083. ordinal : function (number) {
  7084. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  7085. return number + output;
  7086. },
  7087. week : {
  7088. dow : 1, // Monday is the first day of the week.
  7089. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7090. }
  7091. });
  7092. //! moment.js locale configuration
  7093. //! locale : Galician [gl]
  7094. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  7095. hooks.defineLocale('gl', {
  7096. months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  7097. monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  7098. monthsParseExact: true,
  7099. weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  7100. weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  7101. weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  7102. weekdaysParseExact : true,
  7103. longDateFormat : {
  7104. LT : 'H:mm',
  7105. LTS : 'H:mm:ss',
  7106. L : 'DD/MM/YYYY',
  7107. LL : 'D [de] MMMM [de] YYYY',
  7108. LLL : 'D [de] MMMM [de] YYYY H:mm',
  7109. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  7110. },
  7111. calendar : {
  7112. sameDay : function () {
  7113. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  7114. },
  7115. nextDay : function () {
  7116. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  7117. },
  7118. nextWeek : function () {
  7119. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  7120. },
  7121. lastDay : function () {
  7122. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  7123. },
  7124. lastWeek : function () {
  7125. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  7126. },
  7127. sameElse : 'L'
  7128. },
  7129. relativeTime : {
  7130. future : function (str) {
  7131. if (str.indexOf('un') === 0) {
  7132. return 'n' + str;
  7133. }
  7134. return 'en ' + str;
  7135. },
  7136. past : 'hai %s',
  7137. s : 'uns segundos',
  7138. m : 'un minuto',
  7139. mm : '%d minutos',
  7140. h : 'unha hora',
  7141. hh : '%d horas',
  7142. d : 'un día',
  7143. dd : '%d días',
  7144. M : 'un mes',
  7145. MM : '%d meses',
  7146. y : 'un ano',
  7147. yy : '%d anos'
  7148. },
  7149. dayOfMonthOrdinalParse : /\d{1,2}º/,
  7150. ordinal : '%dº',
  7151. week : {
  7152. dow : 1, // Monday is the first day of the week.
  7153. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7154. }
  7155. });
  7156. //! moment.js locale configuration
  7157. //! locale : Konkani Latin script [gom-latn]
  7158. //! author : The Discoverer : https://github.com/WikiDiscoverer
  7159. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  7160. var format = {
  7161. 's': ['thodde secondanim', 'thodde second'],
  7162. 'm': ['eka mintan', 'ek minute'],
  7163. 'mm': [number + ' mintanim', number + ' mintam'],
  7164. 'h': ['eka horan', 'ek hor'],
  7165. 'hh': [number + ' horanim', number + ' hor'],
  7166. 'd': ['eka disan', 'ek dis'],
  7167. 'dd': [number + ' disanim', number + ' dis'],
  7168. 'M': ['eka mhoinean', 'ek mhoino'],
  7169. 'MM': [number + ' mhoineanim', number + ' mhoine'],
  7170. 'y': ['eka vorsan', 'ek voros'],
  7171. 'yy': [number + ' vorsanim', number + ' vorsam']
  7172. };
  7173. return withoutSuffix ? format[key][0] : format[key][1];
  7174. }
  7175. hooks.defineLocale('gom-latn', {
  7176. months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  7177. monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  7178. monthsParseExact : true,
  7179. weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
  7180. weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  7181. weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  7182. weekdaysParseExact : true,
  7183. longDateFormat : {
  7184. LT : 'A h:mm [vazta]',
  7185. LTS : 'A h:mm:ss [vazta]',
  7186. L : 'DD-MM-YYYY',
  7187. LL : 'D MMMM YYYY',
  7188. LLL : 'D MMMM YYYY A h:mm [vazta]',
  7189. LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
  7190. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  7191. },
  7192. calendar : {
  7193. sameDay: '[Aiz] LT',
  7194. nextDay: '[Faleam] LT',
  7195. nextWeek: '[Ieta to] dddd[,] LT',
  7196. lastDay: '[Kal] LT',
  7197. lastWeek: '[Fatlo] dddd[,] LT',
  7198. sameElse: 'L'
  7199. },
  7200. relativeTime : {
  7201. future : '%s',
  7202. past : '%s adim',
  7203. s : processRelativeTime$4,
  7204. m : processRelativeTime$4,
  7205. mm : processRelativeTime$4,
  7206. h : processRelativeTime$4,
  7207. hh : processRelativeTime$4,
  7208. d : processRelativeTime$4,
  7209. dd : processRelativeTime$4,
  7210. M : processRelativeTime$4,
  7211. MM : processRelativeTime$4,
  7212. y : processRelativeTime$4,
  7213. yy : processRelativeTime$4
  7214. },
  7215. dayOfMonthOrdinalParse : /\d{1,2}(er)/,
  7216. ordinal : function (number, period) {
  7217. switch (period) {
  7218. // the ordinal 'er' only applies to day of the month
  7219. case 'D':
  7220. return number + 'er';
  7221. default:
  7222. case 'M':
  7223. case 'Q':
  7224. case 'DDD':
  7225. case 'd':
  7226. case 'w':
  7227. case 'W':
  7228. return number;
  7229. }
  7230. },
  7231. week : {
  7232. dow : 1, // Monday is the first day of the week.
  7233. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7234. },
  7235. meridiemParse: /rati|sokalli|donparam|sanje/,
  7236. meridiemHour : function (hour, meridiem) {
  7237. if (hour === 12) {
  7238. hour = 0;
  7239. }
  7240. if (meridiem === 'rati') {
  7241. return hour < 4 ? hour : hour + 12;
  7242. } else if (meridiem === 'sokalli') {
  7243. return hour;
  7244. } else if (meridiem === 'donparam') {
  7245. return hour > 12 ? hour : hour + 12;
  7246. } else if (meridiem === 'sanje') {
  7247. return hour + 12;
  7248. }
  7249. },
  7250. meridiem : function (hour, minute, isLower) {
  7251. if (hour < 4) {
  7252. return 'rati';
  7253. } else if (hour < 12) {
  7254. return 'sokalli';
  7255. } else if (hour < 16) {
  7256. return 'donparam';
  7257. } else if (hour < 20) {
  7258. return 'sanje';
  7259. } else {
  7260. return 'rati';
  7261. }
  7262. }
  7263. });
  7264. //! moment.js locale configuration
  7265. //! locale : Gujarati [gu]
  7266. //! author : Kaushik Thanki : https://github.com/Kaushik1987
  7267. var symbolMap$6 = {
  7268. '1': '૧',
  7269. '2': '૨',
  7270. '3': '૩',
  7271. '4': '૪',
  7272. '5': '૫',
  7273. '6': '૬',
  7274. '7': '૭',
  7275. '8': '૮',
  7276. '9': '૯',
  7277. '0': '૦'
  7278. };
  7279. var numberMap$5 = {
  7280. '૧': '1',
  7281. '૨': '2',
  7282. '૩': '3',
  7283. '૪': '4',
  7284. '૫': '5',
  7285. '૬': '6',
  7286. '૭': '7',
  7287. '૮': '8',
  7288. '૯': '9',
  7289. '૦': '0'
  7290. };
  7291. hooks.defineLocale('gu', {
  7292. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
  7293. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
  7294. monthsParseExact: true,
  7295. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
  7296. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  7297. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  7298. longDateFormat: {
  7299. LT: 'A h:mm વાગ્યે',
  7300. LTS: 'A h:mm:ss વાગ્યે',
  7301. L: 'DD/MM/YYYY',
  7302. LL: 'D MMMM YYYY',
  7303. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  7304. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
  7305. },
  7306. calendar: {
  7307. sameDay: '[આજ] LT',
  7308. nextDay: '[કાલે] LT',
  7309. nextWeek: 'dddd, LT',
  7310. lastDay: '[ગઇકાલે] LT',
  7311. lastWeek: '[પાછલા] dddd, LT',
  7312. sameElse: 'L'
  7313. },
  7314. relativeTime: {
  7315. future: '%s મા',
  7316. past: '%s પેહલા',
  7317. s: 'અમુક પળો',
  7318. m: 'એક મિનિટ',
  7319. mm: '%d મિનિટ',
  7320. h: 'એક કલાક',
  7321. hh: '%d કલાક',
  7322. d: 'એક દિવસ',
  7323. dd: '%d દિવસ',
  7324. M: 'એક મહિનો',
  7325. MM: '%d મહિનો',
  7326. y: 'એક વર્ષ',
  7327. yy: '%d વર્ષ'
  7328. },
  7329. preparse: function (string) {
  7330. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  7331. return numberMap$5[match];
  7332. });
  7333. },
  7334. postformat: function (string) {
  7335. return string.replace(/\d/g, function (match) {
  7336. return symbolMap$6[match];
  7337. });
  7338. },
  7339. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  7340. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  7341. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  7342. meridiemHour: function (hour, meridiem) {
  7343. if (hour === 12) {
  7344. hour = 0;
  7345. }
  7346. if (meridiem === 'રાત') {
  7347. return hour < 4 ? hour : hour + 12;
  7348. } else if (meridiem === 'સવાર') {
  7349. return hour;
  7350. } else if (meridiem === 'બપોર') {
  7351. return hour >= 10 ? hour : hour + 12;
  7352. } else if (meridiem === 'સાંજ') {
  7353. return hour + 12;
  7354. }
  7355. },
  7356. meridiem: function (hour, minute, isLower) {
  7357. if (hour < 4) {
  7358. return 'રાત';
  7359. } else if (hour < 10) {
  7360. return 'સવાર';
  7361. } else if (hour < 17) {
  7362. return 'બપોર';
  7363. } else if (hour < 20) {
  7364. return 'સાંજ';
  7365. } else {
  7366. return 'રાત';
  7367. }
  7368. },
  7369. week: {
  7370. dow: 0, // Sunday is the first day of the week.
  7371. doy: 6 // The week that contains Jan 1st is the first week of the year.
  7372. }
  7373. });
  7374. //! moment.js locale configuration
  7375. //! locale : Hebrew [he]
  7376. //! author : Tomer Cohen : https://github.com/tomer
  7377. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  7378. //! author : Tal Ater : https://github.com/TalAter
  7379. hooks.defineLocale('he', {
  7380. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  7381. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  7382. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  7383. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  7384. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  7385. longDateFormat : {
  7386. LT : 'HH:mm',
  7387. LTS : 'HH:mm:ss',
  7388. L : 'DD/MM/YYYY',
  7389. LL : 'D [ב]MMMM YYYY',
  7390. LLL : 'D [ב]MMMM YYYY HH:mm',
  7391. LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
  7392. l : 'D/M/YYYY',
  7393. ll : 'D MMM YYYY',
  7394. lll : 'D MMM YYYY HH:mm',
  7395. llll : 'ddd, D MMM YYYY HH:mm'
  7396. },
  7397. calendar : {
  7398. sameDay : '[היום ב־]LT',
  7399. nextDay : '[מחר ב־]LT',
  7400. nextWeek : 'dddd [בשעה] LT',
  7401. lastDay : '[אתמול ב־]LT',
  7402. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  7403. sameElse : 'L'
  7404. },
  7405. relativeTime : {
  7406. future : 'בעוד %s',
  7407. past : 'לפני %s',
  7408. s : 'מספר שניות',
  7409. m : 'דקה',
  7410. mm : '%d דקות',
  7411. h : 'שעה',
  7412. hh : function (number) {
  7413. if (number === 2) {
  7414. return 'שעתיים';
  7415. }
  7416. return number + ' שעות';
  7417. },
  7418. d : 'יום',
  7419. dd : function (number) {
  7420. if (number === 2) {
  7421. return 'יומיים';
  7422. }
  7423. return number + ' ימים';
  7424. },
  7425. M : 'חודש',
  7426. MM : function (number) {
  7427. if (number === 2) {
  7428. return 'חודשיים';
  7429. }
  7430. return number + ' חודשים';
  7431. },
  7432. y : 'שנה',
  7433. yy : function (number) {
  7434. if (number === 2) {
  7435. return 'שנתיים';
  7436. } else if (number % 10 === 0 && number !== 10) {
  7437. return number + ' שנה';
  7438. }
  7439. return number + ' שנים';
  7440. }
  7441. },
  7442. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  7443. isPM : function (input) {
  7444. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  7445. },
  7446. meridiem : function (hour, minute, isLower) {
  7447. if (hour < 5) {
  7448. return 'לפנות בוקר';
  7449. } else if (hour < 10) {
  7450. return 'בבוקר';
  7451. } else if (hour < 12) {
  7452. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  7453. } else if (hour < 18) {
  7454. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  7455. } else {
  7456. return 'בערב';
  7457. }
  7458. }
  7459. });
  7460. //! moment.js locale configuration
  7461. //! locale : Hindi [hi]
  7462. //! author : Mayank Singhal : https://github.com/mayanksinghal
  7463. var symbolMap$7 = {
  7464. '1': '१',
  7465. '2': '२',
  7466. '3': '३',
  7467. '4': '४',
  7468. '5': '५',
  7469. '6': '६',
  7470. '7': '७',
  7471. '8': '८',
  7472. '9': '९',
  7473. '0': '०'
  7474. };
  7475. var numberMap$6 = {
  7476. '१': '1',
  7477. '२': '2',
  7478. '३': '3',
  7479. '४': '4',
  7480. '५': '5',
  7481. '६': '6',
  7482. '७': '7',
  7483. '८': '8',
  7484. '९': '9',
  7485. '०': '0'
  7486. };
  7487. hooks.defineLocale('hi', {
  7488. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  7489. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  7490. monthsParseExact: true,
  7491. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  7492. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  7493. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  7494. longDateFormat : {
  7495. LT : 'A h:mm बजे',
  7496. LTS : 'A h:mm:ss बजे',
  7497. L : 'DD/MM/YYYY',
  7498. LL : 'D MMMM YYYY',
  7499. LLL : 'D MMMM YYYY, A h:mm बजे',
  7500. LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
  7501. },
  7502. calendar : {
  7503. sameDay : '[आज] LT',
  7504. nextDay : '[कल] LT',
  7505. nextWeek : 'dddd, LT',
  7506. lastDay : '[कल] LT',
  7507. lastWeek : '[पिछले] dddd, LT',
  7508. sameElse : 'L'
  7509. },
  7510. relativeTime : {
  7511. future : '%s में',
  7512. past : '%s पहले',
  7513. s : 'कुछ ही क्षण',
  7514. m : 'एक मिनट',
  7515. mm : '%d मिनट',
  7516. h : 'एक घंटा',
  7517. hh : '%d घंटे',
  7518. d : 'एक दिन',
  7519. dd : '%d दिन',
  7520. M : 'एक महीने',
  7521. MM : '%d महीने',
  7522. y : 'एक वर्ष',
  7523. yy : '%d वर्ष'
  7524. },
  7525. preparse: function (string) {
  7526. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  7527. return numberMap$6[match];
  7528. });
  7529. },
  7530. postformat: function (string) {
  7531. return string.replace(/\d/g, function (match) {
  7532. return symbolMap$7[match];
  7533. });
  7534. },
  7535. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  7536. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  7537. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  7538. meridiemHour : function (hour, meridiem) {
  7539. if (hour === 12) {
  7540. hour = 0;
  7541. }
  7542. if (meridiem === 'रात') {
  7543. return hour < 4 ? hour : hour + 12;
  7544. } else if (meridiem === 'सुबह') {
  7545. return hour;
  7546. } else if (meridiem === 'दोपहर') {
  7547. return hour >= 10 ? hour : hour + 12;
  7548. } else if (meridiem === 'शाम') {
  7549. return hour + 12;
  7550. }
  7551. },
  7552. meridiem : function (hour, minute, isLower) {
  7553. if (hour < 4) {
  7554. return 'रात';
  7555. } else if (hour < 10) {
  7556. return 'सुबह';
  7557. } else if (hour < 17) {
  7558. return 'दोपहर';
  7559. } else if (hour < 20) {
  7560. return 'शाम';
  7561. } else {
  7562. return 'रात';
  7563. }
  7564. },
  7565. week : {
  7566. dow : 0, // Sunday is the first day of the week.
  7567. doy : 6 // The week that contains Jan 1st is the first week of the year.
  7568. }
  7569. });
  7570. //! moment.js locale configuration
  7571. //! locale : Croatian [hr]
  7572. //! author : Bojan Marković : https://github.com/bmarkovic
  7573. function translate$3(number, withoutSuffix, key) {
  7574. var result = number + ' ';
  7575. switch (key) {
  7576. case 'm':
  7577. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  7578. case 'mm':
  7579. if (number === 1) {
  7580. result += 'minuta';
  7581. } else if (number === 2 || number === 3 || number === 4) {
  7582. result += 'minute';
  7583. } else {
  7584. result += 'minuta';
  7585. }
  7586. return result;
  7587. case 'h':
  7588. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  7589. case 'hh':
  7590. if (number === 1) {
  7591. result += 'sat';
  7592. } else if (number === 2 || number === 3 || number === 4) {
  7593. result += 'sata';
  7594. } else {
  7595. result += 'sati';
  7596. }
  7597. return result;
  7598. case 'dd':
  7599. if (number === 1) {
  7600. result += 'dan';
  7601. } else {
  7602. result += 'dana';
  7603. }
  7604. return result;
  7605. case 'MM':
  7606. if (number === 1) {
  7607. result += 'mjesec';
  7608. } else if (number === 2 || number === 3 || number === 4) {
  7609. result += 'mjeseca';
  7610. } else {
  7611. result += 'mjeseci';
  7612. }
  7613. return result;
  7614. case 'yy':
  7615. if (number === 1) {
  7616. result += 'godina';
  7617. } else if (number === 2 || number === 3 || number === 4) {
  7618. result += 'godine';
  7619. } else {
  7620. result += 'godina';
  7621. }
  7622. return result;
  7623. }
  7624. }
  7625. hooks.defineLocale('hr', {
  7626. months : {
  7627. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  7628. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  7629. },
  7630. monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  7631. monthsParseExact: true,
  7632. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  7633. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  7634. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  7635. weekdaysParseExact : true,
  7636. longDateFormat : {
  7637. LT : 'H:mm',
  7638. LTS : 'H:mm:ss',
  7639. L : 'DD.MM.YYYY',
  7640. LL : 'D. MMMM YYYY',
  7641. LLL : 'D. MMMM YYYY H:mm',
  7642. LLLL : 'dddd, D. MMMM YYYY H:mm'
  7643. },
  7644. calendar : {
  7645. sameDay : '[danas u] LT',
  7646. nextDay : '[sutra u] LT',
  7647. nextWeek : function () {
  7648. switch (this.day()) {
  7649. case 0:
  7650. return '[u] [nedjelju] [u] LT';
  7651. case 3:
  7652. return '[u] [srijedu] [u] LT';
  7653. case 6:
  7654. return '[u] [subotu] [u] LT';
  7655. case 1:
  7656. case 2:
  7657. case 4:
  7658. case 5:
  7659. return '[u] dddd [u] LT';
  7660. }
  7661. },
  7662. lastDay : '[jučer u] LT',
  7663. lastWeek : function () {
  7664. switch (this.day()) {
  7665. case 0:
  7666. case 3:
  7667. return '[prošlu] dddd [u] LT';
  7668. case 6:
  7669. return '[prošle] [subote] [u] LT';
  7670. case 1:
  7671. case 2:
  7672. case 4:
  7673. case 5:
  7674. return '[prošli] dddd [u] LT';
  7675. }
  7676. },
  7677. sameElse : 'L'
  7678. },
  7679. relativeTime : {
  7680. future : 'za %s',
  7681. past : 'prije %s',
  7682. s : 'par sekundi',
  7683. m : translate$3,
  7684. mm : translate$3,
  7685. h : translate$3,
  7686. hh : translate$3,
  7687. d : 'dan',
  7688. dd : translate$3,
  7689. M : 'mjesec',
  7690. MM : translate$3,
  7691. y : 'godinu',
  7692. yy : translate$3
  7693. },
  7694. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7695. ordinal : '%d.',
  7696. week : {
  7697. dow : 1, // Monday is the first day of the week.
  7698. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7699. }
  7700. });
  7701. //! moment.js locale configuration
  7702. //! locale : Hungarian [hu]
  7703. //! author : Adam Brunner : https://github.com/adambrunner
  7704. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  7705. function translate$4(number, withoutSuffix, key, isFuture) {
  7706. var num = number;
  7707. switch (key) {
  7708. case 's':
  7709. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  7710. case 'm':
  7711. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  7712. case 'mm':
  7713. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  7714. case 'h':
  7715. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  7716. case 'hh':
  7717. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  7718. case 'd':
  7719. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  7720. case 'dd':
  7721. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  7722. case 'M':
  7723. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  7724. case 'MM':
  7725. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  7726. case 'y':
  7727. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  7728. case 'yy':
  7729. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  7730. }
  7731. return '';
  7732. }
  7733. function week(isFuture) {
  7734. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  7735. }
  7736. hooks.defineLocale('hu', {
  7737. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  7738. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  7739. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  7740. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  7741. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  7742. longDateFormat : {
  7743. LT : 'H:mm',
  7744. LTS : 'H:mm:ss',
  7745. L : 'YYYY.MM.DD.',
  7746. LL : 'YYYY. MMMM D.',
  7747. LLL : 'YYYY. MMMM D. H:mm',
  7748. LLLL : 'YYYY. MMMM D., dddd H:mm'
  7749. },
  7750. meridiemParse: /de|du/i,
  7751. isPM: function (input) {
  7752. return input.charAt(1).toLowerCase() === 'u';
  7753. },
  7754. meridiem : function (hours, minutes, isLower) {
  7755. if (hours < 12) {
  7756. return isLower === true ? 'de' : 'DE';
  7757. } else {
  7758. return isLower === true ? 'du' : 'DU';
  7759. }
  7760. },
  7761. calendar : {
  7762. sameDay : '[ma] LT[-kor]',
  7763. nextDay : '[holnap] LT[-kor]',
  7764. nextWeek : function () {
  7765. return week.call(this, true);
  7766. },
  7767. lastDay : '[tegnap] LT[-kor]',
  7768. lastWeek : function () {
  7769. return week.call(this, false);
  7770. },
  7771. sameElse : 'L'
  7772. },
  7773. relativeTime : {
  7774. future : '%s múlva',
  7775. past : '%s',
  7776. s : translate$4,
  7777. m : translate$4,
  7778. mm : translate$4,
  7779. h : translate$4,
  7780. hh : translate$4,
  7781. d : translate$4,
  7782. dd : translate$4,
  7783. M : translate$4,
  7784. MM : translate$4,
  7785. y : translate$4,
  7786. yy : translate$4
  7787. },
  7788. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7789. ordinal : '%d.',
  7790. week : {
  7791. dow : 1, // Monday is the first day of the week.
  7792. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7793. }
  7794. });
  7795. //! moment.js locale configuration
  7796. //! locale : Armenian [hy-am]
  7797. //! author : Armendarabyan : https://github.com/armendarabyan
  7798. hooks.defineLocale('hy-am', {
  7799. months : {
  7800. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  7801. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  7802. },
  7803. monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  7804. weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  7805. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  7806. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  7807. longDateFormat : {
  7808. LT : 'HH:mm',
  7809. LTS : 'HH:mm:ss',
  7810. L : 'DD.MM.YYYY',
  7811. LL : 'D MMMM YYYY թ.',
  7812. LLL : 'D MMMM YYYY թ., HH:mm',
  7813. LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
  7814. },
  7815. calendar : {
  7816. sameDay: '[այսօր] LT',
  7817. nextDay: '[վաղը] LT',
  7818. lastDay: '[երեկ] LT',
  7819. nextWeek: function () {
  7820. return 'dddd [օրը ժամը] LT';
  7821. },
  7822. lastWeek: function () {
  7823. return '[անցած] dddd [օրը ժամը] LT';
  7824. },
  7825. sameElse: 'L'
  7826. },
  7827. relativeTime : {
  7828. future : '%s հետո',
  7829. past : '%s առաջ',
  7830. s : 'մի քանի վայրկյան',
  7831. m : 'րոպե',
  7832. mm : '%d րոպե',
  7833. h : 'ժամ',
  7834. hh : '%d ժամ',
  7835. d : 'օր',
  7836. dd : '%d օր',
  7837. M : 'ամիս',
  7838. MM : '%d ամիս',
  7839. y : 'տարի',
  7840. yy : '%d տարի'
  7841. },
  7842. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  7843. isPM: function (input) {
  7844. return /^(ցերեկվա|երեկոյան)$/.test(input);
  7845. },
  7846. meridiem : function (hour) {
  7847. if (hour < 4) {
  7848. return 'գիշերվա';
  7849. } else if (hour < 12) {
  7850. return 'առավոտվա';
  7851. } else if (hour < 17) {
  7852. return 'ցերեկվա';
  7853. } else {
  7854. return 'երեկոյան';
  7855. }
  7856. },
  7857. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  7858. ordinal: function (number, period) {
  7859. switch (period) {
  7860. case 'DDD':
  7861. case 'w':
  7862. case 'W':
  7863. case 'DDDo':
  7864. if (number === 1) {
  7865. return number + '-ին';
  7866. }
  7867. return number + '-րդ';
  7868. default:
  7869. return number;
  7870. }
  7871. },
  7872. week : {
  7873. dow : 1, // Monday is the first day of the week.
  7874. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7875. }
  7876. });
  7877. //! moment.js locale configuration
  7878. //! locale : Indonesian [id]
  7879. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  7880. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  7881. hooks.defineLocale('id', {
  7882. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  7883. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  7884. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  7885. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  7886. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  7887. longDateFormat : {
  7888. LT : 'HH.mm',
  7889. LTS : 'HH.mm.ss',
  7890. L : 'DD/MM/YYYY',
  7891. LL : 'D MMMM YYYY',
  7892. LLL : 'D MMMM YYYY [pukul] HH.mm',
  7893. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  7894. },
  7895. meridiemParse: /pagi|siang|sore|malam/,
  7896. meridiemHour : function (hour, meridiem) {
  7897. if (hour === 12) {
  7898. hour = 0;
  7899. }
  7900. if (meridiem === 'pagi') {
  7901. return hour;
  7902. } else if (meridiem === 'siang') {
  7903. return hour >= 11 ? hour : hour + 12;
  7904. } else if (meridiem === 'sore' || meridiem === 'malam') {
  7905. return hour + 12;
  7906. }
  7907. },
  7908. meridiem : function (hours, minutes, isLower) {
  7909. if (hours < 11) {
  7910. return 'pagi';
  7911. } else if (hours < 15) {
  7912. return 'siang';
  7913. } else if (hours < 19) {
  7914. return 'sore';
  7915. } else {
  7916. return 'malam';
  7917. }
  7918. },
  7919. calendar : {
  7920. sameDay : '[Hari ini pukul] LT',
  7921. nextDay : '[Besok pukul] LT',
  7922. nextWeek : 'dddd [pukul] LT',
  7923. lastDay : '[Kemarin pukul] LT',
  7924. lastWeek : 'dddd [lalu pukul] LT',
  7925. sameElse : 'L'
  7926. },
  7927. relativeTime : {
  7928. future : 'dalam %s',
  7929. past : '%s yang lalu',
  7930. s : 'beberapa detik',
  7931. m : 'semenit',
  7932. mm : '%d menit',
  7933. h : 'sejam',
  7934. hh : '%d jam',
  7935. d : 'sehari',
  7936. dd : '%d hari',
  7937. M : 'sebulan',
  7938. MM : '%d bulan',
  7939. y : 'setahun',
  7940. yy : '%d tahun'
  7941. },
  7942. week : {
  7943. dow : 1, // Monday is the first day of the week.
  7944. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7945. }
  7946. });
  7947. //! moment.js locale configuration
  7948. //! locale : Icelandic [is]
  7949. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  7950. function plural$2(n) {
  7951. if (n % 100 === 11) {
  7952. return true;
  7953. } else if (n % 10 === 1) {
  7954. return false;
  7955. }
  7956. return true;
  7957. }
  7958. function translate$5(number, withoutSuffix, key, isFuture) {
  7959. var result = number + ' ';
  7960. switch (key) {
  7961. case 's':
  7962. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  7963. case 'm':
  7964. return withoutSuffix ? 'mínúta' : 'mínútu';
  7965. case 'mm':
  7966. if (plural$2(number)) {
  7967. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  7968. } else if (withoutSuffix) {
  7969. return result + 'mínúta';
  7970. }
  7971. return result + 'mínútu';
  7972. case 'hh':
  7973. if (plural$2(number)) {
  7974. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  7975. }
  7976. return result + 'klukkustund';
  7977. case 'd':
  7978. if (withoutSuffix) {
  7979. return 'dagur';
  7980. }
  7981. return isFuture ? 'dag' : 'degi';
  7982. case 'dd':
  7983. if (plural$2(number)) {
  7984. if (withoutSuffix) {
  7985. return result + 'dagar';
  7986. }
  7987. return result + (isFuture ? 'daga' : 'dögum');
  7988. } else if (withoutSuffix) {
  7989. return result + 'dagur';
  7990. }
  7991. return result + (isFuture ? 'dag' : 'degi');
  7992. case 'M':
  7993. if (withoutSuffix) {
  7994. return 'mánuður';
  7995. }
  7996. return isFuture ? 'mánuð' : 'mánuði';
  7997. case 'MM':
  7998. if (plural$2(number)) {
  7999. if (withoutSuffix) {
  8000. return result + 'mánuðir';
  8001. }
  8002. return result + (isFuture ? 'mánuði' : 'mánuðum');
  8003. } else if (withoutSuffix) {
  8004. return result + 'mánuður';
  8005. }
  8006. return result + (isFuture ? 'mánuð' : 'mánuði');
  8007. case 'y':
  8008. return withoutSuffix || isFuture ? 'ár' : 'ári';
  8009. case 'yy':
  8010. if (plural$2(number)) {
  8011. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  8012. }
  8013. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  8014. }
  8015. }
  8016. hooks.defineLocale('is', {
  8017. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  8018. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  8019. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  8020. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  8021. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  8022. longDateFormat : {
  8023. LT : 'H:mm',
  8024. LTS : 'H:mm:ss',
  8025. L : 'DD.MM.YYYY',
  8026. LL : 'D. MMMM YYYY',
  8027. LLL : 'D. MMMM YYYY [kl.] H:mm',
  8028. LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
  8029. },
  8030. calendar : {
  8031. sameDay : '[í dag kl.] LT',
  8032. nextDay : '[á morgun kl.] LT',
  8033. nextWeek : 'dddd [kl.] LT',
  8034. lastDay : '[í gær kl.] LT',
  8035. lastWeek : '[síðasta] dddd [kl.] LT',
  8036. sameElse : 'L'
  8037. },
  8038. relativeTime : {
  8039. future : 'eftir %s',
  8040. past : 'fyrir %s síðan',
  8041. s : translate$5,
  8042. m : translate$5,
  8043. mm : translate$5,
  8044. h : 'klukkustund',
  8045. hh : translate$5,
  8046. d : translate$5,
  8047. dd : translate$5,
  8048. M : translate$5,
  8049. MM : translate$5,
  8050. y : translate$5,
  8051. yy : translate$5
  8052. },
  8053. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8054. ordinal : '%d.',
  8055. week : {
  8056. dow : 1, // Monday is the first day of the week.
  8057. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8058. }
  8059. });
  8060. //! moment.js locale configuration
  8061. //! locale : Italian [it]
  8062. //! author : Lorenzo : https://github.com/aliem
  8063. //! author: Mattia Larentis: https://github.com/nostalgiaz
  8064. hooks.defineLocale('it', {
  8065. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  8066. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  8067. weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  8068. weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  8069. weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
  8070. longDateFormat : {
  8071. LT : 'HH:mm',
  8072. LTS : 'HH:mm:ss',
  8073. L : 'DD/MM/YYYY',
  8074. LL : 'D MMMM YYYY',
  8075. LLL : 'D MMMM YYYY HH:mm',
  8076. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8077. },
  8078. calendar : {
  8079. sameDay: '[Oggi alle] LT',
  8080. nextDay: '[Domani alle] LT',
  8081. nextWeek: 'dddd [alle] LT',
  8082. lastDay: '[Ieri alle] LT',
  8083. lastWeek: function () {
  8084. switch (this.day()) {
  8085. case 0:
  8086. return '[la scorsa] dddd [alle] LT';
  8087. default:
  8088. return '[lo scorso] dddd [alle] LT';
  8089. }
  8090. },
  8091. sameElse: 'L'
  8092. },
  8093. relativeTime : {
  8094. future : function (s) {
  8095. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  8096. },
  8097. past : '%s fa',
  8098. s : 'alcuni secondi',
  8099. m : 'un minuto',
  8100. mm : '%d minuti',
  8101. h : 'un\'ora',
  8102. hh : '%d ore',
  8103. d : 'un giorno',
  8104. dd : '%d giorni',
  8105. M : 'un mese',
  8106. MM : '%d mesi',
  8107. y : 'un anno',
  8108. yy : '%d anni'
  8109. },
  8110. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8111. ordinal: '%dº',
  8112. week : {
  8113. dow : 1, // Monday is the first day of the week.
  8114. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8115. }
  8116. });
  8117. //! moment.js locale configuration
  8118. //! locale : Japanese [ja]
  8119. //! author : LI Long : https://github.com/baryon
  8120. hooks.defineLocale('ja', {
  8121. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  8122. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  8123. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  8124. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  8125. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  8126. longDateFormat : {
  8127. LT : 'HH:mm',
  8128. LTS : 'HH:mm:ss',
  8129. L : 'YYYY/MM/DD',
  8130. LL : 'YYYY年M月D日',
  8131. LLL : 'YYYY年M月D日 HH:mm',
  8132. LLLL : 'YYYY年M月D日 HH:mm dddd',
  8133. l : 'YYYY/MM/DD',
  8134. ll : 'YYYY年M月D日',
  8135. lll : 'YYYY年M月D日 HH:mm',
  8136. llll : 'YYYY年M月D日 HH:mm dddd'
  8137. },
  8138. meridiemParse: /午前|午後/i,
  8139. isPM : function (input) {
  8140. return input === '午後';
  8141. },
  8142. meridiem : function (hour, minute, isLower) {
  8143. if (hour < 12) {
  8144. return '午前';
  8145. } else {
  8146. return '午後';
  8147. }
  8148. },
  8149. calendar : {
  8150. sameDay : '[今日] LT',
  8151. nextDay : '[明日] LT',
  8152. nextWeek : '[来週]dddd LT',
  8153. lastDay : '[昨日] LT',
  8154. lastWeek : '[前週]dddd LT',
  8155. sameElse : 'L'
  8156. },
  8157. dayOfMonthOrdinalParse : /\d{1,2}日/,
  8158. ordinal : function (number, period) {
  8159. switch (period) {
  8160. case 'd':
  8161. case 'D':
  8162. case 'DDD':
  8163. return number + '日';
  8164. default:
  8165. return number;
  8166. }
  8167. },
  8168. relativeTime : {
  8169. future : '%s後',
  8170. past : '%s前',
  8171. s : '数秒',
  8172. m : '1分',
  8173. mm : '%d分',
  8174. h : '1時間',
  8175. hh : '%d時間',
  8176. d : '1日',
  8177. dd : '%d日',
  8178. M : '1ヶ月',
  8179. MM : '%dヶ月',
  8180. y : '1年',
  8181. yy : '%d年'
  8182. }
  8183. });
  8184. //! moment.js locale configuration
  8185. //! locale : Javanese [jv]
  8186. //! author : Rony Lantip : https://github.com/lantip
  8187. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  8188. hooks.defineLocale('jv', {
  8189. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  8190. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  8191. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  8192. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  8193. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  8194. longDateFormat : {
  8195. LT : 'HH.mm',
  8196. LTS : 'HH.mm.ss',
  8197. L : 'DD/MM/YYYY',
  8198. LL : 'D MMMM YYYY',
  8199. LLL : 'D MMMM YYYY [pukul] HH.mm',
  8200. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  8201. },
  8202. meridiemParse: /enjing|siyang|sonten|ndalu/,
  8203. meridiemHour : function (hour, meridiem) {
  8204. if (hour === 12) {
  8205. hour = 0;
  8206. }
  8207. if (meridiem === 'enjing') {
  8208. return hour;
  8209. } else if (meridiem === 'siyang') {
  8210. return hour >= 11 ? hour : hour + 12;
  8211. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  8212. return hour + 12;
  8213. }
  8214. },
  8215. meridiem : function (hours, minutes, isLower) {
  8216. if (hours < 11) {
  8217. return 'enjing';
  8218. } else if (hours < 15) {
  8219. return 'siyang';
  8220. } else if (hours < 19) {
  8221. return 'sonten';
  8222. } else {
  8223. return 'ndalu';
  8224. }
  8225. },
  8226. calendar : {
  8227. sameDay : '[Dinten puniko pukul] LT',
  8228. nextDay : '[Mbenjang pukul] LT',
  8229. nextWeek : 'dddd [pukul] LT',
  8230. lastDay : '[Kala wingi pukul] LT',
  8231. lastWeek : 'dddd [kepengker pukul] LT',
  8232. sameElse : 'L'
  8233. },
  8234. relativeTime : {
  8235. future : 'wonten ing %s',
  8236. past : '%s ingkang kepengker',
  8237. s : 'sawetawis detik',
  8238. m : 'setunggal menit',
  8239. mm : '%d menit',
  8240. h : 'setunggal jam',
  8241. hh : '%d jam',
  8242. d : 'sedinten',
  8243. dd : '%d dinten',
  8244. M : 'sewulan',
  8245. MM : '%d wulan',
  8246. y : 'setaun',
  8247. yy : '%d taun'
  8248. },
  8249. week : {
  8250. dow : 1, // Monday is the first day of the week.
  8251. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8252. }
  8253. });
  8254. //! moment.js locale configuration
  8255. //! locale : Georgian [ka]
  8256. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  8257. hooks.defineLocale('ka', {
  8258. months : {
  8259. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  8260. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  8261. },
  8262. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  8263. weekdays : {
  8264. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  8265. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  8266. isFormat: /(წინა|შემდეგ)/
  8267. },
  8268. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  8269. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  8270. longDateFormat : {
  8271. LT : 'h:mm A',
  8272. LTS : 'h:mm:ss A',
  8273. L : 'DD/MM/YYYY',
  8274. LL : 'D MMMM YYYY',
  8275. LLL : 'D MMMM YYYY h:mm A',
  8276. LLLL : 'dddd, D MMMM YYYY h:mm A'
  8277. },
  8278. calendar : {
  8279. sameDay : '[დღეს] LT[-ზე]',
  8280. nextDay : '[ხვალ] LT[-ზე]',
  8281. lastDay : '[გუშინ] LT[-ზე]',
  8282. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  8283. lastWeek : '[წინა] dddd LT-ზე',
  8284. sameElse : 'L'
  8285. },
  8286. relativeTime : {
  8287. future : function (s) {
  8288. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  8289. s.replace(/ი$/, 'ში') :
  8290. s + 'ში';
  8291. },
  8292. past : function (s) {
  8293. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  8294. return s.replace(/(ი|ე)$/, 'ის უკან');
  8295. }
  8296. if ((/წელი/).test(s)) {
  8297. return s.replace(/წელი$/, 'წლის უკან');
  8298. }
  8299. },
  8300. s : 'რამდენიმე წამი',
  8301. m : 'წუთი',
  8302. mm : '%d წუთი',
  8303. h : 'საათი',
  8304. hh : '%d საათი',
  8305. d : 'დღე',
  8306. dd : '%d დღე',
  8307. M : 'თვე',
  8308. MM : '%d თვე',
  8309. y : 'წელი',
  8310. yy : '%d წელი'
  8311. },
  8312. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  8313. ordinal : function (number) {
  8314. if (number === 0) {
  8315. return number;
  8316. }
  8317. if (number === 1) {
  8318. return number + '-ლი';
  8319. }
  8320. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  8321. return 'მე-' + number;
  8322. }
  8323. return number + '-ე';
  8324. },
  8325. week : {
  8326. dow : 1,
  8327. doy : 7
  8328. }
  8329. });
  8330. //! moment.js locale configuration
  8331. //! locale : Kazakh [kk]
  8332. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  8333. var suffixes$1 = {
  8334. 0: '-ші',
  8335. 1: '-ші',
  8336. 2: '-ші',
  8337. 3: '-ші',
  8338. 4: '-ші',
  8339. 5: '-ші',
  8340. 6: '-шы',
  8341. 7: '-ші',
  8342. 8: '-ші',
  8343. 9: '-шы',
  8344. 10: '-шы',
  8345. 20: '-шы',
  8346. 30: '-шы',
  8347. 40: '-шы',
  8348. 50: '-ші',
  8349. 60: '-шы',
  8350. 70: '-ші',
  8351. 80: '-ші',
  8352. 90: '-шы',
  8353. 100: '-ші'
  8354. };
  8355. hooks.defineLocale('kk', {
  8356. months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  8357. monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  8358. weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  8359. weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  8360. weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  8361. longDateFormat : {
  8362. LT : 'HH:mm',
  8363. LTS : 'HH:mm:ss',
  8364. L : 'DD.MM.YYYY',
  8365. LL : 'D MMMM YYYY',
  8366. LLL : 'D MMMM YYYY HH:mm',
  8367. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8368. },
  8369. calendar : {
  8370. sameDay : '[Бүгін сағат] LT',
  8371. nextDay : '[Ертең сағат] LT',
  8372. nextWeek : 'dddd [сағат] LT',
  8373. lastDay : '[Кеше сағат] LT',
  8374. lastWeek : '[Өткен аптаның] dddd [сағат] LT',
  8375. sameElse : 'L'
  8376. },
  8377. relativeTime : {
  8378. future : '%s ішінде',
  8379. past : '%s бұрын',
  8380. s : 'бірнеше секунд',
  8381. m : 'бір минут',
  8382. mm : '%d минут',
  8383. h : 'бір сағат',
  8384. hh : '%d сағат',
  8385. d : 'бір күн',
  8386. dd : '%d күн',
  8387. M : 'бір ай',
  8388. MM : '%d ай',
  8389. y : 'бір жыл',
  8390. yy : '%d жыл'
  8391. },
  8392. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  8393. ordinal : function (number) {
  8394. var a = number % 10,
  8395. b = number >= 100 ? 100 : null;
  8396. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  8397. },
  8398. week : {
  8399. dow : 1, // Monday is the first day of the week.
  8400. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8401. }
  8402. });
  8403. //! moment.js locale configuration
  8404. //! locale : Cambodian [km]
  8405. //! author : Kruy Vanna : https://github.com/kruyvanna
  8406. hooks.defineLocale('km', {
  8407. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  8408. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  8409. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8410. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8411. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  8412. longDateFormat: {
  8413. LT: 'HH:mm',
  8414. LTS : 'HH:mm:ss',
  8415. L: 'DD/MM/YYYY',
  8416. LL: 'D MMMM YYYY',
  8417. LLL: 'D MMMM YYYY HH:mm',
  8418. LLLL: 'dddd, D MMMM YYYY HH:mm'
  8419. },
  8420. calendar: {
  8421. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  8422. nextDay: '[ស្អែក ម៉ោង] LT',
  8423. nextWeek: 'dddd [ម៉ោង] LT',
  8424. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  8425. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  8426. sameElse: 'L'
  8427. },
  8428. relativeTime: {
  8429. future: '%sទៀត',
  8430. past: '%sមុន',
  8431. s: 'ប៉ុន្មានវិនាទី',
  8432. m: 'មួយនាទី',
  8433. mm: '%d នាទី',
  8434. h: 'មួយម៉ោង',
  8435. hh: '%d ម៉ោង',
  8436. d: 'មួយថ្ងៃ',
  8437. dd: '%d ថ្ងៃ',
  8438. M: 'មួយខែ',
  8439. MM: '%d ខែ',
  8440. y: 'មួយឆ្នាំ',
  8441. yy: '%d ឆ្នាំ'
  8442. },
  8443. week: {
  8444. dow: 1, // Monday is the first day of the week.
  8445. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8446. }
  8447. });
  8448. //! moment.js locale configuration
  8449. //! locale : Kannada [kn]
  8450. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  8451. var symbolMap$8 = {
  8452. '1': '೧',
  8453. '2': '೨',
  8454. '3': '೩',
  8455. '4': '೪',
  8456. '5': '೫',
  8457. '6': '೬',
  8458. '7': '೭',
  8459. '8': '೮',
  8460. '9': '೯',
  8461. '0': '೦'
  8462. };
  8463. var numberMap$7 = {
  8464. '೧': '1',
  8465. '೨': '2',
  8466. '೩': '3',
  8467. '೪': '4',
  8468. '೫': '5',
  8469. '೬': '6',
  8470. '೭': '7',
  8471. '೮': '8',
  8472. '೯': '9',
  8473. '೦': '0'
  8474. };
  8475. hooks.defineLocale('kn', {
  8476. months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  8477. monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'),
  8478. monthsParseExact: true,
  8479. weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  8480. weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  8481. weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  8482. longDateFormat : {
  8483. LT : 'A h:mm',
  8484. LTS : 'A h:mm:ss',
  8485. L : 'DD/MM/YYYY',
  8486. LL : 'D MMMM YYYY',
  8487. LLL : 'D MMMM YYYY, A h:mm',
  8488. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  8489. },
  8490. calendar : {
  8491. sameDay : '[ಇಂದು] LT',
  8492. nextDay : '[ನಾಳೆ] LT',
  8493. nextWeek : 'dddd, LT',
  8494. lastDay : '[ನಿನ್ನೆ] LT',
  8495. lastWeek : '[ಕೊನೆಯ] dddd, LT',
  8496. sameElse : 'L'
  8497. },
  8498. relativeTime : {
  8499. future : '%s ನಂತರ',
  8500. past : '%s ಹಿಂದೆ',
  8501. s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
  8502. m : 'ಒಂದು ನಿಮಿಷ',
  8503. mm : '%d ನಿಮಿಷ',
  8504. h : 'ಒಂದು ಗಂಟೆ',
  8505. hh : '%d ಗಂಟೆ',
  8506. d : 'ಒಂದು ದಿನ',
  8507. dd : '%d ದಿನ',
  8508. M : 'ಒಂದು ತಿಂಗಳು',
  8509. MM : '%d ತಿಂಗಳು',
  8510. y : 'ಒಂದು ವರ್ಷ',
  8511. yy : '%d ವರ್ಷ'
  8512. },
  8513. preparse: function (string) {
  8514. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  8515. return numberMap$7[match];
  8516. });
  8517. },
  8518. postformat: function (string) {
  8519. return string.replace(/\d/g, function (match) {
  8520. return symbolMap$8[match];
  8521. });
  8522. },
  8523. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  8524. meridiemHour : function (hour, meridiem) {
  8525. if (hour === 12) {
  8526. hour = 0;
  8527. }
  8528. if (meridiem === 'ರಾತ್ರಿ') {
  8529. return hour < 4 ? hour : hour + 12;
  8530. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  8531. return hour;
  8532. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  8533. return hour >= 10 ? hour : hour + 12;
  8534. } else if (meridiem === 'ಸಂಜೆ') {
  8535. return hour + 12;
  8536. }
  8537. },
  8538. meridiem : function (hour, minute, isLower) {
  8539. if (hour < 4) {
  8540. return 'ರಾತ್ರಿ';
  8541. } else if (hour < 10) {
  8542. return 'ಬೆಳಿಗ್ಗೆ';
  8543. } else if (hour < 17) {
  8544. return 'ಮಧ್ಯಾಹ್ನ';
  8545. } else if (hour < 20) {
  8546. return 'ಸಂಜೆ';
  8547. } else {
  8548. return 'ರಾತ್ರಿ';
  8549. }
  8550. },
  8551. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  8552. ordinal : function (number) {
  8553. return number + 'ನೇ';
  8554. },
  8555. week : {
  8556. dow : 0, // Sunday is the first day of the week.
  8557. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8558. }
  8559. });
  8560. //! moment.js locale configuration
  8561. //! locale : Korean [ko]
  8562. //! author : Kyungwook, Park : https://github.com/kyungw00k
  8563. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  8564. hooks.defineLocale('ko', {
  8565. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  8566. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  8567. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  8568. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  8569. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  8570. longDateFormat : {
  8571. LT : 'A h:mm',
  8572. LTS : 'A h:mm:ss',
  8573. L : 'YYYY.MM.DD',
  8574. LL : 'YYYY년 MMMM D일',
  8575. LLL : 'YYYY년 MMMM D일 A h:mm',
  8576. LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
  8577. l : 'YYYY.MM.DD',
  8578. ll : 'YYYY년 MMMM D일',
  8579. lll : 'YYYY년 MMMM D일 A h:mm',
  8580. llll : 'YYYY년 MMMM D일 dddd A h:mm'
  8581. },
  8582. calendar : {
  8583. sameDay : '오늘 LT',
  8584. nextDay : '내일 LT',
  8585. nextWeek : 'dddd LT',
  8586. lastDay : '어제 LT',
  8587. lastWeek : '지난주 dddd LT',
  8588. sameElse : 'L'
  8589. },
  8590. relativeTime : {
  8591. future : '%s 후',
  8592. past : '%s 전',
  8593. s : '몇 초',
  8594. ss : '%d초',
  8595. m : '1분',
  8596. mm : '%d분',
  8597. h : '한 시간',
  8598. hh : '%d시간',
  8599. d : '하루',
  8600. dd : '%d일',
  8601. M : '한 달',
  8602. MM : '%d달',
  8603. y : '일 년',
  8604. yy : '%d년'
  8605. },
  8606. dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
  8607. ordinal : function (number, period) {
  8608. switch (period) {
  8609. case 'd':
  8610. case 'D':
  8611. case 'DDD':
  8612. return number + '일';
  8613. case 'M':
  8614. return number + '월';
  8615. case 'w':
  8616. case 'W':
  8617. return number + '주';
  8618. default:
  8619. return number;
  8620. }
  8621. },
  8622. meridiemParse : /오전|오후/,
  8623. isPM : function (token) {
  8624. return token === '오후';
  8625. },
  8626. meridiem : function (hour, minute, isUpper) {
  8627. return hour < 12 ? '오전' : '오후';
  8628. }
  8629. });
  8630. //! moment.js locale configuration
  8631. //! locale : Kyrgyz [ky]
  8632. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  8633. var suffixes$2 = {
  8634. 0: '-чү',
  8635. 1: '-чи',
  8636. 2: '-чи',
  8637. 3: '-чү',
  8638. 4: '-чү',
  8639. 5: '-чи',
  8640. 6: '-чы',
  8641. 7: '-чи',
  8642. 8: '-чи',
  8643. 9: '-чу',
  8644. 10: '-чу',
  8645. 20: '-чы',
  8646. 30: '-чу',
  8647. 40: '-чы',
  8648. 50: '-чү',
  8649. 60: '-чы',
  8650. 70: '-чи',
  8651. 80: '-чи',
  8652. 90: '-чу',
  8653. 100: '-чү'
  8654. };
  8655. hooks.defineLocale('ky', {
  8656. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  8657. monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  8658. weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  8659. weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  8660. weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  8661. longDateFormat : {
  8662. LT : 'HH:mm',
  8663. LTS : 'HH:mm:ss',
  8664. L : 'DD.MM.YYYY',
  8665. LL : 'D MMMM YYYY',
  8666. LLL : 'D MMMM YYYY HH:mm',
  8667. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8668. },
  8669. calendar : {
  8670. sameDay : '[Бүгүн саат] LT',
  8671. nextDay : '[Эртең саат] LT',
  8672. nextWeek : 'dddd [саат] LT',
  8673. lastDay : '[Кече саат] LT',
  8674. lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
  8675. sameElse : 'L'
  8676. },
  8677. relativeTime : {
  8678. future : '%s ичинде',
  8679. past : '%s мурун',
  8680. s : 'бирнече секунд',
  8681. m : 'бир мүнөт',
  8682. mm : '%d мүнөт',
  8683. h : 'бир саат',
  8684. hh : '%d саат',
  8685. d : 'бир күн',
  8686. dd : '%d күн',
  8687. M : 'бир ай',
  8688. MM : '%d ай',
  8689. y : 'бир жыл',
  8690. yy : '%d жыл'
  8691. },
  8692. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  8693. ordinal : function (number) {
  8694. var a = number % 10,
  8695. b = number >= 100 ? 100 : null;
  8696. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  8697. },
  8698. week : {
  8699. dow : 1, // Monday is the first day of the week.
  8700. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8701. }
  8702. });
  8703. //! moment.js locale configuration
  8704. //! locale : Luxembourgish [lb]
  8705. //! author : mweimerskirch : https://github.com/mweimerskirch
  8706. //! author : David Raison : https://github.com/kwisatz
  8707. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  8708. var format = {
  8709. 'm': ['eng Minutt', 'enger Minutt'],
  8710. 'h': ['eng Stonn', 'enger Stonn'],
  8711. 'd': ['een Dag', 'engem Dag'],
  8712. 'M': ['ee Mount', 'engem Mount'],
  8713. 'y': ['ee Joer', 'engem Joer']
  8714. };
  8715. return withoutSuffix ? format[key][0] : format[key][1];
  8716. }
  8717. function processFutureTime(string) {
  8718. var number = string.substr(0, string.indexOf(' '));
  8719. if (eifelerRegelAppliesToNumber(number)) {
  8720. return 'a ' + string;
  8721. }
  8722. return 'an ' + string;
  8723. }
  8724. function processPastTime(string) {
  8725. var number = string.substr(0, string.indexOf(' '));
  8726. if (eifelerRegelAppliesToNumber(number)) {
  8727. return 'viru ' + string;
  8728. }
  8729. return 'virun ' + string;
  8730. }
  8731. /**
  8732. * Returns true if the word before the given number loses the '-n' ending.
  8733. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  8734. *
  8735. * @param number {integer}
  8736. * @returns {boolean}
  8737. */
  8738. function eifelerRegelAppliesToNumber(number) {
  8739. number = parseInt(number, 10);
  8740. if (isNaN(number)) {
  8741. return false;
  8742. }
  8743. if (number < 0) {
  8744. // Negative Number --> always true
  8745. return true;
  8746. } else if (number < 10) {
  8747. // Only 1 digit
  8748. if (4 <= number && number <= 7) {
  8749. return true;
  8750. }
  8751. return false;
  8752. } else if (number < 100) {
  8753. // 2 digits
  8754. var lastDigit = number % 10, firstDigit = number / 10;
  8755. if (lastDigit === 0) {
  8756. return eifelerRegelAppliesToNumber(firstDigit);
  8757. }
  8758. return eifelerRegelAppliesToNumber(lastDigit);
  8759. } else if (number < 10000) {
  8760. // 3 or 4 digits --> recursively check first digit
  8761. while (number >= 10) {
  8762. number = number / 10;
  8763. }
  8764. return eifelerRegelAppliesToNumber(number);
  8765. } else {
  8766. // Anything larger than 4 digits: recursively check first n-3 digits
  8767. number = number / 1000;
  8768. return eifelerRegelAppliesToNumber(number);
  8769. }
  8770. }
  8771. hooks.defineLocale('lb', {
  8772. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  8773. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  8774. monthsParseExact : true,
  8775. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  8776. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  8777. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  8778. weekdaysParseExact : true,
  8779. longDateFormat: {
  8780. LT: 'H:mm [Auer]',
  8781. LTS: 'H:mm:ss [Auer]',
  8782. L: 'DD.MM.YYYY',
  8783. LL: 'D. MMMM YYYY',
  8784. LLL: 'D. MMMM YYYY H:mm [Auer]',
  8785. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  8786. },
  8787. calendar: {
  8788. sameDay: '[Haut um] LT',
  8789. sameElse: 'L',
  8790. nextDay: '[Muer um] LT',
  8791. nextWeek: 'dddd [um] LT',
  8792. lastDay: '[Gëschter um] LT',
  8793. lastWeek: function () {
  8794. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  8795. switch (this.day()) {
  8796. case 2:
  8797. case 4:
  8798. return '[Leschten] dddd [um] LT';
  8799. default:
  8800. return '[Leschte] dddd [um] LT';
  8801. }
  8802. }
  8803. },
  8804. relativeTime : {
  8805. future : processFutureTime,
  8806. past : processPastTime,
  8807. s : 'e puer Sekonnen',
  8808. m : processRelativeTime$5,
  8809. mm : '%d Minutten',
  8810. h : processRelativeTime$5,
  8811. hh : '%d Stonnen',
  8812. d : processRelativeTime$5,
  8813. dd : '%d Deeg',
  8814. M : processRelativeTime$5,
  8815. MM : '%d Méint',
  8816. y : processRelativeTime$5,
  8817. yy : '%d Joer'
  8818. },
  8819. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8820. ordinal: '%d.',
  8821. week: {
  8822. dow: 1, // Monday is the first day of the week.
  8823. doy: 4 // The week that contains Jan 4th is the first week of the year.
  8824. }
  8825. });
  8826. //! moment.js locale configuration
  8827. //! locale : Lao [lo]
  8828. //! author : Ryan Hart : https://github.com/ryanhart2
  8829. hooks.defineLocale('lo', {
  8830. months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  8831. monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  8832. weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  8833. weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  8834. weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  8835. weekdaysParseExact : true,
  8836. longDateFormat : {
  8837. LT : 'HH:mm',
  8838. LTS : 'HH:mm:ss',
  8839. L : 'DD/MM/YYYY',
  8840. LL : 'D MMMM YYYY',
  8841. LLL : 'D MMMM YYYY HH:mm',
  8842. LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
  8843. },
  8844. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  8845. isPM: function (input) {
  8846. return input === 'ຕອນແລງ';
  8847. },
  8848. meridiem : function (hour, minute, isLower) {
  8849. if (hour < 12) {
  8850. return 'ຕອນເຊົ້າ';
  8851. } else {
  8852. return 'ຕອນແລງ';
  8853. }
  8854. },
  8855. calendar : {
  8856. sameDay : '[ມື້ນີ້ເວລາ] LT',
  8857. nextDay : '[ມື້ອື່ນເວລາ] LT',
  8858. nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
  8859. lastDay : '[ມື້ວານນີ້ເວລາ] LT',
  8860. lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  8861. sameElse : 'L'
  8862. },
  8863. relativeTime : {
  8864. future : 'ອີກ %s',
  8865. past : '%sຜ່ານມາ',
  8866. s : 'ບໍ່ເທົ່າໃດວິນາທີ',
  8867. m : '1 ນາທີ',
  8868. mm : '%d ນາທີ',
  8869. h : '1 ຊົ່ວໂມງ',
  8870. hh : '%d ຊົ່ວໂມງ',
  8871. d : '1 ມື້',
  8872. dd : '%d ມື້',
  8873. M : '1 ເດືອນ',
  8874. MM : '%d ເດືອນ',
  8875. y : '1 ປີ',
  8876. yy : '%d ປີ'
  8877. },
  8878. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  8879. ordinal : function (number) {
  8880. return 'ທີ່' + number;
  8881. }
  8882. });
  8883. //! moment.js locale configuration
  8884. //! locale : Lithuanian [lt]
  8885. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  8886. var units = {
  8887. 'm' : 'minutė_minutės_minutę',
  8888. 'mm': 'minutės_minučių_minutes',
  8889. 'h' : 'valanda_valandos_valandą',
  8890. 'hh': 'valandos_valandų_valandas',
  8891. 'd' : 'diena_dienos_dieną',
  8892. 'dd': 'dienos_dienų_dienas',
  8893. 'M' : 'mėnuo_mėnesio_mėnesį',
  8894. 'MM': 'mėnesiai_mėnesių_mėnesius',
  8895. 'y' : 'metai_metų_metus',
  8896. 'yy': 'metai_metų_metus'
  8897. };
  8898. function translateSeconds(number, withoutSuffix, key, isFuture) {
  8899. if (withoutSuffix) {
  8900. return 'kelios sekundės';
  8901. } else {
  8902. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  8903. }
  8904. }
  8905. function translateSingular(number, withoutSuffix, key, isFuture) {
  8906. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  8907. }
  8908. function special(number) {
  8909. return number % 10 === 0 || (number > 10 && number < 20);
  8910. }
  8911. function forms(key) {
  8912. return units[key].split('_');
  8913. }
  8914. function translate$6(number, withoutSuffix, key, isFuture) {
  8915. var result = number + ' ';
  8916. if (number === 1) {
  8917. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  8918. } else if (withoutSuffix) {
  8919. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  8920. } else {
  8921. if (isFuture) {
  8922. return result + forms(key)[1];
  8923. } else {
  8924. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  8925. }
  8926. }
  8927. }
  8928. hooks.defineLocale('lt', {
  8929. months : {
  8930. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  8931. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  8932. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  8933. },
  8934. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  8935. weekdays : {
  8936. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  8937. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  8938. isFormat: /dddd HH:mm/
  8939. },
  8940. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  8941. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  8942. weekdaysParseExact : true,
  8943. longDateFormat : {
  8944. LT : 'HH:mm',
  8945. LTS : 'HH:mm:ss',
  8946. L : 'YYYY-MM-DD',
  8947. LL : 'YYYY [m.] MMMM D [d.]',
  8948. LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  8949. LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  8950. l : 'YYYY-MM-DD',
  8951. ll : 'YYYY [m.] MMMM D [d.]',
  8952. lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  8953. llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  8954. },
  8955. calendar : {
  8956. sameDay : '[Šiandien] LT',
  8957. nextDay : '[Rytoj] LT',
  8958. nextWeek : 'dddd LT',
  8959. lastDay : '[Vakar] LT',
  8960. lastWeek : '[Praėjusį] dddd LT',
  8961. sameElse : 'L'
  8962. },
  8963. relativeTime : {
  8964. future : 'po %s',
  8965. past : 'prieš %s',
  8966. s : translateSeconds,
  8967. m : translateSingular,
  8968. mm : translate$6,
  8969. h : translateSingular,
  8970. hh : translate$6,
  8971. d : translateSingular,
  8972. dd : translate$6,
  8973. M : translateSingular,
  8974. MM : translate$6,
  8975. y : translateSingular,
  8976. yy : translate$6
  8977. },
  8978. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  8979. ordinal : function (number) {
  8980. return number + '-oji';
  8981. },
  8982. week : {
  8983. dow : 1, // Monday is the first day of the week.
  8984. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8985. }
  8986. });
  8987. //! moment.js locale configuration
  8988. //! locale : Latvian [lv]
  8989. //! author : Kristaps Karlsons : https://github.com/skakri
  8990. //! author : Jānis Elmeris : https://github.com/JanisE
  8991. var units$1 = {
  8992. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  8993. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  8994. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  8995. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  8996. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  8997. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  8998. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  8999. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  9000. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  9001. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  9002. };
  9003. /**
  9004. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  9005. */
  9006. function format$1(forms, number, withoutSuffix) {
  9007. if (withoutSuffix) {
  9008. // E.g. "21 minūte", "3 minūtes".
  9009. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  9010. } else {
  9011. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  9012. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  9013. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  9014. }
  9015. }
  9016. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  9017. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  9018. }
  9019. function relativeTimeWithSingular(number, withoutSuffix, key) {
  9020. return format$1(units$1[key], number, withoutSuffix);
  9021. }
  9022. function relativeSeconds(number, withoutSuffix) {
  9023. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  9024. }
  9025. hooks.defineLocale('lv', {
  9026. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  9027. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  9028. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  9029. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  9030. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  9031. weekdaysParseExact : true,
  9032. longDateFormat : {
  9033. LT : 'HH:mm',
  9034. LTS : 'HH:mm:ss',
  9035. L : 'DD.MM.YYYY.',
  9036. LL : 'YYYY. [gada] D. MMMM',
  9037. LLL : 'YYYY. [gada] D. MMMM, HH:mm',
  9038. LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  9039. },
  9040. calendar : {
  9041. sameDay : '[Šodien pulksten] LT',
  9042. nextDay : '[Rīt pulksten] LT',
  9043. nextWeek : 'dddd [pulksten] LT',
  9044. lastDay : '[Vakar pulksten] LT',
  9045. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  9046. sameElse : 'L'
  9047. },
  9048. relativeTime : {
  9049. future : 'pēc %s',
  9050. past : 'pirms %s',
  9051. s : relativeSeconds,
  9052. m : relativeTimeWithSingular,
  9053. mm : relativeTimeWithPlural$1,
  9054. h : relativeTimeWithSingular,
  9055. hh : relativeTimeWithPlural$1,
  9056. d : relativeTimeWithSingular,
  9057. dd : relativeTimeWithPlural$1,
  9058. M : relativeTimeWithSingular,
  9059. MM : relativeTimeWithPlural$1,
  9060. y : relativeTimeWithSingular,
  9061. yy : relativeTimeWithPlural$1
  9062. },
  9063. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9064. ordinal : '%d.',
  9065. week : {
  9066. dow : 1, // Monday is the first day of the week.
  9067. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9068. }
  9069. });
  9070. //! moment.js locale configuration
  9071. //! locale : Montenegrin [me]
  9072. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  9073. var translator = {
  9074. words: { //Different grammatical cases
  9075. m: ['jedan minut', 'jednog minuta'],
  9076. mm: ['minut', 'minuta', 'minuta'],
  9077. h: ['jedan sat', 'jednog sata'],
  9078. hh: ['sat', 'sata', 'sati'],
  9079. dd: ['dan', 'dana', 'dana'],
  9080. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  9081. yy: ['godina', 'godine', 'godina']
  9082. },
  9083. correctGrammaticalCase: function (number, wordKey) {
  9084. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  9085. },
  9086. translate: function (number, withoutSuffix, key) {
  9087. var wordKey = translator.words[key];
  9088. if (key.length === 1) {
  9089. return withoutSuffix ? wordKey[0] : wordKey[1];
  9090. } else {
  9091. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  9092. }
  9093. }
  9094. };
  9095. hooks.defineLocale('me', {
  9096. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  9097. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  9098. monthsParseExact : true,
  9099. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  9100. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  9101. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  9102. weekdaysParseExact : true,
  9103. longDateFormat: {
  9104. LT: 'H:mm',
  9105. LTS : 'H:mm:ss',
  9106. L: 'DD.MM.YYYY',
  9107. LL: 'D. MMMM YYYY',
  9108. LLL: 'D. MMMM YYYY H:mm',
  9109. LLLL: 'dddd, D. MMMM YYYY H:mm'
  9110. },
  9111. calendar: {
  9112. sameDay: '[danas u] LT',
  9113. nextDay: '[sjutra u] LT',
  9114. nextWeek: function () {
  9115. switch (this.day()) {
  9116. case 0:
  9117. return '[u] [nedjelju] [u] LT';
  9118. case 3:
  9119. return '[u] [srijedu] [u] LT';
  9120. case 6:
  9121. return '[u] [subotu] [u] LT';
  9122. case 1:
  9123. case 2:
  9124. case 4:
  9125. case 5:
  9126. return '[u] dddd [u] LT';
  9127. }
  9128. },
  9129. lastDay : '[juče u] LT',
  9130. lastWeek : function () {
  9131. var lastWeekDays = [
  9132. '[prošle] [nedjelje] [u] LT',
  9133. '[prošlog] [ponedjeljka] [u] LT',
  9134. '[prošlog] [utorka] [u] LT',
  9135. '[prošle] [srijede] [u] LT',
  9136. '[prošlog] [četvrtka] [u] LT',
  9137. '[prošlog] [petka] [u] LT',
  9138. '[prošle] [subote] [u] LT'
  9139. ];
  9140. return lastWeekDays[this.day()];
  9141. },
  9142. sameElse : 'L'
  9143. },
  9144. relativeTime : {
  9145. future : 'za %s',
  9146. past : 'prije %s',
  9147. s : 'nekoliko sekundi',
  9148. m : translator.translate,
  9149. mm : translator.translate,
  9150. h : translator.translate,
  9151. hh : translator.translate,
  9152. d : 'dan',
  9153. dd : translator.translate,
  9154. M : 'mjesec',
  9155. MM : translator.translate,
  9156. y : 'godinu',
  9157. yy : translator.translate
  9158. },
  9159. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9160. ordinal : '%d.',
  9161. week : {
  9162. dow : 1, // Monday is the first day of the week.
  9163. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9164. }
  9165. });
  9166. //! moment.js locale configuration
  9167. //! locale : Maori [mi]
  9168. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  9169. hooks.defineLocale('mi', {
  9170. 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('_'),
  9171. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  9172. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  9173. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  9174. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  9175. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  9176. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  9177. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  9178. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  9179. longDateFormat: {
  9180. LT: 'HH:mm',
  9181. LTS: 'HH:mm:ss',
  9182. L: 'DD/MM/YYYY',
  9183. LL: 'D MMMM YYYY',
  9184. LLL: 'D MMMM YYYY [i] HH:mm',
  9185. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  9186. },
  9187. calendar: {
  9188. sameDay: '[i teie mahana, i] LT',
  9189. nextDay: '[apopo i] LT',
  9190. nextWeek: 'dddd [i] LT',
  9191. lastDay: '[inanahi i] LT',
  9192. lastWeek: 'dddd [whakamutunga i] LT',
  9193. sameElse: 'L'
  9194. },
  9195. relativeTime: {
  9196. future: 'i roto i %s',
  9197. past: '%s i mua',
  9198. s: 'te hēkona ruarua',
  9199. m: 'he meneti',
  9200. mm: '%d meneti',
  9201. h: 'te haora',
  9202. hh: '%d haora',
  9203. d: 'he ra',
  9204. dd: '%d ra',
  9205. M: 'he marama',
  9206. MM: '%d marama',
  9207. y: 'he tau',
  9208. yy: '%d tau'
  9209. },
  9210. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9211. ordinal: '%dº',
  9212. week : {
  9213. dow : 1, // Monday is the first day of the week.
  9214. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9215. }
  9216. });
  9217. //! moment.js locale configuration
  9218. //! locale : Macedonian [mk]
  9219. //! author : Borislav Mickov : https://github.com/B0k0
  9220. hooks.defineLocale('mk', {
  9221. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  9222. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  9223. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  9224. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  9225. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  9226. longDateFormat : {
  9227. LT : 'H:mm',
  9228. LTS : 'H:mm:ss',
  9229. L : 'D.MM.YYYY',
  9230. LL : 'D MMMM YYYY',
  9231. LLL : 'D MMMM YYYY H:mm',
  9232. LLLL : 'dddd, D MMMM YYYY H:mm'
  9233. },
  9234. calendar : {
  9235. sameDay : '[Денес во] LT',
  9236. nextDay : '[Утре во] LT',
  9237. nextWeek : '[Во] dddd [во] LT',
  9238. lastDay : '[Вчера во] LT',
  9239. lastWeek : function () {
  9240. switch (this.day()) {
  9241. case 0:
  9242. case 3:
  9243. case 6:
  9244. return '[Изминатата] dddd [во] LT';
  9245. case 1:
  9246. case 2:
  9247. case 4:
  9248. case 5:
  9249. return '[Изминатиот] dddd [во] LT';
  9250. }
  9251. },
  9252. sameElse : 'L'
  9253. },
  9254. relativeTime : {
  9255. future : 'после %s',
  9256. past : 'пред %s',
  9257. s : 'неколку секунди',
  9258. m : 'минута',
  9259. mm : '%d минути',
  9260. h : 'час',
  9261. hh : '%d часа',
  9262. d : 'ден',
  9263. dd : '%d дена',
  9264. M : 'месец',
  9265. MM : '%d месеци',
  9266. y : 'година',
  9267. yy : '%d години'
  9268. },
  9269. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  9270. ordinal : function (number) {
  9271. var lastDigit = number % 10,
  9272. last2Digits = number % 100;
  9273. if (number === 0) {
  9274. return number + '-ев';
  9275. } else if (last2Digits === 0) {
  9276. return number + '-ен';
  9277. } else if (last2Digits > 10 && last2Digits < 20) {
  9278. return number + '-ти';
  9279. } else if (lastDigit === 1) {
  9280. return number + '-ви';
  9281. } else if (lastDigit === 2) {
  9282. return number + '-ри';
  9283. } else if (lastDigit === 7 || lastDigit === 8) {
  9284. return number + '-ми';
  9285. } else {
  9286. return number + '-ти';
  9287. }
  9288. },
  9289. week : {
  9290. dow : 1, // Monday is the first day of the week.
  9291. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9292. }
  9293. });
  9294. //! moment.js locale configuration
  9295. //! locale : Malayalam [ml]
  9296. //! author : Floyd Pink : https://github.com/floydpink
  9297. hooks.defineLocale('ml', {
  9298. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  9299. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  9300. monthsParseExact : true,
  9301. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  9302. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  9303. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  9304. longDateFormat : {
  9305. LT : 'A h:mm -നു',
  9306. LTS : 'A h:mm:ss -നു',
  9307. L : 'DD/MM/YYYY',
  9308. LL : 'D MMMM YYYY',
  9309. LLL : 'D MMMM YYYY, A h:mm -നു',
  9310. LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
  9311. },
  9312. calendar : {
  9313. sameDay : '[ഇന്ന്] LT',
  9314. nextDay : '[നാളെ] LT',
  9315. nextWeek : 'dddd, LT',
  9316. lastDay : '[ഇന്നലെ] LT',
  9317. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  9318. sameElse : 'L'
  9319. },
  9320. relativeTime : {
  9321. future : '%s കഴിഞ്ഞ്',
  9322. past : '%s മുൻപ്',
  9323. s : 'അൽപ നിമിഷങ്ങൾ',
  9324. m : 'ഒരു മിനിറ്റ്',
  9325. mm : '%d മിനിറ്റ്',
  9326. h : 'ഒരു മണിക്കൂർ',
  9327. hh : '%d മണിക്കൂർ',
  9328. d : 'ഒരു ദിവസം',
  9329. dd : '%d ദിവസം',
  9330. M : 'ഒരു മാസം',
  9331. MM : '%d മാസം',
  9332. y : 'ഒരു വർഷം',
  9333. yy : '%d വർഷം'
  9334. },
  9335. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  9336. meridiemHour : function (hour, meridiem) {
  9337. if (hour === 12) {
  9338. hour = 0;
  9339. }
  9340. if ((meridiem === 'രാത്രി' && hour >= 4) ||
  9341. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  9342. meridiem === 'വൈകുന്നേരം') {
  9343. return hour + 12;
  9344. } else {
  9345. return hour;
  9346. }
  9347. },
  9348. meridiem : function (hour, minute, isLower) {
  9349. if (hour < 4) {
  9350. return 'രാത്രി';
  9351. } else if (hour < 12) {
  9352. return 'രാവിലെ';
  9353. } else if (hour < 17) {
  9354. return 'ഉച്ച കഴിഞ്ഞ്';
  9355. } else if (hour < 20) {
  9356. return 'വൈകുന്നേരം';
  9357. } else {
  9358. return 'രാത്രി';
  9359. }
  9360. }
  9361. });
  9362. //! moment.js locale configuration
  9363. //! locale : Marathi [mr]
  9364. //! author : Harshad Kale : https://github.com/kalehv
  9365. //! author : Vivek Athalye : https://github.com/vnathalye
  9366. var symbolMap$9 = {
  9367. '1': '१',
  9368. '2': '२',
  9369. '3': '३',
  9370. '4': '४',
  9371. '5': '५',
  9372. '6': '६',
  9373. '7': '७',
  9374. '8': '८',
  9375. '9': '९',
  9376. '0': '०'
  9377. };
  9378. var numberMap$8 = {
  9379. '१': '1',
  9380. '२': '2',
  9381. '३': '3',
  9382. '४': '4',
  9383. '५': '5',
  9384. '६': '6',
  9385. '७': '7',
  9386. '८': '8',
  9387. '९': '9',
  9388. '०': '0'
  9389. };
  9390. function relativeTimeMr(number, withoutSuffix, string, isFuture)
  9391. {
  9392. var output = '';
  9393. if (withoutSuffix) {
  9394. switch (string) {
  9395. case 's': output = 'काही सेकंद'; break;
  9396. case 'm': output = 'एक मिनिट'; break;
  9397. case 'mm': output = '%d मिनिटे'; break;
  9398. case 'h': output = 'एक तास'; break;
  9399. case 'hh': output = '%d तास'; break;
  9400. case 'd': output = 'एक दिवस'; break;
  9401. case 'dd': output = '%d दिवस'; break;
  9402. case 'M': output = 'एक महिना'; break;
  9403. case 'MM': output = '%d महिने'; break;
  9404. case 'y': output = 'एक वर्ष'; break;
  9405. case 'yy': output = '%d वर्षे'; break;
  9406. }
  9407. }
  9408. else {
  9409. switch (string) {
  9410. case 's': output = 'काही सेकंदां'; break;
  9411. case 'm': output = 'एका मिनिटा'; break;
  9412. case 'mm': output = '%d मिनिटां'; break;
  9413. case 'h': output = 'एका तासा'; break;
  9414. case 'hh': output = '%d तासां'; break;
  9415. case 'd': output = 'एका दिवसा'; break;
  9416. case 'dd': output = '%d दिवसां'; break;
  9417. case 'M': output = 'एका महिन्या'; break;
  9418. case 'MM': output = '%d महिन्यां'; break;
  9419. case 'y': output = 'एका वर्षा'; break;
  9420. case 'yy': output = '%d वर्षां'; break;
  9421. }
  9422. }
  9423. return output.replace(/%d/i, number);
  9424. }
  9425. hooks.defineLocale('mr', {
  9426. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  9427. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  9428. monthsParseExact : true,
  9429. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9430. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  9431. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9432. longDateFormat : {
  9433. LT : 'A h:mm वाजता',
  9434. LTS : 'A h:mm:ss वाजता',
  9435. L : 'DD/MM/YYYY',
  9436. LL : 'D MMMM YYYY',
  9437. LLL : 'D MMMM YYYY, A h:mm वाजता',
  9438. LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
  9439. },
  9440. calendar : {
  9441. sameDay : '[आज] LT',
  9442. nextDay : '[उद्या] LT',
  9443. nextWeek : 'dddd, LT',
  9444. lastDay : '[काल] LT',
  9445. lastWeek: '[मागील] dddd, LT',
  9446. sameElse : 'L'
  9447. },
  9448. relativeTime : {
  9449. future: '%sमध्ये',
  9450. past: '%sपूर्वी',
  9451. s: relativeTimeMr,
  9452. m: relativeTimeMr,
  9453. mm: relativeTimeMr,
  9454. h: relativeTimeMr,
  9455. hh: relativeTimeMr,
  9456. d: relativeTimeMr,
  9457. dd: relativeTimeMr,
  9458. M: relativeTimeMr,
  9459. MM: relativeTimeMr,
  9460. y: relativeTimeMr,
  9461. yy: relativeTimeMr
  9462. },
  9463. preparse: function (string) {
  9464. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9465. return numberMap$8[match];
  9466. });
  9467. },
  9468. postformat: function (string) {
  9469. return string.replace(/\d/g, function (match) {
  9470. return symbolMap$9[match];
  9471. });
  9472. },
  9473. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  9474. meridiemHour : function (hour, meridiem) {
  9475. if (hour === 12) {
  9476. hour = 0;
  9477. }
  9478. if (meridiem === 'रात्री') {
  9479. return hour < 4 ? hour : hour + 12;
  9480. } else if (meridiem === 'सकाळी') {
  9481. return hour;
  9482. } else if (meridiem === 'दुपारी') {
  9483. return hour >= 10 ? hour : hour + 12;
  9484. } else if (meridiem === 'सायंकाळी') {
  9485. return hour + 12;
  9486. }
  9487. },
  9488. meridiem: function (hour, minute, isLower) {
  9489. if (hour < 4) {
  9490. return 'रात्री';
  9491. } else if (hour < 10) {
  9492. return 'सकाळी';
  9493. } else if (hour < 17) {
  9494. return 'दुपारी';
  9495. } else if (hour < 20) {
  9496. return 'सायंकाळी';
  9497. } else {
  9498. return 'रात्री';
  9499. }
  9500. },
  9501. week : {
  9502. dow : 0, // Sunday is the first day of the week.
  9503. doy : 6 // The week that contains Jan 1st is the first week of the year.
  9504. }
  9505. });
  9506. //! moment.js locale configuration
  9507. //! locale : Malay [ms-my]
  9508. //! note : DEPRECATED, the correct one is [ms]
  9509. //! author : Weldan Jamili : https://github.com/weldan
  9510. hooks.defineLocale('ms-my', {
  9511. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  9512. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  9513. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  9514. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  9515. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  9516. longDateFormat : {
  9517. LT : 'HH.mm',
  9518. LTS : 'HH.mm.ss',
  9519. L : 'DD/MM/YYYY',
  9520. LL : 'D MMMM YYYY',
  9521. LLL : 'D MMMM YYYY [pukul] HH.mm',
  9522. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  9523. },
  9524. meridiemParse: /pagi|tengahari|petang|malam/,
  9525. meridiemHour: function (hour, meridiem) {
  9526. if (hour === 12) {
  9527. hour = 0;
  9528. }
  9529. if (meridiem === 'pagi') {
  9530. return hour;
  9531. } else if (meridiem === 'tengahari') {
  9532. return hour >= 11 ? hour : hour + 12;
  9533. } else if (meridiem === 'petang' || meridiem === 'malam') {
  9534. return hour + 12;
  9535. }
  9536. },
  9537. meridiem : function (hours, minutes, isLower) {
  9538. if (hours < 11) {
  9539. return 'pagi';
  9540. } else if (hours < 15) {
  9541. return 'tengahari';
  9542. } else if (hours < 19) {
  9543. return 'petang';
  9544. } else {
  9545. return 'malam';
  9546. }
  9547. },
  9548. calendar : {
  9549. sameDay : '[Hari ini pukul] LT',
  9550. nextDay : '[Esok pukul] LT',
  9551. nextWeek : 'dddd [pukul] LT',
  9552. lastDay : '[Kelmarin pukul] LT',
  9553. lastWeek : 'dddd [lepas pukul] LT',
  9554. sameElse : 'L'
  9555. },
  9556. relativeTime : {
  9557. future : 'dalam %s',
  9558. past : '%s yang lepas',
  9559. s : 'beberapa saat',
  9560. m : 'seminit',
  9561. mm : '%d minit',
  9562. h : 'sejam',
  9563. hh : '%d jam',
  9564. d : 'sehari',
  9565. dd : '%d hari',
  9566. M : 'sebulan',
  9567. MM : '%d bulan',
  9568. y : 'setahun',
  9569. yy : '%d tahun'
  9570. },
  9571. week : {
  9572. dow : 1, // Monday is the first day of the week.
  9573. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9574. }
  9575. });
  9576. //! moment.js locale configuration
  9577. //! locale : Malay [ms]
  9578. //! author : Weldan Jamili : https://github.com/weldan
  9579. hooks.defineLocale('ms', {
  9580. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  9581. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  9582. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  9583. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  9584. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  9585. longDateFormat : {
  9586. LT : 'HH.mm',
  9587. LTS : 'HH.mm.ss',
  9588. L : 'DD/MM/YYYY',
  9589. LL : 'D MMMM YYYY',
  9590. LLL : 'D MMMM YYYY [pukul] HH.mm',
  9591. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  9592. },
  9593. meridiemParse: /pagi|tengahari|petang|malam/,
  9594. meridiemHour: function (hour, meridiem) {
  9595. if (hour === 12) {
  9596. hour = 0;
  9597. }
  9598. if (meridiem === 'pagi') {
  9599. return hour;
  9600. } else if (meridiem === 'tengahari') {
  9601. return hour >= 11 ? hour : hour + 12;
  9602. } else if (meridiem === 'petang' || meridiem === 'malam') {
  9603. return hour + 12;
  9604. }
  9605. },
  9606. meridiem : function (hours, minutes, isLower) {
  9607. if (hours < 11) {
  9608. return 'pagi';
  9609. } else if (hours < 15) {
  9610. return 'tengahari';
  9611. } else if (hours < 19) {
  9612. return 'petang';
  9613. } else {
  9614. return 'malam';
  9615. }
  9616. },
  9617. calendar : {
  9618. sameDay : '[Hari ini pukul] LT',
  9619. nextDay : '[Esok pukul] LT',
  9620. nextWeek : 'dddd [pukul] LT',
  9621. lastDay : '[Kelmarin pukul] LT',
  9622. lastWeek : 'dddd [lepas pukul] LT',
  9623. sameElse : 'L'
  9624. },
  9625. relativeTime : {
  9626. future : 'dalam %s',
  9627. past : '%s yang lepas',
  9628. s : 'beberapa saat',
  9629. m : 'seminit',
  9630. mm : '%d minit',
  9631. h : 'sejam',
  9632. hh : '%d jam',
  9633. d : 'sehari',
  9634. dd : '%d hari',
  9635. M : 'sebulan',
  9636. MM : '%d bulan',
  9637. y : 'setahun',
  9638. yy : '%d tahun'
  9639. },
  9640. week : {
  9641. dow : 1, // Monday is the first day of the week.
  9642. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9643. }
  9644. });
  9645. //! moment.js locale configuration
  9646. //! locale : Burmese [my]
  9647. //! author : Squar team, mysquar.com
  9648. //! author : David Rossellat : https://github.com/gholadr
  9649. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  9650. var symbolMap$10 = {
  9651. '1': '၁',
  9652. '2': '၂',
  9653. '3': '၃',
  9654. '4': '၄',
  9655. '5': '၅',
  9656. '6': '၆',
  9657. '7': '၇',
  9658. '8': '၈',
  9659. '9': '၉',
  9660. '0': '၀'
  9661. };
  9662. var numberMap$9 = {
  9663. '၁': '1',
  9664. '၂': '2',
  9665. '၃': '3',
  9666. '၄': '4',
  9667. '၅': '5',
  9668. '၆': '6',
  9669. '၇': '7',
  9670. '၈': '8',
  9671. '၉': '9',
  9672. '၀': '0'
  9673. };
  9674. hooks.defineLocale('my', {
  9675. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  9676. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  9677. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  9678. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  9679. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  9680. longDateFormat: {
  9681. LT: 'HH:mm',
  9682. LTS: 'HH:mm:ss',
  9683. L: 'DD/MM/YYYY',
  9684. LL: 'D MMMM YYYY',
  9685. LLL: 'D MMMM YYYY HH:mm',
  9686. LLLL: 'dddd D MMMM YYYY HH:mm'
  9687. },
  9688. calendar: {
  9689. sameDay: '[ယနေ.] LT [မှာ]',
  9690. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  9691. nextWeek: 'dddd LT [မှာ]',
  9692. lastDay: '[မနေ.က] LT [မှာ]',
  9693. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  9694. sameElse: 'L'
  9695. },
  9696. relativeTime: {
  9697. future: 'လာမည့် %s မှာ',
  9698. past: 'လွန်ခဲ့သော %s က',
  9699. s: 'စက္ကန်.အနည်းငယ်',
  9700. m: 'တစ်မိနစ်',
  9701. mm: '%d မိနစ်',
  9702. h: 'တစ်နာရီ',
  9703. hh: '%d နာရီ',
  9704. d: 'တစ်ရက်',
  9705. dd: '%d ရက်',
  9706. M: 'တစ်လ',
  9707. MM: '%d လ',
  9708. y: 'တစ်နှစ်',
  9709. yy: '%d နှစ်'
  9710. },
  9711. preparse: function (string) {
  9712. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  9713. return numberMap$9[match];
  9714. });
  9715. },
  9716. postformat: function (string) {
  9717. return string.replace(/\d/g, function (match) {
  9718. return symbolMap$10[match];
  9719. });
  9720. },
  9721. week: {
  9722. dow: 1, // Monday is the first day of the week.
  9723. doy: 4 // The week that contains Jan 1st is the first week of the year.
  9724. }
  9725. });
  9726. //! moment.js locale configuration
  9727. //! locale : Norwegian Bokmål [nb]
  9728. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  9729. //! Sigurd Gartmann : https://github.com/sigurdga
  9730. hooks.defineLocale('nb', {
  9731. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  9732. monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  9733. monthsParseExact : true,
  9734. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  9735. weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  9736. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  9737. weekdaysParseExact : true,
  9738. longDateFormat : {
  9739. LT : 'HH:mm',
  9740. LTS : 'HH:mm:ss',
  9741. L : 'DD.MM.YYYY',
  9742. LL : 'D. MMMM YYYY',
  9743. LLL : 'D. MMMM YYYY [kl.] HH:mm',
  9744. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  9745. },
  9746. calendar : {
  9747. sameDay: '[i dag kl.] LT',
  9748. nextDay: '[i morgen kl.] LT',
  9749. nextWeek: 'dddd [kl.] LT',
  9750. lastDay: '[i går kl.] LT',
  9751. lastWeek: '[forrige] dddd [kl.] LT',
  9752. sameElse: 'L'
  9753. },
  9754. relativeTime : {
  9755. future : 'om %s',
  9756. past : '%s siden',
  9757. s : 'noen sekunder',
  9758. m : 'ett minutt',
  9759. mm : '%d minutter',
  9760. h : 'en time',
  9761. hh : '%d timer',
  9762. d : 'en dag',
  9763. dd : '%d dager',
  9764. M : 'en måned',
  9765. MM : '%d måneder',
  9766. y : 'ett år',
  9767. yy : '%d år'
  9768. },
  9769. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9770. ordinal : '%d.',
  9771. week : {
  9772. dow : 1, // Monday is the first day of the week.
  9773. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9774. }
  9775. });
  9776. //! moment.js locale configuration
  9777. //! locale : Nepalese [ne]
  9778. //! author : suvash : https://github.com/suvash
  9779. var symbolMap$11 = {
  9780. '1': '१',
  9781. '2': '२',
  9782. '3': '३',
  9783. '4': '४',
  9784. '5': '५',
  9785. '6': '६',
  9786. '7': '७',
  9787. '8': '८',
  9788. '9': '९',
  9789. '0': '०'
  9790. };
  9791. var numberMap$10 = {
  9792. '१': '1',
  9793. '२': '2',
  9794. '३': '3',
  9795. '४': '4',
  9796. '५': '5',
  9797. '६': '6',
  9798. '७': '7',
  9799. '८': '8',
  9800. '९': '9',
  9801. '०': '0'
  9802. };
  9803. hooks.defineLocale('ne', {
  9804. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  9805. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  9806. monthsParseExact : true,
  9807. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  9808. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  9809. weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  9810. weekdaysParseExact : true,
  9811. longDateFormat : {
  9812. LT : 'Aको h:mm बजे',
  9813. LTS : 'Aको h:mm:ss बजे',
  9814. L : 'DD/MM/YYYY',
  9815. LL : 'D MMMM YYYY',
  9816. LLL : 'D MMMM YYYY, Aको h:mm बजे',
  9817. LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
  9818. },
  9819. preparse: function (string) {
  9820. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9821. return numberMap$10[match];
  9822. });
  9823. },
  9824. postformat: function (string) {
  9825. return string.replace(/\d/g, function (match) {
  9826. return symbolMap$11[match];
  9827. });
  9828. },
  9829. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  9830. meridiemHour : function (hour, meridiem) {
  9831. if (hour === 12) {
  9832. hour = 0;
  9833. }
  9834. if (meridiem === 'राति') {
  9835. return hour < 4 ? hour : hour + 12;
  9836. } else if (meridiem === 'बिहान') {
  9837. return hour;
  9838. } else if (meridiem === 'दिउँसो') {
  9839. return hour >= 10 ? hour : hour + 12;
  9840. } else if (meridiem === 'साँझ') {
  9841. return hour + 12;
  9842. }
  9843. },
  9844. meridiem : function (hour, minute, isLower) {
  9845. if (hour < 3) {
  9846. return 'राति';
  9847. } else if (hour < 12) {
  9848. return 'बिहान';
  9849. } else if (hour < 16) {
  9850. return 'दिउँसो';
  9851. } else if (hour < 20) {
  9852. return 'साँझ';
  9853. } else {
  9854. return 'राति';
  9855. }
  9856. },
  9857. calendar : {
  9858. sameDay : '[आज] LT',
  9859. nextDay : '[भोलि] LT',
  9860. nextWeek : '[आउँदो] dddd[,] LT',
  9861. lastDay : '[हिजो] LT',
  9862. lastWeek : '[गएको] dddd[,] LT',
  9863. sameElse : 'L'
  9864. },
  9865. relativeTime : {
  9866. future : '%sमा',
  9867. past : '%s अगाडि',
  9868. s : 'केही क्षण',
  9869. m : 'एक मिनेट',
  9870. mm : '%d मिनेट',
  9871. h : 'एक घण्टा',
  9872. hh : '%d घण्टा',
  9873. d : 'एक दिन',
  9874. dd : '%d दिन',
  9875. M : 'एक महिना',
  9876. MM : '%d महिना',
  9877. y : 'एक बर्ष',
  9878. yy : '%d बर्ष'
  9879. },
  9880. week : {
  9881. dow : 0, // Sunday is the first day of the week.
  9882. doy : 6 // The week that contains Jan 1st is the first week of the year.
  9883. }
  9884. });
  9885. //! moment.js locale configuration
  9886. //! locale : Dutch (Belgium) [nl-be]
  9887. //! author : Joris Röling : https://github.com/jorisroling
  9888. //! author : Jacob Middag : https://github.com/middagj
  9889. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  9890. var monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  9891. var monthsParse$2 = [/^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];
  9892. var monthsRegex$3 = /^(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;
  9893. hooks.defineLocale('nl-be', {
  9894. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  9895. monthsShort : function (m, format) {
  9896. if (!m) {
  9897. return monthsShortWithDots$1;
  9898. } else if (/-MMM-/.test(format)) {
  9899. return monthsShortWithoutDots$1[m.month()];
  9900. } else {
  9901. return monthsShortWithDots$1[m.month()];
  9902. }
  9903. },
  9904. monthsRegex: monthsRegex$3,
  9905. monthsShortRegex: monthsRegex$3,
  9906. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  9907. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  9908. monthsParse : monthsParse$2,
  9909. longMonthsParse : monthsParse$2,
  9910. shortMonthsParse : monthsParse$2,
  9911. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  9912. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  9913. weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
  9914. weekdaysParseExact : true,
  9915. longDateFormat : {
  9916. LT : 'HH:mm',
  9917. LTS : 'HH:mm:ss',
  9918. L : 'DD/MM/YYYY',
  9919. LL : 'D MMMM YYYY',
  9920. LLL : 'D MMMM YYYY HH:mm',
  9921. LLLL : 'dddd D MMMM YYYY HH:mm'
  9922. },
  9923. calendar : {
  9924. sameDay: '[vandaag om] LT',
  9925. nextDay: '[morgen om] LT',
  9926. nextWeek: 'dddd [om] LT',
  9927. lastDay: '[gisteren om] LT',
  9928. lastWeek: '[afgelopen] dddd [om] LT',
  9929. sameElse: 'L'
  9930. },
  9931. relativeTime : {
  9932. future : 'over %s',
  9933. past : '%s geleden',
  9934. s : 'een paar seconden',
  9935. m : 'één minuut',
  9936. mm : '%d minuten',
  9937. h : 'één uur',
  9938. hh : '%d uur',
  9939. d : 'één dag',
  9940. dd : '%d dagen',
  9941. M : 'één maand',
  9942. MM : '%d maanden',
  9943. y : 'één jaar',
  9944. yy : '%d jaar'
  9945. },
  9946. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9947. ordinal : function (number) {
  9948. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  9949. },
  9950. week : {
  9951. dow : 1, // Monday is the first day of the week.
  9952. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9953. }
  9954. });
  9955. //! moment.js locale configuration
  9956. //! locale : Dutch [nl]
  9957. //! author : Joris Röling : https://github.com/jorisroling
  9958. //! author : Jacob Middag : https://github.com/middagj
  9959. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  9960. var monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  9961. var monthsParse$3 = [/^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];
  9962. var monthsRegex$4 = /^(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;
  9963. hooks.defineLocale('nl', {
  9964. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  9965. monthsShort : function (m, format) {
  9966. if (!m) {
  9967. return monthsShortWithDots$2;
  9968. } else if (/-MMM-/.test(format)) {
  9969. return monthsShortWithoutDots$2[m.month()];
  9970. } else {
  9971. return monthsShortWithDots$2[m.month()];
  9972. }
  9973. },
  9974. monthsRegex: monthsRegex$4,
  9975. monthsShortRegex: monthsRegex$4,
  9976. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  9977. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  9978. monthsParse : monthsParse$3,
  9979. longMonthsParse : monthsParse$3,
  9980. shortMonthsParse : monthsParse$3,
  9981. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  9982. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  9983. weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
  9984. weekdaysParseExact : true,
  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: '[vandaag om] LT',
  9995. nextDay: '[morgen om] LT',
  9996. nextWeek: 'dddd [om] LT',
  9997. lastDay: '[gisteren om] LT',
  9998. lastWeek: '[afgelopen] dddd [om] LT',
  9999. sameElse: 'L'
  10000. },
  10001. relativeTime : {
  10002. future : 'over %s',
  10003. past : '%s geleden',
  10004. s : 'een paar seconden',
  10005. m : 'één minuut',
  10006. mm : '%d minuten',
  10007. h : 'één uur',
  10008. hh : '%d uur',
  10009. d : 'één dag',
  10010. dd : '%d dagen',
  10011. M : 'één maand',
  10012. MM : '%d maanden',
  10013. y : 'één jaar',
  10014. yy : '%d jaar'
  10015. },
  10016. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  10017. ordinal : function (number) {
  10018. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  10019. },
  10020. week : {
  10021. dow : 1, // Monday is the first day of the week.
  10022. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10023. }
  10024. });
  10025. //! moment.js locale configuration
  10026. //! locale : Nynorsk [nn]
  10027. //! author : https://github.com/mechuwind
  10028. hooks.defineLocale('nn', {
  10029. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  10030. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  10031. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  10032. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  10033. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  10034. longDateFormat : {
  10035. LT : 'HH:mm',
  10036. LTS : 'HH:mm:ss',
  10037. L : 'DD.MM.YYYY',
  10038. LL : 'D. MMMM YYYY',
  10039. LLL : 'D. MMMM YYYY [kl.] H:mm',
  10040. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  10041. },
  10042. calendar : {
  10043. sameDay: '[I dag klokka] LT',
  10044. nextDay: '[I morgon klokka] LT',
  10045. nextWeek: 'dddd [klokka] LT',
  10046. lastDay: '[I går klokka] LT',
  10047. lastWeek: '[Føregåande] dddd [klokka] LT',
  10048. sameElse: 'L'
  10049. },
  10050. relativeTime : {
  10051. future : 'om %s',
  10052. past : '%s sidan',
  10053. s : 'nokre sekund',
  10054. m : 'eit minutt',
  10055. mm : '%d minutt',
  10056. h : 'ein time',
  10057. hh : '%d timar',
  10058. d : 'ein dag',
  10059. dd : '%d dagar',
  10060. M : 'ein månad',
  10061. MM : '%d månader',
  10062. y : 'eit år',
  10063. yy : '%d år'
  10064. },
  10065. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10066. ordinal : '%d.',
  10067. week : {
  10068. dow : 1, // Monday is the first day of the week.
  10069. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10070. }
  10071. });
  10072. //! moment.js locale configuration
  10073. //! locale : Punjabi (India) [pa-in]
  10074. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  10075. var symbolMap$12 = {
  10076. '1': '੧',
  10077. '2': '੨',
  10078. '3': '੩',
  10079. '4': '੪',
  10080. '5': '੫',
  10081. '6': '੬',
  10082. '7': '੭',
  10083. '8': '੮',
  10084. '9': '੯',
  10085. '0': '੦'
  10086. };
  10087. var numberMap$11 = {
  10088. '੧': '1',
  10089. '੨': '2',
  10090. '੩': '3',
  10091. '੪': '4',
  10092. '੫': '5',
  10093. '੬': '6',
  10094. '੭': '7',
  10095. '੮': '8',
  10096. '੯': '9',
  10097. '੦': '0'
  10098. };
  10099. hooks.defineLocale('pa-in', {
  10100. // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
  10101. months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  10102. monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  10103. weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  10104. weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  10105. weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  10106. longDateFormat : {
  10107. LT : 'A h:mm ਵਜੇ',
  10108. LTS : 'A h:mm:ss ਵਜੇ',
  10109. L : 'DD/MM/YYYY',
  10110. LL : 'D MMMM YYYY',
  10111. LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
  10112. LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  10113. },
  10114. calendar : {
  10115. sameDay : '[ਅਜ] LT',
  10116. nextDay : '[ਕਲ] LT',
  10117. nextWeek : 'dddd, LT',
  10118. lastDay : '[ਕਲ] LT',
  10119. lastWeek : '[ਪਿਛਲੇ] dddd, LT',
  10120. sameElse : 'L'
  10121. },
  10122. relativeTime : {
  10123. future : '%s ਵਿੱਚ',
  10124. past : '%s ਪਿਛਲੇ',
  10125. s : 'ਕੁਝ ਸਕਿੰਟ',
  10126. m : 'ਇਕ ਮਿੰਟ',
  10127. mm : '%d ਮਿੰਟ',
  10128. h : 'ਇੱਕ ਘੰਟਾ',
  10129. hh : '%d ਘੰਟੇ',
  10130. d : 'ਇੱਕ ਦਿਨ',
  10131. dd : '%d ਦਿਨ',
  10132. M : 'ਇੱਕ ਮਹੀਨਾ',
  10133. MM : '%d ਮਹੀਨੇ',
  10134. y : 'ਇੱਕ ਸਾਲ',
  10135. yy : '%d ਸਾਲ'
  10136. },
  10137. preparse: function (string) {
  10138. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  10139. return numberMap$11[match];
  10140. });
  10141. },
  10142. postformat: function (string) {
  10143. return string.replace(/\d/g, function (match) {
  10144. return symbolMap$12[match];
  10145. });
  10146. },
  10147. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  10148. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  10149. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  10150. meridiemHour : function (hour, meridiem) {
  10151. if (hour === 12) {
  10152. hour = 0;
  10153. }
  10154. if (meridiem === 'ਰਾਤ') {
  10155. return hour < 4 ? hour : hour + 12;
  10156. } else if (meridiem === 'ਸਵੇਰ') {
  10157. return hour;
  10158. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  10159. return hour >= 10 ? hour : hour + 12;
  10160. } else if (meridiem === 'ਸ਼ਾਮ') {
  10161. return hour + 12;
  10162. }
  10163. },
  10164. meridiem : function (hour, minute, isLower) {
  10165. if (hour < 4) {
  10166. return 'ਰਾਤ';
  10167. } else if (hour < 10) {
  10168. return 'ਸਵੇਰ';
  10169. } else if (hour < 17) {
  10170. return 'ਦੁਪਹਿਰ';
  10171. } else if (hour < 20) {
  10172. return 'ਸ਼ਾਮ';
  10173. } else {
  10174. return 'ਰਾਤ';
  10175. }
  10176. },
  10177. week : {
  10178. dow : 0, // Sunday is the first day of the week.
  10179. doy : 6 // The week that contains Jan 1st is the first week of the year.
  10180. }
  10181. });
  10182. //! moment.js locale configuration
  10183. //! locale : Polish [pl]
  10184. //! author : Rafal Hirsz : https://github.com/evoL
  10185. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
  10186. var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  10187. function plural$3(n) {
  10188. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  10189. }
  10190. function translate$7(number, withoutSuffix, key) {
  10191. var result = number + ' ';
  10192. switch (key) {
  10193. case 'm':
  10194. return withoutSuffix ? 'minuta' : 'minutę';
  10195. case 'mm':
  10196. return result + (plural$3(number) ? 'minuty' : 'minut');
  10197. case 'h':
  10198. return withoutSuffix ? 'godzina' : 'godzinę';
  10199. case 'hh':
  10200. return result + (plural$3(number) ? 'godziny' : 'godzin');
  10201. case 'MM':
  10202. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  10203. case 'yy':
  10204. return result + (plural$3(number) ? 'lata' : 'lat');
  10205. }
  10206. }
  10207. hooks.defineLocale('pl', {
  10208. months : function (momentToFormat, format) {
  10209. if (!momentToFormat) {
  10210. return monthsNominative;
  10211. } else if (format === '') {
  10212. // Hack: if format empty we know this is used to generate
  10213. // RegExp by moment. Give then back both valid forms of months
  10214. // in RegExp ready format.
  10215. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  10216. } else if (/D MMMM/.test(format)) {
  10217. return monthsSubjective[momentToFormat.month()];
  10218. } else {
  10219. return monthsNominative[momentToFormat.month()];
  10220. }
  10221. },
  10222. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  10223. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  10224. weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  10225. weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  10226. longDateFormat : {
  10227. LT : 'HH:mm',
  10228. LTS : 'HH:mm:ss',
  10229. L : 'DD.MM.YYYY',
  10230. LL : 'D MMMM YYYY',
  10231. LLL : 'D MMMM YYYY HH:mm',
  10232. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10233. },
  10234. calendar : {
  10235. sameDay: '[Dziś o] LT',
  10236. nextDay: '[Jutro o] LT',
  10237. nextWeek: function () {
  10238. switch (this.day()) {
  10239. case 0:
  10240. return '[W niedzielę o] LT';
  10241. case 2:
  10242. return '[We wtorek o] LT';
  10243. case 3:
  10244. return '[W środę o] LT';
  10245. case 6:
  10246. return '[W sobotę o] LT';
  10247. default:
  10248. return '[W] dddd [o] LT';
  10249. }
  10250. },
  10251. lastDay: '[Wczoraj o] LT',
  10252. lastWeek: function () {
  10253. switch (this.day()) {
  10254. case 0:
  10255. return '[W zeszłą niedzielę o] LT';
  10256. case 3:
  10257. return '[W zeszłą środę o] LT';
  10258. case 6:
  10259. return '[W zeszłą sobotę o] LT';
  10260. default:
  10261. return '[W zeszły] dddd [o] LT';
  10262. }
  10263. },
  10264. sameElse: 'L'
  10265. },
  10266. relativeTime : {
  10267. future : 'za %s',
  10268. past : '%s temu',
  10269. s : 'kilka sekund',
  10270. m : translate$7,
  10271. mm : translate$7,
  10272. h : translate$7,
  10273. hh : translate$7,
  10274. d : '1 dzień',
  10275. dd : '%d dni',
  10276. M : 'miesiąc',
  10277. MM : translate$7,
  10278. y : 'rok',
  10279. yy : translate$7
  10280. },
  10281. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10282. ordinal : '%d.',
  10283. week : {
  10284. dow : 1, // Monday is the first day of the week.
  10285. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10286. }
  10287. });
  10288. //! moment.js locale configuration
  10289. //! locale : Portuguese (Brazil) [pt-br]
  10290. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  10291. hooks.defineLocale('pt-br', {
  10292. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  10293. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  10294. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  10295. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  10296. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  10297. weekdaysParseExact : true,
  10298. longDateFormat : {
  10299. LT : 'HH:mm',
  10300. LTS : 'HH:mm:ss',
  10301. L : 'DD/MM/YYYY',
  10302. LL : 'D [de] MMMM [de] YYYY',
  10303. LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
  10304. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  10305. },
  10306. calendar : {
  10307. sameDay: '[Hoje às] LT',
  10308. nextDay: '[Amanhã às] LT',
  10309. nextWeek: 'dddd [às] LT',
  10310. lastDay: '[Ontem às] LT',
  10311. lastWeek: function () {
  10312. return (this.day() === 0 || this.day() === 6) ?
  10313. '[Último] dddd [às] LT' : // Saturday + Sunday
  10314. '[Última] dddd [às] LT'; // Monday - Friday
  10315. },
  10316. sameElse: 'L'
  10317. },
  10318. relativeTime : {
  10319. future : 'em %s',
  10320. past : '%s atrás',
  10321. s : 'poucos segundos',
  10322. ss : '%d segundos',
  10323. m : 'um minuto',
  10324. mm : '%d minutos',
  10325. h : 'uma hora',
  10326. hh : '%d horas',
  10327. d : 'um dia',
  10328. dd : '%d dias',
  10329. M : 'um mês',
  10330. MM : '%d meses',
  10331. y : 'um ano',
  10332. yy : '%d anos'
  10333. },
  10334. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10335. ordinal : '%dº'
  10336. });
  10337. //! moment.js locale configuration
  10338. //! locale : Portuguese [pt]
  10339. //! author : Jefferson : https://github.com/jalex79
  10340. hooks.defineLocale('pt', {
  10341. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  10342. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  10343. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  10344. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  10345. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  10346. weekdaysParseExact : true,
  10347. longDateFormat : {
  10348. LT : 'HH:mm',
  10349. LTS : 'HH:mm:ss',
  10350. L : 'DD/MM/YYYY',
  10351. LL : 'D [de] MMMM [de] YYYY',
  10352. LLL : 'D [de] MMMM [de] YYYY HH:mm',
  10353. LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  10354. },
  10355. calendar : {
  10356. sameDay: '[Hoje às] LT',
  10357. nextDay: '[Amanhã às] LT',
  10358. nextWeek: 'dddd [às] LT',
  10359. lastDay: '[Ontem às] LT',
  10360. lastWeek: function () {
  10361. return (this.day() === 0 || this.day() === 6) ?
  10362. '[Último] dddd [às] LT' : // Saturday + Sunday
  10363. '[Última] dddd [às] LT'; // Monday - Friday
  10364. },
  10365. sameElse: 'L'
  10366. },
  10367. relativeTime : {
  10368. future : 'em %s',
  10369. past : 'há %s',
  10370. s : 'segundos',
  10371. m : 'um minuto',
  10372. mm : '%d minutos',
  10373. h : 'uma hora',
  10374. hh : '%d horas',
  10375. d : 'um dia',
  10376. dd : '%d dias',
  10377. M : 'um mês',
  10378. MM : '%d meses',
  10379. y : 'um ano',
  10380. yy : '%d anos'
  10381. },
  10382. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10383. ordinal : '%dº',
  10384. week : {
  10385. dow : 1, // Monday is the first day of the week.
  10386. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10387. }
  10388. });
  10389. //! moment.js locale configuration
  10390. //! locale : Romanian [ro]
  10391. //! author : Vlad Gurdiga : https://github.com/gurdiga
  10392. //! author : Valentin Agachi : https://github.com/avaly
  10393. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  10394. var format = {
  10395. 'mm': 'minute',
  10396. 'hh': 'ore',
  10397. 'dd': 'zile',
  10398. 'MM': 'luni',
  10399. 'yy': 'ani'
  10400. },
  10401. separator = ' ';
  10402. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  10403. separator = ' de ';
  10404. }
  10405. return number + separator + format[key];
  10406. }
  10407. hooks.defineLocale('ro', {
  10408. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  10409. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  10410. monthsParseExact: true,
  10411. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  10412. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  10413. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  10414. longDateFormat : {
  10415. LT : 'H:mm',
  10416. LTS : 'H:mm:ss',
  10417. L : 'DD.MM.YYYY',
  10418. LL : 'D MMMM YYYY',
  10419. LLL : 'D MMMM YYYY H:mm',
  10420. LLLL : 'dddd, D MMMM YYYY H:mm'
  10421. },
  10422. calendar : {
  10423. sameDay: '[azi la] LT',
  10424. nextDay: '[mâine la] LT',
  10425. nextWeek: 'dddd [la] LT',
  10426. lastDay: '[ieri la] LT',
  10427. lastWeek: '[fosta] dddd [la] LT',
  10428. sameElse: 'L'
  10429. },
  10430. relativeTime : {
  10431. future : 'peste %s',
  10432. past : '%s în urmă',
  10433. s : 'câteva secunde',
  10434. m : 'un minut',
  10435. mm : relativeTimeWithPlural$2,
  10436. h : 'o oră',
  10437. hh : relativeTimeWithPlural$2,
  10438. d : 'o zi',
  10439. dd : relativeTimeWithPlural$2,
  10440. M : 'o lună',
  10441. MM : relativeTimeWithPlural$2,
  10442. y : 'un an',
  10443. yy : relativeTimeWithPlural$2
  10444. },
  10445. week : {
  10446. dow : 1, // Monday is the first day of the week.
  10447. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10448. }
  10449. });
  10450. //! moment.js locale configuration
  10451. //! locale : Russian [ru]
  10452. //! author : Viktorminator : https://github.com/Viktorminator
  10453. //! Author : Menelion Elensúle : https://github.com/Oire
  10454. //! author : Коренберг Марк : https://github.com/socketpair
  10455. function plural$4(word, num) {
  10456. var forms = word.split('_');
  10457. 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]);
  10458. }
  10459. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  10460. var format = {
  10461. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  10462. 'hh': 'час_часа_часов',
  10463. 'dd': 'день_дня_дней',
  10464. 'MM': 'месяц_месяца_месяцев',
  10465. 'yy': 'год_года_лет'
  10466. };
  10467. if (key === 'm') {
  10468. return withoutSuffix ? 'минута' : 'минуту';
  10469. }
  10470. else {
  10471. return number + ' ' + plural$4(format[key], +number);
  10472. }
  10473. }
  10474. var monthsParse$4 = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  10475. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  10476. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  10477. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  10478. hooks.defineLocale('ru', {
  10479. months : {
  10480. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  10481. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  10482. },
  10483. monthsShort : {
  10484. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  10485. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  10486. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  10487. },
  10488. weekdays : {
  10489. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  10490. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  10491. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  10492. },
  10493. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  10494. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  10495. monthsParse : monthsParse$4,
  10496. longMonthsParse : monthsParse$4,
  10497. shortMonthsParse : monthsParse$4,
  10498. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  10499. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  10500. // копия предыдущего
  10501. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  10502. // полные названия с падежами
  10503. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  10504. // Выражение, которое соотвествует только сокращённым формам
  10505. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  10506. longDateFormat : {
  10507. LT : 'HH:mm',
  10508. LTS : 'HH:mm:ss',
  10509. L : 'DD.MM.YYYY',
  10510. LL : 'D MMMM YYYY г.',
  10511. LLL : 'D MMMM YYYY г., HH:mm',
  10512. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  10513. },
  10514. calendar : {
  10515. sameDay: '[Сегодня в] LT',
  10516. nextDay: '[Завтра в] LT',
  10517. lastDay: '[Вчера в] LT',
  10518. nextWeek: function (now) {
  10519. if (now.week() !== this.week()) {
  10520. switch (this.day()) {
  10521. case 0:
  10522. return '[В следующее] dddd [в] LT';
  10523. case 1:
  10524. case 2:
  10525. case 4:
  10526. return '[В следующий] dddd [в] LT';
  10527. case 3:
  10528. case 5:
  10529. case 6:
  10530. return '[В следующую] dddd [в] LT';
  10531. }
  10532. } else {
  10533. if (this.day() === 2) {
  10534. return '[Во] dddd [в] LT';
  10535. } else {
  10536. return '[В] dddd [в] LT';
  10537. }
  10538. }
  10539. },
  10540. lastWeek: function (now) {
  10541. if (now.week() !== this.week()) {
  10542. switch (this.day()) {
  10543. case 0:
  10544. return '[В прошлое] dddd [в] LT';
  10545. case 1:
  10546. case 2:
  10547. case 4:
  10548. return '[В прошлый] dddd [в] LT';
  10549. case 3:
  10550. case 5:
  10551. case 6:
  10552. return '[В прошлую] dddd [в] LT';
  10553. }
  10554. } else {
  10555. if (this.day() === 2) {
  10556. return '[Во] dddd [в] LT';
  10557. } else {
  10558. return '[В] dddd [в] LT';
  10559. }
  10560. }
  10561. },
  10562. sameElse: 'L'
  10563. },
  10564. relativeTime : {
  10565. future : 'через %s',
  10566. past : '%s назад',
  10567. s : 'несколько секунд',
  10568. m : relativeTimeWithPlural$3,
  10569. mm : relativeTimeWithPlural$3,
  10570. h : 'час',
  10571. hh : relativeTimeWithPlural$3,
  10572. d : 'день',
  10573. dd : relativeTimeWithPlural$3,
  10574. M : 'месяц',
  10575. MM : relativeTimeWithPlural$3,
  10576. y : 'год',
  10577. yy : relativeTimeWithPlural$3
  10578. },
  10579. meridiemParse: /ночи|утра|дня|вечера/i,
  10580. isPM : function (input) {
  10581. return /^(дня|вечера)$/.test(input);
  10582. },
  10583. meridiem : function (hour, minute, isLower) {
  10584. if (hour < 4) {
  10585. return 'ночи';
  10586. } else if (hour < 12) {
  10587. return 'утра';
  10588. } else if (hour < 17) {
  10589. return 'дня';
  10590. } else {
  10591. return 'вечера';
  10592. }
  10593. },
  10594. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  10595. ordinal: function (number, period) {
  10596. switch (period) {
  10597. case 'M':
  10598. case 'd':
  10599. case 'DDD':
  10600. return number + '-й';
  10601. case 'D':
  10602. return number + '-го';
  10603. case 'w':
  10604. case 'W':
  10605. return number + '-я';
  10606. default:
  10607. return number;
  10608. }
  10609. },
  10610. week : {
  10611. dow : 1, // Monday is the first day of the week.
  10612. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10613. }
  10614. });
  10615. //! moment.js locale configuration
  10616. //! locale : Sindhi [sd]
  10617. //! author : Narain Sagar : https://github.com/narainsagar
  10618. var months$6 = [
  10619. 'جنوري',
  10620. 'فيبروري',
  10621. 'مارچ',
  10622. 'اپريل',
  10623. 'مئي',
  10624. 'جون',
  10625. 'جولاءِ',
  10626. 'آگسٽ',
  10627. 'سيپٽمبر',
  10628. 'آڪٽوبر',
  10629. 'نومبر',
  10630. 'ڊسمبر'
  10631. ];
  10632. var days$1 = [
  10633. 'آچر',
  10634. 'سومر',
  10635. 'اڱارو',
  10636. 'اربع',
  10637. 'خميس',
  10638. 'جمع',
  10639. 'ڇنڇر'
  10640. ];
  10641. hooks.defineLocale('sd', {
  10642. months : months$6,
  10643. monthsShort : months$6,
  10644. weekdays : days$1,
  10645. weekdaysShort : days$1,
  10646. weekdaysMin : days$1,
  10647. longDateFormat : {
  10648. LT : 'HH:mm',
  10649. LTS : 'HH:mm:ss',
  10650. L : 'DD/MM/YYYY',
  10651. LL : 'D MMMM YYYY',
  10652. LLL : 'D MMMM YYYY HH:mm',
  10653. LLLL : 'dddd، D MMMM YYYY HH:mm'
  10654. },
  10655. meridiemParse: /صبح|شام/,
  10656. isPM : function (input) {
  10657. return 'شام' === input;
  10658. },
  10659. meridiem : function (hour, minute, isLower) {
  10660. if (hour < 12) {
  10661. return 'صبح';
  10662. }
  10663. return 'شام';
  10664. },
  10665. calendar : {
  10666. sameDay : '[اڄ] LT',
  10667. nextDay : '[سڀاڻي] LT',
  10668. nextWeek : 'dddd [اڳين هفتي تي] LT',
  10669. lastDay : '[ڪالهه] LT',
  10670. lastWeek : '[گزريل هفتي] dddd [تي] LT',
  10671. sameElse : 'L'
  10672. },
  10673. relativeTime : {
  10674. future : '%s پوء',
  10675. past : '%s اڳ',
  10676. s : 'چند سيڪنڊ',
  10677. m : 'هڪ منٽ',
  10678. mm : '%d منٽ',
  10679. h : 'هڪ ڪلاڪ',
  10680. hh : '%d ڪلاڪ',
  10681. d : 'هڪ ڏينهن',
  10682. dd : '%d ڏينهن',
  10683. M : 'هڪ مهينو',
  10684. MM : '%d مهينا',
  10685. y : 'هڪ سال',
  10686. yy : '%d سال'
  10687. },
  10688. preparse: function (string) {
  10689. return string.replace(/،/g, ',');
  10690. },
  10691. postformat: function (string) {
  10692. return string.replace(/,/g, '،');
  10693. },
  10694. week : {
  10695. dow : 1, // Monday is the first day of the week.
  10696. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10697. }
  10698. });
  10699. //! moment.js locale configuration
  10700. //! locale : Northern Sami [se]
  10701. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  10702. hooks.defineLocale('se', {
  10703. 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('_'),
  10704. monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  10705. weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  10706. weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  10707. weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
  10708. longDateFormat : {
  10709. LT : 'HH:mm',
  10710. LTS : 'HH:mm:ss',
  10711. L : 'DD.MM.YYYY',
  10712. LL : 'MMMM D. [b.] YYYY',
  10713. LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
  10714. LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  10715. },
  10716. calendar : {
  10717. sameDay: '[otne ti] LT',
  10718. nextDay: '[ihttin ti] LT',
  10719. nextWeek: 'dddd [ti] LT',
  10720. lastDay: '[ikte ti] LT',
  10721. lastWeek: '[ovddit] dddd [ti] LT',
  10722. sameElse: 'L'
  10723. },
  10724. relativeTime : {
  10725. future : '%s geažes',
  10726. past : 'maŋit %s',
  10727. s : 'moadde sekunddat',
  10728. m : 'okta minuhta',
  10729. mm : '%d minuhtat',
  10730. h : 'okta diimmu',
  10731. hh : '%d diimmut',
  10732. d : 'okta beaivi',
  10733. dd : '%d beaivvit',
  10734. M : 'okta mánnu',
  10735. MM : '%d mánut',
  10736. y : 'okta jahki',
  10737. yy : '%d jagit'
  10738. },
  10739. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10740. ordinal : '%d.',
  10741. week : {
  10742. dow : 1, // Monday is the first day of the week.
  10743. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10744. }
  10745. });
  10746. //! moment.js locale configuration
  10747. //! locale : Sinhalese [si]
  10748. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  10749. /*jshint -W100*/
  10750. hooks.defineLocale('si', {
  10751. months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  10752. monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  10753. weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  10754. weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  10755. weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  10756. weekdaysParseExact : true,
  10757. longDateFormat : {
  10758. LT : 'a h:mm',
  10759. LTS : 'a h:mm:ss',
  10760. L : 'YYYY/MM/DD',
  10761. LL : 'YYYY MMMM D',
  10762. LLL : 'YYYY MMMM D, a h:mm',
  10763. LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  10764. },
  10765. calendar : {
  10766. sameDay : '[අද] LT[ට]',
  10767. nextDay : '[හෙට] LT[ට]',
  10768. nextWeek : 'dddd LT[ට]',
  10769. lastDay : '[ඊයේ] LT[ට]',
  10770. lastWeek : '[පසුගිය] dddd LT[ට]',
  10771. sameElse : 'L'
  10772. },
  10773. relativeTime : {
  10774. future : '%sකින්',
  10775. past : '%sකට පෙර',
  10776. s : 'තත්පර කිහිපය',
  10777. m : 'මිනිත්තුව',
  10778. mm : 'මිනිත්තු %d',
  10779. h : 'පැය',
  10780. hh : 'පැය %d',
  10781. d : 'දිනය',
  10782. dd : 'දින %d',
  10783. M : 'මාසය',
  10784. MM : 'මාස %d',
  10785. y : 'වසර',
  10786. yy : 'වසර %d'
  10787. },
  10788. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  10789. ordinal : function (number) {
  10790. return number + ' වැනි';
  10791. },
  10792. meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  10793. isPM : function (input) {
  10794. return input === 'ප.ව.' || input === 'පස් වරු';
  10795. },
  10796. meridiem : function (hours, minutes, isLower) {
  10797. if (hours > 11) {
  10798. return isLower ? 'ප.ව.' : 'පස් වරු';
  10799. } else {
  10800. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  10801. }
  10802. }
  10803. });
  10804. //! moment.js locale configuration
  10805. //! locale : Slovak [sk]
  10806. //! author : Martin Minka : https://github.com/k2s
  10807. //! based on work of petrbela : https://github.com/petrbela
  10808. var months$7 = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
  10809. var monthsShort$5 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  10810. function plural$5(n) {
  10811. return (n > 1) && (n < 5);
  10812. }
  10813. function translate$8(number, withoutSuffix, key, isFuture) {
  10814. var result = number + ' ';
  10815. switch (key) {
  10816. case 's': // a few seconds / in a few seconds / a few seconds ago
  10817. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  10818. case 'm': // a minute / in a minute / a minute ago
  10819. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  10820. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  10821. if (withoutSuffix || isFuture) {
  10822. return result + (plural$5(number) ? 'minúty' : 'minút');
  10823. } else {
  10824. return result + 'minútami';
  10825. }
  10826. break;
  10827. case 'h': // an hour / in an hour / an hour ago
  10828. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  10829. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  10830. if (withoutSuffix || isFuture) {
  10831. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  10832. } else {
  10833. return result + 'hodinami';
  10834. }
  10835. break;
  10836. case 'd': // a day / in a day / a day ago
  10837. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  10838. case 'dd': // 9 days / in 9 days / 9 days ago
  10839. if (withoutSuffix || isFuture) {
  10840. return result + (plural$5(number) ? 'dni' : 'dní');
  10841. } else {
  10842. return result + 'dňami';
  10843. }
  10844. break;
  10845. case 'M': // a month / in a month / a month ago
  10846. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  10847. case 'MM': // 9 months / in 9 months / 9 months ago
  10848. if (withoutSuffix || isFuture) {
  10849. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  10850. } else {
  10851. return result + 'mesiacmi';
  10852. }
  10853. break;
  10854. case 'y': // a year / in a year / a year ago
  10855. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  10856. case 'yy': // 9 years / in 9 years / 9 years ago
  10857. if (withoutSuffix || isFuture) {
  10858. return result + (plural$5(number) ? 'roky' : 'rokov');
  10859. } else {
  10860. return result + 'rokmi';
  10861. }
  10862. break;
  10863. }
  10864. }
  10865. hooks.defineLocale('sk', {
  10866. months : months$7,
  10867. monthsShort : monthsShort$5,
  10868. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  10869. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  10870. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  10871. longDateFormat : {
  10872. LT: 'H:mm',
  10873. LTS : 'H:mm:ss',
  10874. L : 'DD.MM.YYYY',
  10875. LL : 'D. MMMM YYYY',
  10876. LLL : 'D. MMMM YYYY H:mm',
  10877. LLLL : 'dddd D. MMMM YYYY H:mm'
  10878. },
  10879. calendar : {
  10880. sameDay: '[dnes o] LT',
  10881. nextDay: '[zajtra o] LT',
  10882. nextWeek: function () {
  10883. switch (this.day()) {
  10884. case 0:
  10885. return '[v nedeľu o] LT';
  10886. case 1:
  10887. case 2:
  10888. return '[v] dddd [o] LT';
  10889. case 3:
  10890. return '[v stredu o] LT';
  10891. case 4:
  10892. return '[vo štvrtok o] LT';
  10893. case 5:
  10894. return '[v piatok o] LT';
  10895. case 6:
  10896. return '[v sobotu o] LT';
  10897. }
  10898. },
  10899. lastDay: '[včera o] LT',
  10900. lastWeek: function () {
  10901. switch (this.day()) {
  10902. case 0:
  10903. return '[minulú nedeľu o] LT';
  10904. case 1:
  10905. case 2:
  10906. return '[minulý] dddd [o] LT';
  10907. case 3:
  10908. return '[minulú stredu o] LT';
  10909. case 4:
  10910. case 5:
  10911. return '[minulý] dddd [o] LT';
  10912. case 6:
  10913. return '[minulú sobotu o] LT';
  10914. }
  10915. },
  10916. sameElse: 'L'
  10917. },
  10918. relativeTime : {
  10919. future : 'za %s',
  10920. past : 'pred %s',
  10921. s : translate$8,
  10922. m : translate$8,
  10923. mm : translate$8,
  10924. h : translate$8,
  10925. hh : translate$8,
  10926. d : translate$8,
  10927. dd : translate$8,
  10928. M : translate$8,
  10929. MM : translate$8,
  10930. y : translate$8,
  10931. yy : translate$8
  10932. },
  10933. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10934. ordinal : '%d.',
  10935. week : {
  10936. dow : 1, // Monday is the first day of the week.
  10937. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10938. }
  10939. });
  10940. //! moment.js locale configuration
  10941. //! locale : Slovenian [sl]
  10942. //! author : Robert Sedovšek : https://github.com/sedovsek
  10943. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  10944. var result = number + ' ';
  10945. switch (key) {
  10946. case 's':
  10947. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  10948. case 'm':
  10949. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  10950. case 'mm':
  10951. if (number === 1) {
  10952. result += withoutSuffix ? 'minuta' : 'minuto';
  10953. } else if (number === 2) {
  10954. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  10955. } else if (number < 5) {
  10956. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  10957. } else {
  10958. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  10959. }
  10960. return result;
  10961. case 'h':
  10962. return withoutSuffix ? 'ena ura' : 'eno uro';
  10963. case 'hh':
  10964. if (number === 1) {
  10965. result += withoutSuffix ? 'ura' : 'uro';
  10966. } else if (number === 2) {
  10967. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  10968. } else if (number < 5) {
  10969. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  10970. } else {
  10971. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  10972. }
  10973. return result;
  10974. case 'd':
  10975. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  10976. case 'dd':
  10977. if (number === 1) {
  10978. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  10979. } else if (number === 2) {
  10980. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  10981. } else {
  10982. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  10983. }
  10984. return result;
  10985. case 'M':
  10986. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  10987. case 'MM':
  10988. if (number === 1) {
  10989. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  10990. } else if (number === 2) {
  10991. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  10992. } else if (number < 5) {
  10993. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  10994. } else {
  10995. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  10996. }
  10997. return result;
  10998. case 'y':
  10999. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  11000. case 'yy':
  11001. if (number === 1) {
  11002. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  11003. } else if (number === 2) {
  11004. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  11005. } else if (number < 5) {
  11006. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  11007. } else {
  11008. result += withoutSuffix || isFuture ? 'let' : 'leti';
  11009. }
  11010. return result;
  11011. }
  11012. }
  11013. hooks.defineLocale('sl', {
  11014. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  11015. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  11016. monthsParseExact: true,
  11017. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  11018. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  11019. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  11020. weekdaysParseExact : true,
  11021. longDateFormat : {
  11022. LT : 'H:mm',
  11023. LTS : 'H:mm:ss',
  11024. L : 'DD.MM.YYYY',
  11025. LL : 'D. MMMM YYYY',
  11026. LLL : 'D. MMMM YYYY H:mm',
  11027. LLLL : 'dddd, D. MMMM YYYY H:mm'
  11028. },
  11029. calendar : {
  11030. sameDay : '[danes ob] LT',
  11031. nextDay : '[jutri ob] LT',
  11032. nextWeek : function () {
  11033. switch (this.day()) {
  11034. case 0:
  11035. return '[v] [nedeljo] [ob] LT';
  11036. case 3:
  11037. return '[v] [sredo] [ob] LT';
  11038. case 6:
  11039. return '[v] [soboto] [ob] LT';
  11040. case 1:
  11041. case 2:
  11042. case 4:
  11043. case 5:
  11044. return '[v] dddd [ob] LT';
  11045. }
  11046. },
  11047. lastDay : '[včeraj ob] LT',
  11048. lastWeek : function () {
  11049. switch (this.day()) {
  11050. case 0:
  11051. return '[prejšnjo] [nedeljo] [ob] LT';
  11052. case 3:
  11053. return '[prejšnjo] [sredo] [ob] LT';
  11054. case 6:
  11055. return '[prejšnjo] [soboto] [ob] LT';
  11056. case 1:
  11057. case 2:
  11058. case 4:
  11059. case 5:
  11060. return '[prejšnji] dddd [ob] LT';
  11061. }
  11062. },
  11063. sameElse : 'L'
  11064. },
  11065. relativeTime : {
  11066. future : 'čez %s',
  11067. past : 'pred %s',
  11068. s : processRelativeTime$6,
  11069. m : processRelativeTime$6,
  11070. mm : processRelativeTime$6,
  11071. h : processRelativeTime$6,
  11072. hh : processRelativeTime$6,
  11073. d : processRelativeTime$6,
  11074. dd : processRelativeTime$6,
  11075. M : processRelativeTime$6,
  11076. MM : processRelativeTime$6,
  11077. y : processRelativeTime$6,
  11078. yy : processRelativeTime$6
  11079. },
  11080. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11081. ordinal : '%d.',
  11082. week : {
  11083. dow : 1, // Monday is the first day of the week.
  11084. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11085. }
  11086. });
  11087. //! moment.js locale configuration
  11088. //! locale : Albanian [sq]
  11089. //! author : Flakërim Ismani : https://github.com/flakerimi
  11090. //! author : Menelion Elensúle : https://github.com/Oire
  11091. //! author : Oerd Cukalla : https://github.com/oerd
  11092. hooks.defineLocale('sq', {
  11093. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  11094. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  11095. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  11096. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  11097. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  11098. weekdaysParseExact : true,
  11099. meridiemParse: /PD|MD/,
  11100. isPM: function (input) {
  11101. return input.charAt(0) === 'M';
  11102. },
  11103. meridiem : function (hours, minutes, isLower) {
  11104. return hours < 12 ? 'PD' : 'MD';
  11105. },
  11106. longDateFormat : {
  11107. LT : 'HH:mm',
  11108. LTS : 'HH:mm:ss',
  11109. L : 'DD/MM/YYYY',
  11110. LL : 'D MMMM YYYY',
  11111. LLL : 'D MMMM YYYY HH:mm',
  11112. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11113. },
  11114. calendar : {
  11115. sameDay : '[Sot në] LT',
  11116. nextDay : '[Nesër në] LT',
  11117. nextWeek : 'dddd [në] LT',
  11118. lastDay : '[Dje në] LT',
  11119. lastWeek : 'dddd [e kaluar në] LT',
  11120. sameElse : 'L'
  11121. },
  11122. relativeTime : {
  11123. future : 'në %s',
  11124. past : '%s më parë',
  11125. s : 'disa sekonda',
  11126. m : 'një minutë',
  11127. mm : '%d minuta',
  11128. h : 'një orë',
  11129. hh : '%d orë',
  11130. d : 'një ditë',
  11131. dd : '%d ditë',
  11132. M : 'një muaj',
  11133. MM : '%d muaj',
  11134. y : 'një vit',
  11135. yy : '%d vite'
  11136. },
  11137. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11138. ordinal : '%d.',
  11139. week : {
  11140. dow : 1, // Monday is the first day of the week.
  11141. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11142. }
  11143. });
  11144. //! moment.js locale configuration
  11145. //! locale : Serbian Cyrillic [sr-cyrl]
  11146. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  11147. var translator$1 = {
  11148. words: { //Different grammatical cases
  11149. m: ['један минут', 'једне минуте'],
  11150. mm: ['минут', 'минуте', 'минута'],
  11151. h: ['један сат', 'једног сата'],
  11152. hh: ['сат', 'сата', 'сати'],
  11153. dd: ['дан', 'дана', 'дана'],
  11154. MM: ['месец', 'месеца', 'месеци'],
  11155. yy: ['година', 'године', 'година']
  11156. },
  11157. correctGrammaticalCase: function (number, wordKey) {
  11158. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  11159. },
  11160. translate: function (number, withoutSuffix, key) {
  11161. var wordKey = translator$1.words[key];
  11162. if (key.length === 1) {
  11163. return withoutSuffix ? wordKey[0] : wordKey[1];
  11164. } else {
  11165. return number + ' ' + translator$1.correctGrammaticalCase(number, wordKey);
  11166. }
  11167. }
  11168. };
  11169. hooks.defineLocale('sr-cyrl', {
  11170. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  11171. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  11172. monthsParseExact: true,
  11173. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  11174. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  11175. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  11176. weekdaysParseExact : true,
  11177. longDateFormat: {
  11178. LT: 'H:mm',
  11179. LTS : 'H:mm:ss',
  11180. L: 'DD.MM.YYYY',
  11181. LL: 'D. MMMM YYYY',
  11182. LLL: 'D. MMMM YYYY H:mm',
  11183. LLLL: 'dddd, D. MMMM YYYY H:mm'
  11184. },
  11185. calendar: {
  11186. sameDay: '[данас у] LT',
  11187. nextDay: '[сутра у] LT',
  11188. nextWeek: function () {
  11189. switch (this.day()) {
  11190. case 0:
  11191. return '[у] [недељу] [у] LT';
  11192. case 3:
  11193. return '[у] [среду] [у] LT';
  11194. case 6:
  11195. return '[у] [суботу] [у] LT';
  11196. case 1:
  11197. case 2:
  11198. case 4:
  11199. case 5:
  11200. return '[у] dddd [у] LT';
  11201. }
  11202. },
  11203. lastDay : '[јуче у] LT',
  11204. lastWeek : function () {
  11205. var lastWeekDays = [
  11206. '[прошле] [недеље] [у] LT',
  11207. '[прошлог] [понедељка] [у] LT',
  11208. '[прошлог] [уторка] [у] LT',
  11209. '[прошле] [среде] [у] LT',
  11210. '[прошлог] [четвртка] [у] LT',
  11211. '[прошлог] [петка] [у] LT',
  11212. '[прошле] [суботе] [у] LT'
  11213. ];
  11214. return lastWeekDays[this.day()];
  11215. },
  11216. sameElse : 'L'
  11217. },
  11218. relativeTime : {
  11219. future : 'за %s',
  11220. past : 'пре %s',
  11221. s : 'неколико секунди',
  11222. m : translator$1.translate,
  11223. mm : translator$1.translate,
  11224. h : translator$1.translate,
  11225. hh : translator$1.translate,
  11226. d : 'дан',
  11227. dd : translator$1.translate,
  11228. M : 'месец',
  11229. MM : translator$1.translate,
  11230. y : 'годину',
  11231. yy : translator$1.translate
  11232. },
  11233. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11234. ordinal : '%d.',
  11235. week : {
  11236. dow : 1, // Monday is the first day of the week.
  11237. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11238. }
  11239. });
  11240. //! moment.js locale configuration
  11241. //! locale : Serbian [sr]
  11242. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  11243. var translator$2 = {
  11244. words: { //Different grammatical cases
  11245. m: ['jedan minut', 'jedne minute'],
  11246. mm: ['minut', 'minute', 'minuta'],
  11247. h: ['jedan sat', 'jednog sata'],
  11248. hh: ['sat', 'sata', 'sati'],
  11249. dd: ['dan', 'dana', 'dana'],
  11250. MM: ['mesec', 'meseca', 'meseci'],
  11251. yy: ['godina', 'godine', 'godina']
  11252. },
  11253. correctGrammaticalCase: function (number, wordKey) {
  11254. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  11255. },
  11256. translate: function (number, withoutSuffix, key) {
  11257. var wordKey = translator$2.words[key];
  11258. if (key.length === 1) {
  11259. return withoutSuffix ? wordKey[0] : wordKey[1];
  11260. } else {
  11261. return number + ' ' + translator$2.correctGrammaticalCase(number, wordKey);
  11262. }
  11263. }
  11264. };
  11265. hooks.defineLocale('sr', {
  11266. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  11267. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  11268. monthsParseExact: true,
  11269. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  11270. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  11271. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  11272. weekdaysParseExact : true,
  11273. longDateFormat: {
  11274. LT: 'H:mm',
  11275. LTS : 'H:mm:ss',
  11276. L: 'DD.MM.YYYY',
  11277. LL: 'D. MMMM YYYY',
  11278. LLL: 'D. MMMM YYYY H:mm',
  11279. LLLL: 'dddd, D. MMMM YYYY H:mm'
  11280. },
  11281. calendar: {
  11282. sameDay: '[danas u] LT',
  11283. nextDay: '[sutra u] LT',
  11284. nextWeek: function () {
  11285. switch (this.day()) {
  11286. case 0:
  11287. return '[u] [nedelju] [u] LT';
  11288. case 3:
  11289. return '[u] [sredu] [u] LT';
  11290. case 6:
  11291. return '[u] [subotu] [u] LT';
  11292. case 1:
  11293. case 2:
  11294. case 4:
  11295. case 5:
  11296. return '[u] dddd [u] LT';
  11297. }
  11298. },
  11299. lastDay : '[juče u] LT',
  11300. lastWeek : function () {
  11301. var lastWeekDays = [
  11302. '[prošle] [nedelje] [u] LT',
  11303. '[prošlog] [ponedeljka] [u] LT',
  11304. '[prošlog] [utorka] [u] LT',
  11305. '[prošle] [srede] [u] LT',
  11306. '[prošlog] [četvrtka] [u] LT',
  11307. '[prošlog] [petka] [u] LT',
  11308. '[prošle] [subote] [u] LT'
  11309. ];
  11310. return lastWeekDays[this.day()];
  11311. },
  11312. sameElse : 'L'
  11313. },
  11314. relativeTime : {
  11315. future : 'za %s',
  11316. past : 'pre %s',
  11317. s : 'nekoliko sekundi',
  11318. m : translator$2.translate,
  11319. mm : translator$2.translate,
  11320. h : translator$2.translate,
  11321. hh : translator$2.translate,
  11322. d : 'dan',
  11323. dd : translator$2.translate,
  11324. M : 'mesec',
  11325. MM : translator$2.translate,
  11326. y : 'godinu',
  11327. yy : translator$2.translate
  11328. },
  11329. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11330. ordinal : '%d.',
  11331. week : {
  11332. dow : 1, // Monday is the first day of the week.
  11333. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11334. }
  11335. });
  11336. //! moment.js locale configuration
  11337. //! locale : siSwati [ss]
  11338. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  11339. hooks.defineLocale('ss', {
  11340. months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  11341. monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  11342. weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  11343. weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  11344. weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  11345. weekdaysParseExact : true,
  11346. longDateFormat : {
  11347. LT : 'h:mm A',
  11348. LTS : 'h:mm:ss A',
  11349. L : 'DD/MM/YYYY',
  11350. LL : 'D MMMM YYYY',
  11351. LLL : 'D MMMM YYYY h:mm A',
  11352. LLLL : 'dddd, D MMMM YYYY h:mm A'
  11353. },
  11354. calendar : {
  11355. sameDay : '[Namuhla nga] LT',
  11356. nextDay : '[Kusasa nga] LT',
  11357. nextWeek : 'dddd [nga] LT',
  11358. lastDay : '[Itolo nga] LT',
  11359. lastWeek : 'dddd [leliphelile] [nga] LT',
  11360. sameElse : 'L'
  11361. },
  11362. relativeTime : {
  11363. future : 'nga %s',
  11364. past : 'wenteka nga %s',
  11365. s : 'emizuzwana lomcane',
  11366. m : 'umzuzu',
  11367. mm : '%d emizuzu',
  11368. h : 'lihora',
  11369. hh : '%d emahora',
  11370. d : 'lilanga',
  11371. dd : '%d emalanga',
  11372. M : 'inyanga',
  11373. MM : '%d tinyanga',
  11374. y : 'umnyaka',
  11375. yy : '%d iminyaka'
  11376. },
  11377. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  11378. meridiem : function (hours, minutes, isLower) {
  11379. if (hours < 11) {
  11380. return 'ekuseni';
  11381. } else if (hours < 15) {
  11382. return 'emini';
  11383. } else if (hours < 19) {
  11384. return 'entsambama';
  11385. } else {
  11386. return 'ebusuku';
  11387. }
  11388. },
  11389. meridiemHour : function (hour, meridiem) {
  11390. if (hour === 12) {
  11391. hour = 0;
  11392. }
  11393. if (meridiem === 'ekuseni') {
  11394. return hour;
  11395. } else if (meridiem === 'emini') {
  11396. return hour >= 11 ? hour : hour + 12;
  11397. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  11398. if (hour === 0) {
  11399. return 0;
  11400. }
  11401. return hour + 12;
  11402. }
  11403. },
  11404. dayOfMonthOrdinalParse: /\d{1,2}/,
  11405. ordinal : '%d',
  11406. week : {
  11407. dow : 1, // Monday is the first day of the week.
  11408. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11409. }
  11410. });
  11411. //! moment.js locale configuration
  11412. //! locale : Swedish [sv]
  11413. //! author : Jens Alm : https://github.com/ulmus
  11414. hooks.defineLocale('sv', {
  11415. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  11416. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  11417. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  11418. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  11419. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  11420. longDateFormat : {
  11421. LT : 'HH:mm',
  11422. LTS : 'HH:mm:ss',
  11423. L : 'YYYY-MM-DD',
  11424. LL : 'D MMMM YYYY',
  11425. LLL : 'D MMMM YYYY [kl.] HH:mm',
  11426. LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
  11427. lll : 'D MMM YYYY HH:mm',
  11428. llll : 'ddd D MMM YYYY HH:mm'
  11429. },
  11430. calendar : {
  11431. sameDay: '[Idag] LT',
  11432. nextDay: '[Imorgon] LT',
  11433. lastDay: '[Igår] LT',
  11434. nextWeek: '[På] dddd LT',
  11435. lastWeek: '[I] dddd[s] LT',
  11436. sameElse: 'L'
  11437. },
  11438. relativeTime : {
  11439. future : 'om %s',
  11440. past : 'för %s sedan',
  11441. s : 'några sekunder',
  11442. m : 'en minut',
  11443. mm : '%d minuter',
  11444. h : 'en timme',
  11445. hh : '%d timmar',
  11446. d : 'en dag',
  11447. dd : '%d dagar',
  11448. M : 'en månad',
  11449. MM : '%d månader',
  11450. y : 'ett år',
  11451. yy : '%d år'
  11452. },
  11453. dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
  11454. ordinal : function (number) {
  11455. var b = number % 10,
  11456. output = (~~(number % 100 / 10) === 1) ? 'e' :
  11457. (b === 1) ? 'a' :
  11458. (b === 2) ? 'a' :
  11459. (b === 3) ? 'e' : 'e';
  11460. return number + output;
  11461. },
  11462. week : {
  11463. dow : 1, // Monday is the first day of the week.
  11464. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11465. }
  11466. });
  11467. //! moment.js locale configuration
  11468. //! locale : Swahili [sw]
  11469. //! author : Fahad Kassim : https://github.com/fadsel
  11470. hooks.defineLocale('sw', {
  11471. months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  11472. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  11473. weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  11474. weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  11475. weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  11476. weekdaysParseExact : true,
  11477. longDateFormat : {
  11478. LT : 'HH:mm',
  11479. LTS : 'HH:mm:ss',
  11480. L : 'DD.MM.YYYY',
  11481. LL : 'D MMMM YYYY',
  11482. LLL : 'D MMMM YYYY HH:mm',
  11483. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11484. },
  11485. calendar : {
  11486. sameDay : '[leo saa] LT',
  11487. nextDay : '[kesho saa] LT',
  11488. nextWeek : '[wiki ijayo] dddd [saat] LT',
  11489. lastDay : '[jana] LT',
  11490. lastWeek : '[wiki iliyopita] dddd [saat] LT',
  11491. sameElse : 'L'
  11492. },
  11493. relativeTime : {
  11494. future : '%s baadaye',
  11495. past : 'tokea %s',
  11496. s : 'hivi punde',
  11497. m : 'dakika moja',
  11498. mm : 'dakika %d',
  11499. h : 'saa limoja',
  11500. hh : 'masaa %d',
  11501. d : 'siku moja',
  11502. dd : 'masiku %d',
  11503. M : 'mwezi mmoja',
  11504. MM : 'miezi %d',
  11505. y : 'mwaka mmoja',
  11506. yy : 'miaka %d'
  11507. },
  11508. week : {
  11509. dow : 1, // Monday is the first day of the week.
  11510. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11511. }
  11512. });
  11513. //! moment.js locale configuration
  11514. //! locale : Tamil [ta]
  11515. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  11516. var symbolMap$13 = {
  11517. '1': '௧',
  11518. '2': '௨',
  11519. '3': '௩',
  11520. '4': '௪',
  11521. '5': '௫',
  11522. '6': '௬',
  11523. '7': '௭',
  11524. '8': '௮',
  11525. '9': '௯',
  11526. '0': '௦'
  11527. };
  11528. var numberMap$12 = {
  11529. '௧': '1',
  11530. '௨': '2',
  11531. '௩': '3',
  11532. '௪': '4',
  11533. '௫': '5',
  11534. '௬': '6',
  11535. '௭': '7',
  11536. '௮': '8',
  11537. '௯': '9',
  11538. '௦': '0'
  11539. };
  11540. hooks.defineLocale('ta', {
  11541. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  11542. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  11543. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  11544. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  11545. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  11546. longDateFormat : {
  11547. LT : 'HH:mm',
  11548. LTS : 'HH:mm:ss',
  11549. L : 'DD/MM/YYYY',
  11550. LL : 'D MMMM YYYY',
  11551. LLL : 'D MMMM YYYY, HH:mm',
  11552. LLLL : 'dddd, D MMMM YYYY, HH:mm'
  11553. },
  11554. calendar : {
  11555. sameDay : '[இன்று] LT',
  11556. nextDay : '[நாளை] LT',
  11557. nextWeek : 'dddd, LT',
  11558. lastDay : '[நேற்று] LT',
  11559. lastWeek : '[கடந்த வாரம்] dddd, LT',
  11560. sameElse : 'L'
  11561. },
  11562. relativeTime : {
  11563. future : '%s இல்',
  11564. past : '%s முன்',
  11565. s : 'ஒரு சில விநாடிகள்',
  11566. m : 'ஒரு நிமிடம்',
  11567. mm : '%d நிமிடங்கள்',
  11568. h : 'ஒரு மணி நேரம்',
  11569. hh : '%d மணி நேரம்',
  11570. d : 'ஒரு நாள்',
  11571. dd : '%d நாட்கள்',
  11572. M : 'ஒரு மாதம்',
  11573. MM : '%d மாதங்கள்',
  11574. y : 'ஒரு வருடம்',
  11575. yy : '%d ஆண்டுகள்'
  11576. },
  11577. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  11578. ordinal : function (number) {
  11579. return number + 'வது';
  11580. },
  11581. preparse: function (string) {
  11582. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  11583. return numberMap$12[match];
  11584. });
  11585. },
  11586. postformat: function (string) {
  11587. return string.replace(/\d/g, function (match) {
  11588. return symbolMap$13[match];
  11589. });
  11590. },
  11591. // refer http://ta.wikipedia.org/s/1er1
  11592. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  11593. meridiem : function (hour, minute, isLower) {
  11594. if (hour < 2) {
  11595. return ' யாமம்';
  11596. } else if (hour < 6) {
  11597. return ' வைகறை'; // வைகறை
  11598. } else if (hour < 10) {
  11599. return ' காலை'; // காலை
  11600. } else if (hour < 14) {
  11601. return ' நண்பகல்'; // நண்பகல்
  11602. } else if (hour < 18) {
  11603. return ' எற்பாடு'; // எற்பாடு
  11604. } else if (hour < 22) {
  11605. return ' மாலை'; // மாலை
  11606. } else {
  11607. return ' யாமம்';
  11608. }
  11609. },
  11610. meridiemHour : function (hour, meridiem) {
  11611. if (hour === 12) {
  11612. hour = 0;
  11613. }
  11614. if (meridiem === 'யாமம்') {
  11615. return hour < 2 ? hour : hour + 12;
  11616. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  11617. return hour;
  11618. } else if (meridiem === 'நண்பகல்') {
  11619. return hour >= 10 ? hour : hour + 12;
  11620. } else {
  11621. return hour + 12;
  11622. }
  11623. },
  11624. week : {
  11625. dow : 0, // Sunday is the first day of the week.
  11626. doy : 6 // The week that contains Jan 1st is the first week of the year.
  11627. }
  11628. });
  11629. //! moment.js locale configuration
  11630. //! locale : Telugu [te]
  11631. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  11632. hooks.defineLocale('te', {
  11633. months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  11634. monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  11635. monthsParseExact : true,
  11636. weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  11637. weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  11638. weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  11639. longDateFormat : {
  11640. LT : 'A h:mm',
  11641. LTS : 'A h:mm:ss',
  11642. L : 'DD/MM/YYYY',
  11643. LL : 'D MMMM YYYY',
  11644. LLL : 'D MMMM YYYY, A h:mm',
  11645. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  11646. },
  11647. calendar : {
  11648. sameDay : '[నేడు] LT',
  11649. nextDay : '[రేపు] LT',
  11650. nextWeek : 'dddd, LT',
  11651. lastDay : '[నిన్న] LT',
  11652. lastWeek : '[గత] dddd, LT',
  11653. sameElse : 'L'
  11654. },
  11655. relativeTime : {
  11656. future : '%s లో',
  11657. past : '%s క్రితం',
  11658. s : 'కొన్ని క్షణాలు',
  11659. m : 'ఒక నిమిషం',
  11660. mm : '%d నిమిషాలు',
  11661. h : 'ఒక గంట',
  11662. hh : '%d గంటలు',
  11663. d : 'ఒక రోజు',
  11664. dd : '%d రోజులు',
  11665. M : 'ఒక నెల',
  11666. MM : '%d నెలలు',
  11667. y : 'ఒక సంవత్సరం',
  11668. yy : '%d సంవత్సరాలు'
  11669. },
  11670. dayOfMonthOrdinalParse : /\d{1,2}వ/,
  11671. ordinal : '%dవ',
  11672. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  11673. meridiemHour : function (hour, meridiem) {
  11674. if (hour === 12) {
  11675. hour = 0;
  11676. }
  11677. if (meridiem === 'రాత్రి') {
  11678. return hour < 4 ? hour : hour + 12;
  11679. } else if (meridiem === 'ఉదయం') {
  11680. return hour;
  11681. } else if (meridiem === 'మధ్యాహ్నం') {
  11682. return hour >= 10 ? hour : hour + 12;
  11683. } else if (meridiem === 'సాయంత్రం') {
  11684. return hour + 12;
  11685. }
  11686. },
  11687. meridiem : function (hour, minute, isLower) {
  11688. if (hour < 4) {
  11689. return 'రాత్రి';
  11690. } else if (hour < 10) {
  11691. return 'ఉదయం';
  11692. } else if (hour < 17) {
  11693. return 'మధ్యాహ్నం';
  11694. } else if (hour < 20) {
  11695. return 'సాయంత్రం';
  11696. } else {
  11697. return 'రాత్రి';
  11698. }
  11699. },
  11700. week : {
  11701. dow : 0, // Sunday is the first day of the week.
  11702. doy : 6 // The week that contains Jan 1st is the first week of the year.
  11703. }
  11704. });
  11705. //! moment.js locale configuration
  11706. //! locale : Tetun Dili (East Timor) [tet]
  11707. //! author : Joshua Brooks : https://github.com/joshbrooks
  11708. //! author : Onorio De J. Afonso : https://github.com/marobo
  11709. hooks.defineLocale('tet', {
  11710. months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  11711. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
  11712. weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
  11713. weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
  11714. weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
  11715. longDateFormat : {
  11716. LT : 'HH:mm',
  11717. LTS : 'HH:mm:ss',
  11718. L : 'DD/MM/YYYY',
  11719. LL : 'D MMMM YYYY',
  11720. LLL : 'D MMMM YYYY HH:mm',
  11721. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11722. },
  11723. calendar : {
  11724. sameDay: '[Ohin iha] LT',
  11725. nextDay: '[Aban iha] LT',
  11726. nextWeek: 'dddd [iha] LT',
  11727. lastDay: '[Horiseik iha] LT',
  11728. lastWeek: 'dddd [semana kotuk] [iha] LT',
  11729. sameElse: 'L'
  11730. },
  11731. relativeTime : {
  11732. future : 'iha %s',
  11733. past : '%s liuba',
  11734. s : 'minutu balun',
  11735. m : 'minutu ida',
  11736. mm : 'minutus %d',
  11737. h : 'horas ida',
  11738. hh : 'horas %d',
  11739. d : 'loron ida',
  11740. dd : 'loron %d',
  11741. M : 'fulan ida',
  11742. MM : 'fulan %d',
  11743. y : 'tinan ida',
  11744. yy : 'tinan %d'
  11745. },
  11746. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11747. ordinal : function (number) {
  11748. var b = number % 10,
  11749. output = (~~(number % 100 / 10) === 1) ? 'th' :
  11750. (b === 1) ? 'st' :
  11751. (b === 2) ? 'nd' :
  11752. (b === 3) ? 'rd' : 'th';
  11753. return number + output;
  11754. },
  11755. week : {
  11756. dow : 1, // Monday is the first day of the week.
  11757. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11758. }
  11759. });
  11760. //! moment.js locale configuration
  11761. //! locale : Thai [th]
  11762. //! author : Kridsada Thanabulpong : https://github.com/sirn
  11763. hooks.defineLocale('th', {
  11764. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  11765. monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  11766. monthsParseExact: true,
  11767. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  11768. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  11769. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  11770. weekdaysParseExact : true,
  11771. longDateFormat : {
  11772. LT : 'H:mm',
  11773. LTS : 'H:mm:ss',
  11774. L : 'DD/MM/YYYY',
  11775. LL : 'D MMMM YYYY',
  11776. LLL : 'D MMMM YYYY เวลา H:mm',
  11777. LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
  11778. },
  11779. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  11780. isPM: function (input) {
  11781. return input === 'หลังเที่ยง';
  11782. },
  11783. meridiem : function (hour, minute, isLower) {
  11784. if (hour < 12) {
  11785. return 'ก่อนเที่ยง';
  11786. } else {
  11787. return 'หลังเที่ยง';
  11788. }
  11789. },
  11790. calendar : {
  11791. sameDay : '[วันนี้ เวลา] LT',
  11792. nextDay : '[พรุ่งนี้ เวลา] LT',
  11793. nextWeek : 'dddd[หน้า เวลา] LT',
  11794. lastDay : '[เมื่อวานนี้ เวลา] LT',
  11795. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  11796. sameElse : 'L'
  11797. },
  11798. relativeTime : {
  11799. future : 'อีก %s',
  11800. past : '%sที่แล้ว',
  11801. s : 'ไม่กี่วินาที',
  11802. m : '1 นาที',
  11803. mm : '%d นาที',
  11804. h : '1 ชั่วโมง',
  11805. hh : '%d ชั่วโมง',
  11806. d : '1 วัน',
  11807. dd : '%d วัน',
  11808. M : '1 เดือน',
  11809. MM : '%d เดือน',
  11810. y : '1 ปี',
  11811. yy : '%d ปี'
  11812. }
  11813. });
  11814. //! moment.js locale configuration
  11815. //! locale : Tagalog (Philippines) [tl-ph]
  11816. //! author : Dan Hagman : https://github.com/hagmandan
  11817. hooks.defineLocale('tl-ph', {
  11818. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  11819. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  11820. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  11821. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  11822. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  11823. longDateFormat : {
  11824. LT : 'HH:mm',
  11825. LTS : 'HH:mm:ss',
  11826. L : 'MM/D/YYYY',
  11827. LL : 'MMMM D, YYYY',
  11828. LLL : 'MMMM D, YYYY HH:mm',
  11829. LLLL : 'dddd, MMMM DD, YYYY HH:mm'
  11830. },
  11831. calendar : {
  11832. sameDay: 'LT [ngayong araw]',
  11833. nextDay: '[Bukas ng] LT',
  11834. nextWeek: 'LT [sa susunod na] dddd',
  11835. lastDay: 'LT [kahapon]',
  11836. lastWeek: 'LT [noong nakaraang] dddd',
  11837. sameElse: 'L'
  11838. },
  11839. relativeTime : {
  11840. future : 'sa loob ng %s',
  11841. past : '%s ang nakalipas',
  11842. s : 'ilang segundo',
  11843. m : 'isang minuto',
  11844. mm : '%d minuto',
  11845. h : 'isang oras',
  11846. hh : '%d oras',
  11847. d : 'isang araw',
  11848. dd : '%d araw',
  11849. M : 'isang buwan',
  11850. MM : '%d buwan',
  11851. y : 'isang taon',
  11852. yy : '%d taon'
  11853. },
  11854. dayOfMonthOrdinalParse: /\d{1,2}/,
  11855. ordinal : function (number) {
  11856. return number;
  11857. },
  11858. week : {
  11859. dow : 1, // Monday is the first day of the week.
  11860. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11861. }
  11862. });
  11863. //! moment.js locale configuration
  11864. //! locale : Klingon [tlh]
  11865. //! author : Dominika Kruk : https://github.com/amaranthrose
  11866. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  11867. function translateFuture(output) {
  11868. var time = output;
  11869. time = (output.indexOf('jaj') !== -1) ?
  11870. time.slice(0, -3) + 'leS' :
  11871. (output.indexOf('jar') !== -1) ?
  11872. time.slice(0, -3) + 'waQ' :
  11873. (output.indexOf('DIS') !== -1) ?
  11874. time.slice(0, -3) + 'nem' :
  11875. time + ' pIq';
  11876. return time;
  11877. }
  11878. function translatePast(output) {
  11879. var time = output;
  11880. time = (output.indexOf('jaj') !== -1) ?
  11881. time.slice(0, -3) + 'Hu’' :
  11882. (output.indexOf('jar') !== -1) ?
  11883. time.slice(0, -3) + 'wen' :
  11884. (output.indexOf('DIS') !== -1) ?
  11885. time.slice(0, -3) + 'ben' :
  11886. time + ' ret';
  11887. return time;
  11888. }
  11889. function translate$9(number, withoutSuffix, string, isFuture) {
  11890. var numberNoun = numberAsNoun(number);
  11891. switch (string) {
  11892. case 'mm':
  11893. return numberNoun + ' tup';
  11894. case 'hh':
  11895. return numberNoun + ' rep';
  11896. case 'dd':
  11897. return numberNoun + ' jaj';
  11898. case 'MM':
  11899. return numberNoun + ' jar';
  11900. case 'yy':
  11901. return numberNoun + ' DIS';
  11902. }
  11903. }
  11904. function numberAsNoun(number) {
  11905. var hundred = Math.floor((number % 1000) / 100),
  11906. ten = Math.floor((number % 100) / 10),
  11907. one = number % 10,
  11908. word = '';
  11909. if (hundred > 0) {
  11910. word += numbersNouns[hundred] + 'vatlh';
  11911. }
  11912. if (ten > 0) {
  11913. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  11914. }
  11915. if (one > 0) {
  11916. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  11917. }
  11918. return (word === '') ? 'pagh' : word;
  11919. }
  11920. hooks.defineLocale('tlh', {
  11921. 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('_'),
  11922. 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('_'),
  11923. monthsParseExact : true,
  11924. weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11925. weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11926. weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  11927. longDateFormat : {
  11928. LT : 'HH:mm',
  11929. LTS : 'HH:mm:ss',
  11930. L : 'DD.MM.YYYY',
  11931. LL : 'D MMMM YYYY',
  11932. LLL : 'D MMMM YYYY HH:mm',
  11933. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11934. },
  11935. calendar : {
  11936. sameDay: '[DaHjaj] LT',
  11937. nextDay: '[wa’leS] LT',
  11938. nextWeek: 'LLL',
  11939. lastDay: '[wa’Hu’] LT',
  11940. lastWeek: 'LLL',
  11941. sameElse: 'L'
  11942. },
  11943. relativeTime : {
  11944. future : translateFuture,
  11945. past : translatePast,
  11946. s : 'puS lup',
  11947. m : 'wa’ tup',
  11948. mm : translate$9,
  11949. h : 'wa’ rep',
  11950. hh : translate$9,
  11951. d : 'wa’ jaj',
  11952. dd : translate$9,
  11953. M : 'wa’ jar',
  11954. MM : translate$9,
  11955. y : 'wa’ DIS',
  11956. yy : translate$9
  11957. },
  11958. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11959. ordinal : '%d.',
  11960. week : {
  11961. dow : 1, // Monday is the first day of the week.
  11962. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11963. }
  11964. });
  11965. //! moment.js locale configuration
  11966. //! locale : Turkish [tr]
  11967. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  11968. //! Burak Yiğit Kaya: https://github.com/BYK
  11969. var suffixes$3 = {
  11970. 1: '\'inci',
  11971. 5: '\'inci',
  11972. 8: '\'inci',
  11973. 70: '\'inci',
  11974. 80: '\'inci',
  11975. 2: '\'nci',
  11976. 7: '\'nci',
  11977. 20: '\'nci',
  11978. 50: '\'nci',
  11979. 3: '\'üncü',
  11980. 4: '\'üncü',
  11981. 100: '\'üncü',
  11982. 6: '\'ncı',
  11983. 9: '\'uncu',
  11984. 10: '\'uncu',
  11985. 30: '\'uncu',
  11986. 60: '\'ıncı',
  11987. 90: '\'ıncı'
  11988. };
  11989. hooks.defineLocale('tr', {
  11990. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  11991. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  11992. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  11993. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  11994. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  11995. longDateFormat : {
  11996. LT : 'HH:mm',
  11997. LTS : 'HH:mm:ss',
  11998. L : 'DD.MM.YYYY',
  11999. LL : 'D MMMM YYYY',
  12000. LLL : 'D MMMM YYYY HH:mm',
  12001. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12002. },
  12003. calendar : {
  12004. sameDay : '[bugün saat] LT',
  12005. nextDay : '[yarın saat] LT',
  12006. nextWeek : '[gelecek] dddd [saat] LT',
  12007. lastDay : '[dün] LT',
  12008. lastWeek : '[geçen] dddd [saat] LT',
  12009. sameElse : 'L'
  12010. },
  12011. relativeTime : {
  12012. future : '%s sonra',
  12013. past : '%s önce',
  12014. s : 'birkaç saniye',
  12015. m : 'bir dakika',
  12016. mm : '%d dakika',
  12017. h : 'bir saat',
  12018. hh : '%d saat',
  12019. d : 'bir gün',
  12020. dd : '%d gün',
  12021. M : 'bir ay',
  12022. MM : '%d ay',
  12023. y : 'bir yıl',
  12024. yy : '%d yıl'
  12025. },
  12026. dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  12027. ordinal : function (number) {
  12028. if (number === 0) { // special case for zero
  12029. return number + '\'ıncı';
  12030. }
  12031. var a = number % 10,
  12032. b = number % 100 - a,
  12033. c = number >= 100 ? 100 : null;
  12034. return number + (suffixes$3[a] || suffixes$3[b] || suffixes$3[c]);
  12035. },
  12036. week : {
  12037. dow : 1, // Monday is the first day of the week.
  12038. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12039. }
  12040. });
  12041. //! moment.js locale configuration
  12042. //! locale : Talossan [tzl]
  12043. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  12044. //! author : Iustì Canun
  12045. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  12046. // This is currently too difficult (maybe even impossible) to add.
  12047. hooks.defineLocale('tzl', {
  12048. months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  12049. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  12050. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  12051. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  12052. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  12053. longDateFormat : {
  12054. LT : 'HH.mm',
  12055. LTS : 'HH.mm.ss',
  12056. L : 'DD.MM.YYYY',
  12057. LL : 'D. MMMM [dallas] YYYY',
  12058. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  12059. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  12060. },
  12061. meridiemParse: /d\'o|d\'a/i,
  12062. isPM : function (input) {
  12063. return 'd\'o' === input.toLowerCase();
  12064. },
  12065. meridiem : function (hours, minutes, isLower) {
  12066. if (hours > 11) {
  12067. return isLower ? 'd\'o' : 'D\'O';
  12068. } else {
  12069. return isLower ? 'd\'a' : 'D\'A';
  12070. }
  12071. },
  12072. calendar : {
  12073. sameDay : '[oxhi à] LT',
  12074. nextDay : '[demà à] LT',
  12075. nextWeek : 'dddd [à] LT',
  12076. lastDay : '[ieiri à] LT',
  12077. lastWeek : '[sür el] dddd [lasteu à] LT',
  12078. sameElse : 'L'
  12079. },
  12080. relativeTime : {
  12081. future : 'osprei %s',
  12082. past : 'ja%s',
  12083. s : processRelativeTime$7,
  12084. m : processRelativeTime$7,
  12085. mm : processRelativeTime$7,
  12086. h : processRelativeTime$7,
  12087. hh : processRelativeTime$7,
  12088. d : processRelativeTime$7,
  12089. dd : processRelativeTime$7,
  12090. M : processRelativeTime$7,
  12091. MM : processRelativeTime$7,
  12092. y : processRelativeTime$7,
  12093. yy : processRelativeTime$7
  12094. },
  12095. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12096. ordinal : '%d.',
  12097. week : {
  12098. dow : 1, // Monday is the first day of the week.
  12099. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12100. }
  12101. });
  12102. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  12103. var format = {
  12104. 's': ['viensas secunds', '\'iensas secunds'],
  12105. 'm': ['\'n míut', '\'iens míut'],
  12106. 'mm': [number + ' míuts', '' + number + ' míuts'],
  12107. 'h': ['\'n þora', '\'iensa þora'],
  12108. 'hh': [number + ' þoras', '' + number + ' þoras'],
  12109. 'd': ['\'n ziua', '\'iensa ziua'],
  12110. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  12111. 'M': ['\'n mes', '\'iens mes'],
  12112. 'MM': [number + ' mesen', '' + number + ' mesen'],
  12113. 'y': ['\'n ar', '\'iens ar'],
  12114. 'yy': [number + ' ars', '' + number + ' ars']
  12115. };
  12116. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  12117. }
  12118. //! moment.js locale configuration
  12119. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  12120. //! author : Abdel Said : https://github.com/abdelsaid
  12121. hooks.defineLocale('tzm-latn', {
  12122. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  12123. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  12124. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  12125. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  12126. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  12127. longDateFormat : {
  12128. LT : 'HH:mm',
  12129. LTS : 'HH:mm:ss',
  12130. L : 'DD/MM/YYYY',
  12131. LL : 'D MMMM YYYY',
  12132. LLL : 'D MMMM YYYY HH:mm',
  12133. LLLL : 'dddd D MMMM YYYY HH:mm'
  12134. },
  12135. calendar : {
  12136. sameDay: '[asdkh g] LT',
  12137. nextDay: '[aska g] LT',
  12138. nextWeek: 'dddd [g] LT',
  12139. lastDay: '[assant g] LT',
  12140. lastWeek: 'dddd [g] LT',
  12141. sameElse: 'L'
  12142. },
  12143. relativeTime : {
  12144. future : 'dadkh s yan %s',
  12145. past : 'yan %s',
  12146. s : 'imik',
  12147. m : 'minuḍ',
  12148. mm : '%d minuḍ',
  12149. h : 'saɛa',
  12150. hh : '%d tassaɛin',
  12151. d : 'ass',
  12152. dd : '%d ossan',
  12153. M : 'ayowr',
  12154. MM : '%d iyyirn',
  12155. y : 'asgas',
  12156. yy : '%d isgasn'
  12157. },
  12158. week : {
  12159. dow : 6, // Saturday is the first day of the week.
  12160. doy : 12 // The week that contains Jan 1st is the first week of the year.
  12161. }
  12162. });
  12163. //! moment.js locale configuration
  12164. //! locale : Central Atlas Tamazight [tzm]
  12165. //! author : Abdel Said : https://github.com/abdelsaid
  12166. hooks.defineLocale('tzm', {
  12167. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  12168. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  12169. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  12170. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  12171. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  12172. longDateFormat : {
  12173. LT : 'HH:mm',
  12174. LTS: 'HH:mm:ss',
  12175. L : 'DD/MM/YYYY',
  12176. LL : 'D MMMM YYYY',
  12177. LLL : 'D MMMM YYYY HH:mm',
  12178. LLLL : 'dddd D MMMM YYYY HH:mm'
  12179. },
  12180. calendar : {
  12181. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  12182. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  12183. nextWeek: 'dddd [ⴴ] LT',
  12184. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  12185. lastWeek: 'dddd [ⴴ] LT',
  12186. sameElse: 'L'
  12187. },
  12188. relativeTime : {
  12189. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  12190. past : 'ⵢⴰⵏ %s',
  12191. s : 'ⵉⵎⵉⴽ',
  12192. m : 'ⵎⵉⵏⵓⴺ',
  12193. mm : '%d ⵎⵉⵏⵓⴺ',
  12194. h : 'ⵙⴰⵄⴰ',
  12195. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  12196. d : 'ⴰⵙⵙ',
  12197. dd : '%d oⵙⵙⴰⵏ',
  12198. M : 'ⴰⵢoⵓⵔ',
  12199. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  12200. y : 'ⴰⵙⴳⴰⵙ',
  12201. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  12202. },
  12203. week : {
  12204. dow : 6, // Saturday is the first day of the week.
  12205. doy : 12 // The week that contains Jan 1st is the first week of the year.
  12206. }
  12207. });
  12208. //! moment.js locale configuration
  12209. //! locale : Ukrainian [uk]
  12210. //! author : zemlanin : https://github.com/zemlanin
  12211. //! Author : Menelion Elensúle : https://github.com/Oire
  12212. function plural$6(word, num) {
  12213. var forms = word.split('_');
  12214. 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]);
  12215. }
  12216. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  12217. var format = {
  12218. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  12219. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  12220. 'dd': 'день_дні_днів',
  12221. 'MM': 'місяць_місяці_місяців',
  12222. 'yy': 'рік_роки_років'
  12223. };
  12224. if (key === 'm') {
  12225. return withoutSuffix ? 'хвилина' : 'хвилину';
  12226. }
  12227. else if (key === 'h') {
  12228. return withoutSuffix ? 'година' : 'годину';
  12229. }
  12230. else {
  12231. return number + ' ' + plural$6(format[key], +number);
  12232. }
  12233. }
  12234. function weekdaysCaseReplace(m, format) {
  12235. var weekdays = {
  12236. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  12237. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  12238. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  12239. };
  12240. if (!m) {
  12241. return weekdays['nominative'];
  12242. }
  12243. var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  12244. 'accusative' :
  12245. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  12246. 'genitive' :
  12247. 'nominative');
  12248. return weekdays[nounCase][m.day()];
  12249. }
  12250. function processHoursFunction(str) {
  12251. return function () {
  12252. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  12253. };
  12254. }
  12255. hooks.defineLocale('uk', {
  12256. months : {
  12257. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  12258. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  12259. },
  12260. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  12261. weekdays : weekdaysCaseReplace,
  12262. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  12263. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  12264. longDateFormat : {
  12265. LT : 'HH:mm',
  12266. LTS : 'HH:mm:ss',
  12267. L : 'DD.MM.YYYY',
  12268. LL : 'D MMMM YYYY р.',
  12269. LLL : 'D MMMM YYYY р., HH:mm',
  12270. LLLL : 'dddd, D MMMM YYYY р., HH:mm'
  12271. },
  12272. calendar : {
  12273. sameDay: processHoursFunction('[Сьогодні '),
  12274. nextDay: processHoursFunction('[Завтра '),
  12275. lastDay: processHoursFunction('[Вчора '),
  12276. nextWeek: processHoursFunction('[У] dddd ['),
  12277. lastWeek: function () {
  12278. switch (this.day()) {
  12279. case 0:
  12280. case 3:
  12281. case 5:
  12282. case 6:
  12283. return processHoursFunction('[Минулої] dddd [').call(this);
  12284. case 1:
  12285. case 2:
  12286. case 4:
  12287. return processHoursFunction('[Минулого] dddd [').call(this);
  12288. }
  12289. },
  12290. sameElse: 'L'
  12291. },
  12292. relativeTime : {
  12293. future : 'за %s',
  12294. past : '%s тому',
  12295. s : 'декілька секунд',
  12296. m : relativeTimeWithPlural$4,
  12297. mm : relativeTimeWithPlural$4,
  12298. h : 'годину',
  12299. hh : relativeTimeWithPlural$4,
  12300. d : 'день',
  12301. dd : relativeTimeWithPlural$4,
  12302. M : 'місяць',
  12303. MM : relativeTimeWithPlural$4,
  12304. y : 'рік',
  12305. yy : relativeTimeWithPlural$4
  12306. },
  12307. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  12308. meridiemParse: /ночі|ранку|дня|вечора/,
  12309. isPM: function (input) {
  12310. return /^(дня|вечора)$/.test(input);
  12311. },
  12312. meridiem : function (hour, minute, isLower) {
  12313. if (hour < 4) {
  12314. return 'ночі';
  12315. } else if (hour < 12) {
  12316. return 'ранку';
  12317. } else if (hour < 17) {
  12318. return 'дня';
  12319. } else {
  12320. return 'вечора';
  12321. }
  12322. },
  12323. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  12324. ordinal: function (number, period) {
  12325. switch (period) {
  12326. case 'M':
  12327. case 'd':
  12328. case 'DDD':
  12329. case 'w':
  12330. case 'W':
  12331. return number + '-й';
  12332. case 'D':
  12333. return number + '-го';
  12334. default:
  12335. return number;
  12336. }
  12337. },
  12338. week : {
  12339. dow : 1, // Monday is the first day of the week.
  12340. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12341. }
  12342. });
  12343. //! moment.js locale configuration
  12344. //! locale : Urdu [ur]
  12345. //! author : Sawood Alam : https://github.com/ibnesayeed
  12346. //! author : Zack : https://github.com/ZackVision
  12347. var months$8 = [
  12348. 'جنوری',
  12349. 'فروری',
  12350. 'مارچ',
  12351. 'اپریل',
  12352. 'مئی',
  12353. 'جون',
  12354. 'جولائی',
  12355. 'اگست',
  12356. 'ستمبر',
  12357. 'اکتوبر',
  12358. 'نومبر',
  12359. 'دسمبر'
  12360. ];
  12361. var days$2 = [
  12362. 'اتوار',
  12363. 'پیر',
  12364. 'منگل',
  12365. 'بدھ',
  12366. 'جمعرات',
  12367. 'جمعہ',
  12368. 'ہفتہ'
  12369. ];
  12370. hooks.defineLocale('ur', {
  12371. months : months$8,
  12372. monthsShort : months$8,
  12373. weekdays : days$2,
  12374. weekdaysShort : days$2,
  12375. weekdaysMin : days$2,
  12376. longDateFormat : {
  12377. LT : 'HH:mm',
  12378. LTS : 'HH:mm:ss',
  12379. L : 'DD/MM/YYYY',
  12380. LL : 'D MMMM YYYY',
  12381. LLL : 'D MMMM YYYY HH:mm',
  12382. LLLL : 'dddd، D MMMM YYYY HH:mm'
  12383. },
  12384. meridiemParse: /صبح|شام/,
  12385. isPM : function (input) {
  12386. return 'شام' === input;
  12387. },
  12388. meridiem : function (hour, minute, isLower) {
  12389. if (hour < 12) {
  12390. return 'صبح';
  12391. }
  12392. return 'شام';
  12393. },
  12394. calendar : {
  12395. sameDay : '[آج بوقت] LT',
  12396. nextDay : '[کل بوقت] LT',
  12397. nextWeek : 'dddd [بوقت] LT',
  12398. lastDay : '[گذشتہ روز بوقت] LT',
  12399. lastWeek : '[گذشتہ] dddd [بوقت] LT',
  12400. sameElse : 'L'
  12401. },
  12402. relativeTime : {
  12403. future : '%s بعد',
  12404. past : '%s قبل',
  12405. s : 'چند سیکنڈ',
  12406. m : 'ایک منٹ',
  12407. mm : '%d منٹ',
  12408. h : 'ایک گھنٹہ',
  12409. hh : '%d گھنٹے',
  12410. d : 'ایک دن',
  12411. dd : '%d دن',
  12412. M : 'ایک ماہ',
  12413. MM : '%d ماہ',
  12414. y : 'ایک سال',
  12415. yy : '%d سال'
  12416. },
  12417. preparse: function (string) {
  12418. return string.replace(/،/g, ',');
  12419. },
  12420. postformat: function (string) {
  12421. return string.replace(/,/g, '،');
  12422. },
  12423. week : {
  12424. dow : 1, // Monday is the first day of the week.
  12425. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12426. }
  12427. });
  12428. //! moment.js locale configuration
  12429. //! locale : Uzbek Latin [uz-latn]
  12430. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  12431. hooks.defineLocale('uz-latn', {
  12432. months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  12433. monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  12434. weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  12435. weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  12436. weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  12437. longDateFormat : {
  12438. LT : 'HH:mm',
  12439. LTS : 'HH:mm:ss',
  12440. L : 'DD/MM/YYYY',
  12441. LL : 'D MMMM YYYY',
  12442. LLL : 'D MMMM YYYY HH:mm',
  12443. LLLL : 'D MMMM YYYY, dddd HH:mm'
  12444. },
  12445. calendar : {
  12446. sameDay : '[Bugun soat] LT [da]',
  12447. nextDay : '[Ertaga] LT [da]',
  12448. nextWeek : 'dddd [kuni soat] LT [da]',
  12449. lastDay : '[Kecha soat] LT [da]',
  12450. lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
  12451. sameElse : 'L'
  12452. },
  12453. relativeTime : {
  12454. future : 'Yaqin %s ichida',
  12455. past : 'Bir necha %s oldin',
  12456. s : 'soniya',
  12457. m : 'bir daqiqa',
  12458. mm : '%d daqiqa',
  12459. h : 'bir soat',
  12460. hh : '%d soat',
  12461. d : 'bir kun',
  12462. dd : '%d kun',
  12463. M : 'bir oy',
  12464. MM : '%d oy',
  12465. y : 'bir yil',
  12466. yy : '%d yil'
  12467. },
  12468. week : {
  12469. dow : 1, // Monday is the first day of the week.
  12470. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12471. }
  12472. });
  12473. //! moment.js locale configuration
  12474. //! locale : Uzbek [uz]
  12475. //! author : Sardor Muminov : https://github.com/muminoff
  12476. hooks.defineLocale('uz', {
  12477. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  12478. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  12479. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  12480. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  12481. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  12482. longDateFormat : {
  12483. LT : 'HH:mm',
  12484. LTS : 'HH:mm:ss',
  12485. L : 'DD/MM/YYYY',
  12486. LL : 'D MMMM YYYY',
  12487. LLL : 'D MMMM YYYY HH:mm',
  12488. LLLL : 'D MMMM YYYY, dddd HH:mm'
  12489. },
  12490. calendar : {
  12491. sameDay : '[Бугун соат] LT [да]',
  12492. nextDay : '[Эртага] LT [да]',
  12493. nextWeek : 'dddd [куни соат] LT [да]',
  12494. lastDay : '[Кеча соат] LT [да]',
  12495. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  12496. sameElse : 'L'
  12497. },
  12498. relativeTime : {
  12499. future : 'Якин %s ичида',
  12500. past : 'Бир неча %s олдин',
  12501. s : 'фурсат',
  12502. m : 'бир дакика',
  12503. mm : '%d дакика',
  12504. h : 'бир соат',
  12505. hh : '%d соат',
  12506. d : 'бир кун',
  12507. dd : '%d кун',
  12508. M : 'бир ой',
  12509. MM : '%d ой',
  12510. y : 'бир йил',
  12511. yy : '%d йил'
  12512. },
  12513. week : {
  12514. dow : 1, // Monday is the first day of the week.
  12515. doy : 7 // The week that contains Jan 4th is the first week of the year.
  12516. }
  12517. });
  12518. //! moment.js locale configuration
  12519. //! locale : Vietnamese [vi]
  12520. //! author : Bang Nguyen : https://github.com/bangnk
  12521. hooks.defineLocale('vi', {
  12522. 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('_'),
  12523. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  12524. monthsParseExact : true,
  12525. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  12526. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  12527. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  12528. weekdaysParseExact : true,
  12529. meridiemParse: /sa|ch/i,
  12530. isPM : function (input) {
  12531. return /^ch$/i.test(input);
  12532. },
  12533. meridiem : function (hours, minutes, isLower) {
  12534. if (hours < 12) {
  12535. return isLower ? 'sa' : 'SA';
  12536. } else {
  12537. return isLower ? 'ch' : 'CH';
  12538. }
  12539. },
  12540. longDateFormat : {
  12541. LT : 'HH:mm',
  12542. LTS : 'HH:mm:ss',
  12543. L : 'DD/MM/YYYY',
  12544. LL : 'D MMMM [năm] YYYY',
  12545. LLL : 'D MMMM [năm] YYYY HH:mm',
  12546. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  12547. l : 'DD/M/YYYY',
  12548. ll : 'D MMM YYYY',
  12549. lll : 'D MMM YYYY HH:mm',
  12550. llll : 'ddd, D MMM YYYY HH:mm'
  12551. },
  12552. calendar : {
  12553. sameDay: '[Hôm nay lúc] LT',
  12554. nextDay: '[Ngày mai lúc] LT',
  12555. nextWeek: 'dddd [tuần tới lúc] LT',
  12556. lastDay: '[Hôm qua lúc] LT',
  12557. lastWeek: 'dddd [tuần rồi lúc] LT',
  12558. sameElse: 'L'
  12559. },
  12560. relativeTime : {
  12561. future : '%s tới',
  12562. past : '%s trước',
  12563. s : 'vài giây',
  12564. m : 'một phút',
  12565. mm : '%d phút',
  12566. h : 'một giờ',
  12567. hh : '%d giờ',
  12568. d : 'một ngày',
  12569. dd : '%d ngày',
  12570. M : 'một tháng',
  12571. MM : '%d tháng',
  12572. y : 'một năm',
  12573. yy : '%d năm'
  12574. },
  12575. dayOfMonthOrdinalParse: /\d{1,2}/,
  12576. ordinal : function (number) {
  12577. return number;
  12578. },
  12579. week : {
  12580. dow : 1, // Monday is the first day of the week.
  12581. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12582. }
  12583. });
  12584. //! moment.js locale configuration
  12585. //! locale : Pseudo [x-pseudo]
  12586. //! author : Andrew Hood : https://github.com/andrewhood125
  12587. hooks.defineLocale('x-pseudo', {
  12588. 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('_'),
  12589. monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  12590. monthsParseExact : true,
  12591. weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  12592. weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  12593. weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  12594. weekdaysParseExact : true,
  12595. longDateFormat : {
  12596. LT : 'HH:mm',
  12597. L : 'DD/MM/YYYY',
  12598. LL : 'D MMMM YYYY',
  12599. LLL : 'D MMMM YYYY HH:mm',
  12600. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12601. },
  12602. calendar : {
  12603. sameDay : '[T~ódá~ý át] LT',
  12604. nextDay : '[T~ómó~rró~w át] LT',
  12605. nextWeek : 'dddd [át] LT',
  12606. lastDay : '[Ý~ést~érdá~ý át] LT',
  12607. lastWeek : '[L~ást] dddd [át] LT',
  12608. sameElse : 'L'
  12609. },
  12610. relativeTime : {
  12611. future : 'í~ñ %s',
  12612. past : '%s á~gó',
  12613. s : 'á ~féw ~sécó~ñds',
  12614. m : 'á ~míñ~úté',
  12615. mm : '%d m~íñú~tés',
  12616. h : 'á~ñ hó~úr',
  12617. hh : '%d h~óúrs',
  12618. d : 'á ~dáý',
  12619. dd : '%d d~áýs',
  12620. M : 'á ~móñ~th',
  12621. MM : '%d m~óñt~hs',
  12622. y : 'á ~ýéár',
  12623. yy : '%d ý~éárs'
  12624. },
  12625. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  12626. ordinal : function (number) {
  12627. var b = number % 10,
  12628. output = (~~(number % 100 / 10) === 1) ? 'th' :
  12629. (b === 1) ? 'st' :
  12630. (b === 2) ? 'nd' :
  12631. (b === 3) ? 'rd' : 'th';
  12632. return number + output;
  12633. },
  12634. week : {
  12635. dow : 1, // Monday is the first day of the week.
  12636. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12637. }
  12638. });
  12639. //! moment.js locale configuration
  12640. //! locale : Yoruba Nigeria [yo]
  12641. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  12642. hooks.defineLocale('yo', {
  12643. months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  12644. monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  12645. weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  12646. weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  12647. weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  12648. longDateFormat : {
  12649. LT : 'h:mm A',
  12650. LTS : 'h:mm:ss A',
  12651. L : 'DD/MM/YYYY',
  12652. LL : 'D MMMM YYYY',
  12653. LLL : 'D MMMM YYYY h:mm A',
  12654. LLLL : 'dddd, D MMMM YYYY h:mm A'
  12655. },
  12656. calendar : {
  12657. sameDay : '[Ònì ni] LT',
  12658. nextDay : '[Ọ̀la ni] LT',
  12659. nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
  12660. lastDay : '[Àna ni] LT',
  12661. lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  12662. sameElse : 'L'
  12663. },
  12664. relativeTime : {
  12665. future : 'ní %s',
  12666. past : '%s kọjá',
  12667. s : 'ìsẹjú aayá die',
  12668. m : 'ìsẹjú kan',
  12669. mm : 'ìsẹjú %d',
  12670. h : 'wákati kan',
  12671. hh : 'wákati %d',
  12672. d : 'ọjọ́ kan',
  12673. dd : 'ọjọ́ %d',
  12674. M : 'osù kan',
  12675. MM : 'osù %d',
  12676. y : 'ọdún kan',
  12677. yy : 'ọdún %d'
  12678. },
  12679. dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
  12680. ordinal : 'ọjọ́ %d',
  12681. week : {
  12682. dow : 1, // Monday is the first day of the week.
  12683. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12684. }
  12685. });
  12686. //! moment.js locale configuration
  12687. //! locale : Chinese (China) [zh-cn]
  12688. //! author : suupic : https://github.com/suupic
  12689. //! author : Zeno Zeng : https://github.com/zenozeng
  12690. hooks.defineLocale('zh-cn', {
  12691. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12692. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12693. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12694. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  12695. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  12696. longDateFormat : {
  12697. LT : 'HH:mm',
  12698. LTS : 'HH:mm:ss',
  12699. L : 'YYYY年MMMD日',
  12700. LL : 'YYYY年MMMD日',
  12701. LLL : 'YYYY年MMMD日Ah点mm分',
  12702. LLLL : 'YYYY年MMMD日ddddAh点mm分',
  12703. l : 'YYYY年MMMD日',
  12704. ll : 'YYYY年MMMD日',
  12705. lll : 'YYYY年MMMD日 HH:mm',
  12706. llll : 'YYYY年MMMD日dddd HH:mm'
  12707. },
  12708. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12709. meridiemHour: function (hour, meridiem) {
  12710. if (hour === 12) {
  12711. hour = 0;
  12712. }
  12713. if (meridiem === '凌晨' || meridiem === '早上' ||
  12714. meridiem === '上午') {
  12715. return hour;
  12716. } else if (meridiem === '下午' || meridiem === '晚上') {
  12717. return hour + 12;
  12718. } else {
  12719. // '中午'
  12720. return hour >= 11 ? hour : hour + 12;
  12721. }
  12722. },
  12723. meridiem : function (hour, minute, isLower) {
  12724. var hm = hour * 100 + minute;
  12725. if (hm < 600) {
  12726. return '凌晨';
  12727. } else if (hm < 900) {
  12728. return '早上';
  12729. } else if (hm < 1130) {
  12730. return '上午';
  12731. } else if (hm < 1230) {
  12732. return '中午';
  12733. } else if (hm < 1800) {
  12734. return '下午';
  12735. } else {
  12736. return '晚上';
  12737. }
  12738. },
  12739. calendar : {
  12740. sameDay : '[今天]LT',
  12741. nextDay : '[明天]LT',
  12742. nextWeek : '[下]ddddLT',
  12743. lastDay : '[昨天]LT',
  12744. lastWeek : '[上]ddddLT',
  12745. sameElse : 'L'
  12746. },
  12747. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  12748. ordinal : function (number, period) {
  12749. switch (period) {
  12750. case 'd':
  12751. case 'D':
  12752. case 'DDD':
  12753. return number + '日';
  12754. case 'M':
  12755. return number + '月';
  12756. case 'w':
  12757. case 'W':
  12758. return number + '周';
  12759. default:
  12760. return number;
  12761. }
  12762. },
  12763. relativeTime : {
  12764. future : '%s内',
  12765. past : '%s前',
  12766. s : '几秒',
  12767. m : '1 分钟',
  12768. mm : '%d 分钟',
  12769. h : '1 小时',
  12770. hh : '%d 小时',
  12771. d : '1 天',
  12772. dd : '%d 天',
  12773. M : '1 个月',
  12774. MM : '%d 个月',
  12775. y : '1 年',
  12776. yy : '%d 年'
  12777. },
  12778. week : {
  12779. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  12780. dow : 1, // Monday is the first day of the week.
  12781. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12782. }
  12783. });
  12784. //! moment.js locale configuration
  12785. //! locale : Chinese (Hong Kong) [zh-hk]
  12786. //! author : Ben : https://github.com/ben-lin
  12787. //! author : Chris Lam : https://github.com/hehachris
  12788. //! author : Konstantin : https://github.com/skfd
  12789. hooks.defineLocale('zh-hk', {
  12790. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12791. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12792. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12793. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  12794. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  12795. longDateFormat : {
  12796. LT : 'HH:mm',
  12797. LTS : 'HH:mm:ss',
  12798. L : 'YYYY年MMMD日',
  12799. LL : 'YYYY年MMMD日',
  12800. LLL : 'YYYY年MMMD日 HH:mm',
  12801. LLLL : 'YYYY年MMMD日dddd HH:mm',
  12802. l : 'YYYY年MMMD日',
  12803. ll : 'YYYY年MMMD日',
  12804. lll : 'YYYY年MMMD日 HH:mm',
  12805. llll : 'YYYY年MMMD日dddd HH:mm'
  12806. },
  12807. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12808. meridiemHour : function (hour, meridiem) {
  12809. if (hour === 12) {
  12810. hour = 0;
  12811. }
  12812. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  12813. return hour;
  12814. } else if (meridiem === '中午') {
  12815. return hour >= 11 ? hour : hour + 12;
  12816. } else if (meridiem === '下午' || meridiem === '晚上') {
  12817. return hour + 12;
  12818. }
  12819. },
  12820. meridiem : function (hour, minute, isLower) {
  12821. var hm = hour * 100 + minute;
  12822. if (hm < 600) {
  12823. return '凌晨';
  12824. } else if (hm < 900) {
  12825. return '早上';
  12826. } else if (hm < 1130) {
  12827. return '上午';
  12828. } else if (hm < 1230) {
  12829. return '中午';
  12830. } else if (hm < 1800) {
  12831. return '下午';
  12832. } else {
  12833. return '晚上';
  12834. }
  12835. },
  12836. calendar : {
  12837. sameDay : '[今天]LT',
  12838. nextDay : '[明天]LT',
  12839. nextWeek : '[下]ddddLT',
  12840. lastDay : '[昨天]LT',
  12841. lastWeek : '[上]ddddLT',
  12842. sameElse : 'L'
  12843. },
  12844. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  12845. ordinal : function (number, period) {
  12846. switch (period) {
  12847. case 'd' :
  12848. case 'D' :
  12849. case 'DDD' :
  12850. return number + '日';
  12851. case 'M' :
  12852. return number + '月';
  12853. case 'w' :
  12854. case 'W' :
  12855. return number + '週';
  12856. default :
  12857. return number;
  12858. }
  12859. },
  12860. relativeTime : {
  12861. future : '%s內',
  12862. past : '%s前',
  12863. s : '幾秒',
  12864. m : '1 分鐘',
  12865. mm : '%d 分鐘',
  12866. h : '1 小時',
  12867. hh : '%d 小時',
  12868. d : '1 天',
  12869. dd : '%d 天',
  12870. M : '1 個月',
  12871. MM : '%d 個月',
  12872. y : '1 年',
  12873. yy : '%d 年'
  12874. }
  12875. });
  12876. //! moment.js locale configuration
  12877. //! locale : Chinese (Taiwan) [zh-tw]
  12878. //! author : Ben : https://github.com/ben-lin
  12879. //! author : Chris Lam : https://github.com/hehachris
  12880. hooks.defineLocale('zh-tw', {
  12881. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  12882. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  12883. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  12884. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  12885. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  12886. longDateFormat : {
  12887. LT : 'HH:mm',
  12888. LTS : 'HH:mm:ss',
  12889. L : 'YYYY年MMMD日',
  12890. LL : 'YYYY年MMMD日',
  12891. LLL : 'YYYY年MMMD日 HH:mm',
  12892. LLLL : 'YYYY年MMMD日dddd HH:mm',
  12893. l : 'YYYY年MMMD日',
  12894. ll : 'YYYY年MMMD日',
  12895. lll : 'YYYY年MMMD日 HH:mm',
  12896. llll : 'YYYY年MMMD日dddd HH:mm'
  12897. },
  12898. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  12899. meridiemHour : function (hour, meridiem) {
  12900. if (hour === 12) {
  12901. hour = 0;
  12902. }
  12903. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  12904. return hour;
  12905. } else if (meridiem === '中午') {
  12906. return hour >= 11 ? hour : hour + 12;
  12907. } else if (meridiem === '下午' || meridiem === '晚上') {
  12908. return hour + 12;
  12909. }
  12910. },
  12911. meridiem : function (hour, minute, isLower) {
  12912. var hm = hour * 100 + minute;
  12913. if (hm < 600) {
  12914. return '凌晨';
  12915. } else if (hm < 900) {
  12916. return '早上';
  12917. } else if (hm < 1130) {
  12918. return '上午';
  12919. } else if (hm < 1230) {
  12920. return '中午';
  12921. } else if (hm < 1800) {
  12922. return '下午';
  12923. } else {
  12924. return '晚上';
  12925. }
  12926. },
  12927. calendar : {
  12928. sameDay : '[今天]LT',
  12929. nextDay : '[明天]LT',
  12930. nextWeek : '[下]ddddLT',
  12931. lastDay : '[昨天]LT',
  12932. lastWeek : '[上]ddddLT',
  12933. sameElse : 'L'
  12934. },
  12935. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  12936. ordinal : function (number, period) {
  12937. switch (period) {
  12938. case 'd' :
  12939. case 'D' :
  12940. case 'DDD' :
  12941. return number + '日';
  12942. case 'M' :
  12943. return number + '月';
  12944. case 'w' :
  12945. case 'W' :
  12946. return number + '週';
  12947. default :
  12948. return number;
  12949. }
  12950. },
  12951. relativeTime : {
  12952. future : '%s內',
  12953. past : '%s前',
  12954. s : '幾秒',
  12955. m : '1 分鐘',
  12956. mm : '%d 分鐘',
  12957. h : '1 小時',
  12958. hh : '%d 小時',
  12959. d : '1 天',
  12960. dd : '%d 天',
  12961. M : '1 個月',
  12962. MM : '%d 個月',
  12963. y : '1 年',
  12964. yy : '%d 年'
  12965. }
  12966. });
  12967. hooks.locale('en');
  12968. return hooks;
  12969. })));