@everymatrix/casino-categories-providers 1.56.0 → 1.56.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/{CasinoCategories-BB57VRB8.js → CasinoCategories-CkBZnT1R.js} +571 -546
- package/components/{CasinoCategories-BnoSNxRu.js → CasinoCategories-CpYuQZ7U.js} +551 -526
- package/components/CasinoCategories-DqO2b02B.cjs +16 -0
- package/components/{CasinoCategoriesProviders-BqkOsDSE.js → CasinoCategoriesProviders-BDw-rk5g.js} +17 -17
- package/components/{CasinoCategoriesProviders-_7oR8FkB.cjs → CasinoCategoriesProviders-BG-FGTs-.cjs} +1 -1
- package/components/{CasinoCategoriesProviders-CZTqz6l1.js → CasinoCategoriesProviders-De_6ATE1.js} +19 -19
- package/components/{CasinoProviders-CYK2rsS0.js → CasinoProviders-Cm7soutR.js} +36 -36
- package/components/{CasinoProviders-BvYk_Rc1.cjs → CasinoProviders-DJlmVQlk.cjs} +1 -1
- package/components/{CasinoProviders-BU1JwLHF.js → CasinoProviders-DsL3JzjC.js} +36 -36
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +1 -1
- package/esnext/casino-categories-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategories-BnDVIalr.cjs +0 -3
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function L() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function dt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ze() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function oe(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(dt);
|
|
11
11
|
}
|
|
12
12
|
function je(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function bt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let he;
|
|
19
19
|
function pe(e, t) {
|
|
20
20
|
return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Zt(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 n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,21 +31,22 @@ function dt(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 Qt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(yt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function v(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function qt(e, t, r) {
|
|
41
|
+
const n = Jt(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = w("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Yt(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
if (!e)
|
|
47
|
+
function Jt(e) {
|
|
48
|
+
if (!e)
|
|
49
|
+
return document;
|
|
49
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
50
51
|
return t && /** @type {ShadowRoot} */
|
|
51
52
|
t.host ? (
|
|
@@ -53,7 +54,7 @@ function Qt(e) {
|
|
|
53
54
|
t
|
|
54
55
|
) : e.ownerDocument;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function Yt(e, t) {
|
|
57
58
|
return v(
|
|
58
59
|
/** @type {Document} */
|
|
59
60
|
e.head || e,
|
|
@@ -66,7 +67,7 @@ function J(e, t, r) {
|
|
|
66
67
|
function F(e) {
|
|
67
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function Qe(e, t) {
|
|
70
71
|
for (let r = 0; r < e.length; r += 1)
|
|
71
72
|
e[r] && e[r].d(t);
|
|
72
73
|
}
|
|
@@ -79,27 +80,27 @@ function R(e) {
|
|
|
79
80
|
function $() {
|
|
80
81
|
return R(" ");
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function gi() {
|
|
83
84
|
return R("");
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function _t(e, t, r, n) {
|
|
86
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
88
|
}
|
|
88
89
|
function H(e, t, r) {
|
|
89
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function mi(e, t, r) {
|
|
92
93
|
const n = t.toLowerCase();
|
|
93
94
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function Kt(e) {
|
|
96
97
|
return Array.from(e.childNodes);
|
|
97
98
|
}
|
|
98
99
|
function D(e, t) {
|
|
99
100
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
100
101
|
t);
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function er(e) {
|
|
103
104
|
const t = {};
|
|
104
105
|
return e.childNodes.forEach(
|
|
105
106
|
/** @param {Element} node */
|
|
@@ -112,19 +113,20 @@ let ne;
|
|
|
112
113
|
function re(e) {
|
|
113
114
|
ne = e;
|
|
114
115
|
}
|
|
115
|
-
function
|
|
116
|
-
if (!ne)
|
|
116
|
+
function tr() {
|
|
117
|
+
if (!ne)
|
|
118
|
+
throw new Error("Function called outside component initialization");
|
|
117
119
|
return ne;
|
|
118
120
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
+
function rr(e) {
|
|
122
|
+
tr().$$.on_mount.push(e);
|
|
121
123
|
}
|
|
122
124
|
const X = [], Oe = [];
|
|
123
125
|
let z = [];
|
|
124
|
-
const
|
|
126
|
+
const qe = [], nr = /* @__PURE__ */ Promise.resolve();
|
|
125
127
|
let Pe = !1;
|
|
126
|
-
function
|
|
127
|
-
Pe || (Pe = !0,
|
|
128
|
+
function ir() {
|
|
129
|
+
Pe || (Pe = !0, nr.then(I));
|
|
128
130
|
}
|
|
129
131
|
function Ne(e) {
|
|
130
132
|
z.push(e);
|
|
@@ -139,55 +141,56 @@ function I() {
|
|
|
139
141
|
try {
|
|
140
142
|
for (; k < X.length; ) {
|
|
141
143
|
const t = X[k];
|
|
142
|
-
k++, re(t),
|
|
144
|
+
k++, re(t), sr(t.$$);
|
|
143
145
|
}
|
|
144
146
|
} catch (t) {
|
|
145
147
|
throw X.length = 0, k = 0, t;
|
|
146
148
|
}
|
|
147
|
-
for (re(null), X.length = 0, k = 0; Oe.length; )
|
|
149
|
+
for (re(null), X.length = 0, k = 0; Oe.length; )
|
|
150
|
+
Oe.pop()();
|
|
148
151
|
for (let t = 0; t < z.length; t += 1) {
|
|
149
152
|
const r = z[t];
|
|
150
153
|
Te.has(r) || (Te.add(r), r());
|
|
151
154
|
}
|
|
152
155
|
z.length = 0;
|
|
153
156
|
} while (X.length);
|
|
154
|
-
for (;
|
|
155
|
-
|
|
157
|
+
for (; qe.length; )
|
|
158
|
+
qe.pop()();
|
|
156
159
|
Pe = !1, Te.clear(), re(e);
|
|
157
160
|
}
|
|
158
|
-
function
|
|
161
|
+
function sr(e) {
|
|
159
162
|
if (e.fragment !== null) {
|
|
160
163
|
e.update(), oe(e.before_update);
|
|
161
164
|
const t = e.dirty;
|
|
162
165
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
|
-
function
|
|
168
|
+
function or(e) {
|
|
166
169
|
const t = [], r = [];
|
|
167
170
|
z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
|
|
168
171
|
}
|
|
169
|
-
const
|
|
170
|
-
function
|
|
171
|
-
e && e.i && (
|
|
172
|
+
const ar = /* @__PURE__ */ new Set();
|
|
173
|
+
function ur(e, t) {
|
|
174
|
+
e && e.i && (ar.delete(e), e.i(t));
|
|
172
175
|
}
|
|
173
176
|
function le(e) {
|
|
174
177
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
175
178
|
}
|
|
176
|
-
function
|
|
179
|
+
function hr(e, t, r) {
|
|
177
180
|
const { fragment: n, after_update: i } = e.$$;
|
|
178
181
|
n && n.m(t, r), Ne(() => {
|
|
179
|
-
const s = e.$$.on_mount.map(
|
|
182
|
+
const s = e.$$.on_mount.map(dt).filter(je);
|
|
180
183
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
|
|
181
184
|
}), i.forEach(Ne);
|
|
182
185
|
}
|
|
183
|
-
function
|
|
186
|
+
function lr(e, t) {
|
|
184
187
|
const r = e.$$;
|
|
185
|
-
r.fragment !== null && (
|
|
188
|
+
r.fragment !== null && (or(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
186
189
|
}
|
|
187
|
-
function
|
|
188
|
-
e.$$.dirty[0] === -1 && (X.push(e),
|
|
190
|
+
function cr(e, t) {
|
|
191
|
+
e.$$.dirty[0] === -1 && (X.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
189
192
|
}
|
|
190
|
-
function
|
|
193
|
+
function fr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
191
194
|
const l = ne;
|
|
192
195
|
re(e);
|
|
193
196
|
const a = e.$$ = {
|
|
@@ -197,7 +200,7 @@ function lr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
197
200
|
props: s,
|
|
198
201
|
update: L,
|
|
199
202
|
not_equal: i,
|
|
200
|
-
bound:
|
|
203
|
+
bound: Ze(),
|
|
201
204
|
// lifecycle
|
|
202
205
|
on_mount: [],
|
|
203
206
|
on_destroy: [],
|
|
@@ -206,28 +209,28 @@ function lr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
206
209
|
after_update: [],
|
|
207
210
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
208
211
|
// everything else
|
|
209
|
-
callbacks:
|
|
212
|
+
callbacks: Ze(),
|
|
210
213
|
dirty: u,
|
|
211
214
|
skip_bound: !1,
|
|
212
215
|
root: t.target || l.$$.root
|
|
213
216
|
};
|
|
214
217
|
o && o(a.root);
|
|
215
218
|
let h = !1;
|
|
216
|
-
if (a.ctx = r ? r(e, t.props || {}, (
|
|
217
|
-
const d = p.length ? p[0] :
|
|
218
|
-
return a.ctx && i(a.ctx[
|
|
219
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
220
|
+
const d = p.length ? p[0] : c;
|
|
221
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = d) && (!a.skip_bound && a.bound[f] && a.bound[f](d), h && cr(e, f)), c;
|
|
219
222
|
}) : [], a.update(), h = !0, oe(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
220
223
|
if (t.hydrate) {
|
|
221
|
-
const
|
|
222
|
-
a.fragment && a.fragment.l(
|
|
224
|
+
const f = Kt(t.target);
|
|
225
|
+
a.fragment && a.fragment.l(f), f.forEach(F);
|
|
223
226
|
} else
|
|
224
227
|
a.fragment && a.fragment.c();
|
|
225
|
-
t.intro &&
|
|
228
|
+
t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor), I();
|
|
226
229
|
}
|
|
227
230
|
re(l);
|
|
228
231
|
}
|
|
229
|
-
let
|
|
230
|
-
typeof HTMLElement == "function" && (
|
|
232
|
+
let xt;
|
|
233
|
+
typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
231
234
|
/** The Svelte component constructor */
|
|
232
235
|
$$ctor;
|
|
233
236
|
/** Slots */
|
|
@@ -286,12 +289,12 @@ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
|
286
289
|
};
|
|
287
290
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
288
291
|
return;
|
|
289
|
-
const t = {}, r =
|
|
292
|
+
const t = {}, r = er(this);
|
|
290
293
|
for (const i of this.$$s)
|
|
291
294
|
i in r && (t[i] = [e(i)]);
|
|
292
295
|
for (const i of this.attributes) {
|
|
293
296
|
const s = this.$$g_p(i.name);
|
|
294
|
-
s in this.$$d || (this.$$d[s] =
|
|
297
|
+
s in this.$$d || (this.$$d[s] = fe(s, i.value, this.$$p_d, "toProp"));
|
|
295
298
|
}
|
|
296
299
|
for (const i in this.$$p_d)
|
|
297
300
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -309,7 +312,7 @@ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
|
309
312
|
this.$$r = !0;
|
|
310
313
|
for (const i in this.$$p_d)
|
|
311
314
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
312
|
-
const s =
|
|
315
|
+
const s = fe(
|
|
313
316
|
i,
|
|
314
317
|
this.$$d[i],
|
|
315
318
|
this.$$p_d,
|
|
@@ -331,7 +334,7 @@ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
|
331
334
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
332
335
|
// and setting attributes through setAttribute etc, this is helpful
|
|
333
336
|
attributeChangedCallback(e, t, r) {
|
|
334
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
337
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
335
338
|
}
|
|
336
339
|
disconnectedCallback() {
|
|
337
340
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -344,7 +347,7 @@ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
|
344
347
|
) || e;
|
|
345
348
|
}
|
|
346
349
|
});
|
|
347
|
-
function
|
|
350
|
+
function fe(e, t, r, n) {
|
|
348
351
|
const i = r[e]?.type;
|
|
349
352
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
350
353
|
return t;
|
|
@@ -373,8 +376,8 @@ function ce(e, t, r, n) {
|
|
|
373
376
|
return t;
|
|
374
377
|
}
|
|
375
378
|
}
|
|
376
|
-
function
|
|
377
|
-
let o = class extends
|
|
379
|
+
function gr(e, t, r, n, i, s) {
|
|
380
|
+
let o = class extends xt {
|
|
378
381
|
constructor() {
|
|
379
382
|
super(e, r, i), this.$$p_d = t;
|
|
380
383
|
}
|
|
@@ -390,7 +393,7 @@ function fr(e, t, r, n, i, s) {
|
|
|
390
393
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
391
394
|
},
|
|
392
395
|
set(l) {
|
|
393
|
-
l =
|
|
396
|
+
l = fe(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
|
|
394
397
|
}
|
|
395
398
|
});
|
|
396
399
|
}), n.forEach((u) => {
|
|
@@ -402,7 +405,7 @@ function fr(e, t, r, n, i, s) {
|
|
|
402
405
|
}), e.element = /** @type {any} */
|
|
403
406
|
o, o;
|
|
404
407
|
}
|
|
405
|
-
class
|
|
408
|
+
class mr {
|
|
406
409
|
/**
|
|
407
410
|
* ### PRIVATE API
|
|
408
411
|
*
|
|
@@ -421,7 +424,7 @@ class cr {
|
|
|
421
424
|
$$set = void 0;
|
|
422
425
|
/** @returns {void} */
|
|
423
426
|
$destroy() {
|
|
424
|
-
|
|
427
|
+
lr(this, 1), this.$destroy = L;
|
|
425
428
|
}
|
|
426
429
|
/**
|
|
427
430
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -443,13 +446,13 @@ class cr {
|
|
|
443
446
|
* @returns {void}
|
|
444
447
|
*/
|
|
445
448
|
$set(t) {
|
|
446
|
-
this.$$set && !
|
|
449
|
+
this.$$set && !Zt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
447
450
|
}
|
|
448
451
|
}
|
|
449
|
-
const
|
|
450
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
452
|
+
const pr = "4";
|
|
453
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
|
|
451
454
|
const V = [];
|
|
452
|
-
function
|
|
455
|
+
function dr(e, t) {
|
|
453
456
|
return {
|
|
454
457
|
subscribe: ye(e, t).subscribe
|
|
455
458
|
};
|
|
@@ -458,7 +461,7 @@ function ye(e, t = L) {
|
|
|
458
461
|
let r;
|
|
459
462
|
const n = /* @__PURE__ */ new Set();
|
|
460
463
|
function i(u) {
|
|
461
|
-
if (
|
|
464
|
+
if (bt(e, u) && (e = u, r)) {
|
|
462
465
|
const l = !V.length;
|
|
463
466
|
for (const a of n)
|
|
464
467
|
a[1](), V.push(a, e);
|
|
@@ -485,96 +488,96 @@ function Y(e, t, r) {
|
|
|
485
488
|
if (!i.every(Boolean))
|
|
486
489
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
487
490
|
const s = t.length < 2;
|
|
488
|
-
return
|
|
491
|
+
return dr(r, (o, u) => {
|
|
489
492
|
let l = !1;
|
|
490
493
|
const a = [];
|
|
491
|
-
let h = 0,
|
|
492
|
-
const
|
|
494
|
+
let h = 0, f = L;
|
|
495
|
+
const c = () => {
|
|
493
496
|
if (h)
|
|
494
497
|
return;
|
|
495
|
-
|
|
498
|
+
f();
|
|
496
499
|
const d = t(n ? a[0] : a, o, u);
|
|
497
|
-
s ? o(d) :
|
|
500
|
+
s ? o(d) : f = je(d) ? d : L;
|
|
498
501
|
}, p = i.map(
|
|
499
|
-
(d, g) =>
|
|
502
|
+
(d, g) => yt(
|
|
500
503
|
d,
|
|
501
|
-
(
|
|
502
|
-
a[g] =
|
|
504
|
+
(E) => {
|
|
505
|
+
a[g] = E, h &= ~(1 << g), l && c();
|
|
503
506
|
},
|
|
504
507
|
() => {
|
|
505
508
|
h |= 1 << g;
|
|
506
509
|
}
|
|
507
510
|
)
|
|
508
511
|
);
|
|
509
|
-
return l = !0,
|
|
510
|
-
oe(p),
|
|
512
|
+
return l = !0, c(), function() {
|
|
513
|
+
oe(p), f(), l = !1;
|
|
511
514
|
};
|
|
512
515
|
});
|
|
513
516
|
}
|
|
514
|
-
function
|
|
517
|
+
function br(e) {
|
|
515
518
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
516
519
|
}
|
|
517
|
-
var
|
|
518
|
-
return
|
|
520
|
+
var yr = function(t) {
|
|
521
|
+
return _r(t) && !xr(t);
|
|
519
522
|
};
|
|
520
|
-
function
|
|
523
|
+
function _r(e) {
|
|
521
524
|
return !!e && typeof e == "object";
|
|
522
525
|
}
|
|
523
|
-
function
|
|
526
|
+
function xr(e) {
|
|
524
527
|
var t = Object.prototype.toString.call(e);
|
|
525
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
528
|
+
return t === "[object RegExp]" || t === "[object Date]" || Tr(e);
|
|
526
529
|
}
|
|
527
|
-
var
|
|
528
|
-
function
|
|
529
|
-
return e.$$typeof ===
|
|
530
|
+
var Er = typeof Symbol == "function" && Symbol.for, vr = Er ? Symbol.for("react.element") : 60103;
|
|
531
|
+
function Tr(e) {
|
|
532
|
+
return e.$$typeof === vr;
|
|
530
533
|
}
|
|
531
|
-
function
|
|
534
|
+
function Cr(e) {
|
|
532
535
|
return Array.isArray(e) ? [] : {};
|
|
533
536
|
}
|
|
534
537
|
function ie(e, t) {
|
|
535
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? W(
|
|
538
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? W(Cr(e), e, t) : e;
|
|
536
539
|
}
|
|
537
|
-
function
|
|
540
|
+
function Hr(e, t, r) {
|
|
538
541
|
return e.concat(t).map(function(n) {
|
|
539
542
|
return ie(n, r);
|
|
540
543
|
});
|
|
541
544
|
}
|
|
542
|
-
function
|
|
545
|
+
function Ar(e, t) {
|
|
543
546
|
if (!t.customMerge)
|
|
544
547
|
return W;
|
|
545
548
|
var r = t.customMerge(e);
|
|
546
549
|
return typeof r == "function" ? r : W;
|
|
547
550
|
}
|
|
548
|
-
function
|
|
551
|
+
function Br(e) {
|
|
549
552
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
550
553
|
return Object.propertyIsEnumerable.call(e, t);
|
|
551
554
|
}) : [];
|
|
552
555
|
}
|
|
553
|
-
function
|
|
554
|
-
return Object.keys(e).concat(
|
|
556
|
+
function Je(e) {
|
|
557
|
+
return Object.keys(e).concat(Br(e));
|
|
555
558
|
}
|
|
556
|
-
function
|
|
559
|
+
function Et(e, t) {
|
|
557
560
|
try {
|
|
558
561
|
return t in e;
|
|
559
562
|
} catch {
|
|
560
563
|
return !1;
|
|
561
564
|
}
|
|
562
565
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
566
|
+
function Sr(e, t) {
|
|
567
|
+
return Et(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
565
568
|
}
|
|
566
|
-
function
|
|
569
|
+
function wr(e, t, r) {
|
|
567
570
|
var n = {};
|
|
568
|
-
return r.isMergeableObject(e) &&
|
|
571
|
+
return r.isMergeableObject(e) && Je(e).forEach(function(i) {
|
|
569
572
|
n[i] = ie(e[i], r);
|
|
570
|
-
}),
|
|
571
|
-
|
|
573
|
+
}), Je(t).forEach(function(i) {
|
|
574
|
+
Sr(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ar(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
572
575
|
}), n;
|
|
573
576
|
}
|
|
574
577
|
function W(e, t, r) {
|
|
575
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
578
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || yr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
576
579
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
577
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
580
|
+
return s ? n ? r.arrayMerge(e, t, r) : wr(e, t, r) : ie(t, r);
|
|
578
581
|
}
|
|
579
582
|
W.all = function(t, r) {
|
|
580
583
|
if (!Array.isArray(t))
|
|
@@ -583,13 +586,28 @@ W.all = function(t, r) {
|
|
|
583
586
|
return W(n, i, r);
|
|
584
587
|
}, {});
|
|
585
588
|
};
|
|
586
|
-
var
|
|
587
|
-
const
|
|
589
|
+
var Or = W, Pr = Or;
|
|
590
|
+
const Nr = /* @__PURE__ */ br(Pr);
|
|
591
|
+
/*! *****************************************************************************
|
|
592
|
+
Copyright (c) Microsoft Corporation.
|
|
593
|
+
|
|
594
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
595
|
+
purpose with or without fee is hereby granted.
|
|
596
|
+
|
|
597
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
598
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
599
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
600
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
601
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
602
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
603
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
604
|
+
***************************************************************************** */
|
|
588
605
|
var Le = function(e, t) {
|
|
589
606
|
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
590
607
|
r.__proto__ = n;
|
|
591
608
|
} || function(r, n) {
|
|
592
|
-
for (var i in n)
|
|
609
|
+
for (var i in n)
|
|
610
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
593
611
|
}, Le(e, t);
|
|
594
612
|
};
|
|
595
613
|
function _e(e, t) {
|
|
@@ -601,76 +619,81 @@ function _e(e, t) {
|
|
|
601
619
|
}
|
|
602
620
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
603
621
|
}
|
|
604
|
-
var
|
|
605
|
-
return
|
|
622
|
+
var x = function() {
|
|
623
|
+
return x = Object.assign || function(t) {
|
|
606
624
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
607
625
|
r = arguments[n];
|
|
608
|
-
for (var s in r)
|
|
626
|
+
for (var s in r)
|
|
627
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
609
628
|
}
|
|
610
629
|
return t;
|
|
611
|
-
},
|
|
630
|
+
}, x.apply(this, arguments);
|
|
612
631
|
};
|
|
613
|
-
function
|
|
632
|
+
function Lr(e, t) {
|
|
614
633
|
var r = {};
|
|
615
|
-
for (var n in e)
|
|
634
|
+
for (var n in e)
|
|
635
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
616
636
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
617
637
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
618
638
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
619
639
|
return r;
|
|
620
640
|
}
|
|
621
641
|
function Ce(e, t, r) {
|
|
622
|
-
if (
|
|
623
|
-
(
|
|
624
|
-
|
|
642
|
+
if (arguments.length === 2)
|
|
643
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
644
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
645
|
+
return e.concat(s || t);
|
|
625
646
|
}
|
|
626
647
|
function He(e, t) {
|
|
627
|
-
var r = t && t.cache ? t.cache :
|
|
648
|
+
var r = t && t.cache ? t.cache : Dr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Mr;
|
|
628
649
|
return i(e, {
|
|
629
650
|
cache: r,
|
|
630
651
|
serializer: n
|
|
631
652
|
});
|
|
632
653
|
}
|
|
633
|
-
function
|
|
654
|
+
function Ir(e) {
|
|
634
655
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
635
656
|
}
|
|
636
|
-
function
|
|
637
|
-
var i =
|
|
657
|
+
function vt(e, t, r, n) {
|
|
658
|
+
var i = Ir(n) ? n : r(n), s = t.get(i);
|
|
638
659
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
639
660
|
}
|
|
640
|
-
function
|
|
661
|
+
function Tt(e, t, r) {
|
|
641
662
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
642
663
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
643
664
|
}
|
|
644
|
-
function
|
|
665
|
+
function ke(e, t, r, n, i) {
|
|
645
666
|
return r.bind(t, e, n, i);
|
|
646
667
|
}
|
|
647
|
-
function Ir(e, t) {
|
|
648
|
-
var r = e.length === 1 ? Lr : Et;
|
|
649
|
-
return xt(e, this, r, t.cache.create(), t.serializer);
|
|
650
|
-
}
|
|
651
668
|
function Mr(e, t) {
|
|
652
|
-
|
|
669
|
+
var r = e.length === 1 ? vt : Tt;
|
|
670
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
671
|
+
}
|
|
672
|
+
function $r(e, t) {
|
|
673
|
+
return ke(e, this, Tt, t.cache.create(), t.serializer);
|
|
653
674
|
}
|
|
654
|
-
|
|
675
|
+
function Rr(e, t) {
|
|
676
|
+
return ke(e, this, vt, t.cache.create(), t.serializer);
|
|
677
|
+
}
|
|
678
|
+
var Ur = function() {
|
|
655
679
|
return JSON.stringify(arguments);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}()
|
|
668
|
-
), Ur = {
|
|
680
|
+
};
|
|
681
|
+
function Ve() {
|
|
682
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
683
|
+
}
|
|
684
|
+
Ve.prototype.get = function(e) {
|
|
685
|
+
return this.cache[e];
|
|
686
|
+
};
|
|
687
|
+
Ve.prototype.set = function(e, t) {
|
|
688
|
+
this.cache[e] = t;
|
|
689
|
+
};
|
|
690
|
+
var Dr = {
|
|
669
691
|
create: function() {
|
|
670
|
-
return new
|
|
692
|
+
return new Ve();
|
|
671
693
|
}
|
|
672
694
|
}, Ae = {
|
|
673
|
-
variadic:
|
|
695
|
+
variadic: $r,
|
|
696
|
+
monadic: Rr
|
|
674
697
|
}, y;
|
|
675
698
|
(function(e) {
|
|
676
699
|
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";
|
|
@@ -683,43 +706,43 @@ var Z;
|
|
|
683
706
|
(function(e) {
|
|
684
707
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
685
708
|
})(Z || (Z = {}));
|
|
686
|
-
function
|
|
709
|
+
function Ye(e) {
|
|
687
710
|
return e.type === T.literal;
|
|
688
711
|
}
|
|
689
|
-
function
|
|
712
|
+
function Gr(e) {
|
|
690
713
|
return e.type === T.argument;
|
|
691
714
|
}
|
|
692
|
-
function
|
|
715
|
+
function Ct(e) {
|
|
693
716
|
return e.type === T.number;
|
|
694
717
|
}
|
|
695
|
-
function
|
|
718
|
+
function Ht(e) {
|
|
696
719
|
return e.type === T.date;
|
|
697
720
|
}
|
|
698
|
-
function
|
|
721
|
+
function At(e) {
|
|
699
722
|
return e.type === T.time;
|
|
700
723
|
}
|
|
701
|
-
function
|
|
724
|
+
function Bt(e) {
|
|
702
725
|
return e.type === T.select;
|
|
703
726
|
}
|
|
704
|
-
function
|
|
727
|
+
function St(e) {
|
|
705
728
|
return e.type === T.plural;
|
|
706
729
|
}
|
|
707
|
-
function
|
|
730
|
+
function Fr(e) {
|
|
708
731
|
return e.type === T.pound;
|
|
709
732
|
}
|
|
710
|
-
function
|
|
733
|
+
function wt(e) {
|
|
711
734
|
return e.type === T.tag;
|
|
712
735
|
}
|
|
713
|
-
function
|
|
736
|
+
function Ot(e) {
|
|
714
737
|
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
715
738
|
}
|
|
716
739
|
function Ie(e) {
|
|
717
740
|
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
718
741
|
}
|
|
719
|
-
var
|
|
720
|
-
function
|
|
742
|
+
var Pt = /[ \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;
|
|
743
|
+
function kr(e) {
|
|
721
744
|
var t = {};
|
|
722
|
-
return e.replace(
|
|
745
|
+
return e.replace(jr, function(r) {
|
|
723
746
|
var n = r.length;
|
|
724
747
|
switch (r[0]) {
|
|
725
748
|
case "G":
|
|
@@ -808,36 +831,36 @@ function jr(e) {
|
|
|
808
831
|
return "";
|
|
809
832
|
}), t;
|
|
810
833
|
}
|
|
811
|
-
var
|
|
812
|
-
function
|
|
834
|
+
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
835
|
+
function Xr(e) {
|
|
813
836
|
if (e.length === 0)
|
|
814
837
|
throw new Error("Number skeleton cannot be empty");
|
|
815
|
-
for (var t = e.split(
|
|
816
|
-
return
|
|
838
|
+
for (var t = e.split(Vr).filter(function(c) {
|
|
839
|
+
return c.length > 0;
|
|
817
840
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
818
841
|
var s = i[n], o = s.split("/");
|
|
819
842
|
if (o.length === 0)
|
|
820
843
|
throw new Error("Invalid number skeleton");
|
|
821
844
|
for (var u = o[0], l = o.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
822
|
-
var
|
|
823
|
-
if (
|
|
845
|
+
var f = h[a];
|
|
846
|
+
if (f.length === 0)
|
|
824
847
|
throw new Error("Invalid number skeleton");
|
|
825
848
|
}
|
|
826
849
|
r.push({ stem: u, options: l });
|
|
827
850
|
}
|
|
828
851
|
return r;
|
|
829
852
|
}
|
|
830
|
-
function
|
|
853
|
+
function zr(e) {
|
|
831
854
|
return e.replace(/^(.*?)-/, "");
|
|
832
855
|
}
|
|
833
|
-
var
|
|
834
|
-
function
|
|
856
|
+
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Wr = /(\*)(0+)|(#+)(0+)|(0+)/g, Lt = /^(0+)$/;
|
|
857
|
+
function et(e) {
|
|
835
858
|
var t = {};
|
|
836
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
859
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
|
|
837
860
|
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)), "";
|
|
838
861
|
}), t;
|
|
839
862
|
}
|
|
840
|
-
function
|
|
863
|
+
function It(e) {
|
|
841
864
|
switch (e) {
|
|
842
865
|
case "sign-auto":
|
|
843
866
|
return {
|
|
@@ -877,7 +900,7 @@ function Nt(e) {
|
|
|
877
900
|
};
|
|
878
901
|
}
|
|
879
902
|
}
|
|
880
|
-
function
|
|
903
|
+
function Zr(e) {
|
|
881
904
|
var t;
|
|
882
905
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
883
906
|
notation: "engineering"
|
|
@@ -885,17 +908,17 @@ function Wr(e) {
|
|
|
885
908
|
notation: "scientific"
|
|
886
909
|
}, e = e.slice(1)), t) {
|
|
887
910
|
var r = e.slice(0, 2);
|
|
888
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
911
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Lt.test(e))
|
|
889
912
|
throw new Error("Malformed concise eng/scientific notation");
|
|
890
913
|
t.minimumIntegerDigits = e.length;
|
|
891
914
|
}
|
|
892
915
|
return t;
|
|
893
916
|
}
|
|
894
|
-
function
|
|
895
|
-
var t = {}, r =
|
|
917
|
+
function tt(e) {
|
|
918
|
+
var t = {}, r = It(e);
|
|
896
919
|
return r || t;
|
|
897
920
|
}
|
|
898
|
-
function
|
|
921
|
+
function Qr(e) {
|
|
899
922
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
900
923
|
var i = n[r];
|
|
901
924
|
switch (i.stem) {
|
|
@@ -919,7 +942,7 @@ function Zr(e) {
|
|
|
919
942
|
continue;
|
|
920
943
|
case "measure-unit":
|
|
921
944
|
case "unit":
|
|
922
|
-
t.style = "unit", t.unit =
|
|
945
|
+
t.style = "unit", t.unit = zr(i.options[0]);
|
|
923
946
|
continue;
|
|
924
947
|
case "compact-short":
|
|
925
948
|
case "K":
|
|
@@ -930,13 +953,13 @@ function Zr(e) {
|
|
|
930
953
|
t.notation = "compact", t.compactDisplay = "long";
|
|
931
954
|
continue;
|
|
932
955
|
case "scientific":
|
|
933
|
-
t =
|
|
934
|
-
return
|
|
956
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
957
|
+
return x(x({}, l), tt(a));
|
|
935
958
|
}, {}));
|
|
936
959
|
continue;
|
|
937
960
|
case "engineering":
|
|
938
|
-
t =
|
|
939
|
-
return
|
|
961
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
962
|
+
return x(x({}, l), tt(a));
|
|
940
963
|
}, {}));
|
|
941
964
|
continue;
|
|
942
965
|
case "notation-simple":
|
|
@@ -981,11 +1004,11 @@ function Zr(e) {
|
|
|
981
1004
|
case "integer-width":
|
|
982
1005
|
if (i.options.length > 1)
|
|
983
1006
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
984
|
-
i.options[0].replace(
|
|
1007
|
+
i.options[0].replace(Wr, function(l, a, h, f, c, p) {
|
|
985
1008
|
if (a)
|
|
986
1009
|
t.minimumIntegerDigits = h.length;
|
|
987
1010
|
else {
|
|
988
|
-
if (
|
|
1011
|
+
if (f && c)
|
|
989
1012
|
throw new Error("We currently do not support maximum integer digits");
|
|
990
1013
|
if (p)
|
|
991
1014
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -994,32 +1017,32 @@ function Zr(e) {
|
|
|
994
1017
|
});
|
|
995
1018
|
continue;
|
|
996
1019
|
}
|
|
997
|
-
if (
|
|
1020
|
+
if (Lt.test(i.stem)) {
|
|
998
1021
|
t.minimumIntegerDigits = i.stem.length;
|
|
999
1022
|
continue;
|
|
1000
1023
|
}
|
|
1001
|
-
if (
|
|
1024
|
+
if (Ke.test(i.stem)) {
|
|
1002
1025
|
if (i.options.length > 1)
|
|
1003
1026
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1004
|
-
i.stem.replace(
|
|
1005
|
-
return h === "*" ? t.minimumFractionDigits = a.length :
|
|
1027
|
+
i.stem.replace(Ke, function(l, a, h, f, c, p) {
|
|
1028
|
+
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1006
1029
|
});
|
|
1007
1030
|
var s = i.options[0];
|
|
1008
|
-
s === "w" ? t =
|
|
1031
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), et(s)));
|
|
1009
1032
|
continue;
|
|
1010
1033
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
t =
|
|
1034
|
+
if (Nt.test(i.stem)) {
|
|
1035
|
+
t = x(x({}, t), et(i.stem));
|
|
1013
1036
|
continue;
|
|
1014
1037
|
}
|
|
1015
|
-
var o =
|
|
1016
|
-
o && (t =
|
|
1017
|
-
var u =
|
|
1018
|
-
u && (t =
|
|
1038
|
+
var o = It(i.stem);
|
|
1039
|
+
o && (t = x(x({}, t), o));
|
|
1040
|
+
var u = Zr(i.stem);
|
|
1041
|
+
u && (t = x(x({}, t), u));
|
|
1019
1042
|
}
|
|
1020
1043
|
return t;
|
|
1021
1044
|
}
|
|
1022
|
-
var
|
|
1045
|
+
var ce = {
|
|
1023
1046
|
"001": [
|
|
1024
1047
|
"H",
|
|
1025
1048
|
"h"
|
|
@@ -2434,22 +2457,23 @@ var fe = {
|
|
|
2434
2457
|
"h"
|
|
2435
2458
|
]
|
|
2436
2459
|
};
|
|
2437
|
-
function
|
|
2460
|
+
function qr(e, t) {
|
|
2438
2461
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2439
2462
|
var i = e.charAt(n);
|
|
2440
2463
|
if (i === "j") {
|
|
2441
2464
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2442
2465
|
s++, n++;
|
|
2443
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a =
|
|
2466
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = Jr(t);
|
|
2444
2467
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2445
2468
|
r += l;
|
|
2446
2469
|
for (; o-- > 0; )
|
|
2447
2470
|
r = a + r;
|
|
2448
|
-
} else
|
|
2471
|
+
} else
|
|
2472
|
+
i === "J" ? r += "H" : r += i;
|
|
2449
2473
|
}
|
|
2450
2474
|
return r;
|
|
2451
2475
|
}
|
|
2452
|
-
function
|
|
2476
|
+
function Jr(e) {
|
|
2453
2477
|
var t = e.hourCycle;
|
|
2454
2478
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2455
2479
|
e.hourCycles && // @ts-ignore
|
|
@@ -2468,23 +2492,23 @@ function qr(e) {
|
|
|
2468
2492
|
}
|
|
2469
2493
|
var r = e.language, n;
|
|
2470
2494
|
r !== "root" && (n = e.maximize().region);
|
|
2471
|
-
var i =
|
|
2495
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2472
2496
|
return i[0];
|
|
2473
2497
|
}
|
|
2474
|
-
var
|
|
2498
|
+
var Be, Yr = new RegExp("^".concat(Pt.source, "*")), Kr = new RegExp("".concat(Pt.source, "*$"));
|
|
2475
2499
|
function _(e, t) {
|
|
2476
2500
|
return { start: e, end: t };
|
|
2477
2501
|
}
|
|
2478
|
-
var
|
|
2502
|
+
var en = !!String.prototype.startsWith && "_a".startsWith("a", 1), tn = !!String.fromCodePoint, rn = !!Object.fromEntries, nn = !!String.prototype.codePointAt, sn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, an = !!Number.isSafeInteger, un = an ? Number.isSafeInteger : function(e) {
|
|
2479
2503
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2480
2504
|
}, Me = !0;
|
|
2481
2505
|
try {
|
|
2482
|
-
var
|
|
2483
|
-
Me = ((
|
|
2506
|
+
var hn = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2507
|
+
Me = ((Be = hn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
2484
2508
|
} catch {
|
|
2485
2509
|
Me = !1;
|
|
2486
2510
|
}
|
|
2487
|
-
var
|
|
2511
|
+
var rt = en ? (
|
|
2488
2512
|
// Native
|
|
2489
2513
|
function(t, r, n) {
|
|
2490
2514
|
return t.startsWith(r, n);
|
|
@@ -2494,7 +2518,7 @@ var et = Kr ? (
|
|
|
2494
2518
|
function(t, r, n) {
|
|
2495
2519
|
return t.slice(n, n + r.length) === r;
|
|
2496
2520
|
}
|
|
2497
|
-
), $e =
|
|
2521
|
+
), $e = tn ? String.fromCodePoint : (
|
|
2498
2522
|
// IE11
|
|
2499
2523
|
function() {
|
|
2500
2524
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2506,9 +2530,9 @@ var et = Kr ? (
|
|
|
2506
2530
|
}
|
|
2507
2531
|
return n;
|
|
2508
2532
|
}
|
|
2509
|
-
),
|
|
2533
|
+
), nt = (
|
|
2510
2534
|
// native
|
|
2511
|
-
|
|
2535
|
+
rn ? Object.fromEntries : (
|
|
2512
2536
|
// Ponyfill
|
|
2513
2537
|
function(t) {
|
|
2514
2538
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2518,7 +2542,7 @@ var et = Kr ? (
|
|
|
2518
2542
|
return r;
|
|
2519
2543
|
}
|
|
2520
2544
|
)
|
|
2521
|
-
),
|
|
2545
|
+
), Mt = nn ? (
|
|
2522
2546
|
// Native
|
|
2523
2547
|
function(t, r) {
|
|
2524
2548
|
return t.codePointAt(r);
|
|
@@ -2532,7 +2556,7 @@ var et = Kr ? (
|
|
|
2532
2556
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2533
2557
|
}
|
|
2534
2558
|
}
|
|
2535
|
-
),
|
|
2559
|
+
), ln = sn ? (
|
|
2536
2560
|
// Native
|
|
2537
2561
|
function(t) {
|
|
2538
2562
|
return t.trimStart();
|
|
@@ -2540,9 +2564,9 @@ var et = Kr ? (
|
|
|
2540
2564
|
) : (
|
|
2541
2565
|
// Ponyfill
|
|
2542
2566
|
function(t) {
|
|
2543
|
-
return t.replace(
|
|
2567
|
+
return t.replace(Yr, "");
|
|
2544
2568
|
}
|
|
2545
|
-
),
|
|
2569
|
+
), cn = on ? (
|
|
2546
2570
|
// Native
|
|
2547
2571
|
function(t) {
|
|
2548
2572
|
return t.trimEnd();
|
|
@@ -2550,26 +2574,26 @@ var et = Kr ? (
|
|
|
2550
2574
|
) : (
|
|
2551
2575
|
// Ponyfill
|
|
2552
2576
|
function(t) {
|
|
2553
|
-
return t.replace(
|
|
2577
|
+
return t.replace(Kr, "");
|
|
2554
2578
|
}
|
|
2555
2579
|
);
|
|
2556
|
-
function
|
|
2580
|
+
function $t(e, t) {
|
|
2557
2581
|
return new RegExp(e, t);
|
|
2558
2582
|
}
|
|
2559
2583
|
var Re;
|
|
2560
2584
|
if (Me) {
|
|
2561
|
-
var
|
|
2585
|
+
var it = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2562
2586
|
Re = function(t, r) {
|
|
2563
2587
|
var n;
|
|
2564
|
-
|
|
2565
|
-
var i =
|
|
2588
|
+
it.lastIndex = r;
|
|
2589
|
+
var i = it.exec(t);
|
|
2566
2590
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2567
2591
|
};
|
|
2568
2592
|
} else
|
|
2569
2593
|
Re = function(t, r) {
|
|
2570
2594
|
for (var n = []; ; ) {
|
|
2571
|
-
var i =
|
|
2572
|
-
if (i === void 0 ||
|
|
2595
|
+
var i = Mt(t, r);
|
|
2596
|
+
if (i === void 0 || Rt(i) || pn(i))
|
|
2573
2597
|
break;
|
|
2574
2598
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2575
2599
|
}
|
|
@@ -2657,7 +2681,7 @@ var fn = (
|
|
|
2657
2681
|
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2658
2682
|
}, e.prototype.parseTagName = function() {
|
|
2659
2683
|
var t = this.offset();
|
|
2660
|
-
for (this.bump(); !this.isEOF() &&
|
|
2684
|
+
for (this.bump(); !this.isEOF() && mn(this.char()); )
|
|
2661
2685
|
this.bump();
|
|
2662
2686
|
return this.message.slice(t, this.offset());
|
|
2663
2687
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2686,7 +2710,7 @@ var fn = (
|
|
|
2686
2710
|
};
|
|
2687
2711
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2688
2712
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2689
|
-
!
|
|
2713
|
+
!gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2690
2714
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2691
2715
|
if (this.isEOF() || this.char() !== 39)
|
|
2692
2716
|
return null;
|
|
@@ -2770,40 +2794,40 @@ var fn = (
|
|
|
2770
2794
|
var a = null;
|
|
2771
2795
|
if (this.bumpIf(",")) {
|
|
2772
2796
|
this.bumpSpace();
|
|
2773
|
-
var h = this.clonePosition(),
|
|
2774
|
-
if (
|
|
2775
|
-
return
|
|
2776
|
-
var
|
|
2777
|
-
if (
|
|
2797
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2798
|
+
if (f.err)
|
|
2799
|
+
return f;
|
|
2800
|
+
var c = cn(f.val);
|
|
2801
|
+
if (c.length === 0)
|
|
2778
2802
|
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2779
2803
|
var p = _(h, this.clonePosition());
|
|
2780
|
-
a = { style:
|
|
2804
|
+
a = { style: c, styleLocation: p };
|
|
2781
2805
|
}
|
|
2782
2806
|
var d = this.tryParseArgumentClose(i);
|
|
2783
2807
|
if (d.err)
|
|
2784
2808
|
return d;
|
|
2785
2809
|
var g = _(i, this.clonePosition());
|
|
2786
|
-
if (a &&
|
|
2787
|
-
var
|
|
2810
|
+
if (a && rt(a?.style, "::", 0)) {
|
|
2811
|
+
var E = ln(a.style.slice(2));
|
|
2788
2812
|
if (u === "number") {
|
|
2789
|
-
var
|
|
2790
|
-
return
|
|
2791
|
-
val: { type: T.number, value: n, location: g, style:
|
|
2813
|
+
var f = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2814
|
+
return f.err ? f : {
|
|
2815
|
+
val: { type: T.number, value: n, location: g, style: f.val },
|
|
2792
2816
|
err: null
|
|
2793
2817
|
};
|
|
2794
2818
|
} else {
|
|
2795
|
-
if (
|
|
2819
|
+
if (E.length === 0)
|
|
2796
2820
|
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2797
|
-
var m =
|
|
2798
|
-
this.locale && (m =
|
|
2799
|
-
var
|
|
2821
|
+
var m = E;
|
|
2822
|
+
this.locale && (m = qr(E, this.locale));
|
|
2823
|
+
var c = {
|
|
2800
2824
|
type: Z.dateTime,
|
|
2801
2825
|
pattern: m,
|
|
2802
2826
|
location: a.styleLocation,
|
|
2803
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2827
|
+
parsedOptions: this.shouldParseSkeletons ? kr(m) : {}
|
|
2804
2828
|
}, C = u === "date" ? T.date : T.time;
|
|
2805
2829
|
return {
|
|
2806
|
-
val: { type: C, value: n, location: g, style:
|
|
2830
|
+
val: { type: C, value: n, location: g, style: c },
|
|
2807
2831
|
err: null
|
|
2808
2832
|
};
|
|
2809
2833
|
}
|
|
@@ -2821,19 +2845,19 @@ var fn = (
|
|
|
2821
2845
|
case "plural":
|
|
2822
2846
|
case "selectordinal":
|
|
2823
2847
|
case "select": {
|
|
2824
|
-
var
|
|
2848
|
+
var B = this.clonePosition();
|
|
2825
2849
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2826
|
-
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2850
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, x({}, B)));
|
|
2827
2851
|
this.bumpSpace();
|
|
2828
|
-
var P = this.parseIdentifierIfPossible(),
|
|
2852
|
+
var P = this.parseIdentifierIfPossible(), S = 0;
|
|
2829
2853
|
if (u !== "select" && P.value === "offset") {
|
|
2830
2854
|
if (!this.bumpIf(":"))
|
|
2831
2855
|
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2832
2856
|
this.bumpSpace();
|
|
2833
|
-
var
|
|
2834
|
-
if (
|
|
2835
|
-
return
|
|
2836
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(),
|
|
2857
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2858
|
+
if (f.err)
|
|
2859
|
+
return f;
|
|
2860
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = f.val;
|
|
2837
2861
|
}
|
|
2838
2862
|
var A = this.tryParsePluralOrSelectOptions(t, u, r, P);
|
|
2839
2863
|
if (A.err)
|
|
@@ -2846,7 +2870,7 @@ var fn = (
|
|
|
2846
2870
|
val: {
|
|
2847
2871
|
type: T.select,
|
|
2848
2872
|
value: n,
|
|
2849
|
-
options:
|
|
2873
|
+
options: nt(A.val),
|
|
2850
2874
|
location: N
|
|
2851
2875
|
},
|
|
2852
2876
|
err: null
|
|
@@ -2854,8 +2878,8 @@ var fn = (
|
|
|
2854
2878
|
val: {
|
|
2855
2879
|
type: T.plural,
|
|
2856
2880
|
value: n,
|
|
2857
|
-
options:
|
|
2858
|
-
offset:
|
|
2881
|
+
options: nt(A.val),
|
|
2882
|
+
offset: S,
|
|
2859
2883
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2860
2884
|
location: N
|
|
2861
2885
|
},
|
|
@@ -2905,7 +2929,7 @@ var fn = (
|
|
|
2905
2929
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2906
2930
|
var n = [];
|
|
2907
2931
|
try {
|
|
2908
|
-
n =
|
|
2932
|
+
n = Xr(t);
|
|
2909
2933
|
} catch {
|
|
2910
2934
|
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2911
2935
|
}
|
|
@@ -2914,19 +2938,19 @@ var fn = (
|
|
|
2914
2938
|
type: Z.number,
|
|
2915
2939
|
tokens: n,
|
|
2916
2940
|
location: r,
|
|
2917
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2941
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(n) : {}
|
|
2918
2942
|
},
|
|
2919
2943
|
err: null
|
|
2920
2944
|
};
|
|
2921
2945
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2922
2946
|
for (var s, o = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2923
2947
|
if (a.length === 0) {
|
|
2924
|
-
var
|
|
2948
|
+
var f = this.clonePosition();
|
|
2925
2949
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2926
|
-
var
|
|
2927
|
-
if (
|
|
2928
|
-
return
|
|
2929
|
-
h = _(
|
|
2950
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2951
|
+
if (c.err)
|
|
2952
|
+
return c;
|
|
2953
|
+
h = _(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
2930
2954
|
} else
|
|
2931
2955
|
break;
|
|
2932
2956
|
}
|
|
@@ -2962,7 +2986,7 @@ var fn = (
|
|
|
2962
2986
|
break;
|
|
2963
2987
|
}
|
|
2964
2988
|
var l = _(i, this.clonePosition());
|
|
2965
|
-
return s ? (o *= n,
|
|
2989
|
+
return s ? (o *= n, un(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2966
2990
|
}, e.prototype.offset = function() {
|
|
2967
2991
|
return this.position.offset;
|
|
2968
2992
|
}, e.prototype.isEOF = function() {
|
|
@@ -2977,7 +3001,7 @@ var fn = (
|
|
|
2977
3001
|
var t = this.position.offset;
|
|
2978
3002
|
if (t >= this.message.length)
|
|
2979
3003
|
throw Error("out of bound");
|
|
2980
|
-
var r =
|
|
3004
|
+
var r = Mt(this.message, t);
|
|
2981
3005
|
if (r === void 0)
|
|
2982
3006
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2983
3007
|
return r;
|
|
@@ -2996,7 +3020,7 @@ var fn = (
|
|
|
2996
3020
|
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);
|
|
2997
3021
|
}
|
|
2998
3022
|
}, e.prototype.bumpIf = function(t) {
|
|
2999
|
-
if (
|
|
3023
|
+
if (rt(this.message, t, this.offset())) {
|
|
3000
3024
|
for (var r = 0; r < t.length; r++)
|
|
3001
3025
|
this.bump();
|
|
3002
3026
|
return !0;
|
|
@@ -3018,7 +3042,7 @@ var fn = (
|
|
|
3018
3042
|
break;
|
|
3019
3043
|
}
|
|
3020
3044
|
}, e.prototype.bumpSpace = function() {
|
|
3021
|
-
for (; !this.isEOF() &&
|
|
3045
|
+
for (; !this.isEOF() && Rt(this.char()); )
|
|
3022
3046
|
this.bump();
|
|
3023
3047
|
}, e.prototype.peek = function() {
|
|
3024
3048
|
if (this.isEOF())
|
|
@@ -3031,28 +3055,29 @@ var fn = (
|
|
|
3031
3055
|
function Ue(e) {
|
|
3032
3056
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3033
3057
|
}
|
|
3034
|
-
function
|
|
3058
|
+
function gn(e) {
|
|
3035
3059
|
return Ue(e) || e === 47;
|
|
3036
3060
|
}
|
|
3037
|
-
function
|
|
3061
|
+
function mn(e) {
|
|
3038
3062
|
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;
|
|
3039
3063
|
}
|
|
3040
|
-
function
|
|
3064
|
+
function Rt(e) {
|
|
3041
3065
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3042
3066
|
}
|
|
3043
|
-
function
|
|
3067
|
+
function pn(e) {
|
|
3044
3068
|
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;
|
|
3045
3069
|
}
|
|
3046
3070
|
function De(e) {
|
|
3047
3071
|
e.forEach(function(t) {
|
|
3048
|
-
if (delete t.location,
|
|
3072
|
+
if (delete t.location, Bt(t) || St(t))
|
|
3049
3073
|
for (var r in t.options)
|
|
3050
3074
|
delete t.options[r].location, De(t.options[r].value);
|
|
3051
|
-
else
|
|
3075
|
+
else
|
|
3076
|
+
Ct(t) && Ot(t.style) || (Ht(t) || At(t)) && Ie(t.style) ? delete t.style.location : wt(t) && De(t.children);
|
|
3052
3077
|
});
|
|
3053
3078
|
}
|
|
3054
|
-
function
|
|
3055
|
-
t === void 0 && (t = {}), t =
|
|
3079
|
+
function dn(e, t) {
|
|
3080
|
+
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3056
3081
|
var r = new fn(e, t).parse();
|
|
3057
3082
|
if (r.err) {
|
|
3058
3083
|
var n = SyntaxError(y[r.err.kind]);
|
|
@@ -3064,7 +3089,7 @@ var Q;
|
|
|
3064
3089
|
(function(e) {
|
|
3065
3090
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3066
3091
|
})(Q || (Q = {}));
|
|
3067
|
-
var
|
|
3092
|
+
var xe = (
|
|
3068
3093
|
/** @class */
|
|
3069
3094
|
function(e) {
|
|
3070
3095
|
_e(t, e);
|
|
@@ -3076,7 +3101,7 @@ var Ee = (
|
|
|
3076
3101
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3077
3102
|
}, t;
|
|
3078
3103
|
}(Error)
|
|
3079
|
-
),
|
|
3104
|
+
), st = (
|
|
3080
3105
|
/** @class */
|
|
3081
3106
|
function(e) {
|
|
3082
3107
|
_e(t, e);
|
|
@@ -3084,8 +3109,8 @@ var Ee = (
|
|
|
3084
3109
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, s) || this;
|
|
3085
3110
|
}
|
|
3086
3111
|
return t;
|
|
3087
|
-
}(
|
|
3088
|
-
),
|
|
3112
|
+
}(xe)
|
|
3113
|
+
), bn = (
|
|
3089
3114
|
/** @class */
|
|
3090
3115
|
function(e) {
|
|
3091
3116
|
_e(t, e);
|
|
@@ -3093,8 +3118,8 @@ var Ee = (
|
|
|
3093
3118
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
|
|
3094
3119
|
}
|
|
3095
3120
|
return t;
|
|
3096
|
-
}(
|
|
3097
|
-
),
|
|
3121
|
+
}(xe)
|
|
3122
|
+
), yn = (
|
|
3098
3123
|
/** @class */
|
|
3099
3124
|
function(e) {
|
|
3100
3125
|
_e(t, e);
|
|
@@ -3102,22 +3127,22 @@ var Ee = (
|
|
|
3102
3127
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
|
|
3103
3128
|
}
|
|
3104
3129
|
return t;
|
|
3105
|
-
}(
|
|
3130
|
+
}(xe)
|
|
3106
3131
|
), O;
|
|
3107
3132
|
(function(e) {
|
|
3108
3133
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3109
3134
|
})(O || (O = {}));
|
|
3110
|
-
function
|
|
3135
|
+
function _n(e) {
|
|
3111
3136
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3112
3137
|
var n = t[t.length - 1];
|
|
3113
3138
|
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3114
3139
|
}, []);
|
|
3115
3140
|
}
|
|
3116
|
-
function
|
|
3141
|
+
function xn(e) {
|
|
3117
3142
|
return typeof e == "function";
|
|
3118
3143
|
}
|
|
3119
3144
|
function ge(e, t, r, n, i, s, o) {
|
|
3120
|
-
if (e.length === 1 &&
|
|
3145
|
+
if (e.length === 1 && Ye(e[0]))
|
|
3121
3146
|
return [
|
|
3122
3147
|
{
|
|
3123
3148
|
type: O.literal,
|
|
@@ -3126,105 +3151,105 @@ function ge(e, t, r, n, i, s, o) {
|
|
|
3126
3151
|
];
|
|
3127
3152
|
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3128
3153
|
var h = a[l];
|
|
3129
|
-
if (
|
|
3154
|
+
if (Ye(h)) {
|
|
3130
3155
|
u.push({
|
|
3131
3156
|
type: O.literal,
|
|
3132
3157
|
value: h.value
|
|
3133
3158
|
});
|
|
3134
3159
|
continue;
|
|
3135
3160
|
}
|
|
3136
|
-
if (
|
|
3161
|
+
if (Fr(h)) {
|
|
3137
3162
|
typeof s == "number" && u.push({
|
|
3138
3163
|
type: O.literal,
|
|
3139
3164
|
value: r.getNumberFormat(t).format(s)
|
|
3140
3165
|
});
|
|
3141
3166
|
continue;
|
|
3142
3167
|
}
|
|
3143
|
-
var
|
|
3144
|
-
if (!(i &&
|
|
3145
|
-
throw new
|
|
3146
|
-
var
|
|
3147
|
-
if (
|
|
3148
|
-
(!
|
|
3149
|
-
type: typeof
|
|
3150
|
-
value:
|
|
3168
|
+
var f = h.value;
|
|
3169
|
+
if (!(i && f in i))
|
|
3170
|
+
throw new yn(f, o);
|
|
3171
|
+
var c = i[f];
|
|
3172
|
+
if (Gr(h)) {
|
|
3173
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
|
3174
|
+
type: typeof c == "string" ? O.literal : O.object,
|
|
3175
|
+
value: c
|
|
3151
3176
|
});
|
|
3152
3177
|
continue;
|
|
3153
3178
|
}
|
|
3154
|
-
if (
|
|
3179
|
+
if (Ht(h)) {
|
|
3155
3180
|
var p = typeof h.style == "string" ? n.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
|
|
3156
3181
|
u.push({
|
|
3157
3182
|
type: O.literal,
|
|
3158
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3183
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3159
3184
|
});
|
|
3160
3185
|
continue;
|
|
3161
3186
|
}
|
|
3162
|
-
if (
|
|
3187
|
+
if (At(h)) {
|
|
3163
3188
|
var p = typeof h.style == "string" ? n.time[h.style] : Ie(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3164
3189
|
u.push({
|
|
3165
3190
|
type: O.literal,
|
|
3166
|
-
value: r.getDateTimeFormat(t, p).format(
|
|
3191
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3167
3192
|
});
|
|
3168
3193
|
continue;
|
|
3169
3194
|
}
|
|
3170
|
-
if (
|
|
3171
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3172
|
-
p && p.scale && (
|
|
3195
|
+
if (Ct(h)) {
|
|
3196
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Ot(h.style) ? h.style.parsedOptions : void 0;
|
|
3197
|
+
p && p.scale && (c = c * (p.scale || 1)), u.push({
|
|
3173
3198
|
type: O.literal,
|
|
3174
|
-
value: r.getNumberFormat(t, p).format(
|
|
3199
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3175
3200
|
});
|
|
3176
3201
|
continue;
|
|
3177
3202
|
}
|
|
3178
|
-
if (
|
|
3179
|
-
var d = h.children, g = h.value,
|
|
3180
|
-
if (!
|
|
3181
|
-
throw new
|
|
3182
|
-
var m = ge(d, t, r, n, i, s), C =
|
|
3183
|
-
return
|
|
3203
|
+
if (wt(h)) {
|
|
3204
|
+
var d = h.children, g = h.value, E = i[g];
|
|
3205
|
+
if (!xn(E))
|
|
3206
|
+
throw new bn(g, "function", o);
|
|
3207
|
+
var m = ge(d, t, r, n, i, s), C = E(m.map(function(S) {
|
|
3208
|
+
return S.value;
|
|
3184
3209
|
}));
|
|
3185
|
-
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(
|
|
3210
|
+
Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(S) {
|
|
3186
3211
|
return {
|
|
3187
|
-
type: typeof
|
|
3188
|
-
value:
|
|
3212
|
+
type: typeof S == "string" ? O.literal : O.object,
|
|
3213
|
+
value: S
|
|
3189
3214
|
};
|
|
3190
3215
|
}));
|
|
3191
3216
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var
|
|
3194
|
-
if (!
|
|
3195
|
-
throw new
|
|
3196
|
-
u.push.apply(u, ge(
|
|
3217
|
+
if (Bt(h)) {
|
|
3218
|
+
var B = h.options[c] || h.options.other;
|
|
3219
|
+
if (!B)
|
|
3220
|
+
throw new st(h.value, c, Object.keys(h.options), o);
|
|
3221
|
+
u.push.apply(u, ge(B.value, t, r, n, i));
|
|
3197
3222
|
continue;
|
|
3198
3223
|
}
|
|
3199
|
-
if (
|
|
3200
|
-
var
|
|
3201
|
-
if (!
|
|
3224
|
+
if (St(h)) {
|
|
3225
|
+
var B = h.options["=".concat(c)];
|
|
3226
|
+
if (!B) {
|
|
3202
3227
|
if (!Intl.PluralRules)
|
|
3203
|
-
throw new
|
|
3228
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3204
3229
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3205
3230
|
`, Q.MISSING_INTL_API, o);
|
|
3206
|
-
var P = r.getPluralRules(t, { type: h.pluralType }).select(
|
|
3207
|
-
|
|
3231
|
+
var P = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3232
|
+
B = h.options[P] || h.options.other;
|
|
3208
3233
|
}
|
|
3209
|
-
if (!
|
|
3210
|
-
throw new
|
|
3211
|
-
u.push.apply(u, ge(
|
|
3234
|
+
if (!B)
|
|
3235
|
+
throw new st(h.value, c, Object.keys(h.options), o);
|
|
3236
|
+
u.push.apply(u, ge(B.value, t, r, n, i, c - (h.offset || 0)));
|
|
3212
3237
|
continue;
|
|
3213
3238
|
}
|
|
3214
3239
|
}
|
|
3215
|
-
return
|
|
3240
|
+
return _n(u);
|
|
3216
3241
|
}
|
|
3217
3242
|
function En(e, t) {
|
|
3218
|
-
return t ?
|
|
3219
|
-
return r[n] =
|
|
3243
|
+
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3244
|
+
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3220
3245
|
}, {})) : e;
|
|
3221
3246
|
}
|
|
3222
|
-
function
|
|
3247
|
+
function vn(e, t) {
|
|
3223
3248
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3224
3249
|
return r[n] = En(e[n], t[n]), r;
|
|
3225
|
-
},
|
|
3250
|
+
}, x({}, e)) : e;
|
|
3226
3251
|
}
|
|
3227
|
-
function
|
|
3252
|
+
function Se(e) {
|
|
3228
3253
|
return {
|
|
3229
3254
|
create: function() {
|
|
3230
3255
|
return {
|
|
@@ -3238,7 +3263,7 @@ function Be(e) {
|
|
|
3238
3263
|
}
|
|
3239
3264
|
};
|
|
3240
3265
|
}
|
|
3241
|
-
function
|
|
3266
|
+
function Tn(e) {
|
|
3242
3267
|
return e === void 0 && (e = {
|
|
3243
3268
|
number: {},
|
|
3244
3269
|
dateTime: {},
|
|
@@ -3249,7 +3274,7 @@ function vn(e) {
|
|
|
3249
3274
|
r[n] = arguments[n];
|
|
3250
3275
|
return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3251
3276
|
}, {
|
|
3252
|
-
cache:
|
|
3277
|
+
cache: Se(e.number),
|
|
3253
3278
|
strategy: Ae.variadic
|
|
3254
3279
|
}),
|
|
3255
3280
|
getDateTimeFormat: He(function() {
|
|
@@ -3257,7 +3282,7 @@ function vn(e) {
|
|
|
3257
3282
|
r[n] = arguments[n];
|
|
3258
3283
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3259
3284
|
}, {
|
|
3260
|
-
cache:
|
|
3285
|
+
cache: Se(e.dateTime),
|
|
3261
3286
|
strategy: Ae.variadic
|
|
3262
3287
|
}),
|
|
3263
3288
|
getPluralRules: He(function() {
|
|
@@ -3265,12 +3290,12 @@ function vn(e) {
|
|
|
3265
3290
|
r[n] = arguments[n];
|
|
3266
3291
|
return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3267
3292
|
}, {
|
|
3268
|
-
cache:
|
|
3293
|
+
cache: Se(e.pluralRules),
|
|
3269
3294
|
strategy: Ae.variadic
|
|
3270
3295
|
})
|
|
3271
3296
|
};
|
|
3272
3297
|
}
|
|
3273
|
-
var
|
|
3298
|
+
var Cn = (
|
|
3274
3299
|
/** @class */
|
|
3275
3300
|
function() {
|
|
3276
3301
|
function e(t, r, n, i) {
|
|
@@ -3284,8 +3309,8 @@ var Tn = (
|
|
|
3284
3309
|
var a = s.formatToParts(l);
|
|
3285
3310
|
if (a.length === 1)
|
|
3286
3311
|
return a[0].value;
|
|
3287
|
-
var h = a.reduce(function(
|
|
3288
|
-
return !
|
|
3312
|
+
var h = a.reduce(function(f, c) {
|
|
3313
|
+
return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3289
3314
|
}, []);
|
|
3290
3315
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3291
3316
|
}, this.formatToParts = function(l) {
|
|
@@ -3302,13 +3327,13 @@ var Tn = (
|
|
|
3302
3327
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3303
3328
|
var o = i || {};
|
|
3304
3329
|
o.formatters;
|
|
3305
|
-
var u =
|
|
3306
|
-
this.ast = e.__parse(t,
|
|
3330
|
+
var u = Lr(o, ["formatters"]);
|
|
3331
|
+
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3307
3332
|
} else
|
|
3308
3333
|
this.ast = t;
|
|
3309
3334
|
if (!Array.isArray(this.ast))
|
|
3310
3335
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3311
|
-
this.formats =
|
|
3336
|
+
this.formats = vn(e.formats, n), this.formatters = i && i.formatters || Tn(this.formatterCache);
|
|
3312
3337
|
}
|
|
3313
3338
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3314
3339
|
get: function() {
|
|
@@ -3321,7 +3346,7 @@ var Tn = (
|
|
|
3321
3346
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3322
3347
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3323
3348
|
}
|
|
3324
|
-
}, e.__parse =
|
|
3349
|
+
}, e.__parse = dn, e.formats = {
|
|
3325
3350
|
number: {
|
|
3326
3351
|
integer: {
|
|
3327
3352
|
maximumFractionDigits: 0
|
|
@@ -3382,7 +3407,7 @@ var Tn = (
|
|
|
3382
3407
|
}, e;
|
|
3383
3408
|
}()
|
|
3384
3409
|
);
|
|
3385
|
-
function
|
|
3410
|
+
function Hn(e, t) {
|
|
3386
3411
|
if (t == null)
|
|
3387
3412
|
return;
|
|
3388
3413
|
if (t in e)
|
|
@@ -3403,92 +3428,92 @@ function Cn(e, t) {
|
|
|
3403
3428
|
n = void 0;
|
|
3404
3429
|
return n;
|
|
3405
3430
|
}
|
|
3406
|
-
const U = {},
|
|
3431
|
+
const U = {}, An = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), Ut = (e, t) => {
|
|
3407
3432
|
if (t == null)
|
|
3408
3433
|
return;
|
|
3409
3434
|
if (t in U && e in U[t])
|
|
3410
3435
|
return U[t][e];
|
|
3411
|
-
const r =
|
|
3436
|
+
const r = Ee(t);
|
|
3412
3437
|
for (let n = 0; n < r.length; n++) {
|
|
3413
3438
|
const i = r[n], s = Sn(i, e);
|
|
3414
3439
|
if (s)
|
|
3415
|
-
return
|
|
3440
|
+
return An(e, t, s);
|
|
3416
3441
|
}
|
|
3417
3442
|
};
|
|
3418
|
-
let
|
|
3443
|
+
let Xe;
|
|
3419
3444
|
const ae = ye({});
|
|
3420
|
-
function
|
|
3421
|
-
return
|
|
3445
|
+
function Bn(e) {
|
|
3446
|
+
return Xe[e] || null;
|
|
3422
3447
|
}
|
|
3423
|
-
function
|
|
3424
|
-
return e in
|
|
3448
|
+
function Dt(e) {
|
|
3449
|
+
return e in Xe;
|
|
3425
3450
|
}
|
|
3426
3451
|
function Sn(e, t) {
|
|
3427
|
-
if (!
|
|
3452
|
+
if (!Dt(e))
|
|
3428
3453
|
return null;
|
|
3429
|
-
const r =
|
|
3430
|
-
return
|
|
3454
|
+
const r = Bn(e);
|
|
3455
|
+
return Hn(r, t);
|
|
3431
3456
|
}
|
|
3432
|
-
function
|
|
3457
|
+
function wn(e) {
|
|
3433
3458
|
if (e == null)
|
|
3434
3459
|
return;
|
|
3435
|
-
const t =
|
|
3460
|
+
const t = Ee(e);
|
|
3436
3461
|
for (let r = 0; r < t.length; r++) {
|
|
3437
3462
|
const n = t[r];
|
|
3438
|
-
if (
|
|
3463
|
+
if (Dt(n))
|
|
3439
3464
|
return n;
|
|
3440
3465
|
}
|
|
3441
3466
|
}
|
|
3442
|
-
function
|
|
3443
|
-
delete U[e], ae.update((r) => (r[e] =
|
|
3467
|
+
function Gt(e, ...t) {
|
|
3468
|
+
delete U[e], ae.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
|
|
3444
3469
|
}
|
|
3445
3470
|
Y(
|
|
3446
3471
|
[ae],
|
|
3447
3472
|
([e]) => Object.keys(e)
|
|
3448
3473
|
);
|
|
3449
|
-
ae.subscribe((e) =>
|
|
3474
|
+
ae.subscribe((e) => Xe = e);
|
|
3450
3475
|
const me = {};
|
|
3451
|
-
function
|
|
3476
|
+
function On(e, t) {
|
|
3452
3477
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3453
3478
|
}
|
|
3454
|
-
function
|
|
3479
|
+
function Ft(e) {
|
|
3455
3480
|
return me[e];
|
|
3456
3481
|
}
|
|
3457
|
-
function
|
|
3458
|
-
return
|
|
3459
|
-
const r =
|
|
3482
|
+
function Pn(e) {
|
|
3483
|
+
return Ee(e).map((t) => {
|
|
3484
|
+
const r = Ft(t);
|
|
3460
3485
|
return [t, r ? [...r] : []];
|
|
3461
3486
|
}).filter(([, t]) => t.length > 0);
|
|
3462
3487
|
}
|
|
3463
3488
|
function Ge(e) {
|
|
3464
|
-
return e == null ? !1 :
|
|
3489
|
+
return e == null ? !1 : Ee(e).some(
|
|
3465
3490
|
(t) => {
|
|
3466
3491
|
var r;
|
|
3467
|
-
return (r =
|
|
3492
|
+
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3468
3493
|
}
|
|
3469
3494
|
);
|
|
3470
3495
|
}
|
|
3471
|
-
function
|
|
3496
|
+
function Nn(e, t) {
|
|
3472
3497
|
return Promise.all(
|
|
3473
|
-
t.map((n) => (
|
|
3474
|
-
).then((n) =>
|
|
3498
|
+
t.map((n) => (On(e, n), n().then((i) => i.default || i)))
|
|
3499
|
+
).then((n) => Gt(e, ...n));
|
|
3475
3500
|
}
|
|
3476
3501
|
const te = {};
|
|
3477
|
-
function
|
|
3502
|
+
function jt(e) {
|
|
3478
3503
|
if (!Ge(e))
|
|
3479
3504
|
return e in te ? te[e] : Promise.resolve();
|
|
3480
|
-
const t =
|
|
3505
|
+
const t = Pn(e);
|
|
3481
3506
|
return te[e] = Promise.all(
|
|
3482
3507
|
t.map(
|
|
3483
|
-
([r, n]) =>
|
|
3508
|
+
([r, n]) => Nn(r, n)
|
|
3484
3509
|
)
|
|
3485
3510
|
).then(() => {
|
|
3486
3511
|
if (Ge(e))
|
|
3487
|
-
return
|
|
3512
|
+
return jt(e);
|
|
3488
3513
|
delete te[e];
|
|
3489
3514
|
}), te[e];
|
|
3490
3515
|
}
|
|
3491
|
-
const
|
|
3516
|
+
const Ln = {
|
|
3492
3517
|
number: {
|
|
3493
3518
|
scientific: { notation: "scientific" },
|
|
3494
3519
|
engineering: { notation: "engineering" },
|
|
@@ -3517,34 +3542,34 @@ const Nn = {
|
|
|
3517
3542
|
timeZoneName: "short"
|
|
3518
3543
|
}
|
|
3519
3544
|
}
|
|
3520
|
-
},
|
|
3545
|
+
}, In = {
|
|
3521
3546
|
fallbackLocale: null,
|
|
3522
3547
|
loadingDelay: 200,
|
|
3523
|
-
formats:
|
|
3548
|
+
formats: Ln,
|
|
3524
3549
|
warnOnMissingMessages: !0,
|
|
3525
3550
|
handleMissingMessage: void 0,
|
|
3526
3551
|
ignoreTag: !0
|
|
3527
|
-
},
|
|
3552
|
+
}, Mn = In;
|
|
3528
3553
|
function q() {
|
|
3529
|
-
return
|
|
3554
|
+
return Mn;
|
|
3530
3555
|
}
|
|
3531
3556
|
const we = ye(!1);
|
|
3532
|
-
var
|
|
3557
|
+
var $n = Object.defineProperty, Rn = Object.defineProperties, Un = Object.getOwnPropertyDescriptors, ot = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3533
3558
|
for (var r in t || (t = {}))
|
|
3534
|
-
|
|
3535
|
-
if (
|
|
3536
|
-
for (var r of
|
|
3537
|
-
|
|
3559
|
+
Dn.call(t, r) && at(e, r, t[r]);
|
|
3560
|
+
if (ot)
|
|
3561
|
+
for (var r of ot(t))
|
|
3562
|
+
Gn.call(t, r) && at(e, r, t[r]);
|
|
3538
3563
|
return e;
|
|
3539
|
-
},
|
|
3564
|
+
}, jn = (e, t) => Rn(e, Un(t));
|
|
3540
3565
|
let Fe;
|
|
3541
3566
|
const de = ye(null);
|
|
3542
|
-
function
|
|
3567
|
+
function ut(e) {
|
|
3543
3568
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3544
3569
|
}
|
|
3545
|
-
function
|
|
3546
|
-
const r =
|
|
3547
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3570
|
+
function Ee(e, t = q().fallbackLocale) {
|
|
3571
|
+
const r = ut(e);
|
|
3572
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ut(t)])] : r;
|
|
3548
3573
|
}
|
|
3549
3574
|
function j() {
|
|
3550
3575
|
return Fe ?? void 0;
|
|
@@ -3552,22 +3577,22 @@ function j() {
|
|
|
3552
3577
|
de.subscribe((e) => {
|
|
3553
3578
|
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3554
3579
|
});
|
|
3555
|
-
const
|
|
3556
|
-
if (e &&
|
|
3580
|
+
const kn = (e) => {
|
|
3581
|
+
if (e && wn(e) && Ge(e)) {
|
|
3557
3582
|
const { loadingDelay: t } = q();
|
|
3558
3583
|
let r;
|
|
3559
3584
|
return typeof window < "u" && j() != null && t ? r = window.setTimeout(
|
|
3560
3585
|
() => we.set(!0),
|
|
3561
3586
|
t
|
|
3562
|
-
) : we.set(!0),
|
|
3587
|
+
) : we.set(!0), jt(e).then(() => {
|
|
3563
3588
|
de.set(e);
|
|
3564
3589
|
}).finally(() => {
|
|
3565
3590
|
clearTimeout(r), we.set(!1);
|
|
3566
3591
|
});
|
|
3567
3592
|
}
|
|
3568
3593
|
return de.set(e);
|
|
3569
|
-
}, K = Fn(
|
|
3570
|
-
set:
|
|
3594
|
+
}, K = jn(Fn({}, de), {
|
|
3595
|
+
set: kn
|
|
3571
3596
|
}), ve = (e) => {
|
|
3572
3597
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3573
3598
|
return (n) => {
|
|
@@ -3575,20 +3600,20 @@ const jn = (e) => {
|
|
|
3575
3600
|
return i in t ? t[i] : t[i] = e(n);
|
|
3576
3601
|
};
|
|
3577
3602
|
};
|
|
3578
|
-
var
|
|
3603
|
+
var Vn = Object.defineProperty, be = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
3579
3604
|
for (var r in t || (t = {}))
|
|
3580
|
-
|
|
3605
|
+
kt.call(t, r) && ht(e, r, t[r]);
|
|
3581
3606
|
if (be)
|
|
3582
3607
|
for (var r of be(t))
|
|
3583
|
-
|
|
3608
|
+
Vt.call(t, r) && ht(e, r, t[r]);
|
|
3584
3609
|
return e;
|
|
3585
3610
|
}, ee = (e, t) => {
|
|
3586
3611
|
var r = {};
|
|
3587
3612
|
for (var n in e)
|
|
3588
|
-
|
|
3613
|
+
kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3589
3614
|
if (e != null && be)
|
|
3590
3615
|
for (var n of be(e))
|
|
3591
|
-
t.indexOf(n) < 0 &&
|
|
3616
|
+
t.indexOf(n) < 0 && Vt.call(e, n) && (r[n] = e[n]);
|
|
3592
3617
|
return r;
|
|
3593
3618
|
};
|
|
3594
3619
|
const se = (e, t) => {
|
|
@@ -3596,21 +3621,21 @@ const se = (e, t) => {
|
|
|
3596
3621
|
if (e in r && t in r[e])
|
|
3597
3622
|
return r[e][t];
|
|
3598
3623
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3599
|
-
},
|
|
3624
|
+
}, Xn = ve(
|
|
3600
3625
|
(e) => {
|
|
3601
3626
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3602
3627
|
if (r == null)
|
|
3603
3628
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3604
3629
|
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3605
3630
|
}
|
|
3606
|
-
),
|
|
3631
|
+
), zn = ve(
|
|
3607
3632
|
(e) => {
|
|
3608
3633
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3609
3634
|
if (r == null)
|
|
3610
3635
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3611
3636
|
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3612
3637
|
}
|
|
3613
|
-
),
|
|
3638
|
+
), Wn = ve(
|
|
3614
3639
|
(e) => {
|
|
3615
3640
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3616
3641
|
if (r == null)
|
|
@@ -3619,33 +3644,33 @@ const se = (e, t) => {
|
|
|
3619
3644
|
);
|
|
3620
3645
|
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3621
3646
|
}
|
|
3622
|
-
),
|
|
3647
|
+
), Zn = (e = {}) => {
|
|
3623
3648
|
var t = e, {
|
|
3624
3649
|
locale: r = j()
|
|
3625
3650
|
} = t, n = ee(t, [
|
|
3626
3651
|
"locale"
|
|
3627
3652
|
]);
|
|
3628
|
-
return
|
|
3629
|
-
},
|
|
3653
|
+
return Xn(ze({ locale: r }, n));
|
|
3654
|
+
}, Qn = (e = {}) => {
|
|
3630
3655
|
var t = e, {
|
|
3631
3656
|
locale: r = j()
|
|
3632
3657
|
} = t, n = ee(t, [
|
|
3633
3658
|
"locale"
|
|
3634
3659
|
]);
|
|
3635
|
-
return
|
|
3636
|
-
},
|
|
3660
|
+
return zn(ze({ locale: r }, n));
|
|
3661
|
+
}, qn = (e = {}) => {
|
|
3637
3662
|
var t = e, {
|
|
3638
3663
|
locale: r = j()
|
|
3639
3664
|
} = t, n = ee(t, [
|
|
3640
3665
|
"locale"
|
|
3641
3666
|
]);
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3667
|
+
return Wn(ze({ locale: r }, n));
|
|
3668
|
+
}, Jn = ve(
|
|
3644
3669
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3645
|
-
(e, t = j()) => new
|
|
3670
|
+
(e, t = j()) => new Cn(e, t, q().formats, {
|
|
3646
3671
|
ignoreTag: q().ignoreTag
|
|
3647
3672
|
})
|
|
3648
|
-
),
|
|
3673
|
+
), Yn = (e, t = {}) => {
|
|
3649
3674
|
var r, n, i, s;
|
|
3650
3675
|
let o = t;
|
|
3651
3676
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -3658,7 +3683,7 @@ const se = (e, t) => {
|
|
|
3658
3683
|
throw new Error(
|
|
3659
3684
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3660
3685
|
);
|
|
3661
|
-
let h =
|
|
3686
|
+
let h = Ut(e, l);
|
|
3662
3687
|
if (!h)
|
|
3663
3688
|
h = (s = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3664
3689
|
else if (typeof h != "string")
|
|
@@ -3667,28 +3692,28 @@ const se = (e, t) => {
|
|
|
3667
3692
|
), h;
|
|
3668
3693
|
if (!u)
|
|
3669
3694
|
return h;
|
|
3670
|
-
let
|
|
3695
|
+
let f = h;
|
|
3671
3696
|
try {
|
|
3672
|
-
|
|
3673
|
-
} catch (
|
|
3674
|
-
|
|
3697
|
+
f = Jn(h, l).format(u);
|
|
3698
|
+
} catch (c) {
|
|
3699
|
+
c instanceof Error && console.warn(
|
|
3675
3700
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3676
|
-
|
|
3701
|
+
c.message
|
|
3677
3702
|
);
|
|
3678
3703
|
}
|
|
3679
|
-
return
|
|
3680
|
-
},
|
|
3681
|
-
Y([K], () => Yn);
|
|
3704
|
+
return f;
|
|
3705
|
+
}, Kn = (e, t) => qn(t).format(e), ei = (e, t) => Qn(t).format(e), ti = (e, t) => Zn(t).format(e), ri = (e, t = j()) => Ut(e, t), ni = Y([K, ae], () => Yn);
|
|
3682
3706
|
Y([K], () => Kn);
|
|
3683
3707
|
Y([K], () => ei);
|
|
3684
|
-
Y([K
|
|
3685
|
-
|
|
3708
|
+
Y([K], () => ti);
|
|
3709
|
+
Y([K, ae], () => ri);
|
|
3710
|
+
function ii(e, t) {
|
|
3686
3711
|
if (e) {
|
|
3687
3712
|
const r = document.createElement("style");
|
|
3688
3713
|
r.innerHTML = t, e.appendChild(r);
|
|
3689
3714
|
}
|
|
3690
3715
|
}
|
|
3691
|
-
function
|
|
3716
|
+
function si(e, t) {
|
|
3692
3717
|
const r = new URL(t);
|
|
3693
3718
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3694
3719
|
const i = document.createElement("style");
|
|
@@ -3697,7 +3722,7 @@ function ii(e, t) {
|
|
|
3697
3722
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3698
3723
|
});
|
|
3699
3724
|
}
|
|
3700
|
-
function
|
|
3725
|
+
function oi(e, t, r) {
|
|
3701
3726
|
if (window.emMessageBus) {
|
|
3702
3727
|
const n = document.createElement("style");
|
|
3703
3728
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3705,13 +3730,13 @@ function si(e, t, r) {
|
|
|
3705
3730
|
});
|
|
3706
3731
|
}
|
|
3707
3732
|
}
|
|
3708
|
-
function
|
|
3709
|
-
|
|
3733
|
+
function lt(e, t) {
|
|
3734
|
+
Gt(e, t);
|
|
3710
3735
|
}
|
|
3711
|
-
function
|
|
3736
|
+
function ai(e) {
|
|
3712
3737
|
K.set(e);
|
|
3713
3738
|
}
|
|
3714
|
-
const
|
|
3739
|
+
const ct = {
|
|
3715
3740
|
en: {
|
|
3716
3741
|
topCategories: "Top Categories",
|
|
3717
3742
|
otherCategories: "Other Categories",
|
|
@@ -3821,75 +3846,75 @@ const ht = {
|
|
|
3821
3846
|
games: "games"
|
|
3822
3847
|
}
|
|
3823
3848
|
};
|
|
3824
|
-
function
|
|
3825
|
-
|
|
3849
|
+
function ui(e) {
|
|
3850
|
+
qt(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}");
|
|
3826
3851
|
}
|
|
3827
|
-
function
|
|
3852
|
+
function ft(e, t, r) {
|
|
3828
3853
|
const n = e.slice();
|
|
3829
3854
|
return n[23] = t[r], n;
|
|
3830
3855
|
}
|
|
3831
|
-
function
|
|
3856
|
+
function gt(e, t, r) {
|
|
3832
3857
|
const n = e.slice();
|
|
3833
3858
|
return n[23] = t[r], n;
|
|
3834
3859
|
}
|
|
3835
|
-
function
|
|
3860
|
+
function hi(e) {
|
|
3836
3861
|
let t, r, n = (
|
|
3837
3862
|
/*$_*/
|
|
3838
3863
|
e[5]("topCategories") + ""
|
|
3839
3864
|
), i, s, o, u, l = (
|
|
3840
3865
|
/*$_*/
|
|
3841
3866
|
e[5]("otherCategories") + ""
|
|
3842
|
-
), a, h,
|
|
3867
|
+
), a, h, f = le(
|
|
3843
3868
|
/*topCategories*/
|
|
3844
3869
|
e[3]
|
|
3845
|
-
),
|
|
3846
|
-
for (let g = 0; g <
|
|
3847
|
-
|
|
3870
|
+
), c = [];
|
|
3871
|
+
for (let g = 0; g < f.length; g += 1)
|
|
3872
|
+
c[g] = mt(gt(e, f, g));
|
|
3848
3873
|
let p = le(
|
|
3849
3874
|
/*otherCategories*/
|
|
3850
3875
|
e[4]
|
|
3851
3876
|
), d = [];
|
|
3852
3877
|
for (let g = 0; g < p.length; g += 1)
|
|
3853
|
-
d[g] =
|
|
3878
|
+
d[g] = pt(ft(e, p, g));
|
|
3854
3879
|
return {
|
|
3855
3880
|
c() {
|
|
3856
3881
|
t = w("div"), r = w("h4"), i = R(n), s = $();
|
|
3857
|
-
for (let g = 0; g <
|
|
3858
|
-
|
|
3882
|
+
for (let g = 0; g < c.length; g += 1)
|
|
3883
|
+
c[g].c();
|
|
3859
3884
|
o = $(), u = w("h4"), a = R(l), h = $();
|
|
3860
3885
|
for (let g = 0; g < d.length; g += 1)
|
|
3861
3886
|
d[g].c();
|
|
3862
3887
|
H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
|
|
3863
3888
|
},
|
|
3864
|
-
m(g,
|
|
3865
|
-
J(g, t,
|
|
3866
|
-
for (let m = 0; m <
|
|
3867
|
-
|
|
3889
|
+
m(g, E) {
|
|
3890
|
+
J(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
3891
|
+
for (let m = 0; m < c.length; m += 1)
|
|
3892
|
+
c[m] && c[m].m(t, null);
|
|
3868
3893
|
v(t, o), v(t, u), v(u, a), v(t, h);
|
|
3869
3894
|
for (let m = 0; m < d.length; m += 1)
|
|
3870
3895
|
d[m] && d[m].m(t, null);
|
|
3871
3896
|
},
|
|
3872
|
-
p(g,
|
|
3873
|
-
if (
|
|
3897
|
+
p(g, E) {
|
|
3898
|
+
if (E & /*$_*/
|
|
3874
3899
|
32 && n !== (n = /*$_*/
|
|
3875
|
-
g[5]("topCategories") + "") && D(i, n),
|
|
3900
|
+
g[5]("topCategories") + "") && D(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3876
3901
|
105) {
|
|
3877
|
-
|
|
3902
|
+
f = le(
|
|
3878
3903
|
/*topCategories*/
|
|
3879
3904
|
g[3]
|
|
3880
3905
|
);
|
|
3881
3906
|
let m;
|
|
3882
|
-
for (m = 0; m <
|
|
3883
|
-
const C =
|
|
3884
|
-
|
|
3907
|
+
for (m = 0; m < f.length; m += 1) {
|
|
3908
|
+
const C = gt(g, f, m);
|
|
3909
|
+
c[m] ? c[m].p(C, E) : (c[m] = mt(C), c[m].c(), c[m].m(t, o));
|
|
3885
3910
|
}
|
|
3886
|
-
for (; m <
|
|
3887
|
-
|
|
3888
|
-
|
|
3911
|
+
for (; m < c.length; m += 1)
|
|
3912
|
+
c[m].d(1);
|
|
3913
|
+
c.length = f.length;
|
|
3889
3914
|
}
|
|
3890
|
-
if (
|
|
3915
|
+
if (E & /*$_*/
|
|
3891
3916
|
32 && l !== (l = /*$_*/
|
|
3892
|
-
g[5]("otherCategories") + "") && D(a, l),
|
|
3917
|
+
g[5]("otherCategories") + "") && D(a, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3893
3918
|
113) {
|
|
3894
3919
|
p = le(
|
|
3895
3920
|
/*otherCategories*/
|
|
@@ -3897,8 +3922,8 @@ function ui(e) {
|
|
|
3897
3922
|
);
|
|
3898
3923
|
let m;
|
|
3899
3924
|
for (m = 0; m < p.length; m += 1) {
|
|
3900
|
-
const C =
|
|
3901
|
-
d[m] ? d[m].p(C,
|
|
3925
|
+
const C = ft(g, p, m);
|
|
3926
|
+
d[m] ? d[m].p(C, E) : (d[m] = pt(C), d[m].c(), d[m].m(t, null));
|
|
3902
3927
|
}
|
|
3903
3928
|
for (; m < d.length; m += 1)
|
|
3904
3929
|
d[m].d(1);
|
|
@@ -3906,11 +3931,11 @@ function ui(e) {
|
|
|
3906
3931
|
}
|
|
3907
3932
|
},
|
|
3908
3933
|
d(g) {
|
|
3909
|
-
g && F(t),
|
|
3934
|
+
g && F(t), Qe(c, g), Qe(d, g);
|
|
3910
3935
|
}
|
|
3911
3936
|
};
|
|
3912
3937
|
}
|
|
3913
|
-
function
|
|
3938
|
+
function li(e) {
|
|
3914
3939
|
let t;
|
|
3915
3940
|
return {
|
|
3916
3941
|
c() {
|
|
@@ -3925,17 +3950,17 @@ function hi(e) {
|
|
|
3925
3950
|
}
|
|
3926
3951
|
};
|
|
3927
3952
|
}
|
|
3928
|
-
function
|
|
3953
|
+
function mt(e) {
|
|
3929
3954
|
let t, r, n, i, s, o, u, l = (
|
|
3930
3955
|
/*category*/
|
|
3931
3956
|
e[23].name + ""
|
|
3932
|
-
), a, h,
|
|
3957
|
+
), a, h, f, c = (
|
|
3933
3958
|
/*category*/
|
|
3934
3959
|
e[23].games.count + ""
|
|
3935
3960
|
), p, d, g = (
|
|
3936
3961
|
/*$_*/
|
|
3937
3962
|
e[5]("games") + ""
|
|
3938
|
-
),
|
|
3963
|
+
), E, m, C, B;
|
|
3939
3964
|
function P() {
|
|
3940
3965
|
return (
|
|
3941
3966
|
/*click_handler*/
|
|
@@ -3947,48 +3972,48 @@ function ct(e) {
|
|
|
3947
3972
|
}
|
|
3948
3973
|
return {
|
|
3949
3974
|
c() {
|
|
3950
|
-
t = w("div"), r = w("img"), s = $(), o = w("div"), u = w("p"), a = R(l), h = $(),
|
|
3975
|
+
t = w("div"), r = w("img"), s = $(), o = w("div"), u = w("p"), a = R(l), h = $(), f = w("p"), p = R(c), d = $(), E = R(g), pe(r.src, n = /*category*/
|
|
3951
3976
|
e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
3952
3977
|
e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
|
|
3953
3978
|
(e[0] === /*category*/
|
|
3954
3979
|
e[23].id ? "Active" : ""));
|
|
3955
3980
|
},
|
|
3956
|
-
m(
|
|
3957
|
-
J(
|
|
3981
|
+
m(S, A) {
|
|
3982
|
+
J(S, t, A), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, f), v(f, p), v(f, d), v(f, E), C || (B = _t(t, "click", P), C = !0);
|
|
3958
3983
|
},
|
|
3959
|
-
p(
|
|
3960
|
-
e =
|
|
3984
|
+
p(S, A) {
|
|
3985
|
+
e = S, A & /*topCategories*/
|
|
3961
3986
|
8 && !pe(r.src, n = /*category*/
|
|
3962
3987
|
e[23].icon) && H(r, "src", n), A & /*topCategories*/
|
|
3963
3988
|
8 && i !== (i = /*category*/
|
|
3964
3989
|
e[23].name) && H(r, "alt", i), A & /*topCategories*/
|
|
3965
3990
|
8 && l !== (l = /*category*/
|
|
3966
3991
|
e[23].name + "") && D(a, l), A & /*topCategories*/
|
|
3967
|
-
8 &&
|
|
3968
|
-
e[23].games.count + "") && D(p,
|
|
3992
|
+
8 && c !== (c = /*category*/
|
|
3993
|
+
e[23].games.count + "") && D(p, c), A & /*$_*/
|
|
3969
3994
|
32 && g !== (g = /*$_*/
|
|
3970
|
-
e[5]("games") + "") && D(
|
|
3995
|
+
e[5]("games") + "") && D(E, g), A & /*activecategory, topCategories*/
|
|
3971
3996
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
3972
3997
|
(e[0] === /*category*/
|
|
3973
3998
|
e[23].id ? "Active" : "")) && H(t, "class", m);
|
|
3974
3999
|
},
|
|
3975
|
-
d(
|
|
3976
|
-
|
|
4000
|
+
d(S) {
|
|
4001
|
+
S && F(t), C = !1, B();
|
|
3977
4002
|
}
|
|
3978
4003
|
};
|
|
3979
4004
|
}
|
|
3980
|
-
function
|
|
4005
|
+
function pt(e) {
|
|
3981
4006
|
let t, r, n, i, s, o, u, l = (
|
|
3982
4007
|
/*category*/
|
|
3983
4008
|
e[23].name + ""
|
|
3984
|
-
), a, h,
|
|
4009
|
+
), a, h, f, c = (
|
|
3985
4010
|
/*category*/
|
|
3986
4011
|
e[23].games.count + ""
|
|
3987
4012
|
), p, d, g = (
|
|
3988
4013
|
/*$_*/
|
|
3989
4014
|
e[5]("games") + ""
|
|
3990
|
-
),
|
|
3991
|
-
function
|
|
4015
|
+
), E, m, C, B, P;
|
|
4016
|
+
function S() {
|
|
3992
4017
|
return (
|
|
3993
4018
|
/*click_handler_1*/
|
|
3994
4019
|
e[16](
|
|
@@ -3999,14 +4024,14 @@ function gt(e) {
|
|
|
3999
4024
|
}
|
|
4000
4025
|
return {
|
|
4001
4026
|
c() {
|
|
4002
|
-
t = w("div"), r = w("img"), s = $(), o = w("div"), u = w("p"), a = R(l), h = $(),
|
|
4027
|
+
t = w("div"), r = w("img"), s = $(), o = w("div"), u = w("p"), a = R(l), h = $(), f = w("p"), p = R(c), d = $(), E = R(g), m = $(), pe(r.src, n = /*category*/
|
|
4003
4028
|
e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
|
|
4004
4029
|
e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", C = "Category " + /*activecategory*/
|
|
4005
4030
|
(e[0] === /*category*/
|
|
4006
4031
|
e[23].id ? "Active" : ""));
|
|
4007
4032
|
},
|
|
4008
4033
|
m(A, N) {
|
|
4009
|
-
J(A, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o,
|
|
4034
|
+
J(A, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, f), v(f, p), v(f, d), v(f, E), v(t, m), B || (P = _t(t, "click", S), B = !0);
|
|
4010
4035
|
},
|
|
4011
4036
|
p(A, N) {
|
|
4012
4037
|
e = A, N & /*otherCategories*/
|
|
@@ -4016,25 +4041,25 @@ function gt(e) {
|
|
|
4016
4041
|
e[23].name) && H(r, "alt", i), N & /*otherCategories*/
|
|
4017
4042
|
16 && l !== (l = /*category*/
|
|
4018
4043
|
e[23].name + "") && D(a, l), N & /*otherCategories*/
|
|
4019
|
-
16 &&
|
|
4020
|
-
e[23].games.count + "") && D(p,
|
|
4044
|
+
16 && c !== (c = /*category*/
|
|
4045
|
+
e[23].games.count + "") && D(p, c), N & /*$_*/
|
|
4021
4046
|
32 && g !== (g = /*$_*/
|
|
4022
|
-
e[5]("games") + "") && D(
|
|
4047
|
+
e[5]("games") + "") && D(E, g), N & /*activecategory, otherCategories*/
|
|
4023
4048
|
17 && C !== (C = "Category " + /*activecategory*/
|
|
4024
4049
|
(e[0] === /*category*/
|
|
4025
4050
|
e[23].id ? "Active" : "")) && H(t, "class", C);
|
|
4026
4051
|
},
|
|
4027
4052
|
d(A) {
|
|
4028
|
-
A && F(t),
|
|
4053
|
+
A && F(t), B = !1, P();
|
|
4029
4054
|
}
|
|
4030
4055
|
};
|
|
4031
4056
|
}
|
|
4032
|
-
function
|
|
4057
|
+
function ci(e) {
|
|
4033
4058
|
let t;
|
|
4034
4059
|
function r(s, o) {
|
|
4035
4060
|
return (
|
|
4036
4061
|
/*isLoading*/
|
|
4037
|
-
s[2] ?
|
|
4062
|
+
s[2] ? li : hi
|
|
4038
4063
|
);
|
|
4039
4064
|
}
|
|
4040
4065
|
let n = r(e), i = n(e);
|
|
@@ -4057,59 +4082,59 @@ function li(e) {
|
|
|
4057
4082
|
}
|
|
4058
4083
|
function fi(e, t, r) {
|
|
4059
4084
|
let n;
|
|
4060
|
-
|
|
4061
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl:
|
|
4085
|
+
Qt(e, ni, (b) => r(5, n = b));
|
|
4086
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, d = !1;
|
|
4062
4087
|
const g = [];
|
|
4063
|
-
let
|
|
4064
|
-
Object.keys(
|
|
4065
|
-
|
|
4088
|
+
let E = [], m = [];
|
|
4089
|
+
Object.keys(ct).forEach((b) => {
|
|
4090
|
+
lt(b, ct[b]);
|
|
4066
4091
|
});
|
|
4067
4092
|
const C = () => {
|
|
4068
|
-
fetch(
|
|
4093
|
+
fetch(f).then((M) => M.json()).then((M) => {
|
|
4069
4094
|
Object.keys(M).forEach((ue) => {
|
|
4070
|
-
|
|
4095
|
+
lt(ue, M[ue]);
|
|
4071
4096
|
});
|
|
4072
4097
|
}).catch((M) => {
|
|
4073
4098
|
console.log(M);
|
|
4074
4099
|
});
|
|
4075
|
-
},
|
|
4100
|
+
}, B = () => {
|
|
4076
4101
|
r(2, d = !0);
|
|
4077
4102
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4078
4103
|
b.searchParams.append("language", o), fetch(b).then((M) => M.json()).then((M) => {
|
|
4079
4104
|
r(2, d = !1);
|
|
4080
4105
|
const ue = l.split(",").map((G) => G.trim());
|
|
4081
4106
|
g.push(...M.items);
|
|
4082
|
-
const
|
|
4083
|
-
r(3,
|
|
4107
|
+
const We = g.filter((G) => !ue.some((Wt) => G.flags?.indexOf(Wt) >= 0));
|
|
4108
|
+
r(3, E = We.filter((G) => G.isTopCategory === !0)), r(4, m = We.filter((G) => G.isTopCategory === !1));
|
|
4084
4109
|
});
|
|
4085
4110
|
}, P = (b) => {
|
|
4086
4111
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4087
|
-
},
|
|
4088
|
-
|
|
4112
|
+
}, S = () => {
|
|
4113
|
+
ai(o);
|
|
4089
4114
|
};
|
|
4090
|
-
|
|
4115
|
+
rr(() => () => {
|
|
4091
4116
|
});
|
|
4092
4117
|
const A = (b) => P(b.id), N = (b) => P(b.id);
|
|
4093
|
-
function
|
|
4118
|
+
function zt(b) {
|
|
4094
4119
|
Oe[b ? "unshift" : "push"](() => {
|
|
4095
4120
|
p = b, r(1, p);
|
|
4096
4121
|
});
|
|
4097
4122
|
}
|
|
4098
4123
|
return e.$$set = (b) => {
|
|
4099
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13,
|
|
4124
|
+
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, f = b.translationurl), "mbsource" in b && r(14, c = b.mbsource);
|
|
4100
4125
|
}, e.$$.update = () => {
|
|
4101
4126
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4102
|
-
384 && i && s &&
|
|
4103
|
-
8192 &&
|
|
4104
|
-
512 && o &&
|
|
4105
|
-
2050 && a && p &&
|
|
4106
|
-
4098 && h && p &&
|
|
4107
|
-
16386 &&
|
|
4127
|
+
384 && i && s && B(), e.$$.dirty & /*translationurl*/
|
|
4128
|
+
8192 && f && C(), e.$$.dirty & /*lang*/
|
|
4129
|
+
512 && o && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4130
|
+
2050 && a && p && ii(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4131
|
+
4098 && h && p && si(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4132
|
+
16386 && c && p && oi(p, `${c}.Style`);
|
|
4108
4133
|
}, [
|
|
4109
4134
|
u,
|
|
4110
4135
|
p,
|
|
4111
4136
|
d,
|
|
4112
|
-
|
|
4137
|
+
E,
|
|
4113
4138
|
m,
|
|
4114
4139
|
n,
|
|
4115
4140
|
P,
|
|
@@ -4119,21 +4144,21 @@ function fi(e, t, r) {
|
|
|
4119
4144
|
l,
|
|
4120
4145
|
a,
|
|
4121
4146
|
h,
|
|
4122
|
-
c,
|
|
4123
4147
|
f,
|
|
4148
|
+
c,
|
|
4124
4149
|
A,
|
|
4125
4150
|
N,
|
|
4126
|
-
|
|
4151
|
+
zt
|
|
4127
4152
|
];
|
|
4128
4153
|
}
|
|
4129
|
-
class
|
|
4154
|
+
class Xt extends mr {
|
|
4130
4155
|
constructor(t) {
|
|
4131
|
-
super(),
|
|
4156
|
+
super(), fr(
|
|
4132
4157
|
this,
|
|
4133
4158
|
t,
|
|
4134
4159
|
fi,
|
|
4135
|
-
|
|
4136
|
-
|
|
4160
|
+
ci,
|
|
4161
|
+
bt,
|
|
4137
4162
|
{
|
|
4138
4163
|
endpoint: 7,
|
|
4139
4164
|
datasource: 8,
|
|
@@ -4145,7 +4170,7 @@ class kt extends cr {
|
|
|
4145
4170
|
translationurl: 13,
|
|
4146
4171
|
mbsource: 14
|
|
4147
4172
|
},
|
|
4148
|
-
|
|
4173
|
+
ui
|
|
4149
4174
|
);
|
|
4150
4175
|
}
|
|
4151
4176
|
get endpoint() {
|
|
@@ -4203,42 +4228,42 @@ class kt extends cr {
|
|
|
4203
4228
|
this.$$set({ mbsource: t }), I();
|
|
4204
4229
|
}
|
|
4205
4230
|
}
|
|
4206
|
-
|
|
4207
|
-
const
|
|
4231
|
+
gr(Xt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4232
|
+
const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4208
4233
|
__proto__: null,
|
|
4209
|
-
default:
|
|
4234
|
+
default: Xt
|
|
4210
4235
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4211
4236
|
export {
|
|
4212
4237
|
K as $,
|
|
4213
|
-
|
|
4214
|
-
|
|
4238
|
+
gi as A,
|
|
4239
|
+
Qe as B,
|
|
4215
4240
|
pe as C,
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4241
|
+
pi as D,
|
|
4242
|
+
mr as S,
|
|
4243
|
+
Gt as a,
|
|
4244
|
+
qt as b,
|
|
4245
|
+
gr as c,
|
|
4246
|
+
$ as d,
|
|
4247
|
+
w as e,
|
|
4223
4248
|
I as f,
|
|
4224
4249
|
H as g,
|
|
4225
|
-
|
|
4226
|
-
|
|
4250
|
+
mi as h,
|
|
4251
|
+
fr as i,
|
|
4227
4252
|
J as j,
|
|
4228
4253
|
v as k,
|
|
4229
|
-
|
|
4230
|
-
|
|
4254
|
+
_t as l,
|
|
4255
|
+
D as m,
|
|
4231
4256
|
L as n,
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4257
|
+
F as o,
|
|
4258
|
+
Qt as p,
|
|
4259
|
+
rr as q,
|
|
4235
4260
|
oe as r,
|
|
4236
|
-
|
|
4261
|
+
bt as s,
|
|
4237
4262
|
R as t,
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4263
|
+
si as u,
|
|
4264
|
+
oi as v,
|
|
4265
|
+
Oe as w,
|
|
4241
4266
|
ii as x,
|
|
4242
|
-
|
|
4267
|
+
ni as y,
|
|
4243
4268
|
le as z
|
|
4244
4269
|
};
|