@andrey4emk/npm-app-front-b24 0.1.19 → 0.1.20
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/npm-app-front-b24.es.js +62 -62
- package/dist/npm-app-front-b24.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as O, createElementBlock as v, createElementVNode as c, withDirectives as Qe, vModelCheckbox as Xe, createTextVNode as is, toDisplayString as I, Fragment as Me, renderList as
|
|
1
|
+
import { openBlock as O, createElementBlock as v, createElementVNode as c, withDirectives as Qe, vModelCheckbox as Xe, createTextVNode as is, toDisplayString as I, Fragment as Me, renderList as Ce, createCommentVNode as j, normalizeClass as Kt, reactive as as, ref as he, onMounted as os } from "vue";
|
|
2
2
|
class K extends Error {
|
|
3
3
|
}
|
|
4
4
|
class ls extends K {
|
|
@@ -744,13 +744,13 @@ class E {
|
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
let He = null;
|
|
747
|
-
class
|
|
747
|
+
class x extends pe {
|
|
748
748
|
/**
|
|
749
749
|
* Get a singleton instance of UTC
|
|
750
750
|
* @return {FixedOffsetZone}
|
|
751
751
|
*/
|
|
752
752
|
static get utcInstance() {
|
|
753
|
-
return He === null && (He = new
|
|
753
|
+
return He === null && (He = new x(0)), He;
|
|
754
754
|
}
|
|
755
755
|
/**
|
|
756
756
|
* Get an instance with a specified offset
|
|
@@ -758,7 +758,7 @@ class C extends pe {
|
|
|
758
758
|
* @return {FixedOffsetZone}
|
|
759
759
|
*/
|
|
760
760
|
static instance(e) {
|
|
761
|
-
return e === 0 ?
|
|
761
|
+
return e === 0 ? x.utcInstance : new x(e);
|
|
762
762
|
}
|
|
763
763
|
/**
|
|
764
764
|
* Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
|
|
@@ -772,7 +772,7 @@ class C extends pe {
|
|
|
772
772
|
if (e) {
|
|
773
773
|
const n = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
|
|
774
774
|
if (n)
|
|
775
|
-
return new
|
|
775
|
+
return new x(Ue(n[1], n[2]));
|
|
776
776
|
}
|
|
777
777
|
return null;
|
|
778
778
|
}
|
|
@@ -863,7 +863,7 @@ class C extends pe {
|
|
|
863
863
|
return !0;
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
class
|
|
866
|
+
class Cs extends pe {
|
|
867
867
|
constructor(e) {
|
|
868
868
|
super(), this.zoneName = e;
|
|
869
869
|
}
|
|
@@ -907,8 +907,8 @@ function H(t, e) {
|
|
|
907
907
|
return t;
|
|
908
908
|
if (Ws(t)) {
|
|
909
909
|
const n = t.toLowerCase();
|
|
910
|
-
return n === "default" ? e : n === "local" || n === "system" ? $e.instance : n === "utc" || n === "gmt" ?
|
|
911
|
-
} else return P(t) ?
|
|
910
|
+
return n === "default" ? e : n === "local" || n === "system" ? $e.instance : n === "utc" || n === "gmt" ? x.utcInstance : x.parseSpecifier(n) || z.create(t);
|
|
911
|
+
} else return P(t) ? x.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new Cs(t);
|
|
912
912
|
}
|
|
913
913
|
const dt = {
|
|
914
914
|
arab: "[٠-٩]",
|
|
@@ -952,7 +952,7 @@ const dt = {
|
|
|
952
952
|
telu: [3174, 3183],
|
|
953
953
|
thai: [3664, 3673],
|
|
954
954
|
tibt: [3872, 3881]
|
|
955
|
-
},
|
|
955
|
+
}, xs = dt.hanidec.replace(/[\[|\]]/g, "").split("");
|
|
956
956
|
function Vs(t) {
|
|
957
957
|
let e = parseInt(t, 10);
|
|
958
958
|
if (isNaN(e)) {
|
|
@@ -960,7 +960,7 @@ function Vs(t) {
|
|
|
960
960
|
for (let n = 0; n < t.length; n++) {
|
|
961
961
|
const s = t.charCodeAt(n);
|
|
962
962
|
if (t[n].search(dt.hanidec) !== -1)
|
|
963
|
-
e +=
|
|
963
|
+
e += xs.indexOf(t[n]);
|
|
964
964
|
else
|
|
965
965
|
for (const r in Et) {
|
|
966
966
|
const [i, a] = Et[r];
|
|
@@ -982,7 +982,7 @@ function _({ numberingSystem: t }, e = "") {
|
|
|
982
982
|
let r = s.get(e);
|
|
983
983
|
return r === void 0 && (r = new RegExp(`${dt[n]}${e}`), s.set(e, r)), r;
|
|
984
984
|
}
|
|
985
|
-
let Ot = () => Date.now(), vt = "system", bt = null, Dt = null, Nt = null, It = 60, Mt,
|
|
985
|
+
let Ot = () => Date.now(), vt = "system", bt = null, Dt = null, Nt = null, It = 60, Mt, Ct = null;
|
|
986
986
|
class D {
|
|
987
987
|
/**
|
|
988
988
|
* Get the callback for returning the current timestamp.
|
|
@@ -1069,7 +1069,7 @@ class D {
|
|
|
1069
1069
|
* @return {WeekSettings|null}
|
|
1070
1070
|
*/
|
|
1071
1071
|
static get defaultWeekSettings() {
|
|
1072
|
-
return
|
|
1072
|
+
return Ct;
|
|
1073
1073
|
}
|
|
1074
1074
|
/**
|
|
1075
1075
|
* Allows overriding the default locale week settings, i.e. the start of the week, the weekend and
|
|
@@ -1079,7 +1079,7 @@ class D {
|
|
|
1079
1079
|
* @param {WeekSettings|null} weekSettings
|
|
1080
1080
|
*/
|
|
1081
1081
|
static set defaultWeekSettings(e) {
|
|
1082
|
-
|
|
1082
|
+
Ct = lt(e);
|
|
1083
1083
|
}
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.
|
|
@@ -1158,7 +1158,7 @@ function Ae(t, e = 4, n = 1) {
|
|
|
1158
1158
|
let l = Math.floor((a - o + 14 - e) / 7), u;
|
|
1159
1159
|
return l < 1 ? (u = s - 1, l = Te(u, e, n)) : l > Te(s, e, n) ? (u = s + 1, l = 1) : u = s, { weekYear: u, weekNumber: l, weekday: o, ...ze(t) };
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function xt(t, e = 4, n = 1) {
|
|
1162
1162
|
const { weekYear: s, weekNumber: r, weekday: i } = t, a = ht(ft(s, 1, e), n), o = se(s);
|
|
1163
1163
|
let l = r * 7 + i - a - 7 + e, u;
|
|
1164
1164
|
l < 1 ? (u = s - 1, l += se(u)) : l > o ? (u = s + 1, l -= se(s)) : u = s;
|
|
@@ -1357,7 +1357,7 @@ function Ue(t, e) {
|
|
|
1357
1357
|
const s = parseInt(e, 10) || 0, r = n < 0 || Object.is(n, -0) ? -s : s;
|
|
1358
1358
|
return n * 60 + r;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function Cn(t) {
|
|
1361
1361
|
const e = Number(t);
|
|
1362
1362
|
if (typeof t == "boolean" || t === "" || !Number.isFinite(e))
|
|
1363
1363
|
throw new M(`Invalid unit value ${t}`);
|
|
@@ -1369,7 +1369,7 @@ function _e(t, e) {
|
|
|
1369
1369
|
if (ie(t, s)) {
|
|
1370
1370
|
const r = t[s];
|
|
1371
1371
|
if (r == null) continue;
|
|
1372
|
-
n[e(s)] =
|
|
1372
|
+
n[e(s)] = Cn(r);
|
|
1373
1373
|
}
|
|
1374
1374
|
return n;
|
|
1375
1375
|
}
|
|
@@ -1402,7 +1402,7 @@ const Us = [
|
|
|
1402
1402
|
"October",
|
|
1403
1403
|
"November",
|
|
1404
1404
|
"December"
|
|
1405
|
-
],
|
|
1405
|
+
], xn = [
|
|
1406
1406
|
"Jan",
|
|
1407
1407
|
"Feb",
|
|
1408
1408
|
"Mar",
|
|
@@ -1421,7 +1421,7 @@ function Vn(t) {
|
|
|
1421
1421
|
case "narrow":
|
|
1422
1422
|
return [...zs];
|
|
1423
1423
|
case "short":
|
|
1424
|
-
return [...
|
|
1424
|
+
return [...xn];
|
|
1425
1425
|
case "long":
|
|
1426
1426
|
return [...Us];
|
|
1427
1427
|
case "numeric":
|
|
@@ -1533,9 +1533,9 @@ const Qs = {
|
|
|
1533
1533
|
FFF: gn,
|
|
1534
1534
|
FFFF: kn
|
|
1535
1535
|
};
|
|
1536
|
-
class
|
|
1536
|
+
class C {
|
|
1537
1537
|
static create(e, n = {}) {
|
|
1538
|
-
return new
|
|
1538
|
+
return new C(e, n);
|
|
1539
1539
|
}
|
|
1540
1540
|
static parseFormat(e) {
|
|
1541
1541
|
let n = null, s = "", r = !1;
|
|
@@ -1584,7 +1584,7 @@ class x {
|
|
|
1584
1584
|
w ? { weekday: h } : { weekday: h, month: "long", day: "numeric" },
|
|
1585
1585
|
"weekday"
|
|
1586
1586
|
), f = (h) => {
|
|
1587
|
-
const w =
|
|
1587
|
+
const w = C.macroTokenToFormatOpts(h);
|
|
1588
1588
|
return w ? this.formatWithSystemDefault(e, w) : h;
|
|
1589
1589
|
}, m = (h) => s ? Bs(e, h) : i({ era: h }, "era"), T = (h) => {
|
|
1590
1590
|
switch (h) {
|
|
@@ -1713,7 +1713,7 @@ class x {
|
|
|
1713
1713
|
return f(h);
|
|
1714
1714
|
}
|
|
1715
1715
|
};
|
|
1716
|
-
return Wt(
|
|
1716
|
+
return Wt(C.parseFormat(n), T);
|
|
1717
1717
|
}
|
|
1718
1718
|
formatDurationFromString(e, n) {
|
|
1719
1719
|
const s = this.opts.signMode === "negativeLargestOnly" ? -1 : 1, r = (f) => {
|
|
@@ -1745,7 +1745,7 @@ class x {
|
|
|
1745
1745
|
return this.opts.signMode === "negativeLargestOnly" && h !== m.largestUnit ? p = "never" : this.opts.signMode === "all" ? p = "always" : p = "auto", this.num(f.get(h) * w, T.length, p);
|
|
1746
1746
|
} else
|
|
1747
1747
|
return T;
|
|
1748
|
-
}, a =
|
|
1748
|
+
}, a = C.parseFormat(n), o = a.reduce(
|
|
1749
1749
|
(f, { literal: m, val: T }) => m ? f : f.concat(T),
|
|
1750
1750
|
[]
|
|
1751
1751
|
), l = e.shiftTo(...o.map(r).filter((f) => f)), u = {
|
|
@@ -1813,7 +1813,7 @@ function ue(t, e) {
|
|
|
1813
1813
|
}, null, e + 4];
|
|
1814
1814
|
}
|
|
1815
1815
|
function Ee(t, e) {
|
|
1816
|
-
const n = !t[e] && !t[e + 1], s = Ue(t[e + 1], t[e + 2]), r = n ? null :
|
|
1816
|
+
const n = !t[e] && !t[e + 1], s = Ue(t[e + 1], t[e + 2]), r = n ? null : x.instance(s);
|
|
1817
1817
|
return [{}, r, e + 3];
|
|
1818
1818
|
}
|
|
1819
1819
|
function Oe(t, e) {
|
|
@@ -1850,7 +1850,7 @@ const dr = {
|
|
|
1850
1850
|
function kt(t, e, n, s, r, i, a) {
|
|
1851
1851
|
const o = {
|
|
1852
1852
|
year: e.length === 2 ? ut(Y(e)) : Y(e),
|
|
1853
|
-
month:
|
|
1853
|
+
month: xn.indexOf(n) + 1,
|
|
1854
1854
|
day: Y(s),
|
|
1855
1855
|
hour: Y(r),
|
|
1856
1856
|
minute: Y(i)
|
|
@@ -1874,7 +1874,7 @@ function hr(t) {
|
|
|
1874
1874
|
m
|
|
1875
1875
|
] = t, T = kt(e, r, s, n, i, a, o);
|
|
1876
1876
|
let h;
|
|
1877
|
-
return l ? h = dr[l] : u ? h = 0 : h = Ue(f, m), [T, new
|
|
1877
|
+
return l ? h = dr[l] : u ? h = 0 : h = Ue(f, m), [T, new x(h)];
|
|
1878
1878
|
}
|
|
1879
1879
|
function mr(t) {
|
|
1880
1880
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
@@ -1882,11 +1882,11 @@ function mr(t) {
|
|
|
1882
1882
|
const yr = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, gr = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, wr = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
|
1883
1883
|
function _t(t) {
|
|
1884
1884
|
const [, e, n, s, r, i, a, o] = t;
|
|
1885
|
-
return [kt(e, r, s, n, i, a, o),
|
|
1885
|
+
return [kt(e, r, s, n, i, a, o), x.utcInstance];
|
|
1886
1886
|
}
|
|
1887
1887
|
function kr(t) {
|
|
1888
1888
|
const [, e, n, s, r, i, a, o] = t;
|
|
1889
|
-
return [kt(e, o, n, s, r, i, a),
|
|
1889
|
+
return [kt(e, o, n, s, r, i, a), x.utcInstance];
|
|
1890
1890
|
}
|
|
1891
1891
|
const Tr = ae(er, wt), pr = ae(tr, wt), Sr = ae(nr, wt), Er = ae(Un), qn = oe(
|
|
1892
1892
|
or,
|
|
@@ -1931,9 +1931,9 @@ function Ir(t) {
|
|
|
1931
1931
|
function Mr(t) {
|
|
1932
1932
|
return le(t, [ur, cr]);
|
|
1933
1933
|
}
|
|
1934
|
-
const
|
|
1935
|
-
function
|
|
1936
|
-
return le(t, [lr,
|
|
1934
|
+
const Cr = oe(ue);
|
|
1935
|
+
function xr(t) {
|
|
1936
|
+
return le(t, [lr, Cr]);
|
|
1937
1937
|
}
|
|
1938
1938
|
const Vr = ae(ir, ar), Fr = ae(zn), Lr = oe(
|
|
1939
1939
|
ue,
|
|
@@ -2183,7 +2183,7 @@ class k {
|
|
|
2183
2183
|
* @return {Duration}
|
|
2184
2184
|
*/
|
|
2185
2185
|
static fromISOTime(e, n) {
|
|
2186
|
-
const [s] =
|
|
2186
|
+
const [s] = xr(e);
|
|
2187
2187
|
return s ? k.fromObject(s, n) : k.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
|
2188
2188
|
}
|
|
2189
2189
|
/**
|
|
@@ -2281,7 +2281,7 @@ class k {
|
|
|
2281
2281
|
...n,
|
|
2282
2282
|
floor: n.round !== !1 && n.floor !== !1
|
|
2283
2283
|
};
|
|
2284
|
-
return this.isValid ?
|
|
2284
|
+
return this.isValid ? C.create(this.loc, s).formatDurationFromString(this, e) : $t;
|
|
2285
2285
|
}
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Returns a string representation of a Duration with all units included.
|
|
@@ -2426,7 +2426,7 @@ class k {
|
|
|
2426
2426
|
if (!this.isValid) return this;
|
|
2427
2427
|
const n = {};
|
|
2428
2428
|
for (const s of Object.keys(this.values))
|
|
2429
|
-
n[s] =
|
|
2429
|
+
n[s] = Cn(e(this.values[s], s));
|
|
2430
2430
|
return U(this, { values: n }, !0);
|
|
2431
2431
|
}
|
|
2432
2432
|
/**
|
|
@@ -3067,7 +3067,7 @@ class b {
|
|
|
3067
3067
|
* @return {string}
|
|
3068
3068
|
*/
|
|
3069
3069
|
toLocaleString(e = Le, n = {}) {
|
|
3070
|
-
return this.isValid ?
|
|
3070
|
+
return this.isValid ? C.create(this.s.loc.clone(n), e).formatInterval(this) : ee;
|
|
3071
3071
|
}
|
|
3072
3072
|
/**
|
|
3073
3073
|
* Returns an ISO 8601-compliant string representation of this Interval.
|
|
@@ -3590,7 +3590,7 @@ function Kr(t) {
|
|
|
3590
3590
|
}
|
|
3591
3591
|
};
|
|
3592
3592
|
let n = null, s;
|
|
3593
|
-
return y(t.z) || (n = z.create(t.z)), y(t.Z) || (n || (n = new
|
|
3593
|
+
return y(t.z) || (n = z.create(t.z)), y(t.Z) || (n || (n = new x(t.Z)), s = t.Z), y(t.q) || (t.M = (t.q - 1) * 3 + 1), y(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), y(t.u) || (t.S = mt(t.u)), [Object.keys(t).reduce((i, a) => {
|
|
3594
3594
|
const o = e(a);
|
|
3595
3595
|
return o && (i[o] = t[a]), i;
|
|
3596
3596
|
}, {}), n, s];
|
|
@@ -3602,7 +3602,7 @@ function Qr() {
|
|
|
3602
3602
|
function Xr(t, e) {
|
|
3603
3603
|
if (t.literal)
|
|
3604
3604
|
return t;
|
|
3605
|
-
const n =
|
|
3605
|
+
const n = C.macroTokenToFormatOpts(t.val), s = Kn(n, e);
|
|
3606
3606
|
return s == null || s.includes(void 0) ? t : s;
|
|
3607
3607
|
}
|
|
3608
3608
|
function Jn(t, e) {
|
|
@@ -3610,7 +3610,7 @@ function Jn(t, e) {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
class jn {
|
|
3612
3612
|
constructor(e, n) {
|
|
3613
|
-
if (this.locale = e, this.format = n, this.tokens = Jn(
|
|
3613
|
+
if (this.locale = e, this.format = n, this.tokens = Jn(C.parseFormat(n), e), this.units = this.tokens.map((s) => Pr(s, e)), this.disqualifyingUnit = this.units.find((s) => s.invalidReason), !this.disqualifyingUnit) {
|
|
3614
3614
|
const [s, r] = jr(this.units);
|
|
3615
3615
|
this.regex = RegExp(s, "i"), this.handlers = r;
|
|
3616
3616
|
}
|
|
@@ -3652,7 +3652,7 @@ function ei(t, e, n) {
|
|
|
3652
3652
|
function Kn(t, e) {
|
|
3653
3653
|
if (!t)
|
|
3654
3654
|
return null;
|
|
3655
|
-
const s =
|
|
3655
|
+
const s = C.create(e, t).dtFormatter(Qr()), r = s.formatToParts(), i = s.resolvedOptions();
|
|
3656
3656
|
return r.map((a) => Jr(a, t, i));
|
|
3657
3657
|
}
|
|
3658
3658
|
const Je = "Invalid DateTime", Yt = 864e13;
|
|
@@ -3702,7 +3702,7 @@ function Ne(t, e) {
|
|
|
3702
3702
|
millisecond: n.getUTCMilliseconds()
|
|
3703
3703
|
};
|
|
3704
3704
|
}
|
|
3705
|
-
function
|
|
3705
|
+
function xe(t, e, n) {
|
|
3706
3706
|
return Qn(Re(t), e, n);
|
|
3707
3707
|
}
|
|
3708
3708
|
function Ht(t, e) {
|
|
@@ -3740,7 +3740,7 @@ function te(t, e, n, s, r, i) {
|
|
|
3740
3740
|
);
|
|
3741
3741
|
}
|
|
3742
3742
|
function Ie(t, e, n = !0) {
|
|
3743
|
-
return t.isValid ?
|
|
3743
|
+
return t.isValid ? C.create(E.create("en-US"), {
|
|
3744
3744
|
allowZ: n,
|
|
3745
3745
|
forceSimple: !0
|
|
3746
3746
|
}).formatDateTimeFromString(t, e) : null;
|
|
@@ -3872,7 +3872,7 @@ function Jt(t, e) {
|
|
|
3872
3872
|
if (a)
|
|
3873
3873
|
return g.invalid(a);
|
|
3874
3874
|
const o = ii(n);
|
|
3875
|
-
[r, i] =
|
|
3875
|
+
[r, i] = xe(t, o, n);
|
|
3876
3876
|
}
|
|
3877
3877
|
return new g({ ts: r, zone: n, loc: s, o: i });
|
|
3878
3878
|
}
|
|
@@ -3974,7 +3974,7 @@ class g {
|
|
|
3974
3974
|
*/
|
|
3975
3975
|
static utc() {
|
|
3976
3976
|
const [e, n] = Bt(arguments), [s, r, i, a, o, l, u] = n;
|
|
3977
|
-
return e.zone =
|
|
3977
|
+
return e.zone = x.utcInstance, Jt({ year: s, month: r, day: i, hour: a, minute: o, second: l, millisecond: u }, e);
|
|
3978
3978
|
}
|
|
3979
3979
|
/**
|
|
3980
3980
|
* Create a DateTime from a JavaScript Date object. Uses the default zone.
|
|
@@ -4092,7 +4092,7 @@ class g {
|
|
|
4092
4092
|
const es = p ? Ls(i, a, o) : f ? As(i) : bn(i), pt = es || Dn(i);
|
|
4093
4093
|
if (pt)
|
|
4094
4094
|
return g.invalid(pt);
|
|
4095
|
-
const ts = p ?
|
|
4095
|
+
const ts = p ? xt(i, a, o) : f ? Vt(i) : i, [ns, ss] = xe(ts, u, s), de = new g({
|
|
4096
4096
|
ts: ns,
|
|
4097
4097
|
zone: s,
|
|
4098
4098
|
o: ss,
|
|
@@ -4258,7 +4258,7 @@ class g {
|
|
|
4258
4258
|
* @returns {string}
|
|
4259
4259
|
*/
|
|
4260
4260
|
static expandFormat(e, n = {}) {
|
|
4261
|
-
return Jn(
|
|
4261
|
+
return Jn(C.parseFormat(e), E.fromObject(n)).map((r) => r.val).join("");
|
|
4262
4262
|
}
|
|
4263
4263
|
static resetCache() {
|
|
4264
4264
|
we = void 0, ct.clear();
|
|
@@ -4622,7 +4622,7 @@ class g {
|
|
|
4622
4622
|
* @return {Object}
|
|
4623
4623
|
*/
|
|
4624
4624
|
resolvedLocaleOptions(e = {}) {
|
|
4625
|
-
const { locale: n, numberingSystem: s, calendar: r } =
|
|
4625
|
+
const { locale: n, numberingSystem: s, calendar: r } = C.create(
|
|
4626
4626
|
this.loc.clone(e),
|
|
4627
4627
|
e
|
|
4628
4628
|
).resolvedOptions(this);
|
|
@@ -4638,7 +4638,7 @@ class g {
|
|
|
4638
4638
|
* @return {DateTime}
|
|
4639
4639
|
*/
|
|
4640
4640
|
toUTC(e = 0, n = {}) {
|
|
4641
|
-
return this.setZone(
|
|
4641
|
+
return this.setZone(x.instance(e), n);
|
|
4642
4642
|
}
|
|
4643
4643
|
/**
|
|
4644
4644
|
* "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
|
|
@@ -4665,7 +4665,7 @@ class g {
|
|
|
4665
4665
|
let r = this.ts;
|
|
4666
4666
|
if (n || s) {
|
|
4667
4667
|
const i = e.offset(this.ts), a = this.toObject();
|
|
4668
|
-
[r] =
|
|
4668
|
+
[r] = xe(a, i, e);
|
|
4669
4669
|
}
|
|
4670
4670
|
return J(this, { ts: r, zone: e });
|
|
4671
4671
|
} else
|
|
@@ -4713,12 +4713,12 @@ class g {
|
|
|
4713
4713
|
if (l && a)
|
|
4714
4714
|
throw new ne("Can't mix ordinal dates with month/day");
|
|
4715
4715
|
let m;
|
|
4716
|
-
i ? m =
|
|
4716
|
+
i ? m = xt(
|
|
4717
4717
|
{ ...Ae(this.c, s, r), ...n },
|
|
4718
4718
|
s,
|
|
4719
4719
|
r
|
|
4720
4720
|
) : y(n.ordinal) ? (m = { ...this.toObject(), ...n }, y(n.day) && (m.day = Math.min(We(m.year, m.month), m.day))) : m = Vt({ ...Pe(this.c), ...n });
|
|
4721
|
-
const [T, h] =
|
|
4721
|
+
const [T, h] = xe(m, this.o, this.zone);
|
|
4722
4722
|
return J(this, { ts: T, o: h });
|
|
4723
4723
|
}
|
|
4724
4724
|
/**
|
|
@@ -4823,7 +4823,7 @@ class g {
|
|
|
4823
4823
|
* @return {string}
|
|
4824
4824
|
*/
|
|
4825
4825
|
toFormat(e, n = {}) {
|
|
4826
|
-
return this.isValid ?
|
|
4826
|
+
return this.isValid ? C.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this, e) : Je;
|
|
4827
4827
|
}
|
|
4828
4828
|
/**
|
|
4829
4829
|
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
|
@@ -4845,7 +4845,7 @@ class g {
|
|
|
4845
4845
|
* @return {string}
|
|
4846
4846
|
*/
|
|
4847
4847
|
toLocaleString(e = Le, n = {}) {
|
|
4848
|
-
return this.isValid ?
|
|
4848
|
+
return this.isValid ? C.create(this.loc.clone(n), e).formatDateTime(this) : Je;
|
|
4849
4849
|
}
|
|
4850
4850
|
/**
|
|
4851
4851
|
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
|
@@ -4861,7 +4861,7 @@ class g {
|
|
|
4861
4861
|
* //=> ]
|
|
4862
4862
|
*/
|
|
4863
4863
|
toLocaleParts(e = {}) {
|
|
4864
|
-
return this.isValid ?
|
|
4864
|
+
return this.isValid ? C.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
|
|
4865
4865
|
}
|
|
4866
4866
|
/**
|
|
4867
4867
|
* Returns an ISO 8601-compliant string representation of this DateTime
|
|
@@ -5731,7 +5731,7 @@ function Ii(t, e, n, s, r, i) {
|
|
|
5731
5731
|
])
|
|
5732
5732
|
], -1)),
|
|
5733
5733
|
c("tbody", null, [
|
|
5734
|
-
(O(!0), v(Me, null,
|
|
5734
|
+
(O(!0), v(Me, null, Ce(r.entities.list, (a, o) => {
|
|
5735
5735
|
var l, u, f, m;
|
|
5736
5736
|
return O(), v("tr", {
|
|
5737
5737
|
key: a.PROCESS_ID + "-" + a.ID
|
|
@@ -5784,7 +5784,7 @@ function Ii(t, e, n, s, r, i) {
|
|
|
5784
5784
|
])
|
|
5785
5785
|
], -1)),
|
|
5786
5786
|
c("tbody", null, [
|
|
5787
|
-
(O(!0), v(Me, null,
|
|
5787
|
+
(O(!0), v(Me, null, Ce(r.subscribedEvents, (a) => (O(), v("tr", {
|
|
5788
5788
|
key: a.id
|
|
5789
5789
|
}, [
|
|
5790
5790
|
c("td", null, I(a.event), 1),
|
|
@@ -5809,7 +5809,7 @@ function Ii(t, e, n, s, r, i) {
|
|
|
5809
5809
|
])
|
|
5810
5810
|
], -1)),
|
|
5811
5811
|
c("tbody", null, [
|
|
5812
|
-
(O(!0), v(Me, null,
|
|
5812
|
+
(O(!0), v(Me, null, Ce(r.events, (a) => (O(), v("tr", { key: a }, [
|
|
5813
5813
|
c("td", null, I(a), 1),
|
|
5814
5814
|
c("td", null, [
|
|
5815
5815
|
c("button", {
|
|
@@ -5826,13 +5826,13 @@ function Ii(t, e, n, s, r, i) {
|
|
|
5826
5826
|
t.tabs.tab3 ? (O(), v("div", Ni)) : j("", !0)
|
|
5827
5827
|
]);
|
|
5828
5828
|
}
|
|
5829
|
-
const Mi = /* @__PURE__ */ ai(oi, [["render", Ii]]),
|
|
5829
|
+
const Mi = /* @__PURE__ */ ai(oi, [["render", Ii]]), Ci = { class: "config-logs" }, xi = {
|
|
5830
5830
|
key: 0,
|
|
5831
5831
|
class: "config-logs__loading"
|
|
5832
5832
|
}, Vi = {
|
|
5833
5833
|
key: 1,
|
|
5834
5834
|
class: "config-logs__error"
|
|
5835
|
-
}, Fi = { key: 2 }, Li = { class: "config-logs__table" }, Ai = { class: "config-logs__level-name" }, Wi = { class: "config-logs__level-key" }, _i = { class: "config-logs__switch" }, $i = ["onUpdate:modelValue"], Zi = { class: "config-
|
|
5835
|
+
}, Fi = { key: 2 }, Li = { class: "config-logs__table" }, Ai = { class: "config-logs__level-name" }, Wi = { class: "config-logs__level-key" }, _i = { class: "config-logs__switch" }, $i = ["onUpdate:modelValue"], Zi = { class: "config-logs__switch" }, Ri = ["onUpdate:modelValue"], Ui = { class: "config-logs__actions" }, zi = ["disabled"], qi = ["disabled"], Yi = {
|
|
5836
5836
|
__name: "ConfigLogs",
|
|
5837
5837
|
props: {
|
|
5838
5838
|
apiBase: {
|
|
@@ -5908,9 +5908,9 @@ const Mi = /* @__PURE__ */ ai(oi, [["render", Ii]]), xi = { class: "config-logs"
|
|
|
5908
5908
|
}
|
|
5909
5909
|
return os(() => {
|
|
5910
5910
|
m();
|
|
5911
|
-
}), (h, w) => (O(), v("div",
|
|
5911
|
+
}), (h, w) => (O(), v("div", Ci, [
|
|
5912
5912
|
w[3] || (w[3] = c("h2", null, "Уровни логирования", -1)),
|
|
5913
|
-
r.value ? (O(), v("div",
|
|
5913
|
+
r.value ? (O(), v("div", xi, "Загрузка...")) : a.value ? (O(), v("div", Vi, [
|
|
5914
5914
|
c("p", null, I(a.value), 1),
|
|
5915
5915
|
c("button", { onClick: m }, "Повторить")
|
|
5916
5916
|
])) : (O(), v("div", Fi, [
|
|
@@ -5923,7 +5923,7 @@ const Mi = /* @__PURE__ */ ai(oi, [["render", Ii]]), xi = { class: "config-logs"
|
|
|
5923
5923
|
])
|
|
5924
5924
|
], -1)),
|
|
5925
5925
|
c("tbody", null, [
|
|
5926
|
-
(O(), v(Me, null,
|
|
5926
|
+
(O(), v(Me, null, Ce(n, (p) => c("tr", {
|
|
5927
5927
|
key: p.key
|
|
5928
5928
|
}, [
|
|
5929
5929
|
c("td", null, [
|
|
@@ -5949,7 +5949,7 @@ const Mi = /* @__PURE__ */ ai(oi, [["render", Ii]]), xi = { class: "config-logs"
|
|
|
5949
5949
|
}, null, 8, Ri), [
|
|
5950
5950
|
[Xe, s[p.key].json]
|
|
5951
5951
|
]),
|
|
5952
|
-
w[1] || (w[1] = c("span",
|
|
5952
|
+
w[1] || (w[1] = c("span", { class: "config-logs__slider" }, null, -1))
|
|
5953
5953
|
])
|
|
5954
5954
|
])
|
|
5955
5955
|
])), 64))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function($,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):($=typeof globalThis<"u"?globalThis:$||self,l($.NpmAppFrontB24={},$.Vue))})(this,function($,l){"use strict";class Y extends Error{}class Pn extends Y{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Gn extends Y{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Jn extends Y{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class J extends Y{}class dt extends Y{constructor(e){super(`Invalid unit ${e}`)}}class b extends Y{}class U extends Y{constructor(){super("Zone is an abstract class")}}const d="numeric",A="short",C="long",pe={year:d,month:d,day:d},ft={year:d,month:A,day:d},jn={year:d,month:A,day:d,weekday:A},ht={year:d,month:C,day:d},mt={year:d,month:C,day:d,weekday:C},yt={hour:d,minute:d},gt={hour:d,minute:d,second:d},kt={hour:d,minute:d,second:d,timeZoneName:A},wt={hour:d,minute:d,second:d,timeZoneName:C},Et={hour:d,minute:d,hourCycle:"h23"},pt={hour:d,minute:d,second:d,hourCycle:"h23"},Tt={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:A},St={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:C},Nt={year:d,month:d,day:d,hour:d,minute:d},Ot={year:d,month:d,day:d,hour:d,minute:d,second:d},Dt={year:d,month:A,day:d,hour:d,minute:d},bt={year:d,month:A,day:d,hour:d,minute:d,second:d},Kn={year:d,month:A,day:d,weekday:A,hour:d,minute:d},Vt={year:d,month:C,day:d,hour:d,minute:d,timeZoneName:A},It={year:d,month:C,day:d,hour:d,minute:d,second:d,timeZoneName:A},Mt={year:d,month:C,day:d,weekday:C,hour:d,minute:d,timeZoneName:C},Ct={year:d,month:C,day:d,weekday:C,hour:d,minute:d,second:d,timeZoneName:C};class oe{get type(){throw new U}get name(){throw new U}get ianaName(){return this.name}get isUniversal(){throw new U}offsetName(e,n){throw new U}formatOffset(e,n){throw new U}offset(e){throw new U}equals(e){throw new U}get isValid(){throw new U}}let _e=null;class Te extends oe{static get instance(){return _e===null&&(_e=new Te),_e}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return nn(e,n,s)}formatOffset(e,n){return de(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const $e=new Map;function Qn(t){let e=$e.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),$e.set(t,e)),e}const Xn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function es(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,a,o,u,c,f]=s;return[a,r,i,o,u,c,f]}function ts(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:a}=n[r],o=Xn[i];i==="era"?s[o]=a:y(o)||(s[o]=parseInt(a,10))}return s}const Ze=new Map;class Z extends oe{static create(e){let n=Ze.get(e);return n===void 0&&Ze.set(e,n=new Z(e)),n}static resetCache(){Ze.clear(),$e.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return nn(e,n,s,this.name)}formatOffset(e,n){return de(this.offset(e),n)}offset(e){if(!this.valid)return NaN;const n=new Date(e);if(isNaN(n))return NaN;const s=Qn(this.name);let[r,i,a,o,u,c,f]=s.formatToParts?ts(s,n):es(s,n);o==="BC"&&(r=-Math.abs(r)+1);const p=be({year:r,month:i,day:a,hour:u===24?0:u,minute:c,second:f,millisecond:0});let h=+n;const k=h%1e3;return h-=k>=0?k:1e3+k,(p-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let xt={};function ns(t,e={}){const n=JSON.stringify([t,e]);let s=xt[n];return s||(s=new Intl.ListFormat(t,e),xt[n]=s),s}const Re=new Map;function Ue(t,e={}){const n=JSON.stringify([t,e]);let s=Re.get(n);return s===void 0&&(s=new Intl.DateTimeFormat(t,e),Re.set(n,s)),s}const ze=new Map;function ss(t,e={}){const n=JSON.stringify([t,e]);let s=ze.get(n);return s===void 0&&(s=new Intl.NumberFormat(t,e),ze.set(n,s)),s}const qe=new Map;function rs(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=qe.get(r);return i===void 0&&(i=new Intl.RelativeTimeFormat(t,e),qe.set(r,i)),i}let le=null;function is(){return le||(le=new Intl.DateTimeFormat().resolvedOptions().locale,le)}const Be=new Map;function Ft(t){let e=Be.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Be.set(t,e)),e}const Ye=new Map;function as(t){let e=Ye.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...Lt,...e}),Ye.set(t,e)}return e}function os(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let s,r;try{s=Ue(t).resolvedOptions(),r=t}catch{const u=t.substring(0,n);s=Ue(u).resolvedOptions(),r=u}const{numberingSystem:i,calendar:a}=s;return[r,i,a]}}function ls(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function us(t){const e=[];for(let n=1;n<=12;n++){const s=g.utc(2009,n,1);e.push(t(s))}return e}function cs(t){const e=[];for(let n=1;n<=7;n++){const s=g.utc(2016,11,13+n);e.push(t(s))}return e}function Se(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function ds(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Ft(t.locale).numberingSystem==="latn"}class fs{constructor(e,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:i,...a}=s;if(!n||Object.keys(a).length>0){const o={useGrouping:!1,...s};s.padTo>0&&(o.minimumIntegerDigits=s.padTo),this.inf=ss(e,o)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):et(e,3);return D(n,this.padTo)}}}class hs{constructor(e,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Z.create(o).valid?(r=o,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=Ue(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ms{constructor(e,n,s){this.opts={style:"long",...s},!n&&Qt()&&(this.rtf=rs(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):vs(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const Lt={firstDay:1,minimalDays:4,weekend:[6,7]};class S{static fromOpts(e){return S.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,s,r,i=!1){const a=e||N.defaultLocale,o=a||(i?"en-US":is()),u=n||N.defaultNumberingSystem,c=s||N.defaultOutputCalendar,f=Qe(r)||N.defaultWeekSettings;return new S(o,u,c,f,a)}static resetCache(){le=null,Re.clear(),ze.clear(),qe.clear(),Be.clear(),Ye.clear()}static fromObject({locale:e,numberingSystem:n,outputCalendar:s,weekSettings:r}={}){return S.create(e,n,s,r)}constructor(e,n,s,r,i){const[a,o,u]=os(e);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=s||u||null,this.weekSettings=r,this.intl=ls(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=ds(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:S.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Qe(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Se(this,e,an,()=>{const s=this.intl==="ja"||this.intl.startsWith("ja-");n&=!s;const r=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";if(!this.monthsCache[i][e]){const a=s?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[i][e]=us(a)}return this.monthsCache[i][e]})}weekdays(e,n=!1){return Se(this,e,un,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=n?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=cs(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Se(this,void 0,()=>cn,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[g.utc(2016,11,13,9),g.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Se(this,e,dn,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[g.utc(-40,1,1),g.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,n,s){const r=this.dtFormatter(e,n),i=r.formatToParts(),a=i.find(o=>o.type.toLowerCase()===s);return a?a.value:null}numberFormatter(e={}){return new fs(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new hs(e,this.intl,n)}relFormatter(e={}){return new ms(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ns(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Ft(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Xt()?as(this.locale):Lt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let He=null;class I extends oe{static get utcInstance(){return He===null&&(He=new I(0)),He}static instance(e){return e===0?I.utcInstance:new I(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new I(Ve(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${de(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${de(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return de(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class ys extends oe{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function z(t,e){if(y(t)||t===null)return e;if(t instanceof oe)return t;if(Ts(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Te.instance:n==="utc"||n==="gmt"?I.utcInstance:I.parseSpecifier(n)||Z.create(t)}else return q(t)?I.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new ys(t)}const Pe={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},At={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},gs=Pe.hanidec.replace(/[\[|\]]/g,"").split("");function ks(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(t[n].search(Pe.hanidec)!==-1)e+=gs.indexOf(t[n]);else for(const r in At){const[i,a]=At[r];s>=i&&s<=a&&(e+=s-i)}}return parseInt(e,10)}else return e}const Ge=new Map;function ws(){Ge.clear()}function W({numberingSystem:t},e=""){const n=t||"latn";let s=Ge.get(n);s===void 0&&(s=new Map,Ge.set(n,s));let r=s.get(e);return r===void 0&&(r=new RegExp(`${Pe[n]}${e}`),s.set(e,r)),r}let Wt=()=>Date.now(),vt="system",_t=null,$t=null,Zt=null,Rt=60,Ut,zt=null;class N{static get now(){return Wt}static set now(e){Wt=e}static set defaultZone(e){vt=e}static get defaultZone(){return z(vt,Te.instance)}static get defaultLocale(){return _t}static set defaultLocale(e){_t=e}static get defaultNumberingSystem(){return $t}static set defaultNumberingSystem(e){$t=e}static get defaultOutputCalendar(){return Zt}static set defaultOutputCalendar(e){Zt=e}static get defaultWeekSettings(){return zt}static set defaultWeekSettings(e){zt=Qe(e)}static get twoDigitCutoffYear(){return Rt}static set twoDigitCutoffYear(e){Rt=e%100}static get throwOnInvalid(){return Ut}static set throwOnInvalid(e){Ut=e}static resetCaches(){S.resetCache(),Z.resetCache(),g.resetCache(),ws()}}class v{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const qt=[0,31,59,90,120,151,181,212,243,273,304,334],Bt=[0,31,60,91,121,152,182,213,244,274,305,335];function x(t,e){return new v("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Je(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function Yt(t,e,n){return n+(ue(t)?Bt:qt)[e-1]}function Ht(t,e){const n=ue(t)?Bt:qt,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function je(t,e){return(t-e+7)%7+1}function Ne(t,e=4,n=1){const{year:s,month:r,day:i}=t,a=Yt(s,r,i),o=je(Je(s,r,i),n);let u=Math.floor((a-o+14-e)/7),c;return u<1?(c=s-1,u=ce(c,e,n)):u>ce(s,e,n)?(c=s+1,u=1):c=s,{weekYear:c,weekNumber:u,weekday:o,...Me(t)}}function Pt(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,a=je(Je(s,1,e),n),o=K(s);let u=r*7+i-a-7+e,c;u<1?(c=s-1,u+=K(c)):u>o?(c=s+1,u-=K(s)):c=s;const{month:f,day:m}=Ht(c,u);return{year:c,month:f,day:m,...Me(t)}}function Ke(t){const{year:e,month:n,day:s}=t,r=Yt(e,n,s);return{year:e,ordinal:r,...Me(t)}}function Gt(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Ht(e,n);return{year:e,month:s,day:r,...Me(t)}}function Jt(t,e){if(!y(t.localWeekday)||!y(t.localWeekNumber)||!y(t.localWeekYear)){if(!y(t.weekday)||!y(t.weekNumber)||!y(t.weekYear))throw new J("Cannot mix locale-based week fields with ISO-based week fields");return y(t.localWeekday)||(t.weekday=t.localWeekday),y(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),y(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Es(t,e=4,n=1){const s=Oe(t.weekYear),r=F(t.weekNumber,1,ce(t.weekYear,e,n)),i=F(t.weekday,1,7);return s?r?i?!1:x("weekday",t.weekday):x("week",t.weekNumber):x("weekYear",t.weekYear)}function ps(t){const e=Oe(t.year),n=F(t.ordinal,1,K(t.year));return e?n?!1:x("ordinal",t.ordinal):x("year",t.year)}function jt(t){const e=Oe(t.year),n=F(t.month,1,12),s=F(t.day,1,De(t.year,t.month));return e?n?s?!1:x("day",t.day):x("month",t.month):x("year",t.year)}function Kt(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=F(e,0,23)||e===24&&n===0&&s===0&&r===0,a=F(n,0,59),o=F(s,0,59),u=F(r,0,999);return i?a?o?u?!1:x("millisecond",r):x("second",s):x("minute",n):x("hour",e)}function y(t){return typeof t>"u"}function q(t){return typeof t=="number"}function Oe(t){return typeof t=="number"&&t%1===0}function Ts(t){return typeof t=="string"}function Ss(t){return Object.prototype.toString.call(t)==="[object Date]"}function Qt(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Xt(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ns(t){return Array.isArray(t)?t:[t]}function en(t,e,n){if(t.length!==0)return t.reduce((s,r)=>{const i=[e(r),r];return s&&n(s[0],i[0])===s[0]?s:i},null)[1]}function Os(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function j(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Qe(t){if(t==null)return null;if(typeof t!="object")throw new b("Week settings must be an object");if(!F(t.firstDay,1,7)||!F(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!F(e,1,7)))throw new b("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function F(t,e,n){return Oe(t)&&t>=e&&t<=n}function Ds(t,e){return t-e*Math.floor(t/e)}function D(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function B(t){if(!(y(t)||t===null||t===""))return parseInt(t,10)}function H(t){if(!(y(t)||t===null||t===""))return parseFloat(t)}function Xe(t){if(!(y(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function et(t,e,n="round"){const s=10**e;switch(n){case"expand":return t>0?Math.ceil(t*s)/s:Math.floor(t*s)/s;case"trunc":return Math.trunc(t*s)/s;case"round":return Math.round(t*s)/s;case"floor":return Math.floor(t*s)/s;case"ceil":return Math.ceil(t*s)/s;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function ue(t){return t%4===0&&(t%100!==0||t%400===0)}function K(t){return ue(t)?366:365}function De(t,e){const n=Ds(e-1,12)+1,s=t+(e-n)/12;return n===2?ue(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function be(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function tn(t,e,n){return-je(Je(t,1,e),n)+e-1}function ce(t,e=4,n=1){const s=tn(t,e,n),r=tn(t+1,e,n);return(K(t)-s+r)/7}function tt(t){return t>99?t:t>N.twoDigitCutoffYear?1900+t:2e3+t}function nn(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(r).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function Ve(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function sn(t){const e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new b(`Invalid unit value ${t}`);return e}function Ie(t,e){const n={};for(const s in t)if(j(t,s)){const r=t[s];if(r==null)continue;n[e(s)]=sn(r)}return n}function de(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${D(n,2)}:${D(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${D(n,2)}${D(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Me(t){return Os(t,["hour","minute","second","millisecond"])}const bs=["January","February","March","April","May","June","July","August","September","October","November","December"],rn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Vs=["J","F","M","A","M","J","J","A","S","O","N","D"];function an(t){switch(t){case"narrow":return[...Vs];case"short":return[...rn];case"long":return[...bs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const on=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ln=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Is=["M","T","W","T","F","S","S"];function un(t){switch(t){case"narrow":return[...Is];case"short":return[...ln];case"long":return[...on];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const cn=["AM","PM"],Ms=["Before Christ","Anno Domini"],Cs=["BC","AD"],xs=["B","A"];function dn(t){switch(t){case"narrow":return[...xs];case"short":return[...Cs];case"long":return[...Ms];default:return null}}function Fs(t){return cn[t.hour<12?0:1]}function Ls(t,e){return un(e)[t.weekday-1]}function As(t,e){return an(e)[t.month-1]}function Ws(t,e){return dn(e)[t.year<0?0:1]}function vs(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${r[t][0]}`;case-1:return m?"yesterday":`last ${r[t][0]}`;case 0:return m?"today":`this ${r[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,c=r[t],f=s?u?c[1]:c[2]||c[1]:u?r[t][0]:t;return a?`${o} ${f} ago`:`in ${o} ${f}`}function fn(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const _s={D:pe,DD:ft,DDD:ht,DDDD:mt,t:yt,tt:gt,ttt:kt,tttt:wt,T:Et,TT:pt,TTT:Tt,TTTT:St,f:Nt,ff:Dt,fff:Vt,ffff:Mt,F:Ot,FF:bt,FFF:It,FFFF:Ct};class V{static create(e,n={}){return new V(e,n)}static parseFormat(e){let n=null,s="",r=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?((s.length>0||r)&&i.push({literal:r||/^\s+$/.test(s),val:s===""?"'":s}),n=null,s="",r=!r):r||o===n?s+=o:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=o,n=o)}return s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(e){return _s[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0,s=void 0){if(this.opts.forceSimple)return D(e,n);const r={...this.opts};return n>0&&(r.padTo=n),s&&(r.signDisplay=s),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,k)=>this.loc.extract(e,h,k),a=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",o=()=>s?Fs(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,k)=>s?As(e,h):i(k?{month:h}:{month:h,day:"numeric"},"month"),c=(h,k)=>s?Ls(e,h):i(k?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),f=h=>{const k=V.macroTokenToFormatOpts(h);return k?this.formatWithSystemDefault(e,k):h},m=h=>s?Ws(e,h):i({era:h},"era"),p=h=>{switch(h){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(h)}};return fn(V.parseFormat(n),p)}formatDurationFromString(e,n){const s=this.opts.signMode==="negativeLargestOnly"?-1:1,r=f=>{switch(f[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(f,m)=>p=>{const h=r(p);if(h){const k=m.isNegativeDuration&&h!==m.largestUnit?s:1;let T;return this.opts.signMode==="negativeLargestOnly"&&h!==m.largestUnit?T="never":this.opts.signMode==="all"?T="always":T="auto",this.num(f.get(h)*k,p.length,T)}else return p},a=V.parseFormat(n),o=a.reduce((f,{literal:m,val:p})=>m?f:f.concat(p),[]),u=e.shiftTo(...o.map(r).filter(f=>f)),c={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return fn(a,i(u,c))}}const hn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Q(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function X(...t){return e=>t.reduce(([n,s,r],i)=>{const[a,o,u]=i(e,r);return[{...n,...a},o||s,u]},[{},null,1]).slice(0,2)}function ee(t,...e){if(t==null)return[null,null];for(const[n,s]of e){const r=n.exec(t);if(r)return s(r)}return[null,null]}function mn(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=B(e[n+r]);return[s,null,n+r]}}const yn=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,$s=`(?:${yn.source}?(?:\\[(${hn.source})\\])?)?`,nt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,gn=RegExp(`${nt.source}${$s}`),st=RegExp(`(?:[Tt]${gn.source})?`),Zs=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Rs=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Us=/(\d{4})-?(\d{3})/,zs=mn("weekYear","weekNumber","weekDay"),qs=mn("year","ordinal"),Bs=/(\d{4})-(\d\d)-(\d\d)/,kn=RegExp(`${nt.source} ?(?:${yn.source}|(${hn.source}))?`),Ys=RegExp(`(?: ${kn.source})?`);function te(t,e,n){const s=t[e];return y(s)?n:B(s)}function Hs(t,e){return[{year:te(t,e),month:te(t,e+1,1),day:te(t,e+2,1)},null,e+3]}function ne(t,e){return[{hours:te(t,e,0),minutes:te(t,e+1,0),seconds:te(t,e+2,0),milliseconds:Xe(t[e+3])},null,e+4]}function fe(t,e){const n=!t[e]&&!t[e+1],s=Ve(t[e+1],t[e+2]),r=n?null:I.instance(s);return[{},r,e+3]}function he(t,e){const n=t[e]?Z.create(t[e]):null;return[{},n,e+1]}const Ps=RegExp(`^T?${nt.source}$`),Gs=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Js(t){const[e,n,s,r,i,a,o,u,c]=t,f=e[0]==="-",m=u&&u[0]==="-",p=(h,k=!1)=>h!==void 0&&(k||h&&f)?-h:h;return[{years:p(H(n)),months:p(H(s)),weeks:p(H(r)),days:p(H(i)),hours:p(H(a)),minutes:p(H(o)),seconds:p(H(u),u==="-0"),milliseconds:p(Xe(c),m)}]}const js={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function rt(t,e,n,s,r,i,a){const o={year:e.length===2?tt(B(e)):B(e),month:rn.indexOf(n)+1,day:B(s),hour:B(r),minute:B(i)};return a&&(o.second=B(a)),t&&(o.weekday=t.length>3?on.indexOf(t)+1:ln.indexOf(t)+1),o}const Ks=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Qs(t){const[,e,n,s,r,i,a,o,u,c,f,m]=t,p=rt(e,r,s,n,i,a,o);let h;return u?h=js[u]:c?h=0:h=Ve(f,m),[p,new I(h)]}function Xs(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const er=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tr=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,nr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function wn(t){const[,e,n,s,r,i,a,o]=t;return[rt(e,r,s,n,i,a,o),I.utcInstance]}function sr(t){const[,e,n,s,r,i,a,o]=t;return[rt(e,o,n,s,r,i,a),I.utcInstance]}const rr=Q(Zs,st),ir=Q(Rs,st),ar=Q(Us,st),or=Q(gn),En=X(Hs,ne,fe,he),lr=X(zs,ne,fe,he),ur=X(qs,ne,fe,he),cr=X(ne,fe,he);function dr(t){return ee(t,[rr,En],[ir,lr],[ar,ur],[or,cr])}function fr(t){return ee(Xs(t),[Ks,Qs])}function hr(t){return ee(t,[er,wn],[tr,wn],[nr,sr])}function mr(t){return ee(t,[Gs,Js])}const yr=X(ne);function gr(t){return ee(t,[Ps,yr])}const kr=Q(Bs,Ys),wr=Q(kn),Er=X(ne,fe,he);function pr(t){return ee(t,[kr,En],[wr,Er])}const pn="Invalid Duration",Tn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Tr={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Tn},L=146097/400,se=146097/4800,Sr={years:{quarters:4,months:12,weeks:L/7,days:L,hours:L*24,minutes:L*24*60,seconds:L*24*60*60,milliseconds:L*24*60*60*1e3},quarters:{months:3,weeks:L/28,days:L/4,hours:L*24/4,minutes:L*24*60/4,seconds:L*24*60*60/4,milliseconds:L*24*60*60*1e3/4},months:{weeks:se/7,days:se,hours:se*24,minutes:se*24*60,seconds:se*24*60*60,milliseconds:se*24*60*60*1e3},...Tn},P=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Nr=P.slice(0).reverse();function R(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new w(s)}function Sn(t,e){let n=e.milliseconds??0;for(const s of Nr.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function Nn(t,e){const n=Sn(t,e)<0?-1:1;P.reduceRight((s,r)=>{if(y(e[r]))return s;if(s){const i=e[s]*n,a=t[r][s],o=Math.floor(i/a);e[r]+=o*n,e[s]-=o*a*n}return r},null),P.reduce((s,r)=>{if(y(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function On(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class w{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?Sr:Tr;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||S.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,n){return w.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new b(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new w({values:Ie(e,w.normalizeUnit),loc:S.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(q(e))return w.fromMillis(e);if(w.isDuration(e))return e;if(typeof e=="object")return w.fromObject(e);throw new b(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=mr(e);return s?w.fromObject(s,n):w.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=gr(e);return s?w.fromObject(s,n):w.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new b("need to specify a reason the Duration is invalid");const s=e instanceof v?e:new v(e,n);if(N.throwOnInvalid)throw new Jn(s);return new w({invalid:s})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new dt(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?V.create(this.loc,s).formatDurationFromString(this,e):pn}toHuman(e={}){if(!this.isValid)return pn;const n=e.showZeros!==!1,s=P.map(r=>{const i=this.values[r];return y(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(s)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=et(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},g.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Sn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=w.fromDurationLike(e),s={};for(const r of P)(j(n.values,r)||j(this.values,r))&&(s[r]=n.get(r)+this.get(r));return R(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=w.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=sn(e(this.values[s],s));return R(this,{values:n},!0)}get(e){return this[w.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Ie(e,w.normalizeUnit)};return R(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:r,conversionAccuracy:s};return R(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Nn(this.matrix,e),R(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=On(this.normalize().shiftToAll().toObject());return R(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>w.normalizeUnit(a));const n={},s={},r=this.toObject();let i;for(const a of P)if(e.indexOf(a)>=0){i=a;let o=0;for(const c in s)o+=this.matrix[c][a]*s[c],s[c]=0;q(r[a])&&(o+=r[a]);const u=Math.trunc(o);n[a]=u,s[a]=(o*1e3-u*1e3)/1e3}else q(r[a])&&(s[a]=r[a]);for(const a in s)s[a]!==0&&(n[i]+=a===i?s[a]:s[a]/this.matrix[i][a]);return Nn(this.matrix,n),R(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return R(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=On(this.values);return R(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of P)if(!n(this.values[s],e.values[s]))return!1;return!0}}const re="Invalid Interval";function Or(t,e){return!t||!t.isValid?O.invalid("missing or invalid start"):!e||!e.isValid?O.invalid("missing or invalid end"):e<t?O.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class O{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new b("need to specify a reason the Interval is invalid");const s=e instanceof v?e:new v(e,n);if(N.throwOnInvalid)throw new Gn(s);return new O({invalid:s})}static fromDateTimes(e,n){const s=ge(e),r=ge(n),i=Or(s,r);return i??new O({start:s,end:r})}static after(e,n){const s=w.fromDurationLike(n),r=ge(e);return O.fromDateTimes(r,r.plus(s))}static before(e,n){const s=w.fromDurationLike(n),r=ge(e);return O.fromDateTimes(r.minus(s),r)}static fromISO(e,n){const[s,r]=(e||"").split("/",2);if(s&&r){let i,a;try{i=g.fromISO(s,n),a=i.isValid}catch{a=!1}let o,u;try{o=g.fromISO(r,n),u=o.isValid}catch{u=!1}if(a&&u)return O.fromDateTimes(i,o);if(a){const c=w.fromISO(r,n);if(c.isValid)return O.after(i,c)}else if(u){const c=w.fromISO(s,n);if(c.isValid)return O.before(o,c)}}return O.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const s=this.start.startOf(e,n);let r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:s.locale}):r=this.end,r=r.startOf(e,n),Math.floor(r.diff(s,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?O.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(ge).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),s=[];let{s:r}=this,i=0;for(;r<this.e;){const a=n[i]||this.e,o=+a>+this.e?this.e:a;s.push(O.fromDateTimes(r,o)),r=o,i+=1}return s}splitBy(e){const n=w.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,i;const a=[];for(;s<this.e;){const o=this.start.plus(n.mapUnits(u=>u*r));i=+o>+this.e?this.e:o,a.push(O.fromDateTimes(s,i)),s=i,r+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,s=this.e<e.e?this.e:e.e;return n>=s?null:O.fromDateTimes(n,s)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,s=this.e>e.e?this.e:e.e;return O.fromDateTimes(n,s)}static merge(e){const[n,s]=e.sort((r,i)=>r.s-i.s).reduce(([r,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[r,i.union(a)]:[r.concat([i]),a]:[r,a],[[],null]);return s&&n.push(s),n}static xor(e){let n=null,s=0;const r=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,c)=>u.time-c.time);for(const u of o)s+=u.type==="s"?1:-1,s===1?n=u.time:(n&&+n!=+u.time&&r.push(O.fromDateTimes(n,u.time)),n=null);return O.merge(r)}difference(...e){return O.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:re}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=pe,n={}){return this.isValid?V.create(this.s.loc.clone(n),e).formatInterval(this):re}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:re}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:re}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:re}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:re}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):w.invalid(this.invalidReason)}mapEndpoints(e){return O.fromDateTimes(e(this.s),e(this.e))}}class Ce{static hasDST(e=N.defaultZone){const n=g.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Z.isValidZone(e)}static normalizeZone(e){return z(e,N.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||S.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||S.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||S.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||S.create(n,s,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||S.create(n,s,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||S.create(n,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||S.create(n,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return S.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return S.create(n,null,"gregory").eras(e)}static features(){return{relative:Qt(),localeWeek:Xt()}}}function Dn(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(w.fromMillis(s).as("days"))}function Dr(t,e,n){const s=[["years",(u,c)=>c.year-u.year],["quarters",(u,c)=>c.quarter-u.quarter+(c.year-u.year)*4],["months",(u,c)=>c.month-u.month+(c.year-u.year)*12],["weeks",(u,c)=>{const f=Dn(u,c);return(f-f%7)/7}],["days",Dn]],r={},i=t;let a,o;for(const[u,c]of s)n.indexOf(u)>=0&&(a=u,r[u]=c(t,e),o=i.plus(r),o>e?(r[u]--,t=i.plus(r),t>e&&(o=t,r[u]--,t=i.plus(r))):t=o);return[t,r,o,a]}function br(t,e,n,s){let[r,i,a,o]=Dr(t,e,n);const u=e-r,c=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(a<e&&(a=r.plus({[o]:1})),a!==r&&(i[o]=(i[o]||0)+u/(a-r)));const f=w.fromObject(i,s);return c.length>0?w.fromMillis(u,s).shiftTo(...c).plus(f):f}const Vr="missing Intl.DateTimeFormat.formatToParts support";function E(t,e=n=>n){return{regex:t,deser:([n])=>e(ks(n))}}const bn="[ ]",Vn=new RegExp(bn,"g");function Ir(t){return t.replace(/\./g,"\\.?").replace(Vn,bn)}function In(t){return t.replace(/\./g,"").replace(Vn," ").toLowerCase()}function _(t,e){return t===null?null:{regex:RegExp(t.map(Ir).join("|")),deser:([n])=>t.findIndex(s=>In(n)===In(s))+e}}function Mn(t,e){return{regex:t,deser:([,n,s])=>Ve(n,s),groups:e}}function xe(t){return{regex:t,deser:([e])=>e}}function Mr(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Cr(t,e){const n=W(e),s=W(e,"{2}"),r=W(e,"{3}"),i=W(e,"{4}"),a=W(e,"{6}"),o=W(e,"{1,2}"),u=W(e,"{1,3}"),c=W(e,"{1,6}"),f=W(e,"{1,9}"),m=W(e,"{2,4}"),p=W(e,"{4,6}"),h=M=>({regex:RegExp(Mr(M.val)),deser:([ae])=>ae,literal:!0}),T=(M=>{if(t.literal)return h(M);switch(M.val){case"G":return _(e.eras("short"),0);case"GG":return _(e.eras("long"),0);case"y":return E(c);case"yy":return E(m,tt);case"yyyy":return E(i);case"yyyyy":return E(p);case"yyyyyy":return E(a);case"M":return E(o);case"MM":return E(s);case"MMM":return _(e.months("short",!0),1);case"MMMM":return _(e.months("long",!0),1);case"L":return E(o);case"LL":return E(s);case"LLL":return _(e.months("short",!1),1);case"LLLL":return _(e.months("long",!1),1);case"d":return E(o);case"dd":return E(s);case"o":return E(u);case"ooo":return E(r);case"HH":return E(s);case"H":return E(o);case"hh":return E(s);case"h":return E(o);case"mm":return E(s);case"m":return E(o);case"q":return E(o);case"qq":return E(s);case"s":return E(o);case"ss":return E(s);case"S":return E(u);case"SSS":return E(r);case"u":return xe(f);case"uu":return xe(o);case"uuu":return E(n);case"a":return _(e.meridiems(),0);case"kkkk":return E(i);case"kk":return E(m,tt);case"W":return E(o);case"WW":return E(s);case"E":case"c":return E(n);case"EEE":return _(e.weekdays("short",!1),1);case"EEEE":return _(e.weekdays("long",!1),1);case"ccc":return _(e.weekdays("short",!0),1);case"cccc":return _(e.weekdays("long",!0),1);case"Z":case"ZZ":return Mn(new RegExp(`([+-]${o.source})(?::(${s.source}))?`),2);case"ZZZ":return Mn(new RegExp(`([+-]${o.source})(${s.source})?`),2);case"z":return xe(/[a-z_+-/]{1,256}?/i);case" ":return xe(/[^\S\n\r]/);default:return h(M)}})(t)||{invalidReason:Vr};return T.token=t,T}const xr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Fr(t,e,n){const{type:s,value:r}=t;if(s==="literal"){const u=/^\s+$/.test(r);return{literal:!u,val:u?" ":r}}const i=e[s];let a=s;s==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let o=xr[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Lr(t){return[`^${t.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,t]}function Ar(t,e,n){const s=t.match(e);if(s){const r={};let i=1;for(const a in n)if(j(n,a)){const o=n[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(s.slice(i,i+u))),i+=u}return[s,r]}else return[s,{}]}function Wr(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return y(t.z)||(n=Z.create(t.z)),y(t.Z)||(n||(n=new I(t.Z)),s=t.Z),y(t.q)||(t.M=(t.q-1)*3+1),y(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),y(t.u)||(t.S=Xe(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),n,s]}let it=null;function vr(){return it||(it=g.fromMillis(1555555555555)),it}function _r(t,e){if(t.literal)return t;const n=V.macroTokenToFormatOpts(t.val),s=Ln(n,e);return s==null||s.includes(void 0)?t:s}function Cn(t,e){return Array.prototype.concat(...t.map(n=>_r(n,e)))}class xn{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=Cn(V.parseFormat(n),e),this.units=this.tokens.map(s=>Cr(s,e)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=Lr(this.units);this.regex=RegExp(s,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){const[n,s]=Ar(e,this.regex,this.handlers),[r,i,a]=s?Wr(s):[null,null,void 0];if(j(s,"a")&&j(s,"H"))throw new J("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:s,result:r,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Fn(t,e,n){return new xn(t,n).explainFromTokens(e)}function $r(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:a}=Fn(t,e,n);return[s,r,i,a]}function Ln(t,e){if(!t)return null;const s=V.create(e,t).dtFormatter(vr()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(a=>Fr(a,t,i))}const at="Invalid DateTime",An=864e13;function me(t){return new v("unsupported zone",`the zone "${t.name}" is not supported`)}function ot(t){return t.weekData===null&&(t.weekData=Ne(t.c)),t.weekData}function lt(t){return t.localWeekData===null&&(t.localWeekData=Ne(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function G(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new g({...n,...e,old:n})}function Wn(t,e,n){let s=t-e*60*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=(r-e)*60*1e3;const i=n.offset(s);return r===i?[s,r]:[t-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Fe(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Le(t,e,n){return Wn(be(t),e,n)}function vn(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:s,month:r,day:Math.min(t.c.day,De(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=w.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=be(i);let[u,c]=Wn(o,n,t.zone);return a!==0&&(u+=a,c=t.zone.offset(u)),{ts:u,o:c}}function ie(t,e,n,s,r,i){const{setZone:a,zone:o}=n;if(t&&Object.keys(t).length!==0||e){const u=e||o,c=g.fromObject(t,{...n,zone:u,specificOffset:i});return a?c:c.setZone(o)}else return g.invalid(new v("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Ae(t,e,n=!0){return t.isValid?V.create(S.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ut(t,e,n){const s=t.c.year>9999||t.c.year<0;let r="";if(s&&t.c.year>=0&&(r+="+"),r+=D(t.c.year,s?6:4),n==="year")return r;if(e){if(r+="-",r+=D(t.c.month),n==="month")return r;r+="-"}else if(r+=D(t.c.month),n==="month")return r;return r+=D(t.c.day),r}function _n(t,e,n,s,r,i,a){let o=!n||t.c.millisecond!==0||t.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=D(t.c.hour),a==="hour")break;if(e){if(u+=":",u+=D(t.c.minute),a==="minute")break;o&&(u+=":",u+=D(t.c.second))}else{if(u+=D(t.c.minute),a==="minute")break;o&&(u+=D(t.c.second))}if(a==="second")break;o&&(!s||t.c.millisecond!==0)&&(u+=".",u+=D(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&t.offset===0&&!i?u+="Z":t.o<0?(u+="-",u+=D(Math.trunc(-t.o/60)),u+=":",u+=D(Math.trunc(-t.o%60))):(u+="+",u+=D(Math.trunc(t.o/60)),u+=":",u+=D(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Zr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Rr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},We=["year","month","day","hour","minute","second","millisecond"],Ur=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],zr=["year","ordinal","hour","minute","second","millisecond"];function ve(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new dt(t);return e}function Zn(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return ve(t)}}function qr(t){if(ye===void 0&&(ye=N.now()),t.type!=="iana")return t.offset(ye);const e=t.name;let n=ct.get(e);return n===void 0&&(n=t.offset(ye),ct.set(e,n)),n}function Rn(t,e){const n=z(e.zone,N.defaultZone);if(!n.isValid)return g.invalid(me(n));const s=S.fromObject(e);let r,i;if(y(t.year))r=N.now();else{for(const u of We)y(t[u])&&(t[u]=$n[u]);const a=jt(t)||Kt(t);if(a)return g.invalid(a);const o=qr(n);[r,i]=Le(t,o,n)}return new g({ts:r,zone:n,loc:s,o:i})}function Un(t,e,n){const s=y(n.round)?!0:n.round,r=y(n.rounding)?"trunc":n.rounding,i=(o,u)=>(o=et(o,s||n.calendary?0:2,n.calendary?"round":r),e.loc.clone(n).relFormatter(n).format(o,u)),a=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const u=a(o);if(Math.abs(u)>=1)return i(u,o)}return i(t>e?-0:0,n.units[n.units.length-1])}function zn(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let ye;const ct=new Map;class g{constructor(e){const n=e.zone||N.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new v("invalid input"):null)||(n.isValid?null:me(n));this.ts=y(e.ts)?N.now():e.ts;let r=null,i=null;if(!s)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[r,i]=[e.old.c,e.old.o];else{const o=q(e.o)&&!e.old?e.o:n.offset(this.ts);r=Fe(this.ts,o),s=Number.isNaN(r.year)?new v("invalid input"):null,r=s?null:r,i=s?null:o}this._zone=n,this.loc=e.loc||S.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new g({})}static local(){const[e,n]=zn(arguments),[s,r,i,a,o,u,c]=n;return Rn({year:s,month:r,day:i,hour:a,minute:o,second:u,millisecond:c},e)}static utc(){const[e,n]=zn(arguments),[s,r,i,a,o,u,c]=n;return e.zone=I.utcInstance,Rn({year:s,month:r,day:i,hour:a,minute:o,second:u,millisecond:c},e)}static fromJSDate(e,n={}){const s=Ss(e)?e.valueOf():NaN;if(Number.isNaN(s))return g.invalid("invalid input");const r=z(n.zone,N.defaultZone);return r.isValid?new g({ts:s,zone:r,loc:S.fromObject(n)}):g.invalid(me(r))}static fromMillis(e,n={}){if(q(e))return e<-An||e>An?g.invalid("Timestamp out of range"):new g({ts:e,zone:z(n.zone,N.defaultZone),loc:S.fromObject(n)});throw new b(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(q(e))return new g({ts:e*1e3,zone:z(n.zone,N.defaultZone),loc:S.fromObject(n)});throw new b("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=z(n.zone,N.defaultZone);if(!s.isValid)return g.invalid(me(s));const r=S.fromObject(n),i=Ie(e,Zn),{minDaysInFirstWeek:a,startOfWeek:o}=Jt(i,r),u=N.now(),c=y(n.specificOffset)?s.offset(u):n.specificOffset,f=!y(i.ordinal),m=!y(i.year),p=!y(i.month)||!y(i.day),h=m||p,k=i.weekYear||i.weekNumber;if((h||f)&&k)throw new J("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&f)throw new J("Can't mix ordinal dates with month/day");const T=k||i.weekday&&!h;let M,ae,ke=Fe(u,c);T?(M=Ur,ae=Zr,ke=Ne(ke,a,o)):f?(M=zr,ae=Rr,ke=Ke(ke)):(M=We,ae=$n);let Yn=!1;for(const Ee of M){const Fi=i[Ee];y(Fi)?Yn?i[Ee]=ae[Ee]:i[Ee]=ke[Ee]:Yn=!0}const Ii=T?Es(i,a,o):f?ps(i):jt(i),Hn=Ii||Kt(i);if(Hn)return g.invalid(Hn);const Mi=T?Pt(i,a,o):f?Gt(i):i,[Ci,xi]=Le(Mi,c,s),we=new g({ts:Ci,zone:s,o:xi,loc:r});return i.weekday&&h&&e.weekday!==we.weekday?g.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${we.toISO()}`):we.isValid?we:g.invalid(we.invalid)}static fromISO(e,n={}){const[s,r]=dr(e);return ie(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=fr(e);return ie(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=hr(e);return ie(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(y(e)||y(n))throw new b("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,a=S.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,u,c,f]=$r(a,e,n);return f?g.invalid(f):ie(o,u,s,`format ${n}`,e,c)}static fromString(e,n,s={}){return g.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=pr(e);return ie(s,r,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new b("need to specify a reason the DateTime is invalid");const s=e instanceof v?e:new v(e,n);if(N.throwOnInvalid)throw new Pn(s);return new g({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=Ln(e,S.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return Cn(V.parseFormat(e),S.fromObject(n)).map(r=>r.val).join("")}static resetCache(){ye=void 0,ct.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ot(this).weekYear:NaN}get weekNumber(){return this.isValid?ot(this).weekNumber:NaN}get weekday(){return this.isValid?ot(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?lt(this).weekday:NaN}get localWeekNumber(){return this.isValid?lt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?lt(this).weekYear:NaN}get ordinal(){return this.isValid?Ke(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ce.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ce.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ce.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ce.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,s=be(this.c),r=this.zone.offset(s-e),i=this.zone.offset(s+e),a=this.zone.offset(s-r*n),o=this.zone.offset(s-i*n);if(a===o)return[this];const u=s-a*n,c=s-o*n,f=Fe(u,a),m=Fe(c,o);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[G(this,{ts:u}),G(this,{ts:c})]:[this]}get isInLeapYear(){return ue(this.year)}get daysInMonth(){return De(this.year,this.month)}get daysInYear(){return this.isValid?K(this.year):NaN}get weeksInWeekYear(){return this.isValid?ce(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ce(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:s,calendar:r}=V.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(e=0,n={}){return this.setZone(I.instance(e),n)}toLocal(){return this.setZone(N.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=z(e,N.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(n||s){const i=e.offset(this.ts),a=this.toObject();[r]=Le(a,i,e)}return G(this,{ts:r,zone:e})}else return g.invalid(me(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return G(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Ie(e,Zn),{minDaysInFirstWeek:s,startOfWeek:r}=Jt(n,this.loc),i=!y(n.weekYear)||!y(n.weekNumber)||!y(n.weekday),a=!y(n.ordinal),o=!y(n.year),u=!y(n.month)||!y(n.day),c=o||u,f=n.weekYear||n.weekNumber;if((c||a)&&f)throw new J("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new J("Can't mix ordinal dates with month/day");let m;i?m=Pt({...Ne(this.c,s,r),...n},s,r):y(n.ordinal)?(m={...this.toObject(),...n},y(n.day)&&(m.day=Math.min(De(m.year,m.month),m.day))):m=Gt({...Ke(this.c),...n});const[p,h]=Le(m,this.o,this.zone);return G(this,{ts:p,o:h})}plus(e){if(!this.isValid)return this;const n=w.fromDurationLike(e);return G(this,vn(this,n))}minus(e){if(!this.isValid)return this;const n=w.fromDurationLike(e).negate();return G(this,vn(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=w.normalizeUnit(e);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(s.weekNumber=this.weekNumber-1),s.weekday=i}else s.weekday=1;if(r==="quarters"){const i=Math.ceil(this.month/3);s.month=(i-1)*3+1}return this.set(s)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?V.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):at}toLocaleString(e=pe,n={}){return this.isValid?V.create(this.loc.clone(n),e).formatDateTime(this):at}toLocaleParts(e={}){return this.isValid?V.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=ve(a);const o=e==="extended";let u=ut(this,o,a);return We.indexOf(a)>=3&&(u+="T"),u+=_n(this,o,n,s,r,i,a),u}toISODate({format:e="extended",precision:n="day"}={}){return this.isValid?ut(this,e==="extended",ve(n)):null}toISOWeekDate(){return Ae(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:i=!1,format:a="extended",precision:o="milliseconds"}={}){return this.isValid?(o=ve(o),(r&&We.indexOf(o)>=3?"T":"")+_n(this,a==="extended",n,e,s,i,o)):null}toRFC2822(){return Ae(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ae(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ut(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||e)&&(s&&(r+=" "),n?r+="z":e&&(r+="ZZ")),Ae(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():at}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",s={}){if(!this.isValid||!e.isValid)return w.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=Ns(n).map(w.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,u=a?e:this,c=br(o,u,i,r);return a?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(g.now(),e,n)}until(e){return this.isValid?O.fromDateTimes(this,e):this}hasSame(e,n,s){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,s)<=r&&r<=i.endOf(n,s)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||g.fromObject({},{zone:this.zone}),s=e.padding?this<n?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),Un(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?Un(e.base||g.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(g.isDateTime))throw new b("min requires all arguments be DateTimes");return en(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(g.isDateTime))throw new b("max requires all arguments be DateTimes");return en(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,s={}){const{locale:r=null,numberingSystem:i=null}=s,a=S.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Fn(a,e,n)}static fromStringExplain(e,n,s={}){return g.fromFormatExplain(e,n,s)}static buildFormatParser(e,n={}){const{locale:s=null,numberingSystem:r=null}=n,i=S.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return new xn(i,e)}static fromFormatParser(e,n,s={}){if(y(e)||y(n))throw new b("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=s,a=S.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new b(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:o,zone:u,specificOffset:c,invalidReason:f}=n.explainFromTokens(e);return f?g.invalid(f):ie(o,u,s,`format ${n.format}`,e,c)}static get DATE_SHORT(){return pe}static get DATE_MED(){return ft}static get DATE_MED_WITH_WEEKDAY(){return jn}static get DATE_FULL(){return ht}static get DATE_HUGE(){return mt}static get TIME_SIMPLE(){return yt}static get TIME_WITH_SECONDS(){return gt}static get TIME_WITH_SHORT_OFFSET(){return kt}static get TIME_WITH_LONG_OFFSET(){return wt}static get TIME_24_SIMPLE(){return Et}static get TIME_24_WITH_SECONDS(){return pt}static get TIME_24_WITH_SHORT_OFFSET(){return Tt}static get TIME_24_WITH_LONG_OFFSET(){return St}static get DATETIME_SHORT(){return Nt}static get DATETIME_SHORT_WITH_SECONDS(){return Ot}static get DATETIME_MED(){return Dt}static get DATETIME_MED_WITH_SECONDS(){return bt}static get DATETIME_MED_WITH_WEEKDAY(){return Kn}static get DATETIME_FULL(){return Vt}static get DATETIME_FULL_WITH_SECONDS(){return It}static get DATETIME_HUGE(){return Mt}static get DATETIME_HUGE_WITH_SECONDS(){return Ct}}function ge(t){if(g.isDateTime(t))return t;if(t&&t.valueOf&&q(t.valueOf()))return g.fromJSDate(t);if(t&&typeof t=="object")return g.fromObject(t);throw new b(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Br=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Yr={name:"Subscriptions",data(){return{events:[],subscribedEvents:[],entities:{list:[],total:0},autoRefresh:!0,auth_connector:""}},computed:{},methods:{formatDate(t){return t?g.fromISO(t).toFormat("dd.MM HH:mm:ss"):""},pause(t){return new Promise(e=>setTimeout(e,t))},async eventsList(){console.log("Запускаем eventsList");try{let t=await $b24.callMethod("events",{});this.events=t.getData().result}catch(t){console.error("Ошибка при получении списка событий:",t)}},async subscribeToEvents(t){try{await $b24.callMethod("event.bind",{event:t,event_type:"offline",auth_connector:this.auth_connector}),console.log(`Подписались на событие ${t}.`)}catch(e){console.error("Ошибка при подписке на события:",e)}await this.pause(1e3),await this.getSubscribedEvents()},async getSubscribedEvents(){try{let t=await $b24.callMethod("event.get",{});this.subscribedEvents=t.getData().result,console.log("Подписанные события:",this.subscribedEvents)}catch(t){console.error("Ошибка при получении подписанных событий:",t)}},async unbindSubscribedEvents(t){try{await $b24.callMethod("event.unbind",{event:t.event,event_type:t.offline==1?"offline":"online",auth_connector:t.connector_id}),await this.pause(1e3),await this.getSubscribedEvents()}catch(e){console.error("Ошибка при отписке от событий:",e)}},async loadOfflineEntitiesList(){let e=await $b24.callListMethod("event.offline.list",{start:0,auth_connector:this.auth_connector});this.entities.list=e.getData(),this.entities.total=e.getData().length},async deleteOfflineEntities(t){let e=await $b24.callMethod("event.offline.clear",{process_id:t.PROCESS_ID,id:[t.ID],auth_connector:this.auth_connector});console.log("Удалили сущности из оффлан событий:",e.getData()),await this.pause(1e3),await this.loadOfflineEntitiesList()},async deleteOfflineEntitiesAll(){if(!confirm("Вы уверены, что хотите удалить все НЕ обработанные сущности? Это действие необратимо!"))return;let t=this.entities.total/50+1;console.log("Всего страниц для удаления:",t);for(let e=1;e<=t;e++){let s=(await $b24.callMethod("event.offline.list",{start:0})).getData().result.map(a=>a.PROCESS_ID).filter(a=>a);console.log("PROCESS_ID для удаления:",s);let r={};s.forEach((a,o)=>{r[`clear_${o}`]={method:"event.offline.clear",params:{process_id:a}}}),console.log("batchCommands:",r);let i=await $b24.callBatch(r);console.log("Результат batch удаления сущностей:",i.getData())}await this.pause(500),await this.loadOfflineEntitiesList()},async deleteOfflineEntitiesAllEmpty(){if(!confirm("Вы уверены, что хотите удалить все пустые НЕ обработанные сущности? Это действие необратимо!"))return;let t=await $b24.callMethod("event.offline.clear",{process_id:""});console.log("Результат удаления сущностей с пустым PROCESS_ID:",t.getData())},isSubscribed(t){return this.subscribedEvents.some(e=>e.event==t)},autoRefreshEntities(){this.autoRefresh&&setTimeout(async()=>{await this.loadOfflineEntitiesList(),this.autoRefreshEntities()},3e3)},async entityUpdate(t){var n,s,r,i,a,o,u;let e=!1;console.log("Запущена функция entityUpdate для изменения сущности с ID:",(n=t.EVENT_DATA.FIELDS)==null?void 0:n.ID);try{if((s=t.EVENT_DATA.FIELDS)!=null&&s.ENTITY_TYPE_ID&&((r=t.EVENT_DATA.FIELDS)==null?void 0:r.ENTITY_TYPE_ID)>0){let c=await $b24.callMethod("crm.item.get",{entityTypeId:t.EVENT_DATA.FIELDS.ENTITY_TYPE_ID,id:t.EVENT_DATA.FIELDS.ID});if(c=c.getData().result.item,console.log("Данные смарт процесса до изменения:",c),c.id==((i=t.EVENT_DATA.FIELDS)==null?void 0:i.ID)){let f=await $b24.callMethod("crm.item.update",{entityTypeId:t.EVENT_DATA.FIELDS.ENTITY_TYPE_ID,id:t.EVENT_DATA.FIELDS.ID,fields:{title:c.title+"123"}});console.log("Результат обновления смарт процесса:",f.getData()),f.id===c.id?(console.log("Сущность успешно обновлена."),e=!0):(console.error("Ошибка при обновлении сущности."),e=!0)}else e=!0}else{let c=await $b24.callMethod("crm.deal.get",{id:(a=t.EVENT_DATA.FIELDS)==null?void 0:a.ID});if(c=c.getData().result,console.log("Данные сделки до изменения:",c),c.ID==((o=t.EVENT_DATA.FIELDS)==null?void 0:o.ID)){let f=await $b24.callMethod("crm.deal.update",{id:(u=t.EVENT_DATA.FIELDS)==null?void 0:u.ID,fields:{TITLE:c.TITLE}});console.log("Результат обновления сделки:",f.getData()),f=f.getData().result,f===!0?console.log("Сущность успешно обновлена."):(console.error("Ошибка при обновлении сущности."),e=!0)}else e=!0}}catch(c){console.error("Ошибка при обновлении сущности:",c),c=!0}e||await this.deleteOfflineEntities(t)}},watch:{},mounted(){this.getSubscribedEvents(),this.eventsList(),this.loadOfflineEntitiesList(),this.autoRefreshEntities()}},Hr={class:"Subscriptions"},Pr={key:0},Gr=["disabled"],Jr={class:"switch tooltipParent",style:{top:"12px"}},jr={key:0},Kr={key:0,class:"main"},Qr=["onClick"],Xr=["onClick"],ei=["href"],ti={class:"tooltipParent",style:{}},ni={class:"tooltip"},si={key:1},ri={key:1},ii={key:0,class:"main"},ai=["onClick"],oi={key:1},li={key:0,class:"main"},ui=["onClick","disabled"],ci={key:1},di={key:2};function fi(t,e,n,s,r,i){return l.openBlock(),l.createElementBlock("div",Hr,[e[15]||(e[15]=l.createElementVNode("h1",null,"Страница подписок",-1)),l.createElementVNode("button",{onClick:e[0]||(e[0]=a=>t.selectTab("tab1"))},"Сущности"),l.createElementVNode("button",{onClick:e[1]||(e[1]=a=>t.selectTab("tab2"))},"События"),e[16]||(e[16]=l.createElementVNode("br",null,null,-1)),e[17]||(e[17]=l.createElementVNode("br",null,null,-1)),e[18]||(e[18]=l.createElementVNode("br",null,null,-1)),t.tabs.tab1?(l.openBlock(),l.createElementBlock("div",Pr,[l.createElementVNode("div",null,[l.createElementVNode("button",{onClick:e[2]||(e[2]=(...a)=>i.loadOfflineEntitiesList&&i.loadOfflineEntitiesList(...a)),disabled:t.loading},"Обновить",8,Gr),l.createElementVNode("label",Jr,[l.withDirectives(l.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":e[3]||(e[3]=a=>r.autoRefresh=a),onChange:e[4]||(e[4]=(...a)=>i.autoRefreshEntities&&i.autoRefreshEntities(...a))},null,544),[[l.vModelCheckbox,r.autoRefresh]]),e[7]||(e[7]=l.createElementVNode("span",{class:"slider"},null,-1)),e[8]||(e[8]=l.createElementVNode("span",{class:"tooltip"},"Автообновление каждые 3 секунды",-1))])]),r.entities.list.length>0?(l.openBlock(),l.createElementBlock("div",jr,[l.createElementVNode("p",null,[l.createElementVNode("button",{onClick:e[5]||(e[5]=(...a)=>i.deleteOfflineEntitiesAll&&i.deleteOfflineEntitiesAll(...a))},"Удалить все"),l.createElementVNode("button",{onClick:e[6]||(e[6]=(...a)=>i.deleteOfflineEntitiesAllEmpty&&i.deleteOfflineEntitiesAllEmpty(...a))},"Удалить все пустые"),l.createTextVNode(" Всего измененных сущностей "+l.toDisplayString(r.entities.total),1)]),r.entities.list.length?(l.openBlock(),l.createElementBlock("table",Kr,[e[10]||(e[10]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",null,"#"),l.createElementVNode("th",null,"Удалить"),l.createElementVNode("th",null,"Обновить"),l.createElementVNode("th",null,"Дата"),l.createElementVNode("th",null,"PROCESS_ID"),l.createElementVNode("th",null,"EVENT_NAME"),l.createElementVNode("th",null,"Ссылка"),l.createElementVNode("th",null,"EVENT_DATA"),l.createElementVNode("th",null,"who_update"),l.createElementVNode("th",null,"entity")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.entities.list,(a,o)=>{var u,c,f,m;return l.openBlock(),l.createElementBlock("tr",{key:a.PROCESS_ID+"-"+a.ID},[l.createElementVNode("td",null,l.toDisplayString(o+1),1),l.createElementVNode("td",null,[l.createElementVNode("button",{onClick:p=>i.deleteOfflineEntities(a)},"Удалить",8,Qr)]),l.createElementVNode("td",null,[(u=a.EVENT_DATA.FIELDS)!=null&&u.ID&&(a.EVENT_NAME=="ONCRMDEALUPDATE"||a.EVENT_NAME.includes("ONCRMDYNAMICITEMUPDATE_"))?(l.openBlock(),l.createElementBlock("button",{key:0,onClick:p=>i.entityUpdate(a)},"Изменить",8,Xr)):l.createCommentVNode("",!0)]),l.createElementVNode("td",null,l.toDisplayString(i.formatDate(a.TIMESTAMP_X)),1),l.createElementVNode("td",null,l.toDisplayString(a.PROCESS_ID),1),l.createElementVNode("td",null,l.toDisplayString(a.EVENT_NAME),1),l.createElementVNode("td",null,[(c=a.EVENT_DATA.FIELDS)!=null&&c.ID&&a.EVENT_NAME=="ONCRMDEALUPDATE"?(l.openBlock(),l.createElementBlock("a",{key:0,href:"https://repacheb.bitrix24.ru/crm/deal/details/"+((f=a.EVENT_DATA.FIELDS)==null?void 0:f.ID)+"/",target:"_blank",rel:"noopener noreferrer"},l.toDisplayString((m=a.EVENT_DATA.FIELDS)==null?void 0:m.ID),9,ei)):l.createCommentVNode("",!0)]),l.createElementVNode("td",null,l.toDisplayString(a.EVENT_DATA),1),l.createElementVNode("td",null,l.toDisplayString(a.EVENT_ADDITIONAL.user_id),1),l.createElementVNode("td",ti,[e[9]||(e[9]=l.createElementVNode("span",null,"Подробней",-1)),l.createElementVNode("span",ni,l.toDisplayString(a),1)])])}),128))])])):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("div",si,"Список сущностей пуст."))])):l.createCommentVNode("",!0),t.tabs.tab2?(l.openBlock(),l.createElementBlock("div",ri,[l.createElementVNode("div",null,[e[12]||(e[12]=l.createElementVNode("h3",null,"Подписаны на события:",-1)),r.subscribedEvents.length?(l.openBlock(),l.createElementBlock("table",ii,[e[11]||(e[11]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",null,"Событие"),l.createElementVNode("th",null,"connector_id"),l.createElementVNode("th",null,"offline"),l.createElementVNode("th",null,"Отписаться")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.subscribedEvents,a=>(l.openBlock(),l.createElementBlock("tr",{key:a.id},[l.createElementVNode("td",null,l.toDisplayString(a.event),1),l.createElementVNode("td",null,l.toDisplayString(a.connector_id),1),l.createElementVNode("td",null,l.toDisplayString(a.offline),1),l.createElementVNode("td",null,[l.createElementVNode("button",{onClick:o=>i.unbindSubscribedEvents(a)},"Отписаться от событий",8,ai)])]))),128))])])):(l.openBlock(),l.createElementBlock("p",oi,"Подписок на события нет."))]),l.createElementVNode("div",null,[e[14]||(e[14]=l.createElementVNode("h3",null,"На какие события можно подписаться:",-1)),r.events.length?(l.openBlock(),l.createElementBlock("table",li,[e[13]||(e[13]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",null,"Событие"),l.createElementVNode("th",null,"Подписаться")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.events,a=>(l.openBlock(),l.createElementBlock("tr",{key:a},[l.createElementVNode("td",null,l.toDisplayString(a),1),l.createElementVNode("td",null,[l.createElementVNode("button",{onClick:o=>i.subscribeToEvents(a),disabled:i.isSubscribed(a),class:l.normalizeClass({"disabled-button":i.isSubscribed(a)})},"Подписаться",10,ui)])]))),128))])])):(l.openBlock(),l.createElementBlock("p",ci,"Список событий пуст."))])])):l.createCommentVNode("",!0),t.tabs.tab3?(l.openBlock(),l.createElementBlock("div",di)):l.createCommentVNode("",!0)])}const qn=Br(Yr,[["render",fi]]),hi={class:"config-logs"},mi={key:0,class:"config-logs__loading"},yi={key:1,class:"config-logs__error"},gi={key:2},ki={class:"config-logs__table"},wi={class:"config-logs__level-name"},Ei={class:"config-logs__level-key"},pi={class:"config-logs__switch"},Ti=["onUpdate:modelValue"],Si={class:"config-logs__checkbox"},Ni=["onUpdate:modelValue"],Oi={class:"config-logs__actions"},Di=["disabled"],bi=["disabled"],Bn={__name:"ConfigLogs",props:{apiBase:{type:String,default:""},secretKey:{type:String,default:""},configName:{type:String,default:"log"}},setup(t){const e=t,n=[{key:"trace",label:"Трассировка"},{key:"debug",label:"Отладка"},{key:"info",label:"Информация"},{key:"warn",label:"Предупреждения"},{key:"error",label:"Ошибки"}],s=l.reactive({trace:{enabled:!1,json:!0,color:""},debug:{enabled:!0,json:!0,color:""},info:{enabled:!0,json:!0,color:""},warn:{enabled:!0,json:!0,color:""},error:{enabled:!0,json:!0,color:""}}),r=l.ref(!1),i=l.ref(!1),a=l.ref(""),o=l.ref(""),u=l.ref("ok");function c(){const h={"Content-Type":"application/json"};return e.secretKey&&(h.secret=e.secretKey),h}function f(){return`${e.apiBase.replace(/\/+$/,"")}/api/config/${e.configName}`}async function m(){r.value=!0,a.value="",o.value="";try{const k=await(await fetch(f(),{headers:c()})).json();if(k.status==="ok"&&k.data)for(const T of n)k.data[T.key]&&(s[T.key].enabled=k.data[T.key].enabled??!1,s[T.key].json=k.data[T.key].json??!0,s[T.key].color=k.data[T.key].color??"");else a.value=k.message||"Не удалось загрузить конфиг"}catch(h){a.value=`Ошибка загрузки: ${h.message}`}finally{r.value=!1}}async function p(){i.value=!0,o.value="";const h={};for(const k of n)h[k.key]={enabled:s[k.key].enabled,color:s[k.key].color,json:s[k.key].json};try{const T=await(await fetch(f(),{method:"POST",headers:c(),body:JSON.stringify(h)})).json();T.status==="ok"?(o.value=T.message||"Конфиг сохранён",u.value="ok"):(o.value=T.message||"Ошибка сохранения",u.value="error")}catch(k){o.value=`Ошибка сохранения: ${k.message}`,u.value="error"}finally{i.value=!1}}return l.onMounted(()=>{m()}),(h,k)=>(l.openBlock(),l.createElementBlock("div",hi,[k[3]||(k[3]=l.createElementVNode("h2",null,"Уровни логирования",-1)),r.value?(l.openBlock(),l.createElementBlock("div",mi,"Загрузка...")):a.value?(l.openBlock(),l.createElementBlock("div",yi,[l.createElementVNode("p",null,l.toDisplayString(a.value),1),l.createElementVNode("button",{onClick:m},"Повторить")])):(l.openBlock(),l.createElementBlock("div",gi,[l.createElementVNode("table",ki,[k[2]||(k[2]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",null,"Уровень"),l.createElementVNode("th",null,"Включён"),l.createElementVNode("th",null,"JSON-формат")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(n,T=>l.createElementVNode("tr",{key:T.key},[l.createElementVNode("td",null,[l.createElementVNode("span",wi,l.toDisplayString(T.label),1),l.createElementVNode("span",Ei,l.toDisplayString(T.key),1)]),l.createElementVNode("td",null,[l.createElementVNode("label",pi,[l.withDirectives(l.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":M=>s[T.key].enabled=M},null,8,Ti),[[l.vModelCheckbox,s[T.key].enabled]]),k[0]||(k[0]=l.createElementVNode("span",{class:"config-logs__slider"},null,-1))])]),l.createElementVNode("td",null,[l.createElementVNode("label",Si,[l.withDirectives(l.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":M=>s[T.key].json=M},null,8,Ni),[[l.vModelCheckbox,s[T.key].json]]),k[1]||(k[1]=l.createElementVNode("span",null,"JSON",-1))])])])),64))])]),l.createElementVNode("div",Oi,[l.createElementVNode("button",{onClick:p,disabled:i.value},l.toDisplayString(i.value?"Сохранение...":"Сохранить"),9,Di),l.createElementVNode("button",{onClick:m,disabled:r.value},"Обновить",8,bi)]),o.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["config-logs__message",u.value==="ok"?"config-logs__message--success":"config-logs__message--error"])},l.toDisplayString(o.value),3)):l.createCommentVNode("",!0)]))]))}},Vi={install(t,e={}){t.component("Subscriptions",qn),t.component("ConfigLogs",Bn),e.b24&&(t.config.globalProperties.$b24=e.b24)}};$.ConfigLogs=Bn,$.Subscriptions=qn,$.default=Vi,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function($,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):($=typeof globalThis<"u"?globalThis:$||self,l($.NpmAppFrontB24={},$.Vue))})(this,function($,l){"use strict";class Y extends Error{}class Pn extends Y{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Gn extends Y{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Jn extends Y{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class J extends Y{}class dt extends Y{constructor(e){super(`Invalid unit ${e}`)}}class b extends Y{}class U extends Y{constructor(){super("Zone is an abstract class")}}const d="numeric",A="short",C="long",pe={year:d,month:d,day:d},ft={year:d,month:A,day:d},jn={year:d,month:A,day:d,weekday:A},ht={year:d,month:C,day:d},mt={year:d,month:C,day:d,weekday:C},yt={hour:d,minute:d},gt={hour:d,minute:d,second:d},kt={hour:d,minute:d,second:d,timeZoneName:A},wt={hour:d,minute:d,second:d,timeZoneName:C},Et={hour:d,minute:d,hourCycle:"h23"},pt={hour:d,minute:d,second:d,hourCycle:"h23"},Tt={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:A},St={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:C},Nt={year:d,month:d,day:d,hour:d,minute:d},Ot={year:d,month:d,day:d,hour:d,minute:d,second:d},Dt={year:d,month:A,day:d,hour:d,minute:d},bt={year:d,month:A,day:d,hour:d,minute:d,second:d},Kn={year:d,month:A,day:d,weekday:A,hour:d,minute:d},Vt={year:d,month:C,day:d,hour:d,minute:d,timeZoneName:A},It={year:d,month:C,day:d,hour:d,minute:d,second:d,timeZoneName:A},Mt={year:d,month:C,day:d,weekday:C,hour:d,minute:d,timeZoneName:C},Ct={year:d,month:C,day:d,weekday:C,hour:d,minute:d,second:d,timeZoneName:C};class oe{get type(){throw new U}get name(){throw new U}get ianaName(){return this.name}get isUniversal(){throw new U}offsetName(e,n){throw new U}formatOffset(e,n){throw new U}offset(e){throw new U}equals(e){throw new U}get isValid(){throw new U}}let ve=null;class Te extends oe{static get instance(){return ve===null&&(ve=new Te),ve}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return nn(e,n,s)}formatOffset(e,n){return de(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const $e=new Map;function Qn(t){let e=$e.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),$e.set(t,e)),e}const Xn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function es(t,e){const n=t.format(e).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,i,a,o,u,c,f]=s;return[a,r,i,o,u,c,f]}function ts(t,e){const n=t.formatToParts(e),s=[];for(let r=0;r<n.length;r++){const{type:i,value:a}=n[r],o=Xn[i];i==="era"?s[o]=a:y(o)||(s[o]=parseInt(a,10))}return s}const Ze=new Map;class Z extends oe{static create(e){let n=Ze.get(e);return n===void 0&&Ze.set(e,n=new Z(e)),n}static resetCache(){Ze.clear(),$e.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:s}){return nn(e,n,s,this.name)}formatOffset(e,n){return de(this.offset(e),n)}offset(e){if(!this.valid)return NaN;const n=new Date(e);if(isNaN(n))return NaN;const s=Qn(this.name);let[r,i,a,o,u,c,f]=s.formatToParts?ts(s,n):es(s,n);o==="BC"&&(r=-Math.abs(r)+1);const p=be({year:r,month:i,day:a,hour:u===24?0:u,minute:c,second:f,millisecond:0});let h=+n;const k=h%1e3;return h-=k>=0?k:1e3+k,(p-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let xt={};function ns(t,e={}){const n=JSON.stringify([t,e]);let s=xt[n];return s||(s=new Intl.ListFormat(t,e),xt[n]=s),s}const Re=new Map;function Ue(t,e={}){const n=JSON.stringify([t,e]);let s=Re.get(n);return s===void 0&&(s=new Intl.DateTimeFormat(t,e),Re.set(n,s)),s}const ze=new Map;function ss(t,e={}){const n=JSON.stringify([t,e]);let s=ze.get(n);return s===void 0&&(s=new Intl.NumberFormat(t,e),ze.set(n,s)),s}const qe=new Map;function rs(t,e={}){const{base:n,...s}=e,r=JSON.stringify([t,s]);let i=qe.get(r);return i===void 0&&(i=new Intl.RelativeTimeFormat(t,e),qe.set(r,i)),i}let le=null;function is(){return le||(le=new Intl.DateTimeFormat().resolvedOptions().locale,le)}const Be=new Map;function Ft(t){let e=Be.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Be.set(t,e)),e}const Ye=new Map;function as(t){let e=Ye.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...Lt,...e}),Ye.set(t,e)}return e}function os(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let s,r;try{s=Ue(t).resolvedOptions(),r=t}catch{const u=t.substring(0,n);s=Ue(u).resolvedOptions(),r=u}const{numberingSystem:i,calendar:a}=s;return[r,i,a]}}function ls(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function us(t){const e=[];for(let n=1;n<=12;n++){const s=g.utc(2009,n,1);e.push(t(s))}return e}function cs(t){const e=[];for(let n=1;n<=7;n++){const s=g.utc(2016,11,13+n);e.push(t(s))}return e}function Se(t,e,n,s){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):s(e)}function ds(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Ft(t.locale).numberingSystem==="latn"}class fs{constructor(e,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const{padTo:r,floor:i,...a}=s;if(!n||Object.keys(a).length>0){const o={useGrouping:!1,...s};s.padTo>0&&(o.minimumIntegerDigits=s.padTo),this.inf=ss(e,o)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):et(e,3);return D(n,this.padTo)}}}class hs{constructor(e,n,s){this.opts=s,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Z.create(o).valid?(r=o,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=Ue(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:s}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ms{constructor(e,n,s){this.opts={style:"long",...s},!n&&Qt()&&(this.rtf=rs(e,s))}format(e,n){return this.rtf?this.rtf.format(e,n):_s(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const Lt={firstDay:1,minimalDays:4,weekend:[6,7]};class S{static fromOpts(e){return S.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,s,r,i=!1){const a=e||N.defaultLocale,o=a||(i?"en-US":is()),u=n||N.defaultNumberingSystem,c=s||N.defaultOutputCalendar,f=Qe(r)||N.defaultWeekSettings;return new S(o,u,c,f,a)}static resetCache(){le=null,Re.clear(),ze.clear(),qe.clear(),Be.clear(),Ye.clear()}static fromObject({locale:e,numberingSystem:n,outputCalendar:s,weekSettings:r}={}){return S.create(e,n,s,r)}constructor(e,n,s,r,i){const[a,o,u]=os(e);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=s||u||null,this.weekSettings=r,this.intl=ls(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=ds(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:S.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Qe(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Se(this,e,an,()=>{const s=this.intl==="ja"||this.intl.startsWith("ja-");n&=!s;const r=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";if(!this.monthsCache[i][e]){const a=s?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[i][e]=us(a)}return this.monthsCache[i][e]})}weekdays(e,n=!1){return Se(this,e,un,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=n?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=cs(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return Se(this,void 0,()=>cn,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[g.utc(2016,11,13,9),g.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Se(this,e,dn,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[g.utc(-40,1,1),g.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,n,s){const r=this.dtFormatter(e,n),i=r.formatToParts(),a=i.find(o=>o.type.toLowerCase()===s);return a?a.value:null}numberFormatter(e={}){return new fs(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new hs(e,this.intl,n)}relFormatter(e={}){return new ms(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ns(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Ft(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Xt()?as(this.locale):Lt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let He=null;class I extends oe{static get utcInstance(){return He===null&&(He=new I(0)),He}static instance(e){return e===0?I.utcInstance:new I(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new I(Ve(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${de(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${de(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return de(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class ys extends oe{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function z(t,e){if(y(t)||t===null)return e;if(t instanceof oe)return t;if(Ts(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Te.instance:n==="utc"||n==="gmt"?I.utcInstance:I.parseSpecifier(n)||Z.create(t)}else return q(t)?I.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new ys(t)}const Pe={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},At={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},gs=Pe.hanidec.replace(/[\[|\]]/g,"").split("");function ks(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);if(t[n].search(Pe.hanidec)!==-1)e+=gs.indexOf(t[n]);else for(const r in At){const[i,a]=At[r];s>=i&&s<=a&&(e+=s-i)}}return parseInt(e,10)}else return e}const Ge=new Map;function ws(){Ge.clear()}function W({numberingSystem:t},e=""){const n=t||"latn";let s=Ge.get(n);s===void 0&&(s=new Map,Ge.set(n,s));let r=s.get(e);return r===void 0&&(r=new RegExp(`${Pe[n]}${e}`),s.set(e,r)),r}let Wt=()=>Date.now(),_t="system",vt=null,$t=null,Zt=null,Rt=60,Ut,zt=null;class N{static get now(){return Wt}static set now(e){Wt=e}static set defaultZone(e){_t=e}static get defaultZone(){return z(_t,Te.instance)}static get defaultLocale(){return vt}static set defaultLocale(e){vt=e}static get defaultNumberingSystem(){return $t}static set defaultNumberingSystem(e){$t=e}static get defaultOutputCalendar(){return Zt}static set defaultOutputCalendar(e){Zt=e}static get defaultWeekSettings(){return zt}static set defaultWeekSettings(e){zt=Qe(e)}static get twoDigitCutoffYear(){return Rt}static set twoDigitCutoffYear(e){Rt=e%100}static get throwOnInvalid(){return Ut}static set throwOnInvalid(e){Ut=e}static resetCaches(){S.resetCache(),Z.resetCache(),g.resetCache(),ws()}}class _{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const qt=[0,31,59,90,120,151,181,212,243,273,304,334],Bt=[0,31,60,91,121,152,182,213,244,274,305,335];function x(t,e){return new _("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Je(t,e,n){const s=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function Yt(t,e,n){return n+(ue(t)?Bt:qt)[e-1]}function Ht(t,e){const n=ue(t)?Bt:qt,s=n.findIndex(i=>i<e),r=e-n[s];return{month:s+1,day:r}}function je(t,e){return(t-e+7)%7+1}function Ne(t,e=4,n=1){const{year:s,month:r,day:i}=t,a=Yt(s,r,i),o=je(Je(s,r,i),n);let u=Math.floor((a-o+14-e)/7),c;return u<1?(c=s-1,u=ce(c,e,n)):u>ce(s,e,n)?(c=s+1,u=1):c=s,{weekYear:c,weekNumber:u,weekday:o,...Me(t)}}function Pt(t,e=4,n=1){const{weekYear:s,weekNumber:r,weekday:i}=t,a=je(Je(s,1,e),n),o=K(s);let u=r*7+i-a-7+e,c;u<1?(c=s-1,u+=K(c)):u>o?(c=s+1,u-=K(s)):c=s;const{month:f,day:m}=Ht(c,u);return{year:c,month:f,day:m,...Me(t)}}function Ke(t){const{year:e,month:n,day:s}=t,r=Yt(e,n,s);return{year:e,ordinal:r,...Me(t)}}function Gt(t){const{year:e,ordinal:n}=t,{month:s,day:r}=Ht(e,n);return{year:e,month:s,day:r,...Me(t)}}function Jt(t,e){if(!y(t.localWeekday)||!y(t.localWeekNumber)||!y(t.localWeekYear)){if(!y(t.weekday)||!y(t.weekNumber)||!y(t.weekYear))throw new J("Cannot mix locale-based week fields with ISO-based week fields");return y(t.localWeekday)||(t.weekday=t.localWeekday),y(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),y(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Es(t,e=4,n=1){const s=Oe(t.weekYear),r=F(t.weekNumber,1,ce(t.weekYear,e,n)),i=F(t.weekday,1,7);return s?r?i?!1:x("weekday",t.weekday):x("week",t.weekNumber):x("weekYear",t.weekYear)}function ps(t){const e=Oe(t.year),n=F(t.ordinal,1,K(t.year));return e?n?!1:x("ordinal",t.ordinal):x("year",t.year)}function jt(t){const e=Oe(t.year),n=F(t.month,1,12),s=F(t.day,1,De(t.year,t.month));return e?n?s?!1:x("day",t.day):x("month",t.month):x("year",t.year)}function Kt(t){const{hour:e,minute:n,second:s,millisecond:r}=t,i=F(e,0,23)||e===24&&n===0&&s===0&&r===0,a=F(n,0,59),o=F(s,0,59),u=F(r,0,999);return i?a?o?u?!1:x("millisecond",r):x("second",s):x("minute",n):x("hour",e)}function y(t){return typeof t>"u"}function q(t){return typeof t=="number"}function Oe(t){return typeof t=="number"&&t%1===0}function Ts(t){return typeof t=="string"}function Ss(t){return Object.prototype.toString.call(t)==="[object Date]"}function Qt(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Xt(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ns(t){return Array.isArray(t)?t:[t]}function en(t,e,n){if(t.length!==0)return t.reduce((s,r)=>{const i=[e(r),r];return s&&n(s[0],i[0])===s[0]?s:i},null)[1]}function Os(t,e){return e.reduce((n,s)=>(n[s]=t[s],n),{})}function j(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Qe(t){if(t==null)return null;if(typeof t!="object")throw new b("Week settings must be an object");if(!F(t.firstDay,1,7)||!F(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!F(e,1,7)))throw new b("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function F(t,e,n){return Oe(t)&&t>=e&&t<=n}function Ds(t,e){return t-e*Math.floor(t/e)}function D(t,e=2){const n=t<0;let s;return n?s="-"+(""+-t).padStart(e,"0"):s=(""+t).padStart(e,"0"),s}function B(t){if(!(y(t)||t===null||t===""))return parseInt(t,10)}function H(t){if(!(y(t)||t===null||t===""))return parseFloat(t)}function Xe(t){if(!(y(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function et(t,e,n="round"){const s=10**e;switch(n){case"expand":return t>0?Math.ceil(t*s)/s:Math.floor(t*s)/s;case"trunc":return Math.trunc(t*s)/s;case"round":return Math.round(t*s)/s;case"floor":return Math.floor(t*s)/s;case"ceil":return Math.ceil(t*s)/s;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function ue(t){return t%4===0&&(t%100!==0||t%400===0)}function K(t){return ue(t)?366:365}function De(t,e){const n=Ds(e-1,12)+1,s=t+(e-n)/12;return n===2?ue(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function be(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function tn(t,e,n){return-je(Je(t,1,e),n)+e-1}function ce(t,e=4,n=1){const s=tn(t,e,n),r=tn(t+1,e,n);return(K(t)-s+r)/7}function tt(t){return t>99?t:t>N.twoDigitCutoffYear?1900+t:2e3+t}function nn(t,e,n,s=null){const r=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(r).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function Ve(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const s=parseInt(e,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function sn(t){const e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new b(`Invalid unit value ${t}`);return e}function Ie(t,e){const n={};for(const s in t)if(j(t,s)){const r=t[s];if(r==null)continue;n[e(s)]=sn(r)}return n}function de(t,e){const n=Math.trunc(Math.abs(t/60)),s=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${D(n,2)}:${D(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${D(n,2)}${D(s,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Me(t){return Os(t,["hour","minute","second","millisecond"])}const bs=["January","February","March","April","May","June","July","August","September","October","November","December"],rn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Vs=["J","F","M","A","M","J","J","A","S","O","N","D"];function an(t){switch(t){case"narrow":return[...Vs];case"short":return[...rn];case"long":return[...bs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const on=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ln=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Is=["M","T","W","T","F","S","S"];function un(t){switch(t){case"narrow":return[...Is];case"short":return[...ln];case"long":return[...on];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const cn=["AM","PM"],Ms=["Before Christ","Anno Domini"],Cs=["BC","AD"],xs=["B","A"];function dn(t){switch(t){case"narrow":return[...xs];case"short":return[...Cs];case"long":return[...Ms];default:return null}}function Fs(t){return cn[t.hour<12?0:1]}function Ls(t,e){return un(e)[t.weekday-1]}function As(t,e){return an(e)[t.month-1]}function Ws(t,e){return dn(e)[t.year<0?0:1]}function _s(t,e,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const m=t==="days";switch(e){case 1:return m?"tomorrow":`next ${r[t][0]}`;case-1:return m?"yesterday":`last ${r[t][0]}`;case 0:return m?"today":`this ${r[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,c=r[t],f=s?u?c[1]:c[2]||c[1]:u?r[t][0]:t;return a?`${o} ${f} ago`:`in ${o} ${f}`}function fn(t,e){let n="";for(const s of t)s.literal?n+=s.val:n+=e(s.val);return n}const vs={D:pe,DD:ft,DDD:ht,DDDD:mt,t:yt,tt:gt,ttt:kt,tttt:wt,T:Et,TT:pt,TTT:Tt,TTTT:St,f:Nt,ff:Dt,fff:Vt,ffff:Mt,F:Ot,FF:bt,FFF:It,FFFF:Ct};class V{static create(e,n={}){return new V(e,n)}static parseFormat(e){let n=null,s="",r=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?((s.length>0||r)&&i.push({literal:r||/^\s+$/.test(s),val:s===""?"'":s}),n=null,s="",r=!r):r||o===n?s+=o:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=o,n=o)}return s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(e){return vs[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0,s=void 0){if(this.opts.forceSimple)return D(e,n);const r={...this.opts};return n>0&&(r.padTo=n),s&&(r.signDisplay=s),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,k)=>this.loc.extract(e,h,k),a=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",o=()=>s?Fs(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,k)=>s?As(e,h):i(k?{month:h}:{month:h,day:"numeric"},"month"),c=(h,k)=>s?Ls(e,h):i(k?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),f=h=>{const k=V.macroTokenToFormatOpts(h);return k?this.formatWithSystemDefault(e,k):h},m=h=>s?Ws(e,h):i({era:h},"era"),p=h=>{switch(h){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(h)}};return fn(V.parseFormat(n),p)}formatDurationFromString(e,n){const s=this.opts.signMode==="negativeLargestOnly"?-1:1,r=f=>{switch(f[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(f,m)=>p=>{const h=r(p);if(h){const k=m.isNegativeDuration&&h!==m.largestUnit?s:1;let T;return this.opts.signMode==="negativeLargestOnly"&&h!==m.largestUnit?T="never":this.opts.signMode==="all"?T="always":T="auto",this.num(f.get(h)*k,p.length,T)}else return p},a=V.parseFormat(n),o=a.reduce((f,{literal:m,val:p})=>m?f:f.concat(p),[]),u=e.shiftTo(...o.map(r).filter(f=>f)),c={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return fn(a,i(u,c))}}const hn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Q(...t){const e=t.reduce((n,s)=>n+s.source,"");return RegExp(`^${e}$`)}function X(...t){return e=>t.reduce(([n,s,r],i)=>{const[a,o,u]=i(e,r);return[{...n,...a},o||s,u]},[{},null,1]).slice(0,2)}function ee(t,...e){if(t==null)return[null,null];for(const[n,s]of e){const r=n.exec(t);if(r)return s(r)}return[null,null]}function mn(...t){return(e,n)=>{const s={};let r;for(r=0;r<t.length;r++)s[t[r]]=B(e[n+r]);return[s,null,n+r]}}const yn=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,$s=`(?:${yn.source}?(?:\\[(${hn.source})\\])?)?`,nt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,gn=RegExp(`${nt.source}${$s}`),st=RegExp(`(?:[Tt]${gn.source})?`),Zs=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Rs=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Us=/(\d{4})-?(\d{3})/,zs=mn("weekYear","weekNumber","weekDay"),qs=mn("year","ordinal"),Bs=/(\d{4})-(\d\d)-(\d\d)/,kn=RegExp(`${nt.source} ?(?:${yn.source}|(${hn.source}))?`),Ys=RegExp(`(?: ${kn.source})?`);function te(t,e,n){const s=t[e];return y(s)?n:B(s)}function Hs(t,e){return[{year:te(t,e),month:te(t,e+1,1),day:te(t,e+2,1)},null,e+3]}function ne(t,e){return[{hours:te(t,e,0),minutes:te(t,e+1,0),seconds:te(t,e+2,0),milliseconds:Xe(t[e+3])},null,e+4]}function fe(t,e){const n=!t[e]&&!t[e+1],s=Ve(t[e+1],t[e+2]),r=n?null:I.instance(s);return[{},r,e+3]}function he(t,e){const n=t[e]?Z.create(t[e]):null;return[{},n,e+1]}const Ps=RegExp(`^T?${nt.source}$`),Gs=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Js(t){const[e,n,s,r,i,a,o,u,c]=t,f=e[0]==="-",m=u&&u[0]==="-",p=(h,k=!1)=>h!==void 0&&(k||h&&f)?-h:h;return[{years:p(H(n)),months:p(H(s)),weeks:p(H(r)),days:p(H(i)),hours:p(H(a)),minutes:p(H(o)),seconds:p(H(u),u==="-0"),milliseconds:p(Xe(c),m)}]}const js={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function rt(t,e,n,s,r,i,a){const o={year:e.length===2?tt(B(e)):B(e),month:rn.indexOf(n)+1,day:B(s),hour:B(r),minute:B(i)};return a&&(o.second=B(a)),t&&(o.weekday=t.length>3?on.indexOf(t)+1:ln.indexOf(t)+1),o}const Ks=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Qs(t){const[,e,n,s,r,i,a,o,u,c,f,m]=t,p=rt(e,r,s,n,i,a,o);let h;return u?h=js[u]:c?h=0:h=Ve(f,m),[p,new I(h)]}function Xs(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const er=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tr=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,nr=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function wn(t){const[,e,n,s,r,i,a,o]=t;return[rt(e,r,s,n,i,a,o),I.utcInstance]}function sr(t){const[,e,n,s,r,i,a,o]=t;return[rt(e,o,n,s,r,i,a),I.utcInstance]}const rr=Q(Zs,st),ir=Q(Rs,st),ar=Q(Us,st),or=Q(gn),En=X(Hs,ne,fe,he),lr=X(zs,ne,fe,he),ur=X(qs,ne,fe,he),cr=X(ne,fe,he);function dr(t){return ee(t,[rr,En],[ir,lr],[ar,ur],[or,cr])}function fr(t){return ee(Xs(t),[Ks,Qs])}function hr(t){return ee(t,[er,wn],[tr,wn],[nr,sr])}function mr(t){return ee(t,[Gs,Js])}const yr=X(ne);function gr(t){return ee(t,[Ps,yr])}const kr=Q(Bs,Ys),wr=Q(kn),Er=X(ne,fe,he);function pr(t){return ee(t,[kr,En],[wr,Er])}const pn="Invalid Duration",Tn={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Tr={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Tn},L=146097/400,se=146097/4800,Sr={years:{quarters:4,months:12,weeks:L/7,days:L,hours:L*24,minutes:L*24*60,seconds:L*24*60*60,milliseconds:L*24*60*60*1e3},quarters:{months:3,weeks:L/28,days:L/4,hours:L*24/4,minutes:L*24*60/4,seconds:L*24*60*60/4,milliseconds:L*24*60*60*1e3/4},months:{weeks:se/7,days:se,hours:se*24,minutes:se*24*60,seconds:se*24*60*60,milliseconds:se*24*60*60*1e3},...Tn},P=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Nr=P.slice(0).reverse();function R(t,e,n=!1){const s={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new w(s)}function Sn(t,e){let n=e.milliseconds??0;for(const s of Nr.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}function Nn(t,e){const n=Sn(t,e)<0?-1:1;P.reduceRight((s,r)=>{if(y(e[r]))return s;if(s){const i=e[s]*n,a=t[r][s],o=Math.floor(i/a);e[r]+=o*n,e[s]-=o*a*n}return r},null),P.reduce((s,r)=>{if(y(e[r]))return s;if(s){const i=e[s]%1;e[s]-=i,e[r]+=i*t[s][r]}return r},null)}function On(t){const e={};for(const[n,s]of Object.entries(t))s!==0&&(e[n]=s);return e}class w{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let s=n?Sr:Tr;e.matrix&&(s=e.matrix),this.values=e.values,this.loc=e.loc||S.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=s,this.isLuxonDuration=!0}static fromMillis(e,n){return w.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new b(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new w({values:Ie(e,w.normalizeUnit),loc:S.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(q(e))return w.fromMillis(e);if(w.isDuration(e))return e;if(typeof e=="object")return w.fromObject(e);throw new b(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[s]=mr(e);return s?w.fromObject(s,n):w.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[s]=gr(e);return s?w.fromObject(s,n):w.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new b("need to specify a reason the Duration is invalid");const s=e instanceof _?e:new _(e,n);if(N.throwOnInvalid)throw new Jn(s);return new w({invalid:s})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new dt(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const s={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?V.create(this.loc,s).formatDurationFromString(this,e):pn}toHuman(e={}){if(!this.isValid)return pn;const n=e.showZeros!==!1,s=P.map(r=>{const i=this.values[r];return y(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(s)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=et(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},g.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Sn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=w.fromDurationLike(e),s={};for(const r of P)(j(n.values,r)||j(this.values,r))&&(s[r]=n.get(r)+this.get(r));return R(this,{values:s},!0)}minus(e){if(!this.isValid)return this;const n=w.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=sn(e(this.values[s],s));return R(this,{values:n},!0)}get(e){return this[w.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Ie(e,w.normalizeUnit)};return R(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:s,matrix:r}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:r,conversionAccuracy:s};return R(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Nn(this.matrix,e),R(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=On(this.normalize().shiftToAll().toObject());return R(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>w.normalizeUnit(a));const n={},s={},r=this.toObject();let i;for(const a of P)if(e.indexOf(a)>=0){i=a;let o=0;for(const c in s)o+=this.matrix[c][a]*s[c],s[c]=0;q(r[a])&&(o+=r[a]);const u=Math.trunc(o);n[a]=u,s[a]=(o*1e3-u*1e3)/1e3}else q(r[a])&&(s[a]=r[a]);for(const a in s)s[a]!==0&&(n[i]+=a===i?s[a]:s[a]/this.matrix[i][a]);return Nn(this.matrix,n),R(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return R(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=On(this.values);return R(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of P)if(!n(this.values[s],e.values[s]))return!1;return!0}}const re="Invalid Interval";function Or(t,e){return!t||!t.isValid?O.invalid("missing or invalid start"):!e||!e.isValid?O.invalid("missing or invalid end"):e<t?O.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class O{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new b("need to specify a reason the Interval is invalid");const s=e instanceof _?e:new _(e,n);if(N.throwOnInvalid)throw new Gn(s);return new O({invalid:s})}static fromDateTimes(e,n){const s=ge(e),r=ge(n),i=Or(s,r);return i??new O({start:s,end:r})}static after(e,n){const s=w.fromDurationLike(n),r=ge(e);return O.fromDateTimes(r,r.plus(s))}static before(e,n){const s=w.fromDurationLike(n),r=ge(e);return O.fromDateTimes(r.minus(s),r)}static fromISO(e,n){const[s,r]=(e||"").split("/",2);if(s&&r){let i,a;try{i=g.fromISO(s,n),a=i.isValid}catch{a=!1}let o,u;try{o=g.fromISO(r,n),u=o.isValid}catch{u=!1}if(a&&u)return O.fromDateTimes(i,o);if(a){const c=w.fromISO(r,n);if(c.isValid)return O.after(i,c)}else if(u){const c=w.fromISO(s,n);if(c.isValid)return O.before(o,c)}}return O.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const s=this.start.startOf(e,n);let r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:s.locale}):r=this.end,r=r.startOf(e,n),Math.floor(r.diff(s,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?O.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(ge).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),s=[];let{s:r}=this,i=0;for(;r<this.e;){const a=n[i]||this.e,o=+a>+this.e?this.e:a;s.push(O.fromDateTimes(r,o)),r=o,i+=1}return s}splitBy(e){const n=w.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,i;const a=[];for(;s<this.e;){const o=this.start.plus(n.mapUnits(u=>u*r));i=+o>+this.e?this.e:o,a.push(O.fromDateTimes(s,i)),s=i,r+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,s=this.e<e.e?this.e:e.e;return n>=s?null:O.fromDateTimes(n,s)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,s=this.e>e.e?this.e:e.e;return O.fromDateTimes(n,s)}static merge(e){const[n,s]=e.sort((r,i)=>r.s-i.s).reduce(([r,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[r,i.union(a)]:[r.concat([i]),a]:[r,a],[[],null]);return s&&n.push(s),n}static xor(e){let n=null,s=0;const r=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,c)=>u.time-c.time);for(const u of o)s+=u.type==="s"?1:-1,s===1?n=u.time:(n&&+n!=+u.time&&r.push(O.fromDateTimes(n,u.time)),n=null);return O.merge(r)}difference(...e){return O.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:re}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=pe,n={}){return this.isValid?V.create(this.s.loc.clone(n),e).formatInterval(this):re}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:re}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:re}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:re}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:re}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):w.invalid(this.invalidReason)}mapEndpoints(e){return O.fromDateTimes(e(this.s),e(this.e))}}class Ce{static hasDST(e=N.defaultZone){const n=g.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return Z.isValidZone(e)}static normalizeZone(e){return z(e,N.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||S.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||S.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||S.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||S.create(n,s,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||S.create(n,s,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||S.create(n,s,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||S.create(n,s,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return S.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return S.create(n,null,"gregory").eras(e)}static features(){return{relative:Qt(),localeWeek:Xt()}}}function Dn(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(e)-n(t);return Math.floor(w.fromMillis(s).as("days"))}function Dr(t,e,n){const s=[["years",(u,c)=>c.year-u.year],["quarters",(u,c)=>c.quarter-u.quarter+(c.year-u.year)*4],["months",(u,c)=>c.month-u.month+(c.year-u.year)*12],["weeks",(u,c)=>{const f=Dn(u,c);return(f-f%7)/7}],["days",Dn]],r={},i=t;let a,o;for(const[u,c]of s)n.indexOf(u)>=0&&(a=u,r[u]=c(t,e),o=i.plus(r),o>e?(r[u]--,t=i.plus(r),t>e&&(o=t,r[u]--,t=i.plus(r))):t=o);return[t,r,o,a]}function br(t,e,n,s){let[r,i,a,o]=Dr(t,e,n);const u=e-r,c=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(a<e&&(a=r.plus({[o]:1})),a!==r&&(i[o]=(i[o]||0)+u/(a-r)));const f=w.fromObject(i,s);return c.length>0?w.fromMillis(u,s).shiftTo(...c).plus(f):f}const Vr="missing Intl.DateTimeFormat.formatToParts support";function E(t,e=n=>n){return{regex:t,deser:([n])=>e(ks(n))}}const bn="[ ]",Vn=new RegExp(bn,"g");function Ir(t){return t.replace(/\./g,"\\.?").replace(Vn,bn)}function In(t){return t.replace(/\./g,"").replace(Vn," ").toLowerCase()}function v(t,e){return t===null?null:{regex:RegExp(t.map(Ir).join("|")),deser:([n])=>t.findIndex(s=>In(n)===In(s))+e}}function Mn(t,e){return{regex:t,deser:([,n,s])=>Ve(n,s),groups:e}}function xe(t){return{regex:t,deser:([e])=>e}}function Mr(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Cr(t,e){const n=W(e),s=W(e,"{2}"),r=W(e,"{3}"),i=W(e,"{4}"),a=W(e,"{6}"),o=W(e,"{1,2}"),u=W(e,"{1,3}"),c=W(e,"{1,6}"),f=W(e,"{1,9}"),m=W(e,"{2,4}"),p=W(e,"{4,6}"),h=M=>({regex:RegExp(Mr(M.val)),deser:([ae])=>ae,literal:!0}),T=(M=>{if(t.literal)return h(M);switch(M.val){case"G":return v(e.eras("short"),0);case"GG":return v(e.eras("long"),0);case"y":return E(c);case"yy":return E(m,tt);case"yyyy":return E(i);case"yyyyy":return E(p);case"yyyyyy":return E(a);case"M":return E(o);case"MM":return E(s);case"MMM":return v(e.months("short",!0),1);case"MMMM":return v(e.months("long",!0),1);case"L":return E(o);case"LL":return E(s);case"LLL":return v(e.months("short",!1),1);case"LLLL":return v(e.months("long",!1),1);case"d":return E(o);case"dd":return E(s);case"o":return E(u);case"ooo":return E(r);case"HH":return E(s);case"H":return E(o);case"hh":return E(s);case"h":return E(o);case"mm":return E(s);case"m":return E(o);case"q":return E(o);case"qq":return E(s);case"s":return E(o);case"ss":return E(s);case"S":return E(u);case"SSS":return E(r);case"u":return xe(f);case"uu":return xe(o);case"uuu":return E(n);case"a":return v(e.meridiems(),0);case"kkkk":return E(i);case"kk":return E(m,tt);case"W":return E(o);case"WW":return E(s);case"E":case"c":return E(n);case"EEE":return v(e.weekdays("short",!1),1);case"EEEE":return v(e.weekdays("long",!1),1);case"ccc":return v(e.weekdays("short",!0),1);case"cccc":return v(e.weekdays("long",!0),1);case"Z":case"ZZ":return Mn(new RegExp(`([+-]${o.source})(?::(${s.source}))?`),2);case"ZZZ":return Mn(new RegExp(`([+-]${o.source})(${s.source})?`),2);case"z":return xe(/[a-z_+-/]{1,256}?/i);case" ":return xe(/[^\S\n\r]/);default:return h(M)}})(t)||{invalidReason:Vr};return T.token=t,T}const xr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Fr(t,e,n){const{type:s,value:r}=t;if(s==="literal"){const u=/^\s+$/.test(r);return{literal:!u,val:u?" ":r}}const i=e[s];let a=s;s==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let o=xr[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Lr(t){return[`^${t.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,t]}function Ar(t,e,n){const s=t.match(e);if(s){const r={};let i=1;for(const a in n)if(j(n,a)){const o=n[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(s.slice(i,i+u))),i+=u}return[s,r]}else return[s,{}]}function Wr(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return y(t.z)||(n=Z.create(t.z)),y(t.Z)||(n||(n=new I(t.Z)),s=t.Z),y(t.q)||(t.M=(t.q-1)*3+1),y(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),y(t.u)||(t.S=Xe(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),n,s]}let it=null;function _r(){return it||(it=g.fromMillis(1555555555555)),it}function vr(t,e){if(t.literal)return t;const n=V.macroTokenToFormatOpts(t.val),s=Ln(n,e);return s==null||s.includes(void 0)?t:s}function Cn(t,e){return Array.prototype.concat(...t.map(n=>vr(n,e)))}class xn{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=Cn(V.parseFormat(n),e),this.units=this.tokens.map(s=>Cr(s,e)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=Lr(this.units);this.regex=RegExp(s,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){const[n,s]=Ar(e,this.regex,this.handlers),[r,i,a]=s?Wr(s):[null,null,void 0];if(j(s,"a")&&j(s,"H"))throw new J("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:s,result:r,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Fn(t,e,n){return new xn(t,n).explainFromTokens(e)}function $r(t,e,n){const{result:s,zone:r,specificOffset:i,invalidReason:a}=Fn(t,e,n);return[s,r,i,a]}function Ln(t,e){if(!t)return null;const s=V.create(e,t).dtFormatter(_r()),r=s.formatToParts(),i=s.resolvedOptions();return r.map(a=>Fr(a,t,i))}const at="Invalid DateTime",An=864e13;function me(t){return new _("unsupported zone",`the zone "${t.name}" is not supported`)}function ot(t){return t.weekData===null&&(t.weekData=Ne(t.c)),t.weekData}function lt(t){return t.localWeekData===null&&(t.localWeekData=Ne(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function G(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new g({...n,...e,old:n})}function Wn(t,e,n){let s=t-e*60*1e3;const r=n.offset(s);if(e===r)return[s,e];s-=(r-e)*60*1e3;const i=n.offset(s);return r===i?[s,r]:[t-Math.min(r,i)*60*1e3,Math.max(r,i)]}function Fe(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Le(t,e,n){return Wn(be(t),e,n)}function _n(t,e){const n=t.o,s=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:s,month:r,day:Math.min(t.c.day,De(s,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=w.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=be(i);let[u,c]=Wn(o,n,t.zone);return a!==0&&(u+=a,c=t.zone.offset(u)),{ts:u,o:c}}function ie(t,e,n,s,r,i){const{setZone:a,zone:o}=n;if(t&&Object.keys(t).length!==0||e){const u=e||o,c=g.fromObject(t,{...n,zone:u,specificOffset:i});return a?c:c.setZone(o)}else return g.invalid(new _("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Ae(t,e,n=!0){return t.isValid?V.create(S.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ut(t,e,n){const s=t.c.year>9999||t.c.year<0;let r="";if(s&&t.c.year>=0&&(r+="+"),r+=D(t.c.year,s?6:4),n==="year")return r;if(e){if(r+="-",r+=D(t.c.month),n==="month")return r;r+="-"}else if(r+=D(t.c.month),n==="month")return r;return r+=D(t.c.day),r}function vn(t,e,n,s,r,i,a){let o=!n||t.c.millisecond!==0||t.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=D(t.c.hour),a==="hour")break;if(e){if(u+=":",u+=D(t.c.minute),a==="minute")break;o&&(u+=":",u+=D(t.c.second))}else{if(u+=D(t.c.minute),a==="minute")break;o&&(u+=D(t.c.second))}if(a==="second")break;o&&(!s||t.c.millisecond!==0)&&(u+=".",u+=D(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&t.offset===0&&!i?u+="Z":t.o<0?(u+="-",u+=D(Math.trunc(-t.o/60)),u+=":",u+=D(Math.trunc(-t.o%60))):(u+="+",u+=D(Math.trunc(t.o/60)),u+=":",u+=D(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}const $n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Zr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Rr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},We=["year","month","day","hour","minute","second","millisecond"],Ur=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],zr=["year","ordinal","hour","minute","second","millisecond"];function _e(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new dt(t);return e}function Zn(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return _e(t)}}function qr(t){if(ye===void 0&&(ye=N.now()),t.type!=="iana")return t.offset(ye);const e=t.name;let n=ct.get(e);return n===void 0&&(n=t.offset(ye),ct.set(e,n)),n}function Rn(t,e){const n=z(e.zone,N.defaultZone);if(!n.isValid)return g.invalid(me(n));const s=S.fromObject(e);let r,i;if(y(t.year))r=N.now();else{for(const u of We)y(t[u])&&(t[u]=$n[u]);const a=jt(t)||Kt(t);if(a)return g.invalid(a);const o=qr(n);[r,i]=Le(t,o,n)}return new g({ts:r,zone:n,loc:s,o:i})}function Un(t,e,n){const s=y(n.round)?!0:n.round,r=y(n.rounding)?"trunc":n.rounding,i=(o,u)=>(o=et(o,s||n.calendary?0:2,n.calendary?"round":r),e.loc.clone(n).relFormatter(n).format(o,u)),a=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const u=a(o);if(Math.abs(u)>=1)return i(u,o)}return i(t>e?-0:0,n.units[n.units.length-1])}function zn(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let ye;const ct=new Map;class g{constructor(e){const n=e.zone||N.defaultZone;let s=e.invalid||(Number.isNaN(e.ts)?new _("invalid input"):null)||(n.isValid?null:me(n));this.ts=y(e.ts)?N.now():e.ts;let r=null,i=null;if(!s)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[r,i]=[e.old.c,e.old.o];else{const o=q(e.o)&&!e.old?e.o:n.offset(this.ts);r=Fe(this.ts,o),s=Number.isNaN(r.year)?new _("invalid input"):null,r=s?null:r,i=s?null:o}this._zone=n,this.loc=e.loc||S.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new g({})}static local(){const[e,n]=zn(arguments),[s,r,i,a,o,u,c]=n;return Rn({year:s,month:r,day:i,hour:a,minute:o,second:u,millisecond:c},e)}static utc(){const[e,n]=zn(arguments),[s,r,i,a,o,u,c]=n;return e.zone=I.utcInstance,Rn({year:s,month:r,day:i,hour:a,minute:o,second:u,millisecond:c},e)}static fromJSDate(e,n={}){const s=Ss(e)?e.valueOf():NaN;if(Number.isNaN(s))return g.invalid("invalid input");const r=z(n.zone,N.defaultZone);return r.isValid?new g({ts:s,zone:r,loc:S.fromObject(n)}):g.invalid(me(r))}static fromMillis(e,n={}){if(q(e))return e<-An||e>An?g.invalid("Timestamp out of range"):new g({ts:e,zone:z(n.zone,N.defaultZone),loc:S.fromObject(n)});throw new b(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(q(e))return new g({ts:e*1e3,zone:z(n.zone,N.defaultZone),loc:S.fromObject(n)});throw new b("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const s=z(n.zone,N.defaultZone);if(!s.isValid)return g.invalid(me(s));const r=S.fromObject(n),i=Ie(e,Zn),{minDaysInFirstWeek:a,startOfWeek:o}=Jt(i,r),u=N.now(),c=y(n.specificOffset)?s.offset(u):n.specificOffset,f=!y(i.ordinal),m=!y(i.year),p=!y(i.month)||!y(i.day),h=m||p,k=i.weekYear||i.weekNumber;if((h||f)&&k)throw new J("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&f)throw new J("Can't mix ordinal dates with month/day");const T=k||i.weekday&&!h;let M,ae,ke=Fe(u,c);T?(M=Ur,ae=Zr,ke=Ne(ke,a,o)):f?(M=zr,ae=Rr,ke=Ke(ke)):(M=We,ae=$n);let Yn=!1;for(const Ee of M){const Fi=i[Ee];y(Fi)?Yn?i[Ee]=ae[Ee]:i[Ee]=ke[Ee]:Yn=!0}const Ii=T?Es(i,a,o):f?ps(i):jt(i),Hn=Ii||Kt(i);if(Hn)return g.invalid(Hn);const Mi=T?Pt(i,a,o):f?Gt(i):i,[Ci,xi]=Le(Mi,c,s),we=new g({ts:Ci,zone:s,o:xi,loc:r});return i.weekday&&h&&e.weekday!==we.weekday?g.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${we.toISO()}`):we.isValid?we:g.invalid(we.invalid)}static fromISO(e,n={}){const[s,r]=dr(e);return ie(s,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[s,r]=fr(e);return ie(s,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[s,r]=hr(e);return ie(s,r,n,"HTTP",n)}static fromFormat(e,n,s={}){if(y(e)||y(n))throw new b("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,a=S.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,u,c,f]=$r(a,e,n);return f?g.invalid(f):ie(o,u,s,`format ${n}`,e,c)}static fromString(e,n,s={}){return g.fromFormat(e,n,s)}static fromSQL(e,n={}){const[s,r]=pr(e);return ie(s,r,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new b("need to specify a reason the DateTime is invalid");const s=e instanceof _?e:new _(e,n);if(N.throwOnInvalid)throw new Pn(s);return new g({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const s=Ln(e,S.fromObject(n));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return Cn(V.parseFormat(e),S.fromObject(n)).map(r=>r.val).join("")}static resetCache(){ye=void 0,ct.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ot(this).weekYear:NaN}get weekNumber(){return this.isValid?ot(this).weekNumber:NaN}get weekday(){return this.isValid?ot(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?lt(this).weekday:NaN}get localWeekNumber(){return this.isValid?lt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?lt(this).weekYear:NaN}get ordinal(){return this.isValid?Ke(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ce.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ce.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ce.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ce.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,s=be(this.c),r=this.zone.offset(s-e),i=this.zone.offset(s+e),a=this.zone.offset(s-r*n),o=this.zone.offset(s-i*n);if(a===o)return[this];const u=s-a*n,c=s-o*n,f=Fe(u,a),m=Fe(c,o);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[G(this,{ts:u}),G(this,{ts:c})]:[this]}get isInLeapYear(){return ue(this.year)}get daysInMonth(){return De(this.year,this.month)}get daysInYear(){return this.isValid?K(this.year):NaN}get weeksInWeekYear(){return this.isValid?ce(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ce(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:s,calendar:r}=V.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(e=0,n={}){return this.setZone(I.instance(e),n)}toLocal(){return this.setZone(N.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(e=z(e,N.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(n||s){const i=e.offset(this.ts),a=this.toObject();[r]=Le(a,i,e)}return G(this,{ts:r,zone:e})}else return g.invalid(me(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:s});return G(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Ie(e,Zn),{minDaysInFirstWeek:s,startOfWeek:r}=Jt(n,this.loc),i=!y(n.weekYear)||!y(n.weekNumber)||!y(n.weekday),a=!y(n.ordinal),o=!y(n.year),u=!y(n.month)||!y(n.day),c=o||u,f=n.weekYear||n.weekNumber;if((c||a)&&f)throw new J("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new J("Can't mix ordinal dates with month/day");let m;i?m=Pt({...Ne(this.c,s,r),...n},s,r):y(n.ordinal)?(m={...this.toObject(),...n},y(n.day)&&(m.day=Math.min(De(m.year,m.month),m.day))):m=Gt({...Ke(this.c),...n});const[p,h]=Le(m,this.o,this.zone);return G(this,{ts:p,o:h})}plus(e){if(!this.isValid)return this;const n=w.fromDurationLike(e);return G(this,_n(this,n))}minus(e){if(!this.isValid)return this;const n=w.fromDurationLike(e).negate();return G(this,_n(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const s={},r=w.normalizeUnit(e);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(s.weekNumber=this.weekNumber-1),s.weekday=i}else s.weekday=1;if(r==="quarters"){const i=Math.ceil(this.month/3);s.month=(i-1)*3+1}return this.set(s)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?V.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):at}toLocaleString(e=pe,n={}){return this.isValid?V.create(this.loc.clone(n),e).formatDateTime(this):at}toLocaleParts(e={}){return this.isValid?V.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=_e(a);const o=e==="extended";let u=ut(this,o,a);return We.indexOf(a)>=3&&(u+="T"),u+=vn(this,o,n,s,r,i,a),u}toISODate({format:e="extended",precision:n="day"}={}){return this.isValid?ut(this,e==="extended",_e(n)):null}toISOWeekDate(){return Ae(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,extendedZone:i=!1,format:a="extended",precision:o="milliseconds"}={}){return this.isValid?(o=_e(o),(r&&We.indexOf(o)>=3?"T":"")+vn(this,a==="extended",n,e,s,i,o)):null}toRFC2822(){return Ae(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ae(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ut(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||e)&&(s&&(r+=" "),n?r+="z":e&&(r+="ZZ")),Ae(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():at}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",s={}){if(!this.isValid||!e.isValid)return w.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...s},i=Ns(n).map(w.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,u=a?e:this,c=br(o,u,i,r);return a?c.negate():c}diffNow(e="milliseconds",n={}){return this.diff(g.now(),e,n)}until(e){return this.isValid?O.fromDateTimes(this,e):this}hasSame(e,n,s){if(!this.isValid)return!1;const r=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,s)<=r&&r<=i.endOf(n,s)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||g.fromObject({},{zone:this.zone}),s=e.padding?this<n?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(r=e.unit,i=void 0),Un(n,this.plus(s),{...e,numeric:"always",units:r,unit:i})}toRelativeCalendar(e={}){return this.isValid?Un(e.base||g.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(g.isDateTime))throw new b("min requires all arguments be DateTimes");return en(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(g.isDateTime))throw new b("max requires all arguments be DateTimes");return en(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,s={}){const{locale:r=null,numberingSystem:i=null}=s,a=S.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Fn(a,e,n)}static fromStringExplain(e,n,s={}){return g.fromFormatExplain(e,n,s)}static buildFormatParser(e,n={}){const{locale:s=null,numberingSystem:r=null}=n,i=S.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return new xn(i,e)}static fromFormatParser(e,n,s={}){if(y(e)||y(n))throw new b("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=s,a=S.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new b(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:o,zone:u,specificOffset:c,invalidReason:f}=n.explainFromTokens(e);return f?g.invalid(f):ie(o,u,s,`format ${n.format}`,e,c)}static get DATE_SHORT(){return pe}static get DATE_MED(){return ft}static get DATE_MED_WITH_WEEKDAY(){return jn}static get DATE_FULL(){return ht}static get DATE_HUGE(){return mt}static get TIME_SIMPLE(){return yt}static get TIME_WITH_SECONDS(){return gt}static get TIME_WITH_SHORT_OFFSET(){return kt}static get TIME_WITH_LONG_OFFSET(){return wt}static get TIME_24_SIMPLE(){return Et}static get TIME_24_WITH_SECONDS(){return pt}static get TIME_24_WITH_SHORT_OFFSET(){return Tt}static get TIME_24_WITH_LONG_OFFSET(){return St}static get DATETIME_SHORT(){return Nt}static get DATETIME_SHORT_WITH_SECONDS(){return Ot}static get DATETIME_MED(){return Dt}static get DATETIME_MED_WITH_SECONDS(){return bt}static get DATETIME_MED_WITH_WEEKDAY(){return Kn}static get DATETIME_FULL(){return Vt}static get DATETIME_FULL_WITH_SECONDS(){return It}static get DATETIME_HUGE(){return Mt}static get DATETIME_HUGE_WITH_SECONDS(){return Ct}}function ge(t){if(g.isDateTime(t))return t;if(t&&t.valueOf&&q(t.valueOf()))return g.fromJSDate(t);if(t&&typeof t=="object")return g.fromObject(t);throw new b(`Unknown datetime argument: ${t}, of type ${typeof t}`)}const Br=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Yr={name:"Subscriptions",data(){return{events:[],subscribedEvents:[],entities:{list:[],total:0},autoRefresh:!0,auth_connector:""}},computed:{},methods:{formatDate(t){return t?g.fromISO(t).toFormat("dd.MM HH:mm:ss"):""},pause(t){return new Promise(e=>setTimeout(e,t))},async eventsList(){console.log("Запускаем eventsList");try{let t=await $b24.callMethod("events",{});this.events=t.getData().result}catch(t){console.error("Ошибка при получении списка событий:",t)}},async subscribeToEvents(t){try{await $b24.callMethod("event.bind",{event:t,event_type:"offline",auth_connector:this.auth_connector}),console.log(`Подписались на событие ${t}.`)}catch(e){console.error("Ошибка при подписке на события:",e)}await this.pause(1e3),await this.getSubscribedEvents()},async getSubscribedEvents(){try{let t=await $b24.callMethod("event.get",{});this.subscribedEvents=t.getData().result,console.log("Подписанные события:",this.subscribedEvents)}catch(t){console.error("Ошибка при получении подписанных событий:",t)}},async unbindSubscribedEvents(t){try{await $b24.callMethod("event.unbind",{event:t.event,event_type:t.offline==1?"offline":"online",auth_connector:t.connector_id}),await this.pause(1e3),await this.getSubscribedEvents()}catch(e){console.error("Ошибка при отписке от событий:",e)}},async loadOfflineEntitiesList(){let e=await $b24.callListMethod("event.offline.list",{start:0,auth_connector:this.auth_connector});this.entities.list=e.getData(),this.entities.total=e.getData().length},async deleteOfflineEntities(t){let e=await $b24.callMethod("event.offline.clear",{process_id:t.PROCESS_ID,id:[t.ID],auth_connector:this.auth_connector});console.log("Удалили сущности из оффлан событий:",e.getData()),await this.pause(1e3),await this.loadOfflineEntitiesList()},async deleteOfflineEntitiesAll(){if(!confirm("Вы уверены, что хотите удалить все НЕ обработанные сущности? Это действие необратимо!"))return;let t=this.entities.total/50+1;console.log("Всего страниц для удаления:",t);for(let e=1;e<=t;e++){let s=(await $b24.callMethod("event.offline.list",{start:0})).getData().result.map(a=>a.PROCESS_ID).filter(a=>a);console.log("PROCESS_ID для удаления:",s);let r={};s.forEach((a,o)=>{r[`clear_${o}`]={method:"event.offline.clear",params:{process_id:a}}}),console.log("batchCommands:",r);let i=await $b24.callBatch(r);console.log("Результат batch удаления сущностей:",i.getData())}await this.pause(500),await this.loadOfflineEntitiesList()},async deleteOfflineEntitiesAllEmpty(){if(!confirm("Вы уверены, что хотите удалить все пустые НЕ обработанные сущности? Это действие необратимо!"))return;let t=await $b24.callMethod("event.offline.clear",{process_id:""});console.log("Результат удаления сущностей с пустым PROCESS_ID:",t.getData())},isSubscribed(t){return this.subscribedEvents.some(e=>e.event==t)},autoRefreshEntities(){this.autoRefresh&&setTimeout(async()=>{await this.loadOfflineEntitiesList(),this.autoRefreshEntities()},3e3)},async entityUpdate(t){var n,s,r,i,a,o,u;let e=!1;console.log("Запущена функция entityUpdate для изменения сущности с ID:",(n=t.EVENT_DATA.FIELDS)==null?void 0:n.ID);try{if((s=t.EVENT_DATA.FIELDS)!=null&&s.ENTITY_TYPE_ID&&((r=t.EVENT_DATA.FIELDS)==null?void 0:r.ENTITY_TYPE_ID)>0){let c=await $b24.callMethod("crm.item.get",{entityTypeId:t.EVENT_DATA.FIELDS.ENTITY_TYPE_ID,id:t.EVENT_DATA.FIELDS.ID});if(c=c.getData().result.item,console.log("Данные смарт процесса до изменения:",c),c.id==((i=t.EVENT_DATA.FIELDS)==null?void 0:i.ID)){let f=await $b24.callMethod("crm.item.update",{entityTypeId:t.EVENT_DATA.FIELDS.ENTITY_TYPE_ID,id:t.EVENT_DATA.FIELDS.ID,fields:{title:c.title+"123"}});console.log("Результат обновления смарт процесса:",f.getData()),f.id===c.id?(console.log("Сущность успешно обновлена."),e=!0):(console.error("Ошибка при обновлении сущности."),e=!0)}else e=!0}else{let c=await $b24.callMethod("crm.deal.get",{id:(a=t.EVENT_DATA.FIELDS)==null?void 0:a.ID});if(c=c.getData().result,console.log("Данные сделки до изменения:",c),c.ID==((o=t.EVENT_DATA.FIELDS)==null?void 0:o.ID)){let f=await $b24.callMethod("crm.deal.update",{id:(u=t.EVENT_DATA.FIELDS)==null?void 0:u.ID,fields:{TITLE:c.TITLE}});console.log("Результат обновления сделки:",f.getData()),f=f.getData().result,f===!0?console.log("Сущность успешно обновлена."):(console.error("Ошибка при обновлении сущности."),e=!0)}else e=!0}}catch(c){console.error("Ошибка при обновлении сущности:",c),c=!0}e||await this.deleteOfflineEntities(t)}},watch:{},mounted(){this.getSubscribedEvents(),this.eventsList(),this.loadOfflineEntitiesList(),this.autoRefreshEntities()}},Hr={class:"Subscriptions"},Pr={key:0},Gr=["disabled"],Jr={class:"switch tooltipParent",style:{top:"12px"}},jr={key:0},Kr={key:0,class:"main"},Qr=["onClick"],Xr=["onClick"],ei=["href"],ti={class:"tooltipParent",style:{}},ni={class:"tooltip"},si={key:1},ri={key:1},ii={key:0,class:"main"},ai=["onClick"],oi={key:1},li={key:0,class:"main"},ui=["onClick","disabled"],ci={key:1},di={key:2};function fi(t,e,n,s,r,i){return l.openBlock(),l.createElementBlock("div",Hr,[e[15]||(e[15]=l.createElementVNode("h1",null,"Страница подписок",-1)),l.createElementVNode("button",{onClick:e[0]||(e[0]=a=>t.selectTab("tab1"))},"Сущности"),l.createElementVNode("button",{onClick:e[1]||(e[1]=a=>t.selectTab("tab2"))},"События"),e[16]||(e[16]=l.createElementVNode("br",null,null,-1)),e[17]||(e[17]=l.createElementVNode("br",null,null,-1)),e[18]||(e[18]=l.createElementVNode("br",null,null,-1)),t.tabs.tab1?(l.openBlock(),l.createElementBlock("div",Pr,[l.createElementVNode("div",null,[l.createElementVNode("button",{onClick:e[2]||(e[2]=(...a)=>i.loadOfflineEntitiesList&&i.loadOfflineEntitiesList(...a)),disabled:t.loading},"Обновить",8,Gr),l.createElementVNode("label",Jr,[l.withDirectives(l.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":e[3]||(e[3]=a=>r.autoRefresh=a),onChange:e[4]||(e[4]=(...a)=>i.autoRefreshEntities&&i.autoRefreshEntities(...a))},null,544),[[l.vModelCheckbox,r.autoRefresh]]),e[7]||(e[7]=l.createElementVNode("span",{class:"slider"},null,-1)),e[8]||(e[8]=l.createElementVNode("span",{class:"tooltip"},"Автообновление каждые 3 секунды",-1))])]),r.entities.list.length>0?(l.openBlock(),l.createElementBlock("div",jr,[l.createElementVNode("p",null,[l.createElementVNode("button",{onClick:e[5]||(e[5]=(...a)=>i.deleteOfflineEntitiesAll&&i.deleteOfflineEntitiesAll(...a))},"Удалить все"),l.createElementVNode("button",{onClick:e[6]||(e[6]=(...a)=>i.deleteOfflineEntitiesAllEmpty&&i.deleteOfflineEntitiesAllEmpty(...a))},"Удалить все пустые"),l.createTextVNode(" Всего измененных сущностей "+l.toDisplayString(r.entities.total),1)]),r.entities.list.length?(l.openBlock(),l.createElementBlock("table",Kr,[e[10]||(e[10]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",null,"#"),l.createElementVNode("th",null,"Удалить"),l.createElementVNode("th",null,"Обновить"),l.createElementVNode("th",null,"Дата"),l.createElementVNode("th",null,"PROCESS_ID"),l.createElementVNode("th",null,"EVENT_NAME"),l.createElementVNode("th",null,"Ссылка"),l.createElementVNode("th",null,"EVENT_DATA"),l.createElementVNode("th",null,"who_update"),l.createElementVNode("th",null,"entity")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.entities.list,(a,o)=>{var u,c,f,m;return l.openBlock(),l.createElementBlock("tr",{key:a.PROCESS_ID+"-"+a.ID},[l.createElementVNode("td",null,l.toDisplayString(o+1),1),l.createElementVNode("td",null,[l.createElementVNode("button",{onClick:p=>i.deleteOfflineEntities(a)},"Удалить",8,Qr)]),l.createElementVNode("td",null,[(u=a.EVENT_DATA.FIELDS)!=null&&u.ID&&(a.EVENT_NAME=="ONCRMDEALUPDATE"||a.EVENT_NAME.includes("ONCRMDYNAMICITEMUPDATE_"))?(l.openBlock(),l.createElementBlock("button",{key:0,onClick:p=>i.entityUpdate(a)},"Изменить",8,Xr)):l.createCommentVNode("",!0)]),l.createElementVNode("td",null,l.toDisplayString(i.formatDate(a.TIMESTAMP_X)),1),l.createElementVNode("td",null,l.toDisplayString(a.PROCESS_ID),1),l.createElementVNode("td",null,l.toDisplayString(a.EVENT_NAME),1),l.createElementVNode("td",null,[(c=a.EVENT_DATA.FIELDS)!=null&&c.ID&&a.EVENT_NAME=="ONCRMDEALUPDATE"?(l.openBlock(),l.createElementBlock("a",{key:0,href:"https://repacheb.bitrix24.ru/crm/deal/details/"+((f=a.EVENT_DATA.FIELDS)==null?void 0:f.ID)+"/",target:"_blank",rel:"noopener noreferrer"},l.toDisplayString((m=a.EVENT_DATA.FIELDS)==null?void 0:m.ID),9,ei)):l.createCommentVNode("",!0)]),l.createElementVNode("td",null,l.toDisplayString(a.EVENT_DATA),1),l.createElementVNode("td",null,l.toDisplayString(a.EVENT_ADDITIONAL.user_id),1),l.createElementVNode("td",ti,[e[9]||(e[9]=l.createElementVNode("span",null,"Подробней",-1)),l.createElementVNode("span",ni,l.toDisplayString(a),1)])])}),128))])])):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("div",si,"Список сущностей пуст."))])):l.createCommentVNode("",!0),t.tabs.tab2?(l.openBlock(),l.createElementBlock("div",ri,[l.createElementVNode("div",null,[e[12]||(e[12]=l.createElementVNode("h3",null,"Подписаны на события:",-1)),r.subscribedEvents.length?(l.openBlock(),l.createElementBlock("table",ii,[e[11]||(e[11]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",null,"Событие"),l.createElementVNode("th",null,"connector_id"),l.createElementVNode("th",null,"offline"),l.createElementVNode("th",null,"Отписаться")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.subscribedEvents,a=>(l.openBlock(),l.createElementBlock("tr",{key:a.id},[l.createElementVNode("td",null,l.toDisplayString(a.event),1),l.createElementVNode("td",null,l.toDisplayString(a.connector_id),1),l.createElementVNode("td",null,l.toDisplayString(a.offline),1),l.createElementVNode("td",null,[l.createElementVNode("button",{onClick:o=>i.unbindSubscribedEvents(a)},"Отписаться от событий",8,ai)])]))),128))])])):(l.openBlock(),l.createElementBlock("p",oi,"Подписок на события нет."))]),l.createElementVNode("div",null,[e[14]||(e[14]=l.createElementVNode("h3",null,"На какие события можно подписаться:",-1)),r.events.length?(l.openBlock(),l.createElementBlock("table",li,[e[13]||(e[13]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",null,"Событие"),l.createElementVNode("th",null,"Подписаться")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.events,a=>(l.openBlock(),l.createElementBlock("tr",{key:a},[l.createElementVNode("td",null,l.toDisplayString(a),1),l.createElementVNode("td",null,[l.createElementVNode("button",{onClick:o=>i.subscribeToEvents(a),disabled:i.isSubscribed(a),class:l.normalizeClass({"disabled-button":i.isSubscribed(a)})},"Подписаться",10,ui)])]))),128))])])):(l.openBlock(),l.createElementBlock("p",ci,"Список событий пуст."))])])):l.createCommentVNode("",!0),t.tabs.tab3?(l.openBlock(),l.createElementBlock("div",di)):l.createCommentVNode("",!0)])}const qn=Br(Yr,[["render",fi]]),hi={class:"config-logs"},mi={key:0,class:"config-logs__loading"},yi={key:1,class:"config-logs__error"},gi={key:2},ki={class:"config-logs__table"},wi={class:"config-logs__level-name"},Ei={class:"config-logs__level-key"},pi={class:"config-logs__switch"},Ti=["onUpdate:modelValue"],Si={class:"config-logs__switch"},Ni=["onUpdate:modelValue"],Oi={class:"config-logs__actions"},Di=["disabled"],bi=["disabled"],Bn={__name:"ConfigLogs",props:{apiBase:{type:String,default:""},secretKey:{type:String,default:""},configName:{type:String,default:"log"}},setup(t){const e=t,n=[{key:"trace",label:"Трассировка"},{key:"debug",label:"Отладка"},{key:"info",label:"Информация"},{key:"warn",label:"Предупреждения"},{key:"error",label:"Ошибки"}],s=l.reactive({trace:{enabled:!1,json:!0,color:""},debug:{enabled:!0,json:!0,color:""},info:{enabled:!0,json:!0,color:""},warn:{enabled:!0,json:!0,color:""},error:{enabled:!0,json:!0,color:""}}),r=l.ref(!1),i=l.ref(!1),a=l.ref(""),o=l.ref(""),u=l.ref("ok");function c(){const h={"Content-Type":"application/json"};return e.secretKey&&(h.secret=e.secretKey),h}function f(){return`${e.apiBase.replace(/\/+$/,"")}/api/config/${e.configName}`}async function m(){r.value=!0,a.value="",o.value="";try{const k=await(await fetch(f(),{headers:c()})).json();if(k.status==="ok"&&k.data)for(const T of n)k.data[T.key]&&(s[T.key].enabled=k.data[T.key].enabled??!1,s[T.key].json=k.data[T.key].json??!0,s[T.key].color=k.data[T.key].color??"");else a.value=k.message||"Не удалось загрузить конфиг"}catch(h){a.value=`Ошибка загрузки: ${h.message}`}finally{r.value=!1}}async function p(){i.value=!0,o.value="";const h={};for(const k of n)h[k.key]={enabled:s[k.key].enabled,color:s[k.key].color,json:s[k.key].json};try{const T=await(await fetch(f(),{method:"POST",headers:c(),body:JSON.stringify(h)})).json();T.status==="ok"?(o.value=T.message||"Конфиг сохранён",u.value="ok"):(o.value=T.message||"Ошибка сохранения",u.value="error")}catch(k){o.value=`Ошибка сохранения: ${k.message}`,u.value="error"}finally{i.value=!1}}return l.onMounted(()=>{m()}),(h,k)=>(l.openBlock(),l.createElementBlock("div",hi,[k[3]||(k[3]=l.createElementVNode("h2",null,"Уровни логирования",-1)),r.value?(l.openBlock(),l.createElementBlock("div",mi,"Загрузка...")):a.value?(l.openBlock(),l.createElementBlock("div",yi,[l.createElementVNode("p",null,l.toDisplayString(a.value),1),l.createElementVNode("button",{onClick:m},"Повторить")])):(l.openBlock(),l.createElementBlock("div",gi,[l.createElementVNode("table",ki,[k[2]||(k[2]=l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[l.createElementVNode("th",null,"Уровень"),l.createElementVNode("th",null,"Включён"),l.createElementVNode("th",null,"JSON-формат")])],-1)),l.createElementVNode("tbody",null,[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(n,T=>l.createElementVNode("tr",{key:T.key},[l.createElementVNode("td",null,[l.createElementVNode("span",wi,l.toDisplayString(T.label),1),l.createElementVNode("span",Ei,l.toDisplayString(T.key),1)]),l.createElementVNode("td",null,[l.createElementVNode("label",pi,[l.withDirectives(l.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":M=>s[T.key].enabled=M},null,8,Ti),[[l.vModelCheckbox,s[T.key].enabled]]),k[0]||(k[0]=l.createElementVNode("span",{class:"config-logs__slider"},null,-1))])]),l.createElementVNode("td",null,[l.createElementVNode("label",Si,[l.withDirectives(l.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":M=>s[T.key].json=M},null,8,Ni),[[l.vModelCheckbox,s[T.key].json]]),k[1]||(k[1]=l.createElementVNode("span",{class:"config-logs__slider"},null,-1))])])])),64))])]),l.createElementVNode("div",Oi,[l.createElementVNode("button",{onClick:p,disabled:i.value},l.toDisplayString(i.value?"Сохранение...":"Сохранить"),9,Di),l.createElementVNode("button",{onClick:m,disabled:r.value},"Обновить",8,bi)]),o.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["config-logs__message",u.value==="ok"?"config-logs__message--success":"config-logs__message--error"])},l.toDisplayString(o.value),3)):l.createCommentVNode("",!0)]))]))}},Vi={install(t,e={}){t.component("Subscriptions",qn),t.component("ConfigLogs",Bn),e.b24&&(t.config.globalProperties.$b24=e.b24)}};$.ConfigLogs=Bn,$.Subscriptions=qn,$.default=Vi,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tooltipParent{position:relative;cursor:pointer}.tooltip{visibility:hidden;background-color:#555;color:#fff;text-align:center;border-radius:5px;padding:5px;position:absolute;bottom:100%;left:50%;transform:translate(-50%);z-index:1;opacity:0;transition:opacity .3s;max-width:400px;min-width:200px;word-wrap:break-word}.tooltipParent:hover .tooltip{visibility:visible;opacity:1}.config-logs{margin:20px 0;padding:16px;border:1px solid #ddd;border-radius:8px;background:#fafafa}.config-logs h2{margin:0 0 16px;font-size:18px}.config-logs__loading,.config-logs__error{padding:12px;text-align:center}.config-logs__error{color:#d32f2f}.config-logs__table{width:100%;border-collapse:collapse;margin-bottom:16px}.config-logs__table th,.config-logs__table td{padding:10px 12px;text-align:left;border-bottom:1px solid #eee}.config-logs__table th{font-weight:600;color:#555;font-size:13px;text-transform:uppercase}.config-logs__level-name{display:block;font-weight:500}.config-logs__level-key{display:block;font-size:12px;color:#888;font-family:monospace}.config-logs__switch{position:relative;display:inline-block;width:44px;height:24px}.config-logs__switch input{opacity:0;width:0;height:0}.config-logs__slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.3s;border-radius:24px}.config-logs__slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}.config-logs__switch input:checked+.config-logs__slider{background-color:#4caf50}.config-logs__switch input:checked+.config-logs__slider:before{transform:translate(20px)}.config-
|
|
1
|
+
.tooltipParent{position:relative;cursor:pointer}.tooltip{visibility:hidden;background-color:#555;color:#fff;text-align:center;border-radius:5px;padding:5px;position:absolute;bottom:100%;left:50%;transform:translate(-50%);z-index:1;opacity:0;transition:opacity .3s;max-width:400px;min-width:200px;word-wrap:break-word}.tooltipParent:hover .tooltip{visibility:visible;opacity:1}.config-logs{margin:20px 0;padding:16px;border:1px solid #ddd;border-radius:8px;background:#fafafa}.config-logs h2{margin:0 0 16px;font-size:18px}.config-logs__loading,.config-logs__error{padding:12px;text-align:center}.config-logs__error{color:#d32f2f}.config-logs__table{width:100%;border-collapse:collapse;margin-bottom:16px}.config-logs__table th,.config-logs__table td{padding:10px 12px;text-align:left;border-bottom:1px solid #eee}.config-logs__table th{font-weight:600;color:#555;font-size:13px;text-transform:uppercase}.config-logs__level-name{display:block;font-weight:500}.config-logs__level-key{display:block;font-size:12px;color:#888;font-family:monospace}.config-logs__switch{position:relative;display:inline-block;width:44px;height:24px}.config-logs__switch input{opacity:0;width:0;height:0}.config-logs__slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.3s;border-radius:24px}.config-logs__slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}.config-logs__switch input:checked+.config-logs__slider{background-color:#4caf50}.config-logs__switch input:checked+.config-logs__slider:before{transform:translate(20px)}.config-logs__actions{display:flex;gap:8px}.config-logs__actions button{padding:8px 20px;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:pointer;font-size:14px;transition:background .2s}.config-logs__actions button:hover:not(:disabled){background:#f0f0f0}.config-logs__actions button:first-child{background:#4caf50;color:#fff;border-color:#4caf50}.config-logs__actions button:first-child:hover:not(:disabled){background:#43a047}.config-logs__actions button:disabled{opacity:.6;cursor:not-allowed}.config-logs__message{margin-top:12px;padding:8px 12px;border-radius:4px;font-size:14px}.config-logs__message--success{background:#e8f5e9;color:#2e7d32;border:1px solid #a5d6a7}.config-logs__message--error{background:#ffebee;color:#c62828;border:1px solid #ef9a9a}
|
package/package.json
CHANGED