@everymatrix/player-email-verification 1.66.2 → 1.67.3
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/{PlayerEmailVerification-B3G-lwsO.js → PlayerEmailVerification-CX5FO4BG.js} +634 -636
- package/components/PlayerEmailVerification-D5UtfOCT.cjs +16 -0
- package/components/{PlayerEmailVerification-Bn4HRwUS.js → PlayerEmailVerification-DDMXxvg7.js} +666 -668
- package/es2015/player-email-verification.cjs +1 -1
- package/es2015/player-email-verification.js +1 -1
- package/esnext/player-email-verification.js +1 -1
- package/package.json +1 -1
- package/components/PlayerEmailVerification-3dmAgEXB.cjs +0 -3
package/components/{PlayerEmailVerification-B3G-lwsO.js → PlayerEmailVerification-CX5FO4BG.js}
RENAMED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Qe(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
6
|
function Ie() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function W(e) {
|
|
10
|
+
e.forEach(Qe);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Te(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Je(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function St(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function qe(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return _;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Bt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(qe(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ye(e, t, r) {
|
|
34
34
|
e.insertBefore(t, r || null);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Se(e) {
|
|
37
37
|
e.parentNode && e.parentNode.removeChild(e);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Ke(e) {
|
|
40
40
|
return document.createElement(e);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function At(e, t, r) {
|
|
43
43
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Pt(e) {
|
|
46
46
|
return Array.from(e.childNodes);
|
|
47
47
|
}
|
|
48
48
|
function Nt(e) {
|
|
@@ -54,85 +54,85 @@ function Nt(e) {
|
|
|
54
54
|
}
|
|
55
55
|
), t;
|
|
56
56
|
}
|
|
57
|
-
let
|
|
58
|
-
function
|
|
59
|
-
|
|
57
|
+
let Be;
|
|
58
|
+
function V(e) {
|
|
59
|
+
Be = e;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
let
|
|
63
|
-
const
|
|
64
|
-
let
|
|
61
|
+
const O = [], we = [];
|
|
62
|
+
let w = [];
|
|
63
|
+
const $e = [], Ot = /* @__PURE__ */ Promise.resolve();
|
|
64
|
+
let me = !1;
|
|
65
65
|
function It() {
|
|
66
|
-
|
|
66
|
+
me || (me = !0, Ot.then(I));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
68
|
+
function de(e) {
|
|
69
|
+
w.push(e);
|
|
70
70
|
}
|
|
71
|
-
const
|
|
72
|
-
let
|
|
71
|
+
const oe = /* @__PURE__ */ new Set();
|
|
72
|
+
let P = 0;
|
|
73
73
|
function I() {
|
|
74
|
-
if (
|
|
74
|
+
if (P !== 0)
|
|
75
75
|
return;
|
|
76
|
-
const e =
|
|
76
|
+
const e = Be;
|
|
77
77
|
do {
|
|
78
78
|
try {
|
|
79
|
-
for (;
|
|
80
|
-
const t =
|
|
81
|
-
|
|
79
|
+
for (; P < O.length; ) {
|
|
80
|
+
const t = O[P];
|
|
81
|
+
P++, V(t), wt(t.$$);
|
|
82
82
|
}
|
|
83
83
|
} catch (t) {
|
|
84
|
-
throw
|
|
84
|
+
throw O.length = 0, P = 0, t;
|
|
85
85
|
}
|
|
86
|
-
for (
|
|
87
|
-
|
|
88
|
-
for (let t = 0; t <
|
|
89
|
-
const r =
|
|
90
|
-
|
|
86
|
+
for (V(null), O.length = 0, P = 0; we.length; )
|
|
87
|
+
we.pop()();
|
|
88
|
+
for (let t = 0; t < w.length; t += 1) {
|
|
89
|
+
const r = w[t];
|
|
90
|
+
oe.has(r) || (oe.add(r), r());
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
} while (
|
|
94
|
-
for (;
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
w.length = 0;
|
|
93
|
+
} while (O.length);
|
|
94
|
+
for (; $e.length; )
|
|
95
|
+
$e.pop()();
|
|
96
|
+
me = !1, oe.clear(), V(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function wt(e) {
|
|
99
99
|
if (e.fragment !== null) {
|
|
100
|
-
e.update(),
|
|
100
|
+
e.update(), W(e.before_update);
|
|
101
101
|
const t = e.dirty;
|
|
102
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
102
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(de);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function $t(e) {
|
|
106
106
|
const t = [], r = [];
|
|
107
|
-
|
|
107
|
+
w.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), w = t;
|
|
108
108
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
111
|
-
e && e.i && (
|
|
109
|
+
const Lt = /* @__PURE__ */ new Set();
|
|
110
|
+
function Mt(e, t) {
|
|
111
|
+
e && e.i && (Lt.delete(e), e.i(t));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ct(e, t, r) {
|
|
114
114
|
const { fragment: n, after_update: i } = e.$$;
|
|
115
|
-
n && n.m(t, r),
|
|
116
|
-
const s = e.$$.on_mount.map(
|
|
117
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
118
|
-
}), i.forEach(
|
|
115
|
+
n && n.m(t, r), de(() => {
|
|
116
|
+
const s = e.$$.on_mount.map(Qe).filter(Te);
|
|
117
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
|
|
118
|
+
}), i.forEach(de);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Rt(e, t) {
|
|
121
121
|
const r = e.$$;
|
|
122
|
-
r.fragment !== null && (
|
|
122
|
+
r.fragment !== null && ($t(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
e.$$.dirty[0] === -1 && (
|
|
124
|
+
function Ut(e, t) {
|
|
125
|
+
e.$$.dirty[0] === -1 && (O.push(e), It(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const f =
|
|
129
|
-
|
|
127
|
+
function Gt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
128
|
+
const f = Be;
|
|
129
|
+
V(e);
|
|
130
130
|
const a = e.$$ = {
|
|
131
131
|
fragment: null,
|
|
132
132
|
ctx: [],
|
|
133
133
|
// state
|
|
134
134
|
props: s,
|
|
135
|
-
update:
|
|
135
|
+
update: _,
|
|
136
136
|
not_equal: i,
|
|
137
137
|
bound: Ie(),
|
|
138
138
|
// lifecycle
|
|
@@ -150,21 +150,21 @@ function Dt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
|
150
150
|
};
|
|
151
151
|
u && u(a.root);
|
|
152
152
|
let h = !1;
|
|
153
|
-
if (a.ctx = r
|
|
154
|
-
const
|
|
155
|
-
return a.ctx && i(a.ctx[l], a.ctx[l] =
|
|
156
|
-
})
|
|
153
|
+
if (a.ctx = r(e, t.props || {}, (l, c, ...b) => {
|
|
154
|
+
const g = b.length ? b[0] : c;
|
|
155
|
+
return a.ctx && i(a.ctx[l], a.ctx[l] = g) && (!a.skip_bound && a.bound[l] && a.bound[l](g), h && Ut(e, l)), c;
|
|
156
|
+
}), a.update(), h = !0, W(a.before_update), a.fragment = n(a.ctx), t.target) {
|
|
157
157
|
if (t.hydrate) {
|
|
158
|
-
const l =
|
|
159
|
-
a.fragment && a.fragment.l(l), l.forEach(
|
|
158
|
+
const l = Pt(t.target);
|
|
159
|
+
a.fragment && a.fragment.l(l), l.forEach(Se);
|
|
160
160
|
} else
|
|
161
161
|
a.fragment && a.fragment.c();
|
|
162
|
-
t.intro &&
|
|
162
|
+
t.intro && Mt(e.$$.fragment), Ct(e, t.target, t.anchor), I();
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
V(f);
|
|
165
165
|
}
|
|
166
|
-
let
|
|
167
|
-
typeof HTMLElement == "function" && (
|
|
166
|
+
let et;
|
|
167
|
+
typeof HTMLElement == "function" && (et = class extends HTMLElement {
|
|
168
168
|
/** The Svelte component constructor */
|
|
169
169
|
$$ctor;
|
|
170
170
|
/** Slots */
|
|
@@ -206,17 +206,17 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
206
206
|
let s;
|
|
207
207
|
return {
|
|
208
208
|
c: function() {
|
|
209
|
-
s =
|
|
209
|
+
s = Ke("slot"), i !== "default" && At(s, "name", i);
|
|
210
210
|
},
|
|
211
211
|
/**
|
|
212
212
|
* @param {HTMLElement} target
|
|
213
213
|
* @param {HTMLElement} [anchor]
|
|
214
214
|
*/
|
|
215
215
|
m: function(f, a) {
|
|
216
|
-
|
|
216
|
+
Ye(f, s, a);
|
|
217
217
|
},
|
|
218
218
|
d: function(f) {
|
|
219
|
-
f &&
|
|
219
|
+
f && Se(s);
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
};
|
|
@@ -228,7 +228,7 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
228
228
|
i in r && (t[i] = [e(i)]);
|
|
229
229
|
for (const i of this.attributes) {
|
|
230
230
|
const s = this.$$g_p(i.name);
|
|
231
|
-
s in this.$$d || (this.$$d[s] =
|
|
231
|
+
s in this.$$d || (this.$$d[s] = J(s, i.value, this.$$p_d, "toProp"));
|
|
232
232
|
}
|
|
233
233
|
for (const i in this.$$p_d)
|
|
234
234
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -246,7 +246,7 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
246
246
|
this.$$r = !0;
|
|
247
247
|
for (const i in this.$$p_d)
|
|
248
248
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
249
|
-
const s =
|
|
249
|
+
const s = J(
|
|
250
250
|
i,
|
|
251
251
|
this.$$d[i],
|
|
252
252
|
this.$$p_d,
|
|
@@ -268,7 +268,7 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
268
268
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
269
269
|
// and setting attributes through setAttribute etc, this is helpful
|
|
270
270
|
attributeChangedCallback(e, t, r) {
|
|
271
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
271
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = J(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
272
272
|
}
|
|
273
273
|
disconnectedCallback() {
|
|
274
274
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -281,7 +281,7 @@ typeof HTMLElement == "function" && (tt = class extends HTMLElement {
|
|
|
281
281
|
) || e;
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
|
-
function
|
|
284
|
+
function J(e, t, r, n) {
|
|
285
285
|
const i = r[e]?.type;
|
|
286
286
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
287
287
|
return t;
|
|
@@ -310,8 +310,8 @@ function q(e, t, r, n) {
|
|
|
310
310
|
return t;
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
let u = class extends
|
|
313
|
+
function Dt(e, t, r, n, i, s) {
|
|
314
|
+
let u = class extends et {
|
|
315
315
|
constructor() {
|
|
316
316
|
super(e, r, i), this.$$p_d = t;
|
|
317
317
|
}
|
|
@@ -327,7 +327,7 @@ function Ft(e, t, r, n, i, s) {
|
|
|
327
327
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
328
328
|
},
|
|
329
329
|
set(f) {
|
|
330
|
-
f =
|
|
330
|
+
f = J(o, f, t), this.$$d[o] = f, this.$$c?.$set({ [o]: f });
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
}), n.forEach((o) => {
|
|
@@ -339,7 +339,7 @@ function Ft(e, t, r, n, i, s) {
|
|
|
339
339
|
}), e.element = /** @type {any} */
|
|
340
340
|
u, u;
|
|
341
341
|
}
|
|
342
|
-
class
|
|
342
|
+
class Ft {
|
|
343
343
|
/**
|
|
344
344
|
* ### PRIVATE API
|
|
345
345
|
*
|
|
@@ -358,7 +358,7 @@ class jt {
|
|
|
358
358
|
$$set = void 0;
|
|
359
359
|
/** @returns {void} */
|
|
360
360
|
$destroy() {
|
|
361
|
-
|
|
361
|
+
Rt(this, 1), this.$destroy = _;
|
|
362
362
|
}
|
|
363
363
|
/**
|
|
364
364
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -367,8 +367,8 @@ class jt {
|
|
|
367
367
|
* @returns {() => void}
|
|
368
368
|
*/
|
|
369
369
|
$on(t, r) {
|
|
370
|
-
if (!
|
|
371
|
-
return
|
|
370
|
+
if (!Te(r))
|
|
371
|
+
return _;
|
|
372
372
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
373
373
|
return n.push(r), () => {
|
|
374
374
|
const i = n.indexOf(r);
|
|
@@ -380,22 +380,22 @@ class jt {
|
|
|
380
380
|
* @returns {void}
|
|
381
381
|
*/
|
|
382
382
|
$set(t) {
|
|
383
|
-
this.$$set && !
|
|
383
|
+
this.$$set && !St(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
const
|
|
387
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
386
|
+
const jt = "4";
|
|
387
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jt);
|
|
388
388
|
const N = [];
|
|
389
|
-
function
|
|
389
|
+
function Vt(e, t) {
|
|
390
390
|
return {
|
|
391
|
-
subscribe:
|
|
391
|
+
subscribe: te(e, t).subscribe
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function te(e, t = _) {
|
|
395
395
|
let r;
|
|
396
396
|
const n = /* @__PURE__ */ new Set();
|
|
397
397
|
function i(o) {
|
|
398
|
-
if (
|
|
398
|
+
if (Je(e, o) && (e = o, r)) {
|
|
399
399
|
const f = !N.length;
|
|
400
400
|
for (const a of n)
|
|
401
401
|
a[1](), N.push(a, e);
|
|
@@ -409,147 +409,161 @@ function ne(e, t = v) {
|
|
|
409
409
|
function s(o) {
|
|
410
410
|
i(o(e));
|
|
411
411
|
}
|
|
412
|
-
function u(o, f =
|
|
412
|
+
function u(o, f = _) {
|
|
413
413
|
const a = [o, f];
|
|
414
|
-
return n.add(a), n.size === 1 && (r = t(i, s) ||
|
|
414
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || _), o(e), () => {
|
|
415
415
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
418
|
return { set: i, update: s, subscribe: u };
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function R(e, t, r) {
|
|
421
421
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
422
422
|
if (!i.every(Boolean))
|
|
423
423
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
424
424
|
const s = t.length < 2;
|
|
425
|
-
return
|
|
425
|
+
return Vt(r, (u, o) => {
|
|
426
426
|
let f = !1;
|
|
427
427
|
const a = [];
|
|
428
|
-
let h = 0, l =
|
|
428
|
+
let h = 0, l = _;
|
|
429
429
|
const c = () => {
|
|
430
430
|
if (h)
|
|
431
431
|
return;
|
|
432
432
|
l();
|
|
433
|
-
const
|
|
434
|
-
s ? u(
|
|
435
|
-
},
|
|
436
|
-
(
|
|
437
|
-
|
|
438
|
-
(
|
|
439
|
-
a[
|
|
433
|
+
const g = t(n ? a[0] : a, u, o);
|
|
434
|
+
s ? u(g) : l = Te(g) ? g : _;
|
|
435
|
+
}, b = i.map(
|
|
436
|
+
(g, y) => qe(
|
|
437
|
+
g,
|
|
438
|
+
(H) => {
|
|
439
|
+
a[y] = H, h &= ~(1 << y), f && c();
|
|
440
440
|
},
|
|
441
441
|
() => {
|
|
442
|
-
h |= 1 <<
|
|
442
|
+
h |= 1 << y;
|
|
443
443
|
}
|
|
444
444
|
)
|
|
445
445
|
);
|
|
446
446
|
return f = !0, c(), function() {
|
|
447
|
-
|
|
447
|
+
W(b), l(), f = !1;
|
|
448
448
|
};
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return e
|
|
451
|
+
function kt(e) {
|
|
452
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
453
453
|
}
|
|
454
|
-
var
|
|
455
|
-
return
|
|
454
|
+
var Xt = function(t) {
|
|
455
|
+
return Wt(t) && !zt(t);
|
|
456
456
|
};
|
|
457
|
-
function
|
|
457
|
+
function Wt(e) {
|
|
458
458
|
return !!e && typeof e == "object";
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function zt(e) {
|
|
461
461
|
var t = Object.prototype.toString.call(e);
|
|
462
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
462
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jt(e);
|
|
463
463
|
}
|
|
464
|
-
var
|
|
465
|
-
function
|
|
466
|
-
return e.$$typeof ===
|
|
464
|
+
var Zt = typeof Symbol == "function" && Symbol.for, Qt = Zt ? Symbol.for("react.element") : 60103;
|
|
465
|
+
function Jt(e) {
|
|
466
|
+
return e.$$typeof === Qt;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function qt(e) {
|
|
469
469
|
return Array.isArray(e) ? [] : {};
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
471
|
+
function k(e, t) {
|
|
472
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $(qt(e), e, t) : e;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Yt(e, t, r) {
|
|
475
475
|
return e.concat(t).map(function(n) {
|
|
476
|
-
return
|
|
476
|
+
return k(n, r);
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Kt(e, t) {
|
|
480
480
|
if (!t.customMerge)
|
|
481
|
-
return
|
|
481
|
+
return $;
|
|
482
482
|
var r = t.customMerge(e);
|
|
483
|
-
return typeof r == "function" ? r :
|
|
483
|
+
return typeof r == "function" ? r : $;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function er(e) {
|
|
486
486
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
487
487
|
return Object.propertyIsEnumerable.call(e, t);
|
|
488
488
|
}) : [];
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return Object.keys(e).concat(
|
|
490
|
+
function Le(e) {
|
|
491
|
+
return Object.keys(e).concat(er(e));
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function tt(e, t) {
|
|
494
494
|
try {
|
|
495
495
|
return t in e;
|
|
496
496
|
} catch {
|
|
497
497
|
return !1;
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
return
|
|
500
|
+
function tr(e, t) {
|
|
501
|
+
return tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function rr(e, t, r) {
|
|
504
504
|
var n = {};
|
|
505
|
-
return r.isMergeableObject(e) &&
|
|
506
|
-
n[i] =
|
|
507
|
-
}),
|
|
508
|
-
|
|
505
|
+
return r.isMergeableObject(e) && Le(e).forEach(function(i) {
|
|
506
|
+
n[i] = k(e[i], r);
|
|
507
|
+
}), Le(t).forEach(function(i) {
|
|
508
|
+
tr(e, i) || (tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kt(i, r)(e[i], t[i], r) : n[i] = k(t[i], r));
|
|
509
509
|
}), n;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
512
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
511
|
+
function $(e, t, r) {
|
|
512
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yt, r.isMergeableObject = r.isMergeableObject || Xt, r.cloneUnlessOtherwiseSpecified = k;
|
|
513
513
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
514
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
514
|
+
return s ? n ? r.arrayMerge(e, t, r) : rr(e, t, r) : k(t, r);
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
$.all = function(t, r) {
|
|
517
517
|
if (!Array.isArray(t))
|
|
518
518
|
throw new Error("first argument should be an array");
|
|
519
519
|
return t.reduce(function(n, i) {
|
|
520
|
-
return
|
|
520
|
+
return $(n, i, r);
|
|
521
521
|
}, {});
|
|
522
522
|
};
|
|
523
|
-
var
|
|
524
|
-
const
|
|
525
|
-
|
|
526
|
-
|
|
523
|
+
var nr = $, ir = nr;
|
|
524
|
+
const sr = /* @__PURE__ */ kt(ir);
|
|
525
|
+
/*! *****************************************************************************
|
|
526
|
+
Copyright (c) Microsoft Corporation.
|
|
527
|
+
|
|
528
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
529
|
+
purpose with or without fee is hereby granted.
|
|
530
|
+
|
|
531
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
532
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
533
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
534
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
535
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
536
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
537
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
538
|
+
***************************************************************************** */
|
|
539
|
+
var pe = function(e, t) {
|
|
540
|
+
return pe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
527
541
|
r.__proto__ = n;
|
|
528
542
|
} || function(r, n) {
|
|
529
543
|
for (var i in n)
|
|
530
544
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
531
|
-
},
|
|
545
|
+
}, pe(e, t);
|
|
532
546
|
};
|
|
533
|
-
function
|
|
547
|
+
function re(e, t) {
|
|
534
548
|
if (typeof t != "function" && t !== null)
|
|
535
549
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
536
|
-
|
|
550
|
+
pe(e, t);
|
|
537
551
|
function r() {
|
|
538
552
|
this.constructor = e;
|
|
539
553
|
}
|
|
540
554
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
541
555
|
}
|
|
542
|
-
var
|
|
543
|
-
return
|
|
556
|
+
var p = function() {
|
|
557
|
+
return p = Object.assign || function(t) {
|
|
544
558
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
545
559
|
r = arguments[n];
|
|
546
560
|
for (var s in r)
|
|
547
561
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
548
562
|
}
|
|
549
563
|
return t;
|
|
550
|
-
},
|
|
564
|
+
}, p.apply(this, arguments);
|
|
551
565
|
};
|
|
552
|
-
function
|
|
566
|
+
function or(e, t) {
|
|
553
567
|
var r = {};
|
|
554
568
|
for (var n in e)
|
|
555
569
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -558,43 +572,46 @@ function ar(e, t) {
|
|
|
558
572
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
559
573
|
return r;
|
|
560
574
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
575
|
+
function ae(e, t, r) {
|
|
576
|
+
if (arguments.length === 2)
|
|
563
577
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
564
578
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
565
|
-
return e.concat(s ||
|
|
579
|
+
return e.concat(s || t);
|
|
566
580
|
}
|
|
567
|
-
function
|
|
568
|
-
var r = t && t.cache ? t.cache :
|
|
581
|
+
function ue(e, t) {
|
|
582
|
+
var r = t && t.cache ? t.cache : mr, n = t && t.serializer ? t.serializer : fr, i = t && t.strategy ? t.strategy : ur;
|
|
569
583
|
return i(e, {
|
|
570
584
|
cache: r,
|
|
571
585
|
serializer: n
|
|
572
586
|
});
|
|
573
587
|
}
|
|
574
|
-
function
|
|
588
|
+
function ar(e) {
|
|
575
589
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
576
590
|
}
|
|
577
|
-
function
|
|
578
|
-
var i =
|
|
591
|
+
function rt(e, t, r, n) {
|
|
592
|
+
var i = ar(n) ? n : r(n), s = t.get(i);
|
|
579
593
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
580
594
|
}
|
|
581
595
|
function nt(e, t, r) {
|
|
582
596
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
583
597
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
584
598
|
}
|
|
585
|
-
function
|
|
599
|
+
function Ae(e, t, r, n, i) {
|
|
586
600
|
return r.bind(t, e, n, i);
|
|
587
601
|
}
|
|
588
|
-
function
|
|
589
|
-
var r = e.length === 1 ?
|
|
590
|
-
return
|
|
602
|
+
function ur(e, t) {
|
|
603
|
+
var r = e.length === 1 ? rt : nt;
|
|
604
|
+
return Ae(e, this, r, t.cache.create(), t.serializer);
|
|
605
|
+
}
|
|
606
|
+
function hr(e, t) {
|
|
607
|
+
return Ae(e, this, nt, t.cache.create(), t.serializer);
|
|
591
608
|
}
|
|
592
|
-
function
|
|
593
|
-
return
|
|
609
|
+
function lr(e, t) {
|
|
610
|
+
return Ae(e, this, rt, t.cache.create(), t.serializer);
|
|
594
611
|
}
|
|
595
|
-
var
|
|
612
|
+
var fr = function() {
|
|
596
613
|
return JSON.stringify(arguments);
|
|
597
|
-
},
|
|
614
|
+
}, cr = (
|
|
598
615
|
/** @class */
|
|
599
616
|
function() {
|
|
600
617
|
function e() {
|
|
@@ -606,71 +623,62 @@ var cr = function() {
|
|
|
606
623
|
this.cache[t] = r;
|
|
607
624
|
}, e;
|
|
608
625
|
}()
|
|
609
|
-
),
|
|
626
|
+
), mr = {
|
|
610
627
|
create: function() {
|
|
611
|
-
return new
|
|
628
|
+
return new cr();
|
|
612
629
|
}
|
|
613
|
-
},
|
|
614
|
-
variadic:
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
618
|
-
r = arguments[n];
|
|
619
|
-
for (var s in r)
|
|
620
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
621
|
-
}
|
|
622
|
-
return t;
|
|
623
|
-
}, ee.apply(this, arguments);
|
|
624
|
-
};
|
|
625
|
-
var m;
|
|
630
|
+
}, he = {
|
|
631
|
+
variadic: hr,
|
|
632
|
+
monadic: lr
|
|
633
|
+
}, m;
|
|
626
634
|
(function(e) {
|
|
627
635
|
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";
|
|
628
636
|
})(m || (m = {}));
|
|
629
|
-
var
|
|
637
|
+
var E;
|
|
630
638
|
(function(e) {
|
|
631
639
|
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";
|
|
632
|
-
})(
|
|
633
|
-
var
|
|
640
|
+
})(E || (E = {}));
|
|
641
|
+
var L;
|
|
634
642
|
(function(e) {
|
|
635
643
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
636
|
-
})(
|
|
637
|
-
function
|
|
638
|
-
return e.type ===
|
|
644
|
+
})(L || (L = {}));
|
|
645
|
+
function Me(e) {
|
|
646
|
+
return e.type === E.literal;
|
|
639
647
|
}
|
|
640
648
|
function dr(e) {
|
|
641
|
-
return e.type ===
|
|
649
|
+
return e.type === E.argument;
|
|
650
|
+
}
|
|
651
|
+
function it(e) {
|
|
652
|
+
return e.type === E.number;
|
|
642
653
|
}
|
|
643
654
|
function st(e) {
|
|
644
|
-
return e.type ===
|
|
655
|
+
return e.type === E.date;
|
|
645
656
|
}
|
|
646
657
|
function ot(e) {
|
|
647
|
-
return e.type ===
|
|
658
|
+
return e.type === E.time;
|
|
648
659
|
}
|
|
649
660
|
function at(e) {
|
|
650
|
-
return e.type ===
|
|
661
|
+
return e.type === E.select;
|
|
651
662
|
}
|
|
652
663
|
function ut(e) {
|
|
653
|
-
return e.type ===
|
|
664
|
+
return e.type === E.plural;
|
|
654
665
|
}
|
|
655
|
-
function
|
|
656
|
-
return e.type ===
|
|
666
|
+
function pr(e) {
|
|
667
|
+
return e.type === E.pound;
|
|
657
668
|
}
|
|
658
|
-
function
|
|
659
|
-
return e.type ===
|
|
669
|
+
function ht(e) {
|
|
670
|
+
return e.type === E.tag;
|
|
660
671
|
}
|
|
661
672
|
function lt(e) {
|
|
662
|
-
return e.type ===
|
|
663
|
-
}
|
|
664
|
-
function ft(e) {
|
|
665
|
-
return !!(e && typeof e == "object" && e.type === M.number);
|
|
673
|
+
return !!(e && typeof e == "object" && e.type === L.number);
|
|
666
674
|
}
|
|
667
|
-
function
|
|
668
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
675
|
+
function be(e) {
|
|
676
|
+
return !!(e && typeof e == "object" && e.type === L.dateTime);
|
|
669
677
|
}
|
|
670
|
-
var
|
|
671
|
-
function
|
|
678
|
+
var ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, br = /(?:[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;
|
|
679
|
+
function gr(e) {
|
|
672
680
|
var t = {};
|
|
673
|
-
return e.replace(
|
|
681
|
+
return e.replace(br, function(r) {
|
|
674
682
|
var n = r.length;
|
|
675
683
|
switch (r[0]) {
|
|
676
684
|
case "G":
|
|
@@ -759,21 +767,11 @@ function Er(e) {
|
|
|
759
767
|
return "";
|
|
760
768
|
}), t;
|
|
761
769
|
}
|
|
762
|
-
var
|
|
763
|
-
return E = Object.assign || function(t) {
|
|
764
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
765
|
-
r = arguments[n];
|
|
766
|
-
for (var s in r)
|
|
767
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
768
|
-
}
|
|
769
|
-
return t;
|
|
770
|
-
}, E.apply(this, arguments);
|
|
771
|
-
};
|
|
772
|
-
var yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
770
|
+
var Er = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
773
771
|
function xr(e) {
|
|
774
772
|
if (e.length === 0)
|
|
775
773
|
throw new Error("Number skeleton cannot be empty");
|
|
776
|
-
for (var t = e.split(
|
|
774
|
+
for (var t = e.split(Er).filter(function(c) {
|
|
777
775
|
return c.length > 0;
|
|
778
776
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
779
777
|
var s = i[n], u = s.split("/");
|
|
@@ -788,13 +786,13 @@ function xr(e) {
|
|
|
788
786
|
}
|
|
789
787
|
return r;
|
|
790
788
|
}
|
|
791
|
-
function
|
|
789
|
+
function yr(e) {
|
|
792
790
|
return e.replace(/^(.*?)-/, "");
|
|
793
791
|
}
|
|
794
|
-
var
|
|
795
|
-
function
|
|
792
|
+
var Ce = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ct = /^(@+)?(\+|#+)?[rs]?$/g, _r = /(\*)(0+)|(#+)(0+)|(0+)/g, mt = /^(0+)$/;
|
|
793
|
+
function Re(e) {
|
|
796
794
|
var t = {};
|
|
797
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
795
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ct, function(r, n, i) {
|
|
798
796
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
799
797
|
}), t;
|
|
800
798
|
}
|
|
@@ -838,7 +836,7 @@ function dt(e) {
|
|
|
838
836
|
};
|
|
839
837
|
}
|
|
840
838
|
}
|
|
841
|
-
function
|
|
839
|
+
function vr(e) {
|
|
842
840
|
var t;
|
|
843
841
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
844
842
|
notation: "engineering"
|
|
@@ -846,17 +844,17 @@ function Hr(e) {
|
|
|
846
844
|
notation: "scientific"
|
|
847
845
|
}, e = e.slice(1)), t) {
|
|
848
846
|
var r = e.slice(0, 2);
|
|
849
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
847
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mt.test(e))
|
|
850
848
|
throw new Error("Malformed concise eng/scientific notation");
|
|
851
849
|
t.minimumIntegerDigits = e.length;
|
|
852
850
|
}
|
|
853
851
|
return t;
|
|
854
852
|
}
|
|
855
|
-
function
|
|
853
|
+
function Ue(e) {
|
|
856
854
|
var t = {}, r = dt(e);
|
|
857
855
|
return r || t;
|
|
858
856
|
}
|
|
859
|
-
function
|
|
857
|
+
function Hr(e) {
|
|
860
858
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
861
859
|
var i = n[r];
|
|
862
860
|
switch (i.stem) {
|
|
@@ -880,7 +878,7 @@ function Sr(e) {
|
|
|
880
878
|
continue;
|
|
881
879
|
case "measure-unit":
|
|
882
880
|
case "unit":
|
|
883
|
-
t.style = "unit", t.unit =
|
|
881
|
+
t.style = "unit", t.unit = yr(i.options[0]);
|
|
884
882
|
continue;
|
|
885
883
|
case "compact-short":
|
|
886
884
|
case "K":
|
|
@@ -891,13 +889,13 @@ function Sr(e) {
|
|
|
891
889
|
t.notation = "compact", t.compactDisplay = "long";
|
|
892
890
|
continue;
|
|
893
891
|
case "scientific":
|
|
894
|
-
t =
|
|
895
|
-
return
|
|
892
|
+
t = p(p(p({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
|
|
893
|
+
return p(p({}, f), Ue(a));
|
|
896
894
|
}, {}));
|
|
897
895
|
continue;
|
|
898
896
|
case "engineering":
|
|
899
|
-
t =
|
|
900
|
-
return
|
|
897
|
+
t = p(p(p({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
|
|
898
|
+
return p(p({}, f), Ue(a));
|
|
901
899
|
}, {}));
|
|
902
900
|
continue;
|
|
903
901
|
case "notation-simple":
|
|
@@ -942,45 +940,45 @@ function Sr(e) {
|
|
|
942
940
|
case "integer-width":
|
|
943
941
|
if (i.options.length > 1)
|
|
944
942
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
945
|
-
i.options[0].replace(_r, function(f, a, h, l, c,
|
|
943
|
+
i.options[0].replace(_r, function(f, a, h, l, c, b) {
|
|
946
944
|
if (a)
|
|
947
945
|
t.minimumIntegerDigits = h.length;
|
|
948
946
|
else {
|
|
949
947
|
if (l && c)
|
|
950
948
|
throw new Error("We currently do not support maximum integer digits");
|
|
951
|
-
if (
|
|
949
|
+
if (b)
|
|
952
950
|
throw new Error("We currently do not support exact integer digits");
|
|
953
951
|
}
|
|
954
952
|
return "";
|
|
955
953
|
});
|
|
956
954
|
continue;
|
|
957
955
|
}
|
|
958
|
-
if (
|
|
956
|
+
if (mt.test(i.stem)) {
|
|
959
957
|
t.minimumIntegerDigits = i.stem.length;
|
|
960
958
|
continue;
|
|
961
959
|
}
|
|
962
|
-
if (
|
|
960
|
+
if (Ce.test(i.stem)) {
|
|
963
961
|
if (i.options.length > 1)
|
|
964
962
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
965
|
-
i.stem.replace(
|
|
966
|
-
return h === "*" ? t.minimumFractionDigits = a.length : l && l[0] === "#" ? t.maximumFractionDigits = l.length : c &&
|
|
963
|
+
i.stem.replace(Ce, function(f, a, h, l, c, b) {
|
|
964
|
+
return h === "*" ? t.minimumFractionDigits = a.length : l && l[0] === "#" ? t.maximumFractionDigits = l.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
967
965
|
});
|
|
968
966
|
var s = i.options[0];
|
|
969
|
-
s === "w" ? t =
|
|
967
|
+
s === "w" ? t = p(p({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = p(p({}, t), Re(s)));
|
|
970
968
|
continue;
|
|
971
969
|
}
|
|
972
|
-
if (
|
|
973
|
-
t =
|
|
970
|
+
if (ct.test(i.stem)) {
|
|
971
|
+
t = p(p({}, t), Re(i.stem));
|
|
974
972
|
continue;
|
|
975
973
|
}
|
|
976
974
|
var u = dt(i.stem);
|
|
977
|
-
u && (t =
|
|
978
|
-
var o =
|
|
979
|
-
o && (t =
|
|
975
|
+
u && (t = p(p({}, t), u));
|
|
976
|
+
var o = vr(i.stem);
|
|
977
|
+
o && (t = p(p({}, t), o));
|
|
980
978
|
}
|
|
981
979
|
return t;
|
|
982
980
|
}
|
|
983
|
-
var
|
|
981
|
+
var Q = {
|
|
984
982
|
"001": [
|
|
985
983
|
"H",
|
|
986
984
|
"h"
|
|
@@ -2401,7 +2399,7 @@ function Tr(e, t) {
|
|
|
2401
2399
|
if (i === "j") {
|
|
2402
2400
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2403
2401
|
s++, n++;
|
|
2404
|
-
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), f = "a", a =
|
|
2402
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = Sr(t);
|
|
2405
2403
|
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2406
2404
|
r += f;
|
|
2407
2405
|
for (; u-- > 0; )
|
|
@@ -2411,7 +2409,7 @@ function Tr(e, t) {
|
|
|
2411
2409
|
}
|
|
2412
2410
|
return r;
|
|
2413
2411
|
}
|
|
2414
|
-
function
|
|
2412
|
+
function Sr(e) {
|
|
2415
2413
|
var t = e.hourCycle;
|
|
2416
2414
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2417
2415
|
e.hourCycles && // @ts-ignore
|
|
@@ -2430,23 +2428,23 @@ function Br(e) {
|
|
|
2430
2428
|
}
|
|
2431
2429
|
var r = e.language, n;
|
|
2432
2430
|
r !== "root" && (n = e.maximize().region);
|
|
2433
|
-
var i =
|
|
2431
|
+
var i = Q[n || ""] || Q[r || ""] || Q["".concat(r, "-001")] || Q["001"];
|
|
2434
2432
|
return i[0];
|
|
2435
2433
|
}
|
|
2436
|
-
var
|
|
2437
|
-
function
|
|
2434
|
+
var le, Br = new RegExp("^".concat(ft.source, "*")), Ar = new RegExp("".concat(ft.source, "*$"));
|
|
2435
|
+
function d(e, t) {
|
|
2438
2436
|
return { start: e, end: t };
|
|
2439
2437
|
}
|
|
2440
|
-
var
|
|
2438
|
+
var Pr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nr = !!String.fromCodePoint, Or = !!Object.fromEntries, Ir = !!String.prototype.codePointAt, wr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, Lr = !!Number.isSafeInteger, Mr = Lr ? Number.isSafeInteger : function(e) {
|
|
2441
2439
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2442
|
-
},
|
|
2440
|
+
}, ge = !0;
|
|
2443
2441
|
try {
|
|
2444
|
-
var
|
|
2445
|
-
|
|
2442
|
+
var Cr = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2443
|
+
ge = ((le = Cr.exec("a")) === null || le === void 0 ? void 0 : le[0]) === "a";
|
|
2446
2444
|
} catch {
|
|
2447
|
-
|
|
2445
|
+
ge = !1;
|
|
2448
2446
|
}
|
|
2449
|
-
var
|
|
2447
|
+
var Ge = Pr ? (
|
|
2450
2448
|
// Native
|
|
2451
2449
|
function(t, r, n) {
|
|
2452
2450
|
return t.startsWith(r, n);
|
|
@@ -2456,7 +2454,7 @@ var De = Or ? (
|
|
|
2456
2454
|
function(t, r, n) {
|
|
2457
2455
|
return t.slice(n, n + r.length) === r;
|
|
2458
2456
|
}
|
|
2459
|
-
),
|
|
2457
|
+
), Ee = Nr ? String.fromCodePoint : (
|
|
2460
2458
|
// IE11
|
|
2461
2459
|
function() {
|
|
2462
2460
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2468,9 +2466,9 @@ var De = Or ? (
|
|
|
2468
2466
|
}
|
|
2469
2467
|
return n;
|
|
2470
2468
|
}
|
|
2471
|
-
),
|
|
2469
|
+
), De = (
|
|
2472
2470
|
// native
|
|
2473
|
-
|
|
2471
|
+
Or ? Object.fromEntries : (
|
|
2474
2472
|
// Ponyfill
|
|
2475
2473
|
function(t) {
|
|
2476
2474
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2480,7 +2478,7 @@ var De = Or ? (
|
|
|
2480
2478
|
return r;
|
|
2481
2479
|
}
|
|
2482
2480
|
)
|
|
2483
|
-
),
|
|
2481
|
+
), pt = Ir ? (
|
|
2484
2482
|
// Native
|
|
2485
2483
|
function(t, r) {
|
|
2486
2484
|
return t.codePointAt(r);
|
|
@@ -2494,7 +2492,7 @@ var De = Or ? (
|
|
|
2494
2492
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2495
2493
|
}
|
|
2496
2494
|
}
|
|
2497
|
-
),
|
|
2495
|
+
), Rr = wr ? (
|
|
2498
2496
|
// Native
|
|
2499
2497
|
function(t) {
|
|
2500
2498
|
return t.trimStart();
|
|
@@ -2502,9 +2500,9 @@ var De = Or ? (
|
|
|
2502
2500
|
) : (
|
|
2503
2501
|
// Ponyfill
|
|
2504
2502
|
function(t) {
|
|
2505
|
-
return t.replace(
|
|
2503
|
+
return t.replace(Br, "");
|
|
2506
2504
|
}
|
|
2507
|
-
),
|
|
2505
|
+
), Ur = $r ? (
|
|
2508
2506
|
// Native
|
|
2509
2507
|
function(t) {
|
|
2510
2508
|
return t.trimEnd();
|
|
@@ -2512,32 +2510,32 @@ var De = Or ? (
|
|
|
2512
2510
|
) : (
|
|
2513
2511
|
// Ponyfill
|
|
2514
2512
|
function(t) {
|
|
2515
|
-
return t.replace(
|
|
2513
|
+
return t.replace(Ar, "");
|
|
2516
2514
|
}
|
|
2517
2515
|
);
|
|
2518
|
-
function
|
|
2516
|
+
function bt(e, t) {
|
|
2519
2517
|
return new RegExp(e, t);
|
|
2520
2518
|
}
|
|
2521
|
-
var
|
|
2522
|
-
if (
|
|
2523
|
-
var
|
|
2524
|
-
|
|
2519
|
+
var xe;
|
|
2520
|
+
if (ge) {
|
|
2521
|
+
var Fe = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2522
|
+
xe = function(t, r) {
|
|
2525
2523
|
var n;
|
|
2526
|
-
|
|
2527
|
-
var i =
|
|
2524
|
+
Fe.lastIndex = r;
|
|
2525
|
+
var i = Fe.exec(t);
|
|
2528
2526
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2529
2527
|
};
|
|
2530
2528
|
} else
|
|
2531
|
-
|
|
2529
|
+
xe = function(t, r) {
|
|
2532
2530
|
for (var n = []; ; ) {
|
|
2533
|
-
var i =
|
|
2534
|
-
if (i === void 0 ||
|
|
2531
|
+
var i = pt(t, r);
|
|
2532
|
+
if (i === void 0 || gt(i) || jr(i))
|
|
2535
2533
|
break;
|
|
2536
2534
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2537
2535
|
}
|
|
2538
|
-
return
|
|
2536
|
+
return Ee.apply(void 0, n);
|
|
2539
2537
|
};
|
|
2540
|
-
var
|
|
2538
|
+
var Gr = (
|
|
2541
2539
|
/** @class */
|
|
2542
2540
|
function() {
|
|
2543
2541
|
function e(t, r) {
|
|
@@ -2561,14 +2559,14 @@ var Dr = (
|
|
|
2561
2559
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2562
2560
|
var o = this.clonePosition();
|
|
2563
2561
|
this.bump(), i.push({
|
|
2564
|
-
type:
|
|
2565
|
-
location:
|
|
2562
|
+
type: E.pound,
|
|
2563
|
+
location: d(o, this.clonePosition())
|
|
2566
2564
|
});
|
|
2567
2565
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2568
2566
|
if (n)
|
|
2569
2567
|
break;
|
|
2570
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2571
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2568
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
2569
|
+
} else if (s === 60 && !this.ignoreTag && ye(this.peek() || 0)) {
|
|
2572
2570
|
var u = this.parseTag(t, r);
|
|
2573
2571
|
if (u.err)
|
|
2574
2572
|
return u;
|
|
@@ -2589,9 +2587,9 @@ var Dr = (
|
|
|
2589
2587
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2590
2588
|
return {
|
|
2591
2589
|
val: {
|
|
2592
|
-
type:
|
|
2590
|
+
type: E.literal,
|
|
2593
2591
|
value: "<".concat(i, "/>"),
|
|
2594
|
-
location:
|
|
2592
|
+
location: d(n, this.clonePosition())
|
|
2595
2593
|
},
|
|
2596
2594
|
err: null
|
|
2597
2595
|
};
|
|
@@ -2601,25 +2599,25 @@ var Dr = (
|
|
|
2601
2599
|
return s;
|
|
2602
2600
|
var u = s.val, o = this.clonePosition();
|
|
2603
2601
|
if (this.bumpIf("</")) {
|
|
2604
|
-
if (this.isEOF() || !
|
|
2605
|
-
return this.error(m.INVALID_TAG,
|
|
2602
|
+
if (this.isEOF() || !ye(this.char()))
|
|
2603
|
+
return this.error(m.INVALID_TAG, d(o, this.clonePosition()));
|
|
2606
2604
|
var f = this.clonePosition(), a = this.parseTagName();
|
|
2607
|
-
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2605
|
+
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, d(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2608
2606
|
val: {
|
|
2609
|
-
type:
|
|
2607
|
+
type: E.tag,
|
|
2610
2608
|
value: i,
|
|
2611
2609
|
children: u,
|
|
2612
|
-
location:
|
|
2610
|
+
location: d(n, this.clonePosition())
|
|
2613
2611
|
},
|
|
2614
2612
|
err: null
|
|
2615
|
-
} : this.error(m.INVALID_TAG,
|
|
2613
|
+
} : this.error(m.INVALID_TAG, d(o, this.clonePosition())));
|
|
2616
2614
|
} else
|
|
2617
|
-
return this.error(m.UNCLOSED_TAG,
|
|
2615
|
+
return this.error(m.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
2618
2616
|
} else
|
|
2619
|
-
return this.error(m.INVALID_TAG,
|
|
2617
|
+
return this.error(m.INVALID_TAG, d(n, this.clonePosition()));
|
|
2620
2618
|
}, e.prototype.parseTagName = function() {
|
|
2621
2619
|
var t = this.offset();
|
|
2622
|
-
for (this.bump(); !this.isEOF() &&
|
|
2620
|
+
for (this.bump(); !this.isEOF() && Fr(this.char()); )
|
|
2623
2621
|
this.bump();
|
|
2624
2622
|
return this.message.slice(t, this.offset());
|
|
2625
2623
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2641,14 +2639,14 @@ var Dr = (
|
|
|
2641
2639
|
}
|
|
2642
2640
|
break;
|
|
2643
2641
|
}
|
|
2644
|
-
var f =
|
|
2642
|
+
var f = d(n, this.clonePosition());
|
|
2645
2643
|
return {
|
|
2646
|
-
val: { type:
|
|
2644
|
+
val: { type: E.literal, value: i, location: f },
|
|
2647
2645
|
err: null
|
|
2648
2646
|
};
|
|
2649
2647
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2650
2648
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2651
|
-
!
|
|
2649
|
+
!Dr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2652
2650
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2653
2651
|
if (this.isEOF() || this.char() !== 39)
|
|
2654
2652
|
return null;
|
|
@@ -2682,49 +2680,49 @@ var Dr = (
|
|
|
2682
2680
|
r.push(n);
|
|
2683
2681
|
this.bump();
|
|
2684
2682
|
}
|
|
2685
|
-
return
|
|
2683
|
+
return Ee.apply(void 0, r);
|
|
2686
2684
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2687
2685
|
if (this.isEOF())
|
|
2688
2686
|
return null;
|
|
2689
2687
|
var n = this.char();
|
|
2690
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2688
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ee(n));
|
|
2691
2689
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2692
2690
|
var n = this.clonePosition();
|
|
2693
2691
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2694
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2692
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
2695
2693
|
if (this.char() === 125)
|
|
2696
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
|
2694
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
2697
2695
|
var i = this.parseIdentifierIfPossible().value;
|
|
2698
2696
|
if (!i)
|
|
2699
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2697
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
2700
2698
|
if (this.bumpSpace(), this.isEOF())
|
|
2701
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2699
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
2702
2700
|
switch (this.char()) {
|
|
2703
2701
|
case 125:
|
|
2704
2702
|
return this.bump(), {
|
|
2705
2703
|
val: {
|
|
2706
|
-
type:
|
|
2704
|
+
type: E.argument,
|
|
2707
2705
|
// value does not include the opening and closing braces.
|
|
2708
2706
|
value: i,
|
|
2709
|
-
location:
|
|
2707
|
+
location: d(n, this.clonePosition())
|
|
2710
2708
|
},
|
|
2711
2709
|
err: null
|
|
2712
2710
|
};
|
|
2713
2711
|
case 44:
|
|
2714
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2712
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2715
2713
|
default:
|
|
2716
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2714
|
+
return this.error(m.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
2717
2715
|
}
|
|
2718
2716
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2719
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2717
|
+
var t = this.clonePosition(), r = this.offset(), n = xe(this.message, r), i = r + n.length;
|
|
2720
2718
|
this.bumpTo(i);
|
|
2721
|
-
var s = this.clonePosition(), u =
|
|
2719
|
+
var s = this.clonePosition(), u = d(t, s);
|
|
2722
2720
|
return { value: n, location: u };
|
|
2723
2721
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2724
2722
|
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, f = this.clonePosition();
|
|
2725
2723
|
switch (o) {
|
|
2726
2724
|
case "":
|
|
2727
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
|
2725
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, d(u, f));
|
|
2728
2726
|
case "number":
|
|
2729
2727
|
case "date":
|
|
2730
2728
|
case "time": {
|
|
@@ -2735,46 +2733,46 @@ var Dr = (
|
|
|
2735
2733
|
var h = this.clonePosition(), l = this.parseSimpleArgStyleIfPossible();
|
|
2736
2734
|
if (l.err)
|
|
2737
2735
|
return l;
|
|
2738
|
-
var c =
|
|
2736
|
+
var c = Ur(l.val);
|
|
2739
2737
|
if (c.length === 0)
|
|
2740
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
|
2741
|
-
var
|
|
2742
|
-
a = { style: c, styleLocation:
|
|
2738
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
2739
|
+
var b = d(h, this.clonePosition());
|
|
2740
|
+
a = { style: c, styleLocation: b };
|
|
2743
2741
|
}
|
|
2744
|
-
var
|
|
2745
|
-
if (
|
|
2746
|
-
return
|
|
2747
|
-
var
|
|
2748
|
-
if (a &&
|
|
2749
|
-
var
|
|
2742
|
+
var g = this.tryParseArgumentClose(i);
|
|
2743
|
+
if (g.err)
|
|
2744
|
+
return g;
|
|
2745
|
+
var y = d(i, this.clonePosition());
|
|
2746
|
+
if (a && Ge(a?.style, "::", 0)) {
|
|
2747
|
+
var H = Rr(a.style.slice(2));
|
|
2750
2748
|
if (o === "number") {
|
|
2751
|
-
var l = this.parseNumberSkeletonFromString(
|
|
2749
|
+
var l = this.parseNumberSkeletonFromString(H, a.styleLocation);
|
|
2752
2750
|
return l.err ? l : {
|
|
2753
|
-
val: { type:
|
|
2751
|
+
val: { type: E.number, value: n, location: y, style: l.val },
|
|
2754
2752
|
err: null
|
|
2755
2753
|
};
|
|
2756
2754
|
} else {
|
|
2757
|
-
if (
|
|
2758
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
2759
|
-
var
|
|
2760
|
-
this.locale && (
|
|
2755
|
+
if (H.length === 0)
|
|
2756
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
2757
|
+
var D = H;
|
|
2758
|
+
this.locale && (D = Tr(H, this.locale));
|
|
2761
2759
|
var c = {
|
|
2762
|
-
type:
|
|
2763
|
-
pattern:
|
|
2760
|
+
type: L.dateTime,
|
|
2761
|
+
pattern: D,
|
|
2764
2762
|
location: a.styleLocation,
|
|
2765
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2766
|
-
},
|
|
2763
|
+
parsedOptions: this.shouldParseSkeletons ? gr(D) : {}
|
|
2764
|
+
}, A = o === "date" ? E.date : E.time;
|
|
2767
2765
|
return {
|
|
2768
|
-
val: { type:
|
|
2766
|
+
val: { type: A, value: n, location: y, style: c },
|
|
2769
2767
|
err: null
|
|
2770
2768
|
};
|
|
2771
2769
|
}
|
|
2772
2770
|
}
|
|
2773
2771
|
return {
|
|
2774
2772
|
val: {
|
|
2775
|
-
type: o === "number" ?
|
|
2773
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2776
2774
|
value: n,
|
|
2777
|
-
location:
|
|
2775
|
+
location: y,
|
|
2778
2776
|
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2779
2777
|
},
|
|
2780
2778
|
err: null
|
|
@@ -2783,52 +2781,52 @@ var Dr = (
|
|
|
2783
2781
|
case "plural":
|
|
2784
2782
|
case "selectordinal":
|
|
2785
2783
|
case "select": {
|
|
2786
|
-
var
|
|
2784
|
+
var v = this.clonePosition();
|
|
2787
2785
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2788
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2786
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, d(v, p({}, v)));
|
|
2789
2787
|
this.bumpSpace();
|
|
2790
|
-
var
|
|
2791
|
-
if (o !== "select" &&
|
|
2788
|
+
var F = this.parseIdentifierIfPossible(), S = 0;
|
|
2789
|
+
if (o !== "select" && F.value === "offset") {
|
|
2792
2790
|
if (!this.bumpIf(":"))
|
|
2793
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2791
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
2794
2792
|
this.bumpSpace();
|
|
2795
2793
|
var l = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2796
2794
|
if (l.err)
|
|
2797
2795
|
return l;
|
|
2798
|
-
this.bumpSpace(),
|
|
2796
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), S = l.val;
|
|
2799
2797
|
}
|
|
2800
|
-
var
|
|
2801
|
-
if (
|
|
2802
|
-
return
|
|
2803
|
-
var
|
|
2804
|
-
if (
|
|
2805
|
-
return
|
|
2806
|
-
var
|
|
2798
|
+
var Z = this.tryParsePluralOrSelectOptions(t, o, r, F);
|
|
2799
|
+
if (Z.err)
|
|
2800
|
+
return Z;
|
|
2801
|
+
var g = this.tryParseArgumentClose(i);
|
|
2802
|
+
if (g.err)
|
|
2803
|
+
return g;
|
|
2804
|
+
var Oe = d(i, this.clonePosition());
|
|
2807
2805
|
return o === "select" ? {
|
|
2808
2806
|
val: {
|
|
2809
|
-
type:
|
|
2807
|
+
type: E.select,
|
|
2810
2808
|
value: n,
|
|
2811
|
-
options:
|
|
2812
|
-
location:
|
|
2809
|
+
options: De(Z.val),
|
|
2810
|
+
location: Oe
|
|
2813
2811
|
},
|
|
2814
2812
|
err: null
|
|
2815
2813
|
} : {
|
|
2816
2814
|
val: {
|
|
2817
|
-
type:
|
|
2815
|
+
type: E.plural,
|
|
2818
2816
|
value: n,
|
|
2819
|
-
options:
|
|
2820
|
-
offset:
|
|
2817
|
+
options: De(Z.val),
|
|
2818
|
+
offset: S,
|
|
2821
2819
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2822
|
-
location:
|
|
2820
|
+
location: Oe
|
|
2823
2821
|
},
|
|
2824
2822
|
err: null
|
|
2825
2823
|
};
|
|
2826
2824
|
}
|
|
2827
2825
|
default:
|
|
2828
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
|
2826
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, d(u, f));
|
|
2829
2827
|
}
|
|
2830
2828
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2831
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2829
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2832
2830
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2833
2831
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2834
2832
|
var n = this.char();
|
|
@@ -2837,7 +2835,7 @@ var Dr = (
|
|
|
2837
2835
|
this.bump();
|
|
2838
2836
|
var i = this.clonePosition();
|
|
2839
2837
|
if (!this.bumpUntil("'"))
|
|
2840
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2838
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
2841
2839
|
this.bump();
|
|
2842
2840
|
break;
|
|
2843
2841
|
}
|
|
@@ -2873,10 +2871,10 @@ var Dr = (
|
|
|
2873
2871
|
}
|
|
2874
2872
|
return {
|
|
2875
2873
|
val: {
|
|
2876
|
-
type:
|
|
2874
|
+
type: L.number,
|
|
2877
2875
|
tokens: n,
|
|
2878
2876
|
location: r,
|
|
2879
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2877
|
+
parsedOptions: this.shouldParseSkeletons ? Hr(n) : {}
|
|
2880
2878
|
},
|
|
2881
2879
|
err: null
|
|
2882
2880
|
};
|
|
@@ -2888,31 +2886,31 @@ var Dr = (
|
|
|
2888
2886
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2889
2887
|
if (c.err)
|
|
2890
2888
|
return c;
|
|
2891
|
-
h =
|
|
2889
|
+
h = d(l, this.clonePosition()), a = this.message.slice(l.offset, this.offset());
|
|
2892
2890
|
} else
|
|
2893
2891
|
break;
|
|
2894
2892
|
}
|
|
2895
2893
|
if (f.has(a))
|
|
2896
2894
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2897
2895
|
a === "other" && (u = !0), this.bumpSpace();
|
|
2898
|
-
var
|
|
2896
|
+
var b = this.clonePosition();
|
|
2899
2897
|
if (!this.bumpIf("{"))
|
|
2900
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2901
|
-
var
|
|
2902
|
-
if (
|
|
2903
|
-
return
|
|
2904
|
-
var
|
|
2905
|
-
if (
|
|
2906
|
-
return
|
|
2898
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
2899
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
2900
|
+
if (g.err)
|
|
2901
|
+
return g;
|
|
2902
|
+
var y = this.tryParseArgumentClose(b);
|
|
2903
|
+
if (y.err)
|
|
2904
|
+
return y;
|
|
2907
2905
|
o.push([
|
|
2908
2906
|
a,
|
|
2909
2907
|
{
|
|
2910
|
-
value:
|
|
2911
|
-
location:
|
|
2908
|
+
value: g.val,
|
|
2909
|
+
location: d(b, this.clonePosition())
|
|
2912
2910
|
}
|
|
2913
2911
|
]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
2914
2912
|
}
|
|
2915
|
-
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
2913
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(m.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
2916
2914
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2917
2915
|
var n = 1, i = this.clonePosition();
|
|
2918
2916
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2923,8 +2921,8 @@ var Dr = (
|
|
|
2923
2921
|
else
|
|
2924
2922
|
break;
|
|
2925
2923
|
}
|
|
2926
|
-
var f =
|
|
2927
|
-
return s ? (u *= n,
|
|
2924
|
+
var f = d(i, this.clonePosition());
|
|
2925
|
+
return s ? (u *= n, Mr(u) ? { val: u, err: null } : this.error(r, f)) : this.error(t, f);
|
|
2928
2926
|
}, e.prototype.offset = function() {
|
|
2929
2927
|
return this.position.offset;
|
|
2930
2928
|
}, e.prototype.isEOF = function() {
|
|
@@ -2939,7 +2937,7 @@ var Dr = (
|
|
|
2939
2937
|
var t = this.position.offset;
|
|
2940
2938
|
if (t >= this.message.length)
|
|
2941
2939
|
throw Error("out of bound");
|
|
2942
|
-
var r =
|
|
2940
|
+
var r = pt(this.message, t);
|
|
2943
2941
|
if (r === void 0)
|
|
2944
2942
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2945
2943
|
return r;
|
|
@@ -2958,7 +2956,7 @@ var Dr = (
|
|
|
2958
2956
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
2959
2957
|
}
|
|
2960
2958
|
}, e.prototype.bumpIf = function(t) {
|
|
2961
|
-
if (
|
|
2959
|
+
if (Ge(this.message, t, this.offset())) {
|
|
2962
2960
|
for (var r = 0; r < t.length; r++)
|
|
2963
2961
|
this.bump();
|
|
2964
2962
|
return !0;
|
|
@@ -2980,7 +2978,7 @@ var Dr = (
|
|
|
2980
2978
|
break;
|
|
2981
2979
|
}
|
|
2982
2980
|
}, e.prototype.bumpSpace = function() {
|
|
2983
|
-
for (; !this.isEOF() &&
|
|
2981
|
+
for (; !this.isEOF() && gt(this.char()); )
|
|
2984
2982
|
this.bump();
|
|
2985
2983
|
}, e.prototype.peek = function() {
|
|
2986
2984
|
if (this.isEOF())
|
|
@@ -2990,47 +2988,47 @@ var Dr = (
|
|
|
2990
2988
|
}, e;
|
|
2991
2989
|
}()
|
|
2992
2990
|
);
|
|
2993
|
-
function
|
|
2991
|
+
function ye(e) {
|
|
2994
2992
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2995
2993
|
}
|
|
2996
|
-
function
|
|
2997
|
-
return
|
|
2994
|
+
function Dr(e) {
|
|
2995
|
+
return ye(e) || e === 47;
|
|
2998
2996
|
}
|
|
2999
|
-
function
|
|
2997
|
+
function Fr(e) {
|
|
3000
2998
|
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;
|
|
3001
2999
|
}
|
|
3002
|
-
function
|
|
3000
|
+
function gt(e) {
|
|
3003
3001
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3004
3002
|
}
|
|
3005
|
-
function
|
|
3003
|
+
function jr(e) {
|
|
3006
3004
|
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;
|
|
3007
3005
|
}
|
|
3008
|
-
function
|
|
3006
|
+
function _e(e) {
|
|
3009
3007
|
e.forEach(function(t) {
|
|
3010
|
-
if (delete t.location,
|
|
3008
|
+
if (delete t.location, at(t) || ut(t))
|
|
3011
3009
|
for (var r in t.options)
|
|
3012
|
-
delete t.options[r].location,
|
|
3010
|
+
delete t.options[r].location, _e(t.options[r].value);
|
|
3013
3011
|
else
|
|
3014
|
-
|
|
3012
|
+
it(t) && lt(t.style) || (st(t) || ot(t)) && be(t.style) ? delete t.style.location : ht(t) && _e(t.children);
|
|
3015
3013
|
});
|
|
3016
3014
|
}
|
|
3017
|
-
function
|
|
3018
|
-
t === void 0 && (t = {}), t =
|
|
3019
|
-
var r = new
|
|
3015
|
+
function Vr(e, t) {
|
|
3016
|
+
t === void 0 && (t = {}), t = p({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3017
|
+
var r = new Gr(e, t).parse();
|
|
3020
3018
|
if (r.err) {
|
|
3021
3019
|
var n = SyntaxError(m[r.err.kind]);
|
|
3022
3020
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3023
3021
|
}
|
|
3024
|
-
return t?.captureLocation ||
|
|
3022
|
+
return t?.captureLocation || _e(r.val), r.val;
|
|
3025
3023
|
}
|
|
3026
|
-
var
|
|
3024
|
+
var M;
|
|
3027
3025
|
(function(e) {
|
|
3028
3026
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3029
|
-
})(
|
|
3030
|
-
var
|
|
3027
|
+
})(M || (M = {}));
|
|
3028
|
+
var ne = (
|
|
3031
3029
|
/** @class */
|
|
3032
3030
|
function(e) {
|
|
3033
|
-
|
|
3031
|
+
re(t, e);
|
|
3034
3032
|
function t(r, n, i) {
|
|
3035
3033
|
var s = e.call(this, r) || this;
|
|
3036
3034
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3039,155 +3037,155 @@ var se = (
|
|
|
3039
3037
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3040
3038
|
}, t;
|
|
3041
3039
|
}(Error)
|
|
3042
|
-
),
|
|
3040
|
+
), je = (
|
|
3043
3041
|
/** @class */
|
|
3044
3042
|
function(e) {
|
|
3045
|
-
|
|
3043
|
+
re(t, e);
|
|
3046
3044
|
function t(r, n, i, s) {
|
|
3047
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3045
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), M.INVALID_VALUE, s) || this;
|
|
3048
3046
|
}
|
|
3049
3047
|
return t;
|
|
3050
|
-
}(
|
|
3051
|
-
),
|
|
3048
|
+
}(ne)
|
|
3049
|
+
), kr = (
|
|
3052
3050
|
/** @class */
|
|
3053
3051
|
function(e) {
|
|
3054
|
-
|
|
3052
|
+
re(t, e);
|
|
3055
3053
|
function t(r, n, i) {
|
|
3056
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3054
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), M.INVALID_VALUE, i) || this;
|
|
3057
3055
|
}
|
|
3058
3056
|
return t;
|
|
3059
|
-
}(
|
|
3060
|
-
),
|
|
3057
|
+
}(ne)
|
|
3058
|
+
), Xr = (
|
|
3061
3059
|
/** @class */
|
|
3062
3060
|
function(e) {
|
|
3063
|
-
|
|
3061
|
+
re(t, e);
|
|
3064
3062
|
function t(r, n) {
|
|
3065
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3063
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), M.MISSING_VALUE, n) || this;
|
|
3066
3064
|
}
|
|
3067
3065
|
return t;
|
|
3068
|
-
}(
|
|
3069
|
-
),
|
|
3066
|
+
}(ne)
|
|
3067
|
+
), x;
|
|
3070
3068
|
(function(e) {
|
|
3071
3069
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3072
|
-
})(
|
|
3073
|
-
function
|
|
3070
|
+
})(x || (x = {}));
|
|
3071
|
+
function Wr(e) {
|
|
3074
3072
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3075
3073
|
var n = t[t.length - 1];
|
|
3076
|
-
return !n || n.type !==
|
|
3074
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3077
3075
|
}, []);
|
|
3078
3076
|
}
|
|
3079
|
-
function
|
|
3077
|
+
function zr(e) {
|
|
3080
3078
|
return typeof e == "function";
|
|
3081
3079
|
}
|
|
3082
|
-
function
|
|
3083
|
-
if (e.length === 1 &&
|
|
3080
|
+
function q(e, t, r, n, i, s, u) {
|
|
3081
|
+
if (e.length === 1 && Me(e[0]))
|
|
3084
3082
|
return [
|
|
3085
3083
|
{
|
|
3086
|
-
type:
|
|
3084
|
+
type: x.literal,
|
|
3087
3085
|
value: e[0].value
|
|
3088
3086
|
}
|
|
3089
3087
|
];
|
|
3090
3088
|
for (var o = [], f = 0, a = e; f < a.length; f++) {
|
|
3091
3089
|
var h = a[f];
|
|
3092
|
-
if (
|
|
3090
|
+
if (Me(h)) {
|
|
3093
3091
|
o.push({
|
|
3094
|
-
type:
|
|
3092
|
+
type: x.literal,
|
|
3095
3093
|
value: h.value
|
|
3096
3094
|
});
|
|
3097
3095
|
continue;
|
|
3098
3096
|
}
|
|
3099
|
-
if (
|
|
3097
|
+
if (pr(h)) {
|
|
3100
3098
|
typeof s == "number" && o.push({
|
|
3101
|
-
type:
|
|
3099
|
+
type: x.literal,
|
|
3102
3100
|
value: r.getNumberFormat(t).format(s)
|
|
3103
3101
|
});
|
|
3104
3102
|
continue;
|
|
3105
3103
|
}
|
|
3106
3104
|
var l = h.value;
|
|
3107
3105
|
if (!(i && l in i))
|
|
3108
|
-
throw new
|
|
3106
|
+
throw new Xr(l, u);
|
|
3109
3107
|
var c = i[l];
|
|
3110
3108
|
if (dr(h)) {
|
|
3111
3109
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3112
|
-
type: typeof c == "string" ?
|
|
3110
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3113
3111
|
value: c
|
|
3114
3112
|
});
|
|
3115
3113
|
continue;
|
|
3116
3114
|
}
|
|
3117
|
-
if (
|
|
3118
|
-
var
|
|
3115
|
+
if (st(h)) {
|
|
3116
|
+
var b = typeof h.style == "string" ? n.date[h.style] : be(h.style) ? h.style.parsedOptions : void 0;
|
|
3119
3117
|
o.push({
|
|
3120
|
-
type:
|
|
3121
|
-
value: r.getDateTimeFormat(t,
|
|
3118
|
+
type: x.literal,
|
|
3119
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3122
3120
|
});
|
|
3123
3121
|
continue;
|
|
3124
3122
|
}
|
|
3125
|
-
if (
|
|
3126
|
-
var
|
|
3123
|
+
if (ot(h)) {
|
|
3124
|
+
var b = typeof h.style == "string" ? n.time[h.style] : be(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3127
3125
|
o.push({
|
|
3128
|
-
type:
|
|
3129
|
-
value: r.getDateTimeFormat(t,
|
|
3126
|
+
type: x.literal,
|
|
3127
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3130
3128
|
});
|
|
3131
3129
|
continue;
|
|
3132
3130
|
}
|
|
3133
|
-
if (
|
|
3134
|
-
var
|
|
3135
|
-
|
|
3136
|
-
type:
|
|
3137
|
-
value: r.getNumberFormat(t,
|
|
3131
|
+
if (it(h)) {
|
|
3132
|
+
var b = typeof h.style == "string" ? n.number[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3133
|
+
b && b.scale && (c = c * (b.scale || 1)), o.push({
|
|
3134
|
+
type: x.literal,
|
|
3135
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3138
3136
|
});
|
|
3139
3137
|
continue;
|
|
3140
3138
|
}
|
|
3141
|
-
if (
|
|
3142
|
-
var
|
|
3143
|
-
if (!
|
|
3144
|
-
throw new
|
|
3145
|
-
var
|
|
3146
|
-
return
|
|
3139
|
+
if (ht(h)) {
|
|
3140
|
+
var g = h.children, y = h.value, H = i[y];
|
|
3141
|
+
if (!zr(H))
|
|
3142
|
+
throw new kr(y, "function", u);
|
|
3143
|
+
var D = q(g, t, r, n, i, s), A = H(D.map(function(S) {
|
|
3144
|
+
return S.value;
|
|
3147
3145
|
}));
|
|
3148
|
-
Array.isArray(
|
|
3146
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(S) {
|
|
3149
3147
|
return {
|
|
3150
|
-
type: typeof
|
|
3151
|
-
value:
|
|
3148
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3149
|
+
value: S
|
|
3152
3150
|
};
|
|
3153
3151
|
}));
|
|
3154
3152
|
}
|
|
3155
|
-
if (
|
|
3156
|
-
var
|
|
3157
|
-
if (!
|
|
3158
|
-
throw new
|
|
3159
|
-
o.push.apply(o,
|
|
3153
|
+
if (at(h)) {
|
|
3154
|
+
var v = h.options[c] || h.options.other;
|
|
3155
|
+
if (!v)
|
|
3156
|
+
throw new je(h.value, c, Object.keys(h.options), u);
|
|
3157
|
+
o.push.apply(o, q(v.value, t, r, n, i));
|
|
3160
3158
|
continue;
|
|
3161
3159
|
}
|
|
3162
|
-
if (
|
|
3163
|
-
var
|
|
3164
|
-
if (!
|
|
3160
|
+
if (ut(h)) {
|
|
3161
|
+
var v = h.options["=".concat(c)];
|
|
3162
|
+
if (!v) {
|
|
3165
3163
|
if (!Intl.PluralRules)
|
|
3166
|
-
throw new
|
|
3164
|
+
throw new ne(`Intl.PluralRules is not available in this environment.
|
|
3167
3165
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3168
|
-
`,
|
|
3169
|
-
var
|
|
3170
|
-
|
|
3166
|
+
`, M.MISSING_INTL_API, u);
|
|
3167
|
+
var F = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3168
|
+
v = h.options[F] || h.options.other;
|
|
3171
3169
|
}
|
|
3172
|
-
if (!
|
|
3173
|
-
throw new
|
|
3174
|
-
o.push.apply(o,
|
|
3170
|
+
if (!v)
|
|
3171
|
+
throw new je(h.value, c, Object.keys(h.options), u);
|
|
3172
|
+
o.push.apply(o, q(v.value, t, r, n, i, c - (h.offset || 0)));
|
|
3175
3173
|
continue;
|
|
3176
3174
|
}
|
|
3177
3175
|
}
|
|
3178
|
-
return
|
|
3176
|
+
return Wr(o);
|
|
3179
3177
|
}
|
|
3180
|
-
function
|
|
3181
|
-
return t ?
|
|
3182
|
-
return r[n] =
|
|
3178
|
+
function Zr(e, t) {
|
|
3179
|
+
return t ? p(p(p({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3180
|
+
return r[n] = p(p({}, e[n]), t[n] || {}), r;
|
|
3183
3181
|
}, {})) : e;
|
|
3184
3182
|
}
|
|
3185
|
-
function
|
|
3183
|
+
function Qr(e, t) {
|
|
3186
3184
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3187
|
-
return r[n] =
|
|
3188
|
-
},
|
|
3185
|
+
return r[n] = Zr(e[n], t[n]), r;
|
|
3186
|
+
}, p({}, e)) : e;
|
|
3189
3187
|
}
|
|
3190
|
-
function
|
|
3188
|
+
function fe(e) {
|
|
3191
3189
|
return {
|
|
3192
3190
|
create: function() {
|
|
3193
3191
|
return {
|
|
@@ -3201,39 +3199,39 @@ function me(e) {
|
|
|
3201
3199
|
}
|
|
3202
3200
|
};
|
|
3203
3201
|
}
|
|
3204
|
-
function
|
|
3202
|
+
function Jr(e) {
|
|
3205
3203
|
return e === void 0 && (e = {
|
|
3206
3204
|
number: {},
|
|
3207
3205
|
dateTime: {},
|
|
3208
3206
|
pluralRules: {}
|
|
3209
3207
|
}), {
|
|
3210
|
-
getNumberFormat:
|
|
3208
|
+
getNumberFormat: ue(function() {
|
|
3211
3209
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3212
3210
|
r[n] = arguments[n];
|
|
3213
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3211
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ae([void 0], r, !1)))();
|
|
3214
3212
|
}, {
|
|
3215
|
-
cache:
|
|
3216
|
-
strategy:
|
|
3213
|
+
cache: fe(e.number),
|
|
3214
|
+
strategy: he.variadic
|
|
3217
3215
|
}),
|
|
3218
|
-
getDateTimeFormat:
|
|
3216
|
+
getDateTimeFormat: ue(function() {
|
|
3219
3217
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3220
3218
|
r[n] = arguments[n];
|
|
3221
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3219
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ae([void 0], r, !1)))();
|
|
3222
3220
|
}, {
|
|
3223
|
-
cache:
|
|
3224
|
-
strategy:
|
|
3221
|
+
cache: fe(e.dateTime),
|
|
3222
|
+
strategy: he.variadic
|
|
3225
3223
|
}),
|
|
3226
|
-
getPluralRules:
|
|
3224
|
+
getPluralRules: ue(function() {
|
|
3227
3225
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3228
3226
|
r[n] = arguments[n];
|
|
3229
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3227
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ae([void 0], r, !1)))();
|
|
3230
3228
|
}, {
|
|
3231
|
-
cache:
|
|
3232
|
-
strategy:
|
|
3229
|
+
cache: fe(e.pluralRules),
|
|
3230
|
+
strategy: he.variadic
|
|
3233
3231
|
})
|
|
3234
3232
|
};
|
|
3235
3233
|
}
|
|
3236
|
-
var
|
|
3234
|
+
var qr = (
|
|
3237
3235
|
/** @class */
|
|
3238
3236
|
function() {
|
|
3239
3237
|
function e(t, r, n, i) {
|
|
@@ -3248,11 +3246,11 @@ var Yr = (
|
|
|
3248
3246
|
if (a.length === 1)
|
|
3249
3247
|
return a[0].value;
|
|
3250
3248
|
var h = a.reduce(function(l, c) {
|
|
3251
|
-
return !l.length || c.type !==
|
|
3249
|
+
return !l.length || c.type !== x.literal || typeof l[l.length - 1] != "string" ? l.push(c.value) : l[l.length - 1] += c.value, l;
|
|
3252
3250
|
}, []);
|
|
3253
3251
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3254
3252
|
}, this.formatToParts = function(f) {
|
|
3255
|
-
return
|
|
3253
|
+
return q(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
|
|
3256
3254
|
}, this.resolvedOptions = function() {
|
|
3257
3255
|
var f;
|
|
3258
3256
|
return {
|
|
@@ -3265,13 +3263,13 @@ var Yr = (
|
|
|
3265
3263
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3266
3264
|
var u = i || {};
|
|
3267
3265
|
u.formatters;
|
|
3268
|
-
var o =
|
|
3269
|
-
this.ast = e.__parse(t,
|
|
3266
|
+
var o = or(u, ["formatters"]);
|
|
3267
|
+
this.ast = e.__parse(t, p(p({}, o), { locale: this.resolvedLocale }));
|
|
3270
3268
|
} else
|
|
3271
3269
|
this.ast = t;
|
|
3272
3270
|
if (!Array.isArray(this.ast))
|
|
3273
3271
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3274
|
-
this.formats =
|
|
3272
|
+
this.formats = Qr(e.formats, n), this.formatters = i && i.formatters || Jr(this.formatterCache);
|
|
3275
3273
|
}
|
|
3276
3274
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3277
3275
|
get: function() {
|
|
@@ -3284,7 +3282,7 @@ var Yr = (
|
|
|
3284
3282
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3285
3283
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3286
3284
|
}
|
|
3287
|
-
}, e.__parse =
|
|
3285
|
+
}, e.__parse = Vr, e.formats = {
|
|
3288
3286
|
number: {
|
|
3289
3287
|
integer: {
|
|
3290
3288
|
maximumFractionDigits: 0
|
|
@@ -3345,7 +3343,7 @@ var Yr = (
|
|
|
3345
3343
|
}, e;
|
|
3346
3344
|
}()
|
|
3347
3345
|
);
|
|
3348
|
-
function
|
|
3346
|
+
function Yr(e, t) {
|
|
3349
3347
|
if (t == null)
|
|
3350
3348
|
return;
|
|
3351
3349
|
if (t in e)
|
|
@@ -3366,92 +3364,92 @@ function Kr(e, t) {
|
|
|
3366
3364
|
n = void 0;
|
|
3367
3365
|
return n;
|
|
3368
3366
|
}
|
|
3369
|
-
const T = {},
|
|
3367
|
+
const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][e] = r), r), Et = (e, t) => {
|
|
3370
3368
|
if (t == null)
|
|
3371
3369
|
return;
|
|
3372
3370
|
if (t in T && e in T[t])
|
|
3373
3371
|
return T[t][e];
|
|
3374
|
-
const r =
|
|
3372
|
+
const r = ie(t);
|
|
3375
3373
|
for (let n = 0; n < r.length; n++) {
|
|
3376
|
-
const i = r[n], s =
|
|
3374
|
+
const i = r[n], s = tn(i, e);
|
|
3377
3375
|
if (s)
|
|
3378
|
-
return
|
|
3376
|
+
return Kr(e, t, s);
|
|
3379
3377
|
}
|
|
3380
3378
|
};
|
|
3381
|
-
let
|
|
3382
|
-
const
|
|
3383
|
-
function
|
|
3384
|
-
return
|
|
3379
|
+
let Pe;
|
|
3380
|
+
const z = te({});
|
|
3381
|
+
function en(e) {
|
|
3382
|
+
return Pe[e] || null;
|
|
3385
3383
|
}
|
|
3386
3384
|
function xt(e) {
|
|
3387
|
-
return e in
|
|
3385
|
+
return e in Pe;
|
|
3388
3386
|
}
|
|
3389
|
-
function
|
|
3387
|
+
function tn(e, t) {
|
|
3390
3388
|
if (!xt(e))
|
|
3391
3389
|
return null;
|
|
3392
|
-
const r =
|
|
3393
|
-
return
|
|
3390
|
+
const r = en(e);
|
|
3391
|
+
return Yr(r, t);
|
|
3394
3392
|
}
|
|
3395
|
-
function
|
|
3393
|
+
function rn(e) {
|
|
3396
3394
|
if (e == null)
|
|
3397
3395
|
return;
|
|
3398
|
-
const t =
|
|
3396
|
+
const t = ie(e);
|
|
3399
3397
|
for (let r = 0; r < t.length; r++) {
|
|
3400
3398
|
const n = t[r];
|
|
3401
3399
|
if (xt(n))
|
|
3402
3400
|
return n;
|
|
3403
3401
|
}
|
|
3404
3402
|
}
|
|
3405
|
-
function
|
|
3406
|
-
delete T[e],
|
|
3403
|
+
function yt(e, ...t) {
|
|
3404
|
+
delete T[e], z.update((r) => (r[e] = sr.all([r[e] || {}, ...t]), r));
|
|
3407
3405
|
}
|
|
3408
|
-
|
|
3409
|
-
[
|
|
3406
|
+
R(
|
|
3407
|
+
[z],
|
|
3410
3408
|
([e]) => Object.keys(e)
|
|
3411
3409
|
);
|
|
3412
|
-
|
|
3413
|
-
const
|
|
3414
|
-
function
|
|
3415
|
-
|
|
3410
|
+
z.subscribe((e) => Pe = e);
|
|
3411
|
+
const Y = {};
|
|
3412
|
+
function nn(e, t) {
|
|
3413
|
+
Y[e].delete(t), Y[e].size === 0 && delete Y[e];
|
|
3416
3414
|
}
|
|
3417
3415
|
function _t(e) {
|
|
3418
|
-
return
|
|
3416
|
+
return Y[e];
|
|
3419
3417
|
}
|
|
3420
|
-
function
|
|
3421
|
-
return
|
|
3418
|
+
function sn(e) {
|
|
3419
|
+
return ie(e).map((t) => {
|
|
3422
3420
|
const r = _t(t);
|
|
3423
3421
|
return [t, r ? [...r] : []];
|
|
3424
3422
|
}).filter(([, t]) => t.length > 0);
|
|
3425
3423
|
}
|
|
3426
|
-
function
|
|
3427
|
-
return e == null ? !1 :
|
|
3424
|
+
function ve(e) {
|
|
3425
|
+
return e == null ? !1 : ie(e).some(
|
|
3428
3426
|
(t) => {
|
|
3429
3427
|
var r;
|
|
3430
3428
|
return (r = _t(t)) == null ? void 0 : r.size;
|
|
3431
3429
|
}
|
|
3432
3430
|
);
|
|
3433
3431
|
}
|
|
3434
|
-
function
|
|
3432
|
+
function on(e, t) {
|
|
3435
3433
|
return Promise.all(
|
|
3436
|
-
t.map((n) => (
|
|
3437
|
-
).then((n) =>
|
|
3438
|
-
}
|
|
3439
|
-
const
|
|
3440
|
-
function
|
|
3441
|
-
if (!
|
|
3442
|
-
return e in
|
|
3443
|
-
const t =
|
|
3444
|
-
return
|
|
3434
|
+
t.map((n) => (nn(e, n), n().then((i) => i.default || i)))
|
|
3435
|
+
).then((n) => yt(e, ...n));
|
|
3436
|
+
}
|
|
3437
|
+
const j = {};
|
|
3438
|
+
function vt(e) {
|
|
3439
|
+
if (!ve(e))
|
|
3440
|
+
return e in j ? j[e] : Promise.resolve();
|
|
3441
|
+
const t = sn(e);
|
|
3442
|
+
return j[e] = Promise.all(
|
|
3445
3443
|
t.map(
|
|
3446
|
-
([r, n]) =>
|
|
3444
|
+
([r, n]) => on(r, n)
|
|
3447
3445
|
)
|
|
3448
3446
|
).then(() => {
|
|
3449
|
-
if (
|
|
3450
|
-
return
|
|
3451
|
-
delete
|
|
3452
|
-
}),
|
|
3447
|
+
if (ve(e))
|
|
3448
|
+
return vt(e);
|
|
3449
|
+
delete j[e];
|
|
3450
|
+
}), j[e];
|
|
3453
3451
|
}
|
|
3454
|
-
const
|
|
3452
|
+
const an = {
|
|
3455
3453
|
number: {
|
|
3456
3454
|
scientific: { notation: "scientific" },
|
|
3457
3455
|
engineering: { notation: "engineering" },
|
|
@@ -3480,150 +3478,150 @@ const un = {
|
|
|
3480
3478
|
timeZoneName: "short"
|
|
3481
3479
|
}
|
|
3482
3480
|
}
|
|
3483
|
-
},
|
|
3481
|
+
}, un = {
|
|
3484
3482
|
fallbackLocale: null,
|
|
3485
3483
|
loadingDelay: 200,
|
|
3486
|
-
formats:
|
|
3484
|
+
formats: an,
|
|
3487
3485
|
warnOnMissingMessages: !0,
|
|
3488
3486
|
handleMissingMessage: void 0,
|
|
3489
3487
|
ignoreTag: !0
|
|
3490
|
-
},
|
|
3491
|
-
function
|
|
3492
|
-
return
|
|
3493
|
-
}
|
|
3494
|
-
const
|
|
3495
|
-
var
|
|
3496
|
-
for (var r in t
|
|
3497
|
-
|
|
3498
|
-
if (
|
|
3499
|
-
for (var r of
|
|
3500
|
-
dn.call(t, r) &&
|
|
3488
|
+
}, hn = un;
|
|
3489
|
+
function C() {
|
|
3490
|
+
return hn;
|
|
3491
|
+
}
|
|
3492
|
+
const ce = te(!1);
|
|
3493
|
+
var ln = Object.defineProperty, fn = Object.defineProperties, cn = Object.getOwnPropertyDescriptors, Ve = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, dn = Object.prototype.propertyIsEnumerable, ke = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pn = (e, t) => {
|
|
3494
|
+
for (var r in t)
|
|
3495
|
+
mn.call(t, r) && ke(e, r, t[r]);
|
|
3496
|
+
if (Ve)
|
|
3497
|
+
for (var r of Ve(t))
|
|
3498
|
+
dn.call(t, r) && ke(e, r, t[r]);
|
|
3501
3499
|
return e;
|
|
3502
|
-
},
|
|
3503
|
-
let
|
|
3504
|
-
const
|
|
3505
|
-
function
|
|
3500
|
+
}, bn = (e, t) => fn(e, cn(t));
|
|
3501
|
+
let He;
|
|
3502
|
+
const K = te(null);
|
|
3503
|
+
function Xe(e) {
|
|
3506
3504
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3507
3505
|
}
|
|
3508
|
-
function
|
|
3509
|
-
const r =
|
|
3510
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3506
|
+
function ie(e, t = C().fallbackLocale) {
|
|
3507
|
+
const r = Xe(e);
|
|
3508
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xe(t)])] : r;
|
|
3511
3509
|
}
|
|
3512
|
-
function
|
|
3513
|
-
return
|
|
3510
|
+
function B() {
|
|
3511
|
+
return He ?? void 0;
|
|
3514
3512
|
}
|
|
3515
|
-
|
|
3516
|
-
|
|
3513
|
+
K.subscribe((e) => {
|
|
3514
|
+
He = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3517
3515
|
});
|
|
3518
|
-
const
|
|
3519
|
-
if (e &&
|
|
3520
|
-
const { loadingDelay: t } =
|
|
3516
|
+
const gn = (e) => {
|
|
3517
|
+
if (e && rn(e) && ve(e)) {
|
|
3518
|
+
const { loadingDelay: t } = C();
|
|
3521
3519
|
let r;
|
|
3522
|
-
return typeof window < "u" &&
|
|
3523
|
-
() =>
|
|
3520
|
+
return typeof window < "u" && B() != null && t ? r = window.setTimeout(
|
|
3521
|
+
() => ce.set(!0),
|
|
3524
3522
|
t
|
|
3525
|
-
) :
|
|
3526
|
-
|
|
3523
|
+
) : ce.set(!0), vt(e).then(() => {
|
|
3524
|
+
K.set(e);
|
|
3527
3525
|
}).finally(() => {
|
|
3528
|
-
clearTimeout(r),
|
|
3526
|
+
clearTimeout(r), ce.set(!1);
|
|
3529
3527
|
});
|
|
3530
3528
|
}
|
|
3531
|
-
return
|
|
3532
|
-
},
|
|
3533
|
-
set:
|
|
3534
|
-
}),
|
|
3529
|
+
return K.set(e);
|
|
3530
|
+
}, U = bn(pn({}, K), {
|
|
3531
|
+
set: gn
|
|
3532
|
+
}), se = (e) => {
|
|
3535
3533
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3536
3534
|
return (n) => {
|
|
3537
3535
|
const i = JSON.stringify(n);
|
|
3538
3536
|
return i in t ? t[i] : t[i] = e(n);
|
|
3539
3537
|
};
|
|
3540
3538
|
};
|
|
3541
|
-
var
|
|
3539
|
+
var En = Object.defineProperty, ee = Object.getOwnPropertySymbols, Ht = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, We = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ne = (e, t) => {
|
|
3542
3540
|
for (var r in t || (t = {}))
|
|
3543
|
-
|
|
3544
|
-
if (
|
|
3545
|
-
for (var r of
|
|
3546
|
-
Tt.call(t, r) &&
|
|
3541
|
+
Ht.call(t, r) && We(e, r, t[r]);
|
|
3542
|
+
if (ee)
|
|
3543
|
+
for (var r of ee(t))
|
|
3544
|
+
Tt.call(t, r) && We(e, r, t[r]);
|
|
3547
3545
|
return e;
|
|
3548
|
-
},
|
|
3546
|
+
}, G = (e, t) => {
|
|
3549
3547
|
var r = {};
|
|
3550
3548
|
for (var n in e)
|
|
3551
|
-
|
|
3552
|
-
if (e != null &&
|
|
3553
|
-
for (var n of
|
|
3549
|
+
Ht.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3550
|
+
if (e != null && ee)
|
|
3551
|
+
for (var n of ee(e))
|
|
3554
3552
|
t.indexOf(n) < 0 && Tt.call(e, n) && (r[n] = e[n]);
|
|
3555
3553
|
return r;
|
|
3556
3554
|
};
|
|
3557
|
-
const
|
|
3558
|
-
const { formats: r } =
|
|
3555
|
+
const X = (e, t) => {
|
|
3556
|
+
const { formats: r } = C();
|
|
3559
3557
|
if (e in r && t in r[e])
|
|
3560
3558
|
return r[e][t];
|
|
3561
3559
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3562
|
-
}, xn =
|
|
3560
|
+
}, xn = se(
|
|
3563
3561
|
(e) => {
|
|
3564
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3562
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3565
3563
|
if (r == null)
|
|
3566
3564
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3567
|
-
return n && (i =
|
|
3565
|
+
return n && (i = X("number", n)), new Intl.NumberFormat(r, i);
|
|
3568
3566
|
}
|
|
3569
|
-
),
|
|
3567
|
+
), yn = se(
|
|
3570
3568
|
(e) => {
|
|
3571
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3569
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3572
3570
|
if (r == null)
|
|
3573
3571
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3574
|
-
return n ? i =
|
|
3572
|
+
return n ? i = X("date", n) : Object.keys(i).length === 0 && (i = X("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3575
3573
|
}
|
|
3576
|
-
), _n =
|
|
3574
|
+
), _n = se(
|
|
3577
3575
|
(e) => {
|
|
3578
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3576
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3579
3577
|
if (r == null)
|
|
3580
3578
|
throw new Error(
|
|
3581
3579
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3582
3580
|
);
|
|
3583
|
-
return n ? i =
|
|
3581
|
+
return n ? i = X("time", n) : Object.keys(i).length === 0 && (i = X("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3584
3582
|
}
|
|
3585
|
-
),
|
|
3583
|
+
), vn = (e = {}) => {
|
|
3586
3584
|
var t = e, {
|
|
3587
|
-
locale: r =
|
|
3588
|
-
} = t, n =
|
|
3585
|
+
locale: r = B()
|
|
3586
|
+
} = t, n = G(t, [
|
|
3589
3587
|
"locale"
|
|
3590
3588
|
]);
|
|
3591
3589
|
return xn(Ne({ locale: r }, n));
|
|
3592
|
-
},
|
|
3590
|
+
}, Hn = (e = {}) => {
|
|
3593
3591
|
var t = e, {
|
|
3594
|
-
locale: r =
|
|
3595
|
-
} = t, n =
|
|
3592
|
+
locale: r = B()
|
|
3593
|
+
} = t, n = G(t, [
|
|
3596
3594
|
"locale"
|
|
3597
3595
|
]);
|
|
3598
|
-
return
|
|
3596
|
+
return yn(Ne({ locale: r }, n));
|
|
3599
3597
|
}, Tn = (e = {}) => {
|
|
3600
3598
|
var t = e, {
|
|
3601
|
-
locale: r =
|
|
3602
|
-
} = t, n =
|
|
3599
|
+
locale: r = B()
|
|
3600
|
+
} = t, n = G(t, [
|
|
3603
3601
|
"locale"
|
|
3604
3602
|
]);
|
|
3605
3603
|
return _n(Ne({ locale: r }, n));
|
|
3606
|
-
},
|
|
3604
|
+
}, Sn = se(
|
|
3607
3605
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3608
|
-
(e, t =
|
|
3609
|
-
ignoreTag:
|
|
3606
|
+
(e, t = B()) => new qr(e, t, C().formats, {
|
|
3607
|
+
ignoreTag: C().ignoreTag
|
|
3610
3608
|
})
|
|
3611
|
-
),
|
|
3609
|
+
), Bn = (e, t = {}) => {
|
|
3612
3610
|
var r, n, i, s;
|
|
3613
3611
|
let u = t;
|
|
3614
3612
|
typeof e == "object" && (u = e, e = u.id);
|
|
3615
3613
|
const {
|
|
3616
3614
|
values: o,
|
|
3617
|
-
locale: f =
|
|
3615
|
+
locale: f = B(),
|
|
3618
3616
|
default: a
|
|
3619
3617
|
} = u;
|
|
3620
3618
|
if (f == null)
|
|
3621
3619
|
throw new Error(
|
|
3622
3620
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3623
3621
|
);
|
|
3624
|
-
let h =
|
|
3622
|
+
let h = Et(e, f);
|
|
3625
3623
|
if (!h)
|
|
3626
|
-
h = (s = (i = (n = (r =
|
|
3624
|
+
h = (s = (i = (n = (r = C()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3627
3625
|
else if (typeof h != "string")
|
|
3628
3626
|
return console.warn(
|
|
3629
3627
|
`[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.`
|
|
@@ -3632,7 +3630,7 @@ const W = (e, t) => {
|
|
|
3632
3630
|
return h;
|
|
3633
3631
|
let l = h;
|
|
3634
3632
|
try {
|
|
3635
|
-
l =
|
|
3633
|
+
l = Sn(h, f).format(o);
|
|
3636
3634
|
} catch (c) {
|
|
3637
3635
|
c instanceof Error && console.warn(
|
|
3638
3636
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3640,18 +3638,18 @@ const W = (e, t) => {
|
|
|
3640
3638
|
);
|
|
3641
3639
|
}
|
|
3642
3640
|
return l;
|
|
3643
|
-
},
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
function
|
|
3649
|
-
|
|
3650
|
-
}
|
|
3651
|
-
function
|
|
3652
|
-
|
|
3653
|
-
}
|
|
3654
|
-
const
|
|
3641
|
+
}, An = (e, t) => Tn(t).format(e), Pn = (e, t) => Hn(t).format(e), Nn = (e, t) => vn(t).format(e), On = (e, t = B()) => Et(e, t), In = R([U, z], () => Bn);
|
|
3642
|
+
R([U], () => An);
|
|
3643
|
+
R([U], () => Pn);
|
|
3644
|
+
R([U], () => Nn);
|
|
3645
|
+
R([U, z], () => On);
|
|
3646
|
+
function ze(e, t) {
|
|
3647
|
+
yt(e, t);
|
|
3648
|
+
}
|
|
3649
|
+
function wn(e) {
|
|
3650
|
+
U.set(e);
|
|
3651
|
+
}
|
|
3652
|
+
const Ze = {
|
|
3655
3653
|
en: {
|
|
3656
3654
|
errServerUnavailable: "Server unavailable",
|
|
3657
3655
|
errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
|
|
@@ -3665,43 +3663,43 @@ const Qe = {
|
|
|
3665
3663
|
msgEmailVerificationSuccess: "Succes! E-mailul tău a fost verificat cu succes"
|
|
3666
3664
|
}
|
|
3667
3665
|
};
|
|
3668
|
-
function
|
|
3666
|
+
function $n(e) {
|
|
3669
3667
|
let t;
|
|
3670
3668
|
return {
|
|
3671
3669
|
c() {
|
|
3672
|
-
t =
|
|
3670
|
+
t = Ke("div");
|
|
3673
3671
|
},
|
|
3674
3672
|
m(r, n) {
|
|
3675
|
-
|
|
3673
|
+
Ye(r, t, n);
|
|
3676
3674
|
},
|
|
3677
|
-
p:
|
|
3678
|
-
i:
|
|
3679
|
-
o:
|
|
3675
|
+
p: _,
|
|
3676
|
+
i: _,
|
|
3677
|
+
o: _,
|
|
3680
3678
|
d(r) {
|
|
3681
|
-
r &&
|
|
3679
|
+
r && Se(t);
|
|
3682
3680
|
}
|
|
3683
3681
|
};
|
|
3684
3682
|
}
|
|
3685
|
-
function
|
|
3683
|
+
function Ln(e, t, r) {
|
|
3686
3684
|
let n;
|
|
3687
|
-
|
|
3685
|
+
Bt(e, In, (l) => r(4, n = l));
|
|
3688
3686
|
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: u = "" } = t, { translationurl: o = "" } = t;
|
|
3689
3687
|
const f = () => {
|
|
3690
3688
|
fetch(o).then((c) => c.json()).then((c) => {
|
|
3691
|
-
Object.keys(c).forEach((
|
|
3692
|
-
|
|
3689
|
+
Object.keys(c).forEach((b) => {
|
|
3690
|
+
ze(b, c[b]);
|
|
3693
3691
|
});
|
|
3694
3692
|
}).catch((c) => {
|
|
3695
3693
|
console.log(c);
|
|
3696
3694
|
});
|
|
3697
3695
|
};
|
|
3698
|
-
Object.keys(
|
|
3699
|
-
|
|
3696
|
+
Object.keys(Ze).forEach((l) => {
|
|
3697
|
+
ze(l, Ze[l]);
|
|
3700
3698
|
});
|
|
3701
3699
|
const a = () => {
|
|
3702
|
-
|
|
3700
|
+
wn(i);
|
|
3703
3701
|
}, h = () => {
|
|
3704
|
-
let l = new URL(`${s}/v1/player/activatePlayerByHashKey`),
|
|
3702
|
+
let l = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
|
|
3705
3703
|
method: "POST",
|
|
3706
3704
|
headers: {
|
|
3707
3705
|
"Content-Type": "application/json",
|
|
@@ -3709,7 +3707,7 @@ function Mn(e, t, r) {
|
|
|
3709
3707
|
},
|
|
3710
3708
|
body: JSON.stringify({ hashKey: u })
|
|
3711
3709
|
};
|
|
3712
|
-
fetch(l.href,
|
|
3710
|
+
fetch(l.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
|
|
3713
3711
|
{
|
|
3714
3712
|
type: "WidgetNotification",
|
|
3715
3713
|
data: {
|
|
@@ -3718,8 +3716,8 @@ function Mn(e, t, r) {
|
|
|
3718
3716
|
}
|
|
3719
3717
|
},
|
|
3720
3718
|
window.location.href
|
|
3721
|
-
)),
|
|
3722
|
-
window.postMessage({ type: "ActivatePlayerResponse", data:
|
|
3719
|
+
)), g.json())).then((g) => {
|
|
3720
|
+
window.postMessage({ type: "ActivatePlayerResponse", data: g }, window.location.href), g.error && (window.postMessage(
|
|
3723
3721
|
{
|
|
3724
3722
|
type: "WidgetNotification",
|
|
3725
3723
|
data: {
|
|
@@ -3737,7 +3735,7 @@ function Mn(e, t, r) {
|
|
|
3737
3735
|
}
|
|
3738
3736
|
},
|
|
3739
3737
|
window.location.href
|
|
3740
|
-
)),
|
|
3738
|
+
)), g.SESSION_ID && window.postMessage(
|
|
3741
3739
|
{
|
|
3742
3740
|
type: "WidgetNotification",
|
|
3743
3741
|
data: {
|
|
@@ -3758,9 +3756,9 @@ function Mn(e, t, r) {
|
|
|
3758
3756
|
6 && s && u && h();
|
|
3759
3757
|
}, [i, s, u, o];
|
|
3760
3758
|
}
|
|
3761
|
-
class
|
|
3759
|
+
class Mn extends Ft {
|
|
3762
3760
|
constructor(t) {
|
|
3763
|
-
super(),
|
|
3761
|
+
super(), Gt(this, t, Ln, $n, Je, {
|
|
3764
3762
|
lang: 0,
|
|
3765
3763
|
endpoint: 1,
|
|
3766
3764
|
key: 2,
|
|
@@ -3792,7 +3790,7 @@ class Cn extends jt {
|
|
|
3792
3790
|
this.$$set({ translationurl: t }), I();
|
|
3793
3791
|
}
|
|
3794
3792
|
}
|
|
3795
|
-
|
|
3793
|
+
Dt(Mn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|
|
3796
3794
|
export {
|
|
3797
|
-
|
|
3795
|
+
Mn as P
|
|
3798
3796
|
};
|