@everymatrix/casino-tournaments-thumbnail-duration 1.67.3 → 1.69.0
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/{CasinoTournamentsThumbnailDuration-CNh45YVH.js → CasinoTournamentsThumbnailDuration-B0xZyg3Q.js} +644 -625
- package/components/CasinoTournamentsThumbnailDuration-C8ig5oPf.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailDuration-Wbsx_Oq-.js → CasinoTournamentsThumbnailDuration-RzL_907I.js} +665 -646
- package/es2015/casino-tournaments-thumbnail-duration.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-duration.js +1 -1
- package/esnext/casino-tournaments-thumbnail-duration.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailDuration-C29Pujqn.cjs +0 -16
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
function
|
|
1
|
+
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function lt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Xe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ae(e) {
|
|
10
|
+
e.forEach(lt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ye(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ft(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
function Ft(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ct(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return I;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
30
|
function Gt(e, t, r) {
|
|
31
|
-
e.$$.on_destroy.push(
|
|
31
|
+
e.$$.on_destroy.push(ct(t, r));
|
|
32
32
|
}
|
|
33
33
|
function jt(e) {
|
|
34
|
-
return e &&
|
|
34
|
+
return e && ye(e.destroy) ? e.destroy : I;
|
|
35
35
|
}
|
|
36
36
|
function O(e, t) {
|
|
37
37
|
e.appendChild(t);
|
|
@@ -39,7 +39,7 @@ function O(e, t) {
|
|
|
39
39
|
function kt(e, t, r) {
|
|
40
40
|
const n = Vt(e);
|
|
41
41
|
if (!n.getElementById(t)) {
|
|
42
|
-
const i =
|
|
42
|
+
const i = N("style");
|
|
43
43
|
i.id = t, i.textContent = r, Xt(n, i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -60,20 +60,20 @@ function Xt(e, t) {
|
|
|
60
60
|
t
|
|
61
61
|
), t.sheet;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function M(e, t, r) {
|
|
64
64
|
e.insertBefore(t, r || null);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function C(e) {
|
|
67
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function N(e) {
|
|
70
70
|
return document.createElement(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function G(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function re() {
|
|
76
|
+
return G(" ");
|
|
77
77
|
}
|
|
78
78
|
function _(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
@@ -81,11 +81,11 @@ function _(e, t, r) {
|
|
|
81
81
|
function zt(e) {
|
|
82
82
|
return Array.from(e.childNodes);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function k(e, t) {
|
|
85
85
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
86
86
|
t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function ze(e, t, r, n) {
|
|
89
89
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
90
90
|
}
|
|
91
91
|
function Wt(e) {
|
|
@@ -97,65 +97,65 @@ function Wt(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let ie;
|
|
101
|
+
function ne(e) {
|
|
102
|
+
ie = e;
|
|
103
103
|
}
|
|
104
104
|
function Zt() {
|
|
105
|
-
if (!
|
|
105
|
+
if (!ie)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return ie;
|
|
108
108
|
}
|
|
109
109
|
function Qt(e) {
|
|
110
110
|
Zt().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
let
|
|
112
|
+
const W = [], Ne = [];
|
|
113
|
+
let Z = [];
|
|
114
|
+
const We = [], Jt = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Ie = !1;
|
|
116
116
|
function qt() {
|
|
117
|
-
|
|
117
|
+
Ie || (Ie = !0, Jt.then(R));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function Le(e) {
|
|
120
|
+
Z.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
122
|
+
const Te = /* @__PURE__ */ new Set();
|
|
123
|
+
let X = 0;
|
|
124
|
+
function R() {
|
|
125
|
+
if (X !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = ie;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t =
|
|
132
|
-
|
|
130
|
+
for (; X < W.length; ) {
|
|
131
|
+
const t = W[X];
|
|
132
|
+
X++, ne(t), Yt(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw W.length = 0, X = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
137
|
+
for (ne(null), W.length = 0, X = 0; Ne.length; )
|
|
138
138
|
Ne.pop()();
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
141
|
-
|
|
139
|
+
for (let t = 0; t < Z.length; t += 1) {
|
|
140
|
+
const r = Z[t];
|
|
141
|
+
Te.has(r) || (Te.add(r), r());
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
} while (
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
Z.length = 0;
|
|
144
|
+
} while (W.length);
|
|
145
|
+
for (; We.length; )
|
|
146
|
+
We.pop()();
|
|
147
|
+
Ie = !1, Te.clear(), ne(e);
|
|
148
148
|
}
|
|
149
149
|
function Yt(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), ae(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function Kt(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
|
-
|
|
158
|
+
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
159
159
|
}
|
|
160
160
|
const er = /* @__PURE__ */ new Set();
|
|
161
161
|
function tr(e, t) {
|
|
@@ -163,29 +163,29 @@ function tr(e, t) {
|
|
|
163
163
|
}
|
|
164
164
|
function rr(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const s = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Le(() => {
|
|
167
|
+
const s = e.$$.on_mount.map(lt).filter(ye);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Le);
|
|
170
170
|
}
|
|
171
171
|
function nr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (Kt(r.after_update),
|
|
173
|
+
r.fragment !== null && (Kt(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
175
|
function ir(e, t) {
|
|
176
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
e.$$.dirty[0] === -1 && (W.push(e), qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
178
|
function sr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
179
|
-
const l =
|
|
180
|
-
|
|
179
|
+
const l = ie;
|
|
180
|
+
ne(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
184
184
|
// state
|
|
185
185
|
props: s,
|
|
186
|
-
update:
|
|
186
|
+
update: I,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: Xe(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,28 +194,28 @@ function sr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: Xe(),
|
|
198
198
|
dirty: o,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || l.$$.root
|
|
201
201
|
};
|
|
202
202
|
a && a(u.root);
|
|
203
203
|
let h = !1;
|
|
204
|
-
if (u.ctx = r(e, t.props || {}, (f, c, ...
|
|
205
|
-
const
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
207
|
-
}), u.update(), h = !0,
|
|
204
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
|
|
205
|
+
const y = d.length ? d[0] : c;
|
|
206
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), h && ir(e, f)), c;
|
|
207
|
+
}) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
209
|
const f = zt(t.target);
|
|
210
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
210
|
+
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro && tr(e.$$.fragment), rr(e, t.target, t.anchor),
|
|
213
|
+
t.intro && tr(e.$$.fragment), rr(e, t.target, t.anchor), R();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
ne(l);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let mt;
|
|
218
|
+
typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -257,17 +257,17 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
|
257
257
|
let s;
|
|
258
258
|
return {
|
|
259
259
|
c: function() {
|
|
260
|
-
s =
|
|
260
|
+
s = N("slot"), i !== "default" && _(s, "name", i);
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* @param {HTMLElement} target
|
|
264
264
|
* @param {HTMLElement} [anchor]
|
|
265
265
|
*/
|
|
266
266
|
m: function(l, u) {
|
|
267
|
-
|
|
267
|
+
M(l, s, u);
|
|
268
268
|
},
|
|
269
269
|
d: function(l) {
|
|
270
|
-
l &&
|
|
270
|
+
l && C(s);
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
};
|
|
@@ -279,7 +279,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
281
281
|
const s = this.$$g_p(i.name);
|
|
282
|
-
s in this.$$d || (this.$$d[s] =
|
|
282
|
+
s in this.$$d || (this.$$d[s] = ce(s, i.value, this.$$p_d, "toProp"));
|
|
283
283
|
}
|
|
284
284
|
for (const i in this.$$p_d)
|
|
285
285
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -297,7 +297,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
|
297
297
|
this.$$r = !0;
|
|
298
298
|
for (const i in this.$$p_d)
|
|
299
299
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
300
|
-
const s =
|
|
300
|
+
const s = ce(
|
|
301
301
|
i,
|
|
302
302
|
this.$$d[i],
|
|
303
303
|
this.$$p_d,
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
|
319
319
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
320
320
|
// and setting attributes through setAttribute etc, this is helpful
|
|
321
321
|
attributeChangedCallback(e, t, r) {
|
|
322
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
322
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
323
323
|
}
|
|
324
324
|
disconnectedCallback() {
|
|
325
325
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
|
332
332
|
) || e;
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
|
-
function
|
|
335
|
+
function ce(e, t, r, n) {
|
|
336
336
|
const i = r[e]?.type;
|
|
337
337
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
338
338
|
return t;
|
|
@@ -362,7 +362,7 @@ function fe(e, t, r, n) {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
function or(e, t, r, n, i, s) {
|
|
365
|
-
let a = class extends
|
|
365
|
+
let a = class extends mt {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -378,7 +378,7 @@ function or(e, t, r, n, i, s) {
|
|
|
378
378
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
379
379
|
},
|
|
380
380
|
set(l) {
|
|
381
|
-
l =
|
|
381
|
+
l = ce(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}), n.forEach((o) => {
|
|
@@ -409,7 +409,7 @@ class ar {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
nr(this, 1), this.$destroy =
|
|
412
|
+
nr(this, 1), this.$destroy = I;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,8 +418,8 @@ class ar {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
422
|
-
return
|
|
421
|
+
if (!ye(r))
|
|
422
|
+
return I;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
425
425
|
const i = n.indexOf(r);
|
|
@@ -436,39 +436,39 @@ class ar {
|
|
|
436
436
|
}
|
|
437
437
|
const ur = "4";
|
|
438
438
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ur);
|
|
439
|
-
const
|
|
439
|
+
const z = [];
|
|
440
440
|
function hr(e, t) {
|
|
441
441
|
return {
|
|
442
|
-
subscribe:
|
|
442
|
+
subscribe: Ee(e, t).subscribe
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Ee(e, t = I) {
|
|
446
446
|
let r;
|
|
447
447
|
const n = /* @__PURE__ */ new Set();
|
|
448
448
|
function i(o) {
|
|
449
|
-
if (
|
|
450
|
-
const l = !
|
|
449
|
+
if (ft(e, o) && (e = o, r)) {
|
|
450
|
+
const l = !z.length;
|
|
451
451
|
for (const u of n)
|
|
452
|
-
u[1](),
|
|
452
|
+
u[1](), z.push(u, e);
|
|
453
453
|
if (l) {
|
|
454
|
-
for (let u = 0; u <
|
|
455
|
-
|
|
456
|
-
|
|
454
|
+
for (let u = 0; u < z.length; u += 2)
|
|
455
|
+
z[u][0](z[u + 1]);
|
|
456
|
+
z.length = 0;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
function s(o) {
|
|
461
461
|
i(o(e));
|
|
462
462
|
}
|
|
463
|
-
function a(o, l =
|
|
463
|
+
function a(o, l = I) {
|
|
464
464
|
const u = [o, l];
|
|
465
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
465
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || I), o(e), () => {
|
|
466
466
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
469
|
return { set: i, update: s, subscribe: a };
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function K(e, t, r) {
|
|
472
472
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
473
473
|
if (!i.every(Boolean))
|
|
474
474
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -476,18 +476,18 @@ function Y(e, t, r) {
|
|
|
476
476
|
return hr(r, (a, o) => {
|
|
477
477
|
let l = !1;
|
|
478
478
|
const u = [];
|
|
479
|
-
let h = 0, f =
|
|
479
|
+
let h = 0, f = I;
|
|
480
480
|
const c = () => {
|
|
481
481
|
if (h)
|
|
482
482
|
return;
|
|
483
483
|
f();
|
|
484
|
-
const
|
|
485
|
-
s ? a(
|
|
486
|
-
},
|
|
487
|
-
(
|
|
488
|
-
|
|
489
|
-
(
|
|
490
|
-
u[T] =
|
|
484
|
+
const y = t(n ? u[0] : u, a, o);
|
|
485
|
+
s ? a(y) : f = ye(y) ? y : I;
|
|
486
|
+
}, d = i.map(
|
|
487
|
+
(y, T) => ct(
|
|
488
|
+
y,
|
|
489
|
+
(A) => {
|
|
490
|
+
u[T] = A, h &= ~(1 << T), l && c();
|
|
491
491
|
},
|
|
492
492
|
() => {
|
|
493
493
|
h |= 1 << T;
|
|
@@ -495,12 +495,12 @@ function Y(e, t, r) {
|
|
|
495
495
|
)
|
|
496
496
|
);
|
|
497
497
|
return l = !0, c(), function() {
|
|
498
|
-
|
|
498
|
+
ae(d), f(), l = !1;
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
502
|
function lr(e) {
|
|
503
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
503
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
504
504
|
}
|
|
505
505
|
var fr = function(t) {
|
|
506
506
|
return cr(t) && !mr(t);
|
|
@@ -519,29 +519,29 @@ function gr(e) {
|
|
|
519
519
|
function br(e) {
|
|
520
520
|
return Array.isArray(e) ? [] : {};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
522
|
+
function se(e, t) {
|
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(br(e), e, t) : e;
|
|
524
524
|
}
|
|
525
525
|
function yr(e, t, r) {
|
|
526
526
|
return e.concat(t).map(function(n) {
|
|
527
|
-
return
|
|
527
|
+
return se(n, r);
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
530
|
function Er(e, t) {
|
|
531
531
|
if (!t.customMerge)
|
|
532
|
-
return
|
|
532
|
+
return Q;
|
|
533
533
|
var r = t.customMerge(e);
|
|
534
|
-
return typeof r == "function" ? r :
|
|
534
|
+
return typeof r == "function" ? r : Q;
|
|
535
535
|
}
|
|
536
536
|
function _r(e) {
|
|
537
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
538
538
|
return Object.propertyIsEnumerable.call(e, t);
|
|
539
539
|
}) : [];
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Ze(e) {
|
|
542
542
|
return Object.keys(e).concat(_r(e));
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function dt(e, t) {
|
|
545
545
|
try {
|
|
546
546
|
return t in e;
|
|
547
547
|
} catch {
|
|
@@ -549,70 +549,56 @@ function mt(e, t) {
|
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
function xr(e, t) {
|
|
552
|
-
return
|
|
552
|
+
return dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
553
553
|
}
|
|
554
554
|
function vr(e, t, r) {
|
|
555
555
|
var n = {};
|
|
556
|
-
return r.isMergeableObject(e) &&
|
|
557
|
-
n[i] =
|
|
558
|
-
}),
|
|
559
|
-
xr(e, i) || (
|
|
556
|
+
return r.isMergeableObject(e) && Ze(e).forEach(function(i) {
|
|
557
|
+
n[i] = se(e[i], r);
|
|
558
|
+
}), Ze(t).forEach(function(i) {
|
|
559
|
+
xr(e, i) || (dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Er(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
560
560
|
}), n;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || yr, r.isMergeableObject = r.isMergeableObject || fr, r.cloneUnlessOtherwiseSpecified =
|
|
562
|
+
function Q(e, t, r) {
|
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || yr, r.isMergeableObject = r.isMergeableObject || fr, r.cloneUnlessOtherwiseSpecified = se;
|
|
564
564
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
565
|
-
return s ? n ? r.arrayMerge(e, t, r) : vr(e, t, r) :
|
|
565
|
+
return s ? n ? r.arrayMerge(e, t, r) : vr(e, t, r) : se(t, r);
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
Q.all = function(t, r) {
|
|
568
568
|
if (!Array.isArray(t))
|
|
569
569
|
throw new Error("first argument should be an array");
|
|
570
570
|
return t.reduce(function(n, i) {
|
|
571
|
-
return
|
|
571
|
+
return Q(n, i, r);
|
|
572
572
|
}, {});
|
|
573
573
|
};
|
|
574
|
-
var Hr =
|
|
574
|
+
var Hr = Q, Tr = Hr;
|
|
575
575
|
const Br = /* @__PURE__ */ lr(Tr);
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
580
|
-
purpose with or without fee is hereby granted.
|
|
581
|
-
|
|
582
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
583
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
584
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
585
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
586
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
587
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
588
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
589
|
-
***************************************************************************** */
|
|
590
|
-
var we = function(e, t) {
|
|
591
|
-
return we = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
576
|
+
var Ce = function(e, t) {
|
|
577
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
592
578
|
r.__proto__ = n;
|
|
593
579
|
} || function(r, n) {
|
|
594
580
|
for (var i in n)
|
|
595
581
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
596
|
-
},
|
|
582
|
+
}, Ce(e, t);
|
|
597
583
|
};
|
|
598
|
-
function
|
|
584
|
+
function _e(e, t) {
|
|
599
585
|
if (typeof t != "function" && t !== null)
|
|
600
586
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
601
|
-
|
|
587
|
+
Ce(e, t);
|
|
602
588
|
function r() {
|
|
603
589
|
this.constructor = e;
|
|
604
590
|
}
|
|
605
591
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
606
592
|
}
|
|
607
|
-
var
|
|
608
|
-
return
|
|
593
|
+
var D = function() {
|
|
594
|
+
return D = Object.assign || function(t) {
|
|
609
595
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
610
596
|
r = arguments[n];
|
|
611
597
|
for (var s in r)
|
|
612
598
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
613
599
|
}
|
|
614
600
|
return t;
|
|
615
|
-
},
|
|
601
|
+
}, D.apply(this, arguments);
|
|
616
602
|
};
|
|
617
603
|
function Sr(e, t) {
|
|
618
604
|
var r = {};
|
|
@@ -623,14 +609,14 @@ function Sr(e, t) {
|
|
|
623
609
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
624
610
|
return r;
|
|
625
611
|
}
|
|
626
|
-
function
|
|
627
|
-
if (arguments.length === 2)
|
|
612
|
+
function Be(e, t, r) {
|
|
613
|
+
if (r || arguments.length === 2)
|
|
628
614
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
629
615
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
630
|
-
return e.concat(s || t);
|
|
616
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
631
617
|
}
|
|
632
|
-
function
|
|
633
|
-
var r = t && t.cache ? t.cache :
|
|
618
|
+
function Se(e, t) {
|
|
619
|
+
var r = t && t.cache ? t.cache : Lr, n = t && t.serializer ? t.serializer : Nr, i = t && t.strategy ? t.strategy : Or;
|
|
634
620
|
return i(e, {
|
|
635
621
|
cache: r,
|
|
636
622
|
serializer: n
|
|
@@ -639,7 +625,7 @@ function Te(e, t) {
|
|
|
639
625
|
function Ar(e) {
|
|
640
626
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
641
627
|
}
|
|
642
|
-
function
|
|
628
|
+
function Pr(e, t, r, n) {
|
|
643
629
|
var i = Ar(n) ? n : r(n), s = t.get(i);
|
|
644
630
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
645
631
|
}
|
|
@@ -647,22 +633,19 @@ function pt(e, t, r) {
|
|
|
647
633
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
648
634
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
649
635
|
}
|
|
650
|
-
function
|
|
636
|
+
function gt(e, t, r, n, i) {
|
|
651
637
|
return r.bind(t, e, n, i);
|
|
652
638
|
}
|
|
653
|
-
function Pr(e, t) {
|
|
654
|
-
var r = e.length === 1 ? dt : pt;
|
|
655
|
-
return Ge(e, this, r, t.cache.create(), t.serializer);
|
|
656
|
-
}
|
|
657
|
-
function Nr(e, t) {
|
|
658
|
-
return Ge(e, this, pt, t.cache.create(), t.serializer);
|
|
659
|
-
}
|
|
660
639
|
function Or(e, t) {
|
|
661
|
-
|
|
640
|
+
var r = e.length === 1 ? Pr : pt;
|
|
641
|
+
return gt(e, this, r, t.cache.create(), t.serializer);
|
|
642
|
+
}
|
|
643
|
+
function wr(e, t) {
|
|
644
|
+
return gt(e, this, pt, t.cache.create(), t.serializer);
|
|
662
645
|
}
|
|
663
|
-
var
|
|
646
|
+
var Nr = function() {
|
|
664
647
|
return JSON.stringify(arguments);
|
|
665
|
-
},
|
|
648
|
+
}, Ir = (
|
|
666
649
|
/** @class */
|
|
667
650
|
function() {
|
|
668
651
|
function e() {
|
|
@@ -674,14 +657,23 @@ var Ir = function() {
|
|
|
674
657
|
this.cache[t] = r;
|
|
675
658
|
}, e;
|
|
676
659
|
}()
|
|
677
|
-
),
|
|
660
|
+
), Lr = {
|
|
678
661
|
create: function() {
|
|
679
|
-
return new
|
|
662
|
+
return new Ir();
|
|
680
663
|
}
|
|
681
|
-
},
|
|
682
|
-
variadic:
|
|
683
|
-
|
|
684
|
-
|
|
664
|
+
}, Ae = {
|
|
665
|
+
variadic: wr
|
|
666
|
+
}, pe = function() {
|
|
667
|
+
return pe = Object.assign || function(t) {
|
|
668
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
669
|
+
r = arguments[n];
|
|
670
|
+
for (var s in r)
|
|
671
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
672
|
+
}
|
|
673
|
+
return t;
|
|
674
|
+
}, pe.apply(this, arguments);
|
|
675
|
+
};
|
|
676
|
+
var g;
|
|
685
677
|
(function(e) {
|
|
686
678
|
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";
|
|
687
679
|
})(g || (g = {}));
|
|
@@ -689,44 +681,44 @@ var x;
|
|
|
689
681
|
(function(e) {
|
|
690
682
|
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";
|
|
691
683
|
})(x || (x = {}));
|
|
692
|
-
var
|
|
684
|
+
var J;
|
|
693
685
|
(function(e) {
|
|
694
686
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
695
|
-
})(
|
|
696
|
-
function
|
|
687
|
+
})(J || (J = {}));
|
|
688
|
+
function Qe(e) {
|
|
697
689
|
return e.type === x.literal;
|
|
698
690
|
}
|
|
699
|
-
function
|
|
691
|
+
function Cr(e) {
|
|
700
692
|
return e.type === x.argument;
|
|
701
693
|
}
|
|
702
|
-
function
|
|
694
|
+
function bt(e) {
|
|
703
695
|
return e.type === x.number;
|
|
704
696
|
}
|
|
705
|
-
function
|
|
697
|
+
function yt(e) {
|
|
706
698
|
return e.type === x.date;
|
|
707
699
|
}
|
|
708
|
-
function
|
|
700
|
+
function Et(e) {
|
|
709
701
|
return e.type === x.time;
|
|
710
702
|
}
|
|
711
|
-
function
|
|
703
|
+
function _t(e) {
|
|
712
704
|
return e.type === x.select;
|
|
713
705
|
}
|
|
714
|
-
function
|
|
706
|
+
function xt(e) {
|
|
715
707
|
return e.type === x.plural;
|
|
716
708
|
}
|
|
717
709
|
function Mr(e) {
|
|
718
710
|
return e.type === x.pound;
|
|
719
711
|
}
|
|
720
|
-
function
|
|
712
|
+
function vt(e) {
|
|
721
713
|
return e.type === x.tag;
|
|
722
714
|
}
|
|
723
|
-
function
|
|
724
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
715
|
+
function Ht(e) {
|
|
716
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
725
717
|
}
|
|
726
|
-
function
|
|
727
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
718
|
+
function Me(e) {
|
|
719
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
728
720
|
}
|
|
729
|
-
var
|
|
721
|
+
var Tt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $r = /(?:[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;
|
|
730
722
|
function Rr(e) {
|
|
731
723
|
var t = {};
|
|
732
724
|
return e.replace($r, function(r) {
|
|
@@ -818,6 +810,16 @@ function Rr(e) {
|
|
|
818
810
|
return "";
|
|
819
811
|
}), t;
|
|
820
812
|
}
|
|
813
|
+
var v = function() {
|
|
814
|
+
return v = Object.assign || function(t) {
|
|
815
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
816
|
+
r = arguments[n];
|
|
817
|
+
for (var s in r)
|
|
818
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
819
|
+
}
|
|
820
|
+
return t;
|
|
821
|
+
}, v.apply(this, arguments);
|
|
822
|
+
};
|
|
821
823
|
var Dr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
822
824
|
function Ur(e) {
|
|
823
825
|
if (e.length === 0)
|
|
@@ -840,14 +842,14 @@ function Ur(e) {
|
|
|
840
842
|
function Fr(e) {
|
|
841
843
|
return e.replace(/^(.*?)-/, "");
|
|
842
844
|
}
|
|
843
|
-
var
|
|
844
|
-
function
|
|
845
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bt = /^(@+)?(\+|#+)?[rs]?$/g, Gr = /(\*)(0+)|(#+)(0+)|(0+)/g, St = /^(0+)$/;
|
|
846
|
+
function qe(e) {
|
|
845
847
|
var t = {};
|
|
846
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
848
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Bt, function(r, n, i) {
|
|
847
849
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
848
850
|
}), t;
|
|
849
851
|
}
|
|
850
|
-
function
|
|
852
|
+
function At(e) {
|
|
851
853
|
switch (e) {
|
|
852
854
|
case "sign-auto":
|
|
853
855
|
return {
|
|
@@ -895,14 +897,14 @@ function jr(e) {
|
|
|
895
897
|
notation: "scientific"
|
|
896
898
|
}, e = e.slice(1)), t) {
|
|
897
899
|
var r = e.slice(0, 2);
|
|
898
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
900
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !St.test(e))
|
|
899
901
|
throw new Error("Malformed concise eng/scientific notation");
|
|
900
902
|
t.minimumIntegerDigits = e.length;
|
|
901
903
|
}
|
|
902
904
|
return t;
|
|
903
905
|
}
|
|
904
|
-
function
|
|
905
|
-
var t = {}, r =
|
|
906
|
+
function Ye(e) {
|
|
907
|
+
var t = {}, r = At(e);
|
|
906
908
|
return r || t;
|
|
907
909
|
}
|
|
908
910
|
function kr(e) {
|
|
@@ -940,13 +942,13 @@ function kr(e) {
|
|
|
940
942
|
t.notation = "compact", t.compactDisplay = "long";
|
|
941
943
|
continue;
|
|
942
944
|
case "scientific":
|
|
943
|
-
t =
|
|
944
|
-
return
|
|
945
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
946
|
+
return v(v({}, l), Ye(u));
|
|
945
947
|
}, {}));
|
|
946
948
|
continue;
|
|
947
949
|
case "engineering":
|
|
948
|
-
t =
|
|
949
|
-
return
|
|
950
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
951
|
+
return v(v({}, l), Ye(u));
|
|
950
952
|
}, {}));
|
|
951
953
|
continue;
|
|
952
954
|
case "notation-simple":
|
|
@@ -991,45 +993,45 @@ function kr(e) {
|
|
|
991
993
|
case "integer-width":
|
|
992
994
|
if (i.options.length > 1)
|
|
993
995
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
994
|
-
i.options[0].replace(Gr, function(l, u, h, f, c,
|
|
996
|
+
i.options[0].replace(Gr, function(l, u, h, f, c, d) {
|
|
995
997
|
if (u)
|
|
996
998
|
t.minimumIntegerDigits = h.length;
|
|
997
999
|
else {
|
|
998
1000
|
if (f && c)
|
|
999
1001
|
throw new Error("We currently do not support maximum integer digits");
|
|
1000
|
-
if (
|
|
1002
|
+
if (d)
|
|
1001
1003
|
throw new Error("We currently do not support exact integer digits");
|
|
1002
1004
|
}
|
|
1003
1005
|
return "";
|
|
1004
1006
|
});
|
|
1005
1007
|
continue;
|
|
1006
1008
|
}
|
|
1007
|
-
if (
|
|
1009
|
+
if (St.test(i.stem)) {
|
|
1008
1010
|
t.minimumIntegerDigits = i.stem.length;
|
|
1009
1011
|
continue;
|
|
1010
1012
|
}
|
|
1011
|
-
if (
|
|
1013
|
+
if (Je.test(i.stem)) {
|
|
1012
1014
|
if (i.options.length > 1)
|
|
1013
1015
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1014
|
-
i.stem.replace(
|
|
1015
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1016
|
+
i.stem.replace(Je, function(l, u, h, f, c, d) {
|
|
1017
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1016
1018
|
});
|
|
1017
1019
|
var s = i.options[0];
|
|
1018
|
-
s === "w" ? t =
|
|
1020
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), qe(s)));
|
|
1019
1021
|
continue;
|
|
1020
1022
|
}
|
|
1021
|
-
if (
|
|
1022
|
-
t =
|
|
1023
|
+
if (Bt.test(i.stem)) {
|
|
1024
|
+
t = v(v({}, t), qe(i.stem));
|
|
1023
1025
|
continue;
|
|
1024
1026
|
}
|
|
1025
|
-
var a =
|
|
1026
|
-
a && (t =
|
|
1027
|
+
var a = At(i.stem);
|
|
1028
|
+
a && (t = v(v({}, t), a));
|
|
1027
1029
|
var o = jr(i.stem);
|
|
1028
|
-
o && (t =
|
|
1030
|
+
o && (t = v(v({}, t), o));
|
|
1029
1031
|
}
|
|
1030
1032
|
return t;
|
|
1031
1033
|
}
|
|
1032
|
-
var
|
|
1034
|
+
var fe = {
|
|
1033
1035
|
"001": [
|
|
1034
1036
|
"H",
|
|
1035
1037
|
"h"
|
|
@@ -2479,23 +2481,23 @@ function Xr(e) {
|
|
|
2479
2481
|
}
|
|
2480
2482
|
var r = e.language, n;
|
|
2481
2483
|
r !== "root" && (n = e.maximize().region);
|
|
2482
|
-
var i =
|
|
2484
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2483
2485
|
return i[0];
|
|
2484
2486
|
}
|
|
2485
|
-
var
|
|
2487
|
+
var Pe, zr = new RegExp("^".concat(Tt.source, "*")), Wr = new RegExp("".concat(Tt.source, "*$"));
|
|
2486
2488
|
function b(e, t) {
|
|
2487
2489
|
return { start: e, end: t };
|
|
2488
2490
|
}
|
|
2489
2491
|
var Zr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qr = !!String.fromCodePoint, Jr = !!Object.fromEntries, qr = !!String.prototype.codePointAt, Yr = !!String.prototype.trimStart, Kr = !!String.prototype.trimEnd, en = !!Number.isSafeInteger, tn = en ? Number.isSafeInteger : function(e) {
|
|
2490
2492
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2491
|
-
},
|
|
2493
|
+
}, $e = !0;
|
|
2492
2494
|
try {
|
|
2493
|
-
var rn =
|
|
2494
|
-
|
|
2495
|
+
var rn = Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2496
|
+
$e = ((Pe = rn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2495
2497
|
} catch {
|
|
2496
|
-
|
|
2498
|
+
$e = !1;
|
|
2497
2499
|
}
|
|
2498
|
-
var
|
|
2500
|
+
var Ke = Zr ? (
|
|
2499
2501
|
// Native
|
|
2500
2502
|
function(t, r, n) {
|
|
2501
2503
|
return t.startsWith(r, n);
|
|
@@ -2505,7 +2507,7 @@ var Ye = Zr ? (
|
|
|
2505
2507
|
function(t, r, n) {
|
|
2506
2508
|
return t.slice(n, n + r.length) === r;
|
|
2507
2509
|
}
|
|
2508
|
-
),
|
|
2510
|
+
), Re = Qr ? String.fromCodePoint : (
|
|
2509
2511
|
// IE11
|
|
2510
2512
|
function() {
|
|
2511
2513
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2517,7 +2519,7 @@ var Ye = Zr ? (
|
|
|
2517
2519
|
}
|
|
2518
2520
|
return n;
|
|
2519
2521
|
}
|
|
2520
|
-
),
|
|
2522
|
+
), et = (
|
|
2521
2523
|
// native
|
|
2522
2524
|
Jr ? Object.fromEntries : (
|
|
2523
2525
|
// Ponyfill
|
|
@@ -2529,7 +2531,7 @@ var Ye = Zr ? (
|
|
|
2529
2531
|
return r;
|
|
2530
2532
|
}
|
|
2531
2533
|
)
|
|
2532
|
-
),
|
|
2534
|
+
), Pt = qr ? (
|
|
2533
2535
|
// Native
|
|
2534
2536
|
function(t, r) {
|
|
2535
2537
|
return t.codePointAt(r);
|
|
@@ -2564,27 +2566,27 @@ var Ye = Zr ? (
|
|
|
2564
2566
|
return t.replace(Wr, "");
|
|
2565
2567
|
}
|
|
2566
2568
|
);
|
|
2567
|
-
function
|
|
2569
|
+
function Ot(e, t) {
|
|
2568
2570
|
return new RegExp(e, t);
|
|
2569
2571
|
}
|
|
2570
|
-
var
|
|
2571
|
-
if (
|
|
2572
|
-
var
|
|
2573
|
-
|
|
2572
|
+
var De;
|
|
2573
|
+
if ($e) {
|
|
2574
|
+
var tt = Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2575
|
+
De = function(t, r) {
|
|
2574
2576
|
var n;
|
|
2575
|
-
|
|
2576
|
-
var i =
|
|
2577
|
+
tt.lastIndex = r;
|
|
2578
|
+
var i = tt.exec(t);
|
|
2577
2579
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2578
2580
|
};
|
|
2579
2581
|
} else
|
|
2580
|
-
|
|
2582
|
+
De = function(t, r) {
|
|
2581
2583
|
for (var n = []; ; ) {
|
|
2582
|
-
var i =
|
|
2583
|
-
if (i === void 0 ||
|
|
2584
|
+
var i = Pt(t, r);
|
|
2585
|
+
if (i === void 0 || wt(i) || hn(i))
|
|
2584
2586
|
break;
|
|
2585
2587
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2586
2588
|
}
|
|
2587
|
-
return
|
|
2589
|
+
return Re.apply(void 0, n);
|
|
2588
2590
|
};
|
|
2589
2591
|
var on = (
|
|
2590
2592
|
/** @class */
|
|
@@ -2617,7 +2619,7 @@ var on = (
|
|
|
2617
2619
|
if (n)
|
|
2618
2620
|
break;
|
|
2619
2621
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2620
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2622
|
+
} else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2621
2623
|
var a = this.parseTag(t, r);
|
|
2622
2624
|
if (a.err)
|
|
2623
2625
|
return a;
|
|
@@ -2650,7 +2652,7 @@ var on = (
|
|
|
2650
2652
|
return s;
|
|
2651
2653
|
var a = s.val, o = this.clonePosition();
|
|
2652
2654
|
if (this.bumpIf("</")) {
|
|
2653
|
-
if (this.isEOF() || !
|
|
2655
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2654
2656
|
return this.error(g.INVALID_TAG, b(o, this.clonePosition()));
|
|
2655
2657
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2656
2658
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2731,12 +2733,12 @@ var on = (
|
|
|
2731
2733
|
r.push(n);
|
|
2732
2734
|
this.bump();
|
|
2733
2735
|
}
|
|
2734
|
-
return
|
|
2736
|
+
return Re.apply(void 0, r);
|
|
2735
2737
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2736
2738
|
if (this.isEOF())
|
|
2737
2739
|
return null;
|
|
2738
2740
|
var n = this.char();
|
|
2739
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2741
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
2740
2742
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2741
2743
|
var n = this.clonePosition();
|
|
2742
2744
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2765,7 +2767,7 @@ var on = (
|
|
|
2765
2767
|
return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2766
2768
|
}
|
|
2767
2769
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2768
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2770
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2769
2771
|
this.bumpTo(i);
|
|
2770
2772
|
var s = this.clonePosition(), a = b(t, s);
|
|
2771
2773
|
return { value: n, location: a };
|
|
@@ -2787,34 +2789,34 @@ var on = (
|
|
|
2787
2789
|
var c = sn(f.val);
|
|
2788
2790
|
if (c.length === 0)
|
|
2789
2791
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2790
|
-
var
|
|
2791
|
-
u = { style: c, styleLocation:
|
|
2792
|
+
var d = b(h, this.clonePosition());
|
|
2793
|
+
u = { style: c, styleLocation: d };
|
|
2792
2794
|
}
|
|
2793
|
-
var
|
|
2794
|
-
if (
|
|
2795
|
-
return
|
|
2795
|
+
var y = this.tryParseArgumentClose(i);
|
|
2796
|
+
if (y.err)
|
|
2797
|
+
return y;
|
|
2796
2798
|
var T = b(i, this.clonePosition());
|
|
2797
|
-
if (u &&
|
|
2798
|
-
var
|
|
2799
|
+
if (u && Ke(u?.style, "::", 0)) {
|
|
2800
|
+
var A = nn(u.style.slice(2));
|
|
2799
2801
|
if (o === "number") {
|
|
2800
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2802
|
+
var f = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
2801
2803
|
return f.err ? f : {
|
|
2802
2804
|
val: { type: x.number, value: n, location: T, style: f.val },
|
|
2803
2805
|
err: null
|
|
2804
2806
|
};
|
|
2805
2807
|
} else {
|
|
2806
|
-
if (
|
|
2808
|
+
if (A.length === 0)
|
|
2807
2809
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2808
|
-
var
|
|
2809
|
-
this.locale && (
|
|
2810
|
+
var S = A;
|
|
2811
|
+
this.locale && (S = Vr(A, this.locale));
|
|
2810
2812
|
var c = {
|
|
2811
|
-
type:
|
|
2812
|
-
pattern:
|
|
2813
|
+
type: J.dateTime,
|
|
2814
|
+
pattern: S,
|
|
2813
2815
|
location: u.styleLocation,
|
|
2814
|
-
parsedOptions: this.shouldParseSkeletons ? Rr(
|
|
2815
|
-
},
|
|
2816
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(S) : {}
|
|
2817
|
+
}, L = o === "date" ? x.date : x.time;
|
|
2816
2818
|
return {
|
|
2817
|
-
val: { type:
|
|
2819
|
+
val: { type: L, value: n, location: T, style: c },
|
|
2818
2820
|
err: null
|
|
2819
2821
|
};
|
|
2820
2822
|
}
|
|
@@ -2832,43 +2834,43 @@ var on = (
|
|
|
2832
2834
|
case "plural":
|
|
2833
2835
|
case "selectordinal":
|
|
2834
2836
|
case "select": {
|
|
2835
|
-
var
|
|
2837
|
+
var H = this.clonePosition();
|
|
2836
2838
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2837
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2839
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
|
|
2838
2840
|
this.bumpSpace();
|
|
2839
|
-
var
|
|
2840
|
-
if (o !== "select" &&
|
|
2841
|
+
var E = this.parseIdentifierIfPossible(), p = 0;
|
|
2842
|
+
if (o !== "select" && E.value === "offset") {
|
|
2841
2843
|
if (!this.bumpIf(":"))
|
|
2842
2844
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2843
2845
|
this.bumpSpace();
|
|
2844
2846
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2845
2847
|
if (f.err)
|
|
2846
2848
|
return f;
|
|
2847
|
-
this.bumpSpace(),
|
|
2849
|
+
this.bumpSpace(), E = this.parseIdentifierIfPossible(), p = f.val;
|
|
2848
2850
|
}
|
|
2849
|
-
var
|
|
2850
|
-
if (
|
|
2851
|
-
return
|
|
2852
|
-
var
|
|
2853
|
-
if (
|
|
2854
|
-
return
|
|
2855
|
-
var
|
|
2851
|
+
var B = this.tryParsePluralOrSelectOptions(t, o, r, E);
|
|
2852
|
+
if (B.err)
|
|
2853
|
+
return B;
|
|
2854
|
+
var y = this.tryParseArgumentClose(i);
|
|
2855
|
+
if (y.err)
|
|
2856
|
+
return y;
|
|
2857
|
+
var le = b(i, this.clonePosition());
|
|
2856
2858
|
return o === "select" ? {
|
|
2857
2859
|
val: {
|
|
2858
2860
|
type: x.select,
|
|
2859
2861
|
value: n,
|
|
2860
|
-
options:
|
|
2861
|
-
location:
|
|
2862
|
+
options: et(B.val),
|
|
2863
|
+
location: le
|
|
2862
2864
|
},
|
|
2863
2865
|
err: null
|
|
2864
2866
|
} : {
|
|
2865
2867
|
val: {
|
|
2866
2868
|
type: x.plural,
|
|
2867
2869
|
value: n,
|
|
2868
|
-
options:
|
|
2869
|
-
offset:
|
|
2870
|
+
options: et(B.val),
|
|
2871
|
+
offset: p,
|
|
2870
2872
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2871
|
-
location:
|
|
2873
|
+
location: le
|
|
2872
2874
|
},
|
|
2873
2875
|
err: null
|
|
2874
2876
|
};
|
|
@@ -2922,7 +2924,7 @@ var on = (
|
|
|
2922
2924
|
}
|
|
2923
2925
|
return {
|
|
2924
2926
|
val: {
|
|
2925
|
-
type:
|
|
2927
|
+
type: J.number,
|
|
2926
2928
|
tokens: n,
|
|
2927
2929
|
location: r,
|
|
2928
2930
|
parsedOptions: this.shouldParseSkeletons ? kr(n) : {}
|
|
@@ -2944,20 +2946,20 @@ var on = (
|
|
|
2944
2946
|
if (l.has(u))
|
|
2945
2947
|
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2946
2948
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2947
|
-
var
|
|
2949
|
+
var d = this.clonePosition();
|
|
2948
2950
|
if (!this.bumpIf("{"))
|
|
2949
2951
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2950
|
-
var
|
|
2951
|
-
if (
|
|
2952
|
-
return
|
|
2953
|
-
var T = this.tryParseArgumentClose(
|
|
2952
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
2953
|
+
if (y.err)
|
|
2954
|
+
return y;
|
|
2955
|
+
var T = this.tryParseArgumentClose(d);
|
|
2954
2956
|
if (T.err)
|
|
2955
2957
|
return T;
|
|
2956
2958
|
o.push([
|
|
2957
2959
|
u,
|
|
2958
2960
|
{
|
|
2959
|
-
value:
|
|
2960
|
-
location: b(
|
|
2961
|
+
value: y.val,
|
|
2962
|
+
location: b(d, this.clonePosition())
|
|
2961
2963
|
}
|
|
2962
2964
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
2963
2965
|
}
|
|
@@ -2988,7 +2990,7 @@ var on = (
|
|
|
2988
2990
|
var t = this.position.offset;
|
|
2989
2991
|
if (t >= this.message.length)
|
|
2990
2992
|
throw Error("out of bound");
|
|
2991
|
-
var r =
|
|
2993
|
+
var r = Pt(this.message, t);
|
|
2992
2994
|
if (r === void 0)
|
|
2993
2995
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2994
2996
|
return r;
|
|
@@ -3007,7 +3009,7 @@ var on = (
|
|
|
3007
3009
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3008
3010
|
}
|
|
3009
3011
|
}, e.prototype.bumpIf = function(t) {
|
|
3010
|
-
if (
|
|
3012
|
+
if (Ke(this.message, t, this.offset())) {
|
|
3011
3013
|
for (var r = 0; r < t.length; r++)
|
|
3012
3014
|
this.bump();
|
|
3013
3015
|
return !0;
|
|
@@ -3029,7 +3031,7 @@ var on = (
|
|
|
3029
3031
|
break;
|
|
3030
3032
|
}
|
|
3031
3033
|
}, e.prototype.bumpSpace = function() {
|
|
3032
|
-
for (; !this.isEOF() &&
|
|
3034
|
+
for (; !this.isEOF() && wt(this.char()); )
|
|
3033
3035
|
this.bump();
|
|
3034
3036
|
}, e.prototype.peek = function() {
|
|
3035
3037
|
if (this.isEOF())
|
|
@@ -3039,47 +3041,47 @@ var on = (
|
|
|
3039
3041
|
}, e;
|
|
3040
3042
|
}()
|
|
3041
3043
|
);
|
|
3042
|
-
function
|
|
3044
|
+
function Ue(e) {
|
|
3043
3045
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3044
3046
|
}
|
|
3045
3047
|
function an(e) {
|
|
3046
|
-
return
|
|
3048
|
+
return Ue(e) || e === 47;
|
|
3047
3049
|
}
|
|
3048
3050
|
function un(e) {
|
|
3049
3051
|
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;
|
|
3050
3052
|
}
|
|
3051
|
-
function
|
|
3053
|
+
function wt(e) {
|
|
3052
3054
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3053
3055
|
}
|
|
3054
3056
|
function hn(e) {
|
|
3055
3057
|
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;
|
|
3056
3058
|
}
|
|
3057
|
-
function
|
|
3059
|
+
function Fe(e) {
|
|
3058
3060
|
e.forEach(function(t) {
|
|
3059
|
-
if (delete t.location,
|
|
3061
|
+
if (delete t.location, _t(t) || xt(t))
|
|
3060
3062
|
for (var r in t.options)
|
|
3061
|
-
delete t.options[r].location,
|
|
3063
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3062
3064
|
else
|
|
3063
|
-
|
|
3065
|
+
bt(t) && Ht(t.style) || (yt(t) || Et(t)) && Me(t.style) ? delete t.style.location : vt(t) && Fe(t.children);
|
|
3064
3066
|
});
|
|
3065
3067
|
}
|
|
3066
3068
|
function ln(e, t) {
|
|
3067
|
-
t === void 0 && (t = {}), t =
|
|
3069
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3068
3070
|
var r = new on(e, t).parse();
|
|
3069
3071
|
if (r.err) {
|
|
3070
3072
|
var n = SyntaxError(g[r.err.kind]);
|
|
3071
3073
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3072
3074
|
}
|
|
3073
|
-
return t?.captureLocation ||
|
|
3075
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3074
3076
|
}
|
|
3075
|
-
var
|
|
3077
|
+
var q;
|
|
3076
3078
|
(function(e) {
|
|
3077
3079
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3078
|
-
})(
|
|
3079
|
-
var
|
|
3080
|
+
})(q || (q = {}));
|
|
3081
|
+
var xe = (
|
|
3080
3082
|
/** @class */
|
|
3081
3083
|
function(e) {
|
|
3082
|
-
|
|
3084
|
+
_e(t, e);
|
|
3083
3085
|
function t(r, n, i) {
|
|
3084
3086
|
var s = e.call(this, r) || this;
|
|
3085
3087
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3088,66 +3090,66 @@ var Ee = (
|
|
|
3088
3090
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3089
3091
|
}, t;
|
|
3090
3092
|
}(Error)
|
|
3091
|
-
),
|
|
3093
|
+
), rt = (
|
|
3092
3094
|
/** @class */
|
|
3093
3095
|
function(e) {
|
|
3094
|
-
|
|
3096
|
+
_e(t, e);
|
|
3095
3097
|
function t(r, n, i, s) {
|
|
3096
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3098
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
|
|
3097
3099
|
}
|
|
3098
3100
|
return t;
|
|
3099
|
-
}(
|
|
3101
|
+
}(xe)
|
|
3100
3102
|
), fn = (
|
|
3101
3103
|
/** @class */
|
|
3102
3104
|
function(e) {
|
|
3103
|
-
|
|
3105
|
+
_e(t, e);
|
|
3104
3106
|
function t(r, n, i) {
|
|
3105
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3107
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
|
|
3106
3108
|
}
|
|
3107
3109
|
return t;
|
|
3108
|
-
}(
|
|
3110
|
+
}(xe)
|
|
3109
3111
|
), cn = (
|
|
3110
3112
|
/** @class */
|
|
3111
3113
|
function(e) {
|
|
3112
|
-
|
|
3114
|
+
_e(t, e);
|
|
3113
3115
|
function t(r, n) {
|
|
3114
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3116
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
|
|
3115
3117
|
}
|
|
3116
3118
|
return t;
|
|
3117
|
-
}(
|
|
3118
|
-
),
|
|
3119
|
+
}(xe)
|
|
3120
|
+
), P;
|
|
3119
3121
|
(function(e) {
|
|
3120
3122
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3121
|
-
})(
|
|
3123
|
+
})(P || (P = {}));
|
|
3122
3124
|
function mn(e) {
|
|
3123
3125
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3124
3126
|
var n = t[t.length - 1];
|
|
3125
|
-
return !n || n.type !==
|
|
3127
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3126
3128
|
}, []);
|
|
3127
3129
|
}
|
|
3128
3130
|
function dn(e) {
|
|
3129
3131
|
return typeof e == "function";
|
|
3130
3132
|
}
|
|
3131
|
-
function
|
|
3132
|
-
if (e.length === 1 &&
|
|
3133
|
+
function me(e, t, r, n, i, s, a) {
|
|
3134
|
+
if (e.length === 1 && Qe(e[0]))
|
|
3133
3135
|
return [
|
|
3134
3136
|
{
|
|
3135
|
-
type:
|
|
3137
|
+
type: P.literal,
|
|
3136
3138
|
value: e[0].value
|
|
3137
3139
|
}
|
|
3138
3140
|
];
|
|
3139
3141
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3140
3142
|
var h = u[l];
|
|
3141
|
-
if (
|
|
3143
|
+
if (Qe(h)) {
|
|
3142
3144
|
o.push({
|
|
3143
|
-
type:
|
|
3145
|
+
type: P.literal,
|
|
3144
3146
|
value: h.value
|
|
3145
3147
|
});
|
|
3146
3148
|
continue;
|
|
3147
3149
|
}
|
|
3148
3150
|
if (Mr(h)) {
|
|
3149
3151
|
typeof s == "number" && o.push({
|
|
3150
|
-
type:
|
|
3152
|
+
type: P.literal,
|
|
3151
3153
|
value: r.getNumberFormat(t).format(s)
|
|
3152
3154
|
});
|
|
3153
3155
|
continue;
|
|
@@ -3156,87 +3158,87 @@ function ce(e, t, r, n, i, s, a) {
|
|
|
3156
3158
|
if (!(i && f in i))
|
|
3157
3159
|
throw new cn(f, a);
|
|
3158
3160
|
var c = i[f];
|
|
3159
|
-
if (
|
|
3161
|
+
if (Cr(h)) {
|
|
3160
3162
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3161
|
-
type: typeof c == "string" ?
|
|
3163
|
+
type: typeof c == "string" ? P.literal : P.object,
|
|
3162
3164
|
value: c
|
|
3163
3165
|
});
|
|
3164
3166
|
continue;
|
|
3165
3167
|
}
|
|
3166
|
-
if (
|
|
3167
|
-
var
|
|
3168
|
+
if (yt(h)) {
|
|
3169
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3168
3170
|
o.push({
|
|
3169
|
-
type:
|
|
3170
|
-
value: r.getDateTimeFormat(t,
|
|
3171
|
+
type: P.literal,
|
|
3172
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3171
3173
|
});
|
|
3172
3174
|
continue;
|
|
3173
3175
|
}
|
|
3174
|
-
if (
|
|
3175
|
-
var
|
|
3176
|
+
if (Et(h)) {
|
|
3177
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3176
3178
|
o.push({
|
|
3177
|
-
type:
|
|
3178
|
-
value: r.getDateTimeFormat(t,
|
|
3179
|
+
type: P.literal,
|
|
3180
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3179
3181
|
});
|
|
3180
3182
|
continue;
|
|
3181
3183
|
}
|
|
3182
|
-
if (
|
|
3183
|
-
var
|
|
3184
|
-
|
|
3185
|
-
type:
|
|
3186
|
-
value: r.getNumberFormat(t,
|
|
3184
|
+
if (bt(h)) {
|
|
3185
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Ht(h.style) ? h.style.parsedOptions : void 0;
|
|
3186
|
+
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
3187
|
+
type: P.literal,
|
|
3188
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3187
3189
|
});
|
|
3188
3190
|
continue;
|
|
3189
3191
|
}
|
|
3190
|
-
if (
|
|
3191
|
-
var
|
|
3192
|
-
if (!dn(
|
|
3192
|
+
if (vt(h)) {
|
|
3193
|
+
var y = h.children, T = h.value, A = i[T];
|
|
3194
|
+
if (!dn(A))
|
|
3193
3195
|
throw new fn(T, "function", a);
|
|
3194
|
-
var
|
|
3195
|
-
return
|
|
3196
|
+
var S = me(y, t, r, n, i, s), L = A(S.map(function(p) {
|
|
3197
|
+
return p.value;
|
|
3196
3198
|
}));
|
|
3197
|
-
Array.isArray(
|
|
3199
|
+
Array.isArray(L) || (L = [L]), o.push.apply(o, L.map(function(p) {
|
|
3198
3200
|
return {
|
|
3199
|
-
type: typeof
|
|
3200
|
-
value:
|
|
3201
|
+
type: typeof p == "string" ? P.literal : P.object,
|
|
3202
|
+
value: p
|
|
3201
3203
|
};
|
|
3202
3204
|
}));
|
|
3203
3205
|
}
|
|
3204
|
-
if (
|
|
3205
|
-
var
|
|
3206
|
-
if (!
|
|
3207
|
-
throw new
|
|
3208
|
-
o.push.apply(o,
|
|
3206
|
+
if (_t(h)) {
|
|
3207
|
+
var H = h.options[c] || h.options.other;
|
|
3208
|
+
if (!H)
|
|
3209
|
+
throw new rt(h.value, c, Object.keys(h.options), a);
|
|
3210
|
+
o.push.apply(o, me(H.value, t, r, n, i));
|
|
3209
3211
|
continue;
|
|
3210
3212
|
}
|
|
3211
|
-
if (
|
|
3212
|
-
var
|
|
3213
|
-
if (!
|
|
3213
|
+
if (xt(h)) {
|
|
3214
|
+
var H = h.options["=".concat(c)];
|
|
3215
|
+
if (!H) {
|
|
3214
3216
|
if (!Intl.PluralRules)
|
|
3215
|
-
throw new
|
|
3217
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3216
3218
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3217
|
-
`,
|
|
3218
|
-
var
|
|
3219
|
-
|
|
3219
|
+
`, q.MISSING_INTL_API, a);
|
|
3220
|
+
var E = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3221
|
+
H = h.options[E] || h.options.other;
|
|
3220
3222
|
}
|
|
3221
|
-
if (!
|
|
3222
|
-
throw new
|
|
3223
|
-
o.push.apply(o,
|
|
3223
|
+
if (!H)
|
|
3224
|
+
throw new rt(h.value, c, Object.keys(h.options), a);
|
|
3225
|
+
o.push.apply(o, me(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3224
3226
|
continue;
|
|
3225
3227
|
}
|
|
3226
3228
|
}
|
|
3227
3229
|
return mn(o);
|
|
3228
3230
|
}
|
|
3229
3231
|
function pn(e, t) {
|
|
3230
|
-
return t ?
|
|
3231
|
-
return r[n] =
|
|
3232
|
+
return t ? D(D(D({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3233
|
+
return r[n] = D(D({}, e[n]), t[n] || {}), r;
|
|
3232
3234
|
}, {})) : e;
|
|
3233
3235
|
}
|
|
3234
3236
|
function gn(e, t) {
|
|
3235
3237
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3236
3238
|
return r[n] = pn(e[n], t[n]), r;
|
|
3237
|
-
},
|
|
3239
|
+
}, D({}, e)) : e;
|
|
3238
3240
|
}
|
|
3239
|
-
function
|
|
3241
|
+
function Oe(e) {
|
|
3240
3242
|
return {
|
|
3241
3243
|
create: function() {
|
|
3242
3244
|
return {
|
|
@@ -3256,29 +3258,29 @@ function bn(e) {
|
|
|
3256
3258
|
dateTime: {},
|
|
3257
3259
|
pluralRules: {}
|
|
3258
3260
|
}), {
|
|
3259
|
-
getNumberFormat:
|
|
3261
|
+
getNumberFormat: Se(function() {
|
|
3260
3262
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3261
3263
|
r[n] = arguments[n];
|
|
3262
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3264
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3263
3265
|
}, {
|
|
3264
|
-
cache:
|
|
3265
|
-
strategy:
|
|
3266
|
+
cache: Oe(e.number),
|
|
3267
|
+
strategy: Ae.variadic
|
|
3266
3268
|
}),
|
|
3267
|
-
getDateTimeFormat:
|
|
3269
|
+
getDateTimeFormat: Se(function() {
|
|
3268
3270
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3269
3271
|
r[n] = arguments[n];
|
|
3270
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3272
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3271
3273
|
}, {
|
|
3272
|
-
cache:
|
|
3273
|
-
strategy:
|
|
3274
|
+
cache: Oe(e.dateTime),
|
|
3275
|
+
strategy: Ae.variadic
|
|
3274
3276
|
}),
|
|
3275
|
-
getPluralRules:
|
|
3277
|
+
getPluralRules: Se(function() {
|
|
3276
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3277
3279
|
r[n] = arguments[n];
|
|
3278
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3280
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3279
3281
|
}, {
|
|
3280
|
-
cache:
|
|
3281
|
-
strategy:
|
|
3282
|
+
cache: Oe(e.pluralRules),
|
|
3283
|
+
strategy: Ae.variadic
|
|
3282
3284
|
})
|
|
3283
3285
|
};
|
|
3284
3286
|
}
|
|
@@ -3297,11 +3299,11 @@ var yn = (
|
|
|
3297
3299
|
if (u.length === 1)
|
|
3298
3300
|
return u[0].value;
|
|
3299
3301
|
var h = u.reduce(function(f, c) {
|
|
3300
|
-
return !f.length || c.type !==
|
|
3302
|
+
return !f.length || c.type !== P.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3301
3303
|
}, []);
|
|
3302
3304
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3303
3305
|
}, this.formatToParts = function(l) {
|
|
3304
|
-
return
|
|
3306
|
+
return me(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3305
3307
|
}, this.resolvedOptions = function() {
|
|
3306
3308
|
var l;
|
|
3307
3309
|
return {
|
|
@@ -3315,7 +3317,7 @@ var yn = (
|
|
|
3315
3317
|
var a = i || {};
|
|
3316
3318
|
a.formatters;
|
|
3317
3319
|
var o = Sr(a, ["formatters"]);
|
|
3318
|
-
this.ast = e.__parse(t,
|
|
3320
|
+
this.ast = e.__parse(t, D(D({}, o), { locale: this.resolvedLocale }));
|
|
3319
3321
|
} else
|
|
3320
3322
|
this.ast = t;
|
|
3321
3323
|
if (!Array.isArray(this.ast))
|
|
@@ -3415,25 +3417,25 @@ function En(e, t) {
|
|
|
3415
3417
|
n = void 0;
|
|
3416
3418
|
return n;
|
|
3417
3419
|
}
|
|
3418
|
-
const
|
|
3420
|
+
const F = {}, _n = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Nt = (e, t) => {
|
|
3419
3421
|
if (t == null)
|
|
3420
3422
|
return;
|
|
3421
|
-
if (t in
|
|
3422
|
-
return
|
|
3423
|
-
const r =
|
|
3423
|
+
if (t in F && e in F[t])
|
|
3424
|
+
return F[t][e];
|
|
3425
|
+
const r = ve(t);
|
|
3424
3426
|
for (let n = 0; n < r.length; n++) {
|
|
3425
3427
|
const i = r[n], s = vn(i, e);
|
|
3426
3428
|
if (s)
|
|
3427
3429
|
return _n(e, t, s);
|
|
3428
3430
|
}
|
|
3429
3431
|
};
|
|
3430
|
-
let
|
|
3431
|
-
const
|
|
3432
|
+
let ke;
|
|
3433
|
+
const ue = Ee({});
|
|
3432
3434
|
function xn(e) {
|
|
3433
|
-
return
|
|
3435
|
+
return ke[e] || null;
|
|
3434
3436
|
}
|
|
3435
3437
|
function It(e) {
|
|
3436
|
-
return e in
|
|
3438
|
+
return e in ke;
|
|
3437
3439
|
}
|
|
3438
3440
|
function vn(e, t) {
|
|
3439
3441
|
if (!It(e))
|
|
@@ -3444,36 +3446,36 @@ function vn(e, t) {
|
|
|
3444
3446
|
function Hn(e) {
|
|
3445
3447
|
if (e == null)
|
|
3446
3448
|
return;
|
|
3447
|
-
const t =
|
|
3449
|
+
const t = ve(e);
|
|
3448
3450
|
for (let r = 0; r < t.length; r++) {
|
|
3449
3451
|
const n = t[r];
|
|
3450
3452
|
if (It(n))
|
|
3451
3453
|
return n;
|
|
3452
3454
|
}
|
|
3453
3455
|
}
|
|
3454
|
-
function
|
|
3455
|
-
delete
|
|
3456
|
+
function Lt(e, ...t) {
|
|
3457
|
+
delete F[e], ue.update((r) => (r[e] = Br.all([r[e] || {}, ...t]), r));
|
|
3456
3458
|
}
|
|
3457
|
-
|
|
3458
|
-
[
|
|
3459
|
+
K(
|
|
3460
|
+
[ue],
|
|
3459
3461
|
([e]) => Object.keys(e)
|
|
3460
3462
|
);
|
|
3461
|
-
|
|
3462
|
-
const
|
|
3463
|
+
ue.subscribe((e) => ke = e);
|
|
3464
|
+
const de = {};
|
|
3463
3465
|
function Tn(e, t) {
|
|
3464
|
-
|
|
3466
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3465
3467
|
}
|
|
3466
3468
|
function Ct(e) {
|
|
3467
|
-
return
|
|
3469
|
+
return de[e];
|
|
3468
3470
|
}
|
|
3469
3471
|
function Bn(e) {
|
|
3470
|
-
return
|
|
3472
|
+
return ve(e).map((t) => {
|
|
3471
3473
|
const r = Ct(t);
|
|
3472
3474
|
return [t, r ? [...r] : []];
|
|
3473
3475
|
}).filter(([, t]) => t.length > 0);
|
|
3474
3476
|
}
|
|
3475
|
-
function
|
|
3476
|
-
return e == null ? !1 :
|
|
3477
|
+
function Ge(e) {
|
|
3478
|
+
return e == null ? !1 : ve(e).some(
|
|
3477
3479
|
(t) => {
|
|
3478
3480
|
var r;
|
|
3479
3481
|
return (r = Ct(t)) == null ? void 0 : r.size;
|
|
@@ -3483,22 +3485,22 @@ function Ue(e) {
|
|
|
3483
3485
|
function Sn(e, t) {
|
|
3484
3486
|
return Promise.all(
|
|
3485
3487
|
t.map((n) => (Tn(e, n), n().then((i) => i.default || i)))
|
|
3486
|
-
).then((n) =>
|
|
3488
|
+
).then((n) => Lt(e, ...n));
|
|
3487
3489
|
}
|
|
3488
|
-
const
|
|
3489
|
-
function
|
|
3490
|
-
if (!
|
|
3491
|
-
return e in
|
|
3490
|
+
const te = {};
|
|
3491
|
+
function Mt(e) {
|
|
3492
|
+
if (!Ge(e))
|
|
3493
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3492
3494
|
const t = Bn(e);
|
|
3493
|
-
return
|
|
3495
|
+
return te[e] = Promise.all(
|
|
3494
3496
|
t.map(
|
|
3495
3497
|
([r, n]) => Sn(r, n)
|
|
3496
3498
|
)
|
|
3497
3499
|
).then(() => {
|
|
3498
|
-
if (
|
|
3499
|
-
return
|
|
3500
|
-
delete
|
|
3501
|
-
}),
|
|
3500
|
+
if (Ge(e))
|
|
3501
|
+
return Mt(e);
|
|
3502
|
+
delete te[e];
|
|
3503
|
+
}), te[e];
|
|
3502
3504
|
}
|
|
3503
3505
|
const An = {
|
|
3504
3506
|
number: {
|
|
@@ -3536,126 +3538,126 @@ const An = {
|
|
|
3536
3538
|
warnOnMissingMessages: !0,
|
|
3537
3539
|
handleMissingMessage: void 0,
|
|
3538
3540
|
ignoreTag: !0
|
|
3539
|
-
},
|
|
3540
|
-
function
|
|
3541
|
-
return
|
|
3542
|
-
}
|
|
3543
|
-
const
|
|
3544
|
-
var
|
|
3545
|
-
for (var r in t)
|
|
3546
|
-
|
|
3547
|
-
if (
|
|
3548
|
-
for (var r of
|
|
3549
|
-
|
|
3541
|
+
}, On = Pn;
|
|
3542
|
+
function Y() {
|
|
3543
|
+
return On;
|
|
3544
|
+
}
|
|
3545
|
+
const we = Ee(!1);
|
|
3546
|
+
var wn = Object.defineProperty, Nn = Object.defineProperties, In = Object.getOwnPropertyDescriptors, nt = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mn = (e, t) => {
|
|
3547
|
+
for (var r in t || (t = {}))
|
|
3548
|
+
Ln.call(t, r) && it(e, r, t[r]);
|
|
3549
|
+
if (nt)
|
|
3550
|
+
for (var r of nt(t))
|
|
3551
|
+
Cn.call(t, r) && it(e, r, t[r]);
|
|
3550
3552
|
return e;
|
|
3551
|
-
}, $n = (e, t) =>
|
|
3552
|
-
let
|
|
3553
|
-
const
|
|
3554
|
-
function
|
|
3553
|
+
}, $n = (e, t) => Nn(e, In(t));
|
|
3554
|
+
let je;
|
|
3555
|
+
const ge = Ee(null);
|
|
3556
|
+
function st(e) {
|
|
3555
3557
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3556
3558
|
}
|
|
3557
|
-
function
|
|
3558
|
-
const r =
|
|
3559
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3559
|
+
function ve(e, t = Y().fallbackLocale) {
|
|
3560
|
+
const r = st(e);
|
|
3561
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...st(t)])] : r;
|
|
3560
3562
|
}
|
|
3561
|
-
function
|
|
3562
|
-
return
|
|
3563
|
+
function V() {
|
|
3564
|
+
return je ?? void 0;
|
|
3563
3565
|
}
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
+
ge.subscribe((e) => {
|
|
3567
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3566
3568
|
});
|
|
3567
3569
|
const Rn = (e) => {
|
|
3568
|
-
if (e && Hn(e) &&
|
|
3569
|
-
const { loadingDelay: t } =
|
|
3570
|
+
if (e && Hn(e) && Ge(e)) {
|
|
3571
|
+
const { loadingDelay: t } = Y();
|
|
3570
3572
|
let r;
|
|
3571
|
-
return typeof window < "u" &&
|
|
3572
|
-
() =>
|
|
3573
|
+
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
3574
|
+
() => we.set(!0),
|
|
3573
3575
|
t
|
|
3574
|
-
) :
|
|
3575
|
-
|
|
3576
|
+
) : we.set(!0), Mt(e).then(() => {
|
|
3577
|
+
ge.set(e);
|
|
3576
3578
|
}).finally(() => {
|
|
3577
|
-
clearTimeout(r),
|
|
3579
|
+
clearTimeout(r), we.set(!1);
|
|
3578
3580
|
});
|
|
3579
3581
|
}
|
|
3580
|
-
return
|
|
3581
|
-
},
|
|
3582
|
+
return ge.set(e);
|
|
3583
|
+
}, he = $n(Mn({}, ge), {
|
|
3582
3584
|
set: Rn
|
|
3583
|
-
}),
|
|
3585
|
+
}), He = (e) => {
|
|
3584
3586
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3585
3587
|
return (n) => {
|
|
3586
3588
|
const i = JSON.stringify(n);
|
|
3587
3589
|
return i in t ? t[i] : t[i] = e(n);
|
|
3588
3590
|
};
|
|
3589
3591
|
};
|
|
3590
|
-
var Dn = Object.defineProperty,
|
|
3592
|
+
var Dn = Object.defineProperty, be = Object.getOwnPropertySymbols, $t = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
|
3591
3593
|
for (var r in t || (t = {}))
|
|
3592
|
-
|
|
3593
|
-
if (
|
|
3594
|
-
for (var r of
|
|
3595
|
-
|
|
3594
|
+
$t.call(t, r) && ot(e, r, t[r]);
|
|
3595
|
+
if (be)
|
|
3596
|
+
for (var r of be(t))
|
|
3597
|
+
Rt.call(t, r) && ot(e, r, t[r]);
|
|
3596
3598
|
return e;
|
|
3597
|
-
},
|
|
3599
|
+
}, ee = (e, t) => {
|
|
3598
3600
|
var r = {};
|
|
3599
3601
|
for (var n in e)
|
|
3600
|
-
|
|
3601
|
-
if (e != null &&
|
|
3602
|
-
for (var n of
|
|
3603
|
-
t.indexOf(n) < 0 &&
|
|
3602
|
+
$t.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3603
|
+
if (e != null && be)
|
|
3604
|
+
for (var n of be(e))
|
|
3605
|
+
t.indexOf(n) < 0 && Rt.call(e, n) && (r[n] = e[n]);
|
|
3604
3606
|
return r;
|
|
3605
3607
|
};
|
|
3606
|
-
const
|
|
3607
|
-
const { formats: r } =
|
|
3608
|
+
const oe = (e, t) => {
|
|
3609
|
+
const { formats: r } = Y();
|
|
3608
3610
|
if (e in r && t in r[e])
|
|
3609
3611
|
return r[e][t];
|
|
3610
3612
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3611
|
-
}, Un =
|
|
3613
|
+
}, Un = He(
|
|
3612
3614
|
(e) => {
|
|
3613
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3615
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3614
3616
|
if (r == null)
|
|
3615
3617
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3616
|
-
return n && (i =
|
|
3618
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3617
3619
|
}
|
|
3618
|
-
), Fn =
|
|
3620
|
+
), Fn = He(
|
|
3619
3621
|
(e) => {
|
|
3620
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3622
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3621
3623
|
if (r == null)
|
|
3622
3624
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3623
|
-
return n ? i =
|
|
3625
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3624
3626
|
}
|
|
3625
|
-
), Gn =
|
|
3627
|
+
), Gn = He(
|
|
3626
3628
|
(e) => {
|
|
3627
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3629
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3628
3630
|
if (r == null)
|
|
3629
3631
|
throw new Error(
|
|
3630
3632
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3631
3633
|
);
|
|
3632
|
-
return n ? i =
|
|
3634
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3633
3635
|
}
|
|
3634
3636
|
), jn = (e = {}) => {
|
|
3635
3637
|
var t = e, {
|
|
3636
|
-
locale: r =
|
|
3637
|
-
} = t, n =
|
|
3638
|
+
locale: r = V()
|
|
3639
|
+
} = t, n = ee(t, [
|
|
3638
3640
|
"locale"
|
|
3639
3641
|
]);
|
|
3640
|
-
return Un(
|
|
3642
|
+
return Un(Ve({ locale: r }, n));
|
|
3641
3643
|
}, kn = (e = {}) => {
|
|
3642
3644
|
var t = e, {
|
|
3643
|
-
locale: r =
|
|
3644
|
-
} = t, n =
|
|
3645
|
+
locale: r = V()
|
|
3646
|
+
} = t, n = ee(t, [
|
|
3645
3647
|
"locale"
|
|
3646
3648
|
]);
|
|
3647
|
-
return Fn(
|
|
3649
|
+
return Fn(Ve({ locale: r }, n));
|
|
3648
3650
|
}, Vn = (e = {}) => {
|
|
3649
3651
|
var t = e, {
|
|
3650
|
-
locale: r =
|
|
3651
|
-
} = t, n =
|
|
3652
|
+
locale: r = V()
|
|
3653
|
+
} = t, n = ee(t, [
|
|
3652
3654
|
"locale"
|
|
3653
3655
|
]);
|
|
3654
|
-
return Gn(
|
|
3655
|
-
}, Xn =
|
|
3656
|
+
return Gn(Ve({ locale: r }, n));
|
|
3657
|
+
}, Xn = He(
|
|
3656
3658
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3657
|
-
(e, t =
|
|
3658
|
-
ignoreTag:
|
|
3659
|
+
(e, t = V()) => new yn(e, t, Y().formats, {
|
|
3660
|
+
ignoreTag: Y().ignoreTag
|
|
3659
3661
|
})
|
|
3660
3662
|
), zn = (e, t = {}) => {
|
|
3661
3663
|
var r, n, i, s;
|
|
@@ -3663,16 +3665,16 @@ const se = (e, t) => {
|
|
|
3663
3665
|
typeof e == "object" && (a = e, e = a.id);
|
|
3664
3666
|
const {
|
|
3665
3667
|
values: o,
|
|
3666
|
-
locale: l =
|
|
3668
|
+
locale: l = V(),
|
|
3667
3669
|
default: u
|
|
3668
3670
|
} = a;
|
|
3669
3671
|
if (l == null)
|
|
3670
3672
|
throw new Error(
|
|
3671
3673
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3672
3674
|
);
|
|
3673
|
-
let h =
|
|
3675
|
+
let h = Nt(e, l);
|
|
3674
3676
|
if (!h)
|
|
3675
|
-
h = (s = (i = (n = (r =
|
|
3677
|
+
h = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3676
3678
|
else if (typeof h != "string")
|
|
3677
3679
|
return console.warn(
|
|
3678
3680
|
`[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.`
|
|
@@ -3689,15 +3691,15 @@ const se = (e, t) => {
|
|
|
3689
3691
|
);
|
|
3690
3692
|
}
|
|
3691
3693
|
return f;
|
|
3692
|
-
}, Wn = (e, t) => Vn(t).format(e), Zn = (e, t) => kn(t).format(e), Qn = (e, t) => jn(t).format(e), Jn = (e, t =
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
function
|
|
3698
|
-
|
|
3699
|
-
}
|
|
3700
|
-
const
|
|
3694
|
+
}, Wn = (e, t) => Vn(t).format(e), Zn = (e, t) => kn(t).format(e), Qn = (e, t) => jn(t).format(e), Jn = (e, t = V()) => Nt(e, t), qn = K([he, ue], () => zn);
|
|
3695
|
+
K([he], () => Wn);
|
|
3696
|
+
K([he], () => Zn);
|
|
3697
|
+
K([he], () => Qn);
|
|
3698
|
+
K([he, ue], () => Jn);
|
|
3699
|
+
function at(e, t) {
|
|
3700
|
+
Lt(e, t);
|
|
3701
|
+
}
|
|
3702
|
+
const ut = {
|
|
3701
3703
|
en: {
|
|
3702
3704
|
finished: "Finished",
|
|
3703
3705
|
starting: "Starting in ",
|
|
@@ -3787,10 +3789,33 @@ const at = {
|
|
|
3787
3789
|
days: "days"
|
|
3788
3790
|
}
|
|
3789
3791
|
};
|
|
3790
|
-
function Yn(e) {
|
|
3792
|
+
function Yn(e, t) {
|
|
3793
|
+
if (e) {
|
|
3794
|
+
const r = document.createElement("style");
|
|
3795
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3798
|
+
function Kn(e, t) {
|
|
3799
|
+
const r = new URL(t);
|
|
3800
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3801
|
+
const i = document.createElement("style");
|
|
3802
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3803
|
+
}).catch((n) => {
|
|
3804
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3805
|
+
});
|
|
3806
|
+
}
|
|
3807
|
+
function ei(e, t, r) {
|
|
3808
|
+
if (window.emMessageBus) {
|
|
3809
|
+
const n = document.createElement("style");
|
|
3810
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
3811
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3812
|
+
});
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
function ti(e) {
|
|
3791
3816
|
kt(e, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
3792
3817
|
}
|
|
3793
|
-
function
|
|
3818
|
+
function ht(e) {
|
|
3794
3819
|
let t, r, n = (
|
|
3795
3820
|
/*formatDate*/
|
|
3796
3821
|
e[10](
|
|
@@ -3803,72 +3828,72 @@ function ut(e) {
|
|
|
3803
3828
|
/*enddate*/
|
|
3804
3829
|
e[1]
|
|
3805
3830
|
) + ""
|
|
3806
|
-
), l, u, h, f, c,
|
|
3807
|
-
function T(
|
|
3831
|
+
), l, u, h, f, c, d, y;
|
|
3832
|
+
function T(p, B) {
|
|
3808
3833
|
return (
|
|
3809
3834
|
/*status*/
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3835
|
+
p[2] == "Finished" || /*status*/
|
|
3836
|
+
p[2] == "Closing" || /*status*/
|
|
3837
|
+
p[2] == "Closed" ? ii : (
|
|
3813
3838
|
/*tournamentUntilStartDays*/
|
|
3814
|
-
|
|
3839
|
+
p[5] > 0 ? ni : ri
|
|
3815
3840
|
)
|
|
3816
3841
|
);
|
|
3817
3842
|
}
|
|
3818
|
-
let
|
|
3819
|
-
function
|
|
3843
|
+
let A = T(e), S = A(e);
|
|
3844
|
+
function L(p, B) {
|
|
3820
3845
|
if (
|
|
3821
3846
|
/*status*/
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3847
|
+
p[2] == "Finished" || /*status*/
|
|
3848
|
+
p[2] == "Closing" || /*status*/
|
|
3849
|
+
p[2] == "Closed"
|
|
3825
3850
|
)
|
|
3826
|
-
return
|
|
3851
|
+
return ai;
|
|
3827
3852
|
if (
|
|
3828
3853
|
/*tournamentUntilStartDays*/
|
|
3829
|
-
|
|
3854
|
+
p[5] > 0
|
|
3830
3855
|
)
|
|
3831
|
-
return
|
|
3856
|
+
return oi;
|
|
3832
3857
|
if (
|
|
3833
3858
|
/*tournamentLeftDays*/
|
|
3834
|
-
|
|
3859
|
+
p[4] > 0
|
|
3835
3860
|
)
|
|
3836
|
-
return
|
|
3861
|
+
return si;
|
|
3837
3862
|
}
|
|
3838
|
-
let
|
|
3863
|
+
let H = L(e), E = H && H(e);
|
|
3839
3864
|
return {
|
|
3840
3865
|
c() {
|
|
3841
|
-
t =
|
|
3866
|
+
t = N("div"), r = N("div"), i = G(n), s = re(), a = N("div"), l = G(o), u = re(), h = N("div"), f = N("div"), S.c(), c = re(), E && E.c(), _(r, "class", "StartDate"), _(r, "part", "StartDate"), _(a, "class", "EndDate"), _(a, "part", "EndDate"), _(t, "class", "TournamentDates"), _(t, "part", "TournamentDates"), _(f, "class", "ProgressBar"), _(f, "part", "ProgressBar"), _(h, "class", "ProgressBarWrapper"), _(h, "part", "ProgressBarWrapper");
|
|
3842
3867
|
},
|
|
3843
|
-
m(
|
|
3844
|
-
|
|
3868
|
+
m(p, B) {
|
|
3869
|
+
M(p, t, B), O(t, r), O(r, i), O(t, s), O(t, a), O(a, l), M(p, u, B), M(p, h, B), O(h, f), S.m(f, null), O(f, c), E && E.m(f, null), d || (y = jt(
|
|
3845
3870
|
/*getDuration*/
|
|
3846
3871
|
e[9].call(null, h)
|
|
3847
|
-
),
|
|
3872
|
+
), d = !0);
|
|
3848
3873
|
},
|
|
3849
|
-
p(
|
|
3850
|
-
|
|
3874
|
+
p(p, B) {
|
|
3875
|
+
B & /*startdate*/
|
|
3851
3876
|
1 && n !== (n = /*formatDate*/
|
|
3852
|
-
|
|
3877
|
+
p[10](
|
|
3853
3878
|
/*startdate*/
|
|
3854
|
-
|
|
3855
|
-
) + "") &&
|
|
3879
|
+
p[0]
|
|
3880
|
+
) + "") && k(i, n), B & /*enddate*/
|
|
3856
3881
|
2 && o !== (o = /*formatDate*/
|
|
3857
|
-
|
|
3882
|
+
p[10](
|
|
3858
3883
|
/*enddate*/
|
|
3859
|
-
|
|
3860
|
-
) + "") &&
|
|
3884
|
+
p[1]
|
|
3885
|
+
) + "") && k(l, o), A === (A = T(p)) && S ? S.p(p, B) : (S.d(1), S = A(p), S && (S.c(), S.m(f, c))), H === (H = L(p)) && E ? E.p(p, B) : (E && E.d(1), E = H && H(p), E && (E.c(), E.m(f, null)));
|
|
3861
3886
|
},
|
|
3862
|
-
d(
|
|
3863
|
-
|
|
3887
|
+
d(p) {
|
|
3888
|
+
p && (C(t), C(u), C(h)), S.d(), E && E.d(), d = !1, y();
|
|
3864
3889
|
}
|
|
3865
3890
|
};
|
|
3866
3891
|
}
|
|
3867
|
-
function
|
|
3892
|
+
function ri(e) {
|
|
3868
3893
|
let t;
|
|
3869
3894
|
return {
|
|
3870
3895
|
c() {
|
|
3871
|
-
t =
|
|
3896
|
+
t = N("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"), ze(
|
|
3872
3897
|
t,
|
|
3873
3898
|
"width",
|
|
3874
3899
|
/*getProgress*/
|
|
@@ -3876,11 +3901,11 @@ function Kn(e) {
|
|
|
3876
3901
|
);
|
|
3877
3902
|
},
|
|
3878
3903
|
m(r, n) {
|
|
3879
|
-
|
|
3904
|
+
M(r, t, n);
|
|
3880
3905
|
},
|
|
3881
3906
|
p(r, n) {
|
|
3882
3907
|
n & /*getProgress*/
|
|
3883
|
-
128 &&
|
|
3908
|
+
128 && ze(
|
|
3884
3909
|
t,
|
|
3885
3910
|
"width",
|
|
3886
3911
|
/*getProgress*/
|
|
@@ -3888,71 +3913,71 @@ function Kn(e) {
|
|
|
3888
3913
|
);
|
|
3889
3914
|
},
|
|
3890
3915
|
d(r) {
|
|
3891
|
-
r &&
|
|
3916
|
+
r && C(t);
|
|
3892
3917
|
}
|
|
3893
3918
|
};
|
|
3894
3919
|
}
|
|
3895
|
-
function
|
|
3920
|
+
function ni(e) {
|
|
3896
3921
|
let t;
|
|
3897
3922
|
return {
|
|
3898
3923
|
c() {
|
|
3899
|
-
t =
|
|
3924
|
+
t = N("div"), _(t, "class", "ProgressBarFillStarting"), _(t, "part", "ProgressBarFillStarting");
|
|
3900
3925
|
},
|
|
3901
3926
|
m(r, n) {
|
|
3902
|
-
|
|
3927
|
+
M(r, t, n);
|
|
3903
3928
|
},
|
|
3904
|
-
p:
|
|
3929
|
+
p: I,
|
|
3905
3930
|
d(r) {
|
|
3906
|
-
r &&
|
|
3931
|
+
r && C(t);
|
|
3907
3932
|
}
|
|
3908
3933
|
};
|
|
3909
3934
|
}
|
|
3910
|
-
function
|
|
3935
|
+
function ii(e) {
|
|
3911
3936
|
let t;
|
|
3912
3937
|
return {
|
|
3913
3938
|
c() {
|
|
3914
|
-
t =
|
|
3939
|
+
t = N("div"), _(t, "class", "ProgressBarFillEnd"), _(t, "part", "ProgressBarFillEnd");
|
|
3915
3940
|
},
|
|
3916
3941
|
m(r, n) {
|
|
3917
|
-
|
|
3942
|
+
M(r, t, n);
|
|
3918
3943
|
},
|
|
3919
|
-
p:
|
|
3944
|
+
p: I,
|
|
3920
3945
|
d(r) {
|
|
3921
|
-
r &&
|
|
3946
|
+
r && C(t);
|
|
3922
3947
|
}
|
|
3923
3948
|
};
|
|
3924
3949
|
}
|
|
3925
|
-
function
|
|
3950
|
+
function si(e) {
|
|
3926
3951
|
let t, r, n, i = (
|
|
3927
3952
|
/*$_*/
|
|
3928
3953
|
e[8]("left") + ""
|
|
3929
3954
|
), s;
|
|
3930
3955
|
return {
|
|
3931
3956
|
c() {
|
|
3932
|
-
t =
|
|
3957
|
+
t = N("div"), r = G(
|
|
3933
3958
|
/*showRemain*/
|
|
3934
3959
|
e[6]
|
|
3935
|
-
), n =
|
|
3960
|
+
), n = re(), s = G(i), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
3936
3961
|
},
|
|
3937
3962
|
m(a, o) {
|
|
3938
|
-
|
|
3963
|
+
M(a, t, o), O(t, r), O(t, n), O(t, s);
|
|
3939
3964
|
},
|
|
3940
3965
|
p(a, o) {
|
|
3941
3966
|
o & /*showRemain*/
|
|
3942
|
-
64 &&
|
|
3967
|
+
64 && k(
|
|
3943
3968
|
r,
|
|
3944
3969
|
/*showRemain*/
|
|
3945
3970
|
a[6]
|
|
3946
3971
|
), o & /*$_*/
|
|
3947
3972
|
256 && i !== (i = /*$_*/
|
|
3948
|
-
a[8]("left") + "") &&
|
|
3973
|
+
a[8]("left") + "") && k(s, i);
|
|
3949
3974
|
},
|
|
3950
3975
|
d(a) {
|
|
3951
|
-
a &&
|
|
3976
|
+
a && C(t);
|
|
3952
3977
|
}
|
|
3953
3978
|
};
|
|
3954
3979
|
}
|
|
3955
|
-
function
|
|
3980
|
+
function oi(e) {
|
|
3956
3981
|
let t, r = (
|
|
3957
3982
|
/*$_*/
|
|
3958
3983
|
e[8]("starting") + ""
|
|
@@ -3965,183 +3990,170 @@ function ni(e) {
|
|
|
3965
3990
|
), a;
|
|
3966
3991
|
return {
|
|
3967
3992
|
c() {
|
|
3968
|
-
t =
|
|
3993
|
+
t = N("div"), n = G(r), i = re(), a = G(s), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
3969
3994
|
},
|
|
3970
3995
|
m(o, l) {
|
|
3971
|
-
|
|
3996
|
+
M(o, t, l), O(t, n), O(t, i), O(t, a);
|
|
3972
3997
|
},
|
|
3973
3998
|
p(o, l) {
|
|
3974
3999
|
l & /*$_*/
|
|
3975
4000
|
256 && r !== (r = /*$_*/
|
|
3976
|
-
o[8]("starting") + "") &&
|
|
4001
|
+
o[8]("starting") + "") && k(n, r), l & /*tournamentUntilStartDays*/
|
|
3977
4002
|
32 && s !== (s = /*getTextByDiff*/
|
|
3978
4003
|
o[11](
|
|
3979
4004
|
/*tournamentUntilStartDays*/
|
|
3980
4005
|
o[5]
|
|
3981
|
-
) + "") &&
|
|
4006
|
+
) + "") && k(a, s);
|
|
3982
4007
|
},
|
|
3983
4008
|
d(o) {
|
|
3984
|
-
o &&
|
|
4009
|
+
o && C(t);
|
|
3985
4010
|
}
|
|
3986
4011
|
};
|
|
3987
4012
|
}
|
|
3988
|
-
function
|
|
4013
|
+
function ai(e) {
|
|
3989
4014
|
let t, r = (
|
|
3990
4015
|
/*$_*/
|
|
3991
4016
|
e[8]("finished") + ""
|
|
3992
4017
|
), n;
|
|
3993
4018
|
return {
|
|
3994
4019
|
c() {
|
|
3995
|
-
t =
|
|
4020
|
+
t = N("div"), n = G(r), _(t, "class", "Finished"), _(t, "part", "Finished");
|
|
3996
4021
|
},
|
|
3997
4022
|
m(i, s) {
|
|
3998
|
-
|
|
4023
|
+
M(i, t, s), O(t, n);
|
|
3999
4024
|
},
|
|
4000
4025
|
p(i, s) {
|
|
4001
4026
|
s & /*$_*/
|
|
4002
4027
|
256 && r !== (r = /*$_*/
|
|
4003
|
-
i[8]("finished") + "") &&
|
|
4028
|
+
i[8]("finished") + "") && k(n, r);
|
|
4004
4029
|
},
|
|
4005
4030
|
d(i) {
|
|
4006
|
-
i &&
|
|
4031
|
+
i && C(t);
|
|
4007
4032
|
}
|
|
4008
4033
|
};
|
|
4009
4034
|
}
|
|
4010
|
-
function
|
|
4035
|
+
function ui(e) {
|
|
4011
4036
|
let t, r = (
|
|
4012
4037
|
/*startdate*/
|
|
4013
4038
|
e[0] && /*enddate*/
|
|
4014
|
-
e[1] &&
|
|
4039
|
+
e[1] && ht(e)
|
|
4015
4040
|
);
|
|
4016
4041
|
return {
|
|
4017
4042
|
c() {
|
|
4018
|
-
t =
|
|
4043
|
+
t = N("div"), r && r.c(), _(t, "class", "TournamentDuration"), _(t, "part", "TournamentDuration");
|
|
4019
4044
|
},
|
|
4020
4045
|
m(n, i) {
|
|
4021
|
-
|
|
4046
|
+
M(n, t, i), r && r.m(t, null), e[17](t);
|
|
4022
4047
|
},
|
|
4023
4048
|
p(n, [i]) {
|
|
4024
4049
|
/*startdate*/
|
|
4025
4050
|
n[0] && /*enddate*/
|
|
4026
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
4051
|
+
n[1] ? r ? r.p(n, i) : (r = ht(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4027
4052
|
},
|
|
4028
|
-
i:
|
|
4029
|
-
o:
|
|
4053
|
+
i: I,
|
|
4054
|
+
o: I,
|
|
4030
4055
|
d(n) {
|
|
4031
|
-
n &&
|
|
4056
|
+
n && C(t), r && r.d(), e[17](null);
|
|
4032
4057
|
}
|
|
4033
4058
|
};
|
|
4034
4059
|
}
|
|
4035
|
-
function
|
|
4060
|
+
function hi(e, t, r) {
|
|
4036
4061
|
let n, i;
|
|
4037
4062
|
Gt(e, qn, (m) => r(8, i = m));
|
|
4038
|
-
let { startdate: s = "" } = t, { enddate: a = "" } = t, { status: o = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, c,
|
|
4039
|
-
const
|
|
4040
|
-
fetch(f).then((
|
|
4041
|
-
Object.keys(
|
|
4042
|
-
|
|
4063
|
+
let { startdate: s = "" } = t, { enddate: a = "" } = t, { status: o = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, d, y = "", T = "", A = "";
|
|
4064
|
+
const S = () => {
|
|
4065
|
+
fetch(f).then((w) => w.json()).then((w) => {
|
|
4066
|
+
Object.keys(w).forEach((U) => {
|
|
4067
|
+
at(U, w[U]);
|
|
4043
4068
|
});
|
|
4044
|
-
}).catch((
|
|
4045
|
-
console.log(
|
|
4069
|
+
}).catch((w) => {
|
|
4070
|
+
console.log(w);
|
|
4046
4071
|
});
|
|
4047
4072
|
};
|
|
4048
|
-
Object.keys(
|
|
4049
|
-
|
|
4073
|
+
Object.keys(ut).forEach((m) => {
|
|
4074
|
+
at(m, ut[m]);
|
|
4050
4075
|
});
|
|
4051
|
-
const
|
|
4076
|
+
const L = (m) => new Date(m).getTime(), H = (m, w) => (L(w) - L(m)) / (1e3 * 60), E = () => {
|
|
4052
4077
|
const m = /* @__PURE__ */ new Date();
|
|
4053
|
-
r(4,
|
|
4054
|
-
},
|
|
4055
|
-
const
|
|
4056
|
-
let
|
|
4057
|
-
return `${
|
|
4058
|
-
},
|
|
4059
|
-
const
|
|
4060
|
-
const
|
|
4061
|
-
return
|
|
4078
|
+
r(4, y = H(m, a)), r(5, T = H(m, s)), r(6, A = B(y));
|
|
4079
|
+
}, p = (m) => {
|
|
4080
|
+
const w = { month: "long" };
|
|
4081
|
+
let U = new Date(m), j = new Intl.DateTimeFormat(l, w).format(U);
|
|
4082
|
+
return `${U.getDate()} ${j}, ${U.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${U.getUTCFullYear()}`;
|
|
4083
|
+
}, B = (m) => {
|
|
4084
|
+
const w = (j, $) => j + " " + i($), U = (j) => {
|
|
4085
|
+
const $ = Math.floor(j);
|
|
4086
|
+
return $ < 10 ? `0${$}` : `${$}`;
|
|
4062
4087
|
};
|
|
4063
4088
|
if (m < 1440) {
|
|
4064
|
-
const
|
|
4065
|
-
return [
|
|
4089
|
+
const j = m / 60, $ = m % 60, Dt = ($ - Math.floor($)) * 60;
|
|
4090
|
+
return [j, $, Dt].map((Ut) => U(Ut)).join(":");
|
|
4066
4091
|
}
|
|
4067
|
-
return
|
|
4068
|
-
}, S = () => {
|
|
4069
|
-
let m = document.createElement("style");
|
|
4070
|
-
m.innerHTML = u, c.appendChild(m);
|
|
4071
|
-
}, he = () => {
|
|
4072
|
-
let m = new URL(h), A = document.createElement("style");
|
|
4073
|
-
fetch(m.href).then((L) => L.text()).then((L) => {
|
|
4074
|
-
A.innerHTML = L, setTimeout(
|
|
4075
|
-
() => {
|
|
4076
|
-
c.appendChild(A);
|
|
4077
|
-
},
|
|
4078
|
-
1
|
|
4079
|
-
), setTimeout(
|
|
4080
|
-
() => {
|
|
4081
|
-
},
|
|
4082
|
-
500
|
|
4083
|
-
);
|
|
4084
|
-
});
|
|
4092
|
+
return w(Math.ceil(m / (60 * 24)), "days");
|
|
4085
4093
|
};
|
|
4086
4094
|
Qt(() => {
|
|
4087
4095
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4088
4096
|
const m = setInterval(
|
|
4089
4097
|
() => {
|
|
4090
|
-
s && a &&
|
|
4098
|
+
s && a && E();
|
|
4091
4099
|
},
|
|
4092
4100
|
1e3
|
|
4093
4101
|
);
|
|
4094
|
-
return () =>
|
|
4102
|
+
return () => {
|
|
4103
|
+
clearInterval(m);
|
|
4104
|
+
};
|
|
4095
4105
|
});
|
|
4096
|
-
function
|
|
4106
|
+
function le(m) {
|
|
4097
4107
|
Ne[m ? "unshift" : "push"](() => {
|
|
4098
|
-
|
|
4108
|
+
d = m, r(3, d);
|
|
4099
4109
|
});
|
|
4100
4110
|
}
|
|
4101
4111
|
return e.$$set = (m) => {
|
|
4102
|
-
"startdate" in m && r(0, s = m.startdate), "enddate" in m && r(1, a = m.enddate), "status" in m && r(2, o = m.status), "lang" in m && r(12, l = m.lang), "clientstyling" in m && r(13, u = m.clientstyling), "clientstylingurl" in m && r(14, h = m.clientstylingurl), "translationurl" in m && r(15, f = m.translationurl);
|
|
4112
|
+
"startdate" in m && r(0, s = m.startdate), "enddate" in m && r(1, a = m.enddate), "status" in m && r(2, o = m.status), "lang" in m && r(12, l = m.lang), "clientstyling" in m && r(13, u = m.clientstyling), "clientstylingurl" in m && r(14, h = m.clientstylingurl), "translationurl" in m && r(15, f = m.translationurl), "mbsource" in m && r(16, c = m.mbsource);
|
|
4103
4113
|
}, e.$$.update = () => {
|
|
4104
4114
|
e.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
4105
4115
|
19 && r(7, n = () => {
|
|
4106
|
-
if (
|
|
4116
|
+
if (y <= 0)
|
|
4107
4117
|
return 100;
|
|
4108
|
-
const m =
|
|
4109
|
-
return Math.floor((m -
|
|
4118
|
+
const m = H(s, a), w = 100 / m;
|
|
4119
|
+
return Math.floor((m - y) * w);
|
|
4110
4120
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4111
|
-
19 && s && a &&
|
|
4112
|
-
4096 && l &&
|
|
4113
|
-
4112 && l &&
|
|
4114
|
-
32768 && f &&
|
|
4115
|
-
8200 &&
|
|
4116
|
-
16392 &&
|
|
4121
|
+
19 && s && a && E() && B(y), e.$$.dirty & /*lang*/
|
|
4122
|
+
4096 && l && E(), e.$$.dirty & /*lang, tournamentLeftDays*/
|
|
4123
|
+
4112 && l && B(y), e.$$.dirty & /*translationurl*/
|
|
4124
|
+
32768 && f && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4125
|
+
8200 && u && d && Yn(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4126
|
+
16392 && h && d && Kn(d, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4127
|
+
65544 && c && d && ei(d, `${c}.Style`);
|
|
4117
4128
|
}, [
|
|
4118
4129
|
s,
|
|
4119
4130
|
a,
|
|
4120
4131
|
o,
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
E,
|
|
4132
|
+
d,
|
|
4133
|
+
y,
|
|
4124
4134
|
T,
|
|
4135
|
+
A,
|
|
4125
4136
|
n,
|
|
4126
4137
|
i,
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4138
|
+
E,
|
|
4139
|
+
p,
|
|
4140
|
+
B,
|
|
4130
4141
|
l,
|
|
4131
4142
|
u,
|
|
4132
4143
|
h,
|
|
4133
4144
|
f,
|
|
4134
|
-
|
|
4145
|
+
c,
|
|
4146
|
+
le
|
|
4135
4147
|
];
|
|
4136
4148
|
}
|
|
4137
|
-
class
|
|
4149
|
+
class li extends ar {
|
|
4138
4150
|
constructor(t) {
|
|
4139
4151
|
super(), sr(
|
|
4140
4152
|
this,
|
|
4141
4153
|
t,
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4154
|
+
hi,
|
|
4155
|
+
ui,
|
|
4156
|
+
ft,
|
|
4145
4157
|
{
|
|
4146
4158
|
startdate: 0,
|
|
4147
4159
|
enddate: 1,
|
|
@@ -4149,55 +4161,62 @@ class ai extends ar {
|
|
|
4149
4161
|
lang: 12,
|
|
4150
4162
|
clientstyling: 13,
|
|
4151
4163
|
clientstylingurl: 14,
|
|
4152
|
-
translationurl: 15
|
|
4164
|
+
translationurl: 15,
|
|
4165
|
+
mbsource: 16
|
|
4153
4166
|
},
|
|
4154
|
-
|
|
4167
|
+
ti
|
|
4155
4168
|
);
|
|
4156
4169
|
}
|
|
4157
4170
|
get startdate() {
|
|
4158
4171
|
return this.$$.ctx[0];
|
|
4159
4172
|
}
|
|
4160
4173
|
set startdate(t) {
|
|
4161
|
-
this.$$set({ startdate: t }),
|
|
4174
|
+
this.$$set({ startdate: t }), R();
|
|
4162
4175
|
}
|
|
4163
4176
|
get enddate() {
|
|
4164
4177
|
return this.$$.ctx[1];
|
|
4165
4178
|
}
|
|
4166
4179
|
set enddate(t) {
|
|
4167
|
-
this.$$set({ enddate: t }),
|
|
4180
|
+
this.$$set({ enddate: t }), R();
|
|
4168
4181
|
}
|
|
4169
4182
|
get status() {
|
|
4170
4183
|
return this.$$.ctx[2];
|
|
4171
4184
|
}
|
|
4172
4185
|
set status(t) {
|
|
4173
|
-
this.$$set({ status: t }),
|
|
4186
|
+
this.$$set({ status: t }), R();
|
|
4174
4187
|
}
|
|
4175
4188
|
get lang() {
|
|
4176
4189
|
return this.$$.ctx[12];
|
|
4177
4190
|
}
|
|
4178
4191
|
set lang(t) {
|
|
4179
|
-
this.$$set({ lang: t }),
|
|
4192
|
+
this.$$set({ lang: t }), R();
|
|
4180
4193
|
}
|
|
4181
4194
|
get clientstyling() {
|
|
4182
4195
|
return this.$$.ctx[13];
|
|
4183
4196
|
}
|
|
4184
4197
|
set clientstyling(t) {
|
|
4185
|
-
this.$$set({ clientstyling: t }),
|
|
4198
|
+
this.$$set({ clientstyling: t }), R();
|
|
4186
4199
|
}
|
|
4187
4200
|
get clientstylingurl() {
|
|
4188
4201
|
return this.$$.ctx[14];
|
|
4189
4202
|
}
|
|
4190
4203
|
set clientstylingurl(t) {
|
|
4191
|
-
this.$$set({ clientstylingurl: t }),
|
|
4204
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4192
4205
|
}
|
|
4193
4206
|
get translationurl() {
|
|
4194
4207
|
return this.$$.ctx[15];
|
|
4195
4208
|
}
|
|
4196
4209
|
set translationurl(t) {
|
|
4197
|
-
this.$$set({ translationurl: t }),
|
|
4210
|
+
this.$$set({ translationurl: t }), R();
|
|
4211
|
+
}
|
|
4212
|
+
get mbsource() {
|
|
4213
|
+
return this.$$.ctx[16];
|
|
4214
|
+
}
|
|
4215
|
+
set mbsource(t) {
|
|
4216
|
+
this.$$set({ mbsource: t }), R();
|
|
4198
4217
|
}
|
|
4199
4218
|
}
|
|
4200
|
-
or(
|
|
4219
|
+
or(li, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4201
4220
|
export {
|
|
4202
|
-
|
|
4221
|
+
li as C
|
|
4203
4222
|
};
|