moment-2.20.1.min.js 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370
  1. !function(e, t) {
  2. "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : e.moment = t()
  3. }(this, function() {
  4. "use strict";
  5. function e() {
  6. return Qe.apply(null, arguments)
  7. }
  8. function t(e) {
  9. return e instanceof Array || "[object Array]" === Object.prototype.toString.call(e)
  10. }
  11. function n(e) {
  12. return null != e && "[object Object]" === Object.prototype.toString.call(e)
  13. }
  14. function s(e) {
  15. return void 0 === e
  16. }
  17. function i(e) {
  18. return "number" == typeof e || "[object Number]" === Object.prototype.toString.call(e)
  19. }
  20. function r(e) {
  21. return e instanceof Date || "[object Date]" === Object.prototype.toString.call(e)
  22. }
  23. function a(e, t) {
  24. var n, s = [];
  25. for (n = 0; n < e.length; ++n)
  26. s.push(t(e[n], n));
  27. return s
  28. }
  29. function o(e, t) {
  30. return Object.prototype.hasOwnProperty.call(e, t)
  31. }
  32. function u(e, t) {
  33. for (var n in t)
  34. o(t, n) && (e[n] = t[n]);
  35. return o(t, "toString") && (e.toString = t.toString),
  36. o(t, "valueOf") && (e.valueOf = t.valueOf),
  37. e
  38. }
  39. function l(e, t, n, s) {
  40. return ge(e, t, n, s, !0).utc()
  41. }
  42. function d(e) {
  43. return null == e._pf && (e._pf = {
  44. empty: !1,
  45. unusedTokens: [],
  46. unusedInput: [],
  47. overflow: -2,
  48. charsLeftOver: 0,
  49. nullInput: !1,
  50. invalidMonth: null,
  51. invalidFormat: !1,
  52. userInvalidated: !1,
  53. iso: !1,
  54. parsedDateParts: [],
  55. meridiem: null,
  56. rfc2822: !1,
  57. weekdayMismatch: !1
  58. }),
  59. e._pf
  60. }
  61. function h(e) {
  62. if (null == e._isValid) {
  63. var t = d(e)
  64. , n = Xe.call(t.parsedDateParts, function(e) {
  65. return null != e
  66. })
  67. , s = !isNaN(e._d.getTime()) && t.overflow < 0 && !t.empty && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n);
  68. if (e._strict && (s = s && 0 === t.charsLeftOver && 0 === t.unusedTokens.length && void 0 === t.bigHour),
  69. null != Object.isFrozen && Object.isFrozen(e))
  70. return s;
  71. e._isValid = s
  72. }
  73. return e._isValid
  74. }
  75. function c(e) {
  76. var t = l(NaN);
  77. return null != e ? u(d(t), e) : d(t).userInvalidated = !0,
  78. t
  79. }
  80. function f(e, t) {
  81. var n, i, r;
  82. if (s(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject),
  83. s(t._i) || (e._i = t._i),
  84. s(t._f) || (e._f = t._f),
  85. s(t._l) || (e._l = t._l),
  86. s(t._strict) || (e._strict = t._strict),
  87. s(t._tzm) || (e._tzm = t._tzm),
  88. s(t._isUTC) || (e._isUTC = t._isUTC),
  89. s(t._offset) || (e._offset = t._offset),
  90. s(t._pf) || (e._pf = d(t)),
  91. s(t._locale) || (e._locale = t._locale),
  92. Ke.length > 0)
  93. for (n = 0; n < Ke.length; n++)
  94. s(r = t[i = Ke[n]]) || (e[i] = r);
  95. return e
  96. }
  97. function m(t) {
  98. f(this, t),
  99. this._d = new Date(null != t._d ? t._d.getTime() : NaN),
  100. this.isValid() || (this._d = new Date(NaN)),
  101. !1 === et && (et = !0,
  102. e.updateOffset(this),
  103. et = !1)
  104. }
  105. function _(e) {
  106. return e instanceof m || null != e && null != e._isAMomentObject
  107. }
  108. function y(e) {
  109. return e < 0 ? Math.ceil(e) || 0 : Math.floor(e)
  110. }
  111. function g(e) {
  112. var t = +e
  113. , n = 0;
  114. return 0 !== t && isFinite(t) && (n = y(t)),
  115. n
  116. }
  117. function p(e, t, n) {
  118. var s, i = Math.min(e.length, t.length), r = Math.abs(e.length - t.length), a = 0;
  119. for (s = 0; s < i; s++)
  120. (n && e[s] !== t[s] || !n && g(e[s]) !== g(t[s])) && a++;
  121. return a + r
  122. }
  123. function w(t) {
  124. !1 === e.suppressDeprecationWarnings && "undefined" != typeof console && console.warn && console.warn("Deprecation warning: " + t)
  125. }
  126. function v(t, n) {
  127. var s = !0;
  128. return u(function() {
  129. if (null != e.deprecationHandler && e.deprecationHandler(null, t),
  130. s) {
  131. for (var i, r = [], a = 0; a < arguments.length; a++) {
  132. if (i = "",
  133. "object" == typeof arguments[a]) {
  134. i += "\n[" + a + "] ";
  135. for (var o in arguments[0])
  136. i += o + ": " + arguments[0][o] + ", ";
  137. i = i.slice(0, -2)
  138. } else
  139. i = arguments[a];
  140. r.push(i)
  141. }
  142. w(t + "\nArguments: " + Array.prototype.slice.call(r).join("") + "\n" + (new Error).stack),
  143. s = !1
  144. }
  145. return n.apply(this, arguments)
  146. }, n)
  147. }
  148. function M(t, n) {
  149. null != e.deprecationHandler && e.deprecationHandler(t, n),
  150. tt[t] || (w(n),
  151. tt[t] = !0)
  152. }
  153. function S(e) {
  154. return e instanceof Function || "[object Function]" === Object.prototype.toString.call(e)
  155. }
  156. function D(e, t) {
  157. var s, i = u({}, e);
  158. for (s in t)
  159. o(t, s) && (n(e[s]) && n(t[s]) ? (i[s] = {},
  160. u(i[s], e[s]),
  161. u(i[s], t[s])) : null != t[s] ? i[s] = t[s] : delete i[s]);
  162. for (s in e)
  163. o(e, s) && !o(t, s) && n(e[s]) && (i[s] = u({}, i[s]));
  164. return i
  165. }
  166. function k(e) {
  167. null != e && this.set(e)
  168. }
  169. function Y(e, t) {
  170. var n = e.toLowerCase();
  171. st[n] = st[n + "s"] = st[t] = e
  172. }
  173. function O(e) {
  174. return "string" == typeof e ? st[e] || st[e.toLowerCase()] : void 0
  175. }
  176. function T(e) {
  177. var t, n, s = {};
  178. for (n in e)
  179. o(e, n) && (t = O(n)) && (s[t] = e[n]);
  180. return s
  181. }
  182. function x(e, t) {
  183. it[e] = t
  184. }
  185. function b(e, t, n) {
  186. var s = "" + Math.abs(e)
  187. , i = t - s.length;
  188. return (e >= 0 ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + s
  189. }
  190. function P(e, t, n, s) {
  191. var i = s;
  192. "string" == typeof s && (i = function() {
  193. return this[s]()
  194. }
  195. ),
  196. e && (ut[e] = i),
  197. t && (ut[t[0]] = function() {
  198. return b(i.apply(this, arguments), t[1], t[2])
  199. }
  200. ),
  201. n && (ut[n] = function() {
  202. return this.localeData().ordinal(i.apply(this, arguments), e)
  203. }
  204. )
  205. }
  206. function W(e) {
  207. return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "")
  208. }
  209. function H(e, t) {
  210. return e.isValid() ? (t = R(t, e.localeData()),
  211. ot[t] = ot[t] || function(e) {
  212. var t, n, s = e.match(rt);
  213. for (t = 0,
  214. n = s.length; t < n; t++)
  215. ut[s[t]] ? s[t] = ut[s[t]] : s[t] = W(s[t]);
  216. return function(t) {
  217. var i, r = "";
  218. for (i = 0; i < n; i++)
  219. r += S(s[i]) ? s[i].call(t, e) : s[i];
  220. return r
  221. }
  222. }(t),
  223. ot[t](e)) : e.localeData().invalidDate()
  224. }
  225. function R(e, t) {
  226. function n(e) {
  227. return t.longDateFormat(e) || e
  228. }
  229. var s = 5;
  230. for (at.lastIndex = 0; s >= 0 && at.test(e); )
  231. e = e.replace(at, n),
  232. at.lastIndex = 0,
  233. s -= 1;
  234. return e
  235. }
  236. function C(e, t, n) {
  237. Yt[e] = S(t) ? t : function(e, s) {
  238. return e && n ? n : t
  239. }
  240. }
  241. function F(e, t) {
  242. return o(Yt, e) ? Yt[e](t._strict, t._locale) : new RegExp(function(e) {
  243. return U(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(e, t, n, s, i) {
  244. return t || n || s || i
  245. }))
  246. }(e))
  247. }
  248. function U(e) {
  249. return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")
  250. }
  251. function L(e, t) {
  252. var n, s = t;
  253. for ("string" == typeof e && (e = [e]),
  254. i(t) && (s = function(e, n) {
  255. n[t] = g(e)
  256. }
  257. ),
  258. n = 0; n < e.length; n++)
  259. Ot[e[n]] = s
  260. }
  261. function N(e, t) {
  262. L(e, function(e, n, s, i) {
  263. s._w = s._w || {},
  264. t(e, s._w, s, i)
  265. })
  266. }
  267. function G(e, t, n) {
  268. null != t && o(Ot, e) && Ot[e](t, n._a, n, e)
  269. }
  270. function V(e) {
  271. return E(e) ? 366 : 365
  272. }
  273. function E(e) {
  274. return e % 4 == 0 && e % 100 != 0 || e % 400 == 0
  275. }
  276. function I(t, n) {
  277. return function(s) {
  278. return null != s ? (j(this, t, s),
  279. e.updateOffset(this, n),
  280. this) : A(this, t)
  281. }
  282. }
  283. function A(e, t) {
  284. return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + t]() : NaN
  285. }
  286. function j(e, t, n) {
  287. e.isValid() && !isNaN(n) && ("FullYear" === t && E(e.year()) && 1 === e.month() && 29 === e.date() ? e._d["set" + (e._isUTC ? "UTC" : "") + t](n, e.month(), Z(n, e.month())) : e._d["set" + (e._isUTC ? "UTC" : "") + t](n))
  288. }
  289. function Z(e, t) {
  290. if (isNaN(e) || isNaN(t))
  291. return NaN;
  292. var n = function(e, t) {
  293. return (e % t + t) % t
  294. }(t, 12);
  295. return e += (t - n) / 12,
  296. 1 === n ? E(e) ? 29 : 28 : 31 - n % 7 % 2
  297. }
  298. function z(e, t) {
  299. var n;
  300. if (!e.isValid())
  301. return e;
  302. if ("string" == typeof t)
  303. if (/^\d+$/.test(t))
  304. t = g(t);
  305. else if (t = e.localeData().monthsParse(t),
  306. !i(t))
  307. return e;
  308. return n = Math.min(e.date(), Z(e.year(), t)),
  309. e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, n),
  310. e
  311. }
  312. function $(t) {
  313. return null != t ? (z(this, t),
  314. e.updateOffset(this, !0),
  315. this) : A(this, "Month")
  316. }
  317. function q() {
  318. function e(e, t) {
  319. return t.length - e.length
  320. }
  321. var t, n, s = [], i = [], r = [];
  322. for (t = 0; t < 12; t++)
  323. n = l([2e3, t]),
  324. s.push(this.monthsShort(n, "")),
  325. i.push(this.months(n, "")),
  326. r.push(this.months(n, "")),
  327. r.push(this.monthsShort(n, ""));
  328. for (s.sort(e),
  329. i.sort(e),
  330. r.sort(e),
  331. t = 0; t < 12; t++)
  332. s[t] = U(s[t]),
  333. i[t] = U(i[t]);
  334. for (t = 0; t < 24; t++)
  335. r[t] = U(r[t]);
  336. this._monthsRegex = new RegExp("^(" + r.join("|") + ")","i"),
  337. this._monthsShortRegex = this._monthsRegex,
  338. this._monthsStrictRegex = new RegExp("^(" + i.join("|") + ")","i"),
  339. this._monthsShortStrictRegex = new RegExp("^(" + s.join("|") + ")","i")
  340. }
  341. function J(e) {
  342. var t = new Date(Date.UTC.apply(null, arguments));
  343. return e < 100 && e >= 0 && isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e),
  344. t
  345. }
  346. function B(e, t, n) {
  347. var s = 7 + t - n;
  348. return -((7 + J(e, 0, s).getUTCDay() - t) % 7) + s - 1
  349. }
  350. function Q(e, t, n, s, i) {
  351. var r, a, o = 1 + 7 * (t - 1) + (7 + n - s) % 7 + B(e, s, i);
  352. return o <= 0 ? a = V(r = e - 1) + o : o > V(e) ? (r = e + 1,
  353. a = o - V(e)) : (r = e,
  354. a = o),
  355. {
  356. year: r,
  357. dayOfYear: a
  358. }
  359. }
  360. function X(e, t, n) {
  361. var s, i, r = B(e.year(), t, n), a = Math.floor((e.dayOfYear() - r - 1) / 7) + 1;
  362. return a < 1 ? s = a + K(i = e.year() - 1, t, n) : a > K(e.year(), t, n) ? (s = a - K(e.year(), t, n),
  363. i = e.year() + 1) : (i = e.year(),
  364. s = a),
  365. {
  366. week: s,
  367. year: i
  368. }
  369. }
  370. function K(e, t, n) {
  371. var s = B(e, t, n)
  372. , i = B(e + 1, t, n);
  373. return (V(e) - s + i) / 7
  374. }
  375. function ee() {
  376. function e(e, t) {
  377. return t.length - e.length
  378. }
  379. var t, n, s, i, r, a = [], o = [], u = [], d = [];
  380. for (t = 0; t < 7; t++)
  381. n = l([2e3, 1]).day(t),
  382. s = this.weekdaysMin(n, ""),
  383. i = this.weekdaysShort(n, ""),
  384. r = this.weekdays(n, ""),
  385. a.push(s),
  386. o.push(i),
  387. u.push(r),
  388. d.push(s),
  389. d.push(i),
  390. d.push(r);
  391. for (a.sort(e),
  392. o.sort(e),
  393. u.sort(e),
  394. d.sort(e),
  395. t = 0; t < 7; t++)
  396. o[t] = U(o[t]),
  397. u[t] = U(u[t]),
  398. d[t] = U(d[t]);
  399. this._weekdaysRegex = new RegExp("^(" + d.join("|") + ")","i"),
  400. this._weekdaysShortRegex = this._weekdaysRegex,
  401. this._weekdaysMinRegex = this._weekdaysRegex,
  402. this._weekdaysStrictRegex = new RegExp("^(" + u.join("|") + ")","i"),
  403. this._weekdaysShortStrictRegex = new RegExp("^(" + o.join("|") + ")","i"),
  404. this._weekdaysMinStrictRegex = new RegExp("^(" + a.join("|") + ")","i")
  405. }
  406. function te() {
  407. return this.hours() % 12 || 12
  408. }
  409. function ne(e, t) {
  410. P(e, 0, 0, function() {
  411. return this.localeData().meridiem(this.hours(), this.minutes(), t)
  412. })
  413. }
  414. function se(e, t) {
  415. return t._meridiemParse
  416. }
  417. function ie(e) {
  418. return e ? e.toLowerCase().replace("_", "-") : e
  419. }
  420. function re(e) {
  421. var t = null;
  422. if (!Xt[e] && "undefined" != typeof module && module && module.exports)
  423. try {
  424. t = Jt._abbr;
  425. require("./locale/" + e),
  426. ae(t)
  427. } catch (e) {}
  428. return Xt[e]
  429. }
  430. function ae(e, t) {
  431. var n;
  432. return e && (n = s(t) ? ue(e) : oe(e, t)) && (Jt = n),
  433. Jt._abbr
  434. }
  435. function oe(e, t) {
  436. if (null !== t) {
  437. var n = Qt;
  438. if (t.abbr = e,
  439. null != Xt[e])
  440. M("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),
  441. n = Xt[e]._config;
  442. else if (null != t.parentLocale) {
  443. if (null == Xt[t.parentLocale])
  444. return Kt[t.parentLocale] || (Kt[t.parentLocale] = []),
  445. Kt[t.parentLocale].push({
  446. name: e,
  447. config: t
  448. }),
  449. null;
  450. n = Xt[t.parentLocale]._config
  451. }
  452. return Xt[e] = new k(D(n, t)),
  453. Kt[e] && Kt[e].forEach(function(e) {
  454. oe(e.name, e.config)
  455. }),
  456. ae(e),
  457. Xt[e]
  458. }
  459. return delete Xt[e],
  460. null
  461. }
  462. function ue(e) {
  463. var n;
  464. if (e && e._locale && e._locale._abbr && (e = e._locale._abbr),
  465. !e)
  466. return Jt;
  467. if (!t(e)) {
  468. if (n = re(e))
  469. return n;
  470. e = [e]
  471. }
  472. return function(e) {
  473. for (var t, n, s, i, r = 0; r < e.length; ) {
  474. for (t = (i = ie(e[r]).split("-")).length,
  475. n = (n = ie(e[r + 1])) ? n.split("-") : null; t > 0; ) {
  476. if (s = re(i.slice(0, t).join("-")))
  477. return s;
  478. if (n && n.length >= t && p(i, n, !0) >= t - 1)
  479. break;
  480. t--
  481. }
  482. r++
  483. }
  484. return null
  485. }(e)
  486. }
  487. function le(e) {
  488. var t, n = e._a;
  489. return n && -2 === d(e).overflow && (t = n[xt] < 0 || n[xt] > 11 ? xt : n[bt] < 1 || n[bt] > Z(n[Tt], n[xt]) ? bt : n[Pt] < 0 || n[Pt] > 24 || 24 === n[Pt] && (0 !== n[Wt] || 0 !== n[Ht] || 0 !== n[Rt]) ? Pt : n[Wt] < 0 || n[Wt] > 59 ? Wt : n[Ht] < 0 || n[Ht] > 59 ? Ht : n[Rt] < 0 || n[Rt] > 999 ? Rt : -1,
  490. d(e)._overflowDayOfYear && (t < Tt || t > bt) && (t = bt),
  491. d(e)._overflowWeeks && -1 === t && (t = Ct),
  492. d(e)._overflowWeekday && -1 === t && (t = Ft),
  493. d(e).overflow = t),
  494. e
  495. }
  496. function de(e, t, n) {
  497. return null != e ? e : null != t ? t : n
  498. }
  499. function he(t) {
  500. var n, s, i, r, a, o = [];
  501. if (!t._d) {
  502. for (i = function(t) {
  503. var n = new Date(e.now());
  504. return t._useUTC ? [n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate()] : [n.getFullYear(), n.getMonth(), n.getDate()]
  505. }(t),
  506. t._w && null == t._a[bt] && null == t._a[xt] && function(e) {
  507. var t, n, s, i, r, a, o, u;
  508. if (null != (t = e._w).GG || null != t.W || null != t.E)
  509. r = 1,
  510. a = 4,
  511. n = de(t.GG, e._a[Tt], X(pe(), 1, 4).year),
  512. s = de(t.W, 1),
  513. ((i = de(t.E, 1)) < 1 || i > 7) && (u = !0);
  514. else {
  515. r = e._locale._week.dow,
  516. a = e._locale._week.doy;
  517. var l = X(pe(), r, a);
  518. n = de(t.gg, e._a[Tt], l.year),
  519. s = de(t.w, l.week),
  520. null != t.d ? ((i = t.d) < 0 || i > 6) && (u = !0) : null != t.e ? (i = t.e + r,
  521. (t.e < 0 || t.e > 6) && (u = !0)) : i = r
  522. }
  523. s < 1 || s > K(n, r, a) ? d(e)._overflowWeeks = !0 : null != u ? d(e)._overflowWeekday = !0 : (o = Q(n, s, i, r, a),
  524. e._a[Tt] = o.year,
  525. e._dayOfYear = o.dayOfYear)
  526. }(t),
  527. null != t._dayOfYear && (a = de(t._a[Tt], i[Tt]),
  528. (t._dayOfYear > V(a) || 0 === t._dayOfYear) && (d(t)._overflowDayOfYear = !0),
  529. s = J(a, 0, t._dayOfYear),
  530. t._a[xt] = s.getUTCMonth(),
  531. t._a[bt] = s.getUTCDate()),
  532. n = 0; n < 3 && null == t._a[n]; ++n)
  533. t._a[n] = o[n] = i[n];
  534. for (; n < 7; n++)
  535. t._a[n] = o[n] = null == t._a[n] ? 2 === n ? 1 : 0 : t._a[n];
  536. 24 === t._a[Pt] && 0 === t._a[Wt] && 0 === t._a[Ht] && 0 === t._a[Rt] && (t._nextDay = !0,
  537. t._a[Pt] = 0),
  538. t._d = (t._useUTC ? J : function(e, t, n, s, i, r, a) {
  539. var o = new Date(e,t,n,s,i,r,a);
  540. return e < 100 && e >= 0 && isFinite(o.getFullYear()) && o.setFullYear(e),
  541. o
  542. }
  543. ).apply(null, o),
  544. r = t._useUTC ? t._d.getUTCDay() : t._d.getDay(),
  545. null != t._tzm && t._d.setUTCMinutes(t._d.getUTCMinutes() - t._tzm),
  546. t._nextDay && (t._a[Pt] = 24),
  547. t._w && void 0 !== t._w.d && t._w.d !== r && (d(t).weekdayMismatch = !0)
  548. }
  549. }
  550. function ce(e) {
  551. var t, n, s, i, r, a, o = e._i, u = en.exec(o) || tn.exec(o);
  552. if (u) {
  553. for (d(e).iso = !0,
  554. t = 0,
  555. n = sn.length; t < n; t++)
  556. if (sn[t][1].exec(u[1])) {
  557. i = sn[t][0],
  558. s = !1 !== sn[t][2];
  559. break
  560. }
  561. if (null == i)
  562. return void (e._isValid = !1);
  563. if (u[3]) {
  564. for (t = 0,
  565. n = rn.length; t < n; t++)
  566. if (rn[t][1].exec(u[3])) {
  567. r = (u[2] || " ") + rn[t][0];
  568. break
  569. }
  570. if (null == r)
  571. return void (e._isValid = !1)
  572. }
  573. if (!s && null != r)
  574. return void (e._isValid = !1);
  575. if (u[4]) {
  576. if (!nn.exec(u[4]))
  577. return void (e._isValid = !1);
  578. a = "Z"
  579. }
  580. e._f = i + (r || "") + (a || ""),
  581. _e(e)
  582. } else
  583. e._isValid = !1
  584. }
  585. function fe(e, t, n, s, i, r) {
  586. var a = [function(e) {
  587. var t = parseInt(e, 10);
  588. {
  589. if (t <= 49)
  590. return 2e3 + t;
  591. if (t <= 999)
  592. return 1900 + t
  593. }
  594. return t
  595. }(e), Vt.indexOf(t), parseInt(n, 10), parseInt(s, 10), parseInt(i, 10)];
  596. return r && a.push(parseInt(r, 10)),
  597. a
  598. }
  599. function me(e) {
  600. var t = on.exec(function(e) {
  601. return e.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim()
  602. }(e._i));
  603. if (t) {
  604. var n = fe(t[4], t[3], t[2], t[5], t[6], t[7]);
  605. if (!function(e, t, n) {
  606. if (e && jt.indexOf(e) !== new Date(t[0],t[1],t[2]).getDay())
  607. return d(n).weekdayMismatch = !0,
  608. n._isValid = !1,
  609. !1;
  610. return !0
  611. }(t[1], n, e))
  612. return;
  613. e._a = n,
  614. e._tzm = function(e, t, n) {
  615. if (e)
  616. return un[e];
  617. if (t)
  618. return 0;
  619. var s = parseInt(n, 10)
  620. , i = s % 100;
  621. return (s - i) / 100 * 60 + i
  622. }(t[8], t[9], t[10]),
  623. e._d = J.apply(null, e._a),
  624. e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
  625. d(e).rfc2822 = !0
  626. } else
  627. e._isValid = !1
  628. }
  629. function _e(t) {
  630. if (t._f !== e.ISO_8601)
  631. if (t._f !== e.RFC_2822) {
  632. t._a = [],
  633. d(t).empty = !0;
  634. var n, s, i, r, a, o = "" + t._i, u = o.length, l = 0;
  635. for (i = R(t._f, t._locale).match(rt) || [],
  636. n = 0; n < i.length; n++)
  637. r = i[n],
  638. (s = (o.match(F(r, t)) || [])[0]) && ((a = o.substr(0, o.indexOf(s))).length > 0 && d(t).unusedInput.push(a),
  639. o = o.slice(o.indexOf(s) + s.length),
  640. l += s.length),
  641. ut[r] ? (s ? d(t).empty = !1 : d(t).unusedTokens.push(r),
  642. G(r, s, t)) : t._strict && !s && d(t).unusedTokens.push(r);
  643. d(t).charsLeftOver = u - l,
  644. o.length > 0 && d(t).unusedInput.push(o),
  645. t._a[Pt] <= 12 && !0 === d(t).bigHour && t._a[Pt] > 0 && (d(t).bigHour = void 0),
  646. d(t).parsedDateParts = t._a.slice(0),
  647. d(t).meridiem = t._meridiem,
  648. t._a[Pt] = function(e, t, n) {
  649. var s;
  650. if (null == n)
  651. return t;
  652. return null != e.meridiemHour ? e.meridiemHour(t, n) : null != e.isPM ? ((s = e.isPM(n)) && t < 12 && (t += 12),
  653. s || 12 !== t || (t = 0),
  654. t) : t
  655. }(t._locale, t._a[Pt], t._meridiem),
  656. he(t),
  657. le(t)
  658. } else
  659. me(t);
  660. else
  661. ce(t)
  662. }
  663. function ye(o) {
  664. var l = o._i
  665. , y = o._f;
  666. return o._locale = o._locale || ue(o._l),
  667. null === l || void 0 === y && "" === l ? c({
  668. nullInput: !0
  669. }) : ("string" == typeof l && (o._i = l = o._locale.preparse(l)),
  670. _(l) ? new m(le(l)) : (r(l) ? o._d = l : t(y) ? function(e) {
  671. var t, n, s, i, r;
  672. if (0 === e._f.length)
  673. return d(e).invalidFormat = !0,
  674. void (e._d = new Date(NaN));
  675. for (i = 0; i < e._f.length; i++)
  676. r = 0,
  677. t = f({}, e),
  678. null != e._useUTC && (t._useUTC = e._useUTC),
  679. t._f = e._f[i],
  680. _e(t),
  681. h(t) && (r += d(t).charsLeftOver,
  682. r += 10 * d(t).unusedTokens.length,
  683. d(t).score = r,
  684. (null == s || r < s) && (s = r,
  685. n = t));
  686. u(e, n || t)
  687. }(o) : y ? _e(o) : function(o) {
  688. var u = o._i;
  689. s(u) ? o._d = new Date(e.now()) : r(u) ? o._d = new Date(u.valueOf()) : "string" == typeof u ? function(t) {
  690. var n = an.exec(t._i);
  691. null === n ? (ce(t),
  692. !1 === t._isValid && (delete t._isValid,
  693. me(t),
  694. !1 === t._isValid && (delete t._isValid,
  695. e.createFromInputFallback(t)))) : t._d = new Date(+n[1])
  696. }(o) : t(u) ? (o._a = a(u.slice(0), function(e) {
  697. return parseInt(e, 10)
  698. }),
  699. he(o)) : n(u) ? function(e) {
  700. if (!e._d) {
  701. var t = T(e._i);
  702. e._a = a([t.year, t.month, t.day || t.date, t.hour, t.minute, t.second, t.millisecond], function(e) {
  703. return e && parseInt(e, 10)
  704. }),
  705. he(e)
  706. }
  707. }(o) : i(u) ? o._d = new Date(u) : e.createFromInputFallback(o)
  708. }(o),
  709. h(o) || (o._d = null),
  710. o))
  711. }
  712. function ge(e, s, i, r, a) {
  713. var o = {};
  714. return !0 !== i && !1 !== i || (r = i,
  715. i = void 0),
  716. (n(e) && function(e) {
  717. if (Object.getOwnPropertyNames)
  718. return 0 === Object.getOwnPropertyNames(e).length;
  719. var t;
  720. for (t in e)
  721. if (e.hasOwnProperty(t))
  722. return !1;
  723. return !0
  724. }(e) || t(e) && 0 === e.length) && (e = void 0),
  725. o._isAMomentObject = !0,
  726. o._useUTC = o._isUTC = a,
  727. o._l = i,
  728. o._i = e,
  729. o._f = s,
  730. o._strict = r,
  731. function(e) {
  732. var t = new m(le(ye(e)));
  733. return t._nextDay && (t.add(1, "d"),
  734. t._nextDay = void 0),
  735. t
  736. }(o)
  737. }
  738. function pe(e, t, n, s) {
  739. return ge(e, t, n, s, !1)
  740. }
  741. function we(e, n) {
  742. var s, i;
  743. if (1 === n.length && t(n[0]) && (n = n[0]),
  744. !n.length)
  745. return pe();
  746. for (s = n[0],
  747. i = 1; i < n.length; ++i)
  748. n[i].isValid() && !n[i][e](s) || (s = n[i]);
  749. return s
  750. }
  751. function ve(e) {
  752. var t = T(e)
  753. , n = t.year || 0
  754. , s = t.quarter || 0
  755. , i = t.month || 0
  756. , r = t.week || 0
  757. , a = t.day || 0
  758. , o = t.hour || 0
  759. , u = t.minute || 0
  760. , l = t.second || 0
  761. , d = t.millisecond || 0;
  762. this._isValid = function(e) {
  763. for (var t in e)
  764. if (-1 === Ut.call(hn, t) || null != e[t] && isNaN(e[t]))
  765. return !1;
  766. for (var n = !1, s = 0; s < hn.length; ++s)
  767. if (e[hn[s]]) {
  768. if (n)
  769. return !1;
  770. parseFloat(e[hn[s]]) !== g(e[hn[s]]) && (n = !0)
  771. }
  772. return !0
  773. }(t),
  774. this._milliseconds = +d + 1e3 * l + 6e4 * u + 1e3 * o * 60 * 60,
  775. this._days = +a + 7 * r,
  776. this._months = +i + 3 * s + 12 * n,
  777. this._data = {},
  778. this._locale = ue(),
  779. this._bubble()
  780. }
  781. function Me(e) {
  782. return e instanceof ve
  783. }
  784. function Se(e) {
  785. return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e)
  786. }
  787. function De(e, t) {
  788. P(e, 0, 0, function() {
  789. var e = this.utcOffset()
  790. , n = "+";
  791. return e < 0 && (e = -e,
  792. n = "-"),
  793. n + b(~~(e / 60), 2) + t + b(~~e % 60, 2)
  794. })
  795. }
  796. function ke(e, t) {
  797. var n = (t || "").match(e);
  798. if (null === n)
  799. return null;
  800. var s = ((n[n.length - 1] || []) + "").match(cn) || ["-", 0, 0]
  801. , i = 60 * s[1] + g(s[2]);
  802. return 0 === i ? 0 : "+" === s[0] ? i : -i
  803. }
  804. function Ye(t, n) {
  805. var s, i;
  806. return n._isUTC ? (s = n.clone(),
  807. i = (_(t) || r(t) ? t.valueOf() : pe(t).valueOf()) - s.valueOf(),
  808. s._d.setTime(s._d.valueOf() + i),
  809. e.updateOffset(s, !1),
  810. s) : pe(t).local()
  811. }
  812. function Oe(e) {
  813. return 15 * -Math.round(e._d.getTimezoneOffset() / 15)
  814. }
  815. function Te() {
  816. return !!this.isValid() && (this._isUTC && 0 === this._offset)
  817. }
  818. function xe(e, t) {
  819. var n, s, r, a = e, u = null;
  820. return Me(e) ? a = {
  821. ms: e._milliseconds,
  822. d: e._days,
  823. M: e._months
  824. } : i(e) ? (a = {},
  825. t ? a[t] = e : a.milliseconds = e) : (u = fn.exec(e)) ? (n = "-" === u[1] ? -1 : 1,
  826. a = {
  827. y: 0,
  828. d: g(u[bt]) * n,
  829. h: g(u[Pt]) * n,
  830. m: g(u[Wt]) * n,
  831. s: g(u[Ht]) * n,
  832. ms: g(Se(1e3 * u[Rt])) * n
  833. }) : (u = mn.exec(e)) ? (n = "-" === u[1] ? -1 : (u[1],
  834. 1),
  835. a = {
  836. y: be(u[2], n),
  837. M: be(u[3], n),
  838. w: be(u[4], n),
  839. d: be(u[5], n),
  840. h: be(u[6], n),
  841. m: be(u[7], n),
  842. s: be(u[8], n)
  843. }) : null == a ? a = {} : "object" == typeof a && ("from"in a || "to"in a) && (r = function(e, t) {
  844. var n;
  845. if (!e.isValid() || !t.isValid())
  846. return {
  847. milliseconds: 0,
  848. months: 0
  849. };
  850. t = Ye(t, e),
  851. e.isBefore(t) ? n = Pe(e, t) : ((n = Pe(t, e)).milliseconds = -n.milliseconds,
  852. n.months = -n.months);
  853. return n
  854. }(pe(a.from), pe(a.to)),
  855. (a = {}).ms = r.milliseconds,
  856. a.M = r.months),
  857. s = new ve(a),
  858. Me(e) && o(e, "_locale") && (s._locale = e._locale),
  859. s
  860. }
  861. function be(e, t) {
  862. var n = e && parseFloat(e.replace(",", "."));
  863. return (isNaN(n) ? 0 : n) * t
  864. }
  865. function Pe(e, t) {
  866. var n = {
  867. milliseconds: 0,
  868. months: 0
  869. };
  870. return n.months = t.month() - e.month() + 12 * (t.year() - e.year()),
  871. e.clone().add(n.months, "M").isAfter(t) && --n.months,
  872. n.milliseconds = +t - +e.clone().add(n.months, "M"),
  873. n
  874. }
  875. function We(e, t) {
  876. return function(n, s) {
  877. var i, r;
  878. return null === s || isNaN(+s) || (M(t, "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),
  879. r = n,
  880. n = s,
  881. s = r),
  882. n = "string" == typeof n ? +n : n,
  883. i = xe(n, s),
  884. He(this, i, e),
  885. this
  886. }
  887. }
  888. function He(t, n, s, i) {
  889. var r = n._milliseconds
  890. , a = Se(n._days)
  891. , o = Se(n._months);
  892. t.isValid() && (i = null == i || i,
  893. o && z(t, A(t, "Month") + o * s),
  894. a && j(t, "Date", A(t, "Date") + a * s),
  895. r && t._d.setTime(t._d.valueOf() + r * s),
  896. i && e.updateOffset(t, a || o))
  897. }
  898. function Re(e, t) {
  899. var n, s = 12 * (t.year() - e.year()) + (t.month() - e.month()), i = e.clone().add(s, "months");
  900. return n = t - i < 0 ? (t - i) / (i - e.clone().add(s - 1, "months")) : (t - i) / (e.clone().add(s + 1, "months") - i),
  901. -(s + n) || 0
  902. }
  903. function Ce(e) {
  904. var t;
  905. return void 0 === e ? this._locale._abbr : (null != (t = ue(e)) && (this._locale = t),
  906. this)
  907. }
  908. function Fe() {
  909. return this._locale
  910. }
  911. function Ue(e, t) {
  912. P(0, [e, e.length], 0, t)
  913. }
  914. function Le(e, t, n, s, i) {
  915. var r;
  916. return null == e ? X(this, s, i).year : (r = K(e, s, i),
  917. t > r && (t = r),
  918. function(e, t, n, s, i) {
  919. var r = Q(e, t, n, s, i)
  920. , a = J(r.year, 0, r.dayOfYear);
  921. return this.year(a.getUTCFullYear()),
  922. this.month(a.getUTCMonth()),
  923. this.date(a.getUTCDate()),
  924. this
  925. }
  926. .call(this, e, t, n, s, i))
  927. }
  928. function Ne(e, t) {
  929. t[Rt] = g(1e3 * ("0." + e))
  930. }
  931. function Ge(e) {
  932. return e
  933. }
  934. function Ve(e, t, n, s) {
  935. var i = ue()
  936. , r = l().set(s, t);
  937. return i[n](r, e)
  938. }
  939. function Ee(e, t, n) {
  940. if (i(e) && (t = e,
  941. e = void 0),
  942. e = e || "",
  943. null != t)
  944. return Ve(e, t, n, "month");
  945. var s, r = [];
  946. for (s = 0; s < 12; s++)
  947. r[s] = Ve(e, s, n, "month");
  948. return r
  949. }
  950. function Ie(e, t, n, s) {
  951. "boolean" == typeof e ? (i(t) && (n = t,
  952. t = void 0),
  953. t = t || "") : (n = t = e,
  954. e = !1,
  955. i(t) && (n = t,
  956. t = void 0),
  957. t = t || "");
  958. var r = ue()
  959. , a = e ? r._week.dow : 0;
  960. if (null != n)
  961. return Ve(t, (n + a) % 7, s, "day");
  962. var o, u = [];
  963. for (o = 0; o < 7; o++)
  964. u[o] = Ve(t, (o + a) % 7, s, "day");
  965. return u
  966. }
  967. function Ae(e, t, n, s) {
  968. var i = xe(t, n);
  969. return e._milliseconds += s * i._milliseconds,
  970. e._days += s * i._days,
  971. e._months += s * i._months,
  972. e._bubble()
  973. }
  974. function je(e) {
  975. return e < 0 ? Math.floor(e) : Math.ceil(e)
  976. }
  977. function Ze(e) {
  978. return 4800 * e / 146097
  979. }
  980. function ze(e) {
  981. return 146097 * e / 4800
  982. }
  983. function $e(e) {
  984. return function() {
  985. return this.as(e)
  986. }
  987. }
  988. function qe(e) {
  989. return function() {
  990. return this.isValid() ? this._data[e] : NaN
  991. }
  992. }
  993. function Je(e) {
  994. return (e > 0) - (e < 0) || +e
  995. }
  996. function Be() {
  997. if (!this.isValid())
  998. return this.localeData().invalidDate();
  999. var e, t, n = An(this._milliseconds) / 1e3, s = An(this._days), i = An(this._months);
  1000. t = y((e = y(n / 60)) / 60),
  1001. n %= 60,
  1002. e %= 60;
  1003. var r = y(i / 12)
  1004. , a = i %= 12
  1005. , o = s
  1006. , u = t
  1007. , l = e
  1008. , d = n ? n.toFixed(3).replace(/\.?0+$/, "") : ""
  1009. , h = this.asSeconds();
  1010. if (!h)
  1011. return "P0D";
  1012. var c = h < 0 ? "-" : ""
  1013. , f = Je(this._months) !== Je(h) ? "-" : ""
  1014. , m = Je(this._days) !== Je(h) ? "-" : ""
  1015. , _ = Je(this._milliseconds) !== Je(h) ? "-" : "";
  1016. return c + "P" + (r ? f + r + "Y" : "") + (a ? f + a + "M" : "") + (o ? m + o + "D" : "") + (u || l || d ? "T" : "") + (u ? _ + u + "H" : "") + (l ? _ + l + "M" : "") + (d ? _ + d + "S" : "")
  1017. }
  1018. var Qe, Xe;
  1019. Xe = Array.prototype.some ? Array.prototype.some : function(e) {
  1020. for (var t = Object(this), n = t.length >>> 0, s = 0; s < n; s++)
  1021. if (s in t && e.call(this, t[s], s, t))
  1022. return !0;
  1023. return !1
  1024. }
  1025. ;
  1026. var Ke = e.momentProperties = []
  1027. , et = !1
  1028. , tt = {};
  1029. e.suppressDeprecationWarnings = !1,
  1030. e.deprecationHandler = null;
  1031. var nt;
  1032. nt = Object.keys ? Object.keys : function(e) {
  1033. var t, n = [];
  1034. for (t in e)
  1035. o(e, t) && n.push(t);
  1036. return n
  1037. }
  1038. ;
  1039. var st = {}
  1040. , it = {}
  1041. , rt = /(\[[^\[]*\])|(\\)?([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
  1042. , at = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g
  1043. , ot = {}
  1044. , ut = {}
  1045. , lt = /\d/
  1046. , dt = /\d\d/
  1047. , ht = /\d{3}/
  1048. , ct = /\d{4}/
  1049. , ft = /[+-]?\d{6}/
  1050. , mt = /\d\d?/
  1051. , _t = /\d\d\d\d?/
  1052. , yt = /\d\d\d\d\d\d?/
  1053. , gt = /\d{1,3}/
  1054. , pt = /\d{1,4}/
  1055. , wt = /[+-]?\d{1,6}/
  1056. , vt = /\d+/
  1057. , Mt = /[+-]?\d+/
  1058. , St = /Z|[+-]\d\d:?\d\d/gi
  1059. , Dt = /Z|[+-]\d\d(?::?\d\d)?/gi
  1060. , kt = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i
  1061. , Yt = {}
  1062. , Ot = {}
  1063. , Tt = 0
  1064. , xt = 1
  1065. , bt = 2
  1066. , Pt = 3
  1067. , Wt = 4
  1068. , Ht = 5
  1069. , Rt = 6
  1070. , Ct = 7
  1071. , Ft = 8;
  1072. P("Y", 0, 0, function() {
  1073. var e = this.year();
  1074. return e <= 9999 ? "" + e : "+" + e
  1075. }),
  1076. P(0, ["YY", 2], 0, function() {
  1077. return this.year() % 100
  1078. }),
  1079. P(0, ["YYYY", 4], 0, "year"),
  1080. P(0, ["YYYYY", 5], 0, "year"),
  1081. P(0, ["YYYYYY", 6, !0], 0, "year"),
  1082. Y("year", "y"),
  1083. x("year", 1),
  1084. C("Y", Mt),
  1085. C("YY", mt, dt),
  1086. C("YYYY", pt, ct),
  1087. C("YYYYY", wt, ft),
  1088. C("YYYYYY", wt, ft),
  1089. L(["YYYYY", "YYYYYY"], Tt),
  1090. L("YYYY", function(t, n) {
  1091. n[Tt] = 2 === t.length ? e.parseTwoDigitYear(t) : g(t)
  1092. }),
  1093. L("YY", function(t, n) {
  1094. n[Tt] = e.parseTwoDigitYear(t)
  1095. }),
  1096. L("Y", function(e, t) {
  1097. t[Tt] = parseInt(e, 10)
  1098. }),
  1099. e.parseTwoDigitYear = function(e) {
  1100. return g(e) + (g(e) > 68 ? 1900 : 2e3)
  1101. }
  1102. ;
  1103. var Ut, Lt = I("FullYear", !0);
  1104. Ut = Array.prototype.indexOf ? Array.prototype.indexOf : function(e) {
  1105. var t;
  1106. for (t = 0; t < this.length; ++t)
  1107. if (this[t] === e)
  1108. return t;
  1109. return -1
  1110. }
  1111. ,
  1112. P("M", ["MM", 2], "Mo", function() {
  1113. return this.month() + 1
  1114. }),
  1115. P("MMM", 0, 0, function(e) {
  1116. return this.localeData().monthsShort(this, e)
  1117. }),
  1118. P("MMMM", 0, 0, function(e) {
  1119. return this.localeData().months(this, e)
  1120. }),
  1121. Y("month", "M"),
  1122. x("month", 8),
  1123. C("M", mt),
  1124. C("MM", mt, dt),
  1125. C("MMM", function(e, t) {
  1126. return t.monthsShortRegex(e)
  1127. }),
  1128. C("MMMM", function(e, t) {
  1129. return t.monthsRegex(e)
  1130. }),
  1131. L(["M", "MM"], function(e, t) {
  1132. t[xt] = g(e) - 1
  1133. }),
  1134. L(["MMM", "MMMM"], function(e, t, n, s) {
  1135. var i = n._locale.monthsParse(e, s, n._strict);
  1136. null != i ? t[xt] = i : d(n).invalidMonth = e
  1137. });
  1138. var Nt = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/
  1139. , Gt = "January_February_March_April_May_June_July_August_September_October_November_December".split("_")
  1140. , Vt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_")
  1141. , Et = kt
  1142. , It = kt;
  1143. P("w", ["ww", 2], "wo", "week"),
  1144. P("W", ["WW", 2], "Wo", "isoWeek"),
  1145. Y("week", "w"),
  1146. Y("isoWeek", "W"),
  1147. x("week", 5),
  1148. x("isoWeek", 5),
  1149. C("w", mt),
  1150. C("ww", mt, dt),
  1151. C("W", mt),
  1152. C("WW", mt, dt),
  1153. N(["w", "ww", "W", "WW"], function(e, t, n, s) {
  1154. t[s.substr(0, 1)] = g(e)
  1155. });
  1156. P("d", 0, "do", "day"),
  1157. P("dd", 0, 0, function(e) {
  1158. return this.localeData().weekdaysMin(this, e)
  1159. }),
  1160. P("ddd", 0, 0, function(e) {
  1161. return this.localeData().weekdaysShort(this, e)
  1162. }),
  1163. P("dddd", 0, 0, function(e) {
  1164. return this.localeData().weekdays(this, e)
  1165. }),
  1166. P("e", 0, 0, "weekday"),
  1167. P("E", 0, 0, "isoWeekday"),
  1168. Y("day", "d"),
  1169. Y("weekday", "e"),
  1170. Y("isoWeekday", "E"),
  1171. x("day", 11),
  1172. x("weekday", 11),
  1173. x("isoWeekday", 11),
  1174. C("d", mt),
  1175. C("e", mt),
  1176. C("E", mt),
  1177. C("dd", function(e, t) {
  1178. return t.weekdaysMinRegex(e)
  1179. }),
  1180. C("ddd", function(e, t) {
  1181. return t.weekdaysShortRegex(e)
  1182. }),
  1183. C("dddd", function(e, t) {
  1184. return t.weekdaysRegex(e)
  1185. }),
  1186. N(["dd", "ddd", "dddd"], function(e, t, n, s) {
  1187. var i = n._locale.weekdaysParse(e, s, n._strict);
  1188. null != i ? t.d = i : d(n).invalidWeekday = e
  1189. }),
  1190. N(["d", "e", "E"], function(e, t, n, s) {
  1191. t[s] = g(e)
  1192. });
  1193. var At = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_")
  1194. , jt = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_")
  1195. , Zt = "Su_Mo_Tu_We_Th_Fr_Sa".split("_")
  1196. , zt = kt
  1197. , $t = kt
  1198. , qt = kt;
  1199. P("H", ["HH", 2], 0, "hour"),
  1200. P("h", ["hh", 2], 0, te),
  1201. P("k", ["kk", 2], 0, function() {
  1202. return this.hours() || 24
  1203. }),
  1204. P("hmm", 0, 0, function() {
  1205. return "" + te.apply(this) + b(this.minutes(), 2)
  1206. }),
  1207. P("hmmss", 0, 0, function() {
  1208. return "" + te.apply(this) + b(this.minutes(), 2) + b(this.seconds(), 2)
  1209. }),
  1210. P("Hmm", 0, 0, function() {
  1211. return "" + this.hours() + b(this.minutes(), 2)
  1212. }),
  1213. P("Hmmss", 0, 0, function() {
  1214. return "" + this.hours() + b(this.minutes(), 2) + b(this.seconds(), 2)
  1215. }),
  1216. ne("a", !0),
  1217. ne("A", !1),
  1218. Y("hour", "h"),
  1219. x("hour", 13),
  1220. C("a", se),
  1221. C("A", se),
  1222. C("H", mt),
  1223. C("h", mt),
  1224. C("k", mt),
  1225. C("HH", mt, dt),
  1226. C("hh", mt, dt),
  1227. C("kk", mt, dt),
  1228. C("hmm", _t),
  1229. C("hmmss", yt),
  1230. C("Hmm", _t),
  1231. C("Hmmss", yt),
  1232. L(["H", "HH"], Pt),
  1233. L(["k", "kk"], function(e, t, n) {
  1234. var s = g(e);
  1235. t[Pt] = 24 === s ? 0 : s
  1236. }),
  1237. L(["a", "A"], function(e, t, n) {
  1238. n._isPm = n._locale.isPM(e),
  1239. n._meridiem = e
  1240. }),
  1241. L(["h", "hh"], function(e, t, n) {
  1242. t[Pt] = g(e),
  1243. d(n).bigHour = !0
  1244. }),
  1245. L("hmm", function(e, t, n) {
  1246. var s = e.length - 2;
  1247. t[Pt] = g(e.substr(0, s)),
  1248. t[Wt] = g(e.substr(s)),
  1249. d(n).bigHour = !0
  1250. }),
  1251. L("hmmss", function(e, t, n) {
  1252. var s = e.length - 4
  1253. , i = e.length - 2;
  1254. t[Pt] = g(e.substr(0, s)),
  1255. t[Wt] = g(e.substr(s, 2)),
  1256. t[Ht] = g(e.substr(i)),
  1257. d(n).bigHour = !0
  1258. }),
  1259. L("Hmm", function(e, t, n) {
  1260. var s = e.length - 2;
  1261. t[Pt] = g(e.substr(0, s)),
  1262. t[Wt] = g(e.substr(s))
  1263. }),
  1264. L("Hmmss", function(e, t, n) {
  1265. var s = e.length - 4
  1266. , i = e.length - 2;
  1267. t[Pt] = g(e.substr(0, s)),
  1268. t[Wt] = g(e.substr(s, 2)),
  1269. t[Ht] = g(e.substr(i))
  1270. });
  1271. var Jt, Bt = I("Hours", !0), Qt = {
  1272. calendar: {
  1273. sameDay: "[Today at] LT",
  1274. nextDay: "[Tomorrow at] LT",
  1275. nextWeek: "dddd [at] LT",
  1276. lastDay: "[Yesterday at] LT",
  1277. lastWeek: "[Last] dddd [at] LT",
  1278. sameElse: "L"
  1279. },
  1280. longDateFormat: {
  1281. LTS: "h:mm:ss A",
  1282. LT: "h:mm A",
  1283. L: "MM/DD/YYYY",
  1284. LL: "MMMM D, YYYY",
  1285. LLL: "MMMM D, YYYY h:mm A",
  1286. LLLL: "dddd, MMMM D, YYYY h:mm A"
  1287. },
  1288. invalidDate: "Invalid date",
  1289. ordinal: "%d",
  1290. dayOfMonthOrdinalParse: /\d{1,2}/,
  1291. relativeTime: {
  1292. future: "in %s",
  1293. past: "%s ago",
  1294. s: "a few seconds",
  1295. ss: "%d seconds",
  1296. m: "a minute",
  1297. mm: "%d minutes",
  1298. h: "an hour",
  1299. hh: "%d hours",
  1300. d: "a day",
  1301. dd: "%d days",
  1302. M: "a month",
  1303. MM: "%d months",
  1304. y: "a year",
  1305. yy: "%d years"
  1306. },
  1307. months: Gt,
  1308. monthsShort: Vt,
  1309. week: {
  1310. dow: 0,
  1311. doy: 6
  1312. },
  1313. weekdays: At,
  1314. weekdaysMin: Zt,
  1315. weekdaysShort: jt,
  1316. meridiemParse: /[ap]\.?m?\.?/i
  1317. }, Xt = {}, Kt = {}, en = /^\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)?)?$/, tn = /^\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)?)?$/, nn = /Z|[+-]\d\d(?::?\d\d)?/, sn = [["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/], ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/], ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/], ["GGGG-[W]WW", /\d{4}-W\d\d/, !1], ["YYYY-DDD", /\d{4}-\d{3}/], ["YYYY-MM", /\d{4}-\d\d/, !1], ["YYYYYYMMDD", /[+-]\d{10}/], ["YYYYMMDD", /\d{8}/], ["GGGG[W]WWE", /\d{4}W\d{3}/], ["GGGG[W]WW", /\d{4}W\d{2}/, !1], ["YYYYDDD", /\d{7}/]], rn = [["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/], ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/], ["HH:mm:ss", /\d\d:\d\d:\d\d/], ["HH:mm", /\d\d:\d\d/], ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/], ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/], ["HHmmss", /\d\d\d\d\d\d/], ["HHmm", /\d\d\d\d/], ["HH", /\d\d/]], an = /^\/?Date\((\-?\d+)/i, on = /^(?:(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}))$/, un = {
  1318. UT: 0,
  1319. GMT: 0,
  1320. EDT: -240,
  1321. EST: -300,
  1322. CDT: -300,
  1323. CST: -360,
  1324. MDT: -360,
  1325. MST: -420,
  1326. PDT: -420,
  1327. PST: -480
  1328. };
  1329. e.createFromInputFallback = v("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function(e) {
  1330. e._d = new Date(e._i + (e._useUTC ? " UTC" : ""))
  1331. }),
  1332. e.ISO_8601 = function() {}
  1333. ,
  1334. e.RFC_2822 = function() {}
  1335. ;
  1336. var ln = v("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
  1337. var e = pe.apply(null, arguments);
  1338. return this.isValid() && e.isValid() ? e < this ? this : e : c()
  1339. })
  1340. , dn = v("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
  1341. var e = pe.apply(null, arguments);
  1342. return this.isValid() && e.isValid() ? e > this ? this : e : c()
  1343. })
  1344. , hn = ["year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond"];
  1345. De("Z", ":"),
  1346. De("ZZ", ""),
  1347. C("Z", Dt),
  1348. C("ZZ", Dt),
  1349. L(["Z", "ZZ"], function(e, t, n) {
  1350. n._useUTC = !0,
  1351. n._tzm = ke(Dt, e)
  1352. });
  1353. var cn = /([\+\-]|\d\d)/gi;
  1354. e.updateOffset = function() {}
  1355. ;
  1356. var fn = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/
  1357. , mn = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  1358. xe.fn = ve.prototype,
  1359. xe.invalid = function() {
  1360. return xe(NaN)
  1361. }
  1362. ;
  1363. var _n = We(1, "add")
  1364. , yn = We(-1, "subtract");
  1365. e.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ",
  1366. e.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
  1367. var gn = v("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(e) {
  1368. return void 0 === e ? this.localeData() : this.locale(e)
  1369. });
  1370. P(0, ["gg", 2], 0, function() {
  1371. return this.weekYear() % 100
  1372. }),
  1373. P(0, ["GG", 2], 0, function() {
  1374. return this.isoWeekYear() % 100
  1375. }),
  1376. Ue("gggg", "weekYear"),
  1377. Ue("ggggg", "weekYear"),
  1378. Ue("GGGG", "isoWeekYear"),
  1379. Ue("GGGGG", "isoWeekYear"),
  1380. Y("weekYear", "gg"),
  1381. Y("isoWeekYear", "GG"),
  1382. x("weekYear", 1),
  1383. x("isoWeekYear", 1),
  1384. C("G", Mt),
  1385. C("g", Mt),
  1386. C("GG", mt, dt),
  1387. C("gg", mt, dt),
  1388. C("GGGG", pt, ct),
  1389. C("gggg", pt, ct),
  1390. C("GGGGG", wt, ft),
  1391. C("ggggg", wt, ft),
  1392. N(["gggg", "ggggg", "GGGG", "GGGGG"], function(e, t, n, s) {
  1393. t[s.substr(0, 2)] = g(e)
  1394. }),
  1395. N(["gg", "GG"], function(t, n, s, i) {
  1396. n[i] = e.parseTwoDigitYear(t)
  1397. }),
  1398. P("Q", 0, "Qo", "quarter"),
  1399. Y("quarter", "Q"),
  1400. x("quarter", 7),
  1401. C("Q", lt),
  1402. L("Q", function(e, t) {
  1403. t[xt] = 3 * (g(e) - 1)
  1404. }),
  1405. P("D", ["DD", 2], "Do", "date"),
  1406. Y("date", "D"),
  1407. x("date", 9),
  1408. C("D", mt),
  1409. C("DD", mt, dt),
  1410. C("Do", function(e, t) {
  1411. return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient
  1412. }),
  1413. L(["D", "DD"], bt),
  1414. L("Do", function(e, t) {
  1415. t[bt] = g(e.match(mt)[0])
  1416. });
  1417. var pn = I("Date", !0);
  1418. P("DDD", ["DDDD", 3], "DDDo", "dayOfYear"),
  1419. Y("dayOfYear", "DDD"),
  1420. x("dayOfYear", 4),
  1421. C("DDD", gt),
  1422. C("DDDD", ht),
  1423. L(["DDD", "DDDD"], function(e, t, n) {
  1424. n._dayOfYear = g(e)
  1425. }),
  1426. P("m", ["mm", 2], 0, "minute"),
  1427. Y("minute", "m"),
  1428. x("minute", 14),
  1429. C("m", mt),
  1430. C("mm", mt, dt),
  1431. L(["m", "mm"], Wt);
  1432. var wn = I("Minutes", !1);
  1433. P("s", ["ss", 2], 0, "second"),
  1434. Y("second", "s"),
  1435. x("second", 15),
  1436. C("s", mt),
  1437. C("ss", mt, dt),
  1438. L(["s", "ss"], Ht);
  1439. var vn = I("Seconds", !1);
  1440. P("S", 0, 0, function() {
  1441. return ~~(this.millisecond() / 100)
  1442. }),
  1443. P(0, ["SS", 2], 0, function() {
  1444. return ~~(this.millisecond() / 10)
  1445. }),
  1446. P(0, ["SSS", 3], 0, "millisecond"),
  1447. P(0, ["SSSS", 4], 0, function() {
  1448. return 10 * this.millisecond()
  1449. }),
  1450. P(0, ["SSSSS", 5], 0, function() {
  1451. return 100 * this.millisecond()
  1452. }),
  1453. P(0, ["SSSSSS", 6], 0, function() {
  1454. return 1e3 * this.millisecond()
  1455. }),
  1456. P(0, ["SSSSSSS", 7], 0, function() {
  1457. return 1e4 * this.millisecond()
  1458. }),
  1459. P(0, ["SSSSSSSS", 8], 0, function() {
  1460. return 1e5 * this.millisecond()
  1461. }),
  1462. P(0, ["SSSSSSSSS", 9], 0, function() {
  1463. return 1e6 * this.millisecond()
  1464. }),
  1465. Y("millisecond", "ms"),
  1466. x("millisecond", 16),
  1467. C("S", gt, lt),
  1468. C("SS", gt, dt),
  1469. C("SSS", gt, ht);
  1470. var Mn;
  1471. for (Mn = "SSSS"; Mn.length <= 9; Mn += "S")
  1472. C(Mn, vt);
  1473. for (Mn = "S"; Mn.length <= 9; Mn += "S")
  1474. L(Mn, Ne);
  1475. var Sn = I("Milliseconds", !1);
  1476. P("z", 0, 0, "zoneAbbr"),
  1477. P("zz", 0, 0, "zoneName");
  1478. var Dn = m.prototype;
  1479. Dn.add = _n,
  1480. Dn.calendar = function(t, n) {
  1481. var s = t || pe()
  1482. , i = Ye(s, this).startOf("day")
  1483. , r = e.calendarFormat(this, i) || "sameElse"
  1484. , a = n && (S(n[r]) ? n[r].call(this, s) : n[r]);
  1485. return this.format(a || this.localeData().calendar(r, this, pe(s)))
  1486. }
  1487. ,
  1488. Dn.clone = function() {
  1489. return new m(this)
  1490. }
  1491. ,
  1492. Dn.diff = function(e, t, n) {
  1493. var s, i, r;
  1494. if (!this.isValid())
  1495. return NaN;
  1496. if (!(s = Ye(e, this)).isValid())
  1497. return NaN;
  1498. switch (i = 6e4 * (s.utcOffset() - this.utcOffset()),
  1499. t = O(t)) {
  1500. case "year":
  1501. r = Re(this, s) / 12;
  1502. break;
  1503. case "month":
  1504. r = Re(this, s);
  1505. break;
  1506. case "quarter":
  1507. r = Re(this, s) / 3;
  1508. break;
  1509. case "second":
  1510. r = (this - s) / 1e3;
  1511. break;
  1512. case "minute":
  1513. r = (this - s) / 6e4;
  1514. break;
  1515. case "hour":
  1516. r = (this - s) / 36e5;
  1517. break;
  1518. case "day":
  1519. r = (this - s - i) / 864e5;
  1520. break;
  1521. case "week":
  1522. r = (this - s - i) / 6048e5;
  1523. break;
  1524. default:
  1525. r = this - s
  1526. }
  1527. return n ? r : y(r)
  1528. }
  1529. ,
  1530. Dn.endOf = function(e) {
  1531. return void 0 === (e = O(e)) || "millisecond" === e ? this : ("date" === e && (e = "day"),
  1532. this.startOf(e).add(1, "isoWeek" === e ? "week" : e).subtract(1, "ms"))
  1533. }
  1534. ,
  1535. Dn.format = function(t) {
  1536. t || (t = this.isUtc() ? e.defaultFormatUtc : e.defaultFormat);
  1537. var n = H(this, t);
  1538. return this.localeData().postformat(n)
  1539. }
  1540. ,
  1541. Dn.from = function(e, t) {
  1542. return this.isValid() && (_(e) && e.isValid() || pe(e).isValid()) ? xe({
  1543. to: this,
  1544. from: e
  1545. }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate()
  1546. }
  1547. ,
  1548. Dn.fromNow = function(e) {
  1549. return this.from(pe(), e)
  1550. }
  1551. ,
  1552. Dn.to = function(e, t) {
  1553. return this.isValid() && (_(e) && e.isValid() || pe(e).isValid()) ? xe({
  1554. from: this,
  1555. to: e
  1556. }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate()
  1557. }
  1558. ,
  1559. Dn.toNow = function(e) {
  1560. return this.to(pe(), e)
  1561. }
  1562. ,
  1563. Dn.get = function(e) {
  1564. return e = O(e),
  1565. S(this[e]) ? this[e]() : this
  1566. }
  1567. ,
  1568. Dn.invalidAt = function() {
  1569. return d(this).overflow
  1570. }
  1571. ,
  1572. Dn.isAfter = function(e, t) {
  1573. var n = _(e) ? e : pe(e);
  1574. return !(!this.isValid() || !n.isValid()) && ("millisecond" === (t = O(s(t) ? "millisecond" : t)) ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf())
  1575. }
  1576. ,
  1577. Dn.isBefore = function(e, t) {
  1578. var n = _(e) ? e : pe(e);
  1579. return !(!this.isValid() || !n.isValid()) && ("millisecond" === (t = O(s(t) ? "millisecond" : t)) ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf())
  1580. }
  1581. ,
  1582. Dn.isBetween = function(e, t, n, s) {
  1583. return ("(" === (s = s || "()")[0] ? this.isAfter(e, n) : !this.isBefore(e, n)) && (")" === s[1] ? this.isBefore(t, n) : !this.isAfter(t, n))
  1584. }
  1585. ,
  1586. Dn.isSame = function(e, t) {
  1587. var n, s = _(e) ? e : pe(e);
  1588. return !(!this.isValid() || !s.isValid()) && ("millisecond" === (t = O(t || "millisecond")) ? this.valueOf() === s.valueOf() : (n = s.valueOf(),
  1589. this.clone().startOf(t).valueOf() <= n && n <= this.clone().endOf(t).valueOf()))
  1590. }
  1591. ,
  1592. Dn.isSameOrAfter = function(e, t) {
  1593. return this.isSame(e, t) || this.isAfter(e, t)
  1594. }
  1595. ,
  1596. Dn.isSameOrBefore = function(e, t) {
  1597. return this.isSame(e, t) || this.isBefore(e, t)
  1598. }
  1599. ,
  1600. Dn.isValid = function() {
  1601. return h(this)
  1602. }
  1603. ,
  1604. Dn.lang = gn,
  1605. Dn.locale = Ce,
  1606. Dn.localeData = Fe,
  1607. Dn.max = dn,
  1608. Dn.min = ln,
  1609. Dn.parsingFlags = function() {
  1610. return u({}, d(this))
  1611. }
  1612. ,
  1613. Dn.set = function(e, t) {
  1614. if ("object" == typeof e)
  1615. for (var n = function(e) {
  1616. var t = [];
  1617. for (var n in e)
  1618. t.push({
  1619. unit: n,
  1620. priority: it[n]
  1621. });
  1622. return t.sort(function(e, t) {
  1623. return e.priority - t.priority
  1624. }),
  1625. t
  1626. }(e = T(e)), s = 0; s < n.length; s++)
  1627. this[n[s].unit](e[n[s].unit]);
  1628. else if (e = O(e),
  1629. S(this[e]))
  1630. return this[e](t);
  1631. return this
  1632. }
  1633. ,
  1634. Dn.startOf = function(e) {
  1635. switch (e = O(e)) {
  1636. case "year":
  1637. this.month(0);
  1638. case "quarter":
  1639. case "month":
  1640. this.date(1);
  1641. case "week":
  1642. case "isoWeek":
  1643. case "day":
  1644. case "date":
  1645. this.hours(0);
  1646. case "hour":
  1647. this.minutes(0);
  1648. case "minute":
  1649. this.seconds(0);
  1650. case "second":
  1651. this.milliseconds(0)
  1652. }
  1653. return "week" === e && this.weekday(0),
  1654. "isoWeek" === e && this.isoWeekday(1),
  1655. "quarter" === e && this.month(3 * Math.floor(this.month() / 3)),
  1656. this
  1657. }
  1658. ,
  1659. Dn.subtract = yn,
  1660. Dn.toArray = function() {
  1661. return [this.year(), this.month(), this.date(), this.hour(), this.minute(), this.second(), this.millisecond()]
  1662. }
  1663. ,
  1664. Dn.toObject = function() {
  1665. return {
  1666. years: this.year(),
  1667. months: this.month(),
  1668. date: this.date(),
  1669. hours: this.hours(),
  1670. minutes: this.minutes(),
  1671. seconds: this.seconds(),
  1672. milliseconds: this.milliseconds()
  1673. }
  1674. }
  1675. ,
  1676. Dn.toDate = function() {
  1677. return new Date(this.valueOf())
  1678. }
  1679. ,
  1680. Dn.toISOString = function(e) {
  1681. if (!this.isValid())
  1682. return null;
  1683. var t = !0 !== e
  1684. , n = t ? this.clone().utc() : this;
  1685. return n.year() < 0 || n.year() > 9999 ? H(n, t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ") : S(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this._d.valueOf()).toISOString().replace("Z", H(n, "Z")) : H(n, t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ")
  1686. }
  1687. ,
  1688. Dn.inspect = function() {
  1689. if (!this.isValid())
  1690. return "moment.invalid(/* " + this._i + " */)";
  1691. var e = "moment"
  1692. , t = "";
  1693. this.isLocal() || (e = 0 === this.utcOffset() ? "moment.utc" : "moment.parseZone",
  1694. t = "Z");
  1695. var n = "[" + e + '("]'
  1696. , s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY"
  1697. , i = t + '[")]';
  1698. return this.format(n + s + "-MM-DD[T]HH:mm:ss.SSS" + i)
  1699. }
  1700. ,
  1701. Dn.toJSON = function() {
  1702. return this.isValid() ? this.toISOString() : null
  1703. }
  1704. ,
  1705. Dn.toString = function() {
  1706. return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")
  1707. }
  1708. ,
  1709. Dn.unix = function() {
  1710. return Math.floor(this.valueOf() / 1e3)
  1711. }
  1712. ,
  1713. Dn.valueOf = function() {
  1714. return this._d.valueOf() - 6e4 * (this._offset || 0)
  1715. }
  1716. ,
  1717. Dn.creationData = function() {
  1718. return {
  1719. input: this._i,
  1720. format: this._f,
  1721. locale: this._locale,
  1722. isUTC: this._isUTC,
  1723. strict: this._strict
  1724. }
  1725. }
  1726. ,
  1727. Dn.year = Lt,
  1728. Dn.isLeapYear = function() {
  1729. return E(this.year())
  1730. }
  1731. ,
  1732. Dn.weekYear = function(e) {
  1733. return Le.call(this, e, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy)
  1734. }
  1735. ,
  1736. Dn.isoWeekYear = function(e) {
  1737. return Le.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4)
  1738. }
  1739. ,
  1740. Dn.quarter = Dn.quarters = function(e) {
  1741. return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + this.month() % 3)
  1742. }
  1743. ,
  1744. Dn.month = $,
  1745. Dn.daysInMonth = function() {
  1746. return Z(this.year(), this.month())
  1747. }
  1748. ,
  1749. Dn.week = Dn.weeks = function(e) {
  1750. var t = this.localeData().week(this);
  1751. return null == e ? t : this.add(7 * (e - t), "d")
  1752. }
  1753. ,
  1754. Dn.isoWeek = Dn.isoWeeks = function(e) {
  1755. var t = X(this, 1, 4).week;
  1756. return null == e ? t : this.add(7 * (e - t), "d")
  1757. }
  1758. ,
  1759. Dn.weeksInYear = function() {
  1760. var e = this.localeData()._week;
  1761. return K(this.year(), e.dow, e.doy)
  1762. }
  1763. ,
  1764. Dn.isoWeeksInYear = function() {
  1765. return K(this.year(), 1, 4)
  1766. }
  1767. ,
  1768. Dn.date = pn,
  1769. Dn.day = Dn.days = function(e) {
  1770. if (!this.isValid())
  1771. return null != e ? this : NaN;
  1772. var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1773. return null != e ? (e = function(e, t) {
  1774. return "string" != typeof e ? e : isNaN(e) ? "number" == typeof (e = t.weekdaysParse(e)) ? e : null : parseInt(e, 10)
  1775. }(e, this.localeData()),
  1776. this.add(e - t, "d")) : t
  1777. }
  1778. ,
  1779. Dn.weekday = function(e) {
  1780. if (!this.isValid())
  1781. return null != e ? this : NaN;
  1782. var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1783. return null == e ? t : this.add(e - t, "d")
  1784. }
  1785. ,
  1786. Dn.isoWeekday = function(e) {
  1787. if (!this.isValid())
  1788. return null != e ? this : NaN;
  1789. if (null != e) {
  1790. var t = function(e, t) {
  1791. return "string" == typeof e ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e
  1792. }(e, this.localeData());
  1793. return this.day(this.day() % 7 ? t : t - 7)
  1794. }
  1795. return this.day() || 7
  1796. }
  1797. ,
  1798. Dn.dayOfYear = function(e) {
  1799. var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
  1800. return null == e ? t : this.add(e - t, "d")
  1801. }
  1802. ,
  1803. Dn.hour = Dn.hours = Bt,
  1804. Dn.minute = Dn.minutes = wn,
  1805. Dn.second = Dn.seconds = vn,
  1806. Dn.millisecond = Dn.milliseconds = Sn,
  1807. Dn.utcOffset = function(t, n, s) {
  1808. var i, r = this._offset || 0;
  1809. if (!this.isValid())
  1810. return null != t ? this : NaN;
  1811. if (null != t) {
  1812. if ("string" == typeof t) {
  1813. if (null === (t = ke(Dt, t)))
  1814. return this
  1815. } else
  1816. Math.abs(t) < 16 && !s && (t *= 60);
  1817. return !this._isUTC && n && (i = Oe(this)),
  1818. this._offset = t,
  1819. this._isUTC = !0,
  1820. null != i && this.add(i, "m"),
  1821. r !== t && (!n || this._changeInProgress ? He(this, xe(t - r, "m"), 1, !1) : this._changeInProgress || (this._changeInProgress = !0,
  1822. e.updateOffset(this, !0),
  1823. this._changeInProgress = null)),
  1824. this
  1825. }
  1826. return this._isUTC ? r : Oe(this)
  1827. }
  1828. ,
  1829. Dn.utc = function(e) {
  1830. return this.utcOffset(0, e)
  1831. }
  1832. ,
  1833. Dn.local = function(e) {
  1834. return this._isUTC && (this.utcOffset(0, e),
  1835. this._isUTC = !1,
  1836. e && this.subtract(Oe(this), "m")),
  1837. this
  1838. }
  1839. ,
  1840. Dn.parseZone = function() {
  1841. if (null != this._tzm)
  1842. this.utcOffset(this._tzm, !1, !0);
  1843. else if ("string" == typeof this._i) {
  1844. var e = ke(St, this._i);
  1845. null != e ? this.utcOffset(e) : this.utcOffset(0, !0)
  1846. }
  1847. return this
  1848. }
  1849. ,
  1850. Dn.hasAlignedHourOffset = function(e) {
  1851. return !!this.isValid() && (e = e ? pe(e).utcOffset() : 0,
  1852. (this.utcOffset() - e) % 60 == 0)
  1853. }
  1854. ,
  1855. Dn.isDST = function() {
  1856. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset()
  1857. }
  1858. ,
  1859. Dn.isLocal = function() {
  1860. return !!this.isValid() && !this._isUTC
  1861. }
  1862. ,
  1863. Dn.isUtcOffset = function() {
  1864. return !!this.isValid() && this._isUTC
  1865. }
  1866. ,
  1867. Dn.isUtc = Te,
  1868. Dn.isUTC = Te,
  1869. Dn.zoneAbbr = function() {
  1870. return this._isUTC ? "UTC" : ""
  1871. }
  1872. ,
  1873. Dn.zoneName = function() {
  1874. return this._isUTC ? "Coordinated Universal Time" : ""
  1875. }
  1876. ,
  1877. Dn.dates = v("dates accessor is deprecated. Use date instead.", pn),
  1878. Dn.months = v("months accessor is deprecated. Use month instead", $),
  1879. Dn.years = v("years accessor is deprecated. Use year instead", Lt),
  1880. Dn.zone = v("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", function(e, t) {
  1881. return null != e ? ("string" != typeof e && (e = -e),
  1882. this.utcOffset(e, t),
  1883. this) : -this.utcOffset()
  1884. }),
  1885. Dn.isDSTShifted = v("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", function() {
  1886. if (!s(this._isDSTShifted))
  1887. return this._isDSTShifted;
  1888. var e = {};
  1889. if (f(e, this),
  1890. (e = ye(e))._a) {
  1891. var t = e._isUTC ? l(e._a) : pe(e._a);
  1892. this._isDSTShifted = this.isValid() && p(e._a, t.toArray()) > 0
  1893. } else
  1894. this._isDSTShifted = !1;
  1895. return this._isDSTShifted
  1896. });
  1897. var kn = k.prototype;
  1898. kn.calendar = function(e, t, n) {
  1899. var s = this._calendar[e] || this._calendar.sameElse;
  1900. return S(s) ? s.call(t, n) : s
  1901. }
  1902. ,
  1903. kn.longDateFormat = function(e) {
  1904. var t = this._longDateFormat[e]
  1905. , n = this._longDateFormat[e.toUpperCase()];
  1906. return t || !n ? t : (this._longDateFormat[e] = n.replace(/MMMM|MM|DD|dddd/g, function(e) {
  1907. return e.slice(1)
  1908. }),
  1909. this._longDateFormat[e])
  1910. }
  1911. ,
  1912. kn.invalidDate = function() {
  1913. return this._invalidDate
  1914. }
  1915. ,
  1916. kn.ordinal = function(e) {
  1917. return this._ordinal.replace("%d", e)
  1918. }
  1919. ,
  1920. kn.preparse = Ge,
  1921. kn.postformat = Ge,
  1922. kn.relativeTime = function(e, t, n, s) {
  1923. var i = this._relativeTime[n];
  1924. return S(i) ? i(e, t, n, s) : i.replace(/%d/i, e)
  1925. }
  1926. ,
  1927. kn.pastFuture = function(e, t) {
  1928. var n = this._relativeTime[e > 0 ? "future" : "past"];
  1929. return S(n) ? n(t) : n.replace(/%s/i, t)
  1930. }
  1931. ,
  1932. kn.set = function(e) {
  1933. var t, n;
  1934. for (n in e)
  1935. S(t = e[n]) ? this[n] = t : this["_" + n] = t;
  1936. this._config = e,
  1937. this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source)
  1938. }
  1939. ,
  1940. kn.months = function(e, n) {
  1941. return e ? t(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Nt).test(n) ? "format" : "standalone"][e.month()] : t(this._months) ? this._months : this._months.standalone
  1942. }
  1943. ,
  1944. kn.monthsShort = function(e, n) {
  1945. return e ? t(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Nt.test(n) ? "format" : "standalone"][e.month()] : t(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone
  1946. }
  1947. ,
  1948. kn.monthsParse = function(e, t, n) {
  1949. var s, i, r;
  1950. if (this._monthsParseExact)
  1951. return function(e, t, n) {
  1952. var s, i, r, a = e.toLocaleLowerCase();
  1953. if (!this._monthsParse)
  1954. for (this._monthsParse = [],
  1955. this._longMonthsParse = [],
  1956. this._shortMonthsParse = [],
  1957. s = 0; s < 12; ++s)
  1958. r = l([2e3, s]),
  1959. this._shortMonthsParse[s] = this.monthsShort(r, "").toLocaleLowerCase(),
  1960. this._longMonthsParse[s] = this.months(r, "").toLocaleLowerCase();
  1961. return n ? "MMM" === t ? -1 !== (i = Ut.call(this._shortMonthsParse, a)) ? i : null : -1 !== (i = Ut.call(this._longMonthsParse, a)) ? i : null : "MMM" === t ? -1 !== (i = Ut.call(this._shortMonthsParse, a)) ? i : -1 !== (i = Ut.call(this._longMonthsParse, a)) ? i : null : -1 !== (i = Ut.call(this._longMonthsParse, a)) ? i : -1 !== (i = Ut.call(this._shortMonthsParse, a)) ? i : null
  1962. }
  1963. .call(this, e, t, n);
  1964. for (this._monthsParse || (this._monthsParse = [],
  1965. this._longMonthsParse = [],
  1966. this._shortMonthsParse = []),
  1967. s = 0; s < 12; s++) {
  1968. if (i = l([2e3, s]),
  1969. n && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp("^" + this.months(i, "").replace(".", "") + "$","i"),
  1970. this._shortMonthsParse[s] = new RegExp("^" + this.monthsShort(i, "").replace(".", "") + "$","i")),
  1971. n || this._monthsParse[s] || (r = "^" + this.months(i, "") + "|^" + this.monthsShort(i, ""),
  1972. this._monthsParse[s] = new RegExp(r.replace(".", ""),"i")),
  1973. n && "MMMM" === t && this._longMonthsParse[s].test(e))
  1974. return s;
  1975. if (n && "MMM" === t && this._shortMonthsParse[s].test(e))
  1976. return s;
  1977. if (!n && this._monthsParse[s].test(e))
  1978. return s
  1979. }
  1980. }
  1981. ,
  1982. kn.monthsRegex = function(e) {
  1983. return this._monthsParseExact ? (o(this, "_monthsRegex") || q.call(this),
  1984. e ? this._monthsStrictRegex : this._monthsRegex) : (o(this, "_monthsRegex") || (this._monthsRegex = It),
  1985. this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex)
  1986. }
  1987. ,
  1988. kn.monthsShortRegex = function(e) {
  1989. return this._monthsParseExact ? (o(this, "_monthsRegex") || q.call(this),
  1990. e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (o(this, "_monthsShortRegex") || (this._monthsShortRegex = Et),
  1991. this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex)
  1992. }
  1993. ,
  1994. kn.week = function(e) {
  1995. return X(e, this._week.dow, this._week.doy).week
  1996. }
  1997. ,
  1998. kn.firstDayOfYear = function() {
  1999. return this._week.doy
  2000. }
  2001. ,
  2002. kn.firstDayOfWeek = function() {
  2003. return this._week.dow
  2004. }
  2005. ,
  2006. kn.weekdays = function(e, n) {
  2007. return e ? t(this._weekdays) ? this._weekdays[e.day()] : this._weekdays[this._weekdays.isFormat.test(n) ? "format" : "standalone"][e.day()] : t(this._weekdays) ? this._weekdays : this._weekdays.standalone
  2008. }
  2009. ,
  2010. kn.weekdaysMin = function(e) {
  2011. return e ? this._weekdaysMin[e.day()] : this._weekdaysMin
  2012. }
  2013. ,
  2014. kn.weekdaysShort = function(e) {
  2015. return e ? this._weekdaysShort[e.day()] : this._weekdaysShort
  2016. }
  2017. ,
  2018. kn.weekdaysParse = function(e, t, n) {
  2019. var s, i, r;
  2020. if (this._weekdaysParseExact)
  2021. return function(e, t, n) {
  2022. var s, i, r, a = e.toLocaleLowerCase();
  2023. if (!this._weekdaysParse)
  2024. for (this._weekdaysParse = [],
  2025. this._shortWeekdaysParse = [],
  2026. this._minWeekdaysParse = [],
  2027. s = 0; s < 7; ++s)
  2028. r = l([2e3, 1]).day(s),
  2029. this._minWeekdaysParse[s] = this.weekdaysMin(r, "").toLocaleLowerCase(),
  2030. this._shortWeekdaysParse[s] = this.weekdaysShort(r, "").toLocaleLowerCase(),
  2031. this._weekdaysParse[s] = this.weekdays(r, "").toLocaleLowerCase();
  2032. return n ? "dddd" === t ? -1 !== (i = Ut.call(this._weekdaysParse, a)) ? i : null : "ddd" === t ? -1 !== (i = Ut.call(this._shortWeekdaysParse, a)) ? i : null : -1 !== (i = Ut.call(this._minWeekdaysParse, a)) ? i : null : "dddd" === t ? -1 !== (i = Ut.call(this._weekdaysParse, a)) ? i : -1 !== (i = Ut.call(this._shortWeekdaysParse, a)) ? i : -1 !== (i = Ut.call(this._minWeekdaysParse, a)) ? i : null : "ddd" === t ? -1 !== (i = Ut.call(this._shortWeekdaysParse, a)) ? i : -1 !== (i = Ut.call(this._weekdaysParse, a)) ? i : -1 !== (i = Ut.call(this._minWeekdaysParse, a)) ? i : null : -1 !== (i = Ut.call(this._minWeekdaysParse, a)) ? i : -1 !== (i = Ut.call(this._weekdaysParse, a)) ? i : -1 !== (i = Ut.call(this._shortWeekdaysParse, a)) ? i : null
  2033. }
  2034. .call(this, e, t, n);
  2035. for (this._weekdaysParse || (this._weekdaysParse = [],
  2036. this._minWeekdaysParse = [],
  2037. this._shortWeekdaysParse = [],
  2038. this._fullWeekdaysParse = []),
  2039. s = 0; s < 7; s++) {
  2040. if (i = l([2e3, 1]).day(s),
  2041. n && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp("^" + this.weekdays(i, "").replace(".", ".?") + "$","i"),
  2042. this._shortWeekdaysParse[s] = new RegExp("^" + this.weekdaysShort(i, "").replace(".", ".?") + "$","i"),
  2043. this._minWeekdaysParse[s] = new RegExp("^" + this.weekdaysMin(i, "").replace(".", ".?") + "$","i")),
  2044. this._weekdaysParse[s] || (r = "^" + this.weekdays(i, "") + "|^" + this.weekdaysShort(i, "") + "|^" + this.weekdaysMin(i, ""),
  2045. this._weekdaysParse[s] = new RegExp(r.replace(".", ""),"i")),
  2046. n && "dddd" === t && this._fullWeekdaysParse[s].test(e))
  2047. return s;
  2048. if (n && "ddd" === t && this._shortWeekdaysParse[s].test(e))
  2049. return s;
  2050. if (n && "dd" === t && this._minWeekdaysParse[s].test(e))
  2051. return s;
  2052. if (!n && this._weekdaysParse[s].test(e))
  2053. return s
  2054. }
  2055. }
  2056. ,
  2057. kn.weekdaysRegex = function(e) {
  2058. return this._weekdaysParseExact ? (o(this, "_weekdaysRegex") || ee.call(this),
  2059. e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (o(this, "_weekdaysRegex") || (this._weekdaysRegex = zt),
  2060. this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex)
  2061. }
  2062. ,
  2063. kn.weekdaysShortRegex = function(e) {
  2064. return this._weekdaysParseExact ? (o(this, "_weekdaysRegex") || ee.call(this),
  2065. e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (o(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = $t),
  2066. this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)
  2067. }
  2068. ,
  2069. kn.weekdaysMinRegex = function(e) {
  2070. return this._weekdaysParseExact ? (o(this, "_weekdaysRegex") || ee.call(this),
  2071. e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (o(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = qt),
  2072. this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)
  2073. }
  2074. ,
  2075. kn.isPM = function(e) {
  2076. return "p" === (e + "").toLowerCase().charAt(0)
  2077. }
  2078. ,
  2079. kn.meridiem = function(e, t, n) {
  2080. return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM"
  2081. }
  2082. ,
  2083. ae("en", {
  2084. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  2085. ordinal: function(e) {
  2086. var t = e % 10;
  2087. return e + (1 === g(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th")
  2088. }
  2089. }),
  2090. e.lang = v("moment.lang is deprecated. Use moment.locale instead.", ae),
  2091. e.langData = v("moment.langData is deprecated. Use moment.localeData instead.", ue);
  2092. var Yn = Math.abs
  2093. , On = $e("ms")
  2094. , Tn = $e("s")
  2095. , xn = $e("m")
  2096. , bn = $e("h")
  2097. , Pn = $e("d")
  2098. , Wn = $e("w")
  2099. , Hn = $e("M")
  2100. , Rn = $e("y")
  2101. , Cn = qe("milliseconds")
  2102. , Fn = qe("seconds")
  2103. , Un = qe("minutes")
  2104. , Ln = qe("hours")
  2105. , Nn = qe("days")
  2106. , Gn = qe("months")
  2107. , Vn = qe("years")
  2108. , En = Math.round
  2109. , In = {
  2110. ss: 44,
  2111. s: 45,
  2112. m: 45,
  2113. h: 22,
  2114. d: 26,
  2115. M: 11
  2116. }
  2117. , An = Math.abs
  2118. , jn = ve.prototype;
  2119. return jn.isValid = function() {
  2120. return this._isValid
  2121. }
  2122. ,
  2123. jn.abs = function() {
  2124. var e = this._data;
  2125. return this._milliseconds = Yn(this._milliseconds),
  2126. this._days = Yn(this._days),
  2127. this._months = Yn(this._months),
  2128. e.milliseconds = Yn(e.milliseconds),
  2129. e.seconds = Yn(e.seconds),
  2130. e.minutes = Yn(e.minutes),
  2131. e.hours = Yn(e.hours),
  2132. e.months = Yn(e.months),
  2133. e.years = Yn(e.years),
  2134. this
  2135. }
  2136. ,
  2137. jn.add = function(e, t) {
  2138. return Ae(this, e, t, 1)
  2139. }
  2140. ,
  2141. jn.subtract = function(e, t) {
  2142. return Ae(this, e, t, -1)
  2143. }
  2144. ,
  2145. jn.as = function(e) {
  2146. if (!this.isValid())
  2147. return NaN;
  2148. var t, n, s = this._milliseconds;
  2149. if ("month" === (e = O(e)) || "year" === e)
  2150. return t = this._days + s / 864e5,
  2151. n = this._months + Ze(t),
  2152. "month" === e ? n : n / 12;
  2153. switch (t = this._days + Math.round(ze(this._months)),
  2154. e) {
  2155. case "week":
  2156. return t / 7 + s / 6048e5;
  2157. case "day":
  2158. return t + s / 864e5;
  2159. case "hour":
  2160. return 24 * t + s / 36e5;
  2161. case "minute":
  2162. return 1440 * t + s / 6e4;
  2163. case "second":
  2164. return 86400 * t + s / 1e3;
  2165. case "millisecond":
  2166. return Math.floor(864e5 * t) + s;
  2167. default:
  2168. throw new Error("Unknown unit " + e)
  2169. }
  2170. }
  2171. ,
  2172. jn.asMilliseconds = On,
  2173. jn.asSeconds = Tn,
  2174. jn.asMinutes = xn,
  2175. jn.asHours = bn,
  2176. jn.asDays = Pn,
  2177. jn.asWeeks = Wn,
  2178. jn.asMonths = Hn,
  2179. jn.asYears = Rn,
  2180. jn.valueOf = function() {
  2181. return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * g(this._months / 12) : NaN
  2182. }
  2183. ,
  2184. jn._bubble = function() {
  2185. var e, t, n, s, i, r = this._milliseconds, a = this._days, o = this._months, u = this._data;
  2186. return r >= 0 && a >= 0 && o >= 0 || r <= 0 && a <= 0 && o <= 0 || (r += 864e5 * je(ze(o) + a),
  2187. a = 0,
  2188. o = 0),
  2189. u.milliseconds = r % 1e3,
  2190. e = y(r / 1e3),
  2191. u.seconds = e % 60,
  2192. t = y(e / 60),
  2193. u.minutes = t % 60,
  2194. n = y(t / 60),
  2195. u.hours = n % 24,
  2196. a += y(n / 24),
  2197. i = y(Ze(a)),
  2198. o += i,
  2199. a -= je(ze(i)),
  2200. s = y(o / 12),
  2201. o %= 12,
  2202. u.days = a,
  2203. u.months = o,
  2204. u.years = s,
  2205. this
  2206. }
  2207. ,
  2208. jn.clone = function() {
  2209. return xe(this)
  2210. }
  2211. ,
  2212. jn.get = function(e) {
  2213. return e = O(e),
  2214. this.isValid() ? this[e + "s"]() : NaN
  2215. }
  2216. ,
  2217. jn.milliseconds = Cn,
  2218. jn.seconds = Fn,
  2219. jn.minutes = Un,
  2220. jn.hours = Ln,
  2221. jn.days = Nn,
  2222. jn.weeks = function() {
  2223. return y(this.days() / 7)
  2224. }
  2225. ,
  2226. jn.months = Gn,
  2227. jn.years = Vn,
  2228. jn.humanize = function(e) {
  2229. if (!this.isValid())
  2230. return this.localeData().invalidDate();
  2231. var t = this.localeData()
  2232. , n = function(e, t, n) {
  2233. var s = xe(e).abs()
  2234. , i = En(s.as("s"))
  2235. , r = En(s.as("m"))
  2236. , a = En(s.as("h"))
  2237. , o = En(s.as("d"))
  2238. , u = En(s.as("M"))
  2239. , l = En(s.as("y"))
  2240. , d = i <= In.ss && ["s", i] || i < In.s && ["ss", i] || r <= 1 && ["m"] || r < In.m && ["mm", r] || a <= 1 && ["h"] || a < In.h && ["hh", a] || o <= 1 && ["d"] || o < In.d && ["dd", o] || u <= 1 && ["M"] || u < In.M && ["MM", u] || l <= 1 && ["y"] || ["yy", l];
  2241. return d[2] = t,
  2242. d[3] = +e > 0,
  2243. d[4] = n,
  2244. function(e, t, n, s, i) {
  2245. return i.relativeTime(t || 1, !!n, e, s)
  2246. }
  2247. .apply(null, d)
  2248. }(this, !e, t);
  2249. return e && (n = t.pastFuture(+this, n)),
  2250. t.postformat(n)
  2251. }
  2252. ,
  2253. jn.toISOString = Be,
  2254. jn.toString = Be,
  2255. jn.toJSON = Be,
  2256. jn.locale = Ce,
  2257. jn.localeData = Fe,
  2258. jn.toIsoString = v("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", Be),
  2259. jn.lang = gn,
  2260. P("X", 0, 0, "unix"),
  2261. P("x", 0, 0, "valueOf"),
  2262. C("x", Mt),
  2263. C("X", /[+-]?\d+(\.\d{1,3})?/),
  2264. L("X", function(e, t, n) {
  2265. n._d = new Date(1e3 * parseFloat(e, 10))
  2266. }),
  2267. L("x", function(e, t, n) {
  2268. n._d = new Date(g(e))
  2269. }),
  2270. e.version = "2.20.1",
  2271. function(e) {
  2272. Qe = e
  2273. }(pe),
  2274. e.fn = Dn,
  2275. e.min = function() {
  2276. return we("isBefore", [].slice.call(arguments, 0))
  2277. }
  2278. ,
  2279. e.max = function() {
  2280. return we("isAfter", [].slice.call(arguments, 0))
  2281. }
  2282. ,
  2283. e.now = function() {
  2284. return Date.now ? Date.now() : +new Date
  2285. }
  2286. ,
  2287. e.utc = l,
  2288. e.unix = function(e) {
  2289. return pe(1e3 * e)
  2290. }
  2291. ,
  2292. e.months = function(e, t) {
  2293. return Ee(e, t, "months")
  2294. }
  2295. ,
  2296. e.isDate = r,
  2297. e.locale = ae,
  2298. e.invalid = c,
  2299. e.duration = xe,
  2300. e.isMoment = _,
  2301. e.weekdays = function(e, t, n) {
  2302. return Ie(e, t, n, "weekdays")
  2303. }
  2304. ,
  2305. e.parseZone = function() {
  2306. return pe.apply(null, arguments).parseZone()
  2307. }
  2308. ,
  2309. e.localeData = ue,
  2310. e.isDuration = Me,
  2311. e.monthsShort = function(e, t) {
  2312. return Ee(e, t, "monthsShort")
  2313. }
  2314. ,
  2315. e.weekdaysMin = function(e, t, n) {
  2316. return Ie(e, t, n, "weekdaysMin")
  2317. }
  2318. ,
  2319. e.defineLocale = oe,
  2320. e.updateLocale = function(e, t) {
  2321. if (null != t) {
  2322. var n, s, i = Qt;
  2323. null != (s = re(e)) && (i = s._config),
  2324. (n = new k(t = D(i, t))).parentLocale = Xt[e],
  2325. Xt[e] = n,
  2326. ae(e)
  2327. } else
  2328. null != Xt[e] && (null != Xt[e].parentLocale ? Xt[e] = Xt[e].parentLocale : null != Xt[e] && delete Xt[e]);
  2329. return Xt[e]
  2330. }
  2331. ,
  2332. e.locales = function() {
  2333. return nt(Xt)
  2334. }
  2335. ,
  2336. e.weekdaysShort = function(e, t, n) {
  2337. return Ie(e, t, n, "weekdaysShort")
  2338. }
  2339. ,
  2340. e.normalizeUnits = O,
  2341. e.relativeTimeRounding = function(e) {
  2342. return void 0 === e ? En : "function" == typeof e && (En = e,
  2343. !0)
  2344. }
  2345. ,
  2346. e.relativeTimeThreshold = function(e, t) {
  2347. return void 0 !== In[e] && (void 0 === t ? In[e] : (In[e] = t,
  2348. "s" === e && (In.ss = t - 1),
  2349. !0))
  2350. }
  2351. ,
  2352. e.calendarFormat = function(e, t) {
  2353. var n = e.diff(t, "days", !0);
  2354. return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse"
  2355. }
  2356. ,
  2357. e.prototype = Dn,
  2358. e.HTML5_FMT = {
  2359. DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  2360. DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  2361. DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  2362. DATE: "YYYY-MM-DD",
  2363. TIME: "HH:mm",
  2364. TIME_SECONDS: "HH:mm:ss",
  2365. TIME_MS: "HH:mm:ss.SSS",
  2366. WEEK: "YYYY-[W]WW",
  2367. MONTH: "YYYY-MM"
  2368. },
  2369. e
  2370. });