react-semaphor 0.1.581 → 0.1.583
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/analytics-protocol/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +2 -2
- package/dist/chunks/{assistant-chat-CUwGURJj.js → assistant-chat-D3fm5qod.js} +6 -6
- package/dist/chunks/{bookmark-impact-BNyR-yDX.js → bookmark-impact-Dpxl46Wd.js} +1 -1
- package/dist/chunks/{card-filter-builder-k9yqDSw8.js → card-filter-builder-IxkFVxy2.js} +3 -3
- package/dist/chunks/{comparison-window-caption-DdLqMgiG.js → comparison-window-caption-sRFtnX1q.js} +15 -15
- package/dist/chunks/{dashboard-DvcAk8uJ.js → dashboard-BMqG98fc.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DBgS97ZH.js → dashboard-briefing-launcher-D45YfCkm.js} +83 -83
- package/dist/chunks/{dashboard-controls-BiZ1rlNC.js → dashboard-controls-DOvZRfof.js} +8 -8
- package/dist/chunks/{dashboard-json-B25xzYcJ.js → dashboard-json-B_4TqF_o.js} +1 -1
- package/dist/chunks/{dates-3Pah03_l.js → dates-44_rcNj2.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-DYuO3mEU.js → edit-dashboard-visual-BBPKJWSe.js} +2154 -2144
- package/dist/chunks/{filter-reach-copy-CzLt96tq.js → filter-reach-copy-DWPq4Swi.js} +655 -655
- package/dist/chunks/{filter-value-text-DvvSNlho.js → filter-value-text-DXGYypEd.js} +1 -1
- package/dist/chunks/{index-BMZq6JT6.js → index-DPRzcFp0.js} +2 -2
- package/dist/chunks/{matrix-analytical-definition-dkS8szLM.js → matrix-analytical-definition-D_HgptqZ.js} +1 -1
- package/dist/chunks/pivot-header-presentation-MvvlxtIB.js +42 -0
- package/dist/chunks/{temporal-input-presentation-CqbJjIuu.js → pivot-result-contract-expectations-8tuNjRvG.js} +570 -560
- package/dist/chunks/{report-preferences-dialog-DpAetrdY.js → report-preferences-dialog-B8PhISua.js} +8 -8
- package/dist/chunks/{resolve-dashboard-input-context-CNxtkCzj.js → resolve-dashboard-input-context-BfT8y5xL.js} +7041 -6751
- package/dist/chunks/{saved-dashboard-context-Bnt0H7mi.js → saved-dashboard-context-DH91-2B9.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-Dwmvmf0S.js → semaphor-ready-indicator-Cg_Z2IDc.js} +26974 -26890
- package/dist/chunks/{shelf-drop-preview-context-CiveteBS.js → shelf-drop-preview-context-C7-BgcP4.js} +2 -2
- package/dist/chunks/{stored-dashboard-D3gu-D7A.js → stored-dashboard-BpyCiE49.js} +1214 -1389
- package/dist/chunks/{table-export-sheet-BNGSJA2N.js → table-export-sheet-wBkk17aa.js} +1 -1
- package/dist/chunks/{variable-draft-C3_RL2gI.js → variable-draft-D8GFhAkm.js} +3 -3
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1549 -1534
- package/dist/format-utils/index.js +207 -206
- package/dist/index.js +12 -12
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/ui-custom/date-range-presets.d.ts +7 -0
- package/dist/types/components/visual/data-table/types/data-table.d.ts +16 -6
- package/dist/types/lib/document/document-section-query-options.d.ts +3 -4
- package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +4 -1
- package/dist/types/lib/query-context/card-server-request.d.ts +6 -4
- package/dist/types/lib/table-formatting/table-totals-settings.d.ts +25 -2
- package/dist/types/lib/types/explorer-types.d.ts +7 -2
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +19 -2
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +12 -3
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/table-column-total.d.ts +42 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +7 -0
- package/dist/types/shared/format-utils/flat-table-export-totals.d.ts +6 -1
- package/dist/types/shared/usage-events/details.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunks/pivot-result-contract-expectations-C-HnUKYe.js +0 -55
|
@@ -9,12 +9,13 @@ import { k as jn, i as he } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
|
9
9
|
import { b as Hn } from "./report-runtime-context-BhPzLTbS.js";
|
|
10
10
|
import { canonicalizeSupportedLocale as Q, canonicalizeSupportedCurrencyCode as Ue, DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as qn } from "../value-format-preferences/index.js";
|
|
11
11
|
import { p as Zn, a as Kn, c as Vn, b as Bn } from "./raw-temporal-value-DdT0s47W.js";
|
|
12
|
+
import { r as Xn } from "./metric-comparison-n9NsIa-2.js";
|
|
12
13
|
function J(e) {
|
|
13
14
|
if (!e || typeof e != "object") return !1;
|
|
14
15
|
const t = e.type;
|
|
15
16
|
return t === "number" || t === "currency" || t === "percent" || t === "scientific";
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function bs(e) {
|
|
18
19
|
return J(e) || !!e && typeof e == "object" && e.type === "duration";
|
|
19
20
|
}
|
|
20
21
|
const jt = [
|
|
@@ -29,55 +30,55 @@ const jt = [
|
|
|
29
30
|
minute: 6e4,
|
|
30
31
|
second: 1e3,
|
|
31
32
|
millisecond: 1
|
|
32
|
-
},
|
|
33
|
+
}, Gn = {
|
|
33
34
|
day: "d",
|
|
34
35
|
hour: "hr",
|
|
35
36
|
minute: "min",
|
|
36
37
|
second: "s",
|
|
37
38
|
millisecond: "ms"
|
|
38
|
-
},
|
|
39
|
+
}, Qn = {
|
|
39
40
|
day: ["day", "days"],
|
|
40
41
|
hour: ["hour", "hours"],
|
|
41
42
|
minute: ["minute", "minutes"],
|
|
42
43
|
second: ["second", "seconds"],
|
|
43
44
|
millisecond: ["millisecond", "milliseconds"]
|
|
44
45
|
};
|
|
45
|
-
function
|
|
46
|
+
function Jn(e) {
|
|
46
47
|
return e === "day" || e === "hour" || e === "minute" || e === "second" || e === "millisecond";
|
|
47
48
|
}
|
|
48
49
|
function Ht(e, t) {
|
|
49
|
-
return
|
|
50
|
+
return Jn(e) ? e : t;
|
|
50
51
|
}
|
|
51
52
|
function rt(e, t) {
|
|
52
53
|
return jt.indexOf(Ht(e, t));
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function er(e, t) {
|
|
55
56
|
const n = rt(e, "day"), r = rt(t, "second"), a = Math.min(n, r), i = Math.max(n, r);
|
|
56
57
|
return jt.slice(a, i + 1);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function tr(e, t) {
|
|
59
60
|
return e * Ae[Ht(t, "second")];
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
const n =
|
|
62
|
+
function nr(e, t) {
|
|
63
|
+
const n = er(t.largestUnit, t.smallestUnit), r = n[n.length - 1], a = Ae[r];
|
|
63
64
|
let i = Math.round(e / a) * a;
|
|
64
65
|
return n.map((o) => {
|
|
65
66
|
const s = Ae[o], c = Math.floor(i / s);
|
|
66
67
|
return i -= c * s, { unit: o, value: c };
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function rr(e, t) {
|
|
70
71
|
const n = e.filter((i) => i.value !== 0), r = n.length > 0 ? n : [e[e.length - 1]], a = typeof t == "number" && Number.isFinite(t) ? Math.max(1, Math.trunc(t)) : r.length;
|
|
71
|
-
return r.slice(0, a).map((i) => `${i.value}${
|
|
72
|
+
return r.slice(0, a).map((i) => `${i.value}${Gn[i.unit]}`).join(" ");
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function ar(e, t) {
|
|
74
75
|
const n = e.filter((i) => i.value !== 0), r = n.length > 0 ? n : [e[e.length - 1]], a = typeof t == "number" && Number.isFinite(t) ? Math.max(1, Math.trunc(t)) : r.length;
|
|
75
76
|
return r.slice(0, a).map((i) => {
|
|
76
|
-
const [o, s] =
|
|
77
|
+
const [o, s] = Qn[i.unit];
|
|
77
78
|
return `${i.value} ${i.value === 1 ? o : s}`;
|
|
78
79
|
}).join(" ");
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function ir(e) {
|
|
81
82
|
const t = e.some(
|
|
82
83
|
(c) => c.unit === "day" && c.value !== 0
|
|
83
84
|
), n = e.some((c) => c.unit === "millisecond"), r = e.findIndex((c) => c.value !== 0), a = Math.max(0, e.length - 2), i = t ? 0 : r === -1 ? a : Math.min(r, a), o = r === -1 ? e.slice(a) : e.slice(i);
|
|
@@ -86,7 +87,7 @@ function ar(e) {
|
|
|
86
87
|
const s = o.map((c, u) => c.unit === "millisecond" ? String(c.value).padStart(3, "0") : u === 0 ? String(c.value) : String(c.value).padStart(2, "0")).join(":");
|
|
87
88
|
return n ? s.replace(/:(\d{3})$/, ".$1") : s;
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function or(e, t, n) {
|
|
90
91
|
const r = `${n.prefix || ""}${e}${n.suffix || ""}`;
|
|
91
92
|
return t ? n.negativeInParentheses ? `(${r})` : `-${r}` : r;
|
|
92
93
|
}
|
|
@@ -96,8 +97,8 @@ function qt(e, t = {}) {
|
|
|
96
97
|
const n = typeof e == "number" ? e : typeof e == "string" && e.trim() ? Number(e) : NaN;
|
|
97
98
|
if (!Number.isFinite(n))
|
|
98
99
|
return "";
|
|
99
|
-
const r = t.inputUnit || "second", a = t.outputStyle === "digital" || t.outputStyle === "long" ? t.outputStyle : "compact", i = n < 0, o = Math.abs(
|
|
100
|
-
return
|
|
100
|
+
const r = t.inputUnit || "second", a = t.outputStyle === "digital" || t.outputStyle === "long" ? t.outputStyle : "compact", i = n < 0, o = Math.abs(tr(n, r)), s = nr(o, t), c = a === "digital" ? ir(s) : a === "long" ? ar(s, t.maxUnits) : rr(s, t.maxUnits);
|
|
101
|
+
return or(c, i, t);
|
|
101
102
|
}
|
|
102
103
|
function Zt(e, t) {
|
|
103
104
|
return qt(
|
|
@@ -119,7 +120,7 @@ function it(e, t) {
|
|
|
119
120
|
const n = e.format;
|
|
120
121
|
return n(t);
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
+
function sr(e, t) {
|
|
123
124
|
if (at ?? (at = it(
|
|
124
125
|
new Intl.NumberFormat("en-US", { useGrouping: !1, maximumFractionDigits: 6 }),
|
|
125
126
|
"9007199254740993.000009"
|
|
@@ -136,7 +137,7 @@ function ee(e) {
|
|
|
136
137
|
function V(e) {
|
|
137
138
|
return typeof e == "number" ? Math.abs(e) : ee(e) ? { ...e, value: e.value.slice(1) } : e;
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
+
function cr(e) {
|
|
140
141
|
return typeof e == "number" ? e === 0 : /^-?0*(\.0*)?$/.test(e.value);
|
|
141
142
|
}
|
|
142
143
|
function Kt(e, t) {
|
|
@@ -154,7 +155,7 @@ function ge(e, t) {
|
|
|
154
155
|
};
|
|
155
156
|
}
|
|
156
157
|
function U(e, t) {
|
|
157
|
-
return typeof e == "number" ? t.format(e) :
|
|
158
|
+
return typeof e == "number" ? t.format(e) : sr(e.value, t);
|
|
158
159
|
}
|
|
159
160
|
function ot(e) {
|
|
160
161
|
if (!e) return !1;
|
|
@@ -179,7 +180,7 @@ function _(e, t = {}) {
|
|
|
179
180
|
let r = re.get(n);
|
|
180
181
|
return r || (r = new Intl.NumberFormat(e, t), re.size >= Vt && re.clear(), re.set(n, r)), r;
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
+
function ur(e) {
|
|
183
184
|
let t = ae.get(e);
|
|
184
185
|
if (t === void 0) {
|
|
185
186
|
try {
|
|
@@ -192,7 +193,7 @@ function cr(e) {
|
|
|
192
193
|
return t;
|
|
193
194
|
}
|
|
194
195
|
function W(e) {
|
|
195
|
-
return e &&
|
|
196
|
+
return e && ur(e) ? e : "en-US";
|
|
196
197
|
}
|
|
197
198
|
function qe(e, t) {
|
|
198
199
|
if (e == null || Number.isNaN(e))
|
|
@@ -277,11 +278,11 @@ function Gt(e, t) {
|
|
|
277
278
|
maximumFractionDigits: (t == null ? void 0 : t.maximumFractionDigits) ?? 2
|
|
278
279
|
}));
|
|
279
280
|
}
|
|
280
|
-
function
|
|
281
|
-
const n = t ?? "auto", r = n === "never" ? V(e) : e, a = !ee(r) && (n === "always" || n === "exceptZero" && !
|
|
281
|
+
function lr(e, t) {
|
|
282
|
+
const n = t ?? "auto", r = n === "never" ? V(e) : e, a = !ee(r) && (n === "always" || n === "exceptZero" && !cr(r));
|
|
282
283
|
return { value: r, plus: a };
|
|
283
284
|
}
|
|
284
|
-
function
|
|
285
|
+
function vs(e) {
|
|
285
286
|
if (!e || !("signDisplay" in e)) return e;
|
|
286
287
|
const { signDisplay: t, ...n } = e;
|
|
287
288
|
return n;
|
|
@@ -289,7 +290,7 @@ function xs(e) {
|
|
|
289
290
|
function Ze(e, t) {
|
|
290
291
|
if (e == null || Number.isNaN(e))
|
|
291
292
|
return "";
|
|
292
|
-
const n = t.scale === void 0 ? e : Kt(e, t.scale), r =
|
|
293
|
+
const n = t.scale === void 0 ? e : Kt(e, t.scale), r = lr(n, t.signDisplay), a = r.value, i = r.plus ? "+" : "", o = t.negativeStyle === "parentheses" && ee(a), s = o ? V(a) : a, c = {
|
|
293
294
|
style: t.type === "number" ? "decimal" : t.type,
|
|
294
295
|
locale: t.locale,
|
|
295
296
|
currency: t.currency,
|
|
@@ -317,10 +318,10 @@ function Ze(e, t) {
|
|
|
317
318
|
const l = `${t.prefix ?? ""}${i}${u}${t.suffix ?? ""}`;
|
|
318
319
|
return o ? `(${l})` : l;
|
|
319
320
|
}
|
|
320
|
-
function
|
|
321
|
+
function Ss(e, t) {
|
|
321
322
|
return t.type === "duration" ? e == null ? "" : Zt(e, t) : Ze(e, t);
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
+
function mr(e, t, n = "en-US") {
|
|
324
325
|
if (e == null || typeof e == "number" && isNaN(e))
|
|
325
326
|
return "";
|
|
326
327
|
if ((t == null ? void 0 : t.style) === "duration")
|
|
@@ -349,7 +350,7 @@ function lr(e, t, n = "en-US") {
|
|
|
349
350
|
suffix: t == null ? void 0 : t.suffix
|
|
350
351
|
});
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function Ms(e, t, n) {
|
|
353
354
|
const r = {
|
|
354
355
|
style: t === "currency" ? "currency" : t === "percent" ? "percent" : "decimal",
|
|
355
356
|
locale: n == null ? void 0 : n.locale,
|
|
@@ -380,10 +381,10 @@ function p(e) {
|
|
|
380
381
|
function N(e, t) {
|
|
381
382
|
return e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
382
383
|
}
|
|
383
|
-
const Qt = 6048e5,
|
|
384
|
-
let
|
|
384
|
+
const Qt = 6048e5, fr = 864e5, Jt = 6e4, en = 36e5, ks = 525600, ie = 43200, ct = 1440;
|
|
385
|
+
let dr = {};
|
|
385
386
|
function j() {
|
|
386
|
-
return
|
|
387
|
+
return dr;
|
|
387
388
|
}
|
|
388
389
|
function B(e, t) {
|
|
389
390
|
var s, c, u, l;
|
|
@@ -419,11 +420,11 @@ function pe(e) {
|
|
|
419
420
|
);
|
|
420
421
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
421
422
|
}
|
|
422
|
-
function
|
|
423
|
+
function hr(e, t) {
|
|
423
424
|
const n = ut(e), r = ut(t), a = +n - pe(n), i = +r - pe(r);
|
|
424
|
-
return Math.round((a - i) /
|
|
425
|
+
return Math.round((a - i) / fr);
|
|
425
426
|
}
|
|
426
|
-
function
|
|
427
|
+
function gr(e) {
|
|
427
428
|
const t = tn(e), n = N(e, 0);
|
|
428
429
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), ye(n);
|
|
429
430
|
}
|
|
@@ -431,46 +432,46 @@ function ue(e, t) {
|
|
|
431
432
|
const n = p(e), r = p(t), a = n.getTime() - r.getTime();
|
|
432
433
|
return a < 0 ? -1 : a > 0 ? 1 : a;
|
|
433
434
|
}
|
|
434
|
-
function
|
|
435
|
+
function yr(e) {
|
|
435
436
|
return N(e, Date.now());
|
|
436
437
|
}
|
|
437
|
-
function
|
|
438
|
+
function pr(e) {
|
|
438
439
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
439
440
|
}
|
|
440
|
-
function
|
|
441
|
-
if (!
|
|
441
|
+
function wr(e) {
|
|
442
|
+
if (!pr(e) && typeof e != "number")
|
|
442
443
|
return !1;
|
|
443
444
|
const t = p(e);
|
|
444
445
|
return !isNaN(Number(t));
|
|
445
446
|
}
|
|
446
|
-
function
|
|
447
|
+
function Tr(e, t) {
|
|
447
448
|
const n = p(e), r = p(t), a = n.getFullYear() - r.getFullYear(), i = n.getMonth() - r.getMonth();
|
|
448
449
|
return a * 12 + i;
|
|
449
450
|
}
|
|
450
|
-
function
|
|
451
|
+
function Dr(e) {
|
|
451
452
|
return (t) => {
|
|
452
453
|
const r = (e ? Math[e] : Math.trunc)(t);
|
|
453
454
|
return r === 0 ? 0 : r;
|
|
454
455
|
};
|
|
455
456
|
}
|
|
456
|
-
function
|
|
457
|
+
function xr(e, t) {
|
|
457
458
|
return +p(e) - +p(t);
|
|
458
459
|
}
|
|
459
|
-
function
|
|
460
|
+
function br(e) {
|
|
460
461
|
const t = p(e);
|
|
461
462
|
return t.setHours(23, 59, 59, 999), t;
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
+
function vr(e) {
|
|
464
465
|
const t = p(e), n = t.getMonth();
|
|
465
466
|
return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
|
|
466
467
|
}
|
|
467
|
-
function
|
|
468
|
+
function Sr(e) {
|
|
468
469
|
const t = p(e);
|
|
469
|
-
return +
|
|
470
|
+
return +br(t) == +vr(t);
|
|
470
471
|
}
|
|
471
|
-
function
|
|
472
|
+
function Mr(e, t) {
|
|
472
473
|
const n = p(e), r = p(t), a = ue(n, r), i = Math.abs(
|
|
473
|
-
|
|
474
|
+
Tr(n, r)
|
|
474
475
|
);
|
|
475
476
|
let o;
|
|
476
477
|
if (i < 1)
|
|
@@ -478,19 +479,19 @@ function Sr(e, t) {
|
|
|
478
479
|
else {
|
|
479
480
|
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * i);
|
|
480
481
|
let s = ue(n, r) === -a;
|
|
481
|
-
|
|
482
|
+
Sr(p(e)) && i === 1 && ue(e, r) === 1 && (s = !1), o = a * (i - Number(s));
|
|
482
483
|
}
|
|
483
484
|
return o === 0 ? 0 : o;
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
-
const r =
|
|
487
|
-
return
|
|
486
|
+
function kr(e, t, n) {
|
|
487
|
+
const r = xr(e, t) / 1e3;
|
|
488
|
+
return Dr(n == null ? void 0 : n.roundingMethod)(r);
|
|
488
489
|
}
|
|
489
|
-
function
|
|
490
|
+
function _r(e) {
|
|
490
491
|
const t = p(e), n = N(e, 0);
|
|
491
492
|
return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
492
493
|
}
|
|
493
|
-
const
|
|
494
|
+
const Nr = {
|
|
494
495
|
lessThanXSeconds: {
|
|
495
496
|
one: "less than a second",
|
|
496
497
|
other: "less than {{count}} seconds"
|
|
@@ -552,9 +553,9 @@ const _r = {
|
|
|
552
553
|
one: "almost 1 year",
|
|
553
554
|
other: "almost {{count}} years"
|
|
554
555
|
}
|
|
555
|
-
},
|
|
556
|
+
}, $r = (e, t, n) => {
|
|
556
557
|
let r;
|
|
557
|
-
const a =
|
|
558
|
+
const a = Nr[e];
|
|
558
559
|
return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
559
560
|
};
|
|
560
561
|
function ke(e) {
|
|
@@ -563,42 +564,42 @@ function ke(e) {
|
|
|
563
564
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
564
565
|
};
|
|
565
566
|
}
|
|
566
|
-
const
|
|
567
|
+
const Fr = {
|
|
567
568
|
full: "EEEE, MMMM do, y",
|
|
568
569
|
long: "MMMM do, y",
|
|
569
570
|
medium: "MMM d, y",
|
|
570
571
|
short: "MM/dd/yyyy"
|
|
571
|
-
},
|
|
572
|
+
}, Or = {
|
|
572
573
|
full: "h:mm:ss a zzzz",
|
|
573
574
|
long: "h:mm:ss a z",
|
|
574
575
|
medium: "h:mm:ss a",
|
|
575
576
|
short: "h:mm a"
|
|
576
|
-
},
|
|
577
|
+
}, Ir = {
|
|
577
578
|
full: "{{date}} 'at' {{time}}",
|
|
578
579
|
long: "{{date}} 'at' {{time}}",
|
|
579
580
|
medium: "{{date}}, {{time}}",
|
|
580
581
|
short: "{{date}}, {{time}}"
|
|
581
|
-
},
|
|
582
|
+
}, Er = {
|
|
582
583
|
date: ke({
|
|
583
|
-
formats:
|
|
584
|
+
formats: Fr,
|
|
584
585
|
defaultWidth: "full"
|
|
585
586
|
}),
|
|
586
587
|
time: ke({
|
|
587
|
-
formats:
|
|
588
|
+
formats: Or,
|
|
588
589
|
defaultWidth: "full"
|
|
589
590
|
}),
|
|
590
591
|
dateTime: ke({
|
|
591
|
-
formats:
|
|
592
|
+
formats: Ir,
|
|
592
593
|
defaultWidth: "full"
|
|
593
594
|
})
|
|
594
|
-
},
|
|
595
|
+
}, Cr = {
|
|
595
596
|
lastWeek: "'last' eeee 'at' p",
|
|
596
597
|
yesterday: "'yesterday at' p",
|
|
597
598
|
today: "'today at' p",
|
|
598
599
|
tomorrow: "'tomorrow at' p",
|
|
599
600
|
nextWeek: "eeee 'at' p",
|
|
600
601
|
other: "P"
|
|
601
|
-
},
|
|
602
|
+
}, Pr = (e, t, n, r) => Cr[e];
|
|
602
603
|
function H(e) {
|
|
603
604
|
return (t, n) => {
|
|
604
605
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -614,15 +615,15 @@ function H(e) {
|
|
|
614
615
|
return a[i];
|
|
615
616
|
};
|
|
616
617
|
}
|
|
617
|
-
const
|
|
618
|
+
const Yr = {
|
|
618
619
|
narrow: ["B", "A"],
|
|
619
620
|
abbreviated: ["BC", "AD"],
|
|
620
621
|
wide: ["Before Christ", "Anno Domini"]
|
|
621
|
-
},
|
|
622
|
+
}, zr = {
|
|
622
623
|
narrow: ["1", "2", "3", "4"],
|
|
623
624
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
624
625
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
625
|
-
},
|
|
626
|
+
}, Ur = {
|
|
626
627
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
627
628
|
abbreviated: [
|
|
628
629
|
"Jan",
|
|
@@ -652,7 +653,7 @@ const Pr = {
|
|
|
652
653
|
"November",
|
|
653
654
|
"December"
|
|
654
655
|
]
|
|
655
|
-
},
|
|
656
|
+
}, Ar = {
|
|
656
657
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
657
658
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
658
659
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -665,7 +666,7 @@ const Pr = {
|
|
|
665
666
|
"Friday",
|
|
666
667
|
"Saturday"
|
|
667
668
|
]
|
|
668
|
-
},
|
|
669
|
+
}, Rr = {
|
|
669
670
|
narrow: {
|
|
670
671
|
am: "a",
|
|
671
672
|
pm: "p",
|
|
@@ -696,7 +697,7 @@ const Pr = {
|
|
|
696
697
|
evening: "evening",
|
|
697
698
|
night: "night"
|
|
698
699
|
}
|
|
699
|
-
},
|
|
700
|
+
}, Lr = {
|
|
700
701
|
narrow: {
|
|
701
702
|
am: "a",
|
|
702
703
|
pm: "p",
|
|
@@ -727,7 +728,7 @@ const Pr = {
|
|
|
727
728
|
evening: "in the evening",
|
|
728
729
|
night: "at night"
|
|
729
730
|
}
|
|
730
|
-
},
|
|
731
|
+
}, Wr = (e, t) => {
|
|
731
732
|
const n = Number(e), r = n % 100;
|
|
732
733
|
if (r > 20 || r < 10)
|
|
733
734
|
switch (r % 10) {
|
|
@@ -739,29 +740,29 @@ const Pr = {
|
|
|
739
740
|
return n + "rd";
|
|
740
741
|
}
|
|
741
742
|
return n + "th";
|
|
742
|
-
},
|
|
743
|
-
ordinalNumber:
|
|
743
|
+
}, jr = {
|
|
744
|
+
ordinalNumber: Wr,
|
|
744
745
|
era: H({
|
|
745
|
-
values:
|
|
746
|
+
values: Yr,
|
|
746
747
|
defaultWidth: "wide"
|
|
747
748
|
}),
|
|
748
749
|
quarter: H({
|
|
749
|
-
values:
|
|
750
|
+
values: zr,
|
|
750
751
|
defaultWidth: "wide",
|
|
751
752
|
argumentCallback: (e) => e - 1
|
|
752
753
|
}),
|
|
753
754
|
month: H({
|
|
754
|
-
values:
|
|
755
|
+
values: Ur,
|
|
755
756
|
defaultWidth: "wide"
|
|
756
757
|
}),
|
|
757
758
|
day: H({
|
|
758
|
-
values:
|
|
759
|
+
values: Ar,
|
|
759
760
|
defaultWidth: "wide"
|
|
760
761
|
}),
|
|
761
762
|
dayPeriod: H({
|
|
762
|
-
values:
|
|
763
|
+
values: Rr,
|
|
763
764
|
defaultWidth: "wide",
|
|
764
|
-
formattingValues:
|
|
765
|
+
formattingValues: Lr,
|
|
765
766
|
defaultFormattingWidth: "wide"
|
|
766
767
|
})
|
|
767
768
|
};
|
|
@@ -770,9 +771,9 @@ function q(e) {
|
|
|
770
771
|
const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = t.match(a);
|
|
771
772
|
if (!i)
|
|
772
773
|
return null;
|
|
773
|
-
const o = i[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
774
|
+
const o = i[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? qr(s, (f) => f.test(o)) : (
|
|
774
775
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
775
|
-
|
|
776
|
+
Hr(s, (f) => f.test(o))
|
|
776
777
|
);
|
|
777
778
|
let u;
|
|
778
779
|
u = e.valueCallback ? e.valueCallback(c) : c, u = n.valueCallback ? (
|
|
@@ -783,17 +784,17 @@ function q(e) {
|
|
|
783
784
|
return { value: u, rest: l };
|
|
784
785
|
};
|
|
785
786
|
}
|
|
786
|
-
function
|
|
787
|
+
function Hr(e, t) {
|
|
787
788
|
for (const n in e)
|
|
788
789
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
789
790
|
return n;
|
|
790
791
|
}
|
|
791
|
-
function
|
|
792
|
+
function qr(e, t) {
|
|
792
793
|
for (let n = 0; n < e.length; n++)
|
|
793
794
|
if (t(e[n]))
|
|
794
795
|
return n;
|
|
795
796
|
}
|
|
796
|
-
function
|
|
797
|
+
function Zr(e) {
|
|
797
798
|
return (t, n = {}) => {
|
|
798
799
|
const r = t.match(e.matchPattern);
|
|
799
800
|
if (!r) return null;
|
|
@@ -805,23 +806,23 @@ function qr(e) {
|
|
|
805
806
|
return { value: o, rest: s };
|
|
806
807
|
};
|
|
807
808
|
}
|
|
808
|
-
const
|
|
809
|
+
const Kr = /^(\d+)(th|st|nd|rd)?/i, Vr = /\d+/i, Br = {
|
|
809
810
|
narrow: /^(b|a)/i,
|
|
810
811
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
811
812
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
812
|
-
}, Br = {
|
|
813
|
-
any: [/^b/i, /^(a|c)/i]
|
|
814
813
|
}, Xr = {
|
|
814
|
+
any: [/^b/i, /^(a|c)/i]
|
|
815
|
+
}, Gr = {
|
|
815
816
|
narrow: /^[1234]/i,
|
|
816
817
|
abbreviated: /^q[1234]/i,
|
|
817
818
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
818
|
-
}, Gr = {
|
|
819
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
820
819
|
}, Qr = {
|
|
820
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
821
|
+
}, Jr = {
|
|
821
822
|
narrow: /^[jfmasond]/i,
|
|
822
823
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
823
824
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
824
|
-
},
|
|
825
|
+
}, ea = {
|
|
825
826
|
narrow: [
|
|
826
827
|
/^j/i,
|
|
827
828
|
/^f/i,
|
|
@@ -850,18 +851,18 @@ const Zr = /^(\d+)(th|st|nd|rd)?/i, Kr = /\d+/i, Vr = {
|
|
|
850
851
|
/^n/i,
|
|
851
852
|
/^d/i
|
|
852
853
|
]
|
|
853
|
-
},
|
|
854
|
+
}, ta = {
|
|
854
855
|
narrow: /^[smtwf]/i,
|
|
855
856
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
856
857
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
857
858
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
858
|
-
},
|
|
859
|
+
}, na = {
|
|
859
860
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
860
861
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
861
|
-
},
|
|
862
|
+
}, ra = {
|
|
862
863
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
863
864
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
864
|
-
},
|
|
865
|
+
}, aa = {
|
|
865
866
|
any: {
|
|
866
867
|
am: /^a/i,
|
|
867
868
|
pm: /^p/i,
|
|
@@ -872,61 +873,61 @@ const Zr = /^(\d+)(th|st|nd|rd)?/i, Kr = /\d+/i, Vr = {
|
|
|
872
873
|
evening: /evening/i,
|
|
873
874
|
night: /night/i
|
|
874
875
|
}
|
|
875
|
-
},
|
|
876
|
-
ordinalNumber:
|
|
877
|
-
matchPattern:
|
|
878
|
-
parsePattern:
|
|
876
|
+
}, ia = {
|
|
877
|
+
ordinalNumber: Zr({
|
|
878
|
+
matchPattern: Kr,
|
|
879
|
+
parsePattern: Vr,
|
|
879
880
|
valueCallback: (e) => parseInt(e, 10)
|
|
880
881
|
}),
|
|
881
882
|
era: q({
|
|
882
|
-
matchPatterns:
|
|
883
|
+
matchPatterns: Br,
|
|
883
884
|
defaultMatchWidth: "wide",
|
|
884
|
-
parsePatterns:
|
|
885
|
+
parsePatterns: Xr,
|
|
885
886
|
defaultParseWidth: "any"
|
|
886
887
|
}),
|
|
887
888
|
quarter: q({
|
|
888
|
-
matchPatterns:
|
|
889
|
+
matchPatterns: Gr,
|
|
889
890
|
defaultMatchWidth: "wide",
|
|
890
|
-
parsePatterns:
|
|
891
|
+
parsePatterns: Qr,
|
|
891
892
|
defaultParseWidth: "any",
|
|
892
893
|
valueCallback: (e) => e + 1
|
|
893
894
|
}),
|
|
894
895
|
month: q({
|
|
895
|
-
matchPatterns:
|
|
896
|
+
matchPatterns: Jr,
|
|
896
897
|
defaultMatchWidth: "wide",
|
|
897
|
-
parsePatterns:
|
|
898
|
+
parsePatterns: ea,
|
|
898
899
|
defaultParseWidth: "any"
|
|
899
900
|
}),
|
|
900
901
|
day: q({
|
|
901
|
-
matchPatterns:
|
|
902
|
+
matchPatterns: ta,
|
|
902
903
|
defaultMatchWidth: "wide",
|
|
903
|
-
parsePatterns:
|
|
904
|
+
parsePatterns: na,
|
|
904
905
|
defaultParseWidth: "any"
|
|
905
906
|
}),
|
|
906
907
|
dayPeriod: q({
|
|
907
|
-
matchPatterns:
|
|
908
|
+
matchPatterns: ra,
|
|
908
909
|
defaultMatchWidth: "any",
|
|
909
|
-
parsePatterns:
|
|
910
|
+
parsePatterns: aa,
|
|
910
911
|
defaultParseWidth: "any"
|
|
911
912
|
})
|
|
912
913
|
}, nn = {
|
|
913
914
|
code: "en-US",
|
|
914
|
-
formatDistance:
|
|
915
|
-
formatLong:
|
|
916
|
-
formatRelative:
|
|
917
|
-
localize:
|
|
918
|
-
match:
|
|
915
|
+
formatDistance: $r,
|
|
916
|
+
formatLong: Er,
|
|
917
|
+
formatRelative: Pr,
|
|
918
|
+
localize: jr,
|
|
919
|
+
match: ia,
|
|
919
920
|
options: {
|
|
920
921
|
weekStartsOn: 0,
|
|
921
922
|
firstWeekContainsDate: 1
|
|
922
923
|
}
|
|
923
924
|
};
|
|
924
|
-
function
|
|
925
|
+
function oa(e) {
|
|
925
926
|
const t = p(e);
|
|
926
|
-
return
|
|
927
|
+
return hr(t, _r(t)) + 1;
|
|
927
928
|
}
|
|
928
|
-
function
|
|
929
|
-
const t = p(e), n = +ye(t) - +
|
|
929
|
+
function sa(e) {
|
|
930
|
+
const t = p(e), n = +ye(t) - +gr(t);
|
|
930
931
|
return Math.round(n / Qt) + 1;
|
|
931
932
|
}
|
|
932
933
|
function rn(e, t) {
|
|
@@ -938,13 +939,13 @@ function rn(e, t) {
|
|
|
938
939
|
const u = B(c, t);
|
|
939
940
|
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
+
function ca(e, t) {
|
|
942
943
|
var s, c, u, l;
|
|
943
944
|
const n = j(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((l = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, a = rn(e, t), i = N(e, 0);
|
|
944
945
|
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), B(i, t);
|
|
945
946
|
}
|
|
946
|
-
function
|
|
947
|
-
const n = p(e), r = +B(n, t) - +
|
|
947
|
+
function ua(e, t) {
|
|
948
|
+
const n = p(e), r = +B(n, t) - +ca(n, t);
|
|
948
949
|
return Math.round(r / Qt) + 1;
|
|
949
950
|
}
|
|
950
951
|
function y(e, t) {
|
|
@@ -1170,12 +1171,12 @@ const k = {
|
|
|
1170
1171
|
},
|
|
1171
1172
|
// Local week of year
|
|
1172
1173
|
w: function(e, t, n, r) {
|
|
1173
|
-
const a =
|
|
1174
|
+
const a = ua(e, r);
|
|
1174
1175
|
return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : y(a, t.length);
|
|
1175
1176
|
},
|
|
1176
1177
|
// ISO week of year
|
|
1177
1178
|
I: function(e, t, n) {
|
|
1178
|
-
const r =
|
|
1179
|
+
const r = sa(e);
|
|
1179
1180
|
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : y(r, t.length);
|
|
1180
1181
|
},
|
|
1181
1182
|
// Day of the month
|
|
@@ -1184,7 +1185,7 @@ const k = {
|
|
|
1184
1185
|
},
|
|
1185
1186
|
// Day of year
|
|
1186
1187
|
D: function(e, t, n) {
|
|
1187
|
-
const r =
|
|
1188
|
+
const r = oa(e);
|
|
1188
1189
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : y(r, t.length);
|
|
1189
1190
|
},
|
|
1190
1191
|
// Day of week
|
|
@@ -1535,7 +1536,7 @@ const dt = (e, t) => {
|
|
|
1535
1536
|
default:
|
|
1536
1537
|
return t.time({ width: "full" });
|
|
1537
1538
|
}
|
|
1538
|
-
},
|
|
1539
|
+
}, la = (e, t) => {
|
|
1539
1540
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1540
1541
|
if (!a)
|
|
1541
1542
|
return dt(e, t);
|
|
@@ -1556,46 +1557,46 @@ const dt = (e, t) => {
|
|
|
1556
1557
|
break;
|
|
1557
1558
|
}
|
|
1558
1559
|
return i.replace("{{date}}", dt(r, t)).replace("{{time}}", an(a, t));
|
|
1559
|
-
},
|
|
1560
|
+
}, ma = {
|
|
1560
1561
|
p: an,
|
|
1561
|
-
P:
|
|
1562
|
-
},
|
|
1563
|
-
function ha(e) {
|
|
1564
|
-
return ma.test(e);
|
|
1565
|
-
}
|
|
1562
|
+
P: la
|
|
1563
|
+
}, fa = /^D+$/, da = /^Y+$/, ha = ["D", "DD", "YY", "YYYY"];
|
|
1566
1564
|
function ga(e) {
|
|
1567
1565
|
return fa.test(e);
|
|
1568
1566
|
}
|
|
1569
|
-
function ya(e
|
|
1570
|
-
|
|
1571
|
-
if (console.warn(r), da.includes(e)) throw new RangeError(r);
|
|
1567
|
+
function ya(e) {
|
|
1568
|
+
return da.test(e);
|
|
1572
1569
|
}
|
|
1573
1570
|
function pa(e, t, n) {
|
|
1571
|
+
const r = wa(e, t, n);
|
|
1572
|
+
if (console.warn(r), ha.includes(e)) throw new RangeError(r);
|
|
1573
|
+
}
|
|
1574
|
+
function wa(e, t, n) {
|
|
1574
1575
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1575
1576
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1576
1577
|
}
|
|
1577
|
-
const
|
|
1578
|
+
const Ta = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Da = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xa = /^'([^]*?)'?$/, ba = /''/g, va = /[a-zA-Z]/;
|
|
1578
1579
|
function Ke(e, t, n) {
|
|
1579
1580
|
var l, f, m, h, d, S, et, tt;
|
|
1580
1581
|
const r = j(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? nn, i = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (l = n == null ? void 0 : n.locale) == null ? void 0 : l.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((S = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : S.weekStartsOn) ?? r.weekStartsOn ?? ((tt = (et = r.locale) == null ? void 0 : et.options) == null ? void 0 : tt.weekStartsOn) ?? 0, s = p(e);
|
|
1581
|
-
if (!
|
|
1582
|
+
if (!wr(s))
|
|
1582
1583
|
throw new RangeError("Invalid time value");
|
|
1583
|
-
let c = t.match(
|
|
1584
|
+
let c = t.match(Da).map((v) => {
|
|
1584
1585
|
const b = v[0];
|
|
1585
1586
|
if (b === "p" || b === "P") {
|
|
1586
|
-
const Me =
|
|
1587
|
+
const Me = ma[b];
|
|
1587
1588
|
return Me(v, a.formatLong);
|
|
1588
1589
|
}
|
|
1589
1590
|
return v;
|
|
1590
|
-
}).join("").match(
|
|
1591
|
+
}).join("").match(Ta).map((v) => {
|
|
1591
1592
|
if (v === "''")
|
|
1592
1593
|
return { isToken: !1, value: "'" };
|
|
1593
1594
|
const b = v[0];
|
|
1594
1595
|
if (b === "'")
|
|
1595
|
-
return { isToken: !1, value:
|
|
1596
|
+
return { isToken: !1, value: Sa(v) };
|
|
1596
1597
|
if (lt[b])
|
|
1597
1598
|
return { isToken: !0, value: v };
|
|
1598
|
-
if (b.match(
|
|
1599
|
+
if (b.match(va))
|
|
1599
1600
|
throw new RangeError(
|
|
1600
1601
|
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
1601
1602
|
);
|
|
@@ -1610,16 +1611,16 @@ function Ke(e, t, n) {
|
|
|
1610
1611
|
return c.map((v) => {
|
|
1611
1612
|
if (!v.isToken) return v.value;
|
|
1612
1613
|
const b = v.value;
|
|
1613
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1614
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && ya(b) || !(n != null && n.useAdditionalDayOfYearTokens) && ga(b)) && pa(b, t, String(e));
|
|
1614
1615
|
const Me = lt[b[0]];
|
|
1615
1616
|
return Me(s, b, a.localize, u);
|
|
1616
1617
|
}).join("");
|
|
1617
1618
|
}
|
|
1618
|
-
function
|
|
1619
|
-
const t = e.match(
|
|
1620
|
-
return t ? t[1].replace(
|
|
1619
|
+
function Sa(e) {
|
|
1620
|
+
const t = e.match(xa);
|
|
1621
|
+
return t ? t[1].replace(ba, "'") : e;
|
|
1621
1622
|
}
|
|
1622
|
-
function
|
|
1623
|
+
function Ma(e, t, n) {
|
|
1623
1624
|
const r = j(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? nn, i = 2520, o = ue(e, t);
|
|
1624
1625
|
if (isNaN(o))
|
|
1625
1626
|
throw new RangeError("Invalid time value");
|
|
@@ -1629,7 +1630,7 @@ function Sa(e, t, n) {
|
|
|
1629
1630
|
});
|
|
1630
1631
|
let c, u;
|
|
1631
1632
|
o > 0 ? (c = p(t), u = p(e)) : (c = p(e), u = p(t));
|
|
1632
|
-
const l =
|
|
1633
|
+
const l = kr(u, c), f = (pe(u) - pe(c)) / 1e3, m = Math.round((l - f) / 60);
|
|
1633
1634
|
let h;
|
|
1634
1635
|
if (m < 2)
|
|
1635
1636
|
return n != null && n.includeSeconds ? l < 5 ? a.formatDistance("lessThanXSeconds", 5, s) : l < 10 ? a.formatDistance("lessThanXSeconds", 10, s) : l < 20 ? a.formatDistance("lessThanXSeconds", 20, s) : l < 40 ? a.formatDistance("halfAMinute", 0, s) : l < 60 ? a.formatDistance("lessThanXMinutes", 1, s) : a.formatDistance("xMinutes", 1, s) : m === 0 ? a.formatDistance("lessThanXMinutes", 1, s) : a.formatDistance("xMinutes", m, s);
|
|
@@ -1649,7 +1650,7 @@ function Sa(e, t, n) {
|
|
|
1649
1650
|
} else if (m < ie * 2)
|
|
1650
1651
|
return h = Math.round(m / ie), a.formatDistance("aboutXMonths", h, s);
|
|
1651
1652
|
}
|
|
1652
|
-
if (h =
|
|
1653
|
+
if (h = Mr(u, c), h < 12) {
|
|
1653
1654
|
const d = Math.round(m / ie);
|
|
1654
1655
|
return a.formatDistance("xMonths", d, s);
|
|
1655
1656
|
} else {
|
|
@@ -1657,27 +1658,27 @@ function Sa(e, t, n) {
|
|
|
1657
1658
|
return d < 3 ? a.formatDistance("aboutXYears", S, s) : d < 9 ? a.formatDistance("overXYears", S, s) : a.formatDistance("almostXYears", S + 1, s);
|
|
1658
1659
|
}
|
|
1659
1660
|
}
|
|
1660
|
-
function
|
|
1661
|
-
return
|
|
1661
|
+
function ka(e, t) {
|
|
1662
|
+
return Ma(e, yr(e), t);
|
|
1662
1663
|
}
|
|
1663
|
-
function
|
|
1664
|
+
function _a() {
|
|
1664
1665
|
return Object.assign({}, j());
|
|
1665
1666
|
}
|
|
1666
|
-
function
|
|
1667
|
-
const r =
|
|
1667
|
+
function _s(e, t) {
|
|
1668
|
+
const r = Oa(e);
|
|
1668
1669
|
let a;
|
|
1669
1670
|
if (r.date) {
|
|
1670
|
-
const c =
|
|
1671
|
-
a =
|
|
1671
|
+
const c = Ia(r.date, 2);
|
|
1672
|
+
a = Ea(c.restDateString, c.year);
|
|
1672
1673
|
}
|
|
1673
1674
|
if (!a || isNaN(a.getTime()))
|
|
1674
1675
|
return /* @__PURE__ */ new Date(NaN);
|
|
1675
1676
|
const i = a.getTime();
|
|
1676
1677
|
let o = 0, s;
|
|
1677
|
-
if (r.time && (o =
|
|
1678
|
+
if (r.time && (o = Ca(r.time), isNaN(o)))
|
|
1678
1679
|
return /* @__PURE__ */ new Date(NaN);
|
|
1679
1680
|
if (r.timezone) {
|
|
1680
|
-
if (s =
|
|
1681
|
+
if (s = Pa(r.timezone), isNaN(s))
|
|
1681
1682
|
return /* @__PURE__ */ new Date(NaN);
|
|
1682
1683
|
} else {
|
|
1683
1684
|
const c = new Date(i + o), u = /* @__PURE__ */ new Date(0);
|
|
@@ -1698,8 +1699,8 @@ const oe = {
|
|
|
1698
1699
|
dateTimeDelimiter: /[T ]/,
|
|
1699
1700
|
timeZoneDelimiter: /[Z ]/i,
|
|
1700
1701
|
timezone: /([Z+-].*)$/
|
|
1701
|
-
},
|
|
1702
|
-
function
|
|
1702
|
+
}, Na = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, $a = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Fa = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
1703
|
+
function Oa(e) {
|
|
1703
1704
|
const t = {}, n = e.split(oe.dateTimeDelimiter);
|
|
1704
1705
|
let r;
|
|
1705
1706
|
if (n.length > 2)
|
|
@@ -1713,7 +1714,7 @@ function Fa(e) {
|
|
|
1713
1714
|
}
|
|
1714
1715
|
return t;
|
|
1715
1716
|
}
|
|
1716
|
-
function
|
|
1717
|
+
function Ia(e, t) {
|
|
1717
1718
|
const n = new RegExp(
|
|
1718
1719
|
"^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"
|
|
1719
1720
|
), r = e.match(n);
|
|
@@ -1724,87 +1725,87 @@ function Oa(e, t) {
|
|
|
1724
1725
|
restDateString: e.slice((r[1] || r[2]).length)
|
|
1725
1726
|
};
|
|
1726
1727
|
}
|
|
1727
|
-
function
|
|
1728
|
+
function Ea(e, t) {
|
|
1728
1729
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
1729
|
-
const n = e.match(
|
|
1730
|
+
const n = e.match(Na);
|
|
1730
1731
|
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
1731
1732
|
const r = !!n[4], a = Z(n[1]), i = Z(n[2]) - 1, o = Z(n[3]), s = Z(n[4]), c = Z(n[5]) - 1;
|
|
1732
1733
|
if (r)
|
|
1733
|
-
return
|
|
1734
|
+
return Ra(t, s, c) ? Ya(t, s, c) : /* @__PURE__ */ new Date(NaN);
|
|
1734
1735
|
{
|
|
1735
1736
|
const u = /* @__PURE__ */ new Date(0);
|
|
1736
|
-
return !
|
|
1737
|
+
return !Ua(t, i, o) || !Aa(t, a) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(t, i, Math.max(a, o)), u);
|
|
1737
1738
|
}
|
|
1738
1739
|
}
|
|
1739
1740
|
function Z(e) {
|
|
1740
1741
|
return e ? parseInt(e) : 1;
|
|
1741
1742
|
}
|
|
1742
|
-
function
|
|
1743
|
-
const t = e.match(
|
|
1743
|
+
function Ca(e) {
|
|
1744
|
+
const t = e.match($a);
|
|
1744
1745
|
if (!t) return NaN;
|
|
1745
1746
|
const n = _e(t[1]), r = _e(t[2]), a = _e(t[3]);
|
|
1746
|
-
return
|
|
1747
|
+
return La(n, r, a) ? n * en + r * Jt + a * 1e3 : NaN;
|
|
1747
1748
|
}
|
|
1748
1749
|
function _e(e) {
|
|
1749
1750
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
1750
1751
|
}
|
|
1751
|
-
function
|
|
1752
|
+
function Pa(e) {
|
|
1752
1753
|
if (e === "Z") return 0;
|
|
1753
|
-
const t = e.match(
|
|
1754
|
+
const t = e.match(Fa);
|
|
1754
1755
|
if (!t) return 0;
|
|
1755
1756
|
const n = t[1] === "+" ? -1 : 1, r = parseInt(t[2]), a = t[3] && parseInt(t[3]) || 0;
|
|
1756
|
-
return
|
|
1757
|
+
return Wa(r, a) ? n * (r * en + a * Jt) : NaN;
|
|
1757
1758
|
}
|
|
1758
|
-
function
|
|
1759
|
+
function Ya(e, t, n) {
|
|
1759
1760
|
const r = /* @__PURE__ */ new Date(0);
|
|
1760
1761
|
r.setUTCFullYear(e, 0, 4);
|
|
1761
1762
|
const a = r.getUTCDay() || 7, i = (t - 1) * 7 + n + 1 - a;
|
|
1762
1763
|
return r.setUTCDate(r.getUTCDate() + i), r;
|
|
1763
1764
|
}
|
|
1764
|
-
const
|
|
1765
|
+
const za = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1765
1766
|
function on(e) {
|
|
1766
1767
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
1767
1768
|
}
|
|
1768
|
-
function
|
|
1769
|
-
return t >= 0 && t <= 11 && n >= 1 && n <= (
|
|
1769
|
+
function Ua(e, t, n) {
|
|
1770
|
+
return t >= 0 && t <= 11 && n >= 1 && n <= (za[t] || (on(e) ? 29 : 28));
|
|
1770
1771
|
}
|
|
1771
|
-
function
|
|
1772
|
+
function Aa(e, t) {
|
|
1772
1773
|
return t >= 1 && t <= (on(e) ? 366 : 365);
|
|
1773
1774
|
}
|
|
1774
|
-
function
|
|
1775
|
+
function Ra(e, t, n) {
|
|
1775
1776
|
return t >= 1 && t <= 53 && n >= 0 && n <= 6;
|
|
1776
1777
|
}
|
|
1777
|
-
function
|
|
1778
|
+
function La(e, t, n) {
|
|
1778
1779
|
return e === 24 ? t === 0 && n === 0 : n >= 0 && n < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
1779
1780
|
}
|
|
1780
|
-
function
|
|
1781
|
+
function Wa(e, t) {
|
|
1781
1782
|
return t >= 0 && t <= 59;
|
|
1782
1783
|
}
|
|
1783
1784
|
function ht(e, t, n) {
|
|
1784
|
-
const r =
|
|
1785
|
-
return "formatToParts" in a ?
|
|
1785
|
+
const r = _a(), a = qa(e, n.timeZone, n.locale ?? r.locale);
|
|
1786
|
+
return "formatToParts" in a ? ja(a, t) : Ha(a, t);
|
|
1786
1787
|
}
|
|
1787
|
-
function
|
|
1788
|
+
function ja(e, t) {
|
|
1788
1789
|
const n = e.formatToParts(t);
|
|
1789
1790
|
for (let r = n.length - 1; r >= 0; --r)
|
|
1790
1791
|
if (n[r].type === "timeZoneName")
|
|
1791
1792
|
return n[r].value;
|
|
1792
1793
|
}
|
|
1793
|
-
function
|
|
1794
|
+
function Ha(e, t) {
|
|
1794
1795
|
const n = e.format(t).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(n);
|
|
1795
1796
|
return r ? r[0].substr(1) : "";
|
|
1796
1797
|
}
|
|
1797
|
-
function
|
|
1798
|
+
function qa(e, t, n) {
|
|
1798
1799
|
return new Intl.DateTimeFormat(n ? [n.code, "en-US"] : void 0, {
|
|
1799
1800
|
timeZone: t,
|
|
1800
1801
|
timeZoneName: e
|
|
1801
1802
|
});
|
|
1802
1803
|
}
|
|
1803
|
-
function
|
|
1804
|
-
const n =
|
|
1805
|
-
return "formatToParts" in n ?
|
|
1804
|
+
function Za(e, t) {
|
|
1805
|
+
const n = Ga(t);
|
|
1806
|
+
return "formatToParts" in n ? Va(n, e) : Ba(n, e);
|
|
1806
1807
|
}
|
|
1807
|
-
const
|
|
1808
|
+
const Ka = {
|
|
1808
1809
|
year: 0,
|
|
1809
1810
|
month: 1,
|
|
1810
1811
|
day: 2,
|
|
@@ -1812,11 +1813,11 @@ const Za = {
|
|
|
1812
1813
|
minute: 4,
|
|
1813
1814
|
second: 5
|
|
1814
1815
|
};
|
|
1815
|
-
function
|
|
1816
|
+
function Va(e, t) {
|
|
1816
1817
|
try {
|
|
1817
1818
|
const n = e.formatToParts(t), r = [];
|
|
1818
1819
|
for (let a = 0; a < n.length; a++) {
|
|
1819
|
-
const i =
|
|
1820
|
+
const i = Ka[n[a].type];
|
|
1820
1821
|
i !== void 0 && (r[i] = parseInt(n[a].value, 10));
|
|
1821
1822
|
}
|
|
1822
1823
|
return r;
|
|
@@ -1826,7 +1827,7 @@ function Ka(e, t) {
|
|
|
1826
1827
|
throw n;
|
|
1827
1828
|
}
|
|
1828
1829
|
}
|
|
1829
|
-
function
|
|
1830
|
+
function Ba(e, t) {
|
|
1830
1831
|
const n = e.format(t), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
1831
1832
|
return [
|
|
1832
1833
|
parseInt(r[3], 10),
|
|
@@ -1846,9 +1847,9 @@ const Ne = {}, gt = new Intl.DateTimeFormat("en-US", {
|
|
|
1846
1847
|
hour: "2-digit",
|
|
1847
1848
|
minute: "2-digit",
|
|
1848
1849
|
second: "2-digit"
|
|
1849
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
1850
|
-
function
|
|
1851
|
-
return Ne[e] || (Ne[e] =
|
|
1850
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), Xa = gt === "06/25/2014, 00:00:00" || gt === "06/25/2014 00:00:00";
|
|
1851
|
+
function Ga(e) {
|
|
1852
|
+
return Ne[e] || (Ne[e] = Xa ? new Intl.DateTimeFormat("en-US", {
|
|
1852
1853
|
hourCycle: "h23",
|
|
1853
1854
|
timeZone: e,
|
|
1854
1855
|
year: "numeric",
|
|
@@ -1872,7 +1873,7 @@ function Ve(e, t, n, r, a, i, o) {
|
|
|
1872
1873
|
const s = /* @__PURE__ */ new Date(0);
|
|
1873
1874
|
return s.setUTCFullYear(e, t, n), s.setUTCHours(r, a, i, o), s;
|
|
1874
1875
|
}
|
|
1875
|
-
const yt = 36e5,
|
|
1876
|
+
const yt = 36e5, Qa = 6e4, $e = {
|
|
1876
1877
|
timezoneZ: /^(Z)$/,
|
|
1877
1878
|
timezoneHH: /^([+-]\d{2})$/,
|
|
1878
1879
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -1889,25 +1890,25 @@ function ve(e, t, n) {
|
|
|
1889
1890
|
if (r = $e.timezoneHHMM.exec(e), r) {
|
|
1890
1891
|
a = parseInt(r[2], 10);
|
|
1891
1892
|
const o = parseInt(r[3], 10);
|
|
1892
|
-
return pt(a, o) ? (i = Math.abs(a) * yt + o *
|
|
1893
|
+
return pt(a, o) ? (i = Math.abs(a) * yt + o * Qa, r[1] === "+" ? -i : i) : NaN;
|
|
1893
1894
|
}
|
|
1894
|
-
if (
|
|
1895
|
+
if (ti(e)) {
|
|
1895
1896
|
t = new Date(t || Date.now());
|
|
1896
|
-
const o = n ? t :
|
|
1897
|
-
return -(n ? s :
|
|
1897
|
+
const o = n ? t : Ja(t), s = Le(o, e);
|
|
1898
|
+
return -(n ? s : ei(t, s, e));
|
|
1898
1899
|
}
|
|
1899
1900
|
return NaN;
|
|
1900
1901
|
}
|
|
1901
|
-
function
|
|
1902
|
+
function Ja(e) {
|
|
1902
1903
|
return Ve(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
1903
1904
|
}
|
|
1904
1905
|
function Le(e, t) {
|
|
1905
|
-
const n =
|
|
1906
|
+
const n = Za(e, t), r = Ve(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
1906
1907
|
let a = e.getTime();
|
|
1907
1908
|
const i = a % 1e3;
|
|
1908
1909
|
return a -= i >= 0 ? i : 1e3 + i, r - a;
|
|
1909
1910
|
}
|
|
1910
|
-
function
|
|
1911
|
+
function ei(e, t, n) {
|
|
1911
1912
|
let a = e.getTime() - t;
|
|
1912
1913
|
const i = Le(new Date(a), n);
|
|
1913
1914
|
if (t === i)
|
|
@@ -1920,7 +1921,7 @@ function pt(e, t) {
|
|
|
1920
1921
|
return -23 <= e && e <= 23 && (t == null || 0 <= t && t <= 59);
|
|
1921
1922
|
}
|
|
1922
1923
|
const wt = {};
|
|
1923
|
-
function
|
|
1924
|
+
function ti(e) {
|
|
1924
1925
|
if (wt[e])
|
|
1925
1926
|
return !0;
|
|
1926
1927
|
try {
|
|
@@ -1929,7 +1930,7 @@ function ei(e) {
|
|
|
1929
1930
|
return !1;
|
|
1930
1931
|
}
|
|
1931
1932
|
}
|
|
1932
|
-
const
|
|
1933
|
+
const ni = 60 * 1e3, ri = {
|
|
1933
1934
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1934
1935
|
X: function(e, t, n) {
|
|
1935
1936
|
const r = Fe(n.timeZone, e);
|
|
@@ -1969,7 +1970,7 @@ const ti = 60 * 1e3, ni = {
|
|
|
1969
1970
|
case "O":
|
|
1970
1971
|
case "OO":
|
|
1971
1972
|
case "OOO":
|
|
1972
|
-
return "GMT" +
|
|
1973
|
+
return "GMT" + ai(r, ":");
|
|
1973
1974
|
case "OOOO":
|
|
1974
1975
|
default:
|
|
1975
1976
|
return "GMT" + C(r, ":");
|
|
@@ -1989,7 +1990,7 @@ const ti = 60 * 1e3, ni = {
|
|
|
1989
1990
|
}
|
|
1990
1991
|
};
|
|
1991
1992
|
function Fe(e, t) {
|
|
1992
|
-
const n = e ? ve(e, t, !0) /
|
|
1993
|
+
const n = e ? ve(e, t, !0) / ni : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
1993
1994
|
if (Number.isNaN(n))
|
|
1994
1995
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
1995
1996
|
return n;
|
|
@@ -2008,7 +2009,7 @@ function C(e, t = "") {
|
|
|
2008
2009
|
function Tt(e, t) {
|
|
2009
2010
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + we(Math.abs(e) / 60, 2) : C(e, t);
|
|
2010
2011
|
}
|
|
2011
|
-
function
|
|
2012
|
+
function ai(e, t = "") {
|
|
2012
2013
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.floor(r / 60), i = r % 60;
|
|
2013
2014
|
return i === 0 ? n + String(a) : n + String(a) + t + we(i, 2);
|
|
2014
2015
|
}
|
|
@@ -2016,7 +2017,7 @@ function Dt(e) {
|
|
|
2016
2017
|
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
2017
2018
|
return t.setUTCFullYear(e.getFullYear()), +e - +t;
|
|
2018
2019
|
}
|
|
2019
|
-
const sn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Oe = 36e5, xt = 6e4,
|
|
2020
|
+
const sn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Oe = 36e5, xt = 6e4, ii = 2, x = {
|
|
2020
2021
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
2021
2022
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
2022
2023
|
// year tokens
|
|
@@ -2055,7 +2056,7 @@ function Te(e, t = {}) {
|
|
|
2055
2056
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
2056
2057
|
if (e === null)
|
|
2057
2058
|
return /* @__PURE__ */ new Date(NaN);
|
|
2058
|
-
const n = t.additionalDigits == null ?
|
|
2059
|
+
const n = t.additionalDigits == null ? ii : Number(t.additionalDigits);
|
|
2059
2060
|
if (n !== 2 && n !== 1 && n !== 0)
|
|
2060
2061
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2061
2062
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -2064,13 +2065,13 @@ function Te(e, t = {}) {
|
|
|
2064
2065
|
return new Date(e);
|
|
2065
2066
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
2066
2067
|
return /* @__PURE__ */ new Date(NaN);
|
|
2067
|
-
const r =
|
|
2068
|
+
const r = oi(e), { year: a, restDateString: i } = si(r.date, n), o = ci(i, a);
|
|
2068
2069
|
if (o === null || isNaN(o.getTime()))
|
|
2069
2070
|
return /* @__PURE__ */ new Date(NaN);
|
|
2070
2071
|
if (o) {
|
|
2071
2072
|
const s = o.getTime();
|
|
2072
2073
|
let c = 0, u;
|
|
2073
|
-
if (r.time && (c =
|
|
2074
|
+
if (r.time && (c = ui(r.time), c === null || isNaN(c)))
|
|
2074
2075
|
return /* @__PURE__ */ new Date(NaN);
|
|
2075
2076
|
if (r.timeZone || t.timeZone) {
|
|
2076
2077
|
if (u = ve(r.timeZone || t.timeZone, new Date(s + c)), isNaN(u))
|
|
@@ -2081,7 +2082,7 @@ function Te(e, t = {}) {
|
|
|
2081
2082
|
} else
|
|
2082
2083
|
return /* @__PURE__ */ new Date(NaN);
|
|
2083
2084
|
}
|
|
2084
|
-
function
|
|
2085
|
+
function oi(e) {
|
|
2085
2086
|
const t = {};
|
|
2086
2087
|
let n = x.dateTimePattern.exec(e), r;
|
|
2087
2088
|
if (n ? (t.date = n[1], r = n[3]) : (n = x.datePattern.exec(e), n ? (t.date = n[1], r = n[2]) : (t.date = null, r = e)), r) {
|
|
@@ -2090,7 +2091,7 @@ function ii(e) {
|
|
|
2090
2091
|
}
|
|
2091
2092
|
return t;
|
|
2092
2093
|
}
|
|
2093
|
-
function
|
|
2094
|
+
function si(e, t) {
|
|
2094
2095
|
if (e) {
|
|
2095
2096
|
const n = x.YYY[t], r = x.YYYYY[t];
|
|
2096
2097
|
let a = x.YYYY.exec(e) || r.exec(e);
|
|
@@ -2113,7 +2114,7 @@ function oi(e, t) {
|
|
|
2113
2114
|
year: null
|
|
2114
2115
|
};
|
|
2115
2116
|
}
|
|
2116
|
-
function
|
|
2117
|
+
function ci(e, t) {
|
|
2117
2118
|
if (t === null)
|
|
2118
2119
|
return null;
|
|
2119
2120
|
let n, r, a;
|
|
@@ -2125,7 +2126,7 @@ function si(e, t) {
|
|
|
2125
2126
|
if (i = x.DDD.exec(e), i) {
|
|
2126
2127
|
n = /* @__PURE__ */ new Date(0);
|
|
2127
2128
|
const o = parseInt(i[1], 10);
|
|
2128
|
-
return
|
|
2129
|
+
return fi(t, o) ? (n.setUTCFullYear(t, 0, o), n) : /* @__PURE__ */ new Date(NaN);
|
|
2129
2130
|
}
|
|
2130
2131
|
if (i = x.MMDD.exec(e), i) {
|
|
2131
2132
|
n = /* @__PURE__ */ new Date(0), r = parseInt(i[1], 10) - 1;
|
|
@@ -2141,7 +2142,7 @@ function si(e, t) {
|
|
|
2141
2142
|
}
|
|
2142
2143
|
return null;
|
|
2143
2144
|
}
|
|
2144
|
-
function
|
|
2145
|
+
function ui(e) {
|
|
2145
2146
|
let t, n, r = x.HH.exec(e);
|
|
2146
2147
|
if (r)
|
|
2147
2148
|
return t = parseFloat(r[1].replace(",", ".")), Ie(t) ? t % 24 * Oe : NaN;
|
|
@@ -2161,7 +2162,7 @@ function bt(e, t, n) {
|
|
|
2161
2162
|
const a = r.getUTCDay() || 7, i = t * 7 + n + 1 - a;
|
|
2162
2163
|
return r.setUTCDate(r.getUTCDate() + i), r;
|
|
2163
2164
|
}
|
|
2164
|
-
const
|
|
2165
|
+
const li = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], mi = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2165
2166
|
function cn(e) {
|
|
2166
2167
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
2167
2168
|
}
|
|
@@ -2172,12 +2173,12 @@ function vt(e, t, n) {
|
|
|
2172
2173
|
if (n < 1)
|
|
2173
2174
|
return !1;
|
|
2174
2175
|
const r = cn(e);
|
|
2175
|
-
if (r && n >
|
|
2176
|
+
if (r && n > mi[t] || !r && n > li[t])
|
|
2176
2177
|
return !1;
|
|
2177
2178
|
}
|
|
2178
2179
|
return !0;
|
|
2179
2180
|
}
|
|
2180
|
-
function
|
|
2181
|
+
function fi(e, t) {
|
|
2181
2182
|
if (t < 1)
|
|
2182
2183
|
return !1;
|
|
2183
2184
|
const n = cn(e);
|
|
@@ -2189,22 +2190,22 @@ function St(e, t) {
|
|
|
2189
2190
|
function Ie(e, t, n) {
|
|
2190
2191
|
return !(e < 0 || e >= 25 || t != null && (t < 0 || t >= 60) || n != null && (n < 0 || n >= 60));
|
|
2191
2192
|
}
|
|
2192
|
-
const
|
|
2193
|
-
function
|
|
2193
|
+
const di = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
2194
|
+
function hi(e, t, n = {}) {
|
|
2194
2195
|
t = String(t);
|
|
2195
|
-
const r = t.match(
|
|
2196
|
+
const r = t.match(di);
|
|
2196
2197
|
if (r) {
|
|
2197
2198
|
const a = Te(n.originalDate || e, n);
|
|
2198
2199
|
t = r.reduce(function(i, o) {
|
|
2199
2200
|
if (o[0] === "'")
|
|
2200
2201
|
return i;
|
|
2201
|
-
const s = i.indexOf(o), c = i[s - 1] === "'", u = i.replace(o, "'" +
|
|
2202
|
+
const s = i.indexOf(o), c = i[s - 1] === "'", u = i.replace(o, "'" + ri[o[0]](a, o, n) + "'");
|
|
2202
2203
|
return c ? u.substring(0, s - 1) + u.substring(s + 1) : u;
|
|
2203
2204
|
}, t);
|
|
2204
2205
|
}
|
|
2205
2206
|
return Ke(e, t, n);
|
|
2206
2207
|
}
|
|
2207
|
-
function
|
|
2208
|
+
function gi(e, t, n) {
|
|
2208
2209
|
e = Te(e, n);
|
|
2209
2210
|
const r = ve(t, e, !0), a = new Date(e.getTime() - r), i = /* @__PURE__ */ new Date(0);
|
|
2210
2211
|
return i.setFullYear(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()), i.setHours(a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds()), i;
|
|
@@ -2214,7 +2215,7 @@ function un(e, t, n, r) {
|
|
|
2214
2215
|
...r,
|
|
2215
2216
|
timeZone: t,
|
|
2216
2217
|
originalDate: e
|
|
2217
|
-
},
|
|
2218
|
+
}, hi(gi(e, t, { timeZone: r.timeZone }), n, r);
|
|
2218
2219
|
}
|
|
2219
2220
|
function te(e, t, n) {
|
|
2220
2221
|
if (typeof e == "string" && !e.match(sn))
|
|
@@ -2223,10 +2224,10 @@ function te(e, t, n) {
|
|
|
2223
2224
|
const r = Ve(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), a = ve(t, new Date(r));
|
|
2224
2225
|
return new Date(r + a);
|
|
2225
2226
|
}
|
|
2226
|
-
function
|
|
2227
|
+
function Ns(e, t) {
|
|
2227
2228
|
return e && e !== "auto" ? e : t;
|
|
2228
2229
|
}
|
|
2229
|
-
function
|
|
2230
|
+
function $s(e, t = /* @__PURE__ */ new Date()) {
|
|
2230
2231
|
try {
|
|
2231
2232
|
const n = {
|
|
2232
2233
|
timeZone: e,
|
|
@@ -2237,7 +2238,7 @@ function _s(e, t = /* @__PURE__ */ new Date()) {
|
|
|
2237
2238
|
return e;
|
|
2238
2239
|
}
|
|
2239
2240
|
}
|
|
2240
|
-
function
|
|
2241
|
+
function Fs(e) {
|
|
2241
2242
|
try {
|
|
2242
2243
|
const t = {
|
|
2243
2244
|
timeZone: e,
|
|
@@ -2264,20 +2265,20 @@ function Be(e, t = "auto") {
|
|
|
2264
2265
|
return new Date(e);
|
|
2265
2266
|
} else return t === "UTC" ? n ? new Date(e) : r ? new Date(e) : /* @__PURE__ */ new Date(e + "Z") : n || r || a ? new Date(e) : te(e, t);
|
|
2266
2267
|
}
|
|
2267
|
-
const
|
|
2268
|
+
const yi = "MM/dd/yyyy", pi = (e, t, n, r = "auto") => {
|
|
2268
2269
|
if (!e)
|
|
2269
2270
|
return "";
|
|
2270
2271
|
try {
|
|
2271
2272
|
const a = Be(e, r);
|
|
2272
2273
|
if (isNaN(a.getTime()))
|
|
2273
2274
|
return e;
|
|
2274
|
-
const o = (t && t.trim() ? t :
|
|
2275
|
+
const o = (t && t.trim() ? t : yi).replace(/LLLL/g, "MMMM").replace(/LLL/g, "MMM");
|
|
2275
2276
|
return n && n !== "auto" ? un(a, n, o) : Ke(a, o);
|
|
2276
2277
|
} catch (a) {
|
|
2277
2278
|
return console.error("Date formatting error:", a), e;
|
|
2278
2279
|
}
|
|
2279
2280
|
};
|
|
2280
|
-
function
|
|
2281
|
+
function Os(e, t, n = "auto") {
|
|
2281
2282
|
if (e)
|
|
2282
2283
|
try {
|
|
2283
2284
|
const r = Be(e, n);
|
|
@@ -2288,25 +2289,25 @@ function $s(e, t, n = "auto") {
|
|
|
2288
2289
|
return;
|
|
2289
2290
|
}
|
|
2290
2291
|
}
|
|
2291
|
-
const
|
|
2292
|
+
const wi = (e, t = "auto") => {
|
|
2292
2293
|
if (!e)
|
|
2293
2294
|
return "";
|
|
2294
2295
|
try {
|
|
2295
2296
|
const n = Be(e, t);
|
|
2296
|
-
return isNaN(n.getTime()) ? e :
|
|
2297
|
+
return isNaN(n.getTime()) ? e : ka(n, { addSuffix: !0 });
|
|
2297
2298
|
} catch (n) {
|
|
2298
2299
|
return console.error("Relative time formatting error:", n), e;
|
|
2299
2300
|
}
|
|
2300
2301
|
};
|
|
2301
|
-
function
|
|
2302
|
+
function Ti(e, t, n, r) {
|
|
2302
2303
|
const a = e instanceof Date ? e.toISOString() : String(e), i = (r == null ? void 0 : r.browserTimezone) || n, o = (r == null ? void 0 : r.isSqlCard) ?? !1;
|
|
2303
2304
|
if (t != null && t.useRelativeTime)
|
|
2304
|
-
return
|
|
2305
|
+
return wi(
|
|
2305
2306
|
a,
|
|
2306
2307
|
(t == null ? void 0 : t.sourceTimezone) || "auto"
|
|
2307
2308
|
);
|
|
2308
2309
|
const s = t != null && t.useCustomFormat && (t != null && t.customFormat) ? t.customFormat : (t == null ? void 0 : t.format) || "MM/dd/yyyy";
|
|
2309
|
-
return
|
|
2310
|
+
return pi(
|
|
2310
2311
|
a,
|
|
2311
2312
|
s,
|
|
2312
2313
|
t != null && t.timezone && (t == null ? void 0 : t.timezone) !== "auto" ? t.timezone : o ? i : n,
|
|
@@ -2322,13 +2323,13 @@ function ln(e, t, n) {
|
|
|
2322
2323
|
return String(a);
|
|
2323
2324
|
switch (t.type) {
|
|
2324
2325
|
case "number":
|
|
2325
|
-
return i !== void 0 ?
|
|
2326
|
+
return i !== void 0 ? mr(
|
|
2326
2327
|
i,
|
|
2327
2328
|
t.numberFormat,
|
|
2328
2329
|
n.locale
|
|
2329
2330
|
) : String(a);
|
|
2330
2331
|
case "date":
|
|
2331
|
-
return
|
|
2332
|
+
return Ti(
|
|
2332
2333
|
a,
|
|
2333
2334
|
t.dateFormat,
|
|
2334
2335
|
n.timezone,
|
|
@@ -2347,7 +2348,7 @@ function ln(e, t, n) {
|
|
|
2347
2348
|
return String(a);
|
|
2348
2349
|
}
|
|
2349
2350
|
}
|
|
2350
|
-
function
|
|
2351
|
+
function Is(e, t) {
|
|
2351
2352
|
return t.visibleColumns.map((n) => {
|
|
2352
2353
|
const r = e[n], a = t.columnSettings[n];
|
|
2353
2354
|
return ln(r, a, {
|
|
@@ -2357,43 +2358,43 @@ function Fs(e, t) {
|
|
|
2357
2358
|
});
|
|
2358
2359
|
});
|
|
2359
2360
|
}
|
|
2360
|
-
const
|
|
2361
|
+
const Di = 5 * 1024 * 1024, Es = 64 * 1024 * 1024, De = w.number().int().positive().max(Number.MAX_SAFE_INTEGER), le = w.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER), xe = le.refine((e) => e > 0), xi = (e) => !!e && e !== "." && e !== ".." && !e.includes("/") && !e.includes("\\");
|
|
2361
2362
|
function P(e, t) {
|
|
2362
2363
|
const n = t.split("/");
|
|
2363
|
-
if (n.length !== 5 || n[0] !== "exports" || n[1] !== e || n[2] !== "attempts" || !n.every(
|
|
2364
|
+
if (n.length !== 5 || n[0] !== "exports" || n[1] !== e || n[2] !== "attempts" || !n.every(xi))
|
|
2364
2365
|
throw new Error("Invalid Matrix export artifact namespace.");
|
|
2365
2366
|
return { attemptId: n[3], filename: n[4] };
|
|
2366
2367
|
}
|
|
2367
|
-
function
|
|
2368
|
+
function Cs(e, t, n) {
|
|
2368
2369
|
const r = `exports/${e}/attempts/${t}/${n}`;
|
|
2369
2370
|
return P(e, r), r;
|
|
2370
2371
|
}
|
|
2371
|
-
const
|
|
2372
|
+
const Ps = w.object({
|
|
2372
2373
|
acquisition: w.literal("continuation"),
|
|
2373
2374
|
jobId: w.string().min(1),
|
|
2374
2375
|
sequence: xe,
|
|
2375
2376
|
deadlineAt: De
|
|
2376
|
-
}),
|
|
2377
|
+
}), bi = [
|
|
2377
2378
|
"application/json",
|
|
2378
2379
|
...Rt.map((e) => Lt(e).partContentType)
|
|
2379
|
-
],
|
|
2380
|
+
], vi = w.object({
|
|
2380
2381
|
key: w.string(),
|
|
2381
2382
|
content: w.string(),
|
|
2382
|
-
contentType: w.enum(
|
|
2383
|
+
contentType: w.enum(bi),
|
|
2383
2384
|
encoding: w.literal("gzip-base64").optional()
|
|
2384
2385
|
// Transport-only compression: JSON (layout, sheet layout) and Excel rows. CSV travels as it always has.
|
|
2385
|
-
}).refine((e) => !e.encoding || e.contentType === "application/json" || e.contentType === Lt("xlsx").partContentType, "Unsupported Matrix artifact encoding."),
|
|
2386
|
-
w.object({ kind: w.literal("work"), sequence: xe, checkpointKey: w.string(), objects: w.array(
|
|
2386
|
+
}).refine((e) => !e.encoding || e.contentType === "application/json" || e.contentType === Lt("xlsx").partContentType, "Unsupported Matrix artifact encoding."), Si = w.discriminatedUnion("kind", [
|
|
2387
|
+
w.object({ kind: w.literal("work"), sequence: xe, checkpointKey: w.string(), objects: w.array(vi).min(2).max(4), deadlineAt: De }),
|
|
2387
2388
|
w.object({ kind: w.literal("committed"), sequence: xe, done: w.boolean(), deadlineAt: De })
|
|
2388
2389
|
]);
|
|
2389
|
-
function
|
|
2390
|
+
function Mi(e) {
|
|
2390
2391
|
const t = JSON.stringify(e);
|
|
2391
|
-
if (t === void 0 || new TextEncoder().encode(t).byteLength >
|
|
2392
|
+
if (t === void 0 || new TextEncoder().encode(t).byteLength > Di)
|
|
2392
2393
|
throw new RangeError("Matrix export batch exceeds its transport byte limit.");
|
|
2393
2394
|
}
|
|
2394
|
-
function
|
|
2395
|
-
const n =
|
|
2396
|
-
if (
|
|
2395
|
+
function Ys(e, t) {
|
|
2396
|
+
const n = Si.parse(e);
|
|
2397
|
+
if (Mi(e), n.deadlineAt !== t.deadlineAt) throw new Error("Matrix deadline does not match the job.");
|
|
2397
2398
|
if (n.sequence !== t.sequence + (n.kind === "committed" ? 1 : 0))
|
|
2398
2399
|
throw new Error("Invalid Matrix batch sequence.");
|
|
2399
2400
|
if (n.kind === "work") {
|
|
@@ -2403,7 +2404,7 @@ function Cs(e, t) {
|
|
|
2403
2404
|
}
|
|
2404
2405
|
return n;
|
|
2405
2406
|
}
|
|
2406
|
-
const
|
|
2407
|
+
const ki = w.object({
|
|
2407
2408
|
acquisition: w.literal("continuation"),
|
|
2408
2409
|
deadlineAt: De,
|
|
2409
2410
|
chunks: w.array(w.object({ chunkNumber: xe, dataKey: w.string() })).min(1),
|
|
@@ -2416,15 +2417,15 @@ const Mi = w.object({
|
|
|
2416
2417
|
/** Excel only: the sheet layout the layout batch stored, which compaction wraps the rows in. */
|
|
2417
2418
|
sheetKey: w.string().min(1).optional()
|
|
2418
2419
|
}).refine((e) => e.fileKey === void 0 == (e.fileSize === void 0), "Incomplete published Matrix artifact.").refine((e) => e.format === "xlsx" == (e.sheetKey !== void 0), "An Excel Matrix manifest names its sheet layout, and only it does.");
|
|
2419
|
-
function
|
|
2420
|
-
const r =
|
|
2420
|
+
function zs(e, t, n) {
|
|
2421
|
+
const r = ki.parse(e);
|
|
2421
2422
|
if (r.deadlineAt !== n) throw new Error("Matrix deadline does not match the job.");
|
|
2422
2423
|
return r.chunks.forEach((a, i) => {
|
|
2423
2424
|
if (a.chunkNumber !== i + 1) throw new Error("Invalid committed Matrix chunk order.");
|
|
2424
2425
|
P(t, a.dataKey);
|
|
2425
2426
|
}), r.fileKey !== void 0 && P(t, r.fileKey), r.sheetKey !== void 0 && P(t, r.sheetKey), r;
|
|
2426
2427
|
}
|
|
2427
|
-
const
|
|
2428
|
+
const _i = "en-US", Mt = [
|
|
2428
2429
|
"compact",
|
|
2429
2430
|
"maximumFractionDigits",
|
|
2430
2431
|
"minimumFractionDigits",
|
|
@@ -2432,7 +2433,7 @@ const ki = "en-US", Mt = [
|
|
|
2432
2433
|
"type",
|
|
2433
2434
|
"useGrouping"
|
|
2434
2435
|
];
|
|
2435
|
-
function
|
|
2436
|
+
function Ni(e) {
|
|
2436
2437
|
if (e.type !== "currency" || Object.prototype.hasOwnProperty.call(e, "currency") || Object.prototype.hasOwnProperty.call(e, "locale"))
|
|
2437
2438
|
return !1;
|
|
2438
2439
|
const t = Object.keys(e).sort();
|
|
@@ -2451,10 +2452,10 @@ function me(e) {
|
|
|
2451
2452
|
if (!(typeof e != "number" || !Number.isFinite(e)))
|
|
2452
2453
|
return Math.max(0, Math.min(10, Math.trunc(e)));
|
|
2453
2454
|
}
|
|
2454
|
-
function
|
|
2455
|
+
function $i(e) {
|
|
2455
2456
|
return e === "currency" ? 2 : e === "percent" ? 1 : e === "scientific" ? 2 : 0;
|
|
2456
2457
|
}
|
|
2457
|
-
function
|
|
2458
|
+
function Fi(e, t, n) {
|
|
2458
2459
|
const r = me(t.minimumFractionDigits), a = me(t.maximumFractionDigits);
|
|
2459
2460
|
if (typeof r == "number" || typeof a == "number") {
|
|
2460
2461
|
const s = r ?? 0, c = a ?? Math.max(s, 2);
|
|
@@ -2471,18 +2472,18 @@ function $i(e, t, n) {
|
|
|
2471
2472
|
};
|
|
2472
2473
|
if (n != null && n.preserveOmittedProperties)
|
|
2473
2474
|
return {};
|
|
2474
|
-
const o =
|
|
2475
|
+
const o = $i(e);
|
|
2475
2476
|
return {
|
|
2476
2477
|
minimumFractionDigits: o,
|
|
2477
2478
|
maximumFractionDigits: o
|
|
2478
2479
|
};
|
|
2479
2480
|
}
|
|
2480
|
-
function
|
|
2481
|
+
function Oi(e, t) {
|
|
2481
2482
|
if (!(typeof t != "string" || e === "percent" && t === "%"))
|
|
2482
2483
|
return t;
|
|
2483
2484
|
}
|
|
2484
2485
|
function _t(e) {
|
|
2485
|
-
const t = kt(e.locale), n = kt(e.currency), r =
|
|
2486
|
+
const t = kt(e.locale), n = kt(e.currency), r = Oi(e.type, e.suffix);
|
|
2486
2487
|
return {
|
|
2487
2488
|
...e,
|
|
2488
2489
|
...t !== e.locale ? { locale: t } : {},
|
|
@@ -2494,7 +2495,7 @@ function F(e, t, n) {
|
|
|
2494
2495
|
const r = { ...t, type: e };
|
|
2495
2496
|
if ((n == null ? void 0 : n.numericInput) === "canonical" && J(r))
|
|
2496
2497
|
return _t(r);
|
|
2497
|
-
const a =
|
|
2498
|
+
const a = Fi(e, t, n), i = typeof t.prefix == "string" ? t.prefix : void 0, o = {
|
|
2498
2499
|
type: e,
|
|
2499
2500
|
locale: t.locale,
|
|
2500
2501
|
minimumFractionDigits: a.minimumFractionDigits,
|
|
@@ -2512,7 +2513,7 @@ function F(e, t, n) {
|
|
|
2512
2513
|
function Nt(e) {
|
|
2513
2514
|
return {
|
|
2514
2515
|
type: "date",
|
|
2515
|
-
locale: e.locale ||
|
|
2516
|
+
locale: e.locale || _i,
|
|
2516
2517
|
pattern: e.pattern,
|
|
2517
2518
|
// A stored pattern's token set and a preset carry to every reader (column formats ledger P5-45).
|
|
2518
2519
|
...e.dialect ? { dialect: e.dialect } : {},
|
|
@@ -2548,7 +2549,7 @@ function Ft(e) {
|
|
|
2548
2549
|
suffix: e.suffix
|
|
2549
2550
|
};
|
|
2550
2551
|
}
|
|
2551
|
-
function
|
|
2552
|
+
function Ii(e, t) {
|
|
2552
2553
|
if (!e)
|
|
2553
2554
|
return;
|
|
2554
2555
|
if (typeof e == "string") {
|
|
@@ -2599,7 +2600,7 @@ function Oi(e, t) {
|
|
|
2599
2600
|
n,
|
|
2600
2601
|
t
|
|
2601
2602
|
);
|
|
2602
|
-
return
|
|
2603
|
+
return Ni(n) ? { ...r, currency: "USD" } : r;
|
|
2603
2604
|
}
|
|
2604
2605
|
if (n.type === "date")
|
|
2605
2606
|
return Nt(n);
|
|
@@ -2608,8 +2609,8 @@ function Oi(e, t) {
|
|
|
2608
2609
|
if (n.type === "string")
|
|
2609
2610
|
return Ft(n);
|
|
2610
2611
|
}
|
|
2611
|
-
const
|
|
2612
|
-
function
|
|
2612
|
+
const Ei = Object.freeze({ source: "automatic" });
|
|
2613
|
+
function Ci(e, t) {
|
|
2613
2614
|
var r, a;
|
|
2614
2615
|
const n = e.preferences;
|
|
2615
2616
|
switch (t) {
|
|
@@ -2632,11 +2633,11 @@ function Ot(e, t) {
|
|
|
2632
2633
|
...n.pivotByColumns ?? []
|
|
2633
2634
|
].find((r) => r.id === t);
|
|
2634
2635
|
}
|
|
2635
|
-
function
|
|
2636
|
+
function Pi(e, t) {
|
|
2636
2637
|
if (t.kind === "field") return Ot(e, t.fieldId);
|
|
2637
2638
|
if (t.kind === "pivot") return Ot(e, t.metricId);
|
|
2638
2639
|
}
|
|
2639
|
-
function
|
|
2640
|
+
function Yi(e, t, n) {
|
|
2640
2641
|
var r, a, i, o, s, c, u, l, f;
|
|
2641
2642
|
switch (t.kind) {
|
|
2642
2643
|
case "field":
|
|
@@ -2652,50 +2653,50 @@ function Pi(e, t, n) {
|
|
|
2652
2653
|
return (f = (l = e.config) == null ? void 0 : l.matrix) == null ? void 0 : f.presentation.levelFormats[t.levelId];
|
|
2653
2654
|
}
|
|
2654
2655
|
}
|
|
2655
|
-
function
|
|
2656
|
+
function zi(e) {
|
|
2656
2657
|
if (!e) return;
|
|
2657
2658
|
if (e.format && e.formatOrigin !== "override") return e.format;
|
|
2658
2659
|
const t = e.semanticTemporalPresentation;
|
|
2659
2660
|
return t && t.granularity === e.granularity ? t.format : void 0;
|
|
2660
2661
|
}
|
|
2661
2662
|
function Xe(e) {
|
|
2662
|
-
return e.surface ? { format: e.surface, source: "surface" } : e.override ? { format: e.override, source: "override" } : e.model ? { format: e.model, source: "model" } : e.snapshot ? { format: e.snapshot, source: "snapshot" } :
|
|
2663
|
+
return e.surface ? { format: e.surface, source: "surface" } : e.override ? { format: e.override, source: "override" } : e.model ? { format: e.model, source: "model" } : e.snapshot ? { format: e.snapshot, source: "snapshot" } : Ei;
|
|
2663
2664
|
}
|
|
2664
|
-
function
|
|
2665
|
+
function Ui(e) {
|
|
2665
2666
|
var o;
|
|
2666
|
-
const { card: t, column: n, surface: r } = e, a =
|
|
2667
|
+
const { card: t, column: n, surface: r } = e, a = Pi(t, n), i = n.kind === "field" ? n.fieldId : n.kind === "pivot" ? n.metricId : void 0;
|
|
2667
2668
|
return Xe({
|
|
2668
|
-
surface: r ?
|
|
2669
|
-
override:
|
|
2669
|
+
surface: r ? Ci(t, r) : void 0,
|
|
2670
|
+
override: Yi(t, n, a),
|
|
2670
2671
|
model: (i !== void 0 ? (o = e.modelFormats) == null ? void 0 : o[i] : void 0) ?? e.catalogFormat,
|
|
2671
|
-
snapshot:
|
|
2672
|
+
snapshot: zi(a)
|
|
2672
2673
|
});
|
|
2673
2674
|
}
|
|
2674
|
-
function
|
|
2675
|
+
function Ai(e, t) {
|
|
2675
2676
|
const n = (r) => r && typeof r == "object" && !Array.isArray(r) ? Object.fromEntries(
|
|
2676
2677
|
Object.keys(r).sort().map((a) => [a, n(r[a])])
|
|
2677
2678
|
) : r;
|
|
2678
2679
|
return JSON.stringify(n(e)) === JSON.stringify(n(t));
|
|
2679
2680
|
}
|
|
2680
|
-
const
|
|
2681
|
-
function
|
|
2681
|
+
const Ri = ["metricColumns", "groupByColumns", "detailColumns", "pivotByColumns"], It = /* @__PURE__ */ new WeakMap();
|
|
2682
|
+
function Us(e, t) {
|
|
2682
2683
|
const n = t == null ? void 0 : t.modelFormats;
|
|
2683
2684
|
if (!e || !n || Object.keys(n).length === 0) return e;
|
|
2684
2685
|
let r = It.get(e);
|
|
2685
2686
|
if (r || It.set(e, r = /* @__PURE__ */ new WeakMap()), r.has(n)) return r.get(n);
|
|
2686
|
-
const a =
|
|
2687
|
+
const a = Li(e, n);
|
|
2687
2688
|
return r.set(n, a), a;
|
|
2688
2689
|
}
|
|
2689
|
-
function
|
|
2690
|
+
function Li(e, t) {
|
|
2690
2691
|
const n = { config: e };
|
|
2691
2692
|
let r;
|
|
2692
|
-
for (const a of
|
|
2693
|
+
for (const a of Ri) {
|
|
2693
2694
|
const i = e[a];
|
|
2694
2695
|
if (!(i != null && i.length)) continue;
|
|
2695
2696
|
let o = !1;
|
|
2696
2697
|
const s = i.map((c) => {
|
|
2697
|
-
const u =
|
|
2698
|
-
return u.source !== "model" ||
|
|
2698
|
+
const u = Ui({ card: n, column: { kind: "field", fieldId: c.id }, modelFormats: t });
|
|
2699
|
+
return u.source !== "model" || Ai(u.format, c.format) ? c : (o = !0, { ...c, format: u.format });
|
|
2699
2700
|
});
|
|
2700
2701
|
o && ((r ?? (r = { ...e }))[a] = s);
|
|
2701
2702
|
}
|
|
@@ -2712,7 +2713,7 @@ function T(e) {
|
|
|
2712
2713
|
) ? t.constructor : void 0;
|
|
2713
2714
|
return typeof n == "function" && Function.prototype.toString.call(n) === Function.prototype.toString.call(Object);
|
|
2714
2715
|
}
|
|
2715
|
-
const
|
|
2716
|
+
const Wi = [
|
|
2716
2717
|
"type",
|
|
2717
2718
|
"locale",
|
|
2718
2719
|
"minimumFractionDigits",
|
|
@@ -2727,13 +2728,13 @@ const Li = [
|
|
|
2727
2728
|
"percentValueMode",
|
|
2728
2729
|
"signDisplay"
|
|
2729
2730
|
];
|
|
2730
|
-
function
|
|
2731
|
+
function ji(e) {
|
|
2731
2732
|
if (!T(e))
|
|
2732
2733
|
return {
|
|
2733
2734
|
ok: !1,
|
|
2734
2735
|
issues: [{ path: "$", message: "Numeric format must be an object." }]
|
|
2735
2736
|
};
|
|
2736
|
-
const t = [], n = new Set(
|
|
2737
|
+
const t = [], n = new Set(Wi);
|
|
2737
2738
|
Object.keys(e).filter((i) => !n.has(i)).forEach(
|
|
2738
2739
|
(i) => t.push({ path: i, message: `Unknown property "${i}".` })
|
|
2739
2740
|
), e.type !== "number" && e.type !== "currency" && e.type !== "percent" && e.type !== "scientific" && t.push({
|
|
@@ -2796,8 +2797,8 @@ function Wi(e) {
|
|
|
2796
2797
|
}
|
|
2797
2798
|
};
|
|
2798
2799
|
}
|
|
2799
|
-
function
|
|
2800
|
-
const t =
|
|
2800
|
+
function Hi(e) {
|
|
2801
|
+
const t = ji(e);
|
|
2801
2802
|
if (!t.ok)
|
|
2802
2803
|
return t;
|
|
2803
2804
|
const n = [];
|
|
@@ -2815,7 +2816,7 @@ function ji(e) {
|
|
|
2815
2816
|
message: "Resolved currency formats require an explicit currency."
|
|
2816
2817
|
}), n.length > 0 ? { ok: !1, issues: n } : t;
|
|
2817
2818
|
}
|
|
2818
|
-
function
|
|
2819
|
+
function As(e) {
|
|
2819
2820
|
var r;
|
|
2820
2821
|
const t = /* @__PURE__ */ new Set();
|
|
2821
2822
|
if (e.snapshot.resolvedFormats.forEach((a, i) => {
|
|
@@ -2852,7 +2853,7 @@ function zs(e) {
|
|
|
2852
2853
|
`resolvedFormats is missing visible export column "${n}"`
|
|
2853
2854
|
);
|
|
2854
2855
|
}
|
|
2855
|
-
function
|
|
2856
|
+
function qi(e, t) {
|
|
2856
2857
|
const n = new Intl.NumberFormat(e, {
|
|
2857
2858
|
style: "currency",
|
|
2858
2859
|
currency: t
|
|
@@ -2862,7 +2863,7 @@ function Hi(e, t) {
|
|
|
2862
2863
|
maximumFractionDigits: n.maximumFractionDigits
|
|
2863
2864
|
};
|
|
2864
2865
|
}
|
|
2865
|
-
function
|
|
2866
|
+
function Zi(e) {
|
|
2866
2867
|
if (e.minimumFractionDigits !== void 0 || e.maximumFractionDigits !== void 0) {
|
|
2867
2868
|
const n = e.minimumFractionDigits ?? 0;
|
|
2868
2869
|
return {
|
|
@@ -2876,15 +2877,15 @@ function qi(e) {
|
|
|
2876
2877
|
maximumFractionDigits: t
|
|
2877
2878
|
};
|
|
2878
2879
|
}
|
|
2879
|
-
function
|
|
2880
|
+
function Ki(e, t, n) {
|
|
2880
2881
|
const r = Q(e.locale) ?? t.locale, a = e.type === "number" || e.type === "currency" ? Ue(n) : void 0;
|
|
2881
2882
|
if (!(e.type === "currency" || a !== void 0))
|
|
2882
2883
|
return {
|
|
2883
2884
|
...e,
|
|
2884
2885
|
locale: r,
|
|
2885
|
-
...
|
|
2886
|
+
...Zi(e)
|
|
2886
2887
|
};
|
|
2887
|
-
const o = a ?? Ue(e.currency) ?? t.defaultCurrency, s =
|
|
2888
|
+
const o = a ?? Ue(e.currency) ?? t.defaultCurrency, s = qi(
|
|
2888
2889
|
r,
|
|
2889
2890
|
o
|
|
2890
2891
|
), c = s.minimumFractionDigits ?? 0, u = s.maximumFractionDigits ?? c, l = e.minimumFractionDigits ?? Math.min(
|
|
@@ -2903,7 +2904,7 @@ function Zi(e, t, n) {
|
|
|
2903
2904
|
maximumFractionDigits: f
|
|
2904
2905
|
};
|
|
2905
2906
|
}
|
|
2906
|
-
const
|
|
2907
|
+
const Vi = [
|
|
2907
2908
|
"YYYY",
|
|
2908
2909
|
"MMMM",
|
|
2909
2910
|
"MMM",
|
|
@@ -2913,7 +2914,7 @@ const Ki = [
|
|
|
2913
2914
|
"HH",
|
|
2914
2915
|
"mm",
|
|
2915
2916
|
"ss"
|
|
2916
|
-
],
|
|
2917
|
+
], Bi = /* @__PURE__ */ new Set([" ", "-", "/", ":", ".", ",", "T"]), se = [
|
|
2917
2918
|
"day",
|
|
2918
2919
|
"week",
|
|
2919
2920
|
"month",
|
|
@@ -2931,11 +2932,11 @@ const Ki = [
|
|
|
2931
2932
|
numeric: se,
|
|
2932
2933
|
iso: se
|
|
2933
2934
|
};
|
|
2934
|
-
function
|
|
2935
|
+
function Xi(e) {
|
|
2935
2936
|
return typeof e == "string" && Object.prototype.hasOwnProperty.call(mn, e);
|
|
2936
2937
|
}
|
|
2937
|
-
function
|
|
2938
|
-
return
|
|
2938
|
+
function Gi(e, t) {
|
|
2939
|
+
return Vi.find(
|
|
2939
2940
|
(n) => e.startsWith(n, t)
|
|
2940
2941
|
);
|
|
2941
2942
|
}
|
|
@@ -2950,7 +2951,7 @@ function ne(e) {
|
|
|
2950
2951
|
const t = [];
|
|
2951
2952
|
let n = 0, r = !1;
|
|
2952
2953
|
for (; n < e.length; ) {
|
|
2953
|
-
const i =
|
|
2954
|
+
const i = Gi(e, n);
|
|
2954
2955
|
if (i) {
|
|
2955
2956
|
if (r)
|
|
2956
2957
|
return {
|
|
@@ -2962,7 +2963,7 @@ function ne(e) {
|
|
|
2962
2963
|
continue;
|
|
2963
2964
|
}
|
|
2964
2965
|
const o = e[n];
|
|
2965
|
-
if (!
|
|
2966
|
+
if (!Bi.has(o))
|
|
2966
2967
|
return {
|
|
2967
2968
|
ok: !1,
|
|
2968
2969
|
code: "invalid_temporal_bucket_pattern",
|
|
@@ -2983,7 +2984,7 @@ function ne(e) {
|
|
|
2983
2984
|
message: "Temporal bucket patterns cannot end with a separator."
|
|
2984
2985
|
} : { ok: !0, segments: t };
|
|
2985
2986
|
}
|
|
2986
|
-
function
|
|
2987
|
+
function Qi(e) {
|
|
2987
2988
|
return e.flatMap(
|
|
2988
2989
|
(t) => t.kind === "token" ? [t.value] : []
|
|
2989
2990
|
);
|
|
@@ -2994,11 +2995,11 @@ function Et(e, t) {
|
|
|
2994
2995
|
function ce(e, t) {
|
|
2995
2996
|
return e.some((n) => t.includes(n));
|
|
2996
2997
|
}
|
|
2997
|
-
function
|
|
2998
|
+
function Ji(e) {
|
|
2998
2999
|
return new Set(e).size !== e.length;
|
|
2999
3000
|
}
|
|
3000
|
-
function
|
|
3001
|
-
if (
|
|
3001
|
+
function eo(e, t) {
|
|
3002
|
+
if (Ji(e)) return !1;
|
|
3002
3003
|
const n = ["YYYY", "YY"], r = ["MMMM", "MMM", "MM"], a = ["HH", "mm", "ss"], i = Et(e, n), o = Et(e, r), s = e.includes("DD"), c = ce(e, a);
|
|
3003
3004
|
switch (t) {
|
|
3004
3005
|
case "second":
|
|
@@ -3030,8 +3031,8 @@ function fn(e, t) {
|
|
|
3030
3031
|
};
|
|
3031
3032
|
}
|
|
3032
3033
|
const n = ne(e.presentation.pattern);
|
|
3033
|
-
return n.ok ?
|
|
3034
|
-
|
|
3034
|
+
return n.ok ? eo(
|
|
3035
|
+
Qi(n.segments),
|
|
3035
3036
|
t
|
|
3036
3037
|
) ? { ok: !0, segments: n.segments } : {
|
|
3037
3038
|
ok: !1,
|
|
@@ -3039,11 +3040,11 @@ function fn(e, t) {
|
|
|
3039
3040
|
message: `Pattern ${e.presentation.pattern} is not compatible with ${t} granularity.`
|
|
3040
3041
|
} : n;
|
|
3041
3042
|
}
|
|
3042
|
-
function
|
|
3043
|
+
function Rs(e, t) {
|
|
3043
3044
|
if (!(!e || !t))
|
|
3044
3045
|
return fn(e, t).ok ? e : void 0;
|
|
3045
3046
|
}
|
|
3046
|
-
function
|
|
3047
|
+
function to(e) {
|
|
3047
3048
|
return e.preset ? { mode: "preset", preset: e.preset } : e.pattern ? { mode: "pattern", dialect: e.dialect ?? "semaphor_tokens", pattern: e.pattern } : { mode: "auto" };
|
|
3048
3049
|
}
|
|
3049
3050
|
class A extends Error {
|
|
@@ -3053,7 +3054,7 @@ class A extends Error {
|
|
|
3053
3054
|
this.name = "RawTemporalFormatContractError", this.code = n;
|
|
3054
3055
|
}
|
|
3055
3056
|
}
|
|
3056
|
-
const
|
|
3057
|
+
const no = [
|
|
3057
3058
|
"SSSSSSSSS",
|
|
3058
3059
|
"SSSSSSSS",
|
|
3059
3060
|
"SSSSSSS",
|
|
@@ -3063,7 +3064,7 @@ const to = [
|
|
|
3063
3064
|
"SSS",
|
|
3064
3065
|
"SS",
|
|
3065
3066
|
"S"
|
|
3066
|
-
],
|
|
3067
|
+
], ro = [
|
|
3067
3068
|
"yyyy",
|
|
3068
3069
|
"MMMM",
|
|
3069
3070
|
"LLLL",
|
|
@@ -3085,7 +3086,7 @@ const to = [
|
|
|
3085
3086
|
"m",
|
|
3086
3087
|
"s",
|
|
3087
3088
|
"a"
|
|
3088
|
-
],
|
|
3089
|
+
], ao = /* @__PURE__ */ new Set([
|
|
3089
3090
|
"HH",
|
|
3090
3091
|
"H",
|
|
3091
3092
|
"hh",
|
|
@@ -3095,8 +3096,8 @@ const to = [
|
|
|
3095
3096
|
"ss",
|
|
3096
3097
|
"s",
|
|
3097
3098
|
"a",
|
|
3098
|
-
...
|
|
3099
|
-
]),
|
|
3099
|
+
...no
|
|
3100
|
+
]), io = /* @__PURE__ */ new Set(["zzz", "XXX"]), Ce = /* @__PURE__ */ new Set(["short", "medium", "long"]);
|
|
3100
3101
|
function M(e, t) {
|
|
3101
3102
|
return Object.keys(e).length === t.length && t.every((r) => r in e);
|
|
3102
3103
|
}
|
|
@@ -3153,7 +3154,7 @@ function dn(e) {
|
|
|
3153
3154
|
}), r = o;
|
|
3154
3155
|
continue;
|
|
3155
3156
|
}
|
|
3156
|
-
const a =
|
|
3157
|
+
const a = ro.find(
|
|
3157
3158
|
(o) => e.startsWith(o, r)
|
|
3158
3159
|
);
|
|
3159
3160
|
if (a) {
|
|
@@ -3177,7 +3178,7 @@ function hn(e, t) {
|
|
|
3177
3178
|
}
|
|
3178
3179
|
dn(t);
|
|
3179
3180
|
}
|
|
3180
|
-
function
|
|
3181
|
+
function oo(e) {
|
|
3181
3182
|
return !T(e) || !M(e, ["dateStyle", "dateTime"]) ? g("Automatic raw temporal styles are incomplete.") : Ce.has(e.dateStyle) ? !T(e.dateTime) || !M(e.dateTime, ["dateStyle", "timeStyle"]) || !Ce.has(e.dateTime.dateStyle) || !Ce.has(e.dateTime.timeStyle) ? g(
|
|
3182
3183
|
"Automatic dateTime styles are incomplete or invalid."
|
|
3183
3184
|
) : {
|
|
@@ -3204,7 +3205,7 @@ function Ge(e) {
|
|
|
3204
3205
|
...e.sourceTimezone ? { sourceTimezone: e.sourceTimezone } : {},
|
|
3205
3206
|
presentation: {
|
|
3206
3207
|
mode: "auto",
|
|
3207
|
-
styles:
|
|
3208
|
+
styles: oo(e.presentation.styles)
|
|
3208
3209
|
}
|
|
3209
3210
|
} : g(
|
|
3210
3211
|
"Automatic raw temporal presentation has unknown fields."
|
|
@@ -3277,7 +3278,7 @@ function gn(e) {
|
|
|
3277
3278
|
};
|
|
3278
3279
|
return Ge(o);
|
|
3279
3280
|
}
|
|
3280
|
-
function
|
|
3281
|
+
function Ls(e) {
|
|
3281
3282
|
const t = /* @__PURE__ */ new Set();
|
|
3282
3283
|
let n = !1;
|
|
3283
3284
|
for (const r of e.values) {
|
|
@@ -3301,7 +3302,7 @@ function As(e) {
|
|
|
3301
3302
|
}
|
|
3302
3303
|
};
|
|
3303
3304
|
}
|
|
3304
|
-
function
|
|
3305
|
+
function Ws(e) {
|
|
3305
3306
|
return {
|
|
3306
3307
|
version: 1,
|
|
3307
3308
|
columns: Object.fromEntries(
|
|
@@ -3312,7 +3313,7 @@ function Rs(e) {
|
|
|
3312
3313
|
)
|
|
3313
3314
|
};
|
|
3314
3315
|
}
|
|
3315
|
-
function
|
|
3316
|
+
function so(e) {
|
|
3316
3317
|
if (!T(e) || e.version !== 1 || !T(e.columns) || Object.keys(e).some((r) => r !== "version" && r !== "columns"))
|
|
3317
3318
|
throw new A(
|
|
3318
3319
|
"invalid_raw_temporal_format",
|
|
@@ -3335,9 +3336,9 @@ function oo(e) {
|
|
|
3335
3336
|
}
|
|
3336
3337
|
return { version: 1, columns: t };
|
|
3337
3338
|
}
|
|
3338
|
-
function
|
|
3339
|
+
function js(e) {
|
|
3339
3340
|
if (e.length === 0) return;
|
|
3340
|
-
const t = e.map(
|
|
3341
|
+
const t = e.map(so), n = Object.keys(t[0].columns).sort();
|
|
3341
3342
|
for (let r = 1; r < t.length; r += 1) {
|
|
3342
3343
|
const a = Object.keys(t[r].columns).sort();
|
|
3343
3344
|
if (a.length !== n.length || a.some((i, o) => i !== n[o]))
|
|
@@ -3453,7 +3454,7 @@ function yn(e, t) {
|
|
|
3453
3454
|
}
|
|
3454
3455
|
};
|
|
3455
3456
|
}
|
|
3456
|
-
function
|
|
3457
|
+
function co(e, t, n, r, a) {
|
|
3457
3458
|
if (/^S{1,9}$/.test(e)) {
|
|
3458
3459
|
const i = t.fraction.padEnd(e.length, "0").slice(0, e.length);
|
|
3459
3460
|
return r.number(Number(i), e.length);
|
|
@@ -3514,10 +3515,10 @@ function so(e, t, n, r, a) {
|
|
|
3514
3515
|
);
|
|
3515
3516
|
}
|
|
3516
3517
|
}
|
|
3517
|
-
function
|
|
3518
|
+
function uo(e, t, n, r) {
|
|
3518
3519
|
const a = We(t);
|
|
3519
3520
|
return e.map(
|
|
3520
|
-
(i) => i.kind === "literal" ? i.value :
|
|
3521
|
+
(i) => i.kind === "literal" ? i.value : co(i.value, t, a, n, r)
|
|
3521
3522
|
).join("");
|
|
3522
3523
|
}
|
|
3523
3524
|
function pn(e, t, n) {
|
|
@@ -3525,16 +3526,16 @@ function pn(e, t, n) {
|
|
|
3525
3526
|
const i = ne(n);
|
|
3526
3527
|
return i.ok ? i.segments : g(i.message);
|
|
3527
3528
|
})(), a = r.filter((i) => i.kind === "token").map((i) => i.value);
|
|
3528
|
-
return e === "date" && a.some((i) =>
|
|
3529
|
+
return e === "date" && a.some((i) => ao.has(i)) ? g("Date patterns cannot contain time tokens.") : e !== "instant" && a.some((i) => io.has(i)) ? g("Timezone pattern tokens require an instant value.") : r;
|
|
3529
3530
|
}
|
|
3530
|
-
function
|
|
3531
|
+
function lo(e) {
|
|
3531
3532
|
pn(
|
|
3532
3533
|
e.valueKind ?? "instant",
|
|
3533
3534
|
e.dialect,
|
|
3534
3535
|
e.pattern
|
|
3535
3536
|
);
|
|
3536
3537
|
}
|
|
3537
|
-
function
|
|
3538
|
+
function mo(e, t, n, r) {
|
|
3538
3539
|
const a = pn(
|
|
3539
3540
|
e.valueKind,
|
|
3540
3541
|
n,
|
|
@@ -3548,7 +3549,7 @@ function lo(e, t, n, r) {
|
|
|
3548
3549
|
...i.instantFields(s),
|
|
3549
3550
|
fraction: o.fields.fraction
|
|
3550
3551
|
} : o.fields;
|
|
3551
|
-
return
|
|
3552
|
+
return uo(a, c, i, o.instant ?? s);
|
|
3552
3553
|
};
|
|
3553
3554
|
}
|
|
3554
3555
|
function wn(e, t) {
|
|
@@ -3565,11 +3566,11 @@ function wn(e, t) {
|
|
|
3565
3566
|
};
|
|
3566
3567
|
};
|
|
3567
3568
|
}
|
|
3568
|
-
const
|
|
3569
|
+
const fo = /* @__PURE__ */ new Set(["short", "long", "numeric", "iso"]);
|
|
3569
3570
|
function Tn(e) {
|
|
3570
|
-
return typeof e == "string" &&
|
|
3571
|
+
return typeof e == "string" && fo.has(e);
|
|
3571
3572
|
}
|
|
3572
|
-
function
|
|
3573
|
+
function ho(e, t, n) {
|
|
3573
3574
|
const r = wn(e, t), a = e.valueKind !== "date", i = (s, c = 2) => String(s).padStart(c, "0");
|
|
3574
3575
|
if (n === "iso")
|
|
3575
3576
|
return (s) => {
|
|
@@ -3589,7 +3590,7 @@ function fo(e, t, n) {
|
|
|
3589
3590
|
return u.setUTCFullYear(c.year, c.month - 1, c.day), u.setUTCHours(c.hour, c.minute, c.second, 0), o.format(u);
|
|
3590
3591
|
};
|
|
3591
3592
|
}
|
|
3592
|
-
function
|
|
3593
|
+
function go(e, t) {
|
|
3593
3594
|
const n = t.presentation.mode === "auto" ? t.presentation.styles : g("Automatic raw temporal formatting requires styles.");
|
|
3594
3595
|
if (e.valueKind === "date") {
|
|
3595
3596
|
const o = new Intl.DateTimeFormat(t.locale, {
|
|
@@ -3618,7 +3619,7 @@ function Ct(e, t, n) {
|
|
|
3618
3619
|
};
|
|
3619
3620
|
}
|
|
3620
3621
|
function Dn(e) {
|
|
3621
|
-
const t = Zn(e.metadata), n = Ge(e.format), r = n.presentation.mode === "auto" ?
|
|
3622
|
+
const t = Zn(e.metadata), n = Ge(e.format), r = n.presentation.mode === "auto" ? go(t, n) : n.presentation.mode === "preset" ? ho(t, n, n.presentation.preset) : mo(
|
|
3622
3623
|
t,
|
|
3623
3624
|
n,
|
|
3624
3625
|
n.presentation.dialect,
|
|
@@ -3636,17 +3637,17 @@ function Dn(e) {
|
|
|
3636
3637
|
};
|
|
3637
3638
|
};
|
|
3638
3639
|
}
|
|
3639
|
-
function
|
|
3640
|
+
function yo(e) {
|
|
3640
3641
|
return Dn({
|
|
3641
3642
|
metadata: e.metadata,
|
|
3642
3643
|
format: e.format
|
|
3643
3644
|
})(e.value);
|
|
3644
3645
|
}
|
|
3645
|
-
function
|
|
3646
|
+
function po(e) {
|
|
3646
3647
|
const t = gn({ format: e.authored, preferences: e.preferences, calendar: e.calendar });
|
|
3647
3648
|
return { format: t, formatValue: Dn({ metadata: e.metadata, format: t }) };
|
|
3648
3649
|
}
|
|
3649
|
-
const
|
|
3650
|
+
const wo = {
|
|
3650
3651
|
dateStyle: "short",
|
|
3651
3652
|
dateTime: { dateStyle: "short", timeStyle: "short" }
|
|
3652
3653
|
};
|
|
@@ -3657,7 +3658,7 @@ class fe extends Error {
|
|
|
3657
3658
|
this.name = "TemporalBucketContractError", this.code = n;
|
|
3658
3659
|
}
|
|
3659
3660
|
}
|
|
3660
|
-
const
|
|
3661
|
+
const To = [
|
|
3661
3662
|
"Jan",
|
|
3662
3663
|
"Feb",
|
|
3663
3664
|
"Mar",
|
|
@@ -3670,7 +3671,7 @@ const wo = [
|
|
|
3670
3671
|
"Oct",
|
|
3671
3672
|
"Nov",
|
|
3672
3673
|
"Dec"
|
|
3673
|
-
],
|
|
3674
|
+
], Do = [
|
|
3674
3675
|
"January",
|
|
3675
3676
|
"February",
|
|
3676
3677
|
"March",
|
|
@@ -3690,13 +3691,13 @@ function Pe(e) {
|
|
|
3690
3691
|
error: { code: "invalid_temporal_bucket_value", message: e }
|
|
3691
3692
|
};
|
|
3692
3693
|
}
|
|
3693
|
-
function
|
|
3694
|
+
function xo(e) {
|
|
3694
3695
|
return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
|
|
3695
3696
|
}
|
|
3696
|
-
function
|
|
3697
|
-
return t === 2 ?
|
|
3697
|
+
function bo(e, t) {
|
|
3698
|
+
return t === 2 ? xo(e) ? 29 : 28 : [4, 6, 9, 11].includes(t) ? 30 : 31;
|
|
3698
3699
|
}
|
|
3699
|
-
function
|
|
3700
|
+
function vo(e, t, n) {
|
|
3700
3701
|
const r = [0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4], a = t < 3 ? e - 1 : e;
|
|
3701
3702
|
return (a + Math.floor(a / 4) - Math.floor(a / 100) + Math.floor(a / 400) + r[t - 1] + n) % 7;
|
|
3702
3703
|
}
|
|
@@ -3704,10 +3705,10 @@ function Se(e) {
|
|
|
3704
3705
|
var t;
|
|
3705
3706
|
return (t = e.calendar.fiscalCalendar) == null ? void 0 : t.yearStartMonth;
|
|
3706
3707
|
}
|
|
3707
|
-
function
|
|
3708
|
+
function So(e, t) {
|
|
3708
3709
|
return (e - t + 12) % 12 % 3 === 0;
|
|
3709
3710
|
}
|
|
3710
|
-
function
|
|
3711
|
+
function Mo(e, t) {
|
|
3711
3712
|
const { granularity: n } = t, r = Se(t) ?? 1;
|
|
3712
3713
|
switch (n) {
|
|
3713
3714
|
case "second":
|
|
@@ -3719,11 +3720,11 @@ function So(e, t) {
|
|
|
3719
3720
|
case "day":
|
|
3720
3721
|
return !0;
|
|
3721
3722
|
case "week":
|
|
3722
|
-
return
|
|
3723
|
+
return vo(e.year, e.month, e.day) === t.calendar.weekStart;
|
|
3723
3724
|
case "month":
|
|
3724
3725
|
return e.day === 1;
|
|
3725
3726
|
case "quarter":
|
|
3726
|
-
return e.day === 1 &&
|
|
3727
|
+
return e.day === 1 && So(e.month, r);
|
|
3727
3728
|
case "year":
|
|
3728
3729
|
return e.day === 1 && e.month === r;
|
|
3729
3730
|
}
|
|
@@ -3743,11 +3744,11 @@ function xn(e, t) {
|
|
|
3743
3744
|
minute: n ? Number(r[5]) : 0,
|
|
3744
3745
|
second: n ? Number(r[6]) : 0
|
|
3745
3746
|
};
|
|
3746
|
-
return a.year < 1 || a.month < 1 || a.month > 12 || a.day < 1 || a.day >
|
|
3747
|
+
return a.year < 1 || a.month < 1 || a.month > 12 || a.day < 1 || a.day > bo(a.year, a.month) || a.hour > 23 || a.minute > 59 || a.second > 59 ? Pe(`Invalid canonical ${t.granularity} bucket value ${e}.`) : Mo(a, t) ? { ok: !0, value: a } : Pe(
|
|
3747
3748
|
`Canonical value ${e} is not aligned to ${t.granularity} granularity and its governed Calendar.`
|
|
3748
3749
|
);
|
|
3749
3750
|
}
|
|
3750
|
-
function
|
|
3751
|
+
function Hs(e) {
|
|
3751
3752
|
const { granularity: t, calendar: n } = e, r = (o, s) => new Intl.DateTimeFormat("en-US", { ...o, timeZone: "UTC" }).format(s), a = [`by ${t} in the ${n.tz} calendar`];
|
|
3752
3753
|
t === "week" && a.push(`weeks starting on ${r({ weekday: "long" }, new Date(Date.UTC(2023, 0, 1 + n.weekStart)))}`);
|
|
3753
3754
|
const i = Se(e);
|
|
@@ -3774,7 +3775,7 @@ function bn(e) {
|
|
|
3774
3775
|
message: `Unknown property "${c}".`
|
|
3775
3776
|
});
|
|
3776
3777
|
if (o === "preset")
|
|
3777
|
-
|
|
3778
|
+
Xi(r.preset) || t.push({ path: "presentation.preset", message: "Expected a supported preset." });
|
|
3778
3779
|
else if (o === "pattern")
|
|
3779
3780
|
if (typeof r.pattern != "string" || !r.pattern)
|
|
3780
3781
|
t.push({ path: "presentation.pattern", message: "Expected a non-empty pattern." });
|
|
@@ -3840,12 +3841,12 @@ function bn(e) {
|
|
|
3840
3841
|
}
|
|
3841
3842
|
};
|
|
3842
3843
|
}
|
|
3843
|
-
function
|
|
3844
|
+
function ko(e, t) {
|
|
3844
3845
|
const n = !!t.calendar.fiscalCalendar;
|
|
3845
3846
|
return e === "fiscal_quarter_short" || e === "fiscal_year" ? n : e === "quarter_short" || e === "quarter_long" || _n(e) && (t.granularity === "quarter" || t.granularity === "year") ? !n : !0;
|
|
3846
3847
|
}
|
|
3847
3848
|
function vn(e, t) {
|
|
3848
|
-
return fn(e, t.granularity).ok ? e.presentation.mode === "preset" ?
|
|
3849
|
+
return fn(e, t.granularity).ok ? e.presentation.mode === "preset" ? ko(e.presentation.preset, t) : !(e.presentation.mode === "pattern" && t.calendar.fiscalCalendar && (t.granularity === "quarter" || t.granularity === "year")) : !1;
|
|
3849
3850
|
}
|
|
3850
3851
|
function Pt(e, t) {
|
|
3851
3852
|
if (!(!e || e.presentation.mode === "auto"))
|
|
@@ -3869,7 +3870,7 @@ function Sn(e) {
|
|
|
3869
3870
|
locale: t,
|
|
3870
3871
|
presentation: {
|
|
3871
3872
|
mode: "auto",
|
|
3872
|
-
styles: e.styles ??
|
|
3873
|
+
styles: e.styles ?? wo
|
|
3873
3874
|
}
|
|
3874
3875
|
},
|
|
3875
3876
|
source: "automatic"
|
|
@@ -3880,7 +3881,7 @@ function D(e, t = 2) {
|
|
|
3880
3881
|
}
|
|
3881
3882
|
function X(e, t, n) {
|
|
3882
3883
|
if (t === "en-US")
|
|
3883
|
-
return (n === "short" ?
|
|
3884
|
+
return (n === "short" ? To : Do)[e - 1];
|
|
3884
3885
|
const r = new Date(Date.UTC(2e3, e - 1, 15));
|
|
3885
3886
|
return new Intl.DateTimeFormat(t, {
|
|
3886
3887
|
calendar: "gregory",
|
|
@@ -3888,7 +3889,7 @@ function X(e, t, n) {
|
|
|
3888
3889
|
timeZone: "UTC"
|
|
3889
3890
|
}).format(r);
|
|
3890
3891
|
}
|
|
3891
|
-
function
|
|
3892
|
+
function _o(e, t, n) {
|
|
3892
3893
|
return t.map((r) => {
|
|
3893
3894
|
if (r.kind === "literal") return r.value;
|
|
3894
3895
|
switch (r.value) {
|
|
@@ -3931,7 +3932,7 @@ function zt(e, t, n) {
|
|
|
3931
3932
|
timeZone: "UTC"
|
|
3932
3933
|
}).format(G(e));
|
|
3933
3934
|
}
|
|
3934
|
-
function
|
|
3935
|
+
function No(e, t, n) {
|
|
3935
3936
|
return Y(t, {
|
|
3936
3937
|
calendar: "gregory",
|
|
3937
3938
|
dateStyle: n.dateStyle,
|
|
@@ -3941,7 +3942,7 @@ function _o(e, t, n) {
|
|
|
3941
3942
|
timeZone: "UTC"
|
|
3942
3943
|
}).format(G(e));
|
|
3943
3944
|
}
|
|
3944
|
-
function
|
|
3945
|
+
function $o(e, t, n) {
|
|
3945
3946
|
var a;
|
|
3946
3947
|
if (n === "short") {
|
|
3947
3948
|
const i = G(e), o = Y(t, {
|
|
@@ -3987,7 +3988,7 @@ function Ye(e, t, n) {
|
|
|
3987
3988
|
timeZone: "UTC"
|
|
3988
3989
|
}).format(G(e));
|
|
3989
3990
|
}
|
|
3990
|
-
function
|
|
3991
|
+
function Fo(e, t, n, r) {
|
|
3991
3992
|
const a = Mn(e, 1);
|
|
3992
3993
|
switch (r) {
|
|
3993
3994
|
case "week":
|
|
@@ -4004,7 +4005,7 @@ function $o(e, t, n, r) {
|
|
|
4004
4005
|
}
|
|
4005
4006
|
function je(e, t, n, r) {
|
|
4006
4007
|
if (_n(t))
|
|
4007
|
-
return
|
|
4008
|
+
return Fo(e, t, n, r.granularity);
|
|
4008
4009
|
const a = Se(r) ?? 1, i = Mn(e, a);
|
|
4009
4010
|
switch (t) {
|
|
4010
4011
|
case "week_of_short":
|
|
@@ -4021,19 +4022,19 @@ function je(e, t, n, r) {
|
|
|
4021
4022
|
return `FY${Ut(e, a)}`;
|
|
4022
4023
|
}
|
|
4023
4024
|
}
|
|
4024
|
-
function
|
|
4025
|
+
function Oo(e, t, n, r) {
|
|
4025
4026
|
const a = Se(t);
|
|
4026
4027
|
switch (t.granularity) {
|
|
4027
4028
|
case "second":
|
|
4028
4029
|
case "minute":
|
|
4029
4030
|
case "hour":
|
|
4030
|
-
return
|
|
4031
|
+
return No(e, n, r.dateTime);
|
|
4031
4032
|
case "day":
|
|
4032
4033
|
return zt(e, n, r.dateStyle);
|
|
4033
4034
|
case "week":
|
|
4034
4035
|
return `Week of ${zt(e, n, r.dateStyle)}`;
|
|
4035
4036
|
case "month":
|
|
4036
|
-
return
|
|
4037
|
+
return $o(e, n, r.dateStyle);
|
|
4037
4038
|
case "quarter":
|
|
4038
4039
|
return je(
|
|
4039
4040
|
e,
|
|
@@ -4045,7 +4046,7 @@ function Fo(e, t, n, r) {
|
|
|
4045
4046
|
return a ? je(e, "fiscal_year", n, t) : String(e.year);
|
|
4046
4047
|
}
|
|
4047
4048
|
}
|
|
4048
|
-
function
|
|
4049
|
+
function qs(e, t) {
|
|
4049
4050
|
if (t.granularity !== "second" && t.granularity !== "minute" && t.granularity !== "hour" && t.granularity !== "day" && t.granularity !== "month")
|
|
4050
4051
|
return;
|
|
4051
4052
|
const n = xn(e, t);
|
|
@@ -4069,7 +4070,7 @@ function Nn(e) {
|
|
|
4069
4070
|
if (n.value === null) return "(Blank)";
|
|
4070
4071
|
const { presentation: r, locale: a } = t.value;
|
|
4071
4072
|
if (r.mode === "auto")
|
|
4072
|
-
return
|
|
4073
|
+
return Oo(
|
|
4073
4074
|
n.value,
|
|
4074
4075
|
e.metadata,
|
|
4075
4076
|
a,
|
|
@@ -4088,9 +4089,9 @@ function Nn(e) {
|
|
|
4088
4089
|
"invalid_temporal_bucket_format",
|
|
4089
4090
|
i.message
|
|
4090
4091
|
);
|
|
4091
|
-
return
|
|
4092
|
+
return _o(n.value, i.segments, a);
|
|
4092
4093
|
}
|
|
4093
|
-
function
|
|
4094
|
+
function Io(e, t) {
|
|
4094
4095
|
var a;
|
|
4095
4096
|
const n = e[e.length - 1];
|
|
4096
4097
|
if (!n) return "";
|
|
@@ -4098,18 +4099,18 @@ function Oo(e, t) {
|
|
|
4098
4099
|
const r = n.member.value;
|
|
4099
4100
|
return r === null ? "(Blank)" : ((a = t == null ? void 0 : t.get(n.levelId)) == null ? void 0 : a(r)) ?? (typeof r == "object" ? r.value : String(r));
|
|
4100
4101
|
}
|
|
4101
|
-
function
|
|
4102
|
+
function Eo(e, t, n) {
|
|
4102
4103
|
return e === "grand_total" ? n ?? "Grand Total" : e === "subtotal" ? (n == null ? void 0 : n.split(Un).join(t)) ?? `${t} Total` : t;
|
|
4103
4104
|
}
|
|
4104
|
-
function
|
|
4105
|
+
function Zs(e, t, n, r) {
|
|
4105
4106
|
var o;
|
|
4106
4107
|
const a = e[e.length - 1], i = t === "grand_total" ? n.grand.label : a ? (o = n.levels[a.levelId]) == null ? void 0 : o.label : void 0;
|
|
4107
|
-
return
|
|
4108
|
+
return Eo(t, Io(e, r), i);
|
|
4108
4109
|
}
|
|
4109
|
-
function
|
|
4110
|
+
function Ks(e, t, n) {
|
|
4110
4111
|
return e.kind === "value" ? (t == null ? void 0 : t(e.value)) ?? "" : e.kind === "null" ? n.nullText : n.emptyText;
|
|
4111
4112
|
}
|
|
4112
|
-
function
|
|
4113
|
+
function Vs(e) {
|
|
4113
4114
|
const { path: t, previousPath: n, role: r, repeatLabels: a, levelCount: i } = e;
|
|
4114
4115
|
return Array.from({ length: i }, (o, s) => {
|
|
4115
4116
|
const c = t.slice(0, s + 1), u = r === "grand_total" ? s === 0 : r === "subtotal" && s === t.length - 1, l = n && n.length > s && nt(n.slice(0, s + 1)) === nt(c);
|
|
@@ -4120,18 +4121,18 @@ function Zs(e) {
|
|
|
4120
4121
|
};
|
|
4121
4122
|
});
|
|
4122
4123
|
}
|
|
4123
|
-
function
|
|
4124
|
-
return (e == null ? void 0 : e.type) === "date" ? { type: "raw_temporal", timezone: e.timezone, sourceTimezone: e.sourceTimezone, presentation:
|
|
4124
|
+
function Co(e) {
|
|
4125
|
+
return (e == null ? void 0 : e.type) === "date" ? { type: "raw_temporal", timezone: e.timezone, sourceTimezone: e.sourceTimezone, presentation: to(e) } : void 0;
|
|
4125
4126
|
}
|
|
4126
|
-
function
|
|
4127
|
-
return
|
|
4127
|
+
function Po(e, t) {
|
|
4128
|
+
return Ii(Xe({ override: e, model: t }).format, {
|
|
4128
4129
|
preserveOmittedProperties: !0,
|
|
4129
4130
|
numericInput: "canonical"
|
|
4130
4131
|
});
|
|
4131
4132
|
}
|
|
4132
|
-
function
|
|
4133
|
+
function Bs(e, t, n) {
|
|
4133
4134
|
const r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = (o, s) => {
|
|
4134
|
-
const c = (s === "levels" ? t.levelFormats : t.measureFormats)[o.id], u = o.semanticFormat, l =
|
|
4135
|
+
const c = (s === "levels" ? t.levelFormats : t.measureFormats)[o.id], u = o.semanticFormat, l = Po(c, u);
|
|
4135
4136
|
s === "measures" && r.set(o.id, {
|
|
4136
4137
|
isNumeric: zn(o.column.dataType) === "number",
|
|
4137
4138
|
// Use normalized affixes: a redundant percent suffix is already removed.
|
|
@@ -4154,8 +4155,8 @@ function Ks(e, t, n) {
|
|
|
4154
4155
|
return (d) => typeof d == "string" ? Nn({ value: d, metadata: m, format: h.format }) : f(d);
|
|
4155
4156
|
}
|
|
4156
4157
|
if (o.column.rawTemporal) {
|
|
4157
|
-
const m = Xe({ override: c, model: u }).format, { formatValue: h } =
|
|
4158
|
-
authored:
|
|
4158
|
+
const m = Xe({ override: c, model: u }).format, { formatValue: h } = po({
|
|
4159
|
+
authored: Co(m),
|
|
4159
4160
|
metadata: o.column.rawTemporal,
|
|
4160
4161
|
preferences: n.valueFormat,
|
|
4161
4162
|
calendar: n.calendar
|
|
@@ -4167,7 +4168,7 @@ function Ks(e, t, n) {
|
|
|
4167
4168
|
};
|
|
4168
4169
|
}
|
|
4169
4170
|
if (J(l)) {
|
|
4170
|
-
const m =
|
|
4171
|
+
const m = Ki(l, n.valueFormat);
|
|
4171
4172
|
return s === "measures" && a.set(o.id, m), (h) => typeof h == "number" || typeof h == "object" && h !== null ? Ze(h, m) : f(h);
|
|
4172
4173
|
}
|
|
4173
4174
|
return (l == null ? void 0 : l.type) === "duration" && s === "measures" && a.set(o.id, l), (l == null ? void 0 : l.type) === "duration" ? (m) => typeof m == "number" || typeof m == "string" || typeof m == "object" && m !== null ? qt(
|
|
@@ -4187,16 +4188,16 @@ function Ks(e, t, n) {
|
|
|
4187
4188
|
absence: t.absence
|
|
4188
4189
|
};
|
|
4189
4190
|
}
|
|
4190
|
-
function
|
|
4191
|
+
function Xs(e, t) {
|
|
4191
4192
|
return t.levelLabels[e.id] ?? e.field.label ?? e.field.name;
|
|
4192
4193
|
}
|
|
4193
|
-
function
|
|
4194
|
+
function Gs(e, t) {
|
|
4194
4195
|
return t.measureLabels[e.id] ?? (e.kind === "aggregate" ? e.field.label ?? e.field.name : e.definition.label);
|
|
4195
4196
|
}
|
|
4196
|
-
function
|
|
4197
|
-
return Wn.parse(
|
|
4197
|
+
function Qs(e) {
|
|
4198
|
+
return Wn.parse(Yo(e));
|
|
4198
4199
|
}
|
|
4199
|
-
function
|
|
4200
|
+
function Yo(e) {
|
|
4200
4201
|
const t = An.parse(e), n = (r) => ({
|
|
4201
4202
|
grand: { visible: !0, position: "after" },
|
|
4202
4203
|
levels: Object.fromEntries(
|
|
@@ -4224,14 +4225,14 @@ function Po(e) {
|
|
|
4224
4225
|
}
|
|
4225
4226
|
});
|
|
4226
4227
|
}
|
|
4227
|
-
function
|
|
4228
|
+
function zo(e, t) {
|
|
4228
4229
|
const n = new Map(e.map((r) => [K(r), r]));
|
|
4229
4230
|
for (const r of t ?? []) n.set(K(r), r);
|
|
4230
4231
|
return [...n.values()];
|
|
4231
4232
|
}
|
|
4232
|
-
function
|
|
4233
|
+
function Js(e) {
|
|
4233
4234
|
const { spec: t, presentation: n, defaults: r, session: a } = Ln.parse(e), i = new Map(
|
|
4234
|
-
|
|
4235
|
+
zo(t.sorts, a == null ? void 0 : a.sorts).map((s) => [K(s), s])
|
|
4235
4236
|
);
|
|
4236
4237
|
for (const s of ["rows", "columns"])
|
|
4237
4238
|
for (const c of t[s]) {
|
|
@@ -4275,7 +4276,7 @@ class At extends Error {
|
|
|
4275
4276
|
this.name = "PresentationExecutionSnapshotError";
|
|
4276
4277
|
}
|
|
4277
4278
|
}
|
|
4278
|
-
class
|
|
4279
|
+
class ec extends Error {
|
|
4279
4280
|
constructor(n) {
|
|
4280
4281
|
super(
|
|
4281
4282
|
`missing_resolved_raw_temporal_format: Column "${n}" has no captured presentation. Resave this report before running it again.`
|
|
@@ -4290,7 +4291,7 @@ function I(e, t, n) {
|
|
|
4290
4291
|
if (a)
|
|
4291
4292
|
throw new Error(`${n} contains unknown property "${a}"`);
|
|
4292
4293
|
}
|
|
4293
|
-
function
|
|
4294
|
+
function Uo(e, t = "scope") {
|
|
4294
4295
|
if (!T(e))
|
|
4295
4296
|
throw new Error(`${t} must be an object`);
|
|
4296
4297
|
I(
|
|
@@ -4339,7 +4340,7 @@ function ze(e, t) {
|
|
|
4339
4340
|
if (a) return { kind: "matrix_measure", measureId: a };
|
|
4340
4341
|
throw new Error(`${t} is not a valid numeric presentation target`);
|
|
4341
4342
|
}
|
|
4342
|
-
const
|
|
4343
|
+
const Ao = [
|
|
4343
4344
|
"type",
|
|
4344
4345
|
"inputUnit",
|
|
4345
4346
|
"outputStyle",
|
|
@@ -4350,12 +4351,12 @@ const Uo = [
|
|
|
4350
4351
|
"suffix",
|
|
4351
4352
|
"negativeStyle"
|
|
4352
4353
|
];
|
|
4353
|
-
function
|
|
4354
|
+
function Ro(e) {
|
|
4354
4355
|
return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
|
|
4355
4356
|
}
|
|
4356
|
-
const
|
|
4357
|
-
function
|
|
4358
|
-
if (I(e,
|
|
4357
|
+
const Lo = ["type", "locale", "pattern", "timezone", "sourceTimezone"];
|
|
4358
|
+
function Wo(e, t) {
|
|
4359
|
+
if (I(e, Lo, t), typeof e.locale != "string" || !e.locale.trim())
|
|
4359
4360
|
throw new Error(`${t}.locale must be a non-empty string`);
|
|
4360
4361
|
for (const n of ["pattern", "timezone", "sourceTimezone"])
|
|
4361
4362
|
if (e[n] !== void 0 && typeof e[n] != "string")
|
|
@@ -4368,10 +4369,10 @@ function Lo(e, t) {
|
|
|
4368
4369
|
...typeof e.sourceTimezone == "string" ? { sourceTimezone: e.sourceTimezone } : {}
|
|
4369
4370
|
};
|
|
4370
4371
|
}
|
|
4371
|
-
function
|
|
4372
|
-
I(e,
|
|
4372
|
+
function jo(e, t) {
|
|
4373
|
+
I(e, Ao, t);
|
|
4373
4374
|
for (const i of ["inputUnit", "largestUnit", "smallestUnit"])
|
|
4374
|
-
if (e[i] !== void 0 && !
|
|
4375
|
+
if (e[i] !== void 0 && !Ro(e[i]))
|
|
4375
4376
|
throw new Error(`${t}.${i} must be a duration unit`);
|
|
4376
4377
|
const n = e.outputStyle;
|
|
4377
4378
|
if (n !== void 0 && n !== "compact" && n !== "digital" && n !== "long")
|
|
@@ -4397,7 +4398,7 @@ function Wo(e, t) {
|
|
|
4397
4398
|
...a !== void 0 ? { negativeStyle: a } : {}
|
|
4398
4399
|
};
|
|
4399
4400
|
}
|
|
4400
|
-
function
|
|
4401
|
+
function Ho(e, t) {
|
|
4401
4402
|
if (!T(e))
|
|
4402
4403
|
throw new Error(`${t} must be an object`);
|
|
4403
4404
|
if (e.kind === "field") {
|
|
@@ -4425,7 +4426,7 @@ function jo(e, t) {
|
|
|
4425
4426
|
if (r) return { kind: "matrix_axis", axisInstanceId: r };
|
|
4426
4427
|
throw new Error(`${t} is not a valid temporal bucket presentation target`);
|
|
4427
4428
|
}
|
|
4428
|
-
function
|
|
4429
|
+
function qo(e, t) {
|
|
4429
4430
|
if (!T(e))
|
|
4430
4431
|
throw new Error(`${t} must be an object`);
|
|
4431
4432
|
const n = z(e, "column", "columnKey", t);
|
|
@@ -4433,7 +4434,7 @@ function Ho(e, t) {
|
|
|
4433
4434
|
throw new Error(`${t} must identify a column`);
|
|
4434
4435
|
return { kind: "column", columnKey: n };
|
|
4435
4436
|
}
|
|
4436
|
-
function
|
|
4437
|
+
function Zo(e) {
|
|
4437
4438
|
return [
|
|
4438
4439
|
e.dashboardId,
|
|
4439
4440
|
e.cardId ?? null,
|
|
@@ -4461,7 +4462,7 @@ function L(e, t) {
|
|
|
4461
4462
|
const n = be(e), r = be(t);
|
|
4462
4463
|
return n.length === r.length && n.every((a, i) => a === r[i]);
|
|
4463
4464
|
}
|
|
4464
|
-
function
|
|
4465
|
+
function Ko(e) {
|
|
4465
4466
|
if (!Array.isArray(e))
|
|
4466
4467
|
throw new Error("resolvedFormats must be an array");
|
|
4467
4468
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -4471,7 +4472,7 @@ function Zo(e) {
|
|
|
4471
4472
|
if (!T(n))
|
|
4472
4473
|
throw new Error(`${a} must be an object`);
|
|
4473
4474
|
I(n, ["scope", "target", "format"], a);
|
|
4474
|
-
const i =
|
|
4475
|
+
const i = Uo(n.scope, `${a}.scope`);
|
|
4475
4476
|
if (!T(n.format))
|
|
4476
4477
|
throw new Error(`${a}.format must be an object`);
|
|
4477
4478
|
let o;
|
|
@@ -4484,7 +4485,7 @@ function Zo(e) {
|
|
|
4484
4485
|
);
|
|
4485
4486
|
o = {
|
|
4486
4487
|
scope: i,
|
|
4487
|
-
target:
|
|
4488
|
+
target: Ho(n.target, `${a}.target`),
|
|
4488
4489
|
format: l.value
|
|
4489
4490
|
};
|
|
4490
4491
|
break;
|
|
@@ -4492,7 +4493,7 @@ function Zo(e) {
|
|
|
4492
4493
|
case "raw_temporal":
|
|
4493
4494
|
o = {
|
|
4494
4495
|
scope: i,
|
|
4495
|
-
target:
|
|
4496
|
+
target: qo(n.target, `${a}.target`),
|
|
4496
4497
|
format: Ge(n.format)
|
|
4497
4498
|
};
|
|
4498
4499
|
break;
|
|
@@ -4500,7 +4501,7 @@ function Zo(e) {
|
|
|
4500
4501
|
case "currency":
|
|
4501
4502
|
case "percent":
|
|
4502
4503
|
case "scientific": {
|
|
4503
|
-
const l =
|
|
4504
|
+
const l = Hi(n.format);
|
|
4504
4505
|
if (!l.ok)
|
|
4505
4506
|
throw new Error(
|
|
4506
4507
|
`${a}.format is invalid: ${((u = l.issues[0]) == null ? void 0 : u.message) ?? "invalid value"}`
|
|
@@ -4519,7 +4520,7 @@ function Zo(e) {
|
|
|
4519
4520
|
o = {
|
|
4520
4521
|
scope: i,
|
|
4521
4522
|
target: l,
|
|
4522
|
-
format:
|
|
4523
|
+
format: Wo(n.format, `${a}.format`)
|
|
4523
4524
|
};
|
|
4524
4525
|
break;
|
|
4525
4526
|
}
|
|
@@ -4527,7 +4528,7 @@ function Zo(e) {
|
|
|
4527
4528
|
o = {
|
|
4528
4529
|
scope: i,
|
|
4529
4530
|
target: ze(n.target, `${a}.target`),
|
|
4530
|
-
format:
|
|
4531
|
+
format: jo(
|
|
4531
4532
|
n.format,
|
|
4532
4533
|
`${a}.format`
|
|
4533
4534
|
)
|
|
@@ -4537,7 +4538,7 @@ function Zo(e) {
|
|
|
4537
4538
|
throw new Error(`${a}.format.type is unsupported`);
|
|
4538
4539
|
}
|
|
4539
4540
|
const s = JSON.stringify([
|
|
4540
|
-
...
|
|
4541
|
+
...Zo(o.scope),
|
|
4541
4542
|
...be(o.target)
|
|
4542
4543
|
]);
|
|
4543
4544
|
if (t.has(s))
|
|
@@ -4547,7 +4548,7 @@ function Zo(e) {
|
|
|
4547
4548
|
return t.add(s), o;
|
|
4548
4549
|
});
|
|
4549
4550
|
}
|
|
4550
|
-
function
|
|
4551
|
+
function Vo(e) {
|
|
4551
4552
|
try {
|
|
4552
4553
|
if (!T(e))
|
|
4553
4554
|
throw new Error("presentation execution snapshot must be an object");
|
|
@@ -4567,7 +4568,7 @@ function Ko(e) {
|
|
|
4567
4568
|
return {
|
|
4568
4569
|
version: 1,
|
|
4569
4570
|
reportContext: t.value,
|
|
4570
|
-
resolvedFormats:
|
|
4571
|
+
resolvedFormats: Ko(e.resolvedFormats)
|
|
4571
4572
|
};
|
|
4572
4573
|
} catch (t) {
|
|
4573
4574
|
throw t instanceof At ? t : new At(
|
|
@@ -4575,14 +4576,14 @@ function Ko(e) {
|
|
|
4575
4576
|
);
|
|
4576
4577
|
}
|
|
4577
4578
|
}
|
|
4578
|
-
function
|
|
4579
|
-
return
|
|
4579
|
+
function Bo(e) {
|
|
4580
|
+
return Vo({
|
|
4580
4581
|
version: 1,
|
|
4581
4582
|
reportContext: e.reportContext,
|
|
4582
4583
|
resolvedFormats: [...e.resolvedFormats]
|
|
4583
4584
|
});
|
|
4584
4585
|
}
|
|
4585
|
-
function
|
|
4586
|
+
function tc(e, t) {
|
|
4586
4587
|
const n = t.filter(
|
|
4587
4588
|
(r, a) => !e.resolvedFormats.some(
|
|
4588
4589
|
(i) => R(i.scope, r.scope) && L(i.target, r.target)
|
|
@@ -4591,40 +4592,40 @@ function Js(e, t) {
|
|
|
4591
4592
|
(i) => R(i.scope, r.scope) && L(i.target, r.target)
|
|
4592
4593
|
) === a
|
|
4593
4594
|
);
|
|
4594
|
-
return n.length === 0 ? e :
|
|
4595
|
+
return n.length === 0 ? e : Bo({
|
|
4595
4596
|
reportContext: e.reportContext,
|
|
4596
4597
|
resolvedFormats: [...e.resolvedFormats, ...n]
|
|
4597
4598
|
});
|
|
4598
4599
|
}
|
|
4599
|
-
function
|
|
4600
|
-
const t =
|
|
4600
|
+
function nc(e) {
|
|
4601
|
+
const t = Xo(e);
|
|
4601
4602
|
return J(t) ? t : void 0;
|
|
4602
4603
|
}
|
|
4603
|
-
function
|
|
4604
|
+
function Xo(e) {
|
|
4604
4605
|
const t = e.snapshot.resolvedFormats.find(
|
|
4605
4606
|
(n) => n.format.type !== "temporal_bucket" && n.format.type !== "raw_temporal" && n.format.type !== "date" && R(n.scope, e.scope) && L(n.target, e.target)
|
|
4606
4607
|
);
|
|
4607
4608
|
return t == null ? void 0 : t.format;
|
|
4608
4609
|
}
|
|
4609
|
-
function
|
|
4610
|
+
function rc(e) {
|
|
4610
4611
|
const t = e.snapshot.resolvedFormats.find(
|
|
4611
4612
|
(n) => n.format.type === "date" && R(n.scope, e.scope) && L(n.target, e.target)
|
|
4612
4613
|
);
|
|
4613
4614
|
return t == null ? void 0 : t.format;
|
|
4614
4615
|
}
|
|
4615
|
-
function
|
|
4616
|
+
function ac(e) {
|
|
4616
4617
|
const t = e.snapshot.resolvedFormats.find(
|
|
4617
4618
|
(n) => n.format.type === "raw_temporal" && R(n.scope, e.scope) && L(n.target, e.target)
|
|
4618
4619
|
);
|
|
4619
4620
|
return t == null ? void 0 : t.format;
|
|
4620
4621
|
}
|
|
4621
|
-
function
|
|
4622
|
+
function ic(e) {
|
|
4622
4623
|
const t = e.snapshot.resolvedFormats.find(
|
|
4623
4624
|
(n) => n.format.type === "temporal_bucket" && R(n.scope, e.scope) && L(n.target, e.target)
|
|
4624
4625
|
);
|
|
4625
4626
|
return t == null ? void 0 : t.format;
|
|
4626
4627
|
}
|
|
4627
|
-
function
|
|
4628
|
+
function oc(e) {
|
|
4628
4629
|
var a;
|
|
4629
4630
|
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
4630
4631
|
if (e.snapshot.resolvedFormats.forEach((i, o) => {
|
|
@@ -4665,36 +4666,36 @@ function ac(e) {
|
|
|
4665
4666
|
`resolvedFormats is missing visible export column "${r}"`
|
|
4666
4667
|
);
|
|
4667
4668
|
}
|
|
4668
|
-
const
|
|
4669
|
-
function
|
|
4669
|
+
const Go = /* @__PURE__ */ new Set(["short", "medium", "long"]), Qo = /^(\d{4})-(\d{2})-(\d{2})$/, Jo = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?$/, es = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:\d{2})$/, Je = " – ";
|
|
4670
|
+
function sc(e) {
|
|
4670
4671
|
if (!T(e)) return;
|
|
4671
4672
|
const t = Object.keys(e);
|
|
4672
4673
|
if (e.mode === "period_label" && t.length === 1)
|
|
4673
4674
|
return { mode: "period_label" };
|
|
4674
|
-
if (e.mode === "style" && t.length === 2 && typeof e.dateStyle == "string" &&
|
|
4675
|
+
if (e.mode === "style" && t.length === 2 && typeof e.dateStyle == "string" && Go.has(e.dateStyle))
|
|
4675
4676
|
return { mode: "style", dateStyle: e.dateStyle };
|
|
4676
|
-
if (e.mode === "pattern" && t.length === 3 && e.dialect === "semaphor_tokens" && typeof e.pattern == "string" &&
|
|
4677
|
+
if (e.mode === "pattern" && t.length === 3 && e.dialect === "semaphor_tokens" && typeof e.pattern == "string" && ts(e.pattern) === null)
|
|
4677
4678
|
return {
|
|
4678
4679
|
mode: "pattern",
|
|
4679
4680
|
dialect: "semaphor_tokens",
|
|
4680
4681
|
pattern: e.pattern
|
|
4681
4682
|
};
|
|
4682
4683
|
}
|
|
4683
|
-
function
|
|
4684
|
+
function ts(e) {
|
|
4684
4685
|
try {
|
|
4685
|
-
return
|
|
4686
|
+
return lo({ dialect: "semaphor_tokens", pattern: e }), null;
|
|
4686
4687
|
} catch (t) {
|
|
4687
4688
|
return t instanceof Error ? t.message : "The pattern is invalid.";
|
|
4688
4689
|
}
|
|
4689
4690
|
}
|
|
4690
|
-
function
|
|
4691
|
+
function cc(e) {
|
|
4691
4692
|
const { value: t, part: n, presentation: r, preferences: a, calendar: i } = e;
|
|
4692
4693
|
if ((r == null ? void 0 : r.mode) === "period_label" && t.periodLabel && n === "range")
|
|
4693
4694
|
return { ok: !0, text: t.periodLabel };
|
|
4694
4695
|
const [o, s] = t.bounds, u = s === void 0 || n === "start" ? [{ raw: o, role: "start" }] : n === "end" ? [{ raw: s, role: "end" }] : [
|
|
4695
4696
|
{ raw: o, role: "start" },
|
|
4696
4697
|
{ raw: s, role: "end" }
|
|
4697
|
-
], l = u.map(({ raw: d }) =>
|
|
4698
|
+
], l = u.map(({ raw: d }) => is(d, i.tz));
|
|
4698
4699
|
if (l.some((d) => d === null))
|
|
4699
4700
|
return {
|
|
4700
4701
|
ok: !1,
|
|
@@ -4705,16 +4706,16 @@ function oc(e) {
|
|
|
4705
4706
|
}
|
|
4706
4707
|
};
|
|
4707
4708
|
const f = t.precision === "day" ? l.map(
|
|
4708
|
-
(d, S) =>
|
|
4709
|
+
(d, S) => ss(d, u[S].role, i.tz)
|
|
4709
4710
|
) : [], m = f.length > 0 && f.every((d) => d !== null) ? f : null;
|
|
4710
|
-
return { ok: !0, text: m ?
|
|
4711
|
-
l.map((d) =>
|
|
4711
|
+
return { ok: !0, text: m ? ns(m, r, a, i) : rs(
|
|
4712
|
+
l.map((d) => os(d, i.tz)),
|
|
4712
4713
|
r,
|
|
4713
4714
|
a,
|
|
4714
4715
|
i
|
|
4715
4716
|
) };
|
|
4716
4717
|
}
|
|
4717
|
-
function
|
|
4718
|
+
function ns(e, t, n, r) {
|
|
4718
4719
|
const [a, i = a] = e;
|
|
4719
4720
|
if ((t == null ? void 0 : t.mode) === "pattern")
|
|
4720
4721
|
return On(
|
|
@@ -4724,7 +4725,7 @@ function ts(e, t, n, r) {
|
|
|
4724
4725
|
);
|
|
4725
4726
|
const o = (t == null ? void 0 : t.mode) === "style" ? t.dateStyle : n.dateStyle;
|
|
4726
4727
|
if (!t || t.mode === "period_label") {
|
|
4727
|
-
const c =
|
|
4728
|
+
const c = cs(a, i, r);
|
|
4728
4729
|
if (c)
|
|
4729
4730
|
return Nn({
|
|
4730
4731
|
value: He(a),
|
|
@@ -4749,9 +4750,9 @@ function ts(e, t, n, r) {
|
|
|
4749
4750
|
timeZone: "UTC",
|
|
4750
4751
|
dateStyle: o
|
|
4751
4752
|
});
|
|
4752
|
-
return
|
|
4753
|
+
return ls(a, i) ? s.format(de(a)) : $n(s, de(a), de(i));
|
|
4753
4754
|
}
|
|
4754
|
-
function
|
|
4755
|
+
function rs(e, t, n, r) {
|
|
4755
4756
|
if ((t == null ? void 0 : t.mode) === "pattern")
|
|
4756
4757
|
return On(
|
|
4757
4758
|
e.map(
|
|
@@ -4788,43 +4789,43 @@ function Fn(e, t, n, r, a) {
|
|
|
4788
4789
|
defaultCurrency: qn.defaultCurrency
|
|
4789
4790
|
},
|
|
4790
4791
|
calendar: { tz: a.tz }
|
|
4791
|
-
}), o = t === "date" &&
|
|
4792
|
-
return
|
|
4792
|
+
}), o = t === "date" && as(n) ? "instant" : t;
|
|
4793
|
+
return yo({
|
|
4793
4794
|
value: o === t ? e : te(`${e}T00:00:00`, a.tz).toISOString(),
|
|
4794
4795
|
metadata: { kind: "raw_temporal", valueKind: o },
|
|
4795
4796
|
format: i
|
|
4796
4797
|
}).text;
|
|
4797
4798
|
}
|
|
4798
|
-
function
|
|
4799
|
+
function as(e) {
|
|
4799
4800
|
return /HH|mm|ss/.test(e);
|
|
4800
4801
|
}
|
|
4801
4802
|
function On(e) {
|
|
4802
4803
|
return e[1] === void 0 || e[0] === e[1] ? e[0] : e.join(Je);
|
|
4803
4804
|
}
|
|
4804
|
-
function
|
|
4805
|
-
const n =
|
|
4805
|
+
function is(e, t) {
|
|
4806
|
+
const n = Qo.exec(e);
|
|
4806
4807
|
if (n) {
|
|
4807
4808
|
const a = {
|
|
4808
4809
|
year: Number(n[1]),
|
|
4809
4810
|
month: Number(n[2]),
|
|
4810
4811
|
day: Number(n[3])
|
|
4811
4812
|
};
|
|
4812
|
-
return
|
|
4813
|
+
return ms(a) ? { kind: "date", date: a } : null;
|
|
4813
4814
|
}
|
|
4814
|
-
const r =
|
|
4815
|
+
const r = es.test(e) ? new Date(e.replace(" ", "T")) : Jo.test(e) ? te(e.replace(" ", "T"), t) : null;
|
|
4815
4816
|
return r && !Number.isNaN(r.getTime()) ? { kind: "instant", instant: r } : null;
|
|
4816
4817
|
}
|
|
4817
|
-
function
|
|
4818
|
+
function os(e, t) {
|
|
4818
4819
|
return e.kind === "instant" ? e.instant : te(`${He(e.date)}T00:00:00`, t);
|
|
4819
4820
|
}
|
|
4820
|
-
function
|
|
4821
|
+
function ss(e, t, n) {
|
|
4821
4822
|
if (e.kind === "date") return e.date;
|
|
4822
4823
|
const r = Bn(e.instant, n), a = { year: r.year, month: r.month, day: r.day };
|
|
4823
|
-
if (r.hour === 0 && r.minute === 0 && r.second === 0 && e.instant.getUTCMilliseconds() === 0) return t === "start" ? a :
|
|
4824
|
+
if (r.hour === 0 && r.minute === 0 && r.second === 0 && e.instant.getUTCMilliseconds() === 0) return t === "start" ? a : us(a, -1);
|
|
4824
4825
|
const o = r.hour === 23 && r.minute === 59 && r.second === 59;
|
|
4825
4826
|
return t === "end" && o ? a : null;
|
|
4826
4827
|
}
|
|
4827
|
-
function
|
|
4828
|
+
function cs(e, t, n) {
|
|
4828
4829
|
return n.fiscalCalendar || e.day !== 1 || e.year !== t.year || t.day !== In(t.year, t.month) ? null : e.month === t.month ? "month" : e.month % 3 === 1 && t.month === e.month + 2 ? "quarter" : e.month === 1 && t.month === 12 ? "year" : null;
|
|
4829
4830
|
}
|
|
4830
4831
|
function He(e) {
|
|
@@ -4834,7 +4835,7 @@ function de(e) {
|
|
|
4834
4835
|
const t = /* @__PURE__ */ new Date(0);
|
|
4835
4836
|
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(0, 0, 0, 0), t;
|
|
4836
4837
|
}
|
|
4837
|
-
function
|
|
4838
|
+
function us(e, t) {
|
|
4838
4839
|
const n = de(e);
|
|
4839
4840
|
return n.setUTCDate(n.getUTCDate() + t), {
|
|
4840
4841
|
year: n.getUTCFullYear(),
|
|
@@ -4842,134 +4843,143 @@ function cs(e, t) {
|
|
|
4842
4843
|
day: n.getUTCDate()
|
|
4843
4844
|
};
|
|
4844
4845
|
}
|
|
4845
|
-
function
|
|
4846
|
+
function ls(e, t) {
|
|
4846
4847
|
return e.year === t.year && e.month === t.month && e.day === t.day;
|
|
4847
4848
|
}
|
|
4848
4849
|
function In(e, t) {
|
|
4849
4850
|
return new Date(Date.UTC(e, t, 0)).getUTCDate();
|
|
4850
4851
|
}
|
|
4851
|
-
function
|
|
4852
|
+
function ms(e) {
|
|
4852
4853
|
return e.year >= 1 && e.month >= 1 && e.month <= 12 && e.day >= 1 && e.day <= In(e.year, e.month);
|
|
4853
4854
|
}
|
|
4855
|
+
function uc(e) {
|
|
4856
|
+
const t = /* @__PURE__ */ new Map();
|
|
4857
|
+
return e.forEach((n) => {
|
|
4858
|
+
n.id && t.set(n.id, (t.get(n.id) ?? 0) + 1);
|
|
4859
|
+
}), e.flatMap(
|
|
4860
|
+
(n) => n.id && (t.get(n.id) ?? 0) > 1 ? [Xn(n)] : []
|
|
4861
|
+
);
|
|
4862
|
+
}
|
|
4854
4863
|
export {
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4864
|
+
ac as $,
|
|
4865
|
+
Is as A,
|
|
4866
|
+
Es as B,
|
|
4867
|
+
De as C,
|
|
4868
|
+
P as D,
|
|
4869
|
+
Cs as E,
|
|
4870
|
+
Ps as F,
|
|
4862
4871
|
Si as G,
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4872
|
+
Mi as H,
|
|
4873
|
+
Ys as I,
|
|
4874
|
+
ki as J,
|
|
4875
|
+
zs as K,
|
|
4876
|
+
Bs as L,
|
|
4877
|
+
Di as M,
|
|
4869
4878
|
ji as N,
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4879
|
+
Hi as O,
|
|
4880
|
+
As as P,
|
|
4881
|
+
qi as Q,
|
|
4882
|
+
Ki as R,
|
|
4883
|
+
At as S,
|
|
4884
|
+
ec as T,
|
|
4885
|
+
Uo as U,
|
|
4877
4886
|
Ko as V,
|
|
4878
4887
|
Vo as W,
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4888
|
+
Bo as X,
|
|
4889
|
+
tc as Y,
|
|
4890
|
+
nc as Z,
|
|
4891
|
+
rc as _,
|
|
4892
|
+
Xo as a,
|
|
4893
|
+
kt as a$,
|
|
4894
|
+
ic as a0,
|
|
4895
|
+
oc as a1,
|
|
4896
|
+
Vi as a2,
|
|
4897
|
+
Xi as a3,
|
|
4898
|
+
ne as a4,
|
|
4899
|
+
fn as a5,
|
|
4900
|
+
Rs as a6,
|
|
4901
|
+
wo as a7,
|
|
4902
|
+
fe as a8,
|
|
4903
|
+
xn as a9,
|
|
4904
|
+
Xs as aA,
|
|
4905
|
+
un as aB,
|
|
4906
|
+
_s as aC,
|
|
4907
|
+
Ni as aD,
|
|
4908
|
+
Gs as aE,
|
|
4909
|
+
Qs as aF,
|
|
4901
4910
|
Yo as aG,
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4911
|
+
zo as aH,
|
|
4912
|
+
Ke as aI,
|
|
4913
|
+
j as aJ,
|
|
4914
|
+
nn as aK,
|
|
4915
|
+
ue as aL,
|
|
4916
|
+
p as aM,
|
|
4917
|
+
Dr as aN,
|
|
4918
|
+
pe as aO,
|
|
4919
|
+
ct as aP,
|
|
4920
|
+
ie as aQ,
|
|
4921
|
+
ks as aR,
|
|
4922
|
+
Jt as aS,
|
|
4923
|
+
yr as aT,
|
|
4924
|
+
_i as aU,
|
|
4925
|
+
lr as aV,
|
|
4926
|
+
Ma as aW,
|
|
4927
|
+
Po as aX,
|
|
4928
|
+
$t as aY,
|
|
4929
|
+
F as aZ,
|
|
4930
|
+
Nt as a_,
|
|
4931
|
+
Hs as aa,
|
|
4932
|
+
bn as ab,
|
|
4933
|
+
Sn as ac,
|
|
4934
|
+
qs as ad,
|
|
4935
|
+
to as ae,
|
|
4927
4936
|
A as af,
|
|
4928
4937
|
Ge as ag,
|
|
4929
4938
|
gn as ah,
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4939
|
+
Ls as ai,
|
|
4940
|
+
Ws as aj,
|
|
4941
|
+
so as ak,
|
|
4942
|
+
js as al,
|
|
4943
|
+
lo as am,
|
|
4935
4944
|
Dn as an,
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
+
yo as ao,
|
|
4946
|
+
po as ap,
|
|
4947
|
+
sc as aq,
|
|
4948
|
+
ts as ar,
|
|
4949
|
+
cc as as,
|
|
4950
|
+
uc as at,
|
|
4951
|
+
Js as au,
|
|
4952
|
+
vs as av,
|
|
4953
|
+
Io as aw,
|
|
4945
4954
|
Zs as ax,
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4955
|
+
Vs as ay,
|
|
4956
|
+
Ks as az,
|
|
4957
|
+
Ss as b,
|
|
4958
|
+
Co as b0,
|
|
4959
|
+
Eo as b1,
|
|
4960
|
+
te as b2,
|
|
4961
|
+
Ii as c,
|
|
4962
|
+
bs as d,
|
|
4963
|
+
qe as e,
|
|
4964
|
+
Nn as f,
|
|
4965
|
+
Bt as g,
|
|
4966
|
+
Xt as h,
|
|
4957
4967
|
J as i,
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4968
|
+
Gt as j,
|
|
4969
|
+
Ze as k,
|
|
4970
|
+
mr as l,
|
|
4971
|
+
Ms as m,
|
|
4972
|
+
qt as n,
|
|
4973
|
+
Zt as o,
|
|
4964
4974
|
Xe as p,
|
|
4965
4975
|
pi as q,
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4976
|
+
Ui as r,
|
|
4977
|
+
wi as s,
|
|
4978
|
+
Os as t,
|
|
4979
|
+
Ns as u,
|
|
4980
|
+
$s as v,
|
|
4981
|
+
Us as w,
|
|
4982
|
+
Fs as x,
|
|
4983
|
+
Be as y,
|
|
4984
|
+
ln as z
|
|
4975
4985
|
};
|