@everymatrix/casino-tournaments-thumbnail-duration 1.65.0 → 1.65.2
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-DICQG_Cu.js → CasinoTournamentsThumbnailDuration-CPNCbhSV.js} +554 -550
- package/components/{CasinoTournamentsThumbnailDuration-6l1nej4L.js → CasinoTournamentsThumbnailDuration-CR6iNWLj.js} +545 -541
- package/components/CasinoTournamentsThumbnailDuration-DPC3g-WE.cjs +3 -0
- 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-D0HB4CR5.cjs +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function I() {
|
|
2
2
|
}
|
|
3
3
|
function lt(e) {
|
|
4
4
|
return e();
|
|
@@ -6,10 +6,10 @@ function lt(e) {
|
|
|
6
6
|
function Xe() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ae(e) {
|
|
10
10
|
e.forEach(lt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ye(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function ft(e, t) {
|
|
@@ -22,7 +22,7 @@ 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;
|
|
@@ -31,15 +31,15 @@ function jt(e, t, r) {
|
|
|
31
31
|
e.$$.on_destroy.push(ct(t, r));
|
|
32
32
|
}
|
|
33
33
|
function kt(e) {
|
|
34
|
-
return e &&
|
|
34
|
+
return e && ye(e.destroy) ? e.destroy : I;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function N(e, t) {
|
|
37
37
|
e.appendChild(t);
|
|
38
38
|
}
|
|
39
39
|
function Vt(e, t, r) {
|
|
40
40
|
const n = Xt(e);
|
|
41
41
|
if (!n.getElementById(t)) {
|
|
42
|
-
const i =
|
|
42
|
+
const i = w("style");
|
|
43
43
|
i.id = t, i.textContent = r, zt(n, i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -54,7 +54,7 @@ function Xt(e) {
|
|
|
54
54
|
) : e.ownerDocument;
|
|
55
55
|
}
|
|
56
56
|
function zt(e, t) {
|
|
57
|
-
return
|
|
57
|
+
return N(
|
|
58
58
|
/** @type {Document} */
|
|
59
59
|
e.head || e,
|
|
60
60
|
t
|
|
@@ -66,22 +66,22 @@ function $(e, t, r) {
|
|
|
66
66
|
function M(e) {
|
|
67
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function w(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
|
-
function
|
|
78
|
+
function E(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
81
|
function Wt(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
|
}
|
|
@@ -97,65 +97,65 @@ function Zt(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 Qt() {
|
|
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 Jt(e) {
|
|
110
110
|
Qt().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
112
|
+
const W = [], we = [];
|
|
113
|
+
let Z = [];
|
|
114
114
|
const We = [], qt = /* @__PURE__ */ Promise.resolve();
|
|
115
|
-
let
|
|
115
|
+
let Ie = !1;
|
|
116
116
|
function Yt() {
|
|
117
|
-
|
|
117
|
+
Ie || (Ie = !0, qt.then(U));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function Ce(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 U() {
|
|
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), Kt(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw W.length = 0, X = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
141
|
-
|
|
137
|
+
for (ne(null), W.length = 0, X = 0; we.length; )
|
|
138
|
+
we.pop()();
|
|
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 (
|
|
143
|
+
Z.length = 0;
|
|
144
|
+
} while (W.length);
|
|
145
145
|
for (; We.length; )
|
|
146
146
|
We.pop()();
|
|
147
|
-
|
|
147
|
+
Ie = !1, Te.clear(), ne(e);
|
|
148
148
|
}
|
|
149
149
|
function Kt(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(Ce);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function er(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 tr = /* @__PURE__ */ new Set();
|
|
161
161
|
function rr(e, t) {
|
|
@@ -163,27 +163,27 @@ function rr(e, t) {
|
|
|
163
163
|
}
|
|
164
164
|
function nr(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(lt).filter(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
169
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Ce(() => {
|
|
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(Ce);
|
|
170
170
|
}
|
|
171
171
|
function ir(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (er(r.after_update),
|
|
173
|
+
r.fragment !== null && (er(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 sr(e, t) {
|
|
176
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
e.$$.dirty[0] === -1 && (W.push(e), Yt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
178
|
function or(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
188
|
bound: Xe(),
|
|
189
189
|
// lifecycle
|
|
@@ -202,17 +202,17 @@ function or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
202
202
|
a && a(u.root);
|
|
203
203
|
let h = !1;
|
|
204
204
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
205
|
-
const
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
207
|
-
}) : [], u.update(), h = !0,
|
|
205
|
+
const y = p.length ? p[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 && sr(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 = Wt(t.target);
|
|
210
210
|
u.fragment && u.fragment.l(f), f.forEach(M);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro && rr(e.$$.fragment), nr(e, t.target, t.anchor),
|
|
213
|
+
t.intro && rr(e.$$.fragment), nr(e, t.target, t.anchor), U();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
ne(l);
|
|
216
216
|
}
|
|
217
217
|
let mt;
|
|
218
218
|
typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
257
257
|
let s;
|
|
258
258
|
return {
|
|
259
259
|
c: function() {
|
|
260
|
-
s =
|
|
260
|
+
s = w("slot"), i !== "default" && E(s, "name", i);
|
|
261
261
|
},
|
|
262
262
|
/**
|
|
263
263
|
* @param {HTMLElement} target
|
|
@@ -279,7 +279,7 @@ typeof HTMLElement == "function" && (mt = 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" && (mt = 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" && (mt = 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" && (mt = 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;
|
|
@@ -378,7 +378,7 @@ function ar(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 ur {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
ir(this, 1), this.$destroy =
|
|
412
|
+
ir(this, 1), this.$destroy = I;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,8 +418,8 @@ class ur {
|
|
|
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 ur {
|
|
|
436
436
|
}
|
|
437
437
|
const hr = "4";
|
|
438
438
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(hr);
|
|
439
|
-
const
|
|
439
|
+
const z = [];
|
|
440
440
|
function lr(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
449
|
if (ft(e, o) && (e = o, r)) {
|
|
450
|
-
const l = !
|
|
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,16 +476,16 @@ function Y(e, t, r) {
|
|
|
476
476
|
return lr(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(
|
|
484
|
+
const y = t(n ? u[0] : u, a, o);
|
|
485
|
+
s ? a(y) : f = ye(y) ? y : I;
|
|
486
486
|
}, p = i.map(
|
|
487
|
-
(
|
|
488
|
-
|
|
487
|
+
(y, T) => ct(
|
|
488
|
+
y,
|
|
489
489
|
(P) => {
|
|
490
490
|
u[T] = P, h &= ~(1 << T), l && c();
|
|
491
491
|
},
|
|
@@ -495,7 +495,7 @@ function Y(e, t, r) {
|
|
|
495
495
|
)
|
|
496
496
|
);
|
|
497
497
|
return l = !0, c(), function() {
|
|
498
|
-
|
|
498
|
+
ae(p), f(), l = !1;
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
501
|
}
|
|
@@ -519,19 +519,19 @@ function br(e) {
|
|
|
519
519
|
function yr(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(yr(e), e, t) : e;
|
|
524
524
|
}
|
|
525
525
|
function Er(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 _r(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 xr(e) {
|
|
537
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -554,65 +554,51 @@ function vr(e, t) {
|
|
|
554
554
|
function Hr(e, t, r) {
|
|
555
555
|
var n = {};
|
|
556
556
|
return r.isMergeableObject(e) && Ze(e).forEach(function(i) {
|
|
557
|
-
n[i] =
|
|
557
|
+
n[i] = se(e[i], r);
|
|
558
558
|
}), Ze(t).forEach(function(i) {
|
|
559
|
-
vr(e, i) || (dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _r(i, r)(e[i], t[i], r) : n[i] =
|
|
559
|
+
vr(e, i) || (dt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _r(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 || Er, r.isMergeableObject = r.isMergeableObject || cr, r.cloneUnlessOtherwiseSpecified =
|
|
562
|
+
function Q(e, t, r) {
|
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Er, r.isMergeableObject = r.isMergeableObject || cr, 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) : Hr(e, t, r) :
|
|
565
|
+
return s ? n ? r.arrayMerge(e, t, r) : Hr(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 Tr =
|
|
574
|
+
var Tr = Q, Br = Tr;
|
|
575
575
|
const Sr = /* @__PURE__ */ fr(Br);
|
|
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 Le = function(e, t) {
|
|
577
|
+
return Le = 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
|
+
}, Le(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
|
+
Le(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 Ar(e, t) {
|
|
618
604
|
var r = {};
|
|
@@ -623,14 +609,14 @@ function Ar(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 : Lr, n = t && t.serializer ? t.serializer :
|
|
618
|
+
function Se(e, t) {
|
|
619
|
+
var r = t && t.cache ? t.cache : Lr, n = t && t.serializer ? t.serializer : Ir, i = t && t.strategy ? t.strategy : Nr;
|
|
634
620
|
return i(e, {
|
|
635
621
|
cache: r,
|
|
636
622
|
serializer: n
|
|
@@ -639,95 +625,103 @@ function Te(e, t) {
|
|
|
639
625
|
function Pr(e) {
|
|
640
626
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
641
627
|
}
|
|
642
|
-
function
|
|
628
|
+
function Or(e, t, r, n) {
|
|
643
629
|
var i = Pr(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
|
}
|
|
646
|
-
function
|
|
632
|
+
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
639
|
function Nr(e, t) {
|
|
654
|
-
var r = e.length === 1 ?
|
|
655
|
-
return
|
|
640
|
+
var r = e.length === 1 ? Or : pt;
|
|
641
|
+
return gt(e, this, r, t.cache.create(), t.serializer);
|
|
656
642
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
643
|
+
function wr(e, t) {
|
|
644
|
+
return gt(e, this, pt, t.cache.create(), t.serializer);
|
|
659
645
|
}
|
|
660
|
-
|
|
661
|
-
return Ge(e, this, pt, t.cache.create(), t.serializer);
|
|
662
|
-
}
|
|
663
|
-
var wr = function() {
|
|
646
|
+
var Ir = function() {
|
|
664
647
|
return JSON.stringify(arguments);
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
648
|
+
}, Cr = (
|
|
649
|
+
/** @class */
|
|
650
|
+
function() {
|
|
651
|
+
function e() {
|
|
652
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
653
|
+
}
|
|
654
|
+
return e.prototype.get = function(t) {
|
|
655
|
+
return this.cache[t];
|
|
656
|
+
}, e.prototype.set = function(t, r) {
|
|
657
|
+
this.cache[t] = r;
|
|
658
|
+
}, e;
|
|
659
|
+
}()
|
|
660
|
+
), Lr = {
|
|
676
661
|
create: function() {
|
|
677
|
-
return new
|
|
662
|
+
return new Cr();
|
|
678
663
|
}
|
|
679
|
-
},
|
|
680
|
-
variadic:
|
|
681
|
-
|
|
682
|
-
|
|
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;
|
|
683
677
|
(function(e) {
|
|
684
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";
|
|
685
679
|
})(g || (g = {}));
|
|
686
|
-
var
|
|
680
|
+
var _;
|
|
687
681
|
(function(e) {
|
|
688
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";
|
|
689
|
-
})(
|
|
690
|
-
var
|
|
683
|
+
})(_ || (_ = {}));
|
|
684
|
+
var J;
|
|
691
685
|
(function(e) {
|
|
692
686
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
693
|
-
})(
|
|
687
|
+
})(J || (J = {}));
|
|
694
688
|
function Qe(e) {
|
|
695
|
-
return e.type ===
|
|
689
|
+
return e.type === _.literal;
|
|
696
690
|
}
|
|
697
|
-
function
|
|
698
|
-
return e.type ===
|
|
691
|
+
function Mr(e) {
|
|
692
|
+
return e.type === _.argument;
|
|
699
693
|
}
|
|
700
694
|
function bt(e) {
|
|
701
|
-
return e.type ===
|
|
695
|
+
return e.type === _.number;
|
|
702
696
|
}
|
|
703
697
|
function yt(e) {
|
|
704
|
-
return e.type ===
|
|
698
|
+
return e.type === _.date;
|
|
705
699
|
}
|
|
706
700
|
function Et(e) {
|
|
707
|
-
return e.type ===
|
|
701
|
+
return e.type === _.time;
|
|
708
702
|
}
|
|
709
703
|
function _t(e) {
|
|
710
|
-
return e.type ===
|
|
704
|
+
return e.type === _.select;
|
|
711
705
|
}
|
|
712
706
|
function xt(e) {
|
|
713
|
-
return e.type ===
|
|
707
|
+
return e.type === _.plural;
|
|
714
708
|
}
|
|
715
|
-
function
|
|
716
|
-
return e.type ===
|
|
709
|
+
function $r(e) {
|
|
710
|
+
return e.type === _.pound;
|
|
717
711
|
}
|
|
718
712
|
function vt(e) {
|
|
719
|
-
return e.type ===
|
|
713
|
+
return e.type === _.tag;
|
|
720
714
|
}
|
|
721
715
|
function Ht(e) {
|
|
722
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
716
|
+
return !!(e && typeof e == "object" && e.type === J.number);
|
|
723
717
|
}
|
|
724
|
-
function
|
|
725
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
718
|
+
function Me(e) {
|
|
719
|
+
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
726
720
|
}
|
|
727
|
-
var Tt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
728
|
-
function
|
|
721
|
+
var Tt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rr = /(?:[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 Dr(e) {
|
|
729
723
|
var t = {};
|
|
730
|
-
return e.replace(
|
|
724
|
+
return e.replace(Rr, function(r) {
|
|
731
725
|
var n = r.length;
|
|
732
726
|
switch (r[0]) {
|
|
733
727
|
case "G":
|
|
@@ -816,11 +810,21 @@ function Rr(e) {
|
|
|
816
810
|
return "";
|
|
817
811
|
}), t;
|
|
818
812
|
}
|
|
819
|
-
var
|
|
820
|
-
function
|
|
813
|
+
var H = function() {
|
|
814
|
+
return H = 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
|
+
}, H.apply(this, arguments);
|
|
822
|
+
};
|
|
823
|
+
var Ur = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
824
|
+
function Fr(e) {
|
|
821
825
|
if (e.length === 0)
|
|
822
826
|
throw new Error("Number skeleton cannot be empty");
|
|
823
|
-
for (var t = e.split(
|
|
827
|
+
for (var t = e.split(Ur).filter(function(c) {
|
|
824
828
|
return c.length > 0;
|
|
825
829
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
826
830
|
var s = i[n], a = s.split("/");
|
|
@@ -835,10 +839,10 @@ function Ur(e) {
|
|
|
835
839
|
}
|
|
836
840
|
return r;
|
|
837
841
|
}
|
|
838
|
-
function
|
|
842
|
+
function Gr(e) {
|
|
839
843
|
return e.replace(/^(.*?)-/, "");
|
|
840
844
|
}
|
|
841
|
-
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
845
|
+
var Je = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bt = /^(@+)?(\+|#+)?[rs]?$/g, jr = /(\*)(0+)|(#+)(0+)|(0+)/g, St = /^(0+)$/;
|
|
842
846
|
function qe(e) {
|
|
843
847
|
var t = {};
|
|
844
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) {
|
|
@@ -885,7 +889,7 @@ function At(e) {
|
|
|
885
889
|
};
|
|
886
890
|
}
|
|
887
891
|
}
|
|
888
|
-
function
|
|
892
|
+
function kr(e) {
|
|
889
893
|
var t;
|
|
890
894
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
891
895
|
notation: "engineering"
|
|
@@ -903,7 +907,7 @@ function Ye(e) {
|
|
|
903
907
|
var t = {}, r = At(e);
|
|
904
908
|
return r || t;
|
|
905
909
|
}
|
|
906
|
-
function
|
|
910
|
+
function Vr(e) {
|
|
907
911
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
908
912
|
var i = n[r];
|
|
909
913
|
switch (i.stem) {
|
|
@@ -927,7 +931,7 @@ function kr(e) {
|
|
|
927
931
|
continue;
|
|
928
932
|
case "measure-unit":
|
|
929
933
|
case "unit":
|
|
930
|
-
t.style = "unit", t.unit =
|
|
934
|
+
t.style = "unit", t.unit = Gr(i.options[0]);
|
|
931
935
|
continue;
|
|
932
936
|
case "compact-short":
|
|
933
937
|
case "K":
|
|
@@ -938,13 +942,13 @@ function kr(e) {
|
|
|
938
942
|
t.notation = "compact", t.compactDisplay = "long";
|
|
939
943
|
continue;
|
|
940
944
|
case "scientific":
|
|
941
|
-
t =
|
|
942
|
-
return
|
|
945
|
+
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
946
|
+
return H(H({}, l), Ye(u));
|
|
943
947
|
}, {}));
|
|
944
948
|
continue;
|
|
945
949
|
case "engineering":
|
|
946
|
-
t =
|
|
947
|
-
return
|
|
950
|
+
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
951
|
+
return H(H({}, l), Ye(u));
|
|
948
952
|
}, {}));
|
|
949
953
|
continue;
|
|
950
954
|
case "notation-simple":
|
|
@@ -989,7 +993,7 @@ function kr(e) {
|
|
|
989
993
|
case "integer-width":
|
|
990
994
|
if (i.options.length > 1)
|
|
991
995
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
992
|
-
i.options[0].replace(
|
|
996
|
+
i.options[0].replace(jr, function(l, u, h, f, c, p) {
|
|
993
997
|
if (u)
|
|
994
998
|
t.minimumIntegerDigits = h.length;
|
|
995
999
|
else {
|
|
@@ -1013,21 +1017,21 @@ function kr(e) {
|
|
|
1013
1017
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1014
1018
|
});
|
|
1015
1019
|
var s = i.options[0];
|
|
1016
|
-
s === "w" ? t =
|
|
1020
|
+
s === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = H(H({}, t), qe(s)));
|
|
1017
1021
|
continue;
|
|
1018
1022
|
}
|
|
1019
1023
|
if (Bt.test(i.stem)) {
|
|
1020
|
-
t =
|
|
1024
|
+
t = H(H({}, t), qe(i.stem));
|
|
1021
1025
|
continue;
|
|
1022
1026
|
}
|
|
1023
1027
|
var a = At(i.stem);
|
|
1024
|
-
a && (t =
|
|
1025
|
-
var o =
|
|
1026
|
-
o && (t =
|
|
1028
|
+
a && (t = H(H({}, t), a));
|
|
1029
|
+
var o = kr(i.stem);
|
|
1030
|
+
o && (t = H(H({}, t), o));
|
|
1027
1031
|
}
|
|
1028
1032
|
return t;
|
|
1029
1033
|
}
|
|
1030
|
-
var
|
|
1034
|
+
var fe = {
|
|
1031
1035
|
"001": [
|
|
1032
1036
|
"H",
|
|
1033
1037
|
"h"
|
|
@@ -2442,13 +2446,13 @@ var le = {
|
|
|
2442
2446
|
"h"
|
|
2443
2447
|
]
|
|
2444
2448
|
};
|
|
2445
|
-
function
|
|
2449
|
+
function Xr(e, t) {
|
|
2446
2450
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2447
2451
|
var i = e.charAt(n);
|
|
2448
2452
|
if (i === "j") {
|
|
2449
2453
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2450
2454
|
s++, n++;
|
|
2451
|
-
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 = zr(t);
|
|
2452
2456
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2453
2457
|
r += l;
|
|
2454
2458
|
for (; a-- > 0; )
|
|
@@ -2458,7 +2462,7 @@ function Vr(e, t) {
|
|
|
2458
2462
|
}
|
|
2459
2463
|
return r;
|
|
2460
2464
|
}
|
|
2461
|
-
function
|
|
2465
|
+
function zr(e) {
|
|
2462
2466
|
var t = e.hourCycle;
|
|
2463
2467
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2464
2468
|
e.hourCycles && // @ts-ignore
|
|
@@ -2477,23 +2481,23 @@ function Xr(e) {
|
|
|
2477
2481
|
}
|
|
2478
2482
|
var r = e.language, n;
|
|
2479
2483
|
r !== "root" && (n = e.maximize().region);
|
|
2480
|
-
var i =
|
|
2484
|
+
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2481
2485
|
return i[0];
|
|
2482
2486
|
}
|
|
2483
|
-
var
|
|
2487
|
+
var Pe, Wr = new RegExp("^".concat(Tt.source, "*")), Zr = new RegExp("".concat(Tt.source, "*$"));
|
|
2484
2488
|
function b(e, t) {
|
|
2485
2489
|
return { start: e, end: t };
|
|
2486
2490
|
}
|
|
2487
|
-
var
|
|
2491
|
+
var Qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jr = !!String.fromCodePoint, qr = !!Object.fromEntries, Yr = !!String.prototype.codePointAt, Kr = !!String.prototype.trimStart, en = !!String.prototype.trimEnd, tn = !!Number.isSafeInteger, rn = tn ? Number.isSafeInteger : function(e) {
|
|
2488
2492
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2489
|
-
},
|
|
2493
|
+
}, $e = !0;
|
|
2490
2494
|
try {
|
|
2491
|
-
var
|
|
2492
|
-
|
|
2495
|
+
var nn = Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2496
|
+
$e = ((Pe = nn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2493
2497
|
} catch {
|
|
2494
|
-
|
|
2498
|
+
$e = !1;
|
|
2495
2499
|
}
|
|
2496
|
-
var Ke =
|
|
2500
|
+
var Ke = Qr ? (
|
|
2497
2501
|
// Native
|
|
2498
2502
|
function(t, r, n) {
|
|
2499
2503
|
return t.startsWith(r, n);
|
|
@@ -2503,7 +2507,7 @@ var Ke = Zr ? (
|
|
|
2503
2507
|
function(t, r, n) {
|
|
2504
2508
|
return t.slice(n, n + r.length) === r;
|
|
2505
2509
|
}
|
|
2506
|
-
),
|
|
2510
|
+
), Re = Jr ? String.fromCodePoint : (
|
|
2507
2511
|
// IE11
|
|
2508
2512
|
function() {
|
|
2509
2513
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2517,7 +2521,7 @@ var Ke = Zr ? (
|
|
|
2517
2521
|
}
|
|
2518
2522
|
), et = (
|
|
2519
2523
|
// native
|
|
2520
|
-
|
|
2524
|
+
qr ? Object.fromEntries : (
|
|
2521
2525
|
// Ponyfill
|
|
2522
2526
|
function(t) {
|
|
2523
2527
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2527,7 +2531,7 @@ var Ke = Zr ? (
|
|
|
2527
2531
|
return r;
|
|
2528
2532
|
}
|
|
2529
2533
|
)
|
|
2530
|
-
), Pt =
|
|
2534
|
+
), Pt = Yr ? (
|
|
2531
2535
|
// Native
|
|
2532
2536
|
function(t, r) {
|
|
2533
2537
|
return t.codePointAt(r);
|
|
@@ -2541,7 +2545,7 @@ var Ke = Zr ? (
|
|
|
2541
2545
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2542
2546
|
}
|
|
2543
2547
|
}
|
|
2544
|
-
),
|
|
2548
|
+
), sn = Kr ? (
|
|
2545
2549
|
// Native
|
|
2546
2550
|
function(t) {
|
|
2547
2551
|
return t.trimStart();
|
|
@@ -2549,9 +2553,9 @@ var Ke = Zr ? (
|
|
|
2549
2553
|
) : (
|
|
2550
2554
|
// Ponyfill
|
|
2551
2555
|
function(t) {
|
|
2552
|
-
return t.replace(
|
|
2556
|
+
return t.replace(Wr, "");
|
|
2553
2557
|
}
|
|
2554
|
-
),
|
|
2558
|
+
), on = en ? (
|
|
2555
2559
|
// Native
|
|
2556
2560
|
function(t) {
|
|
2557
2561
|
return t.trimEnd();
|
|
@@ -2559,32 +2563,32 @@ var Ke = Zr ? (
|
|
|
2559
2563
|
) : (
|
|
2560
2564
|
// Ponyfill
|
|
2561
2565
|
function(t) {
|
|
2562
|
-
return t.replace(
|
|
2566
|
+
return t.replace(Zr, "");
|
|
2563
2567
|
}
|
|
2564
2568
|
);
|
|
2565
|
-
function
|
|
2569
|
+
function Ot(e, t) {
|
|
2566
2570
|
return new RegExp(e, t);
|
|
2567
2571
|
}
|
|
2568
|
-
var
|
|
2569
|
-
if (
|
|
2570
|
-
var tt =
|
|
2571
|
-
|
|
2572
|
+
var De;
|
|
2573
|
+
if ($e) {
|
|
2574
|
+
var tt = Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2575
|
+
De = function(t, r) {
|
|
2572
2576
|
var n;
|
|
2573
2577
|
tt.lastIndex = r;
|
|
2574
2578
|
var i = tt.exec(t);
|
|
2575
2579
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2576
2580
|
};
|
|
2577
2581
|
} else
|
|
2578
|
-
|
|
2582
|
+
De = function(t, r) {
|
|
2579
2583
|
for (var n = []; ; ) {
|
|
2580
2584
|
var i = Pt(t, r);
|
|
2581
|
-
if (i === void 0 ||
|
|
2585
|
+
if (i === void 0 || Nt(i) || ln(i))
|
|
2582
2586
|
break;
|
|
2583
2587
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2584
2588
|
}
|
|
2585
|
-
return
|
|
2589
|
+
return Re.apply(void 0, n);
|
|
2586
2590
|
};
|
|
2587
|
-
var
|
|
2591
|
+
var an = (
|
|
2588
2592
|
/** @class */
|
|
2589
2593
|
function() {
|
|
2590
2594
|
function e(t, r) {
|
|
@@ -2608,14 +2612,14 @@ var on = (
|
|
|
2608
2612
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2609
2613
|
var o = this.clonePosition();
|
|
2610
2614
|
this.bump(), i.push({
|
|
2611
|
-
type:
|
|
2615
|
+
type: _.pound,
|
|
2612
2616
|
location: b(o, this.clonePosition())
|
|
2613
2617
|
});
|
|
2614
2618
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2615
2619
|
if (n)
|
|
2616
2620
|
break;
|
|
2617
2621
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2618
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2622
|
+
} else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2619
2623
|
var a = this.parseTag(t, r);
|
|
2620
2624
|
if (a.err)
|
|
2621
2625
|
return a;
|
|
@@ -2636,7 +2640,7 @@ var on = (
|
|
|
2636
2640
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2637
2641
|
return {
|
|
2638
2642
|
val: {
|
|
2639
|
-
type:
|
|
2643
|
+
type: _.literal,
|
|
2640
2644
|
value: "<".concat(i, "/>"),
|
|
2641
2645
|
location: b(n, this.clonePosition())
|
|
2642
2646
|
},
|
|
@@ -2648,12 +2652,12 @@ var on = (
|
|
|
2648
2652
|
return s;
|
|
2649
2653
|
var a = s.val, o = this.clonePosition();
|
|
2650
2654
|
if (this.bumpIf("</")) {
|
|
2651
|
-
if (this.isEOF() || !
|
|
2655
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2652
2656
|
return this.error(g.INVALID_TAG, b(o, this.clonePosition()));
|
|
2653
2657
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2654
2658
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2655
2659
|
val: {
|
|
2656
|
-
type:
|
|
2660
|
+
type: _.tag,
|
|
2657
2661
|
value: i,
|
|
2658
2662
|
children: a,
|
|
2659
2663
|
location: b(n, this.clonePosition())
|
|
@@ -2666,7 +2670,7 @@ var on = (
|
|
|
2666
2670
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2667
2671
|
}, e.prototype.parseTagName = function() {
|
|
2668
2672
|
var t = this.offset();
|
|
2669
|
-
for (this.bump(); !this.isEOF() &&
|
|
2673
|
+
for (this.bump(); !this.isEOF() && hn(this.char()); )
|
|
2670
2674
|
this.bump();
|
|
2671
2675
|
return this.message.slice(t, this.offset());
|
|
2672
2676
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2690,12 +2694,12 @@ var on = (
|
|
|
2690
2694
|
}
|
|
2691
2695
|
var l = b(n, this.clonePosition());
|
|
2692
2696
|
return {
|
|
2693
|
-
val: { type:
|
|
2697
|
+
val: { type: _.literal, value: i, location: l },
|
|
2694
2698
|
err: null
|
|
2695
2699
|
};
|
|
2696
2700
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2697
2701
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2698
|
-
!
|
|
2702
|
+
!un(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2699
2703
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2700
2704
|
if (this.isEOF() || this.char() !== 39)
|
|
2701
2705
|
return null;
|
|
@@ -2729,12 +2733,12 @@ var on = (
|
|
|
2729
2733
|
r.push(n);
|
|
2730
2734
|
this.bump();
|
|
2731
2735
|
}
|
|
2732
|
-
return
|
|
2736
|
+
return Re.apply(void 0, r);
|
|
2733
2737
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2734
2738
|
if (this.isEOF())
|
|
2735
2739
|
return null;
|
|
2736
2740
|
var n = this.char();
|
|
2737
|
-
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));
|
|
2738
2742
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2739
2743
|
var n = this.clonePosition();
|
|
2740
2744
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2750,7 +2754,7 @@ var on = (
|
|
|
2750
2754
|
case 125:
|
|
2751
2755
|
return this.bump(), {
|
|
2752
2756
|
val: {
|
|
2753
|
-
type:
|
|
2757
|
+
type: _.argument,
|
|
2754
2758
|
// value does not include the opening and closing braces.
|
|
2755
2759
|
value: i,
|
|
2756
2760
|
location: b(n, this.clonePosition())
|
|
@@ -2763,7 +2767,7 @@ var on = (
|
|
|
2763
2767
|
return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2764
2768
|
}
|
|
2765
2769
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2766
|
-
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;
|
|
2767
2771
|
this.bumpTo(i);
|
|
2768
2772
|
var s = this.clonePosition(), a = b(t, s);
|
|
2769
2773
|
return { value: n, location: a };
|
|
@@ -2782,44 +2786,44 @@ var on = (
|
|
|
2782
2786
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2783
2787
|
if (f.err)
|
|
2784
2788
|
return f;
|
|
2785
|
-
var c =
|
|
2789
|
+
var c = on(f.val);
|
|
2786
2790
|
if (c.length === 0)
|
|
2787
2791
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2788
2792
|
var p = b(h, this.clonePosition());
|
|
2789
2793
|
u = { style: c, styleLocation: p };
|
|
2790
2794
|
}
|
|
2791
|
-
var
|
|
2792
|
-
if (
|
|
2793
|
-
return
|
|
2795
|
+
var y = this.tryParseArgumentClose(i);
|
|
2796
|
+
if (y.err)
|
|
2797
|
+
return y;
|
|
2794
2798
|
var T = b(i, this.clonePosition());
|
|
2795
2799
|
if (u && Ke(u?.style, "::", 0)) {
|
|
2796
|
-
var P =
|
|
2800
|
+
var P = sn(u.style.slice(2));
|
|
2797
2801
|
if (o === "number") {
|
|
2798
2802
|
var f = this.parseNumberSkeletonFromString(P, u.styleLocation);
|
|
2799
2803
|
return f.err ? f : {
|
|
2800
|
-
val: { type:
|
|
2804
|
+
val: { type: _.number, value: n, location: T, style: f.val },
|
|
2801
2805
|
err: null
|
|
2802
2806
|
};
|
|
2803
2807
|
} else {
|
|
2804
2808
|
if (P.length === 0)
|
|
2805
2809
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2806
2810
|
var B = P;
|
|
2807
|
-
this.locale && (B =
|
|
2811
|
+
this.locale && (B = Xr(P, this.locale));
|
|
2808
2812
|
var c = {
|
|
2809
|
-
type:
|
|
2813
|
+
type: J.dateTime,
|
|
2810
2814
|
pattern: B,
|
|
2811
2815
|
location: u.styleLocation,
|
|
2812
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2813
|
-
},
|
|
2816
|
+
parsedOptions: this.shouldParseSkeletons ? Dr(B) : {}
|
|
2817
|
+
}, C = o === "date" ? _.date : _.time;
|
|
2814
2818
|
return {
|
|
2815
|
-
val: { type:
|
|
2819
|
+
val: { type: C, value: n, location: T, style: c },
|
|
2816
2820
|
err: null
|
|
2817
2821
|
};
|
|
2818
2822
|
}
|
|
2819
2823
|
}
|
|
2820
2824
|
return {
|
|
2821
2825
|
val: {
|
|
2822
|
-
type: o === "number" ?
|
|
2826
|
+
type: o === "number" ? _.number : o === "date" ? _.date : _.time,
|
|
2823
2827
|
value: n,
|
|
2824
2828
|
location: T,
|
|
2825
2829
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -2830,43 +2834,43 @@ var on = (
|
|
|
2830
2834
|
case "plural":
|
|
2831
2835
|
case "selectordinal":
|
|
2832
2836
|
case "select": {
|
|
2833
|
-
var
|
|
2837
|
+
var x = this.clonePosition();
|
|
2834
2838
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2835
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2839
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, pe({}, x)));
|
|
2836
2840
|
this.bumpSpace();
|
|
2837
|
-
var
|
|
2838
|
-
if (o !== "select" &&
|
|
2841
|
+
var v = this.parseIdentifierIfPossible(), d = 0;
|
|
2842
|
+
if (o !== "select" && v.value === "offset") {
|
|
2839
2843
|
if (!this.bumpIf(":"))
|
|
2840
2844
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2841
2845
|
this.bumpSpace();
|
|
2842
2846
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2843
2847
|
if (f.err)
|
|
2844
2848
|
return f;
|
|
2845
|
-
this.bumpSpace(),
|
|
2849
|
+
this.bumpSpace(), v = this.parseIdentifierIfPossible(), d = f.val;
|
|
2846
2850
|
}
|
|
2847
|
-
var S = this.tryParsePluralOrSelectOptions(t, o, r,
|
|
2851
|
+
var S = this.tryParsePluralOrSelectOptions(t, o, r, v);
|
|
2848
2852
|
if (S.err)
|
|
2849
2853
|
return S;
|
|
2850
|
-
var
|
|
2851
|
-
if (
|
|
2852
|
-
return
|
|
2853
|
-
var
|
|
2854
|
+
var y = this.tryParseArgumentClose(i);
|
|
2855
|
+
if (y.err)
|
|
2856
|
+
return y;
|
|
2857
|
+
var le = b(i, this.clonePosition());
|
|
2854
2858
|
return o === "select" ? {
|
|
2855
2859
|
val: {
|
|
2856
|
-
type:
|
|
2860
|
+
type: _.select,
|
|
2857
2861
|
value: n,
|
|
2858
2862
|
options: et(S.val),
|
|
2859
|
-
location:
|
|
2863
|
+
location: le
|
|
2860
2864
|
},
|
|
2861
2865
|
err: null
|
|
2862
2866
|
} : {
|
|
2863
2867
|
val: {
|
|
2864
|
-
type:
|
|
2868
|
+
type: _.plural,
|
|
2865
2869
|
value: n,
|
|
2866
2870
|
options: et(S.val),
|
|
2867
2871
|
offset: d,
|
|
2868
2872
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2869
|
-
location:
|
|
2873
|
+
location: le
|
|
2870
2874
|
},
|
|
2871
2875
|
err: null
|
|
2872
2876
|
};
|
|
@@ -2914,16 +2918,16 @@ var on = (
|
|
|
2914
2918
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2915
2919
|
var n = [];
|
|
2916
2920
|
try {
|
|
2917
|
-
n =
|
|
2921
|
+
n = Fr(t);
|
|
2918
2922
|
} catch {
|
|
2919
2923
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2920
2924
|
}
|
|
2921
2925
|
return {
|
|
2922
2926
|
val: {
|
|
2923
|
-
type:
|
|
2927
|
+
type: J.number,
|
|
2924
2928
|
tokens: n,
|
|
2925
2929
|
location: r,
|
|
2926
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2930
|
+
parsedOptions: this.shouldParseSkeletons ? Vr(n) : {}
|
|
2927
2931
|
},
|
|
2928
2932
|
err: null
|
|
2929
2933
|
};
|
|
@@ -2945,16 +2949,16 @@ var on = (
|
|
|
2945
2949
|
var p = this.clonePosition();
|
|
2946
2950
|
if (!this.bumpIf("{"))
|
|
2947
2951
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2948
|
-
var
|
|
2949
|
-
if (
|
|
2950
|
-
return
|
|
2952
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
2953
|
+
if (y.err)
|
|
2954
|
+
return y;
|
|
2951
2955
|
var T = this.tryParseArgumentClose(p);
|
|
2952
2956
|
if (T.err)
|
|
2953
2957
|
return T;
|
|
2954
2958
|
o.push([
|
|
2955
2959
|
u,
|
|
2956
2960
|
{
|
|
2957
|
-
value:
|
|
2961
|
+
value: y.val,
|
|
2958
2962
|
location: b(p, this.clonePosition())
|
|
2959
2963
|
}
|
|
2960
2964
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
@@ -2971,7 +2975,7 @@ var on = (
|
|
|
2971
2975
|
break;
|
|
2972
2976
|
}
|
|
2973
2977
|
var l = b(i, this.clonePosition());
|
|
2974
|
-
return s ? (a *= n,
|
|
2978
|
+
return s ? (a *= n, rn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2975
2979
|
}, e.prototype.offset = function() {
|
|
2976
2980
|
return this.position.offset;
|
|
2977
2981
|
}, e.prototype.isEOF = function() {
|
|
@@ -3027,7 +3031,7 @@ var on = (
|
|
|
3027
3031
|
break;
|
|
3028
3032
|
}
|
|
3029
3033
|
}, e.prototype.bumpSpace = function() {
|
|
3030
|
-
for (; !this.isEOF() &&
|
|
3034
|
+
for (; !this.isEOF() && Nt(this.char()); )
|
|
3031
3035
|
this.bump();
|
|
3032
3036
|
}, e.prototype.peek = function() {
|
|
3033
3037
|
if (this.isEOF())
|
|
@@ -3037,47 +3041,47 @@ var on = (
|
|
|
3037
3041
|
}, e;
|
|
3038
3042
|
}()
|
|
3039
3043
|
);
|
|
3040
|
-
function
|
|
3044
|
+
function Ue(e) {
|
|
3041
3045
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3042
3046
|
}
|
|
3043
|
-
function an(e) {
|
|
3044
|
-
return Re(e) || e === 47;
|
|
3045
|
-
}
|
|
3046
3047
|
function un(e) {
|
|
3048
|
+
return Ue(e) || e === 47;
|
|
3049
|
+
}
|
|
3050
|
+
function hn(e) {
|
|
3047
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;
|
|
3048
3052
|
}
|
|
3049
|
-
function
|
|
3053
|
+
function Nt(e) {
|
|
3050
3054
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3051
3055
|
}
|
|
3052
|
-
function
|
|
3056
|
+
function ln(e) {
|
|
3053
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;
|
|
3054
3058
|
}
|
|
3055
|
-
function
|
|
3059
|
+
function Fe(e) {
|
|
3056
3060
|
e.forEach(function(t) {
|
|
3057
3061
|
if (delete t.location, _t(t) || xt(t))
|
|
3058
3062
|
for (var r in t.options)
|
|
3059
|
-
delete t.options[r].location,
|
|
3063
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3060
3064
|
else
|
|
3061
|
-
bt(t) && Ht(t.style) || (yt(t) || Et(t)) &&
|
|
3065
|
+
bt(t) && Ht(t.style) || (yt(t) || Et(t)) && Me(t.style) ? delete t.style.location : vt(t) && Fe(t.children);
|
|
3062
3066
|
});
|
|
3063
3067
|
}
|
|
3064
|
-
function
|
|
3065
|
-
t === void 0 && (t = {}), t =
|
|
3066
|
-
var r = new
|
|
3068
|
+
function fn(e, t) {
|
|
3069
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3070
|
+
var r = new an(e, t).parse();
|
|
3067
3071
|
if (r.err) {
|
|
3068
3072
|
var n = SyntaxError(g[r.err.kind]);
|
|
3069
3073
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3070
3074
|
}
|
|
3071
|
-
return t?.captureLocation ||
|
|
3075
|
+
return t?.captureLocation || Fe(r.val), r.val;
|
|
3072
3076
|
}
|
|
3073
|
-
var
|
|
3077
|
+
var q;
|
|
3074
3078
|
(function(e) {
|
|
3075
3079
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3076
|
-
})(
|
|
3077
|
-
var
|
|
3080
|
+
})(q || (q = {}));
|
|
3081
|
+
var xe = (
|
|
3078
3082
|
/** @class */
|
|
3079
3083
|
function(e) {
|
|
3080
|
-
|
|
3084
|
+
_e(t, e);
|
|
3081
3085
|
function t(r, n, i) {
|
|
3082
3086
|
var s = e.call(this, r) || this;
|
|
3083
3087
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3089,48 +3093,48 @@ var Ee = (
|
|
|
3089
3093
|
), rt = (
|
|
3090
3094
|
/** @class */
|
|
3091
3095
|
function(e) {
|
|
3092
|
-
|
|
3096
|
+
_e(t, e);
|
|
3093
3097
|
function t(r, n, i, s) {
|
|
3094
|
-
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;
|
|
3095
3099
|
}
|
|
3096
3100
|
return t;
|
|
3097
|
-
}(
|
|
3098
|
-
),
|
|
3101
|
+
}(xe)
|
|
3102
|
+
), cn = (
|
|
3099
3103
|
/** @class */
|
|
3100
3104
|
function(e) {
|
|
3101
|
-
|
|
3105
|
+
_e(t, e);
|
|
3102
3106
|
function t(r, n, i) {
|
|
3103
|
-
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;
|
|
3104
3108
|
}
|
|
3105
3109
|
return t;
|
|
3106
|
-
}(
|
|
3107
|
-
),
|
|
3110
|
+
}(xe)
|
|
3111
|
+
), mn = (
|
|
3108
3112
|
/** @class */
|
|
3109
3113
|
function(e) {
|
|
3110
|
-
|
|
3114
|
+
_e(t, e);
|
|
3111
3115
|
function t(r, n) {
|
|
3112
|
-
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;
|
|
3113
3117
|
}
|
|
3114
3118
|
return t;
|
|
3115
|
-
}(
|
|
3116
|
-
),
|
|
3119
|
+
}(xe)
|
|
3120
|
+
), O;
|
|
3117
3121
|
(function(e) {
|
|
3118
3122
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3119
|
-
})(
|
|
3120
|
-
function
|
|
3123
|
+
})(O || (O = {}));
|
|
3124
|
+
function dn(e) {
|
|
3121
3125
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3122
3126
|
var n = t[t.length - 1];
|
|
3123
|
-
return !n || n.type !==
|
|
3127
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3124
3128
|
}, []);
|
|
3125
3129
|
}
|
|
3126
|
-
function
|
|
3130
|
+
function pn(e) {
|
|
3127
3131
|
return typeof e == "function";
|
|
3128
3132
|
}
|
|
3129
|
-
function
|
|
3133
|
+
function me(e, t, r, n, i, s, a) {
|
|
3130
3134
|
if (e.length === 1 && Qe(e[0]))
|
|
3131
3135
|
return [
|
|
3132
3136
|
{
|
|
3133
|
-
type:
|
|
3137
|
+
type: O.literal,
|
|
3134
3138
|
value: e[0].value
|
|
3135
3139
|
}
|
|
3136
3140
|
];
|
|
@@ -3138,41 +3142,41 @@ function ce(e, t, r, n, i, s, a) {
|
|
|
3138
3142
|
var h = u[l];
|
|
3139
3143
|
if (Qe(h)) {
|
|
3140
3144
|
o.push({
|
|
3141
|
-
type:
|
|
3145
|
+
type: O.literal,
|
|
3142
3146
|
value: h.value
|
|
3143
3147
|
});
|
|
3144
3148
|
continue;
|
|
3145
3149
|
}
|
|
3146
|
-
if (
|
|
3150
|
+
if ($r(h)) {
|
|
3147
3151
|
typeof s == "number" && o.push({
|
|
3148
|
-
type:
|
|
3152
|
+
type: O.literal,
|
|
3149
3153
|
value: r.getNumberFormat(t).format(s)
|
|
3150
3154
|
});
|
|
3151
3155
|
continue;
|
|
3152
3156
|
}
|
|
3153
3157
|
var f = h.value;
|
|
3154
3158
|
if (!(i && f in i))
|
|
3155
|
-
throw new
|
|
3159
|
+
throw new mn(f, a);
|
|
3156
3160
|
var c = i[f];
|
|
3157
|
-
if (
|
|
3161
|
+
if (Mr(h)) {
|
|
3158
3162
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3159
|
-
type: typeof c == "string" ?
|
|
3163
|
+
type: typeof c == "string" ? O.literal : O.object,
|
|
3160
3164
|
value: c
|
|
3161
3165
|
});
|
|
3162
3166
|
continue;
|
|
3163
3167
|
}
|
|
3164
3168
|
if (yt(h)) {
|
|
3165
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3169
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3166
3170
|
o.push({
|
|
3167
|
-
type:
|
|
3171
|
+
type: O.literal,
|
|
3168
3172
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3169
3173
|
});
|
|
3170
3174
|
continue;
|
|
3171
3175
|
}
|
|
3172
3176
|
if (Et(h)) {
|
|
3173
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3177
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3174
3178
|
o.push({
|
|
3175
|
-
type:
|
|
3179
|
+
type: O.literal,
|
|
3176
3180
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3177
3181
|
});
|
|
3178
3182
|
continue;
|
|
@@ -3180,61 +3184,61 @@ function ce(e, t, r, n, i, s, a) {
|
|
|
3180
3184
|
if (bt(h)) {
|
|
3181
3185
|
var p = typeof h.style == "string" ? n.number[h.style] : Ht(h.style) ? h.style.parsedOptions : void 0;
|
|
3182
3186
|
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3183
|
-
type:
|
|
3187
|
+
type: O.literal,
|
|
3184
3188
|
value: r.getNumberFormat(t, p).format(c)
|
|
3185
3189
|
});
|
|
3186
3190
|
continue;
|
|
3187
3191
|
}
|
|
3188
3192
|
if (vt(h)) {
|
|
3189
|
-
var
|
|
3190
|
-
if (!
|
|
3191
|
-
throw new
|
|
3192
|
-
var B =
|
|
3193
|
+
var y = h.children, T = h.value, P = i[T];
|
|
3194
|
+
if (!pn(P))
|
|
3195
|
+
throw new cn(T, "function", a);
|
|
3196
|
+
var B = me(y, t, r, n, i, s), C = P(B.map(function(d) {
|
|
3193
3197
|
return d.value;
|
|
3194
3198
|
}));
|
|
3195
|
-
Array.isArray(
|
|
3199
|
+
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(d) {
|
|
3196
3200
|
return {
|
|
3197
|
-
type: typeof d == "string" ?
|
|
3201
|
+
type: typeof d == "string" ? O.literal : O.object,
|
|
3198
3202
|
value: d
|
|
3199
3203
|
};
|
|
3200
3204
|
}));
|
|
3201
3205
|
}
|
|
3202
3206
|
if (_t(h)) {
|
|
3203
|
-
var
|
|
3204
|
-
if (!
|
|
3207
|
+
var x = h.options[c] || h.options.other;
|
|
3208
|
+
if (!x)
|
|
3205
3209
|
throw new rt(h.value, c, Object.keys(h.options), a);
|
|
3206
|
-
o.push.apply(o,
|
|
3210
|
+
o.push.apply(o, me(x.value, t, r, n, i));
|
|
3207
3211
|
continue;
|
|
3208
3212
|
}
|
|
3209
3213
|
if (xt(h)) {
|
|
3210
|
-
var
|
|
3211
|
-
if (!
|
|
3214
|
+
var x = h.options["=".concat(c)];
|
|
3215
|
+
if (!x) {
|
|
3212
3216
|
if (!Intl.PluralRules)
|
|
3213
|
-
throw new
|
|
3217
|
+
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3214
3218
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3215
|
-
`,
|
|
3216
|
-
var
|
|
3217
|
-
|
|
3219
|
+
`, q.MISSING_INTL_API, a);
|
|
3220
|
+
var v = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3221
|
+
x = h.options[v] || h.options.other;
|
|
3218
3222
|
}
|
|
3219
|
-
if (!
|
|
3223
|
+
if (!x)
|
|
3220
3224
|
throw new rt(h.value, c, Object.keys(h.options), a);
|
|
3221
|
-
o.push.apply(o,
|
|
3225
|
+
o.push.apply(o, me(x.value, t, r, n, i, c - (h.offset || 0)));
|
|
3222
3226
|
continue;
|
|
3223
3227
|
}
|
|
3224
3228
|
}
|
|
3225
|
-
return
|
|
3229
|
+
return dn(o);
|
|
3226
3230
|
}
|
|
3227
|
-
function
|
|
3228
|
-
return t ?
|
|
3229
|
-
return r[n] =
|
|
3231
|
+
function gn(e, t) {
|
|
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;
|
|
3230
3234
|
}, {})) : e;
|
|
3231
3235
|
}
|
|
3232
|
-
function
|
|
3236
|
+
function bn(e, t) {
|
|
3233
3237
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3234
|
-
return r[n] =
|
|
3235
|
-
},
|
|
3238
|
+
return r[n] = gn(e[n], t[n]), r;
|
|
3239
|
+
}, D({}, e)) : e;
|
|
3236
3240
|
}
|
|
3237
|
-
function
|
|
3241
|
+
function Oe(e) {
|
|
3238
3242
|
return {
|
|
3239
3243
|
create: function() {
|
|
3240
3244
|
return {
|
|
@@ -3248,39 +3252,39 @@ function Ae(e) {
|
|
|
3248
3252
|
}
|
|
3249
3253
|
};
|
|
3250
3254
|
}
|
|
3251
|
-
function
|
|
3255
|
+
function yn(e) {
|
|
3252
3256
|
return e === void 0 && (e = {
|
|
3253
3257
|
number: {},
|
|
3254
3258
|
dateTime: {},
|
|
3255
3259
|
pluralRules: {}
|
|
3256
3260
|
}), {
|
|
3257
|
-
getNumberFormat:
|
|
3261
|
+
getNumberFormat: Se(function() {
|
|
3258
3262
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3259
3263
|
r[n] = arguments[n];
|
|
3260
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3264
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3261
3265
|
}, {
|
|
3262
|
-
cache:
|
|
3263
|
-
strategy:
|
|
3266
|
+
cache: Oe(e.number),
|
|
3267
|
+
strategy: Ae.variadic
|
|
3264
3268
|
}),
|
|
3265
|
-
getDateTimeFormat:
|
|
3269
|
+
getDateTimeFormat: Se(function() {
|
|
3266
3270
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3267
3271
|
r[n] = arguments[n];
|
|
3268
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3272
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3269
3273
|
}, {
|
|
3270
|
-
cache:
|
|
3271
|
-
strategy:
|
|
3274
|
+
cache: Oe(e.dateTime),
|
|
3275
|
+
strategy: Ae.variadic
|
|
3272
3276
|
}),
|
|
3273
|
-
getPluralRules:
|
|
3277
|
+
getPluralRules: Se(function() {
|
|
3274
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3275
3279
|
r[n] = arguments[n];
|
|
3276
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3280
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3277
3281
|
}, {
|
|
3278
|
-
cache:
|
|
3279
|
-
strategy:
|
|
3282
|
+
cache: Oe(e.pluralRules),
|
|
3283
|
+
strategy: Ae.variadic
|
|
3280
3284
|
})
|
|
3281
3285
|
};
|
|
3282
3286
|
}
|
|
3283
|
-
var
|
|
3287
|
+
var En = (
|
|
3284
3288
|
/** @class */
|
|
3285
3289
|
function() {
|
|
3286
3290
|
function e(t, r, n, i) {
|
|
@@ -3295,11 +3299,11 @@ var yn = (
|
|
|
3295
3299
|
if (u.length === 1)
|
|
3296
3300
|
return u[0].value;
|
|
3297
3301
|
var h = u.reduce(function(f, c) {
|
|
3298
|
-
return !f.length || c.type !==
|
|
3302
|
+
return !f.length || c.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3299
3303
|
}, []);
|
|
3300
3304
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3301
3305
|
}, this.formatToParts = function(l) {
|
|
3302
|
-
return
|
|
3306
|
+
return me(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3303
3307
|
}, this.resolvedOptions = function() {
|
|
3304
3308
|
var l;
|
|
3305
3309
|
return {
|
|
@@ -3313,12 +3317,12 @@ var yn = (
|
|
|
3313
3317
|
var a = i || {};
|
|
3314
3318
|
a.formatters;
|
|
3315
3319
|
var o = Ar(a, ["formatters"]);
|
|
3316
|
-
this.ast = e.__parse(t,
|
|
3320
|
+
this.ast = e.__parse(t, D(D({}, o), { locale: this.resolvedLocale }));
|
|
3317
3321
|
} else
|
|
3318
3322
|
this.ast = t;
|
|
3319
3323
|
if (!Array.isArray(this.ast))
|
|
3320
3324
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3321
|
-
this.formats =
|
|
3325
|
+
this.formats = bn(e.formats, n), this.formatters = i && i.formatters || yn(this.formatterCache);
|
|
3322
3326
|
}
|
|
3323
3327
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3324
3328
|
get: function() {
|
|
@@ -3331,7 +3335,7 @@ var yn = (
|
|
|
3331
3335
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3332
3336
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3333
3337
|
}
|
|
3334
|
-
}, e.__parse =
|
|
3338
|
+
}, e.__parse = fn, e.formats = {
|
|
3335
3339
|
number: {
|
|
3336
3340
|
integer: {
|
|
3337
3341
|
maximumFractionDigits: 0
|
|
@@ -3392,7 +3396,7 @@ var yn = (
|
|
|
3392
3396
|
}, e;
|
|
3393
3397
|
}()
|
|
3394
3398
|
);
|
|
3395
|
-
function
|
|
3399
|
+
function _n(e, t) {
|
|
3396
3400
|
if (t == null)
|
|
3397
3401
|
return;
|
|
3398
3402
|
if (t in e)
|
|
@@ -3413,92 +3417,92 @@ function En(e, t) {
|
|
|
3413
3417
|
n = void 0;
|
|
3414
3418
|
return n;
|
|
3415
3419
|
}
|
|
3416
|
-
const
|
|
3420
|
+
const F = {}, xn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), wt = (e, t) => {
|
|
3417
3421
|
if (t == null)
|
|
3418
3422
|
return;
|
|
3419
|
-
if (t in
|
|
3420
|
-
return
|
|
3421
|
-
const r =
|
|
3423
|
+
if (t in F && e in F[t])
|
|
3424
|
+
return F[t][e];
|
|
3425
|
+
const r = ve(t);
|
|
3422
3426
|
for (let n = 0; n < r.length; n++) {
|
|
3423
|
-
const i = r[n], s =
|
|
3427
|
+
const i = r[n], s = Hn(i, e);
|
|
3424
3428
|
if (s)
|
|
3425
|
-
return
|
|
3429
|
+
return xn(e, t, s);
|
|
3426
3430
|
}
|
|
3427
3431
|
};
|
|
3428
3432
|
let ke;
|
|
3429
|
-
const
|
|
3430
|
-
function
|
|
3433
|
+
const ue = Ee({});
|
|
3434
|
+
function vn(e) {
|
|
3431
3435
|
return ke[e] || null;
|
|
3432
3436
|
}
|
|
3433
|
-
function
|
|
3437
|
+
function It(e) {
|
|
3434
3438
|
return e in ke;
|
|
3435
3439
|
}
|
|
3436
|
-
function
|
|
3437
|
-
if (!
|
|
3440
|
+
function Hn(e, t) {
|
|
3441
|
+
if (!It(e))
|
|
3438
3442
|
return null;
|
|
3439
|
-
const r =
|
|
3440
|
-
return
|
|
3443
|
+
const r = vn(e);
|
|
3444
|
+
return _n(r, t);
|
|
3441
3445
|
}
|
|
3442
|
-
function
|
|
3446
|
+
function Tn(e) {
|
|
3443
3447
|
if (e == null)
|
|
3444
3448
|
return;
|
|
3445
|
-
const t =
|
|
3449
|
+
const t = ve(e);
|
|
3446
3450
|
for (let r = 0; r < t.length; r++) {
|
|
3447
3451
|
const n = t[r];
|
|
3448
|
-
if (
|
|
3452
|
+
if (It(n))
|
|
3449
3453
|
return n;
|
|
3450
3454
|
}
|
|
3451
3455
|
}
|
|
3452
|
-
function
|
|
3453
|
-
delete
|
|
3456
|
+
function Ct(e, ...t) {
|
|
3457
|
+
delete F[e], ue.update((r) => (r[e] = Sr.all([r[e] || {}, ...t]), r));
|
|
3454
3458
|
}
|
|
3455
|
-
|
|
3456
|
-
[
|
|
3459
|
+
K(
|
|
3460
|
+
[ue],
|
|
3457
3461
|
([e]) => Object.keys(e)
|
|
3458
3462
|
);
|
|
3459
|
-
|
|
3460
|
-
const
|
|
3461
|
-
function
|
|
3462
|
-
|
|
3463
|
+
ue.subscribe((e) => ke = e);
|
|
3464
|
+
const de = {};
|
|
3465
|
+
function Bn(e, t) {
|
|
3466
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3463
3467
|
}
|
|
3464
|
-
function
|
|
3465
|
-
return
|
|
3468
|
+
function Lt(e) {
|
|
3469
|
+
return de[e];
|
|
3466
3470
|
}
|
|
3467
|
-
function
|
|
3468
|
-
return
|
|
3469
|
-
const r =
|
|
3471
|
+
function Sn(e) {
|
|
3472
|
+
return ve(e).map((t) => {
|
|
3473
|
+
const r = Lt(t);
|
|
3470
3474
|
return [t, r ? [...r] : []];
|
|
3471
3475
|
}).filter(([, t]) => t.length > 0);
|
|
3472
3476
|
}
|
|
3473
|
-
function
|
|
3474
|
-
return e == null ? !1 :
|
|
3477
|
+
function Ge(e) {
|
|
3478
|
+
return e == null ? !1 : ve(e).some(
|
|
3475
3479
|
(t) => {
|
|
3476
3480
|
var r;
|
|
3477
|
-
return (r =
|
|
3481
|
+
return (r = Lt(t)) == null ? void 0 : r.size;
|
|
3478
3482
|
}
|
|
3479
3483
|
);
|
|
3480
3484
|
}
|
|
3481
|
-
function
|
|
3485
|
+
function An(e, t) {
|
|
3482
3486
|
return Promise.all(
|
|
3483
|
-
t.map((n) => (
|
|
3484
|
-
).then((n) =>
|
|
3487
|
+
t.map((n) => (Bn(e, n), n().then((i) => i.default || i)))
|
|
3488
|
+
).then((n) => Ct(e, ...n));
|
|
3485
3489
|
}
|
|
3486
|
-
const
|
|
3490
|
+
const te = {};
|
|
3487
3491
|
function Mt(e) {
|
|
3488
|
-
if (!
|
|
3489
|
-
return e in
|
|
3490
|
-
const t =
|
|
3491
|
-
return
|
|
3492
|
+
if (!Ge(e))
|
|
3493
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3494
|
+
const t = Sn(e);
|
|
3495
|
+
return te[e] = Promise.all(
|
|
3492
3496
|
t.map(
|
|
3493
|
-
([r, n]) =>
|
|
3497
|
+
([r, n]) => An(r, n)
|
|
3494
3498
|
)
|
|
3495
3499
|
).then(() => {
|
|
3496
|
-
if (
|
|
3500
|
+
if (Ge(e))
|
|
3497
3501
|
return Mt(e);
|
|
3498
|
-
delete
|
|
3499
|
-
}),
|
|
3502
|
+
delete te[e];
|
|
3503
|
+
}), te[e];
|
|
3500
3504
|
}
|
|
3501
|
-
const
|
|
3505
|
+
const Pn = {
|
|
3502
3506
|
number: {
|
|
3503
3507
|
scientific: { notation: "scientific" },
|
|
3504
3508
|
engineering: { notation: "engineering" },
|
|
@@ -3527,150 +3531,150 @@ const An = {
|
|
|
3527
3531
|
timeZoneName: "short"
|
|
3528
3532
|
}
|
|
3529
3533
|
}
|
|
3530
|
-
},
|
|
3534
|
+
}, On = {
|
|
3531
3535
|
fallbackLocale: null,
|
|
3532
3536
|
loadingDelay: 200,
|
|
3533
|
-
formats:
|
|
3537
|
+
formats: Pn,
|
|
3534
3538
|
warnOnMissingMessages: !0,
|
|
3535
3539
|
handleMissingMessage: void 0,
|
|
3536
3540
|
ignoreTag: !0
|
|
3537
|
-
}, Nn =
|
|
3538
|
-
function
|
|
3541
|
+
}, Nn = On;
|
|
3542
|
+
function Y() {
|
|
3539
3543
|
return Nn;
|
|
3540
3544
|
}
|
|
3541
|
-
const
|
|
3542
|
-
var
|
|
3545
|
+
const Ne = Ee(!1);
|
|
3546
|
+
var wn = Object.defineProperty, In = Object.defineProperties, Cn = Object.getOwnPropertyDescriptors, nt = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, Mn = Object.prototype.propertyIsEnumerable, it = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $n = (e, t) => {
|
|
3543
3547
|
for (var r in t || (t = {}))
|
|
3544
3548
|
Ln.call(t, r) && it(e, r, t[r]);
|
|
3545
3549
|
if (nt)
|
|
3546
3550
|
for (var r of nt(t))
|
|
3547
|
-
|
|
3551
|
+
Mn.call(t, r) && it(e, r, t[r]);
|
|
3548
3552
|
return e;
|
|
3549
|
-
},
|
|
3550
|
-
let
|
|
3551
|
-
const
|
|
3553
|
+
}, Rn = (e, t) => In(e, Cn(t));
|
|
3554
|
+
let je;
|
|
3555
|
+
const ge = Ee(null);
|
|
3552
3556
|
function st(e) {
|
|
3553
3557
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3554
3558
|
}
|
|
3555
|
-
function
|
|
3559
|
+
function ve(e, t = Y().fallbackLocale) {
|
|
3556
3560
|
const r = st(e);
|
|
3557
3561
|
return t ? [.../* @__PURE__ */ new Set([...r, ...st(t)])] : r;
|
|
3558
3562
|
}
|
|
3559
|
-
function
|
|
3560
|
-
return
|
|
3563
|
+
function V() {
|
|
3564
|
+
return je ?? void 0;
|
|
3561
3565
|
}
|
|
3562
|
-
|
|
3563
|
-
|
|
3566
|
+
ge.subscribe((e) => {
|
|
3567
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3564
3568
|
});
|
|
3565
|
-
const
|
|
3566
|
-
if (e &&
|
|
3567
|
-
const { loadingDelay: t } =
|
|
3569
|
+
const Dn = (e) => {
|
|
3570
|
+
if (e && Tn(e) && Ge(e)) {
|
|
3571
|
+
const { loadingDelay: t } = Y();
|
|
3568
3572
|
let r;
|
|
3569
|
-
return typeof window < "u" &&
|
|
3570
|
-
() =>
|
|
3573
|
+
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
3574
|
+
() => Ne.set(!0),
|
|
3571
3575
|
t
|
|
3572
|
-
) :
|
|
3573
|
-
|
|
3576
|
+
) : Ne.set(!0), Mt(e).then(() => {
|
|
3577
|
+
ge.set(e);
|
|
3574
3578
|
}).finally(() => {
|
|
3575
|
-
clearTimeout(r),
|
|
3579
|
+
clearTimeout(r), Ne.set(!1);
|
|
3576
3580
|
});
|
|
3577
3581
|
}
|
|
3578
|
-
return
|
|
3579
|
-
},
|
|
3580
|
-
set:
|
|
3581
|
-
}),
|
|
3582
|
+
return ge.set(e);
|
|
3583
|
+
}, he = Rn($n({}, ge), {
|
|
3584
|
+
set: Dn
|
|
3585
|
+
}), He = (e) => {
|
|
3582
3586
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3583
3587
|
return (n) => {
|
|
3584
3588
|
const i = JSON.stringify(n);
|
|
3585
3589
|
return i in t ? t[i] : t[i] = e(n);
|
|
3586
3590
|
};
|
|
3587
3591
|
};
|
|
3588
|
-
var
|
|
3592
|
+
var Un = Object.defineProperty, be = Object.getOwnPropertySymbols, $t = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
|
|
3589
3593
|
for (var r in t || (t = {}))
|
|
3590
3594
|
$t.call(t, r) && ot(e, r, t[r]);
|
|
3591
|
-
if (
|
|
3592
|
-
for (var r of
|
|
3595
|
+
if (be)
|
|
3596
|
+
for (var r of be(t))
|
|
3593
3597
|
Rt.call(t, r) && ot(e, r, t[r]);
|
|
3594
3598
|
return e;
|
|
3595
|
-
},
|
|
3599
|
+
}, ee = (e, t) => {
|
|
3596
3600
|
var r = {};
|
|
3597
3601
|
for (var n in e)
|
|
3598
3602
|
$t.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3599
|
-
if (e != null &&
|
|
3600
|
-
for (var n of
|
|
3603
|
+
if (e != null && be)
|
|
3604
|
+
for (var n of be(e))
|
|
3601
3605
|
t.indexOf(n) < 0 && Rt.call(e, n) && (r[n] = e[n]);
|
|
3602
3606
|
return r;
|
|
3603
3607
|
};
|
|
3604
|
-
const
|
|
3605
|
-
const { formats: r } =
|
|
3608
|
+
const oe = (e, t) => {
|
|
3609
|
+
const { formats: r } = Y();
|
|
3606
3610
|
if (e in r && t in r[e])
|
|
3607
3611
|
return r[e][t];
|
|
3608
3612
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3609
|
-
},
|
|
3613
|
+
}, Fn = He(
|
|
3610
3614
|
(e) => {
|
|
3611
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3615
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3612
3616
|
if (r == null)
|
|
3613
3617
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3614
|
-
return n && (i =
|
|
3618
|
+
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3615
3619
|
}
|
|
3616
|
-
),
|
|
3620
|
+
), Gn = He(
|
|
3617
3621
|
(e) => {
|
|
3618
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3622
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3619
3623
|
if (r == null)
|
|
3620
3624
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3621
|
-
return n ? i =
|
|
3625
|
+
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3622
3626
|
}
|
|
3623
|
-
),
|
|
3627
|
+
), jn = He(
|
|
3624
3628
|
(e) => {
|
|
3625
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3629
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3626
3630
|
if (r == null)
|
|
3627
3631
|
throw new Error(
|
|
3628
3632
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3629
3633
|
);
|
|
3630
|
-
return n ? i =
|
|
3634
|
+
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3631
3635
|
}
|
|
3632
|
-
),
|
|
3636
|
+
), kn = (e = {}) => {
|
|
3633
3637
|
var t = e, {
|
|
3634
|
-
locale: r =
|
|
3635
|
-
} = t, n =
|
|
3636
|
-
"locale"
|
|
3637
|
-
]);
|
|
3638
|
-
return Un(Ve({ locale: r }, n));
|
|
3639
|
-
}, kn = (e = {}) => {
|
|
3640
|
-
var t = e, {
|
|
3641
|
-
locale: r = k()
|
|
3642
|
-
} = t, n = K(t, [
|
|
3638
|
+
locale: r = V()
|
|
3639
|
+
} = t, n = ee(t, [
|
|
3643
3640
|
"locale"
|
|
3644
3641
|
]);
|
|
3645
3642
|
return Fn(Ve({ locale: r }, n));
|
|
3646
3643
|
}, Vn = (e = {}) => {
|
|
3647
3644
|
var t = e, {
|
|
3648
|
-
locale: r =
|
|
3649
|
-
} = t, n =
|
|
3645
|
+
locale: r = V()
|
|
3646
|
+
} = t, n = ee(t, [
|
|
3650
3647
|
"locale"
|
|
3651
3648
|
]);
|
|
3652
3649
|
return Gn(Ve({ locale: r }, n));
|
|
3653
|
-
}, Xn =
|
|
3650
|
+
}, Xn = (e = {}) => {
|
|
3651
|
+
var t = e, {
|
|
3652
|
+
locale: r = V()
|
|
3653
|
+
} = t, n = ee(t, [
|
|
3654
|
+
"locale"
|
|
3655
|
+
]);
|
|
3656
|
+
return jn(Ve({ locale: r }, n));
|
|
3657
|
+
}, zn = He(
|
|
3654
3658
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3655
|
-
(e, t =
|
|
3656
|
-
ignoreTag:
|
|
3659
|
+
(e, t = V()) => new En(e, t, Y().formats, {
|
|
3660
|
+
ignoreTag: Y().ignoreTag
|
|
3657
3661
|
})
|
|
3658
|
-
),
|
|
3662
|
+
), Wn = (e, t = {}) => {
|
|
3659
3663
|
var r, n, i, s;
|
|
3660
3664
|
let a = t;
|
|
3661
3665
|
typeof e == "object" && (a = e, e = a.id);
|
|
3662
3666
|
const {
|
|
3663
3667
|
values: o,
|
|
3664
|
-
locale: l =
|
|
3668
|
+
locale: l = V(),
|
|
3665
3669
|
default: u
|
|
3666
3670
|
} = a;
|
|
3667
3671
|
if (l == null)
|
|
3668
3672
|
throw new Error(
|
|
3669
3673
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3670
3674
|
);
|
|
3671
|
-
let h =
|
|
3675
|
+
let h = wt(e, l);
|
|
3672
3676
|
if (!h)
|
|
3673
|
-
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;
|
|
3674
3678
|
else if (typeof h != "string")
|
|
3675
3679
|
return console.warn(
|
|
3676
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.`
|
|
@@ -3679,7 +3683,7 @@ const se = (e, t) => {
|
|
|
3679
3683
|
return h;
|
|
3680
3684
|
let f = h;
|
|
3681
3685
|
try {
|
|
3682
|
-
f =
|
|
3686
|
+
f = zn(h, l).format(o);
|
|
3683
3687
|
} catch (c) {
|
|
3684
3688
|
c instanceof Error && console.warn(
|
|
3685
3689
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3687,13 +3691,13 @@ const se = (e, t) => {
|
|
|
3687
3691
|
);
|
|
3688
3692
|
}
|
|
3689
3693
|
return f;
|
|
3690
|
-
},
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3694
|
+
}, Zn = (e, t) => Xn(t).format(e), Qn = (e, t) => Vn(t).format(e), Jn = (e, t) => kn(t).format(e), qn = (e, t = V()) => wt(e, t), Yn = K([he, ue], () => Wn);
|
|
3695
|
+
K([he], () => Zn);
|
|
3696
|
+
K([he], () => Qn);
|
|
3697
|
+
K([he], () => Jn);
|
|
3698
|
+
K([he, ue], () => qn);
|
|
3695
3699
|
function at(e, t) {
|
|
3696
|
-
|
|
3700
|
+
Ct(e, t);
|
|
3697
3701
|
}
|
|
3698
3702
|
const ut = {
|
|
3699
3703
|
en: {
|
|
@@ -3785,7 +3789,7 @@ const ut = {
|
|
|
3785
3789
|
days: "days"
|
|
3786
3790
|
}
|
|
3787
3791
|
};
|
|
3788
|
-
function
|
|
3792
|
+
function Kn(e) {
|
|
3789
3793
|
Vt(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)}");
|
|
3790
3794
|
}
|
|
3791
3795
|
function ht(e) {
|
|
@@ -3801,45 +3805,45 @@ function ht(e) {
|
|
|
3801
3805
|
/*enddate*/
|
|
3802
3806
|
e[1]
|
|
3803
3807
|
) + ""
|
|
3804
|
-
), l, u, h, f, c, p,
|
|
3808
|
+
), l, u, h, f, c, p, y;
|
|
3805
3809
|
function T(d, S) {
|
|
3806
3810
|
return (
|
|
3807
3811
|
/*status*/
|
|
3808
3812
|
d[2] == "Finished" || /*status*/
|
|
3809
3813
|
d[2] == "Closing" || /*status*/
|
|
3810
|
-
d[2] == "Closed" ?
|
|
3814
|
+
d[2] == "Closed" ? ri : (
|
|
3811
3815
|
/*tournamentUntilStartDays*/
|
|
3812
|
-
d[5] > 0 ?
|
|
3816
|
+
d[5] > 0 ? ti : ei
|
|
3813
3817
|
)
|
|
3814
3818
|
);
|
|
3815
3819
|
}
|
|
3816
3820
|
let P = T(e), B = P(e);
|
|
3817
|
-
function
|
|
3821
|
+
function C(d, S) {
|
|
3818
3822
|
if (
|
|
3819
3823
|
/*status*/
|
|
3820
3824
|
d[2] == "Finished" || /*status*/
|
|
3821
3825
|
d[2] == "Closing" || /*status*/
|
|
3822
3826
|
d[2] == "Closed"
|
|
3823
3827
|
)
|
|
3824
|
-
return
|
|
3828
|
+
return si;
|
|
3825
3829
|
if (
|
|
3826
3830
|
/*tournamentUntilStartDays*/
|
|
3827
3831
|
d[5] > 0
|
|
3828
3832
|
)
|
|
3829
|
-
return
|
|
3833
|
+
return ii;
|
|
3830
3834
|
if (
|
|
3831
3835
|
/*tournamentLeftDays*/
|
|
3832
3836
|
d[4] > 0
|
|
3833
3837
|
)
|
|
3834
|
-
return
|
|
3838
|
+
return ni;
|
|
3835
3839
|
}
|
|
3836
|
-
let
|
|
3840
|
+
let x = C(e), v = x && x(e);
|
|
3837
3841
|
return {
|
|
3838
3842
|
c() {
|
|
3839
|
-
t =
|
|
3843
|
+
t = w("div"), r = w("div"), i = G(n), s = re(), a = w("div"), l = G(o), u = re(), h = w("div"), f = w("div"), B.c(), c = re(), v && v.c(), E(r, "class", "StartDate"), E(r, "part", "StartDate"), E(a, "class", "EndDate"), E(a, "part", "EndDate"), E(t, "class", "TournamentDates"), E(t, "part", "TournamentDates"), E(f, "class", "ProgressBar"), E(f, "part", "ProgressBar"), E(h, "class", "ProgressBarWrapper"), E(h, "part", "ProgressBarWrapper");
|
|
3840
3844
|
},
|
|
3841
3845
|
m(d, S) {
|
|
3842
|
-
$(d, t, S),
|
|
3846
|
+
$(d, t, S), N(t, r), N(r, i), N(t, s), N(t, a), N(a, l), $(d, u, S), $(d, h, S), N(h, f), B.m(f, null), N(f, c), v && v.m(f, null), p || (y = kt(
|
|
3843
3847
|
/*getDuration*/
|
|
3844
3848
|
e[9].call(null, h)
|
|
3845
3849
|
), p = !0);
|
|
@@ -3850,23 +3854,23 @@ function ht(e) {
|
|
|
3850
3854
|
d[10](
|
|
3851
3855
|
/*startdate*/
|
|
3852
3856
|
d[0]
|
|
3853
|
-
) + "") &&
|
|
3857
|
+
) + "") && k(i, n), S & /*enddate*/
|
|
3854
3858
|
2 && o !== (o = /*formatDate*/
|
|
3855
3859
|
d[10](
|
|
3856
3860
|
/*enddate*/
|
|
3857
3861
|
d[1]
|
|
3858
|
-
) + "") &&
|
|
3862
|
+
) + "") && k(l, o), P === (P = T(d)) && B ? B.p(d, S) : (B.d(1), B = P(d), B && (B.c(), B.m(f, c))), x === (x = C(d)) && v ? v.p(d, S) : (v && v.d(1), v = x && x(d), v && (v.c(), v.m(f, null)));
|
|
3859
3863
|
},
|
|
3860
3864
|
d(d) {
|
|
3861
|
-
d && (M(t), M(u), M(h)), B.d(),
|
|
3865
|
+
d && (M(t), M(u), M(h)), B.d(), v && v.d(), p = !1, y();
|
|
3862
3866
|
}
|
|
3863
3867
|
};
|
|
3864
3868
|
}
|
|
3865
|
-
function
|
|
3869
|
+
function ei(e) {
|
|
3866
3870
|
let t;
|
|
3867
3871
|
return {
|
|
3868
3872
|
c() {
|
|
3869
|
-
t =
|
|
3873
|
+
t = w("div"), E(t, "class", "ProgressBarFill"), E(t, "part", "ProgressBarFill"), ze(
|
|
3870
3874
|
t,
|
|
3871
3875
|
"width",
|
|
3872
3876
|
/*getProgress*/
|
|
@@ -3890,67 +3894,67 @@ function Kn(e) {
|
|
|
3890
3894
|
}
|
|
3891
3895
|
};
|
|
3892
3896
|
}
|
|
3893
|
-
function
|
|
3897
|
+
function ti(e) {
|
|
3894
3898
|
let t;
|
|
3895
3899
|
return {
|
|
3896
3900
|
c() {
|
|
3897
|
-
t =
|
|
3901
|
+
t = w("div"), E(t, "class", "ProgressBarFillStarting"), E(t, "part", "ProgressBarFillStarting");
|
|
3898
3902
|
},
|
|
3899
3903
|
m(r, n) {
|
|
3900
3904
|
$(r, t, n);
|
|
3901
3905
|
},
|
|
3902
|
-
p:
|
|
3906
|
+
p: I,
|
|
3903
3907
|
d(r) {
|
|
3904
3908
|
r && M(t);
|
|
3905
3909
|
}
|
|
3906
3910
|
};
|
|
3907
3911
|
}
|
|
3908
|
-
function
|
|
3912
|
+
function ri(e) {
|
|
3909
3913
|
let t;
|
|
3910
3914
|
return {
|
|
3911
3915
|
c() {
|
|
3912
|
-
t =
|
|
3916
|
+
t = w("div"), E(t, "class", "ProgressBarFillEnd"), E(t, "part", "ProgressBarFillEnd");
|
|
3913
3917
|
},
|
|
3914
3918
|
m(r, n) {
|
|
3915
3919
|
$(r, t, n);
|
|
3916
3920
|
},
|
|
3917
|
-
p:
|
|
3921
|
+
p: I,
|
|
3918
3922
|
d(r) {
|
|
3919
3923
|
r && M(t);
|
|
3920
3924
|
}
|
|
3921
3925
|
};
|
|
3922
3926
|
}
|
|
3923
|
-
function
|
|
3927
|
+
function ni(e) {
|
|
3924
3928
|
let t, r, n, i = (
|
|
3925
3929
|
/*$_*/
|
|
3926
3930
|
e[8]("left") + ""
|
|
3927
3931
|
), s;
|
|
3928
3932
|
return {
|
|
3929
3933
|
c() {
|
|
3930
|
-
t =
|
|
3934
|
+
t = w("div"), r = G(
|
|
3931
3935
|
/*showRemain*/
|
|
3932
3936
|
e[6]
|
|
3933
|
-
), n =
|
|
3937
|
+
), n = re(), s = G(i), E(t, "class", "Remaining"), E(t, "part", "Remaining");
|
|
3934
3938
|
},
|
|
3935
3939
|
m(a, o) {
|
|
3936
|
-
$(a, t, o),
|
|
3940
|
+
$(a, t, o), N(t, r), N(t, n), N(t, s);
|
|
3937
3941
|
},
|
|
3938
3942
|
p(a, o) {
|
|
3939
3943
|
o & /*showRemain*/
|
|
3940
|
-
64 &&
|
|
3944
|
+
64 && k(
|
|
3941
3945
|
r,
|
|
3942
3946
|
/*showRemain*/
|
|
3943
3947
|
a[6]
|
|
3944
3948
|
), o & /*$_*/
|
|
3945
3949
|
256 && i !== (i = /*$_*/
|
|
3946
|
-
a[8]("left") + "") &&
|
|
3950
|
+
a[8]("left") + "") && k(s, i);
|
|
3947
3951
|
},
|
|
3948
3952
|
d(a) {
|
|
3949
3953
|
a && M(t);
|
|
3950
3954
|
}
|
|
3951
3955
|
};
|
|
3952
3956
|
}
|
|
3953
|
-
function
|
|
3957
|
+
function ii(e) {
|
|
3954
3958
|
let t, r = (
|
|
3955
3959
|
/*$_*/
|
|
3956
3960
|
e[8]("starting") + ""
|
|
@@ -3963,49 +3967,49 @@ function ni(e) {
|
|
|
3963
3967
|
), a;
|
|
3964
3968
|
return {
|
|
3965
3969
|
c() {
|
|
3966
|
-
t =
|
|
3970
|
+
t = w("div"), n = G(r), i = re(), a = G(s), E(t, "class", "Remaining"), E(t, "part", "Remaining");
|
|
3967
3971
|
},
|
|
3968
3972
|
m(o, l) {
|
|
3969
|
-
$(o, t, l),
|
|
3973
|
+
$(o, t, l), N(t, n), N(t, i), N(t, a);
|
|
3970
3974
|
},
|
|
3971
3975
|
p(o, l) {
|
|
3972
3976
|
l & /*$_*/
|
|
3973
3977
|
256 && r !== (r = /*$_*/
|
|
3974
|
-
o[8]("starting") + "") &&
|
|
3978
|
+
o[8]("starting") + "") && k(n, r), l & /*tournamentUntilStartDays*/
|
|
3975
3979
|
32 && s !== (s = /*getTextByDiff*/
|
|
3976
3980
|
o[11](
|
|
3977
3981
|
/*tournamentUntilStartDays*/
|
|
3978
3982
|
o[5]
|
|
3979
|
-
) + "") &&
|
|
3983
|
+
) + "") && k(a, s);
|
|
3980
3984
|
},
|
|
3981
3985
|
d(o) {
|
|
3982
3986
|
o && M(t);
|
|
3983
3987
|
}
|
|
3984
3988
|
};
|
|
3985
3989
|
}
|
|
3986
|
-
function
|
|
3990
|
+
function si(e) {
|
|
3987
3991
|
let t, r = (
|
|
3988
3992
|
/*$_*/
|
|
3989
3993
|
e[8]("finished") + ""
|
|
3990
3994
|
), n;
|
|
3991
3995
|
return {
|
|
3992
3996
|
c() {
|
|
3993
|
-
t =
|
|
3997
|
+
t = w("div"), n = G(r), E(t, "class", "Finished"), E(t, "part", "Finished");
|
|
3994
3998
|
},
|
|
3995
3999
|
m(i, s) {
|
|
3996
|
-
$(i, t, s),
|
|
4000
|
+
$(i, t, s), N(t, n);
|
|
3997
4001
|
},
|
|
3998
4002
|
p(i, s) {
|
|
3999
4003
|
s & /*$_*/
|
|
4000
4004
|
256 && r !== (r = /*$_*/
|
|
4001
|
-
i[8]("finished") + "") &&
|
|
4005
|
+
i[8]("finished") + "") && k(n, r);
|
|
4002
4006
|
},
|
|
4003
4007
|
d(i) {
|
|
4004
4008
|
i && M(t);
|
|
4005
4009
|
}
|
|
4006
4010
|
};
|
|
4007
4011
|
}
|
|
4008
|
-
function
|
|
4012
|
+
function oi(e) {
|
|
4009
4013
|
let t, r = (
|
|
4010
4014
|
/*startdate*/
|
|
4011
4015
|
e[0] && /*enddate*/
|
|
@@ -4013,7 +4017,7 @@ function si(e) {
|
|
|
4013
4017
|
);
|
|
4014
4018
|
return {
|
|
4015
4019
|
c() {
|
|
4016
|
-
t =
|
|
4020
|
+
t = w("div"), r && r.c(), E(t, "class", "TournamentDuration"), E(t, "part", "TournamentDuration");
|
|
4017
4021
|
},
|
|
4018
4022
|
m(n, i) {
|
|
4019
4023
|
$(n, t, i), r && r.m(t, null), e[16](t);
|
|
@@ -4023,21 +4027,21 @@ function si(e) {
|
|
|
4023
4027
|
n[0] && /*enddate*/
|
|
4024
4028
|
n[1] ? r ? r.p(n, i) : (r = ht(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4025
4029
|
},
|
|
4026
|
-
i:
|
|
4027
|
-
o:
|
|
4030
|
+
i: I,
|
|
4031
|
+
o: I,
|
|
4028
4032
|
d(n) {
|
|
4029
4033
|
n && M(t), r && r.d(), e[16](null);
|
|
4030
4034
|
}
|
|
4031
4035
|
};
|
|
4032
4036
|
}
|
|
4033
|
-
function
|
|
4037
|
+
function ai(e, t, r) {
|
|
4034
4038
|
let n, i;
|
|
4035
|
-
jt(e,
|
|
4036
|
-
let { startdate: s = "" } = t, { enddate: a = "" } = t, { status: o = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, c, p = "",
|
|
4039
|
+
jt(e, Yn, (m) => r(8, i = m));
|
|
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, p = "", y = "", T = "";
|
|
4037
4041
|
const P = () => {
|
|
4038
4042
|
fetch(f).then((A) => A.json()).then((A) => {
|
|
4039
|
-
Object.keys(A).forEach((
|
|
4040
|
-
at(
|
|
4043
|
+
Object.keys(A).forEach((L) => {
|
|
4044
|
+
at(L, A[L]);
|
|
4041
4045
|
});
|
|
4042
4046
|
}).catch((A) => {
|
|
4043
4047
|
console.log(A);
|
|
@@ -4046,30 +4050,30 @@ function oi(e, t, r) {
|
|
|
4046
4050
|
Object.keys(ut).forEach((m) => {
|
|
4047
4051
|
at(m, ut[m]);
|
|
4048
4052
|
});
|
|
4049
|
-
const B = (m) => new Date(m).getTime(),
|
|
4053
|
+
const B = (m) => new Date(m).getTime(), C = (m, A) => (B(A) - B(m)) / (1e3 * 60), x = () => {
|
|
4050
4054
|
const m = /* @__PURE__ */ new Date();
|
|
4051
|
-
r(4, p =
|
|
4052
|
-
},
|
|
4055
|
+
r(4, p = C(m, a)), r(5, y = C(m, s)), r(6, T = d(p));
|
|
4056
|
+
}, v = (m) => {
|
|
4053
4057
|
const A = { month: "long" };
|
|
4054
|
-
let
|
|
4055
|
-
return `${
|
|
4058
|
+
let L = new Date(m), j = new Intl.DateTimeFormat(l, A).format(L);
|
|
4059
|
+
return `${L.getDate()} ${j}, ${L.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${L.getUTCFullYear()}`;
|
|
4056
4060
|
}, d = (m) => {
|
|
4057
|
-
const A = (
|
|
4058
|
-
const R = Math.floor(
|
|
4061
|
+
const A = (j, R) => j + " " + i(R), L = (j) => {
|
|
4062
|
+
const R = Math.floor(j);
|
|
4059
4063
|
return R < 10 ? `0${R}` : `${R}`;
|
|
4060
4064
|
};
|
|
4061
4065
|
if (m < 1440) {
|
|
4062
|
-
const
|
|
4063
|
-
return [
|
|
4066
|
+
const j = m / 60, R = m % 60, Ut = (R - Math.floor(R)) * 60;
|
|
4067
|
+
return [j, R, Ut].map((Ft) => L(Ft)).join(":");
|
|
4064
4068
|
}
|
|
4065
4069
|
return A(Math.ceil(m / (60 * 24)), "days");
|
|
4066
4070
|
}, S = () => {
|
|
4067
4071
|
let m = document.createElement("style");
|
|
4068
4072
|
m.innerHTML = u, c.appendChild(m);
|
|
4069
|
-
},
|
|
4073
|
+
}, le = () => {
|
|
4070
4074
|
let m = new URL(h), A = document.createElement("style");
|
|
4071
|
-
fetch(m.href).then((
|
|
4072
|
-
A.innerHTML =
|
|
4075
|
+
fetch(m.href).then((L) => L.text()).then((L) => {
|
|
4076
|
+
A.innerHTML = L, setTimeout(
|
|
4073
4077
|
() => {
|
|
4074
4078
|
c.appendChild(A);
|
|
4075
4079
|
},
|
|
@@ -4085,14 +4089,14 @@ function oi(e, t, r) {
|
|
|
4085
4089
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4086
4090
|
const m = setInterval(
|
|
4087
4091
|
() => {
|
|
4088
|
-
s && a &&
|
|
4092
|
+
s && a && x();
|
|
4089
4093
|
},
|
|
4090
4094
|
1e3
|
|
4091
4095
|
);
|
|
4092
4096
|
return () => clearInterval(m);
|
|
4093
4097
|
});
|
|
4094
4098
|
function Dt(m) {
|
|
4095
|
-
|
|
4099
|
+
we[m ? "unshift" : "push"](() => {
|
|
4096
4100
|
c = m, r(3, c);
|
|
4097
4101
|
});
|
|
4098
4102
|
}
|
|
@@ -4103,27 +4107,27 @@ function oi(e, t, r) {
|
|
|
4103
4107
|
19 && r(7, n = () => {
|
|
4104
4108
|
if (p <= 0)
|
|
4105
4109
|
return 100;
|
|
4106
|
-
const m =
|
|
4110
|
+
const m = C(s, a), A = 100 / m;
|
|
4107
4111
|
return Math.floor((m - p) * A);
|
|
4108
4112
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4109
|
-
19 && s && a &&
|
|
4110
|
-
4096 && l &&
|
|
4113
|
+
19 && s && a && x() && d(p), e.$$.dirty & /*lang*/
|
|
4114
|
+
4096 && l && x(), e.$$.dirty & /*lang, tournamentLeftDays*/
|
|
4111
4115
|
4112 && l && d(p), e.$$.dirty & /*translationurl*/
|
|
4112
4116
|
32768 && f && P(), e.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
4113
4117
|
8200 && c && u && S(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
4114
|
-
16392 && c && h &&
|
|
4118
|
+
16392 && c && h && le();
|
|
4115
4119
|
}, [
|
|
4116
4120
|
s,
|
|
4117
4121
|
a,
|
|
4118
4122
|
o,
|
|
4119
4123
|
c,
|
|
4120
4124
|
p,
|
|
4121
|
-
|
|
4125
|
+
y,
|
|
4122
4126
|
T,
|
|
4123
4127
|
n,
|
|
4124
4128
|
i,
|
|
4129
|
+
x,
|
|
4125
4130
|
v,
|
|
4126
|
-
H,
|
|
4127
4131
|
d,
|
|
4128
4132
|
l,
|
|
4129
4133
|
u,
|
|
@@ -4132,13 +4136,13 @@ function oi(e, t, r) {
|
|
|
4132
4136
|
Dt
|
|
4133
4137
|
];
|
|
4134
4138
|
}
|
|
4135
|
-
class
|
|
4139
|
+
class ui extends ur {
|
|
4136
4140
|
constructor(t) {
|
|
4137
4141
|
super(), or(
|
|
4138
4142
|
this,
|
|
4139
4143
|
t,
|
|
4144
|
+
ai,
|
|
4140
4145
|
oi,
|
|
4141
|
-
si,
|
|
4142
4146
|
ft,
|
|
4143
4147
|
{
|
|
4144
4148
|
startdate: 0,
|
|
@@ -4149,53 +4153,53 @@ class ai extends ur {
|
|
|
4149
4153
|
clientstylingurl: 14,
|
|
4150
4154
|
translationurl: 15
|
|
4151
4155
|
},
|
|
4152
|
-
|
|
4156
|
+
Kn
|
|
4153
4157
|
);
|
|
4154
4158
|
}
|
|
4155
4159
|
get startdate() {
|
|
4156
4160
|
return this.$$.ctx[0];
|
|
4157
4161
|
}
|
|
4158
4162
|
set startdate(t) {
|
|
4159
|
-
this.$$set({ startdate: t }),
|
|
4163
|
+
this.$$set({ startdate: t }), U();
|
|
4160
4164
|
}
|
|
4161
4165
|
get enddate() {
|
|
4162
4166
|
return this.$$.ctx[1];
|
|
4163
4167
|
}
|
|
4164
4168
|
set enddate(t) {
|
|
4165
|
-
this.$$set({ enddate: t }),
|
|
4169
|
+
this.$$set({ enddate: t }), U();
|
|
4166
4170
|
}
|
|
4167
4171
|
get status() {
|
|
4168
4172
|
return this.$$.ctx[2];
|
|
4169
4173
|
}
|
|
4170
4174
|
set status(t) {
|
|
4171
|
-
this.$$set({ status: t }),
|
|
4175
|
+
this.$$set({ status: t }), U();
|
|
4172
4176
|
}
|
|
4173
4177
|
get lang() {
|
|
4174
4178
|
return this.$$.ctx[12];
|
|
4175
4179
|
}
|
|
4176
4180
|
set lang(t) {
|
|
4177
|
-
this.$$set({ lang: t }),
|
|
4181
|
+
this.$$set({ lang: t }), U();
|
|
4178
4182
|
}
|
|
4179
4183
|
get clientstyling() {
|
|
4180
4184
|
return this.$$.ctx[13];
|
|
4181
4185
|
}
|
|
4182
4186
|
set clientstyling(t) {
|
|
4183
|
-
this.$$set({ clientstyling: t }),
|
|
4187
|
+
this.$$set({ clientstyling: t }), U();
|
|
4184
4188
|
}
|
|
4185
4189
|
get clientstylingurl() {
|
|
4186
4190
|
return this.$$.ctx[14];
|
|
4187
4191
|
}
|
|
4188
4192
|
set clientstylingurl(t) {
|
|
4189
|
-
this.$$set({ clientstylingurl: t }),
|
|
4193
|
+
this.$$set({ clientstylingurl: t }), U();
|
|
4190
4194
|
}
|
|
4191
4195
|
get translationurl() {
|
|
4192
4196
|
return this.$$.ctx[15];
|
|
4193
4197
|
}
|
|
4194
4198
|
set translationurl(t) {
|
|
4195
|
-
this.$$set({ translationurl: t }),
|
|
4199
|
+
this.$$set({ translationurl: t }), U();
|
|
4196
4200
|
}
|
|
4197
4201
|
}
|
|
4198
|
-
ar(
|
|
4202
|
+
ar(ui, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4199
4203
|
export {
|
|
4200
|
-
|
|
4204
|
+
ui as C
|
|
4201
4205
|
};
|