@everymatrix/cashier-verifications 1.60.0 → 1.60.2
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/{CashierVerifications-BKJcRDli.js → CashierVerifications-DcHITjNc.js} +433 -435
- package/components/CashierVerifications-byA5bB6e.cjs +18 -0
- package/components/{CashierVerifications-BsMilNHs.js → CashierVerifications-qLWQWM7j.js} +399 -401
- package/components/{CashierVideoModal-Z7NZ68GI.cjs → CashierVideoModal-BLxbNiAO.cjs} +1 -1
- package/components/{CashierVideoModal-ijUUQb6t.js → CashierVideoModal-C5K2k6vl.js} +15 -15
- package/components/{CashierVideoModal-B-CXY0VP.js → CashierVideoModal-DgW9dQjO.js} +19 -19
- package/es2015/cashier-verifications.cjs +1 -1
- package/es2015/cashier-verifications.js +1 -1
- package/esnext/cashier-verifications.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-AxDwGdNn.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function Q() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Wt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function Ie(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Wt);
|
|
11
11
|
}
|
|
12
12
|
function gt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function qt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ke;
|
|
19
|
-
function
|
|
19
|
+
function Qn(e, t) {
|
|
20
20
|
return e === t ? !0 : (ke || (ke = document.createElement("a")), ke.href = t, e === ke.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Or(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Yt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const i of t)
|
|
28
28
|
i(void 0);
|
|
@@ -31,20 +31,20 @@ function Jt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Pr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Yt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function re(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const i =
|
|
40
|
+
function Ar(e, t, r) {
|
|
41
|
+
const i = $r(e);
|
|
42
42
|
if (!i.getElementById(t)) {
|
|
43
43
|
const n = Z("style");
|
|
44
|
-
n.id = t, n.textContent = r,
|
|
44
|
+
n.id = t, n.textContent = r, Br(i, n);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function $r(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function Mr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Br(e, t) {
|
|
58
58
|
return re(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,14 +67,14 @@ function ae(e, t, r) {
|
|
|
67
67
|
function ie(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Mr(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
74
|
function Z(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Kn(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
80
|
function vt(e) {
|
|
@@ -83,7 +83,7 @@ function vt(e) {
|
|
|
83
83
|
function xe() {
|
|
84
84
|
return vt(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function es() {
|
|
87
87
|
return vt("");
|
|
88
88
|
}
|
|
89
89
|
function bt(e, t, r, i) {
|
|
@@ -96,17 +96,17 @@ function le(e, t, r) {
|
|
|
96
96
|
const i = t.toLowerCase();
|
|
97
97
|
i in e ? e[i] = typeof e[i] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : K(e, t, r);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Cr(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Dr(e, t) {
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
106
|
function Ee(e, t, r) {
|
|
107
107
|
e.classList.toggle(t, !!r);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Ir(e) {
|
|
110
110
|
const t = {};
|
|
111
111
|
return e.childNodes.forEach(
|
|
112
112
|
/** @param {Element} node */
|
|
@@ -119,20 +119,20 @@ let Me;
|
|
|
119
119
|
function Be(e) {
|
|
120
120
|
Me = e;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Lr() {
|
|
123
123
|
if (!Me)
|
|
124
124
|
throw new Error("Function called outside component initialization");
|
|
125
125
|
return Me;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
127
|
+
function ts(e) {
|
|
128
|
+
Lr().$$.on_mount.push(e);
|
|
129
129
|
}
|
|
130
130
|
const ye = [], st = [];
|
|
131
131
|
let _e = [];
|
|
132
|
-
const
|
|
132
|
+
const wt = [], Nr = /* @__PURE__ */ Promise.resolve();
|
|
133
133
|
let ot = !1;
|
|
134
|
-
function
|
|
135
|
-
ot || (ot = !0,
|
|
134
|
+
function Rr() {
|
|
135
|
+
ot || (ot = !0, Nr.then(te));
|
|
136
136
|
}
|
|
137
137
|
function at(e) {
|
|
138
138
|
_e.push(e);
|
|
@@ -147,7 +147,7 @@ function te() {
|
|
|
147
147
|
try {
|
|
148
148
|
for (; ve < ye.length; ) {
|
|
149
149
|
const t = ye[ve];
|
|
150
|
-
ve++, Be(t),
|
|
150
|
+
ve++, Be(t), kr(t.$$);
|
|
151
151
|
}
|
|
152
152
|
} catch (t) {
|
|
153
153
|
throw ye.length = 0, ve = 0, t;
|
|
@@ -160,43 +160,43 @@ function te() {
|
|
|
160
160
|
}
|
|
161
161
|
_e.length = 0;
|
|
162
162
|
} while (ye.length);
|
|
163
|
-
for (;
|
|
164
|
-
|
|
163
|
+
for (; wt.length; )
|
|
164
|
+
wt.pop()();
|
|
165
165
|
ot = !1, Qe.clear(), Be(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function kr(e) {
|
|
168
168
|
if (e.fragment !== null) {
|
|
169
169
|
e.update(), Ie(e.before_update);
|
|
170
170
|
const t = e.dirty;
|
|
171
171
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(at);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Ur(e) {
|
|
175
175
|
const t = [], r = [];
|
|
176
176
|
_e.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : r.push(i)), r.forEach((i) => i()), _e = t;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
180
|
-
e && e.i && (
|
|
178
|
+
const Fr = /* @__PURE__ */ new Set();
|
|
179
|
+
function Vr(e, t) {
|
|
180
|
+
e && e.i && (Fr.delete(e), e.i(t));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function St(e) {
|
|
183
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Gr(e, t, r) {
|
|
186
186
|
const { fragment: i, after_update: n } = e.$$;
|
|
187
187
|
i && i.m(t, r), at(() => {
|
|
188
|
-
const s = e.$$.on_mount.map(
|
|
188
|
+
const s = e.$$.on_mount.map(Wt).filter(gt);
|
|
189
189
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Ie(s), e.$$.on_mount = [];
|
|
190
190
|
}), n.forEach(at);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function jr(e, t) {
|
|
193
193
|
const r = e.$$;
|
|
194
|
-
r.fragment !== null && (
|
|
194
|
+
r.fragment !== null && (Ur(r.after_update), Ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
e.$$.dirty[0] === -1 && (ye.push(e),
|
|
196
|
+
function zr(e, t) {
|
|
197
|
+
e.$$.dirty[0] === -1 && (ye.push(e), Rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Xr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
200
200
|
const o = Me;
|
|
201
201
|
Be(e);
|
|
202
202
|
const u = e.$$ = {
|
|
@@ -206,7 +206,7 @@ function qr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
206
206
|
props: s,
|
|
207
207
|
update: Q,
|
|
208
208
|
not_equal: n,
|
|
209
|
-
bound:
|
|
209
|
+
bound: Et(),
|
|
210
210
|
// lifecycle
|
|
211
211
|
on_mount: [],
|
|
212
212
|
on_destroy: [],
|
|
@@ -215,7 +215,7 @@ function qr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
215
215
|
after_update: [],
|
|
216
216
|
context: new Map(t.context || (o ? o.$$.context : [])),
|
|
217
217
|
// everything else
|
|
218
|
-
callbacks:
|
|
218
|
+
callbacks: Et(),
|
|
219
219
|
dirty: a,
|
|
220
220
|
skip_bound: !1,
|
|
221
221
|
root: t.target || o.$$.root
|
|
@@ -224,19 +224,19 @@ function qr(e, t, r, i, n, s, l = null, a = [-1]) {
|
|
|
224
224
|
let h = !1;
|
|
225
225
|
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...E) => {
|
|
226
226
|
const H = E.length ? E[0] : m;
|
|
227
|
-
return u.ctx && n(u.ctx[c], u.ctx[c] = H) && (!u.skip_bound && u.bound[c] && u.bound[c](H), h &&
|
|
227
|
+
return u.ctx && n(u.ctx[c], u.ctx[c] = H) && (!u.skip_bound && u.bound[c] && u.bound[c](H), h && zr(e, c)), m;
|
|
228
228
|
}) : [], u.update(), h = !0, Ie(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
229
229
|
if (t.hydrate) {
|
|
230
|
-
const c =
|
|
230
|
+
const c = Cr(t.target);
|
|
231
231
|
u.fragment && u.fragment.l(c), c.forEach(ie);
|
|
232
232
|
} else
|
|
233
233
|
u.fragment && u.fragment.c();
|
|
234
|
-
t.intro &&
|
|
234
|
+
t.intro && Vr(e.$$.fragment), Gr(e, t.target, t.anchor), te();
|
|
235
235
|
}
|
|
236
236
|
Be(o);
|
|
237
237
|
}
|
|
238
|
-
let
|
|
239
|
-
typeof HTMLElement == "function" && (
|
|
238
|
+
let Zt;
|
|
239
|
+
typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
240
240
|
/** The Svelte component constructor */
|
|
241
241
|
$$ctor;
|
|
242
242
|
/** Slots */
|
|
@@ -295,7 +295,7 @@ typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
|
295
295
|
};
|
|
296
296
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
297
297
|
return;
|
|
298
|
-
const t = {}, r =
|
|
298
|
+
const t = {}, r = Ir(this);
|
|
299
299
|
for (const n of this.$$s)
|
|
300
300
|
n in r && (t[n] = [e(n)]);
|
|
301
301
|
for (const n of this.attributes) {
|
|
@@ -382,8 +382,8 @@ function Fe(e, t, r, i) {
|
|
|
382
382
|
return t;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
let l = class extends
|
|
385
|
+
function Wr(e, t, r, i, n, s) {
|
|
386
|
+
let l = class extends Zt {
|
|
387
387
|
constructor() {
|
|
388
388
|
super(e, r, n), this.$$p_d = t;
|
|
389
389
|
}
|
|
@@ -411,7 +411,7 @@ function Yr(e, t, r, i, n, s) {
|
|
|
411
411
|
}), e.element = /** @type {any} */
|
|
412
412
|
l, l;
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class qr {
|
|
415
415
|
/**
|
|
416
416
|
* ### PRIVATE API
|
|
417
417
|
*
|
|
@@ -430,7 +430,7 @@ class Zr {
|
|
|
430
430
|
$$set = void 0;
|
|
431
431
|
/** @returns {void} */
|
|
432
432
|
$destroy() {
|
|
433
|
-
|
|
433
|
+
jr(this, 1), this.$destroy = Q;
|
|
434
434
|
}
|
|
435
435
|
/**
|
|
436
436
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -452,13 +452,13 @@ class Zr {
|
|
|
452
452
|
* @returns {void}
|
|
453
453
|
*/
|
|
454
454
|
$set(t) {
|
|
455
|
-
this.$$set && !
|
|
455
|
+
this.$$set && !Or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
const
|
|
459
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
458
|
+
const Yr = "4";
|
|
459
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yr);
|
|
460
460
|
const be = [];
|
|
461
|
-
function
|
|
461
|
+
function Zr(e, t) {
|
|
462
462
|
return {
|
|
463
463
|
subscribe: We(e, t).subscribe
|
|
464
464
|
};
|
|
@@ -467,7 +467,7 @@ function We(e, t = Q) {
|
|
|
467
467
|
let r;
|
|
468
468
|
const i = /* @__PURE__ */ new Set();
|
|
469
469
|
function n(a) {
|
|
470
|
-
if (
|
|
470
|
+
if (qt(e, a) && (e = a, r)) {
|
|
471
471
|
const o = !be.length;
|
|
472
472
|
for (const u of i)
|
|
473
473
|
u[1](), be.push(u, e);
|
|
@@ -494,7 +494,7 @@ function Oe(e, t, r) {
|
|
|
494
494
|
if (!n.every(Boolean))
|
|
495
495
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
496
496
|
const s = t.length < 2;
|
|
497
|
-
return
|
|
497
|
+
return Zr(r, (l, a) => {
|
|
498
498
|
let o = !1;
|
|
499
499
|
const u = [];
|
|
500
500
|
let h = 0, c = Q;
|
|
@@ -505,7 +505,7 @@ function Oe(e, t, r) {
|
|
|
505
505
|
const H = t(i ? u[0] : u, l, a);
|
|
506
506
|
s ? l(H) : c = gt(H) ? H : Q;
|
|
507
507
|
}, E = n.map(
|
|
508
|
-
(H, v) =>
|
|
508
|
+
(H, v) => Yt(
|
|
509
509
|
H,
|
|
510
510
|
($) => {
|
|
511
511
|
u[v] = $, h &= ~(1 << v), o && m();
|
|
@@ -520,71 +520,71 @@ function Oe(e, t, r) {
|
|
|
520
520
|
};
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
|
-
var
|
|
523
|
+
var Jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
524
524
|
function yt(e) {
|
|
525
525
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
526
526
|
}
|
|
527
|
-
var
|
|
528
|
-
return
|
|
527
|
+
var Jr = function(t) {
|
|
528
|
+
return Qr(t) && !Kr(t);
|
|
529
529
|
};
|
|
530
|
-
function
|
|
530
|
+
function Qr(e) {
|
|
531
531
|
return !!e && typeof e == "object";
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Kr(e) {
|
|
534
534
|
var t = Object.prototype.toString.call(e);
|
|
535
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
535
|
+
return t === "[object RegExp]" || t === "[object Date]" || ri(e);
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
function
|
|
539
|
-
return e.$$typeof ===
|
|
537
|
+
var ei = typeof Symbol == "function" && Symbol.for, ti = ei ? Symbol.for("react.element") : 60103;
|
|
538
|
+
function ri(e) {
|
|
539
|
+
return e.$$typeof === ti;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function ii(e) {
|
|
542
542
|
return Array.isArray(e) ? [] : {};
|
|
543
543
|
}
|
|
544
544
|
function Ce(e, t) {
|
|
545
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? we(
|
|
545
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? we(ii(e), e, t) : e;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function ni(e, t, r) {
|
|
548
548
|
return e.concat(t).map(function(i) {
|
|
549
549
|
return Ce(i, r);
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function si(e, t) {
|
|
553
553
|
if (!t.customMerge)
|
|
554
554
|
return we;
|
|
555
555
|
var r = t.customMerge(e);
|
|
556
556
|
return typeof r == "function" ? r : we;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function oi(e) {
|
|
559
559
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
560
560
|
return Object.propertyIsEnumerable.call(e, t);
|
|
561
561
|
}) : [];
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return Object.keys(e).concat(
|
|
563
|
+
function Tt(e) {
|
|
564
|
+
return Object.keys(e).concat(oi(e));
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Qt(e, t) {
|
|
567
567
|
try {
|
|
568
568
|
return t in e;
|
|
569
569
|
} catch {
|
|
570
570
|
return !1;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
return
|
|
573
|
+
function ai(e, t) {
|
|
574
|
+
return Qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function ui(e, t, r) {
|
|
577
577
|
var i = {};
|
|
578
|
-
return r.isMergeableObject(e) &&
|
|
578
|
+
return r.isMergeableObject(e) && Tt(e).forEach(function(n) {
|
|
579
579
|
i[n] = Ce(e[n], r);
|
|
580
|
-
}),
|
|
581
|
-
|
|
580
|
+
}), Tt(t).forEach(function(n) {
|
|
581
|
+
ai(e, n) || (Qt(e, n) && r.isMergeableObject(t[n]) ? i[n] = si(n, r)(e[n], t[n], r) : i[n] = Ce(t[n], r));
|
|
582
582
|
}), i;
|
|
583
583
|
}
|
|
584
584
|
function we(e, t, r) {
|
|
585
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
585
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ni, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = Ce;
|
|
586
586
|
var i = Array.isArray(t), n = Array.isArray(e), s = i === n;
|
|
587
|
-
return s ? i ? r.arrayMerge(e, t, r) :
|
|
587
|
+
return s ? i ? r.arrayMerge(e, t, r) : ui(e, t, r) : Ce(t, r);
|
|
588
588
|
}
|
|
589
589
|
we.all = function(t, r) {
|
|
590
590
|
if (!Array.isArray(t))
|
|
@@ -593,8 +593,8 @@ we.all = function(t, r) {
|
|
|
593
593
|
return we(i, n, r);
|
|
594
594
|
}, {});
|
|
595
595
|
};
|
|
596
|
-
var
|
|
597
|
-
const
|
|
596
|
+
var li = we, hi = li;
|
|
597
|
+
const fi = /* @__PURE__ */ yt(hi);
|
|
598
598
|
/*! *****************************************************************************
|
|
599
599
|
Copyright (c) Microsoft Corporation.
|
|
600
600
|
|
|
@@ -626,17 +626,17 @@ function qe(e, t) {
|
|
|
626
626
|
}
|
|
627
627
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
628
628
|
}
|
|
629
|
-
var
|
|
630
|
-
return
|
|
629
|
+
var P = function() {
|
|
630
|
+
return P = Object.assign || function(t) {
|
|
631
631
|
for (var r, i = 1, n = arguments.length; i < n; i++) {
|
|
632
632
|
r = arguments[i];
|
|
633
633
|
for (var s in r)
|
|
634
634
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
635
635
|
}
|
|
636
636
|
return t;
|
|
637
|
-
},
|
|
637
|
+
}, P.apply(this, arguments);
|
|
638
638
|
};
|
|
639
|
-
function
|
|
639
|
+
function ci(e, t) {
|
|
640
640
|
var r = {};
|
|
641
641
|
for (var i in e)
|
|
642
642
|
Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
@@ -652,55 +652,53 @@ function Ke(e, t, r) {
|
|
|
652
652
|
return e.concat(s || t);
|
|
653
653
|
}
|
|
654
654
|
function et(e, t) {
|
|
655
|
-
var r = t && t.cache ? t.cache :
|
|
655
|
+
var r = t && t.cache ? t.cache : yi, i = t && t.serializer ? t.serializer : vi, n = t && t.strategy ? t.strategy : pi;
|
|
656
656
|
return n(e, {
|
|
657
657
|
cache: r,
|
|
658
658
|
serializer: i
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function di(e) {
|
|
662
662
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
var n =
|
|
664
|
+
function mi(e, t, r, i) {
|
|
665
|
+
var n = di(i) ? i : r(i), s = t.get(n);
|
|
666
666
|
return typeof s > "u" && (s = e.call(this, i), t.set(n, s)), s;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Kt(e, t, r) {
|
|
669
669
|
var i = Array.prototype.slice.call(arguments, 3), n = r(i), s = t.get(n);
|
|
670
670
|
return typeof s > "u" && (s = e.apply(this, i), t.set(n, s)), s;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function er(e, t, r, i, n) {
|
|
673
673
|
return r.bind(t, e, i, n);
|
|
674
674
|
}
|
|
675
|
-
function
|
|
676
|
-
var r = e.length === 1 ?
|
|
677
|
-
return
|
|
678
|
-
}
|
|
679
|
-
function vi(e, t) {
|
|
680
|
-
return xt(e, this, rr, t.cache.create(), t.serializer);
|
|
675
|
+
function pi(e, t) {
|
|
676
|
+
var r = e.length === 1 ? mi : Kt;
|
|
677
|
+
return er(e, this, r, t.cache.create(), t.serializer);
|
|
681
678
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
679
|
+
function gi(e, t) {
|
|
680
|
+
return er(e, this, Kt, t.cache.create(), t.serializer);
|
|
684
681
|
}
|
|
685
|
-
var
|
|
682
|
+
var vi = function() {
|
|
686
683
|
return JSON.stringify(arguments);
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
684
|
+
}, bi = (
|
|
685
|
+
/** @class */
|
|
686
|
+
function() {
|
|
687
|
+
function e() {
|
|
688
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
689
|
+
}
|
|
690
|
+
return e.prototype.get = function(t) {
|
|
691
|
+
return this.cache[t];
|
|
692
|
+
}, e.prototype.set = function(t, r) {
|
|
693
|
+
this.cache[t] = r;
|
|
694
|
+
}, e;
|
|
695
|
+
}()
|
|
696
|
+
), yi = {
|
|
698
697
|
create: function() {
|
|
699
|
-
return new
|
|
698
|
+
return new bi();
|
|
700
699
|
}
|
|
701
700
|
}, tt = {
|
|
702
|
-
variadic:
|
|
703
|
-
monadic: bi
|
|
701
|
+
variadic: gi
|
|
704
702
|
}, T;
|
|
705
703
|
(function(e) {
|
|
706
704
|
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";
|
|
@@ -713,43 +711,43 @@ var Se;
|
|
|
713
711
|
(function(e) {
|
|
714
712
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
715
713
|
})(Se || (Se = {}));
|
|
716
|
-
function
|
|
714
|
+
function Ht(e) {
|
|
717
715
|
return e.type === C.literal;
|
|
718
716
|
}
|
|
719
|
-
function
|
|
717
|
+
function xi(e) {
|
|
720
718
|
return e.type === C.argument;
|
|
721
719
|
}
|
|
722
|
-
function
|
|
720
|
+
function tr(e) {
|
|
723
721
|
return e.type === C.number;
|
|
724
722
|
}
|
|
725
|
-
function
|
|
723
|
+
function rr(e) {
|
|
726
724
|
return e.type === C.date;
|
|
727
725
|
}
|
|
728
|
-
function
|
|
726
|
+
function ir(e) {
|
|
729
727
|
return e.type === C.time;
|
|
730
728
|
}
|
|
731
|
-
function
|
|
729
|
+
function nr(e) {
|
|
732
730
|
return e.type === C.select;
|
|
733
731
|
}
|
|
734
|
-
function
|
|
732
|
+
function sr(e) {
|
|
735
733
|
return e.type === C.plural;
|
|
736
734
|
}
|
|
737
|
-
function
|
|
735
|
+
function _i(e) {
|
|
738
736
|
return e.type === C.pound;
|
|
739
737
|
}
|
|
740
|
-
function
|
|
738
|
+
function or(e) {
|
|
741
739
|
return e.type === C.tag;
|
|
742
740
|
}
|
|
743
|
-
function
|
|
741
|
+
function ar(e) {
|
|
744
742
|
return !!(e && typeof e == "object" && e.type === Se.number);
|
|
745
743
|
}
|
|
746
744
|
function lt(e) {
|
|
747
745
|
return !!(e && typeof e == "object" && e.type === Se.dateTime);
|
|
748
746
|
}
|
|
749
|
-
var
|
|
750
|
-
function
|
|
747
|
+
var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ei = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
748
|
+
function wi(e) {
|
|
751
749
|
var t = {};
|
|
752
|
-
return e.replace(
|
|
750
|
+
return e.replace(Ei, function(r) {
|
|
753
751
|
var i = r.length;
|
|
754
752
|
switch (r[0]) {
|
|
755
753
|
case "G":
|
|
@@ -838,11 +836,11 @@ function Si(e) {
|
|
|
838
836
|
return "";
|
|
839
837
|
}), t;
|
|
840
838
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
839
|
+
var Si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
840
|
+
function Ti(e) {
|
|
843
841
|
if (e.length === 0)
|
|
844
842
|
throw new Error("Number skeleton cannot be empty");
|
|
845
|
-
for (var t = e.split(
|
|
843
|
+
for (var t = e.split(Si).filter(function(m) {
|
|
846
844
|
return m.length > 0;
|
|
847
845
|
}), r = [], i = 0, n = t; i < n.length; i++) {
|
|
848
846
|
var s = n[i], l = s.split("/");
|
|
@@ -857,17 +855,17 @@ function Hi(e) {
|
|
|
857
855
|
}
|
|
858
856
|
return r;
|
|
859
857
|
}
|
|
860
|
-
function
|
|
858
|
+
function Hi(e) {
|
|
861
859
|
return e.replace(/^(.*?)-/, "");
|
|
862
860
|
}
|
|
863
|
-
var
|
|
864
|
-
function
|
|
861
|
+
var Ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, lr = /^(@+)?(\+|#+)?[rs]?$/g, Oi = /(\*)(0+)|(#+)(0+)|(0+)/g, hr = /^(0+)$/;
|
|
862
|
+
function Pt(e) {
|
|
865
863
|
var t = {};
|
|
866
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
864
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(lr, function(r, i, n) {
|
|
867
865
|
return typeof n != "string" ? (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length) : n === "+" ? t.minimumSignificantDigits = i.length : i[0] === "#" ? t.maximumSignificantDigits = i.length : (t.minimumSignificantDigits = i.length, t.maximumSignificantDigits = i.length + (typeof n == "string" ? n.length : 0)), "";
|
|
868
866
|
}), t;
|
|
869
867
|
}
|
|
870
|
-
function
|
|
868
|
+
function fr(e) {
|
|
871
869
|
switch (e) {
|
|
872
870
|
case "sign-auto":
|
|
873
871
|
return {
|
|
@@ -915,17 +913,17 @@ function Pi(e) {
|
|
|
915
913
|
notation: "scientific"
|
|
916
914
|
}, e = e.slice(1)), t) {
|
|
917
915
|
var r = e.slice(0, 2);
|
|
918
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
916
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hr.test(e))
|
|
919
917
|
throw new Error("Malformed concise eng/scientific notation");
|
|
920
918
|
t.minimumIntegerDigits = e.length;
|
|
921
919
|
}
|
|
922
920
|
return t;
|
|
923
921
|
}
|
|
924
|
-
function
|
|
925
|
-
var t = {}, r =
|
|
922
|
+
function At(e) {
|
|
923
|
+
var t = {}, r = fr(e);
|
|
926
924
|
return r || t;
|
|
927
925
|
}
|
|
928
|
-
function
|
|
926
|
+
function Ai(e) {
|
|
929
927
|
for (var t = {}, r = 0, i = e; r < i.length; r++) {
|
|
930
928
|
var n = i[r];
|
|
931
929
|
switch (n.stem) {
|
|
@@ -949,7 +947,7 @@ function $i(e) {
|
|
|
949
947
|
continue;
|
|
950
948
|
case "measure-unit":
|
|
951
949
|
case "unit":
|
|
952
|
-
t.style = "unit", t.unit =
|
|
950
|
+
t.style = "unit", t.unit = Hi(n.options[0]);
|
|
953
951
|
continue;
|
|
954
952
|
case "compact-short":
|
|
955
953
|
case "K":
|
|
@@ -960,13 +958,13 @@ function $i(e) {
|
|
|
960
958
|
t.notation = "compact", t.compactDisplay = "long";
|
|
961
959
|
continue;
|
|
962
960
|
case "scientific":
|
|
963
|
-
t =
|
|
964
|
-
return
|
|
961
|
+
t = P(P(P({}, t), { notation: "scientific" }), n.options.reduce(function(o, u) {
|
|
962
|
+
return P(P({}, o), At(u));
|
|
965
963
|
}, {}));
|
|
966
964
|
continue;
|
|
967
965
|
case "engineering":
|
|
968
|
-
t =
|
|
969
|
-
return
|
|
966
|
+
t = P(P(P({}, t), { notation: "engineering" }), n.options.reduce(function(o, u) {
|
|
967
|
+
return P(P({}, o), At(u));
|
|
970
968
|
}, {}));
|
|
971
969
|
continue;
|
|
972
970
|
case "notation-simple":
|
|
@@ -1011,7 +1009,7 @@ function $i(e) {
|
|
|
1011
1009
|
case "integer-width":
|
|
1012
1010
|
if (n.options.length > 1)
|
|
1013
1011
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1014
|
-
n.options[0].replace(
|
|
1012
|
+
n.options[0].replace(Oi, function(o, u, h, c, m, E) {
|
|
1015
1013
|
if (u)
|
|
1016
1014
|
t.minimumIntegerDigits = h.length;
|
|
1017
1015
|
else {
|
|
@@ -1024,28 +1022,28 @@ function $i(e) {
|
|
|
1024
1022
|
});
|
|
1025
1023
|
continue;
|
|
1026
1024
|
}
|
|
1027
|
-
if (
|
|
1025
|
+
if (hr.test(n.stem)) {
|
|
1028
1026
|
t.minimumIntegerDigits = n.stem.length;
|
|
1029
1027
|
continue;
|
|
1030
1028
|
}
|
|
1031
|
-
if (
|
|
1029
|
+
if (Ot.test(n.stem)) {
|
|
1032
1030
|
if (n.options.length > 1)
|
|
1033
1031
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1034
|
-
n.stem.replace(
|
|
1032
|
+
n.stem.replace(Ot, function(o, u, h, c, m, E) {
|
|
1035
1033
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && E ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + E.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1036
1034
|
});
|
|
1037
1035
|
var s = n.options[0];
|
|
1038
|
-
s === "w" ? t =
|
|
1036
|
+
s === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = P(P({}, t), Pt(s)));
|
|
1039
1037
|
continue;
|
|
1040
1038
|
}
|
|
1041
|
-
if (
|
|
1042
|
-
t =
|
|
1039
|
+
if (lr.test(n.stem)) {
|
|
1040
|
+
t = P(P({}, t), Pt(n.stem));
|
|
1043
1041
|
continue;
|
|
1044
1042
|
}
|
|
1045
|
-
var l =
|
|
1046
|
-
l && (t =
|
|
1043
|
+
var l = fr(n.stem);
|
|
1044
|
+
l && (t = P(P({}, t), l));
|
|
1047
1045
|
var a = Pi(n.stem);
|
|
1048
|
-
a && (t =
|
|
1046
|
+
a && (t = P(P({}, t), a));
|
|
1049
1047
|
}
|
|
1050
1048
|
return t;
|
|
1051
1049
|
}
|
|
@@ -2464,13 +2462,13 @@ var Ue = {
|
|
|
2464
2462
|
"h"
|
|
2465
2463
|
]
|
|
2466
2464
|
};
|
|
2467
|
-
function
|
|
2465
|
+
function $i(e, t) {
|
|
2468
2466
|
for (var r = "", i = 0; i < e.length; i++) {
|
|
2469
2467
|
var n = e.charAt(i);
|
|
2470
2468
|
if (n === "j") {
|
|
2471
2469
|
for (var s = 0; i + 1 < e.length && e.charAt(i + 1) === n; )
|
|
2472
2470
|
s++, i++;
|
|
2473
|
-
var l = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), o = "a", u =
|
|
2471
|
+
var l = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), o = "a", u = Bi(t);
|
|
2474
2472
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2475
2473
|
r += o;
|
|
2476
2474
|
for (; l-- > 0; )
|
|
@@ -2480,7 +2478,7 @@ function Bi(e, t) {
|
|
|
2480
2478
|
}
|
|
2481
2479
|
return r;
|
|
2482
2480
|
}
|
|
2483
|
-
function
|
|
2481
|
+
function Bi(e) {
|
|
2484
2482
|
var t = e.hourCycle;
|
|
2485
2483
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2486
2484
|
e.hourCycles && // @ts-ignore
|
|
@@ -2502,20 +2500,20 @@ function Mi(e) {
|
|
|
2502
2500
|
var n = Ue[i || ""] || Ue[r || ""] || Ue["".concat(r, "-001")] || Ue["001"];
|
|
2503
2501
|
return n[0];
|
|
2504
2502
|
}
|
|
2505
|
-
var rt,
|
|
2503
|
+
var rt, Mi = new RegExp("^".concat(ur.source, "*")), Ci = new RegExp("".concat(ur.source, "*$"));
|
|
2506
2504
|
function O(e, t) {
|
|
2507
2505
|
return { start: e, end: t };
|
|
2508
2506
|
}
|
|
2509
|
-
var
|
|
2507
|
+
var Di = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ii = !!String.fromCodePoint, Li = !!Object.fromEntries, Ni = !!String.prototype.codePointAt, Ri = !!String.prototype.trimStart, ki = !!String.prototype.trimEnd, Ui = !!Number.isSafeInteger, Fi = Ui ? Number.isSafeInteger : function(e) {
|
|
2510
2508
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2511
2509
|
}, ht = !0;
|
|
2512
2510
|
try {
|
|
2513
|
-
var
|
|
2514
|
-
ht = ((rt =
|
|
2511
|
+
var Vi = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2512
|
+
ht = ((rt = Vi.exec("a")) === null || rt === void 0 ? void 0 : rt[0]) === "a";
|
|
2515
2513
|
} catch {
|
|
2516
2514
|
ht = !1;
|
|
2517
2515
|
}
|
|
2518
|
-
var
|
|
2516
|
+
var $t = Di ? (
|
|
2519
2517
|
// Native
|
|
2520
2518
|
function(t, r, i) {
|
|
2521
2519
|
return t.startsWith(r, i);
|
|
@@ -2525,7 +2523,7 @@ var Mt = Ii ? (
|
|
|
2525
2523
|
function(t, r, i) {
|
|
2526
2524
|
return t.slice(i, i + r.length) === r;
|
|
2527
2525
|
}
|
|
2528
|
-
), ft =
|
|
2526
|
+
), ft = Ii ? String.fromCodePoint : (
|
|
2529
2527
|
// IE11
|
|
2530
2528
|
function() {
|
|
2531
2529
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2537,9 +2535,9 @@ var Mt = Ii ? (
|
|
|
2537
2535
|
}
|
|
2538
2536
|
return i;
|
|
2539
2537
|
}
|
|
2540
|
-
),
|
|
2538
|
+
), Bt = (
|
|
2541
2539
|
// native
|
|
2542
|
-
|
|
2540
|
+
Li ? Object.fromEntries : (
|
|
2543
2541
|
// Ponyfill
|
|
2544
2542
|
function(t) {
|
|
2545
2543
|
for (var r = {}, i = 0, n = t; i < n.length; i++) {
|
|
@@ -2549,7 +2547,7 @@ var Mt = Ii ? (
|
|
|
2549
2547
|
return r;
|
|
2550
2548
|
}
|
|
2551
2549
|
)
|
|
2552
|
-
),
|
|
2550
|
+
), cr = Ni ? (
|
|
2553
2551
|
// Native
|
|
2554
2552
|
function(t, r) {
|
|
2555
2553
|
return t.codePointAt(r);
|
|
@@ -2563,7 +2561,7 @@ var Mt = Ii ? (
|
|
|
2563
2561
|
return n < 55296 || n > 56319 || r + 1 === i || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? n : (n - 55296 << 10) + (s - 56320) + 65536;
|
|
2564
2562
|
}
|
|
2565
2563
|
}
|
|
2566
|
-
),
|
|
2564
|
+
), Gi = Ri ? (
|
|
2567
2565
|
// Native
|
|
2568
2566
|
function(t) {
|
|
2569
2567
|
return t.trimStart();
|
|
@@ -2571,9 +2569,9 @@ var Mt = Ii ? (
|
|
|
2571
2569
|
) : (
|
|
2572
2570
|
// Ponyfill
|
|
2573
2571
|
function(t) {
|
|
2574
|
-
return t.replace(
|
|
2572
|
+
return t.replace(Mi, "");
|
|
2575
2573
|
}
|
|
2576
|
-
),
|
|
2574
|
+
), ji = ki ? (
|
|
2577
2575
|
// Native
|
|
2578
2576
|
function(t) {
|
|
2579
2577
|
return t.trimEnd();
|
|
@@ -2581,32 +2579,32 @@ var Mt = Ii ? (
|
|
|
2581
2579
|
) : (
|
|
2582
2580
|
// Ponyfill
|
|
2583
2581
|
function(t) {
|
|
2584
|
-
return t.replace(
|
|
2582
|
+
return t.replace(Ci, "");
|
|
2585
2583
|
}
|
|
2586
2584
|
);
|
|
2587
|
-
function
|
|
2585
|
+
function dr(e, t) {
|
|
2588
2586
|
return new RegExp(e, t);
|
|
2589
2587
|
}
|
|
2590
2588
|
var ct;
|
|
2591
2589
|
if (ht) {
|
|
2592
|
-
var
|
|
2590
|
+
var Mt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2593
2591
|
ct = function(t, r) {
|
|
2594
2592
|
var i;
|
|
2595
|
-
|
|
2596
|
-
var n =
|
|
2593
|
+
Mt.lastIndex = r;
|
|
2594
|
+
var n = Mt.exec(t);
|
|
2597
2595
|
return (i = n[1]) !== null && i !== void 0 ? i : "";
|
|
2598
2596
|
};
|
|
2599
2597
|
} else
|
|
2600
2598
|
ct = function(t, r) {
|
|
2601
2599
|
for (var i = []; ; ) {
|
|
2602
|
-
var n =
|
|
2603
|
-
if (n === void 0 ||
|
|
2600
|
+
var n = cr(t, r);
|
|
2601
|
+
if (n === void 0 || mr(n) || qi(n))
|
|
2604
2602
|
break;
|
|
2605
2603
|
i.push(n), r += n >= 65536 ? 2 : 1;
|
|
2606
2604
|
}
|
|
2607
2605
|
return ft.apply(void 0, i);
|
|
2608
2606
|
};
|
|
2609
|
-
var
|
|
2607
|
+
var zi = (
|
|
2610
2608
|
/** @class */
|
|
2611
2609
|
function() {
|
|
2612
2610
|
function e(t, r) {
|
|
@@ -2688,7 +2686,7 @@ var Xi = (
|
|
|
2688
2686
|
return this.error(T.INVALID_TAG, O(i, this.clonePosition()));
|
|
2689
2687
|
}, e.prototype.parseTagName = function() {
|
|
2690
2688
|
var t = this.offset();
|
|
2691
|
-
for (this.bump(); !this.isEOF() &&
|
|
2689
|
+
for (this.bump(); !this.isEOF() && Wi(this.char()); )
|
|
2692
2690
|
this.bump();
|
|
2693
2691
|
return this.message.slice(t, this.offset());
|
|
2694
2692
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2717,7 +2715,7 @@ var Xi = (
|
|
|
2717
2715
|
};
|
|
2718
2716
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2719
2717
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2720
|
-
!
|
|
2718
|
+
!Xi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2721
2719
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2722
2720
|
if (this.isEOF() || this.char() !== 39)
|
|
2723
2721
|
return null;
|
|
@@ -2804,7 +2802,7 @@ var Xi = (
|
|
|
2804
2802
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2805
2803
|
if (c.err)
|
|
2806
2804
|
return c;
|
|
2807
|
-
var m =
|
|
2805
|
+
var m = ji(c.val);
|
|
2808
2806
|
if (m.length === 0)
|
|
2809
2807
|
return this.error(T.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2810
2808
|
var E = O(h, this.clonePosition());
|
|
@@ -2814,8 +2812,8 @@ var Xi = (
|
|
|
2814
2812
|
if (H.err)
|
|
2815
2813
|
return H;
|
|
2816
2814
|
var v = O(n, this.clonePosition());
|
|
2817
|
-
if (u &&
|
|
2818
|
-
var $ =
|
|
2815
|
+
if (u && $t(u?.style, "::", 0)) {
|
|
2816
|
+
var $ = Gi(u.style.slice(2));
|
|
2819
2817
|
if (a === "number") {
|
|
2820
2818
|
var c = this.parseNumberSkeletonFromString($, u.styleLocation);
|
|
2821
2819
|
return c.err ? c : {
|
|
@@ -2826,12 +2824,12 @@ var Xi = (
|
|
|
2826
2824
|
if ($.length === 0)
|
|
2827
2825
|
return this.error(T.EXPECT_DATE_TIME_SKELETON, v);
|
|
2828
2826
|
var V = $;
|
|
2829
|
-
this.locale && (V =
|
|
2827
|
+
this.locale && (V = $i($, this.locale));
|
|
2830
2828
|
var m = {
|
|
2831
2829
|
type: Se.dateTime,
|
|
2832
2830
|
pattern: V,
|
|
2833
2831
|
location: u.styleLocation,
|
|
2834
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2832
|
+
parsedOptions: this.shouldParseSkeletons ? wi(V) : {}
|
|
2835
2833
|
}, U = a === "date" ? C.date : C.time;
|
|
2836
2834
|
return {
|
|
2837
2835
|
val: { type: U, value: i, location: v, style: m },
|
|
@@ -2854,7 +2852,7 @@ var Xi = (
|
|
|
2854
2852
|
case "select": {
|
|
2855
2853
|
var B = this.clonePosition();
|
|
2856
2854
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2857
|
-
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, O(B,
|
|
2855
|
+
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, O(B, P({}, B)));
|
|
2858
2856
|
this.bumpSpace();
|
|
2859
2857
|
var z = this.parseIdentifierIfPossible(), I = 0;
|
|
2860
2858
|
if (a !== "select" && z.value === "offset") {
|
|
@@ -2877,7 +2875,7 @@ var Xi = (
|
|
|
2877
2875
|
val: {
|
|
2878
2876
|
type: C.select,
|
|
2879
2877
|
value: i,
|
|
2880
|
-
options:
|
|
2878
|
+
options: Bt(L.val),
|
|
2881
2879
|
location: q
|
|
2882
2880
|
},
|
|
2883
2881
|
err: null
|
|
@@ -2885,7 +2883,7 @@ var Xi = (
|
|
|
2885
2883
|
val: {
|
|
2886
2884
|
type: C.plural,
|
|
2887
2885
|
value: i,
|
|
2888
|
-
options:
|
|
2886
|
+
options: Bt(L.val),
|
|
2889
2887
|
offset: I,
|
|
2890
2888
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2891
2889
|
location: q
|
|
@@ -2936,7 +2934,7 @@ var Xi = (
|
|
|
2936
2934
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2937
2935
|
var i = [];
|
|
2938
2936
|
try {
|
|
2939
|
-
i =
|
|
2937
|
+
i = Ti(t);
|
|
2940
2938
|
} catch {
|
|
2941
2939
|
return this.error(T.INVALID_NUMBER_SKELETON, r);
|
|
2942
2940
|
}
|
|
@@ -2945,7 +2943,7 @@ var Xi = (
|
|
|
2945
2943
|
type: Se.number,
|
|
2946
2944
|
tokens: i,
|
|
2947
2945
|
location: r,
|
|
2948
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2946
|
+
parsedOptions: this.shouldParseSkeletons ? Ai(i) : {}
|
|
2949
2947
|
},
|
|
2950
2948
|
err: null
|
|
2951
2949
|
};
|
|
@@ -2993,7 +2991,7 @@ var Xi = (
|
|
|
2993
2991
|
break;
|
|
2994
2992
|
}
|
|
2995
2993
|
var o = O(n, this.clonePosition());
|
|
2996
|
-
return s ? (l *= i,
|
|
2994
|
+
return s ? (l *= i, Fi(l) ? { val: l, err: null } : this.error(r, o)) : this.error(t, o);
|
|
2997
2995
|
}, e.prototype.offset = function() {
|
|
2998
2996
|
return this.position.offset;
|
|
2999
2997
|
}, e.prototype.isEOF = function() {
|
|
@@ -3008,7 +3006,7 @@ var Xi = (
|
|
|
3008
3006
|
var t = this.position.offset;
|
|
3009
3007
|
if (t >= this.message.length)
|
|
3010
3008
|
throw Error("out of bound");
|
|
3011
|
-
var r =
|
|
3009
|
+
var r = cr(this.message, t);
|
|
3012
3010
|
if (r === void 0)
|
|
3013
3011
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3014
3012
|
return r;
|
|
@@ -3027,7 +3025,7 @@ var Xi = (
|
|
|
3027
3025
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3028
3026
|
}
|
|
3029
3027
|
}, e.prototype.bumpIf = function(t) {
|
|
3030
|
-
if (
|
|
3028
|
+
if ($t(this.message, t, this.offset())) {
|
|
3031
3029
|
for (var r = 0; r < t.length; r++)
|
|
3032
3030
|
this.bump();
|
|
3033
3031
|
return !0;
|
|
@@ -3049,7 +3047,7 @@ var Xi = (
|
|
|
3049
3047
|
break;
|
|
3050
3048
|
}
|
|
3051
3049
|
}, e.prototype.bumpSpace = function() {
|
|
3052
|
-
for (; !this.isEOF() &&
|
|
3050
|
+
for (; !this.isEOF() && mr(this.char()); )
|
|
3053
3051
|
this.bump();
|
|
3054
3052
|
}, e.prototype.peek = function() {
|
|
3055
3053
|
if (this.isEOF())
|
|
@@ -3062,30 +3060,30 @@ var Xi = (
|
|
|
3062
3060
|
function dt(e) {
|
|
3063
3061
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3064
3062
|
}
|
|
3065
|
-
function
|
|
3063
|
+
function Xi(e) {
|
|
3066
3064
|
return dt(e) || e === 47;
|
|
3067
3065
|
}
|
|
3068
|
-
function
|
|
3066
|
+
function Wi(e) {
|
|
3069
3067
|
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;
|
|
3070
3068
|
}
|
|
3071
|
-
function
|
|
3069
|
+
function mr(e) {
|
|
3072
3070
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3073
3071
|
}
|
|
3074
|
-
function
|
|
3072
|
+
function qi(e) {
|
|
3075
3073
|
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;
|
|
3076
3074
|
}
|
|
3077
3075
|
function mt(e) {
|
|
3078
3076
|
e.forEach(function(t) {
|
|
3079
|
-
if (delete t.location,
|
|
3077
|
+
if (delete t.location, nr(t) || sr(t))
|
|
3080
3078
|
for (var r in t.options)
|
|
3081
3079
|
delete t.options[r].location, mt(t.options[r].value);
|
|
3082
3080
|
else
|
|
3083
|
-
|
|
3081
|
+
tr(t) && ar(t.style) || (rr(t) || ir(t)) && lt(t.style) ? delete t.style.location : or(t) && mt(t.children);
|
|
3084
3082
|
});
|
|
3085
3083
|
}
|
|
3086
|
-
function
|
|
3087
|
-
t === void 0 && (t = {}), t =
|
|
3088
|
-
var r = new
|
|
3084
|
+
function Yi(e, t) {
|
|
3085
|
+
t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3086
|
+
var r = new zi(e, t).parse();
|
|
3089
3087
|
if (r.err) {
|
|
3090
3088
|
var i = SyntaxError(T[r.err.kind]);
|
|
3091
3089
|
throw i.location = r.err.location, i.originalMessage = r.err.message, i;
|
|
@@ -3108,7 +3106,7 @@ var Ye = (
|
|
|
3108
3106
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3109
3107
|
}, t;
|
|
3110
3108
|
}(Error)
|
|
3111
|
-
),
|
|
3109
|
+
), Ct = (
|
|
3112
3110
|
/** @class */
|
|
3113
3111
|
function(e) {
|
|
3114
3112
|
qe(t, e);
|
|
@@ -3117,7 +3115,7 @@ var Ye = (
|
|
|
3117
3115
|
}
|
|
3118
3116
|
return t;
|
|
3119
3117
|
}(Ye)
|
|
3120
|
-
),
|
|
3118
|
+
), Zi = (
|
|
3121
3119
|
/** @class */
|
|
3122
3120
|
function(e) {
|
|
3123
3121
|
qe(t, e);
|
|
@@ -3126,7 +3124,7 @@ var Ye = (
|
|
|
3126
3124
|
}
|
|
3127
3125
|
return t;
|
|
3128
3126
|
}(Ye)
|
|
3129
|
-
),
|
|
3127
|
+
), Ji = (
|
|
3130
3128
|
/** @class */
|
|
3131
3129
|
function(e) {
|
|
3132
3130
|
qe(t, e);
|
|
@@ -3139,17 +3137,17 @@ var Ye = (
|
|
|
3139
3137
|
(function(e) {
|
|
3140
3138
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3141
3139
|
})(j || (j = {}));
|
|
3142
|
-
function
|
|
3140
|
+
function Qi(e) {
|
|
3143
3141
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3144
3142
|
var i = t[t.length - 1];
|
|
3145
3143
|
return !i || i.type !== j.literal || r.type !== j.literal ? t.push(r) : i.value += r.value, t;
|
|
3146
3144
|
}, []);
|
|
3147
3145
|
}
|
|
3148
|
-
function
|
|
3146
|
+
function Ki(e) {
|
|
3149
3147
|
return typeof e == "function";
|
|
3150
3148
|
}
|
|
3151
3149
|
function Ve(e, t, r, i, n, s, l) {
|
|
3152
|
-
if (e.length === 1 &&
|
|
3150
|
+
if (e.length === 1 && Ht(e[0]))
|
|
3153
3151
|
return [
|
|
3154
3152
|
{
|
|
3155
3153
|
type: j.literal,
|
|
@@ -3158,14 +3156,14 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3158
3156
|
];
|
|
3159
3157
|
for (var a = [], o = 0, u = e; o < u.length; o++) {
|
|
3160
3158
|
var h = u[o];
|
|
3161
|
-
if (
|
|
3159
|
+
if (Ht(h)) {
|
|
3162
3160
|
a.push({
|
|
3163
3161
|
type: j.literal,
|
|
3164
3162
|
value: h.value
|
|
3165
3163
|
});
|
|
3166
3164
|
continue;
|
|
3167
3165
|
}
|
|
3168
|
-
if (
|
|
3166
|
+
if (_i(h)) {
|
|
3169
3167
|
typeof s == "number" && a.push({
|
|
3170
3168
|
type: j.literal,
|
|
3171
3169
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3174,16 +3172,16 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3174
3172
|
}
|
|
3175
3173
|
var c = h.value;
|
|
3176
3174
|
if (!(n && c in n))
|
|
3177
|
-
throw new
|
|
3175
|
+
throw new Ji(c, l);
|
|
3178
3176
|
var m = n[c];
|
|
3179
|
-
if (
|
|
3177
|
+
if (xi(h)) {
|
|
3180
3178
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3181
3179
|
type: typeof m == "string" ? j.literal : j.object,
|
|
3182
3180
|
value: m
|
|
3183
3181
|
});
|
|
3184
3182
|
continue;
|
|
3185
3183
|
}
|
|
3186
|
-
if (
|
|
3184
|
+
if (rr(h)) {
|
|
3187
3185
|
var E = typeof h.style == "string" ? i.date[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3188
3186
|
a.push({
|
|
3189
3187
|
type: j.literal,
|
|
@@ -3191,7 +3189,7 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3191
3189
|
});
|
|
3192
3190
|
continue;
|
|
3193
3191
|
}
|
|
3194
|
-
if (
|
|
3192
|
+
if (ir(h)) {
|
|
3195
3193
|
var E = typeof h.style == "string" ? i.time[h.style] : lt(h.style) ? h.style.parsedOptions : i.time.medium;
|
|
3196
3194
|
a.push({
|
|
3197
3195
|
type: j.literal,
|
|
@@ -3199,18 +3197,18 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3199
3197
|
});
|
|
3200
3198
|
continue;
|
|
3201
3199
|
}
|
|
3202
|
-
if (
|
|
3203
|
-
var E = typeof h.style == "string" ? i.number[h.style] :
|
|
3200
|
+
if (tr(h)) {
|
|
3201
|
+
var E = typeof h.style == "string" ? i.number[h.style] : ar(h.style) ? h.style.parsedOptions : void 0;
|
|
3204
3202
|
E && E.scale && (m = m * (E.scale || 1)), a.push({
|
|
3205
3203
|
type: j.literal,
|
|
3206
3204
|
value: r.getNumberFormat(t, E).format(m)
|
|
3207
3205
|
});
|
|
3208
3206
|
continue;
|
|
3209
3207
|
}
|
|
3210
|
-
if (
|
|
3208
|
+
if (or(h)) {
|
|
3211
3209
|
var H = h.children, v = h.value, $ = n[v];
|
|
3212
|
-
if (!
|
|
3213
|
-
throw new
|
|
3210
|
+
if (!Ki($))
|
|
3211
|
+
throw new Zi(v, "function", l);
|
|
3214
3212
|
var V = Ve(H, t, r, i, n, s), U = $(V.map(function(I) {
|
|
3215
3213
|
return I.value;
|
|
3216
3214
|
}));
|
|
@@ -3221,14 +3219,14 @@ function Ve(e, t, r, i, n, s, l) {
|
|
|
3221
3219
|
};
|
|
3222
3220
|
}));
|
|
3223
3221
|
}
|
|
3224
|
-
if (
|
|
3222
|
+
if (nr(h)) {
|
|
3225
3223
|
var B = h.options[m] || h.options.other;
|
|
3226
3224
|
if (!B)
|
|
3227
|
-
throw new
|
|
3225
|
+
throw new Ct(h.value, m, Object.keys(h.options), l);
|
|
3228
3226
|
a.push.apply(a, Ve(B.value, t, r, i, n));
|
|
3229
3227
|
continue;
|
|
3230
3228
|
}
|
|
3231
|
-
if (
|
|
3229
|
+
if (sr(h)) {
|
|
3232
3230
|
var B = h.options["=".concat(m)];
|
|
3233
3231
|
if (!B) {
|
|
3234
3232
|
if (!Intl.PluralRules)
|
|
@@ -3239,22 +3237,22 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3239
3237
|
B = h.options[z] || h.options.other;
|
|
3240
3238
|
}
|
|
3241
3239
|
if (!B)
|
|
3242
|
-
throw new
|
|
3240
|
+
throw new Ct(h.value, m, Object.keys(h.options), l);
|
|
3243
3241
|
a.push.apply(a, Ve(B.value, t, r, i, n, m - (h.offset || 0)));
|
|
3244
3242
|
continue;
|
|
3245
3243
|
}
|
|
3246
3244
|
}
|
|
3247
|
-
return
|
|
3245
|
+
return Qi(a);
|
|
3248
3246
|
}
|
|
3249
|
-
function
|
|
3250
|
-
return t ?
|
|
3251
|
-
return r[i] =
|
|
3247
|
+
function en(e, t) {
|
|
3248
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, i) {
|
|
3249
|
+
return r[i] = P(P({}, e[i]), t[i] || {}), r;
|
|
3252
3250
|
}, {})) : e;
|
|
3253
3251
|
}
|
|
3254
|
-
function
|
|
3252
|
+
function tn(e, t) {
|
|
3255
3253
|
return t ? Object.keys(e).reduce(function(r, i) {
|
|
3256
|
-
return r[i] =
|
|
3257
|
-
},
|
|
3254
|
+
return r[i] = en(e[i], t[i]), r;
|
|
3255
|
+
}, P({}, e)) : e;
|
|
3258
3256
|
}
|
|
3259
3257
|
function it(e) {
|
|
3260
3258
|
return {
|
|
@@ -3270,7 +3268,7 @@ function it(e) {
|
|
|
3270
3268
|
}
|
|
3271
3269
|
};
|
|
3272
3270
|
}
|
|
3273
|
-
function
|
|
3271
|
+
function rn(e) {
|
|
3274
3272
|
return e === void 0 && (e = {
|
|
3275
3273
|
number: {},
|
|
3276
3274
|
dateTime: {},
|
|
@@ -3302,7 +3300,7 @@ function nn(e) {
|
|
|
3302
3300
|
})
|
|
3303
3301
|
};
|
|
3304
3302
|
}
|
|
3305
|
-
var
|
|
3303
|
+
var pr = (
|
|
3306
3304
|
/** @class */
|
|
3307
3305
|
function() {
|
|
3308
3306
|
function e(t, r, i, n) {
|
|
@@ -3334,13 +3332,13 @@ var vr = (
|
|
|
3334
3332
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3335
3333
|
var l = n || {};
|
|
3336
3334
|
l.formatters;
|
|
3337
|
-
var a =
|
|
3338
|
-
this.ast = e.__parse(t,
|
|
3335
|
+
var a = ci(l, ["formatters"]);
|
|
3336
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3339
3337
|
} else
|
|
3340
3338
|
this.ast = t;
|
|
3341
3339
|
if (!Array.isArray(this.ast))
|
|
3342
3340
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3343
|
-
this.formats =
|
|
3341
|
+
this.formats = tn(e.formats, i), this.formatters = n && n.formatters || rn(this.formatterCache);
|
|
3344
3342
|
}
|
|
3345
3343
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3346
3344
|
get: function() {
|
|
@@ -3353,7 +3351,7 @@ var vr = (
|
|
|
3353
3351
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3354
3352
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3355
3353
|
}
|
|
3356
|
-
}, e.__parse =
|
|
3354
|
+
}, e.__parse = Yi, e.formats = {
|
|
3357
3355
|
number: {
|
|
3358
3356
|
integer: {
|
|
3359
3357
|
maximumFractionDigits: 0
|
|
@@ -3414,7 +3412,7 @@ var vr = (
|
|
|
3414
3412
|
}, e;
|
|
3415
3413
|
}()
|
|
3416
3414
|
);
|
|
3417
|
-
function
|
|
3415
|
+
function nn(e, t) {
|
|
3418
3416
|
if (t == null)
|
|
3419
3417
|
return;
|
|
3420
3418
|
if (t in e)
|
|
@@ -3435,60 +3433,60 @@ function sn(e, t) {
|
|
|
3435
3433
|
i = void 0;
|
|
3436
3434
|
return i;
|
|
3437
3435
|
}
|
|
3438
|
-
const he = {},
|
|
3436
|
+
const he = {}, sn = (e, t, r) => r && (t in he || (he[t] = {}), e in he[t] || (he[t][e] = r), r), gr = (e, t) => {
|
|
3439
3437
|
if (t == null)
|
|
3440
3438
|
return;
|
|
3441
3439
|
if (t in he && e in he[t])
|
|
3442
3440
|
return he[t][e];
|
|
3443
3441
|
const r = Ne(t);
|
|
3444
3442
|
for (let i = 0; i < r.length; i++) {
|
|
3445
|
-
const n = r[i], s =
|
|
3443
|
+
const n = r[i], s = an(n, e);
|
|
3446
3444
|
if (s)
|
|
3447
|
-
return
|
|
3445
|
+
return sn(e, t, s);
|
|
3448
3446
|
}
|
|
3449
3447
|
};
|
|
3450
|
-
let
|
|
3448
|
+
let xt;
|
|
3451
3449
|
const Le = We({});
|
|
3452
|
-
function
|
|
3453
|
-
return
|
|
3450
|
+
function on(e) {
|
|
3451
|
+
return xt[e] || null;
|
|
3454
3452
|
}
|
|
3455
|
-
function
|
|
3456
|
-
return e in
|
|
3453
|
+
function vr(e) {
|
|
3454
|
+
return e in xt;
|
|
3457
3455
|
}
|
|
3458
|
-
function
|
|
3459
|
-
if (!
|
|
3456
|
+
function an(e, t) {
|
|
3457
|
+
if (!vr(e))
|
|
3460
3458
|
return null;
|
|
3461
|
-
const r =
|
|
3462
|
-
return
|
|
3459
|
+
const r = on(e);
|
|
3460
|
+
return nn(r, t);
|
|
3463
3461
|
}
|
|
3464
|
-
function
|
|
3462
|
+
function un(e) {
|
|
3465
3463
|
if (e == null)
|
|
3466
3464
|
return;
|
|
3467
3465
|
const t = Ne(e);
|
|
3468
3466
|
for (let r = 0; r < t.length; r++) {
|
|
3469
3467
|
const i = t[r];
|
|
3470
|
-
if (
|
|
3468
|
+
if (vr(i))
|
|
3471
3469
|
return i;
|
|
3472
3470
|
}
|
|
3473
3471
|
}
|
|
3474
|
-
function
|
|
3475
|
-
delete he[e], Le.update((r) => (r[e] =
|
|
3472
|
+
function br(e, ...t) {
|
|
3473
|
+
delete he[e], Le.update((r) => (r[e] = fi.all([r[e] || {}, ...t]), r));
|
|
3476
3474
|
}
|
|
3477
3475
|
Oe(
|
|
3478
3476
|
[Le],
|
|
3479
3477
|
([e]) => Object.keys(e)
|
|
3480
3478
|
);
|
|
3481
|
-
Le.subscribe((e) =>
|
|
3479
|
+
Le.subscribe((e) => xt = e);
|
|
3482
3480
|
const Ge = {};
|
|
3483
|
-
function
|
|
3481
|
+
function ln(e, t) {
|
|
3484
3482
|
Ge[e].delete(t), Ge[e].size === 0 && delete Ge[e];
|
|
3485
3483
|
}
|
|
3486
|
-
function
|
|
3484
|
+
function yr(e) {
|
|
3487
3485
|
return Ge[e];
|
|
3488
3486
|
}
|
|
3489
|
-
function
|
|
3487
|
+
function hn(e) {
|
|
3490
3488
|
return Ne(e).map((t) => {
|
|
3491
|
-
const r =
|
|
3489
|
+
const r = yr(t);
|
|
3492
3490
|
return [t, r ? [...r] : []];
|
|
3493
3491
|
}).filter(([, t]) => t.length > 0);
|
|
3494
3492
|
}
|
|
@@ -3496,40 +3494,40 @@ function je(e) {
|
|
|
3496
3494
|
return e == null ? !1 : Ne(e).some(
|
|
3497
3495
|
(t) => {
|
|
3498
3496
|
var r;
|
|
3499
|
-
return (r =
|
|
3497
|
+
return (r = yr(t)) == null ? void 0 : r.size;
|
|
3500
3498
|
}
|
|
3501
3499
|
);
|
|
3502
3500
|
}
|
|
3503
|
-
function
|
|
3501
|
+
function fn(e, t) {
|
|
3504
3502
|
return Promise.all(
|
|
3505
|
-
t.map((i) => (
|
|
3506
|
-
).then((i) =>
|
|
3503
|
+
t.map((i) => (ln(e, i), i().then((n) => n.default || n)))
|
|
3504
|
+
).then((i) => br(e, ...i));
|
|
3507
3505
|
}
|
|
3508
|
-
const
|
|
3509
|
-
function
|
|
3506
|
+
const Ae = {};
|
|
3507
|
+
function xr(e) {
|
|
3510
3508
|
if (!je(e))
|
|
3511
|
-
return e in
|
|
3512
|
-
const t =
|
|
3513
|
-
return
|
|
3509
|
+
return e in Ae ? Ae[e] : Promise.resolve();
|
|
3510
|
+
const t = hn(e);
|
|
3511
|
+
return Ae[e] = Promise.all(
|
|
3514
3512
|
t.map(
|
|
3515
|
-
([r, i]) =>
|
|
3513
|
+
([r, i]) => fn(r, i)
|
|
3516
3514
|
)
|
|
3517
3515
|
).then(() => {
|
|
3518
3516
|
if (je(e))
|
|
3519
|
-
return
|
|
3520
|
-
delete
|
|
3521
|
-
}),
|
|
3517
|
+
return xr(e);
|
|
3518
|
+
delete Ae[e];
|
|
3519
|
+
}), Ae[e];
|
|
3522
3520
|
}
|
|
3523
|
-
var
|
|
3521
|
+
var Dt = Object.getOwnPropertySymbols, cn = Object.prototype.hasOwnProperty, dn = Object.prototype.propertyIsEnumerable, mn = (e, t) => {
|
|
3524
3522
|
var r = {};
|
|
3525
3523
|
for (var i in e)
|
|
3526
|
-
|
|
3527
|
-
if (e != null &&
|
|
3528
|
-
for (var i of
|
|
3529
|
-
t.indexOf(i) < 0 &&
|
|
3524
|
+
cn.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3525
|
+
if (e != null && Dt)
|
|
3526
|
+
for (var i of Dt(e))
|
|
3527
|
+
t.indexOf(i) < 0 && dn.call(e, i) && (r[i] = e[i]);
|
|
3530
3528
|
return r;
|
|
3531
3529
|
};
|
|
3532
|
-
const
|
|
3530
|
+
const pn = {
|
|
3533
3531
|
number: {
|
|
3534
3532
|
scientific: { notation: "scientific" },
|
|
3535
3533
|
engineering: { notation: "engineering" },
|
|
@@ -3559,7 +3557,7 @@ const gn = {
|
|
|
3559
3557
|
}
|
|
3560
3558
|
}
|
|
3561
3559
|
};
|
|
3562
|
-
function
|
|
3560
|
+
function gn({ locale: e, id: t }) {
|
|
3563
3561
|
console.warn(
|
|
3564
3562
|
`[svelte-i18n] The message "${t}" was not found in "${Ne(
|
|
3565
3563
|
e
|
|
@@ -3568,49 +3566,49 @@ function vn({ locale: e, id: t }) {
|
|
|
3568
3566
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3569
3567
|
);
|
|
3570
3568
|
}
|
|
3571
|
-
const
|
|
3569
|
+
const vn = {
|
|
3572
3570
|
fallbackLocale: null,
|
|
3573
3571
|
loadingDelay: 200,
|
|
3574
|
-
formats:
|
|
3572
|
+
formats: pn,
|
|
3575
3573
|
warnOnMissingMessages: !0,
|
|
3576
3574
|
handleMissingMessage: void 0,
|
|
3577
3575
|
ignoreTag: !0
|
|
3578
|
-
}, $e =
|
|
3576
|
+
}, $e = vn;
|
|
3579
3577
|
function He() {
|
|
3580
3578
|
return $e;
|
|
3581
3579
|
}
|
|
3582
|
-
function
|
|
3583
|
-
const t = e, { formats: r } = t, i =
|
|
3580
|
+
function bn(e) {
|
|
3581
|
+
const t = e, { formats: r } = t, i = mn(t, ["formats"]);
|
|
3584
3582
|
let n = e.fallbackLocale;
|
|
3585
3583
|
if (e.initialLocale)
|
|
3586
3584
|
try {
|
|
3587
|
-
|
|
3585
|
+
pr.resolveLocale(e.initialLocale) && (n = e.initialLocale);
|
|
3588
3586
|
} catch {
|
|
3589
3587
|
console.warn(
|
|
3590
3588
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3591
3589
|
);
|
|
3592
3590
|
}
|
|
3593
|
-
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage =
|
|
3591
|
+
return i.warnOnMissingMessages && (delete i.warnOnMissingMessages, i.handleMissingMessage == null ? i.handleMissingMessage = gn : console.warn(
|
|
3594
3592
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3595
3593
|
)), Object.assign($e, i, { initialLocale: n }), r && ("number" in r && Object.assign($e.formats.number, r.number), "date" in r && Object.assign($e.formats.date, r.date), "time" in r && Object.assign($e.formats.time, r.time)), de.set(n);
|
|
3596
3594
|
}
|
|
3597
3595
|
const nt = We(!1);
|
|
3598
|
-
var
|
|
3596
|
+
var yn = Object.defineProperty, xn = Object.defineProperties, _n = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, wn = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Sn = (e, t) => {
|
|
3599
3597
|
for (var r in t || (t = {}))
|
|
3600
|
-
|
|
3601
|
-
if (
|
|
3602
|
-
for (var r of
|
|
3603
|
-
|
|
3598
|
+
En.call(t, r) && Lt(e, r, t[r]);
|
|
3599
|
+
if (It)
|
|
3600
|
+
for (var r of It(t))
|
|
3601
|
+
wn.call(t, r) && Lt(e, r, t[r]);
|
|
3604
3602
|
return e;
|
|
3605
|
-
},
|
|
3603
|
+
}, Tn = (e, t) => xn(e, _n(t));
|
|
3606
3604
|
let pt;
|
|
3607
3605
|
const ze = We(null);
|
|
3608
|
-
function
|
|
3606
|
+
function Nt(e) {
|
|
3609
3607
|
return e.split("-").map((t, r, i) => i.slice(0, r + 1).join("-")).reverse();
|
|
3610
3608
|
}
|
|
3611
3609
|
function Ne(e, t = He().fallbackLocale) {
|
|
3612
|
-
const r =
|
|
3613
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3610
|
+
const r = Nt(e);
|
|
3611
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Nt(t)])] : r;
|
|
3614
3612
|
}
|
|
3615
3613
|
function fe() {
|
|
3616
3614
|
return pt ?? void 0;
|
|
@@ -3618,22 +3616,22 @@ function fe() {
|
|
|
3618
3616
|
ze.subscribe((e) => {
|
|
3619
3617
|
pt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3620
3618
|
});
|
|
3621
|
-
const
|
|
3622
|
-
if (e &&
|
|
3619
|
+
const Hn = (e) => {
|
|
3620
|
+
if (e && un(e) && je(e)) {
|
|
3623
3621
|
const { loadingDelay: t } = He();
|
|
3624
3622
|
let r;
|
|
3625
3623
|
return typeof window < "u" && fe() != null && t ? r = window.setTimeout(
|
|
3626
3624
|
() => nt.set(!0),
|
|
3627
3625
|
t
|
|
3628
|
-
) : nt.set(!0),
|
|
3626
|
+
) : nt.set(!0), xr(e).then(() => {
|
|
3629
3627
|
ze.set(e);
|
|
3630
3628
|
}).finally(() => {
|
|
3631
3629
|
clearTimeout(r), nt.set(!1);
|
|
3632
3630
|
});
|
|
3633
3631
|
}
|
|
3634
3632
|
return ze.set(e);
|
|
3635
|
-
}, de =
|
|
3636
|
-
set:
|
|
3633
|
+
}, de = Tn(Sn({}, ze), {
|
|
3634
|
+
set: Hn
|
|
3637
3635
|
}), Ze = (e) => {
|
|
3638
3636
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3639
3637
|
return (i) => {
|
|
@@ -3641,20 +3639,20 @@ const On = (e) => {
|
|
|
3641
3639
|
return n in t ? t[n] : t[n] = e(i);
|
|
3642
3640
|
};
|
|
3643
3641
|
};
|
|
3644
|
-
var
|
|
3642
|
+
var On = Object.defineProperty, Xe = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Rt = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _t = (e, t) => {
|
|
3645
3643
|
for (var r in t || (t = {}))
|
|
3646
|
-
|
|
3644
|
+
_r.call(t, r) && Rt(e, r, t[r]);
|
|
3647
3645
|
if (Xe)
|
|
3648
3646
|
for (var r of Xe(t))
|
|
3649
|
-
|
|
3647
|
+
Er.call(t, r) && Rt(e, r, t[r]);
|
|
3650
3648
|
return e;
|
|
3651
|
-
},
|
|
3649
|
+
}, Pe = (e, t) => {
|
|
3652
3650
|
var r = {};
|
|
3653
3651
|
for (var i in e)
|
|
3654
|
-
|
|
3652
|
+
_r.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
|
|
3655
3653
|
if (e != null && Xe)
|
|
3656
3654
|
for (var i of Xe(e))
|
|
3657
|
-
t.indexOf(i) < 0 &&
|
|
3655
|
+
t.indexOf(i) < 0 && Er.call(e, i) && (r[i] = e[i]);
|
|
3658
3656
|
return r;
|
|
3659
3657
|
};
|
|
3660
3658
|
const De = (e, t) => {
|
|
@@ -3664,54 +3662,54 @@ const De = (e, t) => {
|
|
|
3664
3662
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3665
3663
|
}, Pn = Ze(
|
|
3666
3664
|
(e) => {
|
|
3667
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3665
|
+
var t = e, { locale: r, format: i } = t, n = Pe(t, ["locale", "format"]);
|
|
3668
3666
|
if (r == null)
|
|
3669
3667
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3670
3668
|
return i && (n = De("number", i)), new Intl.NumberFormat(r, n);
|
|
3671
3669
|
}
|
|
3672
|
-
),
|
|
3670
|
+
), An = Ze(
|
|
3673
3671
|
(e) => {
|
|
3674
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3672
|
+
var t = e, { locale: r, format: i } = t, n = Pe(t, ["locale", "format"]);
|
|
3675
3673
|
if (r == null)
|
|
3676
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3677
3675
|
return i ? n = De("date", i) : Object.keys(n).length === 0 && (n = De("date", "short")), new Intl.DateTimeFormat(r, n);
|
|
3678
3676
|
}
|
|
3679
|
-
),
|
|
3677
|
+
), $n = Ze(
|
|
3680
3678
|
(e) => {
|
|
3681
|
-
var t = e, { locale: r, format: i } = t, n =
|
|
3679
|
+
var t = e, { locale: r, format: i } = t, n = Pe(t, ["locale", "format"]);
|
|
3682
3680
|
if (r == null)
|
|
3683
3681
|
throw new Error(
|
|
3684
3682
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3685
3683
|
);
|
|
3686
3684
|
return i ? n = De("time", i) : Object.keys(n).length === 0 && (n = De("time", "short")), new Intl.DateTimeFormat(r, n);
|
|
3687
3685
|
}
|
|
3688
|
-
),
|
|
3686
|
+
), Bn = (e = {}) => {
|
|
3689
3687
|
var t = e, {
|
|
3690
3688
|
locale: r = fe()
|
|
3691
|
-
} = t, i =
|
|
3689
|
+
} = t, i = Pe(t, [
|
|
3692
3690
|
"locale"
|
|
3693
3691
|
]);
|
|
3694
|
-
return Pn(
|
|
3695
|
-
},
|
|
3692
|
+
return Pn(_t({ locale: r }, i));
|
|
3693
|
+
}, Mn = (e = {}) => {
|
|
3696
3694
|
var t = e, {
|
|
3697
3695
|
locale: r = fe()
|
|
3698
|
-
} = t, i =
|
|
3696
|
+
} = t, i = Pe(t, [
|
|
3699
3697
|
"locale"
|
|
3700
3698
|
]);
|
|
3701
|
-
return
|
|
3702
|
-
},
|
|
3699
|
+
return An(_t({ locale: r }, i));
|
|
3700
|
+
}, Cn = (e = {}) => {
|
|
3703
3701
|
var t = e, {
|
|
3704
3702
|
locale: r = fe()
|
|
3705
|
-
} = t, i =
|
|
3703
|
+
} = t, i = Pe(t, [
|
|
3706
3704
|
"locale"
|
|
3707
3705
|
]);
|
|
3708
|
-
return
|
|
3709
|
-
},
|
|
3706
|
+
return $n(_t({ locale: r }, i));
|
|
3707
|
+
}, Dn = Ze(
|
|
3710
3708
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3711
|
-
(e, t = fe()) => new
|
|
3709
|
+
(e, t = fe()) => new pr(e, t, He().formats, {
|
|
3712
3710
|
ignoreTag: He().ignoreTag
|
|
3713
3711
|
})
|
|
3714
|
-
),
|
|
3712
|
+
), In = (e, t = {}) => {
|
|
3715
3713
|
var r, i, n, s;
|
|
3716
3714
|
let l = t;
|
|
3717
3715
|
typeof e == "object" && (l = e, e = l.id);
|
|
@@ -3724,7 +3722,7 @@ const De = (e, t) => {
|
|
|
3724
3722
|
throw new Error(
|
|
3725
3723
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3726
3724
|
);
|
|
3727
|
-
let h =
|
|
3725
|
+
let h = gr(e, o);
|
|
3728
3726
|
if (!h)
|
|
3729
3727
|
h = (s = (n = (i = (r = He()).handleMissingMessage) == null ? void 0 : i.call(r, { locale: o, id: e, defaultValue: u })) != null ? n : u) != null ? s : e;
|
|
3730
3728
|
else if (typeof h != "string")
|
|
@@ -3735,7 +3733,7 @@ const De = (e, t) => {
|
|
|
3735
3733
|
return h;
|
|
3736
3734
|
let c = h;
|
|
3737
3735
|
try {
|
|
3738
|
-
c =
|
|
3736
|
+
c = Dn(h, o).format(a);
|
|
3739
3737
|
} catch (m) {
|
|
3740
3738
|
m instanceof Error && console.warn(
|
|
3741
3739
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3743,20 +3741,20 @@ const De = (e, t) => {
|
|
|
3743
3741
|
);
|
|
3744
3742
|
}
|
|
3745
3743
|
return c;
|
|
3746
|
-
},
|
|
3744
|
+
}, Ln = (e, t) => Cn(t).format(e), Nn = (e, t) => Mn(t).format(e), Rn = (e, t) => Bn(t).format(e), kn = (e, t = fe()) => gr(e, t), Un = Oe([de, Le], () => In);
|
|
3745
|
+
Oe([de], () => Ln);
|
|
3747
3746
|
Oe([de], () => Nn);
|
|
3748
3747
|
Oe([de], () => Rn);
|
|
3749
|
-
Oe([de], () => kn);
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
xr(e, t);
|
|
3748
|
+
Oe([de, Le], () => kn);
|
|
3749
|
+
function kt(e, t) {
|
|
3750
|
+
br(e, t);
|
|
3753
3751
|
}
|
|
3754
|
-
function
|
|
3755
|
-
|
|
3752
|
+
function Fn(e) {
|
|
3753
|
+
bn({
|
|
3756
3754
|
fallbackLocale: "en"
|
|
3757
3755
|
}), de.set(e);
|
|
3758
3756
|
}
|
|
3759
|
-
const
|
|
3757
|
+
const Ut = {
|
|
3760
3758
|
en: {
|
|
3761
3759
|
"verification.video.how-to": "How to verify yourself",
|
|
3762
3760
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
@@ -3824,15 +3822,15 @@ if (typeof window < "u") {
|
|
|
3824
3822
|
}
|
|
3825
3823
|
};
|
|
3826
3824
|
};
|
|
3827
|
-
customElements.define = e(customElements.define), import("./CashierVideoModal-
|
|
3825
|
+
customElements.define = e(customElements.define), import("./CashierVideoModal-C5K2k6vl.js").then(({ default: t }) => {
|
|
3828
3826
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", t.element);
|
|
3829
3827
|
});
|
|
3830
3828
|
}
|
|
3831
|
-
var
|
|
3829
|
+
var wr = { exports: {} };
|
|
3832
3830
|
(function(e, t) {
|
|
3833
3831
|
(function(r, i) {
|
|
3834
3832
|
e.exports = i();
|
|
3835
|
-
})(
|
|
3833
|
+
})(Jt, function() {
|
|
3836
3834
|
var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", l = "second", a = "minute", o = "hour", u = "day", h = "week", c = "month", m = "quarter", E = "year", H = "date", v = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|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, U = { 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(x) {
|
|
3837
3835
|
var g = ["th", "st", "nd", "rd"], d = x % 100;
|
|
3838
3836
|
return "[" + x + (g[(d - 20) % 10] || g[d] || g[0]) + "]";
|
|
@@ -3877,8 +3875,8 @@ var Tr = { exports: {} };
|
|
|
3877
3875
|
return x.clone();
|
|
3878
3876
|
var d = typeof g == "object" ? g : {};
|
|
3879
3877
|
return d.date = x, d.args = arguments, new me(d);
|
|
3880
|
-
},
|
|
3881
|
-
|
|
3878
|
+
}, A = z;
|
|
3879
|
+
A.l = X, A.i = R, A.w = function(x, g) {
|
|
3882
3880
|
return k(x, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3883
3881
|
};
|
|
3884
3882
|
var me = function() {
|
|
@@ -3891,7 +3889,7 @@ var Tr = { exports: {} };
|
|
|
3891
3889
|
var p = b.date, _ = b.utc;
|
|
3892
3890
|
if (p === null)
|
|
3893
3891
|
return /* @__PURE__ */ new Date(NaN);
|
|
3894
|
-
if (
|
|
3892
|
+
if (A.u(p))
|
|
3895
3893
|
return /* @__PURE__ */ new Date();
|
|
3896
3894
|
if (p instanceof Date)
|
|
3897
3895
|
return new Date(p);
|
|
@@ -3908,7 +3906,7 @@ var Tr = { exports: {} };
|
|
|
3908
3906
|
var d = this.$d;
|
|
3909
3907
|
this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
|
|
3910
3908
|
}, g.$utils = function() {
|
|
3911
|
-
return
|
|
3909
|
+
return A;
|
|
3912
3910
|
}, g.isValid = function() {
|
|
3913
3911
|
return this.$d.toString() !== v;
|
|
3914
3912
|
}, g.isSame = function(d, b) {
|
|
@@ -3919,17 +3917,17 @@ var Tr = { exports: {} };
|
|
|
3919
3917
|
}, g.isBefore = function(d, b) {
|
|
3920
3918
|
return this.endOf(b) < k(d);
|
|
3921
3919
|
}, g.$g = function(d, b, p) {
|
|
3922
|
-
return
|
|
3920
|
+
return A.u(d) ? this[b] : this.set(p, d);
|
|
3923
3921
|
}, g.unix = function() {
|
|
3924
3922
|
return Math.floor(this.valueOf() / 1e3);
|
|
3925
3923
|
}, g.valueOf = function() {
|
|
3926
3924
|
return this.$d.getTime();
|
|
3927
3925
|
}, g.startOf = function(d, b) {
|
|
3928
|
-
var p = this, _ = !!
|
|
3929
|
-
var J =
|
|
3926
|
+
var p = this, _ = !!A.u(b) || b, w = A.p(d), M = function(oe, G) {
|
|
3927
|
+
var J = A.w(p.$u ? Date.UTC(p.$y, G, oe) : new Date(p.$y, G, oe), p);
|
|
3930
3928
|
return _ ? J : J.endOf(u);
|
|
3931
3929
|
}, D = function(oe, G) {
|
|
3932
|
-
return
|
|
3930
|
+
return A.w(p.toDate()[oe].apply(p.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), p);
|
|
3933
3931
|
}, N = this.$W, F = this.$M, W = this.$D, ue = "set" + (this.$u ? "UTC" : "");
|
|
3934
3932
|
switch (w) {
|
|
3935
3933
|
case E:
|
|
@@ -3954,7 +3952,7 @@ var Tr = { exports: {} };
|
|
|
3954
3952
|
}, g.endOf = function(d) {
|
|
3955
3953
|
return this.startOf(d, !1);
|
|
3956
3954
|
}, g.$set = function(d, b) {
|
|
3957
|
-
var p, _ =
|
|
3955
|
+
var p, _ = A.p(d), w = "set" + (this.$u ? "UTC" : ""), M = (p = {}, p[u] = w + "Date", p[H] = w + "Date", p[c] = w + "Month", p[E] = w + "FullYear", p[o] = w + "Hours", p[a] = w + "Minutes", p[l] = w + "Seconds", p[s] = w + "Milliseconds", p)[_], D = _ === u ? this.$D + (b - this.$W) : b;
|
|
3958
3956
|
if (_ === c || _ === E) {
|
|
3959
3957
|
var N = this.clone().set(H, 1);
|
|
3960
3958
|
N.$d[M](D), N.init(), this.$d = N.set(H, Math.min(this.$D, N.daysInMonth())).$d;
|
|
@@ -3964,13 +3962,13 @@ var Tr = { exports: {} };
|
|
|
3964
3962
|
}, g.set = function(d, b) {
|
|
3965
3963
|
return this.clone().$set(d, b);
|
|
3966
3964
|
}, g.get = function(d) {
|
|
3967
|
-
return this[
|
|
3965
|
+
return this[A.p(d)]();
|
|
3968
3966
|
}, g.add = function(d, b) {
|
|
3969
3967
|
var p, _ = this;
|
|
3970
3968
|
d = Number(d);
|
|
3971
|
-
var w =
|
|
3969
|
+
var w = A.p(b), M = function(F) {
|
|
3972
3970
|
var W = k(_);
|
|
3973
|
-
return
|
|
3971
|
+
return A.w(W.date(W.date() + Math.round(F * d)), _);
|
|
3974
3972
|
};
|
|
3975
3973
|
if (w === c)
|
|
3976
3974
|
return this.set(c, this.$M + d);
|
|
@@ -3981,17 +3979,17 @@ var Tr = { exports: {} };
|
|
|
3981
3979
|
if (w === h)
|
|
3982
3980
|
return M(7);
|
|
3983
3981
|
var D = (p = {}, p[a] = i, p[o] = n, p[l] = r, p)[w] || 1, N = this.$d.getTime() + d * D;
|
|
3984
|
-
return
|
|
3982
|
+
return A.w(N, this);
|
|
3985
3983
|
}, g.subtract = function(d, b) {
|
|
3986
3984
|
return this.add(-1 * d, b);
|
|
3987
3985
|
}, g.format = function(d) {
|
|
3988
3986
|
var b = this, p = this.$locale();
|
|
3989
3987
|
if (!this.isValid())
|
|
3990
3988
|
return p.invalidDate || v;
|
|
3991
|
-
var _ = d || "YYYY-MM-DDTHH:mm:ssZ", w =
|
|
3989
|
+
var _ = d || "YYYY-MM-DDTHH:mm:ssZ", w = A.z(this), M = this.$H, D = this.$m, N = this.$M, F = p.weekdays, W = p.months, ue = p.meridiem, ne = function(G, J, ce, pe) {
|
|
3992
3990
|
return G && (G[J] || G(b, _)) || ce[J].slice(0, pe);
|
|
3993
3991
|
}, se = function(G) {
|
|
3994
|
-
return
|
|
3992
|
+
return A.s(M % 12 || 12, G, "0");
|
|
3995
3993
|
}, oe = ue || function(G, J, ce) {
|
|
3996
3994
|
var pe = G < 12 ? "AM" : "PM";
|
|
3997
3995
|
return ce ? pe.toLowerCase() : pe;
|
|
@@ -4002,11 +4000,11 @@ var Tr = { exports: {} };
|
|
|
4002
4000
|
case "YY":
|
|
4003
4001
|
return String(b.$y).slice(-2);
|
|
4004
4002
|
case "YYYY":
|
|
4005
|
-
return
|
|
4003
|
+
return A.s(b.$y, 4, "0");
|
|
4006
4004
|
case "M":
|
|
4007
4005
|
return N + 1;
|
|
4008
4006
|
case "MM":
|
|
4009
|
-
return
|
|
4007
|
+
return A.s(N + 1, 2, "0");
|
|
4010
4008
|
case "MMM":
|
|
4011
4009
|
return ne(p.monthsShort, N, W, 3);
|
|
4012
4010
|
case "MMMM":
|
|
@@ -4014,7 +4012,7 @@ var Tr = { exports: {} };
|
|
|
4014
4012
|
case "D":
|
|
4015
4013
|
return b.$D;
|
|
4016
4014
|
case "DD":
|
|
4017
|
-
return
|
|
4015
|
+
return A.s(b.$D, 2, "0");
|
|
4018
4016
|
case "d":
|
|
4019
4017
|
return String(b.$W);
|
|
4020
4018
|
case "dd":
|
|
@@ -4026,7 +4024,7 @@ var Tr = { exports: {} };
|
|
|
4026
4024
|
case "H":
|
|
4027
4025
|
return String(M);
|
|
4028
4026
|
case "HH":
|
|
4029
|
-
return
|
|
4027
|
+
return A.s(M, 2, "0");
|
|
4030
4028
|
case "h":
|
|
4031
4029
|
return se(1);
|
|
4032
4030
|
case "hh":
|
|
@@ -4038,13 +4036,13 @@ var Tr = { exports: {} };
|
|
|
4038
4036
|
case "m":
|
|
4039
4037
|
return String(D);
|
|
4040
4038
|
case "mm":
|
|
4041
|
-
return
|
|
4039
|
+
return A.s(D, 2, "0");
|
|
4042
4040
|
case "s":
|
|
4043
4041
|
return String(b.$s);
|
|
4044
4042
|
case "ss":
|
|
4045
|
-
return
|
|
4043
|
+
return A.s(b.$s, 2, "0");
|
|
4046
4044
|
case "SSS":
|
|
4047
|
-
return
|
|
4045
|
+
return A.s(b.$ms, 3, "0");
|
|
4048
4046
|
case "Z":
|
|
4049
4047
|
return w;
|
|
4050
4048
|
}
|
|
@@ -4054,8 +4052,8 @@ var Tr = { exports: {} };
|
|
|
4054
4052
|
}, g.utcOffset = function() {
|
|
4055
4053
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4056
4054
|
}, g.diff = function(d, b, p) {
|
|
4057
|
-
var _, w = this, M =
|
|
4058
|
-
return
|
|
4055
|
+
var _, w = this, M = A.p(b), D = k(d), N = (D.utcOffset() - this.utcOffset()) * i, F = this - D, W = function() {
|
|
4056
|
+
return A.m(w, D);
|
|
4059
4057
|
};
|
|
4060
4058
|
switch (M) {
|
|
4061
4059
|
case E:
|
|
@@ -4085,7 +4083,7 @@ var Tr = { exports: {} };
|
|
|
4085
4083
|
default:
|
|
4086
4084
|
_ = F;
|
|
4087
4085
|
}
|
|
4088
|
-
return p ? _ :
|
|
4086
|
+
return p ? _ : A.a(_);
|
|
4089
4087
|
}, g.daysInMonth = function() {
|
|
4090
4088
|
return this.endOf(c).$D;
|
|
4091
4089
|
}, g.$locale = function() {
|
|
@@ -4096,7 +4094,7 @@ var Tr = { exports: {} };
|
|
|
4096
4094
|
var p = this.clone(), _ = X(d, b, !0);
|
|
4097
4095
|
return _ && (p.$L = _), p;
|
|
4098
4096
|
}, g.clone = function() {
|
|
4099
|
-
return
|
|
4097
|
+
return A.w(this.$d, this);
|
|
4100
4098
|
}, g.toDate = function() {
|
|
4101
4099
|
return new Date(this.valueOf());
|
|
4102
4100
|
}, g.toJSON = function() {
|
|
@@ -4117,14 +4115,14 @@ var Tr = { exports: {} };
|
|
|
4117
4115
|
return k(1e3 * x);
|
|
4118
4116
|
}, k.en = L[I], k.Ls = L, k.p = {}, k;
|
|
4119
4117
|
});
|
|
4120
|
-
})(
|
|
4121
|
-
var
|
|
4122
|
-
const
|
|
4123
|
-
var
|
|
4118
|
+
})(wr);
|
|
4119
|
+
var Vn = wr.exports;
|
|
4120
|
+
const Ft = /* @__PURE__ */ yt(Vn);
|
|
4121
|
+
var Sr = { exports: {} };
|
|
4124
4122
|
(function(e, t) {
|
|
4125
4123
|
(function(r, i) {
|
|
4126
4124
|
e.exports = i();
|
|
4127
|
-
})(
|
|
4125
|
+
})(Jt, function() {
|
|
4128
4126
|
var r = "minute", i = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
4129
4127
|
return function(s, l, a) {
|
|
4130
4128
|
var o = l.prototype;
|
|
@@ -4200,26 +4198,26 @@ var Hr = { exports: {} };
|
|
|
4200
4198
|
};
|
|
4201
4199
|
};
|
|
4202
4200
|
});
|
|
4203
|
-
})(
|
|
4204
|
-
var
|
|
4205
|
-
const
|
|
4206
|
-
function
|
|
4207
|
-
|
|
4201
|
+
})(Sr);
|
|
4202
|
+
var Gn = Sr.exports;
|
|
4203
|
+
const jn = /* @__PURE__ */ yt(Gn);
|
|
4204
|
+
function zn(e) {
|
|
4205
|
+
Ar(e, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
4208
4206
|
}
|
|
4209
|
-
function
|
|
4207
|
+
function Vt(e, t, r) {
|
|
4210
4208
|
const i = e.slice();
|
|
4211
4209
|
return i[49] = t[r], i[51] = r, i;
|
|
4212
4210
|
}
|
|
4213
|
-
function
|
|
4214
|
-
let t, r, i, n, s =
|
|
4211
|
+
function Gt(e) {
|
|
4212
|
+
let t, r, i, n, s = St(
|
|
4215
4213
|
/*displayMessages*/
|
|
4216
4214
|
e[4]
|
|
4217
4215
|
), l = [];
|
|
4218
4216
|
for (let o = 0; o < s.length; o += 1)
|
|
4219
|
-
l[o] =
|
|
4217
|
+
l[o] = zt(Vt(e, s, o));
|
|
4220
4218
|
let a = (
|
|
4221
4219
|
/*videoExists*/
|
|
4222
|
-
e[7] &&
|
|
4220
|
+
e[7] && Xt(e)
|
|
4223
4221
|
);
|
|
4224
4222
|
return {
|
|
4225
4223
|
c() {
|
|
@@ -4257,21 +4255,21 @@ function zt(e) {
|
|
|
4257
4255
|
p(o, u) {
|
|
4258
4256
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
4259
4257
|
1072) {
|
|
4260
|
-
s =
|
|
4258
|
+
s = St(
|
|
4261
4259
|
/*displayMessages*/
|
|
4262
4260
|
o[4]
|
|
4263
4261
|
);
|
|
4264
4262
|
let h;
|
|
4265
4263
|
for (h = 0; h < s.length; h += 1) {
|
|
4266
|
-
const c =
|
|
4267
|
-
l[h] ? l[h].p(c, u) : (l[h] =
|
|
4264
|
+
const c = Vt(o, s, h);
|
|
4265
|
+
l[h] ? l[h].p(c, u) : (l[h] = zt(c), l[h].c(), l[h].m(t, null));
|
|
4268
4266
|
}
|
|
4269
4267
|
for (; h < l.length; h += 1)
|
|
4270
4268
|
l[h].d(1);
|
|
4271
4269
|
l.length = s.length;
|
|
4272
4270
|
}
|
|
4273
4271
|
/*videoExists*/
|
|
4274
|
-
o[7] ? a ? a.p(o, u) : (a =
|
|
4272
|
+
o[7] ? a ? a.p(o, u) : (a = Xt(o), a.c(), a.m(i.parentNode, i)) : a && (a.d(1), a = null), u[0] & /*clientstylingurl*/
|
|
4275
4273
|
2 && le(
|
|
4276
4274
|
n,
|
|
4277
4275
|
"clientstylingurl",
|
|
@@ -4298,11 +4296,11 @@ function zt(e) {
|
|
|
4298
4296
|
);
|
|
4299
4297
|
},
|
|
4300
4298
|
d(o) {
|
|
4301
|
-
o && (ie(t), ie(r), ie(i), ie(n)),
|
|
4299
|
+
o && (ie(t), ie(r), ie(i), ie(n)), Mr(l, o), a && a.d(o);
|
|
4302
4300
|
}
|
|
4303
4301
|
};
|
|
4304
4302
|
}
|
|
4305
|
-
function
|
|
4303
|
+
function jt(e) {
|
|
4306
4304
|
let t, r, i;
|
|
4307
4305
|
function n(...s) {
|
|
4308
4306
|
return (
|
|
@@ -4329,14 +4327,14 @@ function Xt(e) {
|
|
|
4329
4327
|
}
|
|
4330
4328
|
};
|
|
4331
4329
|
}
|
|
4332
|
-
function
|
|
4330
|
+
function zt(e) {
|
|
4333
4331
|
let t, r, i, n, s = (
|
|
4334
4332
|
/*message*/
|
|
4335
4333
|
e[49] + ""
|
|
4336
4334
|
), l, a, o, u, h = (
|
|
4337
4335
|
/*displayMessages*/
|
|
4338
4336
|
e[4].length > 1 && /*index*/
|
|
4339
|
-
e[51] === 0 &&
|
|
4337
|
+
e[51] === 0 && jt(e)
|
|
4340
4338
|
);
|
|
4341
4339
|
function c(...m) {
|
|
4342
4340
|
return (
|
|
@@ -4365,7 +4363,7 @@ function Wt(e) {
|
|
|
4365
4363
|
16 && s !== (s = /*message*/
|
|
4366
4364
|
e[49] + "") && (n.innerHTML = s), /*displayMessages*/
|
|
4367
4365
|
e[4].length > 1 && /*index*/
|
|
4368
|
-
e[51] === 0 ? h ? h.p(e, E) : (h =
|
|
4366
|
+
e[51] === 0 ? h ? h.p(e, E) : (h = jt(e), h.c(), h.m(t, a)) : h && (h.d(1), h = null), E[0] & /*allVerificationsVisible*/
|
|
4369
4367
|
32 && Ee(
|
|
4370
4368
|
t,
|
|
4371
4369
|
"ShowAll",
|
|
@@ -4378,7 +4376,7 @@ function Wt(e) {
|
|
|
4378
4376
|
}
|
|
4379
4377
|
};
|
|
4380
4378
|
}
|
|
4381
|
-
function
|
|
4379
|
+
function Xt(e) {
|
|
4382
4380
|
let t, r, i, n, s = (
|
|
4383
4381
|
/*$_*/
|
|
4384
4382
|
e[9]("verification.video.how-to") + ""
|
|
@@ -4403,7 +4401,7 @@ function qt(e) {
|
|
|
4403
4401
|
p(u, h) {
|
|
4404
4402
|
h[0] & /*$_*/
|
|
4405
4403
|
512 && s !== (s = /*$_*/
|
|
4406
|
-
u[9]("verification.video.how-to") + "") &&
|
|
4404
|
+
u[9]("verification.video.how-to") + "") && Dr(l, s), h[0] & /*desktopView*/
|
|
4407
4405
|
64 && Ee(
|
|
4408
4406
|
n,
|
|
4409
4407
|
"CashierVerificationVideoLinkDesktop",
|
|
@@ -4416,10 +4414,10 @@ function qt(e) {
|
|
|
4416
4414
|
}
|
|
4417
4415
|
};
|
|
4418
4416
|
}
|
|
4419
|
-
function
|
|
4417
|
+
function Xn(e) {
|
|
4420
4418
|
let t, r = (
|
|
4421
4419
|
/*displayMessages*/
|
|
4422
|
-
e[4] &&
|
|
4420
|
+
e[4] && Gt(e)
|
|
4423
4421
|
);
|
|
4424
4422
|
return {
|
|
4425
4423
|
c() {
|
|
@@ -4435,7 +4433,7 @@ function Wn(e) {
|
|
|
4435
4433
|
},
|
|
4436
4434
|
p(i, n) {
|
|
4437
4435
|
/*displayMessages*/
|
|
4438
|
-
i[4] ? r ? r.p(i, n) : (r =
|
|
4436
|
+
i[4] ? r ? r.p(i, n) : (r = Gt(i), r.c(), r.m(t, null)) : r && (r.d(1), r = null), n[0] & /*desktopView*/
|
|
4439
4437
|
64 && Ee(
|
|
4440
4438
|
t,
|
|
4441
4439
|
"CashierVerificationsDesktop",
|
|
@@ -4450,10 +4448,10 @@ function Wn(e) {
|
|
|
4450
4448
|
}
|
|
4451
4449
|
};
|
|
4452
4450
|
}
|
|
4453
|
-
const
|
|
4454
|
-
function
|
|
4451
|
+
const Wn = "verification_explanation_video_widgets.MP4", qn = "700px", Yn = "500px";
|
|
4452
|
+
function Zn(e, t, r) {
|
|
4455
4453
|
let i;
|
|
4456
|
-
|
|
4454
|
+
Pr(e, Un, (f) => r(9, i = f)), Ft.extend(jn);
|
|
4457
4455
|
let { endpoint: n } = t, { lang: s = "en" } = t, { translationurl: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { session: u = "" } = t, { customerid: h = "" } = t, { ismobileview: c = "" } = t, m, E = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set(), v, $, V, U = !0, B = !0, z = !1, I = "";
|
|
4458
4456
|
var L;
|
|
4459
4457
|
(function(f) {
|
|
@@ -4475,22 +4473,22 @@ function Jn(e, t, r) {
|
|
|
4475
4473
|
R.InProgress,
|
|
4476
4474
|
R.Referred,
|
|
4477
4475
|
R.AwaitingForResponse
|
|
4478
|
-
],
|
|
4476
|
+
], A = () => {
|
|
4479
4477
|
let f = l;
|
|
4480
4478
|
if (f)
|
|
4481
4479
|
return fetch(f).then((y) => y.json()).then((y) => {
|
|
4482
4480
|
Object.keys(y).forEach((S) => {
|
|
4483
|
-
|
|
4481
|
+
kt(S, y[S]);
|
|
4484
4482
|
});
|
|
4485
4483
|
}).catch((y) => {
|
|
4486
4484
|
console.log(y);
|
|
4487
4485
|
});
|
|
4488
4486
|
};
|
|
4489
|
-
Object.keys(
|
|
4490
|
-
|
|
4487
|
+
Object.keys(Ut).forEach((f) => {
|
|
4488
|
+
kt(f, Ut[f]);
|
|
4491
4489
|
});
|
|
4492
4490
|
const me = () => {
|
|
4493
|
-
|
|
4491
|
+
Fn(s);
|
|
4494
4492
|
}, Re = () => {
|
|
4495
4493
|
let f = document.createElement("style");
|
|
4496
4494
|
f.innerHTML = a, m.appendChild(f);
|
|
@@ -4509,7 +4507,7 @@ function Jn(e, t, r) {
|
|
|
4509
4507
|
if (!f)
|
|
4510
4508
|
return;
|
|
4511
4509
|
const S = new URL(`${n}/v1/player/verification/GetKYCStatus`), Y = new Headers();
|
|
4512
|
-
Y.append("accept", "application/json"), Y.append("Content-Type", "application/json"), Y.append("X-Client-Request-Timestamp",
|
|
4510
|
+
Y.append("accept", "application/json"), Y.append("Content-Type", "application/json"), Y.append("X-Client-Request-Timestamp", Ft.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
4513
4511
|
const Je = {
|
|
4514
4512
|
method: "POST",
|
|
4515
4513
|
headers: Y,
|
|
@@ -4611,7 +4609,7 @@ function Jn(e, t, r) {
|
|
|
4611
4609
|
}, oe = () => {
|
|
4612
4610
|
r(6, B = c === "false");
|
|
4613
4611
|
}, G = () => {
|
|
4614
|
-
r(8, I = $ + "/" + s + "/" +
|
|
4612
|
+
r(8, I = $ + "/" + s + "/" + Wn);
|
|
4615
4613
|
try {
|
|
4616
4614
|
fetch(I, { method: "HEAD" }).then((f) => {
|
|
4617
4615
|
r(7, z = f.ok);
|
|
@@ -4623,12 +4621,12 @@ function Jn(e, t, r) {
|
|
|
4623
4621
|
window.postMessage(
|
|
4624
4622
|
{
|
|
4625
4623
|
type: "ShowCashierVideoModal",
|
|
4626
|
-
details: B ?
|
|
4624
|
+
details: B ? qn : Yn
|
|
4627
4625
|
},
|
|
4628
4626
|
window.location.href
|
|
4629
4627
|
);
|
|
4630
|
-
}, ce = (f, y) => se(y, f), pe = (f, y) => se(y, f),
|
|
4631
|
-
function
|
|
4628
|
+
}, ce = (f, y) => se(y, f), pe = (f, y) => se(y, f), Tr = () => J();
|
|
4629
|
+
function Hr(f) {
|
|
4632
4630
|
st[f ? "unshift" : "push"](() => {
|
|
4633
4631
|
m = f, r(3, m);
|
|
4634
4632
|
});
|
|
@@ -4639,7 +4637,7 @@ function Jn(e, t, r) {
|
|
|
4639
4637
|
e.$$.dirty[0] & /*lang*/
|
|
4640
4638
|
8192 && s && me(), e.$$.dirty[0] & /*endpoint, session*/
|
|
4641
4639
|
36864 && n && u && g(), e.$$.dirty[0] & /*translationurl*/
|
|
4642
|
-
16384 && l &&
|
|
4640
|
+
16384 && l && A(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4643
4641
|
9 && a && m && Re(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4644
4642
|
10 && o && m && x(), e.$$.dirty[0] & /*ismobileview*/
|
|
4645
4643
|
4 && c && oe(), e.$$.dirty[0] & /*staticCdnUrl*/
|
|
@@ -4665,18 +4663,18 @@ function Jn(e, t, r) {
|
|
|
4665
4663
|
$,
|
|
4666
4664
|
ce,
|
|
4667
4665
|
pe,
|
|
4668
|
-
|
|
4669
|
-
|
|
4666
|
+
Tr,
|
|
4667
|
+
Hr
|
|
4670
4668
|
];
|
|
4671
4669
|
}
|
|
4672
|
-
class
|
|
4670
|
+
class Jn extends qr {
|
|
4673
4671
|
constructor(t) {
|
|
4674
|
-
super(),
|
|
4672
|
+
super(), Xr(
|
|
4675
4673
|
this,
|
|
4676
4674
|
t,
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4675
|
+
Zn,
|
|
4676
|
+
Xn,
|
|
4677
|
+
qt,
|
|
4680
4678
|
{
|
|
4681
4679
|
endpoint: 12,
|
|
4682
4680
|
lang: 13,
|
|
@@ -4687,7 +4685,7 @@ class Qn extends Zr {
|
|
|
4687
4685
|
customerid: 16,
|
|
4688
4686
|
ismobileview: 2
|
|
4689
4687
|
},
|
|
4690
|
-
|
|
4688
|
+
zn,
|
|
4691
4689
|
[-1, -1]
|
|
4692
4690
|
);
|
|
4693
4691
|
}
|
|
@@ -4740,27 +4738,27 @@ class Qn extends Zr {
|
|
|
4740
4738
|
this.$$set({ ismobileview: t }), te();
|
|
4741
4739
|
}
|
|
4742
4740
|
}
|
|
4743
|
-
|
|
4741
|
+
Wr(Jn, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|
|
4744
4742
|
export {
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4743
|
+
Jn as C,
|
|
4744
|
+
qr as S,
|
|
4745
|
+
Ar as a,
|
|
4748
4746
|
ae as b,
|
|
4749
|
-
|
|
4747
|
+
Wr as c,
|
|
4750
4748
|
ie as d,
|
|
4751
|
-
|
|
4749
|
+
es as e,
|
|
4752
4750
|
te as f,
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4751
|
+
Qn as g,
|
|
4752
|
+
K as h,
|
|
4753
|
+
Xr as i,
|
|
4754
|
+
re as j,
|
|
4755
|
+
Z as k,
|
|
4756
|
+
xe as l,
|
|
4757
|
+
st as m,
|
|
4760
4758
|
Q as n,
|
|
4761
|
-
|
|
4759
|
+
ts as o,
|
|
4762
4760
|
bt as p,
|
|
4763
|
-
|
|
4764
|
-
|
|
4761
|
+
Kn as q,
|
|
4762
|
+
qt as s,
|
|
4765
4763
|
Ee as t
|
|
4766
4764
|
};
|