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