@everymatrix/general-logout 1.56.0 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-DRgWuMvJ.js → GeneralLogout-BFvKDK3l.js} +664 -595
- package/components/GeneralLogout-CUVwo8DH.cjs +18 -0
- package/components/{GeneralLogout-DmWm7963.js → GeneralLogout-e9MOZblU.js} +679 -610
- 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-CItdGunD.cjs +0 -5
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function St(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(St);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Tt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ar(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ht(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,21 +27,22 @@ function xt(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 ur(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Ht(t, r));
|
|
32
32
|
}
|
|
33
33
|
function S(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function hr(e, t, r) {
|
|
37
|
+
const n = lr(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, cr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
if (!e)
|
|
43
|
+
function lr(e) {
|
|
44
|
+
if (!e)
|
|
45
|
+
return document;
|
|
45
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
47
|
return t && /** @type {ShadowRoot} */
|
|
47
48
|
t.host ? (
|
|
@@ -49,7 +50,7 @@ function or(e) {
|
|
|
49
50
|
t
|
|
50
51
|
) : e.ownerDocument;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function cr(e, t) {
|
|
53
54
|
return S(
|
|
54
55
|
/** @type {Document} */
|
|
55
56
|
e.head || e,
|
|
@@ -71,26 +72,26 @@ function q(e) {
|
|
|
71
72
|
function be(e) {
|
|
72
73
|
return document.createTextNode(e);
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function fr() {
|
|
75
76
|
return be(" ");
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function Bt(e, t, r, n) {
|
|
78
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
79
80
|
}
|
|
80
81
|
function T(e, t, r) {
|
|
81
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function pr(e) {
|
|
84
85
|
return Array.from(e.childNodes);
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function At(e, t) {
|
|
87
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
88
89
|
t);
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function dr(e, t, r, n) {
|
|
91
92
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function mr(e) {
|
|
94
95
|
const t = {};
|
|
95
96
|
return e.childNodes.forEach(
|
|
96
97
|
/** @param {Element} node */
|
|
@@ -103,79 +104,81 @@ let te;
|
|
|
103
104
|
function ee(e) {
|
|
104
105
|
te = e;
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
-
if (!te)
|
|
107
|
+
function br() {
|
|
108
|
+
if (!te)
|
|
109
|
+
throw new Error("Function called outside component initialization");
|
|
108
110
|
return te;
|
|
109
111
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
112
|
+
function gr(e) {
|
|
113
|
+
br().$$.on_mount.push(e);
|
|
112
114
|
}
|
|
113
|
-
const F = [],
|
|
115
|
+
const F = [], Ie = [];
|
|
114
116
|
let j = [];
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
const Ke = [], yr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Le = !1;
|
|
119
|
+
function vr() {
|
|
120
|
+
Le || (Le = !0, yr.then(A));
|
|
119
121
|
}
|
|
120
|
-
function
|
|
122
|
+
function Ne(e) {
|
|
121
123
|
j.push(e);
|
|
122
124
|
}
|
|
123
125
|
const Se = /* @__PURE__ */ new Set();
|
|
124
|
-
let
|
|
126
|
+
let D = 0;
|
|
125
127
|
function A() {
|
|
126
|
-
if (
|
|
128
|
+
if (D !== 0)
|
|
127
129
|
return;
|
|
128
130
|
const e = te;
|
|
129
131
|
do {
|
|
130
132
|
try {
|
|
131
|
-
for (;
|
|
132
|
-
const t = F[
|
|
133
|
-
|
|
133
|
+
for (; D < F.length; ) {
|
|
134
|
+
const t = F[D];
|
|
135
|
+
D++, ee(t), _r(t.$$);
|
|
134
136
|
}
|
|
135
137
|
} catch (t) {
|
|
136
|
-
throw F.length = 0,
|
|
138
|
+
throw F.length = 0, D = 0, t;
|
|
137
139
|
}
|
|
138
|
-
for (ee(null), F.length = 0,
|
|
140
|
+
for (ee(null), F.length = 0, D = 0; Ie.length; )
|
|
141
|
+
Ie.pop()();
|
|
139
142
|
for (let t = 0; t < j.length; t += 1) {
|
|
140
143
|
const r = j[t];
|
|
141
144
|
Se.has(r) || (Se.add(r), r());
|
|
142
145
|
}
|
|
143
146
|
j.length = 0;
|
|
144
147
|
} while (F.length);
|
|
145
|
-
for (;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
for (; Ke.length; )
|
|
149
|
+
Ke.pop()();
|
|
150
|
+
Le = !1, Se.clear(), ee(e);
|
|
148
151
|
}
|
|
149
|
-
function
|
|
152
|
+
function _r(e) {
|
|
150
153
|
if (e.fragment !== null) {
|
|
151
154
|
e.update(), ie(e.before_update);
|
|
152
155
|
const t = e.dirty;
|
|
153
|
-
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(Ne);
|
|
154
157
|
}
|
|
155
158
|
}
|
|
156
|
-
function
|
|
159
|
+
function Er(e) {
|
|
157
160
|
const t = [], r = [];
|
|
158
161
|
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
159
162
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
e && e.i && (
|
|
163
|
+
const xr = /* @__PURE__ */ new Set();
|
|
164
|
+
function Sr(e, t) {
|
|
165
|
+
e && e.i && (xr.delete(e), e.i(t));
|
|
163
166
|
}
|
|
164
|
-
function
|
|
167
|
+
function Tr(e, t, r) {
|
|
165
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
167
|
-
const o = e.$$.on_mount.map(
|
|
169
|
+
n && n.m(t, r), Ne(() => {
|
|
170
|
+
const o = e.$$.on_mount.map(St).filter(ze);
|
|
168
171
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
169
|
-
}), i.forEach(
|
|
172
|
+
}), i.forEach(Ne);
|
|
170
173
|
}
|
|
171
|
-
function
|
|
174
|
+
function Hr(e, t) {
|
|
172
175
|
const r = e.$$;
|
|
173
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (Er(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
174
177
|
}
|
|
175
|
-
function
|
|
176
|
-
e.$$.dirty[0] === -1 && (F.push(e),
|
|
178
|
+
function Br(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && (F.push(e), vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
177
180
|
}
|
|
178
|
-
function
|
|
181
|
+
function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
179
182
|
const h = te;
|
|
180
183
|
ee(e);
|
|
181
184
|
const u = e.$$ = {
|
|
@@ -185,7 +188,7 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
185
188
|
props: o,
|
|
186
189
|
update: B,
|
|
187
190
|
not_equal: i,
|
|
188
|
-
bound:
|
|
191
|
+
bound: qe(),
|
|
189
192
|
// lifecycle
|
|
190
193
|
on_mount: [],
|
|
191
194
|
on_destroy: [],
|
|
@@ -194,7 +197,7 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
194
197
|
after_update: [],
|
|
195
198
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
196
199
|
// everything else
|
|
197
|
-
callbacks:
|
|
200
|
+
callbacks: qe(),
|
|
198
201
|
dirty: a,
|
|
199
202
|
skip_bound: !1,
|
|
200
203
|
root: t.target || h.$$.root
|
|
@@ -202,20 +205,20 @@ function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
202
205
|
s && s(u.root);
|
|
203
206
|
let l = !1;
|
|
204
207
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
205
|
-
const
|
|
206
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
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 && Br(e, f)), c;
|
|
207
210
|
}) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
208
211
|
if (t.hydrate) {
|
|
209
|
-
const f =
|
|
212
|
+
const f = pr(t.target);
|
|
210
213
|
u.fragment && u.fragment.l(f), f.forEach(Z);
|
|
211
214
|
} else
|
|
212
215
|
u.fragment && u.fragment.c();
|
|
213
|
-
t.intro &&
|
|
216
|
+
t.intro && Sr(e.$$.fragment), Tr(e, t.target, t.anchor), A();
|
|
214
217
|
}
|
|
215
218
|
ee(h);
|
|
216
219
|
}
|
|
217
|
-
let
|
|
218
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let wt;
|
|
221
|
+
typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
219
222
|
/** The Svelte component constructor */
|
|
220
223
|
$$ctor;
|
|
221
224
|
/** Slots */
|
|
@@ -274,7 +277,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
274
277
|
};
|
|
275
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
276
279
|
return;
|
|
277
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = mr(this);
|
|
278
281
|
for (const i of this.$$s)
|
|
279
282
|
i in r && (t[i] = [e(i)]);
|
|
280
283
|
for (const i of this.attributes) {
|
|
@@ -361,8 +364,8 @@ function le(e, t, r, n) {
|
|
|
361
364
|
return t;
|
|
362
365
|
}
|
|
363
366
|
}
|
|
364
|
-
function
|
|
365
|
-
let s = class extends
|
|
367
|
+
function wr(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends wt {
|
|
366
369
|
constructor() {
|
|
367
370
|
super(e, r, i), this.$$p_d = t;
|
|
368
371
|
}
|
|
@@ -390,7 +393,7 @@ function Sr(e, t, r, n, i, o) {
|
|
|
390
393
|
}), e.element = /** @type {any} */
|
|
391
394
|
s, s;
|
|
392
395
|
}
|
|
393
|
-
class
|
|
396
|
+
class Pr {
|
|
394
397
|
/**
|
|
395
398
|
* ### PRIVATE API
|
|
396
399
|
*
|
|
@@ -409,7 +412,7 @@ class Tr {
|
|
|
409
412
|
$$set = void 0;
|
|
410
413
|
/** @returns {void} */
|
|
411
414
|
$destroy() {
|
|
412
|
-
|
|
415
|
+
Hr(this, 1), this.$destroy = B;
|
|
413
416
|
}
|
|
414
417
|
/**
|
|
415
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -418,7 +421,7 @@ class Tr {
|
|
|
418
421
|
* @returns {() => void}
|
|
419
422
|
*/
|
|
420
423
|
$on(t, r) {
|
|
421
|
-
if (!
|
|
424
|
+
if (!ze(r))
|
|
422
425
|
return B;
|
|
423
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
424
427
|
return n.push(r), () => {
|
|
@@ -431,22 +434,37 @@ class Tr {
|
|
|
431
434
|
* @returns {void}
|
|
432
435
|
*/
|
|
433
436
|
$set(t) {
|
|
434
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
435
438
|
}
|
|
436
439
|
}
|
|
437
|
-
const
|
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
439
|
-
|
|
440
|
-
|
|
440
|
+
const Or = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Or);
|
|
442
|
+
/*! *****************************************************************************
|
|
443
|
+
Copyright (c) Microsoft Corporation.
|
|
444
|
+
|
|
445
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
446
|
+
purpose with or without fee is hereby granted.
|
|
447
|
+
|
|
448
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
449
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
450
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
451
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
452
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
453
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
454
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
455
|
+
***************************************************************************** */
|
|
456
|
+
var Me = function(e, t) {
|
|
457
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
441
458
|
r.__proto__ = n;
|
|
442
459
|
} || function(r, n) {
|
|
443
|
-
for (var i in n)
|
|
444
|
-
|
|
460
|
+
for (var i in n)
|
|
461
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
462
|
+
}, Me(e, t);
|
|
445
463
|
};
|
|
446
464
|
function I(e, t) {
|
|
447
465
|
if (typeof t != "function" && t !== null)
|
|
448
466
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
449
|
-
|
|
467
|
+
Me(e, t);
|
|
450
468
|
function r() {
|
|
451
469
|
this.constructor = e;
|
|
452
470
|
}
|
|
@@ -456,61 +474,69 @@ var g = function() {
|
|
|
456
474
|
return g = Object.assign || function(t) {
|
|
457
475
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
458
476
|
r = arguments[n];
|
|
459
|
-
for (var o in r)
|
|
477
|
+
for (var o in r)
|
|
478
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
460
479
|
}
|
|
461
480
|
return t;
|
|
462
481
|
}, g.apply(this, arguments);
|
|
463
482
|
};
|
|
464
|
-
function
|
|
483
|
+
function Ir(e, t) {
|
|
465
484
|
var r = {};
|
|
466
|
-
for (var n in e)
|
|
485
|
+
for (var n in e)
|
|
486
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
467
487
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
468
488
|
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
469
489
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
470
490
|
return r;
|
|
471
491
|
}
|
|
472
|
-
function
|
|
492
|
+
function Ce(e) {
|
|
473
493
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
474
|
-
if (r)
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
494
|
+
if (r)
|
|
495
|
+
return r.call(e);
|
|
496
|
+
if (e && typeof e.length == "number")
|
|
497
|
+
return {
|
|
498
|
+
next: function() {
|
|
499
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
500
|
+
}
|
|
501
|
+
};
|
|
480
502
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
481
503
|
}
|
|
482
|
-
function
|
|
504
|
+
function $e(e, t) {
|
|
483
505
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
484
|
-
if (!r)
|
|
506
|
+
if (!r)
|
|
507
|
+
return e;
|
|
485
508
|
var n = r.call(e), i, o = [], s;
|
|
486
509
|
try {
|
|
487
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
510
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
511
|
+
o.push(i.value);
|
|
488
512
|
} catch (a) {
|
|
489
513
|
s = { error: a };
|
|
490
514
|
} finally {
|
|
491
515
|
try {
|
|
492
516
|
i && !i.done && (r = n.return) && r.call(n);
|
|
493
517
|
} finally {
|
|
494
|
-
if (s)
|
|
518
|
+
if (s)
|
|
519
|
+
throw s.error;
|
|
495
520
|
}
|
|
496
521
|
}
|
|
497
522
|
return o;
|
|
498
523
|
}
|
|
499
524
|
function k(e, t, r) {
|
|
500
|
-
if (r || arguments.length === 2)
|
|
501
|
-
(
|
|
502
|
-
|
|
525
|
+
if (r || arguments.length === 2)
|
|
526
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
527
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
528
|
+
return e.concat(o || t);
|
|
503
529
|
}
|
|
504
530
|
function O(e) {
|
|
505
531
|
return typeof e == "function";
|
|
506
532
|
}
|
|
507
|
-
function
|
|
533
|
+
function Pt(e) {
|
|
508
534
|
var t = function(n) {
|
|
509
535
|
Error.call(n), n.stack = new Error().stack;
|
|
510
536
|
}, r = e(t);
|
|
511
537
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
512
538
|
}
|
|
513
|
-
var Te =
|
|
539
|
+
var Te = Pt(function(e) {
|
|
514
540
|
return function(r) {
|
|
515
541
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
516
542
|
` + r.map(function(n, i) {
|
|
@@ -519,7 +545,7 @@ var Te = Ht(function(e) {
|
|
|
519
545
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
520
546
|
};
|
|
521
547
|
});
|
|
522
|
-
function
|
|
548
|
+
function Re(e, t) {
|
|
523
549
|
if (e) {
|
|
524
550
|
var r = e.indexOf(t);
|
|
525
551
|
0 <= r && e.splice(r, 1);
|
|
@@ -537,7 +563,7 @@ var ge = function() {
|
|
|
537
563
|
if (s)
|
|
538
564
|
if (this._parentage = null, Array.isArray(s))
|
|
539
565
|
try {
|
|
540
|
-
for (var a =
|
|
566
|
+
for (var a = Ce(s), h = a.next(); !h.done; h = a.next()) {
|
|
541
567
|
var u = h.value;
|
|
542
568
|
u.remove(this);
|
|
543
569
|
}
|
|
@@ -547,7 +573,8 @@ var ge = function() {
|
|
|
547
573
|
try {
|
|
548
574
|
h && !h.done && (r = a.return) && r.call(a);
|
|
549
575
|
} finally {
|
|
550
|
-
if (t)
|
|
576
|
+
if (t)
|
|
577
|
+
throw t.error;
|
|
551
578
|
}
|
|
552
579
|
}
|
|
553
580
|
else
|
|
@@ -563,12 +590,12 @@ var ge = function() {
|
|
|
563
590
|
if (f) {
|
|
564
591
|
this._finalizers = null;
|
|
565
592
|
try {
|
|
566
|
-
for (var c =
|
|
567
|
-
var
|
|
593
|
+
for (var c = Ce(f), p = c.next(); !p.done; p = c.next()) {
|
|
594
|
+
var d = p.value;
|
|
568
595
|
try {
|
|
569
|
-
|
|
596
|
+
et(d);
|
|
570
597
|
} catch (v) {
|
|
571
|
-
o = o ?? [], v instanceof Te ? o = k(k([],
|
|
598
|
+
o = o ?? [], v instanceof Te ? o = k(k([], $e(o)), $e(v.errors)) : o.push(v);
|
|
572
599
|
}
|
|
573
600
|
}
|
|
574
601
|
} catch (v) {
|
|
@@ -577,7 +604,8 @@ var ge = function() {
|
|
|
577
604
|
try {
|
|
578
605
|
p && !p.done && (i = c.return) && i.call(c);
|
|
579
606
|
} finally {
|
|
580
|
-
if (n)
|
|
607
|
+
if (n)
|
|
608
|
+
throw n.error;
|
|
581
609
|
}
|
|
582
610
|
}
|
|
583
611
|
}
|
|
@@ -588,7 +616,7 @@ var ge = function() {
|
|
|
588
616
|
var r;
|
|
589
617
|
if (t && t !== this)
|
|
590
618
|
if (this.closed)
|
|
591
|
-
|
|
619
|
+
et(t);
|
|
592
620
|
else {
|
|
593
621
|
if (t instanceof e) {
|
|
594
622
|
if (t.closed || t._hasParent(this))
|
|
@@ -605,52 +633,56 @@ var ge = function() {
|
|
|
605
633
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
606
634
|
}, e.prototype._removeParent = function(t) {
|
|
607
635
|
var r = this._parentage;
|
|
608
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
636
|
+
r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
|
|
609
637
|
}, e.prototype.remove = function(t) {
|
|
610
638
|
var r = this._finalizers;
|
|
611
|
-
r &&
|
|
639
|
+
r && Re(r, t), t instanceof e && t._removeParent(this);
|
|
612
640
|
}, e.EMPTY = function() {
|
|
613
641
|
var t = new e();
|
|
614
642
|
return t.closed = !0, t;
|
|
615
643
|
}(), e;
|
|
616
|
-
}(),
|
|
617
|
-
function
|
|
644
|
+
}(), Ot = ge.EMPTY;
|
|
645
|
+
function It(e) {
|
|
618
646
|
return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
619
647
|
}
|
|
620
|
-
function
|
|
648
|
+
function et(e) {
|
|
621
649
|
O(e) ? e() : e.unsubscribe();
|
|
622
650
|
}
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
|
|
651
|
+
var Lt = {
|
|
652
|
+
onUnhandledError: null,
|
|
653
|
+
onStoppedNotification: null,
|
|
654
|
+
Promise: void 0,
|
|
655
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
656
|
+
useDeprecatedNextContext: !1
|
|
657
|
+
}, Lr = {
|
|
626
658
|
setTimeout: function(e, t) {
|
|
627
659
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
628
660
|
r[n - 2] = arguments[n];
|
|
629
|
-
return setTimeout.apply(void 0, k([e, t],
|
|
661
|
+
return setTimeout.apply(void 0, k([e, t], $e(r)));
|
|
630
662
|
},
|
|
631
663
|
clearTimeout: function(e) {
|
|
632
664
|
return clearTimeout(e);
|
|
633
665
|
},
|
|
634
666
|
delegate: void 0
|
|
635
667
|
};
|
|
636
|
-
function
|
|
637
|
-
|
|
668
|
+
function Nr(e) {
|
|
669
|
+
Lr.setTimeout(function() {
|
|
638
670
|
throw e;
|
|
639
671
|
});
|
|
640
672
|
}
|
|
641
|
-
function
|
|
673
|
+
function tt() {
|
|
642
674
|
}
|
|
643
675
|
function ce(e) {
|
|
644
676
|
e();
|
|
645
677
|
}
|
|
646
|
-
var
|
|
678
|
+
var Nt = function(e) {
|
|
647
679
|
I(t, e);
|
|
648
680
|
function t(r) {
|
|
649
681
|
var n = e.call(this) || this;
|
|
650
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
682
|
+
return n.isStopped = !1, r ? (n.destination = r, It(r) && r.add(n)) : n.destination = Rr, n;
|
|
651
683
|
}
|
|
652
684
|
return t.create = function(r, n, i) {
|
|
653
|
-
return new
|
|
685
|
+
return new Ue(r, n, i);
|
|
654
686
|
}, t.prototype.next = function(r) {
|
|
655
687
|
this.isStopped || this._next(r);
|
|
656
688
|
}, t.prototype.error = function(r) {
|
|
@@ -674,7 +706,11 @@ var wt = function(e) {
|
|
|
674
706
|
this.unsubscribe();
|
|
675
707
|
}
|
|
676
708
|
}, t;
|
|
677
|
-
}(ge),
|
|
709
|
+
}(ge), Mr = Function.prototype.bind;
|
|
710
|
+
function He(e, t) {
|
|
711
|
+
return Mr.call(e, t);
|
|
712
|
+
}
|
|
713
|
+
var Cr = function() {
|
|
678
714
|
function e(t) {
|
|
679
715
|
this.partialObserver = t;
|
|
680
716
|
}
|
|
@@ -705,43 +741,55 @@ var wt = function(e) {
|
|
|
705
741
|
ue(r);
|
|
706
742
|
}
|
|
707
743
|
}, e;
|
|
708
|
-
}(),
|
|
744
|
+
}(), Ue = function(e) {
|
|
709
745
|
I(t, e);
|
|
710
746
|
function t(r, n, i) {
|
|
711
747
|
var o = e.call(this) || this, s;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
748
|
+
if (O(r) || !r)
|
|
749
|
+
s = {
|
|
750
|
+
next: r ?? void 0,
|
|
751
|
+
error: n ?? void 0,
|
|
752
|
+
complete: i ?? void 0
|
|
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;
|
|
717
765
|
}
|
|
718
766
|
return t;
|
|
719
|
-
}(
|
|
767
|
+
}(Nt);
|
|
720
768
|
function ue(e) {
|
|
721
|
-
|
|
769
|
+
Nr(e);
|
|
722
770
|
}
|
|
723
|
-
function
|
|
771
|
+
function $r(e) {
|
|
724
772
|
throw e;
|
|
725
773
|
}
|
|
726
|
-
var
|
|
774
|
+
var Rr = {
|
|
727
775
|
closed: !0,
|
|
728
|
-
next:
|
|
729
|
-
error:
|
|
730
|
-
complete:
|
|
731
|
-
},
|
|
776
|
+
next: tt,
|
|
777
|
+
error: $r,
|
|
778
|
+
complete: tt
|
|
779
|
+
}, Ur = function() {
|
|
732
780
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
733
781
|
}();
|
|
734
|
-
function
|
|
782
|
+
function Dr(e) {
|
|
735
783
|
return e;
|
|
736
784
|
}
|
|
737
|
-
function
|
|
738
|
-
return e.length === 0 ?
|
|
785
|
+
function Gr(e) {
|
|
786
|
+
return e.length === 0 ? Dr : e.length === 1 ? e[0] : function(r) {
|
|
739
787
|
return e.reduce(function(n, i) {
|
|
740
788
|
return i(n);
|
|
741
789
|
}, r);
|
|
742
790
|
};
|
|
743
791
|
}
|
|
744
|
-
var
|
|
792
|
+
var rt = function() {
|
|
745
793
|
function e(t) {
|
|
746
794
|
t && (this._subscribe = t);
|
|
747
795
|
}
|
|
@@ -749,7 +797,7 @@ var Ke = function() {
|
|
|
749
797
|
var r = new e();
|
|
750
798
|
return r.source = this, r.operator = t, r;
|
|
751
799
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
752
|
-
var i = this, o =
|
|
800
|
+
var i = this, o = jr(t) ? t : new Ue(t, r, n);
|
|
753
801
|
return ce(function() {
|
|
754
802
|
var s = i, a = s.operator, h = s.source;
|
|
755
803
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -762,8 +810,8 @@ var Ke = function() {
|
|
|
762
810
|
}
|
|
763
811
|
}, e.prototype.forEach = function(t, r) {
|
|
764
812
|
var n = this;
|
|
765
|
-
return r =
|
|
766
|
-
var s = new
|
|
813
|
+
return r = nt(r), new r(function(i, o) {
|
|
814
|
+
var s = new Ue({
|
|
767
815
|
next: function(a) {
|
|
768
816
|
try {
|
|
769
817
|
t(a);
|
|
@@ -779,15 +827,15 @@ var Ke = function() {
|
|
|
779
827
|
}, e.prototype._subscribe = function(t) {
|
|
780
828
|
var r;
|
|
781
829
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
782
|
-
}, e.prototype[
|
|
830
|
+
}, e.prototype[Ur] = function() {
|
|
783
831
|
return this;
|
|
784
832
|
}, e.prototype.pipe = function() {
|
|
785
833
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
786
834
|
t[r] = arguments[r];
|
|
787
|
-
return
|
|
835
|
+
return Gr(t)(this);
|
|
788
836
|
}, e.prototype.toPromise = function(t) {
|
|
789
837
|
var r = this;
|
|
790
|
-
return t =
|
|
838
|
+
return t = nt(t), new t(function(n, i) {
|
|
791
839
|
var o;
|
|
792
840
|
r.subscribe(function(s) {
|
|
793
841
|
return o = s;
|
|
@@ -801,32 +849,32 @@ var Ke = function() {
|
|
|
801
849
|
return new e(t);
|
|
802
850
|
}, e;
|
|
803
851
|
}();
|
|
804
|
-
function
|
|
852
|
+
function nt(e) {
|
|
805
853
|
var t;
|
|
806
|
-
return (t = e ??
|
|
854
|
+
return (t = e ?? Lt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
807
855
|
}
|
|
808
|
-
function
|
|
856
|
+
function Fr(e) {
|
|
809
857
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
810
858
|
}
|
|
811
|
-
function
|
|
812
|
-
return e && e instanceof
|
|
859
|
+
function jr(e) {
|
|
860
|
+
return e && e instanceof Nt || Fr(e) && It(e);
|
|
813
861
|
}
|
|
814
|
-
var
|
|
862
|
+
var kr = Pt(function(e) {
|
|
815
863
|
return function() {
|
|
816
864
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
817
865
|
};
|
|
818
|
-
}),
|
|
866
|
+
}), Mt = function(e) {
|
|
819
867
|
I(t, e);
|
|
820
868
|
function t() {
|
|
821
869
|
var r = e.call(this) || this;
|
|
822
870
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
823
871
|
}
|
|
824
872
|
return t.prototype.lift = function(r) {
|
|
825
|
-
var n = new
|
|
873
|
+
var n = new it(this, this);
|
|
826
874
|
return n.operator = r, n;
|
|
827
875
|
}, t.prototype._throwIfClosed = function() {
|
|
828
876
|
if (this.closed)
|
|
829
|
-
throw new
|
|
877
|
+
throw new kr();
|
|
830
878
|
}, t.prototype.next = function(r) {
|
|
831
879
|
var n = this;
|
|
832
880
|
ce(function() {
|
|
@@ -834,7 +882,7 @@ var Ur = Ht(function(e) {
|
|
|
834
882
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
835
883
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
836
884
|
try {
|
|
837
|
-
for (var s =
|
|
885
|
+
for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
838
886
|
var h = a.value;
|
|
839
887
|
h.next(r);
|
|
840
888
|
}
|
|
@@ -844,7 +892,8 @@ var Ur = Ht(function(e) {
|
|
|
844
892
|
try {
|
|
845
893
|
a && !a.done && (o = s.return) && o.call(s);
|
|
846
894
|
} finally {
|
|
847
|
-
if (i)
|
|
895
|
+
if (i)
|
|
896
|
+
throw i.error;
|
|
848
897
|
}
|
|
849
898
|
}
|
|
850
899
|
}
|
|
@@ -882,19 +931,19 @@ var Ur = Ht(function(e) {
|
|
|
882
931
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
883
932
|
}, t.prototype._innerSubscribe = function(r) {
|
|
884
933
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
885
|
-
return o || s ?
|
|
886
|
-
n.currentObservers = null,
|
|
934
|
+
return o || s ? Ot : (this.currentObservers = null, a.push(r), new ge(function() {
|
|
935
|
+
n.currentObservers = null, Re(a, r);
|
|
887
936
|
}));
|
|
888
937
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
889
938
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
890
939
|
i ? r.error(o) : s && r.complete();
|
|
891
940
|
}, t.prototype.asObservable = function() {
|
|
892
|
-
var r = new
|
|
941
|
+
var r = new rt();
|
|
893
942
|
return r.source = this, r;
|
|
894
943
|
}, t.create = function(r, n) {
|
|
895
|
-
return new
|
|
944
|
+
return new it(r, n);
|
|
896
945
|
}, t;
|
|
897
|
-
}(
|
|
946
|
+
}(rt), it = function(e) {
|
|
898
947
|
I(t, e);
|
|
899
948
|
function t(r, n) {
|
|
900
949
|
var i = e.call(this) || this;
|
|
@@ -911,17 +960,17 @@ var Ur = Ht(function(e) {
|
|
|
911
960
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
912
961
|
}, t.prototype._subscribe = function(r) {
|
|
913
962
|
var n, i;
|
|
914
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
963
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ot;
|
|
915
964
|
}, t;
|
|
916
|
-
}(
|
|
965
|
+
}(Mt), Ct = {
|
|
917
966
|
now: function() {
|
|
918
|
-
return (
|
|
967
|
+
return (Ct.delegate || Date).now();
|
|
919
968
|
},
|
|
920
969
|
delegate: void 0
|
|
921
|
-
},
|
|
970
|
+
}, Vr = function(e) {
|
|
922
971
|
I(t, e);
|
|
923
972
|
function t(r, n, i) {
|
|
924
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
973
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ct);
|
|
925
974
|
var o = e.call(this) || this;
|
|
926
975
|
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;
|
|
927
976
|
}
|
|
@@ -941,15 +990,15 @@ var Ur = Ht(function(e) {
|
|
|
941
990
|
u && o.splice(0, u + 1);
|
|
942
991
|
}
|
|
943
992
|
}, t;
|
|
944
|
-
}(
|
|
945
|
-
const
|
|
946
|
-
if (
|
|
947
|
-
const r = new
|
|
948
|
-
|
|
993
|
+
}(Mt);
|
|
994
|
+
const ot = [], st = {}, Xr = (e, t = 0) => {
|
|
995
|
+
if (ot.indexOf(e) == -1) {
|
|
996
|
+
const r = new Vr(t);
|
|
997
|
+
st[e] = r, ot.push(e);
|
|
949
998
|
}
|
|
950
|
-
return
|
|
951
|
-
},
|
|
952
|
-
function
|
|
999
|
+
return st[e];
|
|
1000
|
+
}, G = [];
|
|
1001
|
+
function Wr(e, t) {
|
|
953
1002
|
return {
|
|
954
1003
|
subscribe: ye(e, t).subscribe
|
|
955
1004
|
};
|
|
@@ -958,14 +1007,14 @@ function ye(e, t = B) {
|
|
|
958
1007
|
let r;
|
|
959
1008
|
const n = /* @__PURE__ */ new Set();
|
|
960
1009
|
function i(a) {
|
|
961
|
-
if (
|
|
962
|
-
const h = !
|
|
1010
|
+
if (Tt(e, a) && (e = a, r)) {
|
|
1011
|
+
const h = !G.length;
|
|
963
1012
|
for (const u of n)
|
|
964
|
-
u[1](),
|
|
1013
|
+
u[1](), G.push(u, e);
|
|
965
1014
|
if (h) {
|
|
966
|
-
for (let u = 0; u <
|
|
967
|
-
|
|
968
|
-
|
|
1015
|
+
for (let u = 0; u < G.length; u += 2)
|
|
1016
|
+
G[u][0](G[u + 1]);
|
|
1017
|
+
G.length = 0;
|
|
969
1018
|
}
|
|
970
1019
|
}
|
|
971
1020
|
}
|
|
@@ -985,7 +1034,7 @@ function Q(e, t, r) {
|
|
|
985
1034
|
if (!i.every(Boolean))
|
|
986
1035
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
987
1036
|
const o = t.length < 2;
|
|
988
|
-
return
|
|
1037
|
+
return Wr(r, (s, a) => {
|
|
989
1038
|
let h = !1;
|
|
990
1039
|
const u = [];
|
|
991
1040
|
let l = 0, f = B;
|
|
@@ -993,11 +1042,11 @@ function Q(e, t, r) {
|
|
|
993
1042
|
if (l)
|
|
994
1043
|
return;
|
|
995
1044
|
f();
|
|
996
|
-
const
|
|
997
|
-
o ? s(
|
|
1045
|
+
const d = t(n ? u[0] : u, s, a);
|
|
1046
|
+
o ? s(d) : f = ze(d) ? d : B;
|
|
998
1047
|
}, p = i.map(
|
|
999
|
-
(
|
|
1000
|
-
|
|
1048
|
+
(d, v) => Ht(
|
|
1049
|
+
d,
|
|
1001
1050
|
(H) => {
|
|
1002
1051
|
u[v] = H, l &= ~(1 << v), h && c();
|
|
1003
1052
|
},
|
|
@@ -1011,70 +1060,70 @@ function Q(e, t, r) {
|
|
|
1011
1060
|
};
|
|
1012
1061
|
});
|
|
1013
1062
|
}
|
|
1014
|
-
function
|
|
1063
|
+
function zr(e) {
|
|
1015
1064
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1016
1065
|
}
|
|
1017
|
-
var
|
|
1018
|
-
return
|
|
1066
|
+
var Zr = function(t) {
|
|
1067
|
+
return Qr(t) && !Jr(t);
|
|
1019
1068
|
};
|
|
1020
|
-
function
|
|
1069
|
+
function Qr(e) {
|
|
1021
1070
|
return !!e && typeof e == "object";
|
|
1022
1071
|
}
|
|
1023
|
-
function
|
|
1072
|
+
function Jr(e) {
|
|
1024
1073
|
var t = Object.prototype.toString.call(e);
|
|
1025
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1074
|
+
return t === "[object RegExp]" || t === "[object Date]" || Kr(e);
|
|
1026
1075
|
}
|
|
1027
|
-
var
|
|
1028
|
-
function
|
|
1029
|
-
return e.$$typeof ===
|
|
1076
|
+
var Yr = typeof Symbol == "function" && Symbol.for, qr = Yr ? Symbol.for("react.element") : 60103;
|
|
1077
|
+
function Kr(e) {
|
|
1078
|
+
return e.$$typeof === qr;
|
|
1030
1079
|
}
|
|
1031
|
-
function
|
|
1080
|
+
function en(e) {
|
|
1032
1081
|
return Array.isArray(e) ? [] : {};
|
|
1033
1082
|
}
|
|
1034
1083
|
function re(e, t) {
|
|
1035
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? V(
|
|
1084
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(en(e), e, t) : e;
|
|
1036
1085
|
}
|
|
1037
|
-
function
|
|
1086
|
+
function tn(e, t, r) {
|
|
1038
1087
|
return e.concat(t).map(function(n) {
|
|
1039
1088
|
return re(n, r);
|
|
1040
1089
|
});
|
|
1041
1090
|
}
|
|
1042
|
-
function
|
|
1091
|
+
function rn(e, t) {
|
|
1043
1092
|
if (!t.customMerge)
|
|
1044
1093
|
return V;
|
|
1045
1094
|
var r = t.customMerge(e);
|
|
1046
1095
|
return typeof r == "function" ? r : V;
|
|
1047
1096
|
}
|
|
1048
|
-
function
|
|
1097
|
+
function nn(e) {
|
|
1049
1098
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1050
1099
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1051
1100
|
}) : [];
|
|
1052
1101
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return Object.keys(e).concat(
|
|
1102
|
+
function at(e) {
|
|
1103
|
+
return Object.keys(e).concat(nn(e));
|
|
1055
1104
|
}
|
|
1056
|
-
function
|
|
1105
|
+
function $t(e, t) {
|
|
1057
1106
|
try {
|
|
1058
1107
|
return t in e;
|
|
1059
1108
|
} catch {
|
|
1060
1109
|
return !1;
|
|
1061
1110
|
}
|
|
1062
1111
|
}
|
|
1063
|
-
function
|
|
1064
|
-
return
|
|
1112
|
+
function on(e, t) {
|
|
1113
|
+
return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1065
1114
|
}
|
|
1066
|
-
function
|
|
1115
|
+
function sn(e, t, r) {
|
|
1067
1116
|
var n = {};
|
|
1068
|
-
return r.isMergeableObject(e) &&
|
|
1117
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
1069
1118
|
n[i] = re(e[i], r);
|
|
1070
|
-
}),
|
|
1071
|
-
|
|
1119
|
+
}), at(t).forEach(function(i) {
|
|
1120
|
+
on(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = rn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1072
1121
|
}), n;
|
|
1073
1122
|
}
|
|
1074
1123
|
function V(e, t, r) {
|
|
1075
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1124
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || tn, r.isMergeableObject = r.isMergeableObject || Zr, r.cloneUnlessOtherwiseSpecified = re;
|
|
1076
1125
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1077
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1126
|
+
return o ? n ? r.arrayMerge(e, t, r) : sn(e, t, r) : re(t, r);
|
|
1078
1127
|
}
|
|
1079
1128
|
V.all = function(t, r) {
|
|
1080
1129
|
if (!Array.isArray(t))
|
|
@@ -1083,60 +1132,62 @@ V.all = function(t, r) {
|
|
|
1083
1132
|
return V(n, i, r);
|
|
1084
1133
|
}, {});
|
|
1085
1134
|
};
|
|
1086
|
-
var
|
|
1087
|
-
const
|
|
1088
|
-
function
|
|
1089
|
-
var r = t && t.cache ? t.cache :
|
|
1135
|
+
var an = V, un = an;
|
|
1136
|
+
const hn = /* @__PURE__ */ zr(un);
|
|
1137
|
+
function Be(e, t) {
|
|
1138
|
+
var r = t && t.cache ? t.cache : mn, n = t && t.serializer ? t.serializer : dn, i = t && t.strategy ? t.strategy : cn;
|
|
1090
1139
|
return i(e, {
|
|
1091
1140
|
cache: r,
|
|
1092
1141
|
serializer: n
|
|
1093
1142
|
});
|
|
1094
1143
|
}
|
|
1095
|
-
function
|
|
1144
|
+
function ln(e) {
|
|
1096
1145
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1097
1146
|
}
|
|
1098
|
-
function
|
|
1099
|
-
var i =
|
|
1147
|
+
function Rt(e, t, r, n) {
|
|
1148
|
+
var i = ln(n) ? n : r(n), o = t.get(i);
|
|
1100
1149
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1101
1150
|
}
|
|
1102
|
-
function
|
|
1151
|
+
function Ut(e, t, r) {
|
|
1103
1152
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1104
1153
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1105
1154
|
}
|
|
1106
|
-
function
|
|
1155
|
+
function Ze(e, t, r, n, i) {
|
|
1107
1156
|
return r.bind(t, e, n, i);
|
|
1108
1157
|
}
|
|
1109
|
-
function
|
|
1110
|
-
var r = e.length === 1 ?
|
|
1111
|
-
return
|
|
1158
|
+
function cn(e, t) {
|
|
1159
|
+
var r = e.length === 1 ? Rt : Ut;
|
|
1160
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
1161
|
+
}
|
|
1162
|
+
function fn(e, t) {
|
|
1163
|
+
return Ze(e, this, Ut, t.cache.create(), t.serializer);
|
|
1112
1164
|
}
|
|
1113
|
-
function
|
|
1114
|
-
return
|
|
1165
|
+
function pn(e, t) {
|
|
1166
|
+
return Ze(e, this, Rt, t.cache.create(), t.serializer);
|
|
1115
1167
|
}
|
|
1116
|
-
var
|
|
1168
|
+
var dn = function() {
|
|
1117
1169
|
return JSON.stringify(arguments);
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
}()
|
|
1130
|
-
), cn = {
|
|
1170
|
+
};
|
|
1171
|
+
function Qe() {
|
|
1172
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1173
|
+
}
|
|
1174
|
+
Qe.prototype.get = function(e) {
|
|
1175
|
+
return this.cache[e];
|
|
1176
|
+
};
|
|
1177
|
+
Qe.prototype.set = function(e, t) {
|
|
1178
|
+
this.cache[e] = t;
|
|
1179
|
+
};
|
|
1180
|
+
var mn = {
|
|
1131
1181
|
create: function() {
|
|
1132
|
-
return new
|
|
1182
|
+
return new Qe();
|
|
1133
1183
|
}
|
|
1134
|
-
},
|
|
1135
|
-
variadic:
|
|
1136
|
-
|
|
1184
|
+
}, Ae = {
|
|
1185
|
+
variadic: fn,
|
|
1186
|
+
monadic: pn
|
|
1187
|
+
}, m;
|
|
1137
1188
|
(function(e) {
|
|
1138
1189
|
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";
|
|
1139
|
-
})(
|
|
1190
|
+
})(m || (m = {}));
|
|
1140
1191
|
var _;
|
|
1141
1192
|
(function(e) {
|
|
1142
1193
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -1145,43 +1196,43 @@ var X;
|
|
|
1145
1196
|
(function(e) {
|
|
1146
1197
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1147
1198
|
})(X || (X = {}));
|
|
1148
|
-
function
|
|
1199
|
+
function ut(e) {
|
|
1149
1200
|
return e.type === _.literal;
|
|
1150
1201
|
}
|
|
1151
|
-
function
|
|
1202
|
+
function bn(e) {
|
|
1152
1203
|
return e.type === _.argument;
|
|
1153
1204
|
}
|
|
1154
|
-
function
|
|
1205
|
+
function Dt(e) {
|
|
1155
1206
|
return e.type === _.number;
|
|
1156
1207
|
}
|
|
1157
|
-
function
|
|
1208
|
+
function Gt(e) {
|
|
1158
1209
|
return e.type === _.date;
|
|
1159
1210
|
}
|
|
1160
|
-
function
|
|
1211
|
+
function Ft(e) {
|
|
1161
1212
|
return e.type === _.time;
|
|
1162
1213
|
}
|
|
1163
|
-
function
|
|
1214
|
+
function jt(e) {
|
|
1164
1215
|
return e.type === _.select;
|
|
1165
1216
|
}
|
|
1166
|
-
function
|
|
1217
|
+
function kt(e) {
|
|
1167
1218
|
return e.type === _.plural;
|
|
1168
1219
|
}
|
|
1169
|
-
function
|
|
1220
|
+
function gn(e) {
|
|
1170
1221
|
return e.type === _.pound;
|
|
1171
1222
|
}
|
|
1172
|
-
function
|
|
1223
|
+
function Vt(e) {
|
|
1173
1224
|
return e.type === _.tag;
|
|
1174
1225
|
}
|
|
1175
|
-
function
|
|
1226
|
+
function Xt(e) {
|
|
1176
1227
|
return !!(e && typeof e == "object" && e.type === X.number);
|
|
1177
1228
|
}
|
|
1178
|
-
function
|
|
1229
|
+
function De(e) {
|
|
1179
1230
|
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
1180
1231
|
}
|
|
1181
|
-
var
|
|
1182
|
-
function
|
|
1232
|
+
var Wt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, yn = /(?:[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;
|
|
1233
|
+
function vn(e) {
|
|
1183
1234
|
var t = {};
|
|
1184
|
-
return e.replace(
|
|
1235
|
+
return e.replace(yn, function(r) {
|
|
1185
1236
|
var n = r.length;
|
|
1186
1237
|
switch (r[0]) {
|
|
1187
1238
|
case "G":
|
|
@@ -1270,11 +1321,11 @@ function mn(e) {
|
|
|
1270
1321
|
return "";
|
|
1271
1322
|
}), t;
|
|
1272
1323
|
}
|
|
1273
|
-
var
|
|
1274
|
-
function
|
|
1324
|
+
var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1325
|
+
function En(e) {
|
|
1275
1326
|
if (e.length === 0)
|
|
1276
1327
|
throw new Error("Number skeleton cannot be empty");
|
|
1277
|
-
for (var t = e.split(
|
|
1328
|
+
for (var t = e.split(_n).filter(function(c) {
|
|
1278
1329
|
return c.length > 0;
|
|
1279
1330
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1280
1331
|
var o = i[n], s = o.split("/");
|
|
@@ -1289,17 +1340,17 @@ function gn(e) {
|
|
|
1289
1340
|
}
|
|
1290
1341
|
return r;
|
|
1291
1342
|
}
|
|
1292
|
-
function
|
|
1343
|
+
function xn(e) {
|
|
1293
1344
|
return e.replace(/^(.*?)-/, "");
|
|
1294
1345
|
}
|
|
1295
|
-
var
|
|
1296
|
-
function
|
|
1346
|
+
var ht = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, Sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Zt = /^(0+)$/;
|
|
1347
|
+
function lt(e) {
|
|
1297
1348
|
var t = {};
|
|
1298
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1349
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zt, function(r, n, i) {
|
|
1299
1350
|
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)), "";
|
|
1300
1351
|
}), t;
|
|
1301
1352
|
}
|
|
1302
|
-
function
|
|
1353
|
+
function Qt(e) {
|
|
1303
1354
|
switch (e) {
|
|
1304
1355
|
case "sign-auto":
|
|
1305
1356
|
return {
|
|
@@ -1339,7 +1390,7 @@ function Vt(e) {
|
|
|
1339
1390
|
};
|
|
1340
1391
|
}
|
|
1341
1392
|
}
|
|
1342
|
-
function
|
|
1393
|
+
function Tn(e) {
|
|
1343
1394
|
var t;
|
|
1344
1395
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1345
1396
|
notation: "engineering"
|
|
@@ -1347,17 +1398,17 @@ function _n(e) {
|
|
|
1347
1398
|
notation: "scientific"
|
|
1348
1399
|
}, e = e.slice(1)), t) {
|
|
1349
1400
|
var r = e.slice(0, 2);
|
|
1350
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1401
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zt.test(e))
|
|
1351
1402
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1352
1403
|
t.minimumIntegerDigits = e.length;
|
|
1353
1404
|
}
|
|
1354
1405
|
return t;
|
|
1355
1406
|
}
|
|
1356
|
-
function
|
|
1357
|
-
var t = {}, r =
|
|
1407
|
+
function ct(e) {
|
|
1408
|
+
var t = {}, r = Qt(e);
|
|
1358
1409
|
return r || t;
|
|
1359
1410
|
}
|
|
1360
|
-
function
|
|
1411
|
+
function Hn(e) {
|
|
1361
1412
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1362
1413
|
var i = n[r];
|
|
1363
1414
|
switch (i.stem) {
|
|
@@ -1381,7 +1432,7 @@ function xn(e) {
|
|
|
1381
1432
|
continue;
|
|
1382
1433
|
case "measure-unit":
|
|
1383
1434
|
case "unit":
|
|
1384
|
-
t.style = "unit", t.unit =
|
|
1435
|
+
t.style = "unit", t.unit = xn(i.options[0]);
|
|
1385
1436
|
continue;
|
|
1386
1437
|
case "compact-short":
|
|
1387
1438
|
case "K":
|
|
@@ -1393,12 +1444,12 @@ function xn(e) {
|
|
|
1393
1444
|
continue;
|
|
1394
1445
|
case "scientific":
|
|
1395
1446
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1396
|
-
return g(g({}, h),
|
|
1447
|
+
return g(g({}, h), ct(u));
|
|
1397
1448
|
}, {}));
|
|
1398
1449
|
continue;
|
|
1399
1450
|
case "engineering":
|
|
1400
1451
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1401
|
-
return g(g({}, h),
|
|
1452
|
+
return g(g({}, h), ct(u));
|
|
1402
1453
|
}, {}));
|
|
1403
1454
|
continue;
|
|
1404
1455
|
case "notation-simple":
|
|
@@ -1443,7 +1494,7 @@ function xn(e) {
|
|
|
1443
1494
|
case "integer-width":
|
|
1444
1495
|
if (i.options.length > 1)
|
|
1445
1496
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1446
|
-
i.options[0].replace(
|
|
1497
|
+
i.options[0].replace(Sn, function(h, u, l, f, c, p) {
|
|
1447
1498
|
if (u)
|
|
1448
1499
|
t.minimumIntegerDigits = l.length;
|
|
1449
1500
|
else {
|
|
@@ -1456,27 +1507,27 @@ function xn(e) {
|
|
|
1456
1507
|
});
|
|
1457
1508
|
continue;
|
|
1458
1509
|
}
|
|
1459
|
-
if (
|
|
1510
|
+
if (Zt.test(i.stem)) {
|
|
1460
1511
|
t.minimumIntegerDigits = i.stem.length;
|
|
1461
1512
|
continue;
|
|
1462
1513
|
}
|
|
1463
|
-
if (
|
|
1514
|
+
if (ht.test(i.stem)) {
|
|
1464
1515
|
if (i.options.length > 1)
|
|
1465
1516
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1466
|
-
i.stem.replace(
|
|
1517
|
+
i.stem.replace(ht, function(h, u, l, f, c, p) {
|
|
1467
1518
|
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), "";
|
|
1468
1519
|
});
|
|
1469
1520
|
var o = i.options[0];
|
|
1470
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
1521
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), lt(o)));
|
|
1471
1522
|
continue;
|
|
1472
1523
|
}
|
|
1473
|
-
if (
|
|
1474
|
-
t = g(g({}, t),
|
|
1524
|
+
if (zt.test(i.stem)) {
|
|
1525
|
+
t = g(g({}, t), lt(i.stem));
|
|
1475
1526
|
continue;
|
|
1476
1527
|
}
|
|
1477
|
-
var s =
|
|
1528
|
+
var s = Qt(i.stem);
|
|
1478
1529
|
s && (t = g(g({}, t), s));
|
|
1479
|
-
var a =
|
|
1530
|
+
var a = Tn(i.stem);
|
|
1480
1531
|
a && (t = g(g({}, t), a));
|
|
1481
1532
|
}
|
|
1482
1533
|
return t;
|
|
@@ -2896,22 +2947,23 @@ var he = {
|
|
|
2896
2947
|
"h"
|
|
2897
2948
|
]
|
|
2898
2949
|
};
|
|
2899
|
-
function
|
|
2950
|
+
function Bn(e, t) {
|
|
2900
2951
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2901
2952
|
var i = e.charAt(n);
|
|
2902
2953
|
if (i === "j") {
|
|
2903
2954
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2904
2955
|
o++, n++;
|
|
2905
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2956
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = An(t);
|
|
2906
2957
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2907
2958
|
r += h;
|
|
2908
2959
|
for (; s-- > 0; )
|
|
2909
2960
|
r = u + r;
|
|
2910
|
-
} else
|
|
2961
|
+
} else
|
|
2962
|
+
i === "J" ? r += "H" : r += i;
|
|
2911
2963
|
}
|
|
2912
2964
|
return r;
|
|
2913
2965
|
}
|
|
2914
|
-
function
|
|
2966
|
+
function An(e) {
|
|
2915
2967
|
var t = e.hourCycle;
|
|
2916
2968
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2917
2969
|
e.hourCycles && // @ts-ignore
|
|
@@ -2933,20 +2985,20 @@ function Sn(e) {
|
|
|
2933
2985
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2934
2986
|
return i[0];
|
|
2935
2987
|
}
|
|
2936
|
-
var
|
|
2937
|
-
function
|
|
2988
|
+
var we, wn = new RegExp("^".concat(Wt.source, "*")), Pn = new RegExp("".concat(Wt.source, "*$"));
|
|
2989
|
+
function b(e, t) {
|
|
2938
2990
|
return { start: e, end: t };
|
|
2939
2991
|
}
|
|
2940
|
-
var
|
|
2992
|
+
var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Ln = !!Object.fromEntries, Nn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Cn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
|
|
2941
2993
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2942
2994
|
}, Ge = !0;
|
|
2943
2995
|
try {
|
|
2944
|
-
var
|
|
2945
|
-
Ge = ((
|
|
2996
|
+
var Un = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2997
|
+
Ge = ((we = Un.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
|
|
2946
2998
|
} catch {
|
|
2947
2999
|
Ge = !1;
|
|
2948
3000
|
}
|
|
2949
|
-
var
|
|
3001
|
+
var ft = On ? (
|
|
2950
3002
|
// Native
|
|
2951
3003
|
function(t, r, n) {
|
|
2952
3004
|
return t.startsWith(r, n);
|
|
@@ -2956,7 +3008,7 @@ var ht = Bn ? (
|
|
|
2956
3008
|
function(t, r, n) {
|
|
2957
3009
|
return t.slice(n, n + r.length) === r;
|
|
2958
3010
|
}
|
|
2959
|
-
),
|
|
3011
|
+
), Fe = In ? String.fromCodePoint : (
|
|
2960
3012
|
// IE11
|
|
2961
3013
|
function() {
|
|
2962
3014
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2968,9 +3020,9 @@ var ht = Bn ? (
|
|
|
2968
3020
|
}
|
|
2969
3021
|
return n;
|
|
2970
3022
|
}
|
|
2971
|
-
),
|
|
3023
|
+
), pt = (
|
|
2972
3024
|
// native
|
|
2973
|
-
|
|
3025
|
+
Ln ? Object.fromEntries : (
|
|
2974
3026
|
// Ponyfill
|
|
2975
3027
|
function(t) {
|
|
2976
3028
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2980,7 +3032,7 @@ var ht = Bn ? (
|
|
|
2980
3032
|
return r;
|
|
2981
3033
|
}
|
|
2982
3034
|
)
|
|
2983
|
-
),
|
|
3035
|
+
), Jt = Nn ? (
|
|
2984
3036
|
// Native
|
|
2985
3037
|
function(t, r) {
|
|
2986
3038
|
return t.codePointAt(r);
|
|
@@ -2994,7 +3046,7 @@ var ht = Bn ? (
|
|
|
2994
3046
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2995
3047
|
}
|
|
2996
3048
|
}
|
|
2997
|
-
),
|
|
3049
|
+
), Dn = Mn ? (
|
|
2998
3050
|
// Native
|
|
2999
3051
|
function(t) {
|
|
3000
3052
|
return t.trimStart();
|
|
@@ -3002,9 +3054,9 @@ var ht = Bn ? (
|
|
|
3002
3054
|
) : (
|
|
3003
3055
|
// Ponyfill
|
|
3004
3056
|
function(t) {
|
|
3005
|
-
return t.replace(
|
|
3057
|
+
return t.replace(wn, "");
|
|
3006
3058
|
}
|
|
3007
|
-
),
|
|
3059
|
+
), Gn = Cn ? (
|
|
3008
3060
|
// Native
|
|
3009
3061
|
function(t) {
|
|
3010
3062
|
return t.trimEnd();
|
|
@@ -3012,32 +3064,32 @@ var ht = Bn ? (
|
|
|
3012
3064
|
) : (
|
|
3013
3065
|
// Ponyfill
|
|
3014
3066
|
function(t) {
|
|
3015
|
-
return t.replace(
|
|
3067
|
+
return t.replace(Pn, "");
|
|
3016
3068
|
}
|
|
3017
3069
|
);
|
|
3018
|
-
function
|
|
3070
|
+
function Yt(e, t) {
|
|
3019
3071
|
return new RegExp(e, t);
|
|
3020
3072
|
}
|
|
3021
|
-
var
|
|
3073
|
+
var je;
|
|
3022
3074
|
if (Ge) {
|
|
3023
|
-
var
|
|
3024
|
-
|
|
3075
|
+
var dt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3076
|
+
je = function(t, r) {
|
|
3025
3077
|
var n;
|
|
3026
|
-
|
|
3027
|
-
var i =
|
|
3078
|
+
dt.lastIndex = r;
|
|
3079
|
+
var i = dt.exec(t);
|
|
3028
3080
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3029
3081
|
};
|
|
3030
3082
|
} else
|
|
3031
|
-
|
|
3083
|
+
je = function(t, r) {
|
|
3032
3084
|
for (var n = []; ; ) {
|
|
3033
|
-
var i =
|
|
3034
|
-
if (i === void 0 ||
|
|
3085
|
+
var i = Jt(t, r);
|
|
3086
|
+
if (i === void 0 || qt(i) || Vn(i))
|
|
3035
3087
|
break;
|
|
3036
3088
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3037
3089
|
}
|
|
3038
|
-
return
|
|
3090
|
+
return Fe.apply(void 0, n);
|
|
3039
3091
|
};
|
|
3040
|
-
var
|
|
3092
|
+
var Fn = (
|
|
3041
3093
|
/** @class */
|
|
3042
3094
|
function() {
|
|
3043
3095
|
function e(t, r) {
|
|
@@ -3062,13 +3114,13 @@ var Rn = (
|
|
|
3062
3114
|
var a = this.clonePosition();
|
|
3063
3115
|
this.bump(), i.push({
|
|
3064
3116
|
type: _.pound,
|
|
3065
|
-
location:
|
|
3117
|
+
location: b(a, this.clonePosition())
|
|
3066
3118
|
});
|
|
3067
3119
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3068
3120
|
if (n)
|
|
3069
3121
|
break;
|
|
3070
|
-
return this.error(
|
|
3071
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3122
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3123
|
+
} else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
3072
3124
|
var s = this.parseTag(t, r);
|
|
3073
3125
|
if (s.err)
|
|
3074
3126
|
return s;
|
|
@@ -3091,7 +3143,7 @@ var Rn = (
|
|
|
3091
3143
|
val: {
|
|
3092
3144
|
type: _.literal,
|
|
3093
3145
|
value: "<".concat(i, "/>"),
|
|
3094
|
-
location:
|
|
3146
|
+
location: b(n, this.clonePosition())
|
|
3095
3147
|
},
|
|
3096
3148
|
err: null
|
|
3097
3149
|
};
|
|
@@ -3101,25 +3153,25 @@ var Rn = (
|
|
|
3101
3153
|
return o;
|
|
3102
3154
|
var s = o.val, a = this.clonePosition();
|
|
3103
3155
|
if (this.bumpIf("</")) {
|
|
3104
|
-
if (this.isEOF() || !
|
|
3105
|
-
return this.error(
|
|
3156
|
+
if (this.isEOF() || !ke(this.char()))
|
|
3157
|
+
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3106
3158
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3107
|
-
return i !== u ? this.error(
|
|
3159
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3108
3160
|
val: {
|
|
3109
3161
|
type: _.tag,
|
|
3110
3162
|
value: i,
|
|
3111
3163
|
children: s,
|
|
3112
|
-
location:
|
|
3164
|
+
location: b(n, this.clonePosition())
|
|
3113
3165
|
},
|
|
3114
3166
|
err: null
|
|
3115
|
-
} : this.error(
|
|
3167
|
+
} : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
|
|
3116
3168
|
} else
|
|
3117
|
-
return this.error(
|
|
3169
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
3118
3170
|
} else
|
|
3119
|
-
return this.error(
|
|
3171
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3120
3172
|
}, e.prototype.parseTagName = function() {
|
|
3121
3173
|
var t = this.offset();
|
|
3122
|
-
for (this.bump(); !this.isEOF() &&
|
|
3174
|
+
for (this.bump(); !this.isEOF() && kn(this.char()); )
|
|
3123
3175
|
this.bump();
|
|
3124
3176
|
return this.message.slice(t, this.offset());
|
|
3125
3177
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3141,14 +3193,14 @@ var Rn = (
|
|
|
3141
3193
|
}
|
|
3142
3194
|
break;
|
|
3143
3195
|
}
|
|
3144
|
-
var h =
|
|
3196
|
+
var h = b(n, this.clonePosition());
|
|
3145
3197
|
return {
|
|
3146
3198
|
val: { type: _.literal, value: i, location: h },
|
|
3147
3199
|
err: null
|
|
3148
3200
|
};
|
|
3149
3201
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3150
3202
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3151
|
-
!
|
|
3203
|
+
!jn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3152
3204
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3153
3205
|
if (this.isEOF() || this.char() !== 39)
|
|
3154
3206
|
return null;
|
|
@@ -3182,23 +3234,23 @@ var Rn = (
|
|
|
3182
3234
|
r.push(n);
|
|
3183
3235
|
this.bump();
|
|
3184
3236
|
}
|
|
3185
|
-
return
|
|
3237
|
+
return Fe.apply(void 0, r);
|
|
3186
3238
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3187
3239
|
if (this.isEOF())
|
|
3188
3240
|
return null;
|
|
3189
3241
|
var n = this.char();
|
|
3190
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3242
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
3191
3243
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3192
3244
|
var n = this.clonePosition();
|
|
3193
3245
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3194
|
-
return this.error(
|
|
3246
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3195
3247
|
if (this.char() === 125)
|
|
3196
|
-
return this.bump(), this.error(
|
|
3248
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
3197
3249
|
var i = this.parseIdentifierIfPossible().value;
|
|
3198
3250
|
if (!i)
|
|
3199
|
-
return this.error(
|
|
3251
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3200
3252
|
if (this.bumpSpace(), this.isEOF())
|
|
3201
|
-
return this.error(
|
|
3253
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
3202
3254
|
switch (this.char()) {
|
|
3203
3255
|
case 125:
|
|
3204
3256
|
return this.bump(), {
|
|
@@ -3206,25 +3258,25 @@ var Rn = (
|
|
|
3206
3258
|
type: _.argument,
|
|
3207
3259
|
// value does not include the opening and closing braces.
|
|
3208
3260
|
value: i,
|
|
3209
|
-
location:
|
|
3261
|
+
location: b(n, this.clonePosition())
|
|
3210
3262
|
},
|
|
3211
3263
|
err: null
|
|
3212
3264
|
};
|
|
3213
3265
|
case 44:
|
|
3214
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3266
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3215
3267
|
default:
|
|
3216
|
-
return this.error(
|
|
3268
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3217
3269
|
}
|
|
3218
3270
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3219
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3271
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
3220
3272
|
this.bumpTo(i);
|
|
3221
|
-
var o = this.clonePosition(), s =
|
|
3273
|
+
var o = this.clonePosition(), s = b(t, o);
|
|
3222
3274
|
return { value: n, location: s };
|
|
3223
3275
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3224
3276
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3225
3277
|
switch (a) {
|
|
3226
3278
|
case "":
|
|
3227
|
-
return this.error(
|
|
3279
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(s, h));
|
|
3228
3280
|
case "number":
|
|
3229
3281
|
case "date":
|
|
3230
3282
|
case "time": {
|
|
@@ -3235,18 +3287,18 @@ var Rn = (
|
|
|
3235
3287
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3236
3288
|
if (f.err)
|
|
3237
3289
|
return f;
|
|
3238
|
-
var c =
|
|
3290
|
+
var c = Gn(f.val);
|
|
3239
3291
|
if (c.length === 0)
|
|
3240
|
-
return this.error(
|
|
3241
|
-
var p =
|
|
3292
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3293
|
+
var p = b(l, this.clonePosition());
|
|
3242
3294
|
u = { style: c, styleLocation: p };
|
|
3243
3295
|
}
|
|
3244
|
-
var
|
|
3245
|
-
if (
|
|
3246
|
-
return
|
|
3247
|
-
var v =
|
|
3248
|
-
if (u &&
|
|
3249
|
-
var H =
|
|
3296
|
+
var d = this.tryParseArgumentClose(i);
|
|
3297
|
+
if (d.err)
|
|
3298
|
+
return d;
|
|
3299
|
+
var v = b(i, this.clonePosition());
|
|
3300
|
+
if (u && ft(u?.style, "::", 0)) {
|
|
3301
|
+
var H = Dn(u.style.slice(2));
|
|
3250
3302
|
if (a === "number") {
|
|
3251
3303
|
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3252
3304
|
return f.err ? f : {
|
|
@@ -3255,14 +3307,14 @@ var Rn = (
|
|
|
3255
3307
|
};
|
|
3256
3308
|
} else {
|
|
3257
3309
|
if (H.length === 0)
|
|
3258
|
-
return this.error(
|
|
3310
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
|
|
3259
3311
|
var C = H;
|
|
3260
|
-
this.locale && (C =
|
|
3312
|
+
this.locale && (C = Bn(H, this.locale));
|
|
3261
3313
|
var c = {
|
|
3262
3314
|
type: X.dateTime,
|
|
3263
3315
|
pattern: C,
|
|
3264
3316
|
location: u.styleLocation,
|
|
3265
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3317
|
+
parsedOptions: this.shouldParseSkeletons ? vn(C) : {}
|
|
3266
3318
|
}, L = a === "date" ? _.date : _.time;
|
|
3267
3319
|
return {
|
|
3268
3320
|
val: { type: L, value: n, location: v, style: c },
|
|
@@ -3283,16 +3335,16 @@ var Rn = (
|
|
|
3283
3335
|
case "plural":
|
|
3284
3336
|
case "selectordinal":
|
|
3285
3337
|
case "select": {
|
|
3286
|
-
var
|
|
3338
|
+
var x = this.clonePosition();
|
|
3287
3339
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3288
|
-
return this.error(
|
|
3340
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, g({}, x)));
|
|
3289
3341
|
this.bumpSpace();
|
|
3290
3342
|
var $ = this.parseIdentifierIfPossible(), w = 0;
|
|
3291
3343
|
if (a !== "select" && $.value === "offset") {
|
|
3292
3344
|
if (!this.bumpIf(":"))
|
|
3293
|
-
return this.error(
|
|
3345
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3294
3346
|
this.bumpSpace();
|
|
3295
|
-
var f = this.tryParseDecimalInteger(
|
|
3347
|
+
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3296
3348
|
if (f.err)
|
|
3297
3349
|
return f;
|
|
3298
3350
|
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), w = f.val;
|
|
@@ -3300,15 +3352,15 @@ var Rn = (
|
|
|
3300
3352
|
var U = this.tryParsePluralOrSelectOptions(t, a, r, $);
|
|
3301
3353
|
if (U.err)
|
|
3302
3354
|
return U;
|
|
3303
|
-
var
|
|
3304
|
-
if (
|
|
3305
|
-
return
|
|
3306
|
-
var ae =
|
|
3355
|
+
var d = this.tryParseArgumentClose(i);
|
|
3356
|
+
if (d.err)
|
|
3357
|
+
return d;
|
|
3358
|
+
var ae = b(i, this.clonePosition());
|
|
3307
3359
|
return a === "select" ? {
|
|
3308
3360
|
val: {
|
|
3309
3361
|
type: _.select,
|
|
3310
3362
|
value: n,
|
|
3311
|
-
options:
|
|
3363
|
+
options: pt(U.val),
|
|
3312
3364
|
location: ae
|
|
3313
3365
|
},
|
|
3314
3366
|
err: null
|
|
@@ -3316,7 +3368,7 @@ var Rn = (
|
|
|
3316
3368
|
val: {
|
|
3317
3369
|
type: _.plural,
|
|
3318
3370
|
value: n,
|
|
3319
|
-
options:
|
|
3371
|
+
options: pt(U.val),
|
|
3320
3372
|
offset: w,
|
|
3321
3373
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3322
3374
|
location: ae
|
|
@@ -3325,10 +3377,10 @@ var Rn = (
|
|
|
3325
3377
|
};
|
|
3326
3378
|
}
|
|
3327
3379
|
default:
|
|
3328
|
-
return this.error(
|
|
3380
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(s, h));
|
|
3329
3381
|
}
|
|
3330
3382
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3331
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3383
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3332
3384
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3333
3385
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3334
3386
|
var n = this.char();
|
|
@@ -3337,7 +3389,7 @@ var Rn = (
|
|
|
3337
3389
|
this.bump();
|
|
3338
3390
|
var i = this.clonePosition();
|
|
3339
3391
|
if (!this.bumpUntil("'"))
|
|
3340
|
-
return this.error(
|
|
3392
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
3341
3393
|
this.bump();
|
|
3342
3394
|
break;
|
|
3343
3395
|
}
|
|
@@ -3367,16 +3419,16 @@ var Rn = (
|
|
|
3367
3419
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3368
3420
|
var n = [];
|
|
3369
3421
|
try {
|
|
3370
|
-
n =
|
|
3422
|
+
n = En(t);
|
|
3371
3423
|
} catch {
|
|
3372
|
-
return this.error(
|
|
3424
|
+
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3373
3425
|
}
|
|
3374
3426
|
return {
|
|
3375
3427
|
val: {
|
|
3376
3428
|
type: X.number,
|
|
3377
3429
|
tokens: n,
|
|
3378
3430
|
location: r,
|
|
3379
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3431
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(n) : {}
|
|
3380
3432
|
},
|
|
3381
3433
|
err: null
|
|
3382
3434
|
};
|
|
@@ -3385,34 +3437,34 @@ var Rn = (
|
|
|
3385
3437
|
if (u.length === 0) {
|
|
3386
3438
|
var f = this.clonePosition();
|
|
3387
3439
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3388
|
-
var c = this.tryParseDecimalInteger(
|
|
3440
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3389
3441
|
if (c.err)
|
|
3390
3442
|
return c;
|
|
3391
|
-
l =
|
|
3443
|
+
l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3392
3444
|
} else
|
|
3393
3445
|
break;
|
|
3394
3446
|
}
|
|
3395
3447
|
if (h.has(u))
|
|
3396
|
-
return this.error(r === "select" ?
|
|
3448
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3397
3449
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3398
3450
|
var p = this.clonePosition();
|
|
3399
3451
|
if (!this.bumpIf("{"))
|
|
3400
|
-
return this.error(r === "select" ?
|
|
3401
|
-
var
|
|
3402
|
-
if (
|
|
3403
|
-
return
|
|
3452
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3453
|
+
var d = this.parseMessage(t + 1, r, n);
|
|
3454
|
+
if (d.err)
|
|
3455
|
+
return d;
|
|
3404
3456
|
var v = this.tryParseArgumentClose(p);
|
|
3405
3457
|
if (v.err)
|
|
3406
3458
|
return v;
|
|
3407
3459
|
a.push([
|
|
3408
3460
|
u,
|
|
3409
3461
|
{
|
|
3410
|
-
value:
|
|
3411
|
-
location:
|
|
3462
|
+
value: d.val,
|
|
3463
|
+
location: b(p, this.clonePosition())
|
|
3412
3464
|
}
|
|
3413
3465
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3414
3466
|
}
|
|
3415
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3467
|
+
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3416
3468
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3417
3469
|
var n = 1, i = this.clonePosition();
|
|
3418
3470
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3423,8 +3475,8 @@ var Rn = (
|
|
|
3423
3475
|
else
|
|
3424
3476
|
break;
|
|
3425
3477
|
}
|
|
3426
|
-
var h =
|
|
3427
|
-
return o ? (s *= n,
|
|
3478
|
+
var h = b(i, this.clonePosition());
|
|
3479
|
+
return o ? (s *= n, Rn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3428
3480
|
}, e.prototype.offset = function() {
|
|
3429
3481
|
return this.position.offset;
|
|
3430
3482
|
}, e.prototype.isEOF = function() {
|
|
@@ -3439,7 +3491,7 @@ var Rn = (
|
|
|
3439
3491
|
var t = this.position.offset;
|
|
3440
3492
|
if (t >= this.message.length)
|
|
3441
3493
|
throw Error("out of bound");
|
|
3442
|
-
var r =
|
|
3494
|
+
var r = Jt(this.message, t);
|
|
3443
3495
|
if (r === void 0)
|
|
3444
3496
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3445
3497
|
return r;
|
|
@@ -3458,7 +3510,7 @@ var Rn = (
|
|
|
3458
3510
|
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);
|
|
3459
3511
|
}
|
|
3460
3512
|
}, e.prototype.bumpIf = function(t) {
|
|
3461
|
-
if (
|
|
3513
|
+
if (ft(this.message, t, this.offset())) {
|
|
3462
3514
|
for (var r = 0; r < t.length; r++)
|
|
3463
3515
|
this.bump();
|
|
3464
3516
|
return !0;
|
|
@@ -3480,7 +3532,7 @@ var Rn = (
|
|
|
3480
3532
|
break;
|
|
3481
3533
|
}
|
|
3482
3534
|
}, e.prototype.bumpSpace = function() {
|
|
3483
|
-
for (; !this.isEOF() &&
|
|
3535
|
+
for (; !this.isEOF() && qt(this.char()); )
|
|
3484
3536
|
this.bump();
|
|
3485
3537
|
}, e.prototype.peek = function() {
|
|
3486
3538
|
if (this.isEOF())
|
|
@@ -3490,37 +3542,38 @@ var Rn = (
|
|
|
3490
3542
|
}, e;
|
|
3491
3543
|
}()
|
|
3492
3544
|
);
|
|
3493
|
-
function
|
|
3545
|
+
function ke(e) {
|
|
3494
3546
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3495
3547
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return
|
|
3548
|
+
function jn(e) {
|
|
3549
|
+
return ke(e) || e === 47;
|
|
3498
3550
|
}
|
|
3499
|
-
function
|
|
3551
|
+
function kn(e) {
|
|
3500
3552
|
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;
|
|
3501
3553
|
}
|
|
3502
|
-
function
|
|
3554
|
+
function qt(e) {
|
|
3503
3555
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3504
3556
|
}
|
|
3505
|
-
function
|
|
3557
|
+
function Vn(e) {
|
|
3506
3558
|
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;
|
|
3507
3559
|
}
|
|
3508
|
-
function
|
|
3560
|
+
function Ve(e) {
|
|
3509
3561
|
e.forEach(function(t) {
|
|
3510
|
-
if (delete t.location,
|
|
3562
|
+
if (delete t.location, jt(t) || kt(t))
|
|
3511
3563
|
for (var r in t.options)
|
|
3512
|
-
delete t.options[r].location,
|
|
3513
|
-
else
|
|
3564
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3565
|
+
else
|
|
3566
|
+
Dt(t) && Xt(t.style) || (Gt(t) || Ft(t)) && De(t.style) ? delete t.style.location : Vt(t) && Ve(t.children);
|
|
3514
3567
|
});
|
|
3515
3568
|
}
|
|
3516
|
-
function
|
|
3569
|
+
function Xn(e, t) {
|
|
3517
3570
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3518
|
-
var r = new
|
|
3571
|
+
var r = new Fn(e, t).parse();
|
|
3519
3572
|
if (r.err) {
|
|
3520
|
-
var n = SyntaxError(
|
|
3573
|
+
var n = SyntaxError(m[r.err.kind]);
|
|
3521
3574
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3522
3575
|
}
|
|
3523
|
-
return t?.captureLocation ||
|
|
3576
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3524
3577
|
}
|
|
3525
3578
|
var W;
|
|
3526
3579
|
(function(e) {
|
|
@@ -3538,7 +3591,7 @@ var ve = (
|
|
|
3538
3591
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3539
3592
|
}, t;
|
|
3540
3593
|
}(Error)
|
|
3541
|
-
),
|
|
3594
|
+
), mt = (
|
|
3542
3595
|
/** @class */
|
|
3543
3596
|
function(e) {
|
|
3544
3597
|
I(t, e);
|
|
@@ -3547,7 +3600,7 @@ var ve = (
|
|
|
3547
3600
|
}
|
|
3548
3601
|
return t;
|
|
3549
3602
|
}(ve)
|
|
3550
|
-
),
|
|
3603
|
+
), Wn = (
|
|
3551
3604
|
/** @class */
|
|
3552
3605
|
function(e) {
|
|
3553
3606
|
I(t, e);
|
|
@@ -3556,7 +3609,7 @@ var ve = (
|
|
|
3556
3609
|
}
|
|
3557
3610
|
return t;
|
|
3558
3611
|
}(ve)
|
|
3559
|
-
),
|
|
3612
|
+
), zn = (
|
|
3560
3613
|
/** @class */
|
|
3561
3614
|
function(e) {
|
|
3562
3615
|
I(t, e);
|
|
@@ -3565,128 +3618,128 @@ var ve = (
|
|
|
3565
3618
|
}
|
|
3566
3619
|
return t;
|
|
3567
3620
|
}(ve)
|
|
3568
|
-
),
|
|
3621
|
+
), E;
|
|
3569
3622
|
(function(e) {
|
|
3570
3623
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3571
|
-
})(
|
|
3572
|
-
function
|
|
3624
|
+
})(E || (E = {}));
|
|
3625
|
+
function Zn(e) {
|
|
3573
3626
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3574
3627
|
var n = t[t.length - 1];
|
|
3575
|
-
return !n || n.type !==
|
|
3628
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3576
3629
|
}, []);
|
|
3577
3630
|
}
|
|
3578
|
-
function
|
|
3631
|
+
function Qn(e) {
|
|
3579
3632
|
return typeof e == "function";
|
|
3580
3633
|
}
|
|
3581
3634
|
function fe(e, t, r, n, i, o, s) {
|
|
3582
|
-
if (e.length === 1 &&
|
|
3635
|
+
if (e.length === 1 && ut(e[0]))
|
|
3583
3636
|
return [
|
|
3584
3637
|
{
|
|
3585
|
-
type:
|
|
3638
|
+
type: E.literal,
|
|
3586
3639
|
value: e[0].value
|
|
3587
3640
|
}
|
|
3588
3641
|
];
|
|
3589
3642
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3590
3643
|
var l = u[h];
|
|
3591
|
-
if (
|
|
3644
|
+
if (ut(l)) {
|
|
3592
3645
|
a.push({
|
|
3593
|
-
type:
|
|
3646
|
+
type: E.literal,
|
|
3594
3647
|
value: l.value
|
|
3595
3648
|
});
|
|
3596
3649
|
continue;
|
|
3597
3650
|
}
|
|
3598
|
-
if (
|
|
3651
|
+
if (gn(l)) {
|
|
3599
3652
|
typeof o == "number" && a.push({
|
|
3600
|
-
type:
|
|
3653
|
+
type: E.literal,
|
|
3601
3654
|
value: r.getNumberFormat(t).format(o)
|
|
3602
3655
|
});
|
|
3603
3656
|
continue;
|
|
3604
3657
|
}
|
|
3605
3658
|
var f = l.value;
|
|
3606
3659
|
if (!(i && f in i))
|
|
3607
|
-
throw new
|
|
3660
|
+
throw new zn(f, s);
|
|
3608
3661
|
var c = i[f];
|
|
3609
|
-
if (
|
|
3662
|
+
if (bn(l)) {
|
|
3610
3663
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3611
|
-
type: typeof c == "string" ?
|
|
3664
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3612
3665
|
value: c
|
|
3613
3666
|
});
|
|
3614
3667
|
continue;
|
|
3615
3668
|
}
|
|
3616
|
-
if (
|
|
3617
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3669
|
+
if (Gt(l)) {
|
|
3670
|
+
var p = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3618
3671
|
a.push({
|
|
3619
|
-
type:
|
|
3672
|
+
type: E.literal,
|
|
3620
3673
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3621
3674
|
});
|
|
3622
3675
|
continue;
|
|
3623
3676
|
}
|
|
3624
|
-
if (
|
|
3625
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3677
|
+
if (Ft(l)) {
|
|
3678
|
+
var p = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3626
3679
|
a.push({
|
|
3627
|
-
type:
|
|
3680
|
+
type: E.literal,
|
|
3628
3681
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3629
3682
|
});
|
|
3630
3683
|
continue;
|
|
3631
3684
|
}
|
|
3632
|
-
if (
|
|
3633
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3685
|
+
if (Dt(l)) {
|
|
3686
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Xt(l.style) ? l.style.parsedOptions : void 0;
|
|
3634
3687
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3635
|
-
type:
|
|
3688
|
+
type: E.literal,
|
|
3636
3689
|
value: r.getNumberFormat(t, p).format(c)
|
|
3637
3690
|
});
|
|
3638
3691
|
continue;
|
|
3639
3692
|
}
|
|
3640
|
-
if (
|
|
3641
|
-
var
|
|
3642
|
-
if (!
|
|
3643
|
-
throw new
|
|
3644
|
-
var C = fe(
|
|
3693
|
+
if (Vt(l)) {
|
|
3694
|
+
var d = l.children, v = l.value, H = i[v];
|
|
3695
|
+
if (!Qn(H))
|
|
3696
|
+
throw new Wn(v, "function", s);
|
|
3697
|
+
var C = fe(d, t, r, n, i, o), L = H(C.map(function(w) {
|
|
3645
3698
|
return w.value;
|
|
3646
3699
|
}));
|
|
3647
3700
|
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(w) {
|
|
3648
3701
|
return {
|
|
3649
|
-
type: typeof w == "string" ?
|
|
3702
|
+
type: typeof w == "string" ? E.literal : E.object,
|
|
3650
3703
|
value: w
|
|
3651
3704
|
};
|
|
3652
3705
|
}));
|
|
3653
3706
|
}
|
|
3654
|
-
if (
|
|
3655
|
-
var
|
|
3656
|
-
if (!
|
|
3657
|
-
throw new
|
|
3658
|
-
a.push.apply(a, fe(
|
|
3707
|
+
if (jt(l)) {
|
|
3708
|
+
var x = l.options[c] || l.options.other;
|
|
3709
|
+
if (!x)
|
|
3710
|
+
throw new mt(l.value, c, Object.keys(l.options), s);
|
|
3711
|
+
a.push.apply(a, fe(x.value, t, r, n, i));
|
|
3659
3712
|
continue;
|
|
3660
3713
|
}
|
|
3661
|
-
if (
|
|
3662
|
-
var
|
|
3663
|
-
if (!
|
|
3714
|
+
if (kt(l)) {
|
|
3715
|
+
var x = l.options["=".concat(c)];
|
|
3716
|
+
if (!x) {
|
|
3664
3717
|
if (!Intl.PluralRules)
|
|
3665
3718
|
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3666
3719
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3667
3720
|
`, W.MISSING_INTL_API, s);
|
|
3668
3721
|
var $ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3669
|
-
|
|
3722
|
+
x = l.options[$] || l.options.other;
|
|
3670
3723
|
}
|
|
3671
|
-
if (!
|
|
3672
|
-
throw new
|
|
3673
|
-
a.push.apply(a, fe(
|
|
3724
|
+
if (!x)
|
|
3725
|
+
throw new mt(l.value, c, Object.keys(l.options), s);
|
|
3726
|
+
a.push.apply(a, fe(x.value, t, r, n, i, c - (l.offset || 0)));
|
|
3674
3727
|
continue;
|
|
3675
3728
|
}
|
|
3676
3729
|
}
|
|
3677
|
-
return
|
|
3730
|
+
return Zn(a);
|
|
3678
3731
|
}
|
|
3679
|
-
function
|
|
3732
|
+
function Jn(e, t) {
|
|
3680
3733
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3681
3734
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3682
3735
|
}, {})) : e;
|
|
3683
3736
|
}
|
|
3684
|
-
function
|
|
3737
|
+
function Yn(e, t) {
|
|
3685
3738
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3686
|
-
return r[n] =
|
|
3739
|
+
return r[n] = Jn(e[n], t[n]), r;
|
|
3687
3740
|
}, g({}, e)) : e;
|
|
3688
3741
|
}
|
|
3689
|
-
function
|
|
3742
|
+
function Pe(e) {
|
|
3690
3743
|
return {
|
|
3691
3744
|
create: function() {
|
|
3692
3745
|
return {
|
|
@@ -3700,39 +3753,39 @@ function we(e) {
|
|
|
3700
3753
|
}
|
|
3701
3754
|
};
|
|
3702
3755
|
}
|
|
3703
|
-
function
|
|
3756
|
+
function qn(e) {
|
|
3704
3757
|
return e === void 0 && (e = {
|
|
3705
3758
|
number: {},
|
|
3706
3759
|
dateTime: {},
|
|
3707
3760
|
pluralRules: {}
|
|
3708
3761
|
}), {
|
|
3709
|
-
getNumberFormat:
|
|
3762
|
+
getNumberFormat: Be(function() {
|
|
3710
3763
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3711
3764
|
r[n] = arguments[n];
|
|
3712
3765
|
return new ((t = Intl.NumberFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3713
3766
|
}, {
|
|
3714
|
-
cache:
|
|
3715
|
-
strategy:
|
|
3767
|
+
cache: Pe(e.number),
|
|
3768
|
+
strategy: Ae.variadic
|
|
3716
3769
|
}),
|
|
3717
|
-
getDateTimeFormat:
|
|
3770
|
+
getDateTimeFormat: Be(function() {
|
|
3718
3771
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3719
3772
|
r[n] = arguments[n];
|
|
3720
3773
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, k([void 0], r, !1)))();
|
|
3721
3774
|
}, {
|
|
3722
|
-
cache:
|
|
3723
|
-
strategy:
|
|
3775
|
+
cache: Pe(e.dateTime),
|
|
3776
|
+
strategy: Ae.variadic
|
|
3724
3777
|
}),
|
|
3725
|
-
getPluralRules:
|
|
3778
|
+
getPluralRules: Be(function() {
|
|
3726
3779
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3727
3780
|
r[n] = arguments[n];
|
|
3728
3781
|
return new ((t = Intl.PluralRules).bind.apply(t, k([void 0], r, !1)))();
|
|
3729
3782
|
}, {
|
|
3730
|
-
cache:
|
|
3731
|
-
strategy:
|
|
3783
|
+
cache: Pe(e.pluralRules),
|
|
3784
|
+
strategy: Ae.variadic
|
|
3732
3785
|
})
|
|
3733
3786
|
};
|
|
3734
3787
|
}
|
|
3735
|
-
var
|
|
3788
|
+
var Kn = (
|
|
3736
3789
|
/** @class */
|
|
3737
3790
|
function() {
|
|
3738
3791
|
function e(t, r, n, i) {
|
|
@@ -3747,7 +3800,7 @@ var Qn = (
|
|
|
3747
3800
|
if (u.length === 1)
|
|
3748
3801
|
return u[0].value;
|
|
3749
3802
|
var l = u.reduce(function(f, c) {
|
|
3750
|
-
return !f.length || c.type !==
|
|
3803
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3751
3804
|
}, []);
|
|
3752
3805
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3753
3806
|
}, this.formatToParts = function(h) {
|
|
@@ -3764,13 +3817,13 @@ var Qn = (
|
|
|
3764
3817
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3765
3818
|
var s = i || {};
|
|
3766
3819
|
s.formatters;
|
|
3767
|
-
var a =
|
|
3820
|
+
var a = Ir(s, ["formatters"]);
|
|
3768
3821
|
this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
|
|
3769
3822
|
} else
|
|
3770
3823
|
this.ast = t;
|
|
3771
3824
|
if (!Array.isArray(this.ast))
|
|
3772
3825
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3773
|
-
this.formats =
|
|
3826
|
+
this.formats = Yn(e.formats, n), this.formatters = i && i.formatters || qn(this.formatterCache);
|
|
3774
3827
|
}
|
|
3775
3828
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3776
3829
|
get: function() {
|
|
@@ -3783,7 +3836,7 @@ var Qn = (
|
|
|
3783
3836
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3784
3837
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3785
3838
|
}
|
|
3786
|
-
}, e.__parse =
|
|
3839
|
+
}, e.__parse = Xn, e.formats = {
|
|
3787
3840
|
number: {
|
|
3788
3841
|
integer: {
|
|
3789
3842
|
maximumFractionDigits: 0
|
|
@@ -3844,7 +3897,7 @@ var Qn = (
|
|
|
3844
3897
|
}, e;
|
|
3845
3898
|
}()
|
|
3846
3899
|
);
|
|
3847
|
-
function
|
|
3900
|
+
function ei(e, t) {
|
|
3848
3901
|
if (t == null)
|
|
3849
3902
|
return;
|
|
3850
3903
|
if (t in e)
|
|
@@ -3865,92 +3918,92 @@ function Jn(e, t) {
|
|
|
3865
3918
|
n = void 0;
|
|
3866
3919
|
return n;
|
|
3867
3920
|
}
|
|
3868
|
-
const M = {},
|
|
3921
|
+
const M = {}, ti = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), Kt = (e, t) => {
|
|
3869
3922
|
if (t == null)
|
|
3870
3923
|
return;
|
|
3871
3924
|
if (t in M && e in M[t])
|
|
3872
3925
|
return M[t][e];
|
|
3873
3926
|
const r = _e(t);
|
|
3874
3927
|
for (let n = 0; n < r.length; n++) {
|
|
3875
|
-
const i = r[n], o =
|
|
3928
|
+
const i = r[n], o = ni(i, e);
|
|
3876
3929
|
if (o)
|
|
3877
|
-
return
|
|
3930
|
+
return ti(e, t, o);
|
|
3878
3931
|
}
|
|
3879
3932
|
};
|
|
3880
|
-
let
|
|
3933
|
+
let Je;
|
|
3881
3934
|
const se = ye({});
|
|
3882
|
-
function
|
|
3883
|
-
return
|
|
3935
|
+
function ri(e) {
|
|
3936
|
+
return Je[e] || null;
|
|
3884
3937
|
}
|
|
3885
|
-
function
|
|
3886
|
-
return e in
|
|
3938
|
+
function er(e) {
|
|
3939
|
+
return e in Je;
|
|
3887
3940
|
}
|
|
3888
|
-
function
|
|
3889
|
-
if (!
|
|
3941
|
+
function ni(e, t) {
|
|
3942
|
+
if (!er(e))
|
|
3890
3943
|
return null;
|
|
3891
|
-
const r =
|
|
3892
|
-
return
|
|
3944
|
+
const r = ri(e);
|
|
3945
|
+
return ei(r, t);
|
|
3893
3946
|
}
|
|
3894
|
-
function
|
|
3947
|
+
function ii(e) {
|
|
3895
3948
|
if (e == null)
|
|
3896
3949
|
return;
|
|
3897
3950
|
const t = _e(e);
|
|
3898
3951
|
for (let r = 0; r < t.length; r++) {
|
|
3899
3952
|
const n = t[r];
|
|
3900
|
-
if (
|
|
3953
|
+
if (er(n))
|
|
3901
3954
|
return n;
|
|
3902
3955
|
}
|
|
3903
3956
|
}
|
|
3904
|
-
function
|
|
3905
|
-
delete M[e], se.update((r) => (r[e] =
|
|
3957
|
+
function tr(e, ...t) {
|
|
3958
|
+
delete M[e], se.update((r) => (r[e] = hn.all([r[e] || {}, ...t]), r));
|
|
3906
3959
|
}
|
|
3907
3960
|
Q(
|
|
3908
3961
|
[se],
|
|
3909
3962
|
([e]) => Object.keys(e)
|
|
3910
3963
|
);
|
|
3911
|
-
se.subscribe((e) =>
|
|
3964
|
+
se.subscribe((e) => Je = e);
|
|
3912
3965
|
const pe = {};
|
|
3913
|
-
function
|
|
3966
|
+
function oi(e, t) {
|
|
3914
3967
|
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3915
3968
|
}
|
|
3916
|
-
function
|
|
3969
|
+
function rr(e) {
|
|
3917
3970
|
return pe[e];
|
|
3918
3971
|
}
|
|
3919
|
-
function
|
|
3972
|
+
function si(e) {
|
|
3920
3973
|
return _e(e).map((t) => {
|
|
3921
|
-
const r =
|
|
3974
|
+
const r = rr(t);
|
|
3922
3975
|
return [t, r ? [...r] : []];
|
|
3923
3976
|
}).filter(([, t]) => t.length > 0);
|
|
3924
3977
|
}
|
|
3925
|
-
function
|
|
3978
|
+
function Xe(e) {
|
|
3926
3979
|
return e == null ? !1 : _e(e).some(
|
|
3927
3980
|
(t) => {
|
|
3928
3981
|
var r;
|
|
3929
|
-
return (r =
|
|
3982
|
+
return (r = rr(t)) == null ? void 0 : r.size;
|
|
3930
3983
|
}
|
|
3931
3984
|
);
|
|
3932
3985
|
}
|
|
3933
|
-
function
|
|
3986
|
+
function ai(e, t) {
|
|
3934
3987
|
return Promise.all(
|
|
3935
|
-
t.map((n) => (
|
|
3936
|
-
).then((n) =>
|
|
3988
|
+
t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
|
|
3989
|
+
).then((n) => tr(e, ...n));
|
|
3937
3990
|
}
|
|
3938
3991
|
const K = {};
|
|
3939
|
-
function
|
|
3940
|
-
if (!
|
|
3992
|
+
function nr(e) {
|
|
3993
|
+
if (!Xe(e))
|
|
3941
3994
|
return e in K ? K[e] : Promise.resolve();
|
|
3942
|
-
const t =
|
|
3995
|
+
const t = si(e);
|
|
3943
3996
|
return K[e] = Promise.all(
|
|
3944
3997
|
t.map(
|
|
3945
|
-
([r, n]) =>
|
|
3998
|
+
([r, n]) => ai(r, n)
|
|
3946
3999
|
)
|
|
3947
4000
|
).then(() => {
|
|
3948
|
-
if (
|
|
3949
|
-
return
|
|
4001
|
+
if (Xe(e))
|
|
4002
|
+
return nr(e);
|
|
3950
4003
|
delete K[e];
|
|
3951
4004
|
}), K[e];
|
|
3952
4005
|
}
|
|
3953
|
-
const
|
|
4006
|
+
const ui = {
|
|
3954
4007
|
number: {
|
|
3955
4008
|
scientific: { notation: "scientific" },
|
|
3956
4009
|
engineering: { notation: "engineering" },
|
|
@@ -3979,78 +4032,78 @@ const ii = {
|
|
|
3979
4032
|
timeZoneName: "short"
|
|
3980
4033
|
}
|
|
3981
4034
|
}
|
|
3982
|
-
},
|
|
4035
|
+
}, hi = {
|
|
3983
4036
|
fallbackLocale: null,
|
|
3984
4037
|
loadingDelay: 200,
|
|
3985
|
-
formats:
|
|
4038
|
+
formats: ui,
|
|
3986
4039
|
warnOnMissingMessages: !0,
|
|
3987
4040
|
handleMissingMessage: void 0,
|
|
3988
4041
|
ignoreTag: !0
|
|
3989
|
-
},
|
|
4042
|
+
}, li = hi;
|
|
3990
4043
|
function z() {
|
|
3991
|
-
return
|
|
4044
|
+
return li;
|
|
3992
4045
|
}
|
|
3993
|
-
const
|
|
3994
|
-
var
|
|
4046
|
+
const Oe = ye(!1);
|
|
4047
|
+
var ci = Object.defineProperty, fi = Object.defineProperties, pi = Object.getOwnPropertyDescriptors, bt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, mi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
|
|
3995
4048
|
for (var r in t || (t = {}))
|
|
3996
|
-
|
|
3997
|
-
if (
|
|
3998
|
-
for (var r of
|
|
3999
|
-
|
|
4049
|
+
di.call(t, r) && gt(e, r, t[r]);
|
|
4050
|
+
if (bt)
|
|
4051
|
+
for (var r of bt(t))
|
|
4052
|
+
mi.call(t, r) && gt(e, r, t[r]);
|
|
4000
4053
|
return e;
|
|
4001
|
-
},
|
|
4002
|
-
let
|
|
4054
|
+
}, gi = (e, t) => fi(e, pi(t));
|
|
4055
|
+
let We;
|
|
4003
4056
|
const de = ye(null);
|
|
4004
|
-
function
|
|
4057
|
+
function yt(e) {
|
|
4005
4058
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4006
4059
|
}
|
|
4007
4060
|
function _e(e, t = z().fallbackLocale) {
|
|
4008
|
-
const r =
|
|
4009
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4061
|
+
const r = yt(e);
|
|
4062
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
4010
4063
|
}
|
|
4011
4064
|
function R() {
|
|
4012
|
-
return
|
|
4065
|
+
return We ?? void 0;
|
|
4013
4066
|
}
|
|
4014
4067
|
de.subscribe((e) => {
|
|
4015
|
-
|
|
4068
|
+
We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4016
4069
|
});
|
|
4017
|
-
const
|
|
4018
|
-
if (e &&
|
|
4070
|
+
const yi = (e) => {
|
|
4071
|
+
if (e && ii(e) && Xe(e)) {
|
|
4019
4072
|
const { loadingDelay: t } = z();
|
|
4020
4073
|
let r;
|
|
4021
4074
|
return typeof window < "u" && R() != null && t ? r = window.setTimeout(
|
|
4022
|
-
() =>
|
|
4075
|
+
() => Oe.set(!0),
|
|
4023
4076
|
t
|
|
4024
|
-
) :
|
|
4077
|
+
) : Oe.set(!0), nr(e).then(() => {
|
|
4025
4078
|
de.set(e);
|
|
4026
4079
|
}).finally(() => {
|
|
4027
|
-
clearTimeout(r),
|
|
4080
|
+
clearTimeout(r), Oe.set(!1);
|
|
4028
4081
|
});
|
|
4029
4082
|
}
|
|
4030
4083
|
return de.set(e);
|
|
4031
|
-
}, J =
|
|
4032
|
-
set:
|
|
4033
|
-
}),
|
|
4084
|
+
}, J = gi(bi({}, de), {
|
|
4085
|
+
set: yi
|
|
4086
|
+
}), Ee = (e) => {
|
|
4034
4087
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4035
4088
|
return (n) => {
|
|
4036
4089
|
const i = JSON.stringify(n);
|
|
4037
4090
|
return i in t ? t[i] : t[i] = e(n);
|
|
4038
4091
|
};
|
|
4039
4092
|
};
|
|
4040
|
-
var
|
|
4093
|
+
var vi = Object.defineProperty, me = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, vt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
4041
4094
|
for (var r in t || (t = {}))
|
|
4042
|
-
|
|
4095
|
+
ir.call(t, r) && vt(e, r, t[r]);
|
|
4043
4096
|
if (me)
|
|
4044
4097
|
for (var r of me(t))
|
|
4045
|
-
|
|
4098
|
+
or.call(t, r) && vt(e, r, t[r]);
|
|
4046
4099
|
return e;
|
|
4047
4100
|
}, Y = (e, t) => {
|
|
4048
4101
|
var r = {};
|
|
4049
4102
|
for (var n in e)
|
|
4050
|
-
|
|
4103
|
+
ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4051
4104
|
if (e != null && me)
|
|
4052
4105
|
for (var n of me(e))
|
|
4053
|
-
t.indexOf(n) < 0 &&
|
|
4106
|
+
t.indexOf(n) < 0 && or.call(e, n) && (r[n] = e[n]);
|
|
4054
4107
|
return r;
|
|
4055
4108
|
};
|
|
4056
4109
|
const ne = (e, t) => {
|
|
@@ -4058,21 +4111,21 @@ const ne = (e, t) => {
|
|
|
4058
4111
|
if (e in r && t in r[e])
|
|
4059
4112
|
return r[e][t];
|
|
4060
4113
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4061
|
-
},
|
|
4114
|
+
}, _i = Ee(
|
|
4062
4115
|
(e) => {
|
|
4063
4116
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4064
4117
|
if (r == null)
|
|
4065
4118
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4066
4119
|
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4067
4120
|
}
|
|
4068
|
-
),
|
|
4121
|
+
), Ei = Ee(
|
|
4069
4122
|
(e) => {
|
|
4070
4123
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4071
4124
|
if (r == null)
|
|
4072
4125
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4073
4126
|
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4074
4127
|
}
|
|
4075
|
-
),
|
|
4128
|
+
), xi = Ee(
|
|
4076
4129
|
(e) => {
|
|
4077
4130
|
var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
|
|
4078
4131
|
if (r == null)
|
|
@@ -4081,33 +4134,33 @@ const ne = (e, t) => {
|
|
|
4081
4134
|
);
|
|
4082
4135
|
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4083
4136
|
}
|
|
4084
|
-
),
|
|
4137
|
+
), Si = (e = {}) => {
|
|
4085
4138
|
var t = e, {
|
|
4086
4139
|
locale: r = R()
|
|
4087
4140
|
} = t, n = Y(t, [
|
|
4088
4141
|
"locale"
|
|
4089
4142
|
]);
|
|
4090
|
-
return
|
|
4091
|
-
},
|
|
4143
|
+
return _i(Ye({ locale: r }, n));
|
|
4144
|
+
}, Ti = (e = {}) => {
|
|
4092
4145
|
var t = e, {
|
|
4093
4146
|
locale: r = R()
|
|
4094
4147
|
} = t, n = Y(t, [
|
|
4095
4148
|
"locale"
|
|
4096
4149
|
]);
|
|
4097
|
-
return
|
|
4098
|
-
},
|
|
4150
|
+
return Ei(Ye({ locale: r }, n));
|
|
4151
|
+
}, Hi = (e = {}) => {
|
|
4099
4152
|
var t = e, {
|
|
4100
4153
|
locale: r = R()
|
|
4101
4154
|
} = t, n = Y(t, [
|
|
4102
4155
|
"locale"
|
|
4103
4156
|
]);
|
|
4104
|
-
return
|
|
4105
|
-
},
|
|
4157
|
+
return xi(Ye({ locale: r }, n));
|
|
4158
|
+
}, Bi = Ee(
|
|
4106
4159
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4107
|
-
(e, t = R()) => new
|
|
4160
|
+
(e, t = R()) => new Kn(e, t, z().formats, {
|
|
4108
4161
|
ignoreTag: z().ignoreTag
|
|
4109
4162
|
})
|
|
4110
|
-
),
|
|
4163
|
+
), Ai = (e, t = {}) => {
|
|
4111
4164
|
var r, n, i, o;
|
|
4112
4165
|
let s = t;
|
|
4113
4166
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4120,7 +4173,7 @@ const ne = (e, t) => {
|
|
|
4120
4173
|
throw new Error(
|
|
4121
4174
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4122
4175
|
);
|
|
4123
|
-
let l =
|
|
4176
|
+
let l = Kt(e, h);
|
|
4124
4177
|
if (!l)
|
|
4125
4178
|
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;
|
|
4126
4179
|
else if (typeof l != "string")
|
|
@@ -4131,7 +4184,7 @@ const ne = (e, t) => {
|
|
|
4131
4184
|
return l;
|
|
4132
4185
|
let f = l;
|
|
4133
4186
|
try {
|
|
4134
|
-
f =
|
|
4187
|
+
f = Bi(l, h).format(a);
|
|
4135
4188
|
} catch (c) {
|
|
4136
4189
|
c instanceof Error && console.warn(
|
|
4137
4190
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4139,20 +4192,20 @@ const ne = (e, t) => {
|
|
|
4139
4192
|
);
|
|
4140
4193
|
}
|
|
4141
4194
|
return f;
|
|
4142
|
-
},
|
|
4143
|
-
Q([J], () =>
|
|
4144
|
-
Q([J], () =>
|
|
4145
|
-
Q([J], () =>
|
|
4146
|
-
Q([J, se], () =>
|
|
4147
|
-
window.emWidgets = { topic:
|
|
4148
|
-
const
|
|
4149
|
-
function
|
|
4150
|
-
|
|
4151
|
-
}
|
|
4152
|
-
function
|
|
4195
|
+
}, wi = (e, t) => Hi(t).format(e), Pi = (e, t) => Ti(t).format(e), Oi = (e, t) => Si(t).format(e), Ii = (e, t = R()) => Kt(e, t), Li = Q([J, se], () => Ai);
|
|
4196
|
+
Q([J], () => wi);
|
|
4197
|
+
Q([J], () => Pi);
|
|
4198
|
+
Q([J], () => Oi);
|
|
4199
|
+
Q([J, se], () => Ii);
|
|
4200
|
+
window.emWidgets = { topic: Xr };
|
|
4201
|
+
const Ni = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4202
|
+
function _t(e, t) {
|
|
4203
|
+
tr(e, t);
|
|
4204
|
+
}
|
|
4205
|
+
function Mi(e) {
|
|
4153
4206
|
J.set(e);
|
|
4154
4207
|
}
|
|
4155
|
-
const
|
|
4208
|
+
const Et = {
|
|
4156
4209
|
en: {
|
|
4157
4210
|
logoutButton: "Logout"
|
|
4158
4211
|
},
|
|
@@ -4187,19 +4240,33 @@ const yt = {
|
|
|
4187
4240
|
logoutButton: "Logout"
|
|
4188
4241
|
}
|
|
4189
4242
|
};
|
|
4190
|
-
function
|
|
4243
|
+
function xt(e, t) {
|
|
4244
|
+
if (e) {
|
|
4245
|
+
const r = document.createElement("style");
|
|
4246
|
+
r.innerHTML = t, e.appendChild(r);
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
function Ci(e, t) {
|
|
4191
4250
|
const r = new URL(t);
|
|
4192
4251
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4193
4252
|
const i = document.createElement("style");
|
|
4194
|
-
i.innerHTML = n;
|
|
4253
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
4195
4254
|
}).catch((n) => {
|
|
4196
4255
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4197
4256
|
});
|
|
4198
4257
|
}
|
|
4199
|
-
function
|
|
4200
|
-
|
|
4258
|
+
function $i(e, t, r) {
|
|
4259
|
+
if (window.emMessageBus) {
|
|
4260
|
+
const n = document.createElement("style");
|
|
4261
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
4262
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
4263
|
+
});
|
|
4264
|
+
}
|
|
4201
4265
|
}
|
|
4202
|
-
function
|
|
4266
|
+
function Ri(e) {
|
|
4267
|
+
hr(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
|
+
}
|
|
4269
|
+
function Ui(e) {
|
|
4203
4270
|
let t, r, n, i = (
|
|
4204
4271
|
/*$_*/
|
|
4205
4272
|
e[2]("logoutButton") + ""
|
|
@@ -4209,7 +4276,7 @@ function Ni(e) {
|
|
|
4209
4276
|
t = P("div"), r = P("button"), n = P("span"), o = be(i), T(t, "class", "GeneralLogout");
|
|
4210
4277
|
},
|
|
4211
4278
|
m(h, u) {
|
|
4212
|
-
oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a =
|
|
4279
|
+
oe(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Bt(
|
|
4213
4280
|
r,
|
|
4214
4281
|
"click",
|
|
4215
4282
|
/*click_handler_1*/
|
|
@@ -4219,19 +4286,19 @@ function Ni(e) {
|
|
|
4219
4286
|
p(h, u) {
|
|
4220
4287
|
u & /*$_*/
|
|
4221
4288
|
4 && i !== (i = /*$_*/
|
|
4222
|
-
h[2]("logoutButton") + "") &&
|
|
4289
|
+
h[2]("logoutButton") + "") && At(o, i);
|
|
4223
4290
|
},
|
|
4224
4291
|
d(h) {
|
|
4225
4292
|
h && Z(t), s = !1, a();
|
|
4226
4293
|
}
|
|
4227
4294
|
};
|
|
4228
4295
|
}
|
|
4229
|
-
function
|
|
4296
|
+
function Di(e) {
|
|
4230
4297
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4231
|
-
e[3] &&
|
|
4298
|
+
e[3] && Gi(e);
|
|
4232
4299
|
return {
|
|
4233
4300
|
c() {
|
|
4234
|
-
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 =
|
|
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 = fr(), 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"), dr(r, "width", /*isMobile*/
|
|
4235
4302
|
e[3] ? (
|
|
4236
4303
|
/*mediaQuery*/
|
|
4237
4304
|
e[4].matches ? "50px" : "24px"
|
|
@@ -4240,24 +4307,24 @@ function Mi(e) {
|
|
|
4240
4307
|
(e[4].matches && /*isMobile*/
|
|
4241
4308
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4242
4309
|
},
|
|
4243
|
-
m(p,
|
|
4244
|
-
oe(p, t,
|
|
4310
|
+
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 = Bt(
|
|
4245
4312
|
t,
|
|
4246
4313
|
"click",
|
|
4247
4314
|
/*click_handler*/
|
|
4248
4315
|
e[13]
|
|
4249
4316
|
), l = !0);
|
|
4250
4317
|
},
|
|
4251
|
-
p(p,
|
|
4318
|
+
p(p, d) {
|
|
4252
4319
|
/*isMobile*/
|
|
4253
|
-
p[3] || c.p(p,
|
|
4320
|
+
p[3] || c.p(p, d);
|
|
4254
4321
|
},
|
|
4255
4322
|
d(p) {
|
|
4256
4323
|
p && Z(t), c && c.d(), l = !1, f();
|
|
4257
4324
|
}
|
|
4258
4325
|
};
|
|
4259
4326
|
}
|
|
4260
|
-
function
|
|
4327
|
+
function Gi(e) {
|
|
4261
4328
|
let t, r = (
|
|
4262
4329
|
/*$_*/
|
|
4263
4330
|
e[2]("logoutButton") + ""
|
|
@@ -4272,19 +4339,19 @@ function Ci(e) {
|
|
|
4272
4339
|
p(i, o) {
|
|
4273
4340
|
o & /*$_*/
|
|
4274
4341
|
4 && r !== (r = /*$_*/
|
|
4275
|
-
i[2]("logoutButton") + "") &&
|
|
4342
|
+
i[2]("logoutButton") + "") && At(n, r);
|
|
4276
4343
|
},
|
|
4277
4344
|
d(i) {
|
|
4278
4345
|
i && Z(t);
|
|
4279
4346
|
}
|
|
4280
4347
|
};
|
|
4281
4348
|
}
|
|
4282
|
-
function
|
|
4349
|
+
function Fi(e) {
|
|
4283
4350
|
let t;
|
|
4284
4351
|
function r(o, s) {
|
|
4285
4352
|
return (
|
|
4286
4353
|
/*buttonlocation*/
|
|
4287
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4354
|
+
o[0] === "PlayerAccountMenu" ? Di : Ui
|
|
4288
4355
|
);
|
|
4289
4356
|
}
|
|
4290
4357
|
let n = r(e), i = n(e);
|
|
@@ -4305,38 +4372,38 @@ function $i(e) {
|
|
|
4305
4372
|
}
|
|
4306
4373
|
};
|
|
4307
4374
|
}
|
|
4308
|
-
function
|
|
4375
|
+
function ji(e, t, r) {
|
|
4309
4376
|
let n;
|
|
4310
|
-
|
|
4311
|
-
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,
|
|
4377
|
+
ur(e, Li, (y) => r(2, n = y));
|
|
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 = Ni(v) !== "PC";
|
|
4312
4379
|
const C = window.matchMedia("(min-width: 768px)"), L = () => {
|
|
4313
4380
|
fetch(f).then((N) => N.json()).then((N) => {
|
|
4314
|
-
Object.keys(N).forEach((
|
|
4315
|
-
|
|
4381
|
+
Object.keys(N).forEach((xe) => {
|
|
4382
|
+
_t(xe, N[xe]);
|
|
4316
4383
|
});
|
|
4317
4384
|
}).catch((N) => {
|
|
4318
4385
|
console.log(N);
|
|
4319
4386
|
});
|
|
4320
4387
|
};
|
|
4321
|
-
Object.keys(
|
|
4322
|
-
|
|
4388
|
+
Object.keys(Et).forEach((y) => {
|
|
4389
|
+
_t(y, Et[y]);
|
|
4323
4390
|
});
|
|
4324
|
-
const
|
|
4391
|
+
const x = () => {
|
|
4325
4392
|
let y = new Headers();
|
|
4326
4393
|
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4327
4394
|
let N = { method: "DELETE", headers: y };
|
|
4328
|
-
fetch(`${i}/v1/player/session/player`, N).then((
|
|
4395
|
+
fetch(`${i}/v1/player/session/player`, N).then((xe) => {
|
|
4329
4396
|
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
|
|
4330
4397
|
});
|
|
4331
4398
|
}, $ = () => (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 = () => {
|
|
4332
|
-
|
|
4399
|
+
Mi(a);
|
|
4333
4400
|
};
|
|
4334
|
-
|
|
4401
|
+
gr(() => () => {
|
|
4335
4402
|
});
|
|
4336
|
-
const U = () =>
|
|
4337
|
-
function
|
|
4338
|
-
|
|
4339
|
-
|
|
4403
|
+
const U = () => x(), ae = () => x();
|
|
4404
|
+
function sr(y) {
|
|
4405
|
+
Ie[y ? "unshift" : "push"](() => {
|
|
4406
|
+
d = y, r(1, d);
|
|
4340
4407
|
});
|
|
4341
4408
|
}
|
|
4342
4409
|
return e.$$set = (y) => {
|
|
@@ -4345,16 +4412,18 @@ function Ri(e, t, r) {
|
|
|
4345
4412
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4346
4413
|
193 && i && o && s && $(), e.$$.dirty & /*lang*/
|
|
4347
4414
|
256 && a && w(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4348
|
-
1026, e.$$.dirty & /*
|
|
4349
|
-
|
|
4415
|
+
1026 && u && d && xt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4416
|
+
1026 && u && d && xt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4417
|
+
2050 && l && d && Ci(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4418
|
+
514 && h && d && $i(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
|
|
4350
4419
|
4096 && f && L();
|
|
4351
4420
|
}, [
|
|
4352
4421
|
s,
|
|
4353
|
-
|
|
4422
|
+
d,
|
|
4354
4423
|
n,
|
|
4355
4424
|
H,
|
|
4356
4425
|
C,
|
|
4357
|
-
|
|
4426
|
+
x,
|
|
4358
4427
|
i,
|
|
4359
4428
|
o,
|
|
4360
4429
|
a,
|
|
@@ -4364,17 +4433,17 @@ function Ri(e, t, r) {
|
|
|
4364
4433
|
f,
|
|
4365
4434
|
U,
|
|
4366
4435
|
ae,
|
|
4367
|
-
|
|
4436
|
+
sr
|
|
4368
4437
|
];
|
|
4369
4438
|
}
|
|
4370
|
-
class
|
|
4439
|
+
class ki extends Pr {
|
|
4371
4440
|
constructor(t) {
|
|
4372
|
-
super(),
|
|
4441
|
+
super(), Ar(
|
|
4373
4442
|
this,
|
|
4374
4443
|
t,
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4444
|
+
ji,
|
|
4445
|
+
Fi,
|
|
4446
|
+
Tt,
|
|
4378
4447
|
{
|
|
4379
4448
|
endpoint: 6,
|
|
4380
4449
|
session: 7,
|
|
@@ -4385,7 +4454,7 @@ class Ui extends Tr {
|
|
|
4385
4454
|
clientstylingurl: 11,
|
|
4386
4455
|
translationurl: 12
|
|
4387
4456
|
},
|
|
4388
|
-
|
|
4457
|
+
Ri
|
|
4389
4458
|
);
|
|
4390
4459
|
}
|
|
4391
4460
|
get endpoint() {
|
|
@@ -4437,7 +4506,7 @@ class Ui extends Tr {
|
|
|
4437
4506
|
this.$$set({ translationurl: t }), A();
|
|
4438
4507
|
}
|
|
4439
4508
|
}
|
|
4440
|
-
|
|
4509
|
+
wr(ki, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4441
4510
|
export {
|
|
4442
|
-
|
|
4511
|
+
ki as G
|
|
4443
4512
|
};
|