@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ye() {
|
|
2
2
|
}
|
|
3
3
|
const zr = (e) => e;
|
|
4
4
|
function ji(e, t) {
|
|
@@ -15,7 +15,7 @@ function Wr(e) {
|
|
|
15
15
|
function ir() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function $e(e) {
|
|
19
19
|
e.forEach(Wr);
|
|
20
20
|
}
|
|
21
21
|
function Qt(e) {
|
|
@@ -35,7 +35,7 @@ function Xr(e, ...t) {
|
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const r of t)
|
|
37
37
|
r(void 0);
|
|
38
|
-
return
|
|
38
|
+
return ye;
|
|
39
39
|
}
|
|
40
40
|
const n = e.subscribe(...t);
|
|
41
41
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
@@ -83,7 +83,7 @@ function Ut(e) {
|
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
85
|
const Zr = typeof window < "u";
|
|
86
|
-
let Wi = Zr ? () => window.performance.now() : () => Date.now(), Nn = Zr ? (e) => requestAnimationFrame(e) :
|
|
86
|
+
let Wi = Zr ? () => window.performance.now() : () => Date.now(), Nn = Zr ? (e) => requestAnimationFrame(e) : ye;
|
|
87
87
|
const Qe = /* @__PURE__ */ new Set();
|
|
88
88
|
function qr(e) {
|
|
89
89
|
Qe.forEach((t) => {
|
|
@@ -101,13 +101,13 @@ function Vi(e) {
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function B(e, t) {
|
|
105
105
|
e.appendChild(t);
|
|
106
106
|
}
|
|
107
107
|
function Xi(e, t, n) {
|
|
108
108
|
const r = In(e);
|
|
109
109
|
if (!r.getElementById(t)) {
|
|
110
|
-
const i =
|
|
110
|
+
const i = te("style");
|
|
111
111
|
i.id = t, i.textContent = n, Jr(r, i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -122,23 +122,23 @@ function In(e) {
|
|
|
122
122
|
) : e.ownerDocument;
|
|
123
123
|
}
|
|
124
124
|
function Yi(e) {
|
|
125
|
-
const t =
|
|
125
|
+
const t = te("style");
|
|
126
126
|
return t.textContent = "/* empty */", Jr(In(e), t), t.sheet;
|
|
127
127
|
}
|
|
128
128
|
function Jr(e, t) {
|
|
129
|
-
return
|
|
129
|
+
return B(
|
|
130
130
|
/** @type {Document} */
|
|
131
131
|
e.head || e,
|
|
132
132
|
t
|
|
133
133
|
), t.sheet;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ue(e, t, n) {
|
|
136
136
|
e.insertBefore(t, n || null);
|
|
137
137
|
}
|
|
138
138
|
function we(e) {
|
|
139
139
|
e.parentNode && e.parentNode.removeChild(e);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function te(e) {
|
|
142
142
|
return document.createElement(e);
|
|
143
143
|
}
|
|
144
144
|
function Te(e) {
|
|
@@ -147,7 +147,7 @@ function Te(e) {
|
|
|
147
147
|
function Ge(e) {
|
|
148
148
|
return document.createTextNode(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Pe() {
|
|
151
151
|
return Ge(" ");
|
|
152
152
|
}
|
|
153
153
|
function Zi() {
|
|
@@ -156,7 +156,7 @@ function Zi() {
|
|
|
156
156
|
function Je(e, t, n, r) {
|
|
157
157
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function w(e, t, n) {
|
|
160
160
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
161
161
|
}
|
|
162
162
|
function qi(e) {
|
|
@@ -180,7 +180,7 @@ function Ji() {
|
|
|
180
180
|
}
|
|
181
181
|
function Qi(e, t) {
|
|
182
182
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
183
|
-
const r =
|
|
183
|
+
const r = te("iframe");
|
|
184
184
|
r.setAttribute(
|
|
185
185
|
"style",
|
|
186
186
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
@@ -196,7 +196,7 @@ function Qi(e, t) {
|
|
|
196
196
|
}
|
|
197
197
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
198
198
|
o = Je(r.contentWindow, "resize", t), t();
|
|
199
|
-
}),
|
|
199
|
+
}), B(e, r), () => {
|
|
200
200
|
(i || o && r.contentWindow) && o(), we(r);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
@@ -228,14 +228,14 @@ function ar(e, t, n, r, i, o, l, a = 0) {
|
|
|
228
228
|
const c = 16.666 / r;
|
|
229
229
|
let u = `{
|
|
230
230
|
`;
|
|
231
|
-
for (let
|
|
232
|
-
const
|
|
233
|
-
u +=
|
|
231
|
+
for (let N = 0; N <= 1; N += c) {
|
|
232
|
+
const U = t + (n - t) * o(N);
|
|
233
|
+
u += N * 100 + `%{${l(U, 1 - U)}}
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
236
|
const f = u + `100% {${l(n, 1 - n)}}
|
|
237
|
-
}`, m = `__svelte_${to(f)}_${a}`, y = In(e), { stylesheet:
|
|
238
|
-
x[m] || (x[m] = !0,
|
|
237
|
+
}`, m = `__svelte_${to(f)}_${a}`, y = In(e), { stylesheet: A, rules: x } = Wt.get(y) || no(y, e);
|
|
238
|
+
x[m] || (x[m] = !0, A.insertRule(`@keyframes ${m} ${f}`, A.cssRules.length));
|
|
239
239
|
const g = e.style.animation || "";
|
|
240
240
|
return e.style.animation = `${g ? `${g}, ` : ""}${m} ${r}ms linear ${i}ms 1 both`, Vt += 1, m;
|
|
241
241
|
}
|
|
@@ -274,14 +274,14 @@ let Ke = [];
|
|
|
274
274
|
const lr = [], ao = /* @__PURE__ */ Promise.resolve();
|
|
275
275
|
let xn = !1;
|
|
276
276
|
function lo() {
|
|
277
|
-
xn || (xn = !0, ao.then(
|
|
277
|
+
xn || (xn = !0, ao.then(de));
|
|
278
278
|
}
|
|
279
279
|
function et(e) {
|
|
280
280
|
Ke.push(e);
|
|
281
281
|
}
|
|
282
282
|
const ln = /* @__PURE__ */ new Set();
|
|
283
283
|
let Ye = 0;
|
|
284
|
-
function
|
|
284
|
+
function de() {
|
|
285
285
|
if (Ye !== 0)
|
|
286
286
|
return;
|
|
287
287
|
const e = yt;
|
|
@@ -308,7 +308,7 @@ function me() {
|
|
|
308
308
|
}
|
|
309
309
|
function uo(e) {
|
|
310
310
|
if (e.fragment !== null) {
|
|
311
|
-
e.update(),
|
|
311
|
+
e.update(), $e(e.before_update);
|
|
312
312
|
const t = e.dirty;
|
|
313
313
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
|
|
314
314
|
}
|
|
@@ -327,26 +327,26 @@ function un(e, t, n) {
|
|
|
327
327
|
e.dispatchEvent(Ki(`${t ? "intro" : "outro"}${n}`));
|
|
328
328
|
}
|
|
329
329
|
const kt = /* @__PURE__ */ new Set();
|
|
330
|
-
let
|
|
330
|
+
let Re;
|
|
331
331
|
function Kr() {
|
|
332
|
-
|
|
332
|
+
Re = {
|
|
333
333
|
r: 0,
|
|
334
334
|
c: [],
|
|
335
|
-
p:
|
|
335
|
+
p: Re
|
|
336
336
|
// parent group
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
function ei() {
|
|
340
|
-
|
|
340
|
+
Re.r || $e(Re.c), Re = Re.p;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Le(e, t) {
|
|
343
343
|
e && e.i && (kt.delete(e), e.i(t));
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function De(e, t, n, r) {
|
|
346
346
|
if (e && e.o) {
|
|
347
347
|
if (kt.has(e))
|
|
348
348
|
return;
|
|
349
|
-
kt.add(e),
|
|
349
|
+
kt.add(e), Re.c.push(() => {
|
|
350
350
|
kt.delete(e), r && (n && e.d(1), r());
|
|
351
351
|
}), e.o(t);
|
|
352
352
|
} else
|
|
@@ -359,47 +359,47 @@ function ur(e, t, n, r) {
|
|
|
359
359
|
u && ro(e, u);
|
|
360
360
|
}
|
|
361
361
|
function y(x, g) {
|
|
362
|
-
const
|
|
362
|
+
const N = (
|
|
363
363
|
/** @type {Program['d']} */
|
|
364
364
|
x.b - l
|
|
365
365
|
);
|
|
366
|
-
return g *= Math.abs(
|
|
366
|
+
return g *= Math.abs(N), {
|
|
367
367
|
a: l,
|
|
368
368
|
b: x.b,
|
|
369
|
-
d:
|
|
369
|
+
d: N,
|
|
370
370
|
duration: g,
|
|
371
371
|
start: x.start,
|
|
372
372
|
end: x.start + g,
|
|
373
373
|
group: x.group
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function A(x) {
|
|
377
377
|
const {
|
|
378
378
|
delay: g = 0,
|
|
379
|
-
duration:
|
|
380
|
-
easing:
|
|
381
|
-
tick:
|
|
382
|
-
css:
|
|
383
|
-
} = o || ho,
|
|
379
|
+
duration: N = 300,
|
|
380
|
+
easing: U = zr,
|
|
381
|
+
tick: V = ye,
|
|
382
|
+
css: R
|
|
383
|
+
} = o || ho, H = {
|
|
384
384
|
start: Wi() + g,
|
|
385
385
|
b: x
|
|
386
386
|
};
|
|
387
|
-
x || (
|
|
388
|
-
e.inert, e.inert = !0)), a || c ? c =
|
|
389
|
-
if (c &&
|
|
387
|
+
x || (H.group = Re, Re.r += 1), "inert" in e && (x ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
388
|
+
e.inert, e.inert = !0)), a || c ? c = H : (R && (m(), u = ar(e, l, x, N, g, U, R)), x && V(0, 1), a = y(H, N), et(() => un(e, x, "start")), Vi((I) => {
|
|
389
|
+
if (c && I > c.start && (a = y(c, N), c = null, un(e, a.b, "start"), R && (m(), u = ar(
|
|
390
390
|
e,
|
|
391
391
|
l,
|
|
392
392
|
a.b,
|
|
393
393
|
a.duration,
|
|
394
394
|
0,
|
|
395
|
-
|
|
395
|
+
U,
|
|
396
396
|
o.css
|
|
397
397
|
))), a) {
|
|
398
|
-
if (
|
|
399
|
-
|
|
400
|
-
else if (
|
|
401
|
-
const
|
|
402
|
-
l = a.a + a.d *
|
|
398
|
+
if (I >= a.end)
|
|
399
|
+
V(l = a.b, 1 - l), un(e, a.b, "end"), c || (a.b ? m() : --a.group.r || $e(a.group.c)), a = null;
|
|
400
|
+
else if (I >= a.start) {
|
|
401
|
+
const W = I - a.start;
|
|
402
|
+
l = a.a + a.d * U(W / a.duration), V(l, 1 - l);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
return !!(a || c);
|
|
@@ -408,8 +408,8 @@ function ur(e, t, n, r) {
|
|
|
408
408
|
return {
|
|
409
409
|
run(x) {
|
|
410
410
|
Qt(o) ? fo().then(() => {
|
|
411
|
-
o = o({ direction: x ? "in" : "out" }),
|
|
412
|
-
}) :
|
|
411
|
+
o = o({ direction: x ? "in" : "out" }), A(x);
|
|
412
|
+
}) : A(x);
|
|
413
413
|
},
|
|
414
414
|
end() {
|
|
415
415
|
m(), a = c = null;
|
|
@@ -420,12 +420,12 @@ function mo(e, t, n) {
|
|
|
420
420
|
const { fragment: r, after_update: i } = e.$$;
|
|
421
421
|
r && r.m(t, n), et(() => {
|
|
422
422
|
const o = e.$$.on_mount.map(Wr).filter(Qt);
|
|
423
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
423
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : $e(o), e.$$.on_mount = [];
|
|
424
424
|
}), i.forEach(et);
|
|
425
425
|
}
|
|
426
426
|
function po(e, t) {
|
|
427
427
|
const n = e.$$;
|
|
428
|
-
n.fragment !== null && (co(n.after_update),
|
|
428
|
+
n.fragment !== null && (co(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
429
429
|
}
|
|
430
430
|
function go(e, t) {
|
|
431
431
|
e.$$.dirty[0] === -1 && (qe.push(e), lo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
@@ -438,7 +438,7 @@ function _o(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
438
438
|
ctx: [],
|
|
439
439
|
// state
|
|
440
440
|
props: o,
|
|
441
|
-
update:
|
|
441
|
+
update: ye,
|
|
442
442
|
not_equal: i,
|
|
443
443
|
bound: ir(),
|
|
444
444
|
// lifecycle
|
|
@@ -456,16 +456,16 @@ function _o(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
456
456
|
};
|
|
457
457
|
l && l(u.root);
|
|
458
458
|
let f = !1;
|
|
459
|
-
if (u.ctx = n ? n(e, t.props || {}, (m, y, ...
|
|
460
|
-
const x =
|
|
459
|
+
if (u.ctx = n ? n(e, t.props || {}, (m, y, ...A) => {
|
|
460
|
+
const x = A.length ? A[0] : y;
|
|
461
461
|
return u.ctx && i(u.ctx[m], u.ctx[m] = x) && (!u.skip_bound && u.bound[m] && u.bound[m](x), f && go(e, m)), y;
|
|
462
|
-
}) : [], u.update(), f = !0,
|
|
462
|
+
}) : [], u.update(), f = !0, $e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
463
463
|
if (t.hydrate) {
|
|
464
464
|
const m = qi(t.target);
|
|
465
465
|
u.fragment && u.fragment.l(m), m.forEach(we);
|
|
466
466
|
} else
|
|
467
467
|
u.fragment && u.fragment.c();
|
|
468
|
-
t.intro &&
|
|
468
|
+
t.intro && Le(e.$$.fragment), mo(e, t.target, t.anchor), de();
|
|
469
469
|
}
|
|
470
470
|
bt(c);
|
|
471
471
|
}
|
|
@@ -512,14 +512,14 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
512
512
|
let o;
|
|
513
513
|
return {
|
|
514
514
|
c: function() {
|
|
515
|
-
o =
|
|
515
|
+
o = te("slot"), i !== "default" && w(o, "name", i);
|
|
516
516
|
},
|
|
517
517
|
/**
|
|
518
518
|
* @param {HTMLElement} target
|
|
519
519
|
* @param {HTMLElement} [anchor]
|
|
520
520
|
*/
|
|
521
521
|
m: function(c, u) {
|
|
522
|
-
|
|
522
|
+
Ue(c, o, u);
|
|
523
523
|
},
|
|
524
524
|
d: function(c) {
|
|
525
525
|
c && we(o);
|
|
@@ -534,7 +534,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
534
534
|
i in n && (t[i] = [e(i)]);
|
|
535
535
|
for (const i of this.attributes) {
|
|
536
536
|
const o = this.$$g_p(i.name);
|
|
537
|
-
o in this.$$d || (this.$$d[o] =
|
|
537
|
+
o in this.$$d || (this.$$d[o] = Ft(o, i.value, this.$$p_d, "toProp"));
|
|
538
538
|
}
|
|
539
539
|
for (const i in this.$$p_d)
|
|
540
540
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -552,7 +552,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
552
552
|
this.$$r = !0;
|
|
553
553
|
for (const i in this.$$p_d)
|
|
554
554
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
555
|
-
const o =
|
|
555
|
+
const o = Ft(
|
|
556
556
|
i,
|
|
557
557
|
this.$$d[i],
|
|
558
558
|
this.$$p_d,
|
|
@@ -574,7 +574,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
574
574
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
575
575
|
// and setting attributes through setAttribute etc, this is helpful
|
|
576
576
|
attributeChangedCallback(e, t, n) {
|
|
577
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
577
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ft(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
578
578
|
}
|
|
579
579
|
disconnectedCallback() {
|
|
580
580
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -587,7 +587,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
587
587
|
) || e;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
function
|
|
590
|
+
function Ft(e, t, n, r) {
|
|
591
591
|
const i = n[e]?.type;
|
|
592
592
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
593
593
|
return t;
|
|
@@ -633,7 +633,7 @@ function bo(e, t, n, r, i, o) {
|
|
|
633
633
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
634
634
|
},
|
|
635
635
|
set(c) {
|
|
636
|
-
c =
|
|
636
|
+
c = Ft(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
|
|
637
637
|
}
|
|
638
638
|
});
|
|
639
639
|
}), r.forEach((a) => {
|
|
@@ -664,7 +664,7 @@ class Eo {
|
|
|
664
664
|
$$set = void 0;
|
|
665
665
|
/** @returns {void} */
|
|
666
666
|
$destroy() {
|
|
667
|
-
po(this, 1), this.$destroy =
|
|
667
|
+
po(this, 1), this.$destroy = ye;
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
670
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -674,7 +674,7 @@ class Eo {
|
|
|
674
674
|
*/
|
|
675
675
|
$on(t, n) {
|
|
676
676
|
if (!Qt(n))
|
|
677
|
-
return
|
|
677
|
+
return ye;
|
|
678
678
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
679
679
|
return r.push(n), () => {
|
|
680
680
|
const i = r.indexOf(n);
|
|
@@ -706,7 +706,7 @@ function xo(e, t) {
|
|
|
706
706
|
subscribe: Tt(e, t).subscribe
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function Tt(e, t =
|
|
709
|
+
function Tt(e, t = ye) {
|
|
710
710
|
let n;
|
|
711
711
|
const r = /* @__PURE__ */ new Set();
|
|
712
712
|
function i(a) {
|
|
@@ -724,9 +724,9 @@ function Tt(e, t = Ee) {
|
|
|
724
724
|
function o(a) {
|
|
725
725
|
i(a(e));
|
|
726
726
|
}
|
|
727
|
-
function l(a, c =
|
|
727
|
+
function l(a, c = ye) {
|
|
728
728
|
const u = [a, c];
|
|
729
|
-
return r.add(u), r.size === 1 && (n = t(i, o) ||
|
|
729
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || ye), a(e), () => {
|
|
730
730
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
731
731
|
};
|
|
732
732
|
}
|
|
@@ -740,18 +740,18 @@ function ot(e, t, n) {
|
|
|
740
740
|
return xo(n, (l, a) => {
|
|
741
741
|
let c = !1;
|
|
742
742
|
const u = [];
|
|
743
|
-
let f = 0, m =
|
|
743
|
+
let f = 0, m = ye;
|
|
744
744
|
const y = () => {
|
|
745
745
|
if (f)
|
|
746
746
|
return;
|
|
747
747
|
m();
|
|
748
748
|
const x = t(r ? u[0] : u, l, a);
|
|
749
|
-
o ? l(x) : m = Qt(x) ? x :
|
|
750
|
-
},
|
|
749
|
+
o ? l(x) : m = Qt(x) ? x : ye;
|
|
750
|
+
}, A = i.map(
|
|
751
751
|
(x, g) => Xr(
|
|
752
752
|
x,
|
|
753
|
-
(
|
|
754
|
-
u[g] =
|
|
753
|
+
(N) => {
|
|
754
|
+
u[g] = N, f &= ~(1 << g), c && y();
|
|
755
755
|
},
|
|
756
756
|
() => {
|
|
757
757
|
f |= 1 << g;
|
|
@@ -759,7 +759,7 @@ function ot(e, t, n) {
|
|
|
759
759
|
)
|
|
760
760
|
);
|
|
761
761
|
return c = !0, y(), function() {
|
|
762
|
-
|
|
762
|
+
$e(A), m(), c = !1;
|
|
763
763
|
};
|
|
764
764
|
});
|
|
765
765
|
}
|
|
@@ -775,19 +775,19 @@ function To(e) {
|
|
|
775
775
|
}
|
|
776
776
|
function So(e) {
|
|
777
777
|
var t = Object.prototype.toString.call(e);
|
|
778
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
778
|
+
return t === "[object RegExp]" || t === "[object Date]" || Oo(e);
|
|
779
779
|
}
|
|
780
780
|
var wo = typeof Symbol == "function" && Symbol.for, Ao = wo ? Symbol.for("react.element") : 60103;
|
|
781
|
-
function
|
|
781
|
+
function Oo(e) {
|
|
782
782
|
return e.$$typeof === Ao;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Mo(e) {
|
|
785
785
|
return Array.isArray(e) ? [] : {};
|
|
786
786
|
}
|
|
787
787
|
function xt(e, t) {
|
|
788
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? tt(
|
|
788
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? tt(Mo(e), e, t) : e;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Co(e, t, n) {
|
|
791
791
|
return e.concat(t).map(function(r) {
|
|
792
792
|
return xt(r, n);
|
|
793
793
|
});
|
|
@@ -825,7 +825,7 @@ function Io(e, t, n) {
|
|
|
825
825
|
}), r;
|
|
826
826
|
}
|
|
827
827
|
function tt(e, t, n) {
|
|
828
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
828
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Co, n.isMergeableObject = n.isMergeableObject || vo, n.cloneUnlessOtherwiseSpecified = xt;
|
|
829
829
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
830
830
|
return o ? r ? n.arrayMerge(e, t, n) : Io(e, t, n) : xt(t, n);
|
|
831
831
|
}
|
|
@@ -855,15 +855,15 @@ function Kt(e, t) {
|
|
|
855
855
|
}
|
|
856
856
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
857
857
|
}
|
|
858
|
-
var
|
|
859
|
-
return
|
|
858
|
+
var He = function() {
|
|
859
|
+
return He = Object.assign || function(t) {
|
|
860
860
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
861
861
|
n = arguments[r];
|
|
862
862
|
for (var o in n)
|
|
863
863
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
864
864
|
}
|
|
865
865
|
return t;
|
|
866
|
-
},
|
|
866
|
+
}, He.apply(this, arguments);
|
|
867
867
|
};
|
|
868
868
|
function Bo(e, t) {
|
|
869
869
|
var n = {};
|
|
@@ -881,7 +881,7 @@ function cn(e, t, n) {
|
|
|
881
881
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
882
882
|
}
|
|
883
883
|
function fn(e, t) {
|
|
884
|
-
var n = t && t.cache ? t.cache : zo, r = t && t.serializer ? t.serializer :
|
|
884
|
+
var n = t && t.cache ? t.cache : zo, r = t && t.serializer ? t.serializer : Go, i = t && t.strategy ? t.strategy : ko;
|
|
885
885
|
return i(e, {
|
|
886
886
|
cache: n,
|
|
887
887
|
serializer: r
|
|
@@ -905,10 +905,10 @@ function ko(e, t) {
|
|
|
905
905
|
var n = e.length === 1 ? Uo : ii;
|
|
906
906
|
return oi(e, this, n, t.cache.create(), t.serializer);
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function Fo(e, t) {
|
|
909
909
|
return oi(e, this, ii, t.cache.create(), t.serializer);
|
|
910
910
|
}
|
|
911
|
-
var
|
|
911
|
+
var Go = function() {
|
|
912
912
|
return JSON.stringify(arguments);
|
|
913
913
|
}, jo = (
|
|
914
914
|
/** @class */
|
|
@@ -927,7 +927,7 @@ var Fo = function() {
|
|
|
927
927
|
return new jo();
|
|
928
928
|
}
|
|
929
929
|
}, hn = {
|
|
930
|
-
variadic:
|
|
930
|
+
variadic: Fo
|
|
931
931
|
}, Yt = function() {
|
|
932
932
|
return Yt = Object.assign || function(t) {
|
|
933
933
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
@@ -938,10 +938,10 @@ var Fo = function() {
|
|
|
938
938
|
return t;
|
|
939
939
|
}, Yt.apply(this, arguments);
|
|
940
940
|
};
|
|
941
|
-
var
|
|
941
|
+
var k;
|
|
942
942
|
(function(e) {
|
|
943
943
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
944
|
-
})(
|
|
944
|
+
})(k || (k = {}));
|
|
945
945
|
var Q;
|
|
946
946
|
(function(e) {
|
|
947
947
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -1075,15 +1075,15 @@ function Yo(e) {
|
|
|
1075
1075
|
return "";
|
|
1076
1076
|
}), t;
|
|
1077
1077
|
}
|
|
1078
|
-
var
|
|
1079
|
-
return
|
|
1078
|
+
var ie = function() {
|
|
1079
|
+
return ie = Object.assign || function(t) {
|
|
1080
1080
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1081
1081
|
n = arguments[r];
|
|
1082
1082
|
for (var o in n)
|
|
1083
1083
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1084
1084
|
}
|
|
1085
1085
|
return t;
|
|
1086
|
-
},
|
|
1086
|
+
}, ie.apply(this, arguments);
|
|
1087
1087
|
};
|
|
1088
1088
|
var Zo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1089
1089
|
function qo(e) {
|
|
@@ -1207,13 +1207,13 @@ function es(e) {
|
|
|
1207
1207
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1208
1208
|
continue;
|
|
1209
1209
|
case "scientific":
|
|
1210
|
-
t =
|
|
1211
|
-
return
|
|
1210
|
+
t = ie(ie(ie({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1211
|
+
return ie(ie({}, c), dr(u));
|
|
1212
1212
|
}, {}));
|
|
1213
1213
|
continue;
|
|
1214
1214
|
case "engineering":
|
|
1215
|
-
t =
|
|
1216
|
-
return
|
|
1215
|
+
t = ie(ie(ie({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1216
|
+
return ie(ie({}, c), dr(u));
|
|
1217
1217
|
}, {}));
|
|
1218
1218
|
continue;
|
|
1219
1219
|
case "notation-simple":
|
|
@@ -1258,13 +1258,13 @@ function es(e) {
|
|
|
1258
1258
|
case "integer-width":
|
|
1259
1259
|
if (i.options.length > 1)
|
|
1260
1260
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1261
|
-
i.options[0].replace(Qo, function(c, u, f, m, y,
|
|
1261
|
+
i.options[0].replace(Qo, function(c, u, f, m, y, A) {
|
|
1262
1262
|
if (u)
|
|
1263
1263
|
t.minimumIntegerDigits = f.length;
|
|
1264
1264
|
else {
|
|
1265
1265
|
if (m && y)
|
|
1266
1266
|
throw new Error("We currently do not support maximum integer digits");
|
|
1267
|
-
if (
|
|
1267
|
+
if (A)
|
|
1268
1268
|
throw new Error("We currently do not support exact integer digits");
|
|
1269
1269
|
}
|
|
1270
1270
|
return "";
|
|
@@ -1278,21 +1278,21 @@ function es(e) {
|
|
|
1278
1278
|
if (mr.test(i.stem)) {
|
|
1279
1279
|
if (i.options.length > 1)
|
|
1280
1280
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1281
|
-
i.stem.replace(mr, function(c, u, f, m, y,
|
|
1282
|
-
return f === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : y &&
|
|
1281
|
+
i.stem.replace(mr, function(c, u, f, m, y, A) {
|
|
1282
|
+
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), "";
|
|
1283
1283
|
});
|
|
1284
1284
|
var o = i.options[0];
|
|
1285
|
-
o === "w" ? t =
|
|
1285
|
+
o === "w" ? t = ie(ie({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = ie(ie({}, t), pr(o)));
|
|
1286
1286
|
continue;
|
|
1287
1287
|
}
|
|
1288
1288
|
if (pi.test(i.stem)) {
|
|
1289
|
-
t =
|
|
1289
|
+
t = ie(ie({}, t), pr(i.stem));
|
|
1290
1290
|
continue;
|
|
1291
1291
|
}
|
|
1292
1292
|
var l = gi(i.stem);
|
|
1293
|
-
l && (t =
|
|
1293
|
+
l && (t = ie(ie({}, t), l));
|
|
1294
1294
|
var a = Ko(i.stem);
|
|
1295
|
-
a && (t =
|
|
1295
|
+
a && (t = ie(ie({}, t), a));
|
|
1296
1296
|
}
|
|
1297
1297
|
return t;
|
|
1298
1298
|
}
|
|
@@ -2883,8 +2883,8 @@ var gs = (
|
|
|
2883
2883
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2884
2884
|
if (r)
|
|
2885
2885
|
break;
|
|
2886
|
-
return this.error(
|
|
2887
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2886
|
+
return this.error(k.UNMATCHED_CLOSING_TAG, F(this.clonePosition(), this.clonePosition()));
|
|
2887
|
+
} else if (o === 60 && !this.ignoreTag && On(this.peek() || 0)) {
|
|
2888
2888
|
var l = this.parseTag(t, n);
|
|
2889
2889
|
if (l.err)
|
|
2890
2890
|
return l;
|
|
@@ -2917,10 +2917,10 @@ var gs = (
|
|
|
2917
2917
|
return o;
|
|
2918
2918
|
var l = o.val, a = this.clonePosition();
|
|
2919
2919
|
if (this.bumpIf("</")) {
|
|
2920
|
-
if (this.isEOF() || !
|
|
2921
|
-
return this.error(
|
|
2920
|
+
if (this.isEOF() || !On(this.char()))
|
|
2921
|
+
return this.error(k.INVALID_TAG, F(a, this.clonePosition()));
|
|
2922
2922
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2923
|
-
return i !== u ? this.error(
|
|
2923
|
+
return i !== u ? this.error(k.UNMATCHED_CLOSING_TAG, F(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2924
2924
|
val: {
|
|
2925
2925
|
type: Q.tag,
|
|
2926
2926
|
value: i,
|
|
@@ -2928,11 +2928,11 @@ var gs = (
|
|
|
2928
2928
|
location: F(r, this.clonePosition())
|
|
2929
2929
|
},
|
|
2930
2930
|
err: null
|
|
2931
|
-
} : this.error(
|
|
2931
|
+
} : this.error(k.INVALID_TAG, F(a, this.clonePosition())));
|
|
2932
2932
|
} else
|
|
2933
|
-
return this.error(
|
|
2933
|
+
return this.error(k.UNCLOSED_TAG, F(r, this.clonePosition()));
|
|
2934
2934
|
} else
|
|
2935
|
-
return this.error(
|
|
2935
|
+
return this.error(k.INVALID_TAG, F(r, this.clonePosition()));
|
|
2936
2936
|
}, e.prototype.parseTagName = function() {
|
|
2937
2937
|
var t = this.offset();
|
|
2938
2938
|
for (this.bump(); !this.isEOF() && bs(this.char()); )
|
|
@@ -3007,14 +3007,14 @@ var gs = (
|
|
|
3007
3007
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3008
3008
|
var r = this.clonePosition();
|
|
3009
3009
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3010
|
-
return this.error(
|
|
3010
|
+
return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE, F(r, this.clonePosition()));
|
|
3011
3011
|
if (this.char() === 125)
|
|
3012
|
-
return this.bump(), this.error(
|
|
3012
|
+
return this.bump(), this.error(k.EMPTY_ARGUMENT, F(r, this.clonePosition()));
|
|
3013
3013
|
var i = this.parseIdentifierIfPossible().value;
|
|
3014
3014
|
if (!i)
|
|
3015
|
-
return this.error(
|
|
3015
|
+
return this.error(k.MALFORMED_ARGUMENT, F(r, this.clonePosition()));
|
|
3016
3016
|
if (this.bumpSpace(), this.isEOF())
|
|
3017
|
-
return this.error(
|
|
3017
|
+
return this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE, F(r, this.clonePosition()));
|
|
3018
3018
|
switch (this.char()) {
|
|
3019
3019
|
case 125:
|
|
3020
3020
|
return this.bump(), {
|
|
@@ -3027,9 +3027,9 @@ var gs = (
|
|
|
3027
3027
|
err: null
|
|
3028
3028
|
};
|
|
3029
3029
|
case 44:
|
|
3030
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3030
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE, F(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
3031
3031
|
default:
|
|
3032
|
-
return this.error(
|
|
3032
|
+
return this.error(k.MALFORMED_ARGUMENT, F(r, this.clonePosition()));
|
|
3033
3033
|
}
|
|
3034
3034
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3035
3035
|
var t = this.clonePosition(), n = this.offset(), r = An(this.message, n), i = n + r.length;
|
|
@@ -3040,7 +3040,7 @@ var gs = (
|
|
|
3040
3040
|
var o, l = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
3041
3041
|
switch (a) {
|
|
3042
3042
|
case "":
|
|
3043
|
-
return this.error(
|
|
3043
|
+
return this.error(k.EXPECT_ARGUMENT_TYPE, F(l, c));
|
|
3044
3044
|
case "number":
|
|
3045
3045
|
case "date":
|
|
3046
3046
|
case "time": {
|
|
@@ -3053,35 +3053,35 @@ var gs = (
|
|
|
3053
3053
|
return m;
|
|
3054
3054
|
var y = ds(m.val);
|
|
3055
3055
|
if (y.length === 0)
|
|
3056
|
-
return this.error(
|
|
3057
|
-
var
|
|
3058
|
-
u = { style: y, styleLocation:
|
|
3056
|
+
return this.error(k.EXPECT_ARGUMENT_STYLE, F(this.clonePosition(), this.clonePosition()));
|
|
3057
|
+
var A = F(f, this.clonePosition());
|
|
3058
|
+
u = { style: y, styleLocation: A };
|
|
3059
3059
|
}
|
|
3060
3060
|
var x = this.tryParseArgumentClose(i);
|
|
3061
3061
|
if (x.err)
|
|
3062
3062
|
return x;
|
|
3063
3063
|
var g = F(i, this.clonePosition());
|
|
3064
3064
|
if (u && gr(u?.style, "::", 0)) {
|
|
3065
|
-
var
|
|
3065
|
+
var N = ps(u.style.slice(2));
|
|
3066
3066
|
if (a === "number") {
|
|
3067
|
-
var m = this.parseNumberSkeletonFromString(
|
|
3067
|
+
var m = this.parseNumberSkeletonFromString(N, u.styleLocation);
|
|
3068
3068
|
return m.err ? m : {
|
|
3069
3069
|
val: { type: Q.number, value: r, location: g, style: m.val },
|
|
3070
3070
|
err: null
|
|
3071
3071
|
};
|
|
3072
3072
|
} else {
|
|
3073
|
-
if (
|
|
3074
|
-
return this.error(
|
|
3075
|
-
var
|
|
3076
|
-
this.locale && (
|
|
3073
|
+
if (N.length === 0)
|
|
3074
|
+
return this.error(k.EXPECT_DATE_TIME_SKELETON, g);
|
|
3075
|
+
var U = N;
|
|
3076
|
+
this.locale && (U = ts(N, this.locale));
|
|
3077
3077
|
var y = {
|
|
3078
3078
|
type: nt.dateTime,
|
|
3079
|
-
pattern:
|
|
3079
|
+
pattern: U,
|
|
3080
3080
|
location: u.styleLocation,
|
|
3081
|
-
parsedOptions: this.shouldParseSkeletons ? Yo(
|
|
3082
|
-
},
|
|
3081
|
+
parsedOptions: this.shouldParseSkeletons ? Yo(U) : {}
|
|
3082
|
+
}, V = a === "date" ? Q.date : Q.time;
|
|
3083
3083
|
return {
|
|
3084
|
-
val: { type:
|
|
3084
|
+
val: { type: V, value: r, location: g, style: y },
|
|
3085
3085
|
err: null
|
|
3086
3086
|
};
|
|
3087
3087
|
}
|
|
@@ -3099,52 +3099,52 @@ var gs = (
|
|
|
3099
3099
|
case "plural":
|
|
3100
3100
|
case "selectordinal":
|
|
3101
3101
|
case "select": {
|
|
3102
|
-
var
|
|
3102
|
+
var R = this.clonePosition();
|
|
3103
3103
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3104
|
-
return this.error(
|
|
3104
|
+
return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS, F(R, Yt({}, R)));
|
|
3105
3105
|
this.bumpSpace();
|
|
3106
|
-
var
|
|
3107
|
-
if (a !== "select" &&
|
|
3106
|
+
var H = this.parseIdentifierIfPossible(), I = 0;
|
|
3107
|
+
if (a !== "select" && H.value === "offset") {
|
|
3108
3108
|
if (!this.bumpIf(":"))
|
|
3109
|
-
return this.error(
|
|
3109
|
+
return this.error(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, F(this.clonePosition(), this.clonePosition()));
|
|
3110
3110
|
this.bumpSpace();
|
|
3111
|
-
var m = this.tryParseDecimalInteger(
|
|
3111
|
+
var m = this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, k.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3112
3112
|
if (m.err)
|
|
3113
3113
|
return m;
|
|
3114
|
-
this.bumpSpace(),
|
|
3114
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = m.val;
|
|
3115
3115
|
}
|
|
3116
|
-
var
|
|
3117
|
-
if (
|
|
3118
|
-
return
|
|
3116
|
+
var W = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3117
|
+
if (W.err)
|
|
3118
|
+
return W;
|
|
3119
3119
|
var x = this.tryParseArgumentClose(i);
|
|
3120
3120
|
if (x.err)
|
|
3121
3121
|
return x;
|
|
3122
|
-
var
|
|
3122
|
+
var oe = F(i, this.clonePosition());
|
|
3123
3123
|
return a === "select" ? {
|
|
3124
3124
|
val: {
|
|
3125
3125
|
type: Q.select,
|
|
3126
3126
|
value: r,
|
|
3127
|
-
options: _r(
|
|
3128
|
-
location:
|
|
3127
|
+
options: _r(W.val),
|
|
3128
|
+
location: oe
|
|
3129
3129
|
},
|
|
3130
3130
|
err: null
|
|
3131
3131
|
} : {
|
|
3132
3132
|
val: {
|
|
3133
3133
|
type: Q.plural,
|
|
3134
3134
|
value: r,
|
|
3135
|
-
options: _r(
|
|
3136
|
-
offset:
|
|
3135
|
+
options: _r(W.val),
|
|
3136
|
+
offset: I,
|
|
3137
3137
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3138
|
-
location:
|
|
3138
|
+
location: oe
|
|
3139
3139
|
},
|
|
3140
3140
|
err: null
|
|
3141
3141
|
};
|
|
3142
3142
|
}
|
|
3143
3143
|
default:
|
|
3144
|
-
return this.error(
|
|
3144
|
+
return this.error(k.INVALID_ARGUMENT_TYPE, F(l, c));
|
|
3145
3145
|
}
|
|
3146
3146
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3147
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3147
|
+
return this.isEOF() || this.char() !== 125 ? this.error(k.EXPECT_ARGUMENT_CLOSING_BRACE, F(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3148
3148
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3149
3149
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3150
3150
|
var r = this.char();
|
|
@@ -3153,7 +3153,7 @@ var gs = (
|
|
|
3153
3153
|
this.bump();
|
|
3154
3154
|
var i = this.clonePosition();
|
|
3155
3155
|
if (!this.bumpUntil("'"))
|
|
3156
|
-
return this.error(
|
|
3156
|
+
return this.error(k.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, F(i, this.clonePosition()));
|
|
3157
3157
|
this.bump();
|
|
3158
3158
|
break;
|
|
3159
3159
|
}
|
|
@@ -3185,7 +3185,7 @@ var gs = (
|
|
|
3185
3185
|
try {
|
|
3186
3186
|
r = qo(t);
|
|
3187
3187
|
} catch {
|
|
3188
|
-
return this.error(
|
|
3188
|
+
return this.error(k.INVALID_NUMBER_SKELETON, n);
|
|
3189
3189
|
}
|
|
3190
3190
|
return {
|
|
3191
3191
|
val: {
|
|
@@ -3201,7 +3201,7 @@ var gs = (
|
|
|
3201
3201
|
if (u.length === 0) {
|
|
3202
3202
|
var m = this.clonePosition();
|
|
3203
3203
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3204
|
-
var y = this.tryParseDecimalInteger(
|
|
3204
|
+
var y = this.tryParseDecimalInteger(k.EXPECT_PLURAL_ARGUMENT_SELECTOR, k.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3205
3205
|
if (y.err)
|
|
3206
3206
|
return y;
|
|
3207
3207
|
f = F(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
|
@@ -3209,26 +3209,26 @@ var gs = (
|
|
|
3209
3209
|
break;
|
|
3210
3210
|
}
|
|
3211
3211
|
if (c.has(u))
|
|
3212
|
-
return this.error(n === "select" ?
|
|
3212
|
+
return this.error(n === "select" ? k.DUPLICATE_SELECT_ARGUMENT_SELECTOR : k.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3213
3213
|
u === "other" && (l = !0), this.bumpSpace();
|
|
3214
|
-
var
|
|
3214
|
+
var A = this.clonePosition();
|
|
3215
3215
|
if (!this.bumpIf("{"))
|
|
3216
|
-
return this.error(n === "select" ?
|
|
3216
|
+
return this.error(n === "select" ? k.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : k.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, F(this.clonePosition(), this.clonePosition()));
|
|
3217
3217
|
var x = this.parseMessage(t + 1, n, r);
|
|
3218
3218
|
if (x.err)
|
|
3219
3219
|
return x;
|
|
3220
|
-
var g = this.tryParseArgumentClose(
|
|
3220
|
+
var g = this.tryParseArgumentClose(A);
|
|
3221
3221
|
if (g.err)
|
|
3222
3222
|
return g;
|
|
3223
3223
|
a.push([
|
|
3224
3224
|
u,
|
|
3225
3225
|
{
|
|
3226
3226
|
value: x.val,
|
|
3227
|
-
location: F(
|
|
3227
|
+
location: F(A, this.clonePosition())
|
|
3228
3228
|
}
|
|
3229
3229
|
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
|
|
3230
3230
|
}
|
|
3231
|
-
return a.length === 0 ? this.error(n === "select" ?
|
|
3231
|
+
return a.length === 0 ? this.error(n === "select" ? k.EXPECT_SELECT_ARGUMENT_SELECTOR : k.EXPECT_PLURAL_ARGUMENT_SELECTOR, F(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(k.MISSING_OTHER_CLAUSE, F(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3232
3232
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3233
3233
|
var r = 1, i = this.clonePosition();
|
|
3234
3234
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3306,11 +3306,11 @@ var gs = (
|
|
|
3306
3306
|
}, e;
|
|
3307
3307
|
}()
|
|
3308
3308
|
);
|
|
3309
|
-
function
|
|
3309
|
+
function On(e) {
|
|
3310
3310
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3311
3311
|
}
|
|
3312
3312
|
function _s(e) {
|
|
3313
|
-
return
|
|
3313
|
+
return On(e) || e === 47;
|
|
3314
3314
|
}
|
|
3315
3315
|
function bs(e) {
|
|
3316
3316
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
@@ -3321,23 +3321,23 @@ function Ei(e) {
|
|
|
3321
3321
|
function Es(e) {
|
|
3322
3322
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3323
3323
|
}
|
|
3324
|
-
function
|
|
3324
|
+
function Mn(e) {
|
|
3325
3325
|
e.forEach(function(t) {
|
|
3326
3326
|
if (delete t.location, ui(t) || ci(t))
|
|
3327
3327
|
for (var n in t.options)
|
|
3328
|
-
delete t.options[n].location,
|
|
3328
|
+
delete t.options[n].location, Mn(t.options[n].value);
|
|
3329
3329
|
else
|
|
3330
|
-
si(t) && hi(t.style) || (ai(t) || li(t)) && Tn(t.style) ? delete t.style.location : fi(t) &&
|
|
3330
|
+
si(t) && hi(t.style) || (ai(t) || li(t)) && Tn(t.style) ? delete t.style.location : fi(t) && Mn(t.children);
|
|
3331
3331
|
});
|
|
3332
3332
|
}
|
|
3333
3333
|
function ys(e, t) {
|
|
3334
3334
|
t === void 0 && (t = {}), t = Yt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3335
3335
|
var n = new gs(e, t).parse();
|
|
3336
3336
|
if (n.err) {
|
|
3337
|
-
var r = SyntaxError(
|
|
3337
|
+
var r = SyntaxError(k[n.err.kind]);
|
|
3338
3338
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3339
3339
|
}
|
|
3340
|
-
return t?.captureLocation ||
|
|
3340
|
+
return t?.captureLocation || Mn(n.val), n.val;
|
|
3341
3341
|
}
|
|
3342
3342
|
var rt;
|
|
3343
3343
|
(function(e) {
|
|
@@ -3382,24 +3382,24 @@ var en = (
|
|
|
3382
3382
|
}
|
|
3383
3383
|
return t;
|
|
3384
3384
|
}(en)
|
|
3385
|
-
),
|
|
3385
|
+
), ge;
|
|
3386
3386
|
(function(e) {
|
|
3387
3387
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3388
|
-
})(
|
|
3388
|
+
})(ge || (ge = {}));
|
|
3389
3389
|
function Ts(e) {
|
|
3390
3390
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3391
3391
|
var r = t[t.length - 1];
|
|
3392
|
-
return !r || r.type !==
|
|
3392
|
+
return !r || r.type !== ge.literal || n.type !== ge.literal ? t.push(n) : r.value += n.value, t;
|
|
3393
3393
|
}, []);
|
|
3394
3394
|
}
|
|
3395
3395
|
function Ss(e) {
|
|
3396
3396
|
return typeof e == "function";
|
|
3397
3397
|
}
|
|
3398
|
-
function
|
|
3398
|
+
function Gt(e, t, n, r, i, o, l) {
|
|
3399
3399
|
if (e.length === 1 && hr(e[0]))
|
|
3400
3400
|
return [
|
|
3401
3401
|
{
|
|
3402
|
-
type:
|
|
3402
|
+
type: ge.literal,
|
|
3403
3403
|
value: e[0].value
|
|
3404
3404
|
}
|
|
3405
3405
|
];
|
|
@@ -3407,14 +3407,14 @@ function Ft(e, t, n, r, i, o, l) {
|
|
|
3407
3407
|
var f = u[c];
|
|
3408
3408
|
if (hr(f)) {
|
|
3409
3409
|
a.push({
|
|
3410
|
-
type:
|
|
3410
|
+
type: ge.literal,
|
|
3411
3411
|
value: f.value
|
|
3412
3412
|
});
|
|
3413
3413
|
continue;
|
|
3414
3414
|
}
|
|
3415
3415
|
if (Vo(f)) {
|
|
3416
3416
|
typeof o == "number" && a.push({
|
|
3417
|
-
type:
|
|
3417
|
+
type: ge.literal,
|
|
3418
3418
|
value: n.getNumberFormat(t).format(o)
|
|
3419
3419
|
});
|
|
3420
3420
|
continue;
|
|
@@ -3425,83 +3425,83 @@ function Ft(e, t, n, r, i, o, l) {
|
|
|
3425
3425
|
var y = i[m];
|
|
3426
3426
|
if (Wo(f)) {
|
|
3427
3427
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3428
|
-
type: typeof y == "string" ?
|
|
3428
|
+
type: typeof y == "string" ? ge.literal : ge.object,
|
|
3429
3429
|
value: y
|
|
3430
3430
|
});
|
|
3431
3431
|
continue;
|
|
3432
3432
|
}
|
|
3433
3433
|
if (ai(f)) {
|
|
3434
|
-
var
|
|
3434
|
+
var A = typeof f.style == "string" ? r.date[f.style] : Tn(f.style) ? f.style.parsedOptions : void 0;
|
|
3435
3435
|
a.push({
|
|
3436
|
-
type:
|
|
3437
|
-
value: n.getDateTimeFormat(t,
|
|
3436
|
+
type: ge.literal,
|
|
3437
|
+
value: n.getDateTimeFormat(t, A).format(y)
|
|
3438
3438
|
});
|
|
3439
3439
|
continue;
|
|
3440
3440
|
}
|
|
3441
3441
|
if (li(f)) {
|
|
3442
|
-
var
|
|
3442
|
+
var A = typeof f.style == "string" ? r.time[f.style] : Tn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3443
3443
|
a.push({
|
|
3444
|
-
type:
|
|
3445
|
-
value: n.getDateTimeFormat(t,
|
|
3444
|
+
type: ge.literal,
|
|
3445
|
+
value: n.getDateTimeFormat(t, A).format(y)
|
|
3446
3446
|
});
|
|
3447
3447
|
continue;
|
|
3448
3448
|
}
|
|
3449
3449
|
if (si(f)) {
|
|
3450
|
-
var
|
|
3451
|
-
|
|
3452
|
-
type:
|
|
3453
|
-
value: n.getNumberFormat(t,
|
|
3450
|
+
var A = typeof f.style == "string" ? r.number[f.style] : hi(f.style) ? f.style.parsedOptions : void 0;
|
|
3451
|
+
A && A.scale && (y = y * (A.scale || 1)), a.push({
|
|
3452
|
+
type: ge.literal,
|
|
3453
|
+
value: n.getNumberFormat(t, A).format(y)
|
|
3454
3454
|
});
|
|
3455
3455
|
continue;
|
|
3456
3456
|
}
|
|
3457
3457
|
if (fi(f)) {
|
|
3458
|
-
var x = f.children, g = f.value,
|
|
3459
|
-
if (!Ss(
|
|
3458
|
+
var x = f.children, g = f.value, N = i[g];
|
|
3459
|
+
if (!Ss(N))
|
|
3460
3460
|
throw new xs(g, "function", l);
|
|
3461
|
-
var
|
|
3462
|
-
return
|
|
3461
|
+
var U = Gt(x, t, n, r, i, o), V = N(U.map(function(I) {
|
|
3462
|
+
return I.value;
|
|
3463
3463
|
}));
|
|
3464
|
-
Array.isArray(
|
|
3464
|
+
Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(I) {
|
|
3465
3465
|
return {
|
|
3466
|
-
type: typeof
|
|
3467
|
-
value:
|
|
3466
|
+
type: typeof I == "string" ? ge.literal : ge.object,
|
|
3467
|
+
value: I
|
|
3468
3468
|
};
|
|
3469
3469
|
}));
|
|
3470
3470
|
}
|
|
3471
3471
|
if (ui(f)) {
|
|
3472
|
-
var
|
|
3473
|
-
if (!
|
|
3472
|
+
var R = f.options[y] || f.options.other;
|
|
3473
|
+
if (!R)
|
|
3474
3474
|
throw new Er(f.value, y, Object.keys(f.options), l);
|
|
3475
|
-
a.push.apply(a,
|
|
3475
|
+
a.push.apply(a, Gt(R.value, t, n, r, i));
|
|
3476
3476
|
continue;
|
|
3477
3477
|
}
|
|
3478
3478
|
if (ci(f)) {
|
|
3479
|
-
var
|
|
3480
|
-
if (!
|
|
3479
|
+
var R = f.options["=".concat(y)];
|
|
3480
|
+
if (!R) {
|
|
3481
3481
|
if (!Intl.PluralRules)
|
|
3482
3482
|
throw new en(`Intl.PluralRules is not available in this environment.
|
|
3483
3483
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3484
3484
|
`, rt.MISSING_INTL_API, l);
|
|
3485
|
-
var
|
|
3486
|
-
|
|
3485
|
+
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3486
|
+
R = f.options[H] || f.options.other;
|
|
3487
3487
|
}
|
|
3488
|
-
if (!
|
|
3488
|
+
if (!R)
|
|
3489
3489
|
throw new Er(f.value, y, Object.keys(f.options), l);
|
|
3490
|
-
a.push.apply(a,
|
|
3490
|
+
a.push.apply(a, Gt(R.value, t, n, r, i, y - (f.offset || 0)));
|
|
3491
3491
|
continue;
|
|
3492
3492
|
}
|
|
3493
3493
|
}
|
|
3494
3494
|
return Ts(a);
|
|
3495
3495
|
}
|
|
3496
3496
|
function ws(e, t) {
|
|
3497
|
-
return t ?
|
|
3498
|
-
return n[r] =
|
|
3497
|
+
return t ? He(He(He({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3498
|
+
return n[r] = He(He({}, e[r]), t[r] || {}), n;
|
|
3499
3499
|
}, {})) : e;
|
|
3500
3500
|
}
|
|
3501
3501
|
function As(e, t) {
|
|
3502
3502
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3503
3503
|
return n[r] = ws(e[r], t[r]), n;
|
|
3504
|
-
},
|
|
3504
|
+
}, He({}, e)) : e;
|
|
3505
3505
|
}
|
|
3506
3506
|
function pn(e) {
|
|
3507
3507
|
return {
|
|
@@ -3517,7 +3517,7 @@ function pn(e) {
|
|
|
3517
3517
|
}
|
|
3518
3518
|
};
|
|
3519
3519
|
}
|
|
3520
|
-
function
|
|
3520
|
+
function Os(e) {
|
|
3521
3521
|
return e === void 0 && (e = {
|
|
3522
3522
|
number: {},
|
|
3523
3523
|
dateTime: {},
|
|
@@ -3564,11 +3564,11 @@ var yi = (
|
|
|
3564
3564
|
if (u.length === 1)
|
|
3565
3565
|
return u[0].value;
|
|
3566
3566
|
var f = u.reduce(function(m, y) {
|
|
3567
|
-
return !m.length || y.type !==
|
|
3567
|
+
return !m.length || y.type !== ge.literal || typeof m[m.length - 1] != "string" ? m.push(y.value) : m[m.length - 1] += y.value, m;
|
|
3568
3568
|
}, []);
|
|
3569
3569
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3570
3570
|
}, this.formatToParts = function(c) {
|
|
3571
|
-
return
|
|
3571
|
+
return Gt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3572
3572
|
}, this.resolvedOptions = function() {
|
|
3573
3573
|
var c;
|
|
3574
3574
|
return {
|
|
@@ -3582,12 +3582,12 @@ var yi = (
|
|
|
3582
3582
|
var l = i || {};
|
|
3583
3583
|
l.formatters;
|
|
3584
3584
|
var a = Bo(l, ["formatters"]);
|
|
3585
|
-
this.ast = e.__parse(t,
|
|
3585
|
+
this.ast = e.__parse(t, He(He({}, a), { locale: this.resolvedLocale }));
|
|
3586
3586
|
} else
|
|
3587
3587
|
this.ast = t;
|
|
3588
3588
|
if (!Array.isArray(this.ast))
|
|
3589
3589
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3590
|
-
this.formats = As(e.formats, r), this.formatters = i && i.formatters ||
|
|
3590
|
+
this.formats = As(e.formats, r), this.formatters = i && i.formatters || Os(this.formatterCache);
|
|
3591
3591
|
}
|
|
3592
3592
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3593
3593
|
get: function() {
|
|
@@ -3661,7 +3661,7 @@ var yi = (
|
|
|
3661
3661
|
}, e;
|
|
3662
3662
|
}()
|
|
3663
3663
|
);
|
|
3664
|
-
function
|
|
3664
|
+
function Ms(e, t) {
|
|
3665
3665
|
if (t == null)
|
|
3666
3666
|
return;
|
|
3667
3667
|
if (t in e)
|
|
@@ -3682,16 +3682,16 @@ function Os(e, t) {
|
|
|
3682
3682
|
r = void 0;
|
|
3683
3683
|
return r;
|
|
3684
3684
|
}
|
|
3685
|
-
const
|
|
3685
|
+
const Be = {}, Cs = (e, t, n) => n && (t in Be || (Be[t] = {}), e in Be[t] || (Be[t][e] = n), n), xi = (e, t) => {
|
|
3686
3686
|
if (t == null)
|
|
3687
3687
|
return;
|
|
3688
|
-
if (t in
|
|
3689
|
-
return
|
|
3688
|
+
if (t in Be && e in Be[t])
|
|
3689
|
+
return Be[t][e];
|
|
3690
3690
|
const n = wt(t);
|
|
3691
3691
|
for (let r = 0; r < n.length; r++) {
|
|
3692
3692
|
const i = n[r], o = Hs(i, e);
|
|
3693
3693
|
if (o)
|
|
3694
|
-
return
|
|
3694
|
+
return Cs(e, t, o);
|
|
3695
3695
|
}
|
|
3696
3696
|
};
|
|
3697
3697
|
let Rn;
|
|
@@ -3706,7 +3706,7 @@ function Hs(e, t) {
|
|
|
3706
3706
|
if (!vi(e))
|
|
3707
3707
|
return null;
|
|
3708
3708
|
const n = Ls(e);
|
|
3709
|
-
return
|
|
3709
|
+
return Ms(n, t);
|
|
3710
3710
|
}
|
|
3711
3711
|
function Ns(e) {
|
|
3712
3712
|
if (e == null)
|
|
@@ -3719,7 +3719,7 @@ function Ns(e) {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
3721
|
function Ti(e, ...t) {
|
|
3722
|
-
delete
|
|
3722
|
+
delete Be[e], St.update((n) => (n[e] = Do.all([n[e] || {}, ...t]), n));
|
|
3723
3723
|
}
|
|
3724
3724
|
ot(
|
|
3725
3725
|
[St],
|
|
@@ -3810,23 +3810,23 @@ function ks({ locale: e, id: t }) {
|
|
|
3810
3810
|
console.warn(
|
|
3811
3811
|
`[svelte-i18n] The message "${t}" was not found in "${wt(
|
|
3812
3812
|
e
|
|
3813
|
-
).join('", "')}".${Zt(
|
|
3813
|
+
).join('", "')}".${Zt(ke()) ? `
|
|
3814
3814
|
|
|
3815
3815
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3816
3816
|
);
|
|
3817
3817
|
}
|
|
3818
|
-
const
|
|
3818
|
+
const Fs = {
|
|
3819
3819
|
fallbackLocale: null,
|
|
3820
3820
|
loadingDelay: 200,
|
|
3821
3821
|
formats: Us,
|
|
3822
3822
|
warnOnMissingMessages: !0,
|
|
3823
3823
|
handleMissingMessage: void 0,
|
|
3824
3824
|
ignoreTag: !0
|
|
3825
|
-
}, _t =
|
|
3825
|
+
}, _t = Fs;
|
|
3826
3826
|
function it() {
|
|
3827
3827
|
return _t;
|
|
3828
3828
|
}
|
|
3829
|
-
function
|
|
3829
|
+
function Gs(e) {
|
|
3830
3830
|
const t = e, { formats: n } = t, r = $s(t, ["formats"]);
|
|
3831
3831
|
let i = e.fallbackLocale;
|
|
3832
3832
|
if (e.initialLocale)
|
|
@@ -3839,7 +3839,7 @@ function Fs(e) {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = ks : console.warn(
|
|
3841
3841
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3842
|
-
)), Object.assign(_t, r, { initialLocale: i }), n && ("number" in n && Object.assign(_t.formats.number, n.number), "date" in n && Object.assign(_t.formats.date, n.date), "time" in n && Object.assign(_t.formats.time, n.time)),
|
|
3842
|
+
)), Object.assign(_t, r, { initialLocale: i }), n && ("number" in n && Object.assign(_t.formats.number, n.number), "date" in n && Object.assign(_t.formats.date, n.date), "time" in n && Object.assign(_t.formats.time, n.time)), je.set(i);
|
|
3843
3843
|
}
|
|
3844
3844
|
const dn = Tt(!1);
|
|
3845
3845
|
var js = Object.defineProperty, zs = Object.defineProperties, Ws = Object.getOwnPropertyDescriptors, xr = Object.getOwnPropertySymbols, Vs = Object.prototype.hasOwnProperty, Xs = Object.prototype.propertyIsEnumerable, vr = (e, t, n) => t in e ? js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ys = (e, t) => {
|
|
@@ -3850,7 +3850,7 @@ var js = Object.defineProperty, zs = Object.defineProperties, Ws = Object.getOwn
|
|
|
3850
3850
|
Xs.call(t, n) && vr(e, n, t[n]);
|
|
3851
3851
|
return e;
|
|
3852
3852
|
}, Zs = (e, t) => zs(e, Ws(t));
|
|
3853
|
-
let
|
|
3853
|
+
let Cn;
|
|
3854
3854
|
const qt = Tt(null);
|
|
3855
3855
|
function Tr(e) {
|
|
3856
3856
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
@@ -3859,17 +3859,17 @@ function wt(e, t = it().fallbackLocale) {
|
|
|
3859
3859
|
const n = Tr(e);
|
|
3860
3860
|
return t ? [.../* @__PURE__ */ new Set([...n, ...Tr(t)])] : n;
|
|
3861
3861
|
}
|
|
3862
|
-
function
|
|
3863
|
-
return
|
|
3862
|
+
function ke() {
|
|
3863
|
+
return Cn ?? void 0;
|
|
3864
3864
|
}
|
|
3865
3865
|
qt.subscribe((e) => {
|
|
3866
|
-
|
|
3866
|
+
Cn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3867
3867
|
});
|
|
3868
3868
|
const qs = (e) => {
|
|
3869
3869
|
if (e && Ns(e) && Zt(e)) {
|
|
3870
3870
|
const { loadingDelay: t } = it();
|
|
3871
3871
|
let n;
|
|
3872
|
-
return typeof window < "u" &&
|
|
3872
|
+
return typeof window < "u" && ke() != null && t ? n = window.setTimeout(
|
|
3873
3873
|
() => dn.set(!0),
|
|
3874
3874
|
t
|
|
3875
3875
|
) : dn.set(!0), wi(e).then(() => {
|
|
@@ -3879,7 +3879,7 @@ const qs = (e) => {
|
|
|
3879
3879
|
});
|
|
3880
3880
|
}
|
|
3881
3881
|
return qt.set(e);
|
|
3882
|
-
},
|
|
3882
|
+
}, je = Zs(Ys({}, qt), {
|
|
3883
3883
|
set: qs
|
|
3884
3884
|
}), tn = (e) => {
|
|
3885
3885
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -3888,12 +3888,12 @@ const qs = (e) => {
|
|
|
3888
3888
|
return i in t ? t[i] : t[i] = e(r);
|
|
3889
3889
|
};
|
|
3890
3890
|
};
|
|
3891
|
-
var Js = Object.defineProperty, Jt = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty,
|
|
3891
|
+
var Js = Object.defineProperty, Jt = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, Sr = (e, t, n) => t in e ? Js(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Dn = (e, t) => {
|
|
3892
3892
|
for (var n in t || (t = {}))
|
|
3893
3893
|
Ai.call(t, n) && Sr(e, n, t[n]);
|
|
3894
3894
|
if (Jt)
|
|
3895
3895
|
for (var n of Jt(t))
|
|
3896
|
-
|
|
3896
|
+
Oi.call(t, n) && Sr(e, n, t[n]);
|
|
3897
3897
|
return e;
|
|
3898
3898
|
}, st = (e, t) => {
|
|
3899
3899
|
var n = {};
|
|
@@ -3901,7 +3901,7 @@ var Js = Object.defineProperty, Jt = Object.getOwnPropertySymbols, Ai = Object.p
|
|
|
3901
3901
|
Ai.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3902
3902
|
if (e != null && Jt)
|
|
3903
3903
|
for (var r of Jt(e))
|
|
3904
|
-
t.indexOf(r) < 0 &&
|
|
3904
|
+
t.indexOf(r) < 0 && Oi.call(e, r) && (n[r] = e[r]);
|
|
3905
3905
|
return n;
|
|
3906
3906
|
};
|
|
3907
3907
|
const vt = (e, t) => {
|
|
@@ -3934,28 +3934,28 @@ const vt = (e, t) => {
|
|
|
3934
3934
|
}
|
|
3935
3935
|
), ta = (e = {}) => {
|
|
3936
3936
|
var t = e, {
|
|
3937
|
-
locale: n =
|
|
3937
|
+
locale: n = ke()
|
|
3938
3938
|
} = t, r = st(t, [
|
|
3939
3939
|
"locale"
|
|
3940
3940
|
]);
|
|
3941
3941
|
return Qs(Dn({ locale: n }, r));
|
|
3942
3942
|
}, na = (e = {}) => {
|
|
3943
3943
|
var t = e, {
|
|
3944
|
-
locale: n =
|
|
3944
|
+
locale: n = ke()
|
|
3945
3945
|
} = t, r = st(t, [
|
|
3946
3946
|
"locale"
|
|
3947
3947
|
]);
|
|
3948
3948
|
return Ks(Dn({ locale: n }, r));
|
|
3949
3949
|
}, ra = (e = {}) => {
|
|
3950
3950
|
var t = e, {
|
|
3951
|
-
locale: n =
|
|
3951
|
+
locale: n = ke()
|
|
3952
3952
|
} = t, r = st(t, [
|
|
3953
3953
|
"locale"
|
|
3954
3954
|
]);
|
|
3955
3955
|
return ea(Dn({ locale: n }, r));
|
|
3956
3956
|
}, ia = tn(
|
|
3957
3957
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3958
|
-
(e, t =
|
|
3958
|
+
(e, t = ke()) => new yi(e, t, it().formats, {
|
|
3959
3959
|
ignoreTag: it().ignoreTag
|
|
3960
3960
|
})
|
|
3961
3961
|
), oa = (e, t = {}) => {
|
|
@@ -3964,7 +3964,7 @@ const vt = (e, t) => {
|
|
|
3964
3964
|
typeof e == "object" && (l = e, e = l.id);
|
|
3965
3965
|
const {
|
|
3966
3966
|
values: a,
|
|
3967
|
-
locale: c =
|
|
3967
|
+
locale: c = ke(),
|
|
3968
3968
|
default: u
|
|
3969
3969
|
} = l;
|
|
3970
3970
|
if (c == null)
|
|
@@ -3990,18 +3990,18 @@ const vt = (e, t) => {
|
|
|
3990
3990
|
);
|
|
3991
3991
|
}
|
|
3992
3992
|
return m;
|
|
3993
|
-
}, sa = (e, t) => ra(t).format(e), aa = (e, t) => na(t).format(e), la = (e, t) => ta(t).format(e), ua = (e, t =
|
|
3994
|
-
ot([
|
|
3995
|
-
ot([
|
|
3996
|
-
ot([
|
|
3997
|
-
ot([
|
|
3993
|
+
}, sa = (e, t) => ra(t).format(e), aa = (e, t) => na(t).format(e), la = (e, t) => ta(t).format(e), ua = (e, t = ke()) => xi(e, t), ca = ot([je, St], () => oa);
|
|
3994
|
+
ot([je], () => sa);
|
|
3995
|
+
ot([je], () => aa);
|
|
3996
|
+
ot([je], () => la);
|
|
3997
|
+
ot([je, St], () => ua);
|
|
3998
3998
|
function wr(e, t) {
|
|
3999
3999
|
Ti(e, t);
|
|
4000
4000
|
}
|
|
4001
4001
|
function fa(e) {
|
|
4002
|
-
|
|
4002
|
+
Gs({
|
|
4003
4003
|
fallbackLocale: "en"
|
|
4004
|
-
}),
|
|
4004
|
+
}), je.set(e);
|
|
4005
4005
|
}
|
|
4006
4006
|
const Ar = {
|
|
4007
4007
|
en: {
|
|
@@ -4017,36 +4017,30 @@ const Ar = {
|
|
|
4017
4017
|
sessionExpirationTitle: "Oturumunuzun süresi dolmak üzere!",
|
|
4018
4018
|
sessionExpirationGeneralText: "Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",
|
|
4019
4019
|
sessionExpirationGeneralButton: "DEVAM ET",
|
|
4020
|
-
sessionExpirationLoadingButton: "İŞLEME..."
|
|
4021
|
-
|
|
4022
|
-
"en-us": {
|
|
4023
|
-
sessionExpirationHeader: "Session Warning",
|
|
4024
|
-
sessionExpirationTitle: "Your session is about to expire!",
|
|
4025
|
-
sessionExpirationGeneralText: "Your session will automatically terminate in <b>{second} seconds</b>.",
|
|
4026
|
-
sessionExpirationGeneralButton: "CONTINUE",
|
|
4027
|
-
sessionExpirationLoadingButton: "PROCESSING..."
|
|
4020
|
+
sessionExpirationLoadingButton: "İŞLEME...",
|
|
4021
|
+
sessionExpirationEnd: "Oturumu sonlandır"
|
|
4028
4022
|
}
|
|
4029
4023
|
};
|
|
4030
4024
|
/*! @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 */
|
|
4031
4025
|
const {
|
|
4032
|
-
entries:
|
|
4033
|
-
setPrototypeOf:
|
|
4026
|
+
entries: Mi,
|
|
4027
|
+
setPrototypeOf: Or,
|
|
4034
4028
|
isFrozen: ha,
|
|
4035
4029
|
getPrototypeOf: ma,
|
|
4036
4030
|
getOwnPropertyDescriptor: pa
|
|
4037
4031
|
} = Object;
|
|
4038
4032
|
let {
|
|
4039
|
-
freeze:
|
|
4040
|
-
seal:
|
|
4041
|
-
create:
|
|
4033
|
+
freeze: _e,
|
|
4034
|
+
seal: ve,
|
|
4035
|
+
create: Ci
|
|
4042
4036
|
} = Object, {
|
|
4043
4037
|
apply: Ln,
|
|
4044
4038
|
construct: Hn
|
|
4045
4039
|
} = typeof Reflect < "u" && Reflect;
|
|
4046
|
-
|
|
4040
|
+
_e || (_e = function(t) {
|
|
4047
4041
|
return t;
|
|
4048
4042
|
});
|
|
4049
|
-
|
|
4043
|
+
ve || (ve = function(t) {
|
|
4050
4044
|
return t;
|
|
4051
4045
|
});
|
|
4052
4046
|
Ln || (Ln = function(t, n, r) {
|
|
@@ -4055,8 +4049,8 @@ Ln || (Ln = function(t, n, r) {
|
|
|
4055
4049
|
Hn || (Hn = function(t, n) {
|
|
4056
4050
|
return new t(...n);
|
|
4057
4051
|
});
|
|
4058
|
-
const Pt =
|
|
4059
|
-
function
|
|
4052
|
+
const Pt = xe(Array.prototype.forEach), Mr = xe(Array.prototype.pop), ht = xe(Array.prototype.push), zt = xe(String.prototype.toLowerCase), gn = xe(String.prototype.toString), Cr = xe(String.prototype.match), mt = xe(String.prototype.replace), da = xe(String.prototype.indexOf), ga = xe(String.prototype.trim), Se = xe(Object.prototype.hasOwnProperty), pe = xe(RegExp.prototype.test), pt = _a(TypeError);
|
|
4053
|
+
function xe(e) {
|
|
4060
4054
|
return function(t) {
|
|
4061
4055
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4062
4056
|
r[i - 1] = arguments[i];
|
|
@@ -4070,9 +4064,9 @@ function _a(e) {
|
|
|
4070
4064
|
return Hn(e, n);
|
|
4071
4065
|
};
|
|
4072
4066
|
}
|
|
4073
|
-
function
|
|
4067
|
+
function $(e, t) {
|
|
4074
4068
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : zt;
|
|
4075
|
-
|
|
4069
|
+
Or && Or(e, null);
|
|
4076
4070
|
let r = t.length;
|
|
4077
4071
|
for (; r--; ) {
|
|
4078
4072
|
let i = t[r];
|
|
@@ -4089,10 +4083,10 @@ function ba(e) {
|
|
|
4089
4083
|
Se(e, t) || (e[t] = null);
|
|
4090
4084
|
return e;
|
|
4091
4085
|
}
|
|
4092
|
-
function
|
|
4093
|
-
const t =
|
|
4094
|
-
for (const [n, r] of
|
|
4095
|
-
Se(e, n) && (Array.isArray(r) ? t[n] = ba(r) : r && typeof r == "object" && r.constructor === Object ? t[n] =
|
|
4086
|
+
function Fe(e) {
|
|
4087
|
+
const t = Ci(null);
|
|
4088
|
+
for (const [n, r] of Mi(e))
|
|
4089
|
+
Se(e, n) && (Array.isArray(r) ? t[n] = ba(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Fe(r) : t[n] = r);
|
|
4096
4090
|
return t;
|
|
4097
4091
|
}
|
|
4098
4092
|
function dt(e, t) {
|
|
@@ -4100,9 +4094,9 @@ function dt(e, t) {
|
|
|
4100
4094
|
const r = pa(e, t);
|
|
4101
4095
|
if (r) {
|
|
4102
4096
|
if (r.get)
|
|
4103
|
-
return
|
|
4097
|
+
return xe(r.get);
|
|
4104
4098
|
if (typeof r.value == "function")
|
|
4105
|
-
return
|
|
4099
|
+
return xe(r.value);
|
|
4106
4100
|
}
|
|
4107
4101
|
e = ma(e);
|
|
4108
4102
|
}
|
|
@@ -4111,13 +4105,13 @@ function dt(e, t) {
|
|
|
4111
4105
|
}
|
|
4112
4106
|
return n;
|
|
4113
4107
|
}
|
|
4114
|
-
const Lr =
|
|
4108
|
+
const Lr = _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"]), _n = _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"]), bn = _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"]), Ea = _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"]), En = _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"]), ya = _e(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Hr = _e(["#text"]), Nr = _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"]), yn = _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"]), Ir = _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"]), Rt = _e(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), xa = ve(/\{\{[\w\W]*|[\w\W]*\}\}/gm), va = ve(/<%[\w\W]*|[\w\W]*%>/gm), Ta = ve(/\${[\w\W]*}/gm), Sa = ve(/^data-[\-\w.\u00B7-\uFFFF]/), wa = ve(/^aria-[\-\w]+$/), Li = ve(
|
|
4115
4109
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4116
4110
|
// eslint-disable-line no-useless-escape
|
|
4117
|
-
), Aa =
|
|
4111
|
+
), Aa = ve(/^(?:\w+script|data):/i), Oa = ve(
|
|
4118
4112
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4119
4113
|
// eslint-disable-line no-control-regex
|
|
4120
|
-
), Hi =
|
|
4114
|
+
), Hi = ve(/^html$/i), Ma = ve(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4121
4115
|
var Pr = /* @__PURE__ */ Object.freeze({
|
|
4122
4116
|
__proto__: null,
|
|
4123
4117
|
MUSTACHE_EXPR: xa,
|
|
@@ -4127,9 +4121,9 @@ var Pr = /* @__PURE__ */ Object.freeze({
|
|
|
4127
4121
|
ARIA_ATTR: wa,
|
|
4128
4122
|
IS_ALLOWED_URI: Li,
|
|
4129
4123
|
IS_SCRIPT_OR_DATA: Aa,
|
|
4130
|
-
ATTR_WHITESPACE:
|
|
4124
|
+
ATTR_WHITESPACE: Oa,
|
|
4131
4125
|
DOCTYPE_NAME: Hi,
|
|
4132
|
-
CUSTOM_ELEMENT:
|
|
4126
|
+
CUSTOM_ELEMENT: Ma
|
|
4133
4127
|
});
|
|
4134
4128
|
const gt = {
|
|
4135
4129
|
element: 1,
|
|
@@ -4138,7 +4132,7 @@ const gt = {
|
|
|
4138
4132
|
progressingInstruction: 7,
|
|
4139
4133
|
comment: 8,
|
|
4140
4134
|
document: 9
|
|
4141
|
-
},
|
|
4135
|
+
}, Ca = function() {
|
|
4142
4136
|
return typeof window > "u" ? null : window;
|
|
4143
4137
|
}, La = function(t, n) {
|
|
4144
4138
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
@@ -4161,7 +4155,7 @@ const gt = {
|
|
|
4161
4155
|
}
|
|
4162
4156
|
};
|
|
4163
4157
|
function Ni() {
|
|
4164
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4158
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ca();
|
|
4165
4159
|
const t = (S) => Ni(S);
|
|
4166
4160
|
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== gt.document)
|
|
4167
4161
|
return t.isSupported = !1, t;
|
|
@@ -4177,40 +4171,40 @@ function Ni() {
|
|
|
4177
4171
|
NamedNodeMap: f = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
4178
4172
|
HTMLFormElement: m,
|
|
4179
4173
|
DOMParser: y,
|
|
4180
|
-
trustedTypes:
|
|
4181
|
-
} = e, x = c.prototype, g = dt(x, "cloneNode"),
|
|
4174
|
+
trustedTypes: A
|
|
4175
|
+
} = e, x = c.prototype, g = dt(x, "cloneNode"), N = dt(x, "remove"), U = dt(x, "nextSibling"), V = dt(x, "childNodes"), R = dt(x, "parentNode");
|
|
4182
4176
|
if (typeof l == "function") {
|
|
4183
4177
|
const S = n.createElement("template");
|
|
4184
4178
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
4185
4179
|
}
|
|
4186
|
-
let
|
|
4180
|
+
let H, I = "";
|
|
4187
4181
|
const {
|
|
4188
|
-
implementation:
|
|
4189
|
-
createNodeIterator:
|
|
4190
|
-
createDocumentFragment:
|
|
4182
|
+
implementation: W,
|
|
4183
|
+
createNodeIterator: oe,
|
|
4184
|
+
createDocumentFragment: fe,
|
|
4191
4185
|
getElementsByTagName: K
|
|
4192
4186
|
} = n, {
|
|
4193
4187
|
importNode: j
|
|
4194
4188
|
} = r;
|
|
4195
|
-
let
|
|
4196
|
-
t.isSupported = typeof
|
|
4189
|
+
let C = {};
|
|
4190
|
+
t.isSupported = typeof Mi == "function" && typeof R == "function" && W && W.createHTMLDocument !== void 0;
|
|
4197
4191
|
const {
|
|
4198
4192
|
MUSTACHE_EXPR: se,
|
|
4199
|
-
ERB_EXPR:
|
|
4200
|
-
TMPLIT_EXPR:
|
|
4201
|
-
DATA_ATTR:
|
|
4193
|
+
ERB_EXPR: Ee,
|
|
4194
|
+
TMPLIT_EXPR: M,
|
|
4195
|
+
DATA_ATTR: _,
|
|
4202
4196
|
ARIA_ATTR: h,
|
|
4203
4197
|
IS_SCRIPT_OR_DATA: E,
|
|
4204
|
-
ATTR_WHITESPACE:
|
|
4205
|
-
CUSTOM_ELEMENT:
|
|
4198
|
+
ATTR_WHITESPACE: b,
|
|
4199
|
+
CUSTOM_ELEMENT: L
|
|
4206
4200
|
} = Pr;
|
|
4207
4201
|
let {
|
|
4208
|
-
IS_ALLOWED_URI:
|
|
4209
|
-
} = Pr,
|
|
4210
|
-
const
|
|
4211
|
-
let
|
|
4212
|
-
const q =
|
|
4213
|
-
let
|
|
4202
|
+
IS_ALLOWED_URI: O
|
|
4203
|
+
} = Pr, v = null;
|
|
4204
|
+
const z = $({}, [...Lr, ..._n, ...bn, ...En, ...Hr]);
|
|
4205
|
+
let P = null;
|
|
4206
|
+
const q = $({}, [...Nr, ...yn, ...Ir, ...Rt]);
|
|
4207
|
+
let D = Object.seal(Ci(null, {
|
|
4214
4208
|
tagNameCheck: {
|
|
4215
4209
|
writable: !0,
|
|
4216
4210
|
configurable: !1,
|
|
@@ -4229,16 +4223,16 @@ function Ni() {
|
|
|
4229
4223
|
enumerable: !0,
|
|
4230
4224
|
value: !1
|
|
4231
4225
|
}
|
|
4232
|
-
})),
|
|
4226
|
+
})), d = null, G = null, X = !0, Y = !0, ne = !1, ee = !0, he = !1, le = !0, Ae = !1, J = !1, re = !1, Oe = !1, At = !1, Ot = !1, Bn = !0, $n = !1;
|
|
4233
4227
|
const Ri = "user-content-";
|
|
4234
4228
|
let nn = !0, at = !1, ze = {}, We = null;
|
|
4235
|
-
const Un =
|
|
4229
|
+
const Un = $({}, ["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"]);
|
|
4236
4230
|
let kn = null;
|
|
4237
|
-
const
|
|
4231
|
+
const Fn = $({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4238
4232
|
let rn = null;
|
|
4239
|
-
const
|
|
4240
|
-
let Ve =
|
|
4241
|
-
const Di =
|
|
4233
|
+
const Gn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Mt = "http://www.w3.org/1998/Math/MathML", Ct = "http://www.w3.org/2000/svg", Ne = "http://www.w3.org/1999/xhtml";
|
|
4234
|
+
let Ve = Ne, on = !1, sn = null;
|
|
4235
|
+
const Di = $({}, [Mt, Ct, Ne], gn);
|
|
4242
4236
|
let lt = null;
|
|
4243
4237
|
const Bi = ["application/xhtml+xml", "text/html"], $i = "text/html";
|
|
4244
4238
|
let ae = null, Xe = null;
|
|
@@ -4247,47 +4241,47 @@ function Ni() {
|
|
|
4247
4241
|
}, an = function() {
|
|
4248
4242
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4249
4243
|
if (!(Xe && Xe === s)) {
|
|
4250
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
4251
|
-
Bi.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? $i : s.PARSER_MEDIA_TYPE, ae = lt === "application/xhtml+xml" ? gn : zt,
|
|
4252
|
-
|
|
4244
|
+
if ((!s || typeof s != "object") && (s = {}), s = Fe(s), lt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4245
|
+
Bi.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? $i : s.PARSER_MEDIA_TYPE, ae = lt === "application/xhtml+xml" ? gn : zt, v = Se(s, "ALLOWED_TAGS") ? $({}, s.ALLOWED_TAGS, ae) : z, P = Se(s, "ALLOWED_ATTR") ? $({}, s.ALLOWED_ATTR, ae) : q, sn = Se(s, "ALLOWED_NAMESPACES") ? $({}, s.ALLOWED_NAMESPACES, gn) : Di, rn = Se(s, "ADD_URI_SAFE_ATTR") ? $(
|
|
4246
|
+
Fe(Gn),
|
|
4253
4247
|
// eslint-disable-line indent
|
|
4254
4248
|
s.ADD_URI_SAFE_ATTR,
|
|
4255
4249
|
// eslint-disable-line indent
|
|
4256
4250
|
ae
|
|
4257
4251
|
// eslint-disable-line indent
|
|
4258
|
-
) :
|
|
4259
|
-
|
|
4252
|
+
) : Gn, kn = Se(s, "ADD_DATA_URI_TAGS") ? $(
|
|
4253
|
+
Fe(Fn),
|
|
4260
4254
|
// eslint-disable-line indent
|
|
4261
4255
|
s.ADD_DATA_URI_TAGS,
|
|
4262
4256
|
// eslint-disable-line indent
|
|
4263
4257
|
ae
|
|
4264
4258
|
// eslint-disable-line indent
|
|
4265
|
-
) :
|
|
4259
|
+
) : Fn, We = Se(s, "FORBID_CONTENTS") ? $({}, s.FORBID_CONTENTS, ae) : Un, d = Se(s, "FORBID_TAGS") ? $({}, s.FORBID_TAGS, ae) : {}, G = Se(s, "FORBID_ATTR") ? $({}, s.FORBID_ATTR, ae) : {}, ze = Se(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, Ae = s.WHOLE_DOCUMENT || !1, Oe = s.RETURN_DOM || !1, At = s.RETURN_DOM_FRAGMENT || !1, Ot = s.RETURN_TRUSTED_TYPE || !1, re = s.FORCE_BODY || !1, Bn = s.SANITIZE_DOM !== !1, $n = s.SANITIZE_NAMED_PROPS || !1, nn = s.KEEP_CONTENT !== !1, at = s.IN_PLACE || !1, O = s.ALLOWED_URI_REGEXP || Li, Ve = s.NAMESPACE || Ne, D = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && jn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (D.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && jn(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), At && (Oe = !0), ze && (v = $({}, Hr), P = [], ze.html === !0 && ($(v, Lr), $(P, Nr)), ze.svg === !0 && ($(v, _n), $(P, yn), $(P, Rt)), ze.svgFilters === !0 && ($(v, bn), $(P, yn), $(P, Rt)), ze.mathMl === !0 && ($(v, En), $(P, Ir), $(P, Rt))), s.ADD_TAGS && (v === z && (v = Fe(v)), $(v, s.ADD_TAGS, ae)), s.ADD_ATTR && (P === q && (P = Fe(P)), $(P, s.ADD_ATTR, ae)), s.ADD_URI_SAFE_ATTR && $(rn, s.ADD_URI_SAFE_ATTR, ae), s.FORBID_CONTENTS && (We === Un && (We = Fe(We)), $(We, s.FORBID_CONTENTS, ae)), nn && (v["#text"] = !0), Ae && $(v, ["html", "head", "body"]), v.table && ($(v, ["tbody"]), delete d.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4266
4260
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4267
4261
|
throw pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4268
4262
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4269
4263
|
throw pt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4270
|
-
|
|
4264
|
+
H = s.TRUSTED_TYPES_POLICY, I = H.createHTML("");
|
|
4271
4265
|
} else
|
|
4272
|
-
|
|
4273
|
-
|
|
4266
|
+
H === void 0 && (H = La(A, i)), H !== null && typeof I == "string" && (I = H.createHTML(""));
|
|
4267
|
+
_e && _e(s), Xe = s;
|
|
4274
4268
|
}
|
|
4275
|
-
}, zn =
|
|
4276
|
-
let p =
|
|
4269
|
+
}, zn = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = $({}, ["foreignobject", "annotation-xml"]), ki = $({}, ["title", "style", "font", "a", "script"]), Vn = $({}, [..._n, ...bn, ...Ea]), Xn = $({}, [...En, ...ya]), Fi = function(s) {
|
|
4270
|
+
let p = R(s);
|
|
4277
4271
|
(!p || !p.tagName) && (p = {
|
|
4278
4272
|
namespaceURI: Ve,
|
|
4279
4273
|
tagName: "template"
|
|
4280
4274
|
});
|
|
4281
|
-
const T = zt(s.tagName),
|
|
4282
|
-
return sn[s.namespaceURI] ? s.namespaceURI ===
|
|
4283
|
-
},
|
|
4275
|
+
const T = zt(s.tagName), Z = zt(p.tagName);
|
|
4276
|
+
return sn[s.namespaceURI] ? s.namespaceURI === Ct ? p.namespaceURI === Ne ? T === "svg" : p.namespaceURI === Mt ? T === "svg" && (Z === "annotation-xml" || zn[Z]) : !!Vn[T] : s.namespaceURI === Mt ? p.namespaceURI === Ne ? T === "math" : p.namespaceURI === Ct ? T === "math" && Wn[Z] : !!Xn[T] : s.namespaceURI === Ne ? p.namespaceURI === Ct && !Wn[Z] || p.namespaceURI === Mt && !zn[Z] ? !1 : !Xn[T] && (ki[T] || !Vn[T]) : !!(lt === "application/xhtml+xml" && sn[s.namespaceURI]) : !1;
|
|
4277
|
+
}, Me = function(s) {
|
|
4284
4278
|
ht(t.removed, {
|
|
4285
4279
|
element: s
|
|
4286
4280
|
});
|
|
4287
4281
|
try {
|
|
4288
|
-
|
|
4282
|
+
R(s).removeChild(s);
|
|
4289
4283
|
} catch {
|
|
4290
|
-
|
|
4284
|
+
N(s);
|
|
4291
4285
|
}
|
|
4292
4286
|
}, Lt = function(s, p) {
|
|
4293
4287
|
try {
|
|
@@ -4301,10 +4295,10 @@ function Ni() {
|
|
|
4301
4295
|
from: p
|
|
4302
4296
|
});
|
|
4303
4297
|
}
|
|
4304
|
-
if (p.removeAttribute(s), s === "is" && !
|
|
4305
|
-
if (
|
|
4298
|
+
if (p.removeAttribute(s), s === "is" && !P[s])
|
|
4299
|
+
if (Oe || At)
|
|
4306
4300
|
try {
|
|
4307
|
-
|
|
4301
|
+
Me(p);
|
|
4308
4302
|
} catch {
|
|
4309
4303
|
}
|
|
4310
4304
|
else
|
|
@@ -4314,30 +4308,30 @@ function Ni() {
|
|
|
4314
4308
|
}
|
|
4315
4309
|
}, Yn = function(s) {
|
|
4316
4310
|
let p = null, T = null;
|
|
4317
|
-
if (
|
|
4311
|
+
if (re)
|
|
4318
4312
|
s = "<remove></remove>" + s;
|
|
4319
4313
|
else {
|
|
4320
|
-
const
|
|
4321
|
-
T =
|
|
4314
|
+
const ue = Cr(s, /^[\r\n\t ]+/);
|
|
4315
|
+
T = ue && ue[0];
|
|
4322
4316
|
}
|
|
4323
|
-
lt === "application/xhtml+xml" && Ve ===
|
|
4324
|
-
const
|
|
4325
|
-
if (Ve ===
|
|
4317
|
+
lt === "application/xhtml+xml" && Ve === Ne && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4318
|
+
const Z = H ? H.createHTML(s) : s;
|
|
4319
|
+
if (Ve === Ne)
|
|
4326
4320
|
try {
|
|
4327
|
-
p = new y().parseFromString(
|
|
4321
|
+
p = new y().parseFromString(Z, lt);
|
|
4328
4322
|
} catch {
|
|
4329
4323
|
}
|
|
4330
4324
|
if (!p || !p.documentElement) {
|
|
4331
|
-
p =
|
|
4325
|
+
p = W.createDocument(Ve, "template", null);
|
|
4332
4326
|
try {
|
|
4333
|
-
p.documentElement.innerHTML = on ?
|
|
4327
|
+
p.documentElement.innerHTML = on ? I : Z;
|
|
4334
4328
|
} catch {
|
|
4335
4329
|
}
|
|
4336
4330
|
}
|
|
4337
|
-
const
|
|
4338
|
-
return s && T &&
|
|
4331
|
+
const ce = p.body || p.documentElement;
|
|
4332
|
+
return s && T && ce.insertBefore(n.createTextNode(T), ce.childNodes[0] || null), Ve === Ne ? K.call(p, Ae ? "html" : "body")[0] : Ae ? p.documentElement : ce;
|
|
4339
4333
|
}, Zn = function(s) {
|
|
4340
|
-
return
|
|
4334
|
+
return oe.call(
|
|
4341
4335
|
s.ownerDocument || s,
|
|
4342
4336
|
s,
|
|
4343
4337
|
// eslint-disable-next-line no-bitwise
|
|
@@ -4348,59 +4342,59 @@ function Ni() {
|
|
|
4348
4342
|
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");
|
|
4349
4343
|
}, Jn = function(s) {
|
|
4350
4344
|
return typeof a == "function" && s instanceof a;
|
|
4351
|
-
},
|
|
4352
|
-
|
|
4353
|
-
|
|
4345
|
+
}, Ie = function(s, p, T) {
|
|
4346
|
+
C[s] && Pt(C[s], (Z) => {
|
|
4347
|
+
Z.call(t, p, T, Xe);
|
|
4354
4348
|
});
|
|
4355
4349
|
}, Qn = function(s) {
|
|
4356
4350
|
let p = null;
|
|
4357
|
-
if (
|
|
4358
|
-
return
|
|
4351
|
+
if (Ie("beforeSanitizeElements", s, null), qn(s))
|
|
4352
|
+
return Me(s), !0;
|
|
4359
4353
|
const T = ae(s.nodeName);
|
|
4360
|
-
if (
|
|
4354
|
+
if (Ie("uponSanitizeElement", s, {
|
|
4361
4355
|
tagName: T,
|
|
4362
|
-
allowedTags:
|
|
4363
|
-
}), s.hasChildNodes() && !Jn(s.firstElementChild) &&
|
|
4364
|
-
return
|
|
4365
|
-
if (!
|
|
4366
|
-
if (!
|
|
4356
|
+
allowedTags: v
|
|
4357
|
+
}), s.hasChildNodes() && !Jn(s.firstElementChild) && pe(/<[/\w]/g, s.innerHTML) && pe(/<[/\w]/g, s.textContent) || s.nodeType === gt.progressingInstruction || le && s.nodeType === gt.comment && pe(/<[/\w]/g, s.data))
|
|
4358
|
+
return Me(s), !0;
|
|
4359
|
+
if (!v[T] || d[T]) {
|
|
4360
|
+
if (!d[T] && er(T) && (D.tagNameCheck instanceof RegExp && pe(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4367
4361
|
return !1;
|
|
4368
4362
|
if (nn && !We[T]) {
|
|
4369
|
-
const
|
|
4370
|
-
if (
|
|
4371
|
-
const
|
|
4372
|
-
for (let
|
|
4373
|
-
const Ce = g(
|
|
4374
|
-
Ce.__removalCount = (s.__removalCount || 0) + 1,
|
|
4363
|
+
const Z = R(s) || s.parentNode, ce = V(s) || s.childNodes;
|
|
4364
|
+
if (ce && Z) {
|
|
4365
|
+
const ue = ce.length;
|
|
4366
|
+
for (let be = ue - 1; be >= 0; --be) {
|
|
4367
|
+
const Ce = g(ce[be], !0);
|
|
4368
|
+
Ce.__removalCount = (s.__removalCount || 0) + 1, Z.insertBefore(Ce, U(s));
|
|
4375
4369
|
}
|
|
4376
4370
|
}
|
|
4377
4371
|
}
|
|
4378
|
-
return
|
|
4372
|
+
return Me(s), !0;
|
|
4379
4373
|
}
|
|
4380
|
-
return s instanceof c && !
|
|
4381
|
-
p = mt(p,
|
|
4374
|
+
return s instanceof c && !Fi(s) || (T === "noscript" || T === "noembed" || T === "noframes") && pe(/<\/no(script|embed|frames)/i, s.innerHTML) ? (Me(s), !0) : (he && s.nodeType === gt.text && (p = s.textContent, Pt([se, Ee, M], (Z) => {
|
|
4375
|
+
p = mt(p, Z, " ");
|
|
4382
4376
|
}), s.textContent !== p && (ht(t.removed, {
|
|
4383
4377
|
element: s.cloneNode()
|
|
4384
|
-
}), s.textContent = p)),
|
|
4378
|
+
}), s.textContent = p)), Ie("afterSanitizeElements", s, null), !1);
|
|
4385
4379
|
}, Kn = function(s, p, T) {
|
|
4386
4380
|
if (Bn && (p === "id" || p === "name") && (T in n || T in Ui))
|
|
4387
4381
|
return !1;
|
|
4388
|
-
if (!(
|
|
4389
|
-
if (!(
|
|
4390
|
-
if (!
|
|
4382
|
+
if (!(Y && !G[p] && pe(_, p))) {
|
|
4383
|
+
if (!(X && pe(h, p))) {
|
|
4384
|
+
if (!P[p] || G[p]) {
|
|
4391
4385
|
if (
|
|
4392
4386
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4393
4387
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4394
4388
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4395
|
-
!(er(s) && (
|
|
4389
|
+
!(er(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
|
|
4396
4390
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4397
|
-
p === "is" &&
|
|
4391
|
+
p === "is" && D.allowCustomizedBuiltInElements && (D.tagNameCheck instanceof RegExp && pe(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4398
4392
|
)
|
|
4399
4393
|
return !1;
|
|
4400
4394
|
} else if (!rn[p]) {
|
|
4401
|
-
if (!
|
|
4395
|
+
if (!pe(O, mt(T, b, ""))) {
|
|
4402
4396
|
if (!((p === "src" || p === "xlink:href" || p === "href") && s !== "script" && da(T, "data:") === 0 && kn[s])) {
|
|
4403
|
-
if (!(
|
|
4397
|
+
if (!(ne && !pe(E, mt(T, b, "")))) {
|
|
4404
4398
|
if (T)
|
|
4405
4399
|
return !1;
|
|
4406
4400
|
}
|
|
@@ -4411,9 +4405,9 @@ function Ni() {
|
|
|
4411
4405
|
}
|
|
4412
4406
|
return !0;
|
|
4413
4407
|
}, er = function(s) {
|
|
4414
|
-
return s !== "annotation-xml" &&
|
|
4408
|
+
return s !== "annotation-xml" && Cr(s, L);
|
|
4415
4409
|
}, tr = function(s) {
|
|
4416
|
-
|
|
4410
|
+
Ie("beforeSanitizeAttributes", s, null);
|
|
4417
4411
|
const {
|
|
4418
4412
|
attributes: p
|
|
4419
4413
|
} = s;
|
|
@@ -4423,58 +4417,58 @@ function Ni() {
|
|
|
4423
4417
|
attrName: "",
|
|
4424
4418
|
attrValue: "",
|
|
4425
4419
|
keepAttr: !0,
|
|
4426
|
-
allowedAttributes:
|
|
4420
|
+
allowedAttributes: P
|
|
4427
4421
|
};
|
|
4428
|
-
let
|
|
4429
|
-
for (;
|
|
4430
|
-
const
|
|
4431
|
-
name:
|
|
4432
|
-
namespaceURI:
|
|
4422
|
+
let Z = p.length;
|
|
4423
|
+
for (; Z--; ) {
|
|
4424
|
+
const ce = p[Z], {
|
|
4425
|
+
name: ue,
|
|
4426
|
+
namespaceURI: be,
|
|
4433
4427
|
value: Ce
|
|
4434
|
-
} =
|
|
4435
|
-
let
|
|
4436
|
-
if (T.attrName = ut, T.attrValue =
|
|
4437
|
-
Lt(
|
|
4428
|
+
} = ce, ut = ae(ue);
|
|
4429
|
+
let me = ue === "value" ? Ce : ga(Ce);
|
|
4430
|
+
if (T.attrName = ut, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Ie("uponSanitizeAttribute", s, T), me = T.attrValue, le && pe(/((--!?|])>)|<\/(style|title)/i, me)) {
|
|
4431
|
+
Lt(ue, s);
|
|
4438
4432
|
continue;
|
|
4439
4433
|
}
|
|
4440
|
-
if (T.forceKeepAttr || (Lt(
|
|
4434
|
+
if (T.forceKeepAttr || (Lt(ue, s), !T.keepAttr))
|
|
4441
4435
|
continue;
|
|
4442
|
-
if (!
|
|
4443
|
-
Lt(
|
|
4436
|
+
if (!ee && pe(/\/>/i, me)) {
|
|
4437
|
+
Lt(ue, s);
|
|
4444
4438
|
continue;
|
|
4445
4439
|
}
|
|
4446
|
-
|
|
4447
|
-
|
|
4440
|
+
he && Pt([se, Ee, M], (rr) => {
|
|
4441
|
+
me = mt(me, rr, " ");
|
|
4448
4442
|
});
|
|
4449
4443
|
const nr = ae(s.nodeName);
|
|
4450
|
-
if (Kn(nr, ut,
|
|
4451
|
-
if ($n && (ut === "id" || ut === "name") && (Lt(
|
|
4452
|
-
switch (
|
|
4444
|
+
if (Kn(nr, ut, me)) {
|
|
4445
|
+
if ($n && (ut === "id" || ut === "name") && (Lt(ue, s), me = Ri + me), H && typeof A == "object" && typeof A.getAttributeType == "function" && !be)
|
|
4446
|
+
switch (A.getAttributeType(nr, ut)) {
|
|
4453
4447
|
case "TrustedHTML": {
|
|
4454
|
-
|
|
4448
|
+
me = H.createHTML(me);
|
|
4455
4449
|
break;
|
|
4456
4450
|
}
|
|
4457
4451
|
case "TrustedScriptURL": {
|
|
4458
|
-
|
|
4452
|
+
me = H.createScriptURL(me);
|
|
4459
4453
|
break;
|
|
4460
4454
|
}
|
|
4461
4455
|
}
|
|
4462
4456
|
try {
|
|
4463
|
-
|
|
4457
|
+
be ? s.setAttributeNS(be, ue, me) : s.setAttribute(ue, me), qn(s) ? Me(s) : Mr(t.removed);
|
|
4464
4458
|
} catch {
|
|
4465
4459
|
}
|
|
4466
4460
|
}
|
|
4467
4461
|
}
|
|
4468
|
-
|
|
4469
|
-
},
|
|
4462
|
+
Ie("afterSanitizeAttributes", s, null);
|
|
4463
|
+
}, Gi = function S(s) {
|
|
4470
4464
|
let p = null;
|
|
4471
4465
|
const T = Zn(s);
|
|
4472
|
-
for (
|
|
4473
|
-
|
|
4474
|
-
|
|
4466
|
+
for (Ie("beforeSanitizeShadowDOM", s, null); p = T.nextNode(); )
|
|
4467
|
+
Ie("uponSanitizeShadowNode", p, null), !Qn(p) && (p.content instanceof o && S(p.content), tr(p));
|
|
4468
|
+
Ie("afterSanitizeShadowDOM", s, null);
|
|
4475
4469
|
};
|
|
4476
4470
|
return t.sanitize = function(S) {
|
|
4477
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, T = null,
|
|
4471
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, p = null, T = null, Z = null, ce = null;
|
|
4478
4472
|
if (on = !S, on && (S = "<!-->"), typeof S != "string" && !Jn(S))
|
|
4479
4473
|
if (typeof S.toString == "function") {
|
|
4480
4474
|
if (S = S.toString(), typeof S != "string")
|
|
@@ -4483,58 +4477,58 @@ function Ni() {
|
|
|
4483
4477
|
throw pt("toString is not a function");
|
|
4484
4478
|
if (!t.isSupported)
|
|
4485
4479
|
return S;
|
|
4486
|
-
if (
|
|
4480
|
+
if (J || an(s), t.removed = [], typeof S == "string" && (at = !1), at) {
|
|
4487
4481
|
if (S.nodeName) {
|
|
4488
4482
|
const Ce = ae(S.nodeName);
|
|
4489
|
-
if (!
|
|
4483
|
+
if (!v[Ce] || d[Ce])
|
|
4490
4484
|
throw pt("root node is forbidden and cannot be sanitized in-place");
|
|
4491
4485
|
}
|
|
4492
4486
|
} else if (S instanceof a)
|
|
4493
4487
|
p = Yn("<!---->"), T = p.ownerDocument.importNode(S, !0), T.nodeType === gt.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? p = T : p.appendChild(T);
|
|
4494
4488
|
else {
|
|
4495
|
-
if (!
|
|
4489
|
+
if (!Oe && !he && !Ae && // eslint-disable-next-line unicorn/prefer-includes
|
|
4496
4490
|
S.indexOf("<") === -1)
|
|
4497
|
-
return
|
|
4491
|
+
return H && Ot ? H.createHTML(S) : S;
|
|
4498
4492
|
if (p = Yn(S), !p)
|
|
4499
|
-
return
|
|
4493
|
+
return Oe ? null : Ot ? I : "";
|
|
4500
4494
|
}
|
|
4501
|
-
p &&
|
|
4502
|
-
const
|
|
4503
|
-
for (;
|
|
4504
|
-
Qn(
|
|
4495
|
+
p && re && Me(p.firstChild);
|
|
4496
|
+
const ue = Zn(at ? S : p);
|
|
4497
|
+
for (; Z = ue.nextNode(); )
|
|
4498
|
+
Qn(Z) || (Z.content instanceof o && Gi(Z.content), tr(Z));
|
|
4505
4499
|
if (at)
|
|
4506
4500
|
return S;
|
|
4507
|
-
if (
|
|
4501
|
+
if (Oe) {
|
|
4508
4502
|
if (At)
|
|
4509
|
-
for (
|
|
4510
|
-
|
|
4503
|
+
for (ce = fe.call(p.ownerDocument); p.firstChild; )
|
|
4504
|
+
ce.appendChild(p.firstChild);
|
|
4511
4505
|
else
|
|
4512
|
-
|
|
4513
|
-
return (
|
|
4506
|
+
ce = p;
|
|
4507
|
+
return (P.shadowroot || P.shadowrootmode) && (ce = j.call(r, ce, !0)), ce;
|
|
4514
4508
|
}
|
|
4515
|
-
let
|
|
4516
|
-
return
|
|
4517
|
-
` +
|
|
4518
|
-
|
|
4519
|
-
}),
|
|
4509
|
+
let be = Ae ? p.outerHTML : p.innerHTML;
|
|
4510
|
+
return Ae && v["!doctype"] && p.ownerDocument && p.ownerDocument.doctype && p.ownerDocument.doctype.name && pe(Hi, p.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + p.ownerDocument.doctype.name + `>
|
|
4511
|
+
` + be), he && Pt([se, Ee, M], (Ce) => {
|
|
4512
|
+
be = mt(be, Ce, " ");
|
|
4513
|
+
}), H && Ot ? H.createHTML(be) : be;
|
|
4520
4514
|
}, t.setConfig = function() {
|
|
4521
4515
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4522
|
-
an(S),
|
|
4516
|
+
an(S), J = !0;
|
|
4523
4517
|
}, t.clearConfig = function() {
|
|
4524
|
-
Xe = null,
|
|
4518
|
+
Xe = null, J = !1;
|
|
4525
4519
|
}, t.isValidAttribute = function(S, s, p) {
|
|
4526
4520
|
Xe || an({});
|
|
4527
|
-
const T = ae(S),
|
|
4528
|
-
return Kn(T,
|
|
4521
|
+
const T = ae(S), Z = ae(s);
|
|
4522
|
+
return Kn(T, Z, p);
|
|
4529
4523
|
}, t.addHook = function(S, s) {
|
|
4530
|
-
typeof s == "function" && (
|
|
4524
|
+
typeof s == "function" && (C[S] = C[S] || [], ht(C[S], s));
|
|
4531
4525
|
}, t.removeHook = function(S) {
|
|
4532
|
-
if (
|
|
4533
|
-
return
|
|
4526
|
+
if (C[S])
|
|
4527
|
+
return Mr(C[S]);
|
|
4534
4528
|
}, t.removeHooks = function(S) {
|
|
4535
|
-
|
|
4529
|
+
C[S] && (C[S] = []);
|
|
4536
4530
|
}, t.removeAllHooks = function() {
|
|
4537
|
-
|
|
4531
|
+
C = {};
|
|
4538
4532
|
}, t;
|
|
4539
4533
|
}
|
|
4540
4534
|
var Rr = Ni(), Ii = { exports: {} };
|
|
@@ -4542,289 +4536,289 @@ var Rr = Ni(), Ii = { exports: {} };
|
|
|
4542
4536
|
(function(n, r) {
|
|
4543
4537
|
e.exports = r();
|
|
4544
4538
|
})(ni, function() {
|
|
4545
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", m = "month", y = "quarter",
|
|
4546
|
-
var
|
|
4547
|
-
return "[" +
|
|
4548
|
-
} },
|
|
4549
|
-
var E = String(
|
|
4550
|
-
return !E || E.length >=
|
|
4551
|
-
},
|
|
4552
|
-
var
|
|
4553
|
-
return (
|
|
4554
|
-
}, m: function
|
|
4555
|
-
if (
|
|
4556
|
-
return -
|
|
4557
|
-
var E = 12 * (h.year() -
|
|
4558
|
-
return +(-(E + (h -
|
|
4559
|
-
}, a: function(
|
|
4560
|
-
return
|
|
4561
|
-
}, p: function(
|
|
4562
|
-
return { M: m, y:
|
|
4563
|
-
}, u: function(
|
|
4564
|
-
return
|
|
4565
|
-
} },
|
|
4566
|
-
|
|
4567
|
-
var
|
|
4568
|
-
return
|
|
4569
|
-
}, K = function
|
|
4570
|
-
var
|
|
4571
|
-
if (!
|
|
4572
|
-
return
|
|
4573
|
-
if (typeof
|
|
4574
|
-
var
|
|
4575
|
-
|
|
4576
|
-
var
|
|
4577
|
-
if (!
|
|
4578
|
-
return O
|
|
4539
|
+
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) {
|
|
4540
|
+
var _ = ["th", "st", "nd", "rd"], h = M % 100;
|
|
4541
|
+
return "[" + M + (_[(h - 20) % 10] || _[h] || _[0]) + "]";
|
|
4542
|
+
} }, R = function(M, _, h) {
|
|
4543
|
+
var E = String(M);
|
|
4544
|
+
return !E || E.length >= _ ? M : "" + Array(_ + 1 - E.length).join(h) + M;
|
|
4545
|
+
}, H = { s: R, z: function(M) {
|
|
4546
|
+
var _ = -M.utcOffset(), h = Math.abs(_), E = Math.floor(h / 60), b = h % 60;
|
|
4547
|
+
return (_ <= 0 ? "+" : "-") + R(E, 2, "0") + ":" + R(b, 2, "0");
|
|
4548
|
+
}, m: function M(_, h) {
|
|
4549
|
+
if (_.date() < h.date())
|
|
4550
|
+
return -M(h, _);
|
|
4551
|
+
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);
|
|
4552
|
+
return +(-(E + (h - b) / (L ? b - O : O - b)) || 0);
|
|
4553
|
+
}, a: function(M) {
|
|
4554
|
+
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
|
4555
|
+
}, p: function(M) {
|
|
4556
|
+
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$/, "");
|
|
4557
|
+
}, u: function(M) {
|
|
4558
|
+
return M === void 0;
|
|
4559
|
+
} }, I = "en", W = {};
|
|
4560
|
+
W[I] = V;
|
|
4561
|
+
var oe = "$isDayjsObject", fe = function(M) {
|
|
4562
|
+
return M instanceof se || !(!M || !M[oe]);
|
|
4563
|
+
}, K = function M(_, h, E) {
|
|
4564
|
+
var b;
|
|
4565
|
+
if (!_)
|
|
4566
|
+
return I;
|
|
4567
|
+
if (typeof _ == "string") {
|
|
4568
|
+
var L = _.toLowerCase();
|
|
4569
|
+
W[L] && (b = L), h && (W[L] = h, b = L);
|
|
4570
|
+
var O = _.split("-");
|
|
4571
|
+
if (!b && O.length > 1)
|
|
4572
|
+
return M(O[0]);
|
|
4579
4573
|
} else {
|
|
4580
|
-
var
|
|
4581
|
-
|
|
4574
|
+
var v = _.name;
|
|
4575
|
+
W[v] = _, b = v;
|
|
4582
4576
|
}
|
|
4583
|
-
return !E &&
|
|
4584
|
-
}, j = function(
|
|
4585
|
-
if (
|
|
4586
|
-
return
|
|
4587
|
-
var h = typeof
|
|
4588
|
-
return h.date =
|
|
4589
|
-
},
|
|
4590
|
-
|
|
4591
|
-
return j(
|
|
4577
|
+
return !E && b && (I = b), b || !E && I;
|
|
4578
|
+
}, j = function(M, _) {
|
|
4579
|
+
if (fe(M))
|
|
4580
|
+
return M.clone();
|
|
4581
|
+
var h = typeof _ == "object" ? _ : {};
|
|
4582
|
+
return h.date = M, h.args = arguments, new se(h);
|
|
4583
|
+
}, C = H;
|
|
4584
|
+
C.l = K, C.i = fe, C.w = function(M, _) {
|
|
4585
|
+
return j(M, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
4592
4586
|
};
|
|
4593
4587
|
var se = function() {
|
|
4594
|
-
function
|
|
4595
|
-
this.$L = K(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[
|
|
4588
|
+
function M(h) {
|
|
4589
|
+
this.$L = K(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[oe] = !0;
|
|
4596
4590
|
}
|
|
4597
|
-
var
|
|
4598
|
-
return
|
|
4591
|
+
var _ = M.prototype;
|
|
4592
|
+
return _.parse = function(h) {
|
|
4599
4593
|
this.$d = function(E) {
|
|
4600
|
-
var
|
|
4601
|
-
if (
|
|
4594
|
+
var b = E.date, L = E.utc;
|
|
4595
|
+
if (b === null)
|
|
4602
4596
|
return /* @__PURE__ */ new Date(NaN);
|
|
4603
|
-
if (
|
|
4597
|
+
if (C.u(b))
|
|
4604
4598
|
return /* @__PURE__ */ new Date();
|
|
4605
|
-
if (
|
|
4606
|
-
return new Date(
|
|
4607
|
-
if (typeof
|
|
4608
|
-
var
|
|
4609
|
-
if (
|
|
4610
|
-
var
|
|
4611
|
-
return
|
|
4599
|
+
if (b instanceof Date)
|
|
4600
|
+
return new Date(b);
|
|
4601
|
+
if (typeof b == "string" && !/Z$/i.test(b)) {
|
|
4602
|
+
var O = b.match(N);
|
|
4603
|
+
if (O) {
|
|
4604
|
+
var v = O[2] - 1 || 0, z = (O[7] || "0").substring(0, 3);
|
|
4605
|
+
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);
|
|
4612
4606
|
}
|
|
4613
4607
|
}
|
|
4614
|
-
return new Date(
|
|
4608
|
+
return new Date(b);
|
|
4615
4609
|
}(h), this.init();
|
|
4616
|
-
},
|
|
4610
|
+
}, _.init = function() {
|
|
4617
4611
|
var h = this.$d;
|
|
4618
4612
|
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();
|
|
4619
|
-
},
|
|
4620
|
-
return
|
|
4621
|
-
},
|
|
4613
|
+
}, _.$utils = function() {
|
|
4614
|
+
return C;
|
|
4615
|
+
}, _.isValid = function() {
|
|
4622
4616
|
return this.$d.toString() !== g;
|
|
4623
|
-
},
|
|
4624
|
-
var
|
|
4625
|
-
return this.startOf(E) <=
|
|
4626
|
-
},
|
|
4617
|
+
}, _.isSame = function(h, E) {
|
|
4618
|
+
var b = j(h);
|
|
4619
|
+
return this.startOf(E) <= b && b <= this.endOf(E);
|
|
4620
|
+
}, _.isAfter = function(h, E) {
|
|
4627
4621
|
return j(h) < this.startOf(E);
|
|
4628
|
-
},
|
|
4622
|
+
}, _.isBefore = function(h, E) {
|
|
4629
4623
|
return this.endOf(E) < j(h);
|
|
4630
|
-
},
|
|
4631
|
-
return
|
|
4632
|
-
},
|
|
4624
|
+
}, _.$g = function(h, E, b) {
|
|
4625
|
+
return C.u(h) ? this[E] : this.set(b, h);
|
|
4626
|
+
}, _.unix = function() {
|
|
4633
4627
|
return Math.floor(this.valueOf() / 1e3);
|
|
4634
|
-
},
|
|
4628
|
+
}, _.valueOf = function() {
|
|
4635
4629
|
return this.$d.getTime();
|
|
4636
|
-
},
|
|
4637
|
-
var
|
|
4638
|
-
var
|
|
4639
|
-
return
|
|
4640
|
-
},
|
|
4641
|
-
return
|
|
4642
|
-
},
|
|
4643
|
-
switch (
|
|
4644
|
-
case
|
|
4645
|
-
return
|
|
4630
|
+
}, _.startOf = function(h, E) {
|
|
4631
|
+
var b = this, L = !!C.u(E) || E, O = C.p(h), v = function(Y, ne) {
|
|
4632
|
+
var ee = C.w(b.$u ? Date.UTC(b.$y, ne, Y) : new Date(b.$y, ne, Y), b);
|
|
4633
|
+
return L ? ee : ee.endOf(u);
|
|
4634
|
+
}, z = function(Y, ne) {
|
|
4635
|
+
return C.w(b.toDate()[Y].apply(b.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), b);
|
|
4636
|
+
}, P = this.$W, q = this.$M, D = this.$D, d = "set" + (this.$u ? "UTC" : "");
|
|
4637
|
+
switch (O) {
|
|
4638
|
+
case A:
|
|
4639
|
+
return L ? v(1, 0) : v(31, 11);
|
|
4646
4640
|
case m:
|
|
4647
|
-
return
|
|
4641
|
+
return L ? v(1, q) : v(0, q + 1);
|
|
4648
4642
|
case f:
|
|
4649
|
-
var
|
|
4650
|
-
return
|
|
4643
|
+
var G = this.$locale().weekStart || 0, X = (P < G ? P + 7 : P) - G;
|
|
4644
|
+
return v(L ? D - X : D + (6 - X), q);
|
|
4651
4645
|
case u:
|
|
4652
4646
|
case x:
|
|
4653
|
-
return
|
|
4647
|
+
return z(d + "Hours", 0);
|
|
4654
4648
|
case c:
|
|
4655
|
-
return
|
|
4649
|
+
return z(d + "Minutes", 1);
|
|
4656
4650
|
case a:
|
|
4657
|
-
return
|
|
4651
|
+
return z(d + "Seconds", 2);
|
|
4658
4652
|
case l:
|
|
4659
|
-
return
|
|
4653
|
+
return z(d + "Milliseconds", 3);
|
|
4660
4654
|
default:
|
|
4661
4655
|
return this.clone();
|
|
4662
4656
|
}
|
|
4663
|
-
},
|
|
4657
|
+
}, _.endOf = function(h) {
|
|
4664
4658
|
return this.startOf(h, !1);
|
|
4665
|
-
},
|
|
4666
|
-
var
|
|
4667
|
-
if (
|
|
4668
|
-
var
|
|
4669
|
-
|
|
4659
|
+
}, _.$set = function(h, E) {
|
|
4660
|
+
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;
|
|
4661
|
+
if (L === m || L === A) {
|
|
4662
|
+
var P = this.clone().set(x, 1);
|
|
4663
|
+
P.$d[v](z), P.init(), this.$d = P.set(x, Math.min(this.$D, P.daysInMonth())).$d;
|
|
4670
4664
|
} else
|
|
4671
|
-
|
|
4665
|
+
v && this.$d[v](z);
|
|
4672
4666
|
return this.init(), this;
|
|
4673
|
-
},
|
|
4667
|
+
}, _.set = function(h, E) {
|
|
4674
4668
|
return this.clone().$set(h, E);
|
|
4675
|
-
},
|
|
4676
|
-
return this[
|
|
4677
|
-
},
|
|
4678
|
-
var
|
|
4669
|
+
}, _.get = function(h) {
|
|
4670
|
+
return this[C.p(h)]();
|
|
4671
|
+
}, _.add = function(h, E) {
|
|
4672
|
+
var b, L = this;
|
|
4679
4673
|
h = Number(h);
|
|
4680
|
-
var
|
|
4681
|
-
var
|
|
4682
|
-
return
|
|
4674
|
+
var O = C.p(E), v = function(q) {
|
|
4675
|
+
var D = j(L);
|
|
4676
|
+
return C.w(D.date(D.date() + Math.round(q * h)), L);
|
|
4683
4677
|
};
|
|
4684
|
-
if (
|
|
4678
|
+
if (O === m)
|
|
4685
4679
|
return this.set(m, this.$M + h);
|
|
4686
|
-
if (
|
|
4687
|
-
return this.set(
|
|
4688
|
-
if (
|
|
4689
|
-
return
|
|
4690
|
-
if (
|
|
4691
|
-
return
|
|
4692
|
-
var
|
|
4693
|
-
return
|
|
4694
|
-
},
|
|
4680
|
+
if (O === A)
|
|
4681
|
+
return this.set(A, this.$y + h);
|
|
4682
|
+
if (O === u)
|
|
4683
|
+
return v(1);
|
|
4684
|
+
if (O === f)
|
|
4685
|
+
return v(7);
|
|
4686
|
+
var z = (b = {}, b[a] = r, b[c] = i, b[l] = n, b)[O] || 1, P = this.$d.getTime() + h * z;
|
|
4687
|
+
return C.w(P, this);
|
|
4688
|
+
}, _.subtract = function(h, E) {
|
|
4695
4689
|
return this.add(-1 * h, E);
|
|
4696
|
-
},
|
|
4697
|
-
var E = this,
|
|
4690
|
+
}, _.format = function(h) {
|
|
4691
|
+
var E = this, b = this.$locale();
|
|
4698
4692
|
if (!this.isValid())
|
|
4699
|
-
return
|
|
4700
|
-
var
|
|
4701
|
-
return
|
|
4702
|
-
},
|
|
4703
|
-
return
|
|
4704
|
-
},
|
|
4705
|
-
var
|
|
4706
|
-
return
|
|
4693
|
+
return b.invalidDate || g;
|
|
4694
|
+
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, G = function(ne, ee, he, le) {
|
|
4695
|
+
return ne && (ne[ee] || ne(E, L)) || he[ee].slice(0, le);
|
|
4696
|
+
}, X = function(ne) {
|
|
4697
|
+
return C.s(v % 12 || 12, ne, "0");
|
|
4698
|
+
}, Y = d || function(ne, ee, he) {
|
|
4699
|
+
var le = ne < 12 ? "AM" : "PM";
|
|
4700
|
+
return he ? le.toLowerCase() : le;
|
|
4707
4701
|
};
|
|
4708
|
-
return
|
|
4709
|
-
return
|
|
4710
|
-
switch (
|
|
4702
|
+
return L.replace(U, function(ne, ee) {
|
|
4703
|
+
return ee || function(he) {
|
|
4704
|
+
switch (he) {
|
|
4711
4705
|
case "YY":
|
|
4712
4706
|
return String(E.$y).slice(-2);
|
|
4713
4707
|
case "YYYY":
|
|
4714
|
-
return
|
|
4708
|
+
return C.s(E.$y, 4, "0");
|
|
4715
4709
|
case "M":
|
|
4716
|
-
return
|
|
4710
|
+
return P + 1;
|
|
4717
4711
|
case "MM":
|
|
4718
|
-
return
|
|
4712
|
+
return C.s(P + 1, 2, "0");
|
|
4719
4713
|
case "MMM":
|
|
4720
|
-
return
|
|
4714
|
+
return G(b.monthsShort, P, D, 3);
|
|
4721
4715
|
case "MMMM":
|
|
4722
|
-
return
|
|
4716
|
+
return G(D, P);
|
|
4723
4717
|
case "D":
|
|
4724
4718
|
return E.$D;
|
|
4725
4719
|
case "DD":
|
|
4726
|
-
return
|
|
4720
|
+
return C.s(E.$D, 2, "0");
|
|
4727
4721
|
case "d":
|
|
4728
4722
|
return String(E.$W);
|
|
4729
4723
|
case "dd":
|
|
4730
|
-
return
|
|
4724
|
+
return G(b.weekdaysMin, E.$W, q, 2);
|
|
4731
4725
|
case "ddd":
|
|
4732
|
-
return
|
|
4726
|
+
return G(b.weekdaysShort, E.$W, q, 3);
|
|
4733
4727
|
case "dddd":
|
|
4734
4728
|
return q[E.$W];
|
|
4735
4729
|
case "H":
|
|
4736
|
-
return String(
|
|
4730
|
+
return String(v);
|
|
4737
4731
|
case "HH":
|
|
4738
|
-
return
|
|
4732
|
+
return C.s(v, 2, "0");
|
|
4739
4733
|
case "h":
|
|
4740
|
-
return
|
|
4734
|
+
return X(1);
|
|
4741
4735
|
case "hh":
|
|
4742
|
-
return
|
|
4736
|
+
return X(2);
|
|
4743
4737
|
case "a":
|
|
4744
|
-
return
|
|
4738
|
+
return Y(v, z, !0);
|
|
4745
4739
|
case "A":
|
|
4746
|
-
return
|
|
4740
|
+
return Y(v, z, !1);
|
|
4747
4741
|
case "m":
|
|
4748
|
-
return String(
|
|
4742
|
+
return String(z);
|
|
4749
4743
|
case "mm":
|
|
4750
|
-
return
|
|
4744
|
+
return C.s(z, 2, "0");
|
|
4751
4745
|
case "s":
|
|
4752
4746
|
return String(E.$s);
|
|
4753
4747
|
case "ss":
|
|
4754
|
-
return
|
|
4748
|
+
return C.s(E.$s, 2, "0");
|
|
4755
4749
|
case "SSS":
|
|
4756
|
-
return
|
|
4750
|
+
return C.s(E.$ms, 3, "0");
|
|
4757
4751
|
case "Z":
|
|
4758
|
-
return
|
|
4752
|
+
return O;
|
|
4759
4753
|
}
|
|
4760
4754
|
return null;
|
|
4761
|
-
}(
|
|
4755
|
+
}(ne) || O.replace(":", "");
|
|
4762
4756
|
});
|
|
4763
|
-
},
|
|
4757
|
+
}, _.utcOffset = function() {
|
|
4764
4758
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4765
|
-
},
|
|
4766
|
-
var
|
|
4767
|
-
return
|
|
4759
|
+
}, _.diff = function(h, E, b) {
|
|
4760
|
+
var L, O = this, v = C.p(E), z = j(h), P = (z.utcOffset() - this.utcOffset()) * r, q = this - z, D = function() {
|
|
4761
|
+
return C.m(O, z);
|
|
4768
4762
|
};
|
|
4769
|
-
switch (
|
|
4770
|
-
case
|
|
4771
|
-
|
|
4763
|
+
switch (v) {
|
|
4764
|
+
case A:
|
|
4765
|
+
L = D() / 12;
|
|
4772
4766
|
break;
|
|
4773
4767
|
case m:
|
|
4774
|
-
|
|
4768
|
+
L = D();
|
|
4775
4769
|
break;
|
|
4776
4770
|
case y:
|
|
4777
|
-
|
|
4771
|
+
L = D() / 3;
|
|
4778
4772
|
break;
|
|
4779
4773
|
case f:
|
|
4780
|
-
|
|
4774
|
+
L = (q - P) / 6048e5;
|
|
4781
4775
|
break;
|
|
4782
4776
|
case u:
|
|
4783
|
-
|
|
4777
|
+
L = (q - P) / 864e5;
|
|
4784
4778
|
break;
|
|
4785
4779
|
case c:
|
|
4786
|
-
|
|
4780
|
+
L = q / i;
|
|
4787
4781
|
break;
|
|
4788
4782
|
case a:
|
|
4789
|
-
|
|
4783
|
+
L = q / r;
|
|
4790
4784
|
break;
|
|
4791
4785
|
case l:
|
|
4792
|
-
|
|
4786
|
+
L = q / n;
|
|
4793
4787
|
break;
|
|
4794
4788
|
default:
|
|
4795
|
-
|
|
4789
|
+
L = q;
|
|
4796
4790
|
}
|
|
4797
|
-
return
|
|
4798
|
-
},
|
|
4791
|
+
return b ? L : C.a(L);
|
|
4792
|
+
}, _.daysInMonth = function() {
|
|
4799
4793
|
return this.endOf(m).$D;
|
|
4800
|
-
},
|
|
4801
|
-
return
|
|
4802
|
-
},
|
|
4794
|
+
}, _.$locale = function() {
|
|
4795
|
+
return W[this.$L];
|
|
4796
|
+
}, _.locale = function(h, E) {
|
|
4803
4797
|
if (!h)
|
|
4804
4798
|
return this.$L;
|
|
4805
|
-
var
|
|
4806
|
-
return
|
|
4807
|
-
},
|
|
4808
|
-
return
|
|
4809
|
-
},
|
|
4799
|
+
var b = this.clone(), L = K(h, E, !0);
|
|
4800
|
+
return L && (b.$L = L), b;
|
|
4801
|
+
}, _.clone = function() {
|
|
4802
|
+
return C.w(this.$d, this);
|
|
4803
|
+
}, _.toDate = function() {
|
|
4810
4804
|
return new Date(this.valueOf());
|
|
4811
|
-
},
|
|
4805
|
+
}, _.toJSON = function() {
|
|
4812
4806
|
return this.isValid() ? this.toISOString() : null;
|
|
4813
|
-
},
|
|
4807
|
+
}, _.toISOString = function() {
|
|
4814
4808
|
return this.$d.toISOString();
|
|
4815
|
-
},
|
|
4809
|
+
}, _.toString = function() {
|
|
4816
4810
|
return this.$d.toUTCString();
|
|
4817
|
-
},
|
|
4818
|
-
}(),
|
|
4819
|
-
return j.prototype =
|
|
4820
|
-
|
|
4821
|
-
return this.$g(
|
|
4811
|
+
}, M;
|
|
4812
|
+
}(), Ee = se.prototype;
|
|
4813
|
+
return j.prototype = Ee, [["$ms", o], ["$s", l], ["$m", a], ["$H", c], ["$W", u], ["$M", m], ["$y", A], ["$D", x]].forEach(function(M) {
|
|
4814
|
+
Ee[M[1]] = function(_) {
|
|
4815
|
+
return this.$g(_, M[0], M[1]);
|
|
4822
4816
|
};
|
|
4823
|
-
}), j.extend = function(
|
|
4824
|
-
return
|
|
4825
|
-
}, j.locale = K, j.isDayjs =
|
|
4826
|
-
return j(1e3 *
|
|
4827
|
-
}, j.en =
|
|
4817
|
+
}), j.extend = function(M, _) {
|
|
4818
|
+
return M.$i || (M(_, se, j), M.$i = !0), j;
|
|
4819
|
+
}, j.locale = K, j.isDayjs = fe, j.unix = function(M) {
|
|
4820
|
+
return j(1e3 * M);
|
|
4821
|
+
}, j.en = W[I], j.Ls = W, j.p = {}, j;
|
|
4828
4822
|
});
|
|
4829
4823
|
})(Ii);
|
|
4830
4824
|
var Ha = Ii.exports;
|
|
@@ -4838,11 +4832,11 @@ var Pi = { exports: {} };
|
|
|
4838
4832
|
return function(o, l, a) {
|
|
4839
4833
|
var c = l.prototype;
|
|
4840
4834
|
a.utc = function(g) {
|
|
4841
|
-
var
|
|
4842
|
-
return new l(
|
|
4835
|
+
var N = { date: g, utc: !0, args: arguments };
|
|
4836
|
+
return new l(N);
|
|
4843
4837
|
}, c.utc = function(g) {
|
|
4844
|
-
var
|
|
4845
|
-
return g ?
|
|
4838
|
+
var N = a(this.toDate(), { locale: this.$L, utc: !0 });
|
|
4839
|
+
return g ? N.add(this.utcOffset(), n) : N;
|
|
4846
4840
|
}, c.local = function() {
|
|
4847
4841
|
return a(this.toDate(), { locale: this.$L, utc: !1 });
|
|
4848
4842
|
};
|
|
@@ -4859,33 +4853,33 @@ var Pi = { exports: {} };
|
|
|
4859
4853
|
f.call(this);
|
|
4860
4854
|
};
|
|
4861
4855
|
var m = c.utcOffset;
|
|
4862
|
-
c.utcOffset = function(g,
|
|
4863
|
-
var
|
|
4864
|
-
if (
|
|
4865
|
-
return this.$u ? 0 :
|
|
4866
|
-
if (typeof g == "string" && (g = function(
|
|
4867
|
-
|
|
4868
|
-
var
|
|
4869
|
-
if (!
|
|
4856
|
+
c.utcOffset = function(g, N) {
|
|
4857
|
+
var U = this.$utils().u;
|
|
4858
|
+
if (U(g))
|
|
4859
|
+
return this.$u ? 0 : U(this.$offset) ? m.call(this) : this.$offset;
|
|
4860
|
+
if (typeof g == "string" && (g = function(I) {
|
|
4861
|
+
I === void 0 && (I = "");
|
|
4862
|
+
var W = I.match(r);
|
|
4863
|
+
if (!W)
|
|
4870
4864
|
return null;
|
|
4871
|
-
var
|
|
4872
|
-
return K === 0 ? 0 :
|
|
4865
|
+
var oe = ("" + W[0]).match(i) || ["-", 0, 0], fe = oe[0], K = 60 * +oe[1] + +oe[2];
|
|
4866
|
+
return K === 0 ? 0 : fe === "+" ? K : -K;
|
|
4873
4867
|
}(g), g === null))
|
|
4874
4868
|
return this;
|
|
4875
|
-
var
|
|
4876
|
-
if (
|
|
4877
|
-
return
|
|
4869
|
+
var V = Math.abs(g) <= 16 ? 60 * g : g, R = this;
|
|
4870
|
+
if (N)
|
|
4871
|
+
return R.$offset = V, R.$u = g === 0, R;
|
|
4878
4872
|
if (g !== 0) {
|
|
4879
|
-
var
|
|
4880
|
-
(
|
|
4873
|
+
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4874
|
+
(R = this.local().add(V + H, n)).$offset = V, R.$x.$localOffset = H;
|
|
4881
4875
|
} else
|
|
4882
|
-
|
|
4883
|
-
return
|
|
4876
|
+
R = this.utc();
|
|
4877
|
+
return R;
|
|
4884
4878
|
};
|
|
4885
4879
|
var y = c.format;
|
|
4886
4880
|
c.format = function(g) {
|
|
4887
|
-
var
|
|
4888
|
-
return y.call(this,
|
|
4881
|
+
var N = g || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
4882
|
+
return y.call(this, N);
|
|
4889
4883
|
}, c.valueOf = function() {
|
|
4890
4884
|
var g = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
4891
4885
|
return this.$d.valueOf() - 6e4 * g;
|
|
@@ -4896,16 +4890,16 @@ var Pi = { exports: {} };
|
|
|
4896
4890
|
}, c.toString = function() {
|
|
4897
4891
|
return this.toDate().toUTCString();
|
|
4898
4892
|
};
|
|
4899
|
-
var
|
|
4893
|
+
var A = c.toDate;
|
|
4900
4894
|
c.toDate = function(g) {
|
|
4901
|
-
return g === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
4895
|
+
return g === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
|
|
4902
4896
|
};
|
|
4903
4897
|
var x = c.diff;
|
|
4904
|
-
c.diff = function(g,
|
|
4898
|
+
c.diff = function(g, N, U) {
|
|
4905
4899
|
if (g && this.$u === g.$u)
|
|
4906
|
-
return x.call(this, g,
|
|
4907
|
-
var
|
|
4908
|
-
return x.call(
|
|
4900
|
+
return x.call(this, g, N, U);
|
|
4901
|
+
var V = this.local(), R = a(g).local();
|
|
4902
|
+
return x.call(V, R, N, U);
|
|
4909
4903
|
};
|
|
4910
4904
|
};
|
|
4911
4905
|
});
|
|
@@ -4939,67 +4933,67 @@ function Da(e, t, n) {
|
|
|
4939
4933
|
}
|
|
4940
4934
|
}
|
|
4941
4935
|
function Ba(e) {
|
|
4942
|
-
Xi(e, "svelte-
|
|
4936
|
+
Xi(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}');
|
|
4943
4937
|
}
|
|
4944
|
-
const $a = (e) => ({}), $r = (e) => ({}), Ua = (e) => ({}), Ur = (e) => ({}), ka = (e) => ({}), kr = (e) => ({}),
|
|
4945
|
-
function
|
|
4946
|
-
let t, n, r, i, o, l, a, c, u, f, m, y,
|
|
4938
|
+
const $a = (e) => ({}), $r = (e) => ({}), Ua = (e) => ({}), Ur = (e) => ({}), ka = (e) => ({}), kr = (e) => ({}), Fa = (e) => ({}), Fr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4939
|
+
function Gr(e) {
|
|
4940
|
+
let t, n, r, i, o, l, a, c, u, f, m, y, A = (
|
|
4947
4941
|
/*$_*/
|
|
4948
4942
|
e[8]("sessionExpirationHeader") + ""
|
|
4949
|
-
), x, g,
|
|
4943
|
+
), x, g, N, U, V, R, H, I, W, oe, fe, K, j, C, se = (
|
|
4950
4944
|
/*$_*/
|
|
4951
4945
|
e[8]("sessionExpirationEnd") + ""
|
|
4952
|
-
),
|
|
4953
|
-
const
|
|
4946
|
+
), Ee, M, _, h, E, b, L, O, v, z, P;
|
|
4947
|
+
const q = (
|
|
4954
4948
|
/*#slots*/
|
|
4955
4949
|
e[23].icon
|
|
4956
|
-
),
|
|
4957
|
-
|
|
4950
|
+
), D = Dt(
|
|
4951
|
+
q,
|
|
4958
4952
|
e,
|
|
4959
4953
|
/*$$scope*/
|
|
4960
4954
|
e[22],
|
|
4961
|
-
|
|
4962
|
-
),
|
|
4955
|
+
Fr
|
|
4956
|
+
), d = D || Ga(e), G = (
|
|
4963
4957
|
/*#slots*/
|
|
4964
4958
|
e[23].title
|
|
4965
|
-
),
|
|
4966
|
-
|
|
4959
|
+
), X = Dt(
|
|
4960
|
+
G,
|
|
4967
4961
|
e,
|
|
4968
4962
|
/*$$scope*/
|
|
4969
4963
|
e[22],
|
|
4970
4964
|
kr
|
|
4971
|
-
),
|
|
4965
|
+
), Y = (
|
|
4972
4966
|
/*#slots*/
|
|
4973
4967
|
e[23].text
|
|
4974
|
-
),
|
|
4975
|
-
|
|
4968
|
+
), ne = Dt(
|
|
4969
|
+
Y,
|
|
4976
4970
|
e,
|
|
4977
4971
|
/*$$scope*/
|
|
4978
4972
|
e[22],
|
|
4979
4973
|
Ur
|
|
4980
|
-
),
|
|
4981
|
-
function
|
|
4974
|
+
), ee = ne || ja(e), he = [Wa, za], le = [];
|
|
4975
|
+
function Ae(J, re) {
|
|
4982
4976
|
return (
|
|
4983
4977
|
/*showLoaderButton*/
|
|
4984
|
-
|
|
4978
|
+
J[6] ? 0 : 1
|
|
4985
4979
|
);
|
|
4986
4980
|
}
|
|
4987
|
-
return h =
|
|
4981
|
+
return h = Ae(e), E = le[h] = he[h](e), {
|
|
4988
4982
|
c() {
|
|
4989
|
-
t =
|
|
4990
|
-
e[6]
|
|
4983
|
+
t = te("div"), n = te("div"), r = te("div"), i = te("div"), o = Te("svg"), l = Te("defs"), a = Te("mask"), c = Te("circle"), u = Te("rect"), f = Te("circle"), m = Te("circle"), y = Pe(), x = Ge(A), g = Pe(), N = te("div"), U = Te("svg"), V = Te("path"), R = Pe(), H = te("div"), I = te("div"), d && d.c(), W = Pe(), X && X.c(), oe = Pe(), ee && ee.c(), fe = Pe(), K = te("div"), j = te("button"), C = te("span"), Ee = Ge(se), M = Pe(), _ = 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*/
|
|
4984
|
+
(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"), et(() => (
|
|
4991
4985
|
/*div7_elementresize_handler*/
|
|
4992
4986
|
e[25].call(t)
|
|
4993
4987
|
));
|
|
4994
4988
|
},
|
|
4995
|
-
m(
|
|
4996
|
-
|
|
4989
|
+
m(J, re) {
|
|
4990
|
+
Ue(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 = Qi(
|
|
4997
4991
|
t,
|
|
4998
4992
|
/*div7_elementresize_handler*/
|
|
4999
4993
|
e[25].bind(t)
|
|
5000
|
-
), v = !0,
|
|
4994
|
+
), v = !0, z || (P = [
|
|
5001
4995
|
Je(
|
|
5002
|
-
|
|
4996
|
+
U,
|
|
5003
4997
|
"click",
|
|
5004
4998
|
/*goToHome*/
|
|
5005
4999
|
e[11]
|
|
@@ -5011,7 +5005,7 @@ function Fr(e) {
|
|
|
5011
5005
|
e[11]
|
|
5012
5006
|
),
|
|
5013
5007
|
Je(
|
|
5014
|
-
|
|
5008
|
+
_,
|
|
5015
5009
|
"click",
|
|
5016
5010
|
/*renewSession*/
|
|
5017
5011
|
e[9]
|
|
@@ -5022,93 +5016,93 @@ function Fr(e) {
|
|
|
5022
5016
|
/*outOfModalClick*/
|
|
5023
5017
|
e[10]
|
|
5024
5018
|
)
|
|
5025
|
-
],
|
|
5019
|
+
], z = !0);
|
|
5026
5020
|
},
|
|
5027
|
-
p(
|
|
5028
|
-
e =
|
|
5029
|
-
256) &&
|
|
5030
|
-
e[8]("sessionExpirationHeader") + "") && Et(x,
|
|
5021
|
+
p(J, re) {
|
|
5022
|
+
e = J, (!v || re[0] & /*$_*/
|
|
5023
|
+
256) && A !== (A = /*$_*/
|
|
5024
|
+
e[8]("sessionExpirationHeader") + "") && Et(x, A), D ? D.p && (!v || re[0] & /*$$scope*/
|
|
5031
5025
|
4194304) && $t(
|
|
5026
|
+
D,
|
|
5032
5027
|
q,
|
|
5033
|
-
R,
|
|
5034
5028
|
e,
|
|
5035
5029
|
/*$$scope*/
|
|
5036
5030
|
e[22],
|
|
5037
5031
|
v ? Bt(
|
|
5038
|
-
|
|
5032
|
+
q,
|
|
5039
5033
|
/*$$scope*/
|
|
5040
5034
|
e[22],
|
|
5041
|
-
|
|
5042
|
-
|
|
5035
|
+
re,
|
|
5036
|
+
Fa
|
|
5043
5037
|
) : Ut(
|
|
5044
5038
|
/*$$scope*/
|
|
5045
5039
|
e[22]
|
|
5046
5040
|
),
|
|
5047
|
-
|
|
5048
|
-
) :
|
|
5049
|
-
8) &&
|
|
5041
|
+
Fr
|
|
5042
|
+
) : d && d.p && (!v || re[0] & /*assetsurl*/
|
|
5043
|
+
8) && d.p(e, v ? re : [-1, -1]), X && X.p && (!v || re[0] & /*$$scope*/
|
|
5050
5044
|
4194304) && $t(
|
|
5051
|
-
|
|
5052
|
-
|
|
5045
|
+
X,
|
|
5046
|
+
G,
|
|
5053
5047
|
e,
|
|
5054
5048
|
/*$$scope*/
|
|
5055
5049
|
e[22],
|
|
5056
5050
|
v ? Bt(
|
|
5057
|
-
|
|
5051
|
+
G,
|
|
5058
5052
|
/*$$scope*/
|
|
5059
5053
|
e[22],
|
|
5060
|
-
|
|
5054
|
+
re,
|
|
5061
5055
|
ka
|
|
5062
5056
|
) : Ut(
|
|
5063
5057
|
/*$$scope*/
|
|
5064
5058
|
e[22]
|
|
5065
5059
|
),
|
|
5066
5060
|
kr
|
|
5067
|
-
),
|
|
5061
|
+
), ne ? ne.p && (!v || re[0] & /*$$scope*/
|
|
5068
5062
|
4194304) && $t(
|
|
5069
|
-
|
|
5070
|
-
|
|
5063
|
+
ne,
|
|
5064
|
+
Y,
|
|
5071
5065
|
e,
|
|
5072
5066
|
/*$$scope*/
|
|
5073
5067
|
e[22],
|
|
5074
5068
|
v ? Bt(
|
|
5075
|
-
|
|
5069
|
+
Y,
|
|
5076
5070
|
/*$$scope*/
|
|
5077
5071
|
e[22],
|
|
5078
|
-
|
|
5072
|
+
re,
|
|
5079
5073
|
Ua
|
|
5080
5074
|
) : Ut(
|
|
5081
5075
|
/*$$scope*/
|
|
5082
5076
|
e[22]
|
|
5083
5077
|
),
|
|
5084
5078
|
Ur
|
|
5085
|
-
) :
|
|
5086
|
-
384) &&
|
|
5079
|
+
) : ee && ee.p && (!v || re[0] & /*$_, timeLeft*/
|
|
5080
|
+
384) && ee.p(e, v ? re : [-1, -1]), (!v || re[0] & /*$_*/
|
|
5087
5081
|
256) && se !== (se = /*$_*/
|
|
5088
|
-
e[8]("sessionExpirationEnd") + "") && Et(
|
|
5089
|
-
let
|
|
5090
|
-
h =
|
|
5091
|
-
|
|
5092
|
-
}), ei(), E =
|
|
5093
|
-
64
|
|
5094
|
-
e[6]);
|
|
5082
|
+
e[8]("sessionExpirationEnd") + "") && Et(Ee, se);
|
|
5083
|
+
let Oe = h;
|
|
5084
|
+
h = Ae(e), h === Oe ? le[h].p(e, re) : (Kr(), De(le[Oe], 1, 1, () => {
|
|
5085
|
+
le[Oe] = null;
|
|
5086
|
+
}), ei(), E = le[h], E ? E.p(e, re) : (E = le[h] = he[h](e), E.c()), Le(E, 1), E.m(_, null)), (!v || re[0] & /*showLoaderButton*/
|
|
5087
|
+
64 && b !== (b = "ModalButton Primary " + /*showLoaderButton*/
|
|
5088
|
+
(e[6] ? "Disabled" : ""))) && w(_, "class", b);
|
|
5095
5089
|
},
|
|
5096
|
-
i(
|
|
5097
|
-
v || (
|
|
5098
|
-
v && (
|
|
5090
|
+
i(J) {
|
|
5091
|
+
v || (Le(d, J), Le(X, J), Le(ee, J), Le(E), J && et(() => {
|
|
5092
|
+
v && (O || (O = ur(t, cr, { duration: (
|
|
5099
5093
|
/*duration*/
|
|
5100
5094
|
e[2]
|
|
5101
|
-
) }, !0)),
|
|
5095
|
+
) }, !0)), O.run(1));
|
|
5102
5096
|
}), v = !0);
|
|
5103
5097
|
},
|
|
5104
|
-
o(
|
|
5105
|
-
|
|
5098
|
+
o(J) {
|
|
5099
|
+
De(d, J), De(X, J), De(ee, J), De(E), J && (O || (O = ur(t, cr, { duration: (
|
|
5106
5100
|
/*duration*/
|
|
5107
5101
|
e[2]
|
|
5108
|
-
) }, !1)),
|
|
5102
|
+
) }, !1)), O.run(0)), v = !1;
|
|
5109
5103
|
},
|
|
5110
|
-
d(
|
|
5111
|
-
|
|
5104
|
+
d(J) {
|
|
5105
|
+
J && we(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, $e(P);
|
|
5112
5106
|
}
|
|
5113
5107
|
};
|
|
5114
5108
|
}
|
|
@@ -5116,23 +5110,23 @@ function jr(e) {
|
|
|
5116
5110
|
let t, n;
|
|
5117
5111
|
return {
|
|
5118
5112
|
c() {
|
|
5119
|
-
t =
|
|
5120
|
-
e[3]}/set-timeout-icon.png`) ||
|
|
5113
|
+
t = te("img"), or(t.src, n = `${/*assetsurl*/
|
|
5114
|
+
e[3]}/set-timeout-icon.png`) || w(t, "src", n), w(t, "width", "300px"), w(t, "alt", "error");
|
|
5121
5115
|
},
|
|
5122
5116
|
m(r, i) {
|
|
5123
|
-
|
|
5117
|
+
Ue(r, t, i);
|
|
5124
5118
|
},
|
|
5125
5119
|
p(r, i) {
|
|
5126
5120
|
i[0] & /*assetsurl*/
|
|
5127
5121
|
8 && !or(t.src, n = `${/*assetsurl*/
|
|
5128
|
-
r[3]}/set-timeout-icon.png`) &&
|
|
5122
|
+
r[3]}/set-timeout-icon.png`) && w(t, "src", n);
|
|
5129
5123
|
},
|
|
5130
5124
|
d(r) {
|
|
5131
5125
|
r && we(t);
|
|
5132
5126
|
}
|
|
5133
5127
|
};
|
|
5134
5128
|
}
|
|
5135
|
-
function
|
|
5129
|
+
function Ga(e) {
|
|
5136
5130
|
let t, n = (
|
|
5137
5131
|
/*assetsurl*/
|
|
5138
5132
|
e[3] && jr(e)
|
|
@@ -5142,7 +5136,7 @@ function Fa(e) {
|
|
|
5142
5136
|
n && n.c(), t = Zi();
|
|
5143
5137
|
},
|
|
5144
5138
|
m(r, i) {
|
|
5145
|
-
n && n.m(r, i),
|
|
5139
|
+
n && n.m(r, i), Ue(r, t, i);
|
|
5146
5140
|
},
|
|
5147
5141
|
p(r, i) {
|
|
5148
5142
|
/*assetsurl*/
|
|
@@ -5166,10 +5160,10 @@ function ja(e) {
|
|
|
5166
5160
|
) + "";
|
|
5167
5161
|
return {
|
|
5168
5162
|
c() {
|
|
5169
|
-
t =
|
|
5163
|
+
t = te("span"), n = te("p"), i = Ge(r), o = Pe(), l = te("p"), w(t, "class", "CashierSessionExpirationText");
|
|
5170
5164
|
},
|
|
5171
5165
|
m(c, u) {
|
|
5172
|
-
|
|
5166
|
+
Ue(c, t, u), B(t, n), B(n, i), B(t, o), B(t, l), l.innerHTML = a;
|
|
5173
5167
|
},
|
|
5174
5168
|
p(c, u) {
|
|
5175
5169
|
u[0] & /*$_*/
|
|
@@ -5230,10 +5224,10 @@ function za(e) {
|
|
|
5230
5224
|
256) && i.p(o, t ? l : [-1, -1]);
|
|
5231
5225
|
},
|
|
5232
5226
|
i(o) {
|
|
5233
|
-
t || (
|
|
5227
|
+
t || (Le(i, o), t = !0);
|
|
5234
5228
|
},
|
|
5235
5229
|
o(o) {
|
|
5236
|
-
|
|
5230
|
+
De(i, o), t = !1;
|
|
5237
5231
|
},
|
|
5238
5232
|
d(o) {
|
|
5239
5233
|
i && i.d(o);
|
|
@@ -5247,18 +5241,18 @@ function Wa(e) {
|
|
|
5247
5241
|
), a;
|
|
5248
5242
|
return {
|
|
5249
5243
|
c() {
|
|
5250
|
-
t =
|
|
5244
|
+
t = te("div"), n = Te("svg"), r = Te("path"), i = Pe(), o = te("span"), a = Ge(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");
|
|
5251
5245
|
},
|
|
5252
5246
|
m(c, u) {
|
|
5253
|
-
|
|
5247
|
+
Ue(c, t, u), B(t, n), B(n, r), B(t, i), B(t, o), B(o, a);
|
|
5254
5248
|
},
|
|
5255
5249
|
p(c, u) {
|
|
5256
5250
|
u[0] & /*$_*/
|
|
5257
5251
|
256 && l !== (l = /*$_*/
|
|
5258
5252
|
c[8]("sessionExpirationLoadingButton") + "") && Et(a, l);
|
|
5259
5253
|
},
|
|
5260
|
-
i:
|
|
5261
|
-
o:
|
|
5254
|
+
i: ye,
|
|
5255
|
+
o: ye,
|
|
5262
5256
|
d(c) {
|
|
5263
5257
|
c && we(t);
|
|
5264
5258
|
}
|
|
@@ -5271,10 +5265,10 @@ function Va(e) {
|
|
|
5271
5265
|
), r;
|
|
5272
5266
|
return {
|
|
5273
5267
|
c() {
|
|
5274
|
-
t =
|
|
5268
|
+
t = te("span"), r = Ge(n), w(t, "class", "CashierSessionExpirationButtonText");
|
|
5275
5269
|
},
|
|
5276
5270
|
m(i, o) {
|
|
5277
|
-
|
|
5271
|
+
Ue(i, t, o), B(t, r);
|
|
5278
5272
|
},
|
|
5279
5273
|
p(i, o) {
|
|
5280
5274
|
o[0] & /*$_*/
|
|
@@ -5289,27 +5283,27 @@ function Va(e) {
|
|
|
5289
5283
|
function Xa(e) {
|
|
5290
5284
|
let t, n, r = (
|
|
5291
5285
|
/*show*/
|
|
5292
|
-
e[5] &&
|
|
5286
|
+
e[5] && Gr(e)
|
|
5293
5287
|
);
|
|
5294
5288
|
return {
|
|
5295
5289
|
c() {
|
|
5296
|
-
t =
|
|
5290
|
+
t = te("div"), r && r.c();
|
|
5297
5291
|
},
|
|
5298
5292
|
m(i, o) {
|
|
5299
|
-
|
|
5293
|
+
Ue(i, t, o), r && r.m(t, null), e[26](t), n = !0;
|
|
5300
5294
|
},
|
|
5301
5295
|
p(i, o) {
|
|
5302
5296
|
/*show*/
|
|
5303
5297
|
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5304
|
-
32 &&
|
|
5298
|
+
32 && Le(r, 1)) : (r = Gr(i), r.c(), Le(r, 1), r.m(t, null)) : r && (Kr(), De(r, 1, 1, () => {
|
|
5305
5299
|
r = null;
|
|
5306
5300
|
}), ei());
|
|
5307
5301
|
},
|
|
5308
5302
|
i(i) {
|
|
5309
|
-
n || (
|
|
5303
|
+
n || (Le(r), n = !0);
|
|
5310
5304
|
},
|
|
5311
5305
|
o(i) {
|
|
5312
|
-
|
|
5306
|
+
De(r), n = !1;
|
|
5313
5307
|
},
|
|
5314
5308
|
d(i) {
|
|
5315
5309
|
i && we(t), r && r.d(), e[26](null);
|
|
@@ -5319,154 +5313,154 @@ function Xa(e) {
|
|
|
5319
5313
|
const Ya = 90;
|
|
5320
5314
|
function Za(e, t, n) {
|
|
5321
5315
|
let r, i;
|
|
5322
|
-
sr(e, Br, (
|
|
5316
|
+
sr(e, Br, (d) => n(21, r = d)), sr(e, ca, (d) => n(8, i = d));
|
|
5323
5317
|
let { $$slots: o = {}, $$scope: l } = t;
|
|
5324
5318
|
Dr.extend(Ia);
|
|
5325
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: u } = t, { height: f } = t, { duration: m = 200 } = t, { assetsurl: y = "" } = t, { lang:
|
|
5319
|
+
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;
|
|
5326
5320
|
var se;
|
|
5327
|
-
(function(
|
|
5328
|
-
|
|
5321
|
+
(function(d) {
|
|
5322
|
+
d.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", d.Success = "Success", d.JwtTokenError = "JwtTokenError";
|
|
5329
5323
|
})(se || (se = {}));
|
|
5330
|
-
const
|
|
5331
|
-
|
|
5332
|
-
},
|
|
5324
|
+
const Ee = (d) => {
|
|
5325
|
+
d.data.type === "StartSessionCountdown" && (j = d.data.paymentMethodName);
|
|
5326
|
+
}, M = (d) => {
|
|
5333
5327
|
try {
|
|
5334
|
-
return JSON.parse(atob(
|
|
5328
|
+
return JSON.parse(atob(d.split(".")[1]));
|
|
5335
5329
|
} catch {
|
|
5336
5330
|
return null;
|
|
5337
5331
|
}
|
|
5338
|
-
},
|
|
5332
|
+
}, _ = () => {
|
|
5339
5333
|
window.postMessage(
|
|
5340
5334
|
{
|
|
5341
5335
|
type: "ErrorResponseCode",
|
|
5342
|
-
errorResponseCode:
|
|
5336
|
+
errorResponseCode: C
|
|
5343
5337
|
},
|
|
5344
5338
|
window.location.href
|
|
5345
5339
|
);
|
|
5346
|
-
}, h = (
|
|
5347
|
-
n(5,
|
|
5348
|
-
const
|
|
5349
|
-
|
|
5340
|
+
}, h = (d) => {
|
|
5341
|
+
n(5, I = !1);
|
|
5342
|
+
const G = M(d);
|
|
5343
|
+
G && (fe = G?.exp, n(7, oe = fe), K && clearInterval(K), K = setInterval(
|
|
5350
5344
|
() => {
|
|
5351
|
-
const
|
|
5352
|
-
n(7,
|
|
5345
|
+
const X = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5346
|
+
n(7, oe = fe - X), oe <= Ya && n(5, I = !0), X >= fe && (E(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5353
5347
|
},
|
|
5354
5348
|
1e3
|
|
5355
5349
|
));
|
|
5356
5350
|
}, E = () => {
|
|
5357
|
-
n(7,
|
|
5358
|
-
},
|
|
5359
|
-
if (
|
|
5351
|
+
n(7, oe = 0), n(5, I = !1), clearInterval(K);
|
|
5352
|
+
}, b = () => {
|
|
5353
|
+
if (W)
|
|
5360
5354
|
return;
|
|
5361
|
-
const
|
|
5362
|
-
n(6,
|
|
5363
|
-
const
|
|
5355
|
+
const d = new URL(`${g}/v1/player/${U}/payment/GetPaymentMethod`), G = new Headers();
|
|
5356
|
+
n(6, W = !0), G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-Client-Request-Timestamp", Dr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5357
|
+
const X = {
|
|
5364
5358
|
method: "POST",
|
|
5365
5359
|
mode: "cors",
|
|
5366
|
-
headers:
|
|
5360
|
+
headers: G,
|
|
5367
5361
|
body: JSON.stringify({
|
|
5368
|
-
PaymentMethodName: j ||
|
|
5369
|
-
Currency:
|
|
5362
|
+
PaymentMethodName: j || V,
|
|
5363
|
+
Currency: N,
|
|
5370
5364
|
XPaymentSessionToken: r
|
|
5371
5365
|
})
|
|
5372
5366
|
};
|
|
5373
|
-
fetch(
|
|
5374
|
-
if (
|
|
5367
|
+
fetch(d, X).then((Y) => Y.json()).then((Y) => {
|
|
5368
|
+
if (Y.error) {
|
|
5375
5369
|
window.postMessage(
|
|
5376
5370
|
{
|
|
5377
5371
|
type: "ShowSessionError",
|
|
5378
|
-
error:
|
|
5372
|
+
error: Y.error
|
|
5379
5373
|
},
|
|
5380
5374
|
window.location.href
|
|
5381
5375
|
), E();
|
|
5382
5376
|
return;
|
|
5383
5377
|
}
|
|
5384
|
-
if (
|
|
5385
|
-
|
|
5378
|
+
if (Y.ResponseCode === se.PlayerSessionIsNotValid || Y.ResponseCode === se.JwtTokenError) {
|
|
5379
|
+
C = Y.ResponseCode, E(), _();
|
|
5386
5380
|
return;
|
|
5387
5381
|
}
|
|
5388
|
-
if (
|
|
5389
|
-
|
|
5382
|
+
if (Y.ResponseCode !== se.Success) {
|
|
5383
|
+
C = Y.ResponseCode, E();
|
|
5390
5384
|
return;
|
|
5391
5385
|
}
|
|
5392
|
-
|
|
5393
|
-
}).finally(() => n(6,
|
|
5394
|
-
},
|
|
5395
|
-
const
|
|
5396
|
-
|
|
5397
|
-
},
|
|
5398
|
-
fetch(x).then((
|
|
5399
|
-
Object.keys(
|
|
5400
|
-
wr(
|
|
5386
|
+
Y.XPaymentSessionToken && Br.set(Y.XPaymentSessionToken);
|
|
5387
|
+
}).finally(() => n(6, W = !1));
|
|
5388
|
+
}, L = (d) => {
|
|
5389
|
+
const G = d.currentTarget;
|
|
5390
|
+
d.target === G && b();
|
|
5391
|
+
}, O = () => {
|
|
5392
|
+
fetch(x).then((G) => G.json()).then((G) => {
|
|
5393
|
+
Object.keys(G).forEach((X) => {
|
|
5394
|
+
wr(X, G[X]);
|
|
5401
5395
|
});
|
|
5402
|
-
}).catch((
|
|
5403
|
-
console.log(
|
|
5396
|
+
}).catch((G) => {
|
|
5397
|
+
console.log(G);
|
|
5404
5398
|
});
|
|
5405
|
-
},
|
|
5406
|
-
window.postMessage({ type: "Cashier:goToHome" }, window.location.href), n(5,
|
|
5399
|
+
}, v = () => {
|
|
5400
|
+
window.postMessage({ type: "Cashier:goToHome" }, window.location.href), n(5, I = !1);
|
|
5407
5401
|
};
|
|
5408
|
-
Object.keys(Ar).forEach((
|
|
5409
|
-
wr(
|
|
5402
|
+
Object.keys(Ar).forEach((d) => {
|
|
5403
|
+
wr(d, Ar[d]);
|
|
5410
5404
|
});
|
|
5411
|
-
const
|
|
5412
|
-
fa(
|
|
5405
|
+
const z = () => {
|
|
5406
|
+
fa(A);
|
|
5413
5407
|
};
|
|
5414
|
-
oo(() => (window.addEventListener("message",
|
|
5415
|
-
window.removeEventListener("message",
|
|
5408
|
+
oo(() => (window.addEventListener("message", Ee, !1), () => {
|
|
5409
|
+
window.removeEventListener("message", Ee);
|
|
5416
5410
|
})), so(() => {
|
|
5417
5411
|
clearInterval(K);
|
|
5418
5412
|
});
|
|
5419
|
-
function
|
|
5420
|
-
Xt[
|
|
5421
|
-
|
|
5413
|
+
function P(d) {
|
|
5414
|
+
Xt[d ? "unshift" : "push"](() => {
|
|
5415
|
+
H = d, n(4, H);
|
|
5422
5416
|
});
|
|
5423
5417
|
}
|
|
5424
5418
|
function q() {
|
|
5425
5419
|
u = this.clientWidth, f = this.clientHeight, n(0, u), n(1, f);
|
|
5426
5420
|
}
|
|
5427
|
-
function
|
|
5428
|
-
Xt[
|
|
5429
|
-
|
|
5421
|
+
function D(d) {
|
|
5422
|
+
Xt[d ? "unshift" : "push"](() => {
|
|
5423
|
+
H = d, n(4, H);
|
|
5430
5424
|
});
|
|
5431
5425
|
}
|
|
5432
|
-
return e.$$set = (
|
|
5433
|
-
"clientstyling" in
|
|
5426
|
+
return e.$$set = (d) => {
|
|
5427
|
+
"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);
|
|
5434
5428
|
}, e.$$.update = () => {
|
|
5435
5429
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5436
5430
|
2097152 && h(r), e.$$.dirty[0] & /*lang*/
|
|
5437
|
-
16384 &&
|
|
5438
|
-
4112 && a &&
|
|
5439
|
-
8208 && c &&
|
|
5440
|
-
1048592 &&
|
|
5441
|
-
32768 && x &&
|
|
5431
|
+
16384 && A && z(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5432
|
+
4112 && a && H && Pa(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5433
|
+
8208 && c && H && Ra(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5434
|
+
1048592 && R && H && Da(H, `${R}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5435
|
+
32768 && x && O();
|
|
5442
5436
|
}, [
|
|
5443
5437
|
u,
|
|
5444
5438
|
f,
|
|
5445
5439
|
m,
|
|
5446
5440
|
y,
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5441
|
+
H,
|
|
5442
|
+
I,
|
|
5443
|
+
W,
|
|
5444
|
+
oe,
|
|
5451
5445
|
i,
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5446
|
+
b,
|
|
5447
|
+
L,
|
|
5448
|
+
v,
|
|
5455
5449
|
a,
|
|
5456
5450
|
c,
|
|
5457
|
-
|
|
5451
|
+
A,
|
|
5458
5452
|
x,
|
|
5459
5453
|
g,
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5454
|
+
N,
|
|
5455
|
+
U,
|
|
5456
|
+
V,
|
|
5457
|
+
R,
|
|
5464
5458
|
r,
|
|
5465
5459
|
l,
|
|
5466
5460
|
o,
|
|
5467
|
-
|
|
5461
|
+
P,
|
|
5468
5462
|
q,
|
|
5469
|
-
|
|
5463
|
+
D
|
|
5470
5464
|
];
|
|
5471
5465
|
}
|
|
5472
5466
|
class qa extends Eo {
|
|
@@ -5500,79 +5494,79 @@ class qa extends Eo {
|
|
|
5500
5494
|
return this.$$.ctx[12];
|
|
5501
5495
|
}
|
|
5502
5496
|
set clientstyling(t) {
|
|
5503
|
-
this.$$set({ clientstyling: t }),
|
|
5497
|
+
this.$$set({ clientstyling: t }), de();
|
|
5504
5498
|
}
|
|
5505
5499
|
get clientstylingurl() {
|
|
5506
5500
|
return this.$$.ctx[13];
|
|
5507
5501
|
}
|
|
5508
5502
|
set clientstylingurl(t) {
|
|
5509
|
-
this.$$set({ clientstylingurl: t }),
|
|
5503
|
+
this.$$set({ clientstylingurl: t }), de();
|
|
5510
5504
|
}
|
|
5511
5505
|
get width() {
|
|
5512
5506
|
return this.$$.ctx[0];
|
|
5513
5507
|
}
|
|
5514
5508
|
set width(t) {
|
|
5515
|
-
this.$$set({ width: t }),
|
|
5509
|
+
this.$$set({ width: t }), de();
|
|
5516
5510
|
}
|
|
5517
5511
|
get height() {
|
|
5518
5512
|
return this.$$.ctx[1];
|
|
5519
5513
|
}
|
|
5520
5514
|
set height(t) {
|
|
5521
|
-
this.$$set({ height: t }),
|
|
5515
|
+
this.$$set({ height: t }), de();
|
|
5522
5516
|
}
|
|
5523
5517
|
get duration() {
|
|
5524
5518
|
return this.$$.ctx[2];
|
|
5525
5519
|
}
|
|
5526
5520
|
set duration(t) {
|
|
5527
|
-
this.$$set({ duration: t }),
|
|
5521
|
+
this.$$set({ duration: t }), de();
|
|
5528
5522
|
}
|
|
5529
5523
|
get assetsurl() {
|
|
5530
5524
|
return this.$$.ctx[3];
|
|
5531
5525
|
}
|
|
5532
5526
|
set assetsurl(t) {
|
|
5533
|
-
this.$$set({ assetsurl: t }),
|
|
5527
|
+
this.$$set({ assetsurl: t }), de();
|
|
5534
5528
|
}
|
|
5535
5529
|
get lang() {
|
|
5536
5530
|
return this.$$.ctx[14];
|
|
5537
5531
|
}
|
|
5538
5532
|
set lang(t) {
|
|
5539
|
-
this.$$set({ lang: t }),
|
|
5533
|
+
this.$$set({ lang: t }), de();
|
|
5540
5534
|
}
|
|
5541
5535
|
get translationurl() {
|
|
5542
5536
|
return this.$$.ctx[15];
|
|
5543
5537
|
}
|
|
5544
5538
|
set translationurl(t) {
|
|
5545
|
-
this.$$set({ translationurl: t }),
|
|
5539
|
+
this.$$set({ translationurl: t }), de();
|
|
5546
5540
|
}
|
|
5547
5541
|
get endpoint() {
|
|
5548
5542
|
return this.$$.ctx[16];
|
|
5549
5543
|
}
|
|
5550
5544
|
set endpoint(t) {
|
|
5551
|
-
this.$$set({ endpoint: t }),
|
|
5545
|
+
this.$$set({ endpoint: t }), de();
|
|
5552
5546
|
}
|
|
5553
5547
|
get currency() {
|
|
5554
5548
|
return this.$$.ctx[17];
|
|
5555
5549
|
}
|
|
5556
5550
|
set currency(t) {
|
|
5557
|
-
this.$$set({ currency: t }),
|
|
5551
|
+
this.$$set({ currency: t }), de();
|
|
5558
5552
|
}
|
|
5559
5553
|
get customerid() {
|
|
5560
5554
|
return this.$$.ctx[18];
|
|
5561
5555
|
}
|
|
5562
5556
|
set customerid(t) {
|
|
5563
|
-
this.$$set({ customerid: t }),
|
|
5557
|
+
this.$$set({ customerid: t }), de();
|
|
5564
5558
|
}
|
|
5565
5559
|
get selectedpaymentmethodname() {
|
|
5566
5560
|
return this.$$.ctx[19];
|
|
5567
5561
|
}
|
|
5568
5562
|
set selectedpaymentmethodname(t) {
|
|
5569
|
-
this.$$set({ selectedpaymentmethodname: t }),
|
|
5563
|
+
this.$$set({ selectedpaymentmethodname: t }), de();
|
|
5570
5564
|
}
|
|
5571
5565
|
get mbsource() {
|
|
5572
5566
|
return this.$$.ctx[20];
|
|
5573
5567
|
}
|
|
5574
5568
|
set mbsource(t) {
|
|
5575
|
-
this.$$set({ mbsource: t }),
|
|
5569
|
+
this.$$set({ mbsource: t }), de();
|
|
5576
5570
|
}
|
|
5577
5571
|
}
|
|
5578
5572
|
bo(qa, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|