@everymatrix/casino-tournaments-thumbnail-duration 1.59.0 → 1.59.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-CnKHSJWn.js → CasinoTournamentsThumbnailDuration-6l1nej4L.js} +352 -350
- package/components/CasinoTournamentsThumbnailDuration-D0HB4CR5.cjs +16 -0
- package/components/{CasinoTournamentsThumbnailDuration-CE5GZMOW.js → CasinoTournamentsThumbnailDuration-DICQG_Cu.js} +359 -357
- 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 +3 -2
- package/components/CasinoTournamentsThumbnailDuration-DrWLrEK1.cjs +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var He = (e, t, r) => t in e ?
|
|
1
|
+
var Wt = Object.defineProperty, Zt = Object.defineProperties;
|
|
2
|
+
var Qt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var We = Object.getOwnPropertySymbols;
|
|
4
|
+
var Jt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var He = (e, t, r) => t in e ? Wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Jt.call(t, r) && He(e, r, t[r]);
|
|
8
|
+
if (We)
|
|
9
|
+
for (var r of We(t))
|
|
10
|
+
qt.call(t, r) && He(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, Qe = (e, t) => Zt(e, Qt(t));
|
|
13
13
|
var M = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var Je = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,25 +29,25 @@ var Ze = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function w() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function gt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function qe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ae(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(gt);
|
|
40
40
|
}
|
|
41
41
|
function be(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function bt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Yt(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function yt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
@@ -56,23 +56,23 @@ function gt(e, ...t) {
|
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function Kt(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(yt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function er(e) {
|
|
63
63
|
return e && be(e.destroy) ? e.destroy : w;
|
|
64
64
|
}
|
|
65
65
|
function O(e, t) {
|
|
66
66
|
e.appendChild(t);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const n =
|
|
68
|
+
function tr(e, t, r) {
|
|
69
|
+
const n = rr(e);
|
|
70
70
|
if (!n.getElementById(t)) {
|
|
71
71
|
const i = I("style");
|
|
72
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
i.id = t, i.textContent = r, nr(n, i);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function rr(e) {
|
|
76
76
|
if (!e)
|
|
77
77
|
return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -82,7 +82,7 @@ function er(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function nr(e, t) {
|
|
86
86
|
return O(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
@@ -107,17 +107,17 @@ function re() {
|
|
|
107
107
|
function _(e, t, r) {
|
|
108
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ir(e) {
|
|
111
111
|
return Array.from(e.childNodes);
|
|
112
112
|
}
|
|
113
113
|
function k(e, t) {
|
|
114
114
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
115
|
t);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Ye(e, t, r, n) {
|
|
118
118
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function sr(e) {
|
|
121
121
|
const t = {};
|
|
122
122
|
return e.childNodes.forEach(
|
|
123
123
|
/** @param {Element} node */
|
|
@@ -130,20 +130,20 @@ let ie;
|
|
|
130
130
|
function ne(e) {
|
|
131
131
|
ie = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function or() {
|
|
134
134
|
if (!ie)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
136
|
return ie;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function ar(e) {
|
|
139
|
+
or().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
141
|
const W = [], Ie = [];
|
|
142
142
|
let Z = [];
|
|
143
|
-
const
|
|
143
|
+
const Ke = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
144
144
|
let we = !1;
|
|
145
|
-
function
|
|
146
|
-
we || (we = !0,
|
|
145
|
+
function hr() {
|
|
146
|
+
we || (we = !0, ur.then(U));
|
|
147
147
|
}
|
|
148
148
|
function Le(e) {
|
|
149
149
|
Z.push(e);
|
|
@@ -158,7 +158,7 @@ function U() {
|
|
|
158
158
|
try {
|
|
159
159
|
for (; X < W.length; ) {
|
|
160
160
|
const t = W[X];
|
|
161
|
-
X++, ne(t),
|
|
161
|
+
X++, ne(t), lr(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
164
|
throw W.length = 0, X = 0, t;
|
|
@@ -171,40 +171,40 @@ function U() {
|
|
|
171
171
|
}
|
|
172
172
|
Z.length = 0;
|
|
173
173
|
} while (W.length);
|
|
174
|
-
for (;
|
|
175
|
-
|
|
174
|
+
for (; Ke.length; )
|
|
175
|
+
Ke.pop()();
|
|
176
176
|
we = !1, Te.clear(), ne(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function lr(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
180
|
e.update(), ae(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
182
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function fr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
187
|
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
e && e.i && (
|
|
189
|
+
const cr = /* @__PURE__ */ new Set();
|
|
190
|
+
function mr(e, t) {
|
|
191
|
+
e && e.i && (cr.delete(e), e.i(t));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function dr(e, t, r) {
|
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
195
|
n && n.m(t, r), Le(() => {
|
|
196
|
-
const s = e.$$.on_mount.map(
|
|
196
|
+
const s = e.$$.on_mount.map(gt).filter(be);
|
|
197
197
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
|
|
198
198
|
}), i.forEach(Le);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function pr(e, t) {
|
|
201
201
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (
|
|
202
|
+
r.fragment !== null && (fr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.$$.dirty[0] === -1 && (W.push(e),
|
|
204
|
+
function gr(e, t) {
|
|
205
|
+
e.$$.dirty[0] === -1 && (W.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function br(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
208
208
|
const h = ie;
|
|
209
209
|
ne(e);
|
|
210
210
|
const u = e.$$ = {
|
|
@@ -214,7 +214,7 @@ function pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
214
214
|
props: s,
|
|
215
215
|
update: w,
|
|
216
216
|
not_equal: i,
|
|
217
|
-
bound:
|
|
217
|
+
bound: qe(),
|
|
218
218
|
// lifecycle
|
|
219
219
|
on_mount: [],
|
|
220
220
|
on_destroy: [],
|
|
@@ -223,7 +223,7 @@ function pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
223
223
|
after_update: [],
|
|
224
224
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
225
225
|
// everything else
|
|
226
|
-
callbacks:
|
|
226
|
+
callbacks: qe(),
|
|
227
227
|
dirty: a,
|
|
228
228
|
skip_bound: !1,
|
|
229
229
|
root: t.target || h.$$.root
|
|
@@ -232,19 +232,19 @@ function pr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
232
232
|
let l = !1;
|
|
233
233
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
234
234
|
const E = p.length ? p[0] : c;
|
|
235
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = E) && (!u.skip_bound && u.bound[f] && u.bound[f](E), l &&
|
|
235
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = E) && (!u.skip_bound && u.bound[f] && u.bound[f](E), l && gr(e, f)), c;
|
|
236
236
|
}) : [], u.update(), l = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
|
-
const f =
|
|
238
|
+
const f = ir(t.target);
|
|
239
239
|
u.fragment && u.fragment.l(f), f.forEach($);
|
|
240
240
|
} else
|
|
241
241
|
u.fragment && u.fragment.c();
|
|
242
|
-
t.intro &&
|
|
242
|
+
t.intro && mr(e.$$.fragment), dr(e, t.target, t.anchor), U();
|
|
243
243
|
}
|
|
244
244
|
ne(h);
|
|
245
245
|
}
|
|
246
|
-
let
|
|
247
|
-
typeof HTMLElement == "function" && (
|
|
246
|
+
let Et;
|
|
247
|
+
typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
248
248
|
constructor(t, r, n) {
|
|
249
249
|
super();
|
|
250
250
|
/** The Svelte component constructor */
|
|
@@ -281,7 +281,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
connectedCallback() {
|
|
284
|
-
return
|
|
284
|
+
return Je(this, null, function* () {
|
|
285
285
|
if (this.$$cn = !0, !this.$$c) {
|
|
286
286
|
let t = function(s) {
|
|
287
287
|
return () => {
|
|
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
305
305
|
};
|
|
306
306
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
307
|
return;
|
|
308
|
-
const r = {}, n =
|
|
308
|
+
const r = {}, n = sr(this);
|
|
309
309
|
for (const s of this.$$s)
|
|
310
310
|
s in n && (r[s] = [t(s)]);
|
|
311
311
|
for (const s of this.attributes) {
|
|
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (bt = class extends HTMLElement {
|
|
|
316
316
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
317
317
|
this.$$c = new this.$$ctor({
|
|
318
318
|
target: this.shadowRoot || this,
|
|
319
|
-
props:
|
|
319
|
+
props: Qe(Ze({}, this.$$d), {
|
|
320
320
|
$$slots: r,
|
|
321
321
|
$$scope: {
|
|
322
322
|
ctx: []
|
|
@@ -394,8 +394,8 @@ function ce(e, t, r, n) {
|
|
|
394
394
|
return t;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
let o = class extends
|
|
397
|
+
function yr(e, t, r, n, i, s) {
|
|
398
|
+
let o = class extends Et {
|
|
399
399
|
constructor() {
|
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
|
401
401
|
}
|
|
@@ -425,7 +425,7 @@ function gr(e, t, r, n, i, s) {
|
|
|
425
425
|
}), e.element = /** @type {any} */
|
|
426
426
|
o, o;
|
|
427
427
|
}
|
|
428
|
-
class
|
|
428
|
+
class Er {
|
|
429
429
|
constructor() {
|
|
430
430
|
/**
|
|
431
431
|
* ### PRIVATE API
|
|
@@ -446,7 +446,7 @@ class br {
|
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
449
|
-
|
|
449
|
+
pr(this, 1), this.$destroy = w;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,13 +468,13 @@ class br {
|
|
|
468
468
|
* @returns {void}
|
|
469
469
|
*/
|
|
470
470
|
$set(t) {
|
|
471
|
-
this.$$set && !
|
|
471
|
+
this.$$set && !Yt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
474
|
+
const _r = "4";
|
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
|
|
476
476
|
const z = [];
|
|
477
|
-
function
|
|
477
|
+
function xr(e, t) {
|
|
478
478
|
return {
|
|
479
479
|
subscribe: ye(e, t).subscribe
|
|
480
480
|
};
|
|
@@ -483,7 +483,7 @@ function ye(e, t = w) {
|
|
|
483
483
|
let r;
|
|
484
484
|
const n = /* @__PURE__ */ new Set();
|
|
485
485
|
function i(a) {
|
|
486
|
-
if (
|
|
486
|
+
if (bt(e, a) && (e = a, r)) {
|
|
487
487
|
const h = !z.length;
|
|
488
488
|
for (const u of n)
|
|
489
489
|
u[1](), z.push(u, e);
|
|
@@ -510,7 +510,7 @@ function K(e, t, r) {
|
|
|
510
510
|
if (!i.every(Boolean))
|
|
511
511
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
512
512
|
const s = t.length < 2;
|
|
513
|
-
return
|
|
513
|
+
return xr(r, (o, a) => {
|
|
514
514
|
let h = !1;
|
|
515
515
|
const u = [];
|
|
516
516
|
let l = 0, f = w;
|
|
@@ -521,7 +521,7 @@ function K(e, t, r) {
|
|
|
521
521
|
const E = t(n ? u[0] : u, o, a);
|
|
522
522
|
s ? o(E) : f = be(E) ? E : w;
|
|
523
523
|
}, p = i.map(
|
|
524
|
-
(E, T) =>
|
|
524
|
+
(E, T) => yt(
|
|
525
525
|
E,
|
|
526
526
|
(P) => {
|
|
527
527
|
u[T] = P, l &= ~(1 << T), h && c();
|
|
@@ -536,70 +536,70 @@ function K(e, t, r) {
|
|
|
536
536
|
};
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function vr(e) {
|
|
540
540
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
541
541
|
}
|
|
542
|
-
var
|
|
543
|
-
return
|
|
542
|
+
var Hr = function(t) {
|
|
543
|
+
return Tr(t) && !Br(t);
|
|
544
544
|
};
|
|
545
|
-
function
|
|
545
|
+
function Tr(e) {
|
|
546
546
|
return !!e && typeof e == "object";
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Br(e) {
|
|
549
549
|
var t = Object.prototype.toString.call(e);
|
|
550
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
550
|
+
return t === "[object RegExp]" || t === "[object Date]" || Pr(e);
|
|
551
551
|
}
|
|
552
|
-
var
|
|
553
|
-
function
|
|
554
|
-
return e.$$typeof ===
|
|
552
|
+
var Sr = typeof Symbol == "function" && Symbol.for, Ar = Sr ? Symbol.for("react.element") : 60103;
|
|
553
|
+
function Pr(e) {
|
|
554
|
+
return e.$$typeof === Ar;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Nr(e) {
|
|
557
557
|
return Array.isArray(e) ? [] : {};
|
|
558
558
|
}
|
|
559
559
|
function se(e, t) {
|
|
560
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
560
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Nr(e), e, t) : e;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Or(e, t, r) {
|
|
563
563
|
return e.concat(t).map(function(n) {
|
|
564
564
|
return se(n, r);
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ir(e, t) {
|
|
568
568
|
if (!t.customMerge)
|
|
569
569
|
return Q;
|
|
570
570
|
var r = t.customMerge(e);
|
|
571
571
|
return typeof r == "function" ? r : Q;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function wr(e) {
|
|
574
574
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
575
575
|
return Object.propertyIsEnumerable.call(e, t);
|
|
576
576
|
}) : [];
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
return Object.keys(e).concat(
|
|
578
|
+
function et(e) {
|
|
579
|
+
return Object.keys(e).concat(wr(e));
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function _t(e, t) {
|
|
582
582
|
try {
|
|
583
583
|
return t in e;
|
|
584
584
|
} catch (r) {
|
|
585
585
|
return !1;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
588
|
+
function Lr(e, t) {
|
|
589
|
+
return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Cr(e, t, r) {
|
|
592
592
|
var n = {};
|
|
593
|
-
return r.isMergeableObject(e) &&
|
|
593
|
+
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
594
594
|
n[i] = se(e[i], r);
|
|
595
|
-
}),
|
|
596
|
-
|
|
595
|
+
}), et(t).forEach(function(i) {
|
|
596
|
+
Lr(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ir(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
597
597
|
}), n;
|
|
598
598
|
}
|
|
599
599
|
function Q(e, t, r) {
|
|
600
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
600
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Or, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = se;
|
|
601
601
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
602
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
602
|
+
return s ? n ? r.arrayMerge(e, t, r) : Cr(e, t, r) : se(t, r);
|
|
603
603
|
}
|
|
604
604
|
Q.all = function(t, r) {
|
|
605
605
|
if (!Array.isArray(t))
|
|
@@ -608,8 +608,8 @@ Q.all = function(t, r) {
|
|
|
608
608
|
return Q(n, i, r);
|
|
609
609
|
}, {});
|
|
610
610
|
};
|
|
611
|
-
var
|
|
612
|
-
const
|
|
611
|
+
var Mr = Q, $r = Mr;
|
|
612
|
+
const Rr = /* @__PURE__ */ vr($r);
|
|
613
613
|
/*! *****************************************************************************
|
|
614
614
|
Copyright (c) Microsoft Corporation.
|
|
615
615
|
|
|
@@ -651,7 +651,7 @@ var y = function() {
|
|
|
651
651
|
return t;
|
|
652
652
|
}, y.apply(this, arguments);
|
|
653
653
|
};
|
|
654
|
-
function
|
|
654
|
+
function Dr(e, t) {
|
|
655
655
|
var r = {};
|
|
656
656
|
for (var n in e)
|
|
657
657
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -667,53 +667,55 @@ function Be(e, t, r) {
|
|
|
667
667
|
return e.concat(s || t);
|
|
668
668
|
}
|
|
669
669
|
function Se(e, t) {
|
|
670
|
-
var r = t && t.cache ? t.cache :
|
|
670
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : kr, i = t && t.strategy ? t.strategy : Fr;
|
|
671
671
|
return i(e, {
|
|
672
672
|
cache: r,
|
|
673
673
|
serializer: n
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Ur(e) {
|
|
677
677
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
var i =
|
|
679
|
+
function xt(e, t, r, n) {
|
|
680
|
+
var i = Ur(n) ? n : r(n), s = t.get(i);
|
|
681
681
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function vt(e, t, r) {
|
|
684
684
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
685
685
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function ke(e, t, r, n, i) {
|
|
688
688
|
return r.bind(t, e, n, i);
|
|
689
689
|
}
|
|
690
|
-
function Ur(e, t) {
|
|
691
|
-
var r = e.length === 1 ? Dr : Et;
|
|
692
|
-
return _t(e, this, r, t.cache.create(), t.serializer);
|
|
693
|
-
}
|
|
694
690
|
function Fr(e, t) {
|
|
695
|
-
|
|
691
|
+
var r = e.length === 1 ? xt : vt;
|
|
692
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
693
|
+
}
|
|
694
|
+
function Gr(e, t) {
|
|
695
|
+
return ke(e, this, vt, t.cache.create(), t.serializer);
|
|
696
|
+
}
|
|
697
|
+
function jr(e, t) {
|
|
698
|
+
return ke(e, this, xt, t.cache.create(), t.serializer);
|
|
696
699
|
}
|
|
697
|
-
var
|
|
700
|
+
var kr = function() {
|
|
698
701
|
return JSON.stringify(arguments);
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}()
|
|
711
|
-
), kr = {
|
|
702
|
+
};
|
|
703
|
+
function Ve() {
|
|
704
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
705
|
+
}
|
|
706
|
+
Ve.prototype.get = function(e) {
|
|
707
|
+
return this.cache[e];
|
|
708
|
+
};
|
|
709
|
+
Ve.prototype.set = function(e, t) {
|
|
710
|
+
this.cache[e] = t;
|
|
711
|
+
};
|
|
712
|
+
var Vr = {
|
|
712
713
|
create: function() {
|
|
713
|
-
return new
|
|
714
|
+
return new Ve();
|
|
714
715
|
}
|
|
715
716
|
}, Ae = {
|
|
716
|
-
variadic:
|
|
717
|
+
variadic: Gr,
|
|
718
|
+
monadic: jr
|
|
717
719
|
}, g;
|
|
718
720
|
(function(e) {
|
|
719
721
|
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";
|
|
@@ -726,43 +728,43 @@ var J;
|
|
|
726
728
|
(function(e) {
|
|
727
729
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
728
730
|
})(J || (J = {}));
|
|
729
|
-
function
|
|
731
|
+
function tt(e) {
|
|
730
732
|
return e.type === x.literal;
|
|
731
733
|
}
|
|
732
|
-
function
|
|
734
|
+
function Xr(e) {
|
|
733
735
|
return e.type === x.argument;
|
|
734
736
|
}
|
|
735
|
-
function
|
|
737
|
+
function Ht(e) {
|
|
736
738
|
return e.type === x.number;
|
|
737
739
|
}
|
|
738
|
-
function
|
|
740
|
+
function Tt(e) {
|
|
739
741
|
return e.type === x.date;
|
|
740
742
|
}
|
|
741
|
-
function
|
|
743
|
+
function Bt(e) {
|
|
742
744
|
return e.type === x.time;
|
|
743
745
|
}
|
|
744
|
-
function
|
|
746
|
+
function St(e) {
|
|
745
747
|
return e.type === x.select;
|
|
746
748
|
}
|
|
747
|
-
function
|
|
749
|
+
function At(e) {
|
|
748
750
|
return e.type === x.plural;
|
|
749
751
|
}
|
|
750
|
-
function
|
|
752
|
+
function zr(e) {
|
|
751
753
|
return e.type === x.pound;
|
|
752
754
|
}
|
|
753
|
-
function
|
|
755
|
+
function Pt(e) {
|
|
754
756
|
return e.type === x.tag;
|
|
755
757
|
}
|
|
756
|
-
function
|
|
758
|
+
function Nt(e) {
|
|
757
759
|
return !!(e && typeof e == "object" && e.type === J.number);
|
|
758
760
|
}
|
|
759
761
|
function Me(e) {
|
|
760
762
|
return !!(e && typeof e == "object" && e.type === J.dateTime);
|
|
761
763
|
}
|
|
762
|
-
var
|
|
763
|
-
function
|
|
764
|
+
var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wr = /(?:[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;
|
|
765
|
+
function Zr(e) {
|
|
764
766
|
var t = {};
|
|
765
|
-
return e.replace(
|
|
767
|
+
return e.replace(Wr, function(r) {
|
|
766
768
|
var n = r.length;
|
|
767
769
|
switch (r[0]) {
|
|
768
770
|
case "G":
|
|
@@ -851,11 +853,11 @@ function Wr(e) {
|
|
|
851
853
|
return "";
|
|
852
854
|
}), t;
|
|
853
855
|
}
|
|
854
|
-
var
|
|
855
|
-
function
|
|
856
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
857
|
+
function Jr(e) {
|
|
856
858
|
if (e.length === 0)
|
|
857
859
|
throw new Error("Number skeleton cannot be empty");
|
|
858
|
-
for (var t = e.split(
|
|
860
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
859
861
|
return c.length > 0;
|
|
860
862
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
861
863
|
var s = i[n], o = s.split("/");
|
|
@@ -870,17 +872,17 @@ function Qr(e) {
|
|
|
870
872
|
}
|
|
871
873
|
return r;
|
|
872
874
|
}
|
|
873
|
-
function
|
|
875
|
+
function qr(e) {
|
|
874
876
|
return e.replace(/^(.*?)-/, "");
|
|
875
877
|
}
|
|
876
|
-
var
|
|
877
|
-
function
|
|
878
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, It = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
879
|
+
function nt(e) {
|
|
878
880
|
var t = {};
|
|
879
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
881
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(It, function(r, n, i) {
|
|
880
882
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
881
883
|
}), t;
|
|
882
884
|
}
|
|
883
|
-
function
|
|
885
|
+
function Lt(e) {
|
|
884
886
|
switch (e) {
|
|
885
887
|
case "sign-auto":
|
|
886
888
|
return {
|
|
@@ -920,7 +922,7 @@ function It(e) {
|
|
|
920
922
|
};
|
|
921
923
|
}
|
|
922
924
|
}
|
|
923
|
-
function
|
|
925
|
+
function Kr(e) {
|
|
924
926
|
var t;
|
|
925
927
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
926
928
|
notation: "engineering"
|
|
@@ -928,17 +930,17 @@ function Yr(e) {
|
|
|
928
930
|
notation: "scientific"
|
|
929
931
|
}, e = e.slice(1)), t) {
|
|
930
932
|
var r = e.slice(0, 2);
|
|
931
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
933
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wt.test(e))
|
|
932
934
|
throw new Error("Malformed concise eng/scientific notation");
|
|
933
935
|
t.minimumIntegerDigits = e.length;
|
|
934
936
|
}
|
|
935
937
|
return t;
|
|
936
938
|
}
|
|
937
|
-
function
|
|
938
|
-
var t = {}, r =
|
|
939
|
+
function it(e) {
|
|
940
|
+
var t = {}, r = Lt(e);
|
|
939
941
|
return r || t;
|
|
940
942
|
}
|
|
941
|
-
function
|
|
943
|
+
function en(e) {
|
|
942
944
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
943
945
|
var i = n[r];
|
|
944
946
|
switch (i.stem) {
|
|
@@ -962,7 +964,7 @@ function Kr(e) {
|
|
|
962
964
|
continue;
|
|
963
965
|
case "measure-unit":
|
|
964
966
|
case "unit":
|
|
965
|
-
t.style = "unit", t.unit =
|
|
967
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
966
968
|
continue;
|
|
967
969
|
case "compact-short":
|
|
968
970
|
case "K":
|
|
@@ -974,12 +976,12 @@ function Kr(e) {
|
|
|
974
976
|
continue;
|
|
975
977
|
case "scientific":
|
|
976
978
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
977
|
-
return y(y({}, h),
|
|
979
|
+
return y(y({}, h), it(u));
|
|
978
980
|
}, {}));
|
|
979
981
|
continue;
|
|
980
982
|
case "engineering":
|
|
981
983
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
982
|
-
return y(y({}, h),
|
|
984
|
+
return y(y({}, h), it(u));
|
|
983
985
|
}, {}));
|
|
984
986
|
continue;
|
|
985
987
|
case "notation-simple":
|
|
@@ -1024,7 +1026,7 @@ function Kr(e) {
|
|
|
1024
1026
|
case "integer-width":
|
|
1025
1027
|
if (i.options.length > 1)
|
|
1026
1028
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1027
|
-
i.options[0].replace(
|
|
1029
|
+
i.options[0].replace(Yr, function(h, u, l, f, c, p) {
|
|
1028
1030
|
if (u)
|
|
1029
1031
|
t.minimumIntegerDigits = l.length;
|
|
1030
1032
|
else {
|
|
@@ -1037,27 +1039,27 @@ function Kr(e) {
|
|
|
1037
1039
|
});
|
|
1038
1040
|
continue;
|
|
1039
1041
|
}
|
|
1040
|
-
if (
|
|
1042
|
+
if (wt.test(i.stem)) {
|
|
1041
1043
|
t.minimumIntegerDigits = i.stem.length;
|
|
1042
1044
|
continue;
|
|
1043
1045
|
}
|
|
1044
|
-
if (
|
|
1046
|
+
if (rt.test(i.stem)) {
|
|
1045
1047
|
if (i.options.length > 1)
|
|
1046
1048
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1047
|
-
i.stem.replace(
|
|
1049
|
+
i.stem.replace(rt, function(h, u, l, f, c, p) {
|
|
1048
1050
|
return l === "*" ? 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), "";
|
|
1049
1051
|
});
|
|
1050
1052
|
var s = i.options[0];
|
|
1051
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1053
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), nt(s)));
|
|
1052
1054
|
continue;
|
|
1053
1055
|
}
|
|
1054
|
-
if (
|
|
1055
|
-
t = y(y({}, t),
|
|
1056
|
+
if (It.test(i.stem)) {
|
|
1057
|
+
t = y(y({}, t), nt(i.stem));
|
|
1056
1058
|
continue;
|
|
1057
1059
|
}
|
|
1058
|
-
var o =
|
|
1060
|
+
var o = Lt(i.stem);
|
|
1059
1061
|
o && (t = y(y({}, t), o));
|
|
1060
|
-
var a =
|
|
1062
|
+
var a = Kr(i.stem);
|
|
1061
1063
|
a && (t = y(y({}, t), a));
|
|
1062
1064
|
}
|
|
1063
1065
|
return t;
|
|
@@ -2477,13 +2479,13 @@ var fe = {
|
|
|
2477
2479
|
"h"
|
|
2478
2480
|
]
|
|
2479
2481
|
};
|
|
2480
|
-
function
|
|
2482
|
+
function tn(e, t) {
|
|
2481
2483
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2482
2484
|
var i = e.charAt(n);
|
|
2483
2485
|
if (i === "j") {
|
|
2484
2486
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2485
2487
|
s++, n++;
|
|
2486
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
2488
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = rn(t);
|
|
2487
2489
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2488
2490
|
r += h;
|
|
2489
2491
|
for (; o-- > 0; )
|
|
@@ -2493,7 +2495,7 @@ function en(e, t) {
|
|
|
2493
2495
|
}
|
|
2494
2496
|
return r;
|
|
2495
2497
|
}
|
|
2496
|
-
function
|
|
2498
|
+
function rn(e) {
|
|
2497
2499
|
var t = e.hourCycle;
|
|
2498
2500
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2499
2501
|
e.hourCycles && // @ts-ignore
|
|
@@ -2515,20 +2517,20 @@ function tn(e) {
|
|
|
2515
2517
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
2516
2518
|
return i[0];
|
|
2517
2519
|
}
|
|
2518
|
-
var Pe,
|
|
2520
|
+
var Pe, nn = new RegExp("^".concat(Ot.source, "*")), sn = new RegExp("".concat(Ot.source, "*$"));
|
|
2519
2521
|
function b(e, t) {
|
|
2520
2522
|
return { start: e, end: t };
|
|
2521
2523
|
}
|
|
2522
|
-
var
|
|
2524
|
+
var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, un = !!Object.fromEntries, hn = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, fn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, mn = cn ? Number.isSafeInteger : function(e) {
|
|
2523
2525
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2524
2526
|
}, $e = !0;
|
|
2525
2527
|
try {
|
|
2526
|
-
var
|
|
2527
|
-
$e = ((Pe =
|
|
2528
|
+
var dn = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2529
|
+
$e = ((Pe = dn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2528
2530
|
} catch (e) {
|
|
2529
2531
|
$e = !1;
|
|
2530
2532
|
}
|
|
2531
|
-
var
|
|
2533
|
+
var st = on ? (
|
|
2532
2534
|
// Native
|
|
2533
2535
|
function(t, r, n) {
|
|
2534
2536
|
return t.startsWith(r, n);
|
|
@@ -2538,7 +2540,7 @@ var nt = sn ? (
|
|
|
2538
2540
|
function(t, r, n) {
|
|
2539
2541
|
return t.slice(n, n + r.length) === r;
|
|
2540
2542
|
}
|
|
2541
|
-
), Re =
|
|
2543
|
+
), Re = an ? String.fromCodePoint : (
|
|
2542
2544
|
// IE11
|
|
2543
2545
|
function() {
|
|
2544
2546
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2550,9 +2552,9 @@ var nt = sn ? (
|
|
|
2550
2552
|
}
|
|
2551
2553
|
return n;
|
|
2552
2554
|
}
|
|
2553
|
-
),
|
|
2555
|
+
), ot = (
|
|
2554
2556
|
// native
|
|
2555
|
-
|
|
2557
|
+
un ? Object.fromEntries : (
|
|
2556
2558
|
// Ponyfill
|
|
2557
2559
|
function(t) {
|
|
2558
2560
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2562,7 +2564,7 @@ var nt = sn ? (
|
|
|
2562
2564
|
return r;
|
|
2563
2565
|
}
|
|
2564
2566
|
)
|
|
2565
|
-
),
|
|
2567
|
+
), Ct = hn ? (
|
|
2566
2568
|
// Native
|
|
2567
2569
|
function(t, r) {
|
|
2568
2570
|
return t.codePointAt(r);
|
|
@@ -2576,7 +2578,7 @@ var nt = sn ? (
|
|
|
2576
2578
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2577
2579
|
}
|
|
2578
2580
|
}
|
|
2579
|
-
),
|
|
2581
|
+
), pn = ln ? (
|
|
2580
2582
|
// Native
|
|
2581
2583
|
function(t) {
|
|
2582
2584
|
return t.trimStart();
|
|
@@ -2584,9 +2586,9 @@ var nt = sn ? (
|
|
|
2584
2586
|
) : (
|
|
2585
2587
|
// Ponyfill
|
|
2586
2588
|
function(t) {
|
|
2587
|
-
return t.replace(
|
|
2589
|
+
return t.replace(nn, "");
|
|
2588
2590
|
}
|
|
2589
|
-
),
|
|
2591
|
+
), gn = fn ? (
|
|
2590
2592
|
// Native
|
|
2591
2593
|
function(t) {
|
|
2592
2594
|
return t.trimEnd();
|
|
@@ -2594,32 +2596,32 @@ var nt = sn ? (
|
|
|
2594
2596
|
) : (
|
|
2595
2597
|
// Ponyfill
|
|
2596
2598
|
function(t) {
|
|
2597
|
-
return t.replace(
|
|
2599
|
+
return t.replace(sn, "");
|
|
2598
2600
|
}
|
|
2599
2601
|
);
|
|
2600
|
-
function
|
|
2602
|
+
function Mt(e, t) {
|
|
2601
2603
|
return new RegExp(e, t);
|
|
2602
2604
|
}
|
|
2603
2605
|
var De;
|
|
2604
2606
|
if ($e) {
|
|
2605
|
-
var
|
|
2607
|
+
var at = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2606
2608
|
De = function(t, r) {
|
|
2607
2609
|
var n;
|
|
2608
|
-
|
|
2609
|
-
var i =
|
|
2610
|
+
at.lastIndex = r;
|
|
2611
|
+
var i = at.exec(t);
|
|
2610
2612
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2611
2613
|
};
|
|
2612
2614
|
} else
|
|
2613
2615
|
De = function(t, r) {
|
|
2614
2616
|
for (var n = []; ; ) {
|
|
2615
|
-
var i =
|
|
2616
|
-
if (i === void 0 ||
|
|
2617
|
+
var i = Ct(t, r);
|
|
2618
|
+
if (i === void 0 || $t(i) || _n(i))
|
|
2617
2619
|
break;
|
|
2618
2620
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2619
2621
|
}
|
|
2620
2622
|
return Re.apply(void 0, n);
|
|
2621
2623
|
};
|
|
2622
|
-
var
|
|
2624
|
+
var bn = (
|
|
2623
2625
|
/** @class */
|
|
2624
2626
|
function() {
|
|
2625
2627
|
function e(t, r) {
|
|
@@ -2701,7 +2703,7 @@ var gn = (
|
|
|
2701
2703
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2702
2704
|
}, e.prototype.parseTagName = function() {
|
|
2703
2705
|
var t = this.offset();
|
|
2704
|
-
for (this.bump(); !this.isEOF() &&
|
|
2706
|
+
for (this.bump(); !this.isEOF() && En(this.char()); )
|
|
2705
2707
|
this.bump();
|
|
2706
2708
|
return this.message.slice(t, this.offset());
|
|
2707
2709
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2730,7 +2732,7 @@ var gn = (
|
|
|
2730
2732
|
};
|
|
2731
2733
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2732
2734
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2733
|
-
!
|
|
2735
|
+
!yn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2734
2736
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2735
2737
|
if (this.isEOF() || this.char() !== 39)
|
|
2736
2738
|
return null;
|
|
@@ -2817,7 +2819,7 @@ var gn = (
|
|
|
2817
2819
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2818
2820
|
if (f.err)
|
|
2819
2821
|
return f;
|
|
2820
|
-
var c =
|
|
2822
|
+
var c = gn(f.val);
|
|
2821
2823
|
if (c.length === 0)
|
|
2822
2824
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2823
2825
|
var p = b(l, this.clonePosition());
|
|
@@ -2827,8 +2829,8 @@ var gn = (
|
|
|
2827
2829
|
if (E.err)
|
|
2828
2830
|
return E;
|
|
2829
2831
|
var T = b(i, this.clonePosition());
|
|
2830
|
-
if (u &&
|
|
2831
|
-
var P =
|
|
2832
|
+
if (u && st(u == null ? void 0 : u.style, "::", 0)) {
|
|
2833
|
+
var P = pn(u.style.slice(2));
|
|
2832
2834
|
if (a === "number") {
|
|
2833
2835
|
var f = this.parseNumberSkeletonFromString(P, u.styleLocation);
|
|
2834
2836
|
return f.err ? f : {
|
|
@@ -2839,12 +2841,12 @@ var gn = (
|
|
|
2839
2841
|
if (P.length === 0)
|
|
2840
2842
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, T);
|
|
2841
2843
|
var B = P;
|
|
2842
|
-
this.locale && (B =
|
|
2844
|
+
this.locale && (B = tn(P, this.locale));
|
|
2843
2845
|
var c = {
|
|
2844
2846
|
type: J.dateTime,
|
|
2845
2847
|
pattern: B,
|
|
2846
2848
|
location: u.styleLocation,
|
|
2847
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2849
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(B) : {}
|
|
2848
2850
|
}, L = a === "date" ? x.date : x.time;
|
|
2849
2851
|
return {
|
|
2850
2852
|
val: { type: L, value: n, location: T, style: c },
|
|
@@ -2890,7 +2892,7 @@ var gn = (
|
|
|
2890
2892
|
val: {
|
|
2891
2893
|
type: x.select,
|
|
2892
2894
|
value: n,
|
|
2893
|
-
options:
|
|
2895
|
+
options: ot(S.val),
|
|
2894
2896
|
location: le
|
|
2895
2897
|
},
|
|
2896
2898
|
err: null
|
|
@@ -2898,7 +2900,7 @@ var gn = (
|
|
|
2898
2900
|
val: {
|
|
2899
2901
|
type: x.plural,
|
|
2900
2902
|
value: n,
|
|
2901
|
-
options:
|
|
2903
|
+
options: ot(S.val),
|
|
2902
2904
|
offset: d,
|
|
2903
2905
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2904
2906
|
location: le
|
|
@@ -2949,7 +2951,7 @@ var gn = (
|
|
|
2949
2951
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2950
2952
|
var n = [];
|
|
2951
2953
|
try {
|
|
2952
|
-
n =
|
|
2954
|
+
n = Jr(t);
|
|
2953
2955
|
} catch (i) {
|
|
2954
2956
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2955
2957
|
}
|
|
@@ -2958,7 +2960,7 @@ var gn = (
|
|
|
2958
2960
|
type: J.number,
|
|
2959
2961
|
tokens: n,
|
|
2960
2962
|
location: r,
|
|
2961
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2963
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2962
2964
|
},
|
|
2963
2965
|
err: null
|
|
2964
2966
|
};
|
|
@@ -3006,7 +3008,7 @@ var gn = (
|
|
|
3006
3008
|
break;
|
|
3007
3009
|
}
|
|
3008
3010
|
var h = b(i, this.clonePosition());
|
|
3009
|
-
return s ? (o *= n,
|
|
3011
|
+
return s ? (o *= n, mn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3010
3012
|
}, e.prototype.offset = function() {
|
|
3011
3013
|
return this.position.offset;
|
|
3012
3014
|
}, e.prototype.isEOF = function() {
|
|
@@ -3021,7 +3023,7 @@ var gn = (
|
|
|
3021
3023
|
var t = this.position.offset;
|
|
3022
3024
|
if (t >= this.message.length)
|
|
3023
3025
|
throw Error("out of bound");
|
|
3024
|
-
var r =
|
|
3026
|
+
var r = Ct(this.message, t);
|
|
3025
3027
|
if (r === void 0)
|
|
3026
3028
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3027
3029
|
return r;
|
|
@@ -3040,7 +3042,7 @@ var gn = (
|
|
|
3040
3042
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3041
3043
|
}
|
|
3042
3044
|
}, e.prototype.bumpIf = function(t) {
|
|
3043
|
-
if (
|
|
3045
|
+
if (st(this.message, t, this.offset())) {
|
|
3044
3046
|
for (var r = 0; r < t.length; r++)
|
|
3045
3047
|
this.bump();
|
|
3046
3048
|
return !0;
|
|
@@ -3062,7 +3064,7 @@ var gn = (
|
|
|
3062
3064
|
break;
|
|
3063
3065
|
}
|
|
3064
3066
|
}, e.prototype.bumpSpace = function() {
|
|
3065
|
-
for (; !this.isEOF() &&
|
|
3067
|
+
for (; !this.isEOF() && $t(this.char()); )
|
|
3066
3068
|
this.bump();
|
|
3067
3069
|
}, e.prototype.peek = function() {
|
|
3068
3070
|
if (this.isEOF())
|
|
@@ -3075,30 +3077,30 @@ var gn = (
|
|
|
3075
3077
|
function Ue(e) {
|
|
3076
3078
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3077
3079
|
}
|
|
3078
|
-
function
|
|
3080
|
+
function yn(e) {
|
|
3079
3081
|
return Ue(e) || e === 47;
|
|
3080
3082
|
}
|
|
3081
|
-
function
|
|
3083
|
+
function En(e) {
|
|
3082
3084
|
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;
|
|
3083
3085
|
}
|
|
3084
|
-
function
|
|
3086
|
+
function $t(e) {
|
|
3085
3087
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3086
3088
|
}
|
|
3087
|
-
function
|
|
3089
|
+
function _n(e) {
|
|
3088
3090
|
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;
|
|
3089
3091
|
}
|
|
3090
3092
|
function Fe(e) {
|
|
3091
3093
|
e.forEach(function(t) {
|
|
3092
|
-
if (delete t.location,
|
|
3094
|
+
if (delete t.location, St(t) || At(t))
|
|
3093
3095
|
for (var r in t.options)
|
|
3094
3096
|
delete t.options[r].location, Fe(t.options[r].value);
|
|
3095
3097
|
else
|
|
3096
|
-
|
|
3098
|
+
Ht(t) && Nt(t.style) || (Tt(t) || Bt(t)) && Me(t.style) ? delete t.style.location : Pt(t) && Fe(t.children);
|
|
3097
3099
|
});
|
|
3098
3100
|
}
|
|
3099
|
-
function
|
|
3101
|
+
function xn(e, t) {
|
|
3100
3102
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3101
|
-
var r = new
|
|
3103
|
+
var r = new bn(e, t).parse();
|
|
3102
3104
|
if (r.err) {
|
|
3103
3105
|
var n = SyntaxError(g[r.err.kind]);
|
|
3104
3106
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3121,7 +3123,7 @@ var _e = (
|
|
|
3121
3123
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3122
3124
|
}, t;
|
|
3123
3125
|
}(Error)
|
|
3124
|
-
),
|
|
3126
|
+
), ut = (
|
|
3125
3127
|
/** @class */
|
|
3126
3128
|
function(e) {
|
|
3127
3129
|
Ee(t, e);
|
|
@@ -3130,7 +3132,7 @@ var _e = (
|
|
|
3130
3132
|
}
|
|
3131
3133
|
return t;
|
|
3132
3134
|
}(_e)
|
|
3133
|
-
),
|
|
3135
|
+
), vn = (
|
|
3134
3136
|
/** @class */
|
|
3135
3137
|
function(e) {
|
|
3136
3138
|
Ee(t, e);
|
|
@@ -3139,7 +3141,7 @@ var _e = (
|
|
|
3139
3141
|
}
|
|
3140
3142
|
return t;
|
|
3141
3143
|
}(_e)
|
|
3142
|
-
),
|
|
3144
|
+
), Hn = (
|
|
3143
3145
|
/** @class */
|
|
3144
3146
|
function(e) {
|
|
3145
3147
|
Ee(t, e);
|
|
@@ -3152,17 +3154,17 @@ var _e = (
|
|
|
3152
3154
|
(function(e) {
|
|
3153
3155
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3154
3156
|
})(N || (N = {}));
|
|
3155
|
-
function
|
|
3157
|
+
function Tn(e) {
|
|
3156
3158
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3157
3159
|
var n = t[t.length - 1];
|
|
3158
3160
|
return !n || n.type !== N.literal || r.type !== N.literal ? t.push(r) : n.value += r.value, t;
|
|
3159
3161
|
}, []);
|
|
3160
3162
|
}
|
|
3161
|
-
function
|
|
3163
|
+
function Bn(e) {
|
|
3162
3164
|
return typeof e == "function";
|
|
3163
3165
|
}
|
|
3164
3166
|
function me(e, t, r, n, i, s, o) {
|
|
3165
|
-
if (e.length === 1 &&
|
|
3167
|
+
if (e.length === 1 && tt(e[0]))
|
|
3166
3168
|
return [
|
|
3167
3169
|
{
|
|
3168
3170
|
type: N.literal,
|
|
@@ -3171,14 +3173,14 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3171
3173
|
];
|
|
3172
3174
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3173
3175
|
var l = u[h];
|
|
3174
|
-
if (
|
|
3176
|
+
if (tt(l)) {
|
|
3175
3177
|
a.push({
|
|
3176
3178
|
type: N.literal,
|
|
3177
3179
|
value: l.value
|
|
3178
3180
|
});
|
|
3179
3181
|
continue;
|
|
3180
3182
|
}
|
|
3181
|
-
if (
|
|
3183
|
+
if (zr(l)) {
|
|
3182
3184
|
typeof s == "number" && a.push({
|
|
3183
3185
|
type: N.literal,
|
|
3184
3186
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3187,16 +3189,16 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3187
3189
|
}
|
|
3188
3190
|
var f = l.value;
|
|
3189
3191
|
if (!(i && f in i))
|
|
3190
|
-
throw new
|
|
3192
|
+
throw new Hn(f, o);
|
|
3191
3193
|
var c = i[f];
|
|
3192
|
-
if (
|
|
3194
|
+
if (Xr(l)) {
|
|
3193
3195
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3194
3196
|
type: typeof c == "string" ? N.literal : N.object,
|
|
3195
3197
|
value: c
|
|
3196
3198
|
});
|
|
3197
3199
|
continue;
|
|
3198
3200
|
}
|
|
3199
|
-
if (
|
|
3201
|
+
if (Tt(l)) {
|
|
3200
3202
|
var p = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3201
3203
|
a.push({
|
|
3202
3204
|
type: N.literal,
|
|
@@ -3204,7 +3206,7 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3204
3206
|
});
|
|
3205
3207
|
continue;
|
|
3206
3208
|
}
|
|
3207
|
-
if (
|
|
3209
|
+
if (Bt(l)) {
|
|
3208
3210
|
var p = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3209
3211
|
a.push({
|
|
3210
3212
|
type: N.literal,
|
|
@@ -3212,18 +3214,18 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3212
3214
|
});
|
|
3213
3215
|
continue;
|
|
3214
3216
|
}
|
|
3215
|
-
if (
|
|
3216
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3217
|
+
if (Ht(l)) {
|
|
3218
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
|
|
3217
3219
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3218
3220
|
type: N.literal,
|
|
3219
3221
|
value: r.getNumberFormat(t, p).format(c)
|
|
3220
3222
|
});
|
|
3221
3223
|
continue;
|
|
3222
3224
|
}
|
|
3223
|
-
if (
|
|
3225
|
+
if (Pt(l)) {
|
|
3224
3226
|
var E = l.children, T = l.value, P = i[T];
|
|
3225
|
-
if (!
|
|
3226
|
-
throw new
|
|
3227
|
+
if (!Bn(P))
|
|
3228
|
+
throw new vn(T, "function", o);
|
|
3227
3229
|
var B = me(E, t, r, n, i, s), L = P(B.map(function(d) {
|
|
3228
3230
|
return d.value;
|
|
3229
3231
|
}));
|
|
@@ -3234,14 +3236,14 @@ function me(e, t, r, n, i, s, o) {
|
|
|
3234
3236
|
};
|
|
3235
3237
|
}));
|
|
3236
3238
|
}
|
|
3237
|
-
if (
|
|
3239
|
+
if (St(l)) {
|
|
3238
3240
|
var v = l.options[c] || l.options.other;
|
|
3239
3241
|
if (!v)
|
|
3240
|
-
throw new
|
|
3242
|
+
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3241
3243
|
a.push.apply(a, me(v.value, t, r, n, i));
|
|
3242
3244
|
continue;
|
|
3243
3245
|
}
|
|
3244
|
-
if (
|
|
3246
|
+
if (At(l)) {
|
|
3245
3247
|
var v = l.options["=".concat(c)];
|
|
3246
3248
|
if (!v) {
|
|
3247
3249
|
if (!Intl.PluralRules)
|
|
@@ -3252,21 +3254,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3252
3254
|
v = l.options[H] || l.options.other;
|
|
3253
3255
|
}
|
|
3254
3256
|
if (!v)
|
|
3255
|
-
throw new
|
|
3257
|
+
throw new ut(l.value, c, Object.keys(l.options), o);
|
|
3256
3258
|
a.push.apply(a, me(v.value, t, r, n, i, c - (l.offset || 0)));
|
|
3257
3259
|
continue;
|
|
3258
3260
|
}
|
|
3259
3261
|
}
|
|
3260
|
-
return
|
|
3262
|
+
return Tn(a);
|
|
3261
3263
|
}
|
|
3262
|
-
function
|
|
3264
|
+
function Sn(e, t) {
|
|
3263
3265
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3264
3266
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3265
3267
|
}, {})) : e;
|
|
3266
3268
|
}
|
|
3267
|
-
function
|
|
3269
|
+
function An(e, t) {
|
|
3268
3270
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3269
|
-
return r[n] =
|
|
3271
|
+
return r[n] = Sn(e[n], t[n]), r;
|
|
3270
3272
|
}, y({}, e)) : e;
|
|
3271
3273
|
}
|
|
3272
3274
|
function Ne(e) {
|
|
@@ -3283,7 +3285,7 @@ function Ne(e) {
|
|
|
3283
3285
|
}
|
|
3284
3286
|
};
|
|
3285
3287
|
}
|
|
3286
|
-
function
|
|
3288
|
+
function Pn(e) {
|
|
3287
3289
|
return e === void 0 && (e = {
|
|
3288
3290
|
number: {},
|
|
3289
3291
|
dateTime: {},
|
|
@@ -3315,7 +3317,7 @@ function An(e) {
|
|
|
3315
3317
|
})
|
|
3316
3318
|
};
|
|
3317
3319
|
}
|
|
3318
|
-
var
|
|
3320
|
+
var Nn = (
|
|
3319
3321
|
/** @class */
|
|
3320
3322
|
function() {
|
|
3321
3323
|
function e(t, r, n, i) {
|
|
@@ -3347,13 +3349,13 @@ var Pn = (
|
|
|
3347
3349
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3348
3350
|
var o = i || {};
|
|
3349
3351
|
o.formatters;
|
|
3350
|
-
var a =
|
|
3352
|
+
var a = Dr(o, ["formatters"]);
|
|
3351
3353
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3352
3354
|
} else
|
|
3353
3355
|
this.ast = t;
|
|
3354
3356
|
if (!Array.isArray(this.ast))
|
|
3355
3357
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3356
|
-
this.formats =
|
|
3358
|
+
this.formats = An(e.formats, n), this.formatters = i && i.formatters || Pn(this.formatterCache);
|
|
3357
3359
|
}
|
|
3358
3360
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3359
3361
|
get: function() {
|
|
@@ -3366,7 +3368,7 @@ var Pn = (
|
|
|
3366
3368
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3367
3369
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3368
3370
|
}
|
|
3369
|
-
}, e.__parse =
|
|
3371
|
+
}, e.__parse = xn, e.formats = {
|
|
3370
3372
|
number: {
|
|
3371
3373
|
integer: {
|
|
3372
3374
|
maximumFractionDigits: 0
|
|
@@ -3427,7 +3429,7 @@ var Pn = (
|
|
|
3427
3429
|
}, e;
|
|
3428
3430
|
}()
|
|
3429
3431
|
);
|
|
3430
|
-
function
|
|
3432
|
+
function On(e, t) {
|
|
3431
3433
|
if (t == null)
|
|
3432
3434
|
return;
|
|
3433
3435
|
if (t in e)
|
|
@@ -3448,60 +3450,60 @@ function Nn(e, t) {
|
|
|
3448
3450
|
n = void 0;
|
|
3449
3451
|
return n;
|
|
3450
3452
|
}
|
|
3451
|
-
const F = {},
|
|
3453
|
+
const F = {}, In = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), Rt = (e, t) => {
|
|
3452
3454
|
if (t == null)
|
|
3453
3455
|
return;
|
|
3454
3456
|
if (t in F && e in F[t])
|
|
3455
3457
|
return F[t][e];
|
|
3456
3458
|
const r = xe(t);
|
|
3457
3459
|
for (let n = 0; n < r.length; n++) {
|
|
3458
|
-
const i = r[n], s =
|
|
3460
|
+
const i = r[n], s = Ln(i, e);
|
|
3459
3461
|
if (s)
|
|
3460
|
-
return
|
|
3462
|
+
return In(e, t, s);
|
|
3461
3463
|
}
|
|
3462
3464
|
};
|
|
3463
|
-
let
|
|
3465
|
+
let Xe;
|
|
3464
3466
|
const ue = ye({});
|
|
3465
|
-
function
|
|
3466
|
-
return
|
|
3467
|
+
function wn(e) {
|
|
3468
|
+
return Xe[e] || null;
|
|
3467
3469
|
}
|
|
3468
|
-
function
|
|
3469
|
-
return e in
|
|
3470
|
+
function Dt(e) {
|
|
3471
|
+
return e in Xe;
|
|
3470
3472
|
}
|
|
3471
|
-
function
|
|
3472
|
-
if (
|
|
3473
|
+
function Ln(e, t) {
|
|
3474
|
+
if (!Dt(e))
|
|
3473
3475
|
return null;
|
|
3474
|
-
const r =
|
|
3475
|
-
return
|
|
3476
|
+
const r = wn(e);
|
|
3477
|
+
return On(r, t);
|
|
3476
3478
|
}
|
|
3477
|
-
function
|
|
3479
|
+
function Cn(e) {
|
|
3478
3480
|
if (e == null)
|
|
3479
3481
|
return;
|
|
3480
3482
|
const t = xe(e);
|
|
3481
3483
|
for (let r = 0; r < t.length; r++) {
|
|
3482
3484
|
const n = t[r];
|
|
3483
|
-
if (
|
|
3485
|
+
if (Dt(n))
|
|
3484
3486
|
return n;
|
|
3485
3487
|
}
|
|
3486
3488
|
}
|
|
3487
|
-
function
|
|
3488
|
-
delete F[e], ue.update((r) => (r[e] =
|
|
3489
|
+
function Ut(e, ...t) {
|
|
3490
|
+
delete F[e], ue.update((r) => (r[e] = Rr.all([r[e] || {}, ...t]), r));
|
|
3489
3491
|
}
|
|
3490
3492
|
K(
|
|
3491
3493
|
[ue],
|
|
3492
3494
|
([e]) => Object.keys(e)
|
|
3493
3495
|
);
|
|
3494
|
-
ue.subscribe((e) =>
|
|
3496
|
+
ue.subscribe((e) => Xe = e);
|
|
3495
3497
|
const de = {};
|
|
3496
|
-
function
|
|
3498
|
+
function Mn(e, t) {
|
|
3497
3499
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3498
3500
|
}
|
|
3499
|
-
function
|
|
3501
|
+
function Ft(e) {
|
|
3500
3502
|
return de[e];
|
|
3501
3503
|
}
|
|
3502
|
-
function
|
|
3504
|
+
function $n(e) {
|
|
3503
3505
|
return xe(e).map((t) => {
|
|
3504
|
-
const r =
|
|
3506
|
+
const r = Ft(t);
|
|
3505
3507
|
return [t, r ? [...r] : []];
|
|
3506
3508
|
}).filter(([, t]) => t.length > 0);
|
|
3507
3509
|
}
|
|
@@ -3509,31 +3511,31 @@ function Ge(e) {
|
|
|
3509
3511
|
return e == null ? !1 : xe(e).some(
|
|
3510
3512
|
(t) => {
|
|
3511
3513
|
var r;
|
|
3512
|
-
return (r =
|
|
3514
|
+
return (r = Ft(t)) == null ? void 0 : r.size;
|
|
3513
3515
|
}
|
|
3514
3516
|
);
|
|
3515
3517
|
}
|
|
3516
|
-
function
|
|
3518
|
+
function Rn(e, t) {
|
|
3517
3519
|
return Promise.all(
|
|
3518
|
-
t.map((n) => (
|
|
3519
|
-
).then((n) =>
|
|
3520
|
+
t.map((n) => (Mn(e, n), n().then((i) => i.default || i)))
|
|
3521
|
+
).then((n) => Ut(e, ...n));
|
|
3520
3522
|
}
|
|
3521
3523
|
const te = {};
|
|
3522
|
-
function
|
|
3524
|
+
function Gt(e) {
|
|
3523
3525
|
if (!Ge(e))
|
|
3524
3526
|
return e in te ? te[e] : Promise.resolve();
|
|
3525
|
-
const t =
|
|
3527
|
+
const t = $n(e);
|
|
3526
3528
|
return te[e] = Promise.all(
|
|
3527
3529
|
t.map(
|
|
3528
|
-
([r, n]) =>
|
|
3530
|
+
([r, n]) => Rn(r, n)
|
|
3529
3531
|
)
|
|
3530
3532
|
).then(() => {
|
|
3531
3533
|
if (Ge(e))
|
|
3532
|
-
return
|
|
3534
|
+
return Gt(e);
|
|
3533
3535
|
delete te[e];
|
|
3534
3536
|
}), te[e];
|
|
3535
3537
|
}
|
|
3536
|
-
const
|
|
3538
|
+
const Dn = {
|
|
3537
3539
|
number: {
|
|
3538
3540
|
scientific: { notation: "scientific" },
|
|
3539
3541
|
engineering: { notation: "engineering" },
|
|
@@ -3562,34 +3564,34 @@ const Rn = {
|
|
|
3562
3564
|
timeZoneName: "short"
|
|
3563
3565
|
}
|
|
3564
3566
|
}
|
|
3565
|
-
},
|
|
3567
|
+
}, Un = {
|
|
3566
3568
|
fallbackLocale: null,
|
|
3567
3569
|
loadingDelay: 200,
|
|
3568
|
-
formats:
|
|
3570
|
+
formats: Dn,
|
|
3569
3571
|
warnOnMissingMessages: !0,
|
|
3570
3572
|
handleMissingMessage: void 0,
|
|
3571
3573
|
ignoreTag: !0
|
|
3572
|
-
},
|
|
3574
|
+
}, Fn = Un;
|
|
3573
3575
|
function Y() {
|
|
3574
|
-
return
|
|
3576
|
+
return Fn;
|
|
3575
3577
|
}
|
|
3576
3578
|
const Oe = ye(!1);
|
|
3577
|
-
var
|
|
3579
|
+
var Gn = Object.defineProperty, jn = Object.defineProperties, kn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Vn = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zn = (e, t) => {
|
|
3578
3580
|
for (var r in t || (t = {}))
|
|
3579
|
-
|
|
3580
|
-
if (
|
|
3581
|
-
for (var r of
|
|
3582
|
-
|
|
3581
|
+
Vn.call(t, r) && lt(e, r, t[r]);
|
|
3582
|
+
if (ht)
|
|
3583
|
+
for (var r of ht(t))
|
|
3584
|
+
Xn.call(t, r) && lt(e, r, t[r]);
|
|
3583
3585
|
return e;
|
|
3584
|
-
},
|
|
3586
|
+
}, Wn = (e, t) => jn(e, kn(t));
|
|
3585
3587
|
let je;
|
|
3586
3588
|
const pe = ye(null);
|
|
3587
|
-
function
|
|
3589
|
+
function ft(e) {
|
|
3588
3590
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3589
3591
|
}
|
|
3590
3592
|
function xe(e, t = Y().fallbackLocale) {
|
|
3591
|
-
const r =
|
|
3592
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3593
|
+
const r = ft(e);
|
|
3594
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3593
3595
|
}
|
|
3594
3596
|
function V() {
|
|
3595
3597
|
return je != null ? je : void 0;
|
|
@@ -3597,22 +3599,22 @@ function V() {
|
|
|
3597
3599
|
pe.subscribe((e) => {
|
|
3598
3600
|
je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3599
3601
|
});
|
|
3600
|
-
const
|
|
3601
|
-
if (e &&
|
|
3602
|
+
const Zn = (e) => {
|
|
3603
|
+
if (e && Cn(e) && Ge(e)) {
|
|
3602
3604
|
const { loadingDelay: t } = Y();
|
|
3603
3605
|
let r;
|
|
3604
3606
|
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3605
3607
|
() => Oe.set(!0),
|
|
3606
3608
|
t
|
|
3607
|
-
) : Oe.set(!0),
|
|
3609
|
+
) : Oe.set(!0), Gt(e).then(() => {
|
|
3608
3610
|
pe.set(e);
|
|
3609
3611
|
}).finally(() => {
|
|
3610
3612
|
clearTimeout(r), Oe.set(!1);
|
|
3611
3613
|
});
|
|
3612
3614
|
}
|
|
3613
3615
|
return pe.set(e);
|
|
3614
|
-
}, he = zn(
|
|
3615
|
-
set:
|
|
3616
|
+
}, he = Wn(zn({}, pe), {
|
|
3617
|
+
set: Zn
|
|
3616
3618
|
}), ve = (e) => {
|
|
3617
3619
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3618
3620
|
return (n) => {
|
|
@@ -3620,20 +3622,20 @@ const Wn = (e) => {
|
|
|
3620
3622
|
return i in t ? t[i] : t[i] = e(n);
|
|
3621
3623
|
};
|
|
3622
3624
|
};
|
|
3623
|
-
var
|
|
3625
|
+
var Qn = Object.defineProperty, ge = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
3624
3626
|
for (var r in t || (t = {}))
|
|
3625
|
-
|
|
3627
|
+
jt.call(t, r) && ct(e, r, t[r]);
|
|
3626
3628
|
if (ge)
|
|
3627
3629
|
for (var r of ge(t))
|
|
3628
|
-
|
|
3630
|
+
kt.call(t, r) && ct(e, r, t[r]);
|
|
3629
3631
|
return e;
|
|
3630
3632
|
}, ee = (e, t) => {
|
|
3631
3633
|
var r = {};
|
|
3632
3634
|
for (var n in e)
|
|
3633
|
-
|
|
3635
|
+
jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3634
3636
|
if (e != null && ge)
|
|
3635
3637
|
for (var n of ge(e))
|
|
3636
|
-
t.indexOf(n) < 0 &&
|
|
3638
|
+
t.indexOf(n) < 0 && kt.call(e, n) && (r[n] = e[n]);
|
|
3637
3639
|
return r;
|
|
3638
3640
|
};
|
|
3639
3641
|
const oe = (e, t) => {
|
|
@@ -3641,21 +3643,21 @@ const oe = (e, t) => {
|
|
|
3641
3643
|
if (e in r && t in r[e])
|
|
3642
3644
|
return r[e][t];
|
|
3643
3645
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3644
|
-
},
|
|
3646
|
+
}, Jn = ve(
|
|
3645
3647
|
(e) => {
|
|
3646
3648
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3647
3649
|
if (r == null)
|
|
3648
3650
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3649
3651
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
3650
3652
|
}
|
|
3651
|
-
),
|
|
3653
|
+
), qn = ve(
|
|
3652
3654
|
(e) => {
|
|
3653
3655
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3654
3656
|
if (r == null)
|
|
3655
3657
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3656
3658
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3657
3659
|
}
|
|
3658
|
-
),
|
|
3660
|
+
), Yn = ve(
|
|
3659
3661
|
(e) => {
|
|
3660
3662
|
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3661
3663
|
if (r == null)
|
|
@@ -3664,33 +3666,33 @@ const oe = (e, t) => {
|
|
|
3664
3666
|
);
|
|
3665
3667
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3666
3668
|
}
|
|
3667
|
-
),
|
|
3669
|
+
), Kn = (e = {}) => {
|
|
3668
3670
|
var t = e, {
|
|
3669
3671
|
locale: r = V()
|
|
3670
3672
|
} = t, n = ee(t, [
|
|
3671
3673
|
"locale"
|
|
3672
3674
|
]);
|
|
3673
|
-
return
|
|
3674
|
-
},
|
|
3675
|
+
return Jn(ze({ locale: r }, n));
|
|
3676
|
+
}, ei = (e = {}) => {
|
|
3675
3677
|
var t = e, {
|
|
3676
3678
|
locale: r = V()
|
|
3677
3679
|
} = t, n = ee(t, [
|
|
3678
3680
|
"locale"
|
|
3679
3681
|
]);
|
|
3680
|
-
return
|
|
3681
|
-
},
|
|
3682
|
+
return qn(ze({ locale: r }, n));
|
|
3683
|
+
}, ti = (e = {}) => {
|
|
3682
3684
|
var t = e, {
|
|
3683
3685
|
locale: r = V()
|
|
3684
3686
|
} = t, n = ee(t, [
|
|
3685
3687
|
"locale"
|
|
3686
3688
|
]);
|
|
3687
|
-
return
|
|
3688
|
-
},
|
|
3689
|
+
return Yn(ze({ locale: r }, n));
|
|
3690
|
+
}, ri = ve(
|
|
3689
3691
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3690
|
-
(e, t = V()) => new
|
|
3692
|
+
(e, t = V()) => new Nn(e, t, Y().formats, {
|
|
3691
3693
|
ignoreTag: Y().ignoreTag
|
|
3692
3694
|
})
|
|
3693
|
-
),
|
|
3695
|
+
), ni = (e, t = {}) => {
|
|
3694
3696
|
var r, n, i, s;
|
|
3695
3697
|
let o = t;
|
|
3696
3698
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -3703,7 +3705,7 @@ const oe = (e, t) => {
|
|
|
3703
3705
|
throw new Error(
|
|
3704
3706
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3705
3707
|
);
|
|
3706
|
-
let l =
|
|
3708
|
+
let l = Rt(e, h);
|
|
3707
3709
|
if (!l)
|
|
3708
3710
|
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3709
3711
|
else if (typeof l != "string")
|
|
@@ -3714,7 +3716,7 @@ const oe = (e, t) => {
|
|
|
3714
3716
|
return l;
|
|
3715
3717
|
let f = l;
|
|
3716
3718
|
try {
|
|
3717
|
-
f =
|
|
3719
|
+
f = ri(l, h).format(a);
|
|
3718
3720
|
} catch (c) {
|
|
3719
3721
|
c instanceof Error && console.warn(
|
|
3720
3722
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3722,15 +3724,15 @@ const oe = (e, t) => {
|
|
|
3722
3724
|
);
|
|
3723
3725
|
}
|
|
3724
3726
|
return f;
|
|
3725
|
-
},
|
|
3726
|
-
K([he], () => ni);
|
|
3727
|
+
}, ii = (e, t) => ti(t).format(e), si = (e, t) => ei(t).format(e), oi = (e, t) => Kn(t).format(e), ai = (e, t = V()) => Rt(e, t), ui = K([he, ue], () => ni);
|
|
3727
3728
|
K([he], () => ii);
|
|
3728
3729
|
K([he], () => si);
|
|
3729
|
-
K([he
|
|
3730
|
-
|
|
3731
|
-
|
|
3730
|
+
K([he], () => oi);
|
|
3731
|
+
K([he, ue], () => ai);
|
|
3732
|
+
function mt(e, t) {
|
|
3733
|
+
Ut(e, t);
|
|
3732
3734
|
}
|
|
3733
|
-
const
|
|
3735
|
+
const dt = {
|
|
3734
3736
|
en: {
|
|
3735
3737
|
finished: "Finished",
|
|
3736
3738
|
starting: "Starting in ",
|
|
@@ -3820,10 +3822,10 @@ const ct = {
|
|
|
3820
3822
|
days: "days"
|
|
3821
3823
|
}
|
|
3822
3824
|
};
|
|
3823
|
-
function
|
|
3824
|
-
|
|
3825
|
+
function hi(e) {
|
|
3826
|
+
tr(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)}");
|
|
3825
3827
|
}
|
|
3826
|
-
function
|
|
3828
|
+
function pt(e) {
|
|
3827
3829
|
let t, r, n = (
|
|
3828
3830
|
/*formatDate*/
|
|
3829
3831
|
e[10](
|
|
@@ -3842,9 +3844,9 @@ function mt(e) {
|
|
|
3842
3844
|
/*status*/
|
|
3843
3845
|
d[2] == "Finished" || /*status*/
|
|
3844
3846
|
d[2] == "Closing" || /*status*/
|
|
3845
|
-
d[2] == "Closed" ?
|
|
3847
|
+
d[2] == "Closed" ? ci : (
|
|
3846
3848
|
/*tournamentUntilStartDays*/
|
|
3847
|
-
d[5] > 0 ?
|
|
3849
|
+
d[5] > 0 ? fi : li
|
|
3848
3850
|
)
|
|
3849
3851
|
);
|
|
3850
3852
|
}
|
|
@@ -3856,17 +3858,17 @@ function mt(e) {
|
|
|
3856
3858
|
d[2] == "Closing" || /*status*/
|
|
3857
3859
|
d[2] == "Closed"
|
|
3858
3860
|
)
|
|
3859
|
-
return
|
|
3861
|
+
return pi;
|
|
3860
3862
|
if (
|
|
3861
3863
|
/*tournamentUntilStartDays*/
|
|
3862
3864
|
d[5] > 0
|
|
3863
3865
|
)
|
|
3864
|
-
return
|
|
3866
|
+
return di;
|
|
3865
3867
|
if (
|
|
3866
3868
|
/*tournamentLeftDays*/
|
|
3867
3869
|
d[4] > 0
|
|
3868
3870
|
)
|
|
3869
|
-
return
|
|
3871
|
+
return mi;
|
|
3870
3872
|
}
|
|
3871
3873
|
let v = L(e), H = v && v(e);
|
|
3872
3874
|
return {
|
|
@@ -3874,7 +3876,7 @@ function mt(e) {
|
|
|
3874
3876
|
t = I("div"), r = I("div"), i = G(n), s = re(), o = I("div"), h = G(a), u = re(), l = I("div"), f = I("div"), B.c(), c = re(), H && H.c(), _(r, "class", "StartDate"), _(r, "part", "StartDate"), _(o, "class", "EndDate"), _(o, "part", "EndDate"), _(t, "class", "TournamentDates"), _(t, "part", "TournamentDates"), _(f, "class", "ProgressBar"), _(f, "part", "ProgressBar"), _(l, "class", "ProgressBarWrapper"), _(l, "part", "ProgressBarWrapper");
|
|
3875
3877
|
},
|
|
3876
3878
|
m(d, S) {
|
|
3877
|
-
R(d, t, S), O(t, r), O(r, i), O(t, s), O(t, o), O(o, h), R(d, u, S), R(d, l, S), O(l, f), B.m(f, null), O(f, c), H && H.m(f, null), p || (E =
|
|
3879
|
+
R(d, t, S), O(t, r), O(r, i), O(t, s), O(t, o), O(o, h), R(d, u, S), R(d, l, S), O(l, f), B.m(f, null), O(f, c), H && H.m(f, null), p || (E = er(
|
|
3878
3880
|
/*getDuration*/
|
|
3879
3881
|
e[9].call(null, l)
|
|
3880
3882
|
), p = !0);
|
|
@@ -3897,11 +3899,11 @@ function mt(e) {
|
|
|
3897
3899
|
}
|
|
3898
3900
|
};
|
|
3899
3901
|
}
|
|
3900
|
-
function
|
|
3902
|
+
function li(e) {
|
|
3901
3903
|
let t;
|
|
3902
3904
|
return {
|
|
3903
3905
|
c() {
|
|
3904
|
-
t = I("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"),
|
|
3906
|
+
t = I("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"), Ye(
|
|
3905
3907
|
t,
|
|
3906
3908
|
"width",
|
|
3907
3909
|
/*getProgress*/
|
|
@@ -3913,7 +3915,7 @@ function hi(e) {
|
|
|
3913
3915
|
},
|
|
3914
3916
|
p(r, n) {
|
|
3915
3917
|
n & /*getProgress*/
|
|
3916
|
-
128 &&
|
|
3918
|
+
128 && Ye(
|
|
3917
3919
|
t,
|
|
3918
3920
|
"width",
|
|
3919
3921
|
/*getProgress*/
|
|
@@ -3925,7 +3927,7 @@ function hi(e) {
|
|
|
3925
3927
|
}
|
|
3926
3928
|
};
|
|
3927
3929
|
}
|
|
3928
|
-
function
|
|
3930
|
+
function fi(e) {
|
|
3929
3931
|
let t;
|
|
3930
3932
|
return {
|
|
3931
3933
|
c() {
|
|
@@ -3940,7 +3942,7 @@ function li(e) {
|
|
|
3940
3942
|
}
|
|
3941
3943
|
};
|
|
3942
3944
|
}
|
|
3943
|
-
function
|
|
3945
|
+
function ci(e) {
|
|
3944
3946
|
let t;
|
|
3945
3947
|
return {
|
|
3946
3948
|
c() {
|
|
@@ -3955,7 +3957,7 @@ function fi(e) {
|
|
|
3955
3957
|
}
|
|
3956
3958
|
};
|
|
3957
3959
|
}
|
|
3958
|
-
function
|
|
3960
|
+
function mi(e) {
|
|
3959
3961
|
let t, r, n, i = (
|
|
3960
3962
|
/*$_*/
|
|
3961
3963
|
e[8]("left") + ""
|
|
@@ -3985,7 +3987,7 @@ function ci(e) {
|
|
|
3985
3987
|
}
|
|
3986
3988
|
};
|
|
3987
3989
|
}
|
|
3988
|
-
function
|
|
3990
|
+
function di(e) {
|
|
3989
3991
|
let t, r = (
|
|
3990
3992
|
/*$_*/
|
|
3991
3993
|
e[8]("starting") + ""
|
|
@@ -4018,7 +4020,7 @@ function mi(e) {
|
|
|
4018
4020
|
}
|
|
4019
4021
|
};
|
|
4020
4022
|
}
|
|
4021
|
-
function
|
|
4023
|
+
function pi(e) {
|
|
4022
4024
|
let t, r = (
|
|
4023
4025
|
/*$_*/
|
|
4024
4026
|
e[8]("finished") + ""
|
|
@@ -4040,11 +4042,11 @@ function di(e) {
|
|
|
4040
4042
|
}
|
|
4041
4043
|
};
|
|
4042
4044
|
}
|
|
4043
|
-
function
|
|
4045
|
+
function gi(e) {
|
|
4044
4046
|
let t, r = (
|
|
4045
4047
|
/*startdate*/
|
|
4046
4048
|
e[0] && /*enddate*/
|
|
4047
|
-
e[1] &&
|
|
4049
|
+
e[1] && pt(e)
|
|
4048
4050
|
);
|
|
4049
4051
|
return {
|
|
4050
4052
|
c() {
|
|
@@ -4056,7 +4058,7 @@ function pi(e) {
|
|
|
4056
4058
|
p(n, [i]) {
|
|
4057
4059
|
/*startdate*/
|
|
4058
4060
|
n[0] && /*enddate*/
|
|
4059
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
4061
|
+
n[1] ? r ? r.p(n, i) : (r = pt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4060
4062
|
},
|
|
4061
4063
|
i: w,
|
|
4062
4064
|
o: w,
|
|
@@ -4065,21 +4067,21 @@ function pi(e) {
|
|
|
4065
4067
|
}
|
|
4066
4068
|
};
|
|
4067
4069
|
}
|
|
4068
|
-
function
|
|
4070
|
+
function bi(e, t, r) {
|
|
4069
4071
|
let n, i;
|
|
4070
|
-
|
|
4072
|
+
Kt(e, ui, (m) => r(8, i = m));
|
|
4071
4073
|
let { startdate: s = "" } = t, { enddate: o = "" } = t, { status: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c, p = "", E = "", T = "";
|
|
4072
4074
|
const P = () => {
|
|
4073
4075
|
fetch(f).then((A) => A.json()).then((A) => {
|
|
4074
4076
|
Object.keys(A).forEach((C) => {
|
|
4075
|
-
|
|
4077
|
+
mt(C, A[C]);
|
|
4076
4078
|
});
|
|
4077
4079
|
}).catch((A) => {
|
|
4078
4080
|
console.log(A);
|
|
4079
4081
|
});
|
|
4080
4082
|
};
|
|
4081
|
-
Object.keys(
|
|
4082
|
-
|
|
4083
|
+
Object.keys(dt).forEach((m) => {
|
|
4084
|
+
mt(m, dt[m]);
|
|
4083
4085
|
});
|
|
4084
4086
|
const B = (m) => new Date(m).getTime(), L = (m, A) => (B(A) - B(m)) / (1e3 * 60), v = () => {
|
|
4085
4087
|
const m = /* @__PURE__ */ new Date();
|
|
@@ -4094,8 +4096,8 @@ function gi(e, t, r) {
|
|
|
4094
4096
|
return D < 10 ? `0${D}` : `${D}`;
|
|
4095
4097
|
};
|
|
4096
4098
|
if (m < 1440) {
|
|
4097
|
-
const j = m / 60, D = m % 60,
|
|
4098
|
-
return [j, D,
|
|
4099
|
+
const j = m / 60, D = m % 60, Xt = (D - Math.floor(D)) * 60;
|
|
4100
|
+
return [j, D, Xt].map((zt) => C(zt)).join(":");
|
|
4099
4101
|
}
|
|
4100
4102
|
return A(Math.ceil(m / (60 * 24)), "days");
|
|
4101
4103
|
}, S = () => {
|
|
@@ -4116,7 +4118,7 @@ function gi(e, t, r) {
|
|
|
4116
4118
|
);
|
|
4117
4119
|
});
|
|
4118
4120
|
};
|
|
4119
|
-
|
|
4121
|
+
ar(() => {
|
|
4120
4122
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4121
4123
|
const m = setInterval(
|
|
4122
4124
|
() => {
|
|
@@ -4126,7 +4128,7 @@ function gi(e, t, r) {
|
|
|
4126
4128
|
);
|
|
4127
4129
|
return () => clearInterval(m);
|
|
4128
4130
|
});
|
|
4129
|
-
function
|
|
4131
|
+
function Vt(m) {
|
|
4130
4132
|
Ie[m ? "unshift" : "push"](() => {
|
|
4131
4133
|
c = m, r(3, c);
|
|
4132
4134
|
});
|
|
@@ -4164,17 +4166,17 @@ function gi(e, t, r) {
|
|
|
4164
4166
|
u,
|
|
4165
4167
|
l,
|
|
4166
4168
|
f,
|
|
4167
|
-
|
|
4169
|
+
Vt
|
|
4168
4170
|
];
|
|
4169
4171
|
}
|
|
4170
|
-
class
|
|
4172
|
+
class yi extends Er {
|
|
4171
4173
|
constructor(t) {
|
|
4172
|
-
super(),
|
|
4174
|
+
super(), br(
|
|
4173
4175
|
this,
|
|
4174
4176
|
t,
|
|
4177
|
+
bi,
|
|
4175
4178
|
gi,
|
|
4176
|
-
|
|
4177
|
-
pt,
|
|
4179
|
+
bt,
|
|
4178
4180
|
{
|
|
4179
4181
|
startdate: 0,
|
|
4180
4182
|
enddate: 1,
|
|
@@ -4184,7 +4186,7 @@ class bi extends br {
|
|
|
4184
4186
|
clientstylingurl: 14,
|
|
4185
4187
|
translationurl: 15
|
|
4186
4188
|
},
|
|
4187
|
-
|
|
4189
|
+
hi
|
|
4188
4190
|
);
|
|
4189
4191
|
}
|
|
4190
4192
|
get startdate() {
|
|
@@ -4230,7 +4232,7 @@ class bi extends br {
|
|
|
4230
4232
|
this.$$set({ translationurl: t }), U();
|
|
4231
4233
|
}
|
|
4232
4234
|
}
|
|
4233
|
-
|
|
4235
|
+
yr(yi, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4234
4236
|
export {
|
|
4235
|
-
|
|
4237
|
+
yi as default
|
|
4236
4238
|
};
|