@everymatrix/casino-navigation-search 1.65.0 → 1.65.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategories-vJDFiokX.js → CasinoCategories-Bc3wOQFl.js} +673 -705
- package/components/{CasinoCategories-qe_8SMsK.js → CasinoCategories-DH7cyi0n.js} +553 -585
- package/components/CasinoCategories-DZkWJnqU.cjs +3 -0
- package/components/{CasinoCategoriesProviders-BbdNPZXf.js → CasinoCategoriesProviders-B3QP77SJ.js} +28 -28
- package/components/{CasinoCategoriesProviders-BnDpPhED.js → CasinoCategoriesProviders-D_iuPTcy.js} +28 -28
- package/components/{CasinoCategoriesProviders-CTyUXi5D.cjs → CasinoCategoriesProviders-Dhq1LYjZ.cjs} +1 -1
- package/components/{CasinoGameThumbnail-BEzLfFws.js → CasinoGameThumbnail-B13-KVOH.js} +1450 -1401
- package/components/{CasinoGameThumbnail-CfDykAO3.js → CasinoGameThumbnail-BvpZSjI_.js} +1445 -1396
- package/components/CasinoGameThumbnail-C8J7v9u0.cjs +62 -0
- package/components/{CasinoNavigationSearch-0A9M_NYo.cjs → CasinoNavigationSearch-BMMNRfyL.cjs} +1 -1
- package/components/{CasinoNavigationSearch--vtmGvwI.js → CasinoNavigationSearch-C2ElnZfX.js} +14 -14
- package/components/{CasinoNavigationSearch-G4UV-j-i.js → CasinoNavigationSearch-_nGuE5Hh.js} +16 -16
- package/components/{CasinoProviders-DDxvg7IO.js → CasinoProviders-B65SQGpM.js} +68 -68
- package/components/{CasinoProviders-m9lwRucw.js → CasinoProviders-ClmiRtCg.js} +68 -68
- package/components/{CasinoProviders-DI_HaxOA.cjs → CasinoProviders-DV8kZMj3.cjs} +1 -1
- package/components/{CasinoSearch-j5OXgh9J.js → CasinoSearch-C35N7qkN.js} +58 -58
- package/components/{CasinoSearch-DPFvEzqM.js → CasinoSearch-DYFVarY0.js} +58 -58
- package/components/{CasinoSearch-CMWLt6cD.cjs → CasinoSearch-DZdkS4Da.cjs} +1 -1
- package/es2015/casino-navigation-search.cjs +1 -1
- package/es2015/casino-navigation-search.js +1 -1
- package/esnext/casino-navigation-search.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BEnqZAxL.js +558 -0
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/index-97d17652-WK_DbPS4.js +542 -0
- package/stencil/{ui-image-DzutkFSv.cjs → ui-image-CMb1eK44.cjs} +1 -1
- package/stencil/{ui-image-BmTbGz5h.js → ui-image-CQQDA5b0.js} +1 -1
- package/stencil/{ui-image-CFddgpOe.js → ui-image-CmwNU-jf.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-7wF4sIlr.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DQE3WxuL.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-kIlLPkYB.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-oohpKuRS.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-Db7N7hzA.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CJHJWEhi.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/components/CasinoCategories-Cj2JQ2lY.cjs +0 -16
- package/components/CasinoGameThumbnail-DdjKPpYU.cjs +0 -49
- package/stencil/index-97d17652-BzQXAkmg.js +0 -558
- package/stencil/index-97d17652-DYGS0vqJ.cjs +0 -1
- package/stencil/index-97d17652-mbOyENH9.js +0 -542
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-image-CmwNU-jf.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 _t(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
|
-
function
|
|
23
|
+
function Jt(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function yt(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -33,7 +33,7 @@ function _t(e, ...t) {
|
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
35
|
function Yt(e, t, r) {
|
|
36
|
-
e.$$.on_destroy.push(
|
|
36
|
+
e.$$.on_destroy.push(yt(t, r));
|
|
37
37
|
}
|
|
38
38
|
function v(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
@@ -41,7 +41,7 @@ function v(e, t) {
|
|
|
41
41
|
function Kt(e, t, r) {
|
|
42
42
|
const n = er(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
44
|
+
const i = A("style");
|
|
45
45
|
i.id = t, i.textContent = r, tr(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -62,30 +62,30 @@ function tr(e, t) {
|
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function V(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function j(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function qe(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 A(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
78
|
function rr(e) {
|
|
79
79
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function G(e) {
|
|
82
82
|
return document.createTextNode(e);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function U() {
|
|
85
|
+
return G(" ");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function bi() {
|
|
88
|
+
return G("");
|
|
89
89
|
}
|
|
90
90
|
function Et(e, t, r, n) {
|
|
91
91
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -100,17 +100,17 @@ function $(e, t, r) {
|
|
|
100
100
|
function nr(e) {
|
|
101
101
|
return Array.from(e.childNodes);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function F(e, t) {
|
|
104
104
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
105
105
|
t);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function _i(e, t) {
|
|
108
108
|
e.value = t ?? "";
|
|
109
109
|
}
|
|
110
110
|
function yi(e, t, r) {
|
|
111
111
|
e.classList.toggle(t, !!r);
|
|
112
112
|
}
|
|
113
|
-
class
|
|
113
|
+
class Ei {
|
|
114
114
|
/**
|
|
115
115
|
* @private
|
|
116
116
|
* @default false
|
|
@@ -144,7 +144,7 @@ class _i {
|
|
|
144
144
|
this.e || (this.is_svg ? this.e = rr(
|
|
145
145
|
/** @type {keyof SVGElementTagNameMap} */
|
|
146
146
|
r.nodeName
|
|
147
|
-
) : this.e =
|
|
147
|
+
) : this.e = A(
|
|
148
148
|
/** @type {keyof HTMLElementTagNameMap} */
|
|
149
149
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
150
150
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
@@ -165,7 +165,7 @@ class _i {
|
|
|
165
165
|
* @returns {void} */
|
|
166
166
|
i(t) {
|
|
167
167
|
for (let r = 0; r < this.n.length; r += 1)
|
|
168
|
-
|
|
168
|
+
V(this.t, this.n[r], t);
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
171
|
* @param {string} html
|
|
@@ -177,7 +177,7 @@ class _i {
|
|
|
177
177
|
/**
|
|
178
178
|
* @returns {void} */
|
|
179
179
|
d() {
|
|
180
|
-
this.n.forEach(
|
|
180
|
+
this.n.forEach(j);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
function ir(e) {
|
|
@@ -189,94 +189,94 @@ function ir(e) {
|
|
|
189
189
|
}
|
|
190
190
|
), t;
|
|
191
191
|
}
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
|
|
192
|
+
let se;
|
|
193
|
+
function ie(e) {
|
|
194
|
+
se = e;
|
|
195
195
|
}
|
|
196
196
|
function sr() {
|
|
197
|
-
if (!
|
|
197
|
+
if (!se)
|
|
198
198
|
throw new Error("Function called outside component initialization");
|
|
199
|
-
return
|
|
199
|
+
return se;
|
|
200
200
|
}
|
|
201
201
|
function or(e) {
|
|
202
202
|
sr().$$.on_mount.push(e);
|
|
203
203
|
}
|
|
204
|
-
const
|
|
205
|
-
let
|
|
206
|
-
const
|
|
207
|
-
let
|
|
208
|
-
function
|
|
209
|
-
|
|
204
|
+
const Z = [], Le = [];
|
|
205
|
+
let Q = [];
|
|
206
|
+
const Je = [], vt = /* @__PURE__ */ Promise.resolve();
|
|
207
|
+
let Ie = !1;
|
|
208
|
+
function xt() {
|
|
209
|
+
Ie || (Ie = !0, vt.then(I));
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
211
|
+
function vi() {
|
|
212
|
+
return xt(), vt;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
|
|
214
|
+
function Me(e) {
|
|
215
|
+
Q.push(e);
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
let
|
|
217
|
+
const Se = /* @__PURE__ */ new Set();
|
|
218
|
+
let z = 0;
|
|
219
219
|
function I() {
|
|
220
|
-
if (
|
|
220
|
+
if (z !== 0)
|
|
221
221
|
return;
|
|
222
|
-
const e =
|
|
222
|
+
const e = se;
|
|
223
223
|
do {
|
|
224
224
|
try {
|
|
225
|
-
for (;
|
|
226
|
-
const t =
|
|
227
|
-
|
|
225
|
+
for (; z < Z.length; ) {
|
|
226
|
+
const t = Z[z];
|
|
227
|
+
z++, ie(t), ar(t.$$);
|
|
228
228
|
}
|
|
229
229
|
} catch (t) {
|
|
230
|
-
throw
|
|
230
|
+
throw Z.length = 0, z = 0, t;
|
|
231
231
|
}
|
|
232
|
-
for (
|
|
233
|
-
|
|
234
|
-
for (let t = 0; t <
|
|
235
|
-
const r =
|
|
236
|
-
|
|
232
|
+
for (ie(null), Z.length = 0, z = 0; Le.length; )
|
|
233
|
+
Le.pop()();
|
|
234
|
+
for (let t = 0; t < Q.length; t += 1) {
|
|
235
|
+
const r = Q[t];
|
|
236
|
+
Se.has(r) || (Se.add(r), r());
|
|
237
237
|
}
|
|
238
|
-
|
|
239
|
-
} while (
|
|
240
|
-
for (;
|
|
241
|
-
|
|
242
|
-
|
|
238
|
+
Q.length = 0;
|
|
239
|
+
} while (Z.length);
|
|
240
|
+
for (; Je.length; )
|
|
241
|
+
Je.pop()();
|
|
242
|
+
Ie = !1, Se.clear(), ie(e);
|
|
243
243
|
}
|
|
244
244
|
function ar(e) {
|
|
245
245
|
if (e.fragment !== null) {
|
|
246
|
-
e.update(),
|
|
246
|
+
e.update(), ue(e.before_update);
|
|
247
247
|
const t = e.dirty;
|
|
248
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
248
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
function ur(e) {
|
|
252
252
|
const t = [], r = [];
|
|
253
|
-
|
|
253
|
+
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
254
254
|
}
|
|
255
255
|
const hr = /* @__PURE__ */ new Set();
|
|
256
256
|
function lr(e, t) {
|
|
257
257
|
e && e.i && (hr.delete(e), e.i(t));
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function ce(e) {
|
|
260
260
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
261
261
|
}
|
|
262
262
|
function fr(e, t, r) {
|
|
263
263
|
const { fragment: n, after_update: i } = e.$$;
|
|
264
|
-
n && n.m(t, r),
|
|
265
|
-
const s = e.$$.on_mount.map(bt).filter(
|
|
266
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
267
|
-
}), i.forEach(
|
|
264
|
+
n && n.m(t, r), Me(() => {
|
|
265
|
+
const s = e.$$.on_mount.map(bt).filter(Xe);
|
|
266
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ue(s), e.$$.on_mount = [];
|
|
267
|
+
}), i.forEach(Me);
|
|
268
268
|
}
|
|
269
269
|
function cr(e, t) {
|
|
270
270
|
const r = e.$$;
|
|
271
|
-
r.fragment !== null && (ur(r.after_update),
|
|
271
|
+
r.fragment !== null && (ur(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
272
272
|
}
|
|
273
273
|
function gr(e, t) {
|
|
274
|
-
e.$$.dirty[0] === -1 && (
|
|
274
|
+
e.$$.dirty[0] === -1 && (Z.push(e), xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
275
275
|
}
|
|
276
|
-
function mr(e, t, r, n, i, s, o = null,
|
|
277
|
-
const l =
|
|
278
|
-
|
|
279
|
-
const
|
|
276
|
+
function mr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
277
|
+
const l = se;
|
|
278
|
+
ie(e);
|
|
279
|
+
const a = e.$$ = {
|
|
280
280
|
fragment: null,
|
|
281
281
|
ctx: [],
|
|
282
282
|
// state
|
|
@@ -293,24 +293,24 @@ function mr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
293
293
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
294
294
|
// everything else
|
|
295
295
|
callbacks: Qe(),
|
|
296
|
-
dirty:
|
|
296
|
+
dirty: u,
|
|
297
297
|
skip_bound: !1,
|
|
298
298
|
root: t.target || l.$$.root
|
|
299
299
|
};
|
|
300
|
-
o && o(
|
|
300
|
+
o && o(a.root);
|
|
301
301
|
let h = !1;
|
|
302
|
-
if (
|
|
302
|
+
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
303
303
|
const d = p.length ? p[0] : f;
|
|
304
|
-
return
|
|
305
|
-
}) : [],
|
|
304
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h && gr(e, c)), f;
|
|
305
|
+
}) : [], a.update(), h = !0, ue(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
306
306
|
if (t.hydrate) {
|
|
307
307
|
const c = nr(t.target);
|
|
308
|
-
|
|
308
|
+
a.fragment && a.fragment.l(c), c.forEach(j);
|
|
309
309
|
} else
|
|
310
|
-
|
|
310
|
+
a.fragment && a.fragment.c();
|
|
311
311
|
t.intro && lr(e.$$.fragment), fr(e, t.target, t.anchor), I();
|
|
312
312
|
}
|
|
313
|
-
|
|
313
|
+
ie(l);
|
|
314
314
|
}
|
|
315
315
|
let Tt;
|
|
316
316
|
typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
@@ -355,17 +355,17 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
355
355
|
let s;
|
|
356
356
|
return {
|
|
357
357
|
c: function() {
|
|
358
|
-
s =
|
|
358
|
+
s = A("slot"), i !== "default" && L(s, "name", i);
|
|
359
359
|
},
|
|
360
360
|
/**
|
|
361
361
|
* @param {HTMLElement} target
|
|
362
362
|
* @param {HTMLElement} [anchor]
|
|
363
363
|
*/
|
|
364
|
-
m: function(l,
|
|
365
|
-
|
|
364
|
+
m: function(l, a) {
|
|
365
|
+
V(l, s, a);
|
|
366
366
|
},
|
|
367
367
|
d: function(l) {
|
|
368
|
-
l &&
|
|
368
|
+
l && j(s);
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
371
|
};
|
|
@@ -377,7 +377,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
377
377
|
i in r && (t[i] = [e(i)]);
|
|
378
378
|
for (const i of this.attributes) {
|
|
379
379
|
const s = this.$$g_p(i.name);
|
|
380
|
-
s in this.$$d || (this.$$d[s] =
|
|
380
|
+
s in this.$$d || (this.$$d[s] = me(s, i.value, this.$$p_d, "toProp"));
|
|
381
381
|
}
|
|
382
382
|
for (const i in this.$$p_d)
|
|
383
383
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -395,7 +395,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
395
395
|
this.$$r = !0;
|
|
396
396
|
for (const i in this.$$p_d)
|
|
397
397
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
398
|
-
const s =
|
|
398
|
+
const s = me(
|
|
399
399
|
i,
|
|
400
400
|
this.$$d[i],
|
|
401
401
|
this.$$p_d,
|
|
@@ -417,7 +417,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
417
417
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
418
418
|
// and setting attributes through setAttribute etc, this is helpful
|
|
419
419
|
attributeChangedCallback(e, t, r) {
|
|
420
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
420
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
421
421
|
}
|
|
422
422
|
disconnectedCallback() {
|
|
423
423
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -430,7 +430,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
430
430
|
) || e;
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
|
-
function
|
|
433
|
+
function me(e, t, r, n) {
|
|
434
434
|
const i = r[e]?.type;
|
|
435
435
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
436
436
|
return t;
|
|
@@ -466,23 +466,23 @@ function pr(e, t, r, n, i, s) {
|
|
|
466
466
|
}
|
|
467
467
|
static get observedAttributes() {
|
|
468
468
|
return Object.keys(t).map(
|
|
469
|
-
(
|
|
469
|
+
(u) => (t[u].attribute || u).toLowerCase()
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
|
-
return Object.keys(t).forEach((
|
|
474
|
-
Object.defineProperty(o.prototype,
|
|
473
|
+
return Object.keys(t).forEach((u) => {
|
|
474
|
+
Object.defineProperty(o.prototype, u, {
|
|
475
475
|
get() {
|
|
476
|
-
return this.$$c &&
|
|
476
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
477
477
|
},
|
|
478
478
|
set(l) {
|
|
479
|
-
l =
|
|
479
|
+
l = me(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
|
-
}), n.forEach((
|
|
483
|
-
Object.defineProperty(o.prototype,
|
|
482
|
+
}), n.forEach((u) => {
|
|
483
|
+
Object.defineProperty(o.prototype, u, {
|
|
484
484
|
get() {
|
|
485
|
-
return this.$$c?.[
|
|
485
|
+
return this.$$c?.[u];
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
}), e.element = /** @type {any} */
|
|
@@ -516,7 +516,7 @@ class dr {
|
|
|
516
516
|
* @returns {() => void}
|
|
517
517
|
*/
|
|
518
518
|
$on(t, r) {
|
|
519
|
-
if (!
|
|
519
|
+
if (!Xe(r))
|
|
520
520
|
return N;
|
|
521
521
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
522
522
|
return n.push(r), () => {
|
|
@@ -529,18 +529,18 @@ class dr {
|
|
|
529
529
|
* @returns {void}
|
|
530
530
|
*/
|
|
531
531
|
$set(t) {
|
|
532
|
-
this.$$set && !
|
|
532
|
+
this.$$set && !Jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
const br = "4";
|
|
536
536
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(br);
|
|
537
|
-
function
|
|
537
|
+
function _r(e, t) {
|
|
538
538
|
if (e) {
|
|
539
539
|
const r = document.createElement("style");
|
|
540
540
|
r.innerHTML = t, e.appendChild(r);
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function yr(e, t) {
|
|
544
544
|
const r = new URL(t);
|
|
545
545
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
546
546
|
const i = document.createElement("style");
|
|
@@ -557,58 +557,58 @@ function Er(e, t, r) {
|
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
const
|
|
561
|
-
function
|
|
560
|
+
const W = [];
|
|
561
|
+
function vr(e, t) {
|
|
562
562
|
return {
|
|
563
|
-
subscribe:
|
|
563
|
+
subscribe: ve(e, t).subscribe
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function ve(e, t = N) {
|
|
567
567
|
let r;
|
|
568
568
|
const n = /* @__PURE__ */ new Set();
|
|
569
|
-
function i(
|
|
570
|
-
if (
|
|
571
|
-
const l = !
|
|
572
|
-
for (const
|
|
573
|
-
|
|
569
|
+
function i(u) {
|
|
570
|
+
if (_t(e, u) && (e = u, r)) {
|
|
571
|
+
const l = !W.length;
|
|
572
|
+
for (const a of n)
|
|
573
|
+
a[1](), W.push(a, e);
|
|
574
574
|
if (l) {
|
|
575
|
-
for (let
|
|
576
|
-
|
|
577
|
-
|
|
575
|
+
for (let a = 0; a < W.length; a += 2)
|
|
576
|
+
W[a][0](W[a + 1]);
|
|
577
|
+
W.length = 0;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function s(
|
|
582
|
-
i(
|
|
581
|
+
function s(u) {
|
|
582
|
+
i(u(e));
|
|
583
583
|
}
|
|
584
|
-
function o(
|
|
585
|
-
const
|
|
586
|
-
return n.add(
|
|
587
|
-
n.delete(
|
|
584
|
+
function o(u, l = N) {
|
|
585
|
+
const a = [u, l];
|
|
586
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || N), u(e), () => {
|
|
587
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
590
|
return { set: i, update: s, subscribe: o };
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function ee(e, t, r) {
|
|
593
593
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
594
594
|
if (!i.every(Boolean))
|
|
595
595
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
596
596
|
const s = t.length < 2;
|
|
597
|
-
return
|
|
597
|
+
return vr(r, (o, u) => {
|
|
598
598
|
let l = !1;
|
|
599
|
-
const
|
|
599
|
+
const a = [];
|
|
600
600
|
let h = 0, c = N;
|
|
601
601
|
const f = () => {
|
|
602
602
|
if (h)
|
|
603
603
|
return;
|
|
604
604
|
c();
|
|
605
|
-
const d = t(n ?
|
|
606
|
-
s ? o(d) : c =
|
|
605
|
+
const d = t(n ? a[0] : a, o, u);
|
|
606
|
+
s ? o(d) : c = Xe(d) ? d : N;
|
|
607
607
|
}, p = i.map(
|
|
608
|
-
(d, g) =>
|
|
608
|
+
(d, g) => yt(
|
|
609
609
|
d,
|
|
610
|
-
(
|
|
611
|
-
|
|
610
|
+
(E) => {
|
|
611
|
+
a[g] = E, h &= ~(1 << g), l && f();
|
|
612
612
|
},
|
|
613
613
|
() => {
|
|
614
614
|
h |= 1 << g;
|
|
@@ -616,11 +616,11 @@ function K(e, t, r) {
|
|
|
616
616
|
)
|
|
617
617
|
);
|
|
618
618
|
return l = !0, f(), function() {
|
|
619
|
-
|
|
619
|
+
ue(p), c(), l = !1;
|
|
620
620
|
};
|
|
621
621
|
});
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function xr(e) {
|
|
624
624
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
625
625
|
}
|
|
626
626
|
var Tr = function(t) {
|
|
@@ -633,26 +633,26 @@ function Hr(e) {
|
|
|
633
633
|
var t = Object.prototype.toString.call(e);
|
|
634
634
|
return t === "[object RegExp]" || t === "[object Date]" || Br(e);
|
|
635
635
|
}
|
|
636
|
-
var
|
|
636
|
+
var Sr = typeof Symbol == "function" && Symbol.for, Ar = Sr ? Symbol.for("react.element") : 60103;
|
|
637
637
|
function Br(e) {
|
|
638
|
-
return e.$$typeof ===
|
|
638
|
+
return e.$$typeof === Ar;
|
|
639
639
|
}
|
|
640
640
|
function wr(e) {
|
|
641
641
|
return Array.isArray(e) ? [] : {};
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
643
|
+
function oe(e, t) {
|
|
644
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(wr(e), e, t) : e;
|
|
645
645
|
}
|
|
646
646
|
function Or(e, t, r) {
|
|
647
647
|
return e.concat(t).map(function(n) {
|
|
648
|
-
return
|
|
648
|
+
return oe(n, r);
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
function Pr(e, t) {
|
|
652
652
|
if (!t.customMerge)
|
|
653
|
-
return
|
|
653
|
+
return q;
|
|
654
654
|
var r = t.customMerge(e);
|
|
655
|
-
return typeof r == "function" ? r :
|
|
655
|
+
return typeof r == "function" ? r : q;
|
|
656
656
|
}
|
|
657
657
|
function Nr(e) {
|
|
658
658
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -675,65 +675,51 @@ function Lr(e, t) {
|
|
|
675
675
|
function Ir(e, t, r) {
|
|
676
676
|
var n = {};
|
|
677
677
|
return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
|
|
678
|
-
n[i] =
|
|
678
|
+
n[i] = oe(e[i], r);
|
|
679
679
|
}), Ye(t).forEach(function(i) {
|
|
680
|
-
Lr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] =
|
|
680
|
+
Lr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
681
681
|
}), n;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified =
|
|
683
|
+
function q(e, t, r) {
|
|
684
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Tr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
685
685
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
686
|
-
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) :
|
|
686
|
+
return s ? n ? r.arrayMerge(e, t, r) : Ir(e, t, r) : oe(t, r);
|
|
687
687
|
}
|
|
688
|
-
|
|
688
|
+
q.all = function(t, r) {
|
|
689
689
|
if (!Array.isArray(t))
|
|
690
690
|
throw new Error("first argument should be an array");
|
|
691
691
|
return t.reduce(function(n, i) {
|
|
692
|
-
return
|
|
692
|
+
return q(n, i, r);
|
|
693
693
|
}, {});
|
|
694
694
|
};
|
|
695
|
-
var Mr =
|
|
696
|
-
const Rr = /* @__PURE__ */
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
701
|
-
purpose with or without fee is hereby granted.
|
|
702
|
-
|
|
703
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
704
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
705
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
706
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
707
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
708
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
709
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
710
|
-
***************************************************************************** */
|
|
711
|
-
var Ie = function(e, t) {
|
|
712
|
-
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
695
|
+
var Mr = q, $r = Mr;
|
|
696
|
+
const Rr = /* @__PURE__ */ xr($r);
|
|
697
|
+
var $e = function(e, t) {
|
|
698
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
713
699
|
r.__proto__ = n;
|
|
714
700
|
} || function(r, n) {
|
|
715
701
|
for (var i in n)
|
|
716
702
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
717
|
-
},
|
|
703
|
+
}, $e(e, t);
|
|
718
704
|
};
|
|
719
|
-
function
|
|
705
|
+
function xe(e, t) {
|
|
720
706
|
if (typeof t != "function" && t !== null)
|
|
721
707
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
722
|
-
|
|
708
|
+
$e(e, t);
|
|
723
709
|
function r() {
|
|
724
710
|
this.constructor = e;
|
|
725
711
|
}
|
|
726
712
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
727
713
|
}
|
|
728
|
-
var
|
|
729
|
-
return
|
|
714
|
+
var R = function() {
|
|
715
|
+
return R = Object.assign || function(t) {
|
|
730
716
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
731
717
|
r = arguments[n];
|
|
732
718
|
for (var s in r)
|
|
733
719
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
734
720
|
}
|
|
735
721
|
return t;
|
|
736
|
-
},
|
|
722
|
+
}, R.apply(this, arguments);
|
|
737
723
|
};
|
|
738
724
|
function Ur(e, t) {
|
|
739
725
|
var r = {};
|
|
@@ -744,46 +730,14 @@ function Ur(e, t) {
|
|
|
744
730
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
745
731
|
return r;
|
|
746
732
|
}
|
|
747
|
-
function
|
|
748
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
749
|
-
if (r)
|
|
750
|
-
return r.call(e);
|
|
751
|
-
if (e && typeof e.length == "number")
|
|
752
|
-
return {
|
|
753
|
-
next: function() {
|
|
754
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
755
|
-
}
|
|
756
|
-
};
|
|
757
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
758
|
-
}
|
|
759
|
-
function vi(e, t) {
|
|
760
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
761
|
-
if (!r)
|
|
762
|
-
return e;
|
|
763
|
-
var n = r.call(e), i, s = [], o;
|
|
764
|
-
try {
|
|
765
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
766
|
-
s.push(i.value);
|
|
767
|
-
} catch (a) {
|
|
768
|
-
o = { error: a };
|
|
769
|
-
} finally {
|
|
770
|
-
try {
|
|
771
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
772
|
-
} finally {
|
|
773
|
-
if (o)
|
|
774
|
-
throw o.error;
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
return s;
|
|
778
|
-
}
|
|
779
|
-
function He(e, t, r) {
|
|
733
|
+
function Ae(e, t, r) {
|
|
780
734
|
if (r || arguments.length === 2)
|
|
781
735
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
782
736
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
783
|
-
return e.concat(s || t);
|
|
737
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
784
738
|
}
|
|
785
|
-
function
|
|
786
|
-
var r = t && t.cache ? t.cache :
|
|
739
|
+
function Be(e, t) {
|
|
740
|
+
var r = t && t.cache ? t.cache : Xr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
787
741
|
return i(e, {
|
|
788
742
|
cache: r,
|
|
789
743
|
serializer: n
|
|
@@ -792,95 +746,103 @@ function Ae(e, t) {
|
|
|
792
746
|
function Gr(e) {
|
|
793
747
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
794
748
|
}
|
|
795
|
-
function
|
|
749
|
+
function Dr(e, t, r, n) {
|
|
796
750
|
var i = Gr(n) ? n : r(n), s = t.get(i);
|
|
797
751
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
798
752
|
}
|
|
799
|
-
function
|
|
753
|
+
function Ht(e, t, r) {
|
|
800
754
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
801
755
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
802
756
|
}
|
|
803
|
-
function
|
|
757
|
+
function St(e, t, r, n, i) {
|
|
804
758
|
return r.bind(t, e, n, i);
|
|
805
759
|
}
|
|
806
|
-
function Dr(e, t) {
|
|
807
|
-
var r = e.length === 1 ? Ht : At;
|
|
808
|
-
return Ve(e, this, r, t.cache.create(), t.serializer);
|
|
809
|
-
}
|
|
810
760
|
function Fr(e, t) {
|
|
811
|
-
|
|
761
|
+
var r = e.length === 1 ? Dr : Ht;
|
|
762
|
+
return St(e, this, r, t.cache.create(), t.serializer);
|
|
812
763
|
}
|
|
813
764
|
function jr(e, t) {
|
|
814
|
-
return
|
|
765
|
+
return St(e, this, Ht, t.cache.create(), t.serializer);
|
|
815
766
|
}
|
|
816
767
|
var kr = function() {
|
|
817
768
|
return JSON.stringify(arguments);
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
769
|
+
}, Vr = (
|
|
770
|
+
/** @class */
|
|
771
|
+
function() {
|
|
772
|
+
function e() {
|
|
773
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
774
|
+
}
|
|
775
|
+
return e.prototype.get = function(t) {
|
|
776
|
+
return this.cache[t];
|
|
777
|
+
}, e.prototype.set = function(t, r) {
|
|
778
|
+
this.cache[t] = r;
|
|
779
|
+
}, e;
|
|
780
|
+
}()
|
|
781
|
+
), Xr = {
|
|
829
782
|
create: function() {
|
|
830
|
-
return new
|
|
783
|
+
return new Vr();
|
|
831
784
|
}
|
|
832
|
-
},
|
|
833
|
-
variadic:
|
|
834
|
-
|
|
835
|
-
|
|
785
|
+
}, we = {
|
|
786
|
+
variadic: jr
|
|
787
|
+
}, _e = function() {
|
|
788
|
+
return _e = Object.assign || function(t) {
|
|
789
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
790
|
+
r = arguments[n];
|
|
791
|
+
for (var s in r)
|
|
792
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
793
|
+
}
|
|
794
|
+
return t;
|
|
795
|
+
}, _e.apply(this, arguments);
|
|
796
|
+
};
|
|
797
|
+
var _;
|
|
836
798
|
(function(e) {
|
|
837
799
|
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";
|
|
838
|
-
})(
|
|
839
|
-
var
|
|
800
|
+
})(_ || (_ = {}));
|
|
801
|
+
var x;
|
|
840
802
|
(function(e) {
|
|
841
803
|
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";
|
|
842
|
-
})(
|
|
804
|
+
})(x || (x = {}));
|
|
843
805
|
var J;
|
|
844
806
|
(function(e) {
|
|
845
807
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
846
808
|
})(J || (J = {}));
|
|
847
809
|
function Ke(e) {
|
|
848
|
-
return e.type ===
|
|
810
|
+
return e.type === x.literal;
|
|
849
811
|
}
|
|
850
|
-
function
|
|
851
|
-
return e.type ===
|
|
812
|
+
function zr(e) {
|
|
813
|
+
return e.type === x.argument;
|
|
852
814
|
}
|
|
853
|
-
function
|
|
854
|
-
return e.type ===
|
|
815
|
+
function At(e) {
|
|
816
|
+
return e.type === x.number;
|
|
855
817
|
}
|
|
856
818
|
function Bt(e) {
|
|
857
|
-
return e.type ===
|
|
819
|
+
return e.type === x.date;
|
|
858
820
|
}
|
|
859
821
|
function wt(e) {
|
|
860
|
-
return e.type ===
|
|
822
|
+
return e.type === x.time;
|
|
861
823
|
}
|
|
862
824
|
function Ot(e) {
|
|
863
|
-
return e.type ===
|
|
825
|
+
return e.type === x.select;
|
|
864
826
|
}
|
|
865
827
|
function Pt(e) {
|
|
866
|
-
return e.type ===
|
|
828
|
+
return e.type === x.plural;
|
|
867
829
|
}
|
|
868
|
-
function
|
|
869
|
-
return e.type ===
|
|
830
|
+
function Wr(e) {
|
|
831
|
+
return e.type === x.pound;
|
|
870
832
|
}
|
|
871
833
|
function Nt(e) {
|
|
872
|
-
return e.type ===
|
|
834
|
+
return e.type === x.tag;
|
|
873
835
|
}
|
|
874
836
|
function Lt(e) {
|
|
875
837
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
876
838
|
}
|
|
877
|
-
function
|
|
839
|
+
function Re(e) {
|
|
878
840
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
879
841
|
}
|
|
880
|
-
var It = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
881
|
-
function
|
|
842
|
+
var It = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zr = /(?:[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;
|
|
843
|
+
function Qr(e) {
|
|
882
844
|
var t = {};
|
|
883
|
-
return e.replace(
|
|
845
|
+
return e.replace(Zr, function(r) {
|
|
884
846
|
var n = r.length;
|
|
885
847
|
switch (r[0]) {
|
|
886
848
|
case "G":
|
|
@@ -969,29 +931,39 @@ function Zr(e) {
|
|
|
969
931
|
return "";
|
|
970
932
|
}), t;
|
|
971
933
|
}
|
|
972
|
-
var
|
|
934
|
+
var C = function() {
|
|
935
|
+
return C = Object.assign || function(t) {
|
|
936
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
937
|
+
r = arguments[n];
|
|
938
|
+
for (var s in r)
|
|
939
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
940
|
+
}
|
|
941
|
+
return t;
|
|
942
|
+
}, C.apply(this, arguments);
|
|
943
|
+
};
|
|
944
|
+
var qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
973
945
|
function Jr(e) {
|
|
974
946
|
if (e.length === 0)
|
|
975
947
|
throw new Error("Number skeleton cannot be empty");
|
|
976
|
-
for (var t = e.split(
|
|
948
|
+
for (var t = e.split(qr).filter(function(f) {
|
|
977
949
|
return f.length > 0;
|
|
978
950
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
979
951
|
var s = i[n], o = s.split("/");
|
|
980
952
|
if (o.length === 0)
|
|
981
953
|
throw new Error("Invalid number skeleton");
|
|
982
|
-
for (var
|
|
983
|
-
var c = h[
|
|
954
|
+
for (var u = o[0], l = o.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
955
|
+
var c = h[a];
|
|
984
956
|
if (c.length === 0)
|
|
985
957
|
throw new Error("Invalid number skeleton");
|
|
986
958
|
}
|
|
987
|
-
r.push({ stem:
|
|
959
|
+
r.push({ stem: u, options: l });
|
|
988
960
|
}
|
|
989
961
|
return r;
|
|
990
962
|
}
|
|
991
|
-
function
|
|
963
|
+
function Yr(e) {
|
|
992
964
|
return e.replace(/^(.*?)-/, "");
|
|
993
965
|
}
|
|
994
|
-
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
966
|
+
var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, Kr = /(\*)(0+)|(#+)(0+)|(0+)/g, $t = /^(0+)$/;
|
|
995
967
|
function tt(e) {
|
|
996
968
|
var t = {};
|
|
997
969
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mt, function(r, n, i) {
|
|
@@ -1038,7 +1010,7 @@ function Rt(e) {
|
|
|
1038
1010
|
};
|
|
1039
1011
|
}
|
|
1040
1012
|
}
|
|
1041
|
-
function
|
|
1013
|
+
function en(e) {
|
|
1042
1014
|
var t;
|
|
1043
1015
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1044
1016
|
notation: "engineering"
|
|
@@ -1056,7 +1028,7 @@ function rt(e) {
|
|
|
1056
1028
|
var t = {}, r = Rt(e);
|
|
1057
1029
|
return r || t;
|
|
1058
1030
|
}
|
|
1059
|
-
function
|
|
1031
|
+
function tn(e) {
|
|
1060
1032
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1061
1033
|
var i = n[r];
|
|
1062
1034
|
switch (i.stem) {
|
|
@@ -1080,7 +1052,7 @@ function en(e) {
|
|
|
1080
1052
|
continue;
|
|
1081
1053
|
case "measure-unit":
|
|
1082
1054
|
case "unit":
|
|
1083
|
-
t.style = "unit", t.unit =
|
|
1055
|
+
t.style = "unit", t.unit = Yr(i.options[0]);
|
|
1084
1056
|
continue;
|
|
1085
1057
|
case "compact-short":
|
|
1086
1058
|
case "K":
|
|
@@ -1091,13 +1063,13 @@ function en(e) {
|
|
|
1091
1063
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1092
1064
|
continue;
|
|
1093
1065
|
case "scientific":
|
|
1094
|
-
t =
|
|
1095
|
-
return
|
|
1066
|
+
t = C(C(C({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
1067
|
+
return C(C({}, l), rt(a));
|
|
1096
1068
|
}, {}));
|
|
1097
1069
|
continue;
|
|
1098
1070
|
case "engineering":
|
|
1099
|
-
t =
|
|
1100
|
-
return
|
|
1071
|
+
t = C(C(C({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
1072
|
+
return C(C({}, l), rt(a));
|
|
1101
1073
|
}, {}));
|
|
1102
1074
|
continue;
|
|
1103
1075
|
case "notation-simple":
|
|
@@ -1142,8 +1114,8 @@ function en(e) {
|
|
|
1142
1114
|
case "integer-width":
|
|
1143
1115
|
if (i.options.length > 1)
|
|
1144
1116
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1145
|
-
i.options[0].replace(
|
|
1146
|
-
if (
|
|
1117
|
+
i.options[0].replace(Kr, function(l, a, h, c, f, p) {
|
|
1118
|
+
if (a)
|
|
1147
1119
|
t.minimumIntegerDigits = h.length;
|
|
1148
1120
|
else {
|
|
1149
1121
|
if (c && f)
|
|
@@ -1162,25 +1134,25 @@ function en(e) {
|
|
|
1162
1134
|
if (et.test(i.stem)) {
|
|
1163
1135
|
if (i.options.length > 1)
|
|
1164
1136
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1165
|
-
i.stem.replace(et, function(l,
|
|
1166
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1137
|
+
i.stem.replace(et, function(l, a, h, c, f, p) {
|
|
1138
|
+
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), "";
|
|
1167
1139
|
});
|
|
1168
1140
|
var s = i.options[0];
|
|
1169
|
-
s === "w" ? t =
|
|
1141
|
+
s === "w" ? t = C(C({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = C(C({}, t), tt(s)));
|
|
1170
1142
|
continue;
|
|
1171
1143
|
}
|
|
1172
1144
|
if (Mt.test(i.stem)) {
|
|
1173
|
-
t =
|
|
1145
|
+
t = C(C({}, t), tt(i.stem));
|
|
1174
1146
|
continue;
|
|
1175
1147
|
}
|
|
1176
1148
|
var o = Rt(i.stem);
|
|
1177
|
-
o && (t =
|
|
1178
|
-
var
|
|
1179
|
-
|
|
1149
|
+
o && (t = C(C({}, t), o));
|
|
1150
|
+
var u = en(i.stem);
|
|
1151
|
+
u && (t = C(C({}, t), u));
|
|
1180
1152
|
}
|
|
1181
1153
|
return t;
|
|
1182
1154
|
}
|
|
1183
|
-
var
|
|
1155
|
+
var ge = {
|
|
1184
1156
|
"001": [
|
|
1185
1157
|
"H",
|
|
1186
1158
|
"h"
|
|
@@ -2595,23 +2567,23 @@ var ce = {
|
|
|
2595
2567
|
"h"
|
|
2596
2568
|
]
|
|
2597
2569
|
};
|
|
2598
|
-
function
|
|
2570
|
+
function rn(e, t) {
|
|
2599
2571
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2600
2572
|
var i = e.charAt(n);
|
|
2601
2573
|
if (i === "j") {
|
|
2602
2574
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2603
2575
|
s++, n++;
|
|
2604
|
-
var o = 1 + (s & 1),
|
|
2605
|
-
for ((
|
|
2576
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = nn(t);
|
|
2577
|
+
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2606
2578
|
r += l;
|
|
2607
2579
|
for (; o-- > 0; )
|
|
2608
|
-
r =
|
|
2580
|
+
r = a + r;
|
|
2609
2581
|
} else
|
|
2610
2582
|
i === "J" ? r += "H" : r += i;
|
|
2611
2583
|
}
|
|
2612
2584
|
return r;
|
|
2613
2585
|
}
|
|
2614
|
-
function
|
|
2586
|
+
function nn(e) {
|
|
2615
2587
|
var t = e.hourCycle;
|
|
2616
2588
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2617
2589
|
e.hourCycles && // @ts-ignore
|
|
@@ -2630,23 +2602,23 @@ function rn(e) {
|
|
|
2630
2602
|
}
|
|
2631
2603
|
var r = e.language, n;
|
|
2632
2604
|
r !== "root" && (n = e.maximize().region);
|
|
2633
|
-
var i =
|
|
2605
|
+
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2634
2606
|
return i[0];
|
|
2635
2607
|
}
|
|
2636
|
-
var
|
|
2637
|
-
function
|
|
2608
|
+
var Oe, sn = new RegExp("^".concat(It.source, "*")), on = new RegExp("".concat(It.source, "*$"));
|
|
2609
|
+
function y(e, t) {
|
|
2638
2610
|
return { start: e, end: t };
|
|
2639
2611
|
}
|
|
2640
|
-
var
|
|
2612
|
+
var an = !!String.prototype.startsWith && "_a".startsWith("a", 1), un = !!String.fromCodePoint, hn = !!Object.fromEntries, ln = !!String.prototype.codePointAt, fn = !!String.prototype.trimStart, cn = !!String.prototype.trimEnd, gn = !!Number.isSafeInteger, mn = gn ? Number.isSafeInteger : function(e) {
|
|
2641
2613
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2642
|
-
},
|
|
2614
|
+
}, Ue = !0;
|
|
2643
2615
|
try {
|
|
2644
|
-
var
|
|
2645
|
-
|
|
2616
|
+
var pn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2617
|
+
Ue = ((Oe = pn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2646
2618
|
} catch {
|
|
2647
|
-
|
|
2619
|
+
Ue = !1;
|
|
2648
2620
|
}
|
|
2649
|
-
var nt =
|
|
2621
|
+
var nt = an ? (
|
|
2650
2622
|
// Native
|
|
2651
2623
|
function(t, r, n) {
|
|
2652
2624
|
return t.startsWith(r, n);
|
|
@@ -2656,7 +2628,7 @@ var nt = on ? (
|
|
|
2656
2628
|
function(t, r, n) {
|
|
2657
2629
|
return t.slice(n, n + r.length) === r;
|
|
2658
2630
|
}
|
|
2659
|
-
),
|
|
2631
|
+
), Ge = un ? String.fromCodePoint : (
|
|
2660
2632
|
// IE11
|
|
2661
2633
|
function() {
|
|
2662
2634
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2670,17 +2642,17 @@ var nt = on ? (
|
|
|
2670
2642
|
}
|
|
2671
2643
|
), it = (
|
|
2672
2644
|
// native
|
|
2673
|
-
|
|
2645
|
+
hn ? Object.fromEntries : (
|
|
2674
2646
|
// Ponyfill
|
|
2675
2647
|
function(t) {
|
|
2676
2648
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2677
|
-
var s = i[n], o = s[0],
|
|
2678
|
-
r[o] =
|
|
2649
|
+
var s = i[n], o = s[0], u = s[1];
|
|
2650
|
+
r[o] = u;
|
|
2679
2651
|
}
|
|
2680
2652
|
return r;
|
|
2681
2653
|
}
|
|
2682
2654
|
)
|
|
2683
|
-
), Ut =
|
|
2655
|
+
), Ut = ln ? (
|
|
2684
2656
|
// Native
|
|
2685
2657
|
function(t, r) {
|
|
2686
2658
|
return t.codePointAt(r);
|
|
@@ -2694,7 +2666,7 @@ var nt = on ? (
|
|
|
2694
2666
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2695
2667
|
}
|
|
2696
2668
|
}
|
|
2697
|
-
),
|
|
2669
|
+
), dn = fn ? (
|
|
2698
2670
|
// Native
|
|
2699
2671
|
function(t) {
|
|
2700
2672
|
return t.trimStart();
|
|
@@ -2702,9 +2674,9 @@ var nt = on ? (
|
|
|
2702
2674
|
) : (
|
|
2703
2675
|
// Ponyfill
|
|
2704
2676
|
function(t) {
|
|
2705
|
-
return t.replace(
|
|
2677
|
+
return t.replace(sn, "");
|
|
2706
2678
|
}
|
|
2707
|
-
),
|
|
2679
|
+
), bn = cn ? (
|
|
2708
2680
|
// Native
|
|
2709
2681
|
function(t) {
|
|
2710
2682
|
return t.trimEnd();
|
|
@@ -2712,32 +2684,32 @@ var nt = on ? (
|
|
|
2712
2684
|
) : (
|
|
2713
2685
|
// Ponyfill
|
|
2714
2686
|
function(t) {
|
|
2715
|
-
return t.replace(
|
|
2687
|
+
return t.replace(on, "");
|
|
2716
2688
|
}
|
|
2717
2689
|
);
|
|
2718
2690
|
function Gt(e, t) {
|
|
2719
2691
|
return new RegExp(e, t);
|
|
2720
2692
|
}
|
|
2721
|
-
var
|
|
2722
|
-
if (
|
|
2693
|
+
var De;
|
|
2694
|
+
if (Ue) {
|
|
2723
2695
|
var st = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2724
|
-
|
|
2696
|
+
De = function(t, r) {
|
|
2725
2697
|
var n;
|
|
2726
2698
|
st.lastIndex = r;
|
|
2727
2699
|
var i = st.exec(t);
|
|
2728
2700
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2729
2701
|
};
|
|
2730
2702
|
} else
|
|
2731
|
-
|
|
2703
|
+
De = function(t, r) {
|
|
2732
2704
|
for (var n = []; ; ) {
|
|
2733
2705
|
var i = Ut(t, r);
|
|
2734
|
-
if (i === void 0 || Dt(i) ||
|
|
2706
|
+
if (i === void 0 || Dt(i) || vn(i))
|
|
2735
2707
|
break;
|
|
2736
2708
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2737
2709
|
}
|
|
2738
|
-
return
|
|
2710
|
+
return Ge.apply(void 0, n);
|
|
2739
2711
|
};
|
|
2740
|
-
var
|
|
2712
|
+
var _n = (
|
|
2741
2713
|
/** @class */
|
|
2742
2714
|
function() {
|
|
2743
2715
|
function e(t, r) {
|
|
@@ -2759,16 +2731,16 @@ var bn = (
|
|
|
2759
2731
|
if (s === 125 && t > 0)
|
|
2760
2732
|
break;
|
|
2761
2733
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2762
|
-
var
|
|
2734
|
+
var u = this.clonePosition();
|
|
2763
2735
|
this.bump(), i.push({
|
|
2764
|
-
type:
|
|
2765
|
-
location:
|
|
2736
|
+
type: x.pound,
|
|
2737
|
+
location: y(u, this.clonePosition())
|
|
2766
2738
|
});
|
|
2767
2739
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2768
2740
|
if (n)
|
|
2769
2741
|
break;
|
|
2770
|
-
return this.error(
|
|
2771
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2742
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2743
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2772
2744
|
var o = this.parseTag(t, r);
|
|
2773
2745
|
if (o.err)
|
|
2774
2746
|
return o;
|
|
@@ -2789,9 +2761,9 @@ var bn = (
|
|
|
2789
2761
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2790
2762
|
return {
|
|
2791
2763
|
val: {
|
|
2792
|
-
type:
|
|
2764
|
+
type: x.literal,
|
|
2793
2765
|
value: "<".concat(i, "/>"),
|
|
2794
|
-
location:
|
|
2766
|
+
location: y(n, this.clonePosition())
|
|
2795
2767
|
},
|
|
2796
2768
|
err: null
|
|
2797
2769
|
};
|
|
@@ -2799,27 +2771,27 @@ var bn = (
|
|
|
2799
2771
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2800
2772
|
if (s.err)
|
|
2801
2773
|
return s;
|
|
2802
|
-
var o = s.val,
|
|
2774
|
+
var o = s.val, u = this.clonePosition();
|
|
2803
2775
|
if (this.bumpIf("</")) {
|
|
2804
|
-
if (this.isEOF() || !
|
|
2805
|
-
return this.error(
|
|
2806
|
-
var l = this.clonePosition(),
|
|
2807
|
-
return i !==
|
|
2776
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2777
|
+
return this.error(_.INVALID_TAG, y(u, this.clonePosition()));
|
|
2778
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2779
|
+
return i !== a ? this.error(_.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2808
2780
|
val: {
|
|
2809
|
-
type:
|
|
2781
|
+
type: x.tag,
|
|
2810
2782
|
value: i,
|
|
2811
2783
|
children: o,
|
|
2812
|
-
location:
|
|
2784
|
+
location: y(n, this.clonePosition())
|
|
2813
2785
|
},
|
|
2814
2786
|
err: null
|
|
2815
|
-
} : this.error(
|
|
2787
|
+
} : this.error(_.INVALID_TAG, y(u, this.clonePosition())));
|
|
2816
2788
|
} else
|
|
2817
|
-
return this.error(
|
|
2789
|
+
return this.error(_.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2818
2790
|
} else
|
|
2819
|
-
return this.error(
|
|
2791
|
+
return this.error(_.INVALID_TAG, y(n, this.clonePosition()));
|
|
2820
2792
|
}, e.prototype.parseTagName = function() {
|
|
2821
2793
|
var t = this.offset();
|
|
2822
|
-
for (this.bump(); !this.isEOF() &&
|
|
2794
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2823
2795
|
this.bump();
|
|
2824
2796
|
return this.message.slice(t, this.offset());
|
|
2825
2797
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2834,16 +2806,16 @@ var bn = (
|
|
|
2834
2806
|
i += o;
|
|
2835
2807
|
continue;
|
|
2836
2808
|
}
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2839
|
-
i +=
|
|
2809
|
+
var u = this.tryParseLeftAngleBracket();
|
|
2810
|
+
if (u) {
|
|
2811
|
+
i += u;
|
|
2840
2812
|
continue;
|
|
2841
2813
|
}
|
|
2842
2814
|
break;
|
|
2843
2815
|
}
|
|
2844
|
-
var l =
|
|
2816
|
+
var l = y(n, this.clonePosition());
|
|
2845
2817
|
return {
|
|
2846
|
-
val: { type:
|
|
2818
|
+
val: { type: x.literal, value: i, location: l },
|
|
2847
2819
|
err: null
|
|
2848
2820
|
};
|
|
2849
2821
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2882,100 +2854,100 @@ var bn = (
|
|
|
2882
2854
|
r.push(n);
|
|
2883
2855
|
this.bump();
|
|
2884
2856
|
}
|
|
2885
|
-
return
|
|
2857
|
+
return Ge.apply(void 0, r);
|
|
2886
2858
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2887
2859
|
if (this.isEOF())
|
|
2888
2860
|
return null;
|
|
2889
2861
|
var n = this.char();
|
|
2890
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2862
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2891
2863
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2892
2864
|
var n = this.clonePosition();
|
|
2893
2865
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2894
|
-
return this.error(
|
|
2866
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2895
2867
|
if (this.char() === 125)
|
|
2896
|
-
return this.bump(), this.error(
|
|
2868
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2897
2869
|
var i = this.parseIdentifierIfPossible().value;
|
|
2898
2870
|
if (!i)
|
|
2899
|
-
return this.error(
|
|
2871
|
+
return this.error(_.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2900
2872
|
if (this.bumpSpace(), this.isEOF())
|
|
2901
|
-
return this.error(
|
|
2873
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2902
2874
|
switch (this.char()) {
|
|
2903
2875
|
case 125:
|
|
2904
2876
|
return this.bump(), {
|
|
2905
2877
|
val: {
|
|
2906
|
-
type:
|
|
2878
|
+
type: x.argument,
|
|
2907
2879
|
// value does not include the opening and closing braces.
|
|
2908
2880
|
value: i,
|
|
2909
|
-
location:
|
|
2881
|
+
location: y(n, this.clonePosition())
|
|
2910
2882
|
},
|
|
2911
2883
|
err: null
|
|
2912
2884
|
};
|
|
2913
2885
|
case 44:
|
|
2914
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2886
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2915
2887
|
default:
|
|
2916
|
-
return this.error(
|
|
2888
|
+
return this.error(_.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2917
2889
|
}
|
|
2918
2890
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2919
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2891
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2920
2892
|
this.bumpTo(i);
|
|
2921
|
-
var s = this.clonePosition(), o =
|
|
2893
|
+
var s = this.clonePosition(), o = y(t, s);
|
|
2922
2894
|
return { value: n, location: o };
|
|
2923
2895
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2924
|
-
var s, o = this.clonePosition(),
|
|
2925
|
-
switch (
|
|
2896
|
+
var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2897
|
+
switch (u) {
|
|
2926
2898
|
case "":
|
|
2927
|
-
return this.error(
|
|
2899
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, y(o, l));
|
|
2928
2900
|
case "number":
|
|
2929
2901
|
case "date":
|
|
2930
2902
|
case "time": {
|
|
2931
2903
|
this.bumpSpace();
|
|
2932
|
-
var
|
|
2904
|
+
var a = null;
|
|
2933
2905
|
if (this.bumpIf(",")) {
|
|
2934
2906
|
this.bumpSpace();
|
|
2935
2907
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2936
2908
|
if (c.err)
|
|
2937
2909
|
return c;
|
|
2938
|
-
var f =
|
|
2910
|
+
var f = bn(c.val);
|
|
2939
2911
|
if (f.length === 0)
|
|
2940
|
-
return this.error(
|
|
2941
|
-
var p =
|
|
2942
|
-
|
|
2912
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2913
|
+
var p = y(h, this.clonePosition());
|
|
2914
|
+
a = { style: f, styleLocation: p };
|
|
2943
2915
|
}
|
|
2944
2916
|
var d = this.tryParseArgumentClose(i);
|
|
2945
2917
|
if (d.err)
|
|
2946
2918
|
return d;
|
|
2947
|
-
var g =
|
|
2948
|
-
if (
|
|
2949
|
-
var
|
|
2950
|
-
if (
|
|
2951
|
-
var c = this.parseNumberSkeletonFromString(
|
|
2919
|
+
var g = y(i, this.clonePosition());
|
|
2920
|
+
if (a && nt(a?.style, "::", 0)) {
|
|
2921
|
+
var E = dn(a.style.slice(2));
|
|
2922
|
+
if (u === "number") {
|
|
2923
|
+
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2952
2924
|
return c.err ? c : {
|
|
2953
|
-
val: { type:
|
|
2925
|
+
val: { type: x.number, value: n, location: g, style: c.val },
|
|
2954
2926
|
err: null
|
|
2955
2927
|
};
|
|
2956
2928
|
} else {
|
|
2957
|
-
if (
|
|
2958
|
-
return this.error(
|
|
2959
|
-
var m =
|
|
2960
|
-
this.locale && (m =
|
|
2929
|
+
if (E.length === 0)
|
|
2930
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
2931
|
+
var m = E;
|
|
2932
|
+
this.locale && (m = rn(E, this.locale));
|
|
2961
2933
|
var f = {
|
|
2962
2934
|
type: J.dateTime,
|
|
2963
2935
|
pattern: m,
|
|
2964
|
-
location:
|
|
2965
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2966
|
-
},
|
|
2936
|
+
location: a.styleLocation,
|
|
2937
|
+
parsedOptions: this.shouldParseSkeletons ? Qr(m) : {}
|
|
2938
|
+
}, T = u === "date" ? x.date : x.time;
|
|
2967
2939
|
return {
|
|
2968
|
-
val: { type:
|
|
2940
|
+
val: { type: T, value: n, location: g, style: f },
|
|
2969
2941
|
err: null
|
|
2970
2942
|
};
|
|
2971
2943
|
}
|
|
2972
2944
|
}
|
|
2973
2945
|
return {
|
|
2974
2946
|
val: {
|
|
2975
|
-
type:
|
|
2947
|
+
type: u === "number" ? x.number : u === "date" ? x.date : x.time,
|
|
2976
2948
|
value: n,
|
|
2977
2949
|
location: g,
|
|
2978
|
-
style: (s =
|
|
2950
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2979
2951
|
},
|
|
2980
2952
|
err: null
|
|
2981
2953
|
};
|
|
@@ -2983,30 +2955,30 @@ var bn = (
|
|
|
2983
2955
|
case "plural":
|
|
2984
2956
|
case "selectordinal":
|
|
2985
2957
|
case "select": {
|
|
2986
|
-
var
|
|
2958
|
+
var S = this.clonePosition();
|
|
2987
2959
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2988
|
-
return this.error(
|
|
2960
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, y(S, _e({}, S)));
|
|
2989
2961
|
this.bumpSpace();
|
|
2990
2962
|
var O = this.parseIdentifierIfPossible(), B = 0;
|
|
2991
|
-
if (
|
|
2963
|
+
if (u !== "select" && O.value === "offset") {
|
|
2992
2964
|
if (!this.bumpIf(":"))
|
|
2993
|
-
return this.error(
|
|
2965
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2994
2966
|
this.bumpSpace();
|
|
2995
|
-
var c = this.tryParseDecimalInteger(
|
|
2967
|
+
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2996
2968
|
if (c.err)
|
|
2997
2969
|
return c;
|
|
2998
2970
|
this.bumpSpace(), O = this.parseIdentifierIfPossible(), B = c.val;
|
|
2999
2971
|
}
|
|
3000
|
-
var H = this.tryParsePluralOrSelectOptions(t,
|
|
2972
|
+
var H = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
3001
2973
|
if (H.err)
|
|
3002
2974
|
return H;
|
|
3003
2975
|
var d = this.tryParseArgumentClose(i);
|
|
3004
2976
|
if (d.err)
|
|
3005
2977
|
return d;
|
|
3006
|
-
var P =
|
|
3007
|
-
return
|
|
2978
|
+
var P = y(i, this.clonePosition());
|
|
2979
|
+
return u === "select" ? {
|
|
3008
2980
|
val: {
|
|
3009
|
-
type:
|
|
2981
|
+
type: x.select,
|
|
3010
2982
|
value: n,
|
|
3011
2983
|
options: it(H.val),
|
|
3012
2984
|
location: P
|
|
@@ -3014,21 +2986,21 @@ var bn = (
|
|
|
3014
2986
|
err: null
|
|
3015
2987
|
} : {
|
|
3016
2988
|
val: {
|
|
3017
|
-
type:
|
|
2989
|
+
type: x.plural,
|
|
3018
2990
|
value: n,
|
|
3019
2991
|
options: it(H.val),
|
|
3020
2992
|
offset: B,
|
|
3021
|
-
pluralType:
|
|
2993
|
+
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
3022
2994
|
location: P
|
|
3023
2995
|
},
|
|
3024
2996
|
err: null
|
|
3025
2997
|
};
|
|
3026
2998
|
}
|
|
3027
2999
|
default:
|
|
3028
|
-
return this.error(
|
|
3000
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, y(o, l));
|
|
3029
3001
|
}
|
|
3030
3002
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3031
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3003
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3032
3004
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3033
3005
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3034
3006
|
var n = this.char();
|
|
@@ -3037,7 +3009,7 @@ var bn = (
|
|
|
3037
3009
|
this.bump();
|
|
3038
3010
|
var i = this.clonePosition();
|
|
3039
3011
|
if (!this.bumpUntil("'"))
|
|
3040
|
-
return this.error(
|
|
3012
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
3041
3013
|
this.bump();
|
|
3042
3014
|
break;
|
|
3043
3015
|
}
|
|
@@ -3069,62 +3041,62 @@ var bn = (
|
|
|
3069
3041
|
try {
|
|
3070
3042
|
n = Jr(t);
|
|
3071
3043
|
} catch {
|
|
3072
|
-
return this.error(
|
|
3044
|
+
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3073
3045
|
}
|
|
3074
3046
|
return {
|
|
3075
3047
|
val: {
|
|
3076
3048
|
type: J.number,
|
|
3077
3049
|
tokens: n,
|
|
3078
3050
|
location: r,
|
|
3079
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3051
|
+
parsedOptions: this.shouldParseSkeletons ? tn(n) : {}
|
|
3080
3052
|
},
|
|
3081
3053
|
err: null
|
|
3082
3054
|
};
|
|
3083
3055
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3084
|
-
for (var s, o = !1,
|
|
3085
|
-
if (
|
|
3056
|
+
for (var s, o = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
3057
|
+
if (a.length === 0) {
|
|
3086
3058
|
var c = this.clonePosition();
|
|
3087
3059
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3088
|
-
var f = this.tryParseDecimalInteger(
|
|
3060
|
+
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3089
3061
|
if (f.err)
|
|
3090
3062
|
return f;
|
|
3091
|
-
h =
|
|
3063
|
+
h = y(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
3092
3064
|
} else
|
|
3093
3065
|
break;
|
|
3094
3066
|
}
|
|
3095
|
-
if (l.has(
|
|
3096
|
-
return this.error(r === "select" ?
|
|
3097
|
-
|
|
3067
|
+
if (l.has(a))
|
|
3068
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3069
|
+
a === "other" && (o = !0), this.bumpSpace();
|
|
3098
3070
|
var p = this.clonePosition();
|
|
3099
3071
|
if (!this.bumpIf("{"))
|
|
3100
|
-
return this.error(r === "select" ?
|
|
3072
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3101
3073
|
var d = this.parseMessage(t + 1, r, n);
|
|
3102
3074
|
if (d.err)
|
|
3103
3075
|
return d;
|
|
3104
3076
|
var g = this.tryParseArgumentClose(p);
|
|
3105
3077
|
if (g.err)
|
|
3106
3078
|
return g;
|
|
3107
|
-
|
|
3108
|
-
|
|
3079
|
+
u.push([
|
|
3080
|
+
a,
|
|
3109
3081
|
{
|
|
3110
3082
|
value: d.val,
|
|
3111
|
-
location:
|
|
3083
|
+
location: y(p, this.clonePosition())
|
|
3112
3084
|
}
|
|
3113
|
-
]), l.add(
|
|
3085
|
+
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3114
3086
|
}
|
|
3115
|
-
return
|
|
3087
|
+
return u.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3116
3088
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3117
3089
|
var n = 1, i = this.clonePosition();
|
|
3118
3090
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3119
3091
|
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3120
|
-
var
|
|
3121
|
-
if (
|
|
3122
|
-
s = !0, o = o * 10 + (
|
|
3092
|
+
var u = this.char();
|
|
3093
|
+
if (u >= 48 && u <= 57)
|
|
3094
|
+
s = !0, o = o * 10 + (u - 48), this.bump();
|
|
3123
3095
|
else
|
|
3124
3096
|
break;
|
|
3125
3097
|
}
|
|
3126
|
-
var l =
|
|
3127
|
-
return s ? (o *= n,
|
|
3098
|
+
var l = y(i, this.clonePosition());
|
|
3099
|
+
return s ? (o *= n, mn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3128
3100
|
}, e.prototype.offset = function() {
|
|
3129
3101
|
return this.position.offset;
|
|
3130
3102
|
}, e.prototype.isEOF = function() {
|
|
@@ -3190,47 +3162,47 @@ var bn = (
|
|
|
3190
3162
|
}, e;
|
|
3191
3163
|
}()
|
|
3192
3164
|
);
|
|
3193
|
-
function
|
|
3165
|
+
function Fe(e) {
|
|
3194
3166
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3195
3167
|
}
|
|
3196
3168
|
function yn(e) {
|
|
3197
|
-
return
|
|
3169
|
+
return Fe(e) || e === 47;
|
|
3198
3170
|
}
|
|
3199
|
-
function
|
|
3171
|
+
function En(e) {
|
|
3200
3172
|
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;
|
|
3201
3173
|
}
|
|
3202
3174
|
function Dt(e) {
|
|
3203
3175
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3204
3176
|
}
|
|
3205
|
-
function
|
|
3177
|
+
function vn(e) {
|
|
3206
3178
|
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;
|
|
3207
3179
|
}
|
|
3208
|
-
function
|
|
3180
|
+
function je(e) {
|
|
3209
3181
|
e.forEach(function(t) {
|
|
3210
3182
|
if (delete t.location, Ot(t) || Pt(t))
|
|
3211
3183
|
for (var r in t.options)
|
|
3212
|
-
delete t.options[r].location,
|
|
3184
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3213
3185
|
else
|
|
3214
|
-
|
|
3186
|
+
At(t) && Lt(t.style) || (Bt(t) || wt(t)) && Re(t.style) ? delete t.style.location : Nt(t) && je(t.children);
|
|
3215
3187
|
});
|
|
3216
3188
|
}
|
|
3217
3189
|
function xn(e, t) {
|
|
3218
|
-
t === void 0 && (t = {}), t =
|
|
3219
|
-
var r = new
|
|
3190
|
+
t === void 0 && (t = {}), t = _e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3191
|
+
var r = new _n(e, t).parse();
|
|
3220
3192
|
if (r.err) {
|
|
3221
|
-
var n = SyntaxError(
|
|
3193
|
+
var n = SyntaxError(_[r.err.kind]);
|
|
3222
3194
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3223
3195
|
}
|
|
3224
|
-
return t?.captureLocation ||
|
|
3196
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3225
3197
|
}
|
|
3226
|
-
var
|
|
3198
|
+
var Y;
|
|
3227
3199
|
(function(e) {
|
|
3228
3200
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3229
|
-
})(
|
|
3230
|
-
var
|
|
3201
|
+
})(Y || (Y = {}));
|
|
3202
|
+
var Te = (
|
|
3231
3203
|
/** @class */
|
|
3232
3204
|
function(e) {
|
|
3233
|
-
|
|
3205
|
+
xe(t, e);
|
|
3234
3206
|
function t(r, n, i) {
|
|
3235
3207
|
var s = e.call(this, r) || this;
|
|
3236
3208
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3242,44 +3214,44 @@ var xe = (
|
|
|
3242
3214
|
), ot = (
|
|
3243
3215
|
/** @class */
|
|
3244
3216
|
function(e) {
|
|
3245
|
-
|
|
3217
|
+
xe(t, e);
|
|
3246
3218
|
function t(r, n, i, s) {
|
|
3247
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3219
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, s) || this;
|
|
3248
3220
|
}
|
|
3249
3221
|
return t;
|
|
3250
|
-
}(
|
|
3251
|
-
),
|
|
3222
|
+
}(Te)
|
|
3223
|
+
), Tn = (
|
|
3252
3224
|
/** @class */
|
|
3253
3225
|
function(e) {
|
|
3254
|
-
|
|
3226
|
+
xe(t, e);
|
|
3255
3227
|
function t(r, n, i) {
|
|
3256
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3228
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3257
3229
|
}
|
|
3258
3230
|
return t;
|
|
3259
|
-
}(
|
|
3260
|
-
),
|
|
3231
|
+
}(Te)
|
|
3232
|
+
), Cn = (
|
|
3261
3233
|
/** @class */
|
|
3262
3234
|
function(e) {
|
|
3263
|
-
|
|
3235
|
+
xe(t, e);
|
|
3264
3236
|
function t(r, n) {
|
|
3265
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3237
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3266
3238
|
}
|
|
3267
3239
|
return t;
|
|
3268
|
-
}(
|
|
3240
|
+
}(Te)
|
|
3269
3241
|
), w;
|
|
3270
3242
|
(function(e) {
|
|
3271
3243
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3272
3244
|
})(w || (w = {}));
|
|
3273
|
-
function
|
|
3245
|
+
function Hn(e) {
|
|
3274
3246
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3275
3247
|
var n = t[t.length - 1];
|
|
3276
3248
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3277
3249
|
}, []);
|
|
3278
3250
|
}
|
|
3279
|
-
function
|
|
3251
|
+
function Sn(e) {
|
|
3280
3252
|
return typeof e == "function";
|
|
3281
3253
|
}
|
|
3282
|
-
function
|
|
3254
|
+
function pe(e, t, r, n, i, s, o) {
|
|
3283
3255
|
if (e.length === 1 && Ke(e[0]))
|
|
3284
3256
|
return [
|
|
3285
3257
|
{
|
|
@@ -3287,17 +3259,17 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3287
3259
|
value: e[0].value
|
|
3288
3260
|
}
|
|
3289
3261
|
];
|
|
3290
|
-
for (var
|
|
3291
|
-
var h =
|
|
3262
|
+
for (var u = [], l = 0, a = e; l < a.length; l++) {
|
|
3263
|
+
var h = a[l];
|
|
3292
3264
|
if (Ke(h)) {
|
|
3293
|
-
|
|
3265
|
+
u.push({
|
|
3294
3266
|
type: w.literal,
|
|
3295
3267
|
value: h.value
|
|
3296
3268
|
});
|
|
3297
3269
|
continue;
|
|
3298
3270
|
}
|
|
3299
|
-
if (
|
|
3300
|
-
typeof s == "number" &&
|
|
3271
|
+
if (Wr(h)) {
|
|
3272
|
+
typeof s == "number" && u.push({
|
|
3301
3273
|
type: w.literal,
|
|
3302
3274
|
value: r.getNumberFormat(t).format(s)
|
|
3303
3275
|
});
|
|
@@ -3305,47 +3277,47 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3305
3277
|
}
|
|
3306
3278
|
var c = h.value;
|
|
3307
3279
|
if (!(i && c in i))
|
|
3308
|
-
throw new
|
|
3280
|
+
throw new Cn(c, o);
|
|
3309
3281
|
var f = i[c];
|
|
3310
|
-
if (
|
|
3311
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3282
|
+
if (zr(h)) {
|
|
3283
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3312
3284
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3313
3285
|
value: f
|
|
3314
3286
|
});
|
|
3315
3287
|
continue;
|
|
3316
3288
|
}
|
|
3317
3289
|
if (Bt(h)) {
|
|
3318
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3319
|
-
|
|
3290
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3291
|
+
u.push({
|
|
3320
3292
|
type: w.literal,
|
|
3321
3293
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3322
3294
|
});
|
|
3323
3295
|
continue;
|
|
3324
3296
|
}
|
|
3325
3297
|
if (wt(h)) {
|
|
3326
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3327
|
-
|
|
3298
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3299
|
+
u.push({
|
|
3328
3300
|
type: w.literal,
|
|
3329
3301
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3330
3302
|
});
|
|
3331
3303
|
continue;
|
|
3332
3304
|
}
|
|
3333
|
-
if (
|
|
3305
|
+
if (At(h)) {
|
|
3334
3306
|
var p = typeof h.style == "string" ? n.number[h.style] : Lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3335
|
-
p && p.scale && (f = f * (p.scale || 1)),
|
|
3307
|
+
p && p.scale && (f = f * (p.scale || 1)), u.push({
|
|
3336
3308
|
type: w.literal,
|
|
3337
3309
|
value: r.getNumberFormat(t, p).format(f)
|
|
3338
3310
|
});
|
|
3339
3311
|
continue;
|
|
3340
3312
|
}
|
|
3341
3313
|
if (Nt(h)) {
|
|
3342
|
-
var d = h.children, g = h.value,
|
|
3343
|
-
if (!
|
|
3344
|
-
throw new
|
|
3345
|
-
var m =
|
|
3314
|
+
var d = h.children, g = h.value, E = i[g];
|
|
3315
|
+
if (!Sn(E))
|
|
3316
|
+
throw new Tn(g, "function", o);
|
|
3317
|
+
var m = pe(d, t, r, n, i, s), T = E(m.map(function(B) {
|
|
3346
3318
|
return B.value;
|
|
3347
3319
|
}));
|
|
3348
|
-
Array.isArray(
|
|
3320
|
+
Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(B) {
|
|
3349
3321
|
return {
|
|
3350
3322
|
type: typeof B == "string" ? w.literal : w.object,
|
|
3351
3323
|
value: B
|
|
@@ -3353,41 +3325,41 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3353
3325
|
}));
|
|
3354
3326
|
}
|
|
3355
3327
|
if (Ot(h)) {
|
|
3356
|
-
var
|
|
3357
|
-
if (!
|
|
3328
|
+
var S = h.options[f] || h.options.other;
|
|
3329
|
+
if (!S)
|
|
3358
3330
|
throw new ot(h.value, f, Object.keys(h.options), o);
|
|
3359
|
-
|
|
3331
|
+
u.push.apply(u, pe(S.value, t, r, n, i));
|
|
3360
3332
|
continue;
|
|
3361
3333
|
}
|
|
3362
3334
|
if (Pt(h)) {
|
|
3363
|
-
var
|
|
3364
|
-
if (!
|
|
3335
|
+
var S = h.options["=".concat(f)];
|
|
3336
|
+
if (!S) {
|
|
3365
3337
|
if (!Intl.PluralRules)
|
|
3366
|
-
throw new
|
|
3338
|
+
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3367
3339
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3368
|
-
`,
|
|
3340
|
+
`, Y.MISSING_INTL_API, o);
|
|
3369
3341
|
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3370
|
-
|
|
3342
|
+
S = h.options[O] || h.options.other;
|
|
3371
3343
|
}
|
|
3372
|
-
if (!
|
|
3344
|
+
if (!S)
|
|
3373
3345
|
throw new ot(h.value, f, Object.keys(h.options), o);
|
|
3374
|
-
|
|
3346
|
+
u.push.apply(u, pe(S.value, t, r, n, i, f - (h.offset || 0)));
|
|
3375
3347
|
continue;
|
|
3376
3348
|
}
|
|
3377
3349
|
}
|
|
3378
|
-
return
|
|
3350
|
+
return Hn(u);
|
|
3379
3351
|
}
|
|
3380
3352
|
function An(e, t) {
|
|
3381
|
-
return t ?
|
|
3382
|
-
return r[n] =
|
|
3353
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3354
|
+
return r[n] = R(R({}, e[n]), t[n] || {}), r;
|
|
3383
3355
|
}, {})) : e;
|
|
3384
3356
|
}
|
|
3385
|
-
function
|
|
3357
|
+
function Bn(e, t) {
|
|
3386
3358
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3387
3359
|
return r[n] = An(e[n], t[n]), r;
|
|
3388
|
-
},
|
|
3360
|
+
}, R({}, e)) : e;
|
|
3389
3361
|
}
|
|
3390
|
-
function
|
|
3362
|
+
function Pe(e) {
|
|
3391
3363
|
return {
|
|
3392
3364
|
create: function() {
|
|
3393
3365
|
return {
|
|
@@ -3401,39 +3373,39 @@ function we(e) {
|
|
|
3401
3373
|
}
|
|
3402
3374
|
};
|
|
3403
3375
|
}
|
|
3404
|
-
function
|
|
3376
|
+
function wn(e) {
|
|
3405
3377
|
return e === void 0 && (e = {
|
|
3406
3378
|
number: {},
|
|
3407
3379
|
dateTime: {},
|
|
3408
3380
|
pluralRules: {}
|
|
3409
3381
|
}), {
|
|
3410
|
-
getNumberFormat:
|
|
3382
|
+
getNumberFormat: Be(function() {
|
|
3411
3383
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3412
3384
|
r[n] = arguments[n];
|
|
3413
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3385
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3414
3386
|
}, {
|
|
3415
|
-
cache:
|
|
3416
|
-
strategy:
|
|
3387
|
+
cache: Pe(e.number),
|
|
3388
|
+
strategy: we.variadic
|
|
3417
3389
|
}),
|
|
3418
|
-
getDateTimeFormat:
|
|
3390
|
+
getDateTimeFormat: Be(function() {
|
|
3419
3391
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3420
3392
|
r[n] = arguments[n];
|
|
3421
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3393
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3422
3394
|
}, {
|
|
3423
|
-
cache:
|
|
3424
|
-
strategy:
|
|
3395
|
+
cache: Pe(e.dateTime),
|
|
3396
|
+
strategy: we.variadic
|
|
3425
3397
|
}),
|
|
3426
|
-
getPluralRules:
|
|
3398
|
+
getPluralRules: Be(function() {
|
|
3427
3399
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3428
3400
|
r[n] = arguments[n];
|
|
3429
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3401
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3430
3402
|
}, {
|
|
3431
|
-
cache:
|
|
3432
|
-
strategy:
|
|
3403
|
+
cache: Pe(e.pluralRules),
|
|
3404
|
+
strategy: we.variadic
|
|
3433
3405
|
})
|
|
3434
3406
|
};
|
|
3435
3407
|
}
|
|
3436
|
-
var
|
|
3408
|
+
var On = (
|
|
3437
3409
|
/** @class */
|
|
3438
3410
|
function() {
|
|
3439
3411
|
function e(t, r, n, i) {
|
|
@@ -3444,15 +3416,15 @@ var wn = (
|
|
|
3444
3416
|
dateTime: {},
|
|
3445
3417
|
pluralRules: {}
|
|
3446
3418
|
}, this.format = function(l) {
|
|
3447
|
-
var
|
|
3448
|
-
if (
|
|
3449
|
-
return
|
|
3450
|
-
var h =
|
|
3419
|
+
var a = s.formatToParts(l);
|
|
3420
|
+
if (a.length === 1)
|
|
3421
|
+
return a[0].value;
|
|
3422
|
+
var h = a.reduce(function(c, f) {
|
|
3451
3423
|
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3452
3424
|
}, []);
|
|
3453
3425
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3454
3426
|
}, this.formatToParts = function(l) {
|
|
3455
|
-
return
|
|
3427
|
+
return pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3456
3428
|
}, this.resolvedOptions = function() {
|
|
3457
3429
|
var l;
|
|
3458
3430
|
return {
|
|
@@ -3465,13 +3437,13 @@ var wn = (
|
|
|
3465
3437
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3466
3438
|
var o = i || {};
|
|
3467
3439
|
o.formatters;
|
|
3468
|
-
var
|
|
3469
|
-
this.ast = e.__parse(t,
|
|
3440
|
+
var u = Ur(o, ["formatters"]);
|
|
3441
|
+
this.ast = e.__parse(t, R(R({}, u), { locale: this.resolvedLocale }));
|
|
3470
3442
|
} else
|
|
3471
3443
|
this.ast = t;
|
|
3472
3444
|
if (!Array.isArray(this.ast))
|
|
3473
3445
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3474
|
-
this.formats =
|
|
3446
|
+
this.formats = Bn(e.formats, n), this.formatters = i && i.formatters || wn(this.formatterCache);
|
|
3475
3447
|
}
|
|
3476
3448
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3477
3449
|
get: function() {
|
|
@@ -3545,7 +3517,7 @@ var wn = (
|
|
|
3545
3517
|
}, e;
|
|
3546
3518
|
}()
|
|
3547
3519
|
);
|
|
3548
|
-
function
|
|
3520
|
+
function Pn(e, t) {
|
|
3549
3521
|
if (t == null)
|
|
3550
3522
|
return;
|
|
3551
3523
|
if (t in e)
|
|
@@ -3566,36 +3538,36 @@ function On(e, t) {
|
|
|
3566
3538
|
n = void 0;
|
|
3567
3539
|
return n;
|
|
3568
3540
|
}
|
|
3569
|
-
const
|
|
3541
|
+
const D = {}, Nn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Ft = (e, t) => {
|
|
3570
3542
|
if (t == null)
|
|
3571
3543
|
return;
|
|
3572
|
-
if (t in
|
|
3573
|
-
return
|
|
3574
|
-
const r =
|
|
3544
|
+
if (t in D && e in D[t])
|
|
3545
|
+
return D[t][e];
|
|
3546
|
+
const r = Ce(t);
|
|
3575
3547
|
for (let n = 0; n < r.length; n++) {
|
|
3576
|
-
const i = r[n], s =
|
|
3548
|
+
const i = r[n], s = In(i, e);
|
|
3577
3549
|
if (s)
|
|
3578
|
-
return
|
|
3550
|
+
return Nn(e, t, s);
|
|
3579
3551
|
}
|
|
3580
3552
|
};
|
|
3581
3553
|
let ze;
|
|
3582
|
-
const
|
|
3583
|
-
function
|
|
3554
|
+
const he = ve({});
|
|
3555
|
+
function Ln(e) {
|
|
3584
3556
|
return ze[e] || null;
|
|
3585
3557
|
}
|
|
3586
3558
|
function jt(e) {
|
|
3587
3559
|
return e in ze;
|
|
3588
3560
|
}
|
|
3589
|
-
function
|
|
3561
|
+
function In(e, t) {
|
|
3590
3562
|
if (!jt(e))
|
|
3591
3563
|
return null;
|
|
3592
|
-
const r =
|
|
3593
|
-
return
|
|
3564
|
+
const r = Ln(e);
|
|
3565
|
+
return Pn(r, t);
|
|
3594
3566
|
}
|
|
3595
|
-
function
|
|
3567
|
+
function Mn(e) {
|
|
3596
3568
|
if (e == null)
|
|
3597
3569
|
return;
|
|
3598
|
-
const t =
|
|
3570
|
+
const t = Ce(e);
|
|
3599
3571
|
for (let r = 0; r < t.length; r++) {
|
|
3600
3572
|
const n = t[r];
|
|
3601
3573
|
if (jt(n))
|
|
@@ -3603,55 +3575,55 @@ function In(e) {
|
|
|
3603
3575
|
}
|
|
3604
3576
|
}
|
|
3605
3577
|
function kt(e, ...t) {
|
|
3606
|
-
delete
|
|
3578
|
+
delete D[e], he.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3607
3579
|
}
|
|
3608
|
-
|
|
3609
|
-
[
|
|
3580
|
+
ee(
|
|
3581
|
+
[he],
|
|
3610
3582
|
([e]) => Object.keys(e)
|
|
3611
3583
|
);
|
|
3612
|
-
|
|
3613
|
-
const
|
|
3614
|
-
function
|
|
3615
|
-
|
|
3584
|
+
he.subscribe((e) => ze = e);
|
|
3585
|
+
const de = {};
|
|
3586
|
+
function $n(e, t) {
|
|
3587
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3616
3588
|
}
|
|
3617
3589
|
function Vt(e) {
|
|
3618
|
-
return
|
|
3590
|
+
return de[e];
|
|
3619
3591
|
}
|
|
3620
|
-
function
|
|
3621
|
-
return
|
|
3592
|
+
function Rn(e) {
|
|
3593
|
+
return Ce(e).map((t) => {
|
|
3622
3594
|
const r = Vt(t);
|
|
3623
3595
|
return [t, r ? [...r] : []];
|
|
3624
3596
|
}).filter(([, t]) => t.length > 0);
|
|
3625
3597
|
}
|
|
3626
|
-
function
|
|
3627
|
-
return e == null ? !1 :
|
|
3598
|
+
function ke(e) {
|
|
3599
|
+
return e == null ? !1 : Ce(e).some(
|
|
3628
3600
|
(t) => {
|
|
3629
3601
|
var r;
|
|
3630
3602
|
return (r = Vt(t)) == null ? void 0 : r.size;
|
|
3631
3603
|
}
|
|
3632
3604
|
);
|
|
3633
3605
|
}
|
|
3634
|
-
function
|
|
3606
|
+
function Un(e, t) {
|
|
3635
3607
|
return Promise.all(
|
|
3636
|
-
t.map((n) => (
|
|
3608
|
+
t.map((n) => ($n(e, n), n().then((i) => i.default || i)))
|
|
3637
3609
|
).then((n) => kt(e, ...n));
|
|
3638
3610
|
}
|
|
3639
|
-
const
|
|
3611
|
+
const ne = {};
|
|
3640
3612
|
function Xt(e) {
|
|
3641
|
-
if (!
|
|
3642
|
-
return e in
|
|
3643
|
-
const t =
|
|
3644
|
-
return
|
|
3613
|
+
if (!ke(e))
|
|
3614
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3615
|
+
const t = Rn(e);
|
|
3616
|
+
return ne[e] = Promise.all(
|
|
3645
3617
|
t.map(
|
|
3646
|
-
([r, n]) =>
|
|
3618
|
+
([r, n]) => Un(r, n)
|
|
3647
3619
|
)
|
|
3648
3620
|
).then(() => {
|
|
3649
|
-
if (
|
|
3621
|
+
if (ke(e))
|
|
3650
3622
|
return Xt(e);
|
|
3651
|
-
delete
|
|
3652
|
-
}),
|
|
3623
|
+
delete ne[e];
|
|
3624
|
+
}), ne[e];
|
|
3653
3625
|
}
|
|
3654
|
-
const
|
|
3626
|
+
const Gn = {
|
|
3655
3627
|
number: {
|
|
3656
3628
|
scientific: { notation: "scientific" },
|
|
3657
3629
|
engineering: { notation: "engineering" },
|
|
@@ -3680,142 +3652,142 @@ const Un = {
|
|
|
3680
3652
|
timeZoneName: "short"
|
|
3681
3653
|
}
|
|
3682
3654
|
}
|
|
3683
|
-
},
|
|
3655
|
+
}, Dn = {
|
|
3684
3656
|
fallbackLocale: null,
|
|
3685
3657
|
loadingDelay: 200,
|
|
3686
|
-
formats:
|
|
3658
|
+
formats: Gn,
|
|
3687
3659
|
warnOnMissingMessages: !0,
|
|
3688
3660
|
handleMissingMessage: void 0,
|
|
3689
3661
|
ignoreTag: !0
|
|
3690
|
-
},
|
|
3691
|
-
function
|
|
3692
|
-
return
|
|
3662
|
+
}, Fn = Dn;
|
|
3663
|
+
function K() {
|
|
3664
|
+
return Fn;
|
|
3693
3665
|
}
|
|
3694
|
-
const
|
|
3695
|
-
var
|
|
3666
|
+
const Ne = ve(!1);
|
|
3667
|
+
var jn = Object.defineProperty, kn = Object.defineProperties, Vn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Xn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wn = (e, t) => {
|
|
3696
3668
|
for (var r in t || (t = {}))
|
|
3697
|
-
|
|
3669
|
+
Xn.call(t, r) && ut(e, r, t[r]);
|
|
3698
3670
|
if (at)
|
|
3699
3671
|
for (var r of at(t))
|
|
3700
|
-
|
|
3672
|
+
zn.call(t, r) && ut(e, r, t[r]);
|
|
3701
3673
|
return e;
|
|
3702
|
-
},
|
|
3703
|
-
let
|
|
3704
|
-
const
|
|
3674
|
+
}, Zn = (e, t) => kn(e, Vn(t));
|
|
3675
|
+
let Ve;
|
|
3676
|
+
const ye = ve(null);
|
|
3705
3677
|
function ht(e) {
|
|
3706
3678
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3707
3679
|
}
|
|
3708
|
-
function
|
|
3680
|
+
function Ce(e, t = K().fallbackLocale) {
|
|
3709
3681
|
const r = ht(e);
|
|
3710
3682
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3711
3683
|
}
|
|
3712
|
-
function
|
|
3713
|
-
return
|
|
3684
|
+
function X() {
|
|
3685
|
+
return Ve ?? void 0;
|
|
3714
3686
|
}
|
|
3715
|
-
|
|
3716
|
-
|
|
3687
|
+
ye.subscribe((e) => {
|
|
3688
|
+
Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3717
3689
|
});
|
|
3718
|
-
const
|
|
3719
|
-
if (e &&
|
|
3720
|
-
const { loadingDelay: t } =
|
|
3690
|
+
const Qn = (e) => {
|
|
3691
|
+
if (e && Mn(e) && ke(e)) {
|
|
3692
|
+
const { loadingDelay: t } = K();
|
|
3721
3693
|
let r;
|
|
3722
|
-
return typeof window < "u" &&
|
|
3723
|
-
() =>
|
|
3694
|
+
return typeof window < "u" && X() != null && t ? r = window.setTimeout(
|
|
3695
|
+
() => Ne.set(!0),
|
|
3724
3696
|
t
|
|
3725
|
-
) :
|
|
3726
|
-
|
|
3697
|
+
) : Ne.set(!0), Xt(e).then(() => {
|
|
3698
|
+
ye.set(e);
|
|
3727
3699
|
}).finally(() => {
|
|
3728
|
-
clearTimeout(r),
|
|
3700
|
+
clearTimeout(r), Ne.set(!1);
|
|
3729
3701
|
});
|
|
3730
3702
|
}
|
|
3731
|
-
return
|
|
3732
|
-
},
|
|
3733
|
-
set:
|
|
3734
|
-
}),
|
|
3703
|
+
return ye.set(e);
|
|
3704
|
+
}, te = Zn(Wn({}, ye), {
|
|
3705
|
+
set: Qn
|
|
3706
|
+
}), He = (e) => {
|
|
3735
3707
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3736
3708
|
return (n) => {
|
|
3737
3709
|
const i = JSON.stringify(n);
|
|
3738
3710
|
return i in t ? t[i] : t[i] = e(n);
|
|
3739
3711
|
};
|
|
3740
3712
|
};
|
|
3741
|
-
var
|
|
3713
|
+
var qn = Object.defineProperty, Ee = Object.getOwnPropertySymbols, zt = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
3742
3714
|
for (var r in t || (t = {}))
|
|
3743
3715
|
zt.call(t, r) && lt(e, r, t[r]);
|
|
3744
|
-
if (
|
|
3745
|
-
for (var r of
|
|
3716
|
+
if (Ee)
|
|
3717
|
+
for (var r of Ee(t))
|
|
3746
3718
|
Wt.call(t, r) && lt(e, r, t[r]);
|
|
3747
3719
|
return e;
|
|
3748
|
-
},
|
|
3720
|
+
}, re = (e, t) => {
|
|
3749
3721
|
var r = {};
|
|
3750
3722
|
for (var n in e)
|
|
3751
3723
|
zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3752
|
-
if (e != null &&
|
|
3753
|
-
for (var n of
|
|
3724
|
+
if (e != null && Ee)
|
|
3725
|
+
for (var n of Ee(e))
|
|
3754
3726
|
t.indexOf(n) < 0 && Wt.call(e, n) && (r[n] = e[n]);
|
|
3755
3727
|
return r;
|
|
3756
3728
|
};
|
|
3757
|
-
const
|
|
3758
|
-
const { formats: r } =
|
|
3729
|
+
const ae = (e, t) => {
|
|
3730
|
+
const { formats: r } = K();
|
|
3759
3731
|
if (e in r && t in r[e])
|
|
3760
3732
|
return r[e][t];
|
|
3761
3733
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3762
|
-
}, Jn =
|
|
3734
|
+
}, Jn = He(
|
|
3763
3735
|
(e) => {
|
|
3764
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3736
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3765
3737
|
if (r == null)
|
|
3766
3738
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3767
|
-
return n && (i =
|
|
3739
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
3768
3740
|
}
|
|
3769
|
-
),
|
|
3741
|
+
), Yn = He(
|
|
3770
3742
|
(e) => {
|
|
3771
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3743
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3772
3744
|
if (r == null)
|
|
3773
3745
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3774
|
-
return n ? i =
|
|
3746
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3775
3747
|
}
|
|
3776
|
-
),
|
|
3748
|
+
), Kn = He(
|
|
3777
3749
|
(e) => {
|
|
3778
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3750
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3779
3751
|
if (r == null)
|
|
3780
3752
|
throw new Error(
|
|
3781
3753
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3782
3754
|
);
|
|
3783
|
-
return n ? i =
|
|
3755
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3784
3756
|
}
|
|
3785
|
-
),
|
|
3757
|
+
), ei = (e = {}) => {
|
|
3786
3758
|
var t = e, {
|
|
3787
|
-
locale: r =
|
|
3788
|
-
} = t, n =
|
|
3759
|
+
locale: r = X()
|
|
3760
|
+
} = t, n = re(t, [
|
|
3789
3761
|
"locale"
|
|
3790
3762
|
]);
|
|
3791
3763
|
return Jn(We({ locale: r }, n));
|
|
3792
|
-
},
|
|
3764
|
+
}, ti = (e = {}) => {
|
|
3793
3765
|
var t = e, {
|
|
3794
|
-
locale: r =
|
|
3795
|
-
} = t, n =
|
|
3766
|
+
locale: r = X()
|
|
3767
|
+
} = t, n = re(t, [
|
|
3796
3768
|
"locale"
|
|
3797
3769
|
]);
|
|
3798
|
-
return
|
|
3799
|
-
},
|
|
3770
|
+
return Yn(We({ locale: r }, n));
|
|
3771
|
+
}, ri = (e = {}) => {
|
|
3800
3772
|
var t = e, {
|
|
3801
|
-
locale: r =
|
|
3802
|
-
} = t, n =
|
|
3773
|
+
locale: r = X()
|
|
3774
|
+
} = t, n = re(t, [
|
|
3803
3775
|
"locale"
|
|
3804
3776
|
]);
|
|
3805
|
-
return
|
|
3806
|
-
},
|
|
3777
|
+
return Kn(We({ locale: r }, n));
|
|
3778
|
+
}, ni = He(
|
|
3807
3779
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3808
|
-
(e, t =
|
|
3809
|
-
ignoreTag:
|
|
3780
|
+
(e, t = X()) => new On(e, t, K().formats, {
|
|
3781
|
+
ignoreTag: K().ignoreTag
|
|
3810
3782
|
})
|
|
3811
|
-
),
|
|
3783
|
+
), ii = (e, t = {}) => {
|
|
3812
3784
|
var r, n, i, s;
|
|
3813
3785
|
let o = t;
|
|
3814
3786
|
typeof e == "object" && (o = e, e = o.id);
|
|
3815
3787
|
const {
|
|
3816
|
-
values:
|
|
3817
|
-
locale: l =
|
|
3818
|
-
default:
|
|
3788
|
+
values: u,
|
|
3789
|
+
locale: l = X(),
|
|
3790
|
+
default: a
|
|
3819
3791
|
} = o;
|
|
3820
3792
|
if (l == null)
|
|
3821
3793
|
throw new Error(
|
|
@@ -3823,16 +3795,16 @@ const oe = (e, t) => {
|
|
|
3823
3795
|
);
|
|
3824
3796
|
let h = Ft(e, l);
|
|
3825
3797
|
if (!h)
|
|
3826
|
-
h = (s = (i = (n = (r =
|
|
3798
|
+
h = (s = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3827
3799
|
else if (typeof h != "string")
|
|
3828
3800
|
return console.warn(
|
|
3829
3801
|
`[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.`
|
|
3830
3802
|
), h;
|
|
3831
|
-
if (!
|
|
3803
|
+
if (!u)
|
|
3832
3804
|
return h;
|
|
3833
3805
|
let c = h;
|
|
3834
3806
|
try {
|
|
3835
|
-
c =
|
|
3807
|
+
c = ni(h, l).format(u);
|
|
3836
3808
|
} catch (f) {
|
|
3837
3809
|
f instanceof Error && console.warn(
|
|
3838
3810
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3840,16 +3812,16 @@ const oe = (e, t) => {
|
|
|
3840
3812
|
);
|
|
3841
3813
|
}
|
|
3842
3814
|
return c;
|
|
3843
|
-
},
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3815
|
+
}, si = (e, t) => ri(t).format(e), oi = (e, t) => ti(t).format(e), ai = (e, t) => ei(t).format(e), ui = (e, t = X()) => Ft(e, t), hi = ee([te, he], () => ii);
|
|
3816
|
+
ee([te], () => si);
|
|
3817
|
+
ee([te], () => oi);
|
|
3818
|
+
ee([te], () => ai);
|
|
3819
|
+
ee([te, he], () => ui);
|
|
3848
3820
|
function ft(e, t) {
|
|
3849
3821
|
kt(e, t);
|
|
3850
3822
|
}
|
|
3851
|
-
function
|
|
3852
|
-
|
|
3823
|
+
function li(e) {
|
|
3824
|
+
te.set(e);
|
|
3853
3825
|
}
|
|
3854
3826
|
const ct = {
|
|
3855
3827
|
en: {
|
|
@@ -3961,7 +3933,7 @@ const ct = {
|
|
|
3961
3933
|
games: "games"
|
|
3962
3934
|
}
|
|
3963
3935
|
};
|
|
3964
|
-
function
|
|
3936
|
+
function fi(e) {
|
|
3965
3937
|
Kt(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}");
|
|
3966
3938
|
}
|
|
3967
3939
|
function gt(e, t, r) {
|
|
@@ -3972,20 +3944,20 @@ function mt(e, t, r) {
|
|
|
3972
3944
|
const n = e.slice();
|
|
3973
3945
|
return n[23] = t[r], n;
|
|
3974
3946
|
}
|
|
3975
|
-
function
|
|
3947
|
+
function ci(e) {
|
|
3976
3948
|
let t, r, n = (
|
|
3977
3949
|
/*$_*/
|
|
3978
3950
|
e[5]("topCategories") + ""
|
|
3979
|
-
), i, s, o,
|
|
3951
|
+
), i, s, o, u, l = (
|
|
3980
3952
|
/*$_*/
|
|
3981
3953
|
e[5]("otherCategories") + ""
|
|
3982
|
-
),
|
|
3954
|
+
), a, h, c = ce(
|
|
3983
3955
|
/*topCategories*/
|
|
3984
3956
|
e[3]
|
|
3985
3957
|
), f = [];
|
|
3986
3958
|
for (let g = 0; g < c.length; g += 1)
|
|
3987
3959
|
f[g] = pt(mt(e, c, g));
|
|
3988
|
-
let p =
|
|
3960
|
+
let p = ce(
|
|
3989
3961
|
/*otherCategories*/
|
|
3990
3962
|
e[4]
|
|
3991
3963
|
), d = [];
|
|
@@ -3993,52 +3965,52 @@ function fi(e) {
|
|
|
3993
3965
|
d[g] = dt(gt(e, p, g));
|
|
3994
3966
|
return {
|
|
3995
3967
|
c() {
|
|
3996
|
-
t =
|
|
3968
|
+
t = A("div"), r = A("h4"), i = G(n), s = U();
|
|
3997
3969
|
for (let g = 0; g < f.length; g += 1)
|
|
3998
3970
|
f[g].c();
|
|
3999
|
-
o =
|
|
3971
|
+
o = U(), u = A("h4"), a = G(l), h = U();
|
|
4000
3972
|
for (let g = 0; g < d.length; g += 1)
|
|
4001
3973
|
d[g].c();
|
|
4002
|
-
L(r, "class", "CategoryTitle"), L(
|
|
3974
|
+
L(r, "class", "CategoryTitle"), L(u, "class", "CategoryTitle"), L(t, "class", "CasinoCategories");
|
|
4003
3975
|
},
|
|
4004
|
-
m(g,
|
|
4005
|
-
|
|
3976
|
+
m(g, E) {
|
|
3977
|
+
V(g, t, E), v(t, r), v(r, i), v(t, s);
|
|
4006
3978
|
for (let m = 0; m < f.length; m += 1)
|
|
4007
3979
|
f[m] && f[m].m(t, null);
|
|
4008
|
-
v(t, o), v(t,
|
|
3980
|
+
v(t, o), v(t, u), v(u, a), v(t, h);
|
|
4009
3981
|
for (let m = 0; m < d.length; m += 1)
|
|
4010
3982
|
d[m] && d[m].m(t, null);
|
|
4011
3983
|
},
|
|
4012
|
-
p(g,
|
|
4013
|
-
if (
|
|
3984
|
+
p(g, E) {
|
|
3985
|
+
if (E & /*$_*/
|
|
4014
3986
|
32 && n !== (n = /*$_*/
|
|
4015
|
-
g[5]("topCategories") + "") &&
|
|
3987
|
+
g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
|
|
4016
3988
|
105) {
|
|
4017
|
-
c =
|
|
3989
|
+
c = ce(
|
|
4018
3990
|
/*topCategories*/
|
|
4019
3991
|
g[3]
|
|
4020
3992
|
);
|
|
4021
3993
|
let m;
|
|
4022
3994
|
for (m = 0; m < c.length; m += 1) {
|
|
4023
|
-
const
|
|
4024
|
-
f[m] ? f[m].p(
|
|
3995
|
+
const T = mt(g, c, m);
|
|
3996
|
+
f[m] ? f[m].p(T, E) : (f[m] = pt(T), f[m].c(), f[m].m(t, o));
|
|
4025
3997
|
}
|
|
4026
3998
|
for (; m < f.length; m += 1)
|
|
4027
3999
|
f[m].d(1);
|
|
4028
4000
|
f.length = c.length;
|
|
4029
4001
|
}
|
|
4030
|
-
if (
|
|
4002
|
+
if (E & /*$_*/
|
|
4031
4003
|
32 && l !== (l = /*$_*/
|
|
4032
|
-
g[5]("otherCategories") + "") &&
|
|
4004
|
+
g[5]("otherCategories") + "") && F(a, l), E & /*activecategory, otherCategories, openGameCategory, $_*/
|
|
4033
4005
|
113) {
|
|
4034
|
-
p =
|
|
4006
|
+
p = ce(
|
|
4035
4007
|
/*otherCategories*/
|
|
4036
4008
|
g[4]
|
|
4037
4009
|
);
|
|
4038
4010
|
let m;
|
|
4039
4011
|
for (m = 0; m < p.length; m += 1) {
|
|
4040
|
-
const
|
|
4041
|
-
d[m] ? d[m].p(
|
|
4012
|
+
const T = gt(g, p, m);
|
|
4013
|
+
d[m] ? d[m].p(T, E) : (d[m] = dt(T), d[m].c(), d[m].m(t, null));
|
|
4042
4014
|
}
|
|
4043
4015
|
for (; m < d.length; m += 1)
|
|
4044
4016
|
d[m].d(1);
|
|
@@ -4046,36 +4018,36 @@ function fi(e) {
|
|
|
4046
4018
|
}
|
|
4047
4019
|
},
|
|
4048
4020
|
d(g) {
|
|
4049
|
-
g &&
|
|
4021
|
+
g && j(t), qe(f, g), qe(d, g);
|
|
4050
4022
|
}
|
|
4051
4023
|
};
|
|
4052
4024
|
}
|
|
4053
|
-
function
|
|
4025
|
+
function gi(e) {
|
|
4054
4026
|
let t;
|
|
4055
4027
|
return {
|
|
4056
4028
|
c() {
|
|
4057
|
-
t =
|
|
4029
|
+
t = A("p"), t.textContent = "Loading, please wait...", L(t, "class", "Message");
|
|
4058
4030
|
},
|
|
4059
4031
|
m(r, n) {
|
|
4060
|
-
|
|
4032
|
+
V(r, t, n);
|
|
4061
4033
|
},
|
|
4062
4034
|
p: N,
|
|
4063
4035
|
d(r) {
|
|
4064
|
-
r &&
|
|
4036
|
+
r && j(t);
|
|
4065
4037
|
}
|
|
4066
4038
|
};
|
|
4067
4039
|
}
|
|
4068
4040
|
function pt(e) {
|
|
4069
|
-
let t, r, n, i, s, o,
|
|
4041
|
+
let t, r, n, i, s, o, u, l = (
|
|
4070
4042
|
/*category*/
|
|
4071
4043
|
e[23].name + ""
|
|
4072
|
-
),
|
|
4044
|
+
), a, h, c, f = (
|
|
4073
4045
|
/*category*/
|
|
4074
4046
|
e[23].games.count + ""
|
|
4075
4047
|
), p, d, g = (
|
|
4076
4048
|
/*$_*/
|
|
4077
4049
|
e[5]("games") + ""
|
|
4078
|
-
),
|
|
4050
|
+
), E, m, T, S;
|
|
4079
4051
|
function O() {
|
|
4080
4052
|
return (
|
|
4081
4053
|
/*click_handler*/
|
|
@@ -4087,47 +4059,47 @@ function pt(e) {
|
|
|
4087
4059
|
}
|
|
4088
4060
|
return {
|
|
4089
4061
|
c() {
|
|
4090
|
-
t =
|
|
4062
|
+
t = A("div"), r = A("ui-image"), s = U(), o = A("div"), u = A("p"), a = G(l), h = U(), c = A("p"), p = G(f), d = U(), E = G(g), be(r.src, n = /*category*/
|
|
4091
4063
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4092
4064
|
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class", m = "Category " + /*activecategory*/
|
|
4093
4065
|
(e[0] === /*category*/
|
|
4094
4066
|
e[23].id ? "Active" : ""));
|
|
4095
4067
|
},
|
|
4096
4068
|
m(B, H) {
|
|
4097
|
-
|
|
4069
|
+
V(B, t, H), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, p), v(c, d), v(c, E), T || (S = Et(t, "click", O), T = !0);
|
|
4098
4070
|
},
|
|
4099
4071
|
p(B, H) {
|
|
4100
4072
|
e = B, H & /*topCategories*/
|
|
4101
|
-
8 && !
|
|
4073
|
+
8 && !be(r.src, n = /*category*/
|
|
4102
4074
|
e[23].icon) && $(r, "src", n), H & /*topCategories*/
|
|
4103
4075
|
8 && i !== (i = /*category*/
|
|
4104
4076
|
e[23].name) && $(r, "alt", i), H & /*topCategories*/
|
|
4105
4077
|
8 && l !== (l = /*category*/
|
|
4106
|
-
e[23].name + "") &&
|
|
4078
|
+
e[23].name + "") && F(a, l), H & /*topCategories*/
|
|
4107
4079
|
8 && f !== (f = /*category*/
|
|
4108
|
-
e[23].games.count + "") &&
|
|
4080
|
+
e[23].games.count + "") && F(p, f), H & /*$_*/
|
|
4109
4081
|
32 && g !== (g = /*$_*/
|
|
4110
|
-
e[5]("games") + "") &&
|
|
4082
|
+
e[5]("games") + "") && F(E, g), H & /*activecategory, topCategories*/
|
|
4111
4083
|
9 && m !== (m = "Category " + /*activecategory*/
|
|
4112
4084
|
(e[0] === /*category*/
|
|
4113
4085
|
e[23].id ? "Active" : "")) && L(t, "class", m);
|
|
4114
4086
|
},
|
|
4115
4087
|
d(B) {
|
|
4116
|
-
B &&
|
|
4088
|
+
B && j(t), T = !1, S();
|
|
4117
4089
|
}
|
|
4118
4090
|
};
|
|
4119
4091
|
}
|
|
4120
4092
|
function dt(e) {
|
|
4121
|
-
let t, r, n, i, s, o,
|
|
4093
|
+
let t, r, n, i, s, o, u, l = (
|
|
4122
4094
|
/*category*/
|
|
4123
4095
|
e[23].name + ""
|
|
4124
|
-
),
|
|
4096
|
+
), a, h, c, f = (
|
|
4125
4097
|
/*category*/
|
|
4126
4098
|
e[23].games.count + ""
|
|
4127
4099
|
), p, d, g = (
|
|
4128
4100
|
/*$_*/
|
|
4129
4101
|
e[5]("games") + ""
|
|
4130
|
-
),
|
|
4102
|
+
), E, m, T, S, O;
|
|
4131
4103
|
function B() {
|
|
4132
4104
|
return (
|
|
4133
4105
|
/*click_handler_1*/
|
|
@@ -4139,51 +4111,51 @@ function dt(e) {
|
|
|
4139
4111
|
}
|
|
4140
4112
|
return {
|
|
4141
4113
|
c() {
|
|
4142
|
-
t =
|
|
4114
|
+
t = A("div"), r = A("ui-image"), s = U(), o = A("div"), u = A("p"), a = G(l), h = U(), c = A("p"), p = G(f), d = U(), E = G(g), m = U(), be(r.src, n = /*category*/
|
|
4143
4115
|
e[23].icon) || $(r, "src", n), $(r, "alt", i = /*category*/
|
|
4144
|
-
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class",
|
|
4116
|
+
e[23].name), $(r, "class", "CategoryImage"), L(o, "class", "CategoryTextContainer"), L(t, "class", T = "Category " + /*activecategory*/
|
|
4145
4117
|
(e[0] === /*category*/
|
|
4146
4118
|
e[23].id ? "Active" : ""));
|
|
4147
4119
|
},
|
|
4148
4120
|
m(H, P) {
|
|
4149
|
-
|
|
4121
|
+
V(H, t, P), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, p), v(c, d), v(c, E), v(t, m), S || (O = Et(t, "click", B), S = !0);
|
|
4150
4122
|
},
|
|
4151
4123
|
p(H, P) {
|
|
4152
4124
|
e = H, P & /*otherCategories*/
|
|
4153
|
-
16 && !
|
|
4125
|
+
16 && !be(r.src, n = /*category*/
|
|
4154
4126
|
e[23].icon) && $(r, "src", n), P & /*otherCategories*/
|
|
4155
4127
|
16 && i !== (i = /*category*/
|
|
4156
4128
|
e[23].name) && $(r, "alt", i), P & /*otherCategories*/
|
|
4157
4129
|
16 && l !== (l = /*category*/
|
|
4158
|
-
e[23].name + "") &&
|
|
4130
|
+
e[23].name + "") && F(a, l), P & /*otherCategories*/
|
|
4159
4131
|
16 && f !== (f = /*category*/
|
|
4160
|
-
e[23].games.count + "") &&
|
|
4132
|
+
e[23].games.count + "") && F(p, f), P & /*$_*/
|
|
4161
4133
|
32 && g !== (g = /*$_*/
|
|
4162
|
-
e[5]("games") + "") &&
|
|
4163
|
-
17 &&
|
|
4134
|
+
e[5]("games") + "") && F(E, g), P & /*activecategory, otherCategories*/
|
|
4135
|
+
17 && T !== (T = "Category " + /*activecategory*/
|
|
4164
4136
|
(e[0] === /*category*/
|
|
4165
|
-
e[23].id ? "Active" : "")) && L(t, "class",
|
|
4137
|
+
e[23].id ? "Active" : "")) && L(t, "class", T);
|
|
4166
4138
|
},
|
|
4167
4139
|
d(H) {
|
|
4168
|
-
H &&
|
|
4140
|
+
H && j(t), S = !1, O();
|
|
4169
4141
|
}
|
|
4170
4142
|
};
|
|
4171
4143
|
}
|
|
4172
|
-
function
|
|
4144
|
+
function mi(e) {
|
|
4173
4145
|
let t;
|
|
4174
4146
|
function r(s, o) {
|
|
4175
4147
|
return (
|
|
4176
4148
|
/*isLoading*/
|
|
4177
|
-
s[2] ?
|
|
4149
|
+
s[2] ? gi : ci
|
|
4178
4150
|
);
|
|
4179
4151
|
}
|
|
4180
4152
|
let n = r(e), i = n(e);
|
|
4181
4153
|
return {
|
|
4182
4154
|
c() {
|
|
4183
|
-
t =
|
|
4155
|
+
t = A("div"), i.c();
|
|
4184
4156
|
},
|
|
4185
4157
|
m(s, o) {
|
|
4186
|
-
|
|
4158
|
+
V(s, t, o), i.m(t, null), e[17](t);
|
|
4187
4159
|
},
|
|
4188
4160
|
p(s, [o]) {
|
|
4189
4161
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4191,65 +4163,65 @@ function gi(e) {
|
|
|
4191
4163
|
i: N,
|
|
4192
4164
|
o: N,
|
|
4193
4165
|
d(s) {
|
|
4194
|
-
s &&
|
|
4166
|
+
s && j(t), i.d(), e[17](null);
|
|
4195
4167
|
}
|
|
4196
4168
|
};
|
|
4197
4169
|
}
|
|
4198
|
-
function
|
|
4170
|
+
function pi(e, t, r) {
|
|
4199
4171
|
let n;
|
|
4200
|
-
Yt(e,
|
|
4201
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory:
|
|
4172
|
+
Yt(e, hi, (b) => r(5, n = b));
|
|
4173
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
|
|
4202
4174
|
const g = [];
|
|
4203
|
-
let
|
|
4175
|
+
let E = [], m = [];
|
|
4204
4176
|
Object.keys(ct).forEach((b) => {
|
|
4205
4177
|
ft(b, ct[b]);
|
|
4206
4178
|
});
|
|
4207
|
-
const
|
|
4179
|
+
const T = () => {
|
|
4208
4180
|
fetch(c).then((M) => M.json()).then((M) => {
|
|
4209
|
-
Object.keys(M).forEach((
|
|
4210
|
-
ft(
|
|
4181
|
+
Object.keys(M).forEach((le) => {
|
|
4182
|
+
ft(le, M[le]);
|
|
4211
4183
|
});
|
|
4212
4184
|
}).catch((M) => {
|
|
4213
4185
|
console.log(M);
|
|
4214
4186
|
});
|
|
4215
|
-
},
|
|
4187
|
+
}, S = () => {
|
|
4216
4188
|
r(2, d = !0);
|
|
4217
4189
|
const b = new URL(`${i}/v1/casino/groups/${s}`);
|
|
4218
4190
|
b.searchParams.append("language", o), fetch(b).then((M) => M.json()).then((M) => {
|
|
4219
4191
|
r(2, d = !1);
|
|
4220
|
-
const
|
|
4192
|
+
const le = l.split(",").map((k) => k.trim());
|
|
4221
4193
|
g.push(...M.items);
|
|
4222
|
-
const Ze = g.filter((
|
|
4223
|
-
r(3,
|
|
4194
|
+
const Ze = g.filter((k) => !le.some((qt) => k.flags?.indexOf(qt) >= 0));
|
|
4195
|
+
r(3, E = Ze.filter((k) => k.isTopCategory === !0)), r(4, m = Ze.filter((k) => k.isTopCategory === !1));
|
|
4224
4196
|
});
|
|
4225
4197
|
}, O = (b) => {
|
|
4226
4198
|
window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
|
|
4227
4199
|
}, B = () => {
|
|
4228
|
-
|
|
4200
|
+
li(o);
|
|
4229
4201
|
};
|
|
4230
4202
|
or(() => () => {
|
|
4231
4203
|
});
|
|
4232
4204
|
const H = (b) => O(b.id), P = (b) => O(b.id);
|
|
4233
4205
|
function Qt(b) {
|
|
4234
|
-
|
|
4206
|
+
Le[b ? "unshift" : "push"](() => {
|
|
4235
4207
|
p = b, r(1, p);
|
|
4236
4208
|
});
|
|
4237
4209
|
}
|
|
4238
4210
|
return e.$$set = (b) => {
|
|
4239
|
-
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0,
|
|
4211
|
+
"endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
|
|
4240
4212
|
}, e.$$.update = () => {
|
|
4241
4213
|
e.$$.dirty & /*endpoint, datasource*/
|
|
4242
|
-
384 && i && s &&
|
|
4243
|
-
8192 && c &&
|
|
4214
|
+
384 && i && s && S(), e.$$.dirty & /*translationurl*/
|
|
4215
|
+
8192 && c && T(), e.$$.dirty & /*lang*/
|
|
4244
4216
|
512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4245
|
-
2050 &&
|
|
4246
|
-
4098 && h && p &&
|
|
4217
|
+
2050 && a && p && _r(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4218
|
+
4098 && h && p && yr(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4247
4219
|
16386 && f && p && Er(p, `${f}.Style`);
|
|
4248
4220
|
}, [
|
|
4249
|
-
|
|
4221
|
+
u,
|
|
4250
4222
|
p,
|
|
4251
4223
|
d,
|
|
4252
|
-
|
|
4224
|
+
E,
|
|
4253
4225
|
m,
|
|
4254
4226
|
n,
|
|
4255
4227
|
O,
|
|
@@ -4257,7 +4229,7 @@ function mi(e, t, r) {
|
|
|
4257
4229
|
s,
|
|
4258
4230
|
o,
|
|
4259
4231
|
l,
|
|
4260
|
-
|
|
4232
|
+
a,
|
|
4261
4233
|
h,
|
|
4262
4234
|
c,
|
|
4263
4235
|
f,
|
|
@@ -4271,9 +4243,9 @@ class Zt extends dr {
|
|
|
4271
4243
|
super(), mr(
|
|
4272
4244
|
this,
|
|
4273
4245
|
t,
|
|
4246
|
+
pi,
|
|
4274
4247
|
mi,
|
|
4275
|
-
|
|
4276
|
-
yt,
|
|
4248
|
+
_t,
|
|
4277
4249
|
{
|
|
4278
4250
|
endpoint: 7,
|
|
4279
4251
|
datasource: 8,
|
|
@@ -4285,7 +4257,7 @@ class Zt extends dr {
|
|
|
4285
4257
|
translationurl: 13,
|
|
4286
4258
|
mbsource: 14
|
|
4287
4259
|
},
|
|
4288
|
-
|
|
4260
|
+
fi
|
|
4289
4261
|
);
|
|
4290
4262
|
}
|
|
4291
4263
|
get endpoint() {
|
|
@@ -4344,50 +4316,46 @@ class Zt extends dr {
|
|
|
4344
4316
|
}
|
|
4345
4317
|
}
|
|
4346
4318
|
pr(Zt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4347
|
-
const
|
|
4319
|
+
const xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4348
4320
|
__proto__: null,
|
|
4349
4321
|
default: Zt
|
|
4350
4322
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4351
4323
|
export {
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
rr as J,
|
|
4363
|
-
bi as K,
|
|
4364
|
-
Ti as L,
|
|
4324
|
+
te as $,
|
|
4325
|
+
yi as A,
|
|
4326
|
+
bi as B,
|
|
4327
|
+
ce as C,
|
|
4328
|
+
qe as D,
|
|
4329
|
+
vi as E,
|
|
4330
|
+
rr as F,
|
|
4331
|
+
_i as G,
|
|
4332
|
+
Ei as H,
|
|
4333
|
+
xi as I,
|
|
4365
4334
|
dr as S,
|
|
4366
|
-
xi as _,
|
|
4367
4335
|
kt as a,
|
|
4368
4336
|
Kt as b,
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4337
|
+
F as c,
|
|
4338
|
+
j as d,
|
|
4339
|
+
L as e,
|
|
4372
4340
|
I as f,
|
|
4373
|
-
|
|
4374
|
-
|
|
4341
|
+
$ as g,
|
|
4342
|
+
V as h,
|
|
4375
4343
|
mr as i,
|
|
4376
|
-
|
|
4377
|
-
|
|
4344
|
+
v as j,
|
|
4345
|
+
A as k,
|
|
4378
4346
|
Et as l,
|
|
4379
|
-
|
|
4347
|
+
U as m,
|
|
4380
4348
|
N as n,
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4349
|
+
Yt as o,
|
|
4350
|
+
or as p,
|
|
4351
|
+
Le as q,
|
|
4352
|
+
ue as r,
|
|
4353
|
+
_t as s,
|
|
4354
|
+
G as t,
|
|
4387
4355
|
_r as u,
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4356
|
+
yr as v,
|
|
4357
|
+
Er as w,
|
|
4358
|
+
pr as x,
|
|
4359
|
+
hi as y,
|
|
4360
|
+
be as z
|
|
4393
4361
|
};
|