@everymatrix/casino-tournaments-thumbnail-prizes 1.86.4 → 1.86.6
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/CasinoTournamentsThumbnailPrizes-Cub338de.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailPrizes-CjlXRt65.js → CasinoTournamentsThumbnailPrizes-KWys1PqP.js} +559 -555
- package/components/{CasinoTournamentsThumbnailPrizes-CzzsMaWv.js → CasinoTournamentsThumbnailPrizes-mHmzY5O2.js} +543 -539
- package/es2015/casino-tournaments-thumbnail-prizes.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-prizes.js +1 -1
- package/esnext/casino-tournaments-thumbnail-prizes.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnailPrizes-2IuSQazp.cjs +0 -16
|
@@ -2,15 +2,15 @@ var zt = Object.defineProperty, jt = Object.defineProperties;
|
|
|
2
2
|
var kt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ze = Object.getOwnPropertySymbols;
|
|
4
4
|
var Vt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ee = (e, t, r) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, je = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Vt.call(t, r) &&
|
|
7
|
+
Vt.call(t, r) && Ee(e, r, t[r]);
|
|
8
8
|
if (ze)
|
|
9
9
|
for (var r of ze(t))
|
|
10
|
-
Xt.call(t, r) &&
|
|
10
|
+
Xt.call(t, r) && Ee(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, ke = (e, t) => jt(e, kt(t));
|
|
13
|
-
var T = (e, t, r) => (
|
|
13
|
+
var T = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Ve = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,36 +27,36 @@ var Ve = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, u);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function S() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function mt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function Xe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ee(e) {
|
|
39
|
+
e.forEach(mt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ue(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function dt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Wt(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
50
|
function bt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return S;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Zt(e, t, r) {
|
|
60
60
|
e.$$.on_destroy.push(bt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function v(e, t) {
|
|
@@ -86,10 +86,10 @@ function qt(e, t) {
|
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function te(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function j(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function Yt(e, t) {
|
|
@@ -99,19 +99,19 @@ function Yt(e, t) {
|
|
|
99
99
|
function P(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function I(e) {
|
|
103
103
|
return document.createTextNode(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function he() {
|
|
106
|
+
return I(" ");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function x(e, t, r) {
|
|
109
109
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
110
110
|
}
|
|
111
111
|
function Kt(e) {
|
|
112
112
|
return Array.from(e.childNodes);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Q(e, t) {
|
|
115
115
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
116
116
|
t);
|
|
117
117
|
}
|
|
@@ -124,96 +124,96 @@ function er(e) {
|
|
|
124
124
|
}
|
|
125
125
|
), t;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
128
|
-
function
|
|
129
|
-
|
|
127
|
+
let q;
|
|
128
|
+
function J(e) {
|
|
129
|
+
q = e;
|
|
130
130
|
}
|
|
131
131
|
function tr() {
|
|
132
|
-
if (!
|
|
132
|
+
if (!q)
|
|
133
133
|
throw new Error("Function called outside component initialization");
|
|
134
|
-
return
|
|
134
|
+
return q;
|
|
135
135
|
}
|
|
136
136
|
function rr(e) {
|
|
137
137
|
tr().$$.on_mount.push(e);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
const
|
|
142
|
-
let
|
|
139
|
+
const R = [], Se = [];
|
|
140
|
+
let U = [];
|
|
141
|
+
const We = [], nr = /* @__PURE__ */ Promise.resolve();
|
|
142
|
+
let Be = !1;
|
|
143
143
|
function ir() {
|
|
144
|
-
|
|
144
|
+
Be || (Be = !0, nr.then(O));
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
146
|
+
function Ae(e) {
|
|
147
|
+
U.push(e);
|
|
148
148
|
}
|
|
149
|
-
const
|
|
150
|
-
let
|
|
151
|
-
function
|
|
152
|
-
if (
|
|
149
|
+
const ye = /* @__PURE__ */ new Set();
|
|
150
|
+
let M = 0;
|
|
151
|
+
function O() {
|
|
152
|
+
if (M !== 0)
|
|
153
153
|
return;
|
|
154
|
-
const e =
|
|
154
|
+
const e = q;
|
|
155
155
|
do {
|
|
156
156
|
try {
|
|
157
|
-
for (;
|
|
158
|
-
const t =
|
|
159
|
-
|
|
157
|
+
for (; M < R.length; ) {
|
|
158
|
+
const t = R[M];
|
|
159
|
+
M++, J(t), sr(t.$$);
|
|
160
160
|
}
|
|
161
161
|
} catch (t) {
|
|
162
|
-
throw
|
|
162
|
+
throw R.length = 0, M = 0, t;
|
|
163
163
|
}
|
|
164
|
-
for (
|
|
165
|
-
|
|
166
|
-
for (let t = 0; t <
|
|
167
|
-
const r =
|
|
168
|
-
|
|
164
|
+
for (J(null), R.length = 0, M = 0; Se.length; )
|
|
165
|
+
Se.pop()();
|
|
166
|
+
for (let t = 0; t < U.length; t += 1) {
|
|
167
|
+
const r = U[t];
|
|
168
|
+
ye.has(r) || (ye.add(r), r());
|
|
169
169
|
}
|
|
170
|
-
|
|
171
|
-
} while (
|
|
172
|
-
for (;
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
U.length = 0;
|
|
171
|
+
} while (R.length);
|
|
172
|
+
for (; We.length; )
|
|
173
|
+
We.pop()();
|
|
174
|
+
Be = !1, ye.clear(), J(e);
|
|
175
175
|
}
|
|
176
176
|
function sr(e) {
|
|
177
177
|
if (e.fragment !== null) {
|
|
178
|
-
e.update(),
|
|
178
|
+
e.update(), ee(e.before_update);
|
|
179
179
|
const t = e.dirty;
|
|
180
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
180
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
function or(e) {
|
|
184
184
|
const t = [], r = [];
|
|
185
|
-
|
|
185
|
+
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
186
186
|
}
|
|
187
187
|
const ar = /* @__PURE__ */ new Set();
|
|
188
188
|
function ur(e, t) {
|
|
189
189
|
e && e.i && (ar.delete(e), e.i(t));
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Ze(e) {
|
|
192
192
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
193
193
|
}
|
|
194
194
|
function hr(e, t, r) {
|
|
195
195
|
const { fragment: n, after_update: i } = e.$$;
|
|
196
|
-
n && n.m(t, r),
|
|
197
|
-
const s = e.$$.on_mount.map(
|
|
198
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
199
|
-
}), i.forEach(
|
|
196
|
+
n && n.m(t, r), Ae(() => {
|
|
197
|
+
const s = e.$$.on_mount.map(mt).filter(Ue);
|
|
198
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
199
|
+
}), i.forEach(Ae);
|
|
200
200
|
}
|
|
201
201
|
function lr(e, t) {
|
|
202
202
|
const r = e.$$;
|
|
203
|
-
r.fragment !== null && (or(r.after_update),
|
|
203
|
+
r.fragment !== null && (or(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
204
204
|
}
|
|
205
205
|
function fr(e, t) {
|
|
206
|
-
e.$$.dirty[0] === -1 && (
|
|
206
|
+
e.$$.dirty[0] === -1 && (R.push(e), ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
207
207
|
}
|
|
208
208
|
function cr(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
209
|
-
const l =
|
|
210
|
-
|
|
209
|
+
const l = q;
|
|
210
|
+
J(e);
|
|
211
211
|
const o = e.$$ = {
|
|
212
212
|
fragment: null,
|
|
213
213
|
ctx: [],
|
|
214
214
|
// state
|
|
215
215
|
props: s,
|
|
216
|
-
update:
|
|
216
|
+
update: S,
|
|
217
217
|
not_equal: i,
|
|
218
218
|
bound: Xe(),
|
|
219
219
|
// lifecycle
|
|
@@ -231,18 +231,18 @@ function cr(e, t, r, n, i, s, u = null, a = [-1]) {
|
|
|
231
231
|
};
|
|
232
232
|
u && u(o.root);
|
|
233
233
|
let h = !1;
|
|
234
|
-
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
235
|
-
const
|
|
236
|
-
return o.ctx && i(o.ctx[f], o.ctx[f] =
|
|
237
|
-
}) : [], o.update(), h = !0,
|
|
234
|
+
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
235
|
+
const p = m.length ? m[0] : c;
|
|
236
|
+
return o.ctx && i(o.ctx[f], o.ctx[f] = p) && (!o.skip_bound && o.bound[f] && o.bound[f](p), h && fr(e, f)), c;
|
|
237
|
+
}) : [], o.update(), h = !0, ee(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
238
238
|
if (t.hydrate) {
|
|
239
239
|
const f = Kt(t.target);
|
|
240
|
-
o.fragment && o.fragment.l(f), f.forEach(
|
|
240
|
+
o.fragment && o.fragment.l(f), f.forEach(j);
|
|
241
241
|
} else
|
|
242
242
|
o.fragment && o.fragment.c();
|
|
243
|
-
t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor),
|
|
243
|
+
t.intro && ur(e.$$.fragment), hr(e, t.target, t.anchor), O();
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
J(l);
|
|
246
246
|
}
|
|
247
247
|
let gt;
|
|
248
248
|
typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
@@ -289,17 +289,17 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
289
289
|
let u;
|
|
290
290
|
return {
|
|
291
291
|
c: function() {
|
|
292
|
-
u = P("slot"), s !== "default" &&
|
|
292
|
+
u = P("slot"), s !== "default" && x(u, "name", s);
|
|
293
293
|
},
|
|
294
294
|
/**
|
|
295
295
|
* @param {HTMLElement} target
|
|
296
296
|
* @param {HTMLElement} [anchor]
|
|
297
297
|
*/
|
|
298
298
|
m: function(o, h) {
|
|
299
|
-
|
|
299
|
+
te(o, u, h);
|
|
300
300
|
},
|
|
301
301
|
d: function(o) {
|
|
302
|
-
o &&
|
|
302
|
+
o && j(u);
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
};
|
|
@@ -311,7 +311,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
311
311
|
s in n && (r[s] = [t(s)]);
|
|
312
312
|
for (const s of this.attributes) {
|
|
313
313
|
const u = this.$$g_p(s.name);
|
|
314
|
-
u in this.$$d || (this.$$d[u] =
|
|
314
|
+
u in this.$$d || (this.$$d[u] = oe(u, s.value, this.$$p_d, "toProp"));
|
|
315
315
|
}
|
|
316
316
|
for (const s in this.$$p_d)
|
|
317
317
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -328,7 +328,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
328
328
|
this.$$r = !0;
|
|
329
329
|
for (const s in this.$$p_d)
|
|
330
330
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
331
|
-
const u =
|
|
331
|
+
const u = oe(
|
|
332
332
|
s,
|
|
333
333
|
this.$$d[s],
|
|
334
334
|
this.$$p_d,
|
|
@@ -352,7 +352,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
352
352
|
// and setting attributes through setAttribute etc, this is helpful
|
|
353
353
|
attributeChangedCallback(t, r, n) {
|
|
354
354
|
var i;
|
|
355
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
355
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = oe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
356
356
|
}
|
|
357
357
|
disconnectedCallback() {
|
|
358
358
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (gt = class extends HTMLElement {
|
|
|
365
365
|
) || t;
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
function
|
|
368
|
+
function oe(e, t, r, n) {
|
|
369
369
|
var s;
|
|
370
370
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
371
371
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -395,7 +395,7 @@ function se(e, t, r, n) {
|
|
|
395
395
|
return t;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function pr(e, t, r, n, i, s) {
|
|
399
399
|
let u = class extends gt {
|
|
400
400
|
constructor() {
|
|
401
401
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -413,7 +413,7 @@ function mr(e, t, r, n, i, s) {
|
|
|
413
413
|
},
|
|
414
414
|
set(l) {
|
|
415
415
|
var o;
|
|
416
|
-
l =
|
|
416
|
+
l = oe(a, l, t), this.$$d[a] = l, (o = this.$$c) == null || o.$set({ [a]: l });
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
}), n.forEach((a) => {
|
|
@@ -426,7 +426,7 @@ function mr(e, t, r, n, i, s) {
|
|
|
426
426
|
}), e.element = /** @type {any} */
|
|
427
427
|
u, u;
|
|
428
428
|
}
|
|
429
|
-
class
|
|
429
|
+
class mr {
|
|
430
430
|
constructor() {
|
|
431
431
|
/**
|
|
432
432
|
* ### PRIVATE API
|
|
@@ -447,7 +447,7 @@ class pr {
|
|
|
447
447
|
}
|
|
448
448
|
/** @returns {void} */
|
|
449
449
|
$destroy() {
|
|
450
|
-
lr(this, 1), this.$destroy =
|
|
450
|
+
lr(this, 1), this.$destroy = S;
|
|
451
451
|
}
|
|
452
452
|
/**
|
|
453
453
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -456,8 +456,8 @@ class pr {
|
|
|
456
456
|
* @returns {() => void}
|
|
457
457
|
*/
|
|
458
458
|
$on(t, r) {
|
|
459
|
-
if (!
|
|
460
|
-
return
|
|
459
|
+
if (!Ue(r))
|
|
460
|
+
return S;
|
|
461
461
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
462
462
|
return n.push(r), () => {
|
|
463
463
|
const i = n.indexOf(r);
|
|
@@ -469,44 +469,44 @@ class pr {
|
|
|
469
469
|
* @returns {void}
|
|
470
470
|
*/
|
|
471
471
|
$set(t) {
|
|
472
|
-
this.$$set && !
|
|
472
|
+
this.$$set && !Wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
const dr = "4";
|
|
476
476
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr);
|
|
477
|
-
const
|
|
477
|
+
const C = [];
|
|
478
478
|
function br(e, t) {
|
|
479
479
|
return {
|
|
480
|
-
subscribe:
|
|
480
|
+
subscribe: pe(e, t).subscribe
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function pe(e, t = S) {
|
|
484
484
|
let r;
|
|
485
485
|
const n = /* @__PURE__ */ new Set();
|
|
486
486
|
function i(a) {
|
|
487
487
|
if (dt(e, a) && (e = a, r)) {
|
|
488
|
-
const l = !
|
|
488
|
+
const l = !C.length;
|
|
489
489
|
for (const o of n)
|
|
490
|
-
o[1](),
|
|
490
|
+
o[1](), C.push(o, e);
|
|
491
491
|
if (l) {
|
|
492
|
-
for (let o = 0; o <
|
|
493
|
-
|
|
494
|
-
|
|
492
|
+
for (let o = 0; o < C.length; o += 2)
|
|
493
|
+
C[o][0](C[o + 1]);
|
|
494
|
+
C.length = 0;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
function s(a) {
|
|
499
499
|
i(a(e));
|
|
500
500
|
}
|
|
501
|
-
function u(a, l =
|
|
501
|
+
function u(a, l = S) {
|
|
502
502
|
const o = [a, l];
|
|
503
|
-
return n.add(o), n.size === 1 && (r = t(i, s) ||
|
|
503
|
+
return n.add(o), n.size === 1 && (r = t(i, s) || S), a(e), () => {
|
|
504
504
|
n.delete(o), n.size === 0 && r && (r(), r = null);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
return { set: i, update: s, subscribe: u };
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function k(e, t, r) {
|
|
510
510
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
511
511
|
if (!i.every(Boolean))
|
|
512
512
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -514,26 +514,26 @@ function j(e, t, r) {
|
|
|
514
514
|
return br(r, (u, a) => {
|
|
515
515
|
let l = !1;
|
|
516
516
|
const o = [];
|
|
517
|
-
let h = 0, f =
|
|
517
|
+
let h = 0, f = S;
|
|
518
518
|
const c = () => {
|
|
519
519
|
if (h)
|
|
520
520
|
return;
|
|
521
521
|
f();
|
|
522
|
-
const
|
|
523
|
-
s ? u(
|
|
524
|
-
},
|
|
525
|
-
(
|
|
526
|
-
|
|
522
|
+
const p = t(n ? o[0] : o, u, a);
|
|
523
|
+
s ? u(p) : f = Ue(p) ? p : S;
|
|
524
|
+
}, m = i.map(
|
|
525
|
+
(p, y) => bt(
|
|
526
|
+
p,
|
|
527
527
|
(H) => {
|
|
528
|
-
o[
|
|
528
|
+
o[y] = H, h &= ~(1 << y), l && c();
|
|
529
529
|
},
|
|
530
530
|
() => {
|
|
531
|
-
h |= 1 <<
|
|
531
|
+
h |= 1 << y;
|
|
532
532
|
}
|
|
533
533
|
)
|
|
534
534
|
);
|
|
535
535
|
return l = !0, c(), function() {
|
|
536
|
-
|
|
536
|
+
ee(m), f(), l = !1;
|
|
537
537
|
};
|
|
538
538
|
});
|
|
539
539
|
}
|
|
@@ -541,12 +541,12 @@ function gr(e) {
|
|
|
541
541
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
542
542
|
}
|
|
543
543
|
var Er = function(t) {
|
|
544
|
-
return
|
|
544
|
+
return yr(t) && !xr(t);
|
|
545
545
|
};
|
|
546
|
-
function
|
|
546
|
+
function yr(e) {
|
|
547
547
|
return !!e && typeof e == "object";
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function xr(e) {
|
|
550
550
|
var t = Object.prototype.toString.call(e);
|
|
551
551
|
return t === "[object RegExp]" || t === "[object Date]" || Hr(e);
|
|
552
552
|
}
|
|
@@ -557,27 +557,27 @@ function Hr(e) {
|
|
|
557
557
|
function Tr(e) {
|
|
558
558
|
return Array.isArray(e) ? [] : {};
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
560
|
+
function Y(e, t) {
|
|
561
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(Tr(e), e, t) : e;
|
|
562
562
|
}
|
|
563
563
|
function Pr(e, t, r) {
|
|
564
564
|
return e.concat(t).map(function(n) {
|
|
565
|
-
return
|
|
565
|
+
return Y(n, r);
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Sr(e, t) {
|
|
569
569
|
if (!t.customMerge)
|
|
570
|
-
return
|
|
570
|
+
return D;
|
|
571
571
|
var r = t.customMerge(e);
|
|
572
|
-
return typeof r == "function" ? r :
|
|
572
|
+
return typeof r == "function" ? r : D;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Br(e) {
|
|
575
575
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
576
576
|
return Object.propertyIsEnumerable.call(e, t);
|
|
577
577
|
}) : [];
|
|
578
578
|
}
|
|
579
579
|
function Qe(e) {
|
|
580
|
-
return Object.keys(e).concat(
|
|
580
|
+
return Object.keys(e).concat(Br(e));
|
|
581
581
|
}
|
|
582
582
|
function Et(e, t) {
|
|
583
583
|
try {
|
|
@@ -592,65 +592,51 @@ function Ar(e, t) {
|
|
|
592
592
|
function Nr(e, t, r) {
|
|
593
593
|
var n = {};
|
|
594
594
|
return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
|
|
595
|
-
n[i] =
|
|
595
|
+
n[i] = Y(e[i], r);
|
|
596
596
|
}), Qe(t).forEach(function(i) {
|
|
597
|
-
Ar(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] =
|
|
597
|
+
Ar(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = Sr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
598
598
|
}), n;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Er, r.cloneUnlessOtherwiseSpecified =
|
|
600
|
+
function D(e, t, r) {
|
|
601
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pr, r.isMergeableObject = r.isMergeableObject || Er, r.cloneUnlessOtherwiseSpecified = Y;
|
|
602
602
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
603
|
-
return s ? n ? r.arrayMerge(e, t, r) : Nr(e, t, r) :
|
|
603
|
+
return s ? n ? r.arrayMerge(e, t, r) : Nr(e, t, r) : Y(t, r);
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
D.all = function(t, r) {
|
|
606
606
|
if (!Array.isArray(t))
|
|
607
607
|
throw new Error("first argument should be an array");
|
|
608
608
|
return t.reduce(function(n, i) {
|
|
609
|
-
return
|
|
609
|
+
return D(n, i, r);
|
|
610
610
|
}, {});
|
|
611
611
|
};
|
|
612
|
-
var wr =
|
|
612
|
+
var wr = D, Or = wr;
|
|
613
613
|
const Ir = /* @__PURE__ */ gr(Or);
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
618
|
-
purpose with or without fee is hereby granted.
|
|
619
|
-
|
|
620
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
621
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
622
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
623
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
624
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
625
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
626
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
627
|
-
***************************************************************************** */
|
|
628
|
-
var Se = function(e, t) {
|
|
629
|
-
return Se = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
614
|
+
var Ne = function(e, t) {
|
|
615
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
630
616
|
r.__proto__ = n;
|
|
631
617
|
} || function(r, n) {
|
|
632
618
|
for (var i in n)
|
|
633
619
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
634
|
-
},
|
|
620
|
+
}, Ne(e, t);
|
|
635
621
|
};
|
|
636
|
-
function
|
|
622
|
+
function me(e, t) {
|
|
637
623
|
if (typeof t != "function" && t !== null)
|
|
638
624
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
639
|
-
|
|
625
|
+
Ne(e, t);
|
|
640
626
|
function r() {
|
|
641
627
|
this.constructor = e;
|
|
642
628
|
}
|
|
643
629
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
644
630
|
}
|
|
645
|
-
var
|
|
646
|
-
return
|
|
631
|
+
var A = function() {
|
|
632
|
+
return A = Object.assign || function(t) {
|
|
647
633
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
648
634
|
r = arguments[n];
|
|
649
635
|
for (var s in r)
|
|
650
636
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
651
637
|
}
|
|
652
638
|
return t;
|
|
653
|
-
},
|
|
639
|
+
}, A.apply(this, arguments);
|
|
654
640
|
};
|
|
655
641
|
function Lr(e, t) {
|
|
656
642
|
var r = {};
|
|
@@ -661,14 +647,14 @@ function Lr(e, t) {
|
|
|
661
647
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
662
648
|
return r;
|
|
663
649
|
}
|
|
664
|
-
function
|
|
665
|
-
if (arguments.length === 2)
|
|
650
|
+
function xe(e, t, r) {
|
|
651
|
+
if (r || arguments.length === 2)
|
|
666
652
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
667
653
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
668
|
-
return e.concat(s || t);
|
|
654
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
669
655
|
}
|
|
670
|
-
function
|
|
671
|
-
var r = t && t.cache ? t.cache :
|
|
656
|
+
function ve(e, t) {
|
|
657
|
+
var r = t && t.cache ? t.cache : Gr, n = t && t.serializer ? t.serializer : Ur, i = t && t.strategy ? t.strategy : Cr;
|
|
672
658
|
return i(e, {
|
|
673
659
|
cache: r,
|
|
674
660
|
serializer: n
|
|
@@ -677,7 +663,7 @@ function xe(e, t) {
|
|
|
677
663
|
function $r(e) {
|
|
678
664
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
679
665
|
}
|
|
680
|
-
function
|
|
666
|
+
function Mr(e, t, r, n) {
|
|
681
667
|
var i = $r(n) ? n : r(n), s = t.get(i);
|
|
682
668
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
683
669
|
}
|
|
@@ -685,87 +671,95 @@ function yt(e, t, r) {
|
|
|
685
671
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
686
672
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
687
673
|
}
|
|
688
|
-
function
|
|
674
|
+
function xt(e, t, r, n, i) {
|
|
689
675
|
return r.bind(t, e, n, i);
|
|
690
676
|
}
|
|
691
|
-
function Mr(e, t) {
|
|
692
|
-
var r = e.length === 1 ? xt : yt;
|
|
693
|
-
return Re(e, this, r, t.cache.create(), t.serializer);
|
|
694
|
-
}
|
|
695
677
|
function Cr(e, t) {
|
|
696
|
-
|
|
678
|
+
var r = e.length === 1 ? Mr : yt;
|
|
679
|
+
return xt(e, this, r, t.cache.create(), t.serializer);
|
|
697
680
|
}
|
|
698
681
|
function Rr(e, t) {
|
|
699
|
-
return
|
|
682
|
+
return xt(e, this, yt, t.cache.create(), t.serializer);
|
|
700
683
|
}
|
|
701
684
|
var Ur = function() {
|
|
702
685
|
return JSON.stringify(arguments);
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
686
|
+
}, Dr = (
|
|
687
|
+
/** @class */
|
|
688
|
+
function() {
|
|
689
|
+
function e() {
|
|
690
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
691
|
+
}
|
|
692
|
+
return e.prototype.get = function(t) {
|
|
693
|
+
return this.cache[t];
|
|
694
|
+
}, e.prototype.set = function(t, r) {
|
|
695
|
+
this.cache[t] = r;
|
|
696
|
+
}, e;
|
|
697
|
+
}()
|
|
698
|
+
), Gr = {
|
|
714
699
|
create: function() {
|
|
715
|
-
return new
|
|
700
|
+
return new Dr();
|
|
716
701
|
}
|
|
717
|
-
},
|
|
718
|
-
variadic:
|
|
719
|
-
|
|
720
|
-
|
|
702
|
+
}, _e = {
|
|
703
|
+
variadic: Rr
|
|
704
|
+
}, le = function() {
|
|
705
|
+
return le = Object.assign || function(t) {
|
|
706
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
707
|
+
r = arguments[n];
|
|
708
|
+
for (var s in r)
|
|
709
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
710
|
+
}
|
|
711
|
+
return t;
|
|
712
|
+
}, le.apply(this, arguments);
|
|
713
|
+
};
|
|
714
|
+
var d;
|
|
721
715
|
(function(e) {
|
|
722
716
|
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";
|
|
723
717
|
})(d || (d = {}));
|
|
724
|
-
var
|
|
718
|
+
var g;
|
|
725
719
|
(function(e) {
|
|
726
720
|
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";
|
|
727
|
-
})(
|
|
728
|
-
var
|
|
721
|
+
})(g || (g = {}));
|
|
722
|
+
var G;
|
|
729
723
|
(function(e) {
|
|
730
724
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
731
|
-
})(
|
|
725
|
+
})(G || (G = {}));
|
|
732
726
|
function Je(e) {
|
|
733
|
-
return e.type ===
|
|
727
|
+
return e.type === g.literal;
|
|
734
728
|
}
|
|
735
|
-
function
|
|
736
|
-
return e.type ===
|
|
729
|
+
function Fr(e) {
|
|
730
|
+
return e.type === g.argument;
|
|
737
731
|
}
|
|
738
732
|
function vt(e) {
|
|
739
|
-
return e.type ===
|
|
733
|
+
return e.type === g.number;
|
|
740
734
|
}
|
|
741
735
|
function _t(e) {
|
|
742
|
-
return e.type ===
|
|
736
|
+
return e.type === g.date;
|
|
743
737
|
}
|
|
744
738
|
function Ht(e) {
|
|
745
|
-
return e.type ===
|
|
739
|
+
return e.type === g.time;
|
|
746
740
|
}
|
|
747
741
|
function Tt(e) {
|
|
748
|
-
return e.type ===
|
|
742
|
+
return e.type === g.select;
|
|
749
743
|
}
|
|
750
744
|
function Pt(e) {
|
|
751
|
-
return e.type ===
|
|
745
|
+
return e.type === g.plural;
|
|
752
746
|
}
|
|
753
|
-
function
|
|
754
|
-
return e.type ===
|
|
755
|
-
}
|
|
756
|
-
function Bt(e) {
|
|
757
|
-
return e.type === E.tag;
|
|
747
|
+
function zr(e) {
|
|
748
|
+
return e.type === g.pound;
|
|
758
749
|
}
|
|
759
750
|
function St(e) {
|
|
760
|
-
return
|
|
751
|
+
return e.type === g.tag;
|
|
761
752
|
}
|
|
762
|
-
function
|
|
763
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
753
|
+
function Bt(e) {
|
|
754
|
+
return !!(e && typeof e == "object" && e.type === G.number);
|
|
764
755
|
}
|
|
765
|
-
|
|
766
|
-
|
|
756
|
+
function we(e) {
|
|
757
|
+
return !!(e && typeof e == "object" && e.type === G.dateTime);
|
|
758
|
+
}
|
|
759
|
+
var At = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jr = /(?:[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;
|
|
760
|
+
function kr(e) {
|
|
767
761
|
var t = {};
|
|
768
|
-
return e.replace(
|
|
762
|
+
return e.replace(jr, function(r) {
|
|
769
763
|
var n = r.length;
|
|
770
764
|
switch (r[0]) {
|
|
771
765
|
case "G":
|
|
@@ -854,11 +848,21 @@ function jr(e) {
|
|
|
854
848
|
return "";
|
|
855
849
|
}), t;
|
|
856
850
|
}
|
|
857
|
-
var
|
|
858
|
-
function
|
|
851
|
+
var E = function() {
|
|
852
|
+
return E = Object.assign || function(t) {
|
|
853
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
854
|
+
r = arguments[n];
|
|
855
|
+
for (var s in r)
|
|
856
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
857
|
+
}
|
|
858
|
+
return t;
|
|
859
|
+
}, E.apply(this, arguments);
|
|
860
|
+
};
|
|
861
|
+
var Vr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
862
|
+
function Xr(e) {
|
|
859
863
|
if (e.length === 0)
|
|
860
864
|
throw new Error("Number skeleton cannot be empty");
|
|
861
|
-
for (var t = e.split(
|
|
865
|
+
for (var t = e.split(Vr).filter(function(c) {
|
|
862
866
|
return c.length > 0;
|
|
863
867
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
864
868
|
var s = i[n], u = s.split("/");
|
|
@@ -873,7 +877,7 @@ function Vr(e) {
|
|
|
873
877
|
}
|
|
874
878
|
return r;
|
|
875
879
|
}
|
|
876
|
-
function
|
|
880
|
+
function Wr(e) {
|
|
877
881
|
return e.replace(/^(.*?)-/, "");
|
|
878
882
|
}
|
|
879
883
|
var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Zr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
@@ -923,7 +927,7 @@ function Ot(e) {
|
|
|
923
927
|
};
|
|
924
928
|
}
|
|
925
929
|
}
|
|
926
|
-
function
|
|
930
|
+
function Qr(e) {
|
|
927
931
|
var t;
|
|
928
932
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
929
933
|
notation: "engineering"
|
|
@@ -941,7 +945,7 @@ function Ke(e) {
|
|
|
941
945
|
var t = {}, r = Ot(e);
|
|
942
946
|
return r || t;
|
|
943
947
|
}
|
|
944
|
-
function
|
|
948
|
+
function Jr(e) {
|
|
945
949
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
946
950
|
var i = n[r];
|
|
947
951
|
switch (i.stem) {
|
|
@@ -965,7 +969,7 @@ function Qr(e) {
|
|
|
965
969
|
continue;
|
|
966
970
|
case "measure-unit":
|
|
967
971
|
case "unit":
|
|
968
|
-
t.style = "unit", t.unit =
|
|
972
|
+
t.style = "unit", t.unit = Wr(i.options[0]);
|
|
969
973
|
continue;
|
|
970
974
|
case "compact-short":
|
|
971
975
|
case "K":
|
|
@@ -976,13 +980,13 @@ function Qr(e) {
|
|
|
976
980
|
t.notation = "compact", t.compactDisplay = "long";
|
|
977
981
|
continue;
|
|
978
982
|
case "scientific":
|
|
979
|
-
t =
|
|
980
|
-
return
|
|
983
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, o) {
|
|
984
|
+
return E(E({}, l), Ke(o));
|
|
981
985
|
}, {}));
|
|
982
986
|
continue;
|
|
983
987
|
case "engineering":
|
|
984
|
-
t =
|
|
985
|
-
return
|
|
988
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, o) {
|
|
989
|
+
return E(E({}, l), Ke(o));
|
|
986
990
|
}, {}));
|
|
987
991
|
continue;
|
|
988
992
|
case "notation-simple":
|
|
@@ -1027,13 +1031,13 @@ function Qr(e) {
|
|
|
1027
1031
|
case "integer-width":
|
|
1028
1032
|
if (i.options.length > 1)
|
|
1029
1033
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1030
|
-
i.options[0].replace(Zr, function(l, o, h, f, c,
|
|
1034
|
+
i.options[0].replace(Zr, function(l, o, h, f, c, m) {
|
|
1031
1035
|
if (o)
|
|
1032
1036
|
t.minimumIntegerDigits = h.length;
|
|
1033
1037
|
else {
|
|
1034
1038
|
if (f && c)
|
|
1035
1039
|
throw new Error("We currently do not support maximum integer digits");
|
|
1036
|
-
if (
|
|
1040
|
+
if (m)
|
|
1037
1041
|
throw new Error("We currently do not support exact integer digits");
|
|
1038
1042
|
}
|
|
1039
1043
|
return "";
|
|
@@ -1047,25 +1051,25 @@ function Qr(e) {
|
|
|
1047
1051
|
if (qe.test(i.stem)) {
|
|
1048
1052
|
if (i.options.length > 1)
|
|
1049
1053
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1050
|
-
i.stem.replace(qe, function(l, o, h, f, c,
|
|
1051
|
-
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1054
|
+
i.stem.replace(qe, function(l, o, h, f, c, m) {
|
|
1055
|
+
return h === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1052
1056
|
});
|
|
1053
1057
|
var s = i.options[0];
|
|
1054
|
-
s === "w" ? t =
|
|
1058
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), Ye(s)));
|
|
1055
1059
|
continue;
|
|
1056
1060
|
}
|
|
1057
1061
|
if (Nt.test(i.stem)) {
|
|
1058
|
-
t =
|
|
1062
|
+
t = E(E({}, t), Ye(i.stem));
|
|
1059
1063
|
continue;
|
|
1060
1064
|
}
|
|
1061
1065
|
var u = Ot(i.stem);
|
|
1062
|
-
u && (t =
|
|
1063
|
-
var a =
|
|
1064
|
-
a && (t =
|
|
1066
|
+
u && (t = E(E({}, t), u));
|
|
1067
|
+
var a = Qr(i.stem);
|
|
1068
|
+
a && (t = E(E({}, t), a));
|
|
1065
1069
|
}
|
|
1066
1070
|
return t;
|
|
1067
1071
|
}
|
|
1068
|
-
var
|
|
1072
|
+
var se = {
|
|
1069
1073
|
"001": [
|
|
1070
1074
|
"H",
|
|
1071
1075
|
"h"
|
|
@@ -2480,13 +2484,13 @@ var ie = {
|
|
|
2480
2484
|
"h"
|
|
2481
2485
|
]
|
|
2482
2486
|
};
|
|
2483
|
-
function
|
|
2487
|
+
function qr(e, t) {
|
|
2484
2488
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2485
2489
|
var i = e.charAt(n);
|
|
2486
2490
|
if (i === "j") {
|
|
2487
2491
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2488
2492
|
s++, n++;
|
|
2489
|
-
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o =
|
|
2493
|
+
var u = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", o = Yr(t);
|
|
2490
2494
|
for ((o == "H" || o == "k") && (a = 0); a-- > 0; )
|
|
2491
2495
|
r += l;
|
|
2492
2496
|
for (; u-- > 0; )
|
|
@@ -2496,7 +2500,7 @@ function Jr(e, t) {
|
|
|
2496
2500
|
}
|
|
2497
2501
|
return r;
|
|
2498
2502
|
}
|
|
2499
|
-
function
|
|
2503
|
+
function Yr(e) {
|
|
2500
2504
|
var t = e.hourCycle;
|
|
2501
2505
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2502
2506
|
e.hourCycles && // @ts-ignore
|
|
@@ -2515,23 +2519,23 @@ function qr(e) {
|
|
|
2515
2519
|
}
|
|
2516
2520
|
var r = e.language, n;
|
|
2517
2521
|
r !== "root" && (n = e.maximize().region);
|
|
2518
|
-
var i =
|
|
2522
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2519
2523
|
return i[0];
|
|
2520
2524
|
}
|
|
2521
|
-
var
|
|
2525
|
+
var He, Kr = new RegExp("^".concat(At.source, "*")), en = new RegExp("".concat(At.source, "*$"));
|
|
2522
2526
|
function b(e, t) {
|
|
2523
2527
|
return { start: e, end: t };
|
|
2524
2528
|
}
|
|
2525
|
-
var
|
|
2529
|
+
var tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), rn = !!String.fromCodePoint, nn = !!Object.fromEntries, sn = !!String.prototype.codePointAt, on = !!String.prototype.trimStart, an = !!String.prototype.trimEnd, un = !!Number.isSafeInteger, hn = un ? Number.isSafeInteger : function(e) {
|
|
2526
2530
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2527
|
-
},
|
|
2531
|
+
}, Oe = !0;
|
|
2528
2532
|
try {
|
|
2529
|
-
var
|
|
2530
|
-
|
|
2533
|
+
var ln = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2534
|
+
Oe = ((He = ln.exec("a")) === null || He === void 0 ? void 0 : He[0]) === "a";
|
|
2531
2535
|
} catch (e) {
|
|
2532
|
-
|
|
2536
|
+
Oe = !1;
|
|
2533
2537
|
}
|
|
2534
|
-
var et =
|
|
2538
|
+
var et = tn ? (
|
|
2535
2539
|
// Native
|
|
2536
2540
|
function(t, r, n) {
|
|
2537
2541
|
return t.startsWith(r, n);
|
|
@@ -2541,7 +2545,7 @@ var et = en ? (
|
|
|
2541
2545
|
function(t, r, n) {
|
|
2542
2546
|
return t.slice(n, n + r.length) === r;
|
|
2543
2547
|
}
|
|
2544
|
-
),
|
|
2548
|
+
), Ie = rn ? String.fromCodePoint : (
|
|
2545
2549
|
// IE11
|
|
2546
2550
|
function() {
|
|
2547
2551
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2555,7 +2559,7 @@ var et = en ? (
|
|
|
2555
2559
|
}
|
|
2556
2560
|
), tt = (
|
|
2557
2561
|
// native
|
|
2558
|
-
|
|
2562
|
+
nn ? Object.fromEntries : (
|
|
2559
2563
|
// Ponyfill
|
|
2560
2564
|
function(t) {
|
|
2561
2565
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2565,7 +2569,7 @@ var et = en ? (
|
|
|
2565
2569
|
return r;
|
|
2566
2570
|
}
|
|
2567
2571
|
)
|
|
2568
|
-
), It =
|
|
2572
|
+
), It = sn ? (
|
|
2569
2573
|
// Native
|
|
2570
2574
|
function(t, r) {
|
|
2571
2575
|
return t.codePointAt(r);
|
|
@@ -2579,7 +2583,7 @@ var et = en ? (
|
|
|
2579
2583
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2580
2584
|
}
|
|
2581
2585
|
}
|
|
2582
|
-
),
|
|
2586
|
+
), fn = on ? (
|
|
2583
2587
|
// Native
|
|
2584
2588
|
function(t) {
|
|
2585
2589
|
return t.trimStart();
|
|
@@ -2587,9 +2591,9 @@ var et = en ? (
|
|
|
2587
2591
|
) : (
|
|
2588
2592
|
// Ponyfill
|
|
2589
2593
|
function(t) {
|
|
2590
|
-
return t.replace(
|
|
2594
|
+
return t.replace(Kr, "");
|
|
2591
2595
|
}
|
|
2592
|
-
),
|
|
2596
|
+
), cn = an ? (
|
|
2593
2597
|
// Native
|
|
2594
2598
|
function(t) {
|
|
2595
2599
|
return t.trimEnd();
|
|
@@ -2597,32 +2601,32 @@ var et = en ? (
|
|
|
2597
2601
|
) : (
|
|
2598
2602
|
// Ponyfill
|
|
2599
2603
|
function(t) {
|
|
2600
|
-
return t.replace(
|
|
2604
|
+
return t.replace(en, "");
|
|
2601
2605
|
}
|
|
2602
2606
|
);
|
|
2603
2607
|
function Lt(e, t) {
|
|
2604
2608
|
return new RegExp(e, t);
|
|
2605
2609
|
}
|
|
2606
|
-
var
|
|
2607
|
-
if (
|
|
2610
|
+
var Le;
|
|
2611
|
+
if (Oe) {
|
|
2608
2612
|
var rt = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2609
|
-
|
|
2613
|
+
Le = function(t, r) {
|
|
2610
2614
|
var n;
|
|
2611
2615
|
rt.lastIndex = r;
|
|
2612
2616
|
var i = rt.exec(t);
|
|
2613
2617
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2614
2618
|
};
|
|
2615
2619
|
} else
|
|
2616
|
-
|
|
2620
|
+
Le = function(t, r) {
|
|
2617
2621
|
for (var n = []; ; ) {
|
|
2618
2622
|
var i = It(t, r);
|
|
2619
|
-
if (i === void 0 || $t(i) ||
|
|
2623
|
+
if (i === void 0 || $t(i) || bn(i))
|
|
2620
2624
|
break;
|
|
2621
2625
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2622
2626
|
}
|
|
2623
|
-
return
|
|
2627
|
+
return Ie.apply(void 0, n);
|
|
2624
2628
|
};
|
|
2625
|
-
var
|
|
2629
|
+
var pn = (
|
|
2626
2630
|
/** @class */
|
|
2627
2631
|
function() {
|
|
2628
2632
|
function e(t, r) {
|
|
@@ -2646,14 +2650,14 @@ var cn = (
|
|
|
2646
2650
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2647
2651
|
var a = this.clonePosition();
|
|
2648
2652
|
this.bump(), i.push({
|
|
2649
|
-
type:
|
|
2653
|
+
type: g.pound,
|
|
2650
2654
|
location: b(a, this.clonePosition())
|
|
2651
2655
|
});
|
|
2652
2656
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2653
2657
|
if (n)
|
|
2654
2658
|
break;
|
|
2655
2659
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2656
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2660
|
+
} else if (s === 60 && !this.ignoreTag && $e(this.peek() || 0)) {
|
|
2657
2661
|
var u = this.parseTag(t, r);
|
|
2658
2662
|
if (u.err)
|
|
2659
2663
|
return u;
|
|
@@ -2674,7 +2678,7 @@ var cn = (
|
|
|
2674
2678
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2675
2679
|
return {
|
|
2676
2680
|
val: {
|
|
2677
|
-
type:
|
|
2681
|
+
type: g.literal,
|
|
2678
2682
|
value: "<".concat(i, "/>"),
|
|
2679
2683
|
location: b(n, this.clonePosition())
|
|
2680
2684
|
},
|
|
@@ -2686,12 +2690,12 @@ var cn = (
|
|
|
2686
2690
|
return s;
|
|
2687
2691
|
var u = s.val, a = this.clonePosition();
|
|
2688
2692
|
if (this.bumpIf("</")) {
|
|
2689
|
-
if (this.isEOF() ||
|
|
2693
|
+
if (this.isEOF() || !$e(this.char()))
|
|
2690
2694
|
return this.error(d.INVALID_TAG, b(a, this.clonePosition()));
|
|
2691
2695
|
var l = this.clonePosition(), o = this.parseTagName();
|
|
2692
2696
|
return i !== o ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2693
2697
|
val: {
|
|
2694
|
-
type:
|
|
2698
|
+
type: g.tag,
|
|
2695
2699
|
value: i,
|
|
2696
2700
|
children: u,
|
|
2697
2701
|
location: b(n, this.clonePosition())
|
|
@@ -2704,7 +2708,7 @@ var cn = (
|
|
|
2704
2708
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2705
2709
|
}, e.prototype.parseTagName = function() {
|
|
2706
2710
|
var t = this.offset();
|
|
2707
|
-
for (this.bump(); !this.isEOF() &&
|
|
2711
|
+
for (this.bump(); !this.isEOF() && dn(this.char()); )
|
|
2708
2712
|
this.bump();
|
|
2709
2713
|
return this.message.slice(t, this.offset());
|
|
2710
2714
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2728,7 +2732,7 @@ var cn = (
|
|
|
2728
2732
|
}
|
|
2729
2733
|
var l = b(n, this.clonePosition());
|
|
2730
2734
|
return {
|
|
2731
|
-
val: { type:
|
|
2735
|
+
val: { type: g.literal, value: i, location: l },
|
|
2732
2736
|
err: null
|
|
2733
2737
|
};
|
|
2734
2738
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2767,12 +2771,12 @@ var cn = (
|
|
|
2767
2771
|
r.push(n);
|
|
2768
2772
|
this.bump();
|
|
2769
2773
|
}
|
|
2770
|
-
return
|
|
2774
|
+
return Ie.apply(void 0, r);
|
|
2771
2775
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2772
2776
|
if (this.isEOF())
|
|
2773
2777
|
return null;
|
|
2774
2778
|
var n = this.char();
|
|
2775
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2779
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ie(n));
|
|
2776
2780
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2777
2781
|
var n = this.clonePosition();
|
|
2778
2782
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2788,7 +2792,7 @@ var cn = (
|
|
|
2788
2792
|
case 125:
|
|
2789
2793
|
return this.bump(), {
|
|
2790
2794
|
val: {
|
|
2791
|
-
type:
|
|
2795
|
+
type: g.argument,
|
|
2792
2796
|
// value does not include the opening and closing braces.
|
|
2793
2797
|
value: i,
|
|
2794
2798
|
location: b(n, this.clonePosition())
|
|
@@ -2801,7 +2805,7 @@ var cn = (
|
|
|
2801
2805
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2802
2806
|
}
|
|
2803
2807
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2804
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2808
|
+
var t = this.clonePosition(), r = this.offset(), n = Le(this.message, r), i = r + n.length;
|
|
2805
2809
|
this.bumpTo(i);
|
|
2806
2810
|
var s = this.clonePosition(), u = b(t, s);
|
|
2807
2811
|
return { value: n, location: u };
|
|
@@ -2820,46 +2824,46 @@ var cn = (
|
|
|
2820
2824
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2821
2825
|
if (f.err)
|
|
2822
2826
|
return f;
|
|
2823
|
-
var c =
|
|
2827
|
+
var c = cn(f.val);
|
|
2824
2828
|
if (c.length === 0)
|
|
2825
2829
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2826
|
-
var
|
|
2827
|
-
o = { style: c, styleLocation:
|
|
2830
|
+
var m = b(h, this.clonePosition());
|
|
2831
|
+
o = { style: c, styleLocation: m };
|
|
2828
2832
|
}
|
|
2829
|
-
var
|
|
2830
|
-
if (
|
|
2831
|
-
return
|
|
2832
|
-
var
|
|
2833
|
+
var p = this.tryParseArgumentClose(i);
|
|
2834
|
+
if (p.err)
|
|
2835
|
+
return p;
|
|
2836
|
+
var y = b(i, this.clonePosition());
|
|
2833
2837
|
if (o && et(o == null ? void 0 : o.style, "::", 0)) {
|
|
2834
|
-
var H =
|
|
2838
|
+
var H = fn(o.style.slice(2));
|
|
2835
2839
|
if (a === "number") {
|
|
2836
2840
|
var f = this.parseNumberSkeletonFromString(H, o.styleLocation);
|
|
2837
2841
|
return f.err ? f : {
|
|
2838
|
-
val: { type:
|
|
2842
|
+
val: { type: g.number, value: n, location: y, style: f.val },
|
|
2839
2843
|
err: null
|
|
2840
2844
|
};
|
|
2841
2845
|
} else {
|
|
2842
2846
|
if (H.length === 0)
|
|
2843
|
-
return this.error(d.EXPECT_DATE_TIME_SKELETON,
|
|
2844
|
-
var
|
|
2845
|
-
this.locale && (
|
|
2847
|
+
return this.error(d.EXPECT_DATE_TIME_SKELETON, y);
|
|
2848
|
+
var X = H;
|
|
2849
|
+
this.locale && (X = qr(H, this.locale));
|
|
2846
2850
|
var c = {
|
|
2847
|
-
type:
|
|
2848
|
-
pattern:
|
|
2851
|
+
type: G.dateTime,
|
|
2852
|
+
pattern: X,
|
|
2849
2853
|
location: o.styleLocation,
|
|
2850
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2851
|
-
},
|
|
2854
|
+
parsedOptions: this.shouldParseSkeletons ? kr(X) : {}
|
|
2855
|
+
}, $ = a === "date" ? g.date : g.time;
|
|
2852
2856
|
return {
|
|
2853
|
-
val: { type:
|
|
2857
|
+
val: { type: $, value: n, location: y, style: c },
|
|
2854
2858
|
err: null
|
|
2855
2859
|
};
|
|
2856
2860
|
}
|
|
2857
2861
|
}
|
|
2858
2862
|
return {
|
|
2859
2863
|
val: {
|
|
2860
|
-
type: a === "number" ?
|
|
2864
|
+
type: a === "number" ? g.number : a === "date" ? g.date : g.time,
|
|
2861
2865
|
value: n,
|
|
2862
|
-
location:
|
|
2866
|
+
location: y,
|
|
2863
2867
|
style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
|
|
2864
2868
|
},
|
|
2865
2869
|
err: null
|
|
@@ -2868,41 +2872,41 @@ var cn = (
|
|
|
2868
2872
|
case "plural":
|
|
2869
2873
|
case "selectordinal":
|
|
2870
2874
|
case "select": {
|
|
2871
|
-
var
|
|
2875
|
+
var B = this.clonePosition();
|
|
2872
2876
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2873
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2877
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, le({}, B)));
|
|
2874
2878
|
this.bumpSpace();
|
|
2875
|
-
var
|
|
2876
|
-
if (a !== "select" &&
|
|
2879
|
+
var W = this.parseIdentifierIfPossible(), w = 0;
|
|
2880
|
+
if (a !== "select" && W.value === "offset") {
|
|
2877
2881
|
if (!this.bumpIf(":"))
|
|
2878
2882
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2879
2883
|
this.bumpSpace();
|
|
2880
2884
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2881
2885
|
if (f.err)
|
|
2882
2886
|
return f;
|
|
2883
|
-
this.bumpSpace(),
|
|
2887
|
+
this.bumpSpace(), W = this.parseIdentifierIfPossible(), w = f.val;
|
|
2884
2888
|
}
|
|
2885
|
-
var
|
|
2886
|
-
if (
|
|
2887
|
-
return
|
|
2888
|
-
var
|
|
2889
|
-
if (
|
|
2890
|
-
return
|
|
2889
|
+
var ie = this.tryParsePluralOrSelectOptions(t, a, r, W);
|
|
2890
|
+
if (ie.err)
|
|
2891
|
+
return ie;
|
|
2892
|
+
var p = this.tryParseArgumentClose(i);
|
|
2893
|
+
if (p.err)
|
|
2894
|
+
return p;
|
|
2891
2895
|
var Fe = b(i, this.clonePosition());
|
|
2892
2896
|
return a === "select" ? {
|
|
2893
2897
|
val: {
|
|
2894
|
-
type:
|
|
2898
|
+
type: g.select,
|
|
2895
2899
|
value: n,
|
|
2896
|
-
options: tt(
|
|
2900
|
+
options: tt(ie.val),
|
|
2897
2901
|
location: Fe
|
|
2898
2902
|
},
|
|
2899
2903
|
err: null
|
|
2900
2904
|
} : {
|
|
2901
2905
|
val: {
|
|
2902
|
-
type:
|
|
2906
|
+
type: g.plural,
|
|
2903
2907
|
value: n,
|
|
2904
|
-
options: tt(
|
|
2905
|
-
offset:
|
|
2908
|
+
options: tt(ie.val),
|
|
2909
|
+
offset: w,
|
|
2906
2910
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2907
2911
|
location: Fe
|
|
2908
2912
|
},
|
|
@@ -2952,16 +2956,16 @@ var cn = (
|
|
|
2952
2956
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2953
2957
|
var n = [];
|
|
2954
2958
|
try {
|
|
2955
|
-
n =
|
|
2959
|
+
n = Xr(t);
|
|
2956
2960
|
} catch (i) {
|
|
2957
2961
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
2958
2962
|
}
|
|
2959
2963
|
return {
|
|
2960
2964
|
val: {
|
|
2961
|
-
type:
|
|
2965
|
+
type: G.number,
|
|
2962
2966
|
tokens: n,
|
|
2963
2967
|
location: r,
|
|
2964
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2968
|
+
parsedOptions: this.shouldParseSkeletons ? Jr(n) : {}
|
|
2965
2969
|
},
|
|
2966
2970
|
err: null
|
|
2967
2971
|
};
|
|
@@ -2980,20 +2984,20 @@ var cn = (
|
|
|
2980
2984
|
if (l.has(o))
|
|
2981
2985
|
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2982
2986
|
o === "other" && (u = !0), this.bumpSpace();
|
|
2983
|
-
var
|
|
2987
|
+
var m = this.clonePosition();
|
|
2984
2988
|
if (!this.bumpIf("{"))
|
|
2985
2989
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2986
|
-
var
|
|
2987
|
-
if (
|
|
2988
|
-
return
|
|
2989
|
-
var
|
|
2990
|
-
if (
|
|
2991
|
-
return
|
|
2990
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
2991
|
+
if (p.err)
|
|
2992
|
+
return p;
|
|
2993
|
+
var y = this.tryParseArgumentClose(m);
|
|
2994
|
+
if (y.err)
|
|
2995
|
+
return y;
|
|
2992
2996
|
a.push([
|
|
2993
2997
|
o,
|
|
2994
2998
|
{
|
|
2995
|
-
value:
|
|
2996
|
-
location: b(
|
|
2999
|
+
value: p.val,
|
|
3000
|
+
location: b(m, this.clonePosition())
|
|
2997
3001
|
}
|
|
2998
3002
|
]), l.add(o), this.bumpSpace(), s = this.parseIdentifierIfPossible(), o = s.value, h = s.location;
|
|
2999
3003
|
}
|
|
@@ -3009,7 +3013,7 @@ var cn = (
|
|
|
3009
3013
|
break;
|
|
3010
3014
|
}
|
|
3011
3015
|
var l = b(i, this.clonePosition());
|
|
3012
|
-
return s ? (u *= n,
|
|
3016
|
+
return s ? (u *= n, hn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3013
3017
|
}, e.prototype.offset = function() {
|
|
3014
3018
|
return this.position.offset;
|
|
3015
3019
|
}, e.prototype.isEOF = function() {
|
|
@@ -3075,47 +3079,47 @@ var cn = (
|
|
|
3075
3079
|
}, e;
|
|
3076
3080
|
}()
|
|
3077
3081
|
);
|
|
3078
|
-
function
|
|
3082
|
+
function $e(e) {
|
|
3079
3083
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3080
3084
|
}
|
|
3081
3085
|
function mn(e) {
|
|
3082
|
-
return
|
|
3086
|
+
return $e(e) || e === 47;
|
|
3083
3087
|
}
|
|
3084
|
-
function
|
|
3088
|
+
function dn(e) {
|
|
3085
3089
|
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;
|
|
3086
3090
|
}
|
|
3087
3091
|
function $t(e) {
|
|
3088
3092
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3089
3093
|
}
|
|
3090
|
-
function
|
|
3094
|
+
function bn(e) {
|
|
3091
3095
|
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;
|
|
3092
3096
|
}
|
|
3093
|
-
function
|
|
3097
|
+
function Me(e) {
|
|
3094
3098
|
e.forEach(function(t) {
|
|
3095
3099
|
if (delete t.location, Tt(t) || Pt(t))
|
|
3096
3100
|
for (var r in t.options)
|
|
3097
|
-
delete t.options[r].location,
|
|
3101
|
+
delete t.options[r].location, Me(t.options[r].value);
|
|
3098
3102
|
else
|
|
3099
|
-
vt(t) &&
|
|
3103
|
+
vt(t) && Bt(t.style) || (_t(t) || Ht(t)) && we(t.style) ? delete t.style.location : St(t) && Me(t.children);
|
|
3100
3104
|
});
|
|
3101
3105
|
}
|
|
3102
|
-
function
|
|
3103
|
-
t === void 0 && (t = {}), t =
|
|
3104
|
-
var r = new
|
|
3106
|
+
function gn(e, t) {
|
|
3107
|
+
t === void 0 && (t = {}), t = le({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3108
|
+
var r = new pn(e, t).parse();
|
|
3105
3109
|
if (r.err) {
|
|
3106
3110
|
var n = SyntaxError(d[r.err.kind]);
|
|
3107
3111
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3108
3112
|
}
|
|
3109
|
-
return t != null && t.captureLocation ||
|
|
3113
|
+
return t != null && t.captureLocation || Me(r.val), r.val;
|
|
3110
3114
|
}
|
|
3111
|
-
var
|
|
3115
|
+
var F;
|
|
3112
3116
|
(function(e) {
|
|
3113
3117
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3114
|
-
})(
|
|
3115
|
-
var
|
|
3118
|
+
})(F || (F = {}));
|
|
3119
|
+
var de = (
|
|
3116
3120
|
/** @class */
|
|
3117
3121
|
function(e) {
|
|
3118
|
-
|
|
3122
|
+
me(t, e);
|
|
3119
3123
|
function t(r, n, i) {
|
|
3120
3124
|
var s = e.call(this, r) || this;
|
|
3121
3125
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3127,30 +3131,30 @@ var me = (
|
|
|
3127
3131
|
), nt = (
|
|
3128
3132
|
/** @class */
|
|
3129
3133
|
function(e) {
|
|
3130
|
-
|
|
3134
|
+
me(t, e);
|
|
3131
3135
|
function t(r, n, i, s) {
|
|
3132
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3136
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), F.INVALID_VALUE, s) || this;
|
|
3133
3137
|
}
|
|
3134
3138
|
return t;
|
|
3135
|
-
}(
|
|
3136
|
-
),
|
|
3139
|
+
}(de)
|
|
3140
|
+
), En = (
|
|
3137
3141
|
/** @class */
|
|
3138
3142
|
function(e) {
|
|
3139
|
-
|
|
3143
|
+
me(t, e);
|
|
3140
3144
|
function t(r, n, i) {
|
|
3141
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3145
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), F.INVALID_VALUE, i) || this;
|
|
3142
3146
|
}
|
|
3143
3147
|
return t;
|
|
3144
|
-
}(
|
|
3145
|
-
),
|
|
3148
|
+
}(de)
|
|
3149
|
+
), yn = (
|
|
3146
3150
|
/** @class */
|
|
3147
3151
|
function(e) {
|
|
3148
|
-
|
|
3152
|
+
me(t, e);
|
|
3149
3153
|
function t(r, n) {
|
|
3150
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3154
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), F.MISSING_VALUE, n) || this;
|
|
3151
3155
|
}
|
|
3152
3156
|
return t;
|
|
3153
|
-
}(
|
|
3157
|
+
}(de)
|
|
3154
3158
|
), _;
|
|
3155
3159
|
(function(e) {
|
|
3156
3160
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3161,10 +3165,10 @@ function xn(e) {
|
|
|
3161
3165
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3162
3166
|
}, []);
|
|
3163
3167
|
}
|
|
3164
|
-
function
|
|
3168
|
+
function vn(e) {
|
|
3165
3169
|
return typeof e == "function";
|
|
3166
3170
|
}
|
|
3167
|
-
function
|
|
3171
|
+
function ae(e, t, r, n, i, s, u) {
|
|
3168
3172
|
if (e.length === 1 && Je(e[0]))
|
|
3169
3173
|
return [
|
|
3170
3174
|
{
|
|
@@ -3181,7 +3185,7 @@ function oe(e, t, r, n, i, s, u) {
|
|
|
3181
3185
|
});
|
|
3182
3186
|
continue;
|
|
3183
3187
|
}
|
|
3184
|
-
if (
|
|
3188
|
+
if (zr(h)) {
|
|
3185
3189
|
typeof s == "number" && a.push({
|
|
3186
3190
|
type: _.literal,
|
|
3187
3191
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3190,9 +3194,9 @@ function oe(e, t, r, n, i, s, u) {
|
|
|
3190
3194
|
}
|
|
3191
3195
|
var f = h.value;
|
|
3192
3196
|
if (!(i && f in i))
|
|
3193
|
-
throw new
|
|
3197
|
+
throw new yn(f, u);
|
|
3194
3198
|
var c = i[f];
|
|
3195
|
-
if (
|
|
3199
|
+
if (Fr(h)) {
|
|
3196
3200
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3197
3201
|
type: typeof c == "string" ? _.literal : _.object,
|
|
3198
3202
|
value: c
|
|
@@ -3200,79 +3204,79 @@ function oe(e, t, r, n, i, s, u) {
|
|
|
3200
3204
|
continue;
|
|
3201
3205
|
}
|
|
3202
3206
|
if (_t(h)) {
|
|
3203
|
-
var
|
|
3207
|
+
var m = typeof h.style == "string" ? n.date[h.style] : we(h.style) ? h.style.parsedOptions : void 0;
|
|
3204
3208
|
a.push({
|
|
3205
3209
|
type: _.literal,
|
|
3206
|
-
value: r.getDateTimeFormat(t,
|
|
3210
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3207
3211
|
});
|
|
3208
3212
|
continue;
|
|
3209
3213
|
}
|
|
3210
3214
|
if (Ht(h)) {
|
|
3211
|
-
var
|
|
3215
|
+
var m = typeof h.style == "string" ? n.time[h.style] : we(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3212
3216
|
a.push({
|
|
3213
3217
|
type: _.literal,
|
|
3214
|
-
value: r.getDateTimeFormat(t,
|
|
3218
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
|
3215
3219
|
});
|
|
3216
3220
|
continue;
|
|
3217
3221
|
}
|
|
3218
3222
|
if (vt(h)) {
|
|
3219
|
-
var
|
|
3220
|
-
|
|
3223
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3224
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
|
3221
3225
|
type: _.literal,
|
|
3222
|
-
value: r.getNumberFormat(t,
|
|
3226
|
+
value: r.getNumberFormat(t, m).format(c)
|
|
3223
3227
|
});
|
|
3224
3228
|
continue;
|
|
3225
3229
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var
|
|
3228
|
-
if (!
|
|
3229
|
-
throw new
|
|
3230
|
-
var
|
|
3231
|
-
return
|
|
3230
|
+
if (St(h)) {
|
|
3231
|
+
var p = h.children, y = h.value, H = i[y];
|
|
3232
|
+
if (!vn(H))
|
|
3233
|
+
throw new En(y, "function", u);
|
|
3234
|
+
var X = ae(p, t, r, n, i, s), $ = H(X.map(function(w) {
|
|
3235
|
+
return w.value;
|
|
3232
3236
|
}));
|
|
3233
|
-
Array.isArray(
|
|
3237
|
+
Array.isArray($) || ($ = [$]), a.push.apply(a, $.map(function(w) {
|
|
3234
3238
|
return {
|
|
3235
|
-
type: typeof
|
|
3236
|
-
value:
|
|
3239
|
+
type: typeof w == "string" ? _.literal : _.object,
|
|
3240
|
+
value: w
|
|
3237
3241
|
};
|
|
3238
3242
|
}));
|
|
3239
3243
|
}
|
|
3240
3244
|
if (Tt(h)) {
|
|
3241
|
-
var
|
|
3242
|
-
if (!
|
|
3245
|
+
var B = h.options[c] || h.options.other;
|
|
3246
|
+
if (!B)
|
|
3243
3247
|
throw new nt(h.value, c, Object.keys(h.options), u);
|
|
3244
|
-
a.push.apply(a,
|
|
3248
|
+
a.push.apply(a, ae(B.value, t, r, n, i));
|
|
3245
3249
|
continue;
|
|
3246
3250
|
}
|
|
3247
3251
|
if (Pt(h)) {
|
|
3248
|
-
var
|
|
3249
|
-
if (!
|
|
3252
|
+
var B = h.options["=".concat(c)];
|
|
3253
|
+
if (!B) {
|
|
3250
3254
|
if (!Intl.PluralRules)
|
|
3251
|
-
throw new
|
|
3255
|
+
throw new de(`Intl.PluralRules is not available in this environment.
|
|
3252
3256
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3253
|
-
`,
|
|
3254
|
-
var
|
|
3255
|
-
|
|
3257
|
+
`, F.MISSING_INTL_API, u);
|
|
3258
|
+
var W = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3259
|
+
B = h.options[W] || h.options.other;
|
|
3256
3260
|
}
|
|
3257
|
-
if (!
|
|
3261
|
+
if (!B)
|
|
3258
3262
|
throw new nt(h.value, c, Object.keys(h.options), u);
|
|
3259
|
-
a.push.apply(a,
|
|
3263
|
+
a.push.apply(a, ae(B.value, t, r, n, i, c - (h.offset || 0)));
|
|
3260
3264
|
continue;
|
|
3261
3265
|
}
|
|
3262
3266
|
}
|
|
3263
3267
|
return xn(a);
|
|
3264
3268
|
}
|
|
3265
|
-
function
|
|
3266
|
-
return t ?
|
|
3267
|
-
return r[n] =
|
|
3269
|
+
function _n(e, t) {
|
|
3270
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3271
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3268
3272
|
}, {})) : e;
|
|
3269
3273
|
}
|
|
3270
|
-
function
|
|
3274
|
+
function Hn(e, t) {
|
|
3271
3275
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3272
|
-
return r[n] =
|
|
3273
|
-
},
|
|
3276
|
+
return r[n] = _n(e[n], t[n]), r;
|
|
3277
|
+
}, A({}, e)) : e;
|
|
3274
3278
|
}
|
|
3275
|
-
function
|
|
3279
|
+
function Te(e) {
|
|
3276
3280
|
return {
|
|
3277
3281
|
create: function() {
|
|
3278
3282
|
return {
|
|
@@ -3286,39 +3290,39 @@ function _e(e) {
|
|
|
3286
3290
|
}
|
|
3287
3291
|
};
|
|
3288
3292
|
}
|
|
3289
|
-
function
|
|
3293
|
+
function Tn(e) {
|
|
3290
3294
|
return e === void 0 && (e = {
|
|
3291
3295
|
number: {},
|
|
3292
3296
|
dateTime: {},
|
|
3293
3297
|
pluralRules: {}
|
|
3294
3298
|
}), {
|
|
3295
|
-
getNumberFormat:
|
|
3299
|
+
getNumberFormat: ve(function() {
|
|
3296
3300
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3297
3301
|
r[n] = arguments[n];
|
|
3298
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3302
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, xe([void 0], r, !1)))();
|
|
3299
3303
|
}, {
|
|
3300
|
-
cache:
|
|
3301
|
-
strategy:
|
|
3304
|
+
cache: Te(e.number),
|
|
3305
|
+
strategy: _e.variadic
|
|
3302
3306
|
}),
|
|
3303
|
-
getDateTimeFormat:
|
|
3307
|
+
getDateTimeFormat: ve(function() {
|
|
3304
3308
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3305
3309
|
r[n] = arguments[n];
|
|
3306
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3310
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, xe([void 0], r, !1)))();
|
|
3307
3311
|
}, {
|
|
3308
|
-
cache:
|
|
3309
|
-
strategy:
|
|
3312
|
+
cache: Te(e.dateTime),
|
|
3313
|
+
strategy: _e.variadic
|
|
3310
3314
|
}),
|
|
3311
|
-
getPluralRules:
|
|
3315
|
+
getPluralRules: ve(function() {
|
|
3312
3316
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3313
3317
|
r[n] = arguments[n];
|
|
3314
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3318
|
+
return new ((t = Intl.PluralRules).bind.apply(t, xe([void 0], r, !1)))();
|
|
3315
3319
|
}, {
|
|
3316
|
-
cache:
|
|
3317
|
-
strategy:
|
|
3320
|
+
cache: Te(e.pluralRules),
|
|
3321
|
+
strategy: _e.variadic
|
|
3318
3322
|
})
|
|
3319
3323
|
};
|
|
3320
3324
|
}
|
|
3321
|
-
var
|
|
3325
|
+
var Pn = (
|
|
3322
3326
|
/** @class */
|
|
3323
3327
|
function() {
|
|
3324
3328
|
function e(t, r, n, i) {
|
|
@@ -3337,7 +3341,7 @@ var Tn = (
|
|
|
3337
3341
|
}, []);
|
|
3338
3342
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3339
3343
|
}, this.formatToParts = function(l) {
|
|
3340
|
-
return
|
|
3344
|
+
return ae(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3341
3345
|
}, this.resolvedOptions = function() {
|
|
3342
3346
|
var l;
|
|
3343
3347
|
return {
|
|
@@ -3351,12 +3355,12 @@ var Tn = (
|
|
|
3351
3355
|
var u = i || {};
|
|
3352
3356
|
u.formatters;
|
|
3353
3357
|
var a = Lr(u, ["formatters"]);
|
|
3354
|
-
this.ast = e.__parse(t,
|
|
3358
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3355
3359
|
} else
|
|
3356
3360
|
this.ast = t;
|
|
3357
3361
|
if (!Array.isArray(this.ast))
|
|
3358
3362
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3359
|
-
this.formats =
|
|
3363
|
+
this.formats = Hn(e.formats, n), this.formatters = i && i.formatters || Tn(this.formatterCache);
|
|
3360
3364
|
}
|
|
3361
3365
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3362
3366
|
get: function() {
|
|
@@ -3369,7 +3373,7 @@ var Tn = (
|
|
|
3369
3373
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3370
3374
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3371
3375
|
}
|
|
3372
|
-
}, e.__parse =
|
|
3376
|
+
}, e.__parse = gn, e.formats = {
|
|
3373
3377
|
number: {
|
|
3374
3378
|
integer: {
|
|
3375
3379
|
maximumFractionDigits: 0
|
|
@@ -3430,7 +3434,7 @@ var Tn = (
|
|
|
3430
3434
|
}, e;
|
|
3431
3435
|
}()
|
|
3432
3436
|
);
|
|
3433
|
-
function
|
|
3437
|
+
function Sn(e, t) {
|
|
3434
3438
|
if (t == null)
|
|
3435
3439
|
return;
|
|
3436
3440
|
if (t in e)
|
|
@@ -3451,36 +3455,36 @@ function Pn(e, t) {
|
|
|
3451
3455
|
n = void 0;
|
|
3452
3456
|
return n;
|
|
3453
3457
|
}
|
|
3454
|
-
const
|
|
3458
|
+
const N = {}, Bn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Mt = (e, t) => {
|
|
3455
3459
|
if (t == null)
|
|
3456
3460
|
return;
|
|
3457
|
-
if (t in
|
|
3458
|
-
return
|
|
3459
|
-
const r =
|
|
3461
|
+
if (t in N && e in N[t])
|
|
3462
|
+
return N[t][e];
|
|
3463
|
+
const r = be(t);
|
|
3460
3464
|
for (let n = 0; n < r.length; n++) {
|
|
3461
|
-
const i = r[n], s =
|
|
3465
|
+
const i = r[n], s = Nn(i, e);
|
|
3462
3466
|
if (s)
|
|
3463
3467
|
return Bn(e, t, s);
|
|
3464
3468
|
}
|
|
3465
3469
|
};
|
|
3466
3470
|
let De;
|
|
3467
|
-
const
|
|
3468
|
-
function
|
|
3471
|
+
const re = pe({});
|
|
3472
|
+
function An(e) {
|
|
3469
3473
|
return De[e] || null;
|
|
3470
3474
|
}
|
|
3471
3475
|
function Ct(e) {
|
|
3472
3476
|
return e in De;
|
|
3473
3477
|
}
|
|
3474
|
-
function
|
|
3478
|
+
function Nn(e, t) {
|
|
3475
3479
|
if (!Ct(e))
|
|
3476
3480
|
return null;
|
|
3477
|
-
const r =
|
|
3478
|
-
return
|
|
3481
|
+
const r = An(e);
|
|
3482
|
+
return Sn(r, t);
|
|
3479
3483
|
}
|
|
3480
|
-
function
|
|
3484
|
+
function wn(e) {
|
|
3481
3485
|
if (e == null)
|
|
3482
3486
|
return;
|
|
3483
|
-
const t =
|
|
3487
|
+
const t = be(e);
|
|
3484
3488
|
for (let r = 0; r < t.length; r++) {
|
|
3485
3489
|
const n = t[r];
|
|
3486
3490
|
if (Ct(n))
|
|
@@ -3488,55 +3492,55 @@ function Nn(e) {
|
|
|
3488
3492
|
}
|
|
3489
3493
|
}
|
|
3490
3494
|
function Rt(e, ...t) {
|
|
3491
|
-
delete
|
|
3495
|
+
delete N[e], re.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
|
|
3492
3496
|
}
|
|
3493
|
-
|
|
3494
|
-
[
|
|
3497
|
+
k(
|
|
3498
|
+
[re],
|
|
3495
3499
|
([e]) => Object.keys(e)
|
|
3496
3500
|
);
|
|
3497
|
-
|
|
3498
|
-
const
|
|
3499
|
-
function
|
|
3500
|
-
|
|
3501
|
+
re.subscribe((e) => De = e);
|
|
3502
|
+
const ue = {};
|
|
3503
|
+
function On(e, t) {
|
|
3504
|
+
ue[e].delete(t), ue[e].size === 0 && delete ue[e];
|
|
3501
3505
|
}
|
|
3502
3506
|
function Ut(e) {
|
|
3503
|
-
return
|
|
3507
|
+
return ue[e];
|
|
3504
3508
|
}
|
|
3505
|
-
function
|
|
3506
|
-
return
|
|
3509
|
+
function In(e) {
|
|
3510
|
+
return be(e).map((t) => {
|
|
3507
3511
|
const r = Ut(t);
|
|
3508
3512
|
return [t, r ? [...r] : []];
|
|
3509
3513
|
}).filter(([, t]) => t.length > 0);
|
|
3510
3514
|
}
|
|
3511
|
-
function
|
|
3512
|
-
return e == null ? !1 :
|
|
3515
|
+
function Ce(e) {
|
|
3516
|
+
return e == null ? !1 : be(e).some(
|
|
3513
3517
|
(t) => {
|
|
3514
3518
|
var r;
|
|
3515
3519
|
return (r = Ut(t)) == null ? void 0 : r.size;
|
|
3516
3520
|
}
|
|
3517
3521
|
);
|
|
3518
3522
|
}
|
|
3519
|
-
function
|
|
3523
|
+
function Ln(e, t) {
|
|
3520
3524
|
return Promise.all(
|
|
3521
|
-
t.map((n) => (
|
|
3525
|
+
t.map((n) => (On(e, n), n().then((i) => i.default || i)))
|
|
3522
3526
|
).then((n) => Rt(e, ...n));
|
|
3523
3527
|
}
|
|
3524
3528
|
const Z = {};
|
|
3525
3529
|
function Dt(e) {
|
|
3526
|
-
if (
|
|
3530
|
+
if (!Ce(e))
|
|
3527
3531
|
return e in Z ? Z[e] : Promise.resolve();
|
|
3528
|
-
const t =
|
|
3532
|
+
const t = In(e);
|
|
3529
3533
|
return Z[e] = Promise.all(
|
|
3530
3534
|
t.map(
|
|
3531
|
-
([r, n]) =>
|
|
3535
|
+
([r, n]) => Ln(r, n)
|
|
3532
3536
|
)
|
|
3533
3537
|
).then(() => {
|
|
3534
|
-
if (
|
|
3538
|
+
if (Ce(e))
|
|
3535
3539
|
return Dt(e);
|
|
3536
3540
|
delete Z[e];
|
|
3537
3541
|
}), Z[e];
|
|
3538
3542
|
}
|
|
3539
|
-
const
|
|
3543
|
+
const $n = {
|
|
3540
3544
|
number: {
|
|
3541
3545
|
scientific: { notation: "scientific" },
|
|
3542
3546
|
engineering: { notation: "engineering" },
|
|
@@ -3565,141 +3569,141 @@ const Ln = {
|
|
|
3565
3569
|
timeZoneName: "short"
|
|
3566
3570
|
}
|
|
3567
3571
|
}
|
|
3568
|
-
},
|
|
3572
|
+
}, Mn = {
|
|
3569
3573
|
fallbackLocale: null,
|
|
3570
3574
|
loadingDelay: 200,
|
|
3571
|
-
formats:
|
|
3575
|
+
formats: $n,
|
|
3572
3576
|
warnOnMissingMessages: !0,
|
|
3573
3577
|
handleMissingMessage: void 0,
|
|
3574
3578
|
ignoreTag: !0
|
|
3575
|
-
},
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3579
|
+
}, Cn = Mn;
|
|
3580
|
+
function z() {
|
|
3581
|
+
return Cn;
|
|
3578
3582
|
}
|
|
3579
|
-
const
|
|
3580
|
-
var
|
|
3583
|
+
const Pe = pe(!1);
|
|
3584
|
+
var Rn = Object.defineProperty, Un = Object.defineProperties, Dn = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Gn = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zn = (e, t) => {
|
|
3581
3585
|
for (var r in t || (t = {}))
|
|
3582
|
-
|
|
3586
|
+
Gn.call(t, r) && st(e, r, t[r]);
|
|
3583
3587
|
if (it)
|
|
3584
3588
|
for (var r of it(t))
|
|
3585
|
-
|
|
3589
|
+
Fn.call(t, r) && st(e, r, t[r]);
|
|
3586
3590
|
return e;
|
|
3587
|
-
},
|
|
3588
|
-
let
|
|
3589
|
-
const
|
|
3591
|
+
}, jn = (e, t) => Un(e, Dn(t));
|
|
3592
|
+
let Re;
|
|
3593
|
+
const fe = pe(null);
|
|
3590
3594
|
function ot(e) {
|
|
3591
3595
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3592
3596
|
}
|
|
3593
|
-
function
|
|
3597
|
+
function be(e, t = z().fallbackLocale) {
|
|
3594
3598
|
const r = ot(e);
|
|
3595
3599
|
return t ? [.../* @__PURE__ */ new Set([...r, ...ot(t)])] : r;
|
|
3596
3600
|
}
|
|
3597
|
-
function
|
|
3598
|
-
return
|
|
3601
|
+
function L() {
|
|
3602
|
+
return Re != null ? Re : void 0;
|
|
3599
3603
|
}
|
|
3600
|
-
|
|
3601
|
-
|
|
3604
|
+
fe.subscribe((e) => {
|
|
3605
|
+
Re = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3602
3606
|
});
|
|
3603
|
-
const
|
|
3604
|
-
if (e &&
|
|
3605
|
-
const { loadingDelay: t } =
|
|
3607
|
+
const kn = (e) => {
|
|
3608
|
+
if (e && wn(e) && Ce(e)) {
|
|
3609
|
+
const { loadingDelay: t } = z();
|
|
3606
3610
|
let r;
|
|
3607
|
-
return typeof window != "undefined" &&
|
|
3608
|
-
() =>
|
|
3611
|
+
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3612
|
+
() => Pe.set(!0),
|
|
3609
3613
|
t
|
|
3610
|
-
) :
|
|
3611
|
-
|
|
3614
|
+
) : Pe.set(!0), Dt(e).then(() => {
|
|
3615
|
+
fe.set(e);
|
|
3612
3616
|
}).finally(() => {
|
|
3613
|
-
clearTimeout(r),
|
|
3617
|
+
clearTimeout(r), Pe.set(!1);
|
|
3614
3618
|
});
|
|
3615
3619
|
}
|
|
3616
|
-
return
|
|
3617
|
-
},
|
|
3618
|
-
set:
|
|
3619
|
-
}),
|
|
3620
|
+
return fe.set(e);
|
|
3621
|
+
}, ne = jn(zn({}, fe), {
|
|
3622
|
+
set: kn
|
|
3623
|
+
}), ge = (e) => {
|
|
3620
3624
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3621
3625
|
return (n) => {
|
|
3622
3626
|
const i = JSON.stringify(n);
|
|
3623
3627
|
return i in t ? t[i] : t[i] = e(n);
|
|
3624
3628
|
};
|
|
3625
3629
|
};
|
|
3626
|
-
var
|
|
3630
|
+
var Vn = Object.defineProperty, ce = Object.getOwnPropertySymbols, Gt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
|
3627
3631
|
for (var r in t || (t = {}))
|
|
3628
3632
|
Gt.call(t, r) && at(e, r, t[r]);
|
|
3629
|
-
if (
|
|
3630
|
-
for (var r of
|
|
3633
|
+
if (ce)
|
|
3634
|
+
for (var r of ce(t))
|
|
3631
3635
|
Ft.call(t, r) && at(e, r, t[r]);
|
|
3632
3636
|
return e;
|
|
3633
|
-
},
|
|
3637
|
+
}, V = (e, t) => {
|
|
3634
3638
|
var r = {};
|
|
3635
3639
|
for (var n in e)
|
|
3636
3640
|
Gt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3637
|
-
if (e != null &&
|
|
3638
|
-
for (var n of
|
|
3641
|
+
if (e != null && ce)
|
|
3642
|
+
for (var n of ce(e))
|
|
3639
3643
|
t.indexOf(n) < 0 && Ft.call(e, n) && (r[n] = e[n]);
|
|
3640
3644
|
return r;
|
|
3641
3645
|
};
|
|
3642
|
-
const
|
|
3643
|
-
const { formats: r } =
|
|
3646
|
+
const K = (e, t) => {
|
|
3647
|
+
const { formats: r } = z();
|
|
3644
3648
|
if (e in r && t in r[e])
|
|
3645
3649
|
return r[e][t];
|
|
3646
3650
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3647
|
-
},
|
|
3651
|
+
}, Xn = ge(
|
|
3648
3652
|
(e) => {
|
|
3649
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3653
|
+
var t = e, { locale: r, format: n } = t, i = V(t, ["locale", "format"]);
|
|
3650
3654
|
if (r == null)
|
|
3651
3655
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3652
|
-
return n && (i =
|
|
3656
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3653
3657
|
}
|
|
3654
|
-
),
|
|
3658
|
+
), Wn = ge(
|
|
3655
3659
|
(e) => {
|
|
3656
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3660
|
+
var t = e, { locale: r, format: n } = t, i = V(t, ["locale", "format"]);
|
|
3657
3661
|
if (r == null)
|
|
3658
3662
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3659
|
-
return n ? i =
|
|
3663
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3660
3664
|
}
|
|
3661
|
-
), Zn =
|
|
3665
|
+
), Zn = ge(
|
|
3662
3666
|
(e) => {
|
|
3663
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3667
|
+
var t = e, { locale: r, format: n } = t, i = V(t, ["locale", "format"]);
|
|
3664
3668
|
if (r == null)
|
|
3665
3669
|
throw new Error(
|
|
3666
3670
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3667
3671
|
);
|
|
3668
|
-
return n ? i =
|
|
3672
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3669
3673
|
}
|
|
3670
|
-
),
|
|
3674
|
+
), Qn = (e = {}) => {
|
|
3671
3675
|
var t = e, {
|
|
3672
|
-
locale: r =
|
|
3673
|
-
} = t, n =
|
|
3676
|
+
locale: r = L()
|
|
3677
|
+
} = t, n = V(t, [
|
|
3674
3678
|
"locale"
|
|
3675
3679
|
]);
|
|
3676
|
-
return
|
|
3677
|
-
},
|
|
3680
|
+
return Xn(Ge({ locale: r }, n));
|
|
3681
|
+
}, Jn = (e = {}) => {
|
|
3678
3682
|
var t = e, {
|
|
3679
|
-
locale: r =
|
|
3680
|
-
} = t, n =
|
|
3683
|
+
locale: r = L()
|
|
3684
|
+
} = t, n = V(t, [
|
|
3681
3685
|
"locale"
|
|
3682
3686
|
]);
|
|
3683
|
-
return
|
|
3684
|
-
},
|
|
3687
|
+
return Wn(Ge({ locale: r }, n));
|
|
3688
|
+
}, qn = (e = {}) => {
|
|
3685
3689
|
var t = e, {
|
|
3686
|
-
locale: r =
|
|
3687
|
-
} = t, n =
|
|
3690
|
+
locale: r = L()
|
|
3691
|
+
} = t, n = V(t, [
|
|
3688
3692
|
"locale"
|
|
3689
3693
|
]);
|
|
3690
3694
|
return Zn(Ge({ locale: r }, n));
|
|
3691
|
-
},
|
|
3695
|
+
}, Yn = ge(
|
|
3692
3696
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3693
|
-
(e, t =
|
|
3694
|
-
ignoreTag:
|
|
3697
|
+
(e, t = L()) => new Pn(e, t, z().formats, {
|
|
3698
|
+
ignoreTag: z().ignoreTag
|
|
3695
3699
|
})
|
|
3696
|
-
),
|
|
3700
|
+
), Kn = (e, t = {}) => {
|
|
3697
3701
|
var r, n, i, s;
|
|
3698
3702
|
let u = t;
|
|
3699
3703
|
typeof e == "object" && (u = e, e = u.id);
|
|
3700
3704
|
const {
|
|
3701
3705
|
values: a,
|
|
3702
|
-
locale: l =
|
|
3706
|
+
locale: l = L(),
|
|
3703
3707
|
default: o
|
|
3704
3708
|
} = u;
|
|
3705
3709
|
if (l == null)
|
|
@@ -3708,7 +3712,7 @@ const Y = (e, t) => {
|
|
|
3708
3712
|
);
|
|
3709
3713
|
let h = Mt(e, l);
|
|
3710
3714
|
if (!h)
|
|
3711
|
-
h = (s = (i = (n = (r =
|
|
3715
|
+
h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3712
3716
|
else if (typeof h != "string")
|
|
3713
3717
|
return console.warn(
|
|
3714
3718
|
`[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.`
|
|
@@ -3717,7 +3721,7 @@ const Y = (e, t) => {
|
|
|
3717
3721
|
return h;
|
|
3718
3722
|
let f = h;
|
|
3719
3723
|
try {
|
|
3720
|
-
f =
|
|
3724
|
+
f = Yn(h, l).format(a);
|
|
3721
3725
|
} catch (c) {
|
|
3722
3726
|
c instanceof Error && console.warn(
|
|
3723
3727
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3725,11 +3729,11 @@ const Y = (e, t) => {
|
|
|
3725
3729
|
);
|
|
3726
3730
|
}
|
|
3727
3731
|
return f;
|
|
3728
|
-
},
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3732
|
+
}, ei = (e, t) => qn(t).format(e), ti = (e, t) => Jn(t).format(e), ri = (e, t) => Qn(t).format(e), ni = (e, t = L()) => Mt(e, t), ii = k([ne, re], () => Kn);
|
|
3733
|
+
k([ne], () => ei);
|
|
3734
|
+
k([ne], () => ti);
|
|
3735
|
+
k([ne], () => ri);
|
|
3736
|
+
k([ne, re], () => ni);
|
|
3733
3737
|
function ut(e, t) {
|
|
3734
3738
|
Rt(e, t);
|
|
3735
3739
|
}
|
|
@@ -3790,13 +3794,13 @@ const ht = {
|
|
|
3790
3794
|
place: "place"
|
|
3791
3795
|
}
|
|
3792
3796
|
};
|
|
3793
|
-
function
|
|
3797
|
+
function si(e, t) {
|
|
3794
3798
|
if (e) {
|
|
3795
3799
|
const r = document.createElement("style");
|
|
3796
3800
|
r.innerHTML = t, e.appendChild(r);
|
|
3797
3801
|
}
|
|
3798
3802
|
}
|
|
3799
|
-
function
|
|
3803
|
+
function oi(e, t) {
|
|
3800
3804
|
if (!e || !t)
|
|
3801
3805
|
return;
|
|
3802
3806
|
const r = new URL(t);
|
|
@@ -3807,7 +3811,7 @@ function si(e, t) {
|
|
|
3807
3811
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3808
3812
|
});
|
|
3809
3813
|
}
|
|
3810
|
-
function
|
|
3814
|
+
function ai(e, t, r) {
|
|
3811
3815
|
if (window.emMessageBus) {
|
|
3812
3816
|
const n = document.createElement("style");
|
|
3813
3817
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3815,7 +3819,7 @@ function oi(e, t, r) {
|
|
|
3815
3819
|
});
|
|
3816
3820
|
}
|
|
3817
3821
|
}
|
|
3818
|
-
function
|
|
3822
|
+
function ui(e) {
|
|
3819
3823
|
Qt(e, "svelte-1bsrm1d", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}");
|
|
3820
3824
|
}
|
|
3821
3825
|
function lt(e, t, r) {
|
|
@@ -3823,22 +3827,22 @@ function lt(e, t, r) {
|
|
|
3823
3827
|
return n[12] = t[r], n[14] = r, n;
|
|
3824
3828
|
}
|
|
3825
3829
|
function ft(e) {
|
|
3826
|
-
let t, r =
|
|
3830
|
+
let t, r = Ze(
|
|
3827
3831
|
/*prizes*/
|
|
3828
3832
|
e[1]
|
|
3829
3833
|
), n = [];
|
|
3830
3834
|
for (let s = 0; s < r.length; s += 1)
|
|
3831
|
-
n[s] =
|
|
3835
|
+
n[s] = pt(lt(e, r, s));
|
|
3832
3836
|
let i = null;
|
|
3833
3837
|
return r.length || (i = ct(e)), {
|
|
3834
3838
|
c() {
|
|
3835
3839
|
t = P("div");
|
|
3836
3840
|
for (let s = 0; s < n.length; s += 1)
|
|
3837
3841
|
n[s].c();
|
|
3838
|
-
i && i.c(),
|
|
3842
|
+
i && i.c(), x(t, "class", "Prizes"), x(t, "part", "Prizes");
|
|
3839
3843
|
},
|
|
3840
3844
|
m(s, u) {
|
|
3841
|
-
|
|
3845
|
+
te(s, t, u);
|
|
3842
3846
|
for (let a = 0; a < n.length; a += 1)
|
|
3843
3847
|
n[a] && n[a].m(t, null);
|
|
3844
3848
|
i && i.m(t, null);
|
|
@@ -3846,14 +3850,14 @@ function ft(e) {
|
|
|
3846
3850
|
p(s, u) {
|
|
3847
3851
|
if (u & /*prizes, $_*/
|
|
3848
3852
|
6) {
|
|
3849
|
-
r =
|
|
3853
|
+
r = Ze(
|
|
3850
3854
|
/*prizes*/
|
|
3851
3855
|
s[1]
|
|
3852
3856
|
);
|
|
3853
3857
|
let a;
|
|
3854
3858
|
for (a = 0; a < r.length; a += 1) {
|
|
3855
3859
|
const l = lt(s, r, a);
|
|
3856
|
-
n[a] ? n[a].p(l, u) : (n[a] =
|
|
3860
|
+
n[a] ? n[a].p(l, u) : (n[a] = pt(l), n[a].c(), n[a].m(t, null));
|
|
3857
3861
|
}
|
|
3858
3862
|
for (; a < n.length; a += 1)
|
|
3859
3863
|
n[a].d(1);
|
|
@@ -3861,7 +3865,7 @@ function ft(e) {
|
|
|
3861
3865
|
}
|
|
3862
3866
|
},
|
|
3863
3867
|
d(s) {
|
|
3864
|
-
s &&
|
|
3868
|
+
s && j(t), Yt(n, s), i && i.d();
|
|
3865
3869
|
}
|
|
3866
3870
|
};
|
|
3867
3871
|
}
|
|
@@ -3872,22 +3876,22 @@ function ct(e) {
|
|
|
3872
3876
|
), n;
|
|
3873
3877
|
return {
|
|
3874
3878
|
c() {
|
|
3875
|
-
t = P("p"), n =
|
|
3879
|
+
t = P("p"), n = I(r);
|
|
3876
3880
|
},
|
|
3877
3881
|
m(i, s) {
|
|
3878
|
-
|
|
3882
|
+
te(i, t, s), v(t, n);
|
|
3879
3883
|
},
|
|
3880
3884
|
p(i, s) {
|
|
3881
3885
|
s & /*$_*/
|
|
3882
3886
|
4 && r !== (r = /*$_*/
|
|
3883
|
-
i[2]("noprizes") + "") &&
|
|
3887
|
+
i[2]("noprizes") + "") && Q(n, r);
|
|
3884
3888
|
},
|
|
3885
3889
|
d(i) {
|
|
3886
|
-
i &&
|
|
3890
|
+
i && j(t);
|
|
3887
3891
|
}
|
|
3888
3892
|
};
|
|
3889
3893
|
}
|
|
3890
|
-
function
|
|
3894
|
+
function pt(e) {
|
|
3891
3895
|
let t, r, n, i = (
|
|
3892
3896
|
/*prize*/
|
|
3893
3897
|
(e[12].count > 1 ? `${/*prize*/
|
|
@@ -3906,34 +3910,34 @@ function mt(e) {
|
|
|
3906
3910
|
), f, c;
|
|
3907
3911
|
return {
|
|
3908
3912
|
c() {
|
|
3909
|
-
t = P("div"), r = P("p"), n = P("span"), s =
|
|
3910
|
-
e[14]),
|
|
3913
|
+
t = P("div"), r = P("p"), n = P("span"), s = I(i), u = he(), l = I(a), o = I(": "), f = I(h), c = he(), x(n, "class", "PrizeRank"), x(n, "part", "PrizeRank"), x(r, "class", "PrizeText"), x(r, "part", "PrizeText"), x(t, "class", "Prize Prize" + /*index*/
|
|
3914
|
+
e[14]), x(t, "part", "Prize Prize" + /*index*/
|
|
3911
3915
|
e[14]);
|
|
3912
3916
|
},
|
|
3913
|
-
m(
|
|
3914
|
-
|
|
3917
|
+
m(m, p) {
|
|
3918
|
+
te(m, t, p), v(t, r), v(r, n), v(n, s), v(r, u), v(r, l), v(r, o), v(r, f), v(t, c);
|
|
3915
3919
|
},
|
|
3916
|
-
p(
|
|
3917
|
-
|
|
3920
|
+
p(m, p) {
|
|
3921
|
+
p & /*prizes*/
|
|
3918
3922
|
2 && i !== (i = /*prize*/
|
|
3919
|
-
(
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
+
(m[12].count > 1 ? `${/*prize*/
|
|
3924
|
+
m[12].rank}~${/*prize*/
|
|
3925
|
+
m[12].rank + /*prize*/
|
|
3926
|
+
m[12].count - 1}` : (
|
|
3923
3927
|
/*prize*/
|
|
3924
|
-
|
|
3925
|
-
)) + "") &&
|
|
3928
|
+
m[12].rank
|
|
3929
|
+
)) + "") && Q(s, i), p & /*$_*/
|
|
3926
3930
|
4 && a !== (a = /*$_*/
|
|
3927
|
-
|
|
3931
|
+
m[2]("place") + "") && Q(l, a), p & /*prizes*/
|
|
3928
3932
|
2 && h !== (h = /*prize*/
|
|
3929
|
-
|
|
3933
|
+
m[12].name + "") && Q(f, h);
|
|
3930
3934
|
},
|
|
3931
|
-
d(
|
|
3932
|
-
|
|
3935
|
+
d(m) {
|
|
3936
|
+
m && j(t);
|
|
3933
3937
|
}
|
|
3934
3938
|
};
|
|
3935
3939
|
}
|
|
3936
|
-
function
|
|
3940
|
+
function hi(e) {
|
|
3937
3941
|
let t, r, n, i, s, u = (
|
|
3938
3942
|
/*$_*/
|
|
3939
3943
|
e[2]("prizes") + ""
|
|
@@ -3943,58 +3947,58 @@ function ui(e) {
|
|
|
3943
3947
|
);
|
|
3944
3948
|
return {
|
|
3945
3949
|
c() {
|
|
3946
|
-
t = P("div"), r = P("div"), n = P("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', i =
|
|
3950
|
+
t = P("div"), r = P("div"), n = P("span"), n.innerHTML = '<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>', i = he(), s = P("p"), a = I(u), l = he(), o && o.c(), x(n, "class", "TournamentPrizesIconWrapper"), x(n, "part", "TournamentPrizesIconWrapper"), x(s, "class", "PrizesTitle"), x(s, "part", "PrizesTitle"), x(r, "class", "TournamentPrizesIconSection"), x(r, "part", "TournamentPrizesIconSection"), x(t, "class", "TournamentPrizes"), x(t, "part", "TournamentPrizes");
|
|
3947
3951
|
},
|
|
3948
3952
|
m(h, f) {
|
|
3949
|
-
|
|
3953
|
+
te(h, t, f), v(t, r), v(r, n), v(r, i), v(r, s), v(s, a), v(t, l), o && o.m(t, null), e[8](t);
|
|
3950
3954
|
},
|
|
3951
3955
|
p(h, [f]) {
|
|
3952
3956
|
f & /*$_*/
|
|
3953
3957
|
4 && u !== (u = /*$_*/
|
|
3954
|
-
h[2]("prizes") + "") &&
|
|
3958
|
+
h[2]("prizes") + "") && Q(a, u), /*prizes*/
|
|
3955
3959
|
h[1] ? o ? o.p(h, f) : (o = ft(h), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
|
|
3956
3960
|
},
|
|
3957
|
-
i:
|
|
3958
|
-
o:
|
|
3961
|
+
i: S,
|
|
3962
|
+
o: S,
|
|
3959
3963
|
d(h) {
|
|
3960
|
-
h &&
|
|
3964
|
+
h && j(t), o && o.d(), e[8](null);
|
|
3961
3965
|
}
|
|
3962
3966
|
};
|
|
3963
3967
|
}
|
|
3964
|
-
function
|
|
3968
|
+
function li(e, t, r) {
|
|
3965
3969
|
let n;
|
|
3966
|
-
|
|
3970
|
+
Zt(e, ii, (p) => r(2, n = p));
|
|
3967
3971
|
let { tourid: i = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: a = "" } = t, { mbsource: l } = t, o, h;
|
|
3968
3972
|
const f = () => {
|
|
3969
|
-
fetch(a).then((
|
|
3970
|
-
Object.keys(
|
|
3971
|
-
ut(H,
|
|
3973
|
+
fetch(a).then((y) => y.json()).then((y) => {
|
|
3974
|
+
Object.keys(y).forEach((H) => {
|
|
3975
|
+
ut(H, y[H]);
|
|
3972
3976
|
});
|
|
3973
|
-
}).catch((
|
|
3974
|
-
console.log(
|
|
3977
|
+
}).catch((y) => {
|
|
3978
|
+
console.log(y);
|
|
3975
3979
|
});
|
|
3976
3980
|
};
|
|
3977
|
-
Object.keys(ht).forEach((
|
|
3978
|
-
ut(
|
|
3981
|
+
Object.keys(ht).forEach((p) => {
|
|
3982
|
+
ut(p, ht[p]);
|
|
3979
3983
|
});
|
|
3980
|
-
const c = (
|
|
3981
|
-
|
|
3984
|
+
const c = (p) => {
|
|
3985
|
+
p.data && p.data.type == `TournamentPrizes_${i}` && r(1, h = p.data.prizes);
|
|
3982
3986
|
};
|
|
3983
3987
|
rr(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", c, !1), () => {
|
|
3984
3988
|
window.removeEventListener("message", c);
|
|
3985
3989
|
}));
|
|
3986
|
-
function p
|
|
3987
|
-
|
|
3988
|
-
o =
|
|
3990
|
+
function m(p) {
|
|
3991
|
+
Se[p ? "unshift" : "push"](() => {
|
|
3992
|
+
o = p, r(0, o);
|
|
3989
3993
|
});
|
|
3990
3994
|
}
|
|
3991
|
-
return e.$$set = (
|
|
3992
|
-
"tourid" in
|
|
3995
|
+
return e.$$set = (p) => {
|
|
3996
|
+
"tourid" in p && r(3, i = p.tourid), "clientstyling" in p && r(4, s = p.clientstyling), "clientstylingurl" in p && r(5, u = p.clientstylingurl), "translationurl" in p && r(6, a = p.translationurl), "mbsource" in p && r(7, l = p.mbsource);
|
|
3993
3997
|
}, e.$$.update = () => {
|
|
3994
3998
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
3995
|
-
17 && s && o &&
|
|
3996
|
-
33 && u && o &&
|
|
3997
|
-
129 && l && o &&
|
|
3999
|
+
17 && s && o && si(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4000
|
+
33 && u && o && oi(o, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4001
|
+
129 && l && o && ai(o, `${l}.Style`), e.$$.dirty & /*translationurl*/
|
|
3998
4002
|
64 && a && f();
|
|
3999
4003
|
}, [
|
|
4000
4004
|
o,
|
|
@@ -4005,16 +4009,16 @@ function hi(e, t, r) {
|
|
|
4005
4009
|
u,
|
|
4006
4010
|
a,
|
|
4007
4011
|
l,
|
|
4008
|
-
|
|
4012
|
+
m
|
|
4009
4013
|
];
|
|
4010
4014
|
}
|
|
4011
|
-
class
|
|
4015
|
+
class fi extends mr {
|
|
4012
4016
|
constructor(t) {
|
|
4013
4017
|
super(), cr(
|
|
4014
4018
|
this,
|
|
4015
4019
|
t,
|
|
4020
|
+
li,
|
|
4016
4021
|
hi,
|
|
4017
|
-
ui,
|
|
4018
4022
|
dt,
|
|
4019
4023
|
{
|
|
4020
4024
|
tourid: 3,
|
|
@@ -4023,41 +4027,41 @@ class li extends pr {
|
|
|
4023
4027
|
translationurl: 6,
|
|
4024
4028
|
mbsource: 7
|
|
4025
4029
|
},
|
|
4026
|
-
|
|
4030
|
+
ui
|
|
4027
4031
|
);
|
|
4028
4032
|
}
|
|
4029
4033
|
get tourid() {
|
|
4030
4034
|
return this.$$.ctx[3];
|
|
4031
4035
|
}
|
|
4032
4036
|
set tourid(t) {
|
|
4033
|
-
this.$$set({ tourid: t }),
|
|
4037
|
+
this.$$set({ tourid: t }), O();
|
|
4034
4038
|
}
|
|
4035
4039
|
get clientstyling() {
|
|
4036
4040
|
return this.$$.ctx[4];
|
|
4037
4041
|
}
|
|
4038
4042
|
set clientstyling(t) {
|
|
4039
|
-
this.$$set({ clientstyling: t }),
|
|
4043
|
+
this.$$set({ clientstyling: t }), O();
|
|
4040
4044
|
}
|
|
4041
4045
|
get clientstylingurl() {
|
|
4042
4046
|
return this.$$.ctx[5];
|
|
4043
4047
|
}
|
|
4044
4048
|
set clientstylingurl(t) {
|
|
4045
|
-
this.$$set({ clientstylingurl: t }),
|
|
4049
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4046
4050
|
}
|
|
4047
4051
|
get translationurl() {
|
|
4048
4052
|
return this.$$.ctx[6];
|
|
4049
4053
|
}
|
|
4050
4054
|
set translationurl(t) {
|
|
4051
|
-
this.$$set({ translationurl: t }),
|
|
4055
|
+
this.$$set({ translationurl: t }), O();
|
|
4052
4056
|
}
|
|
4053
4057
|
get mbsource() {
|
|
4054
4058
|
return this.$$.ctx[7];
|
|
4055
4059
|
}
|
|
4056
4060
|
set mbsource(t) {
|
|
4057
|
-
this.$$set({ mbsource: t }),
|
|
4061
|
+
this.$$set({ mbsource: t }), O();
|
|
4058
4062
|
}
|
|
4059
4063
|
}
|
|
4060
|
-
|
|
4064
|
+
pr(fi, { tourid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4061
4065
|
export {
|
|
4062
|
-
|
|
4066
|
+
fi as default
|
|
4063
4067
|
};
|