@everymatrix/player-account-menu-nd 1.74.3 → 1.74.4
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-BUuNBLQo.cjs +18 -0
- package/components/{GeneralLogout-GRuKSPyD.js → GeneralLogout-CmFi68f2.js} +684 -670
- package/components/{GeneralLogout-C6LtI21m.js → GeneralLogout-Do7o-cKv.js} +658 -644
- package/components/{PlayerAccountMenuNd-Bw9HX5pe.js → PlayerAccountMenuNd-CIHVvnGl.js} +7 -7
- package/components/{PlayerAccountMenuNd-D9eyRCPZ.js → PlayerAccountMenuNd-CglkmiE1.js} +7 -7
- package/components/{PlayerAccountMenuNd-ehuCAahb.cjs → PlayerAccountMenuNd-Y0YAriN6.cjs} +1 -1
- 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-b2193545-BbCeNxUG.js → index-b2193545-BtPvM93e.js} +176 -176
- package/stencil/index-b2193545-CgelUAhE.cjs +1 -0
- package/stencil/{index-b2193545-C9PH-6qK.js → index-b2193545-D_KBbaD-.js} +169 -169
- package/stencil/{ui-skeleton-bhljBTS7.cjs → ui-skeleton-BPqjm-YB.cjs} +1 -1
- package/stencil/{ui-skeleton-CJbkvgG7.js → ui-skeleton-CWuMYFGQ.js} +2 -2
- package/stencil/{ui-skeleton-BKDs0-7H.js → ui-skeleton-NZtdK490.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-CXlvqczG.cjs → ui-skeleton-ae35c6f2-CKJgMm_5.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-ZB0isFAq.js → ui-skeleton-ae35c6f2-CW3z59Qf.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-gun6WX2F.js → ui-skeleton-ae35c6f2-DlexSQlT.js} +1 -1
- package/components/GeneralLogout-DqlvbXrp.cjs +0 -18
- package/stencil/index-b2193545-D-u-gzj3.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 Wi(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,20 +31,20 @@ function Tt(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
|
|
47
|
+
function fr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function hr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function pr(e, t) {
|
|
58
58
|
return T(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,7 +67,7 @@ function oe(e, t, r) {
|
|
|
67
67
|
function Z(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function zi(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
@@ -80,30 +80,30 @@ function Y(e) {
|
|
|
80
80
|
function ge(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function dr() {
|
|
84
84
|
return ge(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function wt(e, t, r, n) {
|
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
88
88
|
}
|
|
89
89
|
function S(e, t, r) {
|
|
90
90
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Zi(e, t, r) {
|
|
93
93
|
const n = t.toLowerCase();
|
|
94
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);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function mr(e) {
|
|
97
97
|
return Array.from(e.childNodes);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function At(e, t) {
|
|
100
100
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
101
101
|
t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function br(e, t, r, n) {
|
|
104
104
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function gr(e) {
|
|
107
107
|
const t = {};
|
|
108
108
|
return e.childNodes.forEach(
|
|
109
109
|
/** @param {Element} node */
|
|
@@ -116,22 +116,22 @@ let te;
|
|
|
116
116
|
function ee(e) {
|
|
117
117
|
te = e;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function yr() {
|
|
120
120
|
if (!te)
|
|
121
121
|
throw new Error("Function called outside component initialization");
|
|
122
122
|
return te;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
124
|
+
function vr(e) {
|
|
125
|
+
yr().$$.on_mount.push(e);
|
|
126
126
|
}
|
|
127
|
-
const F = [],
|
|
127
|
+
const F = [], Le = [];
|
|
128
128
|
let j = [];
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
|
|
129
|
+
const et = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
130
|
+
let Ne = !1;
|
|
131
|
+
function Er() {
|
|
132
|
+
Ne || (Ne = !0, _r.then(w));
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Me(e) {
|
|
135
135
|
j.push(e);
|
|
136
136
|
}
|
|
137
137
|
const Te = /* @__PURE__ */ new Set();
|
|
@@ -144,56 +144,56 @@ function w() {
|
|
|
144
144
|
try {
|
|
145
145
|
for (; D < F.length; ) {
|
|
146
146
|
const t = F[D];
|
|
147
|
-
D++, ee(t),
|
|
147
|
+
D++, ee(t), xr(t.$$);
|
|
148
148
|
}
|
|
149
149
|
} catch (t) {
|
|
150
150
|
throw F.length = 0, D = 0, t;
|
|
151
151
|
}
|
|
152
|
-
for (ee(null), F.length = 0, D = 0;
|
|
153
|
-
|
|
152
|
+
for (ee(null), F.length = 0, D = 0; Le.length; )
|
|
153
|
+
Le.pop()();
|
|
154
154
|
for (let t = 0; t < j.length; t += 1) {
|
|
155
155
|
const r = j[t];
|
|
156
156
|
Te.has(r) || (Te.add(r), r());
|
|
157
157
|
}
|
|
158
158
|
j.length = 0;
|
|
159
159
|
} while (F.length);
|
|
160
|
-
for (;
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
for (; et.length; )
|
|
161
|
+
et.pop()();
|
|
162
|
+
Ne = !1, Te.clear(), ee(e);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function xr(e) {
|
|
165
165
|
if (e.fragment !== null) {
|
|
166
166
|
e.update(), ie(e.before_update);
|
|
167
167
|
const t = e.dirty;
|
|
168
|
-
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);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Sr(e) {
|
|
172
172
|
const t = [], r = [];
|
|
173
173
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
function
|
|
177
|
-
e && e.i && (
|
|
175
|
+
const Tr = /* @__PURE__ */ new Set();
|
|
176
|
+
function Hr(e, t) {
|
|
177
|
+
e && e.i && (Tr.delete(e), e.i(t));
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Qi(e) {
|
|
180
180
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Br(e, t, r) {
|
|
183
183
|
const { fragment: n, after_update: i } = e.$$;
|
|
184
|
-
n && n.m(t, r),
|
|
185
|
-
const o = e.$$.on_mount.map(
|
|
184
|
+
n && n.m(t, r), Me(() => {
|
|
185
|
+
const o = e.$$.on_mount.map(Tt).filter(Ze);
|
|
186
186
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
187
|
-
}), i.forEach(
|
|
187
|
+
}), i.forEach(Me);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function wr(e, t) {
|
|
190
190
|
const r = e.$$;
|
|
191
|
-
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 = []);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
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;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Pr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
197
197
|
const h = te;
|
|
198
198
|
ee(e);
|
|
199
199
|
const u = e.$$ = {
|
|
@@ -203,7 +203,7 @@ function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
203
203
|
props: o,
|
|
204
204
|
update: B,
|
|
205
205
|
not_equal: i,
|
|
206
|
-
bound:
|
|
206
|
+
bound: Ke(),
|
|
207
207
|
// lifecycle
|
|
208
208
|
on_mount: [],
|
|
209
209
|
on_destroy: [],
|
|
@@ -212,28 +212,28 @@ function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
212
212
|
after_update: [],
|
|
213
213
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
214
214
|
// everything else
|
|
215
|
-
callbacks:
|
|
215
|
+
callbacks: Ke(),
|
|
216
216
|
dirty: a,
|
|
217
217
|
skip_bound: !1,
|
|
218
218
|
root: t.target || h.$$.root
|
|
219
219
|
};
|
|
220
220
|
s && s(u.root);
|
|
221
221
|
let l = !1;
|
|
222
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
223
|
-
const
|
|
224
|
-
return u.ctx && i(u.ctx[
|
|
222
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
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;
|
|
225
225
|
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
226
226
|
if (t.hydrate) {
|
|
227
|
-
const
|
|
228
|
-
u.fragment && u.fragment.l(
|
|
227
|
+
const f = mr(t.target);
|
|
228
|
+
u.fragment && u.fragment.l(f), f.forEach(Z);
|
|
229
229
|
} else
|
|
230
230
|
u.fragment && u.fragment.c();
|
|
231
|
-
t.intro &&
|
|
231
|
+
t.intro && Hr(e.$$.fragment), Br(e, t.target, t.anchor), w();
|
|
232
232
|
}
|
|
233
233
|
ee(h);
|
|
234
234
|
}
|
|
235
|
-
let
|
|
236
|
-
typeof HTMLElement == "function" && (
|
|
235
|
+
let Pt;
|
|
236
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
237
237
|
/** The Svelte component constructor */
|
|
238
238
|
$$ctor;
|
|
239
239
|
/** Slots */
|
|
@@ -292,12 +292,12 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
292
292
|
};
|
|
293
293
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
294
294
|
return;
|
|
295
|
-
const t = {}, r =
|
|
295
|
+
const t = {}, r = gr(this);
|
|
296
296
|
for (const i of this.$$s)
|
|
297
297
|
i in r && (t[i] = [e(i)]);
|
|
298
298
|
for (const i of this.attributes) {
|
|
299
299
|
const o = this.$$g_p(i.name);
|
|
300
|
-
o in this.$$d || (this.$$d[o] =
|
|
300
|
+
o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
|
|
301
301
|
}
|
|
302
302
|
for (const i in this.$$p_d)
|
|
303
303
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
315
315
|
this.$$r = !0;
|
|
316
316
|
for (const i in this.$$p_d)
|
|
317
317
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
318
|
-
const o =
|
|
318
|
+
const o = ce(
|
|
319
319
|
i,
|
|
320
320
|
this.$$d[i],
|
|
321
321
|
this.$$p_d,
|
|
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
337
337
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
338
338
|
// and setting attributes through setAttribute etc, this is helpful
|
|
339
339
|
attributeChangedCallback(e, t, r) {
|
|
340
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
340
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
341
341
|
}
|
|
342
342
|
disconnectedCallback() {
|
|
343
343
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -350,7 +350,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
350
350
|
) || e;
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
|
-
function
|
|
353
|
+
function ce(e, t, r, n) {
|
|
354
354
|
const i = r[e]?.type;
|
|
355
355
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
356
356
|
return t;
|
|
@@ -379,8 +379,8 @@ function fe(e, t, r, n) {
|
|
|
379
379
|
return t;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
let s = class extends
|
|
382
|
+
function Or(e, t, r, n, i, o) {
|
|
383
|
+
let s = class extends Pt {
|
|
384
384
|
constructor() {
|
|
385
385
|
super(e, r, i), this.$$p_d = t;
|
|
386
386
|
}
|
|
@@ -396,7 +396,7 @@ function wr(e, t, r, n, i, o) {
|
|
|
396
396
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
397
397
|
},
|
|
398
398
|
set(h) {
|
|
399
|
-
h =
|
|
399
|
+
h = ce(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
}), n.forEach((a) => {
|
|
@@ -408,7 +408,7 @@ function wr(e, t, r, n, i, o) {
|
|
|
408
408
|
}), e.element = /** @type {any} */
|
|
409
409
|
s, s;
|
|
410
410
|
}
|
|
411
|
-
class
|
|
411
|
+
class Ir {
|
|
412
412
|
/**
|
|
413
413
|
* ### PRIVATE API
|
|
414
414
|
*
|
|
@@ -427,7 +427,7 @@ class Ar {
|
|
|
427
427
|
$$set = void 0;
|
|
428
428
|
/** @returns {void} */
|
|
429
429
|
$destroy() {
|
|
430
|
-
|
|
430
|
+
wr(this, 1), this.$destroy = B;
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
433
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -436,7 +436,7 @@ class Ar {
|
|
|
436
436
|
* @returns {() => void}
|
|
437
437
|
*/
|
|
438
438
|
$on(t, r) {
|
|
439
|
-
if (!
|
|
439
|
+
if (!Ze(r))
|
|
440
440
|
return B;
|
|
441
441
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
442
442
|
return n.push(r), () => {
|
|
@@ -449,11 +449,11 @@ class Ar {
|
|
|
449
449
|
* @returns {void}
|
|
450
450
|
*/
|
|
451
451
|
$set(t) {
|
|
452
|
-
this.$$set && !
|
|
452
|
+
this.$$set && !hr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
const
|
|
456
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
455
|
+
const Lr = "4";
|
|
456
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
457
457
|
/*! *****************************************************************************
|
|
458
458
|
Copyright (c) Microsoft Corporation.
|
|
459
459
|
|
|
@@ -468,18 +468,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
468
468
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
469
469
|
PERFORMANCE OF THIS SOFTWARE.
|
|
470
470
|
***************************************************************************** */
|
|
471
|
-
var
|
|
472
|
-
return
|
|
471
|
+
var Ce = function(e, t) {
|
|
472
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
473
473
|
r.__proto__ = n;
|
|
474
474
|
} || function(r, n) {
|
|
475
475
|
for (var i in n)
|
|
476
476
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
477
|
-
},
|
|
477
|
+
}, Ce(e, t);
|
|
478
478
|
};
|
|
479
479
|
function I(e, t) {
|
|
480
480
|
if (typeof t != "function" && t !== null)
|
|
481
481
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
482
|
-
|
|
482
|
+
Ce(e, t);
|
|
483
483
|
function r() {
|
|
484
484
|
this.constructor = e;
|
|
485
485
|
}
|
|
@@ -495,7 +495,7 @@ var g = function() {
|
|
|
495
495
|
return t;
|
|
496
496
|
}, g.apply(this, arguments);
|
|
497
497
|
};
|
|
498
|
-
function
|
|
498
|
+
function Nr(e, t) {
|
|
499
499
|
var r = {};
|
|
500
500
|
for (var n in e)
|
|
501
501
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -504,7 +504,7 @@ function Or(e, t) {
|
|
|
504
504
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
505
505
|
return r;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function $e(e) {
|
|
508
508
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
509
509
|
if (r)
|
|
510
510
|
return r.call(e);
|
|
@@ -516,7 +516,7 @@ function Ce(e) {
|
|
|
516
516
|
};
|
|
517
517
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Re(e, t) {
|
|
520
520
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
521
521
|
if (!r)
|
|
522
522
|
return e;
|
|
@@ -545,13 +545,13 @@ function k(e, t, r) {
|
|
|
545
545
|
function O(e) {
|
|
546
546
|
return typeof e == "function";
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Ot(e) {
|
|
549
549
|
var t = function(n) {
|
|
550
550
|
Error.call(n), n.stack = new Error().stack;
|
|
551
551
|
}, r = e(t);
|
|
552
552
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
553
553
|
}
|
|
554
|
-
var He =
|
|
554
|
+
var He = Ot(function(e) {
|
|
555
555
|
return function(r) {
|
|
556
556
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
557
557
|
` + r.map(function(n, i) {
|
|
@@ -560,7 +560,7 @@ var He = At(function(e) {
|
|
|
560
560
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
561
561
|
};
|
|
562
562
|
});
|
|
563
|
-
function
|
|
563
|
+
function Ue(e, t) {
|
|
564
564
|
if (e) {
|
|
565
565
|
var r = e.indexOf(t);
|
|
566
566
|
0 <= r && e.splice(r, 1);
|
|
@@ -578,7 +578,7 @@ var ye = function() {
|
|
|
578
578
|
if (s)
|
|
579
579
|
if (this._parentage = null, Array.isArray(s))
|
|
580
580
|
try {
|
|
581
|
-
for (var a =
|
|
581
|
+
for (var a = $e(s), h = a.next(); !h.done; h = a.next()) {
|
|
582
582
|
var u = h.value;
|
|
583
583
|
u.remove(this);
|
|
584
584
|
}
|
|
@@ -601,23 +601,23 @@ var ye = function() {
|
|
|
601
601
|
} catch (v) {
|
|
602
602
|
o = v instanceof He ? v.errors : [v];
|
|
603
603
|
}
|
|
604
|
-
var
|
|
605
|
-
if (
|
|
604
|
+
var f = this._finalizers;
|
|
605
|
+
if (f) {
|
|
606
606
|
this._finalizers = null;
|
|
607
607
|
try {
|
|
608
|
-
for (var
|
|
609
|
-
var
|
|
608
|
+
for (var c = $e(f), p = c.next(); !p.done; p = c.next()) {
|
|
609
|
+
var d = p.value;
|
|
610
610
|
try {
|
|
611
|
-
|
|
611
|
+
tt(d);
|
|
612
612
|
} catch (v) {
|
|
613
|
-
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);
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
} catch (v) {
|
|
617
617
|
n = { error: v };
|
|
618
618
|
} finally {
|
|
619
619
|
try {
|
|
620
|
-
|
|
620
|
+
p && !p.done && (i = c.return) && i.call(c);
|
|
621
621
|
} finally {
|
|
622
622
|
if (n)
|
|
623
623
|
throw n.error;
|
|
@@ -631,7 +631,7 @@ var ye = function() {
|
|
|
631
631
|
var r;
|
|
632
632
|
if (t && t !== this)
|
|
633
633
|
if (this.closed)
|
|
634
|
-
|
|
634
|
+
tt(t);
|
|
635
635
|
else {
|
|
636
636
|
if (t instanceof e) {
|
|
637
637
|
if (t.closed || t._hasParent(this))
|
|
@@ -648,56 +648,56 @@ var ye = function() {
|
|
|
648
648
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
649
649
|
}, e.prototype._removeParent = function(t) {
|
|
650
650
|
var r = this._parentage;
|
|
651
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
651
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
652
652
|
}, e.prototype.remove = function(t) {
|
|
653
653
|
var r = this._finalizers;
|
|
654
|
-
r &&
|
|
654
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
655
655
|
}, e.EMPTY = function() {
|
|
656
656
|
var t = new e();
|
|
657
657
|
return t.closed = !0, t;
|
|
658
658
|
}(), e;
|
|
659
|
-
}(),
|
|
660
|
-
function
|
|
659
|
+
}(), It = ye.EMPTY;
|
|
660
|
+
function Lt(e) {
|
|
661
661
|
return e instanceof ye || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function tt(e) {
|
|
664
664
|
O(e) ? e() : e.unsubscribe();
|
|
665
665
|
}
|
|
666
|
-
var
|
|
666
|
+
var Nt = {
|
|
667
667
|
onUnhandledError: null,
|
|
668
668
|
onStoppedNotification: null,
|
|
669
669
|
Promise: void 0,
|
|
670
670
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
671
671
|
useDeprecatedNextContext: !1
|
|
672
|
-
},
|
|
672
|
+
}, Mr = {
|
|
673
673
|
setTimeout: function(e, t) {
|
|
674
674
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
675
675
|
r[n - 2] = arguments[n];
|
|
676
|
-
return setTimeout.apply(void 0, k([e, t],
|
|
676
|
+
return setTimeout.apply(void 0, k([e, t], Re(r)));
|
|
677
677
|
},
|
|
678
678
|
clearTimeout: function(e) {
|
|
679
679
|
return clearTimeout(e);
|
|
680
680
|
},
|
|
681
681
|
delegate: void 0
|
|
682
682
|
};
|
|
683
|
-
function
|
|
684
|
-
|
|
683
|
+
function Cr(e) {
|
|
684
|
+
Mr.setTimeout(function() {
|
|
685
685
|
throw e;
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function rt() {
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function fe(e) {
|
|
691
691
|
e();
|
|
692
692
|
}
|
|
693
|
-
var
|
|
693
|
+
var Mt = function(e) {
|
|
694
694
|
I(t, e);
|
|
695
695
|
function t(r) {
|
|
696
696
|
var n = e.call(this) || this;
|
|
697
|
-
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;
|
|
698
698
|
}
|
|
699
699
|
return t.create = function(r, n, i) {
|
|
700
|
-
return new
|
|
700
|
+
return new De(r, n, i);
|
|
701
701
|
}, t.prototype.next = function(r) {
|
|
702
702
|
this.isStopped || this._next(r);
|
|
703
703
|
}, t.prototype.error = function(r) {
|
|
@@ -721,7 +721,11 @@ var It = function(e) {
|
|
|
721
721
|
this.unsubscribe();
|
|
722
722
|
}
|
|
723
723
|
}, t;
|
|
724
|
-
}(ye),
|
|
724
|
+
}(ye), $r = Function.prototype.bind;
|
|
725
|
+
function Be(e, t) {
|
|
726
|
+
return $r.call(e, t);
|
|
727
|
+
}
|
|
728
|
+
var Rr = function() {
|
|
725
729
|
function e(t) {
|
|
726
730
|
this.partialObserver = t;
|
|
727
731
|
}
|
|
@@ -752,43 +756,55 @@ var It = function(e) {
|
|
|
752
756
|
he(r);
|
|
753
757
|
}
|
|
754
758
|
}, e;
|
|
755
|
-
}(),
|
|
759
|
+
}(), De = function(e) {
|
|
756
760
|
I(t, e);
|
|
757
761
|
function t(r, n, i) {
|
|
758
762
|
var o = e.call(this) || this, s;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
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;
|
|
764
780
|
}
|
|
765
781
|
return t;
|
|
766
|
-
}(
|
|
782
|
+
}(Mt);
|
|
767
783
|
function he(e) {
|
|
768
|
-
|
|
784
|
+
Cr(e);
|
|
769
785
|
}
|
|
770
|
-
function
|
|
786
|
+
function Ur(e) {
|
|
771
787
|
throw e;
|
|
772
788
|
}
|
|
773
|
-
var
|
|
789
|
+
var Dr = {
|
|
774
790
|
closed: !0,
|
|
775
|
-
next:
|
|
776
|
-
error:
|
|
777
|
-
complete:
|
|
778
|
-
},
|
|
791
|
+
next: rt,
|
|
792
|
+
error: Ur,
|
|
793
|
+
complete: rt
|
|
794
|
+
}, Gr = function() {
|
|
779
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
780
796
|
}();
|
|
781
|
-
function
|
|
797
|
+
function Fr(e) {
|
|
782
798
|
return e;
|
|
783
799
|
}
|
|
784
|
-
function
|
|
785
|
-
return e.length === 0 ?
|
|
800
|
+
function jr(e) {
|
|
801
|
+
return e.length === 0 ? Fr : e.length === 1 ? e[0] : function(r) {
|
|
786
802
|
return e.reduce(function(n, i) {
|
|
787
803
|
return i(n);
|
|
788
804
|
}, r);
|
|
789
805
|
};
|
|
790
806
|
}
|
|
791
|
-
var
|
|
807
|
+
var nt = function() {
|
|
792
808
|
function e(t) {
|
|
793
809
|
t && (this._subscribe = t);
|
|
794
810
|
}
|
|
@@ -796,8 +812,8 @@ var tt = function() {
|
|
|
796
812
|
var r = new e();
|
|
797
813
|
return r.source = this, r.operator = t, r;
|
|
798
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
799
|
-
var i = this, o =
|
|
800
|
-
return
|
|
815
|
+
var i = this, o = Vr(t) ? t : new De(t, r, n);
|
|
816
|
+
return fe(function() {
|
|
801
817
|
var s = i, a = s.operator, h = s.source;
|
|
802
818
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
803
819
|
}), o;
|
|
@@ -809,8 +825,8 @@ var tt = function() {
|
|
|
809
825
|
}
|
|
810
826
|
}, e.prototype.forEach = function(t, r) {
|
|
811
827
|
var n = this;
|
|
812
|
-
return r =
|
|
813
|
-
var s = new
|
|
828
|
+
return r = it(r), new r(function(i, o) {
|
|
829
|
+
var s = new De({
|
|
814
830
|
next: function(a) {
|
|
815
831
|
try {
|
|
816
832
|
t(a);
|
|
@@ -826,15 +842,15 @@ var tt = function() {
|
|
|
826
842
|
}, e.prototype._subscribe = function(t) {
|
|
827
843
|
var r;
|
|
828
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
829
|
-
}, e.prototype[
|
|
845
|
+
}, e.prototype[Gr] = function() {
|
|
830
846
|
return this;
|
|
831
847
|
}, e.prototype.pipe = function() {
|
|
832
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
833
849
|
t[r] = arguments[r];
|
|
834
|
-
return
|
|
850
|
+
return jr(t)(this);
|
|
835
851
|
}, e.prototype.toPromise = function(t) {
|
|
836
852
|
var r = this;
|
|
837
|
-
return t =
|
|
853
|
+
return t = it(t), new t(function(n, i) {
|
|
838
854
|
var o;
|
|
839
855
|
r.subscribe(function(s) {
|
|
840
856
|
return o = s;
|
|
@@ -848,40 +864,40 @@ var tt = function() {
|
|
|
848
864
|
return new e(t);
|
|
849
865
|
}, e;
|
|
850
866
|
}();
|
|
851
|
-
function
|
|
867
|
+
function it(e) {
|
|
852
868
|
var t;
|
|
853
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? Nt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
854
870
|
}
|
|
855
|
-
function
|
|
871
|
+
function kr(e) {
|
|
856
872
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
857
873
|
}
|
|
858
|
-
function
|
|
859
|
-
return e && e instanceof
|
|
874
|
+
function Vr(e) {
|
|
875
|
+
return e && e instanceof Mt || kr(e) && Lt(e);
|
|
860
876
|
}
|
|
861
|
-
var
|
|
877
|
+
var Xr = Ot(function(e) {
|
|
862
878
|
return function() {
|
|
863
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
864
880
|
};
|
|
865
|
-
}),
|
|
881
|
+
}), Ct = function(e) {
|
|
866
882
|
I(t, e);
|
|
867
883
|
function t() {
|
|
868
884
|
var r = e.call(this) || this;
|
|
869
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
870
886
|
}
|
|
871
887
|
return t.prototype.lift = function(r) {
|
|
872
|
-
var n = new
|
|
888
|
+
var n = new ot(this, this);
|
|
873
889
|
return n.operator = r, n;
|
|
874
890
|
}, t.prototype._throwIfClosed = function() {
|
|
875
891
|
if (this.closed)
|
|
876
|
-
throw new
|
|
892
|
+
throw new Xr();
|
|
877
893
|
}, t.prototype.next = function(r) {
|
|
878
894
|
var n = this;
|
|
879
|
-
|
|
895
|
+
fe(function() {
|
|
880
896
|
var i, o;
|
|
881
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
882
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
883
899
|
try {
|
|
884
|
-
for (var s =
|
|
900
|
+
for (var s = $e(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
885
901
|
var h = a.value;
|
|
886
902
|
h.next(r);
|
|
887
903
|
}
|
|
@@ -899,7 +915,7 @@ var jr = At(function(e) {
|
|
|
899
915
|
});
|
|
900
916
|
}, t.prototype.error = function(r) {
|
|
901
917
|
var n = this;
|
|
902
|
-
|
|
918
|
+
fe(function() {
|
|
903
919
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
904
920
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
905
921
|
for (var i = n.observers; i.length; )
|
|
@@ -908,7 +924,7 @@ var jr = At(function(e) {
|
|
|
908
924
|
});
|
|
909
925
|
}, t.prototype.complete = function() {
|
|
910
926
|
var r = this;
|
|
911
|
-
|
|
927
|
+
fe(function() {
|
|
912
928
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
913
929
|
r.isStopped = !0;
|
|
914
930
|
for (var n = r.observers; n.length; )
|
|
@@ -930,19 +946,19 @@ var jr = At(function(e) {
|
|
|
930
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
931
947
|
}, t.prototype._innerSubscribe = function(r) {
|
|
932
948
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
933
|
-
return o || s ?
|
|
934
|
-
n.currentObservers = null,
|
|
949
|
+
return o || s ? It : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
950
|
+
n.currentObservers = null, Ue(a, r);
|
|
935
951
|
}));
|
|
936
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
937
953
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
938
954
|
i ? r.error(o) : s && r.complete();
|
|
939
955
|
}, t.prototype.asObservable = function() {
|
|
940
|
-
var r = new
|
|
956
|
+
var r = new nt();
|
|
941
957
|
return r.source = this, r;
|
|
942
958
|
}, t.create = function(r, n) {
|
|
943
|
-
return new
|
|
959
|
+
return new ot(r, n);
|
|
944
960
|
}, t;
|
|
945
|
-
}(
|
|
961
|
+
}(nt), ot = function(e) {
|
|
946
962
|
I(t, e);
|
|
947
963
|
function t(r, n) {
|
|
948
964
|
var i = e.call(this) || this;
|
|
@@ -959,17 +975,17 @@ var jr = At(function(e) {
|
|
|
959
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
960
976
|
}, t.prototype._subscribe = function(r) {
|
|
961
977
|
var n, i;
|
|
962
|
-
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;
|
|
963
979
|
}, t;
|
|
964
|
-
}(
|
|
980
|
+
}(Ct), $t = {
|
|
965
981
|
now: function() {
|
|
966
|
-
return (
|
|
982
|
+
return ($t.delegate || Date).now();
|
|
967
983
|
},
|
|
968
984
|
delegate: void 0
|
|
969
|
-
},
|
|
985
|
+
}, Wr = function(e) {
|
|
970
986
|
I(t, e);
|
|
971
987
|
function t(r, n, i) {
|
|
972
|
-
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);
|
|
973
989
|
var o = e.call(this) || this;
|
|
974
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;
|
|
975
991
|
}
|
|
@@ -989,15 +1005,15 @@ var jr = At(function(e) {
|
|
|
989
1005
|
u && o.splice(0, u + 1);
|
|
990
1006
|
}
|
|
991
1007
|
}, t;
|
|
992
|
-
}(
|
|
993
|
-
const
|
|
994
|
-
if (
|
|
995
|
-
const r = new
|
|
996
|
-
|
|
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);
|
|
997
1013
|
}
|
|
998
|
-
return
|
|
1014
|
+
return at[e];
|
|
999
1015
|
}, G = [];
|
|
1000
|
-
function
|
|
1016
|
+
function Zr(e, t) {
|
|
1001
1017
|
return {
|
|
1002
1018
|
subscribe: ve(e, t).subscribe
|
|
1003
1019
|
};
|
|
@@ -1006,7 +1022,7 @@ function ve(e, t = B) {
|
|
|
1006
1022
|
let r;
|
|
1007
1023
|
const n = /* @__PURE__ */ new Set();
|
|
1008
1024
|
function i(a) {
|
|
1009
|
-
if (
|
|
1025
|
+
if (Ht(e, a) && (e = a, r)) {
|
|
1010
1026
|
const h = !G.length;
|
|
1011
1027
|
for (const u of n)
|
|
1012
1028
|
u[1](), G.push(u, e);
|
|
@@ -1033,96 +1049,96 @@ function Q(e, t, r) {
|
|
|
1033
1049
|
if (!i.every(Boolean))
|
|
1034
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1035
1051
|
const o = t.length < 2;
|
|
1036
|
-
return
|
|
1052
|
+
return Zr(r, (s, a) => {
|
|
1037
1053
|
let h = !1;
|
|
1038
1054
|
const u = [];
|
|
1039
|
-
let l = 0,
|
|
1040
|
-
const
|
|
1055
|
+
let l = 0, f = B;
|
|
1056
|
+
const c = () => {
|
|
1041
1057
|
if (l)
|
|
1042
1058
|
return;
|
|
1043
|
-
|
|
1044
|
-
const
|
|
1045
|
-
o ? s(
|
|
1046
|
-
},
|
|
1047
|
-
(
|
|
1048
|
-
|
|
1059
|
+
f();
|
|
1060
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1061
|
+
o ? s(d) : f = Ze(d) ? d : B;
|
|
1062
|
+
}, p = i.map(
|
|
1063
|
+
(d, v) => Bt(
|
|
1064
|
+
d,
|
|
1049
1065
|
(H) => {
|
|
1050
|
-
u[v] = H, l &= ~(1 << v), h &&
|
|
1066
|
+
u[v] = H, l &= ~(1 << v), h && c();
|
|
1051
1067
|
},
|
|
1052
1068
|
() => {
|
|
1053
1069
|
l |= 1 << v;
|
|
1054
1070
|
}
|
|
1055
1071
|
)
|
|
1056
1072
|
);
|
|
1057
|
-
return h = !0,
|
|
1058
|
-
ie(
|
|
1073
|
+
return h = !0, c(), function() {
|
|
1074
|
+
ie(p), f(), h = !1;
|
|
1059
1075
|
};
|
|
1060
1076
|
});
|
|
1061
1077
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1078
|
+
function Qr(e) {
|
|
1079
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1064
1080
|
}
|
|
1065
|
-
var
|
|
1066
|
-
return
|
|
1081
|
+
var qr = function(t) {
|
|
1082
|
+
return Jr(t) && !Yr(t);
|
|
1067
1083
|
};
|
|
1068
|
-
function
|
|
1084
|
+
function Jr(e) {
|
|
1069
1085
|
return !!e && typeof e == "object";
|
|
1070
1086
|
}
|
|
1071
|
-
function
|
|
1087
|
+
function Yr(e) {
|
|
1072
1088
|
var t = Object.prototype.toString.call(e);
|
|
1073
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || tn(e);
|
|
1074
1090
|
}
|
|
1075
|
-
var
|
|
1076
|
-
function
|
|
1077
|
-
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;
|
|
1078
1094
|
}
|
|
1079
|
-
function
|
|
1095
|
+
function rn(e) {
|
|
1080
1096
|
return Array.isArray(e) ? [] : {};
|
|
1081
1097
|
}
|
|
1082
1098
|
function re(e, t) {
|
|
1083
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? V(
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(rn(e), e, t) : e;
|
|
1084
1100
|
}
|
|
1085
|
-
function
|
|
1101
|
+
function nn(e, t, r) {
|
|
1086
1102
|
return e.concat(t).map(function(n) {
|
|
1087
1103
|
return re(n, r);
|
|
1088
1104
|
});
|
|
1089
1105
|
}
|
|
1090
|
-
function
|
|
1106
|
+
function on(e, t) {
|
|
1091
1107
|
if (!t.customMerge)
|
|
1092
1108
|
return V;
|
|
1093
1109
|
var r = t.customMerge(e);
|
|
1094
1110
|
return typeof r == "function" ? r : V;
|
|
1095
1111
|
}
|
|
1096
|
-
function
|
|
1112
|
+
function sn(e) {
|
|
1097
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1098
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1099
1115
|
}) : [];
|
|
1100
1116
|
}
|
|
1101
|
-
function
|
|
1102
|
-
return Object.keys(e).concat(
|
|
1117
|
+
function ut(e) {
|
|
1118
|
+
return Object.keys(e).concat(sn(e));
|
|
1103
1119
|
}
|
|
1104
|
-
function
|
|
1120
|
+
function Rt(e, t) {
|
|
1105
1121
|
try {
|
|
1106
1122
|
return t in e;
|
|
1107
1123
|
} catch {
|
|
1108
1124
|
return !1;
|
|
1109
1125
|
}
|
|
1110
1126
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return
|
|
1127
|
+
function an(e, t) {
|
|
1128
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1113
1129
|
}
|
|
1114
|
-
function
|
|
1130
|
+
function un(e, t, r) {
|
|
1115
1131
|
var n = {};
|
|
1116
|
-
return r.isMergeableObject(e) &&
|
|
1132
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1117
1133
|
n[i] = re(e[i], r);
|
|
1118
|
-
}),
|
|
1119
|
-
|
|
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));
|
|
1120
1136
|
}), n;
|
|
1121
1137
|
}
|
|
1122
1138
|
function V(e, t, r) {
|
|
1123
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || qr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1124
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1125
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : un(e, t, r) : re(t, r);
|
|
1126
1142
|
}
|
|
1127
1143
|
V.all = function(t, r) {
|
|
1128
1144
|
if (!Array.isArray(t))
|
|
@@ -1131,60 +1147,58 @@ V.all = function(t, r) {
|
|
|
1131
1147
|
return V(n, i, r);
|
|
1132
1148
|
}, {});
|
|
1133
1149
|
};
|
|
1134
|
-
var
|
|
1135
|
-
const
|
|
1136
|
-
function
|
|
1137
|
-
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;
|
|
1138
1154
|
return i(e, {
|
|
1139
1155
|
cache: r,
|
|
1140
1156
|
serializer: n
|
|
1141
1157
|
});
|
|
1142
1158
|
}
|
|
1143
|
-
function
|
|
1159
|
+
function fn(e) {
|
|
1144
1160
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1145
1161
|
}
|
|
1146
|
-
function
|
|
1147
|
-
var i =
|
|
1162
|
+
function Ut(e, t, r, n) {
|
|
1163
|
+
var i = fn(n) ? n : r(n), o = t.get(i);
|
|
1148
1164
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1149
1165
|
}
|
|
1150
|
-
function
|
|
1166
|
+
function Dt(e, t, r) {
|
|
1151
1167
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1152
1168
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1153
1169
|
}
|
|
1154
|
-
function
|
|
1170
|
+
function Qe(e, t, r, n, i) {
|
|
1155
1171
|
return r.bind(t, e, n, i);
|
|
1156
1172
|
}
|
|
1157
|
-
function
|
|
1158
|
-
var r = e.length === 1 ?
|
|
1159
|
-
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);
|
|
1160
1176
|
}
|
|
1161
|
-
function
|
|
1162
|
-
return
|
|
1177
|
+
function dn(e, t) {
|
|
1178
|
+
return Qe(e, this, Dt, t.cache.create(), t.serializer);
|
|
1163
1179
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1180
|
+
function mn(e, t) {
|
|
1181
|
+
return Qe(e, this, Ut, t.cache.create(), t.serializer);
|
|
1166
1182
|
}
|
|
1167
|
-
var
|
|
1183
|
+
var bn = function() {
|
|
1168
1184
|
return JSON.stringify(arguments);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
}()
|
|
1181
|
-
), mn = {
|
|
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 = {
|
|
1182
1196
|
create: function() {
|
|
1183
|
-
return new
|
|
1197
|
+
return new qe();
|
|
1184
1198
|
}
|
|
1185
|
-
},
|
|
1186
|
-
variadic:
|
|
1187
|
-
monadic:
|
|
1199
|
+
}, Ae = {
|
|
1200
|
+
variadic: dn,
|
|
1201
|
+
monadic: mn
|
|
1188
1202
|
}, m;
|
|
1189
1203
|
(function(e) {
|
|
1190
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";
|
|
@@ -1197,43 +1211,43 @@ var X;
|
|
|
1197
1211
|
(function(e) {
|
|
1198
1212
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1199
1213
|
})(X || (X = {}));
|
|
1200
|
-
function
|
|
1214
|
+
function ht(e) {
|
|
1201
1215
|
return e.type === _.literal;
|
|
1202
1216
|
}
|
|
1203
|
-
function
|
|
1217
|
+
function yn(e) {
|
|
1204
1218
|
return e.type === _.argument;
|
|
1205
1219
|
}
|
|
1206
|
-
function
|
|
1220
|
+
function Gt(e) {
|
|
1207
1221
|
return e.type === _.number;
|
|
1208
1222
|
}
|
|
1209
|
-
function
|
|
1223
|
+
function Ft(e) {
|
|
1210
1224
|
return e.type === _.date;
|
|
1211
1225
|
}
|
|
1212
|
-
function
|
|
1226
|
+
function jt(e) {
|
|
1213
1227
|
return e.type === _.time;
|
|
1214
1228
|
}
|
|
1215
|
-
function
|
|
1229
|
+
function kt(e) {
|
|
1216
1230
|
return e.type === _.select;
|
|
1217
1231
|
}
|
|
1218
|
-
function
|
|
1232
|
+
function Vt(e) {
|
|
1219
1233
|
return e.type === _.plural;
|
|
1220
1234
|
}
|
|
1221
|
-
function
|
|
1235
|
+
function vn(e) {
|
|
1222
1236
|
return e.type === _.pound;
|
|
1223
1237
|
}
|
|
1224
|
-
function
|
|
1238
|
+
function Xt(e) {
|
|
1225
1239
|
return e.type === _.tag;
|
|
1226
1240
|
}
|
|
1227
|
-
function
|
|
1241
|
+
function Wt(e) {
|
|
1228
1242
|
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1229
1243
|
}
|
|
1230
|
-
function
|
|
1244
|
+
function Ge(e) {
|
|
1231
1245
|
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1232
1246
|
}
|
|
1233
|
-
var
|
|
1234
|
-
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) {
|
|
1235
1249
|
var t = {};
|
|
1236
|
-
return e.replace(
|
|
1250
|
+
return e.replace(_n, function(r) {
|
|
1237
1251
|
var n = r.length;
|
|
1238
1252
|
switch (r[0]) {
|
|
1239
1253
|
case "G":
|
|
@@ -1322,36 +1336,36 @@ function vn(e) {
|
|
|
1322
1336
|
return "";
|
|
1323
1337
|
}), t;
|
|
1324
1338
|
}
|
|
1325
|
-
var
|
|
1326
|
-
function
|
|
1339
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1340
|
+
function Sn(e) {
|
|
1327
1341
|
if (e.length === 0)
|
|
1328
1342
|
throw new Error("Number skeleton cannot be empty");
|
|
1329
|
-
for (var t = e.split(
|
|
1330
|
-
return
|
|
1343
|
+
for (var t = e.split(xn).filter(function(c) {
|
|
1344
|
+
return c.length > 0;
|
|
1331
1345
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1332
1346
|
var o = i[n], s = o.split("/");
|
|
1333
1347
|
if (s.length === 0)
|
|
1334
1348
|
throw new Error("Invalid number skeleton");
|
|
1335
1349
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1336
|
-
var
|
|
1337
|
-
if (
|
|
1350
|
+
var f = l[u];
|
|
1351
|
+
if (f.length === 0)
|
|
1338
1352
|
throw new Error("Invalid number skeleton");
|
|
1339
1353
|
}
|
|
1340
1354
|
r.push({ stem: a, options: h });
|
|
1341
1355
|
}
|
|
1342
1356
|
return r;
|
|
1343
1357
|
}
|
|
1344
|
-
function
|
|
1358
|
+
function Tn(e) {
|
|
1345
1359
|
return e.replace(/^(.*?)-/, "");
|
|
1346
1360
|
}
|
|
1347
|
-
var
|
|
1348
|
-
function
|
|
1361
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
|
|
1362
|
+
function ct(e) {
|
|
1349
1363
|
var t = {};
|
|
1350
|
-
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) {
|
|
1351
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)), "";
|
|
1352
1366
|
}), t;
|
|
1353
1367
|
}
|
|
1354
|
-
function
|
|
1368
|
+
function qt(e) {
|
|
1355
1369
|
switch (e) {
|
|
1356
1370
|
case "sign-auto":
|
|
1357
1371
|
return {
|
|
@@ -1391,7 +1405,7 @@ function zt(e) {
|
|
|
1391
1405
|
};
|
|
1392
1406
|
}
|
|
1393
1407
|
}
|
|
1394
|
-
function
|
|
1408
|
+
function Bn(e) {
|
|
1395
1409
|
var t;
|
|
1396
1410
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1397
1411
|
notation: "engineering"
|
|
@@ -1399,17 +1413,17 @@ function Tn(e) {
|
|
|
1399
1413
|
notation: "scientific"
|
|
1400
1414
|
}, e = e.slice(1)), t) {
|
|
1401
1415
|
var r = e.slice(0, 2);
|
|
1402
|
-
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))
|
|
1403
1417
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1404
1418
|
t.minimumIntegerDigits = e.length;
|
|
1405
1419
|
}
|
|
1406
1420
|
return t;
|
|
1407
1421
|
}
|
|
1408
|
-
function
|
|
1409
|
-
var t = {}, r =
|
|
1422
|
+
function ft(e) {
|
|
1423
|
+
var t = {}, r = qt(e);
|
|
1410
1424
|
return r || t;
|
|
1411
1425
|
}
|
|
1412
|
-
function
|
|
1426
|
+
function wn(e) {
|
|
1413
1427
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1414
1428
|
var i = n[r];
|
|
1415
1429
|
switch (i.stem) {
|
|
@@ -1433,7 +1447,7 @@ function Hn(e) {
|
|
|
1433
1447
|
continue;
|
|
1434
1448
|
case "measure-unit":
|
|
1435
1449
|
case "unit":
|
|
1436
|
-
t.style = "unit", t.unit =
|
|
1450
|
+
t.style = "unit", t.unit = Tn(i.options[0]);
|
|
1437
1451
|
continue;
|
|
1438
1452
|
case "compact-short":
|
|
1439
1453
|
case "K":
|
|
@@ -1445,12 +1459,12 @@ function Hn(e) {
|
|
|
1445
1459
|
continue;
|
|
1446
1460
|
case "scientific":
|
|
1447
1461
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1448
|
-
return g(g({}, h),
|
|
1462
|
+
return g(g({}, h), ft(u));
|
|
1449
1463
|
}, {}));
|
|
1450
1464
|
continue;
|
|
1451
1465
|
case "engineering":
|
|
1452
1466
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1453
|
-
return g(g({}, h),
|
|
1467
|
+
return g(g({}, h), ft(u));
|
|
1454
1468
|
}, {}));
|
|
1455
1469
|
continue;
|
|
1456
1470
|
case "notation-simple":
|
|
@@ -1495,40 +1509,40 @@ function Hn(e) {
|
|
|
1495
1509
|
case "integer-width":
|
|
1496
1510
|
if (i.options.length > 1)
|
|
1497
1511
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1498
|
-
i.options[0].replace(
|
|
1512
|
+
i.options[0].replace(Hn, function(h, u, l, f, c, p) {
|
|
1499
1513
|
if (u)
|
|
1500
1514
|
t.minimumIntegerDigits = l.length;
|
|
1501
1515
|
else {
|
|
1502
|
-
if (
|
|
1516
|
+
if (f && c)
|
|
1503
1517
|
throw new Error("We currently do not support maximum integer digits");
|
|
1504
|
-
if (
|
|
1518
|
+
if (p)
|
|
1505
1519
|
throw new Error("We currently do not support exact integer digits");
|
|
1506
1520
|
}
|
|
1507
1521
|
return "";
|
|
1508
1522
|
});
|
|
1509
1523
|
continue;
|
|
1510
1524
|
}
|
|
1511
|
-
if (
|
|
1525
|
+
if (Qt.test(i.stem)) {
|
|
1512
1526
|
t.minimumIntegerDigits = i.stem.length;
|
|
1513
1527
|
continue;
|
|
1514
1528
|
}
|
|
1515
|
-
if (
|
|
1529
|
+
if (lt.test(i.stem)) {
|
|
1516
1530
|
if (i.options.length > 1)
|
|
1517
1531
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1518
|
-
i.stem.replace(
|
|
1519
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1532
|
+
i.stem.replace(lt, function(h, u, l, f, c, p) {
|
|
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), "";
|
|
1520
1534
|
});
|
|
1521
1535
|
var o = i.options[0];
|
|
1522
|
-
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)));
|
|
1523
1537
|
continue;
|
|
1524
1538
|
}
|
|
1525
|
-
if (
|
|
1526
|
-
t = g(g({}, t),
|
|
1539
|
+
if (Zt.test(i.stem)) {
|
|
1540
|
+
t = g(g({}, t), ct(i.stem));
|
|
1527
1541
|
continue;
|
|
1528
1542
|
}
|
|
1529
|
-
var s =
|
|
1543
|
+
var s = qt(i.stem);
|
|
1530
1544
|
s && (t = g(g({}, t), s));
|
|
1531
|
-
var a =
|
|
1545
|
+
var a = Bn(i.stem);
|
|
1532
1546
|
a && (t = g(g({}, t), a));
|
|
1533
1547
|
}
|
|
1534
1548
|
return t;
|
|
@@ -2948,13 +2962,13 @@ var le = {
|
|
|
2948
2962
|
"h"
|
|
2949
2963
|
]
|
|
2950
2964
|
};
|
|
2951
|
-
function
|
|
2965
|
+
function An(e, t) {
|
|
2952
2966
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2953
2967
|
var i = e.charAt(n);
|
|
2954
2968
|
if (i === "j") {
|
|
2955
2969
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2956
2970
|
o++, n++;
|
|
2957
|
-
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);
|
|
2958
2972
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2959
2973
|
r += h;
|
|
2960
2974
|
for (; s-- > 0; )
|
|
@@ -2964,7 +2978,7 @@ function Bn(e, t) {
|
|
|
2964
2978
|
}
|
|
2965
2979
|
return r;
|
|
2966
2980
|
}
|
|
2967
|
-
function
|
|
2981
|
+
function Pn(e) {
|
|
2968
2982
|
var t = e.hourCycle;
|
|
2969
2983
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2970
2984
|
e.hourCycles && // @ts-ignore
|
|
@@ -2986,20 +3000,20 @@ function wn(e) {
|
|
|
2986
3000
|
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2987
3001
|
return i[0];
|
|
2988
3002
|
}
|
|
2989
|
-
var
|
|
3003
|
+
var Pe, On = new RegExp("^".concat(zt.source, "*")), In = new RegExp("".concat(zt.source, "*$"));
|
|
2990
3004
|
function b(e, t) {
|
|
2991
3005
|
return { start: e, end: t };
|
|
2992
3006
|
}
|
|
2993
|
-
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) {
|
|
2994
3008
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2995
|
-
},
|
|
3009
|
+
}, Fe = !0;
|
|
2996
3010
|
try {
|
|
2997
|
-
var
|
|
2998
|
-
|
|
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";
|
|
2999
3013
|
} catch {
|
|
3000
|
-
|
|
3014
|
+
Fe = !1;
|
|
3001
3015
|
}
|
|
3002
|
-
var
|
|
3016
|
+
var pt = Ln ? (
|
|
3003
3017
|
// Native
|
|
3004
3018
|
function(t, r, n) {
|
|
3005
3019
|
return t.startsWith(r, n);
|
|
@@ -3009,7 +3023,7 @@ var ft = On ? (
|
|
|
3009
3023
|
function(t, r, n) {
|
|
3010
3024
|
return t.slice(n, n + r.length) === r;
|
|
3011
3025
|
}
|
|
3012
|
-
),
|
|
3026
|
+
), je = Nn ? String.fromCodePoint : (
|
|
3013
3027
|
// IE11
|
|
3014
3028
|
function() {
|
|
3015
3029
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3021,9 +3035,9 @@ var ft = On ? (
|
|
|
3021
3035
|
}
|
|
3022
3036
|
return n;
|
|
3023
3037
|
}
|
|
3024
|
-
),
|
|
3038
|
+
), dt = (
|
|
3025
3039
|
// native
|
|
3026
|
-
|
|
3040
|
+
Mn ? Object.fromEntries : (
|
|
3027
3041
|
// Ponyfill
|
|
3028
3042
|
function(t) {
|
|
3029
3043
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3033,7 +3047,7 @@ var ft = On ? (
|
|
|
3033
3047
|
return r;
|
|
3034
3048
|
}
|
|
3035
3049
|
)
|
|
3036
|
-
),
|
|
3050
|
+
), Jt = Cn ? (
|
|
3037
3051
|
// Native
|
|
3038
3052
|
function(t, r) {
|
|
3039
3053
|
return t.codePointAt(r);
|
|
@@ -3047,7 +3061,7 @@ var ft = On ? (
|
|
|
3047
3061
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3048
3062
|
}
|
|
3049
3063
|
}
|
|
3050
|
-
),
|
|
3064
|
+
), Fn = $n ? (
|
|
3051
3065
|
// Native
|
|
3052
3066
|
function(t) {
|
|
3053
3067
|
return t.trimStart();
|
|
@@ -3055,9 +3069,9 @@ var ft = On ? (
|
|
|
3055
3069
|
) : (
|
|
3056
3070
|
// Ponyfill
|
|
3057
3071
|
function(t) {
|
|
3058
|
-
return t.replace(
|
|
3072
|
+
return t.replace(On, "");
|
|
3059
3073
|
}
|
|
3060
|
-
),
|
|
3074
|
+
), jn = Rn ? (
|
|
3061
3075
|
// Native
|
|
3062
3076
|
function(t) {
|
|
3063
3077
|
return t.trimEnd();
|
|
@@ -3065,32 +3079,32 @@ var ft = On ? (
|
|
|
3065
3079
|
) : (
|
|
3066
3080
|
// Ponyfill
|
|
3067
3081
|
function(t) {
|
|
3068
|
-
return t.replace(
|
|
3082
|
+
return t.replace(In, "");
|
|
3069
3083
|
}
|
|
3070
3084
|
);
|
|
3071
|
-
function
|
|
3085
|
+
function Yt(e, t) {
|
|
3072
3086
|
return new RegExp(e, t);
|
|
3073
3087
|
}
|
|
3074
|
-
var
|
|
3075
|
-
if (
|
|
3076
|
-
var
|
|
3077
|
-
|
|
3088
|
+
var ke;
|
|
3089
|
+
if (Fe) {
|
|
3090
|
+
var mt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3091
|
+
ke = function(t, r) {
|
|
3078
3092
|
var n;
|
|
3079
|
-
|
|
3080
|
-
var i =
|
|
3093
|
+
mt.lastIndex = r;
|
|
3094
|
+
var i = mt.exec(t);
|
|
3081
3095
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3082
3096
|
};
|
|
3083
3097
|
} else
|
|
3084
|
-
|
|
3098
|
+
ke = function(t, r) {
|
|
3085
3099
|
for (var n = []; ; ) {
|
|
3086
|
-
var i =
|
|
3087
|
-
if (i === void 0 ||
|
|
3100
|
+
var i = Jt(t, r);
|
|
3101
|
+
if (i === void 0 || Kt(i) || Wn(i))
|
|
3088
3102
|
break;
|
|
3089
3103
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3090
3104
|
}
|
|
3091
|
-
return
|
|
3105
|
+
return je.apply(void 0, n);
|
|
3092
3106
|
};
|
|
3093
|
-
var
|
|
3107
|
+
var kn = (
|
|
3094
3108
|
/** @class */
|
|
3095
3109
|
function() {
|
|
3096
3110
|
function e(t, r) {
|
|
@@ -3121,7 +3135,7 @@ var Fn = (
|
|
|
3121
3135
|
if (n)
|
|
3122
3136
|
break;
|
|
3123
3137
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3124
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3138
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3125
3139
|
var s = this.parseTag(t, r);
|
|
3126
3140
|
if (s.err)
|
|
3127
3141
|
return s;
|
|
@@ -3154,7 +3168,7 @@ var Fn = (
|
|
|
3154
3168
|
return o;
|
|
3155
3169
|
var s = o.val, a = this.clonePosition();
|
|
3156
3170
|
if (this.bumpIf("</")) {
|
|
3157
|
-
if (this.isEOF() || !
|
|
3171
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3158
3172
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3159
3173
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3160
3174
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3172,7 +3186,7 @@ var Fn = (
|
|
|
3172
3186
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3173
3187
|
}, e.prototype.parseTagName = function() {
|
|
3174
3188
|
var t = this.offset();
|
|
3175
|
-
for (this.bump(); !this.isEOF() &&
|
|
3189
|
+
for (this.bump(); !this.isEOF() && Xn(this.char()); )
|
|
3176
3190
|
this.bump();
|
|
3177
3191
|
return this.message.slice(t, this.offset());
|
|
3178
3192
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3201,7 +3215,7 @@ var Fn = (
|
|
|
3201
3215
|
};
|
|
3202
3216
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3203
3217
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3204
|
-
!
|
|
3218
|
+
!Vn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3205
3219
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3206
3220
|
if (this.isEOF() || this.char() !== 39)
|
|
3207
3221
|
return null;
|
|
@@ -3235,12 +3249,12 @@ var Fn = (
|
|
|
3235
3249
|
r.push(n);
|
|
3236
3250
|
this.bump();
|
|
3237
3251
|
}
|
|
3238
|
-
return
|
|
3252
|
+
return je.apply(void 0, r);
|
|
3239
3253
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3240
3254
|
if (this.isEOF())
|
|
3241
3255
|
return null;
|
|
3242
3256
|
var n = this.char();
|
|
3243
|
-
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));
|
|
3244
3258
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3245
3259
|
var n = this.clonePosition();
|
|
3246
3260
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3269,7 +3283,7 @@ var Fn = (
|
|
|
3269
3283
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3270
3284
|
}
|
|
3271
3285
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3272
|
-
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;
|
|
3273
3287
|
this.bumpTo(i);
|
|
3274
3288
|
var o = this.clonePosition(), s = b(t, o);
|
|
3275
3289
|
return { value: n, location: s };
|
|
@@ -3285,40 +3299,40 @@ var Fn = (
|
|
|
3285
3299
|
var u = null;
|
|
3286
3300
|
if (this.bumpIf(",")) {
|
|
3287
3301
|
this.bumpSpace();
|
|
3288
|
-
var l = this.clonePosition(),
|
|
3289
|
-
if (
|
|
3290
|
-
return
|
|
3291
|
-
var
|
|
3292
|
-
if (
|
|
3302
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3303
|
+
if (f.err)
|
|
3304
|
+
return f;
|
|
3305
|
+
var c = jn(f.val);
|
|
3306
|
+
if (c.length === 0)
|
|
3293
3307
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3294
|
-
var
|
|
3295
|
-
u = { style:
|
|
3308
|
+
var p = b(l, this.clonePosition());
|
|
3309
|
+
u = { style: c, styleLocation: p };
|
|
3296
3310
|
}
|
|
3297
|
-
var
|
|
3298
|
-
if (
|
|
3299
|
-
return
|
|
3311
|
+
var d = this.tryParseArgumentClose(i);
|
|
3312
|
+
if (d.err)
|
|
3313
|
+
return d;
|
|
3300
3314
|
var v = b(i, this.clonePosition());
|
|
3301
|
-
if (u &&
|
|
3302
|
-
var H =
|
|
3315
|
+
if (u && pt(u?.style, "::", 0)) {
|
|
3316
|
+
var H = Fn(u.style.slice(2));
|
|
3303
3317
|
if (a === "number") {
|
|
3304
|
-
var
|
|
3305
|
-
return
|
|
3306
|
-
val: { type: _.number, value: n, location: v, style:
|
|
3318
|
+
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3319
|
+
return f.err ? f : {
|
|
3320
|
+
val: { type: _.number, value: n, location: v, style: f.val },
|
|
3307
3321
|
err: null
|
|
3308
3322
|
};
|
|
3309
3323
|
} else {
|
|
3310
3324
|
if (H.length === 0)
|
|
3311
3325
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3312
3326
|
var C = H;
|
|
3313
|
-
this.locale && (C =
|
|
3314
|
-
var
|
|
3327
|
+
this.locale && (C = An(H, this.locale));
|
|
3328
|
+
var c = {
|
|
3315
3329
|
type: X.dateTime,
|
|
3316
3330
|
pattern: C,
|
|
3317
3331
|
location: u.styleLocation,
|
|
3318
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3332
|
+
parsedOptions: this.shouldParseSkeletons ? En(C) : {}
|
|
3319
3333
|
}, L = a === "date" ? _.date : _.time;
|
|
3320
3334
|
return {
|
|
3321
|
-
val: { type: L, value: n, location: v, style:
|
|
3335
|
+
val: { type: L, value: n, location: v, style: c },
|
|
3322
3336
|
err: null
|
|
3323
3337
|
};
|
|
3324
3338
|
}
|
|
@@ -3336,32 +3350,32 @@ var Fn = (
|
|
|
3336
3350
|
case "plural":
|
|
3337
3351
|
case "selectordinal":
|
|
3338
3352
|
case "select": {
|
|
3339
|
-
var
|
|
3353
|
+
var x = this.clonePosition();
|
|
3340
3354
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3341
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3355
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, g({}, x)));
|
|
3342
3356
|
this.bumpSpace();
|
|
3343
3357
|
var $ = this.parseIdentifierIfPossible(), A = 0;
|
|
3344
3358
|
if (a !== "select" && $.value === "offset") {
|
|
3345
3359
|
if (!this.bumpIf(":"))
|
|
3346
3360
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3347
3361
|
this.bumpSpace();
|
|
3348
|
-
var
|
|
3349
|
-
if (
|
|
3350
|
-
return
|
|
3351
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A =
|
|
3362
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3363
|
+
if (f.err)
|
|
3364
|
+
return f;
|
|
3365
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = f.val;
|
|
3352
3366
|
}
|
|
3353
3367
|
var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3354
3368
|
if (U.err)
|
|
3355
3369
|
return U;
|
|
3356
|
-
var
|
|
3357
|
-
if (
|
|
3358
|
-
return
|
|
3370
|
+
var d = this.tryParseArgumentClose(i);
|
|
3371
|
+
if (d.err)
|
|
3372
|
+
return d;
|
|
3359
3373
|
var ae = b(i, this.clonePosition());
|
|
3360
3374
|
return a === "select" ? {
|
|
3361
3375
|
val: {
|
|
3362
3376
|
type: _.select,
|
|
3363
3377
|
value: n,
|
|
3364
|
-
options:
|
|
3378
|
+
options: dt(U.val),
|
|
3365
3379
|
location: ae
|
|
3366
3380
|
},
|
|
3367
3381
|
err: null
|
|
@@ -3369,7 +3383,7 @@ var Fn = (
|
|
|
3369
3383
|
val: {
|
|
3370
3384
|
type: _.plural,
|
|
3371
3385
|
value: n,
|
|
3372
|
-
options:
|
|
3386
|
+
options: dt(U.val),
|
|
3373
3387
|
offset: A,
|
|
3374
3388
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3375
3389
|
location: ae
|
|
@@ -3420,7 +3434,7 @@ var Fn = (
|
|
|
3420
3434
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3421
3435
|
var n = [];
|
|
3422
3436
|
try {
|
|
3423
|
-
n =
|
|
3437
|
+
n = Sn(t);
|
|
3424
3438
|
} catch {
|
|
3425
3439
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3426
3440
|
}
|
|
@@ -3429,39 +3443,39 @@ var Fn = (
|
|
|
3429
3443
|
type: X.number,
|
|
3430
3444
|
tokens: n,
|
|
3431
3445
|
location: r,
|
|
3432
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3446
|
+
parsedOptions: this.shouldParseSkeletons ? wn(n) : {}
|
|
3433
3447
|
},
|
|
3434
3448
|
err: null
|
|
3435
3449
|
};
|
|
3436
3450
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3437
3451
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3438
3452
|
if (u.length === 0) {
|
|
3439
|
-
var
|
|
3453
|
+
var f = this.clonePosition();
|
|
3440
3454
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3441
|
-
var
|
|
3442
|
-
if (
|
|
3443
|
-
return
|
|
3444
|
-
l = b(
|
|
3455
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3456
|
+
if (c.err)
|
|
3457
|
+
return c;
|
|
3458
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3445
3459
|
} else
|
|
3446
3460
|
break;
|
|
3447
3461
|
}
|
|
3448
3462
|
if (h.has(u))
|
|
3449
3463
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3450
3464
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3451
|
-
var
|
|
3465
|
+
var p = this.clonePosition();
|
|
3452
3466
|
if (!this.bumpIf("{"))
|
|
3453
3467
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3454
|
-
var
|
|
3455
|
-
if (
|
|
3456
|
-
return
|
|
3457
|
-
var v = this.tryParseArgumentClose(
|
|
3468
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3469
|
+
if (d.err)
|
|
3470
|
+
return d;
|
|
3471
|
+
var v = this.tryParseArgumentClose(p);
|
|
3458
3472
|
if (v.err)
|
|
3459
3473
|
return v;
|
|
3460
3474
|
a.push([
|
|
3461
3475
|
u,
|
|
3462
3476
|
{
|
|
3463
|
-
value:
|
|
3464
|
-
location: b(
|
|
3477
|
+
value: d.val,
|
|
3478
|
+
location: b(p, this.clonePosition())
|
|
3465
3479
|
}
|
|
3466
3480
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3467
3481
|
}
|
|
@@ -3477,7 +3491,7 @@ var Fn = (
|
|
|
3477
3491
|
break;
|
|
3478
3492
|
}
|
|
3479
3493
|
var h = b(i, this.clonePosition());
|
|
3480
|
-
return o ? (s *= n,
|
|
3494
|
+
return o ? (s *= n, Dn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3481
3495
|
}, e.prototype.offset = function() {
|
|
3482
3496
|
return this.position.offset;
|
|
3483
3497
|
}, e.prototype.isEOF = function() {
|
|
@@ -3492,7 +3506,7 @@ var Fn = (
|
|
|
3492
3506
|
var t = this.position.offset;
|
|
3493
3507
|
if (t >= this.message.length)
|
|
3494
3508
|
throw Error("out of bound");
|
|
3495
|
-
var r =
|
|
3509
|
+
var r = Jt(this.message, t);
|
|
3496
3510
|
if (r === void 0)
|
|
3497
3511
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3498
3512
|
return r;
|
|
@@ -3511,7 +3525,7 @@ var Fn = (
|
|
|
3511
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);
|
|
3512
3526
|
}
|
|
3513
3527
|
}, e.prototype.bumpIf = function(t) {
|
|
3514
|
-
if (
|
|
3528
|
+
if (pt(this.message, t, this.offset())) {
|
|
3515
3529
|
for (var r = 0; r < t.length; r++)
|
|
3516
3530
|
this.bump();
|
|
3517
3531
|
return !0;
|
|
@@ -3533,7 +3547,7 @@ var Fn = (
|
|
|
3533
3547
|
break;
|
|
3534
3548
|
}
|
|
3535
3549
|
}, e.prototype.bumpSpace = function() {
|
|
3536
|
-
for (; !this.isEOF() &&
|
|
3550
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3537
3551
|
this.bump();
|
|
3538
3552
|
}, e.prototype.peek = function() {
|
|
3539
3553
|
if (this.isEOF())
|
|
@@ -3543,38 +3557,38 @@ var Fn = (
|
|
|
3543
3557
|
}, e;
|
|
3544
3558
|
}()
|
|
3545
3559
|
);
|
|
3546
|
-
function
|
|
3560
|
+
function Ve(e) {
|
|
3547
3561
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3548
3562
|
}
|
|
3549
|
-
function
|
|
3550
|
-
return
|
|
3563
|
+
function Vn(e) {
|
|
3564
|
+
return Ve(e) || e === 47;
|
|
3551
3565
|
}
|
|
3552
|
-
function
|
|
3566
|
+
function Xn(e) {
|
|
3553
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;
|
|
3554
3568
|
}
|
|
3555
|
-
function
|
|
3569
|
+
function Kt(e) {
|
|
3556
3570
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3557
3571
|
}
|
|
3558
|
-
function
|
|
3572
|
+
function Wn(e) {
|
|
3559
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;
|
|
3560
3574
|
}
|
|
3561
|
-
function
|
|
3575
|
+
function Xe(e) {
|
|
3562
3576
|
e.forEach(function(t) {
|
|
3563
|
-
if (delete t.location,
|
|
3577
|
+
if (delete t.location, kt(t) || Vt(t))
|
|
3564
3578
|
for (var r in t.options)
|
|
3565
|
-
delete t.options[r].location,
|
|
3579
|
+
delete t.options[r].location, Xe(t.options[r].value);
|
|
3566
3580
|
else
|
|
3567
|
-
|
|
3581
|
+
Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && Ge(t.style) ? delete t.style.location : Xt(t) && Xe(t.children);
|
|
3568
3582
|
});
|
|
3569
3583
|
}
|
|
3570
|
-
function
|
|
3584
|
+
function zn(e, t) {
|
|
3571
3585
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3572
|
-
var r = new
|
|
3586
|
+
var r = new kn(e, t).parse();
|
|
3573
3587
|
if (r.err) {
|
|
3574
3588
|
var n = SyntaxError(m[r.err.kind]);
|
|
3575
3589
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3576
3590
|
}
|
|
3577
|
-
return t?.captureLocation ||
|
|
3591
|
+
return t?.captureLocation || Xe(r.val), r.val;
|
|
3578
3592
|
}
|
|
3579
3593
|
var W;
|
|
3580
3594
|
(function(e) {
|
|
@@ -3592,7 +3606,7 @@ var _e = (
|
|
|
3592
3606
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3593
3607
|
}, t;
|
|
3594
3608
|
}(Error)
|
|
3595
|
-
),
|
|
3609
|
+
), bt = (
|
|
3596
3610
|
/** @class */
|
|
3597
3611
|
function(e) {
|
|
3598
3612
|
I(t, e);
|
|
@@ -3601,7 +3615,7 @@ var _e = (
|
|
|
3601
3615
|
}
|
|
3602
3616
|
return t;
|
|
3603
3617
|
}(_e)
|
|
3604
|
-
),
|
|
3618
|
+
), Zn = (
|
|
3605
3619
|
/** @class */
|
|
3606
3620
|
function(e) {
|
|
3607
3621
|
I(t, e);
|
|
@@ -3610,7 +3624,7 @@ var _e = (
|
|
|
3610
3624
|
}
|
|
3611
3625
|
return t;
|
|
3612
3626
|
}(_e)
|
|
3613
|
-
),
|
|
3627
|
+
), Qn = (
|
|
3614
3628
|
/** @class */
|
|
3615
3629
|
function(e) {
|
|
3616
3630
|
I(t, e);
|
|
@@ -3619,128 +3633,128 @@ var _e = (
|
|
|
3619
3633
|
}
|
|
3620
3634
|
return t;
|
|
3621
3635
|
}(_e)
|
|
3622
|
-
),
|
|
3636
|
+
), E;
|
|
3623
3637
|
(function(e) {
|
|
3624
3638
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3625
|
-
})(
|
|
3626
|
-
function
|
|
3639
|
+
})(E || (E = {}));
|
|
3640
|
+
function qn(e) {
|
|
3627
3641
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3628
3642
|
var n = t[t.length - 1];
|
|
3629
|
-
return !n || n.type !==
|
|
3643
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3630
3644
|
}, []);
|
|
3631
3645
|
}
|
|
3632
|
-
function
|
|
3646
|
+
function Jn(e) {
|
|
3633
3647
|
return typeof e == "function";
|
|
3634
3648
|
}
|
|
3635
|
-
function
|
|
3636
|
-
if (e.length === 1 &&
|
|
3649
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3650
|
+
if (e.length === 1 && ht(e[0]))
|
|
3637
3651
|
return [
|
|
3638
3652
|
{
|
|
3639
|
-
type:
|
|
3653
|
+
type: E.literal,
|
|
3640
3654
|
value: e[0].value
|
|
3641
3655
|
}
|
|
3642
3656
|
];
|
|
3643
3657
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3644
3658
|
var l = u[h];
|
|
3645
|
-
if (
|
|
3659
|
+
if (ht(l)) {
|
|
3646
3660
|
a.push({
|
|
3647
|
-
type:
|
|
3661
|
+
type: E.literal,
|
|
3648
3662
|
value: l.value
|
|
3649
3663
|
});
|
|
3650
3664
|
continue;
|
|
3651
3665
|
}
|
|
3652
|
-
if (
|
|
3666
|
+
if (vn(l)) {
|
|
3653
3667
|
typeof o == "number" && a.push({
|
|
3654
|
-
type:
|
|
3668
|
+
type: E.literal,
|
|
3655
3669
|
value: r.getNumberFormat(t).format(o)
|
|
3656
3670
|
});
|
|
3657
3671
|
continue;
|
|
3658
3672
|
}
|
|
3659
|
-
var
|
|
3660
|
-
if (!(i &&
|
|
3661
|
-
throw new
|
|
3662
|
-
var
|
|
3663
|
-
if (
|
|
3664
|
-
(!
|
|
3665
|
-
type: typeof
|
|
3666
|
-
value:
|
|
3673
|
+
var f = l.value;
|
|
3674
|
+
if (!(i && f in i))
|
|
3675
|
+
throw new Qn(f, s);
|
|
3676
|
+
var c = i[f];
|
|
3677
|
+
if (yn(l)) {
|
|
3678
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3679
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3680
|
+
value: c
|
|
3667
3681
|
});
|
|
3668
3682
|
continue;
|
|
3669
3683
|
}
|
|
3670
|
-
if (
|
|
3671
|
-
var
|
|
3684
|
+
if (Ft(l)) {
|
|
3685
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
|
|
3672
3686
|
a.push({
|
|
3673
|
-
type:
|
|
3674
|
-
value: r.getDateTimeFormat(t,
|
|
3687
|
+
type: E.literal,
|
|
3688
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3675
3689
|
});
|
|
3676
3690
|
continue;
|
|
3677
3691
|
}
|
|
3678
|
-
if (
|
|
3679
|
-
var
|
|
3692
|
+
if (jt(l)) {
|
|
3693
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3680
3694
|
a.push({
|
|
3681
|
-
type:
|
|
3682
|
-
value: r.getDateTimeFormat(t,
|
|
3695
|
+
type: E.literal,
|
|
3696
|
+
value: r.getDateTimeFormat(t, p).format(c)
|
|
3683
3697
|
});
|
|
3684
3698
|
continue;
|
|
3685
3699
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
var
|
|
3688
|
-
|
|
3689
|
-
type:
|
|
3690
|
-
value: r.getNumberFormat(t,
|
|
3700
|
+
if (Gt(l)) {
|
|
3701
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Wt(l.style) ? l.style.parsedOptions : void 0;
|
|
3702
|
+
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3703
|
+
type: E.literal,
|
|
3704
|
+
value: r.getNumberFormat(t, p).format(c)
|
|
3691
3705
|
});
|
|
3692
3706
|
continue;
|
|
3693
3707
|
}
|
|
3694
|
-
if (
|
|
3695
|
-
var
|
|
3696
|
-
if (!
|
|
3697
|
-
throw new
|
|
3698
|
-
var C =
|
|
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) {
|
|
3699
3713
|
return A.value;
|
|
3700
3714
|
}));
|
|
3701
3715
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(A) {
|
|
3702
3716
|
return {
|
|
3703
|
-
type: typeof A == "string" ?
|
|
3717
|
+
type: typeof A == "string" ? E.literal : E.object,
|
|
3704
3718
|
value: A
|
|
3705
3719
|
};
|
|
3706
3720
|
}));
|
|
3707
3721
|
}
|
|
3708
|
-
if (
|
|
3709
|
-
var
|
|
3710
|
-
if (!
|
|
3711
|
-
throw new
|
|
3712
|
-
a.push.apply(a,
|
|
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));
|
|
3713
3727
|
continue;
|
|
3714
3728
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
var
|
|
3717
|
-
if (!
|
|
3729
|
+
if (Vt(l)) {
|
|
3730
|
+
var x = l.options["=".concat(c)];
|
|
3731
|
+
if (!x) {
|
|
3718
3732
|
if (!Intl.PluralRules)
|
|
3719
3733
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3720
3734
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3721
3735
|
`, W.MISSING_INTL_API, s);
|
|
3722
|
-
var $ = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3723
|
-
|
|
3736
|
+
var $ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3737
|
+
x = l.options[$] || l.options.other;
|
|
3724
3738
|
}
|
|
3725
|
-
if (!
|
|
3726
|
-
throw new
|
|
3727
|
-
a.push.apply(a,
|
|
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)));
|
|
3728
3742
|
continue;
|
|
3729
3743
|
}
|
|
3730
3744
|
}
|
|
3731
|
-
return
|
|
3745
|
+
return qn(a);
|
|
3732
3746
|
}
|
|
3733
|
-
function
|
|
3747
|
+
function Yn(e, t) {
|
|
3734
3748
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3735
3749
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3736
3750
|
}, {})) : e;
|
|
3737
3751
|
}
|
|
3738
|
-
function
|
|
3752
|
+
function Kn(e, t) {
|
|
3739
3753
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3740
|
-
return r[n] =
|
|
3754
|
+
return r[n] = Yn(e[n], t[n]), r;
|
|
3741
3755
|
}, g({}, e)) : e;
|
|
3742
3756
|
}
|
|
3743
|
-
function
|
|
3757
|
+
function Oe(e) {
|
|
3744
3758
|
return {
|
|
3745
3759
|
create: function() {
|
|
3746
3760
|
return {
|
|
@@ -3754,39 +3768,39 @@ function Pe(e) {
|
|
|
3754
3768
|
}
|
|
3755
3769
|
};
|
|
3756
3770
|
}
|
|
3757
|
-
function
|
|
3771
|
+
function ei(e) {
|
|
3758
3772
|
return e === void 0 && (e = {
|
|
3759
3773
|
number: {},
|
|
3760
3774
|
dateTime: {},
|
|
3761
3775
|
pluralRules: {}
|
|
3762
3776
|
}), {
|
|
3763
|
-
getNumberFormat:
|
|
3777
|
+
getNumberFormat: we(function() {
|
|
3764
3778
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3765
3779
|
r[n] = arguments[n];
|
|
3766
3780
|
return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3767
3781
|
}, {
|
|
3768
|
-
cache:
|
|
3769
|
-
strategy:
|
|
3782
|
+
cache: Oe(e.number),
|
|
3783
|
+
strategy: Ae.variadic
|
|
3770
3784
|
}),
|
|
3771
|
-
getDateTimeFormat:
|
|
3785
|
+
getDateTimeFormat: we(function() {
|
|
3772
3786
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3773
3787
|
r[n] = arguments[n];
|
|
3774
3788
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3775
3789
|
}, {
|
|
3776
|
-
cache:
|
|
3777
|
-
strategy:
|
|
3790
|
+
cache: Oe(e.dateTime),
|
|
3791
|
+
strategy: Ae.variadic
|
|
3778
3792
|
}),
|
|
3779
|
-
getPluralRules:
|
|
3793
|
+
getPluralRules: we(function() {
|
|
3780
3794
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3781
3795
|
r[n] = arguments[n];
|
|
3782
3796
|
return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
|
|
3783
3797
|
}, {
|
|
3784
|
-
cache:
|
|
3785
|
-
strategy:
|
|
3798
|
+
cache: Oe(e.pluralRules),
|
|
3799
|
+
strategy: Ae.variadic
|
|
3786
3800
|
})
|
|
3787
3801
|
};
|
|
3788
3802
|
}
|
|
3789
|
-
var
|
|
3803
|
+
var ti = (
|
|
3790
3804
|
/** @class */
|
|
3791
3805
|
function() {
|
|
3792
3806
|
function e(t, r, n, i) {
|
|
@@ -3800,12 +3814,12 @@ var Kn = (
|
|
|
3800
3814
|
var u = o.formatToParts(h);
|
|
3801
3815
|
if (u.length === 1)
|
|
3802
3816
|
return u[0].value;
|
|
3803
|
-
var l = u.reduce(function(
|
|
3804
|
-
return !
|
|
3817
|
+
var l = u.reduce(function(f, c) {
|
|
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;
|
|
3805
3819
|
}, []);
|
|
3806
3820
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3807
3821
|
}, this.formatToParts = function(h) {
|
|
3808
|
-
return
|
|
3822
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3809
3823
|
}, this.resolvedOptions = function() {
|
|
3810
3824
|
var h;
|
|
3811
3825
|
return {
|
|
@@ -3818,13 +3832,13 @@ var Kn = (
|
|
|
3818
3832
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3819
3833
|
var s = i || {};
|
|
3820
3834
|
s.formatters;
|
|
3821
|
-
var a =
|
|
3835
|
+
var a = Nr(s, ["formatters"]);
|
|
3822
3836
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3823
3837
|
} else
|
|
3824
3838
|
this.ast = t;
|
|
3825
3839
|
if (!Array.isArray(this.ast))
|
|
3826
3840
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3827
|
-
this.formats =
|
|
3841
|
+
this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
|
|
3828
3842
|
}
|
|
3829
3843
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3830
3844
|
get: function() {
|
|
@@ -3837,7 +3851,7 @@ var Kn = (
|
|
|
3837
3851
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3838
3852
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3839
3853
|
}
|
|
3840
|
-
}, e.__parse =
|
|
3854
|
+
}, e.__parse = zn, e.formats = {
|
|
3841
3855
|
number: {
|
|
3842
3856
|
integer: {
|
|
3843
3857
|
maximumFractionDigits: 0
|
|
@@ -3898,7 +3912,7 @@ var Kn = (
|
|
|
3898
3912
|
}, e;
|
|
3899
3913
|
}()
|
|
3900
3914
|
);
|
|
3901
|
-
function
|
|
3915
|
+
function ri(e, t) {
|
|
3902
3916
|
if (t == null)
|
|
3903
3917
|
return;
|
|
3904
3918
|
if (t in e)
|
|
@@ -3919,92 +3933,92 @@ function ei(e, t) {
|
|
|
3919
3933
|
n = void 0;
|
|
3920
3934
|
return n;
|
|
3921
3935
|
}
|
|
3922
|
-
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) => {
|
|
3923
3937
|
if (t == null)
|
|
3924
3938
|
return;
|
|
3925
3939
|
if (t in M && e in M[t])
|
|
3926
3940
|
return M[t][e];
|
|
3927
|
-
const r =
|
|
3941
|
+
const r = Ee(t);
|
|
3928
3942
|
for (let n = 0; n < r.length; n++) {
|
|
3929
|
-
const i = r[n], o =
|
|
3943
|
+
const i = r[n], o = oi(i, e);
|
|
3930
3944
|
if (o)
|
|
3931
|
-
return
|
|
3945
|
+
return ni(e, t, o);
|
|
3932
3946
|
}
|
|
3933
3947
|
};
|
|
3934
|
-
let
|
|
3948
|
+
let Je;
|
|
3935
3949
|
const se = ve({});
|
|
3936
|
-
function
|
|
3937
|
-
return
|
|
3950
|
+
function ii(e) {
|
|
3951
|
+
return Je[e] || null;
|
|
3938
3952
|
}
|
|
3939
|
-
function
|
|
3940
|
-
return e in
|
|
3953
|
+
function tr(e) {
|
|
3954
|
+
return e in Je;
|
|
3941
3955
|
}
|
|
3942
|
-
function
|
|
3943
|
-
if (!
|
|
3956
|
+
function oi(e, t) {
|
|
3957
|
+
if (!tr(e))
|
|
3944
3958
|
return null;
|
|
3945
|
-
const r =
|
|
3946
|
-
return
|
|
3959
|
+
const r = ii(e);
|
|
3960
|
+
return ri(r, t);
|
|
3947
3961
|
}
|
|
3948
|
-
function
|
|
3962
|
+
function si(e) {
|
|
3949
3963
|
if (e == null)
|
|
3950
3964
|
return;
|
|
3951
|
-
const t =
|
|
3965
|
+
const t = Ee(e);
|
|
3952
3966
|
for (let r = 0; r < t.length; r++) {
|
|
3953
3967
|
const n = t[r];
|
|
3954
|
-
if (
|
|
3968
|
+
if (tr(n))
|
|
3955
3969
|
return n;
|
|
3956
3970
|
}
|
|
3957
3971
|
}
|
|
3958
|
-
function
|
|
3959
|
-
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));
|
|
3960
3974
|
}
|
|
3961
3975
|
Q(
|
|
3962
3976
|
[se],
|
|
3963
3977
|
([e]) => Object.keys(e)
|
|
3964
3978
|
);
|
|
3965
|
-
se.subscribe((e) =>
|
|
3966
|
-
const
|
|
3967
|
-
function
|
|
3968
|
-
|
|
3979
|
+
se.subscribe((e) => Je = e);
|
|
3980
|
+
const de = {};
|
|
3981
|
+
function ai(e, t) {
|
|
3982
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3969
3983
|
}
|
|
3970
|
-
function
|
|
3971
|
-
return
|
|
3984
|
+
function nr(e) {
|
|
3985
|
+
return de[e];
|
|
3972
3986
|
}
|
|
3973
|
-
function
|
|
3974
|
-
return
|
|
3975
|
-
const r =
|
|
3987
|
+
function ui(e) {
|
|
3988
|
+
return Ee(e).map((t) => {
|
|
3989
|
+
const r = nr(t);
|
|
3976
3990
|
return [t, r ? [...r] : []];
|
|
3977
3991
|
}).filter(([, t]) => t.length > 0);
|
|
3978
3992
|
}
|
|
3979
|
-
function
|
|
3980
|
-
return e == null ? !1 :
|
|
3993
|
+
function We(e) {
|
|
3994
|
+
return e == null ? !1 : Ee(e).some(
|
|
3981
3995
|
(t) => {
|
|
3982
3996
|
var r;
|
|
3983
|
-
return (r =
|
|
3997
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3984
3998
|
}
|
|
3985
3999
|
);
|
|
3986
4000
|
}
|
|
3987
|
-
function
|
|
4001
|
+
function hi(e, t) {
|
|
3988
4002
|
return Promise.all(
|
|
3989
|
-
t.map((n) => (
|
|
3990
|
-
).then((n) =>
|
|
4003
|
+
t.map((n) => (ai(e, n), n().then((i) => i.default || i)))
|
|
4004
|
+
).then((n) => rr(e, ...n));
|
|
3991
4005
|
}
|
|
3992
4006
|
const K = {};
|
|
3993
|
-
function
|
|
3994
|
-
if (!
|
|
4007
|
+
function ir(e) {
|
|
4008
|
+
if (!We(e))
|
|
3995
4009
|
return e in K ? K[e] : Promise.resolve();
|
|
3996
|
-
const t =
|
|
4010
|
+
const t = ui(e);
|
|
3997
4011
|
return K[e] = Promise.all(
|
|
3998
4012
|
t.map(
|
|
3999
|
-
([r, n]) =>
|
|
4013
|
+
([r, n]) => hi(r, n)
|
|
4000
4014
|
)
|
|
4001
4015
|
).then(() => {
|
|
4002
|
-
if (
|
|
4003
|
-
return
|
|
4016
|
+
if (We(e))
|
|
4017
|
+
return ir(e);
|
|
4004
4018
|
delete K[e];
|
|
4005
4019
|
}), K[e];
|
|
4006
4020
|
}
|
|
4007
|
-
const
|
|
4021
|
+
const li = {
|
|
4008
4022
|
number: {
|
|
4009
4023
|
scientific: { notation: "scientific" },
|
|
4010
4024
|
engineering: { notation: "engineering" },
|
|
@@ -4033,78 +4047,78 @@ const ui = {
|
|
|
4033
4047
|
timeZoneName: "short"
|
|
4034
4048
|
}
|
|
4035
4049
|
}
|
|
4036
|
-
},
|
|
4050
|
+
}, ci = {
|
|
4037
4051
|
fallbackLocale: null,
|
|
4038
4052
|
loadingDelay: 200,
|
|
4039
|
-
formats:
|
|
4053
|
+
formats: li,
|
|
4040
4054
|
warnOnMissingMessages: !0,
|
|
4041
4055
|
handleMissingMessage: void 0,
|
|
4042
4056
|
ignoreTag: !0
|
|
4043
|
-
},
|
|
4057
|
+
}, fi = ci;
|
|
4044
4058
|
function z() {
|
|
4045
|
-
return
|
|
4046
|
-
}
|
|
4047
|
-
const
|
|
4048
|
-
var
|
|
4049
|
-
for (var r in t)
|
|
4050
|
-
|
|
4051
|
-
if (
|
|
4052
|
-
for (var r of
|
|
4053
|
-
|
|
4059
|
+
return fi;
|
|
4060
|
+
}
|
|
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) => {
|
|
4063
|
+
for (var r in t || (t = {}))
|
|
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]);
|
|
4054
4068
|
return e;
|
|
4055
|
-
},
|
|
4056
|
-
let
|
|
4069
|
+
}, vi = (e, t) => di(e, mi(t));
|
|
4070
|
+
let ze;
|
|
4057
4071
|
const me = ve(null);
|
|
4058
|
-
function
|
|
4072
|
+
function vt(e) {
|
|
4059
4073
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4060
4074
|
}
|
|
4061
|
-
function
|
|
4062
|
-
const r =
|
|
4063
|
-
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;
|
|
4064
4078
|
}
|
|
4065
4079
|
function R() {
|
|
4066
|
-
return
|
|
4080
|
+
return ze ?? void 0;
|
|
4067
4081
|
}
|
|
4068
4082
|
me.subscribe((e) => {
|
|
4069
|
-
|
|
4083
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4070
4084
|
});
|
|
4071
|
-
const
|
|
4072
|
-
if (e &&
|
|
4085
|
+
const _i = (e) => {
|
|
4086
|
+
if (e && si(e) && We(e)) {
|
|
4073
4087
|
const { loadingDelay: t } = z();
|
|
4074
4088
|
let r;
|
|
4075
4089
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4076
|
-
() =>
|
|
4090
|
+
() => Ie.set(!0),
|
|
4077
4091
|
t
|
|
4078
|
-
) :
|
|
4092
|
+
) : Ie.set(!0), ir(e).then(() => {
|
|
4079
4093
|
me.set(e);
|
|
4080
4094
|
}).finally(() => {
|
|
4081
|
-
clearTimeout(r),
|
|
4095
|
+
clearTimeout(r), Ie.set(!1);
|
|
4082
4096
|
});
|
|
4083
4097
|
}
|
|
4084
4098
|
return me.set(e);
|
|
4085
|
-
}, q =
|
|
4086
|
-
set:
|
|
4087
|
-
}),
|
|
4099
|
+
}, q = vi(yi({}, me), {
|
|
4100
|
+
set: _i
|
|
4101
|
+
}), xe = (e) => {
|
|
4088
4102
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4089
4103
|
return (n) => {
|
|
4090
4104
|
const i = JSON.stringify(n);
|
|
4091
4105
|
return i in t ? t[i] : t[i] = e(n);
|
|
4092
4106
|
};
|
|
4093
4107
|
};
|
|
4094
|
-
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) => {
|
|
4095
4109
|
for (var r in t || (t = {}))
|
|
4096
|
-
|
|
4110
|
+
or.call(t, r) && _t(e, r, t[r]);
|
|
4097
4111
|
if (be)
|
|
4098
4112
|
for (var r of be(t))
|
|
4099
|
-
|
|
4113
|
+
sr.call(t, r) && _t(e, r, t[r]);
|
|
4100
4114
|
return e;
|
|
4101
4115
|
}, J = (e, t) => {
|
|
4102
4116
|
var r = {};
|
|
4103
4117
|
for (var n in e)
|
|
4104
|
-
|
|
4118
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4105
4119
|
if (e != null && be)
|
|
4106
4120
|
for (var n of be(e))
|
|
4107
|
-
t.indexOf(n) < 0 &&
|
|
4121
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4108
4122
|
return r;
|
|
4109
4123
|
};
|
|
4110
4124
|
const ne = (e, t) => {
|
|
@@ -4112,21 +4126,21 @@ const ne = (e, t) => {
|
|
|
4112
4126
|
if (e in r && t in r[e])
|
|
4113
4127
|
return r[e][t];
|
|
4114
4128
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4115
|
-
},
|
|
4129
|
+
}, xi = xe(
|
|
4116
4130
|
(e) => {
|
|
4117
4131
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4118
4132
|
if (r == null)
|
|
4119
4133
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4120
4134
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4121
4135
|
}
|
|
4122
|
-
),
|
|
4136
|
+
), Si = xe(
|
|
4123
4137
|
(e) => {
|
|
4124
4138
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4125
4139
|
if (r == null)
|
|
4126
4140
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4127
4141
|
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4128
4142
|
}
|
|
4129
|
-
),
|
|
4143
|
+
), Ti = xe(
|
|
4130
4144
|
(e) => {
|
|
4131
4145
|
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
4132
4146
|
if (r == null)
|
|
@@ -4135,33 +4149,33 @@ const ne = (e, t) => {
|
|
|
4135
4149
|
);
|
|
4136
4150
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4137
4151
|
}
|
|
4138
|
-
),
|
|
4152
|
+
), Hi = (e = {}) => {
|
|
4139
4153
|
var t = e, {
|
|
4140
4154
|
locale: r = R()
|
|
4141
4155
|
} = t, n = J(t, [
|
|
4142
4156
|
"locale"
|
|
4143
4157
|
]);
|
|
4144
|
-
return
|
|
4145
|
-
},
|
|
4158
|
+
return xi(Ye({ locale: r }, n));
|
|
4159
|
+
}, Bi = (e = {}) => {
|
|
4146
4160
|
var t = e, {
|
|
4147
4161
|
locale: r = R()
|
|
4148
4162
|
} = t, n = J(t, [
|
|
4149
4163
|
"locale"
|
|
4150
4164
|
]);
|
|
4151
|
-
return
|
|
4152
|
-
},
|
|
4165
|
+
return Si(Ye({ locale: r }, n));
|
|
4166
|
+
}, wi = (e = {}) => {
|
|
4153
4167
|
var t = e, {
|
|
4154
4168
|
locale: r = R()
|
|
4155
4169
|
} = t, n = J(t, [
|
|
4156
4170
|
"locale"
|
|
4157
4171
|
]);
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4172
|
+
return Ti(Ye({ locale: r }, n));
|
|
4173
|
+
}, Ai = xe(
|
|
4160
4174
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4161
|
-
(e, t = R()) => new
|
|
4175
|
+
(e, t = R()) => new ti(e, t, z().formats, {
|
|
4162
4176
|
ignoreTag: z().ignoreTag
|
|
4163
4177
|
})
|
|
4164
|
-
),
|
|
4178
|
+
), Pi = (e, t = {}) => {
|
|
4165
4179
|
var r, n, i, o;
|
|
4166
4180
|
let s = t;
|
|
4167
4181
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4174,7 +4188,7 @@ const ne = (e, t) => {
|
|
|
4174
4188
|
throw new Error(
|
|
4175
4189
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4176
4190
|
);
|
|
4177
|
-
let l =
|
|
4191
|
+
let l = er(e, h);
|
|
4178
4192
|
if (!l)
|
|
4179
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;
|
|
4180
4194
|
else if (typeof l != "string")
|
|
@@ -4183,30 +4197,30 @@ const ne = (e, t) => {
|
|
|
4183
4197
|
), l;
|
|
4184
4198
|
if (!a)
|
|
4185
4199
|
return l;
|
|
4186
|
-
let
|
|
4200
|
+
let f = l;
|
|
4187
4201
|
try {
|
|
4188
|
-
|
|
4189
|
-
} catch (
|
|
4190
|
-
|
|
4202
|
+
f = Ai(l, h).format(a);
|
|
4203
|
+
} catch (c) {
|
|
4204
|
+
c instanceof Error && console.warn(
|
|
4191
4205
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4192
|
-
|
|
4206
|
+
c.message
|
|
4193
4207
|
);
|
|
4194
4208
|
}
|
|
4195
|
-
return
|
|
4196
|
-
},
|
|
4197
|
-
Q([q], () => Ai);
|
|
4198
|
-
Q([q], () => Pi);
|
|
4209
|
+
return f;
|
|
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);
|
|
4199
4211
|
Q([q], () => Oi);
|
|
4200
|
-
Q([q
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
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) {
|
|
4204
4218
|
if (e) {
|
|
4205
4219
|
const r = document.createElement("style");
|
|
4206
4220
|
r.innerHTML = t, e.appendChild(r);
|
|
4207
4221
|
}
|
|
4208
4222
|
}
|
|
4209
|
-
function
|
|
4223
|
+
function $i(e, t) {
|
|
4210
4224
|
const r = new URL(t);
|
|
4211
4225
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4212
4226
|
const i = document.createElement("style");
|
|
@@ -4215,7 +4229,7 @@ function Mi(e, t) {
|
|
|
4215
4229
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4216
4230
|
});
|
|
4217
4231
|
}
|
|
4218
|
-
function
|
|
4232
|
+
function Ri(e, t, r) {
|
|
4219
4233
|
if (window.emMessageBus) {
|
|
4220
4234
|
const n = document.createElement("style");
|
|
4221
4235
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4223,7 +4237,7 @@ function Ci(e, t, r) {
|
|
|
4223
4237
|
});
|
|
4224
4238
|
}
|
|
4225
4239
|
}
|
|
4226
|
-
const
|
|
4240
|
+
const Ui = (e, t = {}) => {
|
|
4227
4241
|
const r = new CustomEvent("track-custom-event", {
|
|
4228
4242
|
detail: {
|
|
4229
4243
|
type: e,
|
|
@@ -4234,13 +4248,13 @@ const $i = (e, t = {}) => {
|
|
|
4234
4248
|
});
|
|
4235
4249
|
document.dispatchEvent(r);
|
|
4236
4250
|
};
|
|
4237
|
-
function
|
|
4238
|
-
|
|
4251
|
+
function xt(e, t) {
|
|
4252
|
+
rr(e, t);
|
|
4239
4253
|
}
|
|
4240
|
-
function
|
|
4254
|
+
function Di(e) {
|
|
4241
4255
|
q.set(e);
|
|
4242
4256
|
}
|
|
4243
|
-
const
|
|
4257
|
+
const St = {
|
|
4244
4258
|
en: {
|
|
4245
4259
|
logoutButton: "Logout"
|
|
4246
4260
|
},
|
|
@@ -4275,10 +4289,10 @@ const xt = {
|
|
|
4275
4289
|
logoutButton: "Logout"
|
|
4276
4290
|
}
|
|
4277
4291
|
};
|
|
4278
|
-
function
|
|
4279
|
-
|
|
4292
|
+
function Gi(e) {
|
|
4293
|
+
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))}");
|
|
4280
4294
|
}
|
|
4281
|
-
function
|
|
4295
|
+
function Fi(e) {
|
|
4282
4296
|
let t, r, n, i = (
|
|
4283
4297
|
/*$_*/
|
|
4284
4298
|
e[2]("logoutButton") + ""
|
|
@@ -4288,7 +4302,7 @@ function Di(e) {
|
|
|
4288
4302
|
t = P("div"), r = P("button"), n = P("span"), o = ge(i), S(t, "class", "GeneralLogout");
|
|
4289
4303
|
},
|
|
4290
4304
|
m(h, u) {
|
|
4291
|
-
oe(h, t, u), T(t, r), T(r, n), T(n, o), s || (a =
|
|
4305
|
+
oe(h, t, u), T(t, r), T(r, n), T(n, o), s || (a = wt(
|
|
4292
4306
|
r,
|
|
4293
4307
|
"click",
|
|
4294
4308
|
/*click_handler_1*/
|
|
@@ -4298,19 +4312,19 @@ function Di(e) {
|
|
|
4298
4312
|
p(h, u) {
|
|
4299
4313
|
u & /*$_*/
|
|
4300
4314
|
4 && i !== (i = /*$_*/
|
|
4301
|
-
h[2]("logoutButton") + "") &&
|
|
4315
|
+
h[2]("logoutButton") + "") && At(o, i);
|
|
4302
4316
|
},
|
|
4303
4317
|
d(h) {
|
|
4304
4318
|
h && Z(t), s = !1, a();
|
|
4305
4319
|
}
|
|
4306
4320
|
};
|
|
4307
4321
|
}
|
|
4308
|
-
function
|
|
4309
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4310
|
-
e[3] &&
|
|
4322
|
+
function ji(e) {
|
|
4323
|
+
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4324
|
+
e[3] && ki(e);
|
|
4311
4325
|
return {
|
|
4312
4326
|
c() {
|
|
4313
|
-
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 =
|
|
4327
|
+
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*/
|
|
4314
4328
|
e[3] ? (
|
|
4315
4329
|
/*mediaQuery*/
|
|
4316
4330
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4319,24 +4333,24 @@ function Gi(e) {
|
|
|
4319
4333
|
(e[4].matches && /*isMobile*/
|
|
4320
4334
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4321
4335
|
},
|
|
4322
|
-
m(
|
|
4323
|
-
oe(
|
|
4336
|
+
m(p, d) {
|
|
4337
|
+
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(
|
|
4324
4338
|
t,
|
|
4325
4339
|
"click",
|
|
4326
4340
|
/*click_handler*/
|
|
4327
4341
|
e[13]
|
|
4328
4342
|
), l = !0);
|
|
4329
4343
|
},
|
|
4330
|
-
p(
|
|
4344
|
+
p(p, d) {
|
|
4331
4345
|
/*isMobile*/
|
|
4332
|
-
|
|
4346
|
+
p[3] || c.p(p, d);
|
|
4333
4347
|
},
|
|
4334
|
-
d(
|
|
4335
|
-
|
|
4348
|
+
d(p) {
|
|
4349
|
+
p && Z(t), c && c.d(), l = !1, f();
|
|
4336
4350
|
}
|
|
4337
4351
|
};
|
|
4338
4352
|
}
|
|
4339
|
-
function
|
|
4353
|
+
function ki(e) {
|
|
4340
4354
|
let t, r = (
|
|
4341
4355
|
/*$_*/
|
|
4342
4356
|
e[2]("logoutButton") + ""
|
|
@@ -4351,19 +4365,19 @@ function Fi(e) {
|
|
|
4351
4365
|
p(i, o) {
|
|
4352
4366
|
o & /*$_*/
|
|
4353
4367
|
4 && r !== (r = /*$_*/
|
|
4354
|
-
i[2]("logoutButton") + "") &&
|
|
4368
|
+
i[2]("logoutButton") + "") && At(n, r);
|
|
4355
4369
|
},
|
|
4356
4370
|
d(i) {
|
|
4357
4371
|
i && Z(t);
|
|
4358
4372
|
}
|
|
4359
4373
|
};
|
|
4360
4374
|
}
|
|
4361
|
-
function
|
|
4375
|
+
function Vi(e) {
|
|
4362
4376
|
let t;
|
|
4363
4377
|
function r(o, s) {
|
|
4364
4378
|
return (
|
|
4365
4379
|
/*buttonlocation*/
|
|
4366
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4380
|
+
o[0] === "PlayerAccountMenu" ? ji : Fi
|
|
4367
4381
|
);
|
|
4368
4382
|
}
|
|
4369
4383
|
let n = r(e), i = n(e);
|
|
@@ -4384,78 +4398,78 @@ function ji(e) {
|
|
|
4384
4398
|
}
|
|
4385
4399
|
};
|
|
4386
4400
|
}
|
|
4387
|
-
function
|
|
4401
|
+
function Xi(e, t, r) {
|
|
4388
4402
|
let n;
|
|
4389
|
-
|
|
4390
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4403
|
+
lr(e, Mi, (y) => r(2, n = y));
|
|
4404
|
+
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";
|
|
4391
4405
|
const C = window.matchMedia("(min-width: 768px)"), L = () => {
|
|
4392
|
-
fetch(
|
|
4406
|
+
fetch(f).then((N) => N.json()).then((N) => {
|
|
4393
4407
|
Object.keys(N).forEach((Se) => {
|
|
4394
|
-
|
|
4408
|
+
xt(Se, N[Se]);
|
|
4395
4409
|
});
|
|
4396
4410
|
}).catch((N) => {
|
|
4397
4411
|
console.log(N);
|
|
4398
4412
|
});
|
|
4399
4413
|
};
|
|
4400
|
-
Object.keys(
|
|
4401
|
-
|
|
4414
|
+
Object.keys(St).forEach((y) => {
|
|
4415
|
+
xt(y, St[y]);
|
|
4402
4416
|
});
|
|
4403
|
-
const
|
|
4417
|
+
const x = () => {
|
|
4404
4418
|
let y = new Headers();
|
|
4405
4419
|
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4406
4420
|
let N = { method: "DELETE", headers: y };
|
|
4407
4421
|
fetch(`${i}/v1/player/session/player`, N).then((Se) => {
|
|
4408
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4422
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Ui("logged_out", {});
|
|
4409
4423
|
});
|
|
4410
|
-
}, $ = () => (i || (
|
|
4411
|
-
|
|
4424
|
+
}, $ = () => (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 = () => {
|
|
4425
|
+
Di(a);
|
|
4412
4426
|
};
|
|
4413
|
-
|
|
4427
|
+
vr(() => () => {
|
|
4414
4428
|
});
|
|
4415
|
-
const U = () =>
|
|
4416
|
-
function
|
|
4417
|
-
|
|
4418
|
-
|
|
4429
|
+
const U = () => x(), ae = () => x();
|
|
4430
|
+
function ur(y) {
|
|
4431
|
+
Le[y ? "unshift" : "push"](() => {
|
|
4432
|
+
d = y, r(1, d);
|
|
4419
4433
|
});
|
|
4420
4434
|
}
|
|
4421
4435
|
return e.$$set = (y) => {
|
|
4422
|
-
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12,
|
|
4436
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, f = y.translationurl);
|
|
4423
4437
|
}, e.$$.update = () => {
|
|
4424
4438
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4425
4439
|
193 && i && o && s && $(), e.$$.dirty & /*lang*/
|
|
4426
4440
|
256 && a && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4427
|
-
1026 && u &&
|
|
4428
|
-
1026 && u &&
|
|
4429
|
-
2050 && l &&
|
|
4430
|
-
514 && h &&
|
|
4431
|
-
4096 &&
|
|
4441
|
+
1026 && u && d && Et(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4442
|
+
1026 && u && d && Et(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4443
|
+
2050 && l && d && $i(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4444
|
+
514 && h && d && Ri(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4445
|
+
4096 && f && L();
|
|
4432
4446
|
}, [
|
|
4433
4447
|
s,
|
|
4434
|
-
|
|
4448
|
+
d,
|
|
4435
4449
|
n,
|
|
4436
4450
|
H,
|
|
4437
4451
|
C,
|
|
4438
|
-
|
|
4452
|
+
x,
|
|
4439
4453
|
i,
|
|
4440
4454
|
o,
|
|
4441
4455
|
a,
|
|
4442
4456
|
h,
|
|
4443
4457
|
u,
|
|
4444
4458
|
l,
|
|
4445
|
-
|
|
4459
|
+
f,
|
|
4446
4460
|
U,
|
|
4447
4461
|
ae,
|
|
4448
|
-
|
|
4462
|
+
ur
|
|
4449
4463
|
];
|
|
4450
4464
|
}
|
|
4451
|
-
class
|
|
4465
|
+
class ar extends Ir {
|
|
4452
4466
|
constructor(t) {
|
|
4453
|
-
super(),
|
|
4467
|
+
super(), Pr(
|
|
4454
4468
|
this,
|
|
4455
4469
|
t,
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4470
|
+
Xi,
|
|
4471
|
+
Vi,
|
|
4472
|
+
Ht,
|
|
4459
4473
|
{
|
|
4460
4474
|
endpoint: 6,
|
|
4461
4475
|
session: 7,
|
|
@@ -4466,7 +4480,7 @@ class ir extends Ar {
|
|
|
4466
4480
|
clientstylingurl: 11,
|
|
4467
4481
|
translationurl: 12
|
|
4468
4482
|
},
|
|
4469
|
-
|
|
4483
|
+
Gi
|
|
4470
4484
|
);
|
|
4471
4485
|
}
|
|
4472
4486
|
get endpoint() {
|
|
@@ -4518,43 +4532,43 @@ class ir extends Ar {
|
|
|
4518
4532
|
this.$$set({ translationurl: t }), w();
|
|
4519
4533
|
}
|
|
4520
4534
|
}
|
|
4521
|
-
|
|
4522
|
-
const
|
|
4535
|
+
Or(ar, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4536
|
+
const qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4523
4537
|
__proto__: null,
|
|
4524
|
-
default:
|
|
4538
|
+
default: ar
|
|
4525
4539
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4526
4540
|
export {
|
|
4527
4541
|
q as $,
|
|
4528
|
-
|
|
4542
|
+
wt as A,
|
|
4529
4543
|
ie as B,
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4544
|
+
Wi as C,
|
|
4545
|
+
Mi as D,
|
|
4546
|
+
qi as G,
|
|
4547
|
+
Ir as S,
|
|
4548
|
+
rr as a,
|
|
4549
|
+
cr as b,
|
|
4550
|
+
Or as c,
|
|
4537
4551
|
oe as d,
|
|
4538
4552
|
P as e,
|
|
4539
4553
|
w as f,
|
|
4540
4554
|
Z as g,
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4555
|
+
lr as h,
|
|
4556
|
+
Pr as i,
|
|
4557
|
+
Ci as j,
|
|
4558
|
+
$i as k,
|
|
4559
|
+
Ri as l,
|
|
4560
|
+
Le as m,
|
|
4547
4561
|
B as n,
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4562
|
+
vr as o,
|
|
4563
|
+
Et as p,
|
|
4564
|
+
Qi as q,
|
|
4565
|
+
dr as r,
|
|
4566
|
+
Ht as s,
|
|
4553
4567
|
ge as t,
|
|
4554
4568
|
S as u,
|
|
4555
4569
|
T as v,
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4570
|
+
At as w,
|
|
4571
|
+
zi as x,
|
|
4572
|
+
Zi as y,
|
|
4559
4573
|
Y as z
|
|
4560
4574
|
};
|