@everymatrix/player-account-menu-nd 1.91.0 → 1.91.1
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-Dg0Yk4HI.cjs → GeneralLogout-BBMu0O3e.cjs} +1 -1
- package/components/{GeneralLogout-xpXCqQAu.js → GeneralLogout-BgJ7R5S6.js} +1 -1
- package/components/{GeneralLogout-DxLlU179.js → GeneralLogout-CRrnphLg.js} +1 -1
- package/components/{PlayerAccountMenuNd-B7kyC-Tl.js → PlayerAccountMenuNd-BVSaC3o4.js} +944 -923
- package/components/{PlayerAccountMenuNd-CiKxAaPa.cjs → PlayerAccountMenuNd-C1VjCPrV.cjs} +4 -4
- package/components/{PlayerAccountMenuNd-qFildxiL.js → PlayerAccountMenuNd-DQA5Wu1L.js} +910 -889
- 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
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import "../stencil/ui-skeleton-W50o8tfg.js";
|
|
2
2
|
function N() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Wt(e) {
|
|
5
5
|
return e();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function dt() {
|
|
8
8
|
return /* @__PURE__ */ Object.create(null);
|
|
9
9
|
}
|
|
10
10
|
function re(e) {
|
|
11
|
-
e.forEach(
|
|
11
|
+
e.forEach(Wt);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function st(e) {
|
|
14
14
|
return typeof e == "function";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Xt(e, t) {
|
|
17
17
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
18
18
|
}
|
|
19
19
|
let pe;
|
|
20
|
-
function
|
|
20
|
+
function bt(e, t) {
|
|
21
21
|
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Rr(e) {
|
|
24
24
|
return Object.keys(e).length === 0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function zt(e, ...t) {
|
|
27
27
|
if (e == null) {
|
|
28
28
|
for (const n of t)
|
|
29
29
|
n(void 0);
|
|
@@ -32,20 +32,20 @@ function Wt(e, ...t) {
|
|
|
32
32
|
const r = e.subscribe(...t);
|
|
33
33
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
e.$$.on_destroy.push(
|
|
35
|
+
function Fr(e, t, r) {
|
|
36
|
+
e.$$.on_destroy.push(zt(t, r));
|
|
37
37
|
}
|
|
38
38
|
function y(e, t) {
|
|
39
39
|
e.appendChild(t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
const n =
|
|
41
|
+
function Ur(e, t, r) {
|
|
42
|
+
const n = $r(e);
|
|
43
43
|
if (!n.getElementById(t)) {
|
|
44
|
-
const i =
|
|
45
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
const i = S("style");
|
|
45
|
+
i.id = t, i.textContent = r, Dr(n, i);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function $r(e) {
|
|
49
49
|
if (!e)
|
|
50
50
|
return document;
|
|
51
51
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -55,7 +55,7 @@ function Fr(e) {
|
|
|
55
55
|
t
|
|
56
56
|
) : e.ownerDocument;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Dr(e, t) {
|
|
59
59
|
return y(
|
|
60
60
|
/** @type {Document} */
|
|
61
61
|
e.head || e,
|
|
@@ -68,11 +68,11 @@ function F(e, t, r) {
|
|
|
68
68
|
function R(e) {
|
|
69
69
|
e.parentNode && e.parentNode.removeChild(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Zt(e, t) {
|
|
72
72
|
for (let r = 0; r < e.length; r += 1)
|
|
73
73
|
e[r] && e[r].d(t);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function S(e) {
|
|
76
76
|
return document.createElement(e);
|
|
77
77
|
}
|
|
78
78
|
function W(e) {
|
|
@@ -81,30 +81,30 @@ function W(e) {
|
|
|
81
81
|
function J(e) {
|
|
82
82
|
return document.createTextNode(e);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function L() {
|
|
85
85
|
return J(" ");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ge(e, t, r, n) {
|
|
88
88
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function E(e, t, r) {
|
|
91
91
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function A(e, t, r) {
|
|
94
94
|
const n = t.toLowerCase();
|
|
95
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
95
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : E(e, t, r);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Gr(e) {
|
|
98
98
|
return Array.from(e.childNodes);
|
|
99
99
|
}
|
|
100
100
|
function _e(e, t) {
|
|
101
101
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
102
102
|
t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function So(e, t, r, n) {
|
|
105
105
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function kr(e) {
|
|
108
108
|
const t = {};
|
|
109
109
|
return e.childNodes.forEach(
|
|
110
110
|
/** @param {Element} node */
|
|
@@ -117,27 +117,27 @@ let ue;
|
|
|
117
117
|
function ae(e) {
|
|
118
118
|
ue = e;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function jr() {
|
|
121
121
|
if (!ue)
|
|
122
122
|
throw new Error("Function called outside component initialization");
|
|
123
123
|
return ue;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function Vr(e) {
|
|
126
|
+
jr().$$.on_mount.push(e);
|
|
127
127
|
}
|
|
128
|
-
const Z = [],
|
|
128
|
+
const Z = [], ke = [];
|
|
129
129
|
let q = [];
|
|
130
|
-
const
|
|
131
|
-
let
|
|
132
|
-
function
|
|
133
|
-
|
|
130
|
+
const gt = [], Wr = /* @__PURE__ */ Promise.resolve();
|
|
131
|
+
let je = !1;
|
|
132
|
+
function Xr() {
|
|
133
|
+
je || (je = !0, Wr.then(I));
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ve(e) {
|
|
136
136
|
q.push(e);
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
139
139
|
let X = 0;
|
|
140
|
-
function
|
|
140
|
+
function I() {
|
|
141
141
|
if (X !== 0)
|
|
142
142
|
return;
|
|
143
143
|
const e = ue;
|
|
@@ -145,56 +145,56 @@ function B() {
|
|
|
145
145
|
try {
|
|
146
146
|
for (; X < Z.length; ) {
|
|
147
147
|
const t = Z[X];
|
|
148
|
-
X++, ae(t),
|
|
148
|
+
X++, ae(t), zr(t.$$);
|
|
149
149
|
}
|
|
150
150
|
} catch (t) {
|
|
151
151
|
throw Z.length = 0, X = 0, t;
|
|
152
152
|
}
|
|
153
|
-
for (ae(null), Z.length = 0, X = 0;
|
|
154
|
-
|
|
153
|
+
for (ae(null), Z.length = 0, X = 0; ke.length; )
|
|
154
|
+
ke.pop()();
|
|
155
155
|
for (let t = 0; t < q.length; t += 1) {
|
|
156
156
|
const r = q[t];
|
|
157
|
-
|
|
157
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
158
158
|
}
|
|
159
159
|
q.length = 0;
|
|
160
160
|
} while (Z.length);
|
|
161
|
-
for (;
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
for (; gt.length; )
|
|
162
|
+
gt.pop()();
|
|
163
|
+
je = !1, Ce.clear(), ae(e);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function zr(e) {
|
|
166
166
|
if (e.fragment !== null) {
|
|
167
167
|
e.update(), re(e.before_update);
|
|
168
168
|
const t = e.dirty;
|
|
169
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
169
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Zr(e) {
|
|
173
173
|
const t = [], r = [];
|
|
174
174
|
q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
|
|
175
175
|
}
|
|
176
|
-
const
|
|
177
|
-
function
|
|
178
|
-
e && e.i && (
|
|
176
|
+
const Qr = /* @__PURE__ */ new Set();
|
|
177
|
+
function qr(e, t) {
|
|
178
|
+
e && e.i && (Qr.delete(e), e.i(t));
|
|
179
179
|
}
|
|
180
180
|
function xe(e) {
|
|
181
181
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Jr(e, t, r) {
|
|
184
184
|
const { fragment: n, after_update: i } = e.$$;
|
|
185
|
-
n && n.m(t, r),
|
|
186
|
-
const o = e.$$.on_mount.map(
|
|
185
|
+
n && n.m(t, r), Ve(() => {
|
|
186
|
+
const o = e.$$.on_mount.map(Wt).filter(st);
|
|
187
187
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
188
|
-
}), i.forEach(
|
|
188
|
+
}), i.forEach(Ve);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Yr(e, t) {
|
|
191
191
|
const r = e.$$;
|
|
192
|
-
r.fragment !== null && (
|
|
192
|
+
r.fragment !== null && (Zr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
e.$$.dirty[0] === -1 && (Z.push(e),
|
|
194
|
+
function Kr(e, t) {
|
|
195
|
+
e.$$.dirty[0] === -1 && (Z.push(e), Xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function en(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
198
198
|
const l = ue;
|
|
199
199
|
ae(e);
|
|
200
200
|
const u = e.$$ = {
|
|
@@ -204,7 +204,7 @@ function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
204
204
|
props: o,
|
|
205
205
|
update: N,
|
|
206
206
|
not_equal: i,
|
|
207
|
-
bound:
|
|
207
|
+
bound: dt(),
|
|
208
208
|
// lifecycle
|
|
209
209
|
on_mount: [],
|
|
210
210
|
on_destroy: [],
|
|
@@ -213,28 +213,28 @@ function Yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
213
213
|
after_update: [],
|
|
214
214
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
215
215
|
// everything else
|
|
216
|
-
callbacks:
|
|
216
|
+
callbacks: dt(),
|
|
217
217
|
dirty: a,
|
|
218
218
|
skip_bound: !1,
|
|
219
219
|
root: t.target || l.$$.root
|
|
220
220
|
};
|
|
221
221
|
s && s(u.root);
|
|
222
222
|
let c = !1;
|
|
223
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
224
|
-
const m =
|
|
225
|
-
return u.ctx && i(u.ctx[
|
|
223
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, h, ...d) => {
|
|
224
|
+
const m = d.length ? d[0] : h;
|
|
225
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && Kr(e, f)), h;
|
|
226
226
|
}) : [], u.update(), c = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
227
227
|
if (t.hydrate) {
|
|
228
|
-
const
|
|
229
|
-
u.fragment && u.fragment.l(
|
|
228
|
+
const f = Gr(t.target);
|
|
229
|
+
u.fragment && u.fragment.l(f), f.forEach(R);
|
|
230
230
|
} else
|
|
231
231
|
u.fragment && u.fragment.c();
|
|
232
|
-
t.intro &&
|
|
232
|
+
t.intro && qr(e.$$.fragment), Jr(e, t.target, t.anchor), I();
|
|
233
233
|
}
|
|
234
234
|
ae(l);
|
|
235
235
|
}
|
|
236
|
-
let
|
|
237
|
-
typeof HTMLElement == "function" && (
|
|
236
|
+
let Qt;
|
|
237
|
+
typeof HTMLElement == "function" && (Qt = class extends HTMLElement {
|
|
238
238
|
/** The Svelte component constructor */
|
|
239
239
|
$$ctor;
|
|
240
240
|
/** Slots */
|
|
@@ -276,7 +276,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
276
276
|
let o;
|
|
277
277
|
return {
|
|
278
278
|
c: function() {
|
|
279
|
-
o =
|
|
279
|
+
o = S("slot"), i !== "default" && E(o, "name", i);
|
|
280
280
|
},
|
|
281
281
|
/**
|
|
282
282
|
* @param {HTMLElement} target
|
|
@@ -293,7 +293,7 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
293
293
|
};
|
|
294
294
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
295
295
|
return;
|
|
296
|
-
const t = {}, r =
|
|
296
|
+
const t = {}, r = kr(this);
|
|
297
297
|
for (const i of this.$$s)
|
|
298
298
|
i in r && (t[i] = [e(i)]);
|
|
299
299
|
for (const i of this.attributes) {
|
|
@@ -380,8 +380,8 @@ function be(e, t, r, n) {
|
|
|
380
380
|
return t;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
let s = class extends
|
|
383
|
+
function tn(e, t, r, n, i, o) {
|
|
384
|
+
let s = class extends Qt {
|
|
385
385
|
constructor() {
|
|
386
386
|
super(e, r, i), this.$$p_d = t;
|
|
387
387
|
}
|
|
@@ -409,7 +409,7 @@ function Kr(e, t, r, n, i, o) {
|
|
|
409
409
|
}), e.element = /** @type {any} */
|
|
410
410
|
s, s;
|
|
411
411
|
}
|
|
412
|
-
class
|
|
412
|
+
class rn {
|
|
413
413
|
/**
|
|
414
414
|
* ### PRIVATE API
|
|
415
415
|
*
|
|
@@ -428,7 +428,7 @@ class en {
|
|
|
428
428
|
$$set = void 0;
|
|
429
429
|
/** @returns {void} */
|
|
430
430
|
$destroy() {
|
|
431
|
-
|
|
431
|
+
Yr(this, 1), this.$destroy = N;
|
|
432
432
|
}
|
|
433
433
|
/**
|
|
434
434
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -437,7 +437,7 @@ class en {
|
|
|
437
437
|
* @returns {() => void}
|
|
438
438
|
*/
|
|
439
439
|
$on(t, r) {
|
|
440
|
-
if (!
|
|
440
|
+
if (!st(r))
|
|
441
441
|
return N;
|
|
442
442
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
443
443
|
return n.push(r), () => {
|
|
@@ -450,11 +450,11 @@ class en {
|
|
|
450
450
|
* @returns {void}
|
|
451
451
|
*/
|
|
452
452
|
$set(t) {
|
|
453
|
-
this.$$set && !
|
|
453
|
+
this.$$set && !Rr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
const
|
|
457
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
456
|
+
const nn = "4";
|
|
457
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(nn);
|
|
458
458
|
/*! *****************************************************************************
|
|
459
459
|
Copyright (c) Microsoft Corporation.
|
|
460
460
|
|
|
@@ -469,24 +469,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
469
469
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
470
470
|
PERFORMANCE OF THIS SOFTWARE.
|
|
471
471
|
***************************************************************************** */
|
|
472
|
-
var
|
|
473
|
-
return
|
|
472
|
+
var We = function(e, t) {
|
|
473
|
+
return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
474
474
|
r.__proto__ = n;
|
|
475
475
|
} || function(r, n) {
|
|
476
476
|
for (var i in n)
|
|
477
477
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
478
|
-
},
|
|
478
|
+
}, We(e, t);
|
|
479
479
|
};
|
|
480
480
|
function he(e, t) {
|
|
481
481
|
if (typeof t != "function" && t !== null)
|
|
482
482
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
483
|
-
|
|
483
|
+
We(e, t);
|
|
484
484
|
function r() {
|
|
485
485
|
this.constructor = e;
|
|
486
486
|
}
|
|
487
487
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Xe(e) {
|
|
490
490
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
491
491
|
if (r)
|
|
492
492
|
return r.call(e);
|
|
@@ -498,7 +498,7 @@ function Ve(e) {
|
|
|
498
498
|
};
|
|
499
499
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function ze(e, t) {
|
|
502
502
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
503
503
|
if (!r)
|
|
504
504
|
return e;
|
|
@@ -518,22 +518,22 @@ function We(e, t) {
|
|
|
518
518
|
}
|
|
519
519
|
return o;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Ze(e, t, r) {
|
|
522
522
|
if (arguments.length === 2)
|
|
523
523
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
524
524
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
525
525
|
return e.concat(o || t);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function G(e) {
|
|
528
528
|
return typeof e == "function";
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function qt(e) {
|
|
531
531
|
var t = function(n) {
|
|
532
532
|
Error.call(n), n.stack = new Error().stack;
|
|
533
533
|
}, r = e(t);
|
|
534
534
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
535
535
|
}
|
|
536
|
-
var
|
|
536
|
+
var Le = qt(function(e) {
|
|
537
537
|
return function(r) {
|
|
538
538
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
539
539
|
` + r.map(function(n, i) {
|
|
@@ -542,7 +542,7 @@ var Oe = Zt(function(e) {
|
|
|
542
542
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
543
543
|
};
|
|
544
544
|
});
|
|
545
|
-
function
|
|
545
|
+
function Qe(e, t) {
|
|
546
546
|
if (e) {
|
|
547
547
|
var r = e.indexOf(t);
|
|
548
548
|
0 <= r && e.splice(r, 1);
|
|
@@ -560,7 +560,7 @@ var Pe = function() {
|
|
|
560
560
|
if (s)
|
|
561
561
|
if (this._parentage = null, Array.isArray(s))
|
|
562
562
|
try {
|
|
563
|
-
for (var a =
|
|
563
|
+
for (var a = Xe(s), l = a.next(); !l.done; l = a.next()) {
|
|
564
564
|
var u = l.value;
|
|
565
565
|
u.remove(this);
|
|
566
566
|
}
|
|
@@ -577,29 +577,29 @@ var Pe = function() {
|
|
|
577
577
|
else
|
|
578
578
|
s.remove(this);
|
|
579
579
|
var c = this.initialTeardown;
|
|
580
|
-
if (
|
|
580
|
+
if (G(c))
|
|
581
581
|
try {
|
|
582
582
|
c();
|
|
583
583
|
} catch (b) {
|
|
584
|
-
o = b instanceof
|
|
584
|
+
o = b instanceof Le ? b.errors : [b];
|
|
585
585
|
}
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
586
|
+
var f = this._finalizers;
|
|
587
|
+
if (f) {
|
|
588
588
|
this._finalizers = null;
|
|
589
589
|
try {
|
|
590
|
-
for (var
|
|
591
|
-
var m =
|
|
590
|
+
for (var h = Xe(f), d = h.next(); !d.done; d = h.next()) {
|
|
591
|
+
var m = d.value;
|
|
592
592
|
try {
|
|
593
|
-
|
|
593
|
+
yt(m);
|
|
594
594
|
} catch (b) {
|
|
595
|
-
o = o ?? [], b instanceof
|
|
595
|
+
o = o ?? [], b instanceof Le ? o = Ze(Ze([], ze(o)), ze(b.errors)) : o.push(b);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
} catch (b) {
|
|
599
599
|
n = { error: b };
|
|
600
600
|
} finally {
|
|
601
601
|
try {
|
|
602
|
-
|
|
602
|
+
d && !d.done && (i = h.return) && i.call(h);
|
|
603
603
|
} finally {
|
|
604
604
|
if (n)
|
|
605
605
|
throw n.error;
|
|
@@ -607,13 +607,13 @@ var Pe = function() {
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
if (o)
|
|
610
|
-
throw new
|
|
610
|
+
throw new Le(o);
|
|
611
611
|
}
|
|
612
612
|
}, e.prototype.add = function(t) {
|
|
613
613
|
var r;
|
|
614
614
|
if (t && t !== this)
|
|
615
615
|
if (this.closed)
|
|
616
|
-
|
|
616
|
+
yt(t);
|
|
617
617
|
else {
|
|
618
618
|
if (t instanceof e) {
|
|
619
619
|
if (t.closed || t._hasParent(this))
|
|
@@ -630,52 +630,52 @@ var Pe = function() {
|
|
|
630
630
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
631
631
|
}, e.prototype._removeParent = function(t) {
|
|
632
632
|
var r = this._parentage;
|
|
633
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
633
|
+
r === t ? this._parentage = null : Array.isArray(r) && Qe(r, t);
|
|
634
634
|
}, e.prototype.remove = function(t) {
|
|
635
635
|
var r = this._finalizers;
|
|
636
|
-
r &&
|
|
636
|
+
r && Qe(r, t), t instanceof e && t._removeParent(this);
|
|
637
637
|
}, e.EMPTY = function() {
|
|
638
638
|
var t = new e();
|
|
639
639
|
return t.closed = !0, t;
|
|
640
640
|
}(), e;
|
|
641
|
-
}(),
|
|
642
|
-
function
|
|
643
|
-
return e instanceof Pe || e && "closed" in e &&
|
|
641
|
+
}(), Jt = Pe.EMPTY;
|
|
642
|
+
function Yt(e) {
|
|
643
|
+
return e instanceof Pe || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
|
|
645
|
+
function yt(e) {
|
|
646
|
+
G(e) ? e() : e.unsubscribe();
|
|
647
647
|
}
|
|
648
|
-
var
|
|
648
|
+
var on = {
|
|
649
649
|
Promise: void 0
|
|
650
|
-
},
|
|
650
|
+
}, sn = {
|
|
651
651
|
setTimeout: function(e, t) {
|
|
652
652
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
653
653
|
r[n - 2] = arguments[n];
|
|
654
|
-
return setTimeout.apply(void 0,
|
|
654
|
+
return setTimeout.apply(void 0, Ze([e, t], ze(r)));
|
|
655
655
|
},
|
|
656
656
|
clearTimeout: function(e) {
|
|
657
657
|
return clearTimeout(e);
|
|
658
658
|
},
|
|
659
659
|
delegate: void 0
|
|
660
660
|
};
|
|
661
|
-
function
|
|
662
|
-
|
|
661
|
+
function an(e) {
|
|
662
|
+
sn.setTimeout(function() {
|
|
663
663
|
throw e;
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function vt() {
|
|
667
667
|
}
|
|
668
668
|
function ge(e) {
|
|
669
669
|
e();
|
|
670
670
|
}
|
|
671
|
-
var
|
|
671
|
+
var Kt = function(e) {
|
|
672
672
|
he(t, e);
|
|
673
673
|
function t(r) {
|
|
674
674
|
var n = e.call(this) || this;
|
|
675
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
675
|
+
return n.isStopped = !1, r ? (n.destination = r, Yt(r) && r.add(n)) : n.destination = cn, n;
|
|
676
676
|
}
|
|
677
677
|
return t.create = function(r, n, i) {
|
|
678
|
-
return new
|
|
678
|
+
return new qe(r, n, i);
|
|
679
679
|
}, t.prototype.next = function(r) {
|
|
680
680
|
this.isStopped || this._next(r);
|
|
681
681
|
}, t.prototype.error = function(r) {
|
|
@@ -699,7 +699,7 @@ var Jt = function(e) {
|
|
|
699
699
|
this.unsubscribe();
|
|
700
700
|
}
|
|
701
701
|
}, t;
|
|
702
|
-
}(Pe),
|
|
702
|
+
}(Pe), un = function() {
|
|
703
703
|
function e(t) {
|
|
704
704
|
this.partialObserver = t;
|
|
705
705
|
}
|
|
@@ -730,43 +730,43 @@ var Jt = function(e) {
|
|
|
730
730
|
me(r);
|
|
731
731
|
}
|
|
732
732
|
}, e;
|
|
733
|
-
}(),
|
|
733
|
+
}(), qe = function(e) {
|
|
734
734
|
he(t, e);
|
|
735
735
|
function t(r, n, i) {
|
|
736
736
|
var o = e.call(this) || this, s;
|
|
737
|
-
return
|
|
737
|
+
return G(r) || !r ? s = {
|
|
738
738
|
next: r ?? void 0,
|
|
739
739
|
error: n ?? void 0,
|
|
740
740
|
complete: i ?? void 0
|
|
741
|
-
} : s = r, o.destination = new
|
|
741
|
+
} : s = r, o.destination = new un(s), o;
|
|
742
742
|
}
|
|
743
743
|
return t;
|
|
744
|
-
}(
|
|
744
|
+
}(Kt);
|
|
745
745
|
function me(e) {
|
|
746
|
-
|
|
746
|
+
an(e);
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function ln(e) {
|
|
749
749
|
throw e;
|
|
750
750
|
}
|
|
751
|
-
var
|
|
751
|
+
var cn = {
|
|
752
752
|
closed: !0,
|
|
753
|
-
next:
|
|
754
|
-
error:
|
|
755
|
-
complete:
|
|
756
|
-
},
|
|
753
|
+
next: vt,
|
|
754
|
+
error: ln,
|
|
755
|
+
complete: vt
|
|
756
|
+
}, hn = function() {
|
|
757
757
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
758
758
|
}();
|
|
759
|
-
function
|
|
759
|
+
function fn(e) {
|
|
760
760
|
return e;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
return e.length === 0 ?
|
|
762
|
+
function pn(e) {
|
|
763
|
+
return e.length === 0 ? fn : e.length === 1 ? e[0] : function(r) {
|
|
764
764
|
return e.reduce(function(n, i) {
|
|
765
765
|
return i(n);
|
|
766
766
|
}, r);
|
|
767
767
|
};
|
|
768
768
|
}
|
|
769
|
-
var
|
|
769
|
+
var _t = function() {
|
|
770
770
|
function e(t) {
|
|
771
771
|
t && (this._subscribe = t);
|
|
772
772
|
}
|
|
@@ -774,7 +774,7 @@ var yt = function() {
|
|
|
774
774
|
var r = new e();
|
|
775
775
|
return r.source = this, r.operator = t, r;
|
|
776
776
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
777
|
-
var i = this, o =
|
|
777
|
+
var i = this, o = dn(t) ? t : new qe(t, r, n);
|
|
778
778
|
return ge(function() {
|
|
779
779
|
var s = i, a = s.operator, l = s.source;
|
|
780
780
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -787,8 +787,8 @@ var yt = function() {
|
|
|
787
787
|
}
|
|
788
788
|
}, e.prototype.forEach = function(t, r) {
|
|
789
789
|
var n = this;
|
|
790
|
-
return r =
|
|
791
|
-
var s = new
|
|
790
|
+
return r = xt(r), new r(function(i, o) {
|
|
791
|
+
var s = new qe({
|
|
792
792
|
next: function(a) {
|
|
793
793
|
try {
|
|
794
794
|
t(a);
|
|
@@ -804,15 +804,15 @@ var yt = function() {
|
|
|
804
804
|
}, e.prototype._subscribe = function(t) {
|
|
805
805
|
var r;
|
|
806
806
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
807
|
-
}, e.prototype[
|
|
807
|
+
}, e.prototype[hn] = function() {
|
|
808
808
|
return this;
|
|
809
809
|
}, e.prototype.pipe = function() {
|
|
810
810
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
811
811
|
t[r] = arguments[r];
|
|
812
|
-
return
|
|
812
|
+
return pn(t)(this);
|
|
813
813
|
}, e.prototype.toPromise = function(t) {
|
|
814
814
|
var r = this;
|
|
815
|
-
return t =
|
|
815
|
+
return t = xt(t), new t(function(n, i) {
|
|
816
816
|
var o;
|
|
817
817
|
r.subscribe(function(s) {
|
|
818
818
|
return o = s;
|
|
@@ -826,32 +826,32 @@ var yt = function() {
|
|
|
826
826
|
return new e(t);
|
|
827
827
|
}, e;
|
|
828
828
|
}();
|
|
829
|
-
function
|
|
829
|
+
function xt(e) {
|
|
830
830
|
var t;
|
|
831
|
-
return (t = e ??
|
|
831
|
+
return (t = e ?? on.Promise) !== null && t !== void 0 ? t : Promise;
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
return e &&
|
|
833
|
+
function mn(e) {
|
|
834
|
+
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
return e && e instanceof
|
|
836
|
+
function dn(e) {
|
|
837
|
+
return e && e instanceof Kt || mn(e) && Yt(e);
|
|
838
838
|
}
|
|
839
|
-
var
|
|
839
|
+
var bn = qt(function(e) {
|
|
840
840
|
return function() {
|
|
841
841
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
842
842
|
};
|
|
843
|
-
}),
|
|
843
|
+
}), er = function(e) {
|
|
844
844
|
he(t, e);
|
|
845
845
|
function t() {
|
|
846
846
|
var r = e.call(this) || this;
|
|
847
847
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
848
848
|
}
|
|
849
849
|
return t.prototype.lift = function(r) {
|
|
850
|
-
var n = new
|
|
850
|
+
var n = new Et(this, this);
|
|
851
851
|
return n.operator = r, n;
|
|
852
852
|
}, t.prototype._throwIfClosed = function() {
|
|
853
853
|
if (this.closed)
|
|
854
|
-
throw new
|
|
854
|
+
throw new bn();
|
|
855
855
|
}, t.prototype.next = function(r) {
|
|
856
856
|
var n = this;
|
|
857
857
|
ge(function() {
|
|
@@ -859,7 +859,7 @@ var mn = Zt(function(e) {
|
|
|
859
859
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
860
860
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
861
861
|
try {
|
|
862
|
-
for (var s =
|
|
862
|
+
for (var s = Xe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
863
863
|
var l = a.value;
|
|
864
864
|
l.next(r);
|
|
865
865
|
}
|
|
@@ -908,19 +908,19 @@ var mn = Zt(function(e) {
|
|
|
908
908
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
909
909
|
}, t.prototype._innerSubscribe = function(r) {
|
|
910
910
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
911
|
-
return o || s ?
|
|
912
|
-
n.currentObservers = null,
|
|
911
|
+
return o || s ? Jt : (this.currentObservers = null, a.push(r), new Pe(function() {
|
|
912
|
+
n.currentObservers = null, Qe(a, r);
|
|
913
913
|
}));
|
|
914
914
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
915
915
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
916
916
|
i ? r.error(o) : s && r.complete();
|
|
917
917
|
}, t.prototype.asObservable = function() {
|
|
918
|
-
var r = new
|
|
918
|
+
var r = new _t();
|
|
919
919
|
return r.source = this, r;
|
|
920
920
|
}, t.create = function(r, n) {
|
|
921
|
-
return new
|
|
921
|
+
return new Et(r, n);
|
|
922
922
|
}, t;
|
|
923
|
-
}(
|
|
923
|
+
}(_t), Et = function(e) {
|
|
924
924
|
he(t, e);
|
|
925
925
|
function t(r, n) {
|
|
926
926
|
var i = e.call(this) || this;
|
|
@@ -937,17 +937,17 @@ var mn = Zt(function(e) {
|
|
|
937
937
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
938
938
|
}, t.prototype._subscribe = function(r) {
|
|
939
939
|
var n, i;
|
|
940
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
940
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Jt;
|
|
941
941
|
}, t;
|
|
942
|
-
}(
|
|
942
|
+
}(er), tr = {
|
|
943
943
|
now: function() {
|
|
944
|
-
return (
|
|
944
|
+
return (tr.delegate || Date).now();
|
|
945
945
|
},
|
|
946
946
|
delegate: void 0
|
|
947
|
-
},
|
|
947
|
+
}, gn = function(e) {
|
|
948
948
|
he(t, e);
|
|
949
949
|
function t(r, n, i) {
|
|
950
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
950
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = tr);
|
|
951
951
|
var o = e.call(this) || this;
|
|
952
952
|
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;
|
|
953
953
|
}
|
|
@@ -967,15 +967,15 @@ var mn = Zt(function(e) {
|
|
|
967
967
|
u && o.splice(0, u + 1);
|
|
968
968
|
}
|
|
969
969
|
}, t;
|
|
970
|
-
}(
|
|
971
|
-
const
|
|
972
|
-
if (
|
|
973
|
-
const r = new
|
|
974
|
-
|
|
970
|
+
}(er);
|
|
971
|
+
const wt = [], At = {}, yn = (e, t = 0) => {
|
|
972
|
+
if (wt.indexOf(e) == -1) {
|
|
973
|
+
const r = new gn(t);
|
|
974
|
+
At[e] = r, wt.push(e);
|
|
975
975
|
}
|
|
976
|
-
return
|
|
976
|
+
return At[e];
|
|
977
977
|
}, z = [];
|
|
978
|
-
function
|
|
978
|
+
function vn(e, t) {
|
|
979
979
|
return {
|
|
980
980
|
subscribe: Se(e, t).subscribe
|
|
981
981
|
};
|
|
@@ -984,7 +984,7 @@ function Se(e, t = N) {
|
|
|
984
984
|
let r;
|
|
985
985
|
const n = /* @__PURE__ */ new Set();
|
|
986
986
|
function i(a) {
|
|
987
|
-
if (
|
|
987
|
+
if (Xt(e, a) && (e = a, r)) {
|
|
988
988
|
const l = !z.length;
|
|
989
989
|
for (const u of n)
|
|
990
990
|
u[1](), z.push(u, e);
|
|
@@ -1011,96 +1011,96 @@ function ne(e, t, r) {
|
|
|
1011
1011
|
if (!i.every(Boolean))
|
|
1012
1012
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1013
1013
|
const o = t.length < 2;
|
|
1014
|
-
return
|
|
1014
|
+
return vn(r, (s, a) => {
|
|
1015
1015
|
let l = !1;
|
|
1016
1016
|
const u = [];
|
|
1017
|
-
let c = 0,
|
|
1018
|
-
const
|
|
1017
|
+
let c = 0, f = N;
|
|
1018
|
+
const h = () => {
|
|
1019
1019
|
if (c)
|
|
1020
1020
|
return;
|
|
1021
|
-
|
|
1021
|
+
f();
|
|
1022
1022
|
const m = t(n ? u[0] : u, s, a);
|
|
1023
|
-
o ? s(m) :
|
|
1024
|
-
},
|
|
1025
|
-
(m, b) =>
|
|
1023
|
+
o ? s(m) : f = st(m) ? m : N;
|
|
1024
|
+
}, d = i.map(
|
|
1025
|
+
(m, b) => zt(
|
|
1026
1026
|
m,
|
|
1027
1027
|
(g) => {
|
|
1028
|
-
u[b] = g, c &= ~(1 << b), l &&
|
|
1028
|
+
u[b] = g, c &= ~(1 << b), l && h();
|
|
1029
1029
|
},
|
|
1030
1030
|
() => {
|
|
1031
1031
|
c |= 1 << b;
|
|
1032
1032
|
}
|
|
1033
1033
|
)
|
|
1034
1034
|
);
|
|
1035
|
-
return l = !0,
|
|
1036
|
-
re(
|
|
1035
|
+
return l = !0, h(), function() {
|
|
1036
|
+
re(d), f(), l = !1;
|
|
1037
1037
|
};
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function _n(e) {
|
|
1041
1041
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1042
1042
|
}
|
|
1043
|
-
var
|
|
1044
|
-
return
|
|
1043
|
+
var xn = function(t) {
|
|
1044
|
+
return En(t) && !wn(t);
|
|
1045
1045
|
};
|
|
1046
|
-
function
|
|
1046
|
+
function En(e) {
|
|
1047
1047
|
return !!e && typeof e == "object";
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function wn(e) {
|
|
1050
1050
|
var t = Object.prototype.toString.call(e);
|
|
1051
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1051
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
|
1052
1052
|
}
|
|
1053
|
-
var
|
|
1054
|
-
function
|
|
1055
|
-
return e.$$typeof ===
|
|
1053
|
+
var An = typeof Symbol == "function" && Symbol.for, Pn = An ? Symbol.for("react.element") : 60103;
|
|
1054
|
+
function Sn(e) {
|
|
1055
|
+
return e.$$typeof === Pn;
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function Hn(e) {
|
|
1058
1058
|
return Array.isArray(e) ? [] : {};
|
|
1059
1059
|
}
|
|
1060
1060
|
function le(e, t) {
|
|
1061
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Y(
|
|
1061
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Y(Hn(e), e, t) : e;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function Tn(e, t, r) {
|
|
1064
1064
|
return e.concat(t).map(function(n) {
|
|
1065
1065
|
return le(n, r);
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Mn(e, t) {
|
|
1069
1069
|
if (!t.customMerge)
|
|
1070
1070
|
return Y;
|
|
1071
1071
|
var r = t.customMerge(e);
|
|
1072
1072
|
return typeof r == "function" ? r : Y;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function Bn(e) {
|
|
1075
1075
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1076
1076
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1077
1077
|
}) : [];
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1080
|
-
return Object.keys(e).concat(
|
|
1079
|
+
function Pt(e) {
|
|
1080
|
+
return Object.keys(e).concat(Bn(e));
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function rr(e, t) {
|
|
1083
1083
|
try {
|
|
1084
1084
|
return t in e;
|
|
1085
1085
|
} catch {
|
|
1086
1086
|
return !1;
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1090
|
-
return
|
|
1089
|
+
function In(e, t) {
|
|
1090
|
+
return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function On(e, t, r) {
|
|
1093
1093
|
var n = {};
|
|
1094
|
-
return r.isMergeableObject(e) &&
|
|
1094
|
+
return r.isMergeableObject(e) && Pt(e).forEach(function(i) {
|
|
1095
1095
|
n[i] = le(e[i], r);
|
|
1096
|
-
}),
|
|
1097
|
-
|
|
1096
|
+
}), Pt(t).forEach(function(i) {
|
|
1097
|
+
In(e, i) || (rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Mn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
|
1098
1098
|
}), n;
|
|
1099
1099
|
}
|
|
1100
1100
|
function Y(e, t, r) {
|
|
1101
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1101
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tn, r.isMergeableObject = r.isMergeableObject || xn, r.cloneUnlessOtherwiseSpecified = le;
|
|
1102
1102
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1103
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1103
|
+
return o ? n ? r.arrayMerge(e, t, r) : On(e, t, r) : le(t, r);
|
|
1104
1104
|
}
|
|
1105
1105
|
Y.all = function(t, r) {
|
|
1106
1106
|
if (!Array.isArray(t))
|
|
@@ -1109,20 +1109,20 @@ Y.all = function(t, r) {
|
|
|
1109
1109
|
return Y(n, i, r);
|
|
1110
1110
|
}, {});
|
|
1111
1111
|
};
|
|
1112
|
-
var
|
|
1113
|
-
const
|
|
1114
|
-
var
|
|
1115
|
-
return
|
|
1112
|
+
var Cn = Y, Ln = Cn;
|
|
1113
|
+
const Nn = /* @__PURE__ */ _n(Ln);
|
|
1114
|
+
var Je = function(e, t) {
|
|
1115
|
+
return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1116
1116
|
r.__proto__ = n;
|
|
1117
1117
|
} || function(r, n) {
|
|
1118
1118
|
for (var i in n)
|
|
1119
1119
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1120
|
-
},
|
|
1120
|
+
}, Je(e, t);
|
|
1121
1121
|
};
|
|
1122
1122
|
function He(e, t) {
|
|
1123
1123
|
if (typeof t != "function" && t !== null)
|
|
1124
1124
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1125
|
-
|
|
1125
|
+
Je(e, t);
|
|
1126
1126
|
function r() {
|
|
1127
1127
|
this.constructor = e;
|
|
1128
1128
|
}
|
|
@@ -1138,7 +1138,7 @@ var $ = function() {
|
|
|
1138
1138
|
return t;
|
|
1139
1139
|
}, $.apply(this, arguments);
|
|
1140
1140
|
};
|
|
1141
|
-
function
|
|
1141
|
+
function Rn(e, t) {
|
|
1142
1142
|
var r = {};
|
|
1143
1143
|
for (var n in e)
|
|
1144
1144
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1147,43 +1147,43 @@ function Ln(e, t) {
|
|
|
1147
1147
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1148
1148
|
return r;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function Ne(e, t, r) {
|
|
1151
1151
|
if (r || arguments.length === 2)
|
|
1152
1152
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1153
1153
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1154
1154
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1157
|
-
var r = t && t.cache ? t.cache :
|
|
1156
|
+
function Re(e, t) {
|
|
1157
|
+
var r = t && t.cache ? t.cache : jn, n = t && t.serializer ? t.serializer : Gn, i = t && t.strategy ? t.strategy : $n;
|
|
1158
1158
|
return i(e, {
|
|
1159
1159
|
cache: r,
|
|
1160
1160
|
serializer: n
|
|
1161
1161
|
});
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function Fn(e) {
|
|
1164
1164
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1167
|
-
var i =
|
|
1166
|
+
function Un(e, t, r, n) {
|
|
1167
|
+
var i = Fn(n) ? n : r(n), o = t.get(i);
|
|
1168
1168
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function nr(e, t, r) {
|
|
1171
1171
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1172
1172
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function ir(e, t, r, n, i) {
|
|
1175
1175
|
return r.bind(t, e, n, i);
|
|
1176
1176
|
}
|
|
1177
|
-
function Fn(e, t) {
|
|
1178
|
-
var r = e.length === 1 ? Rn : tr;
|
|
1179
|
-
return rr(e, this, r, t.cache.create(), t.serializer);
|
|
1180
|
-
}
|
|
1181
1177
|
function $n(e, t) {
|
|
1182
|
-
|
|
1178
|
+
var r = e.length === 1 ? Un : nr;
|
|
1179
|
+
return ir(e, this, r, t.cache.create(), t.serializer);
|
|
1183
1180
|
}
|
|
1184
|
-
|
|
1181
|
+
function Dn(e, t) {
|
|
1182
|
+
return ir(e, this, nr, t.cache.create(), t.serializer);
|
|
1183
|
+
}
|
|
1184
|
+
var Gn = function() {
|
|
1185
1185
|
return JSON.stringify(arguments);
|
|
1186
|
-
},
|
|
1186
|
+
}, kn = (
|
|
1187
1187
|
/** @class */
|
|
1188
1188
|
function() {
|
|
1189
1189
|
function e() {
|
|
@@ -1195,12 +1195,12 @@ var Un = function() {
|
|
|
1195
1195
|
this.cache[t] = r;
|
|
1196
1196
|
}, e;
|
|
1197
1197
|
}()
|
|
1198
|
-
),
|
|
1198
|
+
), jn = {
|
|
1199
1199
|
create: function() {
|
|
1200
|
-
return new
|
|
1200
|
+
return new kn();
|
|
1201
1201
|
}
|
|
1202
|
-
},
|
|
1203
|
-
variadic:
|
|
1202
|
+
}, Fe = {
|
|
1203
|
+
variadic: Dn
|
|
1204
1204
|
}, Ee = function() {
|
|
1205
1205
|
return Ee = Object.assign || function(t) {
|
|
1206
1206
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -1211,55 +1211,55 @@ var Un = function() {
|
|
|
1211
1211
|
return t;
|
|
1212
1212
|
}, Ee.apply(this, arguments);
|
|
1213
1213
|
};
|
|
1214
|
-
var
|
|
1214
|
+
var x;
|
|
1215
1215
|
(function(e) {
|
|
1216
1216
|
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";
|
|
1217
|
-
})(
|
|
1218
|
-
var
|
|
1217
|
+
})(x || (x = {}));
|
|
1218
|
+
var H;
|
|
1219
1219
|
(function(e) {
|
|
1220
1220
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1221
|
-
})(
|
|
1221
|
+
})(H || (H = {}));
|
|
1222
1222
|
var K;
|
|
1223
1223
|
(function(e) {
|
|
1224
1224
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1225
1225
|
})(K || (K = {}));
|
|
1226
|
-
function
|
|
1227
|
-
return e.type ===
|
|
1228
|
-
}
|
|
1229
|
-
function kn(e) {
|
|
1230
|
-
return e.type === S.argument;
|
|
1231
|
-
}
|
|
1232
|
-
function nr(e) {
|
|
1233
|
-
return e.type === S.number;
|
|
1226
|
+
function St(e) {
|
|
1227
|
+
return e.type === H.literal;
|
|
1234
1228
|
}
|
|
1235
|
-
function
|
|
1236
|
-
return e.type ===
|
|
1229
|
+
function Vn(e) {
|
|
1230
|
+
return e.type === H.argument;
|
|
1237
1231
|
}
|
|
1238
1232
|
function or(e) {
|
|
1239
|
-
return e.type ===
|
|
1233
|
+
return e.type === H.number;
|
|
1240
1234
|
}
|
|
1241
1235
|
function sr(e) {
|
|
1242
|
-
return e.type ===
|
|
1236
|
+
return e.type === H.date;
|
|
1243
1237
|
}
|
|
1244
1238
|
function ar(e) {
|
|
1245
|
-
return e.type ===
|
|
1246
|
-
}
|
|
1247
|
-
function jn(e) {
|
|
1248
|
-
return e.type === S.pound;
|
|
1239
|
+
return e.type === H.time;
|
|
1249
1240
|
}
|
|
1250
1241
|
function ur(e) {
|
|
1251
|
-
return e.type ===
|
|
1242
|
+
return e.type === H.select;
|
|
1252
1243
|
}
|
|
1253
1244
|
function lr(e) {
|
|
1245
|
+
return e.type === H.plural;
|
|
1246
|
+
}
|
|
1247
|
+
function Wn(e) {
|
|
1248
|
+
return e.type === H.pound;
|
|
1249
|
+
}
|
|
1250
|
+
function cr(e) {
|
|
1251
|
+
return e.type === H.tag;
|
|
1252
|
+
}
|
|
1253
|
+
function hr(e) {
|
|
1254
1254
|
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Ye(e) {
|
|
1257
1257
|
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1258
1258
|
}
|
|
1259
|
-
var
|
|
1260
|
-
function
|
|
1259
|
+
var fr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xn = /(?:[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;
|
|
1260
|
+
function zn(e) {
|
|
1261
1261
|
var t = {};
|
|
1262
|
-
return e.replace(
|
|
1262
|
+
return e.replace(Xn, function(r) {
|
|
1263
1263
|
var n = r.length;
|
|
1264
1264
|
switch (r[0]) {
|
|
1265
1265
|
case "G":
|
|
@@ -1358,36 +1358,36 @@ var T = function() {
|
|
|
1358
1358
|
return t;
|
|
1359
1359
|
}, T.apply(this, arguments);
|
|
1360
1360
|
};
|
|
1361
|
-
var
|
|
1362
|
-
function
|
|
1361
|
+
var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1362
|
+
function Qn(e) {
|
|
1363
1363
|
if (e.length === 0)
|
|
1364
1364
|
throw new Error("Number skeleton cannot be empty");
|
|
1365
|
-
for (var t = e.split(
|
|
1366
|
-
return
|
|
1365
|
+
for (var t = e.split(Zn).filter(function(h) {
|
|
1366
|
+
return h.length > 0;
|
|
1367
1367
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1368
1368
|
var o = i[n], s = o.split("/");
|
|
1369
1369
|
if (s.length === 0)
|
|
1370
1370
|
throw new Error("Invalid number skeleton");
|
|
1371
1371
|
for (var a = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
|
|
1372
|
-
var
|
|
1373
|
-
if (
|
|
1372
|
+
var f = c[u];
|
|
1373
|
+
if (f.length === 0)
|
|
1374
1374
|
throw new Error("Invalid number skeleton");
|
|
1375
1375
|
}
|
|
1376
1376
|
r.push({ stem: a, options: l });
|
|
1377
1377
|
}
|
|
1378
1378
|
return r;
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function qn(e) {
|
|
1381
1381
|
return e.replace(/^(.*?)-/, "");
|
|
1382
1382
|
}
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1383
|
+
var Ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
1384
|
+
function Tt(e) {
|
|
1385
1385
|
var t = {};
|
|
1386
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1386
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(r, n, i) {
|
|
1387
1387
|
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)), "";
|
|
1388
1388
|
}), t;
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function dr(e) {
|
|
1391
1391
|
switch (e) {
|
|
1392
1392
|
case "sign-auto":
|
|
1393
1393
|
return {
|
|
@@ -1427,7 +1427,7 @@ function pr(e) {
|
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Yn(e) {
|
|
1431
1431
|
var t;
|
|
1432
1432
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1433
1433
|
notation: "engineering"
|
|
@@ -1435,17 +1435,17 @@ function qn(e) {
|
|
|
1435
1435
|
notation: "scientific"
|
|
1436
1436
|
}, e = e.slice(1)), t) {
|
|
1437
1437
|
var r = e.slice(0, 2);
|
|
1438
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1438
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
|
|
1439
1439
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1440
1440
|
t.minimumIntegerDigits = e.length;
|
|
1441
1441
|
}
|
|
1442
1442
|
return t;
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1445
|
-
var t = {}, r =
|
|
1444
|
+
function Mt(e) {
|
|
1445
|
+
var t = {}, r = dr(e);
|
|
1446
1446
|
return r || t;
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function Kn(e) {
|
|
1449
1449
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1450
1450
|
var i = n[r];
|
|
1451
1451
|
switch (i.stem) {
|
|
@@ -1469,7 +1469,7 @@ function Jn(e) {
|
|
|
1469
1469
|
continue;
|
|
1470
1470
|
case "measure-unit":
|
|
1471
1471
|
case "unit":
|
|
1472
|
-
t.style = "unit", t.unit =
|
|
1472
|
+
t.style = "unit", t.unit = qn(i.options[0]);
|
|
1473
1473
|
continue;
|
|
1474
1474
|
case "compact-short":
|
|
1475
1475
|
case "K":
|
|
@@ -1481,12 +1481,12 @@ function Jn(e) {
|
|
|
1481
1481
|
continue;
|
|
1482
1482
|
case "scientific":
|
|
1483
1483
|
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1484
|
-
return T(T({}, l),
|
|
1484
|
+
return T(T({}, l), Mt(u));
|
|
1485
1485
|
}, {}));
|
|
1486
1486
|
continue;
|
|
1487
1487
|
case "engineering":
|
|
1488
1488
|
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1489
|
-
return T(T({}, l),
|
|
1489
|
+
return T(T({}, l), Mt(u));
|
|
1490
1490
|
}, {}));
|
|
1491
1491
|
continue;
|
|
1492
1492
|
case "notation-simple":
|
|
@@ -1531,40 +1531,40 @@ function Jn(e) {
|
|
|
1531
1531
|
case "integer-width":
|
|
1532
1532
|
if (i.options.length > 1)
|
|
1533
1533
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1534
|
-
i.options[0].replace(
|
|
1534
|
+
i.options[0].replace(Jn, function(l, u, c, f, h, d) {
|
|
1535
1535
|
if (u)
|
|
1536
1536
|
t.minimumIntegerDigits = c.length;
|
|
1537
1537
|
else {
|
|
1538
|
-
if (
|
|
1538
|
+
if (f && h)
|
|
1539
1539
|
throw new Error("We currently do not support maximum integer digits");
|
|
1540
|
-
if (
|
|
1540
|
+
if (d)
|
|
1541
1541
|
throw new Error("We currently do not support exact integer digits");
|
|
1542
1542
|
}
|
|
1543
1543
|
return "";
|
|
1544
1544
|
});
|
|
1545
1545
|
continue;
|
|
1546
1546
|
}
|
|
1547
|
-
if (
|
|
1547
|
+
if (mr.test(i.stem)) {
|
|
1548
1548
|
t.minimumIntegerDigits = i.stem.length;
|
|
1549
1549
|
continue;
|
|
1550
1550
|
}
|
|
1551
|
-
if (
|
|
1551
|
+
if (Ht.test(i.stem)) {
|
|
1552
1552
|
if (i.options.length > 1)
|
|
1553
1553
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1554
|
-
i.stem.replace(
|
|
1555
|
-
return c === "*" ? t.minimumFractionDigits = u.length :
|
|
1554
|
+
i.stem.replace(Ht, function(l, u, c, f, h, d) {
|
|
1555
|
+
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1556
1556
|
});
|
|
1557
1557
|
var o = i.options[0];
|
|
1558
|
-
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t),
|
|
1558
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), Tt(o)));
|
|
1559
1559
|
continue;
|
|
1560
1560
|
}
|
|
1561
|
-
if (
|
|
1562
|
-
t = T(T({}, t),
|
|
1561
|
+
if (pr.test(i.stem)) {
|
|
1562
|
+
t = T(T({}, t), Tt(i.stem));
|
|
1563
1563
|
continue;
|
|
1564
1564
|
}
|
|
1565
|
-
var s =
|
|
1565
|
+
var s = dr(i.stem);
|
|
1566
1566
|
s && (t = T(T({}, t), s));
|
|
1567
|
-
var a =
|
|
1567
|
+
var a = Yn(i.stem);
|
|
1568
1568
|
a && (t = T(T({}, t), a));
|
|
1569
1569
|
}
|
|
1570
1570
|
return t;
|
|
@@ -2984,13 +2984,13 @@ var de = {
|
|
|
2984
2984
|
"h"
|
|
2985
2985
|
]
|
|
2986
2986
|
};
|
|
2987
|
-
function
|
|
2987
|
+
function ei(e, t) {
|
|
2988
2988
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2989
2989
|
var i = e.charAt(n);
|
|
2990
2990
|
if (i === "j") {
|
|
2991
2991
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2992
2992
|
o++, n++;
|
|
2993
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2993
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ti(t);
|
|
2994
2994
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2995
2995
|
r += l;
|
|
2996
2996
|
for (; s-- > 0; )
|
|
@@ -3000,7 +3000,7 @@ function Yn(e, t) {
|
|
|
3000
3000
|
}
|
|
3001
3001
|
return r;
|
|
3002
3002
|
}
|
|
3003
|
-
function
|
|
3003
|
+
function ti(e) {
|
|
3004
3004
|
var t = e.hourCycle;
|
|
3005
3005
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3006
3006
|
e.hourCycles && // @ts-ignore
|
|
@@ -3022,20 +3022,20 @@ function Kn(e) {
|
|
|
3022
3022
|
var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
|
|
3023
3023
|
return i[0];
|
|
3024
3024
|
}
|
|
3025
|
-
var
|
|
3026
|
-
function
|
|
3025
|
+
var Ue, ri = new RegExp("^".concat(fr.source, "*")), ni = new RegExp("".concat(fr.source, "*$"));
|
|
3026
|
+
function w(e, t) {
|
|
3027
3027
|
return { start: e, end: t };
|
|
3028
3028
|
}
|
|
3029
|
-
var
|
|
3029
|
+
var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, si = !!Object.fromEntries, ai = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, li = !!String.prototype.trimEnd, ci = !!Number.isSafeInteger, hi = ci ? Number.isSafeInteger : function(e) {
|
|
3030
3030
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3031
|
-
},
|
|
3031
|
+
}, Ke = !0;
|
|
3032
3032
|
try {
|
|
3033
|
-
var
|
|
3034
|
-
|
|
3033
|
+
var fi = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3034
|
+
Ke = ((Ue = fi.exec("a")) === null || Ue === void 0 ? void 0 : Ue[0]) === "a";
|
|
3035
3035
|
} catch {
|
|
3036
|
-
|
|
3036
|
+
Ke = !1;
|
|
3037
3037
|
}
|
|
3038
|
-
var
|
|
3038
|
+
var Bt = ii ? (
|
|
3039
3039
|
// Native
|
|
3040
3040
|
function(t, r, n) {
|
|
3041
3041
|
return t.startsWith(r, n);
|
|
@@ -3045,7 +3045,7 @@ var Tt = ri ? (
|
|
|
3045
3045
|
function(t, r, n) {
|
|
3046
3046
|
return t.slice(n, n + r.length) === r;
|
|
3047
3047
|
}
|
|
3048
|
-
),
|
|
3048
|
+
), et = oi ? String.fromCodePoint : (
|
|
3049
3049
|
// IE11
|
|
3050
3050
|
function() {
|
|
3051
3051
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3057,9 +3057,9 @@ var Tt = ri ? (
|
|
|
3057
3057
|
}
|
|
3058
3058
|
return n;
|
|
3059
3059
|
}
|
|
3060
|
-
),
|
|
3060
|
+
), It = (
|
|
3061
3061
|
// native
|
|
3062
|
-
|
|
3062
|
+
si ? Object.fromEntries : (
|
|
3063
3063
|
// Ponyfill
|
|
3064
3064
|
function(t) {
|
|
3065
3065
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3069,7 +3069,7 @@ var Tt = ri ? (
|
|
|
3069
3069
|
return r;
|
|
3070
3070
|
}
|
|
3071
3071
|
)
|
|
3072
|
-
),
|
|
3072
|
+
), br = ai ? (
|
|
3073
3073
|
// Native
|
|
3074
3074
|
function(t, r) {
|
|
3075
3075
|
return t.codePointAt(r);
|
|
@@ -3083,7 +3083,7 @@ var Tt = ri ? (
|
|
|
3083
3083
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
|
-
),
|
|
3086
|
+
), pi = ui ? (
|
|
3087
3087
|
// Native
|
|
3088
3088
|
function(t) {
|
|
3089
3089
|
return t.trimStart();
|
|
@@ -3091,9 +3091,9 @@ var Tt = ri ? (
|
|
|
3091
3091
|
) : (
|
|
3092
3092
|
// Ponyfill
|
|
3093
3093
|
function(t) {
|
|
3094
|
-
return t.replace(
|
|
3094
|
+
return t.replace(ri, "");
|
|
3095
3095
|
}
|
|
3096
|
-
),
|
|
3096
|
+
), mi = li ? (
|
|
3097
3097
|
// Native
|
|
3098
3098
|
function(t) {
|
|
3099
3099
|
return t.trimEnd();
|
|
@@ -3101,32 +3101,32 @@ var Tt = ri ? (
|
|
|
3101
3101
|
) : (
|
|
3102
3102
|
// Ponyfill
|
|
3103
3103
|
function(t) {
|
|
3104
|
-
return t.replace(
|
|
3104
|
+
return t.replace(ni, "");
|
|
3105
3105
|
}
|
|
3106
3106
|
);
|
|
3107
|
-
function
|
|
3107
|
+
function gr(e, t) {
|
|
3108
3108
|
return new RegExp(e, t);
|
|
3109
3109
|
}
|
|
3110
|
-
var
|
|
3111
|
-
if (
|
|
3112
|
-
var
|
|
3113
|
-
|
|
3110
|
+
var tt;
|
|
3111
|
+
if (Ke) {
|
|
3112
|
+
var Ot = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3113
|
+
tt = function(t, r) {
|
|
3114
3114
|
var n;
|
|
3115
|
-
|
|
3116
|
-
var i =
|
|
3115
|
+
Ot.lastIndex = r;
|
|
3116
|
+
var i = Ot.exec(t);
|
|
3117
3117
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3118
3118
|
};
|
|
3119
3119
|
} else
|
|
3120
|
-
|
|
3120
|
+
tt = function(t, r) {
|
|
3121
3121
|
for (var n = []; ; ) {
|
|
3122
|
-
var i =
|
|
3123
|
-
if (i === void 0 ||
|
|
3122
|
+
var i = br(t, r);
|
|
3123
|
+
if (i === void 0 || yr(i) || yi(i))
|
|
3124
3124
|
break;
|
|
3125
3125
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3126
3126
|
}
|
|
3127
|
-
return
|
|
3127
|
+
return et.apply(void 0, n);
|
|
3128
3128
|
};
|
|
3129
|
-
var
|
|
3129
|
+
var di = (
|
|
3130
3130
|
/** @class */
|
|
3131
3131
|
function() {
|
|
3132
3132
|
function e(t, r) {
|
|
@@ -3150,14 +3150,14 @@ var pi = (
|
|
|
3150
3150
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3151
3151
|
var a = this.clonePosition();
|
|
3152
3152
|
this.bump(), i.push({
|
|
3153
|
-
type:
|
|
3154
|
-
location:
|
|
3153
|
+
type: H.pound,
|
|
3154
|
+
location: w(a, this.clonePosition())
|
|
3155
3155
|
});
|
|
3156
3156
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3157
3157
|
if (n)
|
|
3158
3158
|
break;
|
|
3159
|
-
return this.error(
|
|
3160
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3159
|
+
return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
3160
|
+
} else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
|
|
3161
3161
|
var s = this.parseTag(t, r);
|
|
3162
3162
|
if (s.err)
|
|
3163
3163
|
return s;
|
|
@@ -3178,9 +3178,9 @@ var pi = (
|
|
|
3178
3178
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3179
3179
|
return {
|
|
3180
3180
|
val: {
|
|
3181
|
-
type:
|
|
3181
|
+
type: H.literal,
|
|
3182
3182
|
value: "<".concat(i, "/>"),
|
|
3183
|
-
location:
|
|
3183
|
+
location: w(n, this.clonePosition())
|
|
3184
3184
|
},
|
|
3185
3185
|
err: null
|
|
3186
3186
|
};
|
|
@@ -3190,25 +3190,25 @@ var pi = (
|
|
|
3190
3190
|
return o;
|
|
3191
3191
|
var s = o.val, a = this.clonePosition();
|
|
3192
3192
|
if (this.bumpIf("</")) {
|
|
3193
|
-
if (this.isEOF() || !
|
|
3194
|
-
return this.error(
|
|
3193
|
+
if (this.isEOF() || !rt(this.char()))
|
|
3194
|
+
return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
|
|
3195
3195
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3196
|
-
return i !== u ? this.error(
|
|
3196
|
+
return i !== u ? this.error(x.UNMATCHED_CLOSING_TAG, w(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3197
3197
|
val: {
|
|
3198
|
-
type:
|
|
3198
|
+
type: H.tag,
|
|
3199
3199
|
value: i,
|
|
3200
3200
|
children: s,
|
|
3201
|
-
location:
|
|
3201
|
+
location: w(n, this.clonePosition())
|
|
3202
3202
|
},
|
|
3203
3203
|
err: null
|
|
3204
|
-
} : this.error(
|
|
3204
|
+
} : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
|
|
3205
3205
|
} else
|
|
3206
|
-
return this.error(
|
|
3206
|
+
return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
|
|
3207
3207
|
} else
|
|
3208
|
-
return this.error(
|
|
3208
|
+
return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
|
|
3209
3209
|
}, e.prototype.parseTagName = function() {
|
|
3210
3210
|
var t = this.offset();
|
|
3211
|
-
for (this.bump(); !this.isEOF() &&
|
|
3211
|
+
for (this.bump(); !this.isEOF() && gi(this.char()); )
|
|
3212
3212
|
this.bump();
|
|
3213
3213
|
return this.message.slice(t, this.offset());
|
|
3214
3214
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3230,14 +3230,14 @@ var pi = (
|
|
|
3230
3230
|
}
|
|
3231
3231
|
break;
|
|
3232
3232
|
}
|
|
3233
|
-
var l =
|
|
3233
|
+
var l = w(n, this.clonePosition());
|
|
3234
3234
|
return {
|
|
3235
|
-
val: { type:
|
|
3235
|
+
val: { type: H.literal, value: i, location: l },
|
|
3236
3236
|
err: null
|
|
3237
3237
|
};
|
|
3238
3238
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3239
3239
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3240
|
-
!
|
|
3240
|
+
!bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3241
3241
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3242
3242
|
if (this.isEOF() || this.char() !== 39)
|
|
3243
3243
|
return null;
|
|
@@ -3271,49 +3271,49 @@ var pi = (
|
|
|
3271
3271
|
r.push(n);
|
|
3272
3272
|
this.bump();
|
|
3273
3273
|
}
|
|
3274
|
-
return
|
|
3274
|
+
return et.apply(void 0, r);
|
|
3275
3275
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3276
3276
|
if (this.isEOF())
|
|
3277
3277
|
return null;
|
|
3278
3278
|
var n = this.char();
|
|
3279
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3279
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
|
|
3280
3280
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3281
3281
|
var n = this.clonePosition();
|
|
3282
3282
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3283
|
-
return this.error(
|
|
3283
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
3284
3284
|
if (this.char() === 125)
|
|
3285
|
-
return this.bump(), this.error(
|
|
3285
|
+
return this.bump(), this.error(x.EMPTY_ARGUMENT, w(n, this.clonePosition()));
|
|
3286
3286
|
var i = this.parseIdentifierIfPossible().value;
|
|
3287
3287
|
if (!i)
|
|
3288
|
-
return this.error(
|
|
3288
|
+
return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3289
3289
|
if (this.bumpSpace(), this.isEOF())
|
|
3290
|
-
return this.error(
|
|
3290
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
3291
3291
|
switch (this.char()) {
|
|
3292
3292
|
case 125:
|
|
3293
3293
|
return this.bump(), {
|
|
3294
3294
|
val: {
|
|
3295
|
-
type:
|
|
3295
|
+
type: H.argument,
|
|
3296
3296
|
// value does not include the opening and closing braces.
|
|
3297
3297
|
value: i,
|
|
3298
|
-
location:
|
|
3298
|
+
location: w(n, this.clonePosition())
|
|
3299
3299
|
},
|
|
3300
3300
|
err: null
|
|
3301
3301
|
};
|
|
3302
3302
|
case 44:
|
|
3303
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3303
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3304
3304
|
default:
|
|
3305
|
-
return this.error(
|
|
3305
|
+
return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3306
3306
|
}
|
|
3307
3307
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3308
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3308
|
+
var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
|
|
3309
3309
|
this.bumpTo(i);
|
|
3310
|
-
var o = this.clonePosition(), s =
|
|
3310
|
+
var o = this.clonePosition(), s = w(t, o);
|
|
3311
3311
|
return { value: n, location: s };
|
|
3312
3312
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3313
3313
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3314
3314
|
switch (a) {
|
|
3315
3315
|
case "":
|
|
3316
|
-
return this.error(
|
|
3316
|
+
return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, l));
|
|
3317
3317
|
case "number":
|
|
3318
3318
|
case "date":
|
|
3319
3319
|
case "time": {
|
|
@@ -3321,47 +3321,47 @@ var pi = (
|
|
|
3321
3321
|
var u = null;
|
|
3322
3322
|
if (this.bumpIf(",")) {
|
|
3323
3323
|
this.bumpSpace();
|
|
3324
|
-
var c = this.clonePosition(),
|
|
3325
|
-
if (
|
|
3326
|
-
return
|
|
3327
|
-
var
|
|
3328
|
-
if (
|
|
3329
|
-
return this.error(
|
|
3330
|
-
var
|
|
3331
|
-
u = { style:
|
|
3324
|
+
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3325
|
+
if (f.err)
|
|
3326
|
+
return f;
|
|
3327
|
+
var h = mi(f.val);
|
|
3328
|
+
if (h.length === 0)
|
|
3329
|
+
return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
3330
|
+
var d = w(c, this.clonePosition());
|
|
3331
|
+
u = { style: h, styleLocation: d };
|
|
3332
3332
|
}
|
|
3333
3333
|
var m = this.tryParseArgumentClose(i);
|
|
3334
3334
|
if (m.err)
|
|
3335
3335
|
return m;
|
|
3336
|
-
var b =
|
|
3337
|
-
if (u &&
|
|
3338
|
-
var g =
|
|
3336
|
+
var b = w(i, this.clonePosition());
|
|
3337
|
+
if (u && Bt(u?.style, "::", 0)) {
|
|
3338
|
+
var g = pi(u.style.slice(2));
|
|
3339
3339
|
if (a === "number") {
|
|
3340
|
-
var
|
|
3341
|
-
return
|
|
3342
|
-
val: { type:
|
|
3340
|
+
var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
3341
|
+
return f.err ? f : {
|
|
3342
|
+
val: { type: H.number, value: n, location: b, style: f.val },
|
|
3343
3343
|
err: null
|
|
3344
3344
|
};
|
|
3345
3345
|
} else {
|
|
3346
3346
|
if (g.length === 0)
|
|
3347
|
-
return this.error(
|
|
3348
|
-
var
|
|
3349
|
-
this.locale && (
|
|
3350
|
-
var
|
|
3347
|
+
return this.error(x.EXPECT_DATE_TIME_SKELETON, b);
|
|
3348
|
+
var P = g;
|
|
3349
|
+
this.locale && (P = ei(g, this.locale));
|
|
3350
|
+
var h = {
|
|
3351
3351
|
type: K.dateTime,
|
|
3352
|
-
pattern:
|
|
3352
|
+
pattern: P,
|
|
3353
3353
|
location: u.styleLocation,
|
|
3354
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3355
|
-
},
|
|
3354
|
+
parsedOptions: this.shouldParseSkeletons ? zn(P) : {}
|
|
3355
|
+
}, M = a === "date" ? H.date : H.time;
|
|
3356
3356
|
return {
|
|
3357
|
-
val: { type:
|
|
3357
|
+
val: { type: M, value: n, location: b, style: h },
|
|
3358
3358
|
err: null
|
|
3359
3359
|
};
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
3362
|
return {
|
|
3363
3363
|
val: {
|
|
3364
|
-
type: a === "number" ?
|
|
3364
|
+
type: a === "number" ? H.number : a === "date" ? H.date : H.time,
|
|
3365
3365
|
value: n,
|
|
3366
3366
|
location: b,
|
|
3367
3367
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3372,41 +3372,41 @@ var pi = (
|
|
|
3372
3372
|
case "plural":
|
|
3373
3373
|
case "selectordinal":
|
|
3374
3374
|
case "select": {
|
|
3375
|
-
var
|
|
3375
|
+
var v = this.clonePosition();
|
|
3376
3376
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3377
|
-
return this.error(
|
|
3377
|
+
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(v, Ee({}, v)));
|
|
3378
3378
|
this.bumpSpace();
|
|
3379
|
-
var
|
|
3380
|
-
if (a !== "select" &&
|
|
3379
|
+
var B = this.parseIdentifierIfPossible(), _ = 0;
|
|
3380
|
+
if (a !== "select" && B.value === "offset") {
|
|
3381
3381
|
if (!this.bumpIf(":"))
|
|
3382
|
-
return this.error(
|
|
3382
|
+
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
|
3383
3383
|
this.bumpSpace();
|
|
3384
|
-
var
|
|
3385
|
-
if (
|
|
3386
|
-
return
|
|
3387
|
-
this.bumpSpace(),
|
|
3384
|
+
var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3385
|
+
if (f.err)
|
|
3386
|
+
return f;
|
|
3387
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), _ = f.val;
|
|
3388
3388
|
}
|
|
3389
|
-
var
|
|
3390
|
-
if (
|
|
3391
|
-
return
|
|
3389
|
+
var D = this.tryParsePluralOrSelectOptions(t, a, r, B);
|
|
3390
|
+
if (D.err)
|
|
3391
|
+
return D;
|
|
3392
3392
|
var m = this.tryParseArgumentClose(i);
|
|
3393
3393
|
if (m.err)
|
|
3394
3394
|
return m;
|
|
3395
|
-
var V =
|
|
3395
|
+
var V = w(i, this.clonePosition());
|
|
3396
3396
|
return a === "select" ? {
|
|
3397
3397
|
val: {
|
|
3398
|
-
type:
|
|
3398
|
+
type: H.select,
|
|
3399
3399
|
value: n,
|
|
3400
|
-
options:
|
|
3400
|
+
options: It(D.val),
|
|
3401
3401
|
location: V
|
|
3402
3402
|
},
|
|
3403
3403
|
err: null
|
|
3404
3404
|
} : {
|
|
3405
3405
|
val: {
|
|
3406
|
-
type:
|
|
3406
|
+
type: H.plural,
|
|
3407
3407
|
value: n,
|
|
3408
|
-
options:
|
|
3409
|
-
offset:
|
|
3408
|
+
options: It(D.val),
|
|
3409
|
+
offset: _,
|
|
3410
3410
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3411
3411
|
location: V
|
|
3412
3412
|
},
|
|
@@ -3414,10 +3414,10 @@ var pi = (
|
|
|
3414
3414
|
};
|
|
3415
3415
|
}
|
|
3416
3416
|
default:
|
|
3417
|
-
return this.error(
|
|
3417
|
+
return this.error(x.INVALID_ARGUMENT_TYPE, w(s, l));
|
|
3418
3418
|
}
|
|
3419
3419
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3420
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3420
|
+
return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3421
3421
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3422
3422
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3423
3423
|
var n = this.char();
|
|
@@ -3426,7 +3426,7 @@ var pi = (
|
|
|
3426
3426
|
this.bump();
|
|
3427
3427
|
var i = this.clonePosition();
|
|
3428
3428
|
if (!this.bumpUntil("'"))
|
|
3429
|
-
return this.error(
|
|
3429
|
+
return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
|
3430
3430
|
this.bump();
|
|
3431
3431
|
break;
|
|
3432
3432
|
}
|
|
@@ -3456,52 +3456,52 @@ var pi = (
|
|
|
3456
3456
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3457
3457
|
var n = [];
|
|
3458
3458
|
try {
|
|
3459
|
-
n =
|
|
3459
|
+
n = Qn(t);
|
|
3460
3460
|
} catch {
|
|
3461
|
-
return this.error(
|
|
3461
|
+
return this.error(x.INVALID_NUMBER_SKELETON, r);
|
|
3462
3462
|
}
|
|
3463
3463
|
return {
|
|
3464
3464
|
val: {
|
|
3465
3465
|
type: K.number,
|
|
3466
3466
|
tokens: n,
|
|
3467
3467
|
location: r,
|
|
3468
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3468
|
+
parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
|
|
3469
3469
|
},
|
|
3470
3470
|
err: null
|
|
3471
3471
|
};
|
|
3472
3472
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3473
3473
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
|
|
3474
3474
|
if (u.length === 0) {
|
|
3475
|
-
var
|
|
3475
|
+
var f = this.clonePosition();
|
|
3476
3476
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3477
|
-
var
|
|
3478
|
-
if (
|
|
3479
|
-
return
|
|
3480
|
-
c =
|
|
3477
|
+
var h = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3478
|
+
if (h.err)
|
|
3479
|
+
return h;
|
|
3480
|
+
c = w(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3481
3481
|
} else
|
|
3482
3482
|
break;
|
|
3483
3483
|
}
|
|
3484
3484
|
if (l.has(u))
|
|
3485
|
-
return this.error(r === "select" ?
|
|
3485
|
+
return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3486
3486
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3487
|
-
var
|
|
3487
|
+
var d = this.clonePosition();
|
|
3488
3488
|
if (!this.bumpIf("{"))
|
|
3489
|
-
return this.error(r === "select" ?
|
|
3489
|
+
return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
3490
3490
|
var m = this.parseMessage(t + 1, r, n);
|
|
3491
3491
|
if (m.err)
|
|
3492
3492
|
return m;
|
|
3493
|
-
var b = this.tryParseArgumentClose(
|
|
3493
|
+
var b = this.tryParseArgumentClose(d);
|
|
3494
3494
|
if (b.err)
|
|
3495
3495
|
return b;
|
|
3496
3496
|
a.push([
|
|
3497
3497
|
u,
|
|
3498
3498
|
{
|
|
3499
3499
|
value: m.val,
|
|
3500
|
-
location:
|
|
3500
|
+
location: w(d, this.clonePosition())
|
|
3501
3501
|
}
|
|
3502
3502
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3503
3503
|
}
|
|
3504
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3504
|
+
return a.length === 0 ? this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR : x.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(x.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3505
3505
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3506
3506
|
var n = 1, i = this.clonePosition();
|
|
3507
3507
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3512,8 +3512,8 @@ var pi = (
|
|
|
3512
3512
|
else
|
|
3513
3513
|
break;
|
|
3514
3514
|
}
|
|
3515
|
-
var l =
|
|
3516
|
-
return o ? (s *= n,
|
|
3515
|
+
var l = w(i, this.clonePosition());
|
|
3516
|
+
return o ? (s *= n, hi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3517
3517
|
}, e.prototype.offset = function() {
|
|
3518
3518
|
return this.position.offset;
|
|
3519
3519
|
}, e.prototype.isEOF = function() {
|
|
@@ -3528,7 +3528,7 @@ var pi = (
|
|
|
3528
3528
|
var t = this.position.offset;
|
|
3529
3529
|
if (t >= this.message.length)
|
|
3530
3530
|
throw Error("out of bound");
|
|
3531
|
-
var r =
|
|
3531
|
+
var r = br(this.message, t);
|
|
3532
3532
|
if (r === void 0)
|
|
3533
3533
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3534
3534
|
return r;
|
|
@@ -3547,7 +3547,7 @@ var pi = (
|
|
|
3547
3547
|
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);
|
|
3548
3548
|
}
|
|
3549
3549
|
}, e.prototype.bumpIf = function(t) {
|
|
3550
|
-
if (
|
|
3550
|
+
if (Bt(this.message, t, this.offset())) {
|
|
3551
3551
|
for (var r = 0; r < t.length; r++)
|
|
3552
3552
|
this.bump();
|
|
3553
3553
|
return !0;
|
|
@@ -3569,7 +3569,7 @@ var pi = (
|
|
|
3569
3569
|
break;
|
|
3570
3570
|
}
|
|
3571
3571
|
}, e.prototype.bumpSpace = function() {
|
|
3572
|
-
for (; !this.isEOF() &&
|
|
3572
|
+
for (; !this.isEOF() && yr(this.char()); )
|
|
3573
3573
|
this.bump();
|
|
3574
3574
|
}, e.prototype.peek = function() {
|
|
3575
3575
|
if (this.isEOF())
|
|
@@ -3579,38 +3579,38 @@ var pi = (
|
|
|
3579
3579
|
}, e;
|
|
3580
3580
|
}()
|
|
3581
3581
|
);
|
|
3582
|
-
function
|
|
3582
|
+
function rt(e) {
|
|
3583
3583
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3584
3584
|
}
|
|
3585
|
-
function
|
|
3586
|
-
return
|
|
3585
|
+
function bi(e) {
|
|
3586
|
+
return rt(e) || e === 47;
|
|
3587
3587
|
}
|
|
3588
|
-
function
|
|
3588
|
+
function gi(e) {
|
|
3589
3589
|
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;
|
|
3590
3590
|
}
|
|
3591
|
-
function
|
|
3591
|
+
function yr(e) {
|
|
3592
3592
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3593
3593
|
}
|
|
3594
|
-
function
|
|
3594
|
+
function yi(e) {
|
|
3595
3595
|
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;
|
|
3596
3596
|
}
|
|
3597
|
-
function
|
|
3597
|
+
function nt(e) {
|
|
3598
3598
|
e.forEach(function(t) {
|
|
3599
|
-
if (delete t.location,
|
|
3599
|
+
if (delete t.location, ur(t) || lr(t))
|
|
3600
3600
|
for (var r in t.options)
|
|
3601
|
-
delete t.options[r].location,
|
|
3601
|
+
delete t.options[r].location, nt(t.options[r].value);
|
|
3602
3602
|
else
|
|
3603
|
-
|
|
3603
|
+
or(t) && hr(t.style) || (sr(t) || ar(t)) && Ye(t.style) ? delete t.style.location : cr(t) && nt(t.children);
|
|
3604
3604
|
});
|
|
3605
3605
|
}
|
|
3606
|
-
function
|
|
3606
|
+
function vi(e, t) {
|
|
3607
3607
|
t === void 0 && (t = {}), t = Ee({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3608
|
-
var r = new
|
|
3608
|
+
var r = new di(e, t).parse();
|
|
3609
3609
|
if (r.err) {
|
|
3610
|
-
var n = SyntaxError(
|
|
3610
|
+
var n = SyntaxError(x[r.err.kind]);
|
|
3611
3611
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3612
3612
|
}
|
|
3613
|
-
return t?.captureLocation ||
|
|
3613
|
+
return t?.captureLocation || nt(r.val), r.val;
|
|
3614
3614
|
}
|
|
3615
3615
|
var ee;
|
|
3616
3616
|
(function(e) {
|
|
@@ -3628,7 +3628,7 @@ var Te = (
|
|
|
3628
3628
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3629
3629
|
}, t;
|
|
3630
3630
|
}(Error)
|
|
3631
|
-
),
|
|
3631
|
+
), Ct = (
|
|
3632
3632
|
/** @class */
|
|
3633
3633
|
function(e) {
|
|
3634
3634
|
He(t, e);
|
|
@@ -3637,7 +3637,7 @@ var Te = (
|
|
|
3637
3637
|
}
|
|
3638
3638
|
return t;
|
|
3639
3639
|
}(Te)
|
|
3640
|
-
),
|
|
3640
|
+
), _i = (
|
|
3641
3641
|
/** @class */
|
|
3642
3642
|
function(e) {
|
|
3643
3643
|
He(t, e);
|
|
@@ -3646,7 +3646,7 @@ var Te = (
|
|
|
3646
3646
|
}
|
|
3647
3647
|
return t;
|
|
3648
3648
|
}(Te)
|
|
3649
|
-
),
|
|
3649
|
+
), xi = (
|
|
3650
3650
|
/** @class */
|
|
3651
3651
|
function(e) {
|
|
3652
3652
|
He(t, e);
|
|
@@ -3655,128 +3655,128 @@ var Te = (
|
|
|
3655
3655
|
}
|
|
3656
3656
|
return t;
|
|
3657
3657
|
}(Te)
|
|
3658
|
-
),
|
|
3658
|
+
), O;
|
|
3659
3659
|
(function(e) {
|
|
3660
3660
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3661
|
-
})(
|
|
3662
|
-
function
|
|
3661
|
+
})(O || (O = {}));
|
|
3662
|
+
function Ei(e) {
|
|
3663
3663
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3664
3664
|
var n = t[t.length - 1];
|
|
3665
|
-
return !n || n.type !==
|
|
3665
|
+
return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
|
|
3666
3666
|
}, []);
|
|
3667
3667
|
}
|
|
3668
|
-
function
|
|
3668
|
+
function wi(e) {
|
|
3669
3669
|
return typeof e == "function";
|
|
3670
3670
|
}
|
|
3671
3671
|
function ye(e, t, r, n, i, o, s) {
|
|
3672
|
-
if (e.length === 1 &&
|
|
3672
|
+
if (e.length === 1 && St(e[0]))
|
|
3673
3673
|
return [
|
|
3674
3674
|
{
|
|
3675
|
-
type:
|
|
3675
|
+
type: O.literal,
|
|
3676
3676
|
value: e[0].value
|
|
3677
3677
|
}
|
|
3678
3678
|
];
|
|
3679
3679
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3680
3680
|
var c = u[l];
|
|
3681
|
-
if (
|
|
3681
|
+
if (St(c)) {
|
|
3682
3682
|
a.push({
|
|
3683
|
-
type:
|
|
3683
|
+
type: O.literal,
|
|
3684
3684
|
value: c.value
|
|
3685
3685
|
});
|
|
3686
3686
|
continue;
|
|
3687
3687
|
}
|
|
3688
|
-
if (
|
|
3688
|
+
if (Wn(c)) {
|
|
3689
3689
|
typeof o == "number" && a.push({
|
|
3690
|
-
type:
|
|
3690
|
+
type: O.literal,
|
|
3691
3691
|
value: r.getNumberFormat(t).format(o)
|
|
3692
3692
|
});
|
|
3693
3693
|
continue;
|
|
3694
3694
|
}
|
|
3695
|
-
var
|
|
3696
|
-
if (!(i &&
|
|
3697
|
-
throw new
|
|
3698
|
-
var
|
|
3699
|
-
if (
|
|
3700
|
-
(!
|
|
3701
|
-
type: typeof
|
|
3702
|
-
value:
|
|
3695
|
+
var f = c.value;
|
|
3696
|
+
if (!(i && f in i))
|
|
3697
|
+
throw new xi(f, s);
|
|
3698
|
+
var h = i[f];
|
|
3699
|
+
if (Vn(c)) {
|
|
3700
|
+
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3701
|
+
type: typeof h == "string" ? O.literal : O.object,
|
|
3702
|
+
value: h
|
|
3703
3703
|
});
|
|
3704
3704
|
continue;
|
|
3705
3705
|
}
|
|
3706
|
-
if (
|
|
3707
|
-
var
|
|
3706
|
+
if (sr(c)) {
|
|
3707
|
+
var d = typeof c.style == "string" ? n.date[c.style] : Ye(c.style) ? c.style.parsedOptions : void 0;
|
|
3708
3708
|
a.push({
|
|
3709
|
-
type:
|
|
3710
|
-
value: r.getDateTimeFormat(t,
|
|
3709
|
+
type: O.literal,
|
|
3710
|
+
value: r.getDateTimeFormat(t, d).format(h)
|
|
3711
3711
|
});
|
|
3712
3712
|
continue;
|
|
3713
3713
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var
|
|
3714
|
+
if (ar(c)) {
|
|
3715
|
+
var d = typeof c.style == "string" ? n.time[c.style] : Ye(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3716
3716
|
a.push({
|
|
3717
|
-
type:
|
|
3718
|
-
value: r.getDateTimeFormat(t,
|
|
3717
|
+
type: O.literal,
|
|
3718
|
+
value: r.getDateTimeFormat(t, d).format(h)
|
|
3719
3719
|
});
|
|
3720
3720
|
continue;
|
|
3721
3721
|
}
|
|
3722
|
-
if (
|
|
3723
|
-
var
|
|
3724
|
-
|
|
3725
|
-
type:
|
|
3726
|
-
value: r.getNumberFormat(t,
|
|
3722
|
+
if (or(c)) {
|
|
3723
|
+
var d = typeof c.style == "string" ? n.number[c.style] : hr(c.style) ? c.style.parsedOptions : void 0;
|
|
3724
|
+
d && d.scale && (h = h * (d.scale || 1)), a.push({
|
|
3725
|
+
type: O.literal,
|
|
3726
|
+
value: r.getNumberFormat(t, d).format(h)
|
|
3727
3727
|
});
|
|
3728
3728
|
continue;
|
|
3729
3729
|
}
|
|
3730
|
-
if (
|
|
3730
|
+
if (cr(c)) {
|
|
3731
3731
|
var m = c.children, b = c.value, g = i[b];
|
|
3732
|
-
if (!
|
|
3733
|
-
throw new
|
|
3734
|
-
var
|
|
3735
|
-
return
|
|
3732
|
+
if (!wi(g))
|
|
3733
|
+
throw new _i(b, "function", s);
|
|
3734
|
+
var P = ye(m, t, r, n, i, o), M = g(P.map(function(_) {
|
|
3735
|
+
return _.value;
|
|
3736
3736
|
}));
|
|
3737
|
-
Array.isArray(
|
|
3737
|
+
Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(_) {
|
|
3738
3738
|
return {
|
|
3739
|
-
type: typeof
|
|
3740
|
-
value:
|
|
3739
|
+
type: typeof _ == "string" ? O.literal : O.object,
|
|
3740
|
+
value: _
|
|
3741
3741
|
};
|
|
3742
3742
|
}));
|
|
3743
3743
|
}
|
|
3744
|
-
if (
|
|
3745
|
-
var
|
|
3746
|
-
if (!
|
|
3747
|
-
throw new
|
|
3748
|
-
a.push.apply(a, ye(
|
|
3744
|
+
if (ur(c)) {
|
|
3745
|
+
var v = c.options[h] || c.options.other;
|
|
3746
|
+
if (!v)
|
|
3747
|
+
throw new Ct(c.value, h, Object.keys(c.options), s);
|
|
3748
|
+
a.push.apply(a, ye(v.value, t, r, n, i));
|
|
3749
3749
|
continue;
|
|
3750
3750
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var
|
|
3753
|
-
if (!
|
|
3751
|
+
if (lr(c)) {
|
|
3752
|
+
var v = c.options["=".concat(h)];
|
|
3753
|
+
if (!v) {
|
|
3754
3754
|
if (!Intl.PluralRules)
|
|
3755
3755
|
throw new Te(`Intl.PluralRules is not available in this environment.
|
|
3756
3756
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3757
3757
|
`, ee.MISSING_INTL_API, s);
|
|
3758
|
-
var
|
|
3759
|
-
|
|
3758
|
+
var B = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3759
|
+
v = c.options[B] || c.options.other;
|
|
3760
3760
|
}
|
|
3761
|
-
if (!
|
|
3762
|
-
throw new
|
|
3763
|
-
a.push.apply(a, ye(
|
|
3761
|
+
if (!v)
|
|
3762
|
+
throw new Ct(c.value, h, Object.keys(c.options), s);
|
|
3763
|
+
a.push.apply(a, ye(v.value, t, r, n, i, h - (c.offset || 0)));
|
|
3764
3764
|
continue;
|
|
3765
3765
|
}
|
|
3766
3766
|
}
|
|
3767
|
-
return
|
|
3767
|
+
return Ei(a);
|
|
3768
3768
|
}
|
|
3769
|
-
function
|
|
3769
|
+
function Ai(e, t) {
|
|
3770
3770
|
return t ? $($($({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3771
3771
|
return r[n] = $($({}, e[n]), t[n] || {}), r;
|
|
3772
3772
|
}, {})) : e;
|
|
3773
3773
|
}
|
|
3774
|
-
function
|
|
3774
|
+
function Pi(e, t) {
|
|
3775
3775
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3776
|
-
return r[n] =
|
|
3776
|
+
return r[n] = Ai(e[n], t[n]), r;
|
|
3777
3777
|
}, $({}, e)) : e;
|
|
3778
3778
|
}
|
|
3779
|
-
function
|
|
3779
|
+
function $e(e) {
|
|
3780
3780
|
return {
|
|
3781
3781
|
create: function() {
|
|
3782
3782
|
return {
|
|
@@ -3790,39 +3790,39 @@ function Fe(e) {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
};
|
|
3792
3792
|
}
|
|
3793
|
-
function
|
|
3793
|
+
function Si(e) {
|
|
3794
3794
|
return e === void 0 && (e = {
|
|
3795
3795
|
number: {},
|
|
3796
3796
|
dateTime: {},
|
|
3797
3797
|
pluralRules: {}
|
|
3798
3798
|
}), {
|
|
3799
|
-
getNumberFormat:
|
|
3799
|
+
getNumberFormat: Re(function() {
|
|
3800
3800
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3801
3801
|
r[n] = arguments[n];
|
|
3802
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3802
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ne([void 0], r, !1)))();
|
|
3803
3803
|
}, {
|
|
3804
|
-
cache:
|
|
3805
|
-
strategy:
|
|
3804
|
+
cache: $e(e.number),
|
|
3805
|
+
strategy: Fe.variadic
|
|
3806
3806
|
}),
|
|
3807
|
-
getDateTimeFormat:
|
|
3807
|
+
getDateTimeFormat: Re(function() {
|
|
3808
3808
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3809
3809
|
r[n] = arguments[n];
|
|
3810
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3810
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ne([void 0], r, !1)))();
|
|
3811
3811
|
}, {
|
|
3812
|
-
cache:
|
|
3813
|
-
strategy:
|
|
3812
|
+
cache: $e(e.dateTime),
|
|
3813
|
+
strategy: Fe.variadic
|
|
3814
3814
|
}),
|
|
3815
|
-
getPluralRules:
|
|
3815
|
+
getPluralRules: Re(function() {
|
|
3816
3816
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3817
3817
|
r[n] = arguments[n];
|
|
3818
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3818
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ne([void 0], r, !1)))();
|
|
3819
3819
|
}, {
|
|
3820
|
-
cache:
|
|
3821
|
-
strategy:
|
|
3820
|
+
cache: $e(e.pluralRules),
|
|
3821
|
+
strategy: Fe.variadic
|
|
3822
3822
|
})
|
|
3823
3823
|
};
|
|
3824
3824
|
}
|
|
3825
|
-
var
|
|
3825
|
+
var Hi = (
|
|
3826
3826
|
/** @class */
|
|
3827
3827
|
function() {
|
|
3828
3828
|
function e(t, r, n, i) {
|
|
@@ -3836,8 +3836,8 @@ var Pi = (
|
|
|
3836
3836
|
var u = o.formatToParts(l);
|
|
3837
3837
|
if (u.length === 1)
|
|
3838
3838
|
return u[0].value;
|
|
3839
|
-
var c = u.reduce(function(
|
|
3840
|
-
return !
|
|
3839
|
+
var c = u.reduce(function(f, h) {
|
|
3840
|
+
return !f.length || h.type !== O.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
|
|
3841
3841
|
}, []);
|
|
3842
3842
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3843
3843
|
}, this.formatToParts = function(l) {
|
|
@@ -3854,13 +3854,13 @@ var Pi = (
|
|
|
3854
3854
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3855
3855
|
var s = i || {};
|
|
3856
3856
|
s.formatters;
|
|
3857
|
-
var a =
|
|
3857
|
+
var a = Rn(s, ["formatters"]);
|
|
3858
3858
|
this.ast = e.__parse(t, $($({}, a), { locale: this.resolvedLocale }));
|
|
3859
3859
|
} else
|
|
3860
3860
|
this.ast = t;
|
|
3861
3861
|
if (!Array.isArray(this.ast))
|
|
3862
3862
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3863
|
-
this.formats =
|
|
3863
|
+
this.formats = Pi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
|
|
3864
3864
|
}
|
|
3865
3865
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3866
3866
|
get: function() {
|
|
@@ -3873,7 +3873,7 @@ var Pi = (
|
|
|
3873
3873
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3874
3874
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3875
3875
|
}
|
|
3876
|
-
}, e.__parse =
|
|
3876
|
+
}, e.__parse = vi, e.formats = {
|
|
3877
3877
|
number: {
|
|
3878
3878
|
integer: {
|
|
3879
3879
|
maximumFractionDigits: 0
|
|
@@ -3934,7 +3934,7 @@ var Pi = (
|
|
|
3934
3934
|
}, e;
|
|
3935
3935
|
}()
|
|
3936
3936
|
);
|
|
3937
|
-
function
|
|
3937
|
+
function Ti(e, t) {
|
|
3938
3938
|
if (t == null)
|
|
3939
3939
|
return;
|
|
3940
3940
|
if (t in e)
|
|
@@ -3955,92 +3955,92 @@ function Si(e, t) {
|
|
|
3955
3955
|
n = void 0;
|
|
3956
3956
|
return n;
|
|
3957
3957
|
}
|
|
3958
|
-
const k = {},
|
|
3958
|
+
const k = {}, Mi = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), vr = (e, t) => {
|
|
3959
3959
|
if (t == null)
|
|
3960
3960
|
return;
|
|
3961
3961
|
if (t in k && e in k[t])
|
|
3962
3962
|
return k[t][e];
|
|
3963
3963
|
const r = Me(t);
|
|
3964
3964
|
for (let n = 0; n < r.length; n++) {
|
|
3965
|
-
const i = r[n], o =
|
|
3965
|
+
const i = r[n], o = Ii(i, e);
|
|
3966
3966
|
if (o)
|
|
3967
|
-
return
|
|
3967
|
+
return Mi(e, t, o);
|
|
3968
3968
|
}
|
|
3969
3969
|
};
|
|
3970
|
-
let
|
|
3970
|
+
let at;
|
|
3971
3971
|
const fe = Se({});
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
3972
|
+
function Bi(e) {
|
|
3973
|
+
return at[e] || null;
|
|
3974
3974
|
}
|
|
3975
|
-
function
|
|
3976
|
-
return e in
|
|
3975
|
+
function _r(e) {
|
|
3976
|
+
return e in at;
|
|
3977
3977
|
}
|
|
3978
|
-
function
|
|
3979
|
-
if (!
|
|
3978
|
+
function Ii(e, t) {
|
|
3979
|
+
if (!_r(e))
|
|
3980
3980
|
return null;
|
|
3981
|
-
const r =
|
|
3982
|
-
return
|
|
3981
|
+
const r = Bi(e);
|
|
3982
|
+
return Ti(r, t);
|
|
3983
3983
|
}
|
|
3984
|
-
function
|
|
3984
|
+
function Oi(e) {
|
|
3985
3985
|
if (e == null)
|
|
3986
3986
|
return;
|
|
3987
3987
|
const t = Me(e);
|
|
3988
3988
|
for (let r = 0; r < t.length; r++) {
|
|
3989
3989
|
const n = t[r];
|
|
3990
|
-
if (
|
|
3990
|
+
if (_r(n))
|
|
3991
3991
|
return n;
|
|
3992
3992
|
}
|
|
3993
3993
|
}
|
|
3994
|
-
function
|
|
3995
|
-
delete k[e], fe.update((r) => (r[e] =
|
|
3994
|
+
function xr(e, ...t) {
|
|
3995
|
+
delete k[e], fe.update((r) => (r[e] = Nn.all([r[e] || {}, ...t]), r));
|
|
3996
3996
|
}
|
|
3997
3997
|
ne(
|
|
3998
3998
|
[fe],
|
|
3999
3999
|
([e]) => Object.keys(e)
|
|
4000
4000
|
);
|
|
4001
|
-
fe.subscribe((e) =>
|
|
4001
|
+
fe.subscribe((e) => at = e);
|
|
4002
4002
|
const ve = {};
|
|
4003
|
-
function
|
|
4003
|
+
function Ci(e, t) {
|
|
4004
4004
|
ve[e].delete(t), ve[e].size === 0 && delete ve[e];
|
|
4005
4005
|
}
|
|
4006
|
-
function
|
|
4006
|
+
function Er(e) {
|
|
4007
4007
|
return ve[e];
|
|
4008
4008
|
}
|
|
4009
|
-
function
|
|
4009
|
+
function Li(e) {
|
|
4010
4010
|
return Me(e).map((t) => {
|
|
4011
|
-
const r =
|
|
4011
|
+
const r = Er(t);
|
|
4012
4012
|
return [t, r ? [...r] : []];
|
|
4013
4013
|
}).filter(([, t]) => t.length > 0);
|
|
4014
4014
|
}
|
|
4015
|
-
function
|
|
4015
|
+
function it(e) {
|
|
4016
4016
|
return e == null ? !1 : Me(e).some(
|
|
4017
4017
|
(t) => {
|
|
4018
4018
|
var r;
|
|
4019
|
-
return (r =
|
|
4019
|
+
return (r = Er(t)) == null ? void 0 : r.size;
|
|
4020
4020
|
}
|
|
4021
4021
|
);
|
|
4022
4022
|
}
|
|
4023
|
-
function
|
|
4023
|
+
function Ni(e, t) {
|
|
4024
4024
|
return Promise.all(
|
|
4025
|
-
t.map((n) => (
|
|
4026
|
-
).then((n) =>
|
|
4025
|
+
t.map((n) => (Ci(e, n), n().then((i) => i.default || i)))
|
|
4026
|
+
).then((n) => xr(e, ...n));
|
|
4027
4027
|
}
|
|
4028
4028
|
const se = {};
|
|
4029
|
-
function
|
|
4030
|
-
if (!
|
|
4029
|
+
function wr(e) {
|
|
4030
|
+
if (!it(e))
|
|
4031
4031
|
return e in se ? se[e] : Promise.resolve();
|
|
4032
|
-
const t =
|
|
4032
|
+
const t = Li(e);
|
|
4033
4033
|
return se[e] = Promise.all(
|
|
4034
4034
|
t.map(
|
|
4035
|
-
([r, n]) =>
|
|
4035
|
+
([r, n]) => Ni(r, n)
|
|
4036
4036
|
)
|
|
4037
4037
|
).then(() => {
|
|
4038
|
-
if (
|
|
4039
|
-
return
|
|
4038
|
+
if (it(e))
|
|
4039
|
+
return wr(e);
|
|
4040
4040
|
delete se[e];
|
|
4041
4041
|
}), se[e];
|
|
4042
4042
|
}
|
|
4043
|
-
const
|
|
4043
|
+
const Ri = {
|
|
4044
4044
|
number: {
|
|
4045
4045
|
scientific: { notation: "scientific" },
|
|
4046
4046
|
engineering: { notation: "engineering" },
|
|
@@ -4069,57 +4069,57 @@ const Li = {
|
|
|
4069
4069
|
timeZoneName: "short"
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
|
-
},
|
|
4072
|
+
}, Fi = {
|
|
4073
4073
|
fallbackLocale: null,
|
|
4074
4074
|
loadingDelay: 200,
|
|
4075
|
-
formats:
|
|
4075
|
+
formats: Ri,
|
|
4076
4076
|
warnOnMissingMessages: !0,
|
|
4077
4077
|
handleMissingMessage: void 0,
|
|
4078
4078
|
ignoreTag: !0
|
|
4079
|
-
},
|
|
4079
|
+
}, Ui = Fi;
|
|
4080
4080
|
function te() {
|
|
4081
|
-
return
|
|
4081
|
+
return Ui;
|
|
4082
4082
|
}
|
|
4083
|
-
const
|
|
4084
|
-
var
|
|
4083
|
+
const De = Se(!1);
|
|
4084
|
+
var $i = Object.defineProperty, Di = Object.defineProperties, Gi = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, ki = Object.prototype.hasOwnProperty, ji = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vi = (e, t) => {
|
|
4085
4085
|
for (var r in t || (t = {}))
|
|
4086
|
-
|
|
4087
|
-
if (
|
|
4088
|
-
for (var r of
|
|
4089
|
-
|
|
4086
|
+
ki.call(t, r) && Nt(e, r, t[r]);
|
|
4087
|
+
if (Lt)
|
|
4088
|
+
for (var r of Lt(t))
|
|
4089
|
+
ji.call(t, r) && Nt(e, r, t[r]);
|
|
4090
4090
|
return e;
|
|
4091
|
-
},
|
|
4092
|
-
let
|
|
4091
|
+
}, Wi = (e, t) => Di(e, Gi(t));
|
|
4092
|
+
let ot;
|
|
4093
4093
|
const we = Se(null);
|
|
4094
|
-
function
|
|
4094
|
+
function Rt(e) {
|
|
4095
4095
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4096
4096
|
}
|
|
4097
4097
|
function Me(e, t = te().fallbackLocale) {
|
|
4098
|
-
const r =
|
|
4099
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4098
|
+
const r = Rt(e);
|
|
4099
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
|
|
4100
4100
|
}
|
|
4101
4101
|
function j() {
|
|
4102
|
-
return
|
|
4102
|
+
return ot ?? void 0;
|
|
4103
4103
|
}
|
|
4104
4104
|
we.subscribe((e) => {
|
|
4105
|
-
|
|
4105
|
+
ot = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4106
4106
|
});
|
|
4107
|
-
const
|
|
4108
|
-
if (e &&
|
|
4107
|
+
const Xi = (e) => {
|
|
4108
|
+
if (e && Oi(e) && it(e)) {
|
|
4109
4109
|
const { loadingDelay: t } = te();
|
|
4110
4110
|
let r;
|
|
4111
4111
|
return typeof window < "u" && j() != null && t ? r = window.setTimeout(
|
|
4112
|
-
() =>
|
|
4112
|
+
() => De.set(!0),
|
|
4113
4113
|
t
|
|
4114
|
-
) :
|
|
4114
|
+
) : De.set(!0), wr(e).then(() => {
|
|
4115
4115
|
we.set(e);
|
|
4116
4116
|
}).finally(() => {
|
|
4117
|
-
clearTimeout(r),
|
|
4117
|
+
clearTimeout(r), De.set(!1);
|
|
4118
4118
|
});
|
|
4119
4119
|
}
|
|
4120
4120
|
return we.set(e);
|
|
4121
|
-
}, ie =
|
|
4122
|
-
set:
|
|
4121
|
+
}, ie = Wi(Vi({}, we), {
|
|
4122
|
+
set: Xi
|
|
4123
4123
|
}), Be = (e) => {
|
|
4124
4124
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4125
4125
|
return (n) => {
|
|
@@ -4127,20 +4127,20 @@ const Vi = (e) => {
|
|
|
4127
4127
|
return i in t ? t[i] : t[i] = e(n);
|
|
4128
4128
|
};
|
|
4129
4129
|
};
|
|
4130
|
-
var
|
|
4130
|
+
var zi = Object.defineProperty, Ae = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Ft = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
|
|
4131
4131
|
for (var r in t || (t = {}))
|
|
4132
|
-
|
|
4132
|
+
Ar.call(t, r) && Ft(e, r, t[r]);
|
|
4133
4133
|
if (Ae)
|
|
4134
4134
|
for (var r of Ae(t))
|
|
4135
|
-
|
|
4135
|
+
Pr.call(t, r) && Ft(e, r, t[r]);
|
|
4136
4136
|
return e;
|
|
4137
4137
|
}, oe = (e, t) => {
|
|
4138
4138
|
var r = {};
|
|
4139
4139
|
for (var n in e)
|
|
4140
|
-
|
|
4140
|
+
Ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4141
4141
|
if (e != null && Ae)
|
|
4142
4142
|
for (var n of Ae(e))
|
|
4143
|
-
t.indexOf(n) < 0 &&
|
|
4143
|
+
t.indexOf(n) < 0 && Pr.call(e, n) && (r[n] = e[n]);
|
|
4144
4144
|
return r;
|
|
4145
4145
|
};
|
|
4146
4146
|
const ce = (e, t) => {
|
|
@@ -4148,21 +4148,21 @@ const ce = (e, t) => {
|
|
|
4148
4148
|
if (e in r && t in r[e])
|
|
4149
4149
|
return r[e][t];
|
|
4150
4150
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4151
|
-
},
|
|
4151
|
+
}, Zi = Be(
|
|
4152
4152
|
(e) => {
|
|
4153
4153
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4154
4154
|
if (r == null)
|
|
4155
4155
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4156
4156
|
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4157
4157
|
}
|
|
4158
|
-
),
|
|
4158
|
+
), Qi = Be(
|
|
4159
4159
|
(e) => {
|
|
4160
4160
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4161
4161
|
if (r == null)
|
|
4162
4162
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4163
4163
|
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4164
4164
|
}
|
|
4165
|
-
),
|
|
4165
|
+
), qi = Be(
|
|
4166
4166
|
(e) => {
|
|
4167
4167
|
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4168
4168
|
if (r == null)
|
|
@@ -4171,33 +4171,33 @@ const ce = (e, t) => {
|
|
|
4171
4171
|
);
|
|
4172
4172
|
return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4173
4173
|
}
|
|
4174
|
-
),
|
|
4174
|
+
), Ji = (e = {}) => {
|
|
4175
4175
|
var t = e, {
|
|
4176
4176
|
locale: r = j()
|
|
4177
4177
|
} = t, n = oe(t, [
|
|
4178
4178
|
"locale"
|
|
4179
4179
|
]);
|
|
4180
|
-
return
|
|
4181
|
-
},
|
|
4180
|
+
return Zi(ut({ locale: r }, n));
|
|
4181
|
+
}, Yi = (e = {}) => {
|
|
4182
4182
|
var t = e, {
|
|
4183
4183
|
locale: r = j()
|
|
4184
4184
|
} = t, n = oe(t, [
|
|
4185
4185
|
"locale"
|
|
4186
4186
|
]);
|
|
4187
|
-
return
|
|
4188
|
-
},
|
|
4187
|
+
return Qi(ut({ locale: r }, n));
|
|
4188
|
+
}, Ki = (e = {}) => {
|
|
4189
4189
|
var t = e, {
|
|
4190
4190
|
locale: r = j()
|
|
4191
4191
|
} = t, n = oe(t, [
|
|
4192
4192
|
"locale"
|
|
4193
4193
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4194
|
+
return qi(ut({ locale: r }, n));
|
|
4195
|
+
}, eo = Be(
|
|
4196
4196
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4197
|
-
(e, t = j()) => new
|
|
4197
|
+
(e, t = j()) => new Hi(e, t, te().formats, {
|
|
4198
4198
|
ignoreTag: te().ignoreTag
|
|
4199
4199
|
})
|
|
4200
|
-
),
|
|
4200
|
+
), to = (e, t = {}) => {
|
|
4201
4201
|
var r, n, i, o;
|
|
4202
4202
|
let s = t;
|
|
4203
4203
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4210,7 +4210,7 @@ const ce = (e, t) => {
|
|
|
4210
4210
|
throw new Error(
|
|
4211
4211
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4212
4212
|
);
|
|
4213
|
-
let c =
|
|
4213
|
+
let c = vr(e, l);
|
|
4214
4214
|
if (!c)
|
|
4215
4215
|
c = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4216
4216
|
else if (typeof c != "string")
|
|
@@ -4219,31 +4219,31 @@ const ce = (e, t) => {
|
|
|
4219
4219
|
), c;
|
|
4220
4220
|
if (!a)
|
|
4221
4221
|
return c;
|
|
4222
|
-
let
|
|
4222
|
+
let f = c;
|
|
4223
4223
|
try {
|
|
4224
|
-
|
|
4225
|
-
} catch (
|
|
4226
|
-
|
|
4224
|
+
f = eo(c, l).format(a);
|
|
4225
|
+
} catch (h) {
|
|
4226
|
+
h instanceof Error && console.warn(
|
|
4227
4227
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4228
|
-
|
|
4228
|
+
h.message
|
|
4229
4229
|
);
|
|
4230
4230
|
}
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4233
|
-
ne([ie], () => eo);
|
|
4234
|
-
ne([ie], () => to);
|
|
4231
|
+
return f;
|
|
4232
|
+
}, ro = (e, t) => Ki(t).format(e), no = (e, t) => Yi(t).format(e), io = (e, t) => Ji(t).format(e), oo = (e, t = j()) => vr(e, t), so = ne([ie, fe], () => to);
|
|
4235
4233
|
ne([ie], () => ro);
|
|
4236
|
-
ne([ie
|
|
4237
|
-
|
|
4238
|
-
|
|
4234
|
+
ne([ie], () => no);
|
|
4235
|
+
ne([ie], () => io);
|
|
4236
|
+
ne([ie, fe], () => oo);
|
|
4237
|
+
window.emWidgets = { topic: yn };
|
|
4238
|
+
const Ut = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4239
4239
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4240
|
-
function
|
|
4241
|
-
|
|
4240
|
+
function $t(e, t) {
|
|
4241
|
+
xr(e, t);
|
|
4242
4242
|
}
|
|
4243
|
-
function
|
|
4243
|
+
function ao(e) {
|
|
4244
4244
|
ie.set(e);
|
|
4245
4245
|
}
|
|
4246
|
-
const
|
|
4246
|
+
const Dt = {
|
|
4247
4247
|
en: {
|
|
4248
4248
|
title: "My Account"
|
|
4249
4249
|
},
|
|
@@ -4278,13 +4278,13 @@ const $t = {
|
|
|
4278
4278
|
title: "My Account"
|
|
4279
4279
|
}
|
|
4280
4280
|
}, Q = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4281
|
-
function
|
|
4281
|
+
function uo(e, t) {
|
|
4282
4282
|
if (e) {
|
|
4283
4283
|
const r = document.createElement("style");
|
|
4284
4284
|
r.innerHTML = t, e.appendChild(r);
|
|
4285
4285
|
}
|
|
4286
4286
|
}
|
|
4287
|
-
function
|
|
4287
|
+
function lo(e, t) {
|
|
4288
4288
|
if (!e || !t)
|
|
4289
4289
|
return;
|
|
4290
4290
|
const r = new URL(t);
|
|
@@ -4295,12 +4295,12 @@ function ao(e, t) {
|
|
|
4295
4295
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4296
4296
|
});
|
|
4297
4297
|
}
|
|
4298
|
-
function
|
|
4298
|
+
function co(e, t, r, n = !1) {
|
|
4299
4299
|
if (!window.emMessageBus)
|
|
4300
4300
|
return;
|
|
4301
4301
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4302
|
-
return r =
|
|
4303
|
-
window[Q] || (window[Q] = {}), r =
|
|
4302
|
+
return r = ho(e, t), r;
|
|
4303
|
+
window[Q] || (window[Q] = {}), r = fo(e, t);
|
|
4304
4304
|
const o = r.unsubscribe.bind(r), s = () => {
|
|
4305
4305
|
if (window[Q][t]) {
|
|
4306
4306
|
const a = window[Q][t];
|
|
@@ -4310,13 +4310,13 @@ function uo(e, t, r, n = !1) {
|
|
|
4310
4310
|
};
|
|
4311
4311
|
return r.unsubscribe = s, r;
|
|
4312
4312
|
}
|
|
4313
|
-
function
|
|
4313
|
+
function ho(e, t) {
|
|
4314
4314
|
const r = document.createElement("style");
|
|
4315
4315
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
4316
4316
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
4317
4317
|
});
|
|
4318
4318
|
}
|
|
4319
|
-
function
|
|
4319
|
+
function fo(e, t) {
|
|
4320
4320
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
4321
4321
|
if (!e)
|
|
4322
4322
|
return;
|
|
@@ -4342,232 +4342,241 @@ if (typeof window < "u") {
|
|
|
4342
4342
|
}
|
|
4343
4343
|
};
|
|
4344
4344
|
};
|
|
4345
|
-
customElements.define = e(customElements.define), import("./GeneralLogout-
|
|
4345
|
+
customElements.define = e(customElements.define), import("./GeneralLogout-CRrnphLg.js").then(({ default: t }) => {
|
|
4346
4346
|
!customElements.get("general-logout") && customElements.define("general-logout", t.element);
|
|
4347
4347
|
});
|
|
4348
4348
|
}
|
|
4349
|
-
function
|
|
4350
|
-
|
|
4349
|
+
function po(e) {
|
|
4350
|
+
Ur(e, "svelte-j26xf8", '.PlayerAccountMenuContainer{background:var(--emw--color-primary, #184026);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%;border-radius:10px;overflow:hidden}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-secondary, var(--emw--color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:var(--emw--font-size-small, 14px);text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:14px 20px;margin:2px 0;font-size:var(--emw--font-size-medium, 16px);line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 10px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);color:var(--emw--color-white, #FFFFFF)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{padding:5px;width:100%;box-sizing:border-box}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background-color:rgba(253, 40, 57, 0.3);color:var(--emw--color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 10px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);transition:all 0.3s linear}.PlayerAccountMobileContainer{height:unset;padding:0}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:flex;flex-direction:column;align-items:flex-start;margin:0px 15px;min-height:900px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{background:rgba(35, 176, 78, 0.3);color:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border:2px solid var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 10px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emw--color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:400;word-break:break-word;text-align:left;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
4351
4351
|
}
|
|
4352
|
-
function
|
|
4352
|
+
function Gt(e, t, r) {
|
|
4353
4353
|
const n = e.slice();
|
|
4354
|
-
return n[
|
|
4354
|
+
return n[43] = t[r], n;
|
|
4355
4355
|
}
|
|
4356
|
-
function
|
|
4356
|
+
function kt(e, t, r) {
|
|
4357
4357
|
const n = e.slice();
|
|
4358
|
-
return n[
|
|
4358
|
+
return n[40] = t[r], n;
|
|
4359
4359
|
}
|
|
4360
|
-
function
|
|
4361
|
-
let t, r, n, i, o
|
|
4360
|
+
function mo(e) {
|
|
4361
|
+
let t, r, n, i, o = (
|
|
4362
|
+
/*showaliasasusername*/
|
|
4363
|
+
(e[5] === "true" ? (
|
|
4364
|
+
/*profileAlias*/
|
|
4365
|
+
e[12]
|
|
4366
|
+
) : (
|
|
4367
|
+
/*profileUsername*/
|
|
4368
|
+
e[10]
|
|
4369
|
+
)) + ""
|
|
4370
|
+
), s, a, l, u, c, f, h, d, m = (
|
|
4362
4371
|
/*isMobile*/
|
|
4363
|
-
e[
|
|
4364
|
-
),
|
|
4372
|
+
e[14] && go(e)
|
|
4373
|
+
), b = (
|
|
4365
4374
|
/*isMobile*/
|
|
4366
|
-
e[
|
|
4367
|
-
),
|
|
4375
|
+
e[14] && yo(e)
|
|
4376
|
+
), g = xe(
|
|
4368
4377
|
/*menuItems*/
|
|
4369
|
-
e[
|
|
4370
|
-
),
|
|
4371
|
-
for (let v = 0; v <
|
|
4372
|
-
|
|
4378
|
+
e[8]
|
|
4379
|
+
), P = [];
|
|
4380
|
+
for (let v = 0; v < g.length; v += 1)
|
|
4381
|
+
P[v] = jt(Gt(e, g, v));
|
|
4373
4382
|
let M = !/*isMobile*/
|
|
4374
|
-
e[
|
|
4383
|
+
e[14] && vo(e);
|
|
4375
4384
|
return {
|
|
4376
4385
|
c() {
|
|
4377
|
-
t =
|
|
4378
|
-
/*profileUsername*/
|
|
4379
|
-
e[9]
|
|
4380
|
-
), s = C(), a = P("p"), l = J(
|
|
4386
|
+
t = S("div"), r = S("div"), m && m.c(), n = L(), i = S("p"), s = J(o), a = L(), l = S("p"), u = J(
|
|
4381
4387
|
/*profileEmail*/
|
|
4382
|
-
e[
|
|
4383
|
-
),
|
|
4384
|
-
for (let v = 0; v <
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
(e[
|
|
4388
|
-
(e[
|
|
4388
|
+
e[11]
|
|
4389
|
+
), c = L(), b && b.c(), f = L(), h = S("div");
|
|
4390
|
+
for (let v = 0; v < P.length; v += 1)
|
|
4391
|
+
P[v].c();
|
|
4392
|
+
d = L(), M && M.c(), E(i, "class", "PlayerAccountMenuUser"), E(i, "translate", "no"), E(l, "class", "PlayerAccountMenuEmail"), E(l, "translate", "no"), E(r, "class", "PlayerAccountMenuHeader " + /*isMobile*/
|
|
4393
|
+
(e[14] ? "PlayerAccountMenuHeaderMobile" : "")), E(h, "class", "PlayerAccountMenuList"), E(t, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
4394
|
+
(e[14] ? "PlayerAccountMobileContainer" : ""));
|
|
4389
4395
|
},
|
|
4390
|
-
m(v,
|
|
4391
|
-
F(v, t,
|
|
4392
|
-
for (let
|
|
4393
|
-
|
|
4394
|
-
y(t,
|
|
4396
|
+
m(v, B) {
|
|
4397
|
+
F(v, t, B), y(t, r), m && m.m(r, null), y(r, n), y(r, i), y(i, s), y(r, a), y(r, l), y(l, u), y(r, c), b && b.m(r, null), y(t, f), y(t, h);
|
|
4398
|
+
for (let _ = 0; _ < P.length; _ += 1)
|
|
4399
|
+
P[_] && P[_].m(h, null);
|
|
4400
|
+
y(t, d), M && M.m(t, null);
|
|
4395
4401
|
},
|
|
4396
|
-
p(v,
|
|
4402
|
+
p(v, B) {
|
|
4397
4403
|
if (
|
|
4398
4404
|
/*isMobile*/
|
|
4399
|
-
v[
|
|
4400
|
-
|
|
4401
|
-
|
|
4405
|
+
v[14] && m.p(v, B), B[0] & /*showaliasasusername, profileAlias, profileUsername*/
|
|
4406
|
+
5152 && o !== (o = /*showaliasasusername*/
|
|
4407
|
+
(v[5] === "true" ? (
|
|
4408
|
+
/*profileAlias*/
|
|
4409
|
+
v[12]
|
|
4410
|
+
) : (
|
|
4402
4411
|
/*profileUsername*/
|
|
4403
|
-
v[9]
|
|
4404
|
-
), H[0] & /*profileEmail*/
|
|
4405
|
-
1024 && _e(
|
|
4406
|
-
l,
|
|
4407
|
-
/*profileEmail*/
|
|
4408
4412
|
v[10]
|
|
4413
|
+
)) + "") && _e(s, o), B[0] & /*profileEmail*/
|
|
4414
|
+
2048 && _e(
|
|
4415
|
+
u,
|
|
4416
|
+
/*profileEmail*/
|
|
4417
|
+
v[11]
|
|
4409
4418
|
), /*isMobile*/
|
|
4410
|
-
v[
|
|
4411
|
-
|
|
4419
|
+
v[14] && b.p(v, B), B[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
|
|
4420
|
+
49920
|
|
4412
4421
|
) {
|
|
4413
|
-
|
|
4422
|
+
g = xe(
|
|
4414
4423
|
/*menuItems*/
|
|
4415
|
-
v[
|
|
4424
|
+
v[8]
|
|
4416
4425
|
);
|
|
4417
|
-
let
|
|
4418
|
-
for (
|
|
4419
|
-
const
|
|
4420
|
-
|
|
4426
|
+
let _;
|
|
4427
|
+
for (_ = 0; _ < g.length; _ += 1) {
|
|
4428
|
+
const D = Gt(v, g, _);
|
|
4429
|
+
P[_] ? P[_].p(D, B) : (P[_] = jt(D), P[_].c(), P[_].m(h, null));
|
|
4421
4430
|
}
|
|
4422
|
-
for (;
|
|
4423
|
-
|
|
4424
|
-
|
|
4431
|
+
for (; _ < P.length; _ += 1)
|
|
4432
|
+
P[_].d(1);
|
|
4433
|
+
P.length = g.length;
|
|
4425
4434
|
}
|
|
4426
4435
|
/*isMobile*/
|
|
4427
|
-
v[
|
|
4436
|
+
v[14] || M.p(v, B);
|
|
4428
4437
|
},
|
|
4429
4438
|
d(v) {
|
|
4430
|
-
v && R(t),
|
|
4439
|
+
v && R(t), m && m.d(), b && b.d(), Zt(P, v), M && M.d();
|
|
4431
4440
|
}
|
|
4432
4441
|
};
|
|
4433
4442
|
}
|
|
4434
|
-
function
|
|
4435
|
-
let t, r, n, i, o, s, a, l, u, c,
|
|
4443
|
+
function bo(e) {
|
|
4444
|
+
let t, r, n, i, o, s, a, l, u, c, f = (
|
|
4436
4445
|
/*isMobile*/
|
|
4437
|
-
e[
|
|
4438
|
-
),
|
|
4439
|
-
for (let m = 0; m <
|
|
4440
|
-
|
|
4446
|
+
e[14] && _o()
|
|
4447
|
+
), h = xe(Array(18)), d = [];
|
|
4448
|
+
for (let m = 0; m < h.length; m += 1)
|
|
4449
|
+
d[m] = Vt(kt(e, h, m));
|
|
4441
4450
|
return {
|
|
4442
4451
|
c() {
|
|
4443
|
-
t =
|
|
4444
|
-
for (let m = 0; m <
|
|
4445
|
-
|
|
4446
|
-
u =
|
|
4447
|
-
(e[
|
|
4448
|
-
(e[
|
|
4452
|
+
t = S("div"), r = S("div"), f && f.c(), n = L(), i = S("ui-skeleton"), o = L(), s = S("ui-skeleton"), a = L(), l = S("div");
|
|
4453
|
+
for (let m = 0; m < d.length; m += 1)
|
|
4454
|
+
d[m].c();
|
|
4455
|
+
u = L(), c = S("div"), c.innerHTML = '<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>', A(i, "structure", "title"), A(i, "width", "100px"), A(i, "height", "20px"), A(i, "margin-top", "20px"), A(s, "structure", "text"), A(s, "width", "200px"), A(s, "height", "20px"), E(r, "class", "PlayerAccountMenuHeader " + /*isMobile*/
|
|
4456
|
+
(e[14] ? "PlayerAccountMenuHeaderMobile" : "")), E(l, "class", "PlayerAccountMenuList"), E(c, "class", "skeletonLogOut"), E(t, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
4457
|
+
(e[14] ? "PlayerAccountMobileContainer" : ""));
|
|
4449
4458
|
},
|
|
4450
4459
|
m(m, b) {
|
|
4451
|
-
F(m, t, b), y(t, r),
|
|
4452
|
-
for (let g = 0; g <
|
|
4453
|
-
|
|
4460
|
+
F(m, t, b), y(t, r), f && f.m(r, null), y(r, n), y(r, i), y(r, o), y(r, s), y(t, a), y(t, l);
|
|
4461
|
+
for (let g = 0; g < d.length; g += 1)
|
|
4462
|
+
d[g] && d[g].m(l, null);
|
|
4454
4463
|
y(t, u), y(t, c);
|
|
4455
4464
|
},
|
|
4456
4465
|
p(m, b) {
|
|
4457
4466
|
if (b[0] & /*isMobile*/
|
|
4458
|
-
|
|
4459
|
-
|
|
4467
|
+
16384) {
|
|
4468
|
+
h = xe(Array(18));
|
|
4460
4469
|
let g;
|
|
4461
|
-
for (g = 0; g <
|
|
4462
|
-
const
|
|
4463
|
-
|
|
4470
|
+
for (g = 0; g < h.length; g += 1) {
|
|
4471
|
+
const P = kt(m, h, g);
|
|
4472
|
+
d[g] ? d[g].p(P, b) : (d[g] = Vt(P), d[g].c(), d[g].m(l, null));
|
|
4464
4473
|
}
|
|
4465
|
-
for (; g <
|
|
4466
|
-
|
|
4467
|
-
|
|
4474
|
+
for (; g < d.length; g += 1)
|
|
4475
|
+
d[g].d(1);
|
|
4476
|
+
d.length = h.length;
|
|
4468
4477
|
}
|
|
4469
4478
|
},
|
|
4470
4479
|
d(m) {
|
|
4471
|
-
m && R(t),
|
|
4480
|
+
m && R(t), f && f.d(), Zt(d, m);
|
|
4472
4481
|
}
|
|
4473
4482
|
};
|
|
4474
4483
|
}
|
|
4475
|
-
function
|
|
4476
|
-
let t, r, n, i, o, s, a, l, u, c,
|
|
4484
|
+
function go(e) {
|
|
4485
|
+
let t, r, n, i, o, s, a, l, u, c, f = (
|
|
4477
4486
|
/*$_*/
|
|
4478
|
-
e[
|
|
4479
|
-
),
|
|
4487
|
+
e[13]("title") + ""
|
|
4488
|
+
), h, d, m;
|
|
4480
4489
|
return {
|
|
4481
4490
|
c() {
|
|
4482
|
-
t =
|
|
4491
|
+
t = S("div"), r = W("svg"), n = W("defs"), i = W("style"), o = J(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), s = W("g"), a = W("g"), l = W("path"), u = L(), c = S("h3"), h = J(f), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(c, "class", "PlayerAccountMenuCategoryTitle"), E(t, "class", "PlayerAccountMenuCategoryWrapper");
|
|
4483
4492
|
},
|
|
4484
4493
|
m(b, g) {
|
|
4485
|
-
F(b, t, g), y(t, r), y(r, n), y(n, i), y(i, o), y(r, s), y(s, a), y(a, l), y(t, u), y(t, c), y(c,
|
|
4486
|
-
|
|
4494
|
+
F(b, t, g), y(t, r), y(r, n), y(n, i), y(i, o), y(r, s), y(s, a), y(a, l), y(t, u), y(t, c), y(c, h), d || (m = [
|
|
4495
|
+
Ge(
|
|
4487
4496
|
r,
|
|
4488
4497
|
"click",
|
|
4489
4498
|
/*goToHome*/
|
|
4490
|
-
e[
|
|
4499
|
+
e[16]
|
|
4491
4500
|
),
|
|
4492
|
-
|
|
4501
|
+
Ge(
|
|
4493
4502
|
c,
|
|
4494
4503
|
"click",
|
|
4495
4504
|
/*goToHome*/
|
|
4496
|
-
e[
|
|
4505
|
+
e[16]
|
|
4497
4506
|
)
|
|
4498
|
-
],
|
|
4507
|
+
], d = !0);
|
|
4499
4508
|
},
|
|
4500
4509
|
p(b, g) {
|
|
4501
4510
|
g[0] & /*$_*/
|
|
4502
|
-
|
|
4503
|
-
b[
|
|
4511
|
+
8192 && f !== (f = /*$_*/
|
|
4512
|
+
b[13]("title") + "") && _e(h, f);
|
|
4504
4513
|
},
|
|
4505
4514
|
d(b) {
|
|
4506
|
-
b && R(t),
|
|
4515
|
+
b && R(t), d = !1, re(m);
|
|
4507
4516
|
}
|
|
4508
4517
|
};
|
|
4509
4518
|
}
|
|
4510
|
-
function
|
|
4519
|
+
function yo(e) {
|
|
4511
4520
|
let t, r;
|
|
4512
4521
|
return {
|
|
4513
4522
|
c() {
|
|
4514
|
-
t =
|
|
4523
|
+
t = S("div"), r = S("general-logout"), A(
|
|
4515
4524
|
r,
|
|
4516
4525
|
"endpoint",
|
|
4517
4526
|
/*endpoint*/
|
|
4518
4527
|
e[1]
|
|
4519
|
-
),
|
|
4528
|
+
), A(
|
|
4520
4529
|
r,
|
|
4521
4530
|
"session",
|
|
4522
4531
|
/*session*/
|
|
4523
4532
|
e[0]
|
|
4524
|
-
),
|
|
4533
|
+
), A(r, "buttonlocation", "PlayerAccountMenu"), A(
|
|
4525
4534
|
r,
|
|
4526
4535
|
"clientstyling",
|
|
4527
4536
|
/*clientstyling*/
|
|
4528
4537
|
e[2]
|
|
4529
|
-
),
|
|
4538
|
+
), A(
|
|
4530
4539
|
r,
|
|
4531
4540
|
"clientstylingurl",
|
|
4532
4541
|
/*clientstylingurl*/
|
|
4533
4542
|
e[3]
|
|
4534
|
-
),
|
|
4543
|
+
), A(
|
|
4535
4544
|
r,
|
|
4536
4545
|
"mbsource",
|
|
4537
4546
|
/*mbsource*/
|
|
4538
4547
|
e[4]
|
|
4539
|
-
),
|
|
4548
|
+
), E(t, "class", "PlayerAccountLogOutArea");
|
|
4540
4549
|
},
|
|
4541
4550
|
m(n, i) {
|
|
4542
4551
|
F(n, t, i), y(t, r);
|
|
4543
4552
|
},
|
|
4544
4553
|
p(n, i) {
|
|
4545
4554
|
i[0] & /*endpoint*/
|
|
4546
|
-
2 &&
|
|
4555
|
+
2 && A(
|
|
4547
4556
|
r,
|
|
4548
4557
|
"endpoint",
|
|
4549
4558
|
/*endpoint*/
|
|
4550
4559
|
n[1]
|
|
4551
4560
|
), i[0] & /*session*/
|
|
4552
|
-
1 &&
|
|
4561
|
+
1 && A(
|
|
4553
4562
|
r,
|
|
4554
4563
|
"session",
|
|
4555
4564
|
/*session*/
|
|
4556
4565
|
n[0]
|
|
4557
4566
|
), i[0] & /*clientstyling*/
|
|
4558
|
-
4 &&
|
|
4567
|
+
4 && A(
|
|
4559
4568
|
r,
|
|
4560
4569
|
"clientstyling",
|
|
4561
4570
|
/*clientstyling*/
|
|
4562
4571
|
n[2]
|
|
4563
4572
|
), i[0] & /*clientstylingurl*/
|
|
4564
|
-
8 &&
|
|
4573
|
+
8 && A(
|
|
4565
4574
|
r,
|
|
4566
4575
|
"clientstylingurl",
|
|
4567
4576
|
/*clientstylingurl*/
|
|
4568
4577
|
n[3]
|
|
4569
4578
|
), i[0] & /*mbsource*/
|
|
4570
|
-
16 &&
|
|
4579
|
+
16 && A(
|
|
4571
4580
|
r,
|
|
4572
4581
|
"mbsource",
|
|
4573
4582
|
/*mbsource*/
|
|
@@ -4579,109 +4588,109 @@ function bo(e) {
|
|
|
4579
4588
|
}
|
|
4580
4589
|
};
|
|
4581
4590
|
}
|
|
4582
|
-
function
|
|
4591
|
+
function jt(e) {
|
|
4583
4592
|
let t, r, n, i, o, s, a = (
|
|
4584
4593
|
/*menuItem*/
|
|
4585
|
-
e[
|
|
4586
|
-
), l, u, c,
|
|
4587
|
-
function
|
|
4594
|
+
e[43].label + ""
|
|
4595
|
+
), l, u, c, f, h;
|
|
4596
|
+
function d() {
|
|
4588
4597
|
return (
|
|
4589
4598
|
/*click_handler*/
|
|
4590
|
-
e[
|
|
4599
|
+
e[27](
|
|
4591
4600
|
/*menuItem*/
|
|
4592
|
-
e[
|
|
4601
|
+
e[43]
|
|
4593
4602
|
)
|
|
4594
4603
|
);
|
|
4595
4604
|
}
|
|
4596
4605
|
return {
|
|
4597
4606
|
c() {
|
|
4598
|
-
t =
|
|
4599
|
-
(e[
|
|
4600
|
-
e[
|
|
4601
|
-
(e[
|
|
4602
|
-
e[
|
|
4603
|
-
e[
|
|
4607
|
+
t = S("div"), r = S("p"), n = S("img"), o = L(), s = S("span"), l = J(a), u = L(), E(n, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
|
|
4608
|
+
(e[14] ? "PlayerAccountMenuItemIconMobile" : "")), bt(n.src, i = /*menuItem*/
|
|
4609
|
+
e[43].img) || E(n, "src", i), E(s, "class", "PlayerAccountMenuItemTitle"), E(r, "class", "PlayerAccountMenuItemWrapper"), E(t, "class", c = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
4610
|
+
(e[9] === /*menuItem*/
|
|
4611
|
+
e[43].id && !/*isMobile*/
|
|
4612
|
+
e[14] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
4604
4613
|
},
|
|
4605
4614
|
m(m, b) {
|
|
4606
|
-
F(m, t, b), y(t, r), y(r, n), y(r, o), y(r, s), y(s, l), y(t, u),
|
|
4615
|
+
F(m, t, b), y(t, r), y(r, n), y(r, o), y(r, s), y(s, l), y(t, u), f || (h = Ge(t, "click", d), f = !0);
|
|
4607
4616
|
},
|
|
4608
4617
|
p(m, b) {
|
|
4609
4618
|
e = m, b[0] & /*menuItems*/
|
|
4610
|
-
|
|
4611
|
-
e[
|
|
4612
|
-
|
|
4613
|
-
e[
|
|
4614
|
-
|
|
4615
|
-
(e[
|
|
4616
|
-
e[
|
|
4617
|
-
e[
|
|
4619
|
+
256 && !bt(n.src, i = /*menuItem*/
|
|
4620
|
+
e[43].img) && E(n, "src", i), b[0] & /*menuItems*/
|
|
4621
|
+
256 && a !== (a = /*menuItem*/
|
|
4622
|
+
e[43].label + "") && _e(l, a), b[0] & /*selectedItem, menuItems*/
|
|
4623
|
+
768 && c !== (c = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
4624
|
+
(e[9] === /*menuItem*/
|
|
4625
|
+
e[43].id && !/*isMobile*/
|
|
4626
|
+
e[14] ? "PlayerAccountMenuActiveItemBox" : "")) && E(t, "class", c);
|
|
4618
4627
|
},
|
|
4619
4628
|
d(m) {
|
|
4620
|
-
m && R(t),
|
|
4629
|
+
m && R(t), f = !1, h();
|
|
4621
4630
|
}
|
|
4622
4631
|
};
|
|
4623
4632
|
}
|
|
4624
|
-
function
|
|
4633
|
+
function vo(e) {
|
|
4625
4634
|
let t, r;
|
|
4626
4635
|
return {
|
|
4627
4636
|
c() {
|
|
4628
|
-
t =
|
|
4637
|
+
t = S("div"), r = S("general-logout"), A(
|
|
4629
4638
|
r,
|
|
4630
4639
|
"endpoint",
|
|
4631
4640
|
/*endpoint*/
|
|
4632
4641
|
e[1]
|
|
4633
|
-
),
|
|
4642
|
+
), A(
|
|
4634
4643
|
r,
|
|
4635
4644
|
"session",
|
|
4636
4645
|
/*session*/
|
|
4637
4646
|
e[0]
|
|
4638
|
-
),
|
|
4647
|
+
), A(r, "buttonlocation", "PlayerAccountMenu"), A(
|
|
4639
4648
|
r,
|
|
4640
4649
|
"clientstyling",
|
|
4641
4650
|
/*clientstyling*/
|
|
4642
4651
|
e[2]
|
|
4643
|
-
),
|
|
4652
|
+
), A(
|
|
4644
4653
|
r,
|
|
4645
4654
|
"clientstylingurl",
|
|
4646
4655
|
/*clientstylingurl*/
|
|
4647
4656
|
e[3]
|
|
4648
|
-
),
|
|
4657
|
+
), A(
|
|
4649
4658
|
r,
|
|
4650
4659
|
"mbsource",
|
|
4651
4660
|
/*mbsource*/
|
|
4652
4661
|
e[4]
|
|
4653
|
-
),
|
|
4662
|
+
), E(t, "class", "PlayerAccountLogOutArea");
|
|
4654
4663
|
},
|
|
4655
4664
|
m(n, i) {
|
|
4656
4665
|
F(n, t, i), y(t, r);
|
|
4657
4666
|
},
|
|
4658
4667
|
p(n, i) {
|
|
4659
4668
|
i[0] & /*endpoint*/
|
|
4660
|
-
2 &&
|
|
4669
|
+
2 && A(
|
|
4661
4670
|
r,
|
|
4662
4671
|
"endpoint",
|
|
4663
4672
|
/*endpoint*/
|
|
4664
4673
|
n[1]
|
|
4665
4674
|
), i[0] & /*session*/
|
|
4666
|
-
1 &&
|
|
4675
|
+
1 && A(
|
|
4667
4676
|
r,
|
|
4668
4677
|
"session",
|
|
4669
4678
|
/*session*/
|
|
4670
4679
|
n[0]
|
|
4671
4680
|
), i[0] & /*clientstyling*/
|
|
4672
|
-
4 &&
|
|
4681
|
+
4 && A(
|
|
4673
4682
|
r,
|
|
4674
4683
|
"clientstyling",
|
|
4675
4684
|
/*clientstyling*/
|
|
4676
4685
|
n[2]
|
|
4677
4686
|
), i[0] & /*clientstylingurl*/
|
|
4678
|
-
8 &&
|
|
4687
|
+
8 && A(
|
|
4679
4688
|
r,
|
|
4680
4689
|
"clientstylingurl",
|
|
4681
4690
|
/*clientstylingurl*/
|
|
4682
4691
|
n[3]
|
|
4683
4692
|
), i[0] & /*mbsource*/
|
|
4684
|
-
16 &&
|
|
4693
|
+
16 && A(
|
|
4685
4694
|
r,
|
|
4686
4695
|
"mbsource",
|
|
4687
4696
|
/*mbsource*/
|
|
@@ -4693,11 +4702,11 @@ function go(e) {
|
|
|
4693
4702
|
}
|
|
4694
4703
|
};
|
|
4695
4704
|
}
|
|
4696
|
-
function
|
|
4705
|
+
function _o(e) {
|
|
4697
4706
|
let t;
|
|
4698
4707
|
return {
|
|
4699
4708
|
c() {
|
|
4700
|
-
t =
|
|
4709
|
+
t = S("div"), t.innerHTML = '<ui-skeleton structure="title" width="30px" height="40px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="40px"></ui-skeleton>', E(t, "class", "PlayerAccountMenuCategoryWrapper");
|
|
4701
4710
|
},
|
|
4702
4711
|
m(r, n) {
|
|
4703
4712
|
F(r, t, n);
|
|
@@ -4707,11 +4716,11 @@ function yo(e) {
|
|
|
4707
4716
|
}
|
|
4708
4717
|
};
|
|
4709
4718
|
}
|
|
4710
|
-
function
|
|
4719
|
+
function xo(e) {
|
|
4711
4720
|
let t;
|
|
4712
4721
|
return {
|
|
4713
4722
|
c() {
|
|
4714
|
-
t =
|
|
4723
|
+
t = S("ui-skeleton"), A(t, "structure", "circle"), A(t, "size", "20px");
|
|
4715
4724
|
},
|
|
4716
4725
|
m(r, n) {
|
|
4717
4726
|
F(r, t, n);
|
|
@@ -4721,18 +4730,18 @@ function vo(e) {
|
|
|
4721
4730
|
}
|
|
4722
4731
|
};
|
|
4723
4732
|
}
|
|
4724
|
-
function
|
|
4733
|
+
function Vt(e) {
|
|
4725
4734
|
let t, r, n, i, o = !/*isMobile*/
|
|
4726
|
-
e[
|
|
4735
|
+
e[14] && xo();
|
|
4727
4736
|
return {
|
|
4728
4737
|
c() {
|
|
4729
|
-
t =
|
|
4738
|
+
t = S("div"), o && o.c(), r = L(), n = S("ui-skeleton"), i = L(), A(n, "structure", "rectangle"), A(n, "width", "100%"), A(
|
|
4730
4739
|
n,
|
|
4731
4740
|
"height",
|
|
4732
4741
|
/*isMobile*/
|
|
4733
|
-
e[
|
|
4734
|
-
),
|
|
4735
|
-
(e[
|
|
4742
|
+
e[14] ? "60px" : "20px"
|
|
4743
|
+
), E(t, "class", "PlayerAccountItemWrap " + /*isMobile*/
|
|
4744
|
+
(e[14] ? "PlayerAccountItemWrapMobile" : ""));
|
|
4736
4745
|
},
|
|
4737
4746
|
m(s, a) {
|
|
4738
4747
|
F(s, t, a), o && o.m(t, null), y(t, r), y(t, n), y(t, i);
|
|
@@ -4743,21 +4752,21 @@ function kt(e) {
|
|
|
4743
4752
|
}
|
|
4744
4753
|
};
|
|
4745
4754
|
}
|
|
4746
|
-
function
|
|
4755
|
+
function Eo(e) {
|
|
4747
4756
|
let t;
|
|
4748
4757
|
function r(o, s) {
|
|
4749
4758
|
return (
|
|
4750
4759
|
/*skeletonLoading*/
|
|
4751
|
-
o[
|
|
4760
|
+
o[7] ? bo : mo
|
|
4752
4761
|
);
|
|
4753
4762
|
}
|
|
4754
4763
|
let n = r(e), i = n(e);
|
|
4755
4764
|
return {
|
|
4756
4765
|
c() {
|
|
4757
|
-
t =
|
|
4766
|
+
t = S("div"), i.c();
|
|
4758
4767
|
},
|
|
4759
4768
|
m(o, s) {
|
|
4760
|
-
F(o, t, s), i.m(t, null), e[
|
|
4769
|
+
F(o, t, s), i.m(t, null), e[28](t);
|
|
4761
4770
|
},
|
|
4762
4771
|
p(o, s) {
|
|
4763
4772
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4765,154 +4774,160 @@ function _o(e) {
|
|
|
4765
4774
|
i: N,
|
|
4766
4775
|
o: N,
|
|
4767
4776
|
d(o) {
|
|
4768
|
-
o && R(t), i.d(), e[
|
|
4777
|
+
o && R(t), i.d(), e[28](null);
|
|
4769
4778
|
}
|
|
4770
4779
|
};
|
|
4771
4780
|
}
|
|
4772
|
-
function
|
|
4781
|
+
function wo(e, t, r) {
|
|
4773
4782
|
let n;
|
|
4774
|
-
|
|
4775
|
-
let { endpoint: i = "" } = t, { cmsendpoint: o = "" } = t, { env: s = "" } = t, { session: a = "" } = t, { playerid: l = "" } = t, { lang: u = "en" } = t, { selecteditem: c = "" } = t, { userroles:
|
|
4783
|
+
Fr(e, so, (p) => r(13, n = p));
|
|
4784
|
+
let { endpoint: i = "" } = t, { cmsendpoint: o = "" } = t, { env: s = "" } = t, { session: a = "" } = t, { playerid: l = "" } = t, { lang: u = "en" } = t, { selecteditem: c = "" } = t, { userroles: f = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: m } = t, { translationurl: b = "" } = t, { activemenuitem: g = "" } = t, { showaliasasusername: P = "false" } = t, M = !1, v = !1, B = !0, _, D, V = [], Ie, lt = window.navigator.userAgent, Sr = Ut(lt) !== "PC", ct = "", ht = "", Oe = "";
|
|
4776
4785
|
window.matchMedia("(min-width: 768px)");
|
|
4777
|
-
const
|
|
4778
|
-
fetch(b).then((
|
|
4779
|
-
Object.keys(
|
|
4780
|
-
|
|
4786
|
+
const Hr = () => {
|
|
4787
|
+
fetch(b).then((C) => C.json()).then((C) => {
|
|
4788
|
+
Object.keys(C).forEach((U) => {
|
|
4789
|
+
$t(U, C[U]);
|
|
4781
4790
|
});
|
|
4782
|
-
}).catch((
|
|
4783
|
-
console.error(
|
|
4791
|
+
}).catch((C) => {
|
|
4792
|
+
console.error(C);
|
|
4784
4793
|
});
|
|
4785
4794
|
};
|
|
4786
|
-
Object.keys(
|
|
4787
|
-
|
|
4795
|
+
Object.keys(Dt).forEach((p) => {
|
|
4796
|
+
$t(p, Dt[p]);
|
|
4788
4797
|
});
|
|
4789
|
-
const
|
|
4790
|
-
if (
|
|
4791
|
-
switch (
|
|
4798
|
+
const ft = (p) => {
|
|
4799
|
+
if (p.data)
|
|
4800
|
+
switch (p.data.type) {
|
|
4792
4801
|
case "AccountMenuDetails":
|
|
4793
|
-
availableMenuItemsArray =
|
|
4802
|
+
availableMenuItemsArray = p.data.accountMenuInfo;
|
|
4794
4803
|
break;
|
|
4795
4804
|
case "UserSessionID":
|
|
4796
|
-
r(0, a =
|
|
4805
|
+
r(0, a = p.data.session);
|
|
4806
|
+
break;
|
|
4807
|
+
case "AliasUpdated":
|
|
4808
|
+
P === "true" && p.data.alias && r(12, Oe = p.data.alias);
|
|
4797
4809
|
break;
|
|
4798
4810
|
}
|
|
4799
|
-
},
|
|
4800
|
-
let
|
|
4801
|
-
if (
|
|
4802
|
-
return
|
|
4803
|
-
},
|
|
4804
|
-
const
|
|
4805
|
-
|
|
4806
|
-
r(
|
|
4807
|
-
}).catch((
|
|
4808
|
-
console.error("Error getting menu items",
|
|
4811
|
+
}, Tr = () => {
|
|
4812
|
+
let p = Ut(lt);
|
|
4813
|
+
if (p)
|
|
4814
|
+
return p === "PC" ? "dk" : "mtWeb";
|
|
4815
|
+
}, Mr = () => {
|
|
4816
|
+
const p = new URL(`${o}/${u}/profile-menu?env=${s}`);
|
|
4817
|
+
p.searchParams.append("device", Tr()), fetch(p.href).then((C) => C.json()).then((C) => {
|
|
4818
|
+
r(8, V = C), mt();
|
|
4819
|
+
}).catch((C) => {
|
|
4820
|
+
console.error("Error getting menu items", C);
|
|
4809
4821
|
}).finally(() => {
|
|
4810
|
-
r(
|
|
4822
|
+
r(25, M = !0);
|
|
4811
4823
|
});
|
|
4812
|
-
},
|
|
4813
|
-
let
|
|
4814
|
-
|
|
4815
|
-
let
|
|
4824
|
+
}, Br = () => {
|
|
4825
|
+
let p = new URL(`${i}/v1/player/${l}/profile`);
|
|
4826
|
+
p.searchParams.append("userRoles", f);
|
|
4827
|
+
let C = {
|
|
4816
4828
|
method: "GET",
|
|
4817
4829
|
headers: { "X-SessionID": a }
|
|
4818
4830
|
};
|
|
4819
|
-
fetch(
|
|
4831
|
+
fetch(p.href, C).then((U) => U.json()).then(
|
|
4820
4832
|
(U) => {
|
|
4821
|
-
r(
|
|
4833
|
+
r(10, ct = U.username), r(11, ht = U.email), P === "true" && r(12, Oe = U.alias || "");
|
|
4822
4834
|
},
|
|
4823
4835
|
(U) => {
|
|
4824
4836
|
console.error(U);
|
|
4825
4837
|
}
|
|
4826
4838
|
).finally(() => {
|
|
4827
|
-
r(
|
|
4839
|
+
r(26, v = !0);
|
|
4828
4840
|
});
|
|
4829
|
-
},
|
|
4830
|
-
window.postMessage({ type: "ChangeAccountPage", page:
|
|
4831
|
-
},
|
|
4832
|
-
r(
|
|
4833
|
-
}, Mr = () => {
|
|
4834
|
-
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
|
4835
|
-
}, Br = () => {
|
|
4836
|
-
oo(u);
|
|
4841
|
+
}, pt = (p) => {
|
|
4842
|
+
window.postMessage({ type: "ChangeAccountPage", page: p }, window.location.href), r(9, Ie = p.id);
|
|
4843
|
+
}, mt = () => {
|
|
4844
|
+
r(9, Ie = V.find((p) => p.path.includes(g))?.id);
|
|
4837
4845
|
}, Ir = () => {
|
|
4838
|
-
|
|
4846
|
+
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
|
4847
|
+
}, Or = () => {
|
|
4848
|
+
ao(u);
|
|
4849
|
+
}, Cr = () => {
|
|
4850
|
+
Br();
|
|
4839
4851
|
};
|
|
4840
|
-
|
|
4841
|
-
window.removeEventListener("message",
|
|
4852
|
+
Vr(() => (window.addEventListener("message", ft, !1), () => {
|
|
4853
|
+
window.removeEventListener("message", ft);
|
|
4842
4854
|
}));
|
|
4843
|
-
const
|
|
4844
|
-
function
|
|
4845
|
-
|
|
4846
|
-
|
|
4855
|
+
const Lr = (p) => pt(p);
|
|
4856
|
+
function Nr(p) {
|
|
4857
|
+
ke[p ? "unshift" : "push"](() => {
|
|
4858
|
+
_ = p, r(6, _);
|
|
4847
4859
|
});
|
|
4848
4860
|
}
|
|
4849
|
-
return e.$$set = (
|
|
4850
|
-
"endpoint" in
|
|
4861
|
+
return e.$$set = (p) => {
|
|
4862
|
+
"endpoint" in p && r(1, i = p.endpoint), "cmsendpoint" in p && r(17, o = p.cmsendpoint), "env" in p && r(18, s = p.env), "session" in p && r(0, a = p.session), "playerid" in p && r(19, l = p.playerid), "lang" in p && r(20, u = p.lang), "selecteditem" in p && r(21, c = p.selecteditem), "userroles" in p && r(22, f = p.userroles), "clientstyling" in p && r(2, h = p.clientstyling), "clientstylingurl" in p && r(3, d = p.clientstylingurl), "mbsource" in p && r(4, m = p.mbsource), "translationurl" in p && r(23, b = p.translationurl), "activemenuitem" in p && r(24, g = p.activemenuitem), "showaliasasusername" in p && r(5, P = p.showaliasasusername);
|
|
4851
4863
|
}, e.$$.update = () => {
|
|
4852
4864
|
e.$$.dirty[0] & /*menuLoaded, playerInfoLoaded*/
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4865
|
+
100663296 && r(7, B = !M || !v), e.$$.dirty[0] & /*lang*/
|
|
4866
|
+
1048576 && u && Or(), e.$$.dirty[0] & /*endpoint, session, playerid, lang*/
|
|
4867
|
+
1572867 && i && a && l && u && Cr(), e.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
4868
|
+
1441792 && o && u && s && Mr(), e.$$.dirty[0] & /*activemenuitem*/
|
|
4869
|
+
16777216 && g && mt(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4870
|
+
68 && h && _ && uo(_, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4871
|
+
72 && d && _ && lo(_, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4872
|
+
80 && m && _ && co(_, `${m}.Style`, D), e.$$.dirty[0] & /*translationurl*/
|
|
4873
|
+
8388608 && b && Hr();
|
|
4862
4874
|
}, [
|
|
4863
4875
|
a,
|
|
4864
4876
|
i,
|
|
4865
|
-
|
|
4866
|
-
|
|
4877
|
+
h,
|
|
4878
|
+
d,
|
|
4867
4879
|
m,
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4880
|
+
P,
|
|
4881
|
+
_,
|
|
4882
|
+
B,
|
|
4871
4883
|
V,
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
n,
|
|
4875
|
-
Ar,
|
|
4884
|
+
Ie,
|
|
4885
|
+
ct,
|
|
4876
4886
|
ht,
|
|
4877
|
-
|
|
4887
|
+
Oe,
|
|
4888
|
+
n,
|
|
4889
|
+
Sr,
|
|
4890
|
+
pt,
|
|
4891
|
+
Ir,
|
|
4878
4892
|
o,
|
|
4879
4893
|
s,
|
|
4880
4894
|
l,
|
|
4881
4895
|
u,
|
|
4882
4896
|
c,
|
|
4883
|
-
|
|
4897
|
+
f,
|
|
4884
4898
|
b,
|
|
4885
4899
|
g,
|
|
4886
4900
|
M,
|
|
4887
4901
|
v,
|
|
4888
|
-
|
|
4889
|
-
|
|
4902
|
+
Lr,
|
|
4903
|
+
Nr
|
|
4890
4904
|
];
|
|
4891
4905
|
}
|
|
4892
|
-
class
|
|
4906
|
+
class Ao extends rn {
|
|
4893
4907
|
constructor(t) {
|
|
4894
|
-
super(),
|
|
4908
|
+
super(), en(
|
|
4895
4909
|
this,
|
|
4896
4910
|
t,
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4911
|
+
wo,
|
|
4912
|
+
Eo,
|
|
4913
|
+
Xt,
|
|
4900
4914
|
{
|
|
4901
4915
|
endpoint: 1,
|
|
4902
|
-
cmsendpoint:
|
|
4903
|
-
env:
|
|
4916
|
+
cmsendpoint: 17,
|
|
4917
|
+
env: 18,
|
|
4904
4918
|
session: 0,
|
|
4905
|
-
playerid:
|
|
4906
|
-
lang:
|
|
4907
|
-
selecteditem:
|
|
4908
|
-
userroles:
|
|
4919
|
+
playerid: 19,
|
|
4920
|
+
lang: 20,
|
|
4921
|
+
selecteditem: 21,
|
|
4922
|
+
userroles: 22,
|
|
4909
4923
|
clientstyling: 2,
|
|
4910
4924
|
clientstylingurl: 3,
|
|
4911
4925
|
mbsource: 4,
|
|
4912
|
-
translationurl:
|
|
4913
|
-
activemenuitem:
|
|
4926
|
+
translationurl: 23,
|
|
4927
|
+
activemenuitem: 24,
|
|
4928
|
+
showaliasasusername: 5
|
|
4914
4929
|
},
|
|
4915
|
-
|
|
4930
|
+
po,
|
|
4916
4931
|
[-1, -1]
|
|
4917
4932
|
);
|
|
4918
4933
|
}
|
|
@@ -4920,110 +4935,116 @@ class Eo extends en {
|
|
|
4920
4935
|
return this.$$.ctx[1];
|
|
4921
4936
|
}
|
|
4922
4937
|
set endpoint(t) {
|
|
4923
|
-
this.$$set({ endpoint: t }),
|
|
4938
|
+
this.$$set({ endpoint: t }), I();
|
|
4924
4939
|
}
|
|
4925
4940
|
get cmsendpoint() {
|
|
4926
|
-
return this.$$.ctx[
|
|
4941
|
+
return this.$$.ctx[17];
|
|
4927
4942
|
}
|
|
4928
4943
|
set cmsendpoint(t) {
|
|
4929
|
-
this.$$set({ cmsendpoint: t }),
|
|
4944
|
+
this.$$set({ cmsendpoint: t }), I();
|
|
4930
4945
|
}
|
|
4931
4946
|
get env() {
|
|
4932
|
-
return this.$$.ctx[
|
|
4947
|
+
return this.$$.ctx[18];
|
|
4933
4948
|
}
|
|
4934
4949
|
set env(t) {
|
|
4935
|
-
this.$$set({ env: t }),
|
|
4950
|
+
this.$$set({ env: t }), I();
|
|
4936
4951
|
}
|
|
4937
4952
|
get session() {
|
|
4938
4953
|
return this.$$.ctx[0];
|
|
4939
4954
|
}
|
|
4940
4955
|
set session(t) {
|
|
4941
|
-
this.$$set({ session: t }),
|
|
4956
|
+
this.$$set({ session: t }), I();
|
|
4942
4957
|
}
|
|
4943
4958
|
get playerid() {
|
|
4944
|
-
return this.$$.ctx[
|
|
4959
|
+
return this.$$.ctx[19];
|
|
4945
4960
|
}
|
|
4946
4961
|
set playerid(t) {
|
|
4947
|
-
this.$$set({ playerid: t }),
|
|
4962
|
+
this.$$set({ playerid: t }), I();
|
|
4948
4963
|
}
|
|
4949
4964
|
get lang() {
|
|
4950
|
-
return this.$$.ctx[
|
|
4965
|
+
return this.$$.ctx[20];
|
|
4951
4966
|
}
|
|
4952
4967
|
set lang(t) {
|
|
4953
|
-
this.$$set({ lang: t }),
|
|
4968
|
+
this.$$set({ lang: t }), I();
|
|
4954
4969
|
}
|
|
4955
4970
|
get selecteditem() {
|
|
4956
|
-
return this.$$.ctx[
|
|
4971
|
+
return this.$$.ctx[21];
|
|
4957
4972
|
}
|
|
4958
4973
|
set selecteditem(t) {
|
|
4959
|
-
this.$$set({ selecteditem: t }),
|
|
4974
|
+
this.$$set({ selecteditem: t }), I();
|
|
4960
4975
|
}
|
|
4961
4976
|
get userroles() {
|
|
4962
|
-
return this.$$.ctx[
|
|
4977
|
+
return this.$$.ctx[22];
|
|
4963
4978
|
}
|
|
4964
4979
|
set userroles(t) {
|
|
4965
|
-
this.$$set({ userroles: t }),
|
|
4980
|
+
this.$$set({ userroles: t }), I();
|
|
4966
4981
|
}
|
|
4967
4982
|
get clientstyling() {
|
|
4968
4983
|
return this.$$.ctx[2];
|
|
4969
4984
|
}
|
|
4970
4985
|
set clientstyling(t) {
|
|
4971
|
-
this.$$set({ clientstyling: t }),
|
|
4986
|
+
this.$$set({ clientstyling: t }), I();
|
|
4972
4987
|
}
|
|
4973
4988
|
get clientstylingurl() {
|
|
4974
4989
|
return this.$$.ctx[3];
|
|
4975
4990
|
}
|
|
4976
4991
|
set clientstylingurl(t) {
|
|
4977
|
-
this.$$set({ clientstylingurl: t }),
|
|
4992
|
+
this.$$set({ clientstylingurl: t }), I();
|
|
4978
4993
|
}
|
|
4979
4994
|
get mbsource() {
|
|
4980
4995
|
return this.$$.ctx[4];
|
|
4981
4996
|
}
|
|
4982
4997
|
set mbsource(t) {
|
|
4983
|
-
this.$$set({ mbsource: t }),
|
|
4998
|
+
this.$$set({ mbsource: t }), I();
|
|
4984
4999
|
}
|
|
4985
5000
|
get translationurl() {
|
|
4986
|
-
return this.$$.ctx[
|
|
5001
|
+
return this.$$.ctx[23];
|
|
4987
5002
|
}
|
|
4988
5003
|
set translationurl(t) {
|
|
4989
|
-
this.$$set({ translationurl: t }),
|
|
5004
|
+
this.$$set({ translationurl: t }), I();
|
|
4990
5005
|
}
|
|
4991
5006
|
get activemenuitem() {
|
|
4992
|
-
return this.$$.ctx[
|
|
5007
|
+
return this.$$.ctx[24];
|
|
4993
5008
|
}
|
|
4994
5009
|
set activemenuitem(t) {
|
|
4995
|
-
this.$$set({ activemenuitem: t }),
|
|
5010
|
+
this.$$set({ activemenuitem: t }), I();
|
|
5011
|
+
}
|
|
5012
|
+
get showaliasasusername() {
|
|
5013
|
+
return this.$$.ctx[5];
|
|
5014
|
+
}
|
|
5015
|
+
set showaliasasusername(t) {
|
|
5016
|
+
this.$$set({ showaliasasusername: t }), I();
|
|
4996
5017
|
}
|
|
4997
5018
|
}
|
|
4998
|
-
|
|
5019
|
+
tn(Ao, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, activemenuitem: {}, showaliasasusername: {} }, [], [], !0);
|
|
4999
5020
|
export {
|
|
5000
5021
|
ie as $,
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5022
|
+
Ao as P,
|
|
5023
|
+
rn as S,
|
|
5024
|
+
xr as a,
|
|
5025
|
+
Ur as b,
|
|
5026
|
+
tn as c,
|
|
5006
5027
|
R as d,
|
|
5007
5028
|
F as e,
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5029
|
+
I as f,
|
|
5030
|
+
S as g,
|
|
5031
|
+
Fr as h,
|
|
5032
|
+
en as i,
|
|
5033
|
+
Ut as j,
|
|
5034
|
+
ke as k,
|
|
5014
5035
|
y as l,
|
|
5015
|
-
|
|
5036
|
+
Ge as m,
|
|
5016
5037
|
N as n,
|
|
5017
|
-
|
|
5038
|
+
Vr as o,
|
|
5018
5039
|
W as p,
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5040
|
+
L as q,
|
|
5041
|
+
E as r,
|
|
5042
|
+
Xt as s,
|
|
5022
5043
|
J as t,
|
|
5023
|
-
|
|
5044
|
+
So as u,
|
|
5024
5045
|
_e as v,
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5046
|
+
so as w,
|
|
5047
|
+
uo as x,
|
|
5048
|
+
lo as y,
|
|
5049
|
+
co as z
|
|
5029
5050
|
};
|