@everymatrix/general-logout 1.57.0 → 1.58.0
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-BFvKDK3l.js → GeneralLogout-DQ5QU0Qt.js} +516 -538
- package/components/{GeneralLogout-e9MOZblU.js → GeneralLogout-DhAajlWC.js} +530 -552
- package/components/GeneralLogout-Dn9xyo1g.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-CUVwo8DH.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 Qe() {
|
|
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 xt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function nr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Et(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 ir(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
32
32
|
}
|
|
33
33
|
function S(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function or(e, t, r) {
|
|
37
|
+
const n = sr(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, ar(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function sr(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 ar(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 ur() {
|
|
76
76
|
return be(" ");
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function St(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 hr(e) {
|
|
85
85
|
return Array.from(e.childNodes);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Tt(e, t) {
|
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
89
89
|
t);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function lr(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,81 +104,81 @@ let te;
|
|
|
104
104
|
function ee(e) {
|
|
105
105
|
te = e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function fr() {
|
|
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
|
+
fr().$$.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 Je = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Ie = !1;
|
|
119
|
+
function mr() {
|
|
120
|
+
Ie || (Ie = !0, dr.then(A));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Le(e) {
|
|
123
123
|
j.push(e);
|
|
124
124
|
}
|
|
125
125
|
const Se = /* @__PURE__ */ new Set();
|
|
126
|
-
let
|
|
126
|
+
let G = 0;
|
|
127
127
|
function A() {
|
|
128
|
-
if (
|
|
128
|
+
if (G !== 0)
|
|
129
129
|
return;
|
|
130
130
|
const e = te;
|
|
131
131
|
do {
|
|
132
132
|
try {
|
|
133
|
-
for (;
|
|
134
|
-
const t = F[
|
|
135
|
-
|
|
133
|
+
for (; G < F.length; ) {
|
|
134
|
+
const t = F[G];
|
|
135
|
+
G++, ee(t), br(t.$$);
|
|
136
136
|
}
|
|
137
137
|
} catch (t) {
|
|
138
|
-
throw F.length = 0,
|
|
138
|
+
throw F.length = 0, G = 0, t;
|
|
139
139
|
}
|
|
140
|
-
for (ee(null), F.length = 0,
|
|
141
|
-
|
|
140
|
+
for (ee(null), F.length = 0, G = 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 (; Je.length; )
|
|
149
|
+
Je.pop()();
|
|
150
|
+
Ie = !1, Se.clear(), ee(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function br(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 gr(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 yr = /* @__PURE__ */ new Set();
|
|
164
|
+
function vr(e, t) {
|
|
165
|
+
e && e.i && (yr.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 xr(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (gr(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 Er(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (F.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Sr(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 Ar(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: Qe(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,7 +197,7 @@ function Ar(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: Qe(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || h.$$.root
|
|
@@ -206,19 +206,19 @@ function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
206
206
|
let l = !1;
|
|
207
207
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
208
208
|
const d = p.length ? p[0] : c;
|
|
209
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l &&
|
|
209
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Er(e, f)), c;
|
|
210
210
|
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const f =
|
|
212
|
+
const f = hr(t.target);
|
|
213
213
|
u.fragment && u.fragment.l(f), f.forEach(Z);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && vr(e.$$.fragment), _r(e, t.target, t.anchor), A();
|
|
217
217
|
}
|
|
218
218
|
ee(h);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let Ht;
|
|
221
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -277,7 +277,7 @@ typeof HTMLElement == "function" && (wt = 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 Tr(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends Ht {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -393,7 +393,7 @@ function wr(e, t, r, n, i, o) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
s, s;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class Hr {
|
|
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
|
+
xr(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 && !nr(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 Br = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
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 Bt(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 = Bt(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
|
}
|
|
@@ -590,12 +590,12 @@ var ge = function() {
|
|
|
590
590
|
if (f) {
|
|
591
591
|
this._finalizers = null;
|
|
592
592
|
try {
|
|
593
|
-
for (var c =
|
|
593
|
+
for (var c = Me(f), p = c.next(); !p.done; p = c.next()) {
|
|
594
594
|
var d = p.value;
|
|
595
595
|
try {
|
|
596
|
-
|
|
596
|
+
Ye(d);
|
|
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) {
|
|
@@ -616,7 +616,7 @@ var ge = function() {
|
|
|
616
616
|
var r;
|
|
617
617
|
if (t && t !== this)
|
|
618
618
|
if (this.closed)
|
|
619
|
-
|
|
619
|
+
Ye(t);
|
|
620
620
|
else {
|
|
621
621
|
if (t instanceof e) {
|
|
622
622
|
if (t.closed || t._hasParent(this))
|
|
@@ -633,56 +633,52 @@ 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 wt(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 Ye(e) {
|
|
649
649
|
O(e) ? e() : e.unsubscribe();
|
|
650
650
|
}
|
|
651
|
-
var
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
Promise: void 0,
|
|
655
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
656
|
-
useDeprecatedNextContext: !1
|
|
657
|
-
}, Lr = {
|
|
651
|
+
var wr = {
|
|
652
|
+
Promise: void 0
|
|
653
|
+
}, Pr = {
|
|
658
654
|
setTimeout: function(e, t) {
|
|
659
655
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
660
656
|
r[n - 2] = arguments[n];
|
|
661
|
-
return setTimeout.apply(void 0, k([e, t],
|
|
657
|
+
return setTimeout.apply(void 0, k([e, t], Ce(r)));
|
|
662
658
|
},
|
|
663
659
|
clearTimeout: function(e) {
|
|
664
660
|
return clearTimeout(e);
|
|
665
661
|
},
|
|
666
662
|
delegate: void 0
|
|
667
663
|
};
|
|
668
|
-
function
|
|
669
|
-
|
|
664
|
+
function Or(e) {
|
|
665
|
+
Pr.setTimeout(function() {
|
|
670
666
|
throw e;
|
|
671
667
|
});
|
|
672
668
|
}
|
|
673
|
-
function
|
|
669
|
+
function qe() {
|
|
674
670
|
}
|
|
675
671
|
function ce(e) {
|
|
676
672
|
e();
|
|
677
673
|
}
|
|
678
|
-
var
|
|
674
|
+
var Pt = function(e) {
|
|
679
675
|
I(t, e);
|
|
680
676
|
function t(r) {
|
|
681
677
|
var n = e.call(this) || this;
|
|
682
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
678
|
+
return n.isStopped = !1, r ? (n.destination = r, wt(r) && r.add(n)) : n.destination = Nr, n;
|
|
683
679
|
}
|
|
684
680
|
return t.create = function(r, n, i) {
|
|
685
|
-
return new
|
|
681
|
+
return new Re(r, n, i);
|
|
686
682
|
}, t.prototype.next = function(r) {
|
|
687
683
|
this.isStopped || this._next(r);
|
|
688
684
|
}, t.prototype.error = function(r) {
|
|
@@ -706,11 +702,7 @@ var Nt = function(e) {
|
|
|
706
702
|
this.unsubscribe();
|
|
707
703
|
}
|
|
708
704
|
}, t;
|
|
709
|
-
}(ge),
|
|
710
|
-
function He(e, t) {
|
|
711
|
-
return Mr.call(e, t);
|
|
712
|
-
}
|
|
713
|
-
var Cr = function() {
|
|
705
|
+
}(ge), Ir = function() {
|
|
714
706
|
function e(t) {
|
|
715
707
|
this.partialObserver = t;
|
|
716
708
|
}
|
|
@@ -741,55 +733,43 @@ var Cr = function() {
|
|
|
741
733
|
ue(r);
|
|
742
734
|
}
|
|
743
735
|
}, e;
|
|
744
|
-
}(),
|
|
736
|
+
}(), Re = function(e) {
|
|
745
737
|
I(t, e);
|
|
746
738
|
function t(r, n, i) {
|
|
747
739
|
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;
|
|
740
|
+
return O(r) || !r ? s = {
|
|
741
|
+
next: r ?? void 0,
|
|
742
|
+
error: n ?? void 0,
|
|
743
|
+
complete: i ?? void 0
|
|
744
|
+
} : s = r, o.destination = new Ir(s), o;
|
|
765
745
|
}
|
|
766
746
|
return t;
|
|
767
|
-
}(
|
|
747
|
+
}(Pt);
|
|
768
748
|
function ue(e) {
|
|
769
|
-
|
|
749
|
+
Or(e);
|
|
770
750
|
}
|
|
771
|
-
function
|
|
751
|
+
function Lr(e) {
|
|
772
752
|
throw e;
|
|
773
753
|
}
|
|
774
|
-
var
|
|
754
|
+
var Nr = {
|
|
775
755
|
closed: !0,
|
|
776
|
-
next:
|
|
777
|
-
error:
|
|
778
|
-
complete:
|
|
779
|
-
},
|
|
756
|
+
next: qe,
|
|
757
|
+
error: Lr,
|
|
758
|
+
complete: qe
|
|
759
|
+
}, Mr = function() {
|
|
780
760
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
781
761
|
}();
|
|
782
|
-
function
|
|
762
|
+
function Cr(e) {
|
|
783
763
|
return e;
|
|
784
764
|
}
|
|
785
|
-
function
|
|
786
|
-
return e.length === 0 ?
|
|
765
|
+
function $r(e) {
|
|
766
|
+
return e.length === 0 ? Cr : e.length === 1 ? e[0] : function(r) {
|
|
787
767
|
return e.reduce(function(n, i) {
|
|
788
768
|
return i(n);
|
|
789
769
|
}, r);
|
|
790
770
|
};
|
|
791
771
|
}
|
|
792
|
-
var
|
|
772
|
+
var Ke = function() {
|
|
793
773
|
function e(t) {
|
|
794
774
|
t && (this._subscribe = t);
|
|
795
775
|
}
|
|
@@ -797,7 +777,7 @@ var rt = function() {
|
|
|
797
777
|
var r = new e();
|
|
798
778
|
return r.source = this, r.operator = t, r;
|
|
799
779
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
800
|
-
var i = this, o =
|
|
780
|
+
var i = this, o = Ur(t) ? t : new Re(t, r, n);
|
|
801
781
|
return ce(function() {
|
|
802
782
|
var s = i, a = s.operator, h = s.source;
|
|
803
783
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -810,8 +790,8 @@ var rt = function() {
|
|
|
810
790
|
}
|
|
811
791
|
}, e.prototype.forEach = function(t, r) {
|
|
812
792
|
var n = this;
|
|
813
|
-
return r =
|
|
814
|
-
var s = new
|
|
793
|
+
return r = et(r), new r(function(i, o) {
|
|
794
|
+
var s = new Re({
|
|
815
795
|
next: function(a) {
|
|
816
796
|
try {
|
|
817
797
|
t(a);
|
|
@@ -827,15 +807,15 @@ var rt = function() {
|
|
|
827
807
|
}, e.prototype._subscribe = function(t) {
|
|
828
808
|
var r;
|
|
829
809
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
830
|
-
}, e.prototype[
|
|
810
|
+
}, e.prototype[Mr] = function() {
|
|
831
811
|
return this;
|
|
832
812
|
}, e.prototype.pipe = function() {
|
|
833
813
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
834
814
|
t[r] = arguments[r];
|
|
835
|
-
return
|
|
815
|
+
return $r(t)(this);
|
|
836
816
|
}, e.prototype.toPromise = function(t) {
|
|
837
817
|
var r = this;
|
|
838
|
-
return t =
|
|
818
|
+
return t = et(t), new t(function(n, i) {
|
|
839
819
|
var o;
|
|
840
820
|
r.subscribe(function(s) {
|
|
841
821
|
return o = s;
|
|
@@ -849,32 +829,32 @@ var rt = function() {
|
|
|
849
829
|
return new e(t);
|
|
850
830
|
}, e;
|
|
851
831
|
}();
|
|
852
|
-
function
|
|
832
|
+
function et(e) {
|
|
853
833
|
var t;
|
|
854
|
-
return (t = e ??
|
|
834
|
+
return (t = e ?? wr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
855
835
|
}
|
|
856
|
-
function
|
|
836
|
+
function Rr(e) {
|
|
857
837
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
858
838
|
}
|
|
859
|
-
function
|
|
860
|
-
return e && e instanceof
|
|
839
|
+
function Ur(e) {
|
|
840
|
+
return e && e instanceof Pt || Rr(e) && wt(e);
|
|
861
841
|
}
|
|
862
|
-
var
|
|
842
|
+
var Gr = Bt(function(e) {
|
|
863
843
|
return function() {
|
|
864
844
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
865
845
|
};
|
|
866
|
-
}),
|
|
846
|
+
}), Ot = function(e) {
|
|
867
847
|
I(t, e);
|
|
868
848
|
function t() {
|
|
869
849
|
var r = e.call(this) || this;
|
|
870
850
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
871
851
|
}
|
|
872
852
|
return t.prototype.lift = function(r) {
|
|
873
|
-
var n = new
|
|
853
|
+
var n = new tt(this, this);
|
|
874
854
|
return n.operator = r, n;
|
|
875
855
|
}, t.prototype._throwIfClosed = function() {
|
|
876
856
|
if (this.closed)
|
|
877
|
-
throw new
|
|
857
|
+
throw new Gr();
|
|
878
858
|
}, t.prototype.next = function(r) {
|
|
879
859
|
var n = this;
|
|
880
860
|
ce(function() {
|
|
@@ -882,7 +862,7 @@ var kr = Pt(function(e) {
|
|
|
882
862
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
883
863
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
884
864
|
try {
|
|
885
|
-
for (var s =
|
|
865
|
+
for (var s = Me(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
886
866
|
var h = a.value;
|
|
887
867
|
h.next(r);
|
|
888
868
|
}
|
|
@@ -931,19 +911,19 @@ var kr = Pt(function(e) {
|
|
|
931
911
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
932
912
|
}, t.prototype._innerSubscribe = function(r) {
|
|
933
913
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
934
|
-
return o || s ?
|
|
935
|
-
n.currentObservers = null,
|
|
914
|
+
return o || s ? At : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
915
|
+
n.currentObservers = null, $e(a, r);
|
|
936
916
|
}));
|
|
937
917
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
938
918
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
939
919
|
i ? r.error(o) : s && r.complete();
|
|
940
920
|
}, t.prototype.asObservable = function() {
|
|
941
|
-
var r = new
|
|
921
|
+
var r = new Ke();
|
|
942
922
|
return r.source = this, r;
|
|
943
923
|
}, t.create = function(r, n) {
|
|
944
|
-
return new
|
|
924
|
+
return new tt(r, n);
|
|
945
925
|
}, t;
|
|
946
|
-
}(
|
|
926
|
+
}(Ke), tt = function(e) {
|
|
947
927
|
I(t, e);
|
|
948
928
|
function t(r, n) {
|
|
949
929
|
var i = e.call(this) || this;
|
|
@@ -960,17 +940,17 @@ var kr = Pt(function(e) {
|
|
|
960
940
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
961
941
|
}, t.prototype._subscribe = function(r) {
|
|
962
942
|
var n, i;
|
|
963
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
943
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
|
|
964
944
|
}, t;
|
|
965
|
-
}(
|
|
945
|
+
}(Ot), It = {
|
|
966
946
|
now: function() {
|
|
967
|
-
return (
|
|
947
|
+
return (It.delegate || Date).now();
|
|
968
948
|
},
|
|
969
949
|
delegate: void 0
|
|
970
|
-
},
|
|
950
|
+
}, Dr = function(e) {
|
|
971
951
|
I(t, e);
|
|
972
952
|
function t(r, n, i) {
|
|
973
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
953
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = It);
|
|
974
954
|
var o = e.call(this) || this;
|
|
975
955
|
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
956
|
}
|
|
@@ -990,15 +970,15 @@ var kr = Pt(function(e) {
|
|
|
990
970
|
u && o.splice(0, u + 1);
|
|
991
971
|
}
|
|
992
972
|
}, t;
|
|
993
|
-
}(
|
|
994
|
-
const
|
|
995
|
-
if (
|
|
996
|
-
const r = new
|
|
997
|
-
|
|
973
|
+
}(Ot);
|
|
974
|
+
const rt = [], nt = {}, Fr = (e, t = 0) => {
|
|
975
|
+
if (rt.indexOf(e) == -1) {
|
|
976
|
+
const r = new Dr(t);
|
|
977
|
+
nt[e] = r, rt.push(e);
|
|
998
978
|
}
|
|
999
|
-
return
|
|
1000
|
-
},
|
|
1001
|
-
function
|
|
979
|
+
return nt[e];
|
|
980
|
+
}, D = [];
|
|
981
|
+
function jr(e, t) {
|
|
1002
982
|
return {
|
|
1003
983
|
subscribe: ye(e, t).subscribe
|
|
1004
984
|
};
|
|
@@ -1007,14 +987,14 @@ function ye(e, t = B) {
|
|
|
1007
987
|
let r;
|
|
1008
988
|
const n = /* @__PURE__ */ new Set();
|
|
1009
989
|
function i(a) {
|
|
1010
|
-
if (
|
|
1011
|
-
const h = !
|
|
990
|
+
if (xt(e, a) && (e = a, r)) {
|
|
991
|
+
const h = !D.length;
|
|
1012
992
|
for (const u of n)
|
|
1013
|
-
u[1](),
|
|
993
|
+
u[1](), D.push(u, e);
|
|
1014
994
|
if (h) {
|
|
1015
|
-
for (let u = 0; u <
|
|
1016
|
-
|
|
1017
|
-
|
|
995
|
+
for (let u = 0; u < D.length; u += 2)
|
|
996
|
+
D[u][0](D[u + 1]);
|
|
997
|
+
D.length = 0;
|
|
1018
998
|
}
|
|
1019
999
|
}
|
|
1020
1000
|
}
|
|
@@ -1034,7 +1014,7 @@ function Q(e, t, r) {
|
|
|
1034
1014
|
if (!i.every(Boolean))
|
|
1035
1015
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1036
1016
|
const o = t.length < 2;
|
|
1037
|
-
return
|
|
1017
|
+
return jr(r, (s, a) => {
|
|
1038
1018
|
let h = !1;
|
|
1039
1019
|
const u = [];
|
|
1040
1020
|
let l = 0, f = B;
|
|
@@ -1043,9 +1023,9 @@ function Q(e, t, r) {
|
|
|
1043
1023
|
return;
|
|
1044
1024
|
f();
|
|
1045
1025
|
const d = t(n ? u[0] : u, s, a);
|
|
1046
|
-
o ? s(d) : f =
|
|
1026
|
+
o ? s(d) : f = We(d) ? d : B;
|
|
1047
1027
|
}, p = i.map(
|
|
1048
|
-
(d, v) =>
|
|
1028
|
+
(d, v) => Et(
|
|
1049
1029
|
d,
|
|
1050
1030
|
(H) => {
|
|
1051
1031
|
u[v] = H, l &= ~(1 << v), h && c();
|
|
@@ -1060,70 +1040,70 @@ function Q(e, t, r) {
|
|
|
1060
1040
|
};
|
|
1061
1041
|
});
|
|
1062
1042
|
}
|
|
1063
|
-
function
|
|
1043
|
+
function kr(e) {
|
|
1064
1044
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1065
1045
|
}
|
|
1066
|
-
var
|
|
1067
|
-
return
|
|
1046
|
+
var Vr = function(t) {
|
|
1047
|
+
return Xr(t) && !Wr(t);
|
|
1068
1048
|
};
|
|
1069
|
-
function
|
|
1049
|
+
function Xr(e) {
|
|
1070
1050
|
return !!e && typeof e == "object";
|
|
1071
1051
|
}
|
|
1072
|
-
function
|
|
1052
|
+
function Wr(e) {
|
|
1073
1053
|
var t = Object.prototype.toString.call(e);
|
|
1074
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1054
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
1075
1055
|
}
|
|
1076
|
-
var
|
|
1077
|
-
function
|
|
1078
|
-
return e.$$typeof ===
|
|
1056
|
+
var zr = typeof Symbol == "function" && Symbol.for, Zr = zr ? Symbol.for("react.element") : 60103;
|
|
1057
|
+
function Qr(e) {
|
|
1058
|
+
return e.$$typeof === Zr;
|
|
1079
1059
|
}
|
|
1080
|
-
function
|
|
1060
|
+
function Jr(e) {
|
|
1081
1061
|
return Array.isArray(e) ? [] : {};
|
|
1082
1062
|
}
|
|
1083
1063
|
function re(e, t) {
|
|
1084
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? V(
|
|
1064
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Jr(e), e, t) : e;
|
|
1085
1065
|
}
|
|
1086
|
-
function
|
|
1066
|
+
function Yr(e, t, r) {
|
|
1087
1067
|
return e.concat(t).map(function(n) {
|
|
1088
1068
|
return re(n, r);
|
|
1089
1069
|
});
|
|
1090
1070
|
}
|
|
1091
|
-
function
|
|
1071
|
+
function qr(e, t) {
|
|
1092
1072
|
if (!t.customMerge)
|
|
1093
1073
|
return V;
|
|
1094
1074
|
var r = t.customMerge(e);
|
|
1095
1075
|
return typeof r == "function" ? r : V;
|
|
1096
1076
|
}
|
|
1097
|
-
function
|
|
1077
|
+
function Kr(e) {
|
|
1098
1078
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1099
1079
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1100
1080
|
}) : [];
|
|
1101
1081
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return Object.keys(e).concat(
|
|
1082
|
+
function it(e) {
|
|
1083
|
+
return Object.keys(e).concat(Kr(e));
|
|
1104
1084
|
}
|
|
1105
|
-
function
|
|
1085
|
+
function Lt(e, t) {
|
|
1106
1086
|
try {
|
|
1107
1087
|
return t in e;
|
|
1108
1088
|
} catch {
|
|
1109
1089
|
return !1;
|
|
1110
1090
|
}
|
|
1111
1091
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1092
|
+
function en(e, t) {
|
|
1093
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1114
1094
|
}
|
|
1115
|
-
function
|
|
1095
|
+
function tn(e, t, r) {
|
|
1116
1096
|
var n = {};
|
|
1117
|
-
return r.isMergeableObject(e) &&
|
|
1097
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
1118
1098
|
n[i] = re(e[i], r);
|
|
1119
|
-
}),
|
|
1120
|
-
|
|
1099
|
+
}), it(t).forEach(function(i) {
|
|
1100
|
+
en(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = qr(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1121
1101
|
}), n;
|
|
1122
1102
|
}
|
|
1123
1103
|
function V(e, t, r) {
|
|
1124
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1104
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yr, r.isMergeableObject = r.isMergeableObject || Vr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1125
1105
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1126
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1106
|
+
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : re(t, r);
|
|
1127
1107
|
}
|
|
1128
1108
|
V.all = function(t, r) {
|
|
1129
1109
|
if (!Array.isArray(t))
|
|
@@ -1132,58 +1112,56 @@ V.all = function(t, r) {
|
|
|
1132
1112
|
return V(n, i, r);
|
|
1133
1113
|
}, {});
|
|
1134
1114
|
};
|
|
1135
|
-
var
|
|
1136
|
-
const
|
|
1137
|
-
function
|
|
1138
|
-
var r = t && t.cache ? t.cache :
|
|
1115
|
+
var rn = V, nn = rn;
|
|
1116
|
+
const on = /* @__PURE__ */ kr(nn);
|
|
1117
|
+
function He(e, t) {
|
|
1118
|
+
var r = t && t.cache ? t.cache : fn, n = t && t.serializer ? t.serializer : ln, i = t && t.strategy ? t.strategy : un;
|
|
1139
1119
|
return i(e, {
|
|
1140
1120
|
cache: r,
|
|
1141
1121
|
serializer: n
|
|
1142
1122
|
});
|
|
1143
1123
|
}
|
|
1144
|
-
function
|
|
1124
|
+
function sn(e) {
|
|
1145
1125
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1146
1126
|
}
|
|
1147
|
-
function
|
|
1148
|
-
var i =
|
|
1127
|
+
function an(e, t, r, n) {
|
|
1128
|
+
var i = sn(n) ? n : r(n), o = t.get(i);
|
|
1149
1129
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1150
1130
|
}
|
|
1151
|
-
function
|
|
1131
|
+
function Nt(e, t, r) {
|
|
1152
1132
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1153
1133
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1154
1134
|
}
|
|
1155
|
-
function
|
|
1135
|
+
function Mt(e, t, r, n, i) {
|
|
1156
1136
|
return r.bind(t, e, n, i);
|
|
1157
1137
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var r = e.length === 1 ?
|
|
1160
|
-
return
|
|
1161
|
-
}
|
|
1162
|
-
function fn(e, t) {
|
|
1163
|
-
return Ze(e, this, Ut, t.cache.create(), t.serializer);
|
|
1138
|
+
function un(e, t) {
|
|
1139
|
+
var r = e.length === 1 ? an : Nt;
|
|
1140
|
+
return Mt(e, this, r, t.cache.create(), t.serializer);
|
|
1164
1141
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return
|
|
1142
|
+
function hn(e, t) {
|
|
1143
|
+
return Mt(e, this, Nt, t.cache.create(), t.serializer);
|
|
1167
1144
|
}
|
|
1168
|
-
var
|
|
1145
|
+
var ln = function() {
|
|
1169
1146
|
return JSON.stringify(arguments);
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1147
|
+
}, cn = (
|
|
1148
|
+
/** @class */
|
|
1149
|
+
function() {
|
|
1150
|
+
function e() {
|
|
1151
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1152
|
+
}
|
|
1153
|
+
return e.prototype.get = function(t) {
|
|
1154
|
+
return this.cache[t];
|
|
1155
|
+
}, e.prototype.set = function(t, r) {
|
|
1156
|
+
this.cache[t] = r;
|
|
1157
|
+
}, e;
|
|
1158
|
+
}()
|
|
1159
|
+
), fn = {
|
|
1181
1160
|
create: function() {
|
|
1182
|
-
return new
|
|
1161
|
+
return new cn();
|
|
1183
1162
|
}
|
|
1184
|
-
},
|
|
1185
|
-
variadic:
|
|
1186
|
-
monadic: pn
|
|
1163
|
+
}, Be = {
|
|
1164
|
+
variadic: hn
|
|
1187
1165
|
}, m;
|
|
1188
1166
|
(function(e) {
|
|
1189
1167
|
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";
|
|
@@ -1196,43 +1174,43 @@ var X;
|
|
|
1196
1174
|
(function(e) {
|
|
1197
1175
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1198
1176
|
})(X || (X = {}));
|
|
1199
|
-
function
|
|
1177
|
+
function ot(e) {
|
|
1200
1178
|
return e.type === _.literal;
|
|
1201
1179
|
}
|
|
1202
|
-
function
|
|
1180
|
+
function pn(e) {
|
|
1203
1181
|
return e.type === _.argument;
|
|
1204
1182
|
}
|
|
1205
|
-
function
|
|
1183
|
+
function Ct(e) {
|
|
1206
1184
|
return e.type === _.number;
|
|
1207
1185
|
}
|
|
1208
|
-
function
|
|
1186
|
+
function $t(e) {
|
|
1209
1187
|
return e.type === _.date;
|
|
1210
1188
|
}
|
|
1211
|
-
function
|
|
1189
|
+
function Rt(e) {
|
|
1212
1190
|
return e.type === _.time;
|
|
1213
1191
|
}
|
|
1214
|
-
function
|
|
1192
|
+
function Ut(e) {
|
|
1215
1193
|
return e.type === _.select;
|
|
1216
1194
|
}
|
|
1217
|
-
function
|
|
1195
|
+
function Gt(e) {
|
|
1218
1196
|
return e.type === _.plural;
|
|
1219
1197
|
}
|
|
1220
|
-
function
|
|
1198
|
+
function dn(e) {
|
|
1221
1199
|
return e.type === _.pound;
|
|
1222
1200
|
}
|
|
1223
|
-
function
|
|
1201
|
+
function Dt(e) {
|
|
1224
1202
|
return e.type === _.tag;
|
|
1225
1203
|
}
|
|
1226
|
-
function
|
|
1204
|
+
function Ft(e) {
|
|
1227
1205
|
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1228
1206
|
}
|
|
1229
|
-
function
|
|
1207
|
+
function Ue(e) {
|
|
1230
1208
|
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1231
1209
|
}
|
|
1232
|
-
var
|
|
1233
|
-
function
|
|
1210
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[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;
|
|
1211
|
+
function bn(e) {
|
|
1234
1212
|
var t = {};
|
|
1235
|
-
return e.replace(
|
|
1213
|
+
return e.replace(mn, function(r) {
|
|
1236
1214
|
var n = r.length;
|
|
1237
1215
|
switch (r[0]) {
|
|
1238
1216
|
case "G":
|
|
@@ -1321,11 +1299,11 @@ function vn(e) {
|
|
|
1321
1299
|
return "";
|
|
1322
1300
|
}), t;
|
|
1323
1301
|
}
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1302
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1303
|
+
function yn(e) {
|
|
1326
1304
|
if (e.length === 0)
|
|
1327
1305
|
throw new Error("Number skeleton cannot be empty");
|
|
1328
|
-
for (var t = e.split(
|
|
1306
|
+
for (var t = e.split(gn).filter(function(c) {
|
|
1329
1307
|
return c.length > 0;
|
|
1330
1308
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1331
1309
|
var o = i[n], s = o.split("/");
|
|
@@ -1340,17 +1318,17 @@ function En(e) {
|
|
|
1340
1318
|
}
|
|
1341
1319
|
return r;
|
|
1342
1320
|
}
|
|
1343
|
-
function
|
|
1321
|
+
function vn(e) {
|
|
1344
1322
|
return e.replace(/^(.*?)-/, "");
|
|
1345
1323
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1324
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
1325
|
+
function at(e) {
|
|
1348
1326
|
var t = {};
|
|
1349
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1327
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
1350
1328
|
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
1329
|
}), t;
|
|
1352
1330
|
}
|
|
1353
|
-
function
|
|
1331
|
+
function Xt(e) {
|
|
1354
1332
|
switch (e) {
|
|
1355
1333
|
case "sign-auto":
|
|
1356
1334
|
return {
|
|
@@ -1390,7 +1368,7 @@ function Qt(e) {
|
|
|
1390
1368
|
};
|
|
1391
1369
|
}
|
|
1392
1370
|
}
|
|
1393
|
-
function
|
|
1371
|
+
function xn(e) {
|
|
1394
1372
|
var t;
|
|
1395
1373
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1396
1374
|
notation: "engineering"
|
|
@@ -1398,17 +1376,17 @@ function Tn(e) {
|
|
|
1398
1376
|
notation: "scientific"
|
|
1399
1377
|
}, e = e.slice(1)), t) {
|
|
1400
1378
|
var r = e.slice(0, 2);
|
|
1401
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1379
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
1402
1380
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1403
1381
|
t.minimumIntegerDigits = e.length;
|
|
1404
1382
|
}
|
|
1405
1383
|
return t;
|
|
1406
1384
|
}
|
|
1407
|
-
function
|
|
1408
|
-
var t = {}, r =
|
|
1385
|
+
function ut(e) {
|
|
1386
|
+
var t = {}, r = Xt(e);
|
|
1409
1387
|
return r || t;
|
|
1410
1388
|
}
|
|
1411
|
-
function
|
|
1389
|
+
function En(e) {
|
|
1412
1390
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1413
1391
|
var i = n[r];
|
|
1414
1392
|
switch (i.stem) {
|
|
@@ -1432,7 +1410,7 @@ function Hn(e) {
|
|
|
1432
1410
|
continue;
|
|
1433
1411
|
case "measure-unit":
|
|
1434
1412
|
case "unit":
|
|
1435
|
-
t.style = "unit", t.unit =
|
|
1413
|
+
t.style = "unit", t.unit = vn(i.options[0]);
|
|
1436
1414
|
continue;
|
|
1437
1415
|
case "compact-short":
|
|
1438
1416
|
case "K":
|
|
@@ -1444,12 +1422,12 @@ function Hn(e) {
|
|
|
1444
1422
|
continue;
|
|
1445
1423
|
case "scientific":
|
|
1446
1424
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1447
|
-
return g(g({}, h),
|
|
1425
|
+
return g(g({}, h), ut(u));
|
|
1448
1426
|
}, {}));
|
|
1449
1427
|
continue;
|
|
1450
1428
|
case "engineering":
|
|
1451
1429
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1452
|
-
return g(g({}, h),
|
|
1430
|
+
return g(g({}, h), ut(u));
|
|
1453
1431
|
}, {}));
|
|
1454
1432
|
continue;
|
|
1455
1433
|
case "notation-simple":
|
|
@@ -1494,7 +1472,7 @@ function Hn(e) {
|
|
|
1494
1472
|
case "integer-width":
|
|
1495
1473
|
if (i.options.length > 1)
|
|
1496
1474
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1497
|
-
i.options[0].replace(
|
|
1475
|
+
i.options[0].replace(_n, function(h, u, l, f, c, p) {
|
|
1498
1476
|
if (u)
|
|
1499
1477
|
t.minimumIntegerDigits = l.length;
|
|
1500
1478
|
else {
|
|
@@ -1507,27 +1485,27 @@ function Hn(e) {
|
|
|
1507
1485
|
});
|
|
1508
1486
|
continue;
|
|
1509
1487
|
}
|
|
1510
|
-
if (
|
|
1488
|
+
if (Vt.test(i.stem)) {
|
|
1511
1489
|
t.minimumIntegerDigits = i.stem.length;
|
|
1512
1490
|
continue;
|
|
1513
1491
|
}
|
|
1514
|
-
if (
|
|
1492
|
+
if (st.test(i.stem)) {
|
|
1515
1493
|
if (i.options.length > 1)
|
|
1516
1494
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1517
|
-
i.stem.replace(
|
|
1495
|
+
i.stem.replace(st, function(h, u, l, f, c, p) {
|
|
1518
1496
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1519
1497
|
});
|
|
1520
1498
|
var o = i.options[0];
|
|
1521
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1499
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), at(o)));
|
|
1522
1500
|
continue;
|
|
1523
1501
|
}
|
|
1524
|
-
if (
|
|
1525
|
-
t = g(g({}, t),
|
|
1502
|
+
if (kt.test(i.stem)) {
|
|
1503
|
+
t = g(g({}, t), at(i.stem));
|
|
1526
1504
|
continue;
|
|
1527
1505
|
}
|
|
1528
|
-
var s =
|
|
1506
|
+
var s = Xt(i.stem);
|
|
1529
1507
|
s && (t = g(g({}, t), s));
|
|
1530
|
-
var a =
|
|
1508
|
+
var a = xn(i.stem);
|
|
1531
1509
|
a && (t = g(g({}, t), a));
|
|
1532
1510
|
}
|
|
1533
1511
|
return t;
|
|
@@ -2947,13 +2925,13 @@ var he = {
|
|
|
2947
2925
|
"h"
|
|
2948
2926
|
]
|
|
2949
2927
|
};
|
|
2950
|
-
function
|
|
2928
|
+
function Sn(e, t) {
|
|
2951
2929
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2952
2930
|
var i = e.charAt(n);
|
|
2953
2931
|
if (i === "j") {
|
|
2954
2932
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2955
2933
|
o++, n++;
|
|
2956
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2934
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Tn(t);
|
|
2957
2935
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2958
2936
|
r += h;
|
|
2959
2937
|
for (; s-- > 0; )
|
|
@@ -2963,7 +2941,7 @@ function Bn(e, t) {
|
|
|
2963
2941
|
}
|
|
2964
2942
|
return r;
|
|
2965
2943
|
}
|
|
2966
|
-
function
|
|
2944
|
+
function Tn(e) {
|
|
2967
2945
|
var t = e.hourCycle;
|
|
2968
2946
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2969
2947
|
e.hourCycles && // @ts-ignore
|
|
@@ -2985,20 +2963,20 @@ function An(e) {
|
|
|
2985
2963
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2986
2964
|
return i[0];
|
|
2987
2965
|
}
|
|
2988
|
-
var
|
|
2966
|
+
var Ae, Hn = new RegExp("^".concat(jt.source, "*")), Bn = new RegExp("".concat(jt.source, "*$"));
|
|
2989
2967
|
function b(e, t) {
|
|
2990
2968
|
return { start: e, end: t };
|
|
2991
2969
|
}
|
|
2992
|
-
var
|
|
2970
|
+
var An = !!String.prototype.startsWith && "_a".startsWith("a", 1), wn = !!String.fromCodePoint, Pn = !!Object.fromEntries, On = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, Nn = !!Number.isSafeInteger, Mn = Nn ? Number.isSafeInteger : function(e) {
|
|
2993
2971
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2994
2972
|
}, Ge = !0;
|
|
2995
2973
|
try {
|
|
2996
|
-
var
|
|
2997
|
-
Ge = ((
|
|
2974
|
+
var Cn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2975
|
+
Ge = ((Ae = Cn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2998
2976
|
} catch {
|
|
2999
2977
|
Ge = !1;
|
|
3000
2978
|
}
|
|
3001
|
-
var
|
|
2979
|
+
var ht = An ? (
|
|
3002
2980
|
// Native
|
|
3003
2981
|
function(t, r, n) {
|
|
3004
2982
|
return t.startsWith(r, n);
|
|
@@ -3008,7 +2986,7 @@ var ft = On ? (
|
|
|
3008
2986
|
function(t, r, n) {
|
|
3009
2987
|
return t.slice(n, n + r.length) === r;
|
|
3010
2988
|
}
|
|
3011
|
-
),
|
|
2989
|
+
), De = wn ? String.fromCodePoint : (
|
|
3012
2990
|
// IE11
|
|
3013
2991
|
function() {
|
|
3014
2992
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3020,9 +2998,9 @@ var ft = On ? (
|
|
|
3020
2998
|
}
|
|
3021
2999
|
return n;
|
|
3022
3000
|
}
|
|
3023
|
-
),
|
|
3001
|
+
), lt = (
|
|
3024
3002
|
// native
|
|
3025
|
-
|
|
3003
|
+
Pn ? Object.fromEntries : (
|
|
3026
3004
|
// Ponyfill
|
|
3027
3005
|
function(t) {
|
|
3028
3006
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3032,7 +3010,7 @@ var ft = On ? (
|
|
|
3032
3010
|
return r;
|
|
3033
3011
|
}
|
|
3034
3012
|
)
|
|
3035
|
-
),
|
|
3013
|
+
), Wt = On ? (
|
|
3036
3014
|
// Native
|
|
3037
3015
|
function(t, r) {
|
|
3038
3016
|
return t.codePointAt(r);
|
|
@@ -3046,7 +3024,7 @@ var ft = On ? (
|
|
|
3046
3024
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3047
3025
|
}
|
|
3048
3026
|
}
|
|
3049
|
-
),
|
|
3027
|
+
), $n = In ? (
|
|
3050
3028
|
// Native
|
|
3051
3029
|
function(t) {
|
|
3052
3030
|
return t.trimStart();
|
|
@@ -3054,9 +3032,9 @@ var ft = On ? (
|
|
|
3054
3032
|
) : (
|
|
3055
3033
|
// Ponyfill
|
|
3056
3034
|
function(t) {
|
|
3057
|
-
return t.replace(
|
|
3035
|
+
return t.replace(Hn, "");
|
|
3058
3036
|
}
|
|
3059
|
-
),
|
|
3037
|
+
), Rn = Ln ? (
|
|
3060
3038
|
// Native
|
|
3061
3039
|
function(t) {
|
|
3062
3040
|
return t.trimEnd();
|
|
@@ -3064,32 +3042,32 @@ var ft = On ? (
|
|
|
3064
3042
|
) : (
|
|
3065
3043
|
// Ponyfill
|
|
3066
3044
|
function(t) {
|
|
3067
|
-
return t.replace(
|
|
3045
|
+
return t.replace(Bn, "");
|
|
3068
3046
|
}
|
|
3069
3047
|
);
|
|
3070
|
-
function
|
|
3048
|
+
function zt(e, t) {
|
|
3071
3049
|
return new RegExp(e, t);
|
|
3072
3050
|
}
|
|
3073
|
-
var
|
|
3051
|
+
var Fe;
|
|
3074
3052
|
if (Ge) {
|
|
3075
|
-
var
|
|
3076
|
-
|
|
3053
|
+
var ct = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3054
|
+
Fe = function(t, r) {
|
|
3077
3055
|
var n;
|
|
3078
|
-
|
|
3079
|
-
var i =
|
|
3056
|
+
ct.lastIndex = r;
|
|
3057
|
+
var i = ct.exec(t);
|
|
3080
3058
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3081
3059
|
};
|
|
3082
3060
|
} else
|
|
3083
|
-
|
|
3061
|
+
Fe = function(t, r) {
|
|
3084
3062
|
for (var n = []; ; ) {
|
|
3085
|
-
var i =
|
|
3086
|
-
if (i === void 0 ||
|
|
3063
|
+
var i = Wt(t, r);
|
|
3064
|
+
if (i === void 0 || Zt(i) || Fn(i))
|
|
3087
3065
|
break;
|
|
3088
3066
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3089
3067
|
}
|
|
3090
|
-
return
|
|
3068
|
+
return De.apply(void 0, n);
|
|
3091
3069
|
};
|
|
3092
|
-
var
|
|
3070
|
+
var Un = (
|
|
3093
3071
|
/** @class */
|
|
3094
3072
|
function() {
|
|
3095
3073
|
function e(t, r) {
|
|
@@ -3120,7 +3098,7 @@ var Fn = (
|
|
|
3120
3098
|
if (n)
|
|
3121
3099
|
break;
|
|
3122
3100
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3123
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3101
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
3124
3102
|
var s = this.parseTag(t, r);
|
|
3125
3103
|
if (s.err)
|
|
3126
3104
|
return s;
|
|
@@ -3153,7 +3131,7 @@ var Fn = (
|
|
|
3153
3131
|
return o;
|
|
3154
3132
|
var s = o.val, a = this.clonePosition();
|
|
3155
3133
|
if (this.bumpIf("</")) {
|
|
3156
|
-
if (this.isEOF() || !
|
|
3134
|
+
if (this.isEOF() || !je(this.char()))
|
|
3157
3135
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3158
3136
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3159
3137
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3171,7 +3149,7 @@ var Fn = (
|
|
|
3171
3149
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3172
3150
|
}, e.prototype.parseTagName = function() {
|
|
3173
3151
|
var t = this.offset();
|
|
3174
|
-
for (this.bump(); !this.isEOF() &&
|
|
3152
|
+
for (this.bump(); !this.isEOF() && Dn(this.char()); )
|
|
3175
3153
|
this.bump();
|
|
3176
3154
|
return this.message.slice(t, this.offset());
|
|
3177
3155
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3200,7 +3178,7 @@ var Fn = (
|
|
|
3200
3178
|
};
|
|
3201
3179
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3202
3180
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3203
|
-
!
|
|
3181
|
+
!Gn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3204
3182
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3205
3183
|
if (this.isEOF() || this.char() !== 39)
|
|
3206
3184
|
return null;
|
|
@@ -3234,12 +3212,12 @@ var Fn = (
|
|
|
3234
3212
|
r.push(n);
|
|
3235
3213
|
this.bump();
|
|
3236
3214
|
}
|
|
3237
|
-
return
|
|
3215
|
+
return De.apply(void 0, r);
|
|
3238
3216
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3239
3217
|
if (this.isEOF())
|
|
3240
3218
|
return null;
|
|
3241
3219
|
var n = this.char();
|
|
3242
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3220
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3243
3221
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3244
3222
|
var n = this.clonePosition();
|
|
3245
3223
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3268,7 +3246,7 @@ var Fn = (
|
|
|
3268
3246
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3269
3247
|
}
|
|
3270
3248
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3271
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3249
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
3272
3250
|
this.bumpTo(i);
|
|
3273
3251
|
var o = this.clonePosition(), s = b(t, o);
|
|
3274
3252
|
return { value: n, location: s };
|
|
@@ -3287,7 +3265,7 @@ var Fn = (
|
|
|
3287
3265
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3288
3266
|
if (f.err)
|
|
3289
3267
|
return f;
|
|
3290
|
-
var c =
|
|
3268
|
+
var c = Rn(f.val);
|
|
3291
3269
|
if (c.length === 0)
|
|
3292
3270
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3293
3271
|
var p = b(l, this.clonePosition());
|
|
@@ -3297,8 +3275,8 @@ var Fn = (
|
|
|
3297
3275
|
if (d.err)
|
|
3298
3276
|
return d;
|
|
3299
3277
|
var v = b(i, this.clonePosition());
|
|
3300
|
-
if (u &&
|
|
3301
|
-
var H =
|
|
3278
|
+
if (u && ht(u?.style, "::", 0)) {
|
|
3279
|
+
var H = $n(u.style.slice(2));
|
|
3302
3280
|
if (a === "number") {
|
|
3303
3281
|
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3304
3282
|
return f.err ? f : {
|
|
@@ -3309,12 +3287,12 @@ var Fn = (
|
|
|
3309
3287
|
if (H.length === 0)
|
|
3310
3288
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3311
3289
|
var C = H;
|
|
3312
|
-
this.locale && (C =
|
|
3290
|
+
this.locale && (C = Sn(H, this.locale));
|
|
3313
3291
|
var c = {
|
|
3314
3292
|
type: X.dateTime,
|
|
3315
3293
|
pattern: C,
|
|
3316
3294
|
location: u.styleLocation,
|
|
3317
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3295
|
+
parsedOptions: this.shouldParseSkeletons ? bn(C) : {}
|
|
3318
3296
|
}, L = a === "date" ? _.date : _.time;
|
|
3319
3297
|
return {
|
|
3320
3298
|
val: { type: L, value: n, location: v, style: c },
|
|
@@ -3335,9 +3313,9 @@ var Fn = (
|
|
|
3335
3313
|
case "plural":
|
|
3336
3314
|
case "selectordinal":
|
|
3337
3315
|
case "select": {
|
|
3338
|
-
var
|
|
3316
|
+
var E = this.clonePosition();
|
|
3339
3317
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3340
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3318
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(E, g({}, E)));
|
|
3341
3319
|
this.bumpSpace();
|
|
3342
3320
|
var $ = this.parseIdentifierIfPossible(), w = 0;
|
|
3343
3321
|
if (a !== "select" && $.value === "offset") {
|
|
@@ -3360,7 +3338,7 @@ var Fn = (
|
|
|
3360
3338
|
val: {
|
|
3361
3339
|
type: _.select,
|
|
3362
3340
|
value: n,
|
|
3363
|
-
options:
|
|
3341
|
+
options: lt(U.val),
|
|
3364
3342
|
location: ae
|
|
3365
3343
|
},
|
|
3366
3344
|
err: null
|
|
@@ -3368,7 +3346,7 @@ var Fn = (
|
|
|
3368
3346
|
val: {
|
|
3369
3347
|
type: _.plural,
|
|
3370
3348
|
value: n,
|
|
3371
|
-
options:
|
|
3349
|
+
options: lt(U.val),
|
|
3372
3350
|
offset: w,
|
|
3373
3351
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3374
3352
|
location: ae
|
|
@@ -3419,7 +3397,7 @@ var Fn = (
|
|
|
3419
3397
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3420
3398
|
var n = [];
|
|
3421
3399
|
try {
|
|
3422
|
-
n =
|
|
3400
|
+
n = yn(t);
|
|
3423
3401
|
} catch {
|
|
3424
3402
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3425
3403
|
}
|
|
@@ -3428,7 +3406,7 @@ var Fn = (
|
|
|
3428
3406
|
type: X.number,
|
|
3429
3407
|
tokens: n,
|
|
3430
3408
|
location: r,
|
|
3431
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3409
|
+
parsedOptions: this.shouldParseSkeletons ? En(n) : {}
|
|
3432
3410
|
},
|
|
3433
3411
|
err: null
|
|
3434
3412
|
};
|
|
@@ -3476,7 +3454,7 @@ var Fn = (
|
|
|
3476
3454
|
break;
|
|
3477
3455
|
}
|
|
3478
3456
|
var h = b(i, this.clonePosition());
|
|
3479
|
-
return o ? (s *= n,
|
|
3457
|
+
return o ? (s *= n, Mn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3480
3458
|
}, e.prototype.offset = function() {
|
|
3481
3459
|
return this.position.offset;
|
|
3482
3460
|
}, e.prototype.isEOF = function() {
|
|
@@ -3491,7 +3469,7 @@ var Fn = (
|
|
|
3491
3469
|
var t = this.position.offset;
|
|
3492
3470
|
if (t >= this.message.length)
|
|
3493
3471
|
throw Error("out of bound");
|
|
3494
|
-
var r =
|
|
3472
|
+
var r = Wt(this.message, t);
|
|
3495
3473
|
if (r === void 0)
|
|
3496
3474
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3497
3475
|
return r;
|
|
@@ -3510,7 +3488,7 @@ var Fn = (
|
|
|
3510
3488
|
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
3489
|
}
|
|
3512
3490
|
}, e.prototype.bumpIf = function(t) {
|
|
3513
|
-
if (
|
|
3491
|
+
if (ht(this.message, t, this.offset())) {
|
|
3514
3492
|
for (var r = 0; r < t.length; r++)
|
|
3515
3493
|
this.bump();
|
|
3516
3494
|
return !0;
|
|
@@ -3532,7 +3510,7 @@ var Fn = (
|
|
|
3532
3510
|
break;
|
|
3533
3511
|
}
|
|
3534
3512
|
}, e.prototype.bumpSpace = function() {
|
|
3535
|
-
for (; !this.isEOF() &&
|
|
3513
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3536
3514
|
this.bump();
|
|
3537
3515
|
}, e.prototype.peek = function() {
|
|
3538
3516
|
if (this.isEOF())
|
|
@@ -3542,38 +3520,38 @@ var Fn = (
|
|
|
3542
3520
|
}, e;
|
|
3543
3521
|
}()
|
|
3544
3522
|
);
|
|
3545
|
-
function
|
|
3523
|
+
function je(e) {
|
|
3546
3524
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3547
3525
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return
|
|
3526
|
+
function Gn(e) {
|
|
3527
|
+
return je(e) || e === 47;
|
|
3550
3528
|
}
|
|
3551
|
-
function
|
|
3529
|
+
function Dn(e) {
|
|
3552
3530
|
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
3531
|
}
|
|
3554
|
-
function
|
|
3532
|
+
function Zt(e) {
|
|
3555
3533
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3556
3534
|
}
|
|
3557
|
-
function
|
|
3535
|
+
function Fn(e) {
|
|
3558
3536
|
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
3537
|
}
|
|
3560
|
-
function
|
|
3538
|
+
function ke(e) {
|
|
3561
3539
|
e.forEach(function(t) {
|
|
3562
|
-
if (delete t.location,
|
|
3540
|
+
if (delete t.location, Ut(t) || Gt(t))
|
|
3563
3541
|
for (var r in t.options)
|
|
3564
|
-
delete t.options[r].location,
|
|
3542
|
+
delete t.options[r].location, ke(t.options[r].value);
|
|
3565
3543
|
else
|
|
3566
|
-
|
|
3544
|
+
Ct(t) && Ft(t.style) || ($t(t) || Rt(t)) && Ue(t.style) ? delete t.style.location : Dt(t) && ke(t.children);
|
|
3567
3545
|
});
|
|
3568
3546
|
}
|
|
3569
|
-
function
|
|
3547
|
+
function jn(e, t) {
|
|
3570
3548
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3571
|
-
var r = new
|
|
3549
|
+
var r = new Un(e, t).parse();
|
|
3572
3550
|
if (r.err) {
|
|
3573
3551
|
var n = SyntaxError(m[r.err.kind]);
|
|
3574
3552
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3575
3553
|
}
|
|
3576
|
-
return t?.captureLocation ||
|
|
3554
|
+
return t?.captureLocation || ke(r.val), r.val;
|
|
3577
3555
|
}
|
|
3578
3556
|
var W;
|
|
3579
3557
|
(function(e) {
|
|
@@ -3591,7 +3569,7 @@ var ve = (
|
|
|
3591
3569
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3592
3570
|
}, t;
|
|
3593
3571
|
}(Error)
|
|
3594
|
-
),
|
|
3572
|
+
), ft = (
|
|
3595
3573
|
/** @class */
|
|
3596
3574
|
function(e) {
|
|
3597
3575
|
I(t, e);
|
|
@@ -3600,7 +3578,7 @@ var ve = (
|
|
|
3600
3578
|
}
|
|
3601
3579
|
return t;
|
|
3602
3580
|
}(ve)
|
|
3603
|
-
),
|
|
3581
|
+
), kn = (
|
|
3604
3582
|
/** @class */
|
|
3605
3583
|
function(e) {
|
|
3606
3584
|
I(t, e);
|
|
@@ -3609,7 +3587,7 @@ var ve = (
|
|
|
3609
3587
|
}
|
|
3610
3588
|
return t;
|
|
3611
3589
|
}(ve)
|
|
3612
|
-
),
|
|
3590
|
+
), Vn = (
|
|
3613
3591
|
/** @class */
|
|
3614
3592
|
function(e) {
|
|
3615
3593
|
I(t, e);
|
|
@@ -3618,128 +3596,128 @@ var ve = (
|
|
|
3618
3596
|
}
|
|
3619
3597
|
return t;
|
|
3620
3598
|
}(ve)
|
|
3621
|
-
),
|
|
3599
|
+
), x;
|
|
3622
3600
|
(function(e) {
|
|
3623
3601
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3624
|
-
})(
|
|
3625
|
-
function
|
|
3602
|
+
})(x || (x = {}));
|
|
3603
|
+
function Xn(e) {
|
|
3626
3604
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3627
3605
|
var n = t[t.length - 1];
|
|
3628
|
-
return !n || n.type !==
|
|
3606
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3629
3607
|
}, []);
|
|
3630
3608
|
}
|
|
3631
|
-
function
|
|
3609
|
+
function Wn(e) {
|
|
3632
3610
|
return typeof e == "function";
|
|
3633
3611
|
}
|
|
3634
3612
|
function fe(e, t, r, n, i, o, s) {
|
|
3635
|
-
if (e.length === 1 &&
|
|
3613
|
+
if (e.length === 1 && ot(e[0]))
|
|
3636
3614
|
return [
|
|
3637
3615
|
{
|
|
3638
|
-
type:
|
|
3616
|
+
type: x.literal,
|
|
3639
3617
|
value: e[0].value
|
|
3640
3618
|
}
|
|
3641
3619
|
];
|
|
3642
3620
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3643
3621
|
var l = u[h];
|
|
3644
|
-
if (
|
|
3622
|
+
if (ot(l)) {
|
|
3645
3623
|
a.push({
|
|
3646
|
-
type:
|
|
3624
|
+
type: x.literal,
|
|
3647
3625
|
value: l.value
|
|
3648
3626
|
});
|
|
3649
3627
|
continue;
|
|
3650
3628
|
}
|
|
3651
|
-
if (
|
|
3629
|
+
if (dn(l)) {
|
|
3652
3630
|
typeof o == "number" && a.push({
|
|
3653
|
-
type:
|
|
3631
|
+
type: x.literal,
|
|
3654
3632
|
value: r.getNumberFormat(t).format(o)
|
|
3655
3633
|
});
|
|
3656
3634
|
continue;
|
|
3657
3635
|
}
|
|
3658
3636
|
var f = l.value;
|
|
3659
3637
|
if (!(i && f in i))
|
|
3660
|
-
throw new
|
|
3638
|
+
throw new Vn(f, s);
|
|
3661
3639
|
var c = i[f];
|
|
3662
|
-
if (
|
|
3640
|
+
if (pn(l)) {
|
|
3663
3641
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3664
|
-
type: typeof c == "string" ?
|
|
3642
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3665
3643
|
value: c
|
|
3666
3644
|
});
|
|
3667
3645
|
continue;
|
|
3668
3646
|
}
|
|
3669
|
-
if (
|
|
3670
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3647
|
+
if ($t(l)) {
|
|
3648
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3671
3649
|
a.push({
|
|
3672
|
-
type:
|
|
3650
|
+
type: x.literal,
|
|
3673
3651
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3674
3652
|
});
|
|
3675
3653
|
continue;
|
|
3676
3654
|
}
|
|
3677
|
-
if (
|
|
3678
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3655
|
+
if (Rt(l)) {
|
|
3656
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3679
3657
|
a.push({
|
|
3680
|
-
type:
|
|
3658
|
+
type: x.literal,
|
|
3681
3659
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3682
3660
|
});
|
|
3683
3661
|
continue;
|
|
3684
3662
|
}
|
|
3685
|
-
if (
|
|
3686
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3663
|
+
if (Ct(l)) {
|
|
3664
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Ft(l.style) ? l.style.parsedOptions : void 0;
|
|
3687
3665
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3688
|
-
type:
|
|
3666
|
+
type: x.literal,
|
|
3689
3667
|
value: r.getNumberFormat(t, p).format(c)
|
|
3690
3668
|
});
|
|
3691
3669
|
continue;
|
|
3692
3670
|
}
|
|
3693
|
-
if (
|
|
3671
|
+
if (Dt(l)) {
|
|
3694
3672
|
var d = l.children, v = l.value, H = i[v];
|
|
3695
|
-
if (!
|
|
3696
|
-
throw new
|
|
3673
|
+
if (!Wn(H))
|
|
3674
|
+
throw new kn(v, "function", s);
|
|
3697
3675
|
var C = fe(d, t, r, n, i, o), L = H(C.map(function(w) {
|
|
3698
3676
|
return w.value;
|
|
3699
3677
|
}));
|
|
3700
3678
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(w) {
|
|
3701
3679
|
return {
|
|
3702
|
-
type: typeof w == "string" ?
|
|
3680
|
+
type: typeof w == "string" ? x.literal : x.object,
|
|
3703
3681
|
value: w
|
|
3704
3682
|
};
|
|
3705
3683
|
}));
|
|
3706
3684
|
}
|
|
3707
|
-
if (
|
|
3708
|
-
var
|
|
3709
|
-
if (!
|
|
3710
|
-
throw new
|
|
3711
|
-
a.push.apply(a, fe(
|
|
3685
|
+
if (Ut(l)) {
|
|
3686
|
+
var E = l.options[c] || l.options.other;
|
|
3687
|
+
if (!E)
|
|
3688
|
+
throw new ft(l.value, c, Object.keys(l.options), s);
|
|
3689
|
+
a.push.apply(a, fe(E.value, t, r, n, i));
|
|
3712
3690
|
continue;
|
|
3713
3691
|
}
|
|
3714
|
-
if (
|
|
3715
|
-
var
|
|
3716
|
-
if (!
|
|
3692
|
+
if (Gt(l)) {
|
|
3693
|
+
var E = l.options["=".concat(c)];
|
|
3694
|
+
if (!E) {
|
|
3717
3695
|
if (!Intl.PluralRules)
|
|
3718
3696
|
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3719
3697
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3720
3698
|
`, W.MISSING_INTL_API, s);
|
|
3721
3699
|
var $ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3722
|
-
|
|
3700
|
+
E = l.options[$] || l.options.other;
|
|
3723
3701
|
}
|
|
3724
|
-
if (!
|
|
3725
|
-
throw new
|
|
3726
|
-
a.push.apply(a, fe(
|
|
3702
|
+
if (!E)
|
|
3703
|
+
throw new ft(l.value, c, Object.keys(l.options), s);
|
|
3704
|
+
a.push.apply(a, fe(E.value, t, r, n, i, c - (l.offset || 0)));
|
|
3727
3705
|
continue;
|
|
3728
3706
|
}
|
|
3729
3707
|
}
|
|
3730
|
-
return
|
|
3708
|
+
return Xn(a);
|
|
3731
3709
|
}
|
|
3732
|
-
function
|
|
3710
|
+
function zn(e, t) {
|
|
3733
3711
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3734
3712
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3735
3713
|
}, {})) : e;
|
|
3736
3714
|
}
|
|
3737
|
-
function
|
|
3715
|
+
function Zn(e, t) {
|
|
3738
3716
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3739
|
-
return r[n] =
|
|
3717
|
+
return r[n] = zn(e[n], t[n]), r;
|
|
3740
3718
|
}, g({}, e)) : e;
|
|
3741
3719
|
}
|
|
3742
|
-
function
|
|
3720
|
+
function we(e) {
|
|
3743
3721
|
return {
|
|
3744
3722
|
create: function() {
|
|
3745
3723
|
return {
|
|
@@ -3753,39 +3731,39 @@ function Pe(e) {
|
|
|
3753
3731
|
}
|
|
3754
3732
|
};
|
|
3755
3733
|
}
|
|
3756
|
-
function
|
|
3734
|
+
function Qn(e) {
|
|
3757
3735
|
return e === void 0 && (e = {
|
|
3758
3736
|
number: {},
|
|
3759
3737
|
dateTime: {},
|
|
3760
3738
|
pluralRules: {}
|
|
3761
3739
|
}), {
|
|
3762
|
-
getNumberFormat:
|
|
3740
|
+
getNumberFormat: He(function() {
|
|
3763
3741
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3764
3742
|
r[n] = arguments[n];
|
|
3765
3743
|
return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3766
3744
|
}, {
|
|
3767
|
-
cache:
|
|
3768
|
-
strategy:
|
|
3745
|
+
cache: we(e.number),
|
|
3746
|
+
strategy: Be.variadic
|
|
3769
3747
|
}),
|
|
3770
|
-
getDateTimeFormat:
|
|
3748
|
+
getDateTimeFormat: He(function() {
|
|
3771
3749
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3772
3750
|
r[n] = arguments[n];
|
|
3773
3751
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3774
3752
|
}, {
|
|
3775
|
-
cache:
|
|
3776
|
-
strategy:
|
|
3753
|
+
cache: we(e.dateTime),
|
|
3754
|
+
strategy: Be.variadic
|
|
3777
3755
|
}),
|
|
3778
|
-
getPluralRules:
|
|
3756
|
+
getPluralRules: He(function() {
|
|
3779
3757
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3780
3758
|
r[n] = arguments[n];
|
|
3781
3759
|
return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
|
|
3782
3760
|
}, {
|
|
3783
|
-
cache:
|
|
3784
|
-
strategy:
|
|
3761
|
+
cache: we(e.pluralRules),
|
|
3762
|
+
strategy: Be.variadic
|
|
3785
3763
|
})
|
|
3786
3764
|
};
|
|
3787
3765
|
}
|
|
3788
|
-
var
|
|
3766
|
+
var Jn = (
|
|
3789
3767
|
/** @class */
|
|
3790
3768
|
function() {
|
|
3791
3769
|
function e(t, r, n, i) {
|
|
@@ -3800,7 +3778,7 @@ var Kn = (
|
|
|
3800
3778
|
if (u.length === 1)
|
|
3801
3779
|
return u[0].value;
|
|
3802
3780
|
var l = u.reduce(function(f, c) {
|
|
3803
|
-
return !f.length || c.type !==
|
|
3781
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3804
3782
|
}, []);
|
|
3805
3783
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3806
3784
|
}, this.formatToParts = function(h) {
|
|
@@ -3817,13 +3795,13 @@ var Kn = (
|
|
|
3817
3795
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3818
3796
|
var s = i || {};
|
|
3819
3797
|
s.formatters;
|
|
3820
|
-
var a =
|
|
3798
|
+
var a = Ar(s, ["formatters"]);
|
|
3821
3799
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3822
3800
|
} else
|
|
3823
3801
|
this.ast = t;
|
|
3824
3802
|
if (!Array.isArray(this.ast))
|
|
3825
3803
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3826
|
-
this.formats =
|
|
3804
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || Qn(this.formatterCache);
|
|
3827
3805
|
}
|
|
3828
3806
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3829
3807
|
get: function() {
|
|
@@ -3836,7 +3814,7 @@ var Kn = (
|
|
|
3836
3814
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3837
3815
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3838
3816
|
}
|
|
3839
|
-
}, e.__parse =
|
|
3817
|
+
}, e.__parse = jn, e.formats = {
|
|
3840
3818
|
number: {
|
|
3841
3819
|
integer: {
|
|
3842
3820
|
maximumFractionDigits: 0
|
|
@@ -3897,7 +3875,7 @@ var Kn = (
|
|
|
3897
3875
|
}, e;
|
|
3898
3876
|
}()
|
|
3899
3877
|
);
|
|
3900
|
-
function
|
|
3878
|
+
function Yn(e, t) {
|
|
3901
3879
|
if (t == null)
|
|
3902
3880
|
return;
|
|
3903
3881
|
if (t in e)
|
|
@@ -3918,92 +3896,92 @@ function ei(e, t) {
|
|
|
3918
3896
|
n = void 0;
|
|
3919
3897
|
return n;
|
|
3920
3898
|
}
|
|
3921
|
-
const M = {},
|
|
3899
|
+
const M = {}, qn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Qt = (e, t) => {
|
|
3922
3900
|
if (t == null)
|
|
3923
3901
|
return;
|
|
3924
3902
|
if (t in M && e in M[t])
|
|
3925
3903
|
return M[t][e];
|
|
3926
3904
|
const r = _e(t);
|
|
3927
3905
|
for (let n = 0; n < r.length; n++) {
|
|
3928
|
-
const i = r[n], o =
|
|
3906
|
+
const i = r[n], o = ei(i, e);
|
|
3929
3907
|
if (o)
|
|
3930
|
-
return
|
|
3908
|
+
return qn(e, t, o);
|
|
3931
3909
|
}
|
|
3932
3910
|
};
|
|
3933
|
-
let
|
|
3911
|
+
let ze;
|
|
3934
3912
|
const se = ye({});
|
|
3935
|
-
function
|
|
3936
|
-
return
|
|
3913
|
+
function Kn(e) {
|
|
3914
|
+
return ze[e] || null;
|
|
3937
3915
|
}
|
|
3938
|
-
function
|
|
3939
|
-
return e in
|
|
3916
|
+
function Jt(e) {
|
|
3917
|
+
return e in ze;
|
|
3940
3918
|
}
|
|
3941
|
-
function
|
|
3942
|
-
if (!
|
|
3919
|
+
function ei(e, t) {
|
|
3920
|
+
if (!Jt(e))
|
|
3943
3921
|
return null;
|
|
3944
|
-
const r =
|
|
3945
|
-
return
|
|
3922
|
+
const r = Kn(e);
|
|
3923
|
+
return Yn(r, t);
|
|
3946
3924
|
}
|
|
3947
|
-
function
|
|
3925
|
+
function ti(e) {
|
|
3948
3926
|
if (e == null)
|
|
3949
3927
|
return;
|
|
3950
3928
|
const t = _e(e);
|
|
3951
3929
|
for (let r = 0; r < t.length; r++) {
|
|
3952
3930
|
const n = t[r];
|
|
3953
|
-
if (
|
|
3931
|
+
if (Jt(n))
|
|
3954
3932
|
return n;
|
|
3955
3933
|
}
|
|
3956
3934
|
}
|
|
3957
|
-
function
|
|
3958
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3935
|
+
function Yt(e, ...t) {
|
|
3936
|
+
delete M[e], se.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3959
3937
|
}
|
|
3960
3938
|
Q(
|
|
3961
3939
|
[se],
|
|
3962
3940
|
([e]) => Object.keys(e)
|
|
3963
3941
|
);
|
|
3964
|
-
se.subscribe((e) =>
|
|
3942
|
+
se.subscribe((e) => ze = e);
|
|
3965
3943
|
const pe = {};
|
|
3966
|
-
function
|
|
3944
|
+
function ri(e, t) {
|
|
3967
3945
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3968
3946
|
}
|
|
3969
|
-
function
|
|
3947
|
+
function qt(e) {
|
|
3970
3948
|
return pe[e];
|
|
3971
3949
|
}
|
|
3972
|
-
function
|
|
3950
|
+
function ni(e) {
|
|
3973
3951
|
return _e(e).map((t) => {
|
|
3974
|
-
const r =
|
|
3952
|
+
const r = qt(t);
|
|
3975
3953
|
return [t, r ? [...r] : []];
|
|
3976
3954
|
}).filter(([, t]) => t.length > 0);
|
|
3977
3955
|
}
|
|
3978
|
-
function
|
|
3956
|
+
function Ve(e) {
|
|
3979
3957
|
return e == null ? !1 : _e(e).some(
|
|
3980
3958
|
(t) => {
|
|
3981
3959
|
var r;
|
|
3982
|
-
return (r =
|
|
3960
|
+
return (r = qt(t)) == null ? void 0 : r.size;
|
|
3983
3961
|
}
|
|
3984
3962
|
);
|
|
3985
3963
|
}
|
|
3986
|
-
function
|
|
3964
|
+
function ii(e, t) {
|
|
3987
3965
|
return Promise.all(
|
|
3988
|
-
t.map((n) => (
|
|
3989
|
-
).then((n) =>
|
|
3966
|
+
t.map((n) => (ri(e, n), n().then((i) => i.default || i)))
|
|
3967
|
+
).then((n) => Yt(e, ...n));
|
|
3990
3968
|
}
|
|
3991
3969
|
const K = {};
|
|
3992
|
-
function
|
|
3993
|
-
if (!
|
|
3970
|
+
function Kt(e) {
|
|
3971
|
+
if (!Ve(e))
|
|
3994
3972
|
return e in K ? K[e] : Promise.resolve();
|
|
3995
|
-
const t =
|
|
3973
|
+
const t = ni(e);
|
|
3996
3974
|
return K[e] = Promise.all(
|
|
3997
3975
|
t.map(
|
|
3998
|
-
([r, n]) =>
|
|
3976
|
+
([r, n]) => ii(r, n)
|
|
3999
3977
|
)
|
|
4000
3978
|
).then(() => {
|
|
4001
|
-
if (
|
|
4002
|
-
return
|
|
3979
|
+
if (Ve(e))
|
|
3980
|
+
return Kt(e);
|
|
4003
3981
|
delete K[e];
|
|
4004
3982
|
}), K[e];
|
|
4005
3983
|
}
|
|
4006
|
-
const
|
|
3984
|
+
const oi = {
|
|
4007
3985
|
number: {
|
|
4008
3986
|
scientific: { notation: "scientific" },
|
|
4009
3987
|
engineering: { notation: "engineering" },
|
|
@@ -4032,78 +4010,78 @@ const ui = {
|
|
|
4032
4010
|
timeZoneName: "short"
|
|
4033
4011
|
}
|
|
4034
4012
|
}
|
|
4035
|
-
},
|
|
4013
|
+
}, si = {
|
|
4036
4014
|
fallbackLocale: null,
|
|
4037
4015
|
loadingDelay: 200,
|
|
4038
|
-
formats:
|
|
4016
|
+
formats: oi,
|
|
4039
4017
|
warnOnMissingMessages: !0,
|
|
4040
4018
|
handleMissingMessage: void 0,
|
|
4041
4019
|
ignoreTag: !0
|
|
4042
|
-
},
|
|
4020
|
+
}, ai = si;
|
|
4043
4021
|
function z() {
|
|
4044
|
-
return
|
|
4022
|
+
return ai;
|
|
4045
4023
|
}
|
|
4046
|
-
const
|
|
4047
|
-
var
|
|
4024
|
+
const Pe = ye(!1);
|
|
4025
|
+
var ui = Object.defineProperty, hi = Object.defineProperties, li = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pi = (e, t) => {
|
|
4048
4026
|
for (var r in t || (t = {}))
|
|
4049
|
-
|
|
4050
|
-
if (
|
|
4051
|
-
for (var r of
|
|
4052
|
-
|
|
4027
|
+
ci.call(t, r) && dt(e, r, t[r]);
|
|
4028
|
+
if (pt)
|
|
4029
|
+
for (var r of pt(t))
|
|
4030
|
+
fi.call(t, r) && dt(e, r, t[r]);
|
|
4053
4031
|
return e;
|
|
4054
|
-
},
|
|
4055
|
-
let
|
|
4032
|
+
}, di = (e, t) => hi(e, li(t));
|
|
4033
|
+
let Xe;
|
|
4056
4034
|
const de = ye(null);
|
|
4057
|
-
function
|
|
4035
|
+
function mt(e) {
|
|
4058
4036
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4059
4037
|
}
|
|
4060
4038
|
function _e(e, t = z().fallbackLocale) {
|
|
4061
|
-
const r =
|
|
4062
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4039
|
+
const r = mt(e);
|
|
4040
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
4063
4041
|
}
|
|
4064
4042
|
function R() {
|
|
4065
|
-
return
|
|
4043
|
+
return Xe ?? void 0;
|
|
4066
4044
|
}
|
|
4067
4045
|
de.subscribe((e) => {
|
|
4068
|
-
|
|
4046
|
+
Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4069
4047
|
});
|
|
4070
|
-
const
|
|
4071
|
-
if (e &&
|
|
4048
|
+
const mi = (e) => {
|
|
4049
|
+
if (e && ti(e) && Ve(e)) {
|
|
4072
4050
|
const { loadingDelay: t } = z();
|
|
4073
4051
|
let r;
|
|
4074
4052
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4075
|
-
() =>
|
|
4053
|
+
() => Pe.set(!0),
|
|
4076
4054
|
t
|
|
4077
|
-
) :
|
|
4055
|
+
) : Pe.set(!0), Kt(e).then(() => {
|
|
4078
4056
|
de.set(e);
|
|
4079
4057
|
}).finally(() => {
|
|
4080
|
-
clearTimeout(r),
|
|
4058
|
+
clearTimeout(r), Pe.set(!1);
|
|
4081
4059
|
});
|
|
4082
4060
|
}
|
|
4083
4061
|
return de.set(e);
|
|
4084
|
-
}, J =
|
|
4085
|
-
set:
|
|
4086
|
-
}),
|
|
4062
|
+
}, J = di(pi({}, de), {
|
|
4063
|
+
set: mi
|
|
4064
|
+
}), xe = (e) => {
|
|
4087
4065
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4088
4066
|
return (n) => {
|
|
4089
4067
|
const i = JSON.stringify(n);
|
|
4090
4068
|
return i in t ? t[i] : t[i] = e(n);
|
|
4091
4069
|
};
|
|
4092
4070
|
};
|
|
4093
|
-
var
|
|
4071
|
+
var bi = Object.defineProperty, me = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
4094
4072
|
for (var r in t || (t = {}))
|
|
4095
|
-
|
|
4073
|
+
er.call(t, r) && bt(e, r, t[r]);
|
|
4096
4074
|
if (me)
|
|
4097
4075
|
for (var r of me(t))
|
|
4098
|
-
|
|
4076
|
+
tr.call(t, r) && bt(e, r, t[r]);
|
|
4099
4077
|
return e;
|
|
4100
4078
|
}, Y = (e, t) => {
|
|
4101
4079
|
var r = {};
|
|
4102
4080
|
for (var n in e)
|
|
4103
|
-
|
|
4081
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4104
4082
|
if (e != null && me)
|
|
4105
4083
|
for (var n of me(e))
|
|
4106
|
-
t.indexOf(n) < 0 &&
|
|
4084
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
4107
4085
|
return r;
|
|
4108
4086
|
};
|
|
4109
4087
|
const ne = (e, t) => {
|
|
@@ -4111,21 +4089,21 @@ const ne = (e, t) => {
|
|
|
4111
4089
|
if (e in r && t in r[e])
|
|
4112
4090
|
return r[e][t];
|
|
4113
4091
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4114
|
-
},
|
|
4092
|
+
}, gi = xe(
|
|
4115
4093
|
(e) => {
|
|
4116
4094
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4117
4095
|
if (r == null)
|
|
4118
4096
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4119
4097
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4120
4098
|
}
|
|
4121
|
-
),
|
|
4099
|
+
), yi = xe(
|
|
4122
4100
|
(e) => {
|
|
4123
4101
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4124
4102
|
if (r == null)
|
|
4125
4103
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4126
4104
|
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4127
4105
|
}
|
|
4128
|
-
),
|
|
4106
|
+
), vi = xe(
|
|
4129
4107
|
(e) => {
|
|
4130
4108
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4131
4109
|
if (r == null)
|
|
@@ -4134,33 +4112,33 @@ const ne = (e, t) => {
|
|
|
4134
4112
|
);
|
|
4135
4113
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4136
4114
|
}
|
|
4137
|
-
),
|
|
4115
|
+
), _i = (e = {}) => {
|
|
4138
4116
|
var t = e, {
|
|
4139
4117
|
locale: r = R()
|
|
4140
4118
|
} = t, n = Y(t, [
|
|
4141
4119
|
"locale"
|
|
4142
4120
|
]);
|
|
4143
|
-
return
|
|
4144
|
-
},
|
|
4121
|
+
return gi(Ze({ locale: r }, n));
|
|
4122
|
+
}, xi = (e = {}) => {
|
|
4145
4123
|
var t = e, {
|
|
4146
4124
|
locale: r = R()
|
|
4147
4125
|
} = t, n = Y(t, [
|
|
4148
4126
|
"locale"
|
|
4149
4127
|
]);
|
|
4150
|
-
return
|
|
4151
|
-
},
|
|
4128
|
+
return yi(Ze({ locale: r }, n));
|
|
4129
|
+
}, Ei = (e = {}) => {
|
|
4152
4130
|
var t = e, {
|
|
4153
4131
|
locale: r = R()
|
|
4154
4132
|
} = t, n = Y(t, [
|
|
4155
4133
|
"locale"
|
|
4156
4134
|
]);
|
|
4157
|
-
return
|
|
4158
|
-
},
|
|
4135
|
+
return vi(Ze({ locale: r }, n));
|
|
4136
|
+
}, Si = xe(
|
|
4159
4137
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4160
|
-
(e, t = R()) => new
|
|
4138
|
+
(e, t = R()) => new Jn(e, t, z().formats, {
|
|
4161
4139
|
ignoreTag: z().ignoreTag
|
|
4162
4140
|
})
|
|
4163
|
-
),
|
|
4141
|
+
), Ti = (e, t = {}) => {
|
|
4164
4142
|
var r, n, i, o;
|
|
4165
4143
|
let s = t;
|
|
4166
4144
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4173,7 +4151,7 @@ const ne = (e, t) => {
|
|
|
4173
4151
|
throw new Error(
|
|
4174
4152
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4175
4153
|
);
|
|
4176
|
-
let l =
|
|
4154
|
+
let l = Qt(e, h);
|
|
4177
4155
|
if (!l)
|
|
4178
4156
|
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
4157
|
else if (typeof l != "string")
|
|
@@ -4184,7 +4162,7 @@ const ne = (e, t) => {
|
|
|
4184
4162
|
return l;
|
|
4185
4163
|
let f = l;
|
|
4186
4164
|
try {
|
|
4187
|
-
f =
|
|
4165
|
+
f = Si(l, h).format(a);
|
|
4188
4166
|
} catch (c) {
|
|
4189
4167
|
c instanceof Error && console.warn(
|
|
4190
4168
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4192,20 +4170,20 @@ const ne = (e, t) => {
|
|
|
4192
4170
|
);
|
|
4193
4171
|
}
|
|
4194
4172
|
return f;
|
|
4195
|
-
},
|
|
4196
|
-
Q([J], () =>
|
|
4197
|
-
Q([J], () =>
|
|
4198
|
-
Q([J], () =>
|
|
4199
|
-
Q([J, se], () =>
|
|
4200
|
-
window.emWidgets = { topic:
|
|
4201
|
-
const
|
|
4202
|
-
function
|
|
4203
|
-
|
|
4204
|
-
}
|
|
4205
|
-
function
|
|
4173
|
+
}, Hi = (e, t) => Ei(t).format(e), Bi = (e, t) => xi(t).format(e), Ai = (e, t) => _i(t).format(e), wi = (e, t = R()) => Qt(e, t), Pi = Q([J, se], () => Ti);
|
|
4174
|
+
Q([J], () => Hi);
|
|
4175
|
+
Q([J], () => Bi);
|
|
4176
|
+
Q([J], () => Ai);
|
|
4177
|
+
Q([J, se], () => wi);
|
|
4178
|
+
window.emWidgets = { topic: Fr };
|
|
4179
|
+
const Oi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4180
|
+
function gt(e, t) {
|
|
4181
|
+
Yt(e, t);
|
|
4182
|
+
}
|
|
4183
|
+
function Ii(e) {
|
|
4206
4184
|
J.set(e);
|
|
4207
4185
|
}
|
|
4208
|
-
const
|
|
4186
|
+
const yt = {
|
|
4209
4187
|
en: {
|
|
4210
4188
|
logoutButton: "Logout"
|
|
4211
4189
|
},
|
|
@@ -4240,13 +4218,13 @@ const Et = {
|
|
|
4240
4218
|
logoutButton: "Logout"
|
|
4241
4219
|
}
|
|
4242
4220
|
};
|
|
4243
|
-
function
|
|
4221
|
+
function vt(e, t) {
|
|
4244
4222
|
if (e) {
|
|
4245
4223
|
const r = document.createElement("style");
|
|
4246
4224
|
r.innerHTML = t, e.appendChild(r);
|
|
4247
4225
|
}
|
|
4248
4226
|
}
|
|
4249
|
-
function
|
|
4227
|
+
function Li(e, t) {
|
|
4250
4228
|
const r = new URL(t);
|
|
4251
4229
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4252
4230
|
const i = document.createElement("style");
|
|
@@ -4255,7 +4233,7 @@ function Ci(e, t) {
|
|
|
4255
4233
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4256
4234
|
});
|
|
4257
4235
|
}
|
|
4258
|
-
function
|
|
4236
|
+
function Ni(e, t, r) {
|
|
4259
4237
|
if (window.emMessageBus) {
|
|
4260
4238
|
const n = document.createElement("style");
|
|
4261
4239
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4263,10 +4241,10 @@ function $i(e, t, r) {
|
|
|
4263
4241
|
});
|
|
4264
4242
|
}
|
|
4265
4243
|
}
|
|
4266
|
-
function
|
|
4267
|
-
|
|
4244
|
+
function Mi(e) {
|
|
4245
|
+
or(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))}");
|
|
4268
4246
|
}
|
|
4269
|
-
function
|
|
4247
|
+
function Ci(e) {
|
|
4270
4248
|
let t, r, n, i = (
|
|
4271
4249
|
/*$_*/
|
|
4272
4250
|
e[2]("logoutButton") + ""
|
|
@@ -4276,7 +4254,7 @@ function Ui(e) {
|
|
|
4276
4254
|
t = P("div"), r = P("button"), n = P("span"), o = be(i), T(t, "class", "GeneralLogout");
|
|
4277
4255
|
},
|
|
4278
4256
|
m(h, u) {
|
|
4279
|
-
oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a =
|
|
4257
|
+
oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = St(
|
|
4280
4258
|
r,
|
|
4281
4259
|
"click",
|
|
4282
4260
|
/*click_handler_1*/
|
|
@@ -4286,19 +4264,19 @@ function Ui(e) {
|
|
|
4286
4264
|
p(h, u) {
|
|
4287
4265
|
u & /*$_*/
|
|
4288
4266
|
4 && i !== (i = /*$_*/
|
|
4289
|
-
h[2]("logoutButton") + "") &&
|
|
4267
|
+
h[2]("logoutButton") + "") && Tt(o, i);
|
|
4290
4268
|
},
|
|
4291
4269
|
d(h) {
|
|
4292
4270
|
h && Z(t), s = !1, a();
|
|
4293
4271
|
}
|
|
4294
4272
|
};
|
|
4295
4273
|
}
|
|
4296
|
-
function
|
|
4274
|
+
function $i(e) {
|
|
4297
4275
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4298
|
-
e[3] &&
|
|
4276
|
+
e[3] && Ri(e);
|
|
4299
4277
|
return {
|
|
4300
4278
|
c() {
|
|
4301
|
-
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 =
|
|
4279
|
+
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 = ur(), c && c.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"), lr(r, "width", /*isMobile*/
|
|
4302
4280
|
e[3] ? (
|
|
4303
4281
|
/*mediaQuery*/
|
|
4304
4282
|
e[4].matches ? "50px" : "24px"
|
|
@@ -4308,7 +4286,7 @@ function Di(e) {
|
|
|
4308
4286
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4309
4287
|
},
|
|
4310
4288
|
m(p, d) {
|
|
4311
|
-
oe(p, t, d), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), c && c.m(t, null), l || (f =
|
|
4289
|
+
oe(p, t, d), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), c && c.m(t, null), l || (f = St(
|
|
4312
4290
|
t,
|
|
4313
4291
|
"click",
|
|
4314
4292
|
/*click_handler*/
|
|
@@ -4324,7 +4302,7 @@ function Di(e) {
|
|
|
4324
4302
|
}
|
|
4325
4303
|
};
|
|
4326
4304
|
}
|
|
4327
|
-
function
|
|
4305
|
+
function Ri(e) {
|
|
4328
4306
|
let t, r = (
|
|
4329
4307
|
/*$_*/
|
|
4330
4308
|
e[2]("logoutButton") + ""
|
|
@@ -4339,19 +4317,19 @@ function Gi(e) {
|
|
|
4339
4317
|
p(i, o) {
|
|
4340
4318
|
o & /*$_*/
|
|
4341
4319
|
4 && r !== (r = /*$_*/
|
|
4342
|
-
i[2]("logoutButton") + "") &&
|
|
4320
|
+
i[2]("logoutButton") + "") && Tt(n, r);
|
|
4343
4321
|
},
|
|
4344
4322
|
d(i) {
|
|
4345
4323
|
i && Z(t);
|
|
4346
4324
|
}
|
|
4347
4325
|
};
|
|
4348
4326
|
}
|
|
4349
|
-
function
|
|
4327
|
+
function Ui(e) {
|
|
4350
4328
|
let t;
|
|
4351
4329
|
function r(o, s) {
|
|
4352
4330
|
return (
|
|
4353
4331
|
/*buttonlocation*/
|
|
4354
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4332
|
+
o[0] === "PlayerAccountMenu" ? $i : Ci
|
|
4355
4333
|
);
|
|
4356
4334
|
}
|
|
4357
4335
|
let n = r(e), i = n(e);
|
|
@@ -4372,37 +4350,37 @@ function Fi(e) {
|
|
|
4372
4350
|
}
|
|
4373
4351
|
};
|
|
4374
4352
|
}
|
|
4375
|
-
function
|
|
4353
|
+
function Gi(e, t, r) {
|
|
4376
4354
|
let n;
|
|
4377
|
-
|
|
4378
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, v = window.navigator.userAgent, H =
|
|
4355
|
+
ir(e, Pi, (y) => r(2, n = y));
|
|
4356
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, v = window.navigator.userAgent, H = Oi(v) !== "PC";
|
|
4379
4357
|
const C = window.matchMedia("(min-width: 768px)"), L = () => {
|
|
4380
4358
|
fetch(f).then((N) => N.json()).then((N) => {
|
|
4381
|
-
Object.keys(N).forEach((
|
|
4382
|
-
|
|
4359
|
+
Object.keys(N).forEach((Ee) => {
|
|
4360
|
+
gt(Ee, N[Ee]);
|
|
4383
4361
|
});
|
|
4384
4362
|
}).catch((N) => {
|
|
4385
4363
|
console.log(N);
|
|
4386
4364
|
});
|
|
4387
4365
|
};
|
|
4388
|
-
Object.keys(
|
|
4389
|
-
|
|
4366
|
+
Object.keys(yt).forEach((y) => {
|
|
4367
|
+
gt(y, yt[y]);
|
|
4390
4368
|
});
|
|
4391
|
-
const
|
|
4369
|
+
const E = () => {
|
|
4392
4370
|
let y = new Headers();
|
|
4393
4371
|
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4394
4372
|
let N = { method: "DELETE", headers: y };
|
|
4395
|
-
fetch(`${i}/v1/player/session/player`, N).then((
|
|
4373
|
+
fetch(`${i}/v1/player/session/player`, N).then((Ee) => {
|
|
4396
4374
|
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
|
|
4397
4375
|
});
|
|
4398
4376
|
}, $ = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p), w = () => {
|
|
4399
|
-
|
|
4377
|
+
Ii(a);
|
|
4400
4378
|
};
|
|
4401
|
-
|
|
4379
|
+
pr(() => () => {
|
|
4402
4380
|
});
|
|
4403
|
-
const U = () =>
|
|
4404
|
-
function
|
|
4405
|
-
|
|
4381
|
+
const U = () => E(), ae = () => E();
|
|
4382
|
+
function rr(y) {
|
|
4383
|
+
Oe[y ? "unshift" : "push"](() => {
|
|
4406
4384
|
d = y, r(1, d);
|
|
4407
4385
|
});
|
|
4408
4386
|
}
|
|
@@ -4412,10 +4390,10 @@ function ji(e, t, r) {
|
|
|
4412
4390
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4413
4391
|
193 && i && o && s && $(), e.$$.dirty & /*lang*/
|
|
4414
4392
|
256 && a && w(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4415
|
-
1026 && u && d &&
|
|
4416
|
-
1026 && u && d &&
|
|
4417
|
-
2050 && l && d &&
|
|
4418
|
-
514 && h && d &&
|
|
4393
|
+
1026 && u && d && vt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4394
|
+
1026 && u && d && vt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4395
|
+
2050 && l && d && Li(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4396
|
+
514 && h && d && Ni(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4419
4397
|
4096 && f && L();
|
|
4420
4398
|
}, [
|
|
4421
4399
|
s,
|
|
@@ -4423,7 +4401,7 @@ function ji(e, t, r) {
|
|
|
4423
4401
|
n,
|
|
4424
4402
|
H,
|
|
4425
4403
|
C,
|
|
4426
|
-
|
|
4404
|
+
E,
|
|
4427
4405
|
i,
|
|
4428
4406
|
o,
|
|
4429
4407
|
a,
|
|
@@ -4433,17 +4411,17 @@ function ji(e, t, r) {
|
|
|
4433
4411
|
f,
|
|
4434
4412
|
U,
|
|
4435
4413
|
ae,
|
|
4436
|
-
|
|
4414
|
+
rr
|
|
4437
4415
|
];
|
|
4438
4416
|
}
|
|
4439
|
-
class
|
|
4417
|
+
class Di extends Hr {
|
|
4440
4418
|
constructor(t) {
|
|
4441
|
-
super(),
|
|
4419
|
+
super(), Sr(
|
|
4442
4420
|
this,
|
|
4443
4421
|
t,
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4422
|
+
Gi,
|
|
4423
|
+
Ui,
|
|
4424
|
+
xt,
|
|
4447
4425
|
{
|
|
4448
4426
|
endpoint: 6,
|
|
4449
4427
|
session: 7,
|
|
@@ -4454,7 +4432,7 @@ class ki extends Pr {
|
|
|
4454
4432
|
clientstylingurl: 11,
|
|
4455
4433
|
translationurl: 12
|
|
4456
4434
|
},
|
|
4457
|
-
|
|
4435
|
+
Mi
|
|
4458
4436
|
);
|
|
4459
4437
|
}
|
|
4460
4438
|
get endpoint() {
|
|
@@ -4506,7 +4484,7 @@ class ki extends Pr {
|
|
|
4506
4484
|
this.$$set({ translationurl: t }), A();
|
|
4507
4485
|
}
|
|
4508
4486
|
}
|
|
4509
|
-
|
|
4487
|
+
Tr(Di, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4510
4488
|
export {
|
|
4511
|
-
|
|
4489
|
+
Di as G
|
|
4512
4490
|
};
|