@everymatrix/casino-collections-providers 1.54.8 → 1.54.10
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/{CasinoCollectionsProviders-Cr6gW2vx.cjs → CasinoCollectionsProviders-BD2iWN3b.cjs} +3 -3
- package/components/{CasinoCollectionsProviders-Cx21eySK.js → CasinoCollectionsProviders-CNIQdIJc.js} +241 -241
- package/components/{CasinoCollectionsProviders-DUYpVZmi.js → CasinoCollectionsProviders-WYV9fhve.js} +244 -244
- package/es2015/casino-collections-providers.cjs +1 -1
- package/es2015/casino-collections-providers.js +1 -1
- package/esnext/casino-collections-providers.js +1 -1
- package/package.json +2 -2
package/components/{CasinoCollectionsProviders-DUYpVZmi.js → CasinoCollectionsProviders-WYV9fhve.js}
RENAMED
@@ -143,13 +143,13 @@ function Vr(e) {
|
|
143
143
|
}
|
144
144
|
), t;
|
145
145
|
}
|
146
|
-
let
|
146
|
+
let le;
|
147
147
|
function ae(e) {
|
148
|
-
|
148
|
+
le = e;
|
149
149
|
}
|
150
150
|
function Xr() {
|
151
|
-
if (!
|
152
|
-
return
|
151
|
+
if (!le) throw new Error("Function called outside component initialization");
|
152
|
+
return le;
|
153
153
|
}
|
154
154
|
function Wr(e) {
|
155
155
|
Xr().$$.on_mount.push(e);
|
@@ -169,7 +169,7 @@ let V = 0;
|
|
169
169
|
function M() {
|
170
170
|
if (V !== 0)
|
171
171
|
return;
|
172
|
-
const e =
|
172
|
+
const e = le;
|
173
173
|
do {
|
174
174
|
try {
|
175
175
|
for (; V < W.length; ) {
|
@@ -223,7 +223,7 @@ function tn(e, t) {
|
|
223
223
|
e.$$.dirty[0] === -1 && (W.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
224
224
|
}
|
225
225
|
function rn(e, t, r, n, i, o, s = null, a = [-1]) {
|
226
|
-
const
|
226
|
+
const u = le;
|
227
227
|
ae(e);
|
228
228
|
const h = e.$$ = {
|
229
229
|
fragment: null,
|
@@ -239,19 +239,19 @@ function rn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
239
239
|
on_disconnect: [],
|
240
240
|
before_update: [],
|
241
241
|
after_update: [],
|
242
|
-
context: new Map(t.context || (
|
242
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
243
243
|
// everything else
|
244
244
|
callbacks: ht(),
|
245
245
|
dirty: a,
|
246
246
|
skip_bound: !1,
|
247
|
-
root: t.target ||
|
247
|
+
root: t.target || u.$$.root
|
248
248
|
};
|
249
249
|
s && s(h.root);
|
250
|
-
let
|
250
|
+
let l = !1;
|
251
251
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
252
252
|
const d = m.length ? m[0] : f;
|
253
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] = d) && (!h.skip_bound && h.bound[c] && h.bound[c](d),
|
254
|
-
}) : [], h.update(),
|
253
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = d) && (!h.skip_bound && h.bound[c] && h.bound[c](d), l && tn(e, c)), f;
|
254
|
+
}) : [], h.update(), l = !0, ee(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
255
255
|
if (t.hydrate) {
|
256
256
|
const c = Fr(t.target);
|
257
257
|
h.fragment && h.fragment.l(c), c.forEach(N);
|
@@ -259,7 +259,7 @@ function rn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
259
259
|
h.fragment && h.fragment.c();
|
260
260
|
t.intro && qr(e.$$.fragment), Kr(e, t.target, t.anchor), M();
|
261
261
|
}
|
262
|
-
ae(
|
262
|
+
ae(u);
|
263
263
|
}
|
264
264
|
let Vt;
|
265
265
|
typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
@@ -310,11 +310,11 @@ typeof HTMLElement == "function" && (Vt = class extends HTMLElement {
|
|
310
310
|
* @param {HTMLElement} target
|
311
311
|
* @param {HTMLElement} [anchor]
|
312
312
|
*/
|
313
|
-
m: function(
|
314
|
-
R(
|
313
|
+
m: function(u, h) {
|
314
|
+
R(u, o, h);
|
315
315
|
},
|
316
|
-
d: function(
|
317
|
-
|
316
|
+
d: function(u) {
|
317
|
+
u && N(o);
|
318
318
|
}
|
319
319
|
};
|
320
320
|
};
|
@@ -424,8 +424,8 @@ function nn(e, t, r, n, i, o) {
|
|
424
424
|
get() {
|
425
425
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
426
426
|
},
|
427
|
-
set(
|
428
|
-
|
427
|
+
set(u) {
|
428
|
+
u = be(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
|
429
429
|
}
|
430
430
|
});
|
431
431
|
}), n.forEach((a) => {
|
@@ -494,10 +494,10 @@ function Ce(e, t = I) {
|
|
494
494
|
const n = /* @__PURE__ */ new Set();
|
495
495
|
function i(a) {
|
496
496
|
if (Ft(e, a) && (e = a, r)) {
|
497
|
-
const
|
497
|
+
const u = !X.length;
|
498
498
|
for (const h of n)
|
499
499
|
h[1](), X.push(h, e);
|
500
|
-
if (
|
500
|
+
if (u) {
|
501
501
|
for (let h = 0; h < X.length; h += 2)
|
502
502
|
X[h][0](X[h + 1]);
|
503
503
|
X.length = 0;
|
@@ -507,8 +507,8 @@ function Ce(e, t = I) {
|
|
507
507
|
function o(a) {
|
508
508
|
i(a(e));
|
509
509
|
}
|
510
|
-
function s(a,
|
511
|
-
const h = [a,
|
510
|
+
function s(a, u = I) {
|
511
|
+
const h = [a, u];
|
512
512
|
return n.add(h), n.size === 1 && (r = t(i, o) || I), a(e), () => {
|
513
513
|
n.delete(h), n.size === 0 && r && (r(), r = null);
|
514
514
|
};
|
@@ -521,11 +521,11 @@ function te(e, t, r) {
|
|
521
521
|
throw new Error("derived() expects stores as input, got a falsy value");
|
522
522
|
const o = t.length < 2;
|
523
523
|
return an(r, (s, a) => {
|
524
|
-
let
|
524
|
+
let u = !1;
|
525
525
|
const h = [];
|
526
|
-
let
|
526
|
+
let l = 0, c = I;
|
527
527
|
const f = () => {
|
528
|
-
if (
|
528
|
+
if (l)
|
529
529
|
return;
|
530
530
|
c();
|
531
531
|
const d = t(n ? h[0] : h, s, a);
|
@@ -534,22 +534,22 @@ function te(e, t, r) {
|
|
534
534
|
(d, g) => kt(
|
535
535
|
d,
|
536
536
|
(p) => {
|
537
|
-
h[g] = p,
|
537
|
+
h[g] = p, l &= ~(1 << g), u && f();
|
538
538
|
},
|
539
539
|
() => {
|
540
|
-
|
540
|
+
l |= 1 << g;
|
541
541
|
}
|
542
542
|
)
|
543
543
|
);
|
544
|
-
return
|
545
|
-
ee(m), c(),
|
544
|
+
return u = !0, f(), function() {
|
545
|
+
ee(m), c(), u = !1;
|
546
546
|
};
|
547
547
|
});
|
548
548
|
}
|
549
|
-
function
|
549
|
+
function ln(e) {
|
550
550
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
551
551
|
}
|
552
|
-
var
|
552
|
+
var un = function(t) {
|
553
553
|
return hn(t) && !cn(t);
|
554
554
|
};
|
555
555
|
function hn(e) {
|
@@ -566,12 +566,12 @@ function pn(e) {
|
|
566
566
|
function mn(e) {
|
567
567
|
return Array.isArray(e) ? [] : {};
|
568
568
|
}
|
569
|
-
function
|
569
|
+
function ue(e, t) {
|
570
570
|
return t.clone !== !1 && t.isMergeableObject(e) ? J(mn(e), e, t) : e;
|
571
571
|
}
|
572
572
|
function bn(e, t, r) {
|
573
573
|
return e.concat(t).map(function(n) {
|
574
|
-
return
|
574
|
+
return ue(n, r);
|
575
575
|
});
|
576
576
|
}
|
577
577
|
function gn(e, t) {
|
@@ -580,13 +580,13 @@ function gn(e, t) {
|
|
580
580
|
var r = t.customMerge(e);
|
581
581
|
return typeof r == "function" ? r : J;
|
582
582
|
}
|
583
|
-
function
|
583
|
+
function vn(e) {
|
584
584
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
585
585
|
return Object.propertyIsEnumerable.call(e, t);
|
586
586
|
}) : [];
|
587
587
|
}
|
588
588
|
function ft(e) {
|
589
|
-
return Object.keys(e).concat(
|
589
|
+
return Object.keys(e).concat(vn(e));
|
590
590
|
}
|
591
591
|
function Xt(e, t) {
|
592
592
|
try {
|
@@ -595,21 +595,21 @@ function Xt(e, t) {
|
|
595
595
|
return !1;
|
596
596
|
}
|
597
597
|
}
|
598
|
-
function
|
598
|
+
function yn(e, t) {
|
599
599
|
return Xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
600
600
|
}
|
601
601
|
function _n(e, t, r) {
|
602
602
|
var n = {};
|
603
603
|
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
604
|
-
n[i] =
|
604
|
+
n[i] = ue(e[i], r);
|
605
605
|
}), ft(t).forEach(function(i) {
|
606
|
-
|
606
|
+
yn(e, i) || (Xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = gn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
|
607
607
|
}), n;
|
608
608
|
}
|
609
609
|
function J(e, t, r) {
|
610
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || bn, r.isMergeableObject = r.isMergeableObject ||
|
610
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || bn, r.isMergeableObject = r.isMergeableObject || un, r.cloneUnlessOtherwiseSpecified = ue;
|
611
611
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
612
|
-
return o ? n ? r.arrayMerge(e, t, r) : _n(e, t, r) :
|
612
|
+
return o ? n ? r.arrayMerge(e, t, r) : _n(e, t, r) : ue(t, r);
|
613
613
|
}
|
614
614
|
J.all = function(t, r) {
|
615
615
|
if (!Array.isArray(t))
|
@@ -619,7 +619,7 @@ J.all = function(t, r) {
|
|
619
619
|
}, {});
|
620
620
|
};
|
621
621
|
var xn = J, En = xn;
|
622
|
-
const Sn = /* @__PURE__ */
|
622
|
+
const Sn = /* @__PURE__ */ ln(En);
|
623
623
|
var Fe = function(e, t) {
|
624
624
|
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
625
625
|
r.__proto__ = n;
|
@@ -733,10 +733,10 @@ var Bn = function() {
|
|
733
733
|
}
|
734
734
|
}, Me = {
|
735
735
|
variadic: Pn
|
736
|
-
},
|
736
|
+
}, v;
|
737
737
|
(function(e) {
|
738
738
|
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";
|
739
|
-
})(
|
739
|
+
})(v || (v = {}));
|
740
740
|
var w;
|
741
741
|
(function(e) {
|
742
742
|
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";
|
@@ -880,12 +880,12 @@ function $n(e) {
|
|
880
880
|
var o = i[n], s = o.split("/");
|
881
881
|
if (s.length === 0)
|
882
882
|
throw new Error("Invalid number skeleton");
|
883
|
-
for (var a = s[0],
|
884
|
-
var c =
|
883
|
+
for (var a = s[0], u = s.slice(1), h = 0, l = u; h < l.length; h++) {
|
884
|
+
var c = l[h];
|
885
885
|
if (c.length === 0)
|
886
886
|
throw new Error("Invalid number skeleton");
|
887
887
|
}
|
888
|
-
r.push({ stem: a, options:
|
888
|
+
r.push({ stem: a, options: u });
|
889
889
|
}
|
890
890
|
return r;
|
891
891
|
}
|
@@ -992,13 +992,13 @@ function Fn(e) {
|
|
992
992
|
t.notation = "compact", t.compactDisplay = "long";
|
993
993
|
continue;
|
994
994
|
case "scientific":
|
995
|
-
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(
|
996
|
-
return x(x({},
|
995
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(u, h) {
|
996
|
+
return x(x({}, u), bt(h));
|
997
997
|
}, {}));
|
998
998
|
continue;
|
999
999
|
case "engineering":
|
1000
|
-
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(
|
1001
|
-
return x(x({},
|
1000
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(u, h) {
|
1001
|
+
return x(x({}, u), bt(h));
|
1002
1002
|
}, {}));
|
1003
1003
|
continue;
|
1004
1004
|
case "notation-simple":
|
@@ -1043,9 +1043,9 @@ function Fn(e) {
|
|
1043
1043
|
case "integer-width":
|
1044
1044
|
if (i.options.length > 1)
|
1045
1045
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1046
|
-
i.options[0].replace(Un, function(
|
1046
|
+
i.options[0].replace(Un, function(u, h, l, c, f, m) {
|
1047
1047
|
if (h)
|
1048
|
-
t.minimumIntegerDigits =
|
1048
|
+
t.minimumIntegerDigits = l.length;
|
1049
1049
|
else {
|
1050
1050
|
if (c && f)
|
1051
1051
|
throw new Error("We currently do not support maximum integer digits");
|
@@ -1063,8 +1063,8 @@ function Fn(e) {
|
|
1063
1063
|
if (pt.test(i.stem)) {
|
1064
1064
|
if (i.options.length > 1)
|
1065
1065
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1066
|
-
i.stem.replace(pt, function(
|
1067
|
-
return
|
1066
|
+
i.stem.replace(pt, function(u, h, l, c, f, m) {
|
1067
|
+
return l === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
1068
1068
|
});
|
1069
1069
|
var o = i.options[0];
|
1070
1070
|
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), mt(o)));
|
@@ -2502,9 +2502,9 @@ function kn(e, t) {
|
|
2502
2502
|
if (i === "j") {
|
2503
2503
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2504
2504
|
o++, n++;
|
2505
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
2505
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", h = jn(t);
|
2506
2506
|
for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
|
2507
|
-
r +=
|
2507
|
+
r += u;
|
2508
2508
|
for (; s-- > 0; )
|
2509
2509
|
r = h + r;
|
2510
2510
|
} else i === "J" ? r += "H" : r += i;
|
@@ -2534,7 +2534,7 @@ function jn(e) {
|
|
2534
2534
|
return i[0];
|
2535
2535
|
}
|
2536
2536
|
var Re, Vn = new RegExp("^".concat(tr.source, "*")), Xn = new RegExp("".concat(tr.source, "*$"));
|
2537
|
-
function
|
2537
|
+
function y(e, t) {
|
2538
2538
|
return { start: e, end: t };
|
2539
2539
|
}
|
2540
2540
|
var Wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), zn = !!String.fromCodePoint, Zn = !!Object.fromEntries, Qn = !!String.prototype.codePointAt, Jn = !!String.prototype.trimStart, Yn = !!String.prototype.trimEnd, qn = !!Number.isSafeInteger, Kn = qn ? Number.isSafeInteger : function(e) {
|
@@ -2568,7 +2568,7 @@ var gt = Wn ? (
|
|
2568
2568
|
}
|
2569
2569
|
return n;
|
2570
2570
|
}
|
2571
|
-
),
|
2571
|
+
), vt = (
|
2572
2572
|
// native
|
2573
2573
|
Zn ? Object.fromEntries : (
|
2574
2574
|
// Ponyfill
|
@@ -2620,11 +2620,11 @@ function sr(e, t) {
|
|
2620
2620
|
}
|
2621
2621
|
var ze;
|
2622
2622
|
if (Xe) {
|
2623
|
-
var
|
2623
|
+
var yt = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2624
2624
|
ze = function(t, r) {
|
2625
2625
|
var n;
|
2626
|
-
|
2627
|
-
var i =
|
2626
|
+
yt.lastIndex = r;
|
2627
|
+
var i = yt.exec(t);
|
2628
2628
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2629
2629
|
};
|
2630
2630
|
} else
|
@@ -2662,12 +2662,12 @@ var ni = (
|
|
2662
2662
|
var a = this.clonePosition();
|
2663
2663
|
this.bump(), i.push({
|
2664
2664
|
type: w.pound,
|
2665
|
-
location:
|
2665
|
+
location: y(a, this.clonePosition())
|
2666
2666
|
});
|
2667
2667
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
2668
2668
|
if (n)
|
2669
2669
|
break;
|
2670
|
-
return this.error(
|
2670
|
+
return this.error(v.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
2671
2671
|
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
2672
2672
|
var s = this.parseTag(t, r);
|
2673
2673
|
if (s.err)
|
@@ -2691,7 +2691,7 @@ var ni = (
|
|
2691
2691
|
val: {
|
2692
2692
|
type: w.literal,
|
2693
2693
|
value: "<".concat(i, "/>"),
|
2694
|
-
location:
|
2694
|
+
location: y(n, this.clonePosition())
|
2695
2695
|
},
|
2696
2696
|
err: null
|
2697
2697
|
};
|
@@ -2702,21 +2702,21 @@ var ni = (
|
|
2702
2702
|
var s = o.val, a = this.clonePosition();
|
2703
2703
|
if (this.bumpIf("</")) {
|
2704
2704
|
if (this.isEOF() || !Ze(this.char()))
|
2705
|
-
return this.error(
|
2706
|
-
var
|
2707
|
-
return i !== h ? this.error(
|
2705
|
+
return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
|
2706
|
+
var u = this.clonePosition(), h = this.parseTagName();
|
2707
|
+
return i !== h ? this.error(v.UNMATCHED_CLOSING_TAG, y(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2708
2708
|
val: {
|
2709
2709
|
type: w.tag,
|
2710
2710
|
value: i,
|
2711
2711
|
children: s,
|
2712
|
-
location:
|
2712
|
+
location: y(n, this.clonePosition())
|
2713
2713
|
},
|
2714
2714
|
err: null
|
2715
|
-
} : this.error(
|
2715
|
+
} : this.error(v.INVALID_TAG, y(a, this.clonePosition())));
|
2716
2716
|
} else
|
2717
|
-
return this.error(
|
2717
|
+
return this.error(v.UNCLOSED_TAG, y(n, this.clonePosition()));
|
2718
2718
|
} else
|
2719
|
-
return this.error(
|
2719
|
+
return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
|
2720
2720
|
}, e.prototype.parseTagName = function() {
|
2721
2721
|
var t = this.offset();
|
2722
2722
|
for (this.bump(); !this.isEOF() && oi(this.char()); )
|
@@ -2741,9 +2741,9 @@ var ni = (
|
|
2741
2741
|
}
|
2742
2742
|
break;
|
2743
2743
|
}
|
2744
|
-
var
|
2744
|
+
var u = y(n, this.clonePosition());
|
2745
2745
|
return {
|
2746
|
-
val: { type: w.literal, value: i, location:
|
2746
|
+
val: { type: w.literal, value: i, location: u },
|
2747
2747
|
err: null
|
2748
2748
|
};
|
2749
2749
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
@@ -2791,14 +2791,14 @@ var ni = (
|
|
2791
2791
|
}, e.prototype.parseArgument = function(t, r) {
|
2792
2792
|
var n = this.clonePosition();
|
2793
2793
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2794
|
-
return this.error(
|
2794
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
2795
2795
|
if (this.char() === 125)
|
2796
|
-
return this.bump(), this.error(
|
2796
|
+
return this.bump(), this.error(v.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
2797
2797
|
var i = this.parseIdentifierIfPossible().value;
|
2798
2798
|
if (!i)
|
2799
|
-
return this.error(
|
2799
|
+
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
2800
2800
|
if (this.bumpSpace(), this.isEOF())
|
2801
|
-
return this.error(
|
2801
|
+
return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
2802
2802
|
switch (this.char()) {
|
2803
2803
|
case 125:
|
2804
2804
|
return this.bump(), {
|
@@ -2806,25 +2806,25 @@ var ni = (
|
|
2806
2806
|
type: w.argument,
|
2807
2807
|
// value does not include the opening and closing braces.
|
2808
2808
|
value: i,
|
2809
|
-
location:
|
2809
|
+
location: y(n, this.clonePosition())
|
2810
2810
|
},
|
2811
2811
|
err: null
|
2812
2812
|
};
|
2813
2813
|
case 44:
|
2814
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
2814
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2815
2815
|
default:
|
2816
|
-
return this.error(
|
2816
|
+
return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
2817
2817
|
}
|
2818
2818
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2819
2819
|
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
2820
2820
|
this.bumpTo(i);
|
2821
|
-
var o = this.clonePosition(), s =
|
2821
|
+
var o = this.clonePosition(), s = y(t, o);
|
2822
2822
|
return { value: n, location: s };
|
2823
2823
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2824
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
2824
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
2825
2825
|
switch (a) {
|
2826
2826
|
case "":
|
2827
|
-
return this.error(
|
2827
|
+
return this.error(v.EXPECT_ARGUMENT_TYPE, y(s, u));
|
2828
2828
|
case "number":
|
2829
2829
|
case "date":
|
2830
2830
|
case "time": {
|
@@ -2832,19 +2832,19 @@ var ni = (
|
|
2832
2832
|
var h = null;
|
2833
2833
|
if (this.bumpIf(",")) {
|
2834
2834
|
this.bumpSpace();
|
2835
|
-
var
|
2835
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2836
2836
|
if (c.err)
|
2837
2837
|
return c;
|
2838
2838
|
var f = ri(c.val);
|
2839
2839
|
if (f.length === 0)
|
2840
|
-
return this.error(
|
2841
|
-
var m =
|
2840
|
+
return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
2841
|
+
var m = y(l, this.clonePosition());
|
2842
2842
|
h = { style: f, styleLocation: m };
|
2843
2843
|
}
|
2844
2844
|
var d = this.tryParseArgumentClose(i);
|
2845
2845
|
if (d.err)
|
2846
2846
|
return d;
|
2847
|
-
var g =
|
2847
|
+
var g = y(i, this.clonePosition());
|
2848
2848
|
if (h && gt(h?.style, "::", 0)) {
|
2849
2849
|
var p = ti(h.style.slice(2));
|
2850
2850
|
if (a === "number") {
|
@@ -2855,7 +2855,7 @@ var ni = (
|
|
2855
2855
|
};
|
2856
2856
|
} else {
|
2857
2857
|
if (p.length === 0)
|
2858
|
-
return this.error(
|
2858
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
|
2859
2859
|
var S = p;
|
2860
2860
|
this.locale && (S = kn(p, this.locale));
|
2861
2861
|
var f = {
|
@@ -2885,14 +2885,14 @@ var ni = (
|
|
2885
2885
|
case "select": {
|
2886
2886
|
var P = this.clonePosition();
|
2887
2887
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2888
|
-
return this.error(
|
2888
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(P, x({}, P)));
|
2889
2889
|
this.bumpSpace();
|
2890
2890
|
var $ = this.parseIdentifierIfPossible(), B = 0;
|
2891
2891
|
if (a !== "select" && $.value === "offset") {
|
2892
2892
|
if (!this.bumpIf(":"))
|
2893
|
-
return this.error(
|
2893
|
+
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
2894
2894
|
this.bumpSpace();
|
2895
|
-
var c = this.tryParseDecimalInteger(
|
2895
|
+
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2896
2896
|
if (c.err)
|
2897
2897
|
return c;
|
2898
2898
|
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), B = c.val;
|
@@ -2903,12 +2903,12 @@ var ni = (
|
|
2903
2903
|
var d = this.tryParseArgumentClose(i);
|
2904
2904
|
if (d.err)
|
2905
2905
|
return d;
|
2906
|
-
var ie =
|
2906
|
+
var ie = y(i, this.clonePosition());
|
2907
2907
|
return a === "select" ? {
|
2908
2908
|
val: {
|
2909
2909
|
type: w.select,
|
2910
2910
|
value: n,
|
2911
|
-
options:
|
2911
|
+
options: vt(j.val),
|
2912
2912
|
location: ie
|
2913
2913
|
},
|
2914
2914
|
err: null
|
@@ -2916,7 +2916,7 @@ var ni = (
|
|
2916
2916
|
val: {
|
2917
2917
|
type: w.plural,
|
2918
2918
|
value: n,
|
2919
|
-
options:
|
2919
|
+
options: vt(j.val),
|
2920
2920
|
offset: B,
|
2921
2921
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
2922
2922
|
location: ie
|
@@ -2925,10 +2925,10 @@ var ni = (
|
|
2925
2925
|
};
|
2926
2926
|
}
|
2927
2927
|
default:
|
2928
|
-
return this.error(
|
2928
|
+
return this.error(v.INVALID_ARGUMENT_TYPE, y(s, u));
|
2929
2929
|
}
|
2930
2930
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2931
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
2931
|
+
return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2932
2932
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2933
2933
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2934
2934
|
var n = this.char();
|
@@ -2937,7 +2937,7 @@ var ni = (
|
|
2937
2937
|
this.bump();
|
2938
2938
|
var i = this.clonePosition();
|
2939
2939
|
if (!this.bumpUntil("'"))
|
2940
|
-
return this.error(
|
2940
|
+
return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
2941
2941
|
this.bump();
|
2942
2942
|
break;
|
2943
2943
|
}
|
@@ -2969,7 +2969,7 @@ var ni = (
|
|
2969
2969
|
try {
|
2970
2970
|
n = $n(t);
|
2971
2971
|
} catch {
|
2972
|
-
return this.error(
|
2972
|
+
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
2973
2973
|
}
|
2974
2974
|
return {
|
2975
2975
|
val: {
|
@@ -2981,23 +2981,23 @@ var ni = (
|
|
2981
2981
|
err: null
|
2982
2982
|
};
|
2983
2983
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2984
|
-
for (var o, s = !1, a = [],
|
2984
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), h = i.value, l = i.location; ; ) {
|
2985
2985
|
if (h.length === 0) {
|
2986
2986
|
var c = this.clonePosition();
|
2987
2987
|
if (r !== "select" && this.bumpIf("=")) {
|
2988
|
-
var f = this.tryParseDecimalInteger(
|
2988
|
+
var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2989
2989
|
if (f.err)
|
2990
2990
|
return f;
|
2991
|
-
|
2991
|
+
l = y(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2992
2992
|
} else
|
2993
2993
|
break;
|
2994
2994
|
}
|
2995
|
-
if (
|
2996
|
-
return this.error(r === "select" ?
|
2995
|
+
if (u.has(h))
|
2996
|
+
return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
2997
2997
|
h === "other" && (s = !0), this.bumpSpace();
|
2998
2998
|
var m = this.clonePosition();
|
2999
2999
|
if (!this.bumpIf("{"))
|
3000
|
-
return this.error(r === "select" ?
|
3000
|
+
return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
3001
3001
|
var d = this.parseMessage(t + 1, r, n);
|
3002
3002
|
if (d.err)
|
3003
3003
|
return d;
|
@@ -3008,11 +3008,11 @@ var ni = (
|
|
3008
3008
|
h,
|
3009
3009
|
{
|
3010
3010
|
value: d.val,
|
3011
|
-
location:
|
3011
|
+
location: y(m, this.clonePosition())
|
3012
3012
|
}
|
3013
|
-
]),
|
3013
|
+
]), u.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, l = o.location;
|
3014
3014
|
}
|
3015
|
-
return a.length === 0 ? this.error(r === "select" ?
|
3015
|
+
return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3016
3016
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3017
3017
|
var n = 1, i = this.clonePosition();
|
3018
3018
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3023,8 +3023,8 @@ var ni = (
|
|
3023
3023
|
else
|
3024
3024
|
break;
|
3025
3025
|
}
|
3026
|
-
var
|
3027
|
-
return o ? (s *= n, Kn(s) ? { val: s, err: null } : this.error(r,
|
3026
|
+
var u = y(i, this.clonePosition());
|
3027
|
+
return o ? (s *= n, Kn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3028
3028
|
}, e.prototype.offset = function() {
|
3029
3029
|
return this.position.offset;
|
3030
3030
|
}, e.prototype.isEOF = function() {
|
@@ -3117,7 +3117,7 @@ function ai(e, t) {
|
|
3117
3117
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3118
3118
|
var r = new ni(e, t).parse();
|
3119
3119
|
if (r.err) {
|
3120
|
-
var n = SyntaxError(
|
3120
|
+
var n = SyntaxError(v[r.err.kind]);
|
3121
3121
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3122
3122
|
}
|
3123
3123
|
return t?.captureLocation || Qe(r.val), r.val;
|
@@ -3147,7 +3147,7 @@ var Pe = (
|
|
3147
3147
|
}
|
3148
3148
|
return t;
|
3149
3149
|
}(Pe)
|
3150
|
-
),
|
3150
|
+
), li = (
|
3151
3151
|
/** @class */
|
3152
3152
|
function(e) {
|
3153
3153
|
U(t, e);
|
@@ -3156,7 +3156,7 @@ var Pe = (
|
|
3156
3156
|
}
|
3157
3157
|
return t;
|
3158
3158
|
}(Pe)
|
3159
|
-
),
|
3159
|
+
), ui = (
|
3160
3160
|
/** @class */
|
3161
3161
|
function(e) {
|
3162
3162
|
U(t, e);
|
@@ -3186,61 +3186,61 @@ function ge(e, t, r, n, i, o, s) {
|
|
3186
3186
|
value: e[0].value
|
3187
3187
|
}
|
3188
3188
|
];
|
3189
|
-
for (var a = [],
|
3190
|
-
var
|
3191
|
-
if (dt(
|
3189
|
+
for (var a = [], u = 0, h = e; u < h.length; u++) {
|
3190
|
+
var l = h[u];
|
3191
|
+
if (dt(l)) {
|
3192
3192
|
a.push({
|
3193
3193
|
type: A.literal,
|
3194
|
-
value:
|
3194
|
+
value: l.value
|
3195
3195
|
});
|
3196
3196
|
continue;
|
3197
3197
|
}
|
3198
|
-
if (Ln(
|
3198
|
+
if (Ln(l)) {
|
3199
3199
|
typeof o == "number" && a.push({
|
3200
3200
|
type: A.literal,
|
3201
3201
|
value: r.getNumberFormat(t).format(o)
|
3202
3202
|
});
|
3203
3203
|
continue;
|
3204
3204
|
}
|
3205
|
-
var c =
|
3205
|
+
var c = l.value;
|
3206
3206
|
if (!(i && c in i))
|
3207
|
-
throw new
|
3207
|
+
throw new ui(c, s);
|
3208
3208
|
var f = i[c];
|
3209
|
-
if (In(
|
3209
|
+
if (In(l)) {
|
3210
3210
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
3211
3211
|
type: typeof f == "string" ? A.literal : A.object,
|
3212
3212
|
value: f
|
3213
3213
|
});
|
3214
3214
|
continue;
|
3215
3215
|
}
|
3216
|
-
if (Qt(
|
3217
|
-
var m = typeof
|
3216
|
+
if (Qt(l)) {
|
3217
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Ve(l.style) ? l.style.parsedOptions : void 0;
|
3218
3218
|
a.push({
|
3219
3219
|
type: A.literal,
|
3220
3220
|
value: r.getDateTimeFormat(t, m).format(f)
|
3221
3221
|
});
|
3222
3222
|
continue;
|
3223
3223
|
}
|
3224
|
-
if (Jt(
|
3225
|
-
var m = typeof
|
3224
|
+
if (Jt(l)) {
|
3225
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Ve(l.style) ? l.style.parsedOptions : n.time.medium;
|
3226
3226
|
a.push({
|
3227
3227
|
type: A.literal,
|
3228
3228
|
value: r.getDateTimeFormat(t, m).format(f)
|
3229
3229
|
});
|
3230
3230
|
continue;
|
3231
3231
|
}
|
3232
|
-
if (Zt(
|
3233
|
-
var m = typeof
|
3232
|
+
if (Zt(l)) {
|
3233
|
+
var m = typeof l.style == "string" ? n.number[l.style] : er(l.style) ? l.style.parsedOptions : void 0;
|
3234
3234
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
3235
3235
|
type: A.literal,
|
3236
3236
|
value: r.getNumberFormat(t, m).format(f)
|
3237
3237
|
});
|
3238
3238
|
continue;
|
3239
3239
|
}
|
3240
|
-
if (Kt(
|
3241
|
-
var d =
|
3240
|
+
if (Kt(l)) {
|
3241
|
+
var d = l.children, g = l.value, p = i[g];
|
3242
3242
|
if (!ci(p))
|
3243
|
-
throw new
|
3243
|
+
throw new li(g, "function", s);
|
3244
3244
|
var S = ge(d, t, r, n, i, o), _ = p(S.map(function(B) {
|
3245
3245
|
return B.value;
|
3246
3246
|
}));
|
@@ -3251,26 +3251,26 @@ function ge(e, t, r, n, i, o, s) {
|
|
3251
3251
|
};
|
3252
3252
|
}));
|
3253
3253
|
}
|
3254
|
-
if (Yt(
|
3255
|
-
var P =
|
3254
|
+
if (Yt(l)) {
|
3255
|
+
var P = l.options[f] || l.options.other;
|
3256
3256
|
if (!P)
|
3257
|
-
throw new _t(
|
3257
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
3258
3258
|
a.push.apply(a, ge(P.value, t, r, n, i));
|
3259
3259
|
continue;
|
3260
3260
|
}
|
3261
|
-
if (qt(
|
3262
|
-
var P =
|
3261
|
+
if (qt(l)) {
|
3262
|
+
var P = l.options["=".concat(f)];
|
3263
3263
|
if (!P) {
|
3264
3264
|
if (!Intl.PluralRules)
|
3265
3265
|
throw new Pe(`Intl.PluralRules is not available in this environment.
|
3266
3266
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3267
3267
|
`, q.MISSING_INTL_API, s);
|
3268
|
-
var $ = r.getPluralRules(t, { type:
|
3269
|
-
P =
|
3268
|
+
var $ = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
3269
|
+
P = l.options[$] || l.options.other;
|
3270
3270
|
}
|
3271
3271
|
if (!P)
|
3272
|
-
throw new _t(
|
3273
|
-
a.push.apply(a, ge(P.value, t, r, n, i, f - (
|
3272
|
+
throw new _t(l.value, f, Object.keys(l.options), s);
|
3273
|
+
a.push.apply(a, ge(P.value, t, r, n, i, f - (l.offset || 0)));
|
3274
3274
|
continue;
|
3275
3275
|
}
|
3276
3276
|
}
|
@@ -3342,20 +3342,20 @@ var mi = (
|
|
3342
3342
|
number: {},
|
3343
3343
|
dateTime: {},
|
3344
3344
|
pluralRules: {}
|
3345
|
-
}, this.format = function(
|
3346
|
-
var h = o.formatToParts(
|
3345
|
+
}, this.format = function(u) {
|
3346
|
+
var h = o.formatToParts(u);
|
3347
3347
|
if (h.length === 1)
|
3348
3348
|
return h[0].value;
|
3349
|
-
var
|
3349
|
+
var l = h.reduce(function(c, f) {
|
3350
3350
|
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3351
3351
|
}, []);
|
3352
|
-
return
|
3353
|
-
}, this.formatToParts = function(
|
3354
|
-
return ge(o.ast, o.locales, o.formatters, o.formats,
|
3352
|
+
return l.length <= 1 ? l[0] || "" : l;
|
3353
|
+
}, this.formatToParts = function(u) {
|
3354
|
+
return ge(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
3355
3355
|
}, this.resolvedOptions = function() {
|
3356
|
-
var
|
3356
|
+
var u;
|
3357
3357
|
return {
|
3358
|
-
locale: ((
|
3358
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
3359
3359
|
};
|
3360
3360
|
}, this.getAst = function() {
|
3361
3361
|
return o.ast;
|
@@ -3465,30 +3465,30 @@ function bi(e, t) {
|
|
3465
3465
|
n = void 0;
|
3466
3466
|
return n;
|
3467
3467
|
}
|
3468
|
-
const D = {}, gi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r),
|
3468
|
+
const D = {}, gi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), lr = (e, t) => {
|
3469
3469
|
if (t == null)
|
3470
3470
|
return;
|
3471
3471
|
if (t in D && e in D[t])
|
3472
3472
|
return D[t][e];
|
3473
3473
|
const r = Be(t);
|
3474
3474
|
for (let n = 0; n < r.length; n++) {
|
3475
|
-
const i = r[n], o =
|
3475
|
+
const i = r[n], o = yi(i, e);
|
3476
3476
|
if (o)
|
3477
3477
|
return gi(e, t, o);
|
3478
3478
|
}
|
3479
3479
|
};
|
3480
3480
|
let rt;
|
3481
3481
|
const ce = Ce({});
|
3482
|
-
function
|
3482
|
+
function vi(e) {
|
3483
3483
|
return rt[e] || null;
|
3484
3484
|
}
|
3485
|
-
function
|
3485
|
+
function ur(e) {
|
3486
3486
|
return e in rt;
|
3487
3487
|
}
|
3488
|
-
function
|
3489
|
-
if (!
|
3488
|
+
function yi(e, t) {
|
3489
|
+
if (!ur(e))
|
3490
3490
|
return null;
|
3491
|
-
const r =
|
3491
|
+
const r = vi(e);
|
3492
3492
|
return bi(r, t);
|
3493
3493
|
}
|
3494
3494
|
function _i(e) {
|
@@ -3497,7 +3497,7 @@ function _i(e) {
|
|
3497
3497
|
const t = Be(e);
|
3498
3498
|
for (let r = 0; r < t.length; r++) {
|
3499
3499
|
const n = t[r];
|
3500
|
-
if (
|
3500
|
+
if (ur(n))
|
3501
3501
|
return n;
|
3502
3502
|
}
|
3503
3503
|
}
|
@@ -3509,12 +3509,12 @@ te(
|
|
3509
3509
|
([e]) => Object.keys(e)
|
3510
3510
|
);
|
3511
3511
|
ce.subscribe((e) => rt = e);
|
3512
|
-
const
|
3512
|
+
const ve = {};
|
3513
3513
|
function xi(e, t) {
|
3514
|
-
|
3514
|
+
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
3515
3515
|
}
|
3516
3516
|
function cr(e) {
|
3517
|
-
return
|
3517
|
+
return ve[e];
|
3518
3518
|
}
|
3519
3519
|
function Ei(e) {
|
3520
3520
|
return Be(e).map((t) => {
|
@@ -3713,25 +3713,25 @@ const he = (e, t) => {
|
|
3713
3713
|
typeof e == "object" && (s = e, e = s.id);
|
3714
3714
|
const {
|
3715
3715
|
values: a,
|
3716
|
-
locale:
|
3716
|
+
locale: u = k(),
|
3717
3717
|
default: h
|
3718
3718
|
} = s;
|
3719
|
-
if (
|
3719
|
+
if (u == null)
|
3720
3720
|
throw new Error(
|
3721
3721
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3722
3722
|
);
|
3723
|
-
let
|
3724
|
-
if (!
|
3725
|
-
|
3726
|
-
else if (typeof
|
3723
|
+
let l = lr(e, u);
|
3724
|
+
if (!l)
|
3725
|
+
l = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
3726
|
+
else if (typeof l != "string")
|
3727
3727
|
return console.warn(
|
3728
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
3729
|
-
),
|
3728
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
3729
|
+
), l;
|
3730
3730
|
if (!a)
|
3731
|
-
return
|
3732
|
-
let c =
|
3731
|
+
return l;
|
3732
|
+
let c = l;
|
3733
3733
|
try {
|
3734
|
-
c = ki(
|
3734
|
+
c = ki(l, u).format(a);
|
3735
3735
|
} catch (f) {
|
3736
3736
|
f instanceof Error && console.warn(
|
3737
3737
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3739,7 +3739,7 @@ const he = (e, t) => {
|
|
3739
3739
|
);
|
3740
3740
|
}
|
3741
3741
|
return c;
|
3742
|
-
}, Vi = (e, t) => Fi(t).format(e), Xi = (e, t) => Di(t).format(e), Wi = (e, t) => Ui(t).format(e), zi = (e, t = k()) =>
|
3742
|
+
}, Vi = (e, t) => Fi(t).format(e), Xi = (e, t) => Di(t).format(e), Wi = (e, t) => Ui(t).format(e), zi = (e, t = k()) => lr(e, t), Zi = te([re, ce], () => ji);
|
3743
3743
|
te([re], () => Vi);
|
3744
3744
|
te([re], () => Xi);
|
3745
3745
|
te([re], () => Wi);
|
@@ -3883,25 +3883,25 @@ var Oe = function() {
|
|
3883
3883
|
if (s)
|
3884
3884
|
if (this._parentage = null, Array.isArray(s))
|
3885
3885
|
try {
|
3886
|
-
for (var a = ke(s),
|
3887
|
-
var h =
|
3886
|
+
for (var a = ke(s), u = a.next(); !u.done; u = a.next()) {
|
3887
|
+
var h = u.value;
|
3888
3888
|
h.remove(this);
|
3889
3889
|
}
|
3890
3890
|
} catch (g) {
|
3891
3891
|
t = { error: g };
|
3892
3892
|
} finally {
|
3893
3893
|
try {
|
3894
|
-
|
3894
|
+
u && !u.done && (r = a.return) && r.call(a);
|
3895
3895
|
} finally {
|
3896
3896
|
if (t) throw t.error;
|
3897
3897
|
}
|
3898
3898
|
}
|
3899
3899
|
else
|
3900
3900
|
s.remove(this);
|
3901
|
-
var
|
3902
|
-
if (G(
|
3901
|
+
var l = this.initialTeardown;
|
3902
|
+
if (G(l))
|
3903
3903
|
try {
|
3904
|
-
|
3904
|
+
l();
|
3905
3905
|
} catch (g) {
|
3906
3906
|
o = g instanceof Ue ? g.errors : [g];
|
3907
3907
|
}
|
@@ -3986,10 +3986,10 @@ function qi(e) {
|
|
3986
3986
|
}
|
3987
3987
|
function Pt() {
|
3988
3988
|
}
|
3989
|
-
function
|
3989
|
+
function ye(e) {
|
3990
3990
|
e();
|
3991
3991
|
}
|
3992
|
-
var
|
3992
|
+
var vr = function(e) {
|
3993
3993
|
U(t, e);
|
3994
3994
|
function t(r) {
|
3995
3995
|
var n = e.call(this) || this;
|
@@ -4062,7 +4062,7 @@ var yr = function(e) {
|
|
4062
4062
|
} : s = r, o.destination = new Ki(s), o;
|
4063
4063
|
}
|
4064
4064
|
return t;
|
4065
|
-
}(
|
4065
|
+
}(vr);
|
4066
4066
|
function me(e) {
|
4067
4067
|
qi(e);
|
4068
4068
|
}
|
@@ -4096,9 +4096,9 @@ var Bt = function() {
|
|
4096
4096
|
return r.source = this, r.operator = t, r;
|
4097
4097
|
}, e.prototype.subscribe = function(t, r, n) {
|
4098
4098
|
var i = this, o = so(t) ? t : new Ke(t, r, n);
|
4099
|
-
return
|
4100
|
-
var s = i, a = s.operator,
|
4101
|
-
o.add(a ? a.call(o,
|
4099
|
+
return ye(function() {
|
4100
|
+
var s = i, a = s.operator, u = s.source;
|
4101
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
4102
4102
|
}), o;
|
4103
4103
|
}, e.prototype._trySubscribe = function(t) {
|
4104
4104
|
try {
|
@@ -4113,8 +4113,8 @@ var Bt = function() {
|
|
4113
4113
|
next: function(a) {
|
4114
4114
|
try {
|
4115
4115
|
t(a);
|
4116
|
-
} catch (
|
4117
|
-
o(
|
4116
|
+
} catch (u) {
|
4117
|
+
o(u), s.unsubscribe();
|
4118
4118
|
}
|
4119
4119
|
},
|
4120
4120
|
error: o,
|
@@ -4155,13 +4155,13 @@ function oo(e) {
|
|
4155
4155
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
4156
4156
|
}
|
4157
4157
|
function so(e) {
|
4158
|
-
return e && e instanceof
|
4158
|
+
return e && e instanceof vr || oo(e) && gr(e);
|
4159
4159
|
}
|
4160
4160
|
var ao = mr(function(e) {
|
4161
4161
|
return function() {
|
4162
4162
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
4163
4163
|
};
|
4164
|
-
}),
|
4164
|
+
}), yr = function(e) {
|
4165
4165
|
U(t, e);
|
4166
4166
|
function t() {
|
4167
4167
|
var r = e.call(this) || this;
|
@@ -4175,14 +4175,14 @@ var ao = mr(function(e) {
|
|
4175
4175
|
throw new ao();
|
4176
4176
|
}, t.prototype.next = function(r) {
|
4177
4177
|
var n = this;
|
4178
|
-
|
4178
|
+
ye(function() {
|
4179
4179
|
var i, o;
|
4180
4180
|
if (n._throwIfClosed(), !n.isStopped) {
|
4181
4181
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
4182
4182
|
try {
|
4183
4183
|
for (var s = ke(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
4184
|
-
var
|
4185
|
-
|
4184
|
+
var u = a.value;
|
4185
|
+
u.next(r);
|
4186
4186
|
}
|
4187
4187
|
} catch (h) {
|
4188
4188
|
i = { error: h };
|
@@ -4197,7 +4197,7 @@ var ao = mr(function(e) {
|
|
4197
4197
|
});
|
4198
4198
|
}, t.prototype.error = function(r) {
|
4199
4199
|
var n = this;
|
4200
|
-
|
4200
|
+
ye(function() {
|
4201
4201
|
if (n._throwIfClosed(), !n.isStopped) {
|
4202
4202
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
4203
4203
|
for (var i = n.observers; i.length; )
|
@@ -4206,7 +4206,7 @@ var ao = mr(function(e) {
|
|
4206
4206
|
});
|
4207
4207
|
}, t.prototype.complete = function() {
|
4208
4208
|
var r = this;
|
4209
|
-
|
4209
|
+
ye(function() {
|
4210
4210
|
if (r._throwIfClosed(), !r.isStopped) {
|
4211
4211
|
r.isStopped = !0;
|
4212
4212
|
for (var n = r.observers; n.length; )
|
@@ -4259,12 +4259,12 @@ var ao = mr(function(e) {
|
|
4259
4259
|
var n, i;
|
4260
4260
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : br;
|
4261
4261
|
}, t;
|
4262
|
-
}(
|
4262
|
+
}(yr), _r = {
|
4263
4263
|
now: function() {
|
4264
4264
|
return (_r.delegate || Date).now();
|
4265
4265
|
},
|
4266
4266
|
delegate: void 0
|
4267
|
-
},
|
4267
|
+
}, lo = function(e) {
|
4268
4268
|
U(t, e);
|
4269
4269
|
function t(r, n, i) {
|
4270
4270
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = _r);
|
@@ -4272,30 +4272,30 @@ var ao = mr(function(e) {
|
|
4272
4272
|
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;
|
4273
4273
|
}
|
4274
4274
|
return t.prototype.next = function(r) {
|
4275
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
4276
|
-
i || (o.push(r), !s && o.push(a.now() +
|
4275
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
|
4276
|
+
i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
|
4277
4277
|
}, t.prototype._subscribe = function(r) {
|
4278
4278
|
this._throwIfClosed(), this._trimBuffer();
|
4279
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
4280
|
-
r.next(a[
|
4279
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
|
4280
|
+
r.next(a[u]);
|
4281
4281
|
return this._checkFinalizedStatuses(r), n;
|
4282
4282
|
}, t.prototype._trimBuffer = function() {
|
4283
4283
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
4284
4284
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
4285
|
-
for (var
|
4286
|
-
h =
|
4285
|
+
for (var u = i.now(), h = 0, l = 1; l < o.length && o[l] <= u; l += 2)
|
4286
|
+
h = l;
|
4287
4287
|
h && o.splice(0, h + 1);
|
4288
4288
|
}
|
4289
4289
|
}, t;
|
4290
|
-
}(
|
4291
|
-
const It = [], Lt = {},
|
4290
|
+
}(yr);
|
4291
|
+
const It = [], Lt = {}, uo = (e, t = 0) => {
|
4292
4292
|
if (It.indexOf(e) == -1) {
|
4293
|
-
const r = new
|
4293
|
+
const r = new lo(t);
|
4294
4294
|
Lt[e] = r, It.push(e);
|
4295
4295
|
}
|
4296
4296
|
return Lt[e];
|
4297
4297
|
};
|
4298
|
-
window.emWidgets = { topic:
|
4298
|
+
window.emWidgets = { topic: uo };
|
4299
4299
|
const ho = (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));
|
4300
4300
|
function co(e) {
|
4301
4301
|
$r(e, "svelte-1myc38z", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
@@ -4318,7 +4318,7 @@ function fo(e) {
|
|
4318
4318
|
/*$_*/
|
4319
4319
|
e[11]("collections")
|
4320
4320
|
)) + ""
|
4321
|
-
), o, s, a,
|
4321
|
+
), o, s, a, u, h, l, c = (
|
4322
4322
|
/*numberOfSlides*/
|
4323
4323
|
e[8] > /*numberOfVisibleSlides*/
|
4324
4324
|
e[9] && Rt(e)
|
@@ -4330,24 +4330,24 @@ function fo(e) {
|
|
4330
4330
|
m[d] = Ut(Nt(e, f, d));
|
4331
4331
|
return {
|
4332
4332
|
c() {
|
4333
|
-
t = H("div"), r = H("div"), n = H("p"), o = He(i), s = F(), c && c.c(), a = F(),
|
4333
|
+
t = H("div"), r = H("div"), n = H("p"), o = He(i), s = F(), c && c.c(), a = F(), u = H("div");
|
4334
4334
|
for (let d = 0; d < m.length; d += 1)
|
4335
4335
|
m[d].c();
|
4336
|
-
E(n, "class", "Title"), E(r, "class", "CategoriesHeader"), E(
|
4336
|
+
E(n, "class", "Title"), E(r, "class", "CategoriesHeader"), E(u, "class", "CategoriesSlider"), Ee(() => (
|
4337
4337
|
/*div1_elementresize_handler*/
|
4338
|
-
e[27].call(
|
4339
|
-
)), E(t, "class",
|
4338
|
+
e[27].call(u)
|
4339
|
+
)), E(t, "class", l = "CasinoCollectionsProviders " + /*mobile*/
|
4340
4340
|
(e[10] ? "Mobile" : "") + " " + /*type*/
|
4341
4341
|
(e[0] === "vendor" ? "Providers" : "Collections"));
|
4342
4342
|
},
|
4343
4343
|
m(d, g) {
|
4344
|
-
R(d, t, g), T(t, r), T(r, n), T(n, o), T(r, s), c && c.m(r, null), T(t, a), T(t,
|
4344
|
+
R(d, t, g), T(t, r), T(r, n), T(n, o), T(r, s), c && c.m(r, null), T(t, a), T(t, u);
|
4345
4345
|
for (let p = 0; p < m.length; p += 1)
|
4346
|
-
m[p] && m[p].m(
|
4347
|
-
e[26](
|
4348
|
-
|
4346
|
+
m[p] && m[p].m(u, null);
|
4347
|
+
e[26](u), h = jr(
|
4348
|
+
u,
|
4349
4349
|
/*div1_elementresize_handler*/
|
4350
|
-
e[27].bind(
|
4350
|
+
e[27].bind(u)
|
4351
4351
|
);
|
4352
4352
|
},
|
4353
4353
|
p(d, g) {
|
@@ -4370,16 +4370,16 @@ function fo(e) {
|
|
4370
4370
|
let p;
|
4371
4371
|
for (p = 0; p < f.length; p += 1) {
|
4372
4372
|
const S = Nt(d, f, p);
|
4373
|
-
m[p] ? m[p].p(S, g) : (m[p] = Ut(S), m[p].c(), m[p].m(
|
4373
|
+
m[p] ? m[p].p(S, g) : (m[p] = Ut(S), m[p].c(), m[p].m(u, null));
|
4374
4374
|
}
|
4375
4375
|
for (; p < m.length; p += 1)
|
4376
4376
|
m[p].d(1);
|
4377
4377
|
m.length = f.length;
|
4378
4378
|
}
|
4379
4379
|
g[0] & /*mobile, type*/
|
4380
|
-
1025 &&
|
4380
|
+
1025 && l !== (l = "CasinoCollectionsProviders " + /*mobile*/
|
4381
4381
|
(d[10] ? "Mobile" : "") + " " + /*type*/
|
4382
|
-
(d[0] === "vendor" ? "Providers" : "Collections")) && E(t, "class",
|
4382
|
+
(d[0] === "vendor" ? "Providers" : "Collections")) && E(t, "class", l);
|
4383
4383
|
},
|
4384
4384
|
d(d) {
|
4385
4385
|
d && N(t), c && c.d(), jt(m, d), e[26](null), h();
|
@@ -4407,8 +4407,8 @@ function Rt(e) {
|
|
4407
4407
|
c() {
|
4408
4408
|
t = H("div"), r = H("button"), r.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n = F(), i = H("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>', E(t, "class", "ButtonsContainer");
|
4409
4409
|
},
|
4410
|
-
m(a,
|
4411
|
-
R(a, t,
|
4410
|
+
m(a, u) {
|
4411
|
+
R(a, t, u), T(t, r), T(t, n), T(t, i), o || (s = [
|
4412
4412
|
Q(
|
4413
4413
|
r,
|
4414
4414
|
"click",
|
@@ -4500,7 +4500,7 @@ function $t(e) {
|
|
4500
4500
|
};
|
4501
4501
|
}
|
4502
4502
|
function Gt(e) {
|
4503
|
-
let t, r, n, i, o, s, a,
|
4503
|
+
let t, r, n, i, o, s, a, u;
|
4504
4504
|
function h() {
|
4505
4505
|
return (
|
4506
4506
|
/*click_handler_2*/
|
@@ -4510,18 +4510,18 @@ function Gt(e) {
|
|
4510
4510
|
)
|
4511
4511
|
);
|
4512
4512
|
}
|
4513
|
-
let
|
4513
|
+
let l = (
|
4514
4514
|
/*collectionprovidersgamenames*/
|
4515
4515
|
e[2] == "true" && $t(e)
|
4516
4516
|
);
|
4517
4517
|
return {
|
4518
4518
|
c() {
|
4519
|
-
t = H("div"), r = H("img"), o = F(),
|
4519
|
+
t = H("div"), r = H("img"), o = F(), l && l.c(), s = F(), E(r, "class", "CategorySlideGameImage"), _e(r.src, n = /*game*/
|
4520
4520
|
e[44].defaultThumbnail) || E(r, "src", n), E(r, "alt", i = /*game*/
|
4521
4521
|
e[44].name), E(t, "class", "CategorySlideGames");
|
4522
4522
|
},
|
4523
4523
|
m(c, f) {
|
4524
|
-
R(c, t, f), T(t, r), T(t, o),
|
4524
|
+
R(c, t, f), T(t, r), T(t, o), l && l.m(t, null), T(t, s), a || (u = Q(r, "click", Dr(h)), a = !0);
|
4525
4525
|
},
|
4526
4526
|
p(c, f) {
|
4527
4527
|
e = c, f[0] & /*gameCategories*/
|
@@ -4529,16 +4529,16 @@ function Gt(e) {
|
|
4529
4529
|
e[44].defaultThumbnail) && E(r, "src", n), f[0] & /*gameCategories*/
|
4530
4530
|
8 && i !== (i = /*game*/
|
4531
4531
|
e[44].name) && E(r, "alt", i), /*collectionprovidersgamenames*/
|
4532
|
-
e[2] == "true" ?
|
4532
|
+
e[2] == "true" ? l ? l.p(e, f) : (l = $t(e), l.c(), l.m(t, s)) : l && (l.d(1), l = null);
|
4533
4533
|
},
|
4534
4534
|
d(c) {
|
4535
|
-
c && N(t),
|
4535
|
+
c && N(t), l && l.d(), a = !1, u();
|
4536
4536
|
}
|
4537
4537
|
};
|
4538
4538
|
}
|
4539
4539
|
function Ut(e) {
|
4540
|
-
let t, r, n, i, o, s, a,
|
4541
|
-
function
|
4540
|
+
let t, r, n, i, o, s, a, u, h;
|
4541
|
+
function l(p, S) {
|
4542
4542
|
if (
|
4543
4543
|
/*titletype*/
|
4544
4544
|
p[1] == "logo"
|
@@ -4548,7 +4548,7 @@ function Ut(e) {
|
|
4548
4548
|
p[1] == "title"
|
4549
4549
|
) return mo;
|
4550
4550
|
}
|
4551
|
-
let c =
|
4551
|
+
let c = l(e), f = c && c(e), m = Se(
|
4552
4552
|
/*category*/
|
4553
4553
|
e[41].games
|
4554
4554
|
), d = [];
|
@@ -4576,10 +4576,10 @@ function Ut(e) {
|
|
4576
4576
|
R(p, t, S), T(t, r), T(r, n), f && f.m(n, null), T(r, i), T(r, o);
|
4577
4577
|
for (let _ = 0; _ < d.length; _ += 1)
|
4578
4578
|
d[_] && d[_].m(o, null);
|
4579
|
-
T(t, a),
|
4579
|
+
T(t, a), u || (h = Q(r, "click", g), u = !0);
|
4580
4580
|
},
|
4581
4581
|
p(p, S) {
|
4582
|
-
if (e = p, c === (c =
|
4582
|
+
if (e = p, c === (c = l(e)) && f ? f.p(e, S) : (f && f.d(1), f = c && c(e), f && (f.c(), f.m(n, null))), S[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
|
4583
4583
|
16396) {
|
4584
4584
|
m = Se(
|
4585
4585
|
/*category*/
|
@@ -4601,7 +4601,7 @@ function Ut(e) {
|
|
4601
4601
|
e[41]?.background + ")");
|
4602
4602
|
},
|
4603
4603
|
d(p) {
|
4604
|
-
p && N(t), f && f.d(), jt(d, p),
|
4604
|
+
p && N(t), f && f.d(), jt(d, p), u = !1, h();
|
4605
4605
|
}
|
4606
4606
|
};
|
4607
4607
|
}
|
@@ -4631,10 +4631,10 @@ function go(e) {
|
|
4631
4631
|
}
|
4632
4632
|
};
|
4633
4633
|
}
|
4634
|
-
function
|
4634
|
+
function vo(e, t, r) {
|
4635
4635
|
let n;
|
4636
4636
|
Rr(e, Zi, (b) => r(11, n = b));
|
4637
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype:
|
4637
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { collectionprovidersgamenames: f = "" } = t, m = [], d = !0, g, p = 0, S = 0, _ = 0, P, $, B, j = window.navigator.userAgent, ie, oe = 0;
|
4638
4638
|
const xr = () => {
|
4639
4639
|
fetch(c).then((C) => C.json()).then((C) => {
|
4640
4640
|
Object.keys(C).forEach((O) => {
|
@@ -4673,7 +4673,7 @@ function yo(e, t, r) {
|
|
4673
4673
|
p === 0 ? p = S - _ : p - _ < -1 ? p = 0 : p--, ot();
|
4674
4674
|
}, at = () => {
|
4675
4675
|
p === S - _ ? p = 0 : S - _ < p + 1 ? p = S - _ : p++, ot();
|
4676
|
-
},
|
4676
|
+
}, lt = (b, C, O, L) => {
|
4677
4677
|
window.postMessage(
|
4678
4678
|
{
|
4679
4679
|
type: "OpenCollectionsProvidersGame",
|
@@ -4687,7 +4687,7 @@ function yo(e, t, r) {
|
|
4687
4687
|
context: "CollectionsProviders",
|
4688
4688
|
gameName: `${O}`
|
4689
4689
|
});
|
4690
|
-
},
|
4690
|
+
}, ut = (b) => {
|
4691
4691
|
window.postMessage(
|
4692
4692
|
{
|
4693
4693
|
type: "OpenCollectionsProvidersCategory",
|
@@ -4701,7 +4701,7 @@ function yo(e, t, r) {
|
|
4701
4701
|
let b = document.createElement("style");
|
4702
4702
|
b.innerHTML = h, B.appendChild(b);
|
4703
4703
|
}, Hr = () => {
|
4704
|
-
let b = new URL(
|
4704
|
+
let b = new URL(l), C = document.createElement("style");
|
4705
4705
|
fetch(b.href).then((O) => O.text()).then((O) => {
|
4706
4706
|
C.innerHTML = O, setTimeout(
|
4707
4707
|
() => {
|
@@ -4714,7 +4714,7 @@ function yo(e, t, r) {
|
|
4714
4714
|
Wr(() => {
|
4715
4715
|
r(10, ie = ho(j));
|
4716
4716
|
});
|
4717
|
-
const Cr = () => st(), Pr = () => at(), Br = (b) =>
|
4717
|
+
const Cr = () => st(), Pr = () => at(), Br = (b) => lt(b.gameId, b.launchUrl, b.name, b.subVendor), Ar = (b) => ut(b.id);
|
4718
4718
|
function Or(b) {
|
4719
4719
|
xe[b ? "unshift" : "push"](() => {
|
4720
4720
|
g = b, r(4, g);
|
@@ -4729,18 +4729,18 @@ function yo(e, t, r) {
|
|
4729
4729
|
});
|
4730
4730
|
}
|
4731
4731
|
return e.$$set = (b) => {
|
4732
|
-
"endpoint" in b && r(16, i = b.endpoint), "datasource" in b && r(17, o = b.datasource), "lang" in b && r(18, s = b.lang), "type" in b && r(0, a = b.type), "titletype" in b && r(1,
|
4732
|
+
"endpoint" in b && r(16, i = b.endpoint), "datasource" in b && r(17, o = b.datasource), "lang" in b && r(18, s = b.lang), "type" in b && r(0, a = b.type), "titletype" in b && r(1, u = b.titletype), "clientstyling" in b && r(19, h = b.clientstyling), "clientstylingurl" in b && r(20, l = b.clientstylingurl), "translationurl" in b && r(21, c = b.translationurl), "collectionprovidersgamenames" in b && r(2, f = b.collectionprovidersgamenames);
|
4733
4733
|
}, e.$$.update = () => {
|
4734
4734
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4735
4735
|
458752 && i && o && s && Er(), e.$$.dirty[0] & /*categoriesSliderWidth, gameCategories, categoriesSlider*/
|
4736
4736
|
88 && oe && m && g && it(), e.$$.dirty[0] & /*lang*/
|
4737
4737
|
262144 && s && wr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4738
4738
|
524320 && h && B && Tr(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4739
|
-
1048608 &&
|
4739
|
+
1048608 && l && B && Hr(), e.$$.dirty[0] & /*translationurl*/
|
4740
4740
|
2097152 && c && xr();
|
4741
4741
|
}, [
|
4742
4742
|
a,
|
4743
|
-
|
4743
|
+
u,
|
4744
4744
|
f,
|
4745
4745
|
m,
|
4746
4746
|
g,
|
@@ -4753,13 +4753,13 @@ function yo(e, t, r) {
|
|
4753
4753
|
n,
|
4754
4754
|
st,
|
4755
4755
|
at,
|
4756
|
-
ut,
|
4757
4756
|
lt,
|
4757
|
+
ut,
|
4758
4758
|
i,
|
4759
4759
|
o,
|
4760
4760
|
s,
|
4761
4761
|
h,
|
4762
|
-
|
4762
|
+
l,
|
4763
4763
|
c,
|
4764
4764
|
Cr,
|
4765
4765
|
Pr,
|
@@ -4770,12 +4770,12 @@ function yo(e, t, r) {
|
|
4770
4770
|
Lr
|
4771
4771
|
];
|
4772
4772
|
}
|
4773
|
-
class
|
4773
|
+
class yo extends on {
|
4774
4774
|
constructor(t) {
|
4775
4775
|
super(), rn(
|
4776
4776
|
this,
|
4777
4777
|
t,
|
4778
|
-
|
4778
|
+
vo,
|
4779
4779
|
go,
|
4780
4780
|
Ft,
|
4781
4781
|
{
|
@@ -4848,7 +4848,7 @@ class vo extends on {
|
|
4848
4848
|
this.$$set({ collectionprovidersgamenames: t }), M();
|
4849
4849
|
}
|
4850
4850
|
}
|
4851
|
-
nn(
|
4851
|
+
nn(yo, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {} }, [], [], !0);
|
4852
4852
|
export {
|
4853
|
-
|
4853
|
+
yo as C
|
4854
4854
|
};
|