@opfr/utils-lang 0.0.40 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/array.test.d.ts +1 -0
- package/dist/__tests__/array.test.d.ts.map +1 -0
- package/dist/__tests__/common.test.d.ts +1 -0
- package/dist/__tests__/common.test.d.ts.map +1 -0
- package/dist/__tests__/date.test.d.ts +1 -0
- package/dist/__tests__/date.test.d.ts.map +1 -0
- package/dist/__tests__/duration.test.d.ts +1 -0
- package/dist/__tests__/duration.test.d.ts.map +1 -0
- package/dist/__tests__/function.test.d.ts +1 -0
- package/dist/__tests__/function.test.d.ts.map +1 -0
- package/dist/__tests__/number.test.d.ts +1 -0
- package/dist/__tests__/number.test.d.ts.map +1 -0
- package/dist/__tests__/object.test.d.ts +1 -0
- package/dist/__tests__/object.test.d.ts.map +1 -0
- package/dist/__tests__/string.test.d.ts +1 -0
- package/dist/__tests__/string.test.d.ts.map +1 -0
- package/dist/array.d.ts +7 -0
- package/dist/array.d.ts.map +1 -0
- package/dist/common.d.ts +2 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/date.d.ts +2 -1
- package/dist/date.d.ts.map +1 -0
- package/dist/duration.d.ts +3 -2
- package/dist/duration.d.ts.map +1 -0
- package/dist/emojis.d.ts +1 -0
- package/dist/emojis.d.ts.map +1 -0
- package/dist/function.d.ts +1 -0
- package/dist/function.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/{utils-lang.js → index.es.js} +686 -670
- package/dist/index.umd.js +10 -0
- package/dist/locales/fr.d.ts +1 -0
- package/dist/locales/fr.d.ts.map +1 -0
- package/dist/number.d.ts +1 -0
- package/dist/number.d.ts.map +1 -0
- package/dist/object.d.ts +1 -0
- package/dist/object.d.ts.map +1 -0
- package/dist/string.d.ts +2 -1
- package/dist/string.d.ts.map +1 -0
- package/package.json +25 -52
- package/dist/utils-lang.d.ts +0 -1
- package/dist/utils-lang.umd.cjs +0 -10
|
@@ -1,34 +1,74 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Cn = (e) => new Intl.NumberFormat("de-DE").format(e), Yr = (e, t, r = Math.random) => Math.floor(r() * (t - e) + e), Ln = (e) => {
|
|
2
2
|
let t = e;
|
|
3
3
|
const r = 2147483648, s = 1103515245, a = 12345;
|
|
4
4
|
return () => (t = (s * t + a) % r, t / (r - 1));
|
|
5
|
-
},
|
|
5
|
+
}, In = (e, t, r) => Math.max(t, Math.min(e, r)), Un = (e) => typeof e == "number", Hn = (e, t) => e.reduce((r, s, a) => {
|
|
6
6
|
const i = Math.floor(a / t);
|
|
7
7
|
return (r[i] || (r[i] = [])).push(s), r;
|
|
8
|
-
}, []),
|
|
8
|
+
}, []), En = (e, t) => e.reduce(
|
|
9
9
|
(r, s) => ((r[t(s)] = r[t(s)] || []).push(s), r),
|
|
10
10
|
{}
|
|
11
|
-
), An = (e, t) => [...e].sort((r, s) => t(r) < t(s) ? -1 : t(r) > t(s) ? 1 : 0),
|
|
11
|
+
), An = (e, t) => [...e].sort((r, s) => t(r) < t(s) ? -1 : t(r) > t(s) ? 1 : 0), jn = (e, t, r = (s) => s) => e.filter((s) => t.some((a) => r(a) === r(s))), Gn = (e, t, r = (s) => s) => e.filter((s) => !t.some((a) => r(a) === r(s))), Vn = (e, t) => [...new Set(e.map((r) => t(r)))], zn = (e) => {
|
|
12
12
|
for (let t = e.length - 1; t > 0; t--) {
|
|
13
13
|
const r = Math.floor(Math.random() * (t + 1));
|
|
14
14
|
[e[t], e[r]] = [e[r], e[t]];
|
|
15
15
|
}
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, $n = (e) => e.filter((t) => t != null), qn = (e, t, r) => [
|
|
18
18
|
...e,
|
|
19
19
|
...r ? [t] : []
|
|
20
|
-
],
|
|
20
|
+
], Zn = (e, t, r) => [...r ? [t] : [], ...e], Bn = (e, t, r) => [...e, ...r ? t : []], Jn = (e) => e[Yr(0, e.length)], Qn = ({ start: e = 0, stop: t, step: r = 1 }) => {
|
|
21
|
+
if (r === 0)
|
|
22
|
+
throw new RangeError("step cannot be equal to 0");
|
|
23
|
+
if (r > 0 && e >= t || r < 0 && e <= t)
|
|
24
|
+
return [];
|
|
25
|
+
const a = [];
|
|
26
|
+
for (let i = e; r > 0 ? i < t : i > t; i += r)
|
|
27
|
+
a.push(i);
|
|
28
|
+
return a;
|
|
29
|
+
}, br = " ", Or = " ", Kn = (e, t = "") => e.split(t).join(br), Xn = (e, t = "") => e.split(t).join(Or), eo = (e, t) => e.length > t ? e.slice(0, t - 3) + "..." : e, Tr = (e) => e && e[0].toUpperCase() + e.slice(1), Nt = (e) => e.split(" ").map(Tr).join(" "), to = (e) => /^\d+$/.test(e), ro = (e) => e !== Math.round(e) || e < 1 || e === 1 / 0 || e === -1 / 0 ? null : e === 1 ? "1er" : `${e}ème`, so = (e) => e.trim().replace(/\s+/gi, " "), ao = (e) => {
|
|
30
|
+
const t = e.split(" "), s = ((a) => {
|
|
31
|
+
let i = 1 / 0;
|
|
32
|
+
for (let n = 0; n < a.length; n++) {
|
|
33
|
+
const u = Math.abs(
|
|
34
|
+
a.slice(0, n + 1).join(" ").length - a.slice(n + 1).join(" ").length
|
|
35
|
+
);
|
|
36
|
+
if (u <= i)
|
|
37
|
+
i = u;
|
|
38
|
+
else
|
|
39
|
+
return n - 1;
|
|
40
|
+
}
|
|
41
|
+
return i;
|
|
42
|
+
})(t);
|
|
43
|
+
return t.length === 1 ? [t[0]] : [t.slice(0, s + 1), t.slice(s + 1)].map(
|
|
44
|
+
(a) => a.join(" ")
|
|
45
|
+
);
|
|
46
|
+
}, xr = (e) => typeof e == "string", Pr = (e) => {
|
|
47
|
+
const t = e.replace(
|
|
48
|
+
/[^a-zA-Z0-9]+(.)/g,
|
|
49
|
+
(r, s) => s.toUpperCase()
|
|
50
|
+
);
|
|
51
|
+
return `${t.charAt(0).toLowerCase()}${t.slice(1)}`;
|
|
52
|
+
}, io = (e) => {
|
|
53
|
+
const t = Pr(e);
|
|
54
|
+
return `${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
55
|
+
}, no = (e) => e != null, oo = (e) => xr(e) ? /^[\],:{}\s]*$/.test(
|
|
56
|
+
e.replace(/\\["\\\/bfnrtu]/g, "@").replace(
|
|
57
|
+
/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
|
58
|
+
"]"
|
|
59
|
+
).replace(/(?:^|:|,)(?:\s*\[)+/g, "")
|
|
60
|
+
) : !1;
|
|
21
61
|
//! moment.js
|
|
22
62
|
//! version : 2.30.1
|
|
23
63
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
24
64
|
//! license : MIT
|
|
25
65
|
//! momentjs.com
|
|
26
|
-
var
|
|
66
|
+
var Ft;
|
|
27
67
|
function l() {
|
|
28
|
-
return
|
|
68
|
+
return Ft.apply(null, arguments);
|
|
29
69
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
70
|
+
function Wr(e) {
|
|
71
|
+
Ft = e;
|
|
32
72
|
}
|
|
33
73
|
function N(e) {
|
|
34
74
|
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
@@ -57,7 +97,7 @@ function q(e) {
|
|
|
57
97
|
function Me(e) {
|
|
58
98
|
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
59
99
|
}
|
|
60
|
-
function
|
|
100
|
+
function Ct(e, t) {
|
|
61
101
|
var r = [], s, a = e.length;
|
|
62
102
|
for (s = 0; s < a; ++s)
|
|
63
103
|
r.push(t(e[s], s));
|
|
@@ -69,9 +109,9 @@ function Q(e, t) {
|
|
|
69
109
|
return p(t, "toString") && (e.toString = t.toString), p(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
70
110
|
}
|
|
71
111
|
function U(e, t, r, s) {
|
|
72
|
-
return
|
|
112
|
+
return ar(e, t, r, s, !0).utc();
|
|
73
113
|
}
|
|
74
|
-
function
|
|
114
|
+
function Rr() {
|
|
75
115
|
return {
|
|
76
116
|
empty: !1,
|
|
77
117
|
unusedTokens: [],
|
|
@@ -92,7 +132,7 @@ function Or() {
|
|
|
92
132
|
};
|
|
93
133
|
}
|
|
94
134
|
function h(e) {
|
|
95
|
-
return e._pf == null && (e._pf =
|
|
135
|
+
return e._pf == null && (e._pf = Rr()), e._pf;
|
|
96
136
|
}
|
|
97
137
|
var Je;
|
|
98
138
|
Array.prototype.some ? Je = Array.prototype.some : Je = function(e) {
|
|
@@ -159,7 +199,7 @@ Arguments: ` + Array.prototype.slice.call(s).join("") + `
|
|
|
159
199
|
}, t);
|
|
160
200
|
}
|
|
161
201
|
var Ot = {};
|
|
162
|
-
function
|
|
202
|
+
function It(e, t) {
|
|
163
203
|
l.deprecationHandler != null && l.deprecationHandler(e, t), Ot[e] || (Lt(t), Ot[e] = !0);
|
|
164
204
|
}
|
|
165
205
|
l.suppressDeprecationWarnings = !1;
|
|
@@ -167,7 +207,7 @@ l.deprecationHandler = null;
|
|
|
167
207
|
function H(e) {
|
|
168
208
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
169
209
|
}
|
|
170
|
-
function
|
|
210
|
+
function Nr(e) {
|
|
171
211
|
var t, r;
|
|
172
212
|
for (r in e)
|
|
173
213
|
p(e, r) && (t = e[r], H(t) ? this[r] = t : this["_" + r] = t);
|
|
@@ -193,7 +233,7 @@ Object.keys ? Ke = Object.keys : Ke = function(e) {
|
|
|
193
233
|
p(e, t) && r.push(t);
|
|
194
234
|
return r;
|
|
195
235
|
};
|
|
196
|
-
var
|
|
236
|
+
var Fr = {
|
|
197
237
|
sameDay: "[Today at] LT",
|
|
198
238
|
nextDay: "[Tomorrow at] LT",
|
|
199
239
|
nextWeek: "dddd [at] LT",
|
|
@@ -201,7 +241,7 @@ var xr = {
|
|
|
201
241
|
lastWeek: "[Last] dddd [at] LT",
|
|
202
242
|
sameElse: "L"
|
|
203
243
|
};
|
|
204
|
-
function
|
|
244
|
+
function Cr(e, t, r) {
|
|
205
245
|
var s = this._calendar[e] || this._calendar.sameElse;
|
|
206
246
|
return H(s) ? s.call(t, r) : s;
|
|
207
247
|
}
|
|
@@ -223,13 +263,13 @@ function c(e, t, r, s) {
|
|
|
223
263
|
);
|
|
224
264
|
});
|
|
225
265
|
}
|
|
226
|
-
function
|
|
266
|
+
function Lr(e) {
|
|
227
267
|
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
228
268
|
}
|
|
229
|
-
function
|
|
269
|
+
function Ir(e) {
|
|
230
270
|
var t = e.match(ot), r, s;
|
|
231
271
|
for (r = 0, s = t.length; r < s; r++)
|
|
232
|
-
oe[t[r]] ? t[r] = oe[t[r]] : t[r] =
|
|
272
|
+
oe[t[r]] ? t[r] = oe[t[r]] : t[r] = Lr(t[r]);
|
|
233
273
|
return function(a) {
|
|
234
274
|
var i = "", n;
|
|
235
275
|
for (n = 0; n < s; n++)
|
|
@@ -238,9 +278,9 @@ function Rr(e) {
|
|
|
238
278
|
};
|
|
239
279
|
}
|
|
240
280
|
function be(e, t) {
|
|
241
|
-
return e.isValid() ? (t =
|
|
281
|
+
return e.isValid() ? (t = Ut(t, e.localeData()), $e[t] = $e[t] || Ir(t), $e[t](e)) : e.localeData().invalidDate();
|
|
242
282
|
}
|
|
243
|
-
function
|
|
283
|
+
function Ut(e, t) {
|
|
244
284
|
var r = 5;
|
|
245
285
|
function s(a) {
|
|
246
286
|
return t.longDateFormat(a) || a;
|
|
@@ -252,7 +292,7 @@ function It(e, t) {
|
|
|
252
292
|
), De.lastIndex = 0, r -= 1;
|
|
253
293
|
return e;
|
|
254
294
|
}
|
|
255
|
-
var
|
|
295
|
+
var Ur = {
|
|
256
296
|
LTS: "h:mm:ss A",
|
|
257
297
|
LT: "h:mm A",
|
|
258
298
|
L: "MM/DD/YYYY",
|
|
@@ -260,21 +300,21 @@ var Nr = {
|
|
|
260
300
|
LLL: "MMMM D, YYYY h:mm A",
|
|
261
301
|
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
262
302
|
};
|
|
263
|
-
function
|
|
303
|
+
function Hr(e) {
|
|
264
304
|
var t = this._longDateFormat[e], r = this._longDateFormat[e.toUpperCase()];
|
|
265
305
|
return t || !r ? t : (this._longDateFormat[e] = r.match(ot).map(function(s) {
|
|
266
306
|
return s === "MMMM" || s === "MM" || s === "DD" || s === "dddd" ? s.slice(1) : s;
|
|
267
307
|
}).join(""), this._longDateFormat[e]);
|
|
268
308
|
}
|
|
269
|
-
var
|
|
270
|
-
function
|
|
309
|
+
var Er = "Invalid date";
|
|
310
|
+
function Ar() {
|
|
271
311
|
return this._invalidDate;
|
|
272
312
|
}
|
|
273
|
-
var
|
|
274
|
-
function
|
|
313
|
+
var jr = "%d", Gr = /\d{1,2}/;
|
|
314
|
+
function Vr(e) {
|
|
275
315
|
return this._ordinal.replace("%d", e);
|
|
276
316
|
}
|
|
277
|
-
var
|
|
317
|
+
var zr = {
|
|
278
318
|
future: "in %s",
|
|
279
319
|
past: "%s ago",
|
|
280
320
|
s: "a few seconds",
|
|
@@ -292,11 +332,11 @@ var Ar = {
|
|
|
292
332
|
y: "a year",
|
|
293
333
|
yy: "%d years"
|
|
294
334
|
};
|
|
295
|
-
function
|
|
335
|
+
function $r(e, t, r, s) {
|
|
296
336
|
var a = this._relativeTime[r];
|
|
297
337
|
return H(a) ? a(e, t, r, s) : a.replace(/%d/i, e);
|
|
298
338
|
}
|
|
299
|
-
function
|
|
339
|
+
function qr(e, t) {
|
|
300
340
|
var r = this._relativeTime[e > 0 ? "future" : "past"];
|
|
301
341
|
return H(r) ? r(t) : r.replace(/%s/i, t);
|
|
302
342
|
}
|
|
@@ -359,7 +399,7 @@ function lt(e) {
|
|
|
359
399
|
p(e, s) && (r = W(s), r && (t[r] = e[s]));
|
|
360
400
|
return t;
|
|
361
401
|
}
|
|
362
|
-
var
|
|
402
|
+
var Zr = {
|
|
363
403
|
date: 9,
|
|
364
404
|
day: 11,
|
|
365
405
|
weekday: 11,
|
|
@@ -377,25 +417,25 @@ var Gr = {
|
|
|
377
417
|
isoWeek: 5,
|
|
378
418
|
year: 1
|
|
379
419
|
};
|
|
380
|
-
function
|
|
420
|
+
function Br(e) {
|
|
381
421
|
var t = [], r;
|
|
382
422
|
for (r in e)
|
|
383
|
-
p(e, r) && t.push({ unit: r, priority:
|
|
423
|
+
p(e, r) && t.push({ unit: r, priority: Zr[r] });
|
|
384
424
|
return t.sort(function(s, a) {
|
|
385
425
|
return s.priority - a.priority;
|
|
386
426
|
}), t;
|
|
387
427
|
}
|
|
388
|
-
var
|
|
428
|
+
var Ht = /\d/, T = /\d\d/, Et = /\d{3}/, ut = /\d{4}/, Ce = /[+-]?\d{6}/, v = /\d\d?/, At = /\d\d\d\d?/, jt = /\d\d\d\d\d\d?/, Le = /\d{1,3}/, dt = /\d{1,4}/, Ie = /[+-]?\d{1,6}/, de = /\d+/, Ue = /[+-]?\d+/, Jr = /Z|[+-]\d\d:?\d\d/gi, He = /Z|[+-]\d\d(?::?\d\d)?/gi, Qr = /[+-]?\d+(\.\d{1,3})?/, ke = /[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, ce = /^[1-9]\d?/, ct = /^([1-9]\d|\d)/, xe;
|
|
389
429
|
xe = {};
|
|
390
430
|
function d(e, t, r) {
|
|
391
431
|
xe[e] = H(t) ? t : function(s, a) {
|
|
392
432
|
return s && r ? r : t;
|
|
393
433
|
};
|
|
394
434
|
}
|
|
395
|
-
function
|
|
396
|
-
return p(xe, e) ? xe[e](t._strict, t._locale) : new RegExp(
|
|
435
|
+
function Kr(e, t) {
|
|
436
|
+
return p(xe, e) ? xe[e](t._strict, t._locale) : new RegExp(Xr(e));
|
|
397
437
|
}
|
|
398
|
-
function
|
|
438
|
+
function Xr(e) {
|
|
399
439
|
return z(
|
|
400
440
|
e.replace("\\", "").replace(
|
|
401
441
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
@@ -416,7 +456,7 @@ function _(e) {
|
|
|
416
456
|
return t !== 0 && isFinite(t) && (r = x(t)), r;
|
|
417
457
|
}
|
|
418
458
|
var Xe = {};
|
|
419
|
-
function
|
|
459
|
+
function w(e, t) {
|
|
420
460
|
var r, s = t, a;
|
|
421
461
|
for (typeof e == "string" && (e = [e]), q(t) && (s = function(i, n) {
|
|
422
462
|
n[t] = _(i);
|
|
@@ -424,17 +464,17 @@ function g(e, t) {
|
|
|
424
464
|
Xe[e[r]] = s;
|
|
425
465
|
}
|
|
426
466
|
function Se(e, t) {
|
|
427
|
-
|
|
467
|
+
w(e, function(r, s, a, i) {
|
|
428
468
|
a._w = a._w || {}, t(r, a._w, a, i);
|
|
429
469
|
});
|
|
430
470
|
}
|
|
431
|
-
function
|
|
471
|
+
function es(e, t, r) {
|
|
432
472
|
t != null && p(Xe, e) && Xe[e](t, r._a, r, e);
|
|
433
473
|
}
|
|
434
|
-
function
|
|
474
|
+
function Ee(e) {
|
|
435
475
|
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
436
476
|
}
|
|
437
|
-
var Y = 0, G = 1,
|
|
477
|
+
var Y = 0, G = 1, L = 2, D = 3, R = 4, V = 5, te = 6, ts = 7, rs = 8;
|
|
438
478
|
c("Y", 0, 0, function() {
|
|
439
479
|
var e = this.year();
|
|
440
480
|
return e <= 9999 ? I(e, 4) : "+" + e;
|
|
@@ -448,31 +488,31 @@ c(0, ["YYYYYY", 6, !0], 0, "year");
|
|
|
448
488
|
d("Y", Ue);
|
|
449
489
|
d("YY", v, T);
|
|
450
490
|
d("YYYY", dt, ut);
|
|
451
|
-
d("YYYYY", Ie,
|
|
452
|
-
d("YYYYYY", Ie,
|
|
453
|
-
|
|
454
|
-
|
|
491
|
+
d("YYYYY", Ie, Ce);
|
|
492
|
+
d("YYYYYY", Ie, Ce);
|
|
493
|
+
w(["YYYYY", "YYYYYY"], Y);
|
|
494
|
+
w("YYYY", function(e, t) {
|
|
455
495
|
t[Y] = e.length === 2 ? l.parseTwoDigitYear(e) : _(e);
|
|
456
496
|
});
|
|
457
|
-
|
|
497
|
+
w("YY", function(e, t) {
|
|
458
498
|
t[Y] = l.parseTwoDigitYear(e);
|
|
459
499
|
});
|
|
460
|
-
|
|
500
|
+
w("Y", function(e, t) {
|
|
461
501
|
t[Y] = parseInt(e, 10);
|
|
462
502
|
});
|
|
463
503
|
function me(e) {
|
|
464
|
-
return
|
|
504
|
+
return Ee(e) ? 366 : 365;
|
|
465
505
|
}
|
|
466
506
|
l.parseTwoDigitYear = function(e) {
|
|
467
507
|
return _(e) + (_(e) > 68 ? 1900 : 2e3);
|
|
468
508
|
};
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
return
|
|
509
|
+
var Gt = fe("FullYear", !0);
|
|
510
|
+
function ss() {
|
|
511
|
+
return Ee(this.year());
|
|
472
512
|
}
|
|
473
513
|
function fe(e, t) {
|
|
474
514
|
return function(r) {
|
|
475
|
-
return r != null ? (
|
|
515
|
+
return r != null ? (Vt(this, e, r), l.updateOffset(this, t), this) : ye(this, e);
|
|
476
516
|
};
|
|
477
517
|
}
|
|
478
518
|
function ye(e, t) {
|
|
@@ -500,7 +540,7 @@ function ye(e, t) {
|
|
|
500
540
|
return NaN;
|
|
501
541
|
}
|
|
502
542
|
}
|
|
503
|
-
function
|
|
543
|
+
function Vt(e, t, r) {
|
|
504
544
|
var s, a, i, n, u;
|
|
505
545
|
if (!(!e.isValid() || isNaN(r))) {
|
|
506
546
|
switch (s = e._d, a = e._isUTC, t) {
|
|
@@ -519,23 +559,23 @@ function Gt(e, t, r) {
|
|
|
519
559
|
default:
|
|
520
560
|
return;
|
|
521
561
|
}
|
|
522
|
-
i = r, n = e.month(), u = e.date(), u = u === 29 && n === 1 && !
|
|
562
|
+
i = r, n = e.month(), u = e.date(), u = u === 29 && n === 1 && !Ee(i) ? 28 : u, a ? s.setUTCFullYear(i, n, u) : s.setFullYear(i, n, u);
|
|
523
563
|
}
|
|
524
564
|
}
|
|
525
|
-
function
|
|
565
|
+
function as(e) {
|
|
526
566
|
return e = W(e), H(this[e]) ? this[e]() : this;
|
|
527
567
|
}
|
|
528
|
-
function
|
|
568
|
+
function is(e, t) {
|
|
529
569
|
if (typeof e == "object") {
|
|
530
570
|
e = lt(e);
|
|
531
|
-
var r =
|
|
571
|
+
var r = Br(e), s, a = r.length;
|
|
532
572
|
for (s = 0; s < a; s++)
|
|
533
573
|
this[r[s].unit](e[r[s].unit]);
|
|
534
574
|
} else if (e = W(e), H(this[e]))
|
|
535
575
|
return this[e](t);
|
|
536
576
|
return this;
|
|
537
577
|
}
|
|
538
|
-
function
|
|
578
|
+
function ns(e, t) {
|
|
539
579
|
return (e % t + t) % t;
|
|
540
580
|
}
|
|
541
581
|
var S;
|
|
@@ -549,8 +589,8 @@ Array.prototype.indexOf ? S = Array.prototype.indexOf : S = function(e) {
|
|
|
549
589
|
function ft(e, t) {
|
|
550
590
|
if (isNaN(e) || isNaN(t))
|
|
551
591
|
return NaN;
|
|
552
|
-
var r =
|
|
553
|
-
return e += (t - r) / 12, r === 1 ?
|
|
592
|
+
var r = ns(t, 12);
|
|
593
|
+
return e += (t - r) / 12, r === 1 ? Ee(e) ? 29 : 28 : 31 - r % 7 % 2;
|
|
554
594
|
}
|
|
555
595
|
c("M", ["MM", 2], "Mo", function() {
|
|
556
596
|
return this.month() + 1;
|
|
@@ -569,23 +609,23 @@ d("MMM", function(e, t) {
|
|
|
569
609
|
d("MMMM", function(e, t) {
|
|
570
610
|
return t.monthsRegex(e);
|
|
571
611
|
});
|
|
572
|
-
|
|
612
|
+
w(["M", "MM"], function(e, t) {
|
|
573
613
|
t[G] = _(e) - 1;
|
|
574
614
|
});
|
|
575
|
-
|
|
615
|
+
w(["MMM", "MMMM"], function(e, t, r, s) {
|
|
576
616
|
var a = r._locale.monthsParse(e, s, r._strict);
|
|
577
617
|
a != null ? t[G] = a : h(r).invalidMonth = e;
|
|
578
618
|
});
|
|
579
|
-
var
|
|
619
|
+
var os = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
580
620
|
"_"
|
|
581
|
-
),
|
|
582
|
-
function
|
|
583
|
-
return e ? N(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat ||
|
|
621
|
+
), zt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), $t = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, ls = ke, us = ke;
|
|
622
|
+
function ds(e, t) {
|
|
623
|
+
return e ? N(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || $t).test(t) ? "format" : "standalone"][e.month()] : N(this._months) ? this._months : this._months.standalone;
|
|
584
624
|
}
|
|
585
|
-
function
|
|
586
|
-
return e ? N(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[
|
|
625
|
+
function cs(e, t) {
|
|
626
|
+
return e ? N(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[$t.test(t) ? "format" : "standalone"][e.month()] : N(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
587
627
|
}
|
|
588
|
-
function
|
|
628
|
+
function fs(e, t, r) {
|
|
589
629
|
var s, a, i, n = e.toLocaleLowerCase();
|
|
590
630
|
if (!this._monthsParse)
|
|
591
631
|
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], s = 0; s < 12; ++s)
|
|
@@ -595,10 +635,10 @@ function os(e, t, r) {
|
|
|
595
635
|
).toLocaleLowerCase(), this._longMonthsParse[s] = this.months(i, "").toLocaleLowerCase();
|
|
596
636
|
return r ? t === "MMM" ? (a = S.call(this._shortMonthsParse, n), a !== -1 ? a : null) : (a = S.call(this._longMonthsParse, n), a !== -1 ? a : null) : t === "MMM" ? (a = S.call(this._shortMonthsParse, n), a !== -1 ? a : (a = S.call(this._longMonthsParse, n), a !== -1 ? a : null)) : (a = S.call(this._longMonthsParse, n), a !== -1 ? a : (a = S.call(this._shortMonthsParse, n), a !== -1 ? a : null));
|
|
597
637
|
}
|
|
598
|
-
function
|
|
638
|
+
function hs(e, t, r) {
|
|
599
639
|
var s, a, i;
|
|
600
640
|
if (this._monthsParseExact)
|
|
601
|
-
return
|
|
641
|
+
return fs.call(this, e, t, r);
|
|
602
642
|
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), s = 0; s < 12; s++) {
|
|
603
643
|
if (a = U([2e3, s]), r && !this._longMonthsParse[s] && (this._longMonthsParse[s] = new RegExp(
|
|
604
644
|
"^" + this.months(a, "").replace(".", "") + "$",
|
|
@@ -614,7 +654,7 @@ function ls(e, t, r) {
|
|
|
614
654
|
return s;
|
|
615
655
|
}
|
|
616
656
|
}
|
|
617
|
-
function
|
|
657
|
+
function qt(e, t) {
|
|
618
658
|
if (!e.isValid())
|
|
619
659
|
return e;
|
|
620
660
|
if (typeof t == "string") {
|
|
@@ -626,19 +666,19 @@ function $t(e, t) {
|
|
|
626
666
|
var r = t, s = e.date();
|
|
627
667
|
return s = s < 29 ? s : Math.min(s, ft(e.year(), r)), e._isUTC ? e._d.setUTCMonth(r, s) : e._d.setMonth(r, s), e;
|
|
628
668
|
}
|
|
629
|
-
function
|
|
630
|
-
return e != null ? (
|
|
669
|
+
function Zt(e) {
|
|
670
|
+
return e != null ? (qt(this, e), l.updateOffset(this, !0), this) : ye(this, "Month");
|
|
631
671
|
}
|
|
632
|
-
function
|
|
672
|
+
function _s() {
|
|
633
673
|
return ft(this.year(), this.month());
|
|
634
674
|
}
|
|
635
|
-
function
|
|
636
|
-
return this._monthsParseExact ? (p(this, "_monthsRegex") ||
|
|
675
|
+
function ms(e) {
|
|
676
|
+
return this._monthsParseExact ? (p(this, "_monthsRegex") || Bt.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (p(this, "_monthsShortRegex") || (this._monthsShortRegex = ls), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
637
677
|
}
|
|
638
|
-
function
|
|
639
|
-
return this._monthsParseExact ? (p(this, "_monthsRegex") ||
|
|
678
|
+
function ys(e) {
|
|
679
|
+
return this._monthsParseExact ? (p(this, "_monthsRegex") || Bt.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (p(this, "_monthsRegex") || (this._monthsRegex = us), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
640
680
|
}
|
|
641
|
-
function
|
|
681
|
+
function Bt() {
|
|
642
682
|
function e(f, m) {
|
|
643
683
|
return m.length - f.length;
|
|
644
684
|
}
|
|
@@ -653,7 +693,7 @@ function Zt() {
|
|
|
653
693
|
"i"
|
|
654
694
|
);
|
|
655
695
|
}
|
|
656
|
-
function
|
|
696
|
+
function ps(e, t, r, s, a, i, n) {
|
|
657
697
|
var u;
|
|
658
698
|
return e < 100 && e >= 0 ? (u = new Date(e + 400, t, r, s, a, i, n), isFinite(u.getFullYear()) && u.setFullYear(e)) : u = new Date(e, t, r, s, a, i, n), u;
|
|
659
699
|
}
|
|
@@ -665,14 +705,14 @@ function Pe(e, t, r) {
|
|
|
665
705
|
var s = 7 + t - r, a = (7 + pe(e, 0, s).getUTCDay() - t) % 7;
|
|
666
706
|
return -a + s - 1;
|
|
667
707
|
}
|
|
668
|
-
function
|
|
708
|
+
function Jt(e, t, r, s, a) {
|
|
669
709
|
var i = (7 + r - s) % 7, n = Pe(e, s, a), u = 1 + 7 * (t - 1) + i + n, f, m;
|
|
670
710
|
return u <= 0 ? (f = e - 1, m = me(f) + u) : u > me(e) ? (f = e + 1, m = u - me(e)) : (f = e, m = u), {
|
|
671
711
|
year: f,
|
|
672
712
|
dayOfYear: m
|
|
673
713
|
};
|
|
674
714
|
}
|
|
675
|
-
function
|
|
715
|
+
function ge(e, t, r) {
|
|
676
716
|
var s = Pe(e.year(), t, r), a = Math.floor((e.dayOfYear() - s - 1) / 7) + 1, i, n;
|
|
677
717
|
return a < 1 ? (n = e.year() - 1, i = a + $(n, t, r)) : a > $(e.year(), t, r) ? (i = a - $(e.year(), t, r), n = e.year() + 1) : (n = e.year(), i = a), {
|
|
678
718
|
week: i,
|
|
@@ -695,27 +735,27 @@ Se(
|
|
|
695
735
|
t[s.substr(0, 1)] = _(e);
|
|
696
736
|
}
|
|
697
737
|
);
|
|
698
|
-
function
|
|
699
|
-
return
|
|
738
|
+
function gs(e) {
|
|
739
|
+
return ge(e, this._week.dow, this._week.doy).week;
|
|
700
740
|
}
|
|
701
|
-
var
|
|
741
|
+
var ws = {
|
|
702
742
|
dow: 0,
|
|
703
743
|
// Sunday is the first day of the week.
|
|
704
744
|
doy: 6
|
|
705
745
|
// The week that contains Jan 6th is the first week of the year.
|
|
706
746
|
};
|
|
707
|
-
function
|
|
747
|
+
function Ms() {
|
|
708
748
|
return this._week.dow;
|
|
709
749
|
}
|
|
710
|
-
function
|
|
750
|
+
function vs() {
|
|
711
751
|
return this._week.doy;
|
|
712
752
|
}
|
|
713
|
-
function
|
|
753
|
+
function ks(e) {
|
|
714
754
|
var t = this.localeData().week(this);
|
|
715
755
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
716
756
|
}
|
|
717
|
-
function
|
|
718
|
-
var t =
|
|
757
|
+
function Ss(e) {
|
|
758
|
+
var t = ge(this, 1, 4).week;
|
|
719
759
|
return e == null ? t : this.add((e - t) * 7, "d");
|
|
720
760
|
}
|
|
721
761
|
c("d", 0, "do", "day");
|
|
@@ -749,27 +789,27 @@ Se(["dd", "ddd", "dddd"], function(e, t, r, s) {
|
|
|
749
789
|
Se(["d", "e", "E"], function(e, t, r, s) {
|
|
750
790
|
t[s] = _(e);
|
|
751
791
|
});
|
|
752
|
-
function
|
|
792
|
+
function Ds(e, t) {
|
|
753
793
|
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
754
794
|
}
|
|
755
|
-
function
|
|
795
|
+
function Ys(e, t) {
|
|
756
796
|
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
757
797
|
}
|
|
758
798
|
function ht(e, t) {
|
|
759
799
|
return e.slice(t, 7).concat(e.slice(0, t));
|
|
760
800
|
}
|
|
761
|
-
var
|
|
762
|
-
function
|
|
801
|
+
var bs = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Qt = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Os = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Ts = ke, xs = ke, Ps = ke;
|
|
802
|
+
function Ws(e, t) {
|
|
763
803
|
var r = N(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
764
804
|
return e === !0 ? ht(r, this._week.dow) : e ? r[e.day()] : r;
|
|
765
805
|
}
|
|
766
|
-
function
|
|
806
|
+
function Rs(e) {
|
|
767
807
|
return e === !0 ? ht(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
768
808
|
}
|
|
769
|
-
function
|
|
809
|
+
function Ns(e) {
|
|
770
810
|
return e === !0 ? ht(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
771
811
|
}
|
|
772
|
-
function
|
|
812
|
+
function Fs(e, t, r) {
|
|
773
813
|
var s, a, i, n = e.toLocaleLowerCase();
|
|
774
814
|
if (!this._weekdaysParse)
|
|
775
815
|
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], s = 0; s < 7; ++s)
|
|
@@ -782,10 +822,10 @@ function xs(e, t, r) {
|
|
|
782
822
|
).toLocaleLowerCase(), this._weekdaysParse[s] = this.weekdays(i, "").toLocaleLowerCase();
|
|
783
823
|
return r ? t === "dddd" ? (a = S.call(this._weekdaysParse, n), a !== -1 ? a : null) : t === "ddd" ? (a = S.call(this._shortWeekdaysParse, n), a !== -1 ? a : null) : (a = S.call(this._minWeekdaysParse, n), a !== -1 ? a : null) : t === "dddd" ? (a = S.call(this._weekdaysParse, n), a !== -1 || (a = S.call(this._shortWeekdaysParse, n), a !== -1) ? a : (a = S.call(this._minWeekdaysParse, n), a !== -1 ? a : null)) : t === "ddd" ? (a = S.call(this._shortWeekdaysParse, n), a !== -1 || (a = S.call(this._weekdaysParse, n), a !== -1) ? a : (a = S.call(this._minWeekdaysParse, n), a !== -1 ? a : null)) : (a = S.call(this._minWeekdaysParse, n), a !== -1 || (a = S.call(this._weekdaysParse, n), a !== -1) ? a : (a = S.call(this._shortWeekdaysParse, n), a !== -1 ? a : null));
|
|
784
824
|
}
|
|
785
|
-
function
|
|
825
|
+
function Cs(e, t, r) {
|
|
786
826
|
var s, a, i;
|
|
787
827
|
if (this._weekdaysParseExact)
|
|
788
|
-
return
|
|
828
|
+
return Fs.call(this, e, t, r);
|
|
789
829
|
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), s = 0; s < 7; s++) {
|
|
790
830
|
if (a = U([2e3, 1]).day(s), r && !this._fullWeekdaysParse[s] && (this._fullWeekdaysParse[s] = new RegExp(
|
|
791
831
|
"^" + this.weekdays(a, "").replace(".", "\\.?") + "$",
|
|
@@ -806,39 +846,39 @@ function Ps(e, t, r) {
|
|
|
806
846
|
return s;
|
|
807
847
|
}
|
|
808
848
|
}
|
|
809
|
-
function
|
|
849
|
+
function Ls(e) {
|
|
810
850
|
if (!this.isValid())
|
|
811
851
|
return e != null ? this : NaN;
|
|
812
852
|
var t = ye(this, "Day");
|
|
813
|
-
return e != null ? (e =
|
|
853
|
+
return e != null ? (e = Ds(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
814
854
|
}
|
|
815
|
-
function
|
|
855
|
+
function Is(e) {
|
|
816
856
|
if (!this.isValid())
|
|
817
857
|
return e != null ? this : NaN;
|
|
818
858
|
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
819
859
|
return e == null ? t : this.add(e - t, "d");
|
|
820
860
|
}
|
|
821
|
-
function
|
|
861
|
+
function Us(e) {
|
|
822
862
|
if (!this.isValid())
|
|
823
863
|
return e != null ? this : NaN;
|
|
824
864
|
if (e != null) {
|
|
825
|
-
var t =
|
|
865
|
+
var t = Ys(e, this.localeData());
|
|
826
866
|
return this.day(this.day() % 7 ? t : t - 7);
|
|
827
867
|
} else
|
|
828
868
|
return this.day() || 7;
|
|
829
869
|
}
|
|
830
|
-
function
|
|
831
|
-
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (p(this, "_weekdaysRegex") || (this._weekdaysRegex =
|
|
870
|
+
function Hs(e) {
|
|
871
|
+
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (p(this, "_weekdaysRegex") || (this._weekdaysRegex = Ts), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
832
872
|
}
|
|
833
|
-
function
|
|
834
|
-
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (p(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex =
|
|
873
|
+
function Es(e) {
|
|
874
|
+
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (p(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = xs), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
835
875
|
}
|
|
836
|
-
function
|
|
837
|
-
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (p(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex =
|
|
876
|
+
function As(e) {
|
|
877
|
+
return this._weekdaysParseExact ? (p(this, "_weekdaysRegex") || _t.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (p(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Ps), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
838
878
|
}
|
|
839
879
|
function _t() {
|
|
840
|
-
function e(b,
|
|
841
|
-
return
|
|
880
|
+
function e(b, E) {
|
|
881
|
+
return E.length - b.length;
|
|
842
882
|
}
|
|
843
883
|
var t = [], r = [], s = [], a = [], i, n, u, f, m;
|
|
844
884
|
for (i = 0; i < 7; i++)
|
|
@@ -857,12 +897,12 @@ function _t() {
|
|
|
857
897
|
function mt() {
|
|
858
898
|
return this.hours() % 12 || 12;
|
|
859
899
|
}
|
|
860
|
-
function
|
|
900
|
+
function js() {
|
|
861
901
|
return this.hours() || 24;
|
|
862
902
|
}
|
|
863
903
|
c("H", ["HH", 2], 0, "hour");
|
|
864
904
|
c("h", ["hh", 2], 0, mt);
|
|
865
|
-
c("k", ["kk", 2], 0,
|
|
905
|
+
c("k", ["kk", 2], 0, js);
|
|
866
906
|
c("hmm", 0, 0, function() {
|
|
867
907
|
return "" + mt.apply(this) + I(this.minutes(), 2);
|
|
868
908
|
});
|
|
@@ -875,7 +915,7 @@ c("Hmm", 0, 0, function() {
|
|
|
875
915
|
c("Hmmss", 0, 0, function() {
|
|
876
916
|
return "" + this.hours() + I(this.minutes(), 2) + I(this.seconds(), 2);
|
|
877
917
|
});
|
|
878
|
-
function
|
|
918
|
+
function Kt(e, t) {
|
|
879
919
|
c(e, 0, 0, function() {
|
|
880
920
|
return this.localeData().meridiem(
|
|
881
921
|
this.hours(),
|
|
@@ -884,13 +924,13 @@ function Qt(e, t) {
|
|
|
884
924
|
);
|
|
885
925
|
});
|
|
886
926
|
}
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
function
|
|
927
|
+
Kt("a", !0);
|
|
928
|
+
Kt("A", !1);
|
|
929
|
+
function Xt(e, t) {
|
|
890
930
|
return t._meridiemParse;
|
|
891
931
|
}
|
|
892
|
-
d("a",
|
|
893
|
-
d("A",
|
|
932
|
+
d("a", Xt);
|
|
933
|
+
d("A", Xt);
|
|
894
934
|
d("H", v, ct);
|
|
895
935
|
d("h", v, ce);
|
|
896
936
|
d("k", v, ce);
|
|
@@ -898,59 +938,59 @@ d("HH", v, T);
|
|
|
898
938
|
d("hh", v, T);
|
|
899
939
|
d("kk", v, T);
|
|
900
940
|
d("hmm", At);
|
|
901
|
-
d("hmmss",
|
|
941
|
+
d("hmmss", jt);
|
|
902
942
|
d("Hmm", At);
|
|
903
|
-
d("Hmmss",
|
|
904
|
-
|
|
905
|
-
|
|
943
|
+
d("Hmmss", jt);
|
|
944
|
+
w(["H", "HH"], D);
|
|
945
|
+
w(["k", "kk"], function(e, t, r) {
|
|
906
946
|
var s = _(e);
|
|
907
947
|
t[D] = s === 24 ? 0 : s;
|
|
908
948
|
});
|
|
909
|
-
|
|
949
|
+
w(["a", "A"], function(e, t, r) {
|
|
910
950
|
r._isPm = r._locale.isPM(e), r._meridiem = e;
|
|
911
951
|
});
|
|
912
|
-
|
|
952
|
+
w(["h", "hh"], function(e, t, r) {
|
|
913
953
|
t[D] = _(e), h(r).bigHour = !0;
|
|
914
954
|
});
|
|
915
|
-
|
|
955
|
+
w("hmm", function(e, t, r) {
|
|
916
956
|
var s = e.length - 2;
|
|
917
957
|
t[D] = _(e.substr(0, s)), t[R] = _(e.substr(s)), h(r).bigHour = !0;
|
|
918
958
|
});
|
|
919
|
-
|
|
959
|
+
w("hmmss", function(e, t, r) {
|
|
920
960
|
var s = e.length - 4, a = e.length - 2;
|
|
921
961
|
t[D] = _(e.substr(0, s)), t[R] = _(e.substr(s, 2)), t[V] = _(e.substr(a)), h(r).bigHour = !0;
|
|
922
962
|
});
|
|
923
|
-
|
|
963
|
+
w("Hmm", function(e, t, r) {
|
|
924
964
|
var s = e.length - 2;
|
|
925
965
|
t[D] = _(e.substr(0, s)), t[R] = _(e.substr(s));
|
|
926
966
|
});
|
|
927
|
-
|
|
967
|
+
w("Hmmss", function(e, t, r) {
|
|
928
968
|
var s = e.length - 4, a = e.length - 2;
|
|
929
969
|
t[D] = _(e.substr(0, s)), t[R] = _(e.substr(s, 2)), t[V] = _(e.substr(a));
|
|
930
970
|
});
|
|
931
|
-
function
|
|
971
|
+
function Gs(e) {
|
|
932
972
|
return (e + "").toLowerCase().charAt(0) === "p";
|
|
933
973
|
}
|
|
934
|
-
var
|
|
935
|
-
function
|
|
974
|
+
var Vs = /[ap]\.?m?\.?/i, zs = fe("Hours", !0);
|
|
975
|
+
function $s(e, t, r) {
|
|
936
976
|
return e > 11 ? r ? "pm" : "PM" : r ? "am" : "AM";
|
|
937
977
|
}
|
|
938
|
-
var
|
|
939
|
-
calendar:
|
|
940
|
-
longDateFormat:
|
|
941
|
-
invalidDate:
|
|
942
|
-
ordinal:
|
|
943
|
-
dayOfMonthOrdinalParse:
|
|
944
|
-
relativeTime:
|
|
945
|
-
months:
|
|
946
|
-
monthsShort:
|
|
947
|
-
week:
|
|
948
|
-
weekdays:
|
|
949
|
-
weekdaysMin:
|
|
950
|
-
weekdaysShort:
|
|
951
|
-
meridiemParse:
|
|
952
|
-
}, k = {}, he = {},
|
|
953
|
-
function
|
|
978
|
+
var er = {
|
|
979
|
+
calendar: Fr,
|
|
980
|
+
longDateFormat: Ur,
|
|
981
|
+
invalidDate: Er,
|
|
982
|
+
ordinal: jr,
|
|
983
|
+
dayOfMonthOrdinalParse: Gr,
|
|
984
|
+
relativeTime: zr,
|
|
985
|
+
months: os,
|
|
986
|
+
monthsShort: zt,
|
|
987
|
+
week: ws,
|
|
988
|
+
weekdays: bs,
|
|
989
|
+
weekdaysMin: Os,
|
|
990
|
+
weekdaysShort: Qt,
|
|
991
|
+
meridiemParse: Vs
|
|
992
|
+
}, k = {}, he = {}, we;
|
|
993
|
+
function qs(e, t) {
|
|
954
994
|
var r, s = Math.min(e.length, t.length);
|
|
955
995
|
for (r = 0; r < s; r += 1)
|
|
956
996
|
if (e[r] !== t[r])
|
|
@@ -960,27 +1000,27 @@ function js(e, t) {
|
|
|
960
1000
|
function xt(e) {
|
|
961
1001
|
return e && e.toLowerCase().replace("_", "-");
|
|
962
1002
|
}
|
|
963
|
-
function
|
|
1003
|
+
function Zs(e) {
|
|
964
1004
|
for (var t = 0, r, s, a, i; t < e.length; ) {
|
|
965
1005
|
for (i = xt(e[t]).split("-"), r = i.length, s = xt(e[t + 1]), s = s ? s.split("-") : null; r > 0; ) {
|
|
966
|
-
if (a =
|
|
1006
|
+
if (a = Ae(i.slice(0, r).join("-")), a)
|
|
967
1007
|
return a;
|
|
968
|
-
if (s && s.length >= r &&
|
|
1008
|
+
if (s && s.length >= r && qs(i, s) >= r - 1)
|
|
969
1009
|
break;
|
|
970
1010
|
r--;
|
|
971
1011
|
}
|
|
972
1012
|
t++;
|
|
973
1013
|
}
|
|
974
|
-
return
|
|
1014
|
+
return we;
|
|
975
1015
|
}
|
|
976
|
-
function
|
|
1016
|
+
function Bs(e) {
|
|
977
1017
|
return !!(e && e.match("^[^/\\\\]*$"));
|
|
978
1018
|
}
|
|
979
|
-
function
|
|
1019
|
+
function Ae(e) {
|
|
980
1020
|
var t = null, r;
|
|
981
|
-
if (k[e] === void 0 && typeof module < "u" && module && module.exports &&
|
|
1021
|
+
if (k[e] === void 0 && typeof module < "u" && module && module.exports && Bs(e))
|
|
982
1022
|
try {
|
|
983
|
-
t =
|
|
1023
|
+
t = we._abbr, r = require, r("./locale/" + e), X(t);
|
|
984
1024
|
} catch {
|
|
985
1025
|
k[e] = null;
|
|
986
1026
|
}
|
|
@@ -988,22 +1028,22 @@ function Ee(e) {
|
|
|
988
1028
|
}
|
|
989
1029
|
function X(e, t) {
|
|
990
1030
|
var r;
|
|
991
|
-
return e && (O(t) ? r = Z(e) : r = yt(e, t), r ?
|
|
1031
|
+
return e && (O(t) ? r = Z(e) : r = yt(e, t), r ? we = r : typeof console < "u" && console.warn && console.warn(
|
|
992
1032
|
"Locale " + e + " not found. Did you forget to load it?"
|
|
993
|
-
)),
|
|
1033
|
+
)), we._abbr;
|
|
994
1034
|
}
|
|
995
1035
|
function yt(e, t) {
|
|
996
1036
|
if (t !== null) {
|
|
997
|
-
var r, s =
|
|
1037
|
+
var r, s = er;
|
|
998
1038
|
if (t.abbr = e, k[e] != null)
|
|
999
|
-
|
|
1039
|
+
It(
|
|
1000
1040
|
"defineLocaleOverride",
|
|
1001
1041
|
"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."
|
|
1002
1042
|
), s = k[e]._config;
|
|
1003
1043
|
else if (t.parentLocale != null)
|
|
1004
1044
|
if (k[t.parentLocale] != null)
|
|
1005
1045
|
s = k[t.parentLocale]._config;
|
|
1006
|
-
else if (r =
|
|
1046
|
+
else if (r = Ae(t.parentLocale), r != null)
|
|
1007
1047
|
s = r._config;
|
|
1008
1048
|
else
|
|
1009
1049
|
return he[t.parentLocale] || (he[t.parentLocale] = []), he[t.parentLocale].push({
|
|
@@ -1016,10 +1056,10 @@ function yt(e, t) {
|
|
|
1016
1056
|
} else
|
|
1017
1057
|
return delete k[e], null;
|
|
1018
1058
|
}
|
|
1019
|
-
function
|
|
1059
|
+
function Js(e, t) {
|
|
1020
1060
|
if (t != null) {
|
|
1021
|
-
var r, s, a =
|
|
1022
|
-
k[e] != null && k[e].parentLocale != null ? k[e].set(Qe(k[e]._config, t)) : (s =
|
|
1061
|
+
var r, s, a = er;
|
|
1062
|
+
k[e] != null && k[e].parentLocale != null ? k[e].set(Qe(k[e]._config, t)) : (s = Ae(e), s != null && (a = s._config), t = Qe(a, t), s == null && (t.abbr = e), r = new nt(t), r.parentLocale = k[e], k[e] = r), X(e);
|
|
1023
1063
|
} else
|
|
1024
1064
|
k[e] != null && (k[e].parentLocale != null ? (k[e] = k[e].parentLocale, e === X() && X(e)) : k[e] != null && delete k[e]);
|
|
1025
1065
|
return k[e];
|
|
@@ -1027,22 +1067,22 @@ function zs(e, t) {
|
|
|
1027
1067
|
function Z(e) {
|
|
1028
1068
|
var t;
|
|
1029
1069
|
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
1030
|
-
return
|
|
1070
|
+
return we;
|
|
1031
1071
|
if (!N(e)) {
|
|
1032
|
-
if (t =
|
|
1072
|
+
if (t = Ae(e), t)
|
|
1033
1073
|
return t;
|
|
1034
1074
|
e = [e];
|
|
1035
1075
|
}
|
|
1036
|
-
return
|
|
1076
|
+
return Zs(e);
|
|
1037
1077
|
}
|
|
1038
|
-
function
|
|
1078
|
+
function Qs() {
|
|
1039
1079
|
return Ke(k);
|
|
1040
1080
|
}
|
|
1041
1081
|
function pt(e) {
|
|
1042
1082
|
var t, r = e._a;
|
|
1043
|
-
return r && h(e).overflow === -2 && (t = r[G] < 0 || r[G] > 11 ? G : r[
|
|
1083
|
+
return r && h(e).overflow === -2 && (t = r[G] < 0 || r[G] > 11 ? G : r[L] < 1 || r[L] > ft(r[Y], r[G]) ? L : r[D] < 0 || r[D] > 24 || r[D] === 24 && (r[R] !== 0 || r[V] !== 0 || r[te] !== 0) ? D : r[R] < 0 || r[R] > 59 ? R : r[V] < 0 || r[V] > 59 ? V : r[te] < 0 || r[te] > 999 ? te : -1, h(e)._overflowDayOfYear && (t < Y || t > L) && (t = L), h(e)._overflowWeeks && t === -1 && (t = ts), h(e)._overflowWeekday && t === -1 && (t = rs), h(e).overflow = t), e;
|
|
1044
1084
|
}
|
|
1045
|
-
var
|
|
1085
|
+
var Ks = /^\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)?)?$/, Xs = /^\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)?)?$/, ea = /Z|[+-]\d\d(?::?\d\d)?/, Ye = [
|
|
1046
1086
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
1047
1087
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
1048
1088
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -1066,7 +1106,7 @@ var qs = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1066
1106
|
["HHmmss", /\d\d\d\d\d\d/],
|
|
1067
1107
|
["HHmm", /\d\d\d\d/],
|
|
1068
1108
|
["HH", /\d\d/]
|
|
1069
|
-
],
|
|
1109
|
+
], ta = /^\/?Date\((-?\d+)/i, ra = /^(?:(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}))$/, sa = {
|
|
1070
1110
|
UT: 0,
|
|
1071
1111
|
GMT: 0,
|
|
1072
1112
|
EDT: -4 * 60,
|
|
@@ -1078,8 +1118,8 @@ var qs = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1078
1118
|
PDT: -7 * 60,
|
|
1079
1119
|
PST: -8 * 60
|
|
1080
1120
|
};
|
|
1081
|
-
function
|
|
1082
|
-
var t, r, s = e._i, a =
|
|
1121
|
+
function tr(e) {
|
|
1122
|
+
var t, r, s = e._i, a = Ks.exec(s) || Xs.exec(s), i, n, u, f, m = Ye.length, b = qe.length;
|
|
1083
1123
|
if (a) {
|
|
1084
1124
|
for (h(e).iso = !0, t = 0, r = m; t < r; t++)
|
|
1085
1125
|
if (Ye[t][1].exec(a[1])) {
|
|
@@ -1106,36 +1146,36 @@ function er(e) {
|
|
|
1106
1146
|
return;
|
|
1107
1147
|
}
|
|
1108
1148
|
if (a[4])
|
|
1109
|
-
if (
|
|
1149
|
+
if (ea.exec(a[4]))
|
|
1110
1150
|
f = "Z";
|
|
1111
1151
|
else {
|
|
1112
1152
|
e._isValid = !1;
|
|
1113
1153
|
return;
|
|
1114
1154
|
}
|
|
1115
|
-
e._f = n + (u || "") + (f || ""),
|
|
1155
|
+
e._f = n + (u || "") + (f || ""), wt(e);
|
|
1116
1156
|
} else
|
|
1117
1157
|
e._isValid = !1;
|
|
1118
1158
|
}
|
|
1119
|
-
function
|
|
1159
|
+
function aa(e, t, r, s, a, i) {
|
|
1120
1160
|
var n = [
|
|
1121
|
-
|
|
1122
|
-
|
|
1161
|
+
ia(e),
|
|
1162
|
+
zt.indexOf(t),
|
|
1123
1163
|
parseInt(r, 10),
|
|
1124
1164
|
parseInt(s, 10),
|
|
1125
1165
|
parseInt(a, 10)
|
|
1126
1166
|
];
|
|
1127
1167
|
return i && n.push(parseInt(i, 10)), n;
|
|
1128
1168
|
}
|
|
1129
|
-
function
|
|
1169
|
+
function ia(e) {
|
|
1130
1170
|
var t = parseInt(e, 10);
|
|
1131
1171
|
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
|
|
1132
1172
|
}
|
|
1133
|
-
function
|
|
1173
|
+
function na(e) {
|
|
1134
1174
|
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
1135
1175
|
}
|
|
1136
|
-
function
|
|
1176
|
+
function oa(e, t, r) {
|
|
1137
1177
|
if (e) {
|
|
1138
|
-
var s =
|
|
1178
|
+
var s = Qt.indexOf(e), a = new Date(
|
|
1139
1179
|
t[0],
|
|
1140
1180
|
t[1],
|
|
1141
1181
|
t[2]
|
|
@@ -1145,41 +1185,41 @@ function ra(e, t, r) {
|
|
|
1145
1185
|
}
|
|
1146
1186
|
return !0;
|
|
1147
1187
|
}
|
|
1148
|
-
function
|
|
1188
|
+
function la(e, t, r) {
|
|
1149
1189
|
if (e)
|
|
1150
|
-
return
|
|
1190
|
+
return sa[e];
|
|
1151
1191
|
if (t)
|
|
1152
1192
|
return 0;
|
|
1153
1193
|
var s = parseInt(r, 10), a = s % 100, i = (s - a) / 100;
|
|
1154
1194
|
return i * 60 + a;
|
|
1155
1195
|
}
|
|
1156
|
-
function
|
|
1157
|
-
var t =
|
|
1196
|
+
function rr(e) {
|
|
1197
|
+
var t = ra.exec(na(e._i)), r;
|
|
1158
1198
|
if (t) {
|
|
1159
|
-
if (r =
|
|
1199
|
+
if (r = aa(
|
|
1160
1200
|
t[4],
|
|
1161
1201
|
t[3],
|
|
1162
1202
|
t[2],
|
|
1163
1203
|
t[5],
|
|
1164
1204
|
t[6],
|
|
1165
1205
|
t[7]
|
|
1166
|
-
), !
|
|
1206
|
+
), !oa(t[1], r, e))
|
|
1167
1207
|
return;
|
|
1168
|
-
e._a = r, e._tzm =
|
|
1208
|
+
e._a = r, e._tzm = la(t[8], t[9], t[10]), e._d = pe.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), h(e).rfc2822 = !0;
|
|
1169
1209
|
} else
|
|
1170
1210
|
e._isValid = !1;
|
|
1171
1211
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var t =
|
|
1212
|
+
function ua(e) {
|
|
1213
|
+
var t = ta.exec(e._i);
|
|
1174
1214
|
if (t !== null) {
|
|
1175
1215
|
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
1176
1216
|
return;
|
|
1177
1217
|
}
|
|
1178
|
-
if (
|
|
1218
|
+
if (tr(e), e._isValid === !1)
|
|
1179
1219
|
delete e._isValid;
|
|
1180
1220
|
else
|
|
1181
1221
|
return;
|
|
1182
|
-
if (
|
|
1222
|
+
if (rr(e), e._isValid === !1)
|
|
1183
1223
|
delete e._isValid;
|
|
1184
1224
|
else
|
|
1185
1225
|
return;
|
|
@@ -1194,7 +1234,7 @@ l.createFromInputFallback = P(
|
|
|
1194
1234
|
function ie(e, t, r) {
|
|
1195
1235
|
return e ?? t ?? r;
|
|
1196
1236
|
}
|
|
1197
|
-
function
|
|
1237
|
+
function da(e) {
|
|
1198
1238
|
var t = new Date(l.now());
|
|
1199
1239
|
return e._useUTC ? [
|
|
1200
1240
|
t.getUTCFullYear(),
|
|
@@ -1202,112 +1242,112 @@ function ia(e) {
|
|
|
1202
1242
|
t.getUTCDate()
|
|
1203
1243
|
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
1204
1244
|
}
|
|
1205
|
-
function
|
|
1245
|
+
function gt(e) {
|
|
1206
1246
|
var t, r, s = [], a, i, n;
|
|
1207
1247
|
if (!e._d) {
|
|
1208
|
-
for (a =
|
|
1248
|
+
for (a = da(e), e._w && e._a[L] == null && e._a[G] == null && ca(e), e._dayOfYear != null && (n = ie(e._a[Y], a[Y]), (e._dayOfYear > me(n) || e._dayOfYear === 0) && (h(e)._overflowDayOfYear = !0), r = pe(n, 0, e._dayOfYear), e._a[G] = r.getUTCMonth(), e._a[L] = r.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
1209
1249
|
e._a[t] = s[t] = a[t];
|
|
1210
1250
|
for (; t < 7; t++)
|
|
1211
1251
|
e._a[t] = s[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1212
|
-
e._a[D] === 24 && e._a[R] === 0 && e._a[V] === 0 && e._a[te] === 0 && (e._nextDay = !0, e._a[D] = 0), e._d = (e._useUTC ? pe :
|
|
1252
|
+
e._a[D] === 24 && e._a[R] === 0 && e._a[V] === 0 && e._a[te] === 0 && (e._nextDay = !0, e._a[D] = 0), e._d = (e._useUTC ? pe : ps).apply(
|
|
1213
1253
|
null,
|
|
1214
1254
|
s
|
|
1215
1255
|
), i = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[D] = 24), e._w && typeof e._w.d < "u" && e._w.d !== i && (h(e).weekdayMismatch = !0);
|
|
1216
1256
|
}
|
|
1217
1257
|
}
|
|
1218
|
-
function
|
|
1258
|
+
function ca(e) {
|
|
1219
1259
|
var t, r, s, a, i, n, u, f, m;
|
|
1220
1260
|
t = e._w, t.GG != null || t.W != null || t.E != null ? (i = 1, n = 4, r = ie(
|
|
1221
1261
|
t.GG,
|
|
1222
1262
|
e._a[Y],
|
|
1223
|
-
|
|
1224
|
-
), s = ie(t.W, 1), a = ie(t.E, 1), (a < 1 || a > 7) && (f = !0)) : (i = e._locale._week.dow, n = e._locale._week.doy, m =
|
|
1263
|
+
ge(M(), 1, 4).year
|
|
1264
|
+
), s = ie(t.W, 1), a = ie(t.E, 1), (a < 1 || a > 7) && (f = !0)) : (i = e._locale._week.dow, n = e._locale._week.doy, m = ge(M(), i, n), r = ie(t.gg, e._a[Y], m.year), s = ie(t.w, m.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (f = !0)) : t.e != null ? (a = t.e + i, (t.e < 0 || t.e > 6) && (f = !0)) : a = i), s < 1 || s > $(r, i, n) ? h(e)._overflowWeeks = !0 : f != null ? h(e)._overflowWeekday = !0 : (u = Jt(r, s, a, i, n), e._a[Y] = u.year, e._dayOfYear = u.dayOfYear);
|
|
1225
1265
|
}
|
|
1226
1266
|
l.ISO_8601 = function() {
|
|
1227
1267
|
};
|
|
1228
1268
|
l.RFC_2822 = function() {
|
|
1229
1269
|
};
|
|
1230
|
-
function
|
|
1270
|
+
function wt(e) {
|
|
1231
1271
|
if (e._f === l.ISO_8601) {
|
|
1232
|
-
|
|
1272
|
+
tr(e);
|
|
1233
1273
|
return;
|
|
1234
1274
|
}
|
|
1235
1275
|
if (e._f === l.RFC_2822) {
|
|
1236
|
-
|
|
1276
|
+
rr(e);
|
|
1237
1277
|
return;
|
|
1238
1278
|
}
|
|
1239
1279
|
e._a = [], h(e).empty = !0;
|
|
1240
1280
|
var t = "" + e._i, r, s, a, i, n, u = t.length, f = 0, m, b;
|
|
1241
|
-
for (a =
|
|
1242
|
-
i = a[r], s = (t.match(
|
|
1281
|
+
for (a = Ut(e._f, e._locale).match(ot) || [], b = a.length, r = 0; r < b; r++)
|
|
1282
|
+
i = a[r], s = (t.match(Kr(i, e)) || [])[0], s && (n = t.substr(0, t.indexOf(s)), n.length > 0 && h(e).unusedInput.push(n), t = t.slice(
|
|
1243
1283
|
t.indexOf(s) + s.length
|
|
1244
|
-
), f += s.length), oe[i] ? (s ? h(e).empty = !1 : h(e).unusedTokens.push(i),
|
|
1245
|
-
h(e).charsLeftOver = u - f, t.length > 0 && h(e).unusedInput.push(t), e._a[D] <= 12 && h(e).bigHour === !0 && e._a[D] > 0 && (h(e).bigHour = void 0), h(e).parsedDateParts = e._a.slice(0), h(e).meridiem = e._meridiem, e._a[D] =
|
|
1284
|
+
), f += s.length), oe[i] ? (s ? h(e).empty = !1 : h(e).unusedTokens.push(i), es(i, s, e)) : e._strict && !s && h(e).unusedTokens.push(i);
|
|
1285
|
+
h(e).charsLeftOver = u - f, t.length > 0 && h(e).unusedInput.push(t), e._a[D] <= 12 && h(e).bigHour === !0 && e._a[D] > 0 && (h(e).bigHour = void 0), h(e).parsedDateParts = e._a.slice(0), h(e).meridiem = e._meridiem, e._a[D] = fa(
|
|
1246
1286
|
e._locale,
|
|
1247
1287
|
e._a[D],
|
|
1248
1288
|
e._meridiem
|
|
1249
|
-
), m = h(e).era, m !== null && (e._a[Y] = e._locale.erasConvertYear(m, e._a[Y])),
|
|
1289
|
+
), m = h(e).era, m !== null && (e._a[Y] = e._locale.erasConvertYear(m, e._a[Y])), gt(e), pt(e);
|
|
1250
1290
|
}
|
|
1251
|
-
function
|
|
1291
|
+
function fa(e, t, r) {
|
|
1252
1292
|
var s;
|
|
1253
1293
|
return r == null ? t : e.meridiemHour != null ? e.meridiemHour(t, r) : (e.isPM != null && (s = e.isPM(r), s && t < 12 && (t += 12), !s && t === 12 && (t = 0)), t);
|
|
1254
1294
|
}
|
|
1255
|
-
function
|
|
1295
|
+
function ha(e) {
|
|
1256
1296
|
var t, r, s, a, i, n, u = !1, f = e._f.length;
|
|
1257
1297
|
if (f === 0) {
|
|
1258
1298
|
h(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
1259
1299
|
return;
|
|
1260
1300
|
}
|
|
1261
1301
|
for (a = 0; a < f; a++)
|
|
1262
|
-
i = 0, n = !1, t = it({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[a],
|
|
1302
|
+
i = 0, n = !1, t = it({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[a], wt(t), at(t) && (n = !0), i += h(t).charsLeftOver, i += h(t).unusedTokens.length * 10, h(t).score = i, u ? i < s && (s = i, r = t) : (s == null || i < s || n) && (s = i, r = t, n && (u = !0));
|
|
1263
1303
|
Q(e, r || t);
|
|
1264
1304
|
}
|
|
1265
|
-
function
|
|
1305
|
+
function _a(e) {
|
|
1266
1306
|
if (!e._d) {
|
|
1267
1307
|
var t = lt(e._i), r = t.day === void 0 ? t.date : t.day;
|
|
1268
|
-
e._a =
|
|
1308
|
+
e._a = Ct(
|
|
1269
1309
|
[t.year, t.month, r, t.hour, t.minute, t.second, t.millisecond],
|
|
1270
1310
|
function(s) {
|
|
1271
1311
|
return s && parseInt(s, 10);
|
|
1272
1312
|
}
|
|
1273
|
-
),
|
|
1313
|
+
), gt(e);
|
|
1274
1314
|
}
|
|
1275
1315
|
}
|
|
1276
|
-
function
|
|
1277
|
-
var t = new ve(pt(
|
|
1316
|
+
function ma(e) {
|
|
1317
|
+
var t = new ve(pt(sr(e)));
|
|
1278
1318
|
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
1279
1319
|
}
|
|
1280
|
-
function
|
|
1320
|
+
function sr(e) {
|
|
1281
1321
|
var t = e._i, r = e._f;
|
|
1282
|
-
return e._locale = e._locale || Z(e._l), t === null || r === void 0 && t === "" ? Fe({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), F(t) ? new ve(pt(t)) : (Me(t) ? e._d = t : N(r) ?
|
|
1322
|
+
return e._locale = e._locale || Z(e._l), t === null || r === void 0 && t === "" ? Fe({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), F(t) ? new ve(pt(t)) : (Me(t) ? e._d = t : N(r) ? ha(e) : r ? wt(e) : ya(e), at(e) || (e._d = null), e));
|
|
1283
1323
|
}
|
|
1284
|
-
function
|
|
1324
|
+
function ya(e) {
|
|
1285
1325
|
var t = e._i;
|
|
1286
|
-
O(t) ? e._d = new Date(l.now()) : Me(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ?
|
|
1326
|
+
O(t) ? e._d = new Date(l.now()) : Me(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? ua(e) : N(t) ? (e._a = Ct(t.slice(0), function(r) {
|
|
1287
1327
|
return parseInt(r, 10);
|
|
1288
|
-
}),
|
|
1328
|
+
}), gt(e)) : re(t) ? _a(e) : q(t) ? e._d = new Date(t) : l.createFromInputFallback(e);
|
|
1289
1329
|
}
|
|
1290
|
-
function
|
|
1330
|
+
function ar(e, t, r, s, a) {
|
|
1291
1331
|
var i = {};
|
|
1292
|
-
return (t === !0 || t === !1) && (s = t, t = void 0), (r === !0 || r === !1) && (s = r, r = void 0), (re(e) && st(e) || N(e) && e.length === 0) && (e = void 0), i._isAMomentObject = !0, i._useUTC = i._isUTC = a, i._l = r, i._i = e, i._f = t, i._strict = s,
|
|
1332
|
+
return (t === !0 || t === !1) && (s = t, t = void 0), (r === !0 || r === !1) && (s = r, r = void 0), (re(e) && st(e) || N(e) && e.length === 0) && (e = void 0), i._isAMomentObject = !0, i._useUTC = i._isUTC = a, i._l = r, i._i = e, i._f = t, i._strict = s, ma(i);
|
|
1293
1333
|
}
|
|
1294
1334
|
function M(e, t, r, s) {
|
|
1295
|
-
return
|
|
1335
|
+
return ar(e, t, r, s, !1);
|
|
1296
1336
|
}
|
|
1297
|
-
var
|
|
1337
|
+
var pa = P(
|
|
1298
1338
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1299
1339
|
function() {
|
|
1300
1340
|
var e = M.apply(null, arguments);
|
|
1301
1341
|
return this.isValid() && e.isValid() ? e < this ? this : e : Fe();
|
|
1302
1342
|
}
|
|
1303
|
-
),
|
|
1343
|
+
), ga = P(
|
|
1304
1344
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1305
1345
|
function() {
|
|
1306
1346
|
var e = M.apply(null, arguments);
|
|
1307
1347
|
return this.isValid() && e.isValid() ? e > this ? this : e : Fe();
|
|
1308
1348
|
}
|
|
1309
1349
|
);
|
|
1310
|
-
function
|
|
1350
|
+
function ir(e, t) {
|
|
1311
1351
|
var r, s;
|
|
1312
1352
|
if (t.length === 1 && N(t[0]) && (t = t[0]), !t.length)
|
|
1313
1353
|
return M();
|
|
@@ -1315,15 +1355,15 @@ function ar(e, t) {
|
|
|
1315
1355
|
(!t[s].isValid() || t[s][e](r)) && (r = t[s]);
|
|
1316
1356
|
return r;
|
|
1317
1357
|
}
|
|
1318
|
-
function
|
|
1358
|
+
function wa() {
|
|
1319
1359
|
var e = [].slice.call(arguments, 0);
|
|
1320
|
-
return
|
|
1360
|
+
return ir("isBefore", e);
|
|
1321
1361
|
}
|
|
1322
|
-
function
|
|
1362
|
+
function Ma() {
|
|
1323
1363
|
var e = [].slice.call(arguments, 0);
|
|
1324
|
-
return
|
|
1364
|
+
return ir("isAfter", e);
|
|
1325
1365
|
}
|
|
1326
|
-
var
|
|
1366
|
+
var va = function() {
|
|
1327
1367
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
1328
1368
|
}, _e = [
|
|
1329
1369
|
"year",
|
|
@@ -1336,7 +1376,7 @@ var ya = function() {
|
|
|
1336
1376
|
"second",
|
|
1337
1377
|
"millisecond"
|
|
1338
1378
|
];
|
|
1339
|
-
function
|
|
1379
|
+
function ka(e) {
|
|
1340
1380
|
var t, r = !1, s, a = _e.length;
|
|
1341
1381
|
for (t in e)
|
|
1342
1382
|
if (p(e, t) && !(S.call(_e, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
@@ -1349,15 +1389,15 @@ function pa(e) {
|
|
|
1349
1389
|
}
|
|
1350
1390
|
return !0;
|
|
1351
1391
|
}
|
|
1352
|
-
function
|
|
1392
|
+
function Sa() {
|
|
1353
1393
|
return this._isValid;
|
|
1354
1394
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1395
|
+
function Da() {
|
|
1396
|
+
return C(NaN);
|
|
1357
1397
|
}
|
|
1358
1398
|
function je(e) {
|
|
1359
1399
|
var t = lt(e), r = t.year || 0, s = t.quarter || 0, a = t.month || 0, i = t.week || t.isoWeek || 0, n = t.day || 0, u = t.hour || 0, f = t.minute || 0, m = t.second || 0, b = t.millisecond || 0;
|
|
1360
|
-
this._isValid =
|
|
1400
|
+
this._isValid = ka(t), this._milliseconds = +b + m * 1e3 + // 1000
|
|
1361
1401
|
f * 6e4 + // 1000 * 60
|
|
1362
1402
|
u * 1e3 * 60 * 60, this._days = +n + i * 7, this._months = +a + s * 3 + r * 12, this._data = {}, this._locale = Z(), this._bubble();
|
|
1363
1403
|
}
|
|
@@ -1367,29 +1407,29 @@ function Oe(e) {
|
|
|
1367
1407
|
function et(e) {
|
|
1368
1408
|
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
1369
1409
|
}
|
|
1370
|
-
function
|
|
1410
|
+
function Ya(e, t, r) {
|
|
1371
1411
|
var s = Math.min(e.length, t.length), a = Math.abs(e.length - t.length), i = 0, n;
|
|
1372
1412
|
for (n = 0; n < s; n++)
|
|
1373
|
-
|
|
1413
|
+
_(e[n]) !== _(t[n]) && i++;
|
|
1374
1414
|
return i + a;
|
|
1375
1415
|
}
|
|
1376
|
-
function
|
|
1416
|
+
function nr(e, t) {
|
|
1377
1417
|
c(e, 0, 0, function() {
|
|
1378
1418
|
var r = this.utcOffset(), s = "+";
|
|
1379
1419
|
return r < 0 && (r = -r, s = "-"), s + I(~~(r / 60), 2) + t + I(~~r % 60, 2);
|
|
1380
1420
|
});
|
|
1381
1421
|
}
|
|
1382
|
-
|
|
1383
|
-
|
|
1422
|
+
nr("Z", ":");
|
|
1423
|
+
nr("ZZ", "");
|
|
1384
1424
|
d("Z", He);
|
|
1385
1425
|
d("ZZ", He);
|
|
1386
|
-
|
|
1426
|
+
w(["Z", "ZZ"], function(e, t, r) {
|
|
1387
1427
|
r._useUTC = !0, r._tzm = Mt(He, e);
|
|
1388
1428
|
});
|
|
1389
|
-
var
|
|
1429
|
+
var ba = /([\+\-]|\d\d)/gi;
|
|
1390
1430
|
function Mt(e, t) {
|
|
1391
1431
|
var r = (t || "").match(e), s, a, i;
|
|
1392
|
-
return r === null ? null : (s = r[r.length - 1] || [], a = (s + "").match(
|
|
1432
|
+
return r === null ? null : (s = r[r.length - 1] || [], a = (s + "").match(ba) || ["-", 0, 0], i = +(a[1] * 60) + _(a[2]), i === 0 ? 0 : a[0] === "+" ? i : -i);
|
|
1393
1433
|
}
|
|
1394
1434
|
function vt(e, t) {
|
|
1395
1435
|
var r, s;
|
|
@@ -1400,7 +1440,7 @@ function tt(e) {
|
|
|
1400
1440
|
}
|
|
1401
1441
|
l.updateOffset = function() {
|
|
1402
1442
|
};
|
|
1403
|
-
function
|
|
1443
|
+
function Oa(e, t, r) {
|
|
1404
1444
|
var s = this._offset || 0, a;
|
|
1405
1445
|
if (!this.isValid())
|
|
1406
1446
|
return e != null ? this : NaN;
|
|
@@ -1410,70 +1450,70 @@ function ka(e, t, r) {
|
|
|
1410
1450
|
return this;
|
|
1411
1451
|
} else
|
|
1412
1452
|
Math.abs(e) < 16 && !r && (e = e * 60);
|
|
1413
|
-
return !this._isUTC && t && (a = tt(this)), this._offset = e, this._isUTC = !0, a != null && this.add(a, "m"), s !== e && (!t || this._changeInProgress ?
|
|
1453
|
+
return !this._isUTC && t && (a = tt(this)), this._offset = e, this._isUTC = !0, a != null && this.add(a, "m"), s !== e && (!t || this._changeInProgress ? ur(
|
|
1414
1454
|
this,
|
|
1415
|
-
|
|
1455
|
+
C(e - s, "m"),
|
|
1416
1456
|
1,
|
|
1417
1457
|
!1
|
|
1418
1458
|
) : this._changeInProgress || (this._changeInProgress = !0, l.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
1419
1459
|
} else
|
|
1420
1460
|
return this._isUTC ? s : tt(this);
|
|
1421
1461
|
}
|
|
1422
|
-
function
|
|
1462
|
+
function Ta(e, t) {
|
|
1423
1463
|
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
1424
1464
|
}
|
|
1425
|
-
function
|
|
1465
|
+
function xa(e) {
|
|
1426
1466
|
return this.utcOffset(0, e);
|
|
1427
1467
|
}
|
|
1428
|
-
function
|
|
1468
|
+
function Pa(e) {
|
|
1429
1469
|
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(tt(this), "m")), this;
|
|
1430
1470
|
}
|
|
1431
|
-
function
|
|
1471
|
+
function Wa() {
|
|
1432
1472
|
if (this._tzm != null)
|
|
1433
1473
|
this.utcOffset(this._tzm, !1, !0);
|
|
1434
1474
|
else if (typeof this._i == "string") {
|
|
1435
|
-
var e = Mt(
|
|
1475
|
+
var e = Mt(Jr, this._i);
|
|
1436
1476
|
e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
|
|
1437
1477
|
}
|
|
1438
1478
|
return this;
|
|
1439
1479
|
}
|
|
1440
|
-
function
|
|
1480
|
+
function Ra(e) {
|
|
1441
1481
|
return this.isValid() ? (e = e ? M(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
1442
1482
|
}
|
|
1443
|
-
function
|
|
1483
|
+
function Na() {
|
|
1444
1484
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
1445
1485
|
}
|
|
1446
|
-
function
|
|
1486
|
+
function Fa() {
|
|
1447
1487
|
if (!O(this._isDSTShifted))
|
|
1448
1488
|
return this._isDSTShifted;
|
|
1449
1489
|
var e = {}, t;
|
|
1450
|
-
return it(e, this), e =
|
|
1490
|
+
return it(e, this), e = sr(e), e._a ? (t = e._isUTC ? U(e._a) : M(e._a), this._isDSTShifted = this.isValid() && Ya(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
1451
1491
|
}
|
|
1452
|
-
function
|
|
1492
|
+
function Ca() {
|
|
1453
1493
|
return this.isValid() ? !this._isUTC : !1;
|
|
1454
1494
|
}
|
|
1455
|
-
function
|
|
1495
|
+
function La() {
|
|
1456
1496
|
return this.isValid() ? this._isUTC : !1;
|
|
1457
1497
|
}
|
|
1458
|
-
function
|
|
1498
|
+
function or() {
|
|
1459
1499
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
1460
1500
|
}
|
|
1461
|
-
var
|
|
1462
|
-
function
|
|
1501
|
+
var Ia = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Ua = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
1502
|
+
function C(e, t) {
|
|
1463
1503
|
var r = e, s = null, a, i, n;
|
|
1464
1504
|
return Oe(e) ? r = {
|
|
1465
1505
|
ms: e._milliseconds,
|
|
1466
1506
|
d: e._days,
|
|
1467
1507
|
M: e._months
|
|
1468
|
-
} : q(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s =
|
|
1508
|
+
} : q(e) || !isNaN(+e) ? (r = {}, t ? r[t] = +e : r.milliseconds = +e) : (s = Ia.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
1469
1509
|
y: 0,
|
|
1470
|
-
d: _(s[
|
|
1510
|
+
d: _(s[L]) * a,
|
|
1471
1511
|
h: _(s[D]) * a,
|
|
1472
1512
|
m: _(s[R]) * a,
|
|
1473
1513
|
s: _(s[V]) * a,
|
|
1474
1514
|
ms: _(et(s[te] * 1e3)) * a
|
|
1475
1515
|
// the millisecond decimal point is included in the match
|
|
1476
|
-
}) : (s =
|
|
1516
|
+
}) : (s = Ua.exec(e)) ? (a = s[1] === "-" ? -1 : 1, r = {
|
|
1477
1517
|
y: ee(s[2], a),
|
|
1478
1518
|
M: ee(s[3], a),
|
|
1479
1519
|
w: ee(s[4], a),
|
|
@@ -1481,13 +1521,13 @@ function L(e, t) {
|
|
|
1481
1521
|
h: ee(s[6], a),
|
|
1482
1522
|
m: ee(s[7], a),
|
|
1483
1523
|
s: ee(s[8], a)
|
|
1484
|
-
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (n =
|
|
1524
|
+
}) : r == null ? r = {} : typeof r == "object" && ("from" in r || "to" in r) && (n = Ha(
|
|
1485
1525
|
M(r.from),
|
|
1486
1526
|
M(r.to)
|
|
1487
1527
|
), r = {}, r.ms = n.milliseconds, r.M = n.months), i = new je(r), Oe(e) && p(e, "_locale") && (i._locale = e._locale), Oe(e) && p(e, "_isValid") && (i._isValid = e._isValid), i;
|
|
1488
1528
|
}
|
|
1489
|
-
|
|
1490
|
-
|
|
1529
|
+
C.fn = je.prototype;
|
|
1530
|
+
C.invalid = Da;
|
|
1491
1531
|
function ee(e, t) {
|
|
1492
1532
|
var r = e && parseFloat(e.replace(",", "."));
|
|
1493
1533
|
return (isNaN(r) ? 0 : r) * t;
|
|
@@ -1496,31 +1536,31 @@ function Pt(e, t) {
|
|
|
1496
1536
|
var r = {};
|
|
1497
1537
|
return r.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(r.months, "M").isAfter(t) && --r.months, r.milliseconds = +t - +e.clone().add(r.months, "M"), r;
|
|
1498
1538
|
}
|
|
1499
|
-
function
|
|
1539
|
+
function Ha(e, t) {
|
|
1500
1540
|
var r;
|
|
1501
1541
|
return e.isValid() && t.isValid() ? (t = vt(t, e), e.isBefore(t) ? r = Pt(e, t) : (r = Pt(t, e), r.milliseconds = -r.milliseconds, r.months = -r.months), r) : { milliseconds: 0, months: 0 };
|
|
1502
1542
|
}
|
|
1503
|
-
function
|
|
1543
|
+
function lr(e, t) {
|
|
1504
1544
|
return function(r, s) {
|
|
1505
1545
|
var a, i;
|
|
1506
|
-
return s !== null && !isNaN(+s) && (
|
|
1546
|
+
return s !== null && !isNaN(+s) && (It(
|
|
1507
1547
|
t,
|
|
1508
1548
|
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
1509
|
-
), i = r, r = s, s = i), a =
|
|
1549
|
+
), i = r, r = s, s = i), a = C(r, s), ur(this, a, e), this;
|
|
1510
1550
|
};
|
|
1511
1551
|
}
|
|
1512
|
-
function
|
|
1552
|
+
function ur(e, t, r, s) {
|
|
1513
1553
|
var a = t._milliseconds, i = et(t._days), n = et(t._months);
|
|
1514
|
-
e.isValid() && (s = s ?? !0, n &&
|
|
1554
|
+
e.isValid() && (s = s ?? !0, n && qt(e, ye(e, "Month") + n * r), i && Vt(e, "Date", ye(e, "Date") + i * r), a && e._d.setTime(e._d.valueOf() + a * r), s && l.updateOffset(e, i || n));
|
|
1515
1555
|
}
|
|
1516
|
-
var
|
|
1517
|
-
function
|
|
1556
|
+
var Ea = lr(1, "add"), Aa = lr(-1, "subtract");
|
|
1557
|
+
function dr(e) {
|
|
1518
1558
|
return typeof e == "string" || e instanceof String;
|
|
1519
1559
|
}
|
|
1520
|
-
function
|
|
1521
|
-
return F(e) || Me(e) ||
|
|
1560
|
+
function ja(e) {
|
|
1561
|
+
return F(e) || Me(e) || dr(e) || q(e) || Va(e) || Ga(e) || e === null || e === void 0;
|
|
1522
1562
|
}
|
|
1523
|
-
function
|
|
1563
|
+
function Ga(e) {
|
|
1524
1564
|
var t = re(e) && !st(e), r = !1, s = [
|
|
1525
1565
|
"years",
|
|
1526
1566
|
"year",
|
|
@@ -1551,13 +1591,13 @@ function Ua(e) {
|
|
|
1551
1591
|
i = s[a], r = r || p(e, i);
|
|
1552
1592
|
return t && r;
|
|
1553
1593
|
}
|
|
1554
|
-
function
|
|
1594
|
+
function Va(e) {
|
|
1555
1595
|
var t = N(e), r = !1;
|
|
1556
1596
|
return t && (r = e.filter(function(s) {
|
|
1557
|
-
return !q(s) &&
|
|
1597
|
+
return !q(s) && dr(e);
|
|
1558
1598
|
}).length === 0), t && r;
|
|
1559
1599
|
}
|
|
1560
|
-
function
|
|
1600
|
+
function za(e) {
|
|
1561
1601
|
var t = re(e) && !st(e), r = !1, s = [
|
|
1562
1602
|
"sameDay",
|
|
1563
1603
|
"nextDay",
|
|
@@ -1570,43 +1610,43 @@ function Aa(e) {
|
|
|
1570
1610
|
i = s[a], r = r || p(e, i);
|
|
1571
1611
|
return t && r;
|
|
1572
1612
|
}
|
|
1573
|
-
function
|
|
1613
|
+
function $a(e, t) {
|
|
1574
1614
|
var r = e.diff(t, "days", !0);
|
|
1575
1615
|
return r < -6 ? "sameElse" : r < -1 ? "lastWeek" : r < 0 ? "lastDay" : r < 1 ? "sameDay" : r < 2 ? "nextDay" : r < 7 ? "nextWeek" : "sameElse";
|
|
1576
1616
|
}
|
|
1577
|
-
function
|
|
1578
|
-
arguments.length === 1 && (arguments[0] ?
|
|
1617
|
+
function qa(e, t) {
|
|
1618
|
+
arguments.length === 1 && (arguments[0] ? ja(arguments[0]) ? (e = arguments[0], t = void 0) : za(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
1579
1619
|
var r = e || M(), s = vt(r, this).startOf("day"), a = l.calendarFormat(this, s) || "sameElse", i = t && (H(t[a]) ? t[a].call(this, r) : t[a]);
|
|
1580
1620
|
return this.format(
|
|
1581
1621
|
i || this.localeData().calendar(a, this, M(r))
|
|
1582
1622
|
);
|
|
1583
1623
|
}
|
|
1584
|
-
function
|
|
1624
|
+
function Za() {
|
|
1585
1625
|
return new ve(this);
|
|
1586
1626
|
}
|
|
1587
|
-
function
|
|
1627
|
+
function Ba(e, t) {
|
|
1588
1628
|
var r = F(e) ? e : M(e);
|
|
1589
1629
|
return this.isValid() && r.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() > r.valueOf() : r.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
1590
1630
|
}
|
|
1591
|
-
function
|
|
1631
|
+
function Ja(e, t) {
|
|
1592
1632
|
var r = F(e) ? e : M(e);
|
|
1593
1633
|
return this.isValid() && r.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() < r.valueOf() : this.clone().endOf(t).valueOf() < r.valueOf()) : !1;
|
|
1594
1634
|
}
|
|
1595
|
-
function
|
|
1635
|
+
function Qa(e, t, r, s) {
|
|
1596
1636
|
var a = F(e) ? e : M(e), i = F(t) ? t : M(t);
|
|
1597
1637
|
return this.isValid() && a.isValid() && i.isValid() ? (s = s || "()", (s[0] === "(" ? this.isAfter(a, r) : !this.isBefore(a, r)) && (s[1] === ")" ? this.isBefore(i, r) : !this.isAfter(i, r))) : !1;
|
|
1598
1638
|
}
|
|
1599
|
-
function
|
|
1639
|
+
function Ka(e, t) {
|
|
1600
1640
|
var r = F(e) ? e : M(e), s;
|
|
1601
1641
|
return this.isValid() && r.isValid() ? (t = W(t) || "millisecond", t === "millisecond" ? this.valueOf() === r.valueOf() : (s = r.valueOf(), this.clone().startOf(t).valueOf() <= s && s <= this.clone().endOf(t).valueOf())) : !1;
|
|
1602
1642
|
}
|
|
1603
|
-
function
|
|
1643
|
+
function Xa(e, t) {
|
|
1604
1644
|
return this.isSame(e, t) || this.isAfter(e, t);
|
|
1605
1645
|
}
|
|
1606
|
-
function
|
|
1646
|
+
function ei(e, t) {
|
|
1607
1647
|
return this.isSame(e, t) || this.isBefore(e, t);
|
|
1608
1648
|
}
|
|
1609
|
-
function
|
|
1649
|
+
function ti(e, t, r) {
|
|
1610
1650
|
var s, a, i;
|
|
1611
1651
|
if (!this.isValid())
|
|
1612
1652
|
return NaN;
|
|
@@ -1650,10 +1690,10 @@ function Te(e, t) {
|
|
|
1650
1690
|
}
|
|
1651
1691
|
l.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
1652
1692
|
l.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
1653
|
-
function
|
|
1693
|
+
function ri() {
|
|
1654
1694
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
1655
1695
|
}
|
|
1656
|
-
function
|
|
1696
|
+
function si(e) {
|
|
1657
1697
|
if (!this.isValid())
|
|
1658
1698
|
return null;
|
|
1659
1699
|
var t = e !== !0, r = t ? this.clone().utc() : this;
|
|
@@ -1665,57 +1705,57 @@ function Ka(e) {
|
|
|
1665
1705
|
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
1666
1706
|
);
|
|
1667
1707
|
}
|
|
1668
|
-
function
|
|
1708
|
+
function ai() {
|
|
1669
1709
|
if (!this.isValid())
|
|
1670
1710
|
return "moment.invalid(/* " + this._i + " */)";
|
|
1671
1711
|
var e = "moment", t = "", r, s, a, i;
|
|
1672
1712
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), r = "[" + e + '("]', s = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", a = "-MM-DD[T]HH:mm:ss.SSS", i = t + '[")]', this.format(r + s + a + i);
|
|
1673
1713
|
}
|
|
1674
|
-
function
|
|
1714
|
+
function ii(e) {
|
|
1675
1715
|
e || (e = this.isUtc() ? l.defaultFormatUtc : l.defaultFormat);
|
|
1676
1716
|
var t = be(this, e);
|
|
1677
1717
|
return this.localeData().postformat(t);
|
|
1678
1718
|
}
|
|
1679
|
-
function
|
|
1680
|
-
return this.isValid() && (F(e) && e.isValid() || M(e).isValid()) ?
|
|
1719
|
+
function ni(e, t) {
|
|
1720
|
+
return this.isValid() && (F(e) && e.isValid() || M(e).isValid()) ? C({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
1681
1721
|
}
|
|
1682
|
-
function
|
|
1722
|
+
function oi(e) {
|
|
1683
1723
|
return this.from(M(), e);
|
|
1684
1724
|
}
|
|
1685
|
-
function
|
|
1686
|
-
return this.isValid() && (F(e) && e.isValid() || M(e).isValid()) ?
|
|
1725
|
+
function li(e, t) {
|
|
1726
|
+
return this.isValid() && (F(e) && e.isValid() || M(e).isValid()) ? C({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
1687
1727
|
}
|
|
1688
|
-
function
|
|
1728
|
+
function ui(e) {
|
|
1689
1729
|
return this.to(M(), e);
|
|
1690
1730
|
}
|
|
1691
|
-
function
|
|
1731
|
+
function cr(e) {
|
|
1692
1732
|
var t;
|
|
1693
1733
|
return e === void 0 ? this._locale._abbr : (t = Z(e), t != null && (this._locale = t), this);
|
|
1694
1734
|
}
|
|
1695
|
-
var
|
|
1735
|
+
var fr = P(
|
|
1696
1736
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
1697
1737
|
function(e) {
|
|
1698
1738
|
return e === void 0 ? this.localeData() : this.locale(e);
|
|
1699
1739
|
}
|
|
1700
1740
|
);
|
|
1701
|
-
function
|
|
1741
|
+
function hr() {
|
|
1702
1742
|
return this._locale;
|
|
1703
1743
|
}
|
|
1704
|
-
var We = 1e3, le = 60 * We, Re = 60 * le,
|
|
1744
|
+
var We = 1e3, le = 60 * We, Re = 60 * le, _r = (365 * 400 + 97) * 24 * Re;
|
|
1705
1745
|
function ue(e, t) {
|
|
1706
1746
|
return (e % t + t) % t;
|
|
1707
1747
|
}
|
|
1708
|
-
function _r(e, t, r) {
|
|
1709
|
-
return e < 100 && e >= 0 ? new Date(e + 400, t, r) - hr : new Date(e, t, r).valueOf();
|
|
1710
|
-
}
|
|
1711
1748
|
function mr(e, t, r) {
|
|
1712
|
-
return e < 100 && e >= 0 ? Date
|
|
1749
|
+
return e < 100 && e >= 0 ? new Date(e + 400, t, r) - _r : new Date(e, t, r).valueOf();
|
|
1713
1750
|
}
|
|
1714
|
-
function
|
|
1751
|
+
function yr(e, t, r) {
|
|
1752
|
+
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, r) - _r : Date.UTC(e, t, r);
|
|
1753
|
+
}
|
|
1754
|
+
function di(e) {
|
|
1715
1755
|
var t, r;
|
|
1716
1756
|
if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1717
1757
|
return this;
|
|
1718
|
-
switch (r = this._isUTC ?
|
|
1758
|
+
switch (r = this._isUTC ? yr : mr, e) {
|
|
1719
1759
|
case "year":
|
|
1720
1760
|
t = r(this.year(), 0, 1);
|
|
1721
1761
|
break;
|
|
@@ -1762,11 +1802,11 @@ function ii(e) {
|
|
|
1762
1802
|
}
|
|
1763
1803
|
return this._d.setTime(t), l.updateOffset(this, !0), this;
|
|
1764
1804
|
}
|
|
1765
|
-
function
|
|
1805
|
+
function ci(e) {
|
|
1766
1806
|
var t, r;
|
|
1767
1807
|
if (e = W(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1768
1808
|
return this;
|
|
1769
|
-
switch (r = this._isUTC ?
|
|
1809
|
+
switch (r = this._isUTC ? yr : mr, e) {
|
|
1770
1810
|
case "year":
|
|
1771
1811
|
t = r(this.year() + 1, 0, 1) - 1;
|
|
1772
1812
|
break;
|
|
@@ -1813,16 +1853,16 @@ function ni(e) {
|
|
|
1813
1853
|
}
|
|
1814
1854
|
return this._d.setTime(t), l.updateOffset(this, !0), this;
|
|
1815
1855
|
}
|
|
1816
|
-
function
|
|
1856
|
+
function fi() {
|
|
1817
1857
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
1818
1858
|
}
|
|
1819
|
-
function
|
|
1859
|
+
function hi() {
|
|
1820
1860
|
return Math.floor(this.valueOf() / 1e3);
|
|
1821
1861
|
}
|
|
1822
|
-
function
|
|
1862
|
+
function _i() {
|
|
1823
1863
|
return new Date(this.valueOf());
|
|
1824
1864
|
}
|
|
1825
|
-
function
|
|
1865
|
+
function mi() {
|
|
1826
1866
|
var e = this;
|
|
1827
1867
|
return [
|
|
1828
1868
|
e.year(),
|
|
@@ -1834,7 +1874,7 @@ function di() {
|
|
|
1834
1874
|
e.millisecond()
|
|
1835
1875
|
];
|
|
1836
1876
|
}
|
|
1837
|
-
function
|
|
1877
|
+
function yi() {
|
|
1838
1878
|
var e = this;
|
|
1839
1879
|
return {
|
|
1840
1880
|
years: e.year(),
|
|
@@ -1846,19 +1886,19 @@ function ci() {
|
|
|
1846
1886
|
milliseconds: e.milliseconds()
|
|
1847
1887
|
};
|
|
1848
1888
|
}
|
|
1849
|
-
function
|
|
1889
|
+
function pi() {
|
|
1850
1890
|
return this.isValid() ? this.toISOString() : null;
|
|
1851
1891
|
}
|
|
1852
|
-
function
|
|
1892
|
+
function gi() {
|
|
1853
1893
|
return at(this);
|
|
1854
1894
|
}
|
|
1855
|
-
function
|
|
1895
|
+
function wi() {
|
|
1856
1896
|
return Q({}, h(this));
|
|
1857
1897
|
}
|
|
1858
|
-
function
|
|
1898
|
+
function Mi() {
|
|
1859
1899
|
return h(this).overflow;
|
|
1860
1900
|
}
|
|
1861
|
-
function
|
|
1901
|
+
function vi() {
|
|
1862
1902
|
return {
|
|
1863
1903
|
input: this._i,
|
|
1864
1904
|
format: this._f,
|
|
@@ -1879,9 +1919,9 @@ c("y", ["yyyy", 4], 0, "eraYear");
|
|
|
1879
1919
|
d("N", kt);
|
|
1880
1920
|
d("NN", kt);
|
|
1881
1921
|
d("NNN", kt);
|
|
1882
|
-
d("NNNN",
|
|
1883
|
-
d("NNNNN",
|
|
1884
|
-
|
|
1922
|
+
d("NNNN", Ri);
|
|
1923
|
+
d("NNNNN", Ni);
|
|
1924
|
+
w(
|
|
1885
1925
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
1886
1926
|
function(e, t, r, s) {
|
|
1887
1927
|
var a = r._locale.erasParse(e, s, r._strict);
|
|
@@ -1892,13 +1932,13 @@ d("y", de);
|
|
|
1892
1932
|
d("yy", de);
|
|
1893
1933
|
d("yyy", de);
|
|
1894
1934
|
d("yyyy", de);
|
|
1895
|
-
d("yo",
|
|
1896
|
-
|
|
1897
|
-
|
|
1935
|
+
d("yo", Fi);
|
|
1936
|
+
w(["y", "yy", "yyy", "yyyy"], Y);
|
|
1937
|
+
w(["yo"], function(e, t, r, s) {
|
|
1898
1938
|
var a;
|
|
1899
1939
|
r._locale._eraYearOrdinalRegex && (a = e.match(r._locale._eraYearOrdinalRegex)), r._locale.eraYearOrdinalParse ? t[Y] = r._locale.eraYearOrdinalParse(e, a) : t[Y] = parseInt(e, 10);
|
|
1900
1940
|
});
|
|
1901
|
-
function
|
|
1941
|
+
function ki(e, t) {
|
|
1902
1942
|
var r, s, a, i = this._eras || Z("en")._eras;
|
|
1903
1943
|
for (r = 0, s = i.length; r < s; ++r) {
|
|
1904
1944
|
switch (typeof i[r].since) {
|
|
@@ -1917,7 +1957,7 @@ function pi(e, t) {
|
|
|
1917
1957
|
}
|
|
1918
1958
|
return i;
|
|
1919
1959
|
}
|
|
1920
|
-
function
|
|
1960
|
+
function Si(e, t, r) {
|
|
1921
1961
|
var s, a, i = this.eras(), n, u, f;
|
|
1922
1962
|
for (e = e.toUpperCase(), s = 0, a = i.length; s < a; ++s)
|
|
1923
1963
|
if (n = i[s].name.toUpperCase(), u = i[s].abbr.toUpperCase(), f = i[s].narrow.toUpperCase(), r)
|
|
@@ -1940,57 +1980,57 @@ function wi(e, t, r) {
|
|
|
1940
1980
|
else if ([n, u, f].indexOf(e) >= 0)
|
|
1941
1981
|
return i[s];
|
|
1942
1982
|
}
|
|
1943
|
-
function
|
|
1983
|
+
function Di(e, t) {
|
|
1944
1984
|
var r = e.since <= e.until ? 1 : -1;
|
|
1945
1985
|
return t === void 0 ? l(e.since).year() : l(e.since).year() + (t - e.offset) * r;
|
|
1946
1986
|
}
|
|
1947
|
-
function
|
|
1987
|
+
function Yi() {
|
|
1948
1988
|
var e, t, r, s = this.localeData().eras();
|
|
1949
1989
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1950
1990
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1951
1991
|
return s[e].name;
|
|
1952
1992
|
return "";
|
|
1953
1993
|
}
|
|
1954
|
-
function
|
|
1994
|
+
function bi() {
|
|
1955
1995
|
var e, t, r, s = this.localeData().eras();
|
|
1956
1996
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1957
1997
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1958
1998
|
return s[e].narrow;
|
|
1959
1999
|
return "";
|
|
1960
2000
|
}
|
|
1961
|
-
function
|
|
2001
|
+
function Oi() {
|
|
1962
2002
|
var e, t, r, s = this.localeData().eras();
|
|
1963
2003
|
for (e = 0, t = s.length; e < t; ++e)
|
|
1964
2004
|
if (r = this.clone().startOf("day").valueOf(), s[e].since <= r && r <= s[e].until || s[e].until <= r && r <= s[e].since)
|
|
1965
2005
|
return s[e].abbr;
|
|
1966
2006
|
return "";
|
|
1967
2007
|
}
|
|
1968
|
-
function
|
|
2008
|
+
function Ti() {
|
|
1969
2009
|
var e, t, r, s, a = this.localeData().eras();
|
|
1970
2010
|
for (e = 0, t = a.length; e < t; ++e)
|
|
1971
2011
|
if (r = a[e].since <= a[e].until ? 1 : -1, s = this.clone().startOf("day").valueOf(), a[e].since <= s && s <= a[e].until || a[e].until <= s && s <= a[e].since)
|
|
1972
2012
|
return (this.year() - l(a[e].since).year()) * r + a[e].offset;
|
|
1973
2013
|
return this.year();
|
|
1974
2014
|
}
|
|
1975
|
-
function
|
|
2015
|
+
function xi(e) {
|
|
1976
2016
|
return p(this, "_erasNameRegex") || St.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
1977
2017
|
}
|
|
1978
|
-
function
|
|
2018
|
+
function Pi(e) {
|
|
1979
2019
|
return p(this, "_erasAbbrRegex") || St.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
1980
2020
|
}
|
|
1981
|
-
function
|
|
2021
|
+
function Wi(e) {
|
|
1982
2022
|
return p(this, "_erasNarrowRegex") || St.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
1983
2023
|
}
|
|
1984
2024
|
function kt(e, t) {
|
|
1985
2025
|
return t.erasAbbrRegex(e);
|
|
1986
2026
|
}
|
|
1987
|
-
function
|
|
2027
|
+
function Ri(e, t) {
|
|
1988
2028
|
return t.erasNameRegex(e);
|
|
1989
2029
|
}
|
|
1990
|
-
function
|
|
2030
|
+
function Ni(e, t) {
|
|
1991
2031
|
return t.erasNarrowRegex(e);
|
|
1992
2032
|
}
|
|
1993
|
-
function
|
|
2033
|
+
function Fi(e, t) {
|
|
1994
2034
|
return t._eraYearOrdinalRegex || de;
|
|
1995
2035
|
}
|
|
1996
2036
|
function St() {
|
|
@@ -2021,8 +2061,8 @@ d("GG", v, T);
|
|
|
2021
2061
|
d("gg", v, T);
|
|
2022
2062
|
d("GGGG", dt, ut);
|
|
2023
2063
|
d("gggg", dt, ut);
|
|
2024
|
-
d("GGGGG", Ie,
|
|
2025
|
-
d("ggggg", Ie,
|
|
2064
|
+
d("GGGGG", Ie, Ce);
|
|
2065
|
+
d("ggggg", Ie, Ce);
|
|
2026
2066
|
Se(
|
|
2027
2067
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
2028
2068
|
function(e, t, r, s) {
|
|
@@ -2032,8 +2072,8 @@ Se(
|
|
|
2032
2072
|
Se(["gg", "GG"], function(e, t, r, s) {
|
|
2033
2073
|
t[s] = l.parseTwoDigitYear(e);
|
|
2034
2074
|
});
|
|
2035
|
-
function
|
|
2036
|
-
return
|
|
2075
|
+
function Ci(e) {
|
|
2076
|
+
return pr.call(
|
|
2037
2077
|
this,
|
|
2038
2078
|
e,
|
|
2039
2079
|
this.week(),
|
|
@@ -2042,8 +2082,8 @@ function Pi(e) {
|
|
|
2042
2082
|
this.localeData()._week.doy
|
|
2043
2083
|
);
|
|
2044
2084
|
}
|
|
2045
|
-
function
|
|
2046
|
-
return
|
|
2085
|
+
function Li(e) {
|
|
2086
|
+
return pr.call(
|
|
2047
2087
|
this,
|
|
2048
2088
|
e,
|
|
2049
2089
|
this.isoWeek(),
|
|
@@ -2052,34 +2092,34 @@ function Wi(e) {
|
|
|
2052
2092
|
4
|
|
2053
2093
|
);
|
|
2054
2094
|
}
|
|
2055
|
-
function
|
|
2095
|
+
function Ii() {
|
|
2056
2096
|
return $(this.year(), 1, 4);
|
|
2057
2097
|
}
|
|
2058
|
-
function
|
|
2098
|
+
function Ui() {
|
|
2059
2099
|
return $(this.isoWeekYear(), 1, 4);
|
|
2060
2100
|
}
|
|
2061
|
-
function
|
|
2101
|
+
function Hi() {
|
|
2062
2102
|
var e = this.localeData()._week;
|
|
2063
2103
|
return $(this.year(), e.dow, e.doy);
|
|
2064
2104
|
}
|
|
2065
|
-
function
|
|
2105
|
+
function Ei() {
|
|
2066
2106
|
var e = this.localeData()._week;
|
|
2067
2107
|
return $(this.weekYear(), e.dow, e.doy);
|
|
2068
2108
|
}
|
|
2069
|
-
function
|
|
2109
|
+
function pr(e, t, r, s, a) {
|
|
2070
2110
|
var i;
|
|
2071
|
-
return e == null ?
|
|
2111
|
+
return e == null ? ge(this, s, a).year : (i = $(e, s, a), t > i && (t = i), Ai.call(this, e, t, r, s, a));
|
|
2072
2112
|
}
|
|
2073
|
-
function
|
|
2074
|
-
var i =
|
|
2113
|
+
function Ai(e, t, r, s, a) {
|
|
2114
|
+
var i = Jt(e, t, r, s, a), n = pe(i.year, 0, i.dayOfYear);
|
|
2075
2115
|
return this.year(n.getUTCFullYear()), this.month(n.getUTCMonth()), this.date(n.getUTCDate()), this;
|
|
2076
2116
|
}
|
|
2077
2117
|
c("Q", 0, "Qo", "quarter");
|
|
2078
|
-
d("Q",
|
|
2079
|
-
|
|
2118
|
+
d("Q", Ht);
|
|
2119
|
+
w("Q", function(e, t) {
|
|
2080
2120
|
t[G] = (_(e) - 1) * 3;
|
|
2081
2121
|
});
|
|
2082
|
-
function
|
|
2122
|
+
function ji(e) {
|
|
2083
2123
|
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
2084
2124
|
}
|
|
2085
2125
|
c("D", ["DD", 2], "Do", "date");
|
|
@@ -2088,18 +2128,18 @@ d("DD", v, T);
|
|
|
2088
2128
|
d("Do", function(e, t) {
|
|
2089
2129
|
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2090
2130
|
});
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
t[
|
|
2131
|
+
w(["D", "DD"], L);
|
|
2132
|
+
w("Do", function(e, t) {
|
|
2133
|
+
t[L] = _(e.match(v)[0]);
|
|
2094
2134
|
});
|
|
2095
|
-
var
|
|
2135
|
+
var gr = fe("Date", !0);
|
|
2096
2136
|
c("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
2097
|
-
d("DDD",
|
|
2098
|
-
d("DDDD",
|
|
2099
|
-
|
|
2137
|
+
d("DDD", Le);
|
|
2138
|
+
d("DDDD", Et);
|
|
2139
|
+
w(["DDD", "DDDD"], function(e, t, r) {
|
|
2100
2140
|
r._dayOfYear = _(e);
|
|
2101
2141
|
});
|
|
2102
|
-
function
|
|
2142
|
+
function Gi(e) {
|
|
2103
2143
|
var t = Math.round(
|
|
2104
2144
|
(this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
|
|
2105
2145
|
) + 1;
|
|
@@ -2108,13 +2148,13 @@ function Ui(e) {
|
|
|
2108
2148
|
c("m", ["mm", 2], 0, "minute");
|
|
2109
2149
|
d("m", v, ct);
|
|
2110
2150
|
d("mm", v, T);
|
|
2111
|
-
|
|
2112
|
-
var
|
|
2151
|
+
w(["m", "mm"], R);
|
|
2152
|
+
var Vi = fe("Minutes", !1);
|
|
2113
2153
|
c("s", ["ss", 2], 0, "second");
|
|
2114
2154
|
d("s", v, ct);
|
|
2115
2155
|
d("ss", v, T);
|
|
2116
|
-
|
|
2117
|
-
var
|
|
2156
|
+
w(["s", "ss"], V);
|
|
2157
|
+
var zi = fe("Seconds", !1);
|
|
2118
2158
|
c("S", 0, 0, function() {
|
|
2119
2159
|
return ~~(this.millisecond() / 100);
|
|
2120
2160
|
});
|
|
@@ -2140,173 +2180,173 @@ c(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
2140
2180
|
c(0, ["SSSSSSSSS", 9], 0, function() {
|
|
2141
2181
|
return this.millisecond() * 1e6;
|
|
2142
2182
|
});
|
|
2143
|
-
d("S",
|
|
2144
|
-
d("SS",
|
|
2145
|
-
d("SSS",
|
|
2183
|
+
d("S", Le, Ht);
|
|
2184
|
+
d("SS", Le, T);
|
|
2185
|
+
d("SSS", Le, Et);
|
|
2146
2186
|
var K, wr;
|
|
2147
2187
|
for (K = "SSSS"; K.length <= 9; K += "S")
|
|
2148
2188
|
d(K, de);
|
|
2149
|
-
function
|
|
2189
|
+
function $i(e, t) {
|
|
2150
2190
|
t[te] = _(("0." + e) * 1e3);
|
|
2151
2191
|
}
|
|
2152
2192
|
for (K = "S"; K.length <= 9; K += "S")
|
|
2153
|
-
|
|
2193
|
+
w(K, $i);
|
|
2154
2194
|
wr = fe("Milliseconds", !1);
|
|
2155
2195
|
c("z", 0, 0, "zoneAbbr");
|
|
2156
2196
|
c("zz", 0, 0, "zoneName");
|
|
2157
|
-
function
|
|
2197
|
+
function qi() {
|
|
2158
2198
|
return this._isUTC ? "UTC" : "";
|
|
2159
2199
|
}
|
|
2160
|
-
function
|
|
2200
|
+
function Zi() {
|
|
2161
2201
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
2162
2202
|
}
|
|
2163
2203
|
var o = ve.prototype;
|
|
2164
|
-
o.add =
|
|
2165
|
-
o.calendar =
|
|
2166
|
-
o.clone =
|
|
2167
|
-
o.diff =
|
|
2168
|
-
o.endOf =
|
|
2169
|
-
o.format =
|
|
2170
|
-
o.from =
|
|
2171
|
-
o.fromNow =
|
|
2172
|
-
o.to =
|
|
2173
|
-
o.toNow =
|
|
2174
|
-
o.get =
|
|
2175
|
-
o.invalidAt =
|
|
2176
|
-
o.isAfter =
|
|
2177
|
-
o.isBefore =
|
|
2178
|
-
o.isBetween =
|
|
2179
|
-
o.isSame =
|
|
2180
|
-
o.isSameOrAfter =
|
|
2181
|
-
o.isSameOrBefore =
|
|
2182
|
-
o.isValid =
|
|
2183
|
-
o.lang =
|
|
2184
|
-
o.locale =
|
|
2185
|
-
o.localeData =
|
|
2186
|
-
o.max =
|
|
2187
|
-
o.min =
|
|
2188
|
-
o.parsingFlags =
|
|
2189
|
-
o.set =
|
|
2190
|
-
o.startOf =
|
|
2191
|
-
o.subtract =
|
|
2192
|
-
o.toArray =
|
|
2193
|
-
o.toObject =
|
|
2194
|
-
o.toDate =
|
|
2195
|
-
o.toISOString =
|
|
2196
|
-
o.inspect =
|
|
2204
|
+
o.add = Ea;
|
|
2205
|
+
o.calendar = qa;
|
|
2206
|
+
o.clone = Za;
|
|
2207
|
+
o.diff = ti;
|
|
2208
|
+
o.endOf = ci;
|
|
2209
|
+
o.format = ii;
|
|
2210
|
+
o.from = ni;
|
|
2211
|
+
o.fromNow = oi;
|
|
2212
|
+
o.to = li;
|
|
2213
|
+
o.toNow = ui;
|
|
2214
|
+
o.get = as;
|
|
2215
|
+
o.invalidAt = Mi;
|
|
2216
|
+
o.isAfter = Ba;
|
|
2217
|
+
o.isBefore = Ja;
|
|
2218
|
+
o.isBetween = Qa;
|
|
2219
|
+
o.isSame = Ka;
|
|
2220
|
+
o.isSameOrAfter = Xa;
|
|
2221
|
+
o.isSameOrBefore = ei;
|
|
2222
|
+
o.isValid = gi;
|
|
2223
|
+
o.lang = fr;
|
|
2224
|
+
o.locale = cr;
|
|
2225
|
+
o.localeData = hr;
|
|
2226
|
+
o.max = ga;
|
|
2227
|
+
o.min = pa;
|
|
2228
|
+
o.parsingFlags = wi;
|
|
2229
|
+
o.set = is;
|
|
2230
|
+
o.startOf = di;
|
|
2231
|
+
o.subtract = Aa;
|
|
2232
|
+
o.toArray = mi;
|
|
2233
|
+
o.toObject = yi;
|
|
2234
|
+
o.toDate = _i;
|
|
2235
|
+
o.toISOString = si;
|
|
2236
|
+
o.inspect = ai;
|
|
2197
2237
|
typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2198
2238
|
return "Moment<" + this.format() + ">";
|
|
2199
2239
|
});
|
|
2200
|
-
o.toJSON =
|
|
2201
|
-
o.toString =
|
|
2202
|
-
o.unix =
|
|
2203
|
-
o.valueOf =
|
|
2204
|
-
o.creationData =
|
|
2205
|
-
o.eraName =
|
|
2206
|
-
o.eraNarrow =
|
|
2207
|
-
o.eraAbbr =
|
|
2208
|
-
o.eraYear =
|
|
2209
|
-
o.year =
|
|
2210
|
-
o.isLeapYear =
|
|
2211
|
-
o.weekYear =
|
|
2212
|
-
o.isoWeekYear =
|
|
2213
|
-
o.quarter = o.quarters =
|
|
2214
|
-
o.month =
|
|
2215
|
-
o.daysInMonth =
|
|
2216
|
-
o.week = o.weeks =
|
|
2217
|
-
o.isoWeek = o.isoWeeks =
|
|
2218
|
-
o.weeksInYear =
|
|
2219
|
-
o.weeksInWeekYear =
|
|
2220
|
-
o.isoWeeksInYear =
|
|
2221
|
-
o.isoWeeksInISOWeekYear =
|
|
2222
|
-
o.date =
|
|
2223
|
-
o.day = o.days =
|
|
2224
|
-
o.weekday =
|
|
2225
|
-
o.isoWeekday =
|
|
2226
|
-
o.dayOfYear =
|
|
2227
|
-
o.hour = o.hours =
|
|
2228
|
-
o.minute = o.minutes =
|
|
2229
|
-
o.second = o.seconds =
|
|
2240
|
+
o.toJSON = pi;
|
|
2241
|
+
o.toString = ri;
|
|
2242
|
+
o.unix = hi;
|
|
2243
|
+
o.valueOf = fi;
|
|
2244
|
+
o.creationData = vi;
|
|
2245
|
+
o.eraName = Yi;
|
|
2246
|
+
o.eraNarrow = bi;
|
|
2247
|
+
o.eraAbbr = Oi;
|
|
2248
|
+
o.eraYear = Ti;
|
|
2249
|
+
o.year = Gt;
|
|
2250
|
+
o.isLeapYear = ss;
|
|
2251
|
+
o.weekYear = Ci;
|
|
2252
|
+
o.isoWeekYear = Li;
|
|
2253
|
+
o.quarter = o.quarters = ji;
|
|
2254
|
+
o.month = Zt;
|
|
2255
|
+
o.daysInMonth = _s;
|
|
2256
|
+
o.week = o.weeks = ks;
|
|
2257
|
+
o.isoWeek = o.isoWeeks = Ss;
|
|
2258
|
+
o.weeksInYear = Hi;
|
|
2259
|
+
o.weeksInWeekYear = Ei;
|
|
2260
|
+
o.isoWeeksInYear = Ii;
|
|
2261
|
+
o.isoWeeksInISOWeekYear = Ui;
|
|
2262
|
+
o.date = gr;
|
|
2263
|
+
o.day = o.days = Ls;
|
|
2264
|
+
o.weekday = Is;
|
|
2265
|
+
o.isoWeekday = Us;
|
|
2266
|
+
o.dayOfYear = Gi;
|
|
2267
|
+
o.hour = o.hours = zs;
|
|
2268
|
+
o.minute = o.minutes = Vi;
|
|
2269
|
+
o.second = o.seconds = zi;
|
|
2230
2270
|
o.millisecond = o.milliseconds = wr;
|
|
2231
|
-
o.utcOffset =
|
|
2232
|
-
o.utc =
|
|
2233
|
-
o.local =
|
|
2234
|
-
o.parseZone =
|
|
2235
|
-
o.hasAlignedHourOffset =
|
|
2236
|
-
o.isDST =
|
|
2237
|
-
o.isLocal =
|
|
2238
|
-
o.isUtcOffset =
|
|
2239
|
-
o.isUtc =
|
|
2240
|
-
o.isUTC =
|
|
2241
|
-
o.zoneAbbr =
|
|
2242
|
-
o.zoneName =
|
|
2271
|
+
o.utcOffset = Oa;
|
|
2272
|
+
o.utc = xa;
|
|
2273
|
+
o.local = Pa;
|
|
2274
|
+
o.parseZone = Wa;
|
|
2275
|
+
o.hasAlignedHourOffset = Ra;
|
|
2276
|
+
o.isDST = Na;
|
|
2277
|
+
o.isLocal = Ca;
|
|
2278
|
+
o.isUtcOffset = La;
|
|
2279
|
+
o.isUtc = or;
|
|
2280
|
+
o.isUTC = or;
|
|
2281
|
+
o.zoneAbbr = qi;
|
|
2282
|
+
o.zoneName = Zi;
|
|
2243
2283
|
o.dates = P(
|
|
2244
2284
|
"dates accessor is deprecated. Use date instead.",
|
|
2245
|
-
|
|
2285
|
+
gr
|
|
2246
2286
|
);
|
|
2247
2287
|
o.months = P(
|
|
2248
2288
|
"months accessor is deprecated. Use month instead",
|
|
2249
|
-
|
|
2289
|
+
Zt
|
|
2250
2290
|
);
|
|
2251
2291
|
o.years = P(
|
|
2252
2292
|
"years accessor is deprecated. Use year instead",
|
|
2253
|
-
|
|
2293
|
+
Gt
|
|
2254
2294
|
);
|
|
2255
2295
|
o.zone = P(
|
|
2256
2296
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
2257
|
-
|
|
2297
|
+
Ta
|
|
2258
2298
|
);
|
|
2259
2299
|
o.isDSTShifted = P(
|
|
2260
2300
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
2261
|
-
|
|
2301
|
+
Fa
|
|
2262
2302
|
);
|
|
2263
|
-
function
|
|
2303
|
+
function Bi(e) {
|
|
2264
2304
|
return M(e * 1e3);
|
|
2265
2305
|
}
|
|
2266
|
-
function
|
|
2306
|
+
function Ji() {
|
|
2267
2307
|
return M.apply(null, arguments).parseZone();
|
|
2268
2308
|
}
|
|
2269
|
-
function
|
|
2309
|
+
function Mr(e) {
|
|
2270
2310
|
return e;
|
|
2271
2311
|
}
|
|
2272
|
-
var
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2312
|
+
var g = nt.prototype;
|
|
2313
|
+
g.calendar = Cr;
|
|
2314
|
+
g.longDateFormat = Hr;
|
|
2315
|
+
g.invalidDate = Ar;
|
|
2316
|
+
g.ordinal = Vr;
|
|
2317
|
+
g.preparse = Mr;
|
|
2318
|
+
g.postformat = Mr;
|
|
2319
|
+
g.relativeTime = $r;
|
|
2320
|
+
g.pastFuture = qr;
|
|
2321
|
+
g.set = Nr;
|
|
2322
|
+
g.eras = ki;
|
|
2323
|
+
g.erasParse = Si;
|
|
2324
|
+
g.erasConvertYear = Di;
|
|
2325
|
+
g.erasAbbrRegex = Pi;
|
|
2326
|
+
g.erasNameRegex = xi;
|
|
2327
|
+
g.erasNarrowRegex = Wi;
|
|
2328
|
+
g.months = ds;
|
|
2329
|
+
g.monthsShort = cs;
|
|
2330
|
+
g.monthsParse = hs;
|
|
2331
|
+
g.monthsRegex = ys;
|
|
2332
|
+
g.monthsShortRegex = ms;
|
|
2333
|
+
g.week = gs;
|
|
2334
|
+
g.firstDayOfYear = vs;
|
|
2335
|
+
g.firstDayOfWeek = Ms;
|
|
2336
|
+
g.weekdays = Ws;
|
|
2337
|
+
g.weekdaysMin = Ns;
|
|
2338
|
+
g.weekdaysShort = Rs;
|
|
2339
|
+
g.weekdaysParse = Cs;
|
|
2340
|
+
g.weekdaysRegex = Hs;
|
|
2341
|
+
g.weekdaysShortRegex = Es;
|
|
2342
|
+
g.weekdaysMinRegex = As;
|
|
2343
|
+
g.isPM = Gs;
|
|
2344
|
+
g.meridiem = $s;
|
|
2305
2345
|
function Ne(e, t, r, s) {
|
|
2306
2346
|
var a = Z(), i = U().set(s, t);
|
|
2307
2347
|
return a[r](i, e);
|
|
2308
2348
|
}
|
|
2309
|
-
function
|
|
2349
|
+
function vr(e, t, r) {
|
|
2310
2350
|
if (q(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
2311
2351
|
return Ne(e, t, r, "month");
|
|
2312
2352
|
var s, a = [];
|
|
@@ -2323,19 +2363,19 @@ function Dt(e, t, r, s) {
|
|
|
2323
2363
|
u[n] = Ne(t, (n + i) % 7, s, "day");
|
|
2324
2364
|
return u;
|
|
2325
2365
|
}
|
|
2326
|
-
function
|
|
2327
|
-
return
|
|
2366
|
+
function Qi(e, t) {
|
|
2367
|
+
return vr(e, t, "months");
|
|
2328
2368
|
}
|
|
2329
|
-
function
|
|
2330
|
-
return
|
|
2369
|
+
function Ki(e, t) {
|
|
2370
|
+
return vr(e, t, "monthsShort");
|
|
2331
2371
|
}
|
|
2332
|
-
function
|
|
2372
|
+
function Xi(e, t, r) {
|
|
2333
2373
|
return Dt(e, t, r, "weekdays");
|
|
2334
2374
|
}
|
|
2335
|
-
function
|
|
2375
|
+
function en(e, t, r) {
|
|
2336
2376
|
return Dt(e, t, r, "weekdaysShort");
|
|
2337
2377
|
}
|
|
2338
|
-
function
|
|
2378
|
+
function tn(e, t, r) {
|
|
2339
2379
|
return Dt(e, t, r, "weekdaysMin");
|
|
2340
2380
|
}
|
|
2341
2381
|
X("en", {
|
|
@@ -2371,40 +2411,40 @@ l.langData = P(
|
|
|
2371
2411
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
2372
2412
|
Z
|
|
2373
2413
|
);
|
|
2374
|
-
var
|
|
2375
|
-
function
|
|
2414
|
+
var A = Math.abs;
|
|
2415
|
+
function rn() {
|
|
2376
2416
|
var e = this._data;
|
|
2377
|
-
return this._milliseconds =
|
|
2417
|
+
return this._milliseconds = A(this._milliseconds), this._days = A(this._days), this._months = A(this._months), e.milliseconds = A(e.milliseconds), e.seconds = A(e.seconds), e.minutes = A(e.minutes), e.hours = A(e.hours), e.months = A(e.months), e.years = A(e.years), this;
|
|
2378
2418
|
}
|
|
2379
|
-
function
|
|
2380
|
-
var a =
|
|
2419
|
+
function kr(e, t, r, s) {
|
|
2420
|
+
var a = C(t, r);
|
|
2381
2421
|
return e._milliseconds += s * a._milliseconds, e._days += s * a._days, e._months += s * a._months, e._bubble();
|
|
2382
2422
|
}
|
|
2383
|
-
function
|
|
2384
|
-
return
|
|
2423
|
+
function sn(e, t) {
|
|
2424
|
+
return kr(this, e, t, 1);
|
|
2385
2425
|
}
|
|
2386
|
-
function
|
|
2387
|
-
return
|
|
2426
|
+
function an(e, t) {
|
|
2427
|
+
return kr(this, e, t, -1);
|
|
2388
2428
|
}
|
|
2389
2429
|
function Wt(e) {
|
|
2390
2430
|
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
2391
2431
|
}
|
|
2392
|
-
function
|
|
2432
|
+
function nn() {
|
|
2393
2433
|
var e = this._milliseconds, t = this._days, r = this._months, s = this._data, a, i, n, u, f;
|
|
2394
|
-
return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Wt(rt(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, a = x(e / 1e3), s.seconds = a % 60, i = x(a / 60), s.minutes = i % 60, n = x(i / 60), s.hours = n % 24, t += x(n / 24), f = x(
|
|
2434
|
+
return e >= 0 && t >= 0 && r >= 0 || e <= 0 && t <= 0 && r <= 0 || (e += Wt(rt(r) + t) * 864e5, t = 0, r = 0), s.milliseconds = e % 1e3, a = x(e / 1e3), s.seconds = a % 60, i = x(a / 60), s.minutes = i % 60, n = x(i / 60), s.hours = n % 24, t += x(n / 24), f = x(Sr(t)), r += f, t -= Wt(rt(f)), u = x(r / 12), r %= 12, s.days = t, s.months = r, s.years = u, this;
|
|
2395
2435
|
}
|
|
2396
|
-
function
|
|
2436
|
+
function Sr(e) {
|
|
2397
2437
|
return e * 4800 / 146097;
|
|
2398
2438
|
}
|
|
2399
2439
|
function rt(e) {
|
|
2400
2440
|
return e * 146097 / 4800;
|
|
2401
2441
|
}
|
|
2402
|
-
function
|
|
2442
|
+
function on(e) {
|
|
2403
2443
|
if (!this.isValid())
|
|
2404
2444
|
return NaN;
|
|
2405
2445
|
var t, r, s = this._milliseconds;
|
|
2406
2446
|
if (e = W(e), e === "month" || e === "quarter" || e === "year")
|
|
2407
|
-
switch (t = this._days + s / 864e5, r = this._months +
|
|
2447
|
+
switch (t = this._days + s / 864e5, r = this._months + Sr(t), e) {
|
|
2408
2448
|
case "month":
|
|
2409
2449
|
return r;
|
|
2410
2450
|
case "quarter":
|
|
@@ -2435,11 +2475,11 @@ function B(e) {
|
|
|
2435
2475
|
return this.as(e);
|
|
2436
2476
|
};
|
|
2437
2477
|
}
|
|
2438
|
-
var
|
|
2439
|
-
function
|
|
2440
|
-
return
|
|
2478
|
+
var Dr = B("ms"), ln = B("s"), un = B("m"), dn = B("h"), cn = B("d"), fn = B("w"), hn = B("M"), _n = B("Q"), mn = B("y"), yn = Dr;
|
|
2479
|
+
function pn() {
|
|
2480
|
+
return C(this);
|
|
2441
2481
|
}
|
|
2442
|
-
function
|
|
2482
|
+
function gn(e) {
|
|
2443
2483
|
return e = W(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
2444
2484
|
}
|
|
2445
2485
|
function se(e) {
|
|
@@ -2447,8 +2487,8 @@ function se(e) {
|
|
|
2447
2487
|
return this.isValid() ? this._data[e] : NaN;
|
|
2448
2488
|
};
|
|
2449
2489
|
}
|
|
2450
|
-
var
|
|
2451
|
-
function
|
|
2490
|
+
var wn = se("milliseconds"), Mn = se("seconds"), vn = se("minutes"), kn = se("hours"), Sn = se("days"), Dn = se("months"), Yn = se("years");
|
|
2491
|
+
function bn() {
|
|
2452
2492
|
return x(this.days() / 7);
|
|
2453
2493
|
}
|
|
2454
2494
|
var j = Math.round, ne = {
|
|
@@ -2467,24 +2507,24 @@ var j = Math.round, ne = {
|
|
|
2467
2507
|
M: 11
|
|
2468
2508
|
// months to year
|
|
2469
2509
|
};
|
|
2470
|
-
function
|
|
2510
|
+
function On(e, t, r, s, a) {
|
|
2471
2511
|
return a.relativeTime(t || 1, !!r, e, s);
|
|
2472
2512
|
}
|
|
2473
|
-
function
|
|
2474
|
-
var a =
|
|
2475
|
-
return r.w != null && (J = J || b <= 1 && ["w"] || b < r.w && ["ww", b]), J = J || m <= 1 && ["M"] || m < r.M && ["MM", m] ||
|
|
2513
|
+
function Tn(e, t, r, s) {
|
|
2514
|
+
var a = C(e).abs(), i = j(a.as("s")), n = j(a.as("m")), u = j(a.as("h")), f = j(a.as("d")), m = j(a.as("M")), b = j(a.as("w")), E = j(a.as("y")), J = i <= r.ss && ["s", i] || i < r.s && ["ss", i] || n <= 1 && ["m"] || n < r.m && ["mm", n] || u <= 1 && ["h"] || u < r.h && ["hh", u] || f <= 1 && ["d"] || f < r.d && ["dd", f];
|
|
2515
|
+
return r.w != null && (J = J || b <= 1 && ["w"] || b < r.w && ["ww", b]), J = J || m <= 1 && ["M"] || m < r.M && ["MM", m] || E <= 1 && ["y"] || ["yy", E], J[2] = t, J[3] = +e > 0, J[4] = s, On.apply(null, J);
|
|
2476
2516
|
}
|
|
2477
|
-
function
|
|
2517
|
+
function xn(e) {
|
|
2478
2518
|
return e === void 0 ? j : typeof e == "function" ? (j = e, !0) : !1;
|
|
2479
2519
|
}
|
|
2480
|
-
function
|
|
2520
|
+
function Pn(e, t) {
|
|
2481
2521
|
return ne[e] === void 0 ? !1 : t === void 0 ? ne[e] : (ne[e] = t, e === "s" && (ne.ss = t - 1), !0);
|
|
2482
2522
|
}
|
|
2483
|
-
function
|
|
2523
|
+
function Wn(e, t) {
|
|
2484
2524
|
if (!this.isValid())
|
|
2485
2525
|
return this.localeData().invalidDate();
|
|
2486
2526
|
var r = !1, s = ne, a, i;
|
|
2487
|
-
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (r = e), typeof t == "object" && (s = Object.assign({}, ne, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), a = this.localeData(), i =
|
|
2527
|
+
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (r = e), typeof t == "object" && (s = Object.assign({}, ne, t), t.s != null && t.ss == null && (s.ss = t.s - 1)), a = this.localeData(), i = Tn(this, !r, s, a), r && (i = a.pastFuture(+this, i)), a.postformat(i);
|
|
2488
2528
|
}
|
|
2489
2529
|
var Ze = Math.abs;
|
|
2490
2530
|
function ae(e) {
|
|
@@ -2493,86 +2533,86 @@ function ae(e) {
|
|
|
2493
2533
|
function Ve() {
|
|
2494
2534
|
if (!this.isValid())
|
|
2495
2535
|
return this.localeData().invalidDate();
|
|
2496
|
-
var e = Ze(this._milliseconds) / 1e3, t = Ze(this._days), r = Ze(this._months), s, a, i, n, u = this.asSeconds(), f, m, b,
|
|
2497
|
-
return u ? (s = x(e / 60), a = x(s / 60), e %= 60, s %= 60, i = x(r / 12), r %= 12, n = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", f = u < 0 ? "-" : "", m = ae(this._months) !== ae(u) ? "-" : "", b = ae(this._days) !== ae(u) ? "-" : "",
|
|
2536
|
+
var e = Ze(this._milliseconds) / 1e3, t = Ze(this._days), r = Ze(this._months), s, a, i, n, u = this.asSeconds(), f, m, b, E;
|
|
2537
|
+
return u ? (s = x(e / 60), a = x(s / 60), e %= 60, s %= 60, i = x(r / 12), r %= 12, n = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", f = u < 0 ? "-" : "", m = ae(this._months) !== ae(u) ? "-" : "", b = ae(this._days) !== ae(u) ? "-" : "", E = ae(this._milliseconds) !== ae(u) ? "-" : "", f + "P" + (i ? m + i + "Y" : "") + (r ? m + r + "M" : "") + (t ? b + t + "D" : "") + (a || s || e ? "T" : "") + (a ? E + a + "H" : "") + (s ? E + s + "M" : "") + (e ? E + n + "S" : "")) : "P0D";
|
|
2498
2538
|
}
|
|
2499
2539
|
var y = je.prototype;
|
|
2500
|
-
y.isValid =
|
|
2501
|
-
y.abs =
|
|
2502
|
-
y.add =
|
|
2503
|
-
y.subtract =
|
|
2504
|
-
y.as =
|
|
2505
|
-
y.asMilliseconds =
|
|
2506
|
-
y.asSeconds =
|
|
2507
|
-
y.asMinutes =
|
|
2508
|
-
y.asHours =
|
|
2509
|
-
y.asDays =
|
|
2510
|
-
y.asWeeks =
|
|
2511
|
-
y.asMonths =
|
|
2512
|
-
y.asQuarters =
|
|
2513
|
-
y.asYears =
|
|
2514
|
-
y.valueOf =
|
|
2515
|
-
y._bubble =
|
|
2516
|
-
y.clone =
|
|
2517
|
-
y.get =
|
|
2518
|
-
y.milliseconds =
|
|
2519
|
-
y.seconds =
|
|
2520
|
-
y.minutes =
|
|
2521
|
-
y.hours =
|
|
2522
|
-
y.days =
|
|
2523
|
-
y.weeks =
|
|
2524
|
-
y.months =
|
|
2525
|
-
y.years =
|
|
2526
|
-
y.humanize =
|
|
2540
|
+
y.isValid = Sa;
|
|
2541
|
+
y.abs = rn;
|
|
2542
|
+
y.add = sn;
|
|
2543
|
+
y.subtract = an;
|
|
2544
|
+
y.as = on;
|
|
2545
|
+
y.asMilliseconds = Dr;
|
|
2546
|
+
y.asSeconds = ln;
|
|
2547
|
+
y.asMinutes = un;
|
|
2548
|
+
y.asHours = dn;
|
|
2549
|
+
y.asDays = cn;
|
|
2550
|
+
y.asWeeks = fn;
|
|
2551
|
+
y.asMonths = hn;
|
|
2552
|
+
y.asQuarters = _n;
|
|
2553
|
+
y.asYears = mn;
|
|
2554
|
+
y.valueOf = yn;
|
|
2555
|
+
y._bubble = nn;
|
|
2556
|
+
y.clone = pn;
|
|
2557
|
+
y.get = gn;
|
|
2558
|
+
y.milliseconds = wn;
|
|
2559
|
+
y.seconds = Mn;
|
|
2560
|
+
y.minutes = vn;
|
|
2561
|
+
y.hours = kn;
|
|
2562
|
+
y.days = Sn;
|
|
2563
|
+
y.weeks = bn;
|
|
2564
|
+
y.months = Dn;
|
|
2565
|
+
y.years = Yn;
|
|
2566
|
+
y.humanize = Wn;
|
|
2527
2567
|
y.toISOString = Ve;
|
|
2528
2568
|
y.toString = Ve;
|
|
2529
2569
|
y.toJSON = Ve;
|
|
2530
|
-
y.locale =
|
|
2531
|
-
y.localeData =
|
|
2570
|
+
y.locale = cr;
|
|
2571
|
+
y.localeData = hr;
|
|
2532
2572
|
y.toIsoString = P(
|
|
2533
2573
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
2534
2574
|
Ve
|
|
2535
2575
|
);
|
|
2536
|
-
y.lang =
|
|
2576
|
+
y.lang = fr;
|
|
2537
2577
|
c("X", 0, 0, "unix");
|
|
2538
2578
|
c("x", 0, 0, "valueOf");
|
|
2539
2579
|
d("x", Ue);
|
|
2540
|
-
d("X",
|
|
2541
|
-
|
|
2580
|
+
d("X", Qr);
|
|
2581
|
+
w("X", function(e, t, r) {
|
|
2542
2582
|
r._d = new Date(parseFloat(e) * 1e3);
|
|
2543
2583
|
});
|
|
2544
|
-
|
|
2584
|
+
w("x", function(e, t, r) {
|
|
2545
2585
|
r._d = new Date(_(e));
|
|
2546
2586
|
});
|
|
2547
2587
|
//! moment.js
|
|
2548
2588
|
l.version = "2.30.1";
|
|
2549
|
-
|
|
2589
|
+
Wr(M);
|
|
2550
2590
|
l.fn = o;
|
|
2551
|
-
l.min =
|
|
2552
|
-
l.max =
|
|
2553
|
-
l.now =
|
|
2591
|
+
l.min = wa;
|
|
2592
|
+
l.max = Ma;
|
|
2593
|
+
l.now = va;
|
|
2554
2594
|
l.utc = U;
|
|
2555
|
-
l.unix =
|
|
2556
|
-
l.months =
|
|
2595
|
+
l.unix = Bi;
|
|
2596
|
+
l.months = Qi;
|
|
2557
2597
|
l.isDate = Me;
|
|
2558
2598
|
l.locale = X;
|
|
2559
2599
|
l.invalid = Fe;
|
|
2560
|
-
l.duration =
|
|
2600
|
+
l.duration = C;
|
|
2561
2601
|
l.isMoment = F;
|
|
2562
|
-
l.weekdays =
|
|
2563
|
-
l.parseZone =
|
|
2602
|
+
l.weekdays = Xi;
|
|
2603
|
+
l.parseZone = Ji;
|
|
2564
2604
|
l.localeData = Z;
|
|
2565
2605
|
l.isDuration = Oe;
|
|
2566
|
-
l.monthsShort =
|
|
2567
|
-
l.weekdaysMin =
|
|
2606
|
+
l.monthsShort = Ki;
|
|
2607
|
+
l.weekdaysMin = tn;
|
|
2568
2608
|
l.defineLocale = yt;
|
|
2569
|
-
l.updateLocale =
|
|
2570
|
-
l.locales =
|
|
2571
|
-
l.weekdaysShort =
|
|
2609
|
+
l.updateLocale = Js;
|
|
2610
|
+
l.locales = Qs;
|
|
2611
|
+
l.weekdaysShort = en;
|
|
2572
2612
|
l.normalizeUnits = W;
|
|
2573
|
-
l.relativeTimeRounding =
|
|
2574
|
-
l.relativeTimeThreshold =
|
|
2575
|
-
l.calendarFormat =
|
|
2613
|
+
l.relativeTimeRounding = xn;
|
|
2614
|
+
l.relativeTimeThreshold = Pn;
|
|
2615
|
+
l.calendarFormat = $a;
|
|
2576
2616
|
l.prototype = o;
|
|
2577
2617
|
l.HTML5_FMT = {
|
|
2578
2618
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
@@ -2594,7 +2634,7 @@ l.HTML5_FMT = {
|
|
|
2594
2634
|
MONTH: "YYYY-MM"
|
|
2595
2635
|
// <input type="month" />
|
|
2596
2636
|
};
|
|
2597
|
-
const
|
|
2637
|
+
const Rn = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Nn = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Rt = /(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Be = [
|
|
2598
2638
|
/^janv/i,
|
|
2599
2639
|
/^févr/i,
|
|
2600
2640
|
/^mars/i,
|
|
@@ -2607,15 +2647,15 @@ const On = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2607
2647
|
/^oct/i,
|
|
2608
2648
|
/^nov/i,
|
|
2609
2649
|
/^déc/i
|
|
2610
|
-
],
|
|
2650
|
+
], Fn = {
|
|
2611
2651
|
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
|
|
2612
2652
|
"_"
|
|
2613
2653
|
),
|
|
2614
2654
|
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
2615
2655
|
monthsRegex: Rt,
|
|
2616
2656
|
monthsShortRegex: Rt,
|
|
2617
|
-
monthsStrictRegex:
|
|
2618
|
-
monthsShortStrictRegex:
|
|
2657
|
+
monthsStrictRegex: Rn,
|
|
2658
|
+
monthsShortStrictRegex: Nn,
|
|
2619
2659
|
monthsParse: Be,
|
|
2620
2660
|
longMonthsParse: Be,
|
|
2621
2661
|
shortMonthsParse: Be,
|
|
@@ -2677,37 +2717,11 @@ const On = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2677
2717
|
dow: 1,
|
|
2678
2718
|
doy: 4
|
|
2679
2719
|
}
|
|
2680
|
-
}, Pn = " ", Wn = " ", Qn = (e, t = "") => e.split(t).join(Pn), Kn = (e, t = "") => e.split(t).join(Wn), Xn = (e, t) => e.length > t ? e.slice(0, t - 3) + "..." : e, Rn = (e) => e && e[0].toUpperCase() + e.slice(1), Dr = (e) => e.split(" ").map(Rn).join(" "), eo = (e) => /^\d+$/.test(e), to = (e) => e !== Math.round(e) || e < 1 || e === 1 / 0 || e === -1 / 0 ? null : e === 1 ? "1er" : `${e}ème`, ro = (e) => e.trim().replace(/\s+/gi, " "), so = (e) => {
|
|
2681
|
-
const t = e.split(" "), s = ((a) => {
|
|
2682
|
-
let i = 1 / 0;
|
|
2683
|
-
for (let n = 0; n < a.length; n++) {
|
|
2684
|
-
const u = Math.abs(
|
|
2685
|
-
a.slice(0, n + 1).join(" ").length - a.slice(n + 1).join(" ").length
|
|
2686
|
-
);
|
|
2687
|
-
if (u <= i)
|
|
2688
|
-
i = u;
|
|
2689
|
-
else
|
|
2690
|
-
return n - 1;
|
|
2691
|
-
}
|
|
2692
|
-
return i;
|
|
2693
|
-
})(t);
|
|
2694
|
-
return t.length === 1 ? [t[0]] : [t.slice(0, s + 1), t.slice(s + 1)].map(
|
|
2695
|
-
(a) => a.join(" ")
|
|
2696
|
-
);
|
|
2697
|
-
}, ao = (e) => typeof e == "string", Nn = (e) => {
|
|
2698
|
-
const t = e.replace(
|
|
2699
|
-
/[^a-zA-Z0-9]+(.)/g,
|
|
2700
|
-
(r, s) => s.toUpperCase()
|
|
2701
|
-
);
|
|
2702
|
-
return `${t.charAt(0).toLowerCase()}${t.slice(1)}`;
|
|
2703
|
-
}, io = (e) => {
|
|
2704
|
-
const t = Nn(e);
|
|
2705
|
-
return `${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
2706
2720
|
};
|
|
2707
|
-
l.locale("fr",
|
|
2708
|
-
const
|
|
2721
|
+
l.locale("fr", Fn);
|
|
2722
|
+
const lo = (e) => new Date(e).toString() !== "Invalid Date", uo = (e, t) => Math.abs(
|
|
2709
2723
|
Math.ceil((t.getTime() - e.getTime()) / (1e3 * 60 * 60 * 24))
|
|
2710
|
-
),
|
|
2724
|
+
), co = (e) => Nt(l(e).format("DD MMMM YYYY")), fo = (e) => Nt(l(e).format("dddd DD MMMM YYYY")), ho = (e, t, r = !0) => (r ? e.getFullYear() === t.getFullYear() : !0) && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), _o = () => l().locale("fr").subtract(1, "days").toDate(), mo = (e) => {
|
|
2711
2725
|
const t = [], r = l.duration(e);
|
|
2712
2726
|
if (!(!r || r.toISOString() === "P0D")) {
|
|
2713
2727
|
if (r.years() >= 1) {
|
|
@@ -2736,7 +2750,7 @@ const no = (e) => new Date(e).toString() !== "Invalid Date", oo = (e, t) => Math
|
|
|
2736
2750
|
}
|
|
2737
2751
|
return t.join(", ");
|
|
2738
2752
|
}
|
|
2739
|
-
}, Yt = /^([1-9][0-9]?)([hmd])$/i,
|
|
2753
|
+
}, Yt = /^([1-9][0-9]?)([hmd])$/i, yo = (e) => !!e && Yt.test(e), po = (e) => {
|
|
2740
2754
|
const t = Yt.exec(e);
|
|
2741
2755
|
if (!t)
|
|
2742
2756
|
return null;
|
|
@@ -2747,7 +2761,7 @@ const no = (e) => new Date(e).toString() !== "Invalid Date", oo = (e, t) => Math
|
|
|
2747
2761
|
return i * 60 * a;
|
|
2748
2762
|
if (s === "d")
|
|
2749
2763
|
return i * 60 * 24 * a;
|
|
2750
|
-
},
|
|
2764
|
+
}, go = (e) => {
|
|
2751
2765
|
const t = Yt.exec(e);
|
|
2752
2766
|
if (!t)
|
|
2753
2767
|
return null;
|
|
@@ -2758,7 +2772,7 @@ const no = (e) => new Date(e).toString() !== "Invalid Date", oo = (e, t) => Math
|
|
|
2758
2772
|
return `${a} heure${a > 1 ? "s" : ""}`;
|
|
2759
2773
|
if (s === "d")
|
|
2760
2774
|
return `${a} jour${a > 1 ? "s" : ""}`;
|
|
2761
|
-
},
|
|
2775
|
+
}, wo = {
|
|
2762
2776
|
d1: "<:d1:1159542168738873455>",
|
|
2763
2777
|
d2: "<:d2:1159542071049334814>",
|
|
2764
2778
|
d3: "<:d3:1159542073914032191>",
|
|
@@ -2962,14 +2976,14 @@ const no = (e) => new Date(e).toString() !== "Invalid Date", oo = (e, t) => Math
|
|
|
2962
2976
|
equipment_adventurer_helmet: "<:Casque_cuir:1256965718432550953>",
|
|
2963
2977
|
equipment_adventurer_weapon: "<:Dague_cuir:1256965714141515837>",
|
|
2964
2978
|
equipment_adventurer_belt: "<:Ceinture_cuir:1256965593333108838>"
|
|
2965
|
-
},
|
|
2979
|
+
}, Mo = (e) => typeof e == "function", vo = (e, t, r) => {
|
|
2966
2980
|
const s = {}, a = Object.entries(e);
|
|
2967
2981
|
for (const [i, n] of a) {
|
|
2968
2982
|
const u = t[i];
|
|
2969
2983
|
u ? s[i] = r(n, u) : s[i] = n;
|
|
2970
2984
|
}
|
|
2971
2985
|
return s;
|
|
2972
|
-
},
|
|
2986
|
+
}, ko = (e) => e instanceof Object, So = (e, t) => t.reduce(
|
|
2973
2987
|
(r, s) => ({
|
|
2974
2988
|
...r,
|
|
2975
2989
|
[s]: e[s]
|
|
@@ -2977,51 +2991,53 @@ const no = (e) => new Date(e).toString() !== "Invalid Date", oo = (e, t) => Math
|
|
|
2977
2991
|
{}
|
|
2978
2992
|
);
|
|
2979
2993
|
export {
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
2994
|
+
br as TIGHT_SPACE,
|
|
2995
|
+
Or as WIDE_SPACE,
|
|
2996
|
+
ao as breakWords,
|
|
2997
|
+
Pr as camelcase,
|
|
2998
|
+
Tr as capitalize,
|
|
2999
|
+
Nt as capitalizeAllWords,
|
|
3000
|
+
In as clamp,
|
|
3001
|
+
uo as dateDiff,
|
|
3002
|
+
po as durationToMs,
|
|
3003
|
+
eo as ellipsis,
|
|
3004
|
+
wo as emojis,
|
|
3005
|
+
Gn as exclude,
|
|
3006
|
+
Kn as fillWithTightSpaces,
|
|
3007
|
+
Xn as fillWithWideSpaces,
|
|
3008
|
+
So as filterKeys,
|
|
3009
|
+
$n as filterNullAndUndefined,
|
|
3010
|
+
co as formatDate,
|
|
3011
|
+
fo as formatDateWithDay,
|
|
3012
|
+
go as formatDuration,
|
|
3013
|
+
Cn as formatNumber,
|
|
3014
|
+
En as groupBy,
|
|
3015
|
+
Bn as includeArrayIf,
|
|
3016
|
+
Zn as includeBeginIf,
|
|
3017
|
+
qn as includeIf,
|
|
3018
|
+
no as isDefined,
|
|
3019
|
+
yo as isDuration,
|
|
3020
|
+
Mo as isFunction,
|
|
3021
|
+
oo as isJSON,
|
|
3022
|
+
Un as isNumber,
|
|
3023
|
+
ko as isObject,
|
|
3024
|
+
to as isPositiveInteger,
|
|
3025
|
+
xr as isString,
|
|
3026
|
+
lo as isValidDate,
|
|
3027
|
+
vo as mergeObjects,
|
|
3028
|
+
jn as mutuallyInclusive,
|
|
3029
|
+
ro as numberToOrdinal,
|
|
3030
|
+
Hn as paginate,
|
|
3016
3031
|
io as pascalCase,
|
|
3017
|
-
|
|
3018
|
-
|
|
3032
|
+
Jn as pickFrom,
|
|
3033
|
+
mo as precise,
|
|
3019
3034
|
Yr as randomBetween,
|
|
3020
|
-
|
|
3035
|
+
Qn as range,
|
|
3036
|
+
ho as sameDay,
|
|
3021
3037
|
Ln as seededRandom,
|
|
3022
|
-
|
|
3038
|
+
zn as shuffle,
|
|
3023
3039
|
An as sortBy,
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3040
|
+
so as trim,
|
|
3041
|
+
Vn as unique,
|
|
3042
|
+
_o as yesterday
|
|
3027
3043
|
};
|