@everymatrix/casino-tournaments-thumbnail-duration 1.67.0 → 1.68.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-CPNCbhSV.js → CasinoTournamentsThumbnailDuration-B0xZyg3Q.js} +467 -450
- package/components/{CasinoTournamentsThumbnailDuration-DPC3g-WE.cjs → CasinoTournamentsThumbnailDuration-C8ig5oPf.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnailDuration-CR6iNWLj.js → CasinoTournamentsThumbnailDuration-RzL_907I.js} +467 -450
- 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
|
@@ -15,7 +15,7 @@ function ye(e) {
|
|
|
15
15
|
function ft(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ft(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
21
|
function ct(e, ...t) {
|
|
@@ -27,23 +27,23 @@ function ct(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Gt(e, t, r) {
|
|
31
31
|
e.$$.on_destroy.push(ct(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function jt(e) {
|
|
34
34
|
return e && ye(e.destroy) ? e.destroy : I;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function O(e, t) {
|
|
37
37
|
e.appendChild(t);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const n =
|
|
39
|
+
function kt(e, t, r) {
|
|
40
|
+
const n = Vt(e);
|
|
41
41
|
if (!n.getElementById(t)) {
|
|
42
|
-
const i =
|
|
43
|
-
i.id = t, i.textContent = r,
|
|
42
|
+
const i = N("style");
|
|
43
|
+
i.id = t, i.textContent = r, Xt(n, i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Vt(e) {
|
|
47
47
|
if (!e)
|
|
48
48
|
return document;
|
|
49
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -53,20 +53,20 @@ function Xt(e) {
|
|
|
53
53
|
t
|
|
54
54
|
) : e.ownerDocument;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
56
|
+
function Xt(e, t) {
|
|
57
|
+
return O(
|
|
58
58
|
/** @type {Document} */
|
|
59
59
|
e.head || e,
|
|
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
72
|
function G(e) {
|
|
@@ -75,10 +75,10 @@ function G(e) {
|
|
|
75
75
|
function re() {
|
|
76
76
|
return G(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function _(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function zt(e) {
|
|
82
82
|
return Array.from(e.childNodes);
|
|
83
83
|
}
|
|
84
84
|
function k(e, t) {
|
|
@@ -88,7 +88,7 @@ function k(e, t) {
|
|
|
88
88
|
function ze(e, t, r, n) {
|
|
89
89
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Wt(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -101,27 +101,27 @@ let ie;
|
|
|
101
101
|
function ne(e) {
|
|
102
102
|
ie = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Zt() {
|
|
105
105
|
if (!ie)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
107
|
return ie;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function Qt(e) {
|
|
110
|
+
Zt().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const W = [],
|
|
112
|
+
const W = [], Ne = [];
|
|
113
113
|
let Z = [];
|
|
114
|
-
const We = [],
|
|
114
|
+
const We = [], Jt = /* @__PURE__ */ Promise.resolve();
|
|
115
115
|
let Ie = !1;
|
|
116
|
-
function
|
|
117
|
-
Ie || (Ie = !0,
|
|
116
|
+
function qt() {
|
|
117
|
+
Ie || (Ie = !0, Jt.then(R));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Le(e) {
|
|
120
120
|
Z.push(e);
|
|
121
121
|
}
|
|
122
122
|
const Te = /* @__PURE__ */ new Set();
|
|
123
123
|
let X = 0;
|
|
124
|
-
function
|
|
124
|
+
function R() {
|
|
125
125
|
if (X !== 0)
|
|
126
126
|
return;
|
|
127
127
|
const e = ie;
|
|
@@ -129,13 +129,13 @@ function U() {
|
|
|
129
129
|
try {
|
|
130
130
|
for (; X < W.length; ) {
|
|
131
131
|
const t = W[X];
|
|
132
|
-
X++, ne(t),
|
|
132
|
+
X++, ne(t), Yt(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
135
|
throw W.length = 0, X = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (ne(null), W.length = 0, X = 0;
|
|
138
|
-
|
|
137
|
+
for (ne(null), W.length = 0, X = 0; Ne.length; )
|
|
138
|
+
Ne.pop()();
|
|
139
139
|
for (let t = 0; t < Z.length; t += 1) {
|
|
140
140
|
const r = Z[t];
|
|
141
141
|
Te.has(r) || (Te.add(r), r());
|
|
@@ -146,36 +146,36 @@ function U() {
|
|
|
146
146
|
We.pop()();
|
|
147
147
|
Ie = !1, Te.clear(), ne(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Yt(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
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
|
-
function
|
|
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
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const er = /* @__PURE__ */ new Set();
|
|
161
|
+
function tr(e, t) {
|
|
162
|
+
e && e.i && (er.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function rr(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
166
|
+
n && n.m(t, r), Le(() => {
|
|
167
167
|
const s = e.$$.on_mount.map(lt).filter(ye);
|
|
168
168
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
169
|
-
}), i.forEach(
|
|
169
|
+
}), i.forEach(Le);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function nr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
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
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (W.push(e),
|
|
175
|
+
function ir(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (W.push(e), qt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function sr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
179
179
|
const l = ie;
|
|
180
180
|
ne(e);
|
|
181
181
|
const u = e.$$ = {
|
|
@@ -201,16 +201,16 @@ function or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
201
201
|
};
|
|
202
202
|
a && a(u.root);
|
|
203
203
|
let h = !1;
|
|
204
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
205
|
-
const y =
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), h &&
|
|
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
207
|
}) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const f =
|
|
210
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
209
|
+
const f = zt(t.target);
|
|
210
|
+
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && tr(e.$$.fragment), rr(e, t.target, t.anchor), R();
|
|
214
214
|
}
|
|
215
215
|
ne(l);
|
|
216
216
|
}
|
|
@@ -257,24 +257,24 @@ typeof HTMLElement == "function" && (mt = 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
|
};
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = Wt(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
@@ -361,7 +361,7 @@ function ce(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function or(e, t, r, n, i, s) {
|
|
365
365
|
let a = class extends mt {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -390,7 +390,7 @@ function ar(e, t, r, n, i, s) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
a, a;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class ar {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class ur {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
nr(this, 1), this.$destroy = I;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -431,13 +431,13 @@ class ur {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !Ft(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
437
|
+
const ur = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ur);
|
|
439
439
|
const z = [];
|
|
440
|
-
function
|
|
440
|
+
function hr(e, t) {
|
|
441
441
|
return {
|
|
442
442
|
subscribe: Ee(e, t).subscribe
|
|
443
443
|
};
|
|
@@ -473,7 +473,7 @@ function K(e, t, r) {
|
|
|
473
473
|
if (!i.every(Boolean))
|
|
474
474
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
475
475
|
const s = t.length < 2;
|
|
476
|
-
return
|
|
476
|
+
return hr(r, (a, o) => {
|
|
477
477
|
let l = !1;
|
|
478
478
|
const u = [];
|
|
479
479
|
let h = 0, f = I;
|
|
@@ -483,11 +483,11 @@ function K(e, t, r) {
|
|
|
483
483
|
f();
|
|
484
484
|
const y = t(n ? u[0] : u, a, o);
|
|
485
485
|
s ? a(y) : f = ye(y) ? y : I;
|
|
486
|
-
},
|
|
486
|
+
}, d = i.map(
|
|
487
487
|
(y, T) => ct(
|
|
488
488
|
y,
|
|
489
|
-
(
|
|
490
|
-
u[T] =
|
|
489
|
+
(A) => {
|
|
490
|
+
u[T] = A, h &= ~(1 << T), l && c();
|
|
491
491
|
},
|
|
492
492
|
() => {
|
|
493
493
|
h |= 1 << T;
|
|
@@ -495,51 +495,51 @@ function K(e, t, r) {
|
|
|
495
495
|
)
|
|
496
496
|
);
|
|
497
497
|
return l = !0, c(), function() {
|
|
498
|
-
ae(
|
|
498
|
+
ae(d), f(), l = !1;
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function lr(e) {
|
|
503
503
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
return
|
|
505
|
+
var fr = function(t) {
|
|
506
|
+
return cr(t) && !mr(t);
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function cr(e) {
|
|
509
509
|
return !!e && typeof e == "object";
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function mr(e) {
|
|
512
512
|
var t = Object.prototype.toString.call(e);
|
|
513
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
513
|
+
return t === "[object RegExp]" || t === "[object Date]" || gr(e);
|
|
514
514
|
}
|
|
515
|
-
var
|
|
516
|
-
function
|
|
517
|
-
return e.$$typeof ===
|
|
515
|
+
var dr = typeof Symbol == "function" && Symbol.for, pr = dr ? Symbol.for("react.element") : 60103;
|
|
516
|
+
function gr(e) {
|
|
517
|
+
return e.$$typeof === pr;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function br(e) {
|
|
520
520
|
return Array.isArray(e) ? [] : {};
|
|
521
521
|
}
|
|
522
522
|
function se(e, t) {
|
|
523
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(br(e), e, t) : e;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function yr(e, t, r) {
|
|
526
526
|
return e.concat(t).map(function(n) {
|
|
527
527
|
return se(n, r);
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Er(e, t) {
|
|
531
531
|
if (!t.customMerge)
|
|
532
532
|
return Q;
|
|
533
533
|
var r = t.customMerge(e);
|
|
534
534
|
return typeof r == "function" ? r : Q;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
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
541
|
function Ze(e) {
|
|
542
|
-
return Object.keys(e).concat(
|
|
542
|
+
return Object.keys(e).concat(_r(e));
|
|
543
543
|
}
|
|
544
544
|
function dt(e, t) {
|
|
545
545
|
try {
|
|
@@ -548,21 +548,21 @@ function dt(e, t) {
|
|
|
548
548
|
return !1;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function xr(e, t) {
|
|
552
552
|
return dt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function vr(e, t, r) {
|
|
555
555
|
var n = {};
|
|
556
556
|
return r.isMergeableObject(e) && Ze(e).forEach(function(i) {
|
|
557
557
|
n[i] = se(e[i], r);
|
|
558
558
|
}), Ze(t).forEach(function(i) {
|
|
559
|
-
|
|
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
562
|
function Q(e, t, r) {
|
|
563
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
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) :
|
|
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))
|
|
@@ -571,20 +571,20 @@ Q.all = function(t, r) {
|
|
|
571
571
|
return Q(n, i, r);
|
|
572
572
|
}, {});
|
|
573
573
|
};
|
|
574
|
-
var
|
|
575
|
-
const
|
|
576
|
-
var
|
|
577
|
-
return
|
|
574
|
+
var Hr = Q, Tr = Hr;
|
|
575
|
+
const Br = /* @__PURE__ */ lr(Tr);
|
|
576
|
+
var Ce = function(e, t) {
|
|
577
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
578
578
|
r.__proto__ = n;
|
|
579
579
|
} || function(r, n) {
|
|
580
580
|
for (var i in n)
|
|
581
581
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
582
|
-
},
|
|
582
|
+
}, Ce(e, t);
|
|
583
583
|
};
|
|
584
584
|
function _e(e, t) {
|
|
585
585
|
if (typeof t != "function" && t !== null)
|
|
586
586
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
587
|
-
|
|
587
|
+
Ce(e, t);
|
|
588
588
|
function r() {
|
|
589
589
|
this.constructor = e;
|
|
590
590
|
}
|
|
@@ -600,7 +600,7 @@ var D = function() {
|
|
|
600
600
|
return t;
|
|
601
601
|
}, D.apply(this, arguments);
|
|
602
602
|
};
|
|
603
|
-
function
|
|
603
|
+
function Sr(e, t) {
|
|
604
604
|
var r = {};
|
|
605
605
|
for (var n in e)
|
|
606
606
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -616,17 +616,17 @@ function Be(e, t, r) {
|
|
|
616
616
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
617
617
|
}
|
|
618
618
|
function Se(e, t) {
|
|
619
|
-
var r = t && t.cache ? t.cache : Lr, n = t && t.serializer ? t.serializer :
|
|
619
|
+
var r = t && t.cache ? t.cache : Lr, n = t && t.serializer ? t.serializer : Nr, i = t && t.strategy ? t.strategy : Or;
|
|
620
620
|
return i(e, {
|
|
621
621
|
cache: r,
|
|
622
622
|
serializer: n
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Ar(e) {
|
|
626
626
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
var i =
|
|
628
|
+
function Pr(e, t, r, n) {
|
|
629
|
+
var i = Ar(n) ? n : r(n), s = t.get(i);
|
|
630
630
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
631
631
|
}
|
|
632
632
|
function pt(e, t, r) {
|
|
@@ -636,16 +636,16 @@ function pt(e, t, r) {
|
|
|
636
636
|
function gt(e, t, r, n, i) {
|
|
637
637
|
return r.bind(t, e, n, i);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
var r = e.length === 1 ?
|
|
639
|
+
function Or(e, t) {
|
|
640
|
+
var r = e.length === 1 ? Pr : pt;
|
|
641
641
|
return gt(e, this, r, t.cache.create(), t.serializer);
|
|
642
642
|
}
|
|
643
643
|
function wr(e, t) {
|
|
644
644
|
return gt(e, this, pt, t.cache.create(), t.serializer);
|
|
645
645
|
}
|
|
646
|
-
var
|
|
646
|
+
var Nr = function() {
|
|
647
647
|
return JSON.stringify(arguments);
|
|
648
|
-
},
|
|
648
|
+
}, Ir = (
|
|
649
649
|
/** @class */
|
|
650
650
|
function() {
|
|
651
651
|
function e() {
|
|
@@ -659,7 +659,7 @@ var Ir = function() {
|
|
|
659
659
|
}()
|
|
660
660
|
), Lr = {
|
|
661
661
|
create: function() {
|
|
662
|
-
return new
|
|
662
|
+
return new Ir();
|
|
663
663
|
}
|
|
664
664
|
}, Ae = {
|
|
665
665
|
variadic: wr
|
|
@@ -677,40 +677,40 @@ var g;
|
|
|
677
677
|
(function(e) {
|
|
678
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";
|
|
679
679
|
})(g || (g = {}));
|
|
680
|
-
var
|
|
680
|
+
var x;
|
|
681
681
|
(function(e) {
|
|
682
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";
|
|
683
|
-
})(
|
|
683
|
+
})(x || (x = {}));
|
|
684
684
|
var J;
|
|
685
685
|
(function(e) {
|
|
686
686
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
687
687
|
})(J || (J = {}));
|
|
688
688
|
function Qe(e) {
|
|
689
|
-
return e.type ===
|
|
689
|
+
return e.type === x.literal;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
return e.type ===
|
|
691
|
+
function Cr(e) {
|
|
692
|
+
return e.type === x.argument;
|
|
693
693
|
}
|
|
694
694
|
function bt(e) {
|
|
695
|
-
return e.type ===
|
|
695
|
+
return e.type === x.number;
|
|
696
696
|
}
|
|
697
697
|
function yt(e) {
|
|
698
|
-
return e.type ===
|
|
698
|
+
return e.type === x.date;
|
|
699
699
|
}
|
|
700
700
|
function Et(e) {
|
|
701
|
-
return e.type ===
|
|
701
|
+
return e.type === x.time;
|
|
702
702
|
}
|
|
703
703
|
function _t(e) {
|
|
704
|
-
return e.type ===
|
|
704
|
+
return e.type === x.select;
|
|
705
705
|
}
|
|
706
706
|
function xt(e) {
|
|
707
|
-
return e.type ===
|
|
707
|
+
return e.type === x.plural;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
return e.type ===
|
|
709
|
+
function Mr(e) {
|
|
710
|
+
return e.type === x.pound;
|
|
711
711
|
}
|
|
712
712
|
function vt(e) {
|
|
713
|
-
return e.type ===
|
|
713
|
+
return e.type === x.tag;
|
|
714
714
|
}
|
|
715
715
|
function Ht(e) {
|
|
716
716
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
@@ -718,10 +718,10 @@ function Ht(e) {
|
|
|
718
718
|
function Me(e) {
|
|
719
719
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
720
720
|
}
|
|
721
|
-
var Tt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
722
|
-
function
|
|
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;
|
|
722
|
+
function Rr(e) {
|
|
723
723
|
var t = {};
|
|
724
|
-
return e.replace(
|
|
724
|
+
return e.replace($r, function(r) {
|
|
725
725
|
var n = r.length;
|
|
726
726
|
switch (r[0]) {
|
|
727
727
|
case "G":
|
|
@@ -810,21 +810,21 @@ function Dr(e) {
|
|
|
810
810
|
return "";
|
|
811
811
|
}), t;
|
|
812
812
|
}
|
|
813
|
-
var
|
|
814
|
-
return
|
|
813
|
+
var v = function() {
|
|
814
|
+
return v = Object.assign || function(t) {
|
|
815
815
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
816
816
|
r = arguments[n];
|
|
817
817
|
for (var s in r)
|
|
818
818
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
819
819
|
}
|
|
820
820
|
return t;
|
|
821
|
-
},
|
|
821
|
+
}, v.apply(this, arguments);
|
|
822
822
|
};
|
|
823
|
-
var
|
|
824
|
-
function
|
|
823
|
+
var Dr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
824
|
+
function Ur(e) {
|
|
825
825
|
if (e.length === 0)
|
|
826
826
|
throw new Error("Number skeleton cannot be empty");
|
|
827
|
-
for (var t = e.split(
|
|
827
|
+
for (var t = e.split(Dr).filter(function(c) {
|
|
828
828
|
return c.length > 0;
|
|
829
829
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
830
830
|
var s = i[n], a = s.split("/");
|
|
@@ -839,10 +839,10 @@ function Fr(e) {
|
|
|
839
839
|
}
|
|
840
840
|
return r;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Fr(e) {
|
|
843
843
|
return e.replace(/^(.*?)-/, "");
|
|
844
844
|
}
|
|
845
|
-
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
845
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bt = /^(@+)?(\+|#+)?[rs]?$/g, Gr = /(\*)(0+)|(#+)(0+)|(0+)/g, St = /^(0+)$/;
|
|
846
846
|
function qe(e) {
|
|
847
847
|
var t = {};
|
|
848
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) {
|
|
@@ -889,7 +889,7 @@ function At(e) {
|
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function jr(e) {
|
|
893
893
|
var t;
|
|
894
894
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
895
895
|
notation: "engineering"
|
|
@@ -907,7 +907,7 @@ function Ye(e) {
|
|
|
907
907
|
var t = {}, r = At(e);
|
|
908
908
|
return r || t;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function kr(e) {
|
|
911
911
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
912
912
|
var i = n[r];
|
|
913
913
|
switch (i.stem) {
|
|
@@ -931,7 +931,7 @@ function Vr(e) {
|
|
|
931
931
|
continue;
|
|
932
932
|
case "measure-unit":
|
|
933
933
|
case "unit":
|
|
934
|
-
t.style = "unit", t.unit =
|
|
934
|
+
t.style = "unit", t.unit = Fr(i.options[0]);
|
|
935
935
|
continue;
|
|
936
936
|
case "compact-short":
|
|
937
937
|
case "K":
|
|
@@ -942,13 +942,13 @@ function Vr(e) {
|
|
|
942
942
|
t.notation = "compact", t.compactDisplay = "long";
|
|
943
943
|
continue;
|
|
944
944
|
case "scientific":
|
|
945
|
-
t =
|
|
946
|
-
return
|
|
945
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
946
|
+
return v(v({}, l), Ye(u));
|
|
947
947
|
}, {}));
|
|
948
948
|
continue;
|
|
949
949
|
case "engineering":
|
|
950
|
-
t =
|
|
951
|
-
return
|
|
950
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
951
|
+
return v(v({}, l), Ye(u));
|
|
952
952
|
}, {}));
|
|
953
953
|
continue;
|
|
954
954
|
case "notation-simple":
|
|
@@ -993,13 +993,13 @@ function Vr(e) {
|
|
|
993
993
|
case "integer-width":
|
|
994
994
|
if (i.options.length > 1)
|
|
995
995
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
996
|
-
i.options[0].replace(
|
|
996
|
+
i.options[0].replace(Gr, function(l, u, h, f, c, d) {
|
|
997
997
|
if (u)
|
|
998
998
|
t.minimumIntegerDigits = h.length;
|
|
999
999
|
else {
|
|
1000
1000
|
if (f && c)
|
|
1001
1001
|
throw new Error("We currently do not support maximum integer digits");
|
|
1002
|
-
if (
|
|
1002
|
+
if (d)
|
|
1003
1003
|
throw new Error("We currently do not support exact integer digits");
|
|
1004
1004
|
}
|
|
1005
1005
|
return "";
|
|
@@ -1013,21 +1013,21 @@ function Vr(e) {
|
|
|
1013
1013
|
if (Je.test(i.stem)) {
|
|
1014
1014
|
if (i.options.length > 1)
|
|
1015
1015
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1016
|
-
i.stem.replace(Je, function(l, u, h, f, c,
|
|
1017
|
-
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), "";
|
|
1018
1018
|
});
|
|
1019
1019
|
var s = i.options[0];
|
|
1020
|
-
s === "w" ? t =
|
|
1020
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), qe(s)));
|
|
1021
1021
|
continue;
|
|
1022
1022
|
}
|
|
1023
1023
|
if (Bt.test(i.stem)) {
|
|
1024
|
-
t =
|
|
1024
|
+
t = v(v({}, t), qe(i.stem));
|
|
1025
1025
|
continue;
|
|
1026
1026
|
}
|
|
1027
1027
|
var a = At(i.stem);
|
|
1028
|
-
a && (t =
|
|
1029
|
-
var o =
|
|
1030
|
-
o && (t =
|
|
1028
|
+
a && (t = v(v({}, t), a));
|
|
1029
|
+
var o = jr(i.stem);
|
|
1030
|
+
o && (t = v(v({}, t), o));
|
|
1031
1031
|
}
|
|
1032
1032
|
return t;
|
|
1033
1033
|
}
|
|
@@ -2446,13 +2446,13 @@ var fe = {
|
|
|
2446
2446
|
"h"
|
|
2447
2447
|
]
|
|
2448
2448
|
};
|
|
2449
|
-
function
|
|
2449
|
+
function Vr(e, t) {
|
|
2450
2450
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2451
2451
|
var i = e.charAt(n);
|
|
2452
2452
|
if (i === "j") {
|
|
2453
2453
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2454
2454
|
s++, n++;
|
|
2455
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2455
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Xr(t);
|
|
2456
2456
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2457
2457
|
r += l;
|
|
2458
2458
|
for (; a-- > 0; )
|
|
@@ -2462,7 +2462,7 @@ function Xr(e, t) {
|
|
|
2462
2462
|
}
|
|
2463
2463
|
return r;
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function Xr(e) {
|
|
2466
2466
|
var t = e.hourCycle;
|
|
2467
2467
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2468
2468
|
e.hourCycles && // @ts-ignore
|
|
@@ -2484,20 +2484,20 @@ function zr(e) {
|
|
|
2484
2484
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2485
2485
|
return i[0];
|
|
2486
2486
|
}
|
|
2487
|
-
var Pe,
|
|
2487
|
+
var Pe, zr = new RegExp("^".concat(Tt.source, "*")), Wr = new RegExp("".concat(Tt.source, "*$"));
|
|
2488
2488
|
function b(e, t) {
|
|
2489
2489
|
return { start: e, end: t };
|
|
2490
2490
|
}
|
|
2491
|
-
var
|
|
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) {
|
|
2492
2492
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2493
2493
|
}, $e = !0;
|
|
2494
2494
|
try {
|
|
2495
|
-
var
|
|
2496
|
-
$e = ((Pe =
|
|
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";
|
|
2497
2497
|
} catch {
|
|
2498
2498
|
$e = !1;
|
|
2499
2499
|
}
|
|
2500
|
-
var Ke =
|
|
2500
|
+
var Ke = Zr ? (
|
|
2501
2501
|
// Native
|
|
2502
2502
|
function(t, r, n) {
|
|
2503
2503
|
return t.startsWith(r, n);
|
|
@@ -2507,7 +2507,7 @@ var Ke = Qr ? (
|
|
|
2507
2507
|
function(t, r, n) {
|
|
2508
2508
|
return t.slice(n, n + r.length) === r;
|
|
2509
2509
|
}
|
|
2510
|
-
), Re =
|
|
2510
|
+
), Re = Qr ? String.fromCodePoint : (
|
|
2511
2511
|
// IE11
|
|
2512
2512
|
function() {
|
|
2513
2513
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2521,7 +2521,7 @@ var Ke = Qr ? (
|
|
|
2521
2521
|
}
|
|
2522
2522
|
), et = (
|
|
2523
2523
|
// native
|
|
2524
|
-
|
|
2524
|
+
Jr ? Object.fromEntries : (
|
|
2525
2525
|
// Ponyfill
|
|
2526
2526
|
function(t) {
|
|
2527
2527
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2531,7 +2531,7 @@ var Ke = Qr ? (
|
|
|
2531
2531
|
return r;
|
|
2532
2532
|
}
|
|
2533
2533
|
)
|
|
2534
|
-
), Pt =
|
|
2534
|
+
), Pt = qr ? (
|
|
2535
2535
|
// Native
|
|
2536
2536
|
function(t, r) {
|
|
2537
2537
|
return t.codePointAt(r);
|
|
@@ -2545,7 +2545,7 @@ var Ke = Qr ? (
|
|
|
2545
2545
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2546
2546
|
}
|
|
2547
2547
|
}
|
|
2548
|
-
),
|
|
2548
|
+
), nn = Yr ? (
|
|
2549
2549
|
// Native
|
|
2550
2550
|
function(t) {
|
|
2551
2551
|
return t.trimStart();
|
|
@@ -2553,9 +2553,9 @@ var Ke = Qr ? (
|
|
|
2553
2553
|
) : (
|
|
2554
2554
|
// Ponyfill
|
|
2555
2555
|
function(t) {
|
|
2556
|
-
return t.replace(
|
|
2556
|
+
return t.replace(zr, "");
|
|
2557
2557
|
}
|
|
2558
|
-
),
|
|
2558
|
+
), sn = Kr ? (
|
|
2559
2559
|
// Native
|
|
2560
2560
|
function(t) {
|
|
2561
2561
|
return t.trimEnd();
|
|
@@ -2563,7 +2563,7 @@ var Ke = Qr ? (
|
|
|
2563
2563
|
) : (
|
|
2564
2564
|
// Ponyfill
|
|
2565
2565
|
function(t) {
|
|
2566
|
-
return t.replace(
|
|
2566
|
+
return t.replace(Wr, "");
|
|
2567
2567
|
}
|
|
2568
2568
|
);
|
|
2569
2569
|
function Ot(e, t) {
|
|
@@ -2582,13 +2582,13 @@ if ($e) {
|
|
|
2582
2582
|
De = function(t, r) {
|
|
2583
2583
|
for (var n = []; ; ) {
|
|
2584
2584
|
var i = Pt(t, r);
|
|
2585
|
-
if (i === void 0 ||
|
|
2585
|
+
if (i === void 0 || wt(i) || hn(i))
|
|
2586
2586
|
break;
|
|
2587
2587
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2588
2588
|
}
|
|
2589
2589
|
return Re.apply(void 0, n);
|
|
2590
2590
|
};
|
|
2591
|
-
var
|
|
2591
|
+
var on = (
|
|
2592
2592
|
/** @class */
|
|
2593
2593
|
function() {
|
|
2594
2594
|
function e(t, r) {
|
|
@@ -2612,7 +2612,7 @@ var an = (
|
|
|
2612
2612
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2613
2613
|
var o = this.clonePosition();
|
|
2614
2614
|
this.bump(), i.push({
|
|
2615
|
-
type:
|
|
2615
|
+
type: x.pound,
|
|
2616
2616
|
location: b(o, this.clonePosition())
|
|
2617
2617
|
});
|
|
2618
2618
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2640,7 +2640,7 @@ var an = (
|
|
|
2640
2640
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2641
2641
|
return {
|
|
2642
2642
|
val: {
|
|
2643
|
-
type:
|
|
2643
|
+
type: x.literal,
|
|
2644
2644
|
value: "<".concat(i, "/>"),
|
|
2645
2645
|
location: b(n, this.clonePosition())
|
|
2646
2646
|
},
|
|
@@ -2657,7 +2657,7 @@ var an = (
|
|
|
2657
2657
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2658
2658
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2659
2659
|
val: {
|
|
2660
|
-
type:
|
|
2660
|
+
type: x.tag,
|
|
2661
2661
|
value: i,
|
|
2662
2662
|
children: a,
|
|
2663
2663
|
location: b(n, this.clonePosition())
|
|
@@ -2670,7 +2670,7 @@ var an = (
|
|
|
2670
2670
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2671
2671
|
}, e.prototype.parseTagName = function() {
|
|
2672
2672
|
var t = this.offset();
|
|
2673
|
-
for (this.bump(); !this.isEOF() &&
|
|
2673
|
+
for (this.bump(); !this.isEOF() && un(this.char()); )
|
|
2674
2674
|
this.bump();
|
|
2675
2675
|
return this.message.slice(t, this.offset());
|
|
2676
2676
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2694,12 +2694,12 @@ var an = (
|
|
|
2694
2694
|
}
|
|
2695
2695
|
var l = b(n, this.clonePosition());
|
|
2696
2696
|
return {
|
|
2697
|
-
val: { type:
|
|
2697
|
+
val: { type: x.literal, value: i, location: l },
|
|
2698
2698
|
err: null
|
|
2699
2699
|
};
|
|
2700
2700
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2701
2701
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2702
|
-
!
|
|
2702
|
+
!an(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2703
2703
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2704
2704
|
if (this.isEOF() || this.char() !== 39)
|
|
2705
2705
|
return null;
|
|
@@ -2754,7 +2754,7 @@ var an = (
|
|
|
2754
2754
|
case 125:
|
|
2755
2755
|
return this.bump(), {
|
|
2756
2756
|
val: {
|
|
2757
|
-
type:
|
|
2757
|
+
type: x.argument,
|
|
2758
2758
|
// value does not include the opening and closing braces.
|
|
2759
2759
|
value: i,
|
|
2760
2760
|
location: b(n, this.clonePosition())
|
|
@@ -2786,44 +2786,44 @@ var an = (
|
|
|
2786
2786
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2787
2787
|
if (f.err)
|
|
2788
2788
|
return f;
|
|
2789
|
-
var c =
|
|
2789
|
+
var c = sn(f.val);
|
|
2790
2790
|
if (c.length === 0)
|
|
2791
2791
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2792
|
-
var
|
|
2793
|
-
u = { style: c, styleLocation:
|
|
2792
|
+
var d = b(h, this.clonePosition());
|
|
2793
|
+
u = { style: c, styleLocation: d };
|
|
2794
2794
|
}
|
|
2795
2795
|
var y = this.tryParseArgumentClose(i);
|
|
2796
2796
|
if (y.err)
|
|
2797
2797
|
return y;
|
|
2798
2798
|
var T = b(i, this.clonePosition());
|
|
2799
2799
|
if (u && Ke(u?.style, "::", 0)) {
|
|
2800
|
-
var
|
|
2800
|
+
var A = nn(u.style.slice(2));
|
|
2801
2801
|
if (o === "number") {
|
|
2802
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2802
|
+
var f = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
2803
2803
|
return f.err ? f : {
|
|
2804
|
-
val: { type:
|
|
2804
|
+
val: { type: x.number, value: n, location: T, style: f.val },
|
|
2805
2805
|
err: null
|
|
2806
2806
|
};
|
|
2807
2807
|
} else {
|
|
2808
|
-
if (
|
|
2808
|
+
if (A.length === 0)
|
|
2809
2809
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2810
|
-
var
|
|
2811
|
-
this.locale && (
|
|
2810
|
+
var S = A;
|
|
2811
|
+
this.locale && (S = Vr(A, this.locale));
|
|
2812
2812
|
var c = {
|
|
2813
2813
|
type: J.dateTime,
|
|
2814
|
-
pattern:
|
|
2814
|
+
pattern: S,
|
|
2815
2815
|
location: u.styleLocation,
|
|
2816
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2817
|
-
},
|
|
2816
|
+
parsedOptions: this.shouldParseSkeletons ? Rr(S) : {}
|
|
2817
|
+
}, L = o === "date" ? x.date : x.time;
|
|
2818
2818
|
return {
|
|
2819
|
-
val: { type:
|
|
2819
|
+
val: { type: L, value: n, location: T, style: c },
|
|
2820
2820
|
err: null
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
2823
2823
|
}
|
|
2824
2824
|
return {
|
|
2825
2825
|
val: {
|
|
2826
|
-
type: o === "number" ?
|
|
2826
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2827
2827
|
value: n,
|
|
2828
2828
|
location: T,
|
|
2829
2829
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2834,41 +2834,41 @@ var an = (
|
|
|
2834
2834
|
case "plural":
|
|
2835
2835
|
case "selectordinal":
|
|
2836
2836
|
case "select": {
|
|
2837
|
-
var
|
|
2837
|
+
var H = this.clonePosition();
|
|
2838
2838
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2839
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2839
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
|
|
2840
2840
|
this.bumpSpace();
|
|
2841
|
-
var
|
|
2842
|
-
if (o !== "select" &&
|
|
2841
|
+
var E = this.parseIdentifierIfPossible(), p = 0;
|
|
2842
|
+
if (o !== "select" && E.value === "offset") {
|
|
2843
2843
|
if (!this.bumpIf(":"))
|
|
2844
2844
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2845
2845
|
this.bumpSpace();
|
|
2846
2846
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2847
2847
|
if (f.err)
|
|
2848
2848
|
return f;
|
|
2849
|
-
this.bumpSpace(),
|
|
2849
|
+
this.bumpSpace(), E = this.parseIdentifierIfPossible(), p = f.val;
|
|
2850
2850
|
}
|
|
2851
|
-
var
|
|
2852
|
-
if (
|
|
2853
|
-
return
|
|
2851
|
+
var B = this.tryParsePluralOrSelectOptions(t, o, r, E);
|
|
2852
|
+
if (B.err)
|
|
2853
|
+
return B;
|
|
2854
2854
|
var y = this.tryParseArgumentClose(i);
|
|
2855
2855
|
if (y.err)
|
|
2856
2856
|
return y;
|
|
2857
2857
|
var le = b(i, this.clonePosition());
|
|
2858
2858
|
return o === "select" ? {
|
|
2859
2859
|
val: {
|
|
2860
|
-
type:
|
|
2860
|
+
type: x.select,
|
|
2861
2861
|
value: n,
|
|
2862
|
-
options: et(
|
|
2862
|
+
options: et(B.val),
|
|
2863
2863
|
location: le
|
|
2864
2864
|
},
|
|
2865
2865
|
err: null
|
|
2866
2866
|
} : {
|
|
2867
2867
|
val: {
|
|
2868
|
-
type:
|
|
2868
|
+
type: x.plural,
|
|
2869
2869
|
value: n,
|
|
2870
|
-
options: et(
|
|
2871
|
-
offset:
|
|
2870
|
+
options: et(B.val),
|
|
2871
|
+
offset: p,
|
|
2872
2872
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2873
2873
|
location: le
|
|
2874
2874
|
},
|
|
@@ -2918,7 +2918,7 @@ var an = (
|
|
|
2918
2918
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2919
2919
|
var n = [];
|
|
2920
2920
|
try {
|
|
2921
|
-
n =
|
|
2921
|
+
n = Ur(t);
|
|
2922
2922
|
} catch {
|
|
2923
2923
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2924
2924
|
}
|
|
@@ -2927,7 +2927,7 @@ var an = (
|
|
|
2927
2927
|
type: J.number,
|
|
2928
2928
|
tokens: n,
|
|
2929
2929
|
location: r,
|
|
2930
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2930
|
+
parsedOptions: this.shouldParseSkeletons ? kr(n) : {}
|
|
2931
2931
|
},
|
|
2932
2932
|
err: null
|
|
2933
2933
|
};
|
|
@@ -2946,20 +2946,20 @@ var an = (
|
|
|
2946
2946
|
if (l.has(u))
|
|
2947
2947
|
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2948
2948
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2949
|
-
var
|
|
2949
|
+
var d = this.clonePosition();
|
|
2950
2950
|
if (!this.bumpIf("{"))
|
|
2951
2951
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2952
2952
|
var y = this.parseMessage(t + 1, r, n);
|
|
2953
2953
|
if (y.err)
|
|
2954
2954
|
return y;
|
|
2955
|
-
var T = this.tryParseArgumentClose(
|
|
2955
|
+
var T = this.tryParseArgumentClose(d);
|
|
2956
2956
|
if (T.err)
|
|
2957
2957
|
return T;
|
|
2958
2958
|
o.push([
|
|
2959
2959
|
u,
|
|
2960
2960
|
{
|
|
2961
2961
|
value: y.val,
|
|
2962
|
-
location: b(
|
|
2962
|
+
location: b(d, this.clonePosition())
|
|
2963
2963
|
}
|
|
2964
2964
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
2965
2965
|
}
|
|
@@ -2975,7 +2975,7 @@ var an = (
|
|
|
2975
2975
|
break;
|
|
2976
2976
|
}
|
|
2977
2977
|
var l = b(i, this.clonePosition());
|
|
2978
|
-
return s ? (a *= n,
|
|
2978
|
+
return s ? (a *= n, tn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2979
2979
|
}, e.prototype.offset = function() {
|
|
2980
2980
|
return this.position.offset;
|
|
2981
2981
|
}, e.prototype.isEOF = function() {
|
|
@@ -3031,7 +3031,7 @@ var an = (
|
|
|
3031
3031
|
break;
|
|
3032
3032
|
}
|
|
3033
3033
|
}, e.prototype.bumpSpace = function() {
|
|
3034
|
-
for (; !this.isEOF() &&
|
|
3034
|
+
for (; !this.isEOF() && wt(this.char()); )
|
|
3035
3035
|
this.bump();
|
|
3036
3036
|
}, e.prototype.peek = function() {
|
|
3037
3037
|
if (this.isEOF())
|
|
@@ -3044,16 +3044,16 @@ var an = (
|
|
|
3044
3044
|
function Ue(e) {
|
|
3045
3045
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3046
3046
|
}
|
|
3047
|
-
function
|
|
3047
|
+
function an(e) {
|
|
3048
3048
|
return Ue(e) || e === 47;
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function un(e) {
|
|
3051
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;
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3053
|
+
function wt(e) {
|
|
3054
3054
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3056
|
+
function hn(e) {
|
|
3057
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;
|
|
3058
3058
|
}
|
|
3059
3059
|
function Fe(e) {
|
|
@@ -3065,9 +3065,9 @@ function Fe(e) {
|
|
|
3065
3065
|
bt(t) && Ht(t.style) || (yt(t) || Et(t)) && Me(t.style) ? delete t.style.location : vt(t) && Fe(t.children);
|
|
3066
3066
|
});
|
|
3067
3067
|
}
|
|
3068
|
-
function
|
|
3068
|
+
function ln(e, t) {
|
|
3069
3069
|
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3070
|
-
var r = new
|
|
3070
|
+
var r = new on(e, t).parse();
|
|
3071
3071
|
if (r.err) {
|
|
3072
3072
|
var n = SyntaxError(g[r.err.kind]);
|
|
3073
3073
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3099,7 +3099,7 @@ var xe = (
|
|
|
3099
3099
|
}
|
|
3100
3100
|
return t;
|
|
3101
3101
|
}(xe)
|
|
3102
|
-
),
|
|
3102
|
+
), fn = (
|
|
3103
3103
|
/** @class */
|
|
3104
3104
|
function(e) {
|
|
3105
3105
|
_e(t, e);
|
|
@@ -3108,7 +3108,7 @@ var xe = (
|
|
|
3108
3108
|
}
|
|
3109
3109
|
return t;
|
|
3110
3110
|
}(xe)
|
|
3111
|
-
),
|
|
3111
|
+
), cn = (
|
|
3112
3112
|
/** @class */
|
|
3113
3113
|
function(e) {
|
|
3114
3114
|
_e(t, e);
|
|
@@ -3117,24 +3117,24 @@ var xe = (
|
|
|
3117
3117
|
}
|
|
3118
3118
|
return t;
|
|
3119
3119
|
}(xe)
|
|
3120
|
-
),
|
|
3120
|
+
), P;
|
|
3121
3121
|
(function(e) {
|
|
3122
3122
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3123
|
-
})(
|
|
3124
|
-
function
|
|
3123
|
+
})(P || (P = {}));
|
|
3124
|
+
function mn(e) {
|
|
3125
3125
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3126
3126
|
var n = t[t.length - 1];
|
|
3127
|
-
return !n || n.type !==
|
|
3127
|
+
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3128
3128
|
}, []);
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3130
|
+
function dn(e) {
|
|
3131
3131
|
return typeof e == "function";
|
|
3132
3132
|
}
|
|
3133
3133
|
function me(e, t, r, n, i, s, a) {
|
|
3134
3134
|
if (e.length === 1 && Qe(e[0]))
|
|
3135
3135
|
return [
|
|
3136
3136
|
{
|
|
3137
|
-
type:
|
|
3137
|
+
type: P.literal,
|
|
3138
3138
|
value: e[0].value
|
|
3139
3139
|
}
|
|
3140
3140
|
];
|
|
@@ -3142,100 +3142,100 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3142
3142
|
var h = u[l];
|
|
3143
3143
|
if (Qe(h)) {
|
|
3144
3144
|
o.push({
|
|
3145
|
-
type:
|
|
3145
|
+
type: P.literal,
|
|
3146
3146
|
value: h.value
|
|
3147
3147
|
});
|
|
3148
3148
|
continue;
|
|
3149
3149
|
}
|
|
3150
|
-
if (
|
|
3150
|
+
if (Mr(h)) {
|
|
3151
3151
|
typeof s == "number" && o.push({
|
|
3152
|
-
type:
|
|
3152
|
+
type: P.literal,
|
|
3153
3153
|
value: r.getNumberFormat(t).format(s)
|
|
3154
3154
|
});
|
|
3155
3155
|
continue;
|
|
3156
3156
|
}
|
|
3157
3157
|
var f = h.value;
|
|
3158
3158
|
if (!(i && f in i))
|
|
3159
|
-
throw new
|
|
3159
|
+
throw new cn(f, a);
|
|
3160
3160
|
var c = i[f];
|
|
3161
|
-
if (
|
|
3161
|
+
if (Cr(h)) {
|
|
3162
3162
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3163
|
-
type: typeof c == "string" ?
|
|
3163
|
+
type: typeof c == "string" ? P.literal : P.object,
|
|
3164
3164
|
value: c
|
|
3165
3165
|
});
|
|
3166
3166
|
continue;
|
|
3167
3167
|
}
|
|
3168
3168
|
if (yt(h)) {
|
|
3169
|
-
var
|
|
3169
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3170
3170
|
o.push({
|
|
3171
|
-
type:
|
|
3172
|
-
value: r.getDateTimeFormat(t,
|
|
3171
|
+
type: P.literal,
|
|
3172
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3173
3173
|
});
|
|
3174
3174
|
continue;
|
|
3175
3175
|
}
|
|
3176
3176
|
if (Et(h)) {
|
|
3177
|
-
var
|
|
3177
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3178
3178
|
o.push({
|
|
3179
|
-
type:
|
|
3180
|
-
value: r.getDateTimeFormat(t,
|
|
3179
|
+
type: P.literal,
|
|
3180
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3181
3181
|
});
|
|
3182
3182
|
continue;
|
|
3183
3183
|
}
|
|
3184
3184
|
if (bt(h)) {
|
|
3185
|
-
var
|
|
3186
|
-
|
|
3187
|
-
type:
|
|
3188
|
-
value: r.getNumberFormat(t,
|
|
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)
|
|
3189
3189
|
});
|
|
3190
3190
|
continue;
|
|
3191
3191
|
}
|
|
3192
3192
|
if (vt(h)) {
|
|
3193
|
-
var y = h.children, T = h.value,
|
|
3194
|
-
if (!
|
|
3195
|
-
throw new
|
|
3196
|
-
var
|
|
3197
|
-
return
|
|
3193
|
+
var y = h.children, T = h.value, A = i[T];
|
|
3194
|
+
if (!dn(A))
|
|
3195
|
+
throw new fn(T, "function", a);
|
|
3196
|
+
var S = me(y, t, r, n, i, s), L = A(S.map(function(p) {
|
|
3197
|
+
return p.value;
|
|
3198
3198
|
}));
|
|
3199
|
-
Array.isArray(
|
|
3199
|
+
Array.isArray(L) || (L = [L]), o.push.apply(o, L.map(function(p) {
|
|
3200
3200
|
return {
|
|
3201
|
-
type: typeof
|
|
3202
|
-
value:
|
|
3201
|
+
type: typeof p == "string" ? P.literal : P.object,
|
|
3202
|
+
value: p
|
|
3203
3203
|
};
|
|
3204
3204
|
}));
|
|
3205
3205
|
}
|
|
3206
3206
|
if (_t(h)) {
|
|
3207
|
-
var
|
|
3208
|
-
if (!
|
|
3207
|
+
var H = h.options[c] || h.options.other;
|
|
3208
|
+
if (!H)
|
|
3209
3209
|
throw new rt(h.value, c, Object.keys(h.options), a);
|
|
3210
|
-
o.push.apply(o, me(
|
|
3210
|
+
o.push.apply(o, me(H.value, t, r, n, i));
|
|
3211
3211
|
continue;
|
|
3212
3212
|
}
|
|
3213
3213
|
if (xt(h)) {
|
|
3214
|
-
var
|
|
3215
|
-
if (!
|
|
3214
|
+
var H = h.options["=".concat(c)];
|
|
3215
|
+
if (!H) {
|
|
3216
3216
|
if (!Intl.PluralRules)
|
|
3217
3217
|
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3218
3218
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3219
3219
|
`, q.MISSING_INTL_API, a);
|
|
3220
|
-
var
|
|
3221
|
-
|
|
3220
|
+
var E = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3221
|
+
H = h.options[E] || h.options.other;
|
|
3222
3222
|
}
|
|
3223
|
-
if (!
|
|
3223
|
+
if (!H)
|
|
3224
3224
|
throw new rt(h.value, c, Object.keys(h.options), a);
|
|
3225
|
-
o.push.apply(o, me(
|
|
3225
|
+
o.push.apply(o, me(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3226
3226
|
continue;
|
|
3227
3227
|
}
|
|
3228
3228
|
}
|
|
3229
|
-
return
|
|
3229
|
+
return mn(o);
|
|
3230
3230
|
}
|
|
3231
|
-
function
|
|
3231
|
+
function pn(e, t) {
|
|
3232
3232
|
return t ? D(D(D({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3233
3233
|
return r[n] = D(D({}, e[n]), t[n] || {}), r;
|
|
3234
3234
|
}, {})) : e;
|
|
3235
3235
|
}
|
|
3236
|
-
function
|
|
3236
|
+
function gn(e, t) {
|
|
3237
3237
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3238
|
-
return r[n] =
|
|
3238
|
+
return r[n] = pn(e[n], t[n]), r;
|
|
3239
3239
|
}, D({}, e)) : e;
|
|
3240
3240
|
}
|
|
3241
3241
|
function Oe(e) {
|
|
@@ -3252,7 +3252,7 @@ function Oe(e) {
|
|
|
3252
3252
|
}
|
|
3253
3253
|
};
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3255
|
+
function bn(e) {
|
|
3256
3256
|
return e === void 0 && (e = {
|
|
3257
3257
|
number: {},
|
|
3258
3258
|
dateTime: {},
|
|
@@ -3284,7 +3284,7 @@ function yn(e) {
|
|
|
3284
3284
|
})
|
|
3285
3285
|
};
|
|
3286
3286
|
}
|
|
3287
|
-
var
|
|
3287
|
+
var yn = (
|
|
3288
3288
|
/** @class */
|
|
3289
3289
|
function() {
|
|
3290
3290
|
function e(t, r, n, i) {
|
|
@@ -3299,7 +3299,7 @@ var En = (
|
|
|
3299
3299
|
if (u.length === 1)
|
|
3300
3300
|
return u[0].value;
|
|
3301
3301
|
var h = u.reduce(function(f, c) {
|
|
3302
|
-
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;
|
|
3303
3303
|
}, []);
|
|
3304
3304
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3305
3305
|
}, this.formatToParts = function(l) {
|
|
@@ -3316,13 +3316,13 @@ var En = (
|
|
|
3316
3316
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3317
3317
|
var a = i || {};
|
|
3318
3318
|
a.formatters;
|
|
3319
|
-
var o =
|
|
3319
|
+
var o = Sr(a, ["formatters"]);
|
|
3320
3320
|
this.ast = e.__parse(t, D(D({}, o), { locale: this.resolvedLocale }));
|
|
3321
3321
|
} else
|
|
3322
3322
|
this.ast = t;
|
|
3323
3323
|
if (!Array.isArray(this.ast))
|
|
3324
3324
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3325
|
-
this.formats =
|
|
3325
|
+
this.formats = gn(e.formats, n), this.formatters = i && i.formatters || bn(this.formatterCache);
|
|
3326
3326
|
}
|
|
3327
3327
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3328
3328
|
get: function() {
|
|
@@ -3335,7 +3335,7 @@ var En = (
|
|
|
3335
3335
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3336
3336
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3337
3337
|
}
|
|
3338
|
-
}, e.__parse =
|
|
3338
|
+
}, e.__parse = ln, e.formats = {
|
|
3339
3339
|
number: {
|
|
3340
3340
|
integer: {
|
|
3341
3341
|
maximumFractionDigits: 0
|
|
@@ -3396,7 +3396,7 @@ var En = (
|
|
|
3396
3396
|
}, e;
|
|
3397
3397
|
}()
|
|
3398
3398
|
);
|
|
3399
|
-
function
|
|
3399
|
+
function En(e, t) {
|
|
3400
3400
|
if (t == null)
|
|
3401
3401
|
return;
|
|
3402
3402
|
if (t in e)
|
|
@@ -3417,33 +3417,33 @@ function _n(e, t) {
|
|
|
3417
3417
|
n = void 0;
|
|
3418
3418
|
return n;
|
|
3419
3419
|
}
|
|
3420
|
-
const F = {},
|
|
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) => {
|
|
3421
3421
|
if (t == null)
|
|
3422
3422
|
return;
|
|
3423
3423
|
if (t in F && e in F[t])
|
|
3424
3424
|
return F[t][e];
|
|
3425
3425
|
const r = ve(t);
|
|
3426
3426
|
for (let n = 0; n < r.length; n++) {
|
|
3427
|
-
const i = r[n], s =
|
|
3427
|
+
const i = r[n], s = vn(i, e);
|
|
3428
3428
|
if (s)
|
|
3429
|
-
return
|
|
3429
|
+
return _n(e, t, s);
|
|
3430
3430
|
}
|
|
3431
3431
|
};
|
|
3432
3432
|
let ke;
|
|
3433
3433
|
const ue = Ee({});
|
|
3434
|
-
function
|
|
3434
|
+
function xn(e) {
|
|
3435
3435
|
return ke[e] || null;
|
|
3436
3436
|
}
|
|
3437
3437
|
function It(e) {
|
|
3438
3438
|
return e in ke;
|
|
3439
3439
|
}
|
|
3440
|
-
function
|
|
3440
|
+
function vn(e, t) {
|
|
3441
3441
|
if (!It(e))
|
|
3442
3442
|
return null;
|
|
3443
|
-
const r =
|
|
3444
|
-
return
|
|
3443
|
+
const r = xn(e);
|
|
3444
|
+
return En(r, t);
|
|
3445
3445
|
}
|
|
3446
|
-
function
|
|
3446
|
+
function Hn(e) {
|
|
3447
3447
|
if (e == null)
|
|
3448
3448
|
return;
|
|
3449
3449
|
const t = ve(e);
|
|
@@ -3453,8 +3453,8 @@ function Tn(e) {
|
|
|
3453
3453
|
return n;
|
|
3454
3454
|
}
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3457
|
-
delete F[e], ue.update((r) => (r[e] =
|
|
3456
|
+
function Lt(e, ...t) {
|
|
3457
|
+
delete F[e], ue.update((r) => (r[e] = Br.all([r[e] || {}, ...t]), r));
|
|
3458
3458
|
}
|
|
3459
3459
|
K(
|
|
3460
3460
|
[ue],
|
|
@@ -3462,15 +3462,15 @@ K(
|
|
|
3462
3462
|
);
|
|
3463
3463
|
ue.subscribe((e) => ke = e);
|
|
3464
3464
|
const de = {};
|
|
3465
|
-
function
|
|
3465
|
+
function Tn(e, t) {
|
|
3466
3466
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3467
3467
|
}
|
|
3468
|
-
function
|
|
3468
|
+
function Ct(e) {
|
|
3469
3469
|
return de[e];
|
|
3470
3470
|
}
|
|
3471
|
-
function
|
|
3471
|
+
function Bn(e) {
|
|
3472
3472
|
return ve(e).map((t) => {
|
|
3473
|
-
const r =
|
|
3473
|
+
const r = Ct(t);
|
|
3474
3474
|
return [t, r ? [...r] : []];
|
|
3475
3475
|
}).filter(([, t]) => t.length > 0);
|
|
3476
3476
|
}
|
|
@@ -3478,23 +3478,23 @@ function Ge(e) {
|
|
|
3478
3478
|
return e == null ? !1 : ve(e).some(
|
|
3479
3479
|
(t) => {
|
|
3480
3480
|
var r;
|
|
3481
|
-
return (r =
|
|
3481
|
+
return (r = Ct(t)) == null ? void 0 : r.size;
|
|
3482
3482
|
}
|
|
3483
3483
|
);
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function Sn(e, t) {
|
|
3486
3486
|
return Promise.all(
|
|
3487
|
-
t.map((n) => (
|
|
3488
|
-
).then((n) =>
|
|
3487
|
+
t.map((n) => (Tn(e, n), n().then((i) => i.default || i)))
|
|
3488
|
+
).then((n) => Lt(e, ...n));
|
|
3489
3489
|
}
|
|
3490
3490
|
const te = {};
|
|
3491
3491
|
function Mt(e) {
|
|
3492
3492
|
if (!Ge(e))
|
|
3493
3493
|
return e in te ? te[e] : Promise.resolve();
|
|
3494
|
-
const t =
|
|
3494
|
+
const t = Bn(e);
|
|
3495
3495
|
return te[e] = Promise.all(
|
|
3496
3496
|
t.map(
|
|
3497
|
-
([r, n]) =>
|
|
3497
|
+
([r, n]) => Sn(r, n)
|
|
3498
3498
|
)
|
|
3499
3499
|
).then(() => {
|
|
3500
3500
|
if (Ge(e))
|
|
@@ -3502,7 +3502,7 @@ function Mt(e) {
|
|
|
3502
3502
|
delete te[e];
|
|
3503
3503
|
}), te[e];
|
|
3504
3504
|
}
|
|
3505
|
-
const
|
|
3505
|
+
const An = {
|
|
3506
3506
|
number: {
|
|
3507
3507
|
scientific: { notation: "scientific" },
|
|
3508
3508
|
engineering: { notation: "engineering" },
|
|
@@ -3531,26 +3531,26 @@ const Pn = {
|
|
|
3531
3531
|
timeZoneName: "short"
|
|
3532
3532
|
}
|
|
3533
3533
|
}
|
|
3534
|
-
},
|
|
3534
|
+
}, Pn = {
|
|
3535
3535
|
fallbackLocale: null,
|
|
3536
3536
|
loadingDelay: 200,
|
|
3537
|
-
formats:
|
|
3537
|
+
formats: An,
|
|
3538
3538
|
warnOnMissingMessages: !0,
|
|
3539
3539
|
handleMissingMessage: void 0,
|
|
3540
3540
|
ignoreTag: !0
|
|
3541
|
-
},
|
|
3541
|
+
}, On = Pn;
|
|
3542
3542
|
function Y() {
|
|
3543
|
-
return
|
|
3543
|
+
return On;
|
|
3544
3544
|
}
|
|
3545
|
-
const
|
|
3546
|
-
var wn = Object.defineProperty,
|
|
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
3547
|
for (var r in t || (t = {}))
|
|
3548
3548
|
Ln.call(t, r) && it(e, r, t[r]);
|
|
3549
3549
|
if (nt)
|
|
3550
3550
|
for (var r of nt(t))
|
|
3551
|
-
|
|
3551
|
+
Cn.call(t, r) && it(e, r, t[r]);
|
|
3552
3552
|
return e;
|
|
3553
|
-
},
|
|
3553
|
+
}, $n = (e, t) => Nn(e, In(t));
|
|
3554
3554
|
let je;
|
|
3555
3555
|
const ge = Ee(null);
|
|
3556
3556
|
function st(e) {
|
|
@@ -3566,22 +3566,22 @@ function V() {
|
|
|
3566
3566
|
ge.subscribe((e) => {
|
|
3567
3567
|
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3568
3568
|
});
|
|
3569
|
-
const
|
|
3570
|
-
if (e &&
|
|
3569
|
+
const Rn = (e) => {
|
|
3570
|
+
if (e && Hn(e) && Ge(e)) {
|
|
3571
3571
|
const { loadingDelay: t } = Y();
|
|
3572
3572
|
let r;
|
|
3573
3573
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
3574
|
-
() =>
|
|
3574
|
+
() => we.set(!0),
|
|
3575
3575
|
t
|
|
3576
|
-
) :
|
|
3576
|
+
) : we.set(!0), Mt(e).then(() => {
|
|
3577
3577
|
ge.set(e);
|
|
3578
3578
|
}).finally(() => {
|
|
3579
|
-
clearTimeout(r),
|
|
3579
|
+
clearTimeout(r), we.set(!1);
|
|
3580
3580
|
});
|
|
3581
3581
|
}
|
|
3582
3582
|
return ge.set(e);
|
|
3583
|
-
}, he =
|
|
3584
|
-
set:
|
|
3583
|
+
}, he = $n(Mn({}, ge), {
|
|
3584
|
+
set: Rn
|
|
3585
3585
|
}), He = (e) => {
|
|
3586
3586
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3587
3587
|
return (n) => {
|
|
@@ -3589,7 +3589,7 @@ const Dn = (e) => {
|
|
|
3589
3589
|
return i in t ? t[i] : t[i] = e(n);
|
|
3590
3590
|
};
|
|
3591
3591
|
};
|
|
3592
|
-
var
|
|
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) => {
|
|
3593
3593
|
for (var r in t || (t = {}))
|
|
3594
3594
|
$t.call(t, r) && ot(e, r, t[r]);
|
|
3595
3595
|
if (be)
|
|
@@ -3610,21 +3610,21 @@ const oe = (e, t) => {
|
|
|
3610
3610
|
if (e in r && t in r[e])
|
|
3611
3611
|
return r[e][t];
|
|
3612
3612
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3613
|
-
},
|
|
3613
|
+
}, Un = He(
|
|
3614
3614
|
(e) => {
|
|
3615
3615
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3616
3616
|
if (r == null)
|
|
3617
3617
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3618
3618
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3619
3619
|
}
|
|
3620
|
-
),
|
|
3620
|
+
), Fn = He(
|
|
3621
3621
|
(e) => {
|
|
3622
3622
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3623
3623
|
if (r == null)
|
|
3624
3624
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3625
3625
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3626
3626
|
}
|
|
3627
|
-
),
|
|
3627
|
+
), Gn = He(
|
|
3628
3628
|
(e) => {
|
|
3629
3629
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3630
3630
|
if (r == null)
|
|
@@ -3633,33 +3633,33 @@ const oe = (e, t) => {
|
|
|
3633
3633
|
);
|
|
3634
3634
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3635
3635
|
}
|
|
3636
|
-
),
|
|
3636
|
+
), jn = (e = {}) => {
|
|
3637
3637
|
var t = e, {
|
|
3638
3638
|
locale: r = V()
|
|
3639
3639
|
} = t, n = ee(t, [
|
|
3640
3640
|
"locale"
|
|
3641
3641
|
]);
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3642
|
+
return Un(Ve({ locale: r }, n));
|
|
3643
|
+
}, kn = (e = {}) => {
|
|
3644
3644
|
var t = e, {
|
|
3645
3645
|
locale: r = V()
|
|
3646
3646
|
} = t, n = ee(t, [
|
|
3647
3647
|
"locale"
|
|
3648
3648
|
]);
|
|
3649
|
-
return
|
|
3650
|
-
},
|
|
3649
|
+
return Fn(Ve({ locale: r }, n));
|
|
3650
|
+
}, Vn = (e = {}) => {
|
|
3651
3651
|
var t = e, {
|
|
3652
3652
|
locale: r = V()
|
|
3653
3653
|
} = t, n = ee(t, [
|
|
3654
3654
|
"locale"
|
|
3655
3655
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3656
|
+
return Gn(Ve({ locale: r }, n));
|
|
3657
|
+
}, Xn = He(
|
|
3658
3658
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3659
|
-
(e, t = V()) => new
|
|
3659
|
+
(e, t = V()) => new yn(e, t, Y().formats, {
|
|
3660
3660
|
ignoreTag: Y().ignoreTag
|
|
3661
3661
|
})
|
|
3662
|
-
),
|
|
3662
|
+
), zn = (e, t = {}) => {
|
|
3663
3663
|
var r, n, i, s;
|
|
3664
3664
|
let a = t;
|
|
3665
3665
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3672,7 +3672,7 @@ const oe = (e, t) => {
|
|
|
3672
3672
|
throw new Error(
|
|
3673
3673
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3674
3674
|
);
|
|
3675
|
-
let h =
|
|
3675
|
+
let h = Nt(e, l);
|
|
3676
3676
|
if (!h)
|
|
3677
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;
|
|
3678
3678
|
else if (typeof h != "string")
|
|
@@ -3683,7 +3683,7 @@ const oe = (e, t) => {
|
|
|
3683
3683
|
return h;
|
|
3684
3684
|
let f = h;
|
|
3685
3685
|
try {
|
|
3686
|
-
f =
|
|
3686
|
+
f = Xn(h, l).format(o);
|
|
3687
3687
|
} catch (c) {
|
|
3688
3688
|
c instanceof Error && console.warn(
|
|
3689
3689
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3691,13 +3691,13 @@ const oe = (e, t) => {
|
|
|
3691
3691
|
);
|
|
3692
3692
|
}
|
|
3693
3693
|
return f;
|
|
3694
|
-
},
|
|
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);
|
|
3695
3696
|
K([he], () => Zn);
|
|
3696
3697
|
K([he], () => Qn);
|
|
3697
|
-
K([he], () => Jn);
|
|
3698
|
-
K([he, ue], () => qn);
|
|
3698
|
+
K([he, ue], () => Jn);
|
|
3699
3699
|
function at(e, t) {
|
|
3700
|
-
|
|
3700
|
+
Lt(e, t);
|
|
3701
3701
|
}
|
|
3702
3702
|
const ut = {
|
|
3703
3703
|
en: {
|
|
@@ -3789,8 +3789,31 @@ const ut = {
|
|
|
3789
3789
|
days: "days"
|
|
3790
3790
|
}
|
|
3791
3791
|
};
|
|
3792
|
-
function
|
|
3793
|
-
|
|
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) {
|
|
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)}");
|
|
3794
3817
|
}
|
|
3795
3818
|
function ht(e) {
|
|
3796
3819
|
let t, r, n = (
|
|
@@ -3805,72 +3828,72 @@ function ht(e) {
|
|
|
3805
3828
|
/*enddate*/
|
|
3806
3829
|
e[1]
|
|
3807
3830
|
) + ""
|
|
3808
|
-
), l, u, h, f, c,
|
|
3809
|
-
function T(
|
|
3831
|
+
), l, u, h, f, c, d, y;
|
|
3832
|
+
function T(p, B) {
|
|
3810
3833
|
return (
|
|
3811
3834
|
/*status*/
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3835
|
+
p[2] == "Finished" || /*status*/
|
|
3836
|
+
p[2] == "Closing" || /*status*/
|
|
3837
|
+
p[2] == "Closed" ? ii : (
|
|
3815
3838
|
/*tournamentUntilStartDays*/
|
|
3816
|
-
|
|
3839
|
+
p[5] > 0 ? ni : ri
|
|
3817
3840
|
)
|
|
3818
3841
|
);
|
|
3819
3842
|
}
|
|
3820
|
-
let
|
|
3821
|
-
function
|
|
3843
|
+
let A = T(e), S = A(e);
|
|
3844
|
+
function L(p, B) {
|
|
3822
3845
|
if (
|
|
3823
3846
|
/*status*/
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3847
|
+
p[2] == "Finished" || /*status*/
|
|
3848
|
+
p[2] == "Closing" || /*status*/
|
|
3849
|
+
p[2] == "Closed"
|
|
3827
3850
|
)
|
|
3828
|
-
return
|
|
3851
|
+
return ai;
|
|
3829
3852
|
if (
|
|
3830
3853
|
/*tournamentUntilStartDays*/
|
|
3831
|
-
|
|
3854
|
+
p[5] > 0
|
|
3832
3855
|
)
|
|
3833
|
-
return
|
|
3856
|
+
return oi;
|
|
3834
3857
|
if (
|
|
3835
3858
|
/*tournamentLeftDays*/
|
|
3836
|
-
|
|
3859
|
+
p[4] > 0
|
|
3837
3860
|
)
|
|
3838
|
-
return
|
|
3861
|
+
return si;
|
|
3839
3862
|
}
|
|
3840
|
-
let
|
|
3863
|
+
let H = L(e), E = H && H(e);
|
|
3841
3864
|
return {
|
|
3842
3865
|
c() {
|
|
3843
|
-
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");
|
|
3844
3867
|
},
|
|
3845
|
-
m(
|
|
3846
|
-
|
|
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(
|
|
3847
3870
|
/*getDuration*/
|
|
3848
3871
|
e[9].call(null, h)
|
|
3849
|
-
),
|
|
3872
|
+
), d = !0);
|
|
3850
3873
|
},
|
|
3851
|
-
p(
|
|
3852
|
-
|
|
3874
|
+
p(p, B) {
|
|
3875
|
+
B & /*startdate*/
|
|
3853
3876
|
1 && n !== (n = /*formatDate*/
|
|
3854
|
-
|
|
3877
|
+
p[10](
|
|
3855
3878
|
/*startdate*/
|
|
3856
|
-
|
|
3857
|
-
) + "") && k(i, n),
|
|
3879
|
+
p[0]
|
|
3880
|
+
) + "") && k(i, n), B & /*enddate*/
|
|
3858
3881
|
2 && o !== (o = /*formatDate*/
|
|
3859
|
-
|
|
3882
|
+
p[10](
|
|
3860
3883
|
/*enddate*/
|
|
3861
|
-
|
|
3862
|
-
) + "") && k(l, o),
|
|
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)));
|
|
3863
3886
|
},
|
|
3864
|
-
d(
|
|
3865
|
-
|
|
3887
|
+
d(p) {
|
|
3888
|
+
p && (C(t), C(u), C(h)), S.d(), E && E.d(), d = !1, y();
|
|
3866
3889
|
}
|
|
3867
3890
|
};
|
|
3868
3891
|
}
|
|
3869
|
-
function
|
|
3892
|
+
function ri(e) {
|
|
3870
3893
|
let t;
|
|
3871
3894
|
return {
|
|
3872
3895
|
c() {
|
|
3873
|
-
t =
|
|
3896
|
+
t = N("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"), ze(
|
|
3874
3897
|
t,
|
|
3875
3898
|
"width",
|
|
3876
3899
|
/*getProgress*/
|
|
@@ -3878,7 +3901,7 @@ function ei(e) {
|
|
|
3878
3901
|
);
|
|
3879
3902
|
},
|
|
3880
3903
|
m(r, n) {
|
|
3881
|
-
|
|
3904
|
+
M(r, t, n);
|
|
3882
3905
|
},
|
|
3883
3906
|
p(r, n) {
|
|
3884
3907
|
n & /*getProgress*/
|
|
@@ -3890,54 +3913,54 @@ function ei(e) {
|
|
|
3890
3913
|
);
|
|
3891
3914
|
},
|
|
3892
3915
|
d(r) {
|
|
3893
|
-
r &&
|
|
3916
|
+
r && C(t);
|
|
3894
3917
|
}
|
|
3895
3918
|
};
|
|
3896
3919
|
}
|
|
3897
|
-
function
|
|
3920
|
+
function ni(e) {
|
|
3898
3921
|
let t;
|
|
3899
3922
|
return {
|
|
3900
3923
|
c() {
|
|
3901
|
-
t =
|
|
3924
|
+
t = N("div"), _(t, "class", "ProgressBarFillStarting"), _(t, "part", "ProgressBarFillStarting");
|
|
3902
3925
|
},
|
|
3903
3926
|
m(r, n) {
|
|
3904
|
-
|
|
3927
|
+
M(r, t, n);
|
|
3905
3928
|
},
|
|
3906
3929
|
p: I,
|
|
3907
3930
|
d(r) {
|
|
3908
|
-
r &&
|
|
3931
|
+
r && C(t);
|
|
3909
3932
|
}
|
|
3910
3933
|
};
|
|
3911
3934
|
}
|
|
3912
|
-
function
|
|
3935
|
+
function ii(e) {
|
|
3913
3936
|
let t;
|
|
3914
3937
|
return {
|
|
3915
3938
|
c() {
|
|
3916
|
-
t =
|
|
3939
|
+
t = N("div"), _(t, "class", "ProgressBarFillEnd"), _(t, "part", "ProgressBarFillEnd");
|
|
3917
3940
|
},
|
|
3918
3941
|
m(r, n) {
|
|
3919
|
-
|
|
3942
|
+
M(r, t, n);
|
|
3920
3943
|
},
|
|
3921
3944
|
p: I,
|
|
3922
3945
|
d(r) {
|
|
3923
|
-
r &&
|
|
3946
|
+
r && C(t);
|
|
3924
3947
|
}
|
|
3925
3948
|
};
|
|
3926
3949
|
}
|
|
3927
|
-
function
|
|
3950
|
+
function si(e) {
|
|
3928
3951
|
let t, r, n, i = (
|
|
3929
3952
|
/*$_*/
|
|
3930
3953
|
e[8]("left") + ""
|
|
3931
3954
|
), s;
|
|
3932
3955
|
return {
|
|
3933
3956
|
c() {
|
|
3934
|
-
t =
|
|
3957
|
+
t = N("div"), r = G(
|
|
3935
3958
|
/*showRemain*/
|
|
3936
3959
|
e[6]
|
|
3937
|
-
), n = re(), s = G(i),
|
|
3960
|
+
), n = re(), s = G(i), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
3938
3961
|
},
|
|
3939
3962
|
m(a, o) {
|
|
3940
|
-
|
|
3963
|
+
M(a, t, o), O(t, r), O(t, n), O(t, s);
|
|
3941
3964
|
},
|
|
3942
3965
|
p(a, o) {
|
|
3943
3966
|
o & /*showRemain*/
|
|
@@ -3950,11 +3973,11 @@ function ni(e) {
|
|
|
3950
3973
|
a[8]("left") + "") && k(s, i);
|
|
3951
3974
|
},
|
|
3952
3975
|
d(a) {
|
|
3953
|
-
a &&
|
|
3976
|
+
a && C(t);
|
|
3954
3977
|
}
|
|
3955
3978
|
};
|
|
3956
3979
|
}
|
|
3957
|
-
function
|
|
3980
|
+
function oi(e) {
|
|
3958
3981
|
let t, r = (
|
|
3959
3982
|
/*$_*/
|
|
3960
3983
|
e[8]("starting") + ""
|
|
@@ -3967,10 +3990,10 @@ function ii(e) {
|
|
|
3967
3990
|
), a;
|
|
3968
3991
|
return {
|
|
3969
3992
|
c() {
|
|
3970
|
-
t =
|
|
3993
|
+
t = N("div"), n = G(r), i = re(), a = G(s), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
3971
3994
|
},
|
|
3972
3995
|
m(o, l) {
|
|
3973
|
-
|
|
3996
|
+
M(o, t, l), O(t, n), O(t, i), O(t, a);
|
|
3974
3997
|
},
|
|
3975
3998
|
p(o, l) {
|
|
3976
3999
|
l & /*$_*/
|
|
@@ -3983,21 +4006,21 @@ function ii(e) {
|
|
|
3983
4006
|
) + "") && k(a, s);
|
|
3984
4007
|
},
|
|
3985
4008
|
d(o) {
|
|
3986
|
-
o &&
|
|
4009
|
+
o && C(t);
|
|
3987
4010
|
}
|
|
3988
4011
|
};
|
|
3989
4012
|
}
|
|
3990
|
-
function
|
|
4013
|
+
function ai(e) {
|
|
3991
4014
|
let t, r = (
|
|
3992
4015
|
/*$_*/
|
|
3993
4016
|
e[8]("finished") + ""
|
|
3994
4017
|
), n;
|
|
3995
4018
|
return {
|
|
3996
4019
|
c() {
|
|
3997
|
-
t =
|
|
4020
|
+
t = N("div"), n = G(r), _(t, "class", "Finished"), _(t, "part", "Finished");
|
|
3998
4021
|
},
|
|
3999
4022
|
m(i, s) {
|
|
4000
|
-
|
|
4023
|
+
M(i, t, s), O(t, n);
|
|
4001
4024
|
},
|
|
4002
4025
|
p(i, s) {
|
|
4003
4026
|
s & /*$_*/
|
|
@@ -4005,11 +4028,11 @@ function si(e) {
|
|
|
4005
4028
|
i[8]("finished") + "") && k(n, r);
|
|
4006
4029
|
},
|
|
4007
4030
|
d(i) {
|
|
4008
|
-
i &&
|
|
4031
|
+
i && C(t);
|
|
4009
4032
|
}
|
|
4010
4033
|
};
|
|
4011
4034
|
}
|
|
4012
|
-
function
|
|
4035
|
+
function ui(e) {
|
|
4013
4036
|
let t, r = (
|
|
4014
4037
|
/*startdate*/
|
|
4015
4038
|
e[0] && /*enddate*/
|
|
@@ -4017,10 +4040,10 @@ function oi(e) {
|
|
|
4017
4040
|
);
|
|
4018
4041
|
return {
|
|
4019
4042
|
c() {
|
|
4020
|
-
t =
|
|
4043
|
+
t = N("div"), r && r.c(), _(t, "class", "TournamentDuration"), _(t, "part", "TournamentDuration");
|
|
4021
4044
|
},
|
|
4022
4045
|
m(n, i) {
|
|
4023
|
-
|
|
4046
|
+
M(n, t, i), r && r.m(t, null), e[17](t);
|
|
4024
4047
|
},
|
|
4025
4048
|
p(n, [i]) {
|
|
4026
4049
|
/*startdate*/
|
|
@@ -4030,119 +4053,106 @@ function oi(e) {
|
|
|
4030
4053
|
i: I,
|
|
4031
4054
|
o: I,
|
|
4032
4055
|
d(n) {
|
|
4033
|
-
n &&
|
|
4056
|
+
n && C(t), r && r.d(), e[17](null);
|
|
4034
4057
|
}
|
|
4035
4058
|
};
|
|
4036
4059
|
}
|
|
4037
|
-
function
|
|
4060
|
+
function hi(e, t, r) {
|
|
4038
4061
|
let n, i;
|
|
4039
|
-
|
|
4040
|
-
let { startdate: s = "" } = t, { enddate: a = "" } = t, { status: o = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, c,
|
|
4041
|
-
const
|
|
4042
|
-
fetch(f).then((
|
|
4043
|
-
Object.keys(
|
|
4044
|
-
at(
|
|
4062
|
+
Gt(e, qn, (m) => r(8, i = m));
|
|
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]);
|
|
4045
4068
|
});
|
|
4046
|
-
}).catch((
|
|
4047
|
-
console.log(
|
|
4069
|
+
}).catch((w) => {
|
|
4070
|
+
console.log(w);
|
|
4048
4071
|
});
|
|
4049
4072
|
};
|
|
4050
4073
|
Object.keys(ut).forEach((m) => {
|
|
4051
4074
|
at(m, ut[m]);
|
|
4052
4075
|
});
|
|
4053
|
-
const
|
|
4076
|
+
const L = (m) => new Date(m).getTime(), H = (m, w) => (L(w) - L(m)) / (1e3 * 60), E = () => {
|
|
4054
4077
|
const m = /* @__PURE__ */ new Date();
|
|
4055
|
-
r(4,
|
|
4056
|
-
},
|
|
4057
|
-
const
|
|
4058
|
-
let
|
|
4059
|
-
return `${
|
|
4060
|
-
},
|
|
4061
|
-
const
|
|
4062
|
-
const
|
|
4063
|
-
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${$}` : `${$}`;
|
|
4064
4087
|
};
|
|
4065
4088
|
if (m < 1440) {
|
|
4066
|
-
const j = m / 60,
|
|
4067
|
-
return [j,
|
|
4089
|
+
const j = m / 60, $ = m % 60, Dt = ($ - Math.floor($)) * 60;
|
|
4090
|
+
return [j, $, Dt].map((Ut) => U(Ut)).join(":");
|
|
4068
4091
|
}
|
|
4069
|
-
return
|
|
4070
|
-
}, S = () => {
|
|
4071
|
-
let m = document.createElement("style");
|
|
4072
|
-
m.innerHTML = u, c.appendChild(m);
|
|
4073
|
-
}, le = () => {
|
|
4074
|
-
let m = new URL(h), A = document.createElement("style");
|
|
4075
|
-
fetch(m.href).then((L) => L.text()).then((L) => {
|
|
4076
|
-
A.innerHTML = L, setTimeout(
|
|
4077
|
-
() => {
|
|
4078
|
-
c.appendChild(A);
|
|
4079
|
-
},
|
|
4080
|
-
1
|
|
4081
|
-
), setTimeout(
|
|
4082
|
-
() => {
|
|
4083
|
-
},
|
|
4084
|
-
500
|
|
4085
|
-
);
|
|
4086
|
-
});
|
|
4092
|
+
return w(Math.ceil(m / (60 * 24)), "days");
|
|
4087
4093
|
};
|
|
4088
|
-
|
|
4094
|
+
Qt(() => {
|
|
4089
4095
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4090
4096
|
const m = setInterval(
|
|
4091
4097
|
() => {
|
|
4092
|
-
s && a &&
|
|
4098
|
+
s && a && E();
|
|
4093
4099
|
},
|
|
4094
4100
|
1e3
|
|
4095
4101
|
);
|
|
4096
|
-
return () =>
|
|
4102
|
+
return () => {
|
|
4103
|
+
clearInterval(m);
|
|
4104
|
+
};
|
|
4097
4105
|
});
|
|
4098
|
-
function
|
|
4099
|
-
|
|
4100
|
-
|
|
4106
|
+
function le(m) {
|
|
4107
|
+
Ne[m ? "unshift" : "push"](() => {
|
|
4108
|
+
d = m, r(3, d);
|
|
4101
4109
|
});
|
|
4102
4110
|
}
|
|
4103
4111
|
return e.$$set = (m) => {
|
|
4104
|
-
"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);
|
|
4105
4113
|
}, e.$$.update = () => {
|
|
4106
4114
|
e.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
4107
4115
|
19 && r(7, n = () => {
|
|
4108
|
-
if (
|
|
4116
|
+
if (y <= 0)
|
|
4109
4117
|
return 100;
|
|
4110
|
-
const m =
|
|
4111
|
-
return Math.floor((m -
|
|
4118
|
+
const m = H(s, a), w = 100 / m;
|
|
4119
|
+
return Math.floor((m - y) * w);
|
|
4112
4120
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4113
|
-
19 && s && a &&
|
|
4114
|
-
4096 && l &&
|
|
4115
|
-
4112 && l &&
|
|
4116
|
-
32768 && f &&
|
|
4117
|
-
8200 &&
|
|
4118
|
-
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`);
|
|
4119
4128
|
}, [
|
|
4120
4129
|
s,
|
|
4121
4130
|
a,
|
|
4122
4131
|
o,
|
|
4123
|
-
|
|
4124
|
-
p,
|
|
4132
|
+
d,
|
|
4125
4133
|
y,
|
|
4126
4134
|
T,
|
|
4135
|
+
A,
|
|
4127
4136
|
n,
|
|
4128
4137
|
i,
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4138
|
+
E,
|
|
4139
|
+
p,
|
|
4140
|
+
B,
|
|
4132
4141
|
l,
|
|
4133
4142
|
u,
|
|
4134
4143
|
h,
|
|
4135
4144
|
f,
|
|
4136
|
-
|
|
4145
|
+
c,
|
|
4146
|
+
le
|
|
4137
4147
|
];
|
|
4138
4148
|
}
|
|
4139
|
-
class
|
|
4149
|
+
class li extends ar {
|
|
4140
4150
|
constructor(t) {
|
|
4141
|
-
super(),
|
|
4151
|
+
super(), sr(
|
|
4142
4152
|
this,
|
|
4143
4153
|
t,
|
|
4144
|
-
|
|
4145
|
-
|
|
4154
|
+
hi,
|
|
4155
|
+
ui,
|
|
4146
4156
|
ft,
|
|
4147
4157
|
{
|
|
4148
4158
|
startdate: 0,
|
|
@@ -4151,55 +4161,62 @@ class ui extends ur {
|
|
|
4151
4161
|
lang: 12,
|
|
4152
4162
|
clientstyling: 13,
|
|
4153
4163
|
clientstylingurl: 14,
|
|
4154
|
-
translationurl: 15
|
|
4164
|
+
translationurl: 15,
|
|
4165
|
+
mbsource: 16
|
|
4155
4166
|
},
|
|
4156
|
-
|
|
4167
|
+
ti
|
|
4157
4168
|
);
|
|
4158
4169
|
}
|
|
4159
4170
|
get startdate() {
|
|
4160
4171
|
return this.$$.ctx[0];
|
|
4161
4172
|
}
|
|
4162
4173
|
set startdate(t) {
|
|
4163
|
-
this.$$set({ startdate: t }),
|
|
4174
|
+
this.$$set({ startdate: t }), R();
|
|
4164
4175
|
}
|
|
4165
4176
|
get enddate() {
|
|
4166
4177
|
return this.$$.ctx[1];
|
|
4167
4178
|
}
|
|
4168
4179
|
set enddate(t) {
|
|
4169
|
-
this.$$set({ enddate: t }),
|
|
4180
|
+
this.$$set({ enddate: t }), R();
|
|
4170
4181
|
}
|
|
4171
4182
|
get status() {
|
|
4172
4183
|
return this.$$.ctx[2];
|
|
4173
4184
|
}
|
|
4174
4185
|
set status(t) {
|
|
4175
|
-
this.$$set({ status: t }),
|
|
4186
|
+
this.$$set({ status: t }), R();
|
|
4176
4187
|
}
|
|
4177
4188
|
get lang() {
|
|
4178
4189
|
return this.$$.ctx[12];
|
|
4179
4190
|
}
|
|
4180
4191
|
set lang(t) {
|
|
4181
|
-
this.$$set({ lang: t }),
|
|
4192
|
+
this.$$set({ lang: t }), R();
|
|
4182
4193
|
}
|
|
4183
4194
|
get clientstyling() {
|
|
4184
4195
|
return this.$$.ctx[13];
|
|
4185
4196
|
}
|
|
4186
4197
|
set clientstyling(t) {
|
|
4187
|
-
this.$$set({ clientstyling: t }),
|
|
4198
|
+
this.$$set({ clientstyling: t }), R();
|
|
4188
4199
|
}
|
|
4189
4200
|
get clientstylingurl() {
|
|
4190
4201
|
return this.$$.ctx[14];
|
|
4191
4202
|
}
|
|
4192
4203
|
set clientstylingurl(t) {
|
|
4193
|
-
this.$$set({ clientstylingurl: t }),
|
|
4204
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4194
4205
|
}
|
|
4195
4206
|
get translationurl() {
|
|
4196
4207
|
return this.$$.ctx[15];
|
|
4197
4208
|
}
|
|
4198
4209
|
set translationurl(t) {
|
|
4199
|
-
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();
|
|
4200
4217
|
}
|
|
4201
4218
|
}
|
|
4202
|
-
|
|
4219
|
+
or(li, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4203
4220
|
export {
|
|
4204
|
-
|
|
4221
|
+
li as C
|
|
4205
4222
|
};
|