@everymatrix/player-email-verification 1.86.2 → 1.86.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-CgnLCJ4y.js → PlayerEmailVerification-BEBlzjMH.js} +560 -564
- package/components/PlayerEmailVerification-D4cuMbt0.cjs +16 -0
- package/components/{PlayerEmailVerification-nPNqbsBk.js → PlayerEmailVerification-DgO_reIt.js} +568 -572
- 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-iF1E3V46.cjs +0 -3
package/components/{PlayerEmailVerification-CgnLCJ4y.js → PlayerEmailVerification-BEBlzjMH.js}
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var
|
|
1
|
+
var wt = Object.defineProperty, $t = Object.defineProperties;
|
|
2
2
|
var Lt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Le = Object.getOwnPropertySymbols;
|
|
4
4
|
var Mt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var ae = (e, t, r) => t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Me = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
Mt.call(t, r) &&
|
|
7
|
+
Mt.call(t, r) && ae(e, r, t[r]);
|
|
8
8
|
if (Le)
|
|
9
9
|
for (var r of Le(t))
|
|
10
|
-
Ct.call(t, r) &&
|
|
10
|
+
Ct.call(t, r) && ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ce = (e, t) => $t(e, Lt(t));
|
|
13
|
-
var v = (e, t, r) => (
|
|
13
|
+
var v = (e, t, r) => (ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Re = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (
|
|
15
|
+
var s = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
h(r.next(u));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
i(a);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
h(r.throw(u));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
i(a);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, h = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
|
|
28
|
+
h((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function _() {
|
|
31
31
|
}
|
|
@@ -35,10 +35,10 @@ function rt(e) {
|
|
|
35
35
|
function Ue() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function W(e) {
|
|
39
39
|
e.forEach(rt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Be(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function nt(e, t) {
|
|
@@ -62,7 +62,7 @@ function Ut(e, t, r) {
|
|
|
62
62
|
function st(e, t, r) {
|
|
63
63
|
e.insertBefore(t, r || null);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Ae(e) {
|
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
67
|
}
|
|
68
68
|
function ot(e) {
|
|
@@ -83,79 +83,79 @@ function Ft(e) {
|
|
|
83
83
|
}
|
|
84
84
|
), t;
|
|
85
85
|
}
|
|
86
|
-
let
|
|
87
|
-
function
|
|
88
|
-
|
|
86
|
+
let Pe;
|
|
87
|
+
function k(e) {
|
|
88
|
+
Pe = e;
|
|
89
89
|
}
|
|
90
90
|
const I = [], Ge = [];
|
|
91
|
-
let
|
|
91
|
+
let $ = [];
|
|
92
92
|
const De = [], jt = /* @__PURE__ */ Promise.resolve();
|
|
93
|
-
let
|
|
93
|
+
let de = !1;
|
|
94
94
|
function Vt() {
|
|
95
|
-
|
|
95
|
+
de || (de = !0, jt.then(w));
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
|
|
97
|
+
function be(e) {
|
|
98
|
+
$.push(e);
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const he = /* @__PURE__ */ new Set();
|
|
101
101
|
let N = 0;
|
|
102
|
-
function
|
|
102
|
+
function w() {
|
|
103
103
|
if (N !== 0)
|
|
104
104
|
return;
|
|
105
|
-
const e =
|
|
105
|
+
const e = Pe;
|
|
106
106
|
do {
|
|
107
107
|
try {
|
|
108
108
|
for (; N < I.length; ) {
|
|
109
109
|
const t = I[N];
|
|
110
|
-
N++,
|
|
110
|
+
N++, k(t), kt(t.$$);
|
|
111
111
|
}
|
|
112
112
|
} catch (t) {
|
|
113
113
|
throw I.length = 0, N = 0, t;
|
|
114
114
|
}
|
|
115
|
-
for (
|
|
115
|
+
for (k(null), I.length = 0, N = 0; Ge.length; )
|
|
116
116
|
Ge.pop()();
|
|
117
|
-
for (let t = 0; t <
|
|
118
|
-
const r =
|
|
119
|
-
|
|
117
|
+
for (let t = 0; t < $.length; t += 1) {
|
|
118
|
+
const r = $[t];
|
|
119
|
+
he.has(r) || (he.add(r), r());
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
$.length = 0;
|
|
122
122
|
} while (I.length);
|
|
123
123
|
for (; De.length; )
|
|
124
124
|
De.pop()();
|
|
125
|
-
|
|
125
|
+
de = !1, he.clear(), k(e);
|
|
126
126
|
}
|
|
127
127
|
function kt(e) {
|
|
128
128
|
if (e.fragment !== null) {
|
|
129
|
-
e.update(),
|
|
129
|
+
e.update(), W(e.before_update);
|
|
130
130
|
const t = e.dirty;
|
|
131
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
131
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(be);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
function Xt(e) {
|
|
135
135
|
const t = [], r = [];
|
|
136
|
-
|
|
136
|
+
$.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), $ = t;
|
|
137
137
|
}
|
|
138
|
-
const
|
|
139
|
-
function
|
|
140
|
-
e && e.i && (
|
|
138
|
+
const zt = /* @__PURE__ */ new Set();
|
|
139
|
+
function Wt(e, t) {
|
|
140
|
+
e && e.i && (zt.delete(e), e.i(t));
|
|
141
141
|
}
|
|
142
142
|
function Zt(e, t, r) {
|
|
143
143
|
const { fragment: n, after_update: i } = e.$$;
|
|
144
|
-
n && n.m(t, r),
|
|
145
|
-
const s = e.$$.on_mount.map(rt).filter(
|
|
146
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
147
|
-
}), i.forEach(
|
|
144
|
+
n && n.m(t, r), be(() => {
|
|
145
|
+
const s = e.$$.on_mount.map(rt).filter(Be);
|
|
146
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
|
|
147
|
+
}), i.forEach(be);
|
|
148
148
|
}
|
|
149
149
|
function Qt(e, t) {
|
|
150
150
|
const r = e.$$;
|
|
151
|
-
r.fragment !== null && (Xt(r.after_update),
|
|
151
|
+
r.fragment !== null && (Xt(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
152
152
|
}
|
|
153
153
|
function Jt(e, t) {
|
|
154
154
|
e.$$.dirty[0] === -1 && (I.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
155
155
|
}
|
|
156
|
-
function qt(e, t, r, n, i, s, o = null,
|
|
157
|
-
const
|
|
158
|
-
|
|
156
|
+
function qt(e, t, r, n, i, s, o = null, h = [-1]) {
|
|
157
|
+
const u = Pe;
|
|
158
|
+
k(e);
|
|
159
159
|
const a = e.$$ = {
|
|
160
160
|
fragment: null,
|
|
161
161
|
ctx: [],
|
|
@@ -170,27 +170,27 @@ function qt(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
170
170
|
on_disconnect: [],
|
|
171
171
|
before_update: [],
|
|
172
172
|
after_update: [],
|
|
173
|
-
context: new Map(t.context || (
|
|
173
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
174
174
|
// everything else
|
|
175
175
|
callbacks: Ue(),
|
|
176
|
-
dirty:
|
|
176
|
+
dirty: h,
|
|
177
177
|
skip_bound: !1,
|
|
178
|
-
root: t.target ||
|
|
178
|
+
root: t.target || u.$$.root
|
|
179
179
|
};
|
|
180
180
|
o && o(a.root);
|
|
181
181
|
let l = !1;
|
|
182
|
-
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
183
|
-
const
|
|
184
|
-
return a.ctx && i(a.ctx[f], a.ctx[f] =
|
|
185
|
-
}) : [], a.update(), l = !0,
|
|
182
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
183
|
+
const g = b.length ? b[0] : c;
|
|
184
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = g) && (!a.skip_bound && a.bound[f] && a.bound[f](g), l && Jt(e, f)), c;
|
|
185
|
+
}) : [], a.update(), l = !0, W(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
186
186
|
if (t.hydrate) {
|
|
187
187
|
const f = Dt(t.target);
|
|
188
|
-
a.fragment && a.fragment.l(f), f.forEach(
|
|
188
|
+
a.fragment && a.fragment.l(f), f.forEach(Ae);
|
|
189
189
|
} else
|
|
190
190
|
a.fragment && a.fragment.c();
|
|
191
|
-
t.intro &&
|
|
191
|
+
t.intro && Wt(e.$$.fragment), Zt(e, t.target, t.anchor), w();
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
k(u);
|
|
194
194
|
}
|
|
195
195
|
let at;
|
|
196
196
|
typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
@@ -247,7 +247,7 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
247
247
|
st(a, o, l);
|
|
248
248
|
},
|
|
249
249
|
d: function(a) {
|
|
250
|
-
a &&
|
|
250
|
+
a && Ae(o);
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
};
|
|
@@ -259,7 +259,7 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
259
259
|
s in n && (r[s] = [t(s)]);
|
|
260
260
|
for (const s of this.attributes) {
|
|
261
261
|
const o = this.$$g_p(s.name);
|
|
262
|
-
o in this.$$d || (this.$$d[o] =
|
|
262
|
+
o in this.$$d || (this.$$d[o] = q(o, s.value, this.$$p_d, "toProp"));
|
|
263
263
|
}
|
|
264
264
|
for (const s in this.$$p_d)
|
|
265
265
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -276,7 +276,7 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
276
276
|
this.$$r = !0;
|
|
277
277
|
for (const s in this.$$p_d)
|
|
278
278
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
279
|
-
const o =
|
|
279
|
+
const o = q(
|
|
280
280
|
s,
|
|
281
281
|
this.$$d[s],
|
|
282
282
|
this.$$p_d,
|
|
@@ -289,8 +289,8 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
289
289
|
this.$$c.$$.after_update.push(i), i();
|
|
290
290
|
for (const s in this.$$l)
|
|
291
291
|
for (const o of this.$$l[s]) {
|
|
292
|
-
const
|
|
293
|
-
this.$$l_u.set(o,
|
|
292
|
+
const h = this.$$c.$on(s, o);
|
|
293
|
+
this.$$l_u.set(o, h);
|
|
294
294
|
}
|
|
295
295
|
this.$$l = {};
|
|
296
296
|
}
|
|
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
300
300
|
// and setting attributes through setAttribute etc, this is helpful
|
|
301
301
|
attributeChangedCallback(t, r, n) {
|
|
302
302
|
var i;
|
|
303
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
303
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = q(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
304
304
|
}
|
|
305
305
|
disconnectedCallback() {
|
|
306
306
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -313,7 +313,7 @@ typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
|
313
313
|
) || t;
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
|
-
function
|
|
316
|
+
function q(e, t, r, n) {
|
|
317
317
|
var s;
|
|
318
318
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
319
319
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -350,25 +350,25 @@ function Yt(e, t, r, n, i, s) {
|
|
|
350
350
|
}
|
|
351
351
|
static get observedAttributes() {
|
|
352
352
|
return Object.keys(t).map(
|
|
353
|
-
(
|
|
353
|
+
(h) => (t[h].attribute || h).toLowerCase()
|
|
354
354
|
);
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
return Object.keys(t).forEach((
|
|
358
|
-
Object.defineProperty(o.prototype,
|
|
357
|
+
return Object.keys(t).forEach((h) => {
|
|
358
|
+
Object.defineProperty(o.prototype, h, {
|
|
359
359
|
get() {
|
|
360
|
-
return this.$$c &&
|
|
360
|
+
return this.$$c && h in this.$$c ? this.$$c[h] : this.$$d[h];
|
|
361
361
|
},
|
|
362
|
-
set(
|
|
362
|
+
set(u) {
|
|
363
363
|
var a;
|
|
364
|
-
|
|
364
|
+
u = q(h, u, t), this.$$d[h] = u, (a = this.$$c) == null || a.$set({ [h]: u });
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
}), n.forEach((
|
|
368
|
-
Object.defineProperty(o.prototype,
|
|
367
|
+
}), n.forEach((h) => {
|
|
368
|
+
Object.defineProperty(o.prototype, h, {
|
|
369
369
|
get() {
|
|
370
|
-
var
|
|
371
|
-
return (
|
|
370
|
+
var u;
|
|
371
|
+
return (u = this.$$c) == null ? void 0 : u[h];
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}), e.element = /** @type {any} */
|
|
@@ -404,7 +404,7 @@ class Kt {
|
|
|
404
404
|
* @returns {() => void}
|
|
405
405
|
*/
|
|
406
406
|
$on(t, r) {
|
|
407
|
-
if (!
|
|
407
|
+
if (!Be(r))
|
|
408
408
|
return _;
|
|
409
409
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
410
410
|
return n.push(r), () => {
|
|
@@ -422,66 +422,66 @@ class Kt {
|
|
|
422
422
|
}
|
|
423
423
|
const er = "4";
|
|
424
424
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
|
425
|
-
const
|
|
425
|
+
const O = [];
|
|
426
426
|
function tr(e, t) {
|
|
427
427
|
return {
|
|
428
|
-
subscribe:
|
|
428
|
+
subscribe: re(e, t).subscribe
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function re(e, t = _) {
|
|
432
432
|
let r;
|
|
433
433
|
const n = /* @__PURE__ */ new Set();
|
|
434
|
-
function i(
|
|
435
|
-
if (nt(e,
|
|
436
|
-
const
|
|
434
|
+
function i(h) {
|
|
435
|
+
if (nt(e, h) && (e = h, r)) {
|
|
436
|
+
const u = !O.length;
|
|
437
437
|
for (const a of n)
|
|
438
|
-
a[1](),
|
|
439
|
-
if (
|
|
440
|
-
for (let a = 0; a <
|
|
441
|
-
|
|
442
|
-
|
|
438
|
+
a[1](), O.push(a, e);
|
|
439
|
+
if (u) {
|
|
440
|
+
for (let a = 0; a < O.length; a += 2)
|
|
441
|
+
O[a][0](O[a + 1]);
|
|
442
|
+
O.length = 0;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function s(
|
|
447
|
-
i(
|
|
446
|
+
function s(h) {
|
|
447
|
+
i(h(e));
|
|
448
448
|
}
|
|
449
|
-
function o(
|
|
450
|
-
const a = [
|
|
451
|
-
return n.add(a), n.size === 1 && (r = t(i, s) || _),
|
|
449
|
+
function o(h, u = _) {
|
|
450
|
+
const a = [h, u];
|
|
451
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || _), h(e), () => {
|
|
452
452
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
453
453
|
};
|
|
454
454
|
}
|
|
455
455
|
return { set: i, update: s, subscribe: o };
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function U(e, t, r) {
|
|
458
458
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
459
459
|
if (!i.every(Boolean))
|
|
460
460
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
461
461
|
const s = t.length < 2;
|
|
462
|
-
return tr(r, (o,
|
|
463
|
-
let
|
|
462
|
+
return tr(r, (o, h) => {
|
|
463
|
+
let u = !1;
|
|
464
464
|
const a = [];
|
|
465
465
|
let l = 0, f = _;
|
|
466
466
|
const c = () => {
|
|
467
467
|
if (l)
|
|
468
468
|
return;
|
|
469
469
|
f();
|
|
470
|
-
const
|
|
471
|
-
s ? o(
|
|
472
|
-
},
|
|
473
|
-
(
|
|
474
|
-
|
|
470
|
+
const g = t(n ? a[0] : a, o, h);
|
|
471
|
+
s ? o(g) : f = Be(g) ? g : _;
|
|
472
|
+
}, b = i.map(
|
|
473
|
+
(g, x) => it(
|
|
474
|
+
g,
|
|
475
475
|
(T) => {
|
|
476
|
-
a[x] = T, l &= ~(1 << x),
|
|
476
|
+
a[x] = T, l &= ~(1 << x), u && c();
|
|
477
477
|
},
|
|
478
478
|
() => {
|
|
479
479
|
l |= 1 << x;
|
|
480
480
|
}
|
|
481
481
|
)
|
|
482
482
|
);
|
|
483
|
-
return
|
|
484
|
-
|
|
483
|
+
return u = !0, c(), function() {
|
|
484
|
+
W(b), f(), u = !1;
|
|
485
485
|
};
|
|
486
486
|
});
|
|
487
487
|
}
|
|
@@ -496,28 +496,28 @@ function ir(e) {
|
|
|
496
496
|
}
|
|
497
497
|
function sr(e) {
|
|
498
498
|
var t = Object.prototype.toString.call(e);
|
|
499
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
499
|
+
return t === "[object RegExp]" || t === "[object Date]" || hr(e);
|
|
500
500
|
}
|
|
501
501
|
var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
|
|
502
|
-
function
|
|
502
|
+
function hr(e) {
|
|
503
503
|
return e.$$typeof === ar;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function ur(e) {
|
|
506
506
|
return Array.isArray(e) ? [] : {};
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
508
|
+
function X(e, t) {
|
|
509
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? L(ur(e), e, t) : e;
|
|
510
510
|
}
|
|
511
511
|
function lr(e, t, r) {
|
|
512
512
|
return e.concat(t).map(function(n) {
|
|
513
|
-
return
|
|
513
|
+
return X(n, r);
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
516
|
function fr(e, t) {
|
|
517
517
|
if (!t.customMerge)
|
|
518
|
-
return
|
|
518
|
+
return L;
|
|
519
519
|
var r = t.customMerge(e);
|
|
520
|
-
return typeof r == "function" ? r :
|
|
520
|
+
return typeof r == "function" ? r : L;
|
|
521
521
|
}
|
|
522
522
|
function cr(e) {
|
|
523
523
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -527,7 +527,7 @@ function cr(e) {
|
|
|
527
527
|
function Fe(e) {
|
|
528
528
|
return Object.keys(e).concat(cr(e));
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ht(e, t) {
|
|
531
531
|
try {
|
|
532
532
|
return t in e;
|
|
533
533
|
} catch (r) {
|
|
@@ -535,56 +535,70 @@ function ut(e, t) {
|
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
function mr(e, t) {
|
|
538
|
-
return
|
|
538
|
+
return ht(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
539
539
|
}
|
|
540
540
|
function pr(e, t, r) {
|
|
541
541
|
var n = {};
|
|
542
542
|
return r.isMergeableObject(e) && Fe(e).forEach(function(i) {
|
|
543
|
-
n[i] =
|
|
543
|
+
n[i] = X(e[i], r);
|
|
544
544
|
}), Fe(t).forEach(function(i) {
|
|
545
|
-
mr(e, i) || (
|
|
545
|
+
mr(e, i) || (ht(e, i) && r.isMergeableObject(t[i]) ? n[i] = fr(i, r)(e[i], t[i], r) : n[i] = X(t[i], r));
|
|
546
546
|
}), n;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified =
|
|
548
|
+
function L(e, t, r) {
|
|
549
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = X;
|
|
550
550
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
551
|
-
return s ? n ? r.arrayMerge(e, t, r) : pr(e, t, r) :
|
|
551
|
+
return s ? n ? r.arrayMerge(e, t, r) : pr(e, t, r) : X(t, r);
|
|
552
552
|
}
|
|
553
|
-
|
|
553
|
+
L.all = function(t, r) {
|
|
554
554
|
if (!Array.isArray(t))
|
|
555
555
|
throw new Error("first argument should be an array");
|
|
556
556
|
return t.reduce(function(n, i) {
|
|
557
|
-
return
|
|
557
|
+
return L(n, i, r);
|
|
558
558
|
}, {});
|
|
559
559
|
};
|
|
560
|
-
var dr =
|
|
560
|
+
var dr = L, br = dr;
|
|
561
561
|
const gr = /* @__PURE__ */ rr(br);
|
|
562
|
-
|
|
563
|
-
|
|
562
|
+
/*! *****************************************************************************
|
|
563
|
+
Copyright (c) Microsoft Corporation.
|
|
564
|
+
|
|
565
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
566
|
+
purpose with or without fee is hereby granted.
|
|
567
|
+
|
|
568
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
569
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
570
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
571
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
572
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
573
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
574
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
575
|
+
***************************************************************************** */
|
|
576
|
+
var ge = function(e, t) {
|
|
577
|
+
return ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
564
578
|
r.__proto__ = n;
|
|
565
579
|
} || function(r, n) {
|
|
566
580
|
for (var i in n)
|
|
567
581
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
568
|
-
},
|
|
582
|
+
}, ge(e, t);
|
|
569
583
|
};
|
|
570
|
-
function
|
|
584
|
+
function ne(e, t) {
|
|
571
585
|
if (typeof t != "function" && t !== null)
|
|
572
586
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
573
|
-
|
|
587
|
+
ge(e, t);
|
|
574
588
|
function r() {
|
|
575
589
|
this.constructor = e;
|
|
576
590
|
}
|
|
577
591
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
578
592
|
}
|
|
579
|
-
var
|
|
580
|
-
return
|
|
593
|
+
var d = function() {
|
|
594
|
+
return d = Object.assign || function(t) {
|
|
581
595
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
582
596
|
r = arguments[n];
|
|
583
597
|
for (var s in r)
|
|
584
598
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
585
599
|
}
|
|
586
600
|
return t;
|
|
587
|
-
},
|
|
601
|
+
}, d.apply(this, arguments);
|
|
588
602
|
};
|
|
589
603
|
function Er(e, t) {
|
|
590
604
|
var r = {};
|
|
@@ -595,14 +609,14 @@ function Er(e, t) {
|
|
|
595
609
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
596
610
|
return r;
|
|
597
611
|
}
|
|
598
|
-
function
|
|
599
|
-
if (
|
|
612
|
+
function ue(e, t, r) {
|
|
613
|
+
if (arguments.length === 2)
|
|
600
614
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
601
615
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
602
|
-
return e.concat(s ||
|
|
616
|
+
return e.concat(s || t);
|
|
603
617
|
}
|
|
604
|
-
function
|
|
605
|
-
var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy :
|
|
618
|
+
function le(e, t) {
|
|
619
|
+
var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : xr;
|
|
606
620
|
return i(e, {
|
|
607
621
|
cache: r,
|
|
608
622
|
serializer: n
|
|
@@ -611,103 +625,95 @@ function ce(e, t) {
|
|
|
611
625
|
function yr(e) {
|
|
612
626
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
613
627
|
}
|
|
614
|
-
function
|
|
628
|
+
function ut(e, t, r, n) {
|
|
615
629
|
var i = yr(n) ? n : r(n), s = t.get(i);
|
|
616
630
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
617
631
|
}
|
|
618
|
-
function
|
|
632
|
+
function lt(e, t, r) {
|
|
619
633
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
620
634
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
621
635
|
}
|
|
622
|
-
function
|
|
636
|
+
function Ne(e, t, r, n, i) {
|
|
623
637
|
return r.bind(t, e, n, i);
|
|
624
638
|
}
|
|
639
|
+
function xr(e, t) {
|
|
640
|
+
var r = e.length === 1 ? ut : lt;
|
|
641
|
+
return Ne(e, this, r, t.cache.create(), t.serializer);
|
|
642
|
+
}
|
|
625
643
|
function vr(e, t) {
|
|
626
|
-
|
|
627
|
-
return lt(e, this, r, t.cache.create(), t.serializer);
|
|
644
|
+
return Ne(e, this, lt, t.cache.create(), t.serializer);
|
|
628
645
|
}
|
|
629
646
|
function _r(e, t) {
|
|
630
|
-
return
|
|
647
|
+
return Ne(e, this, ut, t.cache.create(), t.serializer);
|
|
631
648
|
}
|
|
632
649
|
var Hr = function() {
|
|
633
650
|
return JSON.stringify(arguments);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
}()
|
|
646
|
-
), Tr = {
|
|
651
|
+
};
|
|
652
|
+
function Oe() {
|
|
653
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
654
|
+
}
|
|
655
|
+
Oe.prototype.get = function(e) {
|
|
656
|
+
return this.cache[e];
|
|
657
|
+
};
|
|
658
|
+
Oe.prototype.set = function(e, t) {
|
|
659
|
+
this.cache[e] = t;
|
|
660
|
+
};
|
|
661
|
+
var Tr = {
|
|
647
662
|
create: function() {
|
|
648
|
-
return new
|
|
663
|
+
return new Oe();
|
|
649
664
|
}
|
|
650
|
-
},
|
|
651
|
-
variadic:
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
655
|
-
r = arguments[n];
|
|
656
|
-
for (var s in r)
|
|
657
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
658
|
-
}
|
|
659
|
-
return t;
|
|
660
|
-
}, te.apply(this, arguments);
|
|
661
|
-
};
|
|
662
|
-
var m;
|
|
665
|
+
}, fe = {
|
|
666
|
+
variadic: vr,
|
|
667
|
+
monadic: _r
|
|
668
|
+
}, m;
|
|
663
669
|
(function(e) {
|
|
664
670
|
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";
|
|
665
671
|
})(m || (m = {}));
|
|
666
|
-
var
|
|
672
|
+
var E;
|
|
667
673
|
(function(e) {
|
|
668
674
|
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";
|
|
669
|
-
})(
|
|
670
|
-
var
|
|
675
|
+
})(E || (E = {}));
|
|
676
|
+
var M;
|
|
671
677
|
(function(e) {
|
|
672
678
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
673
|
-
})(
|
|
679
|
+
})(M || (M = {}));
|
|
674
680
|
function je(e) {
|
|
675
|
-
return e.type ===
|
|
681
|
+
return e.type === E.literal;
|
|
676
682
|
}
|
|
677
|
-
function
|
|
678
|
-
return e.type ===
|
|
683
|
+
function Sr(e) {
|
|
684
|
+
return e.type === E.argument;
|
|
679
685
|
}
|
|
680
686
|
function ft(e) {
|
|
681
|
-
return e.type ===
|
|
687
|
+
return e.type === E.number;
|
|
682
688
|
}
|
|
683
689
|
function ct(e) {
|
|
684
|
-
return e.type ===
|
|
690
|
+
return e.type === E.date;
|
|
685
691
|
}
|
|
686
692
|
function mt(e) {
|
|
687
|
-
return e.type ===
|
|
693
|
+
return e.type === E.time;
|
|
688
694
|
}
|
|
689
695
|
function pt(e) {
|
|
690
|
-
return e.type ===
|
|
696
|
+
return e.type === E.select;
|
|
691
697
|
}
|
|
692
698
|
function dt(e) {
|
|
693
|
-
return e.type ===
|
|
699
|
+
return e.type === E.plural;
|
|
694
700
|
}
|
|
695
|
-
function
|
|
696
|
-
return e.type ===
|
|
701
|
+
function Br(e) {
|
|
702
|
+
return e.type === E.pound;
|
|
697
703
|
}
|
|
698
704
|
function bt(e) {
|
|
699
|
-
return e.type ===
|
|
705
|
+
return e.type === E.tag;
|
|
700
706
|
}
|
|
701
707
|
function gt(e) {
|
|
702
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
708
|
+
return !!(e && typeof e == "object" && e.type === M.number);
|
|
703
709
|
}
|
|
704
|
-
function
|
|
705
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
710
|
+
function Ee(e) {
|
|
711
|
+
return !!(e && typeof e == "object" && e.type === M.dateTime);
|
|
706
712
|
}
|
|
707
|
-
var Et = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
708
|
-
function
|
|
713
|
+
var Et = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ar = /(?:[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;
|
|
714
|
+
function Pr(e) {
|
|
709
715
|
var t = {};
|
|
710
|
-
return e.replace(
|
|
716
|
+
return e.replace(Ar, function(r) {
|
|
711
717
|
var n = r.length;
|
|
712
718
|
switch (r[0]) {
|
|
713
719
|
case "G":
|
|
@@ -796,18 +802,8 @@ function Or(e) {
|
|
|
796
802
|
return "";
|
|
797
803
|
}), t;
|
|
798
804
|
}
|
|
799
|
-
var E = function() {
|
|
800
|
-
return E = Object.assign || function(t) {
|
|
801
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
802
|
-
r = arguments[n];
|
|
803
|
-
for (var s in r)
|
|
804
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
805
|
-
}
|
|
806
|
-
return t;
|
|
807
|
-
}, E.apply(this, arguments);
|
|
808
|
-
};
|
|
809
805
|
var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
810
|
-
function
|
|
806
|
+
function Or(e) {
|
|
811
807
|
if (e.length === 0)
|
|
812
808
|
throw new Error("Number skeleton cannot be empty");
|
|
813
809
|
for (var t = e.split(Nr).filter(function(c) {
|
|
@@ -816,19 +812,19 @@ function wr(e) {
|
|
|
816
812
|
var s = i[n], o = s.split("/");
|
|
817
813
|
if (o.length === 0)
|
|
818
814
|
throw new Error("Invalid number skeleton");
|
|
819
|
-
for (var
|
|
815
|
+
for (var h = o[0], u = o.slice(1), a = 0, l = u; a < l.length; a++) {
|
|
820
816
|
var f = l[a];
|
|
821
817
|
if (f.length === 0)
|
|
822
818
|
throw new Error("Invalid number skeleton");
|
|
823
819
|
}
|
|
824
|
-
r.push({ stem:
|
|
820
|
+
r.push({ stem: h, options: u });
|
|
825
821
|
}
|
|
826
822
|
return r;
|
|
827
823
|
}
|
|
828
824
|
function Ir(e) {
|
|
829
825
|
return e.replace(/^(.*?)-/, "");
|
|
830
826
|
}
|
|
831
|
-
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
827
|
+
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yt = /^(@+)?(\+|#+)?[rs]?$/g, wr = /(\*)(0+)|(#+)(0+)|(0+)/g, xt = /^(0+)$/;
|
|
832
828
|
function ke(e) {
|
|
833
829
|
var t = {};
|
|
834
830
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yt, function(r, n, i) {
|
|
@@ -875,7 +871,7 @@ function vt(e) {
|
|
|
875
871
|
};
|
|
876
872
|
}
|
|
877
873
|
}
|
|
878
|
-
function
|
|
874
|
+
function $r(e) {
|
|
879
875
|
var t;
|
|
880
876
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
881
877
|
notation: "engineering"
|
|
@@ -893,7 +889,7 @@ function Xe(e) {
|
|
|
893
889
|
var t = {}, r = vt(e);
|
|
894
890
|
return r || t;
|
|
895
891
|
}
|
|
896
|
-
function
|
|
892
|
+
function Lr(e) {
|
|
897
893
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
898
894
|
var i = n[r];
|
|
899
895
|
switch (i.stem) {
|
|
@@ -928,13 +924,13 @@ function Mr(e) {
|
|
|
928
924
|
t.notation = "compact", t.compactDisplay = "long";
|
|
929
925
|
continue;
|
|
930
926
|
case "scientific":
|
|
931
|
-
t =
|
|
932
|
-
return
|
|
927
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, a) {
|
|
928
|
+
return d(d({}, u), Xe(a));
|
|
933
929
|
}, {}));
|
|
934
930
|
continue;
|
|
935
931
|
case "engineering":
|
|
936
|
-
t =
|
|
937
|
-
return
|
|
932
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, a) {
|
|
933
|
+
return d(d({}, u), Xe(a));
|
|
938
934
|
}, {}));
|
|
939
935
|
continue;
|
|
940
936
|
case "notation-simple":
|
|
@@ -979,13 +975,13 @@ function Mr(e) {
|
|
|
979
975
|
case "integer-width":
|
|
980
976
|
if (i.options.length > 1)
|
|
981
977
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
982
|
-
i.options[0].replace(
|
|
978
|
+
i.options[0].replace(wr, function(u, a, l, f, c, b) {
|
|
983
979
|
if (a)
|
|
984
980
|
t.minimumIntegerDigits = l.length;
|
|
985
981
|
else {
|
|
986
982
|
if (f && c)
|
|
987
983
|
throw new Error("We currently do not support maximum integer digits");
|
|
988
|
-
if (
|
|
984
|
+
if (b)
|
|
989
985
|
throw new Error("We currently do not support exact integer digits");
|
|
990
986
|
}
|
|
991
987
|
return "";
|
|
@@ -999,25 +995,25 @@ function Mr(e) {
|
|
|
999
995
|
if (Ve.test(i.stem)) {
|
|
1000
996
|
if (i.options.length > 1)
|
|
1001
997
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1002
|
-
i.stem.replace(Ve, function(
|
|
1003
|
-
return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
998
|
+
i.stem.replace(Ve, function(u, a, l, f, c, b) {
|
|
999
|
+
return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1004
1000
|
});
|
|
1005
1001
|
var s = i.options[0];
|
|
1006
|
-
s === "w" ? t =
|
|
1002
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), ke(s)));
|
|
1007
1003
|
continue;
|
|
1008
1004
|
}
|
|
1009
1005
|
if (yt.test(i.stem)) {
|
|
1010
|
-
t =
|
|
1006
|
+
t = d(d({}, t), ke(i.stem));
|
|
1011
1007
|
continue;
|
|
1012
1008
|
}
|
|
1013
1009
|
var o = vt(i.stem);
|
|
1014
|
-
o && (t =
|
|
1015
|
-
var
|
|
1016
|
-
|
|
1010
|
+
o && (t = d(d({}, t), o));
|
|
1011
|
+
var h = $r(i.stem);
|
|
1012
|
+
h && (t = d(d({}, t), h));
|
|
1017
1013
|
}
|
|
1018
1014
|
return t;
|
|
1019
1015
|
}
|
|
1020
|
-
var
|
|
1016
|
+
var J = {
|
|
1021
1017
|
"001": [
|
|
1022
1018
|
"H",
|
|
1023
1019
|
"h"
|
|
@@ -2432,15 +2428,15 @@ var q = {
|
|
|
2432
2428
|
"h"
|
|
2433
2429
|
]
|
|
2434
2430
|
};
|
|
2435
|
-
function
|
|
2431
|
+
function Mr(e, t) {
|
|
2436
2432
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2437
2433
|
var i = e.charAt(n);
|
|
2438
2434
|
if (i === "j") {
|
|
2439
2435
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2440
2436
|
s++, n++;
|
|
2441
|
-
var o = 1 + (s & 1),
|
|
2442
|
-
for ((a == "H" || a == "k") && (
|
|
2443
|
-
r +=
|
|
2437
|
+
var o = 1 + (s & 1), h = s < 2 ? 1 : 3 + (s >> 1), u = "a", a = Cr(t);
|
|
2438
|
+
for ((a == "H" || a == "k") && (h = 0); h-- > 0; )
|
|
2439
|
+
r += u;
|
|
2444
2440
|
for (; o-- > 0; )
|
|
2445
2441
|
r = a + r;
|
|
2446
2442
|
} else
|
|
@@ -2448,7 +2444,7 @@ function Cr(e, t) {
|
|
|
2448
2444
|
}
|
|
2449
2445
|
return r;
|
|
2450
2446
|
}
|
|
2451
|
-
function
|
|
2447
|
+
function Cr(e) {
|
|
2452
2448
|
var t = e.hourCycle;
|
|
2453
2449
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2454
2450
|
e.hourCycles && // @ts-ignore
|
|
@@ -2467,23 +2463,23 @@ function Rr(e) {
|
|
|
2467
2463
|
}
|
|
2468
2464
|
var r = e.language, n;
|
|
2469
2465
|
r !== "root" && (n = e.maximize().region);
|
|
2470
|
-
var i =
|
|
2466
|
+
var i = J[n || ""] || J[r || ""] || J["".concat(r, "-001")] || J["001"];
|
|
2471
2467
|
return i[0];
|
|
2472
2468
|
}
|
|
2473
|
-
var
|
|
2469
|
+
var ce, Rr = new RegExp("^".concat(Et.source, "*")), Ur = new RegExp("".concat(Et.source, "*$"));
|
|
2474
2470
|
function p(e, t) {
|
|
2475
2471
|
return { start: e, end: t };
|
|
2476
2472
|
}
|
|
2477
|
-
var
|
|
2473
|
+
var Gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dr = !!String.fromCodePoint, Fr = !!Object.fromEntries, jr = !!String.prototype.codePointAt, Vr = !!String.prototype.trimStart, kr = !!String.prototype.trimEnd, Xr = !!Number.isSafeInteger, zr = Xr ? Number.isSafeInteger : function(e) {
|
|
2478
2474
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2479
|
-
},
|
|
2475
|
+
}, ye = !0;
|
|
2480
2476
|
try {
|
|
2481
|
-
var
|
|
2482
|
-
|
|
2477
|
+
var Wr = Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2478
|
+
ye = ((ce = Wr.exec("a")) === null || ce === void 0 ? void 0 : ce[0]) === "a";
|
|
2483
2479
|
} catch (e) {
|
|
2484
|
-
|
|
2480
|
+
ye = !1;
|
|
2485
2481
|
}
|
|
2486
|
-
var
|
|
2482
|
+
var ze = Gr ? (
|
|
2487
2483
|
// Native
|
|
2488
2484
|
function(t, r, n) {
|
|
2489
2485
|
return t.startsWith(r, n);
|
|
@@ -2493,7 +2489,7 @@ var We = Dr ? (
|
|
|
2493
2489
|
function(t, r, n) {
|
|
2494
2490
|
return t.slice(n, n + r.length) === r;
|
|
2495
2491
|
}
|
|
2496
|
-
),
|
|
2492
|
+
), xe = Dr ? String.fromCodePoint : (
|
|
2497
2493
|
// IE11
|
|
2498
2494
|
function() {
|
|
2499
2495
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2505,19 +2501,19 @@ var We = Dr ? (
|
|
|
2505
2501
|
}
|
|
2506
2502
|
return n;
|
|
2507
2503
|
}
|
|
2508
|
-
),
|
|
2504
|
+
), We = (
|
|
2509
2505
|
// native
|
|
2510
|
-
|
|
2506
|
+
Fr ? Object.fromEntries : (
|
|
2511
2507
|
// Ponyfill
|
|
2512
2508
|
function(t) {
|
|
2513
2509
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2514
|
-
var s = i[n], o = s[0],
|
|
2515
|
-
r[o] =
|
|
2510
|
+
var s = i[n], o = s[0], h = s[1];
|
|
2511
|
+
r[o] = h;
|
|
2516
2512
|
}
|
|
2517
2513
|
return r;
|
|
2518
2514
|
}
|
|
2519
2515
|
)
|
|
2520
|
-
), _t =
|
|
2516
|
+
), _t = jr ? (
|
|
2521
2517
|
// Native
|
|
2522
2518
|
function(t, r) {
|
|
2523
2519
|
return t.codePointAt(r);
|
|
@@ -2531,7 +2527,7 @@ var We = Dr ? (
|
|
|
2531
2527
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2532
2528
|
}
|
|
2533
2529
|
}
|
|
2534
|
-
),
|
|
2530
|
+
), Zr = Vr ? (
|
|
2535
2531
|
// Native
|
|
2536
2532
|
function(t) {
|
|
2537
2533
|
return t.trimStart();
|
|
@@ -2539,9 +2535,9 @@ var We = Dr ? (
|
|
|
2539
2535
|
) : (
|
|
2540
2536
|
// Ponyfill
|
|
2541
2537
|
function(t) {
|
|
2542
|
-
return t.replace(
|
|
2538
|
+
return t.replace(Rr, "");
|
|
2543
2539
|
}
|
|
2544
|
-
),
|
|
2540
|
+
), Qr = kr ? (
|
|
2545
2541
|
// Native
|
|
2546
2542
|
function(t) {
|
|
2547
2543
|
return t.trimEnd();
|
|
@@ -2549,32 +2545,32 @@ var We = Dr ? (
|
|
|
2549
2545
|
) : (
|
|
2550
2546
|
// Ponyfill
|
|
2551
2547
|
function(t) {
|
|
2552
|
-
return t.replace(
|
|
2548
|
+
return t.replace(Ur, "");
|
|
2553
2549
|
}
|
|
2554
2550
|
);
|
|
2555
2551
|
function Ht(e, t) {
|
|
2556
2552
|
return new RegExp(e, t);
|
|
2557
2553
|
}
|
|
2558
|
-
var
|
|
2559
|
-
if (
|
|
2554
|
+
var ve;
|
|
2555
|
+
if (ye) {
|
|
2560
2556
|
var Ze = Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2561
|
-
|
|
2557
|
+
ve = function(t, r) {
|
|
2562
2558
|
var n;
|
|
2563
2559
|
Ze.lastIndex = r;
|
|
2564
2560
|
var i = Ze.exec(t);
|
|
2565
2561
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2566
2562
|
};
|
|
2567
2563
|
} else
|
|
2568
|
-
|
|
2564
|
+
ve = function(t, r) {
|
|
2569
2565
|
for (var n = []; ; ) {
|
|
2570
2566
|
var i = _t(t, r);
|
|
2571
|
-
if (i === void 0 ||
|
|
2567
|
+
if (i === void 0 || Tt(i) || Kr(i))
|
|
2572
2568
|
break;
|
|
2573
2569
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2574
2570
|
}
|
|
2575
|
-
return
|
|
2571
|
+
return xe.apply(void 0, n);
|
|
2576
2572
|
};
|
|
2577
|
-
var
|
|
2573
|
+
var Jr = (
|
|
2578
2574
|
/** @class */
|
|
2579
2575
|
function() {
|
|
2580
2576
|
function e(t, r) {
|
|
@@ -2596,16 +2592,16 @@ var qr = (
|
|
|
2596
2592
|
if (s === 125 && t > 0)
|
|
2597
2593
|
break;
|
|
2598
2594
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2599
|
-
var
|
|
2595
|
+
var h = this.clonePosition();
|
|
2600
2596
|
this.bump(), i.push({
|
|
2601
|
-
type:
|
|
2602
|
-
location: p(
|
|
2597
|
+
type: E.pound,
|
|
2598
|
+
location: p(h, this.clonePosition())
|
|
2603
2599
|
});
|
|
2604
2600
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2605
2601
|
if (n)
|
|
2606
2602
|
break;
|
|
2607
2603
|
return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2608
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2604
|
+
} else if (s === 60 && !this.ignoreTag && _e(this.peek() || 0)) {
|
|
2609
2605
|
var o = this.parseTag(t, r);
|
|
2610
2606
|
if (o.err)
|
|
2611
2607
|
return o;
|
|
@@ -2626,7 +2622,7 @@ var qr = (
|
|
|
2626
2622
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2627
2623
|
return {
|
|
2628
2624
|
val: {
|
|
2629
|
-
type:
|
|
2625
|
+
type: E.literal,
|
|
2630
2626
|
value: "<".concat(i, "/>"),
|
|
2631
2627
|
location: p(n, this.clonePosition())
|
|
2632
2628
|
},
|
|
@@ -2636,27 +2632,27 @@ var qr = (
|
|
|
2636
2632
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2637
2633
|
if (s.err)
|
|
2638
2634
|
return s;
|
|
2639
|
-
var o = s.val,
|
|
2635
|
+
var o = s.val, h = this.clonePosition();
|
|
2640
2636
|
if (this.bumpIf("</")) {
|
|
2641
|
-
if (this.isEOF() || !
|
|
2642
|
-
return this.error(m.INVALID_TAG, p(
|
|
2643
|
-
var
|
|
2644
|
-
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(
|
|
2637
|
+
if (this.isEOF() || !_e(this.char()))
|
|
2638
|
+
return this.error(m.INVALID_TAG, p(h, this.clonePosition()));
|
|
2639
|
+
var u = this.clonePosition(), a = this.parseTagName();
|
|
2640
|
+
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2645
2641
|
val: {
|
|
2646
|
-
type:
|
|
2642
|
+
type: E.tag,
|
|
2647
2643
|
value: i,
|
|
2648
2644
|
children: o,
|
|
2649
2645
|
location: p(n, this.clonePosition())
|
|
2650
2646
|
},
|
|
2651
2647
|
err: null
|
|
2652
|
-
} : this.error(m.INVALID_TAG, p(
|
|
2648
|
+
} : this.error(m.INVALID_TAG, p(h, this.clonePosition())));
|
|
2653
2649
|
} else
|
|
2654
2650
|
return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2655
2651
|
} else
|
|
2656
2652
|
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2657
2653
|
}, e.prototype.parseTagName = function() {
|
|
2658
2654
|
var t = this.offset();
|
|
2659
|
-
for (this.bump(); !this.isEOF() &&
|
|
2655
|
+
for (this.bump(); !this.isEOF() && Yr(this.char()); )
|
|
2660
2656
|
this.bump();
|
|
2661
2657
|
return this.message.slice(t, this.offset());
|
|
2662
2658
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2671,21 +2667,21 @@ var qr = (
|
|
|
2671
2667
|
i += o;
|
|
2672
2668
|
continue;
|
|
2673
2669
|
}
|
|
2674
|
-
var
|
|
2675
|
-
if (
|
|
2676
|
-
i +=
|
|
2670
|
+
var h = this.tryParseLeftAngleBracket();
|
|
2671
|
+
if (h) {
|
|
2672
|
+
i += h;
|
|
2677
2673
|
continue;
|
|
2678
2674
|
}
|
|
2679
2675
|
break;
|
|
2680
2676
|
}
|
|
2681
|
-
var
|
|
2677
|
+
var u = p(n, this.clonePosition());
|
|
2682
2678
|
return {
|
|
2683
|
-
val: { type:
|
|
2679
|
+
val: { type: E.literal, value: i, location: u },
|
|
2684
2680
|
err: null
|
|
2685
2681
|
};
|
|
2686
2682
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2687
2683
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2688
|
-
!
|
|
2684
|
+
!qr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2689
2685
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2690
2686
|
if (this.isEOF() || this.char() !== 39)
|
|
2691
2687
|
return null;
|
|
@@ -2719,12 +2715,12 @@ var qr = (
|
|
|
2719
2715
|
r.push(n);
|
|
2720
2716
|
this.bump();
|
|
2721
2717
|
}
|
|
2722
|
-
return
|
|
2718
|
+
return xe.apply(void 0, r);
|
|
2723
2719
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2724
2720
|
if (this.isEOF())
|
|
2725
2721
|
return null;
|
|
2726
2722
|
var n = this.char();
|
|
2727
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2723
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), xe(n));
|
|
2728
2724
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2729
2725
|
var n = this.clonePosition();
|
|
2730
2726
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2740,7 +2736,7 @@ var qr = (
|
|
|
2740
2736
|
case 125:
|
|
2741
2737
|
return this.bump(), {
|
|
2742
2738
|
val: {
|
|
2743
|
-
type:
|
|
2739
|
+
type: E.argument,
|
|
2744
2740
|
// value does not include the opening and closing braces.
|
|
2745
2741
|
value: i,
|
|
2746
2742
|
location: p(n, this.clonePosition())
|
|
@@ -2753,15 +2749,15 @@ var qr = (
|
|
|
2753
2749
|
return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2754
2750
|
}
|
|
2755
2751
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2756
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2752
|
+
var t = this.clonePosition(), r = this.offset(), n = ve(this.message, r), i = r + n.length;
|
|
2757
2753
|
this.bumpTo(i);
|
|
2758
2754
|
var s = this.clonePosition(), o = p(t, s);
|
|
2759
2755
|
return { value: n, location: o };
|
|
2760
2756
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2761
|
-
var s, o = this.clonePosition(),
|
|
2762
|
-
switch (
|
|
2757
|
+
var s, o = this.clonePosition(), h = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2758
|
+
switch (h) {
|
|
2763
2759
|
case "":
|
|
2764
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, p(o,
|
|
2760
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, p(o, u));
|
|
2765
2761
|
case "number":
|
|
2766
2762
|
case "date":
|
|
2767
2763
|
case "time": {
|
|
@@ -2772,44 +2768,44 @@ var qr = (
|
|
|
2772
2768
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2773
2769
|
if (f.err)
|
|
2774
2770
|
return f;
|
|
2775
|
-
var c =
|
|
2771
|
+
var c = Qr(f.val);
|
|
2776
2772
|
if (c.length === 0)
|
|
2777
2773
|
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2778
|
-
var
|
|
2779
|
-
a = { style: c, styleLocation:
|
|
2774
|
+
var b = p(l, this.clonePosition());
|
|
2775
|
+
a = { style: c, styleLocation: b };
|
|
2780
2776
|
}
|
|
2781
|
-
var
|
|
2782
|
-
if (
|
|
2783
|
-
return
|
|
2777
|
+
var g = this.tryParseArgumentClose(i);
|
|
2778
|
+
if (g.err)
|
|
2779
|
+
return g;
|
|
2784
2780
|
var x = p(i, this.clonePosition());
|
|
2785
|
-
if (a &&
|
|
2786
|
-
var T =
|
|
2787
|
-
if (
|
|
2781
|
+
if (a && ze(a == null ? void 0 : a.style, "::", 0)) {
|
|
2782
|
+
var T = Zr(a.style.slice(2));
|
|
2783
|
+
if (h === "number") {
|
|
2788
2784
|
var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
|
|
2789
2785
|
return f.err ? f : {
|
|
2790
|
-
val: { type:
|
|
2786
|
+
val: { type: E.number, value: n, location: x, style: f.val },
|
|
2791
2787
|
err: null
|
|
2792
2788
|
};
|
|
2793
2789
|
} else {
|
|
2794
2790
|
if (T.length === 0)
|
|
2795
2791
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, x);
|
|
2796
|
-
var
|
|
2797
|
-
this.locale && (
|
|
2792
|
+
var F = T;
|
|
2793
|
+
this.locale && (F = Mr(T, this.locale));
|
|
2798
2794
|
var c = {
|
|
2799
|
-
type:
|
|
2800
|
-
pattern:
|
|
2795
|
+
type: M.dateTime,
|
|
2796
|
+
pattern: F,
|
|
2801
2797
|
location: a.styleLocation,
|
|
2802
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2803
|
-
},
|
|
2798
|
+
parsedOptions: this.shouldParseSkeletons ? Pr(F) : {}
|
|
2799
|
+
}, P = h === "date" ? E.date : E.time;
|
|
2804
2800
|
return {
|
|
2805
|
-
val: { type:
|
|
2801
|
+
val: { type: P, value: n, location: x, style: c },
|
|
2806
2802
|
err: null
|
|
2807
2803
|
};
|
|
2808
2804
|
}
|
|
2809
2805
|
}
|
|
2810
2806
|
return {
|
|
2811
2807
|
val: {
|
|
2812
|
-
type:
|
|
2808
|
+
type: h === "number" ? E.number : h === "date" ? E.date : E.time,
|
|
2813
2809
|
value: n,
|
|
2814
2810
|
location: x,
|
|
2815
2811
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2822,47 +2818,47 @@ var qr = (
|
|
|
2822
2818
|
case "select": {
|
|
2823
2819
|
var H = this.clonePosition();
|
|
2824
2820
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2825
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H,
|
|
2821
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, d({}, H)));
|
|
2826
2822
|
this.bumpSpace();
|
|
2827
|
-
var
|
|
2828
|
-
if (
|
|
2823
|
+
var j = this.parseIdentifierIfPossible(), B = 0;
|
|
2824
|
+
if (h !== "select" && j.value === "offset") {
|
|
2829
2825
|
if (!this.bumpIf(":"))
|
|
2830
2826
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2831
2827
|
this.bumpSpace();
|
|
2832
2828
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2833
2829
|
if (f.err)
|
|
2834
2830
|
return f;
|
|
2835
|
-
this.bumpSpace(),
|
|
2831
|
+
this.bumpSpace(), j = this.parseIdentifierIfPossible(), B = f.val;
|
|
2836
2832
|
}
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2839
|
-
return
|
|
2840
|
-
var
|
|
2841
|
-
if (
|
|
2842
|
-
return
|
|
2833
|
+
var Q = this.tryParsePluralOrSelectOptions(t, h, r, j);
|
|
2834
|
+
if (Q.err)
|
|
2835
|
+
return Q;
|
|
2836
|
+
var g = this.tryParseArgumentClose(i);
|
|
2837
|
+
if (g.err)
|
|
2838
|
+
return g;
|
|
2843
2839
|
var $e = p(i, this.clonePosition());
|
|
2844
|
-
return
|
|
2840
|
+
return h === "select" ? {
|
|
2845
2841
|
val: {
|
|
2846
|
-
type:
|
|
2842
|
+
type: E.select,
|
|
2847
2843
|
value: n,
|
|
2848
|
-
options:
|
|
2844
|
+
options: We(Q.val),
|
|
2849
2845
|
location: $e
|
|
2850
2846
|
},
|
|
2851
2847
|
err: null
|
|
2852
2848
|
} : {
|
|
2853
2849
|
val: {
|
|
2854
|
-
type:
|
|
2850
|
+
type: E.plural,
|
|
2855
2851
|
value: n,
|
|
2856
|
-
options:
|
|
2857
|
-
offset:
|
|
2858
|
-
pluralType:
|
|
2852
|
+
options: We(Q.val),
|
|
2853
|
+
offset: B,
|
|
2854
|
+
pluralType: h === "plural" ? "cardinal" : "ordinal",
|
|
2859
2855
|
location: $e
|
|
2860
2856
|
},
|
|
2861
2857
|
err: null
|
|
2862
2858
|
};
|
|
2863
2859
|
}
|
|
2864
2860
|
default:
|
|
2865
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, p(o,
|
|
2861
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, p(o, u));
|
|
2866
2862
|
}
|
|
2867
2863
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2868
2864
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2904,21 +2900,21 @@ var qr = (
|
|
|
2904
2900
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2905
2901
|
var n = [];
|
|
2906
2902
|
try {
|
|
2907
|
-
n =
|
|
2903
|
+
n = Or(t);
|
|
2908
2904
|
} catch (i) {
|
|
2909
2905
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2910
2906
|
}
|
|
2911
2907
|
return {
|
|
2912
2908
|
val: {
|
|
2913
|
-
type:
|
|
2909
|
+
type: M.number,
|
|
2914
2910
|
tokens: n,
|
|
2915
2911
|
location: r,
|
|
2916
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2912
|
+
parsedOptions: this.shouldParseSkeletons ? Lr(n) : {}
|
|
2917
2913
|
},
|
|
2918
2914
|
err: null
|
|
2919
2915
|
};
|
|
2920
2916
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2921
|
-
for (var s, o = !1,
|
|
2917
|
+
for (var s, o = !1, h = [], u = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
|
2922
2918
|
if (a.length === 0) {
|
|
2923
2919
|
var f = this.clonePosition();
|
|
2924
2920
|
if (r !== "select" && this.bumpIf("=")) {
|
|
@@ -2929,39 +2925,39 @@ var qr = (
|
|
|
2929
2925
|
} else
|
|
2930
2926
|
break;
|
|
2931
2927
|
}
|
|
2932
|
-
if (
|
|
2928
|
+
if (u.has(a))
|
|
2933
2929
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2934
2930
|
a === "other" && (o = !0), this.bumpSpace();
|
|
2935
|
-
var
|
|
2931
|
+
var b = this.clonePosition();
|
|
2936
2932
|
if (!this.bumpIf("{"))
|
|
2937
2933
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
2938
|
-
var
|
|
2939
|
-
if (
|
|
2940
|
-
return
|
|
2941
|
-
var x = this.tryParseArgumentClose(
|
|
2934
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
2935
|
+
if (g.err)
|
|
2936
|
+
return g;
|
|
2937
|
+
var x = this.tryParseArgumentClose(b);
|
|
2942
2938
|
if (x.err)
|
|
2943
2939
|
return x;
|
|
2944
|
-
|
|
2940
|
+
h.push([
|
|
2945
2941
|
a,
|
|
2946
2942
|
{
|
|
2947
|
-
value:
|
|
2948
|
-
location: p(
|
|
2943
|
+
value: g.val,
|
|
2944
|
+
location: p(b, this.clonePosition())
|
|
2949
2945
|
}
|
|
2950
|
-
]),
|
|
2946
|
+
]), u.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
2951
2947
|
}
|
|
2952
|
-
return
|
|
2948
|
+
return h.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: h, err: null };
|
|
2953
2949
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2954
2950
|
var n = 1, i = this.clonePosition();
|
|
2955
2951
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2956
2952
|
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
2957
|
-
var
|
|
2958
|
-
if (
|
|
2959
|
-
s = !0, o = o * 10 + (
|
|
2953
|
+
var h = this.char();
|
|
2954
|
+
if (h >= 48 && h <= 57)
|
|
2955
|
+
s = !0, o = o * 10 + (h - 48), this.bump();
|
|
2960
2956
|
else
|
|
2961
2957
|
break;
|
|
2962
2958
|
}
|
|
2963
|
-
var
|
|
2964
|
-
return s ? (o *= n, zr(o) ? { val: o, err: null } : this.error(r,
|
|
2959
|
+
var u = p(i, this.clonePosition());
|
|
2960
|
+
return s ? (o *= n, zr(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
2965
2961
|
}, e.prototype.offset = function() {
|
|
2966
2962
|
return this.position.offset;
|
|
2967
2963
|
}, e.prototype.isEOF = function() {
|
|
@@ -2995,7 +2991,7 @@ var qr = (
|
|
|
2995
2991
|
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);
|
|
2996
2992
|
}
|
|
2997
2993
|
}, e.prototype.bumpIf = function(t) {
|
|
2998
|
-
if (
|
|
2994
|
+
if (ze(this.message, t, this.offset())) {
|
|
2999
2995
|
for (var r = 0; r < t.length; r++)
|
|
3000
2996
|
this.bump();
|
|
3001
2997
|
return !0;
|
|
@@ -3017,7 +3013,7 @@ var qr = (
|
|
|
3017
3013
|
break;
|
|
3018
3014
|
}
|
|
3019
3015
|
}, e.prototype.bumpSpace = function() {
|
|
3020
|
-
for (; !this.isEOF() &&
|
|
3016
|
+
for (; !this.isEOF() && Tt(this.char()); )
|
|
3021
3017
|
this.bump();
|
|
3022
3018
|
}, e.prototype.peek = function() {
|
|
3023
3019
|
if (this.isEOF())
|
|
@@ -3027,47 +3023,47 @@ var qr = (
|
|
|
3027
3023
|
}, e;
|
|
3028
3024
|
}()
|
|
3029
3025
|
);
|
|
3030
|
-
function
|
|
3026
|
+
function _e(e) {
|
|
3031
3027
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3032
3028
|
}
|
|
3033
|
-
function
|
|
3034
|
-
return
|
|
3029
|
+
function qr(e) {
|
|
3030
|
+
return _e(e) || e === 47;
|
|
3035
3031
|
}
|
|
3036
|
-
function
|
|
3032
|
+
function Yr(e) {
|
|
3037
3033
|
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;
|
|
3038
3034
|
}
|
|
3039
|
-
function
|
|
3035
|
+
function Tt(e) {
|
|
3040
3036
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3041
3037
|
}
|
|
3042
|
-
function
|
|
3038
|
+
function Kr(e) {
|
|
3043
3039
|
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;
|
|
3044
3040
|
}
|
|
3045
|
-
function
|
|
3041
|
+
function He(e) {
|
|
3046
3042
|
e.forEach(function(t) {
|
|
3047
3043
|
if (delete t.location, pt(t) || dt(t))
|
|
3048
3044
|
for (var r in t.options)
|
|
3049
|
-
delete t.options[r].location,
|
|
3045
|
+
delete t.options[r].location, He(t.options[r].value);
|
|
3050
3046
|
else
|
|
3051
|
-
ft(t) && gt(t.style) || (ct(t) || mt(t)) &&
|
|
3047
|
+
ft(t) && gt(t.style) || (ct(t) || mt(t)) && Ee(t.style) ? delete t.style.location : bt(t) && He(t.children);
|
|
3052
3048
|
});
|
|
3053
3049
|
}
|
|
3054
|
-
function
|
|
3055
|
-
t === void 0 && (t = {}), t =
|
|
3056
|
-
var r = new
|
|
3050
|
+
function en(e, t) {
|
|
3051
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3052
|
+
var r = new Jr(e, t).parse();
|
|
3057
3053
|
if (r.err) {
|
|
3058
3054
|
var n = SyntaxError(m[r.err.kind]);
|
|
3059
3055
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3060
3056
|
}
|
|
3061
|
-
return t != null && t.captureLocation ||
|
|
3057
|
+
return t != null && t.captureLocation || He(r.val), r.val;
|
|
3062
3058
|
}
|
|
3063
|
-
var
|
|
3059
|
+
var C;
|
|
3064
3060
|
(function(e) {
|
|
3065
3061
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3066
|
-
})(
|
|
3067
|
-
var
|
|
3062
|
+
})(C || (C = {}));
|
|
3063
|
+
var ie = (
|
|
3068
3064
|
/** @class */
|
|
3069
3065
|
function(e) {
|
|
3070
|
-
|
|
3066
|
+
ne(t, e);
|
|
3071
3067
|
function t(r, n, i) {
|
|
3072
3068
|
var s = e.call(this, r) || this;
|
|
3073
3069
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3079,44 +3075,44 @@ var oe = (
|
|
|
3079
3075
|
), Qe = (
|
|
3080
3076
|
/** @class */
|
|
3081
3077
|
function(e) {
|
|
3082
|
-
|
|
3078
|
+
ne(t, e);
|
|
3083
3079
|
function t(r, n, i, s) {
|
|
3084
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3080
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), C.INVALID_VALUE, s) || this;
|
|
3085
3081
|
}
|
|
3086
3082
|
return t;
|
|
3087
|
-
}(
|
|
3088
|
-
),
|
|
3083
|
+
}(ie)
|
|
3084
|
+
), tn = (
|
|
3089
3085
|
/** @class */
|
|
3090
3086
|
function(e) {
|
|
3091
|
-
|
|
3087
|
+
ne(t, e);
|
|
3092
3088
|
function t(r, n, i) {
|
|
3093
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3089
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), C.INVALID_VALUE, i) || this;
|
|
3094
3090
|
}
|
|
3095
3091
|
return t;
|
|
3096
|
-
}(
|
|
3097
|
-
),
|
|
3092
|
+
}(ie)
|
|
3093
|
+
), rn = (
|
|
3098
3094
|
/** @class */
|
|
3099
3095
|
function(e) {
|
|
3100
|
-
|
|
3096
|
+
ne(t, e);
|
|
3101
3097
|
function t(r, n) {
|
|
3102
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3098
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), C.MISSING_VALUE, n) || this;
|
|
3103
3099
|
}
|
|
3104
3100
|
return t;
|
|
3105
|
-
}(
|
|
3101
|
+
}(ie)
|
|
3106
3102
|
), y;
|
|
3107
3103
|
(function(e) {
|
|
3108
3104
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3109
3105
|
})(y || (y = {}));
|
|
3110
|
-
function
|
|
3106
|
+
function nn(e) {
|
|
3111
3107
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3112
3108
|
var n = t[t.length - 1];
|
|
3113
3109
|
return !n || n.type !== y.literal || r.type !== y.literal ? t.push(r) : n.value += r.value, t;
|
|
3114
3110
|
}, []);
|
|
3115
3111
|
}
|
|
3116
|
-
function
|
|
3112
|
+
function sn(e) {
|
|
3117
3113
|
return typeof e == "function";
|
|
3118
3114
|
}
|
|
3119
|
-
function
|
|
3115
|
+
function Y(e, t, r, n, i, s, o) {
|
|
3120
3116
|
if (e.length === 1 && je(e[0]))
|
|
3121
3117
|
return [
|
|
3122
3118
|
{
|
|
@@ -3124,17 +3120,17 @@ function K(e, t, r, n, i, s, o) {
|
|
|
3124
3120
|
value: e[0].value
|
|
3125
3121
|
}
|
|
3126
3122
|
];
|
|
3127
|
-
for (var
|
|
3128
|
-
var l = a[
|
|
3123
|
+
for (var h = [], u = 0, a = e; u < a.length; u++) {
|
|
3124
|
+
var l = a[u];
|
|
3129
3125
|
if (je(l)) {
|
|
3130
|
-
|
|
3126
|
+
h.push({
|
|
3131
3127
|
type: y.literal,
|
|
3132
3128
|
value: l.value
|
|
3133
3129
|
});
|
|
3134
3130
|
continue;
|
|
3135
3131
|
}
|
|
3136
|
-
if (
|
|
3137
|
-
typeof s == "number" &&
|
|
3132
|
+
if (Br(l)) {
|
|
3133
|
+
typeof s == "number" && h.push({
|
|
3138
3134
|
type: y.literal,
|
|
3139
3135
|
value: r.getNumberFormat(t).format(s)
|
|
3140
3136
|
});
|
|
@@ -3142,50 +3138,50 @@ function K(e, t, r, n, i, s, o) {
|
|
|
3142
3138
|
}
|
|
3143
3139
|
var f = l.value;
|
|
3144
3140
|
if (!(i && f in i))
|
|
3145
|
-
throw new
|
|
3141
|
+
throw new rn(f, o);
|
|
3146
3142
|
var c = i[f];
|
|
3147
|
-
if (
|
|
3148
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3143
|
+
if (Sr(l)) {
|
|
3144
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), h.push({
|
|
3149
3145
|
type: typeof c == "string" ? y.literal : y.object,
|
|
3150
3146
|
value: c
|
|
3151
3147
|
});
|
|
3152
3148
|
continue;
|
|
3153
3149
|
}
|
|
3154
3150
|
if (ct(l)) {
|
|
3155
|
-
var
|
|
3156
|
-
|
|
3151
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Ee(l.style) ? l.style.parsedOptions : void 0;
|
|
3152
|
+
h.push({
|
|
3157
3153
|
type: y.literal,
|
|
3158
|
-
value: r.getDateTimeFormat(t,
|
|
3154
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3159
3155
|
});
|
|
3160
3156
|
continue;
|
|
3161
3157
|
}
|
|
3162
3158
|
if (mt(l)) {
|
|
3163
|
-
var
|
|
3164
|
-
|
|
3159
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Ee(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3160
|
+
h.push({
|
|
3165
3161
|
type: y.literal,
|
|
3166
|
-
value: r.getDateTimeFormat(t,
|
|
3162
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3167
3163
|
});
|
|
3168
3164
|
continue;
|
|
3169
3165
|
}
|
|
3170
3166
|
if (ft(l)) {
|
|
3171
|
-
var
|
|
3172
|
-
|
|
3167
|
+
var b = typeof l.style == "string" ? n.number[l.style] : gt(l.style) ? l.style.parsedOptions : void 0;
|
|
3168
|
+
b && b.scale && (c = c * (b.scale || 1)), h.push({
|
|
3173
3169
|
type: y.literal,
|
|
3174
|
-
value: r.getNumberFormat(t,
|
|
3170
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3175
3171
|
});
|
|
3176
3172
|
continue;
|
|
3177
3173
|
}
|
|
3178
3174
|
if (bt(l)) {
|
|
3179
|
-
var
|
|
3180
|
-
if (!
|
|
3181
|
-
throw new
|
|
3182
|
-
var
|
|
3183
|
-
return
|
|
3175
|
+
var g = l.children, x = l.value, T = i[x];
|
|
3176
|
+
if (!sn(T))
|
|
3177
|
+
throw new tn(x, "function", o);
|
|
3178
|
+
var F = Y(g, t, r, n, i, s), P = T(F.map(function(B) {
|
|
3179
|
+
return B.value;
|
|
3184
3180
|
}));
|
|
3185
|
-
Array.isArray(
|
|
3181
|
+
Array.isArray(P) || (P = [P]), h.push.apply(h, P.map(function(B) {
|
|
3186
3182
|
return {
|
|
3187
|
-
type: typeof
|
|
3188
|
-
value:
|
|
3183
|
+
type: typeof B == "string" ? y.literal : y.object,
|
|
3184
|
+
value: B
|
|
3189
3185
|
};
|
|
3190
3186
|
}));
|
|
3191
3187
|
}
|
|
@@ -3193,38 +3189,38 @@ function K(e, t, r, n, i, s, o) {
|
|
|
3193
3189
|
var H = l.options[c] || l.options.other;
|
|
3194
3190
|
if (!H)
|
|
3195
3191
|
throw new Qe(l.value, c, Object.keys(l.options), o);
|
|
3196
|
-
|
|
3192
|
+
h.push.apply(h, Y(H.value, t, r, n, i));
|
|
3197
3193
|
continue;
|
|
3198
3194
|
}
|
|
3199
3195
|
if (dt(l)) {
|
|
3200
3196
|
var H = l.options["=".concat(c)];
|
|
3201
3197
|
if (!H) {
|
|
3202
3198
|
if (!Intl.PluralRules)
|
|
3203
|
-
throw new
|
|
3199
|
+
throw new ie(`Intl.PluralRules is not available in this environment.
|
|
3204
3200
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3205
|
-
`,
|
|
3206
|
-
var
|
|
3207
|
-
H = l.options[
|
|
3201
|
+
`, C.MISSING_INTL_API, o);
|
|
3202
|
+
var j = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3203
|
+
H = l.options[j] || l.options.other;
|
|
3208
3204
|
}
|
|
3209
3205
|
if (!H)
|
|
3210
3206
|
throw new Qe(l.value, c, Object.keys(l.options), o);
|
|
3211
|
-
|
|
3207
|
+
h.push.apply(h, Y(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3212
3208
|
continue;
|
|
3213
3209
|
}
|
|
3214
3210
|
}
|
|
3215
|
-
return
|
|
3211
|
+
return nn(h);
|
|
3216
3212
|
}
|
|
3217
|
-
function
|
|
3218
|
-
return t ?
|
|
3219
|
-
return r[n] =
|
|
3213
|
+
function on(e, t) {
|
|
3214
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3215
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
|
3220
3216
|
}, {})) : e;
|
|
3221
3217
|
}
|
|
3222
|
-
function
|
|
3218
|
+
function an(e, t) {
|
|
3223
3219
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3224
|
-
return r[n] =
|
|
3225
|
-
},
|
|
3220
|
+
return r[n] = on(e[n], t[n]), r;
|
|
3221
|
+
}, d({}, e)) : e;
|
|
3226
3222
|
}
|
|
3227
|
-
function
|
|
3223
|
+
function me(e) {
|
|
3228
3224
|
return {
|
|
3229
3225
|
create: function() {
|
|
3230
3226
|
return {
|
|
@@ -3244,33 +3240,33 @@ function hn(e) {
|
|
|
3244
3240
|
dateTime: {},
|
|
3245
3241
|
pluralRules: {}
|
|
3246
3242
|
}), {
|
|
3247
|
-
getNumberFormat:
|
|
3243
|
+
getNumberFormat: le(function() {
|
|
3248
3244
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3249
3245
|
r[n] = arguments[n];
|
|
3250
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3246
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ue([void 0], r, !1)))();
|
|
3251
3247
|
}, {
|
|
3252
|
-
cache:
|
|
3253
|
-
strategy:
|
|
3248
|
+
cache: me(e.number),
|
|
3249
|
+
strategy: fe.variadic
|
|
3254
3250
|
}),
|
|
3255
|
-
getDateTimeFormat:
|
|
3251
|
+
getDateTimeFormat: le(function() {
|
|
3256
3252
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3257
3253
|
r[n] = arguments[n];
|
|
3258
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3254
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ue([void 0], r, !1)))();
|
|
3259
3255
|
}, {
|
|
3260
|
-
cache:
|
|
3261
|
-
strategy:
|
|
3256
|
+
cache: me(e.dateTime),
|
|
3257
|
+
strategy: fe.variadic
|
|
3262
3258
|
}),
|
|
3263
|
-
getPluralRules:
|
|
3259
|
+
getPluralRules: le(function() {
|
|
3264
3260
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3265
3261
|
r[n] = arguments[n];
|
|
3266
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3262
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ue([void 0], r, !1)))();
|
|
3267
3263
|
}, {
|
|
3268
|
-
cache:
|
|
3269
|
-
strategy:
|
|
3264
|
+
cache: me(e.pluralRules),
|
|
3265
|
+
strategy: fe.variadic
|
|
3270
3266
|
})
|
|
3271
3267
|
};
|
|
3272
3268
|
}
|
|
3273
|
-
var
|
|
3269
|
+
var un = (
|
|
3274
3270
|
/** @class */
|
|
3275
3271
|
function() {
|
|
3276
3272
|
function e(t, r, n, i) {
|
|
@@ -3280,20 +3276,20 @@ var ln = (
|
|
|
3280
3276
|
number: {},
|
|
3281
3277
|
dateTime: {},
|
|
3282
3278
|
pluralRules: {}
|
|
3283
|
-
}, this.format = function(
|
|
3284
|
-
var a = s.formatToParts(
|
|
3279
|
+
}, this.format = function(u) {
|
|
3280
|
+
var a = s.formatToParts(u);
|
|
3285
3281
|
if (a.length === 1)
|
|
3286
3282
|
return a[0].value;
|
|
3287
3283
|
var l = a.reduce(function(f, c) {
|
|
3288
3284
|
return !f.length || c.type !== y.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3289
3285
|
}, []);
|
|
3290
3286
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3291
|
-
}, this.formatToParts = function(
|
|
3292
|
-
return
|
|
3287
|
+
}, this.formatToParts = function(u) {
|
|
3288
|
+
return Y(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
3293
3289
|
}, this.resolvedOptions = function() {
|
|
3294
|
-
var
|
|
3290
|
+
var u;
|
|
3295
3291
|
return {
|
|
3296
|
-
locale: ((
|
|
3292
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3297
3293
|
};
|
|
3298
3294
|
}, this.getAst = function() {
|
|
3299
3295
|
return s.ast;
|
|
@@ -3302,13 +3298,13 @@ var ln = (
|
|
|
3302
3298
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3303
3299
|
var o = i || {};
|
|
3304
3300
|
o.formatters;
|
|
3305
|
-
var
|
|
3306
|
-
this.ast = e.__parse(t,
|
|
3301
|
+
var h = Er(o, ["formatters"]);
|
|
3302
|
+
this.ast = e.__parse(t, d(d({}, h), { locale: this.resolvedLocale }));
|
|
3307
3303
|
} else
|
|
3308
3304
|
this.ast = t;
|
|
3309
3305
|
if (!Array.isArray(this.ast))
|
|
3310
3306
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3311
|
-
this.formats =
|
|
3307
|
+
this.formats = an(e.formats, n), this.formatters = i && i.formatters || hn(this.formatterCache);
|
|
3312
3308
|
}
|
|
3313
3309
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3314
3310
|
get: function() {
|
|
@@ -3321,7 +3317,7 @@ var ln = (
|
|
|
3321
3317
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3322
3318
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3323
3319
|
}
|
|
3324
|
-
}, e.__parse =
|
|
3320
|
+
}, e.__parse = en, e.formats = {
|
|
3325
3321
|
number: {
|
|
3326
3322
|
integer: {
|
|
3327
3323
|
maximumFractionDigits: 0
|
|
@@ -3382,7 +3378,7 @@ var ln = (
|
|
|
3382
3378
|
}, e;
|
|
3383
3379
|
}()
|
|
3384
3380
|
);
|
|
3385
|
-
function
|
|
3381
|
+
function ln(e, t) {
|
|
3386
3382
|
if (t == null)
|
|
3387
3383
|
return;
|
|
3388
3384
|
if (t in e)
|
|
@@ -3403,36 +3399,36 @@ function fn(e, t) {
|
|
|
3403
3399
|
n = void 0;
|
|
3404
3400
|
return n;
|
|
3405
3401
|
}
|
|
3406
|
-
const
|
|
3402
|
+
const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r), St = (e, t) => {
|
|
3407
3403
|
if (t == null)
|
|
3408
3404
|
return;
|
|
3409
|
-
if (t in
|
|
3410
|
-
return
|
|
3411
|
-
const r =
|
|
3405
|
+
if (t in S && e in S[t])
|
|
3406
|
+
return S[t][e];
|
|
3407
|
+
const r = se(t);
|
|
3412
3408
|
for (let n = 0; n < r.length; n++) {
|
|
3413
|
-
const i = r[n], s =
|
|
3409
|
+
const i = r[n], s = mn(i, e);
|
|
3414
3410
|
if (s)
|
|
3415
|
-
return
|
|
3411
|
+
return fn(e, t, s);
|
|
3416
3412
|
}
|
|
3417
3413
|
};
|
|
3418
|
-
let
|
|
3419
|
-
const
|
|
3420
|
-
function
|
|
3421
|
-
return
|
|
3414
|
+
let Ie;
|
|
3415
|
+
const Z = re({});
|
|
3416
|
+
function cn(e) {
|
|
3417
|
+
return Ie[e] || null;
|
|
3422
3418
|
}
|
|
3423
3419
|
function Bt(e) {
|
|
3424
|
-
return e in
|
|
3420
|
+
return e in Ie;
|
|
3425
3421
|
}
|
|
3426
|
-
function
|
|
3422
|
+
function mn(e, t) {
|
|
3427
3423
|
if (!Bt(e))
|
|
3428
3424
|
return null;
|
|
3429
|
-
const r =
|
|
3430
|
-
return
|
|
3425
|
+
const r = cn(e);
|
|
3426
|
+
return ln(r, t);
|
|
3431
3427
|
}
|
|
3432
|
-
function
|
|
3428
|
+
function pn(e) {
|
|
3433
3429
|
if (e == null)
|
|
3434
3430
|
return;
|
|
3435
|
-
const t =
|
|
3431
|
+
const t = se(e);
|
|
3436
3432
|
for (let r = 0; r < t.length; r++) {
|
|
3437
3433
|
const n = t[r];
|
|
3438
3434
|
if (Bt(n))
|
|
@@ -3440,55 +3436,55 @@ function dn(e) {
|
|
|
3440
3436
|
}
|
|
3441
3437
|
}
|
|
3442
3438
|
function At(e, ...t) {
|
|
3443
|
-
delete
|
|
3439
|
+
delete S[e], Z.update((r) => (r[e] = gr.all([r[e] || {}, ...t]), r));
|
|
3444
3440
|
}
|
|
3445
|
-
|
|
3446
|
-
[
|
|
3441
|
+
U(
|
|
3442
|
+
[Z],
|
|
3447
3443
|
([e]) => Object.keys(e)
|
|
3448
3444
|
);
|
|
3449
|
-
|
|
3450
|
-
const
|
|
3451
|
-
function
|
|
3452
|
-
|
|
3445
|
+
Z.subscribe((e) => Ie = e);
|
|
3446
|
+
const K = {};
|
|
3447
|
+
function dn(e, t) {
|
|
3448
|
+
K[e].delete(t), K[e].size === 0 && delete K[e];
|
|
3453
3449
|
}
|
|
3454
3450
|
function Pt(e) {
|
|
3455
|
-
return
|
|
3451
|
+
return K[e];
|
|
3456
3452
|
}
|
|
3457
|
-
function
|
|
3458
|
-
return
|
|
3453
|
+
function bn(e) {
|
|
3454
|
+
return se(e).map((t) => {
|
|
3459
3455
|
const r = Pt(t);
|
|
3460
3456
|
return [t, r ? [...r] : []];
|
|
3461
3457
|
}).filter(([, t]) => t.length > 0);
|
|
3462
3458
|
}
|
|
3463
|
-
function
|
|
3464
|
-
return e == null ? !1 :
|
|
3459
|
+
function Te(e) {
|
|
3460
|
+
return e == null ? !1 : se(e).some(
|
|
3465
3461
|
(t) => {
|
|
3466
3462
|
var r;
|
|
3467
3463
|
return (r = Pt(t)) == null ? void 0 : r.size;
|
|
3468
3464
|
}
|
|
3469
3465
|
);
|
|
3470
3466
|
}
|
|
3471
|
-
function
|
|
3467
|
+
function gn(e, t) {
|
|
3472
3468
|
return Promise.all(
|
|
3473
|
-
t.map((n) => (
|
|
3469
|
+
t.map((n) => (dn(e, n), n().then((i) => i.default || i)))
|
|
3474
3470
|
).then((n) => At(e, ...n));
|
|
3475
3471
|
}
|
|
3476
|
-
const
|
|
3477
|
-
function
|
|
3478
|
-
if (!
|
|
3479
|
-
return e in
|
|
3480
|
-
const t =
|
|
3481
|
-
return
|
|
3472
|
+
const V = {};
|
|
3473
|
+
function Nt(e) {
|
|
3474
|
+
if (!Te(e))
|
|
3475
|
+
return e in V ? V[e] : Promise.resolve();
|
|
3476
|
+
const t = bn(e);
|
|
3477
|
+
return V[e] = Promise.all(
|
|
3482
3478
|
t.map(
|
|
3483
|
-
([r, n]) =>
|
|
3479
|
+
([r, n]) => gn(r, n)
|
|
3484
3480
|
)
|
|
3485
3481
|
).then(() => {
|
|
3486
|
-
if (
|
|
3487
|
-
return
|
|
3488
|
-
delete
|
|
3489
|
-
}),
|
|
3482
|
+
if (Te(e))
|
|
3483
|
+
return Nt(e);
|
|
3484
|
+
delete V[e];
|
|
3485
|
+
}), V[e];
|
|
3490
3486
|
}
|
|
3491
|
-
const
|
|
3487
|
+
const En = {
|
|
3492
3488
|
number: {
|
|
3493
3489
|
scientific: { notation: "scientific" },
|
|
3494
3490
|
engineering: { notation: "engineering" },
|
|
@@ -3517,159 +3513,159 @@ const yn = {
|
|
|
3517
3513
|
timeZoneName: "short"
|
|
3518
3514
|
}
|
|
3519
3515
|
}
|
|
3520
|
-
},
|
|
3516
|
+
}, yn = {
|
|
3521
3517
|
fallbackLocale: null,
|
|
3522
3518
|
loadingDelay: 200,
|
|
3523
|
-
formats:
|
|
3519
|
+
formats: En,
|
|
3524
3520
|
warnOnMissingMessages: !0,
|
|
3525
3521
|
handleMissingMessage: void 0,
|
|
3526
3522
|
ignoreTag: !0
|
|
3527
|
-
},
|
|
3528
|
-
function
|
|
3529
|
-
return
|
|
3523
|
+
}, xn = yn;
|
|
3524
|
+
function R() {
|
|
3525
|
+
return xn;
|
|
3530
3526
|
}
|
|
3531
|
-
const
|
|
3532
|
-
var
|
|
3527
|
+
const pe = re(!1);
|
|
3528
|
+
var vn = Object.defineProperty, _n = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bn = (e, t) => {
|
|
3533
3529
|
for (var r in t || (t = {}))
|
|
3534
3530
|
Tn.call(t, r) && qe(e, r, t[r]);
|
|
3535
3531
|
if (Je)
|
|
3536
3532
|
for (var r of Je(t))
|
|
3537
|
-
|
|
3533
|
+
Sn.call(t, r) && qe(e, r, t[r]);
|
|
3538
3534
|
return e;
|
|
3539
|
-
},
|
|
3540
|
-
let
|
|
3541
|
-
const
|
|
3535
|
+
}, An = (e, t) => _n(e, Hn(t));
|
|
3536
|
+
let Se;
|
|
3537
|
+
const ee = re(null);
|
|
3542
3538
|
function Ye(e) {
|
|
3543
3539
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3544
3540
|
}
|
|
3545
|
-
function
|
|
3541
|
+
function se(e, t = R().fallbackLocale) {
|
|
3546
3542
|
const r = Ye(e);
|
|
3547
3543
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Ye(t)])] : r;
|
|
3548
3544
|
}
|
|
3549
|
-
function
|
|
3550
|
-
return
|
|
3545
|
+
function A() {
|
|
3546
|
+
return Se != null ? Se : void 0;
|
|
3551
3547
|
}
|
|
3552
|
-
|
|
3553
|
-
|
|
3548
|
+
ee.subscribe((e) => {
|
|
3549
|
+
Se = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3554
3550
|
});
|
|
3555
|
-
const
|
|
3556
|
-
if (e &&
|
|
3557
|
-
const { loadingDelay: t } =
|
|
3551
|
+
const Pn = (e) => {
|
|
3552
|
+
if (e && pn(e) && Te(e)) {
|
|
3553
|
+
const { loadingDelay: t } = R();
|
|
3558
3554
|
let r;
|
|
3559
|
-
return typeof window != "undefined" &&
|
|
3560
|
-
() =>
|
|
3555
|
+
return typeof window != "undefined" && A() != null && t ? r = window.setTimeout(
|
|
3556
|
+
() => pe.set(!0),
|
|
3561
3557
|
t
|
|
3562
|
-
) :
|
|
3563
|
-
|
|
3558
|
+
) : pe.set(!0), Nt(e).then(() => {
|
|
3559
|
+
ee.set(e);
|
|
3564
3560
|
}).finally(() => {
|
|
3565
|
-
clearTimeout(r),
|
|
3561
|
+
clearTimeout(r), pe.set(!1);
|
|
3566
3562
|
});
|
|
3567
3563
|
}
|
|
3568
|
-
return
|
|
3569
|
-
},
|
|
3570
|
-
set:
|
|
3571
|
-
}),
|
|
3564
|
+
return ee.set(e);
|
|
3565
|
+
}, G = An(Bn({}, ee), {
|
|
3566
|
+
set: Pn
|
|
3567
|
+
}), oe = (e) => {
|
|
3572
3568
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3573
3569
|
return (n) => {
|
|
3574
3570
|
const i = JSON.stringify(n);
|
|
3575
3571
|
return i in t ? t[i] : t[i] = e(n);
|
|
3576
3572
|
};
|
|
3577
3573
|
};
|
|
3578
|
-
var Nn = Object.defineProperty,
|
|
3574
|
+
var Nn = Object.defineProperty, te = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, It = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, we = (e, t) => {
|
|
3579
3575
|
for (var r in t || (t = {}))
|
|
3580
|
-
|
|
3581
|
-
if (
|
|
3582
|
-
for (var r of
|
|
3583
|
-
|
|
3576
|
+
Ot.call(t, r) && Ke(e, r, t[r]);
|
|
3577
|
+
if (te)
|
|
3578
|
+
for (var r of te(t))
|
|
3579
|
+
It.call(t, r) && Ke(e, r, t[r]);
|
|
3584
3580
|
return e;
|
|
3585
|
-
},
|
|
3581
|
+
}, D = (e, t) => {
|
|
3586
3582
|
var r = {};
|
|
3587
3583
|
for (var n in e)
|
|
3588
|
-
|
|
3589
|
-
if (e != null &&
|
|
3590
|
-
for (var n of
|
|
3591
|
-
t.indexOf(n) < 0 &&
|
|
3584
|
+
Ot.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3585
|
+
if (e != null && te)
|
|
3586
|
+
for (var n of te(e))
|
|
3587
|
+
t.indexOf(n) < 0 && It.call(e, n) && (r[n] = e[n]);
|
|
3592
3588
|
return r;
|
|
3593
3589
|
};
|
|
3594
3590
|
const z = (e, t) => {
|
|
3595
|
-
const { formats: r } =
|
|
3591
|
+
const { formats: r } = R();
|
|
3596
3592
|
if (e in r && t in r[e])
|
|
3597
3593
|
return r[e][t];
|
|
3598
3594
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3599
|
-
},
|
|
3595
|
+
}, On = oe(
|
|
3600
3596
|
(e) => {
|
|
3601
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3597
|
+
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3602
3598
|
if (r == null)
|
|
3603
3599
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3604
3600
|
return n && (i = z("number", n)), new Intl.NumberFormat(r, i);
|
|
3605
3601
|
}
|
|
3606
|
-
), In =
|
|
3602
|
+
), In = oe(
|
|
3607
3603
|
(e) => {
|
|
3608
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3604
|
+
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3609
3605
|
if (r == null)
|
|
3610
3606
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3611
3607
|
return n ? i = z("date", n) : Object.keys(i).length === 0 && (i = z("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3612
3608
|
}
|
|
3613
|
-
),
|
|
3609
|
+
), wn = oe(
|
|
3614
3610
|
(e) => {
|
|
3615
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3611
|
+
var t = e, { locale: r, format: n } = t, i = D(t, ["locale", "format"]);
|
|
3616
3612
|
if (r == null)
|
|
3617
3613
|
throw new Error(
|
|
3618
3614
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3619
3615
|
);
|
|
3620
3616
|
return n ? i = z("time", n) : Object.keys(i).length === 0 && (i = z("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3621
3617
|
}
|
|
3622
|
-
),
|
|
3618
|
+
), $n = (e = {}) => {
|
|
3623
3619
|
var t = e, {
|
|
3624
|
-
locale: r =
|
|
3625
|
-
} = t, n =
|
|
3620
|
+
locale: r = A()
|
|
3621
|
+
} = t, n = D(t, [
|
|
3626
3622
|
"locale"
|
|
3627
3623
|
]);
|
|
3628
|
-
return
|
|
3629
|
-
},
|
|
3624
|
+
return On(we({ locale: r }, n));
|
|
3625
|
+
}, Ln = (e = {}) => {
|
|
3630
3626
|
var t = e, {
|
|
3631
|
-
locale: r =
|
|
3632
|
-
} = t, n =
|
|
3627
|
+
locale: r = A()
|
|
3628
|
+
} = t, n = D(t, [
|
|
3633
3629
|
"locale"
|
|
3634
3630
|
]);
|
|
3635
|
-
return In(
|
|
3636
|
-
},
|
|
3631
|
+
return In(we({ locale: r }, n));
|
|
3632
|
+
}, Mn = (e = {}) => {
|
|
3637
3633
|
var t = e, {
|
|
3638
|
-
locale: r =
|
|
3639
|
-
} = t, n =
|
|
3634
|
+
locale: r = A()
|
|
3635
|
+
} = t, n = D(t, [
|
|
3640
3636
|
"locale"
|
|
3641
3637
|
]);
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3638
|
+
return wn(we({ locale: r }, n));
|
|
3639
|
+
}, Cn = oe(
|
|
3644
3640
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3645
|
-
(e, t =
|
|
3646
|
-
ignoreTag:
|
|
3641
|
+
(e, t = A()) => new un(e, t, R().formats, {
|
|
3642
|
+
ignoreTag: R().ignoreTag
|
|
3647
3643
|
})
|
|
3648
|
-
),
|
|
3644
|
+
), Rn = (e, t = {}) => {
|
|
3649
3645
|
var r, n, i, s;
|
|
3650
3646
|
let o = t;
|
|
3651
3647
|
typeof e == "object" && (o = e, e = o.id);
|
|
3652
3648
|
const {
|
|
3653
|
-
values:
|
|
3654
|
-
locale:
|
|
3649
|
+
values: h,
|
|
3650
|
+
locale: u = A(),
|
|
3655
3651
|
default: a
|
|
3656
3652
|
} = o;
|
|
3657
|
-
if (
|
|
3653
|
+
if (u == null)
|
|
3658
3654
|
throw new Error(
|
|
3659
3655
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3660
3656
|
);
|
|
3661
|
-
let l =
|
|
3657
|
+
let l = St(e, u);
|
|
3662
3658
|
if (!l)
|
|
3663
|
-
l = (s = (i = (n = (r =
|
|
3659
|
+
l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3664
3660
|
else if (typeof l != "string")
|
|
3665
3661
|
return console.warn(
|
|
3666
3662
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3667
3663
|
), l;
|
|
3668
|
-
if (!
|
|
3664
|
+
if (!h)
|
|
3669
3665
|
return l;
|
|
3670
3666
|
let f = l;
|
|
3671
3667
|
try {
|
|
3672
|
-
f =
|
|
3668
|
+
f = Cn(l, u).format(h);
|
|
3673
3669
|
} catch (c) {
|
|
3674
3670
|
c instanceof Error && console.warn(
|
|
3675
3671
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3677,16 +3673,16 @@ const z = (e, t) => {
|
|
|
3677
3673
|
);
|
|
3678
3674
|
}
|
|
3679
3675
|
return f;
|
|
3680
|
-
},
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3676
|
+
}, Un = (e, t) => Mn(t).format(e), Gn = (e, t) => Ln(t).format(e), Dn = (e, t) => $n(t).format(e), Fn = (e, t = A()) => St(e, t), jn = U([G, Z], () => Rn);
|
|
3677
|
+
U([G], () => Un);
|
|
3678
|
+
U([G], () => Gn);
|
|
3679
|
+
U([G], () => Dn);
|
|
3680
|
+
U([G, Z], () => Fn);
|
|
3685
3681
|
function et(e, t) {
|
|
3686
3682
|
At(e, t);
|
|
3687
3683
|
}
|
|
3688
|
-
function
|
|
3689
|
-
|
|
3684
|
+
function Vn(e) {
|
|
3685
|
+
G.set(e);
|
|
3690
3686
|
}
|
|
3691
3687
|
const tt = {
|
|
3692
3688
|
en: {
|
|
@@ -3708,7 +3704,7 @@ const tt = {
|
|
|
3708
3704
|
msgEmailVerificationSuccess: "Başarılı! E-posta adresiniz başarıyla doğrulandı"
|
|
3709
3705
|
}
|
|
3710
3706
|
};
|
|
3711
|
-
function
|
|
3707
|
+
function kn(e) {
|
|
3712
3708
|
let t;
|
|
3713
3709
|
return {
|
|
3714
3710
|
c() {
|
|
@@ -3721,18 +3717,18 @@ function Xn(e) {
|
|
|
3721
3717
|
i: _,
|
|
3722
3718
|
o: _,
|
|
3723
3719
|
d(r) {
|
|
3724
|
-
r &&
|
|
3720
|
+
r && Ae(t);
|
|
3725
3721
|
}
|
|
3726
3722
|
};
|
|
3727
3723
|
}
|
|
3728
|
-
function
|
|
3724
|
+
function Xn(e, t, r) {
|
|
3729
3725
|
let n;
|
|
3730
|
-
Ut(e,
|
|
3731
|
-
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl:
|
|
3732
|
-
const
|
|
3733
|
-
fetch(
|
|
3734
|
-
Object.keys(c).forEach((
|
|
3735
|
-
et(
|
|
3726
|
+
Ut(e, jn, (f) => r(4, n = f));
|
|
3727
|
+
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl: h = "" } = t;
|
|
3728
|
+
const u = () => {
|
|
3729
|
+
fetch(h).then((c) => c.json()).then((c) => {
|
|
3730
|
+
Object.keys(c).forEach((b) => {
|
|
3731
|
+
et(b, c[b]);
|
|
3736
3732
|
});
|
|
3737
3733
|
}).catch((c) => {
|
|
3738
3734
|
console.log(c);
|
|
@@ -3742,9 +3738,9 @@ function Wn(e, t, r) {
|
|
|
3742
3738
|
et(f, tt[f]);
|
|
3743
3739
|
});
|
|
3744
3740
|
const a = () => {
|
|
3745
|
-
|
|
3741
|
+
Vn(i);
|
|
3746
3742
|
}, l = () => {
|
|
3747
|
-
let f = new URL(`${s}/v1/player/activatePlayerByHashKey`),
|
|
3743
|
+
let f = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
|
|
3748
3744
|
method: "POST",
|
|
3749
3745
|
headers: {
|
|
3750
3746
|
"Content-Type": "application/json",
|
|
@@ -3752,7 +3748,7 @@ function Wn(e, t, r) {
|
|
|
3752
3748
|
},
|
|
3753
3749
|
body: JSON.stringify({ hashKey: o })
|
|
3754
3750
|
};
|
|
3755
|
-
fetch(f.href,
|
|
3751
|
+
fetch(f.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
|
|
3756
3752
|
{
|
|
3757
3753
|
type: "WidgetNotification",
|
|
3758
3754
|
data: {
|
|
@@ -3761,8 +3757,8 @@ function Wn(e, t, r) {
|
|
|
3761
3757
|
}
|
|
3762
3758
|
},
|
|
3763
3759
|
window.location.href
|
|
3764
|
-
)),
|
|
3765
|
-
window.postMessage({ type: "ActivatePlayerResponse", data:
|
|
3760
|
+
)), g.json())).then((g) => {
|
|
3761
|
+
window.postMessage({ type: "ActivatePlayerResponse", data: g }, window.location.href), g.error && (window.postMessage(
|
|
3766
3762
|
{
|
|
3767
3763
|
type: "WidgetNotification",
|
|
3768
3764
|
data: {
|
|
@@ -3780,7 +3776,7 @@ function Wn(e, t, r) {
|
|
|
3780
3776
|
}
|
|
3781
3777
|
},
|
|
3782
3778
|
window.location.href
|
|
3783
|
-
)),
|
|
3779
|
+
)), g.SESSION_ID && window.postMessage(
|
|
3784
3780
|
{
|
|
3785
3781
|
type: "WidgetNotification",
|
|
3786
3782
|
data: {
|
|
@@ -3793,17 +3789,17 @@ function Wn(e, t, r) {
|
|
|
3793
3789
|
});
|
|
3794
3790
|
};
|
|
3795
3791
|
return e.$$set = (f) => {
|
|
3796
|
-
"lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, o = f.key), "translationurl" in f && r(3,
|
|
3792
|
+
"lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, o = f.key), "translationurl" in f && r(3, h = f.translationurl);
|
|
3797
3793
|
}, e.$$.update = () => {
|
|
3798
3794
|
e.$$.dirty & /*lang*/
|
|
3799
3795
|
1 && i && a(), e.$$.dirty & /*translationurl*/
|
|
3800
|
-
8 &&
|
|
3796
|
+
8 && h && u(), e.$$.dirty & /*endpoint, key*/
|
|
3801
3797
|
6 && s && o && l();
|
|
3802
|
-
}, [i, s, o,
|
|
3798
|
+
}, [i, s, o, h];
|
|
3803
3799
|
}
|
|
3804
3800
|
class zn extends Kt {
|
|
3805
3801
|
constructor(t) {
|
|
3806
|
-
super(), qt(this, t,
|
|
3802
|
+
super(), qt(this, t, Xn, kn, nt, {
|
|
3807
3803
|
lang: 0,
|
|
3808
3804
|
endpoint: 1,
|
|
3809
3805
|
key: 2,
|
|
@@ -3814,25 +3810,25 @@ class zn extends Kt {
|
|
|
3814
3810
|
return this.$$.ctx[0];
|
|
3815
3811
|
}
|
|
3816
3812
|
set lang(t) {
|
|
3817
|
-
this.$$set({ lang: t }),
|
|
3813
|
+
this.$$set({ lang: t }), w();
|
|
3818
3814
|
}
|
|
3819
3815
|
get endpoint() {
|
|
3820
3816
|
return this.$$.ctx[1];
|
|
3821
3817
|
}
|
|
3822
3818
|
set endpoint(t) {
|
|
3823
|
-
this.$$set({ endpoint: t }),
|
|
3819
|
+
this.$$set({ endpoint: t }), w();
|
|
3824
3820
|
}
|
|
3825
3821
|
get key() {
|
|
3826
3822
|
return this.$$.ctx[2];
|
|
3827
3823
|
}
|
|
3828
3824
|
set key(t) {
|
|
3829
|
-
this.$$set({ key: t }),
|
|
3825
|
+
this.$$set({ key: t }), w();
|
|
3830
3826
|
}
|
|
3831
3827
|
get translationurl() {
|
|
3832
3828
|
return this.$$.ctx[3];
|
|
3833
3829
|
}
|
|
3834
3830
|
set translationurl(t) {
|
|
3835
|
-
this.$$set({ translationurl: t }),
|
|
3831
|
+
this.$$set({ translationurl: t }), w();
|
|
3836
3832
|
}
|
|
3837
3833
|
}
|
|
3838
3834
|
Yt(zn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|