@everymatrix/player-account-biometrics 1.55.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountBiometrics-BFnSVNSu.js → PlayerAccountBiometrics-CfKUs-Zn.js} +678 -618
- package/components/{PlayerAccountBiometrics-DS7oKWzQ.cjs → PlayerAccountBiometrics-DCou_eHK.cjs} +16 -3
- package/components/{PlayerAccountBiometrics-j3kXjzVq.js → PlayerAccountBiometrics-DXo_V1bD.js} +695 -635
- package/es2015/player-account-biometrics.cjs +1 -1
- package/es2015/player-account-biometrics.js +1 -1
- package/esnext/player-account-biometrics.js +1 -1
- package/package.json +1 -1
package/components/{PlayerAccountBiometrics-BFnSVNSu.js → PlayerAccountBiometrics-CfKUs-Zn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function I() {
|
|
2
2
|
}
|
|
3
3
|
function Bt(e) {
|
|
4
4
|
return e();
|
|
@@ -6,10 +6,10 @@ function Bt(e) {
|
|
|
6
6
|
function Ke() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ae(e) {
|
|
10
10
|
e.forEach(Bt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function St(e, t) {
|
|
@@ -22,7 +22,7 @@ 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 I;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -36,12 +36,13 @@ function E(e, t) {
|
|
|
36
36
|
function ar(e, t, r) {
|
|
37
37
|
const n = ur(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
39
|
+
const i = O("style");
|
|
40
40
|
i.id = t, i.textContent = r, hr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
function ur(e) {
|
|
44
|
-
if (!e)
|
|
44
|
+
if (!e)
|
|
45
|
+
return document;
|
|
45
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
47
|
return t && /** @type {ShadowRoot} */
|
|
47
48
|
t.host ? (
|
|
@@ -56,13 +57,13 @@ function hr(e, t) {
|
|
|
56
57
|
t
|
|
57
58
|
), t.sheet;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
+
function Ze(e, t, r) {
|
|
60
61
|
e.insertBefore(t, r || null);
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function ge(e) {
|
|
63
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function O(e) {
|
|
66
67
|
return document.createElement(e);
|
|
67
68
|
}
|
|
68
69
|
function F(e) {
|
|
@@ -74,7 +75,7 @@ function U(e) {
|
|
|
74
75
|
function te() {
|
|
75
76
|
return U(" ");
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function wt(e, t, r, n) {
|
|
78
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
79
80
|
}
|
|
80
81
|
function B(e, t, r) {
|
|
@@ -96,84 +97,93 @@ function cr(e) {
|
|
|
96
97
|
}
|
|
97
98
|
), t;
|
|
98
99
|
}
|
|
99
|
-
let
|
|
100
|
+
let ie;
|
|
100
101
|
function ne(e) {
|
|
101
|
-
|
|
102
|
+
ie = e;
|
|
102
103
|
}
|
|
103
|
-
|
|
104
|
+
function fr() {
|
|
105
|
+
if (!ie)
|
|
106
|
+
throw new Error("Function called outside component initialization");
|
|
107
|
+
return ie;
|
|
108
|
+
}
|
|
109
|
+
function mr(e) {
|
|
110
|
+
fr().$$.on_mount.push(e);
|
|
111
|
+
}
|
|
112
|
+
const V = [], Ie = [];
|
|
104
113
|
let X = [];
|
|
105
|
-
const et = [],
|
|
106
|
-
let
|
|
107
|
-
function
|
|
108
|
-
|
|
114
|
+
const et = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
115
|
+
let Ne = !1;
|
|
116
|
+
function br() {
|
|
117
|
+
Ne || (Ne = !0, pr.then($));
|
|
109
118
|
}
|
|
110
|
-
function
|
|
119
|
+
function Me(e) {
|
|
111
120
|
X.push(e);
|
|
112
121
|
}
|
|
113
|
-
const
|
|
122
|
+
const Be = /* @__PURE__ */ new Set();
|
|
114
123
|
let j = 0;
|
|
115
|
-
function
|
|
124
|
+
function $() {
|
|
116
125
|
if (j !== 0)
|
|
117
126
|
return;
|
|
118
|
-
const e =
|
|
127
|
+
const e = ie;
|
|
119
128
|
do {
|
|
120
129
|
try {
|
|
121
130
|
for (; j < V.length; ) {
|
|
122
131
|
const t = V[j];
|
|
123
|
-
j++, ne(t),
|
|
132
|
+
j++, ne(t), dr(t.$$);
|
|
124
133
|
}
|
|
125
134
|
} catch (t) {
|
|
126
135
|
throw V.length = 0, j = 0, t;
|
|
127
136
|
}
|
|
128
|
-
for (ne(null), V.length = 0, j = 0;
|
|
137
|
+
for (ne(null), V.length = 0, j = 0; Ie.length; )
|
|
138
|
+
Ie.pop()();
|
|
129
139
|
for (let t = 0; t < X.length; t += 1) {
|
|
130
140
|
const r = X[t];
|
|
131
|
-
|
|
141
|
+
Be.has(r) || (Be.add(r), r());
|
|
132
142
|
}
|
|
133
143
|
X.length = 0;
|
|
134
144
|
} while (V.length);
|
|
135
145
|
for (; et.length; )
|
|
136
146
|
et.pop()();
|
|
137
|
-
|
|
147
|
+
Ne = !1, Be.clear(), ne(e);
|
|
138
148
|
}
|
|
139
|
-
function
|
|
149
|
+
function dr(e) {
|
|
140
150
|
if (e.fragment !== null) {
|
|
141
|
-
e.update(),
|
|
151
|
+
e.update(), ae(e.before_update);
|
|
142
152
|
const t = e.dirty;
|
|
143
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
144
154
|
}
|
|
145
155
|
}
|
|
146
|
-
function
|
|
156
|
+
function gr(e) {
|
|
147
157
|
const t = [], r = [];
|
|
148
158
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
149
159
|
}
|
|
150
|
-
const
|
|
151
|
-
function
|
|
152
|
-
e && e.i && (
|
|
160
|
+
const yr = /* @__PURE__ */ new Set();
|
|
161
|
+
function vr(e, t) {
|
|
162
|
+
e && e.i && (yr.delete(e), e.i(t));
|
|
153
163
|
}
|
|
154
|
-
function
|
|
164
|
+
function Er(e, t, r) {
|
|
155
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
156
|
-
n && n.m(t, r),
|
|
157
|
-
const o = e.$$.on_mount.map(Bt).filter(
|
|
158
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
159
|
-
}), i.forEach(
|
|
166
|
+
n && n.m(t, r), Me(() => {
|
|
167
|
+
const o = e.$$.on_mount.map(Bt).filter(ze);
|
|
168
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
|
|
169
|
+
}), i.forEach(Me);
|
|
160
170
|
}
|
|
161
|
-
function
|
|
171
|
+
function _r(e, t) {
|
|
162
172
|
const r = e.$$;
|
|
163
|
-
r.fragment !== null && (
|
|
173
|
+
r.fragment !== null && (gr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
164
174
|
}
|
|
165
|
-
function
|
|
166
|
-
e.$$.dirty[0] === -1 && (V.push(e),
|
|
175
|
+
function xr(e, t) {
|
|
176
|
+
e.$$.dirty[0] === -1 && (V.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
167
177
|
}
|
|
168
|
-
function
|
|
169
|
-
const h =
|
|
178
|
+
function Br(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
|
+
const h = ie;
|
|
170
180
|
ne(e);
|
|
171
181
|
const u = e.$$ = {
|
|
172
182
|
fragment: null,
|
|
173
183
|
ctx: [],
|
|
174
184
|
// state
|
|
175
185
|
props: o,
|
|
176
|
-
update:
|
|
186
|
+
update: I,
|
|
177
187
|
not_equal: i,
|
|
178
188
|
bound: Ke(),
|
|
179
189
|
// lifecycle
|
|
@@ -191,21 +201,21 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
191
201
|
};
|
|
192
202
|
s && s(u.root);
|
|
193
203
|
let l = !1;
|
|
194
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...
|
|
195
|
-
const
|
|
196
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
197
|
-
}) : [], u.update(), l = !0,
|
|
204
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
205
|
+
const g = m.length ? m[0] : f;
|
|
206
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), l && xr(e, c)), f;
|
|
207
|
+
}) : [], u.update(), l = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
198
208
|
if (t.hydrate) {
|
|
199
209
|
const c = lr(t.target);
|
|
200
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
210
|
+
u.fragment && u.fragment.l(c), c.forEach(ge);
|
|
201
211
|
} else
|
|
202
212
|
u.fragment && u.fragment.c();
|
|
203
|
-
t.intro &&
|
|
213
|
+
t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), $();
|
|
204
214
|
}
|
|
205
215
|
ne(h);
|
|
206
216
|
}
|
|
207
|
-
let
|
|
208
|
-
typeof HTMLElement == "function" && (
|
|
217
|
+
let Ht;
|
|
218
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
209
219
|
/** The Svelte component constructor */
|
|
210
220
|
$$ctor;
|
|
211
221
|
/** Slots */
|
|
@@ -247,17 +257,17 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
247
257
|
let o;
|
|
248
258
|
return {
|
|
249
259
|
c: function() {
|
|
250
|
-
o =
|
|
260
|
+
o = O("slot"), i !== "default" && B(o, "name", i);
|
|
251
261
|
},
|
|
252
262
|
/**
|
|
253
263
|
* @param {HTMLElement} target
|
|
254
264
|
* @param {HTMLElement} [anchor]
|
|
255
265
|
*/
|
|
256
266
|
m: function(h, u) {
|
|
257
|
-
|
|
267
|
+
Ze(h, o, u);
|
|
258
268
|
},
|
|
259
269
|
d: function(h) {
|
|
260
|
-
h &&
|
|
270
|
+
h && ge(o);
|
|
261
271
|
}
|
|
262
272
|
};
|
|
263
273
|
};
|
|
@@ -269,7 +279,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
269
279
|
i in r && (t[i] = [e(i)]);
|
|
270
280
|
for (const i of this.attributes) {
|
|
271
281
|
const o = this.$$g_p(i.name);
|
|
272
|
-
o in this.$$d || (this.$$d[o] =
|
|
282
|
+
o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
|
|
273
283
|
}
|
|
274
284
|
for (const i in this.$$p_d)
|
|
275
285
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -287,7 +297,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
287
297
|
this.$$r = !0;
|
|
288
298
|
for (const i in this.$$p_d)
|
|
289
299
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
290
|
-
const o =
|
|
300
|
+
const o = ce(
|
|
291
301
|
i,
|
|
292
302
|
this.$$d[i],
|
|
293
303
|
this.$$p_d,
|
|
@@ -309,7 +319,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
309
319
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
310
320
|
// and setting attributes through setAttribute etc, this is helpful
|
|
311
321
|
attributeChangedCallback(e, t, r) {
|
|
312
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
322
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
313
323
|
}
|
|
314
324
|
disconnectedCallback() {
|
|
315
325
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -322,7 +332,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
322
332
|
) || e;
|
|
323
333
|
}
|
|
324
334
|
});
|
|
325
|
-
function
|
|
335
|
+
function ce(e, t, r, n) {
|
|
326
336
|
const i = r[e]?.type;
|
|
327
337
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
328
338
|
return t;
|
|
@@ -351,8 +361,8 @@ function le(e, t, r, n) {
|
|
|
351
361
|
return t;
|
|
352
362
|
}
|
|
353
363
|
}
|
|
354
|
-
function
|
|
355
|
-
let s = class extends
|
|
364
|
+
function Sr(e, t, r, n, i, o) {
|
|
365
|
+
let s = class extends Ht {
|
|
356
366
|
constructor() {
|
|
357
367
|
super(e, r, i), this.$$p_d = t;
|
|
358
368
|
}
|
|
@@ -368,7 +378,7 @@ function xr(e, t, r, n, i, o) {
|
|
|
368
378
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
369
379
|
},
|
|
370
380
|
set(h) {
|
|
371
|
-
h =
|
|
381
|
+
h = ce(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
372
382
|
}
|
|
373
383
|
});
|
|
374
384
|
}), n.forEach((a) => {
|
|
@@ -380,7 +390,7 @@ function xr(e, t, r, n, i, o) {
|
|
|
380
390
|
}), e.element = /** @type {any} */
|
|
381
391
|
s, s;
|
|
382
392
|
}
|
|
383
|
-
class
|
|
393
|
+
class Tr {
|
|
384
394
|
/**
|
|
385
395
|
* ### PRIVATE API
|
|
386
396
|
*
|
|
@@ -399,7 +409,7 @@ class Br {
|
|
|
399
409
|
$$set = void 0;
|
|
400
410
|
/** @returns {void} */
|
|
401
411
|
$destroy() {
|
|
402
|
-
|
|
412
|
+
_r(this, 1), this.$destroy = I;
|
|
403
413
|
}
|
|
404
414
|
/**
|
|
405
415
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -408,8 +418,8 @@ class Br {
|
|
|
408
418
|
* @returns {() => void}
|
|
409
419
|
*/
|
|
410
420
|
$on(t, r) {
|
|
411
|
-
if (!
|
|
412
|
-
return
|
|
421
|
+
if (!ze(r))
|
|
422
|
+
return I;
|
|
413
423
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
414
424
|
return n.push(r), () => {
|
|
415
425
|
const i = n.indexOf(r);
|
|
@@ -424,13 +434,28 @@ class Br {
|
|
|
424
434
|
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
425
435
|
}
|
|
426
436
|
}
|
|
427
|
-
const
|
|
428
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
437
|
+
const wr = "4";
|
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
439
|
+
/*! *****************************************************************************
|
|
440
|
+
Copyright (c) Microsoft Corporation.
|
|
441
|
+
|
|
442
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
443
|
+
purpose with or without fee is hereby granted.
|
|
444
|
+
|
|
445
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
446
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
447
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
448
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
449
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
450
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
451
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
452
|
+
***************************************************************************** */
|
|
429
453
|
var Ce = function(e, t) {
|
|
430
454
|
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
431
455
|
r.__proto__ = n;
|
|
432
456
|
} || function(r, n) {
|
|
433
|
-
for (var i in n)
|
|
457
|
+
for (var i in n)
|
|
458
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
434
459
|
}, Ce(e, t);
|
|
435
460
|
};
|
|
436
461
|
function L(e, t) {
|
|
@@ -442,56 +467,64 @@ function L(e, t) {
|
|
|
442
467
|
}
|
|
443
468
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
444
469
|
}
|
|
445
|
-
var
|
|
446
|
-
return
|
|
470
|
+
var y = function() {
|
|
471
|
+
return y = Object.assign || function(t) {
|
|
447
472
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
448
473
|
r = arguments[n];
|
|
449
|
-
for (var o in r)
|
|
474
|
+
for (var o in r)
|
|
475
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
450
476
|
}
|
|
451
477
|
return t;
|
|
452
|
-
},
|
|
478
|
+
}, y.apply(this, arguments);
|
|
453
479
|
};
|
|
454
|
-
function
|
|
480
|
+
function Hr(e, t) {
|
|
455
481
|
var r = {};
|
|
456
|
-
for (var n in e)
|
|
482
|
+
for (var n in e)
|
|
483
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
457
484
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
458
485
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
459
486
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
460
487
|
return r;
|
|
461
488
|
}
|
|
462
|
-
function
|
|
489
|
+
function Le(e) {
|
|
463
490
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
464
|
-
if (r)
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
491
|
+
if (r)
|
|
492
|
+
return r.call(e);
|
|
493
|
+
if (e && typeof e.length == "number")
|
|
494
|
+
return {
|
|
495
|
+
next: function() {
|
|
496
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
497
|
+
}
|
|
498
|
+
};
|
|
470
499
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
471
500
|
}
|
|
472
|
-
function
|
|
501
|
+
function $e(e, t) {
|
|
473
502
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
474
|
-
if (!r)
|
|
503
|
+
if (!r)
|
|
504
|
+
return e;
|
|
475
505
|
var n = r.call(e), i, o = [], s;
|
|
476
506
|
try {
|
|
477
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
507
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
508
|
+
o.push(i.value);
|
|
478
509
|
} catch (a) {
|
|
479
510
|
s = { error: a };
|
|
480
511
|
} finally {
|
|
481
512
|
try {
|
|
482
513
|
i && !i.done && (r = n.return) && r.call(n);
|
|
483
514
|
} finally {
|
|
484
|
-
if (s)
|
|
515
|
+
if (s)
|
|
516
|
+
throw s.error;
|
|
485
517
|
}
|
|
486
518
|
}
|
|
487
519
|
return o;
|
|
488
520
|
}
|
|
489
521
|
function W(e, t, r) {
|
|
490
|
-
if (r || arguments.length === 2)
|
|
491
|
-
(
|
|
492
|
-
|
|
522
|
+
if (r || arguments.length === 2)
|
|
523
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
524
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
525
|
+
return e.concat(o || t);
|
|
493
526
|
}
|
|
494
|
-
function
|
|
527
|
+
function C(e) {
|
|
495
528
|
return typeof e == "function";
|
|
496
529
|
}
|
|
497
530
|
function At(e) {
|
|
@@ -500,7 +533,7 @@ function At(e) {
|
|
|
500
533
|
}, r = e(t);
|
|
501
534
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
502
535
|
}
|
|
503
|
-
var
|
|
536
|
+
var Se = At(function(e) {
|
|
504
537
|
return function(r) {
|
|
505
538
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
506
539
|
` + r.map(function(n, i) {
|
|
@@ -509,13 +542,13 @@ var Be = At(function(e) {
|
|
|
509
542
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
510
543
|
};
|
|
511
544
|
});
|
|
512
|
-
function
|
|
545
|
+
function Re(e, t) {
|
|
513
546
|
if (e) {
|
|
514
547
|
var r = e.indexOf(t);
|
|
515
548
|
0 <= r && e.splice(r, 1);
|
|
516
549
|
}
|
|
517
550
|
}
|
|
518
|
-
var
|
|
551
|
+
var ye = function() {
|
|
519
552
|
function e(t) {
|
|
520
553
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
521
554
|
}
|
|
@@ -527,52 +560,54 @@ var ge = function() {
|
|
|
527
560
|
if (s)
|
|
528
561
|
if (this._parentage = null, Array.isArray(s))
|
|
529
562
|
try {
|
|
530
|
-
for (var a =
|
|
563
|
+
for (var a = Le(s), h = a.next(); !h.done; h = a.next()) {
|
|
531
564
|
var u = h.value;
|
|
532
565
|
u.remove(this);
|
|
533
566
|
}
|
|
534
|
-
} catch (
|
|
535
|
-
t = { error:
|
|
567
|
+
} catch (p) {
|
|
568
|
+
t = { error: p };
|
|
536
569
|
} finally {
|
|
537
570
|
try {
|
|
538
571
|
h && !h.done && (r = a.return) && r.call(a);
|
|
539
572
|
} finally {
|
|
540
|
-
if (t)
|
|
573
|
+
if (t)
|
|
574
|
+
throw t.error;
|
|
541
575
|
}
|
|
542
576
|
}
|
|
543
577
|
else
|
|
544
578
|
s.remove(this);
|
|
545
579
|
var l = this.initialTeardown;
|
|
546
|
-
if (
|
|
580
|
+
if (C(l))
|
|
547
581
|
try {
|
|
548
582
|
l();
|
|
549
|
-
} catch (
|
|
550
|
-
o =
|
|
583
|
+
} catch (p) {
|
|
584
|
+
o = p instanceof Se ? p.errors : [p];
|
|
551
585
|
}
|
|
552
586
|
var c = this._finalizers;
|
|
553
587
|
if (c) {
|
|
554
588
|
this._finalizers = null;
|
|
555
589
|
try {
|
|
556
|
-
for (var f =
|
|
557
|
-
var
|
|
590
|
+
for (var f = Le(c), m = f.next(); !m.done; m = f.next()) {
|
|
591
|
+
var g = m.value;
|
|
558
592
|
try {
|
|
559
|
-
tt(
|
|
560
|
-
} catch (
|
|
561
|
-
o = o ?? [],
|
|
593
|
+
tt(g);
|
|
594
|
+
} catch (p) {
|
|
595
|
+
o = o ?? [], p instanceof Se ? o = W(W([], $e(o)), $e(p.errors)) : o.push(p);
|
|
562
596
|
}
|
|
563
597
|
}
|
|
564
|
-
} catch (
|
|
565
|
-
n = { error:
|
|
598
|
+
} catch (p) {
|
|
599
|
+
n = { error: p };
|
|
566
600
|
} finally {
|
|
567
601
|
try {
|
|
568
|
-
|
|
602
|
+
m && !m.done && (i = f.return) && i.call(f);
|
|
569
603
|
} finally {
|
|
570
|
-
if (n)
|
|
604
|
+
if (n)
|
|
605
|
+
throw n.error;
|
|
571
606
|
}
|
|
572
607
|
}
|
|
573
608
|
}
|
|
574
609
|
if (o)
|
|
575
|
-
throw new
|
|
610
|
+
throw new Se(o);
|
|
576
611
|
}
|
|
577
612
|
}, e.prototype.add = function(t) {
|
|
578
613
|
var r;
|
|
@@ -595,20 +630,20 @@ var ge = function() {
|
|
|
595
630
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
596
631
|
}, e.prototype._removeParent = function(t) {
|
|
597
632
|
var r = this._parentage;
|
|
598
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
633
|
+
r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
|
|
599
634
|
}, e.prototype.remove = function(t) {
|
|
600
635
|
var r = this._finalizers;
|
|
601
|
-
r &&
|
|
636
|
+
r && Re(r, t), t instanceof e && t._removeParent(this);
|
|
602
637
|
}, e.EMPTY = function() {
|
|
603
638
|
var t = new e();
|
|
604
639
|
return t.closed = !0, t;
|
|
605
640
|
}(), e;
|
|
606
|
-
}(), Pt =
|
|
641
|
+
}(), Pt = ye.EMPTY;
|
|
607
642
|
function Ot(e) {
|
|
608
|
-
return e instanceof
|
|
643
|
+
return e instanceof ye || e && "closed" in e && C(e.remove) && C(e.add) && C(e.unsubscribe);
|
|
609
644
|
}
|
|
610
645
|
function tt(e) {
|
|
611
|
-
|
|
646
|
+
C(e) ? e() : e.unsubscribe();
|
|
612
647
|
}
|
|
613
648
|
var It = {
|
|
614
649
|
onUnhandledError: null,
|
|
@@ -616,35 +651,35 @@ var It = {
|
|
|
616
651
|
Promise: void 0,
|
|
617
652
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
618
653
|
useDeprecatedNextContext: !1
|
|
619
|
-
},
|
|
654
|
+
}, Ar = {
|
|
620
655
|
setTimeout: function(e, t) {
|
|
621
656
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
622
657
|
r[n - 2] = arguments[n];
|
|
623
|
-
return setTimeout.apply(void 0, W([e, t],
|
|
658
|
+
return setTimeout.apply(void 0, W([e, t], $e(r)));
|
|
624
659
|
},
|
|
625
660
|
clearTimeout: function(e) {
|
|
626
661
|
return clearTimeout(e);
|
|
627
662
|
},
|
|
628
663
|
delegate: void 0
|
|
629
664
|
};
|
|
630
|
-
function
|
|
631
|
-
|
|
665
|
+
function Pr(e) {
|
|
666
|
+
Ar.setTimeout(function() {
|
|
632
667
|
throw e;
|
|
633
668
|
});
|
|
634
669
|
}
|
|
635
670
|
function rt() {
|
|
636
671
|
}
|
|
637
|
-
function
|
|
672
|
+
function fe(e) {
|
|
638
673
|
e();
|
|
639
674
|
}
|
|
640
675
|
var Nt = function(e) {
|
|
641
676
|
L(t, e);
|
|
642
677
|
function t(r) {
|
|
643
678
|
var n = e.call(this) || this;
|
|
644
|
-
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination =
|
|
679
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Mr, n;
|
|
645
680
|
}
|
|
646
681
|
return t.create = function(r, n, i) {
|
|
647
|
-
return new
|
|
682
|
+
return new De(r, n, i);
|
|
648
683
|
}, t.prototype.next = function(r) {
|
|
649
684
|
this.isStopped || this._next(r);
|
|
650
685
|
}, t.prototype.error = function(r) {
|
|
@@ -668,11 +703,11 @@ var Nt = function(e) {
|
|
|
668
703
|
this.unsubscribe();
|
|
669
704
|
}
|
|
670
705
|
}, t;
|
|
671
|
-
}(
|
|
672
|
-
function
|
|
673
|
-
return
|
|
706
|
+
}(ye), Or = Function.prototype.bind;
|
|
707
|
+
function Te(e, t) {
|
|
708
|
+
return Or.call(e, t);
|
|
674
709
|
}
|
|
675
|
-
var
|
|
710
|
+
var Ir = function() {
|
|
676
711
|
function e(t) {
|
|
677
712
|
this.partialObserver = t;
|
|
678
713
|
}
|
|
@@ -682,7 +717,7 @@ var Pr = function() {
|
|
|
682
717
|
try {
|
|
683
718
|
r.next(t);
|
|
684
719
|
} catch (n) {
|
|
685
|
-
|
|
720
|
+
he(n);
|
|
686
721
|
}
|
|
687
722
|
}, e.prototype.error = function(t) {
|
|
688
723
|
var r = this.partialObserver;
|
|
@@ -690,24 +725,24 @@ var Pr = function() {
|
|
|
690
725
|
try {
|
|
691
726
|
r.error(t);
|
|
692
727
|
} catch (n) {
|
|
693
|
-
|
|
728
|
+
he(n);
|
|
694
729
|
}
|
|
695
730
|
else
|
|
696
|
-
|
|
731
|
+
he(t);
|
|
697
732
|
}, e.prototype.complete = function() {
|
|
698
733
|
var t = this.partialObserver;
|
|
699
734
|
if (t.complete)
|
|
700
735
|
try {
|
|
701
736
|
t.complete();
|
|
702
737
|
} catch (r) {
|
|
703
|
-
|
|
738
|
+
he(r);
|
|
704
739
|
}
|
|
705
740
|
}, e;
|
|
706
|
-
}(),
|
|
741
|
+
}(), De = function(e) {
|
|
707
742
|
L(t, e);
|
|
708
743
|
function t(r, n, i) {
|
|
709
744
|
var o = e.call(this) || this, s;
|
|
710
|
-
if (
|
|
745
|
+
if (C(r) || !r)
|
|
711
746
|
s = {
|
|
712
747
|
next: r ?? void 0,
|
|
713
748
|
error: n ?? void 0,
|
|
@@ -718,34 +753,34 @@ var Pr = function() {
|
|
|
718
753
|
o && It.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
719
754
|
return o.unsubscribe();
|
|
720
755
|
}, s = {
|
|
721
|
-
next: r.next &&
|
|
722
|
-
error: r.error &&
|
|
723
|
-
complete: r.complete &&
|
|
756
|
+
next: r.next && Te(r.next, a),
|
|
757
|
+
error: r.error && Te(r.error, a),
|
|
758
|
+
complete: r.complete && Te(r.complete, a)
|
|
724
759
|
}) : s = r;
|
|
725
760
|
}
|
|
726
|
-
return o.destination = new
|
|
761
|
+
return o.destination = new Ir(s), o;
|
|
727
762
|
}
|
|
728
763
|
return t;
|
|
729
764
|
}(Nt);
|
|
730
|
-
function
|
|
731
|
-
|
|
765
|
+
function he(e) {
|
|
766
|
+
Pr(e);
|
|
732
767
|
}
|
|
733
|
-
function
|
|
768
|
+
function Nr(e) {
|
|
734
769
|
throw e;
|
|
735
770
|
}
|
|
736
|
-
var
|
|
771
|
+
var Mr = {
|
|
737
772
|
closed: !0,
|
|
738
773
|
next: rt,
|
|
739
|
-
error:
|
|
774
|
+
error: Nr,
|
|
740
775
|
complete: rt
|
|
741
|
-
},
|
|
776
|
+
}, Cr = function() {
|
|
742
777
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
743
778
|
}();
|
|
744
|
-
function
|
|
779
|
+
function Lr(e) {
|
|
745
780
|
return e;
|
|
746
781
|
}
|
|
747
|
-
function
|
|
748
|
-
return e.length === 0 ?
|
|
782
|
+
function $r(e) {
|
|
783
|
+
return e.length === 0 ? Lr : e.length === 1 ? e[0] : function(r) {
|
|
749
784
|
return e.reduce(function(n, i) {
|
|
750
785
|
return i(n);
|
|
751
786
|
}, r);
|
|
@@ -759,8 +794,8 @@ var nt = function() {
|
|
|
759
794
|
var r = new e();
|
|
760
795
|
return r.source = this, r.operator = t, r;
|
|
761
796
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
762
|
-
var i = this, o =
|
|
763
|
-
return
|
|
797
|
+
var i = this, o = Dr(t) ? t : new De(t, r, n);
|
|
798
|
+
return fe(function() {
|
|
764
799
|
var s = i, a = s.operator, h = s.source;
|
|
765
800
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
766
801
|
}), o;
|
|
@@ -773,7 +808,7 @@ var nt = function() {
|
|
|
773
808
|
}, e.prototype.forEach = function(t, r) {
|
|
774
809
|
var n = this;
|
|
775
810
|
return r = it(r), new r(function(i, o) {
|
|
776
|
-
var s = new
|
|
811
|
+
var s = new De({
|
|
777
812
|
next: function(a) {
|
|
778
813
|
try {
|
|
779
814
|
t(a);
|
|
@@ -789,12 +824,12 @@ var nt = function() {
|
|
|
789
824
|
}, e.prototype._subscribe = function(t) {
|
|
790
825
|
var r;
|
|
791
826
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
792
|
-
}, e.prototype[
|
|
827
|
+
}, e.prototype[Cr] = function() {
|
|
793
828
|
return this;
|
|
794
829
|
}, e.prototype.pipe = function() {
|
|
795
830
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
796
831
|
t[r] = arguments[r];
|
|
797
|
-
return
|
|
832
|
+
return $r(t)(this);
|
|
798
833
|
}, e.prototype.toPromise = function(t) {
|
|
799
834
|
var r = this;
|
|
800
835
|
return t = it(t), new t(function(n, i) {
|
|
@@ -815,17 +850,17 @@ function it(e) {
|
|
|
815
850
|
var t;
|
|
816
851
|
return (t = e ?? It.Promise) !== null && t !== void 0 ? t : Promise;
|
|
817
852
|
}
|
|
818
|
-
function
|
|
819
|
-
return e &&
|
|
853
|
+
function Rr(e) {
|
|
854
|
+
return e && C(e.next) && C(e.error) && C(e.complete);
|
|
820
855
|
}
|
|
821
|
-
function
|
|
822
|
-
return e && e instanceof Nt ||
|
|
856
|
+
function Dr(e) {
|
|
857
|
+
return e && e instanceof Nt || Rr(e) && Ot(e);
|
|
823
858
|
}
|
|
824
|
-
var
|
|
859
|
+
var Ur = At(function(e) {
|
|
825
860
|
return function() {
|
|
826
861
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
827
862
|
};
|
|
828
|
-
}),
|
|
863
|
+
}), Mt = function(e) {
|
|
829
864
|
L(t, e);
|
|
830
865
|
function t() {
|
|
831
866
|
var r = e.call(this) || this;
|
|
@@ -836,15 +871,15 @@ var Rr = At(function(e) {
|
|
|
836
871
|
return n.operator = r, n;
|
|
837
872
|
}, t.prototype._throwIfClosed = function() {
|
|
838
873
|
if (this.closed)
|
|
839
|
-
throw new
|
|
874
|
+
throw new Ur();
|
|
840
875
|
}, t.prototype.next = function(r) {
|
|
841
876
|
var n = this;
|
|
842
|
-
|
|
877
|
+
fe(function() {
|
|
843
878
|
var i, o;
|
|
844
879
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
845
880
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
846
881
|
try {
|
|
847
|
-
for (var s =
|
|
882
|
+
for (var s = Le(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
848
883
|
var h = a.value;
|
|
849
884
|
h.next(r);
|
|
850
885
|
}
|
|
@@ -854,14 +889,15 @@ var Rr = At(function(e) {
|
|
|
854
889
|
try {
|
|
855
890
|
a && !a.done && (o = s.return) && o.call(s);
|
|
856
891
|
} finally {
|
|
857
|
-
if (i)
|
|
892
|
+
if (i)
|
|
893
|
+
throw i.error;
|
|
858
894
|
}
|
|
859
895
|
}
|
|
860
896
|
}
|
|
861
897
|
});
|
|
862
898
|
}, t.prototype.error = function(r) {
|
|
863
899
|
var n = this;
|
|
864
|
-
|
|
900
|
+
fe(function() {
|
|
865
901
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
866
902
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
867
903
|
for (var i = n.observers; i.length; )
|
|
@@ -870,7 +906,7 @@ var Rr = At(function(e) {
|
|
|
870
906
|
});
|
|
871
907
|
}, t.prototype.complete = function() {
|
|
872
908
|
var r = this;
|
|
873
|
-
|
|
909
|
+
fe(function() {
|
|
874
910
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
875
911
|
r.isStopped = !0;
|
|
876
912
|
for (var n = r.observers; n.length; )
|
|
@@ -892,8 +928,8 @@ var Rr = At(function(e) {
|
|
|
892
928
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
893
929
|
}, t.prototype._innerSubscribe = function(r) {
|
|
894
930
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
895
|
-
return o || s ? Pt : (this.currentObservers = null, a.push(r), new
|
|
896
|
-
n.currentObservers = null,
|
|
931
|
+
return o || s ? Pt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
932
|
+
n.currentObservers = null, Re(a, r);
|
|
897
933
|
}));
|
|
898
934
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
899
935
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
@@ -923,15 +959,15 @@ var Rr = At(function(e) {
|
|
|
923
959
|
var n, i;
|
|
924
960
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pt;
|
|
925
961
|
}, t;
|
|
926
|
-
}(
|
|
962
|
+
}(Mt), Ct = {
|
|
927
963
|
now: function() {
|
|
928
|
-
return (
|
|
964
|
+
return (Ct.delegate || Date).now();
|
|
929
965
|
},
|
|
930
966
|
delegate: void 0
|
|
931
|
-
},
|
|
967
|
+
}, Gr = function(e) {
|
|
932
968
|
L(t, e);
|
|
933
969
|
function t(r, n, i) {
|
|
934
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
970
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ct);
|
|
935
971
|
var o = e.call(this) || this;
|
|
936
972
|
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;
|
|
937
973
|
}
|
|
@@ -951,20 +987,20 @@ var Rr = At(function(e) {
|
|
|
951
987
|
u && o.splice(0, u + 1);
|
|
952
988
|
}
|
|
953
989
|
}, t;
|
|
954
|
-
}(
|
|
955
|
-
const st = [], at = {},
|
|
990
|
+
}(Mt);
|
|
991
|
+
const st = [], at = {}, Fr = (e, t = 0) => {
|
|
956
992
|
if (st.indexOf(e) == -1) {
|
|
957
|
-
const r = new
|
|
993
|
+
const r = new Gr(t);
|
|
958
994
|
at[e] = r, st.push(e);
|
|
959
995
|
}
|
|
960
996
|
return at[e];
|
|
961
997
|
}, k = [];
|
|
962
|
-
function
|
|
998
|
+
function jr(e, t) {
|
|
963
999
|
return {
|
|
964
|
-
subscribe:
|
|
1000
|
+
subscribe: ve(e, t).subscribe
|
|
965
1001
|
};
|
|
966
1002
|
}
|
|
967
|
-
function
|
|
1003
|
+
function ve(e, t = I) {
|
|
968
1004
|
let r;
|
|
969
1005
|
const n = /* @__PURE__ */ new Set();
|
|
970
1006
|
function i(a) {
|
|
@@ -982,9 +1018,9 @@ function ye(e, t = C) {
|
|
|
982
1018
|
function o(a) {
|
|
983
1019
|
i(a(e));
|
|
984
1020
|
}
|
|
985
|
-
function s(a, h =
|
|
1021
|
+
function s(a, h = I) {
|
|
986
1022
|
const u = [a, h];
|
|
987
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1023
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
|
|
988
1024
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
989
1025
|
};
|
|
990
1026
|
}
|
|
@@ -995,73 +1031,73 @@ function J(e, t, r) {
|
|
|
995
1031
|
if (!i.every(Boolean))
|
|
996
1032
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
997
1033
|
const o = t.length < 2;
|
|
998
|
-
return
|
|
1034
|
+
return jr(r, (s, a) => {
|
|
999
1035
|
let h = !1;
|
|
1000
1036
|
const u = [];
|
|
1001
|
-
let l = 0, c =
|
|
1037
|
+
let l = 0, c = I;
|
|
1002
1038
|
const f = () => {
|
|
1003
1039
|
if (l)
|
|
1004
1040
|
return;
|
|
1005
1041
|
c();
|
|
1006
|
-
const
|
|
1007
|
-
o ? s(
|
|
1008
|
-
},
|
|
1009
|
-
(
|
|
1010
|
-
|
|
1042
|
+
const g = t(n ? u[0] : u, s, a);
|
|
1043
|
+
o ? s(g) : c = ze(g) ? g : I;
|
|
1044
|
+
}, m = i.map(
|
|
1045
|
+
(g, p) => Tt(
|
|
1046
|
+
g,
|
|
1011
1047
|
(x) => {
|
|
1012
|
-
u[
|
|
1048
|
+
u[p] = x, l &= ~(1 << p), h && f();
|
|
1013
1049
|
},
|
|
1014
1050
|
() => {
|
|
1015
|
-
l |= 1 <<
|
|
1051
|
+
l |= 1 << p;
|
|
1016
1052
|
}
|
|
1017
1053
|
)
|
|
1018
1054
|
);
|
|
1019
1055
|
return h = !0, f(), function() {
|
|
1020
|
-
|
|
1056
|
+
ae(m), c(), h = !1;
|
|
1021
1057
|
};
|
|
1022
1058
|
});
|
|
1023
1059
|
}
|
|
1024
|
-
function
|
|
1060
|
+
function kr(e) {
|
|
1025
1061
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1026
1062
|
}
|
|
1027
|
-
var
|
|
1028
|
-
return
|
|
1063
|
+
var Vr = function(t) {
|
|
1064
|
+
return Xr(t) && !Wr(t);
|
|
1029
1065
|
};
|
|
1030
|
-
function
|
|
1066
|
+
function Xr(e) {
|
|
1031
1067
|
return !!e && typeof e == "object";
|
|
1032
1068
|
}
|
|
1033
|
-
function
|
|
1069
|
+
function Wr(e) {
|
|
1034
1070
|
var t = Object.prototype.toString.call(e);
|
|
1035
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1071
|
+
return t === "[object RegExp]" || t === "[object Date]" || Yr(e);
|
|
1036
1072
|
}
|
|
1037
|
-
var
|
|
1038
|
-
function
|
|
1039
|
-
return e.$$typeof ===
|
|
1073
|
+
var zr = typeof Symbol == "function" && Symbol.for, Zr = zr ? Symbol.for("react.element") : 60103;
|
|
1074
|
+
function Yr(e) {
|
|
1075
|
+
return e.$$typeof === Zr;
|
|
1040
1076
|
}
|
|
1041
|
-
function
|
|
1077
|
+
function Qr(e) {
|
|
1042
1078
|
return Array.isArray(e) ? [] : {};
|
|
1043
1079
|
}
|
|
1044
|
-
function
|
|
1045
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? z(
|
|
1080
|
+
function oe(e, t) {
|
|
1081
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? z(Qr(e), e, t) : e;
|
|
1046
1082
|
}
|
|
1047
|
-
function
|
|
1083
|
+
function Jr(e, t, r) {
|
|
1048
1084
|
return e.concat(t).map(function(n) {
|
|
1049
|
-
return
|
|
1085
|
+
return oe(n, r);
|
|
1050
1086
|
});
|
|
1051
1087
|
}
|
|
1052
|
-
function
|
|
1088
|
+
function qr(e, t) {
|
|
1053
1089
|
if (!t.customMerge)
|
|
1054
1090
|
return z;
|
|
1055
1091
|
var r = t.customMerge(e);
|
|
1056
1092
|
return typeof r == "function" ? r : z;
|
|
1057
1093
|
}
|
|
1058
|
-
function
|
|
1094
|
+
function Kr(e) {
|
|
1059
1095
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1060
1096
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1061
1097
|
}) : [];
|
|
1062
1098
|
}
|
|
1063
1099
|
function ut(e) {
|
|
1064
|
-
return Object.keys(e).concat(
|
|
1100
|
+
return Object.keys(e).concat(Kr(e));
|
|
1065
1101
|
}
|
|
1066
1102
|
function Lt(e, t) {
|
|
1067
1103
|
try {
|
|
@@ -1070,21 +1106,21 @@ function Lt(e, t) {
|
|
|
1070
1106
|
return !1;
|
|
1071
1107
|
}
|
|
1072
1108
|
}
|
|
1073
|
-
function
|
|
1109
|
+
function en(e, t) {
|
|
1074
1110
|
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1075
1111
|
}
|
|
1076
|
-
function
|
|
1112
|
+
function tn(e, t, r) {
|
|
1077
1113
|
var n = {};
|
|
1078
1114
|
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1079
|
-
n[i] =
|
|
1115
|
+
n[i] = oe(e[i], r);
|
|
1080
1116
|
}), ut(t).forEach(function(i) {
|
|
1081
|
-
|
|
1117
|
+
en(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = qr(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
|
|
1082
1118
|
}), n;
|
|
1083
1119
|
}
|
|
1084
1120
|
function z(e, t, r) {
|
|
1085
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1121
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Jr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified = oe;
|
|
1086
1122
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1087
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1123
|
+
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : oe(t, r);
|
|
1088
1124
|
}
|
|
1089
1125
|
z.all = function(t, r) {
|
|
1090
1126
|
if (!Array.isArray(t))
|
|
@@ -1093,20 +1129,20 @@ z.all = function(t, r) {
|
|
|
1093
1129
|
return z(n, i, r);
|
|
1094
1130
|
}, {});
|
|
1095
1131
|
};
|
|
1096
|
-
var
|
|
1097
|
-
const
|
|
1098
|
-
function
|
|
1099
|
-
var r = t && t.cache ? t.cache :
|
|
1132
|
+
var rn = z, nn = rn;
|
|
1133
|
+
const on = /* @__PURE__ */ kr(nn);
|
|
1134
|
+
function we(e, t) {
|
|
1135
|
+
var r = t && t.cache ? t.cache : cn, n = t && t.serializer ? t.serializer : ln, i = t && t.strategy ? t.strategy : an;
|
|
1100
1136
|
return i(e, {
|
|
1101
1137
|
cache: r,
|
|
1102
1138
|
serializer: n
|
|
1103
1139
|
});
|
|
1104
1140
|
}
|
|
1105
|
-
function
|
|
1141
|
+
function sn(e) {
|
|
1106
1142
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1107
1143
|
}
|
|
1108
1144
|
function $t(e, t, r, n) {
|
|
1109
|
-
var i =
|
|
1145
|
+
var i = sn(n) ? n : r(n), o = t.get(i);
|
|
1110
1146
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1111
1147
|
}
|
|
1112
1148
|
function Rt(e, t, r) {
|
|
@@ -1116,17 +1152,17 @@ function Rt(e, t, r) {
|
|
|
1116
1152
|
function Ye(e, t, r, n, i) {
|
|
1117
1153
|
return r.bind(t, e, n, i);
|
|
1118
1154
|
}
|
|
1119
|
-
function
|
|
1155
|
+
function an(e, t) {
|
|
1120
1156
|
var r = e.length === 1 ? $t : Rt;
|
|
1121
1157
|
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
1122
1158
|
}
|
|
1123
|
-
function
|
|
1159
|
+
function un(e, t) {
|
|
1124
1160
|
return Ye(e, this, Rt, t.cache.create(), t.serializer);
|
|
1125
1161
|
}
|
|
1126
|
-
function
|
|
1162
|
+
function hn(e, t) {
|
|
1127
1163
|
return Ye(e, this, $t, t.cache.create(), t.serializer);
|
|
1128
1164
|
}
|
|
1129
|
-
var
|
|
1165
|
+
var ln = function() {
|
|
1130
1166
|
return JSON.stringify(arguments);
|
|
1131
1167
|
};
|
|
1132
1168
|
function Qe() {
|
|
@@ -1138,17 +1174,17 @@ Qe.prototype.get = function(e) {
|
|
|
1138
1174
|
Qe.prototype.set = function(e, t) {
|
|
1139
1175
|
this.cache[e] = t;
|
|
1140
1176
|
};
|
|
1141
|
-
var
|
|
1177
|
+
var cn = {
|
|
1142
1178
|
create: function() {
|
|
1143
1179
|
return new Qe();
|
|
1144
1180
|
}
|
|
1145
1181
|
}, He = {
|
|
1146
|
-
variadic:
|
|
1147
|
-
monadic:
|
|
1148
|
-
},
|
|
1182
|
+
variadic: un,
|
|
1183
|
+
monadic: hn
|
|
1184
|
+
}, b;
|
|
1149
1185
|
(function(e) {
|
|
1150
1186
|
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";
|
|
1151
|
-
})(
|
|
1187
|
+
})(b || (b = {}));
|
|
1152
1188
|
var _;
|
|
1153
1189
|
(function(e) {
|
|
1154
1190
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -1160,7 +1196,7 @@ var Z;
|
|
|
1160
1196
|
function ht(e) {
|
|
1161
1197
|
return e.type === _.literal;
|
|
1162
1198
|
}
|
|
1163
|
-
function
|
|
1199
|
+
function fn(e) {
|
|
1164
1200
|
return e.type === _.argument;
|
|
1165
1201
|
}
|
|
1166
1202
|
function Dt(e) {
|
|
@@ -1178,7 +1214,7 @@ function Ft(e) {
|
|
|
1178
1214
|
function jt(e) {
|
|
1179
1215
|
return e.type === _.plural;
|
|
1180
1216
|
}
|
|
1181
|
-
function
|
|
1217
|
+
function mn(e) {
|
|
1182
1218
|
return e.type === _.pound;
|
|
1183
1219
|
}
|
|
1184
1220
|
function kt(e) {
|
|
@@ -1187,13 +1223,13 @@ function kt(e) {
|
|
|
1187
1223
|
function Vt(e) {
|
|
1188
1224
|
return !!(e && typeof e == "object" && e.type === Z.number);
|
|
1189
1225
|
}
|
|
1190
|
-
function
|
|
1226
|
+
function Ue(e) {
|
|
1191
1227
|
return !!(e && typeof e == "object" && e.type === Z.dateTime);
|
|
1192
1228
|
}
|
|
1193
|
-
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1194
|
-
function
|
|
1229
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pn = /(?:[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;
|
|
1230
|
+
function bn(e) {
|
|
1195
1231
|
var t = {};
|
|
1196
|
-
return e.replace(
|
|
1232
|
+
return e.replace(pn, function(r) {
|
|
1197
1233
|
var n = r.length;
|
|
1198
1234
|
switch (r[0]) {
|
|
1199
1235
|
case "G":
|
|
@@ -1282,11 +1318,11 @@ function pn(e) {
|
|
|
1282
1318
|
return "";
|
|
1283
1319
|
}), t;
|
|
1284
1320
|
}
|
|
1285
|
-
var
|
|
1286
|
-
function
|
|
1321
|
+
var dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1322
|
+
function gn(e) {
|
|
1287
1323
|
if (e.length === 0)
|
|
1288
1324
|
throw new Error("Number skeleton cannot be empty");
|
|
1289
|
-
for (var t = e.split(
|
|
1325
|
+
for (var t = e.split(dn).filter(function(f) {
|
|
1290
1326
|
return f.length > 0;
|
|
1291
1327
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1292
1328
|
var o = i[n], s = o.split("/");
|
|
@@ -1301,10 +1337,10 @@ function bn(e) {
|
|
|
1301
1337
|
}
|
|
1302
1338
|
return r;
|
|
1303
1339
|
}
|
|
1304
|
-
function
|
|
1340
|
+
function yn(e) {
|
|
1305
1341
|
return e.replace(/^(.*?)-/, "");
|
|
1306
1342
|
}
|
|
1307
|
-
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1343
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
1308
1344
|
function ct(e) {
|
|
1309
1345
|
var t = {};
|
|
1310
1346
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
|
|
@@ -1351,7 +1387,7 @@ function Zt(e) {
|
|
|
1351
1387
|
};
|
|
1352
1388
|
}
|
|
1353
1389
|
}
|
|
1354
|
-
function
|
|
1390
|
+
function En(e) {
|
|
1355
1391
|
var t;
|
|
1356
1392
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1357
1393
|
notation: "engineering"
|
|
@@ -1369,7 +1405,7 @@ function ft(e) {
|
|
|
1369
1405
|
var t = {}, r = Zt(e);
|
|
1370
1406
|
return r || t;
|
|
1371
1407
|
}
|
|
1372
|
-
function
|
|
1408
|
+
function _n(e) {
|
|
1373
1409
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1374
1410
|
var i = n[r];
|
|
1375
1411
|
switch (i.stem) {
|
|
@@ -1393,7 +1429,7 @@ function vn(e) {
|
|
|
1393
1429
|
continue;
|
|
1394
1430
|
case "measure-unit":
|
|
1395
1431
|
case "unit":
|
|
1396
|
-
t.style = "unit", t.unit =
|
|
1432
|
+
t.style = "unit", t.unit = yn(i.options[0]);
|
|
1397
1433
|
continue;
|
|
1398
1434
|
case "compact-short":
|
|
1399
1435
|
case "K":
|
|
@@ -1404,13 +1440,13 @@ function vn(e) {
|
|
|
1404
1440
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1405
1441
|
continue;
|
|
1406
1442
|
case "scientific":
|
|
1407
|
-
t =
|
|
1408
|
-
return
|
|
1443
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1444
|
+
return y(y({}, h), ft(u));
|
|
1409
1445
|
}, {}));
|
|
1410
1446
|
continue;
|
|
1411
1447
|
case "engineering":
|
|
1412
|
-
t =
|
|
1413
|
-
return
|
|
1448
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1449
|
+
return y(y({}, h), ft(u));
|
|
1414
1450
|
}, {}));
|
|
1415
1451
|
continue;
|
|
1416
1452
|
case "notation-simple":
|
|
@@ -1455,13 +1491,13 @@ function vn(e) {
|
|
|
1455
1491
|
case "integer-width":
|
|
1456
1492
|
if (i.options.length > 1)
|
|
1457
1493
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1458
|
-
i.options[0].replace(
|
|
1494
|
+
i.options[0].replace(vn, function(h, u, l, c, f, m) {
|
|
1459
1495
|
if (u)
|
|
1460
1496
|
t.minimumIntegerDigits = l.length;
|
|
1461
1497
|
else {
|
|
1462
1498
|
if (c && f)
|
|
1463
1499
|
throw new Error("We currently do not support maximum integer digits");
|
|
1464
|
-
if (
|
|
1500
|
+
if (m)
|
|
1465
1501
|
throw new Error("We currently do not support exact integer digits");
|
|
1466
1502
|
}
|
|
1467
1503
|
return "";
|
|
@@ -1475,25 +1511,25 @@ function vn(e) {
|
|
|
1475
1511
|
if (lt.test(i.stem)) {
|
|
1476
1512
|
if (i.options.length > 1)
|
|
1477
1513
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1478
|
-
i.stem.replace(lt, function(h, u, l, c, f,
|
|
1479
|
-
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f &&
|
|
1514
|
+
i.stem.replace(lt, function(h, u, l, c, f, m) {
|
|
1515
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1480
1516
|
});
|
|
1481
1517
|
var o = i.options[0];
|
|
1482
|
-
o === "w" ? t =
|
|
1518
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ct(o)));
|
|
1483
1519
|
continue;
|
|
1484
1520
|
}
|
|
1485
1521
|
if (Wt.test(i.stem)) {
|
|
1486
|
-
t =
|
|
1522
|
+
t = y(y({}, t), ct(i.stem));
|
|
1487
1523
|
continue;
|
|
1488
1524
|
}
|
|
1489
1525
|
var s = Zt(i.stem);
|
|
1490
|
-
s && (t =
|
|
1491
|
-
var a =
|
|
1492
|
-
a && (t =
|
|
1526
|
+
s && (t = y(y({}, t), s));
|
|
1527
|
+
var a = En(i.stem);
|
|
1528
|
+
a && (t = y(y({}, t), a));
|
|
1493
1529
|
}
|
|
1494
1530
|
return t;
|
|
1495
1531
|
}
|
|
1496
|
-
var
|
|
1532
|
+
var le = {
|
|
1497
1533
|
"001": [
|
|
1498
1534
|
"H",
|
|
1499
1535
|
"h"
|
|
@@ -2908,22 +2944,23 @@ var he = {
|
|
|
2908
2944
|
"h"
|
|
2909
2945
|
]
|
|
2910
2946
|
};
|
|
2911
|
-
function
|
|
2947
|
+
function xn(e, t) {
|
|
2912
2948
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2913
2949
|
var i = e.charAt(n);
|
|
2914
2950
|
if (i === "j") {
|
|
2915
2951
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2916
2952
|
o++, n++;
|
|
2917
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2953
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Bn(t);
|
|
2918
2954
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2919
2955
|
r += h;
|
|
2920
2956
|
for (; s-- > 0; )
|
|
2921
2957
|
r = u + r;
|
|
2922
|
-
} else
|
|
2958
|
+
} else
|
|
2959
|
+
i === "J" ? r += "H" : r += i;
|
|
2923
2960
|
}
|
|
2924
2961
|
return r;
|
|
2925
2962
|
}
|
|
2926
|
-
function
|
|
2963
|
+
function Bn(e) {
|
|
2927
2964
|
var t = e.hourCycle;
|
|
2928
2965
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2929
2966
|
e.hourCycles && // @ts-ignore
|
|
@@ -2942,23 +2979,23 @@ function _n(e) {
|
|
|
2942
2979
|
}
|
|
2943
2980
|
var r = e.language, n;
|
|
2944
2981
|
r !== "root" && (n = e.maximize().region);
|
|
2945
|
-
var i =
|
|
2982
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2946
2983
|
return i[0];
|
|
2947
2984
|
}
|
|
2948
|
-
var
|
|
2949
|
-
function
|
|
2985
|
+
var Ae, Sn = new RegExp("^".concat(Xt.source, "*")), Tn = new RegExp("".concat(Xt.source, "*$"));
|
|
2986
|
+
function d(e, t) {
|
|
2950
2987
|
return { start: e, end: t };
|
|
2951
2988
|
}
|
|
2952
|
-
var
|
|
2989
|
+
var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, An = !!Object.fromEntries, Pn = !!String.prototype.codePointAt, On = !!String.prototype.trimStart, In = !!String.prototype.trimEnd, Nn = !!Number.isSafeInteger, Mn = Nn ? Number.isSafeInteger : function(e) {
|
|
2953
2990
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2954
|
-
},
|
|
2991
|
+
}, Ge = !0;
|
|
2955
2992
|
try {
|
|
2956
|
-
var
|
|
2957
|
-
|
|
2993
|
+
var Cn = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2994
|
+
Ge = ((Ae = Cn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2958
2995
|
} catch {
|
|
2959
|
-
|
|
2996
|
+
Ge = !1;
|
|
2960
2997
|
}
|
|
2961
|
-
var
|
|
2998
|
+
var mt = wn ? (
|
|
2962
2999
|
// Native
|
|
2963
3000
|
function(t, r, n) {
|
|
2964
3001
|
return t.startsWith(r, n);
|
|
@@ -2968,7 +3005,7 @@ var pt = Sn ? (
|
|
|
2968
3005
|
function(t, r, n) {
|
|
2969
3006
|
return t.slice(n, n + r.length) === r;
|
|
2970
3007
|
}
|
|
2971
|
-
),
|
|
3008
|
+
), Fe = Hn ? String.fromCodePoint : (
|
|
2972
3009
|
// IE11
|
|
2973
3010
|
function() {
|
|
2974
3011
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2980,9 +3017,9 @@ var pt = Sn ? (
|
|
|
2980
3017
|
}
|
|
2981
3018
|
return n;
|
|
2982
3019
|
}
|
|
2983
|
-
),
|
|
3020
|
+
), pt = (
|
|
2984
3021
|
// native
|
|
2985
|
-
|
|
3022
|
+
An ? Object.fromEntries : (
|
|
2986
3023
|
// Ponyfill
|
|
2987
3024
|
function(t) {
|
|
2988
3025
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2992,7 +3029,7 @@ var pt = Sn ? (
|
|
|
2992
3029
|
return r;
|
|
2993
3030
|
}
|
|
2994
3031
|
)
|
|
2995
|
-
), Yt =
|
|
3032
|
+
), Yt = Pn ? (
|
|
2996
3033
|
// Native
|
|
2997
3034
|
function(t, r) {
|
|
2998
3035
|
return t.codePointAt(r);
|
|
@@ -3006,7 +3043,7 @@ var pt = Sn ? (
|
|
|
3006
3043
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3007
3044
|
}
|
|
3008
3045
|
}
|
|
3009
|
-
),
|
|
3046
|
+
), Ln = On ? (
|
|
3010
3047
|
// Native
|
|
3011
3048
|
function(t) {
|
|
3012
3049
|
return t.trimStart();
|
|
@@ -3014,9 +3051,9 @@ var pt = Sn ? (
|
|
|
3014
3051
|
) : (
|
|
3015
3052
|
// Ponyfill
|
|
3016
3053
|
function(t) {
|
|
3017
|
-
return t.replace(
|
|
3054
|
+
return t.replace(Sn, "");
|
|
3018
3055
|
}
|
|
3019
|
-
),
|
|
3056
|
+
), $n = In ? (
|
|
3020
3057
|
// Native
|
|
3021
3058
|
function(t) {
|
|
3022
3059
|
return t.trimEnd();
|
|
@@ -3024,32 +3061,32 @@ var pt = Sn ? (
|
|
|
3024
3061
|
) : (
|
|
3025
3062
|
// Ponyfill
|
|
3026
3063
|
function(t) {
|
|
3027
|
-
return t.replace(
|
|
3064
|
+
return t.replace(Tn, "");
|
|
3028
3065
|
}
|
|
3029
3066
|
);
|
|
3030
3067
|
function Qt(e, t) {
|
|
3031
3068
|
return new RegExp(e, t);
|
|
3032
3069
|
}
|
|
3033
|
-
var
|
|
3034
|
-
if (
|
|
3070
|
+
var je;
|
|
3071
|
+
if (Ge) {
|
|
3035
3072
|
var bt = Qt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3036
|
-
|
|
3073
|
+
je = function(t, r) {
|
|
3037
3074
|
var n;
|
|
3038
3075
|
bt.lastIndex = r;
|
|
3039
3076
|
var i = bt.exec(t);
|
|
3040
3077
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3041
3078
|
};
|
|
3042
3079
|
} else
|
|
3043
|
-
|
|
3080
|
+
je = function(t, r) {
|
|
3044
3081
|
for (var n = []; ; ) {
|
|
3045
3082
|
var i = Yt(t, r);
|
|
3046
|
-
if (i === void 0 || Jt(i) ||
|
|
3083
|
+
if (i === void 0 || Jt(i) || Gn(i))
|
|
3047
3084
|
break;
|
|
3048
3085
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3049
3086
|
}
|
|
3050
|
-
return
|
|
3087
|
+
return Fe.apply(void 0, n);
|
|
3051
3088
|
};
|
|
3052
|
-
var
|
|
3089
|
+
var Rn = (
|
|
3053
3090
|
/** @class */
|
|
3054
3091
|
function() {
|
|
3055
3092
|
function e(t, r) {
|
|
@@ -3074,13 +3111,13 @@ var Ln = (
|
|
|
3074
3111
|
var a = this.clonePosition();
|
|
3075
3112
|
this.bump(), i.push({
|
|
3076
3113
|
type: _.pound,
|
|
3077
|
-
location:
|
|
3114
|
+
location: d(a, this.clonePosition())
|
|
3078
3115
|
});
|
|
3079
3116
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3080
3117
|
if (n)
|
|
3081
3118
|
break;
|
|
3082
|
-
return this.error(
|
|
3083
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3119
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3120
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3084
3121
|
var s = this.parseTag(t, r);
|
|
3085
3122
|
if (s.err)
|
|
3086
3123
|
return s;
|
|
@@ -3103,7 +3140,7 @@ var Ln = (
|
|
|
3103
3140
|
val: {
|
|
3104
3141
|
type: _.literal,
|
|
3105
3142
|
value: "<".concat(i, "/>"),
|
|
3106
|
-
location:
|
|
3143
|
+
location: d(n, this.clonePosition())
|
|
3107
3144
|
},
|
|
3108
3145
|
err: null
|
|
3109
3146
|
};
|
|
@@ -3113,25 +3150,25 @@ var Ln = (
|
|
|
3113
3150
|
return o;
|
|
3114
3151
|
var s = o.val, a = this.clonePosition();
|
|
3115
3152
|
if (this.bumpIf("</")) {
|
|
3116
|
-
if (this.isEOF() || !
|
|
3117
|
-
return this.error(
|
|
3153
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3154
|
+
return this.error(b.INVALID_TAG, d(a, this.clonePosition()));
|
|
3118
3155
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3119
|
-
return i !== u ? this.error(
|
|
3156
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3120
3157
|
val: {
|
|
3121
3158
|
type: _.tag,
|
|
3122
3159
|
value: i,
|
|
3123
3160
|
children: s,
|
|
3124
|
-
location:
|
|
3161
|
+
location: d(n, this.clonePosition())
|
|
3125
3162
|
},
|
|
3126
3163
|
err: null
|
|
3127
|
-
} : this.error(
|
|
3164
|
+
} : this.error(b.INVALID_TAG, d(a, this.clonePosition())));
|
|
3128
3165
|
} else
|
|
3129
|
-
return this.error(
|
|
3166
|
+
return this.error(b.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
3130
3167
|
} else
|
|
3131
|
-
return this.error(
|
|
3168
|
+
return this.error(b.INVALID_TAG, d(n, this.clonePosition()));
|
|
3132
3169
|
}, e.prototype.parseTagName = function() {
|
|
3133
3170
|
var t = this.offset();
|
|
3134
|
-
for (this.bump(); !this.isEOF() &&
|
|
3171
|
+
for (this.bump(); !this.isEOF() && Un(this.char()); )
|
|
3135
3172
|
this.bump();
|
|
3136
3173
|
return this.message.slice(t, this.offset());
|
|
3137
3174
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3153,14 +3190,14 @@ var Ln = (
|
|
|
3153
3190
|
}
|
|
3154
3191
|
break;
|
|
3155
3192
|
}
|
|
3156
|
-
var h =
|
|
3193
|
+
var h = d(n, this.clonePosition());
|
|
3157
3194
|
return {
|
|
3158
3195
|
val: { type: _.literal, value: i, location: h },
|
|
3159
3196
|
err: null
|
|
3160
3197
|
};
|
|
3161
3198
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3162
3199
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3163
|
-
|
|
3200
|
+
!Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3164
3201
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3165
3202
|
if (this.isEOF() || this.char() !== 39)
|
|
3166
3203
|
return null;
|
|
@@ -3194,23 +3231,23 @@ var Ln = (
|
|
|
3194
3231
|
r.push(n);
|
|
3195
3232
|
this.bump();
|
|
3196
3233
|
}
|
|
3197
|
-
return
|
|
3234
|
+
return Fe.apply(void 0, r);
|
|
3198
3235
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3199
3236
|
if (this.isEOF())
|
|
3200
3237
|
return null;
|
|
3201
3238
|
var n = this.char();
|
|
3202
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3239
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3203
3240
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3204
3241
|
var n = this.clonePosition();
|
|
3205
3242
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3206
|
-
return this.error(
|
|
3243
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3207
3244
|
if (this.char() === 125)
|
|
3208
|
-
return this.bump(), this.error(
|
|
3245
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
3209
3246
|
var i = this.parseIdentifierIfPossible().value;
|
|
3210
3247
|
if (!i)
|
|
3211
|
-
return this.error(
|
|
3248
|
+
return this.error(b.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3212
3249
|
if (this.bumpSpace(), this.isEOF())
|
|
3213
|
-
return this.error(
|
|
3250
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3214
3251
|
switch (this.char()) {
|
|
3215
3252
|
case 125:
|
|
3216
3253
|
return this.bump(), {
|
|
@@ -3218,25 +3255,25 @@ var Ln = (
|
|
|
3218
3255
|
type: _.argument,
|
|
3219
3256
|
// value does not include the opening and closing braces.
|
|
3220
3257
|
value: i,
|
|
3221
|
-
location:
|
|
3258
|
+
location: d(n, this.clonePosition())
|
|
3222
3259
|
},
|
|
3223
3260
|
err: null
|
|
3224
3261
|
};
|
|
3225
3262
|
case 44:
|
|
3226
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3263
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3227
3264
|
default:
|
|
3228
|
-
return this.error(
|
|
3265
|
+
return this.error(b.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3229
3266
|
}
|
|
3230
3267
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3231
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3268
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3232
3269
|
this.bumpTo(i);
|
|
3233
|
-
var o = this.clonePosition(), s =
|
|
3270
|
+
var o = this.clonePosition(), s = d(t, o);
|
|
3234
3271
|
return { value: n, location: s };
|
|
3235
3272
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3236
3273
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3237
3274
|
switch (a) {
|
|
3238
3275
|
case "":
|
|
3239
|
-
return this.error(
|
|
3276
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, d(s, h));
|
|
3240
3277
|
case "number":
|
|
3241
3278
|
case "date":
|
|
3242
3279
|
case "time": {
|
|
@@ -3247,37 +3284,37 @@ var Ln = (
|
|
|
3247
3284
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3248
3285
|
if (c.err)
|
|
3249
3286
|
return c;
|
|
3250
|
-
var f =
|
|
3287
|
+
var f = $n(c.val);
|
|
3251
3288
|
if (f.length === 0)
|
|
3252
|
-
return this.error(
|
|
3253
|
-
var
|
|
3254
|
-
u = { style: f, styleLocation:
|
|
3289
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3290
|
+
var m = d(l, this.clonePosition());
|
|
3291
|
+
u = { style: f, styleLocation: m };
|
|
3255
3292
|
}
|
|
3256
|
-
var
|
|
3257
|
-
if (
|
|
3258
|
-
return
|
|
3259
|
-
var
|
|
3260
|
-
if (u &&
|
|
3261
|
-
var x =
|
|
3293
|
+
var g = this.tryParseArgumentClose(i);
|
|
3294
|
+
if (g.err)
|
|
3295
|
+
return g;
|
|
3296
|
+
var p = d(i, this.clonePosition());
|
|
3297
|
+
if (u && mt(u?.style, "::", 0)) {
|
|
3298
|
+
var x = Ln(u.style.slice(2));
|
|
3262
3299
|
if (a === "number") {
|
|
3263
3300
|
var c = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
3264
3301
|
return c.err ? c : {
|
|
3265
|
-
val: { type: _.number, value: n, location:
|
|
3302
|
+
val: { type: _.number, value: n, location: p, style: c.val },
|
|
3266
3303
|
err: null
|
|
3267
3304
|
};
|
|
3268
3305
|
} else {
|
|
3269
3306
|
if (x.length === 0)
|
|
3270
|
-
return this.error(
|
|
3271
|
-
var
|
|
3272
|
-
this.locale && (
|
|
3307
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3308
|
+
var A = x;
|
|
3309
|
+
this.locale && (A = xn(x, this.locale));
|
|
3273
3310
|
var f = {
|
|
3274
3311
|
type: Z.dateTime,
|
|
3275
|
-
pattern:
|
|
3312
|
+
pattern: A,
|
|
3276
3313
|
location: u.styleLocation,
|
|
3277
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3278
|
-
},
|
|
3314
|
+
parsedOptions: this.shouldParseSkeletons ? bn(A) : {}
|
|
3315
|
+
}, H = a === "date" ? _.date : _.time;
|
|
3279
3316
|
return {
|
|
3280
|
-
val: { type:
|
|
3317
|
+
val: { type: H, value: n, location: p, style: f },
|
|
3281
3318
|
err: null
|
|
3282
3319
|
};
|
|
3283
3320
|
}
|
|
@@ -3286,7 +3323,7 @@ var Ln = (
|
|
|
3286
3323
|
val: {
|
|
3287
3324
|
type: a === "number" ? _.number : a === "date" ? _.date : _.time,
|
|
3288
3325
|
value: n,
|
|
3289
|
-
location:
|
|
3326
|
+
location: p,
|
|
3290
3327
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3291
3328
|
},
|
|
3292
3329
|
err: null
|
|
@@ -3295,52 +3332,52 @@ var Ln = (
|
|
|
3295
3332
|
case "plural":
|
|
3296
3333
|
case "selectordinal":
|
|
3297
3334
|
case "select": {
|
|
3298
|
-
var
|
|
3335
|
+
var T = this.clonePosition();
|
|
3299
3336
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3300
|
-
return this.error(
|
|
3337
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, d(T, y({}, T)));
|
|
3301
3338
|
this.bumpSpace();
|
|
3302
|
-
var
|
|
3303
|
-
if (a !== "select" &&
|
|
3339
|
+
var v = this.parseIdentifierIfPossible(), S = 0;
|
|
3340
|
+
if (a !== "select" && v.value === "offset") {
|
|
3304
3341
|
if (!this.bumpIf(":"))
|
|
3305
|
-
return this.error(
|
|
3342
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3306
3343
|
this.bumpSpace();
|
|
3307
|
-
var c = this.tryParseDecimalInteger(
|
|
3344
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3308
3345
|
if (c.err)
|
|
3309
3346
|
return c;
|
|
3310
|
-
this.bumpSpace(),
|
|
3347
|
+
this.bumpSpace(), v = this.parseIdentifierIfPossible(), S = c.val;
|
|
3311
3348
|
}
|
|
3312
|
-
var
|
|
3313
|
-
if (
|
|
3314
|
-
return
|
|
3315
|
-
var
|
|
3316
|
-
if (
|
|
3317
|
-
return
|
|
3318
|
-
var
|
|
3349
|
+
var N = this.tryParsePluralOrSelectOptions(t, a, r, v);
|
|
3350
|
+
if (N.err)
|
|
3351
|
+
return N;
|
|
3352
|
+
var g = this.tryParseArgumentClose(i);
|
|
3353
|
+
if (g.err)
|
|
3354
|
+
return g;
|
|
3355
|
+
var M = d(i, this.clonePosition());
|
|
3319
3356
|
return a === "select" ? {
|
|
3320
3357
|
val: {
|
|
3321
3358
|
type: _.select,
|
|
3322
3359
|
value: n,
|
|
3323
|
-
options:
|
|
3324
|
-
location:
|
|
3360
|
+
options: pt(N.val),
|
|
3361
|
+
location: M
|
|
3325
3362
|
},
|
|
3326
3363
|
err: null
|
|
3327
3364
|
} : {
|
|
3328
3365
|
val: {
|
|
3329
3366
|
type: _.plural,
|
|
3330
3367
|
value: n,
|
|
3331
|
-
options:
|
|
3332
|
-
offset:
|
|
3368
|
+
options: pt(N.val),
|
|
3369
|
+
offset: S,
|
|
3333
3370
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3334
|
-
location:
|
|
3371
|
+
location: M
|
|
3335
3372
|
},
|
|
3336
3373
|
err: null
|
|
3337
3374
|
};
|
|
3338
3375
|
}
|
|
3339
3376
|
default:
|
|
3340
|
-
return this.error(
|
|
3377
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, d(s, h));
|
|
3341
3378
|
}
|
|
3342
3379
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3343
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3380
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3344
3381
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3345
3382
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3346
3383
|
var n = this.char();
|
|
@@ -3349,7 +3386,7 @@ var Ln = (
|
|
|
3349
3386
|
this.bump();
|
|
3350
3387
|
var i = this.clonePosition();
|
|
3351
3388
|
if (!this.bumpUntil("'"))
|
|
3352
|
-
return this.error(
|
|
3389
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
3353
3390
|
this.bump();
|
|
3354
3391
|
break;
|
|
3355
3392
|
}
|
|
@@ -3379,16 +3416,16 @@ var Ln = (
|
|
|
3379
3416
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3380
3417
|
var n = [];
|
|
3381
3418
|
try {
|
|
3382
|
-
n =
|
|
3419
|
+
n = gn(t);
|
|
3383
3420
|
} catch {
|
|
3384
|
-
return this.error(
|
|
3421
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3385
3422
|
}
|
|
3386
3423
|
return {
|
|
3387
3424
|
val: {
|
|
3388
3425
|
type: Z.number,
|
|
3389
3426
|
tokens: n,
|
|
3390
3427
|
location: r,
|
|
3391
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3428
|
+
parsedOptions: this.shouldParseSkeletons ? _n(n) : {}
|
|
3392
3429
|
},
|
|
3393
3430
|
err: null
|
|
3394
3431
|
};
|
|
@@ -3397,34 +3434,34 @@ var Ln = (
|
|
|
3397
3434
|
if (u.length === 0) {
|
|
3398
3435
|
var c = this.clonePosition();
|
|
3399
3436
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3400
|
-
var f = this.tryParseDecimalInteger(
|
|
3437
|
+
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3401
3438
|
if (f.err)
|
|
3402
3439
|
return f;
|
|
3403
|
-
l =
|
|
3440
|
+
l = d(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3404
3441
|
} else
|
|
3405
3442
|
break;
|
|
3406
3443
|
}
|
|
3407
3444
|
if (h.has(u))
|
|
3408
|
-
return this.error(r === "select" ?
|
|
3445
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3409
3446
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3410
|
-
var
|
|
3447
|
+
var m = this.clonePosition();
|
|
3411
3448
|
if (!this.bumpIf("{"))
|
|
3412
|
-
return this.error(r === "select" ?
|
|
3413
|
-
var
|
|
3414
|
-
if (
|
|
3415
|
-
return
|
|
3416
|
-
var
|
|
3417
|
-
if (
|
|
3418
|
-
return
|
|
3449
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3450
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3451
|
+
if (g.err)
|
|
3452
|
+
return g;
|
|
3453
|
+
var p = this.tryParseArgumentClose(m);
|
|
3454
|
+
if (p.err)
|
|
3455
|
+
return p;
|
|
3419
3456
|
a.push([
|
|
3420
3457
|
u,
|
|
3421
3458
|
{
|
|
3422
|
-
value:
|
|
3423
|
-
location:
|
|
3459
|
+
value: g.val,
|
|
3460
|
+
location: d(m, this.clonePosition())
|
|
3424
3461
|
}
|
|
3425
3462
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3426
3463
|
}
|
|
3427
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3464
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3428
3465
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3429
3466
|
var n = 1, i = this.clonePosition();
|
|
3430
3467
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3435,8 +3472,8 @@ var Ln = (
|
|
|
3435
3472
|
else
|
|
3436
3473
|
break;
|
|
3437
3474
|
}
|
|
3438
|
-
var h =
|
|
3439
|
-
return o ? (s *= n,
|
|
3475
|
+
var h = d(i, this.clonePosition());
|
|
3476
|
+
return o ? (s *= n, Mn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3440
3477
|
}, e.prototype.offset = function() {
|
|
3441
3478
|
return this.position.offset;
|
|
3442
3479
|
}, e.prototype.isEOF = function() {
|
|
@@ -3470,7 +3507,7 @@ var Ln = (
|
|
|
3470
3507
|
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);
|
|
3471
3508
|
}
|
|
3472
3509
|
}, e.prototype.bumpIf = function(t) {
|
|
3473
|
-
if (
|
|
3510
|
+
if (mt(this.message, t, this.offset())) {
|
|
3474
3511
|
for (var r = 0; r < t.length; r++)
|
|
3475
3512
|
this.bump();
|
|
3476
3513
|
return !0;
|
|
@@ -3502,43 +3539,44 @@ var Ln = (
|
|
|
3502
3539
|
}, e;
|
|
3503
3540
|
}()
|
|
3504
3541
|
);
|
|
3505
|
-
function
|
|
3542
|
+
function ke(e) {
|
|
3506
3543
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3507
3544
|
}
|
|
3508
|
-
function
|
|
3509
|
-
return
|
|
3545
|
+
function Dn(e) {
|
|
3546
|
+
return ke(e) || e === 47;
|
|
3510
3547
|
}
|
|
3511
|
-
function
|
|
3548
|
+
function Un(e) {
|
|
3512
3549
|
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;
|
|
3513
3550
|
}
|
|
3514
3551
|
function Jt(e) {
|
|
3515
3552
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3516
3553
|
}
|
|
3517
|
-
function
|
|
3554
|
+
function Gn(e) {
|
|
3518
3555
|
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;
|
|
3519
3556
|
}
|
|
3520
|
-
function
|
|
3557
|
+
function Ve(e) {
|
|
3521
3558
|
e.forEach(function(t) {
|
|
3522
3559
|
if (delete t.location, Ft(t) || jt(t))
|
|
3523
3560
|
for (var r in t.options)
|
|
3524
|
-
delete t.options[r].location,
|
|
3525
|
-
else
|
|
3561
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3562
|
+
else
|
|
3563
|
+
Dt(t) && Vt(t.style) || (Ut(t) || Gt(t)) && Ue(t.style) ? delete t.style.location : kt(t) && Ve(t.children);
|
|
3526
3564
|
});
|
|
3527
3565
|
}
|
|
3528
|
-
function
|
|
3529
|
-
t === void 0 && (t = {}), t =
|
|
3530
|
-
var r = new
|
|
3566
|
+
function Fn(e, t) {
|
|
3567
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3568
|
+
var r = new Rn(e, t).parse();
|
|
3531
3569
|
if (r.err) {
|
|
3532
|
-
var n = SyntaxError(
|
|
3570
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3533
3571
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3534
3572
|
}
|
|
3535
|
-
return t?.captureLocation ||
|
|
3573
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3536
3574
|
}
|
|
3537
3575
|
var Y;
|
|
3538
3576
|
(function(e) {
|
|
3539
3577
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3540
3578
|
})(Y || (Y = {}));
|
|
3541
|
-
var
|
|
3579
|
+
var Ee = (
|
|
3542
3580
|
/** @class */
|
|
3543
3581
|
function(e) {
|
|
3544
3582
|
L(t, e);
|
|
@@ -3558,8 +3596,8 @@ var ve = (
|
|
|
3558
3596
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
|
|
3559
3597
|
}
|
|
3560
3598
|
return t;
|
|
3561
|
-
}(
|
|
3562
|
-
),
|
|
3599
|
+
}(Ee)
|
|
3600
|
+
), jn = (
|
|
3563
3601
|
/** @class */
|
|
3564
3602
|
function(e) {
|
|
3565
3603
|
L(t, e);
|
|
@@ -3567,8 +3605,8 @@ var ve = (
|
|
|
3567
3605
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3568
3606
|
}
|
|
3569
3607
|
return t;
|
|
3570
|
-
}(
|
|
3571
|
-
),
|
|
3608
|
+
}(Ee)
|
|
3609
|
+
), kn = (
|
|
3572
3610
|
/** @class */
|
|
3573
3611
|
function(e) {
|
|
3574
3612
|
L(t, e);
|
|
@@ -3576,21 +3614,21 @@ var ve = (
|
|
|
3576
3614
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3577
3615
|
}
|
|
3578
3616
|
return t;
|
|
3579
|
-
}(
|
|
3617
|
+
}(Ee)
|
|
3580
3618
|
), w;
|
|
3581
3619
|
(function(e) {
|
|
3582
3620
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3583
3621
|
})(w || (w = {}));
|
|
3584
|
-
function
|
|
3622
|
+
function Vn(e) {
|
|
3585
3623
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3586
3624
|
var n = t[t.length - 1];
|
|
3587
3625
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3588
3626
|
}, []);
|
|
3589
3627
|
}
|
|
3590
|
-
function
|
|
3628
|
+
function Xn(e) {
|
|
3591
3629
|
return typeof e == "function";
|
|
3592
3630
|
}
|
|
3593
|
-
function
|
|
3631
|
+
function me(e, t, r, n, i, o, s) {
|
|
3594
3632
|
if (e.length === 1 && ht(e[0]))
|
|
3595
3633
|
return [
|
|
3596
3634
|
{
|
|
@@ -3607,7 +3645,7 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3607
3645
|
});
|
|
3608
3646
|
continue;
|
|
3609
3647
|
}
|
|
3610
|
-
if (
|
|
3648
|
+
if (mn(l)) {
|
|
3611
3649
|
typeof o == "number" && a.push({
|
|
3612
3650
|
type: w.literal,
|
|
3613
3651
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3616,9 +3654,9 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3616
3654
|
}
|
|
3617
3655
|
var c = l.value;
|
|
3618
3656
|
if (!(i && c in i))
|
|
3619
|
-
throw new
|
|
3657
|
+
throw new kn(c, s);
|
|
3620
3658
|
var f = i[c];
|
|
3621
|
-
if (
|
|
3659
|
+
if (fn(l)) {
|
|
3622
3660
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3623
3661
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3624
3662
|
value: f
|
|
@@ -3626,79 +3664,79 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3626
3664
|
continue;
|
|
3627
3665
|
}
|
|
3628
3666
|
if (Ut(l)) {
|
|
3629
|
-
var
|
|
3667
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3630
3668
|
a.push({
|
|
3631
3669
|
type: w.literal,
|
|
3632
|
-
value: r.getDateTimeFormat(t,
|
|
3670
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3633
3671
|
});
|
|
3634
3672
|
continue;
|
|
3635
3673
|
}
|
|
3636
3674
|
if (Gt(l)) {
|
|
3637
|
-
var
|
|
3675
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3638
3676
|
a.push({
|
|
3639
3677
|
type: w.literal,
|
|
3640
|
-
value: r.getDateTimeFormat(t,
|
|
3678
|
+
value: r.getDateTimeFormat(t, m).format(f)
|
|
3641
3679
|
});
|
|
3642
3680
|
continue;
|
|
3643
3681
|
}
|
|
3644
3682
|
if (Dt(l)) {
|
|
3645
|
-
var
|
|
3646
|
-
|
|
3683
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Vt(l.style) ? l.style.parsedOptions : void 0;
|
|
3684
|
+
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3647
3685
|
type: w.literal,
|
|
3648
|
-
value: r.getNumberFormat(t,
|
|
3686
|
+
value: r.getNumberFormat(t, m).format(f)
|
|
3649
3687
|
});
|
|
3650
3688
|
continue;
|
|
3651
3689
|
}
|
|
3652
3690
|
if (kt(l)) {
|
|
3653
|
-
var
|
|
3654
|
-
if (!
|
|
3655
|
-
throw new
|
|
3656
|
-
var
|
|
3657
|
-
return
|
|
3691
|
+
var g = l.children, p = l.value, x = i[p];
|
|
3692
|
+
if (!Xn(x))
|
|
3693
|
+
throw new jn(p, "function", s);
|
|
3694
|
+
var A = me(g, t, r, n, i, o), H = x(A.map(function(S) {
|
|
3695
|
+
return S.value;
|
|
3658
3696
|
}));
|
|
3659
|
-
Array.isArray(
|
|
3697
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(S) {
|
|
3660
3698
|
return {
|
|
3661
|
-
type: typeof
|
|
3662
|
-
value:
|
|
3699
|
+
type: typeof S == "string" ? w.literal : w.object,
|
|
3700
|
+
value: S
|
|
3663
3701
|
};
|
|
3664
3702
|
}));
|
|
3665
3703
|
}
|
|
3666
3704
|
if (Ft(l)) {
|
|
3667
|
-
var
|
|
3668
|
-
if (!
|
|
3705
|
+
var T = l.options[f] || l.options.other;
|
|
3706
|
+
if (!T)
|
|
3669
3707
|
throw new dt(l.value, f, Object.keys(l.options), s);
|
|
3670
|
-
a.push.apply(a,
|
|
3708
|
+
a.push.apply(a, me(T.value, t, r, n, i));
|
|
3671
3709
|
continue;
|
|
3672
3710
|
}
|
|
3673
3711
|
if (jt(l)) {
|
|
3674
|
-
var
|
|
3675
|
-
if (!
|
|
3712
|
+
var T = l.options["=".concat(f)];
|
|
3713
|
+
if (!T) {
|
|
3676
3714
|
if (!Intl.PluralRules)
|
|
3677
|
-
throw new
|
|
3715
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3678
3716
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3679
3717
|
`, Y.MISSING_INTL_API, s);
|
|
3680
|
-
var
|
|
3681
|
-
|
|
3718
|
+
var v = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3719
|
+
T = l.options[v] || l.options.other;
|
|
3682
3720
|
}
|
|
3683
|
-
if (!
|
|
3721
|
+
if (!T)
|
|
3684
3722
|
throw new dt(l.value, f, Object.keys(l.options), s);
|
|
3685
|
-
a.push.apply(a,
|
|
3723
|
+
a.push.apply(a, me(T.value, t, r, n, i, f - (l.offset || 0)));
|
|
3686
3724
|
continue;
|
|
3687
3725
|
}
|
|
3688
3726
|
}
|
|
3689
|
-
return
|
|
3727
|
+
return Vn(a);
|
|
3690
3728
|
}
|
|
3691
|
-
function
|
|
3692
|
-
return t ?
|
|
3693
|
-
return r[n] =
|
|
3729
|
+
function Wn(e, t) {
|
|
3730
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3731
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3694
3732
|
}, {})) : e;
|
|
3695
3733
|
}
|
|
3696
|
-
function
|
|
3734
|
+
function zn(e, t) {
|
|
3697
3735
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3698
|
-
return r[n] =
|
|
3699
|
-
},
|
|
3736
|
+
return r[n] = Wn(e[n], t[n]), r;
|
|
3737
|
+
}, y({}, e)) : e;
|
|
3700
3738
|
}
|
|
3701
|
-
function
|
|
3739
|
+
function Pe(e) {
|
|
3702
3740
|
return {
|
|
3703
3741
|
create: function() {
|
|
3704
3742
|
return {
|
|
@@ -3712,39 +3750,39 @@ function Ae(e) {
|
|
|
3712
3750
|
}
|
|
3713
3751
|
};
|
|
3714
3752
|
}
|
|
3715
|
-
function
|
|
3753
|
+
function Zn(e) {
|
|
3716
3754
|
return e === void 0 && (e = {
|
|
3717
3755
|
number: {},
|
|
3718
3756
|
dateTime: {},
|
|
3719
3757
|
pluralRules: {}
|
|
3720
3758
|
}), {
|
|
3721
|
-
getNumberFormat:
|
|
3759
|
+
getNumberFormat: we(function() {
|
|
3722
3760
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3723
3761
|
r[n] = arguments[n];
|
|
3724
3762
|
return new ((t = Intl.NumberFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3725
3763
|
}, {
|
|
3726
|
-
cache:
|
|
3764
|
+
cache: Pe(e.number),
|
|
3727
3765
|
strategy: He.variadic
|
|
3728
3766
|
}),
|
|
3729
|
-
getDateTimeFormat:
|
|
3767
|
+
getDateTimeFormat: we(function() {
|
|
3730
3768
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3731
3769
|
r[n] = arguments[n];
|
|
3732
3770
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, W([void 0], r, !1)))();
|
|
3733
3771
|
}, {
|
|
3734
|
-
cache:
|
|
3772
|
+
cache: Pe(e.dateTime),
|
|
3735
3773
|
strategy: He.variadic
|
|
3736
3774
|
}),
|
|
3737
|
-
getPluralRules:
|
|
3775
|
+
getPluralRules: we(function() {
|
|
3738
3776
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3739
3777
|
r[n] = arguments[n];
|
|
3740
3778
|
return new ((t = Intl.PluralRules).bind.apply(t, W([void 0], r, !1)))();
|
|
3741
3779
|
}, {
|
|
3742
|
-
cache:
|
|
3780
|
+
cache: Pe(e.pluralRules),
|
|
3743
3781
|
strategy: He.variadic
|
|
3744
3782
|
})
|
|
3745
3783
|
};
|
|
3746
3784
|
}
|
|
3747
|
-
var
|
|
3785
|
+
var Yn = (
|
|
3748
3786
|
/** @class */
|
|
3749
3787
|
function() {
|
|
3750
3788
|
function e(t, r, n, i) {
|
|
@@ -3763,7 +3801,7 @@ var zn = (
|
|
|
3763
3801
|
}, []);
|
|
3764
3802
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3765
3803
|
}, this.formatToParts = function(h) {
|
|
3766
|
-
return
|
|
3804
|
+
return me(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3767
3805
|
}, this.resolvedOptions = function() {
|
|
3768
3806
|
var h;
|
|
3769
3807
|
return {
|
|
@@ -3776,13 +3814,13 @@ var zn = (
|
|
|
3776
3814
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3777
3815
|
var s = i || {};
|
|
3778
3816
|
s.formatters;
|
|
3779
|
-
var a =
|
|
3780
|
-
this.ast = e.__parse(t,
|
|
3817
|
+
var a = Hr(s, ["formatters"]);
|
|
3818
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3781
3819
|
} else
|
|
3782
3820
|
this.ast = t;
|
|
3783
3821
|
if (!Array.isArray(this.ast))
|
|
3784
3822
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3785
|
-
this.formats =
|
|
3823
|
+
this.formats = zn(e.formats, n), this.formatters = i && i.formatters || Zn(this.formatterCache);
|
|
3786
3824
|
}
|
|
3787
3825
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3788
3826
|
get: function() {
|
|
@@ -3795,7 +3833,7 @@ var zn = (
|
|
|
3795
3833
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3796
3834
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3797
3835
|
}
|
|
3798
|
-
}, e.__parse =
|
|
3836
|
+
}, e.__parse = Fn, e.formats = {
|
|
3799
3837
|
number: {
|
|
3800
3838
|
integer: {
|
|
3801
3839
|
maximumFractionDigits: 0
|
|
@@ -3856,7 +3894,7 @@ var zn = (
|
|
|
3856
3894
|
}, e;
|
|
3857
3895
|
}()
|
|
3858
3896
|
);
|
|
3859
|
-
function
|
|
3897
|
+
function Qn(e, t) {
|
|
3860
3898
|
if (t == null)
|
|
3861
3899
|
return;
|
|
3862
3900
|
if (t in e)
|
|
@@ -3877,36 +3915,36 @@ function Zn(e, t) {
|
|
|
3877
3915
|
n = void 0;
|
|
3878
3916
|
return n;
|
|
3879
3917
|
}
|
|
3880
|
-
const
|
|
3918
|
+
const R = {}, Jn = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), qt = (e, t) => {
|
|
3881
3919
|
if (t == null)
|
|
3882
3920
|
return;
|
|
3883
|
-
if (t in
|
|
3884
|
-
return
|
|
3885
|
-
const r =
|
|
3921
|
+
if (t in R && e in R[t])
|
|
3922
|
+
return R[t][e];
|
|
3923
|
+
const r = _e(t);
|
|
3886
3924
|
for (let n = 0; n < r.length; n++) {
|
|
3887
|
-
const i = r[n], o =
|
|
3925
|
+
const i = r[n], o = Kn(i, e);
|
|
3888
3926
|
if (o)
|
|
3889
|
-
return
|
|
3927
|
+
return Jn(e, t, o);
|
|
3890
3928
|
}
|
|
3891
3929
|
};
|
|
3892
3930
|
let Je;
|
|
3893
|
-
const
|
|
3894
|
-
function
|
|
3931
|
+
const ue = ve({});
|
|
3932
|
+
function qn(e) {
|
|
3895
3933
|
return Je[e] || null;
|
|
3896
3934
|
}
|
|
3897
3935
|
function Kt(e) {
|
|
3898
3936
|
return e in Je;
|
|
3899
3937
|
}
|
|
3900
|
-
function
|
|
3938
|
+
function Kn(e, t) {
|
|
3901
3939
|
if (!Kt(e))
|
|
3902
3940
|
return null;
|
|
3903
|
-
const r =
|
|
3904
|
-
return
|
|
3941
|
+
const r = qn(e);
|
|
3942
|
+
return Qn(r, t);
|
|
3905
3943
|
}
|
|
3906
|
-
function
|
|
3944
|
+
function ei(e) {
|
|
3907
3945
|
if (e == null)
|
|
3908
3946
|
return;
|
|
3909
|
-
const t =
|
|
3947
|
+
const t = _e(e);
|
|
3910
3948
|
for (let r = 0; r < t.length; r++) {
|
|
3911
3949
|
const n = t[r];
|
|
3912
3950
|
if (Kt(n))
|
|
@@ -3914,55 +3952,55 @@ function qn(e) {
|
|
|
3914
3952
|
}
|
|
3915
3953
|
}
|
|
3916
3954
|
function er(e, ...t) {
|
|
3917
|
-
delete
|
|
3955
|
+
delete R[e], ue.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3918
3956
|
}
|
|
3919
3957
|
J(
|
|
3920
|
-
[
|
|
3958
|
+
[ue],
|
|
3921
3959
|
([e]) => Object.keys(e)
|
|
3922
3960
|
);
|
|
3923
|
-
|
|
3961
|
+
ue.subscribe((e) => Je = e);
|
|
3924
3962
|
const pe = {};
|
|
3925
|
-
function
|
|
3963
|
+
function ti(e, t) {
|
|
3926
3964
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3927
3965
|
}
|
|
3928
3966
|
function tr(e) {
|
|
3929
3967
|
return pe[e];
|
|
3930
3968
|
}
|
|
3931
|
-
function
|
|
3932
|
-
return
|
|
3969
|
+
function ri(e) {
|
|
3970
|
+
return _e(e).map((t) => {
|
|
3933
3971
|
const r = tr(t);
|
|
3934
3972
|
return [t, r ? [...r] : []];
|
|
3935
3973
|
}).filter(([, t]) => t.length > 0);
|
|
3936
3974
|
}
|
|
3937
|
-
function
|
|
3938
|
-
return e == null ? !1 :
|
|
3975
|
+
function Xe(e) {
|
|
3976
|
+
return e == null ? !1 : _e(e).some(
|
|
3939
3977
|
(t) => {
|
|
3940
3978
|
var r;
|
|
3941
3979
|
return (r = tr(t)) == null ? void 0 : r.size;
|
|
3942
3980
|
}
|
|
3943
3981
|
);
|
|
3944
3982
|
}
|
|
3945
|
-
function
|
|
3983
|
+
function ni(e, t) {
|
|
3946
3984
|
return Promise.all(
|
|
3947
|
-
t.map((n) => (
|
|
3985
|
+
t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
|
|
3948
3986
|
).then((n) => er(e, ...n));
|
|
3949
3987
|
}
|
|
3950
3988
|
const ee = {};
|
|
3951
3989
|
function rr(e) {
|
|
3952
|
-
if (!
|
|
3990
|
+
if (!Xe(e))
|
|
3953
3991
|
return e in ee ? ee[e] : Promise.resolve();
|
|
3954
|
-
const t =
|
|
3992
|
+
const t = ri(e);
|
|
3955
3993
|
return ee[e] = Promise.all(
|
|
3956
3994
|
t.map(
|
|
3957
|
-
([r, n]) =>
|
|
3995
|
+
([r, n]) => ni(r, n)
|
|
3958
3996
|
)
|
|
3959
3997
|
).then(() => {
|
|
3960
|
-
if (
|
|
3998
|
+
if (Xe(e))
|
|
3961
3999
|
return rr(e);
|
|
3962
4000
|
delete ee[e];
|
|
3963
4001
|
}), ee[e];
|
|
3964
4002
|
}
|
|
3965
|
-
const
|
|
4003
|
+
const ii = {
|
|
3966
4004
|
number: {
|
|
3967
4005
|
scientific: { notation: "scientific" },
|
|
3968
4006
|
engineering: { notation: "engineering" },
|
|
@@ -3991,135 +4029,135 @@ const ri = {
|
|
|
3991
4029
|
timeZoneName: "short"
|
|
3992
4030
|
}
|
|
3993
4031
|
}
|
|
3994
|
-
},
|
|
4032
|
+
}, oi = {
|
|
3995
4033
|
fallbackLocale: null,
|
|
3996
4034
|
loadingDelay: 200,
|
|
3997
|
-
formats:
|
|
4035
|
+
formats: ii,
|
|
3998
4036
|
warnOnMissingMessages: !0,
|
|
3999
4037
|
handleMissingMessage: void 0,
|
|
4000
4038
|
ignoreTag: !0
|
|
4001
|
-
},
|
|
4039
|
+
}, si = oi;
|
|
4002
4040
|
function Q() {
|
|
4003
|
-
return
|
|
4041
|
+
return si;
|
|
4004
4042
|
}
|
|
4005
|
-
const
|
|
4006
|
-
var
|
|
4043
|
+
const Oe = ve(!1);
|
|
4044
|
+
var ai = Object.defineProperty, ui = Object.defineProperties, hi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fi = (e, t) => {
|
|
4007
4045
|
for (var r in t || (t = {}))
|
|
4008
|
-
|
|
4046
|
+
li.call(t, r) && yt(e, r, t[r]);
|
|
4009
4047
|
if (gt)
|
|
4010
4048
|
for (var r of gt(t))
|
|
4011
|
-
|
|
4049
|
+
ci.call(t, r) && yt(e, r, t[r]);
|
|
4012
4050
|
return e;
|
|
4013
|
-
},
|
|
4014
|
-
let
|
|
4015
|
-
const
|
|
4051
|
+
}, mi = (e, t) => ui(e, hi(t));
|
|
4052
|
+
let We;
|
|
4053
|
+
const be = ve(null);
|
|
4016
4054
|
function vt(e) {
|
|
4017
4055
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4018
4056
|
}
|
|
4019
|
-
function
|
|
4057
|
+
function _e(e, t = Q().fallbackLocale) {
|
|
4020
4058
|
const r = vt(e);
|
|
4021
4059
|
return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
|
|
4022
4060
|
}
|
|
4023
4061
|
function G() {
|
|
4024
|
-
return
|
|
4062
|
+
return We ?? void 0;
|
|
4025
4063
|
}
|
|
4026
|
-
|
|
4027
|
-
|
|
4064
|
+
be.subscribe((e) => {
|
|
4065
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4028
4066
|
});
|
|
4029
|
-
const
|
|
4030
|
-
if (e &&
|
|
4067
|
+
const pi = (e) => {
|
|
4068
|
+
if (e && ei(e) && Xe(e)) {
|
|
4031
4069
|
const { loadingDelay: t } = Q();
|
|
4032
4070
|
let r;
|
|
4033
4071
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4034
|
-
() =>
|
|
4072
|
+
() => Oe.set(!0),
|
|
4035
4073
|
t
|
|
4036
|
-
) :
|
|
4037
|
-
|
|
4074
|
+
) : Oe.set(!0), rr(e).then(() => {
|
|
4075
|
+
be.set(e);
|
|
4038
4076
|
}).finally(() => {
|
|
4039
|
-
clearTimeout(r),
|
|
4077
|
+
clearTimeout(r), Oe.set(!1);
|
|
4040
4078
|
});
|
|
4041
4079
|
}
|
|
4042
|
-
return
|
|
4043
|
-
}, q =
|
|
4044
|
-
set:
|
|
4045
|
-
}),
|
|
4080
|
+
return be.set(e);
|
|
4081
|
+
}, q = mi(fi({}, be), {
|
|
4082
|
+
set: pi
|
|
4083
|
+
}), xe = (e) => {
|
|
4046
4084
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4047
4085
|
return (n) => {
|
|
4048
4086
|
const i = JSON.stringify(n);
|
|
4049
4087
|
return i in t ? t[i] : t[i] = e(n);
|
|
4050
4088
|
};
|
|
4051
4089
|
};
|
|
4052
|
-
var
|
|
4090
|
+
var bi = Object.defineProperty, de = Object.getOwnPropertySymbols, nr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4053
4091
|
for (var r in t || (t = {}))
|
|
4054
4092
|
nr.call(t, r) && Et(e, r, t[r]);
|
|
4055
|
-
if (
|
|
4056
|
-
for (var r of
|
|
4093
|
+
if (de)
|
|
4094
|
+
for (var r of de(t))
|
|
4057
4095
|
ir.call(t, r) && Et(e, r, t[r]);
|
|
4058
4096
|
return e;
|
|
4059
4097
|
}, K = (e, t) => {
|
|
4060
4098
|
var r = {};
|
|
4061
4099
|
for (var n in e)
|
|
4062
4100
|
nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4063
|
-
if (e != null &&
|
|
4064
|
-
for (var n of
|
|
4101
|
+
if (e != null && de)
|
|
4102
|
+
for (var n of de(e))
|
|
4065
4103
|
t.indexOf(n) < 0 && ir.call(e, n) && (r[n] = e[n]);
|
|
4066
4104
|
return r;
|
|
4067
4105
|
};
|
|
4068
|
-
const
|
|
4106
|
+
const se = (e, t) => {
|
|
4069
4107
|
const { formats: r } = Q();
|
|
4070
4108
|
if (e in r && t in r[e])
|
|
4071
4109
|
return r[e][t];
|
|
4072
4110
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4073
|
-
},
|
|
4111
|
+
}, di = xe(
|
|
4074
4112
|
(e) => {
|
|
4075
4113
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4076
4114
|
if (r == null)
|
|
4077
4115
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4078
|
-
return n && (i =
|
|
4116
|
+
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
4079
4117
|
}
|
|
4080
|
-
),
|
|
4118
|
+
), gi = xe(
|
|
4081
4119
|
(e) => {
|
|
4082
4120
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4083
4121
|
if (r == null)
|
|
4084
4122
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4085
|
-
return n ? i =
|
|
4123
|
+
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4086
4124
|
}
|
|
4087
|
-
),
|
|
4125
|
+
), yi = xe(
|
|
4088
4126
|
(e) => {
|
|
4089
4127
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4090
4128
|
if (r == null)
|
|
4091
4129
|
throw new Error(
|
|
4092
4130
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4093
4131
|
);
|
|
4094
|
-
return n ? i =
|
|
4132
|
+
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4095
4133
|
}
|
|
4096
|
-
),
|
|
4134
|
+
), vi = (e = {}) => {
|
|
4097
4135
|
var t = e, {
|
|
4098
4136
|
locale: r = G()
|
|
4099
4137
|
} = t, n = K(t, [
|
|
4100
4138
|
"locale"
|
|
4101
4139
|
]);
|
|
4102
|
-
return
|
|
4103
|
-
},
|
|
4140
|
+
return di(qe({ locale: r }, n));
|
|
4141
|
+
}, Ei = (e = {}) => {
|
|
4104
4142
|
var t = e, {
|
|
4105
4143
|
locale: r = G()
|
|
4106
4144
|
} = t, n = K(t, [
|
|
4107
4145
|
"locale"
|
|
4108
4146
|
]);
|
|
4109
|
-
return
|
|
4110
|
-
},
|
|
4147
|
+
return gi(qe({ locale: r }, n));
|
|
4148
|
+
}, _i = (e = {}) => {
|
|
4111
4149
|
var t = e, {
|
|
4112
4150
|
locale: r = G()
|
|
4113
4151
|
} = t, n = K(t, [
|
|
4114
4152
|
"locale"
|
|
4115
4153
|
]);
|
|
4116
|
-
return
|
|
4117
|
-
},
|
|
4154
|
+
return yi(qe({ locale: r }, n));
|
|
4155
|
+
}, xi = xe(
|
|
4118
4156
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4119
|
-
(e, t = G()) => new
|
|
4157
|
+
(e, t = G()) => new Yn(e, t, Q().formats, {
|
|
4120
4158
|
ignoreTag: Q().ignoreTag
|
|
4121
4159
|
})
|
|
4122
|
-
),
|
|
4160
|
+
), Bi = (e, t = {}) => {
|
|
4123
4161
|
var r, n, i, o;
|
|
4124
4162
|
let s = t;
|
|
4125
4163
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4143,7 +4181,7 @@ const oe = (e, t) => {
|
|
|
4143
4181
|
return l;
|
|
4144
4182
|
let c = l;
|
|
4145
4183
|
try {
|
|
4146
|
-
c =
|
|
4184
|
+
c = xi(l, h).format(a);
|
|
4147
4185
|
} catch (f) {
|
|
4148
4186
|
f instanceof Error && console.warn(
|
|
4149
4187
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4151,17 +4189,17 @@ const oe = (e, t) => {
|
|
|
4151
4189
|
);
|
|
4152
4190
|
}
|
|
4153
4191
|
return c;
|
|
4154
|
-
},
|
|
4155
|
-
J([q], () => xi);
|
|
4156
|
-
J([q], () => Bi);
|
|
4192
|
+
}, Si = (e, t) => _i(t).format(e), Ti = (e, t) => Ei(t).format(e), wi = (e, t) => vi(t).format(e), Hi = (e, t = G()) => qt(e, t), Ai = J([q, ue], () => Bi);
|
|
4157
4193
|
J([q], () => Si);
|
|
4158
|
-
J([q
|
|
4159
|
-
|
|
4160
|
-
|
|
4194
|
+
J([q], () => Ti);
|
|
4195
|
+
J([q], () => wi);
|
|
4196
|
+
J([q, ue], () => Hi);
|
|
4197
|
+
window.emWidgets = { topic: Fr };
|
|
4198
|
+
const Pi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4161
4199
|
function _t(e, t) {
|
|
4162
4200
|
er(e, t);
|
|
4163
4201
|
}
|
|
4164
|
-
function
|
|
4202
|
+
function Oi(e) {
|
|
4165
4203
|
q.set(e);
|
|
4166
4204
|
}
|
|
4167
4205
|
const xt = {
|
|
@@ -4243,47 +4281,70 @@ const xt = {
|
|
|
4243
4281
|
btnDisableBiometrics: "Disable biometrics"
|
|
4244
4282
|
}
|
|
4245
4283
|
};
|
|
4246
|
-
function
|
|
4284
|
+
function Ii(e, t) {
|
|
4285
|
+
if (e) {
|
|
4286
|
+
const r = document.createElement("style");
|
|
4287
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4288
|
+
}
|
|
4289
|
+
}
|
|
4290
|
+
function Ni(e, t) {
|
|
4291
|
+
const r = new URL(t);
|
|
4292
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4293
|
+
const i = document.createElement("style");
|
|
4294
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4295
|
+
}).catch((n) => {
|
|
4296
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
4297
|
+
});
|
|
4298
|
+
}
|
|
4299
|
+
function Mi(e, t, r) {
|
|
4300
|
+
if (window.emMessageBus) {
|
|
4301
|
+
const n = document.createElement("style");
|
|
4302
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4303
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4304
|
+
});
|
|
4305
|
+
}
|
|
4306
|
+
}
|
|
4307
|
+
function Ci(e) {
|
|
4247
4308
|
ar(e, "svelte-1cpvxby", ".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, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.BiometricsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));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 .BiometricsToggle{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}");
|
|
4248
4309
|
}
|
|
4249
|
-
function
|
|
4310
|
+
function Li(e) {
|
|
4250
4311
|
let t, r, n, i, o, s, a, h, u, l, c = (
|
|
4251
4312
|
/*$_*/
|
|
4252
4313
|
e[2]("titleBiometrics") + ""
|
|
4253
|
-
), f,
|
|
4314
|
+
), f, m, g;
|
|
4254
4315
|
return {
|
|
4255
4316
|
c() {
|
|
4256
|
-
t =
|
|
4317
|
+
t = O("div"), r = F("svg"), n = F("defs"), i = F("style"), o = U(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), s = F("g"), a = F("g"), h = F("path"), u = te(), l = O("h2"), f = U(c), B(h, "class", "aaa"), B(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(h, "transform", "translate(15 15) rotate(180)"), B(a, "transform", "translate(20 158)"), B(s, "transform", "translate(-20 -158)"), B(r, "xmlns", "http://www.w3.org/2000/svg"), B(r, "width", "15"), B(r, "height", "15"), B(r, "viewBox", "0 0 15 15"), B(l, "class", "BiometricsTitleMobile"), B(l, "part", "BiometricsTitleMobile"), B(t, "class", "MenuReturnButton"), B(t, "part", "MenuReturnButton");
|
|
4257
4318
|
},
|
|
4258
|
-
m(
|
|
4259
|
-
|
|
4319
|
+
m(p, x) {
|
|
4320
|
+
Ze(p, t, x), 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), m || (g = wt(
|
|
4260
4321
|
t,
|
|
4261
4322
|
"click",
|
|
4262
4323
|
/*click_handler*/
|
|
4263
|
-
e[
|
|
4264
|
-
),
|
|
4324
|
+
e[11]
|
|
4325
|
+
), m = !0);
|
|
4265
4326
|
},
|
|
4266
|
-
p(
|
|
4327
|
+
p(p, x) {
|
|
4267
4328
|
x & /*$_*/
|
|
4268
4329
|
4 && c !== (c = /*$_*/
|
|
4269
|
-
|
|
4330
|
+
p[2]("titleBiometrics") + "") && re(f, c);
|
|
4270
4331
|
},
|
|
4271
|
-
d(
|
|
4272
|
-
|
|
4332
|
+
d(p) {
|
|
4333
|
+
p && ge(t), m = !1, g();
|
|
4273
4334
|
}
|
|
4274
4335
|
};
|
|
4275
4336
|
}
|
|
4276
|
-
function
|
|
4337
|
+
function $i(e) {
|
|
4277
4338
|
let t, r, n, i, o = (
|
|
4278
4339
|
/*$_*/
|
|
4279
4340
|
e[2]("titleBiometrics") + ""
|
|
4280
4341
|
), s, a, h, u, l = (
|
|
4281
4342
|
/*$_*/
|
|
4282
4343
|
e[2]("descriptionParagraph1") + ""
|
|
4283
|
-
), c, f,
|
|
4344
|
+
), c, f, m, g = (
|
|
4284
4345
|
/*$_*/
|
|
4285
4346
|
e[2]("descriptionParagraph2") + ""
|
|
4286
|
-
),
|
|
4347
|
+
), p, x, A, H, T = (
|
|
4287
4348
|
/*biometricsenabled*/
|
|
4288
4349
|
(e[0] === "true" ? (
|
|
4289
4350
|
/*$_*/
|
|
@@ -4292,175 +4353,174 @@ function Ii(e) {
|
|
|
4292
4353
|
/*$_*/
|
|
4293
4354
|
e[2]("btnEnableBiometrics")
|
|
4294
4355
|
)) + ""
|
|
4295
|
-
),
|
|
4356
|
+
), v, S, N, M = (
|
|
4296
4357
|
/*isMobile*/
|
|
4297
|
-
e[3] &&
|
|
4358
|
+
e[3] && Li(e)
|
|
4298
4359
|
);
|
|
4299
4360
|
return {
|
|
4300
4361
|
c() {
|
|
4301
|
-
t =
|
|
4362
|
+
t = O("div"), r = O("div"), M && M.c(), n = te(), i = O("h2"), s = U(o), a = te(), h = O("div"), u = O("p"), c = U(l), f = te(), m = O("p"), p = U(g), x = te(), A = O("div"), H = O("button"), v = U(T), B(i, "class", "BiometricsTitle " + /*isMobile*/
|
|
4302
4363
|
(e[3] ? "BiometricsTitleNone" : "")), B(h, "class", "BiometricsDescription " + /*isMobile*/
|
|
4303
|
-
(e[3] ? "BiometricsDescriptionMobile" : "")), B(
|
|
4364
|
+
(e[3] ? "BiometricsDescriptionMobile" : "")), B(H, "class", "BiometricsToggle"), B(A, "class", "BiometricsActionButtons " + /*isMobile*/
|
|
4304
4365
|
(e[3] ? "BiometricsActionButtonsMobile" : "")), B(r, "class", "BiometricsWrapper " + /*isMobile*/
|
|
4305
4366
|
(e[3] ? "BiometricsWrapperMobile" : ""));
|
|
4306
4367
|
},
|
|
4307
|
-
m(
|
|
4308
|
-
|
|
4309
|
-
|
|
4368
|
+
m(P, D) {
|
|
4369
|
+
Ze(P, t, D), E(t, r), M && M.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, m), E(m, p), E(r, x), E(r, A), E(A, H), E(H, v), e[13](t), S || (N = wt(
|
|
4370
|
+
H,
|
|
4310
4371
|
"click",
|
|
4311
4372
|
/*click_handler_1*/
|
|
4312
|
-
e[
|
|
4313
|
-
),
|
|
4373
|
+
e[12]
|
|
4374
|
+
), S = !0);
|
|
4314
4375
|
},
|
|
4315
|
-
p(
|
|
4376
|
+
p(P, [D]) {
|
|
4316
4377
|
/*isMobile*/
|
|
4317
|
-
|
|
4378
|
+
P[3] && M.p(P, D), D & /*$_*/
|
|
4318
4379
|
4 && o !== (o = /*$_*/
|
|
4319
|
-
|
|
4380
|
+
P[2]("titleBiometrics") + "") && re(s, o), D & /*$_*/
|
|
4320
4381
|
4 && l !== (l = /*$_*/
|
|
4321
|
-
|
|
4322
|
-
4 &&
|
|
4323
|
-
|
|
4324
|
-
5 &&
|
|
4325
|
-
(
|
|
4382
|
+
P[2]("descriptionParagraph1") + "") && re(c, l), D & /*$_*/
|
|
4383
|
+
4 && g !== (g = /*$_*/
|
|
4384
|
+
P[2]("descriptionParagraph2") + "") && re(p, g), D & /*biometricsenabled, $_*/
|
|
4385
|
+
5 && T !== (T = /*biometricsenabled*/
|
|
4386
|
+
(P[0] === "true" ? (
|
|
4326
4387
|
/*$_*/
|
|
4327
|
-
|
|
4388
|
+
P[2]("btnDisableBiometrics")
|
|
4328
4389
|
) : (
|
|
4329
4390
|
/*$_*/
|
|
4330
|
-
|
|
4331
|
-
)) + "") && re(
|
|
4391
|
+
P[2]("btnEnableBiometrics")
|
|
4392
|
+
)) + "") && re(v, T);
|
|
4332
4393
|
},
|
|
4333
|
-
i:
|
|
4334
|
-
o:
|
|
4335
|
-
d(
|
|
4336
|
-
|
|
4394
|
+
i: I,
|
|
4395
|
+
o: I,
|
|
4396
|
+
d(P) {
|
|
4397
|
+
P && ge(t), M && M.d(), e[13](null), S = !1, N();
|
|
4337
4398
|
}
|
|
4338
4399
|
};
|
|
4339
4400
|
}
|
|
4340
|
-
function
|
|
4401
|
+
function Ri(e, t, r) {
|
|
4341
4402
|
let n;
|
|
4342
|
-
sr(e,
|
|
4343
|
-
let { biometricsenabled: i = "false" } = t, { lang: o = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, {
|
|
4344
|
-
const
|
|
4345
|
-
fetch(
|
|
4346
|
-
Object.keys(
|
|
4347
|
-
_t(
|
|
4403
|
+
sr(e, Ai, (v) => r(2, n = v));
|
|
4404
|
+
let { biometricsenabled: i = "false" } = t, { lang: o = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: h } = t, { translationurl: u = "" } = t, l, c = window.navigator.userAgent, f = Pi(c) !== "PC";
|
|
4405
|
+
const m = () => {
|
|
4406
|
+
fetch(u).then((S) => S.json()).then((S) => {
|
|
4407
|
+
Object.keys(S).forEach((N) => {
|
|
4408
|
+
_t(N, S[N]);
|
|
4348
4409
|
});
|
|
4349
|
-
}).catch((
|
|
4350
|
-
console.log(
|
|
4410
|
+
}).catch((S) => {
|
|
4411
|
+
console.log(S);
|
|
4351
4412
|
});
|
|
4352
4413
|
};
|
|
4353
|
-
Object.keys(xt).forEach((
|
|
4354
|
-
_t(
|
|
4414
|
+
Object.keys(xt).forEach((v) => {
|
|
4415
|
+
_t(v, xt[v]);
|
|
4355
4416
|
});
|
|
4356
|
-
const
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
}, y = () => {
|
|
4360
|
-
let b = new URL(a), T = document.createElement("style");
|
|
4361
|
-
fetch(b.href).then((H) => H.text()).then((H) => {
|
|
4362
|
-
T.innerHTML = H, setTimeout(
|
|
4363
|
-
() => {
|
|
4364
|
-
u.appendChild(T);
|
|
4365
|
-
},
|
|
4366
|
-
1
|
|
4367
|
-
);
|
|
4368
|
-
});
|
|
4369
|
-
}, m = () => {
|
|
4370
|
-
Ai(o);
|
|
4371
|
-
}, x = () => {
|
|
4417
|
+
const g = () => {
|
|
4418
|
+
Oi(o);
|
|
4419
|
+
}, p = () => {
|
|
4372
4420
|
window.postMessage(
|
|
4373
4421
|
{
|
|
4374
4422
|
type: "PlayerAccountMenuActive",
|
|
4375
|
-
isMobile:
|
|
4423
|
+
isMobile: f
|
|
4376
4424
|
},
|
|
4377
4425
|
window.location.href
|
|
4378
4426
|
);
|
|
4379
|
-
},
|
|
4427
|
+
}, x = () => {
|
|
4380
4428
|
i === "true" ? r(0, i = "false") : i === "false" && r(0, i = "true"), window.postMessage({
|
|
4381
4429
|
type: "ToggleBiometrics",
|
|
4382
4430
|
data: i
|
|
4383
4431
|
});
|
|
4384
|
-
}
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4432
|
+
};
|
|
4433
|
+
mr(() => () => {
|
|
4434
|
+
});
|
|
4435
|
+
const A = () => p(), H = () => x();
|
|
4436
|
+
function T(v) {
|
|
4437
|
+
Ie[v ? "unshift" : "push"](() => {
|
|
4438
|
+
l = v, r(1, l);
|
|
4388
4439
|
});
|
|
4389
4440
|
}
|
|
4390
|
-
return e.$$set = (
|
|
4391
|
-
"biometricsenabled" in
|
|
4441
|
+
return e.$$set = (v) => {
|
|
4442
|
+
"biometricsenabled" in v && r(0, i = v.biometricsenabled), "lang" in v && r(6, o = v.lang), "clientstyling" in v && r(7, s = v.clientstyling), "clientstylingurl" in v && r(8, a = v.clientstylingurl), "mbsource" in v && r(9, h = v.mbsource), "translationurl" in v && r(10, u = v.translationurl);
|
|
4392
4443
|
}, e.$$.update = () => {
|
|
4393
4444
|
e.$$.dirty & /*lang*/
|
|
4394
|
-
64 && o &&
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4445
|
+
64 && o && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4446
|
+
130 && s && l && Ii(l, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4447
|
+
258 && a && l && Ni(l, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4448
|
+
514 && h && l && Mi(l, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4449
|
+
1024 && u && m();
|
|
4398
4450
|
}, [
|
|
4399
4451
|
i,
|
|
4400
|
-
|
|
4452
|
+
l,
|
|
4401
4453
|
n,
|
|
4402
|
-
|
|
4454
|
+
f,
|
|
4455
|
+
p,
|
|
4403
4456
|
x,
|
|
4404
|
-
P,
|
|
4405
4457
|
o,
|
|
4406
4458
|
s,
|
|
4407
4459
|
a,
|
|
4408
4460
|
h,
|
|
4461
|
+
u,
|
|
4409
4462
|
A,
|
|
4410
|
-
|
|
4411
|
-
|
|
4463
|
+
H,
|
|
4464
|
+
T
|
|
4412
4465
|
];
|
|
4413
4466
|
}
|
|
4414
|
-
class
|
|
4467
|
+
class Di extends Tr {
|
|
4415
4468
|
constructor(t) {
|
|
4416
|
-
super(),
|
|
4469
|
+
super(), Br(
|
|
4417
4470
|
this,
|
|
4418
4471
|
t,
|
|
4419
|
-
|
|
4420
|
-
|
|
4472
|
+
Ri,
|
|
4473
|
+
$i,
|
|
4421
4474
|
St,
|
|
4422
4475
|
{
|
|
4423
4476
|
biometricsenabled: 0,
|
|
4424
4477
|
lang: 6,
|
|
4425
4478
|
clientstyling: 7,
|
|
4426
4479
|
clientstylingurl: 8,
|
|
4427
|
-
|
|
4480
|
+
mbsource: 9,
|
|
4481
|
+
translationurl: 10
|
|
4428
4482
|
},
|
|
4429
|
-
|
|
4483
|
+
Ci
|
|
4430
4484
|
);
|
|
4431
4485
|
}
|
|
4432
4486
|
get biometricsenabled() {
|
|
4433
4487
|
return this.$$.ctx[0];
|
|
4434
4488
|
}
|
|
4435
4489
|
set biometricsenabled(t) {
|
|
4436
|
-
this.$$set({ biometricsenabled: t }),
|
|
4490
|
+
this.$$set({ biometricsenabled: t }), $();
|
|
4437
4491
|
}
|
|
4438
4492
|
get lang() {
|
|
4439
4493
|
return this.$$.ctx[6];
|
|
4440
4494
|
}
|
|
4441
4495
|
set lang(t) {
|
|
4442
|
-
this.$$set({ lang: t }),
|
|
4496
|
+
this.$$set({ lang: t }), $();
|
|
4443
4497
|
}
|
|
4444
4498
|
get clientstyling() {
|
|
4445
4499
|
return this.$$.ctx[7];
|
|
4446
4500
|
}
|
|
4447
4501
|
set clientstyling(t) {
|
|
4448
|
-
this.$$set({ clientstyling: t }),
|
|
4502
|
+
this.$$set({ clientstyling: t }), $();
|
|
4449
4503
|
}
|
|
4450
4504
|
get clientstylingurl() {
|
|
4451
4505
|
return this.$$.ctx[8];
|
|
4452
4506
|
}
|
|
4453
4507
|
set clientstylingurl(t) {
|
|
4454
|
-
this.$$set({ clientstylingurl: t }),
|
|
4508
|
+
this.$$set({ clientstylingurl: t }), $();
|
|
4455
4509
|
}
|
|
4456
|
-
get
|
|
4510
|
+
get mbsource() {
|
|
4457
4511
|
return this.$$.ctx[9];
|
|
4458
4512
|
}
|
|
4513
|
+
set mbsource(t) {
|
|
4514
|
+
this.$$set({ mbsource: t }), $();
|
|
4515
|
+
}
|
|
4516
|
+
get translationurl() {
|
|
4517
|
+
return this.$$.ctx[10];
|
|
4518
|
+
}
|
|
4459
4519
|
set translationurl(t) {
|
|
4460
|
-
this.$$set({ translationurl: t }),
|
|
4520
|
+
this.$$set({ translationurl: t }), $();
|
|
4461
4521
|
}
|
|
4462
4522
|
}
|
|
4463
|
-
|
|
4523
|
+
Sr(Di, { biometricsenabled: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4464
4524
|
export {
|
|
4465
|
-
|
|
4525
|
+
Di as P
|
|
4466
4526
|
};
|