@everymatrix/casino-categories 1.61.1 → 1.62.0
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/CasinoCategories-CU4Yi-LU.cjs +16 -0
- package/components/{CasinoCategories-C6gikUfx.js → CasinoCategories-DFHErasW.js} +525 -523
- package/components/{CasinoCategories-Du3Wk9xO.js → CasinoCategories-DwqwASFG.js} +379 -377
- package/es2015/casino-categories.cjs +1 -1
- package/es2015/casino-categories.js +1 -1
- package/esnext/casino-categories.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b7bbd57e-6KaMTlNN.js +534 -0
- package/stencil/index-b7bbd57e-BSagye0B.js +550 -0
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +1 -0
- package/stencil/{ui-image-38c3c15f-ByZECnci.js → ui-image-38c3c15f-CumwWbNu.js} +1 -1
- package/stencil/{ui-image-38c3c15f-D_V48h1L.js → ui-image-38c3c15f-Dxl-aZb-.js} +1 -1
- package/stencil/{ui-image-38c3c15f-VguNkCIq.cjs → ui-image-38c3c15f-y5t5ZLG0.cjs} +1 -1
- package/stencil/{ui-image-BNrzgSpe.js → ui-image-BQa5UbqU.js} +2 -2
- package/stencil/{ui-image-CPH6BqjQ.js → ui-image-Bi4jDe3D.js} +2 -2
- package/stencil/{ui-image-CLghOqUz.cjs → ui-image-z441BZiX.cjs} +1 -1
- package/components/CasinoCategories-PxIDHmJF.cjs +0 -16
- package/stencil/index-b7bbd57e-BBUBsGhp.js +0 -550
- package/stencil/index-b7bbd57e-SuDXAV6_.cjs +0 -1
- package/stencil/index-b7bbd57e-wJC_uAuk.js +0 -534
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-BQa5UbqU.js";
|
|
2
2
|
function N() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function bt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Qe() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
10
|
function ae(e) {
|
|
11
|
-
e.forEach(
|
|
11
|
+
e.forEach(bt);
|
|
12
12
|
}
|
|
13
13
|
function ke(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function _t(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let le;
|
|
20
20
|
function de(e, t) {
|
|
21
21
|
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Zt(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function yt(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,20 +32,20 @@ function bt(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
e.$$.on_destroy.push(
|
|
35
|
+
function Qt(e, t, r) {
|
|
36
|
+
e.$$.on_destroy.push(yt(t, r));
|
|
37
37
|
}
|
|
38
38
|
function v(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function Jt(e, t, r) {
|
|
42
|
+
const n = qt(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
44
|
const i = S("style");
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
45
|
+
i.id = t, i.textContent = r, Yt(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function qt(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,7 +55,7 @@ function Qt(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Yt(e, t) {
|
|
59
59
|
return v(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
@@ -68,7 +68,7 @@ function Y(e, t, r) {
|
|
|
68
68
|
function j(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Je(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
@@ -81,7 +81,7 @@ function U(e) {
|
|
|
81
81
|
function R() {
|
|
82
82
|
return U(" ");
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function xt(e, t, r, n) {
|
|
85
85
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
86
86
|
}
|
|
87
87
|
function L(e, t, r) {
|
|
@@ -91,14 +91,14 @@ function $(e, t, r) {
|
|
|
91
91
|
const n = t.toLowerCase();
|
|
92
92
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : L(e, t, r);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Kt(e) {
|
|
95
95
|
return Array.from(e.childNodes);
|
|
96
96
|
}
|
|
97
97
|
function D(e, t) {
|
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
99
99
|
t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function er(e) {
|
|
102
102
|
const t = {};
|
|
103
103
|
return e.childNodes.forEach(
|
|
104
104
|
/** @param {Element} node */
|
|
@@ -111,25 +111,25 @@ let ie;
|
|
|
111
111
|
function ne(e) {
|
|
112
112
|
ie = e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function tr() {
|
|
115
115
|
if (!ie)
|
|
116
116
|
throw new Error("Function called outside component initialization");
|
|
117
117
|
return ie;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function rr(e) {
|
|
120
|
+
tr().$$.on_mount.push(e);
|
|
121
121
|
}
|
|
122
122
|
const z = [], Pe = [];
|
|
123
123
|
let W = [];
|
|
124
|
-
const
|
|
124
|
+
const qe = [], nr = /* @__PURE__ */ Promise.resolve();
|
|
125
125
|
let Ne = !1;
|
|
126
|
-
function
|
|
127
|
-
Ne || (Ne = !0,
|
|
126
|
+
function ir() {
|
|
127
|
+
Ne || (Ne = !0, nr.then(I));
|
|
128
128
|
}
|
|
129
129
|
function Le(e) {
|
|
130
130
|
W.push(e);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
133
133
|
let V = 0;
|
|
134
134
|
function I() {
|
|
135
135
|
if (V !== 0)
|
|
@@ -139,7 +139,7 @@ function I() {
|
|
|
139
139
|
try {
|
|
140
140
|
for (; V < z.length; ) {
|
|
141
141
|
const t = z[V];
|
|
142
|
-
V++, ne(t),
|
|
142
|
+
V++, ne(t), or(t.$$);
|
|
143
143
|
}
|
|
144
144
|
} catch (t) {
|
|
145
145
|
throw z.length = 0, V = 0, t;
|
|
@@ -148,47 +148,47 @@ function I() {
|
|
|
148
148
|
Pe.pop()();
|
|
149
149
|
for (let t = 0; t < W.length; t += 1) {
|
|
150
150
|
const r = W[t];
|
|
151
|
-
|
|
151
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
152
152
|
}
|
|
153
153
|
W.length = 0;
|
|
154
154
|
} while (z.length);
|
|
155
|
-
for (;
|
|
156
|
-
|
|
157
|
-
Ne = !1,
|
|
155
|
+
for (; qe.length; )
|
|
156
|
+
qe.pop()();
|
|
157
|
+
Ne = !1, Ce.clear(), ne(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function or(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
161
161
|
e.update(), ae(e.before_update);
|
|
162
162
|
const t = e.dirty;
|
|
163
163
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function sr(e) {
|
|
167
167
|
const t = [], r = [];
|
|
168
168
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
e && e.i && (
|
|
170
|
+
const ar = /* @__PURE__ */ new Set();
|
|
171
|
+
function ur(e, t) {
|
|
172
|
+
e && e.i && (ar.delete(e), e.i(t));
|
|
173
173
|
}
|
|
174
174
|
function fe(e) {
|
|
175
175
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function hr(e, t, r) {
|
|
178
178
|
const { fragment: n, after_update: i } = e.$$;
|
|
179
179
|
n && n.m(t, r), Le(() => {
|
|
180
|
-
const o = e.$$.on_mount.map(
|
|
180
|
+
const o = e.$$.on_mount.map(bt).filter(ke);
|
|
181
181
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
182
182
|
}), i.forEach(Le);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function lr(e, t) {
|
|
185
185
|
const r = e.$$;
|
|
186
|
-
r.fragment !== null && (
|
|
186
|
+
r.fragment !== null && (sr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
e.$$.dirty[0] === -1 && (z.push(e),
|
|
188
|
+
function fr(e, t) {
|
|
189
|
+
e.$$.dirty[0] === -1 && (z.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
192
192
|
const l = ie;
|
|
193
193
|
ne(e);
|
|
194
194
|
const a = e.$$ = {
|
|
@@ -198,7 +198,7 @@ function lr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
198
198
|
props: o,
|
|
199
199
|
update: N,
|
|
200
200
|
not_equal: i,
|
|
201
|
-
bound:
|
|
201
|
+
bound: Qe(),
|
|
202
202
|
// lifecycle
|
|
203
203
|
on_mount: [],
|
|
204
204
|
on_destroy: [],
|
|
@@ -207,7 +207,7 @@ function lr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
207
207
|
after_update: [],
|
|
208
208
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
209
209
|
// everything else
|
|
210
|
-
callbacks:
|
|
210
|
+
callbacks: Qe(),
|
|
211
211
|
dirty: u,
|
|
212
212
|
skip_bound: !1,
|
|
213
213
|
root: t.target || l.$$.root
|
|
@@ -216,19 +216,19 @@ function lr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
216
216
|
let h = !1;
|
|
217
217
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
218
218
|
const d = p.length ? p[0] : f;
|
|
219
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h &&
|
|
219
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h && fr(e, c)), f;
|
|
220
220
|
}) : [], a.update(), h = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
|
-
const c =
|
|
222
|
+
const c = Kt(t.target);
|
|
223
223
|
a.fragment && a.fragment.l(c), c.forEach(j);
|
|
224
224
|
} else
|
|
225
225
|
a.fragment && a.fragment.c();
|
|
226
|
-
t.intro &&
|
|
226
|
+
t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor), I();
|
|
227
227
|
}
|
|
228
228
|
ne(l);
|
|
229
229
|
}
|
|
230
|
-
let
|
|
231
|
-
typeof HTMLElement == "function" && (
|
|
230
|
+
let Et;
|
|
231
|
+
typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
232
232
|
/** The Svelte component constructor */
|
|
233
233
|
$$ctor;
|
|
234
234
|
/** Slots */
|
|
@@ -287,7 +287,7 @@ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
|
287
287
|
};
|
|
288
288
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
289
289
|
return;
|
|
290
|
-
const t = {}, r =
|
|
290
|
+
const t = {}, r = er(this);
|
|
291
291
|
for (const i of this.$$s)
|
|
292
292
|
i in r && (t[i] = [e(i)]);
|
|
293
293
|
for (const i of this.attributes) {
|
|
@@ -374,8 +374,8 @@ function ge(e, t, r, n) {
|
|
|
374
374
|
return t;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
let s = class extends
|
|
377
|
+
function gr(e, t, r, n, i, o) {
|
|
378
|
+
let s = class extends Et {
|
|
379
379
|
constructor() {
|
|
380
380
|
super(e, r, i), this.$$p_d = t;
|
|
381
381
|
}
|
|
@@ -403,7 +403,7 @@ function fr(e, t, r, n, i, o) {
|
|
|
403
403
|
}), e.element = /** @type {any} */
|
|
404
404
|
s, s;
|
|
405
405
|
}
|
|
406
|
-
class
|
|
406
|
+
class mr {
|
|
407
407
|
/**
|
|
408
408
|
* ### PRIVATE API
|
|
409
409
|
*
|
|
@@ -422,7 +422,7 @@ class cr {
|
|
|
422
422
|
$$set = void 0;
|
|
423
423
|
/** @returns {void} */
|
|
424
424
|
$destroy() {
|
|
425
|
-
|
|
425
|
+
lr(this, 1), this.$destroy = N;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -444,13 +444,13 @@ class cr {
|
|
|
444
444
|
* @returns {void}
|
|
445
445
|
*/
|
|
446
446
|
$set(t) {
|
|
447
|
-
this.$$set && !
|
|
447
|
+
this.$$set && !Zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
const
|
|
451
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
450
|
+
const pr = "4";
|
|
451
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
|
|
452
452
|
const X = [];
|
|
453
|
-
function
|
|
453
|
+
function dr(e, t) {
|
|
454
454
|
return {
|
|
455
455
|
subscribe: ye(e, t).subscribe
|
|
456
456
|
};
|
|
@@ -459,7 +459,7 @@ function ye(e, t = N) {
|
|
|
459
459
|
let r;
|
|
460
460
|
const n = /* @__PURE__ */ new Set();
|
|
461
461
|
function i(u) {
|
|
462
|
-
if (
|
|
462
|
+
if (_t(e, u) && (e = u, r)) {
|
|
463
463
|
const l = !X.length;
|
|
464
464
|
for (const a of n)
|
|
465
465
|
a[1](), X.push(a, e);
|
|
@@ -486,7 +486,7 @@ function K(e, t, r) {
|
|
|
486
486
|
if (!i.every(Boolean))
|
|
487
487
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
488
488
|
const o = t.length < 2;
|
|
489
|
-
return
|
|
489
|
+
return dr(r, (s, u) => {
|
|
490
490
|
let l = !1;
|
|
491
491
|
const a = [];
|
|
492
492
|
let h = 0, c = N;
|
|
@@ -497,7 +497,7 @@ function K(e, t, r) {
|
|
|
497
497
|
const d = t(n ? a[0] : a, s, u);
|
|
498
498
|
o ? s(d) : c = ke(d) ? d : N;
|
|
499
499
|
}, p = i.map(
|
|
500
|
-
(d, g) =>
|
|
500
|
+
(d, g) => yt(
|
|
501
501
|
d,
|
|
502
502
|
(E) => {
|
|
503
503
|
a[g] = E, h &= ~(1 << g), l && f();
|
|
@@ -512,70 +512,70 @@ function K(e, t, r) {
|
|
|
512
512
|
};
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function br(e) {
|
|
516
516
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
517
517
|
}
|
|
518
|
-
var
|
|
519
|
-
return
|
|
518
|
+
var _r = function(t) {
|
|
519
|
+
return yr(t) && !xr(t);
|
|
520
520
|
};
|
|
521
|
-
function
|
|
521
|
+
function yr(e) {
|
|
522
522
|
return !!e && typeof e == "object";
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function xr(e) {
|
|
525
525
|
var t = Object.prototype.toString.call(e);
|
|
526
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
526
|
+
return t === "[object RegExp]" || t === "[object Date]" || Tr(e);
|
|
527
527
|
}
|
|
528
|
-
var
|
|
529
|
-
function
|
|
530
|
-
return e.$$typeof ===
|
|
528
|
+
var Er = typeof Symbol == "function" && Symbol.for, vr = Er ? Symbol.for("react.element") : 60103;
|
|
529
|
+
function Tr(e) {
|
|
530
|
+
return e.$$typeof === vr;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Cr(e) {
|
|
533
533
|
return Array.isArray(e) ? [] : {};
|
|
534
534
|
}
|
|
535
535
|
function oe(e, t) {
|
|
536
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Z(
|
|
536
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(Cr(e), e, t) : e;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Hr(e, t, r) {
|
|
539
539
|
return e.concat(t).map(function(n) {
|
|
540
540
|
return oe(n, r);
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Ar(e, t) {
|
|
544
544
|
if (!t.customMerge)
|
|
545
545
|
return Z;
|
|
546
546
|
var r = t.customMerge(e);
|
|
547
547
|
return typeof r == "function" ? r : Z;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Br(e) {
|
|
550
550
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
551
551
|
return Object.propertyIsEnumerable.call(e, t);
|
|
552
552
|
}) : [];
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
return Object.keys(e).concat(
|
|
554
|
+
function Ye(e) {
|
|
555
|
+
return Object.keys(e).concat(Br(e));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function vt(e, t) {
|
|
558
558
|
try {
|
|
559
559
|
return t in e;
|
|
560
560
|
} catch {
|
|
561
561
|
return !1;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
564
|
+
function Sr(e, t) {
|
|
565
|
+
return vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function wr(e, t, r) {
|
|
568
568
|
var n = {};
|
|
569
|
-
return r.isMergeableObject(e) &&
|
|
569
|
+
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
570
570
|
n[i] = oe(e[i], r);
|
|
571
|
-
}),
|
|
572
|
-
|
|
571
|
+
}), Ye(t).forEach(function(i) {
|
|
572
|
+
Sr(e, i) || (vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ar(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
573
573
|
}), n;
|
|
574
574
|
}
|
|
575
575
|
function Z(e, t, r) {
|
|
576
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
576
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || _r, r.cloneUnlessOtherwiseSpecified = oe;
|
|
577
577
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
578
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
578
|
+
return o ? n ? r.arrayMerge(e, t, r) : wr(e, t, r) : oe(t, r);
|
|
579
579
|
}
|
|
580
580
|
Z.all = function(t, r) {
|
|
581
581
|
if (!Array.isArray(t))
|
|
@@ -584,8 +584,8 @@ Z.all = function(t, r) {
|
|
|
584
584
|
return Z(n, i, r);
|
|
585
585
|
}, {});
|
|
586
586
|
};
|
|
587
|
-
var
|
|
588
|
-
const
|
|
587
|
+
var Or = Z, Pr = Or;
|
|
588
|
+
const Nr = /* @__PURE__ */ br(Pr);
|
|
589
589
|
/*! *****************************************************************************
|
|
590
590
|
Copyright (c) Microsoft Corporation.
|
|
591
591
|
|
|
@@ -627,7 +627,7 @@ var x = function() {
|
|
|
627
627
|
return t;
|
|
628
628
|
}, x.apply(this, arguments);
|
|
629
629
|
};
|
|
630
|
-
function
|
|
630
|
+
function Lr(e, t) {
|
|
631
631
|
var r = {};
|
|
632
632
|
for (var n in e)
|
|
633
633
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -643,102 +643,104 @@ function He(e, t, r) {
|
|
|
643
643
|
return e.concat(o || t);
|
|
644
644
|
}
|
|
645
645
|
function Ae(e, t) {
|
|
646
|
-
var r = t && t.cache ? t.cache :
|
|
646
|
+
var r = t && t.cache ? t.cache : Gr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Mr;
|
|
647
647
|
return i(e, {
|
|
648
648
|
cache: r,
|
|
649
649
|
serializer: n
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Ir(e) {
|
|
653
653
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
var i =
|
|
655
|
+
function Tt(e, t, r, n) {
|
|
656
|
+
var i = Ir(n) ? n : r(n), o = t.get(i);
|
|
657
657
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Ct(e, t, r) {
|
|
660
660
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
661
661
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Ve(e, t, r, n, i) {
|
|
664
664
|
return r.bind(t, e, n, i);
|
|
665
665
|
}
|
|
666
|
-
function Ir(e, t) {
|
|
667
|
-
var r = e.length === 1 ? Lr : Et;
|
|
668
|
-
return vt(e, this, r, t.cache.create(), t.serializer);
|
|
669
|
-
}
|
|
670
666
|
function Mr(e, t) {
|
|
671
|
-
|
|
667
|
+
var r = e.length === 1 ? Tt : Ct;
|
|
668
|
+
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
669
|
+
}
|
|
670
|
+
function $r(e, t) {
|
|
671
|
+
return Ve(e, this, Ct, t.cache.create(), t.serializer);
|
|
672
672
|
}
|
|
673
|
-
|
|
673
|
+
function Rr(e, t) {
|
|
674
|
+
return Ve(e, this, Tt, t.cache.create(), t.serializer);
|
|
675
|
+
}
|
|
676
|
+
var Ur = function() {
|
|
674
677
|
return JSON.stringify(arguments);
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}()
|
|
687
|
-
), Ur = {
|
|
678
|
+
};
|
|
679
|
+
function Xe() {
|
|
680
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
681
|
+
}
|
|
682
|
+
Xe.prototype.get = function(e) {
|
|
683
|
+
return this.cache[e];
|
|
684
|
+
};
|
|
685
|
+
Xe.prototype.set = function(e, t) {
|
|
686
|
+
this.cache[e] = t;
|
|
687
|
+
};
|
|
688
|
+
var Gr = {
|
|
688
689
|
create: function() {
|
|
689
|
-
return new
|
|
690
|
+
return new Xe();
|
|
690
691
|
}
|
|
691
692
|
}, Be = {
|
|
692
|
-
variadic:
|
|
693
|
+
variadic: $r,
|
|
694
|
+
monadic: Rr
|
|
693
695
|
}, _;
|
|
694
696
|
(function(e) {
|
|
695
697
|
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";
|
|
696
698
|
})(_ || (_ = {}));
|
|
697
|
-
var
|
|
699
|
+
var T;
|
|
698
700
|
(function(e) {
|
|
699
701
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
700
|
-
})(
|
|
702
|
+
})(T || (T = {}));
|
|
701
703
|
var Q;
|
|
702
704
|
(function(e) {
|
|
703
705
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
704
706
|
})(Q || (Q = {}));
|
|
705
|
-
function
|
|
706
|
-
return e.type ===
|
|
707
|
-
}
|
|
708
|
-
function Gr(e) {
|
|
709
|
-
return e.type === C.argument;
|
|
710
|
-
}
|
|
711
|
-
function Ct(e) {
|
|
712
|
-
return e.type === C.number;
|
|
707
|
+
function Ke(e) {
|
|
708
|
+
return e.type === T.literal;
|
|
713
709
|
}
|
|
714
|
-
function
|
|
715
|
-
return e.type ===
|
|
710
|
+
function Dr(e) {
|
|
711
|
+
return e.type === T.argument;
|
|
716
712
|
}
|
|
717
713
|
function Ht(e) {
|
|
718
|
-
return e.type ===
|
|
714
|
+
return e.type === T.number;
|
|
719
715
|
}
|
|
720
716
|
function At(e) {
|
|
721
|
-
return e.type ===
|
|
717
|
+
return e.type === T.date;
|
|
722
718
|
}
|
|
723
719
|
function Bt(e) {
|
|
724
|
-
return e.type ===
|
|
725
|
-
}
|
|
726
|
-
function Dr(e) {
|
|
727
|
-
return e.type === C.pound;
|
|
720
|
+
return e.type === T.time;
|
|
728
721
|
}
|
|
729
722
|
function St(e) {
|
|
730
|
-
return e.type ===
|
|
723
|
+
return e.type === T.select;
|
|
731
724
|
}
|
|
732
725
|
function wt(e) {
|
|
726
|
+
return e.type === T.plural;
|
|
727
|
+
}
|
|
728
|
+
function Fr(e) {
|
|
729
|
+
return e.type === T.pound;
|
|
730
|
+
}
|
|
731
|
+
function Ot(e) {
|
|
732
|
+
return e.type === T.tag;
|
|
733
|
+
}
|
|
734
|
+
function Pt(e) {
|
|
733
735
|
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
734
736
|
}
|
|
735
737
|
function Me(e) {
|
|
736
738
|
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
737
739
|
}
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
+
var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jr = /(?:[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;
|
|
741
|
+
function kr(e) {
|
|
740
742
|
var t = {};
|
|
741
|
-
return e.replace(
|
|
743
|
+
return e.replace(jr, function(r) {
|
|
742
744
|
var n = r.length;
|
|
743
745
|
switch (r[0]) {
|
|
744
746
|
case "G":
|
|
@@ -827,11 +829,11 @@ function jr(e) {
|
|
|
827
829
|
return "";
|
|
828
830
|
}), t;
|
|
829
831
|
}
|
|
830
|
-
var
|
|
831
|
-
function
|
|
832
|
+
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
833
|
+
function Xr(e) {
|
|
832
834
|
if (e.length === 0)
|
|
833
835
|
throw new Error("Number skeleton cannot be empty");
|
|
834
|
-
for (var t = e.split(
|
|
836
|
+
for (var t = e.split(Vr).filter(function(f) {
|
|
835
837
|
return f.length > 0;
|
|
836
838
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
837
839
|
var o = i[n], s = o.split("/");
|
|
@@ -846,17 +848,17 @@ function Vr(e) {
|
|
|
846
848
|
}
|
|
847
849
|
return r;
|
|
848
850
|
}
|
|
849
|
-
function
|
|
851
|
+
function zr(e) {
|
|
850
852
|
return e.replace(/^(.*?)-/, "");
|
|
851
853
|
}
|
|
852
|
-
var
|
|
853
|
-
function
|
|
854
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, Wr = /(\*)(0+)|(#+)(0+)|(0+)/g, It = /^(0+)$/;
|
|
855
|
+
function tt(e) {
|
|
854
856
|
var t = {};
|
|
855
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
857
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lt, function(r, n, i) {
|
|
856
858
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
857
859
|
}), t;
|
|
858
860
|
}
|
|
859
|
-
function
|
|
861
|
+
function Mt(e) {
|
|
860
862
|
switch (e) {
|
|
861
863
|
case "sign-auto":
|
|
862
864
|
return {
|
|
@@ -896,7 +898,7 @@ function Lt(e) {
|
|
|
896
898
|
};
|
|
897
899
|
}
|
|
898
900
|
}
|
|
899
|
-
function
|
|
901
|
+
function Zr(e) {
|
|
900
902
|
var t;
|
|
901
903
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
902
904
|
notation: "engineering"
|
|
@@ -904,17 +906,17 @@ function Wr(e) {
|
|
|
904
906
|
notation: "scientific"
|
|
905
907
|
}, e = e.slice(1)), t) {
|
|
906
908
|
var r = e.slice(0, 2);
|
|
907
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
909
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !It.test(e))
|
|
908
910
|
throw new Error("Malformed concise eng/scientific notation");
|
|
909
911
|
t.minimumIntegerDigits = e.length;
|
|
910
912
|
}
|
|
911
913
|
return t;
|
|
912
914
|
}
|
|
913
|
-
function
|
|
914
|
-
var t = {}, r =
|
|
915
|
+
function rt(e) {
|
|
916
|
+
var t = {}, r = Mt(e);
|
|
915
917
|
return r || t;
|
|
916
918
|
}
|
|
917
|
-
function
|
|
919
|
+
function Qr(e) {
|
|
918
920
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
919
921
|
var i = n[r];
|
|
920
922
|
switch (i.stem) {
|
|
@@ -938,7 +940,7 @@ function Zr(e) {
|
|
|
938
940
|
continue;
|
|
939
941
|
case "measure-unit":
|
|
940
942
|
case "unit":
|
|
941
|
-
t.style = "unit", t.unit =
|
|
943
|
+
t.style = "unit", t.unit = zr(i.options[0]);
|
|
942
944
|
continue;
|
|
943
945
|
case "compact-short":
|
|
944
946
|
case "K":
|
|
@@ -950,12 +952,12 @@ function Zr(e) {
|
|
|
950
952
|
continue;
|
|
951
953
|
case "scientific":
|
|
952
954
|
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
953
|
-
return x(x({}, l),
|
|
955
|
+
return x(x({}, l), rt(a));
|
|
954
956
|
}, {}));
|
|
955
957
|
continue;
|
|
956
958
|
case "engineering":
|
|
957
959
|
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
958
|
-
return x(x({}, l),
|
|
960
|
+
return x(x({}, l), rt(a));
|
|
959
961
|
}, {}));
|
|
960
962
|
continue;
|
|
961
963
|
case "notation-simple":
|
|
@@ -1000,7 +1002,7 @@ function Zr(e) {
|
|
|
1000
1002
|
case "integer-width":
|
|
1001
1003
|
if (i.options.length > 1)
|
|
1002
1004
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1003
|
-
i.options[0].replace(
|
|
1005
|
+
i.options[0].replace(Wr, function(l, a, h, c, f, p) {
|
|
1004
1006
|
if (a)
|
|
1005
1007
|
t.minimumIntegerDigits = h.length;
|
|
1006
1008
|
else {
|
|
@@ -1013,27 +1015,27 @@ function Zr(e) {
|
|
|
1013
1015
|
});
|
|
1014
1016
|
continue;
|
|
1015
1017
|
}
|
|
1016
|
-
if (
|
|
1018
|
+
if (It.test(i.stem)) {
|
|
1017
1019
|
t.minimumIntegerDigits = i.stem.length;
|
|
1018
1020
|
continue;
|
|
1019
1021
|
}
|
|
1020
|
-
if (
|
|
1022
|
+
if (et.test(i.stem)) {
|
|
1021
1023
|
if (i.options.length > 1)
|
|
1022
1024
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1023
|
-
i.stem.replace(
|
|
1025
|
+
i.stem.replace(et, function(l, a, h, c, f, p) {
|
|
1024
1026
|
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1025
1027
|
});
|
|
1026
1028
|
var o = i.options[0];
|
|
1027
|
-
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t),
|
|
1029
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), tt(o)));
|
|
1028
1030
|
continue;
|
|
1029
1031
|
}
|
|
1030
|
-
if (
|
|
1031
|
-
t = x(x({}, t),
|
|
1032
|
+
if (Lt.test(i.stem)) {
|
|
1033
|
+
t = x(x({}, t), tt(i.stem));
|
|
1032
1034
|
continue;
|
|
1033
1035
|
}
|
|
1034
|
-
var s =
|
|
1036
|
+
var s = Mt(i.stem);
|
|
1035
1037
|
s && (t = x(x({}, t), s));
|
|
1036
|
-
var u =
|
|
1038
|
+
var u = Zr(i.stem);
|
|
1037
1039
|
u && (t = x(x({}, t), u));
|
|
1038
1040
|
}
|
|
1039
1041
|
return t;
|
|
@@ -2453,13 +2455,13 @@ var ce = {
|
|
|
2453
2455
|
"h"
|
|
2454
2456
|
]
|
|
2455
2457
|
};
|
|
2456
|
-
function
|
|
2458
|
+
function Jr(e, t) {
|
|
2457
2459
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2458
2460
|
var i = e.charAt(n);
|
|
2459
2461
|
if (i === "j") {
|
|
2460
2462
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2461
2463
|
o++, n++;
|
|
2462
|
-
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a =
|
|
2464
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = qr(t);
|
|
2463
2465
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2464
2466
|
r += l;
|
|
2465
2467
|
for (; s-- > 0; )
|
|
@@ -2469,7 +2471,7 @@ function Qr(e, t) {
|
|
|
2469
2471
|
}
|
|
2470
2472
|
return r;
|
|
2471
2473
|
}
|
|
2472
|
-
function
|
|
2474
|
+
function qr(e) {
|
|
2473
2475
|
var t = e.hourCycle;
|
|
2474
2476
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2475
2477
|
e.hourCycles && // @ts-ignore
|
|
@@ -2491,20 +2493,20 @@ function Jr(e) {
|
|
|
2491
2493
|
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2492
2494
|
return i[0];
|
|
2493
2495
|
}
|
|
2494
|
-
var Se,
|
|
2496
|
+
var Se, Yr = new RegExp("^".concat(Nt.source, "*")), Kr = new RegExp("".concat(Nt.source, "*$"));
|
|
2495
2497
|
function y(e, t) {
|
|
2496
2498
|
return { start: e, end: t };
|
|
2497
2499
|
}
|
|
2498
|
-
var
|
|
2500
|
+
var en = !!String.prototype.startsWith && "_a".startsWith("a", 1), tn = !!String.fromCodePoint, rn = !!Object.fromEntries, nn = !!String.prototype.codePointAt, on = !!String.prototype.trimStart, sn = !!String.prototype.trimEnd, an = !!Number.isSafeInteger, un = an ? Number.isSafeInteger : function(e) {
|
|
2499
2501
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2500
2502
|
}, $e = !0;
|
|
2501
2503
|
try {
|
|
2502
|
-
var
|
|
2503
|
-
$e = ((Se =
|
|
2504
|
+
var hn = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2505
|
+
$e = ((Se = hn.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2504
2506
|
} catch {
|
|
2505
2507
|
$e = !1;
|
|
2506
2508
|
}
|
|
2507
|
-
var
|
|
2509
|
+
var nt = en ? (
|
|
2508
2510
|
// Native
|
|
2509
2511
|
function(t, r, n) {
|
|
2510
2512
|
return t.startsWith(r, n);
|
|
@@ -2514,7 +2516,7 @@ var tt = Kr ? (
|
|
|
2514
2516
|
function(t, r, n) {
|
|
2515
2517
|
return t.slice(n, n + r.length) === r;
|
|
2516
2518
|
}
|
|
2517
|
-
), Re =
|
|
2519
|
+
), Re = tn ? String.fromCodePoint : (
|
|
2518
2520
|
// IE11
|
|
2519
2521
|
function() {
|
|
2520
2522
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2526,9 +2528,9 @@ var tt = Kr ? (
|
|
|
2526
2528
|
}
|
|
2527
2529
|
return n;
|
|
2528
2530
|
}
|
|
2529
|
-
),
|
|
2531
|
+
), it = (
|
|
2530
2532
|
// native
|
|
2531
|
-
|
|
2533
|
+
rn ? Object.fromEntries : (
|
|
2532
2534
|
// Ponyfill
|
|
2533
2535
|
function(t) {
|
|
2534
2536
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2538,7 +2540,7 @@ var tt = Kr ? (
|
|
|
2538
2540
|
return r;
|
|
2539
2541
|
}
|
|
2540
2542
|
)
|
|
2541
|
-
),
|
|
2543
|
+
), $t = nn ? (
|
|
2542
2544
|
// Native
|
|
2543
2545
|
function(t, r) {
|
|
2544
2546
|
return t.codePointAt(r);
|
|
@@ -2552,7 +2554,7 @@ var tt = Kr ? (
|
|
|
2552
2554
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2553
2555
|
}
|
|
2554
2556
|
}
|
|
2555
|
-
),
|
|
2557
|
+
), ln = on ? (
|
|
2556
2558
|
// Native
|
|
2557
2559
|
function(t) {
|
|
2558
2560
|
return t.trimStart();
|
|
@@ -2560,9 +2562,9 @@ var tt = Kr ? (
|
|
|
2560
2562
|
) : (
|
|
2561
2563
|
// Ponyfill
|
|
2562
2564
|
function(t) {
|
|
2563
|
-
return t.replace(
|
|
2565
|
+
return t.replace(Yr, "");
|
|
2564
2566
|
}
|
|
2565
|
-
),
|
|
2567
|
+
), fn = sn ? (
|
|
2566
2568
|
// Native
|
|
2567
2569
|
function(t) {
|
|
2568
2570
|
return t.trimEnd();
|
|
@@ -2570,32 +2572,32 @@ var tt = Kr ? (
|
|
|
2570
2572
|
) : (
|
|
2571
2573
|
// Ponyfill
|
|
2572
2574
|
function(t) {
|
|
2573
|
-
return t.replace(
|
|
2575
|
+
return t.replace(Kr, "");
|
|
2574
2576
|
}
|
|
2575
2577
|
);
|
|
2576
|
-
function
|
|
2578
|
+
function Rt(e, t) {
|
|
2577
2579
|
return new RegExp(e, t);
|
|
2578
2580
|
}
|
|
2579
2581
|
var Ue;
|
|
2580
2582
|
if ($e) {
|
|
2581
|
-
var
|
|
2583
|
+
var ot = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2582
2584
|
Ue = function(t, r) {
|
|
2583
2585
|
var n;
|
|
2584
|
-
|
|
2585
|
-
var i =
|
|
2586
|
+
ot.lastIndex = r;
|
|
2587
|
+
var i = ot.exec(t);
|
|
2586
2588
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2587
2589
|
};
|
|
2588
2590
|
} else
|
|
2589
2591
|
Ue = function(t, r) {
|
|
2590
2592
|
for (var n = []; ; ) {
|
|
2591
|
-
var i =
|
|
2592
|
-
if (i === void 0 ||
|
|
2593
|
+
var i = $t(t, r);
|
|
2594
|
+
if (i === void 0 || Ut(i) || pn(i))
|
|
2593
2595
|
break;
|
|
2594
2596
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2595
2597
|
}
|
|
2596
2598
|
return Re.apply(void 0, n);
|
|
2597
2599
|
};
|
|
2598
|
-
var
|
|
2600
|
+
var cn = (
|
|
2599
2601
|
/** @class */
|
|
2600
2602
|
function() {
|
|
2601
2603
|
function e(t, r) {
|
|
@@ -2619,7 +2621,7 @@ var fn = (
|
|
|
2619
2621
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2620
2622
|
var u = this.clonePosition();
|
|
2621
2623
|
this.bump(), i.push({
|
|
2622
|
-
type:
|
|
2624
|
+
type: T.pound,
|
|
2623
2625
|
location: y(u, this.clonePosition())
|
|
2624
2626
|
});
|
|
2625
2627
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2647,7 +2649,7 @@ var fn = (
|
|
|
2647
2649
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2648
2650
|
return {
|
|
2649
2651
|
val: {
|
|
2650
|
-
type:
|
|
2652
|
+
type: T.literal,
|
|
2651
2653
|
value: "<".concat(i, "/>"),
|
|
2652
2654
|
location: y(n, this.clonePosition())
|
|
2653
2655
|
},
|
|
@@ -2664,7 +2666,7 @@ var fn = (
|
|
|
2664
2666
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2665
2667
|
return i !== a ? this.error(_.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2666
2668
|
val: {
|
|
2667
|
-
type:
|
|
2669
|
+
type: T.tag,
|
|
2668
2670
|
value: i,
|
|
2669
2671
|
children: s,
|
|
2670
2672
|
location: y(n, this.clonePosition())
|
|
@@ -2677,7 +2679,7 @@ var fn = (
|
|
|
2677
2679
|
return this.error(_.INVALID_TAG, y(n, this.clonePosition()));
|
|
2678
2680
|
}, e.prototype.parseTagName = function() {
|
|
2679
2681
|
var t = this.offset();
|
|
2680
|
-
for (this.bump(); !this.isEOF() &&
|
|
2682
|
+
for (this.bump(); !this.isEOF() && mn(this.char()); )
|
|
2681
2683
|
this.bump();
|
|
2682
2684
|
return this.message.slice(t, this.offset());
|
|
2683
2685
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2701,12 +2703,12 @@ var fn = (
|
|
|
2701
2703
|
}
|
|
2702
2704
|
var l = y(n, this.clonePosition());
|
|
2703
2705
|
return {
|
|
2704
|
-
val: { type:
|
|
2706
|
+
val: { type: T.literal, value: i, location: l },
|
|
2705
2707
|
err: null
|
|
2706
2708
|
};
|
|
2707
2709
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2708
2710
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2709
|
-
!
|
|
2711
|
+
!gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2710
2712
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2711
2713
|
if (this.isEOF() || this.char() !== 39)
|
|
2712
2714
|
return null;
|
|
@@ -2761,7 +2763,7 @@ var fn = (
|
|
|
2761
2763
|
case 125:
|
|
2762
2764
|
return this.bump(), {
|
|
2763
2765
|
val: {
|
|
2764
|
-
type:
|
|
2766
|
+
type: T.argument,
|
|
2765
2767
|
// value does not include the opening and closing braces.
|
|
2766
2768
|
value: i,
|
|
2767
2769
|
location: y(n, this.clonePosition())
|
|
@@ -2793,7 +2795,7 @@ var fn = (
|
|
|
2793
2795
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2794
2796
|
if (c.err)
|
|
2795
2797
|
return c;
|
|
2796
|
-
var f =
|
|
2798
|
+
var f = fn(c.val);
|
|
2797
2799
|
if (f.length === 0)
|
|
2798
2800
|
return this.error(_.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2799
2801
|
var p = y(h, this.clonePosition());
|
|
@@ -2803,34 +2805,34 @@ var fn = (
|
|
|
2803
2805
|
if (d.err)
|
|
2804
2806
|
return d;
|
|
2805
2807
|
var g = y(i, this.clonePosition());
|
|
2806
|
-
if (a &&
|
|
2807
|
-
var E =
|
|
2808
|
+
if (a && nt(a?.style, "::", 0)) {
|
|
2809
|
+
var E = ln(a.style.slice(2));
|
|
2808
2810
|
if (u === "number") {
|
|
2809
2811
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2810
2812
|
return c.err ? c : {
|
|
2811
|
-
val: { type:
|
|
2813
|
+
val: { type: T.number, value: n, location: g, style: c.val },
|
|
2812
2814
|
err: null
|
|
2813
2815
|
};
|
|
2814
2816
|
} else {
|
|
2815
2817
|
if (E.length === 0)
|
|
2816
2818
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
2817
2819
|
var m = E;
|
|
2818
|
-
this.locale && (m =
|
|
2820
|
+
this.locale && (m = Jr(E, this.locale));
|
|
2819
2821
|
var f = {
|
|
2820
2822
|
type: Q.dateTime,
|
|
2821
2823
|
pattern: m,
|
|
2822
2824
|
location: a.styleLocation,
|
|
2823
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2824
|
-
},
|
|
2825
|
+
parsedOptions: this.shouldParseSkeletons ? kr(m) : {}
|
|
2826
|
+
}, C = u === "date" ? T.date : T.time;
|
|
2825
2827
|
return {
|
|
2826
|
-
val: { type:
|
|
2828
|
+
val: { type: C, value: n, location: g, style: f },
|
|
2827
2829
|
err: null
|
|
2828
2830
|
};
|
|
2829
2831
|
}
|
|
2830
2832
|
}
|
|
2831
2833
|
return {
|
|
2832
2834
|
val: {
|
|
2833
|
-
type: u === "number" ?
|
|
2835
|
+
type: u === "number" ? T.number : u === "date" ? T.date : T.time,
|
|
2834
2836
|
value: n,
|
|
2835
2837
|
location: g,
|
|
2836
2838
|
style: (o = a?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2864,17 +2866,17 @@ var fn = (
|
|
|
2864
2866
|
var P = y(i, this.clonePosition());
|
|
2865
2867
|
return u === "select" ? {
|
|
2866
2868
|
val: {
|
|
2867
|
-
type:
|
|
2869
|
+
type: T.select,
|
|
2868
2870
|
value: n,
|
|
2869
|
-
options:
|
|
2871
|
+
options: it(H.val),
|
|
2870
2872
|
location: P
|
|
2871
2873
|
},
|
|
2872
2874
|
err: null
|
|
2873
2875
|
} : {
|
|
2874
2876
|
val: {
|
|
2875
|
-
type:
|
|
2877
|
+
type: T.plural,
|
|
2876
2878
|
value: n,
|
|
2877
|
-
options:
|
|
2879
|
+
options: it(H.val),
|
|
2878
2880
|
offset: B,
|
|
2879
2881
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2880
2882
|
location: P
|
|
@@ -2925,7 +2927,7 @@ var fn = (
|
|
|
2925
2927
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2926
2928
|
var n = [];
|
|
2927
2929
|
try {
|
|
2928
|
-
n =
|
|
2930
|
+
n = Xr(t);
|
|
2929
2931
|
} catch {
|
|
2930
2932
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
2931
2933
|
}
|
|
@@ -2934,7 +2936,7 @@ var fn = (
|
|
|
2934
2936
|
type: Q.number,
|
|
2935
2937
|
tokens: n,
|
|
2936
2938
|
location: r,
|
|
2937
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2939
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(n) : {}
|
|
2938
2940
|
},
|
|
2939
2941
|
err: null
|
|
2940
2942
|
};
|
|
@@ -2982,7 +2984,7 @@ var fn = (
|
|
|
2982
2984
|
break;
|
|
2983
2985
|
}
|
|
2984
2986
|
var l = y(i, this.clonePosition());
|
|
2985
|
-
return o ? (s *= n,
|
|
2987
|
+
return o ? (s *= n, un(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2986
2988
|
}, e.prototype.offset = function() {
|
|
2987
2989
|
return this.position.offset;
|
|
2988
2990
|
}, e.prototype.isEOF = function() {
|
|
@@ -2997,7 +2999,7 @@ var fn = (
|
|
|
2997
2999
|
var t = this.position.offset;
|
|
2998
3000
|
if (t >= this.message.length)
|
|
2999
3001
|
throw Error("out of bound");
|
|
3000
|
-
var r =
|
|
3002
|
+
var r = $t(this.message, t);
|
|
3001
3003
|
if (r === void 0)
|
|
3002
3004
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3003
3005
|
return r;
|
|
@@ -3016,7 +3018,7 @@ var fn = (
|
|
|
3016
3018
|
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);
|
|
3017
3019
|
}
|
|
3018
3020
|
}, e.prototype.bumpIf = function(t) {
|
|
3019
|
-
if (
|
|
3021
|
+
if (nt(this.message, t, this.offset())) {
|
|
3020
3022
|
for (var r = 0; r < t.length; r++)
|
|
3021
3023
|
this.bump();
|
|
3022
3024
|
return !0;
|
|
@@ -3038,7 +3040,7 @@ var fn = (
|
|
|
3038
3040
|
break;
|
|
3039
3041
|
}
|
|
3040
3042
|
}, e.prototype.bumpSpace = function() {
|
|
3041
|
-
for (; !this.isEOF() &&
|
|
3043
|
+
for (; !this.isEOF() && Ut(this.char()); )
|
|
3042
3044
|
this.bump();
|
|
3043
3045
|
}, e.prototype.peek = function() {
|
|
3044
3046
|
if (this.isEOF())
|
|
@@ -3051,30 +3053,30 @@ var fn = (
|
|
|
3051
3053
|
function Ge(e) {
|
|
3052
3054
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3053
3055
|
}
|
|
3054
|
-
function
|
|
3056
|
+
function gn(e) {
|
|
3055
3057
|
return Ge(e) || e === 47;
|
|
3056
3058
|
}
|
|
3057
|
-
function
|
|
3059
|
+
function mn(e) {
|
|
3058
3060
|
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;
|
|
3059
3061
|
}
|
|
3060
|
-
function
|
|
3062
|
+
function Ut(e) {
|
|
3061
3063
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3062
3064
|
}
|
|
3063
|
-
function
|
|
3065
|
+
function pn(e) {
|
|
3064
3066
|
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;
|
|
3065
3067
|
}
|
|
3066
3068
|
function De(e) {
|
|
3067
3069
|
e.forEach(function(t) {
|
|
3068
|
-
if (delete t.location,
|
|
3070
|
+
if (delete t.location, St(t) || wt(t))
|
|
3069
3071
|
for (var r in t.options)
|
|
3070
3072
|
delete t.options[r].location, De(t.options[r].value);
|
|
3071
3073
|
else
|
|
3072
|
-
|
|
3074
|
+
Ht(t) && Pt(t.style) || (At(t) || Bt(t)) && Me(t.style) ? delete t.style.location : Ot(t) && De(t.children);
|
|
3073
3075
|
});
|
|
3074
3076
|
}
|
|
3075
|
-
function
|
|
3077
|
+
function dn(e, t) {
|
|
3076
3078
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3077
|
-
var r = new
|
|
3079
|
+
var r = new cn(e, t).parse();
|
|
3078
3080
|
if (r.err) {
|
|
3079
3081
|
var n = SyntaxError(_[r.err.kind]);
|
|
3080
3082
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3097,7 +3099,7 @@ var Ee = (
|
|
|
3097
3099
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3098
3100
|
}, t;
|
|
3099
3101
|
}(Error)
|
|
3100
|
-
),
|
|
3102
|
+
), st = (
|
|
3101
3103
|
/** @class */
|
|
3102
3104
|
function(e) {
|
|
3103
3105
|
xe(t, e);
|
|
@@ -3106,7 +3108,7 @@ var Ee = (
|
|
|
3106
3108
|
}
|
|
3107
3109
|
return t;
|
|
3108
3110
|
}(Ee)
|
|
3109
|
-
),
|
|
3111
|
+
), bn = (
|
|
3110
3112
|
/** @class */
|
|
3111
3113
|
function(e) {
|
|
3112
3114
|
xe(t, e);
|
|
@@ -3115,7 +3117,7 @@ var Ee = (
|
|
|
3115
3117
|
}
|
|
3116
3118
|
return t;
|
|
3117
3119
|
}(Ee)
|
|
3118
|
-
),
|
|
3120
|
+
), _n = (
|
|
3119
3121
|
/** @class */
|
|
3120
3122
|
function(e) {
|
|
3121
3123
|
xe(t, e);
|
|
@@ -3128,17 +3130,17 @@ var Ee = (
|
|
|
3128
3130
|
(function(e) {
|
|
3129
3131
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3130
3132
|
})(w || (w = {}));
|
|
3131
|
-
function
|
|
3133
|
+
function yn(e) {
|
|
3132
3134
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3133
3135
|
var n = t[t.length - 1];
|
|
3134
3136
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3135
3137
|
}, []);
|
|
3136
3138
|
}
|
|
3137
|
-
function
|
|
3139
|
+
function xn(e) {
|
|
3138
3140
|
return typeof e == "function";
|
|
3139
3141
|
}
|
|
3140
3142
|
function me(e, t, r, n, i, o, s) {
|
|
3141
|
-
if (e.length === 1 &&
|
|
3143
|
+
if (e.length === 1 && Ke(e[0]))
|
|
3142
3144
|
return [
|
|
3143
3145
|
{
|
|
3144
3146
|
type: w.literal,
|
|
@@ -3147,14 +3149,14 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3147
3149
|
];
|
|
3148
3150
|
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3149
3151
|
var h = a[l];
|
|
3150
|
-
if (
|
|
3152
|
+
if (Ke(h)) {
|
|
3151
3153
|
u.push({
|
|
3152
3154
|
type: w.literal,
|
|
3153
3155
|
value: h.value
|
|
3154
3156
|
});
|
|
3155
3157
|
continue;
|
|
3156
3158
|
}
|
|
3157
|
-
if (
|
|
3159
|
+
if (Fr(h)) {
|
|
3158
3160
|
typeof o == "number" && u.push({
|
|
3159
3161
|
type: w.literal,
|
|
3160
3162
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3163,16 +3165,16 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3163
3165
|
}
|
|
3164
3166
|
var c = h.value;
|
|
3165
3167
|
if (!(i && c in i))
|
|
3166
|
-
throw new
|
|
3168
|
+
throw new _n(c, s);
|
|
3167
3169
|
var f = i[c];
|
|
3168
|
-
if (
|
|
3170
|
+
if (Dr(h)) {
|
|
3169
3171
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3170
3172
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3171
3173
|
value: f
|
|
3172
3174
|
});
|
|
3173
3175
|
continue;
|
|
3174
3176
|
}
|
|
3175
|
-
if (
|
|
3177
|
+
if (At(h)) {
|
|
3176
3178
|
var p = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3177
3179
|
u.push({
|
|
3178
3180
|
type: w.literal,
|
|
@@ -3180,7 +3182,7 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3180
3182
|
});
|
|
3181
3183
|
continue;
|
|
3182
3184
|
}
|
|
3183
|
-
if (
|
|
3185
|
+
if (Bt(h)) {
|
|
3184
3186
|
var p = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3185
3187
|
u.push({
|
|
3186
3188
|
type: w.literal,
|
|
@@ -3188,36 +3190,36 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3188
3190
|
});
|
|
3189
3191
|
continue;
|
|
3190
3192
|
}
|
|
3191
|
-
if (
|
|
3192
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3193
|
+
if (Ht(h)) {
|
|
3194
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Pt(h.style) ? h.style.parsedOptions : void 0;
|
|
3193
3195
|
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3194
3196
|
type: w.literal,
|
|
3195
3197
|
value: r.getNumberFormat(t, p).format(f)
|
|
3196
3198
|
});
|
|
3197
3199
|
continue;
|
|
3198
3200
|
}
|
|
3199
|
-
if (
|
|
3201
|
+
if (Ot(h)) {
|
|
3200
3202
|
var d = h.children, g = h.value, E = i[g];
|
|
3201
|
-
if (!
|
|
3202
|
-
throw new
|
|
3203
|
-
var m = me(d, t, r, n, i, o),
|
|
3203
|
+
if (!xn(E))
|
|
3204
|
+
throw new bn(g, "function", s);
|
|
3205
|
+
var m = me(d, t, r, n, i, o), C = E(m.map(function(B) {
|
|
3204
3206
|
return B.value;
|
|
3205
3207
|
}));
|
|
3206
|
-
Array.isArray(
|
|
3208
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
|
|
3207
3209
|
return {
|
|
3208
3210
|
type: typeof B == "string" ? w.literal : w.object,
|
|
3209
3211
|
value: B
|
|
3210
3212
|
};
|
|
3211
3213
|
}));
|
|
3212
3214
|
}
|
|
3213
|
-
if (
|
|
3215
|
+
if (St(h)) {
|
|
3214
3216
|
var A = h.options[f] || h.options.other;
|
|
3215
3217
|
if (!A)
|
|
3216
|
-
throw new
|
|
3218
|
+
throw new st(h.value, f, Object.keys(h.options), s);
|
|
3217
3219
|
u.push.apply(u, me(A.value, t, r, n, i));
|
|
3218
3220
|
continue;
|
|
3219
3221
|
}
|
|
3220
|
-
if (
|
|
3222
|
+
if (wt(h)) {
|
|
3221
3223
|
var A = h.options["=".concat(f)];
|
|
3222
3224
|
if (!A) {
|
|
3223
3225
|
if (!Intl.PluralRules)
|
|
@@ -3228,21 +3230,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3228
3230
|
A = h.options[O] || h.options.other;
|
|
3229
3231
|
}
|
|
3230
3232
|
if (!A)
|
|
3231
|
-
throw new
|
|
3233
|
+
throw new st(h.value, f, Object.keys(h.options), s);
|
|
3232
3234
|
u.push.apply(u, me(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3233
3235
|
continue;
|
|
3234
3236
|
}
|
|
3235
3237
|
}
|
|
3236
|
-
return
|
|
3238
|
+
return yn(u);
|
|
3237
3239
|
}
|
|
3238
|
-
function
|
|
3240
|
+
function En(e, t) {
|
|
3239
3241
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3240
3242
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3241
3243
|
}, {})) : e;
|
|
3242
3244
|
}
|
|
3243
|
-
function
|
|
3245
|
+
function vn(e, t) {
|
|
3244
3246
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3245
|
-
return r[n] =
|
|
3247
|
+
return r[n] = En(e[n], t[n]), r;
|
|
3246
3248
|
}, x({}, e)) : e;
|
|
3247
3249
|
}
|
|
3248
3250
|
function we(e) {
|
|
@@ -3259,7 +3261,7 @@ function we(e) {
|
|
|
3259
3261
|
}
|
|
3260
3262
|
};
|
|
3261
3263
|
}
|
|
3262
|
-
function
|
|
3264
|
+
function Tn(e) {
|
|
3263
3265
|
return e === void 0 && (e = {
|
|
3264
3266
|
number: {},
|
|
3265
3267
|
dateTime: {},
|
|
@@ -3323,13 +3325,13 @@ var Cn = (
|
|
|
3323
3325
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3324
3326
|
var s = i || {};
|
|
3325
3327
|
s.formatters;
|
|
3326
|
-
var u =
|
|
3328
|
+
var u = Lr(s, ["formatters"]);
|
|
3327
3329
|
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3328
3330
|
} else
|
|
3329
3331
|
this.ast = t;
|
|
3330
3332
|
if (!Array.isArray(this.ast))
|
|
3331
3333
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3332
|
-
this.formats =
|
|
3334
|
+
this.formats = vn(e.formats, n), this.formatters = i && i.formatters || Tn(this.formatterCache);
|
|
3333
3335
|
}
|
|
3334
3336
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3335
3337
|
get: function() {
|
|
@@ -3342,7 +3344,7 @@ var Cn = (
|
|
|
3342
3344
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3343
3345
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3344
3346
|
}
|
|
3345
|
-
}, e.__parse =
|
|
3347
|
+
}, e.__parse = dn, e.formats = {
|
|
3346
3348
|
number: {
|
|
3347
3349
|
integer: {
|
|
3348
3350
|
maximumFractionDigits: 0
|
|
@@ -3403,7 +3405,7 @@ var Cn = (
|
|
|
3403
3405
|
}, e;
|
|
3404
3406
|
}()
|
|
3405
3407
|
);
|
|
3406
|
-
function
|
|
3408
|
+
function Hn(e, t) {
|
|
3407
3409
|
if (t == null)
|
|
3408
3410
|
return;
|
|
3409
3411
|
if (t in e)
|
|
@@ -3424,60 +3426,60 @@ function Tn(e, t) {
|
|
|
3424
3426
|
n = void 0;
|
|
3425
3427
|
return n;
|
|
3426
3428
|
}
|
|
3427
|
-
const G = {},
|
|
3429
|
+
const G = {}, An = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Gt = (e, t) => {
|
|
3428
3430
|
if (t == null)
|
|
3429
3431
|
return;
|
|
3430
3432
|
if (t in G && e in G[t])
|
|
3431
3433
|
return G[t][e];
|
|
3432
3434
|
const r = ve(t);
|
|
3433
3435
|
for (let n = 0; n < r.length; n++) {
|
|
3434
|
-
const i = r[n], o =
|
|
3436
|
+
const i = r[n], o = Sn(i, e);
|
|
3435
3437
|
if (o)
|
|
3436
|
-
return
|
|
3438
|
+
return An(e, t, o);
|
|
3437
3439
|
}
|
|
3438
3440
|
};
|
|
3439
|
-
let
|
|
3441
|
+
let ze;
|
|
3440
3442
|
const ue = ye({});
|
|
3441
|
-
function
|
|
3442
|
-
return
|
|
3443
|
+
function Bn(e) {
|
|
3444
|
+
return ze[e] || null;
|
|
3443
3445
|
}
|
|
3444
|
-
function
|
|
3445
|
-
return e in
|
|
3446
|
+
function Dt(e) {
|
|
3447
|
+
return e in ze;
|
|
3446
3448
|
}
|
|
3447
|
-
function
|
|
3448
|
-
if (!
|
|
3449
|
+
function Sn(e, t) {
|
|
3450
|
+
if (!Dt(e))
|
|
3449
3451
|
return null;
|
|
3450
|
-
const r =
|
|
3451
|
-
return
|
|
3452
|
+
const r = Bn(e);
|
|
3453
|
+
return Hn(r, t);
|
|
3452
3454
|
}
|
|
3453
|
-
function
|
|
3455
|
+
function wn(e) {
|
|
3454
3456
|
if (e == null)
|
|
3455
3457
|
return;
|
|
3456
3458
|
const t = ve(e);
|
|
3457
3459
|
for (let r = 0; r < t.length; r++) {
|
|
3458
3460
|
const n = t[r];
|
|
3459
|
-
if (
|
|
3461
|
+
if (Dt(n))
|
|
3460
3462
|
return n;
|
|
3461
3463
|
}
|
|
3462
3464
|
}
|
|
3463
|
-
function
|
|
3464
|
-
delete G[e], ue.update((r) => (r[e] =
|
|
3465
|
+
function Ft(e, ...t) {
|
|
3466
|
+
delete G[e], ue.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
|
|
3465
3467
|
}
|
|
3466
3468
|
K(
|
|
3467
3469
|
[ue],
|
|
3468
3470
|
([e]) => Object.keys(e)
|
|
3469
3471
|
);
|
|
3470
|
-
ue.subscribe((e) =>
|
|
3472
|
+
ue.subscribe((e) => ze = e);
|
|
3471
3473
|
const pe = {};
|
|
3472
|
-
function
|
|
3474
|
+
function On(e, t) {
|
|
3473
3475
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3474
3476
|
}
|
|
3475
|
-
function
|
|
3477
|
+
function jt(e) {
|
|
3476
3478
|
return pe[e];
|
|
3477
3479
|
}
|
|
3478
|
-
function
|
|
3480
|
+
function Pn(e) {
|
|
3479
3481
|
return ve(e).map((t) => {
|
|
3480
|
-
const r =
|
|
3482
|
+
const r = jt(t);
|
|
3481
3483
|
return [t, r ? [...r] : []];
|
|
3482
3484
|
}).filter(([, t]) => t.length > 0);
|
|
3483
3485
|
}
|
|
@@ -3485,31 +3487,31 @@ function Fe(e) {
|
|
|
3485
3487
|
return e == null ? !1 : ve(e).some(
|
|
3486
3488
|
(t) => {
|
|
3487
3489
|
var r;
|
|
3488
|
-
return (r =
|
|
3490
|
+
return (r = jt(t)) == null ? void 0 : r.size;
|
|
3489
3491
|
}
|
|
3490
3492
|
);
|
|
3491
3493
|
}
|
|
3492
|
-
function
|
|
3494
|
+
function Nn(e, t) {
|
|
3493
3495
|
return Promise.all(
|
|
3494
|
-
t.map((n) => (
|
|
3495
|
-
).then((n) =>
|
|
3496
|
+
t.map((n) => (On(e, n), n().then((i) => i.default || i)))
|
|
3497
|
+
).then((n) => Ft(e, ...n));
|
|
3496
3498
|
}
|
|
3497
3499
|
const re = {};
|
|
3498
|
-
function
|
|
3500
|
+
function kt(e) {
|
|
3499
3501
|
if (!Fe(e))
|
|
3500
3502
|
return e in re ? re[e] : Promise.resolve();
|
|
3501
|
-
const t =
|
|
3503
|
+
const t = Pn(e);
|
|
3502
3504
|
return re[e] = Promise.all(
|
|
3503
3505
|
t.map(
|
|
3504
|
-
([r, n]) =>
|
|
3506
|
+
([r, n]) => Nn(r, n)
|
|
3505
3507
|
)
|
|
3506
3508
|
).then(() => {
|
|
3507
3509
|
if (Fe(e))
|
|
3508
|
-
return
|
|
3510
|
+
return kt(e);
|
|
3509
3511
|
delete re[e];
|
|
3510
3512
|
}), re[e];
|
|
3511
3513
|
}
|
|
3512
|
-
const
|
|
3514
|
+
const Ln = {
|
|
3513
3515
|
number: {
|
|
3514
3516
|
scientific: { notation: "scientific" },
|
|
3515
3517
|
engineering: { notation: "engineering" },
|
|
@@ -3538,34 +3540,34 @@ const Nn = {
|
|
|
3538
3540
|
timeZoneName: "short"
|
|
3539
3541
|
}
|
|
3540
3542
|
}
|
|
3541
|
-
},
|
|
3543
|
+
}, In = {
|
|
3542
3544
|
fallbackLocale: null,
|
|
3543
3545
|
loadingDelay: 200,
|
|
3544
|
-
formats:
|
|
3546
|
+
formats: Ln,
|
|
3545
3547
|
warnOnMissingMessages: !0,
|
|
3546
3548
|
handleMissingMessage: void 0,
|
|
3547
3549
|
ignoreTag: !0
|
|
3548
|
-
},
|
|
3550
|
+
}, Mn = In;
|
|
3549
3551
|
function q() {
|
|
3550
|
-
return
|
|
3552
|
+
return Mn;
|
|
3551
3553
|
}
|
|
3552
3554
|
const Oe = ye(!1);
|
|
3553
|
-
var
|
|
3555
|
+
var $n = Object.defineProperty, Rn = Object.defineProperties, Un = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3554
3556
|
for (var r in t || (t = {}))
|
|
3555
|
-
|
|
3556
|
-
if (
|
|
3557
|
-
for (var r of
|
|
3558
|
-
|
|
3557
|
+
Gn.call(t, r) && ut(e, r, t[r]);
|
|
3558
|
+
if (at)
|
|
3559
|
+
for (var r of at(t))
|
|
3560
|
+
Dn.call(t, r) && ut(e, r, t[r]);
|
|
3559
3561
|
return e;
|
|
3560
|
-
},
|
|
3562
|
+
}, jn = (e, t) => Rn(e, Un(t));
|
|
3561
3563
|
let je;
|
|
3562
3564
|
const be = ye(null);
|
|
3563
|
-
function
|
|
3565
|
+
function ht(e) {
|
|
3564
3566
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3565
3567
|
}
|
|
3566
3568
|
function ve(e, t = q().fallbackLocale) {
|
|
3567
|
-
const r =
|
|
3568
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3569
|
+
const r = ht(e);
|
|
3570
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3569
3571
|
}
|
|
3570
3572
|
function k() {
|
|
3571
3573
|
return je ?? void 0;
|
|
@@ -3573,43 +3575,43 @@ function k() {
|
|
|
3573
3575
|
be.subscribe((e) => {
|
|
3574
3576
|
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3575
3577
|
});
|
|
3576
|
-
const
|
|
3577
|
-
if (e &&
|
|
3578
|
+
const kn = (e) => {
|
|
3579
|
+
if (e && wn(e) && Fe(e)) {
|
|
3578
3580
|
const { loadingDelay: t } = q();
|
|
3579
3581
|
let r;
|
|
3580
3582
|
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3581
3583
|
() => Oe.set(!0),
|
|
3582
3584
|
t
|
|
3583
|
-
) : Oe.set(!0),
|
|
3585
|
+
) : Oe.set(!0), kt(e).then(() => {
|
|
3584
3586
|
be.set(e);
|
|
3585
3587
|
}).finally(() => {
|
|
3586
3588
|
clearTimeout(r), Oe.set(!1);
|
|
3587
3589
|
});
|
|
3588
3590
|
}
|
|
3589
3591
|
return be.set(e);
|
|
3590
|
-
}, ee = Fn(
|
|
3591
|
-
set:
|
|
3592
|
-
}),
|
|
3592
|
+
}, ee = jn(Fn({}, be), {
|
|
3593
|
+
set: kn
|
|
3594
|
+
}), Te = (e) => {
|
|
3593
3595
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3594
3596
|
return (n) => {
|
|
3595
3597
|
const i = JSON.stringify(n);
|
|
3596
3598
|
return i in t ? t[i] : t[i] = e(n);
|
|
3597
3599
|
};
|
|
3598
3600
|
};
|
|
3599
|
-
var
|
|
3601
|
+
var Vn = Object.defineProperty, _e = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3600
3602
|
for (var r in t || (t = {}))
|
|
3601
|
-
|
|
3603
|
+
Vt.call(t, r) && lt(e, r, t[r]);
|
|
3602
3604
|
if (_e)
|
|
3603
3605
|
for (var r of _e(t))
|
|
3604
|
-
|
|
3606
|
+
Xt.call(t, r) && lt(e, r, t[r]);
|
|
3605
3607
|
return e;
|
|
3606
3608
|
}, te = (e, t) => {
|
|
3607
3609
|
var r = {};
|
|
3608
3610
|
for (var n in e)
|
|
3609
|
-
|
|
3611
|
+
Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3610
3612
|
if (e != null && _e)
|
|
3611
3613
|
for (var n of _e(e))
|
|
3612
|
-
t.indexOf(n) < 0 &&
|
|
3614
|
+
t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
|
|
3613
3615
|
return r;
|
|
3614
3616
|
};
|
|
3615
3617
|
const se = (e, t) => {
|
|
@@ -3617,21 +3619,21 @@ const se = (e, t) => {
|
|
|
3617
3619
|
if (e in r && t in r[e])
|
|
3618
3620
|
return r[e][t];
|
|
3619
3621
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3620
|
-
},
|
|
3622
|
+
}, Xn = Te(
|
|
3621
3623
|
(e) => {
|
|
3622
3624
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3623
3625
|
if (r == null)
|
|
3624
3626
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3625
3627
|
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3626
3628
|
}
|
|
3627
|
-
),
|
|
3629
|
+
), zn = Te(
|
|
3628
3630
|
(e) => {
|
|
3629
3631
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3630
3632
|
if (r == null)
|
|
3631
3633
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3632
3634
|
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3633
3635
|
}
|
|
3634
|
-
),
|
|
3636
|
+
), Wn = Te(
|
|
3635
3637
|
(e) => {
|
|
3636
3638
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3637
3639
|
if (r == null)
|
|
@@ -3640,33 +3642,33 @@ const se = (e, t) => {
|
|
|
3640
3642
|
);
|
|
3641
3643
|
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3642
3644
|
}
|
|
3643
|
-
),
|
|
3645
|
+
), Zn = (e = {}) => {
|
|
3644
3646
|
var t = e, {
|
|
3645
3647
|
locale: r = k()
|
|
3646
3648
|
} = t, n = te(t, [
|
|
3647
3649
|
"locale"
|
|
3648
3650
|
]);
|
|
3649
|
-
return
|
|
3650
|
-
},
|
|
3651
|
+
return Xn(We({ locale: r }, n));
|
|
3652
|
+
}, Qn = (e = {}) => {
|
|
3651
3653
|
var t = e, {
|
|
3652
3654
|
locale: r = k()
|
|
3653
3655
|
} = t, n = te(t, [
|
|
3654
3656
|
"locale"
|
|
3655
3657
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3658
|
+
return zn(We({ locale: r }, n));
|
|
3659
|
+
}, Jn = (e = {}) => {
|
|
3658
3660
|
var t = e, {
|
|
3659
3661
|
locale: r = k()
|
|
3660
3662
|
} = t, n = te(t, [
|
|
3661
3663
|
"locale"
|
|
3662
3664
|
]);
|
|
3663
|
-
return
|
|
3664
|
-
},
|
|
3665
|
+
return Wn(We({ locale: r }, n));
|
|
3666
|
+
}, qn = Te(
|
|
3665
3667
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3666
3668
|
(e, t = k()) => new Cn(e, t, q().formats, {
|
|
3667
3669
|
ignoreTag: q().ignoreTag
|
|
3668
3670
|
})
|
|
3669
|
-
),
|
|
3671
|
+
), Yn = (e, t = {}) => {
|
|
3670
3672
|
var r, n, i, o;
|
|
3671
3673
|
let s = t;
|
|
3672
3674
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3679,7 +3681,7 @@ const se = (e, t) => {
|
|
|
3679
3681
|
throw new Error(
|
|
3680
3682
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3681
3683
|
);
|
|
3682
|
-
let h =
|
|
3684
|
+
let h = Gt(e, l);
|
|
3683
3685
|
if (!h)
|
|
3684
3686
|
h = (o = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
|
3685
3687
|
else if (typeof h != "string")
|
|
@@ -3690,7 +3692,7 @@ const se = (e, t) => {
|
|
|
3690
3692
|
return h;
|
|
3691
3693
|
let c = h;
|
|
3692
3694
|
try {
|
|
3693
|
-
c =
|
|
3695
|
+
c = qn(h, l).format(u);
|
|
3694
3696
|
} catch (f) {
|
|
3695
3697
|
f instanceof Error && console.warn(
|
|
3696
3698
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3698,18 +3700,18 @@ const se = (e, t) => {
|
|
|
3698
3700
|
);
|
|
3699
3701
|
}
|
|
3700
3702
|
return c;
|
|
3701
|
-
},
|
|
3702
|
-
K([ee], () => Yn);
|
|
3703
|
+
}, Kn = (e, t) => Jn(t).format(e), ei = (e, t) => Qn(t).format(e), ti = (e, t) => Zn(t).format(e), ri = (e, t = k()) => Gt(e, t), ni = K([ee, ue], () => Yn);
|
|
3703
3704
|
K([ee], () => Kn);
|
|
3704
3705
|
K([ee], () => ei);
|
|
3705
|
-
K([ee
|
|
3706
|
-
|
|
3707
|
-
|
|
3706
|
+
K([ee], () => ti);
|
|
3707
|
+
K([ee, ue], () => ri);
|
|
3708
|
+
function ft(e, t) {
|
|
3709
|
+
Ft(e, t);
|
|
3708
3710
|
}
|
|
3709
|
-
function
|
|
3711
|
+
function ii(e) {
|
|
3710
3712
|
ee.set(e);
|
|
3711
3713
|
}
|
|
3712
|
-
const
|
|
3714
|
+
const ct = {
|
|
3713
3715
|
en: {
|
|
3714
3716
|
topCategories: "Top Categories",
|
|
3715
3717
|
otherCategories: "Other Categories",
|
|
@@ -3819,13 +3821,13 @@ const lt = {
|
|
|
3819
3821
|
games: "games"
|
|
3820
3822
|
}
|
|
3821
3823
|
};
|
|
3822
|
-
function
|
|
3824
|
+
function oi(e, t) {
|
|
3823
3825
|
if (e) {
|
|
3824
3826
|
const r = document.createElement("style");
|
|
3825
3827
|
r.innerHTML = t, e.appendChild(r);
|
|
3826
3828
|
}
|
|
3827
3829
|
}
|
|
3828
|
-
function
|
|
3830
|
+
function si(e, t) {
|
|
3829
3831
|
const r = new URL(t);
|
|
3830
3832
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3831
3833
|
const i = document.createElement("style");
|
|
@@ -3834,7 +3836,7 @@ function oi(e, t) {
|
|
|
3834
3836
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3835
3837
|
});
|
|
3836
3838
|
}
|
|
3837
|
-
function
|
|
3839
|
+
function ai(e, t, r) {
|
|
3838
3840
|
if (window.emMessageBus) {
|
|
3839
3841
|
const n = document.createElement("style");
|
|
3840
3842
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3842,18 +3844,18 @@ function si(e, t, r) {
|
|
|
3842
3844
|
});
|
|
3843
3845
|
}
|
|
3844
3846
|
}
|
|
3845
|
-
function
|
|
3846
|
-
|
|
3847
|
+
function ui(e) {
|
|
3848
|
+
Jt(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3847
3849
|
}
|
|
3848
|
-
function
|
|
3850
|
+
function gt(e, t, r) {
|
|
3849
3851
|
const n = e.slice();
|
|
3850
3852
|
return n[23] = t[r], n;
|
|
3851
3853
|
}
|
|
3852
|
-
function
|
|
3854
|
+
function mt(e, t, r) {
|
|
3853
3855
|
const n = e.slice();
|
|
3854
3856
|
return n[23] = t[r], n;
|
|
3855
3857
|
}
|
|
3856
|
-
function
|
|
3858
|
+
function hi(e) {
|
|
3857
3859
|
let t, r, n = (
|
|
3858
3860
|
/*$_*/
|
|
3859
3861
|
e[5]("topCategories") + ""
|
|
@@ -3865,13 +3867,13 @@ function ui(e) {
|
|
|
3865
3867
|
e[3]
|
|
3866
3868
|
), f = [];
|
|
3867
3869
|
for (let g = 0; g < c.length; g += 1)
|
|
3868
|
-
f[g] =
|
|
3870
|
+
f[g] = pt(mt(e, c, g));
|
|
3869
3871
|
let p = fe(
|
|
3870
3872
|
/*otherCategories*/
|
|
3871
3873
|
e[4]
|
|
3872
3874
|
), d = [];
|
|
3873
3875
|
for (let g = 0; g < p.length; g += 1)
|
|
3874
|
-
d[g] =
|
|
3876
|
+
d[g] = dt(gt(e, p, g));
|
|
3875
3877
|
return {
|
|
3876
3878
|
c() {
|
|
3877
3879
|
t = S("div"), r = S("h4"), i = U(n), o = R();
|
|
@@ -3901,8 +3903,8 @@ function ui(e) {
|
|
|
3901
3903
|
);
|
|
3902
3904
|
let m;
|
|
3903
3905
|
for (m = 0; m < c.length; m += 1) {
|
|
3904
|
-
const
|
|
3905
|
-
f[m] ? f[m].p(
|
|
3906
|
+
const C = mt(g, c, m);
|
|
3907
|
+
f[m] ? f[m].p(C, E) : (f[m] = pt(C), f[m].c(), f[m].m(t, s));
|
|
3906
3908
|
}
|
|
3907
3909
|
for (; m < f.length; m += 1)
|
|
3908
3910
|
f[m].d(1);
|
|
@@ -3918,8 +3920,8 @@ function ui(e) {
|
|
|
3918
3920
|
);
|
|
3919
3921
|
let m;
|
|
3920
3922
|
for (m = 0; m < p.length; m += 1) {
|
|
3921
|
-
const
|
|
3922
|
-
d[m] ? d[m].p(
|
|
3923
|
+
const C = gt(g, p, m);
|
|
3924
|
+
d[m] ? d[m].p(C, E) : (d[m] = dt(C), d[m].c(), d[m].m(t, null));
|
|
3923
3925
|
}
|
|
3924
3926
|
for (; m < d.length; m += 1)
|
|
3925
3927
|
d[m].d(1);
|
|
@@ -3927,11 +3929,11 @@ function ui(e) {
|
|
|
3927
3929
|
}
|
|
3928
3930
|
},
|
|
3929
3931
|
d(g) {
|
|
3930
|
-
g && j(t),
|
|
3932
|
+
g && j(t), Je(f, g), Je(d, g);
|
|
3931
3933
|
}
|
|
3932
3934
|
};
|
|
3933
3935
|
}
|
|
3934
|
-
function
|
|
3936
|
+
function li(e) {
|
|
3935
3937
|
let t;
|
|
3936
3938
|
return {
|
|
3937
3939
|
c() {
|
|
@@ -3946,7 +3948,7 @@ function hi(e) {
|
|
|
3946
3948
|
}
|
|
3947
3949
|
};
|
|
3948
3950
|
}
|
|
3949
|
-
function
|
|
3951
|
+
function pt(e) {
|
|
3950
3952
|
let t, r, n, i, o, s, u, l = (
|
|
3951
3953
|
/*category*/
|
|
3952
3954
|
e[23].name + ""
|
|
@@ -3956,7 +3958,7 @@ function gt(e) {
|
|
|
3956
3958
|
), p, d, g = (
|
|
3957
3959
|
/*$_*/
|
|
3958
3960
|
e[5]("games") + ""
|
|
3959
|
-
), E, m,
|
|
3961
|
+
), E, m, C, A;
|
|
3960
3962
|
function O() {
|
|
3961
3963
|
return (
|
|
3962
3964
|
/*click_handler*/
|
|
@@ -3975,7 +3977,7 @@ function gt(e) {
|
|
|
3975
3977
|
e[23].id ? "Active" : ""));
|
|
3976
3978
|
},
|
|
3977
3979
|
m(B, H) {
|
|
3978
|
-
Y(B, t, H), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, c), v(c, p), v(c, d), v(c, E),
|
|
3980
|
+
Y(B, t, H), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, c), v(c, p), v(c, d), v(c, E), C || (A = xt(t, "click", O), C = !0);
|
|
3979
3981
|
},
|
|
3980
3982
|
p(B, H) {
|
|
3981
3983
|
e = B, H & /*topCategories*/
|
|
@@ -3994,11 +3996,11 @@ function gt(e) {
|
|
|
3994
3996
|
e[23].id ? "Active" : "")) && L(t, "class", m);
|
|
3995
3997
|
},
|
|
3996
3998
|
d(B) {
|
|
3997
|
-
B && j(t),
|
|
3999
|
+
B && j(t), C = !1, A();
|
|
3998
4000
|
}
|
|
3999
4001
|
};
|
|
4000
4002
|
}
|
|
4001
|
-
function
|
|
4003
|
+
function dt(e) {
|
|
4002
4004
|
let t, r, n, i, o, s, u, l = (
|
|
4003
4005
|
/*category*/
|
|
4004
4006
|
e[23].name + ""
|
|
@@ -4008,7 +4010,7 @@ function mt(e) {
|
|
|
4008
4010
|
), p, d, g = (
|
|
4009
4011
|
/*$_*/
|
|
4010
4012
|
e[5]("games") + ""
|
|
4011
|
-
), E, m,
|
|
4013
|
+
), E, m, C, A, O;
|
|
4012
4014
|
function B() {
|
|
4013
4015
|
return (
|
|
4014
4016
|
/*click_handler_1*/
|
|
@@ -4022,12 +4024,12 @@ function mt(e) {
|
|
|
4022
4024
|
c() {
|
|
4023
4025
|
t = S("div"), r = S("ui-image"), o = R(), s = S("div"), u = S("p"), a = U(l), h = R(), c = S("p"), p = U(f), d = R(), E = U(g), m = R(), de(r.src, n = /*category*/
|
|
4024
4026
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4025
|
-
e[23].name), $(r, "imgClass", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class",
|
|
4027
|
+
e[23].name), $(r, "imgClass", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class", C = "Category " + /*activecategory*/
|
|
4026
4028
|
(e[0] === /*category*/
|
|
4027
4029
|
e[23].id ? "Active" : ""));
|
|
4028
4030
|
},
|
|
4029
4031
|
m(H, P) {
|
|
4030
|
-
Y(H, t, P), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, c), v(c, p), v(c, d), v(c, E), v(t, m), A || (O =
|
|
4032
|
+
Y(H, t, P), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, c), v(c, p), v(c, d), v(c, E), v(t, m), A || (O = xt(t, "click", B), A = !0);
|
|
4031
4033
|
},
|
|
4032
4034
|
p(H, P) {
|
|
4033
4035
|
e = H, P & /*otherCategories*/
|
|
@@ -4041,21 +4043,21 @@ function mt(e) {
|
|
|
4041
4043
|
e[23].games.count + "") && D(p, f), P & /*$_*/
|
|
4042
4044
|
32 && g !== (g = /*$_*/
|
|
4043
4045
|
e[5]("games") + "") && D(E, g), P & /*activecategory, otherCategories*/
|
|
4044
|
-
17 &&
|
|
4046
|
+
17 && C !== (C = "Category " + /*activecategory*/
|
|
4045
4047
|
(e[0] === /*category*/
|
|
4046
|
-
e[23].id ? "Active" : "")) && L(t, "class",
|
|
4048
|
+
e[23].id ? "Active" : "")) && L(t, "class", C);
|
|
4047
4049
|
},
|
|
4048
4050
|
d(H) {
|
|
4049
4051
|
H && j(t), A = !1, O();
|
|
4050
4052
|
}
|
|
4051
4053
|
};
|
|
4052
4054
|
}
|
|
4053
|
-
function
|
|
4055
|
+
function fi(e) {
|
|
4054
4056
|
let t;
|
|
4055
4057
|
function r(o, s) {
|
|
4056
4058
|
return (
|
|
4057
4059
|
/*isLoading*/
|
|
4058
|
-
o[2] ?
|
|
4060
|
+
o[2] ? li : hi
|
|
4059
4061
|
);
|
|
4060
4062
|
}
|
|
4061
4063
|
let n = r(e), i = n(e);
|
|
@@ -4076,19 +4078,19 @@ function li(e) {
|
|
|
4076
4078
|
}
|
|
4077
4079
|
};
|
|
4078
4080
|
}
|
|
4079
|
-
function
|
|
4081
|
+
function ci(e, t, r) {
|
|
4080
4082
|
let n;
|
|
4081
|
-
|
|
4083
|
+
Qt(e, ni, (b) => r(5, n = b));
|
|
4082
4084
|
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4083
4085
|
const g = [];
|
|
4084
4086
|
let E = [], m = [];
|
|
4085
|
-
Object.keys(
|
|
4086
|
-
|
|
4087
|
+
Object.keys(ct).forEach((b) => {
|
|
4088
|
+
ft(b, ct[b]);
|
|
4087
4089
|
});
|
|
4088
|
-
const
|
|
4090
|
+
const C = () => {
|
|
4089
4091
|
fetch(c).then((M) => M.json()).then((M) => {
|
|
4090
4092
|
Object.keys(M).forEach((he) => {
|
|
4091
|
-
|
|
4093
|
+
ft(he, M[he]);
|
|
4092
4094
|
});
|
|
4093
4095
|
}).catch((M) => {
|
|
4094
4096
|
console.log(M);
|
|
@@ -4100,18 +4102,18 @@ function fi(e, t, r) {
|
|
|
4100
4102
|
r(2, d = !1);
|
|
4101
4103
|
const he = l.split(",").map((F) => F.trim());
|
|
4102
4104
|
g.push(...M.items);
|
|
4103
|
-
const
|
|
4104
|
-
r(3, E =
|
|
4105
|
+
const Ze = g.filter((F) => !he.some((Wt) => F.flags?.indexOf(Wt) >= 0));
|
|
4106
|
+
r(3, E = Ze.filter((F) => F.isTopCategory === !0)), r(4, m = Ze.filter((F) => F.isTopCategory === !1));
|
|
4105
4107
|
});
|
|
4106
4108
|
}, O = (b) => {
|
|
4107
4109
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4108
4110
|
}, B = () => {
|
|
4109
|
-
|
|
4111
|
+
ii(s);
|
|
4110
4112
|
};
|
|
4111
|
-
|
|
4113
|
+
rr(() => () => {
|
|
4112
4114
|
});
|
|
4113
4115
|
const H = (b) => O(b.id), P = (b) => O(b.id);
|
|
4114
|
-
function
|
|
4116
|
+
function zt(b) {
|
|
4115
4117
|
Pe[b ? "unshift" : "push"](() => {
|
|
4116
4118
|
p = b, r(1, p);
|
|
4117
4119
|
});
|
|
@@ -4121,11 +4123,11 @@ function fi(e, t, r) {
|
|
|
4121
4123
|
}, e.$$.update = () => {
|
|
4122
4124
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4123
4125
|
384 && i && o && A(), e.$$.dirty & /*translationurl*/
|
|
4124
|
-
8192 && c &&
|
|
4126
|
+
8192 && c && C(), e.$$.dirty & /*lang*/
|
|
4125
4127
|
512 && s && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4126
|
-
2050 && a && p &&
|
|
4127
|
-
4098 && h && p &&
|
|
4128
|
-
16386 && f && p &&
|
|
4128
|
+
2050 && a && p && oi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4129
|
+
4098 && h && p && si(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4130
|
+
16386 && f && p && ai(p, `${f}.Style`);
|
|
4129
4131
|
}, [
|
|
4130
4132
|
u,
|
|
4131
4133
|
p,
|
|
@@ -4144,17 +4146,17 @@ function fi(e, t, r) {
|
|
|
4144
4146
|
f,
|
|
4145
4147
|
H,
|
|
4146
4148
|
P,
|
|
4147
|
-
|
|
4149
|
+
zt
|
|
4148
4150
|
];
|
|
4149
4151
|
}
|
|
4150
|
-
class
|
|
4152
|
+
class gi extends mr {
|
|
4151
4153
|
constructor(t) {
|
|
4152
|
-
super(),
|
|
4154
|
+
super(), cr(
|
|
4153
4155
|
this,
|
|
4154
4156
|
t,
|
|
4157
|
+
ci,
|
|
4155
4158
|
fi,
|
|
4156
|
-
|
|
4157
|
-
dt,
|
|
4159
|
+
_t,
|
|
4158
4160
|
{
|
|
4159
4161
|
endpoint: 7,
|
|
4160
4162
|
datasource: 8,
|
|
@@ -4166,7 +4168,7 @@ class ci extends cr {
|
|
|
4166
4168
|
translationurl: 13,
|
|
4167
4169
|
mbsource: 14
|
|
4168
4170
|
},
|
|
4169
|
-
|
|
4171
|
+
ui
|
|
4170
4172
|
);
|
|
4171
4173
|
}
|
|
4172
4174
|
get endpoint() {
|
|
@@ -4224,7 +4226,7 @@ class ci extends cr {
|
|
|
4224
4226
|
this.$$set({ mbsource: t }), I();
|
|
4225
4227
|
}
|
|
4226
4228
|
}
|
|
4227
|
-
|
|
4229
|
+
gr(gi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4228
4230
|
export {
|
|
4229
|
-
|
|
4231
|
+
gi as C
|
|
4230
4232
|
};
|