@everymatrix/casino-tournaments-thumbnail-games 1.77.10 → 1.77.11
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/{CasinoTournamentsThumbnailGames-Cqhg4sz0.js → CasinoTournamentsThumbnailGames-CBwVI5zd.js} +423 -400
- package/components/{CasinoTournamentsThumbnailGames-Bvd6_cYP.js → CasinoTournamentsThumbnailGames-DKi35Q3Q.js} +987 -964
- package/components/CasinoTournamentsThumbnailGames-wrzgGfuM.cjs +18 -0
- package/es2015/casino-tournaments-thumbnail-games.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-games.js +1 -1
- package/esnext/casino-tournaments-thumbnail-games.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailGames-ERW4wb3k.cjs +0 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../stencil/ui-image-Bn9a7Spu.js";
|
|
2
|
-
function
|
|
2
|
+
function G() {
|
|
3
3
|
}
|
|
4
4
|
function kt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function pt() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
10
|
function oe(e) {
|
|
@@ -17,7 +17,7 @@ function Vt(e, t) {
|
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let de;
|
|
20
|
-
function
|
|
20
|
+
function mt(e, t) {
|
|
21
21
|
return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
|
|
22
22
|
}
|
|
23
23
|
function Ar(e) {
|
|
@@ -27,7 +27,7 @@ function Xt(e, ...t) {
|
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
30
|
-
return
|
|
30
|
+
return G;
|
|
31
31
|
}
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -41,7 +41,7 @@ function x(e, t) {
|
|
|
41
41
|
function Nr(e, t, r) {
|
|
42
42
|
const n = Cr(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
44
|
+
const i = P("style");
|
|
45
45
|
i.id = t, i.textContent = r, Ir(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -62,30 +62,30 @@ function Ir(e, t) {
|
|
|
62
62
|
t
|
|
63
63
|
), t.sheet;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function F(e, t, r) {
|
|
66
66
|
e.insertBefore(t, r || null);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function $(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
71
|
function Wt(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function P(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
78
|
function be(e) {
|
|
79
79
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function D(e) {
|
|
82
82
|
return document.createTextNode(e);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function j() {
|
|
85
|
+
return D(" ");
|
|
86
86
|
}
|
|
87
87
|
function Lr() {
|
|
88
|
-
return
|
|
88
|
+
return D("");
|
|
89
89
|
}
|
|
90
90
|
function ke(e, t, r, n) {
|
|
91
91
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
@@ -100,7 +100,7 @@ function O(e, t, r) {
|
|
|
100
100
|
function Mr(e) {
|
|
101
101
|
return Array.from(e.childNodes);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function X(e, t) {
|
|
104
104
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
105
105
|
t);
|
|
106
106
|
}
|
|
@@ -122,25 +122,25 @@ function zt() {
|
|
|
122
122
|
throw new Error("Function called outside component initialization");
|
|
123
123
|
return ce;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Gr(e) {
|
|
126
126
|
zt().$$.on_mount.push(e);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function $r(e) {
|
|
129
129
|
zt().$$.on_destroy.push(e);
|
|
130
130
|
}
|
|
131
131
|
const K = [], we = [];
|
|
132
132
|
let ee = [];
|
|
133
|
-
const
|
|
133
|
+
const dt = [], Ur = /* @__PURE__ */ Promise.resolve();
|
|
134
134
|
let Ve = !1;
|
|
135
135
|
function Dr() {
|
|
136
|
-
Ve || (Ve = !0, Ur.then(
|
|
136
|
+
Ve || (Ve = !0, Ur.then(Q));
|
|
137
137
|
}
|
|
138
138
|
function Xe(e) {
|
|
139
139
|
ee.push(e);
|
|
140
140
|
}
|
|
141
141
|
const Me = /* @__PURE__ */ new Set();
|
|
142
142
|
let q = 0;
|
|
143
|
-
function
|
|
143
|
+
function Q() {
|
|
144
144
|
if (q !== 0)
|
|
145
145
|
return;
|
|
146
146
|
const e = ce;
|
|
@@ -161,8 +161,8 @@ function z() {
|
|
|
161
161
|
}
|
|
162
162
|
ee.length = 0;
|
|
163
163
|
} while (K.length);
|
|
164
|
-
for (;
|
|
165
|
-
|
|
164
|
+
for (; dt.length; )
|
|
165
|
+
dt.pop()();
|
|
166
166
|
Ve = !1, Me.clear(), he(e);
|
|
167
167
|
}
|
|
168
168
|
function Fr(e) {
|
|
@@ -205,9 +205,9 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
205
205
|
ctx: [],
|
|
206
206
|
// state
|
|
207
207
|
props: o,
|
|
208
|
-
update:
|
|
208
|
+
update: G,
|
|
209
209
|
not_equal: i,
|
|
210
|
-
bound:
|
|
210
|
+
bound: pt(),
|
|
211
211
|
// lifecycle
|
|
212
212
|
on_mount: [],
|
|
213
213
|
on_destroy: [],
|
|
@@ -216,7 +216,7 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
216
216
|
after_update: [],
|
|
217
217
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
218
218
|
// everything else
|
|
219
|
-
callbacks:
|
|
219
|
+
callbacks: pt(),
|
|
220
220
|
dirty: a,
|
|
221
221
|
skip_bound: !1,
|
|
222
222
|
root: t.target || l.$$.root
|
|
@@ -229,10 +229,10 @@ function Zr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
229
229
|
}) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
230
230
|
if (t.hydrate) {
|
|
231
231
|
const f = Mr(t.target);
|
|
232
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
232
|
+
u.fragment && u.fragment.l(f), f.forEach($);
|
|
233
233
|
} else
|
|
234
234
|
u.fragment && u.fragment.c();
|
|
235
|
-
t.intro && Vr(e.$$.fragment), Xr(e, t.target, t.anchor),
|
|
235
|
+
t.intro && Vr(e.$$.fragment), Xr(e, t.target, t.anchor), Q();
|
|
236
236
|
}
|
|
237
237
|
he(l);
|
|
238
238
|
}
|
|
@@ -279,17 +279,17 @@ typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
|
|
|
279
279
|
let o;
|
|
280
280
|
return {
|
|
281
281
|
c: function() {
|
|
282
|
-
o =
|
|
282
|
+
o = P("slot"), i !== "default" && v(o, "name", i);
|
|
283
283
|
},
|
|
284
284
|
/**
|
|
285
285
|
* @param {HTMLElement} target
|
|
286
286
|
* @param {HTMLElement} [anchor]
|
|
287
287
|
*/
|
|
288
288
|
m: function(l, u) {
|
|
289
|
-
|
|
289
|
+
F(l, o, u);
|
|
290
290
|
},
|
|
291
291
|
d: function(l) {
|
|
292
|
-
l &&
|
|
292
|
+
l && $(o);
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
295
|
};
|
|
@@ -431,7 +431,7 @@ class Jr {
|
|
|
431
431
|
$$set = void 0;
|
|
432
432
|
/** @returns {void} */
|
|
433
433
|
$destroy() {
|
|
434
|
-
Wr(this, 1), this.$destroy =
|
|
434
|
+
Wr(this, 1), this.$destroy = G;
|
|
435
435
|
}
|
|
436
436
|
/**
|
|
437
437
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -441,7 +441,7 @@ class Jr {
|
|
|
441
441
|
*/
|
|
442
442
|
$on(t, r) {
|
|
443
443
|
if (!Pe(r))
|
|
444
|
-
return
|
|
444
|
+
return G;
|
|
445
445
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
446
446
|
return n.push(r), () => {
|
|
447
447
|
const i = n.indexOf(r);
|
|
@@ -550,7 +550,7 @@ function Qe(e, t, r) {
|
|
|
550
550
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
551
551
|
return e.concat(o || t);
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function k(e) {
|
|
554
554
|
return typeof e == "function";
|
|
555
555
|
}
|
|
556
556
|
function Qt(e) {
|
|
@@ -603,7 +603,7 @@ var Ae = function() {
|
|
|
603
603
|
else
|
|
604
604
|
s.remove(this);
|
|
605
605
|
var h = this.initialTeardown;
|
|
606
|
-
if (
|
|
606
|
+
if (k(h))
|
|
607
607
|
try {
|
|
608
608
|
h();
|
|
609
609
|
} catch (g) {
|
|
@@ -616,7 +616,7 @@ var Ae = function() {
|
|
|
616
616
|
for (var c = ze(f), d = c.next(); !d.done; d = c.next()) {
|
|
617
617
|
var b = d.value;
|
|
618
618
|
try {
|
|
619
|
-
|
|
619
|
+
bt(b);
|
|
620
620
|
} catch (g) {
|
|
621
621
|
o = o ?? [], g instanceof Re ? o = Qe(Qe([], Ze(o)), Ze(g.errors)) : o.push(g);
|
|
622
622
|
}
|
|
@@ -639,7 +639,7 @@ var Ae = function() {
|
|
|
639
639
|
var r;
|
|
640
640
|
if (t && t !== this)
|
|
641
641
|
if (this.closed)
|
|
642
|
-
|
|
642
|
+
bt(t);
|
|
643
643
|
else {
|
|
644
644
|
if (t instanceof e) {
|
|
645
645
|
if (t.closed || t._hasParent(this))
|
|
@@ -666,10 +666,10 @@ var Ae = function() {
|
|
|
666
666
|
}(), e;
|
|
667
667
|
}(), Jt = Ae.EMPTY;
|
|
668
668
|
function qt(e) {
|
|
669
|
-
return e instanceof Ae || e && "closed" in e &&
|
|
669
|
+
return e instanceof Ae || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
|
|
671
|
+
function bt(e) {
|
|
672
|
+
k(e) ? e() : e.unsubscribe();
|
|
673
673
|
}
|
|
674
674
|
var tn = {
|
|
675
675
|
Promise: void 0
|
|
@@ -689,7 +689,7 @@ function nn(e) {
|
|
|
689
689
|
throw e;
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function gt() {
|
|
693
693
|
}
|
|
694
694
|
function _e(e) {
|
|
695
695
|
e();
|
|
@@ -760,7 +760,7 @@ var Yt = function(e) {
|
|
|
760
760
|
me(t, e);
|
|
761
761
|
function t(r, n, i) {
|
|
762
762
|
var o = e.call(this) || this, s;
|
|
763
|
-
return
|
|
763
|
+
return k(r) || !r ? s = {
|
|
764
764
|
next: r ?? void 0,
|
|
765
765
|
error: n ?? void 0,
|
|
766
766
|
complete: i ?? void 0
|
|
@@ -776,9 +776,9 @@ function sn(e) {
|
|
|
776
776
|
}
|
|
777
777
|
var an = {
|
|
778
778
|
closed: !0,
|
|
779
|
-
next:
|
|
779
|
+
next: gt,
|
|
780
780
|
error: sn,
|
|
781
|
-
complete:
|
|
781
|
+
complete: gt
|
|
782
782
|
}, un = function() {
|
|
783
783
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
784
784
|
}();
|
|
@@ -792,7 +792,7 @@ function hn(e) {
|
|
|
792
792
|
}, r);
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
|
-
var
|
|
795
|
+
var vt = function() {
|
|
796
796
|
function e(t) {
|
|
797
797
|
t && (this._subscribe = t);
|
|
798
798
|
}
|
|
@@ -813,7 +813,7 @@ var gt = function() {
|
|
|
813
813
|
}
|
|
814
814
|
}, e.prototype.forEach = function(t, r) {
|
|
815
815
|
var n = this;
|
|
816
|
-
return r =
|
|
816
|
+
return r = yt(r), new r(function(i, o) {
|
|
817
817
|
var s = new qe({
|
|
818
818
|
next: function(a) {
|
|
819
819
|
try {
|
|
@@ -838,7 +838,7 @@ var gt = function() {
|
|
|
838
838
|
return hn(t)(this);
|
|
839
839
|
}, e.prototype.toPromise = function(t) {
|
|
840
840
|
var r = this;
|
|
841
|
-
return t =
|
|
841
|
+
return t = yt(t), new t(function(n, i) {
|
|
842
842
|
var o;
|
|
843
843
|
r.subscribe(function(s) {
|
|
844
844
|
return o = s;
|
|
@@ -852,12 +852,12 @@ var gt = function() {
|
|
|
852
852
|
return new e(t);
|
|
853
853
|
}, e;
|
|
854
854
|
}();
|
|
855
|
-
function
|
|
855
|
+
function yt(e) {
|
|
856
856
|
var t;
|
|
857
857
|
return (t = e ?? tn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
858
858
|
}
|
|
859
859
|
function cn(e) {
|
|
860
|
-
return e &&
|
|
860
|
+
return e && k(e.next) && k(e.error) && k(e.complete);
|
|
861
861
|
}
|
|
862
862
|
function fn(e) {
|
|
863
863
|
return e && e instanceof Yt || cn(e) && qt(e);
|
|
@@ -873,7 +873,7 @@ var pn = Qt(function(e) {
|
|
|
873
873
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
874
874
|
}
|
|
875
875
|
return t.prototype.lift = function(r) {
|
|
876
|
-
var n = new
|
|
876
|
+
var n = new _t(this, this);
|
|
877
877
|
return n.operator = r, n;
|
|
878
878
|
}, t.prototype._throwIfClosed = function() {
|
|
879
879
|
if (this.closed)
|
|
@@ -941,12 +941,12 @@ var pn = Qt(function(e) {
|
|
|
941
941
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
942
942
|
i ? r.error(o) : s && r.complete();
|
|
943
943
|
}, t.prototype.asObservable = function() {
|
|
944
|
-
var r = new
|
|
944
|
+
var r = new vt();
|
|
945
945
|
return r.source = this, r;
|
|
946
946
|
}, t.create = function(r, n) {
|
|
947
|
-
return new
|
|
947
|
+
return new _t(r, n);
|
|
948
948
|
}, t;
|
|
949
|
-
}(
|
|
949
|
+
}(vt), _t = function(e) {
|
|
950
950
|
me(t, e);
|
|
951
951
|
function t(r, n) {
|
|
952
952
|
var i = e.call(this) || this;
|
|
@@ -994,19 +994,19 @@ var pn = Qt(function(e) {
|
|
|
994
994
|
}
|
|
995
995
|
}, t;
|
|
996
996
|
}(Kt);
|
|
997
|
-
const
|
|
998
|
-
if (
|
|
997
|
+
const Et = [], xt = {}, dn = (e, t = 0) => {
|
|
998
|
+
if (Et.indexOf(e) == -1) {
|
|
999
999
|
const r = new mn(t);
|
|
1000
|
-
|
|
1000
|
+
xt[e] = r, Et.push(e);
|
|
1001
1001
|
}
|
|
1002
|
-
return
|
|
1002
|
+
return xt[e];
|
|
1003
1003
|
}, Y = [];
|
|
1004
1004
|
function bn(e, t) {
|
|
1005
1005
|
return {
|
|
1006
1006
|
subscribe: Oe(e, t).subscribe
|
|
1007
1007
|
};
|
|
1008
1008
|
}
|
|
1009
|
-
function Oe(e, t =
|
|
1009
|
+
function Oe(e, t = G) {
|
|
1010
1010
|
let r;
|
|
1011
1011
|
const n = /* @__PURE__ */ new Set();
|
|
1012
1012
|
function i(a) {
|
|
@@ -1024,9 +1024,9 @@ function Oe(e, t = R) {
|
|
|
1024
1024
|
function o(a) {
|
|
1025
1025
|
i(a(e));
|
|
1026
1026
|
}
|
|
1027
|
-
function s(a, l =
|
|
1027
|
+
function s(a, l = G) {
|
|
1028
1028
|
const u = [a, l];
|
|
1029
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1029
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || G), a(e), () => {
|
|
1030
1030
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
@@ -1040,18 +1040,18 @@ function se(e, t, r) {
|
|
|
1040
1040
|
return bn(r, (s, a) => {
|
|
1041
1041
|
let l = !1;
|
|
1042
1042
|
const u = [];
|
|
1043
|
-
let h = 0, f =
|
|
1043
|
+
let h = 0, f = G;
|
|
1044
1044
|
const c = () => {
|
|
1045
1045
|
if (h)
|
|
1046
1046
|
return;
|
|
1047
1047
|
f();
|
|
1048
1048
|
const b = t(n ? u[0] : u, s, a);
|
|
1049
|
-
o ? s(b) : f = Pe(b) ? b :
|
|
1049
|
+
o ? s(b) : f = Pe(b) ? b : G;
|
|
1050
1050
|
}, d = i.map(
|
|
1051
1051
|
(b, g) => Xt(
|
|
1052
1052
|
b,
|
|
1053
|
-
(
|
|
1054
|
-
u[g] =
|
|
1053
|
+
(T) => {
|
|
1054
|
+
u[g] = T, h &= ~(1 << g), l && c();
|
|
1055
1055
|
},
|
|
1056
1056
|
() => {
|
|
1057
1057
|
h |= 1 << g;
|
|
@@ -1102,7 +1102,7 @@ function Bn(e) {
|
|
|
1102
1102
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1103
1103
|
}) : [];
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function wt(e) {
|
|
1106
1106
|
return Object.keys(e).concat(Bn(e));
|
|
1107
1107
|
}
|
|
1108
1108
|
function tr(e, t) {
|
|
@@ -1117,9 +1117,9 @@ function Pn(e, t) {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
function An(e, t, r) {
|
|
1119
1119
|
var n = {};
|
|
1120
|
-
return r.isMergeableObject(e) &&
|
|
1120
|
+
return r.isMergeableObject(e) && wt(e).forEach(function(i) {
|
|
1121
1121
|
n[i] = fe(e[i], r);
|
|
1122
|
-
}),
|
|
1122
|
+
}), wt(t).forEach(function(i) {
|
|
1123
1123
|
Pn(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
1124
1124
|
}), n;
|
|
1125
1125
|
}
|
|
@@ -1154,15 +1154,15 @@ function Ne(e, t) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1156
1156
|
}
|
|
1157
|
-
var
|
|
1158
|
-
return
|
|
1157
|
+
var U = function() {
|
|
1158
|
+
return U = Object.assign || function(t) {
|
|
1159
1159
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1160
1160
|
r = arguments[n];
|
|
1161
1161
|
for (var o in r)
|
|
1162
1162
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1163
1163
|
}
|
|
1164
1164
|
return t;
|
|
1165
|
-
},
|
|
1165
|
+
}, U.apply(this, arguments);
|
|
1166
1166
|
};
|
|
1167
1167
|
function In(e, t) {
|
|
1168
1168
|
var r = {};
|
|
@@ -1173,14 +1173,14 @@ function In(e, t) {
|
|
|
1173
1173
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1174
1174
|
return r;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function Ge(e, t, r) {
|
|
1177
1177
|
if (r || arguments.length === 2)
|
|
1178
1178
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1179
1179
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1180
1180
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer :
|
|
1182
|
+
function $e(e, t) {
|
|
1183
|
+
var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : $n, i = t && t.strategy ? t.strategy : Rn;
|
|
1184
1184
|
return i(e, {
|
|
1185
1185
|
cache: r,
|
|
1186
1186
|
serializer: n
|
|
@@ -1204,10 +1204,10 @@ function Rn(e, t) {
|
|
|
1204
1204
|
var r = e.length === 1 ? Mn : rr;
|
|
1205
1205
|
return nr(e, this, r, t.cache.create(), t.serializer);
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function Gn(e, t) {
|
|
1208
1208
|
return nr(e, this, rr, t.cache.create(), t.serializer);
|
|
1209
1209
|
}
|
|
1210
|
-
var
|
|
1210
|
+
var $n = function() {
|
|
1211
1211
|
return JSON.stringify(arguments);
|
|
1212
1212
|
}, Un = (
|
|
1213
1213
|
/** @class */
|
|
@@ -1226,7 +1226,7 @@ var Gn = function() {
|
|
|
1226
1226
|
return new Un();
|
|
1227
1227
|
}
|
|
1228
1228
|
}, Ue = {
|
|
1229
|
-
variadic:
|
|
1229
|
+
variadic: Gn
|
|
1230
1230
|
}, Se = function() {
|
|
1231
1231
|
return Se = Object.assign || function(t) {
|
|
1232
1232
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -1237,44 +1237,44 @@ var Gn = function() {
|
|
|
1237
1237
|
return t;
|
|
1238
1238
|
}, Se.apply(this, arguments);
|
|
1239
1239
|
};
|
|
1240
|
-
var
|
|
1240
|
+
var y;
|
|
1241
1241
|
(function(e) {
|
|
1242
1242
|
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
|
-
})(
|
|
1244
|
-
var
|
|
1243
|
+
})(y || (y = {}));
|
|
1244
|
+
var S;
|
|
1245
1245
|
(function(e) {
|
|
1246
1246
|
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
|
-
})(
|
|
1247
|
+
})(S || (S = {}));
|
|
1248
1248
|
var re;
|
|
1249
1249
|
(function(e) {
|
|
1250
1250
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1251
1251
|
})(re || (re = {}));
|
|
1252
|
-
function
|
|
1253
|
-
return e.type ===
|
|
1252
|
+
function Tt(e) {
|
|
1253
|
+
return e.type === S.literal;
|
|
1254
1254
|
}
|
|
1255
1255
|
function Fn(e) {
|
|
1256
|
-
return e.type ===
|
|
1256
|
+
return e.type === S.argument;
|
|
1257
1257
|
}
|
|
1258
1258
|
function ir(e) {
|
|
1259
|
-
return e.type ===
|
|
1259
|
+
return e.type === S.number;
|
|
1260
1260
|
}
|
|
1261
1261
|
function or(e) {
|
|
1262
|
-
return e.type ===
|
|
1262
|
+
return e.type === S.date;
|
|
1263
1263
|
}
|
|
1264
1264
|
function sr(e) {
|
|
1265
|
-
return e.type ===
|
|
1265
|
+
return e.type === S.time;
|
|
1266
1266
|
}
|
|
1267
1267
|
function ar(e) {
|
|
1268
|
-
return e.type ===
|
|
1268
|
+
return e.type === S.select;
|
|
1269
1269
|
}
|
|
1270
1270
|
function ur(e) {
|
|
1271
|
-
return e.type ===
|
|
1271
|
+
return e.type === S.plural;
|
|
1272
1272
|
}
|
|
1273
1273
|
function jn(e) {
|
|
1274
|
-
return e.type ===
|
|
1274
|
+
return e.type === S.pound;
|
|
1275
1275
|
}
|
|
1276
1276
|
function lr(e) {
|
|
1277
|
-
return e.type ===
|
|
1277
|
+
return e.type === S.tag;
|
|
1278
1278
|
}
|
|
1279
1279
|
function hr(e) {
|
|
1280
1280
|
return !!(e && typeof e == "object" && e.type === re.number);
|
|
@@ -1406,8 +1406,8 @@ function Wn(e) {
|
|
|
1406
1406
|
function zn(e) {
|
|
1407
1407
|
return e.replace(/^(.*?)-/, "");
|
|
1408
1408
|
}
|
|
1409
|
-
var
|
|
1410
|
-
function
|
|
1409
|
+
var St = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Zn = /(\*)(0+)|(#+)(0+)|(0+)/g, pr = /^(0+)$/;
|
|
1410
|
+
function Ht(e) {
|
|
1411
1411
|
var t = {};
|
|
1412
1412
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
|
|
1413
1413
|
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)), "";
|
|
@@ -1467,7 +1467,7 @@ function Qn(e) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
return t;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function Bt(e) {
|
|
1471
1471
|
var t = {}, r = mr(e);
|
|
1472
1472
|
return r || t;
|
|
1473
1473
|
}
|
|
@@ -1507,12 +1507,12 @@ function Jn(e) {
|
|
|
1507
1507
|
continue;
|
|
1508
1508
|
case "scientific":
|
|
1509
1509
|
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1510
|
-
return B(B({}, l),
|
|
1510
|
+
return B(B({}, l), Bt(u));
|
|
1511
1511
|
}, {}));
|
|
1512
1512
|
continue;
|
|
1513
1513
|
case "engineering":
|
|
1514
1514
|
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1515
|
-
return B(B({}, l),
|
|
1515
|
+
return B(B({}, l), Bt(u));
|
|
1516
1516
|
}, {}));
|
|
1517
1517
|
continue;
|
|
1518
1518
|
case "notation-simple":
|
|
@@ -1574,18 +1574,18 @@ function Jn(e) {
|
|
|
1574
1574
|
t.minimumIntegerDigits = i.stem.length;
|
|
1575
1575
|
continue;
|
|
1576
1576
|
}
|
|
1577
|
-
if (
|
|
1577
|
+
if (St.test(i.stem)) {
|
|
1578
1578
|
if (i.options.length > 1)
|
|
1579
1579
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1580
|
-
i.stem.replace(
|
|
1580
|
+
i.stem.replace(St, function(l, u, h, f, c, d) {
|
|
1581
1581
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1582
1582
|
});
|
|
1583
1583
|
var o = i.options[0];
|
|
1584
|
-
o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t),
|
|
1584
|
+
o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), Ht(o)));
|
|
1585
1585
|
continue;
|
|
1586
1586
|
}
|
|
1587
1587
|
if (fr.test(i.stem)) {
|
|
1588
|
-
t = B(B({}, t),
|
|
1588
|
+
t = B(B({}, t), Ht(i.stem));
|
|
1589
1589
|
continue;
|
|
1590
1590
|
}
|
|
1591
1591
|
var s = mr(i.stem);
|
|
@@ -3061,7 +3061,7 @@ try {
|
|
|
3061
3061
|
} catch {
|
|
3062
3062
|
et = !1;
|
|
3063
3063
|
}
|
|
3064
|
-
var
|
|
3064
|
+
var Pt = ti ? (
|
|
3065
3065
|
// Native
|
|
3066
3066
|
function(t, r, n) {
|
|
3067
3067
|
return t.startsWith(r, n);
|
|
@@ -3083,7 +3083,7 @@ var Bt = ti ? (
|
|
|
3083
3083
|
}
|
|
3084
3084
|
return n;
|
|
3085
3085
|
}
|
|
3086
|
-
),
|
|
3086
|
+
), At = (
|
|
3087
3087
|
// native
|
|
3088
3088
|
ni ? Object.fromEntries : (
|
|
3089
3089
|
// Ponyfill
|
|
@@ -3135,11 +3135,11 @@ function br(e, t) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
var rt;
|
|
3137
3137
|
if (et) {
|
|
3138
|
-
var
|
|
3138
|
+
var Ot = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3139
3139
|
rt = function(t, r) {
|
|
3140
3140
|
var n;
|
|
3141
|
-
|
|
3142
|
-
var i =
|
|
3141
|
+
Ot.lastIndex = r;
|
|
3142
|
+
var i = Ot.exec(t);
|
|
3143
3143
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3144
3144
|
};
|
|
3145
3145
|
} else
|
|
@@ -3176,13 +3176,13 @@ var fi = (
|
|
|
3176
3176
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3177
3177
|
var a = this.clonePosition();
|
|
3178
3178
|
this.bump(), i.push({
|
|
3179
|
-
type:
|
|
3179
|
+
type: S.pound,
|
|
3180
3180
|
location: E(a, this.clonePosition())
|
|
3181
3181
|
});
|
|
3182
3182
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3183
3183
|
if (n)
|
|
3184
3184
|
break;
|
|
3185
|
-
return this.error(
|
|
3185
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3186
3186
|
} else if (o === 60 && !this.ignoreTag && nt(this.peek() || 0)) {
|
|
3187
3187
|
var s = this.parseTag(t, r);
|
|
3188
3188
|
if (s.err)
|
|
@@ -3204,7 +3204,7 @@ var fi = (
|
|
|
3204
3204
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3205
3205
|
return {
|
|
3206
3206
|
val: {
|
|
3207
|
-
type:
|
|
3207
|
+
type: S.literal,
|
|
3208
3208
|
value: "<".concat(i, "/>"),
|
|
3209
3209
|
location: E(n, this.clonePosition())
|
|
3210
3210
|
},
|
|
@@ -3217,21 +3217,21 @@ var fi = (
|
|
|
3217
3217
|
var s = o.val, a = this.clonePosition();
|
|
3218
3218
|
if (this.bumpIf("</")) {
|
|
3219
3219
|
if (this.isEOF() || !nt(this.char()))
|
|
3220
|
-
return this.error(
|
|
3220
|
+
return this.error(y.INVALID_TAG, E(a, this.clonePosition()));
|
|
3221
3221
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3222
|
-
return i !== u ? this.error(
|
|
3222
|
+
return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3223
3223
|
val: {
|
|
3224
|
-
type:
|
|
3224
|
+
type: S.tag,
|
|
3225
3225
|
value: i,
|
|
3226
3226
|
children: s,
|
|
3227
3227
|
location: E(n, this.clonePosition())
|
|
3228
3228
|
},
|
|
3229
3229
|
err: null
|
|
3230
|
-
} : this.error(
|
|
3230
|
+
} : this.error(y.INVALID_TAG, E(a, this.clonePosition())));
|
|
3231
3231
|
} else
|
|
3232
|
-
return this.error(
|
|
3232
|
+
return this.error(y.UNCLOSED_TAG, E(n, this.clonePosition()));
|
|
3233
3233
|
} else
|
|
3234
|
-
return this.error(
|
|
3234
|
+
return this.error(y.INVALID_TAG, E(n, this.clonePosition()));
|
|
3235
3235
|
}, e.prototype.parseTagName = function() {
|
|
3236
3236
|
var t = this.offset();
|
|
3237
3237
|
for (this.bump(); !this.isEOF() && mi(this.char()); )
|
|
@@ -3258,7 +3258,7 @@ var fi = (
|
|
|
3258
3258
|
}
|
|
3259
3259
|
var l = E(n, this.clonePosition());
|
|
3260
3260
|
return {
|
|
3261
|
-
val: { type:
|
|
3261
|
+
val: { type: S.literal, value: i, location: l },
|
|
3262
3262
|
err: null
|
|
3263
3263
|
};
|
|
3264
3264
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3306,19 +3306,19 @@ var fi = (
|
|
|
3306
3306
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3307
3307
|
var n = this.clonePosition();
|
|
3308
3308
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3309
|
-
return this.error(
|
|
3309
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
3310
3310
|
if (this.char() === 125)
|
|
3311
|
-
return this.bump(), this.error(
|
|
3311
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, E(n, this.clonePosition()));
|
|
3312
3312
|
var i = this.parseIdentifierIfPossible().value;
|
|
3313
3313
|
if (!i)
|
|
3314
|
-
return this.error(
|
|
3314
|
+
return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3315
3315
|
if (this.bumpSpace(), this.isEOF())
|
|
3316
|
-
return this.error(
|
|
3316
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
3317
3317
|
switch (this.char()) {
|
|
3318
3318
|
case 125:
|
|
3319
3319
|
return this.bump(), {
|
|
3320
3320
|
val: {
|
|
3321
|
-
type:
|
|
3321
|
+
type: S.argument,
|
|
3322
3322
|
// value does not include the opening and closing braces.
|
|
3323
3323
|
value: i,
|
|
3324
3324
|
location: E(n, this.clonePosition())
|
|
@@ -3326,9 +3326,9 @@ var fi = (
|
|
|
3326
3326
|
err: null
|
|
3327
3327
|
};
|
|
3328
3328
|
case 44:
|
|
3329
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3329
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3330
3330
|
default:
|
|
3331
|
-
return this.error(
|
|
3331
|
+
return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3332
3332
|
}
|
|
3333
3333
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3334
3334
|
var t = this.clonePosition(), r = this.offset(), n = rt(this.message, r), i = r + n.length;
|
|
@@ -3339,7 +3339,7 @@ var fi = (
|
|
|
3339
3339
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3340
3340
|
switch (a) {
|
|
3341
3341
|
case "":
|
|
3342
|
-
return this.error(
|
|
3342
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, E(s, l));
|
|
3343
3343
|
case "number":
|
|
3344
3344
|
case "date":
|
|
3345
3345
|
case "time": {
|
|
@@ -3352,7 +3352,7 @@ var fi = (
|
|
|
3352
3352
|
return f;
|
|
3353
3353
|
var c = ci(f.val);
|
|
3354
3354
|
if (c.length === 0)
|
|
3355
|
-
return this.error(
|
|
3355
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3356
3356
|
var d = E(h, this.clonePosition());
|
|
3357
3357
|
u = { style: c, styleLocation: d };
|
|
3358
3358
|
}
|
|
@@ -3360,34 +3360,34 @@ var fi = (
|
|
|
3360
3360
|
if (b.err)
|
|
3361
3361
|
return b;
|
|
3362
3362
|
var g = E(i, this.clonePosition());
|
|
3363
|
-
if (u &&
|
|
3364
|
-
var
|
|
3363
|
+
if (u && Pt(u?.style, "::", 0)) {
|
|
3364
|
+
var T = hi(u.style.slice(2));
|
|
3365
3365
|
if (a === "number") {
|
|
3366
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3366
|
+
var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
3367
3367
|
return f.err ? f : {
|
|
3368
|
-
val: { type:
|
|
3368
|
+
val: { type: S.number, value: n, location: g, style: f.val },
|
|
3369
3369
|
err: null
|
|
3370
3370
|
};
|
|
3371
3371
|
} else {
|
|
3372
|
-
if (
|
|
3373
|
-
return this.error(
|
|
3374
|
-
var
|
|
3375
|
-
this.locale && (
|
|
3372
|
+
if (T.length === 0)
|
|
3373
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
|
|
3374
|
+
var A = T;
|
|
3375
|
+
this.locale && (A = qn(T, this.locale));
|
|
3376
3376
|
var c = {
|
|
3377
3377
|
type: re.dateTime,
|
|
3378
|
-
pattern:
|
|
3378
|
+
pattern: A,
|
|
3379
3379
|
location: u.styleLocation,
|
|
3380
|
-
parsedOptions: this.shouldParseSkeletons ? Vn(
|
|
3381
|
-
},
|
|
3380
|
+
parsedOptions: this.shouldParseSkeletons ? Vn(A) : {}
|
|
3381
|
+
}, _ = a === "date" ? S.date : S.time;
|
|
3382
3382
|
return {
|
|
3383
|
-
val: { type:
|
|
3383
|
+
val: { type: _, value: n, location: g, style: c },
|
|
3384
3384
|
err: null
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
3388
|
return {
|
|
3389
3389
|
val: {
|
|
3390
|
-
type: a === "number" ?
|
|
3390
|
+
type: a === "number" ? S.number : a === "date" ? S.date : S.time,
|
|
3391
3391
|
value: n,
|
|
3392
3392
|
location: g,
|
|
3393
3393
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3400,50 +3400,50 @@ var fi = (
|
|
|
3400
3400
|
case "select": {
|
|
3401
3401
|
var m = this.clonePosition();
|
|
3402
3402
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3403
|
-
return this.error(
|
|
3403
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(m, Se({}, m)));
|
|
3404
3404
|
this.bumpSpace();
|
|
3405
|
-
var
|
|
3406
|
-
if (a !== "select" &&
|
|
3405
|
+
var H = this.parseIdentifierIfPossible(), w = 0;
|
|
3406
|
+
if (a !== "select" && H.value === "offset") {
|
|
3407
3407
|
if (!this.bumpIf(":"))
|
|
3408
|
-
return this.error(
|
|
3408
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
3409
3409
|
this.bumpSpace();
|
|
3410
|
-
var f = this.tryParseDecimalInteger(
|
|
3410
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3411
3411
|
if (f.err)
|
|
3412
3412
|
return f;
|
|
3413
|
-
this.bumpSpace(),
|
|
3413
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), w = f.val;
|
|
3414
3414
|
}
|
|
3415
|
-
var
|
|
3416
|
-
if (
|
|
3417
|
-
return
|
|
3415
|
+
var I = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3416
|
+
if (I.err)
|
|
3417
|
+
return I;
|
|
3418
3418
|
var b = this.tryParseArgumentClose(i);
|
|
3419
3419
|
if (b.err)
|
|
3420
3420
|
return b;
|
|
3421
|
-
var
|
|
3421
|
+
var M = E(i, this.clonePosition());
|
|
3422
3422
|
return a === "select" ? {
|
|
3423
3423
|
val: {
|
|
3424
|
-
type:
|
|
3424
|
+
type: S.select,
|
|
3425
3425
|
value: n,
|
|
3426
|
-
options:
|
|
3427
|
-
location:
|
|
3426
|
+
options: At(I.val),
|
|
3427
|
+
location: M
|
|
3428
3428
|
},
|
|
3429
3429
|
err: null
|
|
3430
3430
|
} : {
|
|
3431
3431
|
val: {
|
|
3432
|
-
type:
|
|
3432
|
+
type: S.plural,
|
|
3433
3433
|
value: n,
|
|
3434
|
-
options:
|
|
3435
|
-
offset:
|
|
3434
|
+
options: At(I.val),
|
|
3435
|
+
offset: w,
|
|
3436
3436
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3437
|
-
location:
|
|
3437
|
+
location: M
|
|
3438
3438
|
},
|
|
3439
3439
|
err: null
|
|
3440
3440
|
};
|
|
3441
3441
|
}
|
|
3442
3442
|
default:
|
|
3443
|
-
return this.error(
|
|
3443
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, E(s, l));
|
|
3444
3444
|
}
|
|
3445
3445
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3446
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3446
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3447
3447
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3448
3448
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3449
3449
|
var n = this.char();
|
|
@@ -3452,7 +3452,7 @@ var fi = (
|
|
|
3452
3452
|
this.bump();
|
|
3453
3453
|
var i = this.clonePosition();
|
|
3454
3454
|
if (!this.bumpUntil("'"))
|
|
3455
|
-
return this.error(
|
|
3455
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
|
|
3456
3456
|
this.bump();
|
|
3457
3457
|
break;
|
|
3458
3458
|
}
|
|
@@ -3484,7 +3484,7 @@ var fi = (
|
|
|
3484
3484
|
try {
|
|
3485
3485
|
n = Wn(t);
|
|
3486
3486
|
} catch {
|
|
3487
|
-
return this.error(
|
|
3487
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3488
3488
|
}
|
|
3489
3489
|
return {
|
|
3490
3490
|
val: {
|
|
@@ -3500,7 +3500,7 @@ var fi = (
|
|
|
3500
3500
|
if (u.length === 0) {
|
|
3501
3501
|
var f = this.clonePosition();
|
|
3502
3502
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3503
|
-
var c = this.tryParseDecimalInteger(
|
|
3503
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3504
3504
|
if (c.err)
|
|
3505
3505
|
return c;
|
|
3506
3506
|
h = E(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3508,11 +3508,11 @@ var fi = (
|
|
|
3508
3508
|
break;
|
|
3509
3509
|
}
|
|
3510
3510
|
if (l.has(u))
|
|
3511
|
-
return this.error(r === "select" ?
|
|
3511
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3512
3512
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3513
3513
|
var d = this.clonePosition();
|
|
3514
3514
|
if (!this.bumpIf("{"))
|
|
3515
|
-
return this.error(r === "select" ?
|
|
3515
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3516
3516
|
var b = this.parseMessage(t + 1, r, n);
|
|
3517
3517
|
if (b.err)
|
|
3518
3518
|
return b;
|
|
@@ -3527,7 +3527,7 @@ var fi = (
|
|
|
3527
3527
|
}
|
|
3528
3528
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3529
3529
|
}
|
|
3530
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3530
|
+
return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3531
3531
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3532
3532
|
var n = 1, i = this.clonePosition();
|
|
3533
3533
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3573,7 +3573,7 @@ var fi = (
|
|
|
3573
3573
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3574
3574
|
}
|
|
3575
3575
|
}, e.prototype.bumpIf = function(t) {
|
|
3576
|
-
if (
|
|
3576
|
+
if (Pt(this.message, t, this.offset())) {
|
|
3577
3577
|
for (var r = 0; r < t.length; r++)
|
|
3578
3578
|
this.bump();
|
|
3579
3579
|
return !0;
|
|
@@ -3633,7 +3633,7 @@ function bi(e, t) {
|
|
|
3633
3633
|
t === void 0 && (t = {}), t = Se({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3634
3634
|
var r = new fi(e, t).parse();
|
|
3635
3635
|
if (r.err) {
|
|
3636
|
-
var n = SyntaxError(
|
|
3636
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3637
3637
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3638
3638
|
}
|
|
3639
3639
|
return t?.captureLocation || it(r.val), r.val;
|
|
@@ -3654,7 +3654,7 @@ var Ce = (
|
|
|
3654
3654
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3655
3655
|
}, t;
|
|
3656
3656
|
}(Error)
|
|
3657
|
-
),
|
|
3657
|
+
), Nt = (
|
|
3658
3658
|
/** @class */
|
|
3659
3659
|
function(e) {
|
|
3660
3660
|
Ne(t, e);
|
|
@@ -3695,7 +3695,7 @@ function _i(e) {
|
|
|
3695
3695
|
return typeof e == "function";
|
|
3696
3696
|
}
|
|
3697
3697
|
function Ee(e, t, r, n, i, o, s) {
|
|
3698
|
-
if (e.length === 1 &&
|
|
3698
|
+
if (e.length === 1 && Tt(e[0]))
|
|
3699
3699
|
return [
|
|
3700
3700
|
{
|
|
3701
3701
|
type: C.literal,
|
|
@@ -3704,7 +3704,7 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3704
3704
|
];
|
|
3705
3705
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3706
3706
|
var h = u[l];
|
|
3707
|
-
if (
|
|
3707
|
+
if (Tt(h)) {
|
|
3708
3708
|
a.push({
|
|
3709
3709
|
type: C.literal,
|
|
3710
3710
|
value: h.value
|
|
@@ -3754,23 +3754,23 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3754
3754
|
continue;
|
|
3755
3755
|
}
|
|
3756
3756
|
if (lr(h)) {
|
|
3757
|
-
var b = h.children, g = h.value,
|
|
3758
|
-
if (!_i(
|
|
3757
|
+
var b = h.children, g = h.value, T = i[g];
|
|
3758
|
+
if (!_i(T))
|
|
3759
3759
|
throw new gi(g, "function", s);
|
|
3760
|
-
var
|
|
3761
|
-
return
|
|
3760
|
+
var A = Ee(b, t, r, n, i, o), _ = T(A.map(function(w) {
|
|
3761
|
+
return w.value;
|
|
3762
3762
|
}));
|
|
3763
|
-
Array.isArray(
|
|
3763
|
+
Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(w) {
|
|
3764
3764
|
return {
|
|
3765
|
-
type: typeof
|
|
3766
|
-
value:
|
|
3765
|
+
type: typeof w == "string" ? C.literal : C.object,
|
|
3766
|
+
value: w
|
|
3767
3767
|
};
|
|
3768
3768
|
}));
|
|
3769
3769
|
}
|
|
3770
3770
|
if (ar(h)) {
|
|
3771
3771
|
var m = h.options[c] || h.options.other;
|
|
3772
3772
|
if (!m)
|
|
3773
|
-
throw new
|
|
3773
|
+
throw new Nt(h.value, c, Object.keys(h.options), s);
|
|
3774
3774
|
a.push.apply(a, Ee(m.value, t, r, n, i));
|
|
3775
3775
|
continue;
|
|
3776
3776
|
}
|
|
@@ -3781,11 +3781,11 @@ function Ee(e, t, r, n, i, o, s) {
|
|
|
3781
3781
|
throw new Ce(`Intl.PluralRules is not available in this environment.
|
|
3782
3782
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3783
3783
|
`, ne.MISSING_INTL_API, s);
|
|
3784
|
-
var
|
|
3785
|
-
m = h.options[
|
|
3784
|
+
var H = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3785
|
+
m = h.options[H] || h.options.other;
|
|
3786
3786
|
}
|
|
3787
3787
|
if (!m)
|
|
3788
|
-
throw new
|
|
3788
|
+
throw new Nt(h.value, c, Object.keys(h.options), s);
|
|
3789
3789
|
a.push.apply(a, Ee(m.value, t, r, n, i, c - (h.offset || 0)));
|
|
3790
3790
|
continue;
|
|
3791
3791
|
}
|
|
@@ -3793,14 +3793,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3793
3793
|
return yi(a);
|
|
3794
3794
|
}
|
|
3795
3795
|
function Ei(e, t) {
|
|
3796
|
-
return t ?
|
|
3797
|
-
return r[n] =
|
|
3796
|
+
return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3797
|
+
return r[n] = U(U({}, e[n]), t[n] || {}), r;
|
|
3798
3798
|
}, {})) : e;
|
|
3799
3799
|
}
|
|
3800
3800
|
function xi(e, t) {
|
|
3801
3801
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3802
3802
|
return r[n] = Ei(e[n], t[n]), r;
|
|
3803
|
-
},
|
|
3803
|
+
}, U({}, e)) : e;
|
|
3804
3804
|
}
|
|
3805
3805
|
function Fe(e) {
|
|
3806
3806
|
return {
|
|
@@ -3822,26 +3822,26 @@ function wi(e) {
|
|
|
3822
3822
|
dateTime: {},
|
|
3823
3823
|
pluralRules: {}
|
|
3824
3824
|
}), {
|
|
3825
|
-
getNumberFormat:
|
|
3825
|
+
getNumberFormat: $e(function() {
|
|
3826
3826
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3827
3827
|
r[n] = arguments[n];
|
|
3828
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3828
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3829
3829
|
}, {
|
|
3830
3830
|
cache: Fe(e.number),
|
|
3831
3831
|
strategy: Ue.variadic
|
|
3832
3832
|
}),
|
|
3833
|
-
getDateTimeFormat:
|
|
3833
|
+
getDateTimeFormat: $e(function() {
|
|
3834
3834
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3835
3835
|
r[n] = arguments[n];
|
|
3836
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3836
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3837
3837
|
}, {
|
|
3838
3838
|
cache: Fe(e.dateTime),
|
|
3839
3839
|
strategy: Ue.variadic
|
|
3840
3840
|
}),
|
|
3841
|
-
getPluralRules:
|
|
3841
|
+
getPluralRules: $e(function() {
|
|
3842
3842
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3843
3843
|
r[n] = arguments[n];
|
|
3844
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3844
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], r, !1)))();
|
|
3845
3845
|
}, {
|
|
3846
3846
|
cache: Fe(e.pluralRules),
|
|
3847
3847
|
strategy: Ue.variadic
|
|
@@ -3881,7 +3881,7 @@ var Ti = (
|
|
|
3881
3881
|
var s = i || {};
|
|
3882
3882
|
s.formatters;
|
|
3883
3883
|
var a = In(s, ["formatters"]);
|
|
3884
|
-
this.ast = e.__parse(t,
|
|
3884
|
+
this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
|
|
3885
3885
|
} else
|
|
3886
3886
|
this.ast = t;
|
|
3887
3887
|
if (!Array.isArray(this.ast))
|
|
@@ -4107,24 +4107,24 @@ function ie() {
|
|
|
4107
4107
|
return Mi;
|
|
4108
4108
|
}
|
|
4109
4109
|
const je = Oe(!1);
|
|
4110
|
-
var Ri = Object.defineProperty,
|
|
4110
|
+
var Ri = Object.defineProperty, Gi = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fi = (e, t) => {
|
|
4111
4111
|
for (var r in t || (t = {}))
|
|
4112
|
-
Ui.call(t, r) &&
|
|
4113
|
-
if (
|
|
4114
|
-
for (var r of
|
|
4115
|
-
Di.call(t, r) &&
|
|
4112
|
+
Ui.call(t, r) && It(e, r, t[r]);
|
|
4113
|
+
if (Ct)
|
|
4114
|
+
for (var r of Ct(t))
|
|
4115
|
+
Di.call(t, r) && It(e, r, t[r]);
|
|
4116
4116
|
return e;
|
|
4117
|
-
}, ji = (e, t) =>
|
|
4117
|
+
}, ji = (e, t) => Gi(e, $i(t));
|
|
4118
4118
|
let st;
|
|
4119
4119
|
const He = Oe(null);
|
|
4120
|
-
function
|
|
4120
|
+
function Lt(e) {
|
|
4121
4121
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4122
4122
|
}
|
|
4123
4123
|
function Ie(e, t = ie().fallbackLocale) {
|
|
4124
|
-
const r =
|
|
4125
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4124
|
+
const r = Lt(e);
|
|
4125
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Lt(t)])] : r;
|
|
4126
4126
|
}
|
|
4127
|
-
function
|
|
4127
|
+
function J() {
|
|
4128
4128
|
return st ?? void 0;
|
|
4129
4129
|
}
|
|
4130
4130
|
He.subscribe((e) => {
|
|
@@ -4134,7 +4134,7 @@ const ki = (e) => {
|
|
|
4134
4134
|
if (e && Ai(e) && ot(e)) {
|
|
4135
4135
|
const { loadingDelay: t } = ie();
|
|
4136
4136
|
let r;
|
|
4137
|
-
return typeof window < "u" &&
|
|
4137
|
+
return typeof window < "u" && J() != null && t ? r = window.setTimeout(
|
|
4138
4138
|
() => je.set(!0),
|
|
4139
4139
|
t
|
|
4140
4140
|
) : je.set(!0), xr(e).then(() => {
|
|
@@ -4144,7 +4144,7 @@ const ki = (e) => {
|
|
|
4144
4144
|
});
|
|
4145
4145
|
}
|
|
4146
4146
|
return He.set(e);
|
|
4147
|
-
},
|
|
4147
|
+
}, W = ji(Fi({}, He), {
|
|
4148
4148
|
set: ki
|
|
4149
4149
|
}), Le = (e) => {
|
|
4150
4150
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -4153,12 +4153,12 @@ const ki = (e) => {
|
|
|
4153
4153
|
return i in t ? t[i] : t[i] = e(n);
|
|
4154
4154
|
};
|
|
4155
4155
|
};
|
|
4156
|
-
var Vi = Object.defineProperty, Be = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable,
|
|
4156
|
+
var Vi = Object.defineProperty, Be = Object.getOwnPropertySymbols, wr = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
4157
4157
|
for (var r in t || (t = {}))
|
|
4158
|
-
wr.call(t, r) &&
|
|
4158
|
+
wr.call(t, r) && Mt(e, r, t[r]);
|
|
4159
4159
|
if (Be)
|
|
4160
4160
|
for (var r of Be(t))
|
|
4161
|
-
Tr.call(t, r) &&
|
|
4161
|
+
Tr.call(t, r) && Mt(e, r, t[r]);
|
|
4162
4162
|
return e;
|
|
4163
4163
|
}, ue = (e, t) => {
|
|
4164
4164
|
var r = {};
|
|
@@ -4199,28 +4199,28 @@ const pe = (e, t) => {
|
|
|
4199
4199
|
}
|
|
4200
4200
|
), Zi = (e = {}) => {
|
|
4201
4201
|
var t = e, {
|
|
4202
|
-
locale: r =
|
|
4202
|
+
locale: r = J()
|
|
4203
4203
|
} = t, n = ue(t, [
|
|
4204
4204
|
"locale"
|
|
4205
4205
|
]);
|
|
4206
4206
|
return Xi(lt({ locale: r }, n));
|
|
4207
4207
|
}, Qi = (e = {}) => {
|
|
4208
4208
|
var t = e, {
|
|
4209
|
-
locale: r =
|
|
4209
|
+
locale: r = J()
|
|
4210
4210
|
} = t, n = ue(t, [
|
|
4211
4211
|
"locale"
|
|
4212
4212
|
]);
|
|
4213
4213
|
return Wi(lt({ locale: r }, n));
|
|
4214
4214
|
}, Ji = (e = {}) => {
|
|
4215
4215
|
var t = e, {
|
|
4216
|
-
locale: r =
|
|
4216
|
+
locale: r = J()
|
|
4217
4217
|
} = t, n = ue(t, [
|
|
4218
4218
|
"locale"
|
|
4219
4219
|
]);
|
|
4220
4220
|
return zi(lt({ locale: r }, n));
|
|
4221
4221
|
}, qi = Le(
|
|
4222
4222
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4223
|
-
(e, t =
|
|
4223
|
+
(e, t = J()) => new Ti(e, t, ie().formats, {
|
|
4224
4224
|
ignoreTag: ie().ignoreTag
|
|
4225
4225
|
})
|
|
4226
4226
|
), Yi = (e, t = {}) => {
|
|
@@ -4229,7 +4229,7 @@ const pe = (e, t) => {
|
|
|
4229
4229
|
typeof e == "object" && (s = e, e = s.id);
|
|
4230
4230
|
const {
|
|
4231
4231
|
values: a,
|
|
4232
|
-
locale: l =
|
|
4232
|
+
locale: l = J(),
|
|
4233
4233
|
default: u
|
|
4234
4234
|
} = s;
|
|
4235
4235
|
if (l == null)
|
|
@@ -4255,32 +4255,33 @@ const pe = (e, t) => {
|
|
|
4255
4255
|
);
|
|
4256
4256
|
}
|
|
4257
4257
|
return f;
|
|
4258
|
-
}, Ki = (e, t) => Ji(t).format(e), eo = (e, t) => Qi(t).format(e), to = (e, t) => Zi(t).format(e), ro = (e, t =
|
|
4259
|
-
se([
|
|
4260
|
-
se([
|
|
4261
|
-
se([
|
|
4262
|
-
se([
|
|
4258
|
+
}, Ki = (e, t) => Ji(t).format(e), eo = (e, t) => Qi(t).format(e), to = (e, t) => Zi(t).format(e), ro = (e, t = J()) => vr(e, t), no = se([W, ae], () => Yi);
|
|
4259
|
+
se([W], () => Ki);
|
|
4260
|
+
se([W], () => eo);
|
|
4261
|
+
se([W], () => to);
|
|
4262
|
+
se([W, ae], () => ro);
|
|
4263
4263
|
window.emWidgets = { topic: dn };
|
|
4264
4264
|
const io = (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));
|
|
4265
4265
|
function oo({ withLocale: e, translations: t }) {
|
|
4266
|
-
|
|
4267
|
-
r == null && (ae.set(t),
|
|
4266
|
+
W.subscribe((r) => {
|
|
4267
|
+
r == null && (ae.set(t), W.set(e));
|
|
4268
4268
|
});
|
|
4269
4269
|
}
|
|
4270
|
-
function
|
|
4270
|
+
function Rt(e, t) {
|
|
4271
4271
|
_r(e, t);
|
|
4272
4272
|
}
|
|
4273
4273
|
function so(e) {
|
|
4274
|
-
|
|
4274
|
+
W.set(e);
|
|
4275
4275
|
}
|
|
4276
|
-
const
|
|
4276
|
+
const Gt = {
|
|
4277
4277
|
en: {
|
|
4278
4278
|
loading: "Loading, please wait ...",
|
|
4279
4279
|
playNow: "Play Now",
|
|
4280
4280
|
casino: "CASINO",
|
|
4281
4281
|
sports: "SPORTSBOOK",
|
|
4282
4282
|
contribution: "Contribution",
|
|
4283
|
-
noGamesAvailable: "No games have been configured yet!"
|
|
4283
|
+
noGamesAvailable: "No games have been configured yet!",
|
|
4284
|
+
noMoreGames: "No more games"
|
|
4284
4285
|
}
|
|
4285
4286
|
};
|
|
4286
4287
|
function ao(e) {
|
|
@@ -4288,17 +4289,17 @@ function ao(e) {
|
|
|
4288
4289
|
}
|
|
4289
4290
|
function $t(e, t, r) {
|
|
4290
4291
|
const n = e.slice();
|
|
4291
|
-
return n[
|
|
4292
|
+
return n[32] = t[r], n;
|
|
4292
4293
|
}
|
|
4293
|
-
function
|
|
4294
|
+
function Ut(e, t, r) {
|
|
4294
4295
|
const n = e.slice();
|
|
4295
|
-
return n[
|
|
4296
|
+
return n[32] = t[r], n[36] = r, n;
|
|
4296
4297
|
}
|
|
4297
|
-
function
|
|
4298
|
+
function Dt(e) {
|
|
4298
4299
|
let t, r;
|
|
4299
4300
|
return {
|
|
4300
4301
|
c() {
|
|
4301
|
-
t =
|
|
4302
|
+
t = P("div"), r = P("casino-tournaments-tab"), O(r, "part", "TournamentGames"), O(r, "tabs", "casino,sports"), O(r, "tab", "casino"), O(r, "tid", at), O(
|
|
4302
4303
|
r,
|
|
4303
4304
|
"clientstyling",
|
|
4304
4305
|
/*clientstyling*/
|
|
@@ -4316,7 +4317,7 @@ function Ut(e) {
|
|
|
4316
4317
|
), v(t, "class", "GamesTabNav");
|
|
4317
4318
|
},
|
|
4318
4319
|
m(n, i) {
|
|
4319
|
-
|
|
4320
|
+
F(n, t, i), x(t, r);
|
|
4320
4321
|
},
|
|
4321
4322
|
p(n, i) {
|
|
4322
4323
|
i[0] & /*clientstyling*/
|
|
@@ -4340,61 +4341,83 @@ function Ut(e) {
|
|
|
4340
4341
|
);
|
|
4341
4342
|
},
|
|
4342
4343
|
d(n) {
|
|
4343
|
-
n &&
|
|
4344
|
+
n && $(t);
|
|
4344
4345
|
}
|
|
4345
4346
|
};
|
|
4346
4347
|
}
|
|
4347
4348
|
function uo(e) {
|
|
4348
4349
|
let t, r = (
|
|
4349
4350
|
/*$_*/
|
|
4350
|
-
e[
|
|
4351
|
+
e[13]("noGamesAvailable") + ""
|
|
4351
4352
|
), n;
|
|
4352
4353
|
return {
|
|
4353
4354
|
c() {
|
|
4354
|
-
t =
|
|
4355
|
+
t = P("div"), n = D(r), v(t, "class", "NoGames");
|
|
4355
4356
|
},
|
|
4356
4357
|
m(i, o) {
|
|
4357
|
-
|
|
4358
|
+
F(i, t, o), x(t, n);
|
|
4358
4359
|
},
|
|
4359
4360
|
p(i, o) {
|
|
4360
4361
|
o[0] & /*$_*/
|
|
4361
|
-
|
|
4362
|
-
i[
|
|
4362
|
+
8192 && r !== (r = /*$_*/
|
|
4363
|
+
i[13]("noGamesAvailable") + "") && X(n, r);
|
|
4363
4364
|
},
|
|
4364
4365
|
d(i) {
|
|
4365
|
-
i &&
|
|
4366
|
+
i && $(t);
|
|
4366
4367
|
}
|
|
4367
4368
|
};
|
|
4368
4369
|
}
|
|
4369
4370
|
function lo(e) {
|
|
4370
4371
|
let t, r = (
|
|
4371
4372
|
/*$_*/
|
|
4372
|
-
e[
|
|
4373
|
+
e[13]("noMoreGames") + ""
|
|
4373
4374
|
), n;
|
|
4374
4375
|
return {
|
|
4375
4376
|
c() {
|
|
4376
|
-
t =
|
|
4377
|
+
t = P("div"), n = D(r), v(t, "class", "NoGames");
|
|
4377
4378
|
},
|
|
4378
4379
|
m(i, o) {
|
|
4379
|
-
|
|
4380
|
+
F(i, t, o), x(t, n);
|
|
4380
4381
|
},
|
|
4381
4382
|
p(i, o) {
|
|
4382
4383
|
o[0] & /*$_*/
|
|
4383
|
-
|
|
4384
|
-
i[
|
|
4384
|
+
8192 && r !== (r = /*$_*/
|
|
4385
|
+
i[13]("noMoreGames") + "") && X(n, r);
|
|
4385
4386
|
},
|
|
4386
4387
|
d(i) {
|
|
4387
|
-
i &&
|
|
4388
|
+
i && $(t);
|
|
4388
4389
|
}
|
|
4389
4390
|
};
|
|
4390
4391
|
}
|
|
4391
4392
|
function ho(e) {
|
|
4393
|
+
let t, r = (
|
|
4394
|
+
/*$_*/
|
|
4395
|
+
e[13]("loading") + ""
|
|
4396
|
+
), n;
|
|
4397
|
+
return {
|
|
4398
|
+
c() {
|
|
4399
|
+
t = P("div"), n = D(r), v(t, "class", "LoadingGames");
|
|
4400
|
+
},
|
|
4401
|
+
m(i, o) {
|
|
4402
|
+
F(i, t, o), x(t, n);
|
|
4403
|
+
},
|
|
4404
|
+
p(i, o) {
|
|
4405
|
+
o[0] & /*$_*/
|
|
4406
|
+
8192 && r !== (r = /*$_*/
|
|
4407
|
+
i[13]("loading") + "") && X(n, r);
|
|
4408
|
+
},
|
|
4409
|
+
d(i) {
|
|
4410
|
+
i && $(t);
|
|
4411
|
+
}
|
|
4412
|
+
};
|
|
4413
|
+
}
|
|
4414
|
+
function co(e) {
|
|
4392
4415
|
let t, r = Te(
|
|
4393
4416
|
/*casinoGames*/
|
|
4394
4417
|
e[8]
|
|
4395
4418
|
), n = [];
|
|
4396
4419
|
for (let i = 0; i < r.length; i += 1)
|
|
4397
|
-
n[i] =
|
|
4420
|
+
n[i] = Ft(Ut(e, r, i));
|
|
4398
4421
|
return {
|
|
4399
4422
|
c() {
|
|
4400
4423
|
for (let i = 0; i < n.length; i += 1)
|
|
@@ -4404,19 +4427,19 @@ function ho(e) {
|
|
|
4404
4427
|
m(i, o) {
|
|
4405
4428
|
for (let s = 0; s < n.length; s += 1)
|
|
4406
4429
|
n[s] && n[s].m(i, o);
|
|
4407
|
-
|
|
4430
|
+
F(i, t, o);
|
|
4408
4431
|
},
|
|
4409
4432
|
p(i, o) {
|
|
4410
4433
|
if (o[0] & /*gameClicked, casinoGames, $_*/
|
|
4411
|
-
|
|
4434
|
+
41216) {
|
|
4412
4435
|
r = Te(
|
|
4413
4436
|
/*casinoGames*/
|
|
4414
4437
|
i[8]
|
|
4415
4438
|
);
|
|
4416
4439
|
let s;
|
|
4417
4440
|
for (s = 0; s < r.length; s += 1) {
|
|
4418
|
-
const a =
|
|
4419
|
-
n[s] ? n[s].p(a, o) : (n[s] =
|
|
4441
|
+
const a = Ut(i, r, s);
|
|
4442
|
+
n[s] ? n[s].p(a, o) : (n[s] = Ft(a), n[s].c(), n[s].m(t.parentNode, t));
|
|
4420
4443
|
}
|
|
4421
4444
|
for (; s < n.length; s += 1)
|
|
4422
4445
|
n[s].d(1);
|
|
@@ -4424,244 +4447,243 @@ function ho(e) {
|
|
|
4424
4447
|
}
|
|
4425
4448
|
},
|
|
4426
4449
|
d(i) {
|
|
4427
|
-
i &&
|
|
4450
|
+
i && $(t), Wt(n, i);
|
|
4428
4451
|
}
|
|
4429
4452
|
};
|
|
4430
4453
|
}
|
|
4431
|
-
function
|
|
4454
|
+
function Ft(e) {
|
|
4432
4455
|
let t, r, n = (
|
|
4433
4456
|
/*$_*/
|
|
4434
|
-
e[
|
|
4457
|
+
e[13]("playNow") + ""
|
|
4435
4458
|
), i, o, s, a, l, u, h, f, c;
|
|
4436
4459
|
return {
|
|
4437
4460
|
c() {
|
|
4438
|
-
t =
|
|
4439
|
-
e[
|
|
4440
|
-
e[
|
|
4441
|
-
e[
|
|
4442
|
-
e[
|
|
4461
|
+
t = P("div"), r = P("span"), i = D(n), o = j(), s = P("ui-image"), h = j(), v(r, "class", "PlayNowButton"), mt(s.src, a = /*item*/
|
|
4462
|
+
e[32].thumbnail) || O(s, "src", a), O(s, "width", "132px"), O(s, "height", "100px"), O(s, "alt", l = /*item*/
|
|
4463
|
+
e[32].name), O(s, "title", u = /*item*/
|
|
4464
|
+
e[32].name), v(t, "class", "item"), v(t, "id", "g_" + /*idx*/
|
|
4465
|
+
e[36]), v(t, "role", "button"), v(t, "tabindex", "0");
|
|
4443
4466
|
},
|
|
4444
4467
|
m(d, b) {
|
|
4445
|
-
|
|
4468
|
+
F(d, t, b), x(t, r), x(r, i), x(t, o), x(t, s), x(t, h), f || (c = ke(t, "click", function() {
|
|
4446
4469
|
Pe(
|
|
4447
4470
|
/*gameClicked*/
|
|
4448
|
-
e[
|
|
4471
|
+
e[15](
|
|
4449
4472
|
/*item*/
|
|
4450
|
-
e[
|
|
4473
|
+
e[32]
|
|
4451
4474
|
)
|
|
4452
|
-
) && e[
|
|
4475
|
+
) && e[15](
|
|
4453
4476
|
/*item*/
|
|
4454
|
-
e[
|
|
4477
|
+
e[32]
|
|
4455
4478
|
).apply(this, arguments);
|
|
4456
4479
|
}), f = !0);
|
|
4457
4480
|
},
|
|
4458
4481
|
p(d, b) {
|
|
4459
4482
|
e = d, b[0] & /*$_*/
|
|
4460
|
-
|
|
4461
|
-
e[
|
|
4462
|
-
256 && !
|
|
4463
|
-
e[
|
|
4483
|
+
8192 && n !== (n = /*$_*/
|
|
4484
|
+
e[13]("playNow") + "") && X(i, n), b[0] & /*casinoGames*/
|
|
4485
|
+
256 && !mt(s.src, a = /*item*/
|
|
4486
|
+
e[32].thumbnail) && O(s, "src", a), b[0] & /*casinoGames*/
|
|
4464
4487
|
256 && l !== (l = /*item*/
|
|
4465
|
-
e[
|
|
4488
|
+
e[32].name) && O(s, "alt", l), b[0] & /*casinoGames*/
|
|
4466
4489
|
256 && u !== (u = /*item*/
|
|
4467
|
-
e[
|
|
4490
|
+
e[32].name) && O(s, "title", u);
|
|
4468
4491
|
},
|
|
4469
4492
|
d(d) {
|
|
4470
|
-
d &&
|
|
4493
|
+
d && $(t), f = !1, c();
|
|
4471
4494
|
}
|
|
4472
4495
|
};
|
|
4473
4496
|
}
|
|
4474
|
-
function
|
|
4497
|
+
function fo(e) {
|
|
4475
4498
|
let t, r, n, i, o, s, a, l = (
|
|
4476
4499
|
/*$_*/
|
|
4477
|
-
e[
|
|
4500
|
+
e[13]("previous") + ""
|
|
4478
4501
|
), u, h, f, c, d, b, g = (
|
|
4479
4502
|
/*$_*/
|
|
4480
|
-
e[
|
|
4481
|
-
),
|
|
4503
|
+
e[13]("next") + ""
|
|
4504
|
+
), T, A, _, m, H, w, I, M, z;
|
|
4482
4505
|
return {
|
|
4483
4506
|
c() {
|
|
4484
|
-
t =
|
|
4485
|
-
e[
|
|
4486
|
-
e[
|
|
4487
|
-
!e[
|
|
4488
|
-
e[
|
|
4489
|
-
e[
|
|
4490
|
-
!e[
|
|
4507
|
+
t = P("div"), r = P("button"), n = be("svg"), i = be("path"), s = j(), a = P("span"), u = D(l), c = j(), d = P("button"), b = P("span"), T = D(g), A = j(), _ = be("svg"), m = be("path"), v(i, "fill", o = /*hasPreviousPage*/
|
|
4508
|
+
e[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(i, "class", "a"), v(i, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(i, "transform", "translate(19.246 -6.188) rotate(90)"), v(n, "xmlns", "http://www.w3.org/2000/svg"), v(n, "width", "8"), v(n, "height", "13.992"), v(n, "viewBox", "0 0 8 13.992"), v(a, "class", "TournamentsPaginationControlsText"), v(r, "class", h = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
|
|
4509
|
+
e[10] ? "" : "Disabled")), r.disabled = f = /*hasPreviousPage*/
|
|
4510
|
+
!e[10], v(b, "class", "TournamentsPaginationControlsText"), v(m, "fill", H = /*hasNextPage*/
|
|
4511
|
+
e[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)"), v(m, "class", "a"), v(m, "d", "M13.186,16.835l5.291-5.295a1,1,0,0,1,1.412,0,1.008,1.008,0,0,1,0,1.416l-5.995,6a1,1,0,0,1-1.379.029L6.479,12.961a1,1,0,0,1,1.412-1.416Z"), v(m, "transform", "translate(-11.246 20.179) rotate(-90)"), v(_, "xmlns", "http://www.w3.org/2000/svg"), v(_, "width", "8"), v(_, "height", "13.992"), v(_, "viewBox", "0 0 8 13.992"), v(d, "class", w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4512
|
+
e[11] ? "" : "Disabled")), d.disabled = I = /*hasNextPage*/
|
|
4513
|
+
!e[11], v(t, "class", "TournamentsPaginationControlsArea");
|
|
4491
4514
|
},
|
|
4492
|
-
m(
|
|
4493
|
-
|
|
4515
|
+
m(N, L) {
|
|
4516
|
+
F(N, t, L), x(t, r), x(r, n), x(n, i), x(r, s), x(r, a), x(a, u), x(t, c), x(t, d), x(d, b), x(b, T), x(d, A), x(d, _), x(_, m), M || (z = [
|
|
4494
4517
|
ke(
|
|
4495
4518
|
r,
|
|
4496
4519
|
"click",
|
|
4497
4520
|
/*gotoPage*/
|
|
4498
|
-
e[
|
|
4521
|
+
e[16].bind(this, -1)
|
|
4499
4522
|
),
|
|
4500
4523
|
ke(
|
|
4501
4524
|
d,
|
|
4502
4525
|
"click",
|
|
4503
4526
|
/*gotoPage*/
|
|
4504
|
-
e[
|
|
4527
|
+
e[16].bind(this, 1)
|
|
4505
4528
|
)
|
|
4506
|
-
],
|
|
4529
|
+
], M = !0);
|
|
4507
4530
|
},
|
|
4508
|
-
p(
|
|
4531
|
+
p(N, L) {
|
|
4509
4532
|
L[0] & /*hasPreviousPage*/
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
!
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
!
|
|
4533
|
+
1024 && o !== (o = /*hasPreviousPage*/
|
|
4534
|
+
N[10] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(i, "fill", o), L[0] & /*$_*/
|
|
4535
|
+
8192 && l !== (l = /*$_*/
|
|
4536
|
+
N[13]("previous") + "") && X(u, l), L[0] & /*hasPreviousPage*/
|
|
4537
|
+
1024 && h !== (h = "TournamentsButton TournamentsPaginationControls " + (/*hasPreviousPage*/
|
|
4538
|
+
N[10] ? "" : "Disabled")) && v(r, "class", h), L[0] & /*hasPreviousPage*/
|
|
4539
|
+
1024 && f !== (f = /*hasPreviousPage*/
|
|
4540
|
+
!N[10]) && (r.disabled = f), L[0] & /*$_*/
|
|
4541
|
+
8192 && g !== (g = /*$_*/
|
|
4542
|
+
N[13]("next") + "") && X(T, g), L[0] & /*hasNextPage*/
|
|
4543
|
+
2048 && H !== (H = /*hasNextPage*/
|
|
4544
|
+
N[11] ? "var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))" : "var(--emw--color-gray-100, #E6E6E6)") && v(m, "fill", H), L[0] & /*hasNextPage*/
|
|
4545
|
+
2048 && w !== (w = "TournamentsButton TournamentsPaginationControls " + (/*hasNextPage*/
|
|
4546
|
+
N[11] ? "" : "Disabled")) && v(d, "class", w), L[0] & /*hasNextPage*/
|
|
4547
|
+
2048 && I !== (I = /*hasNextPage*/
|
|
4548
|
+
!N[11]) && (d.disabled = I);
|
|
4526
4549
|
},
|
|
4527
|
-
d(
|
|
4528
|
-
|
|
4550
|
+
d(N) {
|
|
4551
|
+
N && $(t), M = !1, oe(z);
|
|
4529
4552
|
}
|
|
4530
4553
|
};
|
|
4531
4554
|
}
|
|
4532
4555
|
function jt(e) {
|
|
4533
4556
|
let t, r = (
|
|
4534
4557
|
/*item*/
|
|
4535
|
-
e[
|
|
4558
|
+
e[32].rule + ""
|
|
4536
4559
|
), n, i, o = (
|
|
4537
4560
|
/*$_*/
|
|
4538
|
-
e[
|
|
4561
|
+
e[13]("contribution") + ""
|
|
4539
4562
|
), s;
|
|
4540
4563
|
return {
|
|
4541
4564
|
c() {
|
|
4542
|
-
t =
|
|
4565
|
+
t = P("li"), n = D(r), i = j(), s = D(o), v(t, "part", "li"), v(t, "class", "Market");
|
|
4543
4566
|
},
|
|
4544
4567
|
m(a, l) {
|
|
4545
|
-
|
|
4568
|
+
F(a, t, l), x(t, n), x(t, i), x(t, s);
|
|
4546
4569
|
},
|
|
4547
4570
|
p(a, l) {
|
|
4548
4571
|
l[0] & /*sportsRules*/
|
|
4549
4572
|
128 && r !== (r = /*item*/
|
|
4550
|
-
a[
|
|
4551
|
-
|
|
4552
|
-
a[
|
|
4573
|
+
a[32].rule + "") && X(n, r), l[0] & /*$_*/
|
|
4574
|
+
8192 && o !== (o = /*$_*/
|
|
4575
|
+
a[13]("contribution") + "") && X(s, o);
|
|
4553
4576
|
},
|
|
4554
4577
|
d(a) {
|
|
4555
|
-
a &&
|
|
4578
|
+
a && $(t);
|
|
4556
4579
|
}
|
|
4557
4580
|
};
|
|
4558
4581
|
}
|
|
4559
|
-
function
|
|
4582
|
+
function po(e) {
|
|
4560
4583
|
let t, r, n, i, o, s, a, l, u, h, f, c = (
|
|
4561
4584
|
/*tournamentdetails*/
|
|
4562
4585
|
e[3] && /*tournamentdetails*/
|
|
4563
4586
|
e[3].wallet?.sports && /*tournamentdetails*/
|
|
4564
|
-
e[3].wallet?.casino &&
|
|
4587
|
+
e[3].wallet?.casino && Dt(e)
|
|
4565
4588
|
);
|
|
4566
|
-
function d(m,
|
|
4589
|
+
function d(m, H) {
|
|
4567
4590
|
return (
|
|
4568
4591
|
/*casinoGames*/
|
|
4569
|
-
m[8]?.length ?
|
|
4592
|
+
m[8]?.length ? co : (
|
|
4570
4593
|
/*isLoadingGames*/
|
|
4571
|
-
m[
|
|
4594
|
+
m[12] ? ho : (
|
|
4595
|
+
/*noMoreGamesWhenPagination*/
|
|
4596
|
+
m[9] ? lo : uo
|
|
4597
|
+
)
|
|
4572
4598
|
)
|
|
4573
4599
|
);
|
|
4574
4600
|
}
|
|
4575
|
-
let b = d(e), g = b(e),
|
|
4576
|
-
|
|
4577
|
-
e[8]?.length && !/*isMobileDevice*/
|
|
4578
|
-
e[13] && Ft(e)
|
|
4579
|
-
), P = Te(
|
|
4601
|
+
let b = d(e), g = b(e), T = !/*isMobileDevice*/
|
|
4602
|
+
e[14] && fo(e), A = Te(
|
|
4580
4603
|
/*sportsRules*/
|
|
4581
4604
|
e[7]
|
|
4582
|
-
),
|
|
4583
|
-
for (let m = 0; m <
|
|
4584
|
-
|
|
4605
|
+
), _ = [];
|
|
4606
|
+
for (let m = 0; m < A.length; m += 1)
|
|
4607
|
+
_[m] = jt($t(e, A, m));
|
|
4585
4608
|
return {
|
|
4586
4609
|
c() {
|
|
4587
|
-
t =
|
|
4588
|
-
for (let m = 0; m <
|
|
4589
|
-
|
|
4610
|
+
t = P("div"), c && c.c(), r = j(), n = P("div"), i = P("div"), o = P("div"), g.c(), s = j(), T && T.c(), l = j(), u = P("div"), h = P("ul");
|
|
4611
|
+
for (let m = 0; m < _.length; m += 1)
|
|
4612
|
+
_[m].c();
|
|
4590
4613
|
v(o, "class", "GameList items"), v(i, "class", a = "TabContent GamesContent " + /*activeTab*/
|
|
4591
4614
|
(e[6] != "casino" ? "hidden" : "")), v(h, "class", "SportsPage"), v(u, "class", f = "TabContent GamesContent " + /*activeTab*/
|
|
4592
4615
|
(e[6] != "sports" ? "hidden" : "")), v(n, "class", "GamesWrapper"), v(
|
|
4593
4616
|
t,
|
|
4594
4617
|
"class",
|
|
4595
4618
|
/*isMobileDevice*/
|
|
4596
|
-
e[
|
|
4619
|
+
e[14] ? "MobileClass" : ""
|
|
4597
4620
|
);
|
|
4598
4621
|
},
|
|
4599
|
-
m(m,
|
|
4600
|
-
|
|
4601
|
-
for (let
|
|
4602
|
-
w
|
|
4603
|
-
e[
|
|
4622
|
+
m(m, H) {
|
|
4623
|
+
F(m, t, H), c && c.m(t, null), x(t, r), x(t, n), x(n, i), x(i, o), g.m(o, null), e[19](o), x(i, s), T && T.m(i, null), x(n, l), x(n, u), x(u, h);
|
|
4624
|
+
for (let w = 0; w < _.length; w += 1)
|
|
4625
|
+
_[w] && _[w].m(h, null);
|
|
4626
|
+
e[20](t);
|
|
4604
4627
|
},
|
|
4605
|
-
p(m,
|
|
4628
|
+
p(m, H) {
|
|
4606
4629
|
if (/*tournamentdetails*/
|
|
4607
4630
|
m[3] && /*tournamentdetails*/
|
|
4608
4631
|
m[3].wallet?.sports && /*tournamentdetails*/
|
|
4609
|
-
m[3].wallet?.casino ? c ? c.p(m,
|
|
4610
|
-
m[
|
|
4611
|
-
m[13] ? y ? y.p(m, S) : (y = Ft(m), y.c(), y.m(i, null)) : y && (y.d(1), y = null), S[0] & /*activeTab*/
|
|
4632
|
+
m[3].wallet?.casino ? c ? c.p(m, H) : (c = Dt(m), c.c(), c.m(t, r)) : c && (c.d(1), c = null), b === (b = d(m)) && g ? g.p(m, H) : (g.d(1), g = b(m), g && (g.c(), g.m(o, null))), /*isMobileDevice*/
|
|
4633
|
+
m[14] || T.p(m, H), H[0] & /*activeTab*/
|
|
4612
4634
|
64 && a !== (a = "TabContent GamesContent " + /*activeTab*/
|
|
4613
|
-
(m[6] != "casino" ? "hidden" : "")) && v(i, "class", a),
|
|
4614
|
-
|
|
4615
|
-
|
|
4635
|
+
(m[6] != "casino" ? "hidden" : "")) && v(i, "class", a), H[0] & /*$_, sportsRules*/
|
|
4636
|
+
8320) {
|
|
4637
|
+
A = Te(
|
|
4616
4638
|
/*sportsRules*/
|
|
4617
4639
|
m[7]
|
|
4618
4640
|
);
|
|
4619
|
-
let
|
|
4620
|
-
for (
|
|
4621
|
-
const
|
|
4622
|
-
w
|
|
4641
|
+
let w;
|
|
4642
|
+
for (w = 0; w < A.length; w += 1) {
|
|
4643
|
+
const I = $t(m, A, w);
|
|
4644
|
+
_[w] ? _[w].p(I, H) : (_[w] = jt(I), _[w].c(), _[w].m(h, null));
|
|
4623
4645
|
}
|
|
4624
|
-
for (;
|
|
4625
|
-
w
|
|
4626
|
-
|
|
4646
|
+
for (; w < _.length; w += 1)
|
|
4647
|
+
_[w].d(1);
|
|
4648
|
+
_.length = A.length;
|
|
4627
4649
|
}
|
|
4628
|
-
|
|
4650
|
+
H[0] & /*activeTab*/
|
|
4629
4651
|
64 && f !== (f = "TabContent GamesContent " + /*activeTab*/
|
|
4630
4652
|
(m[6] != "sports" ? "hidden" : "")) && v(u, "class", f);
|
|
4631
4653
|
},
|
|
4632
|
-
i:
|
|
4633
|
-
o:
|
|
4654
|
+
i: G,
|
|
4655
|
+
o: G,
|
|
4634
4656
|
d(m) {
|
|
4635
|
-
m &&
|
|
4657
|
+
m && $(t), c && c.d(), g.d(), e[19](null), T && T.d(), Wt(_, m), e[20](null);
|
|
4636
4658
|
}
|
|
4637
4659
|
};
|
|
4638
4660
|
}
|
|
4639
4661
|
let at = "gameTab";
|
|
4640
|
-
function
|
|
4662
|
+
function mo(e, t, r) {
|
|
4641
4663
|
let n;
|
|
4642
|
-
Or(e, no, (p) => r(
|
|
4643
|
-
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, d = window.navigator.userAgent, b, g,
|
|
4664
|
+
Or(e, no, (p) => r(13, n = p));
|
|
4665
|
+
let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: l = "en" } = t, u = "casino", h = [], f = [], c, d = window.navigator.userAgent, b, g, T, A = io(d), _ = !1;
|
|
4644
4666
|
oo({ withLocale: "en", translations: {} });
|
|
4645
|
-
const
|
|
4667
|
+
const m = () => {
|
|
4646
4668
|
fetch(a).then((p) => p.json()).then((p) => {
|
|
4647
|
-
Object.keys(p).forEach((
|
|
4648
|
-
|
|
4669
|
+
Object.keys(p).forEach((R) => {
|
|
4670
|
+
Rt(R, p[R]);
|
|
4649
4671
|
});
|
|
4650
4672
|
}).catch((p) => {
|
|
4651
4673
|
console.log(p);
|
|
4652
4674
|
});
|
|
4653
4675
|
};
|
|
4654
|
-
Object.keys(
|
|
4655
|
-
|
|
4676
|
+
Object.keys(Gt).forEach((p) => {
|
|
4677
|
+
Rt(p, Gt[p]);
|
|
4656
4678
|
});
|
|
4657
|
-
const
|
|
4679
|
+
const H = () => {
|
|
4658
4680
|
so(l), setTimeout(
|
|
4659
4681
|
() => {
|
|
4660
|
-
|
|
4682
|
+
w();
|
|
4661
4683
|
},
|
|
4662
4684
|
10
|
|
4663
4685
|
);
|
|
4664
|
-
},
|
|
4686
|
+
}, w = () => {
|
|
4665
4687
|
window.postMessage(
|
|
4666
4688
|
{
|
|
4667
4689
|
type: "TournamentsTabsLocalize",
|
|
@@ -4672,7 +4694,7 @@ function fo(e, t, r) {
|
|
|
4672
4694
|
},
|
|
4673
4695
|
window.location.href
|
|
4674
4696
|
);
|
|
4675
|
-
},
|
|
4697
|
+
}, I = (p) => {
|
|
4676
4698
|
window.postMessage(
|
|
4677
4699
|
{
|
|
4678
4700
|
type: "TournamentGameAction",
|
|
@@ -4683,9 +4705,9 @@ function fo(e, t, r) {
|
|
|
4683
4705
|
window.location.href
|
|
4684
4706
|
);
|
|
4685
4707
|
};
|
|
4686
|
-
let
|
|
4687
|
-
const
|
|
4688
|
-
!
|
|
4708
|
+
let M = !1, z = !1, N = !1;
|
|
4709
|
+
const L = (p) => {
|
|
4710
|
+
!M && p === -1 || !z && p === 1 || (r(12, N = !0), r(8, f = []), window.postMessage(
|
|
4689
4711
|
{
|
|
4690
4712
|
type: "TournamentsLoadMoreGames",
|
|
4691
4713
|
id: c.id,
|
|
@@ -4693,45 +4715,45 @@ function fo(e, t, r) {
|
|
|
4693
4715
|
},
|
|
4694
4716
|
window.location.href
|
|
4695
4717
|
));
|
|
4696
|
-
},
|
|
4697
|
-
r(8, f = c.games?.items || []),
|
|
4718
|
+
}, ht = () => {
|
|
4719
|
+
r(8, f = c.games?.items || []), r(9, _ = !1), r(10, M = !1), r(11, z = c.games?.total > c.games?.items.length), ft();
|
|
4698
4720
|
const p = c.metadata?.sports?.rules;
|
|
4699
4721
|
if (p) {
|
|
4700
4722
|
r(6, u = c.wallet.casino ? "casino" : "sports");
|
|
4701
4723
|
try {
|
|
4702
|
-
const
|
|
4703
|
-
r(7, h =
|
|
4704
|
-
} catch (
|
|
4705
|
-
console.error("Error parsing tournament rules",
|
|
4724
|
+
const R = JSON.parse(p);
|
|
4725
|
+
r(7, h = R[l] || R["*"]);
|
|
4726
|
+
} catch (R) {
|
|
4727
|
+
console.error("Error parsing tournament rules", R);
|
|
4706
4728
|
}
|
|
4707
4729
|
}
|
|
4708
|
-
},
|
|
4730
|
+
}, ct = (p) => {
|
|
4709
4731
|
if (!p.data || !p.data.type)
|
|
4710
4732
|
return;
|
|
4711
|
-
const
|
|
4733
|
+
const R = p.data.tid || "";
|
|
4712
4734
|
switch (p.data.type) {
|
|
4713
4735
|
case "TournamentsTabSwitch":
|
|
4714
|
-
|
|
4736
|
+
R === at && r(6, u = p.data.tab);
|
|
4715
4737
|
break;
|
|
4716
4738
|
case "TournamentsTabListenerLoaded":
|
|
4717
|
-
|
|
4739
|
+
w();
|
|
4718
4740
|
break;
|
|
4719
4741
|
case "TournamentsGamesUpdate":
|
|
4720
|
-
r(3, c = p.data.details),
|
|
4742
|
+
r(3, c = p.data.details), ht();
|
|
4721
4743
|
break;
|
|
4722
4744
|
case "TournamentsLoadedMoreGames":
|
|
4723
|
-
|
|
4745
|
+
A ? p.data.games?.items.length && (r(8, f = [...f, ...p.data.games.items]), ft()) : (r(12, N = !1), r(8, f = [...p.data.games.items]), r(11, z = p.data.hasNextPage), r(10, M = p.data.hasPreviousPage), r(9, _ = !f.length));
|
|
4724
4746
|
break;
|
|
4725
4747
|
default:
|
|
4726
4748
|
console.warn(`Unhandled message type: ${p.data.type}`);
|
|
4727
4749
|
break;
|
|
4728
4750
|
}
|
|
4729
4751
|
};
|
|
4730
|
-
let
|
|
4752
|
+
let Z;
|
|
4731
4753
|
const Sr = (p) => {
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
Pr.isIntersecting && (
|
|
4754
|
+
Z = p?.lastElementChild, !(!A || T || !p || !Z) && (T = new IntersectionObserver((R) => {
|
|
4755
|
+
R.forEach((Pr) => {
|
|
4756
|
+
Pr.isIntersecting && (T.unobserve(Z), window.postMessage(
|
|
4735
4757
|
{
|
|
4736
4758
|
type: "TournamentsLoadMoreGames",
|
|
4737
4759
|
id: c.id,
|
|
@@ -4741,17 +4763,17 @@ function fo(e, t, r) {
|
|
|
4741
4763
|
));
|
|
4742
4764
|
});
|
|
4743
4765
|
}));
|
|
4744
|
-
},
|
|
4745
|
-
!
|
|
4766
|
+
}, ft = () => {
|
|
4767
|
+
!A || !Z || !T || !f.length || (T.unobserve(Z), Z = g.lastElementChild, T.observe(Z));
|
|
4746
4768
|
};
|
|
4747
|
-
|
|
4769
|
+
$r(() => A && T && T.disconnect()), Gr(() => (window.postMessage(
|
|
4748
4770
|
{
|
|
4749
4771
|
type: "TournamentsGamesListenerLoaded",
|
|
4750
4772
|
gamesTabTid: at
|
|
4751
4773
|
},
|
|
4752
4774
|
window.location.href
|
|
4753
|
-
), window.addEventListener("message",
|
|
4754
|
-
window.removeEventListener("message",
|
|
4775
|
+
), window.addEventListener("message", ct, !1), () => {
|
|
4776
|
+
window.removeEventListener("message", ct);
|
|
4755
4777
|
}));
|
|
4756
4778
|
function Hr(p) {
|
|
4757
4779
|
we[p ? "unshift" : "push"](() => {
|
|
@@ -4764,12 +4786,12 @@ function fo(e, t, r) {
|
|
|
4764
4786
|
});
|
|
4765
4787
|
}
|
|
4766
4788
|
return e.$$set = (p) => {
|
|
4767
|
-
"clientstyling" in p && r(0, i = p.clientstyling), "clientstylingurl" in p && r(1, o = p.clientstylingurl), "mbsource" in p && r(2, s = p.mbsource), "translationurl" in p && r(
|
|
4789
|
+
"clientstyling" in p && r(0, i = p.clientstyling), "clientstylingurl" in p && r(1, o = p.clientstylingurl), "mbsource" in p && r(2, s = p.mbsource), "translationurl" in p && r(17, a = p.translationurl), "lang" in p && r(18, l = p.lang);
|
|
4768
4790
|
}, e.$$.update = () => {
|
|
4769
4791
|
e.$$.dirty[0] & /*tournamentdetails*/
|
|
4770
|
-
8 && c &&
|
|
4771
|
-
|
|
4772
|
-
|
|
4792
|
+
8 && c && ht(), e.$$.dirty[0] & /*lang*/
|
|
4793
|
+
262144 && l && H(), e.$$.dirty[0] & /*translationurl*/
|
|
4794
|
+
131072 && a && m(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4773
4795
|
17 && i && b && Yr(b, i), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4774
4796
|
18 && o && b && Kr(b, o), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4775
4797
|
20 && s && b && en(b, `${s}.Style`), e.$$.dirty[0] & /*gameListEle*/
|
|
@@ -4784,33 +4806,34 @@ function fo(e, t, r) {
|
|
|
4784
4806
|
u,
|
|
4785
4807
|
h,
|
|
4786
4808
|
f,
|
|
4809
|
+
_,
|
|
4810
|
+
M,
|
|
4811
|
+
z,
|
|
4787
4812
|
N,
|
|
4788
|
-
$,
|
|
4789
|
-
J,
|
|
4790
4813
|
n,
|
|
4791
|
-
|
|
4792
|
-
T,
|
|
4814
|
+
A,
|
|
4793
4815
|
I,
|
|
4816
|
+
L,
|
|
4794
4817
|
a,
|
|
4795
4818
|
l,
|
|
4796
4819
|
Hr,
|
|
4797
4820
|
Br
|
|
4798
4821
|
];
|
|
4799
4822
|
}
|
|
4800
|
-
class
|
|
4823
|
+
class bo extends Jr {
|
|
4801
4824
|
constructor(t) {
|
|
4802
4825
|
super(), Zr(
|
|
4803
4826
|
this,
|
|
4804
4827
|
t,
|
|
4805
|
-
|
|
4806
|
-
|
|
4828
|
+
mo,
|
|
4829
|
+
po,
|
|
4807
4830
|
Vt,
|
|
4808
4831
|
{
|
|
4809
4832
|
clientstyling: 0,
|
|
4810
4833
|
clientstylingurl: 1,
|
|
4811
4834
|
mbsource: 2,
|
|
4812
|
-
translationurl:
|
|
4813
|
-
lang:
|
|
4835
|
+
translationurl: 17,
|
|
4836
|
+
lang: 18
|
|
4814
4837
|
},
|
|
4815
4838
|
ao,
|
|
4816
4839
|
[-1, -1]
|
|
@@ -4820,34 +4843,34 @@ class po extends Jr {
|
|
|
4820
4843
|
return this.$$.ctx[0];
|
|
4821
4844
|
}
|
|
4822
4845
|
set clientstyling(t) {
|
|
4823
|
-
this.$$set({ clientstyling: t }),
|
|
4846
|
+
this.$$set({ clientstyling: t }), Q();
|
|
4824
4847
|
}
|
|
4825
4848
|
get clientstylingurl() {
|
|
4826
4849
|
return this.$$.ctx[1];
|
|
4827
4850
|
}
|
|
4828
4851
|
set clientstylingurl(t) {
|
|
4829
|
-
this.$$set({ clientstylingurl: t }),
|
|
4852
|
+
this.$$set({ clientstylingurl: t }), Q();
|
|
4830
4853
|
}
|
|
4831
4854
|
get mbsource() {
|
|
4832
4855
|
return this.$$.ctx[2];
|
|
4833
4856
|
}
|
|
4834
4857
|
set mbsource(t) {
|
|
4835
|
-
this.$$set({ mbsource: t }),
|
|
4858
|
+
this.$$set({ mbsource: t }), Q();
|
|
4836
4859
|
}
|
|
4837
4860
|
get translationurl() {
|
|
4838
|
-
return this.$$.ctx[
|
|
4861
|
+
return this.$$.ctx[17];
|
|
4839
4862
|
}
|
|
4840
4863
|
set translationurl(t) {
|
|
4841
|
-
this.$$set({ translationurl: t }),
|
|
4864
|
+
this.$$set({ translationurl: t }), Q();
|
|
4842
4865
|
}
|
|
4843
4866
|
get lang() {
|
|
4844
|
-
return this.$$.ctx[
|
|
4867
|
+
return this.$$.ctx[18];
|
|
4845
4868
|
}
|
|
4846
4869
|
set lang(t) {
|
|
4847
|
-
this.$$set({ lang: t }),
|
|
4870
|
+
this.$$set({ lang: t }), Q();
|
|
4848
4871
|
}
|
|
4849
4872
|
}
|
|
4850
|
-
Qr(
|
|
4873
|
+
Qr(bo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
|
|
4851
4874
|
export {
|
|
4852
|
-
|
|
4875
|
+
bo as C
|
|
4853
4876
|
};
|