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