@everymatrix/player-account-biometrics 1.87.19 → 1.87.21
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/{PlayerAccountBiometrics-D2hlVt5i.js → PlayerAccountBiometrics-BSpoxpYK.js} +809 -735
- package/components/{PlayerAccountBiometrics-Cnwnu-pX.js → PlayerAccountBiometrics-CCq3mG8h.js} +932 -862
- package/components/PlayerAccountBiometrics-kb8R7vGn.cjs +18 -0
- package/components/PlayerAccountBiometricsAction-CTMtKUkz.cjs +1 -0
- package/components/PlayerAccountBiometricsAction-CWv5Ug_B.js +403 -0
- package/components/PlayerAccountBiometricsAction-Ded-VHu8.js +386 -0
- package/es2015/player-account-biometrics.cjs +1 -1
- package/es2015/player-account-biometrics.js +7 -7
- package/esnext/player-account-biometrics.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBiometrics-BuxKbLCx.cjs +0 -18
package/components/{PlayerAccountBiometrics-Cnwnu-pX.js → PlayerAccountBiometrics-CCq3mG8h.js}
RENAMED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function O() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function St(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function re(e) {
|
|
10
|
+
e.forEach(St);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ye(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function wt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ir(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Tt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return O;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function or(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function E(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function sr(e, t, r) {
|
|
37
|
+
const n = ar(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = P("style");
|
|
40
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ar(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,45 +50,55 @@ function hr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function ur(e, t) {
|
|
54
|
+
return E(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Qe(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function de(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function P(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function D(e) {
|
|
70
70
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function $(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return
|
|
75
|
+
function J() {
|
|
76
|
+
return $(" ");
|
|
77
|
+
}
|
|
78
|
+
function Gi() {
|
|
79
|
+
return $("");
|
|
77
80
|
}
|
|
78
|
-
function
|
|
81
|
+
function hr(e, t, r, n) {
|
|
79
82
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
83
|
}
|
|
81
|
-
function
|
|
84
|
+
function T(e, t, r) {
|
|
82
85
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
86
|
}
|
|
84
|
-
function
|
|
87
|
+
function I(e, t, r) {
|
|
88
|
+
const n = t.toLowerCase();
|
|
89
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
|
|
90
|
+
}
|
|
91
|
+
function lr(e) {
|
|
85
92
|
return Array.from(e.childNodes);
|
|
86
93
|
}
|
|
87
|
-
function
|
|
94
|
+
function ue(e, t) {
|
|
88
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
96
|
t);
|
|
90
97
|
}
|
|
91
|
-
function
|
|
98
|
+
function Fi(e, t, r) {
|
|
99
|
+
e.classList.toggle(t, !!r);
|
|
100
|
+
}
|
|
101
|
+
function cr(e) {
|
|
92
102
|
const t = {};
|
|
93
103
|
return e.childNodes.forEach(
|
|
94
104
|
/** @param {Element} node */
|
|
@@ -97,95 +107,95 @@ function fr(e) {
|
|
|
97
107
|
}
|
|
98
108
|
), t;
|
|
99
109
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
102
|
-
|
|
110
|
+
let K;
|
|
111
|
+
function q(e) {
|
|
112
|
+
K = e;
|
|
103
113
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!
|
|
114
|
+
function fr() {
|
|
115
|
+
if (!K)
|
|
106
116
|
throw new Error("Function called outside component initialization");
|
|
107
|
-
return
|
|
117
|
+
return K;
|
|
108
118
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
119
|
+
function pr(e) {
|
|
120
|
+
fr().$$.on_mount.push(e);
|
|
111
121
|
}
|
|
112
|
-
const
|
|
113
|
-
let
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
122
|
+
const F = [], Ie = [];
|
|
123
|
+
let j = [];
|
|
124
|
+
const tt = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
125
|
+
let Ne = !1;
|
|
126
|
+
function br() {
|
|
127
|
+
Ne || (Ne = !0, mr.then(C));
|
|
118
128
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
129
|
+
function Me(e) {
|
|
130
|
+
j.push(e);
|
|
121
131
|
}
|
|
122
|
-
const
|
|
123
|
-
let
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
132
|
+
const Be = /* @__PURE__ */ new Set();
|
|
133
|
+
let U = 0;
|
|
134
|
+
function C() {
|
|
135
|
+
if (U !== 0)
|
|
126
136
|
return;
|
|
127
|
-
const e =
|
|
137
|
+
const e = K;
|
|
128
138
|
do {
|
|
129
139
|
try {
|
|
130
|
-
for (;
|
|
131
|
-
const t =
|
|
132
|
-
|
|
140
|
+
for (; U < F.length; ) {
|
|
141
|
+
const t = F[U];
|
|
142
|
+
U++, q(t), dr(t.$$);
|
|
133
143
|
}
|
|
134
144
|
} catch (t) {
|
|
135
|
-
throw
|
|
145
|
+
throw F.length = 0, U = 0, t;
|
|
136
146
|
}
|
|
137
|
-
for (
|
|
138
|
-
|
|
139
|
-
for (let t = 0; t <
|
|
140
|
-
const r =
|
|
141
|
-
|
|
147
|
+
for (q(null), F.length = 0, U = 0; Ie.length; )
|
|
148
|
+
Ie.pop()();
|
|
149
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
150
|
+
const r = j[t];
|
|
151
|
+
Be.has(r) || (Be.add(r), r());
|
|
142
152
|
}
|
|
143
|
-
|
|
144
|
-
} while (
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
153
|
+
j.length = 0;
|
|
154
|
+
} while (F.length);
|
|
155
|
+
for (; tt.length; )
|
|
156
|
+
tt.pop()();
|
|
157
|
+
Ne = !1, Be.clear(), q(e);
|
|
148
158
|
}
|
|
149
|
-
function
|
|
159
|
+
function dr(e) {
|
|
150
160
|
if (e.fragment !== null) {
|
|
151
|
-
e.update(),
|
|
161
|
+
e.update(), re(e.before_update);
|
|
152
162
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
154
164
|
}
|
|
155
165
|
}
|
|
156
|
-
function
|
|
166
|
+
function gr(e) {
|
|
157
167
|
const t = [], r = [];
|
|
158
|
-
|
|
168
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
159
169
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
170
|
+
const yr = /* @__PURE__ */ new Set();
|
|
171
|
+
function vr(e, t) {
|
|
172
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
163
173
|
}
|
|
164
|
-
function
|
|
174
|
+
function Er(e, t, r) {
|
|
165
175
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const o = e.$$.on_mount.map(
|
|
168
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
169
|
-
}), i.forEach(
|
|
176
|
+
n && n.m(t, r), Me(() => {
|
|
177
|
+
const o = e.$$.on_mount.map(St).filter(Ye);
|
|
178
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
179
|
+
}), i.forEach(Me);
|
|
170
180
|
}
|
|
171
|
-
function
|
|
181
|
+
function _r(e, t) {
|
|
172
182
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
183
|
+
r.fragment !== null && (gr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
184
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (
|
|
185
|
+
function xr(e, t) {
|
|
186
|
+
e.$$.dirty[0] === -1 && (F.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
187
|
}
|
|
178
|
-
function
|
|
179
|
-
const h =
|
|
180
|
-
|
|
188
|
+
function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
189
|
+
const h = K;
|
|
190
|
+
q(e);
|
|
181
191
|
const u = e.$$ = {
|
|
182
192
|
fragment: null,
|
|
183
193
|
ctx: [],
|
|
184
194
|
// state
|
|
185
195
|
props: o,
|
|
186
|
-
update:
|
|
196
|
+
update: O,
|
|
187
197
|
not_equal: i,
|
|
188
|
-
bound:
|
|
198
|
+
bound: et(),
|
|
189
199
|
// lifecycle
|
|
190
200
|
on_mount: [],
|
|
191
201
|
on_destroy: [],
|
|
@@ -194,7 +204,7 @@ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
194
204
|
after_update: [],
|
|
195
205
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
196
206
|
// everything else
|
|
197
|
-
callbacks:
|
|
207
|
+
callbacks: et(),
|
|
198
208
|
dirty: a,
|
|
199
209
|
skip_bound: !1,
|
|
200
210
|
root: t.target || h.$$.root
|
|
@@ -202,20 +212,20 @@ function Sr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
202
212
|
s && s(u.root);
|
|
203
213
|
let l = !1;
|
|
204
214
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
205
|
-
const
|
|
206
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
207
|
-
}) : [], u.update(), l = !0,
|
|
215
|
+
const d = p.length ? p[0] : f;
|
|
216
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), l && xr(e, c)), f;
|
|
217
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
218
|
if (t.hydrate) {
|
|
209
|
-
const c =
|
|
210
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
219
|
+
const c = lr(t.target);
|
|
220
|
+
u.fragment && u.fragment.l(c), c.forEach(de);
|
|
211
221
|
} else
|
|
212
222
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
223
|
+
t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), C();
|
|
214
224
|
}
|
|
215
|
-
|
|
225
|
+
q(h);
|
|
216
226
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
227
|
+
let Ht;
|
|
228
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
219
229
|
/** The Svelte component constructor */
|
|
220
230
|
$$ctor;
|
|
221
231
|
/** Slots */
|
|
@@ -257,29 +267,29 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
257
267
|
let o;
|
|
258
268
|
return {
|
|
259
269
|
c: function() {
|
|
260
|
-
o =
|
|
270
|
+
o = P("slot"), i !== "default" && T(o, "name", i);
|
|
261
271
|
},
|
|
262
272
|
/**
|
|
263
273
|
* @param {HTMLElement} target
|
|
264
274
|
* @param {HTMLElement} [anchor]
|
|
265
275
|
*/
|
|
266
276
|
m: function(h, u) {
|
|
267
|
-
|
|
277
|
+
Qe(h, o, u);
|
|
268
278
|
},
|
|
269
279
|
d: function(h) {
|
|
270
|
-
h &&
|
|
280
|
+
h && de(o);
|
|
271
281
|
}
|
|
272
282
|
};
|
|
273
283
|
};
|
|
274
284
|
};
|
|
275
285
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
286
|
return;
|
|
277
|
-
const t = {}, r =
|
|
287
|
+
const t = {}, r = cr(this);
|
|
278
288
|
for (const i of this.$$s)
|
|
279
289
|
i in r && (t[i] = [e(i)]);
|
|
280
290
|
for (const i of this.attributes) {
|
|
281
291
|
const o = this.$$g_p(i.name);
|
|
282
|
-
o in this.$$d || (this.$$d[o] =
|
|
292
|
+
o in this.$$d || (this.$$d[o] = he(o, i.value, this.$$p_d, "toProp"));
|
|
283
293
|
}
|
|
284
294
|
for (const i in this.$$p_d)
|
|
285
295
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -297,7 +307,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
297
307
|
this.$$r = !0;
|
|
298
308
|
for (const i in this.$$p_d)
|
|
299
309
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
300
|
-
const o =
|
|
310
|
+
const o = he(
|
|
301
311
|
i,
|
|
302
312
|
this.$$d[i],
|
|
303
313
|
this.$$p_d,
|
|
@@ -319,7 +329,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
319
329
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
320
330
|
// and setting attributes through setAttribute etc, this is helpful
|
|
321
331
|
attributeChangedCallback(e, t, r) {
|
|
322
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
332
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
323
333
|
}
|
|
324
334
|
disconnectedCallback() {
|
|
325
335
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -332,7 +342,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
332
342
|
) || e;
|
|
333
343
|
}
|
|
334
344
|
});
|
|
335
|
-
function
|
|
345
|
+
function he(e, t, r, n) {
|
|
336
346
|
const i = r[e]?.type;
|
|
337
347
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
338
348
|
return t;
|
|
@@ -361,8 +371,8 @@ function ce(e, t, r, n) {
|
|
|
361
371
|
return t;
|
|
362
372
|
}
|
|
363
373
|
}
|
|
364
|
-
function
|
|
365
|
-
let s = class extends
|
|
374
|
+
function Sr(e, t, r, n, i, o) {
|
|
375
|
+
let s = class extends Ht {
|
|
366
376
|
constructor() {
|
|
367
377
|
super(e, r, i), this.$$p_d = t;
|
|
368
378
|
}
|
|
@@ -378,7 +388,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
378
388
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
379
389
|
},
|
|
380
390
|
set(h) {
|
|
381
|
-
h =
|
|
391
|
+
h = he(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
382
392
|
}
|
|
383
393
|
});
|
|
384
394
|
}), n.forEach((a) => {
|
|
@@ -409,7 +419,7 @@ class wr {
|
|
|
409
419
|
$$set = void 0;
|
|
410
420
|
/** @returns {void} */
|
|
411
421
|
$destroy() {
|
|
412
|
-
|
|
422
|
+
_r(this, 1), this.$destroy = O;
|
|
413
423
|
}
|
|
414
424
|
/**
|
|
415
425
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,8 +428,8 @@ class wr {
|
|
|
418
428
|
* @returns {() => void}
|
|
419
429
|
*/
|
|
420
430
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
422
|
-
return
|
|
431
|
+
if (!Ye(r))
|
|
432
|
+
return O;
|
|
423
433
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
434
|
return n.push(r), () => {
|
|
425
435
|
const i = n.indexOf(r);
|
|
@@ -431,11 +441,11 @@ class wr {
|
|
|
431
441
|
* @returns {void}
|
|
432
442
|
*/
|
|
433
443
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
444
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
445
|
}
|
|
436
446
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
447
|
+
const Tr = "4";
|
|
448
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
|
|
439
449
|
/*! *****************************************************************************
|
|
440
450
|
Copyright (c) Microsoft Corporation.
|
|
441
451
|
|
|
@@ -450,24 +460,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
450
460
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
451
461
|
PERFORMANCE OF THIS SOFTWARE.
|
|
452
462
|
***************************************************************************** */
|
|
453
|
-
var
|
|
454
|
-
return
|
|
463
|
+
var Le = function(e, t) {
|
|
464
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
455
465
|
r.__proto__ = n;
|
|
456
466
|
} || function(r, n) {
|
|
457
467
|
for (var i in n)
|
|
458
468
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
459
|
-
},
|
|
469
|
+
}, Le(e, t);
|
|
460
470
|
};
|
|
461
|
-
function
|
|
471
|
+
function ne(e, t) {
|
|
462
472
|
if (typeof t != "function" && t !== null)
|
|
463
473
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
464
|
-
|
|
474
|
+
Le(e, t);
|
|
465
475
|
function r() {
|
|
466
476
|
this.constructor = e;
|
|
467
477
|
}
|
|
468
478
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
469
479
|
}
|
|
470
|
-
function
|
|
480
|
+
function Ce(e) {
|
|
471
481
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
472
482
|
if (r)
|
|
473
483
|
return r.call(e);
|
|
@@ -479,7 +489,7 @@ function Re(e) {
|
|
|
479
489
|
};
|
|
480
490
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
481
491
|
}
|
|
482
|
-
function
|
|
492
|
+
function $e(e, t) {
|
|
483
493
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
484
494
|
if (!r)
|
|
485
495
|
return e;
|
|
@@ -499,22 +509,22 @@ function De(e, t) {
|
|
|
499
509
|
}
|
|
500
510
|
return o;
|
|
501
511
|
}
|
|
502
|
-
function
|
|
512
|
+
function Re(e, t, r) {
|
|
503
513
|
if (arguments.length === 2)
|
|
504
514
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
505
515
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
506
516
|
return e.concat(o || t);
|
|
507
517
|
}
|
|
508
|
-
function
|
|
518
|
+
function M(e) {
|
|
509
519
|
return typeof e == "function";
|
|
510
520
|
}
|
|
511
|
-
function
|
|
521
|
+
function At(e) {
|
|
512
522
|
var t = function(n) {
|
|
513
523
|
Error.call(n), n.stack = new Error().stack;
|
|
514
524
|
}, r = e(t);
|
|
515
525
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
516
526
|
}
|
|
517
|
-
var
|
|
527
|
+
var Se = At(function(e) {
|
|
518
528
|
return function(r) {
|
|
519
529
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
520
530
|
` + r.map(function(n, i) {
|
|
@@ -523,13 +533,13 @@ var we = Ot(function(e) {
|
|
|
523
533
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
524
534
|
};
|
|
525
535
|
});
|
|
526
|
-
function
|
|
536
|
+
function De(e, t) {
|
|
527
537
|
if (e) {
|
|
528
538
|
var r = e.indexOf(t);
|
|
529
539
|
0 <= r && e.splice(r, 1);
|
|
530
540
|
}
|
|
531
541
|
}
|
|
532
|
-
var
|
|
542
|
+
var ge = function() {
|
|
533
543
|
function e(t) {
|
|
534
544
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
535
545
|
}
|
|
@@ -541,7 +551,7 @@ var ve = function() {
|
|
|
541
551
|
if (s)
|
|
542
552
|
if (this._parentage = null, Array.isArray(s))
|
|
543
553
|
try {
|
|
544
|
-
for (var a =
|
|
554
|
+
for (var a = Ce(s), h = a.next(); !h.done; h = a.next()) {
|
|
545
555
|
var u = h.value;
|
|
546
556
|
u.remove(this);
|
|
547
557
|
}
|
|
@@ -558,22 +568,22 @@ var ve = function() {
|
|
|
558
568
|
else
|
|
559
569
|
s.remove(this);
|
|
560
570
|
var l = this.initialTeardown;
|
|
561
|
-
if (
|
|
571
|
+
if (M(l))
|
|
562
572
|
try {
|
|
563
573
|
l();
|
|
564
574
|
} catch (m) {
|
|
565
|
-
o = m instanceof
|
|
575
|
+
o = m instanceof Se ? m.errors : [m];
|
|
566
576
|
}
|
|
567
577
|
var c = this._finalizers;
|
|
568
578
|
if (c) {
|
|
569
579
|
this._finalizers = null;
|
|
570
580
|
try {
|
|
571
|
-
for (var f =
|
|
572
|
-
var
|
|
581
|
+
for (var f = Ce(c), p = f.next(); !p.done; p = f.next()) {
|
|
582
|
+
var d = p.value;
|
|
573
583
|
try {
|
|
574
|
-
|
|
584
|
+
rt(d);
|
|
575
585
|
} catch (m) {
|
|
576
|
-
o = o ?? [], m instanceof
|
|
586
|
+
o = o ?? [], m instanceof Se ? o = Re(Re([], $e(o)), $e(m.errors)) : o.push(m);
|
|
577
587
|
}
|
|
578
588
|
}
|
|
579
589
|
} catch (m) {
|
|
@@ -588,13 +598,13 @@ var ve = function() {
|
|
|
588
598
|
}
|
|
589
599
|
}
|
|
590
600
|
if (o)
|
|
591
|
-
throw new
|
|
601
|
+
throw new Se(o);
|
|
592
602
|
}
|
|
593
603
|
}, e.prototype.add = function(t) {
|
|
594
604
|
var r;
|
|
595
605
|
if (t && t !== this)
|
|
596
606
|
if (this.closed)
|
|
597
|
-
|
|
607
|
+
rt(t);
|
|
598
608
|
else {
|
|
599
609
|
if (t instanceof e) {
|
|
600
610
|
if (t.closed || t._hasParent(this))
|
|
@@ -611,52 +621,52 @@ var ve = function() {
|
|
|
611
621
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
612
622
|
}, e.prototype._removeParent = function(t) {
|
|
613
623
|
var r = this._parentage;
|
|
614
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
624
|
+
r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
|
|
615
625
|
}, e.prototype.remove = function(t) {
|
|
616
626
|
var r = this._finalizers;
|
|
617
|
-
r &&
|
|
627
|
+
r && De(r, t), t instanceof e && t._removeParent(this);
|
|
618
628
|
}, e.EMPTY = function() {
|
|
619
629
|
var t = new e();
|
|
620
630
|
return t.closed = !0, t;
|
|
621
631
|
}(), e;
|
|
622
|
-
}(),
|
|
623
|
-
function
|
|
624
|
-
return e instanceof
|
|
632
|
+
}(), Pt = ge.EMPTY;
|
|
633
|
+
function Ot(e) {
|
|
634
|
+
return e instanceof ge || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
|
|
625
635
|
}
|
|
626
|
-
function
|
|
627
|
-
|
|
636
|
+
function rt(e) {
|
|
637
|
+
M(e) ? e() : e.unsubscribe();
|
|
628
638
|
}
|
|
629
|
-
var
|
|
639
|
+
var Hr = {
|
|
630
640
|
Promise: void 0
|
|
631
|
-
},
|
|
641
|
+
}, Ar = {
|
|
632
642
|
setTimeout: function(e, t) {
|
|
633
643
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
634
644
|
r[n - 2] = arguments[n];
|
|
635
|
-
return setTimeout.apply(void 0,
|
|
645
|
+
return setTimeout.apply(void 0, Re([e, t], $e(r)));
|
|
636
646
|
},
|
|
637
647
|
clearTimeout: function(e) {
|
|
638
648
|
return clearTimeout(e);
|
|
639
649
|
},
|
|
640
650
|
delegate: void 0
|
|
641
651
|
};
|
|
642
|
-
function
|
|
643
|
-
|
|
652
|
+
function Pr(e) {
|
|
653
|
+
Ar.setTimeout(function() {
|
|
644
654
|
throw e;
|
|
645
655
|
});
|
|
646
656
|
}
|
|
647
|
-
function
|
|
657
|
+
function nt() {
|
|
648
658
|
}
|
|
649
|
-
function
|
|
659
|
+
function le(e) {
|
|
650
660
|
e();
|
|
651
661
|
}
|
|
652
|
-
var
|
|
653
|
-
|
|
662
|
+
var It = function(e) {
|
|
663
|
+
ne(t, e);
|
|
654
664
|
function t(r) {
|
|
655
665
|
var n = e.call(this) || this;
|
|
656
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
666
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Nr, n;
|
|
657
667
|
}
|
|
658
668
|
return t.create = function(r, n, i) {
|
|
659
|
-
return new
|
|
669
|
+
return new Ue(r, n, i);
|
|
660
670
|
}, t.prototype.next = function(r) {
|
|
661
671
|
this.isStopped || this._next(r);
|
|
662
672
|
}, t.prototype.error = function(r) {
|
|
@@ -680,7 +690,7 @@ var Mt = function(e) {
|
|
|
680
690
|
this.unsubscribe();
|
|
681
691
|
}
|
|
682
692
|
}, t;
|
|
683
|
-
}(
|
|
693
|
+
}(ge), Or = function() {
|
|
684
694
|
function e(t) {
|
|
685
695
|
this.partialObserver = t;
|
|
686
696
|
}
|
|
@@ -690,7 +700,7 @@ var Mt = function(e) {
|
|
|
690
700
|
try {
|
|
691
701
|
r.next(t);
|
|
692
702
|
} catch (n) {
|
|
693
|
-
|
|
703
|
+
se(n);
|
|
694
704
|
}
|
|
695
705
|
}, e.prototype.error = function(t) {
|
|
696
706
|
var r = this.partialObserver;
|
|
@@ -698,56 +708,56 @@ var Mt = function(e) {
|
|
|
698
708
|
try {
|
|
699
709
|
r.error(t);
|
|
700
710
|
} catch (n) {
|
|
701
|
-
|
|
711
|
+
se(n);
|
|
702
712
|
}
|
|
703
713
|
else
|
|
704
|
-
|
|
714
|
+
se(t);
|
|
705
715
|
}, e.prototype.complete = function() {
|
|
706
716
|
var t = this.partialObserver;
|
|
707
717
|
if (t.complete)
|
|
708
718
|
try {
|
|
709
719
|
t.complete();
|
|
710
720
|
} catch (r) {
|
|
711
|
-
|
|
721
|
+
se(r);
|
|
712
722
|
}
|
|
713
723
|
}, e;
|
|
714
|
-
}(),
|
|
715
|
-
|
|
724
|
+
}(), Ue = function(e) {
|
|
725
|
+
ne(t, e);
|
|
716
726
|
function t(r, n, i) {
|
|
717
727
|
var o = e.call(this) || this, s;
|
|
718
|
-
return
|
|
728
|
+
return M(r) || !r ? s = {
|
|
719
729
|
next: r ?? void 0,
|
|
720
730
|
error: n ?? void 0,
|
|
721
731
|
complete: i ?? void 0
|
|
722
|
-
} : s = r, o.destination = new
|
|
732
|
+
} : s = r, o.destination = new Or(s), o;
|
|
723
733
|
}
|
|
724
734
|
return t;
|
|
725
|
-
}(
|
|
726
|
-
function
|
|
727
|
-
|
|
735
|
+
}(It);
|
|
736
|
+
function se(e) {
|
|
737
|
+
Pr(e);
|
|
728
738
|
}
|
|
729
|
-
function
|
|
739
|
+
function Ir(e) {
|
|
730
740
|
throw e;
|
|
731
741
|
}
|
|
732
|
-
var
|
|
742
|
+
var Nr = {
|
|
733
743
|
closed: !0,
|
|
734
|
-
next:
|
|
735
|
-
error:
|
|
736
|
-
complete:
|
|
737
|
-
},
|
|
744
|
+
next: nt,
|
|
745
|
+
error: Ir,
|
|
746
|
+
complete: nt
|
|
747
|
+
}, Mr = function() {
|
|
738
748
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
739
749
|
}();
|
|
740
|
-
function
|
|
750
|
+
function Lr(e) {
|
|
741
751
|
return e;
|
|
742
752
|
}
|
|
743
|
-
function
|
|
744
|
-
return e.length === 0 ?
|
|
753
|
+
function Cr(e) {
|
|
754
|
+
return e.length === 0 ? Lr : e.length === 1 ? e[0] : function(r) {
|
|
745
755
|
return e.reduce(function(n, i) {
|
|
746
756
|
return i(n);
|
|
747
757
|
}, r);
|
|
748
758
|
};
|
|
749
759
|
}
|
|
750
|
-
var
|
|
760
|
+
var it = function() {
|
|
751
761
|
function e(t) {
|
|
752
762
|
t && (this._subscribe = t);
|
|
753
763
|
}
|
|
@@ -755,8 +765,8 @@ var ot = function() {
|
|
|
755
765
|
var r = new e();
|
|
756
766
|
return r.source = this, r.operator = t, r;
|
|
757
767
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
758
|
-
var i = this, o =
|
|
759
|
-
return
|
|
768
|
+
var i = this, o = Rr(t) ? t : new Ue(t, r, n);
|
|
769
|
+
return le(function() {
|
|
760
770
|
var s = i, a = s.operator, h = s.source;
|
|
761
771
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
762
772
|
}), o;
|
|
@@ -768,8 +778,8 @@ var ot = function() {
|
|
|
768
778
|
}
|
|
769
779
|
}, e.prototype.forEach = function(t, r) {
|
|
770
780
|
var n = this;
|
|
771
|
-
return r =
|
|
772
|
-
var s = new
|
|
781
|
+
return r = ot(r), new r(function(i, o) {
|
|
782
|
+
var s = new Ue({
|
|
773
783
|
next: function(a) {
|
|
774
784
|
try {
|
|
775
785
|
t(a);
|
|
@@ -785,15 +795,15 @@ var ot = function() {
|
|
|
785
795
|
}, e.prototype._subscribe = function(t) {
|
|
786
796
|
var r;
|
|
787
797
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
788
|
-
}, e.prototype[
|
|
798
|
+
}, e.prototype[Mr] = function() {
|
|
789
799
|
return this;
|
|
790
800
|
}, e.prototype.pipe = function() {
|
|
791
801
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
792
802
|
t[r] = arguments[r];
|
|
793
|
-
return
|
|
803
|
+
return Cr(t)(this);
|
|
794
804
|
}, e.prototype.toPromise = function(t) {
|
|
795
805
|
var r = this;
|
|
796
|
-
return t =
|
|
806
|
+
return t = ot(t), new t(function(n, i) {
|
|
797
807
|
var o;
|
|
798
808
|
r.subscribe(function(s) {
|
|
799
809
|
return o = s;
|
|
@@ -807,40 +817,40 @@ var ot = function() {
|
|
|
807
817
|
return new e(t);
|
|
808
818
|
}, e;
|
|
809
819
|
}();
|
|
810
|
-
function
|
|
820
|
+
function ot(e) {
|
|
811
821
|
var t;
|
|
812
|
-
return (t = e ??
|
|
822
|
+
return (t = e ?? Hr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
813
823
|
}
|
|
814
|
-
function
|
|
815
|
-
return e &&
|
|
824
|
+
function $r(e) {
|
|
825
|
+
return e && M(e.next) && M(e.error) && M(e.complete);
|
|
816
826
|
}
|
|
817
|
-
function
|
|
818
|
-
return e && e instanceof
|
|
827
|
+
function Rr(e) {
|
|
828
|
+
return e && e instanceof It || $r(e) && Ot(e);
|
|
819
829
|
}
|
|
820
|
-
var
|
|
830
|
+
var Dr = At(function(e) {
|
|
821
831
|
return function() {
|
|
822
832
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
823
833
|
};
|
|
824
|
-
}),
|
|
825
|
-
|
|
834
|
+
}), Nt = function(e) {
|
|
835
|
+
ne(t, e);
|
|
826
836
|
function t() {
|
|
827
837
|
var r = e.call(this) || this;
|
|
828
838
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
829
839
|
}
|
|
830
840
|
return t.prototype.lift = function(r) {
|
|
831
|
-
var n = new
|
|
841
|
+
var n = new st(this, this);
|
|
832
842
|
return n.operator = r, n;
|
|
833
843
|
}, t.prototype._throwIfClosed = function() {
|
|
834
844
|
if (this.closed)
|
|
835
|
-
throw new
|
|
845
|
+
throw new Dr();
|
|
836
846
|
}, t.prototype.next = function(r) {
|
|
837
847
|
var n = this;
|
|
838
|
-
|
|
848
|
+
le(function() {
|
|
839
849
|
var i, o;
|
|
840
850
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
841
851
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
842
852
|
try {
|
|
843
|
-
for (var s =
|
|
853
|
+
for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
844
854
|
var h = a.value;
|
|
845
855
|
h.next(r);
|
|
846
856
|
}
|
|
@@ -858,7 +868,7 @@ var Ur = Ot(function(e) {
|
|
|
858
868
|
});
|
|
859
869
|
}, t.prototype.error = function(r) {
|
|
860
870
|
var n = this;
|
|
861
|
-
|
|
871
|
+
le(function() {
|
|
862
872
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
863
873
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
864
874
|
for (var i = n.observers; i.length; )
|
|
@@ -867,7 +877,7 @@ var Ur = Ot(function(e) {
|
|
|
867
877
|
});
|
|
868
878
|
}, t.prototype.complete = function() {
|
|
869
879
|
var r = this;
|
|
870
|
-
|
|
880
|
+
le(function() {
|
|
871
881
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
872
882
|
r.isStopped = !0;
|
|
873
883
|
for (var n = r.observers; n.length; )
|
|
@@ -889,20 +899,20 @@ var Ur = Ot(function(e) {
|
|
|
889
899
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
890
900
|
}, t.prototype._innerSubscribe = function(r) {
|
|
891
901
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
892
|
-
return o || s ?
|
|
893
|
-
n.currentObservers = null,
|
|
902
|
+
return o || s ? Pt : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
903
|
+
n.currentObservers = null, De(a, r);
|
|
894
904
|
}));
|
|
895
905
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
896
906
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
897
907
|
i ? r.error(o) : s && r.complete();
|
|
898
908
|
}, t.prototype.asObservable = function() {
|
|
899
|
-
var r = new
|
|
909
|
+
var r = new it();
|
|
900
910
|
return r.source = this, r;
|
|
901
911
|
}, t.create = function(r, n) {
|
|
902
|
-
return new
|
|
912
|
+
return new st(r, n);
|
|
903
913
|
}, t;
|
|
904
|
-
}(
|
|
905
|
-
|
|
914
|
+
}(it), st = function(e) {
|
|
915
|
+
ne(t, e);
|
|
906
916
|
function t(r, n) {
|
|
907
917
|
var i = e.call(this) || this;
|
|
908
918
|
return i.destination = r, i.source = n, i;
|
|
@@ -918,17 +928,17 @@ var Ur = Ot(function(e) {
|
|
|
918
928
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
919
929
|
}, t.prototype._subscribe = function(r) {
|
|
920
930
|
var n, i;
|
|
921
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
931
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pt;
|
|
922
932
|
}, t;
|
|
923
|
-
}(
|
|
933
|
+
}(Nt), Mt = {
|
|
924
934
|
now: function() {
|
|
925
|
-
return (
|
|
935
|
+
return (Mt.delegate || Date).now();
|
|
926
936
|
},
|
|
927
937
|
delegate: void 0
|
|
928
|
-
},
|
|
929
|
-
|
|
938
|
+
}, Ur = function(e) {
|
|
939
|
+
ne(t, e);
|
|
930
940
|
function t(r, n, i) {
|
|
931
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
941
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mt);
|
|
932
942
|
var o = e.call(this) || this;
|
|
933
943
|
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;
|
|
934
944
|
}
|
|
@@ -948,65 +958,65 @@ var Ur = Ot(function(e) {
|
|
|
948
958
|
u && o.splice(0, u + 1);
|
|
949
959
|
}
|
|
950
960
|
}, t;
|
|
951
|
-
}(
|
|
952
|
-
const
|
|
953
|
-
if (
|
|
954
|
-
const r = new
|
|
955
|
-
|
|
961
|
+
}(Nt);
|
|
962
|
+
const at = [], ut = {}, Gr = (e, t = 0) => {
|
|
963
|
+
if (at.indexOf(e) == -1) {
|
|
964
|
+
const r = new Ur(t);
|
|
965
|
+
ut[e] = r, at.push(e);
|
|
956
966
|
}
|
|
957
|
-
return
|
|
958
|
-
},
|
|
959
|
-
function
|
|
967
|
+
return ut[e];
|
|
968
|
+
}, G = [];
|
|
969
|
+
function Fr(e, t) {
|
|
960
970
|
return {
|
|
961
|
-
subscribe:
|
|
971
|
+
subscribe: ye(e, t).subscribe
|
|
962
972
|
};
|
|
963
973
|
}
|
|
964
|
-
function
|
|
974
|
+
function ye(e, t = O) {
|
|
965
975
|
let r;
|
|
966
976
|
const n = /* @__PURE__ */ new Set();
|
|
967
977
|
function i(a) {
|
|
968
978
|
if (wt(e, a) && (e = a, r)) {
|
|
969
|
-
const h = !
|
|
979
|
+
const h = !G.length;
|
|
970
980
|
for (const u of n)
|
|
971
|
-
u[1](),
|
|
981
|
+
u[1](), G.push(u, e);
|
|
972
982
|
if (h) {
|
|
973
|
-
for (let u = 0; u <
|
|
974
|
-
|
|
975
|
-
|
|
983
|
+
for (let u = 0; u < G.length; u += 2)
|
|
984
|
+
G[u][0](G[u + 1]);
|
|
985
|
+
G.length = 0;
|
|
976
986
|
}
|
|
977
987
|
}
|
|
978
988
|
}
|
|
979
989
|
function o(a) {
|
|
980
990
|
i(a(e));
|
|
981
991
|
}
|
|
982
|
-
function s(a, h =
|
|
992
|
+
function s(a, h = O) {
|
|
983
993
|
const u = [a, h];
|
|
984
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
994
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
|
|
985
995
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
986
996
|
};
|
|
987
997
|
}
|
|
988
998
|
return { set: i, update: o, subscribe: s };
|
|
989
999
|
}
|
|
990
|
-
function
|
|
1000
|
+
function z(e, t, r) {
|
|
991
1001
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
992
1002
|
if (!i.every(Boolean))
|
|
993
1003
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
994
1004
|
const o = t.length < 2;
|
|
995
|
-
return
|
|
1005
|
+
return Fr(r, (s, a) => {
|
|
996
1006
|
let h = !1;
|
|
997
1007
|
const u = [];
|
|
998
|
-
let l = 0, c =
|
|
1008
|
+
let l = 0, c = O;
|
|
999
1009
|
const f = () => {
|
|
1000
1010
|
if (l)
|
|
1001
1011
|
return;
|
|
1002
1012
|
c();
|
|
1003
|
-
const
|
|
1004
|
-
o ? s(
|
|
1013
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1014
|
+
o ? s(d) : c = Ye(d) ? d : O;
|
|
1005
1015
|
}, p = i.map(
|
|
1006
|
-
(
|
|
1007
|
-
|
|
1008
|
-
(
|
|
1009
|
-
u[m] =
|
|
1016
|
+
(d, m) => Tt(
|
|
1017
|
+
d,
|
|
1018
|
+
(H) => {
|
|
1019
|
+
u[m] = H, l &= ~(1 << m), h && f();
|
|
1010
1020
|
},
|
|
1011
1021
|
() => {
|
|
1012
1022
|
l |= 1 << m;
|
|
@@ -1014,112 +1024,112 @@ function Q(e, t, r) {
|
|
|
1014
1024
|
)
|
|
1015
1025
|
);
|
|
1016
1026
|
return h = !0, f(), function() {
|
|
1017
|
-
|
|
1027
|
+
re(p), c(), h = !1;
|
|
1018
1028
|
};
|
|
1019
1029
|
});
|
|
1020
1030
|
}
|
|
1021
|
-
function
|
|
1031
|
+
function jr(e) {
|
|
1022
1032
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1023
1033
|
}
|
|
1024
|
-
var
|
|
1025
|
-
return
|
|
1034
|
+
var kr = function(t) {
|
|
1035
|
+
return Vr(t) && !Xr(t);
|
|
1026
1036
|
};
|
|
1027
|
-
function
|
|
1037
|
+
function Vr(e) {
|
|
1028
1038
|
return !!e && typeof e == "object";
|
|
1029
1039
|
}
|
|
1030
|
-
function
|
|
1040
|
+
function Xr(e) {
|
|
1031
1041
|
var t = Object.prototype.toString.call(e);
|
|
1032
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1042
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
|
|
1033
1043
|
}
|
|
1034
|
-
var
|
|
1035
|
-
function
|
|
1036
|
-
return e.$$typeof ===
|
|
1044
|
+
var Wr = typeof Symbol == "function" && Symbol.for, zr = Wr ? Symbol.for("react.element") : 60103;
|
|
1045
|
+
function Zr(e) {
|
|
1046
|
+
return e.$$typeof === zr;
|
|
1037
1047
|
}
|
|
1038
|
-
function
|
|
1048
|
+
function Yr(e) {
|
|
1039
1049
|
return Array.isArray(e) ? [] : {};
|
|
1040
1050
|
}
|
|
1041
|
-
function
|
|
1042
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1051
|
+
function ee(e, t) {
|
|
1052
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Yr(e), e, t) : e;
|
|
1043
1053
|
}
|
|
1044
|
-
function
|
|
1054
|
+
function Qr(e, t, r) {
|
|
1045
1055
|
return e.concat(t).map(function(n) {
|
|
1046
|
-
return
|
|
1056
|
+
return ee(n, r);
|
|
1047
1057
|
});
|
|
1048
1058
|
}
|
|
1049
|
-
function
|
|
1059
|
+
function Jr(e, t) {
|
|
1050
1060
|
if (!t.customMerge)
|
|
1051
|
-
return
|
|
1061
|
+
return k;
|
|
1052
1062
|
var r = t.customMerge(e);
|
|
1053
|
-
return typeof r == "function" ? r :
|
|
1063
|
+
return typeof r == "function" ? r : k;
|
|
1054
1064
|
}
|
|
1055
|
-
function
|
|
1065
|
+
function qr(e) {
|
|
1056
1066
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1057
1067
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1058
1068
|
}) : [];
|
|
1059
1069
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return Object.keys(e).concat(
|
|
1070
|
+
function ht(e) {
|
|
1071
|
+
return Object.keys(e).concat(qr(e));
|
|
1062
1072
|
}
|
|
1063
|
-
function
|
|
1073
|
+
function Lt(e, t) {
|
|
1064
1074
|
try {
|
|
1065
1075
|
return t in e;
|
|
1066
1076
|
} catch {
|
|
1067
1077
|
return !1;
|
|
1068
1078
|
}
|
|
1069
1079
|
}
|
|
1070
|
-
function
|
|
1071
|
-
return
|
|
1080
|
+
function Kr(e, t) {
|
|
1081
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1072
1082
|
}
|
|
1073
|
-
function
|
|
1083
|
+
function en(e, t, r) {
|
|
1074
1084
|
var n = {};
|
|
1075
|
-
return r.isMergeableObject(e) &&
|
|
1076
|
-
n[i] =
|
|
1077
|
-
}),
|
|
1078
|
-
|
|
1085
|
+
return r.isMergeableObject(e) && ht(e).forEach(function(i) {
|
|
1086
|
+
n[i] = ee(e[i], r);
|
|
1087
|
+
}), ht(t).forEach(function(i) {
|
|
1088
|
+
Kr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1079
1089
|
}), n;
|
|
1080
1090
|
}
|
|
1081
|
-
function
|
|
1082
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1091
|
+
function k(e, t, r) {
|
|
1092
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || kr, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1083
1093
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1084
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1094
|
+
return o ? n ? r.arrayMerge(e, t, r) : en(e, t, r) : ee(t, r);
|
|
1085
1095
|
}
|
|
1086
|
-
|
|
1096
|
+
k.all = function(t, r) {
|
|
1087
1097
|
if (!Array.isArray(t))
|
|
1088
1098
|
throw new Error("first argument should be an array");
|
|
1089
1099
|
return t.reduce(function(n, i) {
|
|
1090
|
-
return
|
|
1100
|
+
return k(n, i, r);
|
|
1091
1101
|
}, {});
|
|
1092
1102
|
};
|
|
1093
|
-
var
|
|
1094
|
-
const
|
|
1095
|
-
var
|
|
1096
|
-
return
|
|
1103
|
+
var tn = k, rn = tn;
|
|
1104
|
+
const nn = /* @__PURE__ */ jr(rn);
|
|
1105
|
+
var Ge = function(e, t) {
|
|
1106
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1097
1107
|
r.__proto__ = n;
|
|
1098
1108
|
} || function(r, n) {
|
|
1099
1109
|
for (var i in n)
|
|
1100
1110
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1101
|
-
},
|
|
1111
|
+
}, Ge(e, t);
|
|
1102
1112
|
};
|
|
1103
|
-
function
|
|
1113
|
+
function ve(e, t) {
|
|
1104
1114
|
if (typeof t != "function" && t !== null)
|
|
1105
1115
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1106
|
-
|
|
1116
|
+
Ge(e, t);
|
|
1107
1117
|
function r() {
|
|
1108
1118
|
this.constructor = e;
|
|
1109
1119
|
}
|
|
1110
1120
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1111
1121
|
}
|
|
1112
|
-
var
|
|
1113
|
-
return
|
|
1122
|
+
var N = function() {
|
|
1123
|
+
return N = Object.assign || function(t) {
|
|
1114
1124
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1115
1125
|
r = arguments[n];
|
|
1116
1126
|
for (var o in r)
|
|
1117
1127
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1118
1128
|
}
|
|
1119
1129
|
return t;
|
|
1120
|
-
},
|
|
1130
|
+
}, N.apply(this, arguments);
|
|
1121
1131
|
};
|
|
1122
|
-
function
|
|
1132
|
+
function on(e, t) {
|
|
1123
1133
|
var r = {};
|
|
1124
1134
|
for (var n in e)
|
|
1125
1135
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1128,43 +1138,43 @@ function sn(e, t) {
|
|
|
1128
1138
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1129
1139
|
return r;
|
|
1130
1140
|
}
|
|
1131
|
-
function
|
|
1141
|
+
function we(e, t, r) {
|
|
1132
1142
|
if (r || arguments.length === 2)
|
|
1133
1143
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1134
1144
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1135
1145
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1136
1146
|
}
|
|
1137
|
-
function
|
|
1138
|
-
var r = t && t.cache ? t.cache :
|
|
1147
|
+
function Te(e, t) {
|
|
1148
|
+
var r = t && t.cache ? t.cache : fn, n = t && t.serializer ? t.serializer : ln, i = t && t.strategy ? t.strategy : un;
|
|
1139
1149
|
return i(e, {
|
|
1140
1150
|
cache: r,
|
|
1141
1151
|
serializer: n
|
|
1142
1152
|
});
|
|
1143
1153
|
}
|
|
1144
|
-
function
|
|
1154
|
+
function sn(e) {
|
|
1145
1155
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1146
1156
|
}
|
|
1147
|
-
function
|
|
1148
|
-
var i =
|
|
1157
|
+
function an(e, t, r, n) {
|
|
1158
|
+
var i = sn(n) ? n : r(n), o = t.get(i);
|
|
1149
1159
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1150
1160
|
}
|
|
1151
|
-
function
|
|
1161
|
+
function Ct(e, t, r) {
|
|
1152
1162
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1153
1163
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1154
1164
|
}
|
|
1155
|
-
function
|
|
1165
|
+
function $t(e, t, r, n, i) {
|
|
1156
1166
|
return r.bind(t, e, n, i);
|
|
1157
1167
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var r = e.length === 1 ?
|
|
1160
|
-
return
|
|
1168
|
+
function un(e, t) {
|
|
1169
|
+
var r = e.length === 1 ? an : Ct;
|
|
1170
|
+
return $t(e, this, r, t.cache.create(), t.serializer);
|
|
1161
1171
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return
|
|
1172
|
+
function hn(e, t) {
|
|
1173
|
+
return $t(e, this, Ct, t.cache.create(), t.serializer);
|
|
1164
1174
|
}
|
|
1165
|
-
var
|
|
1175
|
+
var ln = function() {
|
|
1166
1176
|
return JSON.stringify(arguments);
|
|
1167
|
-
},
|
|
1177
|
+
}, cn = (
|
|
1168
1178
|
/** @class */
|
|
1169
1179
|
function() {
|
|
1170
1180
|
function e() {
|
|
@@ -1176,71 +1186,71 @@ var cn = function() {
|
|
|
1176
1186
|
this.cache[t] = r;
|
|
1177
1187
|
}, e;
|
|
1178
1188
|
}()
|
|
1179
|
-
),
|
|
1189
|
+
), fn = {
|
|
1180
1190
|
create: function() {
|
|
1181
|
-
return new
|
|
1191
|
+
return new cn();
|
|
1182
1192
|
}
|
|
1183
|
-
},
|
|
1184
|
-
variadic:
|
|
1185
|
-
},
|
|
1186
|
-
return
|
|
1193
|
+
}, He = {
|
|
1194
|
+
variadic: hn
|
|
1195
|
+
}, pe = function() {
|
|
1196
|
+
return pe = Object.assign || function(t) {
|
|
1187
1197
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1188
1198
|
r = arguments[n];
|
|
1189
1199
|
for (var o in r)
|
|
1190
1200
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1191
1201
|
}
|
|
1192
1202
|
return t;
|
|
1193
|
-
},
|
|
1203
|
+
}, pe.apply(this, arguments);
|
|
1194
1204
|
};
|
|
1195
1205
|
var b;
|
|
1196
1206
|
(function(e) {
|
|
1197
1207
|
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";
|
|
1198
1208
|
})(b || (b = {}));
|
|
1199
|
-
var
|
|
1209
|
+
var _;
|
|
1200
1210
|
(function(e) {
|
|
1201
1211
|
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";
|
|
1202
|
-
})(
|
|
1203
|
-
var
|
|
1212
|
+
})(_ || (_ = {}));
|
|
1213
|
+
var V;
|
|
1204
1214
|
(function(e) {
|
|
1205
1215
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1206
|
-
})(
|
|
1207
|
-
function
|
|
1208
|
-
return e.type ===
|
|
1216
|
+
})(V || (V = {}));
|
|
1217
|
+
function lt(e) {
|
|
1218
|
+
return e.type === _.literal;
|
|
1209
1219
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return e.type ===
|
|
1220
|
+
function pn(e) {
|
|
1221
|
+
return e.type === _.argument;
|
|
1222
|
+
}
|
|
1223
|
+
function Rt(e) {
|
|
1224
|
+
return e.type === _.number;
|
|
1225
|
+
}
|
|
1226
|
+
function Dt(e) {
|
|
1227
|
+
return e.type === _.date;
|
|
1212
1228
|
}
|
|
1213
1229
|
function Ut(e) {
|
|
1214
|
-
return e.type ===
|
|
1230
|
+
return e.type === _.time;
|
|
1215
1231
|
}
|
|
1216
1232
|
function Gt(e) {
|
|
1217
|
-
return e.type ===
|
|
1233
|
+
return e.type === _.select;
|
|
1218
1234
|
}
|
|
1219
1235
|
function Ft(e) {
|
|
1220
|
-
return e.type ===
|
|
1236
|
+
return e.type === _.plural;
|
|
1237
|
+
}
|
|
1238
|
+
function mn(e) {
|
|
1239
|
+
return e.type === _.pound;
|
|
1221
1240
|
}
|
|
1222
1241
|
function jt(e) {
|
|
1223
|
-
return e.type ===
|
|
1242
|
+
return e.type === _.tag;
|
|
1224
1243
|
}
|
|
1225
1244
|
function kt(e) {
|
|
1226
|
-
return e.type ===
|
|
1227
|
-
}
|
|
1228
|
-
function bn(e) {
|
|
1229
|
-
return e.type === E.pound;
|
|
1245
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1230
1246
|
}
|
|
1231
|
-
function
|
|
1232
|
-
return e.type ===
|
|
1247
|
+
function Fe(e) {
|
|
1248
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1233
1249
|
}
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
}
|
|
1237
|
-
function ke(e) {
|
|
1238
|
-
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1239
|
-
}
|
|
1240
|
-
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, dn = /(?:[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;
|
|
1241
|
-
function gn(e) {
|
|
1250
|
+
var Vt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[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;
|
|
1251
|
+
function dn(e) {
|
|
1242
1252
|
var t = {};
|
|
1243
|
-
return e.replace(
|
|
1253
|
+
return e.replace(bn, function(r) {
|
|
1244
1254
|
var n = r.length;
|
|
1245
1255
|
switch (r[0]) {
|
|
1246
1256
|
case "G":
|
|
@@ -1329,21 +1339,21 @@ function gn(e) {
|
|
|
1329
1339
|
return "";
|
|
1330
1340
|
}), t;
|
|
1331
1341
|
}
|
|
1332
|
-
var
|
|
1333
|
-
return
|
|
1342
|
+
var x = function() {
|
|
1343
|
+
return x = Object.assign || function(t) {
|
|
1334
1344
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1335
1345
|
r = arguments[n];
|
|
1336
1346
|
for (var o in r)
|
|
1337
1347
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1338
1348
|
}
|
|
1339
1349
|
return t;
|
|
1340
|
-
},
|
|
1350
|
+
}, x.apply(this, arguments);
|
|
1341
1351
|
};
|
|
1342
|
-
var
|
|
1343
|
-
function
|
|
1352
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1353
|
+
function yn(e) {
|
|
1344
1354
|
if (e.length === 0)
|
|
1345
1355
|
throw new Error("Number skeleton cannot be empty");
|
|
1346
|
-
for (var t = e.split(
|
|
1356
|
+
for (var t = e.split(gn).filter(function(f) {
|
|
1347
1357
|
return f.length > 0;
|
|
1348
1358
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1349
1359
|
var o = i[n], s = o.split("/");
|
|
@@ -1358,17 +1368,17 @@ function vn(e) {
|
|
|
1358
1368
|
}
|
|
1359
1369
|
return r;
|
|
1360
1370
|
}
|
|
1361
|
-
function
|
|
1371
|
+
function vn(e) {
|
|
1362
1372
|
return e.replace(/^(.*?)-/, "");
|
|
1363
1373
|
}
|
|
1364
|
-
var
|
|
1365
|
-
function
|
|
1374
|
+
var ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Xt = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, Wt = /^(0+)$/;
|
|
1375
|
+
function ft(e) {
|
|
1366
1376
|
var t = {};
|
|
1367
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1377
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Xt, function(r, n, i) {
|
|
1368
1378
|
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)), "";
|
|
1369
1379
|
}), t;
|
|
1370
1380
|
}
|
|
1371
|
-
function
|
|
1381
|
+
function zt(e) {
|
|
1372
1382
|
switch (e) {
|
|
1373
1383
|
case "sign-auto":
|
|
1374
1384
|
return {
|
|
@@ -1408,7 +1418,7 @@ function Yt(e) {
|
|
|
1408
1418
|
};
|
|
1409
1419
|
}
|
|
1410
1420
|
}
|
|
1411
|
-
function
|
|
1421
|
+
function _n(e) {
|
|
1412
1422
|
var t;
|
|
1413
1423
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1414
1424
|
notation: "engineering"
|
|
@@ -1416,17 +1426,17 @@ function xn(e) {
|
|
|
1416
1426
|
notation: "scientific"
|
|
1417
1427
|
}, e = e.slice(1)), t) {
|
|
1418
1428
|
var r = e.slice(0, 2);
|
|
1419
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1429
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wt.test(e))
|
|
1420
1430
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1421
1431
|
t.minimumIntegerDigits = e.length;
|
|
1422
1432
|
}
|
|
1423
1433
|
return t;
|
|
1424
1434
|
}
|
|
1425
|
-
function
|
|
1426
|
-
var t = {}, r =
|
|
1435
|
+
function pt(e) {
|
|
1436
|
+
var t = {}, r = zt(e);
|
|
1427
1437
|
return r || t;
|
|
1428
1438
|
}
|
|
1429
|
-
function
|
|
1439
|
+
function xn(e) {
|
|
1430
1440
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1431
1441
|
var i = n[r];
|
|
1432
1442
|
switch (i.stem) {
|
|
@@ -1450,7 +1460,7 @@ function Bn(e) {
|
|
|
1450
1460
|
continue;
|
|
1451
1461
|
case "measure-unit":
|
|
1452
1462
|
case "unit":
|
|
1453
|
-
t.style = "unit", t.unit =
|
|
1463
|
+
t.style = "unit", t.unit = vn(i.options[0]);
|
|
1454
1464
|
continue;
|
|
1455
1465
|
case "compact-short":
|
|
1456
1466
|
case "K":
|
|
@@ -1461,13 +1471,13 @@ function Bn(e) {
|
|
|
1461
1471
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1462
1472
|
continue;
|
|
1463
1473
|
case "scientific":
|
|
1464
|
-
t =
|
|
1465
|
-
return
|
|
1474
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1475
|
+
return x(x({}, h), pt(u));
|
|
1466
1476
|
}, {}));
|
|
1467
1477
|
continue;
|
|
1468
1478
|
case "engineering":
|
|
1469
|
-
t =
|
|
1470
|
-
return
|
|
1479
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1480
|
+
return x(x({}, h), pt(u));
|
|
1471
1481
|
}, {}));
|
|
1472
1482
|
continue;
|
|
1473
1483
|
case "notation-simple":
|
|
@@ -1512,7 +1522,7 @@ function Bn(e) {
|
|
|
1512
1522
|
case "integer-width":
|
|
1513
1523
|
if (i.options.length > 1)
|
|
1514
1524
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1515
|
-
i.options[0].replace(
|
|
1525
|
+
i.options[0].replace(En, function(h, u, l, c, f, p) {
|
|
1516
1526
|
if (u)
|
|
1517
1527
|
t.minimumIntegerDigits = l.length;
|
|
1518
1528
|
else {
|
|
@@ -1525,32 +1535,32 @@ function Bn(e) {
|
|
|
1525
1535
|
});
|
|
1526
1536
|
continue;
|
|
1527
1537
|
}
|
|
1528
|
-
if (
|
|
1538
|
+
if (Wt.test(i.stem)) {
|
|
1529
1539
|
t.minimumIntegerDigits = i.stem.length;
|
|
1530
1540
|
continue;
|
|
1531
1541
|
}
|
|
1532
|
-
if (
|
|
1542
|
+
if (ct.test(i.stem)) {
|
|
1533
1543
|
if (i.options.length > 1)
|
|
1534
1544
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1535
|
-
i.stem.replace(
|
|
1545
|
+
i.stem.replace(ct, function(h, u, l, c, f, p) {
|
|
1536
1546
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1537
1547
|
});
|
|
1538
1548
|
var o = i.options[0];
|
|
1539
|
-
o === "w" ? t =
|
|
1549
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), ft(o)));
|
|
1540
1550
|
continue;
|
|
1541
1551
|
}
|
|
1542
|
-
if (
|
|
1543
|
-
t =
|
|
1552
|
+
if (Xt.test(i.stem)) {
|
|
1553
|
+
t = x(x({}, t), ft(i.stem));
|
|
1544
1554
|
continue;
|
|
1545
1555
|
}
|
|
1546
|
-
var s =
|
|
1547
|
-
s && (t =
|
|
1548
|
-
var a =
|
|
1549
|
-
a && (t =
|
|
1556
|
+
var s = zt(i.stem);
|
|
1557
|
+
s && (t = x(x({}, t), s));
|
|
1558
|
+
var a = _n(i.stem);
|
|
1559
|
+
a && (t = x(x({}, t), a));
|
|
1550
1560
|
}
|
|
1551
1561
|
return t;
|
|
1552
1562
|
}
|
|
1553
|
-
var
|
|
1563
|
+
var ae = {
|
|
1554
1564
|
"001": [
|
|
1555
1565
|
"H",
|
|
1556
1566
|
"h"
|
|
@@ -2965,13 +2975,13 @@ var le = {
|
|
|
2965
2975
|
"h"
|
|
2966
2976
|
]
|
|
2967
2977
|
};
|
|
2968
|
-
function
|
|
2978
|
+
function Bn(e, t) {
|
|
2969
2979
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2970
2980
|
var i = e.charAt(n);
|
|
2971
2981
|
if (i === "j") {
|
|
2972
2982
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2973
2983
|
o++, n++;
|
|
2974
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2984
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Sn(t);
|
|
2975
2985
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2976
2986
|
r += h;
|
|
2977
2987
|
for (; s-- > 0; )
|
|
@@ -2981,7 +2991,7 @@ function Sn(e, t) {
|
|
|
2981
2991
|
}
|
|
2982
2992
|
return r;
|
|
2983
2993
|
}
|
|
2984
|
-
function
|
|
2994
|
+
function Sn(e) {
|
|
2985
2995
|
var t = e.hourCycle;
|
|
2986
2996
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2987
2997
|
e.hourCycles && // @ts-ignore
|
|
@@ -3000,23 +3010,23 @@ function Tn(e) {
|
|
|
3000
3010
|
}
|
|
3001
3011
|
var r = e.language, n;
|
|
3002
3012
|
r !== "root" && (n = e.maximize().region);
|
|
3003
|
-
var i =
|
|
3013
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
3004
3014
|
return i[0];
|
|
3005
3015
|
}
|
|
3006
|
-
var
|
|
3007
|
-
function
|
|
3016
|
+
var Ae, wn = new RegExp("^".concat(Vt.source, "*")), Tn = new RegExp("".concat(Vt.source, "*$"));
|
|
3017
|
+
function g(e, t) {
|
|
3008
3018
|
return { start: e, end: t };
|
|
3009
3019
|
}
|
|
3010
|
-
var
|
|
3020
|
+
var Hn = !!String.prototype.startsWith && "_a".startsWith("a", 1), An = !!String.fromCodePoint, Pn = !!Object.fromEntries, On = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, Ln = Mn ? Number.isSafeInteger : function(e) {
|
|
3011
3021
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3012
|
-
},
|
|
3022
|
+
}, je = !0;
|
|
3013
3023
|
try {
|
|
3014
|
-
var
|
|
3015
|
-
|
|
3024
|
+
var Cn = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3025
|
+
je = ((Ae = Cn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
3016
3026
|
} catch {
|
|
3017
|
-
|
|
3027
|
+
je = !1;
|
|
3018
3028
|
}
|
|
3019
|
-
var
|
|
3029
|
+
var mt = Hn ? (
|
|
3020
3030
|
// Native
|
|
3021
3031
|
function(t, r, n) {
|
|
3022
3032
|
return t.startsWith(r, n);
|
|
@@ -3026,7 +3036,7 @@ var bt = An ? (
|
|
|
3026
3036
|
function(t, r, n) {
|
|
3027
3037
|
return t.slice(n, n + r.length) === r;
|
|
3028
3038
|
}
|
|
3029
|
-
),
|
|
3039
|
+
), ke = An ? String.fromCodePoint : (
|
|
3030
3040
|
// IE11
|
|
3031
3041
|
function() {
|
|
3032
3042
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3038,9 +3048,9 @@ var bt = An ? (
|
|
|
3038
3048
|
}
|
|
3039
3049
|
return n;
|
|
3040
3050
|
}
|
|
3041
|
-
),
|
|
3051
|
+
), bt = (
|
|
3042
3052
|
// native
|
|
3043
|
-
|
|
3053
|
+
Pn ? Object.fromEntries : (
|
|
3044
3054
|
// Ponyfill
|
|
3045
3055
|
function(t) {
|
|
3046
3056
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3050,7 +3060,7 @@ var bt = An ? (
|
|
|
3050
3060
|
return r;
|
|
3051
3061
|
}
|
|
3052
3062
|
)
|
|
3053
|
-
),
|
|
3063
|
+
), Zt = On ? (
|
|
3054
3064
|
// Native
|
|
3055
3065
|
function(t, r) {
|
|
3056
3066
|
return t.codePointAt(r);
|
|
@@ -3064,7 +3074,7 @@ var bt = An ? (
|
|
|
3064
3074
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3065
3075
|
}
|
|
3066
3076
|
}
|
|
3067
|
-
),
|
|
3077
|
+
), $n = In ? (
|
|
3068
3078
|
// Native
|
|
3069
3079
|
function(t) {
|
|
3070
3080
|
return t.trimStart();
|
|
@@ -3074,7 +3084,7 @@ var bt = An ? (
|
|
|
3074
3084
|
function(t) {
|
|
3075
3085
|
return t.replace(wn, "");
|
|
3076
3086
|
}
|
|
3077
|
-
),
|
|
3087
|
+
), Rn = Nn ? (
|
|
3078
3088
|
// Native
|
|
3079
3089
|
function(t) {
|
|
3080
3090
|
return t.trimEnd();
|
|
@@ -3082,32 +3092,32 @@ var bt = An ? (
|
|
|
3082
3092
|
) : (
|
|
3083
3093
|
// Ponyfill
|
|
3084
3094
|
function(t) {
|
|
3085
|
-
return t.replace(
|
|
3095
|
+
return t.replace(Tn, "");
|
|
3086
3096
|
}
|
|
3087
3097
|
);
|
|
3088
|
-
function
|
|
3098
|
+
function Yt(e, t) {
|
|
3089
3099
|
return new RegExp(e, t);
|
|
3090
3100
|
}
|
|
3091
|
-
var
|
|
3092
|
-
if (
|
|
3093
|
-
var
|
|
3094
|
-
|
|
3101
|
+
var Ve;
|
|
3102
|
+
if (je) {
|
|
3103
|
+
var dt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3104
|
+
Ve = function(t, r) {
|
|
3095
3105
|
var n;
|
|
3096
|
-
|
|
3097
|
-
var i =
|
|
3106
|
+
dt.lastIndex = r;
|
|
3107
|
+
var i = dt.exec(t);
|
|
3098
3108
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3099
3109
|
};
|
|
3100
3110
|
} else
|
|
3101
|
-
|
|
3111
|
+
Ve = function(t, r) {
|
|
3102
3112
|
for (var n = []; ; ) {
|
|
3103
|
-
var i =
|
|
3104
|
-
if (i === void 0 ||
|
|
3113
|
+
var i = Zt(t, r);
|
|
3114
|
+
if (i === void 0 || Qt(i) || Fn(i))
|
|
3105
3115
|
break;
|
|
3106
3116
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3107
3117
|
}
|
|
3108
|
-
return
|
|
3118
|
+
return ke.apply(void 0, n);
|
|
3109
3119
|
};
|
|
3110
|
-
var
|
|
3120
|
+
var Dn = (
|
|
3111
3121
|
/** @class */
|
|
3112
3122
|
function() {
|
|
3113
3123
|
function e(t, r) {
|
|
@@ -3131,14 +3141,14 @@ var Un = (
|
|
|
3131
3141
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3132
3142
|
var a = this.clonePosition();
|
|
3133
3143
|
this.bump(), i.push({
|
|
3134
|
-
type:
|
|
3135
|
-
location:
|
|
3144
|
+
type: _.pound,
|
|
3145
|
+
location: g(a, this.clonePosition())
|
|
3136
3146
|
});
|
|
3137
3147
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3138
3148
|
if (n)
|
|
3139
3149
|
break;
|
|
3140
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3141
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3150
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3151
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
3142
3152
|
var s = this.parseTag(t, r);
|
|
3143
3153
|
if (s.err)
|
|
3144
3154
|
return s;
|
|
@@ -3159,9 +3169,9 @@ var Un = (
|
|
|
3159
3169
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3160
3170
|
return {
|
|
3161
3171
|
val: {
|
|
3162
|
-
type:
|
|
3172
|
+
type: _.literal,
|
|
3163
3173
|
value: "<".concat(i, "/>"),
|
|
3164
|
-
location:
|
|
3174
|
+
location: g(n, this.clonePosition())
|
|
3165
3175
|
},
|
|
3166
3176
|
err: null
|
|
3167
3177
|
};
|
|
@@ -3171,25 +3181,25 @@ var Un = (
|
|
|
3171
3181
|
return o;
|
|
3172
3182
|
var s = o.val, a = this.clonePosition();
|
|
3173
3183
|
if (this.bumpIf("</")) {
|
|
3174
|
-
if (this.isEOF() || !
|
|
3175
|
-
return this.error(b.INVALID_TAG,
|
|
3184
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
3185
|
+
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3176
3186
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3177
|
-
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3187
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3178
3188
|
val: {
|
|
3179
|
-
type:
|
|
3189
|
+
type: _.tag,
|
|
3180
3190
|
value: i,
|
|
3181
3191
|
children: s,
|
|
3182
|
-
location:
|
|
3192
|
+
location: g(n, this.clonePosition())
|
|
3183
3193
|
},
|
|
3184
3194
|
err: null
|
|
3185
|
-
} : this.error(b.INVALID_TAG,
|
|
3195
|
+
} : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
|
|
3186
3196
|
} else
|
|
3187
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3197
|
+
return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3188
3198
|
} else
|
|
3189
|
-
return this.error(b.INVALID_TAG,
|
|
3199
|
+
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3190
3200
|
}, e.prototype.parseTagName = function() {
|
|
3191
3201
|
var t = this.offset();
|
|
3192
|
-
for (this.bump(); !this.isEOF() &&
|
|
3202
|
+
for (this.bump(); !this.isEOF() && Gn(this.char()); )
|
|
3193
3203
|
this.bump();
|
|
3194
3204
|
return this.message.slice(t, this.offset());
|
|
3195
3205
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3211,14 +3221,14 @@ var Un = (
|
|
|
3211
3221
|
}
|
|
3212
3222
|
break;
|
|
3213
3223
|
}
|
|
3214
|
-
var h =
|
|
3224
|
+
var h = g(n, this.clonePosition());
|
|
3215
3225
|
return {
|
|
3216
|
-
val: { type:
|
|
3226
|
+
val: { type: _.literal, value: i, location: h },
|
|
3217
3227
|
err: null
|
|
3218
3228
|
};
|
|
3219
3229
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3220
3230
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3221
|
-
!
|
|
3231
|
+
!Un(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3222
3232
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3223
3233
|
if (this.isEOF() || this.char() !== 39)
|
|
3224
3234
|
return null;
|
|
@@ -3252,49 +3262,49 @@ var Un = (
|
|
|
3252
3262
|
r.push(n);
|
|
3253
3263
|
this.bump();
|
|
3254
3264
|
}
|
|
3255
|
-
return
|
|
3265
|
+
return ke.apply(void 0, r);
|
|
3256
3266
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3257
3267
|
if (this.isEOF())
|
|
3258
3268
|
return null;
|
|
3259
3269
|
var n = this.char();
|
|
3260
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3270
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3261
3271
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3262
3272
|
var n = this.clonePosition();
|
|
3263
3273
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3264
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3274
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3265
3275
|
if (this.char() === 125)
|
|
3266
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3276
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3267
3277
|
var i = this.parseIdentifierIfPossible().value;
|
|
3268
3278
|
if (!i)
|
|
3269
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3279
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3270
3280
|
if (this.bumpSpace(), this.isEOF())
|
|
3271
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3281
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3272
3282
|
switch (this.char()) {
|
|
3273
3283
|
case 125:
|
|
3274
3284
|
return this.bump(), {
|
|
3275
3285
|
val: {
|
|
3276
|
-
type:
|
|
3286
|
+
type: _.argument,
|
|
3277
3287
|
// value does not include the opening and closing braces.
|
|
3278
3288
|
value: i,
|
|
3279
|
-
location:
|
|
3289
|
+
location: g(n, this.clonePosition())
|
|
3280
3290
|
},
|
|
3281
3291
|
err: null
|
|
3282
3292
|
};
|
|
3283
3293
|
case 44:
|
|
3284
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3294
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3285
3295
|
default:
|
|
3286
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3296
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3287
3297
|
}
|
|
3288
3298
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3289
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3299
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
3290
3300
|
this.bumpTo(i);
|
|
3291
|
-
var o = this.clonePosition(), s =
|
|
3301
|
+
var o = this.clonePosition(), s = g(t, o);
|
|
3292
3302
|
return { value: n, location: s };
|
|
3293
3303
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3294
3304
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3295
3305
|
switch (a) {
|
|
3296
3306
|
case "":
|
|
3297
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3307
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, h));
|
|
3298
3308
|
case "number":
|
|
3299
3309
|
case "date":
|
|
3300
3310
|
case "time": {
|
|
@@ -3305,44 +3315,44 @@ var Un = (
|
|
|
3305
3315
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3306
3316
|
if (c.err)
|
|
3307
3317
|
return c;
|
|
3308
|
-
var f =
|
|
3318
|
+
var f = Rn(c.val);
|
|
3309
3319
|
if (f.length === 0)
|
|
3310
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3311
|
-
var p =
|
|
3320
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3321
|
+
var p = g(l, this.clonePosition());
|
|
3312
3322
|
u = { style: f, styleLocation: p };
|
|
3313
3323
|
}
|
|
3314
|
-
var
|
|
3315
|
-
if (
|
|
3316
|
-
return
|
|
3317
|
-
var m =
|
|
3318
|
-
if (u &&
|
|
3319
|
-
var
|
|
3324
|
+
var d = this.tryParseArgumentClose(i);
|
|
3325
|
+
if (d.err)
|
|
3326
|
+
return d;
|
|
3327
|
+
var m = g(i, this.clonePosition());
|
|
3328
|
+
if (u && mt(u?.style, "::", 0)) {
|
|
3329
|
+
var H = $n(u.style.slice(2));
|
|
3320
3330
|
if (a === "number") {
|
|
3321
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3331
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3322
3332
|
return c.err ? c : {
|
|
3323
|
-
val: { type:
|
|
3333
|
+
val: { type: _.number, value: n, location: m, style: c.val },
|
|
3324
3334
|
err: null
|
|
3325
3335
|
};
|
|
3326
3336
|
} else {
|
|
3327
|
-
if (
|
|
3337
|
+
if (H.length === 0)
|
|
3328
3338
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
|
|
3329
|
-
var
|
|
3330
|
-
this.locale && (
|
|
3339
|
+
var y = H;
|
|
3340
|
+
this.locale && (y = Bn(H, this.locale));
|
|
3331
3341
|
var f = {
|
|
3332
|
-
type:
|
|
3333
|
-
pattern:
|
|
3342
|
+
type: V.dateTime,
|
|
3343
|
+
pattern: y,
|
|
3334
3344
|
location: u.styleLocation,
|
|
3335
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3336
|
-
},
|
|
3345
|
+
parsedOptions: this.shouldParseSkeletons ? dn(y) : {}
|
|
3346
|
+
}, v = a === "date" ? _.date : _.time;
|
|
3337
3347
|
return {
|
|
3338
|
-
val: { type:
|
|
3348
|
+
val: { type: v, value: n, location: m, style: f },
|
|
3339
3349
|
err: null
|
|
3340
3350
|
};
|
|
3341
3351
|
}
|
|
3342
3352
|
}
|
|
3343
3353
|
return {
|
|
3344
3354
|
val: {
|
|
3345
|
-
type: a === "number" ?
|
|
3355
|
+
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3346
3356
|
value: n,
|
|
3347
3357
|
location: m,
|
|
3348
3358
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3353,52 +3363,52 @@ var Un = (
|
|
|
3353
3363
|
case "plural":
|
|
3354
3364
|
case "selectordinal":
|
|
3355
3365
|
case "select": {
|
|
3356
|
-
var
|
|
3366
|
+
var B = this.clonePosition();
|
|
3357
3367
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3358
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3368
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(B, pe({}, B)));
|
|
3359
3369
|
this.bumpSpace();
|
|
3360
|
-
var
|
|
3361
|
-
if (a !== "select" &&
|
|
3370
|
+
var S = this.parseIdentifierIfPossible(), w = 0;
|
|
3371
|
+
if (a !== "select" && S.value === "offset") {
|
|
3362
3372
|
if (!this.bumpIf(":"))
|
|
3363
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3373
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3364
3374
|
this.bumpSpace();
|
|
3365
3375
|
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3366
3376
|
if (c.err)
|
|
3367
3377
|
return c;
|
|
3368
|
-
this.bumpSpace(),
|
|
3378
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), w = c.val;
|
|
3369
3379
|
}
|
|
3370
|
-
var
|
|
3371
|
-
if (
|
|
3372
|
-
return
|
|
3373
|
-
var
|
|
3374
|
-
if (
|
|
3375
|
-
return
|
|
3376
|
-
var
|
|
3380
|
+
var oe = this.tryParsePluralOrSelectOptions(t, a, r, S);
|
|
3381
|
+
if (oe.err)
|
|
3382
|
+
return oe;
|
|
3383
|
+
var d = this.tryParseArgumentClose(i);
|
|
3384
|
+
if (d.err)
|
|
3385
|
+
return d;
|
|
3386
|
+
var Ke = g(i, this.clonePosition());
|
|
3377
3387
|
return a === "select" ? {
|
|
3378
3388
|
val: {
|
|
3379
|
-
type:
|
|
3389
|
+
type: _.select,
|
|
3380
3390
|
value: n,
|
|
3381
|
-
options:
|
|
3382
|
-
location:
|
|
3391
|
+
options: bt(oe.val),
|
|
3392
|
+
location: Ke
|
|
3383
3393
|
},
|
|
3384
3394
|
err: null
|
|
3385
3395
|
} : {
|
|
3386
3396
|
val: {
|
|
3387
|
-
type:
|
|
3397
|
+
type: _.plural,
|
|
3388
3398
|
value: n,
|
|
3389
|
-
options:
|
|
3390
|
-
offset:
|
|
3399
|
+
options: bt(oe.val),
|
|
3400
|
+
offset: w,
|
|
3391
3401
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3392
|
-
location:
|
|
3402
|
+
location: Ke
|
|
3393
3403
|
},
|
|
3394
3404
|
err: null
|
|
3395
3405
|
};
|
|
3396
3406
|
}
|
|
3397
3407
|
default:
|
|
3398
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3408
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(s, h));
|
|
3399
3409
|
}
|
|
3400
3410
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3401
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3411
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3402
3412
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3403
3413
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3404
3414
|
var n = this.char();
|
|
@@ -3407,7 +3417,7 @@ var Un = (
|
|
|
3407
3417
|
this.bump();
|
|
3408
3418
|
var i = this.clonePosition();
|
|
3409
3419
|
if (!this.bumpUntil("'"))
|
|
3410
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3420
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3411
3421
|
this.bump();
|
|
3412
3422
|
break;
|
|
3413
3423
|
}
|
|
@@ -3437,16 +3447,16 @@ var Un = (
|
|
|
3437
3447
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3438
3448
|
var n = [];
|
|
3439
3449
|
try {
|
|
3440
|
-
n =
|
|
3450
|
+
n = yn(t);
|
|
3441
3451
|
} catch {
|
|
3442
3452
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3443
3453
|
}
|
|
3444
3454
|
return {
|
|
3445
3455
|
val: {
|
|
3446
|
-
type:
|
|
3456
|
+
type: V.number,
|
|
3447
3457
|
tokens: n,
|
|
3448
3458
|
location: r,
|
|
3449
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3459
|
+
parsedOptions: this.shouldParseSkeletons ? xn(n) : {}
|
|
3450
3460
|
},
|
|
3451
3461
|
err: null
|
|
3452
3462
|
};
|
|
@@ -3458,7 +3468,7 @@ var Un = (
|
|
|
3458
3468
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3459
3469
|
if (f.err)
|
|
3460
3470
|
return f;
|
|
3461
|
-
l =
|
|
3471
|
+
l = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3462
3472
|
} else
|
|
3463
3473
|
break;
|
|
3464
3474
|
}
|
|
@@ -3467,22 +3477,22 @@ var Un = (
|
|
|
3467
3477
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3468
3478
|
var p = this.clonePosition();
|
|
3469
3479
|
if (!this.bumpIf("{"))
|
|
3470
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3471
|
-
var
|
|
3472
|
-
if (
|
|
3473
|
-
return
|
|
3480
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3481
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3482
|
+
if (d.err)
|
|
3483
|
+
return d;
|
|
3474
3484
|
var m = this.tryParseArgumentClose(p);
|
|
3475
3485
|
if (m.err)
|
|
3476
3486
|
return m;
|
|
3477
3487
|
a.push([
|
|
3478
3488
|
u,
|
|
3479
3489
|
{
|
|
3480
|
-
value:
|
|
3481
|
-
location:
|
|
3490
|
+
value: d.val,
|
|
3491
|
+
location: g(p, this.clonePosition())
|
|
3482
3492
|
}
|
|
3483
3493
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3484
3494
|
}
|
|
3485
|
-
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3495
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3486
3496
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3487
3497
|
var n = 1, i = this.clonePosition();
|
|
3488
3498
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3493,8 +3503,8 @@ var Un = (
|
|
|
3493
3503
|
else
|
|
3494
3504
|
break;
|
|
3495
3505
|
}
|
|
3496
|
-
var h =
|
|
3497
|
-
return o ? (s *= n,
|
|
3506
|
+
var h = g(i, this.clonePosition());
|
|
3507
|
+
return o ? (s *= n, Ln(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3498
3508
|
}, e.prototype.offset = function() {
|
|
3499
3509
|
return this.position.offset;
|
|
3500
3510
|
}, e.prototype.isEOF = function() {
|
|
@@ -3509,7 +3519,7 @@ var Un = (
|
|
|
3509
3519
|
var t = this.position.offset;
|
|
3510
3520
|
if (t >= this.message.length)
|
|
3511
3521
|
throw Error("out of bound");
|
|
3512
|
-
var r =
|
|
3522
|
+
var r = Zt(this.message, t);
|
|
3513
3523
|
if (r === void 0)
|
|
3514
3524
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3515
3525
|
return r;
|
|
@@ -3528,7 +3538,7 @@ var Un = (
|
|
|
3528
3538
|
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);
|
|
3529
3539
|
}
|
|
3530
3540
|
}, e.prototype.bumpIf = function(t) {
|
|
3531
|
-
if (
|
|
3541
|
+
if (mt(this.message, t, this.offset())) {
|
|
3532
3542
|
for (var r = 0; r < t.length; r++)
|
|
3533
3543
|
this.bump();
|
|
3534
3544
|
return !0;
|
|
@@ -3550,7 +3560,7 @@ var Un = (
|
|
|
3550
3560
|
break;
|
|
3551
3561
|
}
|
|
3552
3562
|
}, e.prototype.bumpSpace = function() {
|
|
3553
|
-
for (; !this.isEOF() &&
|
|
3563
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3554
3564
|
this.bump();
|
|
3555
3565
|
}, e.prototype.peek = function() {
|
|
3556
3566
|
if (this.isEOF())
|
|
@@ -3560,47 +3570,47 @@ var Un = (
|
|
|
3560
3570
|
}, e;
|
|
3561
3571
|
}()
|
|
3562
3572
|
);
|
|
3563
|
-
function
|
|
3573
|
+
function Xe(e) {
|
|
3564
3574
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3565
3575
|
}
|
|
3566
|
-
function
|
|
3567
|
-
return
|
|
3576
|
+
function Un(e) {
|
|
3577
|
+
return Xe(e) || e === 47;
|
|
3568
3578
|
}
|
|
3569
|
-
function
|
|
3579
|
+
function Gn(e) {
|
|
3570
3580
|
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;
|
|
3571
3581
|
}
|
|
3572
|
-
function
|
|
3582
|
+
function Qt(e) {
|
|
3573
3583
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3574
3584
|
}
|
|
3575
|
-
function
|
|
3585
|
+
function Fn(e) {
|
|
3576
3586
|
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;
|
|
3577
3587
|
}
|
|
3578
|
-
function
|
|
3588
|
+
function We(e) {
|
|
3579
3589
|
e.forEach(function(t) {
|
|
3580
|
-
if (delete t.location,
|
|
3590
|
+
if (delete t.location, Gt(t) || Ft(t))
|
|
3581
3591
|
for (var r in t.options)
|
|
3582
|
-
delete t.options[r].location,
|
|
3592
|
+
delete t.options[r].location, We(t.options[r].value);
|
|
3583
3593
|
else
|
|
3584
|
-
|
|
3594
|
+
Rt(t) && kt(t.style) || (Dt(t) || Ut(t)) && Fe(t.style) ? delete t.style.location : jt(t) && We(t.children);
|
|
3585
3595
|
});
|
|
3586
3596
|
}
|
|
3587
|
-
function
|
|
3588
|
-
t === void 0 && (t = {}), t =
|
|
3589
|
-
var r = new
|
|
3597
|
+
function jn(e, t) {
|
|
3598
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3599
|
+
var r = new Dn(e, t).parse();
|
|
3590
3600
|
if (r.err) {
|
|
3591
3601
|
var n = SyntaxError(b[r.err.kind]);
|
|
3592
3602
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3593
3603
|
}
|
|
3594
|
-
return t?.captureLocation ||
|
|
3604
|
+
return t?.captureLocation || We(r.val), r.val;
|
|
3595
3605
|
}
|
|
3596
|
-
var
|
|
3606
|
+
var X;
|
|
3597
3607
|
(function(e) {
|
|
3598
3608
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3599
|
-
})(
|
|
3600
|
-
var
|
|
3609
|
+
})(X || (X = {}));
|
|
3610
|
+
var Ee = (
|
|
3601
3611
|
/** @class */
|
|
3602
3612
|
function(e) {
|
|
3603
|
-
|
|
3613
|
+
ve(t, e);
|
|
3604
3614
|
function t(r, n, i) {
|
|
3605
3615
|
var o = e.call(this, r) || this;
|
|
3606
3616
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3609,155 +3619,155 @@ var xe = (
|
|
|
3609
3619
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3610
3620
|
}, t;
|
|
3611
3621
|
}(Error)
|
|
3612
|
-
),
|
|
3622
|
+
), gt = (
|
|
3613
3623
|
/** @class */
|
|
3614
3624
|
function(e) {
|
|
3615
|
-
|
|
3625
|
+
ve(t, e);
|
|
3616
3626
|
function t(r, n, i, o) {
|
|
3617
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3627
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3618
3628
|
}
|
|
3619
3629
|
return t;
|
|
3620
|
-
}(
|
|
3621
|
-
),
|
|
3630
|
+
}(Ee)
|
|
3631
|
+
), kn = (
|
|
3622
3632
|
/** @class */
|
|
3623
3633
|
function(e) {
|
|
3624
|
-
|
|
3634
|
+
ve(t, e);
|
|
3625
3635
|
function t(r, n, i) {
|
|
3626
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3636
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3627
3637
|
}
|
|
3628
3638
|
return t;
|
|
3629
|
-
}(
|
|
3630
|
-
),
|
|
3639
|
+
}(Ee)
|
|
3640
|
+
), Vn = (
|
|
3631
3641
|
/** @class */
|
|
3632
3642
|
function(e) {
|
|
3633
|
-
|
|
3643
|
+
ve(t, e);
|
|
3634
3644
|
function t(r, n) {
|
|
3635
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3645
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3636
3646
|
}
|
|
3637
3647
|
return t;
|
|
3638
|
-
}(
|
|
3639
|
-
),
|
|
3648
|
+
}(Ee)
|
|
3649
|
+
), A;
|
|
3640
3650
|
(function(e) {
|
|
3641
3651
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3642
|
-
})(
|
|
3643
|
-
function
|
|
3652
|
+
})(A || (A = {}));
|
|
3653
|
+
function Xn(e) {
|
|
3644
3654
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3645
3655
|
var n = t[t.length - 1];
|
|
3646
|
-
return !n || n.type !==
|
|
3656
|
+
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3647
3657
|
}, []);
|
|
3648
3658
|
}
|
|
3649
|
-
function
|
|
3659
|
+
function Wn(e) {
|
|
3650
3660
|
return typeof e == "function";
|
|
3651
3661
|
}
|
|
3652
|
-
function
|
|
3653
|
-
if (e.length === 1 &&
|
|
3662
|
+
function ce(e, t, r, n, i, o, s) {
|
|
3663
|
+
if (e.length === 1 && lt(e[0]))
|
|
3654
3664
|
return [
|
|
3655
3665
|
{
|
|
3656
|
-
type:
|
|
3666
|
+
type: A.literal,
|
|
3657
3667
|
value: e[0].value
|
|
3658
3668
|
}
|
|
3659
3669
|
];
|
|
3660
3670
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3661
3671
|
var l = u[h];
|
|
3662
|
-
if (
|
|
3672
|
+
if (lt(l)) {
|
|
3663
3673
|
a.push({
|
|
3664
|
-
type:
|
|
3674
|
+
type: A.literal,
|
|
3665
3675
|
value: l.value
|
|
3666
3676
|
});
|
|
3667
3677
|
continue;
|
|
3668
3678
|
}
|
|
3669
|
-
if (
|
|
3679
|
+
if (mn(l)) {
|
|
3670
3680
|
typeof o == "number" && a.push({
|
|
3671
|
-
type:
|
|
3681
|
+
type: A.literal,
|
|
3672
3682
|
value: r.getNumberFormat(t).format(o)
|
|
3673
3683
|
});
|
|
3674
3684
|
continue;
|
|
3675
3685
|
}
|
|
3676
3686
|
var c = l.value;
|
|
3677
3687
|
if (!(i && c in i))
|
|
3678
|
-
throw new
|
|
3688
|
+
throw new Vn(c, s);
|
|
3679
3689
|
var f = i[c];
|
|
3680
|
-
if (
|
|
3690
|
+
if (pn(l)) {
|
|
3681
3691
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3682
|
-
type: typeof f == "string" ?
|
|
3692
|
+
type: typeof f == "string" ? A.literal : A.object,
|
|
3683
3693
|
value: f
|
|
3684
3694
|
});
|
|
3685
3695
|
continue;
|
|
3686
3696
|
}
|
|
3687
|
-
if (
|
|
3688
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3697
|
+
if (Dt(l)) {
|
|
3698
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
|
|
3689
3699
|
a.push({
|
|
3690
|
-
type:
|
|
3700
|
+
type: A.literal,
|
|
3691
3701
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3692
3702
|
});
|
|
3693
3703
|
continue;
|
|
3694
3704
|
}
|
|
3695
|
-
if (
|
|
3696
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3705
|
+
if (Ut(l)) {
|
|
3706
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3697
3707
|
a.push({
|
|
3698
|
-
type:
|
|
3708
|
+
type: A.literal,
|
|
3699
3709
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3700
3710
|
});
|
|
3701
3711
|
continue;
|
|
3702
3712
|
}
|
|
3703
|
-
if (
|
|
3704
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3713
|
+
if (Rt(l)) {
|
|
3714
|
+
var p = typeof l.style == "string" ? n.number[l.style] : kt(l.style) ? l.style.parsedOptions : void 0;
|
|
3705
3715
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3706
|
-
type:
|
|
3716
|
+
type: A.literal,
|
|
3707
3717
|
value: r.getNumberFormat(t, p).format(f)
|
|
3708
3718
|
});
|
|
3709
3719
|
continue;
|
|
3710
3720
|
}
|
|
3711
|
-
if (
|
|
3712
|
-
var
|
|
3713
|
-
if (!
|
|
3714
|
-
throw new
|
|
3715
|
-
var
|
|
3716
|
-
return
|
|
3721
|
+
if (jt(l)) {
|
|
3722
|
+
var d = l.children, m = l.value, H = i[m];
|
|
3723
|
+
if (!Wn(H))
|
|
3724
|
+
throw new kn(m, "function", s);
|
|
3725
|
+
var y = ce(d, t, r, n, i, o), v = H(y.map(function(w) {
|
|
3726
|
+
return w.value;
|
|
3717
3727
|
}));
|
|
3718
|
-
Array.isArray(
|
|
3728
|
+
Array.isArray(v) || (v = [v]), a.push.apply(a, v.map(function(w) {
|
|
3719
3729
|
return {
|
|
3720
|
-
type: typeof
|
|
3721
|
-
value:
|
|
3730
|
+
type: typeof w == "string" ? A.literal : A.object,
|
|
3731
|
+
value: w
|
|
3722
3732
|
};
|
|
3723
3733
|
}));
|
|
3724
3734
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var
|
|
3727
|
-
if (!
|
|
3728
|
-
throw new
|
|
3729
|
-
a.push.apply(a,
|
|
3735
|
+
if (Gt(l)) {
|
|
3736
|
+
var B = l.options[f] || l.options.other;
|
|
3737
|
+
if (!B)
|
|
3738
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3739
|
+
a.push.apply(a, ce(B.value, t, r, n, i));
|
|
3730
3740
|
continue;
|
|
3731
3741
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var
|
|
3734
|
-
if (!
|
|
3742
|
+
if (Ft(l)) {
|
|
3743
|
+
var B = l.options["=".concat(f)];
|
|
3744
|
+
if (!B) {
|
|
3735
3745
|
if (!Intl.PluralRules)
|
|
3736
|
-
throw new
|
|
3746
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3737
3747
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3738
|
-
`,
|
|
3739
|
-
var
|
|
3740
|
-
|
|
3748
|
+
`, X.MISSING_INTL_API, s);
|
|
3749
|
+
var S = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3750
|
+
B = l.options[S] || l.options.other;
|
|
3741
3751
|
}
|
|
3742
|
-
if (!
|
|
3743
|
-
throw new
|
|
3744
|
-
a.push.apply(a,
|
|
3752
|
+
if (!B)
|
|
3753
|
+
throw new gt(l.value, f, Object.keys(l.options), s);
|
|
3754
|
+
a.push.apply(a, ce(B.value, t, r, n, i, f - (l.offset || 0)));
|
|
3745
3755
|
continue;
|
|
3746
3756
|
}
|
|
3747
3757
|
}
|
|
3748
|
-
return
|
|
3758
|
+
return Xn(a);
|
|
3749
3759
|
}
|
|
3750
|
-
function
|
|
3751
|
-
return t ?
|
|
3752
|
-
return r[n] =
|
|
3760
|
+
function zn(e, t) {
|
|
3761
|
+
return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3762
|
+
return r[n] = N(N({}, e[n]), t[n] || {}), r;
|
|
3753
3763
|
}, {})) : e;
|
|
3754
3764
|
}
|
|
3755
|
-
function
|
|
3765
|
+
function Zn(e, t) {
|
|
3756
3766
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3757
|
-
return r[n] =
|
|
3758
|
-
},
|
|
3767
|
+
return r[n] = zn(e[n], t[n]), r;
|
|
3768
|
+
}, N({}, e)) : e;
|
|
3759
3769
|
}
|
|
3760
|
-
function
|
|
3770
|
+
function Pe(e) {
|
|
3761
3771
|
return {
|
|
3762
3772
|
create: function() {
|
|
3763
3773
|
return {
|
|
@@ -3771,39 +3781,39 @@ function Ie(e) {
|
|
|
3771
3781
|
}
|
|
3772
3782
|
};
|
|
3773
3783
|
}
|
|
3774
|
-
function
|
|
3784
|
+
function Yn(e) {
|
|
3775
3785
|
return e === void 0 && (e = {
|
|
3776
3786
|
number: {},
|
|
3777
3787
|
dateTime: {},
|
|
3778
3788
|
pluralRules: {}
|
|
3779
3789
|
}), {
|
|
3780
|
-
getNumberFormat:
|
|
3790
|
+
getNumberFormat: Te(function() {
|
|
3781
3791
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3782
3792
|
r[n] = arguments[n];
|
|
3783
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3793
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3784
3794
|
}, {
|
|
3785
|
-
cache:
|
|
3786
|
-
strategy:
|
|
3795
|
+
cache: Pe(e.number),
|
|
3796
|
+
strategy: He.variadic
|
|
3787
3797
|
}),
|
|
3788
|
-
getDateTimeFormat:
|
|
3798
|
+
getDateTimeFormat: Te(function() {
|
|
3789
3799
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3790
3800
|
r[n] = arguments[n];
|
|
3791
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3801
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3792
3802
|
}, {
|
|
3793
|
-
cache:
|
|
3794
|
-
strategy:
|
|
3803
|
+
cache: Pe(e.dateTime),
|
|
3804
|
+
strategy: He.variadic
|
|
3795
3805
|
}),
|
|
3796
|
-
getPluralRules:
|
|
3806
|
+
getPluralRules: Te(function() {
|
|
3797
3807
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3798
3808
|
r[n] = arguments[n];
|
|
3799
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3809
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3800
3810
|
}, {
|
|
3801
|
-
cache:
|
|
3802
|
-
strategy:
|
|
3811
|
+
cache: Pe(e.pluralRules),
|
|
3812
|
+
strategy: He.variadic
|
|
3803
3813
|
})
|
|
3804
3814
|
};
|
|
3805
3815
|
}
|
|
3806
|
-
var
|
|
3816
|
+
var Qn = (
|
|
3807
3817
|
/** @class */
|
|
3808
3818
|
function() {
|
|
3809
3819
|
function e(t, r, n, i) {
|
|
@@ -3818,11 +3828,11 @@ var Jn = (
|
|
|
3818
3828
|
if (u.length === 1)
|
|
3819
3829
|
return u[0].value;
|
|
3820
3830
|
var l = u.reduce(function(c, f) {
|
|
3821
|
-
return !c.length || f.type !==
|
|
3831
|
+
return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3822
3832
|
}, []);
|
|
3823
3833
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3824
3834
|
}, this.formatToParts = function(h) {
|
|
3825
|
-
return
|
|
3835
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3826
3836
|
}, this.resolvedOptions = function() {
|
|
3827
3837
|
var h;
|
|
3828
3838
|
return {
|
|
@@ -3835,13 +3845,13 @@ var Jn = (
|
|
|
3835
3845
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3836
3846
|
var s = i || {};
|
|
3837
3847
|
s.formatters;
|
|
3838
|
-
var a =
|
|
3839
|
-
this.ast = e.__parse(t,
|
|
3848
|
+
var a = on(s, ["formatters"]);
|
|
3849
|
+
this.ast = e.__parse(t, N(N({}, a), { locale: this.resolvedLocale }));
|
|
3840
3850
|
} else
|
|
3841
3851
|
this.ast = t;
|
|
3842
3852
|
if (!Array.isArray(this.ast))
|
|
3843
3853
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3844
|
-
this.formats =
|
|
3854
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
|
|
3845
3855
|
}
|
|
3846
3856
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3847
3857
|
get: function() {
|
|
@@ -3854,7 +3864,7 @@ var Jn = (
|
|
|
3854
3864
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3855
3865
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3856
3866
|
}
|
|
3857
|
-
}, e.__parse =
|
|
3867
|
+
}, e.__parse = jn, e.formats = {
|
|
3858
3868
|
number: {
|
|
3859
3869
|
integer: {
|
|
3860
3870
|
maximumFractionDigits: 0
|
|
@@ -3915,7 +3925,7 @@ var Jn = (
|
|
|
3915
3925
|
}, e;
|
|
3916
3926
|
}()
|
|
3917
3927
|
);
|
|
3918
|
-
function
|
|
3928
|
+
function Jn(e, t) {
|
|
3919
3929
|
if (t == null)
|
|
3920
3930
|
return;
|
|
3921
3931
|
if (t in e)
|
|
@@ -3936,92 +3946,92 @@ function qn(e, t) {
|
|
|
3936
3946
|
n = void 0;
|
|
3937
3947
|
return n;
|
|
3938
3948
|
}
|
|
3939
|
-
const
|
|
3949
|
+
const L = {}, qn = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), Jt = (e, t) => {
|
|
3940
3950
|
if (t == null)
|
|
3941
3951
|
return;
|
|
3942
|
-
if (t in
|
|
3943
|
-
return
|
|
3944
|
-
const r =
|
|
3952
|
+
if (t in L && e in L[t])
|
|
3953
|
+
return L[t][e];
|
|
3954
|
+
const r = _e(t);
|
|
3945
3955
|
for (let n = 0; n < r.length; n++) {
|
|
3946
|
-
const i = r[n], o =
|
|
3956
|
+
const i = r[n], o = ei(i, e);
|
|
3947
3957
|
if (o)
|
|
3948
|
-
return
|
|
3958
|
+
return qn(e, t, o);
|
|
3949
3959
|
}
|
|
3950
3960
|
};
|
|
3951
|
-
let
|
|
3952
|
-
const
|
|
3953
|
-
function
|
|
3954
|
-
return
|
|
3961
|
+
let Je;
|
|
3962
|
+
const ie = ye({});
|
|
3963
|
+
function Kn(e) {
|
|
3964
|
+
return Je[e] || null;
|
|
3955
3965
|
}
|
|
3956
|
-
function
|
|
3957
|
-
return e in
|
|
3966
|
+
function qt(e) {
|
|
3967
|
+
return e in Je;
|
|
3958
3968
|
}
|
|
3959
|
-
function
|
|
3960
|
-
if (!
|
|
3969
|
+
function ei(e, t) {
|
|
3970
|
+
if (!qt(e))
|
|
3961
3971
|
return null;
|
|
3962
|
-
const r =
|
|
3963
|
-
return
|
|
3972
|
+
const r = Kn(e);
|
|
3973
|
+
return Jn(r, t);
|
|
3964
3974
|
}
|
|
3965
|
-
function
|
|
3975
|
+
function ti(e) {
|
|
3966
3976
|
if (e == null)
|
|
3967
3977
|
return;
|
|
3968
|
-
const t =
|
|
3978
|
+
const t = _e(e);
|
|
3969
3979
|
for (let r = 0; r < t.length; r++) {
|
|
3970
3980
|
const n = t[r];
|
|
3971
|
-
if (
|
|
3981
|
+
if (qt(n))
|
|
3972
3982
|
return n;
|
|
3973
3983
|
}
|
|
3974
3984
|
}
|
|
3975
|
-
function
|
|
3976
|
-
delete
|
|
3985
|
+
function Kt(e, ...t) {
|
|
3986
|
+
delete L[e], ie.update((r) => (r[e] = nn.all([r[e] || {}, ...t]), r));
|
|
3977
3987
|
}
|
|
3978
|
-
|
|
3979
|
-
[
|
|
3988
|
+
z(
|
|
3989
|
+
[ie],
|
|
3980
3990
|
([e]) => Object.keys(e)
|
|
3981
3991
|
);
|
|
3982
|
-
|
|
3983
|
-
const
|
|
3984
|
-
function
|
|
3985
|
-
|
|
3992
|
+
ie.subscribe((e) => Je = e);
|
|
3993
|
+
const fe = {};
|
|
3994
|
+
function ri(e, t) {
|
|
3995
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3986
3996
|
}
|
|
3987
|
-
function
|
|
3988
|
-
return
|
|
3997
|
+
function er(e) {
|
|
3998
|
+
return fe[e];
|
|
3989
3999
|
}
|
|
3990
|
-
function
|
|
3991
|
-
return
|
|
3992
|
-
const r =
|
|
4000
|
+
function ni(e) {
|
|
4001
|
+
return _e(e).map((t) => {
|
|
4002
|
+
const r = er(t);
|
|
3993
4003
|
return [t, r ? [...r] : []];
|
|
3994
4004
|
}).filter(([, t]) => t.length > 0);
|
|
3995
4005
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return e == null ? !1 :
|
|
4006
|
+
function ze(e) {
|
|
4007
|
+
return e == null ? !1 : _e(e).some(
|
|
3998
4008
|
(t) => {
|
|
3999
4009
|
var r;
|
|
4000
|
-
return (r =
|
|
4010
|
+
return (r = er(t)) == null ? void 0 : r.size;
|
|
4001
4011
|
}
|
|
4002
4012
|
);
|
|
4003
4013
|
}
|
|
4004
|
-
function
|
|
4014
|
+
function ii(e, t) {
|
|
4005
4015
|
return Promise.all(
|
|
4006
|
-
t.map((n) => (
|
|
4007
|
-
).then((n) =>
|
|
4008
|
-
}
|
|
4009
|
-
const
|
|
4010
|
-
function
|
|
4011
|
-
if (!
|
|
4012
|
-
return e in
|
|
4013
|
-
const t =
|
|
4014
|
-
return
|
|
4016
|
+
t.map((n) => (ri(e, n), n().then((i) => i.default || i)))
|
|
4017
|
+
).then((n) => Kt(e, ...n));
|
|
4018
|
+
}
|
|
4019
|
+
const Q = {};
|
|
4020
|
+
function tr(e) {
|
|
4021
|
+
if (!ze(e))
|
|
4022
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
4023
|
+
const t = ni(e);
|
|
4024
|
+
return Q[e] = Promise.all(
|
|
4015
4025
|
t.map(
|
|
4016
|
-
([r, n]) =>
|
|
4026
|
+
([r, n]) => ii(r, n)
|
|
4017
4027
|
)
|
|
4018
4028
|
).then(() => {
|
|
4019
|
-
if (
|
|
4020
|
-
return
|
|
4021
|
-
delete
|
|
4022
|
-
}),
|
|
4029
|
+
if (ze(e))
|
|
4030
|
+
return tr(e);
|
|
4031
|
+
delete Q[e];
|
|
4032
|
+
}), Q[e];
|
|
4023
4033
|
}
|
|
4024
|
-
const
|
|
4034
|
+
const oi = {
|
|
4025
4035
|
number: {
|
|
4026
4036
|
scientific: { notation: "scientific" },
|
|
4027
4037
|
engineering: { notation: "engineering" },
|
|
@@ -4050,150 +4060,150 @@ const si = {
|
|
|
4050
4060
|
timeZoneName: "short"
|
|
4051
4061
|
}
|
|
4052
4062
|
}
|
|
4053
|
-
},
|
|
4063
|
+
}, si = {
|
|
4054
4064
|
fallbackLocale: null,
|
|
4055
4065
|
loadingDelay: 200,
|
|
4056
|
-
formats:
|
|
4066
|
+
formats: oi,
|
|
4057
4067
|
warnOnMissingMessages: !0,
|
|
4058
4068
|
handleMissingMessage: void 0,
|
|
4059
4069
|
ignoreTag: !0
|
|
4060
|
-
},
|
|
4061
|
-
function
|
|
4062
|
-
return
|
|
4070
|
+
}, ai = si;
|
|
4071
|
+
function W() {
|
|
4072
|
+
return ai;
|
|
4063
4073
|
}
|
|
4064
|
-
const
|
|
4065
|
-
var
|
|
4074
|
+
const Oe = ye(!1);
|
|
4075
|
+
var ui = Object.defineProperty, hi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pi = (e, t) => {
|
|
4066
4076
|
for (var r in t || (t = {}))
|
|
4067
|
-
|
|
4068
|
-
if (
|
|
4069
|
-
for (var r of
|
|
4070
|
-
|
|
4077
|
+
ci.call(t, r) && vt(e, r, t[r]);
|
|
4078
|
+
if (yt)
|
|
4079
|
+
for (var r of yt(t))
|
|
4080
|
+
fi.call(t, r) && vt(e, r, t[r]);
|
|
4071
4081
|
return e;
|
|
4072
|
-
},
|
|
4073
|
-
let
|
|
4074
|
-
const
|
|
4075
|
-
function
|
|
4082
|
+
}, mi = (e, t) => hi(e, li(t));
|
|
4083
|
+
let Ze;
|
|
4084
|
+
const me = ye(null);
|
|
4085
|
+
function Et(e) {
|
|
4076
4086
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4077
4087
|
}
|
|
4078
|
-
function
|
|
4079
|
-
const r =
|
|
4080
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4088
|
+
function _e(e, t = W().fallbackLocale) {
|
|
4089
|
+
const r = Et(e);
|
|
4090
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4081
4091
|
}
|
|
4082
|
-
function
|
|
4083
|
-
return
|
|
4092
|
+
function R() {
|
|
4093
|
+
return Ze ?? void 0;
|
|
4084
4094
|
}
|
|
4085
|
-
|
|
4086
|
-
|
|
4095
|
+
me.subscribe((e) => {
|
|
4096
|
+
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4087
4097
|
});
|
|
4088
|
-
const
|
|
4089
|
-
if (e &&
|
|
4090
|
-
const { loadingDelay: t } =
|
|
4098
|
+
const bi = (e) => {
|
|
4099
|
+
if (e && ti(e) && ze(e)) {
|
|
4100
|
+
const { loadingDelay: t } = W();
|
|
4091
4101
|
let r;
|
|
4092
|
-
return typeof window < "u" &&
|
|
4093
|
-
() =>
|
|
4102
|
+
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4103
|
+
() => Oe.set(!0),
|
|
4094
4104
|
t
|
|
4095
|
-
) :
|
|
4096
|
-
|
|
4105
|
+
) : Oe.set(!0), tr(e).then(() => {
|
|
4106
|
+
me.set(e);
|
|
4097
4107
|
}).finally(() => {
|
|
4098
|
-
clearTimeout(r),
|
|
4108
|
+
clearTimeout(r), Oe.set(!1);
|
|
4099
4109
|
});
|
|
4100
4110
|
}
|
|
4101
|
-
return
|
|
4102
|
-
},
|
|
4103
|
-
set:
|
|
4104
|
-
}),
|
|
4111
|
+
return me.set(e);
|
|
4112
|
+
}, Z = mi(pi({}, me), {
|
|
4113
|
+
set: bi
|
|
4114
|
+
}), xe = (e) => {
|
|
4105
4115
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4106
4116
|
return (n) => {
|
|
4107
4117
|
const i = JSON.stringify(n);
|
|
4108
4118
|
return i in t ? t[i] : t[i] = e(n);
|
|
4109
4119
|
};
|
|
4110
4120
|
};
|
|
4111
|
-
var
|
|
4121
|
+
var di = Object.defineProperty, be = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4112
4122
|
for (var r in t || (t = {}))
|
|
4113
|
-
|
|
4114
|
-
if (
|
|
4115
|
-
for (var r of
|
|
4116
|
-
|
|
4123
|
+
rr.call(t, r) && _t(e, r, t[r]);
|
|
4124
|
+
if (be)
|
|
4125
|
+
for (var r of be(t))
|
|
4126
|
+
nr.call(t, r) && _t(e, r, t[r]);
|
|
4117
4127
|
return e;
|
|
4118
|
-
},
|
|
4128
|
+
}, Y = (e, t) => {
|
|
4119
4129
|
var r = {};
|
|
4120
4130
|
for (var n in e)
|
|
4121
|
-
|
|
4122
|
-
if (e != null &&
|
|
4123
|
-
for (var n of
|
|
4124
|
-
t.indexOf(n) < 0 &&
|
|
4131
|
+
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4132
|
+
if (e != null && be)
|
|
4133
|
+
for (var n of be(e))
|
|
4134
|
+
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
4125
4135
|
return r;
|
|
4126
4136
|
};
|
|
4127
|
-
const
|
|
4128
|
-
const { formats: r } =
|
|
4137
|
+
const te = (e, t) => {
|
|
4138
|
+
const { formats: r } = W();
|
|
4129
4139
|
if (e in r && t in r[e])
|
|
4130
4140
|
return r[e][t];
|
|
4131
4141
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4132
|
-
},
|
|
4142
|
+
}, gi = xe(
|
|
4133
4143
|
(e) => {
|
|
4134
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4144
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4135
4145
|
if (r == null)
|
|
4136
4146
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4137
|
-
return n && (i =
|
|
4147
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4138
4148
|
}
|
|
4139
|
-
),
|
|
4149
|
+
), yi = xe(
|
|
4140
4150
|
(e) => {
|
|
4141
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4151
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4142
4152
|
if (r == null)
|
|
4143
4153
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4144
|
-
return n ? i =
|
|
4154
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4145
4155
|
}
|
|
4146
|
-
),
|
|
4156
|
+
), vi = xe(
|
|
4147
4157
|
(e) => {
|
|
4148
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4158
|
+
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4149
4159
|
if (r == null)
|
|
4150
4160
|
throw new Error(
|
|
4151
4161
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4152
4162
|
);
|
|
4153
|
-
return n ? i =
|
|
4163
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4154
4164
|
}
|
|
4155
|
-
),
|
|
4165
|
+
), Ei = (e = {}) => {
|
|
4156
4166
|
var t = e, {
|
|
4157
|
-
locale: r =
|
|
4158
|
-
} = t, n =
|
|
4167
|
+
locale: r = R()
|
|
4168
|
+
} = t, n = Y(t, [
|
|
4159
4169
|
"locale"
|
|
4160
4170
|
]);
|
|
4161
|
-
return
|
|
4162
|
-
},
|
|
4171
|
+
return gi(qe({ locale: r }, n));
|
|
4172
|
+
}, _i = (e = {}) => {
|
|
4163
4173
|
var t = e, {
|
|
4164
|
-
locale: r =
|
|
4165
|
-
} = t, n =
|
|
4174
|
+
locale: r = R()
|
|
4175
|
+
} = t, n = Y(t, [
|
|
4166
4176
|
"locale"
|
|
4167
4177
|
]);
|
|
4168
|
-
return
|
|
4169
|
-
},
|
|
4178
|
+
return yi(qe({ locale: r }, n));
|
|
4179
|
+
}, xi = (e = {}) => {
|
|
4170
4180
|
var t = e, {
|
|
4171
|
-
locale: r =
|
|
4172
|
-
} = t, n =
|
|
4181
|
+
locale: r = R()
|
|
4182
|
+
} = t, n = Y(t, [
|
|
4173
4183
|
"locale"
|
|
4174
4184
|
]);
|
|
4175
|
-
return
|
|
4176
|
-
},
|
|
4185
|
+
return vi(qe({ locale: r }, n));
|
|
4186
|
+
}, Bi = xe(
|
|
4177
4187
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4178
|
-
(e, t =
|
|
4179
|
-
ignoreTag:
|
|
4188
|
+
(e, t = R()) => new Qn(e, t, W().formats, {
|
|
4189
|
+
ignoreTag: W().ignoreTag
|
|
4180
4190
|
})
|
|
4181
|
-
),
|
|
4191
|
+
), Si = (e, t = {}) => {
|
|
4182
4192
|
var r, n, i, o;
|
|
4183
4193
|
let s = t;
|
|
4184
4194
|
typeof e == "object" && (s = e, e = s.id);
|
|
4185
4195
|
const {
|
|
4186
4196
|
values: a,
|
|
4187
|
-
locale: h =
|
|
4197
|
+
locale: h = R(),
|
|
4188
4198
|
default: u
|
|
4189
4199
|
} = s;
|
|
4190
4200
|
if (h == null)
|
|
4191
4201
|
throw new Error(
|
|
4192
4202
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4193
4203
|
);
|
|
4194
|
-
let l =
|
|
4204
|
+
let l = Jt(e, h);
|
|
4195
4205
|
if (!l)
|
|
4196
|
-
l = (o = (i = (n = (r =
|
|
4206
|
+
l = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4197
4207
|
else if (typeof l != "string")
|
|
4198
4208
|
return console.warn(
|
|
4199
4209
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4202,7 +4212,7 @@ const oe = (e, t) => {
|
|
|
4202
4212
|
return l;
|
|
4203
4213
|
let c = l;
|
|
4204
4214
|
try {
|
|
4205
|
-
c =
|
|
4215
|
+
c = Bi(l, h).format(a);
|
|
4206
4216
|
} catch (f) {
|
|
4207
4217
|
f instanceof Error && console.warn(
|
|
4208
4218
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4210,21 +4220,21 @@ const oe = (e, t) => {
|
|
|
4210
4220
|
);
|
|
4211
4221
|
}
|
|
4212
4222
|
return c;
|
|
4213
|
-
}, wi = (e, t) =>
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
window.emWidgets = { topic:
|
|
4219
|
-
const
|
|
4223
|
+
}, wi = (e, t) => xi(t).format(e), Ti = (e, t) => _i(t).format(e), Hi = (e, t) => Ei(t).format(e), Ai = (e, t = R()) => Jt(e, t), Pi = z([Z, ie], () => Si);
|
|
4224
|
+
z([Z], () => wi);
|
|
4225
|
+
z([Z], () => Ti);
|
|
4226
|
+
z([Z], () => Hi);
|
|
4227
|
+
z([Z, ie], () => Ai);
|
|
4228
|
+
window.emWidgets = { topic: Gr };
|
|
4229
|
+
const Oi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4220
4230
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4221
|
-
function
|
|
4222
|
-
|
|
4231
|
+
function xt(e, t) {
|
|
4232
|
+
Kt(e, t);
|
|
4223
4233
|
}
|
|
4224
|
-
function
|
|
4225
|
-
|
|
4234
|
+
function Ii(e) {
|
|
4235
|
+
Z.set(e);
|
|
4226
4236
|
}
|
|
4227
|
-
const
|
|
4237
|
+
const Bt = {
|
|
4228
4238
|
en: {
|
|
4229
4239
|
titleBiometrics: "Biometrics Authentication",
|
|
4230
4240
|
descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
|
|
@@ -4303,13 +4313,13 @@ const St = {
|
|
|
4303
4313
|
btnDisableBiometrics: "Disable biometrics"
|
|
4304
4314
|
}
|
|
4305
4315
|
};
|
|
4306
|
-
function
|
|
4316
|
+
function Ni(e, t) {
|
|
4307
4317
|
if (e) {
|
|
4308
4318
|
const r = document.createElement("style");
|
|
4309
4319
|
r.innerHTML = t, e.appendChild(r);
|
|
4310
4320
|
}
|
|
4311
4321
|
}
|
|
4312
|
-
function
|
|
4322
|
+
function Mi(e, t) {
|
|
4313
4323
|
if (!e || !t)
|
|
4314
4324
|
return;
|
|
4315
4325
|
const r = new URL(t);
|
|
@@ -4320,7 +4330,7 @@ function Li(e, t) {
|
|
|
4320
4330
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4321
4331
|
});
|
|
4322
4332
|
}
|
|
4323
|
-
function
|
|
4333
|
+
function Li(e, t, r) {
|
|
4324
4334
|
if (window.emMessageBus) {
|
|
4325
4335
|
const n = document.createElement("style");
|
|
4326
4336
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4328,223 +4338,283 @@ function Ci(e, t, r) {
|
|
|
4328
4338
|
});
|
|
4329
4339
|
}
|
|
4330
4340
|
}
|
|
4331
|
-
|
|
4332
|
-
|
|
4341
|
+
if (typeof window < "u") {
|
|
4342
|
+
let e = function(t) {
|
|
4343
|
+
return function(...r) {
|
|
4344
|
+
try {
|
|
4345
|
+
return t.apply(this, r);
|
|
4346
|
+
} catch (n) {
|
|
4347
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
4348
|
+
return !1;
|
|
4349
|
+
throw n;
|
|
4350
|
+
}
|
|
4351
|
+
};
|
|
4352
|
+
};
|
|
4353
|
+
customElements.define = e(customElements.define), import("./PlayerAccountBiometricsAction-Ded-VHu8.js").then(({ default: t }) => {
|
|
4354
|
+
!customElements.get("player-account-biometrics-action") && customElements.define("player-account-biometrics-action", t.element);
|
|
4355
|
+
});
|
|
4333
4356
|
}
|
|
4334
|
-
function
|
|
4357
|
+
function Ci(e) {
|
|
4358
|
+
sr(e, "svelte-1fepl4m", ".BiometricsWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BiometricsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.BiometricsDescription.BiometricsDescriptionMobile{font-size:12px;line-height:18px}.BiometricsActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}");
|
|
4359
|
+
}
|
|
4360
|
+
function $i(e) {
|
|
4335
4361
|
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4336
4362
|
/*$_*/
|
|
4337
|
-
e[
|
|
4338
|
-
), f, p,
|
|
4363
|
+
e[6]("titleBiometrics") + ""
|
|
4364
|
+
), f, p, d;
|
|
4339
4365
|
return {
|
|
4340
4366
|
c() {
|
|
4341
|
-
t =
|
|
4367
|
+
t = P("div"), r = D("svg"), n = D("defs"), i = D("style"), o = $(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = D("g"), a = D("g"), h = D("path"), u = J(), l = P("h2"), f = $(c), T(h, "class", "aaa"), T(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), T(h, "transform", "translate(15 15) rotate(180)"), T(a, "transform", "translate(20 158)"), T(s, "transform", "translate(-20 -158)"), T(r, "xmlns", "http://www.w3.org/2000/svg"), T(r, "width", "15"), T(r, "height", "15"), T(r, "viewBox", "0 0 15 15"), T(l, "class", "BiometricsTitleMobile"), T(l, "part", "BiometricsTitleMobile"), T(t, "class", "MenuReturnButton"), T(t, "part", "MenuReturnButton");
|
|
4342
4368
|
},
|
|
4343
|
-
m(m,
|
|
4344
|
-
|
|
4369
|
+
m(m, H) {
|
|
4370
|
+
Qe(m, t, H), E(t, r), E(r, n), E(n, i), E(i, o), E(r, s), E(s, a), E(a, h), E(t, u), E(t, l), E(l, f), p || (d = hr(
|
|
4345
4371
|
t,
|
|
4346
4372
|
"click",
|
|
4347
4373
|
/*click_handler*/
|
|
4348
|
-
e[
|
|
4374
|
+
e[9]
|
|
4349
4375
|
), p = !0);
|
|
4350
4376
|
},
|
|
4351
|
-
p(m,
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
m[
|
|
4377
|
+
p(m, H) {
|
|
4378
|
+
H & /*$_*/
|
|
4379
|
+
64 && c !== (c = /*$_*/
|
|
4380
|
+
m[6]("titleBiometrics") + "") && ue(f, c);
|
|
4355
4381
|
},
|
|
4356
4382
|
d(m) {
|
|
4357
|
-
m &&
|
|
4383
|
+
m && de(t), p = !1, d();
|
|
4358
4384
|
}
|
|
4359
4385
|
};
|
|
4360
4386
|
}
|
|
4361
|
-
function
|
|
4387
|
+
function Ri(e) {
|
|
4362
4388
|
let t, r, n, i, o = (
|
|
4363
4389
|
/*$_*/
|
|
4364
|
-
e[
|
|
4390
|
+
e[6]("titleBiometrics") + ""
|
|
4365
4391
|
), s, a, h, u, l = (
|
|
4366
4392
|
/*$_*/
|
|
4367
|
-
e[
|
|
4368
|
-
), c, f, p,
|
|
4393
|
+
e[6]("descriptionParagraph1") + ""
|
|
4394
|
+
), c, f, p, d = (
|
|
4369
4395
|
/*$_*/
|
|
4370
|
-
e[
|
|
4371
|
-
), m,
|
|
4372
|
-
/*biometricsenabled*/
|
|
4373
|
-
(e[0] === "true" ? (
|
|
4374
|
-
/*$_*/
|
|
4375
|
-
e[2]("btnDisableBiometrics")
|
|
4376
|
-
) : (
|
|
4377
|
-
/*$_*/
|
|
4378
|
-
e[2]("btnEnableBiometrics")
|
|
4379
|
-
)) + ""
|
|
4380
|
-
), y, S, N, M = (
|
|
4396
|
+
e[6]("descriptionParagraph2") + ""
|
|
4397
|
+
), m, H, y, v, B = (
|
|
4381
4398
|
/*isMobile*/
|
|
4382
|
-
e[
|
|
4399
|
+
e[7] && $i(e)
|
|
4383
4400
|
);
|
|
4384
4401
|
return {
|
|
4385
4402
|
c() {
|
|
4386
|
-
t =
|
|
4387
|
-
(e[
|
|
4388
|
-
(e[
|
|
4389
|
-
|
|
4390
|
-
|
|
4403
|
+
t = P("div"), r = P("div"), B && B.c(), n = J(), i = P("h2"), s = $(o), a = J(), h = P("div"), u = P("p"), c = $(l), f = J(), p = P("p"), m = $(d), H = J(), y = P("div"), v = P("player-account-biometrics-action"), T(i, "class", "BiometricsTitle " + /*isMobile*/
|
|
4404
|
+
(e[7] ? "BiometricsTitleNone" : "")), T(h, "class", "BiometricsDescription " + /*isMobile*/
|
|
4405
|
+
(e[7] ? "BiometricsDescriptionMobile" : "")), I(
|
|
4406
|
+
v,
|
|
4407
|
+
"lang",
|
|
4408
|
+
/*lang*/
|
|
4409
|
+
e[0]
|
|
4410
|
+
), I(
|
|
4411
|
+
v,
|
|
4412
|
+
"translationurl",
|
|
4413
|
+
/*translationurl*/
|
|
4414
|
+
e[4]
|
|
4415
|
+
), I(
|
|
4416
|
+
v,
|
|
4417
|
+
"clientstyling",
|
|
4418
|
+
/*clientstyling*/
|
|
4419
|
+
e[1]
|
|
4420
|
+
), I(
|
|
4421
|
+
v,
|
|
4422
|
+
"clientstylingurl",
|
|
4423
|
+
/*clientstylingurl*/
|
|
4424
|
+
e[2]
|
|
4425
|
+
), I(
|
|
4426
|
+
v,
|
|
4427
|
+
"mbsource",
|
|
4428
|
+
/*mbsource*/
|
|
4429
|
+
e[3]
|
|
4430
|
+
), T(y, "class", "BiometricsActionButtons " + /*isMobile*/
|
|
4431
|
+
(e[7] ? "BiometricsActionButtonsMobile" : "")), T(r, "class", "BiometricsWrapper " + /*isMobile*/
|
|
4432
|
+
(e[7] ? "BiometricsWrapperMobile" : ""));
|
|
4391
4433
|
},
|
|
4392
|
-
m(
|
|
4393
|
-
|
|
4394
|
-
H,
|
|
4395
|
-
"click",
|
|
4396
|
-
/*click_handler_1*/
|
|
4397
|
-
e[12]
|
|
4398
|
-
), S = !0);
|
|
4434
|
+
m(S, w) {
|
|
4435
|
+
Qe(S, t, w), E(t, r), B && B.m(r, null), E(r, n), E(r, i), E(i, s), E(r, a), E(r, h), E(h, u), E(u, c), E(h, f), E(h, p), E(p, m), E(r, H), E(r, y), E(y, v), e[10](t);
|
|
4399
4436
|
},
|
|
4400
|
-
p(
|
|
4437
|
+
p(S, [w]) {
|
|
4401
4438
|
/*isMobile*/
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4439
|
+
S[7] && B.p(S, w), w & /*$_*/
|
|
4440
|
+
64 && o !== (o = /*$_*/
|
|
4441
|
+
S[6]("titleBiometrics") + "") && ue(s, o), w & /*$_*/
|
|
4442
|
+
64 && l !== (l = /*$_*/
|
|
4443
|
+
S[6]("descriptionParagraph1") + "") && ue(c, l), w & /*$_*/
|
|
4444
|
+
64 && d !== (d = /*$_*/
|
|
4445
|
+
S[6]("descriptionParagraph2") + "") && ue(m, d), w & /*lang*/
|
|
4446
|
+
1 && I(
|
|
4447
|
+
v,
|
|
4448
|
+
"lang",
|
|
4449
|
+
/*lang*/
|
|
4450
|
+
S[0]
|
|
4451
|
+
), w & /*translationurl*/
|
|
4452
|
+
16 && I(
|
|
4453
|
+
v,
|
|
4454
|
+
"translationurl",
|
|
4455
|
+
/*translationurl*/
|
|
4456
|
+
S[4]
|
|
4457
|
+
), w & /*clientstyling*/
|
|
4458
|
+
2 && I(
|
|
4459
|
+
v,
|
|
4460
|
+
"clientstyling",
|
|
4461
|
+
/*clientstyling*/
|
|
4462
|
+
S[1]
|
|
4463
|
+
), w & /*clientstylingurl*/
|
|
4464
|
+
4 && I(
|
|
4465
|
+
v,
|
|
4466
|
+
"clientstylingurl",
|
|
4467
|
+
/*clientstylingurl*/
|
|
4468
|
+
S[2]
|
|
4469
|
+
), w & /*mbsource*/
|
|
4470
|
+
8 && I(
|
|
4471
|
+
v,
|
|
4472
|
+
"mbsource",
|
|
4473
|
+
/*mbsource*/
|
|
4474
|
+
S[3]
|
|
4475
|
+
);
|
|
4417
4476
|
},
|
|
4418
|
-
i:
|
|
4419
|
-
o:
|
|
4420
|
-
d(
|
|
4421
|
-
|
|
4477
|
+
i: O,
|
|
4478
|
+
o: O,
|
|
4479
|
+
d(S) {
|
|
4480
|
+
S && de(t), B && B.d(), e[10](null);
|
|
4422
4481
|
}
|
|
4423
4482
|
};
|
|
4424
4483
|
}
|
|
4425
|
-
function
|
|
4484
|
+
function Di(e, t, r) {
|
|
4426
4485
|
let n;
|
|
4427
|
-
|
|
4428
|
-
let {
|
|
4429
|
-
const
|
|
4430
|
-
fetch(
|
|
4431
|
-
Object.keys(
|
|
4432
|
-
|
|
4486
|
+
or(e, Pi, (y) => r(6, n = y));
|
|
4487
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: h = "" } = t, u, l = window.navigator.userAgent, c = Oi(l) !== "PC";
|
|
4488
|
+
const f = () => {
|
|
4489
|
+
fetch(h).then((v) => v.json()).then((v) => {
|
|
4490
|
+
Object.keys(v).forEach((B) => {
|
|
4491
|
+
xt(B, v[B]);
|
|
4433
4492
|
});
|
|
4434
|
-
}).catch((
|
|
4435
|
-
console.log(
|
|
4493
|
+
}).catch((v) => {
|
|
4494
|
+
console.log(v);
|
|
4436
4495
|
});
|
|
4437
4496
|
};
|
|
4438
|
-
Object.keys(
|
|
4439
|
-
|
|
4497
|
+
Object.keys(Bt).forEach((y) => {
|
|
4498
|
+
xt(y, Bt[y]);
|
|
4440
4499
|
});
|
|
4441
|
-
const
|
|
4442
|
-
|
|
4443
|
-
},
|
|
4500
|
+
const p = () => {
|
|
4501
|
+
Ii(i);
|
|
4502
|
+
}, d = () => {
|
|
4444
4503
|
window.postMessage(
|
|
4445
4504
|
{
|
|
4446
4505
|
type: "PlayerAccountMenuActive",
|
|
4447
|
-
isMobile:
|
|
4506
|
+
isMobile: c
|
|
4448
4507
|
},
|
|
4449
4508
|
window.location.href
|
|
4450
4509
|
);
|
|
4451
|
-
}, x = () => {
|
|
4452
|
-
i === "true" ? r(0, i = "false") : i === "false" && r(0, i = "true"), window.postMessage({
|
|
4453
|
-
type: "ToggleBiometrics",
|
|
4454
|
-
data: i
|
|
4455
|
-
});
|
|
4456
4510
|
};
|
|
4457
|
-
|
|
4511
|
+
pr(() => () => {
|
|
4458
4512
|
});
|
|
4459
|
-
const
|
|
4460
|
-
function
|
|
4461
|
-
|
|
4462
|
-
|
|
4513
|
+
const m = () => d();
|
|
4514
|
+
function H(y) {
|
|
4515
|
+
Ie[y ? "unshift" : "push"](() => {
|
|
4516
|
+
u = y, r(5, u);
|
|
4463
4517
|
});
|
|
4464
4518
|
}
|
|
4465
4519
|
return e.$$set = (y) => {
|
|
4466
|
-
"
|
|
4520
|
+
"lang" in y && r(0, i = y.lang), "clientstyling" in y && r(1, o = y.clientstyling), "clientstylingurl" in y && r(2, s = y.clientstylingurl), "mbsource" in y && r(3, a = y.mbsource), "translationurl" in y && r(4, h = y.translationurl);
|
|
4467
4521
|
}, e.$$.update = () => {
|
|
4468
4522
|
e.$$.dirty & /*lang*/
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4523
|
+
1 && i && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4524
|
+
34 && o && u && Ni(u, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4525
|
+
36 && s && u && Mi(u, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4526
|
+
40 && a && u && Li(u, `${a}.Style`), e.$$.dirty & /*translationurl*/
|
|
4527
|
+
16 && h && f();
|
|
4474
4528
|
}, [
|
|
4475
4529
|
i,
|
|
4476
|
-
l,
|
|
4477
|
-
n,
|
|
4478
|
-
f,
|
|
4479
|
-
m,
|
|
4480
|
-
x,
|
|
4481
4530
|
o,
|
|
4482
4531
|
s,
|
|
4483
4532
|
a,
|
|
4484
4533
|
h,
|
|
4485
4534
|
u,
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4535
|
+
n,
|
|
4536
|
+
c,
|
|
4537
|
+
d,
|
|
4538
|
+
m,
|
|
4539
|
+
H
|
|
4489
4540
|
];
|
|
4490
4541
|
}
|
|
4491
|
-
class
|
|
4542
|
+
class Ui extends wr {
|
|
4492
4543
|
constructor(t) {
|
|
4493
|
-
super(),
|
|
4544
|
+
super(), Br(
|
|
4494
4545
|
this,
|
|
4495
4546
|
t,
|
|
4496
|
-
Ui,
|
|
4497
4547
|
Di,
|
|
4548
|
+
Ri,
|
|
4498
4549
|
wt,
|
|
4499
4550
|
{
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
translationurl: 10
|
|
4551
|
+
lang: 0,
|
|
4552
|
+
clientstyling: 1,
|
|
4553
|
+
clientstylingurl: 2,
|
|
4554
|
+
mbsource: 3,
|
|
4555
|
+
translationurl: 4
|
|
4506
4556
|
},
|
|
4507
|
-
|
|
4557
|
+
Ci
|
|
4508
4558
|
);
|
|
4509
4559
|
}
|
|
4510
|
-
get biometricsenabled() {
|
|
4511
|
-
return this.$$.ctx[0];
|
|
4512
|
-
}
|
|
4513
|
-
set biometricsenabled(t) {
|
|
4514
|
-
this.$$set({ biometricsenabled: t }), $();
|
|
4515
|
-
}
|
|
4516
4560
|
get lang() {
|
|
4517
|
-
return this.$$.ctx[
|
|
4561
|
+
return this.$$.ctx[0];
|
|
4518
4562
|
}
|
|
4519
4563
|
set lang(t) {
|
|
4520
|
-
this.$$set({ lang: t }),
|
|
4564
|
+
this.$$set({ lang: t }), C();
|
|
4521
4565
|
}
|
|
4522
4566
|
get clientstyling() {
|
|
4523
|
-
return this.$$.ctx[
|
|
4567
|
+
return this.$$.ctx[1];
|
|
4524
4568
|
}
|
|
4525
4569
|
set clientstyling(t) {
|
|
4526
|
-
this.$$set({ clientstyling: t }),
|
|
4570
|
+
this.$$set({ clientstyling: t }), C();
|
|
4527
4571
|
}
|
|
4528
4572
|
get clientstylingurl() {
|
|
4529
|
-
return this.$$.ctx[
|
|
4573
|
+
return this.$$.ctx[2];
|
|
4530
4574
|
}
|
|
4531
4575
|
set clientstylingurl(t) {
|
|
4532
|
-
this.$$set({ clientstylingurl: t }),
|
|
4576
|
+
this.$$set({ clientstylingurl: t }), C();
|
|
4533
4577
|
}
|
|
4534
4578
|
get mbsource() {
|
|
4535
|
-
return this.$$.ctx[
|
|
4579
|
+
return this.$$.ctx[3];
|
|
4536
4580
|
}
|
|
4537
4581
|
set mbsource(t) {
|
|
4538
|
-
this.$$set({ mbsource: t }),
|
|
4582
|
+
this.$$set({ mbsource: t }), C();
|
|
4539
4583
|
}
|
|
4540
4584
|
get translationurl() {
|
|
4541
|
-
return this.$$.ctx[
|
|
4585
|
+
return this.$$.ctx[4];
|
|
4542
4586
|
}
|
|
4543
4587
|
set translationurl(t) {
|
|
4544
|
-
this.$$set({ translationurl: t }),
|
|
4588
|
+
this.$$set({ translationurl: t }), C();
|
|
4545
4589
|
}
|
|
4546
4590
|
}
|
|
4547
|
-
|
|
4591
|
+
Sr(Ui, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4548
4592
|
export {
|
|
4549
|
-
|
|
4593
|
+
Z as $,
|
|
4594
|
+
Ui as P,
|
|
4595
|
+
wr as S,
|
|
4596
|
+
Kt as a,
|
|
4597
|
+
sr as b,
|
|
4598
|
+
Sr as c,
|
|
4599
|
+
de as d,
|
|
4600
|
+
Qe as e,
|
|
4601
|
+
C as f,
|
|
4602
|
+
Gi as g,
|
|
4603
|
+
or as h,
|
|
4604
|
+
Br as i,
|
|
4605
|
+
P as j,
|
|
4606
|
+
Ie as k,
|
|
4607
|
+
ue as l,
|
|
4608
|
+
E as m,
|
|
4609
|
+
O as n,
|
|
4610
|
+
pr as o,
|
|
4611
|
+
hr as p,
|
|
4612
|
+
T as q,
|
|
4613
|
+
Fi as r,
|
|
4614
|
+
wt as s,
|
|
4615
|
+
$ as t,
|
|
4616
|
+
Pi as u,
|
|
4617
|
+
Ni as v,
|
|
4618
|
+
Mi as w,
|
|
4619
|
+
Li as x
|
|
4550
4620
|
};
|