@everymatrix/casino-categories 1.86.3 → 1.86.5
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-CIWE4ELK.js → CasinoCategories-Bde9pPpf.js} +562 -558
- package/components/{CasinoCategories-CDvop_YB.js → CasinoCategories-CIX-rkDI.js} +588 -584
- package/components/CasinoCategories-CPiBmzfm.cjs +3 -0
- package/es2015/casino-categories.cjs +1 -1
- package/es2015/casino-categories.js +1 -1
- package/esnext/casino-categories.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/{ui-image-BDXyFHck.cjs → ui-image-BX-FBhad.cjs} +1 -1
- package/stencil/{ui-image-Cc8wLmDe.js → ui-image-CP8Lp7fB.js} +1 -1
- package/stencil/{ui-image-wH6lu7wS.js → ui-image-Ch-GHki1.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/components/CasinoCategories-B2iy_gnp.cjs +0 -16
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-Ch-GHki1.js";
|
|
2
2
|
function N() {
|
|
3
3
|
}
|
|
4
4
|
function bt(e) {
|
|
@@ -7,23 +7,23 @@ function bt(e) {
|
|
|
7
7
|
function Qe() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function ue(e) {
|
|
11
11
|
e.forEach(bt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Xe(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function yt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
|
-
let
|
|
20
|
-
function
|
|
21
|
-
return e === t ? !0 : (
|
|
19
|
+
let fe;
|
|
20
|
+
function be(e, t) {
|
|
21
|
+
return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
|
|
22
22
|
}
|
|
23
23
|
function Zt(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function _t(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -33,15 +33,15 @@ function yt(e, ...t) {
|
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
35
|
function Qt(e, t, r) {
|
|
36
|
-
e.$$.on_destroy.push(
|
|
36
|
+
e.$$.on_destroy.push(_t(t, r));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function x(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
41
|
function Jt(e, t, r) {
|
|
42
42
|
const n = qt(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
44
|
+
const i = B("style");
|
|
45
45
|
i.id = t, i.textContent = r, Yt(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -56,32 +56,32 @@ function qt(e) {
|
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
58
|
function Yt(e, t) {
|
|
59
|
-
return
|
|
59
|
+
return x(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function K(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function k(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
71
|
function Je(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function B(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function G(e) {
|
|
79
79
|
return document.createTextNode(e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function U() {
|
|
82
|
+
return G(" ");
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Et(e, t, r, n) {
|
|
85
85
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
86
86
|
}
|
|
87
87
|
function L(e, t, r) {
|
|
@@ -94,7 +94,7 @@ function $(e, t, r) {
|
|
|
94
94
|
function Kt(e) {
|
|
95
95
|
return Array.from(e.childNodes);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function F(e, t) {
|
|
98
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
99
99
|
t);
|
|
100
100
|
}
|
|
@@ -107,90 +107,90 @@ function er(e) {
|
|
|
107
107
|
}
|
|
108
108
|
), t;
|
|
109
109
|
}
|
|
110
|
-
let
|
|
111
|
-
function
|
|
112
|
-
|
|
110
|
+
let oe;
|
|
111
|
+
function ie(e) {
|
|
112
|
+
oe = e;
|
|
113
113
|
}
|
|
114
114
|
function tr() {
|
|
115
|
-
if (!
|
|
115
|
+
if (!oe)
|
|
116
116
|
throw new Error("Function called outside component initialization");
|
|
117
|
-
return
|
|
117
|
+
return oe;
|
|
118
118
|
}
|
|
119
119
|
function rr(e) {
|
|
120
120
|
tr().$$.on_mount.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
122
|
+
const W = [], Le = [];
|
|
123
|
+
let Z = [];
|
|
124
124
|
const qe = [], nr = /* @__PURE__ */ Promise.resolve();
|
|
125
|
-
let
|
|
125
|
+
let Ie = !1;
|
|
126
126
|
function ir() {
|
|
127
|
-
|
|
127
|
+
Ie || (Ie = !0, nr.then(I));
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function Me(e) {
|
|
130
|
+
Z.push(e);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
let
|
|
132
|
+
const Se = /* @__PURE__ */ new Set();
|
|
133
|
+
let X = 0;
|
|
134
134
|
function I() {
|
|
135
|
-
if (
|
|
135
|
+
if (X !== 0)
|
|
136
136
|
return;
|
|
137
|
-
const e =
|
|
137
|
+
const e = oe;
|
|
138
138
|
do {
|
|
139
139
|
try {
|
|
140
|
-
for (;
|
|
141
|
-
const t =
|
|
142
|
-
|
|
140
|
+
for (; X < W.length; ) {
|
|
141
|
+
const t = W[X];
|
|
142
|
+
X++, ie(t), or(t.$$);
|
|
143
143
|
}
|
|
144
144
|
} catch (t) {
|
|
145
|
-
throw
|
|
145
|
+
throw W.length = 0, X = 0, t;
|
|
146
146
|
}
|
|
147
|
-
for (
|
|
148
|
-
|
|
149
|
-
for (let t = 0; t <
|
|
150
|
-
const r =
|
|
151
|
-
|
|
147
|
+
for (ie(null), W.length = 0, X = 0; Le.length; )
|
|
148
|
+
Le.pop()();
|
|
149
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
150
|
+
const r = Z[t];
|
|
151
|
+
Se.has(r) || (Se.add(r), r());
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
} while (
|
|
153
|
+
Z.length = 0;
|
|
154
|
+
} while (W.length);
|
|
155
155
|
for (; qe.length; )
|
|
156
156
|
qe.pop()();
|
|
157
|
-
|
|
157
|
+
Ie = !1, Se.clear(), ie(e);
|
|
158
158
|
}
|
|
159
159
|
function or(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
161
|
-
e.update(),
|
|
161
|
+
e.update(), ue(e.before_update);
|
|
162
162
|
const t = e.dirty;
|
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
function sr(e) {
|
|
167
167
|
const t = [], r = [];
|
|
168
|
-
|
|
168
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
169
169
|
}
|
|
170
170
|
const ar = /* @__PURE__ */ new Set();
|
|
171
171
|
function ur(e, t) {
|
|
172
172
|
e && e.i && (ar.delete(e), e.i(t));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function ce(e) {
|
|
175
175
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
176
176
|
}
|
|
177
177
|
function hr(e, t, r) {
|
|
178
178
|
const { fragment: n, after_update: i } = e.$$;
|
|
179
|
-
n && n.m(t, r),
|
|
180
|
-
const o = e.$$.on_mount.map(bt).filter(
|
|
181
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
182
|
-
}), i.forEach(
|
|
179
|
+
n && n.m(t, r), Me(() => {
|
|
180
|
+
const o = e.$$.on_mount.map(bt).filter(Xe);
|
|
181
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
182
|
+
}), i.forEach(Me);
|
|
183
183
|
}
|
|
184
184
|
function lr(e, t) {
|
|
185
185
|
const r = e.$$;
|
|
186
|
-
r.fragment !== null && (sr(r.after_update),
|
|
186
|
+
r.fragment !== null && (sr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
187
187
|
}
|
|
188
188
|
function fr(e, t) {
|
|
189
|
-
e.$$.dirty[0] === -1 && (
|
|
189
|
+
e.$$.dirty[0] === -1 && (W.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
190
|
}
|
|
191
191
|
function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
192
|
-
const l =
|
|
193
|
-
|
|
192
|
+
const l = oe;
|
|
193
|
+
ie(e);
|
|
194
194
|
const a = e.$$ = {
|
|
195
195
|
fragment: null,
|
|
196
196
|
ctx: [],
|
|
@@ -217,18 +217,18 @@ function cr(e, t, r, n, i, o, s = null, u = [-1]) {
|
|
|
217
217
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
218
218
|
const d = p.length ? p[0] : f;
|
|
219
219
|
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h && fr(e, c)), f;
|
|
220
|
-
}) : [], a.update(), h = !0,
|
|
220
|
+
}) : [], a.update(), h = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
222
|
const c = Kt(t.target);
|
|
223
|
-
a.fragment && a.fragment.l(c), c.forEach(
|
|
223
|
+
a.fragment && a.fragment.l(c), c.forEach(k);
|
|
224
224
|
} else
|
|
225
225
|
a.fragment && a.fragment.c();
|
|
226
226
|
t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor), I();
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
ie(l);
|
|
229
229
|
}
|
|
230
|
-
let
|
|
231
|
-
typeof HTMLElement == "function" && (
|
|
230
|
+
let xt;
|
|
231
|
+
typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
232
232
|
/** The Svelte component constructor */
|
|
233
233
|
$$ctor;
|
|
234
234
|
/** Slots */
|
|
@@ -270,17 +270,17 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
270
270
|
let o;
|
|
271
271
|
return {
|
|
272
272
|
c: function() {
|
|
273
|
-
o =
|
|
273
|
+
o = B("slot"), i !== "default" && L(o, "name", i);
|
|
274
274
|
},
|
|
275
275
|
/**
|
|
276
276
|
* @param {HTMLElement} target
|
|
277
277
|
* @param {HTMLElement} [anchor]
|
|
278
278
|
*/
|
|
279
279
|
m: function(l, a) {
|
|
280
|
-
|
|
280
|
+
K(l, o, a);
|
|
281
281
|
},
|
|
282
282
|
d: function(l) {
|
|
283
|
-
l &&
|
|
283
|
+
l && k(o);
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
};
|
|
@@ -292,7 +292,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
292
292
|
i in r && (t[i] = [e(i)]);
|
|
293
293
|
for (const i of this.attributes) {
|
|
294
294
|
const o = this.$$g_p(i.name);
|
|
295
|
-
o in this.$$d || (this.$$d[o] =
|
|
295
|
+
o in this.$$d || (this.$$d[o] = me(o, i.value, this.$$p_d, "toProp"));
|
|
296
296
|
}
|
|
297
297
|
for (const i in this.$$p_d)
|
|
298
298
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
310
310
|
this.$$r = !0;
|
|
311
311
|
for (const i in this.$$p_d)
|
|
312
312
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
313
|
-
const o =
|
|
313
|
+
const o = me(
|
|
314
314
|
i,
|
|
315
315
|
this.$$d[i],
|
|
316
316
|
this.$$p_d,
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
332
332
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
333
|
// and setting attributes through setAttribute etc, this is helpful
|
|
334
334
|
attributeChangedCallback(e, t, r) {
|
|
335
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
335
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
336
|
}
|
|
337
337
|
disconnectedCallback() {
|
|
338
338
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
345
345
|
) || e;
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
function
|
|
348
|
+
function me(e, t, r, n) {
|
|
349
349
|
const i = r[e]?.type;
|
|
350
350
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
351
351
|
return t;
|
|
@@ -375,7 +375,7 @@ function ge(e, t, r, n) {
|
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
function gr(e, t, r, n, i, o) {
|
|
378
|
-
let s = class extends
|
|
378
|
+
let s = class extends xt {
|
|
379
379
|
constructor() {
|
|
380
380
|
super(e, r, i), this.$$p_d = t;
|
|
381
381
|
}
|
|
@@ -391,7 +391,7 @@ function gr(e, t, r, n, i, o) {
|
|
|
391
391
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
392
392
|
},
|
|
393
393
|
set(l) {
|
|
394
|
-
l =
|
|
394
|
+
l = me(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), n.forEach((u) => {
|
|
@@ -431,7 +431,7 @@ class mr {
|
|
|
431
431
|
* @returns {() => void}
|
|
432
432
|
*/
|
|
433
433
|
$on(t, r) {
|
|
434
|
-
if (!
|
|
434
|
+
if (!Xe(r))
|
|
435
435
|
return N;
|
|
436
436
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
437
|
return n.push(r), () => {
|
|
@@ -449,24 +449,24 @@ class mr {
|
|
|
449
449
|
}
|
|
450
450
|
const pr = "4";
|
|
451
451
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
|
|
452
|
-
const
|
|
452
|
+
const z = [];
|
|
453
453
|
function dr(e, t) {
|
|
454
454
|
return {
|
|
455
|
-
subscribe:
|
|
455
|
+
subscribe: xe(e, t).subscribe
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function xe(e, t = N) {
|
|
459
459
|
let r;
|
|
460
460
|
const n = /* @__PURE__ */ new Set();
|
|
461
461
|
function i(u) {
|
|
462
|
-
if (
|
|
463
|
-
const l = !
|
|
462
|
+
if (yt(e, u) && (e = u, r)) {
|
|
463
|
+
const l = !z.length;
|
|
464
464
|
for (const a of n)
|
|
465
|
-
a[1](),
|
|
465
|
+
a[1](), z.push(a, e);
|
|
466
466
|
if (l) {
|
|
467
|
-
for (let a = 0; a <
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
for (let a = 0; a < z.length; a += 2)
|
|
468
|
+
z[a][0](z[a + 1]);
|
|
469
|
+
z.length = 0;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
}
|
|
@@ -481,7 +481,7 @@ function ye(e, t = N) {
|
|
|
481
481
|
}
|
|
482
482
|
return { set: i, update: o, subscribe: s };
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function ee(e, t, r) {
|
|
485
485
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
486
486
|
if (!i.every(Boolean))
|
|
487
487
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -495,9 +495,9 @@ function K(e, t, r) {
|
|
|
495
495
|
return;
|
|
496
496
|
c();
|
|
497
497
|
const d = t(n ? a[0] : a, s, u);
|
|
498
|
-
o ? s(d) : c =
|
|
498
|
+
o ? s(d) : c = Xe(d) ? d : N;
|
|
499
499
|
}, p = i.map(
|
|
500
|
-
(d, g) =>
|
|
500
|
+
(d, g) => _t(
|
|
501
501
|
d,
|
|
502
502
|
(E) => {
|
|
503
503
|
a[g] = E, h &= ~(1 << g), l && f();
|
|
@@ -508,51 +508,51 @@ function K(e, t, r) {
|
|
|
508
508
|
)
|
|
509
509
|
);
|
|
510
510
|
return l = !0, f(), function() {
|
|
511
|
-
|
|
511
|
+
ue(p), c(), l = !1;
|
|
512
512
|
};
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
function br(e) {
|
|
516
516
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
517
517
|
}
|
|
518
|
-
var
|
|
519
|
-
return
|
|
518
|
+
var yr = function(t) {
|
|
519
|
+
return _r(t) && !Er(t);
|
|
520
520
|
};
|
|
521
|
-
function
|
|
521
|
+
function _r(e) {
|
|
522
522
|
return !!e && typeof e == "object";
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Er(e) {
|
|
525
525
|
var t = Object.prototype.toString.call(e);
|
|
526
526
|
return t === "[object RegExp]" || t === "[object Date]" || Tr(e);
|
|
527
527
|
}
|
|
528
|
-
var
|
|
528
|
+
var xr = typeof Symbol == "function" && Symbol.for, vr = xr ? Symbol.for("react.element") : 60103;
|
|
529
529
|
function Tr(e) {
|
|
530
530
|
return e.$$typeof === vr;
|
|
531
531
|
}
|
|
532
532
|
function Cr(e) {
|
|
533
533
|
return Array.isArray(e) ? [] : {};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
535
|
+
function se(e, t) {
|
|
536
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Cr(e), e, t) : e;
|
|
537
537
|
}
|
|
538
538
|
function Hr(e, t, r) {
|
|
539
539
|
return e.concat(t).map(function(n) {
|
|
540
|
-
return
|
|
540
|
+
return se(n, r);
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Sr(e, t) {
|
|
544
544
|
if (!t.customMerge)
|
|
545
|
-
return
|
|
545
|
+
return Q;
|
|
546
546
|
var r = t.customMerge(e);
|
|
547
|
-
return typeof r == "function" ? r :
|
|
547
|
+
return typeof r == "function" ? r : Q;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Ar(e) {
|
|
550
550
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
551
551
|
return Object.propertyIsEnumerable.call(e, t);
|
|
552
552
|
}) : [];
|
|
553
553
|
}
|
|
554
554
|
function Ye(e) {
|
|
555
|
-
return Object.keys(e).concat(
|
|
555
|
+
return Object.keys(e).concat(Ar(e));
|
|
556
556
|
}
|
|
557
557
|
function vt(e, t) {
|
|
558
558
|
try {
|
|
@@ -561,71 +561,57 @@ function vt(e, t) {
|
|
|
561
561
|
return !1;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Br(e, t) {
|
|
565
565
|
return vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Or(e, t, r) {
|
|
568
568
|
var n = {};
|
|
569
569
|
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
570
|
-
n[i] =
|
|
570
|
+
n[i] = se(e[i], r);
|
|
571
571
|
}), Ye(t).forEach(function(i) {
|
|
572
|
-
|
|
572
|
+
Br(e, i) || (vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Sr(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
573
573
|
}), n;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject ||
|
|
575
|
+
function Q(e, t, r) {
|
|
576
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hr, r.isMergeableObject = r.isMergeableObject || yr, r.cloneUnlessOtherwiseSpecified = se;
|
|
577
577
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
578
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
578
|
+
return o ? n ? r.arrayMerge(e, t, r) : Or(e, t, r) : se(t, r);
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
Q.all = function(t, r) {
|
|
581
581
|
if (!Array.isArray(t))
|
|
582
582
|
throw new Error("first argument should be an array");
|
|
583
583
|
return t.reduce(function(n, i) {
|
|
584
|
-
return
|
|
584
|
+
return Q(n, i, r);
|
|
585
585
|
}, {});
|
|
586
586
|
};
|
|
587
|
-
var
|
|
587
|
+
var wr = Q, Pr = wr;
|
|
588
588
|
const Nr = /* @__PURE__ */ br(Pr);
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
593
|
-
purpose with or without fee is hereby granted.
|
|
594
|
-
|
|
595
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
596
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
597
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
598
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
599
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
600
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
601
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
602
|
-
***************************************************************************** */
|
|
603
|
-
var Ie = function(e, t) {
|
|
604
|
-
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
589
|
+
var $e = function(e, t) {
|
|
590
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
605
591
|
r.__proto__ = n;
|
|
606
592
|
} || function(r, n) {
|
|
607
593
|
for (var i in n)
|
|
608
594
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
609
|
-
},
|
|
595
|
+
}, $e(e, t);
|
|
610
596
|
};
|
|
611
|
-
function
|
|
597
|
+
function ve(e, t) {
|
|
612
598
|
if (typeof t != "function" && t !== null)
|
|
613
599
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
614
|
-
|
|
600
|
+
$e(e, t);
|
|
615
601
|
function r() {
|
|
616
602
|
this.constructor = e;
|
|
617
603
|
}
|
|
618
604
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
619
605
|
}
|
|
620
|
-
var
|
|
621
|
-
return
|
|
606
|
+
var R = function() {
|
|
607
|
+
return R = Object.assign || function(t) {
|
|
622
608
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
623
609
|
r = arguments[n];
|
|
624
610
|
for (var o in r)
|
|
625
611
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
626
612
|
}
|
|
627
613
|
return t;
|
|
628
|
-
},
|
|
614
|
+
}, R.apply(this, arguments);
|
|
629
615
|
};
|
|
630
616
|
function Lr(e, t) {
|
|
631
617
|
var r = {};
|
|
@@ -636,14 +622,14 @@ function Lr(e, t) {
|
|
|
636
622
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
637
623
|
return r;
|
|
638
624
|
}
|
|
639
|
-
function
|
|
640
|
-
if (arguments.length === 2)
|
|
625
|
+
function Ae(e, t, r) {
|
|
626
|
+
if (r || arguments.length === 2)
|
|
641
627
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
642
628
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
643
|
-
return e.concat(o || t);
|
|
629
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
644
630
|
}
|
|
645
|
-
function
|
|
646
|
-
var r = t && t.cache ? t.cache :
|
|
631
|
+
function Be(e, t) {
|
|
632
|
+
var r = t && t.cache ? t.cache : Dr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : $r;
|
|
647
633
|
return i(e, {
|
|
648
634
|
cache: r,
|
|
649
635
|
serializer: n
|
|
@@ -652,95 +638,103 @@ function Ae(e, t) {
|
|
|
652
638
|
function Ir(e) {
|
|
653
639
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
654
640
|
}
|
|
655
|
-
function
|
|
641
|
+
function Mr(e, t, r, n) {
|
|
656
642
|
var i = Ir(n) ? n : r(n), o = t.get(i);
|
|
657
643
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
658
644
|
}
|
|
659
|
-
function
|
|
645
|
+
function Tt(e, t, r) {
|
|
660
646
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
661
647
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
662
648
|
}
|
|
663
|
-
function
|
|
649
|
+
function Ct(e, t, r, n, i) {
|
|
664
650
|
return r.bind(t, e, n, i);
|
|
665
651
|
}
|
|
666
|
-
function Mr(e, t) {
|
|
667
|
-
var r = e.length === 1 ? Tt : Ct;
|
|
668
|
-
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
669
|
-
}
|
|
670
652
|
function $r(e, t) {
|
|
671
|
-
|
|
653
|
+
var r = e.length === 1 ? Mr : Tt;
|
|
654
|
+
return Ct(e, this, r, t.cache.create(), t.serializer);
|
|
672
655
|
}
|
|
673
656
|
function Rr(e, t) {
|
|
674
|
-
return
|
|
657
|
+
return Ct(e, this, Tt, t.cache.create(), t.serializer);
|
|
675
658
|
}
|
|
676
659
|
var Ur = function() {
|
|
677
660
|
return JSON.stringify(arguments);
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
661
|
+
}, Gr = (
|
|
662
|
+
/** @class */
|
|
663
|
+
function() {
|
|
664
|
+
function e() {
|
|
665
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
666
|
+
}
|
|
667
|
+
return e.prototype.get = function(t) {
|
|
668
|
+
return this.cache[t];
|
|
669
|
+
}, e.prototype.set = function(t, r) {
|
|
670
|
+
this.cache[t] = r;
|
|
671
|
+
}, e;
|
|
672
|
+
}()
|
|
673
|
+
), Dr = {
|
|
689
674
|
create: function() {
|
|
690
|
-
return new
|
|
675
|
+
return new Gr();
|
|
691
676
|
}
|
|
692
|
-
},
|
|
693
|
-
variadic:
|
|
694
|
-
|
|
695
|
-
|
|
677
|
+
}, Oe = {
|
|
678
|
+
variadic: Rr
|
|
679
|
+
}, ye = function() {
|
|
680
|
+
return ye = Object.assign || function(t) {
|
|
681
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
682
|
+
r = arguments[n];
|
|
683
|
+
for (var o in r)
|
|
684
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
685
|
+
}
|
|
686
|
+
return t;
|
|
687
|
+
}, ye.apply(this, arguments);
|
|
688
|
+
};
|
|
689
|
+
var y;
|
|
696
690
|
(function(e) {
|
|
697
691
|
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";
|
|
698
|
-
})(
|
|
699
|
-
var
|
|
692
|
+
})(y || (y = {}));
|
|
693
|
+
var v;
|
|
700
694
|
(function(e) {
|
|
701
695
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
702
|
-
})(
|
|
703
|
-
var
|
|
696
|
+
})(v || (v = {}));
|
|
697
|
+
var J;
|
|
704
698
|
(function(e) {
|
|
705
699
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
706
|
-
})(
|
|
700
|
+
})(J || (J = {}));
|
|
707
701
|
function Ke(e) {
|
|
708
|
-
return e.type ===
|
|
702
|
+
return e.type === v.literal;
|
|
709
703
|
}
|
|
710
|
-
function
|
|
711
|
-
return e.type ===
|
|
704
|
+
function Fr(e) {
|
|
705
|
+
return e.type === v.argument;
|
|
712
706
|
}
|
|
713
707
|
function Ht(e) {
|
|
714
|
-
return e.type ===
|
|
708
|
+
return e.type === v.number;
|
|
709
|
+
}
|
|
710
|
+
function St(e) {
|
|
711
|
+
return e.type === v.date;
|
|
715
712
|
}
|
|
716
713
|
function At(e) {
|
|
717
|
-
return e.type ===
|
|
714
|
+
return e.type === v.time;
|
|
718
715
|
}
|
|
719
716
|
function Bt(e) {
|
|
720
|
-
return e.type ===
|
|
721
|
-
}
|
|
722
|
-
function St(e) {
|
|
723
|
-
return e.type === T.select;
|
|
717
|
+
return e.type === v.select;
|
|
724
718
|
}
|
|
725
|
-
function
|
|
726
|
-
return e.type ===
|
|
719
|
+
function Ot(e) {
|
|
720
|
+
return e.type === v.plural;
|
|
727
721
|
}
|
|
728
|
-
function
|
|
729
|
-
return e.type ===
|
|
722
|
+
function jr(e) {
|
|
723
|
+
return e.type === v.pound;
|
|
730
724
|
}
|
|
731
|
-
function
|
|
732
|
-
return e.type ===
|
|
725
|
+
function wt(e) {
|
|
726
|
+
return e.type === v.tag;
|
|
733
727
|
}
|
|
734
728
|
function Pt(e) {
|
|
735
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
729
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
736
730
|
}
|
|
737
|
-
function
|
|
738
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
731
|
+
function Re(e) {
|
|
732
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
739
733
|
}
|
|
740
|
-
var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
741
|
-
function
|
|
734
|
+
var Nt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kr = /(?:[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;
|
|
735
|
+
function Vr(e) {
|
|
742
736
|
var t = {};
|
|
743
|
-
return e.replace(
|
|
737
|
+
return e.replace(kr, function(r) {
|
|
744
738
|
var n = r.length;
|
|
745
739
|
switch (r[0]) {
|
|
746
740
|
case "G":
|
|
@@ -829,11 +823,21 @@ function kr(e) {
|
|
|
829
823
|
return "";
|
|
830
824
|
}), t;
|
|
831
825
|
}
|
|
832
|
-
var
|
|
833
|
-
function
|
|
826
|
+
var C = function() {
|
|
827
|
+
return C = Object.assign || function(t) {
|
|
828
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
829
|
+
r = arguments[n];
|
|
830
|
+
for (var o in r)
|
|
831
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
832
|
+
}
|
|
833
|
+
return t;
|
|
834
|
+
}, C.apply(this, arguments);
|
|
835
|
+
};
|
|
836
|
+
var Xr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
837
|
+
function zr(e) {
|
|
834
838
|
if (e.length === 0)
|
|
835
839
|
throw new Error("Number skeleton cannot be empty");
|
|
836
|
-
for (var t = e.split(
|
|
840
|
+
for (var t = e.split(Xr).filter(function(f) {
|
|
837
841
|
return f.length > 0;
|
|
838
842
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
839
843
|
var o = i[n], s = o.split("/");
|
|
@@ -848,10 +852,10 @@ function Xr(e) {
|
|
|
848
852
|
}
|
|
849
853
|
return r;
|
|
850
854
|
}
|
|
851
|
-
function
|
|
855
|
+
function Wr(e) {
|
|
852
856
|
return e.replace(/^(.*?)-/, "");
|
|
853
857
|
}
|
|
854
|
-
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
858
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lt = /^(@+)?(\+|#+)?[rs]?$/g, Zr = /(\*)(0+)|(#+)(0+)|(0+)/g, It = /^(0+)$/;
|
|
855
859
|
function tt(e) {
|
|
856
860
|
var t = {};
|
|
857
861
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lt, function(r, n, i) {
|
|
@@ -898,7 +902,7 @@ function Mt(e) {
|
|
|
898
902
|
};
|
|
899
903
|
}
|
|
900
904
|
}
|
|
901
|
-
function
|
|
905
|
+
function Qr(e) {
|
|
902
906
|
var t;
|
|
903
907
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
904
908
|
notation: "engineering"
|
|
@@ -916,7 +920,7 @@ function rt(e) {
|
|
|
916
920
|
var t = {}, r = Mt(e);
|
|
917
921
|
return r || t;
|
|
918
922
|
}
|
|
919
|
-
function
|
|
923
|
+
function Jr(e) {
|
|
920
924
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
921
925
|
var i = n[r];
|
|
922
926
|
switch (i.stem) {
|
|
@@ -940,7 +944,7 @@ function Qr(e) {
|
|
|
940
944
|
continue;
|
|
941
945
|
case "measure-unit":
|
|
942
946
|
case "unit":
|
|
943
|
-
t.style = "unit", t.unit =
|
|
947
|
+
t.style = "unit", t.unit = Wr(i.options[0]);
|
|
944
948
|
continue;
|
|
945
949
|
case "compact-short":
|
|
946
950
|
case "K":
|
|
@@ -951,13 +955,13 @@ function Qr(e) {
|
|
|
951
955
|
t.notation = "compact", t.compactDisplay = "long";
|
|
952
956
|
continue;
|
|
953
957
|
case "scientific":
|
|
954
|
-
t =
|
|
955
|
-
return
|
|
958
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
959
|
+
return C(C({}, l), rt(a));
|
|
956
960
|
}, {}));
|
|
957
961
|
continue;
|
|
958
962
|
case "engineering":
|
|
959
|
-
t =
|
|
960
|
-
return
|
|
963
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
964
|
+
return C(C({}, l), rt(a));
|
|
961
965
|
}, {}));
|
|
962
966
|
continue;
|
|
963
967
|
case "notation-simple":
|
|
@@ -1002,7 +1006,7 @@ function Qr(e) {
|
|
|
1002
1006
|
case "integer-width":
|
|
1003
1007
|
if (i.options.length > 1)
|
|
1004
1008
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1005
|
-
i.options[0].replace(
|
|
1009
|
+
i.options[0].replace(Zr, function(l, a, h, c, f, p) {
|
|
1006
1010
|
if (a)
|
|
1007
1011
|
t.minimumIntegerDigits = h.length;
|
|
1008
1012
|
else {
|
|
@@ -1026,21 +1030,21 @@ function Qr(e) {
|
|
|
1026
1030
|
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1027
1031
|
});
|
|
1028
1032
|
var o = i.options[0];
|
|
1029
|
-
o === "w" ? t =
|
|
1033
|
+
o === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = C(C({}, t), tt(o)));
|
|
1030
1034
|
continue;
|
|
1031
1035
|
}
|
|
1032
1036
|
if (Lt.test(i.stem)) {
|
|
1033
|
-
t =
|
|
1037
|
+
t = C(C({}, t), tt(i.stem));
|
|
1034
1038
|
continue;
|
|
1035
1039
|
}
|
|
1036
1040
|
var s = Mt(i.stem);
|
|
1037
|
-
s && (t =
|
|
1038
|
-
var u =
|
|
1039
|
-
u && (t =
|
|
1041
|
+
s && (t = C(C({}, t), s));
|
|
1042
|
+
var u = Qr(i.stem);
|
|
1043
|
+
u && (t = C(C({}, t), u));
|
|
1040
1044
|
}
|
|
1041
1045
|
return t;
|
|
1042
1046
|
}
|
|
1043
|
-
var
|
|
1047
|
+
var ge = {
|
|
1044
1048
|
"001": [
|
|
1045
1049
|
"H",
|
|
1046
1050
|
"h"
|
|
@@ -2455,13 +2459,13 @@ var ce = {
|
|
|
2455
2459
|
"h"
|
|
2456
2460
|
]
|
|
2457
2461
|
};
|
|
2458
|
-
function
|
|
2462
|
+
function qr(e, t) {
|
|
2459
2463
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2460
2464
|
var i = e.charAt(n);
|
|
2461
2465
|
if (i === "j") {
|
|
2462
2466
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2463
2467
|
o++, n++;
|
|
2464
|
-
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a =
|
|
2468
|
+
var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = Yr(t);
|
|
2465
2469
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2466
2470
|
r += l;
|
|
2467
2471
|
for (; s-- > 0; )
|
|
@@ -2471,7 +2475,7 @@ function Jr(e, t) {
|
|
|
2471
2475
|
}
|
|
2472
2476
|
return r;
|
|
2473
2477
|
}
|
|
2474
|
-
function
|
|
2478
|
+
function Yr(e) {
|
|
2475
2479
|
var t = e.hourCycle;
|
|
2476
2480
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2477
2481
|
e.hourCycles && // @ts-ignore
|
|
@@ -2490,23 +2494,23 @@ function qr(e) {
|
|
|
2490
2494
|
}
|
|
2491
2495
|
var r = e.language, n;
|
|
2492
2496
|
r !== "root" && (n = e.maximize().region);
|
|
2493
|
-
var i =
|
|
2497
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2494
2498
|
return i[0];
|
|
2495
2499
|
}
|
|
2496
|
-
var
|
|
2497
|
-
function
|
|
2500
|
+
var we, Kr = new RegExp("^".concat(Nt.source, "*")), en = new RegExp("".concat(Nt.source, "*$"));
|
|
2501
|
+
function _(e, t) {
|
|
2498
2502
|
return { start: e, end: t };
|
|
2499
2503
|
}
|
|
2500
|
-
var
|
|
2504
|
+
var tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), rn = !!String.fromCodePoint, nn = !!Object.fromEntries, on = !!String.prototype.codePointAt, sn = !!String.prototype.trimStart, an = !!String.prototype.trimEnd, un = !!Number.isSafeInteger, hn = un ? Number.isSafeInteger : function(e) {
|
|
2501
2505
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2502
|
-
},
|
|
2506
|
+
}, Ue = !0;
|
|
2503
2507
|
try {
|
|
2504
|
-
var
|
|
2505
|
-
|
|
2508
|
+
var ln = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2509
|
+
Ue = ((we = ln.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2506
2510
|
} catch {
|
|
2507
|
-
|
|
2511
|
+
Ue = !1;
|
|
2508
2512
|
}
|
|
2509
|
-
var nt =
|
|
2513
|
+
var nt = tn ? (
|
|
2510
2514
|
// Native
|
|
2511
2515
|
function(t, r, n) {
|
|
2512
2516
|
return t.startsWith(r, n);
|
|
@@ -2516,7 +2520,7 @@ var nt = en ? (
|
|
|
2516
2520
|
function(t, r, n) {
|
|
2517
2521
|
return t.slice(n, n + r.length) === r;
|
|
2518
2522
|
}
|
|
2519
|
-
),
|
|
2523
|
+
), Ge = rn ? String.fromCodePoint : (
|
|
2520
2524
|
// IE11
|
|
2521
2525
|
function() {
|
|
2522
2526
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2530,7 +2534,7 @@ var nt = en ? (
|
|
|
2530
2534
|
}
|
|
2531
2535
|
), it = (
|
|
2532
2536
|
// native
|
|
2533
|
-
|
|
2537
|
+
nn ? Object.fromEntries : (
|
|
2534
2538
|
// Ponyfill
|
|
2535
2539
|
function(t) {
|
|
2536
2540
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2540,7 +2544,7 @@ var nt = en ? (
|
|
|
2540
2544
|
return r;
|
|
2541
2545
|
}
|
|
2542
2546
|
)
|
|
2543
|
-
), $t =
|
|
2547
|
+
), $t = on ? (
|
|
2544
2548
|
// Native
|
|
2545
2549
|
function(t, r) {
|
|
2546
2550
|
return t.codePointAt(r);
|
|
@@ -2554,7 +2558,7 @@ var nt = en ? (
|
|
|
2554
2558
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2555
2559
|
}
|
|
2556
2560
|
}
|
|
2557
|
-
),
|
|
2561
|
+
), fn = sn ? (
|
|
2558
2562
|
// Native
|
|
2559
2563
|
function(t) {
|
|
2560
2564
|
return t.trimStart();
|
|
@@ -2562,9 +2566,9 @@ var nt = en ? (
|
|
|
2562
2566
|
) : (
|
|
2563
2567
|
// Ponyfill
|
|
2564
2568
|
function(t) {
|
|
2565
|
-
return t.replace(
|
|
2569
|
+
return t.replace(Kr, "");
|
|
2566
2570
|
}
|
|
2567
|
-
),
|
|
2571
|
+
), cn = an ? (
|
|
2568
2572
|
// Native
|
|
2569
2573
|
function(t) {
|
|
2570
2574
|
return t.trimEnd();
|
|
@@ -2572,32 +2576,32 @@ var nt = en ? (
|
|
|
2572
2576
|
) : (
|
|
2573
2577
|
// Ponyfill
|
|
2574
2578
|
function(t) {
|
|
2575
|
-
return t.replace(
|
|
2579
|
+
return t.replace(en, "");
|
|
2576
2580
|
}
|
|
2577
2581
|
);
|
|
2578
2582
|
function Rt(e, t) {
|
|
2579
2583
|
return new RegExp(e, t);
|
|
2580
2584
|
}
|
|
2581
|
-
var
|
|
2582
|
-
if (
|
|
2585
|
+
var De;
|
|
2586
|
+
if (Ue) {
|
|
2583
2587
|
var ot = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2584
|
-
|
|
2588
|
+
De = function(t, r) {
|
|
2585
2589
|
var n;
|
|
2586
2590
|
ot.lastIndex = r;
|
|
2587
2591
|
var i = ot.exec(t);
|
|
2588
2592
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2589
2593
|
};
|
|
2590
2594
|
} else
|
|
2591
|
-
|
|
2595
|
+
De = function(t, r) {
|
|
2592
2596
|
for (var n = []; ; ) {
|
|
2593
2597
|
var i = $t(t, r);
|
|
2594
|
-
if (i === void 0 || Ut(i) ||
|
|
2598
|
+
if (i === void 0 || Ut(i) || dn(i))
|
|
2595
2599
|
break;
|
|
2596
2600
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2597
2601
|
}
|
|
2598
|
-
return
|
|
2602
|
+
return Ge.apply(void 0, n);
|
|
2599
2603
|
};
|
|
2600
|
-
var
|
|
2604
|
+
var gn = (
|
|
2601
2605
|
/** @class */
|
|
2602
2606
|
function() {
|
|
2603
2607
|
function e(t, r) {
|
|
@@ -2621,14 +2625,14 @@ var cn = (
|
|
|
2621
2625
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2622
2626
|
var u = this.clonePosition();
|
|
2623
2627
|
this.bump(), i.push({
|
|
2624
|
-
type:
|
|
2625
|
-
location:
|
|
2628
|
+
type: v.pound,
|
|
2629
|
+
location: _(u, this.clonePosition())
|
|
2626
2630
|
});
|
|
2627
2631
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2628
2632
|
if (n)
|
|
2629
2633
|
break;
|
|
2630
|
-
return this.error(
|
|
2631
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2634
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2635
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2632
2636
|
var s = this.parseTag(t, r);
|
|
2633
2637
|
if (s.err)
|
|
2634
2638
|
return s;
|
|
@@ -2649,9 +2653,9 @@ var cn = (
|
|
|
2649
2653
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2650
2654
|
return {
|
|
2651
2655
|
val: {
|
|
2652
|
-
type:
|
|
2656
|
+
type: v.literal,
|
|
2653
2657
|
value: "<".concat(i, "/>"),
|
|
2654
|
-
location:
|
|
2658
|
+
location: _(n, this.clonePosition())
|
|
2655
2659
|
},
|
|
2656
2660
|
err: null
|
|
2657
2661
|
};
|
|
@@ -2661,25 +2665,25 @@ var cn = (
|
|
|
2661
2665
|
return o;
|
|
2662
2666
|
var s = o.val, u = this.clonePosition();
|
|
2663
2667
|
if (this.bumpIf("</")) {
|
|
2664
|
-
if (this.isEOF() || !
|
|
2665
|
-
return this.error(
|
|
2668
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2669
|
+
return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
|
|
2666
2670
|
var l = this.clonePosition(), a = this.parseTagName();
|
|
2667
|
-
return i !== a ? this.error(
|
|
2671
|
+
return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2668
2672
|
val: {
|
|
2669
|
-
type:
|
|
2673
|
+
type: v.tag,
|
|
2670
2674
|
value: i,
|
|
2671
2675
|
children: s,
|
|
2672
|
-
location:
|
|
2676
|
+
location: _(n, this.clonePosition())
|
|
2673
2677
|
},
|
|
2674
2678
|
err: null
|
|
2675
|
-
} : this.error(
|
|
2679
|
+
} : this.error(y.INVALID_TAG, _(u, this.clonePosition())));
|
|
2676
2680
|
} else
|
|
2677
|
-
return this.error(
|
|
2681
|
+
return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
|
|
2678
2682
|
} else
|
|
2679
|
-
return this.error(
|
|
2683
|
+
return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
|
|
2680
2684
|
}, e.prototype.parseTagName = function() {
|
|
2681
2685
|
var t = this.offset();
|
|
2682
|
-
for (this.bump(); !this.isEOF() &&
|
|
2686
|
+
for (this.bump(); !this.isEOF() && pn(this.char()); )
|
|
2683
2687
|
this.bump();
|
|
2684
2688
|
return this.message.slice(t, this.offset());
|
|
2685
2689
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2701,14 +2705,14 @@ var cn = (
|
|
|
2701
2705
|
}
|
|
2702
2706
|
break;
|
|
2703
2707
|
}
|
|
2704
|
-
var l =
|
|
2708
|
+
var l = _(n, this.clonePosition());
|
|
2705
2709
|
return {
|
|
2706
|
-
val: { type:
|
|
2710
|
+
val: { type: v.literal, value: i, location: l },
|
|
2707
2711
|
err: null
|
|
2708
2712
|
};
|
|
2709
2713
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2710
2714
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2711
|
-
!
|
|
2715
|
+
!mn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2712
2716
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2713
2717
|
if (this.isEOF() || this.char() !== 39)
|
|
2714
2718
|
return null;
|
|
@@ -2742,49 +2746,49 @@ var cn = (
|
|
|
2742
2746
|
r.push(n);
|
|
2743
2747
|
this.bump();
|
|
2744
2748
|
}
|
|
2745
|
-
return
|
|
2749
|
+
return Ge.apply(void 0, r);
|
|
2746
2750
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2747
2751
|
if (this.isEOF())
|
|
2748
2752
|
return null;
|
|
2749
2753
|
var n = this.char();
|
|
2750
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2754
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2751
2755
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2752
2756
|
var n = this.clonePosition();
|
|
2753
2757
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2754
|
-
return this.error(
|
|
2758
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
2755
2759
|
if (this.char() === 125)
|
|
2756
|
-
return this.bump(), this.error(
|
|
2760
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
|
|
2757
2761
|
var i = this.parseIdentifierIfPossible().value;
|
|
2758
2762
|
if (!i)
|
|
2759
|
-
return this.error(
|
|
2763
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2760
2764
|
if (this.bumpSpace(), this.isEOF())
|
|
2761
|
-
return this.error(
|
|
2765
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
|
|
2762
2766
|
switch (this.char()) {
|
|
2763
2767
|
case 125:
|
|
2764
2768
|
return this.bump(), {
|
|
2765
2769
|
val: {
|
|
2766
|
-
type:
|
|
2770
|
+
type: v.argument,
|
|
2767
2771
|
// value does not include the opening and closing braces.
|
|
2768
2772
|
value: i,
|
|
2769
|
-
location:
|
|
2773
|
+
location: _(n, this.clonePosition())
|
|
2770
2774
|
},
|
|
2771
2775
|
err: null
|
|
2772
2776
|
};
|
|
2773
2777
|
case 44:
|
|
2774
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2778
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2775
2779
|
default:
|
|
2776
|
-
return this.error(
|
|
2780
|
+
return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2777
2781
|
}
|
|
2778
2782
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2779
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2783
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2780
2784
|
this.bumpTo(i);
|
|
2781
|
-
var o = this.clonePosition(), s =
|
|
2785
|
+
var o = this.clonePosition(), s = _(t, o);
|
|
2782
2786
|
return { value: n, location: s };
|
|
2783
2787
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2784
2788
|
var o, s = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2785
2789
|
switch (u) {
|
|
2786
2790
|
case "":
|
|
2787
|
-
return this.error(
|
|
2791
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, _(s, l));
|
|
2788
2792
|
case "number":
|
|
2789
2793
|
case "date":
|
|
2790
2794
|
case "time": {
|
|
@@ -2795,44 +2799,44 @@ var cn = (
|
|
|
2795
2799
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2796
2800
|
if (c.err)
|
|
2797
2801
|
return c;
|
|
2798
|
-
var f =
|
|
2802
|
+
var f = cn(c.val);
|
|
2799
2803
|
if (f.length === 0)
|
|
2800
|
-
return this.error(
|
|
2801
|
-
var p =
|
|
2804
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2805
|
+
var p = _(h, this.clonePosition());
|
|
2802
2806
|
a = { style: f, styleLocation: p };
|
|
2803
2807
|
}
|
|
2804
2808
|
var d = this.tryParseArgumentClose(i);
|
|
2805
2809
|
if (d.err)
|
|
2806
2810
|
return d;
|
|
2807
|
-
var g =
|
|
2811
|
+
var g = _(i, this.clonePosition());
|
|
2808
2812
|
if (a && nt(a?.style, "::", 0)) {
|
|
2809
|
-
var E =
|
|
2813
|
+
var E = fn(a.style.slice(2));
|
|
2810
2814
|
if (u === "number") {
|
|
2811
2815
|
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2812
2816
|
return c.err ? c : {
|
|
2813
|
-
val: { type:
|
|
2817
|
+
val: { type: v.number, value: n, location: g, style: c.val },
|
|
2814
2818
|
err: null
|
|
2815
2819
|
};
|
|
2816
2820
|
} else {
|
|
2817
2821
|
if (E.length === 0)
|
|
2818
|
-
return this.error(
|
|
2822
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
2819
2823
|
var m = E;
|
|
2820
|
-
this.locale && (m =
|
|
2824
|
+
this.locale && (m = qr(E, this.locale));
|
|
2821
2825
|
var f = {
|
|
2822
|
-
type:
|
|
2826
|
+
type: J.dateTime,
|
|
2823
2827
|
pattern: m,
|
|
2824
2828
|
location: a.styleLocation,
|
|
2825
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2826
|
-
},
|
|
2829
|
+
parsedOptions: this.shouldParseSkeletons ? Vr(m) : {}
|
|
2830
|
+
}, T = u === "date" ? v.date : v.time;
|
|
2827
2831
|
return {
|
|
2828
|
-
val: { type:
|
|
2832
|
+
val: { type: T, value: n, location: g, style: f },
|
|
2829
2833
|
err: null
|
|
2830
2834
|
};
|
|
2831
2835
|
}
|
|
2832
2836
|
}
|
|
2833
2837
|
return {
|
|
2834
2838
|
val: {
|
|
2835
|
-
type: u === "number" ?
|
|
2839
|
+
type: u === "number" ? v.number : u === "date" ? v.date : v.time,
|
|
2836
2840
|
value: n,
|
|
2837
2841
|
location: g,
|
|
2838
2842
|
style: (o = a?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2843,30 +2847,30 @@ var cn = (
|
|
|
2843
2847
|
case "plural":
|
|
2844
2848
|
case "selectordinal":
|
|
2845
2849
|
case "select": {
|
|
2846
|
-
var
|
|
2850
|
+
var S = this.clonePosition();
|
|
2847
2851
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2848
|
-
return this.error(
|
|
2852
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, ye({}, S)));
|
|
2849
2853
|
this.bumpSpace();
|
|
2850
|
-
var
|
|
2851
|
-
if (u !== "select" &&
|
|
2854
|
+
var w = this.parseIdentifierIfPossible(), A = 0;
|
|
2855
|
+
if (u !== "select" && w.value === "offset") {
|
|
2852
2856
|
if (!this.bumpIf(":"))
|
|
2853
|
-
return this.error(
|
|
2857
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
2854
2858
|
this.bumpSpace();
|
|
2855
|
-
var c = this.tryParseDecimalInteger(
|
|
2859
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2856
2860
|
if (c.err)
|
|
2857
2861
|
return c;
|
|
2858
|
-
this.bumpSpace(),
|
|
2862
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), A = c.val;
|
|
2859
2863
|
}
|
|
2860
|
-
var H = this.tryParsePluralOrSelectOptions(t, u, r,
|
|
2864
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, w);
|
|
2861
2865
|
if (H.err)
|
|
2862
2866
|
return H;
|
|
2863
2867
|
var d = this.tryParseArgumentClose(i);
|
|
2864
2868
|
if (d.err)
|
|
2865
2869
|
return d;
|
|
2866
|
-
var P =
|
|
2870
|
+
var P = _(i, this.clonePosition());
|
|
2867
2871
|
return u === "select" ? {
|
|
2868
2872
|
val: {
|
|
2869
|
-
type:
|
|
2873
|
+
type: v.select,
|
|
2870
2874
|
value: n,
|
|
2871
2875
|
options: it(H.val),
|
|
2872
2876
|
location: P
|
|
@@ -2874,10 +2878,10 @@ var cn = (
|
|
|
2874
2878
|
err: null
|
|
2875
2879
|
} : {
|
|
2876
2880
|
val: {
|
|
2877
|
-
type:
|
|
2881
|
+
type: v.plural,
|
|
2878
2882
|
value: n,
|
|
2879
2883
|
options: it(H.val),
|
|
2880
|
-
offset:
|
|
2884
|
+
offset: A,
|
|
2881
2885
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2882
2886
|
location: P
|
|
2883
2887
|
},
|
|
@@ -2885,10 +2889,10 @@ var cn = (
|
|
|
2885
2889
|
};
|
|
2886
2890
|
}
|
|
2887
2891
|
default:
|
|
2888
|
-
return this.error(
|
|
2892
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, _(s, l));
|
|
2889
2893
|
}
|
|
2890
2894
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2891
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2895
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2892
2896
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2893
2897
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2894
2898
|
var n = this.char();
|
|
@@ -2897,7 +2901,7 @@ var cn = (
|
|
|
2897
2901
|
this.bump();
|
|
2898
2902
|
var i = this.clonePosition();
|
|
2899
2903
|
if (!this.bumpUntil("'"))
|
|
2900
|
-
return this.error(
|
|
2904
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
|
|
2901
2905
|
this.bump();
|
|
2902
2906
|
break;
|
|
2903
2907
|
}
|
|
@@ -2927,16 +2931,16 @@ var cn = (
|
|
|
2927
2931
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2928
2932
|
var n = [];
|
|
2929
2933
|
try {
|
|
2930
|
-
n =
|
|
2934
|
+
n = zr(t);
|
|
2931
2935
|
} catch {
|
|
2932
|
-
return this.error(
|
|
2936
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
2933
2937
|
}
|
|
2934
2938
|
return {
|
|
2935
2939
|
val: {
|
|
2936
|
-
type:
|
|
2940
|
+
type: J.number,
|
|
2937
2941
|
tokens: n,
|
|
2938
2942
|
location: r,
|
|
2939
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2943
|
+
parsedOptions: this.shouldParseSkeletons ? Jr(n) : {}
|
|
2940
2944
|
},
|
|
2941
2945
|
err: null
|
|
2942
2946
|
};
|
|
@@ -2945,19 +2949,19 @@ var cn = (
|
|
|
2945
2949
|
if (a.length === 0) {
|
|
2946
2950
|
var c = this.clonePosition();
|
|
2947
2951
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2948
|
-
var f = this.tryParseDecimalInteger(
|
|
2952
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2949
2953
|
if (f.err)
|
|
2950
2954
|
return f;
|
|
2951
|
-
h =
|
|
2955
|
+
h = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2952
2956
|
} else
|
|
2953
2957
|
break;
|
|
2954
2958
|
}
|
|
2955
2959
|
if (l.has(a))
|
|
2956
|
-
return this.error(r === "select" ?
|
|
2960
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2957
2961
|
a === "other" && (s = !0), this.bumpSpace();
|
|
2958
2962
|
var p = this.clonePosition();
|
|
2959
2963
|
if (!this.bumpIf("{"))
|
|
2960
|
-
return this.error(r === "select" ?
|
|
2964
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
|
|
2961
2965
|
var d = this.parseMessage(t + 1, r, n);
|
|
2962
2966
|
if (d.err)
|
|
2963
2967
|
return d;
|
|
@@ -2968,11 +2972,11 @@ var cn = (
|
|
|
2968
2972
|
a,
|
|
2969
2973
|
{
|
|
2970
2974
|
value: d.val,
|
|
2971
|
-
location:
|
|
2975
|
+
location: _(p, this.clonePosition())
|
|
2972
2976
|
}
|
|
2973
2977
|
]), l.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, h = o.location;
|
|
2974
2978
|
}
|
|
2975
|
-
return u.length === 0 ? this.error(r === "select" ?
|
|
2979
|
+
return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
2976
2980
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2977
2981
|
var n = 1, i = this.clonePosition();
|
|
2978
2982
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2983,8 +2987,8 @@ var cn = (
|
|
|
2983
2987
|
else
|
|
2984
2988
|
break;
|
|
2985
2989
|
}
|
|
2986
|
-
var l =
|
|
2987
|
-
return o ? (s *= n,
|
|
2990
|
+
var l = _(i, this.clonePosition());
|
|
2991
|
+
return o ? (s *= n, hn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2988
2992
|
}, e.prototype.offset = function() {
|
|
2989
2993
|
return this.position.offset;
|
|
2990
2994
|
}, e.prototype.isEOF = function() {
|
|
@@ -3050,47 +3054,47 @@ var cn = (
|
|
|
3050
3054
|
}, e;
|
|
3051
3055
|
}()
|
|
3052
3056
|
);
|
|
3053
|
-
function
|
|
3057
|
+
function Fe(e) {
|
|
3054
3058
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3055
3059
|
}
|
|
3056
|
-
function gn(e) {
|
|
3057
|
-
return Ge(e) || e === 47;
|
|
3058
|
-
}
|
|
3059
3060
|
function mn(e) {
|
|
3061
|
+
return Fe(e) || e === 47;
|
|
3062
|
+
}
|
|
3063
|
+
function pn(e) {
|
|
3060
3064
|
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;
|
|
3061
3065
|
}
|
|
3062
3066
|
function Ut(e) {
|
|
3063
3067
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3064
3068
|
}
|
|
3065
|
-
function
|
|
3069
|
+
function dn(e) {
|
|
3066
3070
|
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;
|
|
3067
3071
|
}
|
|
3068
|
-
function
|
|
3072
|
+
function je(e) {
|
|
3069
3073
|
e.forEach(function(t) {
|
|
3070
|
-
if (delete t.location,
|
|
3074
|
+
if (delete t.location, Bt(t) || Ot(t))
|
|
3071
3075
|
for (var r in t.options)
|
|
3072
|
-
delete t.options[r].location,
|
|
3076
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3073
3077
|
else
|
|
3074
|
-
Ht(t) && Pt(t.style) || (
|
|
3078
|
+
Ht(t) && Pt(t.style) || (St(t) || At(t)) && Re(t.style) ? delete t.style.location : wt(t) && je(t.children);
|
|
3075
3079
|
});
|
|
3076
3080
|
}
|
|
3077
|
-
function
|
|
3078
|
-
t === void 0 && (t = {}), t =
|
|
3079
|
-
var r = new
|
|
3081
|
+
function bn(e, t) {
|
|
3082
|
+
t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3083
|
+
var r = new gn(e, t).parse();
|
|
3080
3084
|
if (r.err) {
|
|
3081
|
-
var n = SyntaxError(
|
|
3085
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3082
3086
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3083
3087
|
}
|
|
3084
|
-
return t?.captureLocation ||
|
|
3088
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3085
3089
|
}
|
|
3086
|
-
var
|
|
3090
|
+
var q;
|
|
3087
3091
|
(function(e) {
|
|
3088
3092
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3089
|
-
})(
|
|
3090
|
-
var
|
|
3093
|
+
})(q || (q = {}));
|
|
3094
|
+
var Te = (
|
|
3091
3095
|
/** @class */
|
|
3092
3096
|
function(e) {
|
|
3093
|
-
|
|
3097
|
+
ve(t, e);
|
|
3094
3098
|
function t(r, n, i) {
|
|
3095
3099
|
var o = e.call(this, r) || this;
|
|
3096
3100
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3102,48 +3106,48 @@ var Ee = (
|
|
|
3102
3106
|
), st = (
|
|
3103
3107
|
/** @class */
|
|
3104
3108
|
function(e) {
|
|
3105
|
-
|
|
3109
|
+
ve(t, e);
|
|
3106
3110
|
function t(r, n, i, o) {
|
|
3107
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3111
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
|
|
3108
3112
|
}
|
|
3109
3113
|
return t;
|
|
3110
|
-
}(
|
|
3111
|
-
),
|
|
3114
|
+
}(Te)
|
|
3115
|
+
), yn = (
|
|
3112
3116
|
/** @class */
|
|
3113
3117
|
function(e) {
|
|
3114
|
-
|
|
3118
|
+
ve(t, e);
|
|
3115
3119
|
function t(r, n, i) {
|
|
3116
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3120
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3117
3121
|
}
|
|
3118
3122
|
return t;
|
|
3119
|
-
}(
|
|
3123
|
+
}(Te)
|
|
3120
3124
|
), _n = (
|
|
3121
3125
|
/** @class */
|
|
3122
3126
|
function(e) {
|
|
3123
|
-
|
|
3127
|
+
ve(t, e);
|
|
3124
3128
|
function t(r, n) {
|
|
3125
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3129
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3126
3130
|
}
|
|
3127
3131
|
return t;
|
|
3128
|
-
}(
|
|
3129
|
-
),
|
|
3132
|
+
}(Te)
|
|
3133
|
+
), O;
|
|
3130
3134
|
(function(e) {
|
|
3131
3135
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3132
|
-
})(
|
|
3133
|
-
function
|
|
3136
|
+
})(O || (O = {}));
|
|
3137
|
+
function En(e) {
|
|
3134
3138
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3135
3139
|
var n = t[t.length - 1];
|
|
3136
|
-
return !n || n.type !==
|
|
3140
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3137
3141
|
}, []);
|
|
3138
3142
|
}
|
|
3139
3143
|
function xn(e) {
|
|
3140
3144
|
return typeof e == "function";
|
|
3141
3145
|
}
|
|
3142
|
-
function
|
|
3146
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3143
3147
|
if (e.length === 1 && Ke(e[0]))
|
|
3144
3148
|
return [
|
|
3145
3149
|
{
|
|
3146
|
-
type:
|
|
3150
|
+
type: O.literal,
|
|
3147
3151
|
value: e[0].value
|
|
3148
3152
|
}
|
|
3149
3153
|
];
|
|
@@ -3151,14 +3155,14 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3151
3155
|
var h = a[l];
|
|
3152
3156
|
if (Ke(h)) {
|
|
3153
3157
|
u.push({
|
|
3154
|
-
type:
|
|
3158
|
+
type: O.literal,
|
|
3155
3159
|
value: h.value
|
|
3156
3160
|
});
|
|
3157
3161
|
continue;
|
|
3158
3162
|
}
|
|
3159
|
-
if (
|
|
3163
|
+
if (jr(h)) {
|
|
3160
3164
|
typeof o == "number" && u.push({
|
|
3161
|
-
type:
|
|
3165
|
+
type: O.literal,
|
|
3162
3166
|
value: r.getNumberFormat(t).format(o)
|
|
3163
3167
|
});
|
|
3164
3168
|
continue;
|
|
@@ -3167,25 +3171,25 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3167
3171
|
if (!(i && c in i))
|
|
3168
3172
|
throw new _n(c, s);
|
|
3169
3173
|
var f = i[c];
|
|
3170
|
-
if (
|
|
3174
|
+
if (Fr(h)) {
|
|
3171
3175
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3172
|
-
type: typeof f == "string" ?
|
|
3176
|
+
type: typeof f == "string" ? O.literal : O.object,
|
|
3173
3177
|
value: f
|
|
3174
3178
|
});
|
|
3175
3179
|
continue;
|
|
3176
3180
|
}
|
|
3177
|
-
if (
|
|
3178
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3181
|
+
if (St(h)) {
|
|
3182
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3179
3183
|
u.push({
|
|
3180
|
-
type:
|
|
3184
|
+
type: O.literal,
|
|
3181
3185
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3182
3186
|
});
|
|
3183
3187
|
continue;
|
|
3184
3188
|
}
|
|
3185
|
-
if (
|
|
3186
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3189
|
+
if (At(h)) {
|
|
3190
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3187
3191
|
u.push({
|
|
3188
|
-
type:
|
|
3192
|
+
type: O.literal,
|
|
3189
3193
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3190
3194
|
});
|
|
3191
3195
|
continue;
|
|
@@ -3193,61 +3197,61 @@ function me(e, t, r, n, i, o, s) {
|
|
|
3193
3197
|
if (Ht(h)) {
|
|
3194
3198
|
var p = typeof h.style == "string" ? n.number[h.style] : Pt(h.style) ? h.style.parsedOptions : void 0;
|
|
3195
3199
|
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3196
|
-
type:
|
|
3200
|
+
type: O.literal,
|
|
3197
3201
|
value: r.getNumberFormat(t, p).format(f)
|
|
3198
3202
|
});
|
|
3199
3203
|
continue;
|
|
3200
3204
|
}
|
|
3201
|
-
if (
|
|
3205
|
+
if (wt(h)) {
|
|
3202
3206
|
var d = h.children, g = h.value, E = i[g];
|
|
3203
3207
|
if (!xn(E))
|
|
3204
|
-
throw new
|
|
3205
|
-
var m =
|
|
3206
|
-
return
|
|
3208
|
+
throw new yn(g, "function", s);
|
|
3209
|
+
var m = pe(d, t, r, n, i, o), T = E(m.map(function(A) {
|
|
3210
|
+
return A.value;
|
|
3207
3211
|
}));
|
|
3208
|
-
Array.isArray(
|
|
3212
|
+
Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(A) {
|
|
3209
3213
|
return {
|
|
3210
|
-
type: typeof
|
|
3211
|
-
value:
|
|
3214
|
+
type: typeof A == "string" ? O.literal : O.object,
|
|
3215
|
+
value: A
|
|
3212
3216
|
};
|
|
3213
3217
|
}));
|
|
3214
3218
|
}
|
|
3215
|
-
if (
|
|
3216
|
-
var
|
|
3217
|
-
if (!
|
|
3219
|
+
if (Bt(h)) {
|
|
3220
|
+
var S = h.options[f] || h.options.other;
|
|
3221
|
+
if (!S)
|
|
3218
3222
|
throw new st(h.value, f, Object.keys(h.options), s);
|
|
3219
|
-
u.push.apply(u,
|
|
3223
|
+
u.push.apply(u, pe(S.value, t, r, n, i));
|
|
3220
3224
|
continue;
|
|
3221
3225
|
}
|
|
3222
|
-
if (
|
|
3223
|
-
var
|
|
3224
|
-
if (!
|
|
3226
|
+
if (Ot(h)) {
|
|
3227
|
+
var S = h.options["=".concat(f)];
|
|
3228
|
+
if (!S) {
|
|
3225
3229
|
if (!Intl.PluralRules)
|
|
3226
|
-
throw new
|
|
3230
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3227
3231
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3228
|
-
`,
|
|
3229
|
-
var
|
|
3230
|
-
|
|
3232
|
+
`, q.MISSING_INTL_API, s);
|
|
3233
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3234
|
+
S = h.options[w] || h.options.other;
|
|
3231
3235
|
}
|
|
3232
|
-
if (!
|
|
3236
|
+
if (!S)
|
|
3233
3237
|
throw new st(h.value, f, Object.keys(h.options), s);
|
|
3234
|
-
u.push.apply(u,
|
|
3238
|
+
u.push.apply(u, pe(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3235
3239
|
continue;
|
|
3236
3240
|
}
|
|
3237
3241
|
}
|
|
3238
|
-
return
|
|
3242
|
+
return En(u);
|
|
3239
3243
|
}
|
|
3240
|
-
function
|
|
3241
|
-
return t ?
|
|
3242
|
-
return r[n] =
|
|
3244
|
+
function vn(e, t) {
|
|
3245
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3246
|
+
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
|
3243
3247
|
}, {})) : e;
|
|
3244
3248
|
}
|
|
3245
|
-
function
|
|
3249
|
+
function Tn(e, t) {
|
|
3246
3250
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3247
|
-
return r[n] =
|
|
3248
|
-
},
|
|
3251
|
+
return r[n] = vn(e[n], t[n]), r;
|
|
3252
|
+
}, R({}, e)) : e;
|
|
3249
3253
|
}
|
|
3250
|
-
function
|
|
3254
|
+
function Pe(e) {
|
|
3251
3255
|
return {
|
|
3252
3256
|
create: function() {
|
|
3253
3257
|
return {
|
|
@@ -3261,39 +3265,39 @@ function we(e) {
|
|
|
3261
3265
|
}
|
|
3262
3266
|
};
|
|
3263
3267
|
}
|
|
3264
|
-
function
|
|
3268
|
+
function Cn(e) {
|
|
3265
3269
|
return e === void 0 && (e = {
|
|
3266
3270
|
number: {},
|
|
3267
3271
|
dateTime: {},
|
|
3268
3272
|
pluralRules: {}
|
|
3269
3273
|
}), {
|
|
3270
|
-
getNumberFormat:
|
|
3274
|
+
getNumberFormat: Be(function() {
|
|
3271
3275
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3272
3276
|
r[n] = arguments[n];
|
|
3273
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3277
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3274
3278
|
}, {
|
|
3275
|
-
cache:
|
|
3276
|
-
strategy:
|
|
3279
|
+
cache: Pe(e.number),
|
|
3280
|
+
strategy: Oe.variadic
|
|
3277
3281
|
}),
|
|
3278
|
-
getDateTimeFormat:
|
|
3282
|
+
getDateTimeFormat: Be(function() {
|
|
3279
3283
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3280
3284
|
r[n] = arguments[n];
|
|
3281
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3285
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3282
3286
|
}, {
|
|
3283
|
-
cache:
|
|
3284
|
-
strategy:
|
|
3287
|
+
cache: Pe(e.dateTime),
|
|
3288
|
+
strategy: Oe.variadic
|
|
3285
3289
|
}),
|
|
3286
|
-
getPluralRules:
|
|
3290
|
+
getPluralRules: Be(function() {
|
|
3287
3291
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3288
3292
|
r[n] = arguments[n];
|
|
3289
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3293
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3290
3294
|
}, {
|
|
3291
|
-
cache:
|
|
3292
|
-
strategy:
|
|
3295
|
+
cache: Pe(e.pluralRules),
|
|
3296
|
+
strategy: Oe.variadic
|
|
3293
3297
|
})
|
|
3294
3298
|
};
|
|
3295
3299
|
}
|
|
3296
|
-
var
|
|
3300
|
+
var Hn = (
|
|
3297
3301
|
/** @class */
|
|
3298
3302
|
function() {
|
|
3299
3303
|
function e(t, r, n, i) {
|
|
@@ -3308,11 +3312,11 @@ var Cn = (
|
|
|
3308
3312
|
if (a.length === 1)
|
|
3309
3313
|
return a[0].value;
|
|
3310
3314
|
var h = a.reduce(function(c, f) {
|
|
3311
|
-
return !c.length || f.type !==
|
|
3315
|
+
return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3312
3316
|
}, []);
|
|
3313
3317
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3314
3318
|
}, this.formatToParts = function(l) {
|
|
3315
|
-
return
|
|
3319
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3316
3320
|
}, this.resolvedOptions = function() {
|
|
3317
3321
|
var l;
|
|
3318
3322
|
return {
|
|
@@ -3326,12 +3330,12 @@ var Cn = (
|
|
|
3326
3330
|
var s = i || {};
|
|
3327
3331
|
s.formatters;
|
|
3328
3332
|
var u = Lr(s, ["formatters"]);
|
|
3329
|
-
this.ast = e.__parse(t,
|
|
3333
|
+
this.ast = e.__parse(t, R(R({}, u), { locale: this.resolvedLocale }));
|
|
3330
3334
|
} else
|
|
3331
3335
|
this.ast = t;
|
|
3332
3336
|
if (!Array.isArray(this.ast))
|
|
3333
3337
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3334
|
-
this.formats =
|
|
3338
|
+
this.formats = Tn(e.formats, n), this.formatters = i && i.formatters || Cn(this.formatterCache);
|
|
3335
3339
|
}
|
|
3336
3340
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3337
3341
|
get: function() {
|
|
@@ -3344,7 +3348,7 @@ var Cn = (
|
|
|
3344
3348
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3345
3349
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3346
3350
|
}
|
|
3347
|
-
}, e.__parse =
|
|
3351
|
+
}, e.__parse = bn, e.formats = {
|
|
3348
3352
|
number: {
|
|
3349
3353
|
integer: {
|
|
3350
3354
|
maximumFractionDigits: 0
|
|
@@ -3405,7 +3409,7 @@ var Cn = (
|
|
|
3405
3409
|
}, e;
|
|
3406
3410
|
}()
|
|
3407
3411
|
);
|
|
3408
|
-
function
|
|
3412
|
+
function Sn(e, t) {
|
|
3409
3413
|
if (t == null)
|
|
3410
3414
|
return;
|
|
3411
3415
|
if (t in e)
|
|
@@ -3426,36 +3430,36 @@ function Hn(e, t) {
|
|
|
3426
3430
|
n = void 0;
|
|
3427
3431
|
return n;
|
|
3428
3432
|
}
|
|
3429
|
-
const
|
|
3433
|
+
const D = {}, An = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Gt = (e, t) => {
|
|
3430
3434
|
if (t == null)
|
|
3431
3435
|
return;
|
|
3432
|
-
if (t in
|
|
3433
|
-
return
|
|
3434
|
-
const r =
|
|
3436
|
+
if (t in D && e in D[t])
|
|
3437
|
+
return D[t][e];
|
|
3438
|
+
const r = Ce(t);
|
|
3435
3439
|
for (let n = 0; n < r.length; n++) {
|
|
3436
|
-
const i = r[n], o =
|
|
3440
|
+
const i = r[n], o = On(i, e);
|
|
3437
3441
|
if (o)
|
|
3438
3442
|
return An(e, t, o);
|
|
3439
3443
|
}
|
|
3440
3444
|
};
|
|
3441
3445
|
let ze;
|
|
3442
|
-
const
|
|
3446
|
+
const he = xe({});
|
|
3443
3447
|
function Bn(e) {
|
|
3444
3448
|
return ze[e] || null;
|
|
3445
3449
|
}
|
|
3446
3450
|
function Dt(e) {
|
|
3447
3451
|
return e in ze;
|
|
3448
3452
|
}
|
|
3449
|
-
function
|
|
3453
|
+
function On(e, t) {
|
|
3450
3454
|
if (!Dt(e))
|
|
3451
3455
|
return null;
|
|
3452
3456
|
const r = Bn(e);
|
|
3453
|
-
return
|
|
3457
|
+
return Sn(r, t);
|
|
3454
3458
|
}
|
|
3455
3459
|
function wn(e) {
|
|
3456
3460
|
if (e == null)
|
|
3457
3461
|
return;
|
|
3458
|
-
const t =
|
|
3462
|
+
const t = Ce(e);
|
|
3459
3463
|
for (let r = 0; r < t.length; r++) {
|
|
3460
3464
|
const n = t[r];
|
|
3461
3465
|
if (Dt(n))
|
|
@@ -3463,55 +3467,55 @@ function wn(e) {
|
|
|
3463
3467
|
}
|
|
3464
3468
|
}
|
|
3465
3469
|
function Ft(e, ...t) {
|
|
3466
|
-
delete
|
|
3470
|
+
delete D[e], he.update((r) => (r[e] = Nr.all([r[e] || {}, ...t]), r));
|
|
3467
3471
|
}
|
|
3468
|
-
|
|
3469
|
-
[
|
|
3472
|
+
ee(
|
|
3473
|
+
[he],
|
|
3470
3474
|
([e]) => Object.keys(e)
|
|
3471
3475
|
);
|
|
3472
|
-
|
|
3473
|
-
const
|
|
3474
|
-
function
|
|
3475
|
-
|
|
3476
|
+
he.subscribe((e) => ze = e);
|
|
3477
|
+
const de = {};
|
|
3478
|
+
function Pn(e, t) {
|
|
3479
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3476
3480
|
}
|
|
3477
3481
|
function jt(e) {
|
|
3478
|
-
return
|
|
3482
|
+
return de[e];
|
|
3479
3483
|
}
|
|
3480
|
-
function
|
|
3481
|
-
return
|
|
3484
|
+
function Nn(e) {
|
|
3485
|
+
return Ce(e).map((t) => {
|
|
3482
3486
|
const r = jt(t);
|
|
3483
3487
|
return [t, r ? [...r] : []];
|
|
3484
3488
|
}).filter(([, t]) => t.length > 0);
|
|
3485
3489
|
}
|
|
3486
|
-
function
|
|
3487
|
-
return e == null ? !1 :
|
|
3490
|
+
function ke(e) {
|
|
3491
|
+
return e == null ? !1 : Ce(e).some(
|
|
3488
3492
|
(t) => {
|
|
3489
3493
|
var r;
|
|
3490
3494
|
return (r = jt(t)) == null ? void 0 : r.size;
|
|
3491
3495
|
}
|
|
3492
3496
|
);
|
|
3493
3497
|
}
|
|
3494
|
-
function
|
|
3498
|
+
function Ln(e, t) {
|
|
3495
3499
|
return Promise.all(
|
|
3496
|
-
t.map((n) => (
|
|
3500
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
|
3497
3501
|
).then((n) => Ft(e, ...n));
|
|
3498
3502
|
}
|
|
3499
|
-
const
|
|
3503
|
+
const ne = {};
|
|
3500
3504
|
function kt(e) {
|
|
3501
|
-
if (!
|
|
3502
|
-
return e in
|
|
3503
|
-
const t =
|
|
3504
|
-
return
|
|
3505
|
+
if (!ke(e))
|
|
3506
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3507
|
+
const t = Nn(e);
|
|
3508
|
+
return ne[e] = Promise.all(
|
|
3505
3509
|
t.map(
|
|
3506
|
-
([r, n]) =>
|
|
3510
|
+
([r, n]) => Ln(r, n)
|
|
3507
3511
|
)
|
|
3508
3512
|
).then(() => {
|
|
3509
|
-
if (
|
|
3513
|
+
if (ke(e))
|
|
3510
3514
|
return kt(e);
|
|
3511
|
-
delete
|
|
3512
|
-
}),
|
|
3515
|
+
delete ne[e];
|
|
3516
|
+
}), ne[e];
|
|
3513
3517
|
}
|
|
3514
|
-
const
|
|
3518
|
+
const In = {
|
|
3515
3519
|
number: {
|
|
3516
3520
|
scientific: { notation: "scientific" },
|
|
3517
3521
|
engineering: { notation: "engineering" },
|
|
@@ -3540,141 +3544,141 @@ const Ln = {
|
|
|
3540
3544
|
timeZoneName: "short"
|
|
3541
3545
|
}
|
|
3542
3546
|
}
|
|
3543
|
-
},
|
|
3547
|
+
}, Mn = {
|
|
3544
3548
|
fallbackLocale: null,
|
|
3545
3549
|
loadingDelay: 200,
|
|
3546
|
-
formats:
|
|
3550
|
+
formats: In,
|
|
3547
3551
|
warnOnMissingMessages: !0,
|
|
3548
3552
|
handleMissingMessage: void 0,
|
|
3549
3553
|
ignoreTag: !0
|
|
3550
|
-
},
|
|
3551
|
-
function
|
|
3552
|
-
return
|
|
3554
|
+
}, $n = Mn;
|
|
3555
|
+
function Y() {
|
|
3556
|
+
return $n;
|
|
3553
3557
|
}
|
|
3554
|
-
const
|
|
3555
|
-
var
|
|
3558
|
+
const Ne = xe(!1);
|
|
3559
|
+
var Rn = Object.defineProperty, Un = Object.defineProperties, Gn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Dn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jn = (e, t) => {
|
|
3556
3560
|
for (var r in t || (t = {}))
|
|
3557
|
-
|
|
3561
|
+
Dn.call(t, r) && ut(e, r, t[r]);
|
|
3558
3562
|
if (at)
|
|
3559
3563
|
for (var r of at(t))
|
|
3560
|
-
|
|
3564
|
+
Fn.call(t, r) && ut(e, r, t[r]);
|
|
3561
3565
|
return e;
|
|
3562
|
-
},
|
|
3563
|
-
let
|
|
3564
|
-
const
|
|
3566
|
+
}, kn = (e, t) => Un(e, Gn(t));
|
|
3567
|
+
let Ve;
|
|
3568
|
+
const _e = xe(null);
|
|
3565
3569
|
function ht(e) {
|
|
3566
3570
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3567
3571
|
}
|
|
3568
|
-
function
|
|
3572
|
+
function Ce(e, t = Y().fallbackLocale) {
|
|
3569
3573
|
const r = ht(e);
|
|
3570
3574
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3571
3575
|
}
|
|
3572
|
-
function
|
|
3573
|
-
return
|
|
3576
|
+
function V() {
|
|
3577
|
+
return Ve ?? void 0;
|
|
3574
3578
|
}
|
|
3575
|
-
|
|
3576
|
-
|
|
3579
|
+
_e.subscribe((e) => {
|
|
3580
|
+
Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3577
3581
|
});
|
|
3578
|
-
const
|
|
3579
|
-
if (e && wn(e) &&
|
|
3580
|
-
const { loadingDelay: t } =
|
|
3582
|
+
const Vn = (e) => {
|
|
3583
|
+
if (e && wn(e) && ke(e)) {
|
|
3584
|
+
const { loadingDelay: t } = Y();
|
|
3581
3585
|
let r;
|
|
3582
|
-
return typeof window < "u" &&
|
|
3583
|
-
() =>
|
|
3586
|
+
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
3587
|
+
() => Ne.set(!0),
|
|
3584
3588
|
t
|
|
3585
|
-
) :
|
|
3586
|
-
|
|
3589
|
+
) : Ne.set(!0), kt(e).then(() => {
|
|
3590
|
+
_e.set(e);
|
|
3587
3591
|
}).finally(() => {
|
|
3588
|
-
clearTimeout(r),
|
|
3592
|
+
clearTimeout(r), Ne.set(!1);
|
|
3589
3593
|
});
|
|
3590
3594
|
}
|
|
3591
|
-
return
|
|
3592
|
-
},
|
|
3593
|
-
set:
|
|
3594
|
-
}),
|
|
3595
|
+
return _e.set(e);
|
|
3596
|
+
}, te = kn(jn({}, _e), {
|
|
3597
|
+
set: Vn
|
|
3598
|
+
}), He = (e) => {
|
|
3595
3599
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3596
3600
|
return (n) => {
|
|
3597
3601
|
const i = JSON.stringify(n);
|
|
3598
3602
|
return i in t ? t[i] : t[i] = e(n);
|
|
3599
3603
|
};
|
|
3600
3604
|
};
|
|
3601
|
-
var
|
|
3605
|
+
var Xn = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Xn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3602
3606
|
for (var r in t || (t = {}))
|
|
3603
3607
|
Vt.call(t, r) && lt(e, r, t[r]);
|
|
3604
|
-
if (
|
|
3605
|
-
for (var r of
|
|
3608
|
+
if (Ee)
|
|
3609
|
+
for (var r of Ee(t))
|
|
3606
3610
|
Xt.call(t, r) && lt(e, r, t[r]);
|
|
3607
3611
|
return e;
|
|
3608
|
-
},
|
|
3612
|
+
}, re = (e, t) => {
|
|
3609
3613
|
var r = {};
|
|
3610
3614
|
for (var n in e)
|
|
3611
3615
|
Vt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3612
|
-
if (e != null &&
|
|
3613
|
-
for (var n of
|
|
3616
|
+
if (e != null && Ee)
|
|
3617
|
+
for (var n of Ee(e))
|
|
3614
3618
|
t.indexOf(n) < 0 && Xt.call(e, n) && (r[n] = e[n]);
|
|
3615
3619
|
return r;
|
|
3616
3620
|
};
|
|
3617
|
-
const
|
|
3618
|
-
const { formats: r } =
|
|
3621
|
+
const ae = (e, t) => {
|
|
3622
|
+
const { formats: r } = Y();
|
|
3619
3623
|
if (e in r && t in r[e])
|
|
3620
3624
|
return r[e][t];
|
|
3621
3625
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3622
|
-
},
|
|
3626
|
+
}, zn = He(
|
|
3623
3627
|
(e) => {
|
|
3624
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3628
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3625
3629
|
if (r == null)
|
|
3626
3630
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3627
|
-
return n && (i =
|
|
3631
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3628
3632
|
}
|
|
3629
|
-
),
|
|
3633
|
+
), Wn = He(
|
|
3630
3634
|
(e) => {
|
|
3631
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3635
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3632
3636
|
if (r == null)
|
|
3633
3637
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3634
|
-
return n ? i =
|
|
3638
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3635
3639
|
}
|
|
3636
|
-
),
|
|
3640
|
+
), Zn = He(
|
|
3637
3641
|
(e) => {
|
|
3638
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3642
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3639
3643
|
if (r == null)
|
|
3640
3644
|
throw new Error(
|
|
3641
3645
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3642
3646
|
);
|
|
3643
|
-
return n ? i =
|
|
3647
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3644
3648
|
}
|
|
3645
|
-
),
|
|
3646
|
-
var t = e, {
|
|
3647
|
-
locale: r = k()
|
|
3648
|
-
} = t, n = te(t, [
|
|
3649
|
-
"locale"
|
|
3650
|
-
]);
|
|
3651
|
-
return Xn(We({ locale: r }, n));
|
|
3652
|
-
}, Qn = (e = {}) => {
|
|
3649
|
+
), Qn = (e = {}) => {
|
|
3653
3650
|
var t = e, {
|
|
3654
|
-
locale: r =
|
|
3655
|
-
} = t, n =
|
|
3651
|
+
locale: r = V()
|
|
3652
|
+
} = t, n = re(t, [
|
|
3656
3653
|
"locale"
|
|
3657
3654
|
]);
|
|
3658
3655
|
return zn(We({ locale: r }, n));
|
|
3659
3656
|
}, Jn = (e = {}) => {
|
|
3660
3657
|
var t = e, {
|
|
3661
|
-
locale: r =
|
|
3662
|
-
} = t, n =
|
|
3658
|
+
locale: r = V()
|
|
3659
|
+
} = t, n = re(t, [
|
|
3663
3660
|
"locale"
|
|
3664
3661
|
]);
|
|
3665
3662
|
return Wn(We({ locale: r }, n));
|
|
3666
|
-
}, qn =
|
|
3663
|
+
}, qn = (e = {}) => {
|
|
3664
|
+
var t = e, {
|
|
3665
|
+
locale: r = V()
|
|
3666
|
+
} = t, n = re(t, [
|
|
3667
|
+
"locale"
|
|
3668
|
+
]);
|
|
3669
|
+
return Zn(We({ locale: r }, n));
|
|
3670
|
+
}, Yn = He(
|
|
3667
3671
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3668
|
-
(e, t =
|
|
3669
|
-
ignoreTag:
|
|
3672
|
+
(e, t = V()) => new Hn(e, t, Y().formats, {
|
|
3673
|
+
ignoreTag: Y().ignoreTag
|
|
3670
3674
|
})
|
|
3671
|
-
),
|
|
3675
|
+
), Kn = (e, t = {}) => {
|
|
3672
3676
|
var r, n, i, o;
|
|
3673
3677
|
let s = t;
|
|
3674
3678
|
typeof e == "object" && (s = e, e = s.id);
|
|
3675
3679
|
const {
|
|
3676
3680
|
values: u,
|
|
3677
|
-
locale: l =
|
|
3681
|
+
locale: l = V(),
|
|
3678
3682
|
default: a
|
|
3679
3683
|
} = s;
|
|
3680
3684
|
if (l == null)
|
|
@@ -3683,7 +3687,7 @@ const se = (e, t) => {
|
|
|
3683
3687
|
);
|
|
3684
3688
|
let h = Gt(e, l);
|
|
3685
3689
|
if (!h)
|
|
3686
|
-
h = (o = (i = (n = (r =
|
|
3690
|
+
h = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
|
3687
3691
|
else if (typeof h != "string")
|
|
3688
3692
|
return console.warn(
|
|
3689
3693
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3692,7 +3696,7 @@ const se = (e, t) => {
|
|
|
3692
3696
|
return h;
|
|
3693
3697
|
let c = h;
|
|
3694
3698
|
try {
|
|
3695
|
-
c =
|
|
3699
|
+
c = Yn(h, l).format(u);
|
|
3696
3700
|
} catch (f) {
|
|
3697
3701
|
f instanceof Error && console.warn(
|
|
3698
3702
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3700,16 +3704,16 @@ const se = (e, t) => {
|
|
|
3700
3704
|
);
|
|
3701
3705
|
}
|
|
3702
3706
|
return c;
|
|
3703
|
-
},
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3707
|
+
}, ei = (e, t) => qn(t).format(e), ti = (e, t) => Jn(t).format(e), ri = (e, t) => Qn(t).format(e), ni = (e, t = V()) => Gt(e, t), ii = ee([te, he], () => Kn);
|
|
3708
|
+
ee([te], () => ei);
|
|
3709
|
+
ee([te], () => ti);
|
|
3710
|
+
ee([te], () => ri);
|
|
3711
|
+
ee([te, he], () => ni);
|
|
3708
3712
|
function ft(e, t) {
|
|
3709
3713
|
Ft(e, t);
|
|
3710
3714
|
}
|
|
3711
|
-
function
|
|
3712
|
-
|
|
3715
|
+
function oi(e) {
|
|
3716
|
+
te.set(e);
|
|
3713
3717
|
}
|
|
3714
3718
|
const ct = {
|
|
3715
3719
|
en: {
|
|
@@ -3821,13 +3825,13 @@ const ct = {
|
|
|
3821
3825
|
games: "games"
|
|
3822
3826
|
}
|
|
3823
3827
|
};
|
|
3824
|
-
function
|
|
3828
|
+
function si(e, t) {
|
|
3825
3829
|
if (e) {
|
|
3826
3830
|
const r = document.createElement("style");
|
|
3827
3831
|
r.innerHTML = t, e.appendChild(r);
|
|
3828
3832
|
}
|
|
3829
3833
|
}
|
|
3830
|
-
function
|
|
3834
|
+
function ai(e, t) {
|
|
3831
3835
|
if (!e || !t)
|
|
3832
3836
|
return;
|
|
3833
3837
|
const r = new URL(t);
|
|
@@ -3838,7 +3842,7 @@ function si(e, t) {
|
|
|
3838
3842
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3839
3843
|
});
|
|
3840
3844
|
}
|
|
3841
|
-
function
|
|
3845
|
+
function ui(e, t, r) {
|
|
3842
3846
|
if (window.emMessageBus) {
|
|
3843
3847
|
const n = document.createElement("style");
|
|
3844
3848
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3846,7 +3850,7 @@ function ai(e, t, r) {
|
|
|
3846
3850
|
});
|
|
3847
3851
|
}
|
|
3848
3852
|
}
|
|
3849
|
-
function
|
|
3853
|
+
function hi(e) {
|
|
3850
3854
|
Jt(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
|
|
3851
3855
|
}
|
|
3852
3856
|
function gt(e, t, r) {
|
|
@@ -3857,20 +3861,20 @@ function mt(e, t, r) {
|
|
|
3857
3861
|
const n = e.slice();
|
|
3858
3862
|
return n[23] = t[r], n;
|
|
3859
3863
|
}
|
|
3860
|
-
function
|
|
3864
|
+
function li(e) {
|
|
3861
3865
|
let t, r, n = (
|
|
3862
3866
|
/*$_*/
|
|
3863
3867
|
e[5]("topCategories") + ""
|
|
3864
3868
|
), i, o, s, u, l = (
|
|
3865
3869
|
/*$_*/
|
|
3866
3870
|
e[5]("otherCategories") + ""
|
|
3867
|
-
), a, h, c =
|
|
3871
|
+
), a, h, c = ce(
|
|
3868
3872
|
/*topCategories*/
|
|
3869
3873
|
e[3]
|
|
3870
3874
|
), f = [];
|
|
3871
3875
|
for (let g = 0; g < c.length; g += 1)
|
|
3872
3876
|
f[g] = pt(mt(e, c, g));
|
|
3873
|
-
let p =
|
|
3877
|
+
let p = ce(
|
|
3874
3878
|
/*otherCategories*/
|
|
3875
3879
|
e[4]
|
|
3876
3880
|
), d = [];
|
|
@@ -3878,35 +3882,35 @@ function hi(e) {
|
|
|
3878
3882
|
d[g] = dt(gt(e, p, g));
|
|
3879
3883
|
return {
|
|
3880
3884
|
c() {
|
|
3881
|
-
t =
|
|
3885
|
+
t = B("div"), r = B("h4"), i = G(n), o = U();
|
|
3882
3886
|
for (let g = 0; g < f.length; g += 1)
|
|
3883
3887
|
f[g].c();
|
|
3884
|
-
s =
|
|
3888
|
+
s = U(), u = B("h4"), a = G(l), h = U();
|
|
3885
3889
|
for (let g = 0; g < d.length; g += 1)
|
|
3886
3890
|
d[g].c();
|
|
3887
3891
|
L(r, "class", "CategoryTitle"), L(u, "class", "CategoryTitle"), L(t, "class", "CasinoCategories");
|
|
3888
3892
|
},
|
|
3889
3893
|
m(g, E) {
|
|
3890
|
-
|
|
3894
|
+
K(g, t, E), x(t, r), x(r, i), x(t, o);
|
|
3891
3895
|
for (let m = 0; m < f.length; m += 1)
|
|
3892
3896
|
f[m] && f[m].m(t, null);
|
|
3893
|
-
|
|
3897
|
+
x(t, s), x(t, u), x(u, a), x(t, h);
|
|
3894
3898
|
for (let m = 0; m < d.length; m += 1)
|
|
3895
3899
|
d[m] && d[m].m(t, null);
|
|
3896
3900
|
},
|
|
3897
3901
|
p(g, E) {
|
|
3898
3902
|
if (E & /*$_*/
|
|
3899
3903
|
32 && n !== (n = /*$_*/
|
|
3900
|
-
g[5]("topCategories") + "") &&
|
|
3904
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
3901
3905
|
105) {
|
|
3902
|
-
c =
|
|
3906
|
+
c = ce(
|
|
3903
3907
|
/*topCategories*/
|
|
3904
3908
|
g[3]
|
|
3905
3909
|
);
|
|
3906
3910
|
let m;
|
|
3907
3911
|
for (m = 0; m < c.length; m += 1) {
|
|
3908
|
-
const
|
|
3909
|
-
f[m] ? f[m].p(
|
|
3912
|
+
const T = mt(g, c, m);
|
|
3913
|
+
f[m] ? f[m].p(T, E) : (f[m] = pt(T), f[m].c(), f[m].m(t, s));
|
|
3910
3914
|
}
|
|
3911
3915
|
for (; m < f.length; m += 1)
|
|
3912
3916
|
f[m].d(1);
|
|
@@ -3914,16 +3918,16 @@ function hi(e) {
|
|
|
3914
3918
|
}
|
|
3915
3919
|
if (E & /*$_*/
|
|
3916
3920
|
32 && l !== (l = /*$_*/
|
|
3917
|
-
g[5]("otherCategories") + "") &&
|
|
3921
|
+
g[5]("otherCategories") + "") && F(a, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
3918
3922
|
113) {
|
|
3919
|
-
p =
|
|
3923
|
+
p = ce(
|
|
3920
3924
|
/*otherCategories*/
|
|
3921
3925
|
g[4]
|
|
3922
3926
|
);
|
|
3923
3927
|
let m;
|
|
3924
3928
|
for (m = 0; m < p.length; m += 1) {
|
|
3925
|
-
const
|
|
3926
|
-
d[m] ? d[m].p(
|
|
3929
|
+
const T = gt(g, p, m);
|
|
3930
|
+
d[m] ? d[m].p(T, E) : (d[m] = dt(T), d[m].c(), d[m].m(t, null));
|
|
3927
3931
|
}
|
|
3928
3932
|
for (; m < d.length; m += 1)
|
|
3929
3933
|
d[m].d(1);
|
|
@@ -3931,22 +3935,22 @@ function hi(e) {
|
|
|
3931
3935
|
}
|
|
3932
3936
|
},
|
|
3933
3937
|
d(g) {
|
|
3934
|
-
g &&
|
|
3938
|
+
g && k(t), Je(f, g), Je(d, g);
|
|
3935
3939
|
}
|
|
3936
3940
|
};
|
|
3937
3941
|
}
|
|
3938
|
-
function
|
|
3942
|
+
function fi(e) {
|
|
3939
3943
|
let t;
|
|
3940
3944
|
return {
|
|
3941
3945
|
c() {
|
|
3942
|
-
t =
|
|
3946
|
+
t = B("p"), t.textContent = "Loading, please wait...", L(t, "class", "Message");
|
|
3943
3947
|
},
|
|
3944
3948
|
m(r, n) {
|
|
3945
|
-
|
|
3949
|
+
K(r, t, n);
|
|
3946
3950
|
},
|
|
3947
3951
|
p: N,
|
|
3948
3952
|
d(r) {
|
|
3949
|
-
r &&
|
|
3953
|
+
r && k(t);
|
|
3950
3954
|
}
|
|
3951
3955
|
};
|
|
3952
3956
|
}
|
|
@@ -3960,8 +3964,8 @@ function pt(e) {
|
|
|
3960
3964
|
), p, d, g = (
|
|
3961
3965
|
/*$_*/
|
|
3962
3966
|
e[5]("games") + ""
|
|
3963
|
-
), E, m,
|
|
3964
|
-
function
|
|
3967
|
+
), E, m, T, S;
|
|
3968
|
+
function w() {
|
|
3965
3969
|
return (
|
|
3966
3970
|
/*click_handler*/
|
|
3967
3971
|
e[15](
|
|
@@ -3972,33 +3976,33 @@ function pt(e) {
|
|
|
3972
3976
|
}
|
|
3973
3977
|
return {
|
|
3974
3978
|
c() {
|
|
3975
|
-
t =
|
|
3979
|
+
t = B("div"), r = B("ui-image"), o = U(), s = B("div"), u = B("p"), a = G(l), h = U(), c = B("p"), p = G(f), d = U(), E = G(g), be(r.src, n = /*category*/
|
|
3976
3980
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
3977
3981
|
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class", m = "Category " + /*activecategory*/
|
|
3978
3982
|
(e[0] === /*category*/
|
|
3979
3983
|
e[23].id ? "Active" : ""));
|
|
3980
3984
|
},
|
|
3981
|
-
m(
|
|
3982
|
-
|
|
3985
|
+
m(A, H) {
|
|
3986
|
+
K(A, t, H), x(t, r), x(t, o), x(t, s), x(s, u), x(u, a), x(s, h), x(s, c), x(c, p), x(c, d), x(c, E), T || (S = Et(t, "click", w), T = !0);
|
|
3983
3987
|
},
|
|
3984
|
-
p(
|
|
3985
|
-
e =
|
|
3986
|
-
8 && !
|
|
3988
|
+
p(A, H) {
|
|
3989
|
+
e = A, H & /*topCategories*/
|
|
3990
|
+
8 && !be(r.src, n = /*category*/
|
|
3987
3991
|
e[23].icon) && $(r, "src", n), H & /*topCategories*/
|
|
3988
3992
|
8 && i !== (i = /*category*/
|
|
3989
3993
|
e[23].name) && $(r, "alt", i), H & /*topCategories*/
|
|
3990
3994
|
8 && l !== (l = /*category*/
|
|
3991
|
-
e[23].name + "") &&
|
|
3995
|
+
e[23].name + "") && F(a, l), H & /*topCategories*/
|
|
3992
3996
|
8 && f !== (f = /*category*/
|
|
3993
|
-
e[23].games.count + "") &&
|
|
3997
|
+
e[23].games.count + "") && F(p, f), H & /*$_*/
|
|
3994
3998
|
32 && g !== (g = /*$_*/
|
|
3995
|
-
e[5]("games") + "") &&
|
|
3999
|
+
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
3996
4000
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
3997
4001
|
(e[0] === /*category*/
|
|
3998
4002
|
e[23].id ? "Active" : "")) && L(t, "class", m);
|
|
3999
4003
|
},
|
|
4000
|
-
d(
|
|
4001
|
-
|
|
4004
|
+
d(A) {
|
|
4005
|
+
A && k(t), T = !1, S();
|
|
4002
4006
|
}
|
|
4003
4007
|
};
|
|
4004
4008
|
}
|
|
@@ -4012,8 +4016,8 @@ function dt(e) {
|
|
|
4012
4016
|
), p, d, g = (
|
|
4013
4017
|
/*$_*/
|
|
4014
4018
|
e[5]("games") + ""
|
|
4015
|
-
), E, m,
|
|
4016
|
-
function
|
|
4019
|
+
), E, m, T, S, w;
|
|
4020
|
+
function A() {
|
|
4017
4021
|
return (
|
|
4018
4022
|
/*click_handler_1*/
|
|
4019
4023
|
e[16](
|
|
@@ -4024,51 +4028,51 @@ function dt(e) {
|
|
|
4024
4028
|
}
|
|
4025
4029
|
return {
|
|
4026
4030
|
c() {
|
|
4027
|
-
t =
|
|
4031
|
+
t = B("div"), r = B("ui-image"), o = U(), s = B("div"), u = B("p"), a = G(l), h = U(), c = B("p"), p = G(f), d = U(), E = G(g), m = U(), be(r.src, n = /*category*/
|
|
4028
4032
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4029
|
-
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class",
|
|
4033
|
+
e[23].name), $(r, "class", "CategoryImage"), L(s, "class", "CategoryTextContainer"), L(t, "class", T = "Category " + /*activecategory*/
|
|
4030
4034
|
(e[0] === /*category*/
|
|
4031
4035
|
e[23].id ? "Active" : ""));
|
|
4032
4036
|
},
|
|
4033
4037
|
m(H, P) {
|
|
4034
|
-
|
|
4038
|
+
K(H, t, P), x(t, r), x(t, o), x(t, s), x(s, u), x(u, a), x(s, h), x(s, c), x(c, p), x(c, d), x(c, E), x(t, m), S || (w = Et(t, "click", A), S = !0);
|
|
4035
4039
|
},
|
|
4036
4040
|
p(H, P) {
|
|
4037
4041
|
e = H, P & /*otherCategories*/
|
|
4038
|
-
16 && !
|
|
4042
|
+
16 && !be(r.src, n = /*category*/
|
|
4039
4043
|
e[23].icon) && $(r, "src", n), P & /*otherCategories*/
|
|
4040
4044
|
16 && i !== (i = /*category*/
|
|
4041
4045
|
e[23].name) && $(r, "alt", i), P & /*otherCategories*/
|
|
4042
4046
|
16 && l !== (l = /*category*/
|
|
4043
|
-
e[23].name + "") &&
|
|
4047
|
+
e[23].name + "") && F(a, l), P & /*otherCategories*/
|
|
4044
4048
|
16 && f !== (f = /*category*/
|
|
4045
|
-
e[23].games.count + "") &&
|
|
4049
|
+
e[23].games.count + "") && F(p, f), P & /*$_*/
|
|
4046
4050
|
32 && g !== (g = /*$_*/
|
|
4047
|
-
e[5]("games") + "") &&
|
|
4048
|
-
17 &&
|
|
4051
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4052
|
+
17 && T !== (T = "Category " + /*activecategory*/
|
|
4049
4053
|
(e[0] === /*category*/
|
|
4050
|
-
e[23].id ? "Active" : "")) && L(t, "class",
|
|
4054
|
+
e[23].id ? "Active" : "")) && L(t, "class", T);
|
|
4051
4055
|
},
|
|
4052
4056
|
d(H) {
|
|
4053
|
-
H &&
|
|
4057
|
+
H && k(t), S = !1, w();
|
|
4054
4058
|
}
|
|
4055
4059
|
};
|
|
4056
4060
|
}
|
|
4057
|
-
function
|
|
4061
|
+
function ci(e) {
|
|
4058
4062
|
let t;
|
|
4059
4063
|
function r(o, s) {
|
|
4060
4064
|
return (
|
|
4061
4065
|
/*isLoading*/
|
|
4062
|
-
o[2] ?
|
|
4066
|
+
o[2] ? fi : li
|
|
4063
4067
|
);
|
|
4064
4068
|
}
|
|
4065
4069
|
let n = r(e), i = n(e);
|
|
4066
4070
|
return {
|
|
4067
4071
|
c() {
|
|
4068
|
-
t =
|
|
4072
|
+
t = B("div"), i.c();
|
|
4069
4073
|
},
|
|
4070
4074
|
m(o, s) {
|
|
4071
|
-
|
|
4075
|
+
K(o, t, s), i.m(t, null), e[17](t);
|
|
4072
4076
|
},
|
|
4073
4077
|
p(o, [s]) {
|
|
4074
4078
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4076,47 +4080,47 @@ function fi(e) {
|
|
|
4076
4080
|
i: N,
|
|
4077
4081
|
o: N,
|
|
4078
4082
|
d(o) {
|
|
4079
|
-
o &&
|
|
4083
|
+
o && k(t), i.d(), e[17](null);
|
|
4080
4084
|
}
|
|
4081
4085
|
};
|
|
4082
4086
|
}
|
|
4083
|
-
function
|
|
4087
|
+
function gi(e, t, r) {
|
|
4084
4088
|
let n;
|
|
4085
|
-
Qt(e,
|
|
4089
|
+
Qt(e, ii, (b) => r(5, n = b));
|
|
4086
4090
|
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4087
4091
|
const g = [];
|
|
4088
4092
|
let E = [], m = [];
|
|
4089
4093
|
Object.keys(ct).forEach((b) => {
|
|
4090
4094
|
ft(b, ct[b]);
|
|
4091
4095
|
});
|
|
4092
|
-
const
|
|
4096
|
+
const T = () => {
|
|
4093
4097
|
fetch(c).then((M) => M.json()).then((M) => {
|
|
4094
|
-
Object.keys(M).forEach((
|
|
4095
|
-
ft(
|
|
4098
|
+
Object.keys(M).forEach((le) => {
|
|
4099
|
+
ft(le, M[le]);
|
|
4096
4100
|
});
|
|
4097
4101
|
}).catch((M) => {
|
|
4098
4102
|
console.log(M);
|
|
4099
4103
|
});
|
|
4100
|
-
},
|
|
4104
|
+
}, S = () => {
|
|
4101
4105
|
r(2, d = !0);
|
|
4102
4106
|
const b = new URL(`${i}/v1/casino/groups/${o}`);
|
|
4103
4107
|
b.searchParams.append("language", s), fetch(b).then((M) => M.json()).then((M) => {
|
|
4104
4108
|
r(2, d = !1);
|
|
4105
|
-
const
|
|
4109
|
+
const le = l.split(",").map((j) => j.trim());
|
|
4106
4110
|
g.push(...M.items);
|
|
4107
|
-
const Ze = g.filter((
|
|
4108
|
-
r(3, E = Ze.filter((
|
|
4111
|
+
const Ze = g.filter((j) => !le.some((Wt) => j.flags?.indexOf(Wt) >= 0));
|
|
4112
|
+
r(3, E = Ze.filter((j) => j.isTopCategory === !0)), r(4, m = Ze.filter((j) => j.isTopCategory === !1));
|
|
4109
4113
|
});
|
|
4110
|
-
},
|
|
4114
|
+
}, w = (b) => {
|
|
4111
4115
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4112
|
-
},
|
|
4113
|
-
|
|
4116
|
+
}, A = () => {
|
|
4117
|
+
oi(s);
|
|
4114
4118
|
};
|
|
4115
4119
|
rr(() => () => {
|
|
4116
4120
|
});
|
|
4117
|
-
const H = (b) =>
|
|
4121
|
+
const H = (b) => w(b.id), P = (b) => w(b.id);
|
|
4118
4122
|
function zt(b) {
|
|
4119
|
-
|
|
4123
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4120
4124
|
p = b, r(1, p);
|
|
4121
4125
|
});
|
|
4122
4126
|
}
|
|
@@ -4124,12 +4128,12 @@ function ci(e, t, r) {
|
|
|
4124
4128
|
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = 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, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4125
4129
|
}, e.$$.update = () => {
|
|
4126
4130
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4127
|
-
384 && i && o &&
|
|
4128
|
-
8192 && c &&
|
|
4129
|
-
512 && s &&
|
|
4130
|
-
2050 && a && p &&
|
|
4131
|
-
4098 && h && p &&
|
|
4132
|
-
16386 && f && p &&
|
|
4131
|
+
384 && i && o && S(), e.$$.dirty & /*translationurl*/
|
|
4132
|
+
8192 && c && T(), e.$$.dirty & /*lang*/
|
|
4133
|
+
512 && s && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4134
|
+
2050 && a && p && si(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4135
|
+
4098 && h && p && ai(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4136
|
+
16386 && f && p && ui(p, `${f}.Style`);
|
|
4133
4137
|
}, [
|
|
4134
4138
|
u,
|
|
4135
4139
|
p,
|
|
@@ -4137,7 +4141,7 @@ function ci(e, t, r) {
|
|
|
4137
4141
|
E,
|
|
4138
4142
|
m,
|
|
4139
4143
|
n,
|
|
4140
|
-
|
|
4144
|
+
w,
|
|
4141
4145
|
i,
|
|
4142
4146
|
o,
|
|
4143
4147
|
s,
|
|
@@ -4151,14 +4155,14 @@ function ci(e, t, r) {
|
|
|
4151
4155
|
zt
|
|
4152
4156
|
];
|
|
4153
4157
|
}
|
|
4154
|
-
class
|
|
4158
|
+
class mi extends mr {
|
|
4155
4159
|
constructor(t) {
|
|
4156
4160
|
super(), cr(
|
|
4157
4161
|
this,
|
|
4158
4162
|
t,
|
|
4163
|
+
gi,
|
|
4159
4164
|
ci,
|
|
4160
|
-
|
|
4161
|
-
_t,
|
|
4165
|
+
yt,
|
|
4162
4166
|
{
|
|
4163
4167
|
endpoint: 7,
|
|
4164
4168
|
datasource: 8,
|
|
@@ -4170,7 +4174,7 @@ class gi extends mr {
|
|
|
4170
4174
|
translationurl: 13,
|
|
4171
4175
|
mbsource: 14
|
|
4172
4176
|
},
|
|
4173
|
-
|
|
4177
|
+
hi
|
|
4174
4178
|
);
|
|
4175
4179
|
}
|
|
4176
4180
|
get endpoint() {
|
|
@@ -4228,7 +4232,7 @@ class gi extends mr {
|
|
|
4228
4232
|
this.$$set({ mbsource: t }), I();
|
|
4229
4233
|
}
|
|
4230
4234
|
}
|
|
4231
|
-
gr(
|
|
4235
|
+
gr(mi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4232
4236
|
export {
|
|
4233
|
-
|
|
4237
|
+
mi as C
|
|
4234
4238
|
};
|