prlg-ui 1.4.0 → 1.4.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/{WarningFillIcon-DnHbjLFT.js → WarningFillIcon-Drb2OS3I.js} +7 -8
- package/dist/WarningFillIcon-cHWhG7dF.cjs +1 -0
- package/dist/icons/index.cjs.js +1 -1
- package/dist/icons/index.es.js +2 -3
- package/dist/icons.d.ts +8 -0
- package/dist/index.d.ts +69 -75
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +1 -1
- package/dist/types.d.ts +8 -0
- package/dist/utils/dayjs.util.ts +2 -0
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +824 -689
- package/dist/utils.d.ts +8 -0
- package/package.json +2 -2
- package/dist/WarningFillIcon-DyI6jTCA.cjs +0 -1
package/dist/utils/index.es.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
return typeof t == "function" ? t(e) : t && typeof t == "object" &&
|
|
1
|
+
import { E as $r, _ as Dr, o as xr, u as Sr } from "../useBodyScroll.util-BgQeA8Dg.js";
|
|
2
|
+
const Bt = 6048e5, Ut = 864e5, Dt = Symbol.for("constructDateFrom");
|
|
3
|
+
function J(t, e) {
|
|
4
|
+
return typeof t == "function" ? t(e) : t && typeof t == "object" && Dt in t ? t[Dt](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
return
|
|
6
|
+
function j(t, e) {
|
|
7
|
+
return J(e || t, t);
|
|
8
8
|
}
|
|
9
|
-
let
|
|
10
|
-
function
|
|
11
|
-
return
|
|
9
|
+
let Zt = {};
|
|
10
|
+
function Mt() {
|
|
11
|
+
return Zt;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const n =
|
|
15
|
-
return a.setDate(a.getDate() -
|
|
13
|
+
function nt(t, e) {
|
|
14
|
+
const n = Mt(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = j(t, e?.in), i = a.getDay(), d = (i < r ? 7 : 0) + i - r;
|
|
15
|
+
return a.setDate(a.getDate() - d), a.setHours(0, 0, 0, 0), a;
|
|
16
16
|
}
|
|
17
17
|
function wt(t, e) {
|
|
18
|
-
return
|
|
18
|
+
return nt(t, { ...e, weekStartsOn: 1 });
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
const n =
|
|
20
|
+
function jt(t, e) {
|
|
21
|
+
const n = j(t, e?.in), r = n.getFullYear(), a = J(n, 0);
|
|
22
22
|
a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
23
|
-
const i = wt(a),
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >=
|
|
23
|
+
const i = wt(a), d = J(n, 0);
|
|
24
|
+
d.setFullYear(r, 0, 4), d.setHours(0, 0, 0, 0);
|
|
25
|
+
const m = wt(d);
|
|
26
|
+
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= m.getTime() ? r : r - 1;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
const e =
|
|
28
|
+
function xt(t) {
|
|
29
|
+
const e = j(t), n = new Date(
|
|
30
30
|
Date.UTC(
|
|
31
31
|
e.getFullYear(),
|
|
32
32
|
e.getMonth(),
|
|
@@ -39,56 +39,56 @@ function Dt(t) {
|
|
|
39
39
|
);
|
|
40
40
|
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const n =
|
|
42
|
+
function bt(t, ...e) {
|
|
43
|
+
const n = J.bind(
|
|
44
44
|
null,
|
|
45
45
|
t || e.find((r) => typeof r == "object")
|
|
46
46
|
);
|
|
47
47
|
return e.map(n);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const n =
|
|
49
|
+
function St(t, e) {
|
|
50
|
+
const n = j(t, e?.in);
|
|
51
51
|
return n.setHours(0, 0, 0, 0), n;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const [r, a] =
|
|
53
|
+
function Rt(t, e, n) {
|
|
54
|
+
const [r, a] = bt(
|
|
55
55
|
n?.in,
|
|
56
56
|
t,
|
|
57
57
|
e
|
|
58
|
-
), i =
|
|
59
|
-
return Math.round((
|
|
58
|
+
), i = St(r), d = St(a), m = +i - xt(i), D = +d - xt(d);
|
|
59
|
+
return Math.round((m - D) / Ut);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
const n =
|
|
61
|
+
function Kt(t, e) {
|
|
62
|
+
const n = jt(t, e), r = J(t, 0);
|
|
63
63
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), wt(r);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function te(t) {
|
|
66
66
|
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return !(!
|
|
68
|
+
function ee(t) {
|
|
69
|
+
return !(!te(t) && typeof t != "number" || isNaN(+j(t)));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const [r, a] =
|
|
71
|
+
function ne(t, e, n) {
|
|
72
|
+
const [r, a] = bt(
|
|
73
73
|
n?.in,
|
|
74
74
|
t,
|
|
75
75
|
e
|
|
76
|
-
), i =
|
|
77
|
-
|
|
76
|
+
), i = Ot(r, a), d = Math.abs(
|
|
77
|
+
Rt(r, a)
|
|
78
78
|
);
|
|
79
|
-
r.setDate(r.getDate() - i *
|
|
80
|
-
const
|
|
81
|
-
return
|
|
79
|
+
r.setDate(r.getDate() - i * d);
|
|
80
|
+
const m = +(Ot(r, a) === -i), D = i * (d - m);
|
|
81
|
+
return D === 0 ? 0 : D;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Ot(t, e) {
|
|
84
84
|
const n = t.getFullYear() - e.getFullYear() || t.getMonth() - e.getMonth() || t.getDate() - e.getDate() || t.getHours() - e.getHours() || t.getMinutes() - e.getMinutes() || t.getSeconds() - e.getSeconds() || t.getMilliseconds() - e.getMilliseconds();
|
|
85
85
|
return n < 0 ? -1 : n > 0 ? 1 : n;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const n =
|
|
87
|
+
function re(t, e) {
|
|
88
|
+
const n = j(t, e?.in);
|
|
89
89
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const ae = {
|
|
92
92
|
lessThanXSeconds: {
|
|
93
93
|
one: "less than a second",
|
|
94
94
|
other: "less than {{count}} seconds"
|
|
@@ -150,77 +150,77 @@ const ne = {
|
|
|
150
150
|
one: "almost 1 year",
|
|
151
151
|
other: "almost {{count}} years"
|
|
152
152
|
}
|
|
153
|
-
},
|
|
153
|
+
}, ie = (t, e, n) => {
|
|
154
154
|
let r;
|
|
155
|
-
const a =
|
|
155
|
+
const a = ae[t];
|
|
156
156
|
return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
157
157
|
};
|
|
158
|
-
function
|
|
158
|
+
function it(t) {
|
|
159
159
|
return (e = {}) => {
|
|
160
160
|
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
161
161
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const oe = {
|
|
165
165
|
full: "EEEE, MMMM do, y",
|
|
166
166
|
long: "MMMM do, y",
|
|
167
167
|
medium: "MMM d, y",
|
|
168
168
|
short: "MM/dd/yyyy"
|
|
169
|
-
},
|
|
169
|
+
}, se = {
|
|
170
170
|
full: "h:mm:ss a zzzz",
|
|
171
171
|
long: "h:mm:ss a z",
|
|
172
172
|
medium: "h:mm:ss a",
|
|
173
173
|
short: "h:mm a"
|
|
174
|
-
},
|
|
174
|
+
}, ue = {
|
|
175
175
|
full: "{{date}} 'at' {{time}}",
|
|
176
176
|
long: "{{date}} 'at' {{time}}",
|
|
177
177
|
medium: "{{date}}, {{time}}",
|
|
178
178
|
short: "{{date}}, {{time}}"
|
|
179
|
-
},
|
|
180
|
-
date:
|
|
181
|
-
formats:
|
|
179
|
+
}, ce = {
|
|
180
|
+
date: it({
|
|
181
|
+
formats: oe,
|
|
182
182
|
defaultWidth: "full"
|
|
183
183
|
}),
|
|
184
|
-
time:
|
|
185
|
-
formats:
|
|
184
|
+
time: it({
|
|
185
|
+
formats: se,
|
|
186
186
|
defaultWidth: "full"
|
|
187
187
|
}),
|
|
188
|
-
dateTime:
|
|
189
|
-
formats:
|
|
188
|
+
dateTime: it({
|
|
189
|
+
formats: ue,
|
|
190
190
|
defaultWidth: "full"
|
|
191
191
|
})
|
|
192
|
-
},
|
|
192
|
+
}, de = {
|
|
193
193
|
lastWeek: "'last' eeee 'at' p",
|
|
194
194
|
yesterday: "'yesterday at' p",
|
|
195
195
|
today: "'today at' p",
|
|
196
196
|
tomorrow: "'tomorrow at' p",
|
|
197
197
|
nextWeek: "eeee 'at' p",
|
|
198
198
|
other: "P"
|
|
199
|
-
},
|
|
200
|
-
function
|
|
199
|
+
}, fe = (t, e, n, r) => de[t];
|
|
200
|
+
function X(t) {
|
|
201
201
|
return (e, n) => {
|
|
202
202
|
const r = n?.context ? String(n.context) : "standalone";
|
|
203
203
|
let a;
|
|
204
204
|
if (r === "formatting" && t.formattingValues) {
|
|
205
|
-
const
|
|
206
|
-
a = t.formattingValues[
|
|
205
|
+
const d = t.defaultFormattingWidth || t.defaultWidth, m = n?.width ? String(n.width) : d;
|
|
206
|
+
a = t.formattingValues[m] || t.formattingValues[d];
|
|
207
207
|
} else {
|
|
208
|
-
const
|
|
209
|
-
a = t.values[
|
|
208
|
+
const d = t.defaultWidth, m = n?.width ? String(n.width) : t.defaultWidth;
|
|
209
|
+
a = t.values[m] || t.values[d];
|
|
210
210
|
}
|
|
211
211
|
const i = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
212
212
|
return a[i];
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
const
|
|
215
|
+
const le = {
|
|
216
216
|
narrow: ["B", "A"],
|
|
217
217
|
abbreviated: ["BC", "AD"],
|
|
218
218
|
wide: ["Before Christ", "Anno Domini"]
|
|
219
|
-
},
|
|
219
|
+
}, he = {
|
|
220
220
|
narrow: ["1", "2", "3", "4"],
|
|
221
221
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
222
222
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
223
|
-
},
|
|
223
|
+
}, me = {
|
|
224
224
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
225
225
|
abbreviated: [
|
|
226
226
|
"Jan",
|
|
@@ -250,7 +250,7 @@ const de = {
|
|
|
250
250
|
"November",
|
|
251
251
|
"December"
|
|
252
252
|
]
|
|
253
|
-
},
|
|
253
|
+
}, ge = {
|
|
254
254
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
255
255
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
256
256
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -263,7 +263,7 @@ const de = {
|
|
|
263
263
|
"Friday",
|
|
264
264
|
"Saturday"
|
|
265
265
|
]
|
|
266
|
-
},
|
|
266
|
+
}, ye = {
|
|
267
267
|
narrow: {
|
|
268
268
|
am: "a",
|
|
269
269
|
pm: "p",
|
|
@@ -294,7 +294,7 @@ const de = {
|
|
|
294
294
|
evening: "evening",
|
|
295
295
|
night: "night"
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, ve = {
|
|
298
298
|
narrow: {
|
|
299
299
|
am: "a",
|
|
300
300
|
pm: "p",
|
|
@@ -325,7 +325,7 @@ const de = {
|
|
|
325
325
|
evening: "in the evening",
|
|
326
326
|
night: "at night"
|
|
327
327
|
}
|
|
328
|
-
},
|
|
328
|
+
}, pe = (t, e) => {
|
|
329
329
|
const n = Number(t), r = n % 100;
|
|
330
330
|
if (r > 20 || r < 10)
|
|
331
331
|
switch (r % 10) {
|
|
@@ -338,88 +338,88 @@ const de = {
|
|
|
338
338
|
}
|
|
339
339
|
return n + "th";
|
|
340
340
|
}, we = {
|
|
341
|
-
ordinalNumber:
|
|
342
|
-
era:
|
|
343
|
-
values:
|
|
341
|
+
ordinalNumber: pe,
|
|
342
|
+
era: X({
|
|
343
|
+
values: le,
|
|
344
344
|
defaultWidth: "wide"
|
|
345
345
|
}),
|
|
346
|
-
quarter:
|
|
347
|
-
values:
|
|
346
|
+
quarter: X({
|
|
347
|
+
values: he,
|
|
348
348
|
defaultWidth: "wide",
|
|
349
349
|
argumentCallback: (t) => t - 1
|
|
350
350
|
}),
|
|
351
|
-
month:
|
|
352
|
-
values:
|
|
351
|
+
month: X({
|
|
352
|
+
values: me,
|
|
353
353
|
defaultWidth: "wide"
|
|
354
354
|
}),
|
|
355
|
-
day:
|
|
356
|
-
values:
|
|
355
|
+
day: X({
|
|
356
|
+
values: ge,
|
|
357
357
|
defaultWidth: "wide"
|
|
358
358
|
}),
|
|
359
|
-
dayPeriod:
|
|
360
|
-
values:
|
|
359
|
+
dayPeriod: X({
|
|
360
|
+
values: ye,
|
|
361
361
|
defaultWidth: "wide",
|
|
362
|
-
formattingValues:
|
|
362
|
+
formattingValues: ve,
|
|
363
363
|
defaultFormattingWidth: "wide"
|
|
364
364
|
})
|
|
365
365
|
};
|
|
366
|
-
function
|
|
366
|
+
function Q(t) {
|
|
367
367
|
return (e, n = {}) => {
|
|
368
368
|
const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
|
|
369
369
|
if (!i)
|
|
370
370
|
return null;
|
|
371
|
-
const
|
|
371
|
+
const d = i[0], m = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], D = Array.isArray(m) ? be(m, (p) => p.test(d)) : (
|
|
372
372
|
// [TODO] -- I challenge you to fix the type
|
|
373
|
-
|
|
373
|
+
Me(m, (p) => p.test(d))
|
|
374
374
|
);
|
|
375
|
-
let
|
|
376
|
-
|
|
375
|
+
let g;
|
|
376
|
+
g = t.valueCallback ? t.valueCallback(D) : D, g = n.valueCallback ? (
|
|
377
377
|
// [TODO] -- I challenge you to fix the type
|
|
378
|
-
n.valueCallback(
|
|
379
|
-
) :
|
|
380
|
-
const
|
|
381
|
-
return { value:
|
|
378
|
+
n.valueCallback(g)
|
|
379
|
+
) : g;
|
|
380
|
+
const v = e.slice(d.length);
|
|
381
|
+
return { value: g, rest: v };
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function Me(t, e) {
|
|
385
385
|
for (const n in t)
|
|
386
386
|
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
387
387
|
return n;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function be(t, e) {
|
|
390
390
|
for (let n = 0; n < t.length; n++)
|
|
391
391
|
if (e(t[n]))
|
|
392
392
|
return n;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function It(t) {
|
|
395
395
|
return (e, n = {}) => {
|
|
396
396
|
const r = e.match(t.matchPattern);
|
|
397
397
|
if (!r) return null;
|
|
398
398
|
const a = r[0], i = e.match(t.parsePattern);
|
|
399
399
|
if (!i) return null;
|
|
400
|
-
let
|
|
401
|
-
|
|
402
|
-
const
|
|
403
|
-
return { value:
|
|
400
|
+
let d = t.valueCallback ? t.valueCallback(i[0]) : i[0];
|
|
401
|
+
d = n.valueCallback ? n.valueCallback(d) : d;
|
|
402
|
+
const m = e.slice(a.length);
|
|
403
|
+
return { value: d, rest: m };
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
-
const
|
|
406
|
+
const $e = /^(\d+)(th|st|nd|rd)?/i, De = /\d+/i, xe = {
|
|
407
407
|
narrow: /^(b|a)/i,
|
|
408
408
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
409
409
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
410
|
-
},
|
|
410
|
+
}, Se = {
|
|
411
411
|
any: [/^b/i, /^(a|c)/i]
|
|
412
|
-
},
|
|
412
|
+
}, Oe = {
|
|
413
413
|
narrow: /^[1234]/i,
|
|
414
414
|
abbreviated: /^q[1234]/i,
|
|
415
415
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
416
416
|
}, Pe = {
|
|
417
417
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
418
|
-
},
|
|
418
|
+
}, Ye = {
|
|
419
419
|
narrow: /^[jfmasond]/i,
|
|
420
420
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
421
421
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
422
|
-
},
|
|
422
|
+
}, ke = {
|
|
423
423
|
narrow: [
|
|
424
424
|
/^j/i,
|
|
425
425
|
/^f/i,
|
|
@@ -453,13 +453,13 @@ const Me = /^(\d+)(th|st|nd|rd)?/i, be = /\d+/i, xe = {
|
|
|
453
453
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
454
454
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
455
455
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
456
|
-
},
|
|
456
|
+
}, We = {
|
|
457
457
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
458
458
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
459
|
-
},
|
|
459
|
+
}, Te = {
|
|
460
460
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
461
461
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
462
|
-
},
|
|
462
|
+
}, Ne = {
|
|
463
463
|
any: {
|
|
464
464
|
am: /^a/i,
|
|
465
465
|
pm: /^p/i,
|
|
@@ -470,97 +470,97 @@ const Me = /^(\d+)(th|st|nd|rd)?/i, be = /\d+/i, xe = {
|
|
|
470
470
|
evening: /evening/i,
|
|
471
471
|
night: /night/i
|
|
472
472
|
}
|
|
473
|
-
},
|
|
474
|
-
ordinalNumber:
|
|
475
|
-
matchPattern:
|
|
476
|
-
parsePattern:
|
|
473
|
+
}, Ge = {
|
|
474
|
+
ordinalNumber: It({
|
|
475
|
+
matchPattern: $e,
|
|
476
|
+
parsePattern: De,
|
|
477
477
|
valueCallback: (t) => parseInt(t, 10)
|
|
478
478
|
}),
|
|
479
|
-
era:
|
|
479
|
+
era: Q({
|
|
480
480
|
matchPatterns: xe,
|
|
481
481
|
defaultMatchWidth: "wide",
|
|
482
|
-
parsePatterns:
|
|
482
|
+
parsePatterns: Se,
|
|
483
483
|
defaultParseWidth: "any"
|
|
484
484
|
}),
|
|
485
|
-
quarter:
|
|
486
|
-
matchPatterns:
|
|
485
|
+
quarter: Q({
|
|
486
|
+
matchPatterns: Oe,
|
|
487
487
|
defaultMatchWidth: "wide",
|
|
488
488
|
parsePatterns: Pe,
|
|
489
489
|
defaultParseWidth: "any",
|
|
490
490
|
valueCallback: (t) => t + 1
|
|
491
491
|
}),
|
|
492
|
-
month:
|
|
493
|
-
matchPatterns:
|
|
492
|
+
month: Q({
|
|
493
|
+
matchPatterns: Ye,
|
|
494
494
|
defaultMatchWidth: "wide",
|
|
495
|
-
parsePatterns:
|
|
495
|
+
parsePatterns: ke,
|
|
496
496
|
defaultParseWidth: "any"
|
|
497
497
|
}),
|
|
498
|
-
day:
|
|
498
|
+
day: Q({
|
|
499
499
|
matchPatterns: _e,
|
|
500
500
|
defaultMatchWidth: "wide",
|
|
501
|
-
parsePatterns:
|
|
501
|
+
parsePatterns: We,
|
|
502
502
|
defaultParseWidth: "any"
|
|
503
503
|
}),
|
|
504
|
-
dayPeriod:
|
|
505
|
-
matchPatterns:
|
|
504
|
+
dayPeriod: Q({
|
|
505
|
+
matchPatterns: Te,
|
|
506
506
|
defaultMatchWidth: "any",
|
|
507
|
-
parsePatterns:
|
|
507
|
+
parsePatterns: Ne,
|
|
508
508
|
defaultParseWidth: "any"
|
|
509
509
|
})
|
|
510
|
-
},
|
|
510
|
+
}, Fe = {
|
|
511
511
|
code: "en-US",
|
|
512
|
-
formatDistance:
|
|
513
|
-
formatLong:
|
|
514
|
-
formatRelative:
|
|
512
|
+
formatDistance: ie,
|
|
513
|
+
formatLong: ce,
|
|
514
|
+
formatRelative: fe,
|
|
515
515
|
localize: we,
|
|
516
|
-
match:
|
|
516
|
+
match: Ge,
|
|
517
517
|
options: {
|
|
518
518
|
weekStartsOn: 0,
|
|
519
519
|
firstWeekContainsDate: 1
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
-
function
|
|
523
|
-
const n =
|
|
524
|
-
return
|
|
522
|
+
function Le(t, e) {
|
|
523
|
+
const n = j(t, e?.in);
|
|
524
|
+
return Rt(n, re(n)) + 1;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
const n =
|
|
528
|
-
return Math.round(r /
|
|
526
|
+
function Ee(t, e) {
|
|
527
|
+
const n = j(t, e?.in), r = +wt(n) - +Kt(n);
|
|
528
|
+
return Math.round(r / Bt) + 1;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
const n =
|
|
532
|
-
|
|
533
|
-
const
|
|
534
|
-
|
|
535
|
-
const
|
|
536
|
-
return +n >= +
|
|
530
|
+
function Xt(t, e) {
|
|
531
|
+
const n = j(t, e?.in), r = n.getFullYear(), a = Mt(), i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, d = J(e?.in || t, 0);
|
|
532
|
+
d.setFullYear(r + 1, 0, i), d.setHours(0, 0, 0, 0);
|
|
533
|
+
const m = nt(d, e), D = J(e?.in || t, 0);
|
|
534
|
+
D.setFullYear(r, 0, i), D.setHours(0, 0, 0, 0);
|
|
535
|
+
const g = nt(D, e);
|
|
536
|
+
return +n >= +m ? r + 1 : +n >= +g ? r : r - 1;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
const n =
|
|
540
|
-
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0),
|
|
538
|
+
function He(t, e) {
|
|
539
|
+
const n = Mt(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = Xt(t, e), i = J(e?.in || t, 0);
|
|
540
|
+
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), nt(i, e);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
const n =
|
|
544
|
-
return Math.round(r /
|
|
542
|
+
function qe(t, e) {
|
|
543
|
+
const n = j(t, e?.in), r = +nt(n, e) - +He(n, e);
|
|
544
|
+
return Math.round(r / Bt) + 1;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function O(t, e) {
|
|
547
547
|
const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
|
|
548
548
|
return n + r;
|
|
549
549
|
}
|
|
550
|
-
const
|
|
550
|
+
const z = {
|
|
551
551
|
// Year
|
|
552
552
|
y(t, e) {
|
|
553
553
|
const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
554
|
-
return
|
|
554
|
+
return O(e === "yy" ? r % 100 : r, e.length);
|
|
555
555
|
},
|
|
556
556
|
// Month
|
|
557
557
|
M(t, e) {
|
|
558
558
|
const n = t.getMonth();
|
|
559
|
-
return e === "M" ? String(n + 1) :
|
|
559
|
+
return e === "M" ? String(n + 1) : O(n + 1, 2);
|
|
560
560
|
},
|
|
561
561
|
// Day of the month
|
|
562
562
|
d(t, e) {
|
|
563
|
-
return
|
|
563
|
+
return O(t.getDate(), e.length);
|
|
564
564
|
},
|
|
565
565
|
// AM or PM
|
|
566
566
|
a(t, e) {
|
|
@@ -580,35 +580,35 @@ const B = {
|
|
|
580
580
|
},
|
|
581
581
|
// Hour [1-12]
|
|
582
582
|
h(t, e) {
|
|
583
|
-
return
|
|
583
|
+
return O(t.getHours() % 12 || 12, e.length);
|
|
584
584
|
},
|
|
585
585
|
// Hour [0-23]
|
|
586
586
|
H(t, e) {
|
|
587
|
-
return
|
|
587
|
+
return O(t.getHours(), e.length);
|
|
588
588
|
},
|
|
589
589
|
// Minute
|
|
590
590
|
m(t, e) {
|
|
591
|
-
return
|
|
591
|
+
return O(t.getMinutes(), e.length);
|
|
592
592
|
},
|
|
593
593
|
// Second
|
|
594
594
|
s(t, e) {
|
|
595
|
-
return
|
|
595
|
+
return O(t.getSeconds(), e.length);
|
|
596
596
|
},
|
|
597
597
|
// Fraction of second
|
|
598
598
|
S(t, e) {
|
|
599
599
|
const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
|
|
600
600
|
r * Math.pow(10, n - 3)
|
|
601
601
|
);
|
|
602
|
-
return
|
|
602
|
+
return O(a, e.length);
|
|
603
603
|
}
|
|
604
|
-
},
|
|
604
|
+
}, at = {
|
|
605
605
|
midnight: "midnight",
|
|
606
606
|
noon: "noon",
|
|
607
607
|
morning: "morning",
|
|
608
608
|
afternoon: "afternoon",
|
|
609
609
|
evening: "evening",
|
|
610
610
|
night: "night"
|
|
611
|
-
},
|
|
611
|
+
}, Pt = {
|
|
612
612
|
// Era
|
|
613
613
|
G: function(t, e, n) {
|
|
614
614
|
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
@@ -633,21 +633,21 @@ const B = {
|
|
|
633
633
|
const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
634
634
|
return n.ordinalNumber(a, { unit: "year" });
|
|
635
635
|
}
|
|
636
|
-
return
|
|
636
|
+
return z.y(t, e);
|
|
637
637
|
},
|
|
638
638
|
// Local week-numbering year
|
|
639
639
|
Y: function(t, e, n, r) {
|
|
640
|
-
const a =
|
|
640
|
+
const a = Xt(t, r), i = a > 0 ? a : 1 - a;
|
|
641
641
|
if (e === "YY") {
|
|
642
|
-
const
|
|
643
|
-
return
|
|
642
|
+
const d = i % 100;
|
|
643
|
+
return O(d, 2);
|
|
644
644
|
}
|
|
645
|
-
return e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) :
|
|
645
|
+
return e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : O(i, e.length);
|
|
646
646
|
},
|
|
647
647
|
// ISO week-numbering year
|
|
648
648
|
R: function(t, e) {
|
|
649
|
-
const n =
|
|
650
|
-
return
|
|
649
|
+
const n = jt(t);
|
|
650
|
+
return O(n, e.length);
|
|
651
651
|
},
|
|
652
652
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
653
653
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -660,7 +660,7 @@ const B = {
|
|
|
660
660
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
661
661
|
u: function(t, e) {
|
|
662
662
|
const n = t.getFullYear();
|
|
663
|
-
return
|
|
663
|
+
return O(n, e.length);
|
|
664
664
|
},
|
|
665
665
|
// Quarter
|
|
666
666
|
Q: function(t, e, n) {
|
|
@@ -671,7 +671,7 @@ const B = {
|
|
|
671
671
|
return String(r);
|
|
672
672
|
// 01, 02, 03, 04
|
|
673
673
|
case "QQ":
|
|
674
|
-
return
|
|
674
|
+
return O(r, 2);
|
|
675
675
|
// 1st, 2nd, 3rd, 4th
|
|
676
676
|
case "Qo":
|
|
677
677
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
@@ -705,7 +705,7 @@ const B = {
|
|
|
705
705
|
return String(r);
|
|
706
706
|
// 01, 02, 03, 04
|
|
707
707
|
case "qq":
|
|
708
|
-
return
|
|
708
|
+
return O(r, 2);
|
|
709
709
|
// 1st, 2nd, 3rd, 4th
|
|
710
710
|
case "qo":
|
|
711
711
|
return n.ordinalNumber(r, { unit: "quarter" });
|
|
@@ -736,7 +736,7 @@ const B = {
|
|
|
736
736
|
switch (e) {
|
|
737
737
|
case "M":
|
|
738
738
|
case "MM":
|
|
739
|
-
return
|
|
739
|
+
return z.M(t, e);
|
|
740
740
|
// 1st, 2nd, ..., 12th
|
|
741
741
|
case "Mo":
|
|
742
742
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
@@ -767,7 +767,7 @@ const B = {
|
|
|
767
767
|
return String(r + 1);
|
|
768
768
|
// 01, 02, ..., 12
|
|
769
769
|
case "LL":
|
|
770
|
-
return
|
|
770
|
+
return O(r + 1, 2);
|
|
771
771
|
// 1st, 2nd, ..., 12th
|
|
772
772
|
case "Lo":
|
|
773
773
|
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
@@ -791,22 +791,22 @@ const B = {
|
|
|
791
791
|
},
|
|
792
792
|
// Local week of year
|
|
793
793
|
w: function(t, e, n, r) {
|
|
794
|
-
const a =
|
|
795
|
-
return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) :
|
|
794
|
+
const a = qe(t, r);
|
|
795
|
+
return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : O(a, e.length);
|
|
796
796
|
},
|
|
797
797
|
// ISO week of year
|
|
798
798
|
I: function(t, e, n) {
|
|
799
|
-
const r =
|
|
800
|
-
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
799
|
+
const r = Ee(t);
|
|
800
|
+
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : O(r, e.length);
|
|
801
801
|
},
|
|
802
802
|
// Day of the month
|
|
803
803
|
d: function(t, e, n) {
|
|
804
|
-
return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) :
|
|
804
|
+
return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : z.d(t, e);
|
|
805
805
|
},
|
|
806
806
|
// Day of year
|
|
807
807
|
D: function(t, e, n) {
|
|
808
|
-
const r =
|
|
809
|
-
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
808
|
+
const r = Le(t);
|
|
809
|
+
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : O(r, e.length);
|
|
810
810
|
},
|
|
811
811
|
// Day of week
|
|
812
812
|
E: function(t, e, n) {
|
|
@@ -850,7 +850,7 @@ const B = {
|
|
|
850
850
|
return String(i);
|
|
851
851
|
// Padded numerical value
|
|
852
852
|
case "ee":
|
|
853
|
-
return
|
|
853
|
+
return O(i, 2);
|
|
854
854
|
// 1st, 2nd, ..., 7th
|
|
855
855
|
case "eo":
|
|
856
856
|
return n.ordinalNumber(i, { unit: "day" });
|
|
@@ -889,7 +889,7 @@ const B = {
|
|
|
889
889
|
return String(i);
|
|
890
890
|
// Padded numerical value
|
|
891
891
|
case "cc":
|
|
892
|
-
return
|
|
892
|
+
return O(i, e.length);
|
|
893
893
|
// 1st, 2nd, ..., 7th
|
|
894
894
|
case "co":
|
|
895
895
|
return n.ordinalNumber(i, { unit: "day" });
|
|
@@ -928,7 +928,7 @@ const B = {
|
|
|
928
928
|
return String(a);
|
|
929
929
|
// 02
|
|
930
930
|
case "ii":
|
|
931
|
-
return
|
|
931
|
+
return O(a, e.length);
|
|
932
932
|
// 2nd
|
|
933
933
|
case "io":
|
|
934
934
|
return n.ordinalNumber(a, { unit: "day" });
|
|
@@ -991,7 +991,7 @@ const B = {
|
|
|
991
991
|
b: function(t, e, n) {
|
|
992
992
|
const r = t.getHours();
|
|
993
993
|
let a;
|
|
994
|
-
switch (r === 12 ? a =
|
|
994
|
+
switch (r === 12 ? a = at.noon : r === 0 ? a = at.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
|
|
995
995
|
case "b":
|
|
996
996
|
case "bb":
|
|
997
997
|
return n.dayPeriod(a, {
|
|
@@ -1020,7 +1020,7 @@ const B = {
|
|
|
1020
1020
|
B: function(t, e, n) {
|
|
1021
1021
|
const r = t.getHours();
|
|
1022
1022
|
let a;
|
|
1023
|
-
switch (r >= 17 ? a =
|
|
1023
|
+
switch (r >= 17 ? a = at.evening : r >= 12 ? a = at.afternoon : r >= 4 ? a = at.morning : a = at.night, e) {
|
|
1024
1024
|
case "B":
|
|
1025
1025
|
case "BB":
|
|
1026
1026
|
case "BBB":
|
|
@@ -1047,33 +1047,33 @@ const B = {
|
|
|
1047
1047
|
let r = t.getHours() % 12;
|
|
1048
1048
|
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
1049
1049
|
}
|
|
1050
|
-
return
|
|
1050
|
+
return z.h(t, e);
|
|
1051
1051
|
},
|
|
1052
1052
|
// Hour [0-23]
|
|
1053
1053
|
H: function(t, e, n) {
|
|
1054
|
-
return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) :
|
|
1054
|
+
return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : z.H(t, e);
|
|
1055
1055
|
},
|
|
1056
1056
|
// Hour [0-11]
|
|
1057
1057
|
K: function(t, e, n) {
|
|
1058
1058
|
const r = t.getHours() % 12;
|
|
1059
|
-
return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1059
|
+
return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : O(r, e.length);
|
|
1060
1060
|
},
|
|
1061
1061
|
// Hour [1-24]
|
|
1062
1062
|
k: function(t, e, n) {
|
|
1063
1063
|
let r = t.getHours();
|
|
1064
|
-
return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1064
|
+
return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : O(r, e.length);
|
|
1065
1065
|
},
|
|
1066
1066
|
// Minute
|
|
1067
1067
|
m: function(t, e, n) {
|
|
1068
|
-
return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) :
|
|
1068
|
+
return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : z.m(t, e);
|
|
1069
1069
|
},
|
|
1070
1070
|
// Second
|
|
1071
1071
|
s: function(t, e, n) {
|
|
1072
|
-
return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) :
|
|
1072
|
+
return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : z.s(t, e);
|
|
1073
1073
|
},
|
|
1074
1074
|
// Fraction of second
|
|
1075
1075
|
S: function(t, e) {
|
|
1076
|
-
return
|
|
1076
|
+
return z.S(t, e);
|
|
1077
1077
|
},
|
|
1078
1078
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1079
1079
|
X: function(t, e, n) {
|
|
@@ -1083,13 +1083,13 @@ const B = {
|
|
|
1083
1083
|
switch (e) {
|
|
1084
1084
|
// Hours and optional minutes
|
|
1085
1085
|
case "X":
|
|
1086
|
-
return
|
|
1086
|
+
return kt(r);
|
|
1087
1087
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1088
1088
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1089
1089
|
// so this token always has the same output as `XX`
|
|
1090
1090
|
case "XXXX":
|
|
1091
1091
|
case "XX":
|
|
1092
|
-
return
|
|
1092
|
+
return et(r);
|
|
1093
1093
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
1094
1094
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1095
1095
|
// so this token always has the same output as `XXX`
|
|
@@ -1097,7 +1097,7 @@ const B = {
|
|
|
1097
1097
|
case "XXX":
|
|
1098
1098
|
// Hours and minutes with `:` delimiter
|
|
1099
1099
|
default:
|
|
1100
|
-
return
|
|
1100
|
+
return et(r, ":");
|
|
1101
1101
|
}
|
|
1102
1102
|
},
|
|
1103
1103
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1106,13 +1106,13 @@ const B = {
|
|
|
1106
1106
|
switch (e) {
|
|
1107
1107
|
// Hours and optional minutes
|
|
1108
1108
|
case "x":
|
|
1109
|
-
return
|
|
1109
|
+
return kt(r);
|
|
1110
1110
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
1111
1111
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1112
1112
|
// so this token always has the same output as `xx`
|
|
1113
1113
|
case "xxxx":
|
|
1114
1114
|
case "xx":
|
|
1115
|
-
return
|
|
1115
|
+
return et(r);
|
|
1116
1116
|
// Hours, minutes and optional seconds with `:` delimiter
|
|
1117
1117
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1118
1118
|
// so this token always has the same output as `xxx`
|
|
@@ -1120,7 +1120,7 @@ const B = {
|
|
|
1120
1120
|
case "xxx":
|
|
1121
1121
|
// Hours and minutes with `:` delimiter
|
|
1122
1122
|
default:
|
|
1123
|
-
return
|
|
1123
|
+
return et(r, ":");
|
|
1124
1124
|
}
|
|
1125
1125
|
},
|
|
1126
1126
|
// Timezone (GMT)
|
|
@@ -1131,11 +1131,11 @@ const B = {
|
|
|
1131
1131
|
case "O":
|
|
1132
1132
|
case "OO":
|
|
1133
1133
|
case "OOO":
|
|
1134
|
-
return "GMT" +
|
|
1134
|
+
return "GMT" + Yt(r, ":");
|
|
1135
1135
|
// Long
|
|
1136
1136
|
case "OOOO":
|
|
1137
1137
|
default:
|
|
1138
|
-
return "GMT" +
|
|
1138
|
+
return "GMT" + et(r, ":");
|
|
1139
1139
|
}
|
|
1140
1140
|
},
|
|
1141
1141
|
// Timezone (specific non-location)
|
|
@@ -1146,35 +1146,35 @@ const B = {
|
|
|
1146
1146
|
case "z":
|
|
1147
1147
|
case "zz":
|
|
1148
1148
|
case "zzz":
|
|
1149
|
-
return "GMT" +
|
|
1149
|
+
return "GMT" + Yt(r, ":");
|
|
1150
1150
|
// Long
|
|
1151
1151
|
case "zzzz":
|
|
1152
1152
|
default:
|
|
1153
|
-
return "GMT" +
|
|
1153
|
+
return "GMT" + et(r, ":");
|
|
1154
1154
|
}
|
|
1155
1155
|
},
|
|
1156
1156
|
// Seconds timestamp
|
|
1157
1157
|
t: function(t, e, n) {
|
|
1158
1158
|
const r = Math.trunc(+t / 1e3);
|
|
1159
|
-
return
|
|
1159
|
+
return O(r, e.length);
|
|
1160
1160
|
},
|
|
1161
1161
|
// Milliseconds timestamp
|
|
1162
1162
|
T: function(t, e, n) {
|
|
1163
|
-
return
|
|
1163
|
+
return O(+t, e.length);
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
|
-
function
|
|
1166
|
+
function Yt(t, e = "") {
|
|
1167
1167
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
|
|
1168
|
-
return i === 0 ? n + String(a) : n + String(a) + e +
|
|
1168
|
+
return i === 0 ? n + String(a) : n + String(a) + e + O(i, 2);
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") +
|
|
1170
|
+
function kt(t, e) {
|
|
1171
|
+
return t % 60 === 0 ? (t > 0 ? "-" : "+") + O(Math.abs(t) / 60, 2) : et(t, e);
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1174
|
-
const n = t > 0 ? "-" : "+", r = Math.abs(t), a =
|
|
1173
|
+
function et(t, e = "") {
|
|
1174
|
+
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = O(Math.trunc(r / 60), 2), i = O(r % 60, 2);
|
|
1175
1175
|
return n + a + e + i;
|
|
1176
1176
|
}
|
|
1177
|
-
const
|
|
1177
|
+
const _t = (t, e) => {
|
|
1178
1178
|
switch (t) {
|
|
1179
1179
|
case "P":
|
|
1180
1180
|
return e.date({ width: "short" });
|
|
@@ -1186,7 +1186,7 @@ const kt = (t, e) => {
|
|
|
1186
1186
|
default:
|
|
1187
1187
|
return e.date({ width: "full" });
|
|
1188
1188
|
}
|
|
1189
|
-
},
|
|
1189
|
+
}, Qt = (t, e) => {
|
|
1190
1190
|
switch (t) {
|
|
1191
1191
|
case "p":
|
|
1192
1192
|
return e.time({ width: "short" });
|
|
@@ -1198,10 +1198,10 @@ const kt = (t, e) => {
|
|
|
1198
1198
|
default:
|
|
1199
1199
|
return e.time({ width: "full" });
|
|
1200
1200
|
}
|
|
1201
|
-
},
|
|
1201
|
+
}, Ce = (t, e) => {
|
|
1202
1202
|
const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1203
1203
|
if (!a)
|
|
1204
|
-
return
|
|
1204
|
+
return _t(t, e);
|
|
1205
1205
|
let i;
|
|
1206
1206
|
switch (r) {
|
|
1207
1207
|
case "P":
|
|
@@ -1218,91 +1218,91 @@ const kt = (t, e) => {
|
|
|
1218
1218
|
i = e.dateTime({ width: "full" });
|
|
1219
1219
|
break;
|
|
1220
1220
|
}
|
|
1221
|
-
return i.replace("{{date}}",
|
|
1222
|
-
},
|
|
1223
|
-
p:
|
|
1224
|
-
P:
|
|
1225
|
-
},
|
|
1226
|
-
function
|
|
1227
|
-
return
|
|
1221
|
+
return i.replace("{{date}}", _t(r, e)).replace("{{time}}", Qt(a, e));
|
|
1222
|
+
}, Ae = {
|
|
1223
|
+
p: Qt,
|
|
1224
|
+
P: Ce
|
|
1225
|
+
}, Be = /^D+$/, je = /^Y+$/, Re = ["D", "DD", "YY", "YYYY"];
|
|
1226
|
+
function Ie(t) {
|
|
1227
|
+
return Be.test(t);
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return
|
|
1229
|
+
function Xe(t) {
|
|
1230
|
+
return je.test(t);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
const r =
|
|
1234
|
-
if (console.warn(r),
|
|
1232
|
+
function Qe(t, e, n) {
|
|
1233
|
+
const r = Ve(t, e, n);
|
|
1234
|
+
if (console.warn(r), Re.includes(t)) throw new RangeError(r);
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function Ve(t, e, n) {
|
|
1237
1237
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1238
1238
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1239
1239
|
}
|
|
1240
|
-
const
|
|
1241
|
-
function
|
|
1242
|
-
const r =
|
|
1243
|
-
if (!
|
|
1240
|
+
const ze = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Je = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ue = /^'([^]*?)'?$/, Ze = /''/g, Ke = /[a-zA-Z]/;
|
|
1241
|
+
function Vt(t, e, n) {
|
|
1242
|
+
const r = Mt(), a = n?.locale ?? r.locale ?? Fe, i = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, d = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, m = j(t, n?.in);
|
|
1243
|
+
if (!ee(m))
|
|
1244
1244
|
throw new RangeError("Invalid time value");
|
|
1245
|
-
let
|
|
1246
|
-
const
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1249
|
-
return
|
|
1245
|
+
let D = e.match(Je).map((v) => {
|
|
1246
|
+
const p = v[0];
|
|
1247
|
+
if (p === "p" || p === "P") {
|
|
1248
|
+
const P = Ae[p];
|
|
1249
|
+
return P(v, a.formatLong);
|
|
1250
1250
|
}
|
|
1251
|
-
return
|
|
1252
|
-
}).join("").match(
|
|
1253
|
-
if (
|
|
1251
|
+
return v;
|
|
1252
|
+
}).join("").match(ze).map((v) => {
|
|
1253
|
+
if (v === "''")
|
|
1254
1254
|
return { isToken: !1, value: "'" };
|
|
1255
|
-
const
|
|
1256
|
-
if (
|
|
1257
|
-
return { isToken: !1, value:
|
|
1258
|
-
if (
|
|
1259
|
-
return { isToken: !0, value:
|
|
1260
|
-
if (
|
|
1255
|
+
const p = v[0];
|
|
1256
|
+
if (p === "'")
|
|
1257
|
+
return { isToken: !1, value: tn(v) };
|
|
1258
|
+
if (Pt[p])
|
|
1259
|
+
return { isToken: !0, value: v };
|
|
1260
|
+
if (p.match(Ke))
|
|
1261
1261
|
throw new RangeError(
|
|
1262
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
1262
|
+
"Format string contains an unescaped latin alphabet character `" + p + "`"
|
|
1263
1263
|
);
|
|
1264
|
-
return { isToken: !1, value:
|
|
1264
|
+
return { isToken: !1, value: v };
|
|
1265
1265
|
});
|
|
1266
|
-
a.localize.preprocessor && (
|
|
1267
|
-
const
|
|
1266
|
+
a.localize.preprocessor && (D = a.localize.preprocessor(m, D));
|
|
1267
|
+
const g = {
|
|
1268
1268
|
firstWeekContainsDate: i,
|
|
1269
|
-
weekStartsOn:
|
|
1269
|
+
weekStartsOn: d,
|
|
1270
1270
|
locale: a
|
|
1271
1271
|
};
|
|
1272
|
-
return
|
|
1273
|
-
if (!
|
|
1274
|
-
const
|
|
1275
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
1276
|
-
const
|
|
1277
|
-
return
|
|
1272
|
+
return D.map((v) => {
|
|
1273
|
+
if (!v.isToken) return v.value;
|
|
1274
|
+
const p = v.value;
|
|
1275
|
+
(!n?.useAdditionalWeekYearTokens && Xe(p) || !n?.useAdditionalDayOfYearTokens && Ie(p)) && Qe(p, e, String(t));
|
|
1276
|
+
const P = Pt[p[0]];
|
|
1277
|
+
return P(m, p, a.localize, g);
|
|
1278
1278
|
}).join("");
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1281
|
-
const e = t.match(
|
|
1282
|
-
return e ? e[1].replace(
|
|
1280
|
+
function tn(t) {
|
|
1281
|
+
const e = t.match(Ue);
|
|
1282
|
+
return e ? e[1].replace(Ze, "'") : t;
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1285
|
-
return +
|
|
1284
|
+
function en(t, e) {
|
|
1285
|
+
return +j(t) > +j(e);
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1288
|
-
const [r, a] =
|
|
1287
|
+
function Wt(t, e, n) {
|
|
1288
|
+
const [r, a] = bt(
|
|
1289
1289
|
n?.in,
|
|
1290
1290
|
t,
|
|
1291
1291
|
e
|
|
1292
1292
|
);
|
|
1293
|
-
return +
|
|
1293
|
+
return +nt(r, n) == +nt(a, n);
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function ut(t, e) {
|
|
1296
1296
|
if (t.one !== void 0 && e === 1)
|
|
1297
1297
|
return t.one;
|
|
1298
1298
|
const n = e % 10, r = e % 100;
|
|
1299
1299
|
return n === 1 && r !== 11 ? t.singularNominative.replace("{{count}}", String(e)) : n >= 2 && n <= 4 && (r < 10 || r > 20) ? t.singularGenitive.replace("{{count}}", String(e)) : t.pluralGenitive.replace("{{count}}", String(e));
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1302
|
-
return (e, n) => n?.addSuffix ? n.comparison && n.comparison > 0 ? t.future ?
|
|
1301
|
+
function H(t) {
|
|
1302
|
+
return (e, n) => n?.addSuffix ? n.comparison && n.comparison > 0 ? t.future ? ut(t.future, e) : "через " + ut(t.regular, e) : t.past ? ut(t.past, e) : ut(t.regular, e) + " назад" : ut(t.regular, e);
|
|
1303
1303
|
}
|
|
1304
|
-
const
|
|
1305
|
-
lessThanXSeconds:
|
|
1304
|
+
const nn = {
|
|
1305
|
+
lessThanXSeconds: H({
|
|
1306
1306
|
regular: {
|
|
1307
1307
|
one: "меньше секунды",
|
|
1308
1308
|
singularNominative: "меньше {{count}} секунды",
|
|
@@ -1316,7 +1316,7 @@ const tn = {
|
|
|
1316
1316
|
pluralGenitive: "меньше, чем через {{count}} секунд"
|
|
1317
1317
|
}
|
|
1318
1318
|
}),
|
|
1319
|
-
xSeconds:
|
|
1319
|
+
xSeconds: H({
|
|
1320
1320
|
regular: {
|
|
1321
1321
|
singularNominative: "{{count}} секунда",
|
|
1322
1322
|
singularGenitive: "{{count}} секунды",
|
|
@@ -1334,7 +1334,7 @@ const tn = {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
}),
|
|
1336
1336
|
halfAMinute: (t, e) => e?.addSuffix ? e.comparison && e.comparison > 0 ? "через полминуты" : "полминуты назад" : "полминуты",
|
|
1337
|
-
lessThanXMinutes:
|
|
1337
|
+
lessThanXMinutes: H({
|
|
1338
1338
|
regular: {
|
|
1339
1339
|
one: "меньше минуты",
|
|
1340
1340
|
singularNominative: "меньше {{count}} минуты",
|
|
@@ -1348,7 +1348,7 @@ const tn = {
|
|
|
1348
1348
|
pluralGenitive: "меньше, чем через {{count}} минут"
|
|
1349
1349
|
}
|
|
1350
1350
|
}),
|
|
1351
|
-
xMinutes:
|
|
1351
|
+
xMinutes: H({
|
|
1352
1352
|
regular: {
|
|
1353
1353
|
singularNominative: "{{count}} минута",
|
|
1354
1354
|
singularGenitive: "{{count}} минуты",
|
|
@@ -1365,7 +1365,7 @@ const tn = {
|
|
|
1365
1365
|
pluralGenitive: "через {{count}} минут"
|
|
1366
1366
|
}
|
|
1367
1367
|
}),
|
|
1368
|
-
aboutXHours:
|
|
1368
|
+
aboutXHours: H({
|
|
1369
1369
|
regular: {
|
|
1370
1370
|
singularNominative: "около {{count}} часа",
|
|
1371
1371
|
singularGenitive: "около {{count}} часов",
|
|
@@ -1377,21 +1377,21 @@ const tn = {
|
|
|
1377
1377
|
pluralGenitive: "приблизительно через {{count}} часов"
|
|
1378
1378
|
}
|
|
1379
1379
|
}),
|
|
1380
|
-
xHours:
|
|
1380
|
+
xHours: H({
|
|
1381
1381
|
regular: {
|
|
1382
1382
|
singularNominative: "{{count}} час",
|
|
1383
1383
|
singularGenitive: "{{count}} часа",
|
|
1384
1384
|
pluralGenitive: "{{count}} часов"
|
|
1385
1385
|
}
|
|
1386
1386
|
}),
|
|
1387
|
-
xDays:
|
|
1387
|
+
xDays: H({
|
|
1388
1388
|
regular: {
|
|
1389
1389
|
singularNominative: "{{count}} день",
|
|
1390
1390
|
singularGenitive: "{{count}} дня",
|
|
1391
1391
|
pluralGenitive: "{{count}} дней"
|
|
1392
1392
|
}
|
|
1393
1393
|
}),
|
|
1394
|
-
aboutXWeeks:
|
|
1394
|
+
aboutXWeeks: H({
|
|
1395
1395
|
regular: {
|
|
1396
1396
|
singularNominative: "около {{count}} недели",
|
|
1397
1397
|
singularGenitive: "около {{count}} недель",
|
|
@@ -1403,14 +1403,14 @@ const tn = {
|
|
|
1403
1403
|
pluralGenitive: "приблизительно через {{count}} недель"
|
|
1404
1404
|
}
|
|
1405
1405
|
}),
|
|
1406
|
-
xWeeks:
|
|
1406
|
+
xWeeks: H({
|
|
1407
1407
|
regular: {
|
|
1408
1408
|
singularNominative: "{{count}} неделя",
|
|
1409
1409
|
singularGenitive: "{{count}} недели",
|
|
1410
1410
|
pluralGenitive: "{{count}} недель"
|
|
1411
1411
|
}
|
|
1412
1412
|
}),
|
|
1413
|
-
aboutXMonths:
|
|
1413
|
+
aboutXMonths: H({
|
|
1414
1414
|
regular: {
|
|
1415
1415
|
singularNominative: "около {{count}} месяца",
|
|
1416
1416
|
singularGenitive: "около {{count}} месяцев",
|
|
@@ -1422,14 +1422,14 @@ const tn = {
|
|
|
1422
1422
|
pluralGenitive: "приблизительно через {{count}} месяцев"
|
|
1423
1423
|
}
|
|
1424
1424
|
}),
|
|
1425
|
-
xMonths:
|
|
1425
|
+
xMonths: H({
|
|
1426
1426
|
regular: {
|
|
1427
1427
|
singularNominative: "{{count}} месяц",
|
|
1428
1428
|
singularGenitive: "{{count}} месяца",
|
|
1429
1429
|
pluralGenitive: "{{count}} месяцев"
|
|
1430
1430
|
}
|
|
1431
1431
|
}),
|
|
1432
|
-
aboutXYears:
|
|
1432
|
+
aboutXYears: H({
|
|
1433
1433
|
regular: {
|
|
1434
1434
|
singularNominative: "около {{count}} года",
|
|
1435
1435
|
singularGenitive: "около {{count}} лет",
|
|
@@ -1441,14 +1441,14 @@ const tn = {
|
|
|
1441
1441
|
pluralGenitive: "приблизительно через {{count}} лет"
|
|
1442
1442
|
}
|
|
1443
1443
|
}),
|
|
1444
|
-
xYears:
|
|
1444
|
+
xYears: H({
|
|
1445
1445
|
regular: {
|
|
1446
1446
|
singularNominative: "{{count}} год",
|
|
1447
1447
|
singularGenitive: "{{count}} года",
|
|
1448
1448
|
pluralGenitive: "{{count}} лет"
|
|
1449
1449
|
}
|
|
1450
1450
|
}),
|
|
1451
|
-
overXYears:
|
|
1451
|
+
overXYears: H({
|
|
1452
1452
|
regular: {
|
|
1453
1453
|
singularNominative: "больше {{count}} года",
|
|
1454
1454
|
singularGenitive: "больше {{count}} лет",
|
|
@@ -1460,7 +1460,7 @@ const tn = {
|
|
|
1460
1460
|
pluralGenitive: "больше, чем через {{count}} лет"
|
|
1461
1461
|
}
|
|
1462
1462
|
}),
|
|
1463
|
-
almostXYears:
|
|
1463
|
+
almostXYears: H({
|
|
1464
1464
|
regular: {
|
|
1465
1465
|
singularNominative: "почти {{count}} год",
|
|
1466
1466
|
singularGenitive: "почти {{count}} года",
|
|
@@ -1472,32 +1472,32 @@ const tn = {
|
|
|
1472
1472
|
pluralGenitive: "почти через {{count}} лет"
|
|
1473
1473
|
}
|
|
1474
1474
|
})
|
|
1475
|
-
},
|
|
1475
|
+
}, rn = (t, e, n) => nn[t](e, n), an = {
|
|
1476
1476
|
full: "EEEE, d MMMM y 'г.'",
|
|
1477
1477
|
long: "d MMMM y 'г.'",
|
|
1478
1478
|
medium: "d MMM y 'г.'",
|
|
1479
1479
|
short: "dd.MM.y"
|
|
1480
|
-
},
|
|
1480
|
+
}, on = {
|
|
1481
1481
|
full: "H:mm:ss zzzz",
|
|
1482
1482
|
long: "H:mm:ss z",
|
|
1483
1483
|
medium: "H:mm:ss",
|
|
1484
1484
|
short: "H:mm"
|
|
1485
|
-
},
|
|
1485
|
+
}, sn = {
|
|
1486
1486
|
any: "{{date}}, {{time}}"
|
|
1487
|
-
},
|
|
1488
|
-
date:
|
|
1489
|
-
formats:
|
|
1487
|
+
}, un = {
|
|
1488
|
+
date: it({
|
|
1489
|
+
formats: an,
|
|
1490
1490
|
defaultWidth: "full"
|
|
1491
1491
|
}),
|
|
1492
|
-
time:
|
|
1493
|
-
formats:
|
|
1492
|
+
time: it({
|
|
1493
|
+
formats: on,
|
|
1494
1494
|
defaultWidth: "full"
|
|
1495
1495
|
}),
|
|
1496
|
-
dateTime:
|
|
1497
|
-
formats:
|
|
1496
|
+
dateTime: it({
|
|
1497
|
+
formats: sn,
|
|
1498
1498
|
defaultWidth: "any"
|
|
1499
1499
|
})
|
|
1500
|
-
},
|
|
1500
|
+
}, $t = [
|
|
1501
1501
|
"воскресенье",
|
|
1502
1502
|
"понедельник",
|
|
1503
1503
|
"вторник",
|
|
@@ -1506,8 +1506,8 @@ const tn = {
|
|
|
1506
1506
|
"пятницу",
|
|
1507
1507
|
"субботу"
|
|
1508
1508
|
];
|
|
1509
|
-
function
|
|
1510
|
-
const e =
|
|
1509
|
+
function cn(t) {
|
|
1510
|
+
const e = $t[t];
|
|
1511
1511
|
switch (t) {
|
|
1512
1512
|
case 0:
|
|
1513
1513
|
return "'в прошлое " + e + " в' p";
|
|
@@ -1521,12 +1521,12 @@ function sn(t) {
|
|
|
1521
1521
|
return "'в прошлую " + e + " в' p";
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1525
|
-
const e =
|
|
1524
|
+
function Tt(t) {
|
|
1525
|
+
const e = $t[t];
|
|
1526
1526
|
return t === 2 ? "'во " + e + " в' p" : "'в " + e + " в' p";
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
const e =
|
|
1528
|
+
function dn(t) {
|
|
1529
|
+
const e = $t[t];
|
|
1530
1530
|
switch (t) {
|
|
1531
1531
|
case 0:
|
|
1532
1532
|
return "'в следующее " + e + " в' p";
|
|
@@ -1540,31 +1540,31 @@ function un(t) {
|
|
|
1540
1540
|
return "'в следующую " + e + " в' p";
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
|
-
const
|
|
1543
|
+
const fn = {
|
|
1544
1544
|
lastWeek: (t, e, n) => {
|
|
1545
1545
|
const r = t.getDay();
|
|
1546
|
-
return
|
|
1546
|
+
return Wt(t, e, n) ? Tt(r) : cn(r);
|
|
1547
1547
|
},
|
|
1548
1548
|
yesterday: "'вчера в' p",
|
|
1549
1549
|
today: "'сегодня в' p",
|
|
1550
1550
|
tomorrow: "'завтра в' p",
|
|
1551
1551
|
nextWeek: (t, e, n) => {
|
|
1552
1552
|
const r = t.getDay();
|
|
1553
|
-
return
|
|
1553
|
+
return Wt(t, e, n) ? Tt(r) : dn(r);
|
|
1554
1554
|
},
|
|
1555
1555
|
other: "P"
|
|
1556
|
-
},
|
|
1557
|
-
const a =
|
|
1556
|
+
}, ln = (t, e, n, r) => {
|
|
1557
|
+
const a = fn[t];
|
|
1558
1558
|
return typeof a == "function" ? a(e, n, r) : a;
|
|
1559
|
-
},
|
|
1559
|
+
}, hn = {
|
|
1560
1560
|
narrow: ["до н.э.", "н.э."],
|
|
1561
1561
|
abbreviated: ["до н. э.", "н. э."],
|
|
1562
1562
|
wide: ["до нашей эры", "нашей эры"]
|
|
1563
|
-
},
|
|
1563
|
+
}, mn = {
|
|
1564
1564
|
narrow: ["1", "2", "3", "4"],
|
|
1565
1565
|
abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
|
|
1566
1566
|
wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"]
|
|
1567
|
-
},
|
|
1567
|
+
}, gn = {
|
|
1568
1568
|
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
1569
1569
|
abbreviated: [
|
|
1570
1570
|
"янв.",
|
|
@@ -1594,7 +1594,7 @@ const cn = {
|
|
|
1594
1594
|
"ноябрь",
|
|
1595
1595
|
"декабрь"
|
|
1596
1596
|
]
|
|
1597
|
-
},
|
|
1597
|
+
}, yn = {
|
|
1598
1598
|
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
1599
1599
|
abbreviated: [
|
|
1600
1600
|
"янв.",
|
|
@@ -1624,7 +1624,7 @@ const cn = {
|
|
|
1624
1624
|
"ноября",
|
|
1625
1625
|
"декабря"
|
|
1626
1626
|
]
|
|
1627
|
-
},
|
|
1627
|
+
}, vn = {
|
|
1628
1628
|
narrow: ["В", "П", "В", "С", "Ч", "П", "С"],
|
|
1629
1629
|
short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"],
|
|
1630
1630
|
abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"],
|
|
@@ -1637,7 +1637,7 @@ const cn = {
|
|
|
1637
1637
|
"пятница",
|
|
1638
1638
|
"суббота"
|
|
1639
1639
|
]
|
|
1640
|
-
},
|
|
1640
|
+
}, pn = {
|
|
1641
1641
|
narrow: {
|
|
1642
1642
|
am: "ДП",
|
|
1643
1643
|
pm: "ПП",
|
|
@@ -1699,54 +1699,54 @@ const cn = {
|
|
|
1699
1699
|
evening: "вечера",
|
|
1700
1700
|
night: "ночи"
|
|
1701
1701
|
}
|
|
1702
|
-
},
|
|
1702
|
+
}, Mn = (t, e) => {
|
|
1703
1703
|
const n = Number(t), r = e?.unit;
|
|
1704
1704
|
let a;
|
|
1705
1705
|
return r === "date" ? a = "-е" : r === "week" || r === "minute" || r === "second" ? a = "-я" : a = "-й", n + a;
|
|
1706
|
-
},
|
|
1707
|
-
ordinalNumber:
|
|
1708
|
-
era:
|
|
1709
|
-
values:
|
|
1706
|
+
}, bn = {
|
|
1707
|
+
ordinalNumber: Mn,
|
|
1708
|
+
era: X({
|
|
1709
|
+
values: hn,
|
|
1710
1710
|
defaultWidth: "wide"
|
|
1711
1711
|
}),
|
|
1712
|
-
quarter:
|
|
1713
|
-
values:
|
|
1712
|
+
quarter: X({
|
|
1713
|
+
values: mn,
|
|
1714
1714
|
defaultWidth: "wide",
|
|
1715
1715
|
argumentCallback: (t) => t - 1
|
|
1716
1716
|
}),
|
|
1717
|
-
month:
|
|
1718
|
-
values:
|
|
1717
|
+
month: X({
|
|
1718
|
+
values: gn,
|
|
1719
1719
|
defaultWidth: "wide",
|
|
1720
|
-
formattingValues:
|
|
1720
|
+
formattingValues: yn,
|
|
1721
1721
|
defaultFormattingWidth: "wide"
|
|
1722
1722
|
}),
|
|
1723
|
-
day:
|
|
1724
|
-
values:
|
|
1723
|
+
day: X({
|
|
1724
|
+
values: vn,
|
|
1725
1725
|
defaultWidth: "wide"
|
|
1726
1726
|
}),
|
|
1727
|
-
dayPeriod:
|
|
1728
|
-
values:
|
|
1727
|
+
dayPeriod: X({
|
|
1728
|
+
values: pn,
|
|
1729
1729
|
defaultWidth: "any",
|
|
1730
1730
|
formattingValues: wn,
|
|
1731
1731
|
defaultFormattingWidth: "wide"
|
|
1732
1732
|
})
|
|
1733
|
-
},
|
|
1733
|
+
}, $n = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, Dn = /\d+/i, xn = {
|
|
1734
1734
|
narrow: /^((до )?н\.?\s?э\.?)/i,
|
|
1735
1735
|
abbreviated: /^((до )?н\.?\s?э\.?)/i,
|
|
1736
1736
|
wide: /^(до нашей эры|нашей эры|наша эра)/i
|
|
1737
|
-
},
|
|
1737
|
+
}, Sn = {
|
|
1738
1738
|
any: [/^д/i, /^н/i]
|
|
1739
|
-
},
|
|
1739
|
+
}, On = {
|
|
1740
1740
|
narrow: /^[1234]/i,
|
|
1741
1741
|
abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
|
|
1742
1742
|
wide: /^[1234](-?[ыои]?й?)? квартал/i
|
|
1743
1743
|
}, Pn = {
|
|
1744
1744
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1745
|
-
},
|
|
1745
|
+
}, Yn = {
|
|
1746
1746
|
narrow: /^[яфмаисонд]/i,
|
|
1747
1747
|
abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
|
|
1748
1748
|
wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i
|
|
1749
|
-
},
|
|
1749
|
+
}, kn = {
|
|
1750
1750
|
narrow: [
|
|
1751
1751
|
/^я/i,
|
|
1752
1752
|
/^ф/i,
|
|
@@ -1780,14 +1780,14 @@ const cn = {
|
|
|
1780
1780
|
short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
|
|
1781
1781
|
abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
|
|
1782
1782
|
wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i
|
|
1783
|
-
},
|
|
1783
|
+
}, Wn = {
|
|
1784
1784
|
narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
|
|
1785
1785
|
any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
|
|
1786
|
-
},
|
|
1786
|
+
}, Tn = {
|
|
1787
1787
|
narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
1788
1788
|
abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
1789
1789
|
wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i
|
|
1790
|
-
},
|
|
1790
|
+
}, Nn = {
|
|
1791
1791
|
any: {
|
|
1792
1792
|
am: /^дп/i,
|
|
1793
1793
|
pm: /^пп/i,
|
|
@@ -1798,549 +1798,684 @@ const cn = {
|
|
|
1798
1798
|
evening: /^в/i,
|
|
1799
1799
|
night: /^н/i
|
|
1800
1800
|
}
|
|
1801
|
-
},
|
|
1802
|
-
ordinalNumber:
|
|
1803
|
-
matchPattern:
|
|
1804
|
-
parsePattern:
|
|
1801
|
+
}, Gn = {
|
|
1802
|
+
ordinalNumber: It({
|
|
1803
|
+
matchPattern: $n,
|
|
1804
|
+
parsePattern: Dn,
|
|
1805
1805
|
valueCallback: (t) => parseInt(t, 10)
|
|
1806
1806
|
}),
|
|
1807
|
-
era:
|
|
1807
|
+
era: Q({
|
|
1808
1808
|
matchPatterns: xn,
|
|
1809
1809
|
defaultMatchWidth: "wide",
|
|
1810
|
-
parsePatterns:
|
|
1810
|
+
parsePatterns: Sn,
|
|
1811
1811
|
defaultParseWidth: "any"
|
|
1812
1812
|
}),
|
|
1813
|
-
quarter:
|
|
1814
|
-
matchPatterns:
|
|
1813
|
+
quarter: Q({
|
|
1814
|
+
matchPatterns: On,
|
|
1815
1815
|
defaultMatchWidth: "wide",
|
|
1816
1816
|
parsePatterns: Pn,
|
|
1817
1817
|
defaultParseWidth: "any",
|
|
1818
1818
|
valueCallback: (t) => t + 1
|
|
1819
1819
|
}),
|
|
1820
|
-
month:
|
|
1821
|
-
matchPatterns:
|
|
1820
|
+
month: Q({
|
|
1821
|
+
matchPatterns: Yn,
|
|
1822
1822
|
defaultMatchWidth: "wide",
|
|
1823
|
-
parsePatterns:
|
|
1823
|
+
parsePatterns: kn,
|
|
1824
1824
|
defaultParseWidth: "any"
|
|
1825
1825
|
}),
|
|
1826
|
-
day:
|
|
1826
|
+
day: Q({
|
|
1827
1827
|
matchPatterns: _n,
|
|
1828
1828
|
defaultMatchWidth: "wide",
|
|
1829
|
-
parsePatterns:
|
|
1829
|
+
parsePatterns: Wn,
|
|
1830
1830
|
defaultParseWidth: "any"
|
|
1831
1831
|
}),
|
|
1832
|
-
dayPeriod:
|
|
1833
|
-
matchPatterns:
|
|
1832
|
+
dayPeriod: Q({
|
|
1833
|
+
matchPatterns: Tn,
|
|
1834
1834
|
defaultMatchWidth: "wide",
|
|
1835
|
-
parsePatterns:
|
|
1835
|
+
parsePatterns: Nn,
|
|
1836
1836
|
defaultParseWidth: "any"
|
|
1837
1837
|
})
|
|
1838
|
-
},
|
|
1838
|
+
}, zt = {
|
|
1839
1839
|
code: "ru",
|
|
1840
|
-
formatDistance:
|
|
1841
|
-
formatLong:
|
|
1842
|
-
formatRelative:
|
|
1843
|
-
localize:
|
|
1844
|
-
match:
|
|
1840
|
+
formatDistance: rn,
|
|
1841
|
+
formatLong: un,
|
|
1842
|
+
formatRelative: ln,
|
|
1843
|
+
localize: bn,
|
|
1844
|
+
match: Gn,
|
|
1845
1845
|
options: {
|
|
1846
1846
|
weekStartsOn: 1,
|
|
1847
1847
|
firstWeekContainsDate: 1
|
|
1848
1848
|
}
|
|
1849
1849
|
};
|
|
1850
|
-
function
|
|
1851
|
-
return
|
|
1850
|
+
function hr(t) {
|
|
1851
|
+
return Vt(new Date(t), "d MMMM yyyy", { locale: zt });
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1854
|
-
return
|
|
1853
|
+
function mr(t) {
|
|
1854
|
+
return Vt(new Date(t), "d MMMM, HH:mm", { locale: zt });
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1857
|
-
return
|
|
1856
|
+
function gr(t, e) {
|
|
1857
|
+
return ne(new Date(e), new Date(t));
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1860
|
-
return
|
|
1859
|
+
function yr(t) {
|
|
1860
|
+
return en(/* @__PURE__ */ new Date(), new Date(t));
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function vr(t, e = "₽") {
|
|
1863
1863
|
return `${t.toLocaleString("ru-RU")} ${e}`;
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function pr(t) {
|
|
1866
1866
|
return t.reduce((e, n) => e + n, 0);
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function wr(t) {
|
|
1869
1869
|
const e = t.replace(/[^\d.,]/g, "").replace(",", ".");
|
|
1870
1870
|
return parseFloat(e) || 0;
|
|
1871
1871
|
}
|
|
1872
1872
|
function U(t) {
|
|
1873
1873
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1874
1874
|
}
|
|
1875
|
-
var
|
|
1876
|
-
function
|
|
1877
|
-
return
|
|
1875
|
+
var dt = { exports: {} }, Fn = dt.exports, Nt;
|
|
1876
|
+
function Jt() {
|
|
1877
|
+
return Nt || (Nt = 1, function(t, e) {
|
|
1878
1878
|
(function(n, r) {
|
|
1879
1879
|
t.exports = r();
|
|
1880
|
-
})(
|
|
1881
|
-
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond",
|
|
1882
|
-
var
|
|
1883
|
-
return "[" +
|
|
1884
|
-
} },
|
|
1885
|
-
var
|
|
1886
|
-
return !
|
|
1887
|
-
},
|
|
1888
|
-
var
|
|
1889
|
-
return (
|
|
1890
|
-
}, m: function
|
|
1891
|
-
if (
|
|
1892
|
-
var
|
|
1893
|
-
return +(-(
|
|
1894
|
-
}, a: function(
|
|
1895
|
-
return
|
|
1896
|
-
}, p: function(
|
|
1897
|
-
return { M:
|
|
1898
|
-
}, u: function(
|
|
1899
|
-
return
|
|
1900
|
-
} },
|
|
1901
|
-
|
|
1902
|
-
var
|
|
1903
|
-
return
|
|
1904
|
-
},
|
|
1880
|
+
})(Fn, function() {
|
|
1881
|
+
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", d = "second", m = "minute", D = "hour", g = "day", v = "week", p = "month", P = "quarter", T = "year", b = "date", k = "Invalid Date", B = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, _ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(f) {
|
|
1882
|
+
var c = ["th", "st", "nd", "rd"], o = f % 100;
|
|
1883
|
+
return "[" + f + (c[(o - 20) % 10] || c[o] || c[0]) + "]";
|
|
1884
|
+
} }, C = function(f, c, o) {
|
|
1885
|
+
var l = String(f);
|
|
1886
|
+
return !l || l.length >= c ? f : "" + Array(c + 1 - l.length).join(o) + f;
|
|
1887
|
+
}, I = { s: C, z: function(f) {
|
|
1888
|
+
var c = -f.utcOffset(), o = Math.abs(c), l = Math.floor(o / 60), s = o % 60;
|
|
1889
|
+
return (c <= 0 ? "+" : "-") + C(l, 2, "0") + ":" + C(s, 2, "0");
|
|
1890
|
+
}, m: function f(c, o) {
|
|
1891
|
+
if (c.date() < o.date()) return -f(o, c);
|
|
1892
|
+
var l = 12 * (o.year() - c.year()) + (o.month() - c.month()), s = c.clone().add(l, p), w = o - s < 0, M = c.clone().add(l + (w ? -1 : 1), p);
|
|
1893
|
+
return +(-(l + (o - s) / (w ? s - M : M - s)) || 0);
|
|
1894
|
+
}, a: function(f) {
|
|
1895
|
+
return f < 0 ? Math.ceil(f) || 0 : Math.floor(f);
|
|
1896
|
+
}, p: function(f) {
|
|
1897
|
+
return { M: p, y: T, w: v, d: g, D: b, h: D, m, s: d, ms: i, Q: P }[f] || String(f || "").toLowerCase().replace(/s$/, "");
|
|
1898
|
+
}, u: function(f) {
|
|
1899
|
+
return f === void 0;
|
|
1900
|
+
} }, F = "en", $ = {};
|
|
1901
|
+
$[F] = q;
|
|
1902
|
+
var h = "$isDayjsObject", u = function(f) {
|
|
1903
|
+
return f instanceof N || !(!f || !f[h]);
|
|
1904
|
+
}, S = function f(c, o, l) {
|
|
1905
1905
|
var s;
|
|
1906
|
-
if (!
|
|
1907
|
-
if (typeof
|
|
1908
|
-
var
|
|
1909
|
-
|
|
1910
|
-
var
|
|
1911
|
-
if (!s &&
|
|
1906
|
+
if (!c) return F;
|
|
1907
|
+
if (typeof c == "string") {
|
|
1908
|
+
var w = c.toLowerCase();
|
|
1909
|
+
$[w] && (s = w), o && ($[w] = o, s = w);
|
|
1910
|
+
var M = c.split("-");
|
|
1911
|
+
if (!s && M.length > 1) return f(M[0]);
|
|
1912
1912
|
} else {
|
|
1913
|
-
var
|
|
1914
|
-
|
|
1913
|
+
var Y = c.name;
|
|
1914
|
+
$[Y] = c, s = Y;
|
|
1915
1915
|
}
|
|
1916
|
-
return !
|
|
1917
|
-
},
|
|
1918
|
-
if (
|
|
1919
|
-
var o = typeof
|
|
1920
|
-
return o.date =
|
|
1921
|
-
},
|
|
1922
|
-
|
|
1923
|
-
return
|
|
1916
|
+
return !l && s && (F = s), s || !l && F;
|
|
1917
|
+
}, x = function(f, c) {
|
|
1918
|
+
if (u(f)) return f.clone();
|
|
1919
|
+
var o = typeof c == "object" ? c : {};
|
|
1920
|
+
return o.date = f, o.args = arguments, new N(o);
|
|
1921
|
+
}, y = I;
|
|
1922
|
+
y.l = S, y.i = u, y.w = function(f, c) {
|
|
1923
|
+
return x(f, { locale: c.$L, utc: c.$u, x: c.$x, $offset: c.$offset });
|
|
1924
1924
|
};
|
|
1925
|
-
var
|
|
1926
|
-
function
|
|
1927
|
-
this.$L =
|
|
1925
|
+
var N = function() {
|
|
1926
|
+
function f(o) {
|
|
1927
|
+
this.$L = S(o.locale, null, !0), this.parse(o), this.$x = this.$x || o.x || {}, this[h] = !0;
|
|
1928
1928
|
}
|
|
1929
|
-
var
|
|
1930
|
-
return
|
|
1931
|
-
this.$d = function(
|
|
1932
|
-
var s =
|
|
1929
|
+
var c = f.prototype;
|
|
1930
|
+
return c.parse = function(o) {
|
|
1931
|
+
this.$d = function(l) {
|
|
1932
|
+
var s = l.date, w = l.utc;
|
|
1933
1933
|
if (s === null) return /* @__PURE__ */ new Date(NaN);
|
|
1934
|
-
if (
|
|
1934
|
+
if (y.u(s)) return /* @__PURE__ */ new Date();
|
|
1935
1935
|
if (s instanceof Date) return new Date(s);
|
|
1936
1936
|
if (typeof s == "string" && !/Z$/i.test(s)) {
|
|
1937
|
-
var
|
|
1938
|
-
if (
|
|
1939
|
-
var
|
|
1940
|
-
return
|
|
1937
|
+
var M = s.match(B);
|
|
1938
|
+
if (M) {
|
|
1939
|
+
var Y = M[2] - 1 || 0, W = (M[7] || "0").substring(0, 3);
|
|
1940
|
+
return w ? new Date(Date.UTC(M[1], Y, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, W)) : new Date(M[1], Y, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, W);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
1943
|
return new Date(s);
|
|
1944
1944
|
}(o), this.init();
|
|
1945
|
-
},
|
|
1945
|
+
}, c.init = function() {
|
|
1946
1946
|
var o = this.$d;
|
|
1947
1947
|
this.$y = o.getFullYear(), this.$M = o.getMonth(), this.$D = o.getDate(), this.$W = o.getDay(), this.$H = o.getHours(), this.$m = o.getMinutes(), this.$s = o.getSeconds(), this.$ms = o.getMilliseconds();
|
|
1948
|
-
},
|
|
1949
|
-
return
|
|
1950
|
-
},
|
|
1951
|
-
return this.$d.toString() !==
|
|
1952
|
-
},
|
|
1953
|
-
var s =
|
|
1954
|
-
return this.startOf(
|
|
1955
|
-
},
|
|
1956
|
-
return
|
|
1957
|
-
},
|
|
1958
|
-
return this.endOf(
|
|
1959
|
-
},
|
|
1960
|
-
return
|
|
1961
|
-
},
|
|
1948
|
+
}, c.$utils = function() {
|
|
1949
|
+
return y;
|
|
1950
|
+
}, c.isValid = function() {
|
|
1951
|
+
return this.$d.toString() !== k;
|
|
1952
|
+
}, c.isSame = function(o, l) {
|
|
1953
|
+
var s = x(o);
|
|
1954
|
+
return this.startOf(l) <= s && s <= this.endOf(l);
|
|
1955
|
+
}, c.isAfter = function(o, l) {
|
|
1956
|
+
return x(o) < this.startOf(l);
|
|
1957
|
+
}, c.isBefore = function(o, l) {
|
|
1958
|
+
return this.endOf(l) < x(o);
|
|
1959
|
+
}, c.$g = function(o, l, s) {
|
|
1960
|
+
return y.u(o) ? this[l] : this.set(s, o);
|
|
1961
|
+
}, c.unix = function() {
|
|
1962
1962
|
return Math.floor(this.valueOf() / 1e3);
|
|
1963
|
-
},
|
|
1963
|
+
}, c.valueOf = function() {
|
|
1964
1964
|
return this.$d.getTime();
|
|
1965
|
-
},
|
|
1966
|
-
var s = this,
|
|
1967
|
-
var
|
|
1968
|
-
return
|
|
1969
|
-
},
|
|
1970
|
-
return
|
|
1971
|
-
},
|
|
1972
|
-
switch (
|
|
1973
|
-
case
|
|
1974
|
-
return
|
|
1975
|
-
case l:
|
|
1976
|
-
return y ? x(1, _) : x(0, _ + 1);
|
|
1977
|
-
case g:
|
|
1978
|
-
var Q = this.$locale().weekStart || 0, rt = (O < Q ? O + 7 : O) - Q;
|
|
1979
|
-
return x(y ? E - rt : E + (6 - rt), _);
|
|
1980
|
-
case m:
|
|
1965
|
+
}, c.startOf = function(o, l) {
|
|
1966
|
+
var s = this, w = !!y.u(l) || l, M = y.p(o), Y = function(tt, A) {
|
|
1967
|
+
var V = y.w(s.$u ? Date.UTC(s.$y, A, tt) : new Date(s.$y, A, tt), s);
|
|
1968
|
+
return w ? V : V.endOf(g);
|
|
1969
|
+
}, W = function(tt, A) {
|
|
1970
|
+
return y.w(s.toDate()[tt].apply(s.toDate("s"), (w ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(A)), s);
|
|
1971
|
+
}, G = this.$W, E = this.$M, R = this.$D, rt = "set" + (this.$u ? "UTC" : "");
|
|
1972
|
+
switch (M) {
|
|
1973
|
+
case T:
|
|
1974
|
+
return w ? Y(1, 0) : Y(31, 11);
|
|
1981
1975
|
case p:
|
|
1982
|
-
return
|
|
1976
|
+
return w ? Y(1, E) : Y(0, E + 1);
|
|
1983
1977
|
case v:
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
case
|
|
1988
|
-
return
|
|
1978
|
+
var K = this.$locale().weekStart || 0, ot = (G < K ? G + 7 : G) - K;
|
|
1979
|
+
return Y(w ? R - ot : R + (6 - ot), E);
|
|
1980
|
+
case g:
|
|
1981
|
+
case b:
|
|
1982
|
+
return W(rt + "Hours", 0);
|
|
1983
|
+
case D:
|
|
1984
|
+
return W(rt + "Minutes", 1);
|
|
1985
|
+
case m:
|
|
1986
|
+
return W(rt + "Seconds", 2);
|
|
1987
|
+
case d:
|
|
1988
|
+
return W(rt + "Milliseconds", 3);
|
|
1989
1989
|
default:
|
|
1990
1990
|
return this.clone();
|
|
1991
1991
|
}
|
|
1992
|
-
},
|
|
1992
|
+
}, c.endOf = function(o) {
|
|
1993
1993
|
return this.startOf(o, !1);
|
|
1994
|
-
},
|
|
1995
|
-
var s,
|
|
1996
|
-
if (
|
|
1997
|
-
var
|
|
1998
|
-
|
|
1999
|
-
} else
|
|
1994
|
+
}, c.$set = function(o, l) {
|
|
1995
|
+
var s, w = y.p(o), M = "set" + (this.$u ? "UTC" : ""), Y = (s = {}, s[g] = M + "Date", s[b] = M + "Date", s[p] = M + "Month", s[T] = M + "FullYear", s[D] = M + "Hours", s[m] = M + "Minutes", s[d] = M + "Seconds", s[i] = M + "Milliseconds", s)[w], W = w === g ? this.$D + (l - this.$W) : l;
|
|
1996
|
+
if (w === p || w === T) {
|
|
1997
|
+
var G = this.clone().set(b, 1);
|
|
1998
|
+
G.$d[Y](W), G.init(), this.$d = G.set(b, Math.min(this.$D, G.daysInMonth())).$d;
|
|
1999
|
+
} else Y && this.$d[Y](W);
|
|
2000
2000
|
return this.init(), this;
|
|
2001
|
-
},
|
|
2002
|
-
return this.clone().$set(o,
|
|
2003
|
-
},
|
|
2004
|
-
return this[
|
|
2005
|
-
},
|
|
2006
|
-
var s,
|
|
2001
|
+
}, c.set = function(o, l) {
|
|
2002
|
+
return this.clone().$set(o, l);
|
|
2003
|
+
}, c.get = function(o) {
|
|
2004
|
+
return this[y.p(o)]();
|
|
2005
|
+
}, c.add = function(o, l) {
|
|
2006
|
+
var s, w = this;
|
|
2007
2007
|
o = Number(o);
|
|
2008
|
-
var
|
|
2009
|
-
var
|
|
2010
|
-
return
|
|
2008
|
+
var M = y.p(l), Y = function(E) {
|
|
2009
|
+
var R = x(w);
|
|
2010
|
+
return y.w(R.date(R.date() + Math.round(E * o)), w);
|
|
2011
2011
|
};
|
|
2012
|
-
if (
|
|
2013
|
-
if (
|
|
2014
|
-
if (
|
|
2015
|
-
if (
|
|
2016
|
-
var
|
|
2017
|
-
return
|
|
2018
|
-
},
|
|
2019
|
-
return this.add(-1 * o,
|
|
2020
|
-
},
|
|
2021
|
-
var
|
|
2022
|
-
if (!this.isValid()) return s.invalidDate ||
|
|
2023
|
-
var
|
|
2024
|
-
return
|
|
2025
|
-
},
|
|
2026
|
-
return
|
|
2027
|
-
},
|
|
2028
|
-
var
|
|
2029
|
-
return
|
|
2012
|
+
if (M === p) return this.set(p, this.$M + o);
|
|
2013
|
+
if (M === T) return this.set(T, this.$y + o);
|
|
2014
|
+
if (M === g) return Y(1);
|
|
2015
|
+
if (M === v) return Y(7);
|
|
2016
|
+
var W = (s = {}, s[m] = r, s[D] = a, s[d] = n, s)[M] || 1, G = this.$d.getTime() + o * W;
|
|
2017
|
+
return y.w(G, this);
|
|
2018
|
+
}, c.subtract = function(o, l) {
|
|
2019
|
+
return this.add(-1 * o, l);
|
|
2020
|
+
}, c.format = function(o) {
|
|
2021
|
+
var l = this, s = this.$locale();
|
|
2022
|
+
if (!this.isValid()) return s.invalidDate || k;
|
|
2023
|
+
var w = o || "YYYY-MM-DDTHH:mm:ssZ", M = y.z(this), Y = this.$H, W = this.$m, G = this.$M, E = s.weekdays, R = s.months, rt = s.meridiem, K = function(A, V, st, ct) {
|
|
2024
|
+
return A && (A[V] || A(l, w)) || st[V].slice(0, ct);
|
|
2025
|
+
}, ot = function(A) {
|
|
2026
|
+
return y.s(Y % 12 || 12, A, "0");
|
|
2027
|
+
}, tt = rt || function(A, V, st) {
|
|
2028
|
+
var ct = A < 12 ? "AM" : "PM";
|
|
2029
|
+
return st ? ct.toLowerCase() : ct;
|
|
2030
2030
|
};
|
|
2031
|
-
return
|
|
2032
|
-
return
|
|
2033
|
-
switch (
|
|
2031
|
+
return w.replace(_, function(A, V) {
|
|
2032
|
+
return V || function(st) {
|
|
2033
|
+
switch (st) {
|
|
2034
2034
|
case "YY":
|
|
2035
|
-
return String(
|
|
2035
|
+
return String(l.$y).slice(-2);
|
|
2036
2036
|
case "YYYY":
|
|
2037
|
-
return
|
|
2037
|
+
return y.s(l.$y, 4, "0");
|
|
2038
2038
|
case "M":
|
|
2039
|
-
return
|
|
2039
|
+
return G + 1;
|
|
2040
2040
|
case "MM":
|
|
2041
|
-
return
|
|
2041
|
+
return y.s(G + 1, 2, "0");
|
|
2042
2042
|
case "MMM":
|
|
2043
|
-
return
|
|
2043
|
+
return K(s.monthsShort, G, R, 3);
|
|
2044
2044
|
case "MMMM":
|
|
2045
|
-
return
|
|
2045
|
+
return K(R, G);
|
|
2046
2046
|
case "D":
|
|
2047
|
-
return
|
|
2047
|
+
return l.$D;
|
|
2048
2048
|
case "DD":
|
|
2049
|
-
return
|
|
2049
|
+
return y.s(l.$D, 2, "0");
|
|
2050
2050
|
case "d":
|
|
2051
|
-
return String(
|
|
2051
|
+
return String(l.$W);
|
|
2052
2052
|
case "dd":
|
|
2053
|
-
return
|
|
2053
|
+
return K(s.weekdaysMin, l.$W, E, 2);
|
|
2054
2054
|
case "ddd":
|
|
2055
|
-
return
|
|
2055
|
+
return K(s.weekdaysShort, l.$W, E, 3);
|
|
2056
2056
|
case "dddd":
|
|
2057
|
-
return
|
|
2057
|
+
return E[l.$W];
|
|
2058
2058
|
case "H":
|
|
2059
|
-
return String(
|
|
2059
|
+
return String(Y);
|
|
2060
2060
|
case "HH":
|
|
2061
|
-
return
|
|
2061
|
+
return y.s(Y, 2, "0");
|
|
2062
2062
|
case "h":
|
|
2063
|
-
return
|
|
2063
|
+
return ot(1);
|
|
2064
2064
|
case "hh":
|
|
2065
|
-
return
|
|
2065
|
+
return ot(2);
|
|
2066
2066
|
case "a":
|
|
2067
|
-
return
|
|
2067
|
+
return tt(Y, W, !0);
|
|
2068
2068
|
case "A":
|
|
2069
|
-
return
|
|
2069
|
+
return tt(Y, W, !1);
|
|
2070
2070
|
case "m":
|
|
2071
|
-
return String(
|
|
2071
|
+
return String(W);
|
|
2072
2072
|
case "mm":
|
|
2073
|
-
return
|
|
2073
|
+
return y.s(W, 2, "0");
|
|
2074
2074
|
case "s":
|
|
2075
|
-
return String(
|
|
2075
|
+
return String(l.$s);
|
|
2076
2076
|
case "ss":
|
|
2077
|
-
return
|
|
2077
|
+
return y.s(l.$s, 2, "0");
|
|
2078
2078
|
case "SSS":
|
|
2079
|
-
return
|
|
2079
|
+
return y.s(l.$ms, 3, "0");
|
|
2080
2080
|
case "Z":
|
|
2081
|
-
return
|
|
2081
|
+
return M;
|
|
2082
2082
|
}
|
|
2083
2083
|
return null;
|
|
2084
|
-
}(
|
|
2084
|
+
}(A) || M.replace(":", "");
|
|
2085
2085
|
});
|
|
2086
|
-
},
|
|
2086
|
+
}, c.utcOffset = function() {
|
|
2087
2087
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2088
|
-
},
|
|
2089
|
-
var
|
|
2090
|
-
return
|
|
2088
|
+
}, c.diff = function(o, l, s) {
|
|
2089
|
+
var w, M = this, Y = y.p(l), W = x(o), G = (W.utcOffset() - this.utcOffset()) * r, E = this - W, R = function() {
|
|
2090
|
+
return y.m(M, W);
|
|
2091
2091
|
};
|
|
2092
|
-
switch (
|
|
2093
|
-
case
|
|
2094
|
-
|
|
2092
|
+
switch (Y) {
|
|
2093
|
+
case T:
|
|
2094
|
+
w = R() / 12;
|
|
2095
2095
|
break;
|
|
2096
|
-
case
|
|
2097
|
-
|
|
2096
|
+
case p:
|
|
2097
|
+
w = R();
|
|
2098
2098
|
break;
|
|
2099
|
-
case
|
|
2100
|
-
|
|
2099
|
+
case P:
|
|
2100
|
+
w = R() / 3;
|
|
2101
2101
|
break;
|
|
2102
|
-
case
|
|
2103
|
-
|
|
2102
|
+
case v:
|
|
2103
|
+
w = (E - G) / 6048e5;
|
|
2104
2104
|
break;
|
|
2105
|
-
case
|
|
2106
|
-
|
|
2105
|
+
case g:
|
|
2106
|
+
w = (E - G) / 864e5;
|
|
2107
2107
|
break;
|
|
2108
|
-
case
|
|
2109
|
-
|
|
2108
|
+
case D:
|
|
2109
|
+
w = E / a;
|
|
2110
2110
|
break;
|
|
2111
|
-
case
|
|
2112
|
-
|
|
2111
|
+
case m:
|
|
2112
|
+
w = E / r;
|
|
2113
2113
|
break;
|
|
2114
|
-
case
|
|
2115
|
-
|
|
2114
|
+
case d:
|
|
2115
|
+
w = E / n;
|
|
2116
2116
|
break;
|
|
2117
2117
|
default:
|
|
2118
|
-
|
|
2118
|
+
w = E;
|
|
2119
2119
|
}
|
|
2120
|
-
return s ?
|
|
2121
|
-
},
|
|
2122
|
-
return this.endOf(
|
|
2123
|
-
},
|
|
2124
|
-
return
|
|
2125
|
-
},
|
|
2120
|
+
return s ? w : y.a(w);
|
|
2121
|
+
}, c.daysInMonth = function() {
|
|
2122
|
+
return this.endOf(p).$D;
|
|
2123
|
+
}, c.$locale = function() {
|
|
2124
|
+
return $[this.$L];
|
|
2125
|
+
}, c.locale = function(o, l) {
|
|
2126
2126
|
if (!o) return this.$L;
|
|
2127
|
-
var s = this.clone(),
|
|
2128
|
-
return
|
|
2129
|
-
},
|
|
2130
|
-
return
|
|
2131
|
-
},
|
|
2127
|
+
var s = this.clone(), w = S(o, l, !0);
|
|
2128
|
+
return w && (s.$L = w), s;
|
|
2129
|
+
}, c.clone = function() {
|
|
2130
|
+
return y.w(this.$d, this);
|
|
2131
|
+
}, c.toDate = function() {
|
|
2132
2132
|
return new Date(this.valueOf());
|
|
2133
|
-
},
|
|
2133
|
+
}, c.toJSON = function() {
|
|
2134
2134
|
return this.isValid() ? this.toISOString() : null;
|
|
2135
|
-
},
|
|
2135
|
+
}, c.toISOString = function() {
|
|
2136
2136
|
return this.$d.toISOString();
|
|
2137
|
-
},
|
|
2137
|
+
}, c.toString = function() {
|
|
2138
2138
|
return this.$d.toUTCString();
|
|
2139
|
-
},
|
|
2140
|
-
}(),
|
|
2141
|
-
return
|
|
2142
|
-
|
|
2143
|
-
return this.$g(
|
|
2139
|
+
}, f;
|
|
2140
|
+
}(), L = N.prototype;
|
|
2141
|
+
return x.prototype = L, [["$ms", i], ["$s", d], ["$m", m], ["$H", D], ["$W", g], ["$M", p], ["$y", T], ["$D", b]].forEach(function(f) {
|
|
2142
|
+
L[f[1]] = function(c) {
|
|
2143
|
+
return this.$g(c, f[0], f[1]);
|
|
2144
2144
|
};
|
|
2145
|
-
}),
|
|
2146
|
-
return
|
|
2147
|
-
},
|
|
2148
|
-
return
|
|
2149
|
-
},
|
|
2145
|
+
}), x.extend = function(f, c) {
|
|
2146
|
+
return f.$i || (f(c, N, x), f.$i = !0), x;
|
|
2147
|
+
}, x.locale = S, x.isDayjs = u, x.unix = function(f) {
|
|
2148
|
+
return x(1e3 * f);
|
|
2149
|
+
}, x.en = $[F], x.Ls = $, x.p = {}, x;
|
|
2150
2150
|
});
|
|
2151
|
-
}(
|
|
2151
|
+
}(dt)), dt.exports;
|
|
2152
2152
|
}
|
|
2153
|
-
var
|
|
2154
|
-
const Z = /* @__PURE__ */ U(
|
|
2155
|
-
var
|
|
2156
|
-
function
|
|
2153
|
+
var Ln = Jt();
|
|
2154
|
+
const Z = /* @__PURE__ */ U(Ln);
|
|
2155
|
+
var ft = { exports: {} }, En = ft.exports, Gt;
|
|
2156
|
+
function Hn() {
|
|
2157
2157
|
return Gt || (Gt = 1, function(t, e) {
|
|
2158
2158
|
(function(n, r) {
|
|
2159
2159
|
t.exports = r();
|
|
2160
|
-
})(
|
|
2160
|
+
})(En, function() {
|
|
2161
2161
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
2162
2162
|
return function(r, a, i) {
|
|
2163
|
-
var
|
|
2164
|
-
i.en.formats = n,
|
|
2165
|
-
|
|
2166
|
-
var
|
|
2167
|
-
return
|
|
2168
|
-
var
|
|
2169
|
-
return
|
|
2170
|
-
return
|
|
2163
|
+
var d = a.prototype, m = d.format;
|
|
2164
|
+
i.en.formats = n, d.format = function(D) {
|
|
2165
|
+
D === void 0 && (D = "YYYY-MM-DDTHH:mm:ssZ");
|
|
2166
|
+
var g = this.$locale().formats, v = function(p, P) {
|
|
2167
|
+
return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, b, k) {
|
|
2168
|
+
var B = k && k.toUpperCase();
|
|
2169
|
+
return b || P[k] || n[k] || P[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_, q, C) {
|
|
2170
|
+
return q || C.slice(1);
|
|
2171
2171
|
});
|
|
2172
2172
|
});
|
|
2173
|
-
}(
|
|
2174
|
-
return
|
|
2173
|
+
}(D, g === void 0 ? {} : g);
|
|
2174
|
+
return m.call(this, v);
|
|
2175
2175
|
};
|
|
2176
2176
|
};
|
|
2177
2177
|
});
|
|
2178
|
-
}(
|
|
2178
|
+
}(ft)), ft.exports;
|
|
2179
2179
|
}
|
|
2180
|
-
var
|
|
2181
|
-
const
|
|
2182
|
-
var
|
|
2183
|
-
function
|
|
2184
|
-
return
|
|
2180
|
+
var qn = Hn();
|
|
2181
|
+
const Cn = /* @__PURE__ */ U(qn);
|
|
2182
|
+
var lt = { exports: {} }, An = lt.exports, Ft;
|
|
2183
|
+
function Bn() {
|
|
2184
|
+
return Ft || (Ft = 1, function(t, e) {
|
|
2185
2185
|
(function(n, r) {
|
|
2186
2186
|
t.exports = r();
|
|
2187
|
-
})(
|
|
2187
|
+
})(An, function() {
|
|
2188
2188
|
return function(n, r, a) {
|
|
2189
2189
|
n = n || {};
|
|
2190
|
-
var i = r.prototype,
|
|
2191
|
-
function
|
|
2192
|
-
return i.fromToBase(
|
|
2190
|
+
var i = r.prototype, d = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
2191
|
+
function m(g, v, p, P) {
|
|
2192
|
+
return i.fromToBase(g, v, p, P);
|
|
2193
2193
|
}
|
|
2194
|
-
a.en.relativeTime =
|
|
2195
|
-
for (var
|
|
2196
|
-
var
|
|
2197
|
-
|
|
2198
|
-
var
|
|
2199
|
-
if (
|
|
2200
|
-
|
|
2201
|
-
var
|
|
2202
|
-
|
|
2194
|
+
a.en.relativeTime = d, i.fromToBase = function(g, v, p, P, T) {
|
|
2195
|
+
for (var b, k, B, _ = p.$locale().relativeTime || d, q = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], C = q.length, I = 0; I < C; I += 1) {
|
|
2196
|
+
var F = q[I];
|
|
2197
|
+
F.d && (b = P ? a(g).diff(p, F.d, !0) : p.diff(g, F.d, !0));
|
|
2198
|
+
var $ = (n.rounding || Math.round)(Math.abs(b));
|
|
2199
|
+
if (B = b > 0, $ <= F.r || !F.r) {
|
|
2200
|
+
$ <= 1 && I > 0 && (F = q[I - 1]);
|
|
2201
|
+
var h = _[F.l];
|
|
2202
|
+
T && ($ = T("" + $)), k = typeof h == "string" ? h.replace("%d", $) : h($, v, F.l, B);
|
|
2203
2203
|
break;
|
|
2204
2204
|
}
|
|
2205
2205
|
}
|
|
2206
|
-
if (
|
|
2207
|
-
var
|
|
2208
|
-
return typeof
|
|
2209
|
-
}, i.to = function(
|
|
2210
|
-
return
|
|
2211
|
-
}, i.from = function(
|
|
2212
|
-
return
|
|
2206
|
+
if (v) return k;
|
|
2207
|
+
var u = B ? _.future : _.past;
|
|
2208
|
+
return typeof u == "function" ? u(k) : u.replace("%s", k);
|
|
2209
|
+
}, i.to = function(g, v) {
|
|
2210
|
+
return m(g, v, this, !0);
|
|
2211
|
+
}, i.from = function(g, v) {
|
|
2212
|
+
return m(g, v, this);
|
|
2213
2213
|
};
|
|
2214
|
-
var
|
|
2215
|
-
return
|
|
2214
|
+
var D = function(g) {
|
|
2215
|
+
return g.$u ? a.utc() : a();
|
|
2216
2216
|
};
|
|
2217
|
-
i.toNow = function(
|
|
2218
|
-
return this.to(
|
|
2219
|
-
}, i.fromNow = function(
|
|
2220
|
-
return this.from(
|
|
2217
|
+
i.toNow = function(g) {
|
|
2218
|
+
return this.to(D(this), g);
|
|
2219
|
+
}, i.fromNow = function(g) {
|
|
2220
|
+
return this.from(D(this), g);
|
|
2221
2221
|
};
|
|
2222
2222
|
};
|
|
2223
2223
|
});
|
|
2224
|
-
}(
|
|
2224
|
+
}(lt)), lt.exports;
|
|
2225
2225
|
}
|
|
2226
|
-
var
|
|
2227
|
-
const
|
|
2228
|
-
var
|
|
2229
|
-
function
|
|
2230
|
-
return
|
|
2226
|
+
var jn = Bn();
|
|
2227
|
+
const Rn = /* @__PURE__ */ U(jn);
|
|
2228
|
+
var ht = { exports: {} }, In = ht.exports, Lt;
|
|
2229
|
+
function Xn() {
|
|
2230
|
+
return Lt || (Lt = 1, function(t, e) {
|
|
2231
2231
|
(function(n, r) {
|
|
2232
2232
|
t.exports = r();
|
|
2233
|
-
})(
|
|
2233
|
+
})(In, function() {
|
|
2234
2234
|
return function(n, r, a) {
|
|
2235
2235
|
r.prototype.isToday = function() {
|
|
2236
|
-
var i = "YYYY-MM-DD",
|
|
2237
|
-
return this.format(i) ===
|
|
2236
|
+
var i = "YYYY-MM-DD", d = a();
|
|
2237
|
+
return this.format(i) === d.format(i);
|
|
2238
2238
|
};
|
|
2239
2239
|
};
|
|
2240
2240
|
});
|
|
2241
|
-
}(
|
|
2241
|
+
}(ht)), ht.exports;
|
|
2242
2242
|
}
|
|
2243
|
-
var
|
|
2244
|
-
const
|
|
2245
|
-
var mt = { exports: {} },
|
|
2246
|
-
function
|
|
2247
|
-
return
|
|
2243
|
+
var Qn = Xn();
|
|
2244
|
+
const Vn = /* @__PURE__ */ U(Qn);
|
|
2245
|
+
var mt = { exports: {} }, zn = mt.exports, Et;
|
|
2246
|
+
function Jn() {
|
|
2247
|
+
return Et || (Et = 1, function(t, e) {
|
|
2248
2248
|
(function(n, r) {
|
|
2249
2249
|
t.exports = r();
|
|
2250
|
-
})(
|
|
2250
|
+
})(zn, function() {
|
|
2251
2251
|
return function(n, r, a) {
|
|
2252
|
-
r.prototype.isBetween = function(i,
|
|
2253
|
-
var
|
|
2254
|
-
return (
|
|
2252
|
+
r.prototype.isBetween = function(i, d, m, D) {
|
|
2253
|
+
var g = a(i), v = a(d), p = (D = D || "()")[0] === "(", P = D[1] === ")";
|
|
2254
|
+
return (p ? this.isAfter(g, m) : !this.isBefore(g, m)) && (P ? this.isBefore(v, m) : !this.isAfter(v, m)) || (p ? this.isBefore(g, m) : !this.isAfter(g, m)) && (P ? this.isAfter(v, m) : !this.isBefore(v, m));
|
|
2255
2255
|
};
|
|
2256
2256
|
};
|
|
2257
2257
|
});
|
|
2258
2258
|
}(mt)), mt.exports;
|
|
2259
2259
|
}
|
|
2260
|
-
var
|
|
2261
|
-
const
|
|
2262
|
-
var
|
|
2263
|
-
function
|
|
2264
|
-
return
|
|
2260
|
+
var Un = Jn();
|
|
2261
|
+
const Zn = /* @__PURE__ */ U(Un);
|
|
2262
|
+
var gt = { exports: {} }, Kn = gt.exports, Ht;
|
|
2263
|
+
function tr() {
|
|
2264
|
+
return Ht || (Ht = 1, function(t, e) {
|
|
2265
2265
|
(function(n, r) {
|
|
2266
2266
|
t.exports = r();
|
|
2267
|
-
})(
|
|
2267
|
+
})(Kn, function() {
|
|
2268
2268
|
return function(n, r) {
|
|
2269
2269
|
r.prototype.isSameOrBefore = function(a, i) {
|
|
2270
2270
|
return this.isSame(a, i) || this.isBefore(a, i);
|
|
2271
2271
|
};
|
|
2272
2272
|
};
|
|
2273
2273
|
});
|
|
2274
|
-
}(
|
|
2274
|
+
}(gt)), gt.exports;
|
|
2275
2275
|
}
|
|
2276
|
-
var
|
|
2277
|
-
const
|
|
2278
|
-
var
|
|
2279
|
-
function
|
|
2276
|
+
var er = tr();
|
|
2277
|
+
const nr = /* @__PURE__ */ U(er);
|
|
2278
|
+
var yt = { exports: {} }, rr = yt.exports, qt;
|
|
2279
|
+
function ar() {
|
|
2280
2280
|
return qt || (qt = 1, function(t, e) {
|
|
2281
2281
|
(function(n, r) {
|
|
2282
2282
|
t.exports = r();
|
|
2283
|
-
})(
|
|
2283
|
+
})(rr, function() {
|
|
2284
2284
|
return function(n, r) {
|
|
2285
2285
|
r.prototype.isSameOrAfter = function(a, i) {
|
|
2286
2286
|
return this.isSame(a, i) || this.isAfter(a, i);
|
|
2287
2287
|
};
|
|
2288
2288
|
};
|
|
2289
2289
|
});
|
|
2290
|
-
}(
|
|
2290
|
+
}(yt)), yt.exports;
|
|
2291
2291
|
}
|
|
2292
|
-
var
|
|
2293
|
-
const
|
|
2294
|
-
var
|
|
2295
|
-
function
|
|
2292
|
+
var ir = ar();
|
|
2293
|
+
const or = /* @__PURE__ */ U(ir);
|
|
2294
|
+
var vt = { exports: {} }, sr = vt.exports, Ct;
|
|
2295
|
+
function ur() {
|
|
2296
2296
|
return Ct || (Ct = 1, function(t, e) {
|
|
2297
2297
|
(function(n, r) {
|
|
2298
|
-
t.exports = r(
|
|
2299
|
-
})(
|
|
2300
|
-
|
|
2301
|
-
return
|
|
2298
|
+
t.exports = r();
|
|
2299
|
+
})(sr, function() {
|
|
2300
|
+
var n, r, a = 1e3, i = 6e4, d = 36e5, m = 864e5, D = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = 31536e6, v = 2628e6, p = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, P = { years: g, months: v, days: m, hours: d, minutes: i, seconds: a, milliseconds: 1, weeks: 6048e5 }, T = function($) {
|
|
2301
|
+
return $ instanceof I;
|
|
2302
|
+
}, b = function($, h, u) {
|
|
2303
|
+
return new I($, u, h.$l);
|
|
2304
|
+
}, k = function($) {
|
|
2305
|
+
return r.p($) + "s";
|
|
2306
|
+
}, B = function($) {
|
|
2307
|
+
return $ < 0;
|
|
2308
|
+
}, _ = function($) {
|
|
2309
|
+
return B($) ? Math.ceil($) : Math.floor($);
|
|
2310
|
+
}, q = function($) {
|
|
2311
|
+
return Math.abs($);
|
|
2312
|
+
}, C = function($, h) {
|
|
2313
|
+
return $ ? B($) ? { negative: !0, format: "" + q($) + h } : { negative: !1, format: "" + $ + h } : { negative: !1, format: "" };
|
|
2314
|
+
}, I = function() {
|
|
2315
|
+
function $(u, S, x) {
|
|
2316
|
+
var y = this;
|
|
2317
|
+
if (this.$d = {}, this.$l = x, u === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), S) return b(u * P[k(S)], this);
|
|
2318
|
+
if (typeof u == "number") return this.$ms = u, this.parseFromMilliseconds(), this;
|
|
2319
|
+
if (typeof u == "object") return Object.keys(u).forEach(function(f) {
|
|
2320
|
+
y.$d[k(f)] = u[f];
|
|
2321
|
+
}), this.calMilliseconds(), this;
|
|
2322
|
+
if (typeof u == "string") {
|
|
2323
|
+
var N = u.match(p);
|
|
2324
|
+
if (N) {
|
|
2325
|
+
var L = N.slice(2).map(function(f) {
|
|
2326
|
+
return f != null ? Number(f) : 0;
|
|
2327
|
+
});
|
|
2328
|
+
return this.$d.years = L[0], this.$d.months = L[1], this.$d.weeks = L[2], this.$d.days = L[3], this.$d.hours = L[4], this.$d.minutes = L[5], this.$d.seconds = L[6], this.calMilliseconds(), this;
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
return this;
|
|
2332
|
+
}
|
|
2333
|
+
var h = $.prototype;
|
|
2334
|
+
return h.calMilliseconds = function() {
|
|
2335
|
+
var u = this;
|
|
2336
|
+
this.$ms = Object.keys(this.$d).reduce(function(S, x) {
|
|
2337
|
+
return S + (u.$d[x] || 0) * P[x];
|
|
2338
|
+
}, 0);
|
|
2339
|
+
}, h.parseFromMilliseconds = function() {
|
|
2340
|
+
var u = this.$ms;
|
|
2341
|
+
this.$d.years = _(u / g), u %= g, this.$d.months = _(u / v), u %= v, this.$d.days = _(u / m), u %= m, this.$d.hours = _(u / d), u %= d, this.$d.minutes = _(u / i), u %= i, this.$d.seconds = _(u / a), u %= a, this.$d.milliseconds = u;
|
|
2342
|
+
}, h.toISOString = function() {
|
|
2343
|
+
var u = C(this.$d.years, "Y"), S = C(this.$d.months, "M"), x = +this.$d.days || 0;
|
|
2344
|
+
this.$d.weeks && (x += 7 * this.$d.weeks);
|
|
2345
|
+
var y = C(x, "D"), N = C(this.$d.hours, "H"), L = C(this.$d.minutes, "M"), f = this.$d.seconds || 0;
|
|
2346
|
+
this.$d.milliseconds && (f += this.$d.milliseconds / 1e3, f = Math.round(1e3 * f) / 1e3);
|
|
2347
|
+
var c = C(f, "S"), o = u.negative || S.negative || y.negative || N.negative || L.negative || c.negative, l = N.format || L.format || c.format ? "T" : "", s = (o ? "-" : "") + "P" + u.format + S.format + y.format + l + N.format + L.format + c.format;
|
|
2348
|
+
return s === "P" || s === "-P" ? "P0D" : s;
|
|
2349
|
+
}, h.toJSON = function() {
|
|
2350
|
+
return this.toISOString();
|
|
2351
|
+
}, h.format = function(u) {
|
|
2352
|
+
var S = u || "YYYY-MM-DDTHH:mm:ss", x = { Y: this.$d.years, YY: r.s(this.$d.years, 2, "0"), YYYY: r.s(this.$d.years, 4, "0"), M: this.$d.months, MM: r.s(this.$d.months, 2, "0"), D: this.$d.days, DD: r.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: r.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: r.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: r.s(this.$d.seconds, 2, "0"), SSS: r.s(this.$d.milliseconds, 3, "0") };
|
|
2353
|
+
return S.replace(D, function(y, N) {
|
|
2354
|
+
return N || String(x[y]);
|
|
2355
|
+
});
|
|
2356
|
+
}, h.as = function(u) {
|
|
2357
|
+
return this.$ms / P[k(u)];
|
|
2358
|
+
}, h.get = function(u) {
|
|
2359
|
+
var S = this.$ms, x = k(u);
|
|
2360
|
+
return x === "milliseconds" ? S %= 1e3 : S = x === "weeks" ? _(S / P[x]) : this.$d[x], S || 0;
|
|
2361
|
+
}, h.add = function(u, S, x) {
|
|
2362
|
+
var y;
|
|
2363
|
+
return y = S ? u * P[k(S)] : T(u) ? u.$ms : b(u, this).$ms, b(this.$ms + y * (x ? -1 : 1), this);
|
|
2364
|
+
}, h.subtract = function(u, S) {
|
|
2365
|
+
return this.add(u, S, !0);
|
|
2366
|
+
}, h.locale = function(u) {
|
|
2367
|
+
var S = this.clone();
|
|
2368
|
+
return S.$l = u, S;
|
|
2369
|
+
}, h.clone = function() {
|
|
2370
|
+
return b(this.$ms, this);
|
|
2371
|
+
}, h.humanize = function(u) {
|
|
2372
|
+
return n().add(this.$ms, "ms").locale(this.$l).fromNow(!u);
|
|
2373
|
+
}, h.valueOf = function() {
|
|
2374
|
+
return this.asMilliseconds();
|
|
2375
|
+
}, h.milliseconds = function() {
|
|
2376
|
+
return this.get("milliseconds");
|
|
2377
|
+
}, h.asMilliseconds = function() {
|
|
2378
|
+
return this.as("milliseconds");
|
|
2379
|
+
}, h.seconds = function() {
|
|
2380
|
+
return this.get("seconds");
|
|
2381
|
+
}, h.asSeconds = function() {
|
|
2382
|
+
return this.as("seconds");
|
|
2383
|
+
}, h.minutes = function() {
|
|
2384
|
+
return this.get("minutes");
|
|
2385
|
+
}, h.asMinutes = function() {
|
|
2386
|
+
return this.as("minutes");
|
|
2387
|
+
}, h.hours = function() {
|
|
2388
|
+
return this.get("hours");
|
|
2389
|
+
}, h.asHours = function() {
|
|
2390
|
+
return this.as("hours");
|
|
2391
|
+
}, h.days = function() {
|
|
2392
|
+
return this.get("days");
|
|
2393
|
+
}, h.asDays = function() {
|
|
2394
|
+
return this.as("days");
|
|
2395
|
+
}, h.weeks = function() {
|
|
2396
|
+
return this.get("weeks");
|
|
2397
|
+
}, h.asWeeks = function() {
|
|
2398
|
+
return this.as("weeks");
|
|
2399
|
+
}, h.months = function() {
|
|
2400
|
+
return this.get("months");
|
|
2401
|
+
}, h.asMonths = function() {
|
|
2402
|
+
return this.as("months");
|
|
2403
|
+
}, h.years = function() {
|
|
2404
|
+
return this.get("years");
|
|
2405
|
+
}, h.asYears = function() {
|
|
2406
|
+
return this.as("years");
|
|
2407
|
+
}, $;
|
|
2408
|
+
}(), F = function($, h, u) {
|
|
2409
|
+
return $.add(h.years() * u, "y").add(h.months() * u, "M").add(h.days() * u, "d").add(h.hours() * u, "h").add(h.minutes() * u, "m").add(h.seconds() * u, "s").add(h.milliseconds() * u, "ms");
|
|
2410
|
+
};
|
|
2411
|
+
return function($, h, u) {
|
|
2412
|
+
n = u, r = u().$utils(), u.duration = function(y, N) {
|
|
2413
|
+
var L = u.locale();
|
|
2414
|
+
return b(y, { $l: L }, N);
|
|
2415
|
+
}, u.isDuration = T;
|
|
2416
|
+
var S = h.prototype.add, x = h.prototype.subtract;
|
|
2417
|
+
h.prototype.add = function(y, N) {
|
|
2418
|
+
return T(y) ? F(this, y, 1) : S.bind(this)(y, N);
|
|
2419
|
+
}, h.prototype.subtract = function(y, N) {
|
|
2420
|
+
return T(y) ? F(this, y, -1) : x.bind(this)(y, N);
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
});
|
|
2424
|
+
}(vt)), vt.exports;
|
|
2425
|
+
}
|
|
2426
|
+
var cr = ur();
|
|
2427
|
+
const dr = /* @__PURE__ */ U(cr);
|
|
2428
|
+
var pt = { exports: {} }, fr = pt.exports, At;
|
|
2429
|
+
function lr() {
|
|
2430
|
+
return At || (At = 1, function(t, e) {
|
|
2431
|
+
(function(n, r) {
|
|
2432
|
+
t.exports = r(Jt());
|
|
2433
|
+
})(fr, function(n) {
|
|
2434
|
+
function r(b) {
|
|
2435
|
+
return b && typeof b == "object" && "default" in b ? b : { default: b };
|
|
2302
2436
|
}
|
|
2303
|
-
var a = r(n), i = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),
|
|
2304
|
-
function
|
|
2305
|
-
var
|
|
2306
|
-
return
|
|
2437
|
+
var a = r(n), i = "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"), d = "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), m = "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"), D = "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"), g = /D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;
|
|
2438
|
+
function v(b, k, B) {
|
|
2439
|
+
var _, q;
|
|
2440
|
+
return B === "m" ? k ? "минута" : "минуту" : b + " " + (_ = +b, q = { mm: k ? "минута_минуты_минут" : "минуту_минуты_минут", hh: "час_часа_часов", dd: "день_дня_дней", MM: "месяц_месяца_месяцев", yy: "год_года_лет" }[B].split("_"), _ % 10 == 1 && _ % 100 != 11 ? q[0] : _ % 10 >= 2 && _ % 10 <= 4 && (_ % 100 < 10 || _ % 100 >= 20) ? q[1] : q[2]);
|
|
2307
2441
|
}
|
|
2308
|
-
var
|
|
2309
|
-
return
|
|
2442
|
+
var p = function(b, k) {
|
|
2443
|
+
return g.test(k) ? i[b.month()] : d[b.month()];
|
|
2310
2444
|
};
|
|
2311
|
-
|
|
2312
|
-
var
|
|
2313
|
-
return
|
|
2445
|
+
p.s = d, p.f = i;
|
|
2446
|
+
var P = function(b, k) {
|
|
2447
|
+
return g.test(k) ? m[b.month()] : D[b.month()];
|
|
2314
2448
|
};
|
|
2315
|
-
|
|
2316
|
-
var
|
|
2317
|
-
return
|
|
2318
|
-
}, meridiem: function(
|
|
2319
|
-
return
|
|
2449
|
+
P.s = D, P.f = m;
|
|
2450
|
+
var T = { name: "ru", weekdays: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"), weekdaysShort: "вск_пнд_втр_срд_чтв_птн_сбт".split("_"), weekdaysMin: "вс_пн_вт_ср_чт_пт_сб".split("_"), months: p, monthsShort: P, weekStart: 1, yearStart: 4, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD.MM.YYYY", LL: "D MMMM YYYY г.", LLL: "D MMMM YYYY г., H:mm", LLLL: "dddd, D MMMM YYYY г., H:mm" }, relativeTime: { future: "через %s", past: "%s назад", s: "несколько секунд", m: v, mm: v, h: "час", hh: v, d: "день", dd: v, M: "месяц", MM: v, y: "год", yy: v }, ordinal: function(b) {
|
|
2451
|
+
return b;
|
|
2452
|
+
}, meridiem: function(b) {
|
|
2453
|
+
return b < 4 ? "ночи" : b < 12 ? "утра" : b < 17 ? "дня" : "вечера";
|
|
2320
2454
|
} };
|
|
2321
|
-
return a.default.locale(
|
|
2455
|
+
return a.default.locale(T, null, !0), T;
|
|
2322
2456
|
});
|
|
2323
|
-
}(
|
|
2457
|
+
}(pt)), pt.exports;
|
|
2324
2458
|
}
|
|
2325
|
-
|
|
2326
|
-
Z.extend(
|
|
2327
|
-
Z.extend(
|
|
2328
|
-
Z.extend(
|
|
2329
|
-
Z.extend(
|
|
2330
|
-
Z.extend(
|
|
2331
|
-
Z.extend(
|
|
2459
|
+
lr();
|
|
2460
|
+
Z.extend(Cn);
|
|
2461
|
+
Z.extend(Rn);
|
|
2462
|
+
Z.extend(Vn);
|
|
2463
|
+
Z.extend(Zn);
|
|
2464
|
+
Z.extend(nr);
|
|
2465
|
+
Z.extend(or);
|
|
2466
|
+
Z.extend(dr);
|
|
2332
2467
|
Z.locale("ru");
|
|
2333
2468
|
export {
|
|
2334
|
-
|
|
2335
|
-
|
|
2469
|
+
$r as EventBus,
|
|
2470
|
+
Dr as Portal,
|
|
2336
2471
|
Z as dayjs,
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2472
|
+
hr as formatDateReadable,
|
|
2473
|
+
mr as formatDateWithTime,
|
|
2474
|
+
vr as formatPrice,
|
|
2475
|
+
gr as getDaysBetween,
|
|
2476
|
+
yr as isExpired,
|
|
2477
|
+
xr as onClickOutside,
|
|
2478
|
+
wr as parsePrice,
|
|
2479
|
+
pr as sumPrices,
|
|
2480
|
+
Sr as useBodyScroll
|
|
2346
2481
|
};
|