@everymatrix/player-account-menu-nd 1.56.0 → 1.56.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/GeneralLogout-C645ag3Y.cjs +18 -0
- package/components/{GeneralLogout-C62O7X2O.js → GeneralLogout-lRqS5xnM.js} +688 -633
- package/components/{GeneralLogout-BbFRw_PP.js → GeneralLogout-nPLOHMgC.js} +712 -657
- package/components/{PlayerAccountMenuNd-B-MuRtAL.js → PlayerAccountMenuNd-BzBcsJR_.js} +162 -140
- package/components/{PlayerAccountMenuNd-DZrxDH3S.js → PlayerAccountMenuNd-C-lM0H4r.js} +160 -138
- package/components/PlayerAccountMenuNd-N2kx0DSl.cjs +1 -0
- package/es2015/player-account-menu-nd.cjs +1 -1
- package/es2015/player-account-menu-nd.js +1 -1
- package/esnext/player-account-menu-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/index-ae04a8b1-DPYODDdm.cjs +1 -0
- package/stencil/index-ae04a8b1-DRAR7dln.js +532 -0
- package/stencil/index-ae04a8b1-eSktas_K.js +516 -0
- package/stencil/{ui-skeleton-DtnYQAt6.cjs → ui-skeleton-C1buDKbo.cjs} +1 -1
- package/stencil/{ui-skeleton-rqI1NmdA.js → ui-skeleton-C5gPr5Xv.js} +2 -2
- package/stencil/{ui-skeleton-DlfwJJb1.js → ui-skeleton-M7HNQCk1.js} +2 -2
- package/stencil/{ui-skeleton-982450d2-BH4FIF5y.js → ui-skeleton-a642cced-BFJMszWG.js} +21 -21
- package/stencil/ui-skeleton-a642cced-DO34s50a.cjs +1 -0
- package/stencil/{ui-skeleton-982450d2-DGJAETMx.js → ui-skeleton-a642cced-p8tGooXk.js} +21 -21
- package/components/GeneralLogout-DTncvqCn.cjs +0 -5
- package/components/PlayerAccountMenuNd-awGuTDET.cjs +0 -1
- package/stencil/index-db5752f9--Bvt52z2.js +0 -610
- package/stencil/index-db5752f9-CAzJb5N3.js +0 -594
- package/stencil/index-db5752f9-CEbtfUsZ.cjs +0 -1
- package/stencil/ui-skeleton-982450d2-BYrWGs9b.cjs +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Tt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ke() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function ie(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Tt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Ht(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ue;
|
|
19
|
-
function
|
|
19
|
+
function Xi(e, t) {
|
|
20
20
|
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function hr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Bt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,21 +31,22 @@ function Et(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function lr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Bt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function T(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function cr(e, t, r) {
|
|
41
|
+
const n = fr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = P("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, pr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
if (!e)
|
|
47
|
+
function fr(e) {
|
|
48
|
+
if (!e)
|
|
49
|
+
return document;
|
|
49
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
50
51
|
return t && /** @type {ShadowRoot} */
|
|
51
52
|
t.host ? (
|
|
@@ -53,7 +54,7 @@ function ar(e) {
|
|
|
53
54
|
t
|
|
54
55
|
) : e.ownerDocument;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function pr(e, t) {
|
|
57
58
|
return T(
|
|
58
59
|
/** @type {Document} */
|
|
59
60
|
e.head || e,
|
|
@@ -66,7 +67,7 @@ function oe(e, t, r) {
|
|
|
66
67
|
function Z(e) {
|
|
67
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function Wi(e, t) {
|
|
70
71
|
for (let r = 0; r < e.length; r += 1)
|
|
71
72
|
e[r] && e[r].d(t);
|
|
72
73
|
}
|
|
@@ -79,30 +80,30 @@ function Y(e) {
|
|
|
79
80
|
function ge(e) {
|
|
80
81
|
return document.createTextNode(e);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function dr() {
|
|
83
84
|
return ge(" ");
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function wt(e, t, r, n) {
|
|
86
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
88
|
}
|
|
88
89
|
function S(e, t, r) {
|
|
89
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function zi(e, t, r) {
|
|
92
93
|
const n = t.toLowerCase();
|
|
93
94
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : S(e, t, r);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function mr(e) {
|
|
96
97
|
return Array.from(e.childNodes);
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function At(e, t) {
|
|
99
100
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
100
101
|
t);
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function br(e, t, r, n) {
|
|
103
104
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
+
function gr(e) {
|
|
106
107
|
const t = {};
|
|
107
108
|
return e.childNodes.forEach(
|
|
108
109
|
/** @param {Element} node */
|
|
@@ -115,82 +116,84 @@ let te;
|
|
|
115
116
|
function ee(e) {
|
|
116
117
|
te = e;
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
-
if (!te)
|
|
119
|
+
function yr() {
|
|
120
|
+
if (!te)
|
|
121
|
+
throw new Error("Function called outside component initialization");
|
|
120
122
|
return te;
|
|
121
123
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
+
function vr(e) {
|
|
125
|
+
yr().$$.on_mount.push(e);
|
|
124
126
|
}
|
|
125
|
-
const F = [],
|
|
127
|
+
const F = [], Le = [];
|
|
126
128
|
let j = [];
|
|
127
|
-
const
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
const et = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
130
|
+
let Ne = !1;
|
|
131
|
+
function Er() {
|
|
132
|
+
Ne || (Ne = !0, _r.then(w));
|
|
131
133
|
}
|
|
132
|
-
function
|
|
134
|
+
function Me(e) {
|
|
133
135
|
j.push(e);
|
|
134
136
|
}
|
|
135
137
|
const Te = /* @__PURE__ */ new Set();
|
|
136
|
-
let
|
|
138
|
+
let D = 0;
|
|
137
139
|
function w() {
|
|
138
|
-
if (
|
|
140
|
+
if (D !== 0)
|
|
139
141
|
return;
|
|
140
142
|
const e = te;
|
|
141
143
|
do {
|
|
142
144
|
try {
|
|
143
|
-
for (;
|
|
144
|
-
const t = F[
|
|
145
|
-
|
|
145
|
+
for (; D < F.length; ) {
|
|
146
|
+
const t = F[D];
|
|
147
|
+
D++, ee(t), xr(t.$$);
|
|
146
148
|
}
|
|
147
149
|
} catch (t) {
|
|
148
|
-
throw F.length = 0,
|
|
150
|
+
throw F.length = 0, D = 0, t;
|
|
149
151
|
}
|
|
150
|
-
for (ee(null), F.length = 0,
|
|
152
|
+
for (ee(null), F.length = 0, D = 0; Le.length; )
|
|
153
|
+
Le.pop()();
|
|
151
154
|
for (let t = 0; t < j.length; t += 1) {
|
|
152
155
|
const r = j[t];
|
|
153
156
|
Te.has(r) || (Te.add(r), r());
|
|
154
157
|
}
|
|
155
158
|
j.length = 0;
|
|
156
159
|
} while (F.length);
|
|
157
|
-
for (;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
for (; et.length; )
|
|
161
|
+
et.pop()();
|
|
162
|
+
Ne = !1, Te.clear(), ee(e);
|
|
160
163
|
}
|
|
161
|
-
function
|
|
164
|
+
function xr(e) {
|
|
162
165
|
if (e.fragment !== null) {
|
|
163
166
|
e.update(), ie(e.before_update);
|
|
164
167
|
const t = e.dirty;
|
|
165
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
168
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
|
-
function
|
|
171
|
+
function Sr(e) {
|
|
169
172
|
const t = [], r = [];
|
|
170
173
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
171
174
|
}
|
|
172
|
-
const
|
|
173
|
-
function
|
|
174
|
-
e && e.i && (
|
|
175
|
+
const Tr = /* @__PURE__ */ new Set();
|
|
176
|
+
function Hr(e, t) {
|
|
177
|
+
e && e.i && (Tr.delete(e), e.i(t));
|
|
175
178
|
}
|
|
176
|
-
function
|
|
179
|
+
function Zi(e) {
|
|
177
180
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
178
181
|
}
|
|
179
|
-
function
|
|
182
|
+
function Br(e, t, r) {
|
|
180
183
|
const { fragment: n, after_update: i } = e.$$;
|
|
181
|
-
n && n.m(t, r),
|
|
182
|
-
const o = e.$$.on_mount.map(
|
|
184
|
+
n && n.m(t, r), Me(() => {
|
|
185
|
+
const o = e.$$.on_mount.map(Tt).filter(Ze);
|
|
183
186
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
184
|
-
}), i.forEach(
|
|
187
|
+
}), i.forEach(Me);
|
|
185
188
|
}
|
|
186
|
-
function
|
|
189
|
+
function wr(e, t) {
|
|
187
190
|
const r = e.$$;
|
|
188
|
-
r.fragment !== null && (
|
|
191
|
+
r.fragment !== null && (Sr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
189
192
|
}
|
|
190
|
-
function
|
|
191
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
193
|
+
function Ar(e, t) {
|
|
194
|
+
e.$$.dirty[0] === -1 && (F.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
192
195
|
}
|
|
193
|
-
function
|
|
196
|
+
function Pr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
194
197
|
const h = te;
|
|
195
198
|
ee(e);
|
|
196
199
|
const u = e.$$ = {
|
|
@@ -200,7 +203,7 @@ function Tr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
200
203
|
props: o,
|
|
201
204
|
update: B,
|
|
202
205
|
not_equal: i,
|
|
203
|
-
bound:
|
|
206
|
+
bound: Ke(),
|
|
204
207
|
// lifecycle
|
|
205
208
|
on_mount: [],
|
|
206
209
|
on_destroy: [],
|
|
@@ -209,7 +212,7 @@ function Tr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
209
212
|
after_update: [],
|
|
210
213
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
211
214
|
// everything else
|
|
212
|
-
callbacks:
|
|
215
|
+
callbacks: Ke(),
|
|
213
216
|
dirty: a,
|
|
214
217
|
skip_bound: !1,
|
|
215
218
|
root: t.target || h.$$.root
|
|
@@ -217,20 +220,20 @@ function Tr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
220
|
s && s(u.root);
|
|
218
221
|
let l = !1;
|
|
219
222
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
220
|
-
const
|
|
221
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
223
|
+
const d = p.length ? p[0] : c;
|
|
224
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Ar(e, f)), c;
|
|
222
225
|
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
223
226
|
if (t.hydrate) {
|
|
224
|
-
const f =
|
|
227
|
+
const f = mr(t.target);
|
|
225
228
|
u.fragment && u.fragment.l(f), f.forEach(Z);
|
|
226
229
|
} else
|
|
227
230
|
u.fragment && u.fragment.c();
|
|
228
|
-
t.intro &&
|
|
231
|
+
t.intro && Hr(e.$$.fragment), Br(e, t.target, t.anchor), w();
|
|
229
232
|
}
|
|
230
233
|
ee(h);
|
|
231
234
|
}
|
|
232
|
-
let
|
|
233
|
-
typeof HTMLElement == "function" && (
|
|
235
|
+
let Pt;
|
|
236
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
234
237
|
/** The Svelte component constructor */
|
|
235
238
|
$$ctor;
|
|
236
239
|
/** Slots */
|
|
@@ -289,7 +292,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
289
292
|
};
|
|
290
293
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
291
294
|
return;
|
|
292
|
-
const t = {}, r =
|
|
295
|
+
const t = {}, r = gr(this);
|
|
293
296
|
for (const i of this.$$s)
|
|
294
297
|
i in r && (t[i] = [e(i)]);
|
|
295
298
|
for (const i of this.attributes) {
|
|
@@ -376,8 +379,8 @@ function ce(e, t, r, n) {
|
|
|
376
379
|
return t;
|
|
377
380
|
}
|
|
378
381
|
}
|
|
379
|
-
function
|
|
380
|
-
let s = class extends
|
|
382
|
+
function Or(e, t, r, n, i, o) {
|
|
383
|
+
let s = class extends Pt {
|
|
381
384
|
constructor() {
|
|
382
385
|
super(e, r, i), this.$$p_d = t;
|
|
383
386
|
}
|
|
@@ -405,7 +408,7 @@ function Hr(e, t, r, n, i, o) {
|
|
|
405
408
|
}), e.element = /** @type {any} */
|
|
406
409
|
s, s;
|
|
407
410
|
}
|
|
408
|
-
class
|
|
411
|
+
class Ir {
|
|
409
412
|
/**
|
|
410
413
|
* ### PRIVATE API
|
|
411
414
|
*
|
|
@@ -424,7 +427,7 @@ class Br {
|
|
|
424
427
|
$$set = void 0;
|
|
425
428
|
/** @returns {void} */
|
|
426
429
|
$destroy() {
|
|
427
|
-
|
|
430
|
+
wr(this, 1), this.$destroy = B;
|
|
428
431
|
}
|
|
429
432
|
/**
|
|
430
433
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -433,7 +436,7 @@ class Br {
|
|
|
433
436
|
* @returns {() => void}
|
|
434
437
|
*/
|
|
435
438
|
$on(t, r) {
|
|
436
|
-
if (!
|
|
439
|
+
if (!Ze(r))
|
|
437
440
|
return B;
|
|
438
441
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
439
442
|
return n.push(r), () => {
|
|
@@ -446,22 +449,37 @@ class Br {
|
|
|
446
449
|
* @returns {void}
|
|
447
450
|
*/
|
|
448
451
|
$set(t) {
|
|
449
|
-
this.$$set && !
|
|
452
|
+
this.$$set && !hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
450
453
|
}
|
|
451
454
|
}
|
|
452
|
-
const
|
|
453
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
454
|
-
|
|
455
|
-
|
|
455
|
+
const Lr = "4";
|
|
456
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
457
|
+
/*! *****************************************************************************
|
|
458
|
+
Copyright (c) Microsoft Corporation.
|
|
459
|
+
|
|
460
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
461
|
+
purpose with or without fee is hereby granted.
|
|
462
|
+
|
|
463
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
464
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
465
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
466
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
467
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
468
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
469
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
470
|
+
***************************************************************************** */
|
|
471
|
+
var Ce = function(e, t) {
|
|
472
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
456
473
|
r.__proto__ = n;
|
|
457
474
|
} || function(r, n) {
|
|
458
|
-
for (var i in n)
|
|
459
|
-
|
|
475
|
+
for (var i in n)
|
|
476
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
477
|
+
}, Ce(e, t);
|
|
460
478
|
};
|
|
461
479
|
function I(e, t) {
|
|
462
480
|
if (typeof t != "function" && t !== null)
|
|
463
481
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
464
|
-
|
|
482
|
+
Ce(e, t);
|
|
465
483
|
function r() {
|
|
466
484
|
this.constructor = e;
|
|
467
485
|
}
|
|
@@ -471,61 +489,69 @@ var g = function() {
|
|
|
471
489
|
return g = Object.assign || function(t) {
|
|
472
490
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
473
491
|
r = arguments[n];
|
|
474
|
-
for (var o in r)
|
|
492
|
+
for (var o in r)
|
|
493
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
475
494
|
}
|
|
476
495
|
return t;
|
|
477
496
|
}, g.apply(this, arguments);
|
|
478
497
|
};
|
|
479
|
-
function
|
|
498
|
+
function Nr(e, t) {
|
|
480
499
|
var r = {};
|
|
481
|
-
for (var n in e)
|
|
500
|
+
for (var n in e)
|
|
501
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
482
502
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
483
503
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
484
504
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
485
505
|
return r;
|
|
486
506
|
}
|
|
487
|
-
function
|
|
507
|
+
function $e(e) {
|
|
488
508
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
489
|
-
if (r)
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
509
|
+
if (r)
|
|
510
|
+
return r.call(e);
|
|
511
|
+
if (e && typeof e.length == "number")
|
|
512
|
+
return {
|
|
513
|
+
next: function() {
|
|
514
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
515
|
+
}
|
|
516
|
+
};
|
|
495
517
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
496
518
|
}
|
|
497
|
-
function
|
|
519
|
+
function Re(e, t) {
|
|
498
520
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
499
|
-
if (!r)
|
|
521
|
+
if (!r)
|
|
522
|
+
return e;
|
|
500
523
|
var n = r.call(e), i, o = [], s;
|
|
501
524
|
try {
|
|
502
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
525
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
526
|
+
o.push(i.value);
|
|
503
527
|
} catch (a) {
|
|
504
528
|
s = { error: a };
|
|
505
529
|
} finally {
|
|
506
530
|
try {
|
|
507
531
|
i && !i.done && (r = n.return) && r.call(n);
|
|
508
532
|
} finally {
|
|
509
|
-
if (s)
|
|
533
|
+
if (s)
|
|
534
|
+
throw s.error;
|
|
510
535
|
}
|
|
511
536
|
}
|
|
512
537
|
return o;
|
|
513
538
|
}
|
|
514
539
|
function k(e, t, r) {
|
|
515
|
-
if (r || arguments.length === 2)
|
|
516
|
-
(
|
|
517
|
-
|
|
540
|
+
if (r || arguments.length === 2)
|
|
541
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
542
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
543
|
+
return e.concat(o || t);
|
|
518
544
|
}
|
|
519
545
|
function O(e) {
|
|
520
546
|
return typeof e == "function";
|
|
521
547
|
}
|
|
522
|
-
function
|
|
548
|
+
function Ot(e) {
|
|
523
549
|
var t = function(n) {
|
|
524
550
|
Error.call(n), n.stack = new Error().stack;
|
|
525
551
|
}, r = e(t);
|
|
526
552
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
527
553
|
}
|
|
528
|
-
var He =
|
|
554
|
+
var He = Ot(function(e) {
|
|
529
555
|
return function(r) {
|
|
530
556
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
531
557
|
` + r.map(function(n, i) {
|
|
@@ -534,7 +560,7 @@ var He = Bt(function(e) {
|
|
|
534
560
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
535
561
|
};
|
|
536
562
|
});
|
|
537
|
-
function
|
|
563
|
+
function Ue(e, t) {
|
|
538
564
|
if (e) {
|
|
539
565
|
var r = e.indexOf(t);
|
|
540
566
|
0 <= r && e.splice(r, 1);
|
|
@@ -552,7 +578,7 @@ var ye = function() {
|
|
|
552
578
|
if (s)
|
|
553
579
|
if (this._parentage = null, Array.isArray(s))
|
|
554
580
|
try {
|
|
555
|
-
for (var a =
|
|
581
|
+
for (var a = $e(s), h = a.next(); !h.done; h = a.next()) {
|
|
556
582
|
var u = h.value;
|
|
557
583
|
u.remove(this);
|
|
558
584
|
}
|
|
@@ -562,7 +588,8 @@ var ye = function() {
|
|
|
562
588
|
try {
|
|
563
589
|
h && !h.done && (r = a.return) && r.call(a);
|
|
564
590
|
} finally {
|
|
565
|
-
if (t)
|
|
591
|
+
if (t)
|
|
592
|
+
throw t.error;
|
|
566
593
|
}
|
|
567
594
|
}
|
|
568
595
|
else
|
|
@@ -578,12 +605,12 @@ var ye = function() {
|
|
|
578
605
|
if (f) {
|
|
579
606
|
this._finalizers = null;
|
|
580
607
|
try {
|
|
581
|
-
for (var c =
|
|
582
|
-
var
|
|
608
|
+
for (var c = $e(f), p = c.next(); !p.done; p = c.next()) {
|
|
609
|
+
var d = p.value;
|
|
583
610
|
try {
|
|
584
|
-
|
|
611
|
+
tt(d);
|
|
585
612
|
} catch (v) {
|
|
586
|
-
o = o ?? [], v instanceof He ? o = k(k([],
|
|
613
|
+
o = o ?? [], v instanceof He ? o = k(k([], Re(o)), Re(v.errors)) : o.push(v);
|
|
587
614
|
}
|
|
588
615
|
}
|
|
589
616
|
} catch (v) {
|
|
@@ -592,7 +619,8 @@ var ye = function() {
|
|
|
592
619
|
try {
|
|
593
620
|
p && !p.done && (i = c.return) && i.call(c);
|
|
594
621
|
} finally {
|
|
595
|
-
if (n)
|
|
622
|
+
if (n)
|
|
623
|
+
throw n.error;
|
|
596
624
|
}
|
|
597
625
|
}
|
|
598
626
|
}
|
|
@@ -603,7 +631,7 @@ var ye = function() {
|
|
|
603
631
|
var r;
|
|
604
632
|
if (t && t !== this)
|
|
605
633
|
if (this.closed)
|
|
606
|
-
|
|
634
|
+
tt(t);
|
|
607
635
|
else {
|
|
608
636
|
if (t instanceof e) {
|
|
609
637
|
if (t.closed || t._hasParent(this))
|
|
@@ -620,52 +648,56 @@ var ye = function() {
|
|
|
620
648
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
621
649
|
}, e.prototype._removeParent = function(t) {
|
|
622
650
|
var r = this._parentage;
|
|
623
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
651
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
624
652
|
}, e.prototype.remove = function(t) {
|
|
625
653
|
var r = this._finalizers;
|
|
626
|
-
r &&
|
|
654
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
627
655
|
}, e.EMPTY = function() {
|
|
628
656
|
var t = new e();
|
|
629
657
|
return t.closed = !0, t;
|
|
630
658
|
}(), e;
|
|
631
|
-
}(),
|
|
632
|
-
function
|
|
659
|
+
}(), It = ye.EMPTY;
|
|
660
|
+
function Lt(e) {
|
|
633
661
|
return e instanceof ye || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
634
662
|
}
|
|
635
|
-
function
|
|
663
|
+
function tt(e) {
|
|
636
664
|
O(e) ? e() : e.unsubscribe();
|
|
637
665
|
}
|
|
638
|
-
var
|
|
639
|
-
|
|
640
|
-
|
|
666
|
+
var Nt = {
|
|
667
|
+
onUnhandledError: null,
|
|
668
|
+
onStoppedNotification: null,
|
|
669
|
+
Promise: void 0,
|
|
670
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
671
|
+
useDeprecatedNextContext: !1
|
|
672
|
+
}, Mr = {
|
|
641
673
|
setTimeout: function(e, t) {
|
|
642
674
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
643
675
|
r[n - 2] = arguments[n];
|
|
644
|
-
return setTimeout.apply(void 0, k([e, t],
|
|
676
|
+
return setTimeout.apply(void 0, k([e, t], Re(r)));
|
|
645
677
|
},
|
|
646
678
|
clearTimeout: function(e) {
|
|
647
679
|
return clearTimeout(e);
|
|
648
680
|
},
|
|
649
681
|
delegate: void 0
|
|
650
682
|
};
|
|
651
|
-
function
|
|
652
|
-
|
|
683
|
+
function Cr(e) {
|
|
684
|
+
Mr.setTimeout(function() {
|
|
653
685
|
throw e;
|
|
654
686
|
});
|
|
655
687
|
}
|
|
656
|
-
function
|
|
688
|
+
function rt() {
|
|
657
689
|
}
|
|
658
690
|
function fe(e) {
|
|
659
691
|
e();
|
|
660
692
|
}
|
|
661
|
-
var
|
|
693
|
+
var Mt = function(e) {
|
|
662
694
|
I(t, e);
|
|
663
695
|
function t(r) {
|
|
664
696
|
var n = e.call(this) || this;
|
|
665
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
697
|
+
return n.isStopped = !1, r ? (n.destination = r, Lt(r) && r.add(n)) : n.destination = Dr, n;
|
|
666
698
|
}
|
|
667
699
|
return t.create = function(r, n, i) {
|
|
668
|
-
return new
|
|
700
|
+
return new De(r, n, i);
|
|
669
701
|
}, t.prototype.next = function(r) {
|
|
670
702
|
this.isStopped || this._next(r);
|
|
671
703
|
}, t.prototype.error = function(r) {
|
|
@@ -689,7 +721,11 @@ var Pt = function(e) {
|
|
|
689
721
|
this.unsubscribe();
|
|
690
722
|
}
|
|
691
723
|
}, t;
|
|
692
|
-
}(ye),
|
|
724
|
+
}(ye), $r = Function.prototype.bind;
|
|
725
|
+
function Be(e, t) {
|
|
726
|
+
return $r.call(e, t);
|
|
727
|
+
}
|
|
728
|
+
var Rr = function() {
|
|
693
729
|
function e(t) {
|
|
694
730
|
this.partialObserver = t;
|
|
695
731
|
}
|
|
@@ -720,43 +756,55 @@ var Pt = function(e) {
|
|
|
720
756
|
he(r);
|
|
721
757
|
}
|
|
722
758
|
}, e;
|
|
723
|
-
}(),
|
|
759
|
+
}(), De = function(e) {
|
|
724
760
|
I(t, e);
|
|
725
761
|
function t(r, n, i) {
|
|
726
762
|
var o = e.call(this) || this, s;
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
763
|
+
if (O(r) || !r)
|
|
764
|
+
s = {
|
|
765
|
+
next: r ?? void 0,
|
|
766
|
+
error: n ?? void 0,
|
|
767
|
+
complete: i ?? void 0
|
|
768
|
+
};
|
|
769
|
+
else {
|
|
770
|
+
var a;
|
|
771
|
+
o && Nt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
772
|
+
return o.unsubscribe();
|
|
773
|
+
}, s = {
|
|
774
|
+
next: r.next && Be(r.next, a),
|
|
775
|
+
error: r.error && Be(r.error, a),
|
|
776
|
+
complete: r.complete && Be(r.complete, a)
|
|
777
|
+
}) : s = r;
|
|
778
|
+
}
|
|
779
|
+
return o.destination = new Rr(s), o;
|
|
732
780
|
}
|
|
733
781
|
return t;
|
|
734
|
-
}(
|
|
782
|
+
}(Mt);
|
|
735
783
|
function he(e) {
|
|
736
|
-
|
|
784
|
+
Cr(e);
|
|
737
785
|
}
|
|
738
|
-
function
|
|
786
|
+
function Ur(e) {
|
|
739
787
|
throw e;
|
|
740
788
|
}
|
|
741
|
-
var
|
|
789
|
+
var Dr = {
|
|
742
790
|
closed: !0,
|
|
743
|
-
next:
|
|
744
|
-
error:
|
|
745
|
-
complete:
|
|
746
|
-
},
|
|
791
|
+
next: rt,
|
|
792
|
+
error: Ur,
|
|
793
|
+
complete: rt
|
|
794
|
+
}, Gr = function() {
|
|
747
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
748
796
|
}();
|
|
749
|
-
function
|
|
797
|
+
function Fr(e) {
|
|
750
798
|
return e;
|
|
751
799
|
}
|
|
752
|
-
function
|
|
753
|
-
return e.length === 0 ?
|
|
800
|
+
function jr(e) {
|
|
801
|
+
return e.length === 0 ? Fr : e.length === 1 ? e[0] : function(r) {
|
|
754
802
|
return e.reduce(function(n, i) {
|
|
755
803
|
return i(n);
|
|
756
804
|
}, r);
|
|
757
805
|
};
|
|
758
806
|
}
|
|
759
|
-
var
|
|
807
|
+
var nt = function() {
|
|
760
808
|
function e(t) {
|
|
761
809
|
t && (this._subscribe = t);
|
|
762
810
|
}
|
|
@@ -764,7 +812,7 @@ var et = function() {
|
|
|
764
812
|
var r = new e();
|
|
765
813
|
return r.source = this, r.operator = t, r;
|
|
766
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
767
|
-
var i = this, o =
|
|
815
|
+
var i = this, o = Vr(t) ? t : new De(t, r, n);
|
|
768
816
|
return fe(function() {
|
|
769
817
|
var s = i, a = s.operator, h = s.source;
|
|
770
818
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -777,8 +825,8 @@ var et = function() {
|
|
|
777
825
|
}
|
|
778
826
|
}, e.prototype.forEach = function(t, r) {
|
|
779
827
|
var n = this;
|
|
780
|
-
return r =
|
|
781
|
-
var s = new
|
|
828
|
+
return r = it(r), new r(function(i, o) {
|
|
829
|
+
var s = new De({
|
|
782
830
|
next: function(a) {
|
|
783
831
|
try {
|
|
784
832
|
t(a);
|
|
@@ -794,15 +842,15 @@ var et = function() {
|
|
|
794
842
|
}, e.prototype._subscribe = function(t) {
|
|
795
843
|
var r;
|
|
796
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
797
|
-
}, e.prototype[
|
|
845
|
+
}, e.prototype[Gr] = function() {
|
|
798
846
|
return this;
|
|
799
847
|
}, e.prototype.pipe = function() {
|
|
800
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
801
849
|
t[r] = arguments[r];
|
|
802
|
-
return
|
|
850
|
+
return jr(t)(this);
|
|
803
851
|
}, e.prototype.toPromise = function(t) {
|
|
804
852
|
var r = this;
|
|
805
|
-
return t =
|
|
853
|
+
return t = it(t), new t(function(n, i) {
|
|
806
854
|
var o;
|
|
807
855
|
r.subscribe(function(s) {
|
|
808
856
|
return o = s;
|
|
@@ -816,32 +864,32 @@ var et = function() {
|
|
|
816
864
|
return new e(t);
|
|
817
865
|
}, e;
|
|
818
866
|
}();
|
|
819
|
-
function
|
|
867
|
+
function it(e) {
|
|
820
868
|
var t;
|
|
821
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? Nt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
822
870
|
}
|
|
823
|
-
function
|
|
871
|
+
function kr(e) {
|
|
824
872
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
825
873
|
}
|
|
826
|
-
function
|
|
827
|
-
return e && e instanceof
|
|
874
|
+
function Vr(e) {
|
|
875
|
+
return e && e instanceof Mt || kr(e) && Lt(e);
|
|
828
876
|
}
|
|
829
|
-
var
|
|
877
|
+
var Xr = Ot(function(e) {
|
|
830
878
|
return function() {
|
|
831
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
832
880
|
};
|
|
833
|
-
}),
|
|
881
|
+
}), Ct = function(e) {
|
|
834
882
|
I(t, e);
|
|
835
883
|
function t() {
|
|
836
884
|
var r = e.call(this) || this;
|
|
837
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
838
886
|
}
|
|
839
887
|
return t.prototype.lift = function(r) {
|
|
840
|
-
var n = new
|
|
888
|
+
var n = new ot(this, this);
|
|
841
889
|
return n.operator = r, n;
|
|
842
890
|
}, t.prototype._throwIfClosed = function() {
|
|
843
891
|
if (this.closed)
|
|
844
|
-
throw new
|
|
892
|
+
throw new Xr();
|
|
845
893
|
}, t.prototype.next = function(r) {
|
|
846
894
|
var n = this;
|
|
847
895
|
fe(function() {
|
|
@@ -849,7 +897,7 @@ var Dr = Bt(function(e) {
|
|
|
849
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
850
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
851
899
|
try {
|
|
852
|
-
for (var s =
|
|
900
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
853
901
|
var h = a.value;
|
|
854
902
|
h.next(r);
|
|
855
903
|
}
|
|
@@ -859,7 +907,8 @@ var Dr = Bt(function(e) {
|
|
|
859
907
|
try {
|
|
860
908
|
a && !a.done && (o = s.return) && o.call(s);
|
|
861
909
|
} finally {
|
|
862
|
-
if (i)
|
|
910
|
+
if (i)
|
|
911
|
+
throw i.error;
|
|
863
912
|
}
|
|
864
913
|
}
|
|
865
914
|
}
|
|
@@ -897,19 +946,19 @@ var Dr = Bt(function(e) {
|
|
|
897
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
898
947
|
}, t.prototype._innerSubscribe = function(r) {
|
|
899
948
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
900
|
-
return o || s ?
|
|
901
|
-
n.currentObservers = null,
|
|
949
|
+
return o || s ? It : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
950
|
+
n.currentObservers = null, Ue(a, r);
|
|
902
951
|
}));
|
|
903
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
904
953
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
905
954
|
i ? r.error(o) : s && r.complete();
|
|
906
955
|
}, t.prototype.asObservable = function() {
|
|
907
|
-
var r = new
|
|
956
|
+
var r = new nt();
|
|
908
957
|
return r.source = this, r;
|
|
909
958
|
}, t.create = function(r, n) {
|
|
910
|
-
return new
|
|
959
|
+
return new ot(r, n);
|
|
911
960
|
}, t;
|
|
912
|
-
}(
|
|
961
|
+
}(nt), ot = function(e) {
|
|
913
962
|
I(t, e);
|
|
914
963
|
function t(r, n) {
|
|
915
964
|
var i = e.call(this) || this;
|
|
@@ -926,17 +975,17 @@ var Dr = Bt(function(e) {
|
|
|
926
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
927
976
|
}, t.prototype._subscribe = function(r) {
|
|
928
977
|
var n, i;
|
|
929
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
978
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
|
|
930
979
|
}, t;
|
|
931
|
-
}(
|
|
980
|
+
}(Ct), $t = {
|
|
932
981
|
now: function() {
|
|
933
|
-
return (
|
|
982
|
+
return ($t.delegate || Date).now();
|
|
934
983
|
},
|
|
935
984
|
delegate: void 0
|
|
936
|
-
},
|
|
985
|
+
}, Wr = function(e) {
|
|
937
986
|
I(t, e);
|
|
938
987
|
function t(r, n, i) {
|
|
939
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
988
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
940
989
|
var o = e.call(this) || this;
|
|
941
990
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
942
991
|
}
|
|
@@ -956,15 +1005,15 @@ var Dr = Bt(function(e) {
|
|
|
956
1005
|
u && o.splice(0, u + 1);
|
|
957
1006
|
}
|
|
958
1007
|
}, t;
|
|
959
|
-
}(
|
|
960
|
-
const
|
|
961
|
-
if (
|
|
962
|
-
const r = new
|
|
963
|
-
|
|
1008
|
+
}(Ct);
|
|
1009
|
+
const st = [], at = {}, zr = (e, t = 0) => {
|
|
1010
|
+
if (st.indexOf(e) == -1) {
|
|
1011
|
+
const r = new Wr(t);
|
|
1012
|
+
at[e] = r, st.push(e);
|
|
964
1013
|
}
|
|
965
|
-
return
|
|
966
|
-
},
|
|
967
|
-
function
|
|
1014
|
+
return at[e];
|
|
1015
|
+
}, G = [];
|
|
1016
|
+
function Zr(e, t) {
|
|
968
1017
|
return {
|
|
969
1018
|
subscribe: ve(e, t).subscribe
|
|
970
1019
|
};
|
|
@@ -973,14 +1022,14 @@ function ve(e, t = B) {
|
|
|
973
1022
|
let r;
|
|
974
1023
|
const n = /* @__PURE__ */ new Set();
|
|
975
1024
|
function i(a) {
|
|
976
|
-
if (
|
|
977
|
-
const h = !
|
|
1025
|
+
if (Ht(e, a) && (e = a, r)) {
|
|
1026
|
+
const h = !G.length;
|
|
978
1027
|
for (const u of n)
|
|
979
|
-
u[1](),
|
|
1028
|
+
u[1](), G.push(u, e);
|
|
980
1029
|
if (h) {
|
|
981
|
-
for (let u = 0; u <
|
|
982
|
-
|
|
983
|
-
|
|
1030
|
+
for (let u = 0; u < G.length; u += 2)
|
|
1031
|
+
G[u][0](G[u + 1]);
|
|
1032
|
+
G.length = 0;
|
|
984
1033
|
}
|
|
985
1034
|
}
|
|
986
1035
|
}
|
|
@@ -1000,7 +1049,7 @@ function Q(e, t, r) {
|
|
|
1000
1049
|
if (!i.every(Boolean))
|
|
1001
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1002
1051
|
const o = t.length < 2;
|
|
1003
|
-
return
|
|
1052
|
+
return Zr(r, (s, a) => {
|
|
1004
1053
|
let h = !1;
|
|
1005
1054
|
const u = [];
|
|
1006
1055
|
let l = 0, f = B;
|
|
@@ -1008,11 +1057,11 @@ function Q(e, t, r) {
|
|
|
1008
1057
|
if (l)
|
|
1009
1058
|
return;
|
|
1010
1059
|
f();
|
|
1011
|
-
const
|
|
1012
|
-
o ? s(
|
|
1060
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1061
|
+
o ? s(d) : f = Ze(d) ? d : B;
|
|
1013
1062
|
}, p = i.map(
|
|
1014
|
-
(
|
|
1015
|
-
|
|
1063
|
+
(d, v) => Bt(
|
|
1064
|
+
d,
|
|
1016
1065
|
(H) => {
|
|
1017
1066
|
u[v] = H, l &= ~(1 << v), h && c();
|
|
1018
1067
|
},
|
|
@@ -1026,70 +1075,70 @@ function Q(e, t, r) {
|
|
|
1026
1075
|
};
|
|
1027
1076
|
});
|
|
1028
1077
|
}
|
|
1029
|
-
function
|
|
1078
|
+
function Qr(e) {
|
|
1030
1079
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1031
1080
|
}
|
|
1032
|
-
var
|
|
1033
|
-
return
|
|
1081
|
+
var qr = function(t) {
|
|
1082
|
+
return Jr(t) && !Yr(t);
|
|
1034
1083
|
};
|
|
1035
|
-
function
|
|
1084
|
+
function Jr(e) {
|
|
1036
1085
|
return !!e && typeof e == "object";
|
|
1037
1086
|
}
|
|
1038
|
-
function
|
|
1087
|
+
function Yr(e) {
|
|
1039
1088
|
var t = Object.prototype.toString.call(e);
|
|
1040
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || tn(e);
|
|
1041
1090
|
}
|
|
1042
|
-
var
|
|
1043
|
-
function
|
|
1044
|
-
return e.$$typeof ===
|
|
1091
|
+
var Kr = typeof Symbol == "function" && Symbol.for, en = Kr ? Symbol.for("react.element") : 60103;
|
|
1092
|
+
function tn(e) {
|
|
1093
|
+
return e.$$typeof === en;
|
|
1045
1094
|
}
|
|
1046
|
-
function
|
|
1095
|
+
function rn(e) {
|
|
1047
1096
|
return Array.isArray(e) ? [] : {};
|
|
1048
1097
|
}
|
|
1049
1098
|
function re(e, t) {
|
|
1050
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? V(
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(rn(e), e, t) : e;
|
|
1051
1100
|
}
|
|
1052
|
-
function
|
|
1101
|
+
function nn(e, t, r) {
|
|
1053
1102
|
return e.concat(t).map(function(n) {
|
|
1054
1103
|
return re(n, r);
|
|
1055
1104
|
});
|
|
1056
1105
|
}
|
|
1057
|
-
function
|
|
1106
|
+
function on(e, t) {
|
|
1058
1107
|
if (!t.customMerge)
|
|
1059
1108
|
return V;
|
|
1060
1109
|
var r = t.customMerge(e);
|
|
1061
1110
|
return typeof r == "function" ? r : V;
|
|
1062
1111
|
}
|
|
1063
|
-
function
|
|
1112
|
+
function sn(e) {
|
|
1064
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1065
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1066
1115
|
}) : [];
|
|
1067
1116
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return Object.keys(e).concat(
|
|
1117
|
+
function ut(e) {
|
|
1118
|
+
return Object.keys(e).concat(sn(e));
|
|
1070
1119
|
}
|
|
1071
|
-
function
|
|
1120
|
+
function Rt(e, t) {
|
|
1072
1121
|
try {
|
|
1073
1122
|
return t in e;
|
|
1074
1123
|
} catch {
|
|
1075
1124
|
return !1;
|
|
1076
1125
|
}
|
|
1077
1126
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return
|
|
1127
|
+
function an(e, t) {
|
|
1128
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1080
1129
|
}
|
|
1081
|
-
function
|
|
1130
|
+
function un(e, t, r) {
|
|
1082
1131
|
var n = {};
|
|
1083
|
-
return r.isMergeableObject(e) &&
|
|
1132
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1084
1133
|
n[i] = re(e[i], r);
|
|
1085
|
-
}),
|
|
1086
|
-
|
|
1134
|
+
}), ut(t).forEach(function(i) {
|
|
1135
|
+
an(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = on(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1087
1136
|
}), n;
|
|
1088
1137
|
}
|
|
1089
1138
|
function V(e, t, r) {
|
|
1090
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || qr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1091
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1092
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : un(e, t, r) : re(t, r);
|
|
1093
1142
|
}
|
|
1094
1143
|
V.all = function(t, r) {
|
|
1095
1144
|
if (!Array.isArray(t))
|
|
@@ -1098,60 +1147,62 @@ V.all = function(t, r) {
|
|
|
1098
1147
|
return V(n, i, r);
|
|
1099
1148
|
}, {});
|
|
1100
1149
|
};
|
|
1101
|
-
var
|
|
1102
|
-
const
|
|
1103
|
-
function
|
|
1104
|
-
var r = t && t.cache ? t.cache :
|
|
1150
|
+
var hn = V, ln = hn;
|
|
1151
|
+
const cn = /* @__PURE__ */ Qr(ln);
|
|
1152
|
+
function we(e, t) {
|
|
1153
|
+
var r = t && t.cache ? t.cache : gn, n = t && t.serializer ? t.serializer : bn, i = t && t.strategy ? t.strategy : pn;
|
|
1105
1154
|
return i(e, {
|
|
1106
1155
|
cache: r,
|
|
1107
1156
|
serializer: n
|
|
1108
1157
|
});
|
|
1109
1158
|
}
|
|
1110
|
-
function
|
|
1159
|
+
function fn(e) {
|
|
1111
1160
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1112
1161
|
}
|
|
1113
|
-
function
|
|
1114
|
-
var i =
|
|
1162
|
+
function Ut(e, t, r, n) {
|
|
1163
|
+
var i = fn(n) ? n : r(n), o = t.get(i);
|
|
1115
1164
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1116
1165
|
}
|
|
1117
|
-
function
|
|
1166
|
+
function Dt(e, t, r) {
|
|
1118
1167
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1119
1168
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1120
1169
|
}
|
|
1121
|
-
function
|
|
1170
|
+
function Qe(e, t, r, n, i) {
|
|
1122
1171
|
return r.bind(t, e, n, i);
|
|
1123
1172
|
}
|
|
1124
|
-
function
|
|
1125
|
-
var r = e.length === 1 ?
|
|
1126
|
-
return
|
|
1173
|
+
function pn(e, t) {
|
|
1174
|
+
var r = e.length === 1 ? Ut : Dt;
|
|
1175
|
+
return Qe(e, this, r, t.cache.create(), t.serializer);
|
|
1127
1176
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return
|
|
1177
|
+
function dn(e, t) {
|
|
1178
|
+
return Qe(e, this, Dt, t.cache.create(), t.serializer);
|
|
1130
1179
|
}
|
|
1131
|
-
|
|
1180
|
+
function mn(e, t) {
|
|
1181
|
+
return Qe(e, this, Ut, t.cache.create(), t.serializer);
|
|
1182
|
+
}
|
|
1183
|
+
var bn = function() {
|
|
1132
1184
|
return JSON.stringify(arguments);
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
}()
|
|
1145
|
-
), pn = {
|
|
1185
|
+
};
|
|
1186
|
+
function qe() {
|
|
1187
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1188
|
+
}
|
|
1189
|
+
qe.prototype.get = function(e) {
|
|
1190
|
+
return this.cache[e];
|
|
1191
|
+
};
|
|
1192
|
+
qe.prototype.set = function(e, t) {
|
|
1193
|
+
this.cache[e] = t;
|
|
1194
|
+
};
|
|
1195
|
+
var gn = {
|
|
1146
1196
|
create: function() {
|
|
1147
|
-
return new
|
|
1197
|
+
return new qe();
|
|
1148
1198
|
}
|
|
1149
|
-
},
|
|
1150
|
-
variadic:
|
|
1151
|
-
|
|
1199
|
+
}, Ae = {
|
|
1200
|
+
variadic: dn,
|
|
1201
|
+
monadic: mn
|
|
1202
|
+
}, m;
|
|
1152
1203
|
(function(e) {
|
|
1153
1204
|
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";
|
|
1154
|
-
})(
|
|
1205
|
+
})(m || (m = {}));
|
|
1155
1206
|
var _;
|
|
1156
1207
|
(function(e) {
|
|
1157
1208
|
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";
|
|
@@ -1160,43 +1211,43 @@ var X;
|
|
|
1160
1211
|
(function(e) {
|
|
1161
1212
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1162
1213
|
})(X || (X = {}));
|
|
1163
|
-
function
|
|
1214
|
+
function ht(e) {
|
|
1164
1215
|
return e.type === _.literal;
|
|
1165
1216
|
}
|
|
1166
|
-
function
|
|
1217
|
+
function yn(e) {
|
|
1167
1218
|
return e.type === _.argument;
|
|
1168
1219
|
}
|
|
1169
|
-
function
|
|
1220
|
+
function Gt(e) {
|
|
1170
1221
|
return e.type === _.number;
|
|
1171
1222
|
}
|
|
1172
|
-
function
|
|
1223
|
+
function Ft(e) {
|
|
1173
1224
|
return e.type === _.date;
|
|
1174
1225
|
}
|
|
1175
|
-
function
|
|
1226
|
+
function jt(e) {
|
|
1176
1227
|
return e.type === _.time;
|
|
1177
1228
|
}
|
|
1178
|
-
function
|
|
1229
|
+
function kt(e) {
|
|
1179
1230
|
return e.type === _.select;
|
|
1180
1231
|
}
|
|
1181
|
-
function
|
|
1232
|
+
function Vt(e) {
|
|
1182
1233
|
return e.type === _.plural;
|
|
1183
1234
|
}
|
|
1184
|
-
function
|
|
1235
|
+
function vn(e) {
|
|
1185
1236
|
return e.type === _.pound;
|
|
1186
1237
|
}
|
|
1187
|
-
function
|
|
1238
|
+
function Xt(e) {
|
|
1188
1239
|
return e.type === _.tag;
|
|
1189
1240
|
}
|
|
1190
|
-
function
|
|
1241
|
+
function Wt(e) {
|
|
1191
1242
|
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1192
1243
|
}
|
|
1193
1244
|
function Ge(e) {
|
|
1194
1245
|
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1195
1246
|
}
|
|
1196
|
-
var
|
|
1197
|
-
function
|
|
1247
|
+
var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[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;
|
|
1248
|
+
function En(e) {
|
|
1198
1249
|
var t = {};
|
|
1199
|
-
return e.replace(
|
|
1250
|
+
return e.replace(_n, function(r) {
|
|
1200
1251
|
var n = r.length;
|
|
1201
1252
|
switch (r[0]) {
|
|
1202
1253
|
case "G":
|
|
@@ -1285,11 +1336,11 @@ function gn(e) {
|
|
|
1285
1336
|
return "";
|
|
1286
1337
|
}), t;
|
|
1287
1338
|
}
|
|
1288
|
-
var
|
|
1289
|
-
function
|
|
1339
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1340
|
+
function Sn(e) {
|
|
1290
1341
|
if (e.length === 0)
|
|
1291
1342
|
throw new Error("Number skeleton cannot be empty");
|
|
1292
|
-
for (var t = e.split(
|
|
1343
|
+
for (var t = e.split(xn).filter(function(c) {
|
|
1293
1344
|
return c.length > 0;
|
|
1294
1345
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1295
1346
|
var o = i[n], s = o.split("/");
|
|
@@ -1304,17 +1355,17 @@ function vn(e) {
|
|
|
1304
1355
|
}
|
|
1305
1356
|
return r;
|
|
1306
1357
|
}
|
|
1307
|
-
function
|
|
1358
|
+
function Tn(e) {
|
|
1308
1359
|
return e.replace(/^(.*?)-/, "");
|
|
1309
1360
|
}
|
|
1310
|
-
var
|
|
1311
|
-
function
|
|
1361
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1362
|
+
function ct(e) {
|
|
1312
1363
|
var t = {};
|
|
1313
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1364
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1314
1365
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1315
1366
|
}), t;
|
|
1316
1367
|
}
|
|
1317
|
-
function
|
|
1368
|
+
function qt(e) {
|
|
1318
1369
|
switch (e) {
|
|
1319
1370
|
case "sign-auto":
|
|
1320
1371
|
return {
|
|
@@ -1354,7 +1405,7 @@ function Xt(e) {
|
|
|
1354
1405
|
};
|
|
1355
1406
|
}
|
|
1356
1407
|
}
|
|
1357
|
-
function
|
|
1408
|
+
function Bn(e) {
|
|
1358
1409
|
var t;
|
|
1359
1410
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1360
1411
|
notation: "engineering"
|
|
@@ -1362,17 +1413,17 @@ function En(e) {
|
|
|
1362
1413
|
notation: "scientific"
|
|
1363
1414
|
}, e = e.slice(1)), t) {
|
|
1364
1415
|
var r = e.slice(0, 2);
|
|
1365
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1416
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
|
|
1366
1417
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1367
1418
|
t.minimumIntegerDigits = e.length;
|
|
1368
1419
|
}
|
|
1369
1420
|
return t;
|
|
1370
1421
|
}
|
|
1371
|
-
function
|
|
1372
|
-
var t = {}, r =
|
|
1422
|
+
function ft(e) {
|
|
1423
|
+
var t = {}, r = qt(e);
|
|
1373
1424
|
return r || t;
|
|
1374
1425
|
}
|
|
1375
|
-
function
|
|
1426
|
+
function wn(e) {
|
|
1376
1427
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1377
1428
|
var i = n[r];
|
|
1378
1429
|
switch (i.stem) {
|
|
@@ -1396,7 +1447,7 @@ function Sn(e) {
|
|
|
1396
1447
|
continue;
|
|
1397
1448
|
case "measure-unit":
|
|
1398
1449
|
case "unit":
|
|
1399
|
-
t.style = "unit", t.unit =
|
|
1450
|
+
t.style = "unit", t.unit = Tn(i.options[0]);
|
|
1400
1451
|
continue;
|
|
1401
1452
|
case "compact-short":
|
|
1402
1453
|
case "K":
|
|
@@ -1408,12 +1459,12 @@ function Sn(e) {
|
|
|
1408
1459
|
continue;
|
|
1409
1460
|
case "scientific":
|
|
1410
1461
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1411
|
-
return g(g({}, h),
|
|
1462
|
+
return g(g({}, h), ft(u));
|
|
1412
1463
|
}, {}));
|
|
1413
1464
|
continue;
|
|
1414
1465
|
case "engineering":
|
|
1415
1466
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1416
|
-
return g(g({}, h),
|
|
1467
|
+
return g(g({}, h), ft(u));
|
|
1417
1468
|
}, {}));
|
|
1418
1469
|
continue;
|
|
1419
1470
|
case "notation-simple":
|
|
@@ -1458,7 +1509,7 @@ function Sn(e) {
|
|
|
1458
1509
|
case "integer-width":
|
|
1459
1510
|
if (i.options.length > 1)
|
|
1460
1511
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1461
|
-
i.options[0].replace(
|
|
1512
|
+
i.options[0].replace(Hn, function(h, u, l, f, c, p) {
|
|
1462
1513
|
if (u)
|
|
1463
1514
|
t.minimumIntegerDigits = l.length;
|
|
1464
1515
|
else {
|
|
@@ -1471,27 +1522,27 @@ function Sn(e) {
|
|
|
1471
1522
|
});
|
|
1472
1523
|
continue;
|
|
1473
1524
|
}
|
|
1474
|
-
if (
|
|
1525
|
+
if (Qt.test(i.stem)) {
|
|
1475
1526
|
t.minimumIntegerDigits = i.stem.length;
|
|
1476
1527
|
continue;
|
|
1477
1528
|
}
|
|
1478
|
-
if (
|
|
1529
|
+
if (lt.test(i.stem)) {
|
|
1479
1530
|
if (i.options.length > 1)
|
|
1480
1531
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1481
|
-
i.stem.replace(
|
|
1532
|
+
i.stem.replace(lt, function(h, u, l, f, c, p) {
|
|
1482
1533
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1483
1534
|
});
|
|
1484
1535
|
var o = i.options[0];
|
|
1485
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1536
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ct(o)));
|
|
1486
1537
|
continue;
|
|
1487
1538
|
}
|
|
1488
|
-
if (
|
|
1489
|
-
t = g(g({}, t),
|
|
1539
|
+
if (Zt.test(i.stem)) {
|
|
1540
|
+
t = g(g({}, t), ct(i.stem));
|
|
1490
1541
|
continue;
|
|
1491
1542
|
}
|
|
1492
|
-
var s =
|
|
1543
|
+
var s = qt(i.stem);
|
|
1493
1544
|
s && (t = g(g({}, t), s));
|
|
1494
|
-
var a =
|
|
1545
|
+
var a = Bn(i.stem);
|
|
1495
1546
|
a && (t = g(g({}, t), a));
|
|
1496
1547
|
}
|
|
1497
1548
|
return t;
|
|
@@ -2911,22 +2962,23 @@ var le = {
|
|
|
2911
2962
|
"h"
|
|
2912
2963
|
]
|
|
2913
2964
|
};
|
|
2914
|
-
function
|
|
2965
|
+
function An(e, t) {
|
|
2915
2966
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2916
2967
|
var i = e.charAt(n);
|
|
2917
2968
|
if (i === "j") {
|
|
2918
2969
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2919
2970
|
o++, n++;
|
|
2920
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2971
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Pn(t);
|
|
2921
2972
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2922
2973
|
r += h;
|
|
2923
2974
|
for (; s-- > 0; )
|
|
2924
2975
|
r = u + r;
|
|
2925
|
-
} else
|
|
2976
|
+
} else
|
|
2977
|
+
i === "J" ? r += "H" : r += i;
|
|
2926
2978
|
}
|
|
2927
2979
|
return r;
|
|
2928
2980
|
}
|
|
2929
|
-
function
|
|
2981
|
+
function Pn(e) {
|
|
2930
2982
|
var t = e.hourCycle;
|
|
2931
2983
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2932
2984
|
e.hourCycles && // @ts-ignore
|
|
@@ -2948,20 +3000,20 @@ function Hn(e) {
|
|
|
2948
3000
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2949
3001
|
return i[0];
|
|
2950
3002
|
}
|
|
2951
|
-
var
|
|
2952
|
-
function
|
|
3003
|
+
var Pe, On = new RegExp("^".concat(zt.source, "*")), In = new RegExp("".concat(zt.source, "*$"));
|
|
3004
|
+
function b(e, t) {
|
|
2953
3005
|
return { start: e, end: t };
|
|
2954
3006
|
}
|
|
2955
|
-
var
|
|
3007
|
+
var Ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nn = !!String.fromCodePoint, Mn = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, $n = !!String.prototype.trimStart, Rn = !!String.prototype.trimEnd, Un = !!Number.isSafeInteger, Dn = Un ? Number.isSafeInteger : function(e) {
|
|
2956
3008
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2957
|
-
},
|
|
3009
|
+
}, Fe = !0;
|
|
2958
3010
|
try {
|
|
2959
|
-
var
|
|
2960
|
-
|
|
3011
|
+
var Gn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3012
|
+
Fe = ((Pe = Gn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
2961
3013
|
} catch {
|
|
2962
|
-
|
|
3014
|
+
Fe = !1;
|
|
2963
3015
|
}
|
|
2964
|
-
var
|
|
3016
|
+
var pt = Ln ? (
|
|
2965
3017
|
// Native
|
|
2966
3018
|
function(t, r, n) {
|
|
2967
3019
|
return t.startsWith(r, n);
|
|
@@ -2971,7 +3023,7 @@ var lt = An ? (
|
|
|
2971
3023
|
function(t, r, n) {
|
|
2972
3024
|
return t.slice(n, n + r.length) === r;
|
|
2973
3025
|
}
|
|
2974
|
-
),
|
|
3026
|
+
), je = Nn ? String.fromCodePoint : (
|
|
2975
3027
|
// IE11
|
|
2976
3028
|
function() {
|
|
2977
3029
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2983,9 +3035,9 @@ var lt = An ? (
|
|
|
2983
3035
|
}
|
|
2984
3036
|
return n;
|
|
2985
3037
|
}
|
|
2986
|
-
),
|
|
3038
|
+
), dt = (
|
|
2987
3039
|
// native
|
|
2988
|
-
|
|
3040
|
+
Mn ? Object.fromEntries : (
|
|
2989
3041
|
// Ponyfill
|
|
2990
3042
|
function(t) {
|
|
2991
3043
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2995,7 +3047,7 @@ var lt = An ? (
|
|
|
2995
3047
|
return r;
|
|
2996
3048
|
}
|
|
2997
3049
|
)
|
|
2998
|
-
),
|
|
3050
|
+
), Jt = Cn ? (
|
|
2999
3051
|
// Native
|
|
3000
3052
|
function(t, r) {
|
|
3001
3053
|
return t.codePointAt(r);
|
|
@@ -3009,7 +3061,7 @@ var lt = An ? (
|
|
|
3009
3061
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3010
3062
|
}
|
|
3011
3063
|
}
|
|
3012
|
-
),
|
|
3064
|
+
), Fn = $n ? (
|
|
3013
3065
|
// Native
|
|
3014
3066
|
function(t) {
|
|
3015
3067
|
return t.trimStart();
|
|
@@ -3017,9 +3069,9 @@ var lt = An ? (
|
|
|
3017
3069
|
) : (
|
|
3018
3070
|
// Ponyfill
|
|
3019
3071
|
function(t) {
|
|
3020
|
-
return t.replace(
|
|
3072
|
+
return t.replace(On, "");
|
|
3021
3073
|
}
|
|
3022
|
-
),
|
|
3074
|
+
), jn = Rn ? (
|
|
3023
3075
|
// Native
|
|
3024
3076
|
function(t) {
|
|
3025
3077
|
return t.trimEnd();
|
|
@@ -3027,32 +3079,32 @@ var lt = An ? (
|
|
|
3027
3079
|
) : (
|
|
3028
3080
|
// Ponyfill
|
|
3029
3081
|
function(t) {
|
|
3030
|
-
return t.replace(
|
|
3082
|
+
return t.replace(In, "");
|
|
3031
3083
|
}
|
|
3032
3084
|
);
|
|
3033
|
-
function
|
|
3085
|
+
function Yt(e, t) {
|
|
3034
3086
|
return new RegExp(e, t);
|
|
3035
3087
|
}
|
|
3036
|
-
var
|
|
3037
|
-
if (
|
|
3038
|
-
var
|
|
3039
|
-
|
|
3088
|
+
var ke;
|
|
3089
|
+
if (Fe) {
|
|
3090
|
+
var mt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3091
|
+
ke = function(t, r) {
|
|
3040
3092
|
var n;
|
|
3041
|
-
|
|
3042
|
-
var i =
|
|
3093
|
+
mt.lastIndex = r;
|
|
3094
|
+
var i = mt.exec(t);
|
|
3043
3095
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3044
3096
|
};
|
|
3045
3097
|
} else
|
|
3046
|
-
|
|
3098
|
+
ke = function(t, r) {
|
|
3047
3099
|
for (var n = []; ; ) {
|
|
3048
|
-
var i =
|
|
3049
|
-
if (i === void 0 ||
|
|
3100
|
+
var i = Jt(t, r);
|
|
3101
|
+
if (i === void 0 || Kt(i) || Wn(i))
|
|
3050
3102
|
break;
|
|
3051
3103
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3052
3104
|
}
|
|
3053
|
-
return
|
|
3105
|
+
return je.apply(void 0, n);
|
|
3054
3106
|
};
|
|
3055
|
-
var
|
|
3107
|
+
var kn = (
|
|
3056
3108
|
/** @class */
|
|
3057
3109
|
function() {
|
|
3058
3110
|
function e(t, r) {
|
|
@@ -3077,13 +3129,13 @@ var Gn = (
|
|
|
3077
3129
|
var a = this.clonePosition();
|
|
3078
3130
|
this.bump(), i.push({
|
|
3079
3131
|
type: _.pound,
|
|
3080
|
-
location:
|
|
3132
|
+
location: b(a, this.clonePosition())
|
|
3081
3133
|
});
|
|
3082
3134
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3083
3135
|
if (n)
|
|
3084
3136
|
break;
|
|
3085
|
-
return this.error(
|
|
3086
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3137
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3138
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3087
3139
|
var s = this.parseTag(t, r);
|
|
3088
3140
|
if (s.err)
|
|
3089
3141
|
return s;
|
|
@@ -3106,7 +3158,7 @@ var Gn = (
|
|
|
3106
3158
|
val: {
|
|
3107
3159
|
type: _.literal,
|
|
3108
3160
|
value: "<".concat(i, "/>"),
|
|
3109
|
-
location:
|
|
3161
|
+
location: b(n, this.clonePosition())
|
|
3110
3162
|
},
|
|
3111
3163
|
err: null
|
|
3112
3164
|
};
|
|
@@ -3116,25 +3168,25 @@ var Gn = (
|
|
|
3116
3168
|
return o;
|
|
3117
3169
|
var s = o.val, a = this.clonePosition();
|
|
3118
3170
|
if (this.bumpIf("</")) {
|
|
3119
|
-
if (this.isEOF() || !
|
|
3120
|
-
return this.error(
|
|
3171
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3172
|
+
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3121
3173
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3122
|
-
return i !== u ? this.error(
|
|
3174
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3123
3175
|
val: {
|
|
3124
3176
|
type: _.tag,
|
|
3125
3177
|
value: i,
|
|
3126
3178
|
children: s,
|
|
3127
|
-
location:
|
|
3179
|
+
location: b(n, this.clonePosition())
|
|
3128
3180
|
},
|
|
3129
3181
|
err: null
|
|
3130
|
-
} : this.error(
|
|
3182
|
+
} : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
|
|
3131
3183
|
} else
|
|
3132
|
-
return this.error(
|
|
3184
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3133
3185
|
} else
|
|
3134
|
-
return this.error(
|
|
3186
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3135
3187
|
}, e.prototype.parseTagName = function() {
|
|
3136
3188
|
var t = this.offset();
|
|
3137
|
-
for (this.bump(); !this.isEOF() &&
|
|
3189
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3138
3190
|
this.bump();
|
|
3139
3191
|
return this.message.slice(t, this.offset());
|
|
3140
3192
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3156,14 +3208,14 @@ var Gn = (
|
|
|
3156
3208
|
}
|
|
3157
3209
|
break;
|
|
3158
3210
|
}
|
|
3159
|
-
var h =
|
|
3211
|
+
var h = b(n, this.clonePosition());
|
|
3160
3212
|
return {
|
|
3161
3213
|
val: { type: _.literal, value: i, location: h },
|
|
3162
3214
|
err: null
|
|
3163
3215
|
};
|
|
3164
3216
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3165
3217
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3166
|
-
!
|
|
3218
|
+
!Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3167
3219
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3168
3220
|
if (this.isEOF() || this.char() !== 39)
|
|
3169
3221
|
return null;
|
|
@@ -3197,23 +3249,23 @@ var Gn = (
|
|
|
3197
3249
|
r.push(n);
|
|
3198
3250
|
this.bump();
|
|
3199
3251
|
}
|
|
3200
|
-
return
|
|
3252
|
+
return je.apply(void 0, r);
|
|
3201
3253
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3202
3254
|
if (this.isEOF())
|
|
3203
3255
|
return null;
|
|
3204
3256
|
var n = this.char();
|
|
3205
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3257
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3206
3258
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3207
3259
|
var n = this.clonePosition();
|
|
3208
3260
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3209
|
-
return this.error(
|
|
3261
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3210
3262
|
if (this.char() === 125)
|
|
3211
|
-
return this.bump(), this.error(
|
|
3263
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3212
3264
|
var i = this.parseIdentifierIfPossible().value;
|
|
3213
3265
|
if (!i)
|
|
3214
|
-
return this.error(
|
|
3266
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3215
3267
|
if (this.bumpSpace(), this.isEOF())
|
|
3216
|
-
return this.error(
|
|
3268
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3217
3269
|
switch (this.char()) {
|
|
3218
3270
|
case 125:
|
|
3219
3271
|
return this.bump(), {
|
|
@@ -3221,25 +3273,25 @@ var Gn = (
|
|
|
3221
3273
|
type: _.argument,
|
|
3222
3274
|
// value does not include the opening and closing braces.
|
|
3223
3275
|
value: i,
|
|
3224
|
-
location:
|
|
3276
|
+
location: b(n, this.clonePosition())
|
|
3225
3277
|
},
|
|
3226
3278
|
err: null
|
|
3227
3279
|
};
|
|
3228
3280
|
case 44:
|
|
3229
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3281
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3230
3282
|
default:
|
|
3231
|
-
return this.error(
|
|
3283
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3232
3284
|
}
|
|
3233
3285
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3234
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3286
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3235
3287
|
this.bumpTo(i);
|
|
3236
|
-
var o = this.clonePosition(), s =
|
|
3288
|
+
var o = this.clonePosition(), s = b(t, o);
|
|
3237
3289
|
return { value: n, location: s };
|
|
3238
3290
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3239
3291
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3240
3292
|
switch (a) {
|
|
3241
3293
|
case "":
|
|
3242
|
-
return this.error(
|
|
3294
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3243
3295
|
case "number":
|
|
3244
3296
|
case "date":
|
|
3245
3297
|
case "time": {
|
|
@@ -3250,18 +3302,18 @@ var Gn = (
|
|
|
3250
3302
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3251
3303
|
if (f.err)
|
|
3252
3304
|
return f;
|
|
3253
|
-
var c =
|
|
3305
|
+
var c = jn(f.val);
|
|
3254
3306
|
if (c.length === 0)
|
|
3255
|
-
return this.error(
|
|
3256
|
-
var p =
|
|
3307
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3308
|
+
var p = b(l, this.clonePosition());
|
|
3257
3309
|
u = { style: c, styleLocation: p };
|
|
3258
3310
|
}
|
|
3259
|
-
var
|
|
3260
|
-
if (
|
|
3261
|
-
return
|
|
3262
|
-
var v =
|
|
3263
|
-
if (u &&
|
|
3264
|
-
var H =
|
|
3311
|
+
var d = this.tryParseArgumentClose(i);
|
|
3312
|
+
if (d.err)
|
|
3313
|
+
return d;
|
|
3314
|
+
var v = b(i, this.clonePosition());
|
|
3315
|
+
if (u && pt(u?.style, "::", 0)) {
|
|
3316
|
+
var H = Fn(u.style.slice(2));
|
|
3265
3317
|
if (a === "number") {
|
|
3266
3318
|
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3267
3319
|
return f.err ? f : {
|
|
@@ -3270,14 +3322,14 @@ var Gn = (
|
|
|
3270
3322
|
};
|
|
3271
3323
|
} else {
|
|
3272
3324
|
if (H.length === 0)
|
|
3273
|
-
return this.error(
|
|
3325
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3274
3326
|
var C = H;
|
|
3275
|
-
this.locale && (C =
|
|
3327
|
+
this.locale && (C = An(H, this.locale));
|
|
3276
3328
|
var c = {
|
|
3277
3329
|
type: X.dateTime,
|
|
3278
3330
|
pattern: C,
|
|
3279
3331
|
location: u.styleLocation,
|
|
3280
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3332
|
+
parsedOptions: this.shouldParseSkeletons ? En(C) : {}
|
|
3281
3333
|
}, L = a === "date" ? _.date : _.time;
|
|
3282
3334
|
return {
|
|
3283
3335
|
val: { type: L, value: n, location: v, style: c },
|
|
@@ -3298,16 +3350,16 @@ var Gn = (
|
|
|
3298
3350
|
case "plural":
|
|
3299
3351
|
case "selectordinal":
|
|
3300
3352
|
case "select": {
|
|
3301
|
-
var
|
|
3353
|
+
var x = this.clonePosition();
|
|
3302
3354
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3303
|
-
return this.error(
|
|
3355
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, g({}, x)));
|
|
3304
3356
|
this.bumpSpace();
|
|
3305
3357
|
var $ = this.parseIdentifierIfPossible(), A = 0;
|
|
3306
3358
|
if (a !== "select" && $.value === "offset") {
|
|
3307
3359
|
if (!this.bumpIf(":"))
|
|
3308
|
-
return this.error(
|
|
3360
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3309
3361
|
this.bumpSpace();
|
|
3310
|
-
var f = this.tryParseDecimalInteger(
|
|
3362
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3311
3363
|
if (f.err)
|
|
3312
3364
|
return f;
|
|
3313
3365
|
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = f.val;
|
|
@@ -3315,15 +3367,15 @@ var Gn = (
|
|
|
3315
3367
|
var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3316
3368
|
if (U.err)
|
|
3317
3369
|
return U;
|
|
3318
|
-
var
|
|
3319
|
-
if (
|
|
3320
|
-
return
|
|
3321
|
-
var ae =
|
|
3370
|
+
var d = this.tryParseArgumentClose(i);
|
|
3371
|
+
if (d.err)
|
|
3372
|
+
return d;
|
|
3373
|
+
var ae = b(i, this.clonePosition());
|
|
3322
3374
|
return a === "select" ? {
|
|
3323
3375
|
val: {
|
|
3324
3376
|
type: _.select,
|
|
3325
3377
|
value: n,
|
|
3326
|
-
options:
|
|
3378
|
+
options: dt(U.val),
|
|
3327
3379
|
location: ae
|
|
3328
3380
|
},
|
|
3329
3381
|
err: null
|
|
@@ -3331,7 +3383,7 @@ var Gn = (
|
|
|
3331
3383
|
val: {
|
|
3332
3384
|
type: _.plural,
|
|
3333
3385
|
value: n,
|
|
3334
|
-
options:
|
|
3386
|
+
options: dt(U.val),
|
|
3335
3387
|
offset: A,
|
|
3336
3388
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3337
3389
|
location: ae
|
|
@@ -3340,10 +3392,10 @@ var Gn = (
|
|
|
3340
3392
|
};
|
|
3341
3393
|
}
|
|
3342
3394
|
default:
|
|
3343
|
-
return this.error(
|
|
3395
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3344
3396
|
}
|
|
3345
3397
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3346
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3398
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3347
3399
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3348
3400
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3349
3401
|
var n = this.char();
|
|
@@ -3352,7 +3404,7 @@ var Gn = (
|
|
|
3352
3404
|
this.bump();
|
|
3353
3405
|
var i = this.clonePosition();
|
|
3354
3406
|
if (!this.bumpUntil("'"))
|
|
3355
|
-
return this.error(
|
|
3407
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3356
3408
|
this.bump();
|
|
3357
3409
|
break;
|
|
3358
3410
|
}
|
|
@@ -3382,16 +3434,16 @@ var Gn = (
|
|
|
3382
3434
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3383
3435
|
var n = [];
|
|
3384
3436
|
try {
|
|
3385
|
-
n =
|
|
3437
|
+
n = Sn(t);
|
|
3386
3438
|
} catch {
|
|
3387
|
-
return this.error(
|
|
3439
|
+
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3388
3440
|
}
|
|
3389
3441
|
return {
|
|
3390
3442
|
val: {
|
|
3391
3443
|
type: X.number,
|
|
3392
3444
|
tokens: n,
|
|
3393
3445
|
location: r,
|
|
3394
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3446
|
+
parsedOptions: this.shouldParseSkeletons ? wn(n) : {}
|
|
3395
3447
|
},
|
|
3396
3448
|
err: null
|
|
3397
3449
|
};
|
|
@@ -3400,34 +3452,34 @@ var Gn = (
|
|
|
3400
3452
|
if (u.length === 0) {
|
|
3401
3453
|
var f = this.clonePosition();
|
|
3402
3454
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3403
|
-
var c = this.tryParseDecimalInteger(
|
|
3455
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3404
3456
|
if (c.err)
|
|
3405
3457
|
return c;
|
|
3406
|
-
l =
|
|
3458
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3407
3459
|
} else
|
|
3408
3460
|
break;
|
|
3409
3461
|
}
|
|
3410
3462
|
if (h.has(u))
|
|
3411
|
-
return this.error(r === "select" ?
|
|
3463
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3412
3464
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3413
3465
|
var p = this.clonePosition();
|
|
3414
3466
|
if (!this.bumpIf("{"))
|
|
3415
|
-
return this.error(r === "select" ?
|
|
3416
|
-
var
|
|
3417
|
-
if (
|
|
3418
|
-
return
|
|
3467
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3468
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3469
|
+
if (d.err)
|
|
3470
|
+
return d;
|
|
3419
3471
|
var v = this.tryParseArgumentClose(p);
|
|
3420
3472
|
if (v.err)
|
|
3421
3473
|
return v;
|
|
3422
3474
|
a.push([
|
|
3423
3475
|
u,
|
|
3424
3476
|
{
|
|
3425
|
-
value:
|
|
3426
|
-
location:
|
|
3477
|
+
value: d.val,
|
|
3478
|
+
location: b(p, this.clonePosition())
|
|
3427
3479
|
}
|
|
3428
3480
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3429
3481
|
}
|
|
3430
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3482
|
+
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3431
3483
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3432
3484
|
var n = 1, i = this.clonePosition();
|
|
3433
3485
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3438,8 +3490,8 @@ var Gn = (
|
|
|
3438
3490
|
else
|
|
3439
3491
|
break;
|
|
3440
3492
|
}
|
|
3441
|
-
var h =
|
|
3442
|
-
return o ? (s *= n,
|
|
3493
|
+
var h = b(i, this.clonePosition());
|
|
3494
|
+
return o ? (s *= n, Dn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3443
3495
|
}, e.prototype.offset = function() {
|
|
3444
3496
|
return this.position.offset;
|
|
3445
3497
|
}, e.prototype.isEOF = function() {
|
|
@@ -3454,7 +3506,7 @@ var Gn = (
|
|
|
3454
3506
|
var t = this.position.offset;
|
|
3455
3507
|
if (t >= this.message.length)
|
|
3456
3508
|
throw Error("out of bound");
|
|
3457
|
-
var r =
|
|
3509
|
+
var r = Jt(this.message, t);
|
|
3458
3510
|
if (r === void 0)
|
|
3459
3511
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3460
3512
|
return r;
|
|
@@ -3473,7 +3525,7 @@ var Gn = (
|
|
|
3473
3525
|
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);
|
|
3474
3526
|
}
|
|
3475
3527
|
}, e.prototype.bumpIf = function(t) {
|
|
3476
|
-
if (
|
|
3528
|
+
if (pt(this.message, t, this.offset())) {
|
|
3477
3529
|
for (var r = 0; r < t.length; r++)
|
|
3478
3530
|
this.bump();
|
|
3479
3531
|
return !0;
|
|
@@ -3495,7 +3547,7 @@ var Gn = (
|
|
|
3495
3547
|
break;
|
|
3496
3548
|
}
|
|
3497
3549
|
}, e.prototype.bumpSpace = function() {
|
|
3498
|
-
for (; !this.isEOF() &&
|
|
3550
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3499
3551
|
this.bump();
|
|
3500
3552
|
}, e.prototype.peek = function() {
|
|
3501
3553
|
if (this.isEOF())
|
|
@@ -3505,37 +3557,38 @@ var Gn = (
|
|
|
3505
3557
|
}, e;
|
|
3506
3558
|
}()
|
|
3507
3559
|
);
|
|
3508
|
-
function
|
|
3560
|
+
function Ve(e) {
|
|
3509
3561
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3510
3562
|
}
|
|
3511
|
-
function
|
|
3512
|
-
return
|
|
3563
|
+
function Vn(e) {
|
|
3564
|
+
return Ve(e) || e === 47;
|
|
3513
3565
|
}
|
|
3514
|
-
function
|
|
3566
|
+
function Xn(e) {
|
|
3515
3567
|
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;
|
|
3516
3568
|
}
|
|
3517
|
-
function
|
|
3569
|
+
function Kt(e) {
|
|
3518
3570
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3519
3571
|
}
|
|
3520
|
-
function
|
|
3572
|
+
function Wn(e) {
|
|
3521
3573
|
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;
|
|
3522
3574
|
}
|
|
3523
|
-
function
|
|
3575
|
+
function Xe(e) {
|
|
3524
3576
|
e.forEach(function(t) {
|
|
3525
|
-
if (delete t.location,
|
|
3577
|
+
if (delete t.location, kt(t) || Vt(t))
|
|
3526
3578
|
for (var r in t.options)
|
|
3527
|
-
delete t.options[r].location,
|
|
3528
|
-
else
|
|
3579
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3580
|
+
else
|
|
3581
|
+
Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && Ge(t.style) ? delete t.style.location : Xt(t) && Xe(t.children);
|
|
3529
3582
|
});
|
|
3530
3583
|
}
|
|
3531
|
-
function
|
|
3584
|
+
function zn(e, t) {
|
|
3532
3585
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3533
|
-
var r = new
|
|
3586
|
+
var r = new kn(e, t).parse();
|
|
3534
3587
|
if (r.err) {
|
|
3535
|
-
var n = SyntaxError(
|
|
3588
|
+
var n = SyntaxError(m[r.err.kind]);
|
|
3536
3589
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3537
3590
|
}
|
|
3538
|
-
return t?.captureLocation ||
|
|
3591
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3539
3592
|
}
|
|
3540
3593
|
var W;
|
|
3541
3594
|
(function(e) {
|
|
@@ -3553,7 +3606,7 @@ var _e = (
|
|
|
3553
3606
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3554
3607
|
}, t;
|
|
3555
3608
|
}(Error)
|
|
3556
|
-
),
|
|
3609
|
+
), bt = (
|
|
3557
3610
|
/** @class */
|
|
3558
3611
|
function(e) {
|
|
3559
3612
|
I(t, e);
|
|
@@ -3562,7 +3615,7 @@ var _e = (
|
|
|
3562
3615
|
}
|
|
3563
3616
|
return t;
|
|
3564
3617
|
}(_e)
|
|
3565
|
-
),
|
|
3618
|
+
), Zn = (
|
|
3566
3619
|
/** @class */
|
|
3567
3620
|
function(e) {
|
|
3568
3621
|
I(t, e);
|
|
@@ -3571,7 +3624,7 @@ var _e = (
|
|
|
3571
3624
|
}
|
|
3572
3625
|
return t;
|
|
3573
3626
|
}(_e)
|
|
3574
|
-
),
|
|
3627
|
+
), Qn = (
|
|
3575
3628
|
/** @class */
|
|
3576
3629
|
function(e) {
|
|
3577
3630
|
I(t, e);
|
|
@@ -3580,128 +3633,128 @@ var _e = (
|
|
|
3580
3633
|
}
|
|
3581
3634
|
return t;
|
|
3582
3635
|
}(_e)
|
|
3583
|
-
),
|
|
3636
|
+
), E;
|
|
3584
3637
|
(function(e) {
|
|
3585
3638
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3586
|
-
})(
|
|
3587
|
-
function
|
|
3639
|
+
})(E || (E = {}));
|
|
3640
|
+
function qn(e) {
|
|
3588
3641
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3589
3642
|
var n = t[t.length - 1];
|
|
3590
|
-
return !n || n.type !==
|
|
3643
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3591
3644
|
}, []);
|
|
3592
3645
|
}
|
|
3593
|
-
function
|
|
3646
|
+
function Jn(e) {
|
|
3594
3647
|
return typeof e == "function";
|
|
3595
3648
|
}
|
|
3596
3649
|
function pe(e, t, r, n, i, o, s) {
|
|
3597
|
-
if (e.length === 1 &&
|
|
3650
|
+
if (e.length === 1 && ht(e[0]))
|
|
3598
3651
|
return [
|
|
3599
3652
|
{
|
|
3600
|
-
type:
|
|
3653
|
+
type: E.literal,
|
|
3601
3654
|
value: e[0].value
|
|
3602
3655
|
}
|
|
3603
3656
|
];
|
|
3604
3657
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3605
3658
|
var l = u[h];
|
|
3606
|
-
if (
|
|
3659
|
+
if (ht(l)) {
|
|
3607
3660
|
a.push({
|
|
3608
|
-
type:
|
|
3661
|
+
type: E.literal,
|
|
3609
3662
|
value: l.value
|
|
3610
3663
|
});
|
|
3611
3664
|
continue;
|
|
3612
3665
|
}
|
|
3613
|
-
if (
|
|
3666
|
+
if (vn(l)) {
|
|
3614
3667
|
typeof o == "number" && a.push({
|
|
3615
|
-
type:
|
|
3668
|
+
type: E.literal,
|
|
3616
3669
|
value: r.getNumberFormat(t).format(o)
|
|
3617
3670
|
});
|
|
3618
3671
|
continue;
|
|
3619
3672
|
}
|
|
3620
3673
|
var f = l.value;
|
|
3621
3674
|
if (!(i && f in i))
|
|
3622
|
-
throw new
|
|
3675
|
+
throw new Qn(f, s);
|
|
3623
3676
|
var c = i[f];
|
|
3624
|
-
if (
|
|
3677
|
+
if (yn(l)) {
|
|
3625
3678
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3626
|
-
type: typeof c == "string" ?
|
|
3679
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3627
3680
|
value: c
|
|
3628
3681
|
});
|
|
3629
3682
|
continue;
|
|
3630
3683
|
}
|
|
3631
|
-
if (
|
|
3684
|
+
if (Ft(l)) {
|
|
3632
3685
|
var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
|
|
3633
3686
|
a.push({
|
|
3634
|
-
type:
|
|
3687
|
+
type: E.literal,
|
|
3635
3688
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3636
3689
|
});
|
|
3637
3690
|
continue;
|
|
3638
3691
|
}
|
|
3639
|
-
if (
|
|
3692
|
+
if (jt(l)) {
|
|
3640
3693
|
var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3641
3694
|
a.push({
|
|
3642
|
-
type:
|
|
3695
|
+
type: E.literal,
|
|
3643
3696
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3644
3697
|
});
|
|
3645
3698
|
continue;
|
|
3646
3699
|
}
|
|
3647
|
-
if (
|
|
3648
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3700
|
+
if (Gt(l)) {
|
|
3701
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3649
3702
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3650
|
-
type:
|
|
3703
|
+
type: E.literal,
|
|
3651
3704
|
value: r.getNumberFormat(t, p).format(c)
|
|
3652
3705
|
});
|
|
3653
3706
|
continue;
|
|
3654
3707
|
}
|
|
3655
|
-
if (
|
|
3656
|
-
var
|
|
3657
|
-
if (!
|
|
3658
|
-
throw new
|
|
3659
|
-
var C = pe(
|
|
3708
|
+
if (Xt(l)) {
|
|
3709
|
+
var d = l.children, v = l.value, H = i[v];
|
|
3710
|
+
if (!Jn(H))
|
|
3711
|
+
throw new Zn(v, "function", s);
|
|
3712
|
+
var C = pe(d, t, r, n, i, o), L = H(C.map(function(A) {
|
|
3660
3713
|
return A.value;
|
|
3661
3714
|
}));
|
|
3662
3715
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(A) {
|
|
3663
3716
|
return {
|
|
3664
|
-
type: typeof A == "string" ?
|
|
3717
|
+
type: typeof A == "string" ? E.literal : E.object,
|
|
3665
3718
|
value: A
|
|
3666
3719
|
};
|
|
3667
3720
|
}));
|
|
3668
3721
|
}
|
|
3669
|
-
if (
|
|
3670
|
-
var
|
|
3671
|
-
if (!
|
|
3672
|
-
throw new
|
|
3673
|
-
a.push.apply(a, pe(
|
|
3722
|
+
if (kt(l)) {
|
|
3723
|
+
var x = l.options[c] || l.options.other;
|
|
3724
|
+
if (!x)
|
|
3725
|
+
throw new bt(l.value, c, Object.keys(l.options), s);
|
|
3726
|
+
a.push.apply(a, pe(x.value, t, r, n, i));
|
|
3674
3727
|
continue;
|
|
3675
3728
|
}
|
|
3676
|
-
if (
|
|
3677
|
-
var
|
|
3678
|
-
if (!
|
|
3729
|
+
if (Vt(l)) {
|
|
3730
|
+
var x = l.options["=".concat(c)];
|
|
3731
|
+
if (!x) {
|
|
3679
3732
|
if (!Intl.PluralRules)
|
|
3680
3733
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3681
3734
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3682
3735
|
`, W.MISSING_INTL_API, s);
|
|
3683
3736
|
var $ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3684
|
-
|
|
3737
|
+
x = l.options[$] || l.options.other;
|
|
3685
3738
|
}
|
|
3686
|
-
if (!
|
|
3687
|
-
throw new
|
|
3688
|
-
a.push.apply(a, pe(
|
|
3739
|
+
if (!x)
|
|
3740
|
+
throw new bt(l.value, c, Object.keys(l.options), s);
|
|
3741
|
+
a.push.apply(a, pe(x.value, t, r, n, i, c - (l.offset || 0)));
|
|
3689
3742
|
continue;
|
|
3690
3743
|
}
|
|
3691
3744
|
}
|
|
3692
|
-
return
|
|
3745
|
+
return qn(a);
|
|
3693
3746
|
}
|
|
3694
|
-
function
|
|
3747
|
+
function Yn(e, t) {
|
|
3695
3748
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3696
3749
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3697
3750
|
}, {})) : e;
|
|
3698
3751
|
}
|
|
3699
|
-
function
|
|
3752
|
+
function Kn(e, t) {
|
|
3700
3753
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3701
|
-
return r[n] =
|
|
3754
|
+
return r[n] = Yn(e[n], t[n]), r;
|
|
3702
3755
|
}, g({}, e)) : e;
|
|
3703
3756
|
}
|
|
3704
|
-
function
|
|
3757
|
+
function Oe(e) {
|
|
3705
3758
|
return {
|
|
3706
3759
|
create: function() {
|
|
3707
3760
|
return {
|
|
@@ -3715,39 +3768,39 @@ function Pe(e) {
|
|
|
3715
3768
|
}
|
|
3716
3769
|
};
|
|
3717
3770
|
}
|
|
3718
|
-
function
|
|
3771
|
+
function ei(e) {
|
|
3719
3772
|
return e === void 0 && (e = {
|
|
3720
3773
|
number: {},
|
|
3721
3774
|
dateTime: {},
|
|
3722
3775
|
pluralRules: {}
|
|
3723
3776
|
}), {
|
|
3724
|
-
getNumberFormat:
|
|
3777
|
+
getNumberFormat: we(function() {
|
|
3725
3778
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3726
3779
|
r[n] = arguments[n];
|
|
3727
3780
|
return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3728
3781
|
}, {
|
|
3729
|
-
cache:
|
|
3730
|
-
strategy:
|
|
3782
|
+
cache: Oe(e.number),
|
|
3783
|
+
strategy: Ae.variadic
|
|
3731
3784
|
}),
|
|
3732
|
-
getDateTimeFormat:
|
|
3785
|
+
getDateTimeFormat: we(function() {
|
|
3733
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3734
3787
|
r[n] = arguments[n];
|
|
3735
3788
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3736
3789
|
}, {
|
|
3737
|
-
cache:
|
|
3738
|
-
strategy:
|
|
3790
|
+
cache: Oe(e.dateTime),
|
|
3791
|
+
strategy: Ae.variadic
|
|
3739
3792
|
}),
|
|
3740
|
-
getPluralRules:
|
|
3793
|
+
getPluralRules: we(function() {
|
|
3741
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3742
3795
|
r[n] = arguments[n];
|
|
3743
3796
|
return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
|
|
3744
3797
|
}, {
|
|
3745
|
-
cache:
|
|
3746
|
-
strategy:
|
|
3798
|
+
cache: Oe(e.pluralRules),
|
|
3799
|
+
strategy: Ae.variadic
|
|
3747
3800
|
})
|
|
3748
3801
|
};
|
|
3749
3802
|
}
|
|
3750
|
-
var
|
|
3803
|
+
var ti = (
|
|
3751
3804
|
/** @class */
|
|
3752
3805
|
function() {
|
|
3753
3806
|
function e(t, r, n, i) {
|
|
@@ -3762,7 +3815,7 @@ var Jn = (
|
|
|
3762
3815
|
if (u.length === 1)
|
|
3763
3816
|
return u[0].value;
|
|
3764
3817
|
var l = u.reduce(function(f, c) {
|
|
3765
|
-
return !f.length || c.type !==
|
|
3818
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3766
3819
|
}, []);
|
|
3767
3820
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3768
3821
|
}, this.formatToParts = function(h) {
|
|
@@ -3779,13 +3832,13 @@ var Jn = (
|
|
|
3779
3832
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3780
3833
|
var s = i || {};
|
|
3781
3834
|
s.formatters;
|
|
3782
|
-
var a =
|
|
3835
|
+
var a = Nr(s, ["formatters"]);
|
|
3783
3836
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3784
3837
|
} else
|
|
3785
3838
|
this.ast = t;
|
|
3786
3839
|
if (!Array.isArray(this.ast))
|
|
3787
3840
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3788
|
-
this.formats =
|
|
3841
|
+
this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
|
|
3789
3842
|
}
|
|
3790
3843
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3791
3844
|
get: function() {
|
|
@@ -3798,7 +3851,7 @@ var Jn = (
|
|
|
3798
3851
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3799
3852
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3800
3853
|
}
|
|
3801
|
-
}, e.__parse =
|
|
3854
|
+
}, e.__parse = zn, e.formats = {
|
|
3802
3855
|
number: {
|
|
3803
3856
|
integer: {
|
|
3804
3857
|
maximumFractionDigits: 0
|
|
@@ -3859,7 +3912,7 @@ var Jn = (
|
|
|
3859
3912
|
}, e;
|
|
3860
3913
|
}()
|
|
3861
3914
|
);
|
|
3862
|
-
function
|
|
3915
|
+
function ri(e, t) {
|
|
3863
3916
|
if (t == null)
|
|
3864
3917
|
return;
|
|
3865
3918
|
if (t in e)
|
|
@@ -3880,92 +3933,92 @@ function Yn(e, t) {
|
|
|
3880
3933
|
n = void 0;
|
|
3881
3934
|
return n;
|
|
3882
3935
|
}
|
|
3883
|
-
const M = {},
|
|
3936
|
+
const M = {}, ni = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), er = (e, t) => {
|
|
3884
3937
|
if (t == null)
|
|
3885
3938
|
return;
|
|
3886
3939
|
if (t in M && e in M[t])
|
|
3887
3940
|
return M[t][e];
|
|
3888
|
-
const r =
|
|
3941
|
+
const r = Ee(t);
|
|
3889
3942
|
for (let n = 0; n < r.length; n++) {
|
|
3890
|
-
const i = r[n], o =
|
|
3943
|
+
const i = r[n], o = oi(i, e);
|
|
3891
3944
|
if (o)
|
|
3892
|
-
return
|
|
3945
|
+
return ni(e, t, o);
|
|
3893
3946
|
}
|
|
3894
3947
|
};
|
|
3895
|
-
let
|
|
3948
|
+
let Je;
|
|
3896
3949
|
const se = ve({});
|
|
3897
|
-
function
|
|
3898
|
-
return
|
|
3950
|
+
function ii(e) {
|
|
3951
|
+
return Je[e] || null;
|
|
3899
3952
|
}
|
|
3900
|
-
function
|
|
3901
|
-
return e in
|
|
3953
|
+
function tr(e) {
|
|
3954
|
+
return e in Je;
|
|
3902
3955
|
}
|
|
3903
|
-
function
|
|
3904
|
-
if (!
|
|
3956
|
+
function oi(e, t) {
|
|
3957
|
+
if (!tr(e))
|
|
3905
3958
|
return null;
|
|
3906
|
-
const r =
|
|
3907
|
-
return
|
|
3959
|
+
const r = ii(e);
|
|
3960
|
+
return ri(r, t);
|
|
3908
3961
|
}
|
|
3909
|
-
function
|
|
3962
|
+
function si(e) {
|
|
3910
3963
|
if (e == null)
|
|
3911
3964
|
return;
|
|
3912
|
-
const t =
|
|
3965
|
+
const t = Ee(e);
|
|
3913
3966
|
for (let r = 0; r < t.length; r++) {
|
|
3914
3967
|
const n = t[r];
|
|
3915
|
-
if (
|
|
3968
|
+
if (tr(n))
|
|
3916
3969
|
return n;
|
|
3917
3970
|
}
|
|
3918
3971
|
}
|
|
3919
|
-
function
|
|
3920
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3972
|
+
function rr(e, ...t) {
|
|
3973
|
+
delete M[e], se.update((r) => (r[e] = cn.all([r[e] || {}, ...t]), r));
|
|
3921
3974
|
}
|
|
3922
3975
|
Q(
|
|
3923
3976
|
[se],
|
|
3924
3977
|
([e]) => Object.keys(e)
|
|
3925
3978
|
);
|
|
3926
|
-
se.subscribe((e) =>
|
|
3979
|
+
se.subscribe((e) => Je = e);
|
|
3927
3980
|
const de = {};
|
|
3928
|
-
function
|
|
3981
|
+
function ai(e, t) {
|
|
3929
3982
|
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3930
3983
|
}
|
|
3931
|
-
function
|
|
3984
|
+
function nr(e) {
|
|
3932
3985
|
return de[e];
|
|
3933
3986
|
}
|
|
3934
|
-
function
|
|
3935
|
-
return
|
|
3936
|
-
const r =
|
|
3987
|
+
function ui(e) {
|
|
3988
|
+
return Ee(e).map((t) => {
|
|
3989
|
+
const r = nr(t);
|
|
3937
3990
|
return [t, r ? [...r] : []];
|
|
3938
3991
|
}).filter(([, t]) => t.length > 0);
|
|
3939
3992
|
}
|
|
3940
|
-
function
|
|
3941
|
-
return e == null ? !1 :
|
|
3993
|
+
function We(e) {
|
|
3994
|
+
return e == null ? !1 : Ee(e).some(
|
|
3942
3995
|
(t) => {
|
|
3943
3996
|
var r;
|
|
3944
|
-
return (r =
|
|
3997
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3945
3998
|
}
|
|
3946
3999
|
);
|
|
3947
4000
|
}
|
|
3948
|
-
function
|
|
4001
|
+
function hi(e, t) {
|
|
3949
4002
|
return Promise.all(
|
|
3950
|
-
t.map((n) => (
|
|
3951
|
-
).then((n) =>
|
|
4003
|
+
t.map((n) => (ai(e, n), n().then((i) => i.default || i)))
|
|
4004
|
+
).then((n) => rr(e, ...n));
|
|
3952
4005
|
}
|
|
3953
4006
|
const K = {};
|
|
3954
|
-
function
|
|
3955
|
-
if (!
|
|
4007
|
+
function ir(e) {
|
|
4008
|
+
if (!We(e))
|
|
3956
4009
|
return e in K ? K[e] : Promise.resolve();
|
|
3957
|
-
const t =
|
|
4010
|
+
const t = ui(e);
|
|
3958
4011
|
return K[e] = Promise.all(
|
|
3959
4012
|
t.map(
|
|
3960
|
-
([r, n]) =>
|
|
4013
|
+
([r, n]) => hi(r, n)
|
|
3961
4014
|
)
|
|
3962
4015
|
).then(() => {
|
|
3963
|
-
if (
|
|
3964
|
-
return
|
|
4016
|
+
if (We(e))
|
|
4017
|
+
return ir(e);
|
|
3965
4018
|
delete K[e];
|
|
3966
4019
|
}), K[e];
|
|
3967
4020
|
}
|
|
3968
|
-
const
|
|
4021
|
+
const li = {
|
|
3969
4022
|
number: {
|
|
3970
4023
|
scientific: { notation: "scientific" },
|
|
3971
4024
|
engineering: { notation: "engineering" },
|
|
@@ -3994,78 +4047,78 @@ const si = {
|
|
|
3994
4047
|
timeZoneName: "short"
|
|
3995
4048
|
}
|
|
3996
4049
|
}
|
|
3997
|
-
},
|
|
4050
|
+
}, ci = {
|
|
3998
4051
|
fallbackLocale: null,
|
|
3999
4052
|
loadingDelay: 200,
|
|
4000
|
-
formats:
|
|
4053
|
+
formats: li,
|
|
4001
4054
|
warnOnMissingMessages: !0,
|
|
4002
4055
|
handleMissingMessage: void 0,
|
|
4003
4056
|
ignoreTag: !0
|
|
4004
|
-
},
|
|
4057
|
+
}, fi = ci;
|
|
4005
4058
|
function z() {
|
|
4006
|
-
return
|
|
4059
|
+
return fi;
|
|
4007
4060
|
}
|
|
4008
|
-
const
|
|
4009
|
-
var
|
|
4061
|
+
const Ie = ve(!1);
|
|
4062
|
+
var pi = Object.defineProperty, di = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
|
|
4010
4063
|
for (var r in t || (t = {}))
|
|
4011
|
-
|
|
4012
|
-
if (
|
|
4013
|
-
for (var r of
|
|
4014
|
-
|
|
4064
|
+
bi.call(t, r) && yt(e, r, t[r]);
|
|
4065
|
+
if (gt)
|
|
4066
|
+
for (var r of gt(t))
|
|
4067
|
+
gi.call(t, r) && yt(e, r, t[r]);
|
|
4015
4068
|
return e;
|
|
4016
|
-
},
|
|
4017
|
-
let
|
|
4069
|
+
}, vi = (e, t) => di(e, mi(t));
|
|
4070
|
+
let ze;
|
|
4018
4071
|
const me = ve(null);
|
|
4019
|
-
function
|
|
4072
|
+
function vt(e) {
|
|
4020
4073
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4021
4074
|
}
|
|
4022
|
-
function
|
|
4023
|
-
const r =
|
|
4024
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4075
|
+
function Ee(e, t = z().fallbackLocale) {
|
|
4076
|
+
const r = vt(e);
|
|
4077
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
|
|
4025
4078
|
}
|
|
4026
4079
|
function R() {
|
|
4027
|
-
return
|
|
4080
|
+
return ze ?? void 0;
|
|
4028
4081
|
}
|
|
4029
4082
|
me.subscribe((e) => {
|
|
4030
|
-
|
|
4083
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4031
4084
|
});
|
|
4032
|
-
const
|
|
4033
|
-
if (e &&
|
|
4085
|
+
const _i = (e) => {
|
|
4086
|
+
if (e && si(e) && We(e)) {
|
|
4034
4087
|
const { loadingDelay: t } = z();
|
|
4035
4088
|
let r;
|
|
4036
4089
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4037
|
-
() =>
|
|
4090
|
+
() => Ie.set(!0),
|
|
4038
4091
|
t
|
|
4039
|
-
) :
|
|
4092
|
+
) : Ie.set(!0), ir(e).then(() => {
|
|
4040
4093
|
me.set(e);
|
|
4041
4094
|
}).finally(() => {
|
|
4042
|
-
clearTimeout(r),
|
|
4095
|
+
clearTimeout(r), Ie.set(!1);
|
|
4043
4096
|
});
|
|
4044
4097
|
}
|
|
4045
4098
|
return me.set(e);
|
|
4046
|
-
}, q =
|
|
4047
|
-
set:
|
|
4048
|
-
}),
|
|
4099
|
+
}, q = vi(yi({}, me), {
|
|
4100
|
+
set: _i
|
|
4101
|
+
}), xe = (e) => {
|
|
4049
4102
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4050
4103
|
return (n) => {
|
|
4051
4104
|
const i = JSON.stringify(n);
|
|
4052
4105
|
return i in t ? t[i] : t[i] = e(n);
|
|
4053
4106
|
};
|
|
4054
4107
|
};
|
|
4055
|
-
var
|
|
4108
|
+
var Ei = Object.defineProperty, be = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4056
4109
|
for (var r in t || (t = {}))
|
|
4057
|
-
|
|
4110
|
+
or.call(t, r) && _t(e, r, t[r]);
|
|
4058
4111
|
if (be)
|
|
4059
4112
|
for (var r of be(t))
|
|
4060
|
-
|
|
4113
|
+
sr.call(t, r) && _t(e, r, t[r]);
|
|
4061
4114
|
return e;
|
|
4062
4115
|
}, J = (e, t) => {
|
|
4063
4116
|
var r = {};
|
|
4064
4117
|
for (var n in e)
|
|
4065
|
-
|
|
4118
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4066
4119
|
if (e != null && be)
|
|
4067
4120
|
for (var n of be(e))
|
|
4068
|
-
t.indexOf(n) < 0 &&
|
|
4121
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4069
4122
|
return r;
|
|
4070
4123
|
};
|
|
4071
4124
|
const ne = (e, t) => {
|
|
@@ -4073,21 +4126,21 @@ const ne = (e, t) => {
|
|
|
4073
4126
|
if (e in r && t in r[e])
|
|
4074
4127
|
return r[e][t];
|
|
4075
4128
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4076
|
-
},
|
|
4129
|
+
}, xi = xe(
|
|
4077
4130
|
(e) => {
|
|
4078
4131
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4079
4132
|
if (r == null)
|
|
4080
4133
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4081
4134
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4082
4135
|
}
|
|
4083
|
-
),
|
|
4136
|
+
), Si = xe(
|
|
4084
4137
|
(e) => {
|
|
4085
4138
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4086
4139
|
if (r == null)
|
|
4087
4140
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4088
4141
|
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4089
4142
|
}
|
|
4090
|
-
),
|
|
4143
|
+
), Ti = xe(
|
|
4091
4144
|
(e) => {
|
|
4092
4145
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4093
4146
|
if (r == null)
|
|
@@ -4096,33 +4149,33 @@ const ne = (e, t) => {
|
|
|
4096
4149
|
);
|
|
4097
4150
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4098
4151
|
}
|
|
4099
|
-
),
|
|
4152
|
+
), Hi = (e = {}) => {
|
|
4100
4153
|
var t = e, {
|
|
4101
4154
|
locale: r = R()
|
|
4102
4155
|
} = t, n = J(t, [
|
|
4103
4156
|
"locale"
|
|
4104
4157
|
]);
|
|
4105
|
-
return
|
|
4106
|
-
},
|
|
4158
|
+
return xi(Ye({ locale: r }, n));
|
|
4159
|
+
}, Bi = (e = {}) => {
|
|
4107
4160
|
var t = e, {
|
|
4108
4161
|
locale: r = R()
|
|
4109
4162
|
} = t, n = J(t, [
|
|
4110
4163
|
"locale"
|
|
4111
4164
|
]);
|
|
4112
|
-
return
|
|
4113
|
-
},
|
|
4165
|
+
return Si(Ye({ locale: r }, n));
|
|
4166
|
+
}, wi = (e = {}) => {
|
|
4114
4167
|
var t = e, {
|
|
4115
4168
|
locale: r = R()
|
|
4116
4169
|
} = t, n = J(t, [
|
|
4117
4170
|
"locale"
|
|
4118
4171
|
]);
|
|
4119
|
-
return
|
|
4120
|
-
},
|
|
4172
|
+
return Ti(Ye({ locale: r }, n));
|
|
4173
|
+
}, Ai = xe(
|
|
4121
4174
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4122
|
-
(e, t = R()) => new
|
|
4175
|
+
(e, t = R()) => new ti(e, t, z().formats, {
|
|
4123
4176
|
ignoreTag: z().ignoreTag
|
|
4124
4177
|
})
|
|
4125
|
-
),
|
|
4178
|
+
), Pi = (e, t = {}) => {
|
|
4126
4179
|
var r, n, i, o;
|
|
4127
4180
|
let s = t;
|
|
4128
4181
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4135,7 +4188,7 @@ const ne = (e, t) => {
|
|
|
4135
4188
|
throw new Error(
|
|
4136
4189
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4137
4190
|
);
|
|
4138
|
-
let l =
|
|
4191
|
+
let l = er(e, h);
|
|
4139
4192
|
if (!l)
|
|
4140
4193
|
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4141
4194
|
else if (typeof l != "string")
|
|
@@ -4146,7 +4199,7 @@ const ne = (e, t) => {
|
|
|
4146
4199
|
return l;
|
|
4147
4200
|
let f = l;
|
|
4148
4201
|
try {
|
|
4149
|
-
f =
|
|
4202
|
+
f = Ai(l, h).format(a);
|
|
4150
4203
|
} catch (c) {
|
|
4151
4204
|
c instanceof Error && console.warn(
|
|
4152
4205
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4154,20 +4207,20 @@ const ne = (e, t) => {
|
|
|
4154
4207
|
);
|
|
4155
4208
|
}
|
|
4156
4209
|
return f;
|
|
4157
|
-
},
|
|
4158
|
-
Q([q], () =>
|
|
4159
|
-
Q([q], () =>
|
|
4160
|
-
Q([q], () =>
|
|
4161
|
-
Q([q, se], () =>
|
|
4162
|
-
window.emWidgets = { topic:
|
|
4163
|
-
const
|
|
4164
|
-
function
|
|
4210
|
+
}, Oi = (e, t) => wi(t).format(e), Ii = (e, t) => Bi(t).format(e), Li = (e, t) => Hi(t).format(e), Ni = (e, t = R()) => er(e, t), Mi = Q([q, se], () => Pi);
|
|
4211
|
+
Q([q], () => Oi);
|
|
4212
|
+
Q([q], () => Ii);
|
|
4213
|
+
Q([q], () => Li);
|
|
4214
|
+
Q([q, se], () => Ni);
|
|
4215
|
+
window.emWidgets = { topic: zr };
|
|
4216
|
+
const Ci = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4217
|
+
function Et(e, t) {
|
|
4165
4218
|
if (e) {
|
|
4166
4219
|
const r = document.createElement("style");
|
|
4167
4220
|
r.innerHTML = t, e.appendChild(r);
|
|
4168
4221
|
}
|
|
4169
4222
|
}
|
|
4170
|
-
function
|
|
4223
|
+
function $i(e, t) {
|
|
4171
4224
|
const r = new URL(t);
|
|
4172
4225
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4173
4226
|
const i = document.createElement("style");
|
|
@@ -4176,7 +4229,7 @@ function Ni(e, t) {
|
|
|
4176
4229
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4177
4230
|
});
|
|
4178
4231
|
}
|
|
4179
|
-
function
|
|
4232
|
+
function Ri(e, t, r) {
|
|
4180
4233
|
if (window.emMessageBus) {
|
|
4181
4234
|
const n = document.createElement("style");
|
|
4182
4235
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4184,13 +4237,13 @@ function Xi(e, t, r) {
|
|
|
4184
4237
|
});
|
|
4185
4238
|
}
|
|
4186
4239
|
}
|
|
4187
|
-
function
|
|
4188
|
-
|
|
4240
|
+
function xt(e, t) {
|
|
4241
|
+
rr(e, t);
|
|
4189
4242
|
}
|
|
4190
|
-
function
|
|
4243
|
+
function Ui(e) {
|
|
4191
4244
|
q.set(e);
|
|
4192
4245
|
}
|
|
4193
|
-
const
|
|
4246
|
+
const St = {
|
|
4194
4247
|
en: {
|
|
4195
4248
|
logoutButton: "Logout"
|
|
4196
4249
|
},
|
|
@@ -4225,10 +4278,10 @@ const vt = {
|
|
|
4225
4278
|
logoutButton: "Logout"
|
|
4226
4279
|
}
|
|
4227
4280
|
};
|
|
4228
|
-
function
|
|
4229
|
-
|
|
4281
|
+
function Di(e) {
|
|
4282
|
+
cr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4230
4283
|
}
|
|
4231
|
-
function
|
|
4284
|
+
function Gi(e) {
|
|
4232
4285
|
let t, r, n, i = (
|
|
4233
4286
|
/*$_*/
|
|
4234
4287
|
e[2]("logoutButton") + ""
|
|
@@ -4238,7 +4291,7 @@ function $i(e) {
|
|
|
4238
4291
|
t = P("div"), r = P("button"), n = P("span"), o = ge(i), S(t, "class", "GeneralLogout");
|
|
4239
4292
|
},
|
|
4240
4293
|
m(h, u) {
|
|
4241
|
-
oe(h, t, u), T(t, r), T(r, n), T(n, o), s || (a =
|
|
4294
|
+
oe(h, t, u), T(t, r), T(r, n), T(n, o), s || (a = wt(
|
|
4242
4295
|
r,
|
|
4243
4296
|
"click",
|
|
4244
4297
|
/*click_handler_1*/
|
|
@@ -4248,19 +4301,19 @@ function $i(e) {
|
|
|
4248
4301
|
p(h, u) {
|
|
4249
4302
|
u & /*$_*/
|
|
4250
4303
|
4 && i !== (i = /*$_*/
|
|
4251
|
-
h[2]("logoutButton") + "") &&
|
|
4304
|
+
h[2]("logoutButton") + "") && At(o, i);
|
|
4252
4305
|
},
|
|
4253
4306
|
d(h) {
|
|
4254
4307
|
h && Z(t), s = !1, a();
|
|
4255
4308
|
}
|
|
4256
4309
|
};
|
|
4257
4310
|
}
|
|
4258
|
-
function
|
|
4311
|
+
function Fi(e) {
|
|
4259
4312
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4260
|
-
e[3] &&
|
|
4313
|
+
e[3] && ji(e);
|
|
4261
4314
|
return {
|
|
4262
4315
|
c() {
|
|
4263
|
-
t = P("p"), r = P("span"), n = Y("svg"), i = Y("defs"), o = Y("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = Y("path"), h = Y("path"), u =
|
|
4316
|
+
t = P("p"), r = P("span"), n = Y("svg"), i = Y("defs"), o = Y("style"), s = ge(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = Y("path"), h = Y("path"), u = dr(), c && c.c(), S(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), S(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), S(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), S(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), S(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), S(n, "data-name", "Layer 1"), S(n, "xmlns", "http://www.w3.org/2000/svg"), S(n, "viewBox", "0 0 150 150"), br(r, "width", /*isMobile*/
|
|
4264
4317
|
e[3] ? (
|
|
4265
4318
|
/*mediaQuery*/
|
|
4266
4319
|
e[4].matches ? "50px" : "24px"
|
|
@@ -4269,24 +4322,24 @@ function Ri(e) {
|
|
|
4269
4322
|
(e[4].matches && /*isMobile*/
|
|
4270
4323
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4271
4324
|
},
|
|
4272
|
-
m(p,
|
|
4273
|
-
oe(p, t,
|
|
4325
|
+
m(p, d) {
|
|
4326
|
+
oe(p, t, d), T(t, r), T(r, n), T(n, i), T(i, o), T(o, s), T(n, a), T(n, h), T(t, u), c && c.m(t, null), l || (f = wt(
|
|
4274
4327
|
t,
|
|
4275
4328
|
"click",
|
|
4276
4329
|
/*click_handler*/
|
|
4277
4330
|
e[13]
|
|
4278
4331
|
), l = !0);
|
|
4279
4332
|
},
|
|
4280
|
-
p(p,
|
|
4333
|
+
p(p, d) {
|
|
4281
4334
|
/*isMobile*/
|
|
4282
|
-
p[3] || c.p(p,
|
|
4335
|
+
p[3] || c.p(p, d);
|
|
4283
4336
|
},
|
|
4284
4337
|
d(p) {
|
|
4285
4338
|
p && Z(t), c && c.d(), l = !1, f();
|
|
4286
4339
|
}
|
|
4287
4340
|
};
|
|
4288
4341
|
}
|
|
4289
|
-
function
|
|
4342
|
+
function ji(e) {
|
|
4290
4343
|
let t, r = (
|
|
4291
4344
|
/*$_*/
|
|
4292
4345
|
e[2]("logoutButton") + ""
|
|
@@ -4301,19 +4354,19 @@ function Ui(e) {
|
|
|
4301
4354
|
p(i, o) {
|
|
4302
4355
|
o & /*$_*/
|
|
4303
4356
|
4 && r !== (r = /*$_*/
|
|
4304
|
-
i[2]("logoutButton") + "") &&
|
|
4357
|
+
i[2]("logoutButton") + "") && At(n, r);
|
|
4305
4358
|
},
|
|
4306
4359
|
d(i) {
|
|
4307
4360
|
i && Z(t);
|
|
4308
4361
|
}
|
|
4309
4362
|
};
|
|
4310
4363
|
}
|
|
4311
|
-
function
|
|
4364
|
+
function ki(e) {
|
|
4312
4365
|
let t;
|
|
4313
4366
|
function r(o, s) {
|
|
4314
4367
|
return (
|
|
4315
4368
|
/*buttonlocation*/
|
|
4316
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4369
|
+
o[0] === "PlayerAccountMenu" ? Fi : Gi
|
|
4317
4370
|
);
|
|
4318
4371
|
}
|
|
4319
4372
|
let n = r(e), i = n(e);
|
|
@@ -4334,23 +4387,23 @@ function Gi(e) {
|
|
|
4334
4387
|
}
|
|
4335
4388
|
};
|
|
4336
4389
|
}
|
|
4337
|
-
function
|
|
4390
|
+
function Vi(e, t, r) {
|
|
4338
4391
|
let n;
|
|
4339
|
-
|
|
4340
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1,
|
|
4392
|
+
lr(e, Mi, (y) => r(2, n = y));
|
|
4393
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, v = window.navigator.userAgent, H = Ci(v) !== "PC";
|
|
4341
4394
|
const C = window.matchMedia("(min-width: 768px)"), L = () => {
|
|
4342
4395
|
fetch(f).then((N) => N.json()).then((N) => {
|
|
4343
4396
|
Object.keys(N).forEach((Se) => {
|
|
4344
|
-
|
|
4397
|
+
xt(Se, N[Se]);
|
|
4345
4398
|
});
|
|
4346
4399
|
}).catch((N) => {
|
|
4347
4400
|
console.log(N);
|
|
4348
4401
|
});
|
|
4349
4402
|
};
|
|
4350
|
-
Object.keys(
|
|
4351
|
-
|
|
4403
|
+
Object.keys(St).forEach((y) => {
|
|
4404
|
+
xt(y, St[y]);
|
|
4352
4405
|
});
|
|
4353
|
-
const
|
|
4406
|
+
const x = () => {
|
|
4354
4407
|
let y = new Headers();
|
|
4355
4408
|
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4356
4409
|
let N = { method: "DELETE", headers: y };
|
|
@@ -4358,14 +4411,14 @@ function Di(e, t, r) {
|
|
|
4358
4411
|
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
|
|
4359
4412
|
});
|
|
4360
4413
|
}, $ = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p), A = () => {
|
|
4361
|
-
|
|
4414
|
+
Ui(a);
|
|
4362
4415
|
};
|
|
4363
|
-
|
|
4416
|
+
vr(() => () => {
|
|
4364
4417
|
});
|
|
4365
|
-
const U = () =>
|
|
4366
|
-
function
|
|
4367
|
-
|
|
4368
|
-
|
|
4418
|
+
const U = () => x(), ae = () => x();
|
|
4419
|
+
function ur(y) {
|
|
4420
|
+
Le[y ? "unshift" : "push"](() => {
|
|
4421
|
+
d = y, r(1, d);
|
|
4369
4422
|
});
|
|
4370
4423
|
}
|
|
4371
4424
|
return e.$$set = (y) => {
|
|
@@ -4374,16 +4427,18 @@ function Di(e, t, r) {
|
|
|
4374
4427
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4375
4428
|
193 && i && o && s && $(), e.$$.dirty & /*lang*/
|
|
4376
4429
|
256 && a && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4377
|
-
1026 && u &&
|
|
4378
|
-
|
|
4430
|
+
1026 && u && d && Et(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4431
|
+
1026 && u && d && Et(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4432
|
+
2050 && l && d && $i(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4433
|
+
514 && h && d && Ri(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4379
4434
|
4096 && f && L();
|
|
4380
4435
|
}, [
|
|
4381
4436
|
s,
|
|
4382
|
-
|
|
4437
|
+
d,
|
|
4383
4438
|
n,
|
|
4384
4439
|
H,
|
|
4385
4440
|
C,
|
|
4386
|
-
|
|
4441
|
+
x,
|
|
4387
4442
|
i,
|
|
4388
4443
|
o,
|
|
4389
4444
|
a,
|
|
@@ -4393,17 +4448,17 @@ function Di(e, t, r) {
|
|
|
4393
4448
|
f,
|
|
4394
4449
|
U,
|
|
4395
4450
|
ae,
|
|
4396
|
-
|
|
4451
|
+
ur
|
|
4397
4452
|
];
|
|
4398
4453
|
}
|
|
4399
|
-
class
|
|
4454
|
+
class ar extends Ir {
|
|
4400
4455
|
constructor(t) {
|
|
4401
|
-
super(),
|
|
4456
|
+
super(), Pr(
|
|
4402
4457
|
this,
|
|
4403
4458
|
t,
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4459
|
+
Vi,
|
|
4460
|
+
ki,
|
|
4461
|
+
Ht,
|
|
4407
4462
|
{
|
|
4408
4463
|
endpoint: 6,
|
|
4409
4464
|
session: 7,
|
|
@@ -4414,7 +4469,7 @@ class rr extends Br {
|
|
|
4414
4469
|
clientstylingurl: 11,
|
|
4415
4470
|
translationurl: 12
|
|
4416
4471
|
},
|
|
4417
|
-
|
|
4472
|
+
Di
|
|
4418
4473
|
);
|
|
4419
4474
|
}
|
|
4420
4475
|
get endpoint() {
|
|
@@ -4466,43 +4521,43 @@ class rr extends Br {
|
|
|
4466
4521
|
this.$$set({ translationurl: t }), w();
|
|
4467
4522
|
}
|
|
4468
4523
|
}
|
|
4469
|
-
|
|
4470
|
-
const
|
|
4524
|
+
Or(ar, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4525
|
+
const Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4471
4526
|
__proto__: null,
|
|
4472
|
-
default:
|
|
4527
|
+
default: ar
|
|
4473
4528
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4474
4529
|
export {
|
|
4475
4530
|
q as $,
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4531
|
+
wt as A,
|
|
4532
|
+
ie as B,
|
|
4533
|
+
Xi as C,
|
|
4534
|
+
Mi as D,
|
|
4535
|
+
Qi as G,
|
|
4536
|
+
Ir as S,
|
|
4537
|
+
rr as a,
|
|
4538
|
+
cr as b,
|
|
4539
|
+
Or as c,
|
|
4540
|
+
oe as d,
|
|
4541
|
+
P as e,
|
|
4487
4542
|
w as f,
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4543
|
+
Z as g,
|
|
4544
|
+
lr as h,
|
|
4545
|
+
Pr as i,
|
|
4546
|
+
Ci as j,
|
|
4547
|
+
$i as k,
|
|
4548
|
+
Ri as l,
|
|
4549
|
+
Le as m,
|
|
4495
4550
|
B as n,
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4551
|
+
vr as o,
|
|
4552
|
+
Et as p,
|
|
4553
|
+
Zi as q,
|
|
4554
|
+
dr as r,
|
|
4555
|
+
Ht as s,
|
|
4556
|
+
ge as t,
|
|
4557
|
+
S as u,
|
|
4558
|
+
T as v,
|
|
4559
|
+
At as w,
|
|
4560
|
+
Wi as x,
|
|
4561
|
+
zi as y,
|
|
4562
|
+
Y as z
|
|
4508
4563
|
};
|