@everymatrix/cashier-session-expiration-modal 1.85.21 → 1.85.22
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-BLSkwqeD.js → CashierSessionExpirationModal-CK3ySuQl.js} +834 -840
- package/components/{CashierSessionExpirationModal-D6e6g0Ll.js → CashierSessionExpirationModal-Cc1S2bE-.js} +802 -808
- package/components/CashierSessionExpirationModal-Vubylti9.cjs +9 -0
- 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-5KLrMZ18.cjs +0 -9
|
@@ -10,7 +10,7 @@ var un = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
Ki.call(t, n) && un(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, lr = (e, t) => qi(e, Ji(t));
|
|
13
|
-
var
|
|
13
|
+
var ve = (e, t, n) => (un(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var ur = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
@@ -27,7 +27,7 @@ var ur = (e, t, n) => new Promise((r, i) => {
|
|
|
27
27
|
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, l);
|
|
28
28
|
a((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function ye() {
|
|
31
31
|
}
|
|
32
32
|
const qr = (e) => e;
|
|
33
33
|
function eo(e, t) {
|
|
@@ -44,7 +44,7 @@ function Jr(e) {
|
|
|
44
44
|
function cr() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ue(e) {
|
|
48
48
|
e.forEach(Jr);
|
|
49
49
|
}
|
|
50
50
|
function Kt(e) {
|
|
@@ -64,7 +64,7 @@ function Kr(e, ...t) {
|
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const r of t)
|
|
66
66
|
r(void 0);
|
|
67
|
-
return
|
|
67
|
+
return ye;
|
|
68
68
|
}
|
|
69
69
|
const n = e.subscribe(...t);
|
|
70
70
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
@@ -112,7 +112,7 @@ function kt(e) {
|
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
114
|
const ti = typeof window != "undefined";
|
|
115
|
-
let no = ti ? () => window.performance.now() : () => Date.now(), Pn = ti ? (e) => requestAnimationFrame(e) :
|
|
115
|
+
let no = ti ? () => window.performance.now() : () => Date.now(), Pn = ti ? (e) => requestAnimationFrame(e) : ye;
|
|
116
116
|
const Ke = /* @__PURE__ */ new Set();
|
|
117
117
|
function ni(e) {
|
|
118
118
|
Ke.forEach((t) => {
|
|
@@ -130,13 +130,13 @@ function ro(e) {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function B(e, t) {
|
|
134
134
|
e.appendChild(t);
|
|
135
135
|
}
|
|
136
136
|
function io(e, t, n) {
|
|
137
137
|
const r = Rn(e);
|
|
138
138
|
if (!r.getElementById(t)) {
|
|
139
|
-
const i =
|
|
139
|
+
const i = te("style");
|
|
140
140
|
i.id = t, i.textContent = n, ri(r, i);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -151,41 +151,41 @@ function Rn(e) {
|
|
|
151
151
|
) : e.ownerDocument;
|
|
152
152
|
}
|
|
153
153
|
function oo(e) {
|
|
154
|
-
const t =
|
|
154
|
+
const t = te("style");
|
|
155
155
|
return t.textContent = "/* empty */", ri(Rn(e), t), t.sheet;
|
|
156
156
|
}
|
|
157
157
|
function ri(e, t) {
|
|
158
|
-
return
|
|
158
|
+
return B(
|
|
159
159
|
/** @type {Document} */
|
|
160
160
|
e.head || e,
|
|
161
161
|
t
|
|
162
162
|
), t.sheet;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ke(e, t, n) {
|
|
165
165
|
e.insertBefore(t, n || null);
|
|
166
166
|
}
|
|
167
167
|
function Ae(e) {
|
|
168
168
|
e.parentNode && e.parentNode.removeChild(e);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function te(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
173
|
function Se(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function je(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function Re() {
|
|
180
|
+
return je(" ");
|
|
181
181
|
}
|
|
182
182
|
function so() {
|
|
183
|
-
return
|
|
183
|
+
return je("");
|
|
184
184
|
}
|
|
185
185
|
function Qe(e, t, n, r) {
|
|
186
186
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function w(e, t, n) {
|
|
189
189
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
190
190
|
}
|
|
191
191
|
function ao(e) {
|
|
@@ -209,7 +209,7 @@ function lo() {
|
|
|
209
209
|
}
|
|
210
210
|
function uo(e, t) {
|
|
211
211
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
212
|
-
const r =
|
|
212
|
+
const r = te("iframe");
|
|
213
213
|
r.setAttribute(
|
|
214
214
|
"style",
|
|
215
215
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
@@ -225,7 +225,7 @@ function uo(e, t) {
|
|
|
225
225
|
}
|
|
226
226
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
227
227
|
o = Qe(r.contentWindow, "resize", t), t();
|
|
228
|
-
}),
|
|
228
|
+
}), B(e, r), () => {
|
|
229
229
|
(i || o && r.contentWindow) && o(), Ae(r);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
@@ -257,14 +257,14 @@ function mr(e, t, n, r, i, o, l, a = 0) {
|
|
|
257
257
|
const c = 16.666 / r;
|
|
258
258
|
let u = `{
|
|
259
259
|
`;
|
|
260
|
-
for (let
|
|
261
|
-
const
|
|
262
|
-
u +=
|
|
260
|
+
for (let N = 0; N <= 1; N += c) {
|
|
261
|
+
const U = t + (n - t) * o(N);
|
|
262
|
+
u += N * 100 + `%{${l(U, 1 - U)}}
|
|
263
263
|
`;
|
|
264
264
|
}
|
|
265
265
|
const f = u + `100% {${l(n, 1 - n)}}
|
|
266
|
-
}`, m = `__svelte_${ho(f)}_${a}`, y = Rn(e), { stylesheet:
|
|
267
|
-
x[m] || (x[m] = !0,
|
|
266
|
+
}`, m = `__svelte_${ho(f)}_${a}`, y = Rn(e), { stylesheet: A, rules: x } = Vt.get(y) || mo(y, e);
|
|
267
|
+
x[m] || (x[m] = !0, A.insertRule(`@keyframes ${m} ${f}`, A.cssRules.length));
|
|
268
268
|
const g = e.style.animation || "";
|
|
269
269
|
return e.style.animation = `${g ? `${g}, ` : ""}${m} ${r}ms linear ${i}ms 1 both`, Xt += 1, m;
|
|
270
270
|
}
|
|
@@ -303,14 +303,14 @@ let et = [];
|
|
|
303
303
|
const pr = [], Eo = /* @__PURE__ */ Promise.resolve();
|
|
304
304
|
let Tn = !1;
|
|
305
305
|
function yo() {
|
|
306
|
-
Tn || (Tn = !0, Eo.then(
|
|
306
|
+
Tn || (Tn = !0, Eo.then(de));
|
|
307
307
|
}
|
|
308
308
|
function tt(e) {
|
|
309
309
|
et.push(e);
|
|
310
310
|
}
|
|
311
311
|
const cn = /* @__PURE__ */ new Set();
|
|
312
312
|
let Ze = 0;
|
|
313
|
-
function
|
|
313
|
+
function de() {
|
|
314
314
|
if (Ze !== 0)
|
|
315
315
|
return;
|
|
316
316
|
const e = xt;
|
|
@@ -337,7 +337,7 @@ function me() {
|
|
|
337
337
|
}
|
|
338
338
|
function xo(e) {
|
|
339
339
|
if (e.fragment !== null) {
|
|
340
|
-
e.update(),
|
|
340
|
+
e.update(), Ue(e.before_update);
|
|
341
341
|
const t = e.dirty;
|
|
342
342
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tt);
|
|
343
343
|
}
|
|
@@ -355,28 +355,28 @@ function To() {
|
|
|
355
355
|
function fn(e, t, n) {
|
|
356
356
|
e.dispatchEvent(co(`${t ? "intro" : "outro"}${n}`));
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
let
|
|
358
|
+
const Ft = /* @__PURE__ */ new Set();
|
|
359
|
+
let De;
|
|
360
360
|
function oi() {
|
|
361
|
-
|
|
361
|
+
De = {
|
|
362
362
|
r: 0,
|
|
363
363
|
c: [],
|
|
364
|
-
p:
|
|
364
|
+
p: De
|
|
365
365
|
// parent group
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
function si() {
|
|
369
|
-
|
|
369
|
+
De.r || Ue(De.c), De = De.p;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
e && e.i && (
|
|
371
|
+
function He(e, t) {
|
|
372
|
+
e && e.i && (Ft.delete(e), e.i(t));
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Be(e, t, n, r) {
|
|
375
375
|
if (e && e.o) {
|
|
376
|
-
if (
|
|
376
|
+
if (Ft.has(e))
|
|
377
377
|
return;
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
Ft.add(e), De.c.push(() => {
|
|
379
|
+
Ft.delete(e), r && (n && e.d(1), r());
|
|
380
380
|
}), e.o(t);
|
|
381
381
|
} else
|
|
382
382
|
r && r();
|
|
@@ -388,47 +388,47 @@ function dr(e, t, n, r) {
|
|
|
388
388
|
u && po(e, u);
|
|
389
389
|
}
|
|
390
390
|
function y(x, g) {
|
|
391
|
-
const
|
|
391
|
+
const N = (
|
|
392
392
|
/** @type {Program['d']} */
|
|
393
393
|
x.b - l
|
|
394
394
|
);
|
|
395
|
-
return g *= Math.abs(
|
|
395
|
+
return g *= Math.abs(N), {
|
|
396
396
|
a: l,
|
|
397
397
|
b: x.b,
|
|
398
|
-
d:
|
|
398
|
+
d: N,
|
|
399
399
|
duration: g,
|
|
400
400
|
start: x.start,
|
|
401
401
|
end: x.start + g,
|
|
402
402
|
group: x.group
|
|
403
403
|
};
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function A(x) {
|
|
406
406
|
const {
|
|
407
407
|
delay: g = 0,
|
|
408
|
-
duration:
|
|
409
|
-
easing:
|
|
410
|
-
tick:
|
|
411
|
-
css:
|
|
412
|
-
} = o || So,
|
|
408
|
+
duration: N = 300,
|
|
409
|
+
easing: U = qr,
|
|
410
|
+
tick: V = ye,
|
|
411
|
+
css: R
|
|
412
|
+
} = o || So, H = {
|
|
413
413
|
start: no() + g,
|
|
414
414
|
b: x
|
|
415
415
|
};
|
|
416
|
-
x || (
|
|
417
|
-
e.inert, e.inert = !0)), a || c ? c =
|
|
418
|
-
if (c &&
|
|
416
|
+
x || (H.group = De, De.r += 1), "inert" in e && (x ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
417
|
+
e.inert, e.inert = !0)), a || c ? c = H : (R && (m(), u = mr(e, l, x, N, g, U, R)), x && V(0, 1), a = y(H, N), tt(() => fn(e, x, "start")), ro((I) => {
|
|
418
|
+
if (c && I > c.start && (a = y(c, N), c = null, fn(e, a.b, "start"), R && (m(), u = mr(
|
|
419
419
|
e,
|
|
420
420
|
l,
|
|
421
421
|
a.b,
|
|
422
422
|
a.duration,
|
|
423
423
|
0,
|
|
424
|
-
|
|
424
|
+
U,
|
|
425
425
|
o.css
|
|
426
426
|
))), a) {
|
|
427
|
-
if (
|
|
428
|
-
|
|
429
|
-
else if (
|
|
430
|
-
const
|
|
431
|
-
l = a.a + a.d *
|
|
427
|
+
if (I >= a.end)
|
|
428
|
+
V(l = a.b, 1 - l), fn(e, a.b, "end"), c || (a.b ? m() : --a.group.r || Ue(a.group.c)), a = null;
|
|
429
|
+
else if (I >= a.start) {
|
|
430
|
+
const W = I - a.start;
|
|
431
|
+
l = a.a + a.d * U(W / a.duration), V(l, 1 - l);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
return !!(a || c);
|
|
@@ -437,8 +437,8 @@ function dr(e, t, n, r) {
|
|
|
437
437
|
return {
|
|
438
438
|
run(x) {
|
|
439
439
|
Kt(o) ? To().then(() => {
|
|
440
|
-
o = o({ direction: x ? "in" : "out" }),
|
|
441
|
-
}) :
|
|
440
|
+
o = o({ direction: x ? "in" : "out" }), A(x);
|
|
441
|
+
}) : A(x);
|
|
442
442
|
},
|
|
443
443
|
end() {
|
|
444
444
|
m(), a = c = null;
|
|
@@ -449,17 +449,17 @@ function wo(e, t, n) {
|
|
|
449
449
|
const { fragment: r, after_update: i } = e.$$;
|
|
450
450
|
r && r.m(t, n), tt(() => {
|
|
451
451
|
const o = e.$$.on_mount.map(Jr).filter(Kt);
|
|
452
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
452
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ue(o), e.$$.on_mount = [];
|
|
453
453
|
}), i.forEach(tt);
|
|
454
454
|
}
|
|
455
455
|
function Ao(e, t) {
|
|
456
456
|
const n = e.$$;
|
|
457
|
-
n.fragment !== null && (vo(n.after_update),
|
|
457
|
+
n.fragment !== null && (vo(n.after_update), Ue(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function Oo(e, t) {
|
|
460
460
|
e.$$.dirty[0] === -1 && (Je.push(e), yo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function Mo(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
463
463
|
const c = xt;
|
|
464
464
|
Et(e);
|
|
465
465
|
const u = e.$$ = {
|
|
@@ -467,7 +467,7 @@ function Oo(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
467
467
|
ctx: [],
|
|
468
468
|
// state
|
|
469
469
|
props: o,
|
|
470
|
-
update:
|
|
470
|
+
update: ye,
|
|
471
471
|
not_equal: i,
|
|
472
472
|
bound: cr(),
|
|
473
473
|
// lifecycle
|
|
@@ -485,16 +485,16 @@ function Oo(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
485
485
|
};
|
|
486
486
|
l && l(u.root);
|
|
487
487
|
let f = !1;
|
|
488
|
-
if (u.ctx = n ? n(e, t.props || {}, (m, y, ...
|
|
489
|
-
const x =
|
|
490
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = x) && (!u.skip_bound && u.bound[m] && u.bound[m](x), f &&
|
|
491
|
-
}) : [], u.update(), f = !0,
|
|
488
|
+
if (u.ctx = n ? n(e, t.props || {}, (m, y, ...A) => {
|
|
489
|
+
const x = A.length ? A[0] : y;
|
|
490
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = x) && (!u.skip_bound && u.bound[m] && u.bound[m](x), f && Oo(e, m)), y;
|
|
491
|
+
}) : [], u.update(), f = !0, Ue(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
492
492
|
if (t.hydrate) {
|
|
493
493
|
const m = ao(t.target);
|
|
494
494
|
u.fragment && u.fragment.l(m), m.forEach(Ae);
|
|
495
495
|
} else
|
|
496
496
|
u.fragment && u.fragment.c();
|
|
497
|
-
t.intro &&
|
|
497
|
+
t.intro && He(e.$$.fragment), wo(e, t.target, t.anchor), de();
|
|
498
498
|
}
|
|
499
499
|
Et(c);
|
|
500
500
|
}
|
|
@@ -503,23 +503,23 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
503
503
|
constructor(t, n, r) {
|
|
504
504
|
super();
|
|
505
505
|
/** The Svelte component constructor */
|
|
506
|
-
|
|
506
|
+
ve(this, "$$ctor");
|
|
507
507
|
/** Slots */
|
|
508
|
-
|
|
508
|
+
ve(this, "$$s");
|
|
509
509
|
/** The Svelte component instance */
|
|
510
|
-
|
|
510
|
+
ve(this, "$$c");
|
|
511
511
|
/** Whether or not the custom element is connected */
|
|
512
|
-
|
|
512
|
+
ve(this, "$$cn", !1);
|
|
513
513
|
/** Component props data */
|
|
514
|
-
|
|
514
|
+
ve(this, "$$d", {});
|
|
515
515
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
516
|
-
|
|
516
|
+
ve(this, "$$r", !1);
|
|
517
517
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
518
|
-
|
|
518
|
+
ve(this, "$$p_d", {});
|
|
519
519
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
520
|
-
|
|
520
|
+
ve(this, "$$l", {});
|
|
521
521
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
522
|
-
|
|
522
|
+
ve(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
523
523
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
524
524
|
}
|
|
525
525
|
addEventListener(t, n, r) {
|
|
@@ -543,14 +543,14 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
543
543
|
let l;
|
|
544
544
|
return {
|
|
545
545
|
c: function() {
|
|
546
|
-
l =
|
|
546
|
+
l = te("slot"), o !== "default" && w(l, "name", o);
|
|
547
547
|
},
|
|
548
548
|
/**
|
|
549
549
|
* @param {HTMLElement} target
|
|
550
550
|
* @param {HTMLElement} [anchor]
|
|
551
551
|
*/
|
|
552
552
|
m: function(u, f) {
|
|
553
|
-
|
|
553
|
+
ke(u, l, f);
|
|
554
554
|
},
|
|
555
555
|
d: function(u) {
|
|
556
556
|
u && Ae(l);
|
|
@@ -565,7 +565,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
565
565
|
o in r && (n[o] = [t(o)]);
|
|
566
566
|
for (const o of this.attributes) {
|
|
567
567
|
const l = this.$$g_p(o.name);
|
|
568
|
-
l in this.$$d || (this.$$d[l] =
|
|
568
|
+
l in this.$$d || (this.$$d[l] = Gt(l, o.value, this.$$p_d, "toProp"));
|
|
569
569
|
}
|
|
570
570
|
for (const o in this.$$p_d)
|
|
571
571
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -582,7 +582,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
582
582
|
this.$$r = !0;
|
|
583
583
|
for (const o in this.$$p_d)
|
|
584
584
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
585
|
-
const l =
|
|
585
|
+
const l = Gt(
|
|
586
586
|
o,
|
|
587
587
|
this.$$d[o],
|
|
588
588
|
this.$$p_d,
|
|
@@ -606,7 +606,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
606
606
|
// and setting attributes through setAttribute etc, this is helpful
|
|
607
607
|
attributeChangedCallback(t, n, r) {
|
|
608
608
|
var i;
|
|
609
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
609
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Gt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
610
610
|
}
|
|
611
611
|
disconnectedCallback() {
|
|
612
612
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -619,7 +619,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
619
619
|
) || t;
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
|
-
function
|
|
622
|
+
function Gt(e, t, n, r) {
|
|
623
623
|
var o;
|
|
624
624
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
625
625
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -649,7 +649,7 @@ function Ft(e, t, n, r) {
|
|
|
649
649
|
return t;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Co(e, t, n, r, i, o) {
|
|
653
653
|
let l = class extends ai {
|
|
654
654
|
constructor() {
|
|
655
655
|
super(e, n, i), this.$$p_d = t;
|
|
@@ -667,7 +667,7 @@ function Mo(e, t, n, r, i, o) {
|
|
|
667
667
|
},
|
|
668
668
|
set(c) {
|
|
669
669
|
var u;
|
|
670
|
-
c =
|
|
670
|
+
c = Gt(a, c, t), this.$$d[a] = c, (u = this.$$c) == null || u.$set({ [a]: c });
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}), r.forEach((a) => {
|
|
@@ -689,7 +689,7 @@ class Lo {
|
|
|
689
689
|
*
|
|
690
690
|
* @type {any}
|
|
691
691
|
*/
|
|
692
|
-
|
|
692
|
+
ve(this, "$$");
|
|
693
693
|
/**
|
|
694
694
|
* ### PRIVATE API
|
|
695
695
|
*
|
|
@@ -697,11 +697,11 @@ class Lo {
|
|
|
697
697
|
*
|
|
698
698
|
* @type {any}
|
|
699
699
|
*/
|
|
700
|
-
|
|
700
|
+
ve(this, "$$set");
|
|
701
701
|
}
|
|
702
702
|
/** @returns {void} */
|
|
703
703
|
$destroy() {
|
|
704
|
-
Ao(this, 1), this.$destroy =
|
|
704
|
+
Ao(this, 1), this.$destroy = ye;
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
707
707
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -711,7 +711,7 @@ class Lo {
|
|
|
711
711
|
*/
|
|
712
712
|
$on(t, n) {
|
|
713
713
|
if (!Kt(n))
|
|
714
|
-
return
|
|
714
|
+
return ye;
|
|
715
715
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
716
716
|
return r.push(n), () => {
|
|
717
717
|
const i = r.indexOf(n);
|
|
@@ -743,7 +743,7 @@ function No(e, t) {
|
|
|
743
743
|
subscribe: St(e, t).subscribe
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function St(e, t =
|
|
746
|
+
function St(e, t = ye) {
|
|
747
747
|
let n;
|
|
748
748
|
const r = /* @__PURE__ */ new Set();
|
|
749
749
|
function i(a) {
|
|
@@ -761,9 +761,9 @@ function St(e, t = Ee) {
|
|
|
761
761
|
function o(a) {
|
|
762
762
|
i(a(e));
|
|
763
763
|
}
|
|
764
|
-
function l(a, c =
|
|
764
|
+
function l(a, c = ye) {
|
|
765
765
|
const u = [a, c];
|
|
766
|
-
return r.add(u), r.size === 1 && (n = t(i, o) ||
|
|
766
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || ye), a(e), () => {
|
|
767
767
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
768
768
|
};
|
|
769
769
|
}
|
|
@@ -777,18 +777,18 @@ function st(e, t, n) {
|
|
|
777
777
|
return No(n, (l, a) => {
|
|
778
778
|
let c = !1;
|
|
779
779
|
const u = [];
|
|
780
|
-
let f = 0, m =
|
|
780
|
+
let f = 0, m = ye;
|
|
781
781
|
const y = () => {
|
|
782
782
|
if (f)
|
|
783
783
|
return;
|
|
784
784
|
m();
|
|
785
785
|
const x = t(r ? u[0] : u, l, a);
|
|
786
|
-
o ? l(x) : m = Kt(x) ? x :
|
|
787
|
-
},
|
|
786
|
+
o ? l(x) : m = Kt(x) ? x : ye;
|
|
787
|
+
}, A = i.map(
|
|
788
788
|
(x, g) => Kr(
|
|
789
789
|
x,
|
|
790
|
-
(
|
|
791
|
-
u[g] =
|
|
790
|
+
(N) => {
|
|
791
|
+
u[g] = N, f &= ~(1 << g), c && y();
|
|
792
792
|
},
|
|
793
793
|
() => {
|
|
794
794
|
f |= 1 << g;
|
|
@@ -796,7 +796,7 @@ function st(e, t, n) {
|
|
|
796
796
|
)
|
|
797
797
|
);
|
|
798
798
|
return c = !0, y(), function() {
|
|
799
|
-
|
|
799
|
+
Ue(A), m(), c = !1;
|
|
800
800
|
};
|
|
801
801
|
});
|
|
802
802
|
}
|
|
@@ -829,19 +829,19 @@ function ko(e, t, n) {
|
|
|
829
829
|
return vt(r, n);
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Fo(e, t) {
|
|
833
833
|
if (!t.customMerge)
|
|
834
834
|
return nt;
|
|
835
835
|
var n = t.customMerge(e);
|
|
836
836
|
return typeof n == "function" ? n : nt;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Go(e) {
|
|
839
839
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
840
840
|
return Object.propertyIsEnumerable.call(e, t);
|
|
841
841
|
}) : [];
|
|
842
842
|
}
|
|
843
843
|
function _r(e) {
|
|
844
|
-
return Object.keys(e).concat(
|
|
844
|
+
return Object.keys(e).concat(Go(e));
|
|
845
845
|
}
|
|
846
846
|
function ui(e, t) {
|
|
847
847
|
try {
|
|
@@ -858,7 +858,7 @@ function zo(e, t, n) {
|
|
|
858
858
|
return n.isMergeableObject(e) && _r(e).forEach(function(i) {
|
|
859
859
|
r[i] = vt(e[i], n);
|
|
860
860
|
}), _r(t).forEach(function(i) {
|
|
861
|
-
jo(e, i) || (ui(e, i) && n.isMergeableObject(t[i]) ? r[i] =
|
|
861
|
+
jo(e, i) || (ui(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fo(i, n)(e[i], t[i], n) : r[i] = vt(t[i], n));
|
|
862
862
|
}), r;
|
|
863
863
|
}
|
|
864
864
|
function nt(e, t, n) {
|
|
@@ -892,15 +892,15 @@ function en(e, t) {
|
|
|
892
892
|
}
|
|
893
893
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
894
894
|
}
|
|
895
|
-
var
|
|
896
|
-
return
|
|
895
|
+
var Ne = function() {
|
|
896
|
+
return Ne = Object.assign || function(t) {
|
|
897
897
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
898
898
|
n = arguments[r];
|
|
899
899
|
for (var o in n)
|
|
900
900
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
901
901
|
}
|
|
902
902
|
return t;
|
|
903
|
-
},
|
|
903
|
+
}, Ne.apply(this, arguments);
|
|
904
904
|
};
|
|
905
905
|
function Yo(e, t) {
|
|
906
906
|
var n = {};
|
|
@@ -975,10 +975,10 @@ var Ko = function() {
|
|
|
975
975
|
return t;
|
|
976
976
|
}, Zt.apply(this, arguments);
|
|
977
977
|
};
|
|
978
|
-
var
|
|
978
|
+
var F;
|
|
979
979
|
(function(e) {
|
|
980
980
|
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";
|
|
981
|
-
})(
|
|
981
|
+
})(F || (F = {}));
|
|
982
982
|
var Q;
|
|
983
983
|
(function(e) {
|
|
984
984
|
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";
|
|
@@ -1112,15 +1112,15 @@ function os(e) {
|
|
|
1112
1112
|
return "";
|
|
1113
1113
|
}), t;
|
|
1114
1114
|
}
|
|
1115
|
-
var
|
|
1116
|
-
return
|
|
1115
|
+
var ie = function() {
|
|
1116
|
+
return ie = Object.assign || function(t) {
|
|
1117
1117
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1118
1118
|
n = arguments[r];
|
|
1119
1119
|
for (var o in n)
|
|
1120
1120
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1121
1121
|
}
|
|
1122
1122
|
return t;
|
|
1123
|
-
},
|
|
1123
|
+
}, ie.apply(this, arguments);
|
|
1124
1124
|
};
|
|
1125
1125
|
var ss = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1126
1126
|
function as(e) {
|
|
@@ -1244,13 +1244,13 @@ function fs(e) {
|
|
|
1244
1244
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1245
1245
|
continue;
|
|
1246
1246
|
case "scientific":
|
|
1247
|
-
t =
|
|
1248
|
-
return
|
|
1247
|
+
t = ie(ie(ie({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1248
|
+
return ie(ie({}, c), xr(u));
|
|
1249
1249
|
}, {}));
|
|
1250
1250
|
continue;
|
|
1251
1251
|
case "engineering":
|
|
1252
|
-
t =
|
|
1253
|
-
return
|
|
1252
|
+
t = ie(ie(ie({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1253
|
+
return ie(ie({}, c), xr(u));
|
|
1254
1254
|
}, {}));
|
|
1255
1255
|
continue;
|
|
1256
1256
|
case "notation-simple":
|
|
@@ -1295,13 +1295,13 @@ function fs(e) {
|
|
|
1295
1295
|
case "integer-width":
|
|
1296
1296
|
if (i.options.length > 1)
|
|
1297
1297
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1298
|
-
i.options[0].replace(us, function(c, u, f, m, y,
|
|
1298
|
+
i.options[0].replace(us, function(c, u, f, m, y, A) {
|
|
1299
1299
|
if (u)
|
|
1300
1300
|
t.minimumIntegerDigits = f.length;
|
|
1301
1301
|
else {
|
|
1302
1302
|
if (m && y)
|
|
1303
1303
|
throw new Error("We currently do not support maximum integer digits");
|
|
1304
|
-
if (
|
|
1304
|
+
if (A)
|
|
1305
1305
|
throw new Error("We currently do not support exact integer digits");
|
|
1306
1306
|
}
|
|
1307
1307
|
return "";
|
|
@@ -1315,21 +1315,21 @@ function fs(e) {
|
|
|
1315
1315
|
if (Er.test(i.stem)) {
|
|
1316
1316
|
if (i.options.length > 1)
|
|
1317
1317
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1318
|
-
i.stem.replace(Er, function(c, u, f, m, y,
|
|
1319
|
-
return f === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : y &&
|
|
1318
|
+
i.stem.replace(Er, function(c, u, f, m, y, A) {
|
|
1319
|
+
return f === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : y && A ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + A.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1320
1320
|
});
|
|
1321
1321
|
var o = i.options[0];
|
|
1322
|
-
o === "w" ? t =
|
|
1322
|
+
o === "w" ? t = ie(ie({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = ie(ie({}, t), yr(o)));
|
|
1323
1323
|
continue;
|
|
1324
1324
|
}
|
|
1325
1325
|
if (yi.test(i.stem)) {
|
|
1326
|
-
t =
|
|
1326
|
+
t = ie(ie({}, t), yr(i.stem));
|
|
1327
1327
|
continue;
|
|
1328
1328
|
}
|
|
1329
1329
|
var l = vi(i.stem);
|
|
1330
|
-
l && (t =
|
|
1330
|
+
l && (t = ie(ie({}, t), l));
|
|
1331
1331
|
var a = cs(i.stem);
|
|
1332
|
-
a && (t =
|
|
1332
|
+
a && (t = ie(ie({}, t), a));
|
|
1333
1333
|
}
|
|
1334
1334
|
return t;
|
|
1335
1335
|
}
|
|
@@ -2787,7 +2787,7 @@ function ms(e) {
|
|
|
2787
2787
|
return i[0];
|
|
2788
2788
|
}
|
|
2789
2789
|
var dn, ps = new RegExp("^".concat(Ei.source, "*")), ds = new RegExp("".concat(Ei.source, "*$"));
|
|
2790
|
-
function
|
|
2790
|
+
function G(e, t) {
|
|
2791
2791
|
return { start: e, end: t };
|
|
2792
2792
|
}
|
|
2793
2793
|
var gs = !!String.prototype.startsWith && "_a".startsWith("a", 1), _s = !!String.fromCodePoint, bs = !!Object.fromEntries, Es = !!String.prototype.codePointAt, ys = !!String.prototype.trimStart, xs = !!String.prototype.trimEnd, vs = !!Number.isSafeInteger, Ts = vs ? Number.isSafeInteger : function(e) {
|
|
@@ -2809,7 +2809,7 @@ var vr = gs ? (
|
|
|
2809
2809
|
function(t, n, r) {
|
|
2810
2810
|
return t.slice(r, r + n.length) === n;
|
|
2811
2811
|
}
|
|
2812
|
-
),
|
|
2812
|
+
), On = _s ? String.fromCodePoint : (
|
|
2813
2813
|
// IE11
|
|
2814
2814
|
function() {
|
|
2815
2815
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2871,26 +2871,26 @@ var vr = gs ? (
|
|
|
2871
2871
|
function Si(e, t) {
|
|
2872
2872
|
return new RegExp(e, t);
|
|
2873
2873
|
}
|
|
2874
|
-
var
|
|
2874
|
+
var Mn;
|
|
2875
2875
|
if (An) {
|
|
2876
2876
|
var Sr = Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2877
|
-
|
|
2877
|
+
Mn = function(t, n) {
|
|
2878
2878
|
var r;
|
|
2879
2879
|
Sr.lastIndex = n;
|
|
2880
2880
|
var i = Sr.exec(t);
|
|
2881
2881
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2882
2882
|
};
|
|
2883
2883
|
} else
|
|
2884
|
-
|
|
2884
|
+
Mn = function(t, n) {
|
|
2885
2885
|
for (var r = []; ; ) {
|
|
2886
2886
|
var i = Ti(t, n);
|
|
2887
2887
|
if (i === void 0 || wi(i) || Ls(i))
|
|
2888
2888
|
break;
|
|
2889
2889
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2890
2890
|
}
|
|
2891
|
-
return
|
|
2891
|
+
return On.apply(void 0, r);
|
|
2892
2892
|
};
|
|
2893
|
-
var
|
|
2893
|
+
var Os = (
|
|
2894
2894
|
/** @class */
|
|
2895
2895
|
function() {
|
|
2896
2896
|
function e(t, n) {
|
|
@@ -2915,13 +2915,13 @@ var Cs = (
|
|
|
2915
2915
|
var a = this.clonePosition();
|
|
2916
2916
|
this.bump(), i.push({
|
|
2917
2917
|
type: Q.pound,
|
|
2918
|
-
location:
|
|
2918
|
+
location: G(a, this.clonePosition())
|
|
2919
2919
|
});
|
|
2920
2920
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2921
2921
|
if (r)
|
|
2922
2922
|
break;
|
|
2923
|
-
return this.error(
|
|
2924
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2923
|
+
return this.error(F.UNMATCHED_CLOSING_TAG, G(this.clonePosition(), this.clonePosition()));
|
|
2924
|
+
} else if (o === 60 && !this.ignoreTag && Cn(this.peek() || 0)) {
|
|
2925
2925
|
var l = this.parseTag(t, n);
|
|
2926
2926
|
if (l.err)
|
|
2927
2927
|
return l;
|
|
@@ -2944,7 +2944,7 @@ var Cs = (
|
|
|
2944
2944
|
val: {
|
|
2945
2945
|
type: Q.literal,
|
|
2946
2946
|
value: "<".concat(i, "/>"),
|
|
2947
|
-
location:
|
|
2947
|
+
location: G(r, this.clonePosition())
|
|
2948
2948
|
},
|
|
2949
2949
|
err: null
|
|
2950
2950
|
};
|
|
@@ -2954,25 +2954,25 @@ var Cs = (
|
|
|
2954
2954
|
return o;
|
|
2955
2955
|
var l = o.val, a = this.clonePosition();
|
|
2956
2956
|
if (this.bumpIf("</")) {
|
|
2957
|
-
if (this.isEOF() || !
|
|
2958
|
-
return this.error(
|
|
2957
|
+
if (this.isEOF() || !Cn(this.char()))
|
|
2958
|
+
return this.error(F.INVALID_TAG, G(a, this.clonePosition()));
|
|
2959
2959
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2960
|
-
return i !== u ? this.error(
|
|
2960
|
+
return i !== u ? this.error(F.UNMATCHED_CLOSING_TAG, G(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2961
2961
|
val: {
|
|
2962
2962
|
type: Q.tag,
|
|
2963
2963
|
value: i,
|
|
2964
2964
|
children: l,
|
|
2965
|
-
location:
|
|
2965
|
+
location: G(r, this.clonePosition())
|
|
2966
2966
|
},
|
|
2967
2967
|
err: null
|
|
2968
|
-
} : this.error(
|
|
2968
|
+
} : this.error(F.INVALID_TAG, G(a, this.clonePosition())));
|
|
2969
2969
|
} else
|
|
2970
|
-
return this.error(
|
|
2970
|
+
return this.error(F.UNCLOSED_TAG, G(r, this.clonePosition()));
|
|
2971
2971
|
} else
|
|
2972
|
-
return this.error(
|
|
2972
|
+
return this.error(F.INVALID_TAG, G(r, this.clonePosition()));
|
|
2973
2973
|
}, e.prototype.parseTagName = function() {
|
|
2974
2974
|
var t = this.offset();
|
|
2975
|
-
for (this.bump(); !this.isEOF() &&
|
|
2975
|
+
for (this.bump(); !this.isEOF() && Cs(this.char()); )
|
|
2976
2976
|
this.bump();
|
|
2977
2977
|
return this.message.slice(t, this.offset());
|
|
2978
2978
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2994,14 +2994,14 @@ var Cs = (
|
|
|
2994
2994
|
}
|
|
2995
2995
|
break;
|
|
2996
2996
|
}
|
|
2997
|
-
var c =
|
|
2997
|
+
var c = G(r, this.clonePosition());
|
|
2998
2998
|
return {
|
|
2999
2999
|
val: { type: Q.literal, value: i, location: c },
|
|
3000
3000
|
err: null
|
|
3001
3001
|
};
|
|
3002
3002
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3003
3003
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3004
|
-
!
|
|
3004
|
+
!Ms(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3005
3005
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3006
3006
|
if (this.isEOF() || this.char() !== 39)
|
|
3007
3007
|
return null;
|
|
@@ -3035,23 +3035,23 @@ var Cs = (
|
|
|
3035
3035
|
n.push(r);
|
|
3036
3036
|
this.bump();
|
|
3037
3037
|
}
|
|
3038
|
-
return
|
|
3038
|
+
return On.apply(void 0, n);
|
|
3039
3039
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3040
3040
|
if (this.isEOF())
|
|
3041
3041
|
return null;
|
|
3042
3042
|
var r = this.char();
|
|
3043
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3043
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), On(r));
|
|
3044
3044
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3045
3045
|
var r = this.clonePosition();
|
|
3046
3046
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3047
|
-
return this.error(
|
|
3047
|
+
return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, G(r, this.clonePosition()));
|
|
3048
3048
|
if (this.char() === 125)
|
|
3049
|
-
return this.bump(), this.error(
|
|
3049
|
+
return this.bump(), this.error(F.EMPTY_ARGUMENT, G(r, this.clonePosition()));
|
|
3050
3050
|
var i = this.parseIdentifierIfPossible().value;
|
|
3051
3051
|
if (!i)
|
|
3052
|
-
return this.error(
|
|
3052
|
+
return this.error(F.MALFORMED_ARGUMENT, G(r, this.clonePosition()));
|
|
3053
3053
|
if (this.bumpSpace(), this.isEOF())
|
|
3054
|
-
return this.error(
|
|
3054
|
+
return this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, G(r, this.clonePosition()));
|
|
3055
3055
|
switch (this.char()) {
|
|
3056
3056
|
case 125:
|
|
3057
3057
|
return this.bump(), {
|
|
@@ -3059,25 +3059,25 @@ var Cs = (
|
|
|
3059
3059
|
type: Q.argument,
|
|
3060
3060
|
// value does not include the opening and closing braces.
|
|
3061
3061
|
value: i,
|
|
3062
|
-
location:
|
|
3062
|
+
location: G(r, this.clonePosition())
|
|
3063
3063
|
},
|
|
3064
3064
|
err: null
|
|
3065
3065
|
};
|
|
3066
3066
|
case 44:
|
|
3067
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3067
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, G(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3068
3068
|
default:
|
|
3069
|
-
return this.error(
|
|
3069
|
+
return this.error(F.MALFORMED_ARGUMENT, G(r, this.clonePosition()));
|
|
3070
3070
|
}
|
|
3071
3071
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3072
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3072
|
+
var t = this.clonePosition(), n = this.offset(), r = Mn(this.message, n), i = n + r.length;
|
|
3073
3073
|
this.bumpTo(i);
|
|
3074
|
-
var o = this.clonePosition(), l =
|
|
3074
|
+
var o = this.clonePosition(), l = G(t, o);
|
|
3075
3075
|
return { value: r, location: l };
|
|
3076
3076
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
3077
3077
|
var o, l = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
3078
3078
|
switch (a) {
|
|
3079
3079
|
case "":
|
|
3080
|
-
return this.error(
|
|
3080
|
+
return this.error(F.EXPECT_ARGUMENT_TYPE, G(l, c));
|
|
3081
3081
|
case "number":
|
|
3082
3082
|
case "date":
|
|
3083
3083
|
case "time": {
|
|
@@ -3090,35 +3090,35 @@ var Cs = (
|
|
|
3090
3090
|
return m;
|
|
3091
3091
|
var y = As(m.val);
|
|
3092
3092
|
if (y.length === 0)
|
|
3093
|
-
return this.error(
|
|
3094
|
-
var
|
|
3095
|
-
u = { style: y, styleLocation:
|
|
3093
|
+
return this.error(F.EXPECT_ARGUMENT_STYLE, G(this.clonePosition(), this.clonePosition()));
|
|
3094
|
+
var A = G(f, this.clonePosition());
|
|
3095
|
+
u = { style: y, styleLocation: A };
|
|
3096
3096
|
}
|
|
3097
3097
|
var x = this.tryParseArgumentClose(i);
|
|
3098
3098
|
if (x.err)
|
|
3099
3099
|
return x;
|
|
3100
|
-
var g =
|
|
3100
|
+
var g = G(i, this.clonePosition());
|
|
3101
3101
|
if (u && vr(u == null ? void 0 : u.style, "::", 0)) {
|
|
3102
|
-
var
|
|
3102
|
+
var N = ws(u.style.slice(2));
|
|
3103
3103
|
if (a === "number") {
|
|
3104
|
-
var m = this.parseNumberSkeletonFromString(
|
|
3104
|
+
var m = this.parseNumberSkeletonFromString(N, u.styleLocation);
|
|
3105
3105
|
return m.err ? m : {
|
|
3106
3106
|
val: { type: Q.number, value: r, location: g, style: m.val },
|
|
3107
3107
|
err: null
|
|
3108
3108
|
};
|
|
3109
3109
|
} else {
|
|
3110
|
-
if (
|
|
3111
|
-
return this.error(
|
|
3112
|
-
var
|
|
3113
|
-
this.locale && (
|
|
3110
|
+
if (N.length === 0)
|
|
3111
|
+
return this.error(F.EXPECT_DATE_TIME_SKELETON, g);
|
|
3112
|
+
var U = N;
|
|
3113
|
+
this.locale && (U = hs(N, this.locale));
|
|
3114
3114
|
var y = {
|
|
3115
3115
|
type: rt.dateTime,
|
|
3116
|
-
pattern:
|
|
3116
|
+
pattern: U,
|
|
3117
3117
|
location: u.styleLocation,
|
|
3118
|
-
parsedOptions: this.shouldParseSkeletons ? os(
|
|
3119
|
-
},
|
|
3118
|
+
parsedOptions: this.shouldParseSkeletons ? os(U) : {}
|
|
3119
|
+
}, V = a === "date" ? Q.date : Q.time;
|
|
3120
3120
|
return {
|
|
3121
|
-
val: { type:
|
|
3121
|
+
val: { type: V, value: r, location: g, style: y },
|
|
3122
3122
|
err: null
|
|
3123
3123
|
};
|
|
3124
3124
|
}
|
|
@@ -3136,52 +3136,52 @@ var Cs = (
|
|
|
3136
3136
|
case "plural":
|
|
3137
3137
|
case "selectordinal":
|
|
3138
3138
|
case "select": {
|
|
3139
|
-
var
|
|
3139
|
+
var R = this.clonePosition();
|
|
3140
3140
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3141
|
-
return this.error(
|
|
3141
|
+
return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS, G(R, Zt({}, R)));
|
|
3142
3142
|
this.bumpSpace();
|
|
3143
|
-
var
|
|
3144
|
-
if (a !== "select" &&
|
|
3143
|
+
var H = this.parseIdentifierIfPossible(), I = 0;
|
|
3144
|
+
if (a !== "select" && H.value === "offset") {
|
|
3145
3145
|
if (!this.bumpIf(":"))
|
|
3146
|
-
return this.error(
|
|
3146
|
+
return this.error(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, G(this.clonePosition(), this.clonePosition()));
|
|
3147
3147
|
this.bumpSpace();
|
|
3148
|
-
var m = this.tryParseDecimalInteger(
|
|
3148
|
+
var m = this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, F.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3149
3149
|
if (m.err)
|
|
3150
3150
|
return m;
|
|
3151
|
-
this.bumpSpace(),
|
|
3151
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = m.val;
|
|
3152
3152
|
}
|
|
3153
|
-
var
|
|
3154
|
-
if (
|
|
3155
|
-
return
|
|
3153
|
+
var W = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3154
|
+
if (W.err)
|
|
3155
|
+
return W;
|
|
3156
3156
|
var x = this.tryParseArgumentClose(i);
|
|
3157
3157
|
if (x.err)
|
|
3158
3158
|
return x;
|
|
3159
|
-
var
|
|
3159
|
+
var oe = G(i, this.clonePosition());
|
|
3160
3160
|
return a === "select" ? {
|
|
3161
3161
|
val: {
|
|
3162
3162
|
type: Q.select,
|
|
3163
3163
|
value: r,
|
|
3164
|
-
options: Tr(
|
|
3165
|
-
location:
|
|
3164
|
+
options: Tr(W.val),
|
|
3165
|
+
location: oe
|
|
3166
3166
|
},
|
|
3167
3167
|
err: null
|
|
3168
3168
|
} : {
|
|
3169
3169
|
val: {
|
|
3170
3170
|
type: Q.plural,
|
|
3171
3171
|
value: r,
|
|
3172
|
-
options: Tr(
|
|
3173
|
-
offset:
|
|
3172
|
+
options: Tr(W.val),
|
|
3173
|
+
offset: I,
|
|
3174
3174
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3175
|
-
location:
|
|
3175
|
+
location: oe
|
|
3176
3176
|
},
|
|
3177
3177
|
err: null
|
|
3178
3178
|
};
|
|
3179
3179
|
}
|
|
3180
3180
|
default:
|
|
3181
|
-
return this.error(
|
|
3181
|
+
return this.error(F.INVALID_ARGUMENT_TYPE, G(l, c));
|
|
3182
3182
|
}
|
|
3183
3183
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3184
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3184
|
+
return this.isEOF() || this.char() !== 125 ? this.error(F.EXPECT_ARGUMENT_CLOSING_BRACE, G(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3185
3185
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3186
3186
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3187
3187
|
var r = this.char();
|
|
@@ -3190,7 +3190,7 @@ var Cs = (
|
|
|
3190
3190
|
this.bump();
|
|
3191
3191
|
var i = this.clonePosition();
|
|
3192
3192
|
if (!this.bumpUntil("'"))
|
|
3193
|
-
return this.error(
|
|
3193
|
+
return this.error(F.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, G(i, this.clonePosition()));
|
|
3194
3194
|
this.bump();
|
|
3195
3195
|
break;
|
|
3196
3196
|
}
|
|
@@ -3222,7 +3222,7 @@ var Cs = (
|
|
|
3222
3222
|
try {
|
|
3223
3223
|
r = as(t);
|
|
3224
3224
|
} catch (i) {
|
|
3225
|
-
return this.error(
|
|
3225
|
+
return this.error(F.INVALID_NUMBER_SKELETON, n);
|
|
3226
3226
|
}
|
|
3227
3227
|
return {
|
|
3228
3228
|
val: {
|
|
@@ -3238,34 +3238,34 @@ var Cs = (
|
|
|
3238
3238
|
if (u.length === 0) {
|
|
3239
3239
|
var m = this.clonePosition();
|
|
3240
3240
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3241
|
-
var y = this.tryParseDecimalInteger(
|
|
3241
|
+
var y = this.tryParseDecimalInteger(F.EXPECT_PLURAL_ARGUMENT_SELECTOR, F.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3242
3242
|
if (y.err)
|
|
3243
3243
|
return y;
|
|
3244
|
-
f =
|
|
3244
|
+
f = G(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
|
3245
3245
|
} else
|
|
3246
3246
|
break;
|
|
3247
3247
|
}
|
|
3248
3248
|
if (c.has(u))
|
|
3249
|
-
return this.error(n === "select" ?
|
|
3249
|
+
return this.error(n === "select" ? F.DUPLICATE_SELECT_ARGUMENT_SELECTOR : F.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3250
3250
|
u === "other" && (l = !0), this.bumpSpace();
|
|
3251
|
-
var
|
|
3251
|
+
var A = this.clonePosition();
|
|
3252
3252
|
if (!this.bumpIf("{"))
|
|
3253
|
-
return this.error(n === "select" ?
|
|
3253
|
+
return this.error(n === "select" ? F.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : F.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, G(this.clonePosition(), this.clonePosition()));
|
|
3254
3254
|
var x = this.parseMessage(t + 1, n, r);
|
|
3255
3255
|
if (x.err)
|
|
3256
3256
|
return x;
|
|
3257
|
-
var g = this.tryParseArgumentClose(
|
|
3257
|
+
var g = this.tryParseArgumentClose(A);
|
|
3258
3258
|
if (g.err)
|
|
3259
3259
|
return g;
|
|
3260
3260
|
a.push([
|
|
3261
3261
|
u,
|
|
3262
3262
|
{
|
|
3263
3263
|
value: x.val,
|
|
3264
|
-
location:
|
|
3264
|
+
location: G(A, this.clonePosition())
|
|
3265
3265
|
}
|
|
3266
3266
|
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
|
|
3267
3267
|
}
|
|
3268
|
-
return a.length === 0 ? this.error(n === "select" ?
|
|
3268
|
+
return a.length === 0 ? this.error(n === "select" ? F.EXPECT_SELECT_ARGUMENT_SELECTOR : F.EXPECT_PLURAL_ARGUMENT_SELECTOR, G(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(F.MISSING_OTHER_CLAUSE, G(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3269
3269
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3270
3270
|
var r = 1, i = this.clonePosition();
|
|
3271
3271
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3276,7 +3276,7 @@ var Cs = (
|
|
|
3276
3276
|
else
|
|
3277
3277
|
break;
|
|
3278
3278
|
}
|
|
3279
|
-
var c =
|
|
3279
|
+
var c = G(i, this.clonePosition());
|
|
3280
3280
|
return o ? (l *= r, Ts(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3281
3281
|
}, e.prototype.offset = function() {
|
|
3282
3282
|
return this.position.offset;
|
|
@@ -3343,13 +3343,13 @@ var Cs = (
|
|
|
3343
3343
|
}, e;
|
|
3344
3344
|
}()
|
|
3345
3345
|
);
|
|
3346
|
-
function
|
|
3346
|
+
function Cn(e) {
|
|
3347
3347
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3348
3348
|
}
|
|
3349
|
-
function Os(e) {
|
|
3350
|
-
return Mn(e) || e === 47;
|
|
3351
|
-
}
|
|
3352
3349
|
function Ms(e) {
|
|
3350
|
+
return Cn(e) || e === 47;
|
|
3351
|
+
}
|
|
3352
|
+
function Cs(e) {
|
|
3353
3353
|
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;
|
|
3354
3354
|
}
|
|
3355
3355
|
function wi(e) {
|
|
@@ -3369,9 +3369,9 @@ function Ln(e) {
|
|
|
3369
3369
|
}
|
|
3370
3370
|
function Hs(e, t) {
|
|
3371
3371
|
t === void 0 && (t = {}), t = Zt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3372
|
-
var n = new
|
|
3372
|
+
var n = new Os(e, t).parse();
|
|
3373
3373
|
if (n.err) {
|
|
3374
|
-
var r = SyntaxError(
|
|
3374
|
+
var r = SyntaxError(F[n.err.kind]);
|
|
3375
3375
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3376
3376
|
}
|
|
3377
3377
|
return t != null && t.captureLocation || Ln(n.val), n.val;
|
|
@@ -3419,14 +3419,14 @@ var tn = (
|
|
|
3419
3419
|
}
|
|
3420
3420
|
return t;
|
|
3421
3421
|
}(tn)
|
|
3422
|
-
),
|
|
3422
|
+
), ge;
|
|
3423
3423
|
(function(e) {
|
|
3424
3424
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3425
|
-
})(
|
|
3425
|
+
})(ge || (ge = {}));
|
|
3426
3426
|
function Ps(e) {
|
|
3427
3427
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3428
3428
|
var r = t[t.length - 1];
|
|
3429
|
-
return !r || r.type !==
|
|
3429
|
+
return !r || r.type !== ge.literal || n.type !== ge.literal ? t.push(n) : r.value += n.value, t;
|
|
3430
3430
|
}, []);
|
|
3431
3431
|
}
|
|
3432
3432
|
function Rs(e) {
|
|
@@ -3436,7 +3436,7 @@ function jt(e, t, n, r, i, o, l) {
|
|
|
3436
3436
|
if (e.length === 1 && br(e[0]))
|
|
3437
3437
|
return [
|
|
3438
3438
|
{
|
|
3439
|
-
type:
|
|
3439
|
+
type: ge.literal,
|
|
3440
3440
|
value: e[0].value
|
|
3441
3441
|
}
|
|
3442
3442
|
];
|
|
@@ -3444,14 +3444,14 @@ function jt(e, t, n, r, i, o, l) {
|
|
|
3444
3444
|
var f = u[c];
|
|
3445
3445
|
if (br(f)) {
|
|
3446
3446
|
a.push({
|
|
3447
|
-
type:
|
|
3447
|
+
type: ge.literal,
|
|
3448
3448
|
value: f.value
|
|
3449
3449
|
});
|
|
3450
3450
|
continue;
|
|
3451
3451
|
}
|
|
3452
3452
|
if (rs(f)) {
|
|
3453
3453
|
typeof o == "number" && a.push({
|
|
3454
|
-
type:
|
|
3454
|
+
type: ge.literal,
|
|
3455
3455
|
value: n.getNumberFormat(t).format(o)
|
|
3456
3456
|
});
|
|
3457
3457
|
continue;
|
|
@@ -3462,83 +3462,83 @@ function jt(e, t, n, r, i, o, l) {
|
|
|
3462
3462
|
var y = i[m];
|
|
3463
3463
|
if (ns(f)) {
|
|
3464
3464
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3465
|
-
type: typeof y == "string" ?
|
|
3465
|
+
type: typeof y == "string" ? ge.literal : ge.object,
|
|
3466
3466
|
value: y
|
|
3467
3467
|
});
|
|
3468
3468
|
continue;
|
|
3469
3469
|
}
|
|
3470
3470
|
if (mi(f)) {
|
|
3471
|
-
var
|
|
3471
|
+
var A = typeof f.style == "string" ? r.date[f.style] : wn(f.style) ? f.style.parsedOptions : void 0;
|
|
3472
3472
|
a.push({
|
|
3473
|
-
type:
|
|
3474
|
-
value: n.getDateTimeFormat(t,
|
|
3473
|
+
type: ge.literal,
|
|
3474
|
+
value: n.getDateTimeFormat(t, A).format(y)
|
|
3475
3475
|
});
|
|
3476
3476
|
continue;
|
|
3477
3477
|
}
|
|
3478
3478
|
if (pi(f)) {
|
|
3479
|
-
var
|
|
3479
|
+
var A = typeof f.style == "string" ? r.time[f.style] : wn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3480
3480
|
a.push({
|
|
3481
|
-
type:
|
|
3482
|
-
value: n.getDateTimeFormat(t,
|
|
3481
|
+
type: ge.literal,
|
|
3482
|
+
value: n.getDateTimeFormat(t, A).format(y)
|
|
3483
3483
|
});
|
|
3484
3484
|
continue;
|
|
3485
3485
|
}
|
|
3486
3486
|
if (hi(f)) {
|
|
3487
|
-
var
|
|
3488
|
-
|
|
3489
|
-
type:
|
|
3490
|
-
value: n.getNumberFormat(t,
|
|
3487
|
+
var A = typeof f.style == "string" ? r.number[f.style] : bi(f.style) ? f.style.parsedOptions : void 0;
|
|
3488
|
+
A && A.scale && (y = y * (A.scale || 1)), a.push({
|
|
3489
|
+
type: ge.literal,
|
|
3490
|
+
value: n.getNumberFormat(t, A).format(y)
|
|
3491
3491
|
});
|
|
3492
3492
|
continue;
|
|
3493
3493
|
}
|
|
3494
3494
|
if (_i(f)) {
|
|
3495
|
-
var x = f.children, g = f.value,
|
|
3496
|
-
if (!Rs(
|
|
3495
|
+
var x = f.children, g = f.value, N = i[g];
|
|
3496
|
+
if (!Rs(N))
|
|
3497
3497
|
throw new Ns(g, "function", l);
|
|
3498
|
-
var
|
|
3499
|
-
return
|
|
3498
|
+
var U = jt(x, t, n, r, i, o), V = N(U.map(function(I) {
|
|
3499
|
+
return I.value;
|
|
3500
3500
|
}));
|
|
3501
|
-
Array.isArray(
|
|
3501
|
+
Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(I) {
|
|
3502
3502
|
return {
|
|
3503
|
-
type: typeof
|
|
3504
|
-
value:
|
|
3503
|
+
type: typeof I == "string" ? ge.literal : ge.object,
|
|
3504
|
+
value: I
|
|
3505
3505
|
};
|
|
3506
3506
|
}));
|
|
3507
3507
|
}
|
|
3508
3508
|
if (di(f)) {
|
|
3509
|
-
var
|
|
3510
|
-
if (!
|
|
3509
|
+
var R = f.options[y] || f.options.other;
|
|
3510
|
+
if (!R)
|
|
3511
3511
|
throw new wr(f.value, y, Object.keys(f.options), l);
|
|
3512
|
-
a.push.apply(a, jt(
|
|
3512
|
+
a.push.apply(a, jt(R.value, t, n, r, i));
|
|
3513
3513
|
continue;
|
|
3514
3514
|
}
|
|
3515
3515
|
if (gi(f)) {
|
|
3516
|
-
var
|
|
3517
|
-
if (!
|
|
3516
|
+
var R = f.options["=".concat(y)];
|
|
3517
|
+
if (!R) {
|
|
3518
3518
|
if (!Intl.PluralRules)
|
|
3519
3519
|
throw new tn(`Intl.PluralRules is not available in this environment.
|
|
3520
3520
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3521
3521
|
`, it.MISSING_INTL_API, l);
|
|
3522
|
-
var
|
|
3523
|
-
|
|
3522
|
+
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3523
|
+
R = f.options[H] || f.options.other;
|
|
3524
3524
|
}
|
|
3525
|
-
if (!
|
|
3525
|
+
if (!R)
|
|
3526
3526
|
throw new wr(f.value, y, Object.keys(f.options), l);
|
|
3527
|
-
a.push.apply(a, jt(
|
|
3527
|
+
a.push.apply(a, jt(R.value, t, n, r, i, y - (f.offset || 0)));
|
|
3528
3528
|
continue;
|
|
3529
3529
|
}
|
|
3530
3530
|
}
|
|
3531
3531
|
return Ps(a);
|
|
3532
3532
|
}
|
|
3533
3533
|
function Ds(e, t) {
|
|
3534
|
-
return t ?
|
|
3535
|
-
return n[r] =
|
|
3534
|
+
return t ? Ne(Ne(Ne({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3535
|
+
return n[r] = Ne(Ne({}, e[r]), t[r] || {}), n;
|
|
3536
3536
|
}, {})) : e;
|
|
3537
3537
|
}
|
|
3538
3538
|
function Bs(e, t) {
|
|
3539
3539
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3540
3540
|
return n[r] = Ds(e[r], t[r]), n;
|
|
3541
|
-
},
|
|
3541
|
+
}, Ne({}, e)) : e;
|
|
3542
3542
|
}
|
|
3543
3543
|
function gn(e) {
|
|
3544
3544
|
return {
|
|
@@ -3601,7 +3601,7 @@ var Ai = (
|
|
|
3601
3601
|
if (u.length === 1)
|
|
3602
3602
|
return u[0].value;
|
|
3603
3603
|
var f = u.reduce(function(m, y) {
|
|
3604
|
-
return !m.length || y.type !==
|
|
3604
|
+
return !m.length || y.type !== ge.literal || typeof m[m.length - 1] != "string" ? m.push(y.value) : m[m.length - 1] += y.value, m;
|
|
3605
3605
|
}, []);
|
|
3606
3606
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3607
3607
|
}, this.formatToParts = function(c) {
|
|
@@ -3619,7 +3619,7 @@ var Ai = (
|
|
|
3619
3619
|
var l = i || {};
|
|
3620
3620
|
l.formatters;
|
|
3621
3621
|
var a = Yo(l, ["formatters"]);
|
|
3622
|
-
this.ast = e.__parse(t,
|
|
3622
|
+
this.ast = e.__parse(t, Ne(Ne({}, a), { locale: this.resolvedLocale }));
|
|
3623
3623
|
} else
|
|
3624
3624
|
this.ast = t;
|
|
3625
3625
|
if (!Array.isArray(this.ast))
|
|
@@ -3719,30 +3719,30 @@ function Us(e, t) {
|
|
|
3719
3719
|
r = void 0;
|
|
3720
3720
|
return r;
|
|
3721
3721
|
}
|
|
3722
|
-
const
|
|
3722
|
+
const $e = {}, ks = (e, t, n) => n && (t in $e || ($e[t] = {}), e in $e[t] || ($e[t][e] = n), n), Oi = (e, t) => {
|
|
3723
3723
|
if (t == null)
|
|
3724
3724
|
return;
|
|
3725
|
-
if (t in
|
|
3726
|
-
return
|
|
3725
|
+
if (t in $e && e in $e[t])
|
|
3726
|
+
return $e[t][e];
|
|
3727
3727
|
const n = At(t);
|
|
3728
3728
|
for (let r = 0; r < n.length; r++) {
|
|
3729
|
-
const i = n[r], o =
|
|
3729
|
+
const i = n[r], o = Gs(i, e);
|
|
3730
3730
|
if (o)
|
|
3731
3731
|
return ks(e, t, o);
|
|
3732
3732
|
}
|
|
3733
3733
|
};
|
|
3734
3734
|
let Bn;
|
|
3735
3735
|
const wt = St({});
|
|
3736
|
-
function
|
|
3736
|
+
function Fs(e) {
|
|
3737
3737
|
return Bn[e] || null;
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3739
|
+
function Mi(e) {
|
|
3740
3740
|
return e in Bn;
|
|
3741
3741
|
}
|
|
3742
|
-
function
|
|
3743
|
-
if (!
|
|
3742
|
+
function Gs(e, t) {
|
|
3743
|
+
if (!Mi(e))
|
|
3744
3744
|
return null;
|
|
3745
|
-
const n =
|
|
3745
|
+
const n = Fs(e);
|
|
3746
3746
|
return Us(n, t);
|
|
3747
3747
|
}
|
|
3748
3748
|
function js(e) {
|
|
@@ -3751,12 +3751,12 @@ function js(e) {
|
|
|
3751
3751
|
const t = At(e);
|
|
3752
3752
|
for (let n = 0; n < t.length; n++) {
|
|
3753
3753
|
const r = t[n];
|
|
3754
|
-
if (
|
|
3754
|
+
if (Mi(r))
|
|
3755
3755
|
return r;
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
|
-
function
|
|
3759
|
-
delete
|
|
3758
|
+
function Ci(e, ...t) {
|
|
3759
|
+
delete $e[e], wt.update((n) => (n[e] = Xo.all([n[e] || {}, ...t]), n));
|
|
3760
3760
|
}
|
|
3761
3761
|
st(
|
|
3762
3762
|
[wt],
|
|
@@ -3787,7 +3787,7 @@ function qt(e) {
|
|
|
3787
3787
|
function Vs(e, t) {
|
|
3788
3788
|
return Promise.all(
|
|
3789
3789
|
t.map((r) => (zs(e, r), r().then((i) => i.default || i)))
|
|
3790
|
-
).then((r) =>
|
|
3790
|
+
).then((r) => Ci(e, ...r));
|
|
3791
3791
|
}
|
|
3792
3792
|
const ht = {};
|
|
3793
3793
|
function Hi(e) {
|
|
@@ -3847,7 +3847,7 @@ function Js({ locale: e, id: t }) {
|
|
|
3847
3847
|
console.warn(
|
|
3848
3848
|
`[svelte-i18n] The message "${t}" was not found in "${At(
|
|
3849
3849
|
e
|
|
3850
|
-
).join('", "')}".${qt(
|
|
3850
|
+
).join('", "')}".${qt(Fe()) ? `
|
|
3851
3851
|
|
|
3852
3852
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3853
3853
|
);
|
|
@@ -3876,27 +3876,27 @@ function Ks(e) {
|
|
|
3876
3876
|
}
|
|
3877
3877
|
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Js : console.warn(
|
|
3878
3878
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3879
|
-
)), Object.assign(bt, r, { initialLocale: i }), n && ("number" in n && Object.assign(bt.formats.number, n.number), "date" in n && Object.assign(bt.formats.date, n.date), "time" in n && Object.assign(bt.formats.time, n.time)),
|
|
3879
|
+
)), Object.assign(bt, r, { initialLocale: i }), n && ("number" in n && Object.assign(bt.formats.number, n.number), "date" in n && Object.assign(bt.formats.date, n.date), "time" in n && Object.assign(bt.formats.time, n.time)), ze.set(i);
|
|
3880
3880
|
}
|
|
3881
3881
|
const _n = St(!1);
|
|
3882
|
-
var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors,
|
|
3882
|
+
var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, Or = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Mr = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oa = (e, t) => {
|
|
3883
3883
|
for (var n in t || (t = {}))
|
|
3884
|
-
ra.call(t, n) &&
|
|
3885
|
-
if (
|
|
3886
|
-
for (var n of
|
|
3887
|
-
ia.call(t, n) &&
|
|
3884
|
+
ra.call(t, n) && Mr(e, n, t[n]);
|
|
3885
|
+
if (Or)
|
|
3886
|
+
for (var n of Or(t))
|
|
3887
|
+
ia.call(t, n) && Mr(e, n, t[n]);
|
|
3888
3888
|
return e;
|
|
3889
3889
|
}, sa = (e, t) => ta(e, na(t));
|
|
3890
3890
|
let Hn;
|
|
3891
3891
|
const Jt = St(null);
|
|
3892
|
-
function
|
|
3892
|
+
function Cr(e) {
|
|
3893
3893
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3894
3894
|
}
|
|
3895
3895
|
function At(e, t = ot().fallbackLocale) {
|
|
3896
|
-
const n =
|
|
3897
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3896
|
+
const n = Cr(e);
|
|
3897
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Cr(t)])] : n;
|
|
3898
3898
|
}
|
|
3899
|
-
function
|
|
3899
|
+
function Fe() {
|
|
3900
3900
|
return Hn != null ? Hn : void 0;
|
|
3901
3901
|
}
|
|
3902
3902
|
Jt.subscribe((e) => {
|
|
@@ -3906,7 +3906,7 @@ const aa = (e) => {
|
|
|
3906
3906
|
if (e && js(e) && qt(e)) {
|
|
3907
3907
|
const { loadingDelay: t } = ot();
|
|
3908
3908
|
let n;
|
|
3909
|
-
return typeof window != "undefined" &&
|
|
3909
|
+
return typeof window != "undefined" && Fe() != null && t ? n = window.setTimeout(
|
|
3910
3910
|
() => _n.set(!0),
|
|
3911
3911
|
t
|
|
3912
3912
|
) : _n.set(!0), Hi(e).then(() => {
|
|
@@ -3916,7 +3916,7 @@ const aa = (e) => {
|
|
|
3916
3916
|
});
|
|
3917
3917
|
}
|
|
3918
3918
|
return Jt.set(e);
|
|
3919
|
-
},
|
|
3919
|
+
}, ze = sa(oa({}, Jt), {
|
|
3920
3920
|
set: aa
|
|
3921
3921
|
}), nn = (e) => {
|
|
3922
3922
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3971,28 +3971,28 @@ const Tt = (e, t) => {
|
|
|
3971
3971
|
}
|
|
3972
3972
|
), ha = (e = {}) => {
|
|
3973
3973
|
var t = e, {
|
|
3974
|
-
locale: n =
|
|
3974
|
+
locale: n = Fe()
|
|
3975
3975
|
} = t, r = at(t, [
|
|
3976
3976
|
"locale"
|
|
3977
3977
|
]);
|
|
3978
3978
|
return ua($n({ locale: n }, r));
|
|
3979
3979
|
}, ma = (e = {}) => {
|
|
3980
3980
|
var t = e, {
|
|
3981
|
-
locale: n =
|
|
3981
|
+
locale: n = Fe()
|
|
3982
3982
|
} = t, r = at(t, [
|
|
3983
3983
|
"locale"
|
|
3984
3984
|
]);
|
|
3985
3985
|
return ca($n({ locale: n }, r));
|
|
3986
3986
|
}, pa = (e = {}) => {
|
|
3987
3987
|
var t = e, {
|
|
3988
|
-
locale: n =
|
|
3988
|
+
locale: n = Fe()
|
|
3989
3989
|
} = t, r = at(t, [
|
|
3990
3990
|
"locale"
|
|
3991
3991
|
]);
|
|
3992
3992
|
return fa($n({ locale: n }, r));
|
|
3993
3993
|
}, da = nn(
|
|
3994
3994
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3995
|
-
(e, t =
|
|
3995
|
+
(e, t = Fe()) => new Ai(e, t, ot().formats, {
|
|
3996
3996
|
ignoreTag: ot().ignoreTag
|
|
3997
3997
|
})
|
|
3998
3998
|
), ga = (e, t = {}) => {
|
|
@@ -4001,14 +4001,14 @@ const Tt = (e, t) => {
|
|
|
4001
4001
|
typeof e == "object" && (l = e, e = l.id);
|
|
4002
4002
|
const {
|
|
4003
4003
|
values: a,
|
|
4004
|
-
locale: c =
|
|
4004
|
+
locale: c = Fe(),
|
|
4005
4005
|
default: u
|
|
4006
4006
|
} = l;
|
|
4007
4007
|
if (c == null)
|
|
4008
4008
|
throw new Error(
|
|
4009
4009
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4010
4010
|
);
|
|
4011
|
-
let f =
|
|
4011
|
+
let f = Oi(e, c);
|
|
4012
4012
|
if (!f)
|
|
4013
4013
|
f = (o = (i = (r = (n = ot()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4014
4014
|
else if (typeof f != "string")
|
|
@@ -4027,18 +4027,18 @@ const Tt = (e, t) => {
|
|
|
4027
4027
|
);
|
|
4028
4028
|
}
|
|
4029
4029
|
return m;
|
|
4030
|
-
}, _a = (e, t) => pa(t).format(e), ba = (e, t) => ma(t).format(e), Ea = (e, t) => ha(t).format(e), ya = (e, t =
|
|
4031
|
-
st([
|
|
4032
|
-
st([
|
|
4033
|
-
st([
|
|
4034
|
-
st([
|
|
4030
|
+
}, _a = (e, t) => pa(t).format(e), ba = (e, t) => ma(t).format(e), Ea = (e, t) => ha(t).format(e), ya = (e, t = Fe()) => Oi(e, t), xa = st([ze, wt], () => ga);
|
|
4031
|
+
st([ze], () => _a);
|
|
4032
|
+
st([ze], () => ba);
|
|
4033
|
+
st([ze], () => Ea);
|
|
4034
|
+
st([ze, wt], () => ya);
|
|
4035
4035
|
function Hr(e, t) {
|
|
4036
|
-
|
|
4036
|
+
Ci(e, t);
|
|
4037
4037
|
}
|
|
4038
4038
|
function va(e) {
|
|
4039
4039
|
Ks({
|
|
4040
4040
|
fallbackLocale: "en"
|
|
4041
|
-
}),
|
|
4041
|
+
}), ze.set(e);
|
|
4042
4042
|
}
|
|
4043
4043
|
const Nr = {
|
|
4044
4044
|
en: {
|
|
@@ -4054,14 +4054,8 @@ const Nr = {
|
|
|
4054
4054
|
sessionExpirationTitle: "Oturumunuzun süresi dolmak üzere!",
|
|
4055
4055
|
sessionExpirationGeneralText: "Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",
|
|
4056
4056
|
sessionExpirationGeneralButton: "DEVAM ET",
|
|
4057
|
-
sessionExpirationLoadingButton: "İŞLEME..."
|
|
4058
|
-
|
|
4059
|
-
"en-us": {
|
|
4060
|
-
sessionExpirationHeader: "Session Warning",
|
|
4061
|
-
sessionExpirationTitle: "Your session is about to expire!",
|
|
4062
|
-
sessionExpirationGeneralText: "Your session will automatically terminate in <b>{second} seconds</b>.",
|
|
4063
|
-
sessionExpirationGeneralButton: "CONTINUE",
|
|
4064
|
-
sessionExpirationLoadingButton: "PROCESSING..."
|
|
4057
|
+
sessionExpirationLoadingButton: "İŞLEME...",
|
|
4058
|
+
sessionExpirationEnd: "Oturumu sonlandır"
|
|
4065
4059
|
}
|
|
4066
4060
|
};
|
|
4067
4061
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
@@ -4073,17 +4067,17 @@ const {
|
|
|
4073
4067
|
getOwnPropertyDescriptor: wa
|
|
4074
4068
|
} = Object;
|
|
4075
4069
|
let {
|
|
4076
|
-
freeze:
|
|
4077
|
-
seal:
|
|
4070
|
+
freeze: _e,
|
|
4071
|
+
seal: Te,
|
|
4078
4072
|
create: Ri
|
|
4079
4073
|
} = Object, {
|
|
4080
4074
|
apply: Nn,
|
|
4081
4075
|
construct: In
|
|
4082
4076
|
} = typeof Reflect != "undefined" && Reflect;
|
|
4083
|
-
|
|
4077
|
+
_e || (_e = function(t) {
|
|
4084
4078
|
return t;
|
|
4085
4079
|
});
|
|
4086
|
-
|
|
4080
|
+
Te || (Te = function(t) {
|
|
4087
4081
|
return t;
|
|
4088
4082
|
});
|
|
4089
4083
|
Nn || (Nn = function(t, n, r) {
|
|
@@ -4092,22 +4086,22 @@ Nn || (Nn = function(t, n, r) {
|
|
|
4092
4086
|
In || (In = function(t, n) {
|
|
4093
4087
|
return new t(...n);
|
|
4094
4088
|
});
|
|
4095
|
-
const Rt =
|
|
4096
|
-
function
|
|
4089
|
+
const Rt = xe(Array.prototype.forEach), Pr = xe(Array.prototype.pop), mt = xe(Array.prototype.push), Wt = xe(String.prototype.toLowerCase), bn = xe(String.prototype.toString), Rr = xe(String.prototype.match), pt = xe(String.prototype.replace), Aa = xe(String.prototype.indexOf), Oa = xe(String.prototype.trim), we = xe(Object.prototype.hasOwnProperty), pe = xe(RegExp.prototype.test), dt = Ma(TypeError);
|
|
4090
|
+
function xe(e) {
|
|
4097
4091
|
return function(t) {
|
|
4098
4092
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4099
4093
|
r[i - 1] = arguments[i];
|
|
4100
4094
|
return Nn(e, t, r);
|
|
4101
4095
|
};
|
|
4102
4096
|
}
|
|
4103
|
-
function
|
|
4097
|
+
function Ma(e) {
|
|
4104
4098
|
return function() {
|
|
4105
4099
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4106
4100
|
n[r] = arguments[r];
|
|
4107
4101
|
return In(e, n);
|
|
4108
4102
|
};
|
|
4109
4103
|
}
|
|
4110
|
-
function
|
|
4104
|
+
function $(e, t) {
|
|
4111
4105
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Wt;
|
|
4112
4106
|
Ir && Ir(e, null);
|
|
4113
4107
|
let r = t.length;
|
|
@@ -4121,7 +4115,7 @@ function U(e, t) {
|
|
|
4121
4115
|
}
|
|
4122
4116
|
return e;
|
|
4123
4117
|
}
|
|
4124
|
-
function
|
|
4118
|
+
function Ca(e) {
|
|
4125
4119
|
for (let t = 0; t < e.length; t++)
|
|
4126
4120
|
we(e, t) || (e[t] = null);
|
|
4127
4121
|
return e;
|
|
@@ -4129,7 +4123,7 @@ function Ma(e) {
|
|
|
4129
4123
|
function Ge(e) {
|
|
4130
4124
|
const t = Ri(null);
|
|
4131
4125
|
for (const [n, r] of Pi(e))
|
|
4132
|
-
we(e, n) && (Array.isArray(r) ? t[n] =
|
|
4126
|
+
we(e, n) && (Array.isArray(r) ? t[n] = Ca(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Ge(r) : t[n] = r);
|
|
4133
4127
|
return t;
|
|
4134
4128
|
}
|
|
4135
4129
|
function gt(e, t) {
|
|
@@ -4137,9 +4131,9 @@ function gt(e, t) {
|
|
|
4137
4131
|
const r = wa(e, t);
|
|
4138
4132
|
if (r) {
|
|
4139
4133
|
if (r.get)
|
|
4140
|
-
return
|
|
4134
|
+
return xe(r.get);
|
|
4141
4135
|
if (typeof r.value == "function")
|
|
4142
|
-
return
|
|
4136
|
+
return xe(r.value);
|
|
4143
4137
|
}
|
|
4144
4138
|
e = Sa(e);
|
|
4145
4139
|
}
|
|
@@ -4148,13 +4142,13 @@ function gt(e, t) {
|
|
|
4148
4142
|
}
|
|
4149
4143
|
return n;
|
|
4150
4144
|
}
|
|
4151
|
-
const Dr =
|
|
4145
|
+
const Dr = _e(["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"]), En = _e(["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"]), yn = _e(["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"]), La = _e(["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"]), xn = _e(["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"]), Ha = _e(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Br = _e(["#text"]), $r = _e(["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"]), vn = _e(["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"]), Ur = _e(["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"]), Dt = _e(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Na = Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ia = Te(/<%[\w\W]*|[\w\W]*%>/gm), Pa = Te(/\${[\w\W]*}/gm), Ra = Te(/^data-[\-\w.\u00B7-\uFFFF]/), Da = Te(/^aria-[\-\w]+$/), Di = Te(
|
|
4152
4146
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4153
4147
|
// eslint-disable-line no-useless-escape
|
|
4154
|
-
), Ba =
|
|
4148
|
+
), Ba = Te(/^(?:\w+script|data):/i), $a = Te(
|
|
4155
4149
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4156
4150
|
// eslint-disable-line no-control-regex
|
|
4157
|
-
), Bi =
|
|
4151
|
+
), Bi = Te(/^html$/i), Ua = Te(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4158
4152
|
var kr = /* @__PURE__ */ Object.freeze({
|
|
4159
4153
|
__proto__: null,
|
|
4160
4154
|
MUSTACHE_EXPR: Na,
|
|
@@ -4177,7 +4171,7 @@ const _t = {
|
|
|
4177
4171
|
document: 9
|
|
4178
4172
|
}, ka = function() {
|
|
4179
4173
|
return typeof window == "undefined" ? null : window;
|
|
4180
|
-
},
|
|
4174
|
+
}, Fa = function(t, n) {
|
|
4181
4175
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4182
4176
|
return null;
|
|
4183
4177
|
let r = null;
|
|
@@ -4214,40 +4208,40 @@ function $i() {
|
|
|
4214
4208
|
NamedNodeMap: f = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
4215
4209
|
HTMLFormElement: m,
|
|
4216
4210
|
DOMParser: y,
|
|
4217
|
-
trustedTypes:
|
|
4218
|
-
} = e, x = c.prototype, g = gt(x, "cloneNode"),
|
|
4211
|
+
trustedTypes: A
|
|
4212
|
+
} = e, x = c.prototype, g = gt(x, "cloneNode"), N = gt(x, "remove"), U = gt(x, "nextSibling"), V = gt(x, "childNodes"), R = gt(x, "parentNode");
|
|
4219
4213
|
if (typeof l == "function") {
|
|
4220
4214
|
const S = n.createElement("template");
|
|
4221
4215
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
4222
4216
|
}
|
|
4223
|
-
let
|
|
4217
|
+
let H, I = "";
|
|
4224
4218
|
const {
|
|
4225
|
-
implementation:
|
|
4226
|
-
createNodeIterator:
|
|
4227
|
-
createDocumentFragment:
|
|
4219
|
+
implementation: W,
|
|
4220
|
+
createNodeIterator: oe,
|
|
4221
|
+
createDocumentFragment: fe,
|
|
4228
4222
|
getElementsByTagName: K
|
|
4229
4223
|
} = n, {
|
|
4230
4224
|
importNode: j
|
|
4231
4225
|
} = r;
|
|
4232
|
-
let
|
|
4233
|
-
t.isSupported = typeof Pi == "function" && typeof
|
|
4226
|
+
let C = {};
|
|
4227
|
+
t.isSupported = typeof Pi == "function" && typeof R == "function" && W && W.createHTMLDocument !== void 0;
|
|
4234
4228
|
const {
|
|
4235
4229
|
MUSTACHE_EXPR: se,
|
|
4236
|
-
ERB_EXPR:
|
|
4237
|
-
TMPLIT_EXPR:
|
|
4238
|
-
DATA_ATTR:
|
|
4230
|
+
ERB_EXPR: Ee,
|
|
4231
|
+
TMPLIT_EXPR: M,
|
|
4232
|
+
DATA_ATTR: _,
|
|
4239
4233
|
ARIA_ATTR: h,
|
|
4240
4234
|
IS_SCRIPT_OR_DATA: E,
|
|
4241
|
-
ATTR_WHITESPACE:
|
|
4242
|
-
CUSTOM_ELEMENT:
|
|
4235
|
+
ATTR_WHITESPACE: b,
|
|
4236
|
+
CUSTOM_ELEMENT: L
|
|
4243
4237
|
} = kr;
|
|
4244
4238
|
let {
|
|
4245
|
-
IS_ALLOWED_URI:
|
|
4246
|
-
} = kr,
|
|
4247
|
-
const
|
|
4248
|
-
let
|
|
4249
|
-
const q =
|
|
4250
|
-
let
|
|
4239
|
+
IS_ALLOWED_URI: O
|
|
4240
|
+
} = kr, v = null;
|
|
4241
|
+
const z = $({}, [...Dr, ...En, ...yn, ...xn, ...Br]);
|
|
4242
|
+
let P = null;
|
|
4243
|
+
const q = $({}, [...$r, ...vn, ...Ur, ...Dt]);
|
|
4244
|
+
let D = Object.seal(Ri(null, {
|
|
4251
4245
|
tagNameCheck: {
|
|
4252
4246
|
writable: !0,
|
|
4253
4247
|
configurable: !1,
|
|
@@ -4266,16 +4260,16 @@ function $i() {
|
|
|
4266
4260
|
enumerable: !0,
|
|
4267
4261
|
value: !1
|
|
4268
4262
|
}
|
|
4269
|
-
})),
|
|
4270
|
-
const
|
|
4263
|
+
})), d = null, k = null, X = !0, Y = !0, ne = !1, ee = !0, he = !1, le = !0, Oe = !1, J = !1, re = !1, Me = !1, Ot = !1, Mt = !1, Un = !0, kn = !1;
|
|
4264
|
+
const Fi = "user-content-";
|
|
4271
4265
|
let rn = !0, lt = !1, We = {}, Ve = null;
|
|
4272
|
-
const
|
|
4273
|
-
let
|
|
4274
|
-
const jn =
|
|
4266
|
+
const Fn = $({}, ["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"]);
|
|
4267
|
+
let Gn = null;
|
|
4268
|
+
const jn = $({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4275
4269
|
let on = null;
|
|
4276
|
-
const zn =
|
|
4277
|
-
let Xe =
|
|
4278
|
-
const
|
|
4270
|
+
const zn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ct = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", Ie = "http://www.w3.org/1999/xhtml";
|
|
4271
|
+
let Xe = Ie, sn = !1, an = null;
|
|
4272
|
+
const Gi = $({}, [Ct, Lt, Ie], bn);
|
|
4279
4273
|
let ut = null;
|
|
4280
4274
|
const ji = ["application/xhtml+xml", "text/html"], zi = "text/html";
|
|
4281
4275
|
let ae = null, Ye = null;
|
|
@@ -4285,46 +4279,46 @@ function $i() {
|
|
|
4285
4279
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4286
4280
|
if (!(Ye && Ye === s)) {
|
|
4287
4281
|
if ((!s || typeof s != "object") && (s = {}), s = Ge(s), ut = // eslint-disable-next-line unicorn/prefer-includes
|
|
4288
|
-
ji.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? zi : s.PARSER_MEDIA_TYPE, ae = ut === "application/xhtml+xml" ? bn : Wt,
|
|
4282
|
+
ji.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? zi : s.PARSER_MEDIA_TYPE, ae = ut === "application/xhtml+xml" ? bn : Wt, v = we(s, "ALLOWED_TAGS") ? $({}, s.ALLOWED_TAGS, ae) : z, P = we(s, "ALLOWED_ATTR") ? $({}, s.ALLOWED_ATTR, ae) : q, an = we(s, "ALLOWED_NAMESPACES") ? $({}, s.ALLOWED_NAMESPACES, bn) : Gi, on = we(s, "ADD_URI_SAFE_ATTR") ? $(
|
|
4289
4283
|
Ge(zn),
|
|
4290
4284
|
// eslint-disable-line indent
|
|
4291
4285
|
s.ADD_URI_SAFE_ATTR,
|
|
4292
4286
|
// eslint-disable-line indent
|
|
4293
4287
|
ae
|
|
4294
4288
|
// eslint-disable-line indent
|
|
4295
|
-
) : zn,
|
|
4289
|
+
) : zn, Gn = we(s, "ADD_DATA_URI_TAGS") ? $(
|
|
4296
4290
|
Ge(jn),
|
|
4297
4291
|
// eslint-disable-line indent
|
|
4298
4292
|
s.ADD_DATA_URI_TAGS,
|
|
4299
4293
|
// eslint-disable-line indent
|
|
4300
4294
|
ae
|
|
4301
4295
|
// eslint-disable-line indent
|
|
4302
|
-
) : jn, Ve = we(s, "FORBID_CONTENTS") ?
|
|
4296
|
+
) : jn, Ve = we(s, "FORBID_CONTENTS") ? $({}, s.FORBID_CONTENTS, ae) : Fn, d = we(s, "FORBID_TAGS") ? $({}, s.FORBID_TAGS, ae) : {}, k = we(s, "FORBID_ATTR") ? $({}, s.FORBID_ATTR, ae) : {}, We = we(s, "USE_PROFILES") ? s.USE_PROFILES : !1, X = s.ALLOW_ARIA_ATTR !== !1, Y = s.ALLOW_DATA_ATTR !== !1, ne = s.ALLOW_UNKNOWN_PROTOCOLS || !1, ee = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, he = s.SAFE_FOR_TEMPLATES || !1, le = s.SAFE_FOR_XML !== !1, Oe = s.WHOLE_DOCUMENT || !1, Me = s.RETURN_DOM || !1, Ot = s.RETURN_DOM_FRAGMENT || !1, Mt = s.RETURN_TRUSTED_TYPE || !1, re = s.FORCE_BODY || !1, Un = s.SANITIZE_DOM !== !1, kn = s.SANITIZE_NAMED_PROPS || !1, rn = s.KEEP_CONTENT !== !1, lt = s.IN_PLACE || !1, O = s.ALLOWED_URI_REGEXP || Di, Xe = s.NAMESPACE || Ie, D = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && Wn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (D.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && Wn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (D.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (D.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), he && (Y = !1), Ot && (Me = !0), We && (v = $({}, Br), P = [], We.html === !0 && ($(v, Dr), $(P, $r)), We.svg === !0 && ($(v, En), $(P, vn), $(P, Dt)), We.svgFilters === !0 && ($(v, yn), $(P, vn), $(P, Dt)), We.mathMl === !0 && ($(v, xn), $(P, Ur), $(P, Dt))), s.ADD_TAGS && (v === z && (v = Ge(v)), $(v, s.ADD_TAGS, ae)), s.ADD_ATTR && (P === q && (P = Ge(P)), $(P, s.ADD_ATTR, ae)), s.ADD_URI_SAFE_ATTR && $(on, s.ADD_URI_SAFE_ATTR, ae), s.FORBID_CONTENTS && (Ve === Fn && (Ve = Ge(Ve)), $(Ve, s.FORBID_CONTENTS, ae)), rn && (v["#text"] = !0), Oe && $(v, ["html", "head", "body"]), v.table && ($(v, ["tbody"]), delete d.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4303
4297
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4304
4298
|
throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4305
4299
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4306
4300
|
throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4307
|
-
|
|
4301
|
+
H = s.TRUSTED_TYPES_POLICY, I = H.createHTML("");
|
|
4308
4302
|
} else
|
|
4309
|
-
|
|
4310
|
-
|
|
4303
|
+
H === void 0 && (H = Fa(A, i)), H !== null && typeof I == "string" && (I = H.createHTML(""));
|
|
4304
|
+
_e && _e(s), Ye = s;
|
|
4311
4305
|
}
|
|
4312
|
-
}, Vn =
|
|
4313
|
-
let p =
|
|
4306
|
+
}, Vn = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Xn = $({}, ["foreignobject", "annotation-xml"]), Vi = $({}, ["title", "style", "font", "a", "script"]), Yn = $({}, [...En, ...yn, ...La]), Zn = $({}, [...xn, ...Ha]), Xi = function(s) {
|
|
4307
|
+
let p = R(s);
|
|
4314
4308
|
(!p || !p.tagName) && (p = {
|
|
4315
4309
|
namespaceURI: Xe,
|
|
4316
4310
|
tagName: "template"
|
|
4317
4311
|
});
|
|
4318
|
-
const T = Wt(s.tagName),
|
|
4319
|
-
return an[s.namespaceURI] ? s.namespaceURI === Lt ? p.namespaceURI ===
|
|
4312
|
+
const T = Wt(s.tagName), Z = Wt(p.tagName);
|
|
4313
|
+
return an[s.namespaceURI] ? s.namespaceURI === Lt ? p.namespaceURI === Ie ? T === "svg" : p.namespaceURI === Ct ? T === "svg" && (Z === "annotation-xml" || Vn[Z]) : !!Yn[T] : s.namespaceURI === Ct ? p.namespaceURI === Ie ? T === "math" : p.namespaceURI === Lt ? T === "math" && Xn[Z] : !!Zn[T] : s.namespaceURI === Ie ? p.namespaceURI === Lt && !Xn[Z] || p.namespaceURI === Ct && !Vn[Z] ? !1 : !Zn[T] && (Vi[T] || !Yn[T]) : !!(ut === "application/xhtml+xml" && an[s.namespaceURI]) : !1;
|
|
4320
4314
|
}, Ce = function(s) {
|
|
4321
4315
|
mt(t.removed, {
|
|
4322
4316
|
element: s
|
|
4323
4317
|
});
|
|
4324
4318
|
try {
|
|
4325
|
-
|
|
4319
|
+
R(s).removeChild(s);
|
|
4326
4320
|
} catch (p) {
|
|
4327
|
-
|
|
4321
|
+
N(s);
|
|
4328
4322
|
}
|
|
4329
4323
|
}, Ht = function(s, p) {
|
|
4330
4324
|
try {
|
|
@@ -4338,8 +4332,8 @@ function $i() {
|
|
|
4338
4332
|
from: p
|
|
4339
4333
|
});
|
|
4340
4334
|
}
|
|
4341
|
-
if (p.removeAttribute(s), s === "is" && !
|
|
4342
|
-
if (
|
|
4335
|
+
if (p.removeAttribute(s), s === "is" && !P[s])
|
|
4336
|
+
if (Me || Ot)
|
|
4343
4337
|
try {
|
|
4344
4338
|
Ce(p);
|
|
4345
4339
|
} catch (T) {
|
|
@@ -4351,30 +4345,30 @@ function $i() {
|
|
|
4351
4345
|
}
|
|
4352
4346
|
}, qn = function(s) {
|
|
4353
4347
|
let p = null, T = null;
|
|
4354
|
-
if (
|
|
4348
|
+
if (re)
|
|
4355
4349
|
s = "<remove></remove>" + s;
|
|
4356
4350
|
else {
|
|
4357
|
-
const
|
|
4358
|
-
T =
|
|
4351
|
+
const ue = Rr(s, /^[\r\n\t ]+/);
|
|
4352
|
+
T = ue && ue[0];
|
|
4359
4353
|
}
|
|
4360
|
-
ut === "application/xhtml+xml" && Xe ===
|
|
4361
|
-
const
|
|
4362
|
-
if (Xe ===
|
|
4354
|
+
ut === "application/xhtml+xml" && Xe === Ie && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4355
|
+
const Z = H ? H.createHTML(s) : s;
|
|
4356
|
+
if (Xe === Ie)
|
|
4363
4357
|
try {
|
|
4364
|
-
p = new y().parseFromString(
|
|
4365
|
-
} catch (
|
|
4358
|
+
p = new y().parseFromString(Z, ut);
|
|
4359
|
+
} catch (ue) {
|
|
4366
4360
|
}
|
|
4367
4361
|
if (!p || !p.documentElement) {
|
|
4368
|
-
p =
|
|
4362
|
+
p = W.createDocument(Xe, "template", null);
|
|
4369
4363
|
try {
|
|
4370
|
-
p.documentElement.innerHTML = sn ?
|
|
4371
|
-
} catch (
|
|
4364
|
+
p.documentElement.innerHTML = sn ? I : Z;
|
|
4365
|
+
} catch (ue) {
|
|
4372
4366
|
}
|
|
4373
4367
|
}
|
|
4374
|
-
const
|
|
4375
|
-
return s && T &&
|
|
4368
|
+
const ce = p.body || p.documentElement;
|
|
4369
|
+
return s && T && ce.insertBefore(n.createTextNode(T), ce.childNodes[0] || null), Xe === Ie ? K.call(p, Oe ? "html" : "body")[0] : Oe ? p.documentElement : ce;
|
|
4376
4370
|
}, Jn = function(s) {
|
|
4377
|
-
return
|
|
4371
|
+
return oe.call(
|
|
4378
4372
|
s.ownerDocument || s,
|
|
4379
4373
|
s,
|
|
4380
4374
|
// eslint-disable-next-line no-bitwise
|
|
@@ -4385,59 +4379,59 @@ function $i() {
|
|
|
4385
4379
|
return s instanceof m && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof f) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
4386
4380
|
}, Kn = function(s) {
|
|
4387
4381
|
return typeof a == "function" && s instanceof a;
|
|
4388
|
-
},
|
|
4389
|
-
|
|
4390
|
-
|
|
4382
|
+
}, Pe = function(s, p, T) {
|
|
4383
|
+
C[s] && Rt(C[s], (Z) => {
|
|
4384
|
+
Z.call(t, p, T, Ye);
|
|
4391
4385
|
});
|
|
4392
4386
|
}, er = function(s) {
|
|
4393
4387
|
let p = null;
|
|
4394
|
-
if (
|
|
4388
|
+
if (Pe("beforeSanitizeElements", s, null), Qn(s))
|
|
4395
4389
|
return Ce(s), !0;
|
|
4396
4390
|
const T = ae(s.nodeName);
|
|
4397
|
-
if (
|
|
4391
|
+
if (Pe("uponSanitizeElement", s, {
|
|
4398
4392
|
tagName: T,
|
|
4399
|
-
allowedTags:
|
|
4400
|
-
}), s.hasChildNodes() && !Kn(s.firstElementChild) &&
|
|
4393
|
+
allowedTags: v
|
|
4394
|
+
}), s.hasChildNodes() && !Kn(s.firstElementChild) && pe(/<[/\w]/g, s.innerHTML) && pe(/<[/\w]/g, s.textContent) || s.nodeType === _t.progressingInstruction || le && s.nodeType === _t.comment && pe(/<[/\w]/g, s.data))
|
|
4401
4395
|
return Ce(s), !0;
|
|
4402
|
-
if (!
|
|
4403
|
-
if (!
|
|
4396
|
+
if (!v[T] || d[T]) {
|
|
4397
|
+
if (!d[T] && nr(T) && (D.tagNameCheck instanceof RegExp && pe(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4404
4398
|
return !1;
|
|
4405
4399
|
if (rn && !Ve[T]) {
|
|
4406
|
-
const
|
|
4407
|
-
if (
|
|
4408
|
-
const
|
|
4409
|
-
for (let
|
|
4410
|
-
const
|
|
4411
|
-
|
|
4400
|
+
const Z = R(s) || s.parentNode, ce = V(s) || s.childNodes;
|
|
4401
|
+
if (ce && Z) {
|
|
4402
|
+
const ue = ce.length;
|
|
4403
|
+
for (let be = ue - 1; be >= 0; --be) {
|
|
4404
|
+
const Le = g(ce[be], !0);
|
|
4405
|
+
Le.__removalCount = (s.__removalCount || 0) + 1, Z.insertBefore(Le, U(s));
|
|
4412
4406
|
}
|
|
4413
4407
|
}
|
|
4414
4408
|
}
|
|
4415
4409
|
return Ce(s), !0;
|
|
4416
4410
|
}
|
|
4417
|
-
return s instanceof c && !Xi(s) || (T === "noscript" || T === "noembed" || T === "noframes") &&
|
|
4418
|
-
p = pt(p,
|
|
4411
|
+
return s instanceof c && !Xi(s) || (T === "noscript" || T === "noembed" || T === "noframes") && pe(/<\/no(script|embed|frames)/i, s.innerHTML) ? (Ce(s), !0) : (he && s.nodeType === _t.text && (p = s.textContent, Rt([se, Ee, M], (Z) => {
|
|
4412
|
+
p = pt(p, Z, " ");
|
|
4419
4413
|
}), s.textContent !== p && (mt(t.removed, {
|
|
4420
4414
|
element: s.cloneNode()
|
|
4421
|
-
}), s.textContent = p)),
|
|
4415
|
+
}), s.textContent = p)), Pe("afterSanitizeElements", s, null), !1);
|
|
4422
4416
|
}, tr = function(s, p, T) {
|
|
4423
4417
|
if (Un && (p === "id" || p === "name") && (T in n || T in Wi))
|
|
4424
4418
|
return !1;
|
|
4425
|
-
if (!(
|
|
4426
|
-
if (!(
|
|
4427
|
-
if (!
|
|
4419
|
+
if (!(Y && !k[p] && pe(_, p))) {
|
|
4420
|
+
if (!(X && pe(h, p))) {
|
|
4421
|
+
if (!P[p] || k[p]) {
|
|
4428
4422
|
if (
|
|
4429
4423
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4430
4424
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4431
4425
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4432
|
-
!(nr(s) && (
|
|
4426
|
+
!(nr(s) && (D.tagNameCheck instanceof RegExp && pe(D.tagNameCheck, s) || D.tagNameCheck instanceof Function && D.tagNameCheck(s)) && (D.attributeNameCheck instanceof RegExp && pe(D.attributeNameCheck, p) || D.attributeNameCheck instanceof Function && D.attributeNameCheck(p)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4433
4427
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4434
|
-
p === "is" &&
|
|
4428
|
+
p === "is" && D.allowCustomizedBuiltInElements && (D.tagNameCheck instanceof RegExp && pe(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4435
4429
|
)
|
|
4436
4430
|
return !1;
|
|
4437
4431
|
} else if (!on[p]) {
|
|
4438
|
-
if (!
|
|
4439
|
-
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && Aa(T, "data:") === 0 &&
|
|
4440
|
-
if (!(
|
|
4432
|
+
if (!pe(O, pt(T, b, ""))) {
|
|
4433
|
+
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && Aa(T, "data:") === 0 && Gn[s])) {
|
|
4434
|
+
if (!(ne && !pe(E, pt(T, b, "")))) {
|
|
4441
4435
|
if (T)
|
|
4442
4436
|
return !1;
|
|
4443
4437
|
}
|
|
@@ -4448,9 +4442,9 @@ function $i() {
|
|
|
4448
4442
|
}
|
|
4449
4443
|
return !0;
|
|
4450
4444
|
}, nr = function(s) {
|
|
4451
|
-
return s !== "annotation-xml" && Rr(s,
|
|
4445
|
+
return s !== "annotation-xml" && Rr(s, L);
|
|
4452
4446
|
}, rr = function(s) {
|
|
4453
|
-
|
|
4447
|
+
Pe("beforeSanitizeAttributes", s, null);
|
|
4454
4448
|
const {
|
|
4455
4449
|
attributes: p
|
|
4456
4450
|
} = s;
|
|
@@ -4460,58 +4454,58 @@ function $i() {
|
|
|
4460
4454
|
attrName: "",
|
|
4461
4455
|
attrValue: "",
|
|
4462
4456
|
keepAttr: !0,
|
|
4463
|
-
allowedAttributes:
|
|
4457
|
+
allowedAttributes: P
|
|
4464
4458
|
};
|
|
4465
|
-
let
|
|
4466
|
-
for (;
|
|
4467
|
-
const
|
|
4468
|
-
name:
|
|
4469
|
-
namespaceURI:
|
|
4470
|
-
value:
|
|
4471
|
-
} =
|
|
4472
|
-
let
|
|
4473
|
-
if (T.attrName = ct, T.attrValue =
|
|
4474
|
-
Ht(
|
|
4459
|
+
let Z = p.length;
|
|
4460
|
+
for (; Z--; ) {
|
|
4461
|
+
const ce = p[Z], {
|
|
4462
|
+
name: ue,
|
|
4463
|
+
namespaceURI: be,
|
|
4464
|
+
value: Le
|
|
4465
|
+
} = ce, ct = ae(ue);
|
|
4466
|
+
let me = ue === "value" ? Le : Oa(Le);
|
|
4467
|
+
if (T.attrName = ct, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Pe("uponSanitizeAttribute", s, T), me = T.attrValue, le && pe(/((--!?|])>)|<\/(style|title)/i, me)) {
|
|
4468
|
+
Ht(ue, s);
|
|
4475
4469
|
continue;
|
|
4476
4470
|
}
|
|
4477
|
-
if (T.forceKeepAttr || (Ht(
|
|
4471
|
+
if (T.forceKeepAttr || (Ht(ue, s), !T.keepAttr))
|
|
4478
4472
|
continue;
|
|
4479
|
-
if (!
|
|
4480
|
-
Ht(
|
|
4473
|
+
if (!ee && pe(/\/>/i, me)) {
|
|
4474
|
+
Ht(ue, s);
|
|
4481
4475
|
continue;
|
|
4482
4476
|
}
|
|
4483
|
-
|
|
4484
|
-
|
|
4477
|
+
he && Rt([se, Ee, M], (or) => {
|
|
4478
|
+
me = pt(me, or, " ");
|
|
4485
4479
|
});
|
|
4486
4480
|
const ir = ae(s.nodeName);
|
|
4487
|
-
if (tr(ir, ct,
|
|
4488
|
-
if (kn && (ct === "id" || ct === "name") && (Ht(
|
|
4489
|
-
switch (
|
|
4481
|
+
if (tr(ir, ct, me)) {
|
|
4482
|
+
if (kn && (ct === "id" || ct === "name") && (Ht(ue, s), me = Fi + me), H && typeof A == "object" && typeof A.getAttributeType == "function" && !be)
|
|
4483
|
+
switch (A.getAttributeType(ir, ct)) {
|
|
4490
4484
|
case "TrustedHTML": {
|
|
4491
|
-
|
|
4485
|
+
me = H.createHTML(me);
|
|
4492
4486
|
break;
|
|
4493
4487
|
}
|
|
4494
4488
|
case "TrustedScriptURL": {
|
|
4495
|
-
|
|
4489
|
+
me = H.createScriptURL(me);
|
|
4496
4490
|
break;
|
|
4497
4491
|
}
|
|
4498
4492
|
}
|
|
4499
4493
|
try {
|
|
4500
|
-
|
|
4494
|
+
be ? s.setAttributeNS(be, ue, me) : s.setAttribute(ue, me), Qn(s) ? Ce(s) : Pr(t.removed);
|
|
4501
4495
|
} catch (or) {
|
|
4502
4496
|
}
|
|
4503
4497
|
}
|
|
4504
4498
|
}
|
|
4505
|
-
|
|
4499
|
+
Pe("afterSanitizeAttributes", s, null);
|
|
4506
4500
|
}, Yi = function S(s) {
|
|
4507
4501
|
let p = null;
|
|
4508
4502
|
const T = Jn(s);
|
|
4509
|
-
for (
|
|
4510
|
-
|
|
4511
|
-
|
|
4503
|
+
for (Pe("beforeSanitizeShadowDOM", s, null); p = T.nextNode(); )
|
|
4504
|
+
Pe("uponSanitizeShadowNode", p, null), !er(p) && (p.content instanceof o && S(p.content), rr(p));
|
|
4505
|
+
Pe("afterSanitizeShadowDOM", s, null);
|
|
4512
4506
|
};
|
|
4513
4507
|
return t.sanitize = function(S) {
|
|
4514
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, T = null,
|
|
4508
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, T = null, Z = null, ce = null;
|
|
4515
4509
|
if (sn = !S, sn && (S = "<!-->"), typeof S != "string" && !Kn(S))
|
|
4516
4510
|
if (typeof S.toString == "function") {
|
|
4517
4511
|
if (S = S.toString(), typeof S != "string")
|
|
@@ -4520,352 +4514,352 @@ function $i() {
|
|
|
4520
4514
|
throw dt("toString is not a function");
|
|
4521
4515
|
if (!t.isSupported)
|
|
4522
4516
|
return S;
|
|
4523
|
-
if (
|
|
4517
|
+
if (J || ln(s), t.removed = [], typeof S == "string" && (lt = !1), lt) {
|
|
4524
4518
|
if (S.nodeName) {
|
|
4525
|
-
const
|
|
4526
|
-
if (!
|
|
4519
|
+
const Le = ae(S.nodeName);
|
|
4520
|
+
if (!v[Le] || d[Le])
|
|
4527
4521
|
throw dt("root node is forbidden and cannot be sanitized in-place");
|
|
4528
4522
|
}
|
|
4529
4523
|
} else if (S instanceof a)
|
|
4530
4524
|
p = qn("<!---->"), T = p.ownerDocument.importNode(S, !0), T.nodeType === _t.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? p = T : p.appendChild(T);
|
|
4531
4525
|
else {
|
|
4532
|
-
if (!
|
|
4526
|
+
if (!Me && !he && !Oe && // eslint-disable-next-line unicorn/prefer-includes
|
|
4533
4527
|
S.indexOf("<") === -1)
|
|
4534
|
-
return
|
|
4528
|
+
return H && Mt ? H.createHTML(S) : S;
|
|
4535
4529
|
if (p = qn(S), !p)
|
|
4536
|
-
return
|
|
4530
|
+
return Me ? null : Mt ? I : "";
|
|
4537
4531
|
}
|
|
4538
|
-
p &&
|
|
4539
|
-
const
|
|
4540
|
-
for (;
|
|
4541
|
-
er(
|
|
4532
|
+
p && re && Ce(p.firstChild);
|
|
4533
|
+
const ue = Jn(lt ? S : p);
|
|
4534
|
+
for (; Z = ue.nextNode(); )
|
|
4535
|
+
er(Z) || (Z.content instanceof o && Yi(Z.content), rr(Z));
|
|
4542
4536
|
if (lt)
|
|
4543
4537
|
return S;
|
|
4544
|
-
if (
|
|
4545
|
-
if (
|
|
4546
|
-
for (
|
|
4547
|
-
|
|
4538
|
+
if (Me) {
|
|
4539
|
+
if (Ot)
|
|
4540
|
+
for (ce = fe.call(p.ownerDocument); p.firstChild; )
|
|
4541
|
+
ce.appendChild(p.firstChild);
|
|
4548
4542
|
else
|
|
4549
|
-
|
|
4550
|
-
return (
|
|
4543
|
+
ce = p;
|
|
4544
|
+
return (P.shadowroot || P.shadowrootmode) && (ce = j.call(r, ce, !0)), ce;
|
|
4551
4545
|
}
|
|
4552
|
-
let
|
|
4553
|
-
return
|
|
4554
|
-
` +
|
|
4555
|
-
|
|
4556
|
-
}),
|
|
4546
|
+
let be = Oe ? p.outerHTML : p.innerHTML;
|
|
4547
|
+
return Oe && v["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && pe(Bi, p.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4548
|
+
` + be), he && Rt([se, Ee, M], (Le) => {
|
|
4549
|
+
be = pt(be, Le, " ");
|
|
4550
|
+
}), H && Mt ? H.createHTML(be) : be;
|
|
4557
4551
|
}, t.setConfig = function() {
|
|
4558
4552
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4559
|
-
ln(S),
|
|
4553
|
+
ln(S), J = !0;
|
|
4560
4554
|
}, t.clearConfig = function() {
|
|
4561
|
-
Ye = null,
|
|
4555
|
+
Ye = null, J = !1;
|
|
4562
4556
|
}, t.isValidAttribute = function(S, s, p) {
|
|
4563
4557
|
Ye || ln({});
|
|
4564
|
-
const T = ae(S),
|
|
4565
|
-
return tr(T,
|
|
4558
|
+
const T = ae(S), Z = ae(s);
|
|
4559
|
+
return tr(T, Z, p);
|
|
4566
4560
|
}, t.addHook = function(S, s) {
|
|
4567
|
-
typeof s == "function" && (
|
|
4561
|
+
typeof s == "function" && (C[S] = C[S] || [], mt(C[S], s));
|
|
4568
4562
|
}, t.removeHook = function(S) {
|
|
4569
|
-
if (
|
|
4570
|
-
return Pr(
|
|
4563
|
+
if (C[S])
|
|
4564
|
+
return Pr(C[S]);
|
|
4571
4565
|
}, t.removeHooks = function(S) {
|
|
4572
|
-
|
|
4566
|
+
C[S] && (C[S] = []);
|
|
4573
4567
|
}, t.removeAllHooks = function() {
|
|
4574
|
-
|
|
4568
|
+
C = {};
|
|
4575
4569
|
}, t;
|
|
4576
4570
|
}
|
|
4577
|
-
var
|
|
4571
|
+
var Fr = $i(), Ui = { exports: {} };
|
|
4578
4572
|
(function(e, t) {
|
|
4579
4573
|
(function(n, r) {
|
|
4580
4574
|
e.exports = r();
|
|
4581
4575
|
})(li, function() {
|
|
4582
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", m = "month", y = "quarter",
|
|
4583
|
-
var
|
|
4584
|
-
return "[" +
|
|
4585
|
-
} },
|
|
4586
|
-
var E = String(
|
|
4587
|
-
return !E || E.length >=
|
|
4588
|
-
},
|
|
4589
|
-
var
|
|
4590
|
-
return (
|
|
4591
|
-
}, m: function
|
|
4592
|
-
if (
|
|
4593
|
-
return -
|
|
4594
|
-
var E = 12 * (h.year() -
|
|
4595
|
-
return +(-(E + (h -
|
|
4596
|
-
}, a: function(
|
|
4597
|
-
return
|
|
4598
|
-
}, p: function(
|
|
4599
|
-
return { M: m, y:
|
|
4600
|
-
}, u: function(
|
|
4601
|
-
return
|
|
4602
|
-
} },
|
|
4603
|
-
|
|
4604
|
-
var
|
|
4605
|
-
return
|
|
4606
|
-
}, K = function
|
|
4607
|
-
var
|
|
4608
|
-
if (!
|
|
4609
|
-
return
|
|
4610
|
-
if (typeof
|
|
4611
|
-
var
|
|
4612
|
-
|
|
4613
|
-
var
|
|
4614
|
-
if (!
|
|
4615
|
-
return O
|
|
4576
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", m = "month", y = "quarter", A = "year", x = "date", g = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|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, V = { 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(M) {
|
|
4577
|
+
var _ = ["th", "st", "nd", "rd"], h = M % 100;
|
|
4578
|
+
return "[" + M + (_[(h - 20) % 10] || _[h] || _[0]) + "]";
|
|
4579
|
+
} }, R = function(M, _, h) {
|
|
4580
|
+
var E = String(M);
|
|
4581
|
+
return !E || E.length >= _ ? M : "" + Array(_ + 1 - E.length).join(h) + M;
|
|
4582
|
+
}, H = { s: R, z: function(M) {
|
|
4583
|
+
var _ = -M.utcOffset(), h = Math.abs(_), E = Math.floor(h / 60), b = h % 60;
|
|
4584
|
+
return (_ <= 0 ? "+" : "-") + R(E, 2, "0") + ":" + R(b, 2, "0");
|
|
4585
|
+
}, m: function M(_, h) {
|
|
4586
|
+
if (_.date() < h.date())
|
|
4587
|
+
return -M(h, _);
|
|
4588
|
+
var E = 12 * (h.year() - _.year()) + (h.month() - _.month()), b = _.clone().add(E, m), L = h - b < 0, O = _.clone().add(E + (L ? -1 : 1), m);
|
|
4589
|
+
return +(-(E + (h - b) / (L ? b - O : O - b)) || 0);
|
|
4590
|
+
}, a: function(M) {
|
|
4591
|
+
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
4592
|
+
}, p: function(M) {
|
|
4593
|
+
return { M: m, y: A, w: f, d: u, D: x, h: c, m: a, s: l, ms: o, Q: y }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
|
4594
|
+
}, u: function(M) {
|
|
4595
|
+
return M === void 0;
|
|
4596
|
+
} }, I = "en", W = {};
|
|
4597
|
+
W[I] = V;
|
|
4598
|
+
var oe = "$isDayjsObject", fe = function(M) {
|
|
4599
|
+
return M instanceof se || !(!M || !M[oe]);
|
|
4600
|
+
}, K = function M(_, h, E) {
|
|
4601
|
+
var b;
|
|
4602
|
+
if (!_)
|
|
4603
|
+
return I;
|
|
4604
|
+
if (typeof _ == "string") {
|
|
4605
|
+
var L = _.toLowerCase();
|
|
4606
|
+
W[L] && (b = L), h && (W[L] = h, b = L);
|
|
4607
|
+
var O = _.split("-");
|
|
4608
|
+
if (!b && O.length > 1)
|
|
4609
|
+
return M(O[0]);
|
|
4616
4610
|
} else {
|
|
4617
|
-
var
|
|
4618
|
-
|
|
4611
|
+
var v = _.name;
|
|
4612
|
+
W[v] = _, b = v;
|
|
4619
4613
|
}
|
|
4620
|
-
return !E &&
|
|
4621
|
-
}, j = function(
|
|
4622
|
-
if (
|
|
4623
|
-
return
|
|
4624
|
-
var h = typeof
|
|
4625
|
-
return h.date =
|
|
4626
|
-
},
|
|
4627
|
-
|
|
4628
|
-
return j(
|
|
4614
|
+
return !E && b && (I = b), b || !E && I;
|
|
4615
|
+
}, j = function(M, _) {
|
|
4616
|
+
if (fe(M))
|
|
4617
|
+
return M.clone();
|
|
4618
|
+
var h = typeof _ == "object" ? _ : {};
|
|
4619
|
+
return h.date = M, h.args = arguments, new se(h);
|
|
4620
|
+
}, C = H;
|
|
4621
|
+
C.l = K, C.i = fe, C.w = function(M, _) {
|
|
4622
|
+
return j(M, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
4629
4623
|
};
|
|
4630
4624
|
var se = function() {
|
|
4631
|
-
function
|
|
4632
|
-
this.$L = K(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[
|
|
4625
|
+
function M(h) {
|
|
4626
|
+
this.$L = K(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[oe] = !0;
|
|
4633
4627
|
}
|
|
4634
|
-
var
|
|
4635
|
-
return
|
|
4628
|
+
var _ = M.prototype;
|
|
4629
|
+
return _.parse = function(h) {
|
|
4636
4630
|
this.$d = function(E) {
|
|
4637
|
-
var
|
|
4638
|
-
if (
|
|
4631
|
+
var b = E.date, L = E.utc;
|
|
4632
|
+
if (b === null)
|
|
4639
4633
|
return /* @__PURE__ */ new Date(NaN);
|
|
4640
|
-
if (
|
|
4634
|
+
if (C.u(b))
|
|
4641
4635
|
return /* @__PURE__ */ new Date();
|
|
4642
|
-
if (
|
|
4643
|
-
return new Date(
|
|
4644
|
-
if (typeof
|
|
4645
|
-
var
|
|
4646
|
-
if (
|
|
4647
|
-
var
|
|
4648
|
-
return
|
|
4636
|
+
if (b instanceof Date)
|
|
4637
|
+
return new Date(b);
|
|
4638
|
+
if (typeof b == "string" && !/Z$/i.test(b)) {
|
|
4639
|
+
var O = b.match(N);
|
|
4640
|
+
if (O) {
|
|
4641
|
+
var v = O[2] - 1 || 0, z = (O[7] || "0").substring(0, 3);
|
|
4642
|
+
return L ? new Date(Date.UTC(O[1], v, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, z)) : new Date(O[1], v, O[3] || 1, O[4] || 0, O[5] || 0, O[6] || 0, z);
|
|
4649
4643
|
}
|
|
4650
4644
|
}
|
|
4651
|
-
return new Date(
|
|
4645
|
+
return new Date(b);
|
|
4652
4646
|
}(h), this.init();
|
|
4653
|
-
},
|
|
4647
|
+
}, _.init = function() {
|
|
4654
4648
|
var h = this.$d;
|
|
4655
4649
|
this.$y = h.getFullYear(), this.$M = h.getMonth(), this.$D = h.getDate(), this.$W = h.getDay(), this.$H = h.getHours(), this.$m = h.getMinutes(), this.$s = h.getSeconds(), this.$ms = h.getMilliseconds();
|
|
4656
|
-
},
|
|
4657
|
-
return
|
|
4658
|
-
},
|
|
4650
|
+
}, _.$utils = function() {
|
|
4651
|
+
return C;
|
|
4652
|
+
}, _.isValid = function() {
|
|
4659
4653
|
return this.$d.toString() !== g;
|
|
4660
|
-
},
|
|
4661
|
-
var
|
|
4662
|
-
return this.startOf(E) <=
|
|
4663
|
-
},
|
|
4654
|
+
}, _.isSame = function(h, E) {
|
|
4655
|
+
var b = j(h);
|
|
4656
|
+
return this.startOf(E) <= b && b <= this.endOf(E);
|
|
4657
|
+
}, _.isAfter = function(h, E) {
|
|
4664
4658
|
return j(h) < this.startOf(E);
|
|
4665
|
-
},
|
|
4659
|
+
}, _.isBefore = function(h, E) {
|
|
4666
4660
|
return this.endOf(E) < j(h);
|
|
4667
|
-
},
|
|
4668
|
-
return
|
|
4669
|
-
},
|
|
4661
|
+
}, _.$g = function(h, E, b) {
|
|
4662
|
+
return C.u(h) ? this[E] : this.set(b, h);
|
|
4663
|
+
}, _.unix = function() {
|
|
4670
4664
|
return Math.floor(this.valueOf() / 1e3);
|
|
4671
|
-
},
|
|
4665
|
+
}, _.valueOf = function() {
|
|
4672
4666
|
return this.$d.getTime();
|
|
4673
|
-
},
|
|
4674
|
-
var
|
|
4675
|
-
var
|
|
4676
|
-
return
|
|
4677
|
-
},
|
|
4678
|
-
return
|
|
4679
|
-
},
|
|
4680
|
-
switch (
|
|
4681
|
-
case
|
|
4682
|
-
return
|
|
4667
|
+
}, _.startOf = function(h, E) {
|
|
4668
|
+
var b = this, L = !!C.u(E) || E, O = C.p(h), v = function(Y, ne) {
|
|
4669
|
+
var ee = C.w(b.$u ? Date.UTC(b.$y, ne, Y) : new Date(b.$y, ne, Y), b);
|
|
4670
|
+
return L ? ee : ee.endOf(u);
|
|
4671
|
+
}, z = function(Y, ne) {
|
|
4672
|
+
return C.w(b.toDate()[Y].apply(b.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), b);
|
|
4673
|
+
}, P = this.$W, q = this.$M, D = this.$D, d = "set" + (this.$u ? "UTC" : "");
|
|
4674
|
+
switch (O) {
|
|
4675
|
+
case A:
|
|
4676
|
+
return L ? v(1, 0) : v(31, 11);
|
|
4683
4677
|
case m:
|
|
4684
|
-
return
|
|
4678
|
+
return L ? v(1, q) : v(0, q + 1);
|
|
4685
4679
|
case f:
|
|
4686
|
-
var
|
|
4687
|
-
return
|
|
4680
|
+
var k = this.$locale().weekStart || 0, X = (P < k ? P + 7 : P) - k;
|
|
4681
|
+
return v(L ? D - X : D + (6 - X), q);
|
|
4688
4682
|
case u:
|
|
4689
4683
|
case x:
|
|
4690
|
-
return
|
|
4684
|
+
return z(d + "Hours", 0);
|
|
4691
4685
|
case c:
|
|
4692
|
-
return
|
|
4686
|
+
return z(d + "Minutes", 1);
|
|
4693
4687
|
case a:
|
|
4694
|
-
return
|
|
4688
|
+
return z(d + "Seconds", 2);
|
|
4695
4689
|
case l:
|
|
4696
|
-
return
|
|
4690
|
+
return z(d + "Milliseconds", 3);
|
|
4697
4691
|
default:
|
|
4698
4692
|
return this.clone();
|
|
4699
4693
|
}
|
|
4700
|
-
},
|
|
4694
|
+
}, _.endOf = function(h) {
|
|
4701
4695
|
return this.startOf(h, !1);
|
|
4702
|
-
},
|
|
4703
|
-
var
|
|
4704
|
-
if (
|
|
4705
|
-
var
|
|
4706
|
-
|
|
4696
|
+
}, _.$set = function(h, E) {
|
|
4697
|
+
var b, L = C.p(h), O = "set" + (this.$u ? "UTC" : ""), v = (b = {}, b[u] = O + "Date", b[x] = O + "Date", b[m] = O + "Month", b[A] = O + "FullYear", b[c] = O + "Hours", b[a] = O + "Minutes", b[l] = O + "Seconds", b[o] = O + "Milliseconds", b)[L], z = L === u ? this.$D + (E - this.$W) : E;
|
|
4698
|
+
if (L === m || L === A) {
|
|
4699
|
+
var P = this.clone().set(x, 1);
|
|
4700
|
+
P.$d[v](z), P.init(), this.$d = P.set(x, Math.min(this.$D, P.daysInMonth())).$d;
|
|
4707
4701
|
} else
|
|
4708
|
-
|
|
4702
|
+
v && this.$d[v](z);
|
|
4709
4703
|
return this.init(), this;
|
|
4710
|
-
},
|
|
4704
|
+
}, _.set = function(h, E) {
|
|
4711
4705
|
return this.clone().$set(h, E);
|
|
4712
|
-
},
|
|
4713
|
-
return this[
|
|
4714
|
-
},
|
|
4715
|
-
var
|
|
4706
|
+
}, _.get = function(h) {
|
|
4707
|
+
return this[C.p(h)]();
|
|
4708
|
+
}, _.add = function(h, E) {
|
|
4709
|
+
var b, L = this;
|
|
4716
4710
|
h = Number(h);
|
|
4717
|
-
var
|
|
4718
|
-
var
|
|
4719
|
-
return
|
|
4711
|
+
var O = C.p(E), v = function(q) {
|
|
4712
|
+
var D = j(L);
|
|
4713
|
+
return C.w(D.date(D.date() + Math.round(q * h)), L);
|
|
4720
4714
|
};
|
|
4721
|
-
if (
|
|
4715
|
+
if (O === m)
|
|
4722
4716
|
return this.set(m, this.$M + h);
|
|
4723
|
-
if (
|
|
4724
|
-
return this.set(
|
|
4725
|
-
if (
|
|
4726
|
-
return
|
|
4727
|
-
if (
|
|
4728
|
-
return
|
|
4729
|
-
var
|
|
4730
|
-
return
|
|
4731
|
-
},
|
|
4717
|
+
if (O === A)
|
|
4718
|
+
return this.set(A, this.$y + h);
|
|
4719
|
+
if (O === u)
|
|
4720
|
+
return v(1);
|
|
4721
|
+
if (O === f)
|
|
4722
|
+
return v(7);
|
|
4723
|
+
var z = (b = {}, b[a] = r, b[c] = i, b[l] = n, b)[O] || 1, P = this.$d.getTime() + h * z;
|
|
4724
|
+
return C.w(P, this);
|
|
4725
|
+
}, _.subtract = function(h, E) {
|
|
4732
4726
|
return this.add(-1 * h, E);
|
|
4733
|
-
},
|
|
4734
|
-
var E = this,
|
|
4727
|
+
}, _.format = function(h) {
|
|
4728
|
+
var E = this, b = this.$locale();
|
|
4735
4729
|
if (!this.isValid())
|
|
4736
|
-
return
|
|
4737
|
-
var
|
|
4738
|
-
return
|
|
4739
|
-
},
|
|
4740
|
-
return
|
|
4741
|
-
},
|
|
4742
|
-
var
|
|
4743
|
-
return
|
|
4730
|
+
return b.invalidDate || g;
|
|
4731
|
+
var L = h || "YYYY-MM-DDTHH:mm:ssZ", O = C.z(this), v = this.$H, z = this.$m, P = this.$M, q = b.weekdays, D = b.months, d = b.meridiem, k = function(ne, ee, he, le) {
|
|
4732
|
+
return ne && (ne[ee] || ne(E, L)) || he[ee].slice(0, le);
|
|
4733
|
+
}, X = function(ne) {
|
|
4734
|
+
return C.s(v % 12 || 12, ne, "0");
|
|
4735
|
+
}, Y = d || function(ne, ee, he) {
|
|
4736
|
+
var le = ne < 12 ? "AM" : "PM";
|
|
4737
|
+
return he ? le.toLowerCase() : le;
|
|
4744
4738
|
};
|
|
4745
|
-
return
|
|
4746
|
-
return
|
|
4747
|
-
switch (
|
|
4739
|
+
return L.replace(U, function(ne, ee) {
|
|
4740
|
+
return ee || function(he) {
|
|
4741
|
+
switch (he) {
|
|
4748
4742
|
case "YY":
|
|
4749
4743
|
return String(E.$y).slice(-2);
|
|
4750
4744
|
case "YYYY":
|
|
4751
|
-
return
|
|
4745
|
+
return C.s(E.$y, 4, "0");
|
|
4752
4746
|
case "M":
|
|
4753
|
-
return
|
|
4747
|
+
return P + 1;
|
|
4754
4748
|
case "MM":
|
|
4755
|
-
return
|
|
4749
|
+
return C.s(P + 1, 2, "0");
|
|
4756
4750
|
case "MMM":
|
|
4757
|
-
return
|
|
4751
|
+
return k(b.monthsShort, P, D, 3);
|
|
4758
4752
|
case "MMMM":
|
|
4759
|
-
return D
|
|
4753
|
+
return k(D, P);
|
|
4760
4754
|
case "D":
|
|
4761
4755
|
return E.$D;
|
|
4762
4756
|
case "DD":
|
|
4763
|
-
return
|
|
4757
|
+
return C.s(E.$D, 2, "0");
|
|
4764
4758
|
case "d":
|
|
4765
4759
|
return String(E.$W);
|
|
4766
4760
|
case "dd":
|
|
4767
|
-
return
|
|
4761
|
+
return k(b.weekdaysMin, E.$W, q, 2);
|
|
4768
4762
|
case "ddd":
|
|
4769
|
-
return
|
|
4763
|
+
return k(b.weekdaysShort, E.$W, q, 3);
|
|
4770
4764
|
case "dddd":
|
|
4771
4765
|
return q[E.$W];
|
|
4772
4766
|
case "H":
|
|
4773
|
-
return String(
|
|
4767
|
+
return String(v);
|
|
4774
4768
|
case "HH":
|
|
4775
|
-
return
|
|
4769
|
+
return C.s(v, 2, "0");
|
|
4776
4770
|
case "h":
|
|
4777
|
-
return
|
|
4771
|
+
return X(1);
|
|
4778
4772
|
case "hh":
|
|
4779
|
-
return
|
|
4773
|
+
return X(2);
|
|
4780
4774
|
case "a":
|
|
4781
|
-
return
|
|
4775
|
+
return Y(v, z, !0);
|
|
4782
4776
|
case "A":
|
|
4783
|
-
return
|
|
4777
|
+
return Y(v, z, !1);
|
|
4784
4778
|
case "m":
|
|
4785
|
-
return String(
|
|
4779
|
+
return String(z);
|
|
4786
4780
|
case "mm":
|
|
4787
|
-
return
|
|
4781
|
+
return C.s(z, 2, "0");
|
|
4788
4782
|
case "s":
|
|
4789
4783
|
return String(E.$s);
|
|
4790
4784
|
case "ss":
|
|
4791
|
-
return
|
|
4785
|
+
return C.s(E.$s, 2, "0");
|
|
4792
4786
|
case "SSS":
|
|
4793
|
-
return
|
|
4787
|
+
return C.s(E.$ms, 3, "0");
|
|
4794
4788
|
case "Z":
|
|
4795
|
-
return
|
|
4789
|
+
return O;
|
|
4796
4790
|
}
|
|
4797
4791
|
return null;
|
|
4798
|
-
}(
|
|
4792
|
+
}(ne) || O.replace(":", "");
|
|
4799
4793
|
});
|
|
4800
|
-
},
|
|
4794
|
+
}, _.utcOffset = function() {
|
|
4801
4795
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4802
|
-
},
|
|
4803
|
-
var
|
|
4804
|
-
return
|
|
4796
|
+
}, _.diff = function(h, E, b) {
|
|
4797
|
+
var L, O = this, v = C.p(E), z = j(h), P = (z.utcOffset() - this.utcOffset()) * r, q = this - z, D = function() {
|
|
4798
|
+
return C.m(O, z);
|
|
4805
4799
|
};
|
|
4806
|
-
switch (
|
|
4807
|
-
case
|
|
4808
|
-
|
|
4800
|
+
switch (v) {
|
|
4801
|
+
case A:
|
|
4802
|
+
L = D() / 12;
|
|
4809
4803
|
break;
|
|
4810
4804
|
case m:
|
|
4811
|
-
|
|
4805
|
+
L = D();
|
|
4812
4806
|
break;
|
|
4813
4807
|
case y:
|
|
4814
|
-
|
|
4808
|
+
L = D() / 3;
|
|
4815
4809
|
break;
|
|
4816
4810
|
case f:
|
|
4817
|
-
|
|
4811
|
+
L = (q - P) / 6048e5;
|
|
4818
4812
|
break;
|
|
4819
4813
|
case u:
|
|
4820
|
-
|
|
4814
|
+
L = (q - P) / 864e5;
|
|
4821
4815
|
break;
|
|
4822
4816
|
case c:
|
|
4823
|
-
|
|
4817
|
+
L = q / i;
|
|
4824
4818
|
break;
|
|
4825
4819
|
case a:
|
|
4826
|
-
|
|
4820
|
+
L = q / r;
|
|
4827
4821
|
break;
|
|
4828
4822
|
case l:
|
|
4829
|
-
|
|
4823
|
+
L = q / n;
|
|
4830
4824
|
break;
|
|
4831
4825
|
default:
|
|
4832
|
-
|
|
4826
|
+
L = q;
|
|
4833
4827
|
}
|
|
4834
|
-
return
|
|
4835
|
-
},
|
|
4828
|
+
return b ? L : C.a(L);
|
|
4829
|
+
}, _.daysInMonth = function() {
|
|
4836
4830
|
return this.endOf(m).$D;
|
|
4837
|
-
},
|
|
4838
|
-
return
|
|
4839
|
-
},
|
|
4831
|
+
}, _.$locale = function() {
|
|
4832
|
+
return W[this.$L];
|
|
4833
|
+
}, _.locale = function(h, E) {
|
|
4840
4834
|
if (!h)
|
|
4841
4835
|
return this.$L;
|
|
4842
|
-
var
|
|
4843
|
-
return
|
|
4844
|
-
},
|
|
4845
|
-
return
|
|
4846
|
-
},
|
|
4836
|
+
var b = this.clone(), L = K(h, E, !0);
|
|
4837
|
+
return L && (b.$L = L), b;
|
|
4838
|
+
}, _.clone = function() {
|
|
4839
|
+
return C.w(this.$d, this);
|
|
4840
|
+
}, _.toDate = function() {
|
|
4847
4841
|
return new Date(this.valueOf());
|
|
4848
|
-
},
|
|
4842
|
+
}, _.toJSON = function() {
|
|
4849
4843
|
return this.isValid() ? this.toISOString() : null;
|
|
4850
|
-
},
|
|
4844
|
+
}, _.toISOString = function() {
|
|
4851
4845
|
return this.$d.toISOString();
|
|
4852
|
-
},
|
|
4846
|
+
}, _.toString = function() {
|
|
4853
4847
|
return this.$d.toUTCString();
|
|
4854
|
-
},
|
|
4855
|
-
}(),
|
|
4856
|
-
return j.prototype =
|
|
4857
|
-
|
|
4858
|
-
return this.$g(
|
|
4848
|
+
}, M;
|
|
4849
|
+
}(), Ee = se.prototype;
|
|
4850
|
+
return j.prototype = Ee, [["$ms", o], ["$s", l], ["$m", a], ["$H", c], ["$W", u], ["$M", m], ["$y", A], ["$D", x]].forEach(function(M) {
|
|
4851
|
+
Ee[M[1]] = function(_) {
|
|
4852
|
+
return this.$g(_, M[0], M[1]);
|
|
4859
4853
|
};
|
|
4860
|
-
}), j.extend = function(
|
|
4861
|
-
return
|
|
4862
|
-
}, j.locale = K, j.isDayjs =
|
|
4863
|
-
return j(1e3 *
|
|
4864
|
-
}, j.en =
|
|
4854
|
+
}), j.extend = function(M, _) {
|
|
4855
|
+
return M.$i || (M(_, se, j), M.$i = !0), j;
|
|
4856
|
+
}, j.locale = K, j.isDayjs = fe, j.unix = function(M) {
|
|
4857
|
+
return j(1e3 * M);
|
|
4858
|
+
}, j.en = W[I], j.Ls = W, j.p = {}, j;
|
|
4865
4859
|
});
|
|
4866
4860
|
})(Ui);
|
|
4867
|
-
var
|
|
4868
|
-
const
|
|
4861
|
+
var Ga = Ui.exports;
|
|
4862
|
+
const Gr = /* @__PURE__ */ Dn(Ga);
|
|
4869
4863
|
var ki = { exports: {} };
|
|
4870
4864
|
(function(e, t) {
|
|
4871
4865
|
(function(n, r) {
|
|
@@ -4875,11 +4869,11 @@ var ki = { exports: {} };
|
|
|
4875
4869
|
return function(o, l, a) {
|
|
4876
4870
|
var c = l.prototype;
|
|
4877
4871
|
a.utc = function(g) {
|
|
4878
|
-
var
|
|
4879
|
-
return new l(
|
|
4872
|
+
var N = { date: g, utc: !0, args: arguments };
|
|
4873
|
+
return new l(N);
|
|
4880
4874
|
}, c.utc = function(g) {
|
|
4881
|
-
var
|
|
4882
|
-
return g ?
|
|
4875
|
+
var N = a(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4876
|
+
return g ? N.add(this.utcOffset(), n) : N;
|
|
4883
4877
|
}, c.local = function() {
|
|
4884
4878
|
return a(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4885
4879
|
};
|
|
@@ -4896,33 +4890,33 @@ var ki = { exports: {} };
|
|
|
4896
4890
|
f.call(this);
|
|
4897
4891
|
};
|
|
4898
4892
|
var m = c.utcOffset;
|
|
4899
|
-
c.utcOffset = function(g,
|
|
4900
|
-
var
|
|
4901
|
-
if (
|
|
4902
|
-
return this.$u ? 0 :
|
|
4903
|
-
if (typeof g == "string" && (g = function(
|
|
4904
|
-
|
|
4905
|
-
var
|
|
4906
|
-
if (!
|
|
4893
|
+
c.utcOffset = function(g, N) {
|
|
4894
|
+
var U = this.$utils().u;
|
|
4895
|
+
if (U(g))
|
|
4896
|
+
return this.$u ? 0 : U(this.$offset) ? m.call(this) : this.$offset;
|
|
4897
|
+
if (typeof g == "string" && (g = function(I) {
|
|
4898
|
+
I === void 0 && (I = "");
|
|
4899
|
+
var W = I.match(r);
|
|
4900
|
+
if (!W)
|
|
4907
4901
|
return null;
|
|
4908
|
-
var
|
|
4909
|
-
return K === 0 ? 0 :
|
|
4902
|
+
var oe = ("" + W[0]).match(i) || ["-", 0, 0], fe = oe[0], K = 60 * +oe[1] + +oe[2];
|
|
4903
|
+
return K === 0 ? 0 : fe === "+" ? K : -K;
|
|
4910
4904
|
}(g), g === null))
|
|
4911
4905
|
return this;
|
|
4912
|
-
var
|
|
4913
|
-
if (
|
|
4914
|
-
return
|
|
4906
|
+
var V = Math.abs(g) <= 16 ? 60 * g : g, R = this;
|
|
4907
|
+
if (N)
|
|
4908
|
+
return R.$offset = V, R.$u = g === 0, R;
|
|
4915
4909
|
if (g !== 0) {
|
|
4916
|
-
var
|
|
4917
|
-
(
|
|
4910
|
+
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4911
|
+
(R = this.local().add(V + H, n)).$offset = V, R.$x.$localOffset = H;
|
|
4918
4912
|
} else
|
|
4919
|
-
|
|
4920
|
-
return
|
|
4913
|
+
R = this.utc();
|
|
4914
|
+
return R;
|
|
4921
4915
|
};
|
|
4922
4916
|
var y = c.format;
|
|
4923
4917
|
c.format = function(g) {
|
|
4924
|
-
var
|
|
4925
|
-
return y.call(this,
|
|
4918
|
+
var N = g || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4919
|
+
return y.call(this, N);
|
|
4926
4920
|
}, c.valueOf = function() {
|
|
4927
4921
|
var g = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4928
4922
|
return this.$d.valueOf() - 6e4 * g;
|
|
@@ -4933,16 +4927,16 @@ var ki = { exports: {} };
|
|
|
4933
4927
|
}, c.toString = function() {
|
|
4934
4928
|
return this.toDate().toUTCString();
|
|
4935
4929
|
};
|
|
4936
|
-
var
|
|
4930
|
+
var A = c.toDate;
|
|
4937
4931
|
c.toDate = function(g) {
|
|
4938
|
-
return g === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
4932
|
+
return g === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
|
|
4939
4933
|
};
|
|
4940
4934
|
var x = c.diff;
|
|
4941
|
-
c.diff = function(g,
|
|
4935
|
+
c.diff = function(g, N, U) {
|
|
4942
4936
|
if (g && this.$u === g.$u)
|
|
4943
|
-
return x.call(this, g,
|
|
4944
|
-
var
|
|
4945
|
-
return x.call(
|
|
4937
|
+
return x.call(this, g, N, U);
|
|
4938
|
+
var V = this.local(), R = a(g).local();
|
|
4939
|
+
return x.call(V, R, N, U);
|
|
4946
4940
|
};
|
|
4947
4941
|
};
|
|
4948
4942
|
});
|
|
@@ -4976,67 +4970,67 @@ function Xa(e, t, n) {
|
|
|
4976
4970
|
}
|
|
4977
4971
|
}
|
|
4978
4972
|
function Ya(e) {
|
|
4979
|
-
io(e, "svelte-
|
|
4973
|
+
io(e, "svelte-1kjup2o", '*,*::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:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;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;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));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;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}');
|
|
4980
4974
|
}
|
|
4981
4975
|
const Za = (e) => ({}), zr = (e) => ({}), qa = (e) => ({}), Wr = (e) => ({}), Ja = (e) => ({}), Vr = (e) => ({}), Qa = (e) => ({}), Xr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4982
4976
|
function Yr(e) {
|
|
4983
|
-
let t, n, r, i, o, l, a, c, u, f, m, y,
|
|
4977
|
+
let t, n, r, i, o, l, a, c, u, f, m, y, A = (
|
|
4984
4978
|
/*$_*/
|
|
4985
4979
|
e[8]("sessionExpirationHeader") + ""
|
|
4986
|
-
), x, g,
|
|
4980
|
+
), x, g, N, U, V, R, H, I, W, oe, fe, K, j, C, se = (
|
|
4987
4981
|
/*$_*/
|
|
4988
4982
|
e[8]("sessionExpirationEnd") + ""
|
|
4989
|
-
),
|
|
4990
|
-
const
|
|
4983
|
+
), Ee, M, _, h, E, b, L, O, v, z, P;
|
|
4984
|
+
const q = (
|
|
4991
4985
|
/*#slots*/
|
|
4992
4986
|
e[23].icon
|
|
4993
|
-
),
|
|
4994
|
-
|
|
4987
|
+
), D = Bt(
|
|
4988
|
+
q,
|
|
4995
4989
|
e,
|
|
4996
4990
|
/*$$scope*/
|
|
4997
4991
|
e[22],
|
|
4998
4992
|
Xr
|
|
4999
|
-
),
|
|
4993
|
+
), d = D || Ka(e), k = (
|
|
5000
4994
|
/*#slots*/
|
|
5001
4995
|
e[23].title
|
|
5002
|
-
),
|
|
5003
|
-
|
|
4996
|
+
), X = Bt(
|
|
4997
|
+
k,
|
|
5004
4998
|
e,
|
|
5005
4999
|
/*$$scope*/
|
|
5006
5000
|
e[22],
|
|
5007
5001
|
Vr
|
|
5008
|
-
),
|
|
5002
|
+
), Y = (
|
|
5009
5003
|
/*#slots*/
|
|
5010
5004
|
e[23].text
|
|
5011
|
-
),
|
|
5012
|
-
|
|
5005
|
+
), ne = Bt(
|
|
5006
|
+
Y,
|
|
5013
5007
|
e,
|
|
5014
5008
|
/*$$scope*/
|
|
5015
5009
|
e[22],
|
|
5016
5010
|
Wr
|
|
5017
|
-
),
|
|
5018
|
-
function
|
|
5011
|
+
), ee = ne || el(e), he = [nl, tl], le = [];
|
|
5012
|
+
function Oe(J, re) {
|
|
5019
5013
|
return (
|
|
5020
5014
|
/*showLoaderButton*/
|
|
5021
|
-
|
|
5015
|
+
J[6] ? 0 : 1
|
|
5022
5016
|
);
|
|
5023
5017
|
}
|
|
5024
|
-
return h =
|
|
5018
|
+
return h = Oe(e), E = le[h] = he[h](e), {
|
|
5025
5019
|
c() {
|
|
5026
|
-
t =
|
|
5027
|
-
e[6]
|
|
5020
|
+
t = te("div"), n = te("div"), r = te("div"), i = te("div"), o = Se("svg"), l = Se("defs"), a = Se("mask"), c = Se("circle"), u = Se("rect"), f = Se("circle"), m = Se("circle"), y = Re(), x = je(A), g = Re(), N = te("div"), U = Se("svg"), V = Se("path"), R = Re(), H = te("div"), I = te("div"), d && d.c(), W = Re(), X && X.c(), oe = Re(), ee && ee.c(), fe = Re(), K = te("div"), j = te("button"), C = te("span"), Ee = je(se), M = Re(), _ = te("button"), E.c(), w(c, "cx", "100"), w(c, "cy", "100"), w(c, "r", "90"), w(u, "x", "88"), w(u, "y", "40"), w(u, "width", "24"), w(u, "height", "80"), w(u, "rx", "12"), w(u, "fill", "black"), w(f, "cx", "100"), w(f, "cy", "150"), w(f, "r", "14"), w(f, "fill", "black"), w(a, "id", "exclamation-mask"), w(m, "cx", "100"), w(m, "cy", "100"), w(m, "r", "90"), w(m, "mask", "url(#exclamation-mask)"), w(o, "viewBox", "0 0 200 200"), w(o, "xmlns", "http://www.w3.org/2000/svg"), w(i, "class", "CashierSessionExpirationModalHeaderTitle"), w(V, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), w(U, "xmlns", "http://www.w3.org/2000/svg"), w(U, "viewBox", "0 0 13 13"), w(U, "fill", "none"), w(U, "class", "CloseButton"), w(N, "class", "ModalCloseIcon"), w(r, "class", "CashierSessionExpirationModalHeader"), w(C, "class", "CashierSessionExpirationButtonText"), w(j, "type", "button"), w(j, "class", "ModalButton Secondary"), w(_, "type", "button"), w(_, "class", b = "ModalButton Primary " + /*showLoaderButton*/
|
|
5021
|
+
(e[6] ? "Disabled" : "")), w(K, "class", "ButtonsContainer"), w(I, "class", "CashierSessionExpiration"), w(H, "class", "CashierSessionExpirationModalContainer"), w(n, "class", "CashierSessionExpirationModalWrapper"), w(t, "class", "CashierSessionExpirationModalWindow"), w(t, "id", "CashierSessionExpirationModal"), tt(() => (
|
|
5028
5022
|
/*div7_elementresize_handler*/
|
|
5029
5023
|
e[25].call(t)
|
|
5030
5024
|
));
|
|
5031
5025
|
},
|
|
5032
|
-
m(
|
|
5033
|
-
|
|
5026
|
+
m(J, re) {
|
|
5027
|
+
ke(J, t, re), B(t, n), B(n, r), B(r, i), B(i, o), B(o, l), B(l, a), B(a, c), B(a, u), B(a, f), B(o, m), B(i, y), B(i, x), B(r, g), B(r, N), B(N, U), B(U, V), B(n, R), B(n, H), B(H, I), d && d.m(I, null), B(I, W), X && X.m(I, null), B(I, oe), ee && ee.m(I, null), B(I, fe), B(I, K), B(K, j), B(j, C), B(C, Ee), B(K, M), B(K, _), le[h].m(_, null), e[24](I), L = uo(
|
|
5034
5028
|
t,
|
|
5035
5029
|
/*div7_elementresize_handler*/
|
|
5036
5030
|
e[25].bind(t)
|
|
5037
|
-
), v = !0,
|
|
5031
|
+
), v = !0, z || (P = [
|
|
5038
5032
|
Qe(
|
|
5039
|
-
|
|
5033
|
+
U,
|
|
5040
5034
|
"click",
|
|
5041
5035
|
/*goToHome*/
|
|
5042
5036
|
e[11]
|
|
@@ -5048,7 +5042,7 @@ function Yr(e) {
|
|
|
5048
5042
|
e[11]
|
|
5049
5043
|
),
|
|
5050
5044
|
Qe(
|
|
5051
|
-
|
|
5045
|
+
_,
|
|
5052
5046
|
"click",
|
|
5053
5047
|
/*renewSession*/
|
|
5054
5048
|
e[9]
|
|
@@ -5059,93 +5053,93 @@ function Yr(e) {
|
|
|
5059
5053
|
/*outOfModalClick*/
|
|
5060
5054
|
e[10]
|
|
5061
5055
|
)
|
|
5062
|
-
],
|
|
5056
|
+
], z = !0);
|
|
5063
5057
|
},
|
|
5064
|
-
p(
|
|
5065
|
-
e =
|
|
5066
|
-
256) &&
|
|
5067
|
-
e[8]("sessionExpirationHeader") + "") && yt(x,
|
|
5058
|
+
p(J, re) {
|
|
5059
|
+
e = J, (!v || re[0] & /*$_*/
|
|
5060
|
+
256) && A !== (A = /*$_*/
|
|
5061
|
+
e[8]("sessionExpirationHeader") + "") && yt(x, A), D ? D.p && (!v || re[0] & /*$$scope*/
|
|
5068
5062
|
4194304) && Ut(
|
|
5063
|
+
D,
|
|
5069
5064
|
q,
|
|
5070
|
-
R,
|
|
5071
5065
|
e,
|
|
5072
5066
|
/*$$scope*/
|
|
5073
5067
|
e[22],
|
|
5074
5068
|
v ? $t(
|
|
5075
|
-
|
|
5069
|
+
q,
|
|
5076
5070
|
/*$$scope*/
|
|
5077
5071
|
e[22],
|
|
5078
|
-
|
|
5072
|
+
re,
|
|
5079
5073
|
Qa
|
|
5080
5074
|
) : kt(
|
|
5081
5075
|
/*$$scope*/
|
|
5082
5076
|
e[22]
|
|
5083
5077
|
),
|
|
5084
5078
|
Xr
|
|
5085
|
-
) :
|
|
5086
|
-
8) &&
|
|
5079
|
+
) : d && d.p && (!v || re[0] & /*assetsurl*/
|
|
5080
|
+
8) && d.p(e, v ? re : [-1, -1]), X && X.p && (!v || re[0] & /*$$scope*/
|
|
5087
5081
|
4194304) && Ut(
|
|
5088
|
-
|
|
5089
|
-
|
|
5082
|
+
X,
|
|
5083
|
+
k,
|
|
5090
5084
|
e,
|
|
5091
5085
|
/*$$scope*/
|
|
5092
5086
|
e[22],
|
|
5093
5087
|
v ? $t(
|
|
5094
|
-
|
|
5088
|
+
k,
|
|
5095
5089
|
/*$$scope*/
|
|
5096
5090
|
e[22],
|
|
5097
|
-
|
|
5091
|
+
re,
|
|
5098
5092
|
Ja
|
|
5099
5093
|
) : kt(
|
|
5100
5094
|
/*$$scope*/
|
|
5101
5095
|
e[22]
|
|
5102
5096
|
),
|
|
5103
5097
|
Vr
|
|
5104
|
-
),
|
|
5098
|
+
), ne ? ne.p && (!v || re[0] & /*$$scope*/
|
|
5105
5099
|
4194304) && Ut(
|
|
5106
|
-
|
|
5107
|
-
|
|
5100
|
+
ne,
|
|
5101
|
+
Y,
|
|
5108
5102
|
e,
|
|
5109
5103
|
/*$$scope*/
|
|
5110
5104
|
e[22],
|
|
5111
5105
|
v ? $t(
|
|
5112
|
-
|
|
5106
|
+
Y,
|
|
5113
5107
|
/*$$scope*/
|
|
5114
5108
|
e[22],
|
|
5115
|
-
|
|
5109
|
+
re,
|
|
5116
5110
|
qa
|
|
5117
5111
|
) : kt(
|
|
5118
5112
|
/*$$scope*/
|
|
5119
5113
|
e[22]
|
|
5120
5114
|
),
|
|
5121
5115
|
Wr
|
|
5122
|
-
) :
|
|
5123
|
-
384) &&
|
|
5116
|
+
) : ee && ee.p && (!v || re[0] & /*$_, timeLeft*/
|
|
5117
|
+
384) && ee.p(e, v ? re : [-1, -1]), (!v || re[0] & /*$_*/
|
|
5124
5118
|
256) && se !== (se = /*$_*/
|
|
5125
|
-
e[8]("sessionExpirationEnd") + "") && yt(
|
|
5126
|
-
let
|
|
5127
|
-
h =
|
|
5128
|
-
|
|
5129
|
-
}), si(), E =
|
|
5130
|
-
64
|
|
5131
|
-
e[6]);
|
|
5119
|
+
e[8]("sessionExpirationEnd") + "") && yt(Ee, se);
|
|
5120
|
+
let Me = h;
|
|
5121
|
+
h = Oe(e), h === Me ? le[h].p(e, re) : (oi(), Be(le[Me], 1, 1, () => {
|
|
5122
|
+
le[Me] = null;
|
|
5123
|
+
}), si(), E = le[h], E ? E.p(e, re) : (E = le[h] = he[h](e), E.c()), He(E, 1), E.m(_, null)), (!v || re[0] & /*showLoaderButton*/
|
|
5124
|
+
64 && b !== (b = "ModalButton Primary " + /*showLoaderButton*/
|
|
5125
|
+
(e[6] ? "Disabled" : ""))) && w(_, "class", b);
|
|
5132
5126
|
},
|
|
5133
|
-
i(
|
|
5134
|
-
v || (
|
|
5135
|
-
v && (
|
|
5127
|
+
i(J) {
|
|
5128
|
+
v || (He(d, J), He(X, J), He(ee, J), He(E), J && tt(() => {
|
|
5129
|
+
v && (O || (O = dr(t, gr, { duration: (
|
|
5136
5130
|
/*duration*/
|
|
5137
5131
|
e[2]
|
|
5138
|
-
) }, !0)),
|
|
5132
|
+
) }, !0)), O.run(1));
|
|
5139
5133
|
}), v = !0);
|
|
5140
5134
|
},
|
|
5141
|
-
o(
|
|
5142
|
-
|
|
5135
|
+
o(J) {
|
|
5136
|
+
Be(d, J), Be(X, J), Be(ee, J), Be(E), J && (O || (O = dr(t, gr, { duration: (
|
|
5143
5137
|
/*duration*/
|
|
5144
5138
|
e[2]
|
|
5145
|
-
) }, !1)),
|
|
5139
|
+
) }, !1)), O.run(0)), v = !1;
|
|
5146
5140
|
},
|
|
5147
|
-
d(
|
|
5148
|
-
|
|
5141
|
+
d(J) {
|
|
5142
|
+
J && Ae(t), d && d.d(J), X && X.d(J), ee && ee.d(J), le[h].d(), e[24](null), L(), J && O && O.end(), z = !1, Ue(P);
|
|
5149
5143
|
}
|
|
5150
5144
|
};
|
|
5151
5145
|
}
|
|
@@ -5153,16 +5147,16 @@ function Zr(e) {
|
|
|
5153
5147
|
let t, n;
|
|
5154
5148
|
return {
|
|
5155
5149
|
c() {
|
|
5156
|
-
t =
|
|
5157
|
-
e[3]}/set-timeout-icon.png`) ||
|
|
5150
|
+
t = te("img"), fr(t.src, n = `${/*assetsurl*/
|
|
5151
|
+
e[3]}/set-timeout-icon.png`) || w(t, "src", n), w(t, "width", "300px"), w(t, "alt", "error");
|
|
5158
5152
|
},
|
|
5159
5153
|
m(r, i) {
|
|
5160
|
-
|
|
5154
|
+
ke(r, t, i);
|
|
5161
5155
|
},
|
|
5162
5156
|
p(r, i) {
|
|
5163
5157
|
i[0] & /*assetsurl*/
|
|
5164
5158
|
8 && !fr(t.src, n = `${/*assetsurl*/
|
|
5165
|
-
r[3]}/set-timeout-icon.png`) &&
|
|
5159
|
+
r[3]}/set-timeout-icon.png`) && w(t, "src", n);
|
|
5166
5160
|
},
|
|
5167
5161
|
d(r) {
|
|
5168
5162
|
r && Ae(t);
|
|
@@ -5179,7 +5173,7 @@ function Ka(e) {
|
|
|
5179
5173
|
n && n.c(), t = so();
|
|
5180
5174
|
},
|
|
5181
5175
|
m(r, i) {
|
|
5182
|
-
n && n.m(r, i),
|
|
5176
|
+
n && n.m(r, i), ke(r, t, i);
|
|
5183
5177
|
},
|
|
5184
5178
|
p(r, i) {
|
|
5185
5179
|
/*assetsurl*/
|
|
@@ -5194,7 +5188,7 @@ function el(e) {
|
|
|
5194
5188
|
let t, n, r = (
|
|
5195
5189
|
/*$_*/
|
|
5196
5190
|
e[8]("sessionExpirationTitle") + ""
|
|
5197
|
-
), i, o, l, a =
|
|
5191
|
+
), i, o, l, a = Fr.sanitize(
|
|
5198
5192
|
/*$_*/
|
|
5199
5193
|
e[8]("sessionExpirationGeneralText", { values: { second: (
|
|
5200
5194
|
/*timeLeft*/
|
|
@@ -5203,16 +5197,16 @@ function el(e) {
|
|
|
5203
5197
|
) + "";
|
|
5204
5198
|
return {
|
|
5205
5199
|
c() {
|
|
5206
|
-
t =
|
|
5200
|
+
t = te("span"), n = te("p"), i = je(r), o = Re(), l = te("p"), w(t, "class", "CashierSessionExpirationText");
|
|
5207
5201
|
},
|
|
5208
5202
|
m(c, u) {
|
|
5209
|
-
|
|
5203
|
+
ke(c, t, u), B(t, n), B(n, i), B(t, o), B(t, l), l.innerHTML = a;
|
|
5210
5204
|
},
|
|
5211
5205
|
p(c, u) {
|
|
5212
5206
|
u[0] & /*$_*/
|
|
5213
5207
|
256 && r !== (r = /*$_*/
|
|
5214
5208
|
c[8]("sessionExpirationTitle") + "") && yt(i, r), u[0] & /*$_, timeLeft*/
|
|
5215
|
-
384 && a !== (a =
|
|
5209
|
+
384 && a !== (a = Fr.sanitize(
|
|
5216
5210
|
/*$_*/
|
|
5217
5211
|
c[8]("sessionExpirationGeneralText", { values: { second: (
|
|
5218
5212
|
/*timeLeft*/
|
|
@@ -5267,10 +5261,10 @@ function tl(e) {
|
|
|
5267
5261
|
256) && i.p(o, t ? l : [-1, -1]);
|
|
5268
5262
|
},
|
|
5269
5263
|
i(o) {
|
|
5270
|
-
t || (
|
|
5264
|
+
t || (He(i, o), t = !0);
|
|
5271
5265
|
},
|
|
5272
5266
|
o(o) {
|
|
5273
|
-
|
|
5267
|
+
Be(i, o), t = !1;
|
|
5274
5268
|
},
|
|
5275
5269
|
d(o) {
|
|
5276
5270
|
i && i.d(o);
|
|
@@ -5284,18 +5278,18 @@ function nl(e) {
|
|
|
5284
5278
|
), a;
|
|
5285
5279
|
return {
|
|
5286
5280
|
c() {
|
|
5287
|
-
t =
|
|
5281
|
+
t = te("div"), n = Se("svg"), r = Se("path"), i = Re(), o = te("span"), a = je(l), w(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"), w(r, "fill", "white"), w(n, "class", "CashierSessionExpirationButtonSpinner"), w(n, "xmlns", "http://www.w3.org/2000/svg"), w(n, "width", "15"), w(n, "height", "14"), w(n, "viewBox", "0 0 15 14"), w(n, "fill", "none"), w(o, "class", "CashierSessionExpirationButtonText");
|
|
5288
5282
|
},
|
|
5289
5283
|
m(c, u) {
|
|
5290
|
-
|
|
5284
|
+
ke(c, t, u), B(t, n), B(n, r), B(t, i), B(t, o), B(o, a);
|
|
5291
5285
|
},
|
|
5292
5286
|
p(c, u) {
|
|
5293
5287
|
u[0] & /*$_*/
|
|
5294
5288
|
256 && l !== (l = /*$_*/
|
|
5295
5289
|
c[8]("sessionExpirationLoadingButton") + "") && yt(a, l);
|
|
5296
5290
|
},
|
|
5297
|
-
i:
|
|
5298
|
-
o:
|
|
5291
|
+
i: ye,
|
|
5292
|
+
o: ye,
|
|
5299
5293
|
d(c) {
|
|
5300
5294
|
c && Ae(t);
|
|
5301
5295
|
}
|
|
@@ -5308,10 +5302,10 @@ function rl(e) {
|
|
|
5308
5302
|
), r;
|
|
5309
5303
|
return {
|
|
5310
5304
|
c() {
|
|
5311
|
-
t =
|
|
5305
|
+
t = te("span"), r = je(n), w(t, "class", "CashierSessionExpirationButtonText");
|
|
5312
5306
|
},
|
|
5313
5307
|
m(i, o) {
|
|
5314
|
-
|
|
5308
|
+
ke(i, t, o), B(t, r);
|
|
5315
5309
|
},
|
|
5316
5310
|
p(i, o) {
|
|
5317
5311
|
o[0] & /*$_*/
|
|
@@ -5330,23 +5324,23 @@ function il(e) {
|
|
|
5330
5324
|
);
|
|
5331
5325
|
return {
|
|
5332
5326
|
c() {
|
|
5333
|
-
t =
|
|
5327
|
+
t = te("div"), r && r.c();
|
|
5334
5328
|
},
|
|
5335
5329
|
m(i, o) {
|
|
5336
|
-
|
|
5330
|
+
ke(i, t, o), r && r.m(t, null), e[26](t), n = !0;
|
|
5337
5331
|
},
|
|
5338
5332
|
p(i, o) {
|
|
5339
5333
|
/*show*/
|
|
5340
5334
|
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5341
|
-
32 &&
|
|
5335
|
+
32 && He(r, 1)) : (r = Yr(i), r.c(), He(r, 1), r.m(t, null)) : r && (oi(), Be(r, 1, 1, () => {
|
|
5342
5336
|
r = null;
|
|
5343
5337
|
}), si());
|
|
5344
5338
|
},
|
|
5345
5339
|
i(i) {
|
|
5346
|
-
n || (
|
|
5340
|
+
n || (He(r), n = !0);
|
|
5347
5341
|
},
|
|
5348
5342
|
o(i) {
|
|
5349
|
-
|
|
5343
|
+
Be(r), n = !1;
|
|
5350
5344
|
},
|
|
5351
5345
|
d(i) {
|
|
5352
5346
|
i && Ae(t), r && r.d(), e[26](null);
|
|
@@ -5356,159 +5350,159 @@ function il(e) {
|
|
|
5356
5350
|
const ol = 90;
|
|
5357
5351
|
function sl(e, t, n) {
|
|
5358
5352
|
let r, i;
|
|
5359
|
-
hr(e, jr, (
|
|
5353
|
+
hr(e, jr, (d) => n(21, r = d)), hr(e, xa, (d) => n(8, i = d));
|
|
5360
5354
|
let { $$slots: o = {}, $$scope: l } = t;
|
|
5361
|
-
|
|
5362
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: u } = t, { height: f } = t, { duration: m = 200 } = t, { assetsurl: y = "" } = t, { lang:
|
|
5355
|
+
Gr.extend(za);
|
|
5356
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: u } = t, { height: f } = t, { duration: m = 200 } = t, { assetsurl: y = "" } = t, { lang: A = "en" } = t, { translationurl: x = "" } = t, { endpoint: g } = t, { currency: N } = t, { customerid: U } = t, { selectedpaymentmethodname: V } = t, { mbsource: R = "" } = t, H, I = !1, W = !1, oe, fe, K, j, C;
|
|
5363
5357
|
var se;
|
|
5364
|
-
(function(
|
|
5365
|
-
|
|
5358
|
+
(function(d) {
|
|
5359
|
+
d.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", d.Success = "Success", d.JwtTokenError = "JwtTokenError";
|
|
5366
5360
|
})(se || (se = {}));
|
|
5367
|
-
const
|
|
5368
|
-
|
|
5369
|
-
},
|
|
5361
|
+
const Ee = (d) => {
|
|
5362
|
+
d.data.type === "StartSessionCountdown" && (j = d.data.paymentMethodName);
|
|
5363
|
+
}, M = (d) => {
|
|
5370
5364
|
try {
|
|
5371
|
-
return JSON.parse(atob(
|
|
5372
|
-
} catch (
|
|
5365
|
+
return JSON.parse(atob(d.split(".")[1]));
|
|
5366
|
+
} catch (k) {
|
|
5373
5367
|
return null;
|
|
5374
5368
|
}
|
|
5375
|
-
},
|
|
5369
|
+
}, _ = () => {
|
|
5376
5370
|
window.postMessage(
|
|
5377
5371
|
{
|
|
5378
5372
|
type: "ErrorResponseCode",
|
|
5379
|
-
errorResponseCode:
|
|
5373
|
+
errorResponseCode: C
|
|
5380
5374
|
},
|
|
5381
5375
|
window.location.href
|
|
5382
5376
|
);
|
|
5383
|
-
}, h = (
|
|
5384
|
-
n(5,
|
|
5385
|
-
const
|
|
5386
|
-
|
|
5377
|
+
}, h = (d) => {
|
|
5378
|
+
n(5, I = !1);
|
|
5379
|
+
const k = M(d);
|
|
5380
|
+
k && (fe = k == null ? void 0 : k.exp, n(7, oe = fe), K && clearInterval(K), K = setInterval(
|
|
5387
5381
|
() => {
|
|
5388
|
-
const
|
|
5389
|
-
n(7,
|
|
5382
|
+
const X = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5383
|
+
n(7, oe = fe - X), oe <= ol && n(5, I = !0), X >= fe && (E(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5390
5384
|
},
|
|
5391
5385
|
1e3
|
|
5392
5386
|
));
|
|
5393
5387
|
}, E = () => {
|
|
5394
|
-
n(7,
|
|
5395
|
-
},
|
|
5396
|
-
if (
|
|
5388
|
+
n(7, oe = 0), n(5, I = !1), clearInterval(K);
|
|
5389
|
+
}, b = () => {
|
|
5390
|
+
if (W)
|
|
5397
5391
|
return;
|
|
5398
|
-
const
|
|
5399
|
-
n(6,
|
|
5400
|
-
const
|
|
5392
|
+
const d = new URL(`${g}/v1/player/${U}/payment/GetPaymentMethod`), k = new Headers();
|
|
5393
|
+
n(6, W = !0), k.append("accept", "application/json"), k.append("Content-Type", "application/json"), k.append("X-Client-Request-Timestamp", Gr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5394
|
+
const X = {
|
|
5401
5395
|
method: "POST",
|
|
5402
5396
|
mode: "cors",
|
|
5403
|
-
headers:
|
|
5397
|
+
headers: k,
|
|
5404
5398
|
body: JSON.stringify({
|
|
5405
|
-
PaymentMethodName: j ||
|
|
5406
|
-
Currency:
|
|
5399
|
+
PaymentMethodName: j || V,
|
|
5400
|
+
Currency: N,
|
|
5407
5401
|
XPaymentSessionToken: r
|
|
5408
5402
|
})
|
|
5409
5403
|
};
|
|
5410
|
-
fetch(
|
|
5411
|
-
if (
|
|
5404
|
+
fetch(d, X).then((Y) => Y.json()).then((Y) => {
|
|
5405
|
+
if (Y.error) {
|
|
5412
5406
|
window.postMessage(
|
|
5413
5407
|
{
|
|
5414
5408
|
type: "ShowSessionError",
|
|
5415
|
-
error:
|
|
5409
|
+
error: Y.error
|
|
5416
5410
|
},
|
|
5417
5411
|
window.location.href
|
|
5418
5412
|
), E();
|
|
5419
5413
|
return;
|
|
5420
5414
|
}
|
|
5421
|
-
if (
|
|
5422
|
-
|
|
5415
|
+
if (Y.ResponseCode === se.PlayerSessionIsNotValid || Y.ResponseCode === se.JwtTokenError) {
|
|
5416
|
+
C = Y.ResponseCode, E(), _();
|
|
5423
5417
|
return;
|
|
5424
5418
|
}
|
|
5425
|
-
if (
|
|
5426
|
-
|
|
5419
|
+
if (Y.ResponseCode !== se.Success) {
|
|
5420
|
+
C = Y.ResponseCode, E();
|
|
5427
5421
|
return;
|
|
5428
5422
|
}
|
|
5429
|
-
|
|
5430
|
-
}).finally(() => n(6,
|
|
5431
|
-
},
|
|
5432
|
-
const
|
|
5433
|
-
|
|
5434
|
-
},
|
|
5435
|
-
fetch(x).then((
|
|
5436
|
-
Object.keys(
|
|
5437
|
-
Hr(
|
|
5423
|
+
Y.XPaymentSessionToken && jr.set(Y.XPaymentSessionToken);
|
|
5424
|
+
}).finally(() => n(6, W = !1));
|
|
5425
|
+
}, L = (d) => {
|
|
5426
|
+
const k = d.currentTarget;
|
|
5427
|
+
d.target === k && b();
|
|
5428
|
+
}, O = () => {
|
|
5429
|
+
fetch(x).then((k) => k.json()).then((k) => {
|
|
5430
|
+
Object.keys(k).forEach((X) => {
|
|
5431
|
+
Hr(X, k[X]);
|
|
5438
5432
|
});
|
|
5439
|
-
}).catch((
|
|
5440
|
-
console.log(
|
|
5433
|
+
}).catch((k) => {
|
|
5434
|
+
console.log(k);
|
|
5441
5435
|
});
|
|
5442
|
-
},
|
|
5443
|
-
window.postMessage({ type: "Cashier:goToHome" }, window.location.href), n(5,
|
|
5436
|
+
}, v = () => {
|
|
5437
|
+
window.postMessage({ type: "Cashier:goToHome" }, window.location.href), n(5, I = !1);
|
|
5444
5438
|
};
|
|
5445
|
-
Object.keys(Nr).forEach((
|
|
5446
|
-
Hr(
|
|
5439
|
+
Object.keys(Nr).forEach((d) => {
|
|
5440
|
+
Hr(d, Nr[d]);
|
|
5447
5441
|
});
|
|
5448
|
-
const
|
|
5449
|
-
va(
|
|
5442
|
+
const z = () => {
|
|
5443
|
+
va(A);
|
|
5450
5444
|
};
|
|
5451
|
-
_o(() => (window.addEventListener("message",
|
|
5452
|
-
window.removeEventListener("message",
|
|
5445
|
+
_o(() => (window.addEventListener("message", Ee, !1), () => {
|
|
5446
|
+
window.removeEventListener("message", Ee);
|
|
5453
5447
|
})), bo(() => {
|
|
5454
5448
|
clearInterval(K);
|
|
5455
5449
|
});
|
|
5456
|
-
function
|
|
5457
|
-
Yt[
|
|
5458
|
-
|
|
5450
|
+
function P(d) {
|
|
5451
|
+
Yt[d ? "unshift" : "push"](() => {
|
|
5452
|
+
H = d, n(4, H);
|
|
5459
5453
|
});
|
|
5460
5454
|
}
|
|
5461
5455
|
function q() {
|
|
5462
5456
|
u = this.clientWidth, f = this.clientHeight, n(0, u), n(1, f);
|
|
5463
5457
|
}
|
|
5464
|
-
function
|
|
5465
|
-
Yt[
|
|
5466
|
-
|
|
5458
|
+
function D(d) {
|
|
5459
|
+
Yt[d ? "unshift" : "push"](() => {
|
|
5460
|
+
H = d, n(4, H);
|
|
5467
5461
|
});
|
|
5468
5462
|
}
|
|
5469
|
-
return e.$$set = (
|
|
5470
|
-
"clientstyling" in
|
|
5463
|
+
return e.$$set = (d) => {
|
|
5464
|
+
"clientstyling" in d && n(12, a = d.clientstyling), "clientstylingurl" in d && n(13, c = d.clientstylingurl), "width" in d && n(0, u = d.width), "height" in d && n(1, f = d.height), "duration" in d && n(2, m = d.duration), "assetsurl" in d && n(3, y = d.assetsurl), "lang" in d && n(14, A = d.lang), "translationurl" in d && n(15, x = d.translationurl), "endpoint" in d && n(16, g = d.endpoint), "currency" in d && n(17, N = d.currency), "customerid" in d && n(18, U = d.customerid), "selectedpaymentmethodname" in d && n(19, V = d.selectedpaymentmethodname), "mbsource" in d && n(20, R = d.mbsource), "$$scope" in d && n(22, l = d.$$scope);
|
|
5471
5465
|
}, e.$$.update = () => {
|
|
5472
5466
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5473
5467
|
2097152 && h(r), e.$$.dirty[0] & /*lang*/
|
|
5474
|
-
16384 &&
|
|
5475
|
-
4112 && a &&
|
|
5476
|
-
8208 && c &&
|
|
5477
|
-
1048592 &&
|
|
5478
|
-
32768 && x &&
|
|
5468
|
+
16384 && A && z(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5469
|
+
4112 && a && H && Wa(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5470
|
+
8208 && c && H && Va(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5471
|
+
1048592 && R && H && Xa(H, `${R}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5472
|
+
32768 && x && O();
|
|
5479
5473
|
}, [
|
|
5480
5474
|
u,
|
|
5481
5475
|
f,
|
|
5482
5476
|
m,
|
|
5483
5477
|
y,
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5478
|
+
H,
|
|
5479
|
+
I,
|
|
5480
|
+
W,
|
|
5481
|
+
oe,
|
|
5488
5482
|
i,
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5483
|
+
b,
|
|
5484
|
+
L,
|
|
5485
|
+
v,
|
|
5492
5486
|
a,
|
|
5493
5487
|
c,
|
|
5494
|
-
|
|
5488
|
+
A,
|
|
5495
5489
|
x,
|
|
5496
5490
|
g,
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5491
|
+
N,
|
|
5492
|
+
U,
|
|
5493
|
+
V,
|
|
5494
|
+
R,
|
|
5501
5495
|
r,
|
|
5502
5496
|
l,
|
|
5503
5497
|
o,
|
|
5504
|
-
|
|
5498
|
+
P,
|
|
5505
5499
|
q,
|
|
5506
|
-
|
|
5500
|
+
D
|
|
5507
5501
|
];
|
|
5508
5502
|
}
|
|
5509
5503
|
class al extends Lo {
|
|
5510
5504
|
constructor(t) {
|
|
5511
|
-
super(),
|
|
5505
|
+
super(), Mo(
|
|
5512
5506
|
this,
|
|
5513
5507
|
t,
|
|
5514
5508
|
sl,
|
|
@@ -5537,82 +5531,82 @@ class al extends Lo {
|
|
|
5537
5531
|
return this.$$.ctx[12];
|
|
5538
5532
|
}
|
|
5539
5533
|
set clientstyling(t) {
|
|
5540
|
-
this.$$set({ clientstyling: t }),
|
|
5534
|
+
this.$$set({ clientstyling: t }), de();
|
|
5541
5535
|
}
|
|
5542
5536
|
get clientstylingurl() {
|
|
5543
5537
|
return this.$$.ctx[13];
|
|
5544
5538
|
}
|
|
5545
5539
|
set clientstylingurl(t) {
|
|
5546
|
-
this.$$set({ clientstylingurl: t }),
|
|
5540
|
+
this.$$set({ clientstylingurl: t }), de();
|
|
5547
5541
|
}
|
|
5548
5542
|
get width() {
|
|
5549
5543
|
return this.$$.ctx[0];
|
|
5550
5544
|
}
|
|
5551
5545
|
set width(t) {
|
|
5552
|
-
this.$$set({ width: t }),
|
|
5546
|
+
this.$$set({ width: t }), de();
|
|
5553
5547
|
}
|
|
5554
5548
|
get height() {
|
|
5555
5549
|
return this.$$.ctx[1];
|
|
5556
5550
|
}
|
|
5557
5551
|
set height(t) {
|
|
5558
|
-
this.$$set({ height: t }),
|
|
5552
|
+
this.$$set({ height: t }), de();
|
|
5559
5553
|
}
|
|
5560
5554
|
get duration() {
|
|
5561
5555
|
return this.$$.ctx[2];
|
|
5562
5556
|
}
|
|
5563
5557
|
set duration(t) {
|
|
5564
|
-
this.$$set({ duration: t }),
|
|
5558
|
+
this.$$set({ duration: t }), de();
|
|
5565
5559
|
}
|
|
5566
5560
|
get assetsurl() {
|
|
5567
5561
|
return this.$$.ctx[3];
|
|
5568
5562
|
}
|
|
5569
5563
|
set assetsurl(t) {
|
|
5570
|
-
this.$$set({ assetsurl: t }),
|
|
5564
|
+
this.$$set({ assetsurl: t }), de();
|
|
5571
5565
|
}
|
|
5572
5566
|
get lang() {
|
|
5573
5567
|
return this.$$.ctx[14];
|
|
5574
5568
|
}
|
|
5575
5569
|
set lang(t) {
|
|
5576
|
-
this.$$set({ lang: t }),
|
|
5570
|
+
this.$$set({ lang: t }), de();
|
|
5577
5571
|
}
|
|
5578
5572
|
get translationurl() {
|
|
5579
5573
|
return this.$$.ctx[15];
|
|
5580
5574
|
}
|
|
5581
5575
|
set translationurl(t) {
|
|
5582
|
-
this.$$set({ translationurl: t }),
|
|
5576
|
+
this.$$set({ translationurl: t }), de();
|
|
5583
5577
|
}
|
|
5584
5578
|
get endpoint() {
|
|
5585
5579
|
return this.$$.ctx[16];
|
|
5586
5580
|
}
|
|
5587
5581
|
set endpoint(t) {
|
|
5588
|
-
this.$$set({ endpoint: t }),
|
|
5582
|
+
this.$$set({ endpoint: t }), de();
|
|
5589
5583
|
}
|
|
5590
5584
|
get currency() {
|
|
5591
5585
|
return this.$$.ctx[17];
|
|
5592
5586
|
}
|
|
5593
5587
|
set currency(t) {
|
|
5594
|
-
this.$$set({ currency: t }),
|
|
5588
|
+
this.$$set({ currency: t }), de();
|
|
5595
5589
|
}
|
|
5596
5590
|
get customerid() {
|
|
5597
5591
|
return this.$$.ctx[18];
|
|
5598
5592
|
}
|
|
5599
5593
|
set customerid(t) {
|
|
5600
|
-
this.$$set({ customerid: t }),
|
|
5594
|
+
this.$$set({ customerid: t }), de();
|
|
5601
5595
|
}
|
|
5602
5596
|
get selectedpaymentmethodname() {
|
|
5603
5597
|
return this.$$.ctx[19];
|
|
5604
5598
|
}
|
|
5605
5599
|
set selectedpaymentmethodname(t) {
|
|
5606
|
-
this.$$set({ selectedpaymentmethodname: t }),
|
|
5600
|
+
this.$$set({ selectedpaymentmethodname: t }), de();
|
|
5607
5601
|
}
|
|
5608
5602
|
get mbsource() {
|
|
5609
5603
|
return this.$$.ctx[20];
|
|
5610
5604
|
}
|
|
5611
5605
|
set mbsource(t) {
|
|
5612
|
-
this.$$set({ mbsource: t }),
|
|
5606
|
+
this.$$set({ mbsource: t }), de();
|
|
5613
5607
|
}
|
|
5614
5608
|
}
|
|
5615
|
-
|
|
5609
|
+
Co(al, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5616
5610
|
export {
|
|
5617
5611
|
al as default
|
|
5618
5612
|
};
|