@everymatrix/casino-last-played-section 1.55.0 → 1.56.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-BAdLTnAD.cjs +5 -0
- package/components/{CasinoFilter-D9GxWv_2.js → CasinoFilter-fbj0IAUu.js} +960 -982
- package/components/{CasinoFilter-CcGaG3ex.js → CasinoFilter-whrvW_Wr.js} +994 -1016
- package/components/{CasinoGameThumbnail-O5kps24w.js → CasinoGameThumbnail-ByOsKdAz.js} +569 -553
- package/components/CasinoGameThumbnail-CC4Sp_8e.cjs +47 -0
- package/components/{CasinoGameThumbnail-C_pO1yTw.js → CasinoGameThumbnail-DDm68IkO.js} +1116 -1132
- package/components/{CasinoGamesCategorySection-D45-SyaF.js → CasinoGamesCategorySection-BRqdWRg5.js} +1081 -1117
- package/components/{CasinoGamesCategorySection-aoiRWaqn.js → CasinoGamesCategorySection-CrUw-cLw.js} +620 -656
- package/components/CasinoGamesCategorySection-vJ4GHywW.cjs +1 -0
- package/components/{CasinoLastPlayedSection-DHAu6h0I.js → CasinoLastPlayedSection-D4dTjl7E.js} +37 -37
- package/components/CasinoLastPlayedSection-DlJKCpxK.cjs +1 -0
- package/components/{CasinoLastPlayedSection-DgfWeGK3.js → CasinoLastPlayedSection-WecykxfL.js} +29 -29
- package/components/CasinoSort-CkG6j04g.js +427 -0
- package/components/CasinoSort-DipisPF3.cjs +1 -0
- package/components/CasinoSort-Pgz0Acwm.js +428 -0
- 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/components/CasinoFilter-CJJQfG-H.cjs +0 -5
- package/components/CasinoGameThumbnail-B5F2b_gj.cjs +0 -47
- package/components/CasinoGamesCategorySection-gkpB3kQF.cjs +0 -1
- package/components/CasinoLastPlayedSection-C7GG9KpG.cjs +0 -1
- package/components/CasinoSort-B6oacblG.js +0 -428
- package/components/CasinoSort-BpcWn3OF.cjs +0 -1
- package/components/CasinoSort-xzzdKSv3.js +0 -427
@@ -1,50 +1,50 @@
|
|
1
|
-
function
|
1
|
+
function k() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Xt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function bt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function Y(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(Xt);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function dt(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Wt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
let
|
19
|
-
function
|
20
|
-
return e === t ? !0 : (
|
18
|
+
let Fe;
|
19
|
+
function gt(e, t) {
|
20
|
+
return e === t ? !0 : (Fe || (Fe = document.createElement("a")), Fe.href = t, e === Fe.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Fr(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function zt(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
29
|
-
return
|
29
|
+
return k;
|
30
30
|
}
|
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 Cr(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(zt(t, r));
|
36
36
|
}
|
37
37
|
function _(e, t) {
|
38
38
|
e.appendChild(t);
|
39
39
|
}
|
40
|
-
function
|
41
|
-
const n =
|
40
|
+
function Br(e, t, r) {
|
41
|
+
const n = Or(e);
|
42
42
|
if (!n.getElementById(t)) {
|
43
|
-
const i =
|
44
|
-
i.id = t, i.textContent = r,
|
43
|
+
const i = F("style");
|
44
|
+
i.id = t, i.textContent = r, Ir(n, i);
|
45
45
|
}
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function Or(e) {
|
48
48
|
if (!e) return document;
|
49
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
50
50
|
return t && /** @type {ShadowRoot} */
|
@@ -53,62 +53,62 @@ function Rr(e) {
|
|
53
53
|
t
|
54
54
|
) : e.ownerDocument;
|
55
55
|
}
|
56
|
-
function
|
56
|
+
function Ir(e, t) {
|
57
57
|
return _(
|
58
58
|
/** @type {Document} */
|
59
59
|
e.head || e,
|
60
60
|
t
|
61
61
|
), t.sheet;
|
62
62
|
}
|
63
|
-
function
|
63
|
+
function W(e, t, r) {
|
64
64
|
e.insertBefore(t, r || null);
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function j(e) {
|
67
67
|
e.parentNode && e.parentNode.removeChild(e);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Lr(e, t) {
|
70
70
|
for (let r = 0; r < e.length; r += 1)
|
71
71
|
e[r] && e[r].d(t);
|
72
72
|
}
|
73
|
-
function
|
73
|
+
function F(e) {
|
74
74
|
return document.createElement(e);
|
75
75
|
}
|
76
76
|
function Ee(e) {
|
77
77
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
78
78
|
}
|
79
|
-
function
|
79
|
+
function G(e) {
|
80
80
|
return document.createTextNode(e);
|
81
81
|
}
|
82
|
-
function
|
83
|
-
return
|
82
|
+
function X() {
|
83
|
+
return G(" ");
|
84
84
|
}
|
85
|
-
function
|
86
|
-
return
|
85
|
+
function po() {
|
86
|
+
return G("");
|
87
87
|
}
|
88
|
-
function
|
88
|
+
function Me(e, t, r, n) {
|
89
89
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function m(e, t, r) {
|
92
92
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
93
93
|
}
|
94
|
-
function
|
94
|
+
function mo(e, t, r) {
|
95
95
|
const n = t.toLowerCase();
|
96
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
96
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : m(e, t, r);
|
97
97
|
}
|
98
|
-
function
|
98
|
+
function Nr(e) {
|
99
99
|
return Array.from(e.childNodes);
|
100
100
|
}
|
101
101
|
function q(e, t) {
|
102
102
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
103
103
|
t);
|
104
104
|
}
|
105
|
-
function
|
105
|
+
function vt(e, t) {
|
106
106
|
e.value = t ?? "";
|
107
107
|
}
|
108
|
-
function
|
108
|
+
function bo(e, t, r) {
|
109
109
|
e.classList.toggle(t, !!r);
|
110
110
|
}
|
111
|
-
class
|
111
|
+
class go {
|
112
112
|
/**
|
113
113
|
* @private
|
114
114
|
* @default false
|
@@ -142,7 +142,7 @@ class xo {
|
|
142
142
|
this.e || (this.is_svg ? this.e = Ee(
|
143
143
|
/** @type {keyof SVGElementTagNameMap} */
|
144
144
|
r.nodeName
|
145
|
-
) : this.e =
|
145
|
+
) : this.e = F(
|
146
146
|
/** @type {keyof HTMLElementTagNameMap} */
|
147
147
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
148
148
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
@@ -163,7 +163,7 @@ class xo {
|
|
163
163
|
* @returns {void} */
|
164
164
|
i(t) {
|
165
165
|
for (let r = 0; r < this.n.length; r += 1)
|
166
|
-
|
166
|
+
W(this.t, this.n[r], t);
|
167
167
|
}
|
168
168
|
/**
|
169
169
|
* @param {string} html
|
@@ -175,10 +175,10 @@ class xo {
|
|
175
175
|
/**
|
176
176
|
* @returns {void} */
|
177
177
|
d() {
|
178
|
-
this.n.forEach(
|
178
|
+
this.n.forEach(j);
|
179
179
|
}
|
180
180
|
}
|
181
|
-
function
|
181
|
+
function Mr(e) {
|
182
182
|
const t = {};
|
183
183
|
return e.childNodes.forEach(
|
184
184
|
/** @param {Element} node */
|
@@ -191,113 +191,113 @@ let Se;
|
|
191
191
|
function we(e) {
|
192
192
|
Se = e;
|
193
193
|
}
|
194
|
-
function
|
194
|
+
function Rr() {
|
195
195
|
if (!Se) throw new Error("Function called outside component initialization");
|
196
196
|
return Se;
|
197
197
|
}
|
198
|
-
function
|
199
|
-
|
198
|
+
function Dr(e) {
|
199
|
+
Rr().$$.on_mount.push(e);
|
200
200
|
}
|
201
|
-
const
|
202
|
-
let
|
203
|
-
const
|
204
|
-
let
|
205
|
-
function
|
206
|
-
|
201
|
+
const he = [], qe = [];
|
202
|
+
let ce = [];
|
203
|
+
const yt = [], Zt = /* @__PURE__ */ Promise.resolve();
|
204
|
+
let Ye = !1;
|
205
|
+
function Jt() {
|
206
|
+
Ye || (Ye = !0, Zt.then(U));
|
207
207
|
}
|
208
|
-
function
|
209
|
-
return
|
208
|
+
function vo() {
|
209
|
+
return Jt(), Zt;
|
210
210
|
}
|
211
|
-
function
|
212
|
-
|
211
|
+
function Ke(e) {
|
212
|
+
ce.push(e);
|
213
213
|
}
|
214
|
-
const
|
215
|
-
let
|
216
|
-
function
|
217
|
-
if (
|
214
|
+
const Ve = /* @__PURE__ */ new Set();
|
215
|
+
let le = 0;
|
216
|
+
function U() {
|
217
|
+
if (le !== 0)
|
218
218
|
return;
|
219
219
|
const e = Se;
|
220
220
|
do {
|
221
221
|
try {
|
222
|
-
for (;
|
223
|
-
const t =
|
224
|
-
|
222
|
+
for (; le < he.length; ) {
|
223
|
+
const t = he[le];
|
224
|
+
le++, we(t), Ur(t.$$);
|
225
225
|
}
|
226
226
|
} catch (t) {
|
227
|
-
throw
|
227
|
+
throw he.length = 0, le = 0, t;
|
228
228
|
}
|
229
|
-
for (we(null),
|
230
|
-
for (let t = 0; t <
|
231
|
-
const r =
|
232
|
-
|
229
|
+
for (we(null), he.length = 0, le = 0; qe.length; ) qe.pop()();
|
230
|
+
for (let t = 0; t < ce.length; t += 1) {
|
231
|
+
const r = ce[t];
|
232
|
+
Ve.has(r) || (Ve.add(r), r());
|
233
233
|
}
|
234
|
-
|
235
|
-
} while (
|
236
|
-
for (;
|
237
|
-
|
238
|
-
|
234
|
+
ce.length = 0;
|
235
|
+
} while (he.length);
|
236
|
+
for (; yt.length; )
|
237
|
+
yt.pop()();
|
238
|
+
Ye = !1, Ve.clear(), we(e);
|
239
239
|
}
|
240
|
-
function
|
240
|
+
function Ur(e) {
|
241
241
|
if (e.fragment !== null) {
|
242
242
|
e.update(), Y(e.before_update);
|
243
243
|
const t = e.dirty;
|
244
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
244
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
|
245
245
|
}
|
246
246
|
}
|
247
|
-
function
|
247
|
+
function $r(e) {
|
248
248
|
const t = [], r = [];
|
249
|
-
|
249
|
+
ce.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ce = t;
|
250
250
|
}
|
251
|
-
const
|
252
|
-
function
|
253
|
-
e && e.i && (
|
251
|
+
const Gr = /* @__PURE__ */ new Set();
|
252
|
+
function Qt(e, t) {
|
253
|
+
e && e.i && (Gr.delete(e), e.i(t));
|
254
254
|
}
|
255
|
-
function
|
255
|
+
function _t(e) {
|
256
256
|
return e?.length !== void 0 ? e : Array.from(e);
|
257
257
|
}
|
258
|
-
function
|
258
|
+
function yo(e, t) {
|
259
259
|
e.d(1), t.delete(e.key);
|
260
260
|
}
|
261
|
-
function
|
262
|
-
let c = e.length,
|
261
|
+
function _o(e, t, r, n, i, o, s, a, h, l, u, f) {
|
262
|
+
let c = e.length, p = o.length, v = c;
|
263
263
|
const g = {};
|
264
|
-
for (;
|
265
|
-
const
|
266
|
-
for (
|
267
|
-
const S =
|
268
|
-
let
|
269
|
-
|
264
|
+
for (; v--; ) g[e[v].key] = v;
|
265
|
+
const P = [], w = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), x = [];
|
266
|
+
for (v = p; v--; ) {
|
267
|
+
const S = f(i, o, v), O = r(S);
|
268
|
+
let M = s.get(O);
|
269
|
+
M ? x.push(() => M.p(S, t)) : (M = l(O, S), M.c()), w.set(O, P[v] = M), O in g && y.set(O, Math.abs(v - g[O]));
|
270
270
|
}
|
271
|
-
const
|
272
|
-
function
|
273
|
-
|
271
|
+
const L = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
|
272
|
+
function R(S) {
|
273
|
+
Qt(S, 1), S.m(a, u), s.set(S.key, S), u = S.first, p--;
|
274
274
|
}
|
275
|
-
for (; c &&
|
276
|
-
const S =
|
277
|
-
S ===
|
275
|
+
for (; c && p; ) {
|
276
|
+
const S = P[p - 1], O = e[c - 1], M = S.key, V = O.key;
|
277
|
+
S === O ? (u = S.first, c--, p--) : w.has(V) ? !s.has(M) || L.has(M) ? R(S) : N.has(V) ? c-- : y.get(M) > y.get(V) ? (N.add(M), R(S)) : (L.add(V), c--) : (h(O, s), c--);
|
278
278
|
}
|
279
279
|
for (; c--; ) {
|
280
280
|
const S = e[c];
|
281
281
|
w.has(S.key) || h(S, s);
|
282
282
|
}
|
283
|
-
for (;
|
284
|
-
return Y(x),
|
283
|
+
for (; p; ) R(P[p - 1]);
|
284
|
+
return Y(x), P;
|
285
285
|
}
|
286
|
-
function
|
286
|
+
function kr(e, t, r) {
|
287
287
|
const { fragment: n, after_update: i } = e.$$;
|
288
|
-
n && n.m(t, r),
|
289
|
-
const o = e.$$.on_mount.map(
|
288
|
+
n && n.m(t, r), Ke(() => {
|
289
|
+
const o = e.$$.on_mount.map(Xt).filter(dt);
|
290
290
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
|
291
|
-
}), i.forEach(
|
291
|
+
}), i.forEach(Ke);
|
292
292
|
}
|
293
|
-
function
|
293
|
+
function jr(e, t) {
|
294
294
|
const r = e.$$;
|
295
|
-
r.fragment !== null && (
|
295
|
+
r.fragment !== null && ($r(r.after_update), Y(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
296
296
|
}
|
297
|
-
function
|
298
|
-
e.$$.dirty[0] === -1 && (
|
297
|
+
function Vr(e, t) {
|
298
|
+
e.$$.dirty[0] === -1 && (he.push(e), Jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
299
299
|
}
|
300
|
-
function
|
300
|
+
function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
301
301
|
const h = Se;
|
302
302
|
we(e);
|
303
303
|
const l = e.$$ = {
|
@@ -305,9 +305,9 @@ function Qr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
305
305
|
ctx: [],
|
306
306
|
// state
|
307
307
|
props: o,
|
308
|
-
update:
|
308
|
+
update: k,
|
309
309
|
not_equal: i,
|
310
|
-
bound:
|
310
|
+
bound: bt(),
|
311
311
|
// lifecycle
|
312
312
|
on_mount: [],
|
313
313
|
on_destroy: [],
|
@@ -316,28 +316,28 @@ function Qr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
316
316
|
after_update: [],
|
317
317
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
318
318
|
// everything else
|
319
|
-
callbacks:
|
319
|
+
callbacks: bt(),
|
320
320
|
dirty: a,
|
321
321
|
skip_bound: !1,
|
322
322
|
root: t.target || h.$$.root
|
323
323
|
};
|
324
324
|
s && s(l.root);
|
325
325
|
let u = !1;
|
326
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
327
|
-
const
|
328
|
-
return l.ctx && i(l.ctx[
|
326
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
327
|
+
const v = p.length ? p[0] : c;
|
328
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = v) && (!l.skip_bound && l.bound[f] && l.bound[f](v), u && Vr(e, f)), c;
|
329
329
|
}) : [], l.update(), u = !0, Y(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
330
330
|
if (t.hydrate) {
|
331
|
-
const
|
332
|
-
l.fragment && l.fragment.l(
|
331
|
+
const f = Nr(t.target);
|
332
|
+
l.fragment && l.fragment.l(f), f.forEach(j);
|
333
333
|
} else
|
334
334
|
l.fragment && l.fragment.c();
|
335
|
-
t.intro &&
|
335
|
+
t.intro && Qt(e.$$.fragment), kr(e, t.target, t.anchor), U();
|
336
336
|
}
|
337
337
|
we(h);
|
338
338
|
}
|
339
|
-
let
|
340
|
-
typeof HTMLElement == "function" && (
|
339
|
+
let qt;
|
340
|
+
typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
341
341
|
/** The Svelte component constructor */
|
342
342
|
$$ctor;
|
343
343
|
/** Slots */
|
@@ -379,24 +379,24 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
379
379
|
let o;
|
380
380
|
return {
|
381
381
|
c: function() {
|
382
|
-
o =
|
382
|
+
o = F("slot"), i !== "default" && m(o, "name", i);
|
383
383
|
},
|
384
384
|
/**
|
385
385
|
* @param {HTMLElement} target
|
386
386
|
* @param {HTMLElement} [anchor]
|
387
387
|
*/
|
388
388
|
m: function(h, l) {
|
389
|
-
|
389
|
+
W(h, o, l);
|
390
390
|
},
|
391
391
|
d: function(h) {
|
392
|
-
h &&
|
392
|
+
h && j(o);
|
393
393
|
}
|
394
394
|
};
|
395
395
|
};
|
396
396
|
};
|
397
397
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
398
398
|
return;
|
399
|
-
const t = {}, r =
|
399
|
+
const t = {}, r = Mr(this);
|
400
400
|
for (const i of this.$$s)
|
401
401
|
i in r && (t[i] = [e(i)]);
|
402
402
|
for (const i of this.attributes) {
|
@@ -483,8 +483,8 @@ function Oe(e, t, r, n) {
|
|
483
483
|
return t;
|
484
484
|
}
|
485
485
|
}
|
486
|
-
function
|
487
|
-
let s = class extends
|
486
|
+
function Wr(e, t, r, n, i, o) {
|
487
|
+
let s = class extends qt {
|
488
488
|
constructor() {
|
489
489
|
super(e, r, i), this.$$p_d = t;
|
490
490
|
}
|
@@ -512,7 +512,7 @@ function qr(e, t, r, n, i, o) {
|
|
512
512
|
}), e.element = /** @type {any} */
|
513
513
|
s, s;
|
514
514
|
}
|
515
|
-
class
|
515
|
+
class zr {
|
516
516
|
/**
|
517
517
|
* ### PRIVATE API
|
518
518
|
*
|
@@ -531,7 +531,7 @@ class Yr {
|
|
531
531
|
$$set = void 0;
|
532
532
|
/** @returns {void} */
|
533
533
|
$destroy() {
|
534
|
-
|
534
|
+
jr(this, 1), this.$destroy = k;
|
535
535
|
}
|
536
536
|
/**
|
537
537
|
* @template {Extract<keyof Events, string>} K
|
@@ -540,8 +540,8 @@ class Yr {
|
|
540
540
|
* @returns {() => void}
|
541
541
|
*/
|
542
542
|
$on(t, r) {
|
543
|
-
if (!
|
544
|
-
return
|
543
|
+
if (!dt(r))
|
544
|
+
return k;
|
545
545
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
546
546
|
return n.push(r), () => {
|
547
547
|
const i = n.indexOf(r);
|
@@ -553,37 +553,37 @@ class Yr {
|
|
553
553
|
* @returns {void}
|
554
554
|
*/
|
555
555
|
$set(t) {
|
556
|
-
this.$$set && !
|
556
|
+
this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
557
557
|
}
|
558
558
|
}
|
559
|
-
const
|
560
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
561
|
-
var
|
562
|
-
return
|
559
|
+
const Zr = "4";
|
560
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
|
561
|
+
var et = function(e, t) {
|
562
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
563
563
|
r.__proto__ = n;
|
564
564
|
} || function(r, n) {
|
565
565
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
566
|
-
},
|
566
|
+
}, et(e, t);
|
567
567
|
};
|
568
|
-
function
|
568
|
+
function J(e, t) {
|
569
569
|
if (typeof t != "function" && t !== null)
|
570
570
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
571
|
-
|
571
|
+
et(e, t);
|
572
572
|
function r() {
|
573
573
|
this.constructor = e;
|
574
574
|
}
|
575
575
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
576
576
|
}
|
577
|
-
var
|
578
|
-
return
|
577
|
+
var A = function() {
|
578
|
+
return A = Object.assign || function(t) {
|
579
579
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
580
580
|
r = arguments[n];
|
581
581
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
582
582
|
}
|
583
583
|
return t;
|
584
|
-
},
|
584
|
+
}, A.apply(this, arguments);
|
585
585
|
};
|
586
|
-
function
|
586
|
+
function Jr(e, t) {
|
587
587
|
var r = {};
|
588
588
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
589
589
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -591,7 +591,7 @@ function en(e, t) {
|
|
591
591
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
592
592
|
return r;
|
593
593
|
}
|
594
|
-
function
|
594
|
+
function tt(e) {
|
595
595
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
596
596
|
if (r) return r.call(e);
|
597
597
|
if (e && typeof e.length == "number") return {
|
@@ -601,7 +601,7 @@ function nt(e) {
|
|
601
601
|
};
|
602
602
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
603
603
|
}
|
604
|
-
function
|
604
|
+
function rt(e, t) {
|
605
605
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
606
606
|
if (!r) return e;
|
607
607
|
var n = r.call(e), i, o = [], s;
|
@@ -618,21 +618,21 @@ function it(e, t) {
|
|
618
618
|
}
|
619
619
|
return o;
|
620
620
|
}
|
621
|
-
function
|
621
|
+
function fe(e, t, r) {
|
622
622
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
623
623
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
624
624
|
return e.concat(o || Array.prototype.slice.call(t));
|
625
625
|
}
|
626
|
-
function
|
626
|
+
function Z(e) {
|
627
627
|
return typeof e == "function";
|
628
628
|
}
|
629
|
-
function
|
629
|
+
function Yt(e) {
|
630
630
|
var t = function(n) {
|
631
631
|
Error.call(n), n.stack = new Error().stack;
|
632
632
|
}, r = e(t);
|
633
633
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
634
634
|
}
|
635
|
-
var
|
635
|
+
var Xe = Yt(function(e) {
|
636
636
|
return function(r) {
|
637
637
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
638
638
|
` + r.map(function(n, i) {
|
@@ -641,13 +641,13 @@ var We = rr(function(e) {
|
|
641
641
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
642
642
|
};
|
643
643
|
});
|
644
|
-
function
|
644
|
+
function nt(e, t) {
|
645
645
|
if (e) {
|
646
646
|
var r = e.indexOf(t);
|
647
647
|
0 <= r && e.splice(r, 1);
|
648
648
|
}
|
649
649
|
}
|
650
|
-
var
|
650
|
+
var Ue = function() {
|
651
651
|
function e(t) {
|
652
652
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
653
653
|
}
|
@@ -659,7 +659,7 @@ var $e = function() {
|
|
659
659
|
if (s)
|
660
660
|
if (this._parentage = null, Array.isArray(s))
|
661
661
|
try {
|
662
|
-
for (var a =
|
662
|
+
for (var a = tt(s), h = a.next(); !h.done; h = a.next()) {
|
663
663
|
var l = h.value;
|
664
664
|
l.remove(this);
|
665
665
|
}
|
@@ -675,42 +675,42 @@ var $e = function() {
|
|
675
675
|
else
|
676
676
|
s.remove(this);
|
677
677
|
var u = this.initialTeardown;
|
678
|
-
if (
|
678
|
+
if (Z(u))
|
679
679
|
try {
|
680
680
|
u();
|
681
681
|
} catch (g) {
|
682
|
-
o = g instanceof
|
682
|
+
o = g instanceof Xe ? g.errors : [g];
|
683
683
|
}
|
684
|
-
var
|
685
|
-
if (
|
684
|
+
var f = this._finalizers;
|
685
|
+
if (f) {
|
686
686
|
this._finalizers = null;
|
687
687
|
try {
|
688
|
-
for (var c =
|
689
|
-
var
|
688
|
+
for (var c = tt(f), p = c.next(); !p.done; p = c.next()) {
|
689
|
+
var v = p.value;
|
690
690
|
try {
|
691
|
-
|
691
|
+
xt(v);
|
692
692
|
} catch (g) {
|
693
|
-
o = o ?? [], g instanceof
|
693
|
+
o = o ?? [], g instanceof Xe ? o = fe(fe([], rt(o)), rt(g.errors)) : o.push(g);
|
694
694
|
}
|
695
695
|
}
|
696
696
|
} catch (g) {
|
697
697
|
n = { error: g };
|
698
698
|
} finally {
|
699
699
|
try {
|
700
|
-
|
700
|
+
p && !p.done && (i = c.return) && i.call(c);
|
701
701
|
} finally {
|
702
702
|
if (n) throw n.error;
|
703
703
|
}
|
704
704
|
}
|
705
705
|
}
|
706
706
|
if (o)
|
707
|
-
throw new
|
707
|
+
throw new Xe(o);
|
708
708
|
}
|
709
709
|
}, e.prototype.add = function(t) {
|
710
710
|
var r;
|
711
711
|
if (t && t !== this)
|
712
712
|
if (this.closed)
|
713
|
-
|
713
|
+
xt(t);
|
714
714
|
else {
|
715
715
|
if (t instanceof e) {
|
716
716
|
if (t.closed || t._hasParent(this))
|
@@ -727,56 +727,52 @@ var $e = function() {
|
|
727
727
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
728
728
|
}, e.prototype._removeParent = function(t) {
|
729
729
|
var r = this._parentage;
|
730
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
730
|
+
r === t ? this._parentage = null : Array.isArray(r) && nt(r, t);
|
731
731
|
}, e.prototype.remove = function(t) {
|
732
732
|
var r = this._finalizers;
|
733
|
-
r &&
|
733
|
+
r && nt(r, t), t instanceof e && t._removeParent(this);
|
734
734
|
}, e.EMPTY = function() {
|
735
735
|
var t = new e();
|
736
736
|
return t.closed = !0, t;
|
737
737
|
}(), e;
|
738
|
-
}(),
|
739
|
-
function
|
740
|
-
return e instanceof
|
741
|
-
}
|
742
|
-
function
|
743
|
-
|
744
|
-
}
|
745
|
-
var
|
746
|
-
|
747
|
-
|
748
|
-
Promise: void 0,
|
749
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
750
|
-
useDeprecatedNextContext: !1
|
751
|
-
}, tn = {
|
738
|
+
}(), Kt = Ue.EMPTY;
|
739
|
+
function er(e) {
|
740
|
+
return e instanceof Ue || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
741
|
+
}
|
742
|
+
function xt(e) {
|
743
|
+
Z(e) ? e() : e.unsubscribe();
|
744
|
+
}
|
745
|
+
var Qr = {
|
746
|
+
Promise: void 0
|
747
|
+
}, qr = {
|
752
748
|
setTimeout: function(e, t) {
|
753
749
|
for (var r = [], n = 2; n < arguments.length; n++)
|
754
750
|
r[n - 2] = arguments[n];
|
755
|
-
return setTimeout.apply(void 0,
|
751
|
+
return setTimeout.apply(void 0, fe([e, t], rt(r)));
|
756
752
|
},
|
757
753
|
clearTimeout: function(e) {
|
758
754
|
return clearTimeout(e);
|
759
755
|
},
|
760
756
|
delegate: void 0
|
761
757
|
};
|
762
|
-
function
|
763
|
-
|
758
|
+
function Yr(e) {
|
759
|
+
qr.setTimeout(function() {
|
764
760
|
throw e;
|
765
761
|
});
|
766
762
|
}
|
767
|
-
function
|
763
|
+
function Et() {
|
768
764
|
}
|
769
|
-
function
|
765
|
+
function Ie(e) {
|
770
766
|
e();
|
771
767
|
}
|
772
|
-
var
|
773
|
-
|
768
|
+
var tr = function(e) {
|
769
|
+
J(t, e);
|
774
770
|
function t(r) {
|
775
771
|
var n = e.call(this) || this;
|
776
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
772
|
+
return n.isStopped = !1, r ? (n.destination = r, er(r) && r.add(n)) : n.destination = tn, n;
|
777
773
|
}
|
778
774
|
return t.create = function(r, n, i) {
|
779
|
-
return new
|
775
|
+
return new it(r, n, i);
|
780
776
|
}, t.prototype.next = function(r) {
|
781
777
|
this.isStopped || this._next(r);
|
782
778
|
}, t.prototype.error = function(r) {
|
@@ -800,11 +796,7 @@ var sr = function(e) {
|
|
800
796
|
this.unsubscribe();
|
801
797
|
}
|
802
798
|
}, t;
|
803
|
-
}(
|
804
|
-
function ze(e, t) {
|
805
|
-
return nn.call(e, t);
|
806
|
-
}
|
807
|
-
var on = function() {
|
799
|
+
}(Ue), Kr = function() {
|
808
800
|
function e(t) {
|
809
801
|
this.partialObserver = t;
|
810
802
|
}
|
@@ -814,7 +806,7 @@ var on = function() {
|
|
814
806
|
try {
|
815
807
|
r.next(t);
|
816
808
|
} catch (n) {
|
817
|
-
|
809
|
+
Ce(n);
|
818
810
|
}
|
819
811
|
}, e.prototype.error = function(t) {
|
820
812
|
var r = this.partialObserver;
|
@@ -822,68 +814,56 @@ var on = function() {
|
|
822
814
|
try {
|
823
815
|
r.error(t);
|
824
816
|
} catch (n) {
|
825
|
-
|
817
|
+
Ce(n);
|
826
818
|
}
|
827
819
|
else
|
828
|
-
|
820
|
+
Ce(t);
|
829
821
|
}, e.prototype.complete = function() {
|
830
822
|
var t = this.partialObserver;
|
831
823
|
if (t.complete)
|
832
824
|
try {
|
833
825
|
t.complete();
|
834
826
|
} catch (r) {
|
835
|
-
|
827
|
+
Ce(r);
|
836
828
|
}
|
837
829
|
}, e;
|
838
|
-
}(),
|
839
|
-
|
830
|
+
}(), it = function(e) {
|
831
|
+
J(t, e);
|
840
832
|
function t(r, n, i) {
|
841
833
|
var o = e.call(this) || this, s;
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
};
|
848
|
-
else {
|
849
|
-
var a;
|
850
|
-
o && or.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
851
|
-
return o.unsubscribe();
|
852
|
-
}, s = {
|
853
|
-
next: r.next && ze(r.next, a),
|
854
|
-
error: r.error && ze(r.error, a),
|
855
|
-
complete: r.complete && ze(r.complete, a)
|
856
|
-
}) : s = r;
|
857
|
-
}
|
858
|
-
return o.destination = new on(s), o;
|
834
|
+
return Z(r) || !r ? s = {
|
835
|
+
next: r ?? void 0,
|
836
|
+
error: n ?? void 0,
|
837
|
+
complete: i ?? void 0
|
838
|
+
} : s = r, o.destination = new Kr(s), o;
|
859
839
|
}
|
860
840
|
return t;
|
861
|
-
}(
|
862
|
-
function
|
863
|
-
|
841
|
+
}(tr);
|
842
|
+
function Ce(e) {
|
843
|
+
Yr(e);
|
864
844
|
}
|
865
|
-
function
|
845
|
+
function en(e) {
|
866
846
|
throw e;
|
867
847
|
}
|
868
|
-
var
|
848
|
+
var tn = {
|
869
849
|
closed: !0,
|
870
|
-
next:
|
871
|
-
error:
|
872
|
-
complete:
|
873
|
-
},
|
850
|
+
next: Et,
|
851
|
+
error: en,
|
852
|
+
complete: Et
|
853
|
+
}, rn = function() {
|
874
854
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
875
855
|
}();
|
876
|
-
function
|
856
|
+
function nn(e) {
|
877
857
|
return e;
|
878
858
|
}
|
879
|
-
function
|
880
|
-
return e.length === 0 ?
|
859
|
+
function on(e) {
|
860
|
+
return e.length === 0 ? nn : e.length === 1 ? e[0] : function(r) {
|
881
861
|
return e.reduce(function(n, i) {
|
882
862
|
return i(n);
|
883
863
|
}, r);
|
884
864
|
};
|
885
865
|
}
|
886
|
-
var
|
866
|
+
var wt = function() {
|
887
867
|
function e(t) {
|
888
868
|
t && (this._subscribe = t);
|
889
869
|
}
|
@@ -891,8 +871,8 @@ var At = function() {
|
|
891
871
|
var r = new e();
|
892
872
|
return r.source = this, r.operator = t, r;
|
893
873
|
}, e.prototype.subscribe = function(t, r, n) {
|
894
|
-
var i = this, o =
|
895
|
-
return
|
874
|
+
var i = this, o = an(t) ? t : new it(t, r, n);
|
875
|
+
return Ie(function() {
|
896
876
|
var s = i, a = s.operator, h = s.source;
|
897
877
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
898
878
|
}), o;
|
@@ -904,8 +884,8 @@ var At = function() {
|
|
904
884
|
}
|
905
885
|
}, e.prototype.forEach = function(t, r) {
|
906
886
|
var n = this;
|
907
|
-
return r =
|
908
|
-
var s = new
|
887
|
+
return r = St(r), new r(function(i, o) {
|
888
|
+
var s = new it({
|
909
889
|
next: function(a) {
|
910
890
|
try {
|
911
891
|
t(a);
|
@@ -921,15 +901,15 @@ var At = function() {
|
|
921
901
|
}, e.prototype._subscribe = function(t) {
|
922
902
|
var r;
|
923
903
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
924
|
-
}, e.prototype[
|
904
|
+
}, e.prototype[rn] = function() {
|
925
905
|
return this;
|
926
906
|
}, e.prototype.pipe = function() {
|
927
907
|
for (var t = [], r = 0; r < arguments.length; r++)
|
928
908
|
t[r] = arguments[r];
|
929
|
-
return
|
909
|
+
return on(t)(this);
|
930
910
|
}, e.prototype.toPromise = function(t) {
|
931
911
|
var r = this;
|
932
|
-
return t =
|
912
|
+
return t = St(t), new t(function(n, i) {
|
933
913
|
var o;
|
934
914
|
r.subscribe(function(s) {
|
935
915
|
return o = s;
|
@@ -943,40 +923,40 @@ var At = function() {
|
|
943
923
|
return new e(t);
|
944
924
|
}, e;
|
945
925
|
}();
|
946
|
-
function
|
926
|
+
function St(e) {
|
947
927
|
var t;
|
948
|
-
return (t = e ??
|
928
|
+
return (t = e ?? Qr.Promise) !== null && t !== void 0 ? t : Promise;
|
949
929
|
}
|
950
|
-
function
|
951
|
-
return e &&
|
930
|
+
function sn(e) {
|
931
|
+
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
952
932
|
}
|
953
|
-
function
|
954
|
-
return e && e instanceof
|
933
|
+
function an(e) {
|
934
|
+
return e && e instanceof tr || sn(e) && er(e);
|
955
935
|
}
|
956
|
-
var
|
936
|
+
var ln = Yt(function(e) {
|
957
937
|
return function() {
|
958
938
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
959
939
|
};
|
960
|
-
}),
|
961
|
-
|
940
|
+
}), rr = function(e) {
|
941
|
+
J(t, e);
|
962
942
|
function t() {
|
963
943
|
var r = e.call(this) || this;
|
964
944
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
965
945
|
}
|
966
946
|
return t.prototype.lift = function(r) {
|
967
|
-
var n = new
|
947
|
+
var n = new Tt(this, this);
|
968
948
|
return n.operator = r, n;
|
969
949
|
}, t.prototype._throwIfClosed = function() {
|
970
950
|
if (this.closed)
|
971
|
-
throw new
|
951
|
+
throw new ln();
|
972
952
|
}, t.prototype.next = function(r) {
|
973
953
|
var n = this;
|
974
|
-
|
954
|
+
Ie(function() {
|
975
955
|
var i, o;
|
976
956
|
if (n._throwIfClosed(), !n.isStopped) {
|
977
957
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
978
958
|
try {
|
979
|
-
for (var s =
|
959
|
+
for (var s = tt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
980
960
|
var h = a.value;
|
981
961
|
h.next(r);
|
982
962
|
}
|
@@ -993,7 +973,7 @@ var dn = rr(function(e) {
|
|
993
973
|
});
|
994
974
|
}, t.prototype.error = function(r) {
|
995
975
|
var n = this;
|
996
|
-
|
976
|
+
Ie(function() {
|
997
977
|
if (n._throwIfClosed(), !n.isStopped) {
|
998
978
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
999
979
|
for (var i = n.observers; i.length; )
|
@@ -1002,7 +982,7 @@ var dn = rr(function(e) {
|
|
1002
982
|
});
|
1003
983
|
}, t.prototype.complete = function() {
|
1004
984
|
var r = this;
|
1005
|
-
|
985
|
+
Ie(function() {
|
1006
986
|
if (r._throwIfClosed(), !r.isStopped) {
|
1007
987
|
r.isStopped = !0;
|
1008
988
|
for (var n = r.observers; n.length; )
|
@@ -1024,20 +1004,20 @@ var dn = rr(function(e) {
|
|
1024
1004
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
1025
1005
|
}, t.prototype._innerSubscribe = function(r) {
|
1026
1006
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
1027
|
-
return o || s ?
|
1028
|
-
n.currentObservers = null,
|
1007
|
+
return o || s ? Kt : (this.currentObservers = null, a.push(r), new Ue(function() {
|
1008
|
+
n.currentObservers = null, nt(a, r);
|
1029
1009
|
}));
|
1030
1010
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
1031
1011
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
1032
1012
|
i ? r.error(o) : s && r.complete();
|
1033
1013
|
}, t.prototype.asObservable = function() {
|
1034
|
-
var r = new
|
1014
|
+
var r = new wt();
|
1035
1015
|
return r.source = this, r;
|
1036
1016
|
}, t.create = function(r, n) {
|
1037
|
-
return new
|
1017
|
+
return new Tt(r, n);
|
1038
1018
|
}, t;
|
1039
|
-
}(
|
1040
|
-
|
1019
|
+
}(wt), Tt = function(e) {
|
1020
|
+
J(t, e);
|
1041
1021
|
function t(r, n) {
|
1042
1022
|
var i = e.call(this) || this;
|
1043
1023
|
return i.destination = r, i.source = n, i;
|
@@ -1053,17 +1033,17 @@ var dn = rr(function(e) {
|
|
1053
1033
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
1054
1034
|
}, t.prototype._subscribe = function(r) {
|
1055
1035
|
var n, i;
|
1056
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1036
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Kt;
|
1057
1037
|
}, t;
|
1058
|
-
}(
|
1038
|
+
}(rr), nr = {
|
1059
1039
|
now: function() {
|
1060
|
-
return (
|
1040
|
+
return (nr.delegate || Date).now();
|
1061
1041
|
},
|
1062
1042
|
delegate: void 0
|
1063
|
-
},
|
1064
|
-
|
1043
|
+
}, un = function(e) {
|
1044
|
+
J(t, e);
|
1065
1045
|
function t(r, n, i) {
|
1066
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1046
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nr);
|
1067
1047
|
var o = e.call(this) || this;
|
1068
1048
|
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;
|
1069
1049
|
}
|
@@ -1083,65 +1063,65 @@ var dn = rr(function(e) {
|
|
1083
1063
|
l && o.splice(0, l + 1);
|
1084
1064
|
}
|
1085
1065
|
}, t;
|
1086
|
-
}(
|
1087
|
-
const
|
1088
|
-
if (
|
1089
|
-
const r = new
|
1090
|
-
|
1066
|
+
}(rr);
|
1067
|
+
const Ht = [], At = {}, hn = (e, t = 0) => {
|
1068
|
+
if (Ht.indexOf(e) == -1) {
|
1069
|
+
const r = new un(t);
|
1070
|
+
At[e] = r, Ht.push(e);
|
1091
1071
|
}
|
1092
|
-
return
|
1093
|
-
},
|
1094
|
-
function
|
1072
|
+
return At[e];
|
1073
|
+
}, ue = [];
|
1074
|
+
function cn(e, t) {
|
1095
1075
|
return {
|
1096
|
-
subscribe:
|
1076
|
+
subscribe: $e(e, t).subscribe
|
1097
1077
|
};
|
1098
1078
|
}
|
1099
|
-
function
|
1079
|
+
function $e(e, t = k) {
|
1100
1080
|
let r;
|
1101
1081
|
const n = /* @__PURE__ */ new Set();
|
1102
1082
|
function i(a) {
|
1103
|
-
if (
|
1104
|
-
const h = !
|
1083
|
+
if (Wt(e, a) && (e = a, r)) {
|
1084
|
+
const h = !ue.length;
|
1105
1085
|
for (const l of n)
|
1106
|
-
l[1](),
|
1086
|
+
l[1](), ue.push(l, e);
|
1107
1087
|
if (h) {
|
1108
|
-
for (let l = 0; l <
|
1109
|
-
|
1110
|
-
|
1088
|
+
for (let l = 0; l < ue.length; l += 2)
|
1089
|
+
ue[l][0](ue[l + 1]);
|
1090
|
+
ue.length = 0;
|
1111
1091
|
}
|
1112
1092
|
}
|
1113
1093
|
}
|
1114
1094
|
function o(a) {
|
1115
1095
|
i(a(e));
|
1116
1096
|
}
|
1117
|
-
function s(a, h =
|
1097
|
+
function s(a, h = k) {
|
1118
1098
|
const l = [a, h];
|
1119
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
1099
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || k), a(e), () => {
|
1120
1100
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
1121
1101
|
};
|
1122
1102
|
}
|
1123
1103
|
return { set: i, update: o, subscribe: s };
|
1124
1104
|
}
|
1125
|
-
function
|
1105
|
+
function ge(e, t, r) {
|
1126
1106
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1127
1107
|
if (!i.every(Boolean))
|
1128
1108
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1129
1109
|
const o = t.length < 2;
|
1130
|
-
return
|
1110
|
+
return cn(r, (s, a) => {
|
1131
1111
|
let h = !1;
|
1132
1112
|
const l = [];
|
1133
|
-
let u = 0,
|
1113
|
+
let u = 0, f = k;
|
1134
1114
|
const c = () => {
|
1135
1115
|
if (u)
|
1136
1116
|
return;
|
1137
|
-
|
1138
|
-
const
|
1139
|
-
o ? s(
|
1140
|
-
},
|
1141
|
-
(
|
1142
|
-
|
1143
|
-
(
|
1144
|
-
l[g] =
|
1117
|
+
f();
|
1118
|
+
const v = t(n ? l[0] : l, s, a);
|
1119
|
+
o ? s(v) : f = dt(v) ? v : k;
|
1120
|
+
}, p = i.map(
|
1121
|
+
(v, g) => zt(
|
1122
|
+
v,
|
1123
|
+
(P) => {
|
1124
|
+
l[g] = P, u &= ~(1 << g), h && c();
|
1145
1125
|
},
|
1146
1126
|
() => {
|
1147
1127
|
u |= 1 << g;
|
@@ -1149,134 +1129,132 @@ function ye(e, t, r) {
|
|
1149
1129
|
)
|
1150
1130
|
);
|
1151
1131
|
return h = !0, c(), function() {
|
1152
|
-
Y(
|
1132
|
+
Y(p), f(), h = !1;
|
1153
1133
|
};
|
1154
1134
|
});
|
1155
1135
|
}
|
1156
|
-
function
|
1136
|
+
function fn(e) {
|
1157
1137
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1158
1138
|
}
|
1159
|
-
var
|
1160
|
-
return
|
1139
|
+
var dn = function(t) {
|
1140
|
+
return pn(t) && !mn(t);
|
1161
1141
|
};
|
1162
|
-
function
|
1142
|
+
function pn(e) {
|
1163
1143
|
return !!e && typeof e == "object";
|
1164
1144
|
}
|
1165
|
-
function
|
1145
|
+
function mn(e) {
|
1166
1146
|
var t = Object.prototype.toString.call(e);
|
1167
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1147
|
+
return t === "[object RegExp]" || t === "[object Date]" || vn(e);
|
1168
1148
|
}
|
1169
|
-
var
|
1170
|
-
function
|
1171
|
-
return e.$$typeof ===
|
1149
|
+
var bn = typeof Symbol == "function" && Symbol.for, gn = bn ? Symbol.for("react.element") : 60103;
|
1150
|
+
function vn(e) {
|
1151
|
+
return e.$$typeof === gn;
|
1172
1152
|
}
|
1173
|
-
function
|
1153
|
+
function yn(e) {
|
1174
1154
|
return Array.isArray(e) ? [] : {};
|
1175
1155
|
}
|
1176
1156
|
function Te(e, t) {
|
1177
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
1157
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? de(yn(e), e, t) : e;
|
1178
1158
|
}
|
1179
|
-
function
|
1159
|
+
function _n(e, t, r) {
|
1180
1160
|
return e.concat(t).map(function(n) {
|
1181
1161
|
return Te(n, r);
|
1182
1162
|
});
|
1183
1163
|
}
|
1184
|
-
function
|
1164
|
+
function xn(e, t) {
|
1185
1165
|
if (!t.customMerge)
|
1186
|
-
return
|
1166
|
+
return de;
|
1187
1167
|
var r = t.customMerge(e);
|
1188
|
-
return typeof r == "function" ? r :
|
1168
|
+
return typeof r == "function" ? r : de;
|
1189
1169
|
}
|
1190
|
-
function
|
1170
|
+
function En(e) {
|
1191
1171
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1192
1172
|
return Object.propertyIsEnumerable.call(e, t);
|
1193
1173
|
}) : [];
|
1194
1174
|
}
|
1195
|
-
function
|
1196
|
-
return Object.keys(e).concat(
|
1175
|
+
function Pt(e) {
|
1176
|
+
return Object.keys(e).concat(En(e));
|
1197
1177
|
}
|
1198
|
-
function
|
1178
|
+
function ir(e, t) {
|
1199
1179
|
try {
|
1200
1180
|
return t in e;
|
1201
1181
|
} catch {
|
1202
1182
|
return !1;
|
1203
1183
|
}
|
1204
1184
|
}
|
1205
|
-
function
|
1206
|
-
return
|
1185
|
+
function wn(e, t) {
|
1186
|
+
return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1207
1187
|
}
|
1208
|
-
function
|
1188
|
+
function Sn(e, t, r) {
|
1209
1189
|
var n = {};
|
1210
|
-
return r.isMergeableObject(e) &&
|
1190
|
+
return r.isMergeableObject(e) && Pt(e).forEach(function(i) {
|
1211
1191
|
n[i] = Te(e[i], r);
|
1212
|
-
}),
|
1213
|
-
|
1192
|
+
}), Pt(t).forEach(function(i) {
|
1193
|
+
wn(e, i) || (ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = xn(i, r)(e[i], t[i], r) : n[i] = Te(t[i], r));
|
1214
1194
|
}), n;
|
1215
1195
|
}
|
1216
|
-
function
|
1217
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1196
|
+
function de(e, t, r) {
|
1197
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _n, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = Te;
|
1218
1198
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1219
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
1199
|
+
return o ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : Te(t, r);
|
1220
1200
|
}
|
1221
|
-
|
1201
|
+
de.all = function(t, r) {
|
1222
1202
|
if (!Array.isArray(t))
|
1223
1203
|
throw new Error("first argument should be an array");
|
1224
1204
|
return t.reduce(function(n, i) {
|
1225
|
-
return
|
1205
|
+
return de(n, i, r);
|
1226
1206
|
}, {});
|
1227
1207
|
};
|
1228
|
-
var
|
1229
|
-
const
|
1230
|
-
function
|
1231
|
-
var r = t && t.cache ? t.cache :
|
1208
|
+
var Tn = de, Hn = Tn;
|
1209
|
+
const An = /* @__PURE__ */ fn(Hn);
|
1210
|
+
function We(e, t) {
|
1211
|
+
var r = t && t.cache ? t.cache : Ln, n = t && t.serializer ? t.serializer : On, i = t && t.strategy ? t.strategy : Cn;
|
1232
1212
|
return i(e, {
|
1233
1213
|
cache: r,
|
1234
1214
|
serializer: n
|
1235
1215
|
});
|
1236
1216
|
}
|
1237
|
-
function
|
1217
|
+
function Pn(e) {
|
1238
1218
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1239
1219
|
}
|
1240
|
-
function
|
1241
|
-
var i =
|
1220
|
+
function Fn(e, t, r, n) {
|
1221
|
+
var i = Pn(n) ? n : r(n), o = t.get(i);
|
1242
1222
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
1243
1223
|
}
|
1244
|
-
function
|
1224
|
+
function or(e, t, r) {
|
1245
1225
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
1246
1226
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
1247
1227
|
}
|
1248
|
-
function
|
1228
|
+
function sr(e, t, r, n, i) {
|
1249
1229
|
return r.bind(t, e, n, i);
|
1250
1230
|
}
|
1251
|
-
function
|
1252
|
-
var r = e.length === 1 ?
|
1253
|
-
return
|
1254
|
-
}
|
1255
|
-
function Nn(e, t) {
|
1256
|
-
return bt(e, this, cr, t.cache.create(), t.serializer);
|
1231
|
+
function Cn(e, t) {
|
1232
|
+
var r = e.length === 1 ? Fn : or;
|
1233
|
+
return sr(e, this, r, t.cache.create(), t.serializer);
|
1257
1234
|
}
|
1258
|
-
function
|
1259
|
-
return
|
1235
|
+
function Bn(e, t) {
|
1236
|
+
return sr(e, this, or, t.cache.create(), t.serializer);
|
1260
1237
|
}
|
1261
|
-
var
|
1238
|
+
var On = function() {
|
1262
1239
|
return JSON.stringify(arguments);
|
1263
|
-
}
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1240
|
+
}, In = (
|
1241
|
+
/** @class */
|
1242
|
+
function() {
|
1243
|
+
function e() {
|
1244
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1245
|
+
}
|
1246
|
+
return e.prototype.get = function(t) {
|
1247
|
+
return this.cache[t];
|
1248
|
+
}, e.prototype.set = function(t, r) {
|
1249
|
+
this.cache[t] = r;
|
1250
|
+
}, e;
|
1251
|
+
}()
|
1252
|
+
), Ln = {
|
1274
1253
|
create: function() {
|
1275
|
-
return new
|
1254
|
+
return new In();
|
1276
1255
|
}
|
1277
|
-
},
|
1278
|
-
variadic:
|
1279
|
-
monadic: Mn
|
1256
|
+
}, ze = {
|
1257
|
+
variadic: Bn
|
1280
1258
|
}, E;
|
1281
1259
|
(function(e) {
|
1282
1260
|
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";
|
@@ -1285,47 +1263,47 @@ var B;
|
|
1285
1263
|
(function(e) {
|
1286
1264
|
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";
|
1287
1265
|
})(B || (B = {}));
|
1288
|
-
var
|
1266
|
+
var pe;
|
1289
1267
|
(function(e) {
|
1290
1268
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1291
|
-
})(
|
1292
|
-
function
|
1269
|
+
})(pe || (pe = {}));
|
1270
|
+
function Ft(e) {
|
1293
1271
|
return e.type === B.literal;
|
1294
1272
|
}
|
1295
|
-
function
|
1273
|
+
function Nn(e) {
|
1296
1274
|
return e.type === B.argument;
|
1297
1275
|
}
|
1298
|
-
function
|
1276
|
+
function ar(e) {
|
1299
1277
|
return e.type === B.number;
|
1300
1278
|
}
|
1301
|
-
function
|
1279
|
+
function lr(e) {
|
1302
1280
|
return e.type === B.date;
|
1303
1281
|
}
|
1304
|
-
function
|
1282
|
+
function ur(e) {
|
1305
1283
|
return e.type === B.time;
|
1306
1284
|
}
|
1307
|
-
function
|
1285
|
+
function hr(e) {
|
1308
1286
|
return e.type === B.select;
|
1309
1287
|
}
|
1310
|
-
function
|
1288
|
+
function cr(e) {
|
1311
1289
|
return e.type === B.plural;
|
1312
1290
|
}
|
1313
|
-
function
|
1291
|
+
function Mn(e) {
|
1314
1292
|
return e.type === B.pound;
|
1315
1293
|
}
|
1316
|
-
function
|
1294
|
+
function fr(e) {
|
1317
1295
|
return e.type === B.tag;
|
1318
1296
|
}
|
1319
|
-
function
|
1320
|
-
return !!(e && typeof e == "object" && e.type ===
|
1297
|
+
function dr(e) {
|
1298
|
+
return !!(e && typeof e == "object" && e.type === pe.number);
|
1321
1299
|
}
|
1322
|
-
function
|
1323
|
-
return !!(e && typeof e == "object" && e.type ===
|
1300
|
+
function ot(e) {
|
1301
|
+
return !!(e && typeof e == "object" && e.type === pe.dateTime);
|
1324
1302
|
}
|
1325
|
-
var
|
1326
|
-
function
|
1303
|
+
var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rn = /(?:[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;
|
1304
|
+
function Dn(e) {
|
1327
1305
|
var t = {};
|
1328
|
-
return e.replace(
|
1306
|
+
return e.replace(Rn, function(r) {
|
1329
1307
|
var n = r.length;
|
1330
1308
|
switch (r[0]) {
|
1331
1309
|
case "G":
|
@@ -1414,36 +1392,36 @@ function kn(e) {
|
|
1414
1392
|
return "";
|
1415
1393
|
}), t;
|
1416
1394
|
}
|
1417
|
-
var
|
1418
|
-
function
|
1395
|
+
var Un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1396
|
+
function $n(e) {
|
1419
1397
|
if (e.length === 0)
|
1420
1398
|
throw new Error("Number skeleton cannot be empty");
|
1421
|
-
for (var t = e.split(
|
1399
|
+
for (var t = e.split(Un).filter(function(c) {
|
1422
1400
|
return c.length > 0;
|
1423
1401
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1424
1402
|
var o = i[n], s = o.split("/");
|
1425
1403
|
if (s.length === 0)
|
1426
1404
|
throw new Error("Invalid number skeleton");
|
1427
1405
|
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
1428
|
-
var
|
1429
|
-
if (
|
1406
|
+
var f = u[l];
|
1407
|
+
if (f.length === 0)
|
1430
1408
|
throw new Error("Invalid number skeleton");
|
1431
1409
|
}
|
1432
1410
|
r.push({ stem: a, options: h });
|
1433
1411
|
}
|
1434
1412
|
return r;
|
1435
1413
|
}
|
1436
|
-
function
|
1414
|
+
function Gn(e) {
|
1437
1415
|
return e.replace(/^(.*?)-/, "");
|
1438
1416
|
}
|
1439
|
-
var
|
1440
|
-
function
|
1417
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mr = /^(@+)?(\+|#+)?[rs]?$/g, kn = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
|
1418
|
+
function Bt(e) {
|
1441
1419
|
var t = {};
|
1442
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1420
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mr, function(r, n, i) {
|
1443
1421
|
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)), "";
|
1444
1422
|
}), t;
|
1445
1423
|
}
|
1446
|
-
function
|
1424
|
+
function gr(e) {
|
1447
1425
|
switch (e) {
|
1448
1426
|
case "sign-auto":
|
1449
1427
|
return {
|
@@ -1483,7 +1461,7 @@ function Er(e) {
|
|
1483
1461
|
};
|
1484
1462
|
}
|
1485
1463
|
}
|
1486
|
-
function
|
1464
|
+
function jn(e) {
|
1487
1465
|
var t;
|
1488
1466
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1489
1467
|
notation: "engineering"
|
@@ -1491,17 +1469,17 @@ function zn(e) {
|
|
1491
1469
|
notation: "scientific"
|
1492
1470
|
}, e = e.slice(1)), t) {
|
1493
1471
|
var r = e.slice(0, 2);
|
1494
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1472
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
|
1495
1473
|
throw new Error("Malformed concise eng/scientific notation");
|
1496
1474
|
t.minimumIntegerDigits = e.length;
|
1497
1475
|
}
|
1498
1476
|
return t;
|
1499
1477
|
}
|
1500
|
-
function
|
1501
|
-
var t = {}, r =
|
1478
|
+
function Ot(e) {
|
1479
|
+
var t = {}, r = gr(e);
|
1502
1480
|
return r || t;
|
1503
1481
|
}
|
1504
|
-
function
|
1482
|
+
function Vn(e) {
|
1505
1483
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1506
1484
|
var i = n[r];
|
1507
1485
|
switch (i.stem) {
|
@@ -1525,7 +1503,7 @@ function Zn(e) {
|
|
1525
1503
|
continue;
|
1526
1504
|
case "measure-unit":
|
1527
1505
|
case "unit":
|
1528
|
-
t.style = "unit", t.unit =
|
1506
|
+
t.style = "unit", t.unit = Gn(i.options[0]);
|
1529
1507
|
continue;
|
1530
1508
|
case "compact-short":
|
1531
1509
|
case "K":
|
@@ -1536,13 +1514,13 @@ function Zn(e) {
|
|
1536
1514
|
t.notation = "compact", t.compactDisplay = "long";
|
1537
1515
|
continue;
|
1538
1516
|
case "scientific":
|
1539
|
-
t =
|
1540
|
-
return
|
1517
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1518
|
+
return A(A({}, h), Ot(l));
|
1541
1519
|
}, {}));
|
1542
1520
|
continue;
|
1543
1521
|
case "engineering":
|
1544
|
-
t =
|
1545
|
-
return
|
1522
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1523
|
+
return A(A({}, h), Ot(l));
|
1546
1524
|
}, {}));
|
1547
1525
|
continue;
|
1548
1526
|
case "notation-simple":
|
@@ -1587,45 +1565,45 @@ function Zn(e) {
|
|
1587
1565
|
case "integer-width":
|
1588
1566
|
if (i.options.length > 1)
|
1589
1567
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1590
|
-
i.options[0].replace(
|
1568
|
+
i.options[0].replace(kn, function(h, l, u, f, c, p) {
|
1591
1569
|
if (l)
|
1592
1570
|
t.minimumIntegerDigits = u.length;
|
1593
1571
|
else {
|
1594
|
-
if (
|
1572
|
+
if (f && c)
|
1595
1573
|
throw new Error("We currently do not support maximum integer digits");
|
1596
|
-
if (
|
1574
|
+
if (p)
|
1597
1575
|
throw new Error("We currently do not support exact integer digits");
|
1598
1576
|
}
|
1599
1577
|
return "";
|
1600
1578
|
});
|
1601
1579
|
continue;
|
1602
1580
|
}
|
1603
|
-
if (
|
1581
|
+
if (br.test(i.stem)) {
|
1604
1582
|
t.minimumIntegerDigits = i.stem.length;
|
1605
1583
|
continue;
|
1606
1584
|
}
|
1607
|
-
if (
|
1585
|
+
if (Ct.test(i.stem)) {
|
1608
1586
|
if (i.options.length > 1)
|
1609
1587
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1610
|
-
i.stem.replace(
|
1611
|
-
return u === "*" ? t.minimumFractionDigits = l.length :
|
1588
|
+
i.stem.replace(Ct, function(h, l, u, f, c, p) {
|
1589
|
+
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1612
1590
|
});
|
1613
1591
|
var o = i.options[0];
|
1614
|
-
o === "w" ? t =
|
1592
|
+
o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Bt(o)));
|
1615
1593
|
continue;
|
1616
1594
|
}
|
1617
|
-
if (
|
1618
|
-
t =
|
1595
|
+
if (mr.test(i.stem)) {
|
1596
|
+
t = A(A({}, t), Bt(i.stem));
|
1619
1597
|
continue;
|
1620
1598
|
}
|
1621
|
-
var s =
|
1622
|
-
s && (t =
|
1623
|
-
var a =
|
1624
|
-
a && (t =
|
1599
|
+
var s = gr(i.stem);
|
1600
|
+
s && (t = A(A({}, t), s));
|
1601
|
+
var a = jn(i.stem);
|
1602
|
+
a && (t = A(A({}, t), a));
|
1625
1603
|
}
|
1626
1604
|
return t;
|
1627
1605
|
}
|
1628
|
-
var
|
1606
|
+
var Be = {
|
1629
1607
|
"001": [
|
1630
1608
|
"H",
|
1631
1609
|
"h"
|
@@ -3040,13 +3018,13 @@ var Ie = {
|
|
3040
3018
|
"h"
|
3041
3019
|
]
|
3042
3020
|
};
|
3043
|
-
function
|
3021
|
+
function Xn(e, t) {
|
3044
3022
|
for (var r = "", n = 0; n < e.length; n++) {
|
3045
3023
|
var i = e.charAt(n);
|
3046
3024
|
if (i === "j") {
|
3047
3025
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
3048
3026
|
o++, n++;
|
3049
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
3027
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Wn(t);
|
3050
3028
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
3051
3029
|
r += h;
|
3052
3030
|
for (; s-- > 0; )
|
@@ -3055,7 +3033,7 @@ function Jn(e, t) {
|
|
3055
3033
|
}
|
3056
3034
|
return r;
|
3057
3035
|
}
|
3058
|
-
function
|
3036
|
+
function Wn(e) {
|
3059
3037
|
var t = e.hourCycle;
|
3060
3038
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
3061
3039
|
e.hourCycles && // @ts-ignore
|
@@ -3074,23 +3052,23 @@ function Qn(e) {
|
|
3074
3052
|
}
|
3075
3053
|
var r = e.language, n;
|
3076
3054
|
r !== "root" && (n = e.maximize().region);
|
3077
|
-
var i =
|
3055
|
+
var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
|
3078
3056
|
return i[0];
|
3079
3057
|
}
|
3080
|
-
var
|
3058
|
+
var Ze, zn = new RegExp("^".concat(pr.source, "*")), Zn = new RegExp("".concat(pr.source, "*$"));
|
3081
3059
|
function T(e, t) {
|
3082
3060
|
return { start: e, end: t };
|
3083
3061
|
}
|
3084
|
-
var
|
3062
|
+
var Jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qn = !!String.fromCodePoint, qn = !!Object.fromEntries, Yn = !!String.prototype.codePointAt, Kn = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ri = ti ? Number.isSafeInteger : function(e) {
|
3085
3063
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3086
|
-
},
|
3064
|
+
}, st = !0;
|
3087
3065
|
try {
|
3088
|
-
var
|
3089
|
-
|
3066
|
+
var ni = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3067
|
+
st = ((Ze = ni.exec("a")) === null || Ze === void 0 ? void 0 : Ze[0]) === "a";
|
3090
3068
|
} catch {
|
3091
|
-
|
3069
|
+
st = !1;
|
3092
3070
|
}
|
3093
|
-
var
|
3071
|
+
var It = Jn ? (
|
3094
3072
|
// Native
|
3095
3073
|
function(t, r, n) {
|
3096
3074
|
return t.startsWith(r, n);
|
@@ -3100,7 +3078,7 @@ var Rt = Kn ? (
|
|
3100
3078
|
function(t, r, n) {
|
3101
3079
|
return t.slice(n, n + r.length) === r;
|
3102
3080
|
}
|
3103
|
-
),
|
3081
|
+
), at = Qn ? String.fromCodePoint : (
|
3104
3082
|
// IE11
|
3105
3083
|
function() {
|
3106
3084
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3112,9 +3090,9 @@ var Rt = Kn ? (
|
|
3112
3090
|
}
|
3113
3091
|
return n;
|
3114
3092
|
}
|
3115
|
-
),
|
3093
|
+
), Lt = (
|
3116
3094
|
// native
|
3117
|
-
|
3095
|
+
qn ? Object.fromEntries : (
|
3118
3096
|
// Ponyfill
|
3119
3097
|
function(t) {
|
3120
3098
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3124,7 +3102,7 @@ var Rt = Kn ? (
|
|
3124
3102
|
return r;
|
3125
3103
|
}
|
3126
3104
|
)
|
3127
|
-
),
|
3105
|
+
), vr = Yn ? (
|
3128
3106
|
// Native
|
3129
3107
|
function(t, r) {
|
3130
3108
|
return t.codePointAt(r);
|
@@ -3138,7 +3116,7 @@ var Rt = Kn ? (
|
|
3138
3116
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
3139
3117
|
}
|
3140
3118
|
}
|
3141
|
-
),
|
3119
|
+
), ii = Kn ? (
|
3142
3120
|
// Native
|
3143
3121
|
function(t) {
|
3144
3122
|
return t.trimStart();
|
@@ -3146,9 +3124,9 @@ var Rt = Kn ? (
|
|
3146
3124
|
) : (
|
3147
3125
|
// Ponyfill
|
3148
3126
|
function(t) {
|
3149
|
-
return t.replace(
|
3127
|
+
return t.replace(zn, "");
|
3150
3128
|
}
|
3151
|
-
),
|
3129
|
+
), oi = ei ? (
|
3152
3130
|
// Native
|
3153
3131
|
function(t) {
|
3154
3132
|
return t.trimEnd();
|
@@ -3156,32 +3134,32 @@ var Rt = Kn ? (
|
|
3156
3134
|
) : (
|
3157
3135
|
// Ponyfill
|
3158
3136
|
function(t) {
|
3159
|
-
return t.replace(
|
3137
|
+
return t.replace(Zn, "");
|
3160
3138
|
}
|
3161
3139
|
);
|
3162
|
-
function
|
3140
|
+
function yr(e, t) {
|
3163
3141
|
return new RegExp(e, t);
|
3164
3142
|
}
|
3165
|
-
var
|
3166
|
-
if (
|
3167
|
-
var
|
3168
|
-
|
3143
|
+
var lt;
|
3144
|
+
if (st) {
|
3145
|
+
var Nt = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3146
|
+
lt = function(t, r) {
|
3169
3147
|
var n;
|
3170
|
-
|
3171
|
-
var i =
|
3148
|
+
Nt.lastIndex = r;
|
3149
|
+
var i = Nt.exec(t);
|
3172
3150
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3173
3151
|
};
|
3174
3152
|
} else
|
3175
|
-
|
3153
|
+
lt = function(t, r) {
|
3176
3154
|
for (var n = []; ; ) {
|
3177
|
-
var i =
|
3178
|
-
if (i === void 0 ||
|
3155
|
+
var i = vr(t, r);
|
3156
|
+
if (i === void 0 || _r(i) || ui(i))
|
3179
3157
|
break;
|
3180
3158
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3181
3159
|
}
|
3182
|
-
return
|
3160
|
+
return at.apply(void 0, n);
|
3183
3161
|
};
|
3184
|
-
var
|
3162
|
+
var si = (
|
3185
3163
|
/** @class */
|
3186
3164
|
function() {
|
3187
3165
|
function e(t, r) {
|
@@ -3212,7 +3190,7 @@ var hi = (
|
|
3212
3190
|
if (n)
|
3213
3191
|
break;
|
3214
3192
|
return this.error(E.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
3215
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3193
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
3216
3194
|
var s = this.parseTag(t, r);
|
3217
3195
|
if (s.err)
|
3218
3196
|
return s;
|
@@ -3245,7 +3223,7 @@ var hi = (
|
|
3245
3223
|
return o;
|
3246
3224
|
var s = o.val, a = this.clonePosition();
|
3247
3225
|
if (this.bumpIf("</")) {
|
3248
|
-
if (this.isEOF() || !
|
3226
|
+
if (this.isEOF() || !ut(this.char()))
|
3249
3227
|
return this.error(E.INVALID_TAG, T(a, this.clonePosition()));
|
3250
3228
|
var h = this.clonePosition(), l = this.parseTagName();
|
3251
3229
|
return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, T(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -3263,7 +3241,7 @@ var hi = (
|
|
3263
3241
|
return this.error(E.INVALID_TAG, T(n, this.clonePosition()));
|
3264
3242
|
}, e.prototype.parseTagName = function() {
|
3265
3243
|
var t = this.offset();
|
3266
|
-
for (this.bump(); !this.isEOF() &&
|
3244
|
+
for (this.bump(); !this.isEOF() && li(this.char()); )
|
3267
3245
|
this.bump();
|
3268
3246
|
return this.message.slice(t, this.offset());
|
3269
3247
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3292,7 +3270,7 @@ var hi = (
|
|
3292
3270
|
};
|
3293
3271
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3294
3272
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3295
|
-
!
|
3273
|
+
!ai(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3296
3274
|
}, e.prototype.tryParseQuote = function(t) {
|
3297
3275
|
if (this.isEOF() || this.char() !== 39)
|
3298
3276
|
return null;
|
@@ -3326,12 +3304,12 @@ var hi = (
|
|
3326
3304
|
r.push(n);
|
3327
3305
|
this.bump();
|
3328
3306
|
}
|
3329
|
-
return
|
3307
|
+
return at.apply(void 0, r);
|
3330
3308
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3331
3309
|
if (this.isEOF())
|
3332
3310
|
return null;
|
3333
3311
|
var n = this.char();
|
3334
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3312
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
|
3335
3313
|
}, e.prototype.parseArgument = function(t, r) {
|
3336
3314
|
var n = this.clonePosition();
|
3337
3315
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3360,7 +3338,7 @@ var hi = (
|
|
3360
3338
|
return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
3361
3339
|
}
|
3362
3340
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3363
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3341
|
+
var t = this.clonePosition(), r = this.offset(), n = lt(this.message, r), i = r + n.length;
|
3364
3342
|
this.bumpTo(i);
|
3365
3343
|
var o = this.clonePosition(), s = T(t, o);
|
3366
3344
|
return { value: n, location: s };
|
@@ -3376,40 +3354,40 @@ var hi = (
|
|
3376
3354
|
var l = null;
|
3377
3355
|
if (this.bumpIf(",")) {
|
3378
3356
|
this.bumpSpace();
|
3379
|
-
var u = this.clonePosition(),
|
3380
|
-
if (
|
3381
|
-
return
|
3382
|
-
var c =
|
3357
|
+
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
3358
|
+
if (f.err)
|
3359
|
+
return f;
|
3360
|
+
var c = oi(f.val);
|
3383
3361
|
if (c.length === 0)
|
3384
3362
|
return this.error(E.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
3385
|
-
var
|
3386
|
-
l = { style: c, styleLocation:
|
3363
|
+
var p = T(u, this.clonePosition());
|
3364
|
+
l = { style: c, styleLocation: p };
|
3387
3365
|
}
|
3388
|
-
var
|
3389
|
-
if (
|
3390
|
-
return
|
3366
|
+
var v = this.tryParseArgumentClose(i);
|
3367
|
+
if (v.err)
|
3368
|
+
return v;
|
3391
3369
|
var g = T(i, this.clonePosition());
|
3392
|
-
if (l &&
|
3393
|
-
var
|
3370
|
+
if (l && It(l?.style, "::", 0)) {
|
3371
|
+
var P = ii(l.style.slice(2));
|
3394
3372
|
if (a === "number") {
|
3395
|
-
var
|
3396
|
-
return
|
3397
|
-
val: { type: B.number, value: n, location: g, style:
|
3373
|
+
var f = this.parseNumberSkeletonFromString(P, l.styleLocation);
|
3374
|
+
return f.err ? f : {
|
3375
|
+
val: { type: B.number, value: n, location: g, style: f.val },
|
3398
3376
|
err: null
|
3399
3377
|
};
|
3400
3378
|
} else {
|
3401
|
-
if (
|
3379
|
+
if (P.length === 0)
|
3402
3380
|
return this.error(E.EXPECT_DATE_TIME_SKELETON, g);
|
3403
|
-
var w =
|
3404
|
-
this.locale && (w =
|
3381
|
+
var w = P;
|
3382
|
+
this.locale && (w = Xn(P, this.locale));
|
3405
3383
|
var c = {
|
3406
|
-
type:
|
3384
|
+
type: pe.dateTime,
|
3407
3385
|
pattern: w,
|
3408
3386
|
location: l.styleLocation,
|
3409
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3410
|
-
},
|
3387
|
+
parsedOptions: this.shouldParseSkeletons ? Dn(w) : {}
|
3388
|
+
}, y = a === "date" ? B.date : B.time;
|
3411
3389
|
return {
|
3412
|
-
val: { type:
|
3390
|
+
val: { type: y, value: n, location: g, style: c },
|
3413
3391
|
err: null
|
3414
3392
|
};
|
3415
3393
|
}
|
@@ -3429,30 +3407,30 @@ var hi = (
|
|
3429
3407
|
case "select": {
|
3430
3408
|
var x = this.clonePosition();
|
3431
3409
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3432
|
-
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, T(x,
|
3410
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, T(x, A({}, x)));
|
3433
3411
|
this.bumpSpace();
|
3434
|
-
var
|
3435
|
-
if (a !== "select" &&
|
3412
|
+
var L = this.parseIdentifierIfPossible(), N = 0;
|
3413
|
+
if (a !== "select" && L.value === "offset") {
|
3436
3414
|
if (!this.bumpIf(":"))
|
3437
3415
|
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
3438
3416
|
this.bumpSpace();
|
3439
|
-
var
|
3440
|
-
if (
|
3441
|
-
return
|
3442
|
-
this.bumpSpace(),
|
3417
|
+
var f = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3418
|
+
if (f.err)
|
3419
|
+
return f;
|
3420
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), N = f.val;
|
3443
3421
|
}
|
3444
|
-
var
|
3445
|
-
if (
|
3446
|
-
return
|
3447
|
-
var
|
3448
|
-
if (
|
3449
|
-
return
|
3422
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
3423
|
+
if (R.err)
|
3424
|
+
return R;
|
3425
|
+
var v = this.tryParseArgumentClose(i);
|
3426
|
+
if (v.err)
|
3427
|
+
return v;
|
3450
3428
|
var S = T(i, this.clonePosition());
|
3451
3429
|
return a === "select" ? {
|
3452
3430
|
val: {
|
3453
3431
|
type: B.select,
|
3454
3432
|
value: n,
|
3455
|
-
options:
|
3433
|
+
options: Lt(R.val),
|
3456
3434
|
location: S
|
3457
3435
|
},
|
3458
3436
|
err: null
|
@@ -3460,7 +3438,7 @@ var hi = (
|
|
3460
3438
|
val: {
|
3461
3439
|
type: B.plural,
|
3462
3440
|
value: n,
|
3463
|
-
options:
|
3441
|
+
options: Lt(R.val),
|
3464
3442
|
offset: N,
|
3465
3443
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3466
3444
|
location: S
|
@@ -3511,48 +3489,48 @@ var hi = (
|
|
3511
3489
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3512
3490
|
var n = [];
|
3513
3491
|
try {
|
3514
|
-
n =
|
3492
|
+
n = $n(t);
|
3515
3493
|
} catch {
|
3516
3494
|
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
3517
3495
|
}
|
3518
3496
|
return {
|
3519
3497
|
val: {
|
3520
|
-
type:
|
3498
|
+
type: pe.number,
|
3521
3499
|
tokens: n,
|
3522
3500
|
location: r,
|
3523
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3501
|
+
parsedOptions: this.shouldParseSkeletons ? Vn(n) : {}
|
3524
3502
|
},
|
3525
3503
|
err: null
|
3526
3504
|
};
|
3527
3505
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3528
3506
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
3529
3507
|
if (l.length === 0) {
|
3530
|
-
var
|
3508
|
+
var f = this.clonePosition();
|
3531
3509
|
if (r !== "select" && this.bumpIf("=")) {
|
3532
3510
|
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3533
3511
|
if (c.err)
|
3534
3512
|
return c;
|
3535
|
-
u = T(
|
3513
|
+
u = T(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
3536
3514
|
} else
|
3537
3515
|
break;
|
3538
3516
|
}
|
3539
3517
|
if (h.has(l))
|
3540
3518
|
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3541
3519
|
l === "other" && (s = !0), this.bumpSpace();
|
3542
|
-
var
|
3520
|
+
var p = this.clonePosition();
|
3543
3521
|
if (!this.bumpIf("{"))
|
3544
3522
|
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
3545
|
-
var
|
3546
|
-
if (
|
3547
|
-
return
|
3548
|
-
var g = this.tryParseArgumentClose(
|
3523
|
+
var v = this.parseMessage(t + 1, r, n);
|
3524
|
+
if (v.err)
|
3525
|
+
return v;
|
3526
|
+
var g = this.tryParseArgumentClose(p);
|
3549
3527
|
if (g.err)
|
3550
3528
|
return g;
|
3551
3529
|
a.push([
|
3552
3530
|
l,
|
3553
3531
|
{
|
3554
|
-
value:
|
3555
|
-
location: T(
|
3532
|
+
value: v.val,
|
3533
|
+
location: T(p, this.clonePosition())
|
3556
3534
|
}
|
3557
3535
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
3558
3536
|
}
|
@@ -3568,7 +3546,7 @@ var hi = (
|
|
3568
3546
|
break;
|
3569
3547
|
}
|
3570
3548
|
var h = T(i, this.clonePosition());
|
3571
|
-
return o ? (s *= n,
|
3549
|
+
return o ? (s *= n, ri(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3572
3550
|
}, e.prototype.offset = function() {
|
3573
3551
|
return this.position.offset;
|
3574
3552
|
}, e.prototype.isEOF = function() {
|
@@ -3583,7 +3561,7 @@ var hi = (
|
|
3583
3561
|
var t = this.position.offset;
|
3584
3562
|
if (t >= this.message.length)
|
3585
3563
|
throw Error("out of bound");
|
3586
|
-
var r =
|
3564
|
+
var r = vr(this.message, t);
|
3587
3565
|
if (r === void 0)
|
3588
3566
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3589
3567
|
return r;
|
@@ -3602,7 +3580,7 @@ var hi = (
|
|
3602
3580
|
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);
|
3603
3581
|
}
|
3604
3582
|
}, e.prototype.bumpIf = function(t) {
|
3605
|
-
if (
|
3583
|
+
if (It(this.message, t, this.offset())) {
|
3606
3584
|
for (var r = 0; r < t.length; r++)
|
3607
3585
|
this.bump();
|
3608
3586
|
return !0;
|
@@ -3624,7 +3602,7 @@ var hi = (
|
|
3624
3602
|
break;
|
3625
3603
|
}
|
3626
3604
|
}, e.prototype.bumpSpace = function() {
|
3627
|
-
for (; !this.isEOF() &&
|
3605
|
+
for (; !this.isEOF() && _r(this.char()); )
|
3628
3606
|
this.bump();
|
3629
3607
|
}, e.prototype.peek = function() {
|
3630
3608
|
if (this.isEOF())
|
@@ -3634,46 +3612,46 @@ var hi = (
|
|
3634
3612
|
}, e;
|
3635
3613
|
}()
|
3636
3614
|
);
|
3637
|
-
function
|
3615
|
+
function ut(e) {
|
3638
3616
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3639
3617
|
}
|
3640
|
-
function
|
3641
|
-
return
|
3618
|
+
function ai(e) {
|
3619
|
+
return ut(e) || e === 47;
|
3642
3620
|
}
|
3643
|
-
function
|
3621
|
+
function li(e) {
|
3644
3622
|
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;
|
3645
3623
|
}
|
3646
|
-
function
|
3624
|
+
function _r(e) {
|
3647
3625
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3648
3626
|
}
|
3649
|
-
function
|
3627
|
+
function ui(e) {
|
3650
3628
|
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;
|
3651
3629
|
}
|
3652
|
-
function
|
3630
|
+
function ht(e) {
|
3653
3631
|
e.forEach(function(t) {
|
3654
|
-
if (delete t.location,
|
3632
|
+
if (delete t.location, hr(t) || cr(t))
|
3655
3633
|
for (var r in t.options)
|
3656
|
-
delete t.options[r].location,
|
3657
|
-
else
|
3634
|
+
delete t.options[r].location, ht(t.options[r].value);
|
3635
|
+
else ar(t) && dr(t.style) || (lr(t) || ur(t)) && ot(t.style) ? delete t.style.location : fr(t) && ht(t.children);
|
3658
3636
|
});
|
3659
3637
|
}
|
3660
|
-
function
|
3661
|
-
t === void 0 && (t = {}), t =
|
3662
|
-
var r = new
|
3638
|
+
function hi(e, t) {
|
3639
|
+
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3640
|
+
var r = new si(e, t).parse();
|
3663
3641
|
if (r.err) {
|
3664
3642
|
var n = SyntaxError(E[r.err.kind]);
|
3665
3643
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3666
3644
|
}
|
3667
|
-
return t?.captureLocation ||
|
3645
|
+
return t?.captureLocation || ht(r.val), r.val;
|
3668
3646
|
}
|
3669
|
-
var
|
3647
|
+
var me;
|
3670
3648
|
(function(e) {
|
3671
3649
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3672
|
-
})(
|
3673
|
-
var
|
3650
|
+
})(me || (me = {}));
|
3651
|
+
var Ge = (
|
3674
3652
|
/** @class */
|
3675
3653
|
function(e) {
|
3676
|
-
|
3654
|
+
J(t, e);
|
3677
3655
|
function t(r, n, i) {
|
3678
3656
|
var o = e.call(this, r) || this;
|
3679
3657
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3682,155 +3660,155 @@ var ke = (
|
|
3682
3660
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3683
3661
|
}, t;
|
3684
3662
|
}(Error)
|
3685
|
-
),
|
3663
|
+
), Mt = (
|
3686
3664
|
/** @class */
|
3687
3665
|
function(e) {
|
3688
|
-
|
3666
|
+
J(t, e);
|
3689
3667
|
function t(r, n, i, o) {
|
3690
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3668
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), me.INVALID_VALUE, o) || this;
|
3691
3669
|
}
|
3692
3670
|
return t;
|
3693
|
-
}(
|
3694
|
-
),
|
3671
|
+
}(Ge)
|
3672
|
+
), ci = (
|
3695
3673
|
/** @class */
|
3696
3674
|
function(e) {
|
3697
|
-
|
3675
|
+
J(t, e);
|
3698
3676
|
function t(r, n, i) {
|
3699
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3677
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), me.INVALID_VALUE, i) || this;
|
3700
3678
|
}
|
3701
3679
|
return t;
|
3702
|
-
}(
|
3703
|
-
),
|
3680
|
+
}(Ge)
|
3681
|
+
), fi = (
|
3704
3682
|
/** @class */
|
3705
3683
|
function(e) {
|
3706
|
-
|
3684
|
+
J(t, e);
|
3707
3685
|
function t(r, n) {
|
3708
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3686
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), me.MISSING_VALUE, n) || this;
|
3709
3687
|
}
|
3710
3688
|
return t;
|
3711
|
-
}(
|
3712
|
-
),
|
3689
|
+
}(Ge)
|
3690
|
+
), D;
|
3713
3691
|
(function(e) {
|
3714
3692
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3715
|
-
})(
|
3716
|
-
function
|
3693
|
+
})(D || (D = {}));
|
3694
|
+
function di(e) {
|
3717
3695
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3718
3696
|
var n = t[t.length - 1];
|
3719
|
-
return !n || n.type !==
|
3697
|
+
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
3720
3698
|
}, []);
|
3721
3699
|
}
|
3722
|
-
function
|
3700
|
+
function pi(e) {
|
3723
3701
|
return typeof e == "function";
|
3724
3702
|
}
|
3725
|
-
function
|
3726
|
-
if (e.length === 1 &&
|
3703
|
+
function Le(e, t, r, n, i, o, s) {
|
3704
|
+
if (e.length === 1 && Ft(e[0]))
|
3727
3705
|
return [
|
3728
3706
|
{
|
3729
|
-
type:
|
3707
|
+
type: D.literal,
|
3730
3708
|
value: e[0].value
|
3731
3709
|
}
|
3732
3710
|
];
|
3733
3711
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3734
3712
|
var u = l[h];
|
3735
|
-
if (
|
3713
|
+
if (Ft(u)) {
|
3736
3714
|
a.push({
|
3737
|
-
type:
|
3715
|
+
type: D.literal,
|
3738
3716
|
value: u.value
|
3739
3717
|
});
|
3740
3718
|
continue;
|
3741
3719
|
}
|
3742
|
-
if (
|
3720
|
+
if (Mn(u)) {
|
3743
3721
|
typeof o == "number" && a.push({
|
3744
|
-
type:
|
3722
|
+
type: D.literal,
|
3745
3723
|
value: r.getNumberFormat(t).format(o)
|
3746
3724
|
});
|
3747
3725
|
continue;
|
3748
3726
|
}
|
3749
|
-
var
|
3750
|
-
if (!(i &&
|
3751
|
-
throw new
|
3752
|
-
var c = i[
|
3753
|
-
if (
|
3727
|
+
var f = u.value;
|
3728
|
+
if (!(i && f in i))
|
3729
|
+
throw new fi(f, s);
|
3730
|
+
var c = i[f];
|
3731
|
+
if (Nn(u)) {
|
3754
3732
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3755
|
-
type: typeof c == "string" ?
|
3733
|
+
type: typeof c == "string" ? D.literal : D.object,
|
3756
3734
|
value: c
|
3757
3735
|
});
|
3758
3736
|
continue;
|
3759
3737
|
}
|
3760
|
-
if (
|
3761
|
-
var
|
3738
|
+
if (lr(u)) {
|
3739
|
+
var p = typeof u.style == "string" ? n.date[u.style] : ot(u.style) ? u.style.parsedOptions : void 0;
|
3762
3740
|
a.push({
|
3763
|
-
type:
|
3764
|
-
value: r.getDateTimeFormat(t,
|
3741
|
+
type: D.literal,
|
3742
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
3765
3743
|
});
|
3766
3744
|
continue;
|
3767
3745
|
}
|
3768
|
-
if (
|
3769
|
-
var
|
3746
|
+
if (ur(u)) {
|
3747
|
+
var p = typeof u.style == "string" ? n.time[u.style] : ot(u.style) ? u.style.parsedOptions : n.time.medium;
|
3770
3748
|
a.push({
|
3771
|
-
type:
|
3772
|
-
value: r.getDateTimeFormat(t,
|
3749
|
+
type: D.literal,
|
3750
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
3773
3751
|
});
|
3774
3752
|
continue;
|
3775
3753
|
}
|
3776
|
-
if (
|
3777
|
-
var
|
3778
|
-
|
3779
|
-
type:
|
3780
|
-
value: r.getNumberFormat(t,
|
3754
|
+
if (ar(u)) {
|
3755
|
+
var p = typeof u.style == "string" ? n.number[u.style] : dr(u.style) ? u.style.parsedOptions : void 0;
|
3756
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
3757
|
+
type: D.literal,
|
3758
|
+
value: r.getNumberFormat(t, p).format(c)
|
3781
3759
|
});
|
3782
3760
|
continue;
|
3783
3761
|
}
|
3784
|
-
if (
|
3785
|
-
var
|
3786
|
-
if (!
|
3787
|
-
throw new
|
3788
|
-
var w =
|
3762
|
+
if (fr(u)) {
|
3763
|
+
var v = u.children, g = u.value, P = i[g];
|
3764
|
+
if (!pi(P))
|
3765
|
+
throw new ci(g, "function", s);
|
3766
|
+
var w = Le(v, t, r, n, i, o), y = P(w.map(function(N) {
|
3789
3767
|
return N.value;
|
3790
3768
|
}));
|
3791
|
-
Array.isArray(
|
3769
|
+
Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(N) {
|
3792
3770
|
return {
|
3793
|
-
type: typeof N == "string" ?
|
3771
|
+
type: typeof N == "string" ? D.literal : D.object,
|
3794
3772
|
value: N
|
3795
3773
|
};
|
3796
3774
|
}));
|
3797
3775
|
}
|
3798
|
-
if (
|
3776
|
+
if (hr(u)) {
|
3799
3777
|
var x = u.options[c] || u.options.other;
|
3800
3778
|
if (!x)
|
3801
|
-
throw new
|
3802
|
-
a.push.apply(a,
|
3779
|
+
throw new Mt(u.value, c, Object.keys(u.options), s);
|
3780
|
+
a.push.apply(a, Le(x.value, t, r, n, i));
|
3803
3781
|
continue;
|
3804
3782
|
}
|
3805
|
-
if (
|
3783
|
+
if (cr(u)) {
|
3806
3784
|
var x = u.options["=".concat(c)];
|
3807
3785
|
if (!x) {
|
3808
3786
|
if (!Intl.PluralRules)
|
3809
|
-
throw new
|
3787
|
+
throw new Ge(`Intl.PluralRules is not available in this environment.
|
3810
3788
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3811
|
-
`,
|
3812
|
-
var
|
3813
|
-
x = u.options[
|
3789
|
+
`, me.MISSING_INTL_API, s);
|
3790
|
+
var L = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
3791
|
+
x = u.options[L] || u.options.other;
|
3814
3792
|
}
|
3815
3793
|
if (!x)
|
3816
|
-
throw new
|
3817
|
-
a.push.apply(a,
|
3794
|
+
throw new Mt(u.value, c, Object.keys(u.options), s);
|
3795
|
+
a.push.apply(a, Le(x.value, t, r, n, i, c - (u.offset || 0)));
|
3818
3796
|
continue;
|
3819
3797
|
}
|
3820
3798
|
}
|
3821
|
-
return
|
3799
|
+
return di(a);
|
3822
3800
|
}
|
3823
|
-
function
|
3824
|
-
return t ?
|
3825
|
-
return r[n] =
|
3801
|
+
function mi(e, t) {
|
3802
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3803
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
3826
3804
|
}, {})) : e;
|
3827
3805
|
}
|
3828
|
-
function
|
3806
|
+
function bi(e, t) {
|
3829
3807
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3830
|
-
return r[n] =
|
3831
|
-
},
|
3808
|
+
return r[n] = mi(e[n], t[n]), r;
|
3809
|
+
}, A({}, e)) : e;
|
3832
3810
|
}
|
3833
|
-
function
|
3811
|
+
function Je(e) {
|
3834
3812
|
return {
|
3835
3813
|
create: function() {
|
3836
3814
|
return {
|
@@ -3844,39 +3822,39 @@ function qe(e) {
|
|
3844
3822
|
}
|
3845
3823
|
};
|
3846
3824
|
}
|
3847
|
-
function
|
3825
|
+
function gi(e) {
|
3848
3826
|
return e === void 0 && (e = {
|
3849
3827
|
number: {},
|
3850
3828
|
dateTime: {},
|
3851
3829
|
pluralRules: {}
|
3852
3830
|
}), {
|
3853
|
-
getNumberFormat:
|
3831
|
+
getNumberFormat: We(function() {
|
3854
3832
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3855
3833
|
r[n] = arguments[n];
|
3856
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3834
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, fe([void 0], r, !1)))();
|
3857
3835
|
}, {
|
3858
|
-
cache:
|
3859
|
-
strategy:
|
3836
|
+
cache: Je(e.number),
|
3837
|
+
strategy: ze.variadic
|
3860
3838
|
}),
|
3861
|
-
getDateTimeFormat:
|
3839
|
+
getDateTimeFormat: We(function() {
|
3862
3840
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3863
3841
|
r[n] = arguments[n];
|
3864
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3842
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, fe([void 0], r, !1)))();
|
3865
3843
|
}, {
|
3866
|
-
cache:
|
3867
|
-
strategy:
|
3844
|
+
cache: Je(e.dateTime),
|
3845
|
+
strategy: ze.variadic
|
3868
3846
|
}),
|
3869
|
-
getPluralRules:
|
3847
|
+
getPluralRules: We(function() {
|
3870
3848
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3871
3849
|
r[n] = arguments[n];
|
3872
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3850
|
+
return new ((t = Intl.PluralRules).bind.apply(t, fe([void 0], r, !1)))();
|
3873
3851
|
}, {
|
3874
|
-
cache:
|
3875
|
-
strategy:
|
3852
|
+
cache: Je(e.pluralRules),
|
3853
|
+
strategy: ze.variadic
|
3876
3854
|
})
|
3877
3855
|
};
|
3878
3856
|
}
|
3879
|
-
var
|
3857
|
+
var vi = (
|
3880
3858
|
/** @class */
|
3881
3859
|
function() {
|
3882
3860
|
function e(t, r, n, i) {
|
@@ -3890,12 +3868,12 @@ var Ei = (
|
|
3890
3868
|
var l = o.formatToParts(h);
|
3891
3869
|
if (l.length === 1)
|
3892
3870
|
return l[0].value;
|
3893
|
-
var u = l.reduce(function(
|
3894
|
-
return !
|
3871
|
+
var u = l.reduce(function(f, c) {
|
3872
|
+
return !f.length || c.type !== D.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
3895
3873
|
}, []);
|
3896
3874
|
return u.length <= 1 ? u[0] || "" : u;
|
3897
3875
|
}, this.formatToParts = function(h) {
|
3898
|
-
return
|
3876
|
+
return Le(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3899
3877
|
}, this.resolvedOptions = function() {
|
3900
3878
|
var h;
|
3901
3879
|
return {
|
@@ -3908,13 +3886,13 @@ var Ei = (
|
|
3908
3886
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3909
3887
|
var s = i || {};
|
3910
3888
|
s.formatters;
|
3911
|
-
var a =
|
3912
|
-
this.ast = e.__parse(t,
|
3889
|
+
var a = Jr(s, ["formatters"]);
|
3890
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
3913
3891
|
} else
|
3914
3892
|
this.ast = t;
|
3915
3893
|
if (!Array.isArray(this.ast))
|
3916
3894
|
throw new TypeError("A message must be provided as a String or AST.");
|
3917
|
-
this.formats =
|
3895
|
+
this.formats = bi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
3918
3896
|
}
|
3919
3897
|
return Object.defineProperty(e, "defaultLocale", {
|
3920
3898
|
get: function() {
|
@@ -3927,7 +3905,7 @@ var Ei = (
|
|
3927
3905
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3928
3906
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3929
3907
|
}
|
3930
|
-
}, e.__parse =
|
3908
|
+
}, e.__parse = hi, e.formats = {
|
3931
3909
|
number: {
|
3932
3910
|
integer: {
|
3933
3911
|
maximumFractionDigits: 0
|
@@ -3988,7 +3966,7 @@ var Ei = (
|
|
3988
3966
|
}, e;
|
3989
3967
|
}()
|
3990
3968
|
);
|
3991
|
-
function
|
3969
|
+
function yi(e, t) {
|
3992
3970
|
if (t == null)
|
3993
3971
|
return;
|
3994
3972
|
if (t in e)
|
@@ -4009,92 +3987,92 @@ function wi(e, t) {
|
|
4009
3987
|
n = void 0;
|
4010
3988
|
return n;
|
4011
3989
|
}
|
4012
|
-
const Q = {},
|
3990
|
+
const Q = {}, _i = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), xr = (e, t) => {
|
4013
3991
|
if (t == null)
|
4014
3992
|
return;
|
4015
3993
|
if (t in Q && e in Q[t])
|
4016
3994
|
return Q[t][e];
|
4017
|
-
const r =
|
3995
|
+
const r = ke(t);
|
4018
3996
|
for (let n = 0; n < r.length; n++) {
|
4019
|
-
const i = r[n], o =
|
3997
|
+
const i = r[n], o = Ei(i, e);
|
4020
3998
|
if (o)
|
4021
|
-
return
|
3999
|
+
return _i(e, t, o);
|
4022
4000
|
}
|
4023
4001
|
};
|
4024
|
-
let
|
4025
|
-
const ve =
|
4026
|
-
function
|
4027
|
-
return
|
4002
|
+
let pt;
|
4003
|
+
const ve = $e({});
|
4004
|
+
function xi(e) {
|
4005
|
+
return pt[e] || null;
|
4028
4006
|
}
|
4029
|
-
function
|
4030
|
-
return e in
|
4007
|
+
function Er(e) {
|
4008
|
+
return e in pt;
|
4031
4009
|
}
|
4032
|
-
function
|
4033
|
-
if (!
|
4010
|
+
function Ei(e, t) {
|
4011
|
+
if (!Er(e))
|
4034
4012
|
return null;
|
4035
|
-
const r =
|
4036
|
-
return
|
4013
|
+
const r = xi(e);
|
4014
|
+
return yi(r, t);
|
4037
4015
|
}
|
4038
|
-
function
|
4016
|
+
function wi(e) {
|
4039
4017
|
if (e == null)
|
4040
4018
|
return;
|
4041
|
-
const t =
|
4019
|
+
const t = ke(e);
|
4042
4020
|
for (let r = 0; r < t.length; r++) {
|
4043
4021
|
const n = t[r];
|
4044
|
-
if (
|
4022
|
+
if (Er(n))
|
4045
4023
|
return n;
|
4046
4024
|
}
|
4047
4025
|
}
|
4048
|
-
function
|
4049
|
-
delete Q[e], ve.update((r) => (r[e] =
|
4026
|
+
function wr(e, ...t) {
|
4027
|
+
delete Q[e], ve.update((r) => (r[e] = An.all([r[e] || {}, ...t]), r));
|
4050
4028
|
}
|
4051
|
-
|
4029
|
+
ge(
|
4052
4030
|
[ve],
|
4053
4031
|
([e]) => Object.keys(e)
|
4054
4032
|
);
|
4055
|
-
ve.subscribe((e) =>
|
4056
|
-
const
|
4057
|
-
function
|
4058
|
-
|
4033
|
+
ve.subscribe((e) => pt = e);
|
4034
|
+
const Ne = {};
|
4035
|
+
function Si(e, t) {
|
4036
|
+
Ne[e].delete(t), Ne[e].size === 0 && delete Ne[e];
|
4059
4037
|
}
|
4060
|
-
function
|
4061
|
-
return
|
4038
|
+
function Sr(e) {
|
4039
|
+
return Ne[e];
|
4062
4040
|
}
|
4063
|
-
function
|
4064
|
-
return
|
4065
|
-
const r =
|
4041
|
+
function Ti(e) {
|
4042
|
+
return ke(e).map((t) => {
|
4043
|
+
const r = Sr(t);
|
4066
4044
|
return [t, r ? [...r] : []];
|
4067
4045
|
}).filter(([, t]) => t.length > 0);
|
4068
4046
|
}
|
4069
|
-
function
|
4070
|
-
return e == null ? !1 :
|
4047
|
+
function ct(e) {
|
4048
|
+
return e == null ? !1 : ke(e).some(
|
4071
4049
|
(t) => {
|
4072
4050
|
var r;
|
4073
|
-
return (r =
|
4051
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
4074
4052
|
}
|
4075
4053
|
);
|
4076
4054
|
}
|
4077
|
-
function
|
4055
|
+
function Hi(e, t) {
|
4078
4056
|
return Promise.all(
|
4079
|
-
t.map((n) => (
|
4080
|
-
).then((n) =>
|
4057
|
+
t.map((n) => (Si(e, n), n().then((i) => i.default || i)))
|
4058
|
+
).then((n) => wr(e, ...n));
|
4081
4059
|
}
|
4082
4060
|
const xe = {};
|
4083
|
-
function
|
4084
|
-
if (!
|
4061
|
+
function Tr(e) {
|
4062
|
+
if (!ct(e))
|
4085
4063
|
return e in xe ? xe[e] : Promise.resolve();
|
4086
|
-
const t =
|
4064
|
+
const t = Ti(e);
|
4087
4065
|
return xe[e] = Promise.all(
|
4088
4066
|
t.map(
|
4089
|
-
([r, n]) =>
|
4067
|
+
([r, n]) => Hi(r, n)
|
4090
4068
|
)
|
4091
4069
|
).then(() => {
|
4092
|
-
if (
|
4093
|
-
return
|
4070
|
+
if (ct(e))
|
4071
|
+
return Tr(e);
|
4094
4072
|
delete xe[e];
|
4095
4073
|
}), xe[e];
|
4096
4074
|
}
|
4097
|
-
const
|
4075
|
+
const Ai = {
|
4098
4076
|
number: {
|
4099
4077
|
scientific: { notation: "scientific" },
|
4100
4078
|
engineering: { notation: "engineering" },
|
@@ -4123,176 +4101,176 @@ const Bi = {
|
|
4123
4101
|
timeZoneName: "short"
|
4124
4102
|
}
|
4125
4103
|
}
|
4126
|
-
},
|
4104
|
+
}, Pi = {
|
4127
4105
|
fallbackLocale: null,
|
4128
4106
|
loadingDelay: 200,
|
4129
|
-
formats:
|
4107
|
+
formats: Ai,
|
4130
4108
|
warnOnMissingMessages: !0,
|
4131
4109
|
handleMissingMessage: void 0,
|
4132
4110
|
ignoreTag: !0
|
4133
|
-
},
|
4134
|
-
function
|
4135
|
-
return
|
4111
|
+
}, Fi = Pi;
|
4112
|
+
function be() {
|
4113
|
+
return Fi;
|
4136
4114
|
}
|
4137
|
-
const
|
4138
|
-
var
|
4115
|
+
const Qe = $e(!1);
|
4116
|
+
var Ci = Object.defineProperty, Bi = Object.defineProperties, Oi = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Li = Object.prototype.propertyIsEnumerable, Dt = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ni = (e, t) => {
|
4139
4117
|
for (var r in t || (t = {}))
|
4140
|
-
|
4141
|
-
if (
|
4142
|
-
for (var r of
|
4143
|
-
|
4118
|
+
Ii.call(t, r) && Dt(e, r, t[r]);
|
4119
|
+
if (Rt)
|
4120
|
+
for (var r of Rt(t))
|
4121
|
+
Li.call(t, r) && Dt(e, r, t[r]);
|
4144
4122
|
return e;
|
4145
|
-
},
|
4146
|
-
let
|
4147
|
-
const
|
4148
|
-
function
|
4123
|
+
}, Mi = (e, t) => Bi(e, Oi(t));
|
4124
|
+
let ft;
|
4125
|
+
const Re = $e(null);
|
4126
|
+
function Ut(e) {
|
4149
4127
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4150
4128
|
}
|
4151
|
-
function
|
4152
|
-
const r =
|
4153
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4129
|
+
function ke(e, t = be().fallbackLocale) {
|
4130
|
+
const r = Ut(e);
|
4131
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
|
4154
4132
|
}
|
4155
|
-
function
|
4156
|
-
return
|
4133
|
+
function ie() {
|
4134
|
+
return ft ?? void 0;
|
4157
4135
|
}
|
4158
|
-
|
4159
|
-
|
4136
|
+
Re.subscribe((e) => {
|
4137
|
+
ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4160
4138
|
});
|
4161
|
-
const
|
4162
|
-
if (e &&
|
4163
|
-
const { loadingDelay: t } =
|
4139
|
+
const Ri = (e) => {
|
4140
|
+
if (e && wi(e) && ct(e)) {
|
4141
|
+
const { loadingDelay: t } = be();
|
4164
4142
|
let r;
|
4165
|
-
return typeof window < "u" &&
|
4166
|
-
() =>
|
4143
|
+
return typeof window < "u" && ie() != null && t ? r = window.setTimeout(
|
4144
|
+
() => Qe.set(!0),
|
4167
4145
|
t
|
4168
|
-
) :
|
4169
|
-
|
4146
|
+
) : Qe.set(!0), Tr(e).then(() => {
|
4147
|
+
Re.set(e);
|
4170
4148
|
}).finally(() => {
|
4171
|
-
clearTimeout(r),
|
4149
|
+
clearTimeout(r), Qe.set(!1);
|
4172
4150
|
});
|
4173
4151
|
}
|
4174
|
-
return
|
4175
|
-
},
|
4176
|
-
set:
|
4177
|
-
}),
|
4152
|
+
return Re.set(e);
|
4153
|
+
}, ne = Mi(Ni({}, Re), {
|
4154
|
+
set: Ri
|
4155
|
+
}), je = (e) => {
|
4178
4156
|
const t = /* @__PURE__ */ Object.create(null);
|
4179
4157
|
return (n) => {
|
4180
4158
|
const i = JSON.stringify(n);
|
4181
4159
|
return i in t ? t[i] : t[i] = e(n);
|
4182
4160
|
};
|
4183
4161
|
};
|
4184
|
-
var
|
4162
|
+
var Di = Object.defineProperty, De = Object.getOwnPropertySymbols, Hr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
|
4185
4163
|
for (var r in t || (t = {}))
|
4186
|
-
|
4187
|
-
if (
|
4188
|
-
for (var r of
|
4189
|
-
|
4164
|
+
Hr.call(t, r) && $t(e, r, t[r]);
|
4165
|
+
if (De)
|
4166
|
+
for (var r of De(t))
|
4167
|
+
Ar.call(t, r) && $t(e, r, t[r]);
|
4190
4168
|
return e;
|
4191
|
-
},
|
4169
|
+
}, ye = (e, t) => {
|
4192
4170
|
var r = {};
|
4193
4171
|
for (var n in e)
|
4194
|
-
|
4195
|
-
if (e != null &&
|
4196
|
-
for (var n of
|
4197
|
-
t.indexOf(n) < 0 &&
|
4172
|
+
Hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4173
|
+
if (e != null && De)
|
4174
|
+
for (var n of De(e))
|
4175
|
+
t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
|
4198
4176
|
return r;
|
4199
4177
|
};
|
4200
4178
|
const He = (e, t) => {
|
4201
|
-
const { formats: r } =
|
4179
|
+
const { formats: r } = be();
|
4202
4180
|
if (e in r && t in r[e])
|
4203
4181
|
return r[e][t];
|
4204
4182
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4205
|
-
},
|
4183
|
+
}, Ui = je(
|
4206
4184
|
(e) => {
|
4207
|
-
var t = e, { locale: r, format: n } = t, i =
|
4185
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
4208
4186
|
if (r == null)
|
4209
4187
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4210
4188
|
return n && (i = He("number", n)), new Intl.NumberFormat(r, i);
|
4211
4189
|
}
|
4212
|
-
),
|
4190
|
+
), $i = je(
|
4213
4191
|
(e) => {
|
4214
|
-
var t = e, { locale: r, format: n } = t, i =
|
4192
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
4215
4193
|
if (r == null)
|
4216
4194
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4217
4195
|
return n ? i = He("date", n) : Object.keys(i).length === 0 && (i = He("date", "short")), new Intl.DateTimeFormat(r, i);
|
4218
4196
|
}
|
4219
|
-
),
|
4197
|
+
), Gi = je(
|
4220
4198
|
(e) => {
|
4221
|
-
var t = e, { locale: r, format: n } = t, i =
|
4199
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
4222
4200
|
if (r == null)
|
4223
4201
|
throw new Error(
|
4224
4202
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4225
4203
|
);
|
4226
4204
|
return n ? i = He("time", n) : Object.keys(i).length === 0 && (i = He("time", "short")), new Intl.DateTimeFormat(r, i);
|
4227
4205
|
}
|
4228
|
-
),
|
4206
|
+
), ki = (e = {}) => {
|
4229
4207
|
var t = e, {
|
4230
|
-
locale: r =
|
4231
|
-
} = t, n =
|
4208
|
+
locale: r = ie()
|
4209
|
+
} = t, n = ye(t, [
|
4232
4210
|
"locale"
|
4233
4211
|
]);
|
4234
|
-
return
|
4235
|
-
},
|
4212
|
+
return Ui(mt({ locale: r }, n));
|
4213
|
+
}, ji = (e = {}) => {
|
4236
4214
|
var t = e, {
|
4237
|
-
locale: r =
|
4238
|
-
} = t, n =
|
4215
|
+
locale: r = ie()
|
4216
|
+
} = t, n = ye(t, [
|
4239
4217
|
"locale"
|
4240
4218
|
]);
|
4241
|
-
return
|
4242
|
-
},
|
4219
|
+
return $i(mt({ locale: r }, n));
|
4220
|
+
}, Vi = (e = {}) => {
|
4243
4221
|
var t = e, {
|
4244
|
-
locale: r =
|
4245
|
-
} = t, n =
|
4222
|
+
locale: r = ie()
|
4223
|
+
} = t, n = ye(t, [
|
4246
4224
|
"locale"
|
4247
4225
|
]);
|
4248
|
-
return
|
4249
|
-
},
|
4226
|
+
return Gi(mt({ locale: r }, n));
|
4227
|
+
}, Xi = je(
|
4250
4228
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4251
|
-
(e, t =
|
4252
|
-
ignoreTag:
|
4229
|
+
(e, t = ie()) => new vi(e, t, be().formats, {
|
4230
|
+
ignoreTag: be().ignoreTag
|
4253
4231
|
})
|
4254
|
-
),
|
4232
|
+
), Wi = (e, t = {}) => {
|
4255
4233
|
var r, n, i, o;
|
4256
4234
|
let s = t;
|
4257
4235
|
typeof e == "object" && (s = e, e = s.id);
|
4258
4236
|
const {
|
4259
4237
|
values: a,
|
4260
|
-
locale: h =
|
4238
|
+
locale: h = ie(),
|
4261
4239
|
default: l
|
4262
4240
|
} = s;
|
4263
4241
|
if (h == null)
|
4264
4242
|
throw new Error(
|
4265
4243
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4266
4244
|
);
|
4267
|
-
let u =
|
4245
|
+
let u = xr(e, h);
|
4268
4246
|
if (!u)
|
4269
|
-
u = (o = (i = (n = (r =
|
4247
|
+
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;
|
4270
4248
|
else if (typeof u != "string")
|
4271
4249
|
return console.warn(
|
4272
4250
|
`[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.`
|
4273
4251
|
), u;
|
4274
4252
|
if (!a)
|
4275
4253
|
return u;
|
4276
|
-
let
|
4254
|
+
let f = u;
|
4277
4255
|
try {
|
4278
|
-
|
4256
|
+
f = Xi(u, h).format(a);
|
4279
4257
|
} catch (c) {
|
4280
4258
|
c instanceof Error && console.warn(
|
4281
4259
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
4282
4260
|
c.message
|
4283
4261
|
);
|
4284
4262
|
}
|
4285
|
-
return
|
4286
|
-
},
|
4287
|
-
|
4288
|
-
|
4289
|
-
|
4290
|
-
|
4291
|
-
window.emWidgets = { topic:
|
4292
|
-
const
|
4293
|
-
function
|
4263
|
+
return f;
|
4264
|
+
}, zi = (e, t) => Vi(t).format(e), Zi = (e, t) => ji(t).format(e), Ji = (e, t) => ki(t).format(e), Qi = (e, t = ie()) => xr(e, t), qi = ge([ne, ve], () => Wi);
|
4265
|
+
ge([ne], () => zi);
|
4266
|
+
ge([ne], () => Zi);
|
4267
|
+
ge([ne], () => Ji);
|
4268
|
+
ge([ne, ve], () => Qi);
|
4269
|
+
window.emWidgets = { topic: hn };
|
4270
|
+
const Yi = (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)), Ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4271
|
+
function xo(e, t) {
|
4294
4272
|
const r = window.navigator.userAgent;
|
4295
|
-
return
|
4273
|
+
return Yi(r) ? t = e.filter((n) => {
|
4296
4274
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
4297
4275
|
return n;
|
4298
4276
|
}) : t = e.filter((n) => {
|
@@ -4300,13 +4278,13 @@ function To(e, t) {
|
|
4300
4278
|
return n;
|
4301
4279
|
}), t;
|
4302
4280
|
}
|
4303
|
-
function
|
4281
|
+
function eo(e, t) {
|
4304
4282
|
if (e) {
|
4305
4283
|
const r = document.createElement("style");
|
4306
4284
|
r.innerHTML = t, e.appendChild(r);
|
4307
4285
|
}
|
4308
4286
|
}
|
4309
|
-
function
|
4287
|
+
function to(e, t) {
|
4310
4288
|
const r = new URL(t);
|
4311
4289
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4312
4290
|
const i = document.createElement("style");
|
@@ -4315,7 +4293,7 @@ function oo(e, t) {
|
|
4315
4293
|
console.error("There was an error while trying to load client styling from URL", n);
|
4316
4294
|
});
|
4317
4295
|
}
|
4318
|
-
function
|
4296
|
+
function ro(e, t, r) {
|
4319
4297
|
if (window.emMessageBus) {
|
4320
4298
|
const n = document.createElement("style");
|
4321
4299
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4323,15 +4301,15 @@ function so(e, t, r) {
|
|
4323
4301
|
});
|
4324
4302
|
}
|
4325
4303
|
}
|
4326
|
-
function
|
4327
|
-
|
4328
|
-
r == null && (ve.set(t),
|
4304
|
+
function no({ withLocale: e, translations: t }) {
|
4305
|
+
ne.subscribe((r) => {
|
4306
|
+
r == null && (ve.set(t), ne.set(e));
|
4329
4307
|
});
|
4330
4308
|
}
|
4331
|
-
function
|
4332
|
-
|
4309
|
+
function Gt(e, t) {
|
4310
|
+
wr(e, t);
|
4333
4311
|
}
|
4334
|
-
const
|
4312
|
+
const kt = {
|
4335
4313
|
en: {
|
4336
4314
|
providers: "Providers:",
|
4337
4315
|
filterby: "Filter by:",
|
@@ -4441,123 +4419,123 @@ const Wt = {
|
|
4441
4419
|
clear: "Clear all"
|
4442
4420
|
}
|
4443
4421
|
};
|
4444
|
-
function
|
4445
|
-
|
4422
|
+
function io(e) {
|
4423
|
+
Br(e, "svelte-1v7rv6n", ':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:16}.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, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.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, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));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%}}');
|
4446
4424
|
}
|
4447
|
-
function
|
4425
|
+
function jt(e, t, r) {
|
4448
4426
|
const n = e.slice();
|
4449
4427
|
return n[36] = t[r], n[37] = t, n[38] = r, n;
|
4450
4428
|
}
|
4451
|
-
function
|
4429
|
+
function oo(e) {
|
4452
4430
|
let t, r, n, i, o, s, a, h, l = (
|
4453
4431
|
/*$_*/
|
4454
4432
|
e[11]("filterby") + ""
|
4455
|
-
), u,
|
4433
|
+
), u, f, c, p, v = (
|
4456
4434
|
/*$_*/
|
4457
4435
|
e[11]("providers") + ""
|
4458
|
-
), g,
|
4436
|
+
), g, P, w, y, x, L, N, R, S, O, M, V, z, K = (
|
4459
4437
|
/*$_*/
|
4460
4438
|
e[11]("clear") + ""
|
4461
|
-
),
|
4462
|
-
function Pe(
|
4439
|
+
), oe, se, ee, te, _e, Ae;
|
4440
|
+
function Pe(b, C) {
|
4463
4441
|
return (
|
4464
4442
|
/*fullSelection*/
|
4465
|
-
|
4443
|
+
b[7] ? lo : ao
|
4466
4444
|
);
|
4467
4445
|
}
|
4468
|
-
let ae = Pe(e),
|
4446
|
+
let ae = Pe(e), $ = ae(e), d = _t(
|
4469
4447
|
/*vendorArray*/
|
4470
4448
|
e[5]
|
4471
|
-
),
|
4472
|
-
for (let
|
4473
|
-
|
4449
|
+
), H = [];
|
4450
|
+
for (let b = 0; b < d.length; b += 1)
|
4451
|
+
H[b] = Vt(jt(e, d, b));
|
4474
4452
|
return {
|
4475
4453
|
c() {
|
4476
|
-
t =
|
4477
|
-
for (let
|
4478
|
-
|
4479
|
-
|
4480
|
-
(e[4] ? "TriangleActive" : "")),
|
4481
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
4454
|
+
t = F("div"), r = F("div"), n = F("div"), i = Ee("svg"), o = Ee("path"), s = X(), a = F("div"), h = F("span"), u = G(l), f = X(), c = F("div"), p = F("span"), g = G(v), P = X(), $.c(), w = X(), y = F("span"), x = Ee("svg"), L = Ee("path"), S = X(), O = F("div"), M = F("ul");
|
4455
|
+
for (let b = 0; b < H.length; b += 1)
|
4456
|
+
H[b].c();
|
4457
|
+
V = X(), z = F("button"), oe = G(K), m(o, "id", "noun_filter_736223"), m(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"), m(o, "transform", "translate(-5 -6.2)"), m(o, "fill", "#fff"), m(i, "xmlns", "http://www.w3.org/2000/svg"), m(i, "width", "16"), m(i, "height", "16"), m(i, "viewBox", "0 0 16 16"), m(h, "class", "FilterName"), m(c, "class", "FilterValueContainer"), m(a, "class", "FilterTextContainer"), m(n, "class", "FilterMainArea"), m(L, "id", "arrow"), m(L, "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"), m(L, "transform", "translate(-274.511 -441.088)"), m(L, "fill", "#d1d1d1"), m(x, "xmlns", "http://www.w3.org/2000/svg"), m(x, "width", "14"), m(x, "height", "6.835"), m(x, "viewBox", "0 0 14 6.835"), m(y, "class", N = "TriangleInactive " + /*isFilterActive*/
|
4458
|
+
(e[4] ? "TriangleActive" : "")), m(r, "class", R = "FilterSelector " + /*isFilterActive*/
|
4459
|
+
(e[4] ? "FilterSelectorOpen" : "")), m(M, "class", "FilterDropdown"), m(z, "class", "ClearFilters"), z.disabled = se = /*fullSelection*/
|
4482
4460
|
e[7] && /*selectedVendorArray*/
|
4483
4461
|
e[6].length != /*vendorArray*/
|
4484
|
-
e[5].length,
|
4485
|
-
(e[4] ? "FilterOpen" : "")),
|
4462
|
+
e[5].length, m(O, "class", ee = "FilterDropdownContainer " + /*isFilterActive*/
|
4463
|
+
(e[4] ? "FilterOpen" : "")), m(t, "class", te = "FilterContainer " + /*addfilterselector*/
|
4486
4464
|
(e[0] == "true" && /*addsortingselector*/
|
4487
4465
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4488
4466
|
},
|
4489
|
-
m(
|
4490
|
-
|
4491
|
-
for (let
|
4492
|
-
|
4493
|
-
_(
|
4494
|
-
|
4467
|
+
m(b, C) {
|
4468
|
+
W(b, t, C), _(t, r), _(r, n), _(n, i), _(i, o), _(n, s), _(n, a), _(a, h), _(h, u), _(a, f), _(a, c), _(c, p), _(p, g), _(c, P), $.m(c, null), _(r, w), _(r, y), _(y, x), _(x, L), _(t, S), _(t, O), _(O, M);
|
4469
|
+
for (let I = 0; I < H.length; I += 1)
|
4470
|
+
H[I] && H[I].m(M, null);
|
4471
|
+
_(O, V), _(O, z), _(z, oe), _e || (Ae = [
|
4472
|
+
Me(
|
4495
4473
|
r,
|
4496
4474
|
"click",
|
4497
4475
|
/*click_handler*/
|
4498
4476
|
e[23]
|
4499
4477
|
),
|
4500
|
-
|
4501
|
-
|
4478
|
+
Me(
|
4479
|
+
z,
|
4502
4480
|
"click",
|
4503
4481
|
/*click_handler_2*/
|
4504
4482
|
e[26]
|
4505
4483
|
)
|
4506
|
-
],
|
4484
|
+
], _e = !0);
|
4507
4485
|
},
|
4508
|
-
p(
|
4509
|
-
if (
|
4486
|
+
p(b, C) {
|
4487
|
+
if (C[0] & /*$_*/
|
4510
4488
|
2048 && l !== (l = /*$_*/
|
4511
|
-
|
4512
|
-
2048 &&
|
4513
|
-
|
4489
|
+
b[11]("filterby") + "") && q(u, l), C[0] & /*$_*/
|
4490
|
+
2048 && v !== (v = /*$_*/
|
4491
|
+
b[11]("providers") + "") && q(g, v), ae === (ae = Pe(b)) && $ ? $.p(b, C) : ($.d(1), $ = ae(b), $ && ($.c(), $.m(c, null))), C[0] & /*isFilterActive*/
|
4514
4492
|
16 && N !== (N = "TriangleInactive " + /*isFilterActive*/
|
4515
|
-
(
|
4516
|
-
16 &&
|
4517
|
-
(
|
4493
|
+
(b[4] ? "TriangleActive" : "")) && m(y, "class", N), C[0] & /*isFilterActive*/
|
4494
|
+
16 && R !== (R = "FilterSelector " + /*isFilterActive*/
|
4495
|
+
(b[4] ? "FilterSelectorOpen" : "")) && m(r, "class", R), C[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4518
4496
|
8228) {
|
4519
|
-
|
4497
|
+
d = _t(
|
4520
4498
|
/*vendorArray*/
|
4521
|
-
|
4499
|
+
b[5]
|
4522
4500
|
);
|
4523
|
-
let
|
4524
|
-
for (
|
4525
|
-
const
|
4526
|
-
|
4501
|
+
let I;
|
4502
|
+
for (I = 0; I < d.length; I += 1) {
|
4503
|
+
const re = jt(b, d, I);
|
4504
|
+
H[I] ? H[I].p(re, C) : (H[I] = Vt(re), H[I].c(), H[I].m(M, null));
|
4527
4505
|
}
|
4528
|
-
for (;
|
4529
|
-
|
4530
|
-
|
4506
|
+
for (; I < H.length; I += 1)
|
4507
|
+
H[I].d(1);
|
4508
|
+
H.length = d.length;
|
4531
4509
|
}
|
4532
|
-
|
4533
|
-
2048 &&
|
4534
|
-
|
4535
|
-
224 &&
|
4536
|
-
|
4537
|
-
|
4538
|
-
|
4539
|
-
16 &&
|
4540
|
-
(
|
4541
|
-
3 &&
|
4542
|
-
(
|
4543
|
-
|
4510
|
+
C[0] & /*$_*/
|
4511
|
+
2048 && K !== (K = /*$_*/
|
4512
|
+
b[11]("clear") + "") && q(oe, K), C[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4513
|
+
224 && se !== (se = /*fullSelection*/
|
4514
|
+
b[7] && /*selectedVendorArray*/
|
4515
|
+
b[6].length != /*vendorArray*/
|
4516
|
+
b[5].length) && (z.disabled = se), C[0] & /*isFilterActive*/
|
4517
|
+
16 && ee !== (ee = "FilterDropdownContainer " + /*isFilterActive*/
|
4518
|
+
(b[4] ? "FilterOpen" : "")) && m(O, "class", ee), C[0] & /*addfilterselector, addsortingselector*/
|
4519
|
+
3 && te !== (te = "FilterContainer " + /*addfilterselector*/
|
4520
|
+
(b[0] == "true" && /*addsortingselector*/
|
4521
|
+
b[1] == "true" ? "FilerContainerSplit" : "")) && m(t, "class", te);
|
4544
4522
|
},
|
4545
|
-
d(
|
4546
|
-
|
4523
|
+
d(b) {
|
4524
|
+
b && j(t), $.d(), Lr(H, b), _e = !1, Y(Ae);
|
4547
4525
|
}
|
4548
4526
|
};
|
4549
4527
|
}
|
4550
|
-
function
|
4528
|
+
function so(e) {
|
4551
4529
|
let t, r = (
|
4552
4530
|
/*$_*/
|
4553
4531
|
e[11]("500") + ""
|
4554
4532
|
), n;
|
4555
4533
|
return {
|
4556
4534
|
c() {
|
4557
|
-
t =
|
4535
|
+
t = F("p"), n = G(r), m(t, "class", "SearchLoading");
|
4558
4536
|
},
|
4559
4537
|
m(i, o) {
|
4560
|
-
|
4538
|
+
W(i, t, o), _(t, n);
|
4561
4539
|
},
|
4562
4540
|
p(i, o) {
|
4563
4541
|
o[0] & /*$_*/
|
@@ -4565,21 +4543,21 @@ function ho(e) {
|
|
4565
4543
|
i[11]("500") + "") && q(n, r);
|
4566
4544
|
},
|
4567
4545
|
d(i) {
|
4568
|
-
i &&
|
4546
|
+
i && j(t);
|
4569
4547
|
}
|
4570
4548
|
};
|
4571
4549
|
}
|
4572
|
-
function
|
4550
|
+
function ao(e) {
|
4573
4551
|
let t, r;
|
4574
4552
|
return {
|
4575
4553
|
c() {
|
4576
|
-
t =
|
4554
|
+
t = F("span"), r = G(
|
4577
4555
|
/*selectionNumber*/
|
4578
4556
|
e[8]
|
4579
|
-
),
|
4557
|
+
), m(t, "class", "FilterCounter");
|
4580
4558
|
},
|
4581
4559
|
m(n, i) {
|
4582
|
-
|
4560
|
+
W(n, t, i), _(t, r);
|
4583
4561
|
},
|
4584
4562
|
p(n, i) {
|
4585
4563
|
i[0] & /*selectionNumber*/
|
@@ -4590,21 +4568,21 @@ function co(e) {
|
|
4590
4568
|
);
|
4591
4569
|
},
|
4592
4570
|
d(n) {
|
4593
|
-
n &&
|
4571
|
+
n && j(t);
|
4594
4572
|
}
|
4595
4573
|
};
|
4596
4574
|
}
|
4597
|
-
function
|
4575
|
+
function lo(e) {
|
4598
4576
|
let t, r = (
|
4599
4577
|
/*$_*/
|
4600
4578
|
e[11]("all") + ""
|
4601
4579
|
), n;
|
4602
4580
|
return {
|
4603
4581
|
c() {
|
4604
|
-
t =
|
4582
|
+
t = F("span"), n = G(r), m(t, "class", "FilterCounter");
|
4605
4583
|
},
|
4606
4584
|
m(i, o) {
|
4607
|
-
|
4585
|
+
W(i, t, o), _(t, n);
|
4608
4586
|
},
|
4609
4587
|
p(i, o) {
|
4610
4588
|
o[0] & /*$_*/
|
@@ -4612,31 +4590,31 @@ function fo(e) {
|
|
4612
4590
|
i[11]("all") + "") && q(n, r);
|
4613
4591
|
},
|
4614
4592
|
d(i) {
|
4615
|
-
i &&
|
4593
|
+
i && j(t);
|
4616
4594
|
}
|
4617
4595
|
};
|
4618
4596
|
}
|
4619
|
-
function
|
4597
|
+
function uo(e) {
|
4620
4598
|
let t, r;
|
4621
4599
|
return {
|
4622
4600
|
c() {
|
4623
|
-
t =
|
4624
|
-
e[36].logo) ||
|
4601
|
+
t = F("img"), gt(t.src, r = /*vendor*/
|
4602
|
+
e[36].logo) || m(t, "src", r), m(t, "alt", "vendor logo");
|
4625
4603
|
},
|
4626
4604
|
m(n, i) {
|
4627
|
-
|
4605
|
+
W(n, t, i);
|
4628
4606
|
},
|
4629
4607
|
p(n, i) {
|
4630
4608
|
i[0] & /*vendorArray*/
|
4631
|
-
32 && !
|
4632
|
-
n[36].logo) &&
|
4609
|
+
32 && !gt(t.src, r = /*vendor*/
|
4610
|
+
n[36].logo) && m(t, "src", r);
|
4633
4611
|
},
|
4634
4612
|
d(n) {
|
4635
|
-
n &&
|
4613
|
+
n && j(t);
|
4636
4614
|
}
|
4637
4615
|
};
|
4638
4616
|
}
|
4639
|
-
function
|
4617
|
+
function ho(e) {
|
4640
4618
|
let t, r, n = (
|
4641
4619
|
/*vendor*/
|
4642
4620
|
e[36].name + ""
|
@@ -4646,26 +4624,26 @@ function mo(e) {
|
|
4646
4624
|
), l, u;
|
4647
4625
|
return {
|
4648
4626
|
c() {
|
4649
|
-
t =
|
4627
|
+
t = F("div"), r = F("span"), i = G(n), o = X(), s = F("span"), a = G("("), l = G(h), u = G(")"), m(r, "class", "VendorName"), m(t, "class", "FilterItemLabel");
|
4650
4628
|
},
|
4651
|
-
m(
|
4652
|
-
|
4629
|
+
m(f, c) {
|
4630
|
+
W(f, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, u);
|
4653
4631
|
},
|
4654
|
-
p(
|
4632
|
+
p(f, c) {
|
4655
4633
|
c[0] & /*vendorArray*/
|
4656
4634
|
32 && n !== (n = /*vendor*/
|
4657
|
-
|
4635
|
+
f[36].name + "") && q(i, n), c[0] & /*vendorArray*/
|
4658
4636
|
32 && h !== (h = /*vendor*/
|
4659
|
-
|
4637
|
+
f[36].games.count + "") && q(l, h);
|
4660
4638
|
},
|
4661
|
-
d(
|
4662
|
-
|
4639
|
+
d(f) {
|
4640
|
+
f && j(t);
|
4663
4641
|
}
|
4664
4642
|
};
|
4665
4643
|
}
|
4666
|
-
function
|
4667
|
-
let t, r, n, i, o, s, a, h, l, u,
|
4668
|
-
function
|
4644
|
+
function Vt(e) {
|
4645
|
+
let t, r, n, i, o, s, a, h, l, u, f, c;
|
4646
|
+
function p() {
|
4669
4647
|
e[24].call(
|
4670
4648
|
n,
|
4671
4649
|
/*each_value*/
|
@@ -4674,7 +4652,7 @@ function Zt(e) {
|
|
4674
4652
|
e[38]
|
4675
4653
|
);
|
4676
4654
|
}
|
4677
|
-
function
|
4655
|
+
function v() {
|
4678
4656
|
return (
|
4679
4657
|
/*click_handler_1*/
|
4680
4658
|
e[25](
|
@@ -4683,160 +4661,160 @@ function Zt(e) {
|
|
4683
4661
|
)
|
4684
4662
|
);
|
4685
4663
|
}
|
4686
|
-
function g(
|
4664
|
+
function g(y, x) {
|
4687
4665
|
if (
|
4688
4666
|
/*filterbylogo*/
|
4689
|
-
|
4690
|
-
) return
|
4667
|
+
y[2] === "false"
|
4668
|
+
) return ho;
|
4691
4669
|
if (
|
4692
4670
|
/*filterbylogo*/
|
4693
|
-
|
4694
|
-
) return
|
4671
|
+
y[2] === "true"
|
4672
|
+
) return uo;
|
4695
4673
|
}
|
4696
|
-
let
|
4674
|
+
let P = g(e), w = P && P(e);
|
4697
4675
|
return {
|
4698
4676
|
c() {
|
4699
|
-
t =
|
4700
|
-
e[36].name,
|
4677
|
+
t = F("li"), r = F("label"), n = F("input"), o = X(), s = F("span"), a = X(), w && w.c(), h = X(), m(n, "type", "checkbox"), m(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
4678
|
+
e[36].name, vt(n, n.__value), m(s, "class", "FiltersCheckmark"), m(r, "class", "FilterLabel"), m(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4701
4679
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = u = /*vendor*/
|
4702
4680
|
e[36].name;
|
4703
4681
|
},
|
4704
|
-
m(
|
4705
|
-
|
4706
|
-
e[36].isFilterSelected, _(r, o), _(r, s), _(r, a), w && w.m(r, null), _(t, h),
|
4707
|
-
|
4708
|
-
|
4709
|
-
],
|
4682
|
+
m(y, x) {
|
4683
|
+
W(y, t, x), _(t, r), _(r, n), n.checked = /*vendor*/
|
4684
|
+
e[36].isFilterSelected, _(r, o), _(r, s), _(r, a), w && w.m(r, null), _(t, h), f || (c = [
|
4685
|
+
Me(n, "change", p),
|
4686
|
+
Me(n, "click", v)
|
4687
|
+
], f = !0);
|
4710
4688
|
},
|
4711
|
-
p(
|
4712
|
-
e =
|
4689
|
+
p(y, x) {
|
4690
|
+
e = y, x[0] & /*vendorArray*/
|
4713
4691
|
32 && i !== (i = /*vendor*/
|
4714
|
-
e[36].name) && (n.__value = i,
|
4692
|
+
e[36].name) && (n.__value = i, vt(n, n.__value)), x[0] & /*vendorArray*/
|
4715
4693
|
32 && (n.checked = /*vendor*/
|
4716
|
-
e[36].isFilterSelected),
|
4694
|
+
e[36].isFilterSelected), P === (P = g(e)) && w ? w.p(e, x) : (w && w.d(1), w = P && P(e), w && (w.c(), w.m(r, null))), x[0] & /*filterbylogo*/
|
4717
4695
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4718
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
4696
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && m(t, "class", l), x[0] & /*vendorArray*/
|
4719
4697
|
32 && u !== (u = /*vendor*/
|
4720
4698
|
e[36].name) && (t.value = u);
|
4721
4699
|
},
|
4722
|
-
d(
|
4723
|
-
|
4700
|
+
d(y) {
|
4701
|
+
y && j(t), w && w.d(), f = !1, Y(c);
|
4724
4702
|
}
|
4725
4703
|
};
|
4726
4704
|
}
|
4727
|
-
function
|
4705
|
+
function co(e) {
|
4728
4706
|
let t;
|
4729
4707
|
function r(o, s) {
|
4730
4708
|
if (
|
4731
4709
|
/*hasErrors*/
|
4732
4710
|
o[10]
|
4733
|
-
) return
|
4711
|
+
) return so;
|
4734
4712
|
if (!/*isLoading*/
|
4735
|
-
o[9]) return
|
4713
|
+
o[9]) return oo;
|
4736
4714
|
}
|
4737
4715
|
let n = r(e), i = n && n(e);
|
4738
4716
|
return {
|
4739
4717
|
c() {
|
4740
|
-
t =
|
4718
|
+
t = F("div"), i && i.c();
|
4741
4719
|
},
|
4742
4720
|
m(o, s) {
|
4743
|
-
|
4721
|
+
W(o, t, s), i && i.m(t, null), e[27](t);
|
4744
4722
|
},
|
4745
4723
|
p(o, s) {
|
4746
4724
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
4747
4725
|
},
|
4748
|
-
i:
|
4749
|
-
o:
|
4726
|
+
i: k,
|
4727
|
+
o: k,
|
4750
4728
|
d(o) {
|
4751
|
-
o &&
|
4729
|
+
o && j(t), i && i.d(), e[27](null);
|
4752
4730
|
}
|
4753
4731
|
};
|
4754
4732
|
}
|
4755
|
-
function
|
4733
|
+
function fo(e, t, r) {
|
4756
4734
|
let n;
|
4757
|
-
|
4758
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector:
|
4759
|
-
|
4760
|
-
const
|
4761
|
-
fetch(a).then((
|
4762
|
-
Object.keys(
|
4763
|
-
|
4735
|
+
Cr(e, qi, (d) => r(11, n = d));
|
4736
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector: f = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: p = "false" } = t, { mbsource: v } = t, g = !1, P = window.navigator.userAgent, w = [], y = [], x = {}, L = !1, N = 0, R = !0, S, O = !1;
|
4737
|
+
no({ withLocale: "en", translations: {} });
|
4738
|
+
const M = () => {
|
4739
|
+
fetch(a).then((H) => H.json()).then((H) => {
|
4740
|
+
Object.keys(H).forEach((b) => {
|
4741
|
+
Gt(b, H[b]);
|
4764
4742
|
});
|
4765
|
-
}).catch((
|
4766
|
-
console.log(
|
4743
|
+
}).catch((H) => {
|
4744
|
+
console.log(H);
|
4767
4745
|
});
|
4768
4746
|
};
|
4769
|
-
Object.keys(
|
4770
|
-
|
4747
|
+
Object.keys(kt).forEach((d) => {
|
4748
|
+
Gt(d, kt[d]);
|
4771
4749
|
}), x[u] && (x = { [u]: [] });
|
4772
|
-
const
|
4750
|
+
const V = () => {
|
4773
4751
|
r(4, g = !g), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4774
|
-
},
|
4775
|
-
fetch(
|
4776
|
-
|
4777
|
-
let
|
4778
|
-
|
4779
|
-
|
4780
|
-
}), r(5, w =
|
4781
|
-
}).catch((
|
4782
|
-
console.error(
|
4752
|
+
}, z = (d) => (r(9, R = !0), new Promise((H, b) => {
|
4753
|
+
fetch(d).then((C) => C.json()).then((C) => {
|
4754
|
+
C = C.items, H(C.items), r(6, y = []);
|
4755
|
+
let I = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4756
|
+
C.forEach((re) => {
|
4757
|
+
I || (I = { currentCategoryId: [] }), I[u]?.indexOf(re.id) >= 0 ? (re.isFilterSelected = !0, y.push(re)) : re.isFilterSelected = !1;
|
4758
|
+
}), r(5, w = C), oe();
|
4759
|
+
}).catch((C) => {
|
4760
|
+
console.error(C), r(10, O = !0), b(C);
|
4783
4761
|
}).finally(() => {
|
4784
|
-
r(9,
|
4762
|
+
r(9, R = !1);
|
4785
4763
|
});
|
4786
|
-
})),
|
4787
|
-
let
|
4788
|
-
|
4789
|
-
[u]:
|
4790
|
-
})) : (
|
4791
|
-
}, K = () => {
|
4792
|
-
r(7, O = v.length === w.length || v.length == 0), r(8, N = v.length);
|
4764
|
+
})), K = (d) => {
|
4765
|
+
let H = localStorage.getItem("vendorFiltersByCategory");
|
4766
|
+
d.isFilterSelected = !d.isFilterSelected, !y.length || y.filter((b) => b.name === d.name).length == 0 ? y.push(d) : r(6, y = y.filter((b) => b.name !== d.name)), H == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
|
4767
|
+
[u]: y.map((b) => b.id)
|
4768
|
+
})) : (H = JSON.parse(H), H[u] = y.map((b) => b.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(H))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), oe();
|
4793
4769
|
}, oe = () => {
|
4794
|
-
|
4795
|
-
|
4770
|
+
r(7, L = y.length === w.length || y.length == 0), r(8, N = y.length);
|
4771
|
+
}, se = () => {
|
4772
|
+
const d = new URL(`${i}/v1/casino/vendors`);
|
4773
|
+
r(4, g = !1), d.searchParams.append("fields", "id,name,logo,subVendors,games"), d.searchParams.append("language", s), d.searchParams.append("datasource", o), d.searchParams.append("platform", Ki(P)), (u.match(/\$/g) || []).length > 1 ? (d.searchParams.append("filter", `games(subGroups=${u})`), d.searchParams.append("subVendors", `games(subGroups=${u})`)) : d.searchParams.append("filter", `games(groups=${u})`), z(d);
|
4796
4774
|
}, ee = () => {
|
4797
|
-
r(6,
|
4798
|
-
[u]:
|
4799
|
-
})), w.forEach((
|
4800
|
-
},
|
4801
|
-
|
4775
|
+
r(6, y = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
|
4776
|
+
[u]: y.map((d) => d.id)
|
4777
|
+
})), w.forEach((d) => d.isFilterSelected = !1), r(5, w), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4, g = !1);
|
4778
|
+
}, te = (d) => {
|
4779
|
+
d.data.type == "SortingOpened" && r(4, g = !1);
|
4802
4780
|
};
|
4803
|
-
|
4804
|
-
window.
|
4781
|
+
Dr(() => (window.addEventListener("message", te, !1), () => {
|
4782
|
+
window.removeEventListener("message", te);
|
4805
4783
|
}));
|
4806
|
-
const
|
4807
|
-
function
|
4808
|
-
|
4784
|
+
const _e = () => V();
|
4785
|
+
function Ae(d, H) {
|
4786
|
+
d[H].isFilterSelected = this.checked, r(5, w);
|
4809
4787
|
}
|
4810
|
-
const
|
4811
|
-
function
|
4812
|
-
|
4813
|
-
S =
|
4788
|
+
const Pe = (d) => K(d), ae = () => ee();
|
4789
|
+
function $(d) {
|
4790
|
+
qe[d ? "unshift" : "push"](() => {
|
4791
|
+
S = d, r(3, S);
|
4814
4792
|
});
|
4815
4793
|
}
|
4816
|
-
return e.$$set = (
|
4817
|
-
"endpoint" in
|
4794
|
+
return e.$$set = (d) => {
|
4795
|
+
"endpoint" in d && r(15, i = d.endpoint), "datasource" in d && r(16, o = d.datasource), "lang" in d && r(17, s = d.lang), "translationurl" in d && r(18, a = d.translationurl), "clientstyling" in d && r(19, h = d.clientstyling), "clientstylingurl" in d && r(20, l = d.clientstylingurl), "categoryid" in d && r(21, u = d.categoryid), "addfilterselector" in d && r(0, f = d.addfilterselector), "addsortingselector" in d && r(1, c = d.addsortingselector), "filterbylogo" in d && r(2, p = d.filterbylogo), "mbsource" in d && r(22, v = d.mbsource);
|
4818
4796
|
}, e.$$.update = () => {
|
4819
4797
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4820
|
-
2195460 && i && o && u &&
|
4821
|
-
524296 && h && S &&
|
4822
|
-
1048584 && l && S &&
|
4823
|
-
4194312 && S &&
|
4824
|
-
262144 && a &&
|
4798
|
+
2195460 && i && o && u && p && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4799
|
+
524296 && h && S && eo(S, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4800
|
+
1048584 && l && S && to(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4801
|
+
4194312 && S && ro(S, `${v}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4802
|
+
262144 && a && M();
|
4825
4803
|
}, [
|
4826
|
-
|
4804
|
+
f,
|
4827
4805
|
c,
|
4828
|
-
|
4806
|
+
p,
|
4829
4807
|
S,
|
4830
4808
|
g,
|
4831
4809
|
w,
|
4832
|
-
|
4833
|
-
|
4810
|
+
y,
|
4811
|
+
L,
|
4834
4812
|
N,
|
4835
|
-
|
4836
|
-
|
4813
|
+
R,
|
4814
|
+
O,
|
4837
4815
|
n,
|
4838
|
-
|
4839
|
-
|
4816
|
+
V,
|
4817
|
+
K,
|
4840
4818
|
ee,
|
4841
4819
|
i,
|
4842
4820
|
o,
|
@@ -4845,22 +4823,22 @@ function go(e, t, r) {
|
|
4845
4823
|
h,
|
4846
4824
|
l,
|
4847
4825
|
u,
|
4848
|
-
|
4826
|
+
v,
|
4827
|
+
_e,
|
4849
4828
|
Ae,
|
4850
4829
|
Pe,
|
4851
4830
|
ae,
|
4852
|
-
|
4853
|
-
J
|
4831
|
+
$
|
4854
4832
|
];
|
4855
4833
|
}
|
4856
|
-
class
|
4834
|
+
class Pr extends zr {
|
4857
4835
|
constructor(t) {
|
4858
|
-
super(),
|
4836
|
+
super(), Xr(
|
4859
4837
|
this,
|
4860
4838
|
t,
|
4861
|
-
|
4862
|
-
|
4863
|
-
|
4839
|
+
fo,
|
4840
|
+
co,
|
4841
|
+
Wt,
|
4864
4842
|
{
|
4865
4843
|
endpoint: 15,
|
4866
4844
|
datasource: 16,
|
@@ -4874,7 +4852,7 @@ class Or extends Yr {
|
|
4874
4852
|
filterbylogo: 2,
|
4875
4853
|
mbsource: 22
|
4876
4854
|
},
|
4877
|
-
|
4855
|
+
io,
|
4878
4856
|
[-1, -1]
|
4879
4857
|
);
|
4880
4858
|
}
|
@@ -4882,114 +4860,114 @@ class Or extends Yr {
|
|
4882
4860
|
return this.$$.ctx[15];
|
4883
4861
|
}
|
4884
4862
|
set endpoint(t) {
|
4885
|
-
this.$$set({ endpoint: t }),
|
4863
|
+
this.$$set({ endpoint: t }), U();
|
4886
4864
|
}
|
4887
4865
|
get datasource() {
|
4888
4866
|
return this.$$.ctx[16];
|
4889
4867
|
}
|
4890
4868
|
set datasource(t) {
|
4891
|
-
this.$$set({ datasource: t }),
|
4869
|
+
this.$$set({ datasource: t }), U();
|
4892
4870
|
}
|
4893
4871
|
get lang() {
|
4894
4872
|
return this.$$.ctx[17];
|
4895
4873
|
}
|
4896
4874
|
set lang(t) {
|
4897
|
-
this.$$set({ lang: t }),
|
4875
|
+
this.$$set({ lang: t }), U();
|
4898
4876
|
}
|
4899
4877
|
get translationurl() {
|
4900
4878
|
return this.$$.ctx[18];
|
4901
4879
|
}
|
4902
4880
|
set translationurl(t) {
|
4903
|
-
this.$$set({ translationurl: t }),
|
4881
|
+
this.$$set({ translationurl: t }), U();
|
4904
4882
|
}
|
4905
4883
|
get clientstyling() {
|
4906
4884
|
return this.$$.ctx[19];
|
4907
4885
|
}
|
4908
4886
|
set clientstyling(t) {
|
4909
|
-
this.$$set({ clientstyling: t }),
|
4887
|
+
this.$$set({ clientstyling: t }), U();
|
4910
4888
|
}
|
4911
4889
|
get clientstylingurl() {
|
4912
4890
|
return this.$$.ctx[20];
|
4913
4891
|
}
|
4914
4892
|
set clientstylingurl(t) {
|
4915
|
-
this.$$set({ clientstylingurl: t }),
|
4893
|
+
this.$$set({ clientstylingurl: t }), U();
|
4916
4894
|
}
|
4917
4895
|
get categoryid() {
|
4918
4896
|
return this.$$.ctx[21];
|
4919
4897
|
}
|
4920
4898
|
set categoryid(t) {
|
4921
|
-
this.$$set({ categoryid: t }),
|
4899
|
+
this.$$set({ categoryid: t }), U();
|
4922
4900
|
}
|
4923
4901
|
get addfilterselector() {
|
4924
4902
|
return this.$$.ctx[0];
|
4925
4903
|
}
|
4926
4904
|
set addfilterselector(t) {
|
4927
|
-
this.$$set({ addfilterselector: t }),
|
4905
|
+
this.$$set({ addfilterselector: t }), U();
|
4928
4906
|
}
|
4929
4907
|
get addsortingselector() {
|
4930
4908
|
return this.$$.ctx[1];
|
4931
4909
|
}
|
4932
4910
|
set addsortingselector(t) {
|
4933
|
-
this.$$set({ addsortingselector: t }),
|
4911
|
+
this.$$set({ addsortingselector: t }), U();
|
4934
4912
|
}
|
4935
4913
|
get filterbylogo() {
|
4936
4914
|
return this.$$.ctx[2];
|
4937
4915
|
}
|
4938
4916
|
set filterbylogo(t) {
|
4939
|
-
this.$$set({ filterbylogo: t }),
|
4917
|
+
this.$$set({ filterbylogo: t }), U();
|
4940
4918
|
}
|
4941
4919
|
get mbsource() {
|
4942
4920
|
return this.$$.ctx[22];
|
4943
4921
|
}
|
4944
4922
|
set mbsource(t) {
|
4945
|
-
this.$$set({ mbsource: t }),
|
4923
|
+
this.$$set({ mbsource: t }), U();
|
4946
4924
|
}
|
4947
4925
|
}
|
4948
|
-
|
4949
|
-
const
|
4926
|
+
Wr(Pr, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {} }, [], [], !0);
|
4927
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4950
4928
|
__proto__: null,
|
4951
|
-
default:
|
4929
|
+
default: Pr
|
4952
4930
|
}, Symbol.toStringTag, { value: "Module" }));
|
4953
4931
|
export {
|
4954
|
-
|
4955
|
-
|
4956
|
-
|
4957
|
-
|
4958
|
-
|
4959
|
-
|
4960
|
-
|
4961
|
-
|
4962
|
-
|
4963
|
-
|
4964
|
-
|
4965
|
-
|
4932
|
+
ne as $,
|
4933
|
+
Ee as A,
|
4934
|
+
eo as B,
|
4935
|
+
to as C,
|
4936
|
+
ro as D,
|
4937
|
+
Wr as E,
|
4938
|
+
qi as F,
|
4939
|
+
xo as G,
|
4940
|
+
go as H,
|
4941
|
+
_o as I,
|
4942
|
+
mo as J,
|
4943
|
+
yo as K,
|
4966
4944
|
ve as L,
|
4967
|
-
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
|
4973
|
-
|
4974
|
-
|
4975
|
-
|
4976
|
-
|
4977
|
-
|
4978
|
-
|
4979
|
-
|
4980
|
-
|
4981
|
-
|
4982
|
-
|
4983
|
-
|
4984
|
-
|
4985
|
-
|
4986
|
-
|
4987
|
-
|
4988
|
-
|
4989
|
-
|
4990
|
-
|
4991
|
-
|
4992
|
-
|
4993
|
-
|
4994
|
-
|
4945
|
+
Eo as M,
|
4946
|
+
zr as S,
|
4947
|
+
wr as a,
|
4948
|
+
Br as b,
|
4949
|
+
gt as c,
|
4950
|
+
j as d,
|
4951
|
+
m as e,
|
4952
|
+
U as f,
|
4953
|
+
q as g,
|
4954
|
+
W as h,
|
4955
|
+
Xr as i,
|
4956
|
+
_ as j,
|
4957
|
+
F as k,
|
4958
|
+
X as l,
|
4959
|
+
G as m,
|
4960
|
+
k as n,
|
4961
|
+
Cr as o,
|
4962
|
+
Dr as p,
|
4963
|
+
Me as q,
|
4964
|
+
po as r,
|
4965
|
+
Wt as s,
|
4966
|
+
bo as t,
|
4967
|
+
Yi as u,
|
4968
|
+
Ki as v,
|
4969
|
+
qe as w,
|
4970
|
+
_t as x,
|
4971
|
+
Lr as y,
|
4972
|
+
vo as z
|
4995
4973
|
};
|