@everymatrix/casino-tournaments-thumbnail-controller 1.86.3 → 1.86.5
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/{CasinoTournamentsThumbnail-b84P5LC-.js → CasinoTournamentsThumbnail-Cm8ygS_j.js} +636 -668
- package/components/CasinoTournamentsThumbnail-DgXXegVa.cjs +5 -0
- package/components/{CasinoTournamentsThumbnail-BQPDlD-6.js → CasinoTournamentsThumbnail-J7Of-3j4.js} +633 -665
- package/components/CasinoTournamentsThumbnailController-DD3a1bpc.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailController-Dk5ObYFQ.js → CasinoTournamentsThumbnailController-DGTv-6Vg.js} +571 -522
- package/components/{CasinoTournamentsThumbnailController-CHXnZMEK.js → CasinoTournamentsThumbnailController-yXv_8aa_.js} +615 -566
- package/components/{CasinoTournamentsThumbnailDuration-BRCX2YcD.js → CasinoTournamentsThumbnailDuration-DMSfakAi.js} +65 -65
- package/components/{CasinoTournamentsThumbnailDuration-BmsYPOji.cjs → CasinoTournamentsThumbnailDuration-IvKEkgj7.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DesoRPY7.js → CasinoTournamentsThumbnailDuration-ShCMXlPG.js} +65 -65
- package/components/{CasinoTournamentsThumbnailGamesSlider-CuFhSsUz.js → CasinoTournamentsThumbnailGamesSlider-C9n0GZT3.js} +88 -88
- package/components/{CasinoTournamentsThumbnailGamesSlider-DsUSEf8W.cjs → CasinoTournamentsThumbnailGamesSlider-HEUEl0MK.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BumjreGL.js → CasinoTournamentsThumbnailGamesSlider-l7mPDvzQ.js} +88 -88
- package/components/{CasinoTournamentsThumbnailPrizes-DMD910A-.cjs → CasinoTournamentsThumbnailPrizes-BRbgsA4Y.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BrDPw5rZ.js → CasinoTournamentsThumbnailPrizes-CEvbFf9m.js} +85 -85
- package/components/{CasinoTournamentsThumbnailPrizes-CReAnTE_.js → CasinoTournamentsThumbnailPrizes-Ctx2j7e2.js} +85 -85
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-B6BYeRne.js +542 -0
- package/stencil/index-97d17652-BOr4KAqq.js +558 -0
- package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
- package/stencil/index-b2193545-BpG2toSK.js +503 -0
- package/stencil/index-b2193545-DfeVnolx.cjs +1 -0
- package/stencil/index-b2193545-DuA2iMSm.js +519 -0
- package/stencil/{ui-image-DLoBAw4w.js → ui-image-Cs_BBOYl.js} +1 -1
- package/stencil/{ui-image-83gG286t.cjs → ui-image-DUHLTRXs.cjs} +1 -1
- package/stencil/{ui-image-2Wo8bNh1.js → ui-image-O0NdjWCu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
- package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-CmVho0dS.js} +2 -2
- package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
- package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-Daq38JGa.js} +2 -2
- package/stencil/{ui-skeleton-hbyf6ZV-.cjs → ui-skeleton-B0E7XBJC.cjs} +1 -1
- package/stencil/{ui-skeleton-Czz99elh.js → ui-skeleton-Yn79cPkz.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-F5Pn7BxE.js → ui-skeleton-ed169f8f-B-SERL0D.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DiR5y84l.cjs → ui-skeleton-ed169f8f-BRUG1h6n.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-DTd-f9E3.js → ui-skeleton-ed169f8f-UdVwF_E9.js} +1 -1
- package/stencil/{ui-skeleton-BOZjVV7m.js → ui-skeleton-i9jZ615T.js} +2 -2
- package/components/CasinoTournamentsThumbnail-CSDNBS1u.cjs +0 -18
- package/components/CasinoTournamentsThumbnailController-B5oA7xOB.cjs +0 -3
- package/stencil/index-97d17652-DvplcHtm.js +0 -558
- package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
- package/stencil/index-97d17652-p-iQtjus.js +0 -542
- package/stencil/index-b2193545-RI3PckwN.js +0 -503
- package/stencil/index-b2193545-qC7jkIQW.cjs +0 -1
- package/stencil/index-b2193545-w9rTFozR.js +0 -519
package/components/{CasinoTournamentsThumbnail-BQPDlD-6.js → CasinoTournamentsThumbnail-J7Of-3j4.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import "../stencil/ui-skeleton-
|
|
2
|
-
import "../stencil/ui-image-
|
|
1
|
+
import "../stencil/ui-skeleton-i9jZ615T.js";
|
|
2
|
+
import "../stencil/ui-image-Cs_BBOYl.js";
|
|
3
3
|
function j() {
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function Pt(e) {
|
|
6
6
|
return e();
|
|
7
7
|
}
|
|
8
8
|
function ht() {
|
|
9
9
|
return /* @__PURE__ */ Object.create(null);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
e.forEach(
|
|
11
|
+
function re(e) {
|
|
12
|
+
e.forEach(Pt);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Te(e) {
|
|
15
15
|
return typeof e == "function";
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Mt(e, t) {
|
|
18
18
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
19
19
|
}
|
|
20
|
-
let
|
|
21
|
-
function
|
|
22
|
-
return e === t ? !0 : (
|
|
20
|
+
let we;
|
|
21
|
+
function Ze(e, t) {
|
|
22
|
+
return e === t ? !0 : (we || (we = document.createElement("a")), we.href = t, e === we.href);
|
|
23
23
|
}
|
|
24
24
|
function ur(e) {
|
|
25
25
|
return Object.keys(e).length === 0;
|
|
@@ -36,10 +36,10 @@ function Lt(e, ...t) {
|
|
|
36
36
|
function lr(e, t, r) {
|
|
37
37
|
e.$$.on_destroy.push(Lt(t, r));
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return e &&
|
|
39
|
+
function Ae(e) {
|
|
40
|
+
return e && Te(e.destroy) ? e.destroy : j;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function _(e, t) {
|
|
43
43
|
e.appendChild(t);
|
|
44
44
|
}
|
|
45
45
|
function hr(e, t, r) {
|
|
@@ -60,7 +60,7 @@ function cr(e) {
|
|
|
60
60
|
) : e.ownerDocument;
|
|
61
61
|
}
|
|
62
62
|
function fr(e, t) {
|
|
63
|
-
return
|
|
63
|
+
return _(
|
|
64
64
|
/** @type {Document} */
|
|
65
65
|
e.head || e,
|
|
66
66
|
t
|
|
@@ -69,17 +69,17 @@ function fr(e, t) {
|
|
|
69
69
|
function k(e, t, r) {
|
|
70
70
|
e.insertBefore(t, r || null);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function O(e) {
|
|
73
73
|
e.parentNode && e.parentNode.removeChild(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Pi(e, t) {
|
|
76
76
|
for (let r = 0; r < e.length; r += 1)
|
|
77
77
|
e[r] && e[r].d(t);
|
|
78
78
|
}
|
|
79
79
|
function A(e) {
|
|
80
80
|
return document.createElement(e);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Mi(e) {
|
|
83
83
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
84
84
|
}
|
|
85
85
|
function R(e) {
|
|
@@ -91,13 +91,13 @@ function X() {
|
|
|
91
91
|
function mr() {
|
|
92
92
|
return R("");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function he(e, t, r, n) {
|
|
95
95
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
96
96
|
}
|
|
97
97
|
function d(e, t, r) {
|
|
98
98
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ue(e, t, r) {
|
|
101
101
|
const n = t.toLowerCase();
|
|
102
102
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : d(e, t, r);
|
|
103
103
|
}
|
|
@@ -108,22 +108,22 @@ function Z(e, t) {
|
|
|
108
108
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
109
109
|
t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Li(e, t, r, n) {
|
|
112
112
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
113
113
|
}
|
|
114
|
-
let
|
|
114
|
+
let Be;
|
|
115
115
|
function br() {
|
|
116
|
-
if (
|
|
117
|
-
|
|
116
|
+
if (Be === void 0) {
|
|
117
|
+
Be = !1;
|
|
118
118
|
try {
|
|
119
119
|
typeof window < "u" && window.parent && window.parent.document;
|
|
120
120
|
} catch {
|
|
121
|
-
|
|
121
|
+
Be = !0;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
return
|
|
124
|
+
return Be;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ri(e, t) {
|
|
127
127
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
128
128
|
const n = A("iframe");
|
|
129
129
|
n.setAttribute(
|
|
@@ -132,7 +132,7 @@ function Li(e, t) {
|
|
|
132
132
|
), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
|
|
133
133
|
const i = br();
|
|
134
134
|
let s;
|
|
135
|
-
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s =
|
|
135
|
+
return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = he(
|
|
136
136
|
window,
|
|
137
137
|
"message",
|
|
138
138
|
/** @param {MessageEvent} event */
|
|
@@ -140,12 +140,12 @@ function Li(e, t) {
|
|
|
140
140
|
o.source === n.contentWindow && t();
|
|
141
141
|
}
|
|
142
142
|
)) : (n.src = "about:blank", n.onload = () => {
|
|
143
|
-
s =
|
|
144
|
-
}),
|
|
145
|
-
(i || s && n.contentWindow) && s(),
|
|
143
|
+
s = he(n.contentWindow, "resize", t), t();
|
|
144
|
+
}), _(e, n), () => {
|
|
145
|
+
(i || s && n.contentWindow) && s(), O(n);
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Di(e, t, r) {
|
|
149
149
|
e.classList.toggle(t, !!r);
|
|
150
150
|
}
|
|
151
151
|
function gr(e) {
|
|
@@ -157,90 +157,90 @@ function gr(e) {
|
|
|
157
157
|
}
|
|
158
158
|
), t;
|
|
159
159
|
}
|
|
160
|
-
let
|
|
161
|
-
function
|
|
162
|
-
|
|
160
|
+
let Ee;
|
|
161
|
+
function ve(e) {
|
|
162
|
+
Ee = e;
|
|
163
163
|
}
|
|
164
164
|
function pr() {
|
|
165
|
-
if (!
|
|
165
|
+
if (!Ee)
|
|
166
166
|
throw new Error("Function called outside component initialization");
|
|
167
|
-
return
|
|
167
|
+
return Ee;
|
|
168
168
|
}
|
|
169
169
|
function yr(e) {
|
|
170
170
|
pr().$$.on_mount.push(e);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
let
|
|
172
|
+
const oe = [], qe = [];
|
|
173
|
+
let le = [];
|
|
174
174
|
const ct = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
175
|
-
let
|
|
175
|
+
let Qe = !1;
|
|
176
176
|
function vr() {
|
|
177
|
-
|
|
177
|
+
Qe || (Qe = !0, _r.then(H));
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
179
|
+
function Ye(e) {
|
|
180
|
+
le.push(e);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
let
|
|
182
|
+
const $e = /* @__PURE__ */ new Set();
|
|
183
|
+
let se = 0;
|
|
184
184
|
function H() {
|
|
185
|
-
if (
|
|
185
|
+
if (se !== 0)
|
|
186
186
|
return;
|
|
187
|
-
const e =
|
|
187
|
+
const e = Ee;
|
|
188
188
|
do {
|
|
189
189
|
try {
|
|
190
|
-
for (;
|
|
191
|
-
const t =
|
|
192
|
-
|
|
190
|
+
for (; se < oe.length; ) {
|
|
191
|
+
const t = oe[se];
|
|
192
|
+
se++, ve(t), Er(t.$$);
|
|
193
193
|
}
|
|
194
194
|
} catch (t) {
|
|
195
|
-
throw
|
|
195
|
+
throw oe.length = 0, se = 0, t;
|
|
196
196
|
}
|
|
197
|
-
for (
|
|
198
|
-
|
|
199
|
-
for (let t = 0; t <
|
|
200
|
-
const r =
|
|
201
|
-
|
|
197
|
+
for (ve(null), oe.length = 0, se = 0; qe.length; )
|
|
198
|
+
qe.pop()();
|
|
199
|
+
for (let t = 0; t < le.length; t += 1) {
|
|
200
|
+
const r = le[t];
|
|
201
|
+
$e.has(r) || ($e.add(r), r());
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
} while (
|
|
203
|
+
le.length = 0;
|
|
204
|
+
} while (oe.length);
|
|
205
205
|
for (; ct.length; )
|
|
206
206
|
ct.pop()();
|
|
207
|
-
|
|
207
|
+
Qe = !1, $e.clear(), ve(e);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Er(e) {
|
|
210
210
|
if (e.fragment !== null) {
|
|
211
|
-
e.update(),
|
|
211
|
+
e.update(), re(e.before_update);
|
|
212
212
|
const t = e.dirty;
|
|
213
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
213
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function xr(e) {
|
|
217
217
|
const t = [], r = [];
|
|
218
|
-
|
|
218
|
+
le.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), le = t;
|
|
219
219
|
}
|
|
220
220
|
const Sr = /* @__PURE__ */ new Set();
|
|
221
221
|
function Tr(e, t) {
|
|
222
222
|
e && e.i && (Sr.delete(e), e.i(t));
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function ki(e) {
|
|
225
225
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
226
226
|
}
|
|
227
227
|
function Ar(e, t, r) {
|
|
228
228
|
const { fragment: n, after_update: i } = e.$$;
|
|
229
|
-
n && n.m(t, r),
|
|
230
|
-
const s = e.$$.on_mount.map(
|
|
231
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
232
|
-
}), i.forEach(
|
|
229
|
+
n && n.m(t, r), Ye(() => {
|
|
230
|
+
const s = e.$$.on_mount.map(Pt).filter(Te);
|
|
231
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
232
|
+
}), i.forEach(Ye);
|
|
233
233
|
}
|
|
234
234
|
function Hr(e, t) {
|
|
235
235
|
const r = e.$$;
|
|
236
|
-
r.fragment !== null && (
|
|
236
|
+
r.fragment !== null && (xr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
237
237
|
}
|
|
238
238
|
function Cr(e, t) {
|
|
239
|
-
e.$$.dirty[0] === -1 && (
|
|
239
|
+
e.$$.dirty[0] === -1 && (oe.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
240
240
|
}
|
|
241
241
|
function wr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
242
|
-
const l =
|
|
243
|
-
|
|
242
|
+
const l = Ee;
|
|
243
|
+
ve(e);
|
|
244
244
|
const u = e.$$ = {
|
|
245
245
|
fragment: null,
|
|
246
246
|
ctx: [],
|
|
@@ -264,18 +264,18 @@ function wr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
264
264
|
};
|
|
265
265
|
o && o(u.root);
|
|
266
266
|
let h = !1;
|
|
267
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...
|
|
268
|
-
const y =
|
|
267
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...v) => {
|
|
268
|
+
const y = v.length ? v[0] : m;
|
|
269
269
|
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && Cr(e, c)), m;
|
|
270
|
-
}) : [], u.update(), h = !0,
|
|
270
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
271
271
|
if (t.hydrate) {
|
|
272
272
|
const c = dr(t.target);
|
|
273
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
273
|
+
u.fragment && u.fragment.l(c), c.forEach(O);
|
|
274
274
|
} else
|
|
275
275
|
u.fragment && u.fragment.c();
|
|
276
276
|
t.intro && Tr(e.$$.fragment), Ar(e, t.target, t.anchor), H();
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
ve(l);
|
|
279
279
|
}
|
|
280
280
|
let Rt;
|
|
281
281
|
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
330
330
|
k(l, s, u);
|
|
331
331
|
},
|
|
332
332
|
d: function(l) {
|
|
333
|
-
l &&
|
|
333
|
+
l && O(s);
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
};
|
|
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
342
342
|
i in r && (t[i] = [e(i)]);
|
|
343
343
|
for (const i of this.attributes) {
|
|
344
344
|
const s = this.$$g_p(i.name);
|
|
345
|
-
s in this.$$d || (this.$$d[s] =
|
|
345
|
+
s in this.$$d || (this.$$d[s] = Oe(s, i.value, this.$$p_d, "toProp"));
|
|
346
346
|
}
|
|
347
347
|
for (const i in this.$$p_d)
|
|
348
348
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -360,7 +360,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
360
360
|
this.$$r = !0;
|
|
361
361
|
for (const i in this.$$p_d)
|
|
362
362
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
363
|
-
const s =
|
|
363
|
+
const s = Oe(
|
|
364
364
|
i,
|
|
365
365
|
this.$$d[i],
|
|
366
366
|
this.$$p_d,
|
|
@@ -382,7 +382,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
382
382
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
383
383
|
// and setting attributes through setAttribute etc, this is helpful
|
|
384
384
|
attributeChangedCallback(e, t, r) {
|
|
385
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
385
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Oe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
386
386
|
}
|
|
387
387
|
disconnectedCallback() {
|
|
388
388
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -395,7 +395,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
395
395
|
) || e;
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
function
|
|
398
|
+
function Oe(e, t, r, n) {
|
|
399
399
|
const i = r[e]?.type;
|
|
400
400
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
401
401
|
return t;
|
|
@@ -441,7 +441,7 @@ function Br(e, t, r, n, i, s) {
|
|
|
441
441
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
442
442
|
},
|
|
443
443
|
set(l) {
|
|
444
|
-
l =
|
|
444
|
+
l = Oe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}), n.forEach((a) => {
|
|
@@ -481,7 +481,7 @@ class Ir {
|
|
|
481
481
|
* @returns {() => void}
|
|
482
482
|
*/
|
|
483
483
|
$on(t, r) {
|
|
484
|
-
if (!
|
|
484
|
+
if (!Te(r))
|
|
485
485
|
return j;
|
|
486
486
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
487
487
|
return n.push(r), () => {
|
|
@@ -497,114 +497,26 @@ class Ir {
|
|
|
497
497
|
this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
const
|
|
501
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
506
|
-
purpose with or without fee is hereby granted.
|
|
507
|
-
|
|
508
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
509
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
510
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
511
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
512
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
513
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
514
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
515
|
-
***************************************************************************** */
|
|
516
|
-
var Qe = function(e, t) {
|
|
517
|
-
return Qe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
518
|
-
r.__proto__ = n;
|
|
519
|
-
} || function(r, n) {
|
|
520
|
-
for (var i in n)
|
|
521
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
522
|
-
}, Qe(e, t);
|
|
523
|
-
};
|
|
524
|
-
function Le(e, t) {
|
|
525
|
-
if (typeof t != "function" && t !== null)
|
|
526
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
527
|
-
Qe(e, t);
|
|
528
|
-
function r() {
|
|
529
|
-
this.constructor = e;
|
|
530
|
-
}
|
|
531
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
532
|
-
}
|
|
533
|
-
var _ = function() {
|
|
534
|
-
return _ = Object.assign || function(t) {
|
|
535
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
536
|
-
r = arguments[n];
|
|
537
|
-
for (var s in r)
|
|
538
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
539
|
-
}
|
|
540
|
-
return t;
|
|
541
|
-
}, _.apply(this, arguments);
|
|
542
|
-
};
|
|
543
|
-
function Mr(e, t) {
|
|
544
|
-
var r = {};
|
|
545
|
-
for (var n in e)
|
|
546
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
547
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
548
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
549
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
550
|
-
return r;
|
|
551
|
-
}
|
|
552
|
-
function ki(e) {
|
|
553
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
554
|
-
if (r)
|
|
555
|
-
return r.call(e);
|
|
556
|
-
if (e && typeof e.length == "number")
|
|
557
|
-
return {
|
|
558
|
-
next: function() {
|
|
559
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
560
|
-
}
|
|
561
|
-
};
|
|
562
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
563
|
-
}
|
|
564
|
-
function Ui(e, t) {
|
|
565
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
566
|
-
if (!r)
|
|
567
|
-
return e;
|
|
568
|
-
var n = r.call(e), i, s = [], o;
|
|
569
|
-
try {
|
|
570
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
571
|
-
s.push(i.value);
|
|
572
|
-
} catch (a) {
|
|
573
|
-
o = { error: a };
|
|
574
|
-
} finally {
|
|
575
|
-
try {
|
|
576
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
577
|
-
} finally {
|
|
578
|
-
if (o)
|
|
579
|
-
throw o.error;
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
return s;
|
|
583
|
-
}
|
|
584
|
-
function Ge(e, t, r) {
|
|
585
|
-
if (r || arguments.length === 2)
|
|
586
|
-
for (var n = 0, i = t.length, s; n < i; n++)
|
|
587
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
588
|
-
return e.concat(s || t);
|
|
589
|
-
}
|
|
590
|
-
const se = [];
|
|
591
|
-
function Or(e, t) {
|
|
500
|
+
const Or = "4";
|
|
501
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
|
|
502
|
+
const ae = [];
|
|
503
|
+
function Nr(e, t) {
|
|
592
504
|
return {
|
|
593
|
-
subscribe:
|
|
505
|
+
subscribe: De(e, t).subscribe
|
|
594
506
|
};
|
|
595
507
|
}
|
|
596
|
-
function
|
|
508
|
+
function De(e, t = j) {
|
|
597
509
|
let r;
|
|
598
510
|
const n = /* @__PURE__ */ new Set();
|
|
599
511
|
function i(a) {
|
|
600
|
-
if (
|
|
601
|
-
const l = !
|
|
512
|
+
if (Mt(e, a) && (e = a, r)) {
|
|
513
|
+
const l = !ae.length;
|
|
602
514
|
for (const u of n)
|
|
603
|
-
u[1](),
|
|
515
|
+
u[1](), ae.push(u, e);
|
|
604
516
|
if (l) {
|
|
605
|
-
for (let u = 0; u <
|
|
606
|
-
|
|
607
|
-
|
|
517
|
+
for (let u = 0; u < ae.length; u += 2)
|
|
518
|
+
ae[u][0](ae[u + 1]);
|
|
519
|
+
ae.length = 0;
|
|
608
520
|
}
|
|
609
521
|
}
|
|
610
522
|
}
|
|
@@ -619,12 +531,12 @@ function Re(e, t = j) {
|
|
|
619
531
|
}
|
|
620
532
|
return { set: i, update: s, subscribe: o };
|
|
621
533
|
}
|
|
622
|
-
function
|
|
534
|
+
function be(e, t, r) {
|
|
623
535
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
624
536
|
if (!i.every(Boolean))
|
|
625
537
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
626
538
|
const s = t.length < 2;
|
|
627
|
-
return
|
|
539
|
+
return Nr(r, (o, a) => {
|
|
628
540
|
let l = !1;
|
|
629
541
|
const u = [];
|
|
630
542
|
let h = 0, c = j;
|
|
@@ -633,8 +545,8 @@ function de(e, t, r) {
|
|
|
633
545
|
return;
|
|
634
546
|
c();
|
|
635
547
|
const y = t(n ? u[0] : u, o, a);
|
|
636
|
-
s ? o(y) : c =
|
|
637
|
-
},
|
|
548
|
+
s ? o(y) : c = Te(y) ? y : j;
|
|
549
|
+
}, v = i.map(
|
|
638
550
|
(y, T) => Lt(
|
|
639
551
|
y,
|
|
640
552
|
(B) => {
|
|
@@ -646,51 +558,51 @@ function de(e, t, r) {
|
|
|
646
558
|
)
|
|
647
559
|
);
|
|
648
560
|
return l = !0, m(), function() {
|
|
649
|
-
|
|
561
|
+
re(v), c(), l = !1;
|
|
650
562
|
};
|
|
651
563
|
});
|
|
652
564
|
}
|
|
653
565
|
function Pr(e) {
|
|
654
566
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
655
567
|
}
|
|
656
|
-
var
|
|
657
|
-
return
|
|
568
|
+
var Mr = function(t) {
|
|
569
|
+
return Lr(t) && !Rr(t);
|
|
658
570
|
};
|
|
659
|
-
function
|
|
571
|
+
function Lr(e) {
|
|
660
572
|
return !!e && typeof e == "object";
|
|
661
573
|
}
|
|
662
|
-
function
|
|
574
|
+
function Rr(e) {
|
|
663
575
|
var t = Object.prototype.toString.call(e);
|
|
664
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
576
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
|
|
665
577
|
}
|
|
666
|
-
var
|
|
667
|
-
function
|
|
668
|
-
return e.$$typeof ===
|
|
578
|
+
var Dr = typeof Symbol == "function" && Symbol.for, kr = Dr ? Symbol.for("react.element") : 60103;
|
|
579
|
+
function Ur(e) {
|
|
580
|
+
return e.$$typeof === kr;
|
|
669
581
|
}
|
|
670
|
-
function
|
|
582
|
+
function Fr(e) {
|
|
671
583
|
return Array.isArray(e) ? [] : {};
|
|
672
584
|
}
|
|
673
585
|
function xe(e, t) {
|
|
674
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
586
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ce(Fr(e), e, t) : e;
|
|
675
587
|
}
|
|
676
|
-
function
|
|
588
|
+
function Gr(e, t, r) {
|
|
677
589
|
return e.concat(t).map(function(n) {
|
|
678
590
|
return xe(n, r);
|
|
679
591
|
});
|
|
680
592
|
}
|
|
681
|
-
function
|
|
593
|
+
function $r(e, t) {
|
|
682
594
|
if (!t.customMerge)
|
|
683
|
-
return
|
|
595
|
+
return ce;
|
|
684
596
|
var r = t.customMerge(e);
|
|
685
|
-
return typeof r == "function" ? r :
|
|
597
|
+
return typeof r == "function" ? r : ce;
|
|
686
598
|
}
|
|
687
|
-
function
|
|
599
|
+
function jr(e) {
|
|
688
600
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
689
601
|
return Object.propertyIsEnumerable.call(e, t);
|
|
690
602
|
}) : [];
|
|
691
603
|
}
|
|
692
604
|
function ft(e) {
|
|
693
|
-
return Object.keys(e).concat(
|
|
605
|
+
return Object.keys(e).concat(jr(e));
|
|
694
606
|
}
|
|
695
607
|
function Dt(e, t) {
|
|
696
608
|
try {
|
|
@@ -699,33 +611,75 @@ function Dt(e, t) {
|
|
|
699
611
|
return !1;
|
|
700
612
|
}
|
|
701
613
|
}
|
|
702
|
-
function
|
|
614
|
+
function Vr(e, t) {
|
|
703
615
|
return Dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
704
616
|
}
|
|
705
|
-
function
|
|
617
|
+
function zr(e, t, r) {
|
|
706
618
|
var n = {};
|
|
707
619
|
return r.isMergeableObject(e) && ft(e).forEach(function(i) {
|
|
708
620
|
n[i] = xe(e[i], r);
|
|
709
621
|
}), ft(t).forEach(function(i) {
|
|
710
|
-
|
|
622
|
+
Vr(e, i) || (Dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = xe(t[i], r));
|
|
711
623
|
}), n;
|
|
712
624
|
}
|
|
713
|
-
function
|
|
714
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
625
|
+
function ce(e, t, r) {
|
|
626
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Gr, r.isMergeableObject = r.isMergeableObject || Mr, r.cloneUnlessOtherwiseSpecified = xe;
|
|
715
627
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
716
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
628
|
+
return s ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : xe(t, r);
|
|
717
629
|
}
|
|
718
|
-
|
|
630
|
+
ce.all = function(t, r) {
|
|
719
631
|
if (!Array.isArray(t))
|
|
720
632
|
throw new Error("first argument should be an array");
|
|
721
633
|
return t.reduce(function(n, i) {
|
|
722
|
-
return
|
|
634
|
+
return ce(n, i, r);
|
|
723
635
|
}, {});
|
|
724
636
|
};
|
|
725
|
-
var
|
|
726
|
-
const
|
|
727
|
-
function
|
|
728
|
-
|
|
637
|
+
var Jr = ce, Wr = Jr;
|
|
638
|
+
const Xr = /* @__PURE__ */ Pr(Wr);
|
|
639
|
+
var Ke = function(e, t) {
|
|
640
|
+
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
641
|
+
r.__proto__ = n;
|
|
642
|
+
} || function(r, n) {
|
|
643
|
+
for (var i in n)
|
|
644
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
645
|
+
}, Ke(e, t);
|
|
646
|
+
};
|
|
647
|
+
function ke(e, t) {
|
|
648
|
+
if (typeof t != "function" && t !== null)
|
|
649
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
650
|
+
Ke(e, t);
|
|
651
|
+
function r() {
|
|
652
|
+
this.constructor = e;
|
|
653
|
+
}
|
|
654
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
655
|
+
}
|
|
656
|
+
var q = function() {
|
|
657
|
+
return q = Object.assign || function(t) {
|
|
658
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
659
|
+
r = arguments[n];
|
|
660
|
+
for (var s in r)
|
|
661
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
662
|
+
}
|
|
663
|
+
return t;
|
|
664
|
+
}, q.apply(this, arguments);
|
|
665
|
+
};
|
|
666
|
+
function Zr(e, t) {
|
|
667
|
+
var r = {};
|
|
668
|
+
for (var n in e)
|
|
669
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
670
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
671
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
672
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
673
|
+
return r;
|
|
674
|
+
}
|
|
675
|
+
function je(e, t, r) {
|
|
676
|
+
if (r || arguments.length === 2)
|
|
677
|
+
for (var n = 0, i = t.length, s; n < i; n++)
|
|
678
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
679
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
680
|
+
}
|
|
681
|
+
function Ve(e, t) {
|
|
682
|
+
var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
|
|
729
683
|
return i(e, {
|
|
730
684
|
cache: r,
|
|
731
685
|
serializer: n
|
|
@@ -734,95 +688,103 @@ function $e(e, t) {
|
|
|
734
688
|
function qr(e) {
|
|
735
689
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
736
690
|
}
|
|
737
|
-
function
|
|
691
|
+
function Qr(e, t, r, n) {
|
|
738
692
|
var i = qr(n) ? n : r(n), s = t.get(i);
|
|
739
693
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
740
694
|
}
|
|
741
|
-
function
|
|
695
|
+
function kt(e, t, r) {
|
|
742
696
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
743
697
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
744
698
|
}
|
|
745
|
-
function
|
|
699
|
+
function Ut(e, t, r, n, i) {
|
|
746
700
|
return r.bind(t, e, n, i);
|
|
747
701
|
}
|
|
748
|
-
function Qr(e, t) {
|
|
749
|
-
var r = e.length === 1 ? kt : Ut;
|
|
750
|
-
return at(e, this, r, t.cache.create(), t.serializer);
|
|
751
|
-
}
|
|
752
702
|
function Yr(e, t) {
|
|
753
|
-
|
|
703
|
+
var r = e.length === 1 ? Qr : kt;
|
|
704
|
+
return Ut(e, this, r, t.cache.create(), t.serializer);
|
|
754
705
|
}
|
|
755
706
|
function Kr(e, t) {
|
|
756
|
-
return
|
|
707
|
+
return Ut(e, this, kt, t.cache.create(), t.serializer);
|
|
757
708
|
}
|
|
758
709
|
var en = function() {
|
|
759
710
|
return JSON.stringify(arguments);
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
711
|
+
}, tn = (
|
|
712
|
+
/** @class */
|
|
713
|
+
function() {
|
|
714
|
+
function e() {
|
|
715
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
716
|
+
}
|
|
717
|
+
return e.prototype.get = function(t) {
|
|
718
|
+
return this.cache[t];
|
|
719
|
+
}, e.prototype.set = function(t, r) {
|
|
720
|
+
this.cache[t] = r;
|
|
721
|
+
}, e;
|
|
722
|
+
}()
|
|
723
|
+
), rn = {
|
|
771
724
|
create: function() {
|
|
772
|
-
return new
|
|
725
|
+
return new tn();
|
|
773
726
|
}
|
|
774
|
-
},
|
|
775
|
-
variadic:
|
|
776
|
-
|
|
777
|
-
|
|
727
|
+
}, ze = {
|
|
728
|
+
variadic: Kr
|
|
729
|
+
}, Me = function() {
|
|
730
|
+
return Me = Object.assign || function(t) {
|
|
731
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
732
|
+
r = arguments[n];
|
|
733
|
+
for (var s in r)
|
|
734
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
735
|
+
}
|
|
736
|
+
return t;
|
|
737
|
+
}, Me.apply(this, arguments);
|
|
738
|
+
};
|
|
739
|
+
var g;
|
|
778
740
|
(function(e) {
|
|
779
741
|
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";
|
|
780
742
|
})(g || (g = {}));
|
|
781
|
-
var
|
|
743
|
+
var x;
|
|
782
744
|
(function(e) {
|
|
783
745
|
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";
|
|
784
|
-
})(
|
|
785
|
-
var
|
|
746
|
+
})(x || (x = {}));
|
|
747
|
+
var fe;
|
|
786
748
|
(function(e) {
|
|
787
749
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
788
|
-
})(
|
|
750
|
+
})(fe || (fe = {}));
|
|
789
751
|
function mt(e) {
|
|
790
|
-
return e.type ===
|
|
752
|
+
return e.type === x.literal;
|
|
791
753
|
}
|
|
792
|
-
function
|
|
793
|
-
return e.type ===
|
|
754
|
+
function nn(e) {
|
|
755
|
+
return e.type === x.argument;
|
|
794
756
|
}
|
|
795
757
|
function Ft(e) {
|
|
796
|
-
return e.type ===
|
|
758
|
+
return e.type === x.number;
|
|
797
759
|
}
|
|
798
760
|
function Gt(e) {
|
|
799
|
-
return e.type ===
|
|
761
|
+
return e.type === x.date;
|
|
800
762
|
}
|
|
801
763
|
function $t(e) {
|
|
802
|
-
return e.type ===
|
|
764
|
+
return e.type === x.time;
|
|
803
765
|
}
|
|
804
766
|
function jt(e) {
|
|
805
|
-
return e.type ===
|
|
767
|
+
return e.type === x.select;
|
|
806
768
|
}
|
|
807
769
|
function Vt(e) {
|
|
808
|
-
return e.type ===
|
|
770
|
+
return e.type === x.plural;
|
|
809
771
|
}
|
|
810
|
-
function
|
|
811
|
-
return e.type ===
|
|
772
|
+
function sn(e) {
|
|
773
|
+
return e.type === x.pound;
|
|
812
774
|
}
|
|
813
775
|
function zt(e) {
|
|
814
|
-
return e.type ===
|
|
776
|
+
return e.type === x.tag;
|
|
815
777
|
}
|
|
816
778
|
function Jt(e) {
|
|
817
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
779
|
+
return !!(e && typeof e == "object" && e.type === fe.number);
|
|
818
780
|
}
|
|
819
|
-
function
|
|
820
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
781
|
+
function et(e) {
|
|
782
|
+
return !!(e && typeof e == "object" && e.type === fe.dateTime);
|
|
821
783
|
}
|
|
822
|
-
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
823
|
-
function
|
|
784
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
785
|
+
function on(e) {
|
|
824
786
|
var t = {};
|
|
825
|
-
return e.replace(
|
|
787
|
+
return e.replace(an, function(r) {
|
|
826
788
|
var n = r.length;
|
|
827
789
|
switch (r[0]) {
|
|
828
790
|
case "G":
|
|
@@ -911,11 +873,21 @@ function an(e) {
|
|
|
911
873
|
return "";
|
|
912
874
|
}), t;
|
|
913
875
|
}
|
|
914
|
-
var
|
|
915
|
-
function
|
|
876
|
+
var S = function() {
|
|
877
|
+
return S = Object.assign || function(t) {
|
|
878
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
879
|
+
r = arguments[n];
|
|
880
|
+
for (var s in r)
|
|
881
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
882
|
+
}
|
|
883
|
+
return t;
|
|
884
|
+
}, S.apply(this, arguments);
|
|
885
|
+
};
|
|
886
|
+
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
887
|
+
function ln(e) {
|
|
916
888
|
if (e.length === 0)
|
|
917
889
|
throw new Error("Number skeleton cannot be empty");
|
|
918
|
-
for (var t = e.split(
|
|
890
|
+
for (var t = e.split(un).filter(function(m) {
|
|
919
891
|
return m.length > 0;
|
|
920
892
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
921
893
|
var s = i[n], o = s.split("/");
|
|
@@ -930,10 +902,10 @@ function un(e) {
|
|
|
930
902
|
}
|
|
931
903
|
return r;
|
|
932
904
|
}
|
|
933
|
-
function
|
|
905
|
+
function hn(e) {
|
|
934
906
|
return e.replace(/^(.*?)-/, "");
|
|
935
907
|
}
|
|
936
|
-
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
908
|
+
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
937
909
|
function bt(e) {
|
|
938
910
|
var t = {};
|
|
939
911
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
@@ -980,7 +952,7 @@ function qt(e) {
|
|
|
980
952
|
};
|
|
981
953
|
}
|
|
982
954
|
}
|
|
983
|
-
function
|
|
955
|
+
function fn(e) {
|
|
984
956
|
var t;
|
|
985
957
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
986
958
|
notation: "engineering"
|
|
@@ -998,7 +970,7 @@ function gt(e) {
|
|
|
998
970
|
var t = {}, r = qt(e);
|
|
999
971
|
return r || t;
|
|
1000
972
|
}
|
|
1001
|
-
function
|
|
973
|
+
function mn(e) {
|
|
1002
974
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1003
975
|
var i = n[r];
|
|
1004
976
|
switch (i.stem) {
|
|
@@ -1022,7 +994,7 @@ function fn(e) {
|
|
|
1022
994
|
continue;
|
|
1023
995
|
case "measure-unit":
|
|
1024
996
|
case "unit":
|
|
1025
|
-
t.style = "unit", t.unit =
|
|
997
|
+
t.style = "unit", t.unit = hn(i.options[0]);
|
|
1026
998
|
continue;
|
|
1027
999
|
case "compact-short":
|
|
1028
1000
|
case "K":
|
|
@@ -1033,13 +1005,13 @@ function fn(e) {
|
|
|
1033
1005
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1034
1006
|
continue;
|
|
1035
1007
|
case "scientific":
|
|
1036
|
-
t =
|
|
1037
|
-
return
|
|
1008
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1009
|
+
return S(S({}, l), gt(u));
|
|
1038
1010
|
}, {}));
|
|
1039
1011
|
continue;
|
|
1040
1012
|
case "engineering":
|
|
1041
|
-
t =
|
|
1042
|
-
return
|
|
1013
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1014
|
+
return S(S({}, l), gt(u));
|
|
1043
1015
|
}, {}));
|
|
1044
1016
|
continue;
|
|
1045
1017
|
case "notation-simple":
|
|
@@ -1084,13 +1056,13 @@ function fn(e) {
|
|
|
1084
1056
|
case "integer-width":
|
|
1085
1057
|
if (i.options.length > 1)
|
|
1086
1058
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1087
|
-
i.options[0].replace(
|
|
1059
|
+
i.options[0].replace(cn, function(l, u, h, c, m, v) {
|
|
1088
1060
|
if (u)
|
|
1089
1061
|
t.minimumIntegerDigits = h.length;
|
|
1090
1062
|
else {
|
|
1091
1063
|
if (c && m)
|
|
1092
1064
|
throw new Error("We currently do not support maximum integer digits");
|
|
1093
|
-
if (
|
|
1065
|
+
if (v)
|
|
1094
1066
|
throw new Error("We currently do not support exact integer digits");
|
|
1095
1067
|
}
|
|
1096
1068
|
return "";
|
|
@@ -1104,25 +1076,25 @@ function fn(e) {
|
|
|
1104
1076
|
if (dt.test(i.stem)) {
|
|
1105
1077
|
if (i.options.length > 1)
|
|
1106
1078
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1107
|
-
i.stem.replace(dt, function(l, u, h, c, m,
|
|
1108
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1079
|
+
i.stem.replace(dt, function(l, u, h, c, m, v) {
|
|
1080
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && v ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + v.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1109
1081
|
});
|
|
1110
1082
|
var s = i.options[0];
|
|
1111
|
-
s === "w" ? t =
|
|
1083
|
+
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), bt(s)));
|
|
1112
1084
|
continue;
|
|
1113
1085
|
}
|
|
1114
1086
|
if (Xt.test(i.stem)) {
|
|
1115
|
-
t =
|
|
1087
|
+
t = S(S({}, t), bt(i.stem));
|
|
1116
1088
|
continue;
|
|
1117
1089
|
}
|
|
1118
1090
|
var o = qt(i.stem);
|
|
1119
|
-
o && (t =
|
|
1120
|
-
var a =
|
|
1121
|
-
a && (t =
|
|
1091
|
+
o && (t = S(S({}, t), o));
|
|
1092
|
+
var a = fn(i.stem);
|
|
1093
|
+
a && (t = S(S({}, t), a));
|
|
1122
1094
|
}
|
|
1123
1095
|
return t;
|
|
1124
1096
|
}
|
|
1125
|
-
var
|
|
1097
|
+
var Ie = {
|
|
1126
1098
|
"001": [
|
|
1127
1099
|
"H",
|
|
1128
1100
|
"h"
|
|
@@ -2537,13 +2509,13 @@ var Be = {
|
|
|
2537
2509
|
"h"
|
|
2538
2510
|
]
|
|
2539
2511
|
};
|
|
2540
|
-
function
|
|
2512
|
+
function dn(e, t) {
|
|
2541
2513
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2542
2514
|
var i = e.charAt(n);
|
|
2543
2515
|
if (i === "j") {
|
|
2544
2516
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2545
2517
|
s++, n++;
|
|
2546
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2518
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = bn(t);
|
|
2547
2519
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2548
2520
|
r += l;
|
|
2549
2521
|
for (; o-- > 0; )
|
|
@@ -2553,7 +2525,7 @@ function mn(e, t) {
|
|
|
2553
2525
|
}
|
|
2554
2526
|
return r;
|
|
2555
2527
|
}
|
|
2556
|
-
function
|
|
2528
|
+
function bn(e) {
|
|
2557
2529
|
var t = e.hourCycle;
|
|
2558
2530
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2559
2531
|
e.hourCycles && // @ts-ignore
|
|
@@ -2572,23 +2544,23 @@ function dn(e) {
|
|
|
2572
2544
|
}
|
|
2573
2545
|
var r = e.language, n;
|
|
2574
2546
|
r !== "root" && (n = e.maximize().region);
|
|
2575
|
-
var i =
|
|
2547
|
+
var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
|
|
2576
2548
|
return i[0];
|
|
2577
2549
|
}
|
|
2578
|
-
var
|
|
2550
|
+
var Je, gn = new RegExp("^".concat(Wt.source, "*")), pn = new RegExp("".concat(Wt.source, "*$"));
|
|
2579
2551
|
function p(e, t) {
|
|
2580
2552
|
return { start: e, end: t };
|
|
2581
2553
|
}
|
|
2582
|
-
var
|
|
2554
|
+
var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, vn = !!Object.fromEntries, En = !!String.prototype.codePointAt, xn = !!String.prototype.trimStart, Sn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, An = Tn ? Number.isSafeInteger : function(e) {
|
|
2583
2555
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2584
|
-
},
|
|
2556
|
+
}, tt = !0;
|
|
2585
2557
|
try {
|
|
2586
|
-
var
|
|
2587
|
-
|
|
2558
|
+
var Hn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2559
|
+
tt = ((Je = Hn.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
|
|
2588
2560
|
} catch {
|
|
2589
|
-
|
|
2561
|
+
tt = !1;
|
|
2590
2562
|
}
|
|
2591
|
-
var pt =
|
|
2563
|
+
var pt = yn ? (
|
|
2592
2564
|
// Native
|
|
2593
2565
|
function(t, r, n) {
|
|
2594
2566
|
return t.startsWith(r, n);
|
|
@@ -2598,7 +2570,7 @@ var pt = pn ? (
|
|
|
2598
2570
|
function(t, r, n) {
|
|
2599
2571
|
return t.slice(n, n + r.length) === r;
|
|
2600
2572
|
}
|
|
2601
|
-
),
|
|
2573
|
+
), rt = _n ? String.fromCodePoint : (
|
|
2602
2574
|
// IE11
|
|
2603
2575
|
function() {
|
|
2604
2576
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2612,7 +2584,7 @@ var pt = pn ? (
|
|
|
2612
2584
|
}
|
|
2613
2585
|
), yt = (
|
|
2614
2586
|
// native
|
|
2615
|
-
|
|
2587
|
+
vn ? Object.fromEntries : (
|
|
2616
2588
|
// Ponyfill
|
|
2617
2589
|
function(t) {
|
|
2618
2590
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2622,7 +2594,7 @@ var pt = pn ? (
|
|
|
2622
2594
|
return r;
|
|
2623
2595
|
}
|
|
2624
2596
|
)
|
|
2625
|
-
), Qt =
|
|
2597
|
+
), Qt = En ? (
|
|
2626
2598
|
// Native
|
|
2627
2599
|
function(t, r) {
|
|
2628
2600
|
return t.codePointAt(r);
|
|
@@ -2636,7 +2608,7 @@ var pt = pn ? (
|
|
|
2636
2608
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2637
2609
|
}
|
|
2638
2610
|
}
|
|
2639
|
-
),
|
|
2611
|
+
), Cn = xn ? (
|
|
2640
2612
|
// Native
|
|
2641
2613
|
function(t) {
|
|
2642
2614
|
return t.trimStart();
|
|
@@ -2644,9 +2616,9 @@ var pt = pn ? (
|
|
|
2644
2616
|
) : (
|
|
2645
2617
|
// Ponyfill
|
|
2646
2618
|
function(t) {
|
|
2647
|
-
return t.replace(
|
|
2619
|
+
return t.replace(gn, "");
|
|
2648
2620
|
}
|
|
2649
|
-
),
|
|
2621
|
+
), wn = Sn ? (
|
|
2650
2622
|
// Native
|
|
2651
2623
|
function(t) {
|
|
2652
2624
|
return t.trimEnd();
|
|
@@ -2654,32 +2626,32 @@ var pt = pn ? (
|
|
|
2654
2626
|
) : (
|
|
2655
2627
|
// Ponyfill
|
|
2656
2628
|
function(t) {
|
|
2657
|
-
return t.replace(
|
|
2629
|
+
return t.replace(pn, "");
|
|
2658
2630
|
}
|
|
2659
2631
|
);
|
|
2660
2632
|
function Yt(e, t) {
|
|
2661
2633
|
return new RegExp(e, t);
|
|
2662
2634
|
}
|
|
2663
|
-
var
|
|
2664
|
-
if (
|
|
2635
|
+
var nt;
|
|
2636
|
+
if (tt) {
|
|
2665
2637
|
var _t = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2666
|
-
|
|
2638
|
+
nt = function(t, r) {
|
|
2667
2639
|
var n;
|
|
2668
2640
|
_t.lastIndex = r;
|
|
2669
2641
|
var i = _t.exec(t);
|
|
2670
2642
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2671
2643
|
};
|
|
2672
2644
|
} else
|
|
2673
|
-
|
|
2645
|
+
nt = function(t, r) {
|
|
2674
2646
|
for (var n = []; ; ) {
|
|
2675
2647
|
var i = Qt(t, r);
|
|
2676
2648
|
if (i === void 0 || Kt(i) || Nn(i))
|
|
2677
2649
|
break;
|
|
2678
2650
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2679
2651
|
}
|
|
2680
|
-
return
|
|
2652
|
+
return rt.apply(void 0, n);
|
|
2681
2653
|
};
|
|
2682
|
-
var
|
|
2654
|
+
var Bn = (
|
|
2683
2655
|
/** @class */
|
|
2684
2656
|
function() {
|
|
2685
2657
|
function e(t, r) {
|
|
@@ -2703,14 +2675,14 @@ var wn = (
|
|
|
2703
2675
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2704
2676
|
var a = this.clonePosition();
|
|
2705
2677
|
this.bump(), i.push({
|
|
2706
|
-
type:
|
|
2678
|
+
type: x.pound,
|
|
2707
2679
|
location: p(a, this.clonePosition())
|
|
2708
2680
|
});
|
|
2709
2681
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2710
2682
|
if (n)
|
|
2711
2683
|
break;
|
|
2712
2684
|
return this.error(g.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2713
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2685
|
+
} else if (s === 60 && !this.ignoreTag && it(this.peek() || 0)) {
|
|
2714
2686
|
var o = this.parseTag(t, r);
|
|
2715
2687
|
if (o.err)
|
|
2716
2688
|
return o;
|
|
@@ -2731,7 +2703,7 @@ var wn = (
|
|
|
2731
2703
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2732
2704
|
return {
|
|
2733
2705
|
val: {
|
|
2734
|
-
type:
|
|
2706
|
+
type: x.literal,
|
|
2735
2707
|
value: "<".concat(i, "/>"),
|
|
2736
2708
|
location: p(n, this.clonePosition())
|
|
2737
2709
|
},
|
|
@@ -2743,12 +2715,12 @@ var wn = (
|
|
|
2743
2715
|
return s;
|
|
2744
2716
|
var o = s.val, a = this.clonePosition();
|
|
2745
2717
|
if (this.bumpIf("</")) {
|
|
2746
|
-
if (this.isEOF() || !
|
|
2718
|
+
if (this.isEOF() || !it(this.char()))
|
|
2747
2719
|
return this.error(g.INVALID_TAG, p(a, this.clonePosition()));
|
|
2748
2720
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2749
2721
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2750
2722
|
val: {
|
|
2751
|
-
type:
|
|
2723
|
+
type: x.tag,
|
|
2752
2724
|
value: i,
|
|
2753
2725
|
children: o,
|
|
2754
2726
|
location: p(n, this.clonePosition())
|
|
@@ -2761,7 +2733,7 @@ var wn = (
|
|
|
2761
2733
|
return this.error(g.INVALID_TAG, p(n, this.clonePosition()));
|
|
2762
2734
|
}, e.prototype.parseTagName = function() {
|
|
2763
2735
|
var t = this.offset();
|
|
2764
|
-
for (this.bump(); !this.isEOF() &&
|
|
2736
|
+
for (this.bump(); !this.isEOF() && On(this.char()); )
|
|
2765
2737
|
this.bump();
|
|
2766
2738
|
return this.message.slice(t, this.offset());
|
|
2767
2739
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2785,12 +2757,12 @@ var wn = (
|
|
|
2785
2757
|
}
|
|
2786
2758
|
var l = p(n, this.clonePosition());
|
|
2787
2759
|
return {
|
|
2788
|
-
val: { type:
|
|
2760
|
+
val: { type: x.literal, value: i, location: l },
|
|
2789
2761
|
err: null
|
|
2790
2762
|
};
|
|
2791
2763
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2792
2764
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2793
|
-
!
|
|
2765
|
+
!In(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2794
2766
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2795
2767
|
if (this.isEOF() || this.char() !== 39)
|
|
2796
2768
|
return null;
|
|
@@ -2824,12 +2796,12 @@ var wn = (
|
|
|
2824
2796
|
r.push(n);
|
|
2825
2797
|
this.bump();
|
|
2826
2798
|
}
|
|
2827
|
-
return
|
|
2799
|
+
return rt.apply(void 0, r);
|
|
2828
2800
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2829
2801
|
if (this.isEOF())
|
|
2830
2802
|
return null;
|
|
2831
2803
|
var n = this.char();
|
|
2832
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2804
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rt(n));
|
|
2833
2805
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2834
2806
|
var n = this.clonePosition();
|
|
2835
2807
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2845,7 +2817,7 @@ var wn = (
|
|
|
2845
2817
|
case 125:
|
|
2846
2818
|
return this.bump(), {
|
|
2847
2819
|
val: {
|
|
2848
|
-
type:
|
|
2820
|
+
type: x.argument,
|
|
2849
2821
|
// value does not include the opening and closing braces.
|
|
2850
2822
|
value: i,
|
|
2851
2823
|
location: p(n, this.clonePosition())
|
|
@@ -2858,7 +2830,7 @@ var wn = (
|
|
|
2858
2830
|
return this.error(g.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2859
2831
|
}
|
|
2860
2832
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2861
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2833
|
+
var t = this.clonePosition(), r = this.offset(), n = nt(this.message, r), i = r + n.length;
|
|
2862
2834
|
this.bumpTo(i);
|
|
2863
2835
|
var s = this.clonePosition(), o = p(t, s);
|
|
2864
2836
|
return { value: n, location: o };
|
|
@@ -2877,44 +2849,44 @@ var wn = (
|
|
|
2877
2849
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2878
2850
|
if (c.err)
|
|
2879
2851
|
return c;
|
|
2880
|
-
var m =
|
|
2852
|
+
var m = wn(c.val);
|
|
2881
2853
|
if (m.length === 0)
|
|
2882
2854
|
return this.error(g.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2883
|
-
var
|
|
2884
|
-
u = { style: m, styleLocation:
|
|
2855
|
+
var v = p(h, this.clonePosition());
|
|
2856
|
+
u = { style: m, styleLocation: v };
|
|
2885
2857
|
}
|
|
2886
2858
|
var y = this.tryParseArgumentClose(i);
|
|
2887
2859
|
if (y.err)
|
|
2888
2860
|
return y;
|
|
2889
2861
|
var T = p(i, this.clonePosition());
|
|
2890
2862
|
if (u && pt(u?.style, "::", 0)) {
|
|
2891
|
-
var B =
|
|
2863
|
+
var B = Cn(u.style.slice(2));
|
|
2892
2864
|
if (a === "number") {
|
|
2893
2865
|
var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
2894
2866
|
return c.err ? c : {
|
|
2895
|
-
val: { type:
|
|
2867
|
+
val: { type: x.number, value: n, location: T, style: c.val },
|
|
2896
2868
|
err: null
|
|
2897
2869
|
};
|
|
2898
2870
|
} else {
|
|
2899
2871
|
if (B.length === 0)
|
|
2900
2872
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2901
2873
|
var F = B;
|
|
2902
|
-
this.locale && (F =
|
|
2874
|
+
this.locale && (F = dn(B, this.locale));
|
|
2903
2875
|
var m = {
|
|
2904
|
-
type:
|
|
2876
|
+
type: fe.dateTime,
|
|
2905
2877
|
pattern: F,
|
|
2906
2878
|
location: u.styleLocation,
|
|
2907
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2908
|
-
},
|
|
2879
|
+
parsedOptions: this.shouldParseSkeletons ? on(F) : {}
|
|
2880
|
+
}, M = a === "date" ? x.date : x.time;
|
|
2909
2881
|
return {
|
|
2910
|
-
val: { type:
|
|
2882
|
+
val: { type: M, value: n, location: T, style: m },
|
|
2911
2883
|
err: null
|
|
2912
2884
|
};
|
|
2913
2885
|
}
|
|
2914
2886
|
}
|
|
2915
2887
|
return {
|
|
2916
2888
|
val: {
|
|
2917
|
-
type: a === "number" ?
|
|
2889
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2918
2890
|
value: n,
|
|
2919
2891
|
location: T,
|
|
2920
2892
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2927,7 +2899,7 @@ var wn = (
|
|
|
2927
2899
|
case "select": {
|
|
2928
2900
|
var C = this.clonePosition();
|
|
2929
2901
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2930
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, p(C,
|
|
2902
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, p(C, Me({}, C)));
|
|
2931
2903
|
this.bumpSpace();
|
|
2932
2904
|
var U = this.parseIdentifierIfPossible(), L = 0;
|
|
2933
2905
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -2948,7 +2920,7 @@ var wn = (
|
|
|
2948
2920
|
var V = p(i, this.clonePosition());
|
|
2949
2921
|
return a === "select" ? {
|
|
2950
2922
|
val: {
|
|
2951
|
-
type:
|
|
2923
|
+
type: x.select,
|
|
2952
2924
|
value: n,
|
|
2953
2925
|
options: yt(I.val),
|
|
2954
2926
|
location: V
|
|
@@ -2956,7 +2928,7 @@ var wn = (
|
|
|
2956
2928
|
err: null
|
|
2957
2929
|
} : {
|
|
2958
2930
|
val: {
|
|
2959
|
-
type:
|
|
2931
|
+
type: x.plural,
|
|
2960
2932
|
value: n,
|
|
2961
2933
|
options: yt(I.val),
|
|
2962
2934
|
offset: L,
|
|
@@ -3009,16 +2981,16 @@ var wn = (
|
|
|
3009
2981
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3010
2982
|
var n = [];
|
|
3011
2983
|
try {
|
|
3012
|
-
n =
|
|
2984
|
+
n = ln(t);
|
|
3013
2985
|
} catch {
|
|
3014
2986
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3015
2987
|
}
|
|
3016
2988
|
return {
|
|
3017
2989
|
val: {
|
|
3018
|
-
type:
|
|
2990
|
+
type: fe.number,
|
|
3019
2991
|
tokens: n,
|
|
3020
2992
|
location: r,
|
|
3021
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2993
|
+
parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
|
|
3022
2994
|
},
|
|
3023
2995
|
err: null
|
|
3024
2996
|
};
|
|
@@ -3037,20 +3009,20 @@ var wn = (
|
|
|
3037
3009
|
if (l.has(u))
|
|
3038
3010
|
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3039
3011
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3040
|
-
var
|
|
3012
|
+
var v = this.clonePosition();
|
|
3041
3013
|
if (!this.bumpIf("{"))
|
|
3042
3014
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3043
3015
|
var y = this.parseMessage(t + 1, r, n);
|
|
3044
3016
|
if (y.err)
|
|
3045
3017
|
return y;
|
|
3046
|
-
var T = this.tryParseArgumentClose(
|
|
3018
|
+
var T = this.tryParseArgumentClose(v);
|
|
3047
3019
|
if (T.err)
|
|
3048
3020
|
return T;
|
|
3049
3021
|
a.push([
|
|
3050
3022
|
u,
|
|
3051
3023
|
{
|
|
3052
3024
|
value: y.val,
|
|
3053
|
-
location: p(
|
|
3025
|
+
location: p(v, this.clonePosition())
|
|
3054
3026
|
}
|
|
3055
3027
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3056
3028
|
}
|
|
@@ -3066,7 +3038,7 @@ var wn = (
|
|
|
3066
3038
|
break;
|
|
3067
3039
|
}
|
|
3068
3040
|
var l = p(i, this.clonePosition());
|
|
3069
|
-
return s ? (o *= n,
|
|
3041
|
+
return s ? (o *= n, An(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3070
3042
|
}, e.prototype.offset = function() {
|
|
3071
3043
|
return this.position.offset;
|
|
3072
3044
|
}, e.prototype.isEOF = function() {
|
|
@@ -3132,13 +3104,13 @@ var wn = (
|
|
|
3132
3104
|
}, e;
|
|
3133
3105
|
}()
|
|
3134
3106
|
);
|
|
3135
|
-
function
|
|
3107
|
+
function it(e) {
|
|
3136
3108
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3137
3109
|
}
|
|
3138
|
-
function Bn(e) {
|
|
3139
|
-
return rt(e) || e === 47;
|
|
3140
|
-
}
|
|
3141
3110
|
function In(e) {
|
|
3111
|
+
return it(e) || e === 47;
|
|
3112
|
+
}
|
|
3113
|
+
function On(e) {
|
|
3142
3114
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3143
3115
|
}
|
|
3144
3116
|
function Kt(e) {
|
|
@@ -3147,32 +3119,32 @@ function Kt(e) {
|
|
|
3147
3119
|
function Nn(e) {
|
|
3148
3120
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3149
3121
|
}
|
|
3150
|
-
function
|
|
3122
|
+
function st(e) {
|
|
3151
3123
|
e.forEach(function(t) {
|
|
3152
3124
|
if (delete t.location, jt(t) || Vt(t))
|
|
3153
3125
|
for (var r in t.options)
|
|
3154
|
-
delete t.options[r].location,
|
|
3126
|
+
delete t.options[r].location, st(t.options[r].value);
|
|
3155
3127
|
else
|
|
3156
|
-
Ft(t) && Jt(t.style) || (Gt(t) || $t(t)) &&
|
|
3128
|
+
Ft(t) && Jt(t.style) || (Gt(t) || $t(t)) && et(t.style) ? delete t.style.location : zt(t) && st(t.children);
|
|
3157
3129
|
});
|
|
3158
3130
|
}
|
|
3159
|
-
function
|
|
3160
|
-
t === void 0 && (t = {}), t =
|
|
3161
|
-
var r = new
|
|
3131
|
+
function Pn(e, t) {
|
|
3132
|
+
t === void 0 && (t = {}), t = Me({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3133
|
+
var r = new Bn(e, t).parse();
|
|
3162
3134
|
if (r.err) {
|
|
3163
3135
|
var n = SyntaxError(g[r.err.kind]);
|
|
3164
3136
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3165
3137
|
}
|
|
3166
|
-
return t?.captureLocation ||
|
|
3138
|
+
return t?.captureLocation || st(r.val), r.val;
|
|
3167
3139
|
}
|
|
3168
|
-
var
|
|
3140
|
+
var me;
|
|
3169
3141
|
(function(e) {
|
|
3170
3142
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3171
|
-
})(
|
|
3172
|
-
var
|
|
3143
|
+
})(me || (me = {}));
|
|
3144
|
+
var Ue = (
|
|
3173
3145
|
/** @class */
|
|
3174
3146
|
function(e) {
|
|
3175
|
-
|
|
3147
|
+
ke(t, e);
|
|
3176
3148
|
function t(r, n, i) {
|
|
3177
3149
|
var s = e.call(this, r) || this;
|
|
3178
3150
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3184,41 +3156,41 @@ var De = (
|
|
|
3184
3156
|
), vt = (
|
|
3185
3157
|
/** @class */
|
|
3186
3158
|
function(e) {
|
|
3187
|
-
|
|
3159
|
+
ke(t, e);
|
|
3188
3160
|
function t(r, n, i, s) {
|
|
3189
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3161
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), me.INVALID_VALUE, s) || this;
|
|
3190
3162
|
}
|
|
3191
3163
|
return t;
|
|
3192
|
-
}(
|
|
3193
|
-
),
|
|
3164
|
+
}(Ue)
|
|
3165
|
+
), Mn = (
|
|
3194
3166
|
/** @class */
|
|
3195
3167
|
function(e) {
|
|
3196
|
-
|
|
3168
|
+
ke(t, e);
|
|
3197
3169
|
function t(r, n, i) {
|
|
3198
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3170
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), me.INVALID_VALUE, i) || this;
|
|
3199
3171
|
}
|
|
3200
3172
|
return t;
|
|
3201
|
-
}(
|
|
3202
|
-
),
|
|
3173
|
+
}(Ue)
|
|
3174
|
+
), Ln = (
|
|
3203
3175
|
/** @class */
|
|
3204
3176
|
function(e) {
|
|
3205
|
-
|
|
3177
|
+
ke(t, e);
|
|
3206
3178
|
function t(r, n) {
|
|
3207
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3179
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), me.MISSING_VALUE, n) || this;
|
|
3208
3180
|
}
|
|
3209
3181
|
return t;
|
|
3210
|
-
}(
|
|
3182
|
+
}(Ue)
|
|
3211
3183
|
), D;
|
|
3212
3184
|
(function(e) {
|
|
3213
3185
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3214
3186
|
})(D || (D = {}));
|
|
3215
|
-
function
|
|
3187
|
+
function Rn(e) {
|
|
3216
3188
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3217
3189
|
var n = t[t.length - 1];
|
|
3218
3190
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
3219
3191
|
}, []);
|
|
3220
3192
|
}
|
|
3221
|
-
function
|
|
3193
|
+
function Dn(e) {
|
|
3222
3194
|
return typeof e == "function";
|
|
3223
3195
|
}
|
|
3224
3196
|
function Ne(e, t, r, n, i, s, o) {
|
|
@@ -3238,7 +3210,7 @@ function Ne(e, t, r, n, i, s, o) {
|
|
|
3238
3210
|
});
|
|
3239
3211
|
continue;
|
|
3240
3212
|
}
|
|
3241
|
-
if (
|
|
3213
|
+
if (sn(h)) {
|
|
3242
3214
|
typeof s == "number" && a.push({
|
|
3243
3215
|
type: D.literal,
|
|
3244
3216
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3247,9 +3219,9 @@ function Ne(e, t, r, n, i, s, o) {
|
|
|
3247
3219
|
}
|
|
3248
3220
|
var c = h.value;
|
|
3249
3221
|
if (!(i && c in i))
|
|
3250
|
-
throw new
|
|
3222
|
+
throw new Ln(c, o);
|
|
3251
3223
|
var m = i[c];
|
|
3252
|
-
if (
|
|
3224
|
+
if (nn(h)) {
|
|
3253
3225
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3254
3226
|
type: typeof m == "string" ? D.literal : D.object,
|
|
3255
3227
|
value: m
|
|
@@ -3257,37 +3229,37 @@ function Ne(e, t, r, n, i, s, o) {
|
|
|
3257
3229
|
continue;
|
|
3258
3230
|
}
|
|
3259
3231
|
if (Gt(h)) {
|
|
3260
|
-
var
|
|
3232
|
+
var v = typeof h.style == "string" ? n.date[h.style] : et(h.style) ? h.style.parsedOptions : void 0;
|
|
3261
3233
|
a.push({
|
|
3262
3234
|
type: D.literal,
|
|
3263
|
-
value: r.getDateTimeFormat(t,
|
|
3235
|
+
value: r.getDateTimeFormat(t, v).format(m)
|
|
3264
3236
|
});
|
|
3265
3237
|
continue;
|
|
3266
3238
|
}
|
|
3267
3239
|
if ($t(h)) {
|
|
3268
|
-
var
|
|
3240
|
+
var v = typeof h.style == "string" ? n.time[h.style] : et(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3269
3241
|
a.push({
|
|
3270
3242
|
type: D.literal,
|
|
3271
|
-
value: r.getDateTimeFormat(t,
|
|
3243
|
+
value: r.getDateTimeFormat(t, v).format(m)
|
|
3272
3244
|
});
|
|
3273
3245
|
continue;
|
|
3274
3246
|
}
|
|
3275
3247
|
if (Ft(h)) {
|
|
3276
|
-
var
|
|
3277
|
-
|
|
3248
|
+
var v = typeof h.style == "string" ? n.number[h.style] : Jt(h.style) ? h.style.parsedOptions : void 0;
|
|
3249
|
+
v && v.scale && (m = m * (v.scale || 1)), a.push({
|
|
3278
3250
|
type: D.literal,
|
|
3279
|
-
value: r.getNumberFormat(t,
|
|
3251
|
+
value: r.getNumberFormat(t, v).format(m)
|
|
3280
3252
|
});
|
|
3281
3253
|
continue;
|
|
3282
3254
|
}
|
|
3283
3255
|
if (zt(h)) {
|
|
3284
3256
|
var y = h.children, T = h.value, B = i[T];
|
|
3285
|
-
if (!
|
|
3286
|
-
throw new
|
|
3287
|
-
var F = Ne(y, t, r, n, i, s),
|
|
3257
|
+
if (!Dn(B))
|
|
3258
|
+
throw new Mn(T, "function", o);
|
|
3259
|
+
var F = Ne(y, t, r, n, i, s), M = B(F.map(function(L) {
|
|
3288
3260
|
return L.value;
|
|
3289
3261
|
}));
|
|
3290
|
-
Array.isArray(
|
|
3262
|
+
Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(L) {
|
|
3291
3263
|
return {
|
|
3292
3264
|
type: typeof L == "string" ? D.literal : D.object,
|
|
3293
3265
|
value: L
|
|
@@ -3305,9 +3277,9 @@ function Ne(e, t, r, n, i, s, o) {
|
|
|
3305
3277
|
var C = h.options["=".concat(m)];
|
|
3306
3278
|
if (!C) {
|
|
3307
3279
|
if (!Intl.PluralRules)
|
|
3308
|
-
throw new
|
|
3280
|
+
throw new Ue(`Intl.PluralRules is not available in this environment.
|
|
3309
3281
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3310
|
-
`,
|
|
3282
|
+
`, me.MISSING_INTL_API, o);
|
|
3311
3283
|
var U = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3312
3284
|
C = h.options[U] || h.options.other;
|
|
3313
3285
|
}
|
|
@@ -3317,19 +3289,19 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3317
3289
|
continue;
|
|
3318
3290
|
}
|
|
3319
3291
|
}
|
|
3320
|
-
return
|
|
3292
|
+
return Rn(a);
|
|
3321
3293
|
}
|
|
3322
|
-
function
|
|
3323
|
-
return t ?
|
|
3324
|
-
return r[n] =
|
|
3294
|
+
function kn(e, t) {
|
|
3295
|
+
return t ? q(q(q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3296
|
+
return r[n] = q(q({}, e[n]), t[n] || {}), r;
|
|
3325
3297
|
}, {})) : e;
|
|
3326
3298
|
}
|
|
3327
|
-
function
|
|
3299
|
+
function Un(e, t) {
|
|
3328
3300
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3329
|
-
return r[n] =
|
|
3330
|
-
},
|
|
3301
|
+
return r[n] = kn(e[n], t[n]), r;
|
|
3302
|
+
}, q({}, e)) : e;
|
|
3331
3303
|
}
|
|
3332
|
-
function
|
|
3304
|
+
function We(e) {
|
|
3333
3305
|
return {
|
|
3334
3306
|
create: function() {
|
|
3335
3307
|
return {
|
|
@@ -3343,39 +3315,39 @@ function ze(e) {
|
|
|
3343
3315
|
}
|
|
3344
3316
|
};
|
|
3345
3317
|
}
|
|
3346
|
-
function
|
|
3318
|
+
function Fn(e) {
|
|
3347
3319
|
return e === void 0 && (e = {
|
|
3348
3320
|
number: {},
|
|
3349
3321
|
dateTime: {},
|
|
3350
3322
|
pluralRules: {}
|
|
3351
3323
|
}), {
|
|
3352
|
-
getNumberFormat:
|
|
3324
|
+
getNumberFormat: Ve(function() {
|
|
3353
3325
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3354
3326
|
r[n] = arguments[n];
|
|
3355
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3327
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
3356
3328
|
}, {
|
|
3357
|
-
cache:
|
|
3358
|
-
strategy:
|
|
3329
|
+
cache: We(e.number),
|
|
3330
|
+
strategy: ze.variadic
|
|
3359
3331
|
}),
|
|
3360
|
-
getDateTimeFormat:
|
|
3332
|
+
getDateTimeFormat: Ve(function() {
|
|
3361
3333
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3362
3334
|
r[n] = arguments[n];
|
|
3363
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3335
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
3364
3336
|
}, {
|
|
3365
|
-
cache:
|
|
3366
|
-
strategy:
|
|
3337
|
+
cache: We(e.dateTime),
|
|
3338
|
+
strategy: ze.variadic
|
|
3367
3339
|
}),
|
|
3368
|
-
getPluralRules:
|
|
3340
|
+
getPluralRules: Ve(function() {
|
|
3369
3341
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3370
3342
|
r[n] = arguments[n];
|
|
3371
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3343
|
+
return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
|
|
3372
3344
|
}, {
|
|
3373
|
-
cache:
|
|
3374
|
-
strategy:
|
|
3345
|
+
cache: We(e.pluralRules),
|
|
3346
|
+
strategy: ze.variadic
|
|
3375
3347
|
})
|
|
3376
3348
|
};
|
|
3377
3349
|
}
|
|
3378
|
-
var
|
|
3350
|
+
var Gn = (
|
|
3379
3351
|
/** @class */
|
|
3380
3352
|
function() {
|
|
3381
3353
|
function e(t, r, n, i) {
|
|
@@ -3407,13 +3379,13 @@ var Fn = (
|
|
|
3407
3379
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3408
3380
|
var o = i || {};
|
|
3409
3381
|
o.formatters;
|
|
3410
|
-
var a =
|
|
3411
|
-
this.ast = e.__parse(t,
|
|
3382
|
+
var a = Zr(o, ["formatters"]);
|
|
3383
|
+
this.ast = e.__parse(t, q(q({}, a), { locale: this.resolvedLocale }));
|
|
3412
3384
|
} else
|
|
3413
3385
|
this.ast = t;
|
|
3414
3386
|
if (!Array.isArray(this.ast))
|
|
3415
3387
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3416
|
-
this.formats =
|
|
3388
|
+
this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3417
3389
|
}
|
|
3418
3390
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3419
3391
|
get: function() {
|
|
@@ -3426,7 +3398,7 @@ var Fn = (
|
|
|
3426
3398
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3427
3399
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3428
3400
|
}
|
|
3429
|
-
}, e.__parse =
|
|
3401
|
+
}, e.__parse = Pn, e.formats = {
|
|
3430
3402
|
number: {
|
|
3431
3403
|
integer: {
|
|
3432
3404
|
maximumFractionDigits: 0
|
|
@@ -3487,7 +3459,7 @@ var Fn = (
|
|
|
3487
3459
|
}, e;
|
|
3488
3460
|
}()
|
|
3489
3461
|
);
|
|
3490
|
-
function
|
|
3462
|
+
function $n(e, t) {
|
|
3491
3463
|
if (t == null)
|
|
3492
3464
|
return;
|
|
3493
3465
|
if (t in e)
|
|
@@ -3508,36 +3480,36 @@ function Gn(e, t) {
|
|
|
3508
3480
|
n = void 0;
|
|
3509
3481
|
return n;
|
|
3510
3482
|
}
|
|
3511
|
-
const
|
|
3483
|
+
const ee = {}, jn = (e, t, r) => r && (t in ee || (ee[t] = {}), e in ee[t] || (ee[t][e] = r), r), er = (e, t) => {
|
|
3512
3484
|
if (t == null)
|
|
3513
3485
|
return;
|
|
3514
|
-
if (t in
|
|
3515
|
-
return
|
|
3516
|
-
const r =
|
|
3486
|
+
if (t in ee && e in ee[t])
|
|
3487
|
+
return ee[t][e];
|
|
3488
|
+
const r = Fe(t);
|
|
3517
3489
|
for (let n = 0; n < r.length; n++) {
|
|
3518
|
-
const i = r[n], s =
|
|
3490
|
+
const i = r[n], s = zn(i, e);
|
|
3519
3491
|
if (s)
|
|
3520
|
-
return
|
|
3492
|
+
return jn(e, t, s);
|
|
3521
3493
|
}
|
|
3522
3494
|
};
|
|
3523
3495
|
let ut;
|
|
3524
|
-
const
|
|
3525
|
-
function
|
|
3496
|
+
const ge = De({});
|
|
3497
|
+
function Vn(e) {
|
|
3526
3498
|
return ut[e] || null;
|
|
3527
3499
|
}
|
|
3528
3500
|
function tr(e) {
|
|
3529
3501
|
return e in ut;
|
|
3530
3502
|
}
|
|
3531
|
-
function
|
|
3503
|
+
function zn(e, t) {
|
|
3532
3504
|
if (!tr(e))
|
|
3533
3505
|
return null;
|
|
3534
|
-
const r =
|
|
3535
|
-
return
|
|
3506
|
+
const r = Vn(e);
|
|
3507
|
+
return $n(r, t);
|
|
3536
3508
|
}
|
|
3537
|
-
function
|
|
3509
|
+
function Jn(e) {
|
|
3538
3510
|
if (e == null)
|
|
3539
3511
|
return;
|
|
3540
|
-
const t =
|
|
3512
|
+
const t = Fe(e);
|
|
3541
3513
|
for (let r = 0; r < t.length; r++) {
|
|
3542
3514
|
const n = t[r];
|
|
3543
3515
|
if (tr(n))
|
|
@@ -3545,55 +3517,55 @@ function zn(e) {
|
|
|
3545
3517
|
}
|
|
3546
3518
|
}
|
|
3547
3519
|
function rr(e, ...t) {
|
|
3548
|
-
delete
|
|
3520
|
+
delete ee[e], ge.update((r) => (r[e] = Xr.all([r[e] || {}, ...t]), r));
|
|
3549
3521
|
}
|
|
3550
|
-
|
|
3551
|
-
[
|
|
3522
|
+
be(
|
|
3523
|
+
[ge],
|
|
3552
3524
|
([e]) => Object.keys(e)
|
|
3553
3525
|
);
|
|
3554
|
-
|
|
3555
|
-
const
|
|
3556
|
-
function
|
|
3557
|
-
|
|
3526
|
+
ge.subscribe((e) => ut = e);
|
|
3527
|
+
const Pe = {};
|
|
3528
|
+
function Wn(e, t) {
|
|
3529
|
+
Pe[e].delete(t), Pe[e].size === 0 && delete Pe[e];
|
|
3558
3530
|
}
|
|
3559
3531
|
function nr(e) {
|
|
3560
|
-
return
|
|
3532
|
+
return Pe[e];
|
|
3561
3533
|
}
|
|
3562
|
-
function
|
|
3563
|
-
return
|
|
3534
|
+
function Xn(e) {
|
|
3535
|
+
return Fe(e).map((t) => {
|
|
3564
3536
|
const r = nr(t);
|
|
3565
3537
|
return [t, r ? [...r] : []];
|
|
3566
3538
|
}).filter(([, t]) => t.length > 0);
|
|
3567
3539
|
}
|
|
3568
|
-
function
|
|
3569
|
-
return e == null ? !1 :
|
|
3540
|
+
function at(e) {
|
|
3541
|
+
return e == null ? !1 : Fe(e).some(
|
|
3570
3542
|
(t) => {
|
|
3571
3543
|
var r;
|
|
3572
3544
|
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3573
3545
|
}
|
|
3574
3546
|
);
|
|
3575
3547
|
}
|
|
3576
|
-
function
|
|
3548
|
+
function Zn(e, t) {
|
|
3577
3549
|
return Promise.all(
|
|
3578
|
-
t.map((n) => (
|
|
3550
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3579
3551
|
).then((n) => rr(e, ...n));
|
|
3580
3552
|
}
|
|
3581
|
-
const
|
|
3553
|
+
const _e = {};
|
|
3582
3554
|
function ir(e) {
|
|
3583
|
-
if (!
|
|
3584
|
-
return e in
|
|
3585
|
-
const t =
|
|
3586
|
-
return
|
|
3555
|
+
if (!at(e))
|
|
3556
|
+
return e in _e ? _e[e] : Promise.resolve();
|
|
3557
|
+
const t = Xn(e);
|
|
3558
|
+
return _e[e] = Promise.all(
|
|
3587
3559
|
t.map(
|
|
3588
|
-
([r, n]) =>
|
|
3560
|
+
([r, n]) => Zn(r, n)
|
|
3589
3561
|
)
|
|
3590
3562
|
).then(() => {
|
|
3591
|
-
if (
|
|
3563
|
+
if (at(e))
|
|
3592
3564
|
return ir(e);
|
|
3593
|
-
delete
|
|
3594
|
-
}),
|
|
3565
|
+
delete _e[e];
|
|
3566
|
+
}), _e[e];
|
|
3595
3567
|
}
|
|
3596
|
-
const
|
|
3568
|
+
const qn = {
|
|
3597
3569
|
number: {
|
|
3598
3570
|
scientific: { notation: "scientific" },
|
|
3599
3571
|
engineering: { notation: "engineering" },
|
|
@@ -3622,141 +3594,141 @@ const Zn = {
|
|
|
3622
3594
|
timeZoneName: "short"
|
|
3623
3595
|
}
|
|
3624
3596
|
}
|
|
3625
|
-
},
|
|
3597
|
+
}, Qn = {
|
|
3626
3598
|
fallbackLocale: null,
|
|
3627
3599
|
loadingDelay: 200,
|
|
3628
|
-
formats:
|
|
3600
|
+
formats: qn,
|
|
3629
3601
|
warnOnMissingMessages: !0,
|
|
3630
3602
|
handleMissingMessage: void 0,
|
|
3631
3603
|
ignoreTag: !0
|
|
3632
|
-
},
|
|
3633
|
-
function
|
|
3634
|
-
return
|
|
3604
|
+
}, Yn = Qn;
|
|
3605
|
+
function de() {
|
|
3606
|
+
return Yn;
|
|
3635
3607
|
}
|
|
3636
|
-
const
|
|
3637
|
-
var
|
|
3608
|
+
const Xe = De(!1);
|
|
3609
|
+
var Kn = Object.defineProperty, ei = Object.defineProperties, ti = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, ri = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ii = (e, t) => {
|
|
3638
3610
|
for (var r in t || (t = {}))
|
|
3639
|
-
|
|
3640
|
-
if (
|
|
3641
|
-
for (var r of
|
|
3642
|
-
|
|
3611
|
+
ri.call(t, r) && xt(e, r, t[r]);
|
|
3612
|
+
if (Et)
|
|
3613
|
+
for (var r of Et(t))
|
|
3614
|
+
ni.call(t, r) && xt(e, r, t[r]);
|
|
3643
3615
|
return e;
|
|
3644
|
-
},
|
|
3645
|
-
let
|
|
3646
|
-
const
|
|
3616
|
+
}, si = (e, t) => ei(e, ti(t));
|
|
3617
|
+
let ot;
|
|
3618
|
+
const Le = De(null);
|
|
3647
3619
|
function St(e) {
|
|
3648
3620
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3649
3621
|
}
|
|
3650
|
-
function
|
|
3622
|
+
function Fe(e, t = de().fallbackLocale) {
|
|
3651
3623
|
const r = St(e);
|
|
3652
3624
|
return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
|
|
3653
3625
|
}
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3626
|
+
function ie() {
|
|
3627
|
+
return ot ?? void 0;
|
|
3656
3628
|
}
|
|
3657
|
-
|
|
3658
|
-
|
|
3629
|
+
Le.subscribe((e) => {
|
|
3630
|
+
ot = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3659
3631
|
});
|
|
3660
|
-
const
|
|
3661
|
-
if (e &&
|
|
3662
|
-
const { loadingDelay: t } =
|
|
3632
|
+
const ai = (e) => {
|
|
3633
|
+
if (e && Jn(e) && at(e)) {
|
|
3634
|
+
const { loadingDelay: t } = de();
|
|
3663
3635
|
let r;
|
|
3664
|
-
return typeof window < "u" &&
|
|
3665
|
-
() =>
|
|
3636
|
+
return typeof window < "u" && ie() != null && t ? r = window.setTimeout(
|
|
3637
|
+
() => Xe.set(!0),
|
|
3666
3638
|
t
|
|
3667
|
-
) :
|
|
3668
|
-
|
|
3639
|
+
) : Xe.set(!0), ir(e).then(() => {
|
|
3640
|
+
Le.set(e);
|
|
3669
3641
|
}).finally(() => {
|
|
3670
|
-
clearTimeout(r),
|
|
3642
|
+
clearTimeout(r), Xe.set(!1);
|
|
3671
3643
|
});
|
|
3672
3644
|
}
|
|
3673
|
-
return
|
|
3674
|
-
},
|
|
3675
|
-
set:
|
|
3676
|
-
}),
|
|
3645
|
+
return Le.set(e);
|
|
3646
|
+
}, te = si(ii({}, Le), {
|
|
3647
|
+
set: ai
|
|
3648
|
+
}), Ge = (e) => {
|
|
3677
3649
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3678
3650
|
return (n) => {
|
|
3679
3651
|
const i = JSON.stringify(n);
|
|
3680
3652
|
return i in t ? t[i] : t[i] = e(n);
|
|
3681
3653
|
};
|
|
3682
3654
|
};
|
|
3683
|
-
var
|
|
3655
|
+
var oi = Object.defineProperty, Re = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
|
|
3684
3656
|
for (var r in t || (t = {}))
|
|
3685
3657
|
sr.call(t, r) && Tt(e, r, t[r]);
|
|
3686
|
-
if (
|
|
3687
|
-
for (var r of
|
|
3658
|
+
if (Re)
|
|
3659
|
+
for (var r of Re(t))
|
|
3688
3660
|
ar.call(t, r) && Tt(e, r, t[r]);
|
|
3689
3661
|
return e;
|
|
3690
|
-
},
|
|
3662
|
+
}, pe = (e, t) => {
|
|
3691
3663
|
var r = {};
|
|
3692
3664
|
for (var n in e)
|
|
3693
3665
|
sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3694
|
-
if (e != null &&
|
|
3695
|
-
for (var n of
|
|
3666
|
+
if (e != null && Re)
|
|
3667
|
+
for (var n of Re(e))
|
|
3696
3668
|
t.indexOf(n) < 0 && ar.call(e, n) && (r[n] = e[n]);
|
|
3697
3669
|
return r;
|
|
3698
3670
|
};
|
|
3699
|
-
const
|
|
3700
|
-
const { formats: r } =
|
|
3671
|
+
const Se = (e, t) => {
|
|
3672
|
+
const { formats: r } = de();
|
|
3701
3673
|
if (e in r && t in r[e])
|
|
3702
3674
|
return r[e][t];
|
|
3703
3675
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3704
|
-
},
|
|
3676
|
+
}, ui = Ge(
|
|
3705
3677
|
(e) => {
|
|
3706
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3678
|
+
var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
|
|
3707
3679
|
if (r == null)
|
|
3708
3680
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3709
|
-
return n && (i =
|
|
3681
|
+
return n && (i = Se("number", n)), new Intl.NumberFormat(r, i);
|
|
3710
3682
|
}
|
|
3711
|
-
),
|
|
3683
|
+
), li = Ge(
|
|
3712
3684
|
(e) => {
|
|
3713
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3685
|
+
var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
|
|
3714
3686
|
if (r == null)
|
|
3715
3687
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3716
|
-
return n ? i =
|
|
3688
|
+
return n ? i = Se("date", n) : Object.keys(i).length === 0 && (i = Se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3717
3689
|
}
|
|
3718
|
-
),
|
|
3690
|
+
), hi = Ge(
|
|
3719
3691
|
(e) => {
|
|
3720
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3692
|
+
var t = e, { locale: r, format: n } = t, i = pe(t, ["locale", "format"]);
|
|
3721
3693
|
if (r == null)
|
|
3722
3694
|
throw new Error(
|
|
3723
3695
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3724
3696
|
);
|
|
3725
|
-
return n ? i =
|
|
3697
|
+
return n ? i = Se("time", n) : Object.keys(i).length === 0 && (i = Se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3726
3698
|
}
|
|
3727
|
-
),
|
|
3728
|
-
var t = e, {
|
|
3729
|
-
locale: r = ne()
|
|
3730
|
-
} = t, n = ge(t, [
|
|
3731
|
-
"locale"
|
|
3732
|
-
]);
|
|
3733
|
-
return oi(lt({ locale: r }, n));
|
|
3734
|
-
}, ci = (e = {}) => {
|
|
3699
|
+
), ci = (e = {}) => {
|
|
3735
3700
|
var t = e, {
|
|
3736
|
-
locale: r =
|
|
3737
|
-
} = t, n =
|
|
3701
|
+
locale: r = ie()
|
|
3702
|
+
} = t, n = pe(t, [
|
|
3738
3703
|
"locale"
|
|
3739
3704
|
]);
|
|
3740
3705
|
return ui(lt({ locale: r }, n));
|
|
3741
3706
|
}, fi = (e = {}) => {
|
|
3742
3707
|
var t = e, {
|
|
3743
|
-
locale: r =
|
|
3744
|
-
} = t, n =
|
|
3708
|
+
locale: r = ie()
|
|
3709
|
+
} = t, n = pe(t, [
|
|
3745
3710
|
"locale"
|
|
3746
3711
|
]);
|
|
3747
3712
|
return li(lt({ locale: r }, n));
|
|
3748
|
-
}, mi =
|
|
3713
|
+
}, mi = (e = {}) => {
|
|
3714
|
+
var t = e, {
|
|
3715
|
+
locale: r = ie()
|
|
3716
|
+
} = t, n = pe(t, [
|
|
3717
|
+
"locale"
|
|
3718
|
+
]);
|
|
3719
|
+
return hi(lt({ locale: r }, n));
|
|
3720
|
+
}, di = Ge(
|
|
3749
3721
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3750
|
-
(e, t =
|
|
3751
|
-
ignoreTag:
|
|
3722
|
+
(e, t = ie()) => new Gn(e, t, de().formats, {
|
|
3723
|
+
ignoreTag: de().ignoreTag
|
|
3752
3724
|
})
|
|
3753
|
-
),
|
|
3725
|
+
), bi = (e, t = {}) => {
|
|
3754
3726
|
var r, n, i, s;
|
|
3755
3727
|
let o = t;
|
|
3756
3728
|
typeof e == "object" && (o = e, e = o.id);
|
|
3757
3729
|
const {
|
|
3758
3730
|
values: a,
|
|
3759
|
-
locale: l =
|
|
3731
|
+
locale: l = ie(),
|
|
3760
3732
|
default: u
|
|
3761
3733
|
} = o;
|
|
3762
3734
|
if (l == null)
|
|
@@ -3765,7 +3737,7 @@ const Ee = (e, t) => {
|
|
|
3765
3737
|
);
|
|
3766
3738
|
let h = er(e, l);
|
|
3767
3739
|
if (!h)
|
|
3768
|
-
h = (s = (i = (n = (r =
|
|
3740
|
+
h = (s = (i = (n = (r = de()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3769
3741
|
else if (typeof h != "string")
|
|
3770
3742
|
return console.warn(
|
|
3771
3743
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3774,7 +3746,7 @@ const Ee = (e, t) => {
|
|
|
3774
3746
|
return h;
|
|
3775
3747
|
let c = h;
|
|
3776
3748
|
try {
|
|
3777
|
-
c =
|
|
3749
|
+
c = di(h, l).format(a);
|
|
3778
3750
|
} catch (m) {
|
|
3779
3751
|
m instanceof Error && console.warn(
|
|
3780
3752
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3782,12 +3754,12 @@ const Ee = (e, t) => {
|
|
|
3782
3754
|
);
|
|
3783
3755
|
}
|
|
3784
3756
|
return c;
|
|
3785
|
-
},
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
function
|
|
3757
|
+
}, gi = (e, t) => mi(t).format(e), pi = (e, t) => fi(t).format(e), yi = (e, t) => ci(t).format(e), _i = (e, t = ie()) => er(e, t), vi = be([te, ge], () => bi);
|
|
3758
|
+
be([te], () => gi);
|
|
3759
|
+
be([te], () => pi);
|
|
3760
|
+
be([te], () => yi);
|
|
3761
|
+
be([te, ge], () => _i);
|
|
3762
|
+
function Ei(e, t) {
|
|
3791
3763
|
if (e) {
|
|
3792
3764
|
const r = document.createElement("style");
|
|
3793
3765
|
r.innerHTML = t, e.appendChild(r);
|
|
@@ -3804,7 +3776,7 @@ function xi(e, t) {
|
|
|
3804
3776
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3805
3777
|
});
|
|
3806
3778
|
}
|
|
3807
|
-
function
|
|
3779
|
+
function Si(e, t, r) {
|
|
3808
3780
|
if (window.emMessageBus) {
|
|
3809
3781
|
const n = document.createElement("style");
|
|
3810
3782
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3812,16 +3784,16 @@ function Ei(e, t, r) {
|
|
|
3812
3784
|
});
|
|
3813
3785
|
}
|
|
3814
3786
|
}
|
|
3815
|
-
function
|
|
3816
|
-
|
|
3817
|
-
r == null && (
|
|
3787
|
+
function Ti({ withLocale: e, translations: t }) {
|
|
3788
|
+
te.subscribe((r) => {
|
|
3789
|
+
r == null && (ge.set(t), te.set(e));
|
|
3818
3790
|
});
|
|
3819
3791
|
}
|
|
3820
3792
|
function At(e, t) {
|
|
3821
3793
|
rr(e, t);
|
|
3822
3794
|
}
|
|
3823
|
-
function
|
|
3824
|
-
|
|
3795
|
+
function Ai(e) {
|
|
3796
|
+
te.set(e);
|
|
3825
3797
|
}
|
|
3826
3798
|
const Ht = {
|
|
3827
3799
|
en: {
|
|
@@ -4155,7 +4127,7 @@ const Ht = {
|
|
|
4155
4127
|
December: "December"
|
|
4156
4128
|
}
|
|
4157
4129
|
};
|
|
4158
|
-
function
|
|
4130
|
+
function Hi(e) {
|
|
4159
4131
|
hr(e, "svelte-52u9sp", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}');
|
|
4160
4132
|
}
|
|
4161
4133
|
function Ct(e) {
|
|
@@ -4168,7 +4140,7 @@ function Ct(e) {
|
|
|
4168
4140
|
k(i, t, s), k(i, r, s), k(i, n, s);
|
|
4169
4141
|
},
|
|
4170
4142
|
d(i) {
|
|
4171
|
-
i && (
|
|
4143
|
+
i && (O(t), O(r), O(n));
|
|
4172
4144
|
}
|
|
4173
4145
|
};
|
|
4174
4146
|
}
|
|
@@ -4176,83 +4148,83 @@ function wt(e) {
|
|
|
4176
4148
|
let t, r, n, i, s, o, a, l, u, h, c = (
|
|
4177
4149
|
/*$_*/
|
|
4178
4150
|
e[14]("scoreCriteria") + ""
|
|
4179
|
-
), m,
|
|
4151
|
+
), m, v, y, T, B, F = (
|
|
4180
4152
|
/*$_*/
|
|
4181
4153
|
e[14]("minbet") + ""
|
|
4182
|
-
),
|
|
4154
|
+
), M, C, U, L, I, V, z, W = (
|
|
4183
4155
|
/*$_*/
|
|
4184
4156
|
e[14]("seegames") + ""
|
|
4185
|
-
),
|
|
4157
|
+
), Q, He, G, Y = (
|
|
4186
4158
|
/*$_*/
|
|
4187
4159
|
e[14]("here") + ""
|
|
4188
|
-
),
|
|
4160
|
+
), ne, K, ye, Ce, w = (
|
|
4189
4161
|
/*status*/
|
|
4190
4162
|
e[0] && Bt(e)
|
|
4191
|
-
),
|
|
4163
|
+
), N = (
|
|
4192
4164
|
/*showenrolled*/
|
|
4193
4165
|
e[6] == "true" && It(e)
|
|
4194
4166
|
);
|
|
4195
4167
|
function f(b, E) {
|
|
4196
4168
|
return (
|
|
4197
4169
|
/*thumbnail*/
|
|
4198
|
-
b[3] ?
|
|
4170
|
+
b[3] ? wi : Ci
|
|
4199
4171
|
);
|
|
4200
4172
|
}
|
|
4201
|
-
let J = f(e), $ = J(e),
|
|
4173
|
+
let J = f(e), $ = J(e), P = (
|
|
4202
4174
|
/*startdate*/
|
|
4203
|
-
e[2] &&
|
|
4175
|
+
e[2] && Nt(e)
|
|
4204
4176
|
);
|
|
4205
4177
|
return {
|
|
4206
4178
|
c() {
|
|
4207
|
-
w && w.c(), t = X(),
|
|
4179
|
+
w && w.c(), t = X(), N && N.c(), r = X(), $.c(), n = X(), i = A("div"), s = A("div"), o = R(
|
|
4208
4180
|
/*title*/
|
|
4209
4181
|
e[1]
|
|
4210
|
-
), a = X(),
|
|
4182
|
+
), a = X(), P && P.c(), l = X(), u = A("div"), h = A("p"), m = R(c), v = R(`:
|
|
4211
4183
|
`), y = A("span"), T = R(
|
|
4212
4184
|
/*showScoreCriteria*/
|
|
4213
4185
|
e[12]
|
|
4214
4186
|
), B = R(`
|
|
4215
|
-
(`),
|
|
4187
|
+
(`), M = R(F), C = X(), U = R(
|
|
4216
4188
|
/*minbetcount*/
|
|
4217
4189
|
e[5]
|
|
4218
|
-
), L = R(")"), I = X(), V = A("div"), z = A("p"),
|
|
4190
|
+
), L = R(")"), I = X(), V = A("div"), z = A("p"), Q = R(W), He = X(), G = A("a"), ne = R(Y), d(s, "class", "Title"), d(s, "part", "Title"), d(y, "part", "ScoreCriteriaSpan"), d(h, "part", "ScoreCriteriaP"), d(u, "class", "ScoreCriteria"), d(u, "part", "ScoreCriteria"), d(G, "part", "GamesAnchor"), d(
|
|
4219
4191
|
G,
|
|
4220
4192
|
"href",
|
|
4221
4193
|
/*gameurl*/
|
|
4222
4194
|
e[7]
|
|
4223
|
-
), d(G, "target",
|
|
4195
|
+
), d(G, "target", K = /*keepbrowsercontext*/
|
|
4224
4196
|
e[8] === "true" ? "_self" : "_blank"), d(z, "part", "GamesP"), d(V, "class", "Games"), d(V, "part", "Games"), d(i, "class", "Details"), d(i, "part", "Details");
|
|
4225
4197
|
},
|
|
4226
4198
|
m(b, E) {
|
|
4227
|
-
w && w.m(b, E), k(b, t, E),
|
|
4228
|
-
|
|
4199
|
+
w && w.m(b, E), k(b, t, E), N && N.m(b, E), k(b, r, E), $.m(b, E), k(b, n, E), k(b, i, E), _(i, s), _(s, o), _(i, a), P && P.m(i, null), _(i, l), _(i, u), _(u, h), _(h, m), _(h, v), _(h, y), _(y, T), _(h, B), _(h, M), _(h, C), _(h, U), _(h, L), _(i, I), _(i, V), _(V, z), _(z, Q), _(z, He), _(z, G), _(G, ne), ye || (Ce = [
|
|
4200
|
+
he(
|
|
4229
4201
|
s,
|
|
4230
4202
|
"click",
|
|
4231
4203
|
/*detailsAction*/
|
|
4232
4204
|
e[19]
|
|
4233
4205
|
),
|
|
4234
|
-
|
|
4206
|
+
Ae(
|
|
4235
4207
|
/*matchScoreCriteria*/
|
|
4236
4208
|
e[17].call(null, y)
|
|
4237
4209
|
),
|
|
4238
|
-
|
|
4210
|
+
he(
|
|
4239
4211
|
G,
|
|
4240
4212
|
"click",
|
|
4241
4213
|
/*tournamentGamesClicked*/
|
|
4242
4214
|
e[18]
|
|
4243
4215
|
)
|
|
4244
|
-
],
|
|
4216
|
+
], ye = !0);
|
|
4245
4217
|
},
|
|
4246
4218
|
p(b, E) {
|
|
4247
4219
|
/*status*/
|
|
4248
4220
|
b[0] ? w ? w.p(b, E) : (w = Bt(b), w.c(), w.m(t.parentNode, t)) : w && (w.d(1), w = null), /*showenrolled*/
|
|
4249
|
-
b[6] == "true" ?
|
|
4221
|
+
b[6] == "true" ? N ? N.p(b, E) : (N = It(b), N.c(), N.m(r.parentNode, r)) : N && (N.d(1), N = null), J === (J = f(b)) && $ ? $.p(b, E) : ($.d(1), $ = J(b), $ && ($.c(), $.m(n.parentNode, n))), E[0] & /*title*/
|
|
4250
4222
|
2 && Z(
|
|
4251
4223
|
o,
|
|
4252
4224
|
/*title*/
|
|
4253
4225
|
b[1]
|
|
4254
4226
|
), /*startdate*/
|
|
4255
|
-
b[2] ?
|
|
4227
|
+
b[2] ? P ? P.p(b, E) : (P = Nt(b), P.c(), P.m(i, l)) : P && (P.d(1), P = null), E[0] & /*$_*/
|
|
4256
4228
|
16384 && c !== (c = /*$_*/
|
|
4257
4229
|
b[14]("scoreCriteria") + "") && Z(m, c), E[0] & /*showScoreCriteria*/
|
|
4258
4230
|
4096 && Z(
|
|
@@ -4261,27 +4233,27 @@ function wt(e) {
|
|
|
4261
4233
|
b[12]
|
|
4262
4234
|
), E[0] & /*$_*/
|
|
4263
4235
|
16384 && F !== (F = /*$_*/
|
|
4264
|
-
b[14]("minbet") + "") && Z(
|
|
4236
|
+
b[14]("minbet") + "") && Z(M, F), E[0] & /*minbetcount*/
|
|
4265
4237
|
32 && Z(
|
|
4266
4238
|
U,
|
|
4267
4239
|
/*minbetcount*/
|
|
4268
4240
|
b[5]
|
|
4269
4241
|
), E[0] & /*$_*/
|
|
4270
4242
|
16384 && W !== (W = /*$_*/
|
|
4271
|
-
b[14]("seegames") + "") && Z(
|
|
4272
|
-
16384 &&
|
|
4273
|
-
b[14]("here") + "") && Z(
|
|
4243
|
+
b[14]("seegames") + "") && Z(Q, W), E[0] & /*$_*/
|
|
4244
|
+
16384 && Y !== (Y = /*$_*/
|
|
4245
|
+
b[14]("here") + "") && Z(ne, Y), E[0] & /*gameurl*/
|
|
4274
4246
|
128 && d(
|
|
4275
4247
|
G,
|
|
4276
4248
|
"href",
|
|
4277
4249
|
/*gameurl*/
|
|
4278
4250
|
b[7]
|
|
4279
4251
|
), E[0] & /*keepbrowsercontext*/
|
|
4280
|
-
256 &&
|
|
4281
|
-
b[8] === "true" ? "_self" : "_blank") && d(G, "target",
|
|
4252
|
+
256 && K !== (K = /*keepbrowsercontext*/
|
|
4253
|
+
b[8] === "true" ? "_self" : "_blank") && d(G, "target", K);
|
|
4282
4254
|
},
|
|
4283
4255
|
d(b) {
|
|
4284
|
-
b && (
|
|
4256
|
+
b && (O(t), O(r), O(n), O(i)), w && w.d(b), N && N.d(b), $.d(b), P && P.d(), ye = !1, re(Ce);
|
|
4285
4257
|
}
|
|
4286
4258
|
};
|
|
4287
4259
|
}
|
|
@@ -4297,7 +4269,7 @@ function Bt(e) {
|
|
|
4297
4269
|
e[13]);
|
|
4298
4270
|
},
|
|
4299
4271
|
m(a, l) {
|
|
4300
|
-
k(a, t, l),
|
|
4272
|
+
k(a, t, l), _(t, r), s || (o = Ae(
|
|
4301
4273
|
/*matchStatus*/
|
|
4302
4274
|
e[16].call(null, t)
|
|
4303
4275
|
), s = !0);
|
|
@@ -4315,14 +4287,14 @@ function Bt(e) {
|
|
|
4315
4287
|
a[13]) && d(t, "part", i);
|
|
4316
4288
|
},
|
|
4317
4289
|
d(a) {
|
|
4318
|
-
a &&
|
|
4290
|
+
a && O(t), s = !1, o();
|
|
4319
4291
|
}
|
|
4320
4292
|
};
|
|
4321
4293
|
}
|
|
4322
4294
|
function It(e) {
|
|
4323
4295
|
let t, r = (
|
|
4324
4296
|
/*userenrolled*/
|
|
4325
|
-
e[4] &&
|
|
4297
|
+
e[4] && Ot(e)
|
|
4326
4298
|
);
|
|
4327
4299
|
return {
|
|
4328
4300
|
c() {
|
|
@@ -4333,14 +4305,14 @@ function It(e) {
|
|
|
4333
4305
|
},
|
|
4334
4306
|
p(n, i) {
|
|
4335
4307
|
/*userenrolled*/
|
|
4336
|
-
n[4] ? r ? r.p(n, i) : (r =
|
|
4308
|
+
n[4] ? r ? r.p(n, i) : (r = Ot(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4337
4309
|
},
|
|
4338
4310
|
d(n) {
|
|
4339
|
-
n &&
|
|
4311
|
+
n && O(t), r && r.d(n);
|
|
4340
4312
|
}
|
|
4341
4313
|
};
|
|
4342
4314
|
}
|
|
4343
|
-
function
|
|
4315
|
+
function Ot(e) {
|
|
4344
4316
|
let t, r = (
|
|
4345
4317
|
/*$_*/
|
|
4346
4318
|
e[14]("enrolled") + ""
|
|
@@ -4350,7 +4322,7 @@ function Nt(e) {
|
|
|
4350
4322
|
t = A("div"), n = R(r), d(t, "class", "Enrolled"), d(t, "part", "Enrolled");
|
|
4351
4323
|
},
|
|
4352
4324
|
m(i, s) {
|
|
4353
|
-
k(i, t, s),
|
|
4325
|
+
k(i, t, s), _(t, n);
|
|
4354
4326
|
},
|
|
4355
4327
|
p(i, s) {
|
|
4356
4328
|
s[0] & /*$_*/
|
|
@@ -4358,27 +4330,27 @@ function Nt(e) {
|
|
|
4358
4330
|
i[14]("enrolled") + "") && Z(n, r);
|
|
4359
4331
|
},
|
|
4360
4332
|
d(i) {
|
|
4361
|
-
i &&
|
|
4333
|
+
i && O(t);
|
|
4362
4334
|
}
|
|
4363
4335
|
};
|
|
4364
4336
|
}
|
|
4365
|
-
function
|
|
4337
|
+
function Ci(e) {
|
|
4366
4338
|
let t, r, n, i, s, o, a;
|
|
4367
4339
|
return {
|
|
4368
4340
|
c() {
|
|
4369
|
-
t = A("div"), r = A("ui-image"),
|
|
4341
|
+
t = A("div"), r = A("ui-image"), Ze(r.src, n = "https://i.stack.imgur.com/y9DpT.jpg") || ue(r, "src", n), ue(r, "alt", "icon"), d(t, "class", i = "CardImg " + /*status*/
|
|
4370
4342
|
(e[0] == "Closing" || /*status*/
|
|
4371
4343
|
e[0] == "Closed" ? "CardImgFinished" : "")), d(t, "part", s = "CardImg " + /*status*/
|
|
4372
4344
|
(e[0] == "Closing" || /*status*/
|
|
4373
4345
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4374
4346
|
},
|
|
4375
4347
|
m(l, u) {
|
|
4376
|
-
k(l, t, u),
|
|
4377
|
-
|
|
4348
|
+
k(l, t, u), _(t, r), o || (a = [
|
|
4349
|
+
Ae(
|
|
4378
4350
|
/*matchStatus*/
|
|
4379
4351
|
e[16].call(null, t)
|
|
4380
4352
|
),
|
|
4381
|
-
|
|
4353
|
+
he(
|
|
4382
4354
|
t,
|
|
4383
4355
|
"click",
|
|
4384
4356
|
/*detailsAction*/
|
|
@@ -4396,28 +4368,28 @@ function Hi(e) {
|
|
|
4396
4368
|
l[0] == "Closed" ? "CardImgFinished" : "")) && d(t, "part", s);
|
|
4397
4369
|
},
|
|
4398
4370
|
d(l) {
|
|
4399
|
-
l &&
|
|
4371
|
+
l && O(t), o = !1, re(a);
|
|
4400
4372
|
}
|
|
4401
4373
|
};
|
|
4402
4374
|
}
|
|
4403
|
-
function
|
|
4375
|
+
function wi(e) {
|
|
4404
4376
|
let t, r, n, i, s, o, a;
|
|
4405
4377
|
return {
|
|
4406
4378
|
c() {
|
|
4407
|
-
t = A("div"), r = A("ui-image"),
|
|
4408
|
-
e[3]) ||
|
|
4379
|
+
t = A("div"), r = A("ui-image"), ue(r, "class", "UIImage"), Ze(r.src, n = /*thumbnail*/
|
|
4380
|
+
e[3]) || ue(r, "src", n), ue(r, "alt", "icon"), d(t, "class", i = "CardImg " + /*status*/
|
|
4409
4381
|
(e[0] == "Closing" || /*status*/
|
|
4410
4382
|
e[0] == "Closed" ? "CardImgFinished" : "")), d(t, "part", s = "CardImg " + /*status*/
|
|
4411
4383
|
(e[0] == "Closing" || /*status*/
|
|
4412
4384
|
e[0] == "Closed" ? "CardImgFinished" : ""));
|
|
4413
4385
|
},
|
|
4414
4386
|
m(l, u) {
|
|
4415
|
-
k(l, t, u),
|
|
4416
|
-
|
|
4387
|
+
k(l, t, u), _(t, r), o || (a = [
|
|
4388
|
+
Ae(
|
|
4417
4389
|
/*matchStatus*/
|
|
4418
4390
|
e[16].call(null, t)
|
|
4419
4391
|
),
|
|
4420
|
-
|
|
4392
|
+
he(
|
|
4421
4393
|
t,
|
|
4422
4394
|
"click",
|
|
4423
4395
|
/*detailsAction*/
|
|
@@ -4427,8 +4399,8 @@ function Ci(e) {
|
|
|
4427
4399
|
},
|
|
4428
4400
|
p(l, u) {
|
|
4429
4401
|
u[0] & /*thumbnail*/
|
|
4430
|
-
8 && !
|
|
4431
|
-
l[3]) &&
|
|
4402
|
+
8 && !Ze(r.src, n = /*thumbnail*/
|
|
4403
|
+
l[3]) && ue(r, "src", n), u[0] & /*status*/
|
|
4432
4404
|
1 && i !== (i = "CardImg " + /*status*/
|
|
4433
4405
|
(l[0] == "Closing" || /*status*/
|
|
4434
4406
|
l[0] == "Closed" ? "CardImgFinished" : "")) && d(t, "class", i), u[0] & /*status*/
|
|
@@ -4437,11 +4409,11 @@ function Ci(e) {
|
|
|
4437
4409
|
l[0] == "Closed" ? "CardImgFinished" : "")) && d(t, "part", s);
|
|
4438
4410
|
},
|
|
4439
4411
|
d(l) {
|
|
4440
|
-
l &&
|
|
4412
|
+
l && O(t), o = !1, re(a);
|
|
4441
4413
|
}
|
|
4442
4414
|
};
|
|
4443
4415
|
}
|
|
4444
|
-
function
|
|
4416
|
+
function Nt(e) {
|
|
4445
4417
|
let t, r, n, i, s;
|
|
4446
4418
|
return {
|
|
4447
4419
|
c() {
|
|
@@ -4451,7 +4423,7 @@ function Mt(e) {
|
|
|
4451
4423
|
), d(t, "class", "Date"), d(t, "part", "Date");
|
|
4452
4424
|
},
|
|
4453
4425
|
m(o, a) {
|
|
4454
|
-
k(o, t, a),
|
|
4426
|
+
k(o, t, a), _(t, r), i || (s = Ae(n = /*formatDate*/
|
|
4455
4427
|
e[15].call(
|
|
4456
4428
|
null,
|
|
4457
4429
|
t,
|
|
@@ -4465,7 +4437,7 @@ function Mt(e) {
|
|
|
4465
4437
|
r,
|
|
4466
4438
|
/*shownDate*/
|
|
4467
4439
|
o[10]
|
|
4468
|
-
), n &&
|
|
4440
|
+
), n && Te(n.update) && a[0] & /*startdate*/
|
|
4469
4441
|
4 && n.update.call(
|
|
4470
4442
|
null,
|
|
4471
4443
|
/*startdate*/
|
|
@@ -4473,11 +4445,11 @@ function Mt(e) {
|
|
|
4473
4445
|
);
|
|
4474
4446
|
},
|
|
4475
4447
|
d(o) {
|
|
4476
|
-
o &&
|
|
4448
|
+
o && O(t), i = !1, s();
|
|
4477
4449
|
}
|
|
4478
4450
|
};
|
|
4479
4451
|
}
|
|
4480
|
-
function
|
|
4452
|
+
function Bi(e) {
|
|
4481
4453
|
let t, r, n, i = (
|
|
4482
4454
|
/*title*/
|
|
4483
4455
|
e[1] === "undefined" && Ct()
|
|
@@ -4491,7 +4463,7 @@ function wi(e) {
|
|
|
4491
4463
|
e[1] === "undefined" ? "Loading" : ""}`), d(t, "part", "Thumbnail");
|
|
4492
4464
|
},
|
|
4493
4465
|
m(o, a) {
|
|
4494
|
-
k(o, t, a), i && i.m(t, null),
|
|
4466
|
+
k(o, t, a), i && i.m(t, null), _(t, r), s && s.m(t, null), e[29](t);
|
|
4495
4467
|
},
|
|
4496
4468
|
p(o, a) {
|
|
4497
4469
|
/*title*/
|
|
@@ -4503,16 +4475,16 @@ function wi(e) {
|
|
|
4503
4475
|
i: j,
|
|
4504
4476
|
o: j,
|
|
4505
4477
|
d(o) {
|
|
4506
|
-
o &&
|
|
4478
|
+
o && O(t), i && i.d(), s && s.d(), e[29](null);
|
|
4507
4479
|
}
|
|
4508
4480
|
};
|
|
4509
4481
|
}
|
|
4510
|
-
function
|
|
4482
|
+
function Ii(e, t, r) {
|
|
4511
4483
|
let n;
|
|
4512
|
-
lr(e,
|
|
4513
|
-
let { userid: i = "" } = t, { title: s = "" } = t, { startdate: o = "" } = t, { status: a = "" } = t, { tourid: l = "" } = t, { thumbnail: u = "" } = t, { userenrolled: h = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: m = "" } = t, { showenrolled:
|
|
4514
|
-
|
|
4515
|
-
const
|
|
4484
|
+
lr(e, vi, (f) => r(14, n = f));
|
|
4485
|
+
let { userid: i = "" } = t, { title: s = "" } = t, { startdate: o = "" } = t, { status: a = "" } = t, { tourid: l = "" } = t, { thumbnail: u = "" } = t, { userenrolled: h = "" } = t, { scorecriteria: c = "" } = t, { minbetcount: m = "" } = t, { showenrolled: v = "false" } = t, { detailsevent: y = "" } = t, { gameurl: T = "" } = t, { lang: B = "en" } = t, { keepbrowsercontext: F = "false" } = t, { clientstyling: M = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: U = "" } = t, { mbsource: L } = t, I, V = "", z = "", W = "", Q = "";
|
|
4486
|
+
Ti({ withLocale: "en", translations: {} });
|
|
4487
|
+
const He = () => {
|
|
4516
4488
|
fetch(U).then((f) => f.json()).then((f) => {
|
|
4517
4489
|
Object.keys(f).forEach((J) => {
|
|
4518
4490
|
At(J, f[J]);
|
|
@@ -4526,22 +4498,22 @@ function Bi(e, t, r) {
|
|
|
4526
4498
|
});
|
|
4527
4499
|
const G = (f) => {
|
|
4528
4500
|
f.data && f.data.type == `TournamentStatus_${l}` && r(0, a = f.data.status);
|
|
4529
|
-
},
|
|
4501
|
+
}, Y = () => {
|
|
4530
4502
|
const f = { month: "long" };
|
|
4531
|
-
let J = new Date(o), $ = new Intl.DateTimeFormat("en", f).format(J),
|
|
4503
|
+
let J = new Date(o), $ = new Intl.DateTimeFormat("en", f).format(J), P = J.getDate(), b = J.toLocaleString("en-GB", {
|
|
4532
4504
|
hour: "numeric",
|
|
4533
4505
|
minute: "numeric",
|
|
4534
4506
|
hour12: !1
|
|
4535
4507
|
});
|
|
4536
4508
|
const E = () => n(a === "Running" ? "startedAt" : "startingAt");
|
|
4537
|
-
r(10, V = `${
|
|
4538
|
-
},
|
|
4539
|
-
a == "Unstarted" && (r(11, z = n("scheduled")), r(13,
|
|
4540
|
-
},
|
|
4509
|
+
r(10, V = `${P} ` + n(`${$}`) + ", " + E() + ` ${b}`);
|
|
4510
|
+
}, ne = () => {
|
|
4511
|
+
a == "Unstarted" && (r(11, z = n("scheduled")), r(13, Q = "StatusUnstarted")), a == "Running" && (r(11, z = n("ongoing")), r(13, Q = "StatusRunning")), (a == "Closed" || a == "Closing") && r(11, z = n("finished")), a == "Closed" && r(13, Q = "StatusClosed"), a == "Closing" && r(13, Q = "StatusClosing");
|
|
4512
|
+
}, K = () => {
|
|
4541
4513
|
c == "BetCount" && r(12, W = n("betCount")), c == "MaxWinStakeRatio" && r(12, W = n("maxWinStakeRatio")), c == "WinStakeRatio" && r(12, W = n("winStakeRatio")), c == "Stake" && r(12, W = n("stake"));
|
|
4542
|
-
},
|
|
4514
|
+
}, ye = () => {
|
|
4543
4515
|
window.postMessage({ type: "tournamentGamesClicked", tourid: l }, window.location.href);
|
|
4544
|
-
},
|
|
4516
|
+
}, Ce = () => {
|
|
4545
4517
|
y && window.postMessage(
|
|
4546
4518
|
{
|
|
4547
4519
|
type: y,
|
|
@@ -4555,25 +4527,25 @@ function Bi(e, t, r) {
|
|
|
4555
4527
|
window.removeEventListener("message", G);
|
|
4556
4528
|
}));
|
|
4557
4529
|
const w = () => {
|
|
4558
|
-
|
|
4530
|
+
Ai(B), K(), ne(), o && Y();
|
|
4559
4531
|
};
|
|
4560
|
-
function
|
|
4561
|
-
|
|
4532
|
+
function N(f) {
|
|
4533
|
+
qe[f ? "unshift" : "push"](() => {
|
|
4562
4534
|
I = f, r(9, I);
|
|
4563
4535
|
});
|
|
4564
4536
|
}
|
|
4565
4537
|
return e.$$set = (f) => {
|
|
4566
|
-
"userid" in f && r(20, i = f.userid), "title" in f && r(1, s = f.title), "startdate" in f && r(2, o = f.startdate), "status" in f && r(0, a = f.status), "tourid" in f && r(21, l = f.tourid), "thumbnail" in f && r(3, u = f.thumbnail), "userenrolled" in f && r(4, h = f.userenrolled), "scorecriteria" in f && r(22, c = f.scorecriteria), "minbetcount" in f && r(5, m = f.minbetcount), "showenrolled" in f && r(6,
|
|
4538
|
+
"userid" in f && r(20, i = f.userid), "title" in f && r(1, s = f.title), "startdate" in f && r(2, o = f.startdate), "status" in f && r(0, a = f.status), "tourid" in f && r(21, l = f.tourid), "thumbnail" in f && r(3, u = f.thumbnail), "userenrolled" in f && r(4, h = f.userenrolled), "scorecriteria" in f && r(22, c = f.scorecriteria), "minbetcount" in f && r(5, m = f.minbetcount), "showenrolled" in f && r(6, v = f.showenrolled), "detailsevent" in f && r(23, y = f.detailsevent), "gameurl" in f && r(7, T = f.gameurl), "lang" in f && r(24, B = f.lang), "keepbrowsercontext" in f && r(8, F = f.keepbrowsercontext), "clientstyling" in f && r(25, M = f.clientstyling), "clientstylingurl" in f && r(26, C = f.clientstylingurl), "translationurl" in f && r(27, U = f.translationurl), "mbsource" in f && r(28, L = f.mbsource);
|
|
4567
4539
|
}, e.$$.update = () => {
|
|
4568
4540
|
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4569
|
-
33554944 &&
|
|
4541
|
+
33554944 && M && I && Ei(I, M), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4570
4542
|
67109376 && C && I && xi(I, C), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4571
|
-
268435968 && L && I &&
|
|
4572
|
-
134217728 && U &&
|
|
4573
|
-
1 && a &&
|
|
4543
|
+
268435968 && L && I && Si(I, `${L}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4544
|
+
134217728 && U && He(), e.$$.dirty[0] & /*status*/
|
|
4545
|
+
1 && a && ne(), e.$$.dirty[0] & /*title, lang*/
|
|
4574
4546
|
16777218 && s && B && w(), e.$$.dirty[0] & /*startdate*/
|
|
4575
|
-
4 && o &&
|
|
4576
|
-
4194304 && c &&
|
|
4547
|
+
4 && o && Y(), e.$$.dirty[0] & /*scorecriteria*/
|
|
4548
|
+
4194304 && c && K();
|
|
4577
4549
|
}, [
|
|
4578
4550
|
a,
|
|
4579
4551
|
s,
|
|
@@ -4581,30 +4553,30 @@ function Bi(e, t, r) {
|
|
|
4581
4553
|
u,
|
|
4582
4554
|
h,
|
|
4583
4555
|
m,
|
|
4584
|
-
|
|
4556
|
+
v,
|
|
4585
4557
|
T,
|
|
4586
4558
|
F,
|
|
4587
4559
|
I,
|
|
4588
4560
|
V,
|
|
4589
4561
|
z,
|
|
4590
4562
|
W,
|
|
4591
|
-
q,
|
|
4592
|
-
n,
|
|
4593
4563
|
Q,
|
|
4594
|
-
|
|
4564
|
+
n,
|
|
4595
4565
|
Y,
|
|
4596
|
-
|
|
4597
|
-
|
|
4566
|
+
ne,
|
|
4567
|
+
K,
|
|
4568
|
+
ye,
|
|
4569
|
+
Ce,
|
|
4598
4570
|
i,
|
|
4599
4571
|
l,
|
|
4600
4572
|
c,
|
|
4601
4573
|
y,
|
|
4602
4574
|
B,
|
|
4603
|
-
|
|
4575
|
+
M,
|
|
4604
4576
|
C,
|
|
4605
4577
|
U,
|
|
4606
4578
|
L,
|
|
4607
|
-
|
|
4579
|
+
N
|
|
4608
4580
|
];
|
|
4609
4581
|
}
|
|
4610
4582
|
class or extends Ir {
|
|
@@ -4612,9 +4584,9 @@ class or extends Ir {
|
|
|
4612
4584
|
super(), wr(
|
|
4613
4585
|
this,
|
|
4614
4586
|
t,
|
|
4587
|
+
Ii,
|
|
4615
4588
|
Bi,
|
|
4616
|
-
|
|
4617
|
-
Pt,
|
|
4589
|
+
Mt,
|
|
4618
4590
|
{
|
|
4619
4591
|
userid: 20,
|
|
4620
4592
|
title: 1,
|
|
@@ -4635,7 +4607,7 @@ class or extends Ir {
|
|
|
4635
4607
|
translationurl: 27,
|
|
4636
4608
|
mbsource: 28
|
|
4637
4609
|
},
|
|
4638
|
-
|
|
4610
|
+
Hi,
|
|
4639
4611
|
[-1, -1]
|
|
4640
4612
|
);
|
|
4641
4613
|
}
|
|
@@ -4749,53 +4721,49 @@ class or extends Ir {
|
|
|
4749
4721
|
}
|
|
4750
4722
|
}
|
|
4751
4723
|
Br(or, { userid: {}, title: {}, startdate: {}, status: {}, tourid: {}, thumbnail: {}, userenrolled: {}, scorecriteria: {}, minbetcount: {}, showenrolled: {}, detailsevent: {}, gameurl: {}, lang: {}, keepbrowsercontext: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4752
|
-
const
|
|
4724
|
+
const Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4753
4725
|
__proto__: null,
|
|
4754
4726
|
default: or
|
|
4755
4727
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4756
4728
|
export {
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
Mi as M,
|
|
4771
|
-
We as N,
|
|
4772
|
-
Fi as O,
|
|
4729
|
+
te as $,
|
|
4730
|
+
vi as A,
|
|
4731
|
+
Ei as B,
|
|
4732
|
+
xi as C,
|
|
4733
|
+
Si as D,
|
|
4734
|
+
Li as E,
|
|
4735
|
+
ki as F,
|
|
4736
|
+
Pi as G,
|
|
4737
|
+
Di as H,
|
|
4738
|
+
Ri as I,
|
|
4739
|
+
Ye as J,
|
|
4740
|
+
Ze as K,
|
|
4741
|
+
Ui as L,
|
|
4773
4742
|
Ir as S,
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
hr as h,
|
|
4743
|
+
ge as a,
|
|
4744
|
+
rr as b,
|
|
4745
|
+
Br as c,
|
|
4746
|
+
hr as d,
|
|
4747
|
+
O as e,
|
|
4748
|
+
H as f,
|
|
4749
|
+
ue as g,
|
|
4750
|
+
d as h,
|
|
4783
4751
|
wr as i,
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4752
|
+
k as j,
|
|
4753
|
+
_ as k,
|
|
4754
|
+
A as l,
|
|
4755
|
+
X as m,
|
|
4756
|
+
j as n,
|
|
4757
|
+
lr as o,
|
|
4758
|
+
yr as p,
|
|
4759
|
+
qe as q,
|
|
4760
|
+
mr as r,
|
|
4761
|
+
Mt as s,
|
|
4762
|
+
Ae as t,
|
|
4763
|
+
Z as u,
|
|
4764
|
+
R as v,
|
|
4765
|
+
re as w,
|
|
4766
|
+
he as x,
|
|
4767
|
+
Te as y,
|
|
4768
|
+
Mi as z
|
|
4801
4769
|
};
|