@everymatrix/casino-tournaments-thumbnail-duration 1.87.26 → 1.87.28
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-3QCRwbx1.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailDuration-B8mUy4Xu.js → CasinoTournamentsThumbnailDuration-C5kia0sy.js} +739 -711
- package/components/{CasinoTournamentsThumbnailDuration-3FQ0f1Uj.js → CasinoTournamentsThumbnailDuration-CSmFWnv2.js} +689 -662
- 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-C_-DLaMa.cjs +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function ft(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ze() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function he(e) {
|
|
10
|
+
e.forEach(ft);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ee(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ct(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function jt(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function mt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,23 +27,23 @@ function ct(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function kt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(mt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return e &&
|
|
33
|
+
function Vt(e) {
|
|
34
|
+
return e && Ee(e.destroy) ? e.destroy : I;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function w(e, t) {
|
|
37
37
|
e.appendChild(t);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const n =
|
|
39
|
+
function Xt(e, t, r) {
|
|
40
|
+
const n = zt(e);
|
|
41
41
|
if (!n.getElementById(t)) {
|
|
42
42
|
const i = N("style");
|
|
43
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
i.id = t, i.textContent = r, Wt(n, i);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function zt(e) {
|
|
47
47
|
if (!e)
|
|
48
48
|
return document;
|
|
49
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -53,8 +53,8 @@ function Vt(e) {
|
|
|
53
53
|
t
|
|
54
54
|
) : e.ownerDocument;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
56
|
+
function Wt(e, t) {
|
|
57
|
+
return w(
|
|
58
58
|
/** @type {Document} */
|
|
59
59
|
e.head || e,
|
|
60
60
|
t
|
|
@@ -72,23 +72,23 @@ function N(e) {
|
|
|
72
72
|
function G(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ie() {
|
|
76
76
|
return G(" ");
|
|
77
77
|
}
|
|
78
78
|
function _(e, t, r) {
|
|
79
79
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Zt(e) {
|
|
82
82
|
return Array.from(e.childNodes);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function V(e, t) {
|
|
85
85
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
86
86
|
t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function We(e, t, r, n) {
|
|
89
89
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Qt(e) {
|
|
92
92
|
const t = {};
|
|
93
93
|
return e.childNodes.forEach(
|
|
94
94
|
/** @param {Element} node */
|
|
@@ -97,87 +97,87 @@ function Wt(e) {
|
|
|
97
97
|
}
|
|
98
98
|
), t;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
100
|
+
let oe;
|
|
101
|
+
function se(e) {
|
|
102
|
+
oe = e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
104
|
+
function Jt() {
|
|
105
|
+
if (!oe)
|
|
106
106
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
107
|
+
return oe;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
109
|
+
function qt(e) {
|
|
110
|
+
Jt().$$.on_mount.push(e);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
112
|
+
const Z = [], Ie = [];
|
|
113
|
+
let J = [];
|
|
114
|
+
const Ze = [], Yt = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Ce = !1;
|
|
116
|
+
function Kt() {
|
|
117
|
+
Ce || (Ce = !0, Yt.then(R));
|
|
118
118
|
}
|
|
119
119
|
function Le(e) {
|
|
120
|
-
|
|
120
|
+
J.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
122
|
+
const He = /* @__PURE__ */ new Set();
|
|
123
|
+
let z = 0;
|
|
124
124
|
function R() {
|
|
125
|
-
if (
|
|
125
|
+
if (z !== 0)
|
|
126
126
|
return;
|
|
127
|
-
const e =
|
|
127
|
+
const e = oe;
|
|
128
128
|
do {
|
|
129
129
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t =
|
|
132
|
-
|
|
130
|
+
for (; z < Z.length; ) {
|
|
131
|
+
const t = Z[z];
|
|
132
|
+
z++, se(t), er(t.$$);
|
|
133
133
|
}
|
|
134
134
|
} catch (t) {
|
|
135
|
-
throw
|
|
135
|
+
throw Z.length = 0, z = 0, t;
|
|
136
136
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
141
|
-
|
|
137
|
+
for (se(null), Z.length = 0, z = 0; Ie.length; )
|
|
138
|
+
Ie.pop()();
|
|
139
|
+
for (let t = 0; t < J.length; t += 1) {
|
|
140
|
+
const r = J[t];
|
|
141
|
+
He.has(r) || (He.add(r), r());
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
} while (
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
J.length = 0;
|
|
144
|
+
} while (Z.length);
|
|
145
|
+
for (; Ze.length; )
|
|
146
|
+
Ze.pop()();
|
|
147
|
+
Ce = !1, He.clear(), se(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function er(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
151
|
+
e.update(), he(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
153
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function tr(e) {
|
|
157
157
|
const t = [], r = [];
|
|
158
|
-
|
|
158
|
+
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
160
|
+
const rr = /* @__PURE__ */ new Set();
|
|
161
|
+
function nr(e, t) {
|
|
162
|
+
e && e.i && (rr.delete(e), e.i(t));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ir(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
166
|
n && n.m(t, r), Le(() => {
|
|
167
|
-
const s = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
167
|
+
const s = e.$$.on_mount.map(ft).filter(Ee);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : he(s), e.$$.on_mount = [];
|
|
169
169
|
}), i.forEach(Le);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function sr(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (tr(r.after_update), he(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (
|
|
175
|
+
function or(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (Z.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const l =
|
|
180
|
-
|
|
178
|
+
function ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
179
|
+
const l = oe;
|
|
180
|
+
se(e);
|
|
181
181
|
const u = e.$$ = {
|
|
182
182
|
fragment: null,
|
|
183
183
|
ctx: [],
|
|
@@ -185,7 +185,7 @@ function sr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
185
185
|
props: s,
|
|
186
186
|
update: I,
|
|
187
187
|
not_equal: i,
|
|
188
|
-
bound:
|
|
188
|
+
bound: ze(),
|
|
189
189
|
// lifecycle
|
|
190
190
|
on_mount: [],
|
|
191
191
|
on_destroy: [],
|
|
@@ -194,28 +194,28 @@ function sr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
194
194
|
after_update: [],
|
|
195
195
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
196
196
|
// everything else
|
|
197
|
-
callbacks:
|
|
197
|
+
callbacks: ze(),
|
|
198
198
|
dirty: o,
|
|
199
199
|
skip_bound: !1,
|
|
200
200
|
root: t.target || l.$$.root
|
|
201
201
|
};
|
|
202
202
|
a && a(u.root);
|
|
203
203
|
let h = !1;
|
|
204
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
205
|
-
const y =
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = y) && (!u.skip_bound && u.bound[f] && u.bound[f](y), h &&
|
|
207
|
-
}) : [], u.update(), h = !0,
|
|
204
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
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 && or(e, f)), c;
|
|
207
|
+
}) : [], u.update(), h = !0, he(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
208
|
if (t.hydrate) {
|
|
209
|
-
const f =
|
|
209
|
+
const f = Zt(t.target);
|
|
210
210
|
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
211
211
|
} else
|
|
212
212
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
213
|
+
t.intro && nr(e.$$.fragment), ir(e, t.target, t.anchor), R();
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
se(l);
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let dt;
|
|
218
|
+
typeof HTMLElement == "function" && (dt = class extends HTMLElement {
|
|
219
219
|
/** The Svelte component constructor */
|
|
220
220
|
$$ctor;
|
|
221
221
|
/** Slots */
|
|
@@ -274,12 +274,12 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
274
274
|
};
|
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
276
|
return;
|
|
277
|
-
const t = {}, r =
|
|
277
|
+
const t = {}, r = Qt(this);
|
|
278
278
|
for (const i of this.$$s)
|
|
279
279
|
i in r && (t[i] = [e(i)]);
|
|
280
280
|
for (const i of this.attributes) {
|
|
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] = me(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 = me(
|
|
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] = me(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 me(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;
|
|
@@ -361,8 +361,8 @@ function ce(e, t, r, n) {
|
|
|
361
361
|
return t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
let a = class extends
|
|
364
|
+
function ur(e, t, r, n, i, s) {
|
|
365
|
+
let a = class extends dt {
|
|
366
366
|
constructor() {
|
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
|
368
368
|
}
|
|
@@ -378,7 +378,7 @@ function or(e, t, r, n, i, s) {
|
|
|
378
378
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
379
379
|
},
|
|
380
380
|
set(l) {
|
|
381
|
-
l =
|
|
381
|
+
l = me(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}), n.forEach((o) => {
|
|
@@ -390,7 +390,7 @@ function or(e, t, r, n, i, s) {
|
|
|
390
390
|
}), e.element = /** @type {any} */
|
|
391
391
|
a, a;
|
|
392
392
|
}
|
|
393
|
-
class
|
|
393
|
+
class hr {
|
|
394
394
|
/**
|
|
395
395
|
* ### PRIVATE API
|
|
396
396
|
*
|
|
@@ -409,7 +409,7 @@ class ar {
|
|
|
409
409
|
$$set = void 0;
|
|
410
410
|
/** @returns {void} */
|
|
411
411
|
$destroy() {
|
|
412
|
-
|
|
412
|
+
sr(this, 1), this.$destroy = I;
|
|
413
413
|
}
|
|
414
414
|
/**
|
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,7 +418,7 @@ class ar {
|
|
|
418
418
|
* @returns {() => void}
|
|
419
419
|
*/
|
|
420
420
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
421
|
+
if (!Ee(r))
|
|
422
422
|
return I;
|
|
423
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
424
|
return n.push(r), () => {
|
|
@@ -431,29 +431,29 @@ class ar {
|
|
|
431
431
|
* @returns {void}
|
|
432
432
|
*/
|
|
433
433
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
434
|
+
this.$$set && !jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
439
|
-
const
|
|
440
|
-
function
|
|
437
|
+
const lr = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(lr);
|
|
439
|
+
const W = [];
|
|
440
|
+
function fr(e, t) {
|
|
441
441
|
return {
|
|
442
|
-
subscribe:
|
|
442
|
+
subscribe: _e(e, t).subscribe
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function _e(e, t = I) {
|
|
446
446
|
let r;
|
|
447
447
|
const n = /* @__PURE__ */ new Set();
|
|
448
448
|
function i(o) {
|
|
449
|
-
if (
|
|
450
|
-
const l = !
|
|
449
|
+
if (ct(e, o) && (e = o, r)) {
|
|
450
|
+
const l = !W.length;
|
|
451
451
|
for (const u of n)
|
|
452
|
-
u[1](),
|
|
452
|
+
u[1](), W.push(u, e);
|
|
453
453
|
if (l) {
|
|
454
|
-
for (let u = 0; u <
|
|
455
|
-
|
|
456
|
-
|
|
454
|
+
for (let u = 0; u < W.length; u += 2)
|
|
455
|
+
W[u][0](W[u + 1]);
|
|
456
|
+
W.length = 0;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
@@ -468,12 +468,12 @@ function Ee(e, t = I) {
|
|
|
468
468
|
}
|
|
469
469
|
return { set: i, update: s, subscribe: a };
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function te(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");
|
|
475
475
|
const s = t.length < 2;
|
|
476
|
-
return
|
|
476
|
+
return fr(r, (a, o) => {
|
|
477
477
|
let l = !1;
|
|
478
478
|
const u = [];
|
|
479
479
|
let h = 0, f = I;
|
|
@@ -482,109 +482,109 @@ function K(e, t, r) {
|
|
|
482
482
|
return;
|
|
483
483
|
f();
|
|
484
484
|
const y = t(n ? u[0] : u, a, o);
|
|
485
|
-
s ? a(y) : f =
|
|
486
|
-
},
|
|
487
|
-
(y,
|
|
485
|
+
s ? a(y) : f = Ee(y) ? y : I;
|
|
486
|
+
}, p = i.map(
|
|
487
|
+
(y, E) => mt(
|
|
488
488
|
y,
|
|
489
|
-
(
|
|
490
|
-
u[
|
|
489
|
+
(B) => {
|
|
490
|
+
u[E] = B, h &= ~(1 << E), l && c();
|
|
491
491
|
},
|
|
492
492
|
() => {
|
|
493
|
-
h |= 1 <<
|
|
493
|
+
h |= 1 << E;
|
|
494
494
|
}
|
|
495
495
|
)
|
|
496
496
|
);
|
|
497
497
|
return l = !0, c(), function() {
|
|
498
|
-
|
|
498
|
+
he(p), f(), l = !1;
|
|
499
499
|
};
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function cr(e) {
|
|
503
503
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
return
|
|
505
|
+
var mr = function(t) {
|
|
506
|
+
return dr(t) && !pr(t);
|
|
507
507
|
};
|
|
508
|
-
function
|
|
508
|
+
function dr(e) {
|
|
509
509
|
return !!e && typeof e == "object";
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function pr(e) {
|
|
512
512
|
var t = Object.prototype.toString.call(e);
|
|
513
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
513
|
+
return t === "[object RegExp]" || t === "[object Date]" || yr(e);
|
|
514
514
|
}
|
|
515
|
-
var
|
|
516
|
-
function
|
|
517
|
-
return e.$$typeof ===
|
|
515
|
+
var gr = typeof Symbol == "function" && Symbol.for, br = gr ? Symbol.for("react.element") : 60103;
|
|
516
|
+
function yr(e) {
|
|
517
|
+
return e.$$typeof === br;
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Er(e) {
|
|
520
520
|
return Array.isArray(e) ? [] : {};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
522
|
+
function ae(e, t) {
|
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(Er(e), e, t) : e;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function _r(e, t, r) {
|
|
526
526
|
return e.concat(t).map(function(n) {
|
|
527
|
-
return
|
|
527
|
+
return ae(n, r);
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function xr(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
|
-
function
|
|
536
|
+
function vr(e) {
|
|
537
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
538
538
|
return Object.propertyIsEnumerable.call(e, t);
|
|
539
539
|
}) : [];
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
return Object.keys(e).concat(
|
|
541
|
+
function Qe(e) {
|
|
542
|
+
return Object.keys(e).concat(vr(e));
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function pt(e, t) {
|
|
545
545
|
try {
|
|
546
546
|
return t in e;
|
|
547
547
|
} catch {
|
|
548
548
|
return !1;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
return
|
|
551
|
+
function Sr(e, t) {
|
|
552
|
+
return pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Tr(e, t, r) {
|
|
555
555
|
var n = {};
|
|
556
|
-
return r.isMergeableObject(e) &&
|
|
557
|
-
n[i] =
|
|
558
|
-
}),
|
|
559
|
-
|
|
556
|
+
return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
|
|
557
|
+
n[i] = ae(e[i], r);
|
|
558
|
+
}), Qe(t).forEach(function(i) {
|
|
559
|
+
Sr(e, i) || (pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = xr(i, r)(e[i], t[i], r) : n[i] = ae(t[i], r));
|
|
560
560
|
}), n;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
562
|
+
function q(e, t, r) {
|
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || mr, r.cloneUnlessOtherwiseSpecified = ae;
|
|
564
564
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
565
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
565
|
+
return s ? n ? r.arrayMerge(e, t, r) : Tr(e, t, r) : ae(t, r);
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
q.all = function(t, r) {
|
|
568
568
|
if (!Array.isArray(t))
|
|
569
569
|
throw new Error("first argument should be an array");
|
|
570
570
|
return t.reduce(function(n, i) {
|
|
571
|
-
return
|
|
571
|
+
return q(n, i, r);
|
|
572
572
|
}, {});
|
|
573
573
|
};
|
|
574
|
-
var Hr =
|
|
575
|
-
const
|
|
576
|
-
var
|
|
577
|
-
return
|
|
574
|
+
var Hr = q, Br = Hr;
|
|
575
|
+
const Ar = /* @__PURE__ */ cr(Br);
|
|
576
|
+
var Me = function(e, t) {
|
|
577
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
578
578
|
r.__proto__ = n;
|
|
579
579
|
} || function(r, n) {
|
|
580
580
|
for (var i in n)
|
|
581
581
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
582
|
-
},
|
|
582
|
+
}, Me(e, t);
|
|
583
583
|
};
|
|
584
|
-
function
|
|
584
|
+
function xe(e, t) {
|
|
585
585
|
if (typeof t != "function" && t !== null)
|
|
586
586
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
587
|
-
|
|
587
|
+
Me(e, t);
|
|
588
588
|
function r() {
|
|
589
589
|
this.constructor = e;
|
|
590
590
|
}
|
|
@@ -600,7 +600,7 @@ var D = function() {
|
|
|
600
600
|
return t;
|
|
601
601
|
}, D.apply(this, arguments);
|
|
602
602
|
};
|
|
603
|
-
function
|
|
603
|
+
function Pr(e, t) {
|
|
604
604
|
var r = {};
|
|
605
605
|
for (var n in e)
|
|
606
606
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -615,37 +615,37 @@ function Be(e, t, r) {
|
|
|
615
615
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
616
616
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
617
617
|
}
|
|
618
|
-
function
|
|
619
|
-
var r = t && t.cache ? t.cache :
|
|
618
|
+
function Ae(e, t) {
|
|
619
|
+
var r = t && t.cache ? t.cache : Mr, n = t && t.serializer ? t.serializer : Cr, i = t && t.strategy ? t.strategy : Nr;
|
|
620
620
|
return i(e, {
|
|
621
621
|
cache: r,
|
|
622
622
|
serializer: n
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function wr(e) {
|
|
626
626
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
var i =
|
|
628
|
+
function Or(e, t, r, n) {
|
|
629
|
+
var i = wr(n) ? n : r(n), s = t.get(i);
|
|
630
630
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function gt(e, t, r) {
|
|
633
633
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
634
634
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function bt(e, t, r, n, i) {
|
|
637
637
|
return r.bind(t, e, n, i);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
var r = e.length === 1 ?
|
|
641
|
-
return
|
|
639
|
+
function Nr(e, t) {
|
|
640
|
+
var r = e.length === 1 ? Or : gt;
|
|
641
|
+
return bt(e, this, r, t.cache.create(), t.serializer);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
643
|
+
function Ir(e, t) {
|
|
644
|
+
return bt(e, this, gt, t.cache.create(), t.serializer);
|
|
645
645
|
}
|
|
646
|
-
var
|
|
646
|
+
var Cr = function() {
|
|
647
647
|
return JSON.stringify(arguments);
|
|
648
|
-
},
|
|
648
|
+
}, Lr = (
|
|
649
649
|
/** @class */
|
|
650
650
|
function() {
|
|
651
651
|
function e() {
|
|
@@ -657,71 +657,71 @@ var Nr = function() {
|
|
|
657
657
|
this.cache[t] = r;
|
|
658
658
|
}, e;
|
|
659
659
|
}()
|
|
660
|
-
),
|
|
660
|
+
), Mr = {
|
|
661
661
|
create: function() {
|
|
662
|
-
return new
|
|
662
|
+
return new Lr();
|
|
663
663
|
}
|
|
664
|
-
},
|
|
665
|
-
variadic:
|
|
666
|
-
},
|
|
667
|
-
return
|
|
664
|
+
}, Pe = {
|
|
665
|
+
variadic: Ir
|
|
666
|
+
}, ge = function() {
|
|
667
|
+
return ge = Object.assign || function(t) {
|
|
668
668
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
669
669
|
r = arguments[n];
|
|
670
670
|
for (var s in r)
|
|
671
671
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
672
672
|
}
|
|
673
673
|
return t;
|
|
674
|
-
},
|
|
674
|
+
}, ge.apply(this, arguments);
|
|
675
675
|
};
|
|
676
676
|
var g;
|
|
677
677
|
(function(e) {
|
|
678
678
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
679
679
|
})(g || (g = {}));
|
|
680
|
-
var
|
|
680
|
+
var v;
|
|
681
681
|
(function(e) {
|
|
682
682
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
683
|
-
})(
|
|
684
|
-
var
|
|
683
|
+
})(v || (v = {}));
|
|
684
|
+
var Y;
|
|
685
685
|
(function(e) {
|
|
686
686
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
687
|
-
})(
|
|
688
|
-
function
|
|
689
|
-
return e.type ===
|
|
690
|
-
}
|
|
691
|
-
function Cr(e) {
|
|
692
|
-
return e.type === x.argument;
|
|
687
|
+
})(Y || (Y = {}));
|
|
688
|
+
function Je(e) {
|
|
689
|
+
return e.type === v.literal;
|
|
693
690
|
}
|
|
694
|
-
function
|
|
695
|
-
return e.type ===
|
|
691
|
+
function $r(e) {
|
|
692
|
+
return e.type === v.argument;
|
|
696
693
|
}
|
|
697
694
|
function yt(e) {
|
|
698
|
-
return e.type ===
|
|
695
|
+
return e.type === v.number;
|
|
699
696
|
}
|
|
700
697
|
function Et(e) {
|
|
701
|
-
return e.type ===
|
|
698
|
+
return e.type === v.date;
|
|
702
699
|
}
|
|
703
700
|
function _t(e) {
|
|
704
|
-
return e.type ===
|
|
701
|
+
return e.type === v.time;
|
|
705
702
|
}
|
|
706
703
|
function xt(e) {
|
|
707
|
-
return e.type ===
|
|
708
|
-
}
|
|
709
|
-
function Mr(e) {
|
|
710
|
-
return e.type === x.pound;
|
|
704
|
+
return e.type === v.select;
|
|
711
705
|
}
|
|
712
706
|
function vt(e) {
|
|
713
|
-
return e.type ===
|
|
707
|
+
return e.type === v.plural;
|
|
714
708
|
}
|
|
715
|
-
function
|
|
716
|
-
return
|
|
709
|
+
function Rr(e) {
|
|
710
|
+
return e.type === v.pound;
|
|
717
711
|
}
|
|
718
|
-
function
|
|
719
|
-
return
|
|
712
|
+
function St(e) {
|
|
713
|
+
return e.type === v.tag;
|
|
720
714
|
}
|
|
721
|
-
|
|
722
|
-
|
|
715
|
+
function Tt(e) {
|
|
716
|
+
return !!(e && typeof e == "object" && e.type === Y.number);
|
|
717
|
+
}
|
|
718
|
+
function $e(e) {
|
|
719
|
+
return !!(e && typeof e == "object" && e.type === Y.dateTime);
|
|
720
|
+
}
|
|
721
|
+
var Ht = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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 Ur(e) {
|
|
723
723
|
var t = {};
|
|
724
|
-
return e.replace(
|
|
724
|
+
return e.replace(Dr, function(r) {
|
|
725
725
|
var n = r.length;
|
|
726
726
|
switch (r[0]) {
|
|
727
727
|
case "G":
|
|
@@ -810,21 +810,21 @@ function Rr(e) {
|
|
|
810
810
|
return "";
|
|
811
811
|
}), t;
|
|
812
812
|
}
|
|
813
|
-
var
|
|
814
|
-
return
|
|
813
|
+
var S = function() {
|
|
814
|
+
return S = Object.assign || function(t) {
|
|
815
815
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
816
816
|
r = arguments[n];
|
|
817
817
|
for (var s in r)
|
|
818
818
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
819
819
|
}
|
|
820
820
|
return t;
|
|
821
|
-
},
|
|
821
|
+
}, S.apply(this, arguments);
|
|
822
822
|
};
|
|
823
|
-
var
|
|
824
|
-
function
|
|
823
|
+
var Fr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
824
|
+
function Gr(e) {
|
|
825
825
|
if (e.length === 0)
|
|
826
826
|
throw new Error("Number skeleton cannot be empty");
|
|
827
|
-
for (var t = e.split(
|
|
827
|
+
for (var t = e.split(Fr).filter(function(c) {
|
|
828
828
|
return c.length > 0;
|
|
829
829
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
830
830
|
var s = i[n], a = s.split("/");
|
|
@@ -839,17 +839,17 @@ function Ur(e) {
|
|
|
839
839
|
}
|
|
840
840
|
return r;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function jr(e) {
|
|
843
843
|
return e.replace(/^(.*?)-/, "");
|
|
844
844
|
}
|
|
845
|
-
var
|
|
846
|
-
function
|
|
845
|
+
var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Bt = /^(@+)?(\+|#+)?[rs]?$/g, kr = /(\*)(0+)|(#+)(0+)|(0+)/g, At = /^(0+)$/;
|
|
846
|
+
function Ye(e) {
|
|
847
847
|
var t = {};
|
|
848
848
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Bt, function(r, n, i) {
|
|
849
849
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
850
850
|
}), t;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Pt(e) {
|
|
853
853
|
switch (e) {
|
|
854
854
|
case "sign-auto":
|
|
855
855
|
return {
|
|
@@ -889,7 +889,7 @@ function At(e) {
|
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Vr(e) {
|
|
893
893
|
var t;
|
|
894
894
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
895
895
|
notation: "engineering"
|
|
@@ -897,17 +897,17 @@ function jr(e) {
|
|
|
897
897
|
notation: "scientific"
|
|
898
898
|
}, e = e.slice(1)), t) {
|
|
899
899
|
var r = e.slice(0, 2);
|
|
900
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
900
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !At.test(e))
|
|
901
901
|
throw new Error("Malformed concise eng/scientific notation");
|
|
902
902
|
t.minimumIntegerDigits = e.length;
|
|
903
903
|
}
|
|
904
904
|
return t;
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
var t = {}, r =
|
|
906
|
+
function Ke(e) {
|
|
907
|
+
var t = {}, r = Pt(e);
|
|
908
908
|
return r || t;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function Xr(e) {
|
|
911
911
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
912
912
|
var i = n[r];
|
|
913
913
|
switch (i.stem) {
|
|
@@ -931,7 +931,7 @@ function kr(e) {
|
|
|
931
931
|
continue;
|
|
932
932
|
case "measure-unit":
|
|
933
933
|
case "unit":
|
|
934
|
-
t.style = "unit", t.unit =
|
|
934
|
+
t.style = "unit", t.unit = jr(i.options[0]);
|
|
935
935
|
continue;
|
|
936
936
|
case "compact-short":
|
|
937
937
|
case "K":
|
|
@@ -942,13 +942,13 @@ function kr(e) {
|
|
|
942
942
|
t.notation = "compact", t.compactDisplay = "long";
|
|
943
943
|
continue;
|
|
944
944
|
case "scientific":
|
|
945
|
-
t =
|
|
946
|
-
return
|
|
945
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
946
|
+
return S(S({}, l), Ke(u));
|
|
947
947
|
}, {}));
|
|
948
948
|
continue;
|
|
949
949
|
case "engineering":
|
|
950
|
-
t =
|
|
951
|
-
return
|
|
950
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
951
|
+
return S(S({}, l), Ke(u));
|
|
952
952
|
}, {}));
|
|
953
953
|
continue;
|
|
954
954
|
case "notation-simple":
|
|
@@ -993,45 +993,45 @@ function kr(e) {
|
|
|
993
993
|
case "integer-width":
|
|
994
994
|
if (i.options.length > 1)
|
|
995
995
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
996
|
-
i.options[0].replace(
|
|
996
|
+
i.options[0].replace(kr, function(l, u, h, f, c, p) {
|
|
997
997
|
if (u)
|
|
998
998
|
t.minimumIntegerDigits = h.length;
|
|
999
999
|
else {
|
|
1000
1000
|
if (f && c)
|
|
1001
1001
|
throw new Error("We currently do not support maximum integer digits");
|
|
1002
|
-
if (
|
|
1002
|
+
if (p)
|
|
1003
1003
|
throw new Error("We currently do not support exact integer digits");
|
|
1004
1004
|
}
|
|
1005
1005
|
return "";
|
|
1006
1006
|
});
|
|
1007
1007
|
continue;
|
|
1008
1008
|
}
|
|
1009
|
-
if (
|
|
1009
|
+
if (At.test(i.stem)) {
|
|
1010
1010
|
t.minimumIntegerDigits = i.stem.length;
|
|
1011
1011
|
continue;
|
|
1012
1012
|
}
|
|
1013
|
-
if (
|
|
1013
|
+
if (qe.test(i.stem)) {
|
|
1014
1014
|
if (i.options.length > 1)
|
|
1015
1015
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1016
|
-
i.stem.replace(
|
|
1017
|
-
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1016
|
+
i.stem.replace(qe, function(l, u, h, f, c, p) {
|
|
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), "";
|
|
1018
1018
|
});
|
|
1019
1019
|
var s = i.options[0];
|
|
1020
|
-
s === "w" ? t =
|
|
1020
|
+
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), Ye(s)));
|
|
1021
1021
|
continue;
|
|
1022
1022
|
}
|
|
1023
1023
|
if (Bt.test(i.stem)) {
|
|
1024
|
-
t =
|
|
1024
|
+
t = S(S({}, t), Ye(i.stem));
|
|
1025
1025
|
continue;
|
|
1026
1026
|
}
|
|
1027
|
-
var a =
|
|
1028
|
-
a && (t =
|
|
1029
|
-
var o =
|
|
1030
|
-
o && (t =
|
|
1027
|
+
var a = Pt(i.stem);
|
|
1028
|
+
a && (t = S(S({}, t), a));
|
|
1029
|
+
var o = Vr(i.stem);
|
|
1030
|
+
o && (t = S(S({}, t), o));
|
|
1031
1031
|
}
|
|
1032
1032
|
return t;
|
|
1033
1033
|
}
|
|
1034
|
-
var
|
|
1034
|
+
var ce = {
|
|
1035
1035
|
"001": [
|
|
1036
1036
|
"H",
|
|
1037
1037
|
"h"
|
|
@@ -2446,13 +2446,13 @@ var fe = {
|
|
|
2446
2446
|
"h"
|
|
2447
2447
|
]
|
|
2448
2448
|
};
|
|
2449
|
-
function
|
|
2449
|
+
function zr(e, t) {
|
|
2450
2450
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2451
2451
|
var i = e.charAt(n);
|
|
2452
2452
|
if (i === "j") {
|
|
2453
2453
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2454
2454
|
s++, n++;
|
|
2455
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2455
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Wr(t);
|
|
2456
2456
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2457
2457
|
r += l;
|
|
2458
2458
|
for (; a-- > 0; )
|
|
@@ -2462,7 +2462,7 @@ function Vr(e, t) {
|
|
|
2462
2462
|
}
|
|
2463
2463
|
return r;
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function Wr(e) {
|
|
2466
2466
|
var t = e.hourCycle;
|
|
2467
2467
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2468
2468
|
e.hourCycles && // @ts-ignore
|
|
@@ -2481,23 +2481,23 @@ function Xr(e) {
|
|
|
2481
2481
|
}
|
|
2482
2482
|
var r = e.language, n;
|
|
2483
2483
|
r !== "root" && (n = e.maximize().region);
|
|
2484
|
-
var i =
|
|
2484
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
2485
2485
|
return i[0];
|
|
2486
2486
|
}
|
|
2487
|
-
var
|
|
2487
|
+
var we, Zr = new RegExp("^".concat(Ht.source, "*")), Qr = new RegExp("".concat(Ht.source, "*$"));
|
|
2488
2488
|
function b(e, t) {
|
|
2489
2489
|
return { start: e, end: t };
|
|
2490
2490
|
}
|
|
2491
|
-
var
|
|
2491
|
+
var Jr = !!String.prototype.startsWith && "_a".startsWith("a", 1), qr = !!String.fromCodePoint, Yr = !!Object.fromEntries, Kr = !!String.prototype.codePointAt, en = !!String.prototype.trimStart, tn = !!String.prototype.trimEnd, rn = !!Number.isSafeInteger, nn = rn ? Number.isSafeInteger : function(e) {
|
|
2492
2492
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2493
|
-
},
|
|
2493
|
+
}, Re = !0;
|
|
2494
2494
|
try {
|
|
2495
|
-
var
|
|
2496
|
-
|
|
2495
|
+
var sn = Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2496
|
+
Re = ((we = sn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2497
2497
|
} catch {
|
|
2498
|
-
|
|
2498
|
+
Re = !1;
|
|
2499
2499
|
}
|
|
2500
|
-
var
|
|
2500
|
+
var et = Jr ? (
|
|
2501
2501
|
// Native
|
|
2502
2502
|
function(t, r, n) {
|
|
2503
2503
|
return t.startsWith(r, n);
|
|
@@ -2507,7 +2507,7 @@ var Ke = Zr ? (
|
|
|
2507
2507
|
function(t, r, n) {
|
|
2508
2508
|
return t.slice(n, n + r.length) === r;
|
|
2509
2509
|
}
|
|
2510
|
-
),
|
|
2510
|
+
), De = qr ? String.fromCodePoint : (
|
|
2511
2511
|
// IE11
|
|
2512
2512
|
function() {
|
|
2513
2513
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2519,9 +2519,9 @@ var Ke = Zr ? (
|
|
|
2519
2519
|
}
|
|
2520
2520
|
return n;
|
|
2521
2521
|
}
|
|
2522
|
-
),
|
|
2522
|
+
), tt = (
|
|
2523
2523
|
// native
|
|
2524
|
-
|
|
2524
|
+
Yr ? Object.fromEntries : (
|
|
2525
2525
|
// Ponyfill
|
|
2526
2526
|
function(t) {
|
|
2527
2527
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2531,7 +2531,7 @@ var Ke = Zr ? (
|
|
|
2531
2531
|
return r;
|
|
2532
2532
|
}
|
|
2533
2533
|
)
|
|
2534
|
-
),
|
|
2534
|
+
), wt = Kr ? (
|
|
2535
2535
|
// Native
|
|
2536
2536
|
function(t, r) {
|
|
2537
2537
|
return t.codePointAt(r);
|
|
@@ -2545,7 +2545,7 @@ var Ke = Zr ? (
|
|
|
2545
2545
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2546
2546
|
}
|
|
2547
2547
|
}
|
|
2548
|
-
),
|
|
2548
|
+
), on = en ? (
|
|
2549
2549
|
// Native
|
|
2550
2550
|
function(t) {
|
|
2551
2551
|
return t.trimStart();
|
|
@@ -2553,9 +2553,9 @@ var Ke = Zr ? (
|
|
|
2553
2553
|
) : (
|
|
2554
2554
|
// Ponyfill
|
|
2555
2555
|
function(t) {
|
|
2556
|
-
return t.replace(
|
|
2556
|
+
return t.replace(Zr, "");
|
|
2557
2557
|
}
|
|
2558
|
-
),
|
|
2558
|
+
), an = tn ? (
|
|
2559
2559
|
// Native
|
|
2560
2560
|
function(t) {
|
|
2561
2561
|
return t.trimEnd();
|
|
@@ -2563,32 +2563,32 @@ var Ke = Zr ? (
|
|
|
2563
2563
|
) : (
|
|
2564
2564
|
// Ponyfill
|
|
2565
2565
|
function(t) {
|
|
2566
|
-
return t.replace(
|
|
2566
|
+
return t.replace(Qr, "");
|
|
2567
2567
|
}
|
|
2568
2568
|
);
|
|
2569
2569
|
function Ot(e, t) {
|
|
2570
2570
|
return new RegExp(e, t);
|
|
2571
2571
|
}
|
|
2572
|
-
var
|
|
2573
|
-
if (
|
|
2574
|
-
var
|
|
2575
|
-
|
|
2572
|
+
var Ue;
|
|
2573
|
+
if (Re) {
|
|
2574
|
+
var rt = Ot("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2575
|
+
Ue = function(t, r) {
|
|
2576
2576
|
var n;
|
|
2577
|
-
|
|
2578
|
-
var i =
|
|
2577
|
+
rt.lastIndex = r;
|
|
2578
|
+
var i = rt.exec(t);
|
|
2579
2579
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2580
2580
|
};
|
|
2581
2581
|
} else
|
|
2582
|
-
|
|
2582
|
+
Ue = function(t, r) {
|
|
2583
2583
|
for (var n = []; ; ) {
|
|
2584
|
-
var i =
|
|
2585
|
-
if (i === void 0 ||
|
|
2584
|
+
var i = wt(t, r);
|
|
2585
|
+
if (i === void 0 || Nt(i) || fn(i))
|
|
2586
2586
|
break;
|
|
2587
2587
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2588
2588
|
}
|
|
2589
|
-
return
|
|
2589
|
+
return De.apply(void 0, n);
|
|
2590
2590
|
};
|
|
2591
|
-
var
|
|
2591
|
+
var un = (
|
|
2592
2592
|
/** @class */
|
|
2593
2593
|
function() {
|
|
2594
2594
|
function e(t, r) {
|
|
@@ -2612,14 +2612,14 @@ var on = (
|
|
|
2612
2612
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2613
2613
|
var o = this.clonePosition();
|
|
2614
2614
|
this.bump(), i.push({
|
|
2615
|
-
type:
|
|
2615
|
+
type: v.pound,
|
|
2616
2616
|
location: b(o, this.clonePosition())
|
|
2617
2617
|
});
|
|
2618
2618
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2619
2619
|
if (n)
|
|
2620
2620
|
break;
|
|
2621
2621
|
return this.error(g.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2622
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2622
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2623
2623
|
var a = this.parseTag(t, r);
|
|
2624
2624
|
if (a.err)
|
|
2625
2625
|
return a;
|
|
@@ -2640,7 +2640,7 @@ var on = (
|
|
|
2640
2640
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2641
2641
|
return {
|
|
2642
2642
|
val: {
|
|
2643
|
-
type:
|
|
2643
|
+
type: v.literal,
|
|
2644
2644
|
value: "<".concat(i, "/>"),
|
|
2645
2645
|
location: b(n, this.clonePosition())
|
|
2646
2646
|
},
|
|
@@ -2652,12 +2652,12 @@ var on = (
|
|
|
2652
2652
|
return s;
|
|
2653
2653
|
var a = s.val, o = this.clonePosition();
|
|
2654
2654
|
if (this.bumpIf("</")) {
|
|
2655
|
-
if (this.isEOF() || !
|
|
2655
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2656
2656
|
return this.error(g.INVALID_TAG, b(o, this.clonePosition()));
|
|
2657
2657
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2658
2658
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2659
2659
|
val: {
|
|
2660
|
-
type:
|
|
2660
|
+
type: v.tag,
|
|
2661
2661
|
value: i,
|
|
2662
2662
|
children: a,
|
|
2663
2663
|
location: b(n, this.clonePosition())
|
|
@@ -2670,7 +2670,7 @@ var on = (
|
|
|
2670
2670
|
return this.error(g.INVALID_TAG, b(n, this.clonePosition()));
|
|
2671
2671
|
}, e.prototype.parseTagName = function() {
|
|
2672
2672
|
var t = this.offset();
|
|
2673
|
-
for (this.bump(); !this.isEOF() &&
|
|
2673
|
+
for (this.bump(); !this.isEOF() && ln(this.char()); )
|
|
2674
2674
|
this.bump();
|
|
2675
2675
|
return this.message.slice(t, this.offset());
|
|
2676
2676
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2694,12 +2694,12 @@ var on = (
|
|
|
2694
2694
|
}
|
|
2695
2695
|
var l = b(n, this.clonePosition());
|
|
2696
2696
|
return {
|
|
2697
|
-
val: { type:
|
|
2697
|
+
val: { type: v.literal, value: i, location: l },
|
|
2698
2698
|
err: null
|
|
2699
2699
|
};
|
|
2700
2700
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2701
2701
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2702
|
-
!
|
|
2702
|
+
!hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2703
2703
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2704
2704
|
if (this.isEOF() || this.char() !== 39)
|
|
2705
2705
|
return null;
|
|
@@ -2733,12 +2733,12 @@ var on = (
|
|
|
2733
2733
|
r.push(n);
|
|
2734
2734
|
this.bump();
|
|
2735
2735
|
}
|
|
2736
|
-
return
|
|
2736
|
+
return De.apply(void 0, r);
|
|
2737
2737
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2738
2738
|
if (this.isEOF())
|
|
2739
2739
|
return null;
|
|
2740
2740
|
var n = this.char();
|
|
2741
|
-
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(), De(n));
|
|
2742
2742
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2743
2743
|
var n = this.clonePosition();
|
|
2744
2744
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2754,7 +2754,7 @@ var on = (
|
|
|
2754
2754
|
case 125:
|
|
2755
2755
|
return this.bump(), {
|
|
2756
2756
|
val: {
|
|
2757
|
-
type:
|
|
2757
|
+
type: v.argument,
|
|
2758
2758
|
// value does not include the opening and closing braces.
|
|
2759
2759
|
value: i,
|
|
2760
2760
|
location: b(n, this.clonePosition())
|
|
@@ -2767,7 +2767,7 @@ var on = (
|
|
|
2767
2767
|
return this.error(g.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2768
2768
|
}
|
|
2769
2769
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2770
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2770
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
2771
2771
|
this.bumpTo(i);
|
|
2772
2772
|
var s = this.clonePosition(), a = b(t, s);
|
|
2773
2773
|
return { value: n, location: a };
|
|
@@ -2786,46 +2786,46 @@ var on = (
|
|
|
2786
2786
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2787
2787
|
if (f.err)
|
|
2788
2788
|
return f;
|
|
2789
|
-
var c =
|
|
2789
|
+
var c = an(f.val);
|
|
2790
2790
|
if (c.length === 0)
|
|
2791
2791
|
return this.error(g.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2792
|
-
var
|
|
2793
|
-
u = { style: c, styleLocation:
|
|
2792
|
+
var p = b(h, this.clonePosition());
|
|
2793
|
+
u = { style: c, styleLocation: p };
|
|
2794
2794
|
}
|
|
2795
2795
|
var y = this.tryParseArgumentClose(i);
|
|
2796
2796
|
if (y.err)
|
|
2797
2797
|
return y;
|
|
2798
|
-
var
|
|
2799
|
-
if (u &&
|
|
2800
|
-
var
|
|
2798
|
+
var E = b(i, this.clonePosition());
|
|
2799
|
+
if (u && et(u?.style, "::", 0)) {
|
|
2800
|
+
var B = on(u.style.slice(2));
|
|
2801
2801
|
if (o === "number") {
|
|
2802
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2802
|
+
var f = this.parseNumberSkeletonFromString(B, u.styleLocation);
|
|
2803
2803
|
return f.err ? f : {
|
|
2804
|
-
val: { type:
|
|
2804
|
+
val: { type: v.number, value: n, location: E, style: f.val },
|
|
2805
2805
|
err: null
|
|
2806
2806
|
};
|
|
2807
2807
|
} else {
|
|
2808
|
-
if (
|
|
2809
|
-
return this.error(g.EXPECT_DATE_TIME_SKELETON,
|
|
2810
|
-
var
|
|
2811
|
-
this.locale && (
|
|
2808
|
+
if (B.length === 0)
|
|
2809
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, E);
|
|
2810
|
+
var H = B;
|
|
2811
|
+
this.locale && (H = zr(B, this.locale));
|
|
2812
2812
|
var c = {
|
|
2813
|
-
type:
|
|
2814
|
-
pattern:
|
|
2813
|
+
type: Y.dateTime,
|
|
2814
|
+
pattern: H,
|
|
2815
2815
|
location: u.styleLocation,
|
|
2816
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2817
|
-
}, L = o === "date" ?
|
|
2816
|
+
parsedOptions: this.shouldParseSkeletons ? Ur(H) : {}
|
|
2817
|
+
}, L = o === "date" ? v.date : v.time;
|
|
2818
2818
|
return {
|
|
2819
|
-
val: { type: L, value: n, location:
|
|
2819
|
+
val: { type: L, value: n, location: E, style: c },
|
|
2820
2820
|
err: null
|
|
2821
2821
|
};
|
|
2822
2822
|
}
|
|
2823
2823
|
}
|
|
2824
2824
|
return {
|
|
2825
2825
|
val: {
|
|
2826
|
-
type: o === "number" ?
|
|
2826
|
+
type: o === "number" ? v.number : o === "date" ? v.date : v.time,
|
|
2827
2827
|
value: n,
|
|
2828
|
-
location:
|
|
2828
|
+
location: E,
|
|
2829
2829
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2830
2830
|
},
|
|
2831
2831
|
err: null
|
|
@@ -2834,43 +2834,43 @@ var on = (
|
|
|
2834
2834
|
case "plural":
|
|
2835
2835
|
case "selectordinal":
|
|
2836
2836
|
case "select": {
|
|
2837
|
-
var
|
|
2837
|
+
var T = this.clonePosition();
|
|
2838
2838
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2839
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2839
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, b(T, ge({}, T)));
|
|
2840
2840
|
this.bumpSpace();
|
|
2841
|
-
var
|
|
2842
|
-
if (o !== "select" &&
|
|
2841
|
+
var x = this.parseIdentifierIfPossible(), d = 0;
|
|
2842
|
+
if (o !== "select" && x.value === "offset") {
|
|
2843
2843
|
if (!this.bumpIf(":"))
|
|
2844
2844
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2845
2845
|
this.bumpSpace();
|
|
2846
2846
|
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2847
2847
|
if (f.err)
|
|
2848
2848
|
return f;
|
|
2849
|
-
this.bumpSpace(),
|
|
2849
|
+
this.bumpSpace(), x = this.parseIdentifierIfPossible(), d = f.val;
|
|
2850
2850
|
}
|
|
2851
|
-
var
|
|
2852
|
-
if (
|
|
2853
|
-
return
|
|
2851
|
+
var A = this.tryParsePluralOrSelectOptions(t, o, r, x);
|
|
2852
|
+
if (A.err)
|
|
2853
|
+
return A;
|
|
2854
2854
|
var y = this.tryParseArgumentClose(i);
|
|
2855
2855
|
if (y.err)
|
|
2856
2856
|
return y;
|
|
2857
|
-
var
|
|
2857
|
+
var j = b(i, this.clonePosition());
|
|
2858
2858
|
return o === "select" ? {
|
|
2859
2859
|
val: {
|
|
2860
|
-
type:
|
|
2860
|
+
type: v.select,
|
|
2861
2861
|
value: n,
|
|
2862
|
-
options:
|
|
2863
|
-
location:
|
|
2862
|
+
options: tt(A.val),
|
|
2863
|
+
location: j
|
|
2864
2864
|
},
|
|
2865
2865
|
err: null
|
|
2866
2866
|
} : {
|
|
2867
2867
|
val: {
|
|
2868
|
-
type:
|
|
2868
|
+
type: v.plural,
|
|
2869
2869
|
value: n,
|
|
2870
|
-
options:
|
|
2871
|
-
offset:
|
|
2870
|
+
options: tt(A.val),
|
|
2871
|
+
offset: d,
|
|
2872
2872
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2873
|
-
location:
|
|
2873
|
+
location: j
|
|
2874
2874
|
},
|
|
2875
2875
|
err: null
|
|
2876
2876
|
};
|
|
@@ -2918,16 +2918,16 @@ var on = (
|
|
|
2918
2918
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2919
2919
|
var n = [];
|
|
2920
2920
|
try {
|
|
2921
|
-
n =
|
|
2921
|
+
n = Gr(t);
|
|
2922
2922
|
} catch {
|
|
2923
2923
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
2924
2924
|
}
|
|
2925
2925
|
return {
|
|
2926
2926
|
val: {
|
|
2927
|
-
type:
|
|
2927
|
+
type: Y.number,
|
|
2928
2928
|
tokens: n,
|
|
2929
2929
|
location: r,
|
|
2930
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2930
|
+
parsedOptions: this.shouldParseSkeletons ? Xr(n) : {}
|
|
2931
2931
|
},
|
|
2932
2932
|
err: null
|
|
2933
2933
|
};
|
|
@@ -2946,20 +2946,20 @@ var on = (
|
|
|
2946
2946
|
if (l.has(u))
|
|
2947
2947
|
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2948
2948
|
u === "other" && (a = !0), this.bumpSpace();
|
|
2949
|
-
var
|
|
2949
|
+
var p = this.clonePosition();
|
|
2950
2950
|
if (!this.bumpIf("{"))
|
|
2951
2951
|
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2952
2952
|
var y = this.parseMessage(t + 1, r, n);
|
|
2953
2953
|
if (y.err)
|
|
2954
2954
|
return y;
|
|
2955
|
-
var
|
|
2956
|
-
if (
|
|
2957
|
-
return
|
|
2955
|
+
var E = this.tryParseArgumentClose(p);
|
|
2956
|
+
if (E.err)
|
|
2957
|
+
return E;
|
|
2958
2958
|
o.push([
|
|
2959
2959
|
u,
|
|
2960
2960
|
{
|
|
2961
2961
|
value: y.val,
|
|
2962
|
-
location: b(
|
|
2962
|
+
location: b(p, this.clonePosition())
|
|
2963
2963
|
}
|
|
2964
2964
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
2965
2965
|
}
|
|
@@ -2975,7 +2975,7 @@ var on = (
|
|
|
2975
2975
|
break;
|
|
2976
2976
|
}
|
|
2977
2977
|
var l = b(i, this.clonePosition());
|
|
2978
|
-
return s ? (a *= n,
|
|
2978
|
+
return s ? (a *= n, nn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2979
2979
|
}, e.prototype.offset = function() {
|
|
2980
2980
|
return this.position.offset;
|
|
2981
2981
|
}, e.prototype.isEOF = function() {
|
|
@@ -2990,7 +2990,7 @@ var on = (
|
|
|
2990
2990
|
var t = this.position.offset;
|
|
2991
2991
|
if (t >= this.message.length)
|
|
2992
2992
|
throw Error("out of bound");
|
|
2993
|
-
var r =
|
|
2993
|
+
var r = wt(this.message, t);
|
|
2994
2994
|
if (r === void 0)
|
|
2995
2995
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2996
2996
|
return r;
|
|
@@ -3009,7 +3009,7 @@ var on = (
|
|
|
3009
3009
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3010
3010
|
}
|
|
3011
3011
|
}, e.prototype.bumpIf = function(t) {
|
|
3012
|
-
if (
|
|
3012
|
+
if (et(this.message, t, this.offset())) {
|
|
3013
3013
|
for (var r = 0; r < t.length; r++)
|
|
3014
3014
|
this.bump();
|
|
3015
3015
|
return !0;
|
|
@@ -3031,7 +3031,7 @@ var on = (
|
|
|
3031
3031
|
break;
|
|
3032
3032
|
}
|
|
3033
3033
|
}, e.prototype.bumpSpace = function() {
|
|
3034
|
-
for (; !this.isEOF() &&
|
|
3034
|
+
for (; !this.isEOF() && Nt(this.char()); )
|
|
3035
3035
|
this.bump();
|
|
3036
3036
|
}, e.prototype.peek = function() {
|
|
3037
3037
|
if (this.isEOF())
|
|
@@ -3041,47 +3041,47 @@ var on = (
|
|
|
3041
3041
|
}, e;
|
|
3042
3042
|
}()
|
|
3043
3043
|
);
|
|
3044
|
-
function
|
|
3044
|
+
function Fe(e) {
|
|
3045
3045
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3046
3046
|
}
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3047
|
+
function hn(e) {
|
|
3048
|
+
return Fe(e) || e === 47;
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function ln(e) {
|
|
3051
3051
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3053
|
+
function Nt(e) {
|
|
3054
3054
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3056
|
+
function fn(e) {
|
|
3057
3057
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3058
3058
|
}
|
|
3059
|
-
function
|
|
3059
|
+
function Ge(e) {
|
|
3060
3060
|
e.forEach(function(t) {
|
|
3061
|
-
if (delete t.location,
|
|
3061
|
+
if (delete t.location, xt(t) || vt(t))
|
|
3062
3062
|
for (var r in t.options)
|
|
3063
|
-
delete t.options[r].location,
|
|
3063
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3064
3064
|
else
|
|
3065
|
-
|
|
3065
|
+
yt(t) && Tt(t.style) || (Et(t) || _t(t)) && $e(t.style) ? delete t.style.location : St(t) && Ge(t.children);
|
|
3066
3066
|
});
|
|
3067
3067
|
}
|
|
3068
|
-
function
|
|
3069
|
-
t === void 0 && (t = {}), t =
|
|
3070
|
-
var r = new
|
|
3068
|
+
function cn(e, t) {
|
|
3069
|
+
t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3070
|
+
var r = new un(e, t).parse();
|
|
3071
3071
|
if (r.err) {
|
|
3072
3072
|
var n = SyntaxError(g[r.err.kind]);
|
|
3073
3073
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3074
3074
|
}
|
|
3075
|
-
return t?.captureLocation ||
|
|
3075
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3076
3076
|
}
|
|
3077
|
-
var
|
|
3077
|
+
var K;
|
|
3078
3078
|
(function(e) {
|
|
3079
3079
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3080
|
-
})(
|
|
3081
|
-
var
|
|
3080
|
+
})(K || (K = {}));
|
|
3081
|
+
var ve = (
|
|
3082
3082
|
/** @class */
|
|
3083
3083
|
function(e) {
|
|
3084
|
-
|
|
3084
|
+
xe(t, e);
|
|
3085
3085
|
function t(r, n, i) {
|
|
3086
3086
|
var s = e.call(this, r) || this;
|
|
3087
3087
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3090,48 +3090,48 @@ var xe = (
|
|
|
3090
3090
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3091
3091
|
}, t;
|
|
3092
3092
|
}(Error)
|
|
3093
|
-
),
|
|
3093
|
+
), nt = (
|
|
3094
3094
|
/** @class */
|
|
3095
3095
|
function(e) {
|
|
3096
|
-
|
|
3096
|
+
xe(t, e);
|
|
3097
3097
|
function t(r, n, i, s) {
|
|
3098
|
-
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('", "'), '"'), K.INVALID_VALUE, s) || this;
|
|
3099
3099
|
}
|
|
3100
3100
|
return t;
|
|
3101
|
-
}(
|
|
3102
|
-
),
|
|
3101
|
+
}(ve)
|
|
3102
|
+
), mn = (
|
|
3103
3103
|
/** @class */
|
|
3104
3104
|
function(e) {
|
|
3105
|
-
|
|
3105
|
+
xe(t, e);
|
|
3106
3106
|
function t(r, n, i) {
|
|
3107
|
-
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), K.INVALID_VALUE, i) || this;
|
|
3108
3108
|
}
|
|
3109
3109
|
return t;
|
|
3110
|
-
}(
|
|
3111
|
-
),
|
|
3110
|
+
}(ve)
|
|
3111
|
+
), dn = (
|
|
3112
3112
|
/** @class */
|
|
3113
3113
|
function(e) {
|
|
3114
|
-
|
|
3114
|
+
xe(t, e);
|
|
3115
3115
|
function t(r, n) {
|
|
3116
|
-
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, '"'), K.MISSING_VALUE, n) || this;
|
|
3117
3117
|
}
|
|
3118
3118
|
return t;
|
|
3119
|
-
}(
|
|
3119
|
+
}(ve)
|
|
3120
3120
|
), P;
|
|
3121
3121
|
(function(e) {
|
|
3122
3122
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3123
3123
|
})(P || (P = {}));
|
|
3124
|
-
function
|
|
3124
|
+
function pn(e) {
|
|
3125
3125
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3126
3126
|
var n = t[t.length - 1];
|
|
3127
3127
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3128
3128
|
}, []);
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3130
|
+
function gn(e) {
|
|
3131
3131
|
return typeof e == "function";
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3134
|
-
if (e.length === 1 &&
|
|
3133
|
+
function de(e, t, r, n, i, s, a) {
|
|
3134
|
+
if (e.length === 1 && Je(e[0]))
|
|
3135
3135
|
return [
|
|
3136
3136
|
{
|
|
3137
3137
|
type: P.literal,
|
|
@@ -3140,14 +3140,14 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3140
3140
|
];
|
|
3141
3141
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3142
3142
|
var h = u[l];
|
|
3143
|
-
if (
|
|
3143
|
+
if (Je(h)) {
|
|
3144
3144
|
o.push({
|
|
3145
3145
|
type: P.literal,
|
|
3146
3146
|
value: h.value
|
|
3147
3147
|
});
|
|
3148
3148
|
continue;
|
|
3149
3149
|
}
|
|
3150
|
-
if (
|
|
3150
|
+
if (Rr(h)) {
|
|
3151
3151
|
typeof s == "number" && o.push({
|
|
3152
3152
|
type: P.literal,
|
|
3153
3153
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3156,86 +3156,86 @@ function me(e, t, r, n, i, s, a) {
|
|
|
3156
3156
|
}
|
|
3157
3157
|
var f = h.value;
|
|
3158
3158
|
if (!(i && f in i))
|
|
3159
|
-
throw new
|
|
3159
|
+
throw new dn(f, a);
|
|
3160
3160
|
var c = i[f];
|
|
3161
|
-
if (
|
|
3161
|
+
if ($r(h)) {
|
|
3162
3162
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3163
3163
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3164
3164
|
value: c
|
|
3165
3165
|
});
|
|
3166
3166
|
continue;
|
|
3167
3167
|
}
|
|
3168
|
-
if (
|
|
3169
|
-
var
|
|
3168
|
+
if (Et(h)) {
|
|
3169
|
+
var p = typeof h.style == "string" ? n.date[h.style] : $e(h.style) ? h.style.parsedOptions : void 0;
|
|
3170
3170
|
o.push({
|
|
3171
3171
|
type: P.literal,
|
|
3172
|
-
value: r.getDateTimeFormat(t,
|
|
3172
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3173
3173
|
});
|
|
3174
3174
|
continue;
|
|
3175
3175
|
}
|
|
3176
|
-
if (
|
|
3177
|
-
var
|
|
3176
|
+
if (_t(h)) {
|
|
3177
|
+
var p = typeof h.style == "string" ? n.time[h.style] : $e(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3178
3178
|
o.push({
|
|
3179
3179
|
type: P.literal,
|
|
3180
|
-
value: r.getDateTimeFormat(t,
|
|
3180
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3181
3181
|
});
|
|
3182
3182
|
continue;
|
|
3183
3183
|
}
|
|
3184
|
-
if (
|
|
3185
|
-
var
|
|
3186
|
-
|
|
3184
|
+
if (yt(h)) {
|
|
3185
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Tt(h.style) ? h.style.parsedOptions : void 0;
|
|
3186
|
+
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3187
3187
|
type: P.literal,
|
|
3188
|
-
value: r.getNumberFormat(t,
|
|
3188
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3189
3189
|
});
|
|
3190
3190
|
continue;
|
|
3191
3191
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var y = h.children,
|
|
3194
|
-
if (!
|
|
3195
|
-
throw new
|
|
3196
|
-
var
|
|
3197
|
-
return
|
|
3192
|
+
if (St(h)) {
|
|
3193
|
+
var y = h.children, E = h.value, B = i[E];
|
|
3194
|
+
if (!gn(B))
|
|
3195
|
+
throw new mn(E, "function", a);
|
|
3196
|
+
var H = de(y, t, r, n, i, s), L = B(H.map(function(d) {
|
|
3197
|
+
return d.value;
|
|
3198
3198
|
}));
|
|
3199
|
-
Array.isArray(L) || (L = [L]), o.push.apply(o, L.map(function(
|
|
3199
|
+
Array.isArray(L) || (L = [L]), o.push.apply(o, L.map(function(d) {
|
|
3200
3200
|
return {
|
|
3201
|
-
type: typeof
|
|
3202
|
-
value:
|
|
3201
|
+
type: typeof d == "string" ? P.literal : P.object,
|
|
3202
|
+
value: d
|
|
3203
3203
|
};
|
|
3204
3204
|
}));
|
|
3205
3205
|
}
|
|
3206
|
-
if (
|
|
3207
|
-
var
|
|
3208
|
-
if (!
|
|
3209
|
-
throw new
|
|
3210
|
-
o.push.apply(o,
|
|
3206
|
+
if (xt(h)) {
|
|
3207
|
+
var T = h.options[c] || h.options.other;
|
|
3208
|
+
if (!T)
|
|
3209
|
+
throw new nt(h.value, c, Object.keys(h.options), a);
|
|
3210
|
+
o.push.apply(o, de(T.value, t, r, n, i));
|
|
3211
3211
|
continue;
|
|
3212
3212
|
}
|
|
3213
|
-
if (
|
|
3214
|
-
var
|
|
3215
|
-
if (!
|
|
3213
|
+
if (vt(h)) {
|
|
3214
|
+
var T = h.options["=".concat(c)];
|
|
3215
|
+
if (!T) {
|
|
3216
3216
|
if (!Intl.PluralRules)
|
|
3217
|
-
throw new
|
|
3217
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3218
3218
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3219
|
-
`,
|
|
3220
|
-
var
|
|
3221
|
-
|
|
3219
|
+
`, K.MISSING_INTL_API, a);
|
|
3220
|
+
var x = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3221
|
+
T = h.options[x] || h.options.other;
|
|
3222
3222
|
}
|
|
3223
|
-
if (!
|
|
3224
|
-
throw new
|
|
3225
|
-
o.push.apply(o,
|
|
3223
|
+
if (!T)
|
|
3224
|
+
throw new nt(h.value, c, Object.keys(h.options), a);
|
|
3225
|
+
o.push.apply(o, de(T.value, t, r, n, i, c - (h.offset || 0)));
|
|
3226
3226
|
continue;
|
|
3227
3227
|
}
|
|
3228
3228
|
}
|
|
3229
|
-
return
|
|
3229
|
+
return pn(o);
|
|
3230
3230
|
}
|
|
3231
|
-
function
|
|
3231
|
+
function bn(e, t) {
|
|
3232
3232
|
return t ? D(D(D({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3233
3233
|
return r[n] = D(D({}, e[n]), t[n] || {}), r;
|
|
3234
3234
|
}, {})) : e;
|
|
3235
3235
|
}
|
|
3236
|
-
function
|
|
3236
|
+
function yn(e, t) {
|
|
3237
3237
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3238
|
-
return r[n] =
|
|
3238
|
+
return r[n] = bn(e[n], t[n]), r;
|
|
3239
3239
|
}, D({}, e)) : e;
|
|
3240
3240
|
}
|
|
3241
3241
|
function Oe(e) {
|
|
@@ -3252,39 +3252,39 @@ function Oe(e) {
|
|
|
3252
3252
|
}
|
|
3253
3253
|
};
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3255
|
+
function En(e) {
|
|
3256
3256
|
return e === void 0 && (e = {
|
|
3257
3257
|
number: {},
|
|
3258
3258
|
dateTime: {},
|
|
3259
3259
|
pluralRules: {}
|
|
3260
3260
|
}), {
|
|
3261
|
-
getNumberFormat:
|
|
3261
|
+
getNumberFormat: Ae(function() {
|
|
3262
3262
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3263
3263
|
r[n] = arguments[n];
|
|
3264
3264
|
return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3265
3265
|
}, {
|
|
3266
3266
|
cache: Oe(e.number),
|
|
3267
|
-
strategy:
|
|
3267
|
+
strategy: Pe.variadic
|
|
3268
3268
|
}),
|
|
3269
|
-
getDateTimeFormat:
|
|
3269
|
+
getDateTimeFormat: Ae(function() {
|
|
3270
3270
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3271
3271
|
r[n] = arguments[n];
|
|
3272
3272
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
|
|
3273
3273
|
}, {
|
|
3274
3274
|
cache: Oe(e.dateTime),
|
|
3275
|
-
strategy:
|
|
3275
|
+
strategy: Pe.variadic
|
|
3276
3276
|
}),
|
|
3277
|
-
getPluralRules:
|
|
3277
|
+
getPluralRules: Ae(function() {
|
|
3278
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3279
|
r[n] = arguments[n];
|
|
3280
3280
|
return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
|
|
3281
3281
|
}, {
|
|
3282
3282
|
cache: Oe(e.pluralRules),
|
|
3283
|
-
strategy:
|
|
3283
|
+
strategy: Pe.variadic
|
|
3284
3284
|
})
|
|
3285
3285
|
};
|
|
3286
3286
|
}
|
|
3287
|
-
var
|
|
3287
|
+
var _n = (
|
|
3288
3288
|
/** @class */
|
|
3289
3289
|
function() {
|
|
3290
3290
|
function e(t, r, n, i) {
|
|
@@ -3303,7 +3303,7 @@ var yn = (
|
|
|
3303
3303
|
}, []);
|
|
3304
3304
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3305
3305
|
}, this.formatToParts = function(l) {
|
|
3306
|
-
return
|
|
3306
|
+
return de(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3307
3307
|
}, this.resolvedOptions = function() {
|
|
3308
3308
|
var l;
|
|
3309
3309
|
return {
|
|
@@ -3316,13 +3316,13 @@ var yn = (
|
|
|
3316
3316
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3317
3317
|
var a = i || {};
|
|
3318
3318
|
a.formatters;
|
|
3319
|
-
var o =
|
|
3319
|
+
var o = Pr(a, ["formatters"]);
|
|
3320
3320
|
this.ast = e.__parse(t, D(D({}, o), { locale: this.resolvedLocale }));
|
|
3321
3321
|
} else
|
|
3322
3322
|
this.ast = t;
|
|
3323
3323
|
if (!Array.isArray(this.ast))
|
|
3324
3324
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3325
|
-
this.formats =
|
|
3325
|
+
this.formats = yn(e.formats, n), this.formatters = i && i.formatters || En(this.formatterCache);
|
|
3326
3326
|
}
|
|
3327
3327
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3328
3328
|
get: function() {
|
|
@@ -3335,7 +3335,7 @@ var yn = (
|
|
|
3335
3335
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3336
3336
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3337
3337
|
}
|
|
3338
|
-
}, e.__parse =
|
|
3338
|
+
}, e.__parse = cn, e.formats = {
|
|
3339
3339
|
number: {
|
|
3340
3340
|
integer: {
|
|
3341
3341
|
maximumFractionDigits: 0
|
|
@@ -3396,7 +3396,7 @@ var yn = (
|
|
|
3396
3396
|
}, e;
|
|
3397
3397
|
}()
|
|
3398
3398
|
);
|
|
3399
|
-
function
|
|
3399
|
+
function xn(e, t) {
|
|
3400
3400
|
if (t == null)
|
|
3401
3401
|
return;
|
|
3402
3402
|
if (t in e)
|
|
@@ -3417,92 +3417,92 @@ function En(e, t) {
|
|
|
3417
3417
|
n = void 0;
|
|
3418
3418
|
return n;
|
|
3419
3419
|
}
|
|
3420
|
-
const F = {},
|
|
3420
|
+
const F = {}, vn = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), It = (e, t) => {
|
|
3421
3421
|
if (t == null)
|
|
3422
3422
|
return;
|
|
3423
3423
|
if (t in F && e in F[t])
|
|
3424
3424
|
return F[t][e];
|
|
3425
|
-
const r =
|
|
3425
|
+
const r = Se(t);
|
|
3426
3426
|
for (let n = 0; n < r.length; n++) {
|
|
3427
|
-
const i = r[n], s =
|
|
3427
|
+
const i = r[n], s = Tn(i, e);
|
|
3428
3428
|
if (s)
|
|
3429
|
-
return
|
|
3429
|
+
return vn(e, t, s);
|
|
3430
3430
|
}
|
|
3431
3431
|
};
|
|
3432
|
-
let
|
|
3433
|
-
const
|
|
3434
|
-
function
|
|
3435
|
-
return
|
|
3432
|
+
let Ve;
|
|
3433
|
+
const le = _e({});
|
|
3434
|
+
function Sn(e) {
|
|
3435
|
+
return Ve[e] || null;
|
|
3436
3436
|
}
|
|
3437
|
-
function
|
|
3438
|
-
return e in
|
|
3437
|
+
function Ct(e) {
|
|
3438
|
+
return e in Ve;
|
|
3439
3439
|
}
|
|
3440
|
-
function
|
|
3441
|
-
if (!
|
|
3440
|
+
function Tn(e, t) {
|
|
3441
|
+
if (!Ct(e))
|
|
3442
3442
|
return null;
|
|
3443
|
-
const r =
|
|
3444
|
-
return
|
|
3443
|
+
const r = Sn(e);
|
|
3444
|
+
return xn(r, t);
|
|
3445
3445
|
}
|
|
3446
3446
|
function Hn(e) {
|
|
3447
3447
|
if (e == null)
|
|
3448
3448
|
return;
|
|
3449
|
-
const t =
|
|
3449
|
+
const t = Se(e);
|
|
3450
3450
|
for (let r = 0; r < t.length; r++) {
|
|
3451
3451
|
const n = t[r];
|
|
3452
|
-
if (
|
|
3452
|
+
if (Ct(n))
|
|
3453
3453
|
return n;
|
|
3454
3454
|
}
|
|
3455
3455
|
}
|
|
3456
3456
|
function Lt(e, ...t) {
|
|
3457
|
-
delete F[e],
|
|
3457
|
+
delete F[e], le.update((r) => (r[e] = Ar.all([r[e] || {}, ...t]), r));
|
|
3458
3458
|
}
|
|
3459
|
-
|
|
3460
|
-
[
|
|
3459
|
+
te(
|
|
3460
|
+
[le],
|
|
3461
3461
|
([e]) => Object.keys(e)
|
|
3462
3462
|
);
|
|
3463
|
-
|
|
3464
|
-
const
|
|
3465
|
-
function
|
|
3466
|
-
|
|
3463
|
+
le.subscribe((e) => Ve = e);
|
|
3464
|
+
const pe = {};
|
|
3465
|
+
function Bn(e, t) {
|
|
3466
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3467
3467
|
}
|
|
3468
|
-
function
|
|
3469
|
-
return
|
|
3468
|
+
function Mt(e) {
|
|
3469
|
+
return pe[e];
|
|
3470
3470
|
}
|
|
3471
|
-
function
|
|
3472
|
-
return
|
|
3473
|
-
const r =
|
|
3471
|
+
function An(e) {
|
|
3472
|
+
return Se(e).map((t) => {
|
|
3473
|
+
const r = Mt(t);
|
|
3474
3474
|
return [t, r ? [...r] : []];
|
|
3475
3475
|
}).filter(([, t]) => t.length > 0);
|
|
3476
3476
|
}
|
|
3477
|
-
function
|
|
3478
|
-
return e == null ? !1 :
|
|
3477
|
+
function je(e) {
|
|
3478
|
+
return e == null ? !1 : Se(e).some(
|
|
3479
3479
|
(t) => {
|
|
3480
3480
|
var r;
|
|
3481
|
-
return (r =
|
|
3481
|
+
return (r = Mt(t)) == null ? void 0 : r.size;
|
|
3482
3482
|
}
|
|
3483
3483
|
);
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function Pn(e, t) {
|
|
3486
3486
|
return Promise.all(
|
|
3487
|
-
t.map((n) => (
|
|
3487
|
+
t.map((n) => (Bn(e, n), n().then((i) => i.default || i)))
|
|
3488
3488
|
).then((n) => Lt(e, ...n));
|
|
3489
3489
|
}
|
|
3490
|
-
const
|
|
3491
|
-
function
|
|
3492
|
-
if (!
|
|
3493
|
-
return e in
|
|
3494
|
-
const t =
|
|
3495
|
-
return
|
|
3490
|
+
const ne = {};
|
|
3491
|
+
function $t(e) {
|
|
3492
|
+
if (!je(e))
|
|
3493
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
3494
|
+
const t = An(e);
|
|
3495
|
+
return ne[e] = Promise.all(
|
|
3496
3496
|
t.map(
|
|
3497
|
-
([r, n]) =>
|
|
3497
|
+
([r, n]) => Pn(r, n)
|
|
3498
3498
|
)
|
|
3499
3499
|
).then(() => {
|
|
3500
|
-
if (
|
|
3501
|
-
return
|
|
3502
|
-
delete
|
|
3503
|
-
}),
|
|
3500
|
+
if (je(e))
|
|
3501
|
+
return $t(e);
|
|
3502
|
+
delete ne[e];
|
|
3503
|
+
}), ne[e];
|
|
3504
3504
|
}
|
|
3505
|
-
const
|
|
3505
|
+
const wn = {
|
|
3506
3506
|
number: {
|
|
3507
3507
|
scientific: { notation: "scientific" },
|
|
3508
3508
|
engineering: { notation: "engineering" },
|
|
@@ -3531,150 +3531,150 @@ const An = {
|
|
|
3531
3531
|
timeZoneName: "short"
|
|
3532
3532
|
}
|
|
3533
3533
|
}
|
|
3534
|
-
},
|
|
3534
|
+
}, On = {
|
|
3535
3535
|
fallbackLocale: null,
|
|
3536
3536
|
loadingDelay: 200,
|
|
3537
|
-
formats:
|
|
3537
|
+
formats: wn,
|
|
3538
3538
|
warnOnMissingMessages: !0,
|
|
3539
3539
|
handleMissingMessage: void 0,
|
|
3540
3540
|
ignoreTag: !0
|
|
3541
|
-
},
|
|
3542
|
-
function
|
|
3543
|
-
return
|
|
3541
|
+
}, Nn = On;
|
|
3542
|
+
function ee() {
|
|
3543
|
+
return Nn;
|
|
3544
3544
|
}
|
|
3545
|
-
const
|
|
3546
|
-
var
|
|
3545
|
+
const Ne = _e(!1);
|
|
3546
|
+
var In = Object.defineProperty, Cn = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Mn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Rn = (e, t) => {
|
|
3547
3547
|
for (var r in t || (t = {}))
|
|
3548
|
-
|
|
3549
|
-
if (
|
|
3550
|
-
for (var r of
|
|
3551
|
-
|
|
3548
|
+
Mn.call(t, r) && st(e, r, t[r]);
|
|
3549
|
+
if (it)
|
|
3550
|
+
for (var r of it(t))
|
|
3551
|
+
$n.call(t, r) && st(e, r, t[r]);
|
|
3552
3552
|
return e;
|
|
3553
|
-
},
|
|
3554
|
-
let
|
|
3555
|
-
const
|
|
3556
|
-
function
|
|
3553
|
+
}, Dn = (e, t) => Cn(e, Ln(t));
|
|
3554
|
+
let ke;
|
|
3555
|
+
const be = _e(null);
|
|
3556
|
+
function ot(e) {
|
|
3557
3557
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3558
3558
|
}
|
|
3559
|
-
function
|
|
3560
|
-
const r =
|
|
3561
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3559
|
+
function Se(e, t = ee().fallbackLocale) {
|
|
3560
|
+
const r = ot(e);
|
|
3561
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
|
|
3562
3562
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3563
|
+
function X() {
|
|
3564
|
+
return ke ?? void 0;
|
|
3565
3565
|
}
|
|
3566
|
-
|
|
3567
|
-
|
|
3566
|
+
be.subscribe((e) => {
|
|
3567
|
+
ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3568
3568
|
});
|
|
3569
|
-
const
|
|
3570
|
-
if (e && Hn(e) &&
|
|
3571
|
-
const { loadingDelay: t } =
|
|
3569
|
+
const Un = (e) => {
|
|
3570
|
+
if (e && Hn(e) && je(e)) {
|
|
3571
|
+
const { loadingDelay: t } = ee();
|
|
3572
3572
|
let r;
|
|
3573
|
-
return typeof window < "u" &&
|
|
3574
|
-
() =>
|
|
3573
|
+
return typeof window < "u" && X() != null && t ? r = window.setTimeout(
|
|
3574
|
+
() => Ne.set(!0),
|
|
3575
3575
|
t
|
|
3576
|
-
) :
|
|
3577
|
-
|
|
3576
|
+
) : Ne.set(!0), $t(e).then(() => {
|
|
3577
|
+
be.set(e);
|
|
3578
3578
|
}).finally(() => {
|
|
3579
|
-
clearTimeout(r),
|
|
3579
|
+
clearTimeout(r), Ne.set(!1);
|
|
3580
3580
|
});
|
|
3581
3581
|
}
|
|
3582
|
-
return
|
|
3583
|
-
},
|
|
3584
|
-
set:
|
|
3585
|
-
}),
|
|
3582
|
+
return be.set(e);
|
|
3583
|
+
}, fe = Dn(Rn({}, be), {
|
|
3584
|
+
set: Un
|
|
3585
|
+
}), Te = (e) => {
|
|
3586
3586
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3587
3587
|
return (n) => {
|
|
3588
3588
|
const i = JSON.stringify(n);
|
|
3589
3589
|
return i in t ? t[i] : t[i] = e(n);
|
|
3590
3590
|
};
|
|
3591
3591
|
};
|
|
3592
|
-
var
|
|
3592
|
+
var Fn = Object.defineProperty, ye = Object.getOwnPropertySymbols, Rt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
3593
3593
|
for (var r in t || (t = {}))
|
|
3594
|
-
|
|
3595
|
-
if (
|
|
3596
|
-
for (var r of
|
|
3597
|
-
|
|
3594
|
+
Rt.call(t, r) && at(e, r, t[r]);
|
|
3595
|
+
if (ye)
|
|
3596
|
+
for (var r of ye(t))
|
|
3597
|
+
Dt.call(t, r) && at(e, r, t[r]);
|
|
3598
3598
|
return e;
|
|
3599
|
-
},
|
|
3599
|
+
}, re = (e, t) => {
|
|
3600
3600
|
var r = {};
|
|
3601
3601
|
for (var n in e)
|
|
3602
|
-
|
|
3603
|
-
if (e != null &&
|
|
3604
|
-
for (var n of
|
|
3605
|
-
t.indexOf(n) < 0 &&
|
|
3602
|
+
Rt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3603
|
+
if (e != null && ye)
|
|
3604
|
+
for (var n of ye(e))
|
|
3605
|
+
t.indexOf(n) < 0 && Dt.call(e, n) && (r[n] = e[n]);
|
|
3606
3606
|
return r;
|
|
3607
3607
|
};
|
|
3608
|
-
const
|
|
3609
|
-
const { formats: r } =
|
|
3608
|
+
const ue = (e, t) => {
|
|
3609
|
+
const { formats: r } = ee();
|
|
3610
3610
|
if (e in r && t in r[e])
|
|
3611
3611
|
return r[e][t];
|
|
3612
3612
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3613
|
-
},
|
|
3613
|
+
}, Gn = Te(
|
|
3614
3614
|
(e) => {
|
|
3615
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3615
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3616
3616
|
if (r == null)
|
|
3617
3617
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3618
|
-
return n && (i =
|
|
3618
|
+
return n && (i = ue("number", n)), new Intl.NumberFormat(r, i);
|
|
3619
3619
|
}
|
|
3620
|
-
),
|
|
3620
|
+
), jn = Te(
|
|
3621
3621
|
(e) => {
|
|
3622
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3622
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3623
3623
|
if (r == null)
|
|
3624
3624
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3625
|
-
return n ? i =
|
|
3625
|
+
return n ? i = ue("date", n) : Object.keys(i).length === 0 && (i = ue("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3626
3626
|
}
|
|
3627
|
-
),
|
|
3627
|
+
), kn = Te(
|
|
3628
3628
|
(e) => {
|
|
3629
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3629
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
3630
3630
|
if (r == null)
|
|
3631
3631
|
throw new Error(
|
|
3632
3632
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3633
3633
|
);
|
|
3634
|
-
return n ? i =
|
|
3634
|
+
return n ? i = ue("time", n) : Object.keys(i).length === 0 && (i = ue("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3635
3635
|
}
|
|
3636
|
-
),
|
|
3636
|
+
), Vn = (e = {}) => {
|
|
3637
3637
|
var t = e, {
|
|
3638
|
-
locale: r =
|
|
3639
|
-
} = t, n =
|
|
3638
|
+
locale: r = X()
|
|
3639
|
+
} = t, n = re(t, [
|
|
3640
3640
|
"locale"
|
|
3641
3641
|
]);
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3642
|
+
return Gn(Xe({ locale: r }, n));
|
|
3643
|
+
}, Xn = (e = {}) => {
|
|
3644
3644
|
var t = e, {
|
|
3645
|
-
locale: r =
|
|
3646
|
-
} = t, n =
|
|
3645
|
+
locale: r = X()
|
|
3646
|
+
} = t, n = re(t, [
|
|
3647
3647
|
"locale"
|
|
3648
3648
|
]);
|
|
3649
|
-
return
|
|
3650
|
-
},
|
|
3649
|
+
return jn(Xe({ locale: r }, n));
|
|
3650
|
+
}, zn = (e = {}) => {
|
|
3651
3651
|
var t = e, {
|
|
3652
|
-
locale: r =
|
|
3653
|
-
} = t, n =
|
|
3652
|
+
locale: r = X()
|
|
3653
|
+
} = t, n = re(t, [
|
|
3654
3654
|
"locale"
|
|
3655
3655
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3656
|
+
return kn(Xe({ locale: r }, n));
|
|
3657
|
+
}, Wn = Te(
|
|
3658
3658
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3659
|
-
(e, t =
|
|
3660
|
-
ignoreTag:
|
|
3659
|
+
(e, t = X()) => new _n(e, t, ee().formats, {
|
|
3660
|
+
ignoreTag: ee().ignoreTag
|
|
3661
3661
|
})
|
|
3662
|
-
),
|
|
3662
|
+
), Zn = (e, t = {}) => {
|
|
3663
3663
|
var r, n, i, s;
|
|
3664
3664
|
let a = t;
|
|
3665
3665
|
typeof e == "object" && (a = e, e = a.id);
|
|
3666
3666
|
const {
|
|
3667
3667
|
values: o,
|
|
3668
|
-
locale: l =
|
|
3668
|
+
locale: l = X(),
|
|
3669
3669
|
default: u
|
|
3670
3670
|
} = a;
|
|
3671
3671
|
if (l == null)
|
|
3672
3672
|
throw new Error(
|
|
3673
3673
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3674
3674
|
);
|
|
3675
|
-
let h =
|
|
3675
|
+
let h = It(e, l);
|
|
3676
3676
|
if (!h)
|
|
3677
|
-
h = (s = (i = (n = (r =
|
|
3677
|
+
h = (s = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3678
3678
|
else if (typeof h != "string")
|
|
3679
3679
|
return console.warn(
|
|
3680
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.`
|
|
@@ -3683,7 +3683,7 @@ const oe = (e, t) => {
|
|
|
3683
3683
|
return h;
|
|
3684
3684
|
let f = h;
|
|
3685
3685
|
try {
|
|
3686
|
-
f =
|
|
3686
|
+
f = Wn(h, l).format(o);
|
|
3687
3687
|
} catch (c) {
|
|
3688
3688
|
c instanceof Error && console.warn(
|
|
3689
3689
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3691,15 +3691,15 @@ const oe = (e, t) => {
|
|
|
3691
3691
|
);
|
|
3692
3692
|
}
|
|
3693
3693
|
return f;
|
|
3694
|
-
},
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
function
|
|
3694
|
+
}, Qn = (e, t) => zn(t).format(e), Jn = (e, t) => Xn(t).format(e), qn = (e, t) => Vn(t).format(e), Yn = (e, t = X()) => It(e, t), Kn = te([fe, le], () => Zn);
|
|
3695
|
+
te([fe], () => Qn);
|
|
3696
|
+
te([fe], () => Jn);
|
|
3697
|
+
te([fe], () => qn);
|
|
3698
|
+
te([fe, le], () => Yn);
|
|
3699
|
+
function ut(e, t) {
|
|
3700
3700
|
Lt(e, t);
|
|
3701
3701
|
}
|
|
3702
|
-
const
|
|
3702
|
+
const ht = {
|
|
3703
3703
|
en: {
|
|
3704
3704
|
finished: "Finished",
|
|
3705
3705
|
starting: "Starting in ",
|
|
@@ -3788,14 +3788,14 @@ const ut = {
|
|
|
3788
3788
|
hours: "hours",
|
|
3789
3789
|
days: "days"
|
|
3790
3790
|
}
|
|
3791
|
-
};
|
|
3792
|
-
function
|
|
3791
|
+
}, Q = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
3792
|
+
function ei(e, t) {
|
|
3793
3793
|
if (e) {
|
|
3794
3794
|
const r = document.createElement("style");
|
|
3795
3795
|
r.innerHTML = t, e.appendChild(r);
|
|
3796
3796
|
}
|
|
3797
3797
|
}
|
|
3798
|
-
function
|
|
3798
|
+
function ti(e, t) {
|
|
3799
3799
|
if (!e || !t)
|
|
3800
3800
|
return;
|
|
3801
3801
|
const r = new URL(t);
|
|
@@ -3806,18 +3806,45 @@ function Kn(e, t) {
|
|
|
3806
3806
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3807
3807
|
});
|
|
3808
3808
|
}
|
|
3809
|
-
function
|
|
3810
|
-
if (window.emMessageBus)
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3809
|
+
function ri(e, t, r, n = !1) {
|
|
3810
|
+
if (!window.emMessageBus)
|
|
3811
|
+
return;
|
|
3812
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
3813
|
+
return r = ni(e, t), r;
|
|
3814
|
+
window[Q] || (window[Q] = {}), r = ii(e, t);
|
|
3815
|
+
const s = r.unsubscribe.bind(r), a = () => {
|
|
3816
|
+
if (window[Q][t]) {
|
|
3817
|
+
const o = window[Q][t];
|
|
3818
|
+
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[Q][t];
|
|
3819
|
+
}
|
|
3820
|
+
s();
|
|
3821
|
+
};
|
|
3822
|
+
return r.unsubscribe = a, r;
|
|
3823
|
+
}
|
|
3824
|
+
function ni(e, t) {
|
|
3825
|
+
const r = document.createElement("style");
|
|
3826
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
3827
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
3828
|
+
});
|
|
3829
|
+
}
|
|
3830
|
+
function ii(e, t) {
|
|
3831
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
3832
|
+
if (!e)
|
|
3833
|
+
return;
|
|
3834
|
+
const n = e.getRootNode(), i = window[Q];
|
|
3835
|
+
let s = i[t]?.sheet;
|
|
3836
|
+
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
3837
|
+
sheet: s,
|
|
3838
|
+
refCount: 1
|
|
3814
3839
|
});
|
|
3815
|
-
|
|
3840
|
+
const a = n.adoptedStyleSheets || [];
|
|
3841
|
+
a.includes(s) || (n.adoptedStyleSheets = [...a, s]);
|
|
3842
|
+
});
|
|
3816
3843
|
}
|
|
3817
|
-
function
|
|
3818
|
-
|
|
3844
|
+
function si(e) {
|
|
3845
|
+
Xt(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)}");
|
|
3819
3846
|
}
|
|
3820
|
-
function
|
|
3847
|
+
function lt(e) {
|
|
3821
3848
|
let t, r, n = (
|
|
3822
3849
|
/*formatDate*/
|
|
3823
3850
|
e[10](
|
|
@@ -3830,72 +3857,72 @@ function ht(e) {
|
|
|
3830
3857
|
/*enddate*/
|
|
3831
3858
|
e[1]
|
|
3832
3859
|
) + ""
|
|
3833
|
-
), l, u, h, f, c,
|
|
3834
|
-
function
|
|
3860
|
+
), l, u, h, f, c, p, y;
|
|
3861
|
+
function E(d, A) {
|
|
3835
3862
|
return (
|
|
3836
3863
|
/*status*/
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3864
|
+
d[2] == "Finished" || /*status*/
|
|
3865
|
+
d[2] == "Closing" || /*status*/
|
|
3866
|
+
d[2] == "Closed" ? ui : (
|
|
3840
3867
|
/*tournamentUntilStartDays*/
|
|
3841
|
-
|
|
3868
|
+
d[5] > 0 ? ai : oi
|
|
3842
3869
|
)
|
|
3843
3870
|
);
|
|
3844
3871
|
}
|
|
3845
|
-
let
|
|
3846
|
-
function L(
|
|
3872
|
+
let B = E(e), H = B(e);
|
|
3873
|
+
function L(d, A) {
|
|
3847
3874
|
if (
|
|
3848
3875
|
/*status*/
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3876
|
+
d[2] == "Finished" || /*status*/
|
|
3877
|
+
d[2] == "Closing" || /*status*/
|
|
3878
|
+
d[2] == "Closed"
|
|
3852
3879
|
)
|
|
3853
|
-
return
|
|
3880
|
+
return fi;
|
|
3854
3881
|
if (
|
|
3855
3882
|
/*tournamentUntilStartDays*/
|
|
3856
|
-
|
|
3883
|
+
d[5] > 0
|
|
3857
3884
|
)
|
|
3858
|
-
return
|
|
3885
|
+
return li;
|
|
3859
3886
|
if (
|
|
3860
3887
|
/*tournamentLeftDays*/
|
|
3861
|
-
|
|
3888
|
+
d[4] > 0
|
|
3862
3889
|
)
|
|
3863
|
-
return
|
|
3890
|
+
return hi;
|
|
3864
3891
|
}
|
|
3865
|
-
let
|
|
3892
|
+
let T = L(e), x = T && T(e);
|
|
3866
3893
|
return {
|
|
3867
3894
|
c() {
|
|
3868
|
-
t = N("div"), r = N("div"), i = G(n), s =
|
|
3895
|
+
t = N("div"), r = N("div"), i = G(n), s = ie(), a = N("div"), l = G(o), u = ie(), h = N("div"), f = N("div"), H.c(), c = ie(), x && x.c(), _(r, "class", "StartDate"), _(r, "part", "StartDate"), _(a, "class", "EndDate"), _(a, "part", "EndDate"), _(t, "class", "TournamentDates"), _(t, "part", "TournamentDates"), _(f, "class", "ProgressBar"), _(f, "part", "ProgressBar"), _(h, "class", "ProgressBarWrapper"), _(h, "part", "ProgressBarWrapper");
|
|
3869
3896
|
},
|
|
3870
|
-
m(
|
|
3871
|
-
M(
|
|
3897
|
+
m(d, A) {
|
|
3898
|
+
M(d, t, A), w(t, r), w(r, i), w(t, s), w(t, a), w(a, l), M(d, u, A), M(d, h, A), w(h, f), H.m(f, null), w(f, c), x && x.m(f, null), p || (y = Vt(
|
|
3872
3899
|
/*getDuration*/
|
|
3873
3900
|
e[9].call(null, h)
|
|
3874
|
-
),
|
|
3901
|
+
), p = !0);
|
|
3875
3902
|
},
|
|
3876
|
-
p(
|
|
3877
|
-
|
|
3903
|
+
p(d, A) {
|
|
3904
|
+
A & /*startdate*/
|
|
3878
3905
|
1 && n !== (n = /*formatDate*/
|
|
3879
|
-
|
|
3906
|
+
d[10](
|
|
3880
3907
|
/*startdate*/
|
|
3881
|
-
|
|
3882
|
-
) + "") &&
|
|
3908
|
+
d[0]
|
|
3909
|
+
) + "") && V(i, n), A & /*enddate*/
|
|
3883
3910
|
2 && o !== (o = /*formatDate*/
|
|
3884
|
-
|
|
3911
|
+
d[10](
|
|
3885
3912
|
/*enddate*/
|
|
3886
|
-
|
|
3887
|
-
) + "") &&
|
|
3913
|
+
d[1]
|
|
3914
|
+
) + "") && V(l, o), B === (B = E(d)) && H ? H.p(d, A) : (H.d(1), H = B(d), H && (H.c(), H.m(f, c))), T === (T = L(d)) && x ? x.p(d, A) : (x && x.d(1), x = T && T(d), x && (x.c(), x.m(f, null)));
|
|
3888
3915
|
},
|
|
3889
|
-
d(
|
|
3890
|
-
|
|
3916
|
+
d(d) {
|
|
3917
|
+
d && (C(t), C(u), C(h)), H.d(), x && x.d(), p = !1, y();
|
|
3891
3918
|
}
|
|
3892
3919
|
};
|
|
3893
3920
|
}
|
|
3894
|
-
function
|
|
3921
|
+
function oi(e) {
|
|
3895
3922
|
let t;
|
|
3896
3923
|
return {
|
|
3897
3924
|
c() {
|
|
3898
|
-
t = N("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"),
|
|
3925
|
+
t = N("div"), _(t, "class", "ProgressBarFill"), _(t, "part", "ProgressBarFill"), We(
|
|
3899
3926
|
t,
|
|
3900
3927
|
"width",
|
|
3901
3928
|
/*getProgress*/
|
|
@@ -3907,7 +3934,7 @@ function ri(e) {
|
|
|
3907
3934
|
},
|
|
3908
3935
|
p(r, n) {
|
|
3909
3936
|
n & /*getProgress*/
|
|
3910
|
-
128 &&
|
|
3937
|
+
128 && We(
|
|
3911
3938
|
t,
|
|
3912
3939
|
"width",
|
|
3913
3940
|
/*getProgress*/
|
|
@@ -3919,7 +3946,7 @@ function ri(e) {
|
|
|
3919
3946
|
}
|
|
3920
3947
|
};
|
|
3921
3948
|
}
|
|
3922
|
-
function
|
|
3949
|
+
function ai(e) {
|
|
3923
3950
|
let t;
|
|
3924
3951
|
return {
|
|
3925
3952
|
c() {
|
|
@@ -3934,7 +3961,7 @@ function ni(e) {
|
|
|
3934
3961
|
}
|
|
3935
3962
|
};
|
|
3936
3963
|
}
|
|
3937
|
-
function
|
|
3964
|
+
function ui(e) {
|
|
3938
3965
|
let t;
|
|
3939
3966
|
return {
|
|
3940
3967
|
c() {
|
|
@@ -3949,7 +3976,7 @@ function ii(e) {
|
|
|
3949
3976
|
}
|
|
3950
3977
|
};
|
|
3951
3978
|
}
|
|
3952
|
-
function
|
|
3979
|
+
function hi(e) {
|
|
3953
3980
|
let t, r, n, i = (
|
|
3954
3981
|
/*$_*/
|
|
3955
3982
|
e[8]("left") + ""
|
|
@@ -3959,27 +3986,27 @@ function si(e) {
|
|
|
3959
3986
|
t = N("div"), r = G(
|
|
3960
3987
|
/*showRemain*/
|
|
3961
3988
|
e[6]
|
|
3962
|
-
), n =
|
|
3989
|
+
), n = ie(), s = G(i), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
3963
3990
|
},
|
|
3964
3991
|
m(a, o) {
|
|
3965
|
-
M(a, t, o),
|
|
3992
|
+
M(a, t, o), w(t, r), w(t, n), w(t, s);
|
|
3966
3993
|
},
|
|
3967
3994
|
p(a, o) {
|
|
3968
3995
|
o & /*showRemain*/
|
|
3969
|
-
64 &&
|
|
3996
|
+
64 && V(
|
|
3970
3997
|
r,
|
|
3971
3998
|
/*showRemain*/
|
|
3972
3999
|
a[6]
|
|
3973
4000
|
), o & /*$_*/
|
|
3974
4001
|
256 && i !== (i = /*$_*/
|
|
3975
|
-
a[8]("left") + "") &&
|
|
4002
|
+
a[8]("left") + "") && V(s, i);
|
|
3976
4003
|
},
|
|
3977
4004
|
d(a) {
|
|
3978
4005
|
a && C(t);
|
|
3979
4006
|
}
|
|
3980
4007
|
};
|
|
3981
4008
|
}
|
|
3982
|
-
function
|
|
4009
|
+
function li(e) {
|
|
3983
4010
|
let t, r = (
|
|
3984
4011
|
/*$_*/
|
|
3985
4012
|
e[8]("starting") + ""
|
|
@@ -3992,27 +4019,27 @@ function oi(e) {
|
|
|
3992
4019
|
), a;
|
|
3993
4020
|
return {
|
|
3994
4021
|
c() {
|
|
3995
|
-
t = N("div"), n = G(r), i =
|
|
4022
|
+
t = N("div"), n = G(r), i = ie(), a = G(s), _(t, "class", "Remaining"), _(t, "part", "Remaining");
|
|
3996
4023
|
},
|
|
3997
4024
|
m(o, l) {
|
|
3998
|
-
M(o, t, l),
|
|
4025
|
+
M(o, t, l), w(t, n), w(t, i), w(t, a);
|
|
3999
4026
|
},
|
|
4000
4027
|
p(o, l) {
|
|
4001
4028
|
l & /*$_*/
|
|
4002
4029
|
256 && r !== (r = /*$_*/
|
|
4003
|
-
o[8]("starting") + "") &&
|
|
4030
|
+
o[8]("starting") + "") && V(n, r), l & /*tournamentUntilStartDays*/
|
|
4004
4031
|
32 && s !== (s = /*getTextByDiff*/
|
|
4005
4032
|
o[11](
|
|
4006
4033
|
/*tournamentUntilStartDays*/
|
|
4007
4034
|
o[5]
|
|
4008
|
-
) + "") &&
|
|
4035
|
+
) + "") && V(a, s);
|
|
4009
4036
|
},
|
|
4010
4037
|
d(o) {
|
|
4011
4038
|
o && C(t);
|
|
4012
4039
|
}
|
|
4013
4040
|
};
|
|
4014
4041
|
}
|
|
4015
|
-
function
|
|
4042
|
+
function fi(e) {
|
|
4016
4043
|
let t, r = (
|
|
4017
4044
|
/*$_*/
|
|
4018
4045
|
e[8]("finished") + ""
|
|
@@ -4022,23 +4049,23 @@ function ai(e) {
|
|
|
4022
4049
|
t = N("div"), n = G(r), _(t, "class", "Finished"), _(t, "part", "Finished");
|
|
4023
4050
|
},
|
|
4024
4051
|
m(i, s) {
|
|
4025
|
-
M(i, t, s),
|
|
4052
|
+
M(i, t, s), w(t, n);
|
|
4026
4053
|
},
|
|
4027
4054
|
p(i, s) {
|
|
4028
4055
|
s & /*$_*/
|
|
4029
4056
|
256 && r !== (r = /*$_*/
|
|
4030
|
-
i[8]("finished") + "") &&
|
|
4057
|
+
i[8]("finished") + "") && V(n, r);
|
|
4031
4058
|
},
|
|
4032
4059
|
d(i) {
|
|
4033
4060
|
i && C(t);
|
|
4034
4061
|
}
|
|
4035
4062
|
};
|
|
4036
4063
|
}
|
|
4037
|
-
function
|
|
4064
|
+
function ci(e) {
|
|
4038
4065
|
let t, r = (
|
|
4039
4066
|
/*startdate*/
|
|
4040
4067
|
e[0] && /*enddate*/
|
|
4041
|
-
e[1] &&
|
|
4068
|
+
e[1] && lt(e)
|
|
4042
4069
|
);
|
|
4043
4070
|
return {
|
|
4044
4071
|
c() {
|
|
@@ -4050,7 +4077,7 @@ function ui(e) {
|
|
|
4050
4077
|
p(n, [i]) {
|
|
4051
4078
|
/*startdate*/
|
|
4052
4079
|
n[0] && /*enddate*/
|
|
4053
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
4080
|
+
n[1] ? r ? r.p(n, i) : (r = lt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
|
|
4054
4081
|
},
|
|
4055
4082
|
i: I,
|
|
4056
4083
|
o: I,
|
|
@@ -4059,45 +4086,45 @@ function ui(e) {
|
|
|
4059
4086
|
}
|
|
4060
4087
|
};
|
|
4061
4088
|
}
|
|
4062
|
-
function
|
|
4089
|
+
function mi(e, t, r) {
|
|
4063
4090
|
let n, i;
|
|
4064
|
-
|
|
4065
|
-
let { startdate: s = "" } = t, { enddate: a = "" } = t, { status: o = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t,
|
|
4066
|
-
const
|
|
4067
|
-
fetch(f).then((
|
|
4068
|
-
Object.keys(
|
|
4069
|
-
|
|
4091
|
+
kt(e, Kn, (m) => r(8, i = m));
|
|
4092
|
+
let { startdate: s = "" } = t, { enddate: a = "" } = t, { status: o = "" } = t, { lang: l = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, y, E = "", B = "", H = "";
|
|
4093
|
+
const L = () => {
|
|
4094
|
+
fetch(f).then((O) => O.json()).then((O) => {
|
|
4095
|
+
Object.keys(O).forEach((U) => {
|
|
4096
|
+
ut(U, O[U]);
|
|
4070
4097
|
});
|
|
4071
|
-
}).catch((
|
|
4072
|
-
console.log(
|
|
4098
|
+
}).catch((O) => {
|
|
4099
|
+
console.log(O);
|
|
4073
4100
|
});
|
|
4074
4101
|
};
|
|
4075
|
-
Object.keys(
|
|
4076
|
-
|
|
4102
|
+
Object.keys(ht).forEach((m) => {
|
|
4103
|
+
ut(m, ht[m]);
|
|
4077
4104
|
});
|
|
4078
|
-
const
|
|
4105
|
+
const T = (m) => new Date(m).getTime(), x = (m, O) => (T(O) - T(m)) / (1e3 * 60), d = () => {
|
|
4079
4106
|
const m = /* @__PURE__ */ new Date();
|
|
4080
|
-
r(4,
|
|
4081
|
-
},
|
|
4082
|
-
const
|
|
4083
|
-
let U = new Date(m),
|
|
4084
|
-
return `${U.getDate()} ${
|
|
4085
|
-
},
|
|
4086
|
-
const
|
|
4087
|
-
const $ = Math.floor(
|
|
4107
|
+
r(4, E = x(m, a)), r(5, B = x(m, s)), r(6, H = j(E));
|
|
4108
|
+
}, A = (m) => {
|
|
4109
|
+
const O = { month: "long" };
|
|
4110
|
+
let U = new Date(m), k = new Intl.DateTimeFormat(l, O).format(U);
|
|
4111
|
+
return `${U.getDate()} ${k}, ${U.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${U.getUTCFullYear()}`;
|
|
4112
|
+
}, j = (m) => {
|
|
4113
|
+
const O = (k, $) => k + " " + i($), U = (k) => {
|
|
4114
|
+
const $ = Math.floor(k);
|
|
4088
4115
|
return $ < 10 ? `0${$}` : `${$}`;
|
|
4089
4116
|
};
|
|
4090
4117
|
if (m < 1440) {
|
|
4091
|
-
const
|
|
4092
|
-
return [
|
|
4118
|
+
const k = m / 60, $ = m % 60, Ft = ($ - Math.floor($)) * 60;
|
|
4119
|
+
return [k, $, Ft].map((Gt) => U(Gt)).join(":");
|
|
4093
4120
|
}
|
|
4094
|
-
return
|
|
4121
|
+
return O(Math.ceil(m / (60 * 24)), "days");
|
|
4095
4122
|
};
|
|
4096
|
-
|
|
4123
|
+
qt(() => {
|
|
4097
4124
|
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
4098
4125
|
const m = setInterval(
|
|
4099
4126
|
() => {
|
|
4100
|
-
s && a &&
|
|
4127
|
+
s && a && d();
|
|
4101
4128
|
},
|
|
4102
4129
|
1e3
|
|
4103
4130
|
);
|
|
@@ -4105,9 +4132,9 @@ function hi(e, t, r) {
|
|
|
4105
4132
|
clearInterval(m);
|
|
4106
4133
|
};
|
|
4107
4134
|
});
|
|
4108
|
-
function
|
|
4109
|
-
|
|
4110
|
-
|
|
4135
|
+
function Ut(m) {
|
|
4136
|
+
Ie[m ? "unshift" : "push"](() => {
|
|
4137
|
+
p = m, r(3, p);
|
|
4111
4138
|
});
|
|
4112
4139
|
}
|
|
4113
4140
|
return e.$$set = (m) => {
|
|
@@ -4115,47 +4142,47 @@ function hi(e, t, r) {
|
|
|
4115
4142
|
}, e.$$.update = () => {
|
|
4116
4143
|
e.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
4117
4144
|
19 && r(7, n = () => {
|
|
4118
|
-
if (
|
|
4145
|
+
if (E <= 0)
|
|
4119
4146
|
return 100;
|
|
4120
|
-
const m =
|
|
4121
|
-
return Math.floor((m -
|
|
4147
|
+
const m = x(s, a), O = 100 / m;
|
|
4148
|
+
return Math.floor((m - E) * O);
|
|
4122
4149
|
}), e.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
4123
|
-
19 && s && a &&
|
|
4124
|
-
4096 && l &&
|
|
4125
|
-
4112 && l &&
|
|
4126
|
-
32768 && f &&
|
|
4127
|
-
8200 && u &&
|
|
4128
|
-
16392 && h &&
|
|
4129
|
-
65544 && c &&
|
|
4150
|
+
19 && s && a && d() && j(E), e.$$.dirty & /*lang*/
|
|
4151
|
+
4096 && l && d(), e.$$.dirty & /*lang, tournamentLeftDays*/
|
|
4152
|
+
4112 && l && j(E), e.$$.dirty & /*translationurl*/
|
|
4153
|
+
32768 && f && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4154
|
+
8200 && u && p && ei(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4155
|
+
16392 && h && p && ti(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4156
|
+
65544 && c && p && ri(p, `${c}.Style`, y);
|
|
4130
4157
|
}, [
|
|
4131
4158
|
s,
|
|
4132
4159
|
a,
|
|
4133
4160
|
o,
|
|
4134
|
-
d,
|
|
4135
|
-
y,
|
|
4136
|
-
T,
|
|
4137
|
-
A,
|
|
4138
|
-
n,
|
|
4139
|
-
i,
|
|
4140
|
-
E,
|
|
4141
4161
|
p,
|
|
4162
|
+
E,
|
|
4142
4163
|
B,
|
|
4164
|
+
H,
|
|
4165
|
+
n,
|
|
4166
|
+
i,
|
|
4167
|
+
d,
|
|
4168
|
+
A,
|
|
4169
|
+
j,
|
|
4143
4170
|
l,
|
|
4144
4171
|
u,
|
|
4145
4172
|
h,
|
|
4146
4173
|
f,
|
|
4147
4174
|
c,
|
|
4148
|
-
|
|
4175
|
+
Ut
|
|
4149
4176
|
];
|
|
4150
4177
|
}
|
|
4151
|
-
class
|
|
4178
|
+
class di extends hr {
|
|
4152
4179
|
constructor(t) {
|
|
4153
|
-
super(),
|
|
4180
|
+
super(), ar(
|
|
4154
4181
|
this,
|
|
4155
4182
|
t,
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4183
|
+
mi,
|
|
4184
|
+
ci,
|
|
4185
|
+
ct,
|
|
4159
4186
|
{
|
|
4160
4187
|
startdate: 0,
|
|
4161
4188
|
enddate: 1,
|
|
@@ -4166,7 +4193,7 @@ class li extends ar {
|
|
|
4166
4193
|
translationurl: 15,
|
|
4167
4194
|
mbsource: 16
|
|
4168
4195
|
},
|
|
4169
|
-
|
|
4196
|
+
si
|
|
4170
4197
|
);
|
|
4171
4198
|
}
|
|
4172
4199
|
get startdate() {
|
|
@@ -4218,7 +4245,7 @@ class li extends ar {
|
|
|
4218
4245
|
this.$$set({ mbsource: t }), R();
|
|
4219
4246
|
}
|
|
4220
4247
|
}
|
|
4221
|
-
|
|
4248
|
+
ur(di, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4222
4249
|
export {
|
|
4223
|
-
|
|
4250
|
+
di as C
|
|
4224
4251
|
};
|