@everymatrix/cashier-session-expiration-modal 1.76.3 → 1.76.5
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/components/{CashierSessionExpirationModal-CudS__XJ.js → CashierSessionExpirationModal-Cfjtll5A.js} +1258 -1267
- package/components/CashierSessionExpirationModal-DyPySpmH.cjs +9 -0
- package/components/{CashierSessionExpirationModal-BUM2m0mk.js → CashierSessionExpirationModal-Wl8GAMRI.js} +1284 -1293
- package/es2015/cashier-session-expiration-modal.cjs +1 -1
- package/es2015/cashier-session-expiration-modal.js +1 -1
- package/esnext/cashier-session-expiration-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierSessionExpirationModal-DMTn56O5.cjs +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function de() {
|
|
2
2
|
}
|
|
3
|
-
const
|
|
4
|
-
function
|
|
3
|
+
const jr = (e) => e;
|
|
4
|
+
function ji(e, t) {
|
|
5
5
|
for (const n in t)
|
|
6
6
|
e[n] = t[n];
|
|
7
7
|
return (
|
|
@@ -9,29 +9,29 @@ function $i(e, t) {
|
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function zr(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
15
|
function rr() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
e.forEach(
|
|
18
|
+
function Ie(e) {
|
|
19
|
+
e.forEach(zr);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Yt(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Wr(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
27
|
+
let wt;
|
|
28
|
+
function ir(e, t) {
|
|
29
|
+
return e === t ? !0 : (wt || (wt = document.createElement("a")), wt.href = t, e === wt.href);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function zi(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Vr(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const r of t)
|
|
37
37
|
r(void 0);
|
|
@@ -40,19 +40,19 @@ function Wr(e, ...t) {
|
|
|
40
40
|
const n = e.subscribe(...t);
|
|
41
41
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function sr(e, t, n) {
|
|
44
|
+
e.$$.on_destroy.push(Vr(t, n));
|
|
45
45
|
}
|
|
46
46
|
function Nt(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Xr(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] && r ?
|
|
52
|
+
function Xr(e, t, n, r) {
|
|
53
|
+
return e[1] && r ? ji(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ht(e, t, n, r) {
|
|
56
56
|
if (e[2] && r) {
|
|
57
57
|
const i = e[2](r(n));
|
|
58
58
|
if (t.dirty === void 0)
|
|
@@ -67,13 +67,13 @@ function Lt(e, t, n, r) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function It(e, t, n, r, i, s) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const u =
|
|
72
|
+
const u = Xr(t, n, r, s);
|
|
73
73
|
e.p(u, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Pt(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], n = e.ctx.length / 32;
|
|
79
79
|
for (let r = 0; r < n; r++)
|
|
@@ -82,36 +82,36 @@ function Rt(e) {
|
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
let
|
|
87
|
-
const
|
|
88
|
-
function
|
|
89
|
-
|
|
90
|
-
t.c(e) || (
|
|
91
|
-
}),
|
|
85
|
+
const Yr = typeof window < "u";
|
|
86
|
+
let Wi = Yr ? () => window.performance.now() : () => Date.now(), Nn = Yr ? (e) => requestAnimationFrame(e) : de;
|
|
87
|
+
const Ve = /* @__PURE__ */ new Set();
|
|
88
|
+
function Zr(e) {
|
|
89
|
+
Ve.forEach((t) => {
|
|
90
|
+
t.c(e) || (Ve.delete(t), t.f());
|
|
91
|
+
}), Ve.size !== 0 && Nn(Zr);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Vi(e) {
|
|
94
94
|
let t;
|
|
95
|
-
return
|
|
95
|
+
return Ve.size === 0 && Nn(Zr), {
|
|
96
96
|
promise: new Promise((n) => {
|
|
97
|
-
|
|
97
|
+
Ve.add(t = { c: e, f: n });
|
|
98
98
|
}),
|
|
99
99
|
abort() {
|
|
100
|
-
|
|
100
|
+
Ve.delete(t);
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function J(e, t) {
|
|
105
105
|
e.appendChild(t);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
const r =
|
|
107
|
+
function Xi(e, t, n) {
|
|
108
|
+
const r = Hn(e);
|
|
109
109
|
if (!r.getElementById(t)) {
|
|
110
110
|
const i = te("style");
|
|
111
|
-
i.id = t, i.textContent = n,
|
|
111
|
+
i.id = t, i.textContent = n, qr(r, i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Hn(e) {
|
|
115
115
|
if (!e)
|
|
116
116
|
return document;
|
|
117
117
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -121,18 +121,18 @@ function Ln(e) {
|
|
|
121
121
|
t
|
|
122
122
|
) : e.ownerDocument;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Yi(e) {
|
|
125
125
|
const t = te("style");
|
|
126
|
-
return t.textContent = "/* empty */",
|
|
126
|
+
return t.textContent = "/* empty */", qr(Hn(e), t), t.sheet;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
128
|
+
function qr(e, t) {
|
|
129
|
+
return J(
|
|
130
130
|
/** @type {Document} */
|
|
131
131
|
e.head || e,
|
|
132
132
|
t
|
|
133
133
|
), t.sheet;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function we(e, t, n) {
|
|
136
136
|
e.insertBefore(t, n || null);
|
|
137
137
|
}
|
|
138
138
|
function ge(e) {
|
|
@@ -141,17 +141,17 @@ function ge(e) {
|
|
|
141
141
|
function te(e) {
|
|
142
142
|
return document.createElement(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function or(e) {
|
|
145
145
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ke(e) {
|
|
148
148
|
return document.createTextNode(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
150
|
+
function ht() {
|
|
151
|
+
return Ke(" ");
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Jr() {
|
|
154
|
+
return Ke("");
|
|
155
155
|
}
|
|
156
156
|
function kt(e, t, n, r) {
|
|
157
157
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
@@ -159,33 +159,33 @@ function kt(e, t, n, r) {
|
|
|
159
159
|
function j(e, t, n) {
|
|
160
160
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Zi(e) {
|
|
163
163
|
return Array.from(e.childNodes);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Zt(e, t) {
|
|
166
166
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
167
167
|
t);
|
|
168
168
|
}
|
|
169
|
-
let
|
|
170
|
-
function
|
|
171
|
-
if (
|
|
172
|
-
|
|
169
|
+
let Ot;
|
|
170
|
+
function qi() {
|
|
171
|
+
if (Ot === void 0) {
|
|
172
|
+
Ot = !1;
|
|
173
173
|
try {
|
|
174
174
|
typeof window < "u" && window.parent && window.parent.document;
|
|
175
175
|
} catch {
|
|
176
|
-
|
|
176
|
+
Ot = !0;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
return
|
|
179
|
+
return Ot;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Ji(e, t) {
|
|
182
182
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
183
183
|
const r = te("iframe");
|
|
184
184
|
r.setAttribute(
|
|
185
185
|
"style",
|
|
186
186
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
187
187
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
188
|
-
const i =
|
|
188
|
+
const i = qi();
|
|
189
189
|
let s;
|
|
190
190
|
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = kt(
|
|
191
191
|
window,
|
|
@@ -196,14 +196,14 @@ function qi(e, t) {
|
|
|
196
196
|
}
|
|
197
197
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
198
198
|
s = kt(r.contentWindow, "resize", t), t();
|
|
199
|
-
}),
|
|
199
|
+
}), J(e, r), () => {
|
|
200
200
|
(i || s && r.contentWindow) && s(), ge(r);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Qi(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
204
204
|
return new CustomEvent(e, { detail: t, bubbles: n, cancelable: r });
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Ki(e) {
|
|
207
207
|
const t = {};
|
|
208
208
|
return e.childNodes.forEach(
|
|
209
209
|
/** @param {Element} node */
|
|
@@ -214,39 +214,39 @@ function Qi(e) {
|
|
|
214
214
|
}
|
|
215
215
|
const Ft = /* @__PURE__ */ new Map();
|
|
216
216
|
let Gt = 0;
|
|
217
|
-
function
|
|
217
|
+
function es(e) {
|
|
218
218
|
let t = 5381, n = e.length;
|
|
219
219
|
for (; n--; )
|
|
220
220
|
t = (t << 5) - t ^ e.charCodeAt(n);
|
|
221
221
|
return t >>> 0;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const n = { stylesheet:
|
|
223
|
+
function ts(e, t) {
|
|
224
|
+
const n = { stylesheet: Yi(t), rules: {} };
|
|
225
225
|
return Ft.set(e, n), n;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function ar(e, t, n, r, i, s, u, a = 0) {
|
|
228
228
|
const c = 16.666 / r;
|
|
229
229
|
let l = `{
|
|
230
230
|
`;
|
|
231
|
-
for (let
|
|
232
|
-
const
|
|
233
|
-
l +=
|
|
231
|
+
for (let C = 0; C <= 1; C += c) {
|
|
232
|
+
const F = t + (n - t) * s(C);
|
|
233
|
+
l += C * 100 + `%{${u(F, 1 - F)}}
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
236
|
const f = l + `100% {${u(n, 1 - n)}}
|
|
237
|
-
}`,
|
|
238
|
-
|
|
237
|
+
}`, _ = `__svelte_${es(f)}_${a}`, y = Hn(e), { stylesheet: M, rules: b } = Ft.get(y) || ts(y, e);
|
|
238
|
+
b[_] || (b[_] = !0, M.insertRule(`@keyframes ${_} ${f}`, M.cssRules.length));
|
|
239
239
|
const d = e.style.animation || "";
|
|
240
|
-
return e.style.animation = `${d ? `${d}, ` : ""}${
|
|
240
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`, Gt += 1, _;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function ns(e, t) {
|
|
243
243
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
244
244
|
t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
|
|
245
245
|
// remove all Svelte animations
|
|
246
246
|
), i = n.length - r.length;
|
|
247
|
-
i && (e.style.animation = r.join(", "), Gt -= i, Gt ||
|
|
247
|
+
i && (e.style.animation = r.join(", "), Gt -= i, Gt || rs());
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function rs() {
|
|
250
250
|
Nn(() => {
|
|
251
251
|
Gt || (Ft.forEach((e) => {
|
|
252
252
|
const { ownerNode: t } = e.stylesheet;
|
|
@@ -254,185 +254,185 @@ function ns() {
|
|
|
254
254
|
}), Ft.clear());
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
let
|
|
258
|
-
function
|
|
259
|
-
|
|
257
|
+
let pt;
|
|
258
|
+
function dt(e) {
|
|
259
|
+
pt = e;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
if (!
|
|
261
|
+
function Qr() {
|
|
262
|
+
if (!pt)
|
|
263
263
|
throw new Error("Function called outside component initialization");
|
|
264
|
-
return
|
|
265
|
-
}
|
|
266
|
-
function rs(e) {
|
|
267
|
-
Jr().$$.on_mount.push(e);
|
|
264
|
+
return pt;
|
|
268
265
|
}
|
|
269
266
|
function is(e) {
|
|
270
|
-
|
|
267
|
+
Qr().$$.on_mount.push(e);
|
|
271
268
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
const ar = [], ss = /* @__PURE__ */ Promise.resolve();
|
|
275
|
-
let _n = !1;
|
|
276
|
-
function os() {
|
|
277
|
-
_n || (_n = !0, ss.then(le));
|
|
269
|
+
function ss(e) {
|
|
270
|
+
Qr().$$.on_destroy.push(e);
|
|
278
271
|
}
|
|
279
|
-
|
|
280
|
-
|
|
272
|
+
const We = [], jt = [];
|
|
273
|
+
let Xe = [];
|
|
274
|
+
const ur = [], os = /* @__PURE__ */ Promise.resolve();
|
|
275
|
+
let yn = !1;
|
|
276
|
+
function as() {
|
|
277
|
+
yn || (yn = !0, os.then(le));
|
|
281
278
|
}
|
|
282
|
-
|
|
283
|
-
|
|
279
|
+
function Ye(e) {
|
|
280
|
+
Xe.push(e);
|
|
281
|
+
}
|
|
282
|
+
const an = /* @__PURE__ */ new Set();
|
|
283
|
+
let je = 0;
|
|
284
284
|
function le() {
|
|
285
|
-
if (
|
|
285
|
+
if (je !== 0)
|
|
286
286
|
return;
|
|
287
|
-
const e =
|
|
287
|
+
const e = pt;
|
|
288
288
|
do {
|
|
289
289
|
try {
|
|
290
|
-
for (;
|
|
291
|
-
const t =
|
|
292
|
-
|
|
290
|
+
for (; je < We.length; ) {
|
|
291
|
+
const t = We[je];
|
|
292
|
+
je++, dt(t), us(t.$$);
|
|
293
293
|
}
|
|
294
294
|
} catch (t) {
|
|
295
|
-
throw
|
|
295
|
+
throw We.length = 0, je = 0, t;
|
|
296
296
|
}
|
|
297
|
-
for (
|
|
298
|
-
|
|
299
|
-
for (let t = 0; t <
|
|
300
|
-
const n =
|
|
301
|
-
|
|
297
|
+
for (dt(null), We.length = 0, je = 0; jt.length; )
|
|
298
|
+
jt.pop()();
|
|
299
|
+
for (let t = 0; t < Xe.length; t += 1) {
|
|
300
|
+
const n = Xe[t];
|
|
301
|
+
an.has(n) || (an.add(n), n());
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
} while (
|
|
305
|
-
for (;
|
|
306
|
-
|
|
307
|
-
|
|
303
|
+
Xe.length = 0;
|
|
304
|
+
} while (We.length);
|
|
305
|
+
for (; ur.length; )
|
|
306
|
+
ur.pop()();
|
|
307
|
+
yn = !1, an.clear(), dt(e);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function us(e) {
|
|
310
310
|
if (e.fragment !== null) {
|
|
311
|
-
e.update(),
|
|
311
|
+
e.update(), Ie(e.before_update);
|
|
312
312
|
const t = e.dirty;
|
|
313
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
313
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function ls(e) {
|
|
317
317
|
const t = [], n = [];
|
|
318
|
-
|
|
318
|
+
Xe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Xe = t;
|
|
319
319
|
}
|
|
320
|
-
let
|
|
321
|
-
function
|
|
322
|
-
return
|
|
323
|
-
|
|
324
|
-
})),
|
|
320
|
+
let st;
|
|
321
|
+
function cs() {
|
|
322
|
+
return st || (st = Promise.resolve(), st.then(() => {
|
|
323
|
+
st = null;
|
|
324
|
+
})), st;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
e.dispatchEvent(
|
|
326
|
+
function un(e, t, n) {
|
|
327
|
+
e.dispatchEvent(Qi(`${t ? "intro" : "outro"}${n}`));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
let
|
|
331
|
-
function
|
|
332
|
-
|
|
329
|
+
const Rt = /* @__PURE__ */ new Set();
|
|
330
|
+
let Ce;
|
|
331
|
+
function Kr() {
|
|
332
|
+
Ce = {
|
|
333
333
|
r: 0,
|
|
334
334
|
c: [],
|
|
335
|
-
p:
|
|
335
|
+
p: Ce
|
|
336
336
|
// parent group
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
339
|
+
function ei() {
|
|
340
|
+
Ce.r || Ie(Ce.c), Ce = Ce.p;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
343
|
-
e && e.i && (
|
|
342
|
+
function Se(e, t) {
|
|
343
|
+
e && e.i && (Rt.delete(e), e.i(t));
|
|
344
344
|
}
|
|
345
345
|
function Ne(e, t, n, r) {
|
|
346
346
|
if (e && e.o) {
|
|
347
|
-
if (
|
|
347
|
+
if (Rt.has(e))
|
|
348
348
|
return;
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
Rt.add(e), Ce.c.push(() => {
|
|
350
|
+
Rt.delete(e), r && (n && e.d(1), r());
|
|
351
351
|
}), e.o(t);
|
|
352
352
|
} else
|
|
353
353
|
r && r();
|
|
354
354
|
}
|
|
355
|
-
const
|
|
356
|
-
function
|
|
355
|
+
const fs = { duration: 0 };
|
|
356
|
+
function lr(e, t, n, r) {
|
|
357
357
|
let s = t(e, n, { direction: "both" }), u = r ? 0 : 1, a = null, c = null, l = null, f;
|
|
358
|
-
function
|
|
359
|
-
l &&
|
|
358
|
+
function _() {
|
|
359
|
+
l && ns(e, l);
|
|
360
360
|
}
|
|
361
|
-
function y(
|
|
362
|
-
const
|
|
361
|
+
function y(b, d) {
|
|
362
|
+
const C = (
|
|
363
363
|
/** @type {Program['d']} */
|
|
364
|
-
|
|
364
|
+
b.b - u
|
|
365
365
|
);
|
|
366
|
-
return d *= Math.abs(
|
|
366
|
+
return d *= Math.abs(C), {
|
|
367
367
|
a: u,
|
|
368
|
-
b:
|
|
369
|
-
d:
|
|
368
|
+
b: b.b,
|
|
369
|
+
d: C,
|
|
370
370
|
duration: d,
|
|
371
|
-
start:
|
|
372
|
-
end:
|
|
373
|
-
group:
|
|
371
|
+
start: b.start,
|
|
372
|
+
end: b.start + d,
|
|
373
|
+
group: b.group
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function M(b) {
|
|
377
377
|
const {
|
|
378
378
|
delay: d = 0,
|
|
379
|
-
duration:
|
|
380
|
-
easing:
|
|
381
|
-
tick:
|
|
379
|
+
duration: C = 300,
|
|
380
|
+
easing: F = jr,
|
|
381
|
+
tick: $ = de,
|
|
382
382
|
css: A
|
|
383
|
-
} = s ||
|
|
384
|
-
start:
|
|
385
|
-
b
|
|
383
|
+
} = s || fs, H = {
|
|
384
|
+
start: Wi() + d,
|
|
385
|
+
b
|
|
386
386
|
};
|
|
387
|
-
|
|
388
|
-
e.inert, e.inert = !0)), a || c ? c = H : (A && (
|
|
389
|
-
if (c &&
|
|
387
|
+
b || (H.group = Ce, Ce.r += 1), "inert" in e && (b ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
388
|
+
e.inert, e.inert = !0)), a || c ? c = H : (A && (_(), l = ar(e, u, b, C, d, F, A)), b && $(0, 1), a = y(H, C), Ye(() => un(e, b, "start")), Vi((R) => {
|
|
389
|
+
if (c && R > c.start && (a = y(c, C), c = null, un(e, a.b, "start"), A && (_(), l = ar(
|
|
390
390
|
e,
|
|
391
391
|
u,
|
|
392
392
|
a.b,
|
|
393
393
|
a.duration,
|
|
394
394
|
0,
|
|
395
|
-
|
|
395
|
+
F,
|
|
396
396
|
s.css
|
|
397
397
|
))), a) {
|
|
398
|
-
if (
|
|
399
|
-
|
|
400
|
-
else if (
|
|
401
|
-
const
|
|
402
|
-
u = a.a + a.d *
|
|
398
|
+
if (R >= a.end)
|
|
399
|
+
$(u = a.b, 1 - u), un(e, a.b, "end"), c || (a.b ? _() : --a.group.r || Ie(a.group.c)), a = null;
|
|
400
|
+
else if (R >= a.start) {
|
|
401
|
+
const U = R - a.start;
|
|
402
|
+
u = a.a + a.d * F(U / a.duration), $(u, 1 - u);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
return !!(a || c);
|
|
406
406
|
}));
|
|
407
407
|
}
|
|
408
408
|
return {
|
|
409
|
-
run(
|
|
410
|
-
|
|
411
|
-
s = s({ direction:
|
|
412
|
-
}) :
|
|
409
|
+
run(b) {
|
|
410
|
+
Yt(s) ? cs().then(() => {
|
|
411
|
+
s = s({ direction: b ? "in" : "out" }), M(b);
|
|
412
|
+
}) : M(b);
|
|
413
413
|
},
|
|
414
414
|
end() {
|
|
415
|
-
|
|
415
|
+
_(), a = c = null;
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function hs(e, t, n) {
|
|
420
420
|
const { fragment: r, after_update: i } = e.$$;
|
|
421
|
-
r && r.m(t, n),
|
|
422
|
-
const s = e.$$.on_mount.map(
|
|
423
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
424
|
-
}), i.forEach(
|
|
421
|
+
r && r.m(t, n), Ye(() => {
|
|
422
|
+
const s = e.$$.on_mount.map(zr).filter(Yt);
|
|
423
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ie(s), e.$$.on_mount = [];
|
|
424
|
+
}), i.forEach(Ye);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function ms(e, t) {
|
|
427
427
|
const n = e.$$;
|
|
428
|
-
n.fragment !== null && (
|
|
428
|
+
n.fragment !== null && (ls(n.after_update), Ie(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
e.$$.dirty[0] === -1 && (
|
|
430
|
+
function ds(e, t) {
|
|
431
|
+
e.$$.dirty[0] === -1 && (We.push(e), as(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
const c =
|
|
435
|
-
|
|
433
|
+
function ps(e, t, n, r, i, s, u = null, a = [-1]) {
|
|
434
|
+
const c = pt;
|
|
435
|
+
dt(e);
|
|
436
436
|
const l = e.$$ = {
|
|
437
437
|
fragment: null,
|
|
438
438
|
ctx: [],
|
|
@@ -456,21 +456,21 @@ function ds(e, t, n, r, i, s, u = null, a = [-1]) {
|
|
|
456
456
|
};
|
|
457
457
|
u && u(l.root);
|
|
458
458
|
let f = !1;
|
|
459
|
-
if (l.ctx = n(e, t.props || {}, (
|
|
460
|
-
const
|
|
461
|
-
return l.ctx && i(l.ctx[
|
|
462
|
-
}), l.update(), f = !0,
|
|
459
|
+
if (l.ctx = n ? n(e, t.props || {}, (_, y, ...M) => {
|
|
460
|
+
const b = M.length ? M[0] : y;
|
|
461
|
+
return l.ctx && i(l.ctx[_], l.ctx[_] = b) && (!l.skip_bound && l.bound[_] && l.bound[_](b), f && ds(e, _)), y;
|
|
462
|
+
}) : [], l.update(), f = !0, Ie(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
463
463
|
if (t.hydrate) {
|
|
464
|
-
const
|
|
465
|
-
l.fragment && l.fragment.l(
|
|
464
|
+
const _ = Zi(t.target);
|
|
465
|
+
l.fragment && l.fragment.l(_), _.forEach(ge);
|
|
466
466
|
} else
|
|
467
467
|
l.fragment && l.fragment.c();
|
|
468
|
-
t.intro &&
|
|
468
|
+
t.intro && Se(e.$$.fragment), hs(e, t.target, t.anchor), le();
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
dt(c);
|
|
471
471
|
}
|
|
472
|
-
let
|
|
473
|
-
typeof HTMLElement == "function" && (
|
|
472
|
+
let ti;
|
|
473
|
+
typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
474
474
|
/** The Svelte component constructor */
|
|
475
475
|
$$ctor;
|
|
476
476
|
/** Slots */
|
|
@@ -519,7 +519,7 @@ typeof HTMLElement == "function" && (ei = class extends HTMLElement {
|
|
|
519
519
|
* @param {HTMLElement} [anchor]
|
|
520
520
|
*/
|
|
521
521
|
m: function(c, l) {
|
|
522
|
-
|
|
522
|
+
we(c, s, l);
|
|
523
523
|
},
|
|
524
524
|
d: function(c) {
|
|
525
525
|
c && ge(s);
|
|
@@ -529,12 +529,12 @@ typeof HTMLElement == "function" && (ei = class extends HTMLElement {
|
|
|
529
529
|
};
|
|
530
530
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
531
531
|
return;
|
|
532
|
-
const t = {}, n =
|
|
532
|
+
const t = {}, n = Ki(this);
|
|
533
533
|
for (const i of this.$$s)
|
|
534
534
|
i in n && (t[i] = [e(i)]);
|
|
535
535
|
for (const i of this.attributes) {
|
|
536
536
|
const s = this.$$g_p(i.name);
|
|
537
|
-
s in this.$$d || (this.$$d[s] =
|
|
537
|
+
s in this.$$d || (this.$$d[s] = Dt(s, i.value, this.$$p_d, "toProp"));
|
|
538
538
|
}
|
|
539
539
|
for (const i in this.$$p_d)
|
|
540
540
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -552,7 +552,7 @@ typeof HTMLElement == "function" && (ei = class extends HTMLElement {
|
|
|
552
552
|
this.$$r = !0;
|
|
553
553
|
for (const i in this.$$p_d)
|
|
554
554
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
555
|
-
const s =
|
|
555
|
+
const s = Dt(
|
|
556
556
|
i,
|
|
557
557
|
this.$$d[i],
|
|
558
558
|
this.$$p_d,
|
|
@@ -574,7 +574,7 @@ typeof HTMLElement == "function" && (ei = class extends HTMLElement {
|
|
|
574
574
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
575
575
|
// and setting attributes through setAttribute etc, this is helpful
|
|
576
576
|
attributeChangedCallback(e, t, n) {
|
|
577
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
577
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Dt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
578
578
|
}
|
|
579
579
|
disconnectedCallback() {
|
|
580
580
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -587,7 +587,7 @@ typeof HTMLElement == "function" && (ei = class extends HTMLElement {
|
|
|
587
587
|
) || e;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
function
|
|
590
|
+
function Dt(e, t, n, r) {
|
|
591
591
|
const i = n[e]?.type;
|
|
592
592
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
593
593
|
return t;
|
|
@@ -616,8 +616,8 @@ function It(e, t, n, r) {
|
|
|
616
616
|
return t;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
let u = class extends
|
|
619
|
+
function gs(e, t, n, r, i, s) {
|
|
620
|
+
let u = class extends ti {
|
|
621
621
|
constructor() {
|
|
622
622
|
super(e, n, i), this.$$p_d = t;
|
|
623
623
|
}
|
|
@@ -633,7 +633,7 @@ function ps(e, t, n, r, i, s) {
|
|
|
633
633
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
634
634
|
},
|
|
635
635
|
set(c) {
|
|
636
|
-
c =
|
|
636
|
+
c = Dt(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
|
|
637
637
|
}
|
|
638
638
|
});
|
|
639
639
|
}), r.forEach((a) => {
|
|
@@ -645,7 +645,7 @@ function ps(e, t, n, r, i, s) {
|
|
|
645
645
|
}), e.element = /** @type {any} */
|
|
646
646
|
u, u;
|
|
647
647
|
}
|
|
648
|
-
class
|
|
648
|
+
class _s {
|
|
649
649
|
/**
|
|
650
650
|
* ### PRIVATE API
|
|
651
651
|
*
|
|
@@ -664,7 +664,7 @@ class gs {
|
|
|
664
664
|
$$set = void 0;
|
|
665
665
|
/** @returns {void} */
|
|
666
666
|
$destroy() {
|
|
667
|
-
|
|
667
|
+
ms(this, 1), this.$destroy = de;
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
670
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -673,7 +673,7 @@ class gs {
|
|
|
673
673
|
* @returns {() => void}
|
|
674
674
|
*/
|
|
675
675
|
$on(t, n) {
|
|
676
|
-
if (!
|
|
676
|
+
if (!Yt(n))
|
|
677
677
|
return de;
|
|
678
678
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
679
679
|
return r.push(n), () => {
|
|
@@ -686,12 +686,12 @@ class gs {
|
|
|
686
686
|
* @returns {void}
|
|
687
687
|
*/
|
|
688
688
|
$set(t) {
|
|
689
|
-
this.$$set && !
|
|
689
|
+
this.$$set && !zi(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
const bs = "4";
|
|
693
693
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(bs);
|
|
694
|
-
function
|
|
694
|
+
function cr(e, { delay: t = 0, duration: n = 400, easing: r = jr } = {}) {
|
|
695
695
|
const i = +getComputedStyle(e).opacity;
|
|
696
696
|
return {
|
|
697
697
|
delay: t,
|
|
@@ -700,7 +700,7 @@ function lr(e, { delay: t = 0, duration: n = 400, easing: r = $r } = {}) {
|
|
|
700
700
|
css: (s) => `opacity: ${s * i}`
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const ze = [];
|
|
704
704
|
function Es(e, t) {
|
|
705
705
|
return {
|
|
706
706
|
subscribe: bt(e, t).subscribe
|
|
@@ -710,14 +710,14 @@ function bt(e, t = de) {
|
|
|
710
710
|
let n;
|
|
711
711
|
const r = /* @__PURE__ */ new Set();
|
|
712
712
|
function i(a) {
|
|
713
|
-
if (
|
|
714
|
-
const c = !
|
|
713
|
+
if (Wr(e, a) && (e = a, n)) {
|
|
714
|
+
const c = !ze.length;
|
|
715
715
|
for (const l of r)
|
|
716
|
-
l[1](),
|
|
716
|
+
l[1](), ze.push(l, e);
|
|
717
717
|
if (c) {
|
|
718
|
-
for (let l = 0; l <
|
|
719
|
-
|
|
720
|
-
|
|
718
|
+
for (let l = 0; l < ze.length; l += 2)
|
|
719
|
+
ze[l][0](ze[l + 1]);
|
|
720
|
+
ze.length = 0;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -732,7 +732,7 @@ function bt(e, t = de) {
|
|
|
732
732
|
}
|
|
733
733
|
return { set: i, update: s, subscribe: u };
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function et(e, t, n) {
|
|
736
736
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
737
737
|
if (!i.every(Boolean))
|
|
738
738
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -740,18 +740,18 @@ function Ke(e, t, n) {
|
|
|
740
740
|
return Es(n, (u, a) => {
|
|
741
741
|
let c = !1;
|
|
742
742
|
const l = [];
|
|
743
|
-
let f = 0,
|
|
743
|
+
let f = 0, _ = de;
|
|
744
744
|
const y = () => {
|
|
745
745
|
if (f)
|
|
746
746
|
return;
|
|
747
|
-
|
|
748
|
-
const
|
|
749
|
-
s ? u(
|
|
750
|
-
},
|
|
751
|
-
(
|
|
752
|
-
|
|
753
|
-
(
|
|
754
|
-
l[d] =
|
|
747
|
+
_();
|
|
748
|
+
const b = t(r ? l[0] : l, u, a);
|
|
749
|
+
s ? u(b) : _ = Yt(b) ? b : de;
|
|
750
|
+
}, M = i.map(
|
|
751
|
+
(b, d) => Vr(
|
|
752
|
+
b,
|
|
753
|
+
(C) => {
|
|
754
|
+
l[d] = C, f &= ~(1 << d), c && y();
|
|
755
755
|
},
|
|
756
756
|
() => {
|
|
757
757
|
f |= 1 << d;
|
|
@@ -759,127 +759,113 @@ function Ke(e, t, n) {
|
|
|
759
759
|
)
|
|
760
760
|
);
|
|
761
761
|
return c = !0, y(), function() {
|
|
762
|
-
|
|
762
|
+
Ie(M), _(), c = !1;
|
|
763
763
|
};
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
var
|
|
767
|
-
function
|
|
766
|
+
var ni = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
767
|
+
function In(e) {
|
|
768
768
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
769
769
|
}
|
|
770
|
-
var
|
|
771
|
-
return
|
|
770
|
+
var ys = function(t) {
|
|
771
|
+
return xs(t) && !vs(t);
|
|
772
772
|
};
|
|
773
|
-
function
|
|
773
|
+
function xs(e) {
|
|
774
774
|
return !!e && typeof e == "object";
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function vs(e) {
|
|
777
777
|
var t = Object.prototype.toString.call(e);
|
|
778
778
|
return t === "[object RegExp]" || t === "[object Date]" || As(e);
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var Ts = typeof Symbol == "function" && Symbol.for, Ss = Ts ? Symbol.for("react.element") : 60103;
|
|
781
781
|
function As(e) {
|
|
782
|
-
return e.$$typeof ===
|
|
782
|
+
return e.$$typeof === Ss;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function ws(e) {
|
|
785
785
|
return Array.isArray(e) ? [] : {};
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
787
|
+
function gt(e, t) {
|
|
788
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ze(ws(e), e, t) : e;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Os(e, t, n) {
|
|
791
791
|
return e.concat(t).map(function(r) {
|
|
792
|
-
return
|
|
792
|
+
return gt(r, n);
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function Ms(e, t) {
|
|
796
796
|
if (!t.customMerge)
|
|
797
|
-
return
|
|
797
|
+
return Ze;
|
|
798
798
|
var n = t.customMerge(e);
|
|
799
|
-
return typeof n == "function" ? n :
|
|
799
|
+
return typeof n == "function" ? n : Ze;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function Cs(e) {
|
|
802
802
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
803
803
|
return Object.propertyIsEnumerable.call(e, t);
|
|
804
804
|
}) : [];
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
return Object.keys(e).concat(
|
|
806
|
+
function fr(e) {
|
|
807
|
+
return Object.keys(e).concat(Cs(e));
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function ri(e, t) {
|
|
810
810
|
try {
|
|
811
811
|
return t in e;
|
|
812
812
|
} catch {
|
|
813
813
|
return !1;
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
function
|
|
817
|
-
return
|
|
816
|
+
function Ls(e, t) {
|
|
817
|
+
return ri(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
818
818
|
}
|
|
819
819
|
function Ns(e, t, n) {
|
|
820
820
|
var r = {};
|
|
821
|
-
return n.isMergeableObject(e) &&
|
|
822
|
-
r[i] =
|
|
823
|
-
}),
|
|
824
|
-
|
|
821
|
+
return n.isMergeableObject(e) && fr(e).forEach(function(i) {
|
|
822
|
+
r[i] = gt(e[i], n);
|
|
823
|
+
}), fr(t).forEach(function(i) {
|
|
824
|
+
Ls(e, i) || (ri(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ms(i, n)(e[i], t[i], n) : r[i] = gt(t[i], n));
|
|
825
825
|
}), r;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
827
|
+
function Ze(e, t, n) {
|
|
828
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Os, n.isMergeableObject = n.isMergeableObject || ys, n.cloneUnlessOtherwiseSpecified = gt;
|
|
829
829
|
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
830
|
-
return s ? r ? n.arrayMerge(e, t, n) : Ns(e, t, n) :
|
|
830
|
+
return s ? r ? n.arrayMerge(e, t, n) : Ns(e, t, n) : gt(t, n);
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
Ze.all = function(t, n) {
|
|
833
833
|
if (!Array.isArray(t))
|
|
834
834
|
throw new Error("first argument should be an array");
|
|
835
835
|
return t.reduce(function(r, i) {
|
|
836
|
-
return
|
|
836
|
+
return Ze(r, i, n);
|
|
837
837
|
}, {});
|
|
838
838
|
};
|
|
839
|
-
var
|
|
840
|
-
const
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
845
|
-
purpose with or without fee is hereby granted.
|
|
846
|
-
|
|
847
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
848
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
849
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
850
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
851
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
852
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
853
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
854
|
-
***************************************************************************** */
|
|
855
|
-
var yn = function(e, t) {
|
|
856
|
-
return yn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
839
|
+
var Hs = Ze, Is = Hs;
|
|
840
|
+
const Ps = /* @__PURE__ */ In(Is);
|
|
841
|
+
var xn = function(e, t) {
|
|
842
|
+
return xn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
857
843
|
n.__proto__ = r;
|
|
858
844
|
} || function(n, r) {
|
|
859
845
|
for (var i in r)
|
|
860
846
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
861
|
-
},
|
|
847
|
+
}, xn(e, t);
|
|
862
848
|
};
|
|
863
|
-
function
|
|
849
|
+
function qt(e, t) {
|
|
864
850
|
if (typeof t != "function" && t !== null)
|
|
865
851
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
866
|
-
|
|
852
|
+
xn(e, t);
|
|
867
853
|
function n() {
|
|
868
854
|
this.constructor = e;
|
|
869
855
|
}
|
|
870
856
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
871
857
|
}
|
|
872
|
-
var
|
|
873
|
-
return
|
|
858
|
+
var Ae = function() {
|
|
859
|
+
return Ae = Object.assign || function(t) {
|
|
874
860
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
875
861
|
n = arguments[r];
|
|
876
862
|
for (var s in n)
|
|
877
863
|
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
878
864
|
}
|
|
879
865
|
return t;
|
|
880
|
-
},
|
|
866
|
+
}, Ae.apply(this, arguments);
|
|
881
867
|
};
|
|
882
|
-
function
|
|
868
|
+
function Rs(e, t) {
|
|
883
869
|
var n = {};
|
|
884
870
|
for (var r in e)
|
|
885
871
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -888,42 +874,39 @@ function Ps(e, t) {
|
|
|
888
874
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
889
875
|
return n;
|
|
890
876
|
}
|
|
891
|
-
function
|
|
892
|
-
if (arguments.length === 2)
|
|
877
|
+
function ln(e, t, n) {
|
|
878
|
+
if (n || arguments.length === 2)
|
|
893
879
|
for (var r = 0, i = t.length, s; r < i; r++)
|
|
894
880
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
895
|
-
return e.concat(s || t);
|
|
881
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
896
882
|
}
|
|
897
|
-
function
|
|
898
|
-
var n = t && t.cache ? t.cache : Gs, r = t && t.serializer ? t.serializer : ks, i = t && t.strategy ? t.strategy :
|
|
883
|
+
function cn(e, t) {
|
|
884
|
+
var n = t && t.cache ? t.cache : Gs, r = t && t.serializer ? t.serializer : ks, i = t && t.strategy ? t.strategy : $s;
|
|
899
885
|
return i(e, {
|
|
900
886
|
cache: n,
|
|
901
887
|
serializer: r
|
|
902
888
|
});
|
|
903
889
|
}
|
|
904
|
-
function
|
|
890
|
+
function Ds(e) {
|
|
905
891
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
906
892
|
}
|
|
907
|
-
function
|
|
908
|
-
var i =
|
|
893
|
+
function Bs(e, t, n, r) {
|
|
894
|
+
var i = Ds(r) ? r : n(r), s = t.get(i);
|
|
909
895
|
return typeof s > "u" && (s = e.call(this, r), t.set(i, s)), s;
|
|
910
896
|
}
|
|
911
897
|
function ii(e, t, n) {
|
|
912
898
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
913
899
|
return typeof s > "u" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
914
900
|
}
|
|
915
|
-
function
|
|
901
|
+
function si(e, t, n, r, i) {
|
|
916
902
|
return n.bind(t, e, r, i);
|
|
917
903
|
}
|
|
918
|
-
function
|
|
919
|
-
var n = e.length === 1 ?
|
|
920
|
-
return
|
|
921
|
-
}
|
|
922
|
-
function Bs(e, t) {
|
|
923
|
-
return Rn(e, this, ii, t.cache.create(), t.serializer);
|
|
904
|
+
function $s(e, t) {
|
|
905
|
+
var n = e.length === 1 ? Bs : ii;
|
|
906
|
+
return si(e, this, n, t.cache.create(), t.serializer);
|
|
924
907
|
}
|
|
925
908
|
function Us(e, t) {
|
|
926
|
-
return
|
|
909
|
+
return si(e, this, ii, t.cache.create(), t.serializer);
|
|
927
910
|
}
|
|
928
911
|
var ks = function() {
|
|
929
912
|
return JSON.stringify(arguments);
|
|
@@ -943,10 +926,19 @@ var ks = function() {
|
|
|
943
926
|
create: function() {
|
|
944
927
|
return new Fs();
|
|
945
928
|
}
|
|
946
|
-
},
|
|
947
|
-
variadic:
|
|
948
|
-
|
|
949
|
-
|
|
929
|
+
}, fn = {
|
|
930
|
+
variadic: Us
|
|
931
|
+
}, zt = function() {
|
|
932
|
+
return zt = Object.assign || function(t) {
|
|
933
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
934
|
+
n = arguments[r];
|
|
935
|
+
for (var s in n)
|
|
936
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
937
|
+
}
|
|
938
|
+
return t;
|
|
939
|
+
}, zt.apply(this, arguments);
|
|
940
|
+
};
|
|
941
|
+
var D;
|
|
950
942
|
(function(e) {
|
|
951
943
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
952
944
|
})(D || (D = {}));
|
|
@@ -954,47 +946,47 @@ var X;
|
|
|
954
946
|
(function(e) {
|
|
955
947
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
956
948
|
})(X || (X = {}));
|
|
957
|
-
var
|
|
949
|
+
var qe;
|
|
958
950
|
(function(e) {
|
|
959
951
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
960
|
-
})(
|
|
961
|
-
function
|
|
952
|
+
})(qe || (qe = {}));
|
|
953
|
+
function hr(e) {
|
|
962
954
|
return e.type === X.literal;
|
|
963
955
|
}
|
|
964
|
-
function
|
|
956
|
+
function js(e) {
|
|
965
957
|
return e.type === X.argument;
|
|
966
958
|
}
|
|
967
|
-
function
|
|
959
|
+
function oi(e) {
|
|
968
960
|
return e.type === X.number;
|
|
969
961
|
}
|
|
970
|
-
function
|
|
962
|
+
function ai(e) {
|
|
971
963
|
return e.type === X.date;
|
|
972
964
|
}
|
|
973
|
-
function
|
|
965
|
+
function ui(e) {
|
|
974
966
|
return e.type === X.time;
|
|
975
967
|
}
|
|
976
|
-
function
|
|
968
|
+
function li(e) {
|
|
977
969
|
return e.type === X.select;
|
|
978
970
|
}
|
|
979
|
-
function
|
|
971
|
+
function ci(e) {
|
|
980
972
|
return e.type === X.plural;
|
|
981
973
|
}
|
|
982
|
-
function
|
|
974
|
+
function zs(e) {
|
|
983
975
|
return e.type === X.pound;
|
|
984
976
|
}
|
|
985
|
-
function
|
|
977
|
+
function fi(e) {
|
|
986
978
|
return e.type === X.tag;
|
|
987
979
|
}
|
|
988
|
-
function
|
|
989
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
980
|
+
function hi(e) {
|
|
981
|
+
return !!(e && typeof e == "object" && e.type === qe.number);
|
|
990
982
|
}
|
|
991
|
-
function
|
|
992
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
983
|
+
function vn(e) {
|
|
984
|
+
return !!(e && typeof e == "object" && e.type === qe.dateTime);
|
|
993
985
|
}
|
|
994
|
-
var
|
|
995
|
-
function
|
|
986
|
+
var mi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ws = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
987
|
+
function Vs(e) {
|
|
996
988
|
var t = {};
|
|
997
|
-
return e.replace(
|
|
989
|
+
return e.replace(Ws, function(n) {
|
|
998
990
|
var r = n.length;
|
|
999
991
|
switch (n[0]) {
|
|
1000
992
|
case "G":
|
|
@@ -1083,36 +1075,46 @@ function Ws(e) {
|
|
|
1083
1075
|
return "";
|
|
1084
1076
|
}), t;
|
|
1085
1077
|
}
|
|
1086
|
-
var
|
|
1087
|
-
function
|
|
1078
|
+
var Z = function() {
|
|
1079
|
+
return Z = Object.assign || function(t) {
|
|
1080
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1081
|
+
n = arguments[r];
|
|
1082
|
+
for (var s in n)
|
|
1083
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
1084
|
+
}
|
|
1085
|
+
return t;
|
|
1086
|
+
}, Z.apply(this, arguments);
|
|
1087
|
+
};
|
|
1088
|
+
var Xs = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1089
|
+
function Ys(e) {
|
|
1088
1090
|
if (e.length === 0)
|
|
1089
1091
|
throw new Error("Number skeleton cannot be empty");
|
|
1090
|
-
for (var t = e.split(
|
|
1092
|
+
for (var t = e.split(Xs).filter(function(y) {
|
|
1091
1093
|
return y.length > 0;
|
|
1092
1094
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1093
1095
|
var s = i[r], u = s.split("/");
|
|
1094
1096
|
if (u.length === 0)
|
|
1095
1097
|
throw new Error("Invalid number skeleton");
|
|
1096
1098
|
for (var a = u[0], c = u.slice(1), l = 0, f = c; l < f.length; l++) {
|
|
1097
|
-
var
|
|
1098
|
-
if (
|
|
1099
|
+
var _ = f[l];
|
|
1100
|
+
if (_.length === 0)
|
|
1099
1101
|
throw new Error("Invalid number skeleton");
|
|
1100
1102
|
}
|
|
1101
1103
|
n.push({ stem: a, options: c });
|
|
1102
1104
|
}
|
|
1103
1105
|
return n;
|
|
1104
1106
|
}
|
|
1105
|
-
function
|
|
1107
|
+
function Zs(e) {
|
|
1106
1108
|
return e.replace(/^(.*?)-/, "");
|
|
1107
1109
|
}
|
|
1108
|
-
var
|
|
1109
|
-
function
|
|
1110
|
+
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, di = /^(@+)?(\+|#+)?[rs]?$/g, qs = /(\*)(0+)|(#+)(0+)|(0+)/g, pi = /^(0+)$/;
|
|
1111
|
+
function dr(e) {
|
|
1110
1112
|
var t = {};
|
|
1111
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1113
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(di, function(n, r, i) {
|
|
1112
1114
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1113
1115
|
}), t;
|
|
1114
1116
|
}
|
|
1115
|
-
function
|
|
1117
|
+
function gi(e) {
|
|
1116
1118
|
switch (e) {
|
|
1117
1119
|
case "sign-auto":
|
|
1118
1120
|
return {
|
|
@@ -1152,7 +1154,7 @@ function pi(e) {
|
|
|
1152
1154
|
};
|
|
1153
1155
|
}
|
|
1154
1156
|
}
|
|
1155
|
-
function
|
|
1157
|
+
function Js(e) {
|
|
1156
1158
|
var t;
|
|
1157
1159
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1158
1160
|
notation: "engineering"
|
|
@@ -1160,17 +1162,17 @@ function qs(e) {
|
|
|
1160
1162
|
notation: "scientific"
|
|
1161
1163
|
}, e = e.slice(1)), t) {
|
|
1162
1164
|
var n = e.slice(0, 2);
|
|
1163
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1165
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !pi.test(e))
|
|
1164
1166
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1165
1167
|
t.minimumIntegerDigits = e.length;
|
|
1166
1168
|
}
|
|
1167
1169
|
return t;
|
|
1168
1170
|
}
|
|
1169
|
-
function
|
|
1170
|
-
var t = {}, n =
|
|
1171
|
+
function pr(e) {
|
|
1172
|
+
var t = {}, n = gi(e);
|
|
1171
1173
|
return n || t;
|
|
1172
1174
|
}
|
|
1173
|
-
function
|
|
1175
|
+
function Qs(e) {
|
|
1174
1176
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1175
1177
|
var i = r[n];
|
|
1176
1178
|
switch (i.stem) {
|
|
@@ -1194,7 +1196,7 @@ function Js(e) {
|
|
|
1194
1196
|
continue;
|
|
1195
1197
|
case "measure-unit":
|
|
1196
1198
|
case "unit":
|
|
1197
|
-
t.style = "unit", t.unit =
|
|
1199
|
+
t.style = "unit", t.unit = Zs(i.options[0]);
|
|
1198
1200
|
continue;
|
|
1199
1201
|
case "compact-short":
|
|
1200
1202
|
case "K":
|
|
@@ -1205,13 +1207,13 @@ function Js(e) {
|
|
|
1205
1207
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1206
1208
|
continue;
|
|
1207
1209
|
case "scientific":
|
|
1208
|
-
t =
|
|
1209
|
-
return
|
|
1210
|
+
t = Z(Z(Z({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1211
|
+
return Z(Z({}, c), pr(l));
|
|
1210
1212
|
}, {}));
|
|
1211
1213
|
continue;
|
|
1212
1214
|
case "engineering":
|
|
1213
|
-
t =
|
|
1214
|
-
return
|
|
1215
|
+
t = Z(Z(Z({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1216
|
+
return Z(Z({}, c), pr(l));
|
|
1215
1217
|
}, {}));
|
|
1216
1218
|
continue;
|
|
1217
1219
|
case "notation-simple":
|
|
@@ -1256,45 +1258,45 @@ function Js(e) {
|
|
|
1256
1258
|
case "integer-width":
|
|
1257
1259
|
if (i.options.length > 1)
|
|
1258
1260
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1259
|
-
i.options[0].replace(
|
|
1261
|
+
i.options[0].replace(qs, function(c, l, f, _, y, M) {
|
|
1260
1262
|
if (l)
|
|
1261
1263
|
t.minimumIntegerDigits = f.length;
|
|
1262
1264
|
else {
|
|
1263
|
-
if (
|
|
1265
|
+
if (_ && y)
|
|
1264
1266
|
throw new Error("We currently do not support maximum integer digits");
|
|
1265
|
-
if (
|
|
1267
|
+
if (M)
|
|
1266
1268
|
throw new Error("We currently do not support exact integer digits");
|
|
1267
1269
|
}
|
|
1268
1270
|
return "";
|
|
1269
1271
|
});
|
|
1270
1272
|
continue;
|
|
1271
1273
|
}
|
|
1272
|
-
if (
|
|
1274
|
+
if (pi.test(i.stem)) {
|
|
1273
1275
|
t.minimumIntegerDigits = i.stem.length;
|
|
1274
1276
|
continue;
|
|
1275
1277
|
}
|
|
1276
|
-
if (
|
|
1278
|
+
if (mr.test(i.stem)) {
|
|
1277
1279
|
if (i.options.length > 1)
|
|
1278
1280
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1279
|
-
i.stem.replace(
|
|
1280
|
-
return f === "*" ? t.minimumFractionDigits = l.length :
|
|
1281
|
+
i.stem.replace(mr, function(c, l, f, _, y, M) {
|
|
1282
|
+
return f === "*" ? t.minimumFractionDigits = l.length : _ && _[0] === "#" ? t.maximumFractionDigits = _.length : y && M ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + M.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1281
1283
|
});
|
|
1282
1284
|
var s = i.options[0];
|
|
1283
|
-
s === "w" ? t =
|
|
1285
|
+
s === "w" ? t = Z(Z({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = Z(Z({}, t), dr(s)));
|
|
1284
1286
|
continue;
|
|
1285
1287
|
}
|
|
1286
|
-
if (
|
|
1287
|
-
t =
|
|
1288
|
+
if (di.test(i.stem)) {
|
|
1289
|
+
t = Z(Z({}, t), dr(i.stem));
|
|
1288
1290
|
continue;
|
|
1289
1291
|
}
|
|
1290
|
-
var u =
|
|
1291
|
-
u && (t =
|
|
1292
|
-
var a =
|
|
1293
|
-
a && (t =
|
|
1292
|
+
var u = gi(i.stem);
|
|
1293
|
+
u && (t = Z(Z({}, t), u));
|
|
1294
|
+
var a = Js(i.stem);
|
|
1295
|
+
a && (t = Z(Z({}, t), a));
|
|
1294
1296
|
}
|
|
1295
1297
|
return t;
|
|
1296
1298
|
}
|
|
1297
|
-
var
|
|
1299
|
+
var Mt = {
|
|
1298
1300
|
"001": [
|
|
1299
1301
|
"H",
|
|
1300
1302
|
"h"
|
|
@@ -2709,13 +2711,13 @@ var Ot = {
|
|
|
2709
2711
|
"h"
|
|
2710
2712
|
]
|
|
2711
2713
|
};
|
|
2712
|
-
function
|
|
2714
|
+
function Ks(e, t) {
|
|
2713
2715
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2714
2716
|
var i = e.charAt(r);
|
|
2715
2717
|
if (i === "j") {
|
|
2716
2718
|
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2717
2719
|
s++, r++;
|
|
2718
|
-
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), c = "a", l =
|
|
2720
|
+
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), c = "a", l = eo(t);
|
|
2719
2721
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2720
2722
|
n += c;
|
|
2721
2723
|
for (; u-- > 0; )
|
|
@@ -2725,7 +2727,7 @@ function Qs(e, t) {
|
|
|
2725
2727
|
}
|
|
2726
2728
|
return n;
|
|
2727
2729
|
}
|
|
2728
|
-
function
|
|
2730
|
+
function eo(e) {
|
|
2729
2731
|
var t = e.hourCycle;
|
|
2730
2732
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2731
2733
|
e.hourCycles && // @ts-ignore
|
|
@@ -2744,23 +2746,23 @@ function Ks(e) {
|
|
|
2744
2746
|
}
|
|
2745
2747
|
var n = e.language, r;
|
|
2746
2748
|
n !== "root" && (r = e.maximize().region);
|
|
2747
|
-
var i =
|
|
2749
|
+
var i = Mt[r || ""] || Mt[n || ""] || Mt["".concat(n, "-001")] || Mt["001"];
|
|
2748
2750
|
return i[0];
|
|
2749
2751
|
}
|
|
2750
|
-
var
|
|
2752
|
+
var hn, to = new RegExp("^".concat(mi.source, "*")), no = new RegExp("".concat(mi.source, "*$"));
|
|
2751
2753
|
function B(e, t) {
|
|
2752
2754
|
return { start: e, end: t };
|
|
2753
2755
|
}
|
|
2754
|
-
var
|
|
2756
|
+
var ro = !!String.prototype.startsWith && "_a".startsWith("a", 1), io = !!String.fromCodePoint, so = !!Object.fromEntries, oo = !!String.prototype.codePointAt, ao = !!String.prototype.trimStart, uo = !!String.prototype.trimEnd, lo = !!Number.isSafeInteger, co = lo ? Number.isSafeInteger : function(e) {
|
|
2755
2757
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2756
|
-
},
|
|
2758
|
+
}, Tn = !0;
|
|
2757
2759
|
try {
|
|
2758
|
-
var
|
|
2759
|
-
|
|
2760
|
+
var fo = bi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2761
|
+
Tn = ((hn = fo.exec("a")) === null || hn === void 0 ? void 0 : hn[0]) === "a";
|
|
2760
2762
|
} catch {
|
|
2761
|
-
|
|
2763
|
+
Tn = !1;
|
|
2762
2764
|
}
|
|
2763
|
-
var
|
|
2765
|
+
var gr = ro ? (
|
|
2764
2766
|
// Native
|
|
2765
2767
|
function(t, n, r) {
|
|
2766
2768
|
return t.startsWith(n, r);
|
|
@@ -2770,7 +2772,7 @@ var pr = no ? (
|
|
|
2770
2772
|
function(t, n, r) {
|
|
2771
2773
|
return t.slice(r, r + n.length) === n;
|
|
2772
2774
|
}
|
|
2773
|
-
),
|
|
2775
|
+
), Sn = io ? String.fromCodePoint : (
|
|
2774
2776
|
// IE11
|
|
2775
2777
|
function() {
|
|
2776
2778
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2782,9 +2784,9 @@ var pr = no ? (
|
|
|
2782
2784
|
}
|
|
2783
2785
|
return r;
|
|
2784
2786
|
}
|
|
2785
|
-
),
|
|
2787
|
+
), _r = (
|
|
2786
2788
|
// native
|
|
2787
|
-
|
|
2789
|
+
so ? Object.fromEntries : (
|
|
2788
2790
|
// Ponyfill
|
|
2789
2791
|
function(t) {
|
|
2790
2792
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2794,7 +2796,7 @@ var pr = no ? (
|
|
|
2794
2796
|
return n;
|
|
2795
2797
|
}
|
|
2796
2798
|
)
|
|
2797
|
-
),
|
|
2799
|
+
), _i = oo ? (
|
|
2798
2800
|
// Native
|
|
2799
2801
|
function(t, n) {
|
|
2800
2802
|
return t.codePointAt(n);
|
|
@@ -2808,7 +2810,7 @@ var pr = no ? (
|
|
|
2808
2810
|
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2809
2811
|
}
|
|
2810
2812
|
}
|
|
2811
|
-
),
|
|
2813
|
+
), ho = ao ? (
|
|
2812
2814
|
// Native
|
|
2813
2815
|
function(t) {
|
|
2814
2816
|
return t.trimStart();
|
|
@@ -2816,9 +2818,9 @@ var pr = no ? (
|
|
|
2816
2818
|
) : (
|
|
2817
2819
|
// Ponyfill
|
|
2818
2820
|
function(t) {
|
|
2819
|
-
return t.replace(
|
|
2821
|
+
return t.replace(to, "");
|
|
2820
2822
|
}
|
|
2821
|
-
),
|
|
2823
|
+
), mo = uo ? (
|
|
2822
2824
|
// Native
|
|
2823
2825
|
function(t) {
|
|
2824
2826
|
return t.trimEnd();
|
|
@@ -2826,14 +2828,14 @@ var pr = no ? (
|
|
|
2826
2828
|
) : (
|
|
2827
2829
|
// Ponyfill
|
|
2828
2830
|
function(t) {
|
|
2829
|
-
return t.replace(
|
|
2831
|
+
return t.replace(no, "");
|
|
2830
2832
|
}
|
|
2831
2833
|
);
|
|
2832
2834
|
function bi(e, t) {
|
|
2833
2835
|
return new RegExp(e, t);
|
|
2834
2836
|
}
|
|
2835
2837
|
var An;
|
|
2836
|
-
if (
|
|
2838
|
+
if (Tn) {
|
|
2837
2839
|
var br = bi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2838
2840
|
An = function(t, n) {
|
|
2839
2841
|
var r;
|
|
@@ -2844,14 +2846,14 @@ if (xn) {
|
|
|
2844
2846
|
} else
|
|
2845
2847
|
An = function(t, n) {
|
|
2846
2848
|
for (var r = []; ; ) {
|
|
2847
|
-
var i =
|
|
2849
|
+
var i = _i(t, n);
|
|
2848
2850
|
if (i === void 0 || Ei(i) || bo(i))
|
|
2849
2851
|
break;
|
|
2850
2852
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2851
2853
|
}
|
|
2852
|
-
return
|
|
2854
|
+
return Sn.apply(void 0, r);
|
|
2853
2855
|
};
|
|
2854
|
-
var
|
|
2856
|
+
var po = (
|
|
2855
2857
|
/** @class */
|
|
2856
2858
|
function() {
|
|
2857
2859
|
function e(t, n) {
|
|
@@ -2882,7 +2884,7 @@ var mo = (
|
|
|
2882
2884
|
if (r)
|
|
2883
2885
|
break;
|
|
2884
2886
|
return this.error(D.UNMATCHED_CLOSING_TAG, B(this.clonePosition(), this.clonePosition()));
|
|
2885
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2887
|
+
} else if (s === 60 && !this.ignoreTag && wn(this.peek() || 0)) {
|
|
2886
2888
|
var u = this.parseTag(t, n);
|
|
2887
2889
|
if (u.err)
|
|
2888
2890
|
return u;
|
|
@@ -2915,7 +2917,7 @@ var mo = (
|
|
|
2915
2917
|
return s;
|
|
2916
2918
|
var u = s.val, a = this.clonePosition();
|
|
2917
2919
|
if (this.bumpIf("</")) {
|
|
2918
|
-
if (this.isEOF() || !
|
|
2920
|
+
if (this.isEOF() || !wn(this.char()))
|
|
2919
2921
|
return this.error(D.INVALID_TAG, B(a, this.clonePosition()));
|
|
2920
2922
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
2921
2923
|
return i !== l ? this.error(D.UNMATCHED_CLOSING_TAG, B(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2933,7 +2935,7 @@ var mo = (
|
|
|
2933
2935
|
return this.error(D.INVALID_TAG, B(r, this.clonePosition()));
|
|
2934
2936
|
}, e.prototype.parseTagName = function() {
|
|
2935
2937
|
var t = this.offset();
|
|
2936
|
-
for (this.bump(); !this.isEOF() &&
|
|
2938
|
+
for (this.bump(); !this.isEOF() && _o(this.char()); )
|
|
2937
2939
|
this.bump();
|
|
2938
2940
|
return this.message.slice(t, this.offset());
|
|
2939
2941
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2962,7 +2964,7 @@ var mo = (
|
|
|
2962
2964
|
};
|
|
2963
2965
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2964
2966
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2965
|
-
!
|
|
2967
|
+
!go(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2966
2968
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2967
2969
|
if (this.isEOF() || this.char() !== 39)
|
|
2968
2970
|
return null;
|
|
@@ -2996,12 +2998,12 @@ var mo = (
|
|
|
2996
2998
|
n.push(r);
|
|
2997
2999
|
this.bump();
|
|
2998
3000
|
}
|
|
2999
|
-
return
|
|
3001
|
+
return Sn.apply(void 0, n);
|
|
3000
3002
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3001
3003
|
if (this.isEOF())
|
|
3002
3004
|
return null;
|
|
3003
3005
|
var r = this.char();
|
|
3004
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3006
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Sn(r));
|
|
3005
3007
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3006
3008
|
var r = this.clonePosition();
|
|
3007
3009
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3046,40 +3048,40 @@ var mo = (
|
|
|
3046
3048
|
var l = null;
|
|
3047
3049
|
if (this.bumpIf(",")) {
|
|
3048
3050
|
this.bumpSpace();
|
|
3049
|
-
var f = this.clonePosition(),
|
|
3050
|
-
if (
|
|
3051
|
-
return
|
|
3052
|
-
var y =
|
|
3051
|
+
var f = this.clonePosition(), _ = this.parseSimpleArgStyleIfPossible();
|
|
3052
|
+
if (_.err)
|
|
3053
|
+
return _;
|
|
3054
|
+
var y = mo(_.val);
|
|
3053
3055
|
if (y.length === 0)
|
|
3054
3056
|
return this.error(D.EXPECT_ARGUMENT_STYLE, B(this.clonePosition(), this.clonePosition()));
|
|
3055
|
-
var
|
|
3056
|
-
l = { style: y, styleLocation:
|
|
3057
|
+
var M = B(f, this.clonePosition());
|
|
3058
|
+
l = { style: y, styleLocation: M };
|
|
3057
3059
|
}
|
|
3058
|
-
var
|
|
3059
|
-
if (
|
|
3060
|
-
return
|
|
3060
|
+
var b = this.tryParseArgumentClose(i);
|
|
3061
|
+
if (b.err)
|
|
3062
|
+
return b;
|
|
3061
3063
|
var d = B(i, this.clonePosition());
|
|
3062
|
-
if (l &&
|
|
3063
|
-
var
|
|
3064
|
+
if (l && gr(l?.style, "::", 0)) {
|
|
3065
|
+
var C = ho(l.style.slice(2));
|
|
3064
3066
|
if (a === "number") {
|
|
3065
|
-
var
|
|
3066
|
-
return
|
|
3067
|
-
val: { type: X.number, value: r, location: d, style:
|
|
3067
|
+
var _ = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
3068
|
+
return _.err ? _ : {
|
|
3069
|
+
val: { type: X.number, value: r, location: d, style: _.val },
|
|
3068
3070
|
err: null
|
|
3069
3071
|
};
|
|
3070
3072
|
} else {
|
|
3071
|
-
if (
|
|
3073
|
+
if (C.length === 0)
|
|
3072
3074
|
return this.error(D.EXPECT_DATE_TIME_SKELETON, d);
|
|
3073
|
-
var
|
|
3074
|
-
this.locale && (
|
|
3075
|
+
var F = C;
|
|
3076
|
+
this.locale && (F = Ks(C, this.locale));
|
|
3075
3077
|
var y = {
|
|
3076
|
-
type:
|
|
3077
|
-
pattern:
|
|
3078
|
+
type: qe.dateTime,
|
|
3079
|
+
pattern: F,
|
|
3078
3080
|
location: l.styleLocation,
|
|
3079
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3080
|
-
},
|
|
3081
|
+
parsedOptions: this.shouldParseSkeletons ? Vs(F) : {}
|
|
3082
|
+
}, $ = a === "date" ? X.date : X.time;
|
|
3081
3083
|
return {
|
|
3082
|
-
val: { type:
|
|
3084
|
+
val: { type: $, value: r, location: d, style: y },
|
|
3083
3085
|
err: null
|
|
3084
3086
|
};
|
|
3085
3087
|
}
|
|
@@ -3099,30 +3101,30 @@ var mo = (
|
|
|
3099
3101
|
case "select": {
|
|
3100
3102
|
var A = this.clonePosition();
|
|
3101
3103
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3102
|
-
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(A,
|
|
3104
|
+
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(A, zt({}, A)));
|
|
3103
3105
|
this.bumpSpace();
|
|
3104
|
-
var H = this.parseIdentifierIfPossible(),
|
|
3106
|
+
var H = this.parseIdentifierIfPossible(), R = 0;
|
|
3105
3107
|
if (a !== "select" && H.value === "offset") {
|
|
3106
3108
|
if (!this.bumpIf(":"))
|
|
3107
3109
|
return this.error(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B(this.clonePosition(), this.clonePosition()));
|
|
3108
3110
|
this.bumpSpace();
|
|
3109
|
-
var
|
|
3110
|
-
if (
|
|
3111
|
-
return
|
|
3112
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
3111
|
+
var _ = this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, D.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3112
|
+
if (_.err)
|
|
3113
|
+
return _;
|
|
3114
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), R = _.val;
|
|
3113
3115
|
}
|
|
3114
|
-
var
|
|
3115
|
-
if (
|
|
3116
|
-
return
|
|
3117
|
-
var
|
|
3118
|
-
if (
|
|
3119
|
-
return
|
|
3116
|
+
var U = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3117
|
+
if (U.err)
|
|
3118
|
+
return U;
|
|
3119
|
+
var b = this.tryParseArgumentClose(i);
|
|
3120
|
+
if (b.err)
|
|
3121
|
+
return b;
|
|
3120
3122
|
var Y = B(i, this.clonePosition());
|
|
3121
3123
|
return a === "select" ? {
|
|
3122
3124
|
val: {
|
|
3123
3125
|
type: X.select,
|
|
3124
3126
|
value: r,
|
|
3125
|
-
options:
|
|
3127
|
+
options: _r(U.val),
|
|
3126
3128
|
location: Y
|
|
3127
3129
|
},
|
|
3128
3130
|
err: null
|
|
@@ -3130,8 +3132,8 @@ var mo = (
|
|
|
3130
3132
|
val: {
|
|
3131
3133
|
type: X.plural,
|
|
3132
3134
|
value: r,
|
|
3133
|
-
options:
|
|
3134
|
-
offset:
|
|
3135
|
+
options: _r(U.val),
|
|
3136
|
+
offset: R,
|
|
3135
3137
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3136
3138
|
location: Y
|
|
3137
3139
|
},
|
|
@@ -3181,48 +3183,48 @@ var mo = (
|
|
|
3181
3183
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3182
3184
|
var r = [];
|
|
3183
3185
|
try {
|
|
3184
|
-
r =
|
|
3186
|
+
r = Ys(t);
|
|
3185
3187
|
} catch {
|
|
3186
3188
|
return this.error(D.INVALID_NUMBER_SKELETON, n);
|
|
3187
3189
|
}
|
|
3188
3190
|
return {
|
|
3189
3191
|
val: {
|
|
3190
|
-
type:
|
|
3192
|
+
type: qe.number,
|
|
3191
3193
|
tokens: r,
|
|
3192
3194
|
location: n,
|
|
3193
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3195
|
+
parsedOptions: this.shouldParseSkeletons ? Qs(r) : {}
|
|
3194
3196
|
},
|
|
3195
3197
|
err: null
|
|
3196
3198
|
};
|
|
3197
3199
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3198
3200
|
for (var s, u = !1, a = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
|
|
3199
3201
|
if (l.length === 0) {
|
|
3200
|
-
var
|
|
3202
|
+
var _ = this.clonePosition();
|
|
3201
3203
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3202
3204
|
var y = this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR, D.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3203
3205
|
if (y.err)
|
|
3204
3206
|
return y;
|
|
3205
|
-
f = B(
|
|
3207
|
+
f = B(_, this.clonePosition()), l = this.message.slice(_.offset, this.offset());
|
|
3206
3208
|
} else
|
|
3207
3209
|
break;
|
|
3208
3210
|
}
|
|
3209
3211
|
if (c.has(l))
|
|
3210
3212
|
return this.error(n === "select" ? D.DUPLICATE_SELECT_ARGUMENT_SELECTOR : D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3211
3213
|
l === "other" && (u = !0), this.bumpSpace();
|
|
3212
|
-
var
|
|
3214
|
+
var M = this.clonePosition();
|
|
3213
3215
|
if (!this.bumpIf("{"))
|
|
3214
3216
|
return this.error(n === "select" ? D.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : D.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, B(this.clonePosition(), this.clonePosition()));
|
|
3215
|
-
var
|
|
3216
|
-
if (
|
|
3217
|
-
return
|
|
3218
|
-
var d = this.tryParseArgumentClose(
|
|
3217
|
+
var b = this.parseMessage(t + 1, n, r);
|
|
3218
|
+
if (b.err)
|
|
3219
|
+
return b;
|
|
3220
|
+
var d = this.tryParseArgumentClose(M);
|
|
3219
3221
|
if (d.err)
|
|
3220
3222
|
return d;
|
|
3221
3223
|
a.push([
|
|
3222
3224
|
l,
|
|
3223
3225
|
{
|
|
3224
|
-
value:
|
|
3225
|
-
location: B(
|
|
3226
|
+
value: b.val,
|
|
3227
|
+
location: B(M, this.clonePosition())
|
|
3226
3228
|
}
|
|
3227
3229
|
]), c.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
3228
3230
|
}
|
|
@@ -3238,7 +3240,7 @@ var mo = (
|
|
|
3238
3240
|
break;
|
|
3239
3241
|
}
|
|
3240
3242
|
var c = B(i, this.clonePosition());
|
|
3241
|
-
return s ? (u *= r,
|
|
3243
|
+
return s ? (u *= r, co(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3242
3244
|
}, e.prototype.offset = function() {
|
|
3243
3245
|
return this.position.offset;
|
|
3244
3246
|
}, e.prototype.isEOF = function() {
|
|
@@ -3253,7 +3255,7 @@ var mo = (
|
|
|
3253
3255
|
var t = this.position.offset;
|
|
3254
3256
|
if (t >= this.message.length)
|
|
3255
3257
|
throw Error("out of bound");
|
|
3256
|
-
var n =
|
|
3258
|
+
var n = _i(this.message, t);
|
|
3257
3259
|
if (n === void 0)
|
|
3258
3260
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3259
3261
|
return n;
|
|
@@ -3272,7 +3274,7 @@ var mo = (
|
|
|
3272
3274
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3273
3275
|
}
|
|
3274
3276
|
}, e.prototype.bumpIf = function(t) {
|
|
3275
|
-
if (
|
|
3277
|
+
if (gr(this.message, t, this.offset())) {
|
|
3276
3278
|
for (var n = 0; n < t.length; n++)
|
|
3277
3279
|
this.bump();
|
|
3278
3280
|
return !0;
|
|
@@ -3304,13 +3306,13 @@ var mo = (
|
|
|
3304
3306
|
}, e;
|
|
3305
3307
|
}()
|
|
3306
3308
|
);
|
|
3307
|
-
function
|
|
3309
|
+
function wn(e) {
|
|
3308
3310
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3309
3311
|
}
|
|
3310
|
-
function po(e) {
|
|
3311
|
-
return Sn(e) || e === 47;
|
|
3312
|
-
}
|
|
3313
3312
|
function go(e) {
|
|
3313
|
+
return wn(e) || e === 47;
|
|
3314
|
+
}
|
|
3315
|
+
function _o(e) {
|
|
3314
3316
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3315
3317
|
}
|
|
3316
3318
|
function Ei(e) {
|
|
@@ -3319,32 +3321,32 @@ function Ei(e) {
|
|
|
3319
3321
|
function bo(e) {
|
|
3320
3322
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3321
3323
|
}
|
|
3322
|
-
function
|
|
3324
|
+
function On(e) {
|
|
3323
3325
|
e.forEach(function(t) {
|
|
3324
|
-
if (delete t.location,
|
|
3326
|
+
if (delete t.location, li(t) || ci(t))
|
|
3325
3327
|
for (var n in t.options)
|
|
3326
|
-
delete t.options[n].location,
|
|
3328
|
+
delete t.options[n].location, On(t.options[n].value);
|
|
3327
3329
|
else
|
|
3328
|
-
|
|
3330
|
+
oi(t) && hi(t.style) || (ai(t) || ui(t)) && vn(t.style) ? delete t.style.location : fi(t) && On(t.children);
|
|
3329
3331
|
});
|
|
3330
3332
|
}
|
|
3331
3333
|
function Eo(e, t) {
|
|
3332
|
-
t === void 0 && (t = {}), t =
|
|
3333
|
-
var n = new
|
|
3334
|
+
t === void 0 && (t = {}), t = zt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3335
|
+
var n = new po(e, t).parse();
|
|
3334
3336
|
if (n.err) {
|
|
3335
3337
|
var r = SyntaxError(D[n.err.kind]);
|
|
3336
3338
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3337
3339
|
}
|
|
3338
|
-
return t?.captureLocation ||
|
|
3340
|
+
return t?.captureLocation || On(n.val), n.val;
|
|
3339
3341
|
}
|
|
3340
|
-
var
|
|
3342
|
+
var Je;
|
|
3341
3343
|
(function(e) {
|
|
3342
3344
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3343
|
-
})(
|
|
3344
|
-
var
|
|
3345
|
+
})(Je || (Je = {}));
|
|
3346
|
+
var Jt = (
|
|
3345
3347
|
/** @class */
|
|
3346
3348
|
function(e) {
|
|
3347
|
-
|
|
3349
|
+
qt(t, e);
|
|
3348
3350
|
function t(n, r, i) {
|
|
3349
3351
|
var s = e.call(this, n) || this;
|
|
3350
3352
|
return s.code = r, s.originalMessage = i, s;
|
|
@@ -3356,45 +3358,45 @@ var Zt = (
|
|
|
3356
3358
|
), Er = (
|
|
3357
3359
|
/** @class */
|
|
3358
3360
|
function(e) {
|
|
3359
|
-
|
|
3361
|
+
qt(t, e);
|
|
3360
3362
|
function t(n, r, i, s) {
|
|
3361
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3363
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Je.INVALID_VALUE, s) || this;
|
|
3362
3364
|
}
|
|
3363
3365
|
return t;
|
|
3364
|
-
}(
|
|
3365
|
-
),
|
|
3366
|
+
}(Jt)
|
|
3367
|
+
), yo = (
|
|
3366
3368
|
/** @class */
|
|
3367
3369
|
function(e) {
|
|
3368
|
-
|
|
3370
|
+
qt(t, e);
|
|
3369
3371
|
function t(n, r, i) {
|
|
3370
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3372
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Je.INVALID_VALUE, i) || this;
|
|
3371
3373
|
}
|
|
3372
3374
|
return t;
|
|
3373
|
-
}(
|
|
3374
|
-
),
|
|
3375
|
+
}(Jt)
|
|
3376
|
+
), xo = (
|
|
3375
3377
|
/** @class */
|
|
3376
3378
|
function(e) {
|
|
3377
|
-
|
|
3379
|
+
qt(t, e);
|
|
3378
3380
|
function t(n, r) {
|
|
3379
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3381
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Je.MISSING_VALUE, r) || this;
|
|
3380
3382
|
}
|
|
3381
3383
|
return t;
|
|
3382
|
-
}(
|
|
3384
|
+
}(Jt)
|
|
3383
3385
|
), ce;
|
|
3384
3386
|
(function(e) {
|
|
3385
3387
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3386
3388
|
})(ce || (ce = {}));
|
|
3387
|
-
function
|
|
3389
|
+
function vo(e) {
|
|
3388
3390
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3389
3391
|
var r = t[t.length - 1];
|
|
3390
3392
|
return !r || r.type !== ce.literal || n.type !== ce.literal ? t.push(n) : r.value += n.value, t;
|
|
3391
3393
|
}, []);
|
|
3392
3394
|
}
|
|
3393
|
-
function
|
|
3395
|
+
function To(e) {
|
|
3394
3396
|
return typeof e == "function";
|
|
3395
3397
|
}
|
|
3396
|
-
function
|
|
3397
|
-
if (e.length === 1 &&
|
|
3398
|
+
function Bt(e, t, n, r, i, s, u) {
|
|
3399
|
+
if (e.length === 1 && hr(e[0]))
|
|
3398
3400
|
return [
|
|
3399
3401
|
{
|
|
3400
3402
|
type: ce.literal,
|
|
@@ -3403,105 +3405,105 @@ function Dt(e, t, n, r, i, s, u) {
|
|
|
3403
3405
|
];
|
|
3404
3406
|
for (var a = [], c = 0, l = e; c < l.length; c++) {
|
|
3405
3407
|
var f = l[c];
|
|
3406
|
-
if (
|
|
3408
|
+
if (hr(f)) {
|
|
3407
3409
|
a.push({
|
|
3408
3410
|
type: ce.literal,
|
|
3409
3411
|
value: f.value
|
|
3410
3412
|
});
|
|
3411
3413
|
continue;
|
|
3412
3414
|
}
|
|
3413
|
-
if (
|
|
3415
|
+
if (zs(f)) {
|
|
3414
3416
|
typeof s == "number" && a.push({
|
|
3415
3417
|
type: ce.literal,
|
|
3416
3418
|
value: n.getNumberFormat(t).format(s)
|
|
3417
3419
|
});
|
|
3418
3420
|
continue;
|
|
3419
3421
|
}
|
|
3420
|
-
var
|
|
3421
|
-
if (!(i &&
|
|
3422
|
-
throw new
|
|
3423
|
-
var y = i[
|
|
3424
|
-
if (
|
|
3422
|
+
var _ = f.value;
|
|
3423
|
+
if (!(i && _ in i))
|
|
3424
|
+
throw new xo(_, u);
|
|
3425
|
+
var y = i[_];
|
|
3426
|
+
if (js(f)) {
|
|
3425
3427
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3426
3428
|
type: typeof y == "string" ? ce.literal : ce.object,
|
|
3427
3429
|
value: y
|
|
3428
3430
|
});
|
|
3429
3431
|
continue;
|
|
3430
3432
|
}
|
|
3431
|
-
if (
|
|
3432
|
-
var
|
|
3433
|
+
if (ai(f)) {
|
|
3434
|
+
var M = typeof f.style == "string" ? r.date[f.style] : vn(f.style) ? f.style.parsedOptions : void 0;
|
|
3433
3435
|
a.push({
|
|
3434
3436
|
type: ce.literal,
|
|
3435
|
-
value: n.getDateTimeFormat(t,
|
|
3437
|
+
value: n.getDateTimeFormat(t, M).format(y)
|
|
3436
3438
|
});
|
|
3437
3439
|
continue;
|
|
3438
3440
|
}
|
|
3439
|
-
if (
|
|
3440
|
-
var
|
|
3441
|
+
if (ui(f)) {
|
|
3442
|
+
var M = typeof f.style == "string" ? r.time[f.style] : vn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3441
3443
|
a.push({
|
|
3442
3444
|
type: ce.literal,
|
|
3443
|
-
value: n.getDateTimeFormat(t,
|
|
3445
|
+
value: n.getDateTimeFormat(t, M).format(y)
|
|
3444
3446
|
});
|
|
3445
3447
|
continue;
|
|
3446
3448
|
}
|
|
3447
|
-
if (
|
|
3448
|
-
var
|
|
3449
|
-
|
|
3449
|
+
if (oi(f)) {
|
|
3450
|
+
var M = typeof f.style == "string" ? r.number[f.style] : hi(f.style) ? f.style.parsedOptions : void 0;
|
|
3451
|
+
M && M.scale && (y = y * (M.scale || 1)), a.push({
|
|
3450
3452
|
type: ce.literal,
|
|
3451
|
-
value: n.getNumberFormat(t,
|
|
3453
|
+
value: n.getNumberFormat(t, M).format(y)
|
|
3452
3454
|
});
|
|
3453
3455
|
continue;
|
|
3454
3456
|
}
|
|
3455
|
-
if (
|
|
3456
|
-
var
|
|
3457
|
-
if (!
|
|
3458
|
-
throw new
|
|
3459
|
-
var
|
|
3460
|
-
return
|
|
3457
|
+
if (fi(f)) {
|
|
3458
|
+
var b = f.children, d = f.value, C = i[d];
|
|
3459
|
+
if (!To(C))
|
|
3460
|
+
throw new yo(d, "function", u);
|
|
3461
|
+
var F = Bt(b, t, n, r, i, s), $ = C(F.map(function(R) {
|
|
3462
|
+
return R.value;
|
|
3461
3463
|
}));
|
|
3462
|
-
Array.isArray(
|
|
3464
|
+
Array.isArray($) || ($ = [$]), a.push.apply(a, $.map(function(R) {
|
|
3463
3465
|
return {
|
|
3464
|
-
type: typeof
|
|
3465
|
-
value:
|
|
3466
|
+
type: typeof R == "string" ? ce.literal : ce.object,
|
|
3467
|
+
value: R
|
|
3466
3468
|
};
|
|
3467
3469
|
}));
|
|
3468
3470
|
}
|
|
3469
|
-
if (
|
|
3471
|
+
if (li(f)) {
|
|
3470
3472
|
var A = f.options[y] || f.options.other;
|
|
3471
3473
|
if (!A)
|
|
3472
3474
|
throw new Er(f.value, y, Object.keys(f.options), u);
|
|
3473
|
-
a.push.apply(a,
|
|
3475
|
+
a.push.apply(a, Bt(A.value, t, n, r, i));
|
|
3474
3476
|
continue;
|
|
3475
3477
|
}
|
|
3476
|
-
if (
|
|
3478
|
+
if (ci(f)) {
|
|
3477
3479
|
var A = f.options["=".concat(y)];
|
|
3478
3480
|
if (!A) {
|
|
3479
3481
|
if (!Intl.PluralRules)
|
|
3480
|
-
throw new
|
|
3482
|
+
throw new Jt(`Intl.PluralRules is not available in this environment.
|
|
3481
3483
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3482
|
-
`,
|
|
3484
|
+
`, Je.MISSING_INTL_API, u);
|
|
3483
3485
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3484
3486
|
A = f.options[H] || f.options.other;
|
|
3485
3487
|
}
|
|
3486
3488
|
if (!A)
|
|
3487
3489
|
throw new Er(f.value, y, Object.keys(f.options), u);
|
|
3488
|
-
a.push.apply(a,
|
|
3490
|
+
a.push.apply(a, Bt(A.value, t, n, r, i, y - (f.offset || 0)));
|
|
3489
3491
|
continue;
|
|
3490
3492
|
}
|
|
3491
3493
|
}
|
|
3492
|
-
return
|
|
3494
|
+
return vo(a);
|
|
3493
3495
|
}
|
|
3494
|
-
function
|
|
3495
|
-
return t ?
|
|
3496
|
-
return n[r] =
|
|
3496
|
+
function So(e, t) {
|
|
3497
|
+
return t ? Ae(Ae(Ae({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3498
|
+
return n[r] = Ae(Ae({}, e[r]), t[r] || {}), n;
|
|
3497
3499
|
}, {})) : e;
|
|
3498
3500
|
}
|
|
3499
3501
|
function Ao(e, t) {
|
|
3500
3502
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3501
|
-
return n[r] =
|
|
3502
|
-
},
|
|
3503
|
+
return n[r] = So(e[r], t[r]), n;
|
|
3504
|
+
}, Ae({}, e)) : e;
|
|
3503
3505
|
}
|
|
3504
|
-
function
|
|
3506
|
+
function mn(e) {
|
|
3505
3507
|
return {
|
|
3506
3508
|
create: function() {
|
|
3507
3509
|
return {
|
|
@@ -3515,39 +3517,39 @@ function fn(e) {
|
|
|
3515
3517
|
}
|
|
3516
3518
|
};
|
|
3517
3519
|
}
|
|
3518
|
-
function
|
|
3520
|
+
function wo(e) {
|
|
3519
3521
|
return e === void 0 && (e = {
|
|
3520
3522
|
number: {},
|
|
3521
3523
|
dateTime: {},
|
|
3522
3524
|
pluralRules: {}
|
|
3523
3525
|
}), {
|
|
3524
|
-
getNumberFormat:
|
|
3526
|
+
getNumberFormat: cn(function() {
|
|
3525
3527
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3526
3528
|
n[r] = arguments[r];
|
|
3527
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3529
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ln([void 0], n, !1)))();
|
|
3528
3530
|
}, {
|
|
3529
|
-
cache:
|
|
3530
|
-
strategy:
|
|
3531
|
+
cache: mn(e.number),
|
|
3532
|
+
strategy: fn.variadic
|
|
3531
3533
|
}),
|
|
3532
|
-
getDateTimeFormat:
|
|
3534
|
+
getDateTimeFormat: cn(function() {
|
|
3533
3535
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3534
3536
|
n[r] = arguments[r];
|
|
3535
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3537
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ln([void 0], n, !1)))();
|
|
3536
3538
|
}, {
|
|
3537
|
-
cache:
|
|
3538
|
-
strategy:
|
|
3539
|
+
cache: mn(e.dateTime),
|
|
3540
|
+
strategy: fn.variadic
|
|
3539
3541
|
}),
|
|
3540
|
-
getPluralRules:
|
|
3542
|
+
getPluralRules: cn(function() {
|
|
3541
3543
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3542
3544
|
n[r] = arguments[r];
|
|
3543
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3545
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ln([void 0], n, !1)))();
|
|
3544
3546
|
}, {
|
|
3545
|
-
cache:
|
|
3546
|
-
strategy:
|
|
3547
|
+
cache: mn(e.pluralRules),
|
|
3548
|
+
strategy: fn.variadic
|
|
3547
3549
|
})
|
|
3548
3550
|
};
|
|
3549
3551
|
}
|
|
3550
|
-
var
|
|
3552
|
+
var yi = (
|
|
3551
3553
|
/** @class */
|
|
3552
3554
|
function() {
|
|
3553
3555
|
function e(t, n, r, i) {
|
|
@@ -3561,12 +3563,12 @@ var _i = (
|
|
|
3561
3563
|
var l = s.formatToParts(c);
|
|
3562
3564
|
if (l.length === 1)
|
|
3563
3565
|
return l[0].value;
|
|
3564
|
-
var f = l.reduce(function(
|
|
3565
|
-
return !
|
|
3566
|
+
var f = l.reduce(function(_, y) {
|
|
3567
|
+
return !_.length || y.type !== ce.literal || typeof _[_.length - 1] != "string" ? _.push(y.value) : _[_.length - 1] += y.value, _;
|
|
3566
3568
|
}, []);
|
|
3567
3569
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3568
3570
|
}, this.formatToParts = function(c) {
|
|
3569
|
-
return
|
|
3571
|
+
return Bt(s.ast, s.locales, s.formatters, s.formats, c, void 0, s.message);
|
|
3570
3572
|
}, this.resolvedOptions = function() {
|
|
3571
3573
|
var c;
|
|
3572
3574
|
return {
|
|
@@ -3579,13 +3581,13 @@ var _i = (
|
|
|
3579
3581
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3580
3582
|
var u = i || {};
|
|
3581
3583
|
u.formatters;
|
|
3582
|
-
var a =
|
|
3583
|
-
this.ast = e.__parse(t,
|
|
3584
|
+
var a = Rs(u, ["formatters"]);
|
|
3585
|
+
this.ast = e.__parse(t, Ae(Ae({}, a), { locale: this.resolvedLocale }));
|
|
3584
3586
|
} else
|
|
3585
3587
|
this.ast = t;
|
|
3586
3588
|
if (!Array.isArray(this.ast))
|
|
3587
3589
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3588
|
-
this.formats = Ao(e.formats, r), this.formatters = i && i.formatters ||
|
|
3590
|
+
this.formats = Ao(e.formats, r), this.formatters = i && i.formatters || wo(this.formatterCache);
|
|
3589
3591
|
}
|
|
3590
3592
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3591
3593
|
get: function() {
|
|
@@ -3659,7 +3661,7 @@ var _i = (
|
|
|
3659
3661
|
}, e;
|
|
3660
3662
|
}()
|
|
3661
3663
|
);
|
|
3662
|
-
function
|
|
3664
|
+
function Oo(e, t) {
|
|
3663
3665
|
if (t == null)
|
|
3664
3666
|
return;
|
|
3665
3667
|
if (t in e)
|
|
@@ -3680,101 +3682,101 @@ function wo(e, t) {
|
|
|
3680
3682
|
r = void 0;
|
|
3681
3683
|
return r;
|
|
3682
3684
|
}
|
|
3683
|
-
const
|
|
3685
|
+
const He = {}, Mo = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), xi = (e, t) => {
|
|
3684
3686
|
if (t == null)
|
|
3685
3687
|
return;
|
|
3686
|
-
if (t in
|
|
3687
|
-
return
|
|
3688
|
-
const n =
|
|
3688
|
+
if (t in He && e in He[t])
|
|
3689
|
+
return He[t][e];
|
|
3690
|
+
const n = yt(t);
|
|
3689
3691
|
for (let r = 0; r < n.length; r++) {
|
|
3690
|
-
const i = n[r], s =
|
|
3692
|
+
const i = n[r], s = Lo(i, e);
|
|
3691
3693
|
if (s)
|
|
3692
|
-
return
|
|
3694
|
+
return Mo(e, t, s);
|
|
3693
3695
|
}
|
|
3694
3696
|
};
|
|
3695
3697
|
let Pn;
|
|
3696
3698
|
const Et = bt({});
|
|
3697
|
-
function
|
|
3699
|
+
function Co(e) {
|
|
3698
3700
|
return Pn[e] || null;
|
|
3699
3701
|
}
|
|
3700
|
-
function
|
|
3702
|
+
function vi(e) {
|
|
3701
3703
|
return e in Pn;
|
|
3702
3704
|
}
|
|
3703
|
-
function
|
|
3704
|
-
if (!
|
|
3705
|
+
function Lo(e, t) {
|
|
3706
|
+
if (!vi(e))
|
|
3705
3707
|
return null;
|
|
3706
|
-
const n =
|
|
3707
|
-
return
|
|
3708
|
+
const n = Co(e);
|
|
3709
|
+
return Oo(n, t);
|
|
3708
3710
|
}
|
|
3709
3711
|
function No(e) {
|
|
3710
3712
|
if (e == null)
|
|
3711
3713
|
return;
|
|
3712
|
-
const t =
|
|
3714
|
+
const t = yt(e);
|
|
3713
3715
|
for (let n = 0; n < t.length; n++) {
|
|
3714
3716
|
const r = t[n];
|
|
3715
|
-
if (
|
|
3717
|
+
if (vi(r))
|
|
3716
3718
|
return r;
|
|
3717
3719
|
}
|
|
3718
3720
|
}
|
|
3719
|
-
function
|
|
3720
|
-
delete
|
|
3721
|
+
function Ti(e, ...t) {
|
|
3722
|
+
delete He[e], Et.update((n) => (n[e] = Ps.all([n[e] || {}, ...t]), n));
|
|
3721
3723
|
}
|
|
3722
|
-
|
|
3724
|
+
et(
|
|
3723
3725
|
[Et],
|
|
3724
3726
|
([e]) => Object.keys(e)
|
|
3725
3727
|
);
|
|
3726
3728
|
Et.subscribe((e) => Pn = e);
|
|
3727
|
-
const
|
|
3728
|
-
function
|
|
3729
|
-
|
|
3729
|
+
const $t = {};
|
|
3730
|
+
function Ho(e, t) {
|
|
3731
|
+
$t[e].delete(t), $t[e].size === 0 && delete $t[e];
|
|
3730
3732
|
}
|
|
3731
|
-
function
|
|
3732
|
-
return
|
|
3733
|
+
function Si(e) {
|
|
3734
|
+
return $t[e];
|
|
3733
3735
|
}
|
|
3734
|
-
function
|
|
3735
|
-
return
|
|
3736
|
-
const n =
|
|
3736
|
+
function Io(e) {
|
|
3737
|
+
return yt(e).map((t) => {
|
|
3738
|
+
const n = Si(t);
|
|
3737
3739
|
return [t, n ? [...n] : []];
|
|
3738
3740
|
}).filter(([, t]) => t.length > 0);
|
|
3739
3741
|
}
|
|
3740
|
-
function
|
|
3741
|
-
return e == null ? !1 :
|
|
3742
|
+
function Wt(e) {
|
|
3743
|
+
return e == null ? !1 : yt(e).some(
|
|
3742
3744
|
(t) => {
|
|
3743
3745
|
var n;
|
|
3744
|
-
return (n =
|
|
3746
|
+
return (n = Si(t)) == null ? void 0 : n.size;
|
|
3745
3747
|
}
|
|
3746
3748
|
);
|
|
3747
3749
|
}
|
|
3748
|
-
function
|
|
3750
|
+
function Po(e, t) {
|
|
3749
3751
|
return Promise.all(
|
|
3750
|
-
t.map((r) => (
|
|
3751
|
-
).then((r) =>
|
|
3752
|
+
t.map((r) => (Ho(e, r), r().then((i) => i.default || i)))
|
|
3753
|
+
).then((r) => Ti(e, ...r));
|
|
3752
3754
|
}
|
|
3753
|
-
const
|
|
3755
|
+
const ot = {};
|
|
3754
3756
|
function Ai(e) {
|
|
3755
|
-
if (!
|
|
3756
|
-
return e in
|
|
3757
|
-
const t =
|
|
3758
|
-
return
|
|
3757
|
+
if (!Wt(e))
|
|
3758
|
+
return e in ot ? ot[e] : Promise.resolve();
|
|
3759
|
+
const t = Io(e);
|
|
3760
|
+
return ot[e] = Promise.all(
|
|
3759
3761
|
t.map(
|
|
3760
|
-
([n, r]) =>
|
|
3762
|
+
([n, r]) => Po(n, r)
|
|
3761
3763
|
)
|
|
3762
3764
|
).then(() => {
|
|
3763
|
-
if (
|
|
3765
|
+
if (Wt(e))
|
|
3764
3766
|
return Ai(e);
|
|
3765
|
-
delete
|
|
3766
|
-
}),
|
|
3767
|
+
delete ot[e];
|
|
3768
|
+
}), ot[e];
|
|
3767
3769
|
}
|
|
3768
|
-
var
|
|
3770
|
+
var yr = Object.getOwnPropertySymbols, Ro = Object.prototype.hasOwnProperty, Do = Object.prototype.propertyIsEnumerable, Bo = (e, t) => {
|
|
3769
3771
|
var n = {};
|
|
3770
3772
|
for (var r in e)
|
|
3771
|
-
|
|
3772
|
-
if (e != null &&
|
|
3773
|
-
for (var r of
|
|
3774
|
-
t.indexOf(r) < 0 &&
|
|
3773
|
+
Ro.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3774
|
+
if (e != null && yr)
|
|
3775
|
+
for (var r of yr(e))
|
|
3776
|
+
t.indexOf(r) < 0 && Do.call(e, r) && (n[r] = e[r]);
|
|
3775
3777
|
return n;
|
|
3776
3778
|
};
|
|
3777
|
-
const
|
|
3779
|
+
const $o = {
|
|
3778
3780
|
number: {
|
|
3779
3781
|
scientific: { notation: "scientific" },
|
|
3780
3782
|
engineering: { notation: "engineering" },
|
|
@@ -3806,9 +3808,9 @@ const Bo = {
|
|
|
3806
3808
|
};
|
|
3807
3809
|
function Uo({ locale: e, id: t }) {
|
|
3808
3810
|
console.warn(
|
|
3809
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3811
|
+
`[svelte-i18n] The message "${t}" was not found in "${yt(
|
|
3810
3812
|
e
|
|
3811
|
-
).join('", "')}".${
|
|
3813
|
+
).join('", "')}".${Wt(Pe()) ? `
|
|
3812
3814
|
|
|
3813
3815
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3814
3816
|
);
|
|
@@ -3816,20 +3818,20 @@ Note: there are at least one loader still registered to this locale that wasn't
|
|
|
3816
3818
|
const ko = {
|
|
3817
3819
|
fallbackLocale: null,
|
|
3818
3820
|
loadingDelay: 200,
|
|
3819
|
-
formats:
|
|
3821
|
+
formats: $o,
|
|
3820
3822
|
warnOnMissingMessages: !0,
|
|
3821
3823
|
handleMissingMessage: void 0,
|
|
3822
3824
|
ignoreTag: !0
|
|
3823
|
-
},
|
|
3824
|
-
function
|
|
3825
|
-
return
|
|
3825
|
+
}, mt = ko;
|
|
3826
|
+
function Qe() {
|
|
3827
|
+
return mt;
|
|
3826
3828
|
}
|
|
3827
3829
|
function Fo(e) {
|
|
3828
|
-
const t = e, { formats: n } = t, r =
|
|
3830
|
+
const t = e, { formats: n } = t, r = Bo(t, ["formats"]);
|
|
3829
3831
|
let i = e.fallbackLocale;
|
|
3830
3832
|
if (e.initialLocale)
|
|
3831
3833
|
try {
|
|
3832
|
-
|
|
3834
|
+
yi.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3833
3835
|
} catch {
|
|
3834
3836
|
console.warn(
|
|
3835
3837
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
@@ -3837,171 +3839,171 @@ function Fo(e) {
|
|
|
3837
3839
|
}
|
|
3838
3840
|
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Uo : console.warn(
|
|
3839
3841
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3840
|
-
)), Object.assign(
|
|
3841
|
-
}
|
|
3842
|
-
const
|
|
3843
|
-
var Go = Object.defineProperty,
|
|
3844
|
-
for (var n in t)
|
|
3845
|
-
|
|
3846
|
-
if (
|
|
3847
|
-
for (var n of
|
|
3848
|
-
|
|
3842
|
+
)), Object.assign(mt, r, { initialLocale: i }), n && ("number" in n && Object.assign(mt.formats.number, n.number), "date" in n && Object.assign(mt.formats.date, n.date), "time" in n && Object.assign(mt.formats.time, n.time)), Be.set(i);
|
|
3843
|
+
}
|
|
3844
|
+
const dn = bt(!1);
|
|
3845
|
+
var Go = Object.defineProperty, jo = Object.defineProperties, zo = Object.getOwnPropertyDescriptors, xr = Object.getOwnPropertySymbols, Wo = Object.prototype.hasOwnProperty, Vo = Object.prototype.propertyIsEnumerable, vr = (e, t, n) => t in e ? Go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xo = (e, t) => {
|
|
3846
|
+
for (var n in t || (t = {}))
|
|
3847
|
+
Wo.call(t, n) && vr(e, n, t[n]);
|
|
3848
|
+
if (xr)
|
|
3849
|
+
for (var n of xr(t))
|
|
3850
|
+
Vo.call(t, n) && vr(e, n, t[n]);
|
|
3849
3851
|
return e;
|
|
3850
|
-
},
|
|
3851
|
-
let
|
|
3852
|
-
const
|
|
3853
|
-
function
|
|
3852
|
+
}, Yo = (e, t) => jo(e, zo(t));
|
|
3853
|
+
let Mn;
|
|
3854
|
+
const Vt = bt(null);
|
|
3855
|
+
function Tr(e) {
|
|
3854
3856
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3855
3857
|
}
|
|
3856
|
-
function
|
|
3857
|
-
const n =
|
|
3858
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3858
|
+
function yt(e, t = Qe().fallbackLocale) {
|
|
3859
|
+
const n = Tr(e);
|
|
3860
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Tr(t)])] : n;
|
|
3859
3861
|
}
|
|
3860
|
-
function
|
|
3861
|
-
return
|
|
3862
|
+
function Pe() {
|
|
3863
|
+
return Mn ?? void 0;
|
|
3862
3864
|
}
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
+
Vt.subscribe((e) => {
|
|
3866
|
+
Mn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3865
3867
|
});
|
|
3866
|
-
const
|
|
3867
|
-
if (e && No(e) &&
|
|
3868
|
-
const { loadingDelay: t } =
|
|
3868
|
+
const Zo = (e) => {
|
|
3869
|
+
if (e && No(e) && Wt(e)) {
|
|
3870
|
+
const { loadingDelay: t } = Qe();
|
|
3869
3871
|
let n;
|
|
3870
|
-
return typeof window < "u" &&
|
|
3871
|
-
() =>
|
|
3872
|
+
return typeof window < "u" && Pe() != null && t ? n = window.setTimeout(
|
|
3873
|
+
() => dn.set(!0),
|
|
3872
3874
|
t
|
|
3873
|
-
) :
|
|
3874
|
-
|
|
3875
|
+
) : dn.set(!0), Ai(e).then(() => {
|
|
3876
|
+
Vt.set(e);
|
|
3875
3877
|
}).finally(() => {
|
|
3876
|
-
clearTimeout(n),
|
|
3878
|
+
clearTimeout(n), dn.set(!1);
|
|
3877
3879
|
});
|
|
3878
3880
|
}
|
|
3879
|
-
return
|
|
3880
|
-
},
|
|
3881
|
-
set:
|
|
3882
|
-
}),
|
|
3881
|
+
return Vt.set(e);
|
|
3882
|
+
}, Be = Yo(Xo({}, Vt), {
|
|
3883
|
+
set: Zo
|
|
3884
|
+
}), Qt = (e) => {
|
|
3883
3885
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3884
3886
|
return (r) => {
|
|
3885
3887
|
const i = JSON.stringify(r);
|
|
3886
3888
|
return i in t ? t[i] : t[i] = e(r);
|
|
3887
3889
|
};
|
|
3888
3890
|
};
|
|
3889
|
-
var
|
|
3891
|
+
var qo = Object.defineProperty, Xt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, Sr = (e, t, n) => t in e ? qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Rn = (e, t) => {
|
|
3890
3892
|
for (var n in t || (t = {}))
|
|
3891
|
-
|
|
3892
|
-
if (
|
|
3893
|
-
for (var n of
|
|
3894
|
-
|
|
3893
|
+
wi.call(t, n) && Sr(e, n, t[n]);
|
|
3894
|
+
if (Xt)
|
|
3895
|
+
for (var n of Xt(t))
|
|
3896
|
+
Oi.call(t, n) && Sr(e, n, t[n]);
|
|
3895
3897
|
return e;
|
|
3896
|
-
},
|
|
3898
|
+
}, tt = (e, t) => {
|
|
3897
3899
|
var n = {};
|
|
3898
3900
|
for (var r in e)
|
|
3899
|
-
|
|
3900
|
-
if (e != null &&
|
|
3901
|
-
for (var r of
|
|
3902
|
-
t.indexOf(r) < 0 &&
|
|
3901
|
+
wi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3902
|
+
if (e != null && Xt)
|
|
3903
|
+
for (var r of Xt(e))
|
|
3904
|
+
t.indexOf(r) < 0 && Oi.call(e, r) && (n[r] = e[r]);
|
|
3903
3905
|
return n;
|
|
3904
3906
|
};
|
|
3905
|
-
const
|
|
3906
|
-
const { formats: n } =
|
|
3907
|
+
const _t = (e, t) => {
|
|
3908
|
+
const { formats: n } = Qe();
|
|
3907
3909
|
if (e in n && t in n[e])
|
|
3908
3910
|
return n[e][t];
|
|
3909
3911
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3910
|
-
},
|
|
3912
|
+
}, Jo = Qt(
|
|
3911
3913
|
(e) => {
|
|
3912
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3914
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3913
3915
|
if (n == null)
|
|
3914
3916
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3915
|
-
return r && (i =
|
|
3917
|
+
return r && (i = _t("number", r)), new Intl.NumberFormat(n, i);
|
|
3916
3918
|
}
|
|
3917
|
-
),
|
|
3919
|
+
), Qo = Qt(
|
|
3918
3920
|
(e) => {
|
|
3919
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3921
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3920
3922
|
if (n == null)
|
|
3921
3923
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3922
|
-
return r ? i =
|
|
3924
|
+
return r ? i = _t("date", r) : Object.keys(i).length === 0 && (i = _t("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3923
3925
|
}
|
|
3924
|
-
),
|
|
3926
|
+
), Ko = Qt(
|
|
3925
3927
|
(e) => {
|
|
3926
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3928
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3927
3929
|
if (n == null)
|
|
3928
3930
|
throw new Error(
|
|
3929
3931
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3930
3932
|
);
|
|
3931
|
-
return r ? i =
|
|
3933
|
+
return r ? i = _t("time", r) : Object.keys(i).length === 0 && (i = _t("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3932
3934
|
}
|
|
3933
|
-
),
|
|
3935
|
+
), ea = (e = {}) => {
|
|
3934
3936
|
var t = e, {
|
|
3935
|
-
locale: n =
|
|
3936
|
-
} = t, r =
|
|
3937
|
+
locale: n = Pe()
|
|
3938
|
+
} = t, r = tt(t, [
|
|
3937
3939
|
"locale"
|
|
3938
3940
|
]);
|
|
3939
|
-
return
|
|
3940
|
-
},
|
|
3941
|
+
return Jo(Rn({ locale: n }, r));
|
|
3942
|
+
}, ta = (e = {}) => {
|
|
3941
3943
|
var t = e, {
|
|
3942
|
-
locale: n =
|
|
3943
|
-
} = t, r =
|
|
3944
|
+
locale: n = Pe()
|
|
3945
|
+
} = t, r = tt(t, [
|
|
3944
3946
|
"locale"
|
|
3945
3947
|
]);
|
|
3946
|
-
return
|
|
3947
|
-
},
|
|
3948
|
+
return Qo(Rn({ locale: n }, r));
|
|
3949
|
+
}, na = (e = {}) => {
|
|
3948
3950
|
var t = e, {
|
|
3949
|
-
locale: n =
|
|
3950
|
-
} = t, r =
|
|
3951
|
+
locale: n = Pe()
|
|
3952
|
+
} = t, r = tt(t, [
|
|
3951
3953
|
"locale"
|
|
3952
3954
|
]);
|
|
3953
|
-
return
|
|
3954
|
-
},
|
|
3955
|
+
return Ko(Rn({ locale: n }, r));
|
|
3956
|
+
}, ra = Qt(
|
|
3955
3957
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3956
|
-
(e, t =
|
|
3957
|
-
ignoreTag:
|
|
3958
|
+
(e, t = Pe()) => new yi(e, t, Qe().formats, {
|
|
3959
|
+
ignoreTag: Qe().ignoreTag
|
|
3958
3960
|
})
|
|
3959
|
-
),
|
|
3961
|
+
), ia = (e, t = {}) => {
|
|
3960
3962
|
var n, r, i, s;
|
|
3961
3963
|
let u = t;
|
|
3962
3964
|
typeof e == "object" && (u = e, e = u.id);
|
|
3963
3965
|
const {
|
|
3964
3966
|
values: a,
|
|
3965
|
-
locale: c =
|
|
3967
|
+
locale: c = Pe(),
|
|
3966
3968
|
default: l
|
|
3967
3969
|
} = u;
|
|
3968
3970
|
if (c == null)
|
|
3969
3971
|
throw new Error(
|
|
3970
3972
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3971
3973
|
);
|
|
3972
|
-
let f =
|
|
3974
|
+
let f = xi(e, c);
|
|
3973
3975
|
if (!f)
|
|
3974
|
-
f = (s = (i = (r = (n =
|
|
3976
|
+
f = (s = (i = (r = (n = Qe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
3975
3977
|
else if (typeof f != "string")
|
|
3976
3978
|
return console.warn(
|
|
3977
3979
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3978
3980
|
), f;
|
|
3979
3981
|
if (!a)
|
|
3980
3982
|
return f;
|
|
3981
|
-
let
|
|
3983
|
+
let _ = f;
|
|
3982
3984
|
try {
|
|
3983
|
-
|
|
3985
|
+
_ = ra(f, c).format(a);
|
|
3984
3986
|
} catch (y) {
|
|
3985
3987
|
y instanceof Error && console.warn(
|
|
3986
3988
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3987
3989
|
y.message
|
|
3988
3990
|
);
|
|
3989
3991
|
}
|
|
3990
|
-
return
|
|
3991
|
-
},
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3992
|
+
return _;
|
|
3993
|
+
}, sa = (e, t) => na(t).format(e), oa = (e, t) => ta(t).format(e), aa = (e, t) => ea(t).format(e), ua = (e, t = Pe()) => xi(e, t), la = et([Be, Et], () => ia);
|
|
3994
|
+
et([Be], () => sa);
|
|
3995
|
+
et([Be], () => oa);
|
|
3996
|
+
et([Be], () => aa);
|
|
3997
|
+
et([Be, Et], () => ua);
|
|
3996
3998
|
function Ar(e, t) {
|
|
3997
|
-
|
|
3999
|
+
Ti(e, t);
|
|
3998
4000
|
}
|
|
3999
|
-
function
|
|
4001
|
+
function ca(e) {
|
|
4000
4002
|
Fo({
|
|
4001
4003
|
fallbackLocale: "en"
|
|
4002
|
-
}),
|
|
4004
|
+
}), Be.set(e);
|
|
4003
4005
|
}
|
|
4004
|
-
const
|
|
4006
|
+
const wr = {
|
|
4005
4007
|
en: {
|
|
4006
4008
|
sessionExpirationHeader: "Session Warning",
|
|
4007
4009
|
sessionExpirationTitle: "Your session is about to expire!",
|
|
@@ -4026,127 +4028,118 @@ const Sr = {
|
|
|
4026
4028
|
};
|
|
4027
4029
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
4028
4030
|
const {
|
|
4029
|
-
entries:
|
|
4030
|
-
setPrototypeOf:
|
|
4031
|
-
isFrozen:
|
|
4032
|
-
getPrototypeOf:
|
|
4033
|
-
getOwnPropertyDescriptor:
|
|
4031
|
+
entries: Mi,
|
|
4032
|
+
setPrototypeOf: Or,
|
|
4033
|
+
isFrozen: fa,
|
|
4034
|
+
getPrototypeOf: ha,
|
|
4035
|
+
getOwnPropertyDescriptor: ma
|
|
4034
4036
|
} = Object;
|
|
4035
4037
|
let {
|
|
4036
4038
|
freeze: fe,
|
|
4037
|
-
seal:
|
|
4038
|
-
create:
|
|
4039
|
+
seal: be,
|
|
4040
|
+
create: Ci
|
|
4039
4041
|
} = Object, {
|
|
4040
|
-
apply:
|
|
4041
|
-
construct:
|
|
4042
|
+
apply: Cn,
|
|
4043
|
+
construct: Ln
|
|
4042
4044
|
} = typeof Reflect < "u" && Reflect;
|
|
4043
4045
|
fe || (fe = function(t) {
|
|
4044
4046
|
return t;
|
|
4045
4047
|
});
|
|
4046
|
-
|
|
4048
|
+
be || (be = function(t) {
|
|
4047
4049
|
return t;
|
|
4048
4050
|
});
|
|
4049
|
-
|
|
4051
|
+
Cn || (Cn = function(t, n, r) {
|
|
4050
4052
|
return t.apply(n, r);
|
|
4051
4053
|
});
|
|
4052
|
-
|
|
4054
|
+
Ln || (Ln = function(t, n) {
|
|
4053
4055
|
return new t(...n);
|
|
4054
4056
|
});
|
|
4055
|
-
const
|
|
4057
|
+
const Ct = pe(Array.prototype.forEach), Mr = pe(Array.prototype.pop), at = pe(Array.prototype.push), Ut = pe(String.prototype.toLowerCase), pn = pe(String.prototype.toString), Cr = pe(String.prototype.match), ut = pe(String.prototype.replace), da = pe(String.prototype.indexOf), pa = pe(String.prototype.trim), xe = pe(Object.prototype.hasOwnProperty), ue = pe(RegExp.prototype.test), lt = ga(TypeError);
|
|
4056
4058
|
function pe(e) {
|
|
4057
4059
|
return function(t) {
|
|
4058
4060
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4059
4061
|
r[i - 1] = arguments[i];
|
|
4060
|
-
return
|
|
4062
|
+
return Cn(e, t, r);
|
|
4061
4063
|
};
|
|
4062
4064
|
}
|
|
4063
|
-
function
|
|
4065
|
+
function ga(e) {
|
|
4064
4066
|
return function() {
|
|
4065
4067
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4066
4068
|
n[r] = arguments[r];
|
|
4067
|
-
return
|
|
4069
|
+
return Ln(e, n);
|
|
4068
4070
|
};
|
|
4069
4071
|
}
|
|
4070
4072
|
function P(e, t) {
|
|
4071
4073
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ut;
|
|
4072
|
-
|
|
4074
|
+
Or && Or(e, null);
|
|
4073
4075
|
let r = t.length;
|
|
4074
4076
|
for (; r--; ) {
|
|
4075
4077
|
let i = t[r];
|
|
4076
4078
|
if (typeof i == "string") {
|
|
4077
4079
|
const s = n(i);
|
|
4078
|
-
s !== i && (
|
|
4080
|
+
s !== i && (fa(t) || (t[r] = s), i = s);
|
|
4079
4081
|
}
|
|
4080
4082
|
e[i] = !0;
|
|
4081
4083
|
}
|
|
4082
4084
|
return e;
|
|
4083
4085
|
}
|
|
4084
|
-
function
|
|
4086
|
+
function _a(e) {
|
|
4085
4087
|
for (let t = 0; t < e.length; t++)
|
|
4086
|
-
|
|
4088
|
+
xe(e, t) || (e[t] = null);
|
|
4087
4089
|
return e;
|
|
4088
4090
|
}
|
|
4089
|
-
function
|
|
4090
|
-
const t =
|
|
4091
|
-
for (const [n, r] of
|
|
4092
|
-
|
|
4091
|
+
function De(e) {
|
|
4092
|
+
const t = Ci(null);
|
|
4093
|
+
for (const [n, r] of Mi(e))
|
|
4094
|
+
xe(e, n) && (Array.isArray(r) ? t[n] = _a(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = De(r) : t[n] = r);
|
|
4093
4095
|
return t;
|
|
4094
4096
|
}
|
|
4095
|
-
function
|
|
4097
|
+
function ct(e, t) {
|
|
4096
4098
|
for (; e !== null; ) {
|
|
4097
|
-
const r =
|
|
4099
|
+
const r = ma(e, t);
|
|
4098
4100
|
if (r) {
|
|
4099
4101
|
if (r.get)
|
|
4100
4102
|
return pe(r.get);
|
|
4101
4103
|
if (typeof r.value == "function")
|
|
4102
4104
|
return pe(r.value);
|
|
4103
4105
|
}
|
|
4104
|
-
e =
|
|
4106
|
+
e = ha(e);
|
|
4105
4107
|
}
|
|
4106
4108
|
function n() {
|
|
4107
4109
|
return null;
|
|
4108
4110
|
}
|
|
4109
4111
|
return n;
|
|
4110
4112
|
}
|
|
4111
|
-
const
|
|
4113
|
+
const Lr = fe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), gn = fe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), _n = fe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ba = fe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), bn = fe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ea = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Nr = fe(["#text"]), Hr = fe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), En = fe(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ir = fe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Lt = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ya = be(/\{\{[\w\W]*|[\w\W]*\}\}/gm), xa = be(/<%[\w\W]*|[\w\W]*%>/gm), va = be(/\${[\w\W]*}/gm), Ta = be(/^data-[\-\w.\u00B7-\uFFFF]/), Sa = be(/^aria-[\-\w]+$/), Li = be(
|
|
4112
4114
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4113
4115
|
// eslint-disable-line no-useless-escape
|
|
4114
|
-
), Aa =
|
|
4116
|
+
), Aa = be(/^(?:\w+script|data):/i), wa = be(
|
|
4115
4117
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4116
4118
|
// eslint-disable-line no-control-regex
|
|
4117
|
-
), Ni =
|
|
4118
|
-
var
|
|
4119
|
+
), Ni = be(/^html$/i), Oa = be(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4120
|
+
var Pr = /* @__PURE__ */ Object.freeze({
|
|
4119
4121
|
__proto__: null,
|
|
4120
|
-
MUSTACHE_EXPR:
|
|
4121
|
-
ERB_EXPR:
|
|
4122
|
-
TMPLIT_EXPR:
|
|
4123
|
-
DATA_ATTR:
|
|
4124
|
-
ARIA_ATTR:
|
|
4125
|
-
IS_ALLOWED_URI:
|
|
4122
|
+
MUSTACHE_EXPR: ya,
|
|
4123
|
+
ERB_EXPR: xa,
|
|
4124
|
+
TMPLIT_EXPR: va,
|
|
4125
|
+
DATA_ATTR: Ta,
|
|
4126
|
+
ARIA_ATTR: Sa,
|
|
4127
|
+
IS_ALLOWED_URI: Li,
|
|
4126
4128
|
IS_SCRIPT_OR_DATA: Aa,
|
|
4127
|
-
ATTR_WHITESPACE:
|
|
4129
|
+
ATTR_WHITESPACE: wa,
|
|
4128
4130
|
DOCTYPE_NAME: Ni,
|
|
4129
|
-
CUSTOM_ELEMENT:
|
|
4131
|
+
CUSTOM_ELEMENT: Oa
|
|
4130
4132
|
});
|
|
4131
|
-
const
|
|
4133
|
+
const ft = {
|
|
4132
4134
|
element: 1,
|
|
4133
|
-
attribute: 2,
|
|
4134
4135
|
text: 3,
|
|
4135
|
-
cdataSection: 4,
|
|
4136
|
-
entityReference: 5,
|
|
4137
|
-
// Deprecated
|
|
4138
|
-
entityNode: 6,
|
|
4139
4136
|
// Deprecated
|
|
4140
4137
|
progressingInstruction: 7,
|
|
4141
4138
|
comment: 8,
|
|
4142
|
-
document: 9
|
|
4143
|
-
|
|
4144
|
-
documentFragment: 11,
|
|
4145
|
-
notation: 12
|
|
4146
|
-
// Deprecated
|
|
4147
|
-
}, Oa = function() {
|
|
4139
|
+
document: 9
|
|
4140
|
+
}, Ma = function() {
|
|
4148
4141
|
return typeof window > "u" ? null : window;
|
|
4149
|
-
},
|
|
4142
|
+
}, Ca = function(t, n) {
|
|
4150
4143
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4151
4144
|
return null;
|
|
4152
4145
|
let r = null;
|
|
@@ -4166,10 +4159,10 @@ const ct = {
|
|
|
4166
4159
|
return console.warn("TrustedTypes policy " + s + " could not be created."), null;
|
|
4167
4160
|
}
|
|
4168
4161
|
};
|
|
4169
|
-
function
|
|
4170
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4171
|
-
const t = (w) =>
|
|
4172
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4162
|
+
function Hi() {
|
|
4163
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ma();
|
|
4164
|
+
const t = (w) => Hi(w);
|
|
4165
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== ft.document)
|
|
4173
4166
|
return t.isSupported = !1, t;
|
|
4174
4167
|
let {
|
|
4175
4168
|
document: n
|
|
@@ -4181,42 +4174,42 @@ function Li() {
|
|
|
4181
4174
|
Element: c,
|
|
4182
4175
|
NodeFilter: l,
|
|
4183
4176
|
NamedNodeMap: f = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
4184
|
-
HTMLFormElement:
|
|
4177
|
+
HTMLFormElement: _,
|
|
4185
4178
|
DOMParser: y,
|
|
4186
|
-
trustedTypes:
|
|
4187
|
-
} = e,
|
|
4179
|
+
trustedTypes: M
|
|
4180
|
+
} = e, b = c.prototype, d = ct(b, "cloneNode"), C = ct(b, "remove"), F = ct(b, "nextSibling"), $ = ct(b, "childNodes"), A = ct(b, "parentNode");
|
|
4188
4181
|
if (typeof u == "function") {
|
|
4189
4182
|
const w = n.createElement("template");
|
|
4190
4183
|
w.content && w.content.ownerDocument && (n = w.content.ownerDocument);
|
|
4191
4184
|
}
|
|
4192
|
-
let H,
|
|
4185
|
+
let H, R = "";
|
|
4193
4186
|
const {
|
|
4194
|
-
implementation:
|
|
4187
|
+
implementation: U,
|
|
4195
4188
|
createNodeIterator: Y,
|
|
4196
|
-
createDocumentFragment:
|
|
4189
|
+
createDocumentFragment: V,
|
|
4197
4190
|
getElementsByTagName: Q
|
|
4198
4191
|
} = n, {
|
|
4199
|
-
importNode:
|
|
4192
|
+
importNode: G
|
|
4200
4193
|
} = r;
|
|
4201
|
-
let
|
|
4202
|
-
t.isSupported = typeof
|
|
4194
|
+
let O = {};
|
|
4195
|
+
t.isSupported = typeof Mi == "function" && typeof A == "function" && U && U.createHTMLDocument !== void 0;
|
|
4203
4196
|
const {
|
|
4204
4197
|
MUSTACHE_EXPR: ne,
|
|
4205
4198
|
ERB_EXPR: he,
|
|
4206
|
-
TMPLIT_EXPR:
|
|
4207
|
-
DATA_ATTR:
|
|
4199
|
+
TMPLIT_EXPR: T,
|
|
4200
|
+
DATA_ATTR: E,
|
|
4208
4201
|
ARIA_ATTR: g,
|
|
4209
|
-
IS_SCRIPT_OR_DATA:
|
|
4202
|
+
IS_SCRIPT_OR_DATA: v,
|
|
4210
4203
|
ATTR_WHITESPACE: h,
|
|
4211
|
-
CUSTOM_ELEMENT:
|
|
4212
|
-
} =
|
|
4204
|
+
CUSTOM_ELEMENT: x
|
|
4205
|
+
} = Pr;
|
|
4213
4206
|
let {
|
|
4214
|
-
IS_ALLOWED_URI:
|
|
4215
|
-
} =
|
|
4216
|
-
const
|
|
4217
|
-
let
|
|
4218
|
-
const
|
|
4219
|
-
let m = Object.seal(
|
|
4207
|
+
IS_ALLOWED_URI: L
|
|
4208
|
+
} = Pr, N = null;
|
|
4209
|
+
const z = P({}, [...Lr, ...gn, ..._n, ...bn, ...Nr]);
|
|
4210
|
+
let I = null;
|
|
4211
|
+
const q = P({}, [...Hr, ...En, ...Ir, ...Lt]);
|
|
4212
|
+
let m = Object.seal(Ci(null, {
|
|
4220
4213
|
tagNameCheck: {
|
|
4221
4214
|
writable: !0,
|
|
4222
4215
|
configurable: !1,
|
|
@@ -4235,82 +4228,82 @@ function Li() {
|
|
|
4235
4228
|
enumerable: !0,
|
|
4236
4229
|
value: !1
|
|
4237
4230
|
}
|
|
4238
|
-
})),
|
|
4239
|
-
const
|
|
4240
|
-
let
|
|
4241
|
-
const
|
|
4242
|
-
let
|
|
4243
|
-
const
|
|
4244
|
-
let
|
|
4245
|
-
const
|
|
4246
|
-
let Fe =
|
|
4247
|
-
const
|
|
4248
|
-
let
|
|
4249
|
-
const
|
|
4231
|
+
})), k = null, ee = null, K = !0, Ee = !0, ie = !1, ye = !0, _e = !1, Le = !0, Re = !1, Kt = !1, en = !1, $e = !1, xt = !1, vt = !1, Dn = !0, Bn = !1;
|
|
4232
|
+
const Ri = "user-content-";
|
|
4233
|
+
let tn = !0, nt = !1, Ue = {}, ke = null;
|
|
4234
|
+
const $n = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4235
|
+
let Un = null;
|
|
4236
|
+
const kn = P({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4237
|
+
let nn = null;
|
|
4238
|
+
const Fn = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Tt = "http://www.w3.org/1998/Math/MathML", St = "http://www.w3.org/2000/svg", Oe = "http://www.w3.org/1999/xhtml";
|
|
4239
|
+
let Fe = Oe, rn = !1, sn = null;
|
|
4240
|
+
const Di = P({}, [Tt, St, Oe], pn);
|
|
4241
|
+
let rt = null;
|
|
4242
|
+
const Bi = ["application/xhtml+xml", "text/html"], $i = "text/html";
|
|
4250
4243
|
let re = null, Ge = null;
|
|
4251
|
-
const Ui = n.createElement("form"),
|
|
4244
|
+
const Ui = n.createElement("form"), Gn = function(o) {
|
|
4252
4245
|
return o instanceof RegExp || o instanceof Function;
|
|
4253
|
-
},
|
|
4246
|
+
}, on = function() {
|
|
4254
4247
|
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4255
4248
|
if (!(Ge && Ge === o)) {
|
|
4256
|
-
if ((!o || typeof o != "object") && (o = {}), o =
|
|
4257
|
-
|
|
4258
|
-
|
|
4249
|
+
if ((!o || typeof o != "object") && (o = {}), o = De(o), rt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4250
|
+
Bi.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? $i : o.PARSER_MEDIA_TYPE, re = rt === "application/xhtml+xml" ? pn : Ut, N = xe(o, "ALLOWED_TAGS") ? P({}, o.ALLOWED_TAGS, re) : z, I = xe(o, "ALLOWED_ATTR") ? P({}, o.ALLOWED_ATTR, re) : q, sn = xe(o, "ALLOWED_NAMESPACES") ? P({}, o.ALLOWED_NAMESPACES, pn) : Di, nn = xe(o, "ADD_URI_SAFE_ATTR") ? P(
|
|
4251
|
+
De(Fn),
|
|
4259
4252
|
// eslint-disable-line indent
|
|
4260
4253
|
o.ADD_URI_SAFE_ATTR,
|
|
4261
4254
|
// eslint-disable-line indent
|
|
4262
4255
|
re
|
|
4263
4256
|
// eslint-disable-line indent
|
|
4264
|
-
) :
|
|
4265
|
-
|
|
4257
|
+
) : Fn, Un = xe(o, "ADD_DATA_URI_TAGS") ? P(
|
|
4258
|
+
De(kn),
|
|
4266
4259
|
// eslint-disable-line indent
|
|
4267
4260
|
o.ADD_DATA_URI_TAGS,
|
|
4268
4261
|
// eslint-disable-line indent
|
|
4269
4262
|
re
|
|
4270
4263
|
// eslint-disable-line indent
|
|
4271
|
-
) :
|
|
4264
|
+
) : kn, ke = xe(o, "FORBID_CONTENTS") ? P({}, o.FORBID_CONTENTS, re) : $n, k = xe(o, "FORBID_TAGS") ? P({}, o.FORBID_TAGS, re) : {}, ee = xe(o, "FORBID_ATTR") ? P({}, o.FORBID_ATTR, re) : {}, Ue = xe(o, "USE_PROFILES") ? o.USE_PROFILES : !1, K = o.ALLOW_ARIA_ATTR !== !1, Ee = o.ALLOW_DATA_ATTR !== !1, ie = o.ALLOW_UNKNOWN_PROTOCOLS || !1, ye = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = o.SAFE_FOR_TEMPLATES || !1, Le = o.SAFE_FOR_XML !== !1, Re = o.WHOLE_DOCUMENT || !1, $e = o.RETURN_DOM || !1, xt = o.RETURN_DOM_FRAGMENT || !1, vt = o.RETURN_TRUSTED_TYPE || !1, en = o.FORCE_BODY || !1, Dn = o.SANITIZE_DOM !== !1, Bn = o.SANITIZE_NAMED_PROPS || !1, tn = o.KEEP_CONTENT !== !1, nt = o.IN_PLACE || !1, L = o.ALLOWED_URI_REGEXP || Li, Fe = o.NAMESPACE || Oe, m = o.CUSTOM_ELEMENT_HANDLING || {}, o.CUSTOM_ELEMENT_HANDLING && Gn(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = o.CUSTOM_ELEMENT_HANDLING.tagNameCheck), o.CUSTOM_ELEMENT_HANDLING && Gn(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), _e && (Ee = !1), xt && ($e = !0), Ue && (N = P({}, Nr), I = [], Ue.html === !0 && (P(N, Lr), P(I, Hr)), Ue.svg === !0 && (P(N, gn), P(I, En), P(I, Lt)), Ue.svgFilters === !0 && (P(N, _n), P(I, En), P(I, Lt)), Ue.mathMl === !0 && (P(N, bn), P(I, Ir), P(I, Lt))), o.ADD_TAGS && (N === z && (N = De(N)), P(N, o.ADD_TAGS, re)), o.ADD_ATTR && (I === q && (I = De(I)), P(I, o.ADD_ATTR, re)), o.ADD_URI_SAFE_ATTR && P(nn, o.ADD_URI_SAFE_ATTR, re), o.FORBID_CONTENTS && (ke === $n && (ke = De(ke)), P(ke, o.FORBID_CONTENTS, re)), tn && (N["#text"] = !0), Re && P(N, ["html", "head", "body"]), N.table && (P(N, ["tbody"]), delete k.tbody), o.TRUSTED_TYPES_POLICY) {
|
|
4272
4265
|
if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4273
|
-
throw
|
|
4266
|
+
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4274
4267
|
if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4275
|
-
throw
|
|
4276
|
-
H = o.TRUSTED_TYPES_POLICY,
|
|
4268
|
+
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4269
|
+
H = o.TRUSTED_TYPES_POLICY, R = H.createHTML("");
|
|
4277
4270
|
} else
|
|
4278
|
-
H === void 0 && (H =
|
|
4271
|
+
H === void 0 && (H = Ca(M, i)), H !== null && typeof R == "string" && (R = H.createHTML(""));
|
|
4279
4272
|
fe && fe(o), Ge = o;
|
|
4280
4273
|
}
|
|
4281
|
-
}, jn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), zn = P({}, ["foreignobject", "annotation-xml"]), ki = P({}, ["title", "style", "font", "a", "script"]), Wn = P({}, [...
|
|
4274
|
+
}, jn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), zn = P({}, ["foreignobject", "annotation-xml"]), ki = P({}, ["title", "style", "font", "a", "script"]), Wn = P({}, [...gn, ..._n, ...ba]), Vn = P({}, [...bn, ...Ea]), Fi = function(o) {
|
|
4282
4275
|
let p = A(o);
|
|
4283
4276
|
(!p || !p.tagName) && (p = {
|
|
4284
4277
|
namespaceURI: Fe,
|
|
4285
4278
|
tagName: "template"
|
|
4286
4279
|
});
|
|
4287
|
-
const
|
|
4288
|
-
return
|
|
4289
|
-
},
|
|
4290
|
-
|
|
4280
|
+
const S = Ut(o.tagName), W = Ut(p.tagName);
|
|
4281
|
+
return sn[o.namespaceURI] ? o.namespaceURI === St ? p.namespaceURI === Oe ? S === "svg" : p.namespaceURI === Tt ? S === "svg" && (W === "annotation-xml" || jn[W]) : !!Wn[S] : o.namespaceURI === Tt ? p.namespaceURI === Oe ? S === "math" : p.namespaceURI === St ? S === "math" && zn[W] : !!Vn[S] : o.namespaceURI === Oe ? p.namespaceURI === St && !zn[W] || p.namespaceURI === Tt && !jn[W] ? !1 : !Vn[S] && (ki[S] || !Wn[S]) : !!(rt === "application/xhtml+xml" && sn[o.namespaceURI]) : !1;
|
|
4282
|
+
}, ve = function(o) {
|
|
4283
|
+
at(t.removed, {
|
|
4291
4284
|
element: o
|
|
4292
4285
|
});
|
|
4293
4286
|
try {
|
|
4294
4287
|
A(o).removeChild(o);
|
|
4295
4288
|
} catch {
|
|
4296
|
-
|
|
4289
|
+
C(o);
|
|
4297
4290
|
}
|
|
4298
4291
|
}, At = function(o, p) {
|
|
4299
4292
|
try {
|
|
4300
|
-
|
|
4293
|
+
at(t.removed, {
|
|
4301
4294
|
attribute: p.getAttributeNode(o),
|
|
4302
4295
|
from: p
|
|
4303
4296
|
});
|
|
4304
4297
|
} catch {
|
|
4305
|
-
|
|
4298
|
+
at(t.removed, {
|
|
4306
4299
|
attribute: null,
|
|
4307
4300
|
from: p
|
|
4308
4301
|
});
|
|
4309
4302
|
}
|
|
4310
|
-
if (p.removeAttribute(o), o === "is" && !
|
|
4311
|
-
if (
|
|
4303
|
+
if (p.removeAttribute(o), o === "is" && !I[o])
|
|
4304
|
+
if ($e || xt)
|
|
4312
4305
|
try {
|
|
4313
|
-
|
|
4306
|
+
ve(p);
|
|
4314
4307
|
} catch {
|
|
4315
4308
|
}
|
|
4316
4309
|
else
|
|
@@ -4319,29 +4312,29 @@ function Li() {
|
|
|
4319
4312
|
} catch {
|
|
4320
4313
|
}
|
|
4321
4314
|
}, Xn = function(o) {
|
|
4322
|
-
let p = null,
|
|
4323
|
-
if (
|
|
4315
|
+
let p = null, S = null;
|
|
4316
|
+
if (en)
|
|
4324
4317
|
o = "<remove></remove>" + o;
|
|
4325
4318
|
else {
|
|
4326
|
-
const se =
|
|
4327
|
-
|
|
4319
|
+
const se = Cr(o, /^[\r\n\t ]+/);
|
|
4320
|
+
S = se && se[0];
|
|
4328
4321
|
}
|
|
4329
|
-
|
|
4330
|
-
const
|
|
4331
|
-
if (Fe ===
|
|
4322
|
+
rt === "application/xhtml+xml" && Fe === Oe && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
|
|
4323
|
+
const W = H ? H.createHTML(o) : o;
|
|
4324
|
+
if (Fe === Oe)
|
|
4332
4325
|
try {
|
|
4333
|
-
p = new y().parseFromString(
|
|
4326
|
+
p = new y().parseFromString(W, rt);
|
|
4334
4327
|
} catch {
|
|
4335
4328
|
}
|
|
4336
4329
|
if (!p || !p.documentElement) {
|
|
4337
|
-
p =
|
|
4330
|
+
p = U.createDocument(Fe, "template", null);
|
|
4338
4331
|
try {
|
|
4339
|
-
p.documentElement.innerHTML =
|
|
4332
|
+
p.documentElement.innerHTML = rn ? R : W;
|
|
4340
4333
|
} catch {
|
|
4341
4334
|
}
|
|
4342
4335
|
}
|
|
4343
4336
|
const oe = p.body || p.documentElement;
|
|
4344
|
-
return o &&
|
|
4337
|
+
return o && S && oe.insertBefore(n.createTextNode(S), oe.childNodes[0] || null), Fe === Oe ? Q.call(p, Re ? "html" : "body")[0] : Re ? p.documentElement : oe;
|
|
4345
4338
|
}, Yn = function(o) {
|
|
4346
4339
|
return Y.call(
|
|
4347
4340
|
o.ownerDocument || o,
|
|
@@ -4351,63 +4344,63 @@ function Li() {
|
|
|
4351
4344
|
null
|
|
4352
4345
|
);
|
|
4353
4346
|
}, Zn = function(o) {
|
|
4354
|
-
return o instanceof
|
|
4347
|
+
return o instanceof _ && (typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || !(o.attributes instanceof f) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function");
|
|
4355
4348
|
}, qn = function(o) {
|
|
4356
4349
|
return typeof a == "function" && o instanceof a;
|
|
4357
|
-
},
|
|
4358
|
-
|
|
4359
|
-
|
|
4350
|
+
}, Me = function(o, p, S) {
|
|
4351
|
+
O[o] && Ct(O[o], (W) => {
|
|
4352
|
+
W.call(t, p, S, Ge);
|
|
4360
4353
|
});
|
|
4361
4354
|
}, Jn = function(o) {
|
|
4362
4355
|
let p = null;
|
|
4363
|
-
if (
|
|
4364
|
-
return
|
|
4365
|
-
const
|
|
4366
|
-
if (
|
|
4367
|
-
tagName:
|
|
4368
|
-
allowedTags:
|
|
4369
|
-
}), o.hasChildNodes() && !qn(o.firstElementChild) && ue(/<[/\w]/g, o.innerHTML) && ue(/<[/\w]/g, o.textContent) || o.nodeType ===
|
|
4370
|
-
return
|
|
4371
|
-
if (!
|
|
4372
|
-
if (!
|
|
4356
|
+
if (Me("beforeSanitizeElements", o, null), Zn(o))
|
|
4357
|
+
return ve(o), !0;
|
|
4358
|
+
const S = re(o.nodeName);
|
|
4359
|
+
if (Me("uponSanitizeElement", o, {
|
|
4360
|
+
tagName: S,
|
|
4361
|
+
allowedTags: N
|
|
4362
|
+
}), o.hasChildNodes() && !qn(o.firstElementChild) && ue(/<[/\w]/g, o.innerHTML) && ue(/<[/\w]/g, o.textContent) || o.nodeType === ft.progressingInstruction || Le && o.nodeType === ft.comment && ue(/<[/\w]/g, o.data))
|
|
4363
|
+
return ve(o), !0;
|
|
4364
|
+
if (!N[S] || k[S]) {
|
|
4365
|
+
if (!k[S] && Kn(S) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4373
4366
|
return !1;
|
|
4374
|
-
if (
|
|
4375
|
-
const
|
|
4376
|
-
if (oe &&
|
|
4367
|
+
if (tn && !ke[S]) {
|
|
4368
|
+
const W = A(o) || o.parentNode, oe = $(o) || o.childNodes;
|
|
4369
|
+
if (oe && W) {
|
|
4377
4370
|
const se = oe.length;
|
|
4378
4371
|
for (let me = se - 1; me >= 0; --me) {
|
|
4379
|
-
const
|
|
4380
|
-
|
|
4372
|
+
const Te = d(oe[me], !0);
|
|
4373
|
+
Te.__removalCount = (o.__removalCount || 0) + 1, W.insertBefore(Te, F(o));
|
|
4381
4374
|
}
|
|
4382
4375
|
}
|
|
4383
4376
|
}
|
|
4384
|
-
return
|
|
4377
|
+
return ve(o), !0;
|
|
4385
4378
|
}
|
|
4386
|
-
return o instanceof c && !Fi(o) || (
|
|
4387
|
-
p =
|
|
4388
|
-
}), o.textContent !== p && (
|
|
4379
|
+
return o instanceof c && !Fi(o) || (S === "noscript" || S === "noembed" || S === "noframes") && ue(/<\/no(script|embed|frames)/i, o.innerHTML) ? (ve(o), !0) : (_e && o.nodeType === ft.text && (p = o.textContent, Ct([ne, he, T], (W) => {
|
|
4380
|
+
p = ut(p, W, " ");
|
|
4381
|
+
}), o.textContent !== p && (at(t.removed, {
|
|
4389
4382
|
element: o.cloneNode()
|
|
4390
|
-
}), o.textContent = p)),
|
|
4391
|
-
}, Qn = function(o, p,
|
|
4392
|
-
if (Dn && (p === "id" || p === "name") && (
|
|
4383
|
+
}), o.textContent = p)), Me("afterSanitizeElements", o, null), !1);
|
|
4384
|
+
}, Qn = function(o, p, S) {
|
|
4385
|
+
if (Dn && (p === "id" || p === "name") && (S in n || S in Ui))
|
|
4393
4386
|
return !1;
|
|
4394
|
-
if (!(
|
|
4387
|
+
if (!(Ee && !ee[p] && ue(E, p))) {
|
|
4395
4388
|
if (!(K && ue(g, p))) {
|
|
4396
|
-
if (!
|
|
4389
|
+
if (!I[p] || ee[p]) {
|
|
4397
4390
|
if (
|
|
4398
4391
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4399
4392
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4400
4393
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4401
4394
|
!(Kn(o) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, o) || m.tagNameCheck instanceof Function && m.tagNameCheck(o)) && (m.attributeNameCheck instanceof RegExp && ue(m.attributeNameCheck, p) || m.attributeNameCheck instanceof Function && m.attributeNameCheck(p)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4402
4395
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4403
|
-
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck,
|
|
4396
|
+
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4404
4397
|
)
|
|
4405
4398
|
return !1;
|
|
4406
|
-
} else if (!
|
|
4407
|
-
if (!ue(
|
|
4408
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") && o !== "script" &&
|
|
4409
|
-
if (!(ie && !ue(
|
|
4410
|
-
if (
|
|
4399
|
+
} else if (!nn[p]) {
|
|
4400
|
+
if (!ue(L, ut(S, h, ""))) {
|
|
4401
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && o !== "script" && da(S, "data:") === 0 && Un[o])) {
|
|
4402
|
+
if (!(ie && !ue(v, ut(S, h, "")))) {
|
|
4403
|
+
if (S)
|
|
4411
4404
|
return !1;
|
|
4412
4405
|
}
|
|
4413
4406
|
}
|
|
@@ -4417,45 +4410,45 @@ function Li() {
|
|
|
4417
4410
|
}
|
|
4418
4411
|
return !0;
|
|
4419
4412
|
}, Kn = function(o) {
|
|
4420
|
-
return o !== "annotation-xml" &&
|
|
4413
|
+
return o !== "annotation-xml" && Cr(o, x);
|
|
4421
4414
|
}, er = function(o) {
|
|
4422
|
-
|
|
4415
|
+
Me("beforeSanitizeAttributes", o, null);
|
|
4423
4416
|
const {
|
|
4424
4417
|
attributes: p
|
|
4425
4418
|
} = o;
|
|
4426
4419
|
if (!p)
|
|
4427
4420
|
return;
|
|
4428
|
-
const
|
|
4421
|
+
const S = {
|
|
4429
4422
|
attrName: "",
|
|
4430
4423
|
attrValue: "",
|
|
4431
4424
|
keepAttr: !0,
|
|
4432
|
-
allowedAttributes:
|
|
4425
|
+
allowedAttributes: I
|
|
4433
4426
|
};
|
|
4434
|
-
let
|
|
4435
|
-
for (;
|
|
4436
|
-
const oe = p[
|
|
4427
|
+
let W = p.length;
|
|
4428
|
+
for (; W--; ) {
|
|
4429
|
+
const oe = p[W], {
|
|
4437
4430
|
name: se,
|
|
4438
4431
|
namespaceURI: me,
|
|
4439
|
-
value:
|
|
4440
|
-
} = oe,
|
|
4441
|
-
let ae = se === "value" ?
|
|
4442
|
-
if (
|
|
4432
|
+
value: Te
|
|
4433
|
+
} = oe, it = re(se);
|
|
4434
|
+
let ae = se === "value" ? Te : pa(Te);
|
|
4435
|
+
if (S.attrName = it, S.attrValue = ae, S.keepAttr = !0, S.forceKeepAttr = void 0, Me("uponSanitizeAttribute", o, S), ae = S.attrValue, Le && ue(/((--!?|])>)|<\/(style|title)/i, ae)) {
|
|
4443
4436
|
At(se, o);
|
|
4444
4437
|
continue;
|
|
4445
4438
|
}
|
|
4446
|
-
if (
|
|
4439
|
+
if (S.forceKeepAttr || (At(se, o), !S.keepAttr))
|
|
4447
4440
|
continue;
|
|
4448
4441
|
if (!ye && ue(/\/>/i, ae)) {
|
|
4449
4442
|
At(se, o);
|
|
4450
4443
|
continue;
|
|
4451
4444
|
}
|
|
4452
|
-
|
|
4453
|
-
ae =
|
|
4445
|
+
_e && Ct([ne, he, T], (nr) => {
|
|
4446
|
+
ae = ut(ae, nr, " ");
|
|
4454
4447
|
});
|
|
4455
4448
|
const tr = re(o.nodeName);
|
|
4456
|
-
if (Qn(tr,
|
|
4457
|
-
if (Bn && (
|
|
4458
|
-
switch (
|
|
4449
|
+
if (Qn(tr, it, ae)) {
|
|
4450
|
+
if (Bn && (it === "id" || it === "name") && (At(se, o), ae = Ri + ae), H && typeof M == "object" && typeof M.getAttributeType == "function" && !me)
|
|
4451
|
+
switch (M.getAttributeType(tr, it)) {
|
|
4459
4452
|
case "TrustedHTML": {
|
|
4460
4453
|
ae = H.createHTML(ae);
|
|
4461
4454
|
break;
|
|
@@ -4466,391 +4459,389 @@ function Li() {
|
|
|
4466
4459
|
}
|
|
4467
4460
|
}
|
|
4468
4461
|
try {
|
|
4469
|
-
me ? o.setAttributeNS(me, se, ae) : o.setAttribute(se, ae), Zn(o) ?
|
|
4462
|
+
me ? o.setAttributeNS(me, se, ae) : o.setAttribute(se, ae), Zn(o) ? ve(o) : Mr(t.removed);
|
|
4470
4463
|
} catch {
|
|
4471
4464
|
}
|
|
4472
4465
|
}
|
|
4473
4466
|
}
|
|
4474
|
-
|
|
4467
|
+
Me("afterSanitizeAttributes", o, null);
|
|
4475
4468
|
}, Gi = function w(o) {
|
|
4476
4469
|
let p = null;
|
|
4477
|
-
const
|
|
4478
|
-
for (
|
|
4479
|
-
|
|
4480
|
-
|
|
4470
|
+
const S = Yn(o);
|
|
4471
|
+
for (Me("beforeSanitizeShadowDOM", o, null); p = S.nextNode(); )
|
|
4472
|
+
Me("uponSanitizeShadowNode", p, null), !Jn(p) && (p.content instanceof s && w(p.content), er(p));
|
|
4473
|
+
Me("afterSanitizeShadowDOM", o, null);
|
|
4481
4474
|
};
|
|
4482
4475
|
return t.sanitize = function(w) {
|
|
4483
|
-
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null,
|
|
4484
|
-
if (
|
|
4476
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null, W = null, oe = null;
|
|
4477
|
+
if (rn = !w, rn && (w = "<!-->"), typeof w != "string" && !qn(w))
|
|
4485
4478
|
if (typeof w.toString == "function") {
|
|
4486
4479
|
if (w = w.toString(), typeof w != "string")
|
|
4487
|
-
throw
|
|
4480
|
+
throw lt("dirty is not a string, aborting");
|
|
4488
4481
|
} else
|
|
4489
|
-
throw
|
|
4482
|
+
throw lt("toString is not a function");
|
|
4490
4483
|
if (!t.isSupported)
|
|
4491
4484
|
return w;
|
|
4492
|
-
if (
|
|
4485
|
+
if (Kt || on(o), t.removed = [], typeof w == "string" && (nt = !1), nt) {
|
|
4493
4486
|
if (w.nodeName) {
|
|
4494
|
-
const
|
|
4495
|
-
if (!
|
|
4496
|
-
throw
|
|
4487
|
+
const Te = re(w.nodeName);
|
|
4488
|
+
if (!N[Te] || k[Te])
|
|
4489
|
+
throw lt("root node is forbidden and cannot be sanitized in-place");
|
|
4497
4490
|
}
|
|
4498
4491
|
} else if (w instanceof a)
|
|
4499
|
-
p = Xn("<!---->"),
|
|
4492
|
+
p = Xn("<!---->"), S = p.ownerDocument.importNode(w, !0), S.nodeType === ft.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? p = S : p.appendChild(S);
|
|
4500
4493
|
else {
|
|
4501
|
-
if (
|
|
4494
|
+
if (!$e && !_e && !Re && // eslint-disable-next-line unicorn/prefer-includes
|
|
4502
4495
|
w.indexOf("<") === -1)
|
|
4503
|
-
return H &&
|
|
4496
|
+
return H && vt ? H.createHTML(w) : w;
|
|
4504
4497
|
if (p = Xn(w), !p)
|
|
4505
|
-
return
|
|
4498
|
+
return $e ? null : vt ? R : "";
|
|
4506
4499
|
}
|
|
4507
|
-
p &&
|
|
4508
|
-
const se = Yn(
|
|
4509
|
-
for (;
|
|
4510
|
-
Jn(
|
|
4511
|
-
if (
|
|
4500
|
+
p && en && ve(p.firstChild);
|
|
4501
|
+
const se = Yn(nt ? w : p);
|
|
4502
|
+
for (; W = se.nextNode(); )
|
|
4503
|
+
Jn(W) || (W.content instanceof s && Gi(W.content), er(W));
|
|
4504
|
+
if (nt)
|
|
4512
4505
|
return w;
|
|
4513
|
-
if (
|
|
4514
|
-
if (
|
|
4515
|
-
for (oe =
|
|
4506
|
+
if ($e) {
|
|
4507
|
+
if (xt)
|
|
4508
|
+
for (oe = V.call(p.ownerDocument); p.firstChild; )
|
|
4516
4509
|
oe.appendChild(p.firstChild);
|
|
4517
4510
|
else
|
|
4518
4511
|
oe = p;
|
|
4519
|
-
return (
|
|
4512
|
+
return (I.shadowroot || I.shadowrootmode) && (oe = G.call(r, oe, !0)), oe;
|
|
4520
4513
|
}
|
|
4521
|
-
let me =
|
|
4522
|
-
return
|
|
4523
|
-
` + me),
|
|
4524
|
-
me =
|
|
4525
|
-
}), H &&
|
|
4514
|
+
let me = Re ? p.outerHTML : p.innerHTML;
|
|
4515
|
+
return Re && N["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && ue(Ni, p.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4516
|
+
` + me), _e && Ct([ne, he, T], (Te) => {
|
|
4517
|
+
me = ut(me, Te, " ");
|
|
4518
|
+
}), H && vt ? H.createHTML(me) : me;
|
|
4526
4519
|
}, t.setConfig = function() {
|
|
4527
4520
|
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4528
|
-
|
|
4521
|
+
on(w), Kt = !0;
|
|
4529
4522
|
}, t.clearConfig = function() {
|
|
4530
|
-
Ge = null,
|
|
4523
|
+
Ge = null, Kt = !1;
|
|
4531
4524
|
}, t.isValidAttribute = function(w, o, p) {
|
|
4532
|
-
Ge ||
|
|
4533
|
-
const
|
|
4534
|
-
return Qn(
|
|
4525
|
+
Ge || on({});
|
|
4526
|
+
const S = re(w), W = re(o);
|
|
4527
|
+
return Qn(S, W, p);
|
|
4535
4528
|
}, t.addHook = function(w, o) {
|
|
4536
|
-
typeof o == "function" && (
|
|
4529
|
+
typeof o == "function" && (O[w] = O[w] || [], at(O[w], o));
|
|
4537
4530
|
}, t.removeHook = function(w) {
|
|
4538
|
-
if (
|
|
4539
|
-
return
|
|
4531
|
+
if (O[w])
|
|
4532
|
+
return Mr(O[w]);
|
|
4540
4533
|
}, t.removeHooks = function(w) {
|
|
4541
|
-
|
|
4534
|
+
O[w] && (O[w] = []);
|
|
4542
4535
|
}, t.removeAllHooks = function() {
|
|
4543
|
-
|
|
4536
|
+
O = {};
|
|
4544
4537
|
}, t;
|
|
4545
4538
|
}
|
|
4546
|
-
var
|
|
4547
|
-
const Ca = "data:image/webp;base64,UklGRgQWAABXRUJQVlA4WAoAAAAQAAAAGQEAvQAAQUxQSMsKAAABGQVtGzlKft3d80e8MET0fwI4IyJg7G3vHYYaB+q4bL4HIj3S/q+37ThmZmZmjJidQ8jMzEwDYGacgFNmZsdOKWZmWusc2VqqtRR1P9E2nSqnqk7dFOIn+yd3ArectvPGlb2GOwANQAM4CvYAfNOGXBM4hj0ADaApbCUREzABn6P39//7CfNzufO5+Wf4p95+8Hl8fvfP5/55Pd79C58TMj28+udevfrH/onjlnt647Uv4GmMrMVa1lpevfyYf+gfucXuX9CbbzzBMlksRkwjfNgX9eK22hfxhbwZQ6M1gjVksRaf+mV9BV/KGzfTG1/cm0yTkREWljWtZRn3N7+0f/eBjzfQvph33tdgmazldK1pTaYhzPbeL+d9771x3njHF4YxljMsa4jJCZZl5vTFl/TlvX7DvPapbxqMMcSyRmuCxVqWk52wd7779Rvl8VPfwRjGLNN2zIkWg3MIwzbYOz/29Rtk73x9TZaV5ZioSUyDWDMxwarZ5ul9X8mLW+ONT39EowmZBsHCWgyaTDPDlhRP//19j7fE46e/tpa1FotpDdZqtcYihmktFaHNeP3/vH47vOP1e8mSjKZjLSZZ1qQ1o0HOz8ZqzV58Ge97ug326a8tz8yQr+Lb0Gqet5WzLYR7fXff1Xfx36mIBK//n9dvgccPfFyTaa2Wb+un+ixvvb/Kr/bb/DG/wFc0c7pJeXzfB15/b75zEsvS5Kf5AG/de/pefo/PWjZqbJsP/HdPV96bb3ase6O11nwPH+Ct/9N/g69r2GgJXnv3a9fcXn+xlqQlrQ/8ry7x03+W16acjuDFu995vd1ff8ppQ6tpn/VVXYRv4evIlq3aQo/v+8Br7f6OO6u1LIehD3WZr38NqzaxnC5fwgdeZ/f3zmlhYdV8+oXsv7MVNDbRf/vAa+z+5ham1ea0ueCUnUzTxrrG7u+ds00mo2UXk80YWhbMrq77m8OsNWVa4uhSKIgGM7V1Ze0NzBIZWdaWi51JG1HkNP/MVfXiviCysnbcNccuJxE53Wom7OUV9fioYU7CsZZFXQzDwiwjrDw8XE2PTww1thZkGRe0trWhJskwHdfSC5jG6hBrSLaLmdEY5vwys3/guIr2Yjmd521ZlroYydlRJ8OIXl1Fj0PQ2kmsySIX24gkZhAy9fdcQffHicWizGmsueSVzTCryGDFhz1cPXscw4LRsdFaa61LKRNRjLEGWT7s6rnP6ZwOlnYsJJebNWGm5nSd2Tj+ritnd0OwkyKJTLqYSVBjsybWbJWXD9fNfczpnE5sMRwbXUg5XZsShEkw+y9XzebsYidYZbVMDhc6RdFsi81oRtYe/r6rxvPfWUPLaeZikyPJaaIVzKb4O7pe7maNYXKaxGKiC5EgwmCoiDaOv+2qKYa1dG41maa52FKIQmVmZlL2KV0ro8EwmCJiTZuLLajE2jY1DQnbw6dcMcyzhynEKKVL2XRk5ehwJJPzY9iuFZPTsTCkkioll3ocmSIykTVjmw2vfcyVEjtpFbKcLuW0LgeVBEfOtsHK4L4r5XRtczq0VR2kU3QpU0kS1clqJ0PGax92rayU83O60KEodTHnKypSCraFYbtannOGpZSzUbnYzq5TSrRydtvJePFwzewkp4soRc0FF2SRloNmMbTN7Old1wzL2XAIpUhdzJQUIanCqDaN7bhuMGsEFVG1upSjKJWOc5xIo2bTPubKWTBWojqKcskliIQjR2GwbezFe64c1pxPGCt1MUWnWqdKTUoQ0UPXDmusSklRLrlIjoZixXI+2eZjrh+GpVAqF5zDWA6rIpGzKWN6fNc1hAoKUXUpojpEjVJFm2dG9mFXkqRDOsRywUeIpMjZdZwp518+XElOVAa52KIickykIyJBnfiYq0kkVepiCDrFkRK0meRs3d91PREKR7qYzpGjKJWNkhGWveeaIuQwl5s6jkWbas4eiRHS1ocdV5VUqy4miZQOrKNThoyc5tWr60qUdCloFFJKhoVtoZNefdiVdTa52FKlDlHRUYUmQsxnX2GtupSS56zIaRs0oyY++gqTS45yREWpQkLK2V1n6FKiaMqEcO7sEMW7rrTLLZTUQaVQTkPmtA/rxlIlTc6msAgR4T0PN1WqVEpJTnM+Tmp82G01ltNqdSgVi4XY0PHZr26qQ4nCUSuJIGdzdq9uK4mioI2wqY2cHtGHfcytpahUqqTUppzf5OXL20rlueNwOpidzOndcZ11KSWO0LMpYQbD2OO1tkuhiaNIkYIhxnK640rrYlJpYVKTs8OcX/bUlXaxCUmnqGMdJ8/MnH08uqWSSiUlcmRYTMSyx4ebaqkUFeS5BzGnT7dVC52FUs/DGiz29NJtXcVQRynlYOcYLB5f3VRLqBhEybImGGH3hyutCylLUschioIWzNm1XWuXOiUqp5Wied6dcD+Om6opJZGzC8ZOlsW6P3RTKQoqR6pDkbPRFu4PbuxJpRGHVOZ0Zgi7v7yxOtJIZS2NYIRh2HFjnY+ko5bCYE6X07qxOj2UJCIVxk5i3B9c610KIpKmJFiePdbjq6vtgqOQlBMpwzAWjlurUyqUHKqMwSTZQ7cX50pCKPPMOb0/uNq7lE3KaaIEYRhm7bjeLrYaSkFUGmIZtIduLlQIqaIwp7Om9uBGr1SCqFkjiq3jVjs904FyfilODld8F5dFK3SOtREP19zbwnYkosMwhnG48bMqRxNDDPebj0apwZrzdfsJpVjOj8MN/uon+TXegrPDGmtz+urtBgwGYx56O4JlrHGvw9sTWMaYB29n4MSoa6+3RRhy7e9tVcvV39uoW/42+ksu5GN+rN/sBvoTjvtF/DXfzZ9yA/0Zf9VXdxG/y/f0aTeQH+F3eLqAv+IH+4Pcwr/Xz/RJT291//sH+J3cxr/U9/bzfSNPb1Uf9rv9bH+RW/m3++a+pe/oq7h/Xq8JjU4++tOwniMs/9zf9Bf85495+erljcSf9Yvh6cV7X7zYMQgTLNPylr589fLlq1c30NlX7/nrPL72xpv3ZXneljU0saaRPqaPeXm8un1OH/D42mtvPBLWiOUtXnQ/MMerlw8vX3XrPPvxxZtPjzQnC0bWxLJYnrOXrx5ever2OX16eu3FfTm/LM/ZENM6c75XDw+vXnXrnD49vfZ012R55uQtb2INrVcPL4+HbpvTxxdPL+aZrTnfmqydyZDlmQ+9enU83DSnjy+eHu8IaxlyupxdsGCd0Hg4Hh6Ohxvm9Onx6Ym1PO9kPU87aedoGh6Oh4fjuFlOnx6fHj1zeQub0yajicVydh3Hw3EcN8rp4+PT48kzG61pWYvJshZWO2NBRw9Hx02C3Z/u92WZdmInp2tZ/u22juM46vY43f1p9zWyFmeWt7w9R0Mj1nQcHXVrnO7+eB+WBTsMjXbSIGtZ1vK8C6oHdVuc7n6/r9Fonjs7EyxM/s1XR90Up9t994ym0ZnTybObZ7fWaOdaa5Ej3RCn2+4LpoXl/MI61zlnc76gyWRVuhlO577FYj3H+YU5v848b56/tZbqVjjdNjK0RqbRmrNpNHqWxXrG8644boTTuWtO2+LM2cizQ2tCixidGVoLe7gVTtfdsmDBMoZ1hjkdjJzPGhqaVrfE6UymQZaIFkthCXJ2efbCgpvj/Dx/hOa0OW0Qa9BistgNc7pGJ3M6p7NYM/L+/n+/LAIAVlA4IBILAACwPQCdASoaAb4APpFGnkslo6KhozPaKLASCWMzq1+rPZlElXMyac07rkX0OcVjMi0Z/Yd1CE70/48dIn1rFFeTc2+eT0QeYB+n3S48w367/th71vo59AD+nf6D1qfUx9BT9o/TY9jv+w/9X9qPaZ9QD0AP//1l5EDz5r4rhXZHLl4Ncd/fh+d+ev/c+q1ne+uv/F7gf8z/svWV9C79TB+ljBJ66e306dCn1xe2Yx8AvsjrmvdLH+5hx2M8AOwobUsYIYRsnXoh+WCBUcGyA6kqzns0dc1gqntAA/jcVyoEHToU+LwsVOvra1Bn018i6CV4uldPaFvEXdJ7fTWbKRT1L/C/rIyVEjzBZzBkFWJutm22W0q/wDoaZx4YVI0+c1Un06dCass6SW/4MmFF2NNoI69X40UaNKTwxpp4JLBVGG1LGCTKry0/AWSh9+r0bKio8icMO668i1pfvY+Qp9coK0syse0nF8SAAA2vaRvIcgfPUMLY7WkR1egzaAD/GvY3yB06FPrjH1Nzin5DWws/WonTpVHAa16r77SBaEDwPyPksYJPXTt7MyV8eEoP6k78gop+SAJ2fYY4dUNeHFqlqOhtSxgi098Pl5Wq7BwP/+z1q1W6NSOlVbgnIxtTF64bFOmlEXy1q2y99iXChtSxgk+dE6AAAP7zwAAAAQ//VQ5thYoAM92OnvRPtZedat0B5aYeRxxH98USWdF4qt7Hflnxd0A3gToj/+W7X5CghMqc+gU9jNTObIRt894vbTHhtDLSky2h/Zxl0mjcfaWuXrOlCStPUZy00dCiHOb4GA6J4TJmW+lJQDZCAMMZa3gEciLKiXD5zWAFj/pOI/xB4KQp6q0EKV16rZwWEs1sVrDnjm5+LXAUXiV8bPcEXHm44TTnAFy7iuj4nncgKGPziE3nNMAwJUVI78osfZJvmqU3xHERR1DmurMG/SQ+eQmaBh2h6E+38hLfgf1DOm6Vh26BL0GKXILjd0UIRma4p7O+OV9RY7Hp5EHO//cffL93XbfO7Z6S8V9pcxMnmAAvFaGoFeF/i854V9HwRV68vYUV3viUw4mzqTUbbdkEiwBh/8skFC3DjYQ6pZYtz6W9oac5/jF6McL3q+jvTSqSSUg9kAyEFLsukOTZSy9UgYell+UFzfvfLHEaUtMxY6Xj6cufb+1+/8fl7wFplEsNDP140qPQ/F/Ohh5EcldMWgRacICKAxitKi++TqPK6bQoABM8elDmSs8TBrvSWvjeGkFNc75psNaw8MlD3FlTTqX6HxgA+I91R1ZROGbyyq7LpV2OsnYe20n3+MMwEbyPhenMOtLMskowvsosYrpPVmz5yVOLTtQC623Bh9V2u4C7hnqWN4kzlU4l4fpY5EP+84jyGRd/CFny0vY0XDFo5vATDUrzNrgN3SSiYu71+aNNdhyU/pVJJpOBMmYVh2CvebMTeRv4oFasMD8UiGNfDlRLIerfb4UKMDEnxGbDNtzXcrEn8453kJap4Vc23QTl5z31/+AXkazaww82oRcTW9Hf3XbckPTDuVu7k2xfrGKVIq5EoccXF/YUdffXYv4WocYohPtTGopuDkXwDPdTKC2Ahga/vPRZSkpwJRTkhQCmRS3jotcQcqoe49yds9UdGPjMIn9pjL5kuLQhXG0LuGgl9jHzR4zprpeEsY8Xlrbiz1bSD9HgMGNOKwLGf7Axn9RkppcZNQq9aKr1S7ljJXeyugMxF09aXzhOaQKb81WQNJpsxEzqg8Drki31FeQWQUnRCPiPheoqJJ/phqswt//qO1J9i8lkx5rVYFfar5BpesIvfj7/4w+0H351HK5dsAAGjNCQNndM0VhwPftBivlM4apmKkdOzDQeUhRIKji/laO+ELC8fzAHPTQm3zyS1T2bAvbaL5KMTarIYl/6LojokibVvJO6g6vadWyxa/VrTkfTe79e7XdgWMTrd4n8Lc7NoHoNy2ugJJZ6S4/QJBWm6VIpXYDD1VhXf3l76QpyVsBgPN0cJ1ijTHECAFSVTCUrERRKN/KbGSfB9EJnLviByn2LUOu3rf8dDYPnrf9di12RIdFAgAlg3vMXEL2f6k7LotjcmFexYv0e4302ZLx4q0+EbYnud04JBu8u5LAfT6nI35bLoQNmnnNaPKgm1s11G04aRKpSHGipXVfZLZ1/lbmZsJ0mqOkB6lHOajKzxKUYbazgCuwbLwh9DVvA3ClBtbJ2t9bugl27MNcsinVp7wWwwfhto7OFl7I+3tu7sg8qomLTnekfGVK1IjQkinS4Lst4/kgfjDNMDc9vjAZpyizLunWJAYWnLa0jEFs6A/sBM/fAJwI8XKlnEAbTYeNHbqAa1L1OpVc6+0lelkItUAFdzUdf8nOhOC3c9qTygjvgmHy06akg7Srik2rWV8Xp94D2VZgVjlsmbOmgd7YDDdyNIbb2orHYmVrLSvtMRMi2xsaAwmN6jye0LwhdPdiHxCS3hhCyXsAb2aBmT+TfJgy1anJrN+AThMWn3lVmoKcJknMZ8oi+oSWWKyHlaiMu0lfIy+b9jNZ7IDZW/cWo8zmVFJ7OI34ePRmuU9fjYnOR8V1zdLvqBNglAXlW4PAECD4yRtdF8rOK7N0k94IIoFD7f7WmY3RyNOCWZV+uBmJtJX8Dsp+bVe6WJXKPpp5RVmmWlvXdM1A/Ae+KQQfBNbjU1YxrIrNdTn8+M7EjHedZQLOgmgITIxd9ivAGyIMk/9JNiSHUcmhXA9vVkomYThKRP3D27zYlt7dmgyL4w2wmU52cNco4+Bw1BCEiF8zMB4t5XlWd/Mq38Mx9TCA/ocd8OFoMKU/zEgZlO4bgmwZFmYOHs2t8oSqcod6JlXGeRq2dLP/SioKSSNAU48cEYl0qDbZt5IeGy9TMNjiU38leM+C8oRgc28xJc7ckI/nTQTWX1bSabbbCT4oph/AA7FOLTZarcKrxqN4qy//5+bJ7UUI1KKLfyhBDeuOqEMKujBu+yLXNzUmx3man0psEC7Iq+MAXhKUvEYuts1EkIwltvJCGK1AEfTTDHbz+Pq6uHSt1PUxU5wERUUJFRuc9DxqQujmAwnP/k73U9iE2RHlKMmbBKkfrJUJDnZFAX6RdRJ+PJJtLduz4ZhYGx5h1VmMaRPwtCEC6cKqes+JIvgdpv8u/xYm/JqCWOaZDw79pTRMbT8Dah9Ux4rkwqFryu3p6P7XsYEzcgH4FKLhPAXhwySZgq3VRpjsC/CRWK35jNkZy+rB1iMABWtHSo3AAAPp43msiX1QJU3GiWA50DkFnKB+ow2EROx+Zw6dilZyEt/EBrjAS3j/w/Z99kTnYPX+51oEZ5qsirBZDk1zo9OnijJHboZu33fReZ2Be/i0FsT5whyoy59rzGaG90Ormp+4tP+kzM/JAFmq2V4mTmuqSVpfzRyqS81NoNmqcdCtt9gCDb53HcZBUDb/MXteyqFFpybkwwnsnWC8tKNGb/CzEeQtpgbksBWp/6VxS+AA2hAdWfNKazH/p4snH79oWydrA7uwt8OpBQn5JDm/4T+pQOOcW4e8kdA33hcbnUObkbxv5JfZ6k6z+sG7CgFAY0fMIMk7C28dcbGgOQciHZR+g1lGopcRD+NdsHLrFqDQmAga/x56lU+lItJ6BbrwHA+zAGj5MUz7rnHvvYxPJ33T1vI9yDVJMuumVpdTsl1fPqhaC4Nype5vNhTeNnn7XvcKgYbQkXPV4Tzmu7GHizF7cAmzy61Ndij0vQMOLgWCO4D6LH9BNwrFHYqAAAAAAAA==";
|
|
4548
|
-
var Hi = { exports: {} };
|
|
4539
|
+
var Rr = Hi(), Ii = { exports: {} };
|
|
4549
4540
|
(function(e, t) {
|
|
4550
4541
|
(function(n, r) {
|
|
4551
4542
|
e.exports = r();
|
|
4552
|
-
})(
|
|
4553
|
-
var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", u = "second", a = "minute", c = "hour", l = "day", f = "week",
|
|
4554
|
-
var
|
|
4555
|
-
return "[" +
|
|
4556
|
-
} }, A = function(
|
|
4557
|
-
var
|
|
4558
|
-
return !
|
|
4559
|
-
}, H = { s: A, z: function(
|
|
4560
|
-
var
|
|
4561
|
-
return (
|
|
4562
|
-
}, m: function
|
|
4563
|
-
if (
|
|
4564
|
-
return -
|
|
4565
|
-
var
|
|
4566
|
-
return +(-(
|
|
4567
|
-
}, a: function(
|
|
4568
|
-
return
|
|
4569
|
-
}, p: function(
|
|
4570
|
-
return { M:
|
|
4571
|
-
}, u: function(
|
|
4572
|
-
return
|
|
4573
|
-
} },
|
|
4574
|
-
|
|
4575
|
-
var Y = "$isDayjsObject",
|
|
4576
|
-
return
|
|
4577
|
-
}, Q = function
|
|
4543
|
+
})(ni, function() {
|
|
4544
|
+
var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", u = "second", a = "minute", c = "hour", l = "day", f = "week", _ = "month", y = "quarter", M = "year", b = "date", d = "Invalid Date", C = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
4545
|
+
var E = ["th", "st", "nd", "rd"], g = T % 100;
|
|
4546
|
+
return "[" + T + (E[(g - 20) % 10] || E[g] || E[0]) + "]";
|
|
4547
|
+
} }, A = function(T, E, g) {
|
|
4548
|
+
var v = String(T);
|
|
4549
|
+
return !v || v.length >= E ? T : "" + Array(E + 1 - v.length).join(g) + T;
|
|
4550
|
+
}, H = { s: A, z: function(T) {
|
|
4551
|
+
var E = -T.utcOffset(), g = Math.abs(E), v = Math.floor(g / 60), h = g % 60;
|
|
4552
|
+
return (E <= 0 ? "+" : "-") + A(v, 2, "0") + ":" + A(h, 2, "0");
|
|
4553
|
+
}, m: function T(E, g) {
|
|
4554
|
+
if (E.date() < g.date())
|
|
4555
|
+
return -T(g, E);
|
|
4556
|
+
var v = 12 * (g.year() - E.year()) + (g.month() - E.month()), h = E.clone().add(v, _), x = g - h < 0, L = E.clone().add(v + (x ? -1 : 1), _);
|
|
4557
|
+
return +(-(v + (g - h) / (x ? h - L : L - h)) || 0);
|
|
4558
|
+
}, a: function(T) {
|
|
4559
|
+
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
4560
|
+
}, p: function(T) {
|
|
4561
|
+
return { M: _, y: M, w: f, d: l, D: b, h: c, m: a, s: u, ms: s, Q: y }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
4562
|
+
}, u: function(T) {
|
|
4563
|
+
return T === void 0;
|
|
4564
|
+
} }, R = "en", U = {};
|
|
4565
|
+
U[R] = $;
|
|
4566
|
+
var Y = "$isDayjsObject", V = function(T) {
|
|
4567
|
+
return T instanceof ne || !(!T || !T[Y]);
|
|
4568
|
+
}, Q = function T(E, g, v) {
|
|
4578
4569
|
var h;
|
|
4579
|
-
if (!
|
|
4580
|
-
return
|
|
4581
|
-
if (typeof
|
|
4582
|
-
var
|
|
4583
|
-
|
|
4584
|
-
var
|
|
4585
|
-
if (!h &&
|
|
4586
|
-
return
|
|
4570
|
+
if (!E)
|
|
4571
|
+
return R;
|
|
4572
|
+
if (typeof E == "string") {
|
|
4573
|
+
var x = E.toLowerCase();
|
|
4574
|
+
U[x] && (h = x), g && (U[x] = g, h = x);
|
|
4575
|
+
var L = E.split("-");
|
|
4576
|
+
if (!h && L.length > 1)
|
|
4577
|
+
return T(L[0]);
|
|
4587
4578
|
} else {
|
|
4588
|
-
var
|
|
4589
|
-
|
|
4579
|
+
var N = E.name;
|
|
4580
|
+
U[N] = E, h = N;
|
|
4590
4581
|
}
|
|
4591
|
-
return !
|
|
4592
|
-
},
|
|
4593
|
-
if (
|
|
4594
|
-
return
|
|
4595
|
-
var g = typeof
|
|
4596
|
-
return g.date =
|
|
4597
|
-
},
|
|
4598
|
-
|
|
4599
|
-
return
|
|
4582
|
+
return !v && h && (R = h), h || !v && R;
|
|
4583
|
+
}, G = function(T, E) {
|
|
4584
|
+
if (V(T))
|
|
4585
|
+
return T.clone();
|
|
4586
|
+
var g = typeof E == "object" ? E : {};
|
|
4587
|
+
return g.date = T, g.args = arguments, new ne(g);
|
|
4588
|
+
}, O = H;
|
|
4589
|
+
O.l = Q, O.i = V, O.w = function(T, E) {
|
|
4590
|
+
return G(T, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4600
4591
|
};
|
|
4601
4592
|
var ne = function() {
|
|
4602
|
-
function
|
|
4593
|
+
function T(g) {
|
|
4603
4594
|
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[Y] = !0;
|
|
4604
4595
|
}
|
|
4605
|
-
var
|
|
4606
|
-
return
|
|
4607
|
-
this.$d = function(
|
|
4608
|
-
var h =
|
|
4596
|
+
var E = T.prototype;
|
|
4597
|
+
return E.parse = function(g) {
|
|
4598
|
+
this.$d = function(v) {
|
|
4599
|
+
var h = v.date, x = v.utc;
|
|
4609
4600
|
if (h === null)
|
|
4610
4601
|
return /* @__PURE__ */ new Date(NaN);
|
|
4611
|
-
if (
|
|
4602
|
+
if (O.u(h))
|
|
4612
4603
|
return /* @__PURE__ */ new Date();
|
|
4613
4604
|
if (h instanceof Date)
|
|
4614
4605
|
return new Date(h);
|
|
4615
4606
|
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
4616
|
-
var
|
|
4617
|
-
if (
|
|
4618
|
-
var
|
|
4619
|
-
return
|
|
4607
|
+
var L = h.match(C);
|
|
4608
|
+
if (L) {
|
|
4609
|
+
var N = L[2] - 1 || 0, z = (L[7] || "0").substring(0, 3);
|
|
4610
|
+
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, z)) : new Date(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, z);
|
|
4620
4611
|
}
|
|
4621
4612
|
}
|
|
4622
4613
|
return new Date(h);
|
|
4623
4614
|
}(g), this.init();
|
|
4624
|
-
},
|
|
4615
|
+
}, E.init = function() {
|
|
4625
4616
|
var g = this.$d;
|
|
4626
4617
|
this.$y = g.getFullYear(), this.$M = g.getMonth(), this.$D = g.getDate(), this.$W = g.getDay(), this.$H = g.getHours(), this.$m = g.getMinutes(), this.$s = g.getSeconds(), this.$ms = g.getMilliseconds();
|
|
4627
|
-
},
|
|
4628
|
-
return
|
|
4629
|
-
},
|
|
4618
|
+
}, E.$utils = function() {
|
|
4619
|
+
return O;
|
|
4620
|
+
}, E.isValid = function() {
|
|
4630
4621
|
return this.$d.toString() !== d;
|
|
4631
|
-
},
|
|
4632
|
-
var h =
|
|
4633
|
-
return this.startOf(
|
|
4634
|
-
},
|
|
4635
|
-
return
|
|
4636
|
-
},
|
|
4637
|
-
return this.endOf(
|
|
4638
|
-
},
|
|
4639
|
-
return
|
|
4640
|
-
},
|
|
4622
|
+
}, E.isSame = function(g, v) {
|
|
4623
|
+
var h = G(g);
|
|
4624
|
+
return this.startOf(v) <= h && h <= this.endOf(v);
|
|
4625
|
+
}, E.isAfter = function(g, v) {
|
|
4626
|
+
return G(g) < this.startOf(v);
|
|
4627
|
+
}, E.isBefore = function(g, v) {
|
|
4628
|
+
return this.endOf(v) < G(g);
|
|
4629
|
+
}, E.$g = function(g, v, h) {
|
|
4630
|
+
return O.u(g) ? this[v] : this.set(h, g);
|
|
4631
|
+
}, E.unix = function() {
|
|
4641
4632
|
return Math.floor(this.valueOf() / 1e3);
|
|
4642
|
-
},
|
|
4633
|
+
}, E.valueOf = function() {
|
|
4643
4634
|
return this.$d.getTime();
|
|
4644
|
-
},
|
|
4645
|
-
var h = this,
|
|
4646
|
-
var ye =
|
|
4647
|
-
return
|
|
4648
|
-
},
|
|
4649
|
-
return
|
|
4650
|
-
},
|
|
4651
|
-
switch (
|
|
4652
|
-
case
|
|
4653
|
-
return
|
|
4654
|
-
case
|
|
4655
|
-
return
|
|
4635
|
+
}, E.startOf = function(g, v) {
|
|
4636
|
+
var h = this, x = !!O.u(v) || v, L = O.p(g), N = function(Ee, ie) {
|
|
4637
|
+
var ye = O.w(h.$u ? Date.UTC(h.$y, ie, Ee) : new Date(h.$y, ie, Ee), h);
|
|
4638
|
+
return x ? ye : ye.endOf(l);
|
|
4639
|
+
}, z = function(Ee, ie) {
|
|
4640
|
+
return O.w(h.toDate()[Ee].apply(h.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), h);
|
|
4641
|
+
}, I = this.$W, q = this.$M, m = this.$D, k = "set" + (this.$u ? "UTC" : "");
|
|
4642
|
+
switch (L) {
|
|
4643
|
+
case M:
|
|
4644
|
+
return x ? N(1, 0) : N(31, 11);
|
|
4645
|
+
case _:
|
|
4646
|
+
return x ? N(1, q) : N(0, q + 1);
|
|
4656
4647
|
case f:
|
|
4657
|
-
var ee = this.$locale().weekStart || 0, K = (
|
|
4658
|
-
return
|
|
4648
|
+
var ee = this.$locale().weekStart || 0, K = (I < ee ? I + 7 : I) - ee;
|
|
4649
|
+
return N(x ? m - K : m + (6 - K), q);
|
|
4659
4650
|
case l:
|
|
4660
|
-
case
|
|
4661
|
-
return
|
|
4651
|
+
case b:
|
|
4652
|
+
return z(k + "Hours", 0);
|
|
4662
4653
|
case c:
|
|
4663
|
-
return
|
|
4654
|
+
return z(k + "Minutes", 1);
|
|
4664
4655
|
case a:
|
|
4665
|
-
return
|
|
4656
|
+
return z(k + "Seconds", 2);
|
|
4666
4657
|
case u:
|
|
4667
|
-
return
|
|
4658
|
+
return z(k + "Milliseconds", 3);
|
|
4668
4659
|
default:
|
|
4669
4660
|
return this.clone();
|
|
4670
4661
|
}
|
|
4671
|
-
},
|
|
4662
|
+
}, E.endOf = function(g) {
|
|
4672
4663
|
return this.startOf(g, !1);
|
|
4673
|
-
},
|
|
4674
|
-
var h,
|
|
4675
|
-
if (
|
|
4676
|
-
var
|
|
4677
|
-
|
|
4664
|
+
}, E.$set = function(g, v) {
|
|
4665
|
+
var h, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (h = {}, h[l] = L + "Date", h[b] = L + "Date", h[_] = L + "Month", h[M] = L + "FullYear", h[c] = L + "Hours", h[a] = L + "Minutes", h[u] = L + "Seconds", h[s] = L + "Milliseconds", h)[x], z = x === l ? this.$D + (v - this.$W) : v;
|
|
4666
|
+
if (x === _ || x === M) {
|
|
4667
|
+
var I = this.clone().set(b, 1);
|
|
4668
|
+
I.$d[N](z), I.init(), this.$d = I.set(b, Math.min(this.$D, I.daysInMonth())).$d;
|
|
4678
4669
|
} else
|
|
4679
|
-
|
|
4670
|
+
N && this.$d[N](z);
|
|
4680
4671
|
return this.init(), this;
|
|
4681
|
-
},
|
|
4682
|
-
return this.clone().$set(g,
|
|
4683
|
-
},
|
|
4684
|
-
return this[
|
|
4685
|
-
},
|
|
4686
|
-
var h,
|
|
4672
|
+
}, E.set = function(g, v) {
|
|
4673
|
+
return this.clone().$set(g, v);
|
|
4674
|
+
}, E.get = function(g) {
|
|
4675
|
+
return this[O.p(g)]();
|
|
4676
|
+
}, E.add = function(g, v) {
|
|
4677
|
+
var h, x = this;
|
|
4687
4678
|
g = Number(g);
|
|
4688
|
-
var
|
|
4689
|
-
var m =
|
|
4690
|
-
return
|
|
4679
|
+
var L = O.p(v), N = function(q) {
|
|
4680
|
+
var m = G(x);
|
|
4681
|
+
return O.w(m.date(m.date() + Math.round(q * g)), x);
|
|
4691
4682
|
};
|
|
4692
|
-
if (
|
|
4693
|
-
return this.set(
|
|
4694
|
-
if (
|
|
4695
|
-
return this.set(
|
|
4696
|
-
if (
|
|
4697
|
-
return
|
|
4698
|
-
if (
|
|
4699
|
-
return
|
|
4700
|
-
var
|
|
4701
|
-
return
|
|
4702
|
-
},
|
|
4703
|
-
return this.add(-1 * g,
|
|
4704
|
-
},
|
|
4705
|
-
var
|
|
4683
|
+
if (L === _)
|
|
4684
|
+
return this.set(_, this.$M + g);
|
|
4685
|
+
if (L === M)
|
|
4686
|
+
return this.set(M, this.$y + g);
|
|
4687
|
+
if (L === l)
|
|
4688
|
+
return N(1);
|
|
4689
|
+
if (L === f)
|
|
4690
|
+
return N(7);
|
|
4691
|
+
var z = (h = {}, h[a] = r, h[c] = i, h[u] = n, h)[L] || 1, I = this.$d.getTime() + g * z;
|
|
4692
|
+
return O.w(I, this);
|
|
4693
|
+
}, E.subtract = function(g, v) {
|
|
4694
|
+
return this.add(-1 * g, v);
|
|
4695
|
+
}, E.format = function(g) {
|
|
4696
|
+
var v = this, h = this.$locale();
|
|
4706
4697
|
if (!this.isValid())
|
|
4707
4698
|
return h.invalidDate || d;
|
|
4708
|
-
var
|
|
4709
|
-
return ie && (ie[ye] || ie(
|
|
4699
|
+
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H, z = this.$m, I = this.$M, q = h.weekdays, m = h.months, k = h.meridiem, ee = function(ie, ye, _e, Le) {
|
|
4700
|
+
return ie && (ie[ye] || ie(v, x)) || _e[ye].slice(0, Le);
|
|
4710
4701
|
}, K = function(ie) {
|
|
4711
|
-
return
|
|
4712
|
-
},
|
|
4713
|
-
var
|
|
4714
|
-
return
|
|
4702
|
+
return O.s(N % 12 || 12, ie, "0");
|
|
4703
|
+
}, Ee = k || function(ie, ye, _e) {
|
|
4704
|
+
var Le = ie < 12 ? "AM" : "PM";
|
|
4705
|
+
return _e ? Le.toLowerCase() : Le;
|
|
4715
4706
|
};
|
|
4716
|
-
return
|
|
4717
|
-
return ye || function(
|
|
4718
|
-
switch (
|
|
4707
|
+
return x.replace(F, function(ie, ye) {
|
|
4708
|
+
return ye || function(_e) {
|
|
4709
|
+
switch (_e) {
|
|
4719
4710
|
case "YY":
|
|
4720
|
-
return String(
|
|
4711
|
+
return String(v.$y).slice(-2);
|
|
4721
4712
|
case "YYYY":
|
|
4722
|
-
return
|
|
4713
|
+
return O.s(v.$y, 4, "0");
|
|
4723
4714
|
case "M":
|
|
4724
|
-
return
|
|
4715
|
+
return I + 1;
|
|
4725
4716
|
case "MM":
|
|
4726
|
-
return
|
|
4717
|
+
return O.s(I + 1, 2, "0");
|
|
4727
4718
|
case "MMM":
|
|
4728
|
-
return ee(h.monthsShort,
|
|
4719
|
+
return ee(h.monthsShort, I, m, 3);
|
|
4729
4720
|
case "MMMM":
|
|
4730
|
-
return ee(m,
|
|
4721
|
+
return ee(m, I);
|
|
4731
4722
|
case "D":
|
|
4732
|
-
return
|
|
4723
|
+
return v.$D;
|
|
4733
4724
|
case "DD":
|
|
4734
|
-
return
|
|
4725
|
+
return O.s(v.$D, 2, "0");
|
|
4735
4726
|
case "d":
|
|
4736
|
-
return String(
|
|
4727
|
+
return String(v.$W);
|
|
4737
4728
|
case "dd":
|
|
4738
|
-
return ee(h.weekdaysMin,
|
|
4729
|
+
return ee(h.weekdaysMin, v.$W, q, 2);
|
|
4739
4730
|
case "ddd":
|
|
4740
|
-
return ee(h.weekdaysShort,
|
|
4731
|
+
return ee(h.weekdaysShort, v.$W, q, 3);
|
|
4741
4732
|
case "dddd":
|
|
4742
|
-
return
|
|
4733
|
+
return q[v.$W];
|
|
4743
4734
|
case "H":
|
|
4744
|
-
return String(
|
|
4735
|
+
return String(N);
|
|
4745
4736
|
case "HH":
|
|
4746
|
-
return
|
|
4737
|
+
return O.s(N, 2, "0");
|
|
4747
4738
|
case "h":
|
|
4748
4739
|
return K(1);
|
|
4749
4740
|
case "hh":
|
|
4750
4741
|
return K(2);
|
|
4751
4742
|
case "a":
|
|
4752
|
-
return
|
|
4743
|
+
return Ee(N, z, !0);
|
|
4753
4744
|
case "A":
|
|
4754
|
-
return
|
|
4745
|
+
return Ee(N, z, !1);
|
|
4755
4746
|
case "m":
|
|
4756
|
-
return String(
|
|
4747
|
+
return String(z);
|
|
4757
4748
|
case "mm":
|
|
4758
|
-
return
|
|
4749
|
+
return O.s(z, 2, "0");
|
|
4759
4750
|
case "s":
|
|
4760
|
-
return String(
|
|
4751
|
+
return String(v.$s);
|
|
4761
4752
|
case "ss":
|
|
4762
|
-
return
|
|
4753
|
+
return O.s(v.$s, 2, "0");
|
|
4763
4754
|
case "SSS":
|
|
4764
|
-
return
|
|
4755
|
+
return O.s(v.$ms, 3, "0");
|
|
4765
4756
|
case "Z":
|
|
4766
|
-
return
|
|
4757
|
+
return L;
|
|
4767
4758
|
}
|
|
4768
4759
|
return null;
|
|
4769
|
-
}(ie) ||
|
|
4760
|
+
}(ie) || L.replace(":", "");
|
|
4770
4761
|
});
|
|
4771
|
-
},
|
|
4762
|
+
}, E.utcOffset = function() {
|
|
4772
4763
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4773
|
-
},
|
|
4774
|
-
var
|
|
4775
|
-
return
|
|
4764
|
+
}, E.diff = function(g, v, h) {
|
|
4765
|
+
var x, L = this, N = O.p(v), z = G(g), I = (z.utcOffset() - this.utcOffset()) * r, q = this - z, m = function() {
|
|
4766
|
+
return O.m(L, z);
|
|
4776
4767
|
};
|
|
4777
|
-
switch (
|
|
4778
|
-
case
|
|
4779
|
-
|
|
4768
|
+
switch (N) {
|
|
4769
|
+
case M:
|
|
4770
|
+
x = m() / 12;
|
|
4780
4771
|
break;
|
|
4781
|
-
case
|
|
4782
|
-
|
|
4772
|
+
case _:
|
|
4773
|
+
x = m();
|
|
4783
4774
|
break;
|
|
4784
4775
|
case y:
|
|
4785
|
-
|
|
4776
|
+
x = m() / 3;
|
|
4786
4777
|
break;
|
|
4787
4778
|
case f:
|
|
4788
|
-
|
|
4779
|
+
x = (q - I) / 6048e5;
|
|
4789
4780
|
break;
|
|
4790
4781
|
case l:
|
|
4791
|
-
|
|
4782
|
+
x = (q - I) / 864e5;
|
|
4792
4783
|
break;
|
|
4793
4784
|
case c:
|
|
4794
|
-
|
|
4785
|
+
x = q / i;
|
|
4795
4786
|
break;
|
|
4796
4787
|
case a:
|
|
4797
|
-
|
|
4788
|
+
x = q / r;
|
|
4798
4789
|
break;
|
|
4799
4790
|
case u:
|
|
4800
|
-
|
|
4791
|
+
x = q / n;
|
|
4801
4792
|
break;
|
|
4802
4793
|
default:
|
|
4803
|
-
|
|
4794
|
+
x = q;
|
|
4804
4795
|
}
|
|
4805
|
-
return h ?
|
|
4806
|
-
},
|
|
4807
|
-
return this.endOf(
|
|
4808
|
-
},
|
|
4809
|
-
return
|
|
4810
|
-
},
|
|
4796
|
+
return h ? x : O.a(x);
|
|
4797
|
+
}, E.daysInMonth = function() {
|
|
4798
|
+
return this.endOf(_).$D;
|
|
4799
|
+
}, E.$locale = function() {
|
|
4800
|
+
return U[this.$L];
|
|
4801
|
+
}, E.locale = function(g, v) {
|
|
4811
4802
|
if (!g)
|
|
4812
4803
|
return this.$L;
|
|
4813
|
-
var h = this.clone(),
|
|
4814
|
-
return
|
|
4815
|
-
},
|
|
4816
|
-
return
|
|
4817
|
-
},
|
|
4804
|
+
var h = this.clone(), x = Q(g, v, !0);
|
|
4805
|
+
return x && (h.$L = x), h;
|
|
4806
|
+
}, E.clone = function() {
|
|
4807
|
+
return O.w(this.$d, this);
|
|
4808
|
+
}, E.toDate = function() {
|
|
4818
4809
|
return new Date(this.valueOf());
|
|
4819
|
-
},
|
|
4810
|
+
}, E.toJSON = function() {
|
|
4820
4811
|
return this.isValid() ? this.toISOString() : null;
|
|
4821
|
-
},
|
|
4812
|
+
}, E.toISOString = function() {
|
|
4822
4813
|
return this.$d.toISOString();
|
|
4823
|
-
},
|
|
4814
|
+
}, E.toString = function() {
|
|
4824
4815
|
return this.$d.toUTCString();
|
|
4825
|
-
},
|
|
4816
|
+
}, T;
|
|
4826
4817
|
}(), he = ne.prototype;
|
|
4827
|
-
return
|
|
4828
|
-
he[
|
|
4829
|
-
return this.$g(
|
|
4818
|
+
return G.prototype = he, [["$ms", s], ["$s", u], ["$m", a], ["$H", c], ["$W", l], ["$M", _], ["$y", M], ["$D", b]].forEach(function(T) {
|
|
4819
|
+
he[T[1]] = function(E) {
|
|
4820
|
+
return this.$g(E, T[0], T[1]);
|
|
4830
4821
|
};
|
|
4831
|
-
}),
|
|
4832
|
-
return
|
|
4833
|
-
},
|
|
4834
|
-
return
|
|
4835
|
-
},
|
|
4822
|
+
}), G.extend = function(T, E) {
|
|
4823
|
+
return T.$i || (T(E, ne, G), T.$i = !0), G;
|
|
4824
|
+
}, G.locale = Q, G.isDayjs = V, G.unix = function(T) {
|
|
4825
|
+
return G(1e3 * T);
|
|
4826
|
+
}, G.en = U[R], G.Ls = U, G.p = {}, G;
|
|
4836
4827
|
});
|
|
4837
|
-
})(
|
|
4838
|
-
var
|
|
4839
|
-
const
|
|
4840
|
-
var
|
|
4828
|
+
})(Ii);
|
|
4829
|
+
var La = Ii.exports;
|
|
4830
|
+
const Dr = /* @__PURE__ */ In(La);
|
|
4831
|
+
var Pi = { exports: {} };
|
|
4841
4832
|
(function(e, t) {
|
|
4842
4833
|
(function(n, r) {
|
|
4843
4834
|
e.exports = r();
|
|
4844
|
-
})(
|
|
4835
|
+
})(ni, function() {
|
|
4845
4836
|
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
4846
4837
|
return function(s, u, a) {
|
|
4847
4838
|
var c = u.prototype;
|
|
4848
4839
|
a.utc = function(d) {
|
|
4849
|
-
var
|
|
4850
|
-
return new u(
|
|
4840
|
+
var C = { date: d, utc: !0, args: arguments };
|
|
4841
|
+
return new u(C);
|
|
4851
4842
|
}, c.utc = function(d) {
|
|
4852
|
-
var
|
|
4853
|
-
return d ?
|
|
4843
|
+
var C = a(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4844
|
+
return d ? C.add(this.utcOffset(), n) : C;
|
|
4854
4845
|
}, c.local = function() {
|
|
4855
4846
|
return a(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4856
4847
|
};
|
|
@@ -4866,34 +4857,34 @@ var Ri = { exports: {} };
|
|
|
4866
4857
|
} else
|
|
4867
4858
|
f.call(this);
|
|
4868
4859
|
};
|
|
4869
|
-
var
|
|
4870
|
-
c.utcOffset = function(d,
|
|
4871
|
-
var
|
|
4872
|
-
if (
|
|
4873
|
-
return this.$u ? 0 :
|
|
4874
|
-
if (typeof d == "string" && (d = function(
|
|
4875
|
-
|
|
4876
|
-
var
|
|
4877
|
-
if (!
|
|
4860
|
+
var _ = c.utcOffset;
|
|
4861
|
+
c.utcOffset = function(d, C) {
|
|
4862
|
+
var F = this.$utils().u;
|
|
4863
|
+
if (F(d))
|
|
4864
|
+
return this.$u ? 0 : F(this.$offset) ? _.call(this) : this.$offset;
|
|
4865
|
+
if (typeof d == "string" && (d = function(R) {
|
|
4866
|
+
R === void 0 && (R = "");
|
|
4867
|
+
var U = R.match(r);
|
|
4868
|
+
if (!U)
|
|
4878
4869
|
return null;
|
|
4879
|
-
var Y = ("" +
|
|
4880
|
-
return Q === 0 ? 0 :
|
|
4870
|
+
var Y = ("" + U[0]).match(i) || ["-", 0, 0], V = Y[0], Q = 60 * +Y[1] + +Y[2];
|
|
4871
|
+
return Q === 0 ? 0 : V === "+" ? Q : -Q;
|
|
4881
4872
|
}(d), d === null))
|
|
4882
4873
|
return this;
|
|
4883
|
-
var
|
|
4884
|
-
if (
|
|
4885
|
-
return A.$offset =
|
|
4874
|
+
var $ = Math.abs(d) <= 16 ? 60 * d : d, A = this;
|
|
4875
|
+
if (C)
|
|
4876
|
+
return A.$offset = $, A.$u = d === 0, A;
|
|
4886
4877
|
if (d !== 0) {
|
|
4887
4878
|
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4888
|
-
(A = this.local().add(
|
|
4879
|
+
(A = this.local().add($ + H, n)).$offset = $, A.$x.$localOffset = H;
|
|
4889
4880
|
} else
|
|
4890
4881
|
A = this.utc();
|
|
4891
4882
|
return A;
|
|
4892
4883
|
};
|
|
4893
4884
|
var y = c.format;
|
|
4894
4885
|
c.format = function(d) {
|
|
4895
|
-
var
|
|
4896
|
-
return y.call(this,
|
|
4886
|
+
var C = d || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4887
|
+
return y.call(this, C);
|
|
4897
4888
|
}, c.valueOf = function() {
|
|
4898
4889
|
var d = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4899
4890
|
return this.$d.valueOf() - 6e4 * d;
|
|
@@ -4904,24 +4895,24 @@ var Ri = { exports: {} };
|
|
|
4904
4895
|
}, c.toString = function() {
|
|
4905
4896
|
return this.toDate().toUTCString();
|
|
4906
4897
|
};
|
|
4907
|
-
var
|
|
4898
|
+
var M = c.toDate;
|
|
4908
4899
|
c.toDate = function(d) {
|
|
4909
|
-
return d === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
4900
|
+
return d === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : M.call(this);
|
|
4910
4901
|
};
|
|
4911
|
-
var
|
|
4912
|
-
c.diff = function(d,
|
|
4902
|
+
var b = c.diff;
|
|
4903
|
+
c.diff = function(d, C, F) {
|
|
4913
4904
|
if (d && this.$u === d.$u)
|
|
4914
|
-
return
|
|
4915
|
-
var
|
|
4916
|
-
return
|
|
4905
|
+
return b.call(this, d, C, F);
|
|
4906
|
+
var $ = this.local(), A = a(d).local();
|
|
4907
|
+
return b.call($, A, C, F);
|
|
4917
4908
|
};
|
|
4918
4909
|
};
|
|
4919
4910
|
});
|
|
4920
|
-
})(
|
|
4921
|
-
var
|
|
4922
|
-
const Ha = /* @__PURE__ */
|
|
4923
|
-
let
|
|
4924
|
-
function
|
|
4911
|
+
})(Pi);
|
|
4912
|
+
var Na = Pi.exports;
|
|
4913
|
+
const Ha = /* @__PURE__ */ In(Na);
|
|
4914
|
+
let Br = bt(null);
|
|
4915
|
+
function Ia(e, t) {
|
|
4925
4916
|
if (e) {
|
|
4926
4917
|
const n = document.createElement("style");
|
|
4927
4918
|
n.innerHTML = t, e.appendChild(n);
|
|
@@ -4936,7 +4927,7 @@ function Pa(e, t) {
|
|
|
4936
4927
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4937
4928
|
});
|
|
4938
4929
|
}
|
|
4939
|
-
function
|
|
4930
|
+
function Ra(e, t, n) {
|
|
4940
4931
|
if (window.emMessageBus) {
|
|
4941
4932
|
const r = document.createElement("style");
|
|
4942
4933
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4945,33 +4936,33 @@ function Ia(e, t, n) {
|
|
|
4945
4936
|
}
|
|
4946
4937
|
}
|
|
4947
4938
|
function Da(e) {
|
|
4948
|
-
|
|
4939
|
+
Xi(e, "svelte-122ajk5", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
|
|
4949
4940
|
}
|
|
4950
|
-
const Ba = (e) => ({}),
|
|
4941
|
+
const Ba = (e) => ({}), $r = (e) => ({}), $a = (e) => ({}), Ur = (e) => ({}), Ua = (e) => ({}), kr = (e) => ({}), ka = (e) => ({}), Fr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4951
4942
|
function Gr(e) {
|
|
4952
4943
|
let t, n, r, i, s, u = (
|
|
4953
4944
|
/*$_*/
|
|
4954
4945
|
e[8]("sessionExpirationHeader") + ""
|
|
4955
|
-
), a, c, l, f,
|
|
4956
|
-
const
|
|
4946
|
+
), a, c, l, f, _, y, M, b, d, C, F, $, A, H, R;
|
|
4947
|
+
const U = (
|
|
4957
4948
|
/*#slots*/
|
|
4958
4949
|
e[22].icon
|
|
4959
4950
|
), Y = Nt(
|
|
4960
|
-
|
|
4951
|
+
U,
|
|
4961
4952
|
e,
|
|
4962
4953
|
/*$$scope*/
|
|
4963
4954
|
e[21],
|
|
4964
4955
|
Fr
|
|
4965
|
-
),
|
|
4956
|
+
), V = Y || ja(e), Q = (
|
|
4966
4957
|
/*#slots*/
|
|
4967
4958
|
e[22].title
|
|
4968
|
-
),
|
|
4959
|
+
), G = Nt(
|
|
4969
4960
|
Q,
|
|
4970
4961
|
e,
|
|
4971
4962
|
/*$$scope*/
|
|
4972
4963
|
e[21],
|
|
4973
4964
|
kr
|
|
4974
|
-
),
|
|
4965
|
+
), O = G || za(e), ne = (
|
|
4975
4966
|
/*#slots*/
|
|
4976
4967
|
e[22].text
|
|
4977
4968
|
), he = Nt(
|
|
@@ -4980,29 +4971,29 @@ function Gr(e) {
|
|
|
4980
4971
|
/*$$scope*/
|
|
4981
4972
|
e[21],
|
|
4982
4973
|
Ur
|
|
4983
|
-
),
|
|
4984
|
-
function
|
|
4974
|
+
), T = he || Wa(e), E = [Xa, Va], g = [];
|
|
4975
|
+
function v(h, x) {
|
|
4985
4976
|
return (
|
|
4986
4977
|
/*showLoaderButton*/
|
|
4987
4978
|
h[6] ? 0 : 1
|
|
4988
4979
|
);
|
|
4989
4980
|
}
|
|
4990
|
-
return d =
|
|
4981
|
+
return d = v(e), C = g[d] = E[d](e), {
|
|
4991
4982
|
c() {
|
|
4992
|
-
t = te("div"), n = te("div"), r = te("div"), i = te("div"), s = te("div"), a =
|
|
4993
|
-
e[6], j(
|
|
4983
|
+
t = te("div"), n = te("div"), r = te("div"), i = te("div"), s = te("div"), a = Ke(u), c = ht(), l = te("div"), f = te("div"), V && V.c(), _ = ht(), O && O.c(), y = ht(), T && T.c(), M = ht(), b = te("button"), C.c(), j(s, "class", "CashierSessionExpirationModalHeaderTitle"), j(i, "class", "CashierSessionExpirationModalHeader"), j(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
4984
|
+
e[6], j(b, "class", "CashierSessionExpirationButton"), j(f, "class", "CashierSessionExpiration"), j(l, "class", "CashierSessionExpirationModalContainer"), j(r, "class", "CashierSessionExpirationModalWrapper"), j(n, "class", "CashierSessionExpirationModalWindow"), j(n, "id", "CashierSessionExpirationModal"), Ye(() => (
|
|
4994
4985
|
/*div5_elementresize_handler*/
|
|
4995
4986
|
e[24].call(n)
|
|
4996
4987
|
));
|
|
4997
4988
|
},
|
|
4998
|
-
m(h,
|
|
4999
|
-
|
|
4989
|
+
m(h, x) {
|
|
4990
|
+
we(h, t, x), J(t, n), J(n, r), J(r, i), J(i, s), J(s, a), J(r, c), J(r, l), J(l, f), V && V.m(f, null), J(f, _), O && O.m(f, null), J(f, y), T && T.m(f, null), J(f, M), J(f, b), g[d].m(b, null), e[23](f), F = Ji(
|
|
5000
4991
|
n,
|
|
5001
4992
|
/*div5_elementresize_handler*/
|
|
5002
4993
|
e[24].bind(n)
|
|
5003
|
-
), e[25](t), A = !0, H || (
|
|
4994
|
+
), e[25](t), A = !0, H || (R = [
|
|
5004
4995
|
kt(
|
|
5005
|
-
|
|
4996
|
+
b,
|
|
5006
4997
|
"click",
|
|
5007
4998
|
/*renewSession*/
|
|
5008
4999
|
e[9]
|
|
@@ -5015,121 +5006,121 @@ function Gr(e) {
|
|
|
5015
5006
|
)
|
|
5016
5007
|
], H = !0);
|
|
5017
5008
|
},
|
|
5018
|
-
p(h,
|
|
5019
|
-
e = h, (!A ||
|
|
5009
|
+
p(h, x) {
|
|
5010
|
+
e = h, (!A || x[0] & /*$_*/
|
|
5020
5011
|
256) && u !== (u = /*$_*/
|
|
5021
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5022
|
-
2097152) &&
|
|
5012
|
+
e[8]("sessionExpirationHeader") + "") && Zt(a, u), Y ? Y.p && (!A || x[0] & /*$$scope*/
|
|
5013
|
+
2097152) && It(
|
|
5023
5014
|
Y,
|
|
5024
|
-
|
|
5015
|
+
U,
|
|
5025
5016
|
e,
|
|
5026
5017
|
/*$$scope*/
|
|
5027
5018
|
e[21],
|
|
5028
|
-
A ?
|
|
5029
|
-
|
|
5019
|
+
A ? Ht(
|
|
5020
|
+
U,
|
|
5030
5021
|
/*$$scope*/
|
|
5031
5022
|
e[21],
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
) :
|
|
5023
|
+
x,
|
|
5024
|
+
ka
|
|
5025
|
+
) : Pt(
|
|
5035
5026
|
/*$$scope*/
|
|
5036
5027
|
e[21]
|
|
5037
5028
|
),
|
|
5038
5029
|
Fr
|
|
5039
|
-
) :
|
|
5040
|
-
8) &&
|
|
5041
|
-
2097152) &&
|
|
5042
|
-
|
|
5030
|
+
) : V && V.p && (!A || x[0] & /*assetsurl*/
|
|
5031
|
+
8) && V.p(e, A ? x : [-1, -1]), G ? G.p && (!A || x[0] & /*$$scope*/
|
|
5032
|
+
2097152) && It(
|
|
5033
|
+
G,
|
|
5043
5034
|
Q,
|
|
5044
5035
|
e,
|
|
5045
5036
|
/*$$scope*/
|
|
5046
5037
|
e[21],
|
|
5047
|
-
A ?
|
|
5038
|
+
A ? Ht(
|
|
5048
5039
|
Q,
|
|
5049
5040
|
/*$$scope*/
|
|
5050
5041
|
e[21],
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
) :
|
|
5042
|
+
x,
|
|
5043
|
+
Ua
|
|
5044
|
+
) : Pt(
|
|
5054
5045
|
/*$$scope*/
|
|
5055
5046
|
e[21]
|
|
5056
5047
|
),
|
|
5057
5048
|
kr
|
|
5058
|
-
) :
|
|
5059
|
-
256) &&
|
|
5060
|
-
2097152) &&
|
|
5049
|
+
) : O && O.p && (!A || x[0] & /*$_*/
|
|
5050
|
+
256) && O.p(e, A ? x : [-1, -1]), he ? he.p && (!A || x[0] & /*$$scope*/
|
|
5051
|
+
2097152) && It(
|
|
5061
5052
|
he,
|
|
5062
5053
|
ne,
|
|
5063
5054
|
e,
|
|
5064
5055
|
/*$$scope*/
|
|
5065
5056
|
e[21],
|
|
5066
|
-
A ?
|
|
5057
|
+
A ? Ht(
|
|
5067
5058
|
ne,
|
|
5068
5059
|
/*$$scope*/
|
|
5069
5060
|
e[21],
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
) :
|
|
5061
|
+
x,
|
|
5062
|
+
$a
|
|
5063
|
+
) : Pt(
|
|
5073
5064
|
/*$$scope*/
|
|
5074
5065
|
e[21]
|
|
5075
5066
|
),
|
|
5076
5067
|
Ur
|
|
5077
|
-
) :
|
|
5078
|
-
384) &&
|
|
5079
|
-
let
|
|
5080
|
-
d =
|
|
5081
|
-
g[
|
|
5082
|
-
}),
|
|
5083
|
-
64) && (
|
|
5068
|
+
) : T && T.p && (!A || x[0] & /*$_, timeLeft*/
|
|
5069
|
+
384) && T.p(e, A ? x : [-1, -1]);
|
|
5070
|
+
let L = d;
|
|
5071
|
+
d = v(e), d === L ? g[d].p(e, x) : (Kr(), Ne(g[L], 1, 1, () => {
|
|
5072
|
+
g[L] = null;
|
|
5073
|
+
}), ei(), C = g[d], C ? C.p(e, x) : (C = g[d] = E[d](e), C.c()), Se(C, 1), C.m(b, null)), (!A || x[0] & /*showLoaderButton*/
|
|
5074
|
+
64) && (b.disabled = /*showLoaderButton*/
|
|
5084
5075
|
e[6]);
|
|
5085
5076
|
},
|
|
5086
5077
|
i(h) {
|
|
5087
|
-
A || (
|
|
5088
|
-
A && (
|
|
5078
|
+
A || (Se(V, h), Se(O, h), Se(T, h), Se(C), h && Ye(() => {
|
|
5079
|
+
A && ($ || ($ = lr(n, cr, { duration: (
|
|
5089
5080
|
/*duration*/
|
|
5090
5081
|
e[2]
|
|
5091
|
-
) }, !0)),
|
|
5082
|
+
) }, !0)), $.run(1));
|
|
5092
5083
|
}), A = !0);
|
|
5093
5084
|
},
|
|
5094
5085
|
o(h) {
|
|
5095
|
-
Ne(
|
|
5086
|
+
Ne(V, h), Ne(O, h), Ne(T, h), Ne(C), h && ($ || ($ = lr(n, cr, { duration: (
|
|
5096
5087
|
/*duration*/
|
|
5097
5088
|
e[2]
|
|
5098
|
-
) }, !1)),
|
|
5089
|
+
) }, !1)), $.run(0)), A = !1;
|
|
5099
5090
|
},
|
|
5100
5091
|
d(h) {
|
|
5101
|
-
h && ge(t),
|
|
5092
|
+
h && ge(t), V && V.d(h), O && O.d(h), T && T.d(h), g[d].d(), e[23](null), F(), h && $ && $.end(), e[25](null), H = !1, Ie(R);
|
|
5102
5093
|
}
|
|
5103
5094
|
};
|
|
5104
5095
|
}
|
|
5105
|
-
function
|
|
5106
|
-
let t
|
|
5096
|
+
function Fa(e) {
|
|
5097
|
+
let t;
|
|
5107
5098
|
return {
|
|
5108
5099
|
c() {
|
|
5109
|
-
t = te("
|
|
5100
|
+
t = te("div"), j(t, "class", "ImagePlaceholder");
|
|
5110
5101
|
},
|
|
5111
|
-
m(
|
|
5112
|
-
|
|
5102
|
+
m(n, r) {
|
|
5103
|
+
we(n, t, r);
|
|
5113
5104
|
},
|
|
5114
5105
|
p: de,
|
|
5115
|
-
d(
|
|
5116
|
-
|
|
5106
|
+
d(n) {
|
|
5107
|
+
n && ge(t);
|
|
5117
5108
|
}
|
|
5118
5109
|
};
|
|
5119
5110
|
}
|
|
5120
|
-
function
|
|
5111
|
+
function Ga(e) {
|
|
5121
5112
|
let t, n;
|
|
5122
5113
|
return {
|
|
5123
5114
|
c() {
|
|
5124
|
-
t = te("img"),
|
|
5115
|
+
t = te("img"), ir(t.src, n = `${/*assetsurl*/
|
|
5125
5116
|
e[3]}/set-timeout-icon.png`) || j(t, "src", n), j(t, "width", "300px"), j(t, "alt", "error");
|
|
5126
5117
|
},
|
|
5127
5118
|
m(r, i) {
|
|
5128
|
-
|
|
5119
|
+
we(r, t, i);
|
|
5129
5120
|
},
|
|
5130
5121
|
p(r, i) {
|
|
5131
5122
|
i[0] & /*assetsurl*/
|
|
5132
|
-
8 && !
|
|
5123
|
+
8 && !ir(t.src, n = `${/*assetsurl*/
|
|
5133
5124
|
r[3]}/set-timeout-icon.png`) && j(t, "src", n);
|
|
5134
5125
|
},
|
|
5135
5126
|
d(r) {
|
|
@@ -5142,16 +5133,16 @@ function ja(e) {
|
|
|
5142
5133
|
function n(s, u) {
|
|
5143
5134
|
return (
|
|
5144
5135
|
/*assetsurl*/
|
|
5145
|
-
s[3] ?
|
|
5136
|
+
s[3] ? Ga : Fa
|
|
5146
5137
|
);
|
|
5147
5138
|
}
|
|
5148
5139
|
let r = n(e), i = r(e);
|
|
5149
5140
|
return {
|
|
5150
5141
|
c() {
|
|
5151
|
-
i.c(), t =
|
|
5142
|
+
i.c(), t = Jr();
|
|
5152
5143
|
},
|
|
5153
5144
|
m(s, u) {
|
|
5154
|
-
i.m(s, u),
|
|
5145
|
+
i.m(s, u), we(s, t, u);
|
|
5155
5146
|
},
|
|
5156
5147
|
p(s, u) {
|
|
5157
5148
|
r === (r = n(s)) && i ? i.p(s, u) : (i.d(1), i = r(s), i && (i.c(), i.m(t.parentNode, t)));
|
|
@@ -5168,15 +5159,15 @@ function za(e) {
|
|
|
5168
5159
|
), r;
|
|
5169
5160
|
return {
|
|
5170
5161
|
c() {
|
|
5171
|
-
t = te("span"), r =
|
|
5162
|
+
t = te("span"), r = Ke(n), j(t, "class", "CashierSessionExpirationTitle");
|
|
5172
5163
|
},
|
|
5173
5164
|
m(i, s) {
|
|
5174
|
-
|
|
5165
|
+
we(i, t, s), J(t, r);
|
|
5175
5166
|
},
|
|
5176
5167
|
p(i, s) {
|
|
5177
5168
|
s[0] & /*$_*/
|
|
5178
5169
|
256 && n !== (n = /*$_*/
|
|
5179
|
-
i[8]("sessionExpirationTitle") + "") &&
|
|
5170
|
+
i[8]("sessionExpirationTitle") + "") && Zt(r, n);
|
|
5180
5171
|
},
|
|
5181
5172
|
d(i) {
|
|
5182
5173
|
i && ge(t);
|
|
@@ -5184,7 +5175,7 @@ function za(e) {
|
|
|
5184
5175
|
};
|
|
5185
5176
|
}
|
|
5186
5177
|
function Wa(e) {
|
|
5187
|
-
let t, n =
|
|
5178
|
+
let t, n = Rr.sanitize(
|
|
5188
5179
|
/*$_*/
|
|
5189
5180
|
e[8]("sessionExpirationGeneralText", { values: { second: (
|
|
5190
5181
|
/*timeLeft*/
|
|
@@ -5196,11 +5187,11 @@ function Wa(e) {
|
|
|
5196
5187
|
t = te("span"), j(t, "class", "CashierSessionExpirationText");
|
|
5197
5188
|
},
|
|
5198
5189
|
m(r, i) {
|
|
5199
|
-
|
|
5190
|
+
we(r, t, i), t.innerHTML = n;
|
|
5200
5191
|
},
|
|
5201
5192
|
p(r, i) {
|
|
5202
5193
|
i[0] & /*$_, timeLeft*/
|
|
5203
|
-
384 && n !== (n =
|
|
5194
|
+
384 && n !== (n = Rr.sanitize(
|
|
5204
5195
|
/*$_*/
|
|
5205
5196
|
r[8]("sessionExpirationGeneralText", { values: { second: (
|
|
5206
5197
|
/*timeLeft*/
|
|
@@ -5223,45 +5214,45 @@ function Va(e) {
|
|
|
5223
5214
|
e,
|
|
5224
5215
|
/*$$scope*/
|
|
5225
5216
|
e[21],
|
|
5226
|
-
|
|
5217
|
+
$r
|
|
5227
5218
|
), i = r || Ya(e);
|
|
5228
5219
|
return {
|
|
5229
5220
|
c() {
|
|
5230
|
-
i.c();
|
|
5221
|
+
i && i.c();
|
|
5231
5222
|
},
|
|
5232
5223
|
m(s, u) {
|
|
5233
|
-
i.m(s, u), t = !0;
|
|
5224
|
+
i && i.m(s, u), t = !0;
|
|
5234
5225
|
},
|
|
5235
5226
|
p(s, u) {
|
|
5236
5227
|
r ? r.p && (!t || u[0] & /*$$scope*/
|
|
5237
|
-
2097152) &&
|
|
5228
|
+
2097152) && It(
|
|
5238
5229
|
r,
|
|
5239
5230
|
n,
|
|
5240
5231
|
s,
|
|
5241
5232
|
/*$$scope*/
|
|
5242
5233
|
s[21],
|
|
5243
|
-
t ?
|
|
5234
|
+
t ? Ht(
|
|
5244
5235
|
n,
|
|
5245
5236
|
/*$$scope*/
|
|
5246
5237
|
s[21],
|
|
5247
5238
|
u,
|
|
5248
5239
|
Ba
|
|
5249
|
-
) :
|
|
5240
|
+
) : Pt(
|
|
5250
5241
|
/*$$scope*/
|
|
5251
5242
|
s[21]
|
|
5252
5243
|
),
|
|
5253
|
-
|
|
5254
|
-
) : i.p && (!t || u[0] & /*$_*/
|
|
5244
|
+
$r
|
|
5245
|
+
) : i && i.p && (!t || u[0] & /*$_*/
|
|
5255
5246
|
256) && i.p(s, t ? u : [-1, -1]);
|
|
5256
5247
|
},
|
|
5257
5248
|
i(s) {
|
|
5258
|
-
t || (
|
|
5249
|
+
t || (Se(i, s), t = !0);
|
|
5259
5250
|
},
|
|
5260
5251
|
o(s) {
|
|
5261
5252
|
Ne(i, s), t = !1;
|
|
5262
5253
|
},
|
|
5263
5254
|
d(s) {
|
|
5264
|
-
i.d(s);
|
|
5255
|
+
i && i.d(s);
|
|
5265
5256
|
}
|
|
5266
5257
|
};
|
|
5267
5258
|
}
|
|
@@ -5272,15 +5263,15 @@ function Xa(e) {
|
|
|
5272
5263
|
), a;
|
|
5273
5264
|
return {
|
|
5274
5265
|
c() {
|
|
5275
|
-
t = te("div"), n =
|
|
5266
|
+
t = te("div"), n = or("svg"), r = or("path"), i = ht(), s = te("span"), a = Ke(u), j(r, "d", "M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"), j(r, "fill", "white"), j(n, "class", "CashierSessionExpirationButtonSpinner"), j(n, "xmlns", "http://www.w3.org/2000/svg"), j(n, "width", "15"), j(n, "height", "14"), j(n, "viewBox", "0 0 15 14"), j(n, "fill", "none"), j(s, "class", "CashierSessionExpirationButtonText");
|
|
5276
5267
|
},
|
|
5277
5268
|
m(c, l) {
|
|
5278
|
-
|
|
5269
|
+
we(c, t, l), J(t, n), J(n, r), J(t, i), J(t, s), J(s, a);
|
|
5279
5270
|
},
|
|
5280
5271
|
p(c, l) {
|
|
5281
5272
|
l[0] & /*$_*/
|
|
5282
5273
|
256 && u !== (u = /*$_*/
|
|
5283
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5274
|
+
c[8]("sessionExpirationLoadingButton") + "") && Zt(a, u);
|
|
5284
5275
|
},
|
|
5285
5276
|
i: de,
|
|
5286
5277
|
o: de,
|
|
@@ -5296,15 +5287,15 @@ function Ya(e) {
|
|
|
5296
5287
|
), r;
|
|
5297
5288
|
return {
|
|
5298
5289
|
c() {
|
|
5299
|
-
t = te("span"), r =
|
|
5290
|
+
t = te("span"), r = Ke(n), j(t, "class", "CashierSessionExpirationButtonText");
|
|
5300
5291
|
},
|
|
5301
5292
|
m(i, s) {
|
|
5302
|
-
|
|
5293
|
+
we(i, t, s), J(t, r);
|
|
5303
5294
|
},
|
|
5304
5295
|
p(i, s) {
|
|
5305
5296
|
s[0] & /*$_*/
|
|
5306
5297
|
256 && n !== (n = /*$_*/
|
|
5307
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5298
|
+
i[8]("sessionExpirationGeneralButton") + "") && Zt(r, n);
|
|
5308
5299
|
},
|
|
5309
5300
|
d(i) {
|
|
5310
5301
|
i && ge(t);
|
|
@@ -5318,20 +5309,20 @@ function Za(e) {
|
|
|
5318
5309
|
);
|
|
5319
5310
|
return {
|
|
5320
5311
|
c() {
|
|
5321
|
-
r && r.c(), t =
|
|
5312
|
+
r && r.c(), t = Jr();
|
|
5322
5313
|
},
|
|
5323
5314
|
m(i, s) {
|
|
5324
|
-
r && r.m(i, s),
|
|
5315
|
+
r && r.m(i, s), we(i, t, s), n = !0;
|
|
5325
5316
|
},
|
|
5326
5317
|
p(i, s) {
|
|
5327
5318
|
/*show*/
|
|
5328
5319
|
i[5] ? r ? (r.p(i, s), s[0] & /*show*/
|
|
5329
|
-
32 &&
|
|
5320
|
+
32 && Se(r, 1)) : (r = Gr(i), r.c(), Se(r, 1), r.m(t.parentNode, t)) : r && (Kr(), Ne(r, 1, 1, () => {
|
|
5330
5321
|
r = null;
|
|
5331
|
-
}),
|
|
5322
|
+
}), ei());
|
|
5332
5323
|
},
|
|
5333
5324
|
i(i) {
|
|
5334
|
-
n || (
|
|
5325
|
+
n || (Se(r), n = !0);
|
|
5335
5326
|
},
|
|
5336
5327
|
o(i) {
|
|
5337
5328
|
Ne(r), n = !1;
|
|
@@ -5344,54 +5335,54 @@ function Za(e) {
|
|
|
5344
5335
|
const qa = 90;
|
|
5345
5336
|
function Ja(e, t, n) {
|
|
5346
5337
|
let r, i;
|
|
5347
|
-
|
|
5338
|
+
sr(e, Br, (m) => n(20, r = m)), sr(e, la, (m) => n(8, i = m));
|
|
5348
5339
|
let { $$slots: s = {}, $$scope: u } = t;
|
|
5349
|
-
|
|
5350
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration:
|
|
5340
|
+
Dr.extend(Ha);
|
|
5341
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: f } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid: F } = t, { selectedpaymentmethodname: $ } = t, { mbsource: A = "" } = t, H, R = !1, U = !1, Y, V, Q, G, O;
|
|
5351
5342
|
var ne;
|
|
5352
5343
|
(function(m) {
|
|
5353
5344
|
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
5354
5345
|
})(ne || (ne = {}));
|
|
5355
5346
|
const he = (m) => {
|
|
5356
|
-
m.data.type === "StartSessionCountdown" && (
|
|
5357
|
-
},
|
|
5347
|
+
m.data.type === "StartSessionCountdown" && (G = m.data.paymentMethodName);
|
|
5348
|
+
}, T = (m) => {
|
|
5358
5349
|
try {
|
|
5359
5350
|
return JSON.parse(atob(m.split(".")[1]));
|
|
5360
5351
|
} catch {
|
|
5361
5352
|
return null;
|
|
5362
5353
|
}
|
|
5363
|
-
},
|
|
5354
|
+
}, E = () => {
|
|
5364
5355
|
window.postMessage(
|
|
5365
5356
|
{
|
|
5366
5357
|
type: "ErrorResponseCode",
|
|
5367
|
-
errorResponseCode:
|
|
5358
|
+
errorResponseCode: O
|
|
5368
5359
|
},
|
|
5369
5360
|
window.location.href
|
|
5370
5361
|
);
|
|
5371
5362
|
}, g = (m) => {
|
|
5372
|
-
n(5,
|
|
5373
|
-
const
|
|
5374
|
-
|
|
5363
|
+
n(5, R = !1);
|
|
5364
|
+
const k = T(m);
|
|
5365
|
+
k && (V = k?.exp, n(7, Y = V), Q && clearInterval(Q), Q = setInterval(
|
|
5375
5366
|
() => {
|
|
5376
5367
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5377
|
-
n(7, Y =
|
|
5368
|
+
n(7, Y = V - ee), Y <= qa && n(5, R = !0), ee >= V && (v(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5378
5369
|
},
|
|
5379
5370
|
1e3
|
|
5380
5371
|
));
|
|
5381
|
-
},
|
|
5382
|
-
n(7, Y = 0), n(5,
|
|
5372
|
+
}, v = () => {
|
|
5373
|
+
n(7, Y = 0), n(5, R = !1), clearInterval(Q);
|
|
5383
5374
|
}, h = () => {
|
|
5384
|
-
if (
|
|
5375
|
+
if (U)
|
|
5385
5376
|
return;
|
|
5386
|
-
const m = new URL(`${d}/v1/player/${
|
|
5387
|
-
n(6,
|
|
5377
|
+
const m = new URL(`${d}/v1/player/${F}/payment/GetPaymentMethod`), k = new Headers();
|
|
5378
|
+
n(6, U = !0), k.append("accept", "application/json"), k.append("Content-Type", "application/json"), k.append("X-Client-Request-Timestamp", Dr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5388
5379
|
const ee = {
|
|
5389
5380
|
method: "POST",
|
|
5390
5381
|
mode: "cors",
|
|
5391
|
-
headers:
|
|
5382
|
+
headers: k,
|
|
5392
5383
|
body: JSON.stringify({
|
|
5393
|
-
PaymentMethodName:
|
|
5394
|
-
Currency:
|
|
5384
|
+
PaymentMethodName: G || $,
|
|
5385
|
+
Currency: C,
|
|
5395
5386
|
XPaymentSessionToken: r
|
|
5396
5387
|
})
|
|
5397
5388
|
};
|
|
@@ -5403,102 +5394,102 @@ function Ja(e, t, n) {
|
|
|
5403
5394
|
error: K.error
|
|
5404
5395
|
},
|
|
5405
5396
|
window.location.href
|
|
5406
|
-
),
|
|
5397
|
+
), v();
|
|
5407
5398
|
return;
|
|
5408
5399
|
}
|
|
5409
5400
|
if (K.ResponseCode === ne.PlayerSessionIsNotValid || K.ResponseCode === ne.JwtTokenError) {
|
|
5410
|
-
|
|
5401
|
+
O = K.ResponseCode, v(), E();
|
|
5411
5402
|
return;
|
|
5412
5403
|
}
|
|
5413
5404
|
if (K.ResponseCode !== ne.Success) {
|
|
5414
|
-
|
|
5405
|
+
O = K.ResponseCode, v();
|
|
5415
5406
|
return;
|
|
5416
5407
|
}
|
|
5417
|
-
K.XPaymentSessionToken &&
|
|
5418
|
-
}).finally(() => n(6,
|
|
5419
|
-
},
|
|
5420
|
-
const
|
|
5421
|
-
m.target ===
|
|
5422
|
-
},
|
|
5423
|
-
fetch(
|
|
5424
|
-
Object.keys(
|
|
5425
|
-
Ar(ee,
|
|
5408
|
+
K.XPaymentSessionToken && Br.set(K.XPaymentSessionToken);
|
|
5409
|
+
}).finally(() => n(6, U = !1));
|
|
5410
|
+
}, x = (m) => {
|
|
5411
|
+
const k = m.currentTarget;
|
|
5412
|
+
m.target === k && h();
|
|
5413
|
+
}, L = () => {
|
|
5414
|
+
fetch(b).then((k) => k.json()).then((k) => {
|
|
5415
|
+
Object.keys(k).forEach((ee) => {
|
|
5416
|
+
Ar(ee, k[ee]);
|
|
5426
5417
|
});
|
|
5427
|
-
}).catch((
|
|
5428
|
-
console.log(
|
|
5418
|
+
}).catch((k) => {
|
|
5419
|
+
console.log(k);
|
|
5429
5420
|
});
|
|
5430
5421
|
};
|
|
5431
|
-
Object.keys(
|
|
5432
|
-
Ar(m,
|
|
5422
|
+
Object.keys(wr).forEach((m) => {
|
|
5423
|
+
Ar(m, wr[m]);
|
|
5433
5424
|
});
|
|
5434
|
-
const
|
|
5435
|
-
|
|
5425
|
+
const N = () => {
|
|
5426
|
+
ca(M);
|
|
5436
5427
|
};
|
|
5437
|
-
|
|
5428
|
+
is(() => (window.addEventListener("message", he, !1), () => {
|
|
5438
5429
|
window.removeEventListener("message", he);
|
|
5439
|
-
})),
|
|
5430
|
+
})), ss(() => {
|
|
5440
5431
|
clearInterval(Q);
|
|
5441
5432
|
});
|
|
5442
|
-
function
|
|
5443
|
-
|
|
5433
|
+
function z(m) {
|
|
5434
|
+
jt[m ? "unshift" : "push"](() => {
|
|
5444
5435
|
H = m, n(4, H);
|
|
5445
5436
|
});
|
|
5446
5437
|
}
|
|
5447
|
-
function
|
|
5438
|
+
function I() {
|
|
5448
5439
|
l = this.clientWidth, f = this.clientHeight, n(0, l), n(1, f);
|
|
5449
5440
|
}
|
|
5450
|
-
function
|
|
5451
|
-
|
|
5441
|
+
function q(m) {
|
|
5442
|
+
jt[m ? "unshift" : "push"](() => {
|
|
5452
5443
|
H = m, n(4, H);
|
|
5453
5444
|
});
|
|
5454
5445
|
}
|
|
5455
5446
|
return e.$$set = (m) => {
|
|
5456
|
-
"clientstyling" in m && n(11, a = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2,
|
|
5447
|
+
"clientstyling" in m && n(11, a = m.clientstyling), "clientstylingurl" in m && n(12, c = m.clientstylingurl), "width" in m && n(0, l = m.width), "height" in m && n(1, f = m.height), "duration" in m && n(2, _ = m.duration), "assetsurl" in m && n(3, y = m.assetsurl), "lang" in m && n(13, M = m.lang), "translationurl" in m && n(14, b = m.translationurl), "endpoint" in m && n(15, d = m.endpoint), "currency" in m && n(16, C = m.currency), "customerid" in m && n(17, F = m.customerid), "selectedpaymentmethodname" in m && n(18, $ = m.selectedpaymentmethodname), "mbsource" in m && n(19, A = m.mbsource), "$$scope" in m && n(21, u = m.$$scope);
|
|
5457
5448
|
}, e.$$.update = () => {
|
|
5458
5449
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5459
5450
|
1048576 && g(r), e.$$.dirty[0] & /*lang*/
|
|
5460
|
-
8192 &&
|
|
5461
|
-
2064 && a && H &&
|
|
5451
|
+
8192 && M && N(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5452
|
+
2064 && a && H && Ia(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5462
5453
|
4112 && c && H && Pa(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5463
|
-
524304 && A && H &&
|
|
5464
|
-
16384 &&
|
|
5454
|
+
524304 && A && H && Ra(H, `${A}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5455
|
+
16384 && b && L();
|
|
5465
5456
|
}, [
|
|
5466
5457
|
l,
|
|
5467
5458
|
f,
|
|
5468
|
-
|
|
5459
|
+
_,
|
|
5469
5460
|
y,
|
|
5470
5461
|
H,
|
|
5471
|
-
|
|
5472
|
-
|
|
5462
|
+
R,
|
|
5463
|
+
U,
|
|
5473
5464
|
Y,
|
|
5474
5465
|
i,
|
|
5475
5466
|
h,
|
|
5476
|
-
|
|
5467
|
+
x,
|
|
5477
5468
|
a,
|
|
5478
5469
|
c,
|
|
5479
|
-
O,
|
|
5480
|
-
E,
|
|
5481
|
-
d,
|
|
5482
5470
|
M,
|
|
5471
|
+
b,
|
|
5472
|
+
d,
|
|
5473
|
+
C,
|
|
5474
|
+
F,
|
|
5483
5475
|
$,
|
|
5484
|
-
U,
|
|
5485
5476
|
A,
|
|
5486
5477
|
r,
|
|
5487
5478
|
u,
|
|
5488
5479
|
s,
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5480
|
+
z,
|
|
5481
|
+
I,
|
|
5482
|
+
q
|
|
5492
5483
|
];
|
|
5493
5484
|
}
|
|
5494
|
-
class Qa extends
|
|
5485
|
+
class Qa extends _s {
|
|
5495
5486
|
constructor(t) {
|
|
5496
|
-
super(),
|
|
5487
|
+
super(), ps(
|
|
5497
5488
|
this,
|
|
5498
5489
|
t,
|
|
5499
5490
|
Ja,
|
|
5500
5491
|
Za,
|
|
5501
|
-
|
|
5492
|
+
Wr,
|
|
5502
5493
|
{
|
|
5503
5494
|
clientstyling: 11,
|
|
5504
5495
|
clientstylingurl: 12,
|
|
@@ -5597,7 +5588,7 @@ class Qa extends gs {
|
|
|
5597
5588
|
this.$$set({ mbsource: t }), le();
|
|
5598
5589
|
}
|
|
5599
5590
|
}
|
|
5600
|
-
|
|
5591
|
+
gs(Qa, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5601
5592
|
export {
|
|
5602
5593
|
Qa as C
|
|
5603
5594
|
};
|