@everymatrix/casino-last-played-section 1.67.3 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoFilter-DT7oAwTf.js → CasinoFilter-CZl1cztJ.js} +877 -842
- package/components/CasinoFilter-WNFrQkQJ.cjs +18 -0
- package/components/{CasinoFilter-CVr-_1Je.js → CasinoFilter-fITDy2f1.js} +920 -885
- package/components/{CasinoGameThumbnail-D0wIOkmi.js → CasinoGameThumbnail-BS8fymkb.js} +66 -66
- package/components/{CasinoGameThumbnail-C-40ZnYW.js → CasinoGameThumbnail-BaX6mLdw.js} +66 -66
- package/components/{CasinoGameThumbnail-Crx-3GhB.cjs → CasinoGameThumbnail-CYDuVrC6.cjs} +1 -1
- package/components/CasinoGamesCategorySection-BCeh01vB.cjs +1 -0
- package/components/{CasinoGamesCategorySection-D4PdEMBr.js → CasinoGamesCategorySection-DtM-qLXG.js} +136 -136
- package/components/{CasinoGamesCategorySection-BUfbpJeT.js → CasinoGamesCategorySection-fgHQUZ4F.js} +122 -122
- package/components/{CasinoLastPlayedSection-Cx2wMd4S.js → CasinoLastPlayedSection-BWr5G79x.js} +35 -35
- package/components/{CasinoLastPlayedSection-DF6yTQuv.cjs → CasinoLastPlayedSection-CIv0WesW.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-TngEJvjN.js → CasinoLastPlayedSection-PpScClz1.js} +27 -27
- package/components/{CasinoSort-D0I9EWJw.js → CasinoSort-C9ECfUlx.js} +16 -16
- package/components/{CasinoSort-iKKy4hj8.cjs → CasinoSort-C_DOIYQz.cjs} +1 -1
- package/components/{CasinoSort-BLZ3SeBj.js → CasinoSort-b4vaEPet.js} +16 -16
- package/es2015/casino-last-played-section.cjs +1 -1
- package/es2015/casino-last-played-section.js +1 -1
- package/esnext/casino-last-played-section.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
- package/stencil/{ui-image-B2ynFkLT.cjs → ui-image-CMb1eK44.cjs} +1 -1
- package/stencil/{ui-image-D7A7MInC.js → ui-image-CQQDA5b0.js} +1 -1
- package/stencil/{ui-image-D_Js9Evk.js → ui-image-CmwNU-jf.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/components/CasinoFilter-5tOlVA2J.cjs +0 -18
- package/components/CasinoGamesCategorySection-C7h4U536.cjs +0 -1
- package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
@@ -1,28 +1,28 @@
|
|
1
1
|
function G() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function qt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function Et() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function Y(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(qt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function vt(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Yt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
18
|
let Fe;
|
19
|
-
function
|
19
|
+
function wt(e, t) {
|
20
20
|
return e === t ? !0 : (Fe || (Fe = document.createElement("a")), Fe.href = t, e === Fe.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Rr(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Kt(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -31,20 +31,20 @@ function Jt(e, ...t) {
|
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
35
|
-
e.$$.on_destroy.push(
|
34
|
+
function $r(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(Kt(t, r));
|
36
36
|
}
|
37
37
|
function _(e, t) {
|
38
38
|
e.appendChild(t);
|
39
39
|
}
|
40
|
-
function
|
41
|
-
const n =
|
40
|
+
function Ur(e, t, r) {
|
41
|
+
const n = Dr(e);
|
42
42
|
if (!n.getElementById(t)) {
|
43
|
-
const i =
|
44
|
-
i.id = t, i.textContent = r,
|
43
|
+
const i = B("style");
|
44
|
+
i.id = t, i.textContent = r, Gr(n, i);
|
45
45
|
}
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function Dr(e) {
|
48
48
|
if (!e)
|
49
49
|
return document;
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -54,37 +54,37 @@ function Mr(e) {
|
|
54
54
|
t
|
55
55
|
) : e.ownerDocument;
|
56
56
|
}
|
57
|
-
function
|
57
|
+
function Gr(e, t) {
|
58
58
|
return _(
|
59
59
|
/** @type {Document} */
|
60
60
|
e.head || e,
|
61
61
|
t
|
62
62
|
), t.sheet;
|
63
63
|
}
|
64
|
-
function
|
64
|
+
function W(e, t, r) {
|
65
65
|
e.insertBefore(t, r || null);
|
66
66
|
}
|
67
67
|
function k(e) {
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
69
69
|
}
|
70
|
-
function
|
70
|
+
function kr(e, t) {
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
72
72
|
e[r] && e[r].d(t);
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function B(e) {
|
75
75
|
return document.createElement(e);
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function xe(e) {
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
79
79
|
}
|
80
|
-
function
|
80
|
+
function D(e) {
|
81
81
|
return document.createTextNode(e);
|
82
82
|
}
|
83
83
|
function V() {
|
84
|
-
return
|
84
|
+
return D(" ");
|
85
85
|
}
|
86
|
-
function
|
87
|
-
return
|
86
|
+
function xo() {
|
87
|
+
return D("");
|
88
88
|
}
|
89
89
|
function Re(e, t, r, n) {
|
90
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
@@ -92,24 +92,24 @@ function Re(e, t, r, n) {
|
|
92
92
|
function g(e, t, r) {
|
93
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function Eo(e, t, r) {
|
96
96
|
const n = t.toLowerCase();
|
97
97
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : g(e, t, r);
|
98
98
|
}
|
99
|
-
function
|
99
|
+
function jr(e) {
|
100
100
|
return Array.from(e.childNodes);
|
101
101
|
}
|
102
102
|
function q(e, t) {
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
104
104
|
t);
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function St(e, t) {
|
107
107
|
e.value = t ?? "";
|
108
108
|
}
|
109
|
-
function
|
109
|
+
function wo(e, t, r) {
|
110
110
|
e.classList.toggle(t, !!r);
|
111
111
|
}
|
112
|
-
class
|
112
|
+
class So {
|
113
113
|
/**
|
114
114
|
* @private
|
115
115
|
* @default false
|
@@ -140,10 +140,10 @@ class _o {
|
|
140
140
|
* @returns {void}
|
141
141
|
*/
|
142
142
|
m(t, r, n = null) {
|
143
|
-
this.e || (this.is_svg ? this.e =
|
143
|
+
this.e || (this.is_svg ? this.e = xe(
|
144
144
|
/** @type {keyof SVGElementTagNameMap} */
|
145
145
|
r.nodeName
|
146
|
-
) : this.e =
|
146
|
+
) : this.e = B(
|
147
147
|
/** @type {keyof HTMLElementTagNameMap} */
|
148
148
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
149
149
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
@@ -164,7 +164,7 @@ class _o {
|
|
164
164
|
* @returns {void} */
|
165
165
|
i(t) {
|
166
166
|
for (let r = 0; r < this.n.length; r += 1)
|
167
|
-
|
167
|
+
W(this.t, this.n[r], t);
|
168
168
|
}
|
169
169
|
/**
|
170
170
|
* @param {string} html
|
@@ -179,7 +179,7 @@ class _o {
|
|
179
179
|
this.n.forEach(k);
|
180
180
|
}
|
181
181
|
}
|
182
|
-
function
|
182
|
+
function Vr(e) {
|
183
183
|
const t = {};
|
184
184
|
return e.childNodes.forEach(
|
185
185
|
/** @param {Element} node */
|
@@ -188,126 +188,126 @@ function $r(e) {
|
|
188
188
|
}
|
189
189
|
), t;
|
190
190
|
}
|
191
|
-
let
|
192
|
-
function
|
193
|
-
|
191
|
+
let we;
|
192
|
+
function Ee(e) {
|
193
|
+
we = e;
|
194
194
|
}
|
195
|
-
function
|
196
|
-
if (!
|
195
|
+
function er() {
|
196
|
+
if (!we)
|
197
197
|
throw new Error("Function called outside component initialization");
|
198
|
-
return
|
198
|
+
return we;
|
199
199
|
}
|
200
|
-
function
|
201
|
-
|
200
|
+
function Xr(e) {
|
201
|
+
er().$$.on_mount.push(e);
|
202
202
|
}
|
203
|
-
function
|
204
|
-
|
203
|
+
function To(e) {
|
204
|
+
er().$$.on_destroy.push(e);
|
205
205
|
}
|
206
|
-
const ce = [],
|
206
|
+
const ce = [], tt = [];
|
207
207
|
let fe = [];
|
208
|
-
const
|
209
|
-
let
|
210
|
-
function
|
211
|
-
|
208
|
+
const Tt = [], tr = /* @__PURE__ */ Promise.resolve();
|
209
|
+
let rt = !1;
|
210
|
+
function rr() {
|
211
|
+
rt || (rt = !0, tr.then($));
|
212
212
|
}
|
213
|
-
function
|
214
|
-
return
|
213
|
+
function Ho() {
|
214
|
+
return rr(), tr;
|
215
215
|
}
|
216
|
-
function
|
216
|
+
function nt(e) {
|
217
217
|
fe.push(e);
|
218
218
|
}
|
219
|
-
const
|
219
|
+
const ze = /* @__PURE__ */ new Set();
|
220
220
|
let ue = 0;
|
221
|
-
function
|
221
|
+
function $() {
|
222
222
|
if (ue !== 0)
|
223
223
|
return;
|
224
|
-
const e =
|
224
|
+
const e = we;
|
225
225
|
do {
|
226
226
|
try {
|
227
227
|
for (; ue < ce.length; ) {
|
228
228
|
const t = ce[ue];
|
229
|
-
ue++,
|
229
|
+
ue++, Ee(t), Wr(t.$$);
|
230
230
|
}
|
231
231
|
} catch (t) {
|
232
232
|
throw ce.length = 0, ue = 0, t;
|
233
233
|
}
|
234
|
-
for (
|
235
|
-
|
234
|
+
for (Ee(null), ce.length = 0, ue = 0; tt.length; )
|
235
|
+
tt.pop()();
|
236
236
|
for (let t = 0; t < fe.length; t += 1) {
|
237
237
|
const r = fe[t];
|
238
|
-
|
238
|
+
ze.has(r) || (ze.add(r), r());
|
239
239
|
}
|
240
240
|
fe.length = 0;
|
241
241
|
} while (ce.length);
|
242
|
-
for (;
|
243
|
-
|
244
|
-
|
242
|
+
for (; Tt.length; )
|
243
|
+
Tt.pop()();
|
244
|
+
rt = !1, ze.clear(), Ee(e);
|
245
245
|
}
|
246
|
-
function
|
246
|
+
function Wr(e) {
|
247
247
|
if (e.fragment !== null) {
|
248
248
|
e.update(), Y(e.before_update);
|
249
249
|
const t = e.dirty;
|
250
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
250
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(nt);
|
251
251
|
}
|
252
252
|
}
|
253
|
-
function
|
253
|
+
function zr(e) {
|
254
254
|
const t = [], r = [];
|
255
255
|
fe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), fe = t;
|
256
256
|
}
|
257
|
-
const
|
258
|
-
function
|
259
|
-
e && e.i && (
|
257
|
+
const Zr = /* @__PURE__ */ new Set();
|
258
|
+
function nr(e, t) {
|
259
|
+
e && e.i && (Zr.delete(e), e.i(t));
|
260
260
|
}
|
261
|
-
function
|
261
|
+
function Ht(e) {
|
262
262
|
return e?.length !== void 0 ? e : Array.from(e);
|
263
263
|
}
|
264
|
-
function
|
264
|
+
function Ao(e, t) {
|
265
265
|
e.d(1), t.delete(e.key);
|
266
266
|
}
|
267
|
-
function
|
267
|
+
function Po(e, t, r, n, i, o, s, a, h, l, u, p) {
|
268
268
|
let c = e.length, m = o.length, v = c;
|
269
269
|
const y = {};
|
270
270
|
for (; v--; )
|
271
271
|
y[e[v].key] = v;
|
272
|
-
const
|
272
|
+
const T = [], H = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), b = [];
|
273
273
|
for (v = m; v--; ) {
|
274
|
-
const
|
275
|
-
let N = s.get(
|
276
|
-
N ? b.push(() => N.p(
|
274
|
+
const A = p(i, o, v), P = r(A);
|
275
|
+
let N = s.get(P);
|
276
|
+
N ? b.push(() => N.p(A, t)) : (N = l(P, A), N.c()), H.set(P, T[v] = N), P in y && S.set(P, Math.abs(v - y[P]));
|
277
277
|
}
|
278
278
|
const I = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
279
|
-
function M(
|
280
|
-
|
279
|
+
function M(A) {
|
280
|
+
nr(A, 1), A.m(a, u), s.set(A.key, A), u = A.first, m--;
|
281
281
|
}
|
282
282
|
for (; c && m; ) {
|
283
|
-
const
|
284
|
-
|
283
|
+
const A = T[m - 1], P = e[c - 1], N = A.key, z = P.key;
|
284
|
+
A === P ? (u = A.first, c--, m--) : H.has(z) ? !s.has(N) || I.has(N) ? M(A) : L.has(z) ? c-- : S.get(N) > S.get(z) ? (L.add(N), M(A)) : (I.add(z), c--) : (h(P, s), c--);
|
285
285
|
}
|
286
286
|
for (; c--; ) {
|
287
|
-
const
|
288
|
-
|
287
|
+
const A = e[c];
|
288
|
+
H.has(A.key) || h(A, s);
|
289
289
|
}
|
290
290
|
for (; m; )
|
291
|
-
M(
|
292
|
-
return Y(b),
|
291
|
+
M(T[m - 1]);
|
292
|
+
return Y(b), T;
|
293
293
|
}
|
294
|
-
function
|
294
|
+
function Jr(e, t, r) {
|
295
295
|
const { fragment: n, after_update: i } = e.$$;
|
296
|
-
n && n.m(t, r),
|
297
|
-
const o = e.$$.on_mount.map(
|
296
|
+
n && n.m(t, r), nt(() => {
|
297
|
+
const o = e.$$.on_mount.map(qt).filter(vt);
|
298
298
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
|
299
|
-
}), i.forEach(
|
299
|
+
}), i.forEach(nt);
|
300
300
|
}
|
301
|
-
function
|
301
|
+
function Qr(e, t) {
|
302
302
|
const r = e.$$;
|
303
|
-
r.fragment !== null && (
|
303
|
+
r.fragment !== null && (zr(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
304
304
|
}
|
305
|
-
function
|
306
|
-
e.$$.dirty[0] === -1 && (ce.push(e),
|
305
|
+
function qr(e, t) {
|
306
|
+
e.$$.dirty[0] === -1 && (ce.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
307
307
|
}
|
308
|
-
function
|
309
|
-
const h =
|
310
|
-
|
308
|
+
function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
309
|
+
const h = we;
|
310
|
+
Ee(e);
|
311
311
|
const l = e.$$ = {
|
312
312
|
fragment: null,
|
313
313
|
ctx: [],
|
@@ -315,7 +315,7 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
315
315
|
props: o,
|
316
316
|
update: G,
|
317
317
|
not_equal: i,
|
318
|
-
bound:
|
318
|
+
bound: Et(),
|
319
319
|
// lifecycle
|
320
320
|
on_mount: [],
|
321
321
|
on_destroy: [],
|
@@ -324,28 +324,28 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
324
324
|
after_update: [],
|
325
325
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
326
326
|
// everything else
|
327
|
-
callbacks:
|
327
|
+
callbacks: Et(),
|
328
328
|
dirty: a,
|
329
329
|
skip_bound: !1,
|
330
330
|
root: t.target || h.$$.root
|
331
331
|
};
|
332
332
|
s && s(l.root);
|
333
333
|
let u = !1;
|
334
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
334
|
+
if (l.ctx = r ? r(e, t.props || {}, (p, c, ...m) => {
|
335
335
|
const v = m.length ? m[0] : c;
|
336
|
-
return l.ctx && i(l.ctx[
|
336
|
+
return l.ctx && i(l.ctx[p], l.ctx[p] = v) && (!l.skip_bound && l.bound[p] && l.bound[p](v), u && qr(e, p)), c;
|
337
337
|
}) : [], l.update(), u = !0, Y(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
338
338
|
if (t.hydrate) {
|
339
|
-
const
|
340
|
-
l.fragment && l.fragment.l(
|
339
|
+
const p = jr(t.target);
|
340
|
+
l.fragment && l.fragment.l(p), p.forEach(k);
|
341
341
|
} else
|
342
342
|
l.fragment && l.fragment.c();
|
343
|
-
t.intro &&
|
343
|
+
t.intro && nr(e.$$.fragment), Jr(e, t.target, t.anchor), $();
|
344
344
|
}
|
345
|
-
|
345
|
+
Ee(h);
|
346
346
|
}
|
347
|
-
let
|
348
|
-
typeof HTMLElement == "function" && (
|
347
|
+
let ir;
|
348
|
+
typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
349
349
|
/** The Svelte component constructor */
|
350
350
|
$$ctor;
|
351
351
|
/** Slots */
|
@@ -387,14 +387,14 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
387
387
|
let o;
|
388
388
|
return {
|
389
389
|
c: function() {
|
390
|
-
o =
|
390
|
+
o = B("slot"), i !== "default" && g(o, "name", i);
|
391
391
|
},
|
392
392
|
/**
|
393
393
|
* @param {HTMLElement} target
|
394
394
|
* @param {HTMLElement} [anchor]
|
395
395
|
*/
|
396
396
|
m: function(h, l) {
|
397
|
-
|
397
|
+
W(h, o, l);
|
398
398
|
},
|
399
399
|
d: function(h) {
|
400
400
|
h && k(o);
|
@@ -404,7 +404,7 @@ typeof HTMLElement == "function" && (er = class extends HTMLElement {
|
|
404
404
|
};
|
405
405
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
406
406
|
return;
|
407
|
-
const t = {}, r =
|
407
|
+
const t = {}, r = Vr(this);
|
408
408
|
for (const i of this.$$s)
|
409
409
|
i in r && (t[i] = [e(i)]);
|
410
410
|
for (const i of this.attributes) {
|
@@ -491,8 +491,8 @@ function Ie(e, t, r, n) {
|
|
491
491
|
return t;
|
492
492
|
}
|
493
493
|
}
|
494
|
-
function
|
495
|
-
let s = class extends
|
494
|
+
function Kr(e, t, r, n, i, o) {
|
495
|
+
let s = class extends ir {
|
496
496
|
constructor() {
|
497
497
|
super(e, r, i), this.$$p_d = t;
|
498
498
|
}
|
@@ -520,7 +520,7 @@ function Jr(e, t, r, n, i, o) {
|
|
520
520
|
}), e.element = /** @type {any} */
|
521
521
|
s, s;
|
522
522
|
}
|
523
|
-
class
|
523
|
+
class en {
|
524
524
|
/**
|
525
525
|
* ### PRIVATE API
|
526
526
|
*
|
@@ -539,7 +539,7 @@ class Qr {
|
|
539
539
|
$$set = void 0;
|
540
540
|
/** @returns {void} */
|
541
541
|
$destroy() {
|
542
|
-
|
542
|
+
Qr(this, 1), this.$destroy = G;
|
543
543
|
}
|
544
544
|
/**
|
545
545
|
* @template {Extract<keyof Events, string>} K
|
@@ -548,7 +548,7 @@ class Qr {
|
|
548
548
|
* @returns {() => void}
|
549
549
|
*/
|
550
550
|
$on(t, r) {
|
551
|
-
if (!
|
551
|
+
if (!vt(r))
|
552
552
|
return G;
|
553
553
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
554
554
|
return n.push(r), () => {
|
@@ -561,11 +561,11 @@ class Qr {
|
|
561
561
|
* @returns {void}
|
562
562
|
*/
|
563
563
|
$set(t) {
|
564
|
-
this.$$set && !
|
564
|
+
this.$$set && !Rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
565
565
|
}
|
566
566
|
}
|
567
|
-
const
|
568
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
567
|
+
const tn = "4";
|
568
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(tn);
|
569
569
|
/*! *****************************************************************************
|
570
570
|
Copyright (c) Microsoft Corporation.
|
571
571
|
|
@@ -580,43 +580,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
580
580
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
581
581
|
PERFORMANCE OF THIS SOFTWARE.
|
582
582
|
***************************************************************************** */
|
583
|
-
var
|
584
|
-
return
|
583
|
+
var it = function(e, t) {
|
584
|
+
return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
585
585
|
r.__proto__ = n;
|
586
586
|
} || function(r, n) {
|
587
587
|
for (var i in n)
|
588
588
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
589
|
-
},
|
589
|
+
}, it(e, t);
|
590
590
|
};
|
591
|
-
function
|
591
|
+
function He(e, t) {
|
592
592
|
if (typeof t != "function" && t !== null)
|
593
593
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
594
|
-
|
594
|
+
it(e, t);
|
595
595
|
function r() {
|
596
596
|
this.constructor = e;
|
597
597
|
}
|
598
598
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
599
599
|
}
|
600
|
-
|
601
|
-
return T = Object.assign || function(t) {
|
602
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
603
|
-
r = arguments[n];
|
604
|
-
for (var o in r)
|
605
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
606
|
-
}
|
607
|
-
return t;
|
608
|
-
}, T.apply(this, arguments);
|
609
|
-
};
|
610
|
-
function Yr(e, t) {
|
611
|
-
var r = {};
|
612
|
-
for (var n in e)
|
613
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
614
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
615
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
616
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
617
|
-
return r;
|
618
|
-
}
|
619
|
-
function rt(e) {
|
600
|
+
function ot(e) {
|
620
601
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
621
602
|
if (r)
|
622
603
|
return r.call(e);
|
@@ -628,7 +609,7 @@ function rt(e) {
|
|
628
609
|
};
|
629
610
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
630
611
|
}
|
631
|
-
function
|
612
|
+
function st(e, t) {
|
632
613
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
633
614
|
if (!r)
|
634
615
|
return e;
|
@@ -648,22 +629,22 @@ function nt(e, t) {
|
|
648
629
|
}
|
649
630
|
return o;
|
650
631
|
}
|
651
|
-
function
|
652
|
-
if (
|
632
|
+
function at(e, t, r) {
|
633
|
+
if (arguments.length === 2)
|
653
634
|
for (var n = 0, i = t.length, o; n < i; n++)
|
654
635
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
655
636
|
return e.concat(o || t);
|
656
637
|
}
|
657
|
-
function
|
638
|
+
function Z(e) {
|
658
639
|
return typeof e == "function";
|
659
640
|
}
|
660
|
-
function
|
641
|
+
function or(e) {
|
661
642
|
var t = function(n) {
|
662
643
|
Error.call(n), n.stack = new Error().stack;
|
663
644
|
}, r = e(t);
|
664
645
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
665
646
|
}
|
666
|
-
var
|
647
|
+
var Ze = or(function(e) {
|
667
648
|
return function(r) {
|
668
649
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
669
650
|
` + r.map(function(n, i) {
|
@@ -672,13 +653,13 @@ var We = tr(function(e) {
|
|
672
653
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
673
654
|
};
|
674
655
|
});
|
675
|
-
function
|
656
|
+
function lt(e, t) {
|
676
657
|
if (e) {
|
677
658
|
var r = e.indexOf(t);
|
678
659
|
0 <= r && e.splice(r, 1);
|
679
660
|
}
|
680
661
|
}
|
681
|
-
var
|
662
|
+
var Ge = function() {
|
682
663
|
function e(t) {
|
683
664
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
684
665
|
}
|
@@ -690,7 +671,7 @@ var $e = function() {
|
|
690
671
|
if (s)
|
691
672
|
if (this._parentage = null, Array.isArray(s))
|
692
673
|
try {
|
693
|
-
for (var a =
|
674
|
+
for (var a = ot(s), h = a.next(); !h.done; h = a.next()) {
|
694
675
|
var l = h.value;
|
695
676
|
l.remove(this);
|
696
677
|
}
|
@@ -707,22 +688,22 @@ var $e = function() {
|
|
707
688
|
else
|
708
689
|
s.remove(this);
|
709
690
|
var u = this.initialTeardown;
|
710
|
-
if (
|
691
|
+
if (Z(u))
|
711
692
|
try {
|
712
693
|
u();
|
713
694
|
} catch (y) {
|
714
|
-
o = y instanceof
|
695
|
+
o = y instanceof Ze ? y.errors : [y];
|
715
696
|
}
|
716
|
-
var
|
717
|
-
if (
|
697
|
+
var p = this._finalizers;
|
698
|
+
if (p) {
|
718
699
|
this._finalizers = null;
|
719
700
|
try {
|
720
|
-
for (var c =
|
701
|
+
for (var c = ot(p), m = c.next(); !m.done; m = c.next()) {
|
721
702
|
var v = m.value;
|
722
703
|
try {
|
723
|
-
|
704
|
+
At(v);
|
724
705
|
} catch (y) {
|
725
|
-
o = o ?? [], y instanceof
|
706
|
+
o = o ?? [], y instanceof Ze ? o = at(at([], st(o)), st(y.errors)) : o.push(y);
|
726
707
|
}
|
727
708
|
}
|
728
709
|
} catch (y) {
|
@@ -737,13 +718,13 @@ var $e = function() {
|
|
737
718
|
}
|
738
719
|
}
|
739
720
|
if (o)
|
740
|
-
throw new
|
721
|
+
throw new Ze(o);
|
741
722
|
}
|
742
723
|
}, e.prototype.add = function(t) {
|
743
724
|
var r;
|
744
725
|
if (t && t !== this)
|
745
726
|
if (this.closed)
|
746
|
-
|
727
|
+
At(t);
|
747
728
|
else {
|
748
729
|
if (t instanceof e) {
|
749
730
|
if (t.closed || t._hasParent(this))
|
@@ -760,56 +741,52 @@ var $e = function() {
|
|
760
741
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
761
742
|
}, e.prototype._removeParent = function(t) {
|
762
743
|
var r = this._parentage;
|
763
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
744
|
+
r === t ? this._parentage = null : Array.isArray(r) && lt(r, t);
|
764
745
|
}, e.prototype.remove = function(t) {
|
765
746
|
var r = this._finalizers;
|
766
|
-
r &&
|
747
|
+
r && lt(r, t), t instanceof e && t._removeParent(this);
|
767
748
|
}, e.EMPTY = function() {
|
768
749
|
var t = new e();
|
769
750
|
return t.closed = !0, t;
|
770
751
|
}(), e;
|
771
|
-
}(),
|
772
|
-
function
|
773
|
-
return e instanceof
|
774
|
-
}
|
775
|
-
function
|
776
|
-
|
777
|
-
}
|
778
|
-
var
|
779
|
-
|
780
|
-
|
781
|
-
Promise: void 0,
|
782
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
783
|
-
useDeprecatedNextContext: !1
|
784
|
-
}, en = {
|
752
|
+
}(), sr = Ge.EMPTY;
|
753
|
+
function ar(e) {
|
754
|
+
return e instanceof Ge || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
755
|
+
}
|
756
|
+
function At(e) {
|
757
|
+
Z(e) ? e() : e.unsubscribe();
|
758
|
+
}
|
759
|
+
var rn = {
|
760
|
+
Promise: void 0
|
761
|
+
}, nn = {
|
785
762
|
setTimeout: function(e, t) {
|
786
763
|
for (var r = [], n = 2; n < arguments.length; n++)
|
787
764
|
r[n - 2] = arguments[n];
|
788
|
-
return setTimeout.apply(void 0,
|
765
|
+
return setTimeout.apply(void 0, at([e, t], st(r)));
|
789
766
|
},
|
790
767
|
clearTimeout: function(e) {
|
791
768
|
return clearTimeout(e);
|
792
769
|
},
|
793
770
|
delegate: void 0
|
794
771
|
};
|
795
|
-
function
|
796
|
-
|
772
|
+
function on(e) {
|
773
|
+
nn.setTimeout(function() {
|
797
774
|
throw e;
|
798
775
|
});
|
799
776
|
}
|
800
|
-
function
|
777
|
+
function Pt() {
|
801
778
|
}
|
802
779
|
function Le(e) {
|
803
780
|
e();
|
804
781
|
}
|
805
|
-
var
|
806
|
-
|
782
|
+
var lr = function(e) {
|
783
|
+
He(t, e);
|
807
784
|
function t(r) {
|
808
785
|
var n = e.call(this) || this;
|
809
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
786
|
+
return n.isStopped = !1, r ? (n.destination = r, ar(r) && r.add(n)) : n.destination = ln, n;
|
810
787
|
}
|
811
788
|
return t.create = function(r, n, i) {
|
812
|
-
return new
|
789
|
+
return new ut(r, n, i);
|
813
790
|
}, t.prototype.next = function(r) {
|
814
791
|
this.isStopped || this._next(r);
|
815
792
|
}, t.prototype.error = function(r) {
|
@@ -833,7 +810,7 @@ var ir = function(e) {
|
|
833
810
|
this.unsubscribe();
|
834
811
|
}
|
835
812
|
}, t;
|
836
|
-
}(
|
813
|
+
}(Ge), sn = function() {
|
837
814
|
function e(t) {
|
838
815
|
this.partialObserver = t;
|
839
816
|
}
|
@@ -864,43 +841,43 @@ var ir = function(e) {
|
|
864
841
|
Ce(r);
|
865
842
|
}
|
866
843
|
}, e;
|
867
|
-
}(),
|
868
|
-
|
844
|
+
}(), ut = function(e) {
|
845
|
+
He(t, e);
|
869
846
|
function t(r, n, i) {
|
870
847
|
var o = e.call(this) || this, s;
|
871
|
-
return
|
848
|
+
return Z(r) || !r ? s = {
|
872
849
|
next: r ?? void 0,
|
873
850
|
error: n ?? void 0,
|
874
851
|
complete: i ?? void 0
|
875
|
-
} : s = r, o.destination = new
|
852
|
+
} : s = r, o.destination = new sn(s), o;
|
876
853
|
}
|
877
854
|
return t;
|
878
|
-
}(
|
855
|
+
}(lr);
|
879
856
|
function Ce(e) {
|
880
|
-
|
857
|
+
on(e);
|
881
858
|
}
|
882
|
-
function
|
859
|
+
function an(e) {
|
883
860
|
throw e;
|
884
861
|
}
|
885
|
-
var
|
862
|
+
var ln = {
|
886
863
|
closed: !0,
|
887
|
-
next:
|
888
|
-
error:
|
889
|
-
complete:
|
890
|
-
},
|
864
|
+
next: Pt,
|
865
|
+
error: an,
|
866
|
+
complete: Pt
|
867
|
+
}, un = function() {
|
891
868
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
892
869
|
}();
|
893
|
-
function
|
870
|
+
function hn(e) {
|
894
871
|
return e;
|
895
872
|
}
|
896
|
-
function
|
897
|
-
return e.length === 0 ?
|
873
|
+
function cn(e) {
|
874
|
+
return e.length === 0 ? hn : e.length === 1 ? e[0] : function(r) {
|
898
875
|
return e.reduce(function(n, i) {
|
899
876
|
return i(n);
|
900
877
|
}, r);
|
901
878
|
};
|
902
879
|
}
|
903
|
-
var
|
880
|
+
var Bt = function() {
|
904
881
|
function e(t) {
|
905
882
|
t && (this._subscribe = t);
|
906
883
|
}
|
@@ -908,7 +885,7 @@ var Tt = function() {
|
|
908
885
|
var r = new e();
|
909
886
|
return r.source = this, r.operator = t, r;
|
910
887
|
}, e.prototype.subscribe = function(t, r, n) {
|
911
|
-
var i = this, o =
|
888
|
+
var i = this, o = pn(t) ? t : new ut(t, r, n);
|
912
889
|
return Le(function() {
|
913
890
|
var s = i, a = s.operator, h = s.source;
|
914
891
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
@@ -921,8 +898,8 @@ var Tt = function() {
|
|
921
898
|
}
|
922
899
|
}, e.prototype.forEach = function(t, r) {
|
923
900
|
var n = this;
|
924
|
-
return r =
|
925
|
-
var s = new
|
901
|
+
return r = Ft(r), new r(function(i, o) {
|
902
|
+
var s = new ut({
|
926
903
|
next: function(a) {
|
927
904
|
try {
|
928
905
|
t(a);
|
@@ -938,15 +915,15 @@ var Tt = function() {
|
|
938
915
|
}, e.prototype._subscribe = function(t) {
|
939
916
|
var r;
|
940
917
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
941
|
-
}, e.prototype[
|
918
|
+
}, e.prototype[un] = function() {
|
942
919
|
return this;
|
943
920
|
}, e.prototype.pipe = function() {
|
944
921
|
for (var t = [], r = 0; r < arguments.length; r++)
|
945
922
|
t[r] = arguments[r];
|
946
|
-
return
|
923
|
+
return cn(t)(this);
|
947
924
|
}, e.prototype.toPromise = function(t) {
|
948
925
|
var r = this;
|
949
|
-
return t =
|
926
|
+
return t = Ft(t), new t(function(n, i) {
|
950
927
|
var o;
|
951
928
|
r.subscribe(function(s) {
|
952
929
|
return o = s;
|
@@ -960,32 +937,32 @@ var Tt = function() {
|
|
960
937
|
return new e(t);
|
961
938
|
}, e;
|
962
939
|
}();
|
963
|
-
function
|
940
|
+
function Ft(e) {
|
964
941
|
var t;
|
965
|
-
return (t = e ??
|
942
|
+
return (t = e ?? rn.Promise) !== null && t !== void 0 ? t : Promise;
|
966
943
|
}
|
967
|
-
function
|
968
|
-
return e &&
|
944
|
+
function fn(e) {
|
945
|
+
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
969
946
|
}
|
970
|
-
function
|
971
|
-
return e && e instanceof
|
947
|
+
function pn(e) {
|
948
|
+
return e && e instanceof lr || fn(e) && ar(e);
|
972
949
|
}
|
973
|
-
var
|
950
|
+
var dn = or(function(e) {
|
974
951
|
return function() {
|
975
952
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
976
953
|
};
|
977
|
-
}),
|
978
|
-
|
954
|
+
}), ur = function(e) {
|
955
|
+
He(t, e);
|
979
956
|
function t() {
|
980
957
|
var r = e.call(this) || this;
|
981
958
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
982
959
|
}
|
983
960
|
return t.prototype.lift = function(r) {
|
984
|
-
var n = new
|
961
|
+
var n = new Ct(this, this);
|
985
962
|
return n.operator = r, n;
|
986
963
|
}, t.prototype._throwIfClosed = function() {
|
987
964
|
if (this.closed)
|
988
|
-
throw new
|
965
|
+
throw new dn();
|
989
966
|
}, t.prototype.next = function(r) {
|
990
967
|
var n = this;
|
991
968
|
Le(function() {
|
@@ -993,7 +970,7 @@ var cn = tr(function(e) {
|
|
993
970
|
if (n._throwIfClosed(), !n.isStopped) {
|
994
971
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
995
972
|
try {
|
996
|
-
for (var s =
|
973
|
+
for (var s = ot(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
997
974
|
var h = a.value;
|
998
975
|
h.next(r);
|
999
976
|
}
|
@@ -1042,20 +1019,20 @@ var cn = tr(function(e) {
|
|
1042
1019
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
1043
1020
|
}, t.prototype._innerSubscribe = function(r) {
|
1044
1021
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
1045
|
-
return o || s ?
|
1046
|
-
n.currentObservers = null,
|
1022
|
+
return o || s ? sr : (this.currentObservers = null, a.push(r), new Ge(function() {
|
1023
|
+
n.currentObservers = null, lt(a, r);
|
1047
1024
|
}));
|
1048
1025
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
1049
1026
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
1050
1027
|
i ? r.error(o) : s && r.complete();
|
1051
1028
|
}, t.prototype.asObservable = function() {
|
1052
|
-
var r = new
|
1029
|
+
var r = new Bt();
|
1053
1030
|
return r.source = this, r;
|
1054
1031
|
}, t.create = function(r, n) {
|
1055
|
-
return new
|
1032
|
+
return new Ct(r, n);
|
1056
1033
|
}, t;
|
1057
|
-
}(
|
1058
|
-
|
1034
|
+
}(Bt), Ct = function(e) {
|
1035
|
+
He(t, e);
|
1059
1036
|
function t(r, n) {
|
1060
1037
|
var i = e.call(this) || this;
|
1061
1038
|
return i.destination = r, i.source = n, i;
|
@@ -1071,17 +1048,17 @@ var cn = tr(function(e) {
|
|
1071
1048
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
1072
1049
|
}, t.prototype._subscribe = function(r) {
|
1073
1050
|
var n, i;
|
1074
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1051
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : sr;
|
1075
1052
|
}, t;
|
1076
|
-
}(
|
1053
|
+
}(ur), hr = {
|
1077
1054
|
now: function() {
|
1078
|
-
return (
|
1055
|
+
return (hr.delegate || Date).now();
|
1079
1056
|
},
|
1080
1057
|
delegate: void 0
|
1081
|
-
},
|
1082
|
-
|
1058
|
+
}, mn = function(e) {
|
1059
|
+
He(t, e);
|
1083
1060
|
function t(r, n, i) {
|
1084
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1061
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = hr);
|
1085
1062
|
var o = e.call(this) || this;
|
1086
1063
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
1087
1064
|
}
|
@@ -1101,24 +1078,24 @@ var cn = tr(function(e) {
|
|
1101
1078
|
l && o.splice(0, l + 1);
|
1102
1079
|
}
|
1103
1080
|
}, t;
|
1104
|
-
}(
|
1105
|
-
const
|
1106
|
-
if (
|
1107
|
-
const r = new
|
1108
|
-
|
1081
|
+
}(ur);
|
1082
|
+
const Ot = [], It = {}, bn = (e, t = 0) => {
|
1083
|
+
if (Ot.indexOf(e) == -1) {
|
1084
|
+
const r = new mn(t);
|
1085
|
+
It[e] = r, Ot.push(e);
|
1109
1086
|
}
|
1110
|
-
return
|
1087
|
+
return It[e];
|
1111
1088
|
}, he = [];
|
1112
|
-
function
|
1089
|
+
function gn(e, t) {
|
1113
1090
|
return {
|
1114
|
-
subscribe:
|
1091
|
+
subscribe: ke(e, t).subscribe
|
1115
1092
|
};
|
1116
1093
|
}
|
1117
|
-
function
|
1094
|
+
function ke(e, t = G) {
|
1118
1095
|
let r;
|
1119
1096
|
const n = /* @__PURE__ */ new Set();
|
1120
1097
|
function i(a) {
|
1121
|
-
if (
|
1098
|
+
if (Yt(e, a) && (e = a, r)) {
|
1122
1099
|
const h = !he.length;
|
1123
1100
|
for (const l of n)
|
1124
1101
|
l[1](), he.push(l, e);
|
@@ -1140,26 +1117,26 @@ function Ge(e, t = G) {
|
|
1140
1117
|
}
|
1141
1118
|
return { set: i, update: o, subscribe: s };
|
1142
1119
|
}
|
1143
|
-
function
|
1120
|
+
function ge(e, t, r) {
|
1144
1121
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1145
1122
|
if (!i.every(Boolean))
|
1146
1123
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1147
1124
|
const o = t.length < 2;
|
1148
|
-
return
|
1125
|
+
return gn(r, (s, a) => {
|
1149
1126
|
let h = !1;
|
1150
1127
|
const l = [];
|
1151
|
-
let u = 0,
|
1128
|
+
let u = 0, p = G;
|
1152
1129
|
const c = () => {
|
1153
1130
|
if (u)
|
1154
1131
|
return;
|
1155
|
-
|
1132
|
+
p();
|
1156
1133
|
const v = t(n ? l[0] : l, s, a);
|
1157
|
-
o ? s(v) :
|
1134
|
+
o ? s(v) : p = vt(v) ? v : G;
|
1158
1135
|
}, m = i.map(
|
1159
|
-
(v, y) =>
|
1136
|
+
(v, y) => Kt(
|
1160
1137
|
v,
|
1161
|
-
(
|
1162
|
-
l[y] =
|
1138
|
+
(T) => {
|
1139
|
+
l[y] = T, u &= ~(1 << y), h && c();
|
1163
1140
|
},
|
1164
1141
|
() => {
|
1165
1142
|
u |= 1 << y;
|
@@ -1167,74 +1144,74 @@ function ye(e, t, r) {
|
|
1167
1144
|
)
|
1168
1145
|
);
|
1169
1146
|
return h = !0, c(), function() {
|
1170
|
-
Y(m),
|
1147
|
+
Y(m), p(), h = !1;
|
1171
1148
|
};
|
1172
1149
|
});
|
1173
1150
|
}
|
1174
|
-
function
|
1175
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1151
|
+
function yn(e) {
|
1152
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1176
1153
|
}
|
1177
|
-
var
|
1178
|
-
return
|
1154
|
+
var vn = function(t) {
|
1155
|
+
return _n(t) && !xn(t);
|
1179
1156
|
};
|
1180
|
-
function
|
1157
|
+
function _n(e) {
|
1181
1158
|
return !!e && typeof e == "object";
|
1182
1159
|
}
|
1183
|
-
function
|
1160
|
+
function xn(e) {
|
1184
1161
|
var t = Object.prototype.toString.call(e);
|
1185
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1162
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
1186
1163
|
}
|
1187
|
-
var
|
1188
|
-
function
|
1189
|
-
return e.$$typeof ===
|
1164
|
+
var En = typeof Symbol == "function" && Symbol.for, wn = En ? Symbol.for("react.element") : 60103;
|
1165
|
+
function Sn(e) {
|
1166
|
+
return e.$$typeof === wn;
|
1190
1167
|
}
|
1191
|
-
function
|
1168
|
+
function Tn(e) {
|
1192
1169
|
return Array.isArray(e) ? [] : {};
|
1193
1170
|
}
|
1194
|
-
function
|
1195
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? pe(
|
1171
|
+
function Se(e, t) {
|
1172
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? pe(Tn(e), e, t) : e;
|
1196
1173
|
}
|
1197
|
-
function
|
1174
|
+
function Hn(e, t, r) {
|
1198
1175
|
return e.concat(t).map(function(n) {
|
1199
|
-
return
|
1176
|
+
return Se(n, r);
|
1200
1177
|
});
|
1201
1178
|
}
|
1202
|
-
function
|
1179
|
+
function An(e, t) {
|
1203
1180
|
if (!t.customMerge)
|
1204
1181
|
return pe;
|
1205
1182
|
var r = t.customMerge(e);
|
1206
1183
|
return typeof r == "function" ? r : pe;
|
1207
1184
|
}
|
1208
|
-
function
|
1185
|
+
function Pn(e) {
|
1209
1186
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1210
1187
|
return Object.propertyIsEnumerable.call(e, t);
|
1211
1188
|
}) : [];
|
1212
1189
|
}
|
1213
|
-
function
|
1214
|
-
return Object.keys(e).concat(
|
1190
|
+
function Lt(e) {
|
1191
|
+
return Object.keys(e).concat(Pn(e));
|
1215
1192
|
}
|
1216
|
-
function
|
1193
|
+
function cr(e, t) {
|
1217
1194
|
try {
|
1218
1195
|
return t in e;
|
1219
1196
|
} catch {
|
1220
1197
|
return !1;
|
1221
1198
|
}
|
1222
1199
|
}
|
1223
|
-
function
|
1224
|
-
return
|
1200
|
+
function Bn(e, t) {
|
1201
|
+
return cr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1225
1202
|
}
|
1226
|
-
function
|
1203
|
+
function Fn(e, t, r) {
|
1227
1204
|
var n = {};
|
1228
|
-
return r.isMergeableObject(e) &&
|
1229
|
-
n[i] =
|
1230
|
-
}),
|
1231
|
-
|
1205
|
+
return r.isMergeableObject(e) && Lt(e).forEach(function(i) {
|
1206
|
+
n[i] = Se(e[i], r);
|
1207
|
+
}), Lt(t).forEach(function(i) {
|
1208
|
+
Bn(e, i) || (cr(e, i) && r.isMergeableObject(t[i]) ? n[i] = An(i, r)(e[i], t[i], r) : n[i] = Se(t[i], r));
|
1232
1209
|
}), n;
|
1233
1210
|
}
|
1234
1211
|
function pe(e, t, r) {
|
1235
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1212
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Hn, r.isMergeableObject = r.isMergeableObject || vn, r.cloneUnlessOtherwiseSpecified = Se;
|
1236
1213
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1237
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
1214
|
+
return o ? n ? r.arrayMerge(e, t, r) : Fn(e, t, r) : Se(t, r);
|
1238
1215
|
}
|
1239
1216
|
pe.all = function(t, r) {
|
1240
1217
|
if (!Array.isArray(t))
|
@@ -1243,42 +1220,81 @@ pe.all = function(t, r) {
|
|
1243
1220
|
return pe(n, i, r);
|
1244
1221
|
}, {});
|
1245
1222
|
};
|
1246
|
-
var
|
1247
|
-
const
|
1248
|
-
function
|
1249
|
-
|
1223
|
+
var Cn = pe, On = Cn;
|
1224
|
+
const In = /* @__PURE__ */ yn(On);
|
1225
|
+
var ht = function(e, t) {
|
1226
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
1227
|
+
r.__proto__ = n;
|
1228
|
+
} || function(r, n) {
|
1229
|
+
for (var i in n)
|
1230
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
1231
|
+
}, ht(e, t);
|
1232
|
+
};
|
1233
|
+
function je(e, t) {
|
1234
|
+
if (typeof t != "function" && t !== null)
|
1235
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
1236
|
+
ht(e, t);
|
1237
|
+
function r() {
|
1238
|
+
this.constructor = e;
|
1239
|
+
}
|
1240
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
1241
|
+
}
|
1242
|
+
var X = function() {
|
1243
|
+
return X = Object.assign || function(t) {
|
1244
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1245
|
+
r = arguments[n];
|
1246
|
+
for (var o in r)
|
1247
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1248
|
+
}
|
1249
|
+
return t;
|
1250
|
+
}, X.apply(this, arguments);
|
1251
|
+
};
|
1252
|
+
function Ln(e, t) {
|
1253
|
+
var r = {};
|
1254
|
+
for (var n in e)
|
1255
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
1256
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
1257
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
1258
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
1259
|
+
return r;
|
1260
|
+
}
|
1261
|
+
function Je(e, t, r) {
|
1262
|
+
if (r || arguments.length === 2)
|
1263
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
1264
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
1265
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
1266
|
+
}
|
1267
|
+
function Qe(e, t) {
|
1268
|
+
var r = t && t.cache ? t.cache : Gn, n = t && t.serializer ? t.serializer : Un, i = t && t.strategy ? t.strategy : Rn;
|
1250
1269
|
return i(e, {
|
1251
1270
|
cache: r,
|
1252
1271
|
serializer: n
|
1253
1272
|
});
|
1254
1273
|
}
|
1255
|
-
function
|
1274
|
+
function Nn(e) {
|
1256
1275
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1257
1276
|
}
|
1258
|
-
function
|
1259
|
-
var i =
|
1277
|
+
function Mn(e, t, r, n) {
|
1278
|
+
var i = Nn(n) ? n : r(n), o = t.get(i);
|
1260
1279
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
1261
1280
|
}
|
1262
|
-
function
|
1281
|
+
function fr(e, t, r) {
|
1263
1282
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
1264
1283
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
1265
1284
|
}
|
1266
|
-
function
|
1285
|
+
function pr(e, t, r, n, i) {
|
1267
1286
|
return r.bind(t, e, n, i);
|
1268
1287
|
}
|
1269
|
-
function
|
1270
|
-
var r = e.length === 1 ?
|
1271
|
-
return
|
1272
|
-
}
|
1273
|
-
function In(e, t) {
|
1274
|
-
return mt(e, this, ur, t.cache.create(), t.serializer);
|
1288
|
+
function Rn(e, t) {
|
1289
|
+
var r = e.length === 1 ? Mn : fr;
|
1290
|
+
return pr(e, this, r, t.cache.create(), t.serializer);
|
1275
1291
|
}
|
1276
|
-
function
|
1277
|
-
return
|
1292
|
+
function $n(e, t) {
|
1293
|
+
return pr(e, this, fr, t.cache.create(), t.serializer);
|
1278
1294
|
}
|
1279
|
-
var
|
1295
|
+
var Un = function() {
|
1280
1296
|
return JSON.stringify(arguments);
|
1281
|
-
},
|
1297
|
+
}, Dn = (
|
1282
1298
|
/** @class */
|
1283
1299
|
function() {
|
1284
1300
|
function e() {
|
@@ -1290,62 +1306,71 @@ var Nn = function() {
|
|
1290
1306
|
this.cache[t] = r;
|
1291
1307
|
}, e;
|
1292
1308
|
}()
|
1293
|
-
),
|
1309
|
+
), Gn = {
|
1294
1310
|
create: function() {
|
1295
|
-
return new
|
1311
|
+
return new Dn();
|
1296
1312
|
}
|
1297
|
-
},
|
1298
|
-
variadic:
|
1299
|
-
|
1300
|
-
|
1313
|
+
}, qe = {
|
1314
|
+
variadic: $n
|
1315
|
+
}, $e = function() {
|
1316
|
+
return $e = Object.assign || function(t) {
|
1317
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1318
|
+
r = arguments[n];
|
1319
|
+
for (var o in r)
|
1320
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1321
|
+
}
|
1322
|
+
return t;
|
1323
|
+
}, $e.apply(this, arguments);
|
1324
|
+
};
|
1325
|
+
var E;
|
1301
1326
|
(function(e) {
|
1302
1327
|
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";
|
1303
1328
|
})(E || (E = {}));
|
1304
|
-
var
|
1329
|
+
var F;
|
1305
1330
|
(function(e) {
|
1306
1331
|
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";
|
1307
|
-
})(
|
1308
|
-
var
|
1332
|
+
})(F || (F = {}));
|
1333
|
+
var de;
|
1309
1334
|
(function(e) {
|
1310
1335
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1311
|
-
})(
|
1312
|
-
function
|
1313
|
-
return e.type ===
|
1336
|
+
})(de || (de = {}));
|
1337
|
+
function Nt(e) {
|
1338
|
+
return e.type === F.literal;
|
1314
1339
|
}
|
1315
|
-
function
|
1316
|
-
return e.type ===
|
1340
|
+
function kn(e) {
|
1341
|
+
return e.type === F.argument;
|
1317
1342
|
}
|
1318
|
-
function
|
1319
|
-
return e.type ===
|
1343
|
+
function dr(e) {
|
1344
|
+
return e.type === F.number;
|
1320
1345
|
}
|
1321
|
-
function
|
1322
|
-
return e.type ===
|
1346
|
+
function mr(e) {
|
1347
|
+
return e.type === F.date;
|
1323
1348
|
}
|
1324
|
-
function
|
1325
|
-
return e.type ===
|
1349
|
+
function br(e) {
|
1350
|
+
return e.type === F.time;
|
1326
1351
|
}
|
1327
|
-
function
|
1328
|
-
return e.type ===
|
1352
|
+
function gr(e) {
|
1353
|
+
return e.type === F.select;
|
1329
1354
|
}
|
1330
|
-
function
|
1331
|
-
return e.type ===
|
1355
|
+
function yr(e) {
|
1356
|
+
return e.type === F.plural;
|
1332
1357
|
}
|
1333
|
-
function
|
1334
|
-
return e.type ===
|
1358
|
+
function jn(e) {
|
1359
|
+
return e.type === F.pound;
|
1335
1360
|
}
|
1336
|
-
function
|
1337
|
-
return e.type ===
|
1361
|
+
function vr(e) {
|
1362
|
+
return e.type === F.tag;
|
1338
1363
|
}
|
1339
|
-
function
|
1340
|
-
return !!(e && typeof e == "object" && e.type ===
|
1364
|
+
function _r(e) {
|
1365
|
+
return !!(e && typeof e == "object" && e.type === de.number);
|
1341
1366
|
}
|
1342
|
-
function
|
1343
|
-
return !!(e && typeof e == "object" && e.type ===
|
1367
|
+
function ct(e) {
|
1368
|
+
return !!(e && typeof e == "object" && e.type === de.dateTime);
|
1344
1369
|
}
|
1345
|
-
var
|
1346
|
-
function
|
1370
|
+
var xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vn = /(?:[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;
|
1371
|
+
function Xn(e) {
|
1347
1372
|
var t = {};
|
1348
|
-
return e.replace(
|
1373
|
+
return e.replace(Vn, function(r) {
|
1349
1374
|
var n = r.length;
|
1350
1375
|
switch (r[0]) {
|
1351
1376
|
case "G":
|
@@ -1434,36 +1459,46 @@ function Gn(e) {
|
|
1434
1459
|
return "";
|
1435
1460
|
}), t;
|
1436
1461
|
}
|
1437
|
-
var
|
1438
|
-
function
|
1462
|
+
var O = function() {
|
1463
|
+
return O = Object.assign || function(t) {
|
1464
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1465
|
+
r = arguments[n];
|
1466
|
+
for (var o in r)
|
1467
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1468
|
+
}
|
1469
|
+
return t;
|
1470
|
+
}, O.apply(this, arguments);
|
1471
|
+
};
|
1472
|
+
var Wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1473
|
+
function zn(e) {
|
1439
1474
|
if (e.length === 0)
|
1440
1475
|
throw new Error("Number skeleton cannot be empty");
|
1441
|
-
for (var t = e.split(
|
1476
|
+
for (var t = e.split(Wn).filter(function(c) {
|
1442
1477
|
return c.length > 0;
|
1443
1478
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1444
1479
|
var o = i[n], s = o.split("/");
|
1445
1480
|
if (s.length === 0)
|
1446
1481
|
throw new Error("Invalid number skeleton");
|
1447
1482
|
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
1448
|
-
var
|
1449
|
-
if (
|
1483
|
+
var p = u[l];
|
1484
|
+
if (p.length === 0)
|
1450
1485
|
throw new Error("Invalid number skeleton");
|
1451
1486
|
}
|
1452
1487
|
r.push({ stem: a, options: h });
|
1453
1488
|
}
|
1454
1489
|
return r;
|
1455
1490
|
}
|
1456
|
-
function
|
1491
|
+
function Zn(e) {
|
1457
1492
|
return e.replace(/^(.*?)-/, "");
|
1458
1493
|
}
|
1459
|
-
var
|
1460
|
-
function
|
1494
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Er = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, wr = /^(0+)$/;
|
1495
|
+
function Rt(e) {
|
1461
1496
|
var t = {};
|
1462
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1497
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Er, function(r, n, i) {
|
1463
1498
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
1464
1499
|
}), t;
|
1465
1500
|
}
|
1466
|
-
function
|
1501
|
+
function Sr(e) {
|
1467
1502
|
switch (e) {
|
1468
1503
|
case "sign-auto":
|
1469
1504
|
return {
|
@@ -1503,7 +1538,7 @@ function _r(e) {
|
|
1503
1538
|
};
|
1504
1539
|
}
|
1505
1540
|
}
|
1506
|
-
function
|
1541
|
+
function Qn(e) {
|
1507
1542
|
var t;
|
1508
1543
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1509
1544
|
notation: "engineering"
|
@@ -1511,17 +1546,17 @@ function Wn(e) {
|
|
1511
1546
|
notation: "scientific"
|
1512
1547
|
}, e = e.slice(1)), t) {
|
1513
1548
|
var r = e.slice(0, 2);
|
1514
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1549
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wr.test(e))
|
1515
1550
|
throw new Error("Malformed concise eng/scientific notation");
|
1516
1551
|
t.minimumIntegerDigits = e.length;
|
1517
1552
|
}
|
1518
1553
|
return t;
|
1519
1554
|
}
|
1520
|
-
function
|
1521
|
-
var t = {}, r =
|
1555
|
+
function $t(e) {
|
1556
|
+
var t = {}, r = Sr(e);
|
1522
1557
|
return r || t;
|
1523
1558
|
}
|
1524
|
-
function
|
1559
|
+
function qn(e) {
|
1525
1560
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1526
1561
|
var i = n[r];
|
1527
1562
|
switch (i.stem) {
|
@@ -1545,7 +1580,7 @@ function zn(e) {
|
|
1545
1580
|
continue;
|
1546
1581
|
case "measure-unit":
|
1547
1582
|
case "unit":
|
1548
|
-
t.style = "unit", t.unit =
|
1583
|
+
t.style = "unit", t.unit = Zn(i.options[0]);
|
1549
1584
|
continue;
|
1550
1585
|
case "compact-short":
|
1551
1586
|
case "K":
|
@@ -1556,13 +1591,13 @@ function zn(e) {
|
|
1556
1591
|
t.notation = "compact", t.compactDisplay = "long";
|
1557
1592
|
continue;
|
1558
1593
|
case "scientific":
|
1559
|
-
t =
|
1560
|
-
return
|
1594
|
+
t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1595
|
+
return O(O({}, h), $t(l));
|
1561
1596
|
}, {}));
|
1562
1597
|
continue;
|
1563
1598
|
case "engineering":
|
1564
|
-
t =
|
1565
|
-
return
|
1599
|
+
t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1600
|
+
return O(O({}, h), $t(l));
|
1566
1601
|
}, {}));
|
1567
1602
|
continue;
|
1568
1603
|
case "notation-simple":
|
@@ -1607,11 +1642,11 @@ function zn(e) {
|
|
1607
1642
|
case "integer-width":
|
1608
1643
|
if (i.options.length > 1)
|
1609
1644
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1610
|
-
i.options[0].replace(
|
1645
|
+
i.options[0].replace(Jn, function(h, l, u, p, c, m) {
|
1611
1646
|
if (l)
|
1612
1647
|
t.minimumIntegerDigits = u.length;
|
1613
1648
|
else {
|
1614
|
-
if (
|
1649
|
+
if (p && c)
|
1615
1650
|
throw new Error("We currently do not support maximum integer digits");
|
1616
1651
|
if (m)
|
1617
1652
|
throw new Error("We currently do not support exact integer digits");
|
@@ -1620,28 +1655,28 @@ function zn(e) {
|
|
1620
1655
|
});
|
1621
1656
|
continue;
|
1622
1657
|
}
|
1623
|
-
if (
|
1658
|
+
if (wr.test(i.stem)) {
|
1624
1659
|
t.minimumIntegerDigits = i.stem.length;
|
1625
1660
|
continue;
|
1626
1661
|
}
|
1627
|
-
if (
|
1662
|
+
if (Mt.test(i.stem)) {
|
1628
1663
|
if (i.options.length > 1)
|
1629
1664
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1630
|
-
i.stem.replace(
|
1631
|
-
return u === "*" ? t.minimumFractionDigits = l.length :
|
1665
|
+
i.stem.replace(Mt, function(h, l, u, p, c, m) {
|
1666
|
+
return u === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1632
1667
|
});
|
1633
1668
|
var o = i.options[0];
|
1634
|
-
o === "w" ? t =
|
1669
|
+
o === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = O(O({}, t), Rt(o)));
|
1635
1670
|
continue;
|
1636
1671
|
}
|
1637
|
-
if (
|
1638
|
-
t =
|
1672
|
+
if (Er.test(i.stem)) {
|
1673
|
+
t = O(O({}, t), Rt(i.stem));
|
1639
1674
|
continue;
|
1640
1675
|
}
|
1641
|
-
var s =
|
1642
|
-
s && (t =
|
1643
|
-
var a =
|
1644
|
-
a && (t =
|
1676
|
+
var s = Sr(i.stem);
|
1677
|
+
s && (t = O(O({}, t), s));
|
1678
|
+
var a = Qn(i.stem);
|
1679
|
+
a && (t = O(O({}, t), a));
|
1645
1680
|
}
|
1646
1681
|
return t;
|
1647
1682
|
}
|
@@ -3060,13 +3095,13 @@ var Oe = {
|
|
3060
3095
|
"h"
|
3061
3096
|
]
|
3062
3097
|
};
|
3063
|
-
function
|
3098
|
+
function Yn(e, t) {
|
3064
3099
|
for (var r = "", n = 0; n < e.length; n++) {
|
3065
3100
|
var i = e.charAt(n);
|
3066
3101
|
if (i === "j") {
|
3067
3102
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
3068
3103
|
o++, n++;
|
3069
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
3104
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Kn(t);
|
3070
3105
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
3071
3106
|
r += h;
|
3072
3107
|
for (; s-- > 0; )
|
@@ -3076,7 +3111,7 @@ function Zn(e, t) {
|
|
3076
3111
|
}
|
3077
3112
|
return r;
|
3078
3113
|
}
|
3079
|
-
function
|
3114
|
+
function Kn(e) {
|
3080
3115
|
var t = e.hourCycle;
|
3081
3116
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
3082
3117
|
e.hourCycles && // @ts-ignore
|
@@ -3098,20 +3133,20 @@ function Jn(e) {
|
|
3098
3133
|
var i = Oe[n || ""] || Oe[r || ""] || Oe["".concat(r, "-001")] || Oe["001"];
|
3099
3134
|
return i[0];
|
3100
3135
|
}
|
3101
|
-
var
|
3136
|
+
var Ye, ei = new RegExp("^".concat(xr.source, "*")), ti = new RegExp("".concat(xr.source, "*$"));
|
3102
3137
|
function w(e, t) {
|
3103
3138
|
return { start: e, end: t };
|
3104
3139
|
}
|
3105
|
-
var
|
3140
|
+
var ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), ni = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, ui = li ? Number.isSafeInteger : function(e) {
|
3106
3141
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3107
|
-
},
|
3142
|
+
}, ft = !0;
|
3108
3143
|
try {
|
3109
|
-
var
|
3110
|
-
|
3144
|
+
var hi = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3145
|
+
ft = ((Ye = hi.exec("a")) === null || Ye === void 0 ? void 0 : Ye[0]) === "a";
|
3111
3146
|
} catch {
|
3112
|
-
|
3147
|
+
ft = !1;
|
3113
3148
|
}
|
3114
|
-
var
|
3149
|
+
var Ut = ri ? (
|
3115
3150
|
// Native
|
3116
3151
|
function(t, r, n) {
|
3117
3152
|
return t.startsWith(r, n);
|
@@ -3121,7 +3156,7 @@ var Nt = Yn ? (
|
|
3121
3156
|
function(t, r, n) {
|
3122
3157
|
return t.slice(n, n + r.length) === r;
|
3123
3158
|
}
|
3124
|
-
),
|
3159
|
+
), pt = ni ? String.fromCodePoint : (
|
3125
3160
|
// IE11
|
3126
3161
|
function() {
|
3127
3162
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3133,9 +3168,9 @@ var Nt = Yn ? (
|
|
3133
3168
|
}
|
3134
3169
|
return n;
|
3135
3170
|
}
|
3136
|
-
),
|
3171
|
+
), Dt = (
|
3137
3172
|
// native
|
3138
|
-
|
3173
|
+
ii ? Object.fromEntries : (
|
3139
3174
|
// Ponyfill
|
3140
3175
|
function(t) {
|
3141
3176
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3145,7 +3180,7 @@ var Nt = Yn ? (
|
|
3145
3180
|
return r;
|
3146
3181
|
}
|
3147
3182
|
)
|
3148
|
-
),
|
3183
|
+
), Tr = oi ? (
|
3149
3184
|
// Native
|
3150
3185
|
function(t, r) {
|
3151
3186
|
return t.codePointAt(r);
|
@@ -3159,7 +3194,7 @@ var Nt = Yn ? (
|
|
3159
3194
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
3160
3195
|
}
|
3161
3196
|
}
|
3162
|
-
),
|
3197
|
+
), ci = si ? (
|
3163
3198
|
// Native
|
3164
3199
|
function(t) {
|
3165
3200
|
return t.trimStart();
|
@@ -3167,9 +3202,9 @@ var Nt = Yn ? (
|
|
3167
3202
|
) : (
|
3168
3203
|
// Ponyfill
|
3169
3204
|
function(t) {
|
3170
|
-
return t.replace(
|
3205
|
+
return t.replace(ei, "");
|
3171
3206
|
}
|
3172
|
-
),
|
3207
|
+
), fi = ai ? (
|
3173
3208
|
// Native
|
3174
3209
|
function(t) {
|
3175
3210
|
return t.trimEnd();
|
@@ -3177,32 +3212,32 @@ var Nt = Yn ? (
|
|
3177
3212
|
) : (
|
3178
3213
|
// Ponyfill
|
3179
3214
|
function(t) {
|
3180
|
-
return t.replace(
|
3215
|
+
return t.replace(ti, "");
|
3181
3216
|
}
|
3182
3217
|
);
|
3183
|
-
function
|
3218
|
+
function Hr(e, t) {
|
3184
3219
|
return new RegExp(e, t);
|
3185
3220
|
}
|
3186
|
-
var
|
3187
|
-
if (
|
3188
|
-
var
|
3189
|
-
|
3221
|
+
var dt;
|
3222
|
+
if (ft) {
|
3223
|
+
var Gt = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3224
|
+
dt = function(t, r) {
|
3190
3225
|
var n;
|
3191
|
-
|
3192
|
-
var i =
|
3226
|
+
Gt.lastIndex = r;
|
3227
|
+
var i = Gt.exec(t);
|
3193
3228
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3194
3229
|
};
|
3195
3230
|
} else
|
3196
|
-
|
3231
|
+
dt = function(t, r) {
|
3197
3232
|
for (var n = []; ; ) {
|
3198
|
-
var i =
|
3199
|
-
if (i === void 0 ||
|
3233
|
+
var i = Tr(t, r);
|
3234
|
+
if (i === void 0 || Ar(i) || bi(i))
|
3200
3235
|
break;
|
3201
3236
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3202
3237
|
}
|
3203
|
-
return
|
3238
|
+
return pt.apply(void 0, n);
|
3204
3239
|
};
|
3205
|
-
var
|
3240
|
+
var pi = (
|
3206
3241
|
/** @class */
|
3207
3242
|
function() {
|
3208
3243
|
function e(t, r) {
|
@@ -3226,14 +3261,14 @@ var ui = (
|
|
3226
3261
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
3227
3262
|
var a = this.clonePosition();
|
3228
3263
|
this.bump(), i.push({
|
3229
|
-
type:
|
3264
|
+
type: F.pound,
|
3230
3265
|
location: w(a, this.clonePosition())
|
3231
3266
|
});
|
3232
3267
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
3233
3268
|
if (n)
|
3234
3269
|
break;
|
3235
3270
|
return this.error(E.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
3236
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3271
|
+
} else if (o === 60 && !this.ignoreTag && mt(this.peek() || 0)) {
|
3237
3272
|
var s = this.parseTag(t, r);
|
3238
3273
|
if (s.err)
|
3239
3274
|
return s;
|
@@ -3254,7 +3289,7 @@ var ui = (
|
|
3254
3289
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
3255
3290
|
return {
|
3256
3291
|
val: {
|
3257
|
-
type:
|
3292
|
+
type: F.literal,
|
3258
3293
|
value: "<".concat(i, "/>"),
|
3259
3294
|
location: w(n, this.clonePosition())
|
3260
3295
|
},
|
@@ -3266,12 +3301,12 @@ var ui = (
|
|
3266
3301
|
return o;
|
3267
3302
|
var s = o.val, a = this.clonePosition();
|
3268
3303
|
if (this.bumpIf("</")) {
|
3269
|
-
if (this.isEOF() || !
|
3304
|
+
if (this.isEOF() || !mt(this.char()))
|
3270
3305
|
return this.error(E.INVALID_TAG, w(a, this.clonePosition()));
|
3271
3306
|
var h = this.clonePosition(), l = this.parseTagName();
|
3272
3307
|
return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, w(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3273
3308
|
val: {
|
3274
|
-
type:
|
3309
|
+
type: F.tag,
|
3275
3310
|
value: i,
|
3276
3311
|
children: s,
|
3277
3312
|
location: w(n, this.clonePosition())
|
@@ -3284,7 +3319,7 @@ var ui = (
|
|
3284
3319
|
return this.error(E.INVALID_TAG, w(n, this.clonePosition()));
|
3285
3320
|
}, e.prototype.parseTagName = function() {
|
3286
3321
|
var t = this.offset();
|
3287
|
-
for (this.bump(); !this.isEOF() &&
|
3322
|
+
for (this.bump(); !this.isEOF() && mi(this.char()); )
|
3288
3323
|
this.bump();
|
3289
3324
|
return this.message.slice(t, this.offset());
|
3290
3325
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3308,12 +3343,12 @@ var ui = (
|
|
3308
3343
|
}
|
3309
3344
|
var h = w(n, this.clonePosition());
|
3310
3345
|
return {
|
3311
|
-
val: { type:
|
3346
|
+
val: { type: F.literal, value: i, location: h },
|
3312
3347
|
err: null
|
3313
3348
|
};
|
3314
3349
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3315
3350
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3316
|
-
!
|
3351
|
+
!di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3317
3352
|
}, e.prototype.tryParseQuote = function(t) {
|
3318
3353
|
if (this.isEOF() || this.char() !== 39)
|
3319
3354
|
return null;
|
@@ -3347,12 +3382,12 @@ var ui = (
|
|
3347
3382
|
r.push(n);
|
3348
3383
|
this.bump();
|
3349
3384
|
}
|
3350
|
-
return
|
3385
|
+
return pt.apply(void 0, r);
|
3351
3386
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3352
3387
|
if (this.isEOF())
|
3353
3388
|
return null;
|
3354
3389
|
var n = this.char();
|
3355
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3390
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), pt(n));
|
3356
3391
|
}, e.prototype.parseArgument = function(t, r) {
|
3357
3392
|
var n = this.clonePosition();
|
3358
3393
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3368,7 +3403,7 @@ var ui = (
|
|
3368
3403
|
case 125:
|
3369
3404
|
return this.bump(), {
|
3370
3405
|
val: {
|
3371
|
-
type:
|
3406
|
+
type: F.argument,
|
3372
3407
|
// value does not include the opening and closing braces.
|
3373
3408
|
value: i,
|
3374
3409
|
location: w(n, this.clonePosition())
|
@@ -3381,7 +3416,7 @@ var ui = (
|
|
3381
3416
|
return this.error(E.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
3382
3417
|
}
|
3383
3418
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3384
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3419
|
+
var t = this.clonePosition(), r = this.offset(), n = dt(this.message, r), i = r + n.length;
|
3385
3420
|
this.bumpTo(i);
|
3386
3421
|
var o = this.clonePosition(), s = w(t, o);
|
3387
3422
|
return { value: n, location: s };
|
@@ -3397,10 +3432,10 @@ var ui = (
|
|
3397
3432
|
var l = null;
|
3398
3433
|
if (this.bumpIf(",")) {
|
3399
3434
|
this.bumpSpace();
|
3400
|
-
var u = this.clonePosition(),
|
3401
|
-
if (
|
3402
|
-
return
|
3403
|
-
var c =
|
3435
|
+
var u = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
3436
|
+
if (p.err)
|
3437
|
+
return p;
|
3438
|
+
var c = fi(p.val);
|
3404
3439
|
if (c.length === 0)
|
3405
3440
|
return this.error(E.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
3406
3441
|
var m = w(u, this.clonePosition());
|
@@ -3410,25 +3445,25 @@ var ui = (
|
|
3410
3445
|
if (v.err)
|
3411
3446
|
return v;
|
3412
3447
|
var y = w(i, this.clonePosition());
|
3413
|
-
if (l &&
|
3414
|
-
var
|
3448
|
+
if (l && Ut(l?.style, "::", 0)) {
|
3449
|
+
var T = ci(l.style.slice(2));
|
3415
3450
|
if (a === "number") {
|
3416
|
-
var
|
3417
|
-
return
|
3418
|
-
val: { type:
|
3451
|
+
var p = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
3452
|
+
return p.err ? p : {
|
3453
|
+
val: { type: F.number, value: n, location: y, style: p.val },
|
3419
3454
|
err: null
|
3420
3455
|
};
|
3421
3456
|
} else {
|
3422
|
-
if (
|
3457
|
+
if (T.length === 0)
|
3423
3458
|
return this.error(E.EXPECT_DATE_TIME_SKELETON, y);
|
3424
|
-
var
|
3425
|
-
this.locale && (
|
3459
|
+
var H = T;
|
3460
|
+
this.locale && (H = Yn(T, this.locale));
|
3426
3461
|
var c = {
|
3427
|
-
type:
|
3428
|
-
pattern:
|
3462
|
+
type: de.dateTime,
|
3463
|
+
pattern: H,
|
3429
3464
|
location: l.styleLocation,
|
3430
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3431
|
-
}, S = a === "date" ?
|
3465
|
+
parsedOptions: this.shouldParseSkeletons ? Xn(H) : {}
|
3466
|
+
}, S = a === "date" ? F.date : F.time;
|
3432
3467
|
return {
|
3433
3468
|
val: { type: S, value: n, location: y, style: c },
|
3434
3469
|
err: null
|
@@ -3437,7 +3472,7 @@ var ui = (
|
|
3437
3472
|
}
|
3438
3473
|
return {
|
3439
3474
|
val: {
|
3440
|
-
type: a === "number" ?
|
3475
|
+
type: a === "number" ? F.number : a === "date" ? F.date : F.time,
|
3441
3476
|
value: n,
|
3442
3477
|
location: y,
|
3443
3478
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
@@ -3450,17 +3485,17 @@ var ui = (
|
|
3450
3485
|
case "select": {
|
3451
3486
|
var b = this.clonePosition();
|
3452
3487
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3453
|
-
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, w(b,
|
3488
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, w(b, $e({}, b)));
|
3454
3489
|
this.bumpSpace();
|
3455
3490
|
var I = this.parseIdentifierIfPossible(), L = 0;
|
3456
3491
|
if (a !== "select" && I.value === "offset") {
|
3457
3492
|
if (!this.bumpIf(":"))
|
3458
3493
|
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
3459
3494
|
this.bumpSpace();
|
3460
|
-
var
|
3461
|
-
if (
|
3462
|
-
return
|
3463
|
-
this.bumpSpace(), I = this.parseIdentifierIfPossible(), L =
|
3495
|
+
var p = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3496
|
+
if (p.err)
|
3497
|
+
return p;
|
3498
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), L = p.val;
|
3464
3499
|
}
|
3465
3500
|
var M = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
3466
3501
|
if (M.err)
|
@@ -3468,23 +3503,23 @@ var ui = (
|
|
3468
3503
|
var v = this.tryParseArgumentClose(i);
|
3469
3504
|
if (v.err)
|
3470
3505
|
return v;
|
3471
|
-
var
|
3506
|
+
var A = w(i, this.clonePosition());
|
3472
3507
|
return a === "select" ? {
|
3473
3508
|
val: {
|
3474
|
-
type:
|
3509
|
+
type: F.select,
|
3475
3510
|
value: n,
|
3476
|
-
options:
|
3477
|
-
location:
|
3511
|
+
options: Dt(M.val),
|
3512
|
+
location: A
|
3478
3513
|
},
|
3479
3514
|
err: null
|
3480
3515
|
} : {
|
3481
3516
|
val: {
|
3482
|
-
type:
|
3517
|
+
type: F.plural,
|
3483
3518
|
value: n,
|
3484
|
-
options:
|
3519
|
+
options: Dt(M.val),
|
3485
3520
|
offset: L,
|
3486
3521
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3487
|
-
location:
|
3522
|
+
location: A
|
3488
3523
|
},
|
3489
3524
|
err: null
|
3490
3525
|
};
|
@@ -3532,28 +3567,28 @@ var ui = (
|
|
3532
3567
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3533
3568
|
var n = [];
|
3534
3569
|
try {
|
3535
|
-
n =
|
3570
|
+
n = zn(t);
|
3536
3571
|
} catch {
|
3537
3572
|
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
3538
3573
|
}
|
3539
3574
|
return {
|
3540
3575
|
val: {
|
3541
|
-
type:
|
3576
|
+
type: de.number,
|
3542
3577
|
tokens: n,
|
3543
3578
|
location: r,
|
3544
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3579
|
+
parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
|
3545
3580
|
},
|
3546
3581
|
err: null
|
3547
3582
|
};
|
3548
3583
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3549
3584
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
3550
3585
|
if (l.length === 0) {
|
3551
|
-
var
|
3586
|
+
var p = this.clonePosition();
|
3552
3587
|
if (r !== "select" && this.bumpIf("=")) {
|
3553
3588
|
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3554
3589
|
if (c.err)
|
3555
3590
|
return c;
|
3556
|
-
u = w(
|
3591
|
+
u = w(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
|
3557
3592
|
} else
|
3558
3593
|
break;
|
3559
3594
|
}
|
@@ -3589,7 +3624,7 @@ var ui = (
|
|
3589
3624
|
break;
|
3590
3625
|
}
|
3591
3626
|
var h = w(i, this.clonePosition());
|
3592
|
-
return o ? (s *= n,
|
3627
|
+
return o ? (s *= n, ui(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3593
3628
|
}, e.prototype.offset = function() {
|
3594
3629
|
return this.position.offset;
|
3595
3630
|
}, e.prototype.isEOF = function() {
|
@@ -3604,7 +3639,7 @@ var ui = (
|
|
3604
3639
|
var t = this.position.offset;
|
3605
3640
|
if (t >= this.message.length)
|
3606
3641
|
throw Error("out of bound");
|
3607
|
-
var r =
|
3642
|
+
var r = Tr(this.message, t);
|
3608
3643
|
if (r === void 0)
|
3609
3644
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3610
3645
|
return r;
|
@@ -3623,7 +3658,7 @@ var ui = (
|
|
3623
3658
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
3624
3659
|
}
|
3625
3660
|
}, e.prototype.bumpIf = function(t) {
|
3626
|
-
if (
|
3661
|
+
if (Ut(this.message, t, this.offset())) {
|
3627
3662
|
for (var r = 0; r < t.length; r++)
|
3628
3663
|
this.bump();
|
3629
3664
|
return !0;
|
@@ -3645,7 +3680,7 @@ var ui = (
|
|
3645
3680
|
break;
|
3646
3681
|
}
|
3647
3682
|
}, e.prototype.bumpSpace = function() {
|
3648
|
-
for (; !this.isEOF() &&
|
3683
|
+
for (; !this.isEOF() && Ar(this.char()); )
|
3649
3684
|
this.bump();
|
3650
3685
|
}, e.prototype.peek = function() {
|
3651
3686
|
if (this.isEOF())
|
@@ -3655,47 +3690,47 @@ var ui = (
|
|
3655
3690
|
}, e;
|
3656
3691
|
}()
|
3657
3692
|
);
|
3658
|
-
function
|
3693
|
+
function mt(e) {
|
3659
3694
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3660
3695
|
}
|
3661
|
-
function
|
3662
|
-
return
|
3696
|
+
function di(e) {
|
3697
|
+
return mt(e) || e === 47;
|
3663
3698
|
}
|
3664
|
-
function
|
3699
|
+
function mi(e) {
|
3665
3700
|
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;
|
3666
3701
|
}
|
3667
|
-
function
|
3702
|
+
function Ar(e) {
|
3668
3703
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3669
3704
|
}
|
3670
|
-
function
|
3705
|
+
function bi(e) {
|
3671
3706
|
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;
|
3672
3707
|
}
|
3673
|
-
function
|
3708
|
+
function bt(e) {
|
3674
3709
|
e.forEach(function(t) {
|
3675
|
-
if (delete t.location,
|
3710
|
+
if (delete t.location, gr(t) || yr(t))
|
3676
3711
|
for (var r in t.options)
|
3677
|
-
delete t.options[r].location,
|
3712
|
+
delete t.options[r].location, bt(t.options[r].value);
|
3678
3713
|
else
|
3679
|
-
|
3714
|
+
dr(t) && _r(t.style) || (mr(t) || br(t)) && ct(t.style) ? delete t.style.location : vr(t) && bt(t.children);
|
3680
3715
|
});
|
3681
3716
|
}
|
3682
|
-
function
|
3683
|
-
t === void 0 && (t = {}), t =
|
3684
|
-
var r = new
|
3717
|
+
function gi(e, t) {
|
3718
|
+
t === void 0 && (t = {}), t = $e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3719
|
+
var r = new pi(e, t).parse();
|
3685
3720
|
if (r.err) {
|
3686
3721
|
var n = SyntaxError(E[r.err.kind]);
|
3687
3722
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3688
3723
|
}
|
3689
|
-
return t?.captureLocation ||
|
3724
|
+
return t?.captureLocation || bt(r.val), r.val;
|
3690
3725
|
}
|
3691
|
-
var
|
3726
|
+
var me;
|
3692
3727
|
(function(e) {
|
3693
3728
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3694
|
-
})(
|
3695
|
-
var
|
3729
|
+
})(me || (me = {}));
|
3730
|
+
var Ve = (
|
3696
3731
|
/** @class */
|
3697
3732
|
function(e) {
|
3698
|
-
|
3733
|
+
je(t, e);
|
3699
3734
|
function t(r, n, i) {
|
3700
3735
|
var o = e.call(this, r) || this;
|
3701
3736
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3704,48 +3739,48 @@ var ke = (
|
|
3704
3739
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3705
3740
|
}, t;
|
3706
3741
|
}(Error)
|
3707
|
-
),
|
3742
|
+
), kt = (
|
3708
3743
|
/** @class */
|
3709
3744
|
function(e) {
|
3710
|
-
|
3745
|
+
je(t, e);
|
3711
3746
|
function t(r, n, i, o) {
|
3712
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3747
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), me.INVALID_VALUE, o) || this;
|
3713
3748
|
}
|
3714
3749
|
return t;
|
3715
|
-
}(
|
3716
|
-
),
|
3750
|
+
}(Ve)
|
3751
|
+
), yi = (
|
3717
3752
|
/** @class */
|
3718
3753
|
function(e) {
|
3719
|
-
|
3754
|
+
je(t, e);
|
3720
3755
|
function t(r, n, i) {
|
3721
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3756
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), me.INVALID_VALUE, i) || this;
|
3722
3757
|
}
|
3723
3758
|
return t;
|
3724
|
-
}(
|
3725
|
-
),
|
3759
|
+
}(Ve)
|
3760
|
+
), vi = (
|
3726
3761
|
/** @class */
|
3727
3762
|
function(e) {
|
3728
|
-
|
3763
|
+
je(t, e);
|
3729
3764
|
function t(r, n) {
|
3730
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3765
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), me.MISSING_VALUE, n) || this;
|
3731
3766
|
}
|
3732
3767
|
return t;
|
3733
|
-
}(
|
3768
|
+
}(Ve)
|
3734
3769
|
), R;
|
3735
3770
|
(function(e) {
|
3736
3771
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3737
3772
|
})(R || (R = {}));
|
3738
|
-
function
|
3773
|
+
function _i(e) {
|
3739
3774
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3740
3775
|
var n = t[t.length - 1];
|
3741
3776
|
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
3742
3777
|
}, []);
|
3743
3778
|
}
|
3744
|
-
function
|
3779
|
+
function xi(e) {
|
3745
3780
|
return typeof e == "function";
|
3746
3781
|
}
|
3747
3782
|
function Ne(e, t, r, n, i, o, s) {
|
3748
|
-
if (e.length === 1 &&
|
3783
|
+
if (e.length === 1 && Nt(e[0]))
|
3749
3784
|
return [
|
3750
3785
|
{
|
3751
3786
|
type: R.literal,
|
@@ -3754,60 +3789,60 @@ function Ne(e, t, r, n, i, o, s) {
|
|
3754
3789
|
];
|
3755
3790
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3756
3791
|
var u = l[h];
|
3757
|
-
if (
|
3792
|
+
if (Nt(u)) {
|
3758
3793
|
a.push({
|
3759
3794
|
type: R.literal,
|
3760
3795
|
value: u.value
|
3761
3796
|
});
|
3762
3797
|
continue;
|
3763
3798
|
}
|
3764
|
-
if (
|
3799
|
+
if (jn(u)) {
|
3765
3800
|
typeof o == "number" && a.push({
|
3766
3801
|
type: R.literal,
|
3767
3802
|
value: r.getNumberFormat(t).format(o)
|
3768
3803
|
});
|
3769
3804
|
continue;
|
3770
3805
|
}
|
3771
|
-
var
|
3772
|
-
if (!(i &&
|
3773
|
-
throw new
|
3774
|
-
var c = i[
|
3775
|
-
if (
|
3806
|
+
var p = u.value;
|
3807
|
+
if (!(i && p in i))
|
3808
|
+
throw new vi(p, s);
|
3809
|
+
var c = i[p];
|
3810
|
+
if (kn(u)) {
|
3776
3811
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3777
3812
|
type: typeof c == "string" ? R.literal : R.object,
|
3778
3813
|
value: c
|
3779
3814
|
});
|
3780
3815
|
continue;
|
3781
3816
|
}
|
3782
|
-
if (
|
3783
|
-
var m = typeof u.style == "string" ? n.date[u.style] :
|
3817
|
+
if (mr(u)) {
|
3818
|
+
var m = typeof u.style == "string" ? n.date[u.style] : ct(u.style) ? u.style.parsedOptions : void 0;
|
3784
3819
|
a.push({
|
3785
3820
|
type: R.literal,
|
3786
3821
|
value: r.getDateTimeFormat(t, m).format(c)
|
3787
3822
|
});
|
3788
3823
|
continue;
|
3789
3824
|
}
|
3790
|
-
if (
|
3791
|
-
var m = typeof u.style == "string" ? n.time[u.style] :
|
3825
|
+
if (br(u)) {
|
3826
|
+
var m = typeof u.style == "string" ? n.time[u.style] : ct(u.style) ? u.style.parsedOptions : n.time.medium;
|
3792
3827
|
a.push({
|
3793
3828
|
type: R.literal,
|
3794
3829
|
value: r.getDateTimeFormat(t, m).format(c)
|
3795
3830
|
});
|
3796
3831
|
continue;
|
3797
3832
|
}
|
3798
|
-
if (
|
3799
|
-
var m = typeof u.style == "string" ? n.number[u.style] :
|
3833
|
+
if (dr(u)) {
|
3834
|
+
var m = typeof u.style == "string" ? n.number[u.style] : _r(u.style) ? u.style.parsedOptions : void 0;
|
3800
3835
|
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
3801
3836
|
type: R.literal,
|
3802
3837
|
value: r.getNumberFormat(t, m).format(c)
|
3803
3838
|
});
|
3804
3839
|
continue;
|
3805
3840
|
}
|
3806
|
-
if (
|
3807
|
-
var v = u.children, y = u.value,
|
3808
|
-
if (!
|
3809
|
-
throw new
|
3810
|
-
var
|
3841
|
+
if (vr(u)) {
|
3842
|
+
var v = u.children, y = u.value, T = i[y];
|
3843
|
+
if (!xi(T))
|
3844
|
+
throw new yi(y, "function", s);
|
3845
|
+
var H = Ne(v, t, r, n, i, o), S = T(H.map(function(L) {
|
3811
3846
|
return L.value;
|
3812
3847
|
}));
|
3813
3848
|
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(L) {
|
@@ -3817,42 +3852,42 @@ function Ne(e, t, r, n, i, o, s) {
|
|
3817
3852
|
};
|
3818
3853
|
}));
|
3819
3854
|
}
|
3820
|
-
if (
|
3855
|
+
if (gr(u)) {
|
3821
3856
|
var b = u.options[c] || u.options.other;
|
3822
3857
|
if (!b)
|
3823
|
-
throw new
|
3858
|
+
throw new kt(u.value, c, Object.keys(u.options), s);
|
3824
3859
|
a.push.apply(a, Ne(b.value, t, r, n, i));
|
3825
3860
|
continue;
|
3826
3861
|
}
|
3827
|
-
if (
|
3862
|
+
if (yr(u)) {
|
3828
3863
|
var b = u.options["=".concat(c)];
|
3829
3864
|
if (!b) {
|
3830
3865
|
if (!Intl.PluralRules)
|
3831
|
-
throw new
|
3866
|
+
throw new Ve(`Intl.PluralRules is not available in this environment.
|
3832
3867
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3833
|
-
`,
|
3868
|
+
`, me.MISSING_INTL_API, s);
|
3834
3869
|
var I = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
3835
3870
|
b = u.options[I] || u.options.other;
|
3836
3871
|
}
|
3837
3872
|
if (!b)
|
3838
|
-
throw new
|
3873
|
+
throw new kt(u.value, c, Object.keys(u.options), s);
|
3839
3874
|
a.push.apply(a, Ne(b.value, t, r, n, i, c - (u.offset || 0)));
|
3840
3875
|
continue;
|
3841
3876
|
}
|
3842
3877
|
}
|
3843
|
-
return
|
3878
|
+
return _i(a);
|
3844
3879
|
}
|
3845
|
-
function
|
3846
|
-
return t ?
|
3847
|
-
return r[n] =
|
3880
|
+
function Ei(e, t) {
|
3881
|
+
return t ? X(X(X({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3882
|
+
return r[n] = X(X({}, e[n]), t[n] || {}), r;
|
3848
3883
|
}, {})) : e;
|
3849
3884
|
}
|
3850
|
-
function
|
3885
|
+
function wi(e, t) {
|
3851
3886
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3852
|
-
return r[n] =
|
3853
|
-
},
|
3887
|
+
return r[n] = Ei(e[n], t[n]), r;
|
3888
|
+
}, X({}, e)) : e;
|
3854
3889
|
}
|
3855
|
-
function
|
3890
|
+
function Ke(e) {
|
3856
3891
|
return {
|
3857
3892
|
create: function() {
|
3858
3893
|
return {
|
@@ -3866,39 +3901,39 @@ function Qe(e) {
|
|
3866
3901
|
}
|
3867
3902
|
};
|
3868
3903
|
}
|
3869
|
-
function
|
3904
|
+
function Si(e) {
|
3870
3905
|
return e === void 0 && (e = {
|
3871
3906
|
number: {},
|
3872
3907
|
dateTime: {},
|
3873
3908
|
pluralRules: {}
|
3874
3909
|
}), {
|
3875
|
-
getNumberFormat:
|
3910
|
+
getNumberFormat: Qe(function() {
|
3876
3911
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3877
3912
|
r[n] = arguments[n];
|
3878
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3913
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Je([void 0], r, !1)))();
|
3879
3914
|
}, {
|
3880
|
-
cache:
|
3881
|
-
strategy:
|
3915
|
+
cache: Ke(e.number),
|
3916
|
+
strategy: qe.variadic
|
3882
3917
|
}),
|
3883
|
-
getDateTimeFormat:
|
3918
|
+
getDateTimeFormat: Qe(function() {
|
3884
3919
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3885
3920
|
r[n] = arguments[n];
|
3886
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3921
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Je([void 0], r, !1)))();
|
3887
3922
|
}, {
|
3888
|
-
cache:
|
3889
|
-
strategy:
|
3923
|
+
cache: Ke(e.dateTime),
|
3924
|
+
strategy: qe.variadic
|
3890
3925
|
}),
|
3891
|
-
getPluralRules:
|
3926
|
+
getPluralRules: Qe(function() {
|
3892
3927
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3893
3928
|
r[n] = arguments[n];
|
3894
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3929
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Je([void 0], r, !1)))();
|
3895
3930
|
}, {
|
3896
|
-
cache:
|
3897
|
-
strategy:
|
3931
|
+
cache: Ke(e.pluralRules),
|
3932
|
+
strategy: qe.variadic
|
3898
3933
|
})
|
3899
3934
|
};
|
3900
3935
|
}
|
3901
|
-
var
|
3936
|
+
var Ti = (
|
3902
3937
|
/** @class */
|
3903
3938
|
function() {
|
3904
3939
|
function e(t, r, n, i) {
|
@@ -3912,8 +3947,8 @@ var xi = (
|
|
3912
3947
|
var l = o.formatToParts(h);
|
3913
3948
|
if (l.length === 1)
|
3914
3949
|
return l[0].value;
|
3915
|
-
var u = l.reduce(function(
|
3916
|
-
return !
|
3950
|
+
var u = l.reduce(function(p, c) {
|
3951
|
+
return !p.length || c.type !== R.literal || typeof p[p.length - 1] != "string" ? p.push(c.value) : p[p.length - 1] += c.value, p;
|
3917
3952
|
}, []);
|
3918
3953
|
return u.length <= 1 ? u[0] || "" : u;
|
3919
3954
|
}, this.formatToParts = function(h) {
|
@@ -3930,13 +3965,13 @@ var xi = (
|
|
3930
3965
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3931
3966
|
var s = i || {};
|
3932
3967
|
s.formatters;
|
3933
|
-
var a =
|
3934
|
-
this.ast = e.__parse(t,
|
3968
|
+
var a = Ln(s, ["formatters"]);
|
3969
|
+
this.ast = e.__parse(t, X(X({}, a), { locale: this.resolvedLocale }));
|
3935
3970
|
} else
|
3936
3971
|
this.ast = t;
|
3937
3972
|
if (!Array.isArray(this.ast))
|
3938
3973
|
throw new TypeError("A message must be provided as a String or AST.");
|
3939
|
-
this.formats =
|
3974
|
+
this.formats = wi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
|
3940
3975
|
}
|
3941
3976
|
return Object.defineProperty(e, "defaultLocale", {
|
3942
3977
|
get: function() {
|
@@ -3949,7 +3984,7 @@ var xi = (
|
|
3949
3984
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3950
3985
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3951
3986
|
}
|
3952
|
-
}, e.__parse =
|
3987
|
+
}, e.__parse = gi, e.formats = {
|
3953
3988
|
number: {
|
3954
3989
|
integer: {
|
3955
3990
|
maximumFractionDigits: 0
|
@@ -4010,7 +4045,7 @@ var xi = (
|
|
4010
4045
|
}, e;
|
4011
4046
|
}()
|
4012
4047
|
);
|
4013
|
-
function
|
4048
|
+
function Hi(e, t) {
|
4014
4049
|
if (t == null)
|
4015
4050
|
return;
|
4016
4051
|
if (t in e)
|
@@ -4031,92 +4066,92 @@ function Ei(e, t) {
|
|
4031
4066
|
n = void 0;
|
4032
4067
|
return n;
|
4033
4068
|
}
|
4034
|
-
const Q = {},
|
4069
|
+
const Q = {}, Ai = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), Pr = (e, t) => {
|
4035
4070
|
if (t == null)
|
4036
4071
|
return;
|
4037
4072
|
if (t in Q && e in Q[t])
|
4038
4073
|
return Q[t][e];
|
4039
|
-
const r =
|
4074
|
+
const r = Xe(t);
|
4040
4075
|
for (let n = 0; n < r.length; n++) {
|
4041
|
-
const i = r[n], o =
|
4076
|
+
const i = r[n], o = Bi(i, e);
|
4042
4077
|
if (o)
|
4043
|
-
return
|
4078
|
+
return Ai(e, t, o);
|
4044
4079
|
}
|
4045
4080
|
};
|
4046
|
-
let
|
4047
|
-
const
|
4048
|
-
function
|
4049
|
-
return
|
4081
|
+
let _t;
|
4082
|
+
const ye = ke({});
|
4083
|
+
function Pi(e) {
|
4084
|
+
return _t[e] || null;
|
4050
4085
|
}
|
4051
|
-
function
|
4052
|
-
return e in
|
4086
|
+
function Br(e) {
|
4087
|
+
return e in _t;
|
4053
4088
|
}
|
4054
|
-
function
|
4055
|
-
if (!
|
4089
|
+
function Bi(e, t) {
|
4090
|
+
if (!Br(e))
|
4056
4091
|
return null;
|
4057
|
-
const r =
|
4058
|
-
return
|
4092
|
+
const r = Pi(e);
|
4093
|
+
return Hi(r, t);
|
4059
4094
|
}
|
4060
|
-
function
|
4095
|
+
function Fi(e) {
|
4061
4096
|
if (e == null)
|
4062
4097
|
return;
|
4063
|
-
const t =
|
4098
|
+
const t = Xe(e);
|
4064
4099
|
for (let r = 0; r < t.length; r++) {
|
4065
4100
|
const n = t[r];
|
4066
|
-
if (
|
4101
|
+
if (Br(n))
|
4067
4102
|
return n;
|
4068
4103
|
}
|
4069
4104
|
}
|
4070
|
-
function
|
4071
|
-
delete Q[e],
|
4105
|
+
function Fr(e, ...t) {
|
4106
|
+
delete Q[e], ye.update((r) => (r[e] = In.all([r[e] || {}, ...t]), r));
|
4072
4107
|
}
|
4073
|
-
|
4074
|
-
[
|
4108
|
+
ge(
|
4109
|
+
[ye],
|
4075
4110
|
([e]) => Object.keys(e)
|
4076
4111
|
);
|
4077
|
-
|
4112
|
+
ye.subscribe((e) => _t = e);
|
4078
4113
|
const Me = {};
|
4079
|
-
function
|
4114
|
+
function Ci(e, t) {
|
4080
4115
|
Me[e].delete(t), Me[e].size === 0 && delete Me[e];
|
4081
4116
|
}
|
4082
|
-
function
|
4117
|
+
function Cr(e) {
|
4083
4118
|
return Me[e];
|
4084
4119
|
}
|
4085
|
-
function
|
4086
|
-
return
|
4087
|
-
const r =
|
4120
|
+
function Oi(e) {
|
4121
|
+
return Xe(e).map((t) => {
|
4122
|
+
const r = Cr(t);
|
4088
4123
|
return [t, r ? [...r] : []];
|
4089
4124
|
}).filter(([, t]) => t.length > 0);
|
4090
4125
|
}
|
4091
|
-
function
|
4092
|
-
return e == null ? !1 :
|
4126
|
+
function gt(e) {
|
4127
|
+
return e == null ? !1 : Xe(e).some(
|
4093
4128
|
(t) => {
|
4094
4129
|
var r;
|
4095
|
-
return (r =
|
4130
|
+
return (r = Cr(t)) == null ? void 0 : r.size;
|
4096
4131
|
}
|
4097
4132
|
);
|
4098
4133
|
}
|
4099
|
-
function
|
4134
|
+
function Ii(e, t) {
|
4100
4135
|
return Promise.all(
|
4101
|
-
t.map((n) => (
|
4102
|
-
).then((n) =>
|
4103
|
-
}
|
4104
|
-
const
|
4105
|
-
function
|
4106
|
-
if (!
|
4107
|
-
return e in
|
4108
|
-
const t =
|
4109
|
-
return
|
4136
|
+
t.map((n) => (Ci(e, n), n().then((i) => i.default || i)))
|
4137
|
+
).then((n) => Fr(e, ...n));
|
4138
|
+
}
|
4139
|
+
const _e = {};
|
4140
|
+
function Or(e) {
|
4141
|
+
if (!gt(e))
|
4142
|
+
return e in _e ? _e[e] : Promise.resolve();
|
4143
|
+
const t = Oi(e);
|
4144
|
+
return _e[e] = Promise.all(
|
4110
4145
|
t.map(
|
4111
|
-
([r, n]) =>
|
4146
|
+
([r, n]) => Ii(r, n)
|
4112
4147
|
)
|
4113
4148
|
).then(() => {
|
4114
|
-
if (
|
4115
|
-
return
|
4116
|
-
delete
|
4117
|
-
}),
|
4149
|
+
if (gt(e))
|
4150
|
+
return Or(e);
|
4151
|
+
delete _e[e];
|
4152
|
+
}), _e[e];
|
4118
4153
|
}
|
4119
|
-
const
|
4154
|
+
const Li = {
|
4120
4155
|
number: {
|
4121
4156
|
scientific: { notation: "scientific" },
|
4122
4157
|
engineering: { notation: "engineering" },
|
@@ -4145,135 +4180,135 @@ const Fi = {
|
|
4145
4180
|
timeZoneName: "short"
|
4146
4181
|
}
|
4147
4182
|
}
|
4148
|
-
},
|
4183
|
+
}, Ni = {
|
4149
4184
|
fallbackLocale: null,
|
4150
4185
|
loadingDelay: 200,
|
4151
|
-
formats:
|
4186
|
+
formats: Li,
|
4152
4187
|
warnOnMissingMessages: !0,
|
4153
4188
|
handleMissingMessage: void 0,
|
4154
4189
|
ignoreTag: !0
|
4155
|
-
},
|
4156
|
-
function
|
4157
|
-
return
|
4158
|
-
}
|
4159
|
-
const
|
4160
|
-
var
|
4161
|
-
for (var r in t)
|
4162
|
-
|
4163
|
-
if (
|
4164
|
-
for (var r of
|
4165
|
-
|
4190
|
+
}, Mi = Ni;
|
4191
|
+
function be() {
|
4192
|
+
return Mi;
|
4193
|
+
}
|
4194
|
+
const et = ke(!1);
|
4195
|
+
var Ri = Object.defineProperty, $i = Object.defineProperties, Ui = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, Di = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, Vt = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ki = (e, t) => {
|
4196
|
+
for (var r in t || (t = {}))
|
4197
|
+
Di.call(t, r) && Vt(e, r, t[r]);
|
4198
|
+
if (jt)
|
4199
|
+
for (var r of jt(t))
|
4200
|
+
Gi.call(t, r) && Vt(e, r, t[r]);
|
4166
4201
|
return e;
|
4167
|
-
},
|
4168
|
-
let
|
4169
|
-
const Ue =
|
4170
|
-
function
|
4202
|
+
}, ji = (e, t) => $i(e, Ui(t));
|
4203
|
+
let yt;
|
4204
|
+
const Ue = ke(null);
|
4205
|
+
function Xt(e) {
|
4171
4206
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4172
4207
|
}
|
4173
|
-
function
|
4174
|
-
const r =
|
4175
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4208
|
+
function Xe(e, t = be().fallbackLocale) {
|
4209
|
+
const r = Xt(e);
|
4210
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
4176
4211
|
}
|
4177
4212
|
function ne() {
|
4178
|
-
return
|
4213
|
+
return yt ?? void 0;
|
4179
4214
|
}
|
4180
4215
|
Ue.subscribe((e) => {
|
4181
|
-
|
4216
|
+
yt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4182
4217
|
});
|
4183
|
-
const
|
4184
|
-
if (e &&
|
4185
|
-
const { loadingDelay: t } =
|
4218
|
+
const Vi = (e) => {
|
4219
|
+
if (e && Fi(e) && gt(e)) {
|
4220
|
+
const { loadingDelay: t } = be();
|
4186
4221
|
let r;
|
4187
4222
|
return typeof window < "u" && ne() != null && t ? r = window.setTimeout(
|
4188
|
-
() =>
|
4223
|
+
() => et.set(!0),
|
4189
4224
|
t
|
4190
|
-
) :
|
4225
|
+
) : et.set(!0), Or(e).then(() => {
|
4191
4226
|
Ue.set(e);
|
4192
4227
|
}).finally(() => {
|
4193
|
-
clearTimeout(r),
|
4228
|
+
clearTimeout(r), et.set(!1);
|
4194
4229
|
});
|
4195
4230
|
}
|
4196
4231
|
return Ue.set(e);
|
4197
|
-
}, re =
|
4198
|
-
set:
|
4199
|
-
}),
|
4232
|
+
}, re = ji(ki({}, Ue), {
|
4233
|
+
set: Vi
|
4234
|
+
}), We = (e) => {
|
4200
4235
|
const t = /* @__PURE__ */ Object.create(null);
|
4201
4236
|
return (n) => {
|
4202
4237
|
const i = JSON.stringify(n);
|
4203
4238
|
return i in t ? t[i] : t[i] = e(n);
|
4204
4239
|
};
|
4205
4240
|
};
|
4206
|
-
var
|
4241
|
+
var Xi = Object.defineProperty, De = Object.getOwnPropertySymbols, Ir = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? Xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
|
4207
4242
|
for (var r in t || (t = {}))
|
4208
|
-
|
4243
|
+
Ir.call(t, r) && Wt(e, r, t[r]);
|
4209
4244
|
if (De)
|
4210
4245
|
for (var r of De(t))
|
4211
|
-
|
4246
|
+
Lr.call(t, r) && Wt(e, r, t[r]);
|
4212
4247
|
return e;
|
4213
|
-
},
|
4248
|
+
}, ve = (e, t) => {
|
4214
4249
|
var r = {};
|
4215
4250
|
for (var n in e)
|
4216
|
-
|
4251
|
+
Ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4217
4252
|
if (e != null && De)
|
4218
4253
|
for (var n of De(e))
|
4219
|
-
t.indexOf(n) < 0 &&
|
4254
|
+
t.indexOf(n) < 0 && Lr.call(e, n) && (r[n] = e[n]);
|
4220
4255
|
return r;
|
4221
4256
|
};
|
4222
|
-
const
|
4223
|
-
const { formats: r } =
|
4257
|
+
const Te = (e, t) => {
|
4258
|
+
const { formats: r } = be();
|
4224
4259
|
if (e in r && t in r[e])
|
4225
4260
|
return r[e][t];
|
4226
4261
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4227
|
-
},
|
4262
|
+
}, Wi = We(
|
4228
4263
|
(e) => {
|
4229
|
-
var t = e, { locale: r, format: n } = t, i =
|
4264
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
4230
4265
|
if (r == null)
|
4231
4266
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4232
|
-
return n && (i =
|
4267
|
+
return n && (i = Te("number", n)), new Intl.NumberFormat(r, i);
|
4233
4268
|
}
|
4234
|
-
),
|
4269
|
+
), zi = We(
|
4235
4270
|
(e) => {
|
4236
|
-
var t = e, { locale: r, format: n } = t, i =
|
4271
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
4237
4272
|
if (r == null)
|
4238
4273
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4239
|
-
return n ? i =
|
4274
|
+
return n ? i = Te("date", n) : Object.keys(i).length === 0 && (i = Te("date", "short")), new Intl.DateTimeFormat(r, i);
|
4240
4275
|
}
|
4241
|
-
),
|
4276
|
+
), Zi = We(
|
4242
4277
|
(e) => {
|
4243
|
-
var t = e, { locale: r, format: n } = t, i =
|
4278
|
+
var t = e, { locale: r, format: n } = t, i = ve(t, ["locale", "format"]);
|
4244
4279
|
if (r == null)
|
4245
4280
|
throw new Error(
|
4246
4281
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4247
4282
|
);
|
4248
|
-
return n ? i =
|
4283
|
+
return n ? i = Te("time", n) : Object.keys(i).length === 0 && (i = Te("time", "short")), new Intl.DateTimeFormat(r, i);
|
4249
4284
|
}
|
4250
|
-
),
|
4285
|
+
), Ji = (e = {}) => {
|
4251
4286
|
var t = e, {
|
4252
4287
|
locale: r = ne()
|
4253
|
-
} = t, n =
|
4288
|
+
} = t, n = ve(t, [
|
4254
4289
|
"locale"
|
4255
4290
|
]);
|
4256
|
-
return
|
4257
|
-
},
|
4291
|
+
return Wi(xt({ locale: r }, n));
|
4292
|
+
}, Qi = (e = {}) => {
|
4258
4293
|
var t = e, {
|
4259
4294
|
locale: r = ne()
|
4260
|
-
} = t, n =
|
4295
|
+
} = t, n = ve(t, [
|
4261
4296
|
"locale"
|
4262
4297
|
]);
|
4263
|
-
return
|
4264
|
-
},
|
4298
|
+
return zi(xt({ locale: r }, n));
|
4299
|
+
}, qi = (e = {}) => {
|
4265
4300
|
var t = e, {
|
4266
4301
|
locale: r = ne()
|
4267
|
-
} = t, n =
|
4302
|
+
} = t, n = ve(t, [
|
4268
4303
|
"locale"
|
4269
4304
|
]);
|
4270
|
-
return
|
4271
|
-
},
|
4305
|
+
return Zi(xt({ locale: r }, n));
|
4306
|
+
}, Yi = We(
|
4272
4307
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4273
|
-
(e, t = ne()) => new
|
4274
|
-
ignoreTag:
|
4308
|
+
(e, t = ne()) => new Ti(e, t, be().formats, {
|
4309
|
+
ignoreTag: be().ignoreTag
|
4275
4310
|
})
|
4276
|
-
),
|
4311
|
+
), Ki = (e, t = {}) => {
|
4277
4312
|
var r, n, i, o;
|
4278
4313
|
let s = t;
|
4279
4314
|
typeof e == "object" && (s = e, e = s.id);
|
@@ -4286,35 +4321,35 @@ const He = (e, t) => {
|
|
4286
4321
|
throw new Error(
|
4287
4322
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4288
4323
|
);
|
4289
|
-
let u =
|
4324
|
+
let u = Pr(e, h);
|
4290
4325
|
if (!u)
|
4291
|
-
u = (o = (i = (n = (r =
|
4326
|
+
u = (o = (i = (n = (r = be()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
4292
4327
|
else if (typeof u != "string")
|
4293
4328
|
return console.warn(
|
4294
4329
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
4295
4330
|
), u;
|
4296
4331
|
if (!a)
|
4297
4332
|
return u;
|
4298
|
-
let
|
4333
|
+
let p = u;
|
4299
4334
|
try {
|
4300
|
-
|
4335
|
+
p = Yi(u, h).format(a);
|
4301
4336
|
} catch (c) {
|
4302
4337
|
c instanceof Error && console.warn(
|
4303
4338
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
4304
4339
|
c.message
|
4305
4340
|
);
|
4306
4341
|
}
|
4307
|
-
return
|
4308
|
-
},
|
4309
|
-
|
4310
|
-
|
4311
|
-
|
4312
|
-
|
4313
|
-
window.emWidgets = { topic:
|
4314
|
-
const
|
4315
|
-
function
|
4342
|
+
return p;
|
4343
|
+
}, eo = (e, t) => qi(t).format(e), to = (e, t) => Qi(t).format(e), ro = (e, t) => Ji(t).format(e), no = (e, t = ne()) => Pr(e, t), io = ge([re, ye], () => Ki);
|
4344
|
+
ge([re], () => eo);
|
4345
|
+
ge([re], () => to);
|
4346
|
+
ge([re], () => ro);
|
4347
|
+
ge([re, ye], () => no);
|
4348
|
+
window.emWidgets = { topic: bn };
|
4349
|
+
const oo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), so = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4350
|
+
function Bo(e, t) {
|
4316
4351
|
const r = window.navigator.userAgent;
|
4317
|
-
return
|
4352
|
+
return oo(r) ? t = e.filter((n) => {
|
4318
4353
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
4319
4354
|
return n;
|
4320
4355
|
}) : t = e.filter((n) => {
|
@@ -4322,13 +4357,13 @@ function To(e, t) {
|
|
4322
4357
|
return n;
|
4323
4358
|
}), t;
|
4324
4359
|
}
|
4325
|
-
function
|
4360
|
+
function ao(e, t) {
|
4326
4361
|
if (e) {
|
4327
4362
|
const r = document.createElement("style");
|
4328
4363
|
r.innerHTML = t, e.appendChild(r);
|
4329
4364
|
}
|
4330
4365
|
}
|
4331
|
-
function
|
4366
|
+
function lo(e, t) {
|
4332
4367
|
const r = new URL(t);
|
4333
4368
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4334
4369
|
const i = document.createElement("style");
|
@@ -4337,7 +4372,7 @@ function io(e, t) {
|
|
4337
4372
|
console.error("There was an error while trying to load client styling from URL", n);
|
4338
4373
|
});
|
4339
4374
|
}
|
4340
|
-
function
|
4375
|
+
function uo(e, t, r) {
|
4341
4376
|
if (window.emMessageBus) {
|
4342
4377
|
const n = document.createElement("style");
|
4343
4378
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4345,15 +4380,15 @@ function oo(e, t, r) {
|
|
4345
4380
|
});
|
4346
4381
|
}
|
4347
4382
|
}
|
4348
|
-
function
|
4383
|
+
function ho({ withLocale: e, translations: t }) {
|
4349
4384
|
re.subscribe((r) => {
|
4350
|
-
r == null && (
|
4385
|
+
r == null && (ye.set(t), re.set(e));
|
4351
4386
|
});
|
4352
4387
|
}
|
4353
|
-
function
|
4354
|
-
|
4388
|
+
function zt(e, t) {
|
4389
|
+
Fr(e, t);
|
4355
4390
|
}
|
4356
|
-
const
|
4391
|
+
const Zt = {
|
4357
4392
|
en: {
|
4358
4393
|
providers: "Providers:",
|
4359
4394
|
filterby: "Filter by:",
|
@@ -4463,56 +4498,56 @@ const Vt = {
|
|
4463
4498
|
clear: "Clear all"
|
4464
4499
|
}
|
4465
4500
|
};
|
4466
|
-
function
|
4467
|
-
|
4501
|
+
function co(e) {
|
4502
|
+
Ur(e, "svelte-1rlsu2u", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:17}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
|
4468
4503
|
}
|
4469
|
-
function
|
4504
|
+
function Jt(e, t, r) {
|
4470
4505
|
const n = e.slice();
|
4471
4506
|
return n[37] = t[r], n[38] = t, n[39] = r, n;
|
4472
4507
|
}
|
4473
|
-
function
|
4508
|
+
function fo(e) {
|
4474
4509
|
let t, r, n, i, o, s, a, h, l = (
|
4475
4510
|
/*$_*/
|
4476
4511
|
e[11]("filterby") + ""
|
4477
|
-
), u,
|
4512
|
+
), u, p, c, m, v = (
|
4478
4513
|
/*$_*/
|
4479
4514
|
e[11]("providers") + ""
|
4480
|
-
), y,
|
4515
|
+
), y, T, H, S, b, I, L, M, A, P, N, z, j, K = (
|
4481
4516
|
/*$_*/
|
4482
4517
|
e[11]("clear") + ""
|
4483
4518
|
), ie, ee, oe, te, se, Ae;
|
4484
|
-
function Pe(
|
4519
|
+
function Pe(d, C) {
|
4485
4520
|
return (
|
4486
4521
|
/*fullSelection*/
|
4487
|
-
|
4522
|
+
d[7] ? bo : mo
|
4488
4523
|
);
|
4489
4524
|
}
|
4490
|
-
let ae = Pe(e),
|
4525
|
+
let ae = Pe(e), U = ae(e), J = Ht(
|
4491
4526
|
/*vendorArray*/
|
4492
4527
|
e[5]
|
4493
4528
|
), f = [];
|
4494
|
-
for (let
|
4495
|
-
f[
|
4529
|
+
for (let d = 0; d < J.length; d += 1)
|
4530
|
+
f[d] = Qt(Jt(e, J, d));
|
4496
4531
|
return {
|
4497
4532
|
c() {
|
4498
|
-
t =
|
4499
|
-
for (let
|
4500
|
-
f[
|
4501
|
-
|
4533
|
+
t = B("div"), r = B("div"), n = B("div"), i = xe("svg"), o = xe("path"), s = V(), a = B("div"), h = B("span"), u = D(l), p = V(), c = B("div"), m = B("span"), y = D(v), T = V(), U.c(), H = V(), S = B("span"), b = xe("svg"), I = xe("path"), A = V(), P = B("div"), N = B("ul");
|
4534
|
+
for (let d = 0; d < f.length; d += 1)
|
4535
|
+
f[d].c();
|
4536
|
+
z = V(), j = B("button"), ie = D(K), g(o, "id", "noun_filter_736223"), g(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), g(o, "transform", "translate(-5 -6.2)"), g(o, "fill", "#fff"), g(i, "xmlns", "http://www.w3.org/2000/svg"), g(i, "width", "16"), g(i, "height", "16"), g(i, "viewBox", "0 0 16 16"), g(h, "class", "FilterName"), g(c, "class", "FilterValueContainer"), g(a, "class", "FilterTextContainer"), g(n, "class", "FilterMainArea"), g(I, "id", "arrow"), g(I, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), g(I, "transform", "translate(-274.511 -441.088)"), g(I, "fill", "#d1d1d1"), g(b, "xmlns", "http://www.w3.org/2000/svg"), g(b, "width", "14"), g(b, "height", "6.835"), g(b, "viewBox", "0 0 14 6.835"), g(S, "class", L = "TriangleInactive " + /*isFilterActive*/
|
4502
4537
|
(e[4] ? "TriangleActive" : "")), g(r, "class", M = "FilterSelector " + /*isFilterActive*/
|
4503
4538
|
(e[4] ? "FilterSelectorOpen" : "")), g(N, "class", "FilterDropdown"), g(j, "class", "ClearFilters"), j.disabled = ee = /*fullSelection*/
|
4504
4539
|
e[7] && /*selectedVendorArray*/
|
4505
4540
|
e[6].length != /*vendorArray*/
|
4506
|
-
e[5].length, g(
|
4541
|
+
e[5].length, g(P, "class", oe = "FilterDropdownContainer " + /*isFilterActive*/
|
4507
4542
|
(e[4] ? "FilterOpen" : "")), g(t, "class", te = "FilterContainer " + /*addfilterselector*/
|
4508
4543
|
(e[0] == "true" && /*addsortingselector*/
|
4509
4544
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4510
4545
|
},
|
4511
|
-
m(
|
4512
|
-
|
4546
|
+
m(d, C) {
|
4547
|
+
W(d, t, C), _(t, r), _(r, n), _(n, i), _(i, o), _(n, s), _(n, a), _(a, h), _(h, u), _(a, p), _(a, c), _(c, m), _(m, y), _(c, T), U.m(c, null), _(r, H), _(r, S), _(S, b), _(b, I), _(t, A), _(t, P), _(P, N);
|
4513
4548
|
for (let x = 0; x < f.length; x += 1)
|
4514
4549
|
f[x] && f[x].m(N, null);
|
4515
|
-
_(
|
4550
|
+
_(P, z), _(P, j), _(j, ie), se || (Ae = [
|
4516
4551
|
Re(
|
4517
4552
|
r,
|
4518
4553
|
"click",
|
@@ -4527,59 +4562,59 @@ function lo(e) {
|
|
4527
4562
|
)
|
4528
4563
|
], se = !0);
|
4529
4564
|
},
|
4530
|
-
p(
|
4531
|
-
if (
|
4565
|
+
p(d, C) {
|
4566
|
+
if (C[0] & /*$_*/
|
4532
4567
|
2048 && l !== (l = /*$_*/
|
4533
|
-
|
4568
|
+
d[11]("filterby") + "") && q(u, l), C[0] & /*$_*/
|
4534
4569
|
2048 && v !== (v = /*$_*/
|
4535
|
-
|
4570
|
+
d[11]("providers") + "") && q(y, v), ae === (ae = Pe(d)) && U ? U.p(d, C) : (U.d(1), U = ae(d), U && (U.c(), U.m(c, null))), C[0] & /*isFilterActive*/
|
4536
4571
|
16 && L !== (L = "TriangleInactive " + /*isFilterActive*/
|
4537
|
-
(
|
4572
|
+
(d[4] ? "TriangleActive" : "")) && g(S, "class", L), C[0] & /*isFilterActive*/
|
4538
4573
|
16 && M !== (M = "FilterSelector " + /*isFilterActive*/
|
4539
|
-
(
|
4574
|
+
(d[4] ? "FilterSelectorOpen" : "")) && g(r, "class", M), C[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4540
4575
|
8228) {
|
4541
|
-
J =
|
4576
|
+
J = Ht(
|
4542
4577
|
/*vendorArray*/
|
4543
|
-
|
4578
|
+
d[5]
|
4544
4579
|
);
|
4545
4580
|
let x;
|
4546
4581
|
for (x = 0; x < J.length; x += 1) {
|
4547
|
-
const le =
|
4548
|
-
f[x] ? f[x].p(le,
|
4582
|
+
const le = Jt(d, J, x);
|
4583
|
+
f[x] ? f[x].p(le, C) : (f[x] = Qt(le), f[x].c(), f[x].m(N, null));
|
4549
4584
|
}
|
4550
4585
|
for (; x < f.length; x += 1)
|
4551
4586
|
f[x].d(1);
|
4552
4587
|
f.length = J.length;
|
4553
4588
|
}
|
4554
|
-
|
4589
|
+
C[0] & /*$_*/
|
4555
4590
|
2048 && K !== (K = /*$_*/
|
4556
|
-
|
4591
|
+
d[11]("clear") + "") && q(ie, K), C[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4557
4592
|
224 && ee !== (ee = /*fullSelection*/
|
4558
|
-
|
4559
|
-
|
4560
|
-
|
4593
|
+
d[7] && /*selectedVendorArray*/
|
4594
|
+
d[6].length != /*vendorArray*/
|
4595
|
+
d[5].length) && (j.disabled = ee), C[0] & /*isFilterActive*/
|
4561
4596
|
16 && oe !== (oe = "FilterDropdownContainer " + /*isFilterActive*/
|
4562
|
-
(
|
4597
|
+
(d[4] ? "FilterOpen" : "")) && g(P, "class", oe), C[0] & /*addfilterselector, addsortingselector*/
|
4563
4598
|
3 && te !== (te = "FilterContainer " + /*addfilterselector*/
|
4564
|
-
(
|
4565
|
-
|
4599
|
+
(d[0] == "true" && /*addsortingselector*/
|
4600
|
+
d[1] == "true" ? "FilerContainerSplit" : "")) && g(t, "class", te);
|
4566
4601
|
},
|
4567
|
-
d(
|
4568
|
-
|
4602
|
+
d(d) {
|
4603
|
+
d && k(t), U.d(), kr(f, d), se = !1, Y(Ae);
|
4569
4604
|
}
|
4570
4605
|
};
|
4571
4606
|
}
|
4572
|
-
function
|
4607
|
+
function po(e) {
|
4573
4608
|
let t, r = (
|
4574
4609
|
/*$_*/
|
4575
4610
|
e[11]("500") + ""
|
4576
4611
|
), n;
|
4577
4612
|
return {
|
4578
4613
|
c() {
|
4579
|
-
t =
|
4614
|
+
t = B("p"), n = D(r), g(t, "class", "SearchLoading");
|
4580
4615
|
},
|
4581
4616
|
m(i, o) {
|
4582
|
-
|
4617
|
+
W(i, t, o), _(t, n);
|
4583
4618
|
},
|
4584
4619
|
p(i, o) {
|
4585
4620
|
o[0] & /*$_*/
|
@@ -4591,17 +4626,17 @@ function uo(e) {
|
|
4591
4626
|
}
|
4592
4627
|
};
|
4593
4628
|
}
|
4594
|
-
function
|
4629
|
+
function mo(e) {
|
4595
4630
|
let t, r;
|
4596
4631
|
return {
|
4597
4632
|
c() {
|
4598
|
-
t =
|
4633
|
+
t = B("span"), r = D(
|
4599
4634
|
/*selectionNumber*/
|
4600
4635
|
e[8]
|
4601
4636
|
), g(t, "class", "FilterCounter");
|
4602
4637
|
},
|
4603
4638
|
m(n, i) {
|
4604
|
-
|
4639
|
+
W(n, t, i), _(t, r);
|
4605
4640
|
},
|
4606
4641
|
p(n, i) {
|
4607
4642
|
i[0] & /*selectionNumber*/
|
@@ -4616,17 +4651,17 @@ function ho(e) {
|
|
4616
4651
|
}
|
4617
4652
|
};
|
4618
4653
|
}
|
4619
|
-
function
|
4654
|
+
function bo(e) {
|
4620
4655
|
let t, r = (
|
4621
4656
|
/*$_*/
|
4622
4657
|
e[11]("all") + ""
|
4623
4658
|
), n;
|
4624
4659
|
return {
|
4625
4660
|
c() {
|
4626
|
-
t =
|
4661
|
+
t = B("span"), n = D(r), g(t, "class", "FilterCounter");
|
4627
4662
|
},
|
4628
4663
|
m(i, o) {
|
4629
|
-
|
4664
|
+
W(i, t, o), _(t, n);
|
4630
4665
|
},
|
4631
4666
|
p(i, o) {
|
4632
4667
|
o[0] & /*$_*/
|
@@ -4638,19 +4673,19 @@ function co(e) {
|
|
4638
4673
|
}
|
4639
4674
|
};
|
4640
4675
|
}
|
4641
|
-
function
|
4676
|
+
function go(e) {
|
4642
4677
|
let t, r;
|
4643
4678
|
return {
|
4644
4679
|
c() {
|
4645
|
-
t =
|
4680
|
+
t = B("img"), wt(t.src, r = /*vendor*/
|
4646
4681
|
e[37].logo) || g(t, "src", r), g(t, "alt", "vendor logo");
|
4647
4682
|
},
|
4648
4683
|
m(n, i) {
|
4649
|
-
|
4684
|
+
W(n, t, i);
|
4650
4685
|
},
|
4651
4686
|
p(n, i) {
|
4652
4687
|
i[0] & /*vendorArray*/
|
4653
|
-
32 && !
|
4688
|
+
32 && !wt(t.src, r = /*vendor*/
|
4654
4689
|
n[37].logo) && g(t, "src", r);
|
4655
4690
|
},
|
4656
4691
|
d(n) {
|
@@ -4658,7 +4693,7 @@ function fo(e) {
|
|
4658
4693
|
}
|
4659
4694
|
};
|
4660
4695
|
}
|
4661
|
-
function
|
4696
|
+
function yo(e) {
|
4662
4697
|
let t, r, n = (
|
4663
4698
|
/*vendor*/
|
4664
4699
|
e[37].name + ""
|
@@ -4668,25 +4703,25 @@ function po(e) {
|
|
4668
4703
|
), l, u;
|
4669
4704
|
return {
|
4670
4705
|
c() {
|
4671
|
-
t =
|
4706
|
+
t = B("div"), r = B("span"), i = D(n), o = V(), s = B("span"), a = D("("), l = D(h), u = D(")"), g(r, "class", "VendorName"), g(t, "class", "FilterItemLabel");
|
4672
4707
|
},
|
4673
|
-
m(
|
4674
|
-
|
4708
|
+
m(p, c) {
|
4709
|
+
W(p, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, u);
|
4675
4710
|
},
|
4676
|
-
p(
|
4711
|
+
p(p, c) {
|
4677
4712
|
c[0] & /*vendorArray*/
|
4678
4713
|
32 && n !== (n = /*vendor*/
|
4679
|
-
|
4714
|
+
p[37].name + "") && q(i, n), c[0] & /*vendorArray*/
|
4680
4715
|
32 && h !== (h = /*vendor*/
|
4681
|
-
|
4716
|
+
p[37].games.total + "") && q(l, h);
|
4682
4717
|
},
|
4683
|
-
d(
|
4684
|
-
|
4718
|
+
d(p) {
|
4719
|
+
p && k(t);
|
4685
4720
|
}
|
4686
4721
|
};
|
4687
4722
|
}
|
4688
|
-
function
|
4689
|
-
let t, r, n, i, o, s, a, h, l, u,
|
4723
|
+
function Qt(e) {
|
4724
|
+
let t, r, n, i, o, s, a, h, l, u, p, c;
|
4690
4725
|
function m() {
|
4691
4726
|
e[25].call(
|
4692
4727
|
n,
|
@@ -4710,63 +4745,63 @@ function Wt(e) {
|
|
4710
4745
|
/*filterbylogo*/
|
4711
4746
|
S[2] === "false"
|
4712
4747
|
)
|
4713
|
-
return
|
4748
|
+
return yo;
|
4714
4749
|
if (
|
4715
4750
|
/*filterbylogo*/
|
4716
4751
|
S[2] === "true"
|
4717
4752
|
)
|
4718
|
-
return
|
4753
|
+
return go;
|
4719
4754
|
}
|
4720
|
-
let
|
4755
|
+
let T = y(e), H = T && T(e);
|
4721
4756
|
return {
|
4722
4757
|
c() {
|
4723
|
-
t =
|
4724
|
-
e[37].name,
|
4758
|
+
t = B("li"), r = B("label"), n = B("input"), o = V(), s = B("span"), a = V(), H && H.c(), h = V(), g(n, "type", "checkbox"), g(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
4759
|
+
e[37].name, St(n, n.__value), g(s, "class", "FiltersCheckmark"), g(r, "class", "FilterLabel"), g(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4725
4760
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = u = /*vendor*/
|
4726
4761
|
e[37].name;
|
4727
4762
|
},
|
4728
4763
|
m(S, b) {
|
4729
|
-
|
4730
|
-
e[37].isFilterSelected, _(r, o), _(r, s), _(r, a),
|
4764
|
+
W(S, t, b), _(t, r), _(r, n), n.checked = /*vendor*/
|
4765
|
+
e[37].isFilterSelected, _(r, o), _(r, s), _(r, a), H && H.m(r, null), _(t, h), p || (c = [
|
4731
4766
|
Re(n, "change", m),
|
4732
4767
|
Re(n, "click", v)
|
4733
|
-
],
|
4768
|
+
], p = !0);
|
4734
4769
|
},
|
4735
4770
|
p(S, b) {
|
4736
4771
|
e = S, b[0] & /*vendorArray*/
|
4737
4772
|
32 && i !== (i = /*vendor*/
|
4738
|
-
e[37].name) && (n.__value = i,
|
4773
|
+
e[37].name) && (n.__value = i, St(n, n.__value)), b[0] & /*vendorArray*/
|
4739
4774
|
32 && (n.checked = /*vendor*/
|
4740
|
-
e[37].isFilterSelected),
|
4775
|
+
e[37].isFilterSelected), T === (T = y(e)) && H ? H.p(e, b) : (H && H.d(1), H = T && T(e), H && (H.c(), H.m(r, null))), b[0] & /*filterbylogo*/
|
4741
4776
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4742
4777
|
(e[2] === "true" ? "FilterItemWithLogos" : "")) && g(t, "class", l), b[0] & /*vendorArray*/
|
4743
4778
|
32 && u !== (u = /*vendor*/
|
4744
4779
|
e[37].name) && (t.value = u);
|
4745
4780
|
},
|
4746
4781
|
d(S) {
|
4747
|
-
S && k(t),
|
4782
|
+
S && k(t), H && H.d(), p = !1, Y(c);
|
4748
4783
|
}
|
4749
4784
|
};
|
4750
4785
|
}
|
4751
|
-
function
|
4786
|
+
function vo(e) {
|
4752
4787
|
let t;
|
4753
4788
|
function r(o, s) {
|
4754
4789
|
if (
|
4755
4790
|
/*hasErrors*/
|
4756
4791
|
o[10]
|
4757
4792
|
)
|
4758
|
-
return
|
4793
|
+
return po;
|
4759
4794
|
if (!/*isLoading*/
|
4760
4795
|
o[9])
|
4761
|
-
return
|
4796
|
+
return fo;
|
4762
4797
|
}
|
4763
4798
|
let n = r(e), i = n && n(e);
|
4764
4799
|
return {
|
4765
4800
|
c() {
|
4766
|
-
t =
|
4801
|
+
t = B("div"), i && i.c();
|
4767
4802
|
},
|
4768
4803
|
m(o, s) {
|
4769
|
-
|
4804
|
+
W(o, t, s), i && i.m(t, null), e[28](t);
|
4770
4805
|
},
|
4771
4806
|
p(o, s) {
|
4772
4807
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
@@ -4778,92 +4813,92 @@ function mo(e) {
|
|
4778
4813
|
}
|
4779
4814
|
};
|
4780
4815
|
}
|
4781
|
-
function
|
4816
|
+
function _o(e, t, r) {
|
4782
4817
|
let n;
|
4783
|
-
|
4784
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector:
|
4785
|
-
|
4786
|
-
const
|
4787
|
-
fetch(a).then((
|
4788
|
-
Object.keys(
|
4789
|
-
|
4818
|
+
$r(e, io, (f) => r(11, n = f));
|
4819
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector: p = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: m = "false" } = t, { mbsource: v } = t, { usesinglevendorfilter: y = "false" } = t, T = !1, H = window.navigator.userAgent, S = [], b = [], I = {}, L = !1, M = 0, A = !0, P, N = !1;
|
4820
|
+
ho({ withLocale: "en", translations: {} });
|
4821
|
+
const z = () => {
|
4822
|
+
fetch(a).then((d) => d.json()).then((d) => {
|
4823
|
+
Object.keys(d).forEach((C) => {
|
4824
|
+
zt(C, d[C]);
|
4790
4825
|
});
|
4791
|
-
}).catch((
|
4792
|
-
console.log(
|
4826
|
+
}).catch((d) => {
|
4827
|
+
console.log(d);
|
4793
4828
|
});
|
4794
4829
|
};
|
4795
|
-
Object.keys(
|
4796
|
-
|
4830
|
+
Object.keys(Zt).forEach((f) => {
|
4831
|
+
zt(f, Zt[f]);
|
4797
4832
|
}), I[u] && (I = { [u]: [] });
|
4798
4833
|
const j = () => {
|
4799
|
-
r(4,
|
4800
|
-
}, K = (f) => (r(9,
|
4834
|
+
r(4, T = !T), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4835
|
+
}, K = (f) => (r(9, A = !0), new Promise((d, C) => {
|
4801
4836
|
fetch(f).then((x) => x.json()).then((x) => {
|
4802
|
-
x = x.items,
|
4837
|
+
x = x.items, d(x.items), r(6, b = []);
|
4803
4838
|
let le = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4804
|
-
const
|
4839
|
+
const Mr = y === "true" ? "*" : u;
|
4805
4840
|
x.forEach((Be) => {
|
4806
|
-
le || (le = { currentCategoryId: [] }), le[
|
4841
|
+
le || (le = { currentCategoryId: [] }), le[Mr]?.indexOf(Be.id) >= 0 ? (Be.isFilterSelected = !0, b.push(Be)) : Be.isFilterSelected = !1;
|
4807
4842
|
}), r(5, S = x), ee();
|
4808
4843
|
}).catch((x) => {
|
4809
|
-
console.error(x), r(10, N = !0),
|
4844
|
+
console.error(x), r(10, N = !0), C(x);
|
4810
4845
|
}).finally(() => {
|
4811
|
-
r(9,
|
4846
|
+
r(9, A = !1);
|
4812
4847
|
});
|
4813
4848
|
})), ie = (f) => {
|
4814
|
-
let
|
4849
|
+
let d = localStorage.getItem("vendorFiltersByCategory");
|
4815
4850
|
f.isFilterSelected = !f.isFilterSelected, !b.length || b.filter((x) => x.name === f.name).length == 0 ? b.push(f) : r(6, b = b.filter((x) => x.name !== f.name));
|
4816
|
-
const
|
4817
|
-
|
4818
|
-
[
|
4819
|
-
})) : (
|
4851
|
+
const C = y === "true" ? "*" : u;
|
4852
|
+
d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(I = {
|
4853
|
+
[C]: b.map((x) => x.id)
|
4854
|
+
})) : (d = JSON.parse(d), d[C] = b.map((x) => x.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), ee();
|
4820
4855
|
}, ee = () => {
|
4821
4856
|
r(7, L = b.length === S.length || b.length == 0), r(8, M = b.length);
|
4822
4857
|
}, oe = () => {
|
4823
4858
|
if (S.length && y === "true")
|
4824
4859
|
return;
|
4825
4860
|
const f = new URL(`${i}/v1/casino/vendors`);
|
4826
|
-
r(4,
|
4861
|
+
r(4, T = !1), f.searchParams.append("fields", "id,name,logo,subVendors,games"), f.searchParams.append("language", s), f.searchParams.append("datasource", o), f.searchParams.append("platform", so(H)), y === "true" || ((u.match(/\$/g) || []).length > 1 ? (f.searchParams.append("filter", `games(subGroups=${u})`), f.searchParams.append("subVendors", `games(subGroups=${u})`)) : f.searchParams.append("filter", `games(groups=${u})`)), K(f);
|
4827
4862
|
}, te = () => {
|
4828
4863
|
r(6, b = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(I = {
|
4829
4864
|
[y === "true" ? "*" : u]: b.map((f) => f.id)
|
4830
|
-
})), S.forEach((f) => f.isFilterSelected = !1), r(5, S), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4,
|
4865
|
+
})), S.forEach((f) => f.isFilterSelected = !1), r(5, S), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4, T = !1);
|
4831
4866
|
}, se = (f) => {
|
4832
|
-
f.data.type == "SortingOpened" && r(4,
|
4867
|
+
f.data.type == "SortingOpened" && r(4, T = !1);
|
4833
4868
|
};
|
4834
|
-
|
4869
|
+
Xr(() => (window.addEventListener("message", se, !1), () => {
|
4835
4870
|
window.removeEventListener("message", se);
|
4836
4871
|
}));
|
4837
4872
|
const Ae = () => j();
|
4838
|
-
function Pe(f,
|
4839
|
-
f[
|
4873
|
+
function Pe(f, d) {
|
4874
|
+
f[d].isFilterSelected = this.checked, r(5, S);
|
4840
4875
|
}
|
4841
|
-
const ae = (f) => ie(f),
|
4876
|
+
const ae = (f) => ie(f), U = () => te();
|
4842
4877
|
function J(f) {
|
4843
|
-
|
4844
|
-
|
4878
|
+
tt[f ? "unshift" : "push"](() => {
|
4879
|
+
P = f, r(3, P);
|
4845
4880
|
});
|
4846
4881
|
}
|
4847
4882
|
return e.$$set = (f) => {
|
4848
|
-
"endpoint" in f && r(15, i = f.endpoint), "datasource" in f && r(16, o = f.datasource), "lang" in f && r(17, s = f.lang), "translationurl" in f && r(18, a = f.translationurl), "clientstyling" in f && r(19, h = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, u = f.categoryid), "addfilterselector" in f && r(0,
|
4883
|
+
"endpoint" in f && r(15, i = f.endpoint), "datasource" in f && r(16, o = f.datasource), "lang" in f && r(17, s = f.lang), "translationurl" in f && r(18, a = f.translationurl), "clientstyling" in f && r(19, h = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, u = f.categoryid), "addfilterselector" in f && r(0, p = f.addfilterselector), "addsortingselector" in f && r(1, c = f.addsortingselector), "filterbylogo" in f && r(2, m = f.filterbylogo), "mbsource" in f && r(22, v = f.mbsource), "usesinglevendorfilter" in f && r(23, y = f.usesinglevendorfilter);
|
4849
4884
|
}, e.$$.update = () => {
|
4850
4885
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4851
4886
|
2195460 && i && o && u && m && oe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4852
|
-
524296 && h &&
|
4853
|
-
1048584 && l &&
|
4854
|
-
4194312 &&
|
4855
|
-
262144 && a &&
|
4887
|
+
524296 && h && P && ao(P, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4888
|
+
1048584 && l && P && lo(P, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4889
|
+
4194312 && P && uo(P, `${v}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4890
|
+
262144 && a && z();
|
4856
4891
|
}, [
|
4857
|
-
|
4892
|
+
p,
|
4858
4893
|
c,
|
4859
4894
|
m,
|
4860
|
-
|
4861
|
-
|
4895
|
+
P,
|
4896
|
+
T,
|
4862
4897
|
S,
|
4863
4898
|
b,
|
4864
4899
|
L,
|
4865
4900
|
M,
|
4866
|
-
|
4901
|
+
A,
|
4867
4902
|
N,
|
4868
4903
|
n,
|
4869
4904
|
j,
|
@@ -4881,18 +4916,18 @@ function bo(e, t, r) {
|
|
4881
4916
|
Ae,
|
4882
4917
|
Pe,
|
4883
4918
|
ae,
|
4884
|
-
|
4919
|
+
U,
|
4885
4920
|
J
|
4886
4921
|
];
|
4887
4922
|
}
|
4888
|
-
class
|
4923
|
+
class Nr extends en {
|
4889
4924
|
constructor(t) {
|
4890
|
-
super(),
|
4925
|
+
super(), Yr(
|
4891
4926
|
this,
|
4892
4927
|
t,
|
4893
|
-
|
4894
|
-
|
4895
|
-
|
4928
|
+
_o,
|
4929
|
+
vo,
|
4930
|
+
Yt,
|
4896
4931
|
{
|
4897
4932
|
endpoint: 15,
|
4898
4933
|
datasource: 16,
|
@@ -4907,7 +4942,7 @@ class Cr extends Qr {
|
|
4907
4942
|
mbsource: 22,
|
4908
4943
|
usesinglevendorfilter: 23
|
4909
4944
|
},
|
4910
|
-
|
4945
|
+
co,
|
4911
4946
|
[-1, -1]
|
4912
4947
|
);
|
4913
4948
|
}
|
@@ -4915,121 +4950,121 @@ class Cr extends Qr {
|
|
4915
4950
|
return this.$$.ctx[15];
|
4916
4951
|
}
|
4917
4952
|
set endpoint(t) {
|
4918
|
-
this.$$set({ endpoint: t }),
|
4953
|
+
this.$$set({ endpoint: t }), $();
|
4919
4954
|
}
|
4920
4955
|
get datasource() {
|
4921
4956
|
return this.$$.ctx[16];
|
4922
4957
|
}
|
4923
4958
|
set datasource(t) {
|
4924
|
-
this.$$set({ datasource: t }),
|
4959
|
+
this.$$set({ datasource: t }), $();
|
4925
4960
|
}
|
4926
4961
|
get lang() {
|
4927
4962
|
return this.$$.ctx[17];
|
4928
4963
|
}
|
4929
4964
|
set lang(t) {
|
4930
|
-
this.$$set({ lang: t }),
|
4965
|
+
this.$$set({ lang: t }), $();
|
4931
4966
|
}
|
4932
4967
|
get translationurl() {
|
4933
4968
|
return this.$$.ctx[18];
|
4934
4969
|
}
|
4935
4970
|
set translationurl(t) {
|
4936
|
-
this.$$set({ translationurl: t }),
|
4971
|
+
this.$$set({ translationurl: t }), $();
|
4937
4972
|
}
|
4938
4973
|
get clientstyling() {
|
4939
4974
|
return this.$$.ctx[19];
|
4940
4975
|
}
|
4941
4976
|
set clientstyling(t) {
|
4942
|
-
this.$$set({ clientstyling: t }),
|
4977
|
+
this.$$set({ clientstyling: t }), $();
|
4943
4978
|
}
|
4944
4979
|
get clientstylingurl() {
|
4945
4980
|
return this.$$.ctx[20];
|
4946
4981
|
}
|
4947
4982
|
set clientstylingurl(t) {
|
4948
|
-
this.$$set({ clientstylingurl: t }),
|
4983
|
+
this.$$set({ clientstylingurl: t }), $();
|
4949
4984
|
}
|
4950
4985
|
get categoryid() {
|
4951
4986
|
return this.$$.ctx[21];
|
4952
4987
|
}
|
4953
4988
|
set categoryid(t) {
|
4954
|
-
this.$$set({ categoryid: t }),
|
4989
|
+
this.$$set({ categoryid: t }), $();
|
4955
4990
|
}
|
4956
4991
|
get addfilterselector() {
|
4957
4992
|
return this.$$.ctx[0];
|
4958
4993
|
}
|
4959
4994
|
set addfilterselector(t) {
|
4960
|
-
this.$$set({ addfilterselector: t }),
|
4995
|
+
this.$$set({ addfilterselector: t }), $();
|
4961
4996
|
}
|
4962
4997
|
get addsortingselector() {
|
4963
4998
|
return this.$$.ctx[1];
|
4964
4999
|
}
|
4965
5000
|
set addsortingselector(t) {
|
4966
|
-
this.$$set({ addsortingselector: t }),
|
5001
|
+
this.$$set({ addsortingselector: t }), $();
|
4967
5002
|
}
|
4968
5003
|
get filterbylogo() {
|
4969
5004
|
return this.$$.ctx[2];
|
4970
5005
|
}
|
4971
5006
|
set filterbylogo(t) {
|
4972
|
-
this.$$set({ filterbylogo: t }),
|
5007
|
+
this.$$set({ filterbylogo: t }), $();
|
4973
5008
|
}
|
4974
5009
|
get mbsource() {
|
4975
5010
|
return this.$$.ctx[22];
|
4976
5011
|
}
|
4977
5012
|
set mbsource(t) {
|
4978
|
-
this.$$set({ mbsource: t }),
|
5013
|
+
this.$$set({ mbsource: t }), $();
|
4979
5014
|
}
|
4980
5015
|
get usesinglevendorfilter() {
|
4981
5016
|
return this.$$.ctx[23];
|
4982
5017
|
}
|
4983
5018
|
set usesinglevendorfilter(t) {
|
4984
|
-
this.$$set({ usesinglevendorfilter: t }),
|
5019
|
+
this.$$set({ usesinglevendorfilter: t }), $();
|
4985
5020
|
}
|
4986
5021
|
}
|
4987
|
-
|
4988
|
-
const
|
5022
|
+
Kr(Nr, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {}, usesinglevendorfilter: {} }, [], [], !0);
|
5023
|
+
const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4989
5024
|
__proto__: null,
|
4990
|
-
default:
|
5025
|
+
default: Nr
|
4991
5026
|
}, Symbol.toStringTag, { value: "Module" }));
|
4992
5027
|
export {
|
4993
5028
|
re as $,
|
4994
|
-
|
4995
|
-
|
4996
|
-
|
4997
|
-
|
4998
|
-
|
4999
|
-
|
5000
|
-
|
5001
|
-
|
5002
|
-
|
5003
|
-
|
5004
|
-
|
5005
|
-
|
5006
|
-
|
5007
|
-
|
5008
|
-
|
5009
|
-
|
5010
|
-
|
5011
|
-
|
5012
|
-
|
5013
|
-
|
5014
|
-
|
5015
|
-
|
5016
|
-
|
5017
|
-
|
5018
|
-
|
5019
|
-
|
5020
|
-
|
5021
|
-
|
5022
|
-
|
5023
|
-
|
5024
|
-
|
5025
|
-
|
5026
|
-
|
5027
|
-
|
5028
|
-
|
5029
|
-
|
5030
|
-
|
5031
|
-
|
5032
|
-
|
5033
|
-
|
5034
|
-
|
5029
|
+
Ho as A,
|
5030
|
+
xe as B,
|
5031
|
+
ao as C,
|
5032
|
+
lo as D,
|
5033
|
+
uo as E,
|
5034
|
+
Kr as F,
|
5035
|
+
io as G,
|
5036
|
+
So as H,
|
5037
|
+
To as I,
|
5038
|
+
Bo as J,
|
5039
|
+
Po as K,
|
5040
|
+
Ao as L,
|
5041
|
+
ye as M,
|
5042
|
+
Fo as N,
|
5043
|
+
en as S,
|
5044
|
+
Fr as a,
|
5045
|
+
Ur as b,
|
5046
|
+
wt as c,
|
5047
|
+
k as d,
|
5048
|
+
Eo as e,
|
5049
|
+
$ as f,
|
5050
|
+
q as g,
|
5051
|
+
g as h,
|
5052
|
+
Yr as i,
|
5053
|
+
W as j,
|
5054
|
+
_ as k,
|
5055
|
+
B as l,
|
5056
|
+
V as m,
|
5057
|
+
G as n,
|
5058
|
+
D as o,
|
5059
|
+
$r as p,
|
5060
|
+
Xr as q,
|
5061
|
+
Re as r,
|
5062
|
+
Yt as s,
|
5063
|
+
wo as t,
|
5064
|
+
xo as u,
|
5065
|
+
oo as v,
|
5066
|
+
so as w,
|
5067
|
+
tt as x,
|
5068
|
+
Ht as y,
|
5069
|
+
kr as z
|
5035
5070
|
};
|