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