@everymatrix/casino-most-played-section 1.48.0 → 1.48.1
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-H10ltJK5.js → CasinoFilter-BvY4h3Lz.js} +753 -723
- package/components/{CasinoFilter-DvwXHWZ_.cjs → CasinoFilter-DHz_wGki.cjs} +3 -3
- package/components/{CasinoGameThumbnail-2yqhT773.js → CasinoGameThumbnail-Bc2T164t.js} +1 -1
- package/components/{CasinoGameThumbnail-DdkRrOek.cjs → CasinoGameThumbnail-hTMzdJJj.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-DA6lWIN0.js → CasinoGamesCategorySection-SLRENrL-.js} +1205 -1205
- package/components/CasinoGamesCategorySection-xBWzRUss.cjs +1 -0
- package/components/{CasinoMostPlayedSection-RrKMi0tW.cjs → CasinoMostPlayedSection-BytYZGGM.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-1DbHT3J4.js → CasinoMostPlayedSection-CtG3SDpw.js} +5 -5
- package/components/{CasinoSort-CKushhWB.cjs → CasinoSort-D4aiCION.cjs} +1 -1
- package/components/{CasinoSort-B9WD46q7.js → CasinoSort-vsNG6TKa.js} +1 -1
- package/es2015/casino-most-played-section.cjs +1 -1
- package/es2015/casino-most-played-section.js +1 -1
- package/package.json +1 -1
- package/components/CasinoGamesCategorySection-ClycvFTQ.cjs +0 -1
@@ -1,16 +1,16 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
var
|
5
|
-
var We = (e, t, r) => t in e ?
|
1
|
+
var kr = Object.defineProperty, jr = Object.defineProperties;
|
2
|
+
var Vr = Object.getOwnPropertyDescriptors;
|
3
|
+
var wt = Object.getOwnPropertySymbols;
|
4
|
+
var Xr = Object.prototype.hasOwnProperty, Wr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var We = (e, t, r) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, St = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
8
|
-
if (
|
9
|
-
for (var r of
|
10
|
-
|
7
|
+
Xr.call(t, r) && We(e, r, t[r]);
|
8
|
+
if (wt)
|
9
|
+
for (var r of wt(t))
|
10
|
+
Wr.call(t, r) && We(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
}, Tt = (e, t) =>
|
13
|
-
var
|
12
|
+
}, Tt = (e, t) => jr(e, Vr(t));
|
13
|
+
var R = (e, t, r) => We(e, typeof t != "symbol" ? t + "" : t, r);
|
14
14
|
var Ht = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (u) => {
|
16
16
|
try {
|
@@ -27,7 +27,7 @@ var Ht = (e, t, r) => new Promise((n, i) => {
|
|
27
27
|
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
|
-
function
|
30
|
+
function k() {
|
31
31
|
}
|
32
32
|
function rr(e) {
|
33
33
|
return e();
|
@@ -35,7 +35,7 @@ function rr(e) {
|
|
35
35
|
function At() {
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
37
37
|
}
|
38
|
-
function
|
38
|
+
function K(e) {
|
39
39
|
e.forEach(rr);
|
40
40
|
}
|
41
41
|
function gt(e) {
|
@@ -48,32 +48,32 @@ let Fe;
|
|
48
48
|
function Pt(e, t) {
|
49
49
|
return e === t ? !0 : (Fe || (Fe = document.createElement("a")), Fe.href = t, e === Fe.href);
|
50
50
|
}
|
51
|
-
function
|
51
|
+
function zr(e) {
|
52
52
|
return Object.keys(e).length === 0;
|
53
53
|
}
|
54
54
|
function ir(e, ...t) {
|
55
55
|
if (e == null) {
|
56
56
|
for (const n of t)
|
57
57
|
n(void 0);
|
58
|
-
return
|
58
|
+
return k;
|
59
59
|
}
|
60
60
|
const r = e.subscribe(...t);
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
62
62
|
}
|
63
|
-
function
|
63
|
+
function Zr(e, t, r) {
|
64
64
|
e.$$.on_destroy.push(ir(t, r));
|
65
65
|
}
|
66
|
-
function
|
66
|
+
function v(e, t) {
|
67
67
|
e.appendChild(t);
|
68
68
|
}
|
69
|
-
function
|
70
|
-
const n =
|
69
|
+
function Jr(e, t, r) {
|
70
|
+
const n = Qr(e);
|
71
71
|
if (!n.getElementById(t)) {
|
72
|
-
const i =
|
73
|
-
i.id = t, i.textContent = r,
|
72
|
+
const i = B("style");
|
73
|
+
i.id = t, i.textContent = r, qr(n, i);
|
74
74
|
}
|
75
75
|
}
|
76
|
-
function
|
76
|
+
function Qr(e) {
|
77
77
|
if (!e) return document;
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
79
79
|
return t && /** @type {ShadowRoot} */
|
@@ -82,52 +82,52 @@ function Jr(e) {
|
|
82
82
|
t
|
83
83
|
) : e.ownerDocument;
|
84
84
|
}
|
85
|
-
function
|
86
|
-
return
|
85
|
+
function qr(e, t) {
|
86
|
+
return v(
|
87
87
|
/** @type {Document} */
|
88
88
|
e.head || e,
|
89
89
|
t
|
90
90
|
), t.sheet;
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function W(e, t, r) {
|
93
93
|
e.insertBefore(t, r || null);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function j(e) {
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
97
97
|
}
|
98
|
-
function
|
98
|
+
function Yr(e, t) {
|
99
99
|
for (let r = 0; r < e.length; r += 1)
|
100
100
|
e[r] && e[r].d(t);
|
101
101
|
}
|
102
|
-
function
|
102
|
+
function B(e) {
|
103
103
|
return document.createElement(e);
|
104
104
|
}
|
105
|
-
function
|
105
|
+
function we(e) {
|
106
106
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
107
107
|
}
|
108
|
-
function
|
108
|
+
function G(e) {
|
109
109
|
return document.createTextNode(e);
|
110
110
|
}
|
111
|
-
function
|
112
|
-
return
|
111
|
+
function X() {
|
112
|
+
return G(" ");
|
113
113
|
}
|
114
114
|
function Po() {
|
115
|
-
return
|
115
|
+
return G("");
|
116
116
|
}
|
117
117
|
function De(e, t, r, n) {
|
118
118
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
119
119
|
}
|
120
|
-
function
|
120
|
+
function g(e, t, r) {
|
121
121
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
122
122
|
}
|
123
123
|
function Co(e, t, r) {
|
124
124
|
const n = t.toLowerCase();
|
125
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
125
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : g(e, t, r);
|
126
126
|
}
|
127
|
-
function
|
127
|
+
function Kr(e) {
|
128
128
|
return Array.from(e.childNodes);
|
129
129
|
}
|
130
|
-
function
|
130
|
+
function Y(e, t) {
|
131
131
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
132
132
|
t);
|
133
133
|
}
|
@@ -143,15 +143,15 @@ class Fo {
|
|
143
143
|
* @private
|
144
144
|
* @default false
|
145
145
|
*/
|
146
|
-
|
146
|
+
R(this, "is_svg", !1);
|
147
147
|
/** parent for creating node */
|
148
|
-
|
148
|
+
R(this, "e");
|
149
149
|
/** html tag nodes */
|
150
|
-
|
150
|
+
R(this, "n");
|
151
151
|
/** target */
|
152
|
-
|
152
|
+
R(this, "t");
|
153
153
|
/** anchor */
|
154
|
-
|
154
|
+
R(this, "a");
|
155
155
|
this.is_svg = t, this.e = this.n = null;
|
156
156
|
}
|
157
157
|
/**
|
@@ -168,10 +168,10 @@ class Fo {
|
|
168
168
|
* @returns {void}
|
169
169
|
*/
|
170
170
|
m(t, r, n = null) {
|
171
|
-
this.e || (this.is_svg ? this.e =
|
171
|
+
this.e || (this.is_svg ? this.e = we(
|
172
172
|
/** @type {keyof SVGElementTagNameMap} */
|
173
173
|
r.nodeName
|
174
|
-
) : this.e =
|
174
|
+
) : this.e = B(
|
175
175
|
/** @type {keyof HTMLElementTagNameMap} */
|
176
176
|
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
177
177
|
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
@@ -192,7 +192,7 @@ class Fo {
|
|
192
192
|
* @returns {void} */
|
193
193
|
i(t) {
|
194
194
|
for (let r = 0; r < this.n.length; r += 1)
|
195
|
-
|
195
|
+
W(this.t, this.n[r], t);
|
196
196
|
}
|
197
197
|
/**
|
198
198
|
* @param {string} html
|
@@ -204,10 +204,10 @@ class Fo {
|
|
204
204
|
/**
|
205
205
|
* @returns {void} */
|
206
206
|
d() {
|
207
|
-
this.n.forEach(
|
207
|
+
this.n.forEach(j);
|
208
208
|
}
|
209
209
|
}
|
210
|
-
function
|
210
|
+
function en(e) {
|
211
211
|
const t = {};
|
212
212
|
return e.childNodes.forEach(
|
213
213
|
/** @param {Element} node */
|
@@ -216,97 +216,125 @@ function Kr(e) {
|
|
216
216
|
}
|
217
217
|
), t;
|
218
218
|
}
|
219
|
-
let
|
219
|
+
let Te;
|
220
220
|
function Se(e) {
|
221
|
-
|
221
|
+
Te = e;
|
222
222
|
}
|
223
|
-
function
|
224
|
-
if (!
|
225
|
-
return
|
223
|
+
function tn() {
|
224
|
+
if (!Te) throw new Error("Function called outside component initialization");
|
225
|
+
return Te;
|
226
226
|
}
|
227
|
-
function
|
228
|
-
|
227
|
+
function rn(e) {
|
228
|
+
tn().$$.on_mount.push(e);
|
229
229
|
}
|
230
|
-
const
|
231
|
-
let
|
230
|
+
const fe = [], tt = [];
|
231
|
+
let de = [];
|
232
232
|
const Bt = [], or = /* @__PURE__ */ Promise.resolve();
|
233
233
|
let rt = !1;
|
234
234
|
function sr() {
|
235
|
-
rt || (rt = !0, or.then(
|
235
|
+
rt || (rt = !0, or.then(U));
|
236
236
|
}
|
237
237
|
function Oo() {
|
238
238
|
return sr(), or;
|
239
239
|
}
|
240
240
|
function nt(e) {
|
241
|
-
|
241
|
+
de.push(e);
|
242
242
|
}
|
243
243
|
const ze = /* @__PURE__ */ new Set();
|
244
|
-
let
|
245
|
-
function
|
246
|
-
if (
|
244
|
+
let he = 0;
|
245
|
+
function U() {
|
246
|
+
if (he !== 0)
|
247
247
|
return;
|
248
|
-
const e =
|
248
|
+
const e = Te;
|
249
249
|
do {
|
250
250
|
try {
|
251
|
-
for (;
|
252
|
-
const t =
|
253
|
-
|
251
|
+
for (; he < fe.length; ) {
|
252
|
+
const t = fe[he];
|
253
|
+
he++, Se(t), nn(t.$$);
|
254
254
|
}
|
255
255
|
} catch (t) {
|
256
|
-
throw
|
256
|
+
throw fe.length = 0, he = 0, t;
|
257
257
|
}
|
258
|
-
for (Se(null),
|
259
|
-
for (let t = 0; t <
|
260
|
-
const r =
|
258
|
+
for (Se(null), fe.length = 0, he = 0; tt.length; ) tt.pop()();
|
259
|
+
for (let t = 0; t < de.length; t += 1) {
|
260
|
+
const r = de[t];
|
261
261
|
ze.has(r) || (ze.add(r), r());
|
262
262
|
}
|
263
|
-
|
264
|
-
} while (
|
263
|
+
de.length = 0;
|
264
|
+
} while (fe.length);
|
265
265
|
for (; Bt.length; )
|
266
266
|
Bt.pop()();
|
267
267
|
rt = !1, ze.clear(), Se(e);
|
268
268
|
}
|
269
|
-
function
|
269
|
+
function nn(e) {
|
270
270
|
if (e.fragment !== null) {
|
271
|
-
e.update(),
|
271
|
+
e.update(), K(e.before_update);
|
272
272
|
const t = e.dirty;
|
273
273
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(nt);
|
274
274
|
}
|
275
275
|
}
|
276
|
-
function
|
276
|
+
function on(e) {
|
277
277
|
const t = [], r = [];
|
278
|
-
|
278
|
+
de.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), de = t;
|
279
279
|
}
|
280
|
-
const
|
281
|
-
function
|
282
|
-
e && e.i && (
|
280
|
+
const sn = /* @__PURE__ */ new Set();
|
281
|
+
function ar(e, t) {
|
282
|
+
e && e.i && (sn.delete(e), e.i(t));
|
283
283
|
}
|
284
284
|
function Ft(e) {
|
285
285
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
286
286
|
}
|
287
|
+
function Io(e, t) {
|
288
|
+
e.d(1), t.delete(e.key);
|
289
|
+
}
|
290
|
+
function Lo(e, t, r, n, i, o, s, a, u, l, h, d) {
|
291
|
+
let c = e.length, m = o.length, b = c;
|
292
|
+
const _ = {};
|
293
|
+
for (; b--; ) _[e[b].key] = b;
|
294
|
+
const T = [], y = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), E = [];
|
295
|
+
for (b = m; b--; ) {
|
296
|
+
const P = d(i, o, b), I = r(P);
|
297
|
+
let M = s.get(I);
|
298
|
+
M ? E.push(() => M.p(P, t)) : (M = l(I, P), M.c()), y.set(I, T[b] = M), I in _ && H.set(I, Math.abs(b - _[I]));
|
299
|
+
}
|
300
|
+
const N = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
301
|
+
function O(P) {
|
302
|
+
ar(P, 1), P.m(a, h), s.set(P.key, P), h = P.first, m--;
|
303
|
+
}
|
304
|
+
for (; c && m; ) {
|
305
|
+
const P = T[m - 1], I = e[c - 1], M = P.key, z = I.key;
|
306
|
+
P === I ? (h = P.first, c--, m--) : y.has(z) ? !s.has(M) || N.has(M) ? O(P) : L.has(z) ? c-- : H.get(M) > H.get(z) ? (L.add(M), O(P)) : (N.add(z), c--) : (u(I, s), c--);
|
307
|
+
}
|
308
|
+
for (; c--; ) {
|
309
|
+
const P = e[c];
|
310
|
+
y.has(P.key) || u(P, s);
|
311
|
+
}
|
312
|
+
for (; m; ) O(T[m - 1]);
|
313
|
+
return K(E), T;
|
314
|
+
}
|
287
315
|
function an(e, t, r) {
|
288
316
|
const { fragment: n, after_update: i } = e.$$;
|
289
317
|
n && n.m(t, r), nt(() => {
|
290
318
|
const o = e.$$.on_mount.map(rr).filter(gt);
|
291
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
319
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
292
320
|
}), i.forEach(nt);
|
293
321
|
}
|
294
322
|
function ln(e, t) {
|
295
323
|
const r = e.$$;
|
296
|
-
r.fragment !== null && (
|
324
|
+
r.fragment !== null && (on(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
297
325
|
}
|
298
326
|
function un(e, t) {
|
299
|
-
e.$$.dirty[0] === -1 && (
|
327
|
+
e.$$.dirty[0] === -1 && (fe.push(e), sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
300
328
|
}
|
301
329
|
function hn(e, t, r, n, i, o, s = null, a = [-1]) {
|
302
|
-
const u =
|
330
|
+
const u = Te;
|
303
331
|
Se(e);
|
304
332
|
const l = e.$$ = {
|
305
333
|
fragment: null,
|
306
334
|
ctx: [],
|
307
335
|
// state
|
308
336
|
props: o,
|
309
|
-
update:
|
337
|
+
update: k,
|
310
338
|
not_equal: i,
|
311
339
|
bound: At(),
|
312
340
|
// lifecycle
|
@@ -324,41 +352,41 @@ function hn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
324
352
|
};
|
325
353
|
s && s(l.root);
|
326
354
|
let h = !1;
|
327
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
328
|
-
const
|
329
|
-
return l.ctx && i(l.ctx[
|
330
|
-
}) : [], l.update(), h = !0,
|
355
|
+
if (l.ctx = r ? r(e, t.props || {}, (d, c, ...m) => {
|
356
|
+
const b = m.length ? m[0] : c;
|
357
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = b) && (!l.skip_bound && l.bound[d] && l.bound[d](b), h && un(e, d)), c;
|
358
|
+
}) : [], l.update(), h = !0, K(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
331
359
|
if (t.hydrate) {
|
332
|
-
const
|
333
|
-
l.fragment && l.fragment.l(
|
360
|
+
const d = Kr(t.target);
|
361
|
+
l.fragment && l.fragment.l(d), d.forEach(j);
|
334
362
|
} else
|
335
363
|
l.fragment && l.fragment.c();
|
336
|
-
t.intro &&
|
364
|
+
t.intro && ar(e.$$.fragment), an(e, t.target, t.anchor), U();
|
337
365
|
}
|
338
366
|
Se(u);
|
339
367
|
}
|
340
|
-
let
|
341
|
-
typeof HTMLElement == "function" && (
|
368
|
+
let lr;
|
369
|
+
typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
342
370
|
constructor(t, r, n) {
|
343
371
|
super();
|
344
372
|
/** The Svelte component constructor */
|
345
|
-
|
373
|
+
R(this, "$$ctor");
|
346
374
|
/** Slots */
|
347
|
-
|
375
|
+
R(this, "$$s");
|
348
376
|
/** The Svelte component instance */
|
349
|
-
|
377
|
+
R(this, "$$c");
|
350
378
|
/** Whether or not the custom element is connected */
|
351
|
-
|
379
|
+
R(this, "$$cn", !1);
|
352
380
|
/** Component props data */
|
353
|
-
|
381
|
+
R(this, "$$d", {});
|
354
382
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
355
|
-
|
383
|
+
R(this, "$$r", !1);
|
356
384
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
357
|
-
|
385
|
+
R(this, "$$p_d", {});
|
358
386
|
/** @type {Record<string, Function[]>} Event listeners */
|
359
|
-
|
387
|
+
R(this, "$$l", {});
|
360
388
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
361
|
-
|
389
|
+
R(this, "$$l_u", /* @__PURE__ */ new Map());
|
362
390
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
363
391
|
}
|
364
392
|
addEventListener(t, r, n) {
|
@@ -382,24 +410,24 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
382
410
|
let s;
|
383
411
|
return {
|
384
412
|
c: function() {
|
385
|
-
s =
|
413
|
+
s = B("slot"), o !== "default" && g(s, "name", o);
|
386
414
|
},
|
387
415
|
/**
|
388
416
|
* @param {HTMLElement} target
|
389
417
|
* @param {HTMLElement} [anchor]
|
390
418
|
*/
|
391
419
|
m: function(l, h) {
|
392
|
-
|
420
|
+
W(l, s, h);
|
393
421
|
},
|
394
422
|
d: function(l) {
|
395
|
-
l &&
|
423
|
+
l && j(s);
|
396
424
|
}
|
397
425
|
};
|
398
426
|
};
|
399
427
|
};
|
400
428
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
401
429
|
return;
|
402
|
-
const r = {}, n =
|
430
|
+
const r = {}, n = en(this);
|
403
431
|
for (const o of this.$$s)
|
404
432
|
o in n && (r[o] = [t(o)]);
|
405
433
|
for (const o of this.attributes) {
|
@@ -410,7 +438,7 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
|
|
410
438
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
411
439
|
this.$$c = new this.$$ctor({
|
412
440
|
target: this.shadowRoot || this,
|
413
|
-
props: Tt(
|
441
|
+
props: Tt(St({}, this.$$d), {
|
414
442
|
$$slots: r,
|
415
443
|
$$scope: {
|
416
444
|
ctx: []
|
@@ -489,7 +517,7 @@ function Le(e, t, r, n) {
|
|
489
517
|
}
|
490
518
|
}
|
491
519
|
function cn(e, t, r, n, i, o) {
|
492
|
-
let s = class extends
|
520
|
+
let s = class extends lr {
|
493
521
|
constructor() {
|
494
522
|
super(e, r, i), this.$$p_d = t;
|
495
523
|
}
|
@@ -528,7 +556,7 @@ class fn {
|
|
528
556
|
*
|
529
557
|
* @type {any}
|
530
558
|
*/
|
531
|
-
|
559
|
+
R(this, "$$");
|
532
560
|
/**
|
533
561
|
* ### PRIVATE API
|
534
562
|
*
|
@@ -536,11 +564,11 @@ class fn {
|
|
536
564
|
*
|
537
565
|
* @type {any}
|
538
566
|
*/
|
539
|
-
|
567
|
+
R(this, "$$set");
|
540
568
|
}
|
541
569
|
/** @returns {void} */
|
542
570
|
$destroy() {
|
543
|
-
ln(this, 1), this.$destroy =
|
571
|
+
ln(this, 1), this.$destroy = k;
|
544
572
|
}
|
545
573
|
/**
|
546
574
|
* @template {Extract<keyof Events, string>} K
|
@@ -550,7 +578,7 @@ class fn {
|
|
550
578
|
*/
|
551
579
|
$on(t, r) {
|
552
580
|
if (!gt(r))
|
553
|
-
return
|
581
|
+
return k;
|
554
582
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
555
583
|
return n.push(r), () => {
|
556
584
|
const i = n.indexOf(r);
|
@@ -562,11 +590,11 @@ class fn {
|
|
562
590
|
* @returns {void}
|
563
591
|
*/
|
564
592
|
$set(t) {
|
565
|
-
this.$$set && !
|
593
|
+
this.$$set && !zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
566
594
|
}
|
567
595
|
}
|
568
|
-
const
|
569
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
596
|
+
const dn = "4";
|
597
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dn);
|
570
598
|
var it = function(e, t) {
|
571
599
|
return it = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
572
600
|
r.__proto__ = n;
|
@@ -574,7 +602,7 @@ var it = function(e, t) {
|
|
574
602
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
575
603
|
}, it(e, t);
|
576
604
|
};
|
577
|
-
function
|
605
|
+
function J(e, t) {
|
578
606
|
if (typeof t != "function" && t !== null)
|
579
607
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
580
608
|
it(e, t);
|
@@ -592,7 +620,7 @@ var S = function() {
|
|
592
620
|
return t;
|
593
621
|
}, S.apply(this, arguments);
|
594
622
|
};
|
595
|
-
function
|
623
|
+
function pn(e, t) {
|
596
624
|
var r = {};
|
597
625
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
598
626
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -632,16 +660,16 @@ function pe(e, t, r) {
|
|
632
660
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
633
661
|
return e.concat(o || Array.prototype.slice.call(t));
|
634
662
|
}
|
635
|
-
function
|
663
|
+
function Z(e) {
|
636
664
|
return typeof e == "function";
|
637
665
|
}
|
638
|
-
function
|
666
|
+
function ur(e) {
|
639
667
|
var t = function(n) {
|
640
668
|
Error.call(n), n.stack = new Error().stack;
|
641
669
|
}, r = e(t);
|
642
670
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
643
671
|
}
|
644
|
-
var Ze =
|
672
|
+
var Ze = ur(function(e) {
|
645
673
|
return function(r) {
|
646
674
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
647
675
|
` + r.map(function(n, i) {
|
@@ -684,20 +712,20 @@ var Ge = function() {
|
|
684
712
|
else
|
685
713
|
s.remove(this);
|
686
714
|
var h = this.initialTeardown;
|
687
|
-
if (
|
715
|
+
if (Z(h))
|
688
716
|
try {
|
689
717
|
h();
|
690
718
|
} catch (_) {
|
691
719
|
o = _ instanceof Ze ? _.errors : [_];
|
692
720
|
}
|
693
|
-
var
|
694
|
-
if (
|
721
|
+
var d = this._finalizers;
|
722
|
+
if (d) {
|
695
723
|
this._finalizers = null;
|
696
724
|
try {
|
697
|
-
for (var
|
698
|
-
var
|
725
|
+
for (var c = ot(d), m = c.next(); !m.done; m = c.next()) {
|
726
|
+
var b = m.value;
|
699
727
|
try {
|
700
|
-
Ot(
|
728
|
+
Ot(b);
|
701
729
|
} catch (_) {
|
702
730
|
o = o != null ? o : [], _ instanceof Ze ? o = pe(pe([], st(o)), st(_.errors)) : o.push(_);
|
703
731
|
}
|
@@ -706,7 +734,7 @@ var Ge = function() {
|
|
706
734
|
n = { error: _ };
|
707
735
|
} finally {
|
708
736
|
try {
|
709
|
-
|
737
|
+
m && !m.done && (i = c.return) && i.call(c);
|
710
738
|
} finally {
|
711
739
|
if (n) throw n.error;
|
712
740
|
}
|
@@ -744,33 +772,33 @@ var Ge = function() {
|
|
744
772
|
var t = new e();
|
745
773
|
return t.closed = !0, t;
|
746
774
|
}(), e;
|
747
|
-
}(),
|
748
|
-
function
|
749
|
-
return e instanceof Ge || e && "closed" in e &&
|
775
|
+
}(), hr = Ge.EMPTY;
|
776
|
+
function cr(e) {
|
777
|
+
return e instanceof Ge || e && "closed" in e && Z(e.remove) && Z(e.add) && Z(e.unsubscribe);
|
750
778
|
}
|
751
779
|
function Ot(e) {
|
752
|
-
|
780
|
+
Z(e) ? e() : e.unsubscribe();
|
753
781
|
}
|
754
|
-
var
|
782
|
+
var fr = {
|
755
783
|
onUnhandledError: null,
|
756
784
|
onStoppedNotification: null,
|
757
785
|
Promise: void 0,
|
758
786
|
useDeprecatedSynchronousErrorHandling: !1,
|
759
787
|
useDeprecatedNextContext: !1
|
760
|
-
},
|
788
|
+
}, dr = {
|
761
789
|
setTimeout: function(e, t) {
|
762
790
|
for (var r = [], n = 2; n < arguments.length; n++)
|
763
791
|
r[n - 2] = arguments[n];
|
764
792
|
return setTimeout.apply(void 0, pe([e, t], st(r)));
|
765
793
|
},
|
766
794
|
clearTimeout: function(e) {
|
767
|
-
var t =
|
795
|
+
var t = dr.delegate;
|
768
796
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
769
797
|
},
|
770
798
|
delegate: void 0
|
771
799
|
};
|
772
800
|
function mn(e) {
|
773
|
-
|
801
|
+
dr.setTimeout(function() {
|
774
802
|
throw e;
|
775
803
|
});
|
776
804
|
}
|
@@ -780,10 +808,10 @@ function Ne(e) {
|
|
780
808
|
e();
|
781
809
|
}
|
782
810
|
var pr = function(e) {
|
783
|
-
|
811
|
+
J(t, e);
|
784
812
|
function t(r) {
|
785
813
|
var n = e.call(this) || this;
|
786
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
814
|
+
return n.isStopped = !1, r ? (n.destination = r, cr(r) && r.add(n)) : n.destination = vn, n;
|
787
815
|
}
|
788
816
|
return t.create = function(r, n, i) {
|
789
817
|
return new lt(r, n, i);
|
@@ -846,10 +874,10 @@ var gn = function() {
|
|
846
874
|
}
|
847
875
|
}, e;
|
848
876
|
}(), lt = function(e) {
|
849
|
-
|
877
|
+
J(t, e);
|
850
878
|
function t(r, n, i) {
|
851
879
|
var o = e.call(this) || this, s;
|
852
|
-
if (
|
880
|
+
if (Z(r) || !r)
|
853
881
|
s = {
|
854
882
|
next: r != null ? r : void 0,
|
855
883
|
error: n != null ? n : void 0,
|
@@ -857,7 +885,7 @@ var gn = function() {
|
|
857
885
|
};
|
858
886
|
else {
|
859
887
|
var a;
|
860
|
-
o &&
|
888
|
+
o && fr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
861
889
|
return o.unsubscribe();
|
862
890
|
}, s = {
|
863
891
|
next: r.next && Je(r.next, a),
|
@@ -872,13 +900,13 @@ var gn = function() {
|
|
872
900
|
function Oe(e) {
|
873
901
|
mn(e);
|
874
902
|
}
|
875
|
-
function
|
903
|
+
function yn(e) {
|
876
904
|
throw e;
|
877
905
|
}
|
878
|
-
var
|
906
|
+
var vn = {
|
879
907
|
closed: !0,
|
880
908
|
next: It,
|
881
|
-
error:
|
909
|
+
error: yn,
|
882
910
|
complete: It
|
883
911
|
}, _n = function() {
|
884
912
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
@@ -901,7 +929,7 @@ var Lt = function() {
|
|
901
929
|
var r = new e();
|
902
930
|
return r.source = this, r.operator = t, r;
|
903
931
|
}, e.prototype.subscribe = function(t, r, n) {
|
904
|
-
var i = this, o =
|
932
|
+
var i = this, o = Sn(t) ? t : new lt(t, r, n);
|
905
933
|
return Ne(function() {
|
906
934
|
var s = i, a = s.operator, u = s.source;
|
907
935
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
@@ -955,20 +983,20 @@ var Lt = function() {
|
|
955
983
|
}();
|
956
984
|
function Nt(e) {
|
957
985
|
var t;
|
958
|
-
return (t = e != null ? e :
|
959
|
-
}
|
960
|
-
function Sn(e) {
|
961
|
-
return e && X(e.next) && X(e.error) && X(e.complete);
|
986
|
+
return (t = e != null ? e : fr.Promise) !== null && t !== void 0 ? t : Promise;
|
962
987
|
}
|
963
988
|
function wn(e) {
|
964
|
-
return e && e
|
989
|
+
return e && Z(e.next) && Z(e.error) && Z(e.complete);
|
990
|
+
}
|
991
|
+
function Sn(e) {
|
992
|
+
return e && e instanceof pr || wn(e) && cr(e);
|
965
993
|
}
|
966
|
-
var Tn =
|
994
|
+
var Tn = ur(function(e) {
|
967
995
|
return function() {
|
968
996
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
969
997
|
};
|
970
|
-
}),
|
971
|
-
|
998
|
+
}), mr = function(e) {
|
999
|
+
J(t, e);
|
972
1000
|
function t() {
|
973
1001
|
var r = e.call(this) || this;
|
974
1002
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
@@ -1034,7 +1062,7 @@ var Tn = lr(function(e) {
|
|
1034
1062
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
1035
1063
|
}, t.prototype._innerSubscribe = function(r) {
|
1036
1064
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
1037
|
-
return o || s ?
|
1065
|
+
return o || s ? hr : (this.currentObservers = null, a.push(r), new Ge(function() {
|
1038
1066
|
n.currentObservers = null, at(a, r);
|
1039
1067
|
}));
|
1040
1068
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
@@ -1047,7 +1075,7 @@ var Tn = lr(function(e) {
|
|
1047
1075
|
return new Mt(r, n);
|
1048
1076
|
}, t;
|
1049
1077
|
}(Lt), Mt = function(e) {
|
1050
|
-
|
1078
|
+
J(t, e);
|
1051
1079
|
function t(r, n) {
|
1052
1080
|
var i = e.call(this) || this;
|
1053
1081
|
return i.destination = r, i.source = n, i;
|
@@ -1063,17 +1091,17 @@ var Tn = lr(function(e) {
|
|
1063
1091
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
1064
1092
|
}, t.prototype._subscribe = function(r) {
|
1065
1093
|
var n, i;
|
1066
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1094
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : hr;
|
1067
1095
|
}, t;
|
1068
|
-
}(
|
1096
|
+
}(mr), br = {
|
1069
1097
|
now: function() {
|
1070
|
-
return (
|
1098
|
+
return (br.delegate || Date).now();
|
1071
1099
|
},
|
1072
1100
|
delegate: void 0
|
1073
1101
|
}, Hn = function(e) {
|
1074
|
-
|
1102
|
+
J(t, e);
|
1075
1103
|
function t(r, n, i) {
|
1076
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1104
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = br);
|
1077
1105
|
var o = e.call(this) || this;
|
1078
1106
|
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;
|
1079
1107
|
}
|
@@ -1093,40 +1121,40 @@ var Tn = lr(function(e) {
|
|
1093
1121
|
l && o.splice(0, l + 1);
|
1094
1122
|
}
|
1095
1123
|
}, t;
|
1096
|
-
}(
|
1124
|
+
}(mr);
|
1097
1125
|
const Rt = [], Dt = {}, An = (e, t = 0) => {
|
1098
1126
|
if (Rt.indexOf(e) == -1) {
|
1099
1127
|
const r = new Hn(t);
|
1100
1128
|
Dt[e] = r, Rt.push(e);
|
1101
1129
|
}
|
1102
1130
|
return Dt[e];
|
1103
|
-
},
|
1131
|
+
}, ce = [];
|
1104
1132
|
function Pn(e, t) {
|
1105
1133
|
return {
|
1106
1134
|
subscribe: ke(e, t).subscribe
|
1107
1135
|
};
|
1108
1136
|
}
|
1109
|
-
function ke(e, t =
|
1137
|
+
function ke(e, t = k) {
|
1110
1138
|
let r;
|
1111
1139
|
const n = /* @__PURE__ */ new Set();
|
1112
1140
|
function i(a) {
|
1113
1141
|
if (nr(e, a) && (e = a, r)) {
|
1114
|
-
const u = !
|
1142
|
+
const u = !ce.length;
|
1115
1143
|
for (const l of n)
|
1116
|
-
l[1](),
|
1144
|
+
l[1](), ce.push(l, e);
|
1117
1145
|
if (u) {
|
1118
|
-
for (let l = 0; l <
|
1119
|
-
|
1120
|
-
|
1146
|
+
for (let l = 0; l < ce.length; l += 2)
|
1147
|
+
ce[l][0](ce[l + 1]);
|
1148
|
+
ce.length = 0;
|
1121
1149
|
}
|
1122
1150
|
}
|
1123
1151
|
}
|
1124
1152
|
function o(a) {
|
1125
1153
|
i(a(e));
|
1126
1154
|
}
|
1127
|
-
function s(a, u =
|
1155
|
+
function s(a, u = k) {
|
1128
1156
|
const l = [a, u];
|
1129
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
1157
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || k), a(e), () => {
|
1130
1158
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
1131
1159
|
};
|
1132
1160
|
}
|
@@ -1140,26 +1168,26 @@ function ve(e, t, r) {
|
|
1140
1168
|
return Pn(r, (s, a) => {
|
1141
1169
|
let u = !1;
|
1142
1170
|
const l = [];
|
1143
|
-
let h = 0,
|
1144
|
-
const
|
1171
|
+
let h = 0, d = k;
|
1172
|
+
const c = () => {
|
1145
1173
|
if (h)
|
1146
1174
|
return;
|
1147
|
-
|
1148
|
-
const
|
1149
|
-
o ? s(
|
1150
|
-
},
|
1151
|
-
(
|
1152
|
-
|
1153
|
-
(
|
1154
|
-
l[_] =
|
1175
|
+
d();
|
1176
|
+
const b = t(n ? l[0] : l, s, a);
|
1177
|
+
o ? s(b) : d = gt(b) ? b : k;
|
1178
|
+
}, m = i.map(
|
1179
|
+
(b, _) => ir(
|
1180
|
+
b,
|
1181
|
+
(T) => {
|
1182
|
+
l[_] = T, h &= ~(1 << _), u && c();
|
1155
1183
|
},
|
1156
1184
|
() => {
|
1157
1185
|
h |= 1 << _;
|
1158
1186
|
}
|
1159
1187
|
)
|
1160
1188
|
);
|
1161
|
-
return u = !0,
|
1162
|
-
|
1189
|
+
return u = !0, c(), function() {
|
1190
|
+
K(m), d(), u = !1;
|
1163
1191
|
};
|
1164
1192
|
});
|
1165
1193
|
}
|
@@ -1183,19 +1211,19 @@ function Nn(e) {
|
|
1183
1211
|
function Mn(e) {
|
1184
1212
|
return Array.isArray(e) ? [] : {};
|
1185
1213
|
}
|
1186
|
-
function
|
1187
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
1214
|
+
function He(e, t) {
|
1215
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? me(Mn(e), e, t) : e;
|
1188
1216
|
}
|
1189
1217
|
function Rn(e, t, r) {
|
1190
1218
|
return e.concat(t).map(function(n) {
|
1191
|
-
return
|
1219
|
+
return He(n, r);
|
1192
1220
|
});
|
1193
1221
|
}
|
1194
1222
|
function Dn(e, t) {
|
1195
1223
|
if (!t.customMerge)
|
1196
|
-
return
|
1224
|
+
return me;
|
1197
1225
|
var r = t.customMerge(e);
|
1198
|
-
return typeof r == "function" ? r :
|
1226
|
+
return typeof r == "function" ? r : me;
|
1199
1227
|
}
|
1200
1228
|
function $n(e) {
|
1201
1229
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
@@ -1205,7 +1233,7 @@ function $n(e) {
|
|
1205
1233
|
function $t(e) {
|
1206
1234
|
return Object.keys(e).concat($n(e));
|
1207
1235
|
}
|
1208
|
-
function
|
1236
|
+
function gr(e, t) {
|
1209
1237
|
try {
|
1210
1238
|
return t in e;
|
1211
1239
|
} catch (r) {
|
@@ -1213,76 +1241,76 @@ function br(e, t) {
|
|
1213
1241
|
}
|
1214
1242
|
}
|
1215
1243
|
function Un(e, t) {
|
1216
|
-
return
|
1244
|
+
return gr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1217
1245
|
}
|
1218
1246
|
function Gn(e, t, r) {
|
1219
1247
|
var n = {};
|
1220
1248
|
return r.isMergeableObject(e) && $t(e).forEach(function(i) {
|
1221
|
-
n[i] =
|
1249
|
+
n[i] = He(e[i], r);
|
1222
1250
|
}), $t(t).forEach(function(i) {
|
1223
|
-
Un(e, i) || (
|
1251
|
+
Un(e, i) || (gr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Dn(i, r)(e[i], t[i], r) : n[i] = He(t[i], r));
|
1224
1252
|
}), n;
|
1225
1253
|
}
|
1226
|
-
function
|
1227
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Rn, r.isMergeableObject = r.isMergeableObject || Bn, r.cloneUnlessOtherwiseSpecified =
|
1254
|
+
function me(e, t, r) {
|
1255
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Rn, r.isMergeableObject = r.isMergeableObject || Bn, r.cloneUnlessOtherwiseSpecified = He;
|
1228
1256
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1229
|
-
return o ? n ? r.arrayMerge(e, t, r) : Gn(e, t, r) :
|
1257
|
+
return o ? n ? r.arrayMerge(e, t, r) : Gn(e, t, r) : He(t, r);
|
1230
1258
|
}
|
1231
|
-
|
1259
|
+
me.all = function(t, r) {
|
1232
1260
|
if (!Array.isArray(t))
|
1233
1261
|
throw new Error("first argument should be an array");
|
1234
1262
|
return t.reduce(function(n, i) {
|
1235
|
-
return
|
1263
|
+
return me(n, i, r);
|
1236
1264
|
}, {});
|
1237
1265
|
};
|
1238
|
-
var kn =
|
1266
|
+
var kn = me, jn = kn;
|
1239
1267
|
const Vn = /* @__PURE__ */ Cn(jn);
|
1240
1268
|
var x;
|
1241
1269
|
(function(e) {
|
1242
1270
|
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";
|
1243
1271
|
})(x || (x = {}));
|
1244
|
-
var
|
1272
|
+
var F;
|
1245
1273
|
(function(e) {
|
1246
1274
|
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";
|
1247
|
-
})(
|
1248
|
-
var
|
1275
|
+
})(F || (F = {}));
|
1276
|
+
var be;
|
1249
1277
|
(function(e) {
|
1250
1278
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1251
|
-
})(
|
1279
|
+
})(be || (be = {}));
|
1252
1280
|
function Ut(e) {
|
1253
|
-
return e.type ===
|
1281
|
+
return e.type === F.literal;
|
1254
1282
|
}
|
1255
1283
|
function Xn(e) {
|
1256
|
-
return e.type ===
|
1284
|
+
return e.type === F.argument;
|
1257
1285
|
}
|
1258
|
-
function
|
1259
|
-
return e.type ===
|
1286
|
+
function yr(e) {
|
1287
|
+
return e.type === F.number;
|
1260
1288
|
}
|
1261
1289
|
function vr(e) {
|
1262
|
-
return e.type ===
|
1263
|
-
}
|
1264
|
-
function yr(e) {
|
1265
|
-
return e.type === B.time;
|
1290
|
+
return e.type === F.date;
|
1266
1291
|
}
|
1267
1292
|
function _r(e) {
|
1268
|
-
return e.type ===
|
1293
|
+
return e.type === F.time;
|
1269
1294
|
}
|
1270
1295
|
function xr(e) {
|
1271
|
-
return e.type ===
|
1296
|
+
return e.type === F.select;
|
1297
|
+
}
|
1298
|
+
function Er(e) {
|
1299
|
+
return e.type === F.plural;
|
1272
1300
|
}
|
1273
1301
|
function Wn(e) {
|
1274
|
-
return e.type ===
|
1302
|
+
return e.type === F.pound;
|
1275
1303
|
}
|
1276
|
-
function
|
1277
|
-
return e.type ===
|
1304
|
+
function wr(e) {
|
1305
|
+
return e.type === F.tag;
|
1278
1306
|
}
|
1279
1307
|
function Sr(e) {
|
1280
|
-
return !!(e && typeof e == "object" && e.type ===
|
1308
|
+
return !!(e && typeof e == "object" && e.type === be.number);
|
1281
1309
|
}
|
1282
1310
|
function ut(e) {
|
1283
|
-
return !!(e && typeof e == "object" && e.type ===
|
1311
|
+
return !!(e && typeof e == "object" && e.type === be.dateTime);
|
1284
1312
|
}
|
1285
|
-
var
|
1313
|
+
var Tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zn = /(?:[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;
|
1286
1314
|
function Zn(e) {
|
1287
1315
|
var t = {};
|
1288
1316
|
return e.replace(zn, function(r) {
|
@@ -1378,15 +1406,15 @@ var Jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1378
1406
|
function Qn(e) {
|
1379
1407
|
if (e.length === 0)
|
1380
1408
|
throw new Error("Number skeleton cannot be empty");
|
1381
|
-
for (var t = e.split(Jn).filter(function(
|
1382
|
-
return
|
1409
|
+
for (var t = e.split(Jn).filter(function(c) {
|
1410
|
+
return c.length > 0;
|
1383
1411
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1384
1412
|
var o = i[n], s = o.split("/");
|
1385
1413
|
if (s.length === 0)
|
1386
1414
|
throw new Error("Invalid number skeleton");
|
1387
1415
|
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
1388
|
-
var
|
1389
|
-
if (
|
1416
|
+
var d = h[l];
|
1417
|
+
if (d.length === 0)
|
1390
1418
|
throw new Error("Invalid number skeleton");
|
1391
1419
|
}
|
1392
1420
|
r.push({ stem: a, options: u });
|
@@ -1396,14 +1424,14 @@ function Qn(e) {
|
|
1396
1424
|
function qn(e) {
|
1397
1425
|
return e.replace(/^(.*?)-/, "");
|
1398
1426
|
}
|
1399
|
-
var Gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
1427
|
+
var Gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Hr = /^(@+)?(\+|#+)?[rs]?$/g, Yn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ar = /^(0+)$/;
|
1400
1428
|
function kt(e) {
|
1401
1429
|
var t = {};
|
1402
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1430
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Hr, function(r, n, i) {
|
1403
1431
|
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)), "";
|
1404
1432
|
}), t;
|
1405
1433
|
}
|
1406
|
-
function
|
1434
|
+
function Pr(e) {
|
1407
1435
|
switch (e) {
|
1408
1436
|
case "sign-auto":
|
1409
1437
|
return {
|
@@ -1451,14 +1479,14 @@ function Kn(e) {
|
|
1451
1479
|
notation: "scientific"
|
1452
1480
|
}, e = e.slice(1)), t) {
|
1453
1481
|
var r = e.slice(0, 2);
|
1454
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1482
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ar.test(e))
|
1455
1483
|
throw new Error("Malformed concise eng/scientific notation");
|
1456
1484
|
t.minimumIntegerDigits = e.length;
|
1457
1485
|
}
|
1458
1486
|
return t;
|
1459
1487
|
}
|
1460
1488
|
function jt(e) {
|
1461
|
-
var t = {}, r =
|
1489
|
+
var t = {}, r = Pr(e);
|
1462
1490
|
return r || t;
|
1463
1491
|
}
|
1464
1492
|
function ei(e) {
|
@@ -1547,38 +1575,38 @@ function ei(e) {
|
|
1547
1575
|
case "integer-width":
|
1548
1576
|
if (i.options.length > 1)
|
1549
1577
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1550
|
-
i.options[0].replace(Yn, function(u, l, h,
|
1578
|
+
i.options[0].replace(Yn, function(u, l, h, d, c, m) {
|
1551
1579
|
if (l)
|
1552
1580
|
t.minimumIntegerDigits = h.length;
|
1553
1581
|
else {
|
1554
|
-
if (
|
1582
|
+
if (d && c)
|
1555
1583
|
throw new Error("We currently do not support maximum integer digits");
|
1556
|
-
if (
|
1584
|
+
if (m)
|
1557
1585
|
throw new Error("We currently do not support exact integer digits");
|
1558
1586
|
}
|
1559
1587
|
return "";
|
1560
1588
|
});
|
1561
1589
|
continue;
|
1562
1590
|
}
|
1563
|
-
if (
|
1591
|
+
if (Ar.test(i.stem)) {
|
1564
1592
|
t.minimumIntegerDigits = i.stem.length;
|
1565
1593
|
continue;
|
1566
1594
|
}
|
1567
1595
|
if (Gt.test(i.stem)) {
|
1568
1596
|
if (i.options.length > 1)
|
1569
1597
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1570
|
-
i.stem.replace(Gt, function(u, l, h,
|
1571
|
-
return h === "*" ? t.minimumFractionDigits = l.length :
|
1598
|
+
i.stem.replace(Gt, function(u, l, h, d, c, m) {
|
1599
|
+
return h === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1572
1600
|
});
|
1573
1601
|
var o = i.options[0];
|
1574
1602
|
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), kt(o)));
|
1575
1603
|
continue;
|
1576
1604
|
}
|
1577
|
-
if (
|
1605
|
+
if (Hr.test(i.stem)) {
|
1578
1606
|
t = S(S({}, t), kt(i.stem));
|
1579
1607
|
continue;
|
1580
1608
|
}
|
1581
|
-
var s =
|
1609
|
+
var s = Pr(i.stem);
|
1582
1610
|
s && (t = S(S({}, t), s));
|
1583
1611
|
var a = Kn(i.stem);
|
1584
1612
|
a && (t = S(S({}, t), a));
|
@@ -3031,16 +3059,16 @@ function ri(e) {
|
|
3031
3059
|
var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
|
3032
3060
|
return i[0];
|
3033
3061
|
}
|
3034
|
-
var Qe, ni = new RegExp("^".concat(
|
3035
|
-
function
|
3062
|
+
var Qe, ni = new RegExp("^".concat(Tr.source, "*")), ii = new RegExp("".concat(Tr.source, "*$"));
|
3063
|
+
function w(e, t) {
|
3036
3064
|
return { start: e, end: t };
|
3037
3065
|
}
|
3038
3066
|
var oi = !!String.prototype.startsWith && "_a".startsWith("a", 1), si = !!String.fromCodePoint, ai = !!Object.fromEntries, li = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, hi = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, fi = ci ? Number.isSafeInteger : function(e) {
|
3039
3067
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3040
3068
|
}, ht = !0;
|
3041
3069
|
try {
|
3042
|
-
var
|
3043
|
-
ht = ((Qe =
|
3070
|
+
var di = Br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3071
|
+
ht = ((Qe = di.exec("a")) === null || Qe === void 0 ? void 0 : Qe[0]) === "a";
|
3044
3072
|
} catch (e) {
|
3045
3073
|
ht = !1;
|
3046
3074
|
}
|
@@ -3078,7 +3106,7 @@ var Vt = oi ? (
|
|
3078
3106
|
return r;
|
3079
3107
|
}
|
3080
3108
|
)
|
3081
|
-
),
|
3109
|
+
), Cr = li ? (
|
3082
3110
|
// Native
|
3083
3111
|
function(t, r) {
|
3084
3112
|
return t.codePointAt(r);
|
@@ -3092,7 +3120,7 @@ var Vt = oi ? (
|
|
3092
3120
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
3093
3121
|
}
|
3094
3122
|
}
|
3095
|
-
),
|
3123
|
+
), pi = ui ? (
|
3096
3124
|
// Native
|
3097
3125
|
function(t) {
|
3098
3126
|
return t.trimStart();
|
@@ -3113,12 +3141,12 @@ var Vt = oi ? (
|
|
3113
3141
|
return t.replace(ii, "");
|
3114
3142
|
}
|
3115
3143
|
);
|
3116
|
-
function
|
3144
|
+
function Br(e, t) {
|
3117
3145
|
return new RegExp(e, t);
|
3118
3146
|
}
|
3119
3147
|
var ft;
|
3120
3148
|
if (ht) {
|
3121
|
-
var Wt =
|
3149
|
+
var Wt = Br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3122
3150
|
ft = function(t, r) {
|
3123
3151
|
var n;
|
3124
3152
|
Wt.lastIndex = r;
|
@@ -3128,8 +3156,8 @@ if (ht) {
|
|
3128
3156
|
} else
|
3129
3157
|
ft = function(t, r) {
|
3130
3158
|
for (var n = []; ; ) {
|
3131
|
-
var i =
|
3132
|
-
if (i === void 0 ||
|
3159
|
+
var i = Cr(t, r);
|
3160
|
+
if (i === void 0 || Fr(i) || vi(i))
|
3133
3161
|
break;
|
3134
3162
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3135
3163
|
}
|
@@ -3159,14 +3187,14 @@ var bi = (
|
|
3159
3187
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
3160
3188
|
var a = this.clonePosition();
|
3161
3189
|
this.bump(), i.push({
|
3162
|
-
type:
|
3163
|
-
location:
|
3190
|
+
type: F.pound,
|
3191
|
+
location: w(a, this.clonePosition())
|
3164
3192
|
});
|
3165
3193
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
3166
3194
|
if (n)
|
3167
3195
|
break;
|
3168
|
-
return this.error(x.UNMATCHED_CLOSING_TAG,
|
3169
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3196
|
+
return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
3197
|
+
} else if (o === 60 && !this.ignoreTag && dt(this.peek() || 0)) {
|
3170
3198
|
var s = this.parseTag(t, r);
|
3171
3199
|
if (s.err)
|
3172
3200
|
return s;
|
@@ -3187,9 +3215,9 @@ var bi = (
|
|
3187
3215
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
3188
3216
|
return {
|
3189
3217
|
val: {
|
3190
|
-
type:
|
3218
|
+
type: F.literal,
|
3191
3219
|
value: "<".concat(i, "/>"),
|
3192
|
-
location:
|
3220
|
+
location: w(n, this.clonePosition())
|
3193
3221
|
},
|
3194
3222
|
err: null
|
3195
3223
|
};
|
@@ -3199,25 +3227,25 @@ var bi = (
|
|
3199
3227
|
return o;
|
3200
3228
|
var s = o.val, a = this.clonePosition();
|
3201
3229
|
if (this.bumpIf("</")) {
|
3202
|
-
if (this.isEOF() || !
|
3203
|
-
return this.error(x.INVALID_TAG,
|
3230
|
+
if (this.isEOF() || !dt(this.char()))
|
3231
|
+
return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
|
3204
3232
|
var u = this.clonePosition(), l = this.parseTagName();
|
3205
|
-
return i !== l ? this.error(x.UNMATCHED_CLOSING_TAG,
|
3233
|
+
return i !== l ? this.error(x.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3206
3234
|
val: {
|
3207
|
-
type:
|
3235
|
+
type: F.tag,
|
3208
3236
|
value: i,
|
3209
3237
|
children: s,
|
3210
|
-
location:
|
3238
|
+
location: w(n, this.clonePosition())
|
3211
3239
|
},
|
3212
3240
|
err: null
|
3213
|
-
} : this.error(x.INVALID_TAG,
|
3241
|
+
} : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
|
3214
3242
|
} else
|
3215
|
-
return this.error(x.UNCLOSED_TAG,
|
3243
|
+
return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
|
3216
3244
|
} else
|
3217
|
-
return this.error(x.INVALID_TAG,
|
3245
|
+
return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
|
3218
3246
|
}, e.prototype.parseTagName = function() {
|
3219
3247
|
var t = this.offset();
|
3220
|
-
for (this.bump(); !this.isEOF() &&
|
3248
|
+
for (this.bump(); !this.isEOF() && yi(this.char()); )
|
3221
3249
|
this.bump();
|
3222
3250
|
return this.message.slice(t, this.offset());
|
3223
3251
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3239,9 +3267,9 @@ var bi = (
|
|
3239
3267
|
}
|
3240
3268
|
break;
|
3241
3269
|
}
|
3242
|
-
var u =
|
3270
|
+
var u = w(n, this.clonePosition());
|
3243
3271
|
return {
|
3244
|
-
val: { type:
|
3272
|
+
val: { type: F.literal, value: i, location: u },
|
3245
3273
|
err: null
|
3246
3274
|
};
|
3247
3275
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
@@ -3289,40 +3317,40 @@ var bi = (
|
|
3289
3317
|
}, e.prototype.parseArgument = function(t, r) {
|
3290
3318
|
var n = this.clonePosition();
|
3291
3319
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
3292
|
-
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,
|
3320
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
3293
3321
|
if (this.char() === 125)
|
3294
|
-
return this.bump(), this.error(x.EMPTY_ARGUMENT,
|
3322
|
+
return this.bump(), this.error(x.EMPTY_ARGUMENT, w(n, this.clonePosition()));
|
3295
3323
|
var i = this.parseIdentifierIfPossible().value;
|
3296
3324
|
if (!i)
|
3297
|
-
return this.error(x.MALFORMED_ARGUMENT,
|
3325
|
+
return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
3298
3326
|
if (this.bumpSpace(), this.isEOF())
|
3299
|
-
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,
|
3327
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
3300
3328
|
switch (this.char()) {
|
3301
3329
|
case 125:
|
3302
3330
|
return this.bump(), {
|
3303
3331
|
val: {
|
3304
|
-
type:
|
3332
|
+
type: F.argument,
|
3305
3333
|
// value does not include the opening and closing braces.
|
3306
3334
|
value: i,
|
3307
|
-
location:
|
3335
|
+
location: w(n, this.clonePosition())
|
3308
3336
|
},
|
3309
3337
|
err: null
|
3310
3338
|
};
|
3311
3339
|
case 44:
|
3312
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,
|
3340
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
3313
3341
|
default:
|
3314
|
-
return this.error(x.MALFORMED_ARGUMENT,
|
3342
|
+
return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
3315
3343
|
}
|
3316
3344
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3317
3345
|
var t = this.clonePosition(), r = this.offset(), n = ft(this.message, r), i = r + n.length;
|
3318
3346
|
this.bumpTo(i);
|
3319
|
-
var o = this.clonePosition(), s =
|
3347
|
+
var o = this.clonePosition(), s = w(t, o);
|
3320
3348
|
return { value: n, location: s };
|
3321
3349
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
3322
3350
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
3323
3351
|
switch (a) {
|
3324
3352
|
case "":
|
3325
|
-
return this.error(x.EXPECT_ARGUMENT_TYPE,
|
3353
|
+
return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, u));
|
3326
3354
|
case "number":
|
3327
3355
|
case "date":
|
3328
3356
|
case "time": {
|
@@ -3330,47 +3358,47 @@ var bi = (
|
|
3330
3358
|
var l = null;
|
3331
3359
|
if (this.bumpIf(",")) {
|
3332
3360
|
this.bumpSpace();
|
3333
|
-
var h = this.clonePosition(),
|
3334
|
-
if (
|
3335
|
-
return
|
3336
|
-
var
|
3337
|
-
if (
|
3338
|
-
return this.error(x.EXPECT_ARGUMENT_STYLE,
|
3339
|
-
var
|
3340
|
-
l = { style:
|
3361
|
+
var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
3362
|
+
if (d.err)
|
3363
|
+
return d;
|
3364
|
+
var c = mi(d.val);
|
3365
|
+
if (c.length === 0)
|
3366
|
+
return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
3367
|
+
var m = w(h, this.clonePosition());
|
3368
|
+
l = { style: c, styleLocation: m };
|
3341
3369
|
}
|
3342
|
-
var
|
3343
|
-
if (
|
3344
|
-
return
|
3345
|
-
var _ =
|
3370
|
+
var b = this.tryParseArgumentClose(i);
|
3371
|
+
if (b.err)
|
3372
|
+
return b;
|
3373
|
+
var _ = w(i, this.clonePosition());
|
3346
3374
|
if (l && Vt(l == null ? void 0 : l.style, "::", 0)) {
|
3347
|
-
var
|
3375
|
+
var T = pi(l.style.slice(2));
|
3348
3376
|
if (a === "number") {
|
3349
|
-
var
|
3350
|
-
return
|
3351
|
-
val: { type:
|
3377
|
+
var d = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
3378
|
+
return d.err ? d : {
|
3379
|
+
val: { type: F.number, value: n, location: _, style: d.val },
|
3352
3380
|
err: null
|
3353
3381
|
};
|
3354
3382
|
} else {
|
3355
|
-
if (
|
3383
|
+
if (T.length === 0)
|
3356
3384
|
return this.error(x.EXPECT_DATE_TIME_SKELETON, _);
|
3357
|
-
var
|
3358
|
-
this.locale && (
|
3359
|
-
var
|
3360
|
-
type:
|
3361
|
-
pattern:
|
3385
|
+
var y = T;
|
3386
|
+
this.locale && (y = ti(T, this.locale));
|
3387
|
+
var c = {
|
3388
|
+
type: be.dateTime,
|
3389
|
+
pattern: y,
|
3362
3390
|
location: l.styleLocation,
|
3363
|
-
parsedOptions: this.shouldParseSkeletons ? Zn(
|
3364
|
-
},
|
3391
|
+
parsedOptions: this.shouldParseSkeletons ? Zn(y) : {}
|
3392
|
+
}, H = a === "date" ? F.date : F.time;
|
3365
3393
|
return {
|
3366
|
-
val: { type:
|
3394
|
+
val: { type: H, value: n, location: _, style: c },
|
3367
3395
|
err: null
|
3368
3396
|
};
|
3369
3397
|
}
|
3370
3398
|
}
|
3371
3399
|
return {
|
3372
3400
|
val: {
|
3373
|
-
type: a === "number" ?
|
3401
|
+
type: a === "number" ? F.number : a === "date" ? F.date : F.time,
|
3374
3402
|
value: n,
|
3375
3403
|
location: _,
|
3376
3404
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
@@ -3381,52 +3409,52 @@ var bi = (
|
|
3381
3409
|
case "plural":
|
3382
3410
|
case "selectordinal":
|
3383
3411
|
case "select": {
|
3384
|
-
var
|
3412
|
+
var E = this.clonePosition();
|
3385
3413
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3386
|
-
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, E
|
3414
|
+
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(E, S({}, E)));
|
3387
3415
|
this.bumpSpace();
|
3388
|
-
var
|
3389
|
-
if (a !== "select" &&
|
3416
|
+
var N = this.parseIdentifierIfPossible(), L = 0;
|
3417
|
+
if (a !== "select" && N.value === "offset") {
|
3390
3418
|
if (!this.bumpIf(":"))
|
3391
|
-
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
3419
|
+
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
3392
3420
|
this.bumpSpace();
|
3393
|
-
var
|
3394
|
-
if (
|
3395
|
-
return
|
3396
|
-
this.bumpSpace(),
|
3421
|
+
var d = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3422
|
+
if (d.err)
|
3423
|
+
return d;
|
3424
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), L = d.val;
|
3397
3425
|
}
|
3398
|
-
var
|
3399
|
-
if (
|
3400
|
-
return
|
3401
|
-
var
|
3402
|
-
if (
|
3403
|
-
return
|
3404
|
-
var
|
3426
|
+
var O = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
3427
|
+
if (O.err)
|
3428
|
+
return O;
|
3429
|
+
var b = this.tryParseArgumentClose(i);
|
3430
|
+
if (b.err)
|
3431
|
+
return b;
|
3432
|
+
var P = w(i, this.clonePosition());
|
3405
3433
|
return a === "select" ? {
|
3406
3434
|
val: {
|
3407
|
-
type:
|
3435
|
+
type: F.select,
|
3408
3436
|
value: n,
|
3409
|
-
options: Xt(
|
3410
|
-
location:
|
3437
|
+
options: Xt(O.val),
|
3438
|
+
location: P
|
3411
3439
|
},
|
3412
3440
|
err: null
|
3413
3441
|
} : {
|
3414
3442
|
val: {
|
3415
|
-
type:
|
3443
|
+
type: F.plural,
|
3416
3444
|
value: n,
|
3417
|
-
options: Xt(
|
3418
|
-
offset:
|
3445
|
+
options: Xt(O.val),
|
3446
|
+
offset: L,
|
3419
3447
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3420
|
-
location:
|
3448
|
+
location: P
|
3421
3449
|
},
|
3422
3450
|
err: null
|
3423
3451
|
};
|
3424
3452
|
}
|
3425
3453
|
default:
|
3426
|
-
return this.error(x.INVALID_ARGUMENT_TYPE,
|
3454
|
+
return this.error(x.INVALID_ARGUMENT_TYPE, w(s, u));
|
3427
3455
|
}
|
3428
3456
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
3429
|
-
return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE,
|
3457
|
+
return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
3430
3458
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
3431
3459
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
3432
3460
|
var n = this.char();
|
@@ -3435,7 +3463,7 @@ var bi = (
|
|
3435
3463
|
this.bump();
|
3436
3464
|
var i = this.clonePosition();
|
3437
3465
|
if (!this.bumpUntil("'"))
|
3438
|
-
return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
3466
|
+
return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
3439
3467
|
this.bump();
|
3440
3468
|
break;
|
3441
3469
|
}
|
@@ -3471,7 +3499,7 @@ var bi = (
|
|
3471
3499
|
}
|
3472
3500
|
return {
|
3473
3501
|
val: {
|
3474
|
-
type:
|
3502
|
+
type: be.number,
|
3475
3503
|
tokens: n,
|
3476
3504
|
location: r,
|
3477
3505
|
parsedOptions: this.shouldParseSkeletons ? ei(n) : {}
|
@@ -3481,36 +3509,36 @@ var bi = (
|
|
3481
3509
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3482
3510
|
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
3483
3511
|
if (l.length === 0) {
|
3484
|
-
var
|
3512
|
+
var d = this.clonePosition();
|
3485
3513
|
if (r !== "select" && this.bumpIf("=")) {
|
3486
|
-
var
|
3487
|
-
if (
|
3488
|
-
return
|
3489
|
-
h =
|
3514
|
+
var c = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3515
|
+
if (c.err)
|
3516
|
+
return c;
|
3517
|
+
h = w(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
|
3490
3518
|
} else
|
3491
3519
|
break;
|
3492
3520
|
}
|
3493
3521
|
if (u.has(l))
|
3494
3522
|
return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
3495
3523
|
l === "other" && (s = !0), this.bumpSpace();
|
3496
|
-
var
|
3524
|
+
var m = this.clonePosition();
|
3497
3525
|
if (!this.bumpIf("{"))
|
3498
|
-
return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
3499
|
-
var
|
3500
|
-
if (
|
3501
|
-
return
|
3502
|
-
var _ = this.tryParseArgumentClose(
|
3526
|
+
return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
3527
|
+
var b = this.parseMessage(t + 1, r, n);
|
3528
|
+
if (b.err)
|
3529
|
+
return b;
|
3530
|
+
var _ = this.tryParseArgumentClose(m);
|
3503
3531
|
if (_.err)
|
3504
3532
|
return _;
|
3505
3533
|
a.push([
|
3506
3534
|
l,
|
3507
3535
|
{
|
3508
|
-
value:
|
3509
|
-
location:
|
3536
|
+
value: b.val,
|
3537
|
+
location: w(m, this.clonePosition())
|
3510
3538
|
}
|
3511
3539
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
3512
3540
|
}
|
3513
|
-
return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
3541
|
+
return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3514
3542
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3515
3543
|
var n = 1, i = this.clonePosition();
|
3516
3544
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3521,7 +3549,7 @@ var bi = (
|
|
3521
3549
|
else
|
3522
3550
|
break;
|
3523
3551
|
}
|
3524
|
-
var u =
|
3552
|
+
var u = w(i, this.clonePosition());
|
3525
3553
|
return o ? (s *= n, fi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3526
3554
|
}, e.prototype.offset = function() {
|
3527
3555
|
return this.position.offset;
|
@@ -3537,7 +3565,7 @@ var bi = (
|
|
3537
3565
|
var t = this.position.offset;
|
3538
3566
|
if (t >= this.message.length)
|
3539
3567
|
throw Error("out of bound");
|
3540
|
-
var r =
|
3568
|
+
var r = Cr(this.message, t);
|
3541
3569
|
if (r === void 0)
|
3542
3570
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3543
3571
|
return r;
|
@@ -3578,7 +3606,7 @@ var bi = (
|
|
3578
3606
|
break;
|
3579
3607
|
}
|
3580
3608
|
}, e.prototype.bumpSpace = function() {
|
3581
|
-
for (; !this.isEOF() &&
|
3609
|
+
for (; !this.isEOF() && Fr(this.char()); )
|
3582
3610
|
this.bump();
|
3583
3611
|
}, e.prototype.peek = function() {
|
3584
3612
|
if (this.isEOF())
|
@@ -3588,27 +3616,27 @@ var bi = (
|
|
3588
3616
|
}, e;
|
3589
3617
|
}()
|
3590
3618
|
);
|
3591
|
-
function
|
3619
|
+
function dt(e) {
|
3592
3620
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3593
3621
|
}
|
3594
3622
|
function gi(e) {
|
3595
|
-
return
|
3623
|
+
return dt(e) || e === 47;
|
3596
3624
|
}
|
3597
|
-
function
|
3625
|
+
function yi(e) {
|
3598
3626
|
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;
|
3599
3627
|
}
|
3600
|
-
function
|
3628
|
+
function Fr(e) {
|
3601
3629
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3602
3630
|
}
|
3603
|
-
function
|
3631
|
+
function vi(e) {
|
3604
3632
|
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;
|
3605
3633
|
}
|
3606
|
-
function
|
3634
|
+
function pt(e) {
|
3607
3635
|
e.forEach(function(t) {
|
3608
|
-
if (delete t.location,
|
3636
|
+
if (delete t.location, xr(t) || Er(t))
|
3609
3637
|
for (var r in t.options)
|
3610
|
-
delete t.options[r].location,
|
3611
|
-
else
|
3638
|
+
delete t.options[r].location, pt(t.options[r].value);
|
3639
|
+
else yr(t) && Sr(t.style) || (vr(t) || _r(t)) && ut(t.style) ? delete t.style.location : wr(t) && pt(t.children);
|
3612
3640
|
});
|
3613
3641
|
}
|
3614
3642
|
function _i(e, t) {
|
@@ -3618,7 +3646,7 @@ function _i(e, t) {
|
|
3618
3646
|
var n = SyntaxError(x[r.err.kind]);
|
3619
3647
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3620
3648
|
}
|
3621
|
-
return t != null && t.captureLocation ||
|
3649
|
+
return t != null && t.captureLocation || pt(r.val), r.val;
|
3622
3650
|
}
|
3623
3651
|
function qe(e, t) {
|
3624
3652
|
var r = t && t.cache ? t.cache : Hi, n = t && t.serializer ? t.serializer : Ti, i = t && t.strategy ? t.strategy : Ei;
|
@@ -3630,54 +3658,54 @@ function qe(e, t) {
|
|
3630
3658
|
function xi(e) {
|
3631
3659
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
3632
3660
|
}
|
3633
|
-
function
|
3661
|
+
function Or(e, t, r, n) {
|
3634
3662
|
var i = xi(n) ? n : r(n), o = t.get(i);
|
3635
3663
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
3636
3664
|
}
|
3637
|
-
function
|
3665
|
+
function Ir(e, t, r) {
|
3638
3666
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
3639
3667
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
3640
3668
|
}
|
3641
|
-
function
|
3669
|
+
function yt(e, t, r, n, i) {
|
3642
3670
|
return r.bind(t, e, n, i);
|
3643
3671
|
}
|
3644
3672
|
function Ei(e, t) {
|
3645
|
-
var r = e.length === 1 ?
|
3646
|
-
return
|
3647
|
-
}
|
3648
|
-
function Si(e, t) {
|
3649
|
-
return vt(e, this, Or, t.cache.create(), t.serializer);
|
3673
|
+
var r = e.length === 1 ? Or : Ir;
|
3674
|
+
return yt(e, this, r, t.cache.create(), t.serializer);
|
3650
3675
|
}
|
3651
3676
|
function wi(e, t) {
|
3652
|
-
return
|
3677
|
+
return yt(e, this, Ir, t.cache.create(), t.serializer);
|
3678
|
+
}
|
3679
|
+
function Si(e, t) {
|
3680
|
+
return yt(e, this, Or, t.cache.create(), t.serializer);
|
3653
3681
|
}
|
3654
3682
|
var Ti = function() {
|
3655
3683
|
return JSON.stringify(arguments);
|
3656
3684
|
};
|
3657
|
-
function
|
3685
|
+
function vt() {
|
3658
3686
|
this.cache = /* @__PURE__ */ Object.create(null);
|
3659
3687
|
}
|
3660
|
-
|
3688
|
+
vt.prototype.get = function(e) {
|
3661
3689
|
return this.cache[e];
|
3662
3690
|
};
|
3663
|
-
|
3691
|
+
vt.prototype.set = function(e, t) {
|
3664
3692
|
this.cache[e] = t;
|
3665
3693
|
};
|
3666
3694
|
var Hi = {
|
3667
3695
|
create: function() {
|
3668
|
-
return new
|
3696
|
+
return new vt();
|
3669
3697
|
}
|
3670
3698
|
}, Ye = {
|
3671
|
-
variadic:
|
3672
|
-
monadic:
|
3673
|
-
},
|
3699
|
+
variadic: wi,
|
3700
|
+
monadic: Si
|
3701
|
+
}, ge;
|
3674
3702
|
(function(e) {
|
3675
3703
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3676
|
-
})(
|
3704
|
+
})(ge || (ge = {}));
|
3677
3705
|
var je = (
|
3678
3706
|
/** @class */
|
3679
3707
|
function(e) {
|
3680
|
-
|
3708
|
+
J(t, e);
|
3681
3709
|
function t(r, n, i) {
|
3682
3710
|
var o = e.call(this, r) || this;
|
3683
3711
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3689,38 +3717,38 @@ var je = (
|
|
3689
3717
|
), zt = (
|
3690
3718
|
/** @class */
|
3691
3719
|
function(e) {
|
3692
|
-
|
3720
|
+
J(t, e);
|
3693
3721
|
function t(r, n, i, o) {
|
3694
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3722
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ge.INVALID_VALUE, o) || this;
|
3695
3723
|
}
|
3696
3724
|
return t;
|
3697
3725
|
}(je)
|
3698
3726
|
), Ai = (
|
3699
3727
|
/** @class */
|
3700
3728
|
function(e) {
|
3701
|
-
|
3729
|
+
J(t, e);
|
3702
3730
|
function t(r, n, i) {
|
3703
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3731
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ge.INVALID_VALUE, i) || this;
|
3704
3732
|
}
|
3705
3733
|
return t;
|
3706
3734
|
}(je)
|
3707
3735
|
), Pi = (
|
3708
3736
|
/** @class */
|
3709
3737
|
function(e) {
|
3710
|
-
|
3738
|
+
J(t, e);
|
3711
3739
|
function t(r, n) {
|
3712
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3740
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ge.MISSING_VALUE, n) || this;
|
3713
3741
|
}
|
3714
3742
|
return t;
|
3715
3743
|
}(je)
|
3716
|
-
),
|
3744
|
+
), D;
|
3717
3745
|
(function(e) {
|
3718
3746
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3719
|
-
})(
|
3747
|
+
})(D || (D = {}));
|
3720
3748
|
function Ci(e) {
|
3721
3749
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3722
3750
|
var n = t[t.length - 1];
|
3723
|
-
return !n || n.type !==
|
3751
|
+
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
3724
3752
|
}, []);
|
3725
3753
|
}
|
3726
3754
|
function Bi(e) {
|
@@ -3730,7 +3758,7 @@ function Me(e, t, r, n, i, o, s) {
|
|
3730
3758
|
if (e.length === 1 && Ut(e[0]))
|
3731
3759
|
return [
|
3732
3760
|
{
|
3733
|
-
type:
|
3761
|
+
type: D.literal,
|
3734
3762
|
value: e[0].value
|
3735
3763
|
}
|
3736
3764
|
];
|
@@ -3738,87 +3766,87 @@ function Me(e, t, r, n, i, o, s) {
|
|
3738
3766
|
var h = l[u];
|
3739
3767
|
if (Ut(h)) {
|
3740
3768
|
a.push({
|
3741
|
-
type:
|
3769
|
+
type: D.literal,
|
3742
3770
|
value: h.value
|
3743
3771
|
});
|
3744
3772
|
continue;
|
3745
3773
|
}
|
3746
3774
|
if (Wn(h)) {
|
3747
3775
|
typeof o == "number" && a.push({
|
3748
|
-
type:
|
3776
|
+
type: D.literal,
|
3749
3777
|
value: r.getNumberFormat(t).format(o)
|
3750
3778
|
});
|
3751
3779
|
continue;
|
3752
3780
|
}
|
3753
|
-
var
|
3754
|
-
if (!(i &&
|
3755
|
-
throw new Pi(
|
3756
|
-
var
|
3781
|
+
var d = h.value;
|
3782
|
+
if (!(i && d in i))
|
3783
|
+
throw new Pi(d, s);
|
3784
|
+
var c = i[d];
|
3757
3785
|
if (Xn(h)) {
|
3758
|
-
(!
|
3759
|
-
type: typeof
|
3760
|
-
value:
|
3786
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3787
|
+
type: typeof c == "string" ? D.literal : D.object,
|
3788
|
+
value: c
|
3761
3789
|
});
|
3762
3790
|
continue;
|
3763
3791
|
}
|
3764
3792
|
if (vr(h)) {
|
3765
|
-
var
|
3793
|
+
var m = typeof h.style == "string" ? n.date[h.style] : ut(h.style) ? h.style.parsedOptions : void 0;
|
3766
3794
|
a.push({
|
3767
|
-
type:
|
3768
|
-
value: r.getDateTimeFormat(t,
|
3795
|
+
type: D.literal,
|
3796
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
3769
3797
|
});
|
3770
3798
|
continue;
|
3771
3799
|
}
|
3772
|
-
if (
|
3773
|
-
var
|
3800
|
+
if (_r(h)) {
|
3801
|
+
var m = typeof h.style == "string" ? n.time[h.style] : ut(h.style) ? h.style.parsedOptions : n.time.medium;
|
3774
3802
|
a.push({
|
3775
|
-
type:
|
3776
|
-
value: r.getDateTimeFormat(t,
|
3803
|
+
type: D.literal,
|
3804
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
3777
3805
|
});
|
3778
3806
|
continue;
|
3779
3807
|
}
|
3780
|
-
if (
|
3781
|
-
var
|
3782
|
-
|
3783
|
-
type:
|
3784
|
-
value: r.getNumberFormat(t,
|
3808
|
+
if (yr(h)) {
|
3809
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Sr(h.style) ? h.style.parsedOptions : void 0;
|
3810
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
3811
|
+
type: D.literal,
|
3812
|
+
value: r.getNumberFormat(t, m).format(c)
|
3785
3813
|
});
|
3786
3814
|
continue;
|
3787
3815
|
}
|
3788
|
-
if (
|
3789
|
-
var
|
3790
|
-
if (!Bi(
|
3816
|
+
if (wr(h)) {
|
3817
|
+
var b = h.children, _ = h.value, T = i[_];
|
3818
|
+
if (!Bi(T))
|
3791
3819
|
throw new Ai(_, "function", s);
|
3792
|
-
var
|
3793
|
-
return
|
3820
|
+
var y = Me(b, t, r, n, i, o), H = T(y.map(function(L) {
|
3821
|
+
return L.value;
|
3794
3822
|
}));
|
3795
|
-
Array.isArray(
|
3823
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(L) {
|
3796
3824
|
return {
|
3797
|
-
type: typeof
|
3798
|
-
value:
|
3825
|
+
type: typeof L == "string" ? D.literal : D.object,
|
3826
|
+
value: L
|
3799
3827
|
};
|
3800
3828
|
}));
|
3801
3829
|
}
|
3802
|
-
if (
|
3803
|
-
var
|
3804
|
-
if (!
|
3805
|
-
throw new zt(h.value,
|
3806
|
-
a.push.apply(a, Me(
|
3830
|
+
if (xr(h)) {
|
3831
|
+
var E = h.options[c] || h.options.other;
|
3832
|
+
if (!E)
|
3833
|
+
throw new zt(h.value, c, Object.keys(h.options), s);
|
3834
|
+
a.push.apply(a, Me(E.value, t, r, n, i));
|
3807
3835
|
continue;
|
3808
3836
|
}
|
3809
|
-
if (
|
3810
|
-
var
|
3811
|
-
if (!
|
3837
|
+
if (Er(h)) {
|
3838
|
+
var E = h.options["=".concat(c)];
|
3839
|
+
if (!E) {
|
3812
3840
|
if (!Intl.PluralRules)
|
3813
3841
|
throw new je(`Intl.PluralRules is not available in this environment.
|
3814
3842
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3815
|
-
`,
|
3816
|
-
var
|
3817
|
-
|
3843
|
+
`, ge.MISSING_INTL_API, s);
|
3844
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
3845
|
+
E = h.options[N] || h.options.other;
|
3818
3846
|
}
|
3819
|
-
if (!
|
3820
|
-
throw new zt(h.value,
|
3821
|
-
a.push.apply(a, Me(
|
3847
|
+
if (!E)
|
3848
|
+
throw new zt(h.value, c, Object.keys(h.options), s);
|
3849
|
+
a.push.apply(a, Me(E.value, t, r, n, i, c - (h.offset || 0)));
|
3822
3850
|
continue;
|
3823
3851
|
}
|
3824
3852
|
}
|
@@ -3893,8 +3921,8 @@ var Li = (
|
|
3893
3921
|
var l = o.formatToParts(u);
|
3894
3922
|
if (l.length === 1)
|
3895
3923
|
return l[0].value;
|
3896
|
-
var h = l.reduce(function(
|
3897
|
-
return !
|
3924
|
+
var h = l.reduce(function(d, c) {
|
3925
|
+
return !d.length || c.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(c.value) : d[d.length - 1] += c.value, d;
|
3898
3926
|
}, []);
|
3899
3927
|
return h.length <= 1 ? h[0] || "" : h;
|
3900
3928
|
}, this.formatToParts = function(u) {
|
@@ -3911,7 +3939,7 @@ var Li = (
|
|
3911
3939
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3912
3940
|
var s = i || {};
|
3913
3941
|
s.formatters;
|
3914
|
-
var a =
|
3942
|
+
var a = pn(s, ["formatters"]);
|
3915
3943
|
this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
|
3916
3944
|
} else
|
3917
3945
|
this.ast = t;
|
@@ -4012,11 +4040,11 @@ function Ni(e, t) {
|
|
4012
4040
|
n = void 0;
|
4013
4041
|
return n;
|
4014
4042
|
}
|
4015
|
-
const
|
4043
|
+
const q = {}, Mi = (e, t, r) => r && (t in q || (q[t] = {}), e in q[t] || (q[t][e] = r), r), Lr = (e, t) => {
|
4016
4044
|
if (t == null)
|
4017
4045
|
return;
|
4018
|
-
if (t in
|
4019
|
-
return
|
4046
|
+
if (t in q && e in q[t])
|
4047
|
+
return q[t][e];
|
4020
4048
|
const r = Ve(t);
|
4021
4049
|
for (let n = 0; n < r.length; n++) {
|
4022
4050
|
const i = r[n], o = Di(i, e);
|
@@ -4025,15 +4053,15 @@ const J = {}, Mi = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][
|
|
4025
4053
|
}
|
4026
4054
|
};
|
4027
4055
|
let _t;
|
4028
|
-
const
|
4056
|
+
const _e = ke({});
|
4029
4057
|
function Ri(e) {
|
4030
4058
|
return _t[e] || null;
|
4031
4059
|
}
|
4032
|
-
function
|
4060
|
+
function Nr(e) {
|
4033
4061
|
return e in _t;
|
4034
4062
|
}
|
4035
4063
|
function Di(e, t) {
|
4036
|
-
if (!
|
4064
|
+
if (!Nr(e))
|
4037
4065
|
return null;
|
4038
4066
|
const r = Ri(e);
|
4039
4067
|
return Ni(r, t);
|
@@ -4044,28 +4072,28 @@ function $i(e) {
|
|
4044
4072
|
const t = Ve(e);
|
4045
4073
|
for (let r = 0; r < t.length; r++) {
|
4046
4074
|
const n = t[r];
|
4047
|
-
if (
|
4075
|
+
if (Nr(n))
|
4048
4076
|
return n;
|
4049
4077
|
}
|
4050
4078
|
}
|
4051
|
-
function
|
4052
|
-
delete
|
4079
|
+
function Mr(e, ...t) {
|
4080
|
+
delete q[e], _e.update((r) => (r[e] = Vn.all([r[e] || {}, ...t]), r));
|
4053
4081
|
}
|
4054
4082
|
ve(
|
4055
|
-
[
|
4083
|
+
[_e],
|
4056
4084
|
([e]) => Object.keys(e)
|
4057
4085
|
);
|
4058
|
-
|
4086
|
+
_e.subscribe((e) => _t = e);
|
4059
4087
|
const Re = {};
|
4060
4088
|
function Ui(e, t) {
|
4061
4089
|
Re[e].delete(t), Re[e].size === 0 && delete Re[e];
|
4062
4090
|
}
|
4063
|
-
function
|
4091
|
+
function Rr(e) {
|
4064
4092
|
return Re[e];
|
4065
4093
|
}
|
4066
4094
|
function Gi(e) {
|
4067
4095
|
return Ve(e).map((t) => {
|
4068
|
-
const r =
|
4096
|
+
const r = Rr(t);
|
4069
4097
|
return [t, r ? [...r] : []];
|
4070
4098
|
}).filter(([, t]) => t.length > 0);
|
4071
4099
|
}
|
@@ -4073,29 +4101,29 @@ function mt(e) {
|
|
4073
4101
|
return e == null ? !1 : Ve(e).some(
|
4074
4102
|
(t) => {
|
4075
4103
|
var r;
|
4076
|
-
return (r =
|
4104
|
+
return (r = Rr(t)) == null ? void 0 : r.size;
|
4077
4105
|
}
|
4078
4106
|
);
|
4079
4107
|
}
|
4080
4108
|
function ki(e, t) {
|
4081
4109
|
return Promise.all(
|
4082
4110
|
t.map((n) => (Ui(e, n), n().then((i) => i.default || i)))
|
4083
|
-
).then((n) =>
|
4111
|
+
).then((n) => Mr(e, ...n));
|
4084
4112
|
}
|
4085
|
-
const
|
4086
|
-
function
|
4113
|
+
const Ee = {};
|
4114
|
+
function Dr(e) {
|
4087
4115
|
if (!mt(e))
|
4088
|
-
return e in
|
4116
|
+
return e in Ee ? Ee[e] : Promise.resolve();
|
4089
4117
|
const t = Gi(e);
|
4090
|
-
return
|
4118
|
+
return Ee[e] = Promise.all(
|
4091
4119
|
t.map(
|
4092
4120
|
([r, n]) => ki(r, n)
|
4093
4121
|
)
|
4094
4122
|
).then(() => {
|
4095
4123
|
if (mt(e))
|
4096
|
-
return
|
4097
|
-
delete
|
4098
|
-
}),
|
4124
|
+
return Dr(e);
|
4125
|
+
delete Ee[e];
|
4126
|
+
}), Ee[e];
|
4099
4127
|
}
|
4100
4128
|
const ji = {
|
4101
4129
|
number: {
|
@@ -4134,7 +4162,7 @@ const ji = {
|
|
4134
4162
|
handleMissingMessage: void 0,
|
4135
4163
|
ignoreTag: !0
|
4136
4164
|
}, Xi = Vi;
|
4137
|
-
function
|
4165
|
+
function ye() {
|
4138
4166
|
return Xi;
|
4139
4167
|
}
|
4140
4168
|
const et = ke(!1);
|
@@ -4151,11 +4179,11 @@ const $e = ke(null);
|
|
4151
4179
|
function Qt(e) {
|
4152
4180
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4153
4181
|
}
|
4154
|
-
function Ve(e, t =
|
4182
|
+
function Ve(e, t = ye().fallbackLocale) {
|
4155
4183
|
const r = Qt(e);
|
4156
4184
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Qt(t)])] : r;
|
4157
4185
|
}
|
4158
|
-
function
|
4186
|
+
function ne() {
|
4159
4187
|
return bt != null ? bt : void 0;
|
4160
4188
|
}
|
4161
4189
|
$e.subscribe((e) => {
|
@@ -4163,19 +4191,19 @@ $e.subscribe((e) => {
|
|
4163
4191
|
});
|
4164
4192
|
const Ki = (e) => {
|
4165
4193
|
if (e && $i(e) && mt(e)) {
|
4166
|
-
const { loadingDelay: t } =
|
4194
|
+
const { loadingDelay: t } = ye();
|
4167
4195
|
let r;
|
4168
|
-
return typeof window != "undefined" &&
|
4196
|
+
return typeof window != "undefined" && ne() != null && t ? r = window.setTimeout(
|
4169
4197
|
() => et.set(!0),
|
4170
4198
|
t
|
4171
|
-
) : et.set(!0),
|
4199
|
+
) : et.set(!0), Dr(e).then(() => {
|
4172
4200
|
$e.set(e);
|
4173
4201
|
}).finally(() => {
|
4174
4202
|
clearTimeout(r), et.set(!1);
|
4175
4203
|
});
|
4176
4204
|
}
|
4177
4205
|
return $e.set(e);
|
4178
|
-
},
|
4206
|
+
}, re = Yi(qi({}, $e), {
|
4179
4207
|
set: Ki
|
4180
4208
|
}), Xe = (e) => {
|
4181
4209
|
const t = /* @__PURE__ */ Object.create(null);
|
@@ -4184,75 +4212,75 @@ const Ki = (e) => {
|
|
4184
4212
|
return i in t ? t[i] : t[i] = e(n);
|
4185
4213
|
};
|
4186
4214
|
};
|
4187
|
-
var eo = Object.defineProperty, Ue = Object.getOwnPropertySymbols,
|
4215
|
+
var eo = Object.defineProperty, Ue = Object.getOwnPropertySymbols, $r = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
|
4188
4216
|
for (var r in t || (t = {}))
|
4189
|
-
|
4217
|
+
$r.call(t, r) && qt(e, r, t[r]);
|
4190
4218
|
if (Ue)
|
4191
4219
|
for (var r of Ue(t))
|
4192
|
-
|
4220
|
+
Ur.call(t, r) && qt(e, r, t[r]);
|
4193
4221
|
return e;
|
4194
|
-
},
|
4222
|
+
}, xe = (e, t) => {
|
4195
4223
|
var r = {};
|
4196
4224
|
for (var n in e)
|
4197
|
-
|
4225
|
+
$r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4198
4226
|
if (e != null && Ue)
|
4199
4227
|
for (var n of Ue(e))
|
4200
|
-
t.indexOf(n) < 0 &&
|
4228
|
+
t.indexOf(n) < 0 && Ur.call(e, n) && (r[n] = e[n]);
|
4201
4229
|
return r;
|
4202
4230
|
};
|
4203
|
-
const
|
4204
|
-
const { formats: r } =
|
4231
|
+
const Ae = (e, t) => {
|
4232
|
+
const { formats: r } = ye();
|
4205
4233
|
if (e in r && t in r[e])
|
4206
4234
|
return r[e][t];
|
4207
4235
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4208
4236
|
}, to = Xe(
|
4209
4237
|
(e) => {
|
4210
|
-
var t = e, { locale: r, format: n } = t, i =
|
4238
|
+
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
4211
4239
|
if (r == null)
|
4212
4240
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4213
|
-
return n && (i =
|
4241
|
+
return n && (i = Ae("number", n)), new Intl.NumberFormat(r, i);
|
4214
4242
|
}
|
4215
4243
|
), ro = Xe(
|
4216
4244
|
(e) => {
|
4217
|
-
var t = e, { locale: r, format: n } = t, i =
|
4245
|
+
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
4218
4246
|
if (r == null)
|
4219
4247
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4220
|
-
return n ? i =
|
4248
|
+
return n ? i = Ae("date", n) : Object.keys(i).length === 0 && (i = Ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
4221
4249
|
}
|
4222
4250
|
), no = Xe(
|
4223
4251
|
(e) => {
|
4224
|
-
var t = e, { locale: r, format: n } = t, i =
|
4252
|
+
var t = e, { locale: r, format: n } = t, i = xe(t, ["locale", "format"]);
|
4225
4253
|
if (r == null)
|
4226
4254
|
throw new Error(
|
4227
4255
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4228
4256
|
);
|
4229
|
-
return n ? i =
|
4257
|
+
return n ? i = Ae("time", n) : Object.keys(i).length === 0 && (i = Ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
4230
4258
|
}
|
4231
4259
|
), io = (e = {}) => {
|
4232
4260
|
var t = e, {
|
4233
|
-
locale: r =
|
4234
|
-
} = t, n =
|
4261
|
+
locale: r = ne()
|
4262
|
+
} = t, n = xe(t, [
|
4235
4263
|
"locale"
|
4236
4264
|
]);
|
4237
4265
|
return to(xt({ locale: r }, n));
|
4238
4266
|
}, oo = (e = {}) => {
|
4239
4267
|
var t = e, {
|
4240
|
-
locale: r =
|
4241
|
-
} = t, n =
|
4268
|
+
locale: r = ne()
|
4269
|
+
} = t, n = xe(t, [
|
4242
4270
|
"locale"
|
4243
4271
|
]);
|
4244
4272
|
return ro(xt({ locale: r }, n));
|
4245
4273
|
}, so = (e = {}) => {
|
4246
4274
|
var t = e, {
|
4247
|
-
locale: r =
|
4248
|
-
} = t, n =
|
4275
|
+
locale: r = ne()
|
4276
|
+
} = t, n = xe(t, [
|
4249
4277
|
"locale"
|
4250
4278
|
]);
|
4251
4279
|
return no(xt({ locale: r }, n));
|
4252
4280
|
}, ao = Xe(
|
4253
4281
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4254
|
-
(e, t =
|
4255
|
-
ignoreTag:
|
4282
|
+
(e, t = ne()) => new Li(e, t, ye().formats, {
|
4283
|
+
ignoreTag: ye().ignoreTag
|
4256
4284
|
})
|
4257
4285
|
), lo = (e, t = {}) => {
|
4258
4286
|
var r, n, i, o;
|
@@ -4260,40 +4288,40 @@ const He = (e, t) => {
|
|
4260
4288
|
typeof e == "object" && (s = e, e = s.id);
|
4261
4289
|
const {
|
4262
4290
|
values: a,
|
4263
|
-
locale: u =
|
4291
|
+
locale: u = ne(),
|
4264
4292
|
default: l
|
4265
4293
|
} = s;
|
4266
4294
|
if (u == null)
|
4267
4295
|
throw new Error(
|
4268
4296
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4269
4297
|
);
|
4270
|
-
let h =
|
4298
|
+
let h = Lr(e, u);
|
4271
4299
|
if (!h)
|
4272
|
-
h = (o = (i = (n = (r =
|
4300
|
+
h = (o = (i = (n = (r = ye()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
4273
4301
|
else if (typeof h != "string")
|
4274
4302
|
return console.warn(
|
4275
4303
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
4276
4304
|
), h;
|
4277
4305
|
if (!a)
|
4278
4306
|
return h;
|
4279
|
-
let
|
4307
|
+
let d = h;
|
4280
4308
|
try {
|
4281
|
-
|
4282
|
-
} catch (
|
4283
|
-
|
4309
|
+
d = ao(h, u).format(a);
|
4310
|
+
} catch (c) {
|
4311
|
+
c instanceof Error && console.warn(
|
4284
4312
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
4285
|
-
|
4313
|
+
c.message
|
4286
4314
|
);
|
4287
4315
|
}
|
4288
|
-
return
|
4289
|
-
}, uo = (e, t) => so(t).format(e), ho = (e, t) => oo(t).format(e), co = (e, t) => io(t).format(e), fo = (e, t =
|
4290
|
-
ve([
|
4291
|
-
ve([
|
4292
|
-
ve([
|
4293
|
-
ve([
|
4316
|
+
return d;
|
4317
|
+
}, uo = (e, t) => so(t).format(e), ho = (e, t) => oo(t).format(e), co = (e, t) => io(t).format(e), fo = (e, t = ne()) => Lr(e, t), po = ve([re, _e], () => lo);
|
4318
|
+
ve([re], () => uo);
|
4319
|
+
ve([re], () => ho);
|
4320
|
+
ve([re], () => co);
|
4321
|
+
ve([re, _e], () => fo);
|
4294
4322
|
window.emWidgets = { topic: An };
|
4295
4323
|
const mo = (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)), bo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4296
|
-
function
|
4324
|
+
function No(e, t) {
|
4297
4325
|
const r = window.navigator.userAgent;
|
4298
4326
|
return mo(r) ? t = e.filter((n) => {
|
4299
4327
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
@@ -4304,12 +4332,12 @@ function Io(e, t) {
|
|
4304
4332
|
}), t;
|
4305
4333
|
}
|
4306
4334
|
function go({ withLocale: e, translations: t }) {
|
4307
|
-
|
4308
|
-
r == null && (
|
4335
|
+
re.subscribe((r) => {
|
4336
|
+
r == null && (_e.set(t), re.set(e));
|
4309
4337
|
});
|
4310
4338
|
}
|
4311
4339
|
function Yt(e, t) {
|
4312
|
-
|
4340
|
+
Mr(e, t);
|
4313
4341
|
}
|
4314
4342
|
const Kt = {
|
4315
4343
|
en: {
|
@@ -4415,56 +4443,56 @@ const Kt = {
|
|
4415
4443
|
clear: "Borrar todo"
|
4416
4444
|
}
|
4417
4445
|
};
|
4418
|
-
function
|
4419
|
-
|
4446
|
+
function yo(e) {
|
4447
|
+
Jr(e, "svelte-1kkfwlf", '.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.FilterContainer{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emfe-w-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(--emfe-w-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(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-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(--emfe-w-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(--emfe-w-color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between}.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(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-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(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-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}}');
|
4420
4448
|
}
|
4421
4449
|
function er(e, t, r) {
|
4422
4450
|
const n = e.slice();
|
4423
4451
|
return n[36] = t[r], n[37] = t, n[38] = r, n;
|
4424
4452
|
}
|
4425
|
-
function
|
4453
|
+
function vo(e) {
|
4426
4454
|
let t, r, n, i, o, s, a, u, l = (
|
4427
4455
|
/*$_*/
|
4428
4456
|
e[11]("filterby") + ""
|
4429
|
-
), h,
|
4457
|
+
), h, d, c, m, b = (
|
4430
4458
|
/*$_*/
|
4431
4459
|
e[11]("providers") + ""
|
4432
|
-
), _,
|
4460
|
+
), _, T, y, H, E, N, L, O, P, I, M, z, V, ie = (
|
4433
4461
|
/*$_*/
|
4434
4462
|
e[11]("clear") + ""
|
4435
|
-
),
|
4436
|
-
function Ce(
|
4463
|
+
), oe, ee, se, te, ae, Pe;
|
4464
|
+
function Ce(p, C) {
|
4437
4465
|
return (
|
4438
4466
|
/*fullSelection*/
|
4439
|
-
|
4467
|
+
p[7] ? Eo : xo
|
4440
4468
|
);
|
4441
4469
|
}
|
4442
|
-
let
|
4470
|
+
let le = Ce(e), $ = le(e), Q = Ft(
|
4443
4471
|
/*vendorArray*/
|
4444
4472
|
e[5]
|
4445
|
-
),
|
4446
|
-
for (let
|
4447
|
-
|
4473
|
+
), f = [];
|
4474
|
+
for (let p = 0; p < Q.length; p += 1)
|
4475
|
+
f[p] = tr(er(e, Q, p));
|
4448
4476
|
return {
|
4449
4477
|
c() {
|
4450
|
-
t =
|
4451
|
-
for (let
|
4452
|
-
|
4453
|
-
|
4454
|
-
(e[4] ? "TriangleActive" : "")),
|
4455
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
4478
|
+
t = B("div"), r = B("div"), n = B("div"), i = we("svg"), o = we("path"), s = X(), a = B("div"), u = B("span"), h = G(l), d = X(), c = B("div"), m = B("span"), _ = G(b), T = X(), $.c(), y = X(), H = B("span"), E = we("svg"), N = we("path"), P = X(), I = B("div"), M = B("ul");
|
4479
|
+
for (let p = 0; p < f.length; p += 1)
|
4480
|
+
f[p].c();
|
4481
|
+
z = X(), V = B("button"), oe = G(ie), g(o, "id", "noun_filter_736223"), g(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), g(o, "transform", "translate(-5 -6.2)"), g(o, "fill", "#fff"), g(i, "xmlns", "http://www.w3.org/2000/svg"), g(i, "width", "16"), g(i, "height", "16"), g(i, "viewBox", "0 0 16 16"), g(u, "class", "FilterName"), g(c, "class", "FilterValueContainer"), g(a, "class", "FilterTextContainer"), g(n, "class", "FilterMainArea"), g(N, "id", "arrow"), g(N, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), g(N, "transform", "translate(-274.511 -441.088)"), g(N, "fill", "#d1d1d1"), g(E, "xmlns", "http://www.w3.org/2000/svg"), g(E, "width", "14"), g(E, "height", "6.835"), g(E, "viewBox", "0 0 14 6.835"), g(H, "class", L = "TriangleInactive " + /*isFilterActive*/
|
4482
|
+
(e[4] ? "TriangleActive" : "")), g(r, "class", O = "FilterSelector " + /*isFilterActive*/
|
4483
|
+
(e[4] ? "FilterSelectorOpen" : "")), g(M, "class", "FilterDropdown"), g(V, "class", "ClearFilters"), V.disabled = ee = /*fullSelection*/
|
4456
4484
|
e[7] && /*selectedVendorArray*/
|
4457
4485
|
e[6].length != /*vendorArray*/
|
4458
|
-
e[5].length,
|
4459
|
-
(e[4] ? "FilterOpen" : "")),
|
4486
|
+
e[5].length, g(I, "class", se = "FilterDropdownContainer " + /*isFilterActive*/
|
4487
|
+
(e[4] ? "FilterOpen" : "")), g(t, "class", te = "FilterContainer " + /*addfilterselector*/
|
4460
4488
|
(e[0] == "true" && /*addsortingselector*/
|
4461
4489
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4462
4490
|
},
|
4463
|
-
m(
|
4464
|
-
|
4465
|
-
for (let
|
4466
|
-
|
4467
|
-
|
4491
|
+
m(p, C) {
|
4492
|
+
W(p, t, C), v(t, r), v(r, n), v(n, i), v(i, o), v(n, s), v(n, a), v(a, u), v(u, h), v(a, d), v(a, c), v(c, m), v(m, _), v(c, T), $.m(c, null), v(r, y), v(r, H), v(H, E), v(E, N), v(t, P), v(t, I), v(I, M);
|
4493
|
+
for (let A = 0; A < f.length; A += 1)
|
4494
|
+
f[A] && f[A].m(M, null);
|
4495
|
+
v(I, z), v(I, V), v(V, oe), ae || (Pe = [
|
4468
4496
|
De(
|
4469
4497
|
r,
|
4470
4498
|
"click",
|
@@ -4472,52 +4500,52 @@ function yo(e) {
|
|
4472
4500
|
e[22]
|
4473
4501
|
),
|
4474
4502
|
De(
|
4475
|
-
|
4503
|
+
V,
|
4476
4504
|
"click",
|
4477
4505
|
/*click_handler_2*/
|
4478
4506
|
e[25]
|
4479
4507
|
)
|
4480
|
-
],
|
4508
|
+
], ae = !0);
|
4481
4509
|
},
|
4482
|
-
p(
|
4483
|
-
if (
|
4510
|
+
p(p, C) {
|
4511
|
+
if (C[0] & /*$_*/
|
4484
4512
|
2048 && l !== (l = /*$_*/
|
4485
|
-
|
4486
|
-
2048 &&
|
4487
|
-
|
4488
|
-
16 &&
|
4489
|
-
(
|
4490
|
-
16 &&
|
4491
|
-
(
|
4513
|
+
p[11]("filterby") + "") && Y(h, l), C[0] & /*$_*/
|
4514
|
+
2048 && b !== (b = /*$_*/
|
4515
|
+
p[11]("providers") + "") && Y(_, b), le === (le = Ce(p)) && $ ? $.p(p, C) : ($.d(1), $ = le(p), $ && ($.c(), $.m(c, null))), C[0] & /*isFilterActive*/
|
4516
|
+
16 && L !== (L = "TriangleInactive " + /*isFilterActive*/
|
4517
|
+
(p[4] ? "TriangleActive" : "")) && g(H, "class", L), C[0] & /*isFilterActive*/
|
4518
|
+
16 && O !== (O = "FilterSelector " + /*isFilterActive*/
|
4519
|
+
(p[4] ? "FilterSelectorOpen" : "")) && g(r, "class", O), C[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4492
4520
|
8228) {
|
4493
|
-
|
4521
|
+
Q = Ft(
|
4494
4522
|
/*vendorArray*/
|
4495
|
-
|
4523
|
+
p[5]
|
4496
4524
|
);
|
4497
|
-
let
|
4498
|
-
for (
|
4499
|
-
const
|
4500
|
-
|
4525
|
+
let A;
|
4526
|
+
for (A = 0; A < Q.length; A += 1) {
|
4527
|
+
const ue = er(p, Q, A);
|
4528
|
+
f[A] ? f[A].p(ue, C) : (f[A] = tr(ue), f[A].c(), f[A].m(M, null));
|
4501
4529
|
}
|
4502
|
-
for (;
|
4503
|
-
|
4504
|
-
|
4530
|
+
for (; A < f.length; A += 1)
|
4531
|
+
f[A].d(1);
|
4532
|
+
f.length = Q.length;
|
4505
4533
|
}
|
4506
|
-
|
4507
|
-
2048 &&
|
4508
|
-
|
4509
|
-
224 &&
|
4510
|
-
|
4511
|
-
|
4512
|
-
|
4513
|
-
16 &&
|
4514
|
-
(
|
4515
|
-
3 &&
|
4516
|
-
(
|
4517
|
-
|
4534
|
+
C[0] & /*$_*/
|
4535
|
+
2048 && ie !== (ie = /*$_*/
|
4536
|
+
p[11]("clear") + "") && Y(oe, ie), C[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4537
|
+
224 && ee !== (ee = /*fullSelection*/
|
4538
|
+
p[7] && /*selectedVendorArray*/
|
4539
|
+
p[6].length != /*vendorArray*/
|
4540
|
+
p[5].length) && (V.disabled = ee), C[0] & /*isFilterActive*/
|
4541
|
+
16 && se !== (se = "FilterDropdownContainer " + /*isFilterActive*/
|
4542
|
+
(p[4] ? "FilterOpen" : "")) && g(I, "class", se), C[0] & /*addfilterselector, addsortingselector*/
|
4543
|
+
3 && te !== (te = "FilterContainer " + /*addfilterselector*/
|
4544
|
+
(p[0] == "true" && /*addsortingselector*/
|
4545
|
+
p[1] == "true" ? "FilerContainerSplit" : "")) && g(t, "class", te);
|
4518
4546
|
},
|
4519
|
-
d(
|
4520
|
-
|
4547
|
+
d(p) {
|
4548
|
+
p && j(t), $.d(), Yr(f, p), ae = !1, K(Pe);
|
4521
4549
|
}
|
4522
4550
|
};
|
4523
4551
|
}
|
@@ -4528,18 +4556,18 @@ function _o(e) {
|
|
4528
4556
|
), n;
|
4529
4557
|
return {
|
4530
4558
|
c() {
|
4531
|
-
t =
|
4559
|
+
t = B("p"), n = G(r), g(t, "class", "SearchLoading");
|
4532
4560
|
},
|
4533
4561
|
m(i, o) {
|
4534
|
-
|
4562
|
+
W(i, t, o), v(t, n);
|
4535
4563
|
},
|
4536
4564
|
p(i, o) {
|
4537
4565
|
o[0] & /*$_*/
|
4538
4566
|
2048 && r !== (r = /*$_*/
|
4539
|
-
i[11]("500") + "") &&
|
4567
|
+
i[11]("500") + "") && Y(n, r);
|
4540
4568
|
},
|
4541
4569
|
d(i) {
|
4542
|
-
i &&
|
4570
|
+
i && j(t);
|
4543
4571
|
}
|
4544
4572
|
};
|
4545
4573
|
}
|
@@ -4547,24 +4575,24 @@ function xo(e) {
|
|
4547
4575
|
let t, r;
|
4548
4576
|
return {
|
4549
4577
|
c() {
|
4550
|
-
t =
|
4578
|
+
t = B("span"), r = G(
|
4551
4579
|
/*selectionNumber*/
|
4552
4580
|
e[8]
|
4553
|
-
),
|
4581
|
+
), g(t, "class", "FilterCounter");
|
4554
4582
|
},
|
4555
4583
|
m(n, i) {
|
4556
|
-
|
4584
|
+
W(n, t, i), v(t, r);
|
4557
4585
|
},
|
4558
4586
|
p(n, i) {
|
4559
4587
|
i[0] & /*selectionNumber*/
|
4560
|
-
256 &&
|
4588
|
+
256 && Y(
|
4561
4589
|
r,
|
4562
4590
|
/*selectionNumber*/
|
4563
4591
|
n[8]
|
4564
4592
|
);
|
4565
4593
|
},
|
4566
4594
|
d(n) {
|
4567
|
-
n &&
|
4595
|
+
n && j(t);
|
4568
4596
|
}
|
4569
4597
|
};
|
4570
4598
|
}
|
@@ -4575,42 +4603,42 @@ function Eo(e) {
|
|
4575
4603
|
), n;
|
4576
4604
|
return {
|
4577
4605
|
c() {
|
4578
|
-
t =
|
4606
|
+
t = B("span"), n = G(r), g(t, "class", "FilterCounter");
|
4579
4607
|
},
|
4580
4608
|
m(i, o) {
|
4581
|
-
|
4609
|
+
W(i, t, o), v(t, n);
|
4582
4610
|
},
|
4583
4611
|
p(i, o) {
|
4584
4612
|
o[0] & /*$_*/
|
4585
4613
|
2048 && r !== (r = /*$_*/
|
4586
|
-
i[11]("all") + "") &&
|
4614
|
+
i[11]("all") + "") && Y(n, r);
|
4587
4615
|
},
|
4588
4616
|
d(i) {
|
4589
|
-
i &&
|
4617
|
+
i && j(t);
|
4590
4618
|
}
|
4591
4619
|
};
|
4592
4620
|
}
|
4593
|
-
function
|
4621
|
+
function wo(e) {
|
4594
4622
|
let t, r;
|
4595
4623
|
return {
|
4596
4624
|
c() {
|
4597
|
-
t =
|
4598
|
-
e[36].logo) ||
|
4625
|
+
t = B("img"), Pt(t.src, r = /*vendor*/
|
4626
|
+
e[36].logo) || g(t, "src", r), g(t, "alt", "vendor logo");
|
4599
4627
|
},
|
4600
4628
|
m(n, i) {
|
4601
|
-
|
4629
|
+
W(n, t, i);
|
4602
4630
|
},
|
4603
4631
|
p(n, i) {
|
4604
4632
|
i[0] & /*vendorArray*/
|
4605
4633
|
32 && !Pt(t.src, r = /*vendor*/
|
4606
|
-
n[36].logo) &&
|
4634
|
+
n[36].logo) && g(t, "src", r);
|
4607
4635
|
},
|
4608
4636
|
d(n) {
|
4609
|
-
n &&
|
4637
|
+
n && j(t);
|
4610
4638
|
}
|
4611
4639
|
};
|
4612
4640
|
}
|
4613
|
-
function
|
4641
|
+
function So(e) {
|
4614
4642
|
let t, r, n = (
|
4615
4643
|
/*vendor*/
|
4616
4644
|
e[36].name + ""
|
@@ -4620,26 +4648,26 @@ function wo(e) {
|
|
4620
4648
|
), l, h;
|
4621
4649
|
return {
|
4622
4650
|
c() {
|
4623
|
-
t =
|
4651
|
+
t = B("div"), r = B("span"), i = G(n), o = X(), s = B("span"), a = G("("), l = G(u), h = G(")"), g(t, "class", "FilterItemLabel");
|
4624
4652
|
},
|
4625
|
-
m(
|
4626
|
-
|
4653
|
+
m(d, c) {
|
4654
|
+
W(d, t, c), v(t, r), v(r, i), v(t, o), v(t, s), v(s, a), v(s, l), v(s, h);
|
4627
4655
|
},
|
4628
|
-
p(
|
4629
|
-
|
4656
|
+
p(d, c) {
|
4657
|
+
c[0] & /*vendorArray*/
|
4630
4658
|
32 && n !== (n = /*vendor*/
|
4631
|
-
|
4659
|
+
d[36].name + "") && Y(i, n), c[0] & /*vendorArray*/
|
4632
4660
|
32 && u !== (u = /*vendor*/
|
4633
|
-
|
4661
|
+
d[36].games.count + "") && Y(l, u);
|
4634
4662
|
},
|
4635
|
-
d(
|
4636
|
-
|
4663
|
+
d(d) {
|
4664
|
+
d && j(t);
|
4637
4665
|
}
|
4638
4666
|
};
|
4639
4667
|
}
|
4640
4668
|
function tr(e) {
|
4641
|
-
let t, r, n, i, o, s, a, u, l, h,
|
4642
|
-
function
|
4669
|
+
let t, r, n, i, o, s, a, u, l, h, d, c;
|
4670
|
+
function m() {
|
4643
4671
|
e[23].call(
|
4644
4672
|
n,
|
4645
4673
|
/*each_value*/
|
@@ -4648,7 +4676,7 @@ function tr(e) {
|
|
4648
4676
|
e[38]
|
4649
4677
|
);
|
4650
4678
|
}
|
4651
|
-
function
|
4679
|
+
function b() {
|
4652
4680
|
return (
|
4653
4681
|
/*click_handler_1*/
|
4654
4682
|
e[24](
|
@@ -4657,44 +4685,44 @@ function tr(e) {
|
|
4657
4685
|
)
|
4658
4686
|
);
|
4659
4687
|
}
|
4660
|
-
function _(
|
4688
|
+
function _(H, E) {
|
4661
4689
|
if (
|
4662
4690
|
/*filterbylogo*/
|
4663
|
-
|
4664
|
-
) return
|
4691
|
+
H[2] === "false"
|
4692
|
+
) return So;
|
4665
4693
|
if (
|
4666
4694
|
/*filterbylogo*/
|
4667
|
-
|
4668
|
-
) return
|
4695
|
+
H[2] === "true"
|
4696
|
+
) return wo;
|
4669
4697
|
}
|
4670
|
-
let
|
4698
|
+
let T = _(e), y = T && T(e);
|
4671
4699
|
return {
|
4672
4700
|
c() {
|
4673
|
-
t =
|
4674
|
-
e[36].name, Ct(n, n.__value),
|
4701
|
+
t = B("li"), r = B("label"), n = B("input"), o = X(), s = B("span"), a = X(), y && y.c(), u = X(), g(n, "type", "checkbox"), g(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
4702
|
+
e[36].name, Ct(n, n.__value), g(s, "class", "FiltersCheckmark"), g(r, "class", "FilterLabel"), g(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4675
4703
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = h = /*vendor*/
|
4676
4704
|
e[36].name;
|
4677
4705
|
},
|
4678
|
-
m(
|
4679
|
-
|
4680
|
-
e[36].isFilterSelected,
|
4681
|
-
De(n, "change",
|
4682
|
-
De(n, "click",
|
4683
|
-
],
|
4706
|
+
m(H, E) {
|
4707
|
+
W(H, t, E), v(t, r), v(r, n), n.checked = /*vendor*/
|
4708
|
+
e[36].isFilterSelected, v(r, o), v(r, s), v(r, a), y && y.m(r, null), v(t, u), d || (c = [
|
4709
|
+
De(n, "change", m),
|
4710
|
+
De(n, "click", b)
|
4711
|
+
], d = !0);
|
4684
4712
|
},
|
4685
|
-
p(
|
4686
|
-
e =
|
4713
|
+
p(H, E) {
|
4714
|
+
e = H, E[0] & /*vendorArray*/
|
4687
4715
|
32 && i !== (i = /*vendor*/
|
4688
|
-
e[36].name) && (n.__value = i, Ct(n, n.__value)),
|
4716
|
+
e[36].name) && (n.__value = i, Ct(n, n.__value)), E[0] & /*vendorArray*/
|
4689
4717
|
32 && (n.checked = /*vendor*/
|
4690
|
-
e[36].isFilterSelected),
|
4718
|
+
e[36].isFilterSelected), T === (T = _(e)) && y ? y.p(e, E) : (y && y.d(1), y = T && T(e), y && (y.c(), y.m(r, null))), E[0] & /*filterbylogo*/
|
4691
4719
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4692
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
4720
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && g(t, "class", l), E[0] & /*vendorArray*/
|
4693
4721
|
32 && h !== (h = /*vendor*/
|
4694
4722
|
e[36].name) && (t.value = h);
|
4695
4723
|
},
|
4696
|
-
d(
|
4697
|
-
|
4724
|
+
d(H) {
|
4725
|
+
H && j(t), y && y.d(), d = !1, K(c);
|
4698
4726
|
}
|
4699
4727
|
};
|
4700
4728
|
}
|
@@ -4706,127 +4734,127 @@ function To(e) {
|
|
4706
4734
|
o[10]
|
4707
4735
|
) return _o;
|
4708
4736
|
if (!/*isLoading*/
|
4709
|
-
o[9]) return
|
4737
|
+
o[9]) return vo;
|
4710
4738
|
}
|
4711
4739
|
let n = r(e), i = n && n(e);
|
4712
4740
|
return {
|
4713
4741
|
c() {
|
4714
|
-
t =
|
4742
|
+
t = B("div"), i && i.c();
|
4715
4743
|
},
|
4716
4744
|
m(o, s) {
|
4717
|
-
|
4745
|
+
W(o, t, s), i && i.m(t, null), e[26](t);
|
4718
4746
|
},
|
4719
4747
|
p(o, s) {
|
4720
4748
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
4721
4749
|
},
|
4722
|
-
i:
|
4723
|
-
o:
|
4750
|
+
i: k,
|
4751
|
+
o: k,
|
4724
4752
|
d(o) {
|
4725
|
-
o &&
|
4753
|
+
o && j(t), i && i.d(), e[26](null);
|
4726
4754
|
}
|
4727
4755
|
};
|
4728
4756
|
}
|
4729
4757
|
function Ho(e, t, r) {
|
4730
4758
|
let n;
|
4731
|
-
|
4732
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector:
|
4759
|
+
Zr(e, po, (f) => r(11, n = f));
|
4760
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector: d = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: m = "false" } = t, b = !1, _ = window.navigator.userAgent, T = [], y = [], H = {}, E = !1, N = 0, L = !0, O, P = !1;
|
4733
4761
|
go({ withLocale: "en", translations: {} });
|
4734
|
-
const
|
4735
|
-
fetch(a).then((
|
4736
|
-
Object.keys(
|
4737
|
-
Yt(
|
4762
|
+
const I = () => {
|
4763
|
+
fetch(a).then((p) => p.json()).then((p) => {
|
4764
|
+
Object.keys(p).forEach((C) => {
|
4765
|
+
Yt(C, p[C]);
|
4738
4766
|
});
|
4739
|
-
}).catch((
|
4740
|
-
console.log(
|
4767
|
+
}).catch((p) => {
|
4768
|
+
console.log(p);
|
4741
4769
|
});
|
4742
4770
|
};
|
4743
|
-
Object.keys(Kt).forEach((
|
4744
|
-
Yt(
|
4771
|
+
Object.keys(Kt).forEach((f) => {
|
4772
|
+
Yt(f, Kt[f]);
|
4745
4773
|
});
|
4746
|
-
const
|
4747
|
-
let
|
4748
|
-
|
4749
|
-
},
|
4750
|
-
let
|
4751
|
-
fetch(new URL(l)).then((
|
4752
|
-
|
4774
|
+
const M = () => {
|
4775
|
+
let f = document.createElement("style");
|
4776
|
+
f.innerHTML = u, O.appendChild(f);
|
4777
|
+
}, z = () => {
|
4778
|
+
let f = document.createElement("style");
|
4779
|
+
fetch(new URL(l)).then((p) => p.text()).then((p) => {
|
4780
|
+
f.innerHTML = p, setTimeout(
|
4753
4781
|
() => {
|
4754
|
-
|
4782
|
+
O.appendChild(f);
|
4755
4783
|
},
|
4756
4784
|
1
|
4757
4785
|
);
|
4758
4786
|
});
|
4759
4787
|
};
|
4760
|
-
|
4761
|
-
const
|
4762
|
-
r(4,
|
4763
|
-
},
|
4764
|
-
fetch(
|
4765
|
-
|
4766
|
-
let
|
4767
|
-
|
4788
|
+
H[h] && (H = { [h]: [] });
|
4789
|
+
const V = () => {
|
4790
|
+
r(4, b = !b), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4791
|
+
}, ie = (f) => (r(9, L = !0), new Promise((p, C) => {
|
4792
|
+
fetch(f).then((A) => A.json()).then((A) => {
|
4793
|
+
A = A.items, p(A.items), r(6, y = []);
|
4794
|
+
let ue = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4795
|
+
A.forEach((Be) => {
|
4768
4796
|
var Et;
|
4769
|
-
|
4770
|
-
}), r(5,
|
4771
|
-
}).catch((
|
4772
|
-
console.error(
|
4797
|
+
ue || (ue = { currentCategoryId: [] }), ((Et = ue[h]) == null ? void 0 : Et.indexOf(Be.id)) >= 0 ? (Be.isFilterSelected = !0, y.push(Be)) : Be.isFilterSelected = !1;
|
4798
|
+
}), r(5, T = A), ee();
|
4799
|
+
}).catch((A) => {
|
4800
|
+
console.error(A), r(10, P = !0), C(A);
|
4773
4801
|
}).finally(() => {
|
4774
|
-
r(9,
|
4802
|
+
r(9, L = !1);
|
4775
4803
|
});
|
4776
|
-
})),
|
4777
|
-
let
|
4778
|
-
|
4779
|
-
[h]:
|
4780
|
-
})) : (
|
4781
|
-
},
|
4782
|
-
r(7,
|
4783
|
-
},
|
4784
|
-
const
|
4785
|
-
r(4,
|
4786
|
-
},
|
4787
|
-
r(6,
|
4788
|
-
[h]:
|
4789
|
-
})),
|
4790
|
-
},
|
4791
|
-
|
4804
|
+
})), oe = (f) => {
|
4805
|
+
let p = localStorage.getItem("vendorFiltersByCategory");
|
4806
|
+
f.isFilterSelected = !f.isFilterSelected, !y.length || y.filter((C) => C.name === f.name).length == 0 ? y.push(f) : r(6, y = y.filter((C) => C.name !== f.name)), p == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(H = {
|
4807
|
+
[h]: y.map((C) => C.id)
|
4808
|
+
})) : (p = JSON.parse(p), p[h] = y.map((C) => C.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(p))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), ee();
|
4809
|
+
}, ee = () => {
|
4810
|
+
r(7, E = y.length === T.length || y.length == 0), r(8, N = y.length);
|
4811
|
+
}, se = () => {
|
4812
|
+
const f = new URL(`${i}/v1/casino/vendors`);
|
4813
|
+
r(4, b = !1), f.searchParams.append("fields", "id,name,logo,subVendors,games"), f.searchParams.append("language", s), f.searchParams.append("datasource", o), f.searchParams.append("platform", bo(_)), (h.match(/\$/g) || []).length > 1 ? (f.searchParams.append("filter", `games(subGroups=${h})`), f.searchParams.append("subVendors", `games(subGroups=${h})`)) : f.searchParams.append("filter", `games(groups=${h})`), ie(f);
|
4814
|
+
}, te = () => {
|
4815
|
+
r(6, y = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(H = {
|
4816
|
+
[h]: y.map((f) => f.id)
|
4817
|
+
})), T.forEach((f) => f.isFilterSelected = !1), r(5, T), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, E = !0), r(4, b = !1);
|
4818
|
+
}, ae = (f) => {
|
4819
|
+
f.data.type == "SortingOpened" && r(4, b = !1);
|
4792
4820
|
};
|
4793
|
-
|
4794
|
-
window.removeEventListener("message",
|
4821
|
+
rn(() => (window.addEventListener("message", ae, !1), () => {
|
4822
|
+
window.removeEventListener("message", ae);
|
4795
4823
|
}));
|
4796
|
-
const Pe = () =>
|
4797
|
-
function Ce(
|
4798
|
-
|
4824
|
+
const Pe = () => V();
|
4825
|
+
function Ce(f, p) {
|
4826
|
+
f[p].isFilterSelected = this.checked, r(5, T);
|
4799
4827
|
}
|
4800
|
-
const
|
4801
|
-
function
|
4802
|
-
tt[
|
4803
|
-
|
4828
|
+
const le = (f) => oe(f), $ = () => te();
|
4829
|
+
function Q(f) {
|
4830
|
+
tt[f ? "unshift" : "push"](() => {
|
4831
|
+
O = f, r(3, O);
|
4804
4832
|
});
|
4805
4833
|
}
|
4806
|
-
return e.$$set = (
|
4807
|
-
"endpoint" in
|
4834
|
+
return e.$$set = (f) => {
|
4835
|
+
"endpoint" in f && r(15, i = f.endpoint), "datasource" in f && r(16, o = f.datasource), "lang" in f && r(17, s = f.lang), "translationurl" in f && r(18, a = f.translationurl), "clientstyling" in f && r(19, u = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, h = f.categoryid), "addfilterselector" in f && r(0, d = f.addfilterselector), "addsortingselector" in f && r(1, c = f.addsortingselector), "filterbylogo" in f && r(2, m = f.filterbylogo);
|
4808
4836
|
}, e.$$.update = () => {
|
4809
4837
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4810
|
-
2195460 && i && o && h &&
|
4811
|
-
524296 && u &&
|
4812
|
-
1048584 && l &&
|
4813
|
-
262144 && a &&
|
4838
|
+
2195460 && i && o && h && m && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4839
|
+
524296 && u && O && M(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4840
|
+
1048584 && l && O && z(), e.$$.dirty[0] & /*translationurl*/
|
4841
|
+
262144 && a && I();
|
4814
4842
|
}, [
|
4815
|
-
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4843
|
+
d,
|
4844
|
+
c,
|
4845
|
+
m,
|
4846
|
+
O,
|
4847
|
+
b,
|
4848
|
+
T,
|
4819
4849
|
y,
|
4820
|
-
|
4821
|
-
|
4822
|
-
w,
|
4850
|
+
E,
|
4851
|
+
N,
|
4823
4852
|
L,
|
4824
|
-
|
4825
|
-
z,
|
4853
|
+
P,
|
4826
4854
|
n,
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
4855
|
+
V,
|
4856
|
+
oe,
|
4857
|
+
te,
|
4830
4858
|
i,
|
4831
4859
|
o,
|
4832
4860
|
s,
|
@@ -4836,12 +4864,12 @@ function Ho(e, t, r) {
|
|
4836
4864
|
h,
|
4837
4865
|
Pe,
|
4838
4866
|
Ce,
|
4839
|
-
|
4840
|
-
|
4841
|
-
|
4867
|
+
le,
|
4868
|
+
$,
|
4869
|
+
Q
|
4842
4870
|
];
|
4843
4871
|
}
|
4844
|
-
class
|
4872
|
+
class Gr extends fn {
|
4845
4873
|
constructor(t) {
|
4846
4874
|
super(), hn(
|
4847
4875
|
this,
|
@@ -4861,7 +4889,7 @@ class Ur extends fn {
|
|
4861
4889
|
addsortingselector: 1,
|
4862
4890
|
filterbylogo: 2
|
4863
4891
|
},
|
4864
|
-
|
4892
|
+
yo,
|
4865
4893
|
[-1, -1]
|
4866
4894
|
);
|
4867
4895
|
}
|
@@ -4869,103 +4897,105 @@ class Ur extends fn {
|
|
4869
4897
|
return this.$$.ctx[15];
|
4870
4898
|
}
|
4871
4899
|
set endpoint(t) {
|
4872
|
-
this.$$set({ endpoint: t }),
|
4900
|
+
this.$$set({ endpoint: t }), U();
|
4873
4901
|
}
|
4874
4902
|
get datasource() {
|
4875
4903
|
return this.$$.ctx[16];
|
4876
4904
|
}
|
4877
4905
|
set datasource(t) {
|
4878
|
-
this.$$set({ datasource: t }),
|
4906
|
+
this.$$set({ datasource: t }), U();
|
4879
4907
|
}
|
4880
4908
|
get lang() {
|
4881
4909
|
return this.$$.ctx[17];
|
4882
4910
|
}
|
4883
4911
|
set lang(t) {
|
4884
|
-
this.$$set({ lang: t }),
|
4912
|
+
this.$$set({ lang: t }), U();
|
4885
4913
|
}
|
4886
4914
|
get translationurl() {
|
4887
4915
|
return this.$$.ctx[18];
|
4888
4916
|
}
|
4889
4917
|
set translationurl(t) {
|
4890
|
-
this.$$set({ translationurl: t }),
|
4918
|
+
this.$$set({ translationurl: t }), U();
|
4891
4919
|
}
|
4892
4920
|
get clientstyling() {
|
4893
4921
|
return this.$$.ctx[19];
|
4894
4922
|
}
|
4895
4923
|
set clientstyling(t) {
|
4896
|
-
this.$$set({ clientstyling: t }),
|
4924
|
+
this.$$set({ clientstyling: t }), U();
|
4897
4925
|
}
|
4898
4926
|
get clientstylingurl() {
|
4899
4927
|
return this.$$.ctx[20];
|
4900
4928
|
}
|
4901
4929
|
set clientstylingurl(t) {
|
4902
|
-
this.$$set({ clientstylingurl: t }),
|
4930
|
+
this.$$set({ clientstylingurl: t }), U();
|
4903
4931
|
}
|
4904
4932
|
get categoryid() {
|
4905
4933
|
return this.$$.ctx[21];
|
4906
4934
|
}
|
4907
4935
|
set categoryid(t) {
|
4908
|
-
this.$$set({ categoryid: t }),
|
4936
|
+
this.$$set({ categoryid: t }), U();
|
4909
4937
|
}
|
4910
4938
|
get addfilterselector() {
|
4911
4939
|
return this.$$.ctx[0];
|
4912
4940
|
}
|
4913
4941
|
set addfilterselector(t) {
|
4914
|
-
this.$$set({ addfilterselector: t }),
|
4942
|
+
this.$$set({ addfilterselector: t }), U();
|
4915
4943
|
}
|
4916
4944
|
get addsortingselector() {
|
4917
4945
|
return this.$$.ctx[1];
|
4918
4946
|
}
|
4919
4947
|
set addsortingselector(t) {
|
4920
|
-
this.$$set({ addsortingselector: t }),
|
4948
|
+
this.$$set({ addsortingselector: t }), U();
|
4921
4949
|
}
|
4922
4950
|
get filterbylogo() {
|
4923
4951
|
return this.$$.ctx[2];
|
4924
4952
|
}
|
4925
4953
|
set filterbylogo(t) {
|
4926
|
-
this.$$set({ filterbylogo: t }),
|
4954
|
+
this.$$set({ filterbylogo: t }), U();
|
4927
4955
|
}
|
4928
4956
|
}
|
4929
|
-
cn(
|
4930
|
-
const
|
4957
|
+
cn(Gr, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {} }, [], [], !0);
|
4958
|
+
const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4931
4959
|
__proto__: null,
|
4932
|
-
default:
|
4960
|
+
default: Gr
|
4933
4961
|
}, Symbol.toStringTag, { value: "Module" }));
|
4934
4962
|
export {
|
4935
|
-
|
4963
|
+
re as $,
|
4936
4964
|
po as A,
|
4937
4965
|
Oo as B,
|
4938
|
-
|
4939
|
-
|
4940
|
-
|
4941
|
-
|
4942
|
-
|
4966
|
+
we as C,
|
4967
|
+
No as D,
|
4968
|
+
Lo as E,
|
4969
|
+
Co as F,
|
4970
|
+
Io as G,
|
4943
4971
|
Fo as H,
|
4972
|
+
_e as I,
|
4973
|
+
Mo as J,
|
4944
4974
|
fn as S,
|
4945
|
-
|
4946
|
-
|
4975
|
+
Mr as a,
|
4976
|
+
Jr as b,
|
4947
4977
|
cn as c,
|
4948
|
-
|
4949
|
-
|
4950
|
-
|
4978
|
+
X as d,
|
4979
|
+
B as e,
|
4980
|
+
U as f,
|
4951
4981
|
Pt as g,
|
4952
|
-
|
4982
|
+
g as h,
|
4953
4983
|
hn as i,
|
4954
4984
|
Bo as j,
|
4955
|
-
|
4956
|
-
|
4957
|
-
|
4958
|
-
|
4959
|
-
|
4960
|
-
|
4961
|
-
|
4985
|
+
W as k,
|
4986
|
+
v as l,
|
4987
|
+
Y as m,
|
4988
|
+
k as n,
|
4989
|
+
j as o,
|
4990
|
+
Zr as p,
|
4991
|
+
rn as q,
|
4962
4992
|
De as r,
|
4963
4993
|
nr as s,
|
4964
|
-
|
4994
|
+
G as t,
|
4965
4995
|
Po as u,
|
4966
4996
|
mo as v,
|
4967
4997
|
bo as w,
|
4968
4998
|
tt as x,
|
4969
4999
|
Ft as y,
|
4970
|
-
|
5000
|
+
Yr as z
|
4971
5001
|
};
|