@everymatrix/casino-most-played-section 1.57.0 → 1.58.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-BPiWnko-.js → CasinoFilter-CBoZ_RpC.js} +963 -985
- package/components/CasinoFilter-CP2SsYcD.cjs +18 -0
- package/components/{CasinoFilter-Ci7YQx94.js → CasinoFilter-D9VOcS4e.js} +997 -1019
- package/components/{CasinoGameThumbnail-_5sckSNd.js → CasinoGameThumbnail-8SSlDp2s.js} +642 -626
- package/components/{CasinoGameThumbnail-B7sRb-yG.cjs → CasinoGameThumbnail-CHQxvhi_.cjs} +11 -11
- package/components/{CasinoGameThumbnail-DiSp_2hu.js → CasinoGameThumbnail-Cwm-Tv9Z.js} +1177 -1193
- package/components/{CasinoGamesCategorySection-C0p11XVk.cjs → CasinoGamesCategorySection-BYQrH9_B.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-BDY-WNoZ.js → CasinoGamesCategorySection-CIDyNXT6.js} +260 -260
- package/components/{CasinoGamesCategorySection-Bme9h-3L.js → CasinoGamesCategorySection-Dd6Sbxl3.js} +360 -360
- package/components/{CasinoMostPlayedSection-1Bp50Ygp.js → CasinoMostPlayedSection-Bdpwrllj.js} +65 -65
- package/components/{CasinoMostPlayedSection-BAfPlJ-b.cjs → CasinoMostPlayedSection-C2atcWQN.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-B_Ax9MFX.js → CasinoMostPlayedSection-ZCvcv5TT.js} +67 -67
- package/components/{CasinoSort-hONXbmNp.js → CasinoSort-BUVnl6Xi.js} +100 -99
- package/components/{CasinoSort-Pp3KKhH1.cjs → CasinoSort-Td9dTUIe.cjs} +1 -1
- package/components/{CasinoSort-DYVM7ptc.js → CasinoSort-fSuvj-fz.js} +108 -109
- package/es2015/casino-most-played-section.cjs +1 -1
- package/es2015/casino-most-played-section.js +1 -1
- package/esnext/casino-most-played-section.js +1 -1
- package/package.json +1 -1
- package/components/CasinoFilter-CToEvekY.cjs +0 -18
@@ -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)
|
49
49
|
return document;
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -54,62 +54,62 @@ function Rr(e) {
|
|
54
54
|
t
|
55
55
|
) : e.ownerDocument;
|
56
56
|
}
|
57
|
-
function
|
57
|
+
function Ir(e, t) {
|
58
58
|
return _(
|
59
59
|
/** @type {Document} */
|
60
60
|
e.head || e,
|
61
61
|
t
|
62
62
|
), t.sheet;
|
63
63
|
}
|
64
|
-
function
|
64
|
+
function W(e, t, r) {
|
65
65
|
e.insertBefore(t, r || null);
|
66
66
|
}
|
67
|
-
function
|
67
|
+
function j(e) {
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
69
69
|
}
|
70
|
-
function
|
70
|
+
function Lr(e, t) {
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
72
72
|
e[r] && e[r].d(t);
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function F(e) {
|
75
75
|
return document.createElement(e);
|
76
76
|
}
|
77
77
|
function Ee(e) {
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
79
79
|
}
|
80
|
-
function
|
80
|
+
function G(e) {
|
81
81
|
return document.createTextNode(e);
|
82
82
|
}
|
83
|
-
function
|
84
|
-
return
|
83
|
+
function X() {
|
84
|
+
return G(" ");
|
85
85
|
}
|
86
|
-
function
|
87
|
-
return
|
86
|
+
function po() {
|
87
|
+
return G("");
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function Me(e, t, r, n) {
|
90
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function m(e, t, r) {
|
93
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function mo(e, t, r) {
|
96
96
|
const n = t.toLowerCase();
|
97
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
97
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : m(e, t, r);
|
98
98
|
}
|
99
|
-
function
|
99
|
+
function Nr(e) {
|
100
100
|
return Array.from(e.childNodes);
|
101
101
|
}
|
102
102
|
function q(e, t) {
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
104
104
|
t);
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function vt(e, t) {
|
107
107
|
e.value = t ?? "";
|
108
108
|
}
|
109
|
-
function
|
109
|
+
function bo(e, t, r) {
|
110
110
|
e.classList.toggle(t, !!r);
|
111
111
|
}
|
112
|
-
class
|
112
|
+
class go {
|
113
113
|
/**
|
114
114
|
* @private
|
115
115
|
* @default false
|
@@ -143,7 +143,7 @@ class xo {
|
|
143
143
|
this.e || (this.is_svg ? this.e = Ee(
|
144
144
|
/** @type {keyof SVGElementTagNameMap} */
|
145
145
|
r.nodeName
|
146
|
-
) : this.e =
|
146
|
+
) : this.e = F(
|
147
147
|
/** @type {keyof HTMLElementTagNameMap} */
|
148
148
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
149
149
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
@@ -164,7 +164,7 @@ class xo {
|
|
164
164
|
* @returns {void} */
|
165
165
|
i(t) {
|
166
166
|
for (let r = 0; r < this.n.length; r += 1)
|
167
|
-
|
167
|
+
W(this.t, this.n[r], t);
|
168
168
|
}
|
169
169
|
/**
|
170
170
|
* @param {string} html
|
@@ -176,10 +176,10 @@ class xo {
|
|
176
176
|
/**
|
177
177
|
* @returns {void} */
|
178
178
|
d() {
|
179
|
-
this.n.forEach(
|
179
|
+
this.n.forEach(j);
|
180
180
|
}
|
181
181
|
}
|
182
|
-
function
|
182
|
+
function Mr(e) {
|
183
183
|
const t = {};
|
184
184
|
return e.childNodes.forEach(
|
185
185
|
/** @param {Element} node */
|
@@ -192,117 +192,117 @@ let Se;
|
|
192
192
|
function we(e) {
|
193
193
|
Se = e;
|
194
194
|
}
|
195
|
-
function
|
195
|
+
function Rr() {
|
196
196
|
if (!Se)
|
197
197
|
throw new Error("Function called outside component initialization");
|
198
198
|
return Se;
|
199
199
|
}
|
200
|
-
function
|
201
|
-
|
200
|
+
function Dr(e) {
|
201
|
+
Rr().$$.on_mount.push(e);
|
202
202
|
}
|
203
|
-
const
|
204
|
-
let
|
205
|
-
const
|
206
|
-
let
|
207
|
-
function
|
208
|
-
|
203
|
+
const he = [], qe = [];
|
204
|
+
let ce = [];
|
205
|
+
const yt = [], Zt = /* @__PURE__ */ Promise.resolve();
|
206
|
+
let Ye = !1;
|
207
|
+
function Jt() {
|
208
|
+
Ye || (Ye = !0, Zt.then(U));
|
209
209
|
}
|
210
|
-
function
|
211
|
-
return
|
210
|
+
function vo() {
|
211
|
+
return Jt(), Zt;
|
212
212
|
}
|
213
|
-
function
|
214
|
-
|
213
|
+
function Ke(e) {
|
214
|
+
ce.push(e);
|
215
215
|
}
|
216
|
-
const
|
217
|
-
let
|
218
|
-
function
|
219
|
-
if (
|
216
|
+
const Ve = /* @__PURE__ */ new Set();
|
217
|
+
let le = 0;
|
218
|
+
function U() {
|
219
|
+
if (le !== 0)
|
220
220
|
return;
|
221
221
|
const e = Se;
|
222
222
|
do {
|
223
223
|
try {
|
224
|
-
for (;
|
225
|
-
const t =
|
226
|
-
|
224
|
+
for (; le < he.length; ) {
|
225
|
+
const t = he[le];
|
226
|
+
le++, we(t), Ur(t.$$);
|
227
227
|
}
|
228
228
|
} catch (t) {
|
229
|
-
throw
|
229
|
+
throw he.length = 0, le = 0, t;
|
230
230
|
}
|
231
|
-
for (we(null),
|
232
|
-
|
233
|
-
for (let t = 0; t <
|
234
|
-
const r =
|
235
|
-
|
231
|
+
for (we(null), he.length = 0, le = 0; qe.length; )
|
232
|
+
qe.pop()();
|
233
|
+
for (let t = 0; t < ce.length; t += 1) {
|
234
|
+
const r = ce[t];
|
235
|
+
Ve.has(r) || (Ve.add(r), r());
|
236
236
|
}
|
237
|
-
|
238
|
-
} while (
|
239
|
-
for (;
|
240
|
-
|
241
|
-
|
237
|
+
ce.length = 0;
|
238
|
+
} while (he.length);
|
239
|
+
for (; yt.length; )
|
240
|
+
yt.pop()();
|
241
|
+
Ye = !1, Ve.clear(), we(e);
|
242
242
|
}
|
243
|
-
function
|
243
|
+
function Ur(e) {
|
244
244
|
if (e.fragment !== null) {
|
245
245
|
e.update(), Y(e.before_update);
|
246
246
|
const t = e.dirty;
|
247
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
247
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
|
248
248
|
}
|
249
249
|
}
|
250
|
-
function
|
250
|
+
function $r(e) {
|
251
251
|
const t = [], r = [];
|
252
|
-
|
252
|
+
ce.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ce = t;
|
253
253
|
}
|
254
|
-
const
|
255
|
-
function
|
256
|
-
e && e.i && (
|
254
|
+
const Gr = /* @__PURE__ */ new Set();
|
255
|
+
function Qt(e, t) {
|
256
|
+
e && e.i && (Gr.delete(e), e.i(t));
|
257
257
|
}
|
258
|
-
function
|
258
|
+
function _t(e) {
|
259
259
|
return e?.length !== void 0 ? e : Array.from(e);
|
260
260
|
}
|
261
|
-
function
|
261
|
+
function yo(e, t) {
|
262
262
|
e.d(1), t.delete(e.key);
|
263
263
|
}
|
264
|
-
function
|
265
|
-
let c = e.length,
|
264
|
+
function _o(e, t, r, n, i, o, s, a, h, l, u, f) {
|
265
|
+
let c = e.length, p = o.length, v = c;
|
266
266
|
const g = {};
|
267
|
-
for (;
|
268
|
-
g[e[
|
269
|
-
const
|
270
|
-
for (
|
271
|
-
const S =
|
272
|
-
let
|
273
|
-
|
267
|
+
for (; v--; )
|
268
|
+
g[e[v].key] = v;
|
269
|
+
const P = [], w = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), x = [];
|
270
|
+
for (v = p; v--; ) {
|
271
|
+
const S = f(i, o, v), O = r(S);
|
272
|
+
let M = s.get(O);
|
273
|
+
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]));
|
274
274
|
}
|
275
|
-
const
|
276
|
-
function
|
277
|
-
|
275
|
+
const L = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
|
276
|
+
function R(S) {
|
277
|
+
Qt(S, 1), S.m(a, u), s.set(S.key, S), u = S.first, p--;
|
278
278
|
}
|
279
|
-
for (; c &&
|
280
|
-
const S =
|
281
|
-
S ===
|
279
|
+
for (; c && p; ) {
|
280
|
+
const S = P[p - 1], O = e[c - 1], M = S.key, V = O.key;
|
281
|
+
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--);
|
282
282
|
}
|
283
283
|
for (; c--; ) {
|
284
284
|
const S = e[c];
|
285
285
|
w.has(S.key) || h(S, s);
|
286
286
|
}
|
287
|
-
for (;
|
288
|
-
|
289
|
-
return Y(x),
|
287
|
+
for (; p; )
|
288
|
+
R(P[p - 1]);
|
289
|
+
return Y(x), P;
|
290
290
|
}
|
291
|
-
function
|
291
|
+
function kr(e, t, r) {
|
292
292
|
const { fragment: n, after_update: i } = e.$$;
|
293
|
-
n && n.m(t, r),
|
294
|
-
const o = e.$$.on_mount.map(
|
293
|
+
n && n.m(t, r), Ke(() => {
|
294
|
+
const o = e.$$.on_mount.map(Xt).filter(dt);
|
295
295
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Y(o), e.$$.on_mount = [];
|
296
|
-
}), i.forEach(
|
296
|
+
}), i.forEach(Ke);
|
297
297
|
}
|
298
|
-
function
|
298
|
+
function jr(e, t) {
|
299
299
|
const r = e.$$;
|
300
|
-
r.fragment !== null && (
|
300
|
+
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 = []);
|
301
301
|
}
|
302
|
-
function
|
303
|
-
e.$$.dirty[0] === -1 && (
|
302
|
+
function Vr(e, t) {
|
303
|
+
e.$$.dirty[0] === -1 && (he.push(e), Jt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
304
304
|
}
|
305
|
-
function
|
305
|
+
function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
|
306
306
|
const h = Se;
|
307
307
|
we(e);
|
308
308
|
const l = e.$$ = {
|
@@ -310,9 +310,9 @@ function Qr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
310
310
|
ctx: [],
|
311
311
|
// state
|
312
312
|
props: o,
|
313
|
-
update:
|
313
|
+
update: k,
|
314
314
|
not_equal: i,
|
315
|
-
bound:
|
315
|
+
bound: bt(),
|
316
316
|
// lifecycle
|
317
317
|
on_mount: [],
|
318
318
|
on_destroy: [],
|
@@ -321,28 +321,28 @@ function Qr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
321
321
|
after_update: [],
|
322
322
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
323
323
|
// everything else
|
324
|
-
callbacks:
|
324
|
+
callbacks: bt(),
|
325
325
|
dirty: a,
|
326
326
|
skip_bound: !1,
|
327
327
|
root: t.target || h.$$.root
|
328
328
|
};
|
329
329
|
s && s(l.root);
|
330
330
|
let u = !1;
|
331
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
332
|
-
const
|
333
|
-
return l.ctx && i(l.ctx[
|
331
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
332
|
+
const v = p.length ? p[0] : c;
|
333
|
+
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;
|
334
334
|
}) : [], l.update(), u = !0, Y(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
335
335
|
if (t.hydrate) {
|
336
|
-
const
|
337
|
-
l.fragment && l.fragment.l(
|
336
|
+
const f = Nr(t.target);
|
337
|
+
l.fragment && l.fragment.l(f), f.forEach(j);
|
338
338
|
} else
|
339
339
|
l.fragment && l.fragment.c();
|
340
|
-
t.intro &&
|
340
|
+
t.intro && Qt(e.$$.fragment), kr(e, t.target, t.anchor), U();
|
341
341
|
}
|
342
342
|
we(h);
|
343
343
|
}
|
344
|
-
let
|
345
|
-
typeof HTMLElement == "function" && (
|
344
|
+
let qt;
|
345
|
+
typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
346
346
|
/** The Svelte component constructor */
|
347
347
|
$$ctor;
|
348
348
|
/** Slots */
|
@@ -384,24 +384,24 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
384
384
|
let o;
|
385
385
|
return {
|
386
386
|
c: function() {
|
387
|
-
o =
|
387
|
+
o = F("slot"), i !== "default" && m(o, "name", i);
|
388
388
|
},
|
389
389
|
/**
|
390
390
|
* @param {HTMLElement} target
|
391
391
|
* @param {HTMLElement} [anchor]
|
392
392
|
*/
|
393
393
|
m: function(h, l) {
|
394
|
-
|
394
|
+
W(h, o, l);
|
395
395
|
},
|
396
396
|
d: function(h) {
|
397
|
-
h &&
|
397
|
+
h && j(o);
|
398
398
|
}
|
399
399
|
};
|
400
400
|
};
|
401
401
|
};
|
402
402
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
403
403
|
return;
|
404
|
-
const t = {}, r =
|
404
|
+
const t = {}, r = Mr(this);
|
405
405
|
for (const i of this.$$s)
|
406
406
|
i in r && (t[i] = [e(i)]);
|
407
407
|
for (const i of this.attributes) {
|
@@ -488,8 +488,8 @@ function Oe(e, t, r, n) {
|
|
488
488
|
return t;
|
489
489
|
}
|
490
490
|
}
|
491
|
-
function
|
492
|
-
let s = class extends
|
491
|
+
function Wr(e, t, r, n, i, o) {
|
492
|
+
let s = class extends qt {
|
493
493
|
constructor() {
|
494
494
|
super(e, r, i), this.$$p_d = t;
|
495
495
|
}
|
@@ -517,7 +517,7 @@ function qr(e, t, r, n, i, o) {
|
|
517
517
|
}), e.element = /** @type {any} */
|
518
518
|
s, s;
|
519
519
|
}
|
520
|
-
class
|
520
|
+
class zr {
|
521
521
|
/**
|
522
522
|
* ### PRIVATE API
|
523
523
|
*
|
@@ -536,7 +536,7 @@ class Yr {
|
|
536
536
|
$$set = void 0;
|
537
537
|
/** @returns {void} */
|
538
538
|
$destroy() {
|
539
|
-
|
539
|
+
jr(this, 1), this.$destroy = k;
|
540
540
|
}
|
541
541
|
/**
|
542
542
|
* @template {Extract<keyof Events, string>} K
|
@@ -545,8 +545,8 @@ class Yr {
|
|
545
545
|
* @returns {() => void}
|
546
546
|
*/
|
547
547
|
$on(t, r) {
|
548
|
-
if (!
|
549
|
-
return
|
548
|
+
if (!dt(r))
|
549
|
+
return k;
|
550
550
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
551
551
|
return n.push(r), () => {
|
552
552
|
const i = n.indexOf(r);
|
@@ -558,11 +558,11 @@ class Yr {
|
|
558
558
|
* @returns {void}
|
559
559
|
*/
|
560
560
|
$set(t) {
|
561
|
-
this.$$set && !
|
561
|
+
this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
562
562
|
}
|
563
563
|
}
|
564
|
-
const
|
565
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
564
|
+
const Zr = "4";
|
565
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
|
566
566
|
/*! *****************************************************************************
|
567
567
|
Copyright (c) Microsoft Corporation.
|
568
568
|
|
@@ -577,34 +577,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
577
577
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
578
578
|
PERFORMANCE OF THIS SOFTWARE.
|
579
579
|
***************************************************************************** */
|
580
|
-
var
|
581
|
-
return
|
580
|
+
var et = function(e, t) {
|
581
|
+
return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
582
582
|
r.__proto__ = n;
|
583
583
|
} || function(r, n) {
|
584
584
|
for (var i in n)
|
585
585
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
586
|
-
},
|
586
|
+
}, et(e, t);
|
587
587
|
};
|
588
|
-
function
|
588
|
+
function J(e, t) {
|
589
589
|
if (typeof t != "function" && t !== null)
|
590
590
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
591
|
-
|
591
|
+
et(e, t);
|
592
592
|
function r() {
|
593
593
|
this.constructor = e;
|
594
594
|
}
|
595
595
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
596
596
|
}
|
597
|
-
var
|
598
|
-
return
|
597
|
+
var A = function() {
|
598
|
+
return A = Object.assign || function(t) {
|
599
599
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
600
600
|
r = arguments[n];
|
601
601
|
for (var o in r)
|
602
602
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
603
603
|
}
|
604
604
|
return t;
|
605
|
-
},
|
605
|
+
}, A.apply(this, arguments);
|
606
606
|
};
|
607
|
-
function
|
607
|
+
function Jr(e, t) {
|
608
608
|
var r = {};
|
609
609
|
for (var n in e)
|
610
610
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -613,7 +613,7 @@ function en(e, t) {
|
|
613
613
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
614
614
|
return r;
|
615
615
|
}
|
616
|
-
function
|
616
|
+
function tt(e) {
|
617
617
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
618
618
|
if (r)
|
619
619
|
return r.call(e);
|
@@ -625,7 +625,7 @@ function nt(e) {
|
|
625
625
|
};
|
626
626
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
627
627
|
}
|
628
|
-
function
|
628
|
+
function rt(e, t) {
|
629
629
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
630
630
|
if (!r)
|
631
631
|
return e;
|
@@ -645,22 +645,22 @@ function it(e, t) {
|
|
645
645
|
}
|
646
646
|
return o;
|
647
647
|
}
|
648
|
-
function
|
648
|
+
function fe(e, t, r) {
|
649
649
|
if (r || arguments.length === 2)
|
650
650
|
for (var n = 0, i = t.length, o; n < i; n++)
|
651
651
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
652
652
|
return e.concat(o || t);
|
653
653
|
}
|
654
|
-
function
|
654
|
+
function Z(e) {
|
655
655
|
return typeof e == "function";
|
656
656
|
}
|
657
|
-
function
|
657
|
+
function Yt(e) {
|
658
658
|
var t = function(n) {
|
659
659
|
Error.call(n), n.stack = new Error().stack;
|
660
660
|
}, r = e(t);
|
661
661
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
662
662
|
}
|
663
|
-
var
|
663
|
+
var Xe = Yt(function(e) {
|
664
664
|
return function(r) {
|
665
665
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
666
666
|
` + r.map(function(n, i) {
|
@@ -669,13 +669,13 @@ var We = rr(function(e) {
|
|
669
669
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
670
670
|
};
|
671
671
|
});
|
672
|
-
function
|
672
|
+
function nt(e, t) {
|
673
673
|
if (e) {
|
674
674
|
var r = e.indexOf(t);
|
675
675
|
0 <= r && e.splice(r, 1);
|
676
676
|
}
|
677
677
|
}
|
678
|
-
var
|
678
|
+
var Ue = function() {
|
679
679
|
function e(t) {
|
680
680
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
681
681
|
}
|
@@ -687,7 +687,7 @@ var $e = function() {
|
|
687
687
|
if (s)
|
688
688
|
if (this._parentage = null, Array.isArray(s))
|
689
689
|
try {
|
690
|
-
for (var a =
|
690
|
+
for (var a = tt(s), h = a.next(); !h.done; h = a.next()) {
|
691
691
|
var l = h.value;
|
692
692
|
l.remove(this);
|
693
693
|
}
|
@@ -704,29 +704,29 @@ var $e = function() {
|
|
704
704
|
else
|
705
705
|
s.remove(this);
|
706
706
|
var u = this.initialTeardown;
|
707
|
-
if (
|
707
|
+
if (Z(u))
|
708
708
|
try {
|
709
709
|
u();
|
710
710
|
} catch (g) {
|
711
|
-
o = g instanceof
|
711
|
+
o = g instanceof Xe ? g.errors : [g];
|
712
712
|
}
|
713
|
-
var
|
714
|
-
if (
|
713
|
+
var f = this._finalizers;
|
714
|
+
if (f) {
|
715
715
|
this._finalizers = null;
|
716
716
|
try {
|
717
|
-
for (var c =
|
718
|
-
var
|
717
|
+
for (var c = tt(f), p = c.next(); !p.done; p = c.next()) {
|
718
|
+
var v = p.value;
|
719
719
|
try {
|
720
|
-
|
720
|
+
xt(v);
|
721
721
|
} catch (g) {
|
722
|
-
o = o ?? [], g instanceof
|
722
|
+
o = o ?? [], g instanceof Xe ? o = fe(fe([], rt(o)), rt(g.errors)) : o.push(g);
|
723
723
|
}
|
724
724
|
}
|
725
725
|
} catch (g) {
|
726
726
|
n = { error: g };
|
727
727
|
} finally {
|
728
728
|
try {
|
729
|
-
|
729
|
+
p && !p.done && (i = c.return) && i.call(c);
|
730
730
|
} finally {
|
731
731
|
if (n)
|
732
732
|
throw n.error;
|
@@ -734,13 +734,13 @@ var $e = function() {
|
|
734
734
|
}
|
735
735
|
}
|
736
736
|
if (o)
|
737
|
-
throw new
|
737
|
+
throw new Xe(o);
|
738
738
|
}
|
739
739
|
}, e.prototype.add = function(t) {
|
740
740
|
var r;
|
741
741
|
if (t && t !== this)
|
742
742
|
if (this.closed)
|
743
|
-
|
743
|
+
xt(t);
|
744
744
|
else {
|
745
745
|
if (t instanceof e) {
|
746
746
|
if (t.closed || t._hasParent(this))
|
@@ -757,56 +757,52 @@ var $e = function() {
|
|
757
757
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
758
758
|
}, e.prototype._removeParent = function(t) {
|
759
759
|
var r = this._parentage;
|
760
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
760
|
+
r === t ? this._parentage = null : Array.isArray(r) && nt(r, t);
|
761
761
|
}, e.prototype.remove = function(t) {
|
762
762
|
var r = this._finalizers;
|
763
|
-
r &&
|
763
|
+
r && nt(r, t), t instanceof e && t._removeParent(this);
|
764
764
|
}, e.EMPTY = function() {
|
765
765
|
var t = new e();
|
766
766
|
return t.closed = !0, t;
|
767
767
|
}(), e;
|
768
|
-
}(),
|
769
|
-
function
|
770
|
-
return e instanceof
|
771
|
-
}
|
772
|
-
function
|
773
|
-
|
774
|
-
}
|
775
|
-
var
|
776
|
-
|
777
|
-
|
778
|
-
Promise: void 0,
|
779
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
780
|
-
useDeprecatedNextContext: !1
|
781
|
-
}, tn = {
|
768
|
+
}(), Kt = Ue.EMPTY;
|
769
|
+
function er(e) {
|
770
|
+
return e instanceof Ue || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
771
|
+
}
|
772
|
+
function xt(e) {
|
773
|
+
Z(e) ? e() : e.unsubscribe();
|
774
|
+
}
|
775
|
+
var Qr = {
|
776
|
+
Promise: void 0
|
777
|
+
}, qr = {
|
782
778
|
setTimeout: function(e, t) {
|
783
779
|
for (var r = [], n = 2; n < arguments.length; n++)
|
784
780
|
r[n - 2] = arguments[n];
|
785
|
-
return setTimeout.apply(void 0,
|
781
|
+
return setTimeout.apply(void 0, fe([e, t], rt(r)));
|
786
782
|
},
|
787
783
|
clearTimeout: function(e) {
|
788
784
|
return clearTimeout(e);
|
789
785
|
},
|
790
786
|
delegate: void 0
|
791
787
|
};
|
792
|
-
function
|
793
|
-
|
788
|
+
function Yr(e) {
|
789
|
+
qr.setTimeout(function() {
|
794
790
|
throw e;
|
795
791
|
});
|
796
792
|
}
|
797
|
-
function
|
793
|
+
function Et() {
|
798
794
|
}
|
799
|
-
function
|
795
|
+
function Ie(e) {
|
800
796
|
e();
|
801
797
|
}
|
802
|
-
var
|
803
|
-
|
798
|
+
var tr = function(e) {
|
799
|
+
J(t, e);
|
804
800
|
function t(r) {
|
805
801
|
var n = e.call(this) || this;
|
806
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
802
|
+
return n.isStopped = !1, r ? (n.destination = r, er(r) && r.add(n)) : n.destination = tn, n;
|
807
803
|
}
|
808
804
|
return t.create = function(r, n, i) {
|
809
|
-
return new
|
805
|
+
return new it(r, n, i);
|
810
806
|
}, t.prototype.next = function(r) {
|
811
807
|
this.isStopped || this._next(r);
|
812
808
|
}, t.prototype.error = function(r) {
|
@@ -830,11 +826,7 @@ var sr = function(e) {
|
|
830
826
|
this.unsubscribe();
|
831
827
|
}
|
832
828
|
}, t;
|
833
|
-
}(
|
834
|
-
function ze(e, t) {
|
835
|
-
return nn.call(e, t);
|
836
|
-
}
|
837
|
-
var on = function() {
|
829
|
+
}(Ue), Kr = function() {
|
838
830
|
function e(t) {
|
839
831
|
this.partialObserver = t;
|
840
832
|
}
|
@@ -844,7 +836,7 @@ var on = function() {
|
|
844
836
|
try {
|
845
837
|
r.next(t);
|
846
838
|
} catch (n) {
|
847
|
-
|
839
|
+
Ce(n);
|
848
840
|
}
|
849
841
|
}, e.prototype.error = function(t) {
|
850
842
|
var r = this.partialObserver;
|
@@ -852,68 +844,56 @@ var on = function() {
|
|
852
844
|
try {
|
853
845
|
r.error(t);
|
854
846
|
} catch (n) {
|
855
|
-
|
847
|
+
Ce(n);
|
856
848
|
}
|
857
849
|
else
|
858
|
-
|
850
|
+
Ce(t);
|
859
851
|
}, e.prototype.complete = function() {
|
860
852
|
var t = this.partialObserver;
|
861
853
|
if (t.complete)
|
862
854
|
try {
|
863
855
|
t.complete();
|
864
856
|
} catch (r) {
|
865
|
-
|
857
|
+
Ce(r);
|
866
858
|
}
|
867
859
|
}, e;
|
868
|
-
}(),
|
869
|
-
|
860
|
+
}(), it = function(e) {
|
861
|
+
J(t, e);
|
870
862
|
function t(r, n, i) {
|
871
863
|
var o = e.call(this) || this, s;
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
};
|
878
|
-
else {
|
879
|
-
var a;
|
880
|
-
o && or.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
881
|
-
return o.unsubscribe();
|
882
|
-
}, s = {
|
883
|
-
next: r.next && ze(r.next, a),
|
884
|
-
error: r.error && ze(r.error, a),
|
885
|
-
complete: r.complete && ze(r.complete, a)
|
886
|
-
}) : s = r;
|
887
|
-
}
|
888
|
-
return o.destination = new on(s), o;
|
864
|
+
return Z(r) || !r ? s = {
|
865
|
+
next: r ?? void 0,
|
866
|
+
error: n ?? void 0,
|
867
|
+
complete: i ?? void 0
|
868
|
+
} : s = r, o.destination = new Kr(s), o;
|
889
869
|
}
|
890
870
|
return t;
|
891
|
-
}(
|
892
|
-
function
|
893
|
-
|
871
|
+
}(tr);
|
872
|
+
function Ce(e) {
|
873
|
+
Yr(e);
|
894
874
|
}
|
895
|
-
function
|
875
|
+
function en(e) {
|
896
876
|
throw e;
|
897
877
|
}
|
898
|
-
var
|
878
|
+
var tn = {
|
899
879
|
closed: !0,
|
900
|
-
next:
|
901
|
-
error:
|
902
|
-
complete:
|
903
|
-
},
|
880
|
+
next: Et,
|
881
|
+
error: en,
|
882
|
+
complete: Et
|
883
|
+
}, rn = function() {
|
904
884
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
905
885
|
}();
|
906
|
-
function
|
886
|
+
function nn(e) {
|
907
887
|
return e;
|
908
888
|
}
|
909
|
-
function
|
910
|
-
return e.length === 0 ?
|
889
|
+
function on(e) {
|
890
|
+
return e.length === 0 ? nn : e.length === 1 ? e[0] : function(r) {
|
911
891
|
return e.reduce(function(n, i) {
|
912
892
|
return i(n);
|
913
893
|
}, r);
|
914
894
|
};
|
915
895
|
}
|
916
|
-
var
|
896
|
+
var wt = function() {
|
917
897
|
function e(t) {
|
918
898
|
t && (this._subscribe = t);
|
919
899
|
}
|
@@ -921,8 +901,8 @@ var At = function() {
|
|
921
901
|
var r = new e();
|
922
902
|
return r.source = this, r.operator = t, r;
|
923
903
|
}, e.prototype.subscribe = function(t, r, n) {
|
924
|
-
var i = this, o =
|
925
|
-
return
|
904
|
+
var i = this, o = an(t) ? t : new it(t, r, n);
|
905
|
+
return Ie(function() {
|
926
906
|
var s = i, a = s.operator, h = s.source;
|
927
907
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
928
908
|
}), o;
|
@@ -934,8 +914,8 @@ var At = function() {
|
|
934
914
|
}
|
935
915
|
}, e.prototype.forEach = function(t, r) {
|
936
916
|
var n = this;
|
937
|
-
return r =
|
938
|
-
var s = new
|
917
|
+
return r = St(r), new r(function(i, o) {
|
918
|
+
var s = new it({
|
939
919
|
next: function(a) {
|
940
920
|
try {
|
941
921
|
t(a);
|
@@ -951,15 +931,15 @@ var At = function() {
|
|
951
931
|
}, e.prototype._subscribe = function(t) {
|
952
932
|
var r;
|
953
933
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
954
|
-
}, e.prototype[
|
934
|
+
}, e.prototype[rn] = function() {
|
955
935
|
return this;
|
956
936
|
}, e.prototype.pipe = function() {
|
957
937
|
for (var t = [], r = 0; r < arguments.length; r++)
|
958
938
|
t[r] = arguments[r];
|
959
|
-
return
|
939
|
+
return on(t)(this);
|
960
940
|
}, e.prototype.toPromise = function(t) {
|
961
941
|
var r = this;
|
962
|
-
return t =
|
942
|
+
return t = St(t), new t(function(n, i) {
|
963
943
|
var o;
|
964
944
|
r.subscribe(function(s) {
|
965
945
|
return o = s;
|
@@ -973,40 +953,40 @@ var At = function() {
|
|
973
953
|
return new e(t);
|
974
954
|
}, e;
|
975
955
|
}();
|
976
|
-
function
|
956
|
+
function St(e) {
|
977
957
|
var t;
|
978
|
-
return (t = e ??
|
958
|
+
return (t = e ?? Qr.Promise) !== null && t !== void 0 ? t : Promise;
|
979
959
|
}
|
980
|
-
function
|
981
|
-
return e &&
|
960
|
+
function sn(e) {
|
961
|
+
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
982
962
|
}
|
983
|
-
function
|
984
|
-
return e && e instanceof
|
963
|
+
function an(e) {
|
964
|
+
return e && e instanceof tr || sn(e) && er(e);
|
985
965
|
}
|
986
|
-
var
|
966
|
+
var ln = Yt(function(e) {
|
987
967
|
return function() {
|
988
968
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
989
969
|
};
|
990
|
-
}),
|
991
|
-
|
970
|
+
}), rr = function(e) {
|
971
|
+
J(t, e);
|
992
972
|
function t() {
|
993
973
|
var r = e.call(this) || this;
|
994
974
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
995
975
|
}
|
996
976
|
return t.prototype.lift = function(r) {
|
997
|
-
var n = new
|
977
|
+
var n = new Tt(this, this);
|
998
978
|
return n.operator = r, n;
|
999
979
|
}, t.prototype._throwIfClosed = function() {
|
1000
980
|
if (this.closed)
|
1001
|
-
throw new
|
981
|
+
throw new ln();
|
1002
982
|
}, t.prototype.next = function(r) {
|
1003
983
|
var n = this;
|
1004
|
-
|
984
|
+
Ie(function() {
|
1005
985
|
var i, o;
|
1006
986
|
if (n._throwIfClosed(), !n.isStopped) {
|
1007
987
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
1008
988
|
try {
|
1009
|
-
for (var s =
|
989
|
+
for (var s = tt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
1010
990
|
var h = a.value;
|
1011
991
|
h.next(r);
|
1012
992
|
}
|
@@ -1024,7 +1004,7 @@ var dn = rr(function(e) {
|
|
1024
1004
|
});
|
1025
1005
|
}, t.prototype.error = function(r) {
|
1026
1006
|
var n = this;
|
1027
|
-
|
1007
|
+
Ie(function() {
|
1028
1008
|
if (n._throwIfClosed(), !n.isStopped) {
|
1029
1009
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
1030
1010
|
for (var i = n.observers; i.length; )
|
@@ -1033,7 +1013,7 @@ var dn = rr(function(e) {
|
|
1033
1013
|
});
|
1034
1014
|
}, t.prototype.complete = function() {
|
1035
1015
|
var r = this;
|
1036
|
-
|
1016
|
+
Ie(function() {
|
1037
1017
|
if (r._throwIfClosed(), !r.isStopped) {
|
1038
1018
|
r.isStopped = !0;
|
1039
1019
|
for (var n = r.observers; n.length; )
|
@@ -1055,20 +1035,20 @@ var dn = rr(function(e) {
|
|
1055
1035
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
1056
1036
|
}, t.prototype._innerSubscribe = function(r) {
|
1057
1037
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
1058
|
-
return o || s ?
|
1059
|
-
n.currentObservers = null,
|
1038
|
+
return o || s ? Kt : (this.currentObservers = null, a.push(r), new Ue(function() {
|
1039
|
+
n.currentObservers = null, nt(a, r);
|
1060
1040
|
}));
|
1061
1041
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
1062
1042
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
1063
1043
|
i ? r.error(o) : s && r.complete();
|
1064
1044
|
}, t.prototype.asObservable = function() {
|
1065
|
-
var r = new
|
1045
|
+
var r = new wt();
|
1066
1046
|
return r.source = this, r;
|
1067
1047
|
}, t.create = function(r, n) {
|
1068
|
-
return new
|
1048
|
+
return new Tt(r, n);
|
1069
1049
|
}, t;
|
1070
|
-
}(
|
1071
|
-
|
1050
|
+
}(wt), Tt = function(e) {
|
1051
|
+
J(t, e);
|
1072
1052
|
function t(r, n) {
|
1073
1053
|
var i = e.call(this) || this;
|
1074
1054
|
return i.destination = r, i.source = n, i;
|
@@ -1084,17 +1064,17 @@ var dn = rr(function(e) {
|
|
1084
1064
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
1085
1065
|
}, t.prototype._subscribe = function(r) {
|
1086
1066
|
var n, i;
|
1087
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1067
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Kt;
|
1088
1068
|
}, t;
|
1089
|
-
}(
|
1069
|
+
}(rr), nr = {
|
1090
1070
|
now: function() {
|
1091
|
-
return (
|
1071
|
+
return (nr.delegate || Date).now();
|
1092
1072
|
},
|
1093
1073
|
delegate: void 0
|
1094
|
-
},
|
1095
|
-
|
1074
|
+
}, un = function(e) {
|
1075
|
+
J(t, e);
|
1096
1076
|
function t(r, n, i) {
|
1097
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1077
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = nr);
|
1098
1078
|
var o = e.call(this) || this;
|
1099
1079
|
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;
|
1100
1080
|
}
|
@@ -1114,65 +1094,65 @@ var dn = rr(function(e) {
|
|
1114
1094
|
l && o.splice(0, l + 1);
|
1115
1095
|
}
|
1116
1096
|
}, t;
|
1117
|
-
}(
|
1118
|
-
const
|
1119
|
-
if (
|
1120
|
-
const r = new
|
1121
|
-
|
1097
|
+
}(rr);
|
1098
|
+
const Ht = [], At = {}, hn = (e, t = 0) => {
|
1099
|
+
if (Ht.indexOf(e) == -1) {
|
1100
|
+
const r = new un(t);
|
1101
|
+
At[e] = r, Ht.push(e);
|
1122
1102
|
}
|
1123
|
-
return
|
1124
|
-
},
|
1125
|
-
function
|
1103
|
+
return At[e];
|
1104
|
+
}, ue = [];
|
1105
|
+
function cn(e, t) {
|
1126
1106
|
return {
|
1127
|
-
subscribe:
|
1107
|
+
subscribe: $e(e, t).subscribe
|
1128
1108
|
};
|
1129
1109
|
}
|
1130
|
-
function
|
1110
|
+
function $e(e, t = k) {
|
1131
1111
|
let r;
|
1132
1112
|
const n = /* @__PURE__ */ new Set();
|
1133
1113
|
function i(a) {
|
1134
|
-
if (
|
1135
|
-
const h = !
|
1114
|
+
if (Wt(e, a) && (e = a, r)) {
|
1115
|
+
const h = !ue.length;
|
1136
1116
|
for (const l of n)
|
1137
|
-
l[1](),
|
1117
|
+
l[1](), ue.push(l, e);
|
1138
1118
|
if (h) {
|
1139
|
-
for (let l = 0; l <
|
1140
|
-
|
1141
|
-
|
1119
|
+
for (let l = 0; l < ue.length; l += 2)
|
1120
|
+
ue[l][0](ue[l + 1]);
|
1121
|
+
ue.length = 0;
|
1142
1122
|
}
|
1143
1123
|
}
|
1144
1124
|
}
|
1145
1125
|
function o(a) {
|
1146
1126
|
i(a(e));
|
1147
1127
|
}
|
1148
|
-
function s(a, h =
|
1128
|
+
function s(a, h = k) {
|
1149
1129
|
const l = [a, h];
|
1150
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
1130
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || k), a(e), () => {
|
1151
1131
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
1152
1132
|
};
|
1153
1133
|
}
|
1154
1134
|
return { set: i, update: o, subscribe: s };
|
1155
1135
|
}
|
1156
|
-
function
|
1136
|
+
function ge(e, t, r) {
|
1157
1137
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1158
1138
|
if (!i.every(Boolean))
|
1159
1139
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1160
1140
|
const o = t.length < 2;
|
1161
|
-
return
|
1141
|
+
return cn(r, (s, a) => {
|
1162
1142
|
let h = !1;
|
1163
1143
|
const l = [];
|
1164
|
-
let u = 0,
|
1144
|
+
let u = 0, f = k;
|
1165
1145
|
const c = () => {
|
1166
1146
|
if (u)
|
1167
1147
|
return;
|
1168
|
-
|
1169
|
-
const
|
1170
|
-
o ? s(
|
1171
|
-
},
|
1172
|
-
(
|
1173
|
-
|
1174
|
-
(
|
1175
|
-
l[g] =
|
1148
|
+
f();
|
1149
|
+
const v = t(n ? l[0] : l, s, a);
|
1150
|
+
o ? s(v) : f = dt(v) ? v : k;
|
1151
|
+
}, p = i.map(
|
1152
|
+
(v, g) => zt(
|
1153
|
+
v,
|
1154
|
+
(P) => {
|
1155
|
+
l[g] = P, u &= ~(1 << g), h && c();
|
1176
1156
|
},
|
1177
1157
|
() => {
|
1178
1158
|
u |= 1 << g;
|
@@ -1180,134 +1160,132 @@ function ye(e, t, r) {
|
|
1180
1160
|
)
|
1181
1161
|
);
|
1182
1162
|
return h = !0, c(), function() {
|
1183
|
-
Y(
|
1163
|
+
Y(p), f(), h = !1;
|
1184
1164
|
};
|
1185
1165
|
});
|
1186
1166
|
}
|
1187
|
-
function
|
1167
|
+
function fn(e) {
|
1188
1168
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1189
1169
|
}
|
1190
|
-
var
|
1191
|
-
return
|
1170
|
+
var dn = function(t) {
|
1171
|
+
return pn(t) && !mn(t);
|
1192
1172
|
};
|
1193
|
-
function
|
1173
|
+
function pn(e) {
|
1194
1174
|
return !!e && typeof e == "object";
|
1195
1175
|
}
|
1196
|
-
function
|
1176
|
+
function mn(e) {
|
1197
1177
|
var t = Object.prototype.toString.call(e);
|
1198
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1178
|
+
return t === "[object RegExp]" || t === "[object Date]" || vn(e);
|
1199
1179
|
}
|
1200
|
-
var
|
1201
|
-
function
|
1202
|
-
return e.$$typeof ===
|
1180
|
+
var bn = typeof Symbol == "function" && Symbol.for, gn = bn ? Symbol.for("react.element") : 60103;
|
1181
|
+
function vn(e) {
|
1182
|
+
return e.$$typeof === gn;
|
1203
1183
|
}
|
1204
|
-
function
|
1184
|
+
function yn(e) {
|
1205
1185
|
return Array.isArray(e) ? [] : {};
|
1206
1186
|
}
|
1207
1187
|
function Te(e, t) {
|
1208
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
1188
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? de(yn(e), e, t) : e;
|
1209
1189
|
}
|
1210
|
-
function
|
1190
|
+
function _n(e, t, r) {
|
1211
1191
|
return e.concat(t).map(function(n) {
|
1212
1192
|
return Te(n, r);
|
1213
1193
|
});
|
1214
1194
|
}
|
1215
|
-
function
|
1195
|
+
function xn(e, t) {
|
1216
1196
|
if (!t.customMerge)
|
1217
|
-
return
|
1197
|
+
return de;
|
1218
1198
|
var r = t.customMerge(e);
|
1219
|
-
return typeof r == "function" ? r :
|
1199
|
+
return typeof r == "function" ? r : de;
|
1220
1200
|
}
|
1221
|
-
function
|
1201
|
+
function En(e) {
|
1222
1202
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1223
1203
|
return Object.propertyIsEnumerable.call(e, t);
|
1224
1204
|
}) : [];
|
1225
1205
|
}
|
1226
|
-
function
|
1227
|
-
return Object.keys(e).concat(
|
1206
|
+
function Pt(e) {
|
1207
|
+
return Object.keys(e).concat(En(e));
|
1228
1208
|
}
|
1229
|
-
function
|
1209
|
+
function ir(e, t) {
|
1230
1210
|
try {
|
1231
1211
|
return t in e;
|
1232
1212
|
} catch {
|
1233
1213
|
return !1;
|
1234
1214
|
}
|
1235
1215
|
}
|
1236
|
-
function
|
1237
|
-
return
|
1216
|
+
function wn(e, t) {
|
1217
|
+
return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1238
1218
|
}
|
1239
|
-
function
|
1219
|
+
function Sn(e, t, r) {
|
1240
1220
|
var n = {};
|
1241
|
-
return r.isMergeableObject(e) &&
|
1221
|
+
return r.isMergeableObject(e) && Pt(e).forEach(function(i) {
|
1242
1222
|
n[i] = Te(e[i], r);
|
1243
|
-
}),
|
1244
|
-
|
1223
|
+
}), Pt(t).forEach(function(i) {
|
1224
|
+
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));
|
1245
1225
|
}), n;
|
1246
1226
|
}
|
1247
|
-
function
|
1248
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1227
|
+
function de(e, t, r) {
|
1228
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _n, r.isMergeableObject = r.isMergeableObject || dn, r.cloneUnlessOtherwiseSpecified = Te;
|
1249
1229
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1250
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
1230
|
+
return o ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : Te(t, r);
|
1251
1231
|
}
|
1252
|
-
|
1232
|
+
de.all = function(t, r) {
|
1253
1233
|
if (!Array.isArray(t))
|
1254
1234
|
throw new Error("first argument should be an array");
|
1255
1235
|
return t.reduce(function(n, i) {
|
1256
|
-
return
|
1236
|
+
return de(n, i, r);
|
1257
1237
|
}, {});
|
1258
1238
|
};
|
1259
|
-
var
|
1260
|
-
const
|
1261
|
-
function
|
1262
|
-
var r = t && t.cache ? t.cache :
|
1239
|
+
var Tn = de, Hn = Tn;
|
1240
|
+
const An = /* @__PURE__ */ fn(Hn);
|
1241
|
+
function We(e, t) {
|
1242
|
+
var r = t && t.cache ? t.cache : Ln, n = t && t.serializer ? t.serializer : On, i = t && t.strategy ? t.strategy : Cn;
|
1263
1243
|
return i(e, {
|
1264
1244
|
cache: r,
|
1265
1245
|
serializer: n
|
1266
1246
|
});
|
1267
1247
|
}
|
1268
|
-
function
|
1248
|
+
function Pn(e) {
|
1269
1249
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1270
1250
|
}
|
1271
|
-
function
|
1272
|
-
var i =
|
1251
|
+
function Fn(e, t, r, n) {
|
1252
|
+
var i = Pn(n) ? n : r(n), o = t.get(i);
|
1273
1253
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
1274
1254
|
}
|
1275
|
-
function
|
1255
|
+
function or(e, t, r) {
|
1276
1256
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
1277
1257
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
1278
1258
|
}
|
1279
|
-
function
|
1259
|
+
function sr(e, t, r, n, i) {
|
1280
1260
|
return r.bind(t, e, n, i);
|
1281
1261
|
}
|
1282
|
-
function
|
1283
|
-
var r = e.length === 1 ?
|
1284
|
-
return
|
1262
|
+
function Cn(e, t) {
|
1263
|
+
var r = e.length === 1 ? Fn : or;
|
1264
|
+
return sr(e, this, r, t.cache.create(), t.serializer);
|
1285
1265
|
}
|
1286
|
-
function
|
1287
|
-
return
|
1266
|
+
function Bn(e, t) {
|
1267
|
+
return sr(e, this, or, t.cache.create(), t.serializer);
|
1288
1268
|
}
|
1289
|
-
function
|
1290
|
-
return bt(e, this, hr, t.cache.create(), t.serializer);
|
1291
|
-
}
|
1292
|
-
var Rn = function() {
|
1269
|
+
var On = function() {
|
1293
1270
|
return JSON.stringify(arguments);
|
1294
|
-
}
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
1271
|
+
}, In = (
|
1272
|
+
/** @class */
|
1273
|
+
function() {
|
1274
|
+
function e() {
|
1275
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1276
|
+
}
|
1277
|
+
return e.prototype.get = function(t) {
|
1278
|
+
return this.cache[t];
|
1279
|
+
}, e.prototype.set = function(t, r) {
|
1280
|
+
this.cache[t] = r;
|
1281
|
+
}, e;
|
1282
|
+
}()
|
1283
|
+
), Ln = {
|
1305
1284
|
create: function() {
|
1306
|
-
return new
|
1285
|
+
return new In();
|
1307
1286
|
}
|
1308
|
-
},
|
1309
|
-
variadic:
|
1310
|
-
monadic: Mn
|
1287
|
+
}, ze = {
|
1288
|
+
variadic: Bn
|
1311
1289
|
}, E;
|
1312
1290
|
(function(e) {
|
1313
1291
|
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";
|
@@ -1316,47 +1294,47 @@ var B;
|
|
1316
1294
|
(function(e) {
|
1317
1295
|
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";
|
1318
1296
|
})(B || (B = {}));
|
1319
|
-
var
|
1297
|
+
var pe;
|
1320
1298
|
(function(e) {
|
1321
1299
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1322
|
-
})(
|
1323
|
-
function
|
1300
|
+
})(pe || (pe = {}));
|
1301
|
+
function Ft(e) {
|
1324
1302
|
return e.type === B.literal;
|
1325
1303
|
}
|
1326
|
-
function
|
1304
|
+
function Nn(e) {
|
1327
1305
|
return e.type === B.argument;
|
1328
1306
|
}
|
1329
|
-
function
|
1307
|
+
function ar(e) {
|
1330
1308
|
return e.type === B.number;
|
1331
1309
|
}
|
1332
|
-
function
|
1310
|
+
function lr(e) {
|
1333
1311
|
return e.type === B.date;
|
1334
1312
|
}
|
1335
|
-
function
|
1313
|
+
function ur(e) {
|
1336
1314
|
return e.type === B.time;
|
1337
1315
|
}
|
1338
|
-
function
|
1316
|
+
function hr(e) {
|
1339
1317
|
return e.type === B.select;
|
1340
1318
|
}
|
1341
|
-
function
|
1319
|
+
function cr(e) {
|
1342
1320
|
return e.type === B.plural;
|
1343
1321
|
}
|
1344
|
-
function
|
1322
|
+
function Mn(e) {
|
1345
1323
|
return e.type === B.pound;
|
1346
1324
|
}
|
1347
|
-
function
|
1325
|
+
function fr(e) {
|
1348
1326
|
return e.type === B.tag;
|
1349
1327
|
}
|
1350
|
-
function
|
1351
|
-
return !!(e && typeof e == "object" && e.type ===
|
1328
|
+
function dr(e) {
|
1329
|
+
return !!(e && typeof e == "object" && e.type === pe.number);
|
1352
1330
|
}
|
1353
|
-
function
|
1354
|
-
return !!(e && typeof e == "object" && e.type ===
|
1331
|
+
function ot(e) {
|
1332
|
+
return !!(e && typeof e == "object" && e.type === pe.dateTime);
|
1355
1333
|
}
|
1356
|
-
var
|
1357
|
-
function
|
1334
|
+
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;
|
1335
|
+
function Dn(e) {
|
1358
1336
|
var t = {};
|
1359
|
-
return e.replace(
|
1337
|
+
return e.replace(Rn, function(r) {
|
1360
1338
|
var n = r.length;
|
1361
1339
|
switch (r[0]) {
|
1362
1340
|
case "G":
|
@@ -1445,36 +1423,36 @@ function kn(e) {
|
|
1445
1423
|
return "";
|
1446
1424
|
}), t;
|
1447
1425
|
}
|
1448
|
-
var
|
1449
|
-
function
|
1426
|
+
var Un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1427
|
+
function $n(e) {
|
1450
1428
|
if (e.length === 0)
|
1451
1429
|
throw new Error("Number skeleton cannot be empty");
|
1452
|
-
for (var t = e.split(
|
1430
|
+
for (var t = e.split(Un).filter(function(c) {
|
1453
1431
|
return c.length > 0;
|
1454
1432
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1455
1433
|
var o = i[n], s = o.split("/");
|
1456
1434
|
if (s.length === 0)
|
1457
1435
|
throw new Error("Invalid number skeleton");
|
1458
1436
|
for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
|
1459
|
-
var
|
1460
|
-
if (
|
1437
|
+
var f = u[l];
|
1438
|
+
if (f.length === 0)
|
1461
1439
|
throw new Error("Invalid number skeleton");
|
1462
1440
|
}
|
1463
1441
|
r.push({ stem: a, options: h });
|
1464
1442
|
}
|
1465
1443
|
return r;
|
1466
1444
|
}
|
1467
|
-
function
|
1445
|
+
function Gn(e) {
|
1468
1446
|
return e.replace(/^(.*?)-/, "");
|
1469
1447
|
}
|
1470
|
-
var
|
1471
|
-
function
|
1448
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mr = /^(@+)?(\+|#+)?[rs]?$/g, kn = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
|
1449
|
+
function Bt(e) {
|
1472
1450
|
var t = {};
|
1473
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1451
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mr, function(r, n, i) {
|
1474
1452
|
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)), "";
|
1475
1453
|
}), t;
|
1476
1454
|
}
|
1477
|
-
function
|
1455
|
+
function gr(e) {
|
1478
1456
|
switch (e) {
|
1479
1457
|
case "sign-auto":
|
1480
1458
|
return {
|
@@ -1514,7 +1492,7 @@ function Er(e) {
|
|
1514
1492
|
};
|
1515
1493
|
}
|
1516
1494
|
}
|
1517
|
-
function
|
1495
|
+
function jn(e) {
|
1518
1496
|
var t;
|
1519
1497
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1520
1498
|
notation: "engineering"
|
@@ -1522,17 +1500,17 @@ function zn(e) {
|
|
1522
1500
|
notation: "scientific"
|
1523
1501
|
}, e = e.slice(1)), t) {
|
1524
1502
|
var r = e.slice(0, 2);
|
1525
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1503
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
|
1526
1504
|
throw new Error("Malformed concise eng/scientific notation");
|
1527
1505
|
t.minimumIntegerDigits = e.length;
|
1528
1506
|
}
|
1529
1507
|
return t;
|
1530
1508
|
}
|
1531
|
-
function
|
1532
|
-
var t = {}, r =
|
1509
|
+
function Ot(e) {
|
1510
|
+
var t = {}, r = gr(e);
|
1533
1511
|
return r || t;
|
1534
1512
|
}
|
1535
|
-
function
|
1513
|
+
function Vn(e) {
|
1536
1514
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1537
1515
|
var i = n[r];
|
1538
1516
|
switch (i.stem) {
|
@@ -1556,7 +1534,7 @@ function Zn(e) {
|
|
1556
1534
|
continue;
|
1557
1535
|
case "measure-unit":
|
1558
1536
|
case "unit":
|
1559
|
-
t.style = "unit", t.unit =
|
1537
|
+
t.style = "unit", t.unit = Gn(i.options[0]);
|
1560
1538
|
continue;
|
1561
1539
|
case "compact-short":
|
1562
1540
|
case "K":
|
@@ -1567,13 +1545,13 @@ function Zn(e) {
|
|
1567
1545
|
t.notation = "compact", t.compactDisplay = "long";
|
1568
1546
|
continue;
|
1569
1547
|
case "scientific":
|
1570
|
-
t =
|
1571
|
-
return
|
1548
|
+
t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
1549
|
+
return A(A({}, h), Ot(l));
|
1572
1550
|
}, {}));
|
1573
1551
|
continue;
|
1574
1552
|
case "engineering":
|
1575
|
-
t =
|
1576
|
-
return
|
1553
|
+
t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
1554
|
+
return A(A({}, h), Ot(l));
|
1577
1555
|
}, {}));
|
1578
1556
|
continue;
|
1579
1557
|
case "notation-simple":
|
@@ -1618,45 +1596,45 @@ function Zn(e) {
|
|
1618
1596
|
case "integer-width":
|
1619
1597
|
if (i.options.length > 1)
|
1620
1598
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1621
|
-
i.options[0].replace(
|
1599
|
+
i.options[0].replace(kn, function(h, l, u, f, c, p) {
|
1622
1600
|
if (l)
|
1623
1601
|
t.minimumIntegerDigits = u.length;
|
1624
1602
|
else {
|
1625
|
-
if (
|
1603
|
+
if (f && c)
|
1626
1604
|
throw new Error("We currently do not support maximum integer digits");
|
1627
|
-
if (
|
1605
|
+
if (p)
|
1628
1606
|
throw new Error("We currently do not support exact integer digits");
|
1629
1607
|
}
|
1630
1608
|
return "";
|
1631
1609
|
});
|
1632
1610
|
continue;
|
1633
1611
|
}
|
1634
|
-
if (
|
1612
|
+
if (br.test(i.stem)) {
|
1635
1613
|
t.minimumIntegerDigits = i.stem.length;
|
1636
1614
|
continue;
|
1637
1615
|
}
|
1638
|
-
if (
|
1616
|
+
if (Ct.test(i.stem)) {
|
1639
1617
|
if (i.options.length > 1)
|
1640
1618
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1641
|
-
i.stem.replace(
|
1642
|
-
return u === "*" ? t.minimumFractionDigits = l.length :
|
1619
|
+
i.stem.replace(Ct, function(h, l, u, f, c, p) {
|
1620
|
+
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), "";
|
1643
1621
|
});
|
1644
1622
|
var o = i.options[0];
|
1645
|
-
o === "w" ? t =
|
1623
|
+
o === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = A(A({}, t), Bt(o)));
|
1646
1624
|
continue;
|
1647
1625
|
}
|
1648
|
-
if (
|
1649
|
-
t =
|
1626
|
+
if (mr.test(i.stem)) {
|
1627
|
+
t = A(A({}, t), Bt(i.stem));
|
1650
1628
|
continue;
|
1651
1629
|
}
|
1652
|
-
var s =
|
1653
|
-
s && (t =
|
1654
|
-
var a =
|
1655
|
-
a && (t =
|
1630
|
+
var s = gr(i.stem);
|
1631
|
+
s && (t = A(A({}, t), s));
|
1632
|
+
var a = jn(i.stem);
|
1633
|
+
a && (t = A(A({}, t), a));
|
1656
1634
|
}
|
1657
1635
|
return t;
|
1658
1636
|
}
|
1659
|
-
var
|
1637
|
+
var Be = {
|
1660
1638
|
"001": [
|
1661
1639
|
"H",
|
1662
1640
|
"h"
|
@@ -3071,13 +3049,13 @@ var Ie = {
|
|
3071
3049
|
"h"
|
3072
3050
|
]
|
3073
3051
|
};
|
3074
|
-
function
|
3052
|
+
function Xn(e, t) {
|
3075
3053
|
for (var r = "", n = 0; n < e.length; n++) {
|
3076
3054
|
var i = e.charAt(n);
|
3077
3055
|
if (i === "j") {
|
3078
3056
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
3079
3057
|
o++, n++;
|
3080
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
3058
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Wn(t);
|
3081
3059
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
3082
3060
|
r += h;
|
3083
3061
|
for (; s-- > 0; )
|
@@ -3087,7 +3065,7 @@ function Jn(e, t) {
|
|
3087
3065
|
}
|
3088
3066
|
return r;
|
3089
3067
|
}
|
3090
|
-
function
|
3068
|
+
function Wn(e) {
|
3091
3069
|
var t = e.hourCycle;
|
3092
3070
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
3093
3071
|
e.hourCycles && // @ts-ignore
|
@@ -3106,23 +3084,23 @@ function Qn(e) {
|
|
3106
3084
|
}
|
3107
3085
|
var r = e.language, n;
|
3108
3086
|
r !== "root" && (n = e.maximize().region);
|
3109
|
-
var i =
|
3087
|
+
var i = Be[n || ""] || Be[r || ""] || Be["".concat(r, "-001")] || Be["001"];
|
3110
3088
|
return i[0];
|
3111
3089
|
}
|
3112
|
-
var
|
3090
|
+
var Ze, zn = new RegExp("^".concat(pr.source, "*")), Zn = new RegExp("".concat(pr.source, "*$"));
|
3113
3091
|
function T(e, t) {
|
3114
3092
|
return { start: e, end: t };
|
3115
3093
|
}
|
3116
|
-
var
|
3094
|
+
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) {
|
3117
3095
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3118
|
-
},
|
3096
|
+
}, st = !0;
|
3119
3097
|
try {
|
3120
|
-
var
|
3121
|
-
|
3098
|
+
var ni = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3099
|
+
st = ((Ze = ni.exec("a")) === null || Ze === void 0 ? void 0 : Ze[0]) === "a";
|
3122
3100
|
} catch {
|
3123
|
-
|
3101
|
+
st = !1;
|
3124
3102
|
}
|
3125
|
-
var
|
3103
|
+
var It = Jn ? (
|
3126
3104
|
// Native
|
3127
3105
|
function(t, r, n) {
|
3128
3106
|
return t.startsWith(r, n);
|
@@ -3132,7 +3110,7 @@ var Rt = Kn ? (
|
|
3132
3110
|
function(t, r, n) {
|
3133
3111
|
return t.slice(n, n + r.length) === r;
|
3134
3112
|
}
|
3135
|
-
),
|
3113
|
+
), at = Qn ? String.fromCodePoint : (
|
3136
3114
|
// IE11
|
3137
3115
|
function() {
|
3138
3116
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3144,9 +3122,9 @@ var Rt = Kn ? (
|
|
3144
3122
|
}
|
3145
3123
|
return n;
|
3146
3124
|
}
|
3147
|
-
),
|
3125
|
+
), Lt = (
|
3148
3126
|
// native
|
3149
|
-
|
3127
|
+
qn ? Object.fromEntries : (
|
3150
3128
|
// Ponyfill
|
3151
3129
|
function(t) {
|
3152
3130
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3156,7 +3134,7 @@ var Rt = Kn ? (
|
|
3156
3134
|
return r;
|
3157
3135
|
}
|
3158
3136
|
)
|
3159
|
-
),
|
3137
|
+
), vr = Yn ? (
|
3160
3138
|
// Native
|
3161
3139
|
function(t, r) {
|
3162
3140
|
return t.codePointAt(r);
|
@@ -3170,7 +3148,7 @@ var Rt = Kn ? (
|
|
3170
3148
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
3171
3149
|
}
|
3172
3150
|
}
|
3173
|
-
),
|
3151
|
+
), ii = Kn ? (
|
3174
3152
|
// Native
|
3175
3153
|
function(t) {
|
3176
3154
|
return t.trimStart();
|
@@ -3178,9 +3156,9 @@ var Rt = Kn ? (
|
|
3178
3156
|
) : (
|
3179
3157
|
// Ponyfill
|
3180
3158
|
function(t) {
|
3181
|
-
return t.replace(
|
3159
|
+
return t.replace(zn, "");
|
3182
3160
|
}
|
3183
|
-
),
|
3161
|
+
), oi = ei ? (
|
3184
3162
|
// Native
|
3185
3163
|
function(t) {
|
3186
3164
|
return t.trimEnd();
|
@@ -3188,32 +3166,32 @@ var Rt = Kn ? (
|
|
3188
3166
|
) : (
|
3189
3167
|
// Ponyfill
|
3190
3168
|
function(t) {
|
3191
|
-
return t.replace(
|
3169
|
+
return t.replace(Zn, "");
|
3192
3170
|
}
|
3193
3171
|
);
|
3194
|
-
function
|
3172
|
+
function yr(e, t) {
|
3195
3173
|
return new RegExp(e, t);
|
3196
3174
|
}
|
3197
|
-
var
|
3198
|
-
if (
|
3199
|
-
var
|
3200
|
-
|
3175
|
+
var lt;
|
3176
|
+
if (st) {
|
3177
|
+
var Nt = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3178
|
+
lt = function(t, r) {
|
3201
3179
|
var n;
|
3202
|
-
|
3203
|
-
var i =
|
3180
|
+
Nt.lastIndex = r;
|
3181
|
+
var i = Nt.exec(t);
|
3204
3182
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3205
3183
|
};
|
3206
3184
|
} else
|
3207
|
-
|
3185
|
+
lt = function(t, r) {
|
3208
3186
|
for (var n = []; ; ) {
|
3209
|
-
var i =
|
3210
|
-
if (i === void 0 ||
|
3187
|
+
var i = vr(t, r);
|
3188
|
+
if (i === void 0 || _r(i) || ui(i))
|
3211
3189
|
break;
|
3212
3190
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3213
3191
|
}
|
3214
|
-
return
|
3192
|
+
return at.apply(void 0, n);
|
3215
3193
|
};
|
3216
|
-
var
|
3194
|
+
var si = (
|
3217
3195
|
/** @class */
|
3218
3196
|
function() {
|
3219
3197
|
function e(t, r) {
|
@@ -3244,7 +3222,7 @@ var hi = (
|
|
3244
3222
|
if (n)
|
3245
3223
|
break;
|
3246
3224
|
return this.error(E.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
3247
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3225
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
3248
3226
|
var s = this.parseTag(t, r);
|
3249
3227
|
if (s.err)
|
3250
3228
|
return s;
|
@@ -3277,7 +3255,7 @@ var hi = (
|
|
3277
3255
|
return o;
|
3278
3256
|
var s = o.val, a = this.clonePosition();
|
3279
3257
|
if (this.bumpIf("</")) {
|
3280
|
-
if (this.isEOF() || !
|
3258
|
+
if (this.isEOF() || !ut(this.char()))
|
3281
3259
|
return this.error(E.INVALID_TAG, T(a, this.clonePosition()));
|
3282
3260
|
var h = this.clonePosition(), l = this.parseTagName();
|
3283
3261
|
return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, T(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -3295,7 +3273,7 @@ var hi = (
|
|
3295
3273
|
return this.error(E.INVALID_TAG, T(n, this.clonePosition()));
|
3296
3274
|
}, e.prototype.parseTagName = function() {
|
3297
3275
|
var t = this.offset();
|
3298
|
-
for (this.bump(); !this.isEOF() &&
|
3276
|
+
for (this.bump(); !this.isEOF() && li(this.char()); )
|
3299
3277
|
this.bump();
|
3300
3278
|
return this.message.slice(t, this.offset());
|
3301
3279
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3324,7 +3302,7 @@ var hi = (
|
|
3324
3302
|
};
|
3325
3303
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3326
3304
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3327
|
-
!
|
3305
|
+
!ai(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3328
3306
|
}, e.prototype.tryParseQuote = function(t) {
|
3329
3307
|
if (this.isEOF() || this.char() !== 39)
|
3330
3308
|
return null;
|
@@ -3358,12 +3336,12 @@ var hi = (
|
|
3358
3336
|
r.push(n);
|
3359
3337
|
this.bump();
|
3360
3338
|
}
|
3361
|
-
return
|
3339
|
+
return at.apply(void 0, r);
|
3362
3340
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3363
3341
|
if (this.isEOF())
|
3364
3342
|
return null;
|
3365
3343
|
var n = this.char();
|
3366
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3344
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
|
3367
3345
|
}, e.prototype.parseArgument = function(t, r) {
|
3368
3346
|
var n = this.clonePosition();
|
3369
3347
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3392,7 +3370,7 @@ var hi = (
|
|
3392
3370
|
return this.error(E.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
3393
3371
|
}
|
3394
3372
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3395
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3373
|
+
var t = this.clonePosition(), r = this.offset(), n = lt(this.message, r), i = r + n.length;
|
3396
3374
|
this.bumpTo(i);
|
3397
3375
|
var o = this.clonePosition(), s = T(t, o);
|
3398
3376
|
return { value: n, location: s };
|
@@ -3408,40 +3386,40 @@ var hi = (
|
|
3408
3386
|
var l = null;
|
3409
3387
|
if (this.bumpIf(",")) {
|
3410
3388
|
this.bumpSpace();
|
3411
|
-
var u = this.clonePosition(),
|
3412
|
-
if (
|
3413
|
-
return
|
3414
|
-
var c =
|
3389
|
+
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
3390
|
+
if (f.err)
|
3391
|
+
return f;
|
3392
|
+
var c = oi(f.val);
|
3415
3393
|
if (c.length === 0)
|
3416
3394
|
return this.error(E.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
3417
|
-
var
|
3418
|
-
l = { style: c, styleLocation:
|
3395
|
+
var p = T(u, this.clonePosition());
|
3396
|
+
l = { style: c, styleLocation: p };
|
3419
3397
|
}
|
3420
|
-
var
|
3421
|
-
if (
|
3422
|
-
return
|
3398
|
+
var v = this.tryParseArgumentClose(i);
|
3399
|
+
if (v.err)
|
3400
|
+
return v;
|
3423
3401
|
var g = T(i, this.clonePosition());
|
3424
|
-
if (l &&
|
3425
|
-
var
|
3402
|
+
if (l && It(l?.style, "::", 0)) {
|
3403
|
+
var P = ii(l.style.slice(2));
|
3426
3404
|
if (a === "number") {
|
3427
|
-
var
|
3428
|
-
return
|
3429
|
-
val: { type: B.number, value: n, location: g, style:
|
3405
|
+
var f = this.parseNumberSkeletonFromString(P, l.styleLocation);
|
3406
|
+
return f.err ? f : {
|
3407
|
+
val: { type: B.number, value: n, location: g, style: f.val },
|
3430
3408
|
err: null
|
3431
3409
|
};
|
3432
3410
|
} else {
|
3433
|
-
if (
|
3411
|
+
if (P.length === 0)
|
3434
3412
|
return this.error(E.EXPECT_DATE_TIME_SKELETON, g);
|
3435
|
-
var w =
|
3436
|
-
this.locale && (w =
|
3413
|
+
var w = P;
|
3414
|
+
this.locale && (w = Xn(P, this.locale));
|
3437
3415
|
var c = {
|
3438
|
-
type:
|
3416
|
+
type: pe.dateTime,
|
3439
3417
|
pattern: w,
|
3440
3418
|
location: l.styleLocation,
|
3441
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3442
|
-
},
|
3419
|
+
parsedOptions: this.shouldParseSkeletons ? Dn(w) : {}
|
3420
|
+
}, y = a === "date" ? B.date : B.time;
|
3443
3421
|
return {
|
3444
|
-
val: { type:
|
3422
|
+
val: { type: y, value: n, location: g, style: c },
|
3445
3423
|
err: null
|
3446
3424
|
};
|
3447
3425
|
}
|
@@ -3461,30 +3439,30 @@ var hi = (
|
|
3461
3439
|
case "select": {
|
3462
3440
|
var x = this.clonePosition();
|
3463
3441
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3464
|
-
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, T(x,
|
3442
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, T(x, A({}, x)));
|
3465
3443
|
this.bumpSpace();
|
3466
|
-
var
|
3467
|
-
if (a !== "select" &&
|
3444
|
+
var L = this.parseIdentifierIfPossible(), N = 0;
|
3445
|
+
if (a !== "select" && L.value === "offset") {
|
3468
3446
|
if (!this.bumpIf(":"))
|
3469
3447
|
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
3470
3448
|
this.bumpSpace();
|
3471
|
-
var
|
3472
|
-
if (
|
3473
|
-
return
|
3474
|
-
this.bumpSpace(),
|
3449
|
+
var f = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3450
|
+
if (f.err)
|
3451
|
+
return f;
|
3452
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), N = f.val;
|
3475
3453
|
}
|
3476
|
-
var
|
3477
|
-
if (
|
3478
|
-
return
|
3479
|
-
var
|
3480
|
-
if (
|
3481
|
-
return
|
3454
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, L);
|
3455
|
+
if (R.err)
|
3456
|
+
return R;
|
3457
|
+
var v = this.tryParseArgumentClose(i);
|
3458
|
+
if (v.err)
|
3459
|
+
return v;
|
3482
3460
|
var S = T(i, this.clonePosition());
|
3483
3461
|
return a === "select" ? {
|
3484
3462
|
val: {
|
3485
3463
|
type: B.select,
|
3486
3464
|
value: n,
|
3487
|
-
options:
|
3465
|
+
options: Lt(R.val),
|
3488
3466
|
location: S
|
3489
3467
|
},
|
3490
3468
|
err: null
|
@@ -3492,7 +3470,7 @@ var hi = (
|
|
3492
3470
|
val: {
|
3493
3471
|
type: B.plural,
|
3494
3472
|
value: n,
|
3495
|
-
options:
|
3473
|
+
options: Lt(R.val),
|
3496
3474
|
offset: N,
|
3497
3475
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3498
3476
|
location: S
|
@@ -3543,48 +3521,48 @@ var hi = (
|
|
3543
3521
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3544
3522
|
var n = [];
|
3545
3523
|
try {
|
3546
|
-
n =
|
3524
|
+
n = $n(t);
|
3547
3525
|
} catch {
|
3548
3526
|
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
3549
3527
|
}
|
3550
3528
|
return {
|
3551
3529
|
val: {
|
3552
|
-
type:
|
3530
|
+
type: pe.number,
|
3553
3531
|
tokens: n,
|
3554
3532
|
location: r,
|
3555
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3533
|
+
parsedOptions: this.shouldParseSkeletons ? Vn(n) : {}
|
3556
3534
|
},
|
3557
3535
|
err: null
|
3558
3536
|
};
|
3559
3537
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3560
3538
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
|
3561
3539
|
if (l.length === 0) {
|
3562
|
-
var
|
3540
|
+
var f = this.clonePosition();
|
3563
3541
|
if (r !== "select" && this.bumpIf("=")) {
|
3564
3542
|
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3565
3543
|
if (c.err)
|
3566
3544
|
return c;
|
3567
|
-
u = T(
|
3545
|
+
u = T(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
3568
3546
|
} else
|
3569
3547
|
break;
|
3570
3548
|
}
|
3571
3549
|
if (h.has(l))
|
3572
3550
|
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
3573
3551
|
l === "other" && (s = !0), this.bumpSpace();
|
3574
|
-
var
|
3552
|
+
var p = this.clonePosition();
|
3575
3553
|
if (!this.bumpIf("{"))
|
3576
3554
|
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
3577
|
-
var
|
3578
|
-
if (
|
3579
|
-
return
|
3580
|
-
var g = this.tryParseArgumentClose(
|
3555
|
+
var v = this.parseMessage(t + 1, r, n);
|
3556
|
+
if (v.err)
|
3557
|
+
return v;
|
3558
|
+
var g = this.tryParseArgumentClose(p);
|
3581
3559
|
if (g.err)
|
3582
3560
|
return g;
|
3583
3561
|
a.push([
|
3584
3562
|
l,
|
3585
3563
|
{
|
3586
|
-
value:
|
3587
|
-
location: T(
|
3564
|
+
value: v.val,
|
3565
|
+
location: T(p, this.clonePosition())
|
3588
3566
|
}
|
3589
3567
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
3590
3568
|
}
|
@@ -3600,7 +3578,7 @@ var hi = (
|
|
3600
3578
|
break;
|
3601
3579
|
}
|
3602
3580
|
var h = T(i, this.clonePosition());
|
3603
|
-
return o ? (s *= n,
|
3581
|
+
return o ? (s *= n, ri(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
3604
3582
|
}, e.prototype.offset = function() {
|
3605
3583
|
return this.position.offset;
|
3606
3584
|
}, e.prototype.isEOF = function() {
|
@@ -3615,7 +3593,7 @@ var hi = (
|
|
3615
3593
|
var t = this.position.offset;
|
3616
3594
|
if (t >= this.message.length)
|
3617
3595
|
throw Error("out of bound");
|
3618
|
-
var r =
|
3596
|
+
var r = vr(this.message, t);
|
3619
3597
|
if (r === void 0)
|
3620
3598
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3621
3599
|
return r;
|
@@ -3634,7 +3612,7 @@ var hi = (
|
|
3634
3612
|
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);
|
3635
3613
|
}
|
3636
3614
|
}, e.prototype.bumpIf = function(t) {
|
3637
|
-
if (
|
3615
|
+
if (It(this.message, t, this.offset())) {
|
3638
3616
|
for (var r = 0; r < t.length; r++)
|
3639
3617
|
this.bump();
|
3640
3618
|
return !0;
|
@@ -3656,7 +3634,7 @@ var hi = (
|
|
3656
3634
|
break;
|
3657
3635
|
}
|
3658
3636
|
}, e.prototype.bumpSpace = function() {
|
3659
|
-
for (; !this.isEOF() &&
|
3637
|
+
for (; !this.isEOF() && _r(this.char()); )
|
3660
3638
|
this.bump();
|
3661
3639
|
}, e.prototype.peek = function() {
|
3662
3640
|
if (this.isEOF())
|
@@ -3666,47 +3644,47 @@ var hi = (
|
|
3666
3644
|
}, e;
|
3667
3645
|
}()
|
3668
3646
|
);
|
3669
|
-
function
|
3647
|
+
function ut(e) {
|
3670
3648
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3671
3649
|
}
|
3672
|
-
function
|
3673
|
-
return
|
3650
|
+
function ai(e) {
|
3651
|
+
return ut(e) || e === 47;
|
3674
3652
|
}
|
3675
|
-
function
|
3653
|
+
function li(e) {
|
3676
3654
|
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;
|
3677
3655
|
}
|
3678
|
-
function
|
3656
|
+
function _r(e) {
|
3679
3657
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3680
3658
|
}
|
3681
|
-
function
|
3659
|
+
function ui(e) {
|
3682
3660
|
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;
|
3683
3661
|
}
|
3684
|
-
function
|
3662
|
+
function ht(e) {
|
3685
3663
|
e.forEach(function(t) {
|
3686
|
-
if (delete t.location,
|
3664
|
+
if (delete t.location, hr(t) || cr(t))
|
3687
3665
|
for (var r in t.options)
|
3688
|
-
delete t.options[r].location,
|
3666
|
+
delete t.options[r].location, ht(t.options[r].value);
|
3689
3667
|
else
|
3690
|
-
|
3668
|
+
ar(t) && dr(t.style) || (lr(t) || ur(t)) && ot(t.style) ? delete t.style.location : fr(t) && ht(t.children);
|
3691
3669
|
});
|
3692
3670
|
}
|
3693
|
-
function
|
3694
|
-
t === void 0 && (t = {}), t =
|
3695
|
-
var r = new
|
3671
|
+
function hi(e, t) {
|
3672
|
+
t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3673
|
+
var r = new si(e, t).parse();
|
3696
3674
|
if (r.err) {
|
3697
3675
|
var n = SyntaxError(E[r.err.kind]);
|
3698
3676
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3699
3677
|
}
|
3700
|
-
return t?.captureLocation ||
|
3678
|
+
return t?.captureLocation || ht(r.val), r.val;
|
3701
3679
|
}
|
3702
|
-
var
|
3680
|
+
var me;
|
3703
3681
|
(function(e) {
|
3704
3682
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3705
|
-
})(
|
3706
|
-
var
|
3683
|
+
})(me || (me = {}));
|
3684
|
+
var Ge = (
|
3707
3685
|
/** @class */
|
3708
3686
|
function(e) {
|
3709
|
-
|
3687
|
+
J(t, e);
|
3710
3688
|
function t(r, n, i) {
|
3711
3689
|
var o = e.call(this, r) || this;
|
3712
3690
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3715,155 +3693,155 @@ var ke = (
|
|
3715
3693
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3716
3694
|
}, t;
|
3717
3695
|
}(Error)
|
3718
|
-
),
|
3696
|
+
), Mt = (
|
3719
3697
|
/** @class */
|
3720
3698
|
function(e) {
|
3721
|
-
|
3699
|
+
J(t, e);
|
3722
3700
|
function t(r, n, i, o) {
|
3723
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3701
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), me.INVALID_VALUE, o) || this;
|
3724
3702
|
}
|
3725
3703
|
return t;
|
3726
|
-
}(
|
3727
|
-
),
|
3704
|
+
}(Ge)
|
3705
|
+
), ci = (
|
3728
3706
|
/** @class */
|
3729
3707
|
function(e) {
|
3730
|
-
|
3708
|
+
J(t, e);
|
3731
3709
|
function t(r, n, i) {
|
3732
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3710
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), me.INVALID_VALUE, i) || this;
|
3733
3711
|
}
|
3734
3712
|
return t;
|
3735
|
-
}(
|
3736
|
-
),
|
3713
|
+
}(Ge)
|
3714
|
+
), fi = (
|
3737
3715
|
/** @class */
|
3738
3716
|
function(e) {
|
3739
|
-
|
3717
|
+
J(t, e);
|
3740
3718
|
function t(r, n) {
|
3741
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3719
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), me.MISSING_VALUE, n) || this;
|
3742
3720
|
}
|
3743
3721
|
return t;
|
3744
|
-
}(
|
3745
|
-
),
|
3722
|
+
}(Ge)
|
3723
|
+
), D;
|
3746
3724
|
(function(e) {
|
3747
3725
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3748
|
-
})(
|
3749
|
-
function
|
3726
|
+
})(D || (D = {}));
|
3727
|
+
function di(e) {
|
3750
3728
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3751
3729
|
var n = t[t.length - 1];
|
3752
|
-
return !n || n.type !==
|
3730
|
+
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
3753
3731
|
}, []);
|
3754
3732
|
}
|
3755
|
-
function
|
3733
|
+
function pi(e) {
|
3756
3734
|
return typeof e == "function";
|
3757
3735
|
}
|
3758
|
-
function
|
3759
|
-
if (e.length === 1 &&
|
3736
|
+
function Le(e, t, r, n, i, o, s) {
|
3737
|
+
if (e.length === 1 && Ft(e[0]))
|
3760
3738
|
return [
|
3761
3739
|
{
|
3762
|
-
type:
|
3740
|
+
type: D.literal,
|
3763
3741
|
value: e[0].value
|
3764
3742
|
}
|
3765
3743
|
];
|
3766
3744
|
for (var a = [], h = 0, l = e; h < l.length; h++) {
|
3767
3745
|
var u = l[h];
|
3768
|
-
if (
|
3746
|
+
if (Ft(u)) {
|
3769
3747
|
a.push({
|
3770
|
-
type:
|
3748
|
+
type: D.literal,
|
3771
3749
|
value: u.value
|
3772
3750
|
});
|
3773
3751
|
continue;
|
3774
3752
|
}
|
3775
|
-
if (
|
3753
|
+
if (Mn(u)) {
|
3776
3754
|
typeof o == "number" && a.push({
|
3777
|
-
type:
|
3755
|
+
type: D.literal,
|
3778
3756
|
value: r.getNumberFormat(t).format(o)
|
3779
3757
|
});
|
3780
3758
|
continue;
|
3781
3759
|
}
|
3782
|
-
var
|
3783
|
-
if (!(i &&
|
3784
|
-
throw new
|
3785
|
-
var c = i[
|
3786
|
-
if (
|
3760
|
+
var f = u.value;
|
3761
|
+
if (!(i && f in i))
|
3762
|
+
throw new fi(f, s);
|
3763
|
+
var c = i[f];
|
3764
|
+
if (Nn(u)) {
|
3787
3765
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3788
|
-
type: typeof c == "string" ?
|
3766
|
+
type: typeof c == "string" ? D.literal : D.object,
|
3789
3767
|
value: c
|
3790
3768
|
});
|
3791
3769
|
continue;
|
3792
3770
|
}
|
3793
|
-
if (
|
3794
|
-
var
|
3771
|
+
if (lr(u)) {
|
3772
|
+
var p = typeof u.style == "string" ? n.date[u.style] : ot(u.style) ? u.style.parsedOptions : void 0;
|
3795
3773
|
a.push({
|
3796
|
-
type:
|
3797
|
-
value: r.getDateTimeFormat(t,
|
3774
|
+
type: D.literal,
|
3775
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
3798
3776
|
});
|
3799
3777
|
continue;
|
3800
3778
|
}
|
3801
|
-
if (
|
3802
|
-
var
|
3779
|
+
if (ur(u)) {
|
3780
|
+
var p = typeof u.style == "string" ? n.time[u.style] : ot(u.style) ? u.style.parsedOptions : n.time.medium;
|
3803
3781
|
a.push({
|
3804
|
-
type:
|
3805
|
-
value: r.getDateTimeFormat(t,
|
3782
|
+
type: D.literal,
|
3783
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
3806
3784
|
});
|
3807
3785
|
continue;
|
3808
3786
|
}
|
3809
|
-
if (
|
3810
|
-
var
|
3811
|
-
|
3812
|
-
type:
|
3813
|
-
value: r.getNumberFormat(t,
|
3787
|
+
if (ar(u)) {
|
3788
|
+
var p = typeof u.style == "string" ? n.number[u.style] : dr(u.style) ? u.style.parsedOptions : void 0;
|
3789
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
3790
|
+
type: D.literal,
|
3791
|
+
value: r.getNumberFormat(t, p).format(c)
|
3814
3792
|
});
|
3815
3793
|
continue;
|
3816
3794
|
}
|
3817
|
-
if (
|
3818
|
-
var
|
3819
|
-
if (!
|
3820
|
-
throw new
|
3821
|
-
var w =
|
3795
|
+
if (fr(u)) {
|
3796
|
+
var v = u.children, g = u.value, P = i[g];
|
3797
|
+
if (!pi(P))
|
3798
|
+
throw new ci(g, "function", s);
|
3799
|
+
var w = Le(v, t, r, n, i, o), y = P(w.map(function(N) {
|
3822
3800
|
return N.value;
|
3823
3801
|
}));
|
3824
|
-
Array.isArray(
|
3802
|
+
Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(N) {
|
3825
3803
|
return {
|
3826
|
-
type: typeof N == "string" ?
|
3804
|
+
type: typeof N == "string" ? D.literal : D.object,
|
3827
3805
|
value: N
|
3828
3806
|
};
|
3829
3807
|
}));
|
3830
3808
|
}
|
3831
|
-
if (
|
3809
|
+
if (hr(u)) {
|
3832
3810
|
var x = u.options[c] || u.options.other;
|
3833
3811
|
if (!x)
|
3834
|
-
throw new
|
3835
|
-
a.push.apply(a,
|
3812
|
+
throw new Mt(u.value, c, Object.keys(u.options), s);
|
3813
|
+
a.push.apply(a, Le(x.value, t, r, n, i));
|
3836
3814
|
continue;
|
3837
3815
|
}
|
3838
|
-
if (
|
3816
|
+
if (cr(u)) {
|
3839
3817
|
var x = u.options["=".concat(c)];
|
3840
3818
|
if (!x) {
|
3841
3819
|
if (!Intl.PluralRules)
|
3842
|
-
throw new
|
3820
|
+
throw new Ge(`Intl.PluralRules is not available in this environment.
|
3843
3821
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3844
|
-
`,
|
3845
|
-
var
|
3846
|
-
x = u.options[
|
3822
|
+
`, me.MISSING_INTL_API, s);
|
3823
|
+
var L = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
3824
|
+
x = u.options[L] || u.options.other;
|
3847
3825
|
}
|
3848
3826
|
if (!x)
|
3849
|
-
throw new
|
3850
|
-
a.push.apply(a,
|
3827
|
+
throw new Mt(u.value, c, Object.keys(u.options), s);
|
3828
|
+
a.push.apply(a, Le(x.value, t, r, n, i, c - (u.offset || 0)));
|
3851
3829
|
continue;
|
3852
3830
|
}
|
3853
3831
|
}
|
3854
|
-
return
|
3832
|
+
return di(a);
|
3855
3833
|
}
|
3856
|
-
function
|
3857
|
-
return t ?
|
3858
|
-
return r[n] =
|
3834
|
+
function mi(e, t) {
|
3835
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3836
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
3859
3837
|
}, {})) : e;
|
3860
3838
|
}
|
3861
|
-
function
|
3839
|
+
function bi(e, t) {
|
3862
3840
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3863
|
-
return r[n] =
|
3864
|
-
},
|
3841
|
+
return r[n] = mi(e[n], t[n]), r;
|
3842
|
+
}, A({}, e)) : e;
|
3865
3843
|
}
|
3866
|
-
function
|
3844
|
+
function Je(e) {
|
3867
3845
|
return {
|
3868
3846
|
create: function() {
|
3869
3847
|
return {
|
@@ -3877,39 +3855,39 @@ function qe(e) {
|
|
3877
3855
|
}
|
3878
3856
|
};
|
3879
3857
|
}
|
3880
|
-
function
|
3858
|
+
function gi(e) {
|
3881
3859
|
return e === void 0 && (e = {
|
3882
3860
|
number: {},
|
3883
3861
|
dateTime: {},
|
3884
3862
|
pluralRules: {}
|
3885
3863
|
}), {
|
3886
|
-
getNumberFormat:
|
3864
|
+
getNumberFormat: We(function() {
|
3887
3865
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3888
3866
|
r[n] = arguments[n];
|
3889
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3867
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, fe([void 0], r, !1)))();
|
3890
3868
|
}, {
|
3891
|
-
cache:
|
3892
|
-
strategy:
|
3869
|
+
cache: Je(e.number),
|
3870
|
+
strategy: ze.variadic
|
3893
3871
|
}),
|
3894
|
-
getDateTimeFormat:
|
3872
|
+
getDateTimeFormat: We(function() {
|
3895
3873
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3896
3874
|
r[n] = arguments[n];
|
3897
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3875
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, fe([void 0], r, !1)))();
|
3898
3876
|
}, {
|
3899
|
-
cache:
|
3900
|
-
strategy:
|
3877
|
+
cache: Je(e.dateTime),
|
3878
|
+
strategy: ze.variadic
|
3901
3879
|
}),
|
3902
|
-
getPluralRules:
|
3880
|
+
getPluralRules: We(function() {
|
3903
3881
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3904
3882
|
r[n] = arguments[n];
|
3905
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3883
|
+
return new ((t = Intl.PluralRules).bind.apply(t, fe([void 0], r, !1)))();
|
3906
3884
|
}, {
|
3907
|
-
cache:
|
3908
|
-
strategy:
|
3885
|
+
cache: Je(e.pluralRules),
|
3886
|
+
strategy: ze.variadic
|
3909
3887
|
})
|
3910
3888
|
};
|
3911
3889
|
}
|
3912
|
-
var
|
3890
|
+
var vi = (
|
3913
3891
|
/** @class */
|
3914
3892
|
function() {
|
3915
3893
|
function e(t, r, n, i) {
|
@@ -3923,12 +3901,12 @@ var Ei = (
|
|
3923
3901
|
var l = o.formatToParts(h);
|
3924
3902
|
if (l.length === 1)
|
3925
3903
|
return l[0].value;
|
3926
|
-
var u = l.reduce(function(
|
3927
|
-
return !
|
3904
|
+
var u = l.reduce(function(f, c) {
|
3905
|
+
return !f.length || c.type !== D.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
3928
3906
|
}, []);
|
3929
3907
|
return u.length <= 1 ? u[0] || "" : u;
|
3930
3908
|
}, this.formatToParts = function(h) {
|
3931
|
-
return
|
3909
|
+
return Le(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
3932
3910
|
}, this.resolvedOptions = function() {
|
3933
3911
|
var h;
|
3934
3912
|
return {
|
@@ -3941,13 +3919,13 @@ var Ei = (
|
|
3941
3919
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3942
3920
|
var s = i || {};
|
3943
3921
|
s.formatters;
|
3944
|
-
var a =
|
3945
|
-
this.ast = e.__parse(t,
|
3922
|
+
var a = Jr(s, ["formatters"]);
|
3923
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
3946
3924
|
} else
|
3947
3925
|
this.ast = t;
|
3948
3926
|
if (!Array.isArray(this.ast))
|
3949
3927
|
throw new TypeError("A message must be provided as a String or AST.");
|
3950
|
-
this.formats =
|
3928
|
+
this.formats = bi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
3951
3929
|
}
|
3952
3930
|
return Object.defineProperty(e, "defaultLocale", {
|
3953
3931
|
get: function() {
|
@@ -3960,7 +3938,7 @@ var Ei = (
|
|
3960
3938
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3961
3939
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3962
3940
|
}
|
3963
|
-
}, e.__parse =
|
3941
|
+
}, e.__parse = hi, e.formats = {
|
3964
3942
|
number: {
|
3965
3943
|
integer: {
|
3966
3944
|
maximumFractionDigits: 0
|
@@ -4021,7 +3999,7 @@ var Ei = (
|
|
4021
3999
|
}, e;
|
4022
4000
|
}()
|
4023
4001
|
);
|
4024
|
-
function
|
4002
|
+
function yi(e, t) {
|
4025
4003
|
if (t == null)
|
4026
4004
|
return;
|
4027
4005
|
if (t in e)
|
@@ -4042,92 +4020,92 @@ function wi(e, t) {
|
|
4042
4020
|
n = void 0;
|
4043
4021
|
return n;
|
4044
4022
|
}
|
4045
|
-
const Q = {},
|
4023
|
+
const Q = {}, _i = (e, t, r) => r && (t in Q || (Q[t] = {}), e in Q[t] || (Q[t][e] = r), r), xr = (e, t) => {
|
4046
4024
|
if (t == null)
|
4047
4025
|
return;
|
4048
4026
|
if (t in Q && e in Q[t])
|
4049
4027
|
return Q[t][e];
|
4050
|
-
const r =
|
4028
|
+
const r = ke(t);
|
4051
4029
|
for (let n = 0; n < r.length; n++) {
|
4052
|
-
const i = r[n], o =
|
4030
|
+
const i = r[n], o = Ei(i, e);
|
4053
4031
|
if (o)
|
4054
|
-
return
|
4032
|
+
return _i(e, t, o);
|
4055
4033
|
}
|
4056
4034
|
};
|
4057
|
-
let
|
4058
|
-
const ve =
|
4059
|
-
function
|
4060
|
-
return
|
4035
|
+
let pt;
|
4036
|
+
const ve = $e({});
|
4037
|
+
function xi(e) {
|
4038
|
+
return pt[e] || null;
|
4061
4039
|
}
|
4062
|
-
function
|
4063
|
-
return e in
|
4040
|
+
function Er(e) {
|
4041
|
+
return e in pt;
|
4064
4042
|
}
|
4065
|
-
function
|
4066
|
-
if (!
|
4043
|
+
function Ei(e, t) {
|
4044
|
+
if (!Er(e))
|
4067
4045
|
return null;
|
4068
|
-
const r =
|
4069
|
-
return
|
4046
|
+
const r = xi(e);
|
4047
|
+
return yi(r, t);
|
4070
4048
|
}
|
4071
|
-
function
|
4049
|
+
function wi(e) {
|
4072
4050
|
if (e == null)
|
4073
4051
|
return;
|
4074
|
-
const t =
|
4052
|
+
const t = ke(e);
|
4075
4053
|
for (let r = 0; r < t.length; r++) {
|
4076
4054
|
const n = t[r];
|
4077
|
-
if (
|
4055
|
+
if (Er(n))
|
4078
4056
|
return n;
|
4079
4057
|
}
|
4080
4058
|
}
|
4081
|
-
function
|
4082
|
-
delete Q[e], ve.update((r) => (r[e] =
|
4059
|
+
function wr(e, ...t) {
|
4060
|
+
delete Q[e], ve.update((r) => (r[e] = An.all([r[e] || {}, ...t]), r));
|
4083
4061
|
}
|
4084
|
-
|
4062
|
+
ge(
|
4085
4063
|
[ve],
|
4086
4064
|
([e]) => Object.keys(e)
|
4087
4065
|
);
|
4088
|
-
ve.subscribe((e) =>
|
4089
|
-
const
|
4090
|
-
function
|
4091
|
-
|
4066
|
+
ve.subscribe((e) => pt = e);
|
4067
|
+
const Ne = {};
|
4068
|
+
function Si(e, t) {
|
4069
|
+
Ne[e].delete(t), Ne[e].size === 0 && delete Ne[e];
|
4092
4070
|
}
|
4093
|
-
function
|
4094
|
-
return
|
4071
|
+
function Sr(e) {
|
4072
|
+
return Ne[e];
|
4095
4073
|
}
|
4096
|
-
function
|
4097
|
-
return
|
4098
|
-
const r =
|
4074
|
+
function Ti(e) {
|
4075
|
+
return ke(e).map((t) => {
|
4076
|
+
const r = Sr(t);
|
4099
4077
|
return [t, r ? [...r] : []];
|
4100
4078
|
}).filter(([, t]) => t.length > 0);
|
4101
4079
|
}
|
4102
|
-
function
|
4103
|
-
return e == null ? !1 :
|
4080
|
+
function ct(e) {
|
4081
|
+
return e == null ? !1 : ke(e).some(
|
4104
4082
|
(t) => {
|
4105
4083
|
var r;
|
4106
|
-
return (r =
|
4084
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
4107
4085
|
}
|
4108
4086
|
);
|
4109
4087
|
}
|
4110
|
-
function
|
4088
|
+
function Hi(e, t) {
|
4111
4089
|
return Promise.all(
|
4112
|
-
t.map((n) => (
|
4113
|
-
).then((n) =>
|
4090
|
+
t.map((n) => (Si(e, n), n().then((i) => i.default || i)))
|
4091
|
+
).then((n) => wr(e, ...n));
|
4114
4092
|
}
|
4115
4093
|
const xe = {};
|
4116
|
-
function
|
4117
|
-
if (!
|
4094
|
+
function Tr(e) {
|
4095
|
+
if (!ct(e))
|
4118
4096
|
return e in xe ? xe[e] : Promise.resolve();
|
4119
|
-
const t =
|
4097
|
+
const t = Ti(e);
|
4120
4098
|
return xe[e] = Promise.all(
|
4121
4099
|
t.map(
|
4122
|
-
([r, n]) =>
|
4100
|
+
([r, n]) => Hi(r, n)
|
4123
4101
|
)
|
4124
4102
|
).then(() => {
|
4125
|
-
if (
|
4126
|
-
return
|
4103
|
+
if (ct(e))
|
4104
|
+
return Tr(e);
|
4127
4105
|
delete xe[e];
|
4128
4106
|
}), xe[e];
|
4129
4107
|
}
|
4130
|
-
const
|
4108
|
+
const Ai = {
|
4131
4109
|
number: {
|
4132
4110
|
scientific: { notation: "scientific" },
|
4133
4111
|
engineering: { notation: "engineering" },
|
@@ -4156,176 +4134,176 @@ const Bi = {
|
|
4156
4134
|
timeZoneName: "short"
|
4157
4135
|
}
|
4158
4136
|
}
|
4159
|
-
},
|
4137
|
+
}, Pi = {
|
4160
4138
|
fallbackLocale: null,
|
4161
4139
|
loadingDelay: 200,
|
4162
|
-
formats:
|
4140
|
+
formats: Ai,
|
4163
4141
|
warnOnMissingMessages: !0,
|
4164
4142
|
handleMissingMessage: void 0,
|
4165
4143
|
ignoreTag: !0
|
4166
|
-
},
|
4167
|
-
function
|
4168
|
-
return
|
4144
|
+
}, Fi = Pi;
|
4145
|
+
function be() {
|
4146
|
+
return Fi;
|
4169
4147
|
}
|
4170
|
-
const
|
4171
|
-
var
|
4148
|
+
const Qe = $e(!1);
|
4149
|
+
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) => {
|
4172
4150
|
for (var r in t || (t = {}))
|
4173
|
-
|
4174
|
-
if (
|
4175
|
-
for (var r of
|
4176
|
-
|
4151
|
+
Ii.call(t, r) && Dt(e, r, t[r]);
|
4152
|
+
if (Rt)
|
4153
|
+
for (var r of Rt(t))
|
4154
|
+
Li.call(t, r) && Dt(e, r, t[r]);
|
4177
4155
|
return e;
|
4178
|
-
},
|
4179
|
-
let
|
4180
|
-
const
|
4181
|
-
function
|
4156
|
+
}, Mi = (e, t) => Bi(e, Oi(t));
|
4157
|
+
let ft;
|
4158
|
+
const Re = $e(null);
|
4159
|
+
function Ut(e) {
|
4182
4160
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4183
4161
|
}
|
4184
|
-
function
|
4185
|
-
const r =
|
4186
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4162
|
+
function ke(e, t = be().fallbackLocale) {
|
4163
|
+
const r = Ut(e);
|
4164
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ut(t)])] : r;
|
4187
4165
|
}
|
4188
|
-
function
|
4189
|
-
return
|
4166
|
+
function ie() {
|
4167
|
+
return ft ?? void 0;
|
4190
4168
|
}
|
4191
|
-
|
4192
|
-
|
4169
|
+
Re.subscribe((e) => {
|
4170
|
+
ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4193
4171
|
});
|
4194
|
-
const
|
4195
|
-
if (e &&
|
4196
|
-
const { loadingDelay: t } =
|
4172
|
+
const Ri = (e) => {
|
4173
|
+
if (e && wi(e) && ct(e)) {
|
4174
|
+
const { loadingDelay: t } = be();
|
4197
4175
|
let r;
|
4198
|
-
return typeof window < "u" &&
|
4199
|
-
() =>
|
4176
|
+
return typeof window < "u" && ie() != null && t ? r = window.setTimeout(
|
4177
|
+
() => Qe.set(!0),
|
4200
4178
|
t
|
4201
|
-
) :
|
4202
|
-
|
4179
|
+
) : Qe.set(!0), Tr(e).then(() => {
|
4180
|
+
Re.set(e);
|
4203
4181
|
}).finally(() => {
|
4204
|
-
clearTimeout(r),
|
4182
|
+
clearTimeout(r), Qe.set(!1);
|
4205
4183
|
});
|
4206
4184
|
}
|
4207
|
-
return
|
4208
|
-
},
|
4209
|
-
set:
|
4210
|
-
}),
|
4185
|
+
return Re.set(e);
|
4186
|
+
}, ne = Mi(Ni({}, Re), {
|
4187
|
+
set: Ri
|
4188
|
+
}), je = (e) => {
|
4211
4189
|
const t = /* @__PURE__ */ Object.create(null);
|
4212
4190
|
return (n) => {
|
4213
4191
|
const i = JSON.stringify(n);
|
4214
4192
|
return i in t ? t[i] : t[i] = e(n);
|
4215
4193
|
};
|
4216
4194
|
};
|
4217
|
-
var
|
4195
|
+
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) => {
|
4218
4196
|
for (var r in t || (t = {}))
|
4219
|
-
|
4220
|
-
if (
|
4221
|
-
for (var r of
|
4222
|
-
|
4197
|
+
Hr.call(t, r) && $t(e, r, t[r]);
|
4198
|
+
if (De)
|
4199
|
+
for (var r of De(t))
|
4200
|
+
Ar.call(t, r) && $t(e, r, t[r]);
|
4223
4201
|
return e;
|
4224
|
-
},
|
4202
|
+
}, ye = (e, t) => {
|
4225
4203
|
var r = {};
|
4226
4204
|
for (var n in e)
|
4227
|
-
|
4228
|
-
if (e != null &&
|
4229
|
-
for (var n of
|
4230
|
-
t.indexOf(n) < 0 &&
|
4205
|
+
Hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4206
|
+
if (e != null && De)
|
4207
|
+
for (var n of De(e))
|
4208
|
+
t.indexOf(n) < 0 && Ar.call(e, n) && (r[n] = e[n]);
|
4231
4209
|
return r;
|
4232
4210
|
};
|
4233
4211
|
const He = (e, t) => {
|
4234
|
-
const { formats: r } =
|
4212
|
+
const { formats: r } = be();
|
4235
4213
|
if (e in r && t in r[e])
|
4236
4214
|
return r[e][t];
|
4237
4215
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4238
|
-
},
|
4216
|
+
}, Ui = je(
|
4239
4217
|
(e) => {
|
4240
|
-
var t = e, { locale: r, format: n } = t, i =
|
4218
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
4241
4219
|
if (r == null)
|
4242
4220
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4243
4221
|
return n && (i = He("number", n)), new Intl.NumberFormat(r, i);
|
4244
4222
|
}
|
4245
|
-
),
|
4223
|
+
), $i = je(
|
4246
4224
|
(e) => {
|
4247
|
-
var t = e, { locale: r, format: n } = t, i =
|
4225
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
4248
4226
|
if (r == null)
|
4249
4227
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4250
4228
|
return n ? i = He("date", n) : Object.keys(i).length === 0 && (i = He("date", "short")), new Intl.DateTimeFormat(r, i);
|
4251
4229
|
}
|
4252
|
-
),
|
4230
|
+
), Gi = je(
|
4253
4231
|
(e) => {
|
4254
|
-
var t = e, { locale: r, format: n } = t, i =
|
4232
|
+
var t = e, { locale: r, format: n } = t, i = ye(t, ["locale", "format"]);
|
4255
4233
|
if (r == null)
|
4256
4234
|
throw new Error(
|
4257
4235
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4258
4236
|
);
|
4259
4237
|
return n ? i = He("time", n) : Object.keys(i).length === 0 && (i = He("time", "short")), new Intl.DateTimeFormat(r, i);
|
4260
4238
|
}
|
4261
|
-
),
|
4239
|
+
), ki = (e = {}) => {
|
4262
4240
|
var t = e, {
|
4263
|
-
locale: r =
|
4264
|
-
} = t, n =
|
4241
|
+
locale: r = ie()
|
4242
|
+
} = t, n = ye(t, [
|
4265
4243
|
"locale"
|
4266
4244
|
]);
|
4267
|
-
return
|
4268
|
-
},
|
4245
|
+
return Ui(mt({ locale: r }, n));
|
4246
|
+
}, ji = (e = {}) => {
|
4269
4247
|
var t = e, {
|
4270
|
-
locale: r =
|
4271
|
-
} = t, n =
|
4248
|
+
locale: r = ie()
|
4249
|
+
} = t, n = ye(t, [
|
4272
4250
|
"locale"
|
4273
4251
|
]);
|
4274
|
-
return
|
4275
|
-
},
|
4252
|
+
return $i(mt({ locale: r }, n));
|
4253
|
+
}, Vi = (e = {}) => {
|
4276
4254
|
var t = e, {
|
4277
|
-
locale: r =
|
4278
|
-
} = t, n =
|
4255
|
+
locale: r = ie()
|
4256
|
+
} = t, n = ye(t, [
|
4279
4257
|
"locale"
|
4280
4258
|
]);
|
4281
|
-
return
|
4282
|
-
},
|
4259
|
+
return Gi(mt({ locale: r }, n));
|
4260
|
+
}, Xi = je(
|
4283
4261
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4284
|
-
(e, t =
|
4285
|
-
ignoreTag:
|
4262
|
+
(e, t = ie()) => new vi(e, t, be().formats, {
|
4263
|
+
ignoreTag: be().ignoreTag
|
4286
4264
|
})
|
4287
|
-
),
|
4265
|
+
), Wi = (e, t = {}) => {
|
4288
4266
|
var r, n, i, o;
|
4289
4267
|
let s = t;
|
4290
4268
|
typeof e == "object" && (s = e, e = s.id);
|
4291
4269
|
const {
|
4292
4270
|
values: a,
|
4293
|
-
locale: h =
|
4271
|
+
locale: h = ie(),
|
4294
4272
|
default: l
|
4295
4273
|
} = s;
|
4296
4274
|
if (h == null)
|
4297
4275
|
throw new Error(
|
4298
4276
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4299
4277
|
);
|
4300
|
-
let u =
|
4278
|
+
let u = xr(e, h);
|
4301
4279
|
if (!u)
|
4302
|
-
u = (o = (i = (n = (r =
|
4280
|
+
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;
|
4303
4281
|
else if (typeof u != "string")
|
4304
4282
|
return console.warn(
|
4305
4283
|
`[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.`
|
4306
4284
|
), u;
|
4307
4285
|
if (!a)
|
4308
4286
|
return u;
|
4309
|
-
let
|
4287
|
+
let f = u;
|
4310
4288
|
try {
|
4311
|
-
|
4289
|
+
f = Xi(u, h).format(a);
|
4312
4290
|
} catch (c) {
|
4313
4291
|
c instanceof Error && console.warn(
|
4314
4292
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
4315
4293
|
c.message
|
4316
4294
|
);
|
4317
4295
|
}
|
4318
|
-
return
|
4319
|
-
},
|
4320
|
-
|
4321
|
-
|
4322
|
-
|
4323
|
-
|
4324
|
-
window.emWidgets = { topic:
|
4325
|
-
const
|
4326
|
-
function
|
4296
|
+
return f;
|
4297
|
+
}, 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);
|
4298
|
+
ge([ne], () => zi);
|
4299
|
+
ge([ne], () => Zi);
|
4300
|
+
ge([ne], () => Ji);
|
4301
|
+
ge([ne, ve], () => Qi);
|
4302
|
+
window.emWidgets = { topic: hn };
|
4303
|
+
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";
|
4304
|
+
function xo(e, t) {
|
4327
4305
|
const r = window.navigator.userAgent;
|
4328
|
-
return
|
4306
|
+
return Yi(r) ? t = e.filter((n) => {
|
4329
4307
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
4330
4308
|
return n;
|
4331
4309
|
}) : t = e.filter((n) => {
|
@@ -4333,13 +4311,13 @@ function To(e, t) {
|
|
4333
4311
|
return n;
|
4334
4312
|
}), t;
|
4335
4313
|
}
|
4336
|
-
function
|
4314
|
+
function eo(e, t) {
|
4337
4315
|
if (e) {
|
4338
4316
|
const r = document.createElement("style");
|
4339
4317
|
r.innerHTML = t, e.appendChild(r);
|
4340
4318
|
}
|
4341
4319
|
}
|
4342
|
-
function
|
4320
|
+
function to(e, t) {
|
4343
4321
|
const r = new URL(t);
|
4344
4322
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4345
4323
|
const i = document.createElement("style");
|
@@ -4348,7 +4326,7 @@ function oo(e, t) {
|
|
4348
4326
|
console.error("There was an error while trying to load client styling from URL", n);
|
4349
4327
|
});
|
4350
4328
|
}
|
4351
|
-
function
|
4329
|
+
function ro(e, t, r) {
|
4352
4330
|
if (window.emMessageBus) {
|
4353
4331
|
const n = document.createElement("style");
|
4354
4332
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4356,15 +4334,15 @@ function so(e, t, r) {
|
|
4356
4334
|
});
|
4357
4335
|
}
|
4358
4336
|
}
|
4359
|
-
function
|
4360
|
-
|
4361
|
-
r == null && (ve.set(t),
|
4337
|
+
function no({ withLocale: e, translations: t }) {
|
4338
|
+
ne.subscribe((r) => {
|
4339
|
+
r == null && (ve.set(t), ne.set(e));
|
4362
4340
|
});
|
4363
4341
|
}
|
4364
|
-
function
|
4365
|
-
|
4342
|
+
function Gt(e, t) {
|
4343
|
+
wr(e, t);
|
4366
4344
|
}
|
4367
|
-
const
|
4345
|
+
const kt = {
|
4368
4346
|
en: {
|
4369
4347
|
providers: "Providers:",
|
4370
4348
|
filterby: "Filter by:",
|
@@ -4474,123 +4452,123 @@ const Wt = {
|
|
4474
4452
|
clear: "Clear all"
|
4475
4453
|
}
|
4476
4454
|
};
|
4477
|
-
function
|
4478
|
-
|
4455
|
+
function io(e) {
|
4456
|
+
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%}}');
|
4479
4457
|
}
|
4480
|
-
function
|
4458
|
+
function jt(e, t, r) {
|
4481
4459
|
const n = e.slice();
|
4482
4460
|
return n[36] = t[r], n[37] = t, n[38] = r, n;
|
4483
4461
|
}
|
4484
|
-
function
|
4462
|
+
function oo(e) {
|
4485
4463
|
let t, r, n, i, o, s, a, h, l = (
|
4486
4464
|
/*$_*/
|
4487
4465
|
e[11]("filterby") + ""
|
4488
|
-
), u,
|
4466
|
+
), u, f, c, p, v = (
|
4489
4467
|
/*$_*/
|
4490
4468
|
e[11]("providers") + ""
|
4491
|
-
), g,
|
4469
|
+
), g, P, w, y, x, L, N, R, S, O, M, V, z, K = (
|
4492
4470
|
/*$_*/
|
4493
4471
|
e[11]("clear") + ""
|
4494
|
-
),
|
4495
|
-
function Pe(
|
4472
|
+
), oe, se, ee, te, _e, Ae;
|
4473
|
+
function Pe(b, C) {
|
4496
4474
|
return (
|
4497
4475
|
/*fullSelection*/
|
4498
|
-
|
4476
|
+
b[7] ? lo : ao
|
4499
4477
|
);
|
4500
4478
|
}
|
4501
|
-
let ae = Pe(e),
|
4479
|
+
let ae = Pe(e), $ = ae(e), d = _t(
|
4502
4480
|
/*vendorArray*/
|
4503
4481
|
e[5]
|
4504
|
-
),
|
4505
|
-
for (let
|
4506
|
-
|
4482
|
+
), H = [];
|
4483
|
+
for (let b = 0; b < d.length; b += 1)
|
4484
|
+
H[b] = Vt(jt(e, d, b));
|
4507
4485
|
return {
|
4508
4486
|
c() {
|
4509
|
-
t =
|
4510
|
-
for (let
|
4511
|
-
|
4512
|
-
|
4513
|
-
(e[4] ? "TriangleActive" : "")),
|
4514
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
4487
|
+
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");
|
4488
|
+
for (let b = 0; b < H.length; b += 1)
|
4489
|
+
H[b].c();
|
4490
|
+
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*/
|
4491
|
+
(e[4] ? "TriangleActive" : "")), m(r, "class", R = "FilterSelector " + /*isFilterActive*/
|
4492
|
+
(e[4] ? "FilterSelectorOpen" : "")), m(M, "class", "FilterDropdown"), m(z, "class", "ClearFilters"), z.disabled = se = /*fullSelection*/
|
4515
4493
|
e[7] && /*selectedVendorArray*/
|
4516
4494
|
e[6].length != /*vendorArray*/
|
4517
|
-
e[5].length,
|
4518
|
-
(e[4] ? "FilterOpen" : "")),
|
4495
|
+
e[5].length, m(O, "class", ee = "FilterDropdownContainer " + /*isFilterActive*/
|
4496
|
+
(e[4] ? "FilterOpen" : "")), m(t, "class", te = "FilterContainer " + /*addfilterselector*/
|
4519
4497
|
(e[0] == "true" && /*addsortingselector*/
|
4520
4498
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4521
4499
|
},
|
4522
|
-
m(
|
4523
|
-
|
4524
|
-
for (let
|
4525
|
-
|
4526
|
-
_(
|
4527
|
-
|
4500
|
+
m(b, C) {
|
4501
|
+
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);
|
4502
|
+
for (let I = 0; I < H.length; I += 1)
|
4503
|
+
H[I] && H[I].m(M, null);
|
4504
|
+
_(O, V), _(O, z), _(z, oe), _e || (Ae = [
|
4505
|
+
Me(
|
4528
4506
|
r,
|
4529
4507
|
"click",
|
4530
4508
|
/*click_handler*/
|
4531
4509
|
e[23]
|
4532
4510
|
),
|
4533
|
-
|
4534
|
-
|
4511
|
+
Me(
|
4512
|
+
z,
|
4535
4513
|
"click",
|
4536
4514
|
/*click_handler_2*/
|
4537
4515
|
e[26]
|
4538
4516
|
)
|
4539
|
-
],
|
4517
|
+
], _e = !0);
|
4540
4518
|
},
|
4541
|
-
p(
|
4542
|
-
if (
|
4519
|
+
p(b, C) {
|
4520
|
+
if (C[0] & /*$_*/
|
4543
4521
|
2048 && l !== (l = /*$_*/
|
4544
|
-
|
4545
|
-
2048 &&
|
4546
|
-
|
4522
|
+
b[11]("filterby") + "") && q(u, l), C[0] & /*$_*/
|
4523
|
+
2048 && v !== (v = /*$_*/
|
4524
|
+
b[11]("providers") + "") && q(g, v), ae === (ae = Pe(b)) && $ ? $.p(b, C) : ($.d(1), $ = ae(b), $ && ($.c(), $.m(c, null))), C[0] & /*isFilterActive*/
|
4547
4525
|
16 && N !== (N = "TriangleInactive " + /*isFilterActive*/
|
4548
|
-
(
|
4549
|
-
16 &&
|
4550
|
-
(
|
4526
|
+
(b[4] ? "TriangleActive" : "")) && m(y, "class", N), C[0] & /*isFilterActive*/
|
4527
|
+
16 && R !== (R = "FilterSelector " + /*isFilterActive*/
|
4528
|
+
(b[4] ? "FilterSelectorOpen" : "")) && m(r, "class", R), C[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4551
4529
|
8228) {
|
4552
|
-
|
4530
|
+
d = _t(
|
4553
4531
|
/*vendorArray*/
|
4554
|
-
|
4532
|
+
b[5]
|
4555
4533
|
);
|
4556
|
-
let
|
4557
|
-
for (
|
4558
|
-
const
|
4559
|
-
|
4534
|
+
let I;
|
4535
|
+
for (I = 0; I < d.length; I += 1) {
|
4536
|
+
const re = jt(b, d, I);
|
4537
|
+
H[I] ? H[I].p(re, C) : (H[I] = Vt(re), H[I].c(), H[I].m(M, null));
|
4560
4538
|
}
|
4561
|
-
for (;
|
4562
|
-
|
4563
|
-
|
4539
|
+
for (; I < H.length; I += 1)
|
4540
|
+
H[I].d(1);
|
4541
|
+
H.length = d.length;
|
4564
4542
|
}
|
4565
|
-
|
4566
|
-
2048 &&
|
4567
|
-
|
4568
|
-
224 &&
|
4569
|
-
|
4570
|
-
|
4571
|
-
|
4572
|
-
16 &&
|
4573
|
-
(
|
4574
|
-
3 &&
|
4575
|
-
(
|
4576
|
-
|
4543
|
+
C[0] & /*$_*/
|
4544
|
+
2048 && K !== (K = /*$_*/
|
4545
|
+
b[11]("clear") + "") && q(oe, K), C[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4546
|
+
224 && se !== (se = /*fullSelection*/
|
4547
|
+
b[7] && /*selectedVendorArray*/
|
4548
|
+
b[6].length != /*vendorArray*/
|
4549
|
+
b[5].length) && (z.disabled = se), C[0] & /*isFilterActive*/
|
4550
|
+
16 && ee !== (ee = "FilterDropdownContainer " + /*isFilterActive*/
|
4551
|
+
(b[4] ? "FilterOpen" : "")) && m(O, "class", ee), C[0] & /*addfilterselector, addsortingselector*/
|
4552
|
+
3 && te !== (te = "FilterContainer " + /*addfilterselector*/
|
4553
|
+
(b[0] == "true" && /*addsortingselector*/
|
4554
|
+
b[1] == "true" ? "FilerContainerSplit" : "")) && m(t, "class", te);
|
4577
4555
|
},
|
4578
|
-
d(
|
4579
|
-
|
4556
|
+
d(b) {
|
4557
|
+
b && j(t), $.d(), Lr(H, b), _e = !1, Y(Ae);
|
4580
4558
|
}
|
4581
4559
|
};
|
4582
4560
|
}
|
4583
|
-
function
|
4561
|
+
function so(e) {
|
4584
4562
|
let t, r = (
|
4585
4563
|
/*$_*/
|
4586
4564
|
e[11]("500") + ""
|
4587
4565
|
), n;
|
4588
4566
|
return {
|
4589
4567
|
c() {
|
4590
|
-
t =
|
4568
|
+
t = F("p"), n = G(r), m(t, "class", "SearchLoading");
|
4591
4569
|
},
|
4592
4570
|
m(i, o) {
|
4593
|
-
|
4571
|
+
W(i, t, o), _(t, n);
|
4594
4572
|
},
|
4595
4573
|
p(i, o) {
|
4596
4574
|
o[0] & /*$_*/
|
@@ -4598,21 +4576,21 @@ function ho(e) {
|
|
4598
4576
|
i[11]("500") + "") && q(n, r);
|
4599
4577
|
},
|
4600
4578
|
d(i) {
|
4601
|
-
i &&
|
4579
|
+
i && j(t);
|
4602
4580
|
}
|
4603
4581
|
};
|
4604
4582
|
}
|
4605
|
-
function
|
4583
|
+
function ao(e) {
|
4606
4584
|
let t, r;
|
4607
4585
|
return {
|
4608
4586
|
c() {
|
4609
|
-
t =
|
4587
|
+
t = F("span"), r = G(
|
4610
4588
|
/*selectionNumber*/
|
4611
4589
|
e[8]
|
4612
|
-
),
|
4590
|
+
), m(t, "class", "FilterCounter");
|
4613
4591
|
},
|
4614
4592
|
m(n, i) {
|
4615
|
-
|
4593
|
+
W(n, t, i), _(t, r);
|
4616
4594
|
},
|
4617
4595
|
p(n, i) {
|
4618
4596
|
i[0] & /*selectionNumber*/
|
@@ -4623,21 +4601,21 @@ function co(e) {
|
|
4623
4601
|
);
|
4624
4602
|
},
|
4625
4603
|
d(n) {
|
4626
|
-
n &&
|
4604
|
+
n && j(t);
|
4627
4605
|
}
|
4628
4606
|
};
|
4629
4607
|
}
|
4630
|
-
function
|
4608
|
+
function lo(e) {
|
4631
4609
|
let t, r = (
|
4632
4610
|
/*$_*/
|
4633
4611
|
e[11]("all") + ""
|
4634
4612
|
), n;
|
4635
4613
|
return {
|
4636
4614
|
c() {
|
4637
|
-
t =
|
4615
|
+
t = F("span"), n = G(r), m(t, "class", "FilterCounter");
|
4638
4616
|
},
|
4639
4617
|
m(i, o) {
|
4640
|
-
|
4618
|
+
W(i, t, o), _(t, n);
|
4641
4619
|
},
|
4642
4620
|
p(i, o) {
|
4643
4621
|
o[0] & /*$_*/
|
@@ -4645,31 +4623,31 @@ function fo(e) {
|
|
4645
4623
|
i[11]("all") + "") && q(n, r);
|
4646
4624
|
},
|
4647
4625
|
d(i) {
|
4648
|
-
i &&
|
4626
|
+
i && j(t);
|
4649
4627
|
}
|
4650
4628
|
};
|
4651
4629
|
}
|
4652
|
-
function
|
4630
|
+
function uo(e) {
|
4653
4631
|
let t, r;
|
4654
4632
|
return {
|
4655
4633
|
c() {
|
4656
|
-
t =
|
4657
|
-
e[36].logo) ||
|
4634
|
+
t = F("img"), gt(t.src, r = /*vendor*/
|
4635
|
+
e[36].logo) || m(t, "src", r), m(t, "alt", "vendor logo");
|
4658
4636
|
},
|
4659
4637
|
m(n, i) {
|
4660
|
-
|
4638
|
+
W(n, t, i);
|
4661
4639
|
},
|
4662
4640
|
p(n, i) {
|
4663
4641
|
i[0] & /*vendorArray*/
|
4664
|
-
32 && !
|
4665
|
-
n[36].logo) &&
|
4642
|
+
32 && !gt(t.src, r = /*vendor*/
|
4643
|
+
n[36].logo) && m(t, "src", r);
|
4666
4644
|
},
|
4667
4645
|
d(n) {
|
4668
|
-
n &&
|
4646
|
+
n && j(t);
|
4669
4647
|
}
|
4670
4648
|
};
|
4671
4649
|
}
|
4672
|
-
function
|
4650
|
+
function ho(e) {
|
4673
4651
|
let t, r, n = (
|
4674
4652
|
/*vendor*/
|
4675
4653
|
e[36].name + ""
|
@@ -4679,26 +4657,26 @@ function mo(e) {
|
|
4679
4657
|
), l, u;
|
4680
4658
|
return {
|
4681
4659
|
c() {
|
4682
|
-
t =
|
4660
|
+
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");
|
4683
4661
|
},
|
4684
|
-
m(
|
4685
|
-
|
4662
|
+
m(f, c) {
|
4663
|
+
W(f, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, u);
|
4686
4664
|
},
|
4687
|
-
p(
|
4665
|
+
p(f, c) {
|
4688
4666
|
c[0] & /*vendorArray*/
|
4689
4667
|
32 && n !== (n = /*vendor*/
|
4690
|
-
|
4668
|
+
f[36].name + "") && q(i, n), c[0] & /*vendorArray*/
|
4691
4669
|
32 && h !== (h = /*vendor*/
|
4692
|
-
|
4670
|
+
f[36].games.count + "") && q(l, h);
|
4693
4671
|
},
|
4694
|
-
d(
|
4695
|
-
|
4672
|
+
d(f) {
|
4673
|
+
f && j(t);
|
4696
4674
|
}
|
4697
4675
|
};
|
4698
4676
|
}
|
4699
|
-
function
|
4700
|
-
let t, r, n, i, o, s, a, h, l, u,
|
4701
|
-
function
|
4677
|
+
function Vt(e) {
|
4678
|
+
let t, r, n, i, o, s, a, h, l, u, f, c;
|
4679
|
+
function p() {
|
4702
4680
|
e[24].call(
|
4703
4681
|
n,
|
4704
4682
|
/*each_value*/
|
@@ -4707,7 +4685,7 @@ function Zt(e) {
|
|
4707
4685
|
e[38]
|
4708
4686
|
);
|
4709
4687
|
}
|
4710
|
-
function
|
4688
|
+
function v() {
|
4711
4689
|
return (
|
4712
4690
|
/*click_handler_1*/
|
4713
4691
|
e[25](
|
@@ -4716,164 +4694,164 @@ function Zt(e) {
|
|
4716
4694
|
)
|
4717
4695
|
);
|
4718
4696
|
}
|
4719
|
-
function g(
|
4697
|
+
function g(y, x) {
|
4720
4698
|
if (
|
4721
4699
|
/*filterbylogo*/
|
4722
|
-
|
4700
|
+
y[2] === "false"
|
4723
4701
|
)
|
4724
|
-
return
|
4702
|
+
return ho;
|
4725
4703
|
if (
|
4726
4704
|
/*filterbylogo*/
|
4727
|
-
|
4705
|
+
y[2] === "true"
|
4728
4706
|
)
|
4729
|
-
return
|
4707
|
+
return uo;
|
4730
4708
|
}
|
4731
|
-
let
|
4709
|
+
let P = g(e), w = P && P(e);
|
4732
4710
|
return {
|
4733
4711
|
c() {
|
4734
|
-
t =
|
4735
|
-
e[36].name,
|
4712
|
+
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*/
|
4713
|
+
e[36].name, vt(n, n.__value), m(s, "class", "FiltersCheckmark"), m(r, "class", "FilterLabel"), m(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4736
4714
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = u = /*vendor*/
|
4737
4715
|
e[36].name;
|
4738
4716
|
},
|
4739
|
-
m(
|
4740
|
-
|
4741
|
-
e[36].isFilterSelected, _(r, o), _(r, s), _(r, a), w && w.m(r, null), _(t, h),
|
4742
|
-
|
4743
|
-
|
4744
|
-
],
|
4717
|
+
m(y, x) {
|
4718
|
+
W(y, t, x), _(t, r), _(r, n), n.checked = /*vendor*/
|
4719
|
+
e[36].isFilterSelected, _(r, o), _(r, s), _(r, a), w && w.m(r, null), _(t, h), f || (c = [
|
4720
|
+
Me(n, "change", p),
|
4721
|
+
Me(n, "click", v)
|
4722
|
+
], f = !0);
|
4745
4723
|
},
|
4746
|
-
p(
|
4747
|
-
e =
|
4724
|
+
p(y, x) {
|
4725
|
+
e = y, x[0] & /*vendorArray*/
|
4748
4726
|
32 && i !== (i = /*vendor*/
|
4749
|
-
e[36].name) && (n.__value = i,
|
4727
|
+
e[36].name) && (n.__value = i, vt(n, n.__value)), x[0] & /*vendorArray*/
|
4750
4728
|
32 && (n.checked = /*vendor*/
|
4751
|
-
e[36].isFilterSelected),
|
4729
|
+
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*/
|
4752
4730
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4753
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
4731
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && m(t, "class", l), x[0] & /*vendorArray*/
|
4754
4732
|
32 && u !== (u = /*vendor*/
|
4755
4733
|
e[36].name) && (t.value = u);
|
4756
4734
|
},
|
4757
|
-
d(
|
4758
|
-
|
4735
|
+
d(y) {
|
4736
|
+
y && j(t), w && w.d(), f = !1, Y(c);
|
4759
4737
|
}
|
4760
4738
|
};
|
4761
4739
|
}
|
4762
|
-
function
|
4740
|
+
function co(e) {
|
4763
4741
|
let t;
|
4764
4742
|
function r(o, s) {
|
4765
4743
|
if (
|
4766
4744
|
/*hasErrors*/
|
4767
4745
|
o[10]
|
4768
4746
|
)
|
4769
|
-
return
|
4747
|
+
return so;
|
4770
4748
|
if (!/*isLoading*/
|
4771
4749
|
o[9])
|
4772
|
-
return
|
4750
|
+
return oo;
|
4773
4751
|
}
|
4774
4752
|
let n = r(e), i = n && n(e);
|
4775
4753
|
return {
|
4776
4754
|
c() {
|
4777
|
-
t =
|
4755
|
+
t = F("div"), i && i.c();
|
4778
4756
|
},
|
4779
4757
|
m(o, s) {
|
4780
|
-
|
4758
|
+
W(o, t, s), i && i.m(t, null), e[27](t);
|
4781
4759
|
},
|
4782
4760
|
p(o, s) {
|
4783
4761
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
4784
4762
|
},
|
4785
|
-
i:
|
4786
|
-
o:
|
4763
|
+
i: k,
|
4764
|
+
o: k,
|
4787
4765
|
d(o) {
|
4788
|
-
o &&
|
4766
|
+
o && j(t), i && i.d(), e[27](null);
|
4789
4767
|
}
|
4790
4768
|
};
|
4791
4769
|
}
|
4792
|
-
function
|
4770
|
+
function fo(e, t, r) {
|
4793
4771
|
let n;
|
4794
|
-
|
4795
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: u = "" } = t, { addfilterselector:
|
4796
|
-
|
4797
|
-
const
|
4798
|
-
fetch(a).then((
|
4799
|
-
Object.keys(
|
4800
|
-
|
4772
|
+
Cr(e, qi, (d) => r(11, n = d));
|
4773
|
+
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;
|
4774
|
+
no({ withLocale: "en", translations: {} });
|
4775
|
+
const M = () => {
|
4776
|
+
fetch(a).then((H) => H.json()).then((H) => {
|
4777
|
+
Object.keys(H).forEach((b) => {
|
4778
|
+
Gt(b, H[b]);
|
4801
4779
|
});
|
4802
|
-
}).catch((
|
4803
|
-
console.log(
|
4780
|
+
}).catch((H) => {
|
4781
|
+
console.log(H);
|
4804
4782
|
});
|
4805
4783
|
};
|
4806
|
-
Object.keys(
|
4807
|
-
|
4784
|
+
Object.keys(kt).forEach((d) => {
|
4785
|
+
Gt(d, kt[d]);
|
4808
4786
|
}), x[u] && (x = { [u]: [] });
|
4809
|
-
const
|
4787
|
+
const V = () => {
|
4810
4788
|
r(4, g = !g), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4811
|
-
},
|
4812
|
-
fetch(
|
4813
|
-
|
4814
|
-
let
|
4815
|
-
|
4816
|
-
|
4817
|
-
}), r(5, w =
|
4818
|
-
}).catch((
|
4819
|
-
console.error(
|
4789
|
+
}, z = (d) => (r(9, R = !0), new Promise((H, b) => {
|
4790
|
+
fetch(d).then((C) => C.json()).then((C) => {
|
4791
|
+
C = C.items, H(C.items), r(6, y = []);
|
4792
|
+
let I = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4793
|
+
C.forEach((re) => {
|
4794
|
+
I || (I = { currentCategoryId: [] }), I[u]?.indexOf(re.id) >= 0 ? (re.isFilterSelected = !0, y.push(re)) : re.isFilterSelected = !1;
|
4795
|
+
}), r(5, w = C), oe();
|
4796
|
+
}).catch((C) => {
|
4797
|
+
console.error(C), r(10, O = !0), b(C);
|
4820
4798
|
}).finally(() => {
|
4821
|
-
r(9,
|
4799
|
+
r(9, R = !1);
|
4822
4800
|
});
|
4823
|
-
})),
|
4824
|
-
let
|
4825
|
-
|
4826
|
-
[u]:
|
4827
|
-
})) : (
|
4828
|
-
}, K = () => {
|
4829
|
-
r(7, O = v.length === w.length || v.length == 0), r(8, N = v.length);
|
4801
|
+
})), K = (d) => {
|
4802
|
+
let H = localStorage.getItem("vendorFiltersByCategory");
|
4803
|
+
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 = {
|
4804
|
+
[u]: y.map((b) => b.id)
|
4805
|
+
})) : (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();
|
4830
4806
|
}, oe = () => {
|
4831
|
-
|
4832
|
-
|
4807
|
+
r(7, L = y.length === w.length || y.length == 0), r(8, N = y.length);
|
4808
|
+
}, se = () => {
|
4809
|
+
const d = new URL(`${i}/v1/casino/vendors`);
|
4810
|
+
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);
|
4833
4811
|
}, ee = () => {
|
4834
|
-
r(6,
|
4835
|
-
[u]:
|
4836
|
-
})), w.forEach((
|
4837
|
-
},
|
4838
|
-
|
4812
|
+
r(6, y = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(x = {
|
4813
|
+
[u]: y.map((d) => d.id)
|
4814
|
+
})), w.forEach((d) => d.isFilterSelected = !1), r(5, w), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4, g = !1);
|
4815
|
+
}, te = (d) => {
|
4816
|
+
d.data.type == "SortingOpened" && r(4, g = !1);
|
4839
4817
|
};
|
4840
|
-
|
4841
|
-
window.
|
4818
|
+
Dr(() => (window.addEventListener("message", te, !1), () => {
|
4819
|
+
window.removeEventListener("message", te);
|
4842
4820
|
}));
|
4843
|
-
const
|
4844
|
-
function
|
4845
|
-
|
4821
|
+
const _e = () => V();
|
4822
|
+
function Ae(d, H) {
|
4823
|
+
d[H].isFilterSelected = this.checked, r(5, w);
|
4846
4824
|
}
|
4847
|
-
const
|
4848
|
-
function
|
4849
|
-
|
4850
|
-
S =
|
4825
|
+
const Pe = (d) => K(d), ae = () => ee();
|
4826
|
+
function $(d) {
|
4827
|
+
qe[d ? "unshift" : "push"](() => {
|
4828
|
+
S = d, r(3, S);
|
4851
4829
|
});
|
4852
4830
|
}
|
4853
|
-
return e.$$set = (
|
4854
|
-
"endpoint" in
|
4831
|
+
return e.$$set = (d) => {
|
4832
|
+
"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);
|
4855
4833
|
}, e.$$.update = () => {
|
4856
4834
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4857
|
-
2195460 && i && o && u &&
|
4858
|
-
524296 && h && S &&
|
4859
|
-
1048584 && l && S &&
|
4860
|
-
4194312 && S &&
|
4861
|
-
262144 && a &&
|
4835
|
+
2195460 && i && o && u && p && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4836
|
+
524296 && h && S && eo(S, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4837
|
+
1048584 && l && S && to(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4838
|
+
4194312 && S && ro(S, `${v}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4839
|
+
262144 && a && M();
|
4862
4840
|
}, [
|
4863
|
-
|
4841
|
+
f,
|
4864
4842
|
c,
|
4865
|
-
|
4843
|
+
p,
|
4866
4844
|
S,
|
4867
4845
|
g,
|
4868
4846
|
w,
|
4869
|
-
|
4870
|
-
|
4847
|
+
y,
|
4848
|
+
L,
|
4871
4849
|
N,
|
4872
|
-
|
4873
|
-
|
4850
|
+
R,
|
4851
|
+
O,
|
4874
4852
|
n,
|
4875
|
-
|
4876
|
-
|
4853
|
+
V,
|
4854
|
+
K,
|
4877
4855
|
ee,
|
4878
4856
|
i,
|
4879
4857
|
o,
|
@@ -4882,22 +4860,22 @@ function go(e, t, r) {
|
|
4882
4860
|
h,
|
4883
4861
|
l,
|
4884
4862
|
u,
|
4885
|
-
|
4863
|
+
v,
|
4864
|
+
_e,
|
4886
4865
|
Ae,
|
4887
4866
|
Pe,
|
4888
4867
|
ae,
|
4889
|
-
|
4890
|
-
J
|
4868
|
+
$
|
4891
4869
|
];
|
4892
4870
|
}
|
4893
|
-
class
|
4871
|
+
class Pr extends zr {
|
4894
4872
|
constructor(t) {
|
4895
|
-
super(),
|
4873
|
+
super(), Xr(
|
4896
4874
|
this,
|
4897
4875
|
t,
|
4898
|
-
|
4899
|
-
|
4900
|
-
|
4876
|
+
fo,
|
4877
|
+
co,
|
4878
|
+
Wt,
|
4901
4879
|
{
|
4902
4880
|
endpoint: 15,
|
4903
4881
|
datasource: 16,
|
@@ -4911,7 +4889,7 @@ class Or extends Yr {
|
|
4911
4889
|
filterbylogo: 2,
|
4912
4890
|
mbsource: 22
|
4913
4891
|
},
|
4914
|
-
|
4892
|
+
io,
|
4915
4893
|
[-1, -1]
|
4916
4894
|
);
|
4917
4895
|
}
|
@@ -4919,114 +4897,114 @@ class Or extends Yr {
|
|
4919
4897
|
return this.$$.ctx[15];
|
4920
4898
|
}
|
4921
4899
|
set endpoint(t) {
|
4922
|
-
this.$$set({ endpoint: t }),
|
4900
|
+
this.$$set({ endpoint: t }), U();
|
4923
4901
|
}
|
4924
4902
|
get datasource() {
|
4925
4903
|
return this.$$.ctx[16];
|
4926
4904
|
}
|
4927
4905
|
set datasource(t) {
|
4928
|
-
this.$$set({ datasource: t }),
|
4906
|
+
this.$$set({ datasource: t }), U();
|
4929
4907
|
}
|
4930
4908
|
get lang() {
|
4931
4909
|
return this.$$.ctx[17];
|
4932
4910
|
}
|
4933
4911
|
set lang(t) {
|
4934
|
-
this.$$set({ lang: t }),
|
4912
|
+
this.$$set({ lang: t }), U();
|
4935
4913
|
}
|
4936
4914
|
get translationurl() {
|
4937
4915
|
return this.$$.ctx[18];
|
4938
4916
|
}
|
4939
4917
|
set translationurl(t) {
|
4940
|
-
this.$$set({ translationurl: t }),
|
4918
|
+
this.$$set({ translationurl: t }), U();
|
4941
4919
|
}
|
4942
4920
|
get clientstyling() {
|
4943
4921
|
return this.$$.ctx[19];
|
4944
4922
|
}
|
4945
4923
|
set clientstyling(t) {
|
4946
|
-
this.$$set({ clientstyling: t }),
|
4924
|
+
this.$$set({ clientstyling: t }), U();
|
4947
4925
|
}
|
4948
4926
|
get clientstylingurl() {
|
4949
4927
|
return this.$$.ctx[20];
|
4950
4928
|
}
|
4951
4929
|
set clientstylingurl(t) {
|
4952
|
-
this.$$set({ clientstylingurl: t }),
|
4930
|
+
this.$$set({ clientstylingurl: t }), U();
|
4953
4931
|
}
|
4954
4932
|
get categoryid() {
|
4955
4933
|
return this.$$.ctx[21];
|
4956
4934
|
}
|
4957
4935
|
set categoryid(t) {
|
4958
|
-
this.$$set({ categoryid: t }),
|
4936
|
+
this.$$set({ categoryid: t }), U();
|
4959
4937
|
}
|
4960
4938
|
get addfilterselector() {
|
4961
4939
|
return this.$$.ctx[0];
|
4962
4940
|
}
|
4963
4941
|
set addfilterselector(t) {
|
4964
|
-
this.$$set({ addfilterselector: t }),
|
4942
|
+
this.$$set({ addfilterselector: t }), U();
|
4965
4943
|
}
|
4966
4944
|
get addsortingselector() {
|
4967
4945
|
return this.$$.ctx[1];
|
4968
4946
|
}
|
4969
4947
|
set addsortingselector(t) {
|
4970
|
-
this.$$set({ addsortingselector: t }),
|
4948
|
+
this.$$set({ addsortingselector: t }), U();
|
4971
4949
|
}
|
4972
4950
|
get filterbylogo() {
|
4973
4951
|
return this.$$.ctx[2];
|
4974
4952
|
}
|
4975
4953
|
set filterbylogo(t) {
|
4976
|
-
this.$$set({ filterbylogo: t }),
|
4954
|
+
this.$$set({ filterbylogo: t }), U();
|
4977
4955
|
}
|
4978
4956
|
get mbsource() {
|
4979
4957
|
return this.$$.ctx[22];
|
4980
4958
|
}
|
4981
4959
|
set mbsource(t) {
|
4982
|
-
this.$$set({ mbsource: t }),
|
4960
|
+
this.$$set({ mbsource: t }), U();
|
4983
4961
|
}
|
4984
4962
|
}
|
4985
|
-
|
4986
|
-
const
|
4963
|
+
Wr(Pr, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {} }, [], [], !0);
|
4964
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4987
4965
|
__proto__: null,
|
4988
|
-
default:
|
4966
|
+
default: Pr
|
4989
4967
|
}, Symbol.toStringTag, { value: "Module" }));
|
4990
4968
|
export {
|
4991
|
-
|
4992
|
-
|
4993
|
-
|
4994
|
-
|
4995
|
-
|
4996
|
-
|
4997
|
-
|
4998
|
-
|
4999
|
-
|
5000
|
-
|
5001
|
-
|
5002
|
-
|
4969
|
+
ne as $,
|
4970
|
+
Ee as A,
|
4971
|
+
eo as B,
|
4972
|
+
to as C,
|
4973
|
+
ro as D,
|
4974
|
+
Wr as E,
|
4975
|
+
qi as F,
|
4976
|
+
xo as G,
|
4977
|
+
go as H,
|
4978
|
+
_o as I,
|
4979
|
+
mo as J,
|
4980
|
+
yo as K,
|
5003
4981
|
ve as L,
|
5004
|
-
|
5005
|
-
|
5006
|
-
|
5007
|
-
|
5008
|
-
|
5009
|
-
|
5010
|
-
|
5011
|
-
|
5012
|
-
|
5013
|
-
|
5014
|
-
|
5015
|
-
|
5016
|
-
|
5017
|
-
|
5018
|
-
|
5019
|
-
|
5020
|
-
|
5021
|
-
|
5022
|
-
|
5023
|
-
|
5024
|
-
|
5025
|
-
|
5026
|
-
|
5027
|
-
|
5028
|
-
|
5029
|
-
|
5030
|
-
|
5031
|
-
|
4982
|
+
Eo as M,
|
4983
|
+
zr as S,
|
4984
|
+
wr as a,
|
4985
|
+
Br as b,
|
4986
|
+
gt as c,
|
4987
|
+
j as d,
|
4988
|
+
m as e,
|
4989
|
+
U as f,
|
4990
|
+
q as g,
|
4991
|
+
W as h,
|
4992
|
+
Xr as i,
|
4993
|
+
_ as j,
|
4994
|
+
F as k,
|
4995
|
+
X as l,
|
4996
|
+
G as m,
|
4997
|
+
k as n,
|
4998
|
+
Cr as o,
|
4999
|
+
Dr as p,
|
5000
|
+
Me as q,
|
5001
|
+
po as r,
|
5002
|
+
Wt as s,
|
5003
|
+
bo as t,
|
5004
|
+
Yi as u,
|
5005
|
+
Ki as v,
|
5006
|
+
qe as w,
|
5007
|
+
_t as x,
|
5008
|
+
Lr as y,
|
5009
|
+
vo as z
|
5032
5010
|
};
|