@everymatrix/general-logout 1.74.2 → 1.74.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-Cwvv1zzW.js → GeneralLogout-B08moOmV.js} +637 -651
- package/components/{GeneralLogout-BnOMXRHP.js → GeneralLogout-CjYbEKzP.js} +623 -637
- package/components/GeneralLogout-DpcP5J7P.cjs +18 -0
- package/es2015/general-logout.cjs +1 -1
- package/es2015/general-logout.js +1 -1
- package/esnext/general-logout.js +1 -1
- package/package.json +1 -1
- package/components/GeneralLogout-CyyPBWdw.cjs +0 -18
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function _t(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Je() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function ie(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(_t);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function We(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Et(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ir(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function St(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function Ht(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function or(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(St(t, r));
|
|
32
32
|
}
|
|
33
33
|
function S(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function sr(e, t, r) {
|
|
37
|
+
const n = ar(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = P("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, ur(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ar(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,7 +50,7 @@ function lr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function ur(e, t) {
|
|
54
54
|
return S(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
@@ -72,26 +72,26 @@ function q(e) {
|
|
|
72
72
|
function be(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function hr() {
|
|
76
76
|
return be(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Tt(e, t, r, n) {
|
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
80
80
|
}
|
|
81
81
|
function T(e, t, r) {
|
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function lr(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ht(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function fr(e, t, r, n) {
|
|
92
92
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function cr(e) {
|
|
95
95
|
const t = {};
|
|
96
96
|
return e.childNodes.forEach(
|
|
97
97
|
/** @param {Element} node */
|
|
@@ -104,22 +104,22 @@ let te;
|
|
|
104
104
|
function ee(e) {
|
|
105
105
|
te = e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function dr() {
|
|
108
108
|
if (!te)
|
|
109
109
|
throw new Error("Function called outside component initialization");
|
|
110
110
|
return te;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
112
|
+
function pr(e) {
|
|
113
|
+
dr().$$.on_mount.push(e);
|
|
114
114
|
}
|
|
115
|
-
const F = [],
|
|
115
|
+
const F = [], Oe = [];
|
|
116
116
|
let j = [];
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
117
|
+
const Ye = [], mr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Ie = !1;
|
|
119
|
+
function br() {
|
|
120
|
+
Ie || (Ie = !0, mr.then(w));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Le(e) {
|
|
123
123
|
j.push(e);
|
|
124
124
|
}
|
|
125
125
|
const Se = /* @__PURE__ */ new Set();
|
|
@@ -132,53 +132,53 @@ function w() {
|
|
|
132
132
|
try {
|
|
133
133
|
for (; D < F.length; ) {
|
|
134
134
|
const t = F[D];
|
|
135
|
-
D++, ee(t),
|
|
135
|
+
D++, ee(t), gr(t.$$);
|
|
136
136
|
}
|
|
137
137
|
} catch (t) {
|
|
138
138
|
throw F.length = 0, D = 0, t;
|
|
139
139
|
}
|
|
140
|
-
for (ee(null), F.length = 0, D = 0;
|
|
141
|
-
|
|
140
|
+
for (ee(null), F.length = 0, D = 0; Oe.length; )
|
|
141
|
+
Oe.pop()();
|
|
142
142
|
for (let t = 0; t < j.length; t += 1) {
|
|
143
143
|
const r = j[t];
|
|
144
144
|
Se.has(r) || (Se.add(r), r());
|
|
145
145
|
}
|
|
146
146
|
j.length = 0;
|
|
147
147
|
} while (F.length);
|
|
148
|
-
for (;
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
for (; Ye.length; )
|
|
149
|
+
Ye.pop()();
|
|
150
|
+
Ie = !1, Se.clear(), ee(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function gr(e) {
|
|
153
153
|
if (e.fragment !== null) {
|
|
154
154
|
e.update(), ie(e.before_update);
|
|
155
155
|
const t = e.dirty;
|
|
156
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
156
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function yr(e) {
|
|
160
160
|
const t = [], r = [];
|
|
161
161
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
e && e.i && (
|
|
163
|
+
const vr = /* @__PURE__ */ new Set();
|
|
164
|
+
function xr(e, t) {
|
|
165
|
+
e && e.i && (vr.delete(e), e.i(t));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function _r(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const o = e.$$.on_mount.map(
|
|
169
|
+
n && n.m(t, r), Le(() => {
|
|
170
|
+
const o = e.$$.on_mount.map(_t).filter(We);
|
|
171
171
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
172
|
-
}), i.forEach(
|
|
172
|
+
}), i.forEach(Le);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Er(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (yr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
178
|
+
function Sr(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (F.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Tr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
182
182
|
const h = te;
|
|
183
183
|
ee(e);
|
|
184
184
|
const u = e.$$ = {
|
|
@@ -188,7 +188,7 @@ function wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
188
188
|
props: o,
|
|
189
189
|
update: B,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: Je(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,28 +197,28 @@ function wr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: Je(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || h.$$.root
|
|
204
204
|
};
|
|
205
205
|
s && s(u.root);
|
|
206
206
|
let l = !1;
|
|
207
|
-
if (u.ctx = r
|
|
208
|
-
const
|
|
209
|
-
return u.ctx && i(u.ctx[
|
|
210
|
-
})
|
|
207
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...d) => {
|
|
208
|
+
const p = d.length ? d[0] : f;
|
|
209
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Sr(e, c)), f;
|
|
210
|
+
}), u.update(), l = !0, ie(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const
|
|
213
|
-
u.fragment && u.fragment.l(
|
|
212
|
+
const c = lr(t.target);
|
|
213
|
+
u.fragment && u.fragment.l(c), c.forEach(Z);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && xr(e.$$.fragment), _r(e, t.target, t.anchor), w();
|
|
217
217
|
}
|
|
218
218
|
ee(h);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let Bt;
|
|
221
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -277,7 +277,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = cr(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
@@ -364,8 +364,8 @@ function le(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let s = class extends
|
|
367
|
+
function Hr(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends Bt {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -393,7 +393,7 @@ function Ar(e, t, r, n, i, o) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
s, s;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class Br {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class Pr {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
Er(this, 1), this.$destroy = B;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,7 +421,7 @@ class Pr {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
424
|
+
if (!We(r))
|
|
425
425
|
return B;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
@@ -434,11 +434,11 @@ class Pr {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
440
|
+
const wr = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
|
|
442
442
|
/*! *****************************************************************************
|
|
443
443
|
Copyright (c) Microsoft Corporation.
|
|
444
444
|
|
|
@@ -453,18 +453,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
453
453
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
454
454
|
PERFORMANCE OF THIS SOFTWARE.
|
|
455
455
|
***************************************************************************** */
|
|
456
|
-
var
|
|
457
|
-
return
|
|
456
|
+
var Ne = function(e, t) {
|
|
457
|
+
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
458
458
|
r.__proto__ = n;
|
|
459
459
|
} || function(r, n) {
|
|
460
460
|
for (var i in n)
|
|
461
461
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
462
|
-
},
|
|
462
|
+
}, Ne(e, t);
|
|
463
463
|
};
|
|
464
464
|
function I(e, t) {
|
|
465
465
|
if (typeof t != "function" && t !== null)
|
|
466
466
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
467
|
-
|
|
467
|
+
Ne(e, t);
|
|
468
468
|
function r() {
|
|
469
469
|
this.constructor = e;
|
|
470
470
|
}
|
|
@@ -480,7 +480,7 @@ var g = function() {
|
|
|
480
480
|
return t;
|
|
481
481
|
}, g.apply(this, arguments);
|
|
482
482
|
};
|
|
483
|
-
function
|
|
483
|
+
function Ar(e, t) {
|
|
484
484
|
var r = {};
|
|
485
485
|
for (var n in e)
|
|
486
486
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -489,7 +489,7 @@ function Ir(e, t) {
|
|
|
489
489
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
490
490
|
return r;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Me(e) {
|
|
493
493
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
494
494
|
if (r)
|
|
495
495
|
return r.call(e);
|
|
@@ -501,7 +501,7 @@ function Ce(e) {
|
|
|
501
501
|
};
|
|
502
502
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Ce(e, t) {
|
|
505
505
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
506
506
|
if (!r)
|
|
507
507
|
return e;
|
|
@@ -530,13 +530,13 @@ function k(e, t, r) {
|
|
|
530
530
|
function O(e) {
|
|
531
531
|
return typeof e == "function";
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function wt(e) {
|
|
534
534
|
var t = function(n) {
|
|
535
535
|
Error.call(n), n.stack = new Error().stack;
|
|
536
536
|
}, r = e(t);
|
|
537
537
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
538
538
|
}
|
|
539
|
-
var Te =
|
|
539
|
+
var Te = wt(function(e) {
|
|
540
540
|
return function(r) {
|
|
541
541
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
542
542
|
` + r.map(function(n, i) {
|
|
@@ -545,7 +545,7 @@ var Te = Pt(function(e) {
|
|
|
545
545
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
546
546
|
};
|
|
547
547
|
});
|
|
548
|
-
function
|
|
548
|
+
function $e(e, t) {
|
|
549
549
|
if (e) {
|
|
550
550
|
var r = e.indexOf(t);
|
|
551
551
|
0 <= r && e.splice(r, 1);
|
|
@@ -563,7 +563,7 @@ var ge = function() {
|
|
|
563
563
|
if (s)
|
|
564
564
|
if (this._parentage = null, Array.isArray(s))
|
|
565
565
|
try {
|
|
566
|
-
for (var a =
|
|
566
|
+
for (var a = Me(s), h = a.next(); !h.done; h = a.next()) {
|
|
567
567
|
var u = h.value;
|
|
568
568
|
u.remove(this);
|
|
569
569
|
}
|
|
@@ -586,23 +586,23 @@ var ge = function() {
|
|
|
586
586
|
} catch (v) {
|
|
587
587
|
o = v instanceof Te ? v.errors : [v];
|
|
588
588
|
}
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
589
|
+
var c = this._finalizers;
|
|
590
|
+
if (c) {
|
|
591
591
|
this._finalizers = null;
|
|
592
592
|
try {
|
|
593
|
-
for (var
|
|
594
|
-
var
|
|
593
|
+
for (var f = Me(c), d = f.next(); !d.done; d = f.next()) {
|
|
594
|
+
var p = d.value;
|
|
595
595
|
try {
|
|
596
|
-
|
|
596
|
+
qe(p);
|
|
597
597
|
} catch (v) {
|
|
598
|
-
o = o ?? [], v instanceof Te ? o = k(k([],
|
|
598
|
+
o = o ?? [], v instanceof Te ? o = k(k([], Ce(o)), Ce(v.errors)) : o.push(v);
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
} catch (v) {
|
|
602
602
|
n = { error: v };
|
|
603
603
|
} finally {
|
|
604
604
|
try {
|
|
605
|
-
|
|
605
|
+
d && !d.done && (i = f.return) && i.call(f);
|
|
606
606
|
} finally {
|
|
607
607
|
if (n)
|
|
608
608
|
throw n.error;
|
|
@@ -616,7 +616,7 @@ var ge = function() {
|
|
|
616
616
|
var r;
|
|
617
617
|
if (t && t !== this)
|
|
618
618
|
if (this.closed)
|
|
619
|
-
|
|
619
|
+
qe(t);
|
|
620
620
|
else {
|
|
621
621
|
if (t instanceof e) {
|
|
622
622
|
if (t.closed || t._hasParent(this))
|
|
@@ -633,56 +633,56 @@ var ge = function() {
|
|
|
633
633
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
634
634
|
}, e.prototype._removeParent = function(t) {
|
|
635
635
|
var r = this._parentage;
|
|
636
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
636
|
+
r === t ? this._parentage = null : Array.isArray(r) && $e(r, t);
|
|
637
637
|
}, e.prototype.remove = function(t) {
|
|
638
638
|
var r = this._finalizers;
|
|
639
|
-
r &&
|
|
639
|
+
r && $e(r, t), t instanceof e && t._removeParent(this);
|
|
640
640
|
}, e.EMPTY = function() {
|
|
641
641
|
var t = new e();
|
|
642
642
|
return t.closed = !0, t;
|
|
643
643
|
}(), e;
|
|
644
|
-
}(),
|
|
645
|
-
function
|
|
644
|
+
}(), At = ge.EMPTY;
|
|
645
|
+
function Pt(e) {
|
|
646
646
|
return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function qe(e) {
|
|
649
649
|
O(e) ? e() : e.unsubscribe();
|
|
650
650
|
}
|
|
651
|
-
var
|
|
651
|
+
var Pr = {
|
|
652
652
|
onUnhandledError: null,
|
|
653
653
|
onStoppedNotification: null,
|
|
654
654
|
Promise: void 0,
|
|
655
655
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
656
656
|
useDeprecatedNextContext: !1
|
|
657
|
-
},
|
|
657
|
+
}, Or = {
|
|
658
658
|
setTimeout: function(e, t) {
|
|
659
659
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
660
660
|
r[n - 2] = arguments[n];
|
|
661
|
-
return setTimeout.apply(void 0, k([e, t],
|
|
661
|
+
return setTimeout.apply(void 0, k([e, t], Ce(r)));
|
|
662
662
|
},
|
|
663
663
|
clearTimeout: function(e) {
|
|
664
664
|
return clearTimeout(e);
|
|
665
665
|
},
|
|
666
666
|
delegate: void 0
|
|
667
667
|
};
|
|
668
|
-
function
|
|
669
|
-
|
|
668
|
+
function Ir(e) {
|
|
669
|
+
Or.setTimeout(function() {
|
|
670
670
|
throw e;
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Ke() {
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function fe(e) {
|
|
676
676
|
e();
|
|
677
677
|
}
|
|
678
|
-
var
|
|
678
|
+
var Ot = function(e) {
|
|
679
679
|
I(t, e);
|
|
680
680
|
function t(r) {
|
|
681
681
|
var n = e.call(this) || this;
|
|
682
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
682
|
+
return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Mr, n;
|
|
683
683
|
}
|
|
684
684
|
return t.create = function(r, n, i) {
|
|
685
|
-
return new
|
|
685
|
+
return new Re(r, n, i);
|
|
686
686
|
}, t.prototype.next = function(r) {
|
|
687
687
|
this.isStopped || this._next(r);
|
|
688
688
|
}, t.prototype.error = function(r) {
|
|
@@ -706,11 +706,7 @@ var Nt = function(e) {
|
|
|
706
706
|
this.unsubscribe();
|
|
707
707
|
}
|
|
708
708
|
}, t;
|
|
709
|
-
}(ge),
|
|
710
|
-
function He(e, t) {
|
|
711
|
-
return Mr.call(e, t);
|
|
712
|
-
}
|
|
713
|
-
var Cr = function() {
|
|
709
|
+
}(ge), Lr = function() {
|
|
714
710
|
function e(t) {
|
|
715
711
|
this.partialObserver = t;
|
|
716
712
|
}
|
|
@@ -741,55 +737,43 @@ var Cr = function() {
|
|
|
741
737
|
ue(r);
|
|
742
738
|
}
|
|
743
739
|
}, e;
|
|
744
|
-
}(),
|
|
740
|
+
}(), Re = function(e) {
|
|
745
741
|
I(t, e);
|
|
746
742
|
function t(r, n, i) {
|
|
747
743
|
var o = e.call(this) || this, s;
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
};
|
|
754
|
-
else {
|
|
755
|
-
var a;
|
|
756
|
-
o && Lt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
757
|
-
return o.unsubscribe();
|
|
758
|
-
}, s = {
|
|
759
|
-
next: r.next && He(r.next, a),
|
|
760
|
-
error: r.error && He(r.error, a),
|
|
761
|
-
complete: r.complete && He(r.complete, a)
|
|
762
|
-
}) : s = r;
|
|
763
|
-
}
|
|
764
|
-
return o.destination = new Cr(s), o;
|
|
744
|
+
return O(r) || !r ? s = {
|
|
745
|
+
next: r ?? void 0,
|
|
746
|
+
error: n ?? void 0,
|
|
747
|
+
complete: i ?? void 0
|
|
748
|
+
} : s = r, o.destination = new Lr(s), o;
|
|
765
749
|
}
|
|
766
750
|
return t;
|
|
767
|
-
}(
|
|
751
|
+
}(Ot);
|
|
768
752
|
function ue(e) {
|
|
769
|
-
|
|
753
|
+
Ir(e);
|
|
770
754
|
}
|
|
771
|
-
function
|
|
755
|
+
function Nr(e) {
|
|
772
756
|
throw e;
|
|
773
757
|
}
|
|
774
|
-
var
|
|
758
|
+
var Mr = {
|
|
775
759
|
closed: !0,
|
|
776
|
-
next:
|
|
777
|
-
error:
|
|
778
|
-
complete:
|
|
779
|
-
},
|
|
760
|
+
next: Ke,
|
|
761
|
+
error: Nr,
|
|
762
|
+
complete: Ke
|
|
763
|
+
}, Cr = function() {
|
|
780
764
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
781
765
|
}();
|
|
782
|
-
function
|
|
766
|
+
function $r(e) {
|
|
783
767
|
return e;
|
|
784
768
|
}
|
|
785
|
-
function
|
|
786
|
-
return e.length === 0 ?
|
|
769
|
+
function Rr(e) {
|
|
770
|
+
return e.length === 0 ? $r : e.length === 1 ? e[0] : function(r) {
|
|
787
771
|
return e.reduce(function(n, i) {
|
|
788
772
|
return i(n);
|
|
789
773
|
}, r);
|
|
790
774
|
};
|
|
791
775
|
}
|
|
792
|
-
var
|
|
776
|
+
var et = function() {
|
|
793
777
|
function e(t) {
|
|
794
778
|
t && (this._subscribe = t);
|
|
795
779
|
}
|
|
@@ -797,8 +781,8 @@ var rt = function() {
|
|
|
797
781
|
var r = new e();
|
|
798
782
|
return r.source = this, r.operator = t, r;
|
|
799
783
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
800
|
-
var i = this, o =
|
|
801
|
-
return
|
|
784
|
+
var i = this, o = Dr(t) ? t : new Re(t, r, n);
|
|
785
|
+
return fe(function() {
|
|
802
786
|
var s = i, a = s.operator, h = s.source;
|
|
803
787
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
804
788
|
}), o;
|
|
@@ -810,8 +794,8 @@ var rt = function() {
|
|
|
810
794
|
}
|
|
811
795
|
}, e.prototype.forEach = function(t, r) {
|
|
812
796
|
var n = this;
|
|
813
|
-
return r =
|
|
814
|
-
var s = new
|
|
797
|
+
return r = tt(r), new r(function(i, o) {
|
|
798
|
+
var s = new Re({
|
|
815
799
|
next: function(a) {
|
|
816
800
|
try {
|
|
817
801
|
t(a);
|
|
@@ -827,15 +811,15 @@ var rt = function() {
|
|
|
827
811
|
}, e.prototype._subscribe = function(t) {
|
|
828
812
|
var r;
|
|
829
813
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
830
|
-
}, e.prototype[
|
|
814
|
+
}, e.prototype[Cr] = function() {
|
|
831
815
|
return this;
|
|
832
816
|
}, e.prototype.pipe = function() {
|
|
833
817
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
834
818
|
t[r] = arguments[r];
|
|
835
|
-
return
|
|
819
|
+
return Rr(t)(this);
|
|
836
820
|
}, e.prototype.toPromise = function(t) {
|
|
837
821
|
var r = this;
|
|
838
|
-
return t =
|
|
822
|
+
return t = tt(t), new t(function(n, i) {
|
|
839
823
|
var o;
|
|
840
824
|
r.subscribe(function(s) {
|
|
841
825
|
return o = s;
|
|
@@ -849,40 +833,40 @@ var rt = function() {
|
|
|
849
833
|
return new e(t);
|
|
850
834
|
}, e;
|
|
851
835
|
}();
|
|
852
|
-
function
|
|
836
|
+
function tt(e) {
|
|
853
837
|
var t;
|
|
854
|
-
return (t = e ??
|
|
838
|
+
return (t = e ?? Pr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
855
839
|
}
|
|
856
|
-
function
|
|
840
|
+
function Ur(e) {
|
|
857
841
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
858
842
|
}
|
|
859
|
-
function
|
|
860
|
-
return e && e instanceof
|
|
843
|
+
function Dr(e) {
|
|
844
|
+
return e && e instanceof Ot || Ur(e) && Pt(e);
|
|
861
845
|
}
|
|
862
|
-
var
|
|
846
|
+
var Gr = wt(function(e) {
|
|
863
847
|
return function() {
|
|
864
848
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
865
849
|
};
|
|
866
|
-
}),
|
|
850
|
+
}), It = function(e) {
|
|
867
851
|
I(t, e);
|
|
868
852
|
function t() {
|
|
869
853
|
var r = e.call(this) || this;
|
|
870
854
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
871
855
|
}
|
|
872
856
|
return t.prototype.lift = function(r) {
|
|
873
|
-
var n = new
|
|
857
|
+
var n = new rt(this, this);
|
|
874
858
|
return n.operator = r, n;
|
|
875
859
|
}, t.prototype._throwIfClosed = function() {
|
|
876
860
|
if (this.closed)
|
|
877
|
-
throw new
|
|
861
|
+
throw new Gr();
|
|
878
862
|
}, t.prototype.next = function(r) {
|
|
879
863
|
var n = this;
|
|
880
|
-
|
|
864
|
+
fe(function() {
|
|
881
865
|
var i, o;
|
|
882
866
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
883
867
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
884
868
|
try {
|
|
885
|
-
for (var s =
|
|
869
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
886
870
|
var h = a.value;
|
|
887
871
|
h.next(r);
|
|
888
872
|
}
|
|
@@ -900,7 +884,7 @@ var kr = Pt(function(e) {
|
|
|
900
884
|
});
|
|
901
885
|
}, t.prototype.error = function(r) {
|
|
902
886
|
var n = this;
|
|
903
|
-
|
|
887
|
+
fe(function() {
|
|
904
888
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
905
889
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
906
890
|
for (var i = n.observers; i.length; )
|
|
@@ -909,7 +893,7 @@ var kr = Pt(function(e) {
|
|
|
909
893
|
});
|
|
910
894
|
}, t.prototype.complete = function() {
|
|
911
895
|
var r = this;
|
|
912
|
-
|
|
896
|
+
fe(function() {
|
|
913
897
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
914
898
|
r.isStopped = !0;
|
|
915
899
|
for (var n = r.observers; n.length; )
|
|
@@ -931,19 +915,19 @@ var kr = Pt(function(e) {
|
|
|
931
915
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
932
916
|
}, t.prototype._innerSubscribe = function(r) {
|
|
933
917
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
934
|
-
return o || s ?
|
|
935
|
-
n.currentObservers = null,
|
|
918
|
+
return o || s ? At : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
919
|
+
n.currentObservers = null, $e(a, r);
|
|
936
920
|
}));
|
|
937
921
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
938
922
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
939
923
|
i ? r.error(o) : s && r.complete();
|
|
940
924
|
}, t.prototype.asObservable = function() {
|
|
941
|
-
var r = new
|
|
925
|
+
var r = new et();
|
|
942
926
|
return r.source = this, r;
|
|
943
927
|
}, t.create = function(r, n) {
|
|
944
|
-
return new
|
|
928
|
+
return new rt(r, n);
|
|
945
929
|
}, t;
|
|
946
|
-
}(
|
|
930
|
+
}(et), rt = function(e) {
|
|
947
931
|
I(t, e);
|
|
948
932
|
function t(r, n) {
|
|
949
933
|
var i = e.call(this) || this;
|
|
@@ -960,17 +944,17 @@ var kr = Pt(function(e) {
|
|
|
960
944
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
961
945
|
}, t.prototype._subscribe = function(r) {
|
|
962
946
|
var n, i;
|
|
963
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
947
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
|
|
964
948
|
}, t;
|
|
965
|
-
}(
|
|
949
|
+
}(It), Lt = {
|
|
966
950
|
now: function() {
|
|
967
|
-
return (
|
|
951
|
+
return (Lt.delegate || Date).now();
|
|
968
952
|
},
|
|
969
953
|
delegate: void 0
|
|
970
|
-
},
|
|
954
|
+
}, Fr = function(e) {
|
|
971
955
|
I(t, e);
|
|
972
956
|
function t(r, n, i) {
|
|
973
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
957
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
|
|
974
958
|
var o = e.call(this) || this;
|
|
975
959
|
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;
|
|
976
960
|
}
|
|
@@ -990,15 +974,15 @@ var kr = Pt(function(e) {
|
|
|
990
974
|
u && o.splice(0, u + 1);
|
|
991
975
|
}
|
|
992
976
|
}, t;
|
|
993
|
-
}(
|
|
994
|
-
const
|
|
995
|
-
if (
|
|
996
|
-
const r = new
|
|
997
|
-
|
|
977
|
+
}(It);
|
|
978
|
+
const nt = [], it = {}, jr = (e, t = 0) => {
|
|
979
|
+
if (nt.indexOf(e) == -1) {
|
|
980
|
+
const r = new Fr(t);
|
|
981
|
+
it[e] = r, nt.push(e);
|
|
998
982
|
}
|
|
999
|
-
return
|
|
983
|
+
return it[e];
|
|
1000
984
|
}, G = [];
|
|
1001
|
-
function
|
|
985
|
+
function kr(e, t) {
|
|
1002
986
|
return {
|
|
1003
987
|
subscribe: ye(e, t).subscribe
|
|
1004
988
|
};
|
|
@@ -1007,7 +991,7 @@ function ye(e, t = B) {
|
|
|
1007
991
|
let r;
|
|
1008
992
|
const n = /* @__PURE__ */ new Set();
|
|
1009
993
|
function i(a) {
|
|
1010
|
-
if (
|
|
994
|
+
if (Et(e, a) && (e = a, r)) {
|
|
1011
995
|
const h = !G.length;
|
|
1012
996
|
for (const u of n)
|
|
1013
997
|
u[1](), G.push(u, e);
|
|
@@ -1034,96 +1018,96 @@ function Q(e, t, r) {
|
|
|
1034
1018
|
if (!i.every(Boolean))
|
|
1035
1019
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1036
1020
|
const o = t.length < 2;
|
|
1037
|
-
return
|
|
1021
|
+
return kr(r, (s, a) => {
|
|
1038
1022
|
let h = !1;
|
|
1039
1023
|
const u = [];
|
|
1040
|
-
let l = 0,
|
|
1041
|
-
const
|
|
1024
|
+
let l = 0, c = B;
|
|
1025
|
+
const f = () => {
|
|
1042
1026
|
if (l)
|
|
1043
1027
|
return;
|
|
1044
|
-
|
|
1045
|
-
const
|
|
1046
|
-
o ? s(
|
|
1047
|
-
},
|
|
1048
|
-
(
|
|
1049
|
-
|
|
1028
|
+
c();
|
|
1029
|
+
const p = t(n ? u[0] : u, s, a);
|
|
1030
|
+
o ? s(p) : c = We(p) ? p : B;
|
|
1031
|
+
}, d = i.map(
|
|
1032
|
+
(p, v) => St(
|
|
1033
|
+
p,
|
|
1050
1034
|
(H) => {
|
|
1051
|
-
u[v] = H, l &= ~(1 << v), h &&
|
|
1035
|
+
u[v] = H, l &= ~(1 << v), h && f();
|
|
1052
1036
|
},
|
|
1053
1037
|
() => {
|
|
1054
1038
|
l |= 1 << v;
|
|
1055
1039
|
}
|
|
1056
1040
|
)
|
|
1057
1041
|
);
|
|
1058
|
-
return h = !0,
|
|
1059
|
-
ie(
|
|
1042
|
+
return h = !0, f(), function() {
|
|
1043
|
+
ie(d), c(), h = !1;
|
|
1060
1044
|
};
|
|
1061
1045
|
});
|
|
1062
1046
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return e
|
|
1047
|
+
function Vr(e) {
|
|
1048
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1065
1049
|
}
|
|
1066
|
-
var
|
|
1067
|
-
return
|
|
1050
|
+
var Xr = function(t) {
|
|
1051
|
+
return Wr(t) && !zr(t);
|
|
1068
1052
|
};
|
|
1069
|
-
function
|
|
1053
|
+
function Wr(e) {
|
|
1070
1054
|
return !!e && typeof e == "object";
|
|
1071
1055
|
}
|
|
1072
|
-
function
|
|
1056
|
+
function zr(e) {
|
|
1073
1057
|
var t = Object.prototype.toString.call(e);
|
|
1074
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1058
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
1075
1059
|
}
|
|
1076
|
-
var
|
|
1077
|
-
function
|
|
1078
|
-
return e.$$typeof ===
|
|
1060
|
+
var Zr = typeof Symbol == "function" && Symbol.for, Qr = Zr ? Symbol.for("react.element") : 60103;
|
|
1061
|
+
function Jr(e) {
|
|
1062
|
+
return e.$$typeof === Qr;
|
|
1079
1063
|
}
|
|
1080
|
-
function
|
|
1064
|
+
function Yr(e) {
|
|
1081
1065
|
return Array.isArray(e) ? [] : {};
|
|
1082
1066
|
}
|
|
1083
1067
|
function re(e, t) {
|
|
1084
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? V(
|
|
1068
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Yr(e), e, t) : e;
|
|
1085
1069
|
}
|
|
1086
|
-
function
|
|
1070
|
+
function qr(e, t, r) {
|
|
1087
1071
|
return e.concat(t).map(function(n) {
|
|
1088
1072
|
return re(n, r);
|
|
1089
1073
|
});
|
|
1090
1074
|
}
|
|
1091
|
-
function
|
|
1075
|
+
function Kr(e, t) {
|
|
1092
1076
|
if (!t.customMerge)
|
|
1093
1077
|
return V;
|
|
1094
1078
|
var r = t.customMerge(e);
|
|
1095
1079
|
return typeof r == "function" ? r : V;
|
|
1096
1080
|
}
|
|
1097
|
-
function
|
|
1081
|
+
function en(e) {
|
|
1098
1082
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1099
1083
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1100
1084
|
}) : [];
|
|
1101
1085
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return Object.keys(e).concat(
|
|
1086
|
+
function ot(e) {
|
|
1087
|
+
return Object.keys(e).concat(en(e));
|
|
1104
1088
|
}
|
|
1105
|
-
function
|
|
1089
|
+
function Nt(e, t) {
|
|
1106
1090
|
try {
|
|
1107
1091
|
return t in e;
|
|
1108
1092
|
} catch {
|
|
1109
1093
|
return !1;
|
|
1110
1094
|
}
|
|
1111
1095
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1096
|
+
function tn(e, t) {
|
|
1097
|
+
return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1114
1098
|
}
|
|
1115
|
-
function
|
|
1099
|
+
function rn(e, t, r) {
|
|
1116
1100
|
var n = {};
|
|
1117
|
-
return r.isMergeableObject(e) &&
|
|
1101
|
+
return r.isMergeableObject(e) && ot(e).forEach(function(i) {
|
|
1118
1102
|
n[i] = re(e[i], r);
|
|
1119
|
-
}),
|
|
1120
|
-
|
|
1103
|
+
}), ot(t).forEach(function(i) {
|
|
1104
|
+
tn(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kr(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1121
1105
|
}), n;
|
|
1122
1106
|
}
|
|
1123
1107
|
function V(e, t, r) {
|
|
1124
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1108
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || Xr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1125
1109
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1126
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1110
|
+
return o ? n ? r.arrayMerge(e, t, r) : rn(e, t, r) : re(t, r);
|
|
1127
1111
|
}
|
|
1128
1112
|
V.all = function(t, r) {
|
|
1129
1113
|
if (!Array.isArray(t))
|
|
@@ -1132,107 +1116,109 @@ V.all = function(t, r) {
|
|
|
1132
1116
|
return V(n, i, r);
|
|
1133
1117
|
}, {});
|
|
1134
1118
|
};
|
|
1135
|
-
var
|
|
1136
|
-
const
|
|
1137
|
-
function
|
|
1138
|
-
var r = t && t.cache ? t.cache :
|
|
1119
|
+
var nn = V, on = nn;
|
|
1120
|
+
const sn = /* @__PURE__ */ Vr(on);
|
|
1121
|
+
function He(e, t) {
|
|
1122
|
+
var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : fn, i = t && t.strategy ? t.strategy : un;
|
|
1139
1123
|
return i(e, {
|
|
1140
1124
|
cache: r,
|
|
1141
1125
|
serializer: n
|
|
1142
1126
|
});
|
|
1143
1127
|
}
|
|
1144
|
-
function
|
|
1128
|
+
function an(e) {
|
|
1145
1129
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1146
1130
|
}
|
|
1147
|
-
function
|
|
1148
|
-
var i =
|
|
1131
|
+
function Mt(e, t, r, n) {
|
|
1132
|
+
var i = an(n) ? n : r(n), o = t.get(i);
|
|
1149
1133
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1150
1134
|
}
|
|
1151
|
-
function
|
|
1135
|
+
function Ct(e, t, r) {
|
|
1152
1136
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1153
1137
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1154
1138
|
}
|
|
1155
|
-
function
|
|
1139
|
+
function ze(e, t, r, n, i) {
|
|
1156
1140
|
return r.bind(t, e, n, i);
|
|
1157
1141
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var r = e.length === 1 ?
|
|
1160
|
-
return
|
|
1142
|
+
function un(e, t) {
|
|
1143
|
+
var r = e.length === 1 ? Mt : Ct;
|
|
1144
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
1161
1145
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return
|
|
1146
|
+
function hn(e, t) {
|
|
1147
|
+
return ze(e, this, Ct, t.cache.create(), t.serializer);
|
|
1164
1148
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1149
|
+
function ln(e, t) {
|
|
1150
|
+
return ze(e, this, Mt, t.cache.create(), t.serializer);
|
|
1167
1151
|
}
|
|
1168
|
-
var
|
|
1152
|
+
var fn = function() {
|
|
1169
1153
|
return JSON.stringify(arguments);
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1154
|
+
}, cn = (
|
|
1155
|
+
/** @class */
|
|
1156
|
+
function() {
|
|
1157
|
+
function e() {
|
|
1158
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1159
|
+
}
|
|
1160
|
+
return e.prototype.get = function(t) {
|
|
1161
|
+
return this.cache[t];
|
|
1162
|
+
}, e.prototype.set = function(t, r) {
|
|
1163
|
+
this.cache[t] = r;
|
|
1164
|
+
}, e;
|
|
1165
|
+
}()
|
|
1166
|
+
), dn = {
|
|
1181
1167
|
create: function() {
|
|
1182
|
-
return new
|
|
1168
|
+
return new cn();
|
|
1183
1169
|
}
|
|
1184
|
-
},
|
|
1185
|
-
variadic:
|
|
1186
|
-
monadic:
|
|
1170
|
+
}, Be = {
|
|
1171
|
+
variadic: hn,
|
|
1172
|
+
monadic: ln
|
|
1187
1173
|
}, m;
|
|
1188
1174
|
(function(e) {
|
|
1189
1175
|
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";
|
|
1190
1176
|
})(m || (m = {}));
|
|
1191
|
-
var
|
|
1177
|
+
var x;
|
|
1192
1178
|
(function(e) {
|
|
1193
1179
|
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";
|
|
1194
|
-
})(
|
|
1180
|
+
})(x || (x = {}));
|
|
1195
1181
|
var X;
|
|
1196
1182
|
(function(e) {
|
|
1197
1183
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1198
1184
|
})(X || (X = {}));
|
|
1199
|
-
function
|
|
1200
|
-
return e.type ===
|
|
1185
|
+
function st(e) {
|
|
1186
|
+
return e.type === x.literal;
|
|
1201
1187
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return e.type ===
|
|
1188
|
+
function pn(e) {
|
|
1189
|
+
return e.type === x.argument;
|
|
1204
1190
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return e.type ===
|
|
1191
|
+
function $t(e) {
|
|
1192
|
+
return e.type === x.number;
|
|
1207
1193
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return e.type ===
|
|
1194
|
+
function Rt(e) {
|
|
1195
|
+
return e.type === x.date;
|
|
1210
1196
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return e.type ===
|
|
1197
|
+
function Ut(e) {
|
|
1198
|
+
return e.type === x.time;
|
|
1213
1199
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return e.type ===
|
|
1200
|
+
function Dt(e) {
|
|
1201
|
+
return e.type === x.select;
|
|
1216
1202
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return e.type ===
|
|
1203
|
+
function Gt(e) {
|
|
1204
|
+
return e.type === x.plural;
|
|
1219
1205
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return e.type ===
|
|
1206
|
+
function mn(e) {
|
|
1207
|
+
return e.type === x.pound;
|
|
1222
1208
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return e.type ===
|
|
1209
|
+
function Ft(e) {
|
|
1210
|
+
return e.type === x.tag;
|
|
1225
1211
|
}
|
|
1226
|
-
function
|
|
1212
|
+
function jt(e) {
|
|
1227
1213
|
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1228
1214
|
}
|
|
1229
|
-
function
|
|
1215
|
+
function Ue(e) {
|
|
1230
1216
|
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1231
1217
|
}
|
|
1232
|
-
var
|
|
1233
|
-
function
|
|
1218
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1219
|
+
function gn(e) {
|
|
1234
1220
|
var t = {};
|
|
1235
|
-
return e.replace(
|
|
1221
|
+
return e.replace(bn, function(r) {
|
|
1236
1222
|
var n = r.length;
|
|
1237
1223
|
switch (r[0]) {
|
|
1238
1224
|
case "G":
|
|
@@ -1321,19 +1307,19 @@ function vn(e) {
|
|
|
1321
1307
|
return "";
|
|
1322
1308
|
}), t;
|
|
1323
1309
|
}
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1310
|
+
var yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1311
|
+
function vn(e) {
|
|
1326
1312
|
if (e.length === 0)
|
|
1327
1313
|
throw new Error("Number skeleton cannot be empty");
|
|
1328
|
-
for (var t = e.split(
|
|
1329
|
-
return
|
|
1314
|
+
for (var t = e.split(yn).filter(function(f) {
|
|
1315
|
+
return f.length > 0;
|
|
1330
1316
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1331
1317
|
var o = i[n], s = o.split("/");
|
|
1332
1318
|
if (s.length === 0)
|
|
1333
1319
|
throw new Error("Invalid number skeleton");
|
|
1334
1320
|
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1335
|
-
var
|
|
1336
|
-
if (
|
|
1321
|
+
var c = l[u];
|
|
1322
|
+
if (c.length === 0)
|
|
1337
1323
|
throw new Error("Invalid number skeleton");
|
|
1338
1324
|
}
|
|
1339
1325
|
r.push({ stem: a, options: h });
|
|
@@ -1343,14 +1329,14 @@ function _n(e) {
|
|
|
1343
1329
|
function xn(e) {
|
|
1344
1330
|
return e.replace(/^(.*?)-/, "");
|
|
1345
1331
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1332
|
+
var at = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
|
|
1333
|
+
function ut(e) {
|
|
1348
1334
|
var t = {};
|
|
1349
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1335
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
1350
1336
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1351
1337
|
}), t;
|
|
1352
1338
|
}
|
|
1353
|
-
function
|
|
1339
|
+
function Wt(e) {
|
|
1354
1340
|
switch (e) {
|
|
1355
1341
|
case "sign-auto":
|
|
1356
1342
|
return {
|
|
@@ -1390,7 +1376,7 @@ function Qt(e) {
|
|
|
1390
1376
|
};
|
|
1391
1377
|
}
|
|
1392
1378
|
}
|
|
1393
|
-
function
|
|
1379
|
+
function En(e) {
|
|
1394
1380
|
var t;
|
|
1395
1381
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1396
1382
|
notation: "engineering"
|
|
@@ -1398,17 +1384,17 @@ function Tn(e) {
|
|
|
1398
1384
|
notation: "scientific"
|
|
1399
1385
|
}, e = e.slice(1)), t) {
|
|
1400
1386
|
var r = e.slice(0, 2);
|
|
1401
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1387
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
|
|
1402
1388
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1403
1389
|
t.minimumIntegerDigits = e.length;
|
|
1404
1390
|
}
|
|
1405
1391
|
return t;
|
|
1406
1392
|
}
|
|
1407
|
-
function
|
|
1408
|
-
var t = {}, r =
|
|
1393
|
+
function ht(e) {
|
|
1394
|
+
var t = {}, r = Wt(e);
|
|
1409
1395
|
return r || t;
|
|
1410
1396
|
}
|
|
1411
|
-
function
|
|
1397
|
+
function Sn(e) {
|
|
1412
1398
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1413
1399
|
var i = n[r];
|
|
1414
1400
|
switch (i.stem) {
|
|
@@ -1444,12 +1430,12 @@ function Hn(e) {
|
|
|
1444
1430
|
continue;
|
|
1445
1431
|
case "scientific":
|
|
1446
1432
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1447
|
-
return g(g({}, h),
|
|
1433
|
+
return g(g({}, h), ht(u));
|
|
1448
1434
|
}, {}));
|
|
1449
1435
|
continue;
|
|
1450
1436
|
case "engineering":
|
|
1451
1437
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1452
|
-
return g(g({}, h),
|
|
1438
|
+
return g(g({}, h), ht(u));
|
|
1453
1439
|
}, {}));
|
|
1454
1440
|
continue;
|
|
1455
1441
|
case "notation-simple":
|
|
@@ -1494,40 +1480,40 @@ function Hn(e) {
|
|
|
1494
1480
|
case "integer-width":
|
|
1495
1481
|
if (i.options.length > 1)
|
|
1496
1482
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1497
|
-
i.options[0].replace(
|
|
1483
|
+
i.options[0].replace(_n, function(h, u, l, c, f, d) {
|
|
1498
1484
|
if (u)
|
|
1499
1485
|
t.minimumIntegerDigits = l.length;
|
|
1500
1486
|
else {
|
|
1501
|
-
if (
|
|
1487
|
+
if (c && f)
|
|
1502
1488
|
throw new Error("We currently do not support maximum integer digits");
|
|
1503
|
-
if (
|
|
1489
|
+
if (d)
|
|
1504
1490
|
throw new Error("We currently do not support exact integer digits");
|
|
1505
1491
|
}
|
|
1506
1492
|
return "";
|
|
1507
1493
|
});
|
|
1508
1494
|
continue;
|
|
1509
1495
|
}
|
|
1510
|
-
if (
|
|
1496
|
+
if (Xt.test(i.stem)) {
|
|
1511
1497
|
t.minimumIntegerDigits = i.stem.length;
|
|
1512
1498
|
continue;
|
|
1513
1499
|
}
|
|
1514
|
-
if (
|
|
1500
|
+
if (at.test(i.stem)) {
|
|
1515
1501
|
if (i.options.length > 1)
|
|
1516
1502
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1517
|
-
i.stem.replace(
|
|
1518
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1503
|
+
i.stem.replace(at, function(h, u, l, c, f, d) {
|
|
1504
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1519
1505
|
});
|
|
1520
1506
|
var o = i.options[0];
|
|
1521
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1507
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ut(o)));
|
|
1522
1508
|
continue;
|
|
1523
1509
|
}
|
|
1524
|
-
if (
|
|
1525
|
-
t = g(g({}, t),
|
|
1510
|
+
if (Vt.test(i.stem)) {
|
|
1511
|
+
t = g(g({}, t), ut(i.stem));
|
|
1526
1512
|
continue;
|
|
1527
1513
|
}
|
|
1528
|
-
var s =
|
|
1514
|
+
var s = Wt(i.stem);
|
|
1529
1515
|
s && (t = g(g({}, t), s));
|
|
1530
|
-
var a =
|
|
1516
|
+
var a = En(i.stem);
|
|
1531
1517
|
a && (t = g(g({}, t), a));
|
|
1532
1518
|
}
|
|
1533
1519
|
return t;
|
|
@@ -2947,13 +2933,13 @@ var he = {
|
|
|
2947
2933
|
"h"
|
|
2948
2934
|
]
|
|
2949
2935
|
};
|
|
2950
|
-
function
|
|
2936
|
+
function Tn(e, t) {
|
|
2951
2937
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2952
2938
|
var i = e.charAt(n);
|
|
2953
2939
|
if (i === "j") {
|
|
2954
2940
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2955
2941
|
o++, n++;
|
|
2956
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2942
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Hn(t);
|
|
2957
2943
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2958
2944
|
r += h;
|
|
2959
2945
|
for (; s-- > 0; )
|
|
@@ -2963,7 +2949,7 @@ function Bn(e, t) {
|
|
|
2963
2949
|
}
|
|
2964
2950
|
return r;
|
|
2965
2951
|
}
|
|
2966
|
-
function
|
|
2952
|
+
function Hn(e) {
|
|
2967
2953
|
var t = e.hourCycle;
|
|
2968
2954
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2969
2955
|
e.hourCycles && // @ts-ignore
|
|
@@ -2985,20 +2971,20 @@ function wn(e) {
|
|
|
2985
2971
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2986
2972
|
return i[0];
|
|
2987
2973
|
}
|
|
2988
|
-
var
|
|
2974
|
+
var we, Bn = new RegExp("^".concat(kt.source, "*")), wn = new RegExp("".concat(kt.source, "*$"));
|
|
2989
2975
|
function b(e, t) {
|
|
2990
2976
|
return { start: e, end: t };
|
|
2991
2977
|
}
|
|
2992
|
-
var
|
|
2978
|
+
var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pn = !!String.fromCodePoint, On = !!Object.fromEntries, In = !!String.prototype.codePointAt, Ln = !!String.prototype.trimStart, Nn = !!String.prototype.trimEnd, Mn = !!Number.isSafeInteger, Cn = Mn ? Number.isSafeInteger : function(e) {
|
|
2993
2979
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2994
|
-
},
|
|
2980
|
+
}, De = !0;
|
|
2995
2981
|
try {
|
|
2996
|
-
var
|
|
2997
|
-
|
|
2982
|
+
var $n = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2983
|
+
De = ((we = $n.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2998
2984
|
} catch {
|
|
2999
|
-
|
|
2985
|
+
De = !1;
|
|
3000
2986
|
}
|
|
3001
|
-
var
|
|
2987
|
+
var lt = An ? (
|
|
3002
2988
|
// Native
|
|
3003
2989
|
function(t, r, n) {
|
|
3004
2990
|
return t.startsWith(r, n);
|
|
@@ -3008,7 +2994,7 @@ var ft = On ? (
|
|
|
3008
2994
|
function(t, r, n) {
|
|
3009
2995
|
return t.slice(n, n + r.length) === r;
|
|
3010
2996
|
}
|
|
3011
|
-
),
|
|
2997
|
+
), Ge = Pn ? String.fromCodePoint : (
|
|
3012
2998
|
// IE11
|
|
3013
2999
|
function() {
|
|
3014
3000
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3020,9 +3006,9 @@ var ft = On ? (
|
|
|
3020
3006
|
}
|
|
3021
3007
|
return n;
|
|
3022
3008
|
}
|
|
3023
|
-
),
|
|
3009
|
+
), ft = (
|
|
3024
3010
|
// native
|
|
3025
|
-
|
|
3011
|
+
On ? Object.fromEntries : (
|
|
3026
3012
|
// Ponyfill
|
|
3027
3013
|
function(t) {
|
|
3028
3014
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3032,7 +3018,7 @@ var ft = On ? (
|
|
|
3032
3018
|
return r;
|
|
3033
3019
|
}
|
|
3034
3020
|
)
|
|
3035
|
-
),
|
|
3021
|
+
), zt = In ? (
|
|
3036
3022
|
// Native
|
|
3037
3023
|
function(t, r) {
|
|
3038
3024
|
return t.codePointAt(r);
|
|
@@ -3046,7 +3032,7 @@ var ft = On ? (
|
|
|
3046
3032
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3047
3033
|
}
|
|
3048
3034
|
}
|
|
3049
|
-
),
|
|
3035
|
+
), Rn = Ln ? (
|
|
3050
3036
|
// Native
|
|
3051
3037
|
function(t) {
|
|
3052
3038
|
return t.trimStart();
|
|
@@ -3054,9 +3040,9 @@ var ft = On ? (
|
|
|
3054
3040
|
) : (
|
|
3055
3041
|
// Ponyfill
|
|
3056
3042
|
function(t) {
|
|
3057
|
-
return t.replace(
|
|
3043
|
+
return t.replace(Bn, "");
|
|
3058
3044
|
}
|
|
3059
|
-
),
|
|
3045
|
+
), Un = Nn ? (
|
|
3060
3046
|
// Native
|
|
3061
3047
|
function(t) {
|
|
3062
3048
|
return t.trimEnd();
|
|
@@ -3064,32 +3050,32 @@ var ft = On ? (
|
|
|
3064
3050
|
) : (
|
|
3065
3051
|
// Ponyfill
|
|
3066
3052
|
function(t) {
|
|
3067
|
-
return t.replace(
|
|
3053
|
+
return t.replace(wn, "");
|
|
3068
3054
|
}
|
|
3069
3055
|
);
|
|
3070
|
-
function
|
|
3056
|
+
function Zt(e, t) {
|
|
3071
3057
|
return new RegExp(e, t);
|
|
3072
3058
|
}
|
|
3073
|
-
var
|
|
3074
|
-
if (
|
|
3075
|
-
var
|
|
3076
|
-
|
|
3059
|
+
var Fe;
|
|
3060
|
+
if (De) {
|
|
3061
|
+
var ct = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3062
|
+
Fe = function(t, r) {
|
|
3077
3063
|
var n;
|
|
3078
|
-
|
|
3079
|
-
var i =
|
|
3064
|
+
ct.lastIndex = r;
|
|
3065
|
+
var i = ct.exec(t);
|
|
3080
3066
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3081
3067
|
};
|
|
3082
3068
|
} else
|
|
3083
|
-
|
|
3069
|
+
Fe = function(t, r) {
|
|
3084
3070
|
for (var n = []; ; ) {
|
|
3085
|
-
var i =
|
|
3086
|
-
if (i === void 0 ||
|
|
3071
|
+
var i = zt(t, r);
|
|
3072
|
+
if (i === void 0 || Qt(i) || jn(i))
|
|
3087
3073
|
break;
|
|
3088
3074
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3089
3075
|
}
|
|
3090
|
-
return
|
|
3076
|
+
return Ge.apply(void 0, n);
|
|
3091
3077
|
};
|
|
3092
|
-
var
|
|
3078
|
+
var Dn = (
|
|
3093
3079
|
/** @class */
|
|
3094
3080
|
function() {
|
|
3095
3081
|
function e(t, r) {
|
|
@@ -3113,14 +3099,14 @@ var Fn = (
|
|
|
3113
3099
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3114
3100
|
var a = this.clonePosition();
|
|
3115
3101
|
this.bump(), i.push({
|
|
3116
|
-
type:
|
|
3102
|
+
type: x.pound,
|
|
3117
3103
|
location: b(a, this.clonePosition())
|
|
3118
3104
|
});
|
|
3119
3105
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3120
3106
|
if (n)
|
|
3121
3107
|
break;
|
|
3122
3108
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3123
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3109
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3124
3110
|
var s = this.parseTag(t, r);
|
|
3125
3111
|
if (s.err)
|
|
3126
3112
|
return s;
|
|
@@ -3141,7 +3127,7 @@ var Fn = (
|
|
|
3141
3127
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3142
3128
|
return {
|
|
3143
3129
|
val: {
|
|
3144
|
-
type:
|
|
3130
|
+
type: x.literal,
|
|
3145
3131
|
value: "<".concat(i, "/>"),
|
|
3146
3132
|
location: b(n, this.clonePosition())
|
|
3147
3133
|
},
|
|
@@ -3153,12 +3139,12 @@ var Fn = (
|
|
|
3153
3139
|
return o;
|
|
3154
3140
|
var s = o.val, a = this.clonePosition();
|
|
3155
3141
|
if (this.bumpIf("</")) {
|
|
3156
|
-
if (this.isEOF() || !
|
|
3142
|
+
if (this.isEOF() || !je(this.char()))
|
|
3157
3143
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3158
3144
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3159
3145
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3160
3146
|
val: {
|
|
3161
|
-
type:
|
|
3147
|
+
type: x.tag,
|
|
3162
3148
|
value: i,
|
|
3163
3149
|
children: s,
|
|
3164
3150
|
location: b(n, this.clonePosition())
|
|
@@ -3171,7 +3157,7 @@ var Fn = (
|
|
|
3171
3157
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3172
3158
|
}, e.prototype.parseTagName = function() {
|
|
3173
3159
|
var t = this.offset();
|
|
3174
|
-
for (this.bump(); !this.isEOF() &&
|
|
3160
|
+
for (this.bump(); !this.isEOF() && Fn(this.char()); )
|
|
3175
3161
|
this.bump();
|
|
3176
3162
|
return this.message.slice(t, this.offset());
|
|
3177
3163
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3195,12 +3181,12 @@ var Fn = (
|
|
|
3195
3181
|
}
|
|
3196
3182
|
var h = b(n, this.clonePosition());
|
|
3197
3183
|
return {
|
|
3198
|
-
val: { type:
|
|
3184
|
+
val: { type: x.literal, value: i, location: h },
|
|
3199
3185
|
err: null
|
|
3200
3186
|
};
|
|
3201
3187
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3202
3188
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3203
|
-
!
|
|
3189
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3204
3190
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3205
3191
|
if (this.isEOF() || this.char() !== 39)
|
|
3206
3192
|
return null;
|
|
@@ -3234,12 +3220,12 @@ var Fn = (
|
|
|
3234
3220
|
r.push(n);
|
|
3235
3221
|
this.bump();
|
|
3236
3222
|
}
|
|
3237
|
-
return
|
|
3223
|
+
return Ge.apply(void 0, r);
|
|
3238
3224
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3239
3225
|
if (this.isEOF())
|
|
3240
3226
|
return null;
|
|
3241
3227
|
var n = this.char();
|
|
3242
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3228
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
3243
3229
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3244
3230
|
var n = this.clonePosition();
|
|
3245
3231
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3255,7 +3241,7 @@ var Fn = (
|
|
|
3255
3241
|
case 125:
|
|
3256
3242
|
return this.bump(), {
|
|
3257
3243
|
val: {
|
|
3258
|
-
type:
|
|
3244
|
+
type: x.argument,
|
|
3259
3245
|
// value does not include the opening and closing braces.
|
|
3260
3246
|
value: i,
|
|
3261
3247
|
location: b(n, this.clonePosition())
|
|
@@ -3268,7 +3254,7 @@ var Fn = (
|
|
|
3268
3254
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3269
3255
|
}
|
|
3270
3256
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3271
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3257
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
3272
3258
|
this.bumpTo(i);
|
|
3273
3259
|
var o = this.clonePosition(), s = b(t, o);
|
|
3274
3260
|
return { value: n, location: s };
|
|
@@ -3284,47 +3270,47 @@ var Fn = (
|
|
|
3284
3270
|
var u = null;
|
|
3285
3271
|
if (this.bumpIf(",")) {
|
|
3286
3272
|
this.bumpSpace();
|
|
3287
|
-
var l = this.clonePosition(),
|
|
3288
|
-
if (
|
|
3289
|
-
return
|
|
3290
|
-
var
|
|
3291
|
-
if (
|
|
3273
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3274
|
+
if (c.err)
|
|
3275
|
+
return c;
|
|
3276
|
+
var f = Un(c.val);
|
|
3277
|
+
if (f.length === 0)
|
|
3292
3278
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3293
|
-
var
|
|
3294
|
-
u = { style:
|
|
3279
|
+
var d = b(l, this.clonePosition());
|
|
3280
|
+
u = { style: f, styleLocation: d };
|
|
3295
3281
|
}
|
|
3296
|
-
var
|
|
3297
|
-
if (
|
|
3298
|
-
return
|
|
3282
|
+
var p = this.tryParseArgumentClose(i);
|
|
3283
|
+
if (p.err)
|
|
3284
|
+
return p;
|
|
3299
3285
|
var v = b(i, this.clonePosition());
|
|
3300
|
-
if (u &&
|
|
3301
|
-
var H =
|
|
3286
|
+
if (u && lt(u?.style, "::", 0)) {
|
|
3287
|
+
var H = Rn(u.style.slice(2));
|
|
3302
3288
|
if (a === "number") {
|
|
3303
|
-
var
|
|
3304
|
-
return
|
|
3305
|
-
val: { type:
|
|
3289
|
+
var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3290
|
+
return c.err ? c : {
|
|
3291
|
+
val: { type: x.number, value: n, location: v, style: c.val },
|
|
3306
3292
|
err: null
|
|
3307
3293
|
};
|
|
3308
3294
|
} else {
|
|
3309
3295
|
if (H.length === 0)
|
|
3310
3296
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3311
3297
|
var C = H;
|
|
3312
|
-
this.locale && (C =
|
|
3313
|
-
var
|
|
3298
|
+
this.locale && (C = Tn(H, this.locale));
|
|
3299
|
+
var f = {
|
|
3314
3300
|
type: X.dateTime,
|
|
3315
3301
|
pattern: C,
|
|
3316
3302
|
location: u.styleLocation,
|
|
3317
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3318
|
-
}, L = a === "date" ?
|
|
3303
|
+
parsedOptions: this.shouldParseSkeletons ? gn(C) : {}
|
|
3304
|
+
}, L = a === "date" ? x.date : x.time;
|
|
3319
3305
|
return {
|
|
3320
|
-
val: { type: L, value: n, location: v, style:
|
|
3306
|
+
val: { type: L, value: n, location: v, style: f },
|
|
3321
3307
|
err: null
|
|
3322
3308
|
};
|
|
3323
3309
|
}
|
|
3324
3310
|
}
|
|
3325
3311
|
return {
|
|
3326
3312
|
val: {
|
|
3327
|
-
type: a === "number" ?
|
|
3313
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3328
3314
|
value: n,
|
|
3329
3315
|
location: v,
|
|
3330
3316
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3335,40 +3321,40 @@ var Fn = (
|
|
|
3335
3321
|
case "plural":
|
|
3336
3322
|
case "selectordinal":
|
|
3337
3323
|
case "select": {
|
|
3338
|
-
var
|
|
3324
|
+
var E = this.clonePosition();
|
|
3339
3325
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3340
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3326
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(E, g({}, E)));
|
|
3341
3327
|
this.bumpSpace();
|
|
3342
3328
|
var $ = this.parseIdentifierIfPossible(), A = 0;
|
|
3343
3329
|
if (a !== "select" && $.value === "offset") {
|
|
3344
3330
|
if (!this.bumpIf(":"))
|
|
3345
3331
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3346
3332
|
this.bumpSpace();
|
|
3347
|
-
var
|
|
3348
|
-
if (
|
|
3349
|
-
return
|
|
3350
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A =
|
|
3333
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3334
|
+
if (c.err)
|
|
3335
|
+
return c;
|
|
3336
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), A = c.val;
|
|
3351
3337
|
}
|
|
3352
3338
|
var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3353
3339
|
if (U.err)
|
|
3354
3340
|
return U;
|
|
3355
|
-
var
|
|
3356
|
-
if (
|
|
3357
|
-
return
|
|
3341
|
+
var p = this.tryParseArgumentClose(i);
|
|
3342
|
+
if (p.err)
|
|
3343
|
+
return p;
|
|
3358
3344
|
var ae = b(i, this.clonePosition());
|
|
3359
3345
|
return a === "select" ? {
|
|
3360
3346
|
val: {
|
|
3361
|
-
type:
|
|
3347
|
+
type: x.select,
|
|
3362
3348
|
value: n,
|
|
3363
|
-
options:
|
|
3349
|
+
options: ft(U.val),
|
|
3364
3350
|
location: ae
|
|
3365
3351
|
},
|
|
3366
3352
|
err: null
|
|
3367
3353
|
} : {
|
|
3368
3354
|
val: {
|
|
3369
|
-
type:
|
|
3355
|
+
type: x.plural,
|
|
3370
3356
|
value: n,
|
|
3371
|
-
options:
|
|
3357
|
+
options: ft(U.val),
|
|
3372
3358
|
offset: A,
|
|
3373
3359
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3374
3360
|
location: ae
|
|
@@ -3419,7 +3405,7 @@ var Fn = (
|
|
|
3419
3405
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3420
3406
|
var n = [];
|
|
3421
3407
|
try {
|
|
3422
|
-
n =
|
|
3408
|
+
n = vn(t);
|
|
3423
3409
|
} catch {
|
|
3424
3410
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3425
3411
|
}
|
|
@@ -3428,39 +3414,39 @@ var Fn = (
|
|
|
3428
3414
|
type: X.number,
|
|
3429
3415
|
tokens: n,
|
|
3430
3416
|
location: r,
|
|
3431
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3417
|
+
parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
|
|
3432
3418
|
},
|
|
3433
3419
|
err: null
|
|
3434
3420
|
};
|
|
3435
3421
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3436
3422
|
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3437
3423
|
if (u.length === 0) {
|
|
3438
|
-
var
|
|
3424
|
+
var c = this.clonePosition();
|
|
3439
3425
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3440
|
-
var
|
|
3441
|
-
if (
|
|
3442
|
-
return
|
|
3443
|
-
l = b(
|
|
3426
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3427
|
+
if (f.err)
|
|
3428
|
+
return f;
|
|
3429
|
+
l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3444
3430
|
} else
|
|
3445
3431
|
break;
|
|
3446
3432
|
}
|
|
3447
3433
|
if (h.has(u))
|
|
3448
3434
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3449
3435
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3450
|
-
var
|
|
3436
|
+
var d = this.clonePosition();
|
|
3451
3437
|
if (!this.bumpIf("{"))
|
|
3452
3438
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3453
|
-
var
|
|
3454
|
-
if (
|
|
3455
|
-
return
|
|
3456
|
-
var v = this.tryParseArgumentClose(
|
|
3439
|
+
var p = this.parseMessage(t + 1, r, n);
|
|
3440
|
+
if (p.err)
|
|
3441
|
+
return p;
|
|
3442
|
+
var v = this.tryParseArgumentClose(d);
|
|
3457
3443
|
if (v.err)
|
|
3458
3444
|
return v;
|
|
3459
3445
|
a.push([
|
|
3460
3446
|
u,
|
|
3461
3447
|
{
|
|
3462
|
-
value:
|
|
3463
|
-
location: b(
|
|
3448
|
+
value: p.val,
|
|
3449
|
+
location: b(d, this.clonePosition())
|
|
3464
3450
|
}
|
|
3465
3451
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3466
3452
|
}
|
|
@@ -3476,7 +3462,7 @@ var Fn = (
|
|
|
3476
3462
|
break;
|
|
3477
3463
|
}
|
|
3478
3464
|
var h = b(i, this.clonePosition());
|
|
3479
|
-
return o ? (s *= n,
|
|
3465
|
+
return o ? (s *= n, Cn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3480
3466
|
}, e.prototype.offset = function() {
|
|
3481
3467
|
return this.position.offset;
|
|
3482
3468
|
}, e.prototype.isEOF = function() {
|
|
@@ -3491,7 +3477,7 @@ var Fn = (
|
|
|
3491
3477
|
var t = this.position.offset;
|
|
3492
3478
|
if (t >= this.message.length)
|
|
3493
3479
|
throw Error("out of bound");
|
|
3494
|
-
var r =
|
|
3480
|
+
var r = zt(this.message, t);
|
|
3495
3481
|
if (r === void 0)
|
|
3496
3482
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3497
3483
|
return r;
|
|
@@ -3510,7 +3496,7 @@ var Fn = (
|
|
|
3510
3496
|
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);
|
|
3511
3497
|
}
|
|
3512
3498
|
}, e.prototype.bumpIf = function(t) {
|
|
3513
|
-
if (
|
|
3499
|
+
if (lt(this.message, t, this.offset())) {
|
|
3514
3500
|
for (var r = 0; r < t.length; r++)
|
|
3515
3501
|
this.bump();
|
|
3516
3502
|
return !0;
|
|
@@ -3532,7 +3518,7 @@ var Fn = (
|
|
|
3532
3518
|
break;
|
|
3533
3519
|
}
|
|
3534
3520
|
}, e.prototype.bumpSpace = function() {
|
|
3535
|
-
for (; !this.isEOF() &&
|
|
3521
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3536
3522
|
this.bump();
|
|
3537
3523
|
}, e.prototype.peek = function() {
|
|
3538
3524
|
if (this.isEOF())
|
|
@@ -3542,38 +3528,38 @@ var Fn = (
|
|
|
3542
3528
|
}, e;
|
|
3543
3529
|
}()
|
|
3544
3530
|
);
|
|
3545
|
-
function
|
|
3531
|
+
function je(e) {
|
|
3546
3532
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3547
3533
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return
|
|
3534
|
+
function Gn(e) {
|
|
3535
|
+
return je(e) || e === 47;
|
|
3550
3536
|
}
|
|
3551
|
-
function
|
|
3537
|
+
function Fn(e) {
|
|
3552
3538
|
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;
|
|
3553
3539
|
}
|
|
3554
|
-
function
|
|
3540
|
+
function Qt(e) {
|
|
3555
3541
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3556
3542
|
}
|
|
3557
|
-
function
|
|
3543
|
+
function jn(e) {
|
|
3558
3544
|
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;
|
|
3559
3545
|
}
|
|
3560
|
-
function
|
|
3546
|
+
function ke(e) {
|
|
3561
3547
|
e.forEach(function(t) {
|
|
3562
|
-
if (delete t.location,
|
|
3548
|
+
if (delete t.location, Dt(t) || Gt(t))
|
|
3563
3549
|
for (var r in t.options)
|
|
3564
|
-
delete t.options[r].location,
|
|
3550
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3565
3551
|
else
|
|
3566
|
-
|
|
3552
|
+
$t(t) && jt(t.style) || (Rt(t) || Ut(t)) && Ue(t.style) ? delete t.style.location : Ft(t) && ke(t.children);
|
|
3567
3553
|
});
|
|
3568
3554
|
}
|
|
3569
|
-
function
|
|
3555
|
+
function kn(e, t) {
|
|
3570
3556
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3571
|
-
var r = new
|
|
3557
|
+
var r = new Dn(e, t).parse();
|
|
3572
3558
|
if (r.err) {
|
|
3573
3559
|
var n = SyntaxError(m[r.err.kind]);
|
|
3574
3560
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3575
3561
|
}
|
|
3576
|
-
return t?.captureLocation ||
|
|
3562
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3577
3563
|
}
|
|
3578
3564
|
var W;
|
|
3579
3565
|
(function(e) {
|
|
@@ -3591,7 +3577,7 @@ var ve = (
|
|
|
3591
3577
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3592
3578
|
}, t;
|
|
3593
3579
|
}(Error)
|
|
3594
|
-
),
|
|
3580
|
+
), dt = (
|
|
3595
3581
|
/** @class */
|
|
3596
3582
|
function(e) {
|
|
3597
3583
|
I(t, e);
|
|
@@ -3600,7 +3586,7 @@ var ve = (
|
|
|
3600
3586
|
}
|
|
3601
3587
|
return t;
|
|
3602
3588
|
}(ve)
|
|
3603
|
-
),
|
|
3589
|
+
), Vn = (
|
|
3604
3590
|
/** @class */
|
|
3605
3591
|
function(e) {
|
|
3606
3592
|
I(t, e);
|
|
@@ -3609,7 +3595,7 @@ var ve = (
|
|
|
3609
3595
|
}
|
|
3610
3596
|
return t;
|
|
3611
3597
|
}(ve)
|
|
3612
|
-
),
|
|
3598
|
+
), Xn = (
|
|
3613
3599
|
/** @class */
|
|
3614
3600
|
function(e) {
|
|
3615
3601
|
I(t, e);
|
|
@@ -3622,17 +3608,17 @@ var ve = (
|
|
|
3622
3608
|
(function(e) {
|
|
3623
3609
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3624
3610
|
})(_ || (_ = {}));
|
|
3625
|
-
function
|
|
3611
|
+
function Wn(e) {
|
|
3626
3612
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3627
3613
|
var n = t[t.length - 1];
|
|
3628
3614
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3629
3615
|
}, []);
|
|
3630
3616
|
}
|
|
3631
|
-
function
|
|
3617
|
+
function zn(e) {
|
|
3632
3618
|
return typeof e == "function";
|
|
3633
3619
|
}
|
|
3634
|
-
function
|
|
3635
|
-
if (e.length === 1 &&
|
|
3620
|
+
function ce(e, t, r, n, i, o, s) {
|
|
3621
|
+
if (e.length === 1 && st(e[0]))
|
|
3636
3622
|
return [
|
|
3637
3623
|
{
|
|
3638
3624
|
type: _.literal,
|
|
@@ -3641,60 +3627,60 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3641
3627
|
];
|
|
3642
3628
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3643
3629
|
var l = u[h];
|
|
3644
|
-
if (
|
|
3630
|
+
if (st(l)) {
|
|
3645
3631
|
a.push({
|
|
3646
3632
|
type: _.literal,
|
|
3647
3633
|
value: l.value
|
|
3648
3634
|
});
|
|
3649
3635
|
continue;
|
|
3650
3636
|
}
|
|
3651
|
-
if (
|
|
3637
|
+
if (mn(l)) {
|
|
3652
3638
|
typeof o == "number" && a.push({
|
|
3653
3639
|
type: _.literal,
|
|
3654
3640
|
value: r.getNumberFormat(t).format(o)
|
|
3655
3641
|
});
|
|
3656
3642
|
continue;
|
|
3657
3643
|
}
|
|
3658
|
-
var
|
|
3659
|
-
if (!(i &&
|
|
3660
|
-
throw new
|
|
3661
|
-
var
|
|
3662
|
-
if (
|
|
3663
|
-
(!
|
|
3664
|
-
type: typeof
|
|
3665
|
-
value:
|
|
3644
|
+
var c = l.value;
|
|
3645
|
+
if (!(i && c in i))
|
|
3646
|
+
throw new Xn(c, s);
|
|
3647
|
+
var f = i[c];
|
|
3648
|
+
if (pn(l)) {
|
|
3649
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3650
|
+
type: typeof f == "string" ? _.literal : _.object,
|
|
3651
|
+
value: f
|
|
3666
3652
|
});
|
|
3667
3653
|
continue;
|
|
3668
3654
|
}
|
|
3669
|
-
if (
|
|
3670
|
-
var
|
|
3655
|
+
if (Rt(l)) {
|
|
3656
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3671
3657
|
a.push({
|
|
3672
3658
|
type: _.literal,
|
|
3673
|
-
value: r.getDateTimeFormat(t,
|
|
3659
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3674
3660
|
});
|
|
3675
3661
|
continue;
|
|
3676
3662
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
var
|
|
3663
|
+
if (Ut(l)) {
|
|
3664
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3679
3665
|
a.push({
|
|
3680
3666
|
type: _.literal,
|
|
3681
|
-
value: r.getDateTimeFormat(t,
|
|
3667
|
+
value: r.getDateTimeFormat(t, d).format(f)
|
|
3682
3668
|
});
|
|
3683
3669
|
continue;
|
|
3684
3670
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var
|
|
3687
|
-
|
|
3671
|
+
if ($t(l)) {
|
|
3672
|
+
var d = typeof l.style == "string" ? n.number[l.style] : jt(l.style) ? l.style.parsedOptions : void 0;
|
|
3673
|
+
d && d.scale && (f = f * (d.scale || 1)), a.push({
|
|
3688
3674
|
type: _.literal,
|
|
3689
|
-
value: r.getNumberFormat(t,
|
|
3675
|
+
value: r.getNumberFormat(t, d).format(f)
|
|
3690
3676
|
});
|
|
3691
3677
|
continue;
|
|
3692
3678
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
var
|
|
3695
|
-
if (!
|
|
3696
|
-
throw new
|
|
3697
|
-
var C =
|
|
3679
|
+
if (Ft(l)) {
|
|
3680
|
+
var p = l.children, v = l.value, H = i[v];
|
|
3681
|
+
if (!zn(H))
|
|
3682
|
+
throw new Vn(v, "function", s);
|
|
3683
|
+
var C = ce(p, t, r, n, i, o), L = H(C.map(function(A) {
|
|
3698
3684
|
return A.value;
|
|
3699
3685
|
}));
|
|
3700
3686
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(A) {
|
|
@@ -3704,42 +3690,42 @@ function fe(e, t, r, n, i, o, s) {
|
|
|
3704
3690
|
};
|
|
3705
3691
|
}));
|
|
3706
3692
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var
|
|
3709
|
-
if (!
|
|
3710
|
-
throw new
|
|
3711
|
-
a.push.apply(a,
|
|
3693
|
+
if (Dt(l)) {
|
|
3694
|
+
var E = l.options[f] || l.options.other;
|
|
3695
|
+
if (!E)
|
|
3696
|
+
throw new dt(l.value, f, Object.keys(l.options), s);
|
|
3697
|
+
a.push.apply(a, ce(E.value, t, r, n, i));
|
|
3712
3698
|
continue;
|
|
3713
3699
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var
|
|
3716
|
-
if (!
|
|
3700
|
+
if (Gt(l)) {
|
|
3701
|
+
var E = l.options["=".concat(f)];
|
|
3702
|
+
if (!E) {
|
|
3717
3703
|
if (!Intl.PluralRules)
|
|
3718
3704
|
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3719
3705
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3720
3706
|
`, W.MISSING_INTL_API, s);
|
|
3721
|
-
var $ = r.getPluralRules(t, { type: l.pluralType }).select(
|
|
3722
|
-
|
|
3707
|
+
var $ = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3708
|
+
E = l.options[$] || l.options.other;
|
|
3723
3709
|
}
|
|
3724
|
-
if (!
|
|
3725
|
-
throw new
|
|
3726
|
-
a.push.apply(a,
|
|
3710
|
+
if (!E)
|
|
3711
|
+
throw new dt(l.value, f, Object.keys(l.options), s);
|
|
3712
|
+
a.push.apply(a, ce(E.value, t, r, n, i, f - (l.offset || 0)));
|
|
3727
3713
|
continue;
|
|
3728
3714
|
}
|
|
3729
3715
|
}
|
|
3730
|
-
return
|
|
3716
|
+
return Wn(a);
|
|
3731
3717
|
}
|
|
3732
|
-
function
|
|
3718
|
+
function Zn(e, t) {
|
|
3733
3719
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3734
3720
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3735
3721
|
}, {})) : e;
|
|
3736
3722
|
}
|
|
3737
|
-
function
|
|
3723
|
+
function Qn(e, t) {
|
|
3738
3724
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3739
|
-
return r[n] =
|
|
3725
|
+
return r[n] = Zn(e[n], t[n]), r;
|
|
3740
3726
|
}, g({}, e)) : e;
|
|
3741
3727
|
}
|
|
3742
|
-
function
|
|
3728
|
+
function Ae(e) {
|
|
3743
3729
|
return {
|
|
3744
3730
|
create: function() {
|
|
3745
3731
|
return {
|
|
@@ -3753,39 +3739,39 @@ function Pe(e) {
|
|
|
3753
3739
|
}
|
|
3754
3740
|
};
|
|
3755
3741
|
}
|
|
3756
|
-
function
|
|
3742
|
+
function Jn(e) {
|
|
3757
3743
|
return e === void 0 && (e = {
|
|
3758
3744
|
number: {},
|
|
3759
3745
|
dateTime: {},
|
|
3760
3746
|
pluralRules: {}
|
|
3761
3747
|
}), {
|
|
3762
|
-
getNumberFormat:
|
|
3748
|
+
getNumberFormat: He(function() {
|
|
3763
3749
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3764
3750
|
r[n] = arguments[n];
|
|
3765
3751
|
return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3766
3752
|
}, {
|
|
3767
|
-
cache:
|
|
3768
|
-
strategy:
|
|
3753
|
+
cache: Ae(e.number),
|
|
3754
|
+
strategy: Be.variadic
|
|
3769
3755
|
}),
|
|
3770
|
-
getDateTimeFormat:
|
|
3756
|
+
getDateTimeFormat: He(function() {
|
|
3771
3757
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3772
3758
|
r[n] = arguments[n];
|
|
3773
3759
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3774
3760
|
}, {
|
|
3775
|
-
cache:
|
|
3776
|
-
strategy:
|
|
3761
|
+
cache: Ae(e.dateTime),
|
|
3762
|
+
strategy: Be.variadic
|
|
3777
3763
|
}),
|
|
3778
|
-
getPluralRules:
|
|
3764
|
+
getPluralRules: He(function() {
|
|
3779
3765
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3780
3766
|
r[n] = arguments[n];
|
|
3781
3767
|
return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
|
|
3782
3768
|
}, {
|
|
3783
|
-
cache:
|
|
3784
|
-
strategy:
|
|
3769
|
+
cache: Ae(e.pluralRules),
|
|
3770
|
+
strategy: Be.variadic
|
|
3785
3771
|
})
|
|
3786
3772
|
};
|
|
3787
3773
|
}
|
|
3788
|
-
var
|
|
3774
|
+
var Yn = (
|
|
3789
3775
|
/** @class */
|
|
3790
3776
|
function() {
|
|
3791
3777
|
function e(t, r, n, i) {
|
|
@@ -3799,12 +3785,12 @@ var Kn = (
|
|
|
3799
3785
|
var u = o.formatToParts(h);
|
|
3800
3786
|
if (u.length === 1)
|
|
3801
3787
|
return u[0].value;
|
|
3802
|
-
var l = u.reduce(function(
|
|
3803
|
-
return !
|
|
3788
|
+
var l = u.reduce(function(c, f) {
|
|
3789
|
+
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3804
3790
|
}, []);
|
|
3805
3791
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3806
3792
|
}, this.formatToParts = function(h) {
|
|
3807
|
-
return
|
|
3793
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3808
3794
|
}, this.resolvedOptions = function() {
|
|
3809
3795
|
var h;
|
|
3810
3796
|
return {
|
|
@@ -3817,13 +3803,13 @@ var Kn = (
|
|
|
3817
3803
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3818
3804
|
var s = i || {};
|
|
3819
3805
|
s.formatters;
|
|
3820
|
-
var a =
|
|
3806
|
+
var a = Ar(s, ["formatters"]);
|
|
3821
3807
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3822
3808
|
} else
|
|
3823
3809
|
this.ast = t;
|
|
3824
3810
|
if (!Array.isArray(this.ast))
|
|
3825
3811
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3826
|
-
this.formats =
|
|
3812
|
+
this.formats = Qn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
|
|
3827
3813
|
}
|
|
3828
3814
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3829
3815
|
get: function() {
|
|
@@ -3836,7 +3822,7 @@ var Kn = (
|
|
|
3836
3822
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3837
3823
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3838
3824
|
}
|
|
3839
|
-
}, e.__parse =
|
|
3825
|
+
}, e.__parse = kn, e.formats = {
|
|
3840
3826
|
number: {
|
|
3841
3827
|
integer: {
|
|
3842
3828
|
maximumFractionDigits: 0
|
|
@@ -3897,7 +3883,7 @@ var Kn = (
|
|
|
3897
3883
|
}, e;
|
|
3898
3884
|
}()
|
|
3899
3885
|
);
|
|
3900
|
-
function
|
|
3886
|
+
function qn(e, t) {
|
|
3901
3887
|
if (t == null)
|
|
3902
3888
|
return;
|
|
3903
3889
|
if (t in e)
|
|
@@ -3918,92 +3904,92 @@ function ei(e, t) {
|
|
|
3918
3904
|
n = void 0;
|
|
3919
3905
|
return n;
|
|
3920
3906
|
}
|
|
3921
|
-
const M = {},
|
|
3907
|
+
const M = {}, Kn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Jt = (e, t) => {
|
|
3922
3908
|
if (t == null)
|
|
3923
3909
|
return;
|
|
3924
3910
|
if (t in M && e in M[t])
|
|
3925
3911
|
return M[t][e];
|
|
3926
|
-
const r =
|
|
3912
|
+
const r = xe(t);
|
|
3927
3913
|
for (let n = 0; n < r.length; n++) {
|
|
3928
|
-
const i = r[n], o =
|
|
3914
|
+
const i = r[n], o = ti(i, e);
|
|
3929
3915
|
if (o)
|
|
3930
|
-
return
|
|
3916
|
+
return Kn(e, t, o);
|
|
3931
3917
|
}
|
|
3932
3918
|
};
|
|
3933
|
-
let
|
|
3919
|
+
let Ze;
|
|
3934
3920
|
const se = ye({});
|
|
3935
|
-
function
|
|
3936
|
-
return
|
|
3921
|
+
function ei(e) {
|
|
3922
|
+
return Ze[e] || null;
|
|
3937
3923
|
}
|
|
3938
|
-
function
|
|
3939
|
-
return e in
|
|
3924
|
+
function Yt(e) {
|
|
3925
|
+
return e in Ze;
|
|
3940
3926
|
}
|
|
3941
|
-
function
|
|
3942
|
-
if (!
|
|
3927
|
+
function ti(e, t) {
|
|
3928
|
+
if (!Yt(e))
|
|
3943
3929
|
return null;
|
|
3944
|
-
const r =
|
|
3945
|
-
return
|
|
3930
|
+
const r = ei(e);
|
|
3931
|
+
return qn(r, t);
|
|
3946
3932
|
}
|
|
3947
|
-
function
|
|
3933
|
+
function ri(e) {
|
|
3948
3934
|
if (e == null)
|
|
3949
3935
|
return;
|
|
3950
|
-
const t =
|
|
3936
|
+
const t = xe(e);
|
|
3951
3937
|
for (let r = 0; r < t.length; r++) {
|
|
3952
3938
|
const n = t[r];
|
|
3953
|
-
if (
|
|
3939
|
+
if (Yt(n))
|
|
3954
3940
|
return n;
|
|
3955
3941
|
}
|
|
3956
3942
|
}
|
|
3957
|
-
function
|
|
3958
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3943
|
+
function qt(e, ...t) {
|
|
3944
|
+
delete M[e], se.update((r) => (r[e] = sn.all([r[e] || {}, ...t]), r));
|
|
3959
3945
|
}
|
|
3960
3946
|
Q(
|
|
3961
3947
|
[se],
|
|
3962
3948
|
([e]) => Object.keys(e)
|
|
3963
3949
|
);
|
|
3964
|
-
se.subscribe((e) =>
|
|
3965
|
-
const
|
|
3966
|
-
function
|
|
3967
|
-
|
|
3950
|
+
se.subscribe((e) => Ze = e);
|
|
3951
|
+
const de = {};
|
|
3952
|
+
function ni(e, t) {
|
|
3953
|
+
de[e].delete(t), de[e].size === 0 && delete de[e];
|
|
3968
3954
|
}
|
|
3969
|
-
function
|
|
3970
|
-
return
|
|
3955
|
+
function Kt(e) {
|
|
3956
|
+
return de[e];
|
|
3971
3957
|
}
|
|
3972
|
-
function
|
|
3973
|
-
return
|
|
3974
|
-
const r =
|
|
3958
|
+
function ii(e) {
|
|
3959
|
+
return xe(e).map((t) => {
|
|
3960
|
+
const r = Kt(t);
|
|
3975
3961
|
return [t, r ? [...r] : []];
|
|
3976
3962
|
}).filter(([, t]) => t.length > 0);
|
|
3977
3963
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return e == null ? !1 :
|
|
3964
|
+
function Ve(e) {
|
|
3965
|
+
return e == null ? !1 : xe(e).some(
|
|
3980
3966
|
(t) => {
|
|
3981
3967
|
var r;
|
|
3982
|
-
return (r =
|
|
3968
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3983
3969
|
}
|
|
3984
3970
|
);
|
|
3985
3971
|
}
|
|
3986
|
-
function
|
|
3972
|
+
function oi(e, t) {
|
|
3987
3973
|
return Promise.all(
|
|
3988
|
-
t.map((n) => (
|
|
3989
|
-
).then((n) =>
|
|
3974
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
3975
|
+
).then((n) => qt(e, ...n));
|
|
3990
3976
|
}
|
|
3991
3977
|
const K = {};
|
|
3992
|
-
function
|
|
3993
|
-
if (!
|
|
3978
|
+
function er(e) {
|
|
3979
|
+
if (!Ve(e))
|
|
3994
3980
|
return e in K ? K[e] : Promise.resolve();
|
|
3995
|
-
const t =
|
|
3981
|
+
const t = ii(e);
|
|
3996
3982
|
return K[e] = Promise.all(
|
|
3997
3983
|
t.map(
|
|
3998
|
-
([r, n]) =>
|
|
3984
|
+
([r, n]) => oi(r, n)
|
|
3999
3985
|
)
|
|
4000
3986
|
).then(() => {
|
|
4001
|
-
if (
|
|
4002
|
-
return
|
|
3987
|
+
if (Ve(e))
|
|
3988
|
+
return er(e);
|
|
4003
3989
|
delete K[e];
|
|
4004
3990
|
}), K[e];
|
|
4005
3991
|
}
|
|
4006
|
-
const
|
|
3992
|
+
const si = {
|
|
4007
3993
|
number: {
|
|
4008
3994
|
scientific: { notation: "scientific" },
|
|
4009
3995
|
engineering: { notation: "engineering" },
|
|
@@ -4032,57 +4018,57 @@ const ui = {
|
|
|
4032
4018
|
timeZoneName: "short"
|
|
4033
4019
|
}
|
|
4034
4020
|
}
|
|
4035
|
-
},
|
|
4021
|
+
}, ai = {
|
|
4036
4022
|
fallbackLocale: null,
|
|
4037
4023
|
loadingDelay: 200,
|
|
4038
|
-
formats:
|
|
4024
|
+
formats: si,
|
|
4039
4025
|
warnOnMissingMessages: !0,
|
|
4040
4026
|
handleMissingMessage: void 0,
|
|
4041
4027
|
ignoreTag: !0
|
|
4042
|
-
},
|
|
4028
|
+
}, ui = ai;
|
|
4043
4029
|
function z() {
|
|
4044
|
-
return
|
|
4045
|
-
}
|
|
4046
|
-
const
|
|
4047
|
-
var
|
|
4048
|
-
for (var r in t
|
|
4049
|
-
|
|
4050
|
-
if (
|
|
4051
|
-
for (var r of
|
|
4052
|
-
|
|
4030
|
+
return ui;
|
|
4031
|
+
}
|
|
4032
|
+
const Pe = ye(!1);
|
|
4033
|
+
var hi = Object.defineProperty, li = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pi = (e, t) => {
|
|
4034
|
+
for (var r in t)
|
|
4035
|
+
ci.call(t, r) && mt(e, r, t[r]);
|
|
4036
|
+
if (pt)
|
|
4037
|
+
for (var r of pt(t))
|
|
4038
|
+
di.call(t, r) && mt(e, r, t[r]);
|
|
4053
4039
|
return e;
|
|
4054
|
-
},
|
|
4055
|
-
let
|
|
4056
|
-
const
|
|
4057
|
-
function
|
|
4040
|
+
}, mi = (e, t) => li(e, fi(t));
|
|
4041
|
+
let Xe;
|
|
4042
|
+
const pe = ye(null);
|
|
4043
|
+
function bt(e) {
|
|
4058
4044
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4059
4045
|
}
|
|
4060
|
-
function
|
|
4061
|
-
const r =
|
|
4062
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4046
|
+
function xe(e, t = z().fallbackLocale) {
|
|
4047
|
+
const r = bt(e);
|
|
4048
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
4063
4049
|
}
|
|
4064
4050
|
function R() {
|
|
4065
|
-
return
|
|
4051
|
+
return Xe ?? void 0;
|
|
4066
4052
|
}
|
|
4067
|
-
|
|
4068
|
-
|
|
4053
|
+
pe.subscribe((e) => {
|
|
4054
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4069
4055
|
});
|
|
4070
|
-
const
|
|
4071
|
-
if (e &&
|
|
4056
|
+
const bi = (e) => {
|
|
4057
|
+
if (e && ri(e) && Ve(e)) {
|
|
4072
4058
|
const { loadingDelay: t } = z();
|
|
4073
4059
|
let r;
|
|
4074
4060
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4075
|
-
() =>
|
|
4061
|
+
() => Pe.set(!0),
|
|
4076
4062
|
t
|
|
4077
|
-
) :
|
|
4078
|
-
|
|
4063
|
+
) : Pe.set(!0), er(e).then(() => {
|
|
4064
|
+
pe.set(e);
|
|
4079
4065
|
}).finally(() => {
|
|
4080
|
-
clearTimeout(r),
|
|
4066
|
+
clearTimeout(r), Pe.set(!1);
|
|
4081
4067
|
});
|
|
4082
4068
|
}
|
|
4083
|
-
return
|
|
4084
|
-
}, J =
|
|
4085
|
-
set:
|
|
4069
|
+
return pe.set(e);
|
|
4070
|
+
}, J = mi(pi({}, pe), {
|
|
4071
|
+
set: bi
|
|
4086
4072
|
}), _e = (e) => {
|
|
4087
4073
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4088
4074
|
return (n) => {
|
|
@@ -4090,20 +4076,20 @@ const yi = (e) => {
|
|
|
4090
4076
|
return i in t ? t[i] : t[i] = e(n);
|
|
4091
4077
|
};
|
|
4092
4078
|
};
|
|
4093
|
-
var
|
|
4079
|
+
var gi = Object.defineProperty, me = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
4094
4080
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4081
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
4096
4082
|
if (me)
|
|
4097
4083
|
for (var r of me(t))
|
|
4098
|
-
|
|
4084
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
4099
4085
|
return e;
|
|
4100
4086
|
}, Y = (e, t) => {
|
|
4101
4087
|
var r = {};
|
|
4102
4088
|
for (var n in e)
|
|
4103
|
-
|
|
4089
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4104
4090
|
if (e != null && me)
|
|
4105
4091
|
for (var n of me(e))
|
|
4106
|
-
t.indexOf(n) < 0 &&
|
|
4092
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4107
4093
|
return r;
|
|
4108
4094
|
};
|
|
4109
4095
|
const ne = (e, t) => {
|
|
@@ -4111,14 +4097,14 @@ const ne = (e, t) => {
|
|
|
4111
4097
|
if (e in r && t in r[e])
|
|
4112
4098
|
return r[e][t];
|
|
4113
4099
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4114
|
-
},
|
|
4100
|
+
}, yi = _e(
|
|
4115
4101
|
(e) => {
|
|
4116
4102
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4117
4103
|
if (r == null)
|
|
4118
4104
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4119
4105
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4120
4106
|
}
|
|
4121
|
-
),
|
|
4107
|
+
), vi = _e(
|
|
4122
4108
|
(e) => {
|
|
4123
4109
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4124
4110
|
if (r == null)
|
|
@@ -4134,33 +4120,33 @@ const ne = (e, t) => {
|
|
|
4134
4120
|
);
|
|
4135
4121
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4136
4122
|
}
|
|
4137
|
-
),
|
|
4123
|
+
), _i = (e = {}) => {
|
|
4138
4124
|
var t = e, {
|
|
4139
4125
|
locale: r = R()
|
|
4140
4126
|
} = t, n = Y(t, [
|
|
4141
4127
|
"locale"
|
|
4142
4128
|
]);
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4129
|
+
return yi(Qe({ locale: r }, n));
|
|
4130
|
+
}, Ei = (e = {}) => {
|
|
4145
4131
|
var t = e, {
|
|
4146
4132
|
locale: r = R()
|
|
4147
4133
|
} = t, n = Y(t, [
|
|
4148
4134
|
"locale"
|
|
4149
4135
|
]);
|
|
4150
|
-
return
|
|
4151
|
-
},
|
|
4136
|
+
return vi(Qe({ locale: r }, n));
|
|
4137
|
+
}, Si = (e = {}) => {
|
|
4152
4138
|
var t = e, {
|
|
4153
4139
|
locale: r = R()
|
|
4154
4140
|
} = t, n = Y(t, [
|
|
4155
4141
|
"locale"
|
|
4156
4142
|
]);
|
|
4157
|
-
return xi(
|
|
4158
|
-
},
|
|
4143
|
+
return xi(Qe({ locale: r }, n));
|
|
4144
|
+
}, Ti = _e(
|
|
4159
4145
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4160
|
-
(e, t = R()) => new
|
|
4146
|
+
(e, t = R()) => new Yn(e, t, z().formats, {
|
|
4161
4147
|
ignoreTag: z().ignoreTag
|
|
4162
4148
|
})
|
|
4163
|
-
),
|
|
4149
|
+
), Hi = (e, t = {}) => {
|
|
4164
4150
|
var r, n, i, o;
|
|
4165
4151
|
let s = t;
|
|
4166
4152
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4173,7 +4159,7 @@ const ne = (e, t) => {
|
|
|
4173
4159
|
throw new Error(
|
|
4174
4160
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4175
4161
|
);
|
|
4176
|
-
let l =
|
|
4162
|
+
let l = Jt(e, h);
|
|
4177
4163
|
if (!l)
|
|
4178
4164
|
l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4179
4165
|
else if (typeof l != "string")
|
|
@@ -4182,23 +4168,23 @@ const ne = (e, t) => {
|
|
|
4182
4168
|
), l;
|
|
4183
4169
|
if (!a)
|
|
4184
4170
|
return l;
|
|
4185
|
-
let
|
|
4171
|
+
let c = l;
|
|
4186
4172
|
try {
|
|
4187
|
-
|
|
4188
|
-
} catch (
|
|
4189
|
-
|
|
4173
|
+
c = Ti(l, h).format(a);
|
|
4174
|
+
} catch (f) {
|
|
4175
|
+
f instanceof Error && console.warn(
|
|
4190
4176
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4191
|
-
|
|
4177
|
+
f.message
|
|
4192
4178
|
);
|
|
4193
4179
|
}
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4180
|
+
return c;
|
|
4181
|
+
}, Bi = (e, t) => Si(t).format(e), wi = (e, t) => Ei(t).format(e), Ai = (e, t) => _i(t).format(e), Pi = (e, t = R()) => Jt(e, t), Oi = Q([J, se], () => Hi);
|
|
4182
|
+
Q([J], () => Bi);
|
|
4183
|
+
Q([J], () => wi);
|
|
4196
4184
|
Q([J], () => Ai);
|
|
4197
|
-
Q([J], () => Pi);
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
window.emWidgets = { topic: Xr };
|
|
4201
|
-
const Ni = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Mi = (e, t = {}) => {
|
|
4185
|
+
Q([J, se], () => Pi);
|
|
4186
|
+
window.emWidgets = { topic: jr };
|
|
4187
|
+
const Ii = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Li = (e, t = {}) => {
|
|
4202
4188
|
const r = new CustomEvent("track-custom-event", {
|
|
4203
4189
|
detail: {
|
|
4204
4190
|
type: e,
|
|
@@ -4209,13 +4195,13 @@ const Ni = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase(
|
|
|
4209
4195
|
});
|
|
4210
4196
|
document.dispatchEvent(r);
|
|
4211
4197
|
};
|
|
4212
|
-
function
|
|
4213
|
-
|
|
4198
|
+
function yt(e, t) {
|
|
4199
|
+
qt(e, t);
|
|
4214
4200
|
}
|
|
4215
|
-
function
|
|
4201
|
+
function Ni(e) {
|
|
4216
4202
|
J.set(e);
|
|
4217
4203
|
}
|
|
4218
|
-
const
|
|
4204
|
+
const vt = {
|
|
4219
4205
|
en: {
|
|
4220
4206
|
logoutButton: "Logout"
|
|
4221
4207
|
},
|
|
@@ -4256,7 +4242,7 @@ function xt(e, t) {
|
|
|
4256
4242
|
r.innerHTML = t, e.appendChild(r);
|
|
4257
4243
|
}
|
|
4258
4244
|
}
|
|
4259
|
-
function
|
|
4245
|
+
function Mi(e, t) {
|
|
4260
4246
|
const r = new URL(t);
|
|
4261
4247
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4262
4248
|
const i = document.createElement("style");
|
|
@@ -4265,7 +4251,7 @@ function $i(e, t) {
|
|
|
4265
4251
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4266
4252
|
});
|
|
4267
4253
|
}
|
|
4268
|
-
function
|
|
4254
|
+
function Ci(e, t, r) {
|
|
4269
4255
|
if (window.emMessageBus) {
|
|
4270
4256
|
const n = document.createElement("style");
|
|
4271
4257
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4273,10 +4259,10 @@ function Ri(e, t, r) {
|
|
|
4273
4259
|
});
|
|
4274
4260
|
}
|
|
4275
4261
|
}
|
|
4276
|
-
function
|
|
4277
|
-
|
|
4262
|
+
function $i(e) {
|
|
4263
|
+
sr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4278
4264
|
}
|
|
4279
|
-
function
|
|
4265
|
+
function Ri(e) {
|
|
4280
4266
|
let t, r, n, i = (
|
|
4281
4267
|
/*$_*/
|
|
4282
4268
|
e[2]("logoutButton") + ""
|
|
@@ -4286,7 +4272,7 @@ function Di(e) {
|
|
|
4286
4272
|
t = P("div"), r = P("button"), n = P("span"), o = be(i), T(t, "class", "GeneralLogout");
|
|
4287
4273
|
},
|
|
4288
4274
|
m(h, u) {
|
|
4289
|
-
oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a =
|
|
4275
|
+
oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Tt(
|
|
4290
4276
|
r,
|
|
4291
4277
|
"click",
|
|
4292
4278
|
/*click_handler_1*/
|
|
@@ -4296,19 +4282,19 @@ function Di(e) {
|
|
|
4296
4282
|
p(h, u) {
|
|
4297
4283
|
u & /*$_*/
|
|
4298
4284
|
4 && i !== (i = /*$_*/
|
|
4299
|
-
h[2]("logoutButton") + "") &&
|
|
4285
|
+
h[2]("logoutButton") + "") && Ht(o, i);
|
|
4300
4286
|
},
|
|
4301
4287
|
d(h) {
|
|
4302
4288
|
h && Z(t), s = !1, a();
|
|
4303
4289
|
}
|
|
4304
4290
|
};
|
|
4305
4291
|
}
|
|
4306
|
-
function
|
|
4307
|
-
let t, r, n, i, o, s, a, h, u, l,
|
|
4308
|
-
e[3] &&
|
|
4292
|
+
function Ui(e) {
|
|
4293
|
+
let t, r, n, i, o, s, a, h, u, l, c, f = !/*isMobile*/
|
|
4294
|
+
e[3] && Di(e);
|
|
4309
4295
|
return {
|
|
4310
4296
|
c() {
|
|
4311
|
-
t = P("p"), r = P("span"), n = q("svg"), i = q("defs"), o = q("style"), s = be(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = q("path"), h = q("path"), u =
|
|
4297
|
+
t = P("p"), r = P("span"), n = q("svg"), i = q("defs"), o = q("style"), s = be(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = q("path"), h = q("path"), u = hr(), f && f.c(), T(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), T(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), T(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), T(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), T(n, "data-name", "Layer 1"), T(n, "xmlns", "http://www.w3.org/2000/svg"), T(n, "viewBox", "0 0 150 150"), fr(r, "width", /*isMobile*/
|
|
4312
4298
|
e[3] ? (
|
|
4313
4299
|
/*mediaQuery*/
|
|
4314
4300
|
e[4].matches ? "20px" : "24px"
|
|
@@ -4317,24 +4303,24 @@ function Gi(e) {
|
|
|
4317
4303
|
(e[4].matches && /*isMobile*/
|
|
4318
4304
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4319
4305
|
},
|
|
4320
|
-
m(
|
|
4321
|
-
oe(
|
|
4306
|
+
m(d, p) {
|
|
4307
|
+
oe(d, t, p), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), f && f.m(t, null), l || (c = Tt(
|
|
4322
4308
|
t,
|
|
4323
4309
|
"click",
|
|
4324
4310
|
/*click_handler*/
|
|
4325
4311
|
e[13]
|
|
4326
4312
|
), l = !0);
|
|
4327
4313
|
},
|
|
4328
|
-
p(
|
|
4314
|
+
p(d, p) {
|
|
4329
4315
|
/*isMobile*/
|
|
4330
|
-
|
|
4316
|
+
d[3] || f.p(d, p);
|
|
4331
4317
|
},
|
|
4332
|
-
d(
|
|
4333
|
-
|
|
4318
|
+
d(d) {
|
|
4319
|
+
d && Z(t), f && f.d(), l = !1, c();
|
|
4334
4320
|
}
|
|
4335
4321
|
};
|
|
4336
4322
|
}
|
|
4337
|
-
function
|
|
4323
|
+
function Di(e) {
|
|
4338
4324
|
let t, r = (
|
|
4339
4325
|
/*$_*/
|
|
4340
4326
|
e[2]("logoutButton") + ""
|
|
@@ -4349,19 +4335,19 @@ function Fi(e) {
|
|
|
4349
4335
|
p(i, o) {
|
|
4350
4336
|
o & /*$_*/
|
|
4351
4337
|
4 && r !== (r = /*$_*/
|
|
4352
|
-
i[2]("logoutButton") + "") &&
|
|
4338
|
+
i[2]("logoutButton") + "") && Ht(n, r);
|
|
4353
4339
|
},
|
|
4354
4340
|
d(i) {
|
|
4355
4341
|
i && Z(t);
|
|
4356
4342
|
}
|
|
4357
4343
|
};
|
|
4358
4344
|
}
|
|
4359
|
-
function
|
|
4345
|
+
function Gi(e) {
|
|
4360
4346
|
let t;
|
|
4361
4347
|
function r(o, s) {
|
|
4362
4348
|
return (
|
|
4363
4349
|
/*buttonlocation*/
|
|
4364
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4350
|
+
o[0] === "PlayerAccountMenu" ? Ui : Ri
|
|
4365
4351
|
);
|
|
4366
4352
|
}
|
|
4367
4353
|
let n = r(e), i = n(e);
|
|
@@ -4382,78 +4368,78 @@ function ji(e) {
|
|
|
4382
4368
|
}
|
|
4383
4369
|
};
|
|
4384
4370
|
}
|
|
4385
|
-
function
|
|
4371
|
+
function Fi(e, t, r) {
|
|
4386
4372
|
let n;
|
|
4387
|
-
|
|
4388
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl:
|
|
4373
|
+
or(e, Oi, (y) => r(2, n = y));
|
|
4374
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f = "", d = !1, p, v = window.navigator.userAgent, H = Ii(v) !== "PC";
|
|
4389
4375
|
const C = window.matchMedia("(min-width: 768px)"), L = () => {
|
|
4390
|
-
fetch(
|
|
4391
|
-
Object.keys(N).forEach((
|
|
4392
|
-
|
|
4376
|
+
fetch(c).then((N) => N.json()).then((N) => {
|
|
4377
|
+
Object.keys(N).forEach((Ee) => {
|
|
4378
|
+
yt(Ee, N[Ee]);
|
|
4393
4379
|
});
|
|
4394
4380
|
}).catch((N) => {
|
|
4395
4381
|
console.log(N);
|
|
4396
4382
|
});
|
|
4397
4383
|
};
|
|
4398
|
-
Object.keys(
|
|
4399
|
-
|
|
4384
|
+
Object.keys(vt).forEach((y) => {
|
|
4385
|
+
yt(y, vt[y]);
|
|
4400
4386
|
});
|
|
4401
|
-
const
|
|
4387
|
+
const E = () => {
|
|
4402
4388
|
let y = new Headers();
|
|
4403
4389
|
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4404
4390
|
let N = { method: "DELETE", headers: y };
|
|
4405
|
-
fetch(`${i}/v1/player/session/player`, N).then((
|
|
4406
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4391
|
+
fetch(`${i}/v1/player/session/player`, N).then((Ee) => {
|
|
4392
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Li("logged_out", {});
|
|
4407
4393
|
});
|
|
4408
|
-
}, $ = () => (i || (
|
|
4409
|
-
|
|
4394
|
+
}, $ = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(f)), d), A = () => {
|
|
4395
|
+
Ni(a);
|
|
4410
4396
|
};
|
|
4411
|
-
|
|
4397
|
+
pr(() => () => {
|
|
4412
4398
|
});
|
|
4413
|
-
const U = () =>
|
|
4414
|
-
function
|
|
4415
|
-
|
|
4416
|
-
|
|
4399
|
+
const U = () => E(), ae = () => E();
|
|
4400
|
+
function nr(y) {
|
|
4401
|
+
Oe[y ? "unshift" : "push"](() => {
|
|
4402
|
+
p = y, r(1, p);
|
|
4417
4403
|
});
|
|
4418
4404
|
}
|
|
4419
4405
|
return e.$$set = (y) => {
|
|
4420
|
-
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12,
|
|
4406
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, c = y.translationurl);
|
|
4421
4407
|
}, e.$$.update = () => {
|
|
4422
4408
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4423
4409
|
193 && i && o && s && $(), e.$$.dirty & /*lang*/
|
|
4424
4410
|
256 && a && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4425
|
-
1026 && u &&
|
|
4426
|
-
1026 && u &&
|
|
4427
|
-
2050 && l &&
|
|
4428
|
-
514 && h &&
|
|
4429
|
-
4096 &&
|
|
4411
|
+
1026 && u && p && xt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4412
|
+
1026 && u && p && xt(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4413
|
+
2050 && l && p && Mi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4414
|
+
514 && h && p && Ci(p, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4415
|
+
4096 && c && L();
|
|
4430
4416
|
}, [
|
|
4431
4417
|
s,
|
|
4432
|
-
|
|
4418
|
+
p,
|
|
4433
4419
|
n,
|
|
4434
4420
|
H,
|
|
4435
4421
|
C,
|
|
4436
|
-
|
|
4422
|
+
E,
|
|
4437
4423
|
i,
|
|
4438
4424
|
o,
|
|
4439
4425
|
a,
|
|
4440
4426
|
h,
|
|
4441
4427
|
u,
|
|
4442
4428
|
l,
|
|
4443
|
-
|
|
4429
|
+
c,
|
|
4444
4430
|
U,
|
|
4445
4431
|
ae,
|
|
4446
|
-
|
|
4432
|
+
nr
|
|
4447
4433
|
];
|
|
4448
4434
|
}
|
|
4449
|
-
class
|
|
4435
|
+
class ji extends Br {
|
|
4450
4436
|
constructor(t) {
|
|
4451
|
-
super(),
|
|
4437
|
+
super(), Tr(
|
|
4452
4438
|
this,
|
|
4453
4439
|
t,
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4440
|
+
Fi,
|
|
4441
|
+
Gi,
|
|
4442
|
+
Et,
|
|
4457
4443
|
{
|
|
4458
4444
|
endpoint: 6,
|
|
4459
4445
|
session: 7,
|
|
@@ -4464,7 +4450,7 @@ class Vi extends Pr {
|
|
|
4464
4450
|
clientstylingurl: 11,
|
|
4465
4451
|
translationurl: 12
|
|
4466
4452
|
},
|
|
4467
|
-
|
|
4453
|
+
$i
|
|
4468
4454
|
);
|
|
4469
4455
|
}
|
|
4470
4456
|
get endpoint() {
|
|
@@ -4516,7 +4502,7 @@ class Vi extends Pr {
|
|
|
4516
4502
|
this.$$set({ translationurl: t }), w();
|
|
4517
4503
|
}
|
|
4518
4504
|
}
|
|
4519
|
-
|
|
4505
|
+
Hr(ji, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4520
4506
|
export {
|
|
4521
|
-
|
|
4507
|
+
ji as G
|
|
4522
4508
|
};
|