@everymatrix/player-account-menu-nd 1.91.0 → 1.91.2
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,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var jr = Object.defineProperty, Vr = Object.defineProperties;
|
|
2
|
+
var Wr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var gt = Object.getOwnPropertySymbols;
|
|
4
|
+
var Xr = Object.prototype.hasOwnProperty, zr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Le = (e, t, r) => t in e ? jr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Xr.call(t, r) && Le(e, r, t[r]);
|
|
8
|
+
if (gt)
|
|
9
|
+
for (var r of gt(t))
|
|
10
|
+
zr.call(t, r) && Le(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var N = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, vt = (e, t) => Vr(e, Wr(t));
|
|
13
|
+
var N = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var _t = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -30,29 +30,29 @@ var yt = (e, t, r) => new Promise((n, i) => {
|
|
|
30
30
|
import "../stencil/ui-skeleton-xXZA3rYO.js";
|
|
31
31
|
function R() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Jt(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function xt() {
|
|
37
37
|
return /* @__PURE__ */ Object.create(null);
|
|
38
38
|
}
|
|
39
39
|
function ne(e) {
|
|
40
|
-
e.forEach(
|
|
40
|
+
e.forEach(Jt);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ut(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Yt(e, t) {
|
|
46
46
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
47
47
|
}
|
|
48
48
|
let me;
|
|
49
|
-
function
|
|
49
|
+
function Et(e, t) {
|
|
50
50
|
return e === t ? !0 : (me || (me = document.createElement("a")), me.href = t, e === me.href);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Zr(e) {
|
|
53
53
|
return Object.keys(e).length === 0;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Kt(e, ...t) {
|
|
56
56
|
if (e == null) {
|
|
57
57
|
for (const n of t)
|
|
58
58
|
n(void 0);
|
|
@@ -61,20 +61,20 @@ function Jt(e, ...t) {
|
|
|
61
61
|
const r = e.subscribe(...t);
|
|
62
62
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
e.$$.on_destroy.push(
|
|
64
|
+
function Qr(e, t, r) {
|
|
65
|
+
e.$$.on_destroy.push(Kt(t, r));
|
|
66
66
|
}
|
|
67
67
|
function y(e, t) {
|
|
68
68
|
e.appendChild(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const n =
|
|
70
|
+
function qr(e, t, r) {
|
|
71
|
+
const n = Jr(e);
|
|
72
72
|
if (!n.getElementById(t)) {
|
|
73
|
-
const i =
|
|
74
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
const i = S("style");
|
|
74
|
+
i.id = t, i.textContent = r, Yr(n, i);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Jr(e) {
|
|
78
78
|
if (!e)
|
|
79
79
|
return document;
|
|
80
80
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -84,24 +84,24 @@ function Qr(e) {
|
|
|
84
84
|
t
|
|
85
85
|
) : e.ownerDocument;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Yr(e, t) {
|
|
88
88
|
return y(
|
|
89
89
|
/** @type {Document} */
|
|
90
90
|
e.head || e,
|
|
91
91
|
t
|
|
92
92
|
), t.sheet;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function U(e, t, r) {
|
|
95
95
|
e.insertBefore(t, r || null);
|
|
96
96
|
}
|
|
97
97
|
function F(e) {
|
|
98
98
|
e.parentNode && e.parentNode.removeChild(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function er(e, t) {
|
|
101
101
|
for (let r = 0; r < e.length; r += 1)
|
|
102
102
|
e[r] && e[r].d(t);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function S(e) {
|
|
105
105
|
return document.createElement(e);
|
|
106
106
|
}
|
|
107
107
|
function X(e) {
|
|
@@ -110,30 +110,30 @@ function X(e) {
|
|
|
110
110
|
function Y(e) {
|
|
111
111
|
return document.createTextNode(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function L() {
|
|
114
114
|
return Y(" ");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function je(e, t, r, n) {
|
|
117
117
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function E(e, t, r) {
|
|
120
120
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function A(e, t, r) {
|
|
123
123
|
const n = t.toLowerCase();
|
|
124
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
124
|
+
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);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Kr(e) {
|
|
127
127
|
return Array.from(e.childNodes);
|
|
128
128
|
}
|
|
129
129
|
function xe(e, t) {
|
|
130
130
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
131
131
|
t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Uo(e, t, r, n) {
|
|
134
134
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function en(e) {
|
|
137
137
|
const t = {};
|
|
138
138
|
return e.childNodes.forEach(
|
|
139
139
|
/** @param {Element} node */
|
|
@@ -146,27 +146,27 @@ let le;
|
|
|
146
146
|
function ue(e) {
|
|
147
147
|
le = e;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function tn() {
|
|
150
150
|
if (!le)
|
|
151
151
|
throw new Error("Function called outside component initialization");
|
|
152
152
|
return le;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
154
|
+
function rn(e) {
|
|
155
|
+
tn().$$.on_mount.push(e);
|
|
156
156
|
}
|
|
157
|
-
const Q = [],
|
|
157
|
+
const Q = [], Ve = [];
|
|
158
158
|
let J = [];
|
|
159
|
-
const
|
|
160
|
-
let
|
|
161
|
-
function
|
|
162
|
-
|
|
159
|
+
const wt = [], nn = /* @__PURE__ */ Promise.resolve();
|
|
160
|
+
let We = !1;
|
|
161
|
+
function on() {
|
|
162
|
+
We || (We = !0, nn.then(O));
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Xe(e) {
|
|
165
165
|
J.push(e);
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
168
168
|
let z = 0;
|
|
169
|
-
function
|
|
169
|
+
function O() {
|
|
170
170
|
if (z !== 0)
|
|
171
171
|
return;
|
|
172
172
|
const e = le;
|
|
@@ -174,56 +174,56 @@ function I() {
|
|
|
174
174
|
try {
|
|
175
175
|
for (; z < Q.length; ) {
|
|
176
176
|
const t = Q[z];
|
|
177
|
-
z++, ue(t),
|
|
177
|
+
z++, ue(t), sn(t.$$);
|
|
178
178
|
}
|
|
179
179
|
} catch (t) {
|
|
180
180
|
throw Q.length = 0, z = 0, t;
|
|
181
181
|
}
|
|
182
|
-
for (ue(null), Q.length = 0, z = 0;
|
|
183
|
-
|
|
182
|
+
for (ue(null), Q.length = 0, z = 0; Ve.length; )
|
|
183
|
+
Ve.pop()();
|
|
184
184
|
for (let t = 0; t < J.length; t += 1) {
|
|
185
185
|
const r = J[t];
|
|
186
|
-
|
|
186
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
187
187
|
}
|
|
188
188
|
J.length = 0;
|
|
189
189
|
} while (Q.length);
|
|
190
|
-
for (;
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
for (; wt.length; )
|
|
191
|
+
wt.pop()();
|
|
192
|
+
We = !1, Ne.clear(), ue(e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function sn(e) {
|
|
195
195
|
if (e.fragment !== null) {
|
|
196
196
|
e.update(), ne(e.before_update);
|
|
197
197
|
const t = e.dirty;
|
|
198
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
198
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function an(e) {
|
|
202
202
|
const t = [], r = [];
|
|
203
203
|
J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
|
|
204
204
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
207
|
-
e && e.i && (
|
|
205
|
+
const un = /* @__PURE__ */ new Set();
|
|
206
|
+
function ln(e, t) {
|
|
207
|
+
e && e.i && (un.delete(e), e.i(t));
|
|
208
208
|
}
|
|
209
209
|
function Ee(e) {
|
|
210
210
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function cn(e, t, r) {
|
|
213
213
|
const { fragment: n, after_update: i } = e.$$;
|
|
214
|
-
n && n.m(t, r),
|
|
215
|
-
const o = e.$$.on_mount.map(
|
|
214
|
+
n && n.m(t, r), Xe(() => {
|
|
215
|
+
const o = e.$$.on_mount.map(Jt).filter(ut);
|
|
216
216
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
|
|
217
|
-
}), i.forEach(
|
|
217
|
+
}), i.forEach(Xe);
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function hn(e, t) {
|
|
220
220
|
const r = e.$$;
|
|
221
|
-
r.fragment !== null && (
|
|
221
|
+
r.fragment !== null && (an(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
|
223
|
+
function fn(e, t) {
|
|
224
|
+
e.$$.dirty[0] === -1 && (Q.push(e), on(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function pn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
227
227
|
const l = le;
|
|
228
228
|
ue(e);
|
|
229
229
|
const u = e.$$ = {
|
|
@@ -233,7 +233,7 @@ function hn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
233
233
|
props: o,
|
|
234
234
|
update: R,
|
|
235
235
|
not_equal: i,
|
|
236
|
-
bound:
|
|
236
|
+
bound: xt(),
|
|
237
237
|
// lifecycle
|
|
238
238
|
on_mount: [],
|
|
239
239
|
on_destroy: [],
|
|
@@ -242,28 +242,28 @@ function hn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
242
242
|
after_update: [],
|
|
243
243
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
244
244
|
// everything else
|
|
245
|
-
callbacks:
|
|
245
|
+
callbacks: xt(),
|
|
246
246
|
dirty: a,
|
|
247
247
|
skip_bound: !1,
|
|
248
248
|
root: t.target || l.$$.root
|
|
249
249
|
};
|
|
250
250
|
s && s(u.root);
|
|
251
251
|
let c = !1;
|
|
252
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
253
|
-
const m =
|
|
254
|
-
return u.ctx && i(u.ctx[
|
|
252
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, h, ...d) => {
|
|
253
|
+
const m = d.length ? d[0] : h;
|
|
254
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && fn(e, f)), h;
|
|
255
255
|
}) : [], u.update(), c = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
256
256
|
if (t.hydrate) {
|
|
257
|
-
const
|
|
258
|
-
u.fragment && u.fragment.l(
|
|
257
|
+
const f = Kr(t.target);
|
|
258
|
+
u.fragment && u.fragment.l(f), f.forEach(F);
|
|
259
259
|
} else
|
|
260
260
|
u.fragment && u.fragment.c();
|
|
261
|
-
t.intro &&
|
|
261
|
+
t.intro && ln(e.$$.fragment), cn(e, t.target, t.anchor), O();
|
|
262
262
|
}
|
|
263
263
|
ue(l);
|
|
264
264
|
}
|
|
265
|
-
let
|
|
266
|
-
typeof HTMLElement == "function" && (
|
|
265
|
+
let tr;
|
|
266
|
+
typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
267
267
|
constructor(t, r, n) {
|
|
268
268
|
super();
|
|
269
269
|
/** The Svelte component constructor */
|
|
@@ -300,21 +300,21 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
connectedCallback() {
|
|
303
|
-
return
|
|
303
|
+
return _t(this, null, function* () {
|
|
304
304
|
if (this.$$cn = !0, !this.$$c) {
|
|
305
305
|
let t = function(o) {
|
|
306
306
|
return () => {
|
|
307
307
|
let s;
|
|
308
308
|
return {
|
|
309
309
|
c: function() {
|
|
310
|
-
s =
|
|
310
|
+
s = S("slot"), o !== "default" && E(s, "name", o);
|
|
311
311
|
},
|
|
312
312
|
/**
|
|
313
313
|
* @param {HTMLElement} target
|
|
314
314
|
* @param {HTMLElement} [anchor]
|
|
315
315
|
*/
|
|
316
316
|
m: function(u, c) {
|
|
317
|
-
|
|
317
|
+
U(u, s, c);
|
|
318
318
|
},
|
|
319
319
|
d: function(u) {
|
|
320
320
|
u && F(s);
|
|
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
324
324
|
};
|
|
325
325
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
326
326
|
return;
|
|
327
|
-
const r = {}, n =
|
|
327
|
+
const r = {}, n = en(this);
|
|
328
328
|
for (const o of this.$$s)
|
|
329
329
|
o in n && (r[o] = [t(o)]);
|
|
330
330
|
for (const o of this.attributes) {
|
|
@@ -335,7 +335,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
335
335
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
336
336
|
this.$$c = new this.$$ctor({
|
|
337
337
|
target: this.shadowRoot || this,
|
|
338
|
-
props:
|
|
338
|
+
props: vt(yt({}, this.$$d), {
|
|
339
339
|
$$slots: r,
|
|
340
340
|
$$scope: {
|
|
341
341
|
ctx: []
|
|
@@ -413,8 +413,8 @@ function ge(e, t, r, n) {
|
|
|
413
413
|
return t;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
let s = class extends
|
|
416
|
+
function mn(e, t, r, n, i, o) {
|
|
417
|
+
let s = class extends tr {
|
|
418
418
|
constructor() {
|
|
419
419
|
super(e, r, i), this.$$p_d = t;
|
|
420
420
|
}
|
|
@@ -444,7 +444,7 @@ function fn(e, t, r, n, i, o) {
|
|
|
444
444
|
}), e.element = /** @type {any} */
|
|
445
445
|
s, s;
|
|
446
446
|
}
|
|
447
|
-
class
|
|
447
|
+
class dn {
|
|
448
448
|
constructor() {
|
|
449
449
|
/**
|
|
450
450
|
* ### PRIVATE API
|
|
@@ -465,7 +465,7 @@ class pn {
|
|
|
465
465
|
}
|
|
466
466
|
/** @returns {void} */
|
|
467
467
|
$destroy() {
|
|
468
|
-
|
|
468
|
+
hn(this, 1), this.$destroy = R;
|
|
469
469
|
}
|
|
470
470
|
/**
|
|
471
471
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -474,7 +474,7 @@ class pn {
|
|
|
474
474
|
* @returns {() => void}
|
|
475
475
|
*/
|
|
476
476
|
$on(t, r) {
|
|
477
|
-
if (!
|
|
477
|
+
if (!ut(r))
|
|
478
478
|
return R;
|
|
479
479
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
480
480
|
return n.push(r), () => {
|
|
@@ -487,11 +487,11 @@ class pn {
|
|
|
487
487
|
* @returns {void}
|
|
488
488
|
*/
|
|
489
489
|
$set(t) {
|
|
490
|
-
this.$$set && !
|
|
490
|
+
this.$$set && !Zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
const
|
|
494
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
493
|
+
const bn = "4";
|
|
494
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(bn);
|
|
495
495
|
/*! *****************************************************************************
|
|
496
496
|
Copyright (c) Microsoft Corporation.
|
|
497
497
|
|
|
@@ -506,24 +506,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
506
506
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
507
507
|
PERFORMANCE OF THIS SOFTWARE.
|
|
508
508
|
***************************************************************************** */
|
|
509
|
-
var
|
|
510
|
-
return
|
|
509
|
+
var ze = function(e, t) {
|
|
510
|
+
return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
511
511
|
r.__proto__ = n;
|
|
512
512
|
} || function(r, n) {
|
|
513
513
|
for (var i in n)
|
|
514
514
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
515
|
-
},
|
|
515
|
+
}, ze(e, t);
|
|
516
516
|
};
|
|
517
517
|
function fe(e, t) {
|
|
518
518
|
if (typeof t != "function" && t !== null)
|
|
519
519
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
520
|
-
|
|
520
|
+
ze(e, t);
|
|
521
521
|
function r() {
|
|
522
522
|
this.constructor = e;
|
|
523
523
|
}
|
|
524
524
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Ze(e) {
|
|
527
527
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
528
528
|
if (r)
|
|
529
529
|
return r.call(e);
|
|
@@ -535,7 +535,7 @@ function Xe(e) {
|
|
|
535
535
|
};
|
|
536
536
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Qe(e, t) {
|
|
539
539
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
540
540
|
if (!r)
|
|
541
541
|
return e;
|
|
@@ -555,22 +555,22 @@ function ze(e, t) {
|
|
|
555
555
|
}
|
|
556
556
|
return o;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function qe(e, t, r) {
|
|
559
559
|
if (arguments.length === 2)
|
|
560
560
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
561
561
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
562
562
|
return e.concat(o || t);
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function k(e) {
|
|
565
565
|
return typeof e == "function";
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function rr(e) {
|
|
568
568
|
var t = function(n) {
|
|
569
569
|
Error.call(n), n.stack = new Error().stack;
|
|
570
570
|
}, r = e(t);
|
|
571
571
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
572
572
|
}
|
|
573
|
-
var
|
|
573
|
+
var Re = rr(function(e) {
|
|
574
574
|
return function(r) {
|
|
575
575
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
576
576
|
` + r.map(function(n, i) {
|
|
@@ -579,7 +579,7 @@ var Le = er(function(e) {
|
|
|
579
579
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
580
580
|
};
|
|
581
581
|
});
|
|
582
|
-
function
|
|
582
|
+
function Je(e, t) {
|
|
583
583
|
if (e) {
|
|
584
584
|
var r = e.indexOf(t);
|
|
585
585
|
0 <= r && e.splice(r, 1);
|
|
@@ -597,7 +597,7 @@ var Se = function() {
|
|
|
597
597
|
if (s)
|
|
598
598
|
if (this._parentage = null, Array.isArray(s))
|
|
599
599
|
try {
|
|
600
|
-
for (var a =
|
|
600
|
+
for (var a = Ze(s), l = a.next(); !l.done; l = a.next()) {
|
|
601
601
|
var u = l.value;
|
|
602
602
|
u.remove(this);
|
|
603
603
|
}
|
|
@@ -614,29 +614,29 @@ var Se = function() {
|
|
|
614
614
|
else
|
|
615
615
|
s.remove(this);
|
|
616
616
|
var c = this.initialTeardown;
|
|
617
|
-
if (
|
|
617
|
+
if (k(c))
|
|
618
618
|
try {
|
|
619
619
|
c();
|
|
620
620
|
} catch (b) {
|
|
621
|
-
o = b instanceof
|
|
621
|
+
o = b instanceof Re ? b.errors : [b];
|
|
622
622
|
}
|
|
623
|
-
var
|
|
624
|
-
if (
|
|
623
|
+
var f = this._finalizers;
|
|
624
|
+
if (f) {
|
|
625
625
|
this._finalizers = null;
|
|
626
626
|
try {
|
|
627
|
-
for (var
|
|
628
|
-
var m =
|
|
627
|
+
for (var h = Ze(f), d = h.next(); !d.done; d = h.next()) {
|
|
628
|
+
var m = d.value;
|
|
629
629
|
try {
|
|
630
|
-
|
|
630
|
+
At(m);
|
|
631
631
|
} catch (b) {
|
|
632
|
-
o = o != null ? o : [], b instanceof
|
|
632
|
+
o = o != null ? o : [], b instanceof Re ? o = qe(qe([], Qe(o)), Qe(b.errors)) : o.push(b);
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
} catch (b) {
|
|
636
636
|
n = { error: b };
|
|
637
637
|
} finally {
|
|
638
638
|
try {
|
|
639
|
-
|
|
639
|
+
d && !d.done && (i = h.return) && i.call(h);
|
|
640
640
|
} finally {
|
|
641
641
|
if (n)
|
|
642
642
|
throw n.error;
|
|
@@ -644,13 +644,13 @@ var Se = function() {
|
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
if (o)
|
|
647
|
-
throw new
|
|
647
|
+
throw new Re(o);
|
|
648
648
|
}
|
|
649
649
|
}, e.prototype.add = function(t) {
|
|
650
650
|
var r;
|
|
651
651
|
if (t && t !== this)
|
|
652
652
|
if (this.closed)
|
|
653
|
-
|
|
653
|
+
At(t);
|
|
654
654
|
else {
|
|
655
655
|
if (t instanceof e) {
|
|
656
656
|
if (t.closed || t._hasParent(this))
|
|
@@ -667,52 +667,52 @@ var Se = function() {
|
|
|
667
667
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
668
668
|
}, e.prototype._removeParent = function(t) {
|
|
669
669
|
var r = this._parentage;
|
|
670
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
670
|
+
r === t ? this._parentage = null : Array.isArray(r) && Je(r, t);
|
|
671
671
|
}, e.prototype.remove = function(t) {
|
|
672
672
|
var r = this._finalizers;
|
|
673
|
-
r &&
|
|
673
|
+
r && Je(r, t), t instanceof e && t._removeParent(this);
|
|
674
674
|
}, e.EMPTY = function() {
|
|
675
675
|
var t = new e();
|
|
676
676
|
return t.closed = !0, t;
|
|
677
677
|
}(), e;
|
|
678
|
-
}(),
|
|
679
|
-
function
|
|
680
|
-
return e instanceof Se || e && "closed" in e &&
|
|
678
|
+
}(), nr = Se.EMPTY;
|
|
679
|
+
function ir(e) {
|
|
680
|
+
return e instanceof Se || e && "closed" in e && k(e.remove) && k(e.add) && k(e.unsubscribe);
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
|
|
682
|
+
function At(e) {
|
|
683
|
+
k(e) ? e() : e.unsubscribe();
|
|
684
684
|
}
|
|
685
|
-
var
|
|
685
|
+
var gn = {
|
|
686
686
|
Promise: void 0
|
|
687
|
-
},
|
|
687
|
+
}, yn = {
|
|
688
688
|
setTimeout: function(e, t) {
|
|
689
689
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
690
690
|
r[n - 2] = arguments[n];
|
|
691
|
-
return setTimeout.apply(void 0,
|
|
691
|
+
return setTimeout.apply(void 0, qe([e, t], Qe(r)));
|
|
692
692
|
},
|
|
693
693
|
clearTimeout: function(e) {
|
|
694
694
|
return clearTimeout(e);
|
|
695
695
|
},
|
|
696
696
|
delegate: void 0
|
|
697
697
|
};
|
|
698
|
-
function
|
|
699
|
-
|
|
698
|
+
function vn(e) {
|
|
699
|
+
yn.setTimeout(function() {
|
|
700
700
|
throw e;
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Pt() {
|
|
704
704
|
}
|
|
705
705
|
function ye(e) {
|
|
706
706
|
e();
|
|
707
707
|
}
|
|
708
|
-
var
|
|
708
|
+
var or = function(e) {
|
|
709
709
|
fe(t, e);
|
|
710
710
|
function t(r) {
|
|
711
711
|
var n = e.call(this) || this;
|
|
712
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
712
|
+
return n.isStopped = !1, r ? (n.destination = r, ir(r) && r.add(n)) : n.destination = En, n;
|
|
713
713
|
}
|
|
714
714
|
return t.create = function(r, n, i) {
|
|
715
|
-
return new
|
|
715
|
+
return new Ye(r, n, i);
|
|
716
716
|
}, t.prototype.next = function(r) {
|
|
717
717
|
this.isStopped || this._next(r);
|
|
718
718
|
}, t.prototype.error = function(r) {
|
|
@@ -736,7 +736,7 @@ var nr = function(e) {
|
|
|
736
736
|
this.unsubscribe();
|
|
737
737
|
}
|
|
738
738
|
}, t;
|
|
739
|
-
}(Se),
|
|
739
|
+
}(Se), _n = function() {
|
|
740
740
|
function e(t) {
|
|
741
741
|
this.partialObserver = t;
|
|
742
742
|
}
|
|
@@ -767,43 +767,43 @@ var nr = function(e) {
|
|
|
767
767
|
de(r);
|
|
768
768
|
}
|
|
769
769
|
}, e;
|
|
770
|
-
}(),
|
|
770
|
+
}(), Ye = function(e) {
|
|
771
771
|
fe(t, e);
|
|
772
772
|
function t(r, n, i) {
|
|
773
773
|
var o = e.call(this) || this, s;
|
|
774
|
-
return
|
|
774
|
+
return k(r) || !r ? s = {
|
|
775
775
|
next: r != null ? r : void 0,
|
|
776
776
|
error: n != null ? n : void 0,
|
|
777
777
|
complete: i != null ? i : void 0
|
|
778
|
-
} : s = r, o.destination = new
|
|
778
|
+
} : s = r, o.destination = new _n(s), o;
|
|
779
779
|
}
|
|
780
780
|
return t;
|
|
781
|
-
}(
|
|
781
|
+
}(or);
|
|
782
782
|
function de(e) {
|
|
783
|
-
|
|
783
|
+
vn(e);
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function xn(e) {
|
|
786
786
|
throw e;
|
|
787
787
|
}
|
|
788
|
-
var
|
|
788
|
+
var En = {
|
|
789
789
|
closed: !0,
|
|
790
|
-
next:
|
|
791
|
-
error:
|
|
792
|
-
complete:
|
|
793
|
-
},
|
|
790
|
+
next: Pt,
|
|
791
|
+
error: xn,
|
|
792
|
+
complete: Pt
|
|
793
|
+
}, wn = function() {
|
|
794
794
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
795
795
|
}();
|
|
796
|
-
function
|
|
796
|
+
function An(e) {
|
|
797
797
|
return e;
|
|
798
798
|
}
|
|
799
|
-
function
|
|
800
|
-
return e.length === 0 ?
|
|
799
|
+
function Pn(e) {
|
|
800
|
+
return e.length === 0 ? An : e.length === 1 ? e[0] : function(r) {
|
|
801
801
|
return e.reduce(function(n, i) {
|
|
802
802
|
return i(n);
|
|
803
803
|
}, r);
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
|
-
var
|
|
806
|
+
var St = function() {
|
|
807
807
|
function e(t) {
|
|
808
808
|
t && (this._subscribe = t);
|
|
809
809
|
}
|
|
@@ -811,7 +811,7 @@ var At = function() {
|
|
|
811
811
|
var r = new e();
|
|
812
812
|
return r.source = this, r.operator = t, r;
|
|
813
813
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
814
|
-
var i = this, o =
|
|
814
|
+
var i = this, o = Tn(t) ? t : new Ye(t, r, n);
|
|
815
815
|
return ye(function() {
|
|
816
816
|
var s = i, a = s.operator, l = s.source;
|
|
817
817
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -824,8 +824,8 @@ var At = function() {
|
|
|
824
824
|
}
|
|
825
825
|
}, e.prototype.forEach = function(t, r) {
|
|
826
826
|
var n = this;
|
|
827
|
-
return r =
|
|
828
|
-
var s = new
|
|
827
|
+
return r = Tt(r), new r(function(i, o) {
|
|
828
|
+
var s = new Ye({
|
|
829
829
|
next: function(a) {
|
|
830
830
|
try {
|
|
831
831
|
t(a);
|
|
@@ -841,15 +841,15 @@ var At = function() {
|
|
|
841
841
|
}, e.prototype._subscribe = function(t) {
|
|
842
842
|
var r;
|
|
843
843
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
844
|
-
}, e.prototype[
|
|
844
|
+
}, e.prototype[wn] = function() {
|
|
845
845
|
return this;
|
|
846
846
|
}, e.prototype.pipe = function() {
|
|
847
847
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
848
848
|
t[r] = arguments[r];
|
|
849
|
-
return
|
|
849
|
+
return Pn(t)(this);
|
|
850
850
|
}, e.prototype.toPromise = function(t) {
|
|
851
851
|
var r = this;
|
|
852
|
-
return t =
|
|
852
|
+
return t = Tt(t), new t(function(n, i) {
|
|
853
853
|
var o;
|
|
854
854
|
r.subscribe(function(s) {
|
|
855
855
|
return o = s;
|
|
@@ -863,32 +863,32 @@ var At = function() {
|
|
|
863
863
|
return new e(t);
|
|
864
864
|
}, e;
|
|
865
865
|
}();
|
|
866
|
-
function
|
|
866
|
+
function Tt(e) {
|
|
867
867
|
var t;
|
|
868
|
-
return (t = e != null ? e :
|
|
868
|
+
return (t = e != null ? e : gn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
871
|
-
return e &&
|
|
870
|
+
function Sn(e) {
|
|
871
|
+
return e && k(e.next) && k(e.error) && k(e.complete);
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
return e && e instanceof
|
|
873
|
+
function Tn(e) {
|
|
874
|
+
return e && e instanceof or || Sn(e) && ir(e);
|
|
875
875
|
}
|
|
876
|
-
var
|
|
876
|
+
var Hn = rr(function(e) {
|
|
877
877
|
return function() {
|
|
878
878
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
879
879
|
};
|
|
880
|
-
}),
|
|
880
|
+
}), sr = function(e) {
|
|
881
881
|
fe(t, e);
|
|
882
882
|
function t() {
|
|
883
883
|
var r = e.call(this) || this;
|
|
884
884
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
885
885
|
}
|
|
886
886
|
return t.prototype.lift = function(r) {
|
|
887
|
-
var n = new
|
|
887
|
+
var n = new Ht(this, this);
|
|
888
888
|
return n.operator = r, n;
|
|
889
889
|
}, t.prototype._throwIfClosed = function() {
|
|
890
890
|
if (this.closed)
|
|
891
|
-
throw new
|
|
891
|
+
throw new Hn();
|
|
892
892
|
}, t.prototype.next = function(r) {
|
|
893
893
|
var n = this;
|
|
894
894
|
ye(function() {
|
|
@@ -896,7 +896,7 @@ var Sn = er(function(e) {
|
|
|
896
896
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
897
897
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
898
898
|
try {
|
|
899
|
-
for (var s =
|
|
899
|
+
for (var s = Ze(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
900
900
|
var l = a.value;
|
|
901
901
|
l.next(r);
|
|
902
902
|
}
|
|
@@ -945,19 +945,19 @@ var Sn = er(function(e) {
|
|
|
945
945
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
946
946
|
}, t.prototype._innerSubscribe = function(r) {
|
|
947
947
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
948
|
-
return o || s ?
|
|
949
|
-
n.currentObservers = null,
|
|
948
|
+
return o || s ? nr : (this.currentObservers = null, a.push(r), new Se(function() {
|
|
949
|
+
n.currentObservers = null, Je(a, r);
|
|
950
950
|
}));
|
|
951
951
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
952
952
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
953
953
|
i ? r.error(o) : s && r.complete();
|
|
954
954
|
}, t.prototype.asObservable = function() {
|
|
955
|
-
var r = new
|
|
955
|
+
var r = new St();
|
|
956
956
|
return r.source = this, r;
|
|
957
957
|
}, t.create = function(r, n) {
|
|
958
|
-
return new
|
|
958
|
+
return new Ht(r, n);
|
|
959
959
|
}, t;
|
|
960
|
-
}(
|
|
960
|
+
}(St), Ht = function(e) {
|
|
961
961
|
fe(t, e);
|
|
962
962
|
function t(r, n) {
|
|
963
963
|
var i = e.call(this) || this;
|
|
@@ -974,17 +974,17 @@ var Sn = er(function(e) {
|
|
|
974
974
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
975
975
|
}, t.prototype._subscribe = function(r) {
|
|
976
976
|
var n, i;
|
|
977
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
977
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : nr;
|
|
978
978
|
}, t;
|
|
979
|
-
}(
|
|
979
|
+
}(sr), ar = {
|
|
980
980
|
now: function() {
|
|
981
|
-
return (
|
|
981
|
+
return (ar.delegate || Date).now();
|
|
982
982
|
},
|
|
983
983
|
delegate: void 0
|
|
984
|
-
},
|
|
984
|
+
}, Mn = function(e) {
|
|
985
985
|
fe(t, e);
|
|
986
986
|
function t(r, n, i) {
|
|
987
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
987
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = ar);
|
|
988
988
|
var o = e.call(this) || this;
|
|
989
989
|
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;
|
|
990
990
|
}
|
|
@@ -1004,15 +1004,15 @@ var Sn = er(function(e) {
|
|
|
1004
1004
|
u && o.splice(0, u + 1);
|
|
1005
1005
|
}
|
|
1006
1006
|
}, t;
|
|
1007
|
-
}(
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
1010
|
-
const r = new
|
|
1011
|
-
|
|
1007
|
+
}(sr);
|
|
1008
|
+
const Mt = [], Bt = {}, Bn = (e, t = 0) => {
|
|
1009
|
+
if (Mt.indexOf(e) == -1) {
|
|
1010
|
+
const r = new Mn(t);
|
|
1011
|
+
Bt[e] = r, Mt.push(e);
|
|
1012
1012
|
}
|
|
1013
|
-
return
|
|
1013
|
+
return Bt[e];
|
|
1014
1014
|
}, Z = [];
|
|
1015
|
-
function
|
|
1015
|
+
function In(e, t) {
|
|
1016
1016
|
return {
|
|
1017
1017
|
subscribe: Te(e, t).subscribe
|
|
1018
1018
|
};
|
|
@@ -1021,7 +1021,7 @@ function Te(e, t = R) {
|
|
|
1021
1021
|
let r;
|
|
1022
1022
|
const n = /* @__PURE__ */ new Set();
|
|
1023
1023
|
function i(a) {
|
|
1024
|
-
if (
|
|
1024
|
+
if (Yt(e, a) && (e = a, r)) {
|
|
1025
1025
|
const l = !Z.length;
|
|
1026
1026
|
for (const u of n)
|
|
1027
1027
|
u[1](), Z.push(u, e);
|
|
@@ -1048,96 +1048,96 @@ function ie(e, t, r) {
|
|
|
1048
1048
|
if (!i.every(Boolean))
|
|
1049
1049
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1050
1050
|
const o = t.length < 2;
|
|
1051
|
-
return
|
|
1051
|
+
return In(r, (s, a) => {
|
|
1052
1052
|
let l = !1;
|
|
1053
1053
|
const u = [];
|
|
1054
|
-
let c = 0,
|
|
1055
|
-
const
|
|
1054
|
+
let c = 0, f = R;
|
|
1055
|
+
const h = () => {
|
|
1056
1056
|
if (c)
|
|
1057
1057
|
return;
|
|
1058
|
-
|
|
1058
|
+
f();
|
|
1059
1059
|
const m = t(n ? u[0] : u, s, a);
|
|
1060
|
-
o ? s(m) :
|
|
1061
|
-
},
|
|
1062
|
-
(m, b) =>
|
|
1060
|
+
o ? s(m) : f = ut(m) ? m : R;
|
|
1061
|
+
}, d = i.map(
|
|
1062
|
+
(m, b) => Kt(
|
|
1063
1063
|
m,
|
|
1064
1064
|
(g) => {
|
|
1065
|
-
u[b] = g, c &= ~(1 << b), l &&
|
|
1065
|
+
u[b] = g, c &= ~(1 << b), l && h();
|
|
1066
1066
|
},
|
|
1067
1067
|
() => {
|
|
1068
1068
|
c |= 1 << b;
|
|
1069
1069
|
}
|
|
1070
1070
|
)
|
|
1071
1071
|
);
|
|
1072
|
-
return l = !0,
|
|
1073
|
-
ne(
|
|
1072
|
+
return l = !0, h(), function() {
|
|
1073
|
+
ne(d), f(), l = !1;
|
|
1074
1074
|
};
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1077
|
+
function On(e) {
|
|
1078
1078
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1079
1079
|
}
|
|
1080
|
-
var
|
|
1081
|
-
return
|
|
1080
|
+
var Cn = function(t) {
|
|
1081
|
+
return Ln(t) && !Nn(t);
|
|
1082
1082
|
};
|
|
1083
|
-
function
|
|
1083
|
+
function Ln(e) {
|
|
1084
1084
|
return !!e && typeof e == "object";
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function Nn(e) {
|
|
1087
1087
|
var t = Object.prototype.toString.call(e);
|
|
1088
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1088
|
+
return t === "[object RegExp]" || t === "[object Date]" || Un(e);
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
function
|
|
1092
|
-
return e.$$typeof ===
|
|
1090
|
+
var Rn = typeof Symbol == "function" && Symbol.for, Fn = Rn ? Symbol.for("react.element") : 60103;
|
|
1091
|
+
function Un(e) {
|
|
1092
|
+
return e.$$typeof === Fn;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function $n(e) {
|
|
1095
1095
|
return Array.isArray(e) ? [] : {};
|
|
1096
1096
|
}
|
|
1097
1097
|
function ce(e, t) {
|
|
1098
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? K(
|
|
1098
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? K($n(e), e, t) : e;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Dn(e, t, r) {
|
|
1101
1101
|
return e.concat(t).map(function(n) {
|
|
1102
1102
|
return ce(n, r);
|
|
1103
1103
|
});
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function Gn(e, t) {
|
|
1106
1106
|
if (!t.customMerge)
|
|
1107
1107
|
return K;
|
|
1108
1108
|
var r = t.customMerge(e);
|
|
1109
1109
|
return typeof r == "function" ? r : K;
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function kn(e) {
|
|
1112
1112
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1113
1113
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1114
1114
|
}) : [];
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return Object.keys(e).concat(
|
|
1116
|
+
function It(e) {
|
|
1117
|
+
return Object.keys(e).concat(kn(e));
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function ur(e, t) {
|
|
1120
1120
|
try {
|
|
1121
1121
|
return t in e;
|
|
1122
1122
|
} catch (r) {
|
|
1123
1123
|
return !1;
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1127
|
-
return
|
|
1126
|
+
function jn(e, t) {
|
|
1127
|
+
return ur(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function Vn(e, t, r) {
|
|
1130
1130
|
var n = {};
|
|
1131
|
-
return r.isMergeableObject(e) &&
|
|
1131
|
+
return r.isMergeableObject(e) && It(e).forEach(function(i) {
|
|
1132
1132
|
n[i] = ce(e[i], r);
|
|
1133
|
-
}),
|
|
1134
|
-
|
|
1133
|
+
}), It(t).forEach(function(i) {
|
|
1134
|
+
jn(e, i) || (ur(e, i) && r.isMergeableObject(t[i]) ? n[i] = Gn(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
|
|
1135
1135
|
}), n;
|
|
1136
1136
|
}
|
|
1137
1137
|
function K(e, t, r) {
|
|
1138
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1138
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || Cn, r.cloneUnlessOtherwiseSpecified = ce;
|
|
1139
1139
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1140
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1140
|
+
return o ? n ? r.arrayMerge(e, t, r) : Vn(e, t, r) : ce(t, r);
|
|
1141
1141
|
}
|
|
1142
1142
|
K.all = function(t, r) {
|
|
1143
1143
|
if (!Array.isArray(t))
|
|
@@ -1146,36 +1146,36 @@ K.all = function(t, r) {
|
|
|
1146
1146
|
return K(n, i, r);
|
|
1147
1147
|
}, {});
|
|
1148
1148
|
};
|
|
1149
|
-
var
|
|
1150
|
-
const
|
|
1151
|
-
var
|
|
1152
|
-
return
|
|
1149
|
+
var Wn = K, Xn = Wn;
|
|
1150
|
+
const zn = /* @__PURE__ */ On(Xn);
|
|
1151
|
+
var Ke = function(e, t) {
|
|
1152
|
+
return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1153
1153
|
r.__proto__ = n;
|
|
1154
1154
|
} || function(r, n) {
|
|
1155
1155
|
for (var i in n)
|
|
1156
1156
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1157
|
-
},
|
|
1157
|
+
}, Ke(e, t);
|
|
1158
1158
|
};
|
|
1159
1159
|
function He(e, t) {
|
|
1160
1160
|
if (typeof t != "function" && t !== null)
|
|
1161
1161
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1162
|
-
|
|
1162
|
+
Ke(e, t);
|
|
1163
1163
|
function r() {
|
|
1164
1164
|
this.constructor = e;
|
|
1165
1165
|
}
|
|
1166
1166
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1167
1167
|
}
|
|
1168
|
-
var
|
|
1169
|
-
return
|
|
1168
|
+
var D = function() {
|
|
1169
|
+
return D = Object.assign || function(t) {
|
|
1170
1170
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1171
1171
|
r = arguments[n];
|
|
1172
1172
|
for (var o in r)
|
|
1173
1173
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1174
1174
|
}
|
|
1175
1175
|
return t;
|
|
1176
|
-
},
|
|
1176
|
+
}, D.apply(this, arguments);
|
|
1177
1177
|
};
|
|
1178
|
-
function
|
|
1178
|
+
function Zn(e, t) {
|
|
1179
1179
|
var r = {};
|
|
1180
1180
|
for (var n in e)
|
|
1181
1181
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1184,43 +1184,43 @@ function Xn(e, t) {
|
|
|
1184
1184
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1185
1185
|
return r;
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function Fe(e, t, r) {
|
|
1188
1188
|
if (r || arguments.length === 2)
|
|
1189
1189
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1190
1190
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1191
1191
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var r = t && t.cache ? t.cache :
|
|
1193
|
+
function Ue(e, t) {
|
|
1194
|
+
var r = t && t.cache ? t.cache : ti, n = t && t.serializer ? t.serializer : Kn, i = t && t.strategy ? t.strategy : Jn;
|
|
1195
1195
|
return i(e, {
|
|
1196
1196
|
cache: r,
|
|
1197
1197
|
serializer: n
|
|
1198
1198
|
});
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function Qn(e) {
|
|
1201
1201
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
var i =
|
|
1203
|
+
function qn(e, t, r, n) {
|
|
1204
|
+
var i = Qn(n) ? n : r(n), o = t.get(i);
|
|
1205
1205
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function lr(e, t, r) {
|
|
1208
1208
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1209
1209
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function cr(e, t, r, n, i) {
|
|
1212
1212
|
return r.bind(t, e, n, i);
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1215
|
-
var r = e.length === 1 ?
|
|
1216
|
-
return
|
|
1214
|
+
function Jn(e, t) {
|
|
1215
|
+
var r = e.length === 1 ? qn : lr;
|
|
1216
|
+
return cr(e, this, r, t.cache.create(), t.serializer);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return
|
|
1218
|
+
function Yn(e, t) {
|
|
1219
|
+
return cr(e, this, lr, t.cache.create(), t.serializer);
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1221
|
+
var Kn = function() {
|
|
1222
1222
|
return JSON.stringify(arguments);
|
|
1223
|
-
},
|
|
1223
|
+
}, ei = (
|
|
1224
1224
|
/** @class */
|
|
1225
1225
|
function() {
|
|
1226
1226
|
function e() {
|
|
@@ -1232,12 +1232,12 @@ var Jn = function() {
|
|
|
1232
1232
|
this.cache[t] = r;
|
|
1233
1233
|
}, e;
|
|
1234
1234
|
}()
|
|
1235
|
-
),
|
|
1235
|
+
), ti = {
|
|
1236
1236
|
create: function() {
|
|
1237
|
-
return new
|
|
1237
|
+
return new ei();
|
|
1238
1238
|
}
|
|
1239
|
-
},
|
|
1240
|
-
variadic:
|
|
1239
|
+
}, $e = {
|
|
1240
|
+
variadic: Yn
|
|
1241
1241
|
}, we = function() {
|
|
1242
1242
|
return we = Object.assign || function(t) {
|
|
1243
1243
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
@@ -1248,55 +1248,55 @@ var Jn = function() {
|
|
|
1248
1248
|
return t;
|
|
1249
1249
|
}, we.apply(this, arguments);
|
|
1250
1250
|
};
|
|
1251
|
-
var
|
|
1251
|
+
var x;
|
|
1252
1252
|
(function(e) {
|
|
1253
1253
|
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";
|
|
1254
|
-
})(
|
|
1255
|
-
var
|
|
1254
|
+
})(x || (x = {}));
|
|
1255
|
+
var T;
|
|
1256
1256
|
(function(e) {
|
|
1257
1257
|
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";
|
|
1258
|
-
})(
|
|
1258
|
+
})(T || (T = {}));
|
|
1259
1259
|
var ee;
|
|
1260
1260
|
(function(e) {
|
|
1261
1261
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1262
1262
|
})(ee || (ee = {}));
|
|
1263
|
-
function
|
|
1264
|
-
return e.type ===
|
|
1265
|
-
}
|
|
1266
|
-
function ei(e) {
|
|
1267
|
-
return e.type === S.argument;
|
|
1268
|
-
}
|
|
1269
|
-
function lr(e) {
|
|
1270
|
-
return e.type === S.number;
|
|
1263
|
+
function Ot(e) {
|
|
1264
|
+
return e.type === T.literal;
|
|
1271
1265
|
}
|
|
1272
|
-
function
|
|
1273
|
-
return e.type ===
|
|
1266
|
+
function ri(e) {
|
|
1267
|
+
return e.type === T.argument;
|
|
1274
1268
|
}
|
|
1275
1269
|
function hr(e) {
|
|
1276
|
-
return e.type ===
|
|
1270
|
+
return e.type === T.number;
|
|
1277
1271
|
}
|
|
1278
1272
|
function fr(e) {
|
|
1279
|
-
return e.type ===
|
|
1273
|
+
return e.type === T.date;
|
|
1280
1274
|
}
|
|
1281
1275
|
function pr(e) {
|
|
1282
|
-
return e.type ===
|
|
1283
|
-
}
|
|
1284
|
-
function ti(e) {
|
|
1285
|
-
return e.type === S.pound;
|
|
1276
|
+
return e.type === T.time;
|
|
1286
1277
|
}
|
|
1287
1278
|
function mr(e) {
|
|
1288
|
-
return e.type ===
|
|
1279
|
+
return e.type === T.select;
|
|
1289
1280
|
}
|
|
1290
1281
|
function dr(e) {
|
|
1282
|
+
return e.type === T.plural;
|
|
1283
|
+
}
|
|
1284
|
+
function ni(e) {
|
|
1285
|
+
return e.type === T.pound;
|
|
1286
|
+
}
|
|
1287
|
+
function br(e) {
|
|
1288
|
+
return e.type === T.tag;
|
|
1289
|
+
}
|
|
1290
|
+
function gr(e) {
|
|
1291
1291
|
return !!(e && typeof e == "object" && e.type === ee.number);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function et(e) {
|
|
1294
1294
|
return !!(e && typeof e == "object" && e.type === ee.dateTime);
|
|
1295
1295
|
}
|
|
1296
|
-
var
|
|
1297
|
-
function
|
|
1296
|
+
var yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
|
|
1297
|
+
function oi(e) {
|
|
1298
1298
|
var t = {};
|
|
1299
|
-
return e.replace(
|
|
1299
|
+
return e.replace(ii, function(r) {
|
|
1300
1300
|
var n = r.length;
|
|
1301
1301
|
switch (r[0]) {
|
|
1302
1302
|
case "G":
|
|
@@ -1395,36 +1395,36 @@ var H = function() {
|
|
|
1395
1395
|
return t;
|
|
1396
1396
|
}, H.apply(this, arguments);
|
|
1397
1397
|
};
|
|
1398
|
-
var
|
|
1399
|
-
function
|
|
1398
|
+
var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1399
|
+
function ai(e) {
|
|
1400
1400
|
if (e.length === 0)
|
|
1401
1401
|
throw new Error("Number skeleton cannot be empty");
|
|
1402
|
-
for (var t = e.split(
|
|
1403
|
-
return
|
|
1402
|
+
for (var t = e.split(si).filter(function(h) {
|
|
1403
|
+
return h.length > 0;
|
|
1404
1404
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1405
1405
|
var o = i[n], s = o.split("/");
|
|
1406
1406
|
if (s.length === 0)
|
|
1407
1407
|
throw new Error("Invalid number skeleton");
|
|
1408
1408
|
for (var a = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
|
|
1409
|
-
var
|
|
1410
|
-
if (
|
|
1409
|
+
var f = c[u];
|
|
1410
|
+
if (f.length === 0)
|
|
1411
1411
|
throw new Error("Invalid number skeleton");
|
|
1412
1412
|
}
|
|
1413
1413
|
r.push({ stem: a, options: l });
|
|
1414
1414
|
}
|
|
1415
1415
|
return r;
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function ui(e) {
|
|
1418
1418
|
return e.replace(/^(.*?)-/, "");
|
|
1419
1419
|
}
|
|
1420
|
-
var
|
|
1421
|
-
function
|
|
1420
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, li = /(\*)(0+)|(#+)(0+)|(0+)/g, _r = /^(0+)$/;
|
|
1421
|
+
function Lt(e) {
|
|
1422
1422
|
var t = {};
|
|
1423
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1423
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vr, function(r, n, i) {
|
|
1424
1424
|
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)), "";
|
|
1425
1425
|
}), t;
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function xr(e) {
|
|
1428
1428
|
switch (e) {
|
|
1429
1429
|
case "sign-auto":
|
|
1430
1430
|
return {
|
|
@@ -1464,7 +1464,7 @@ function vr(e) {
|
|
|
1464
1464
|
};
|
|
1465
1465
|
}
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function ci(e) {
|
|
1468
1468
|
var t;
|
|
1469
1469
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1470
1470
|
notation: "engineering"
|
|
@@ -1472,17 +1472,17 @@ function ui(e) {
|
|
|
1472
1472
|
notation: "scientific"
|
|
1473
1473
|
}, e = e.slice(1)), t) {
|
|
1474
1474
|
var r = e.slice(0, 2);
|
|
1475
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1475
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !_r.test(e))
|
|
1476
1476
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1477
1477
|
t.minimumIntegerDigits = e.length;
|
|
1478
1478
|
}
|
|
1479
1479
|
return t;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1482
|
-
var t = {}, r =
|
|
1481
|
+
function Nt(e) {
|
|
1482
|
+
var t = {}, r = xr(e);
|
|
1483
1483
|
return r || t;
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1485
|
+
function hi(e) {
|
|
1486
1486
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1487
1487
|
var i = n[r];
|
|
1488
1488
|
switch (i.stem) {
|
|
@@ -1506,7 +1506,7 @@ function li(e) {
|
|
|
1506
1506
|
continue;
|
|
1507
1507
|
case "measure-unit":
|
|
1508
1508
|
case "unit":
|
|
1509
|
-
t.style = "unit", t.unit =
|
|
1509
|
+
t.style = "unit", t.unit = ui(i.options[0]);
|
|
1510
1510
|
continue;
|
|
1511
1511
|
case "compact-short":
|
|
1512
1512
|
case "K":
|
|
@@ -1518,12 +1518,12 @@ function li(e) {
|
|
|
1518
1518
|
continue;
|
|
1519
1519
|
case "scientific":
|
|
1520
1520
|
t = H(H(H({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1521
|
-
return H(H({}, l),
|
|
1521
|
+
return H(H({}, l), Nt(u));
|
|
1522
1522
|
}, {}));
|
|
1523
1523
|
continue;
|
|
1524
1524
|
case "engineering":
|
|
1525
1525
|
t = H(H(H({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1526
|
-
return H(H({}, l),
|
|
1526
|
+
return H(H({}, l), Nt(u));
|
|
1527
1527
|
}, {}));
|
|
1528
1528
|
continue;
|
|
1529
1529
|
case "notation-simple":
|
|
@@ -1568,40 +1568,40 @@ function li(e) {
|
|
|
1568
1568
|
case "integer-width":
|
|
1569
1569
|
if (i.options.length > 1)
|
|
1570
1570
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1571
|
-
i.options[0].replace(
|
|
1571
|
+
i.options[0].replace(li, function(l, u, c, f, h, d) {
|
|
1572
1572
|
if (u)
|
|
1573
1573
|
t.minimumIntegerDigits = c.length;
|
|
1574
1574
|
else {
|
|
1575
|
-
if (
|
|
1575
|
+
if (f && h)
|
|
1576
1576
|
throw new Error("We currently do not support maximum integer digits");
|
|
1577
|
-
if (
|
|
1577
|
+
if (d)
|
|
1578
1578
|
throw new Error("We currently do not support exact integer digits");
|
|
1579
1579
|
}
|
|
1580
1580
|
return "";
|
|
1581
1581
|
});
|
|
1582
1582
|
continue;
|
|
1583
1583
|
}
|
|
1584
|
-
if (
|
|
1584
|
+
if (_r.test(i.stem)) {
|
|
1585
1585
|
t.minimumIntegerDigits = i.stem.length;
|
|
1586
1586
|
continue;
|
|
1587
1587
|
}
|
|
1588
|
-
if (
|
|
1588
|
+
if (Ct.test(i.stem)) {
|
|
1589
1589
|
if (i.options.length > 1)
|
|
1590
1590
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1591
|
-
i.stem.replace(
|
|
1592
|
-
return c === "*" ? t.minimumFractionDigits = u.length :
|
|
1591
|
+
i.stem.replace(Ct, function(l, u, c, f, h, d) {
|
|
1592
|
+
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), "";
|
|
1593
1593
|
});
|
|
1594
1594
|
var o = i.options[0];
|
|
1595
|
-
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t),
|
|
1595
|
+
o === "w" ? t = H(H({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = H(H({}, t), Lt(o)));
|
|
1596
1596
|
continue;
|
|
1597
1597
|
}
|
|
1598
|
-
if (
|
|
1599
|
-
t = H(H({}, t),
|
|
1598
|
+
if (vr.test(i.stem)) {
|
|
1599
|
+
t = H(H({}, t), Lt(i.stem));
|
|
1600
1600
|
continue;
|
|
1601
1601
|
}
|
|
1602
|
-
var s =
|
|
1602
|
+
var s = xr(i.stem);
|
|
1603
1603
|
s && (t = H(H({}, t), s));
|
|
1604
|
-
var a =
|
|
1604
|
+
var a = ci(i.stem);
|
|
1605
1605
|
a && (t = H(H({}, t), a));
|
|
1606
1606
|
}
|
|
1607
1607
|
return t;
|
|
@@ -3021,13 +3021,13 @@ var be = {
|
|
|
3021
3021
|
"h"
|
|
3022
3022
|
]
|
|
3023
3023
|
};
|
|
3024
|
-
function
|
|
3024
|
+
function fi(e, t) {
|
|
3025
3025
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3026
3026
|
var i = e.charAt(n);
|
|
3027
3027
|
if (i === "j") {
|
|
3028
3028
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3029
3029
|
o++, n++;
|
|
3030
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
3030
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = pi(t);
|
|
3031
3031
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3032
3032
|
r += l;
|
|
3033
3033
|
for (; s-- > 0; )
|
|
@@ -3037,7 +3037,7 @@ function ci(e, t) {
|
|
|
3037
3037
|
}
|
|
3038
3038
|
return r;
|
|
3039
3039
|
}
|
|
3040
|
-
function
|
|
3040
|
+
function pi(e) {
|
|
3041
3041
|
var t = e.hourCycle;
|
|
3042
3042
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3043
3043
|
e.hourCycles && // @ts-ignore
|
|
@@ -3059,20 +3059,20 @@ function hi(e) {
|
|
|
3059
3059
|
var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
|
|
3060
3060
|
return i[0];
|
|
3061
3061
|
}
|
|
3062
|
-
var
|
|
3063
|
-
function
|
|
3062
|
+
var De, mi = new RegExp("^".concat(yr.source, "*")), di = new RegExp("".concat(yr.source, "*$"));
|
|
3063
|
+
function w(e, t) {
|
|
3064
3064
|
return { start: e, end: t };
|
|
3065
3065
|
}
|
|
3066
|
-
var
|
|
3066
|
+
var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, wi = Ei ? Number.isSafeInteger : function(e) {
|
|
3067
3067
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3068
|
-
},
|
|
3068
|
+
}, tt = !0;
|
|
3069
3069
|
try {
|
|
3070
|
-
var
|
|
3071
|
-
|
|
3070
|
+
var Ai = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3071
|
+
tt = ((De = Ai.exec("a")) === null || De === void 0 ? void 0 : De[0]) === "a";
|
|
3072
3072
|
} catch (e) {
|
|
3073
|
-
|
|
3073
|
+
tt = !1;
|
|
3074
3074
|
}
|
|
3075
|
-
var
|
|
3075
|
+
var Rt = bi ? (
|
|
3076
3076
|
// Native
|
|
3077
3077
|
function(t, r, n) {
|
|
3078
3078
|
return t.startsWith(r, n);
|
|
@@ -3082,7 +3082,7 @@ var Lt = mi ? (
|
|
|
3082
3082
|
function(t, r, n) {
|
|
3083
3083
|
return t.slice(n, n + r.length) === r;
|
|
3084
3084
|
}
|
|
3085
|
-
),
|
|
3085
|
+
), rt = gi ? String.fromCodePoint : (
|
|
3086
3086
|
// IE11
|
|
3087
3087
|
function() {
|
|
3088
3088
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3094,9 +3094,9 @@ var Lt = mi ? (
|
|
|
3094
3094
|
}
|
|
3095
3095
|
return n;
|
|
3096
3096
|
}
|
|
3097
|
-
),
|
|
3097
|
+
), Ft = (
|
|
3098
3098
|
// native
|
|
3099
|
-
|
|
3099
|
+
yi ? Object.fromEntries : (
|
|
3100
3100
|
// Ponyfill
|
|
3101
3101
|
function(t) {
|
|
3102
3102
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3106,7 +3106,7 @@ var Lt = mi ? (
|
|
|
3106
3106
|
return r;
|
|
3107
3107
|
}
|
|
3108
3108
|
)
|
|
3109
|
-
),
|
|
3109
|
+
), Er = vi ? (
|
|
3110
3110
|
// Native
|
|
3111
3111
|
function(t, r) {
|
|
3112
3112
|
return t.codePointAt(r);
|
|
@@ -3120,7 +3120,7 @@ var Lt = mi ? (
|
|
|
3120
3120
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3121
3121
|
}
|
|
3122
3122
|
}
|
|
3123
|
-
),
|
|
3123
|
+
), Pi = _i ? (
|
|
3124
3124
|
// Native
|
|
3125
3125
|
function(t) {
|
|
3126
3126
|
return t.trimStart();
|
|
@@ -3128,9 +3128,9 @@ var Lt = mi ? (
|
|
|
3128
3128
|
) : (
|
|
3129
3129
|
// Ponyfill
|
|
3130
3130
|
function(t) {
|
|
3131
|
-
return t.replace(
|
|
3131
|
+
return t.replace(mi, "");
|
|
3132
3132
|
}
|
|
3133
|
-
),
|
|
3133
|
+
), Si = xi ? (
|
|
3134
3134
|
// Native
|
|
3135
3135
|
function(t) {
|
|
3136
3136
|
return t.trimEnd();
|
|
@@ -3138,32 +3138,32 @@ var Lt = mi ? (
|
|
|
3138
3138
|
) : (
|
|
3139
3139
|
// Ponyfill
|
|
3140
3140
|
function(t) {
|
|
3141
|
-
return t.replace(
|
|
3141
|
+
return t.replace(di, "");
|
|
3142
3142
|
}
|
|
3143
3143
|
);
|
|
3144
|
-
function
|
|
3144
|
+
function wr(e, t) {
|
|
3145
3145
|
return new RegExp(e, t);
|
|
3146
3146
|
}
|
|
3147
|
-
var
|
|
3148
|
-
if (
|
|
3149
|
-
var
|
|
3150
|
-
|
|
3147
|
+
var nt;
|
|
3148
|
+
if (tt) {
|
|
3149
|
+
var Ut = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3150
|
+
nt = function(t, r) {
|
|
3151
3151
|
var n;
|
|
3152
|
-
|
|
3153
|
-
var i =
|
|
3152
|
+
Ut.lastIndex = r;
|
|
3153
|
+
var i = Ut.exec(t);
|
|
3154
3154
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3155
3155
|
};
|
|
3156
3156
|
} else
|
|
3157
|
-
|
|
3157
|
+
nt = function(t, r) {
|
|
3158
3158
|
for (var n = []; ; ) {
|
|
3159
|
-
var i =
|
|
3160
|
-
if (i === void 0 ||
|
|
3159
|
+
var i = Er(t, r);
|
|
3160
|
+
if (i === void 0 || Ar(i) || Bi(i))
|
|
3161
3161
|
break;
|
|
3162
3162
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3163
3163
|
}
|
|
3164
|
-
return
|
|
3164
|
+
return rt.apply(void 0, n);
|
|
3165
3165
|
};
|
|
3166
|
-
var
|
|
3166
|
+
var Ti = (
|
|
3167
3167
|
/** @class */
|
|
3168
3168
|
function() {
|
|
3169
3169
|
function e(t, r) {
|
|
@@ -3187,14 +3187,14 @@ var Pi = (
|
|
|
3187
3187
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3188
3188
|
var a = this.clonePosition();
|
|
3189
3189
|
this.bump(), i.push({
|
|
3190
|
-
type:
|
|
3191
|
-
location:
|
|
3190
|
+
type: T.pound,
|
|
3191
|
+
location: w(a, this.clonePosition())
|
|
3192
3192
|
});
|
|
3193
3193
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3194
3194
|
if (n)
|
|
3195
3195
|
break;
|
|
3196
|
-
return this.error(
|
|
3197
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3196
|
+
return this.error(x.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
3197
|
+
} else if (o === 60 && !this.ignoreTag && it(this.peek() || 0)) {
|
|
3198
3198
|
var s = this.parseTag(t, r);
|
|
3199
3199
|
if (s.err)
|
|
3200
3200
|
return s;
|
|
@@ -3215,9 +3215,9 @@ var Pi = (
|
|
|
3215
3215
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3216
3216
|
return {
|
|
3217
3217
|
val: {
|
|
3218
|
-
type:
|
|
3218
|
+
type: T.literal,
|
|
3219
3219
|
value: "<".concat(i, "/>"),
|
|
3220
|
-
location:
|
|
3220
|
+
location: w(n, this.clonePosition())
|
|
3221
3221
|
},
|
|
3222
3222
|
err: null
|
|
3223
3223
|
};
|
|
@@ -3227,25 +3227,25 @@ var Pi = (
|
|
|
3227
3227
|
return o;
|
|
3228
3228
|
var s = o.val, a = this.clonePosition();
|
|
3229
3229
|
if (this.bumpIf("</")) {
|
|
3230
|
-
if (this.isEOF() || !
|
|
3231
|
-
return this.error(
|
|
3230
|
+
if (this.isEOF() || !it(this.char()))
|
|
3231
|
+
return this.error(x.INVALID_TAG, w(a, this.clonePosition()));
|
|
3232
3232
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3233
|
-
return i !== u ? this.error(
|
|
3233
|
+
return i !== u ? this.error(x.UNMATCHED_CLOSING_TAG, w(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3234
3234
|
val: {
|
|
3235
|
-
type:
|
|
3235
|
+
type: T.tag,
|
|
3236
3236
|
value: i,
|
|
3237
3237
|
children: s,
|
|
3238
|
-
location:
|
|
3238
|
+
location: w(n, this.clonePosition())
|
|
3239
3239
|
},
|
|
3240
3240
|
err: null
|
|
3241
|
-
} : this.error(
|
|
3241
|
+
} : this.error(x.INVALID_TAG, w(a, this.clonePosition())));
|
|
3242
3242
|
} else
|
|
3243
|
-
return this.error(
|
|
3243
|
+
return this.error(x.UNCLOSED_TAG, w(n, this.clonePosition()));
|
|
3244
3244
|
} else
|
|
3245
|
-
return this.error(
|
|
3245
|
+
return this.error(x.INVALID_TAG, w(n, this.clonePosition()));
|
|
3246
3246
|
}, e.prototype.parseTagName = function() {
|
|
3247
3247
|
var t = this.offset();
|
|
3248
|
-
for (this.bump(); !this.isEOF() &&
|
|
3248
|
+
for (this.bump(); !this.isEOF() && Mi(this.char()); )
|
|
3249
3249
|
this.bump();
|
|
3250
3250
|
return this.message.slice(t, this.offset());
|
|
3251
3251
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3267,14 +3267,14 @@ var Pi = (
|
|
|
3267
3267
|
}
|
|
3268
3268
|
break;
|
|
3269
3269
|
}
|
|
3270
|
-
var l =
|
|
3270
|
+
var l = w(n, this.clonePosition());
|
|
3271
3271
|
return {
|
|
3272
|
-
val: { type:
|
|
3272
|
+
val: { type: T.literal, value: i, location: l },
|
|
3273
3273
|
err: null
|
|
3274
3274
|
};
|
|
3275
3275
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3276
3276
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3277
|
-
!
|
|
3277
|
+
!Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3278
3278
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3279
3279
|
if (this.isEOF() || this.char() !== 39)
|
|
3280
3280
|
return null;
|
|
@@ -3308,49 +3308,49 @@ var Pi = (
|
|
|
3308
3308
|
r.push(n);
|
|
3309
3309
|
this.bump();
|
|
3310
3310
|
}
|
|
3311
|
-
return
|
|
3311
|
+
return rt.apply(void 0, r);
|
|
3312
3312
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3313
3313
|
if (this.isEOF())
|
|
3314
3314
|
return null;
|
|
3315
3315
|
var n = this.char();
|
|
3316
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3316
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rt(n));
|
|
3317
3317
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3318
3318
|
var n = this.clonePosition();
|
|
3319
3319
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3320
|
-
return this.error(
|
|
3320
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
3321
3321
|
if (this.char() === 125)
|
|
3322
|
-
return this.bump(), this.error(
|
|
3322
|
+
return this.bump(), this.error(x.EMPTY_ARGUMENT, w(n, this.clonePosition()));
|
|
3323
3323
|
var i = this.parseIdentifierIfPossible().value;
|
|
3324
3324
|
if (!i)
|
|
3325
|
-
return this.error(
|
|
3325
|
+
return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3326
3326
|
if (this.bumpSpace(), this.isEOF())
|
|
3327
|
-
return this.error(
|
|
3327
|
+
return this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
|
3328
3328
|
switch (this.char()) {
|
|
3329
3329
|
case 125:
|
|
3330
3330
|
return this.bump(), {
|
|
3331
3331
|
val: {
|
|
3332
|
-
type:
|
|
3332
|
+
type: T.argument,
|
|
3333
3333
|
// value does not include the opening and closing braces.
|
|
3334
3334
|
value: i,
|
|
3335
|
-
location:
|
|
3335
|
+
location: w(n, this.clonePosition())
|
|
3336
3336
|
},
|
|
3337
3337
|
err: null
|
|
3338
3338
|
};
|
|
3339
3339
|
case 44:
|
|
3340
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3340
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3341
3341
|
default:
|
|
3342
|
-
return this.error(
|
|
3342
|
+
return this.error(x.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3343
3343
|
}
|
|
3344
3344
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3345
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3345
|
+
var t = this.clonePosition(), r = this.offset(), n = nt(this.message, r), i = r + n.length;
|
|
3346
3346
|
this.bumpTo(i);
|
|
3347
|
-
var o = this.clonePosition(), s =
|
|
3347
|
+
var o = this.clonePosition(), s = w(t, o);
|
|
3348
3348
|
return { value: n, location: s };
|
|
3349
3349
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3350
3350
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3351
3351
|
switch (a) {
|
|
3352
3352
|
case "":
|
|
3353
|
-
return this.error(
|
|
3353
|
+
return this.error(x.EXPECT_ARGUMENT_TYPE, w(s, l));
|
|
3354
3354
|
case "number":
|
|
3355
3355
|
case "date":
|
|
3356
3356
|
case "time": {
|
|
@@ -3358,47 +3358,47 @@ var Pi = (
|
|
|
3358
3358
|
var u = null;
|
|
3359
3359
|
if (this.bumpIf(",")) {
|
|
3360
3360
|
this.bumpSpace();
|
|
3361
|
-
var c = this.clonePosition(),
|
|
3362
|
-
if (
|
|
3363
|
-
return
|
|
3364
|
-
var
|
|
3365
|
-
if (
|
|
3366
|
-
return this.error(
|
|
3367
|
-
var
|
|
3368
|
-
u = { style:
|
|
3361
|
+
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3362
|
+
if (f.err)
|
|
3363
|
+
return f;
|
|
3364
|
+
var h = Si(f.val);
|
|
3365
|
+
if (h.length === 0)
|
|
3366
|
+
return this.error(x.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
3367
|
+
var d = w(c, this.clonePosition());
|
|
3368
|
+
u = { style: h, styleLocation: d };
|
|
3369
3369
|
}
|
|
3370
3370
|
var m = this.tryParseArgumentClose(i);
|
|
3371
3371
|
if (m.err)
|
|
3372
3372
|
return m;
|
|
3373
|
-
var b =
|
|
3374
|
-
if (u &&
|
|
3375
|
-
var g =
|
|
3373
|
+
var b = w(i, this.clonePosition());
|
|
3374
|
+
if (u && Rt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3375
|
+
var g = Pi(u.style.slice(2));
|
|
3376
3376
|
if (a === "number") {
|
|
3377
|
-
var
|
|
3378
|
-
return
|
|
3379
|
-
val: { type:
|
|
3377
|
+
var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
|
|
3378
|
+
return f.err ? f : {
|
|
3379
|
+
val: { type: T.number, value: n, location: b, style: f.val },
|
|
3380
3380
|
err: null
|
|
3381
3381
|
};
|
|
3382
3382
|
} else {
|
|
3383
3383
|
if (g.length === 0)
|
|
3384
|
-
return this.error(
|
|
3385
|
-
var
|
|
3386
|
-
this.locale && (
|
|
3387
|
-
var
|
|
3384
|
+
return this.error(x.EXPECT_DATE_TIME_SKELETON, b);
|
|
3385
|
+
var P = g;
|
|
3386
|
+
this.locale && (P = fi(g, this.locale));
|
|
3387
|
+
var h = {
|
|
3388
3388
|
type: ee.dateTime,
|
|
3389
|
-
pattern:
|
|
3389
|
+
pattern: P,
|
|
3390
3390
|
location: u.styleLocation,
|
|
3391
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3392
|
-
},
|
|
3391
|
+
parsedOptions: this.shouldParseSkeletons ? oi(P) : {}
|
|
3392
|
+
}, M = a === "date" ? T.date : T.time;
|
|
3393
3393
|
return {
|
|
3394
|
-
val: { type:
|
|
3394
|
+
val: { type: M, value: n, location: b, style: h },
|
|
3395
3395
|
err: null
|
|
3396
3396
|
};
|
|
3397
3397
|
}
|
|
3398
3398
|
}
|
|
3399
3399
|
return {
|
|
3400
3400
|
val: {
|
|
3401
|
-
type: a === "number" ?
|
|
3401
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
3402
3402
|
value: n,
|
|
3403
3403
|
location: b,
|
|
3404
3404
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3409,41 +3409,41 @@ var Pi = (
|
|
|
3409
3409
|
case "plural":
|
|
3410
3410
|
case "selectordinal":
|
|
3411
3411
|
case "select": {
|
|
3412
|
-
var
|
|
3412
|
+
var v = this.clonePosition();
|
|
3413
3413
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3414
|
-
return this.error(
|
|
3414
|
+
return this.error(x.EXPECT_SELECT_ARGUMENT_OPTIONS, w(v, we({}, v)));
|
|
3415
3415
|
this.bumpSpace();
|
|
3416
|
-
var
|
|
3417
|
-
if (a !== "select" &&
|
|
3416
|
+
var B = this.parseIdentifierIfPossible(), _ = 0;
|
|
3417
|
+
if (a !== "select" && B.value === "offset") {
|
|
3418
3418
|
if (!this.bumpIf(":"))
|
|
3419
|
-
return this.error(
|
|
3419
|
+
return this.error(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
|
3420
3420
|
this.bumpSpace();
|
|
3421
|
-
var
|
|
3422
|
-
if (
|
|
3423
|
-
return
|
|
3424
|
-
this.bumpSpace(),
|
|
3421
|
+
var f = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3422
|
+
if (f.err)
|
|
3423
|
+
return f;
|
|
3424
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), _ = f.val;
|
|
3425
3425
|
}
|
|
3426
|
-
var
|
|
3427
|
-
if (
|
|
3428
|
-
return
|
|
3426
|
+
var G = this.tryParsePluralOrSelectOptions(t, a, r, B);
|
|
3427
|
+
if (G.err)
|
|
3428
|
+
return G;
|
|
3429
3429
|
var m = this.tryParseArgumentClose(i);
|
|
3430
3430
|
if (m.err)
|
|
3431
3431
|
return m;
|
|
3432
|
-
var W =
|
|
3432
|
+
var W = w(i, this.clonePosition());
|
|
3433
3433
|
return a === "select" ? {
|
|
3434
3434
|
val: {
|
|
3435
|
-
type:
|
|
3435
|
+
type: T.select,
|
|
3436
3436
|
value: n,
|
|
3437
|
-
options:
|
|
3437
|
+
options: Ft(G.val),
|
|
3438
3438
|
location: W
|
|
3439
3439
|
},
|
|
3440
3440
|
err: null
|
|
3441
3441
|
} : {
|
|
3442
3442
|
val: {
|
|
3443
|
-
type:
|
|
3443
|
+
type: T.plural,
|
|
3444
3444
|
value: n,
|
|
3445
|
-
options:
|
|
3446
|
-
offset:
|
|
3445
|
+
options: Ft(G.val),
|
|
3446
|
+
offset: _,
|
|
3447
3447
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3448
3448
|
location: W
|
|
3449
3449
|
},
|
|
@@ -3451,10 +3451,10 @@ var Pi = (
|
|
|
3451
3451
|
};
|
|
3452
3452
|
}
|
|
3453
3453
|
default:
|
|
3454
|
-
return this.error(
|
|
3454
|
+
return this.error(x.INVALID_ARGUMENT_TYPE, w(s, l));
|
|
3455
3455
|
}
|
|
3456
3456
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3457
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3457
|
+
return this.isEOF() || this.char() !== 125 ? this.error(x.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3458
3458
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3459
3459
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3460
3460
|
var n = this.char();
|
|
@@ -3463,7 +3463,7 @@ var Pi = (
|
|
|
3463
3463
|
this.bump();
|
|
3464
3464
|
var i = this.clonePosition();
|
|
3465
3465
|
if (!this.bumpUntil("'"))
|
|
3466
|
-
return this.error(
|
|
3466
|
+
return this.error(x.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
|
3467
3467
|
this.bump();
|
|
3468
3468
|
break;
|
|
3469
3469
|
}
|
|
@@ -3493,52 +3493,52 @@ var Pi = (
|
|
|
3493
3493
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3494
3494
|
var n = [];
|
|
3495
3495
|
try {
|
|
3496
|
-
n =
|
|
3496
|
+
n = ai(t);
|
|
3497
3497
|
} catch (i) {
|
|
3498
|
-
return this.error(
|
|
3498
|
+
return this.error(x.INVALID_NUMBER_SKELETON, r);
|
|
3499
3499
|
}
|
|
3500
3500
|
return {
|
|
3501
3501
|
val: {
|
|
3502
3502
|
type: ee.number,
|
|
3503
3503
|
tokens: n,
|
|
3504
3504
|
location: r,
|
|
3505
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3505
|
+
parsedOptions: this.shouldParseSkeletons ? hi(n) : {}
|
|
3506
3506
|
},
|
|
3507
3507
|
err: null
|
|
3508
3508
|
};
|
|
3509
3509
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3510
3510
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
|
|
3511
3511
|
if (u.length === 0) {
|
|
3512
|
-
var
|
|
3512
|
+
var f = this.clonePosition();
|
|
3513
3513
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3514
|
-
var
|
|
3515
|
-
if (
|
|
3516
|
-
return
|
|
3517
|
-
c =
|
|
3514
|
+
var h = this.tryParseDecimalInteger(x.EXPECT_PLURAL_ARGUMENT_SELECTOR, x.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3515
|
+
if (h.err)
|
|
3516
|
+
return h;
|
|
3517
|
+
c = w(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3518
3518
|
} else
|
|
3519
3519
|
break;
|
|
3520
3520
|
}
|
|
3521
3521
|
if (l.has(u))
|
|
3522
|
-
return this.error(r === "select" ?
|
|
3522
|
+
return this.error(r === "select" ? x.DUPLICATE_SELECT_ARGUMENT_SELECTOR : x.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3523
3523
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3524
|
-
var
|
|
3524
|
+
var d = this.clonePosition();
|
|
3525
3525
|
if (!this.bumpIf("{"))
|
|
3526
|
-
return this.error(r === "select" ?
|
|
3526
|
+
return this.error(r === "select" ? x.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : x.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
|
3527
3527
|
var m = this.parseMessage(t + 1, r, n);
|
|
3528
3528
|
if (m.err)
|
|
3529
3529
|
return m;
|
|
3530
|
-
var b = this.tryParseArgumentClose(
|
|
3530
|
+
var b = this.tryParseArgumentClose(d);
|
|
3531
3531
|
if (b.err)
|
|
3532
3532
|
return b;
|
|
3533
3533
|
a.push([
|
|
3534
3534
|
u,
|
|
3535
3535
|
{
|
|
3536
3536
|
value: m.val,
|
|
3537
|
-
location:
|
|
3537
|
+
location: w(d, this.clonePosition())
|
|
3538
3538
|
}
|
|
3539
3539
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3540
3540
|
}
|
|
3541
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3541
|
+
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 };
|
|
3542
3542
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3543
3543
|
var n = 1, i = this.clonePosition();
|
|
3544
3544
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3549,8 +3549,8 @@ var Pi = (
|
|
|
3549
3549
|
else
|
|
3550
3550
|
break;
|
|
3551
3551
|
}
|
|
3552
|
-
var l =
|
|
3553
|
-
return o ? (s *= n,
|
|
3552
|
+
var l = w(i, this.clonePosition());
|
|
3553
|
+
return o ? (s *= n, wi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3554
3554
|
}, e.prototype.offset = function() {
|
|
3555
3555
|
return this.position.offset;
|
|
3556
3556
|
}, e.prototype.isEOF = function() {
|
|
@@ -3565,7 +3565,7 @@ var Pi = (
|
|
|
3565
3565
|
var t = this.position.offset;
|
|
3566
3566
|
if (t >= this.message.length)
|
|
3567
3567
|
throw Error("out of bound");
|
|
3568
|
-
var r =
|
|
3568
|
+
var r = Er(this.message, t);
|
|
3569
3569
|
if (r === void 0)
|
|
3570
3570
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3571
3571
|
return r;
|
|
@@ -3584,7 +3584,7 @@ var Pi = (
|
|
|
3584
3584
|
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);
|
|
3585
3585
|
}
|
|
3586
3586
|
}, e.prototype.bumpIf = function(t) {
|
|
3587
|
-
if (
|
|
3587
|
+
if (Rt(this.message, t, this.offset())) {
|
|
3588
3588
|
for (var r = 0; r < t.length; r++)
|
|
3589
3589
|
this.bump();
|
|
3590
3590
|
return !0;
|
|
@@ -3606,7 +3606,7 @@ var Pi = (
|
|
|
3606
3606
|
break;
|
|
3607
3607
|
}
|
|
3608
3608
|
}, e.prototype.bumpSpace = function() {
|
|
3609
|
-
for (; !this.isEOF() &&
|
|
3609
|
+
for (; !this.isEOF() && Ar(this.char()); )
|
|
3610
3610
|
this.bump();
|
|
3611
3611
|
}, e.prototype.peek = function() {
|
|
3612
3612
|
if (this.isEOF())
|
|
@@ -3616,38 +3616,38 @@ var Pi = (
|
|
|
3616
3616
|
}, e;
|
|
3617
3617
|
}()
|
|
3618
3618
|
);
|
|
3619
|
-
function
|
|
3619
|
+
function it(e) {
|
|
3620
3620
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3621
3621
|
}
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3622
|
+
function Hi(e) {
|
|
3623
|
+
return it(e) || e === 47;
|
|
3624
3624
|
}
|
|
3625
|
-
function
|
|
3625
|
+
function Mi(e) {
|
|
3626
3626
|
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;
|
|
3627
3627
|
}
|
|
3628
|
-
function
|
|
3628
|
+
function Ar(e) {
|
|
3629
3629
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3630
3630
|
}
|
|
3631
|
-
function
|
|
3631
|
+
function Bi(e) {
|
|
3632
3632
|
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;
|
|
3633
3633
|
}
|
|
3634
|
-
function
|
|
3634
|
+
function ot(e) {
|
|
3635
3635
|
e.forEach(function(t) {
|
|
3636
|
-
if (delete t.location,
|
|
3636
|
+
if (delete t.location, mr(t) || dr(t))
|
|
3637
3637
|
for (var r in t.options)
|
|
3638
|
-
delete t.options[r].location,
|
|
3638
|
+
delete t.options[r].location, ot(t.options[r].value);
|
|
3639
3639
|
else
|
|
3640
|
-
|
|
3640
|
+
hr(t) && gr(t.style) || (fr(t) || pr(t)) && et(t.style) ? delete t.style.location : br(t) && ot(t.children);
|
|
3641
3641
|
});
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3643
|
+
function Ii(e, t) {
|
|
3644
3644
|
t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3645
|
-
var r = new
|
|
3645
|
+
var r = new Ti(e, t).parse();
|
|
3646
3646
|
if (r.err) {
|
|
3647
|
-
var n = SyntaxError(
|
|
3647
|
+
var n = SyntaxError(x[r.err.kind]);
|
|
3648
3648
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3649
3649
|
}
|
|
3650
|
-
return t != null && t.captureLocation ||
|
|
3650
|
+
return t != null && t.captureLocation || ot(r.val), r.val;
|
|
3651
3651
|
}
|
|
3652
3652
|
var te;
|
|
3653
3653
|
(function(e) {
|
|
@@ -3665,7 +3665,7 @@ var Me = (
|
|
|
3665
3665
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3666
3666
|
}, t;
|
|
3667
3667
|
}(Error)
|
|
3668
|
-
),
|
|
3668
|
+
), $t = (
|
|
3669
3669
|
/** @class */
|
|
3670
3670
|
function(e) {
|
|
3671
3671
|
He(t, e);
|
|
@@ -3674,7 +3674,7 @@ var Me = (
|
|
|
3674
3674
|
}
|
|
3675
3675
|
return t;
|
|
3676
3676
|
}(Me)
|
|
3677
|
-
),
|
|
3677
|
+
), Oi = (
|
|
3678
3678
|
/** @class */
|
|
3679
3679
|
function(e) {
|
|
3680
3680
|
He(t, e);
|
|
@@ -3683,7 +3683,7 @@ var Me = (
|
|
|
3683
3683
|
}
|
|
3684
3684
|
return t;
|
|
3685
3685
|
}(Me)
|
|
3686
|
-
),
|
|
3686
|
+
), Ci = (
|
|
3687
3687
|
/** @class */
|
|
3688
3688
|
function(e) {
|
|
3689
3689
|
He(t, e);
|
|
@@ -3692,128 +3692,128 @@ var Me = (
|
|
|
3692
3692
|
}
|
|
3693
3693
|
return t;
|
|
3694
3694
|
}(Me)
|
|
3695
|
-
),
|
|
3695
|
+
), C;
|
|
3696
3696
|
(function(e) {
|
|
3697
3697
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3698
|
-
})(
|
|
3699
|
-
function
|
|
3698
|
+
})(C || (C = {}));
|
|
3699
|
+
function Li(e) {
|
|
3700
3700
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3701
3701
|
var n = t[t.length - 1];
|
|
3702
|
-
return !n || n.type !==
|
|
3702
|
+
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3703
3703
|
}, []);
|
|
3704
3704
|
}
|
|
3705
|
-
function
|
|
3705
|
+
function Ni(e) {
|
|
3706
3706
|
return typeof e == "function";
|
|
3707
3707
|
}
|
|
3708
3708
|
function ve(e, t, r, n, i, o, s) {
|
|
3709
|
-
if (e.length === 1 &&
|
|
3709
|
+
if (e.length === 1 && Ot(e[0]))
|
|
3710
3710
|
return [
|
|
3711
3711
|
{
|
|
3712
|
-
type:
|
|
3712
|
+
type: C.literal,
|
|
3713
3713
|
value: e[0].value
|
|
3714
3714
|
}
|
|
3715
3715
|
];
|
|
3716
3716
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3717
3717
|
var c = u[l];
|
|
3718
|
-
if (
|
|
3718
|
+
if (Ot(c)) {
|
|
3719
3719
|
a.push({
|
|
3720
|
-
type:
|
|
3720
|
+
type: C.literal,
|
|
3721
3721
|
value: c.value
|
|
3722
3722
|
});
|
|
3723
3723
|
continue;
|
|
3724
3724
|
}
|
|
3725
|
-
if (
|
|
3725
|
+
if (ni(c)) {
|
|
3726
3726
|
typeof o == "number" && a.push({
|
|
3727
|
-
type:
|
|
3727
|
+
type: C.literal,
|
|
3728
3728
|
value: r.getNumberFormat(t).format(o)
|
|
3729
3729
|
});
|
|
3730
3730
|
continue;
|
|
3731
3731
|
}
|
|
3732
|
-
var
|
|
3733
|
-
if (!(i &&
|
|
3734
|
-
throw new
|
|
3735
|
-
var
|
|
3736
|
-
if (
|
|
3737
|
-
(!
|
|
3738
|
-
type: typeof
|
|
3739
|
-
value:
|
|
3732
|
+
var f = c.value;
|
|
3733
|
+
if (!(i && f in i))
|
|
3734
|
+
throw new Ci(f, s);
|
|
3735
|
+
var h = i[f];
|
|
3736
|
+
if (ri(c)) {
|
|
3737
|
+
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3738
|
+
type: typeof h == "string" ? C.literal : C.object,
|
|
3739
|
+
value: h
|
|
3740
3740
|
});
|
|
3741
3741
|
continue;
|
|
3742
3742
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var
|
|
3743
|
+
if (fr(c)) {
|
|
3744
|
+
var d = typeof c.style == "string" ? n.date[c.style] : et(c.style) ? c.style.parsedOptions : void 0;
|
|
3745
3745
|
a.push({
|
|
3746
|
-
type:
|
|
3747
|
-
value: r.getDateTimeFormat(t,
|
|
3746
|
+
type: C.literal,
|
|
3747
|
+
value: r.getDateTimeFormat(t, d).format(h)
|
|
3748
3748
|
});
|
|
3749
3749
|
continue;
|
|
3750
3750
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var
|
|
3751
|
+
if (pr(c)) {
|
|
3752
|
+
var d = typeof c.style == "string" ? n.time[c.style] : et(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3753
3753
|
a.push({
|
|
3754
|
-
type:
|
|
3755
|
-
value: r.getDateTimeFormat(t,
|
|
3754
|
+
type: C.literal,
|
|
3755
|
+
value: r.getDateTimeFormat(t, d).format(h)
|
|
3756
3756
|
});
|
|
3757
3757
|
continue;
|
|
3758
3758
|
}
|
|
3759
|
-
if (
|
|
3760
|
-
var
|
|
3761
|
-
|
|
3762
|
-
type:
|
|
3763
|
-
value: r.getNumberFormat(t,
|
|
3759
|
+
if (hr(c)) {
|
|
3760
|
+
var d = typeof c.style == "string" ? n.number[c.style] : gr(c.style) ? c.style.parsedOptions : void 0;
|
|
3761
|
+
d && d.scale && (h = h * (d.scale || 1)), a.push({
|
|
3762
|
+
type: C.literal,
|
|
3763
|
+
value: r.getNumberFormat(t, d).format(h)
|
|
3764
3764
|
});
|
|
3765
3765
|
continue;
|
|
3766
3766
|
}
|
|
3767
|
-
if (
|
|
3767
|
+
if (br(c)) {
|
|
3768
3768
|
var m = c.children, b = c.value, g = i[b];
|
|
3769
|
-
if (!
|
|
3770
|
-
throw new
|
|
3771
|
-
var
|
|
3772
|
-
return
|
|
3769
|
+
if (!Ni(g))
|
|
3770
|
+
throw new Oi(b, "function", s);
|
|
3771
|
+
var P = ve(m, t, r, n, i, o), M = g(P.map(function(_) {
|
|
3772
|
+
return _.value;
|
|
3773
3773
|
}));
|
|
3774
|
-
Array.isArray(
|
|
3774
|
+
Array.isArray(M) || (M = [M]), a.push.apply(a, M.map(function(_) {
|
|
3775
3775
|
return {
|
|
3776
|
-
type: typeof
|
|
3777
|
-
value:
|
|
3776
|
+
type: typeof _ == "string" ? C.literal : C.object,
|
|
3777
|
+
value: _
|
|
3778
3778
|
};
|
|
3779
3779
|
}));
|
|
3780
3780
|
}
|
|
3781
|
-
if (
|
|
3782
|
-
var
|
|
3783
|
-
if (!
|
|
3784
|
-
throw new
|
|
3785
|
-
a.push.apply(a, ve(
|
|
3781
|
+
if (mr(c)) {
|
|
3782
|
+
var v = c.options[h] || c.options.other;
|
|
3783
|
+
if (!v)
|
|
3784
|
+
throw new $t(c.value, h, Object.keys(c.options), s);
|
|
3785
|
+
a.push.apply(a, ve(v.value, t, r, n, i));
|
|
3786
3786
|
continue;
|
|
3787
3787
|
}
|
|
3788
|
-
if (
|
|
3789
|
-
var
|
|
3790
|
-
if (!
|
|
3788
|
+
if (dr(c)) {
|
|
3789
|
+
var v = c.options["=".concat(h)];
|
|
3790
|
+
if (!v) {
|
|
3791
3791
|
if (!Intl.PluralRules)
|
|
3792
3792
|
throw new Me(`Intl.PluralRules is not available in this environment.
|
|
3793
3793
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3794
3794
|
`, te.MISSING_INTL_API, s);
|
|
3795
|
-
var
|
|
3796
|
-
|
|
3795
|
+
var B = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3796
|
+
v = c.options[B] || c.options.other;
|
|
3797
3797
|
}
|
|
3798
|
-
if (!
|
|
3799
|
-
throw new
|
|
3800
|
-
a.push.apply(a, ve(
|
|
3798
|
+
if (!v)
|
|
3799
|
+
throw new $t(c.value, h, Object.keys(c.options), s);
|
|
3800
|
+
a.push.apply(a, ve(v.value, t, r, n, i, h - (c.offset || 0)));
|
|
3801
3801
|
continue;
|
|
3802
3802
|
}
|
|
3803
3803
|
}
|
|
3804
|
-
return
|
|
3804
|
+
return Li(a);
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3807
|
-
return t ?
|
|
3808
|
-
return r[n] =
|
|
3806
|
+
function Ri(e, t) {
|
|
3807
|
+
return t ? D(D(D({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3808
|
+
return r[n] = D(D({}, e[n]), t[n] || {}), r;
|
|
3809
3809
|
}, {})) : e;
|
|
3810
3810
|
}
|
|
3811
|
-
function
|
|
3811
|
+
function Fi(e, t) {
|
|
3812
3812
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3813
|
-
return r[n] =
|
|
3814
|
-
},
|
|
3813
|
+
return r[n] = Ri(e[n], t[n]), r;
|
|
3814
|
+
}, D({}, e)) : e;
|
|
3815
3815
|
}
|
|
3816
|
-
function
|
|
3816
|
+
function Ge(e) {
|
|
3817
3817
|
return {
|
|
3818
3818
|
create: function() {
|
|
3819
3819
|
return {
|
|
@@ -3827,39 +3827,39 @@ function Ue(e) {
|
|
|
3827
3827
|
}
|
|
3828
3828
|
};
|
|
3829
3829
|
}
|
|
3830
|
-
function
|
|
3830
|
+
function Ui(e) {
|
|
3831
3831
|
return e === void 0 && (e = {
|
|
3832
3832
|
number: {},
|
|
3833
3833
|
dateTime: {},
|
|
3834
3834
|
pluralRules: {}
|
|
3835
3835
|
}), {
|
|
3836
|
-
getNumberFormat:
|
|
3836
|
+
getNumberFormat: Ue(function() {
|
|
3837
3837
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3838
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3839
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Fe([void 0], r, !1)))();
|
|
3840
3840
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3841
|
+
cache: Ge(e.number),
|
|
3842
|
+
strategy: $e.variadic
|
|
3843
3843
|
}),
|
|
3844
|
-
getDateTimeFormat:
|
|
3844
|
+
getDateTimeFormat: Ue(function() {
|
|
3845
3845
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3846
3846
|
r[n] = arguments[n];
|
|
3847
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3847
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Fe([void 0], r, !1)))();
|
|
3848
3848
|
}, {
|
|
3849
|
-
cache:
|
|
3850
|
-
strategy:
|
|
3849
|
+
cache: Ge(e.dateTime),
|
|
3850
|
+
strategy: $e.variadic
|
|
3851
3851
|
}),
|
|
3852
|
-
getPluralRules:
|
|
3852
|
+
getPluralRules: Ue(function() {
|
|
3853
3853
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3854
3854
|
r[n] = arguments[n];
|
|
3855
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3855
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Fe([void 0], r, !1)))();
|
|
3856
3856
|
}, {
|
|
3857
|
-
cache:
|
|
3858
|
-
strategy:
|
|
3857
|
+
cache: Ge(e.pluralRules),
|
|
3858
|
+
strategy: $e.variadic
|
|
3859
3859
|
})
|
|
3860
3860
|
};
|
|
3861
3861
|
}
|
|
3862
|
-
var
|
|
3862
|
+
var $i = (
|
|
3863
3863
|
/** @class */
|
|
3864
3864
|
function() {
|
|
3865
3865
|
function e(t, r, n, i) {
|
|
@@ -3873,8 +3873,8 @@ var Fi = (
|
|
|
3873
3873
|
var u = o.formatToParts(l);
|
|
3874
3874
|
if (u.length === 1)
|
|
3875
3875
|
return u[0].value;
|
|
3876
|
-
var c = u.reduce(function(
|
|
3877
|
-
return !
|
|
3876
|
+
var c = u.reduce(function(f, h) {
|
|
3877
|
+
return !f.length || h.type !== C.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
|
|
3878
3878
|
}, []);
|
|
3879
3879
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3880
3880
|
}, this.formatToParts = function(l) {
|
|
@@ -3891,13 +3891,13 @@ var Fi = (
|
|
|
3891
3891
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3892
3892
|
var s = i || {};
|
|
3893
3893
|
s.formatters;
|
|
3894
|
-
var a =
|
|
3895
|
-
this.ast = e.__parse(t,
|
|
3894
|
+
var a = Zn(s, ["formatters"]);
|
|
3895
|
+
this.ast = e.__parse(t, D(D({}, a), { locale: this.resolvedLocale }));
|
|
3896
3896
|
} else
|
|
3897
3897
|
this.ast = t;
|
|
3898
3898
|
if (!Array.isArray(this.ast))
|
|
3899
3899
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3900
|
-
this.formats =
|
|
3900
|
+
this.formats = Fi(e.formats, n), this.formatters = i && i.formatters || Ui(this.formatterCache);
|
|
3901
3901
|
}
|
|
3902
3902
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3903
3903
|
get: function() {
|
|
@@ -3910,7 +3910,7 @@ var Fi = (
|
|
|
3910
3910
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3911
3911
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3912
3912
|
}
|
|
3913
|
-
}, e.__parse =
|
|
3913
|
+
}, e.__parse = Ii, e.formats = {
|
|
3914
3914
|
number: {
|
|
3915
3915
|
integer: {
|
|
3916
3916
|
maximumFractionDigits: 0
|
|
@@ -3971,7 +3971,7 @@ var Fi = (
|
|
|
3971
3971
|
}, e;
|
|
3972
3972
|
}()
|
|
3973
3973
|
);
|
|
3974
|
-
function
|
|
3974
|
+
function Di(e, t) {
|
|
3975
3975
|
if (t == null)
|
|
3976
3976
|
return;
|
|
3977
3977
|
if (t in e)
|
|
@@ -3992,92 +3992,92 @@ function $i(e, t) {
|
|
|
3992
3992
|
n = void 0;
|
|
3993
3993
|
return n;
|
|
3994
3994
|
}
|
|
3995
|
-
const j = {},
|
|
3995
|
+
const j = {}, Gi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Pr = (e, t) => {
|
|
3996
3996
|
if (t == null)
|
|
3997
3997
|
return;
|
|
3998
3998
|
if (t in j && e in j[t])
|
|
3999
3999
|
return j[t][e];
|
|
4000
4000
|
const r = Be(t);
|
|
4001
4001
|
for (let n = 0; n < r.length; n++) {
|
|
4002
|
-
const i = r[n], o =
|
|
4002
|
+
const i = r[n], o = ji(i, e);
|
|
4003
4003
|
if (o)
|
|
4004
|
-
return
|
|
4004
|
+
return Gi(e, t, o);
|
|
4005
4005
|
}
|
|
4006
4006
|
};
|
|
4007
|
-
let
|
|
4007
|
+
let lt;
|
|
4008
4008
|
const pe = Te({});
|
|
4009
|
-
function
|
|
4010
|
-
return
|
|
4009
|
+
function ki(e) {
|
|
4010
|
+
return lt[e] || null;
|
|
4011
4011
|
}
|
|
4012
|
-
function
|
|
4013
|
-
return e in
|
|
4012
|
+
function Sr(e) {
|
|
4013
|
+
return e in lt;
|
|
4014
4014
|
}
|
|
4015
|
-
function
|
|
4016
|
-
if (!
|
|
4015
|
+
function ji(e, t) {
|
|
4016
|
+
if (!Sr(e))
|
|
4017
4017
|
return null;
|
|
4018
|
-
const r =
|
|
4019
|
-
return
|
|
4018
|
+
const r = ki(e);
|
|
4019
|
+
return Di(r, t);
|
|
4020
4020
|
}
|
|
4021
|
-
function
|
|
4021
|
+
function Vi(e) {
|
|
4022
4022
|
if (e == null)
|
|
4023
4023
|
return;
|
|
4024
4024
|
const t = Be(e);
|
|
4025
4025
|
for (let r = 0; r < t.length; r++) {
|
|
4026
4026
|
const n = t[r];
|
|
4027
|
-
if (
|
|
4027
|
+
if (Sr(n))
|
|
4028
4028
|
return n;
|
|
4029
4029
|
}
|
|
4030
4030
|
}
|
|
4031
|
-
function
|
|
4032
|
-
delete j[e], pe.update((r) => (r[e] =
|
|
4031
|
+
function Tr(e, ...t) {
|
|
4032
|
+
delete j[e], pe.update((r) => (r[e] = zn.all([r[e] || {}, ...t]), r));
|
|
4033
4033
|
}
|
|
4034
4034
|
ie(
|
|
4035
4035
|
[pe],
|
|
4036
4036
|
([e]) => Object.keys(e)
|
|
4037
4037
|
);
|
|
4038
|
-
pe.subscribe((e) =>
|
|
4038
|
+
pe.subscribe((e) => lt = e);
|
|
4039
4039
|
const _e = {};
|
|
4040
|
-
function
|
|
4040
|
+
function Wi(e, t) {
|
|
4041
4041
|
_e[e].delete(t), _e[e].size === 0 && delete _e[e];
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4043
|
+
function Hr(e) {
|
|
4044
4044
|
return _e[e];
|
|
4045
4045
|
}
|
|
4046
|
-
function
|
|
4046
|
+
function Xi(e) {
|
|
4047
4047
|
return Be(e).map((t) => {
|
|
4048
|
-
const r =
|
|
4048
|
+
const r = Hr(t);
|
|
4049
4049
|
return [t, r ? [...r] : []];
|
|
4050
4050
|
}).filter(([, t]) => t.length > 0);
|
|
4051
4051
|
}
|
|
4052
|
-
function
|
|
4052
|
+
function st(e) {
|
|
4053
4053
|
return e == null ? !1 : Be(e).some(
|
|
4054
4054
|
(t) => {
|
|
4055
4055
|
var r;
|
|
4056
|
-
return (r =
|
|
4056
|
+
return (r = Hr(t)) == null ? void 0 : r.size;
|
|
4057
4057
|
}
|
|
4058
4058
|
);
|
|
4059
4059
|
}
|
|
4060
|
-
function
|
|
4060
|
+
function zi(e, t) {
|
|
4061
4061
|
return Promise.all(
|
|
4062
|
-
t.map((n) => (
|
|
4063
|
-
).then((n) =>
|
|
4062
|
+
t.map((n) => (Wi(e, n), n().then((i) => i.default || i)))
|
|
4063
|
+
).then((n) => Tr(e, ...n));
|
|
4064
4064
|
}
|
|
4065
4065
|
const ae = {};
|
|
4066
|
-
function
|
|
4067
|
-
if (!
|
|
4066
|
+
function Mr(e) {
|
|
4067
|
+
if (!st(e))
|
|
4068
4068
|
return e in ae ? ae[e] : Promise.resolve();
|
|
4069
|
-
const t =
|
|
4069
|
+
const t = Xi(e);
|
|
4070
4070
|
return ae[e] = Promise.all(
|
|
4071
4071
|
t.map(
|
|
4072
|
-
([r, n]) =>
|
|
4072
|
+
([r, n]) => zi(r, n)
|
|
4073
4073
|
)
|
|
4074
4074
|
).then(() => {
|
|
4075
|
-
if (
|
|
4076
|
-
return
|
|
4075
|
+
if (st(e))
|
|
4076
|
+
return Mr(e);
|
|
4077
4077
|
delete ae[e];
|
|
4078
4078
|
}), ae[e];
|
|
4079
4079
|
}
|
|
4080
|
-
const
|
|
4080
|
+
const Zi = {
|
|
4081
4081
|
number: {
|
|
4082
4082
|
scientific: { notation: "scientific" },
|
|
4083
4083
|
engineering: { notation: "engineering" },
|
|
@@ -4106,57 +4106,57 @@ const Xi = {
|
|
|
4106
4106
|
timeZoneName: "short"
|
|
4107
4107
|
}
|
|
4108
4108
|
}
|
|
4109
|
-
},
|
|
4109
|
+
}, Qi = {
|
|
4110
4110
|
fallbackLocale: null,
|
|
4111
4111
|
loadingDelay: 200,
|
|
4112
|
-
formats:
|
|
4112
|
+
formats: Zi,
|
|
4113
4113
|
warnOnMissingMessages: !0,
|
|
4114
4114
|
handleMissingMessage: void 0,
|
|
4115
4115
|
ignoreTag: !0
|
|
4116
|
-
},
|
|
4116
|
+
}, qi = Qi;
|
|
4117
4117
|
function re() {
|
|
4118
|
-
return
|
|
4118
|
+
return qi;
|
|
4119
4119
|
}
|
|
4120
|
-
const
|
|
4121
|
-
var
|
|
4120
|
+
const ke = Te(!1);
|
|
4121
|
+
var Ji = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, Gt = (e, t, r) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ro = (e, t) => {
|
|
4122
4122
|
for (var r in t || (t = {}))
|
|
4123
|
-
|
|
4124
|
-
if (
|
|
4125
|
-
for (var r of
|
|
4126
|
-
|
|
4123
|
+
eo.call(t, r) && Gt(e, r, t[r]);
|
|
4124
|
+
if (Dt)
|
|
4125
|
+
for (var r of Dt(t))
|
|
4126
|
+
to.call(t, r) && Gt(e, r, t[r]);
|
|
4127
4127
|
return e;
|
|
4128
|
-
},
|
|
4129
|
-
let
|
|
4128
|
+
}, no = (e, t) => Yi(e, Ki(t));
|
|
4129
|
+
let at;
|
|
4130
4130
|
const Ae = Te(null);
|
|
4131
|
-
function
|
|
4131
|
+
function kt(e) {
|
|
4132
4132
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4133
4133
|
}
|
|
4134
4134
|
function Be(e, t = re().fallbackLocale) {
|
|
4135
|
-
const r =
|
|
4136
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4135
|
+
const r = kt(e);
|
|
4136
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...kt(t)])] : r;
|
|
4137
4137
|
}
|
|
4138
4138
|
function V() {
|
|
4139
|
-
return
|
|
4139
|
+
return at != null ? at : void 0;
|
|
4140
4140
|
}
|
|
4141
4141
|
Ae.subscribe((e) => {
|
|
4142
|
-
|
|
4142
|
+
at = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4143
4143
|
});
|
|
4144
|
-
const
|
|
4145
|
-
if (e &&
|
|
4144
|
+
const io = (e) => {
|
|
4145
|
+
if (e && Vi(e) && st(e)) {
|
|
4146
4146
|
const { loadingDelay: t } = re();
|
|
4147
4147
|
let r;
|
|
4148
4148
|
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
4149
|
-
() =>
|
|
4149
|
+
() => ke.set(!0),
|
|
4150
4150
|
t
|
|
4151
|
-
) :
|
|
4151
|
+
) : ke.set(!0), Mr(e).then(() => {
|
|
4152
4152
|
Ae.set(e);
|
|
4153
4153
|
}).finally(() => {
|
|
4154
|
-
clearTimeout(r),
|
|
4154
|
+
clearTimeout(r), ke.set(!1);
|
|
4155
4155
|
});
|
|
4156
4156
|
}
|
|
4157
4157
|
return Ae.set(e);
|
|
4158
|
-
}, oe =
|
|
4159
|
-
set:
|
|
4158
|
+
}, oe = no(ro({}, Ae), {
|
|
4159
|
+
set: io
|
|
4160
4160
|
}), Ie = (e) => {
|
|
4161
4161
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4162
4162
|
return (n) => {
|
|
@@ -4164,20 +4164,20 @@ const ro = (e) => {
|
|
|
4164
4164
|
return i in t ? t[i] : t[i] = e(n);
|
|
4165
4165
|
};
|
|
4166
4166
|
};
|
|
4167
|
-
var
|
|
4167
|
+
var oo = Object.defineProperty, Pe = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Ir = Object.prototype.propertyIsEnumerable, jt = (e, t, r) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
|
|
4168
4168
|
for (var r in t || (t = {}))
|
|
4169
|
-
|
|
4169
|
+
Br.call(t, r) && jt(e, r, t[r]);
|
|
4170
4170
|
if (Pe)
|
|
4171
4171
|
for (var r of Pe(t))
|
|
4172
|
-
|
|
4172
|
+
Ir.call(t, r) && jt(e, r, t[r]);
|
|
4173
4173
|
return e;
|
|
4174
4174
|
}, se = (e, t) => {
|
|
4175
4175
|
var r = {};
|
|
4176
4176
|
for (var n in e)
|
|
4177
|
-
|
|
4177
|
+
Br.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4178
4178
|
if (e != null && Pe)
|
|
4179
4179
|
for (var n of Pe(e))
|
|
4180
|
-
t.indexOf(n) < 0 &&
|
|
4180
|
+
t.indexOf(n) < 0 && Ir.call(e, n) && (r[n] = e[n]);
|
|
4181
4181
|
return r;
|
|
4182
4182
|
};
|
|
4183
4183
|
const he = (e, t) => {
|
|
@@ -4185,21 +4185,21 @@ const he = (e, t) => {
|
|
|
4185
4185
|
if (e in r && t in r[e])
|
|
4186
4186
|
return r[e][t];
|
|
4187
4187
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4188
|
-
},
|
|
4188
|
+
}, so = Ie(
|
|
4189
4189
|
(e) => {
|
|
4190
4190
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4191
4191
|
if (r == null)
|
|
4192
4192
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4193
4193
|
return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
|
|
4194
4194
|
}
|
|
4195
|
-
),
|
|
4195
|
+
), ao = Ie(
|
|
4196
4196
|
(e) => {
|
|
4197
4197
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4198
4198
|
if (r == null)
|
|
4199
4199
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4200
4200
|
return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4201
4201
|
}
|
|
4202
|
-
),
|
|
4202
|
+
), uo = Ie(
|
|
4203
4203
|
(e) => {
|
|
4204
4204
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4205
4205
|
if (r == null)
|
|
@@ -4208,33 +4208,33 @@ const he = (e, t) => {
|
|
|
4208
4208
|
);
|
|
4209
4209
|
return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4210
4210
|
}
|
|
4211
|
-
),
|
|
4211
|
+
), lo = (e = {}) => {
|
|
4212
4212
|
var t = e, {
|
|
4213
4213
|
locale: r = V()
|
|
4214
4214
|
} = t, n = se(t, [
|
|
4215
4215
|
"locale"
|
|
4216
4216
|
]);
|
|
4217
|
-
return
|
|
4218
|
-
},
|
|
4217
|
+
return so(ct({ locale: r }, n));
|
|
4218
|
+
}, co = (e = {}) => {
|
|
4219
4219
|
var t = e, {
|
|
4220
4220
|
locale: r = V()
|
|
4221
4221
|
} = t, n = se(t, [
|
|
4222
4222
|
"locale"
|
|
4223
4223
|
]);
|
|
4224
|
-
return
|
|
4225
|
-
},
|
|
4224
|
+
return ao(ct({ locale: r }, n));
|
|
4225
|
+
}, ho = (e = {}) => {
|
|
4226
4226
|
var t = e, {
|
|
4227
4227
|
locale: r = V()
|
|
4228
4228
|
} = t, n = se(t, [
|
|
4229
4229
|
"locale"
|
|
4230
4230
|
]);
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4231
|
+
return uo(ct({ locale: r }, n));
|
|
4232
|
+
}, fo = Ie(
|
|
4233
4233
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4234
|
-
(e, t = V()) => new
|
|
4234
|
+
(e, t = V()) => new $i(e, t, re().formats, {
|
|
4235
4235
|
ignoreTag: re().ignoreTag
|
|
4236
4236
|
})
|
|
4237
|
-
),
|
|
4237
|
+
), po = (e, t = {}) => {
|
|
4238
4238
|
var r, n, i, o;
|
|
4239
4239
|
let s = t;
|
|
4240
4240
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4247,7 +4247,7 @@ const he = (e, t) => {
|
|
|
4247
4247
|
throw new Error(
|
|
4248
4248
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4249
4249
|
);
|
|
4250
|
-
let c =
|
|
4250
|
+
let c = Pr(e, l);
|
|
4251
4251
|
if (!c)
|
|
4252
4252
|
c = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4253
4253
|
else if (typeof c != "string")
|
|
@@ -4256,31 +4256,31 @@ const he = (e, t) => {
|
|
|
4256
4256
|
), c;
|
|
4257
4257
|
if (!a)
|
|
4258
4258
|
return c;
|
|
4259
|
-
let
|
|
4259
|
+
let f = c;
|
|
4260
4260
|
try {
|
|
4261
|
-
|
|
4262
|
-
} catch (
|
|
4263
|
-
|
|
4261
|
+
f = fo(c, l).format(a);
|
|
4262
|
+
} catch (h) {
|
|
4263
|
+
h instanceof Error && console.warn(
|
|
4264
4264
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4265
|
-
|
|
4265
|
+
h.message
|
|
4266
4266
|
);
|
|
4267
4267
|
}
|
|
4268
|
-
return
|
|
4269
|
-
},
|
|
4270
|
-
ie([oe], () => fo);
|
|
4271
|
-
ie([oe], () => po);
|
|
4268
|
+
return f;
|
|
4269
|
+
}, mo = (e, t) => ho(t).format(e), bo = (e, t) => co(t).format(e), go = (e, t) => lo(t).format(e), yo = (e, t = V()) => Pr(e, t), vo = ie([oe, pe], () => po);
|
|
4272
4270
|
ie([oe], () => mo);
|
|
4273
|
-
ie([oe
|
|
4274
|
-
|
|
4275
|
-
|
|
4271
|
+
ie([oe], () => bo);
|
|
4272
|
+
ie([oe], () => go);
|
|
4273
|
+
ie([oe, pe], () => yo);
|
|
4274
|
+
window.emWidgets = { topic: Bn };
|
|
4275
|
+
const Vt = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4276
4276
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4277
|
-
function
|
|
4278
|
-
|
|
4277
|
+
function Wt(e, t) {
|
|
4278
|
+
Tr(e, t);
|
|
4279
4279
|
}
|
|
4280
|
-
function
|
|
4280
|
+
function _o(e) {
|
|
4281
4281
|
oe.set(e);
|
|
4282
4282
|
}
|
|
4283
|
-
const
|
|
4283
|
+
const Xt = {
|
|
4284
4284
|
en: {
|
|
4285
4285
|
title: "My Account"
|
|
4286
4286
|
},
|
|
@@ -4315,13 +4315,13 @@ const Vt = {
|
|
|
4315
4315
|
title: "My Account"
|
|
4316
4316
|
}
|
|
4317
4317
|
}, q = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4318
|
-
function
|
|
4318
|
+
function xo(e, t) {
|
|
4319
4319
|
if (e) {
|
|
4320
4320
|
const r = document.createElement("style");
|
|
4321
4321
|
r.innerHTML = t, e.appendChild(r);
|
|
4322
4322
|
}
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function Eo(e, t) {
|
|
4325
4325
|
if (!e || !t)
|
|
4326
4326
|
return;
|
|
4327
4327
|
const r = new URL(t);
|
|
@@ -4332,12 +4332,12 @@ function _o(e, t) {
|
|
|
4332
4332
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4333
4333
|
});
|
|
4334
4334
|
}
|
|
4335
|
-
function
|
|
4335
|
+
function wo(e, t, r, n = !1) {
|
|
4336
4336
|
if (!window.emMessageBus)
|
|
4337
4337
|
return;
|
|
4338
4338
|
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4339
|
-
return r =
|
|
4340
|
-
window[q] || (window[q] = {}), r =
|
|
4339
|
+
return r = Ao(e, t), r;
|
|
4340
|
+
window[q] || (window[q] = {}), r = Po(e, t);
|
|
4341
4341
|
const o = r.unsubscribe.bind(r), s = () => {
|
|
4342
4342
|
if (window[q][t]) {
|
|
4343
4343
|
const a = window[q][t];
|
|
@@ -4347,13 +4347,13 @@ function xo(e, t, r, n = !1) {
|
|
|
4347
4347
|
};
|
|
4348
4348
|
return r.unsubscribe = s, r;
|
|
4349
4349
|
}
|
|
4350
|
-
function
|
|
4350
|
+
function Ao(e, t) {
|
|
4351
4351
|
const r = document.createElement("style");
|
|
4352
4352
|
return window.emMessageBus.subscribe(t, (n) => {
|
|
4353
4353
|
e && (r.innerHTML = n, e.appendChild(r));
|
|
4354
4354
|
});
|
|
4355
4355
|
}
|
|
4356
|
-
function
|
|
4356
|
+
function Po(e, t) {
|
|
4357
4357
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
4358
4358
|
if (!e)
|
|
4359
4359
|
return;
|
|
@@ -4379,232 +4379,241 @@ if (typeof window != "undefined") {
|
|
|
4379
4379
|
}
|
|
4380
4380
|
};
|
|
4381
4381
|
};
|
|
4382
|
-
customElements.define = e(customElements.define), import("./GeneralLogout-
|
|
4382
|
+
customElements.define = e(customElements.define), import("./GeneralLogout-BgJ7R5S6.js").then(({ default: t }) => {
|
|
4383
4383
|
!customElements.get("general-logout") && customElements.define("general-logout", t.element);
|
|
4384
4384
|
});
|
|
4385
4385
|
}
|
|
4386
|
-
function
|
|
4387
|
-
|
|
4386
|
+
function So(e) {
|
|
4387
|
+
qr(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}}');
|
|
4388
4388
|
}
|
|
4389
|
-
function
|
|
4389
|
+
function zt(e, t, r) {
|
|
4390
4390
|
const n = e.slice();
|
|
4391
|
-
return n[
|
|
4391
|
+
return n[43] = t[r], n;
|
|
4392
4392
|
}
|
|
4393
|
-
function
|
|
4393
|
+
function Zt(e, t, r) {
|
|
4394
4394
|
const n = e.slice();
|
|
4395
|
-
return n[
|
|
4395
|
+
return n[40] = t[r], n;
|
|
4396
4396
|
}
|
|
4397
|
-
function
|
|
4398
|
-
let t, r, n, i, o
|
|
4397
|
+
function To(e) {
|
|
4398
|
+
let t, r, n, i, o = (
|
|
4399
|
+
/*showaliasasusername*/
|
|
4400
|
+
(e[5] === "true" ? (
|
|
4401
|
+
/*profileAlias*/
|
|
4402
|
+
e[12]
|
|
4403
|
+
) : (
|
|
4404
|
+
/*profileUsername*/
|
|
4405
|
+
e[10]
|
|
4406
|
+
)) + ""
|
|
4407
|
+
), s, a, l, u, c, f, h, d, m = (
|
|
4399
4408
|
/*isMobile*/
|
|
4400
|
-
e[
|
|
4401
|
-
),
|
|
4409
|
+
e[14] && Mo(e)
|
|
4410
|
+
), b = (
|
|
4402
4411
|
/*isMobile*/
|
|
4403
|
-
e[
|
|
4404
|
-
),
|
|
4412
|
+
e[14] && Bo(e)
|
|
4413
|
+
), g = Ee(
|
|
4405
4414
|
/*menuItems*/
|
|
4406
|
-
e[
|
|
4407
|
-
),
|
|
4408
|
-
for (let v = 0; v <
|
|
4409
|
-
|
|
4415
|
+
e[8]
|
|
4416
|
+
), P = [];
|
|
4417
|
+
for (let v = 0; v < g.length; v += 1)
|
|
4418
|
+
P[v] = Qt(zt(e, g, v));
|
|
4410
4419
|
let M = !/*isMobile*/
|
|
4411
|
-
e[
|
|
4420
|
+
e[14] && Io(e);
|
|
4412
4421
|
return {
|
|
4413
4422
|
c() {
|
|
4414
|
-
t =
|
|
4415
|
-
/*profileUsername*/
|
|
4416
|
-
e[9]
|
|
4417
|
-
), s = C(), a = P("p"), l = Y(
|
|
4423
|
+
t = S("div"), r = S("div"), m && m.c(), n = L(), i = S("p"), s = Y(o), a = L(), l = S("p"), u = Y(
|
|
4418
4424
|
/*profileEmail*/
|
|
4419
|
-
e[
|
|
4420
|
-
),
|
|
4421
|
-
for (let v = 0; v <
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
(e[
|
|
4425
|
-
(e[
|
|
4425
|
+
e[11]
|
|
4426
|
+
), c = L(), b && b.c(), f = L(), h = S("div");
|
|
4427
|
+
for (let v = 0; v < P.length; v += 1)
|
|
4428
|
+
P[v].c();
|
|
4429
|
+
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*/
|
|
4430
|
+
(e[14] ? "PlayerAccountMenuHeaderMobile" : "")), E(h, "class", "PlayerAccountMenuList"), E(t, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
4431
|
+
(e[14] ? "PlayerAccountMobileContainer" : ""));
|
|
4426
4432
|
},
|
|
4427
|
-
m(v,
|
|
4428
|
-
|
|
4429
|
-
for (let
|
|
4430
|
-
|
|
4431
|
-
y(t,
|
|
4433
|
+
m(v, B) {
|
|
4434
|
+
U(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);
|
|
4435
|
+
for (let _ = 0; _ < P.length; _ += 1)
|
|
4436
|
+
P[_] && P[_].m(h, null);
|
|
4437
|
+
y(t, d), M && M.m(t, null);
|
|
4432
4438
|
},
|
|
4433
|
-
p(v,
|
|
4439
|
+
p(v, B) {
|
|
4434
4440
|
if (
|
|
4435
4441
|
/*isMobile*/
|
|
4436
|
-
v[
|
|
4437
|
-
|
|
4438
|
-
|
|
4442
|
+
v[14] && m.p(v, B), B[0] & /*showaliasasusername, profileAlias, profileUsername*/
|
|
4443
|
+
5152 && o !== (o = /*showaliasasusername*/
|
|
4444
|
+
(v[5] === "true" ? (
|
|
4445
|
+
/*profileAlias*/
|
|
4446
|
+
v[12]
|
|
4447
|
+
) : (
|
|
4439
4448
|
/*profileUsername*/
|
|
4440
|
-
v[9]
|
|
4441
|
-
), T[0] & /*profileEmail*/
|
|
4442
|
-
1024 && xe(
|
|
4443
|
-
l,
|
|
4444
|
-
/*profileEmail*/
|
|
4445
4449
|
v[10]
|
|
4450
|
+
)) + "") && xe(s, o), B[0] & /*profileEmail*/
|
|
4451
|
+
2048 && xe(
|
|
4452
|
+
u,
|
|
4453
|
+
/*profileEmail*/
|
|
4454
|
+
v[11]
|
|
4446
4455
|
), /*isMobile*/
|
|
4447
|
-
v[
|
|
4448
|
-
|
|
4456
|
+
v[14] && b.p(v, B), B[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
|
|
4457
|
+
49920
|
|
4449
4458
|
) {
|
|
4450
|
-
|
|
4459
|
+
g = Ee(
|
|
4451
4460
|
/*menuItems*/
|
|
4452
|
-
v[
|
|
4461
|
+
v[8]
|
|
4453
4462
|
);
|
|
4454
|
-
let
|
|
4455
|
-
for (
|
|
4456
|
-
const
|
|
4457
|
-
|
|
4463
|
+
let _;
|
|
4464
|
+
for (_ = 0; _ < g.length; _ += 1) {
|
|
4465
|
+
const G = zt(v, g, _);
|
|
4466
|
+
P[_] ? P[_].p(G, B) : (P[_] = Qt(G), P[_].c(), P[_].m(h, null));
|
|
4458
4467
|
}
|
|
4459
|
-
for (;
|
|
4460
|
-
|
|
4461
|
-
|
|
4468
|
+
for (; _ < P.length; _ += 1)
|
|
4469
|
+
P[_].d(1);
|
|
4470
|
+
P.length = g.length;
|
|
4462
4471
|
}
|
|
4463
4472
|
/*isMobile*/
|
|
4464
|
-
v[
|
|
4473
|
+
v[14] || M.p(v, B);
|
|
4465
4474
|
},
|
|
4466
4475
|
d(v) {
|
|
4467
|
-
v && F(t),
|
|
4476
|
+
v && F(t), m && m.d(), b && b.d(), er(P, v), M && M.d();
|
|
4468
4477
|
}
|
|
4469
4478
|
};
|
|
4470
4479
|
}
|
|
4471
|
-
function
|
|
4472
|
-
let t, r, n, i, o, s, a, l, u, c,
|
|
4480
|
+
function Ho(e) {
|
|
4481
|
+
let t, r, n, i, o, s, a, l, u, c, f = (
|
|
4473
4482
|
/*isMobile*/
|
|
4474
|
-
e[
|
|
4475
|
-
),
|
|
4476
|
-
for (let m = 0; m <
|
|
4477
|
-
|
|
4483
|
+
e[14] && Oo()
|
|
4484
|
+
), h = Ee(Array(18)), d = [];
|
|
4485
|
+
for (let m = 0; m < h.length; m += 1)
|
|
4486
|
+
d[m] = qt(Zt(e, h, m));
|
|
4478
4487
|
return {
|
|
4479
4488
|
c() {
|
|
4480
|
-
t =
|
|
4481
|
-
for (let m = 0; m <
|
|
4482
|
-
|
|
4483
|
-
u =
|
|
4484
|
-
(e[
|
|
4485
|
-
(e[
|
|
4489
|
+
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");
|
|
4490
|
+
for (let m = 0; m < d.length; m += 1)
|
|
4491
|
+
d[m].c();
|
|
4492
|
+
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*/
|
|
4493
|
+
(e[14] ? "PlayerAccountMenuHeaderMobile" : "")), E(l, "class", "PlayerAccountMenuList"), E(c, "class", "skeletonLogOut"), E(t, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
4494
|
+
(e[14] ? "PlayerAccountMobileContainer" : ""));
|
|
4486
4495
|
},
|
|
4487
4496
|
m(m, b) {
|
|
4488
|
-
|
|
4489
|
-
for (let g = 0; g <
|
|
4490
|
-
|
|
4497
|
+
U(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);
|
|
4498
|
+
for (let g = 0; g < d.length; g += 1)
|
|
4499
|
+
d[g] && d[g].m(l, null);
|
|
4491
4500
|
y(t, u), y(t, c);
|
|
4492
4501
|
},
|
|
4493
4502
|
p(m, b) {
|
|
4494
4503
|
if (b[0] & /*isMobile*/
|
|
4495
|
-
|
|
4496
|
-
|
|
4504
|
+
16384) {
|
|
4505
|
+
h = Ee(Array(18));
|
|
4497
4506
|
let g;
|
|
4498
|
-
for (g = 0; g <
|
|
4499
|
-
const
|
|
4500
|
-
|
|
4507
|
+
for (g = 0; g < h.length; g += 1) {
|
|
4508
|
+
const P = Zt(m, h, g);
|
|
4509
|
+
d[g] ? d[g].p(P, b) : (d[g] = qt(P), d[g].c(), d[g].m(l, null));
|
|
4501
4510
|
}
|
|
4502
|
-
for (; g <
|
|
4503
|
-
|
|
4504
|
-
|
|
4511
|
+
for (; g < d.length; g += 1)
|
|
4512
|
+
d[g].d(1);
|
|
4513
|
+
d.length = h.length;
|
|
4505
4514
|
}
|
|
4506
4515
|
},
|
|
4507
4516
|
d(m) {
|
|
4508
|
-
m && F(t),
|
|
4517
|
+
m && F(t), f && f.d(), er(d, m);
|
|
4509
4518
|
}
|
|
4510
4519
|
};
|
|
4511
4520
|
}
|
|
4512
|
-
function
|
|
4513
|
-
let t, r, n, i, o, s, a, l, u, c,
|
|
4521
|
+
function Mo(e) {
|
|
4522
|
+
let t, r, n, i, o, s, a, l, u, c, f = (
|
|
4514
4523
|
/*$_*/
|
|
4515
|
-
e[
|
|
4516
|
-
),
|
|
4524
|
+
e[13]("title") + ""
|
|
4525
|
+
), h, d, m;
|
|
4517
4526
|
return {
|
|
4518
4527
|
c() {
|
|
4519
|
-
t =
|
|
4528
|
+
t = S("div"), r = X("svg"), n = X("defs"), i = X("style"), o = Y(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), s = X("g"), a = X("g"), l = X("path"), u = L(), c = S("h3"), h = Y(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");
|
|
4520
4529
|
},
|
|
4521
4530
|
m(b, g) {
|
|
4522
|
-
|
|
4523
|
-
|
|
4531
|
+
U(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 = [
|
|
4532
|
+
je(
|
|
4524
4533
|
r,
|
|
4525
4534
|
"click",
|
|
4526
4535
|
/*goToHome*/
|
|
4527
|
-
e[
|
|
4536
|
+
e[16]
|
|
4528
4537
|
),
|
|
4529
|
-
|
|
4538
|
+
je(
|
|
4530
4539
|
c,
|
|
4531
4540
|
"click",
|
|
4532
4541
|
/*goToHome*/
|
|
4533
|
-
e[
|
|
4542
|
+
e[16]
|
|
4534
4543
|
)
|
|
4535
|
-
],
|
|
4544
|
+
], d = !0);
|
|
4536
4545
|
},
|
|
4537
4546
|
p(b, g) {
|
|
4538
4547
|
g[0] & /*$_*/
|
|
4539
|
-
|
|
4540
|
-
b[
|
|
4548
|
+
8192 && f !== (f = /*$_*/
|
|
4549
|
+
b[13]("title") + "") && xe(h, f);
|
|
4541
4550
|
},
|
|
4542
4551
|
d(b) {
|
|
4543
|
-
b && F(t),
|
|
4552
|
+
b && F(t), d = !1, ne(m);
|
|
4544
4553
|
}
|
|
4545
4554
|
};
|
|
4546
4555
|
}
|
|
4547
|
-
function
|
|
4556
|
+
function Bo(e) {
|
|
4548
4557
|
let t, r;
|
|
4549
4558
|
return {
|
|
4550
4559
|
c() {
|
|
4551
|
-
t =
|
|
4560
|
+
t = S("div"), r = S("general-logout"), A(
|
|
4552
4561
|
r,
|
|
4553
4562
|
"endpoint",
|
|
4554
4563
|
/*endpoint*/
|
|
4555
4564
|
e[1]
|
|
4556
|
-
),
|
|
4565
|
+
), A(
|
|
4557
4566
|
r,
|
|
4558
4567
|
"session",
|
|
4559
4568
|
/*session*/
|
|
4560
4569
|
e[0]
|
|
4561
|
-
),
|
|
4570
|
+
), A(r, "buttonlocation", "PlayerAccountMenu"), A(
|
|
4562
4571
|
r,
|
|
4563
4572
|
"clientstyling",
|
|
4564
4573
|
/*clientstyling*/
|
|
4565
4574
|
e[2]
|
|
4566
|
-
),
|
|
4575
|
+
), A(
|
|
4567
4576
|
r,
|
|
4568
4577
|
"clientstylingurl",
|
|
4569
4578
|
/*clientstylingurl*/
|
|
4570
4579
|
e[3]
|
|
4571
|
-
),
|
|
4580
|
+
), A(
|
|
4572
4581
|
r,
|
|
4573
4582
|
"mbsource",
|
|
4574
4583
|
/*mbsource*/
|
|
4575
4584
|
e[4]
|
|
4576
|
-
),
|
|
4585
|
+
), E(t, "class", "PlayerAccountLogOutArea");
|
|
4577
4586
|
},
|
|
4578
4587
|
m(n, i) {
|
|
4579
|
-
|
|
4588
|
+
U(n, t, i), y(t, r);
|
|
4580
4589
|
},
|
|
4581
4590
|
p(n, i) {
|
|
4582
4591
|
i[0] & /*endpoint*/
|
|
4583
|
-
2 &&
|
|
4592
|
+
2 && A(
|
|
4584
4593
|
r,
|
|
4585
4594
|
"endpoint",
|
|
4586
4595
|
/*endpoint*/
|
|
4587
4596
|
n[1]
|
|
4588
4597
|
), i[0] & /*session*/
|
|
4589
|
-
1 &&
|
|
4598
|
+
1 && A(
|
|
4590
4599
|
r,
|
|
4591
4600
|
"session",
|
|
4592
4601
|
/*session*/
|
|
4593
4602
|
n[0]
|
|
4594
4603
|
), i[0] & /*clientstyling*/
|
|
4595
|
-
4 &&
|
|
4604
|
+
4 && A(
|
|
4596
4605
|
r,
|
|
4597
4606
|
"clientstyling",
|
|
4598
4607
|
/*clientstyling*/
|
|
4599
4608
|
n[2]
|
|
4600
4609
|
), i[0] & /*clientstylingurl*/
|
|
4601
|
-
8 &&
|
|
4610
|
+
8 && A(
|
|
4602
4611
|
r,
|
|
4603
4612
|
"clientstylingurl",
|
|
4604
4613
|
/*clientstylingurl*/
|
|
4605
4614
|
n[3]
|
|
4606
4615
|
), i[0] & /*mbsource*/
|
|
4607
|
-
16 &&
|
|
4616
|
+
16 && A(
|
|
4608
4617
|
r,
|
|
4609
4618
|
"mbsource",
|
|
4610
4619
|
/*mbsource*/
|
|
@@ -4616,109 +4625,109 @@ function Ho(e) {
|
|
|
4616
4625
|
}
|
|
4617
4626
|
};
|
|
4618
4627
|
}
|
|
4619
|
-
function
|
|
4628
|
+
function Qt(e) {
|
|
4620
4629
|
let t, r, n, i, o, s, a = (
|
|
4621
4630
|
/*menuItem*/
|
|
4622
|
-
e[
|
|
4623
|
-
), l, u, c,
|
|
4624
|
-
function
|
|
4631
|
+
e[43].label + ""
|
|
4632
|
+
), l, u, c, f, h;
|
|
4633
|
+
function d() {
|
|
4625
4634
|
return (
|
|
4626
4635
|
/*click_handler*/
|
|
4627
|
-
e[
|
|
4636
|
+
e[27](
|
|
4628
4637
|
/*menuItem*/
|
|
4629
|
-
e[
|
|
4638
|
+
e[43]
|
|
4630
4639
|
)
|
|
4631
4640
|
);
|
|
4632
4641
|
}
|
|
4633
4642
|
return {
|
|
4634
4643
|
c() {
|
|
4635
|
-
t =
|
|
4636
|
-
(e[
|
|
4637
|
-
e[
|
|
4638
|
-
(e[
|
|
4639
|
-
e[
|
|
4640
|
-
e[
|
|
4644
|
+
t = S("div"), r = S("p"), n = S("img"), o = L(), s = S("span"), l = Y(a), u = L(), E(n, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
|
|
4645
|
+
(e[14] ? "PlayerAccountMenuItemIconMobile" : "")), Et(n.src, i = /*menuItem*/
|
|
4646
|
+
e[43].img) || E(n, "src", i), E(s, "class", "PlayerAccountMenuItemTitle"), E(r, "class", "PlayerAccountMenuItemWrapper"), E(t, "class", c = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
4647
|
+
(e[9] === /*menuItem*/
|
|
4648
|
+
e[43].id && !/*isMobile*/
|
|
4649
|
+
e[14] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
4641
4650
|
},
|
|
4642
4651
|
m(m, b) {
|
|
4643
|
-
|
|
4652
|
+
U(m, t, b), y(t, r), y(r, n), y(r, o), y(r, s), y(s, l), y(t, u), f || (h = je(t, "click", d), f = !0);
|
|
4644
4653
|
},
|
|
4645
4654
|
p(m, b) {
|
|
4646
4655
|
e = m, b[0] & /*menuItems*/
|
|
4647
|
-
|
|
4648
|
-
e[
|
|
4649
|
-
|
|
4650
|
-
e[
|
|
4651
|
-
|
|
4652
|
-
(e[
|
|
4653
|
-
e[
|
|
4654
|
-
e[
|
|
4656
|
+
256 && !Et(n.src, i = /*menuItem*/
|
|
4657
|
+
e[43].img) && E(n, "src", i), b[0] & /*menuItems*/
|
|
4658
|
+
256 && a !== (a = /*menuItem*/
|
|
4659
|
+
e[43].label + "") && xe(l, a), b[0] & /*selectedItem, menuItems*/
|
|
4660
|
+
768 && c !== (c = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
4661
|
+
(e[9] === /*menuItem*/
|
|
4662
|
+
e[43].id && !/*isMobile*/
|
|
4663
|
+
e[14] ? "PlayerAccountMenuActiveItemBox" : "")) && E(t, "class", c);
|
|
4655
4664
|
},
|
|
4656
4665
|
d(m) {
|
|
4657
|
-
m && F(t),
|
|
4666
|
+
m && F(t), f = !1, h();
|
|
4658
4667
|
}
|
|
4659
4668
|
};
|
|
4660
4669
|
}
|
|
4661
|
-
function
|
|
4670
|
+
function Io(e) {
|
|
4662
4671
|
let t, r;
|
|
4663
4672
|
return {
|
|
4664
4673
|
c() {
|
|
4665
|
-
t =
|
|
4674
|
+
t = S("div"), r = S("general-logout"), A(
|
|
4666
4675
|
r,
|
|
4667
4676
|
"endpoint",
|
|
4668
4677
|
/*endpoint*/
|
|
4669
4678
|
e[1]
|
|
4670
|
-
),
|
|
4679
|
+
), A(
|
|
4671
4680
|
r,
|
|
4672
4681
|
"session",
|
|
4673
4682
|
/*session*/
|
|
4674
4683
|
e[0]
|
|
4675
|
-
),
|
|
4684
|
+
), A(r, "buttonlocation", "PlayerAccountMenu"), A(
|
|
4676
4685
|
r,
|
|
4677
4686
|
"clientstyling",
|
|
4678
4687
|
/*clientstyling*/
|
|
4679
4688
|
e[2]
|
|
4680
|
-
),
|
|
4689
|
+
), A(
|
|
4681
4690
|
r,
|
|
4682
4691
|
"clientstylingurl",
|
|
4683
4692
|
/*clientstylingurl*/
|
|
4684
4693
|
e[3]
|
|
4685
|
-
),
|
|
4694
|
+
), A(
|
|
4686
4695
|
r,
|
|
4687
4696
|
"mbsource",
|
|
4688
4697
|
/*mbsource*/
|
|
4689
4698
|
e[4]
|
|
4690
|
-
),
|
|
4699
|
+
), E(t, "class", "PlayerAccountLogOutArea");
|
|
4691
4700
|
},
|
|
4692
4701
|
m(n, i) {
|
|
4693
|
-
|
|
4702
|
+
U(n, t, i), y(t, r);
|
|
4694
4703
|
},
|
|
4695
4704
|
p(n, i) {
|
|
4696
4705
|
i[0] & /*endpoint*/
|
|
4697
|
-
2 &&
|
|
4706
|
+
2 && A(
|
|
4698
4707
|
r,
|
|
4699
4708
|
"endpoint",
|
|
4700
4709
|
/*endpoint*/
|
|
4701
4710
|
n[1]
|
|
4702
4711
|
), i[0] & /*session*/
|
|
4703
|
-
1 &&
|
|
4712
|
+
1 && A(
|
|
4704
4713
|
r,
|
|
4705
4714
|
"session",
|
|
4706
4715
|
/*session*/
|
|
4707
4716
|
n[0]
|
|
4708
4717
|
), i[0] & /*clientstyling*/
|
|
4709
|
-
4 &&
|
|
4718
|
+
4 && A(
|
|
4710
4719
|
r,
|
|
4711
4720
|
"clientstyling",
|
|
4712
4721
|
/*clientstyling*/
|
|
4713
4722
|
n[2]
|
|
4714
4723
|
), i[0] & /*clientstylingurl*/
|
|
4715
|
-
8 &&
|
|
4724
|
+
8 && A(
|
|
4716
4725
|
r,
|
|
4717
4726
|
"clientstylingurl",
|
|
4718
4727
|
/*clientstylingurl*/
|
|
4719
4728
|
n[3]
|
|
4720
4729
|
), i[0] & /*mbsource*/
|
|
4721
|
-
16 &&
|
|
4730
|
+
16 && A(
|
|
4722
4731
|
r,
|
|
4723
4732
|
"mbsource",
|
|
4724
4733
|
/*mbsource*/
|
|
@@ -4730,49 +4739,49 @@ function Mo(e) {
|
|
|
4730
4739
|
}
|
|
4731
4740
|
};
|
|
4732
4741
|
}
|
|
4733
|
-
function
|
|
4742
|
+
function Oo(e) {
|
|
4734
4743
|
let t;
|
|
4735
4744
|
return {
|
|
4736
4745
|
c() {
|
|
4737
|
-
t =
|
|
4746
|
+
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");
|
|
4738
4747
|
},
|
|
4739
4748
|
m(r, n) {
|
|
4740
|
-
|
|
4749
|
+
U(r, t, n);
|
|
4741
4750
|
},
|
|
4742
4751
|
d(r) {
|
|
4743
4752
|
r && F(t);
|
|
4744
4753
|
}
|
|
4745
4754
|
};
|
|
4746
4755
|
}
|
|
4747
|
-
function
|
|
4756
|
+
function Co(e) {
|
|
4748
4757
|
let t;
|
|
4749
4758
|
return {
|
|
4750
4759
|
c() {
|
|
4751
|
-
t =
|
|
4760
|
+
t = S("ui-skeleton"), A(t, "structure", "circle"), A(t, "size", "20px");
|
|
4752
4761
|
},
|
|
4753
4762
|
m(r, n) {
|
|
4754
|
-
|
|
4763
|
+
U(r, t, n);
|
|
4755
4764
|
},
|
|
4756
4765
|
d(r) {
|
|
4757
4766
|
r && F(t);
|
|
4758
4767
|
}
|
|
4759
4768
|
};
|
|
4760
4769
|
}
|
|
4761
|
-
function
|
|
4770
|
+
function qt(e) {
|
|
4762
4771
|
let t, r, n, i, o = !/*isMobile*/
|
|
4763
|
-
e[
|
|
4772
|
+
e[14] && Co();
|
|
4764
4773
|
return {
|
|
4765
4774
|
c() {
|
|
4766
|
-
t =
|
|
4775
|
+
t = S("div"), o && o.c(), r = L(), n = S("ui-skeleton"), i = L(), A(n, "structure", "rectangle"), A(n, "width", "100%"), A(
|
|
4767
4776
|
n,
|
|
4768
4777
|
"height",
|
|
4769
4778
|
/*isMobile*/
|
|
4770
|
-
e[
|
|
4771
|
-
),
|
|
4772
|
-
(e[
|
|
4779
|
+
e[14] ? "60px" : "20px"
|
|
4780
|
+
), E(t, "class", "PlayerAccountItemWrap " + /*isMobile*/
|
|
4781
|
+
(e[14] ? "PlayerAccountItemWrapMobile" : ""));
|
|
4773
4782
|
},
|
|
4774
4783
|
m(s, a) {
|
|
4775
|
-
|
|
4784
|
+
U(s, t, a), o && o.m(t, null), y(t, r), y(t, n), y(t, i);
|
|
4776
4785
|
},
|
|
4777
4786
|
p: R,
|
|
4778
4787
|
d(s) {
|
|
@@ -4780,21 +4789,21 @@ function Zt(e) {
|
|
|
4780
4789
|
}
|
|
4781
4790
|
};
|
|
4782
4791
|
}
|
|
4783
|
-
function
|
|
4792
|
+
function Lo(e) {
|
|
4784
4793
|
let t;
|
|
4785
4794
|
function r(o, s) {
|
|
4786
4795
|
return (
|
|
4787
4796
|
/*skeletonLoading*/
|
|
4788
|
-
o[
|
|
4797
|
+
o[7] ? Ho : To
|
|
4789
4798
|
);
|
|
4790
4799
|
}
|
|
4791
4800
|
let n = r(e), i = n(e);
|
|
4792
4801
|
return {
|
|
4793
4802
|
c() {
|
|
4794
|
-
t =
|
|
4803
|
+
t = S("div"), i.c();
|
|
4795
4804
|
},
|
|
4796
4805
|
m(o, s) {
|
|
4797
|
-
|
|
4806
|
+
U(o, t, s), i.m(t, null), e[28](t);
|
|
4798
4807
|
},
|
|
4799
4808
|
p(o, s) {
|
|
4800
4809
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
@@ -4802,155 +4811,161 @@ function Oo(e) {
|
|
|
4802
4811
|
i: R,
|
|
4803
4812
|
o: R,
|
|
4804
4813
|
d(o) {
|
|
4805
|
-
o && F(t), i.d(), e[
|
|
4814
|
+
o && F(t), i.d(), e[28](null);
|
|
4806
4815
|
}
|
|
4807
4816
|
};
|
|
4808
4817
|
}
|
|
4809
|
-
function
|
|
4818
|
+
function No(e, t, r) {
|
|
4810
4819
|
let n;
|
|
4811
|
-
|
|
4812
|
-
let { endpoint: i = "" } = t, { cmsendpoint: o = "" } = t, { env: s = "" } = t, { session: a = "" } = t, { playerid: l = "" } = t, { lang: u = "en" } = t, { selecteditem: c = "" } = t, { userroles:
|
|
4820
|
+
Qr(e, vo, (p) => r(13, n = p));
|
|
4821
|
+
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, _, G, W = [], Oe, ht = window.navigator.userAgent, Cr = Vt(ht) !== "PC", ft = "", pt = "", Ce = "";
|
|
4813
4822
|
window.matchMedia("(min-width: 768px)");
|
|
4814
|
-
const
|
|
4815
|
-
fetch(b).then((
|
|
4816
|
-
Object.keys(
|
|
4817
|
-
|
|
4823
|
+
const Lr = () => {
|
|
4824
|
+
fetch(b).then((I) => I.json()).then((I) => {
|
|
4825
|
+
Object.keys(I).forEach(($) => {
|
|
4826
|
+
Wt($, I[$]);
|
|
4818
4827
|
});
|
|
4819
|
-
}).catch((
|
|
4820
|
-
console.error(
|
|
4828
|
+
}).catch((I) => {
|
|
4829
|
+
console.error(I);
|
|
4821
4830
|
});
|
|
4822
4831
|
};
|
|
4823
|
-
Object.keys(
|
|
4824
|
-
|
|
4832
|
+
Object.keys(Xt).forEach((p) => {
|
|
4833
|
+
Wt(p, Xt[p]);
|
|
4825
4834
|
});
|
|
4826
|
-
const
|
|
4827
|
-
if (
|
|
4828
|
-
switch (
|
|
4835
|
+
const mt = (p) => {
|
|
4836
|
+
if (p.data)
|
|
4837
|
+
switch (p.data.type) {
|
|
4829
4838
|
case "AccountMenuDetails":
|
|
4830
|
-
availableMenuItemsArray =
|
|
4839
|
+
availableMenuItemsArray = p.data.accountMenuInfo;
|
|
4831
4840
|
break;
|
|
4832
4841
|
case "UserSessionID":
|
|
4833
|
-
r(0, a =
|
|
4842
|
+
r(0, a = p.data.session);
|
|
4843
|
+
break;
|
|
4844
|
+
case "AliasUpdated":
|
|
4845
|
+
P === "true" && p.data.alias && r(12, Ce = p.data.alias);
|
|
4834
4846
|
break;
|
|
4835
4847
|
}
|
|
4836
|
-
},
|
|
4837
|
-
let
|
|
4838
|
-
if (
|
|
4839
|
-
return
|
|
4840
|
-
},
|
|
4841
|
-
const
|
|
4842
|
-
|
|
4843
|
-
r(
|
|
4844
|
-
}).catch((
|
|
4845
|
-
console.error("Error getting menu items",
|
|
4848
|
+
}, Nr = () => {
|
|
4849
|
+
let p = Vt(ht);
|
|
4850
|
+
if (p)
|
|
4851
|
+
return p === "PC" ? "dk" : "mtWeb";
|
|
4852
|
+
}, Rr = () => {
|
|
4853
|
+
const p = new URL(`${o}/${u}/profile-menu?env=${s}`);
|
|
4854
|
+
p.searchParams.append("device", Nr()), fetch(p.href).then((I) => I.json()).then((I) => {
|
|
4855
|
+
r(8, W = I), bt();
|
|
4856
|
+
}).catch((I) => {
|
|
4857
|
+
console.error("Error getting menu items", I);
|
|
4846
4858
|
}).finally(() => {
|
|
4847
|
-
r(
|
|
4859
|
+
r(25, M = !0);
|
|
4848
4860
|
});
|
|
4849
|
-
},
|
|
4850
|
-
let
|
|
4851
|
-
|
|
4852
|
-
let
|
|
4861
|
+
}, Fr = () => {
|
|
4862
|
+
let p = new URL(`${i}/v1/player/${l}/profile`);
|
|
4863
|
+
p.searchParams.append("userRoles", f);
|
|
4864
|
+
let I = {
|
|
4853
4865
|
method: "GET",
|
|
4854
4866
|
headers: { "X-SessionID": a }
|
|
4855
4867
|
};
|
|
4856
|
-
fetch(
|
|
4857
|
-
(
|
|
4858
|
-
r(
|
|
4868
|
+
fetch(p.href, I).then(($) => $.json()).then(
|
|
4869
|
+
($) => {
|
|
4870
|
+
r(10, ft = $.username), r(11, pt = $.email), P === "true" && r(12, Ce = $.alias || "");
|
|
4859
4871
|
},
|
|
4860
|
-
(
|
|
4861
|
-
console.error(
|
|
4872
|
+
($) => {
|
|
4873
|
+
console.error($);
|
|
4862
4874
|
}
|
|
4863
4875
|
).finally(() => {
|
|
4864
|
-
r(
|
|
4876
|
+
r(26, v = !0);
|
|
4865
4877
|
});
|
|
4866
|
-
},
|
|
4867
|
-
window.postMessage({ type: "ChangeAccountPage", page:
|
|
4868
|
-
},
|
|
4869
|
-
var
|
|
4870
|
-
r(
|
|
4871
|
-
},
|
|
4878
|
+
}, dt = (p) => {
|
|
4879
|
+
window.postMessage({ type: "ChangeAccountPage", page: p }, window.location.href), r(9, Oe = p.id);
|
|
4880
|
+
}, bt = () => {
|
|
4881
|
+
var p;
|
|
4882
|
+
r(9, Oe = (p = W.find((I) => I.path.includes(g))) == null ? void 0 : p.id);
|
|
4883
|
+
}, Ur = () => {
|
|
4872
4884
|
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
|
4873
|
-
}, Fr = () => {
|
|
4874
|
-
yo(u);
|
|
4875
4885
|
}, $r = () => {
|
|
4876
|
-
|
|
4886
|
+
_o(u);
|
|
4887
|
+
}, Dr = () => {
|
|
4888
|
+
Fr();
|
|
4877
4889
|
};
|
|
4878
|
-
|
|
4879
|
-
window.removeEventListener("message",
|
|
4890
|
+
rn(() => (window.addEventListener("message", mt, !1), () => {
|
|
4891
|
+
window.removeEventListener("message", mt);
|
|
4880
4892
|
}));
|
|
4881
|
-
const
|
|
4882
|
-
function
|
|
4883
|
-
|
|
4884
|
-
|
|
4893
|
+
const Gr = (p) => dt(p);
|
|
4894
|
+
function kr(p) {
|
|
4895
|
+
Ve[p ? "unshift" : "push"](() => {
|
|
4896
|
+
_ = p, r(6, _);
|
|
4885
4897
|
});
|
|
4886
4898
|
}
|
|
4887
|
-
return e.$$set = (
|
|
4888
|
-
"endpoint" in
|
|
4899
|
+
return e.$$set = (p) => {
|
|
4900
|
+
"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);
|
|
4889
4901
|
}, e.$$.update = () => {
|
|
4890
4902
|
e.$$.dirty[0] & /*menuLoaded, playerInfoLoaded*/
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4903
|
+
100663296 && r(7, B = !M || !v), e.$$.dirty[0] & /*lang*/
|
|
4904
|
+
1048576 && u && $r(), e.$$.dirty[0] & /*endpoint, session, playerid, lang*/
|
|
4905
|
+
1572867 && i && a && l && u && Dr(), e.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
4906
|
+
1441792 && o && u && s && Rr(), e.$$.dirty[0] & /*activemenuitem*/
|
|
4907
|
+
16777216 && g && bt(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4908
|
+
68 && h && _ && xo(_, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4909
|
+
72 && d && _ && Eo(_, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4910
|
+
80 && m && _ && wo(_, `${m}.Style`, G), e.$$.dirty[0] & /*translationurl*/
|
|
4911
|
+
8388608 && b && Lr();
|
|
4900
4912
|
}, [
|
|
4901
4913
|
a,
|
|
4902
4914
|
i,
|
|
4903
|
-
|
|
4904
|
-
|
|
4915
|
+
h,
|
|
4916
|
+
d,
|
|
4905
4917
|
m,
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4918
|
+
P,
|
|
4919
|
+
_,
|
|
4920
|
+
B,
|
|
4909
4921
|
W,
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
n,
|
|
4913
|
-
Ir,
|
|
4922
|
+
Oe,
|
|
4923
|
+
ft,
|
|
4914
4924
|
pt,
|
|
4915
|
-
|
|
4925
|
+
Ce,
|
|
4926
|
+
n,
|
|
4927
|
+
Cr,
|
|
4928
|
+
dt,
|
|
4929
|
+
Ur,
|
|
4916
4930
|
o,
|
|
4917
4931
|
s,
|
|
4918
4932
|
l,
|
|
4919
4933
|
u,
|
|
4920
4934
|
c,
|
|
4921
|
-
|
|
4935
|
+
f,
|
|
4922
4936
|
b,
|
|
4923
4937
|
g,
|
|
4924
4938
|
M,
|
|
4925
4939
|
v,
|
|
4926
|
-
|
|
4927
|
-
|
|
4940
|
+
Gr,
|
|
4941
|
+
kr
|
|
4928
4942
|
];
|
|
4929
4943
|
}
|
|
4930
|
-
class
|
|
4944
|
+
class Or extends dn {
|
|
4931
4945
|
constructor(t) {
|
|
4932
|
-
super(),
|
|
4946
|
+
super(), pn(
|
|
4933
4947
|
this,
|
|
4934
4948
|
t,
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4949
|
+
No,
|
|
4950
|
+
Lo,
|
|
4951
|
+
Yt,
|
|
4938
4952
|
{
|
|
4939
4953
|
endpoint: 1,
|
|
4940
|
-
cmsendpoint:
|
|
4941
|
-
env:
|
|
4954
|
+
cmsendpoint: 17,
|
|
4955
|
+
env: 18,
|
|
4942
4956
|
session: 0,
|
|
4943
|
-
playerid:
|
|
4944
|
-
lang:
|
|
4945
|
-
selecteditem:
|
|
4946
|
-
userroles:
|
|
4957
|
+
playerid: 19,
|
|
4958
|
+
lang: 20,
|
|
4959
|
+
selecteditem: 21,
|
|
4960
|
+
userroles: 22,
|
|
4947
4961
|
clientstyling: 2,
|
|
4948
4962
|
clientstylingurl: 3,
|
|
4949
4963
|
mbsource: 4,
|
|
4950
|
-
translationurl:
|
|
4951
|
-
activemenuitem:
|
|
4964
|
+
translationurl: 23,
|
|
4965
|
+
activemenuitem: 24,
|
|
4966
|
+
showaliasasusername: 5
|
|
4952
4967
|
},
|
|
4953
|
-
|
|
4968
|
+
So,
|
|
4954
4969
|
[-1, -1]
|
|
4955
4970
|
);
|
|
4956
4971
|
}
|
|
@@ -4958,114 +4973,120 @@ class Br extends pn {
|
|
|
4958
4973
|
return this.$$.ctx[1];
|
|
4959
4974
|
}
|
|
4960
4975
|
set endpoint(t) {
|
|
4961
|
-
this.$$set({ endpoint: t }),
|
|
4976
|
+
this.$$set({ endpoint: t }), O();
|
|
4962
4977
|
}
|
|
4963
4978
|
get cmsendpoint() {
|
|
4964
|
-
return this.$$.ctx[
|
|
4979
|
+
return this.$$.ctx[17];
|
|
4965
4980
|
}
|
|
4966
4981
|
set cmsendpoint(t) {
|
|
4967
|
-
this.$$set({ cmsendpoint: t }),
|
|
4982
|
+
this.$$set({ cmsendpoint: t }), O();
|
|
4968
4983
|
}
|
|
4969
4984
|
get env() {
|
|
4970
|
-
return this.$$.ctx[
|
|
4985
|
+
return this.$$.ctx[18];
|
|
4971
4986
|
}
|
|
4972
4987
|
set env(t) {
|
|
4973
|
-
this.$$set({ env: t }),
|
|
4988
|
+
this.$$set({ env: t }), O();
|
|
4974
4989
|
}
|
|
4975
4990
|
get session() {
|
|
4976
4991
|
return this.$$.ctx[0];
|
|
4977
4992
|
}
|
|
4978
4993
|
set session(t) {
|
|
4979
|
-
this.$$set({ session: t }),
|
|
4994
|
+
this.$$set({ session: t }), O();
|
|
4980
4995
|
}
|
|
4981
4996
|
get playerid() {
|
|
4982
|
-
return this.$$.ctx[
|
|
4997
|
+
return this.$$.ctx[19];
|
|
4983
4998
|
}
|
|
4984
4999
|
set playerid(t) {
|
|
4985
|
-
this.$$set({ playerid: t }),
|
|
5000
|
+
this.$$set({ playerid: t }), O();
|
|
4986
5001
|
}
|
|
4987
5002
|
get lang() {
|
|
4988
|
-
return this.$$.ctx[
|
|
5003
|
+
return this.$$.ctx[20];
|
|
4989
5004
|
}
|
|
4990
5005
|
set lang(t) {
|
|
4991
|
-
this.$$set({ lang: t }),
|
|
5006
|
+
this.$$set({ lang: t }), O();
|
|
4992
5007
|
}
|
|
4993
5008
|
get selecteditem() {
|
|
4994
|
-
return this.$$.ctx[
|
|
5009
|
+
return this.$$.ctx[21];
|
|
4995
5010
|
}
|
|
4996
5011
|
set selecteditem(t) {
|
|
4997
|
-
this.$$set({ selecteditem: t }),
|
|
5012
|
+
this.$$set({ selecteditem: t }), O();
|
|
4998
5013
|
}
|
|
4999
5014
|
get userroles() {
|
|
5000
|
-
return this.$$.ctx[
|
|
5015
|
+
return this.$$.ctx[22];
|
|
5001
5016
|
}
|
|
5002
5017
|
set userroles(t) {
|
|
5003
|
-
this.$$set({ userroles: t }),
|
|
5018
|
+
this.$$set({ userroles: t }), O();
|
|
5004
5019
|
}
|
|
5005
5020
|
get clientstyling() {
|
|
5006
5021
|
return this.$$.ctx[2];
|
|
5007
5022
|
}
|
|
5008
5023
|
set clientstyling(t) {
|
|
5009
|
-
this.$$set({ clientstyling: t }),
|
|
5024
|
+
this.$$set({ clientstyling: t }), O();
|
|
5010
5025
|
}
|
|
5011
5026
|
get clientstylingurl() {
|
|
5012
5027
|
return this.$$.ctx[3];
|
|
5013
5028
|
}
|
|
5014
5029
|
set clientstylingurl(t) {
|
|
5015
|
-
this.$$set({ clientstylingurl: t }),
|
|
5030
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
5016
5031
|
}
|
|
5017
5032
|
get mbsource() {
|
|
5018
5033
|
return this.$$.ctx[4];
|
|
5019
5034
|
}
|
|
5020
5035
|
set mbsource(t) {
|
|
5021
|
-
this.$$set({ mbsource: t }),
|
|
5036
|
+
this.$$set({ mbsource: t }), O();
|
|
5022
5037
|
}
|
|
5023
5038
|
get translationurl() {
|
|
5024
|
-
return this.$$.ctx[
|
|
5039
|
+
return this.$$.ctx[23];
|
|
5025
5040
|
}
|
|
5026
5041
|
set translationurl(t) {
|
|
5027
|
-
this.$$set({ translationurl: t }),
|
|
5042
|
+
this.$$set({ translationurl: t }), O();
|
|
5028
5043
|
}
|
|
5029
5044
|
get activemenuitem() {
|
|
5030
|
-
return this.$$.ctx[
|
|
5045
|
+
return this.$$.ctx[24];
|
|
5031
5046
|
}
|
|
5032
5047
|
set activemenuitem(t) {
|
|
5033
|
-
this.$$set({ activemenuitem: t }),
|
|
5048
|
+
this.$$set({ activemenuitem: t }), O();
|
|
5049
|
+
}
|
|
5050
|
+
get showaliasasusername() {
|
|
5051
|
+
return this.$$.ctx[5];
|
|
5052
|
+
}
|
|
5053
|
+
set showaliasasusername(t) {
|
|
5054
|
+
this.$$set({ showaliasasusername: t }), O();
|
|
5034
5055
|
}
|
|
5035
5056
|
}
|
|
5036
|
-
|
|
5037
|
-
const
|
|
5057
|
+
mn(Or, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, activemenuitem: {}, showaliasasusername: {} }, [], [], !0);
|
|
5058
|
+
const $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5038
5059
|
__proto__: null,
|
|
5039
|
-
default:
|
|
5060
|
+
default: Or
|
|
5040
5061
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5041
5062
|
export {
|
|
5042
5063
|
oe as $,
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5064
|
+
$o as P,
|
|
5065
|
+
dn as S,
|
|
5066
|
+
Tr as a,
|
|
5067
|
+
qr as b,
|
|
5068
|
+
U as c,
|
|
5048
5069
|
F as d,
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5070
|
+
S as e,
|
|
5071
|
+
O as f,
|
|
5072
|
+
Qr as g,
|
|
5073
|
+
Vt as h,
|
|
5074
|
+
pn as i,
|
|
5075
|
+
Ve as j,
|
|
5055
5076
|
y as k,
|
|
5056
|
-
|
|
5077
|
+
je as l,
|
|
5057
5078
|
X as m,
|
|
5058
5079
|
R as n,
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5080
|
+
rn as o,
|
|
5081
|
+
L as p,
|
|
5082
|
+
E as q,
|
|
5083
|
+
Uo as r,
|
|
5084
|
+
Yt as s,
|
|
5064
5085
|
Y as t,
|
|
5065
5086
|
xe as u,
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5087
|
+
xo as v,
|
|
5088
|
+
Eo as w,
|
|
5089
|
+
wo as x,
|
|
5090
|
+
mn as y,
|
|
5091
|
+
vo as z
|
|
5071
5092
|
};
|