@everymatrix/cashier-session-expiration-modal 1.76.13 → 1.76.14
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-BhJezPcL.cjs +22 -0
- package/components/{CashierSessionExpirationModal-Wl8GAMRI.js → CashierSessionExpirationModal-Cl9XbQDI.js} +920 -915
- package/components/{CashierSessionExpirationModal-Cfjtll5A.js → CashierSessionExpirationModal-D5D-NeKW.js} +1213 -1208
- 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-DyPySpmH.cjs +0 -9
|
@@ -15,18 +15,18 @@ function zr(e) {
|
|
|
15
15
|
function rr() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function He(e) {
|
|
19
19
|
e.forEach(zr);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Vt(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
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
|
|
27
|
+
let At;
|
|
28
28
|
function ir(e, t) {
|
|
29
|
-
return e === t ? !0 : (
|
|
29
|
+
return e === t ? !0 : (At || (At = document.createElement("a")), At.href = t, e === At.href);
|
|
30
30
|
}
|
|
31
31
|
function zi(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
@@ -40,10 +40,10 @@ function Vr(e, ...t) {
|
|
|
40
40
|
const n = e.subscribe(...t);
|
|
41
41
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function or(e, t, n) {
|
|
44
44
|
e.$$.on_destroy.push(Vr(t, n));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Lt(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
48
|
const i = Xr(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
@@ -52,28 +52,28 @@ function Nt(e, t, n, r) {
|
|
|
52
52
|
function Xr(e, t, n, r) {
|
|
53
53
|
return e[1] && r ? ji(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Nt(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)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const
|
|
61
|
+
const o = [], u = Math.max(t.dirty.length, i.length);
|
|
62
62
|
for (let a = 0; a < u; a += 1)
|
|
63
|
-
|
|
64
|
-
return
|
|
63
|
+
o[a] = t.dirty[a] | i[a];
|
|
64
|
+
return o;
|
|
65
65
|
}
|
|
66
66
|
return t.dirty | i;
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Ht(e, t, n, r, i, o) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const u = Xr(t, n, r,
|
|
72
|
+
const u = Xr(t, n, r, o);
|
|
73
73
|
e.p(u, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function It(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++)
|
|
@@ -83,21 +83,21 @@ function Pt(e) {
|
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
85
|
const Yr = typeof window < "u";
|
|
86
|
-
let Wi = Yr ? () => window.performance.now() : () => Date.now(),
|
|
87
|
-
const
|
|
86
|
+
let Wi = Yr ? () => window.performance.now() : () => Date.now(), Cn = Yr ? (e) => requestAnimationFrame(e) : de;
|
|
87
|
+
const We = /* @__PURE__ */ new Set();
|
|
88
88
|
function Zr(e) {
|
|
89
|
-
|
|
90
|
-
t.c(e) || (
|
|
91
|
-
}),
|
|
89
|
+
We.forEach((t) => {
|
|
90
|
+
t.c(e) || (We.delete(t), t.f());
|
|
91
|
+
}), We.size !== 0 && Cn(Zr);
|
|
92
92
|
}
|
|
93
93
|
function Vi(e) {
|
|
94
94
|
let t;
|
|
95
|
-
return
|
|
95
|
+
return We.size === 0 && Cn(Zr), {
|
|
96
96
|
promise: new Promise((n) => {
|
|
97
|
-
|
|
97
|
+
We.add(t = { c: e, f: n });
|
|
98
98
|
}),
|
|
99
99
|
abort() {
|
|
100
|
-
|
|
100
|
+
We.delete(t);
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -105,13 +105,13 @@ function J(e, t) {
|
|
|
105
105
|
e.appendChild(t);
|
|
106
106
|
}
|
|
107
107
|
function Xi(e, t, n) {
|
|
108
|
-
const r =
|
|
108
|
+
const r = Ln(e);
|
|
109
109
|
if (!r.getElementById(t)) {
|
|
110
110
|
const i = te("style");
|
|
111
111
|
i.id = t, i.textContent = n, qr(r, i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ln(e) {
|
|
115
115
|
if (!e)
|
|
116
116
|
return document;
|
|
117
117
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -123,7 +123,7 @@ function Hn(e) {
|
|
|
123
123
|
}
|
|
124
124
|
function Yi(e) {
|
|
125
125
|
const t = te("style");
|
|
126
|
-
return t.textContent = "/* empty */", qr(
|
|
126
|
+
return t.textContent = "/* empty */", qr(Ln(e), t), t.sheet;
|
|
127
127
|
}
|
|
128
128
|
function qr(e, t) {
|
|
129
129
|
return J(
|
|
@@ -132,7 +132,7 @@ function qr(e, t) {
|
|
|
132
132
|
t
|
|
133
133
|
), t.sheet;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ae(e, t, n) {
|
|
136
136
|
e.insertBefore(t, n || null);
|
|
137
137
|
}
|
|
138
138
|
function ge(e) {
|
|
@@ -141,42 +141,42 @@ function ge(e) {
|
|
|
141
141
|
function te(e) {
|
|
142
142
|
return document.createElement(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function sr(e) {
|
|
145
145
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Qe(e) {
|
|
148
148
|
return document.createTextNode(e);
|
|
149
149
|
}
|
|
150
150
|
function ht() {
|
|
151
|
-
return
|
|
151
|
+
return Qe(" ");
|
|
152
152
|
}
|
|
153
153
|
function Jr() {
|
|
154
|
-
return
|
|
154
|
+
return Qe("");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Ut(e, t, n, r) {
|
|
157
157
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function z(e, t, n) {
|
|
160
160
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
161
161
|
}
|
|
162
162
|
function Zi(e) {
|
|
163
163
|
return Array.from(e.childNodes);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Xt(e, t) {
|
|
166
166
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
167
167
|
t);
|
|
168
168
|
}
|
|
169
|
-
let
|
|
169
|
+
let wt;
|
|
170
170
|
function qi() {
|
|
171
|
-
if (
|
|
172
|
-
|
|
171
|
+
if (wt === void 0) {
|
|
172
|
+
wt = !1;
|
|
173
173
|
try {
|
|
174
174
|
typeof window < "u" && window.parent && window.parent.document;
|
|
175
175
|
} catch {
|
|
176
|
-
|
|
176
|
+
wt = !0;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
return
|
|
179
|
+
return wt;
|
|
180
180
|
}
|
|
181
181
|
function Ji(e, t) {
|
|
182
182
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
@@ -186,8 +186,8 @@ function Ji(e, t) {
|
|
|
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
188
|
const i = qi();
|
|
189
|
-
let
|
|
190
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",
|
|
189
|
+
let o;
|
|
190
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Ut(
|
|
191
191
|
window,
|
|
192
192
|
"message",
|
|
193
193
|
/** @param {MessageEvent} event */
|
|
@@ -195,9 +195,9 @@ function Ji(e, t) {
|
|
|
195
195
|
u.source === r.contentWindow && t();
|
|
196
196
|
}
|
|
197
197
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
198
|
-
|
|
198
|
+
o = Ut(r.contentWindow, "resize", t), t();
|
|
199
199
|
}), J(e, r), () => {
|
|
200
|
-
(i ||
|
|
200
|
+
(i || o && r.contentWindow) && o(), ge(r);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
function Qi(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
@@ -212,151 +212,151 @@ function Ki(e) {
|
|
|
212
212
|
}
|
|
213
213
|
), t;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
let
|
|
217
|
-
function
|
|
215
|
+
const kt = /* @__PURE__ */ new Map();
|
|
216
|
+
let Ft = 0;
|
|
217
|
+
function eo(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
|
|
223
|
+
function to(e, t) {
|
|
224
224
|
const n = { stylesheet: Yi(t), rules: {} };
|
|
225
|
-
return
|
|
225
|
+
return kt.set(e, n), n;
|
|
226
226
|
}
|
|
227
|
-
function ar(e, t, n, r, i,
|
|
227
|
+
function ar(e, t, n, r, i, o, u, a = 0) {
|
|
228
228
|
const c = 16.666 / r;
|
|
229
229
|
let l = `{
|
|
230
230
|
`;
|
|
231
231
|
for (let C = 0; C <= 1; C += c) {
|
|
232
|
-
const
|
|
233
|
-
l += C * 100 + `%{${u(
|
|
232
|
+
const G = t + (n - t) * o(C);
|
|
233
|
+
l += C * 100 + `%{${u(G, 1 - G)}}
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
}`, _ = `__svelte_${
|
|
238
|
-
b[_] || (b[_] = !0, M.insertRule(`@keyframes ${_} ${
|
|
236
|
+
const h = l + `100% {${u(n, 1 - n)}}
|
|
237
|
+
}`, _ = `__svelte_${eo(h)}_${a}`, y = Ln(e), { stylesheet: M, rules: b } = kt.get(y) || to(y, e);
|
|
238
|
+
b[_] || (b[_] = !0, M.insertRule(`@keyframes ${_} ${h}`, M.cssRules.length));
|
|
239
239
|
const d = e.style.animation || "";
|
|
240
|
-
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`,
|
|
240
|
+
return e.style.animation = `${d ? `${d}, ` : ""}${_} ${r}ms linear ${i}ms 1 both`, Ft += 1, _;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function no(e, t) {
|
|
243
243
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
244
|
-
t ? (
|
|
244
|
+
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
245
245
|
// remove all Svelte animations
|
|
246
246
|
), i = n.length - r.length;
|
|
247
|
-
i && (e.style.animation = r.join(", "),
|
|
247
|
+
i && (e.style.animation = r.join(", "), Ft -= i, Ft || ro());
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
function ro() {
|
|
250
|
+
Cn(() => {
|
|
251
|
+
Ft || (kt.forEach((e) => {
|
|
252
252
|
const { ownerNode: t } = e.stylesheet;
|
|
253
253
|
t && ge(t);
|
|
254
|
-
}),
|
|
254
|
+
}), kt.clear());
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
let
|
|
258
|
-
function
|
|
259
|
-
|
|
257
|
+
let dt;
|
|
258
|
+
function mt(e) {
|
|
259
|
+
dt = e;
|
|
260
260
|
}
|
|
261
261
|
function Qr() {
|
|
262
|
-
if (!
|
|
262
|
+
if (!dt)
|
|
263
263
|
throw new Error("Function called outside component initialization");
|
|
264
|
-
return
|
|
264
|
+
return dt;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function io(e) {
|
|
267
267
|
Qr().$$.on_mount.push(e);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function oo(e) {
|
|
270
270
|
Qr().$$.on_destroy.push(e);
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
let
|
|
274
|
-
const ur = [],
|
|
275
|
-
let
|
|
276
|
-
function
|
|
277
|
-
|
|
272
|
+
const ze = [], Gt = [];
|
|
273
|
+
let Ve = [];
|
|
274
|
+
const ur = [], so = /* @__PURE__ */ Promise.resolve();
|
|
275
|
+
let bn = !1;
|
|
276
|
+
function ao() {
|
|
277
|
+
bn || (bn = !0, so.then(le));
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
279
|
+
function Xe(e) {
|
|
280
|
+
Ve.push(e);
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
let
|
|
282
|
+
const on = /* @__PURE__ */ new Set();
|
|
283
|
+
let Ge = 0;
|
|
284
284
|
function le() {
|
|
285
|
-
if (
|
|
285
|
+
if (Ge !== 0)
|
|
286
286
|
return;
|
|
287
|
-
const e =
|
|
287
|
+
const e = dt;
|
|
288
288
|
do {
|
|
289
289
|
try {
|
|
290
|
-
for (;
|
|
291
|
-
const t =
|
|
292
|
-
|
|
290
|
+
for (; Ge < ze.length; ) {
|
|
291
|
+
const t = ze[Ge];
|
|
292
|
+
Ge++, mt(t), uo(t.$$);
|
|
293
293
|
}
|
|
294
294
|
} catch (t) {
|
|
295
|
-
throw
|
|
295
|
+
throw ze.length = 0, Ge = 0, t;
|
|
296
296
|
}
|
|
297
|
-
for (
|
|
298
|
-
|
|
299
|
-
for (let t = 0; t <
|
|
300
|
-
const n =
|
|
301
|
-
|
|
297
|
+
for (mt(null), ze.length = 0, Ge = 0; Gt.length; )
|
|
298
|
+
Gt.pop()();
|
|
299
|
+
for (let t = 0; t < Ve.length; t += 1) {
|
|
300
|
+
const n = Ve[t];
|
|
301
|
+
on.has(n) || (on.add(n), n());
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
} while (
|
|
303
|
+
Ve.length = 0;
|
|
304
|
+
} while (ze.length);
|
|
305
305
|
for (; ur.length; )
|
|
306
306
|
ur.pop()();
|
|
307
|
-
|
|
307
|
+
bn = !1, on.clear(), mt(e);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function uo(e) {
|
|
310
310
|
if (e.fragment !== null) {
|
|
311
|
-
e.update(),
|
|
311
|
+
e.update(), He(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(Xe);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function lo(e) {
|
|
317
317
|
const t = [], n = [];
|
|
318
|
-
|
|
318
|
+
Ve.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ve = t;
|
|
319
319
|
}
|
|
320
|
-
let
|
|
321
|
-
function
|
|
322
|
-
return
|
|
323
|
-
|
|
324
|
-
})),
|
|
320
|
+
let it;
|
|
321
|
+
function co() {
|
|
322
|
+
return it || (it = Promise.resolve(), it.then(() => {
|
|
323
|
+
it = null;
|
|
324
|
+
})), it;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function sn(e, t, n) {
|
|
327
327
|
e.dispatchEvent(Qi(`${t ? "intro" : "outro"}${n}`));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
let
|
|
329
|
+
const Pt = /* @__PURE__ */ new Set();
|
|
330
|
+
let Me;
|
|
331
331
|
function Kr() {
|
|
332
|
-
|
|
332
|
+
Me = {
|
|
333
333
|
r: 0,
|
|
334
334
|
c: [],
|
|
335
|
-
p:
|
|
335
|
+
p: Me
|
|
336
336
|
// parent group
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
function ei() {
|
|
340
|
-
|
|
340
|
+
Me.r || He(Me.c), Me = Me.p;
|
|
341
341
|
}
|
|
342
342
|
function Se(e, t) {
|
|
343
|
-
e && e.i && (
|
|
343
|
+
e && e.i && (Pt.delete(e), e.i(t));
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Le(e, t, n, r) {
|
|
346
346
|
if (e && e.o) {
|
|
347
|
-
if (
|
|
347
|
+
if (Pt.has(e))
|
|
348
348
|
return;
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
Pt.add(e), Me.c.push(() => {
|
|
350
|
+
Pt.delete(e), r && (n && e.d(1), r());
|
|
351
351
|
}), e.o(t);
|
|
352
352
|
} else
|
|
353
353
|
r && r();
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const ho = { duration: 0 };
|
|
356
356
|
function lr(e, t, n, r) {
|
|
357
|
-
let
|
|
357
|
+
let o = t(e, n, { direction: "both" }), u = r ? 0 : 1, a = null, c = null, l = null, h;
|
|
358
358
|
function _() {
|
|
359
|
-
l &&
|
|
359
|
+
l && no(e, l);
|
|
360
360
|
}
|
|
361
361
|
function y(b, d) {
|
|
362
362
|
const C = (
|
|
@@ -377,29 +377,29 @@ function lr(e, t, n, r) {
|
|
|
377
377
|
const {
|
|
378
378
|
delay: d = 0,
|
|
379
379
|
duration: C = 300,
|
|
380
|
-
easing:
|
|
380
|
+
easing: G = jr,
|
|
381
381
|
tick: $ = de,
|
|
382
382
|
css: A
|
|
383
|
-
} =
|
|
383
|
+
} = o || ho, H = {
|
|
384
384
|
start: Wi() + d,
|
|
385
385
|
b
|
|
386
386
|
};
|
|
387
|
-
b || (H.group =
|
|
388
|
-
e.inert, e.inert = !0)), a || c ? c = H : (A && (_(), l = ar(e, u, b, C, d,
|
|
389
|
-
if (c && R > c.start && (a = y(c, C), c = null,
|
|
387
|
+
b || (H.group = Me, Me.r += 1), "inert" in e && (b ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
388
|
+
e.inert, e.inert = !0)), a || c ? c = H : (A && (_(), l = ar(e, u, b, C, d, G, A)), b && $(0, 1), a = y(H, C), Xe(() => sn(e, b, "start")), Vi((R) => {
|
|
389
|
+
if (c && R > c.start && (a = y(c, C), c = null, sn(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
|
-
|
|
396
|
-
|
|
395
|
+
G,
|
|
396
|
+
o.css
|
|
397
397
|
))), a) {
|
|
398
398
|
if (R >= a.end)
|
|
399
|
-
$(u = a.b, 1 - u),
|
|
399
|
+
$(u = a.b, 1 - u), sn(e, a.b, "end"), c || (a.b ? _() : --a.group.r || He(a.group.c)), a = null;
|
|
400
400
|
else if (R >= a.start) {
|
|
401
|
-
const
|
|
402
|
-
u = a.a + a.d *
|
|
401
|
+
const k = R - a.start;
|
|
402
|
+
u = a.a + a.d * G(k / a.duration), $(u, 1 - u);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
return !!(a || c);
|
|
@@ -407,8 +407,8 @@ function lr(e, t, n, r) {
|
|
|
407
407
|
}
|
|
408
408
|
return {
|
|
409
409
|
run(b) {
|
|
410
|
-
|
|
411
|
-
|
|
410
|
+
Vt(o) ? co().then(() => {
|
|
411
|
+
o = o({ direction: b ? "in" : "out" }), M(b);
|
|
412
412
|
}) : M(b);
|
|
413
413
|
},
|
|
414
414
|
end() {
|
|
@@ -416,28 +416,28 @@ function lr(e, t, n, r) {
|
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function fo(e, t, n) {
|
|
420
420
|
const { fragment: r, after_update: i } = e.$$;
|
|
421
|
-
r && r.m(t, n),
|
|
422
|
-
const
|
|
423
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
424
|
-
}), i.forEach(
|
|
421
|
+
r && r.m(t, n), Xe(() => {
|
|
422
|
+
const o = e.$$.on_mount.map(zr).filter(Vt);
|
|
423
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : He(o), e.$$.on_mount = [];
|
|
424
|
+
}), i.forEach(Xe);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function mo(e, t) {
|
|
427
427
|
const n = e.$$;
|
|
428
|
-
n.fragment !== null && (
|
|
428
|
+
n.fragment !== null && (lo(n.after_update), He(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 po(e, t) {
|
|
431
|
+
e.$$.dirty[0] === -1 && (ze.push(e), ao(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
const c =
|
|
435
|
-
|
|
433
|
+
function go(e, t, n, r, i, o, u = null, a = [-1]) {
|
|
434
|
+
const c = dt;
|
|
435
|
+
mt(e);
|
|
436
436
|
const l = e.$$ = {
|
|
437
437
|
fragment: null,
|
|
438
438
|
ctx: [],
|
|
439
439
|
// state
|
|
440
|
-
props:
|
|
440
|
+
props: o,
|
|
441
441
|
update: de,
|
|
442
442
|
not_equal: i,
|
|
443
443
|
bound: rr(),
|
|
@@ -455,19 +455,19 @@ function ps(e, t, n, r, i, s, u = null, a = [-1]) {
|
|
|
455
455
|
root: t.target || c.$$.root
|
|
456
456
|
};
|
|
457
457
|
u && u(l.root);
|
|
458
|
-
let
|
|
458
|
+
let h = !1;
|
|
459
459
|
if (l.ctx = n ? n(e, t.props || {}, (_, y, ...M) => {
|
|
460
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),
|
|
462
|
-
}) : [], l.update(),
|
|
461
|
+
return l.ctx && i(l.ctx[_], l.ctx[_] = b) && (!l.skip_bound && l.bound[_] && l.bound[_](b), h && po(e, _)), y;
|
|
462
|
+
}) : [], l.update(), h = !0, He(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
463
463
|
if (t.hydrate) {
|
|
464
464
|
const _ = Zi(t.target);
|
|
465
465
|
l.fragment && l.fragment.l(_), _.forEach(ge);
|
|
466
466
|
} else
|
|
467
467
|
l.fragment && l.fragment.c();
|
|
468
|
-
t.intro && Se(e.$$.fragment),
|
|
468
|
+
t.intro && Se(e.$$.fragment), fo(e, t.target, t.anchor), le();
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
mt(c);
|
|
471
471
|
}
|
|
472
472
|
let ti;
|
|
473
473
|
typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
@@ -509,20 +509,20 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
509
509
|
if (this.$$cn = !0, !this.$$c) {
|
|
510
510
|
let e = function(i) {
|
|
511
511
|
return () => {
|
|
512
|
-
let
|
|
512
|
+
let o;
|
|
513
513
|
return {
|
|
514
514
|
c: function() {
|
|
515
|
-
|
|
515
|
+
o = te("slot"), i !== "default" && z(o, "name", i);
|
|
516
516
|
},
|
|
517
517
|
/**
|
|
518
518
|
* @param {HTMLElement} target
|
|
519
519
|
* @param {HTMLElement} [anchor]
|
|
520
520
|
*/
|
|
521
521
|
m: function(c, l) {
|
|
522
|
-
|
|
522
|
+
Ae(c, o, l);
|
|
523
523
|
},
|
|
524
524
|
d: function(c) {
|
|
525
|
-
c && ge(
|
|
525
|
+
c && ge(o);
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
528
|
};
|
|
@@ -533,8 +533,8 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
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
|
-
const
|
|
537
|
-
|
|
536
|
+
const o = this.$$g_p(i.name);
|
|
537
|
+
o in this.$$d || (this.$$d[o] = Rt(o, 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,21 +552,21 @@ typeof HTMLElement == "function" && (ti = 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
|
|
555
|
+
const o = Rt(
|
|
556
556
|
i,
|
|
557
557
|
this.$$d[i],
|
|
558
558
|
this.$$p_d,
|
|
559
559
|
"toAttribute"
|
|
560
560
|
);
|
|
561
|
-
|
|
561
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
562
562
|
}
|
|
563
563
|
this.$$r = !1;
|
|
564
564
|
};
|
|
565
565
|
this.$$c.$$.after_update.push(r), r();
|
|
566
566
|
for (const i in this.$$l)
|
|
567
|
-
for (const
|
|
568
|
-
const u = this.$$c.$on(i,
|
|
569
|
-
this.$$l_u.set(
|
|
567
|
+
for (const o of this.$$l[i]) {
|
|
568
|
+
const u = this.$$c.$on(i, o);
|
|
569
|
+
this.$$l_u.set(o, u);
|
|
570
570
|
}
|
|
571
571
|
this.$$l = {};
|
|
572
572
|
}
|
|
@@ -574,7 +574,7 @@ typeof HTMLElement == "function" && (ti = 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] = Rt(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" && (ti = class extends HTMLElement {
|
|
|
587
587
|
) || e;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
function
|
|
590
|
+
function Rt(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,7 +616,7 @@ function Dt(e, t, n, r) {
|
|
|
616
616
|
return t;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function _o(e, t, n, r, i, o) {
|
|
620
620
|
let u = class extends ti {
|
|
621
621
|
constructor() {
|
|
622
622
|
super(e, n, i), this.$$p_d = t;
|
|
@@ -633,7 +633,7 @@ function gs(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 = Rt(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 gs(e, t, n, r, i, s) {
|
|
|
645
645
|
}), e.element = /** @type {any} */
|
|
646
646
|
u, u;
|
|
647
647
|
}
|
|
648
|
-
class
|
|
648
|
+
class bo {
|
|
649
649
|
/**
|
|
650
650
|
* ### PRIVATE API
|
|
651
651
|
*
|
|
@@ -664,7 +664,7 @@ class _s {
|
|
|
664
664
|
$$set = void 0;
|
|
665
665
|
/** @returns {void} */
|
|
666
666
|
$destroy() {
|
|
667
|
-
|
|
667
|
+
mo(this, 1), this.$destroy = de;
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
670
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -673,7 +673,7 @@ class _s {
|
|
|
673
673
|
* @returns {() => void}
|
|
674
674
|
*/
|
|
675
675
|
$on(t, n) {
|
|
676
|
-
if (!
|
|
676
|
+
if (!Vt(n))
|
|
677
677
|
return de;
|
|
678
678
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
679
679
|
return r.push(n), () => {
|
|
@@ -689,122 +689,122 @@ class _s {
|
|
|
689
689
|
this.$$set && !zi(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
|
-
const
|
|
693
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
692
|
+
const Eo = "4";
|
|
693
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Eo);
|
|
694
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,
|
|
698
698
|
duration: n,
|
|
699
699
|
easing: r,
|
|
700
|
-
css: (
|
|
700
|
+
css: (o) => `opacity: ${o * i}`
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
const
|
|
704
|
-
function
|
|
703
|
+
const je = [];
|
|
704
|
+
function yo(e, t) {
|
|
705
705
|
return {
|
|
706
|
-
subscribe:
|
|
706
|
+
subscribe: _t(e, t).subscribe
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function _t(e, t = de) {
|
|
710
710
|
let n;
|
|
711
711
|
const r = /* @__PURE__ */ new Set();
|
|
712
712
|
function i(a) {
|
|
713
713
|
if (Wr(e, a) && (e = a, n)) {
|
|
714
|
-
const c = !
|
|
714
|
+
const c = !je.length;
|
|
715
715
|
for (const l of r)
|
|
716
|
-
l[1](),
|
|
716
|
+
l[1](), je.push(l, e);
|
|
717
717
|
if (c) {
|
|
718
|
-
for (let l = 0; l <
|
|
719
|
-
|
|
720
|
-
|
|
718
|
+
for (let l = 0; l < je.length; l += 2)
|
|
719
|
+
je[l][0](je[l + 1]);
|
|
720
|
+
je.length = 0;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function o(a) {
|
|
725
725
|
i(a(e));
|
|
726
726
|
}
|
|
727
727
|
function u(a, c = de) {
|
|
728
728
|
const l = [a, c];
|
|
729
|
-
return r.add(l), r.size === 1 && (n = t(i,
|
|
729
|
+
return r.add(l), r.size === 1 && (n = t(i, o) || de), a(e), () => {
|
|
730
730
|
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
731
731
|
};
|
|
732
732
|
}
|
|
733
|
-
return { set: i, update:
|
|
733
|
+
return { set: i, update: o, subscribe: u };
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Ke(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");
|
|
739
|
-
const
|
|
740
|
-
return
|
|
739
|
+
const o = t.length < 2;
|
|
740
|
+
return yo(n, (u, a) => {
|
|
741
741
|
let c = !1;
|
|
742
742
|
const l = [];
|
|
743
|
-
let
|
|
743
|
+
let h = 0, _ = de;
|
|
744
744
|
const y = () => {
|
|
745
|
-
if (
|
|
745
|
+
if (h)
|
|
746
746
|
return;
|
|
747
747
|
_();
|
|
748
748
|
const b = t(r ? l[0] : l, u, a);
|
|
749
|
-
|
|
749
|
+
o ? u(b) : _ = Vt(b) ? b : de;
|
|
750
750
|
}, M = i.map(
|
|
751
751
|
(b, d) => Vr(
|
|
752
752
|
b,
|
|
753
753
|
(C) => {
|
|
754
|
-
l[d] = C,
|
|
754
|
+
l[d] = C, h &= ~(1 << d), c && y();
|
|
755
755
|
},
|
|
756
756
|
() => {
|
|
757
|
-
|
|
757
|
+
h |= 1 << d;
|
|
758
758
|
}
|
|
759
759
|
)
|
|
760
760
|
);
|
|
761
761
|
return c = !0, y(), function() {
|
|
762
|
-
|
|
762
|
+
He(M), _(), c = !1;
|
|
763
763
|
};
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
var ni = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
767
|
-
function
|
|
767
|
+
function Nn(e) {
|
|
768
768
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
769
769
|
}
|
|
770
|
-
var
|
|
771
|
-
return
|
|
770
|
+
var xo = function(t) {
|
|
771
|
+
return To(t) && !vo(t);
|
|
772
772
|
};
|
|
773
|
-
function
|
|
773
|
+
function To(e) {
|
|
774
774
|
return !!e && typeof e == "object";
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function vo(e) {
|
|
777
777
|
var t = Object.prototype.toString.call(e);
|
|
778
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
778
|
+
return t === "[object RegExp]" || t === "[object Date]" || wo(e);
|
|
779
779
|
}
|
|
780
|
-
var
|
|
781
|
-
function
|
|
782
|
-
return e.$$typeof ===
|
|
780
|
+
var So = typeof Symbol == "function" && Symbol.for, Ao = So ? Symbol.for("react.element") : 60103;
|
|
781
|
+
function wo(e) {
|
|
782
|
+
return e.$$typeof === Ao;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Oo(e) {
|
|
785
785
|
return Array.isArray(e) ? [] : {};
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
787
|
+
function pt(e, t) {
|
|
788
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ye(Oo(e), e, t) : e;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Mo(e, t, n) {
|
|
791
791
|
return e.concat(t).map(function(r) {
|
|
792
|
-
return
|
|
792
|
+
return pt(r, n);
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function Co(e, t) {
|
|
796
796
|
if (!t.customMerge)
|
|
797
|
-
return
|
|
797
|
+
return Ye;
|
|
798
798
|
var n = t.customMerge(e);
|
|
799
|
-
return typeof n == "function" ? n :
|
|
799
|
+
return typeof n == "function" ? n : Ye;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function Lo(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 hr(e) {
|
|
807
|
+
return Object.keys(e).concat(Lo(e));
|
|
808
808
|
}
|
|
809
809
|
function ri(e, t) {
|
|
810
810
|
try {
|
|
@@ -813,59 +813,73 @@ function ri(e, t) {
|
|
|
813
813
|
return !1;
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function No(e, t) {
|
|
817
817
|
return ri(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Ho(e, t, n) {
|
|
820
820
|
var r = {};
|
|
821
|
-
return n.isMergeableObject(e) &&
|
|
822
|
-
r[i] =
|
|
823
|
-
}),
|
|
824
|
-
|
|
821
|
+
return n.isMergeableObject(e) && hr(e).forEach(function(i) {
|
|
822
|
+
r[i] = pt(e[i], n);
|
|
823
|
+
}), hr(t).forEach(function(i) {
|
|
824
|
+
No(e, i) || (ri(e, i) && n.isMergeableObject(t[i]) ? r[i] = Co(i, n)(e[i], t[i], n) : r[i] = pt(t[i], n));
|
|
825
825
|
}), r;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
829
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
830
|
-
return
|
|
827
|
+
function Ye(e, t, n) {
|
|
828
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Mo, n.isMergeableObject = n.isMergeableObject || xo, n.cloneUnlessOtherwiseSpecified = pt;
|
|
829
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
830
|
+
return o ? r ? n.arrayMerge(e, t, n) : Ho(e, t, n) : pt(t, n);
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
Ye.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 Ye(r, i, n);
|
|
837
837
|
}, {});
|
|
838
838
|
};
|
|
839
|
-
var
|
|
840
|
-
const
|
|
841
|
-
|
|
842
|
-
|
|
839
|
+
var Io = Ye, Po = Io;
|
|
840
|
+
const Ro = /* @__PURE__ */ Nn(Po);
|
|
841
|
+
/*! *****************************************************************************
|
|
842
|
+
Copyright (c) Microsoft Corporation.
|
|
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 En = function(e, t) {
|
|
856
|
+
return En = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
843
857
|
n.__proto__ = r;
|
|
844
858
|
} || function(n, r) {
|
|
845
859
|
for (var i in r)
|
|
846
860
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
847
|
-
},
|
|
861
|
+
}, En(e, t);
|
|
848
862
|
};
|
|
849
|
-
function
|
|
863
|
+
function Yt(e, t) {
|
|
850
864
|
if (typeof t != "function" && t !== null)
|
|
851
865
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
852
|
-
|
|
866
|
+
En(e, t);
|
|
853
867
|
function n() {
|
|
854
868
|
this.constructor = e;
|
|
855
869
|
}
|
|
856
870
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
857
871
|
}
|
|
858
|
-
var
|
|
859
|
-
return
|
|
872
|
+
var U = function() {
|
|
873
|
+
return U = Object.assign || function(t) {
|
|
860
874
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
861
875
|
n = arguments[r];
|
|
862
|
-
for (var
|
|
863
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
876
|
+
for (var o in n)
|
|
877
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
864
878
|
}
|
|
865
879
|
return t;
|
|
866
|
-
},
|
|
880
|
+
}, U.apply(this, arguments);
|
|
867
881
|
};
|
|
868
|
-
function
|
|
882
|
+
function Do(e, t) {
|
|
869
883
|
var n = {};
|
|
870
884
|
for (var r in e)
|
|
871
885
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -874,119 +888,111 @@ function Rs(e, t) {
|
|
|
874
888
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
875
889
|
return n;
|
|
876
890
|
}
|
|
877
|
-
function
|
|
878
|
-
if (
|
|
879
|
-
for (var r = 0, i = t.length,
|
|
880
|
-
(
|
|
881
|
-
return e.concat(
|
|
891
|
+
function an(e, t, n) {
|
|
892
|
+
if (arguments.length === 2)
|
|
893
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
894
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
895
|
+
return e.concat(o || t);
|
|
882
896
|
}
|
|
883
|
-
function
|
|
884
|
-
var n = t && t.cache ? t.cache :
|
|
897
|
+
function un(e, t) {
|
|
898
|
+
var n = t && t.cache ? t.cache : Go, r = t && t.serializer ? t.serializer : Fo, i = t && t.strategy ? t.strategy : $o;
|
|
885
899
|
return i(e, {
|
|
886
900
|
cache: n,
|
|
887
901
|
serializer: r
|
|
888
902
|
});
|
|
889
903
|
}
|
|
890
|
-
function
|
|
904
|
+
function Bo(e) {
|
|
891
905
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
892
906
|
}
|
|
893
|
-
function
|
|
894
|
-
var i =
|
|
895
|
-
return typeof
|
|
907
|
+
function ii(e, t, n, r) {
|
|
908
|
+
var i = Bo(r) ? r : n(r), o = t.get(i);
|
|
909
|
+
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
896
910
|
}
|
|
897
|
-
function
|
|
898
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
899
|
-
return typeof
|
|
911
|
+
function oi(e, t, n) {
|
|
912
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
913
|
+
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
900
914
|
}
|
|
901
|
-
function
|
|
915
|
+
function Hn(e, t, n, r, i) {
|
|
902
916
|
return n.bind(t, e, r, i);
|
|
903
917
|
}
|
|
904
|
-
function $
|
|
905
|
-
var n = e.length === 1 ?
|
|
906
|
-
return
|
|
918
|
+
function $o(e, t) {
|
|
919
|
+
var n = e.length === 1 ? ii : oi;
|
|
920
|
+
return Hn(e, this, n, t.cache.create(), t.serializer);
|
|
921
|
+
}
|
|
922
|
+
function Uo(e, t) {
|
|
923
|
+
return Hn(e, this, oi, t.cache.create(), t.serializer);
|
|
907
924
|
}
|
|
908
|
-
function
|
|
909
|
-
return
|
|
925
|
+
function ko(e, t) {
|
|
926
|
+
return Hn(e, this, ii, t.cache.create(), t.serializer);
|
|
910
927
|
}
|
|
911
|
-
var
|
|
928
|
+
var Fo = function() {
|
|
912
929
|
return JSON.stringify(arguments);
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
}()
|
|
925
|
-
), Gs = {
|
|
930
|
+
};
|
|
931
|
+
function In() {
|
|
932
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
933
|
+
}
|
|
934
|
+
In.prototype.get = function(e) {
|
|
935
|
+
return this.cache[e];
|
|
936
|
+
};
|
|
937
|
+
In.prototype.set = function(e, t) {
|
|
938
|
+
this.cache[e] = t;
|
|
939
|
+
};
|
|
940
|
+
var Go = {
|
|
926
941
|
create: function() {
|
|
927
|
-
return new
|
|
942
|
+
return new In();
|
|
928
943
|
}
|
|
929
|
-
},
|
|
930
|
-
variadic:
|
|
931
|
-
|
|
932
|
-
|
|
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;
|
|
944
|
+
}, ln = {
|
|
945
|
+
variadic: Uo,
|
|
946
|
+
monadic: ko
|
|
947
|
+
}, D;
|
|
942
948
|
(function(e) {
|
|
943
949
|
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";
|
|
944
950
|
})(D || (D = {}));
|
|
945
|
-
var
|
|
951
|
+
var Y;
|
|
946
952
|
(function(e) {
|
|
947
953
|
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";
|
|
948
|
-
})(
|
|
949
|
-
var
|
|
954
|
+
})(Y || (Y = {}));
|
|
955
|
+
var Ze;
|
|
950
956
|
(function(e) {
|
|
951
957
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
952
|
-
})(
|
|
953
|
-
function
|
|
954
|
-
return e.type ===
|
|
958
|
+
})(Ze || (Ze = {}));
|
|
959
|
+
function fr(e) {
|
|
960
|
+
return e.type === Y.literal;
|
|
955
961
|
}
|
|
956
|
-
function
|
|
957
|
-
return e.type ===
|
|
962
|
+
function jo(e) {
|
|
963
|
+
return e.type === Y.argument;
|
|
958
964
|
}
|
|
959
|
-
function
|
|
960
|
-
return e.type ===
|
|
965
|
+
function si(e) {
|
|
966
|
+
return e.type === Y.number;
|
|
961
967
|
}
|
|
962
968
|
function ai(e) {
|
|
963
|
-
return e.type ===
|
|
969
|
+
return e.type === Y.date;
|
|
964
970
|
}
|
|
965
971
|
function ui(e) {
|
|
966
|
-
return e.type ===
|
|
972
|
+
return e.type === Y.time;
|
|
967
973
|
}
|
|
968
974
|
function li(e) {
|
|
969
|
-
return e.type ===
|
|
975
|
+
return e.type === Y.select;
|
|
970
976
|
}
|
|
971
977
|
function ci(e) {
|
|
972
|
-
return e.type ===
|
|
973
|
-
}
|
|
974
|
-
function zs(e) {
|
|
975
|
-
return e.type === X.pound;
|
|
978
|
+
return e.type === Y.plural;
|
|
976
979
|
}
|
|
977
|
-
function
|
|
978
|
-
return e.type ===
|
|
980
|
+
function zo(e) {
|
|
981
|
+
return e.type === Y.pound;
|
|
979
982
|
}
|
|
980
983
|
function hi(e) {
|
|
981
|
-
return
|
|
984
|
+
return e.type === Y.tag;
|
|
985
|
+
}
|
|
986
|
+
function fi(e) {
|
|
987
|
+
return !!(e && typeof e == "object" && e.type === Ze.number);
|
|
982
988
|
}
|
|
983
|
-
function
|
|
984
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
989
|
+
function yn(e) {
|
|
990
|
+
return !!(e && typeof e == "object" && e.type === Ze.dateTime);
|
|
985
991
|
}
|
|
986
|
-
var mi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
987
|
-
function
|
|
992
|
+
var mi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wo = /(?:[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;
|
|
993
|
+
function Vo(e) {
|
|
988
994
|
var t = {};
|
|
989
|
-
return e.replace(
|
|
995
|
+
return e.replace(Wo, function(n) {
|
|
990
996
|
var r = n.length;
|
|
991
997
|
switch (n[0]) {
|
|
992
998
|
case "G":
|
|
@@ -1075,28 +1081,18 @@ function Vs(e) {
|
|
|
1075
1081
|
return "";
|
|
1076
1082
|
}), t;
|
|
1077
1083
|
}
|
|
1078
|
-
var
|
|
1079
|
-
|
|
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) {
|
|
1084
|
+
var Xo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1085
|
+
function Yo(e) {
|
|
1090
1086
|
if (e.length === 0)
|
|
1091
1087
|
throw new Error("Number skeleton cannot be empty");
|
|
1092
|
-
for (var t = e.split(
|
|
1088
|
+
for (var t = e.split(Xo).filter(function(y) {
|
|
1093
1089
|
return y.length > 0;
|
|
1094
1090
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1095
|
-
var
|
|
1091
|
+
var o = i[r], u = o.split("/");
|
|
1096
1092
|
if (u.length === 0)
|
|
1097
1093
|
throw new Error("Invalid number skeleton");
|
|
1098
|
-
for (var a = u[0], c = u.slice(1), l = 0,
|
|
1099
|
-
var _ =
|
|
1094
|
+
for (var a = u[0], c = u.slice(1), l = 0, h = c; l < h.length; l++) {
|
|
1095
|
+
var _ = h[l];
|
|
1100
1096
|
if (_.length === 0)
|
|
1101
1097
|
throw new Error("Invalid number skeleton");
|
|
1102
1098
|
}
|
|
@@ -1104,10 +1100,10 @@ function Ys(e) {
|
|
|
1104
1100
|
}
|
|
1105
1101
|
return n;
|
|
1106
1102
|
}
|
|
1107
|
-
function
|
|
1103
|
+
function Zo(e) {
|
|
1108
1104
|
return e.replace(/^(.*?)-/, "");
|
|
1109
1105
|
}
|
|
1110
|
-
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, di = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1106
|
+
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, di = /^(@+)?(\+|#+)?[rs]?$/g, qo = /(\*)(0+)|(#+)(0+)|(0+)/g, pi = /^(0+)$/;
|
|
1111
1107
|
function dr(e) {
|
|
1112
1108
|
var t = {};
|
|
1113
1109
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(di, function(n, r, i) {
|
|
@@ -1154,7 +1150,7 @@ function gi(e) {
|
|
|
1154
1150
|
};
|
|
1155
1151
|
}
|
|
1156
1152
|
}
|
|
1157
|
-
function
|
|
1153
|
+
function Jo(e) {
|
|
1158
1154
|
var t;
|
|
1159
1155
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1160
1156
|
notation: "engineering"
|
|
@@ -1172,7 +1168,7 @@ function pr(e) {
|
|
|
1172
1168
|
var t = {}, n = gi(e);
|
|
1173
1169
|
return n || t;
|
|
1174
1170
|
}
|
|
1175
|
-
function
|
|
1171
|
+
function Qo(e) {
|
|
1176
1172
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1177
1173
|
var i = r[n];
|
|
1178
1174
|
switch (i.stem) {
|
|
@@ -1196,7 +1192,7 @@ function Qs(e) {
|
|
|
1196
1192
|
continue;
|
|
1197
1193
|
case "measure-unit":
|
|
1198
1194
|
case "unit":
|
|
1199
|
-
t.style = "unit", t.unit =
|
|
1195
|
+
t.style = "unit", t.unit = Zo(i.options[0]);
|
|
1200
1196
|
continue;
|
|
1201
1197
|
case "compact-short":
|
|
1202
1198
|
case "K":
|
|
@@ -1207,13 +1203,13 @@ function Qs(e) {
|
|
|
1207
1203
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1208
1204
|
continue;
|
|
1209
1205
|
case "scientific":
|
|
1210
|
-
t =
|
|
1211
|
-
return
|
|
1206
|
+
t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1207
|
+
return U(U({}, c), pr(l));
|
|
1212
1208
|
}, {}));
|
|
1213
1209
|
continue;
|
|
1214
1210
|
case "engineering":
|
|
1215
|
-
t =
|
|
1216
|
-
return
|
|
1211
|
+
t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1212
|
+
return U(U({}, c), pr(l));
|
|
1217
1213
|
}, {}));
|
|
1218
1214
|
continue;
|
|
1219
1215
|
case "notation-simple":
|
|
@@ -1258,9 +1254,9 @@ function Qs(e) {
|
|
|
1258
1254
|
case "integer-width":
|
|
1259
1255
|
if (i.options.length > 1)
|
|
1260
1256
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1261
|
-
i.options[0].replace(
|
|
1257
|
+
i.options[0].replace(qo, function(c, l, h, _, y, M) {
|
|
1262
1258
|
if (l)
|
|
1263
|
-
t.minimumIntegerDigits =
|
|
1259
|
+
t.minimumIntegerDigits = h.length;
|
|
1264
1260
|
else {
|
|
1265
1261
|
if (_ && y)
|
|
1266
1262
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1278,25 +1274,25 @@ function Qs(e) {
|
|
|
1278
1274
|
if (mr.test(i.stem)) {
|
|
1279
1275
|
if (i.options.length > 1)
|
|
1280
1276
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1281
|
-
i.stem.replace(mr, function(c, l,
|
|
1282
|
-
return
|
|
1277
|
+
i.stem.replace(mr, function(c, l, h, _, y, M) {
|
|
1278
|
+
return h === "*" ? 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), "";
|
|
1283
1279
|
});
|
|
1284
|
-
var
|
|
1285
|
-
|
|
1280
|
+
var o = i.options[0];
|
|
1281
|
+
o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), dr(o)));
|
|
1286
1282
|
continue;
|
|
1287
1283
|
}
|
|
1288
1284
|
if (di.test(i.stem)) {
|
|
1289
|
-
t =
|
|
1285
|
+
t = U(U({}, t), dr(i.stem));
|
|
1290
1286
|
continue;
|
|
1291
1287
|
}
|
|
1292
1288
|
var u = gi(i.stem);
|
|
1293
|
-
u && (t =
|
|
1294
|
-
var a =
|
|
1295
|
-
a && (t =
|
|
1289
|
+
u && (t = U(U({}, t), u));
|
|
1290
|
+
var a = Jo(i.stem);
|
|
1291
|
+
a && (t = U(U({}, t), a));
|
|
1296
1292
|
}
|
|
1297
1293
|
return t;
|
|
1298
1294
|
}
|
|
1299
|
-
var
|
|
1295
|
+
var Ot = {
|
|
1300
1296
|
"001": [
|
|
1301
1297
|
"H",
|
|
1302
1298
|
"h"
|
|
@@ -2711,13 +2707,13 @@ var Mt = {
|
|
|
2711
2707
|
"h"
|
|
2712
2708
|
]
|
|
2713
2709
|
};
|
|
2714
|
-
function
|
|
2710
|
+
function Ko(e, t) {
|
|
2715
2711
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2716
2712
|
var i = e.charAt(r);
|
|
2717
2713
|
if (i === "j") {
|
|
2718
|
-
for (var
|
|
2719
|
-
|
|
2720
|
-
var u = 1 + (
|
|
2714
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2715
|
+
o++, r++;
|
|
2716
|
+
var u = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = es(t);
|
|
2721
2717
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2722
2718
|
n += c;
|
|
2723
2719
|
for (; u-- > 0; )
|
|
@@ -2727,7 +2723,7 @@ function Ks(e, t) {
|
|
|
2727
2723
|
}
|
|
2728
2724
|
return n;
|
|
2729
2725
|
}
|
|
2730
|
-
function
|
|
2726
|
+
function es(e) {
|
|
2731
2727
|
var t = e.hourCycle;
|
|
2732
2728
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2733
2729
|
e.hourCycles && // @ts-ignore
|
|
@@ -2746,23 +2742,23 @@ function eo(e) {
|
|
|
2746
2742
|
}
|
|
2747
2743
|
var n = e.language, r;
|
|
2748
2744
|
n !== "root" && (r = e.maximize().region);
|
|
2749
|
-
var i =
|
|
2745
|
+
var i = Ot[r || ""] || Ot[n || ""] || Ot["".concat(n, "-001")] || Ot["001"];
|
|
2750
2746
|
return i[0];
|
|
2751
2747
|
}
|
|
2752
|
-
var
|
|
2748
|
+
var cn, ts = new RegExp("^".concat(mi.source, "*")), ns = new RegExp("".concat(mi.source, "*$"));
|
|
2753
2749
|
function B(e, t) {
|
|
2754
2750
|
return { start: e, end: t };
|
|
2755
2751
|
}
|
|
2756
|
-
var
|
|
2752
|
+
var rs = !!String.prototype.startsWith && "_a".startsWith("a", 1), is = !!String.fromCodePoint, os = !!Object.fromEntries, ss = !!String.prototype.codePointAt, as = !!String.prototype.trimStart, us = !!String.prototype.trimEnd, ls = !!Number.isSafeInteger, cs = ls ? Number.isSafeInteger : function(e) {
|
|
2757
2753
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2758
|
-
},
|
|
2754
|
+
}, xn = !0;
|
|
2759
2755
|
try {
|
|
2760
|
-
var
|
|
2761
|
-
|
|
2756
|
+
var hs = bi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2757
|
+
xn = ((cn = hs.exec("a")) === null || cn === void 0 ? void 0 : cn[0]) === "a";
|
|
2762
2758
|
} catch {
|
|
2763
|
-
|
|
2759
|
+
xn = !1;
|
|
2764
2760
|
}
|
|
2765
|
-
var gr =
|
|
2761
|
+
var gr = rs ? (
|
|
2766
2762
|
// Native
|
|
2767
2763
|
function(t, n, r) {
|
|
2768
2764
|
return t.startsWith(n, r);
|
|
@@ -2772,13 +2768,13 @@ var gr = ro ? (
|
|
|
2772
2768
|
function(t, n, r) {
|
|
2773
2769
|
return t.slice(r, r + n.length) === n;
|
|
2774
2770
|
}
|
|
2775
|
-
),
|
|
2771
|
+
), Tn = is ? String.fromCodePoint : (
|
|
2776
2772
|
// IE11
|
|
2777
2773
|
function() {
|
|
2778
2774
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2779
2775
|
t[n] = arguments[n];
|
|
2780
|
-
for (var r = "", i = t.length,
|
|
2781
|
-
if (u = t[
|
|
2776
|
+
for (var r = "", i = t.length, o = 0, u; i > o; ) {
|
|
2777
|
+
if (u = t[o++], u > 1114111)
|
|
2782
2778
|
throw RangeError(u + " is not a valid code point");
|
|
2783
2779
|
r += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2784
2780
|
}
|
|
@@ -2786,17 +2782,17 @@ var gr = ro ? (
|
|
|
2786
2782
|
}
|
|
2787
2783
|
), _r = (
|
|
2788
2784
|
// native
|
|
2789
|
-
|
|
2785
|
+
os ? Object.fromEntries : (
|
|
2790
2786
|
// Ponyfill
|
|
2791
2787
|
function(t) {
|
|
2792
2788
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2793
|
-
var
|
|
2789
|
+
var o = i[r], u = o[0], a = o[1];
|
|
2794
2790
|
n[u] = a;
|
|
2795
2791
|
}
|
|
2796
2792
|
return n;
|
|
2797
2793
|
}
|
|
2798
2794
|
)
|
|
2799
|
-
), _i =
|
|
2795
|
+
), _i = ss ? (
|
|
2800
2796
|
// Native
|
|
2801
2797
|
function(t, n) {
|
|
2802
2798
|
return t.codePointAt(n);
|
|
@@ -2806,11 +2802,11 @@ var gr = ro ? (
|
|
|
2806
2802
|
function(t, n) {
|
|
2807
2803
|
var r = t.length;
|
|
2808
2804
|
if (!(n < 0 || n >= r)) {
|
|
2809
|
-
var i = t.charCodeAt(n),
|
|
2810
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2805
|
+
var i = t.charCodeAt(n), o;
|
|
2806
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2811
2807
|
}
|
|
2812
2808
|
}
|
|
2813
|
-
),
|
|
2809
|
+
), fs = as ? (
|
|
2814
2810
|
// Native
|
|
2815
2811
|
function(t) {
|
|
2816
2812
|
return t.trimStart();
|
|
@@ -2818,9 +2814,9 @@ var gr = ro ? (
|
|
|
2818
2814
|
) : (
|
|
2819
2815
|
// Ponyfill
|
|
2820
2816
|
function(t) {
|
|
2821
|
-
return t.replace(
|
|
2817
|
+
return t.replace(ts, "");
|
|
2822
2818
|
}
|
|
2823
|
-
),
|
|
2819
|
+
), ms = us ? (
|
|
2824
2820
|
// Native
|
|
2825
2821
|
function(t) {
|
|
2826
2822
|
return t.trimEnd();
|
|
@@ -2828,32 +2824,32 @@ var gr = ro ? (
|
|
|
2828
2824
|
) : (
|
|
2829
2825
|
// Ponyfill
|
|
2830
2826
|
function(t) {
|
|
2831
|
-
return t.replace(
|
|
2827
|
+
return t.replace(ns, "");
|
|
2832
2828
|
}
|
|
2833
2829
|
);
|
|
2834
2830
|
function bi(e, t) {
|
|
2835
2831
|
return new RegExp(e, t);
|
|
2836
2832
|
}
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2833
|
+
var vn;
|
|
2834
|
+
if (xn) {
|
|
2839
2835
|
var br = bi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2840
|
-
|
|
2836
|
+
vn = function(t, n) {
|
|
2841
2837
|
var r;
|
|
2842
2838
|
br.lastIndex = n;
|
|
2843
2839
|
var i = br.exec(t);
|
|
2844
2840
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2845
2841
|
};
|
|
2846
2842
|
} else
|
|
2847
|
-
|
|
2843
|
+
vn = function(t, n) {
|
|
2848
2844
|
for (var r = []; ; ) {
|
|
2849
2845
|
var i = _i(t, n);
|
|
2850
|
-
if (i === void 0 || Ei(i) ||
|
|
2846
|
+
if (i === void 0 || Ei(i) || _s(i))
|
|
2851
2847
|
break;
|
|
2852
2848
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2853
2849
|
}
|
|
2854
|
-
return
|
|
2850
|
+
return Tn.apply(void 0, r);
|
|
2855
2851
|
};
|
|
2856
|
-
var
|
|
2852
|
+
var ds = (
|
|
2857
2853
|
/** @class */
|
|
2858
2854
|
function() {
|
|
2859
2855
|
function e(t, n) {
|
|
@@ -2865,26 +2861,26 @@ var po = (
|
|
|
2865
2861
|
return this.parseMessage(0, "", !1);
|
|
2866
2862
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2867
2863
|
for (var i = []; !this.isEOF(); ) {
|
|
2868
|
-
var
|
|
2869
|
-
if (
|
|
2864
|
+
var o = this.char();
|
|
2865
|
+
if (o === 123) {
|
|
2870
2866
|
var u = this.parseArgument(t, r);
|
|
2871
2867
|
if (u.err)
|
|
2872
2868
|
return u;
|
|
2873
2869
|
i.push(u.val);
|
|
2874
2870
|
} else {
|
|
2875
|
-
if (
|
|
2871
|
+
if (o === 125 && t > 0)
|
|
2876
2872
|
break;
|
|
2877
|
-
if (
|
|
2873
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2878
2874
|
var a = this.clonePosition();
|
|
2879
2875
|
this.bump(), i.push({
|
|
2880
|
-
type:
|
|
2876
|
+
type: Y.pound,
|
|
2881
2877
|
location: B(a, this.clonePosition())
|
|
2882
2878
|
});
|
|
2883
|
-
} else if (
|
|
2879
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2884
2880
|
if (r)
|
|
2885
2881
|
break;
|
|
2886
2882
|
return this.error(D.UNMATCHED_CLOSING_TAG, B(this.clonePosition(), this.clonePosition()));
|
|
2887
|
-
} else if (
|
|
2883
|
+
} else if (o === 60 && !this.ignoreTag && Sn(this.peek() || 0)) {
|
|
2888
2884
|
var u = this.parseTag(t, n);
|
|
2889
2885
|
if (u.err)
|
|
2890
2886
|
return u;
|
|
@@ -2905,24 +2901,24 @@ var po = (
|
|
|
2905
2901
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2906
2902
|
return {
|
|
2907
2903
|
val: {
|
|
2908
|
-
type:
|
|
2904
|
+
type: Y.literal,
|
|
2909
2905
|
value: "<".concat(i, "/>"),
|
|
2910
2906
|
location: B(r, this.clonePosition())
|
|
2911
2907
|
},
|
|
2912
2908
|
err: null
|
|
2913
2909
|
};
|
|
2914
2910
|
if (this.bumpIf(">")) {
|
|
2915
|
-
var
|
|
2916
|
-
if (
|
|
2917
|
-
return
|
|
2918
|
-
var u =
|
|
2911
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
2912
|
+
if (o.err)
|
|
2913
|
+
return o;
|
|
2914
|
+
var u = o.val, a = this.clonePosition();
|
|
2919
2915
|
if (this.bumpIf("</")) {
|
|
2920
|
-
if (this.isEOF() || !
|
|
2916
|
+
if (this.isEOF() || !Sn(this.char()))
|
|
2921
2917
|
return this.error(D.INVALID_TAG, B(a, this.clonePosition()));
|
|
2922
2918
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
2923
2919
|
return i !== l ? this.error(D.UNMATCHED_CLOSING_TAG, B(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2924
2920
|
val: {
|
|
2925
|
-
type:
|
|
2921
|
+
type: Y.tag,
|
|
2926
2922
|
value: i,
|
|
2927
2923
|
children: u,
|
|
2928
2924
|
location: B(r, this.clonePosition())
|
|
@@ -2935,14 +2931,14 @@ var po = (
|
|
|
2935
2931
|
return this.error(D.INVALID_TAG, B(r, this.clonePosition()));
|
|
2936
2932
|
}, e.prototype.parseTagName = function() {
|
|
2937
2933
|
var t = this.offset();
|
|
2938
|
-
for (this.bump(); !this.isEOF() &&
|
|
2934
|
+
for (this.bump(); !this.isEOF() && gs(this.char()); )
|
|
2939
2935
|
this.bump();
|
|
2940
2936
|
return this.message.slice(t, this.offset());
|
|
2941
2937
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2942
2938
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2943
|
-
var
|
|
2944
|
-
if (
|
|
2945
|
-
i +=
|
|
2939
|
+
var o = this.tryParseQuote(n);
|
|
2940
|
+
if (o) {
|
|
2941
|
+
i += o;
|
|
2946
2942
|
continue;
|
|
2947
2943
|
}
|
|
2948
2944
|
var u = this.tryParseUnquoted(t, n);
|
|
@@ -2959,12 +2955,12 @@ var po = (
|
|
|
2959
2955
|
}
|
|
2960
2956
|
var c = B(r, this.clonePosition());
|
|
2961
2957
|
return {
|
|
2962
|
-
val: { type:
|
|
2958
|
+
val: { type: Y.literal, value: i, location: c },
|
|
2963
2959
|
err: null
|
|
2964
2960
|
};
|
|
2965
2961
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2966
2962
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2967
|
-
!
|
|
2963
|
+
!ps(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2968
2964
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2969
2965
|
if (this.isEOF() || this.char() !== 39)
|
|
2970
2966
|
return null;
|
|
@@ -2998,12 +2994,12 @@ var po = (
|
|
|
2998
2994
|
n.push(r);
|
|
2999
2995
|
this.bump();
|
|
3000
2996
|
}
|
|
3001
|
-
return
|
|
2997
|
+
return Tn.apply(void 0, n);
|
|
3002
2998
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3003
2999
|
if (this.isEOF())
|
|
3004
3000
|
return null;
|
|
3005
3001
|
var r = this.char();
|
|
3006
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3002
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Tn(r));
|
|
3007
3003
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3008
3004
|
var r = this.clonePosition();
|
|
3009
3005
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3019,7 +3015,7 @@ var po = (
|
|
|
3019
3015
|
case 125:
|
|
3020
3016
|
return this.bump(), {
|
|
3021
3017
|
val: {
|
|
3022
|
-
type:
|
|
3018
|
+
type: Y.argument,
|
|
3023
3019
|
// value does not include the opening and closing braces.
|
|
3024
3020
|
value: i,
|
|
3025
3021
|
location: B(r, this.clonePosition())
|
|
@@ -3032,12 +3028,12 @@ var po = (
|
|
|
3032
3028
|
return this.error(D.MALFORMED_ARGUMENT, B(r, this.clonePosition()));
|
|
3033
3029
|
}
|
|
3034
3030
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3035
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3031
|
+
var t = this.clonePosition(), n = this.offset(), r = vn(this.message, n), i = n + r.length;
|
|
3036
3032
|
this.bumpTo(i);
|
|
3037
|
-
var
|
|
3033
|
+
var o = this.clonePosition(), u = B(t, o);
|
|
3038
3034
|
return { value: r, location: u };
|
|
3039
3035
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3040
|
-
var
|
|
3036
|
+
var o, u = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
3041
3037
|
switch (a) {
|
|
3042
3038
|
case "":
|
|
3043
3039
|
return this.error(D.EXPECT_ARGUMENT_TYPE, B(u, c));
|
|
@@ -3048,13 +3044,13 @@ var po = (
|
|
|
3048
3044
|
var l = null;
|
|
3049
3045
|
if (this.bumpIf(",")) {
|
|
3050
3046
|
this.bumpSpace();
|
|
3051
|
-
var
|
|
3047
|
+
var h = this.clonePosition(), _ = this.parseSimpleArgStyleIfPossible();
|
|
3052
3048
|
if (_.err)
|
|
3053
3049
|
return _;
|
|
3054
|
-
var y =
|
|
3050
|
+
var y = ms(_.val);
|
|
3055
3051
|
if (y.length === 0)
|
|
3056
3052
|
return this.error(D.EXPECT_ARGUMENT_STYLE, B(this.clonePosition(), this.clonePosition()));
|
|
3057
|
-
var M = B(
|
|
3053
|
+
var M = B(h, this.clonePosition());
|
|
3058
3054
|
l = { style: y, styleLocation: M };
|
|
3059
3055
|
}
|
|
3060
3056
|
var b = this.tryParseArgumentClose(i);
|
|
@@ -3062,24 +3058,24 @@ var po = (
|
|
|
3062
3058
|
return b;
|
|
3063
3059
|
var d = B(i, this.clonePosition());
|
|
3064
3060
|
if (l && gr(l?.style, "::", 0)) {
|
|
3065
|
-
var C =
|
|
3061
|
+
var C = fs(l.style.slice(2));
|
|
3066
3062
|
if (a === "number") {
|
|
3067
3063
|
var _ = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
3068
3064
|
return _.err ? _ : {
|
|
3069
|
-
val: { type:
|
|
3065
|
+
val: { type: Y.number, value: r, location: d, style: _.val },
|
|
3070
3066
|
err: null
|
|
3071
3067
|
};
|
|
3072
3068
|
} else {
|
|
3073
3069
|
if (C.length === 0)
|
|
3074
3070
|
return this.error(D.EXPECT_DATE_TIME_SKELETON, d);
|
|
3075
|
-
var
|
|
3076
|
-
this.locale && (
|
|
3071
|
+
var G = C;
|
|
3072
|
+
this.locale && (G = Ko(C, this.locale));
|
|
3077
3073
|
var y = {
|
|
3078
|
-
type:
|
|
3079
|
-
pattern:
|
|
3074
|
+
type: Ze.dateTime,
|
|
3075
|
+
pattern: G,
|
|
3080
3076
|
location: l.styleLocation,
|
|
3081
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3082
|
-
}, $ = a === "date" ?
|
|
3077
|
+
parsedOptions: this.shouldParseSkeletons ? Vo(G) : {}
|
|
3078
|
+
}, $ = a === "date" ? Y.date : Y.time;
|
|
3083
3079
|
return {
|
|
3084
3080
|
val: { type: $, value: r, location: d, style: y },
|
|
3085
3081
|
err: null
|
|
@@ -3088,10 +3084,10 @@ var po = (
|
|
|
3088
3084
|
}
|
|
3089
3085
|
return {
|
|
3090
3086
|
val: {
|
|
3091
|
-
type: a === "number" ?
|
|
3087
|
+
type: a === "number" ? Y.number : a === "date" ? Y.date : Y.time,
|
|
3092
3088
|
value: r,
|
|
3093
3089
|
location: d,
|
|
3094
|
-
style: (
|
|
3090
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
3095
3091
|
},
|
|
3096
3092
|
err: null
|
|
3097
3093
|
};
|
|
@@ -3101,7 +3097,7 @@ var po = (
|
|
|
3101
3097
|
case "select": {
|
|
3102
3098
|
var A = this.clonePosition();
|
|
3103
3099
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3104
|
-
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(A,
|
|
3100
|
+
return this.error(D.EXPECT_SELECT_ARGUMENT_OPTIONS, B(A, U({}, A)));
|
|
3105
3101
|
this.bumpSpace();
|
|
3106
3102
|
var H = this.parseIdentifierIfPossible(), R = 0;
|
|
3107
3103
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3113,29 +3109,29 @@ var po = (
|
|
|
3113
3109
|
return _;
|
|
3114
3110
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), R = _.val;
|
|
3115
3111
|
}
|
|
3116
|
-
var
|
|
3117
|
-
if (
|
|
3118
|
-
return
|
|
3112
|
+
var k = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3113
|
+
if (k.err)
|
|
3114
|
+
return k;
|
|
3119
3115
|
var b = this.tryParseArgumentClose(i);
|
|
3120
3116
|
if (b.err)
|
|
3121
3117
|
return b;
|
|
3122
|
-
var
|
|
3118
|
+
var Z = B(i, this.clonePosition());
|
|
3123
3119
|
return a === "select" ? {
|
|
3124
3120
|
val: {
|
|
3125
|
-
type:
|
|
3121
|
+
type: Y.select,
|
|
3126
3122
|
value: r,
|
|
3127
|
-
options: _r(
|
|
3128
|
-
location:
|
|
3123
|
+
options: _r(k.val),
|
|
3124
|
+
location: Z
|
|
3129
3125
|
},
|
|
3130
3126
|
err: null
|
|
3131
3127
|
} : {
|
|
3132
3128
|
val: {
|
|
3133
|
-
type:
|
|
3129
|
+
type: Y.plural,
|
|
3134
3130
|
value: r,
|
|
3135
|
-
options: _r(
|
|
3131
|
+
options: _r(k.val),
|
|
3136
3132
|
offset: R,
|
|
3137
3133
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3138
|
-
location:
|
|
3134
|
+
location: Z
|
|
3139
3135
|
},
|
|
3140
3136
|
err: null
|
|
3141
3137
|
};
|
|
@@ -3183,33 +3179,33 @@ var po = (
|
|
|
3183
3179
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3184
3180
|
var r = [];
|
|
3185
3181
|
try {
|
|
3186
|
-
r =
|
|
3182
|
+
r = Yo(t);
|
|
3187
3183
|
} catch {
|
|
3188
3184
|
return this.error(D.INVALID_NUMBER_SKELETON, n);
|
|
3189
3185
|
}
|
|
3190
3186
|
return {
|
|
3191
3187
|
val: {
|
|
3192
|
-
type:
|
|
3188
|
+
type: Ze.number,
|
|
3193
3189
|
tokens: r,
|
|
3194
3190
|
location: n,
|
|
3195
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3191
|
+
parsedOptions: this.shouldParseSkeletons ? Qo(r) : {}
|
|
3196
3192
|
},
|
|
3197
3193
|
err: null
|
|
3198
3194
|
};
|
|
3199
3195
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3200
|
-
for (var
|
|
3196
|
+
for (var o, u = !1, a = [], c = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
|
3201
3197
|
if (l.length === 0) {
|
|
3202
3198
|
var _ = this.clonePosition();
|
|
3203
3199
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3204
3200
|
var y = this.tryParseDecimalInteger(D.EXPECT_PLURAL_ARGUMENT_SELECTOR, D.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3205
3201
|
if (y.err)
|
|
3206
3202
|
return y;
|
|
3207
|
-
|
|
3203
|
+
h = B(_, this.clonePosition()), l = this.message.slice(_.offset, this.offset());
|
|
3208
3204
|
} else
|
|
3209
3205
|
break;
|
|
3210
3206
|
}
|
|
3211
3207
|
if (c.has(l))
|
|
3212
|
-
return this.error(n === "select" ? D.DUPLICATE_SELECT_ARGUMENT_SELECTOR : D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3208
|
+
return this.error(n === "select" ? D.DUPLICATE_SELECT_ARGUMENT_SELECTOR : D.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3213
3209
|
l === "other" && (u = !0), this.bumpSpace();
|
|
3214
3210
|
var M = this.clonePosition();
|
|
3215
3211
|
if (!this.bumpIf("{"))
|
|
@@ -3226,21 +3222,21 @@ var po = (
|
|
|
3226
3222
|
value: b.val,
|
|
3227
3223
|
location: B(M, this.clonePosition())
|
|
3228
3224
|
}
|
|
3229
|
-
]), c.add(l), this.bumpSpace(),
|
|
3225
|
+
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
|
3230
3226
|
}
|
|
3231
3227
|
return a.length === 0 ? this.error(n === "select" ? D.EXPECT_SELECT_ARGUMENT_SELECTOR : D.EXPECT_PLURAL_ARGUMENT_SELECTOR, B(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(D.MISSING_OTHER_CLAUSE, B(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3232
3228
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3233
3229
|
var r = 1, i = this.clonePosition();
|
|
3234
3230
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3235
|
-
for (var
|
|
3231
|
+
for (var o = !1, u = 0; !this.isEOF(); ) {
|
|
3236
3232
|
var a = this.char();
|
|
3237
3233
|
if (a >= 48 && a <= 57)
|
|
3238
|
-
|
|
3234
|
+
o = !0, u = u * 10 + (a - 48), this.bump();
|
|
3239
3235
|
else
|
|
3240
3236
|
break;
|
|
3241
3237
|
}
|
|
3242
3238
|
var c = B(i, this.clonePosition());
|
|
3243
|
-
return
|
|
3239
|
+
return o ? (u *= r, cs(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3244
3240
|
}, e.prototype.offset = function() {
|
|
3245
3241
|
return this.position.offset;
|
|
3246
3242
|
}, e.prototype.isEOF = function() {
|
|
@@ -3306,50 +3302,50 @@ var po = (
|
|
|
3306
3302
|
}, e;
|
|
3307
3303
|
}()
|
|
3308
3304
|
);
|
|
3309
|
-
function
|
|
3305
|
+
function Sn(e) {
|
|
3310
3306
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3311
3307
|
}
|
|
3312
|
-
function
|
|
3313
|
-
return
|
|
3308
|
+
function ps(e) {
|
|
3309
|
+
return Sn(e) || e === 47;
|
|
3314
3310
|
}
|
|
3315
|
-
function
|
|
3311
|
+
function gs(e) {
|
|
3316
3312
|
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;
|
|
3317
3313
|
}
|
|
3318
3314
|
function Ei(e) {
|
|
3319
3315
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3320
3316
|
}
|
|
3321
|
-
function
|
|
3317
|
+
function _s(e) {
|
|
3322
3318
|
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;
|
|
3323
3319
|
}
|
|
3324
|
-
function
|
|
3320
|
+
function An(e) {
|
|
3325
3321
|
e.forEach(function(t) {
|
|
3326
3322
|
if (delete t.location, li(t) || ci(t))
|
|
3327
3323
|
for (var n in t.options)
|
|
3328
|
-
delete t.options[n].location,
|
|
3324
|
+
delete t.options[n].location, An(t.options[n].value);
|
|
3329
3325
|
else
|
|
3330
|
-
|
|
3326
|
+
si(t) && fi(t.style) || (ai(t) || ui(t)) && yn(t.style) ? delete t.style.location : hi(t) && An(t.children);
|
|
3331
3327
|
});
|
|
3332
3328
|
}
|
|
3333
|
-
function
|
|
3334
|
-
t === void 0 && (t = {}), t =
|
|
3335
|
-
var n = new
|
|
3329
|
+
function bs(e, t) {
|
|
3330
|
+
t === void 0 && (t = {}), t = U({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3331
|
+
var n = new ds(e, t).parse();
|
|
3336
3332
|
if (n.err) {
|
|
3337
3333
|
var r = SyntaxError(D[n.err.kind]);
|
|
3338
3334
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3339
3335
|
}
|
|
3340
|
-
return t?.captureLocation ||
|
|
3336
|
+
return t?.captureLocation || An(n.val), n.val;
|
|
3341
3337
|
}
|
|
3342
|
-
var
|
|
3338
|
+
var qe;
|
|
3343
3339
|
(function(e) {
|
|
3344
3340
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3345
|
-
})(
|
|
3346
|
-
var
|
|
3341
|
+
})(qe || (qe = {}));
|
|
3342
|
+
var Zt = (
|
|
3347
3343
|
/** @class */
|
|
3348
3344
|
function(e) {
|
|
3349
|
-
|
|
3345
|
+
Yt(t, e);
|
|
3350
3346
|
function t(n, r, i) {
|
|
3351
|
-
var
|
|
3352
|
-
return
|
|
3347
|
+
var o = e.call(this, n) || this;
|
|
3348
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3353
3349
|
}
|
|
3354
3350
|
return t.prototype.toString = function() {
|
|
3355
3351
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3358,45 +3354,45 @@ var Jt = (
|
|
|
3358
3354
|
), Er = (
|
|
3359
3355
|
/** @class */
|
|
3360
3356
|
function(e) {
|
|
3361
|
-
|
|
3362
|
-
function t(n, r, i,
|
|
3363
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3357
|
+
Yt(t, e);
|
|
3358
|
+
function t(n, r, i, o) {
|
|
3359
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), qe.INVALID_VALUE, o) || this;
|
|
3364
3360
|
}
|
|
3365
3361
|
return t;
|
|
3366
|
-
}(
|
|
3367
|
-
),
|
|
3362
|
+
}(Zt)
|
|
3363
|
+
), Es = (
|
|
3368
3364
|
/** @class */
|
|
3369
3365
|
function(e) {
|
|
3370
|
-
|
|
3366
|
+
Yt(t, e);
|
|
3371
3367
|
function t(n, r, i) {
|
|
3372
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3368
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), qe.INVALID_VALUE, i) || this;
|
|
3373
3369
|
}
|
|
3374
3370
|
return t;
|
|
3375
|
-
}(
|
|
3376
|
-
),
|
|
3371
|
+
}(Zt)
|
|
3372
|
+
), ys = (
|
|
3377
3373
|
/** @class */
|
|
3378
3374
|
function(e) {
|
|
3379
|
-
|
|
3375
|
+
Yt(t, e);
|
|
3380
3376
|
function t(n, r) {
|
|
3381
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3377
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), qe.MISSING_VALUE, r) || this;
|
|
3382
3378
|
}
|
|
3383
3379
|
return t;
|
|
3384
|
-
}(
|
|
3380
|
+
}(Zt)
|
|
3385
3381
|
), ce;
|
|
3386
3382
|
(function(e) {
|
|
3387
3383
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3388
3384
|
})(ce || (ce = {}));
|
|
3389
|
-
function
|
|
3385
|
+
function xs(e) {
|
|
3390
3386
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3391
3387
|
var r = t[t.length - 1];
|
|
3392
3388
|
return !r || r.type !== ce.literal || n.type !== ce.literal ? t.push(n) : r.value += n.value, t;
|
|
3393
3389
|
}, []);
|
|
3394
3390
|
}
|
|
3395
|
-
function
|
|
3391
|
+
function Ts(e) {
|
|
3396
3392
|
return typeof e == "function";
|
|
3397
3393
|
}
|
|
3398
|
-
function
|
|
3399
|
-
if (e.length === 1 &&
|
|
3394
|
+
function Dt(e, t, n, r, i, o, u) {
|
|
3395
|
+
if (e.length === 1 && fr(e[0]))
|
|
3400
3396
|
return [
|
|
3401
3397
|
{
|
|
3402
3398
|
type: ce.literal,
|
|
@@ -3404,61 +3400,61 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3404
3400
|
}
|
|
3405
3401
|
];
|
|
3406
3402
|
for (var a = [], c = 0, l = e; c < l.length; c++) {
|
|
3407
|
-
var
|
|
3408
|
-
if (
|
|
3403
|
+
var h = l[c];
|
|
3404
|
+
if (fr(h)) {
|
|
3409
3405
|
a.push({
|
|
3410
3406
|
type: ce.literal,
|
|
3411
|
-
value:
|
|
3407
|
+
value: h.value
|
|
3412
3408
|
});
|
|
3413
3409
|
continue;
|
|
3414
3410
|
}
|
|
3415
|
-
if (
|
|
3416
|
-
typeof
|
|
3411
|
+
if (zo(h)) {
|
|
3412
|
+
typeof o == "number" && a.push({
|
|
3417
3413
|
type: ce.literal,
|
|
3418
|
-
value: n.getNumberFormat(t).format(
|
|
3414
|
+
value: n.getNumberFormat(t).format(o)
|
|
3419
3415
|
});
|
|
3420
3416
|
continue;
|
|
3421
3417
|
}
|
|
3422
|
-
var _ =
|
|
3418
|
+
var _ = h.value;
|
|
3423
3419
|
if (!(i && _ in i))
|
|
3424
|
-
throw new
|
|
3420
|
+
throw new ys(_, u);
|
|
3425
3421
|
var y = i[_];
|
|
3426
|
-
if (
|
|
3422
|
+
if (jo(h)) {
|
|
3427
3423
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3428
3424
|
type: typeof y == "string" ? ce.literal : ce.object,
|
|
3429
3425
|
value: y
|
|
3430
3426
|
});
|
|
3431
3427
|
continue;
|
|
3432
3428
|
}
|
|
3433
|
-
if (ai(
|
|
3434
|
-
var M = typeof
|
|
3429
|
+
if (ai(h)) {
|
|
3430
|
+
var M = typeof h.style == "string" ? r.date[h.style] : yn(h.style) ? h.style.parsedOptions : void 0;
|
|
3435
3431
|
a.push({
|
|
3436
3432
|
type: ce.literal,
|
|
3437
3433
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
3438
3434
|
});
|
|
3439
3435
|
continue;
|
|
3440
3436
|
}
|
|
3441
|
-
if (ui(
|
|
3442
|
-
var M = typeof
|
|
3437
|
+
if (ui(h)) {
|
|
3438
|
+
var M = typeof h.style == "string" ? r.time[h.style] : yn(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3443
3439
|
a.push({
|
|
3444
3440
|
type: ce.literal,
|
|
3445
3441
|
value: n.getDateTimeFormat(t, M).format(y)
|
|
3446
3442
|
});
|
|
3447
3443
|
continue;
|
|
3448
3444
|
}
|
|
3449
|
-
if (
|
|
3450
|
-
var M = typeof
|
|
3445
|
+
if (si(h)) {
|
|
3446
|
+
var M = typeof h.style == "string" ? r.number[h.style] : fi(h.style) ? h.style.parsedOptions : void 0;
|
|
3451
3447
|
M && M.scale && (y = y * (M.scale || 1)), a.push({
|
|
3452
3448
|
type: ce.literal,
|
|
3453
3449
|
value: n.getNumberFormat(t, M).format(y)
|
|
3454
3450
|
});
|
|
3455
3451
|
continue;
|
|
3456
3452
|
}
|
|
3457
|
-
if (
|
|
3458
|
-
var b =
|
|
3459
|
-
if (!
|
|
3460
|
-
throw new
|
|
3461
|
-
var
|
|
3453
|
+
if (hi(h)) {
|
|
3454
|
+
var b = h.children, d = h.value, C = i[d];
|
|
3455
|
+
if (!Ts(C))
|
|
3456
|
+
throw new Es(d, "function", u);
|
|
3457
|
+
var G = Dt(b, t, n, r, i, o), $ = C(G.map(function(R) {
|
|
3462
3458
|
return R.value;
|
|
3463
3459
|
}));
|
|
3464
3460
|
Array.isArray($) || ($ = [$]), a.push.apply(a, $.map(function(R) {
|
|
@@ -3468,42 +3464,42 @@ function Bt(e, t, n, r, i, s, u) {
|
|
|
3468
3464
|
};
|
|
3469
3465
|
}));
|
|
3470
3466
|
}
|
|
3471
|
-
if (li(
|
|
3472
|
-
var A =
|
|
3467
|
+
if (li(h)) {
|
|
3468
|
+
var A = h.options[y] || h.options.other;
|
|
3473
3469
|
if (!A)
|
|
3474
|
-
throw new Er(
|
|
3475
|
-
a.push.apply(a,
|
|
3470
|
+
throw new Er(h.value, y, Object.keys(h.options), u);
|
|
3471
|
+
a.push.apply(a, Dt(A.value, t, n, r, i));
|
|
3476
3472
|
continue;
|
|
3477
3473
|
}
|
|
3478
|
-
if (ci(
|
|
3479
|
-
var A =
|
|
3474
|
+
if (ci(h)) {
|
|
3475
|
+
var A = h.options["=".concat(y)];
|
|
3480
3476
|
if (!A) {
|
|
3481
3477
|
if (!Intl.PluralRules)
|
|
3482
|
-
throw new
|
|
3478
|
+
throw new Zt(`Intl.PluralRules is not available in this environment.
|
|
3483
3479
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3484
|
-
`,
|
|
3485
|
-
var H = n.getPluralRules(t, { type:
|
|
3486
|
-
A =
|
|
3480
|
+
`, qe.MISSING_INTL_API, u);
|
|
3481
|
+
var H = n.getPluralRules(t, { type: h.pluralType }).select(y - (h.offset || 0));
|
|
3482
|
+
A = h.options[H] || h.options.other;
|
|
3487
3483
|
}
|
|
3488
3484
|
if (!A)
|
|
3489
|
-
throw new Er(
|
|
3490
|
-
a.push.apply(a,
|
|
3485
|
+
throw new Er(h.value, y, Object.keys(h.options), u);
|
|
3486
|
+
a.push.apply(a, Dt(A.value, t, n, r, i, y - (h.offset || 0)));
|
|
3491
3487
|
continue;
|
|
3492
3488
|
}
|
|
3493
3489
|
}
|
|
3494
|
-
return
|
|
3490
|
+
return xs(a);
|
|
3495
3491
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return t ?
|
|
3498
|
-
return n[r] =
|
|
3492
|
+
function vs(e, t) {
|
|
3493
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3494
|
+
return n[r] = U(U({}, e[r]), t[r] || {}), n;
|
|
3499
3495
|
}, {})) : e;
|
|
3500
3496
|
}
|
|
3501
|
-
function
|
|
3497
|
+
function Ss(e, t) {
|
|
3502
3498
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3503
|
-
return n[r] =
|
|
3504
|
-
},
|
|
3499
|
+
return n[r] = vs(e[r], t[r]), n;
|
|
3500
|
+
}, U({}, e)) : e;
|
|
3505
3501
|
}
|
|
3506
|
-
function
|
|
3502
|
+
function hn(e) {
|
|
3507
3503
|
return {
|
|
3508
3504
|
create: function() {
|
|
3509
3505
|
return {
|
|
@@ -3517,35 +3513,35 @@ function mn(e) {
|
|
|
3517
3513
|
}
|
|
3518
3514
|
};
|
|
3519
3515
|
}
|
|
3520
|
-
function
|
|
3516
|
+
function As(e) {
|
|
3521
3517
|
return e === void 0 && (e = {
|
|
3522
3518
|
number: {},
|
|
3523
3519
|
dateTime: {},
|
|
3524
3520
|
pluralRules: {}
|
|
3525
3521
|
}), {
|
|
3526
|
-
getNumberFormat:
|
|
3522
|
+
getNumberFormat: un(function() {
|
|
3527
3523
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3528
3524
|
n[r] = arguments[r];
|
|
3529
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3525
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, an([void 0], n, !1)))();
|
|
3530
3526
|
}, {
|
|
3531
|
-
cache:
|
|
3532
|
-
strategy:
|
|
3527
|
+
cache: hn(e.number),
|
|
3528
|
+
strategy: ln.variadic
|
|
3533
3529
|
}),
|
|
3534
|
-
getDateTimeFormat:
|
|
3530
|
+
getDateTimeFormat: un(function() {
|
|
3535
3531
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3536
3532
|
n[r] = arguments[r];
|
|
3537
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3533
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, an([void 0], n, !1)))();
|
|
3538
3534
|
}, {
|
|
3539
|
-
cache:
|
|
3540
|
-
strategy:
|
|
3535
|
+
cache: hn(e.dateTime),
|
|
3536
|
+
strategy: ln.variadic
|
|
3541
3537
|
}),
|
|
3542
|
-
getPluralRules:
|
|
3538
|
+
getPluralRules: un(function() {
|
|
3543
3539
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3544
3540
|
n[r] = arguments[r];
|
|
3545
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3541
|
+
return new ((t = Intl.PluralRules).bind.apply(t, an([void 0], n, !1)))();
|
|
3546
3542
|
}, {
|
|
3547
|
-
cache:
|
|
3548
|
-
strategy:
|
|
3543
|
+
cache: hn(e.pluralRules),
|
|
3544
|
+
strategy: ln.variadic
|
|
3549
3545
|
})
|
|
3550
3546
|
};
|
|
3551
3547
|
}
|
|
@@ -3554,40 +3550,40 @@ var yi = (
|
|
|
3554
3550
|
function() {
|
|
3555
3551
|
function e(t, n, r, i) {
|
|
3556
3552
|
n === void 0 && (n = e.defaultLocale);
|
|
3557
|
-
var
|
|
3553
|
+
var o = this;
|
|
3558
3554
|
if (this.formatterCache = {
|
|
3559
3555
|
number: {},
|
|
3560
3556
|
dateTime: {},
|
|
3561
3557
|
pluralRules: {}
|
|
3562
3558
|
}, this.format = function(c) {
|
|
3563
|
-
var l =
|
|
3559
|
+
var l = o.formatToParts(c);
|
|
3564
3560
|
if (l.length === 1)
|
|
3565
3561
|
return l[0].value;
|
|
3566
|
-
var
|
|
3562
|
+
var h = l.reduce(function(_, y) {
|
|
3567
3563
|
return !_.length || y.type !== ce.literal || typeof _[_.length - 1] != "string" ? _.push(y.value) : _[_.length - 1] += y.value, _;
|
|
3568
3564
|
}, []);
|
|
3569
|
-
return
|
|
3565
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3570
3566
|
}, this.formatToParts = function(c) {
|
|
3571
|
-
return
|
|
3567
|
+
return Dt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3572
3568
|
}, this.resolvedOptions = function() {
|
|
3573
3569
|
var c;
|
|
3574
3570
|
return {
|
|
3575
|
-
locale: ((c =
|
|
3571
|
+
locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3576
3572
|
};
|
|
3577
3573
|
}, this.getAst = function() {
|
|
3578
|
-
return
|
|
3574
|
+
return o.ast;
|
|
3579
3575
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3580
3576
|
if (this.message = t, !e.__parse)
|
|
3581
3577
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3582
3578
|
var u = i || {};
|
|
3583
3579
|
u.formatters;
|
|
3584
|
-
var a =
|
|
3585
|
-
this.ast = e.__parse(t,
|
|
3580
|
+
var a = Do(u, ["formatters"]);
|
|
3581
|
+
this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
|
|
3586
3582
|
} else
|
|
3587
3583
|
this.ast = t;
|
|
3588
3584
|
if (!Array.isArray(this.ast))
|
|
3589
3585
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3590
|
-
this.formats =
|
|
3586
|
+
this.formats = Ss(e.formats, r), this.formatters = i && i.formatters || As(this.formatterCache);
|
|
3591
3587
|
}
|
|
3592
3588
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3593
3589
|
get: function() {
|
|
@@ -3600,7 +3596,7 @@ var yi = (
|
|
|
3600
3596
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3601
3597
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3602
3598
|
}
|
|
3603
|
-
}, e.__parse =
|
|
3599
|
+
}, e.__parse = bs, e.formats = {
|
|
3604
3600
|
number: {
|
|
3605
3601
|
integer: {
|
|
3606
3602
|
maximumFractionDigits: 0
|
|
@@ -3661,7 +3657,7 @@ var yi = (
|
|
|
3661
3657
|
}, e;
|
|
3662
3658
|
}()
|
|
3663
3659
|
);
|
|
3664
|
-
function
|
|
3660
|
+
function ws(e, t) {
|
|
3665
3661
|
if (t == null)
|
|
3666
3662
|
return;
|
|
3667
3663
|
if (t in e)
|
|
@@ -3671,9 +3667,9 @@ function Oo(e, t) {
|
|
|
3671
3667
|
for (let i = 0; i < n.length; i++)
|
|
3672
3668
|
if (typeof r == "object") {
|
|
3673
3669
|
if (i > 0) {
|
|
3674
|
-
const
|
|
3675
|
-
if (
|
|
3676
|
-
r = r[
|
|
3670
|
+
const o = n.slice(i, n.length).join(".");
|
|
3671
|
+
if (o in r) {
|
|
3672
|
+
r = r[o];
|
|
3677
3673
|
break;
|
|
3678
3674
|
}
|
|
3679
3675
|
}
|
|
@@ -3682,101 +3678,101 @@ function Oo(e, t) {
|
|
|
3682
3678
|
r = void 0;
|
|
3683
3679
|
return r;
|
|
3684
3680
|
}
|
|
3685
|
-
const
|
|
3681
|
+
const Ne = {}, Os = (e, t, n) => n && (t in Ne || (Ne[t] = {}), e in Ne[t] || (Ne[t][e] = n), n), xi = (e, t) => {
|
|
3686
3682
|
if (t == null)
|
|
3687
3683
|
return;
|
|
3688
|
-
if (t in
|
|
3689
|
-
return
|
|
3690
|
-
const n =
|
|
3684
|
+
if (t in Ne && e in Ne[t])
|
|
3685
|
+
return Ne[t][e];
|
|
3686
|
+
const n = Et(t);
|
|
3691
3687
|
for (let r = 0; r < n.length; r++) {
|
|
3692
|
-
const i = n[r],
|
|
3693
|
-
if (
|
|
3694
|
-
return
|
|
3688
|
+
const i = n[r], o = Cs(i, e);
|
|
3689
|
+
if (o)
|
|
3690
|
+
return Os(e, t, o);
|
|
3695
3691
|
}
|
|
3696
3692
|
};
|
|
3697
3693
|
let Pn;
|
|
3698
|
-
const
|
|
3699
|
-
function
|
|
3694
|
+
const bt = _t({});
|
|
3695
|
+
function Ms(e) {
|
|
3700
3696
|
return Pn[e] || null;
|
|
3701
3697
|
}
|
|
3702
|
-
function
|
|
3698
|
+
function Ti(e) {
|
|
3703
3699
|
return e in Pn;
|
|
3704
3700
|
}
|
|
3705
|
-
function
|
|
3706
|
-
if (!
|
|
3701
|
+
function Cs(e, t) {
|
|
3702
|
+
if (!Ti(e))
|
|
3707
3703
|
return null;
|
|
3708
|
-
const n =
|
|
3709
|
-
return
|
|
3704
|
+
const n = Ms(e);
|
|
3705
|
+
return ws(n, t);
|
|
3710
3706
|
}
|
|
3711
|
-
function
|
|
3707
|
+
function Ls(e) {
|
|
3712
3708
|
if (e == null)
|
|
3713
3709
|
return;
|
|
3714
|
-
const t =
|
|
3710
|
+
const t = Et(e);
|
|
3715
3711
|
for (let n = 0; n < t.length; n++) {
|
|
3716
3712
|
const r = t[n];
|
|
3717
|
-
if (
|
|
3713
|
+
if (Ti(r))
|
|
3718
3714
|
return r;
|
|
3719
3715
|
}
|
|
3720
3716
|
}
|
|
3721
|
-
function
|
|
3722
|
-
delete
|
|
3717
|
+
function vi(e, ...t) {
|
|
3718
|
+
delete Ne[e], bt.update((n) => (n[e] = Ro.all([n[e] || {}, ...t]), n));
|
|
3723
3719
|
}
|
|
3724
|
-
|
|
3725
|
-
[
|
|
3720
|
+
Ke(
|
|
3721
|
+
[bt],
|
|
3726
3722
|
([e]) => Object.keys(e)
|
|
3727
3723
|
);
|
|
3728
|
-
|
|
3729
|
-
const
|
|
3730
|
-
function
|
|
3731
|
-
|
|
3724
|
+
bt.subscribe((e) => Pn = e);
|
|
3725
|
+
const Bt = {};
|
|
3726
|
+
function Ns(e, t) {
|
|
3727
|
+
Bt[e].delete(t), Bt[e].size === 0 && delete Bt[e];
|
|
3732
3728
|
}
|
|
3733
3729
|
function Si(e) {
|
|
3734
|
-
return
|
|
3730
|
+
return Bt[e];
|
|
3735
3731
|
}
|
|
3736
|
-
function
|
|
3737
|
-
return
|
|
3732
|
+
function Hs(e) {
|
|
3733
|
+
return Et(e).map((t) => {
|
|
3738
3734
|
const n = Si(t);
|
|
3739
3735
|
return [t, n ? [...n] : []];
|
|
3740
3736
|
}).filter(([, t]) => t.length > 0);
|
|
3741
3737
|
}
|
|
3742
|
-
function
|
|
3743
|
-
return e == null ? !1 :
|
|
3738
|
+
function jt(e) {
|
|
3739
|
+
return e == null ? !1 : Et(e).some(
|
|
3744
3740
|
(t) => {
|
|
3745
3741
|
var n;
|
|
3746
3742
|
return (n = Si(t)) == null ? void 0 : n.size;
|
|
3747
3743
|
}
|
|
3748
3744
|
);
|
|
3749
3745
|
}
|
|
3750
|
-
function
|
|
3746
|
+
function Is(e, t) {
|
|
3751
3747
|
return Promise.all(
|
|
3752
|
-
t.map((r) => (
|
|
3753
|
-
).then((r) =>
|
|
3748
|
+
t.map((r) => (Ns(e, r), r().then((i) => i.default || i)))
|
|
3749
|
+
).then((r) => vi(e, ...r));
|
|
3754
3750
|
}
|
|
3755
3751
|
const ot = {};
|
|
3756
3752
|
function Ai(e) {
|
|
3757
|
-
if (!
|
|
3753
|
+
if (!jt(e))
|
|
3758
3754
|
return e in ot ? ot[e] : Promise.resolve();
|
|
3759
|
-
const t =
|
|
3755
|
+
const t = Hs(e);
|
|
3760
3756
|
return ot[e] = Promise.all(
|
|
3761
3757
|
t.map(
|
|
3762
|
-
([n, r]) =>
|
|
3758
|
+
([n, r]) => Is(n, r)
|
|
3763
3759
|
)
|
|
3764
3760
|
).then(() => {
|
|
3765
|
-
if (
|
|
3761
|
+
if (jt(e))
|
|
3766
3762
|
return Ai(e);
|
|
3767
3763
|
delete ot[e];
|
|
3768
3764
|
}), ot[e];
|
|
3769
3765
|
}
|
|
3770
|
-
var yr = Object.getOwnPropertySymbols,
|
|
3766
|
+
var yr = Object.getOwnPropertySymbols, Ps = Object.prototype.hasOwnProperty, Rs = Object.prototype.propertyIsEnumerable, Ds = (e, t) => {
|
|
3771
3767
|
var n = {};
|
|
3772
3768
|
for (var r in e)
|
|
3773
|
-
|
|
3769
|
+
Ps.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3774
3770
|
if (e != null && yr)
|
|
3775
3771
|
for (var r of yr(e))
|
|
3776
|
-
t.indexOf(r) < 0 &&
|
|
3772
|
+
t.indexOf(r) < 0 && Rs.call(e, r) && (n[r] = e[r]);
|
|
3777
3773
|
return n;
|
|
3778
3774
|
};
|
|
3779
|
-
const
|
|
3775
|
+
const Bs = {
|
|
3780
3776
|
number: {
|
|
3781
3777
|
scientific: { notation: "scientific" },
|
|
3782
3778
|
engineering: { notation: "engineering" },
|
|
@@ -3806,28 +3802,28 @@ const $o = {
|
|
|
3806
3802
|
}
|
|
3807
3803
|
}
|
|
3808
3804
|
};
|
|
3809
|
-
function
|
|
3805
|
+
function $s({ locale: e, id: t }) {
|
|
3810
3806
|
console.warn(
|
|
3811
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3807
|
+
`[svelte-i18n] The message "${t}" was not found in "${Et(
|
|
3812
3808
|
e
|
|
3813
|
-
).join('", "')}".${
|
|
3809
|
+
).join('", "')}".${jt(Ie()) ? `
|
|
3814
3810
|
|
|
3815
3811
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3816
3812
|
);
|
|
3817
3813
|
}
|
|
3818
|
-
const
|
|
3814
|
+
const Us = {
|
|
3819
3815
|
fallbackLocale: null,
|
|
3820
3816
|
loadingDelay: 200,
|
|
3821
|
-
formats:
|
|
3817
|
+
formats: Bs,
|
|
3822
3818
|
warnOnMissingMessages: !0,
|
|
3823
3819
|
handleMissingMessage: void 0,
|
|
3824
3820
|
ignoreTag: !0
|
|
3825
|
-
},
|
|
3826
|
-
function
|
|
3827
|
-
return
|
|
3821
|
+
}, ft = Us;
|
|
3822
|
+
function Je() {
|
|
3823
|
+
return ft;
|
|
3828
3824
|
}
|
|
3829
|
-
function
|
|
3830
|
-
const t = e, { formats: n } = t, r =
|
|
3825
|
+
function ks(e) {
|
|
3826
|
+
const t = e, { formats: n } = t, r = Ds(t, ["formats"]);
|
|
3831
3827
|
let i = e.fallbackLocale;
|
|
3832
3828
|
if (e.initialLocale)
|
|
3833
3829
|
try {
|
|
@@ -3837,152 +3833,152 @@ function Fo(e) {
|
|
|
3837
3833
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3838
3834
|
);
|
|
3839
3835
|
}
|
|
3840
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3836
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = $s : console.warn(
|
|
3841
3837
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3842
|
-
)), Object.assign(
|
|
3838
|
+
)), Object.assign(ft, r, { initialLocale: i }), n && ("number" in n && Object.assign(ft.formats.number, n.number), "date" in n && Object.assign(ft.formats.date, n.date), "time" in n && Object.assign(ft.formats.time, n.time)), De.set(i);
|
|
3843
3839
|
}
|
|
3844
|
-
const
|
|
3845
|
-
var
|
|
3840
|
+
const fn = _t(!1);
|
|
3841
|
+
var Fs = Object.defineProperty, Gs = Object.defineProperties, js = Object.getOwnPropertyDescriptors, xr = Object.getOwnPropertySymbols, zs = Object.prototype.hasOwnProperty, Ws = Object.prototype.propertyIsEnumerable, Tr = (e, t, n) => t in e ? Fs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vs = (e, t) => {
|
|
3846
3842
|
for (var n in t || (t = {}))
|
|
3847
|
-
|
|
3843
|
+
zs.call(t, n) && Tr(e, n, t[n]);
|
|
3848
3844
|
if (xr)
|
|
3849
3845
|
for (var n of xr(t))
|
|
3850
|
-
|
|
3846
|
+
Ws.call(t, n) && Tr(e, n, t[n]);
|
|
3851
3847
|
return e;
|
|
3852
|
-
},
|
|
3853
|
-
let
|
|
3854
|
-
const
|
|
3855
|
-
function
|
|
3848
|
+
}, Xs = (e, t) => Gs(e, js(t));
|
|
3849
|
+
let wn;
|
|
3850
|
+
const zt = _t(null);
|
|
3851
|
+
function vr(e) {
|
|
3856
3852
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3857
3853
|
}
|
|
3858
|
-
function
|
|
3859
|
-
const n =
|
|
3860
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3854
|
+
function Et(e, t = Je().fallbackLocale) {
|
|
3855
|
+
const n = vr(e);
|
|
3856
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...vr(t)])] : n;
|
|
3861
3857
|
}
|
|
3862
|
-
function
|
|
3863
|
-
return
|
|
3858
|
+
function Ie() {
|
|
3859
|
+
return wn ?? void 0;
|
|
3864
3860
|
}
|
|
3865
|
-
|
|
3866
|
-
|
|
3861
|
+
zt.subscribe((e) => {
|
|
3862
|
+
wn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3867
3863
|
});
|
|
3868
|
-
const
|
|
3869
|
-
if (e &&
|
|
3870
|
-
const { loadingDelay: t } =
|
|
3864
|
+
const Ys = (e) => {
|
|
3865
|
+
if (e && Ls(e) && jt(e)) {
|
|
3866
|
+
const { loadingDelay: t } = Je();
|
|
3871
3867
|
let n;
|
|
3872
|
-
return typeof window < "u" &&
|
|
3873
|
-
() =>
|
|
3868
|
+
return typeof window < "u" && Ie() != null && t ? n = window.setTimeout(
|
|
3869
|
+
() => fn.set(!0),
|
|
3874
3870
|
t
|
|
3875
|
-
) :
|
|
3876
|
-
|
|
3871
|
+
) : fn.set(!0), Ai(e).then(() => {
|
|
3872
|
+
zt.set(e);
|
|
3877
3873
|
}).finally(() => {
|
|
3878
|
-
clearTimeout(n),
|
|
3874
|
+
clearTimeout(n), fn.set(!1);
|
|
3879
3875
|
});
|
|
3880
3876
|
}
|
|
3881
|
-
return
|
|
3882
|
-
},
|
|
3883
|
-
set:
|
|
3884
|
-
}),
|
|
3877
|
+
return zt.set(e);
|
|
3878
|
+
}, De = Xs(Vs({}, zt), {
|
|
3879
|
+
set: Ys
|
|
3880
|
+
}), qt = (e) => {
|
|
3885
3881
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3886
3882
|
return (r) => {
|
|
3887
3883
|
const i = JSON.stringify(r);
|
|
3888
3884
|
return i in t ? t[i] : t[i] = e(r);
|
|
3889
3885
|
};
|
|
3890
3886
|
};
|
|
3891
|
-
var
|
|
3887
|
+
var Zs = Object.defineProperty, Wt = Object.getOwnPropertySymbols, wi = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, Sr = (e, t, n) => t in e ? Zs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Rn = (e, t) => {
|
|
3892
3888
|
for (var n in t || (t = {}))
|
|
3893
3889
|
wi.call(t, n) && Sr(e, n, t[n]);
|
|
3894
|
-
if (
|
|
3895
|
-
for (var n of
|
|
3890
|
+
if (Wt)
|
|
3891
|
+
for (var n of Wt(t))
|
|
3896
3892
|
Oi.call(t, n) && Sr(e, n, t[n]);
|
|
3897
3893
|
return e;
|
|
3898
|
-
},
|
|
3894
|
+
}, et = (e, t) => {
|
|
3899
3895
|
var n = {};
|
|
3900
3896
|
for (var r in e)
|
|
3901
3897
|
wi.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3902
|
-
if (e != null &&
|
|
3903
|
-
for (var r of
|
|
3898
|
+
if (e != null && Wt)
|
|
3899
|
+
for (var r of Wt(e))
|
|
3904
3900
|
t.indexOf(r) < 0 && Oi.call(e, r) && (n[r] = e[r]);
|
|
3905
3901
|
return n;
|
|
3906
3902
|
};
|
|
3907
|
-
const
|
|
3908
|
-
const { formats: n } =
|
|
3903
|
+
const gt = (e, t) => {
|
|
3904
|
+
const { formats: n } = Je();
|
|
3909
3905
|
if (e in n && t in n[e])
|
|
3910
3906
|
return n[e][t];
|
|
3911
3907
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3912
|
-
},
|
|
3908
|
+
}, qs = qt(
|
|
3913
3909
|
(e) => {
|
|
3914
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3910
|
+
var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
|
|
3915
3911
|
if (n == null)
|
|
3916
3912
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3917
|
-
return r && (i =
|
|
3913
|
+
return r && (i = gt("number", r)), new Intl.NumberFormat(n, i);
|
|
3918
3914
|
}
|
|
3919
|
-
),
|
|
3915
|
+
), Js = qt(
|
|
3920
3916
|
(e) => {
|
|
3921
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3917
|
+
var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
|
|
3922
3918
|
if (n == null)
|
|
3923
3919
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3924
|
-
return r ? i =
|
|
3920
|
+
return r ? i = gt("date", r) : Object.keys(i).length === 0 && (i = gt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3925
3921
|
}
|
|
3926
|
-
),
|
|
3922
|
+
), Qs = qt(
|
|
3927
3923
|
(e) => {
|
|
3928
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3924
|
+
var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
|
|
3929
3925
|
if (n == null)
|
|
3930
3926
|
throw new Error(
|
|
3931
3927
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3932
3928
|
);
|
|
3933
|
-
return r ? i =
|
|
3929
|
+
return r ? i = gt("time", r) : Object.keys(i).length === 0 && (i = gt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3934
3930
|
}
|
|
3935
|
-
),
|
|
3931
|
+
), Ks = (e = {}) => {
|
|
3936
3932
|
var t = e, {
|
|
3937
|
-
locale: n =
|
|
3938
|
-
} = t, r =
|
|
3933
|
+
locale: n = Ie()
|
|
3934
|
+
} = t, r = et(t, [
|
|
3939
3935
|
"locale"
|
|
3940
3936
|
]);
|
|
3941
|
-
return
|
|
3942
|
-
},
|
|
3937
|
+
return qs(Rn({ locale: n }, r));
|
|
3938
|
+
}, ea = (e = {}) => {
|
|
3943
3939
|
var t = e, {
|
|
3944
|
-
locale: n =
|
|
3945
|
-
} = t, r =
|
|
3940
|
+
locale: n = Ie()
|
|
3941
|
+
} = t, r = et(t, [
|
|
3946
3942
|
"locale"
|
|
3947
3943
|
]);
|
|
3948
|
-
return
|
|
3949
|
-
},
|
|
3944
|
+
return Js(Rn({ locale: n }, r));
|
|
3945
|
+
}, ta = (e = {}) => {
|
|
3950
3946
|
var t = e, {
|
|
3951
|
-
locale: n =
|
|
3952
|
-
} = t, r =
|
|
3947
|
+
locale: n = Ie()
|
|
3948
|
+
} = t, r = et(t, [
|
|
3953
3949
|
"locale"
|
|
3954
3950
|
]);
|
|
3955
|
-
return
|
|
3956
|
-
},
|
|
3951
|
+
return Qs(Rn({ locale: n }, r));
|
|
3952
|
+
}, na = qt(
|
|
3957
3953
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3958
|
-
(e, t =
|
|
3959
|
-
ignoreTag:
|
|
3954
|
+
(e, t = Ie()) => new yi(e, t, Je().formats, {
|
|
3955
|
+
ignoreTag: Je().ignoreTag
|
|
3960
3956
|
})
|
|
3961
|
-
),
|
|
3962
|
-
var n, r, i,
|
|
3957
|
+
), ra = (e, t = {}) => {
|
|
3958
|
+
var n, r, i, o;
|
|
3963
3959
|
let u = t;
|
|
3964
3960
|
typeof e == "object" && (u = e, e = u.id);
|
|
3965
3961
|
const {
|
|
3966
3962
|
values: a,
|
|
3967
|
-
locale: c =
|
|
3963
|
+
locale: c = Ie(),
|
|
3968
3964
|
default: l
|
|
3969
3965
|
} = u;
|
|
3970
3966
|
if (c == null)
|
|
3971
3967
|
throw new Error(
|
|
3972
3968
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3973
3969
|
);
|
|
3974
|
-
let
|
|
3975
|
-
if (!
|
|
3976
|
-
|
|
3977
|
-
else if (typeof
|
|
3970
|
+
let h = xi(e, c);
|
|
3971
|
+
if (!h)
|
|
3972
|
+
h = (o = (i = (r = (n = Je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3973
|
+
else if (typeof h != "string")
|
|
3978
3974
|
return console.warn(
|
|
3979
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3980
|
-
),
|
|
3975
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3976
|
+
), h;
|
|
3981
3977
|
if (!a)
|
|
3982
|
-
return
|
|
3983
|
-
let _ =
|
|
3978
|
+
return h;
|
|
3979
|
+
let _ = h;
|
|
3984
3980
|
try {
|
|
3985
|
-
_ =
|
|
3981
|
+
_ = na(h, c).format(a);
|
|
3986
3982
|
} catch (y) {
|
|
3987
3983
|
y instanceof Error && console.warn(
|
|
3988
3984
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3990,18 +3986,18 @@ const _t = (e, t) => {
|
|
|
3990
3986
|
);
|
|
3991
3987
|
}
|
|
3992
3988
|
return _;
|
|
3993
|
-
},
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3989
|
+
}, ia = (e, t) => ta(t).format(e), oa = (e, t) => ea(t).format(e), sa = (e, t) => Ks(t).format(e), aa = (e, t = Ie()) => xi(e, t), ua = Ke([De, bt], () => ra);
|
|
3990
|
+
Ke([De], () => ia);
|
|
3991
|
+
Ke([De], () => oa);
|
|
3992
|
+
Ke([De], () => sa);
|
|
3993
|
+
Ke([De, bt], () => aa);
|
|
3998
3994
|
function Ar(e, t) {
|
|
3999
|
-
|
|
3995
|
+
vi(e, t);
|
|
4000
3996
|
}
|
|
4001
|
-
function
|
|
4002
|
-
|
|
3997
|
+
function la(e) {
|
|
3998
|
+
ks({
|
|
4003
3999
|
fallbackLocale: "en"
|
|
4004
|
-
}),
|
|
4000
|
+
}), De.set(e);
|
|
4005
4001
|
}
|
|
4006
4002
|
const wr = {
|
|
4007
4003
|
en: {
|
|
@@ -4030,73 +4026,73 @@ const wr = {
|
|
|
4030
4026
|
const {
|
|
4031
4027
|
entries: Mi,
|
|
4032
4028
|
setPrototypeOf: Or,
|
|
4033
|
-
isFrozen:
|
|
4029
|
+
isFrozen: ca,
|
|
4034
4030
|
getPrototypeOf: ha,
|
|
4035
|
-
getOwnPropertyDescriptor:
|
|
4031
|
+
getOwnPropertyDescriptor: fa
|
|
4036
4032
|
} = Object;
|
|
4037
4033
|
let {
|
|
4038
|
-
freeze:
|
|
4034
|
+
freeze: he,
|
|
4039
4035
|
seal: be,
|
|
4040
4036
|
create: Ci
|
|
4041
4037
|
} = Object, {
|
|
4042
|
-
apply:
|
|
4043
|
-
construct:
|
|
4038
|
+
apply: On,
|
|
4039
|
+
construct: Mn
|
|
4044
4040
|
} = typeof Reflect < "u" && Reflect;
|
|
4045
|
-
|
|
4041
|
+
he || (he = function(t) {
|
|
4046
4042
|
return t;
|
|
4047
4043
|
});
|
|
4048
4044
|
be || (be = function(t) {
|
|
4049
4045
|
return t;
|
|
4050
4046
|
});
|
|
4051
|
-
|
|
4047
|
+
On || (On = function(t, n, r) {
|
|
4052
4048
|
return t.apply(n, r);
|
|
4053
4049
|
});
|
|
4054
|
-
|
|
4050
|
+
Mn || (Mn = function(t, n) {
|
|
4055
4051
|
return new t(...n);
|
|
4056
4052
|
});
|
|
4057
|
-
const
|
|
4053
|
+
const Mt = pe(Array.prototype.forEach), Mr = pe(Array.prototype.pop), st = pe(Array.prototype.push), $t = pe(String.prototype.toLowerCase), mn = pe(String.prototype.toString), Cr = pe(String.prototype.match), at = pe(String.prototype.replace), ma = pe(String.prototype.indexOf), da = pe(String.prototype.trim), xe = pe(Object.prototype.hasOwnProperty), ue = pe(RegExp.prototype.test), ut = pa(TypeError);
|
|
4058
4054
|
function pe(e) {
|
|
4059
4055
|
return function(t) {
|
|
4060
4056
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4061
4057
|
r[i - 1] = arguments[i];
|
|
4062
|
-
return
|
|
4058
|
+
return On(e, t, r);
|
|
4063
4059
|
};
|
|
4064
4060
|
}
|
|
4065
|
-
function
|
|
4061
|
+
function pa(e) {
|
|
4066
4062
|
return function() {
|
|
4067
4063
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4068
4064
|
n[r] = arguments[r];
|
|
4069
|
-
return
|
|
4065
|
+
return Mn(e, n);
|
|
4070
4066
|
};
|
|
4071
4067
|
}
|
|
4072
4068
|
function P(e, t) {
|
|
4073
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4069
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : $t;
|
|
4074
4070
|
Or && Or(e, null);
|
|
4075
4071
|
let r = t.length;
|
|
4076
4072
|
for (; r--; ) {
|
|
4077
4073
|
let i = t[r];
|
|
4078
4074
|
if (typeof i == "string") {
|
|
4079
|
-
const
|
|
4080
|
-
|
|
4075
|
+
const o = n(i);
|
|
4076
|
+
o !== i && (ca(t) || (t[r] = o), i = o);
|
|
4081
4077
|
}
|
|
4082
4078
|
e[i] = !0;
|
|
4083
4079
|
}
|
|
4084
4080
|
return e;
|
|
4085
4081
|
}
|
|
4086
|
-
function
|
|
4082
|
+
function ga(e) {
|
|
4087
4083
|
for (let t = 0; t < e.length; t++)
|
|
4088
4084
|
xe(e, t) || (e[t] = null);
|
|
4089
4085
|
return e;
|
|
4090
4086
|
}
|
|
4091
|
-
function
|
|
4087
|
+
function Re(e) {
|
|
4092
4088
|
const t = Ci(null);
|
|
4093
4089
|
for (const [n, r] of Mi(e))
|
|
4094
|
-
xe(e, n) && (Array.isArray(r) ? t[n] =
|
|
4090
|
+
xe(e, n) && (Array.isArray(r) ? t[n] = ga(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Re(r) : t[n] = r);
|
|
4095
4091
|
return t;
|
|
4096
4092
|
}
|
|
4097
|
-
function
|
|
4093
|
+
function lt(e, t) {
|
|
4098
4094
|
for (; e !== null; ) {
|
|
4099
|
-
const r =
|
|
4095
|
+
const r = fa(e, t);
|
|
4100
4096
|
if (r) {
|
|
4101
4097
|
if (r.get)
|
|
4102
4098
|
return pe(r.get);
|
|
@@ -4110,44 +4106,53 @@ function ct(e, t) {
|
|
|
4110
4106
|
}
|
|
4111
4107
|
return n;
|
|
4112
4108
|
}
|
|
4113
|
-
const Lr =
|
|
4109
|
+
const Lr = he(["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"]), dn = he(["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"]), pn = he(["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"]), _a = he(["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"]), gn = he(["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"]), ba = he(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Nr = he(["#text"]), Hr = he(["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"]), _n = he(["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 = he(["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"]), Ct = he(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ea = be(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ya = be(/<%[\w\W]*|[\w\W]*%>/gm), xa = be(/\${[\w\W]*}/gm), Ta = be(/^data-[\-\w.\u00B7-\uFFFF]/), va = be(/^aria-[\-\w]+$/), Li = be(
|
|
4114
4110
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4115
4111
|
// eslint-disable-line no-useless-escape
|
|
4116
|
-
),
|
|
4112
|
+
), Sa = be(/^(?:\w+script|data):/i), Aa = be(
|
|
4117
4113
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4118
4114
|
// eslint-disable-line no-control-regex
|
|
4119
|
-
), Ni = be(/^html$/i),
|
|
4115
|
+
), Ni = be(/^html$/i), wa = be(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4120
4116
|
var Pr = /* @__PURE__ */ Object.freeze({
|
|
4121
4117
|
__proto__: null,
|
|
4122
|
-
MUSTACHE_EXPR:
|
|
4123
|
-
ERB_EXPR:
|
|
4124
|
-
TMPLIT_EXPR:
|
|
4118
|
+
MUSTACHE_EXPR: Ea,
|
|
4119
|
+
ERB_EXPR: ya,
|
|
4120
|
+
TMPLIT_EXPR: xa,
|
|
4125
4121
|
DATA_ATTR: Ta,
|
|
4126
|
-
ARIA_ATTR:
|
|
4122
|
+
ARIA_ATTR: va,
|
|
4127
4123
|
IS_ALLOWED_URI: Li,
|
|
4128
|
-
IS_SCRIPT_OR_DATA:
|
|
4129
|
-
ATTR_WHITESPACE:
|
|
4124
|
+
IS_SCRIPT_OR_DATA: Sa,
|
|
4125
|
+
ATTR_WHITESPACE: Aa,
|
|
4130
4126
|
DOCTYPE_NAME: Ni,
|
|
4131
|
-
CUSTOM_ELEMENT:
|
|
4127
|
+
CUSTOM_ELEMENT: wa
|
|
4132
4128
|
});
|
|
4133
|
-
const
|
|
4129
|
+
const ct = {
|
|
4134
4130
|
element: 1,
|
|
4131
|
+
attribute: 2,
|
|
4135
4132
|
text: 3,
|
|
4133
|
+
cdataSection: 4,
|
|
4134
|
+
entityReference: 5,
|
|
4135
|
+
// Deprecated
|
|
4136
|
+
entityNode: 6,
|
|
4136
4137
|
// Deprecated
|
|
4137
4138
|
progressingInstruction: 7,
|
|
4138
4139
|
comment: 8,
|
|
4139
|
-
document: 9
|
|
4140
|
-
|
|
4140
|
+
document: 9,
|
|
4141
|
+
documentType: 10,
|
|
4142
|
+
documentFragment: 11,
|
|
4143
|
+
notation: 12
|
|
4144
|
+
// Deprecated
|
|
4145
|
+
}, Oa = function() {
|
|
4141
4146
|
return typeof window > "u" ? null : window;
|
|
4142
|
-
},
|
|
4147
|
+
}, Ma = function(t, n) {
|
|
4143
4148
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4144
4149
|
return null;
|
|
4145
4150
|
let r = null;
|
|
4146
4151
|
const i = "data-tt-policy-suffix";
|
|
4147
4152
|
n && n.hasAttribute(i) && (r = n.getAttribute(i));
|
|
4148
|
-
const
|
|
4153
|
+
const o = "dompurify" + (r ? "#" + r : "");
|
|
4149
4154
|
try {
|
|
4150
|
-
return t.createPolicy(
|
|
4155
|
+
return t.createPolicy(o, {
|
|
4151
4156
|
createHTML(u) {
|
|
4152
4157
|
return u;
|
|
4153
4158
|
},
|
|
@@ -4156,59 +4161,59 @@ const ft = {
|
|
|
4156
4161
|
}
|
|
4157
4162
|
});
|
|
4158
4163
|
} catch {
|
|
4159
|
-
return console.warn("TrustedTypes policy " +
|
|
4164
|
+
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
4160
4165
|
}
|
|
4161
4166
|
};
|
|
4162
4167
|
function Hi() {
|
|
4163
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4168
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Oa();
|
|
4164
4169
|
const t = (w) => Hi(w);
|
|
4165
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4170
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== ct.document)
|
|
4166
4171
|
return t.isSupported = !1, t;
|
|
4167
4172
|
let {
|
|
4168
4173
|
document: n
|
|
4169
4174
|
} = e;
|
|
4170
4175
|
const r = n, i = r.currentScript, {
|
|
4171
|
-
DocumentFragment:
|
|
4176
|
+
DocumentFragment: o,
|
|
4172
4177
|
HTMLTemplateElement: u,
|
|
4173
4178
|
Node: a,
|
|
4174
4179
|
Element: c,
|
|
4175
4180
|
NodeFilter: l,
|
|
4176
|
-
NamedNodeMap:
|
|
4181
|
+
NamedNodeMap: h = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
4177
4182
|
HTMLFormElement: _,
|
|
4178
4183
|
DOMParser: y,
|
|
4179
4184
|
trustedTypes: M
|
|
4180
|
-
} = e, b = c.prototype, d =
|
|
4185
|
+
} = e, b = c.prototype, d = lt(b, "cloneNode"), C = lt(b, "remove"), G = lt(b, "nextSibling"), $ = lt(b, "childNodes"), A = lt(b, "parentNode");
|
|
4181
4186
|
if (typeof u == "function") {
|
|
4182
4187
|
const w = n.createElement("template");
|
|
4183
4188
|
w.content && w.content.ownerDocument && (n = w.content.ownerDocument);
|
|
4184
4189
|
}
|
|
4185
4190
|
let H, R = "";
|
|
4186
4191
|
const {
|
|
4187
|
-
implementation:
|
|
4188
|
-
createNodeIterator:
|
|
4189
|
-
createDocumentFragment:
|
|
4192
|
+
implementation: k,
|
|
4193
|
+
createNodeIterator: Z,
|
|
4194
|
+
createDocumentFragment: X,
|
|
4190
4195
|
getElementsByTagName: Q
|
|
4191
4196
|
} = n, {
|
|
4192
|
-
importNode:
|
|
4197
|
+
importNode: j
|
|
4193
4198
|
} = r;
|
|
4194
4199
|
let O = {};
|
|
4195
|
-
t.isSupported = typeof Mi == "function" && typeof A == "function" &&
|
|
4200
|
+
t.isSupported = typeof Mi == "function" && typeof A == "function" && k && k.createHTMLDocument !== void 0;
|
|
4196
4201
|
const {
|
|
4197
4202
|
MUSTACHE_EXPR: ne,
|
|
4198
|
-
ERB_EXPR:
|
|
4199
|
-
TMPLIT_EXPR:
|
|
4203
|
+
ERB_EXPR: fe,
|
|
4204
|
+
TMPLIT_EXPR: v,
|
|
4200
4205
|
DATA_ATTR: E,
|
|
4201
4206
|
ARIA_ATTR: g,
|
|
4202
|
-
IS_SCRIPT_OR_DATA:
|
|
4203
|
-
ATTR_WHITESPACE:
|
|
4207
|
+
IS_SCRIPT_OR_DATA: T,
|
|
4208
|
+
ATTR_WHITESPACE: f,
|
|
4204
4209
|
CUSTOM_ELEMENT: x
|
|
4205
4210
|
} = Pr;
|
|
4206
4211
|
let {
|
|
4207
4212
|
IS_ALLOWED_URI: L
|
|
4208
4213
|
} = Pr, N = null;
|
|
4209
|
-
const
|
|
4214
|
+
const W = P({}, [...Lr, ...dn, ...pn, ...gn, ...Nr]);
|
|
4210
4215
|
let I = null;
|
|
4211
|
-
const q = P({}, [...Hr, ...
|
|
4216
|
+
const q = P({}, [...Hr, ..._n, ...Ir, ...Ct]);
|
|
4212
4217
|
let m = Object.seal(Ci(null, {
|
|
4213
4218
|
tagNameCheck: {
|
|
4214
4219
|
writable: !0,
|
|
@@ -4228,160 +4233,160 @@ function Hi() {
|
|
|
4228
4233
|
enumerable: !0,
|
|
4229
4234
|
value: !1
|
|
4230
4235
|
}
|
|
4231
|
-
})),
|
|
4236
|
+
})), F = null, ee = null, K = !0, Ee = !0, ie = !1, ye = !0, _e = !1, Ce = !0, Pe = !1, Jt = !1, Qt = !1, Be = !1, yt = !1, xt = !1, Dn = !0, Bn = !1;
|
|
4232
4237
|
const Ri = "user-content-";
|
|
4233
|
-
let
|
|
4238
|
+
let Kt = !0, tt = !1, $e = {}, Ue = null;
|
|
4234
4239
|
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
4240
|
let Un = null;
|
|
4236
4241
|
const kn = P({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4237
|
-
let
|
|
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",
|
|
4239
|
-
let
|
|
4240
|
-
const Di = P({}, [Tt,
|
|
4241
|
-
let
|
|
4242
|
+
let en = null;
|
|
4243
|
+
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", vt = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
|
|
4244
|
+
let ke = we, tn = !1, nn = null;
|
|
4245
|
+
const Di = P({}, [Tt, vt, we], mn);
|
|
4246
|
+
let nt = null;
|
|
4242
4247
|
const Bi = ["application/xhtml+xml", "text/html"], $i = "text/html";
|
|
4243
|
-
let re = null,
|
|
4244
|
-
const Ui = n.createElement("form"), Gn = function(
|
|
4245
|
-
return
|
|
4246
|
-
},
|
|
4247
|
-
let
|
|
4248
|
-
if (!(
|
|
4249
|
-
if ((!
|
|
4250
|
-
Bi.indexOf(
|
|
4251
|
-
|
|
4248
|
+
let re = null, Fe = null;
|
|
4249
|
+
const Ui = n.createElement("form"), Gn = function(s) {
|
|
4250
|
+
return s instanceof RegExp || s instanceof Function;
|
|
4251
|
+
}, rn = function() {
|
|
4252
|
+
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4253
|
+
if (!(Fe && Fe === s)) {
|
|
4254
|
+
if ((!s || typeof s != "object") && (s = {}), s = Re(s), nt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4255
|
+
Bi.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? $i : s.PARSER_MEDIA_TYPE, re = nt === "application/xhtml+xml" ? mn : $t, N = xe(s, "ALLOWED_TAGS") ? P({}, s.ALLOWED_TAGS, re) : W, I = xe(s, "ALLOWED_ATTR") ? P({}, s.ALLOWED_ATTR, re) : q, nn = xe(s, "ALLOWED_NAMESPACES") ? P({}, s.ALLOWED_NAMESPACES, mn) : Di, en = xe(s, "ADD_URI_SAFE_ATTR") ? P(
|
|
4256
|
+
Re(Fn),
|
|
4252
4257
|
// eslint-disable-line indent
|
|
4253
|
-
|
|
4258
|
+
s.ADD_URI_SAFE_ATTR,
|
|
4254
4259
|
// eslint-disable-line indent
|
|
4255
4260
|
re
|
|
4256
4261
|
// eslint-disable-line indent
|
|
4257
|
-
) : Fn, Un = xe(
|
|
4258
|
-
|
|
4262
|
+
) : Fn, Un = xe(s, "ADD_DATA_URI_TAGS") ? P(
|
|
4263
|
+
Re(kn),
|
|
4259
4264
|
// eslint-disable-line indent
|
|
4260
|
-
|
|
4265
|
+
s.ADD_DATA_URI_TAGS,
|
|
4261
4266
|
// eslint-disable-line indent
|
|
4262
4267
|
re
|
|
4263
4268
|
// eslint-disable-line indent
|
|
4264
|
-
) : kn,
|
|
4265
|
-
if (typeof
|
|
4266
|
-
throw
|
|
4267
|
-
if (typeof
|
|
4268
|
-
throw
|
|
4269
|
-
H =
|
|
4269
|
+
) : kn, Ue = xe(s, "FORBID_CONTENTS") ? P({}, s.FORBID_CONTENTS, re) : $n, F = xe(s, "FORBID_TAGS") ? P({}, s.FORBID_TAGS, re) : {}, ee = xe(s, "FORBID_ATTR") ? P({}, s.FORBID_ATTR, re) : {}, $e = xe(s, "USE_PROFILES") ? s.USE_PROFILES : !1, K = s.ALLOW_ARIA_ATTR !== !1, Ee = s.ALLOW_DATA_ATTR !== !1, ie = s.ALLOW_UNKNOWN_PROTOCOLS || !1, ye = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _e = s.SAFE_FOR_TEMPLATES || !1, Ce = s.SAFE_FOR_XML !== !1, Pe = s.WHOLE_DOCUMENT || !1, Be = s.RETURN_DOM || !1, yt = s.RETURN_DOM_FRAGMENT || !1, xt = s.RETURN_TRUSTED_TYPE || !1, Qt = s.FORCE_BODY || !1, Dn = s.SANITIZE_DOM !== !1, Bn = s.SANITIZE_NAMED_PROPS || !1, Kt = s.KEEP_CONTENT !== !1, tt = s.IN_PLACE || !1, L = s.ALLOWED_URI_REGEXP || Li, ke = s.NAMESPACE || we, m = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && Gn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (m.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && Gn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (m.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (m.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), _e && (Ee = !1), yt && (Be = !0), $e && (N = P({}, Nr), I = [], $e.html === !0 && (P(N, Lr), P(I, Hr)), $e.svg === !0 && (P(N, dn), P(I, _n), P(I, Ct)), $e.svgFilters === !0 && (P(N, pn), P(I, _n), P(I, Ct)), $e.mathMl === !0 && (P(N, gn), P(I, Ir), P(I, Ct))), s.ADD_TAGS && (N === W && (N = Re(N)), P(N, s.ADD_TAGS, re)), s.ADD_ATTR && (I === q && (I = Re(I)), P(I, s.ADD_ATTR, re)), s.ADD_URI_SAFE_ATTR && P(en, s.ADD_URI_SAFE_ATTR, re), s.FORBID_CONTENTS && (Ue === $n && (Ue = Re(Ue)), P(Ue, s.FORBID_CONTENTS, re)), Kt && (N["#text"] = !0), Pe && P(N, ["html", "head", "body"]), N.table && (P(N, ["tbody"]), delete F.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4270
|
+
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4271
|
+
throw ut('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4272
|
+
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4273
|
+
throw ut('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4274
|
+
H = s.TRUSTED_TYPES_POLICY, R = H.createHTML("");
|
|
4270
4275
|
} else
|
|
4271
|
-
H === void 0 && (H =
|
|
4272
|
-
|
|
4276
|
+
H === void 0 && (H = Ma(M, i)), H !== null && typeof R == "string" && (R = H.createHTML(""));
|
|
4277
|
+
he && he(s), Fe = s;
|
|
4273
4278
|
}
|
|
4274
|
-
}, jn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), zn = P({}, ["foreignobject", "annotation-xml"]), ki = P({}, ["title", "style", "font", "a", "script"]), Wn = P({}, [...
|
|
4275
|
-
let p = A(
|
|
4279
|
+
}, jn = P({}, ["mi", "mo", "mn", "ms", "mtext"]), zn = P({}, ["foreignobject", "annotation-xml"]), ki = P({}, ["title", "style", "font", "a", "script"]), Wn = P({}, [...dn, ...pn, ..._a]), Vn = P({}, [...gn, ...ba]), Fi = function(s) {
|
|
4280
|
+
let p = A(s);
|
|
4276
4281
|
(!p || !p.tagName) && (p = {
|
|
4277
|
-
namespaceURI:
|
|
4282
|
+
namespaceURI: ke,
|
|
4278
4283
|
tagName: "template"
|
|
4279
4284
|
});
|
|
4280
|
-
const S =
|
|
4281
|
-
return
|
|
4282
|
-
},
|
|
4283
|
-
|
|
4284
|
-
element:
|
|
4285
|
+
const S = $t(s.tagName), V = $t(p.tagName);
|
|
4286
|
+
return nn[s.namespaceURI] ? s.namespaceURI === vt ? p.namespaceURI === we ? S === "svg" : p.namespaceURI === Tt ? S === "svg" && (V === "annotation-xml" || jn[V]) : !!Wn[S] : s.namespaceURI === Tt ? p.namespaceURI === we ? S === "math" : p.namespaceURI === vt ? S === "math" && zn[V] : !!Vn[S] : s.namespaceURI === we ? p.namespaceURI === vt && !zn[V] || p.namespaceURI === Tt && !jn[V] ? !1 : !Vn[S] && (ki[S] || !Wn[S]) : !!(nt === "application/xhtml+xml" && nn[s.namespaceURI]) : !1;
|
|
4287
|
+
}, Te = function(s) {
|
|
4288
|
+
st(t.removed, {
|
|
4289
|
+
element: s
|
|
4285
4290
|
});
|
|
4286
4291
|
try {
|
|
4287
|
-
A(
|
|
4292
|
+
A(s).removeChild(s);
|
|
4288
4293
|
} catch {
|
|
4289
|
-
C(
|
|
4294
|
+
C(s);
|
|
4290
4295
|
}
|
|
4291
|
-
},
|
|
4296
|
+
}, St = function(s, p) {
|
|
4292
4297
|
try {
|
|
4293
|
-
|
|
4294
|
-
attribute: p.getAttributeNode(
|
|
4298
|
+
st(t.removed, {
|
|
4299
|
+
attribute: p.getAttributeNode(s),
|
|
4295
4300
|
from: p
|
|
4296
4301
|
});
|
|
4297
4302
|
} catch {
|
|
4298
|
-
|
|
4303
|
+
st(t.removed, {
|
|
4299
4304
|
attribute: null,
|
|
4300
4305
|
from: p
|
|
4301
4306
|
});
|
|
4302
4307
|
}
|
|
4303
|
-
if (p.removeAttribute(
|
|
4304
|
-
if (
|
|
4308
|
+
if (p.removeAttribute(s), s === "is" && !I[s])
|
|
4309
|
+
if (Be || yt)
|
|
4305
4310
|
try {
|
|
4306
|
-
|
|
4311
|
+
Te(p);
|
|
4307
4312
|
} catch {
|
|
4308
4313
|
}
|
|
4309
4314
|
else
|
|
4310
4315
|
try {
|
|
4311
|
-
p.setAttribute(
|
|
4316
|
+
p.setAttribute(s, "");
|
|
4312
4317
|
} catch {
|
|
4313
4318
|
}
|
|
4314
|
-
}, Xn = function(
|
|
4319
|
+
}, Xn = function(s) {
|
|
4315
4320
|
let p = null, S = null;
|
|
4316
|
-
if (
|
|
4317
|
-
|
|
4321
|
+
if (Qt)
|
|
4322
|
+
s = "<remove></remove>" + s;
|
|
4318
4323
|
else {
|
|
4319
|
-
const
|
|
4320
|
-
S =
|
|
4324
|
+
const oe = Cr(s, /^[\r\n\t ]+/);
|
|
4325
|
+
S = oe && oe[0];
|
|
4321
4326
|
}
|
|
4322
|
-
|
|
4323
|
-
const
|
|
4324
|
-
if (
|
|
4327
|
+
nt === "application/xhtml+xml" && ke === we && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4328
|
+
const V = H ? H.createHTML(s) : s;
|
|
4329
|
+
if (ke === we)
|
|
4325
4330
|
try {
|
|
4326
|
-
p = new y().parseFromString(
|
|
4331
|
+
p = new y().parseFromString(V, nt);
|
|
4327
4332
|
} catch {
|
|
4328
4333
|
}
|
|
4329
4334
|
if (!p || !p.documentElement) {
|
|
4330
|
-
p =
|
|
4335
|
+
p = k.createDocument(ke, "template", null);
|
|
4331
4336
|
try {
|
|
4332
|
-
p.documentElement.innerHTML =
|
|
4337
|
+
p.documentElement.innerHTML = tn ? R : V;
|
|
4333
4338
|
} catch {
|
|
4334
4339
|
}
|
|
4335
4340
|
}
|
|
4336
|
-
const
|
|
4337
|
-
return
|
|
4338
|
-
}, Yn = function(
|
|
4339
|
-
return
|
|
4340
|
-
|
|
4341
|
-
|
|
4341
|
+
const se = p.body || p.documentElement;
|
|
4342
|
+
return s && S && se.insertBefore(n.createTextNode(S), se.childNodes[0] || null), ke === we ? Q.call(p, Pe ? "html" : "body")[0] : Pe ? p.documentElement : se;
|
|
4343
|
+
}, Yn = function(s) {
|
|
4344
|
+
return Z.call(
|
|
4345
|
+
s.ownerDocument || s,
|
|
4346
|
+
s,
|
|
4342
4347
|
// eslint-disable-next-line no-bitwise
|
|
4343
4348
|
l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
|
|
4344
4349
|
null
|
|
4345
4350
|
);
|
|
4346
|
-
}, Zn = function(
|
|
4347
|
-
return
|
|
4348
|
-
}, qn = function(
|
|
4349
|
-
return typeof a == "function" &&
|
|
4350
|
-
},
|
|
4351
|
-
O[
|
|
4352
|
-
|
|
4351
|
+
}, Zn = function(s) {
|
|
4352
|
+
return s instanceof _ && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof h) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
4353
|
+
}, qn = function(s) {
|
|
4354
|
+
return typeof a == "function" && s instanceof a;
|
|
4355
|
+
}, Oe = function(s, p, S) {
|
|
4356
|
+
O[s] && Mt(O[s], (V) => {
|
|
4357
|
+
V.call(t, p, S, Fe);
|
|
4353
4358
|
});
|
|
4354
|
-
}, Jn = function(
|
|
4359
|
+
}, Jn = function(s) {
|
|
4355
4360
|
let p = null;
|
|
4356
|
-
if (
|
|
4357
|
-
return
|
|
4358
|
-
const S = re(
|
|
4359
|
-
if (
|
|
4361
|
+
if (Oe("beforeSanitizeElements", s, null), Zn(s))
|
|
4362
|
+
return Te(s), !0;
|
|
4363
|
+
const S = re(s.nodeName);
|
|
4364
|
+
if (Oe("uponSanitizeElement", s, {
|
|
4360
4365
|
tagName: S,
|
|
4361
4366
|
allowedTags: N
|
|
4362
|
-
}),
|
|
4363
|
-
return
|
|
4364
|
-
if (!N[S] ||
|
|
4365
|
-
if (!
|
|
4367
|
+
}), s.hasChildNodes() && !qn(s.firstElementChild) && ue(/<[/\w]/g, s.innerHTML) && ue(/<[/\w]/g, s.textContent) || s.nodeType === ct.progressingInstruction || Ce && s.nodeType === ct.comment && ue(/<[/\w]/g, s.data))
|
|
4368
|
+
return Te(s), !0;
|
|
4369
|
+
if (!N[S] || F[S]) {
|
|
4370
|
+
if (!F[S] && Kn(S) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4366
4371
|
return !1;
|
|
4367
|
-
if (
|
|
4368
|
-
const
|
|
4369
|
-
if (
|
|
4370
|
-
const
|
|
4371
|
-
for (let me =
|
|
4372
|
-
const
|
|
4373
|
-
|
|
4372
|
+
if (Kt && !Ue[S]) {
|
|
4373
|
+
const V = A(s) || s.parentNode, se = $(s) || s.childNodes;
|
|
4374
|
+
if (se && V) {
|
|
4375
|
+
const oe = se.length;
|
|
4376
|
+
for (let me = oe - 1; me >= 0; --me) {
|
|
4377
|
+
const ve = d(se[me], !0);
|
|
4378
|
+
ve.__removalCount = (s.__removalCount || 0) + 1, V.insertBefore(ve, G(s));
|
|
4374
4379
|
}
|
|
4375
4380
|
}
|
|
4376
4381
|
}
|
|
4377
|
-
return
|
|
4382
|
+
return Te(s), !0;
|
|
4378
4383
|
}
|
|
4379
|
-
return
|
|
4380
|
-
p =
|
|
4381
|
-
}),
|
|
4382
|
-
element:
|
|
4383
|
-
}),
|
|
4384
|
-
}, Qn = function(
|
|
4384
|
+
return s instanceof c && !Fi(s) || (S === "noscript" || S === "noembed" || S === "noframes") && ue(/<\/no(script|embed|frames)/i, s.innerHTML) ? (Te(s), !0) : (_e && s.nodeType === ct.text && (p = s.textContent, Mt([ne, fe, v], (V) => {
|
|
4385
|
+
p = at(p, V, " ");
|
|
4386
|
+
}), s.textContent !== p && (st(t.removed, {
|
|
4387
|
+
element: s.cloneNode()
|
|
4388
|
+
}), s.textContent = p)), Oe("afterSanitizeElements", s, null), !1);
|
|
4389
|
+
}, Qn = function(s, p, S) {
|
|
4385
4390
|
if (Dn && (p === "id" || p === "name") && (S in n || S in Ui))
|
|
4386
4391
|
return !1;
|
|
4387
4392
|
if (!(Ee && !ee[p] && ue(E, p))) {
|
|
@@ -4391,15 +4396,15 @@ function Hi() {
|
|
|
4391
4396
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4392
4397
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4393
4398
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4394
|
-
!(Kn(
|
|
4399
|
+
!(Kn(s) && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, s) || m.tagNameCheck instanceof Function && m.tagNameCheck(s)) && (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
|
|
4395
4400
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4396
4401
|
p === "is" && m.allowCustomizedBuiltInElements && (m.tagNameCheck instanceof RegExp && ue(m.tagNameCheck, S) || m.tagNameCheck instanceof Function && m.tagNameCheck(S)))
|
|
4397
4402
|
)
|
|
4398
4403
|
return !1;
|
|
4399
|
-
} else if (!
|
|
4400
|
-
if (!ue(L,
|
|
4401
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") &&
|
|
4402
|
-
if (!(ie && !ue(
|
|
4404
|
+
} else if (!en[p]) {
|
|
4405
|
+
if (!ue(L, at(S, f, ""))) {
|
|
4406
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && ma(S, "data:") === 0 && Un[s])) {
|
|
4407
|
+
if (!(ie && !ue(T, at(S, f, "")))) {
|
|
4403
4408
|
if (S)
|
|
4404
4409
|
return !1;
|
|
4405
4410
|
}
|
|
@@ -4409,13 +4414,13 @@ function Hi() {
|
|
|
4409
4414
|
}
|
|
4410
4415
|
}
|
|
4411
4416
|
return !0;
|
|
4412
|
-
}, Kn = function(
|
|
4413
|
-
return
|
|
4414
|
-
}, er = function(
|
|
4415
|
-
|
|
4417
|
+
}, Kn = function(s) {
|
|
4418
|
+
return s !== "annotation-xml" && Cr(s, x);
|
|
4419
|
+
}, er = function(s) {
|
|
4420
|
+
Oe("beforeSanitizeAttributes", s, null);
|
|
4416
4421
|
const {
|
|
4417
4422
|
attributes: p
|
|
4418
|
-
} =
|
|
4423
|
+
} = s;
|
|
4419
4424
|
if (!p)
|
|
4420
4425
|
return;
|
|
4421
4426
|
const S = {
|
|
@@ -4424,31 +4429,31 @@ function Hi() {
|
|
|
4424
4429
|
keepAttr: !0,
|
|
4425
4430
|
allowedAttributes: I
|
|
4426
4431
|
};
|
|
4427
|
-
let
|
|
4428
|
-
for (;
|
|
4429
|
-
const
|
|
4430
|
-
name:
|
|
4432
|
+
let V = p.length;
|
|
4433
|
+
for (; V--; ) {
|
|
4434
|
+
const se = p[V], {
|
|
4435
|
+
name: oe,
|
|
4431
4436
|
namespaceURI: me,
|
|
4432
|
-
value:
|
|
4433
|
-
} =
|
|
4434
|
-
let ae =
|
|
4435
|
-
if (S.attrName =
|
|
4436
|
-
|
|
4437
|
+
value: ve
|
|
4438
|
+
} = se, rt = re(oe);
|
|
4439
|
+
let ae = oe === "value" ? ve : da(ve);
|
|
4440
|
+
if (S.attrName = rt, S.attrValue = ae, S.keepAttr = !0, S.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", s, S), ae = S.attrValue, Ce && ue(/((--!?|])>)|<\/(style|title)/i, ae)) {
|
|
4441
|
+
St(oe, s);
|
|
4437
4442
|
continue;
|
|
4438
4443
|
}
|
|
4439
|
-
if (S.forceKeepAttr || (
|
|
4444
|
+
if (S.forceKeepAttr || (St(oe, s), !S.keepAttr))
|
|
4440
4445
|
continue;
|
|
4441
4446
|
if (!ye && ue(/\/>/i, ae)) {
|
|
4442
|
-
|
|
4447
|
+
St(oe, s);
|
|
4443
4448
|
continue;
|
|
4444
4449
|
}
|
|
4445
|
-
_e &&
|
|
4446
|
-
ae =
|
|
4450
|
+
_e && Mt([ne, fe, v], (nr) => {
|
|
4451
|
+
ae = at(ae, nr, " ");
|
|
4447
4452
|
});
|
|
4448
|
-
const tr = re(
|
|
4449
|
-
if (Qn(tr,
|
|
4450
|
-
if (Bn && (
|
|
4451
|
-
switch (M.getAttributeType(tr,
|
|
4453
|
+
const tr = re(s.nodeName);
|
|
4454
|
+
if (Qn(tr, rt, ae)) {
|
|
4455
|
+
if (Bn && (rt === "id" || rt === "name") && (St(oe, s), ae = Ri + ae), H && typeof M == "object" && typeof M.getAttributeType == "function" && !me)
|
|
4456
|
+
switch (M.getAttributeType(tr, rt)) {
|
|
4452
4457
|
case "TrustedHTML": {
|
|
4453
4458
|
ae = H.createHTML(ae);
|
|
4454
4459
|
break;
|
|
@@ -4459,74 +4464,74 @@ function Hi() {
|
|
|
4459
4464
|
}
|
|
4460
4465
|
}
|
|
4461
4466
|
try {
|
|
4462
|
-
me ?
|
|
4467
|
+
me ? s.setAttributeNS(me, oe, ae) : s.setAttribute(oe, ae), Zn(s) ? Te(s) : Mr(t.removed);
|
|
4463
4468
|
} catch {
|
|
4464
4469
|
}
|
|
4465
4470
|
}
|
|
4466
4471
|
}
|
|
4467
|
-
|
|
4468
|
-
}, Gi = function w(
|
|
4472
|
+
Oe("afterSanitizeAttributes", s, null);
|
|
4473
|
+
}, Gi = function w(s) {
|
|
4469
4474
|
let p = null;
|
|
4470
|
-
const S = Yn(
|
|
4471
|
-
for (
|
|
4472
|
-
|
|
4473
|
-
|
|
4475
|
+
const S = Yn(s);
|
|
4476
|
+
for (Oe("beforeSanitizeShadowDOM", s, null); p = S.nextNode(); )
|
|
4477
|
+
Oe("uponSanitizeShadowNode", p, null), !Jn(p) && (p.content instanceof o && w(p.content), er(p));
|
|
4478
|
+
Oe("afterSanitizeShadowDOM", s, null);
|
|
4474
4479
|
};
|
|
4475
4480
|
return t.sanitize = function(w) {
|
|
4476
|
-
let
|
|
4477
|
-
if (
|
|
4481
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, S = null, V = null, se = null;
|
|
4482
|
+
if (tn = !w, tn && (w = "<!-->"), typeof w != "string" && !qn(w))
|
|
4478
4483
|
if (typeof w.toString == "function") {
|
|
4479
4484
|
if (w = w.toString(), typeof w != "string")
|
|
4480
|
-
throw
|
|
4485
|
+
throw ut("dirty is not a string, aborting");
|
|
4481
4486
|
} else
|
|
4482
|
-
throw
|
|
4487
|
+
throw ut("toString is not a function");
|
|
4483
4488
|
if (!t.isSupported)
|
|
4484
4489
|
return w;
|
|
4485
|
-
if (
|
|
4490
|
+
if (Jt || rn(s), t.removed = [], typeof w == "string" && (tt = !1), tt) {
|
|
4486
4491
|
if (w.nodeName) {
|
|
4487
|
-
const
|
|
4488
|
-
if (!N[
|
|
4489
|
-
throw
|
|
4492
|
+
const ve = re(w.nodeName);
|
|
4493
|
+
if (!N[ve] || F[ve])
|
|
4494
|
+
throw ut("root node is forbidden and cannot be sanitized in-place");
|
|
4490
4495
|
}
|
|
4491
4496
|
} else if (w instanceof a)
|
|
4492
|
-
p = Xn("<!---->"), S = p.ownerDocument.importNode(w, !0), S.nodeType ===
|
|
4497
|
+
p = Xn("<!---->"), S = p.ownerDocument.importNode(w, !0), S.nodeType === ct.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? p = S : p.appendChild(S);
|
|
4493
4498
|
else {
|
|
4494
|
-
if (
|
|
4499
|
+
if (!Be && !_e && !Pe && // eslint-disable-next-line unicorn/prefer-includes
|
|
4495
4500
|
w.indexOf("<") === -1)
|
|
4496
|
-
return H &&
|
|
4501
|
+
return H && xt ? H.createHTML(w) : w;
|
|
4497
4502
|
if (p = Xn(w), !p)
|
|
4498
|
-
return
|
|
4503
|
+
return Be ? null : xt ? R : "";
|
|
4499
4504
|
}
|
|
4500
|
-
p &&
|
|
4501
|
-
const
|
|
4502
|
-
for (;
|
|
4503
|
-
Jn(
|
|
4504
|
-
if (
|
|
4505
|
+
p && Qt && Te(p.firstChild);
|
|
4506
|
+
const oe = Yn(tt ? w : p);
|
|
4507
|
+
for (; V = oe.nextNode(); )
|
|
4508
|
+
Jn(V) || (V.content instanceof o && Gi(V.content), er(V));
|
|
4509
|
+
if (tt)
|
|
4505
4510
|
return w;
|
|
4506
|
-
if (
|
|
4507
|
-
if (
|
|
4508
|
-
for (
|
|
4509
|
-
|
|
4511
|
+
if (Be) {
|
|
4512
|
+
if (yt)
|
|
4513
|
+
for (se = X.call(p.ownerDocument); p.firstChild; )
|
|
4514
|
+
se.appendChild(p.firstChild);
|
|
4510
4515
|
else
|
|
4511
|
-
|
|
4512
|
-
return (I.shadowroot || I.shadowrootmode) && (
|
|
4516
|
+
se = p;
|
|
4517
|
+
return (I.shadowroot || I.shadowrootmode) && (se = j.call(r, se, !0)), se;
|
|
4513
4518
|
}
|
|
4514
|
-
let me =
|
|
4515
|
-
return
|
|
4516
|
-
` + me), _e &&
|
|
4517
|
-
me =
|
|
4518
|
-
}), H &&
|
|
4519
|
+
let me = Pe ? p.outerHTML : p.innerHTML;
|
|
4520
|
+
return Pe && N["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && ue(Ni, p.ownerDocument.doctype.name) && (me = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4521
|
+
` + me), _e && Mt([ne, fe, v], (ve) => {
|
|
4522
|
+
me = at(me, ve, " ");
|
|
4523
|
+
}), H && xt ? H.createHTML(me) : me;
|
|
4519
4524
|
}, t.setConfig = function() {
|
|
4520
4525
|
let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4521
|
-
|
|
4526
|
+
rn(w), Jt = !0;
|
|
4522
4527
|
}, t.clearConfig = function() {
|
|
4523
|
-
|
|
4524
|
-
}, t.isValidAttribute = function(w,
|
|
4525
|
-
|
|
4526
|
-
const S = re(w),
|
|
4527
|
-
return Qn(S,
|
|
4528
|
-
}, t.addHook = function(w,
|
|
4529
|
-
typeof
|
|
4528
|
+
Fe = null, Jt = !1;
|
|
4529
|
+
}, t.isValidAttribute = function(w, s, p) {
|
|
4530
|
+
Fe || rn({});
|
|
4531
|
+
const S = re(w), V = re(s);
|
|
4532
|
+
return Qn(S, V, p);
|
|
4533
|
+
}, t.addHook = function(w, s) {
|
|
4534
|
+
typeof s == "function" && (O[w] = O[w] || [], st(O[w], s));
|
|
4530
4535
|
}, t.removeHook = function(w) {
|
|
4531
4536
|
if (O[w])
|
|
4532
4537
|
return Mr(O[w]);
|
|
@@ -4541,76 +4546,76 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4541
4546
|
(function(n, r) {
|
|
4542
4547
|
e.exports = r();
|
|
4543
4548
|
})(ni, function() {
|
|
4544
|
-
var n = 1e3, r = 6e4, i = 36e5,
|
|
4545
|
-
var E = ["th", "st", "nd", "rd"], g =
|
|
4546
|
-
return "[" +
|
|
4547
|
-
} }, A = function(
|
|
4548
|
-
var
|
|
4549
|
-
return !
|
|
4550
|
-
}, H = { s: A, z: function(
|
|
4551
|
-
var E = -
|
|
4552
|
-
return (E <= 0 ? "+" : "-") + A(
|
|
4553
|
-
}, m: function
|
|
4549
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", u = "second", a = "minute", c = "hour", l = "day", h = "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+)?$/, G = /\[([^\]]+)]|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(v) {
|
|
4550
|
+
var E = ["th", "st", "nd", "rd"], g = v % 100;
|
|
4551
|
+
return "[" + v + (E[(g - 20) % 10] || E[g] || E[0]) + "]";
|
|
4552
|
+
} }, A = function(v, E, g) {
|
|
4553
|
+
var T = String(v);
|
|
4554
|
+
return !T || T.length >= E ? v : "" + Array(E + 1 - T.length).join(g) + v;
|
|
4555
|
+
}, H = { s: A, z: function(v) {
|
|
4556
|
+
var E = -v.utcOffset(), g = Math.abs(E), T = Math.floor(g / 60), f = g % 60;
|
|
4557
|
+
return (E <= 0 ? "+" : "-") + A(T, 2, "0") + ":" + A(f, 2, "0");
|
|
4558
|
+
}, m: function v(E, g) {
|
|
4554
4559
|
if (E.date() < g.date())
|
|
4555
|
-
return -
|
|
4556
|
-
var
|
|
4557
|
-
return +(-(
|
|
4558
|
-
}, a: function(
|
|
4559
|
-
return
|
|
4560
|
-
}, p: function(
|
|
4561
|
-
return { M: _, y: M, w:
|
|
4562
|
-
}, u: function(
|
|
4563
|
-
return
|
|
4564
|
-
} }, R = "en",
|
|
4565
|
-
|
|
4566
|
-
var
|
|
4567
|
-
return
|
|
4568
|
-
}, Q = function
|
|
4569
|
-
var
|
|
4560
|
+
return -v(g, E);
|
|
4561
|
+
var T = 12 * (g.year() - E.year()) + (g.month() - E.month()), f = E.clone().add(T, _), x = g - f < 0, L = E.clone().add(T + (x ? -1 : 1), _);
|
|
4562
|
+
return +(-(T + (g - f) / (x ? f - L : L - f)) || 0);
|
|
4563
|
+
}, a: function(v) {
|
|
4564
|
+
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
4565
|
+
}, p: function(v) {
|
|
4566
|
+
return { M: _, y: M, w: h, d: l, D: b, h: c, m: a, s: u, ms: o, Q: y }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
4567
|
+
}, u: function(v) {
|
|
4568
|
+
return v === void 0;
|
|
4569
|
+
} }, R = "en", k = {};
|
|
4570
|
+
k[R] = $;
|
|
4571
|
+
var Z = "$isDayjsObject", X = function(v) {
|
|
4572
|
+
return v instanceof ne || !(!v || !v[Z]);
|
|
4573
|
+
}, Q = function v(E, g, T) {
|
|
4574
|
+
var f;
|
|
4570
4575
|
if (!E)
|
|
4571
4576
|
return R;
|
|
4572
4577
|
if (typeof E == "string") {
|
|
4573
4578
|
var x = E.toLowerCase();
|
|
4574
|
-
|
|
4579
|
+
k[x] && (f = x), g && (k[x] = g, f = x);
|
|
4575
4580
|
var L = E.split("-");
|
|
4576
|
-
if (!
|
|
4577
|
-
return
|
|
4581
|
+
if (!f && L.length > 1)
|
|
4582
|
+
return v(L[0]);
|
|
4578
4583
|
} else {
|
|
4579
4584
|
var N = E.name;
|
|
4580
|
-
|
|
4585
|
+
k[N] = E, f = N;
|
|
4581
4586
|
}
|
|
4582
|
-
return !
|
|
4583
|
-
},
|
|
4584
|
-
if (
|
|
4585
|
-
return
|
|
4587
|
+
return !T && f && (R = f), f || !T && R;
|
|
4588
|
+
}, j = function(v, E) {
|
|
4589
|
+
if (X(v))
|
|
4590
|
+
return v.clone();
|
|
4586
4591
|
var g = typeof E == "object" ? E : {};
|
|
4587
|
-
return g.date =
|
|
4592
|
+
return g.date = v, g.args = arguments, new ne(g);
|
|
4588
4593
|
}, O = H;
|
|
4589
|
-
O.l = Q, O.i =
|
|
4590
|
-
return
|
|
4594
|
+
O.l = Q, O.i = X, O.w = function(v, E) {
|
|
4595
|
+
return j(v, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4591
4596
|
};
|
|
4592
4597
|
var ne = function() {
|
|
4593
|
-
function
|
|
4594
|
-
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[
|
|
4598
|
+
function v(g) {
|
|
4599
|
+
this.$L = Q(g.locale, null, !0), this.parse(g), this.$x = this.$x || g.x || {}, this[Z] = !0;
|
|
4595
4600
|
}
|
|
4596
|
-
var E =
|
|
4601
|
+
var E = v.prototype;
|
|
4597
4602
|
return E.parse = function(g) {
|
|
4598
|
-
this.$d = function(
|
|
4599
|
-
var
|
|
4600
|
-
if (
|
|
4603
|
+
this.$d = function(T) {
|
|
4604
|
+
var f = T.date, x = T.utc;
|
|
4605
|
+
if (f === null)
|
|
4601
4606
|
return /* @__PURE__ */ new Date(NaN);
|
|
4602
|
-
if (O.u(
|
|
4607
|
+
if (O.u(f))
|
|
4603
4608
|
return /* @__PURE__ */ new Date();
|
|
4604
|
-
if (
|
|
4605
|
-
return new Date(
|
|
4606
|
-
if (typeof
|
|
4607
|
-
var L =
|
|
4609
|
+
if (f instanceof Date)
|
|
4610
|
+
return new Date(f);
|
|
4611
|
+
if (typeof f == "string" && !/Z$/i.test(f)) {
|
|
4612
|
+
var L = f.match(C);
|
|
4608
4613
|
if (L) {
|
|
4609
|
-
var N = L[2] - 1 || 0,
|
|
4610
|
-
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0,
|
|
4614
|
+
var N = L[2] - 1 || 0, W = (L[7] || "0").substring(0, 3);
|
|
4615
|
+
return x ? new Date(Date.UTC(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, W)) : new Date(L[1], N, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, W);
|
|
4611
4616
|
}
|
|
4612
4617
|
}
|
|
4613
|
-
return new Date(
|
|
4618
|
+
return new Date(f);
|
|
4614
4619
|
}(g), this.init();
|
|
4615
4620
|
}, E.init = function() {
|
|
4616
4621
|
var g = this.$d;
|
|
@@ -4619,65 +4624,65 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4619
4624
|
return O;
|
|
4620
4625
|
}, E.isValid = function() {
|
|
4621
4626
|
return this.$d.toString() !== d;
|
|
4622
|
-
}, E.isSame = function(g,
|
|
4623
|
-
var
|
|
4624
|
-
return this.startOf(
|
|
4625
|
-
}, E.isAfter = function(g,
|
|
4626
|
-
return
|
|
4627
|
-
}, E.isBefore = function(g,
|
|
4628
|
-
return this.endOf(
|
|
4629
|
-
}, E.$g = function(g,
|
|
4630
|
-
return O.u(g) ? this[
|
|
4627
|
+
}, E.isSame = function(g, T) {
|
|
4628
|
+
var f = j(g);
|
|
4629
|
+
return this.startOf(T) <= f && f <= this.endOf(T);
|
|
4630
|
+
}, E.isAfter = function(g, T) {
|
|
4631
|
+
return j(g) < this.startOf(T);
|
|
4632
|
+
}, E.isBefore = function(g, T) {
|
|
4633
|
+
return this.endOf(T) < j(g);
|
|
4634
|
+
}, E.$g = function(g, T, f) {
|
|
4635
|
+
return O.u(g) ? this[T] : this.set(f, g);
|
|
4631
4636
|
}, E.unix = function() {
|
|
4632
4637
|
return Math.floor(this.valueOf() / 1e3);
|
|
4633
4638
|
}, E.valueOf = function() {
|
|
4634
4639
|
return this.$d.getTime();
|
|
4635
|
-
}, E.startOf = function(g,
|
|
4636
|
-
var
|
|
4637
|
-
var ye = O.w(
|
|
4640
|
+
}, E.startOf = function(g, T) {
|
|
4641
|
+
var f = this, x = !!O.u(T) || T, L = O.p(g), N = function(Ee, ie) {
|
|
4642
|
+
var ye = O.w(f.$u ? Date.UTC(f.$y, ie, Ee) : new Date(f.$y, ie, Ee), f);
|
|
4638
4643
|
return x ? ye : ye.endOf(l);
|
|
4639
|
-
},
|
|
4640
|
-
return O.w(
|
|
4641
|
-
}, I = this.$W, q = this.$M, m = this.$D,
|
|
4644
|
+
}, W = function(Ee, ie) {
|
|
4645
|
+
return O.w(f.toDate()[Ee].apply(f.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), f);
|
|
4646
|
+
}, I = this.$W, q = this.$M, m = this.$D, F = "set" + (this.$u ? "UTC" : "");
|
|
4642
4647
|
switch (L) {
|
|
4643
4648
|
case M:
|
|
4644
4649
|
return x ? N(1, 0) : N(31, 11);
|
|
4645
4650
|
case _:
|
|
4646
4651
|
return x ? N(1, q) : N(0, q + 1);
|
|
4647
|
-
case
|
|
4652
|
+
case h:
|
|
4648
4653
|
var ee = this.$locale().weekStart || 0, K = (I < ee ? I + 7 : I) - ee;
|
|
4649
4654
|
return N(x ? m - K : m + (6 - K), q);
|
|
4650
4655
|
case l:
|
|
4651
4656
|
case b:
|
|
4652
|
-
return
|
|
4657
|
+
return W(F + "Hours", 0);
|
|
4653
4658
|
case c:
|
|
4654
|
-
return
|
|
4659
|
+
return W(F + "Minutes", 1);
|
|
4655
4660
|
case a:
|
|
4656
|
-
return
|
|
4661
|
+
return W(F + "Seconds", 2);
|
|
4657
4662
|
case u:
|
|
4658
|
-
return
|
|
4663
|
+
return W(F + "Milliseconds", 3);
|
|
4659
4664
|
default:
|
|
4660
4665
|
return this.clone();
|
|
4661
4666
|
}
|
|
4662
4667
|
}, E.endOf = function(g) {
|
|
4663
4668
|
return this.startOf(g, !1);
|
|
4664
|
-
}, E.$set = function(g,
|
|
4665
|
-
var
|
|
4669
|
+
}, E.$set = function(g, T) {
|
|
4670
|
+
var f, x = O.p(g), L = "set" + (this.$u ? "UTC" : ""), N = (f = {}, f[l] = L + "Date", f[b] = L + "Date", f[_] = L + "Month", f[M] = L + "FullYear", f[c] = L + "Hours", f[a] = L + "Minutes", f[u] = L + "Seconds", f[o] = L + "Milliseconds", f)[x], W = x === l ? this.$D + (T - this.$W) : T;
|
|
4666
4671
|
if (x === _ || x === M) {
|
|
4667
4672
|
var I = this.clone().set(b, 1);
|
|
4668
|
-
I.$d[N](
|
|
4673
|
+
I.$d[N](W), I.init(), this.$d = I.set(b, Math.min(this.$D, I.daysInMonth())).$d;
|
|
4669
4674
|
} else
|
|
4670
|
-
N && this.$d[N](
|
|
4675
|
+
N && this.$d[N](W);
|
|
4671
4676
|
return this.init(), this;
|
|
4672
|
-
}, E.set = function(g,
|
|
4673
|
-
return this.clone().$set(g,
|
|
4677
|
+
}, E.set = function(g, T) {
|
|
4678
|
+
return this.clone().$set(g, T);
|
|
4674
4679
|
}, E.get = function(g) {
|
|
4675
4680
|
return this[O.p(g)]();
|
|
4676
|
-
}, E.add = function(g,
|
|
4677
|
-
var
|
|
4681
|
+
}, E.add = function(g, T) {
|
|
4682
|
+
var f, x = this;
|
|
4678
4683
|
g = Number(g);
|
|
4679
|
-
var L = O.p(
|
|
4680
|
-
var m =
|
|
4684
|
+
var L = O.p(T), N = function(q) {
|
|
4685
|
+
var m = j(x);
|
|
4681
4686
|
return O.w(m.date(m.date() + Math.round(q * g)), x);
|
|
4682
4687
|
};
|
|
4683
4688
|
if (L === _)
|
|
@@ -4686,51 +4691,51 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4686
4691
|
return this.set(M, this.$y + g);
|
|
4687
4692
|
if (L === l)
|
|
4688
4693
|
return N(1);
|
|
4689
|
-
if (L ===
|
|
4694
|
+
if (L === h)
|
|
4690
4695
|
return N(7);
|
|
4691
|
-
var
|
|
4696
|
+
var W = (f = {}, f[a] = r, f[c] = i, f[u] = n, f)[L] || 1, I = this.$d.getTime() + g * W;
|
|
4692
4697
|
return O.w(I, this);
|
|
4693
|
-
}, E.subtract = function(g,
|
|
4694
|
-
return this.add(-1 * g,
|
|
4698
|
+
}, E.subtract = function(g, T) {
|
|
4699
|
+
return this.add(-1 * g, T);
|
|
4695
4700
|
}, E.format = function(g) {
|
|
4696
|
-
var
|
|
4701
|
+
var T = this, f = this.$locale();
|
|
4697
4702
|
if (!this.isValid())
|
|
4698
|
-
return
|
|
4699
|
-
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H,
|
|
4700
|
-
return ie && (ie[ye] || ie(
|
|
4703
|
+
return f.invalidDate || d;
|
|
4704
|
+
var x = g || "YYYY-MM-DDTHH:mm:ssZ", L = O.z(this), N = this.$H, W = this.$m, I = this.$M, q = f.weekdays, m = f.months, F = f.meridiem, ee = function(ie, ye, _e, Ce) {
|
|
4705
|
+
return ie && (ie[ye] || ie(T, x)) || _e[ye].slice(0, Ce);
|
|
4701
4706
|
}, K = function(ie) {
|
|
4702
4707
|
return O.s(N % 12 || 12, ie, "0");
|
|
4703
|
-
}, Ee =
|
|
4704
|
-
var
|
|
4705
|
-
return _e ?
|
|
4708
|
+
}, Ee = F || function(ie, ye, _e) {
|
|
4709
|
+
var Ce = ie < 12 ? "AM" : "PM";
|
|
4710
|
+
return _e ? Ce.toLowerCase() : Ce;
|
|
4706
4711
|
};
|
|
4707
|
-
return x.replace(
|
|
4712
|
+
return x.replace(G, function(ie, ye) {
|
|
4708
4713
|
return ye || function(_e) {
|
|
4709
4714
|
switch (_e) {
|
|
4710
4715
|
case "YY":
|
|
4711
|
-
return String(
|
|
4716
|
+
return String(T.$y).slice(-2);
|
|
4712
4717
|
case "YYYY":
|
|
4713
|
-
return O.s(
|
|
4718
|
+
return O.s(T.$y, 4, "0");
|
|
4714
4719
|
case "M":
|
|
4715
4720
|
return I + 1;
|
|
4716
4721
|
case "MM":
|
|
4717
4722
|
return O.s(I + 1, 2, "0");
|
|
4718
4723
|
case "MMM":
|
|
4719
|
-
return ee(
|
|
4724
|
+
return ee(f.monthsShort, I, m, 3);
|
|
4720
4725
|
case "MMMM":
|
|
4721
4726
|
return ee(m, I);
|
|
4722
4727
|
case "D":
|
|
4723
|
-
return
|
|
4728
|
+
return T.$D;
|
|
4724
4729
|
case "DD":
|
|
4725
|
-
return O.s(
|
|
4730
|
+
return O.s(T.$D, 2, "0");
|
|
4726
4731
|
case "d":
|
|
4727
|
-
return String(
|
|
4732
|
+
return String(T.$W);
|
|
4728
4733
|
case "dd":
|
|
4729
|
-
return ee(
|
|
4734
|
+
return ee(f.weekdaysMin, T.$W, q, 2);
|
|
4730
4735
|
case "ddd":
|
|
4731
|
-
return ee(
|
|
4736
|
+
return ee(f.weekdaysShort, T.$W, q, 3);
|
|
4732
4737
|
case "dddd":
|
|
4733
|
-
return q[
|
|
4738
|
+
return q[T.$W];
|
|
4734
4739
|
case "H":
|
|
4735
4740
|
return String(N);
|
|
4736
4741
|
case "HH":
|
|
@@ -4740,19 +4745,19 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4740
4745
|
case "hh":
|
|
4741
4746
|
return K(2);
|
|
4742
4747
|
case "a":
|
|
4743
|
-
return Ee(N,
|
|
4748
|
+
return Ee(N, W, !0);
|
|
4744
4749
|
case "A":
|
|
4745
|
-
return Ee(N,
|
|
4750
|
+
return Ee(N, W, !1);
|
|
4746
4751
|
case "m":
|
|
4747
|
-
return String(
|
|
4752
|
+
return String(W);
|
|
4748
4753
|
case "mm":
|
|
4749
|
-
return O.s(
|
|
4754
|
+
return O.s(W, 2, "0");
|
|
4750
4755
|
case "s":
|
|
4751
|
-
return String(
|
|
4756
|
+
return String(T.$s);
|
|
4752
4757
|
case "ss":
|
|
4753
|
-
return O.s(
|
|
4758
|
+
return O.s(T.$s, 2, "0");
|
|
4754
4759
|
case "SSS":
|
|
4755
|
-
return O.s(
|
|
4760
|
+
return O.s(T.$ms, 3, "0");
|
|
4756
4761
|
case "Z":
|
|
4757
4762
|
return L;
|
|
4758
4763
|
}
|
|
@@ -4761,9 +4766,9 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4761
4766
|
});
|
|
4762
4767
|
}, E.utcOffset = function() {
|
|
4763
4768
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4764
|
-
}, E.diff = function(g,
|
|
4765
|
-
var x, L = this, N = O.p(
|
|
4766
|
-
return O.m(L,
|
|
4769
|
+
}, E.diff = function(g, T, f) {
|
|
4770
|
+
var x, L = this, N = O.p(T), W = j(g), I = (W.utcOffset() - this.utcOffset()) * r, q = this - W, m = function() {
|
|
4771
|
+
return O.m(L, W);
|
|
4767
4772
|
};
|
|
4768
4773
|
switch (N) {
|
|
4769
4774
|
case M:
|
|
@@ -4775,7 +4780,7 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4775
4780
|
case y:
|
|
4776
4781
|
x = m() / 3;
|
|
4777
4782
|
break;
|
|
4778
|
-
case
|
|
4783
|
+
case h:
|
|
4779
4784
|
x = (q - I) / 6048e5;
|
|
4780
4785
|
break;
|
|
4781
4786
|
case l:
|
|
@@ -4793,16 +4798,16 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4793
4798
|
default:
|
|
4794
4799
|
x = q;
|
|
4795
4800
|
}
|
|
4796
|
-
return
|
|
4801
|
+
return f ? x : O.a(x);
|
|
4797
4802
|
}, E.daysInMonth = function() {
|
|
4798
4803
|
return this.endOf(_).$D;
|
|
4799
4804
|
}, E.$locale = function() {
|
|
4800
|
-
return
|
|
4801
|
-
}, E.locale = function(g,
|
|
4805
|
+
return k[this.$L];
|
|
4806
|
+
}, E.locale = function(g, T) {
|
|
4802
4807
|
if (!g)
|
|
4803
4808
|
return this.$L;
|
|
4804
|
-
var
|
|
4805
|
-
return x && (
|
|
4809
|
+
var f = this.clone(), x = Q(g, T, !0);
|
|
4810
|
+
return x && (f.$L = x), f;
|
|
4806
4811
|
}, E.clone = function() {
|
|
4807
4812
|
return O.w(this.$d, this);
|
|
4808
4813
|
}, E.toDate = function() {
|
|
@@ -4813,28 +4818,28 @@ var Rr = Hi(), Ii = { exports: {} };
|
|
|
4813
4818
|
return this.$d.toISOString();
|
|
4814
4819
|
}, E.toString = function() {
|
|
4815
4820
|
return this.$d.toUTCString();
|
|
4816
|
-
},
|
|
4817
|
-
}(),
|
|
4818
|
-
return
|
|
4819
|
-
|
|
4820
|
-
return this.$g(E,
|
|
4821
|
+
}, v;
|
|
4822
|
+
}(), fe = ne.prototype;
|
|
4823
|
+
return j.prototype = fe, [["$ms", o], ["$s", u], ["$m", a], ["$H", c], ["$W", l], ["$M", _], ["$y", M], ["$D", b]].forEach(function(v) {
|
|
4824
|
+
fe[v[1]] = function(E) {
|
|
4825
|
+
return this.$g(E, v[0], v[1]);
|
|
4821
4826
|
};
|
|
4822
|
-
}),
|
|
4823
|
-
return
|
|
4824
|
-
},
|
|
4825
|
-
return
|
|
4826
|
-
},
|
|
4827
|
+
}), j.extend = function(v, E) {
|
|
4828
|
+
return v.$i || (v(E, ne, j), v.$i = !0), j;
|
|
4829
|
+
}, j.locale = Q, j.isDayjs = X, j.unix = function(v) {
|
|
4830
|
+
return j(1e3 * v);
|
|
4831
|
+
}, j.en = k[R], j.Ls = k, j.p = {}, j;
|
|
4827
4832
|
});
|
|
4828
4833
|
})(Ii);
|
|
4829
|
-
var
|
|
4830
|
-
const Dr = /* @__PURE__ */
|
|
4834
|
+
var Ca = Ii.exports;
|
|
4835
|
+
const Dr = /* @__PURE__ */ Nn(Ca);
|
|
4831
4836
|
var Pi = { exports: {} };
|
|
4832
4837
|
(function(e, t) {
|
|
4833
4838
|
(function(n, r) {
|
|
4834
4839
|
e.exports = r();
|
|
4835
4840
|
})(ni, function() {
|
|
4836
4841
|
var n = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
4837
|
-
return function(
|
|
4842
|
+
return function(o, u, a) {
|
|
4838
4843
|
var c = u.prototype;
|
|
4839
4844
|
a.utc = function(d) {
|
|
4840
4845
|
var C = { date: d, utc: !0, args: arguments };
|
|
@@ -4849,26 +4854,26 @@ var Pi = { exports: {} };
|
|
|
4849
4854
|
c.parse = function(d) {
|
|
4850
4855
|
d.utc && (this.$u = !0), this.$utils().u(d.$offset) || (this.$offset = d.$offset), l.call(this, d);
|
|
4851
4856
|
};
|
|
4852
|
-
var
|
|
4857
|
+
var h = c.init;
|
|
4853
4858
|
c.init = function() {
|
|
4854
4859
|
if (this.$u) {
|
|
4855
4860
|
var d = this.$d;
|
|
4856
4861
|
this.$y = d.getUTCFullYear(), this.$M = d.getUTCMonth(), this.$D = d.getUTCDate(), this.$W = d.getUTCDay(), this.$H = d.getUTCHours(), this.$m = d.getUTCMinutes(), this.$s = d.getUTCSeconds(), this.$ms = d.getUTCMilliseconds();
|
|
4857
4862
|
} else
|
|
4858
|
-
|
|
4863
|
+
h.call(this);
|
|
4859
4864
|
};
|
|
4860
4865
|
var _ = c.utcOffset;
|
|
4861
4866
|
c.utcOffset = function(d, C) {
|
|
4862
|
-
var
|
|
4863
|
-
if (
|
|
4864
|
-
return this.$u ? 0 :
|
|
4867
|
+
var G = this.$utils().u;
|
|
4868
|
+
if (G(d))
|
|
4869
|
+
return this.$u ? 0 : G(this.$offset) ? _.call(this) : this.$offset;
|
|
4865
4870
|
if (typeof d == "string" && (d = function(R) {
|
|
4866
4871
|
R === void 0 && (R = "");
|
|
4867
|
-
var
|
|
4868
|
-
if (!
|
|
4872
|
+
var k = R.match(r);
|
|
4873
|
+
if (!k)
|
|
4869
4874
|
return null;
|
|
4870
|
-
var
|
|
4871
|
-
return Q === 0 ? 0 :
|
|
4875
|
+
var Z = ("" + k[0]).match(i) || ["-", 0, 0], X = Z[0], Q = 60 * +Z[1] + +Z[2];
|
|
4876
|
+
return Q === 0 ? 0 : X === "+" ? Q : -Q;
|
|
4872
4877
|
}(d), d === null))
|
|
4873
4878
|
return this;
|
|
4874
4879
|
var $ = Math.abs(d) <= 16 ? 60 * d : d, A = this;
|
|
@@ -4900,25 +4905,25 @@ var Pi = { exports: {} };
|
|
|
4900
4905
|
return d === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : M.call(this);
|
|
4901
4906
|
};
|
|
4902
4907
|
var b = c.diff;
|
|
4903
|
-
c.diff = function(d, C,
|
|
4908
|
+
c.diff = function(d, C, G) {
|
|
4904
4909
|
if (d && this.$u === d.$u)
|
|
4905
|
-
return b.call(this, d, C,
|
|
4910
|
+
return b.call(this, d, C, G);
|
|
4906
4911
|
var $ = this.local(), A = a(d).local();
|
|
4907
|
-
return b.call($, A, C,
|
|
4912
|
+
return b.call($, A, C, G);
|
|
4908
4913
|
};
|
|
4909
4914
|
};
|
|
4910
4915
|
});
|
|
4911
4916
|
})(Pi);
|
|
4912
|
-
var
|
|
4913
|
-
const
|
|
4914
|
-
let Br =
|
|
4915
|
-
function
|
|
4917
|
+
var La = Pi.exports;
|
|
4918
|
+
const Na = /* @__PURE__ */ Nn(La);
|
|
4919
|
+
let Br = _t(null);
|
|
4920
|
+
function Ha(e, t) {
|
|
4916
4921
|
if (e) {
|
|
4917
4922
|
const n = document.createElement("style");
|
|
4918
4923
|
n.innerHTML = t, e.appendChild(n);
|
|
4919
4924
|
}
|
|
4920
4925
|
}
|
|
4921
|
-
function
|
|
4926
|
+
function Ia(e, t) {
|
|
4922
4927
|
const n = new URL(t);
|
|
4923
4928
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
4924
4929
|
const i = document.createElement("style");
|
|
@@ -4927,7 +4932,7 @@ function Pa(e, t) {
|
|
|
4927
4932
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4928
4933
|
});
|
|
4929
4934
|
}
|
|
4930
|
-
function
|
|
4935
|
+
function Pa(e, t, n) {
|
|
4931
4936
|
if (window.emMessageBus) {
|
|
4932
4937
|
const r = document.createElement("style");
|
|
4933
4938
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4935,70 +4940,70 @@ function Ra(e, t, n) {
|
|
|
4935
4940
|
});
|
|
4936
4941
|
}
|
|
4937
4942
|
}
|
|
4938
|
-
function
|
|
4943
|
+
function Ra(e) {
|
|
4939
4944
|
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}}");
|
|
4940
4945
|
}
|
|
4941
|
-
const
|
|
4946
|
+
const Da = (e) => ({}), $r = (e) => ({}), Ba = (e) => ({}), Ur = (e) => ({}), $a = (e) => ({}), kr = (e) => ({}), Ua = (e) => ({}), Fr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4942
4947
|
function Gr(e) {
|
|
4943
|
-
let t, n, r, i,
|
|
4948
|
+
let t, n, r, i, o, u = (
|
|
4944
4949
|
/*$_*/
|
|
4945
4950
|
e[8]("sessionExpirationHeader") + ""
|
|
4946
|
-
), a, c, l,
|
|
4947
|
-
const
|
|
4951
|
+
), a, c, l, h, _, y, M, b, d, C, G, $, A, H, R;
|
|
4952
|
+
const k = (
|
|
4948
4953
|
/*#slots*/
|
|
4949
4954
|
e[22].icon
|
|
4950
|
-
),
|
|
4951
|
-
|
|
4955
|
+
), Z = Lt(
|
|
4956
|
+
k,
|
|
4952
4957
|
e,
|
|
4953
4958
|
/*$$scope*/
|
|
4954
4959
|
e[21],
|
|
4955
4960
|
Fr
|
|
4956
|
-
),
|
|
4961
|
+
), X = Z || Ga(e), Q = (
|
|
4957
4962
|
/*#slots*/
|
|
4958
4963
|
e[22].title
|
|
4959
|
-
),
|
|
4964
|
+
), j = Lt(
|
|
4960
4965
|
Q,
|
|
4961
4966
|
e,
|
|
4962
4967
|
/*$$scope*/
|
|
4963
4968
|
e[21],
|
|
4964
4969
|
kr
|
|
4965
|
-
), O =
|
|
4970
|
+
), O = j || ja(e), ne = (
|
|
4966
4971
|
/*#slots*/
|
|
4967
4972
|
e[22].text
|
|
4968
|
-
),
|
|
4973
|
+
), fe = Lt(
|
|
4969
4974
|
ne,
|
|
4970
4975
|
e,
|
|
4971
4976
|
/*$$scope*/
|
|
4972
4977
|
e[21],
|
|
4973
4978
|
Ur
|
|
4974
|
-
),
|
|
4975
|
-
function
|
|
4979
|
+
), v = fe || za(e), E = [Va, Wa], g = [];
|
|
4980
|
+
function T(f, x) {
|
|
4976
4981
|
return (
|
|
4977
4982
|
/*showLoaderButton*/
|
|
4978
|
-
|
|
4983
|
+
f[6] ? 0 : 1
|
|
4979
4984
|
);
|
|
4980
4985
|
}
|
|
4981
|
-
return d =
|
|
4986
|
+
return d = T(e), C = g[d] = E[d](e), {
|
|
4982
4987
|
c() {
|
|
4983
|
-
t = te("div"), n = te("div"), r = te("div"), i = te("div"),
|
|
4984
|
-
e[6],
|
|
4988
|
+
t = te("div"), n = te("div"), r = te("div"), i = te("div"), o = te("div"), a = Qe(u), c = ht(), l = te("div"), h = te("div"), X && X.c(), _ = ht(), O && O.c(), y = ht(), v && v.c(), M = ht(), b = te("button"), C.c(), z(o, "class", "CashierSessionExpirationModalHeaderTitle"), z(i, "class", "CashierSessionExpirationModalHeader"), z(b, "type", "button"), b.disabled = /*showLoaderButton*/
|
|
4989
|
+
e[6], z(b, "class", "CashierSessionExpirationButton"), z(h, "class", "CashierSessionExpiration"), z(l, "class", "CashierSessionExpirationModalContainer"), z(r, "class", "CashierSessionExpirationModalWrapper"), z(n, "class", "CashierSessionExpirationModalWindow"), z(n, "id", "CashierSessionExpirationModal"), Xe(() => (
|
|
4985
4990
|
/*div5_elementresize_handler*/
|
|
4986
4991
|
e[24].call(n)
|
|
4987
4992
|
));
|
|
4988
4993
|
},
|
|
4989
|
-
m(
|
|
4990
|
-
|
|
4994
|
+
m(f, x) {
|
|
4995
|
+
Ae(f, t, x), J(t, n), J(n, r), J(r, i), J(i, o), J(o, a), J(r, c), J(r, l), J(l, h), X && X.m(h, null), J(h, _), O && O.m(h, null), J(h, y), v && v.m(h, null), J(h, M), J(h, b), g[d].m(b, null), e[23](h), G = Ji(
|
|
4991
4996
|
n,
|
|
4992
4997
|
/*div5_elementresize_handler*/
|
|
4993
4998
|
e[24].bind(n)
|
|
4994
4999
|
), e[25](t), A = !0, H || (R = [
|
|
4995
|
-
|
|
5000
|
+
Ut(
|
|
4996
5001
|
b,
|
|
4997
5002
|
"click",
|
|
4998
5003
|
/*renewSession*/
|
|
4999
5004
|
e[9]
|
|
5000
5005
|
),
|
|
5001
|
-
|
|
5006
|
+
Ut(
|
|
5002
5007
|
n,
|
|
5003
5008
|
"click",
|
|
5004
5009
|
/*outOfModalClick*/
|
|
@@ -5006,101 +5011,101 @@ function Gr(e) {
|
|
|
5006
5011
|
)
|
|
5007
5012
|
], H = !0);
|
|
5008
5013
|
},
|
|
5009
|
-
p(
|
|
5010
|
-
e =
|
|
5014
|
+
p(f, x) {
|
|
5015
|
+
e = f, (!A || x[0] & /*$_*/
|
|
5011
5016
|
256) && u !== (u = /*$_*/
|
|
5012
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5013
|
-
2097152) &&
|
|
5014
|
-
|
|
5015
|
-
|
|
5017
|
+
e[8]("sessionExpirationHeader") + "") && Xt(a, u), Z ? Z.p && (!A || x[0] & /*$$scope*/
|
|
5018
|
+
2097152) && Ht(
|
|
5019
|
+
Z,
|
|
5020
|
+
k,
|
|
5016
5021
|
e,
|
|
5017
5022
|
/*$$scope*/
|
|
5018
5023
|
e[21],
|
|
5019
|
-
A ?
|
|
5020
|
-
|
|
5024
|
+
A ? Nt(
|
|
5025
|
+
k,
|
|
5021
5026
|
/*$$scope*/
|
|
5022
5027
|
e[21],
|
|
5023
5028
|
x,
|
|
5024
|
-
|
|
5025
|
-
) :
|
|
5029
|
+
Ua
|
|
5030
|
+
) : It(
|
|
5026
5031
|
/*$$scope*/
|
|
5027
5032
|
e[21]
|
|
5028
5033
|
),
|
|
5029
5034
|
Fr
|
|
5030
|
-
) :
|
|
5031
|
-
8) &&
|
|
5032
|
-
2097152) &&
|
|
5033
|
-
|
|
5035
|
+
) : X && X.p && (!A || x[0] & /*assetsurl*/
|
|
5036
|
+
8) && X.p(e, A ? x : [-1, -1]), j ? j.p && (!A || x[0] & /*$$scope*/
|
|
5037
|
+
2097152) && Ht(
|
|
5038
|
+
j,
|
|
5034
5039
|
Q,
|
|
5035
5040
|
e,
|
|
5036
5041
|
/*$$scope*/
|
|
5037
5042
|
e[21],
|
|
5038
|
-
A ?
|
|
5043
|
+
A ? Nt(
|
|
5039
5044
|
Q,
|
|
5040
5045
|
/*$$scope*/
|
|
5041
5046
|
e[21],
|
|
5042
5047
|
x,
|
|
5043
|
-
|
|
5044
|
-
) :
|
|
5048
|
+
$a
|
|
5049
|
+
) : It(
|
|
5045
5050
|
/*$$scope*/
|
|
5046
5051
|
e[21]
|
|
5047
5052
|
),
|
|
5048
5053
|
kr
|
|
5049
5054
|
) : O && O.p && (!A || x[0] & /*$_*/
|
|
5050
|
-
256) && O.p(e, A ? x : [-1, -1]),
|
|
5051
|
-
2097152) &&
|
|
5052
|
-
|
|
5055
|
+
256) && O.p(e, A ? x : [-1, -1]), fe ? fe.p && (!A || x[0] & /*$$scope*/
|
|
5056
|
+
2097152) && Ht(
|
|
5057
|
+
fe,
|
|
5053
5058
|
ne,
|
|
5054
5059
|
e,
|
|
5055
5060
|
/*$$scope*/
|
|
5056
5061
|
e[21],
|
|
5057
|
-
A ?
|
|
5062
|
+
A ? Nt(
|
|
5058
5063
|
ne,
|
|
5059
5064
|
/*$$scope*/
|
|
5060
5065
|
e[21],
|
|
5061
5066
|
x,
|
|
5062
|
-
|
|
5063
|
-
) :
|
|
5067
|
+
Ba
|
|
5068
|
+
) : It(
|
|
5064
5069
|
/*$$scope*/
|
|
5065
5070
|
e[21]
|
|
5066
5071
|
),
|
|
5067
5072
|
Ur
|
|
5068
|
-
) :
|
|
5069
|
-
384) &&
|
|
5073
|
+
) : v && v.p && (!A || x[0] & /*$_, timeLeft*/
|
|
5074
|
+
384) && v.p(e, A ? x : [-1, -1]);
|
|
5070
5075
|
let L = d;
|
|
5071
|
-
d =
|
|
5076
|
+
d = T(e), d === L ? g[d].p(e, x) : (Kr(), Le(g[L], 1, 1, () => {
|
|
5072
5077
|
g[L] = null;
|
|
5073
5078
|
}), 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
5079
|
64) && (b.disabled = /*showLoaderButton*/
|
|
5075
5080
|
e[6]);
|
|
5076
5081
|
},
|
|
5077
|
-
i(
|
|
5078
|
-
A || (Se(
|
|
5082
|
+
i(f) {
|
|
5083
|
+
A || (Se(X, f), Se(O, f), Se(v, f), Se(C), f && Xe(() => {
|
|
5079
5084
|
A && ($ || ($ = lr(n, cr, { duration: (
|
|
5080
5085
|
/*duration*/
|
|
5081
5086
|
e[2]
|
|
5082
5087
|
) }, !0)), $.run(1));
|
|
5083
5088
|
}), A = !0);
|
|
5084
5089
|
},
|
|
5085
|
-
o(
|
|
5086
|
-
|
|
5090
|
+
o(f) {
|
|
5091
|
+
Le(X, f), Le(O, f), Le(v, f), Le(C), f && ($ || ($ = lr(n, cr, { duration: (
|
|
5087
5092
|
/*duration*/
|
|
5088
5093
|
e[2]
|
|
5089
5094
|
) }, !1)), $.run(0)), A = !1;
|
|
5090
5095
|
},
|
|
5091
|
-
d(
|
|
5092
|
-
|
|
5096
|
+
d(f) {
|
|
5097
|
+
f && ge(t), X && X.d(f), O && O.d(f), v && v.d(f), g[d].d(), e[23](null), G(), f && $ && $.end(), e[25](null), H = !1, He(R);
|
|
5093
5098
|
}
|
|
5094
5099
|
};
|
|
5095
5100
|
}
|
|
5096
|
-
function
|
|
5101
|
+
function ka(e) {
|
|
5097
5102
|
let t;
|
|
5098
5103
|
return {
|
|
5099
5104
|
c() {
|
|
5100
|
-
t = te("div"),
|
|
5105
|
+
t = te("div"), z(t, "class", "ImagePlaceholder");
|
|
5101
5106
|
},
|
|
5102
5107
|
m(n, r) {
|
|
5103
|
-
|
|
5108
|
+
Ae(n, t, r);
|
|
5104
5109
|
},
|
|
5105
5110
|
p: de,
|
|
5106
5111
|
d(n) {
|
|
@@ -5108,32 +5113,32 @@ function Fa(e) {
|
|
|
5108
5113
|
}
|
|
5109
5114
|
};
|
|
5110
5115
|
}
|
|
5111
|
-
function
|
|
5116
|
+
function Fa(e) {
|
|
5112
5117
|
let t, n;
|
|
5113
5118
|
return {
|
|
5114
5119
|
c() {
|
|
5115
5120
|
t = te("img"), ir(t.src, n = `${/*assetsurl*/
|
|
5116
|
-
e[3]}/set-timeout-icon.png`) ||
|
|
5121
|
+
e[3]}/set-timeout-icon.png`) || z(t, "src", n), z(t, "width", "300px"), z(t, "alt", "error");
|
|
5117
5122
|
},
|
|
5118
5123
|
m(r, i) {
|
|
5119
|
-
|
|
5124
|
+
Ae(r, t, i);
|
|
5120
5125
|
},
|
|
5121
5126
|
p(r, i) {
|
|
5122
5127
|
i[0] & /*assetsurl*/
|
|
5123
5128
|
8 && !ir(t.src, n = `${/*assetsurl*/
|
|
5124
|
-
r[3]}/set-timeout-icon.png`) &&
|
|
5129
|
+
r[3]}/set-timeout-icon.png`) && z(t, "src", n);
|
|
5125
5130
|
},
|
|
5126
5131
|
d(r) {
|
|
5127
5132
|
r && ge(t);
|
|
5128
5133
|
}
|
|
5129
5134
|
};
|
|
5130
5135
|
}
|
|
5131
|
-
function
|
|
5136
|
+
function Ga(e) {
|
|
5132
5137
|
let t;
|
|
5133
|
-
function n(
|
|
5138
|
+
function n(o, u) {
|
|
5134
5139
|
return (
|
|
5135
5140
|
/*assetsurl*/
|
|
5136
|
-
|
|
5141
|
+
o[3] ? Fa : ka
|
|
5137
5142
|
);
|
|
5138
5143
|
}
|
|
5139
5144
|
let r = n(e), i = r(e);
|
|
@@ -5141,40 +5146,40 @@ function ja(e) {
|
|
|
5141
5146
|
c() {
|
|
5142
5147
|
i.c(), t = Jr();
|
|
5143
5148
|
},
|
|
5144
|
-
m(
|
|
5145
|
-
i.m(
|
|
5149
|
+
m(o, u) {
|
|
5150
|
+
i.m(o, u), Ae(o, t, u);
|
|
5146
5151
|
},
|
|
5147
|
-
p(
|
|
5148
|
-
r === (r = n(
|
|
5152
|
+
p(o, u) {
|
|
5153
|
+
r === (r = n(o)) && i ? i.p(o, u) : (i.d(1), i = r(o), i && (i.c(), i.m(t.parentNode, t)));
|
|
5149
5154
|
},
|
|
5150
|
-
d(
|
|
5151
|
-
|
|
5155
|
+
d(o) {
|
|
5156
|
+
o && ge(t), i.d(o);
|
|
5152
5157
|
}
|
|
5153
5158
|
};
|
|
5154
5159
|
}
|
|
5155
|
-
function
|
|
5160
|
+
function ja(e) {
|
|
5156
5161
|
let t, n = (
|
|
5157
5162
|
/*$_*/
|
|
5158
5163
|
e[8]("sessionExpirationTitle") + ""
|
|
5159
5164
|
), r;
|
|
5160
5165
|
return {
|
|
5161
5166
|
c() {
|
|
5162
|
-
t = te("span"), r =
|
|
5167
|
+
t = te("span"), r = Qe(n), z(t, "class", "CashierSessionExpirationTitle");
|
|
5163
5168
|
},
|
|
5164
|
-
m(i,
|
|
5165
|
-
|
|
5169
|
+
m(i, o) {
|
|
5170
|
+
Ae(i, t, o), J(t, r);
|
|
5166
5171
|
},
|
|
5167
|
-
p(i,
|
|
5168
|
-
|
|
5172
|
+
p(i, o) {
|
|
5173
|
+
o[0] & /*$_*/
|
|
5169
5174
|
256 && n !== (n = /*$_*/
|
|
5170
|
-
i[8]("sessionExpirationTitle") + "") &&
|
|
5175
|
+
i[8]("sessionExpirationTitle") + "") && Xt(r, n);
|
|
5171
5176
|
},
|
|
5172
5177
|
d(i) {
|
|
5173
5178
|
i && ge(t);
|
|
5174
5179
|
}
|
|
5175
5180
|
};
|
|
5176
5181
|
}
|
|
5177
|
-
function
|
|
5182
|
+
function za(e) {
|
|
5178
5183
|
let t, n = Rr.sanitize(
|
|
5179
5184
|
/*$_*/
|
|
5180
5185
|
e[8]("sessionExpirationGeneralText", { values: { second: (
|
|
@@ -5184,10 +5189,10 @@ function Wa(e) {
|
|
|
5184
5189
|
) + "";
|
|
5185
5190
|
return {
|
|
5186
5191
|
c() {
|
|
5187
|
-
t = te("span"),
|
|
5192
|
+
t = te("span"), z(t, "class", "CashierSessionExpirationText");
|
|
5188
5193
|
},
|
|
5189
5194
|
m(r, i) {
|
|
5190
|
-
|
|
5195
|
+
Ae(r, t, i), t.innerHTML = n;
|
|
5191
5196
|
},
|
|
5192
5197
|
p(r, i) {
|
|
5193
5198
|
i[0] & /*$_, timeLeft*/
|
|
@@ -5204,74 +5209,74 @@ function Wa(e) {
|
|
|
5204
5209
|
}
|
|
5205
5210
|
};
|
|
5206
5211
|
}
|
|
5207
|
-
function
|
|
5212
|
+
function Wa(e) {
|
|
5208
5213
|
let t;
|
|
5209
5214
|
const n = (
|
|
5210
5215
|
/*#slots*/
|
|
5211
5216
|
e[22].button
|
|
5212
|
-
), r =
|
|
5217
|
+
), r = Lt(
|
|
5213
5218
|
n,
|
|
5214
5219
|
e,
|
|
5215
5220
|
/*$$scope*/
|
|
5216
5221
|
e[21],
|
|
5217
5222
|
$r
|
|
5218
|
-
), i = r ||
|
|
5223
|
+
), i = r || Xa(e);
|
|
5219
5224
|
return {
|
|
5220
5225
|
c() {
|
|
5221
5226
|
i && i.c();
|
|
5222
5227
|
},
|
|
5223
|
-
m(
|
|
5224
|
-
i && i.m(
|
|
5228
|
+
m(o, u) {
|
|
5229
|
+
i && i.m(o, u), t = !0;
|
|
5225
5230
|
},
|
|
5226
|
-
p(
|
|
5231
|
+
p(o, u) {
|
|
5227
5232
|
r ? r.p && (!t || u[0] & /*$$scope*/
|
|
5228
|
-
2097152) &&
|
|
5233
|
+
2097152) && Ht(
|
|
5229
5234
|
r,
|
|
5230
5235
|
n,
|
|
5231
|
-
|
|
5236
|
+
o,
|
|
5232
5237
|
/*$$scope*/
|
|
5233
|
-
|
|
5234
|
-
t ?
|
|
5238
|
+
o[21],
|
|
5239
|
+
t ? Nt(
|
|
5235
5240
|
n,
|
|
5236
5241
|
/*$$scope*/
|
|
5237
|
-
|
|
5242
|
+
o[21],
|
|
5238
5243
|
u,
|
|
5239
|
-
|
|
5240
|
-
) :
|
|
5244
|
+
Da
|
|
5245
|
+
) : It(
|
|
5241
5246
|
/*$$scope*/
|
|
5242
|
-
|
|
5247
|
+
o[21]
|
|
5243
5248
|
),
|
|
5244
5249
|
$r
|
|
5245
5250
|
) : i && i.p && (!t || u[0] & /*$_*/
|
|
5246
|
-
256) && i.p(
|
|
5251
|
+
256) && i.p(o, t ? u : [-1, -1]);
|
|
5247
5252
|
},
|
|
5248
|
-
i(
|
|
5249
|
-
t || (Se(i,
|
|
5253
|
+
i(o) {
|
|
5254
|
+
t || (Se(i, o), t = !0);
|
|
5250
5255
|
},
|
|
5251
|
-
o(
|
|
5252
|
-
|
|
5256
|
+
o(o) {
|
|
5257
|
+
Le(i, o), t = !1;
|
|
5253
5258
|
},
|
|
5254
|
-
d(
|
|
5255
|
-
i && i.d(
|
|
5259
|
+
d(o) {
|
|
5260
|
+
i && i.d(o);
|
|
5256
5261
|
}
|
|
5257
5262
|
};
|
|
5258
5263
|
}
|
|
5259
|
-
function
|
|
5260
|
-
let t, n, r, i,
|
|
5264
|
+
function Va(e) {
|
|
5265
|
+
let t, n, r, i, o, u = (
|
|
5261
5266
|
/*$_*/
|
|
5262
5267
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5263
5268
|
), a;
|
|
5264
5269
|
return {
|
|
5265
5270
|
c() {
|
|
5266
|
-
t = te("div"), n =
|
|
5271
|
+
t = te("div"), n = sr("svg"), r = sr("path"), i = ht(), o = te("span"), a = Qe(u), z(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"), z(r, "fill", "white"), z(n, "class", "CashierSessionExpirationButtonSpinner"), z(n, "xmlns", "http://www.w3.org/2000/svg"), z(n, "width", "15"), z(n, "height", "14"), z(n, "viewBox", "0 0 15 14"), z(n, "fill", "none"), z(o, "class", "CashierSessionExpirationButtonText");
|
|
5267
5272
|
},
|
|
5268
5273
|
m(c, l) {
|
|
5269
|
-
|
|
5274
|
+
Ae(c, t, l), J(t, n), J(n, r), J(t, i), J(t, o), J(o, a);
|
|
5270
5275
|
},
|
|
5271
5276
|
p(c, l) {
|
|
5272
5277
|
l[0] & /*$_*/
|
|
5273
5278
|
256 && u !== (u = /*$_*/
|
|
5274
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5279
|
+
c[8]("sessionExpirationLoadingButton") + "") && Xt(a, u);
|
|
5275
5280
|
},
|
|
5276
5281
|
i: de,
|
|
5277
5282
|
o: de,
|
|
@@ -5280,29 +5285,29 @@ function Xa(e) {
|
|
|
5280
5285
|
}
|
|
5281
5286
|
};
|
|
5282
5287
|
}
|
|
5283
|
-
function
|
|
5288
|
+
function Xa(e) {
|
|
5284
5289
|
let t, n = (
|
|
5285
5290
|
/*$_*/
|
|
5286
5291
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5287
5292
|
), r;
|
|
5288
5293
|
return {
|
|
5289
5294
|
c() {
|
|
5290
|
-
t = te("span"), r =
|
|
5295
|
+
t = te("span"), r = Qe(n), z(t, "class", "CashierSessionExpirationButtonText");
|
|
5291
5296
|
},
|
|
5292
|
-
m(i,
|
|
5293
|
-
|
|
5297
|
+
m(i, o) {
|
|
5298
|
+
Ae(i, t, o), J(t, r);
|
|
5294
5299
|
},
|
|
5295
|
-
p(i,
|
|
5296
|
-
|
|
5300
|
+
p(i, o) {
|
|
5301
|
+
o[0] & /*$_*/
|
|
5297
5302
|
256 && n !== (n = /*$_*/
|
|
5298
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5303
|
+
i[8]("sessionExpirationGeneralButton") + "") && Xt(r, n);
|
|
5299
5304
|
},
|
|
5300
5305
|
d(i) {
|
|
5301
5306
|
i && ge(t);
|
|
5302
5307
|
}
|
|
5303
5308
|
};
|
|
5304
5309
|
}
|
|
5305
|
-
function
|
|
5310
|
+
function Ya(e) {
|
|
5306
5311
|
let t, n, r = (
|
|
5307
5312
|
/*show*/
|
|
5308
5313
|
e[5] && Gr(e)
|
|
@@ -5311,13 +5316,13 @@ function Za(e) {
|
|
|
5311
5316
|
c() {
|
|
5312
5317
|
r && r.c(), t = Jr();
|
|
5313
5318
|
},
|
|
5314
|
-
m(i,
|
|
5315
|
-
r && r.m(i,
|
|
5319
|
+
m(i, o) {
|
|
5320
|
+
r && r.m(i, o), Ae(i, t, o), n = !0;
|
|
5316
5321
|
},
|
|
5317
|
-
p(i,
|
|
5322
|
+
p(i, o) {
|
|
5318
5323
|
/*show*/
|
|
5319
|
-
i[5] ? r ? (r.p(i,
|
|
5320
|
-
32 && Se(r, 1)) : (r = Gr(i), r.c(), Se(r, 1), r.m(t.parentNode, t)) : r && (Kr(),
|
|
5324
|
+
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5325
|
+
32 && Se(r, 1)) : (r = Gr(i), r.c(), Se(r, 1), r.m(t.parentNode, t)) : r && (Kr(), Le(r, 1, 1, () => {
|
|
5321
5326
|
r = null;
|
|
5322
5327
|
}), ei());
|
|
5323
5328
|
},
|
|
@@ -5325,27 +5330,27 @@ function Za(e) {
|
|
|
5325
5330
|
n || (Se(r), n = !0);
|
|
5326
5331
|
},
|
|
5327
5332
|
o(i) {
|
|
5328
|
-
|
|
5333
|
+
Le(r), n = !1;
|
|
5329
5334
|
},
|
|
5330
5335
|
d(i) {
|
|
5331
5336
|
i && ge(t), r && r.d(i);
|
|
5332
5337
|
}
|
|
5333
5338
|
};
|
|
5334
5339
|
}
|
|
5335
|
-
const
|
|
5336
|
-
function
|
|
5340
|
+
const Za = 90;
|
|
5341
|
+
function qa(e, t, n) {
|
|
5337
5342
|
let r, i;
|
|
5338
|
-
|
|
5339
|
-
let { $$slots:
|
|
5340
|
-
Dr.extend(
|
|
5341
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height:
|
|
5343
|
+
or(e, Br, (m) => n(20, r = m)), or(e, ua, (m) => n(8, i = m));
|
|
5344
|
+
let { $$slots: o = {}, $$scope: u } = t;
|
|
5345
|
+
Dr.extend(Na);
|
|
5346
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: l } = t, { height: h } = t, { duration: _ = 200 } = t, { assetsurl: y = "" } = t, { lang: M = "en" } = t, { translationurl: b = "" } = t, { endpoint: d } = t, { currency: C } = t, { customerid: G } = t, { selectedpaymentmethodname: $ } = t, { mbsource: A = "" } = t, H, R = !1, k = !1, Z, X, Q, j, O;
|
|
5342
5347
|
var ne;
|
|
5343
5348
|
(function(m) {
|
|
5344
5349
|
m.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", m.Success = "Success", m.JwtTokenError = "JwtTokenError";
|
|
5345
5350
|
})(ne || (ne = {}));
|
|
5346
|
-
const
|
|
5347
|
-
m.data.type === "StartSessionCountdown" && (
|
|
5348
|
-
},
|
|
5351
|
+
const fe = (m) => {
|
|
5352
|
+
m.data.type === "StartSessionCountdown" && (j = m.data.paymentMethodName);
|
|
5353
|
+
}, v = (m) => {
|
|
5349
5354
|
try {
|
|
5350
5355
|
return JSON.parse(atob(m.split(".")[1]));
|
|
5351
5356
|
} catch {
|
|
@@ -5361,27 +5366,27 @@ function Ja(e, t, n) {
|
|
|
5361
5366
|
);
|
|
5362
5367
|
}, g = (m) => {
|
|
5363
5368
|
n(5, R = !1);
|
|
5364
|
-
const
|
|
5365
|
-
|
|
5369
|
+
const F = v(m);
|
|
5370
|
+
F && (X = F?.exp, n(7, Z = X), Q && clearInterval(Q), Q = setInterval(
|
|
5366
5371
|
() => {
|
|
5367
5372
|
const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5368
|
-
n(7,
|
|
5373
|
+
n(7, Z = X - ee), Z <= Za && n(5, R = !0), ee >= X && (T(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5369
5374
|
},
|
|
5370
5375
|
1e3
|
|
5371
5376
|
));
|
|
5372
|
-
},
|
|
5373
|
-
n(7,
|
|
5374
|
-
},
|
|
5375
|
-
if (
|
|
5377
|
+
}, T = () => {
|
|
5378
|
+
n(7, Z = 0), n(5, R = !1), clearInterval(Q);
|
|
5379
|
+
}, f = () => {
|
|
5380
|
+
if (k)
|
|
5376
5381
|
return;
|
|
5377
|
-
const m = new URL(`${d}/v1/player/${
|
|
5378
|
-
n(6,
|
|
5382
|
+
const m = new URL(`${d}/v1/player/${G}/payment/GetPaymentMethod`), F = new Headers();
|
|
5383
|
+
n(6, k = !0), F.append("accept", "application/json"), F.append("Content-Type", "application/json"), F.append("X-Client-Request-Timestamp", Dr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5379
5384
|
const ee = {
|
|
5380
5385
|
method: "POST",
|
|
5381
5386
|
mode: "cors",
|
|
5382
|
-
headers:
|
|
5387
|
+
headers: F,
|
|
5383
5388
|
body: JSON.stringify({
|
|
5384
|
-
PaymentMethodName:
|
|
5389
|
+
PaymentMethodName: j || $,
|
|
5385
5390
|
Currency: C,
|
|
5386
5391
|
XPaymentSessionToken: r
|
|
5387
5392
|
})
|
|
@@ -5394,76 +5399,76 @@ function Ja(e, t, n) {
|
|
|
5394
5399
|
error: K.error
|
|
5395
5400
|
},
|
|
5396
5401
|
window.location.href
|
|
5397
|
-
),
|
|
5402
|
+
), T();
|
|
5398
5403
|
return;
|
|
5399
5404
|
}
|
|
5400
5405
|
if (K.ResponseCode === ne.PlayerSessionIsNotValid || K.ResponseCode === ne.JwtTokenError) {
|
|
5401
|
-
O = K.ResponseCode,
|
|
5406
|
+
O = K.ResponseCode, T(), E();
|
|
5402
5407
|
return;
|
|
5403
5408
|
}
|
|
5404
5409
|
if (K.ResponseCode !== ne.Success) {
|
|
5405
|
-
O = K.ResponseCode,
|
|
5410
|
+
O = K.ResponseCode, T();
|
|
5406
5411
|
return;
|
|
5407
5412
|
}
|
|
5408
5413
|
K.XPaymentSessionToken && Br.set(K.XPaymentSessionToken);
|
|
5409
|
-
}).finally(() => n(6,
|
|
5414
|
+
}).finally(() => n(6, k = !1));
|
|
5410
5415
|
}, x = (m) => {
|
|
5411
|
-
const
|
|
5412
|
-
m.target ===
|
|
5416
|
+
const F = m.currentTarget;
|
|
5417
|
+
m.target === F && f();
|
|
5413
5418
|
}, L = () => {
|
|
5414
|
-
fetch(b).then((
|
|
5415
|
-
Object.keys(
|
|
5416
|
-
Ar(ee,
|
|
5419
|
+
fetch(b).then((F) => F.json()).then((F) => {
|
|
5420
|
+
Object.keys(F).forEach((ee) => {
|
|
5421
|
+
Ar(ee, F[ee]);
|
|
5417
5422
|
});
|
|
5418
|
-
}).catch((
|
|
5419
|
-
console.log(
|
|
5423
|
+
}).catch((F) => {
|
|
5424
|
+
console.log(F);
|
|
5420
5425
|
});
|
|
5421
5426
|
};
|
|
5422
5427
|
Object.keys(wr).forEach((m) => {
|
|
5423
5428
|
Ar(m, wr[m]);
|
|
5424
5429
|
});
|
|
5425
5430
|
const N = () => {
|
|
5426
|
-
|
|
5431
|
+
la(M);
|
|
5427
5432
|
};
|
|
5428
|
-
|
|
5429
|
-
window.removeEventListener("message",
|
|
5430
|
-
})),
|
|
5433
|
+
io(() => (window.addEventListener("message", fe, !1), () => {
|
|
5434
|
+
window.removeEventListener("message", fe);
|
|
5435
|
+
})), oo(() => {
|
|
5431
5436
|
clearInterval(Q);
|
|
5432
5437
|
});
|
|
5433
|
-
function
|
|
5434
|
-
|
|
5438
|
+
function W(m) {
|
|
5439
|
+
Gt[m ? "unshift" : "push"](() => {
|
|
5435
5440
|
H = m, n(4, H);
|
|
5436
5441
|
});
|
|
5437
5442
|
}
|
|
5438
5443
|
function I() {
|
|
5439
|
-
l = this.clientWidth,
|
|
5444
|
+
l = this.clientWidth, h = this.clientHeight, n(0, l), n(1, h);
|
|
5440
5445
|
}
|
|
5441
5446
|
function q(m) {
|
|
5442
|
-
|
|
5447
|
+
Gt[m ? "unshift" : "push"](() => {
|
|
5443
5448
|
H = m, n(4, H);
|
|
5444
5449
|
});
|
|
5445
5450
|
}
|
|
5446
5451
|
return e.$$set = (m) => {
|
|
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,
|
|
5452
|
+
"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, h = 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, G = 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);
|
|
5448
5453
|
}, e.$$.update = () => {
|
|
5449
5454
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5450
5455
|
1048576 && g(r), e.$$.dirty[0] & /*lang*/
|
|
5451
5456
|
8192 && M && N(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5452
|
-
2064 && a && H &&
|
|
5453
|
-
4112 && c && H &&
|
|
5454
|
-
524304 && A && H &&
|
|
5457
|
+
2064 && a && H && Ha(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5458
|
+
4112 && c && H && Ia(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5459
|
+
524304 && A && H && Pa(H, `${A}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5455
5460
|
16384 && b && L();
|
|
5456
5461
|
}, [
|
|
5457
5462
|
l,
|
|
5458
|
-
|
|
5463
|
+
h,
|
|
5459
5464
|
_,
|
|
5460
5465
|
y,
|
|
5461
5466
|
H,
|
|
5462
5467
|
R,
|
|
5463
|
-
|
|
5464
|
-
|
|
5468
|
+
k,
|
|
5469
|
+
Z,
|
|
5465
5470
|
i,
|
|
5466
|
-
|
|
5471
|
+
f,
|
|
5467
5472
|
x,
|
|
5468
5473
|
a,
|
|
5469
5474
|
c,
|
|
@@ -5471,24 +5476,24 @@ function Ja(e, t, n) {
|
|
|
5471
5476
|
b,
|
|
5472
5477
|
d,
|
|
5473
5478
|
C,
|
|
5474
|
-
|
|
5479
|
+
G,
|
|
5475
5480
|
$,
|
|
5476
5481
|
A,
|
|
5477
5482
|
r,
|
|
5478
5483
|
u,
|
|
5479
|
-
|
|
5480
|
-
|
|
5484
|
+
o,
|
|
5485
|
+
W,
|
|
5481
5486
|
I,
|
|
5482
5487
|
q
|
|
5483
5488
|
];
|
|
5484
5489
|
}
|
|
5485
|
-
class
|
|
5490
|
+
class Ja extends bo {
|
|
5486
5491
|
constructor(t) {
|
|
5487
|
-
super(),
|
|
5492
|
+
super(), go(
|
|
5488
5493
|
this,
|
|
5489
5494
|
t,
|
|
5490
|
-
|
|
5491
|
-
|
|
5495
|
+
qa,
|
|
5496
|
+
Ya,
|
|
5492
5497
|
Wr,
|
|
5493
5498
|
{
|
|
5494
5499
|
clientstyling: 11,
|
|
@@ -5505,7 +5510,7 @@ class Qa extends _s {
|
|
|
5505
5510
|
selectedpaymentmethodname: 18,
|
|
5506
5511
|
mbsource: 19
|
|
5507
5512
|
},
|
|
5508
|
-
|
|
5513
|
+
Ra,
|
|
5509
5514
|
[-1, -1]
|
|
5510
5515
|
);
|
|
5511
5516
|
}
|
|
@@ -5588,7 +5593,7 @@ class Qa extends _s {
|
|
|
5588
5593
|
this.$$set({ mbsource: t }), le();
|
|
5589
5594
|
}
|
|
5590
5595
|
}
|
|
5591
|
-
|
|
5596
|
+
_o(Ja, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5592
5597
|
export {
|
|
5593
|
-
|
|
5598
|
+
Ja as C
|
|
5594
5599
|
};
|