@everymatrix/player-account-closure-nd 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountClosureNd-D2CQ3I65.js → PlayerAccountClosureNd-BL603h76.js} +505 -483
- package/components/{PlayerAccountClosureNd-BC6zWpEF.js → PlayerAccountClosureNd-DgbYr_5n.js} +522 -500
- package/components/PlayerAccountClosureNd-DotHJaD2.cjs +5 -0
- package/es2015/player-account-closure-nd.cjs +1 -1
- package/es2015/player-account-closure-nd.js +1 -1
- package/esnext/player-account-closure-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountClosureNd-DkeRs4VQ.cjs +0 -5
package/components/{PlayerAccountClosureNd-D2CQ3I65.js → PlayerAccountClosureNd-BL603h76.js}
RENAMED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function St(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function tt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function ee(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(St);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function qe(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 Bt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return I;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function ur(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Bt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function v(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function lr(e, t, r) {
|
|
37
|
+
const n = cr(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = B("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, hr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function cr(e) {
|
|
44
44
|
if (!e) return document;
|
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -49,7 +49,7 @@ function sr(e) {
|
|
|
49
49
|
t
|
|
50
50
|
) : e.ownerDocument;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function hr(e, t) {
|
|
53
53
|
return v(
|
|
54
54
|
/** @type {Document} */
|
|
55
55
|
e.head || e,
|
|
@@ -80,14 +80,14 @@ function be(e, t, r, n) {
|
|
|
80
80
|
function x(e, t, r) {
|
|
81
81
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function fr(e) {
|
|
84
84
|
return Array.from(e.childNodes);
|
|
85
85
|
}
|
|
86
86
|
function F(e, t) {
|
|
87
87
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
88
88
|
t);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function pr(e) {
|
|
91
91
|
const t = {};
|
|
92
92
|
return e.childNodes.forEach(
|
|
93
93
|
/** @param {Element} node */
|
|
@@ -96,18 +96,18 @@ function lr(e) {
|
|
|
96
96
|
}
|
|
97
97
|
), t;
|
|
98
98
|
}
|
|
99
|
-
let
|
|
99
|
+
let Qe;
|
|
100
100
|
function oe(e) {
|
|
101
|
-
|
|
101
|
+
Qe = e;
|
|
102
102
|
}
|
|
103
|
-
const
|
|
103
|
+
const W = [], Ie = [];
|
|
104
104
|
let Z = [];
|
|
105
|
-
const
|
|
105
|
+
const rt = [], dr = /* @__PURE__ */ Promise.resolve();
|
|
106
106
|
let Ne = !1;
|
|
107
|
-
function
|
|
108
|
-
Ne || (Ne = !0,
|
|
107
|
+
function mr() {
|
|
108
|
+
Ne || (Ne = !0, dr.then(X));
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Le(e) {
|
|
111
111
|
Z.push(e);
|
|
112
112
|
}
|
|
113
113
|
const we = /* @__PURE__ */ new Set();
|
|
@@ -115,67 +115,67 @@ let z = 0;
|
|
|
115
115
|
function X() {
|
|
116
116
|
if (z !== 0)
|
|
117
117
|
return;
|
|
118
|
-
const e =
|
|
118
|
+
const e = Qe;
|
|
119
119
|
do {
|
|
120
120
|
try {
|
|
121
|
-
for (; z <
|
|
122
|
-
const t =
|
|
123
|
-
z++, oe(t),
|
|
121
|
+
for (; z < W.length; ) {
|
|
122
|
+
const t = W[z];
|
|
123
|
+
z++, oe(t), br(t.$$);
|
|
124
124
|
}
|
|
125
125
|
} catch (t) {
|
|
126
|
-
throw
|
|
126
|
+
throw W.length = 0, z = 0, t;
|
|
127
127
|
}
|
|
128
|
-
for (oe(null),
|
|
128
|
+
for (oe(null), W.length = 0, z = 0; Ie.length; ) Ie.pop()();
|
|
129
129
|
for (let t = 0; t < Z.length; t += 1) {
|
|
130
130
|
const r = Z[t];
|
|
131
131
|
we.has(r) || (we.add(r), r());
|
|
132
132
|
}
|
|
133
133
|
Z.length = 0;
|
|
134
|
-
} while (
|
|
135
|
-
for (;
|
|
136
|
-
|
|
134
|
+
} while (W.length);
|
|
135
|
+
for (; rt.length; )
|
|
136
|
+
rt.pop()();
|
|
137
137
|
Ne = !1, we.clear(), oe(e);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function br(e) {
|
|
140
140
|
if (e.fragment !== null) {
|
|
141
141
|
e.update(), ee(e.before_update);
|
|
142
142
|
const t = e.dirty;
|
|
143
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
143
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function vr(e) {
|
|
147
147
|
const t = [], r = [];
|
|
148
148
|
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
149
149
|
}
|
|
150
|
-
const
|
|
151
|
-
function
|
|
152
|
-
e && e.i && (
|
|
150
|
+
const gr = /* @__PURE__ */ new Set();
|
|
151
|
+
function yr(e, t) {
|
|
152
|
+
e && e.i && (gr.delete(e), e.i(t));
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function xr(e, t, r) {
|
|
155
155
|
const { fragment: n, after_update: i } = e.$$;
|
|
156
|
-
n && n.m(t, r),
|
|
157
|
-
const o = e.$$.on_mount.map(
|
|
156
|
+
n && n.m(t, r), Le(() => {
|
|
157
|
+
const o = e.$$.on_mount.map(St).filter(qe);
|
|
158
158
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ee(o), e.$$.on_mount = [];
|
|
159
|
-
}), i.forEach(
|
|
159
|
+
}), i.forEach(Le);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Er(e, t) {
|
|
162
162
|
const r = e.$$;
|
|
163
|
-
r.fragment !== null && (
|
|
163
|
+
r.fragment !== null && (vr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
e.$$.dirty[0] === -1 && (
|
|
165
|
+
function _r(e, t) {
|
|
166
|
+
e.$$.dirty[0] === -1 && (W.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
const l =
|
|
168
|
+
function Cr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
169
|
+
const l = Qe;
|
|
170
170
|
oe(e);
|
|
171
171
|
const u = e.$$ = {
|
|
172
172
|
fragment: null,
|
|
173
173
|
ctx: [],
|
|
174
174
|
// state
|
|
175
175
|
props: o,
|
|
176
|
-
update:
|
|
176
|
+
update: I,
|
|
177
177
|
not_equal: i,
|
|
178
|
-
bound:
|
|
178
|
+
bound: tt(),
|
|
179
179
|
// lifecycle
|
|
180
180
|
on_mount: [],
|
|
181
181
|
on_destroy: [],
|
|
@@ -184,7 +184,7 @@ function yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
184
184
|
after_update: [],
|
|
185
185
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
186
186
|
// everything else
|
|
187
|
-
callbacks:
|
|
187
|
+
callbacks: tt(),
|
|
188
188
|
dirty: a,
|
|
189
189
|
skip_bound: !1,
|
|
190
190
|
root: t.target || l.$$.root
|
|
@@ -193,19 +193,19 @@ function yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
193
193
|
let c = !1;
|
|
194
194
|
if (u.ctx = r ? r(e, t.props || {}, (h, f, ...p) => {
|
|
195
195
|
const m = p.length ? p[0] : f;
|
|
196
|
-
return u.ctx && i(u.ctx[h], u.ctx[h] = m) && (!u.skip_bound && u.bound[h] && u.bound[h](m), c &&
|
|
196
|
+
return u.ctx && i(u.ctx[h], u.ctx[h] = m) && (!u.skip_bound && u.bound[h] && u.bound[h](m), c && _r(e, h)), f;
|
|
197
197
|
}) : [], u.update(), c = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
198
198
|
if (t.hydrate) {
|
|
199
|
-
const h =
|
|
199
|
+
const h = fr(t.target);
|
|
200
200
|
u.fragment && u.fragment.l(h), h.forEach(ue);
|
|
201
201
|
} else
|
|
202
202
|
u.fragment && u.fragment.c();
|
|
203
|
-
t.intro &&
|
|
203
|
+
t.intro && yr(e.$$.fragment), xr(e, t.target, t.anchor), X();
|
|
204
204
|
}
|
|
205
205
|
oe(l);
|
|
206
206
|
}
|
|
207
|
-
let
|
|
208
|
-
typeof HTMLElement == "function" && (
|
|
207
|
+
let Ht;
|
|
208
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
209
209
|
/** The Svelte component constructor */
|
|
210
210
|
$$ctor;
|
|
211
211
|
/** Slots */
|
|
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
|
264
264
|
};
|
|
265
265
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
266
266
|
return;
|
|
267
|
-
const t = {}, r =
|
|
267
|
+
const t = {}, r = pr(this);
|
|
268
268
|
for (const i of this.$$s)
|
|
269
269
|
i in r && (t[i] = [e(i)]);
|
|
270
270
|
for (const i of this.attributes) {
|
|
@@ -351,8 +351,8 @@ function fe(e, t, r, n) {
|
|
|
351
351
|
return t;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
let s = class extends
|
|
354
|
+
function Ar(e, t, r, n, i, o) {
|
|
355
|
+
let s = class extends Ht {
|
|
356
356
|
constructor() {
|
|
357
357
|
super(e, r, i), this.$$p_d = t;
|
|
358
358
|
}
|
|
@@ -380,7 +380,7 @@ function xr(e, t, r, n, i, o) {
|
|
|
380
380
|
}), e.element = /** @type {any} */
|
|
381
381
|
s, s;
|
|
382
382
|
}
|
|
383
|
-
class
|
|
383
|
+
class wr {
|
|
384
384
|
/**
|
|
385
385
|
* ### PRIVATE API
|
|
386
386
|
*
|
|
@@ -399,7 +399,7 @@ class Er {
|
|
|
399
399
|
$$set = void 0;
|
|
400
400
|
/** @returns {void} */
|
|
401
401
|
$destroy() {
|
|
402
|
-
|
|
402
|
+
Er(this, 1), this.$destroy = I;
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -408,8 +408,8 @@ class Er {
|
|
|
408
408
|
* @returns {() => void}
|
|
409
409
|
*/
|
|
410
410
|
$on(t, r) {
|
|
411
|
-
if (!
|
|
412
|
-
return
|
|
411
|
+
if (!qe(r))
|
|
412
|
+
return I;
|
|
413
413
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
414
414
|
return n.push(r), () => {
|
|
415
415
|
const i = n.indexOf(r);
|
|
@@ -421,22 +421,22 @@ class Er {
|
|
|
421
421
|
* @returns {void}
|
|
422
422
|
*/
|
|
423
423
|
$set(t) {
|
|
424
|
-
this.$$set && !
|
|
424
|
+
this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
const
|
|
428
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
429
|
-
var
|
|
430
|
-
return
|
|
427
|
+
const Sr = "4";
|
|
428
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
|
|
429
|
+
var $e = function(e, t) {
|
|
430
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
431
431
|
r.__proto__ = n;
|
|
432
432
|
} || function(r, n) {
|
|
433
433
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
434
|
-
},
|
|
434
|
+
}, $e(e, t);
|
|
435
435
|
};
|
|
436
436
|
function R(e, t) {
|
|
437
437
|
if (typeof t != "function" && t !== null)
|
|
438
438
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
439
|
-
|
|
439
|
+
$e(e, t);
|
|
440
440
|
function r() {
|
|
441
441
|
this.constructor = e;
|
|
442
442
|
}
|
|
@@ -451,7 +451,7 @@ var y = function() {
|
|
|
451
451
|
return t;
|
|
452
452
|
}, y.apply(this, arguments);
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Tr(e, t) {
|
|
455
455
|
var r = {};
|
|
456
456
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
457
457
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -459,7 +459,7 @@ function Cr(e, t) {
|
|
|
459
459
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
460
460
|
return r;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function Re(e) {
|
|
463
463
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
464
464
|
if (r) return r.call(e);
|
|
465
465
|
if (e && typeof e.length == "number") return {
|
|
@@ -469,7 +469,7 @@ function $e(e) {
|
|
|
469
469
|
};
|
|
470
470
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function De(e, t) {
|
|
473
473
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
474
474
|
if (!r) return e;
|
|
475
475
|
var n = r.call(e), i, o = [], s;
|
|
@@ -494,13 +494,13 @@ function q(e, t, r) {
|
|
|
494
494
|
function $(e) {
|
|
495
495
|
return typeof e == "function";
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Mt(e) {
|
|
498
498
|
var t = function(n) {
|
|
499
499
|
Error.call(n), n.stack = new Error().stack;
|
|
500
500
|
}, r = e(t);
|
|
501
501
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
502
502
|
}
|
|
503
|
-
var Se =
|
|
503
|
+
var Se = Mt(function(e) {
|
|
504
504
|
return function(r) {
|
|
505
505
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
506
506
|
` + r.map(function(n, i) {
|
|
@@ -509,7 +509,7 @@ var Se = Tt(function(e) {
|
|
|
509
509
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
510
510
|
};
|
|
511
511
|
});
|
|
512
|
-
function
|
|
512
|
+
function Ue(e, t) {
|
|
513
513
|
if (e) {
|
|
514
514
|
var r = e.indexOf(t);
|
|
515
515
|
0 <= r && e.splice(r, 1);
|
|
@@ -527,7 +527,7 @@ var xe = function() {
|
|
|
527
527
|
if (s)
|
|
528
528
|
if (this._parentage = null, Array.isArray(s))
|
|
529
529
|
try {
|
|
530
|
-
for (var a =
|
|
530
|
+
for (var a = Re(s), l = a.next(); !l.done; l = a.next()) {
|
|
531
531
|
var u = l.value;
|
|
532
532
|
u.remove(this);
|
|
533
533
|
}
|
|
@@ -553,12 +553,12 @@ var xe = function() {
|
|
|
553
553
|
if (h) {
|
|
554
554
|
this._finalizers = null;
|
|
555
555
|
try {
|
|
556
|
-
for (var f =
|
|
556
|
+
for (var f = Re(h), p = f.next(); !p.done; p = f.next()) {
|
|
557
557
|
var m = p.value;
|
|
558
558
|
try {
|
|
559
|
-
|
|
559
|
+
nt(m);
|
|
560
560
|
} catch (d) {
|
|
561
|
-
o = o ?? [], d instanceof Se ? o = q(q([],
|
|
561
|
+
o = o ?? [], d instanceof Se ? o = q(q([], De(o)), De(d.errors)) : o.push(d);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
} catch (d) {
|
|
@@ -578,7 +578,7 @@ var xe = function() {
|
|
|
578
578
|
var r;
|
|
579
579
|
if (t && t !== this)
|
|
580
580
|
if (this.closed)
|
|
581
|
-
|
|
581
|
+
nt(t);
|
|
582
582
|
else {
|
|
583
583
|
if (t instanceof e) {
|
|
584
584
|
if (t.closed || t._hasParent(this))
|
|
@@ -595,52 +595,56 @@ var xe = function() {
|
|
|
595
595
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
596
596
|
}, e.prototype._removeParent = function(t) {
|
|
597
597
|
var r = this._parentage;
|
|
598
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
598
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
599
599
|
}, e.prototype.remove = function(t) {
|
|
600
600
|
var r = this._finalizers;
|
|
601
|
-
r &&
|
|
601
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
602
602
|
}, e.EMPTY = function() {
|
|
603
603
|
var t = new e();
|
|
604
604
|
return t.closed = !0, t;
|
|
605
605
|
}(), e;
|
|
606
|
-
}(),
|
|
607
|
-
function
|
|
606
|
+
}(), Pt = xe.EMPTY;
|
|
607
|
+
function Ot(e) {
|
|
608
608
|
return e instanceof xe || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function nt(e) {
|
|
611
611
|
$(e) ? e() : e.unsubscribe();
|
|
612
612
|
}
|
|
613
|
-
var
|
|
614
|
-
|
|
615
|
-
|
|
613
|
+
var It = {
|
|
614
|
+
onUnhandledError: null,
|
|
615
|
+
onStoppedNotification: null,
|
|
616
|
+
Promise: void 0,
|
|
617
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
618
|
+
useDeprecatedNextContext: !1
|
|
619
|
+
}, Br = {
|
|
616
620
|
setTimeout: function(e, t) {
|
|
617
621
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
618
622
|
r[n - 2] = arguments[n];
|
|
619
|
-
return setTimeout.apply(void 0, q([e, t],
|
|
623
|
+
return setTimeout.apply(void 0, q([e, t], De(r)));
|
|
620
624
|
},
|
|
621
625
|
clearTimeout: function(e) {
|
|
622
626
|
return clearTimeout(e);
|
|
623
627
|
},
|
|
624
628
|
delegate: void 0
|
|
625
629
|
};
|
|
626
|
-
function
|
|
627
|
-
|
|
630
|
+
function Hr(e) {
|
|
631
|
+
Br.setTimeout(function() {
|
|
628
632
|
throw e;
|
|
629
633
|
});
|
|
630
634
|
}
|
|
631
|
-
function
|
|
635
|
+
function it() {
|
|
632
636
|
}
|
|
633
637
|
function pe(e) {
|
|
634
638
|
e();
|
|
635
639
|
}
|
|
636
|
-
var
|
|
640
|
+
var Nt = function(e) {
|
|
637
641
|
R(t, e);
|
|
638
642
|
function t(r) {
|
|
639
643
|
var n = e.call(this) || this;
|
|
640
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
644
|
+
return n.isStopped = !1, r ? (n.destination = r, Ot(r) && r.add(n)) : n.destination = Ir, n;
|
|
641
645
|
}
|
|
642
646
|
return t.create = function(r, n, i) {
|
|
643
|
-
return new
|
|
647
|
+
return new Fe(r, n, i);
|
|
644
648
|
}, t.prototype.next = function(r) {
|
|
645
649
|
this.isStopped || this._next(r);
|
|
646
650
|
}, t.prototype.error = function(r) {
|
|
@@ -664,7 +668,11 @@ var Mt = function(e) {
|
|
|
664
668
|
this.unsubscribe();
|
|
665
669
|
}
|
|
666
670
|
}, t;
|
|
667
|
-
}(xe),
|
|
671
|
+
}(xe), Mr = Function.prototype.bind;
|
|
672
|
+
function Te(e, t) {
|
|
673
|
+
return Mr.call(e, t);
|
|
674
|
+
}
|
|
675
|
+
var Pr = function() {
|
|
668
676
|
function e(t) {
|
|
669
677
|
this.partialObserver = t;
|
|
670
678
|
}
|
|
@@ -695,43 +703,55 @@ var Mt = function(e) {
|
|
|
695
703
|
ce(r);
|
|
696
704
|
}
|
|
697
705
|
}, e;
|
|
698
|
-
}(),
|
|
706
|
+
}(), Fe = function(e) {
|
|
699
707
|
R(t, e);
|
|
700
708
|
function t(r, n, i) {
|
|
701
709
|
var o = e.call(this) || this, s;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
710
|
+
if ($(r) || !r)
|
|
711
|
+
s = {
|
|
712
|
+
next: r ?? void 0,
|
|
713
|
+
error: n ?? void 0,
|
|
714
|
+
complete: i ?? void 0
|
|
715
|
+
};
|
|
716
|
+
else {
|
|
717
|
+
var a;
|
|
718
|
+
o && It.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
719
|
+
return o.unsubscribe();
|
|
720
|
+
}, s = {
|
|
721
|
+
next: r.next && Te(r.next, a),
|
|
722
|
+
error: r.error && Te(r.error, a),
|
|
723
|
+
complete: r.complete && Te(r.complete, a)
|
|
724
|
+
}) : s = r;
|
|
725
|
+
}
|
|
726
|
+
return o.destination = new Pr(s), o;
|
|
707
727
|
}
|
|
708
728
|
return t;
|
|
709
|
-
}(
|
|
729
|
+
}(Nt);
|
|
710
730
|
function ce(e) {
|
|
711
|
-
|
|
731
|
+
Hr(e);
|
|
712
732
|
}
|
|
713
|
-
function
|
|
733
|
+
function Or(e) {
|
|
714
734
|
throw e;
|
|
715
735
|
}
|
|
716
|
-
var
|
|
736
|
+
var Ir = {
|
|
717
737
|
closed: !0,
|
|
718
|
-
next:
|
|
719
|
-
error:
|
|
720
|
-
complete:
|
|
721
|
-
},
|
|
738
|
+
next: it,
|
|
739
|
+
error: Or,
|
|
740
|
+
complete: it
|
|
741
|
+
}, Nr = function() {
|
|
722
742
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
723
743
|
}();
|
|
724
|
-
function
|
|
744
|
+
function Lr(e) {
|
|
725
745
|
return e;
|
|
726
746
|
}
|
|
727
|
-
function
|
|
728
|
-
return e.length === 0 ?
|
|
747
|
+
function $r(e) {
|
|
748
|
+
return e.length === 0 ? Lr : e.length === 1 ? e[0] : function(r) {
|
|
729
749
|
return e.reduce(function(n, i) {
|
|
730
750
|
return i(n);
|
|
731
751
|
}, r);
|
|
732
752
|
};
|
|
733
753
|
}
|
|
734
|
-
var
|
|
754
|
+
var ot = function() {
|
|
735
755
|
function e(t) {
|
|
736
756
|
t && (this._subscribe = t);
|
|
737
757
|
}
|
|
@@ -739,7 +759,7 @@ var rt = function() {
|
|
|
739
759
|
var r = new e();
|
|
740
760
|
return r.source = this, r.operator = t, r;
|
|
741
761
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
742
|
-
var i = this, o =
|
|
762
|
+
var i = this, o = Dr(t) ? t : new Fe(t, r, n);
|
|
743
763
|
return pe(function() {
|
|
744
764
|
var s = i, a = s.operator, l = s.source;
|
|
745
765
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -752,8 +772,8 @@ var rt = function() {
|
|
|
752
772
|
}
|
|
753
773
|
}, e.prototype.forEach = function(t, r) {
|
|
754
774
|
var n = this;
|
|
755
|
-
return r =
|
|
756
|
-
var s = new
|
|
775
|
+
return r = st(r), new r(function(i, o) {
|
|
776
|
+
var s = new Fe({
|
|
757
777
|
next: function(a) {
|
|
758
778
|
try {
|
|
759
779
|
t(a);
|
|
@@ -769,15 +789,15 @@ var rt = function() {
|
|
|
769
789
|
}, e.prototype._subscribe = function(t) {
|
|
770
790
|
var r;
|
|
771
791
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
772
|
-
}, e.prototype[
|
|
792
|
+
}, e.prototype[Nr] = function() {
|
|
773
793
|
return this;
|
|
774
794
|
}, e.prototype.pipe = function() {
|
|
775
795
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
776
796
|
t[r] = arguments[r];
|
|
777
|
-
return
|
|
797
|
+
return $r(t)(this);
|
|
778
798
|
}, e.prototype.toPromise = function(t) {
|
|
779
799
|
var r = this;
|
|
780
|
-
return t =
|
|
800
|
+
return t = st(t), new t(function(n, i) {
|
|
781
801
|
var o;
|
|
782
802
|
r.subscribe(function(s) {
|
|
783
803
|
return o = s;
|
|
@@ -791,32 +811,32 @@ var rt = function() {
|
|
|
791
811
|
return new e(t);
|
|
792
812
|
}, e;
|
|
793
813
|
}();
|
|
794
|
-
function
|
|
814
|
+
function st(e) {
|
|
795
815
|
var t;
|
|
796
|
-
return (t = e ??
|
|
816
|
+
return (t = e ?? It.Promise) !== null && t !== void 0 ? t : Promise;
|
|
797
817
|
}
|
|
798
|
-
function
|
|
818
|
+
function Rr(e) {
|
|
799
819
|
return e && $(e.next) && $(e.error) && $(e.complete);
|
|
800
820
|
}
|
|
801
|
-
function
|
|
802
|
-
return e && e instanceof
|
|
821
|
+
function Dr(e) {
|
|
822
|
+
return e && e instanceof Nt || Rr(e) && Ot(e);
|
|
803
823
|
}
|
|
804
|
-
var
|
|
824
|
+
var Ur = Mt(function(e) {
|
|
805
825
|
return function() {
|
|
806
826
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
807
827
|
};
|
|
808
|
-
}),
|
|
828
|
+
}), Lt = function(e) {
|
|
809
829
|
R(t, e);
|
|
810
830
|
function t() {
|
|
811
831
|
var r = e.call(this) || this;
|
|
812
832
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
813
833
|
}
|
|
814
834
|
return t.prototype.lift = function(r) {
|
|
815
|
-
var n = new
|
|
835
|
+
var n = new at(this, this);
|
|
816
836
|
return n.operator = r, n;
|
|
817
837
|
}, t.prototype._throwIfClosed = function() {
|
|
818
838
|
if (this.closed)
|
|
819
|
-
throw new
|
|
839
|
+
throw new Ur();
|
|
820
840
|
}, t.prototype.next = function(r) {
|
|
821
841
|
var n = this;
|
|
822
842
|
pe(function() {
|
|
@@ -824,7 +844,7 @@ var Lr = Tt(function(e) {
|
|
|
824
844
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
825
845
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
826
846
|
try {
|
|
827
|
-
for (var s =
|
|
847
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
828
848
|
var l = a.value;
|
|
829
849
|
l.next(r);
|
|
830
850
|
}
|
|
@@ -872,19 +892,19 @@ var Lr = Tt(function(e) {
|
|
|
872
892
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
873
893
|
}, t.prototype._innerSubscribe = function(r) {
|
|
874
894
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
875
|
-
return o || s ?
|
|
876
|
-
n.currentObservers = null,
|
|
895
|
+
return o || s ? Pt : (this.currentObservers = null, a.push(r), new xe(function() {
|
|
896
|
+
n.currentObservers = null, Ue(a, r);
|
|
877
897
|
}));
|
|
878
898
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
879
899
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
880
900
|
i ? r.error(o) : s && r.complete();
|
|
881
901
|
}, t.prototype.asObservable = function() {
|
|
882
|
-
var r = new
|
|
902
|
+
var r = new ot();
|
|
883
903
|
return r.source = this, r;
|
|
884
904
|
}, t.create = function(r, n) {
|
|
885
|
-
return new
|
|
905
|
+
return new at(r, n);
|
|
886
906
|
}, t;
|
|
887
|
-
}(
|
|
907
|
+
}(ot), at = function(e) {
|
|
888
908
|
R(t, e);
|
|
889
909
|
function t(r, n) {
|
|
890
910
|
var i = e.call(this) || this;
|
|
@@ -901,17 +921,17 @@ var Lr = Tt(function(e) {
|
|
|
901
921
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
902
922
|
}, t.prototype._subscribe = function(r) {
|
|
903
923
|
var n, i;
|
|
904
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
924
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pt;
|
|
905
925
|
}, t;
|
|
906
|
-
}(
|
|
926
|
+
}(Lt), $t = {
|
|
907
927
|
now: function() {
|
|
908
|
-
return (
|
|
928
|
+
return ($t.delegate || Date).now();
|
|
909
929
|
},
|
|
910
930
|
delegate: void 0
|
|
911
|
-
},
|
|
931
|
+
}, Fr = function(e) {
|
|
912
932
|
R(t, e);
|
|
913
933
|
function t(r, n, i) {
|
|
914
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
934
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
|
|
915
935
|
var o = e.call(this) || this;
|
|
916
936
|
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;
|
|
917
937
|
}
|
|
@@ -931,40 +951,40 @@ var Lr = Tt(function(e) {
|
|
|
931
951
|
u && o.splice(0, u + 1);
|
|
932
952
|
}
|
|
933
953
|
}, t;
|
|
934
|
-
}(
|
|
935
|
-
const
|
|
936
|
-
if (
|
|
937
|
-
const r = new
|
|
938
|
-
|
|
954
|
+
}(Lt);
|
|
955
|
+
const ut = [], lt = {}, Gr = (e, t = 0) => {
|
|
956
|
+
if (ut.indexOf(e) == -1) {
|
|
957
|
+
const r = new Fr(t);
|
|
958
|
+
lt[e] = r, ut.push(e);
|
|
939
959
|
}
|
|
940
|
-
return
|
|
941
|
-
},
|
|
942
|
-
function
|
|
960
|
+
return lt[e];
|
|
961
|
+
}, V = [];
|
|
962
|
+
function jr(e, t) {
|
|
943
963
|
return {
|
|
944
964
|
subscribe: Ee(e, t).subscribe
|
|
945
965
|
};
|
|
946
966
|
}
|
|
947
|
-
function Ee(e, t =
|
|
967
|
+
function Ee(e, t = I) {
|
|
948
968
|
let r;
|
|
949
969
|
const n = /* @__PURE__ */ new Set();
|
|
950
970
|
function i(a) {
|
|
951
|
-
if (
|
|
952
|
-
const l = !
|
|
971
|
+
if (Tt(e, a) && (e = a, r)) {
|
|
972
|
+
const l = !V.length;
|
|
953
973
|
for (const u of n)
|
|
954
|
-
u[1](),
|
|
974
|
+
u[1](), V.push(u, e);
|
|
955
975
|
if (l) {
|
|
956
|
-
for (let u = 0; u <
|
|
957
|
-
|
|
958
|
-
|
|
976
|
+
for (let u = 0; u < V.length; u += 2)
|
|
977
|
+
V[u][0](V[u + 1]);
|
|
978
|
+
V.length = 0;
|
|
959
979
|
}
|
|
960
980
|
}
|
|
961
981
|
}
|
|
962
982
|
function o(a) {
|
|
963
983
|
i(a(e));
|
|
964
984
|
}
|
|
965
|
-
function s(a, l =
|
|
985
|
+
function s(a, l = I) {
|
|
966
986
|
const u = [a, l];
|
|
967
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
987
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
|
|
968
988
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
969
989
|
};
|
|
970
990
|
}
|
|
@@ -975,18 +995,18 @@ function te(e, t, r) {
|
|
|
975
995
|
if (!i.every(Boolean))
|
|
976
996
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
977
997
|
const o = t.length < 2;
|
|
978
|
-
return
|
|
998
|
+
return jr(r, (s, a) => {
|
|
979
999
|
let l = !1;
|
|
980
1000
|
const u = [];
|
|
981
|
-
let c = 0, h =
|
|
1001
|
+
let c = 0, h = I;
|
|
982
1002
|
const f = () => {
|
|
983
1003
|
if (c)
|
|
984
1004
|
return;
|
|
985
1005
|
h();
|
|
986
1006
|
const m = t(n ? u[0] : u, s, a);
|
|
987
|
-
o ? s(m) : h =
|
|
1007
|
+
o ? s(m) : h = qe(m) ? m : I;
|
|
988
1008
|
}, p = i.map(
|
|
989
|
-
(m, d) =>
|
|
1009
|
+
(m, d) => Bt(
|
|
990
1010
|
m,
|
|
991
1011
|
(A) => {
|
|
992
1012
|
u[d] = A, c &= ~(1 << d), l && f();
|
|
@@ -1001,70 +1021,70 @@ function te(e, t, r) {
|
|
|
1001
1021
|
};
|
|
1002
1022
|
});
|
|
1003
1023
|
}
|
|
1004
|
-
function
|
|
1024
|
+
function kr(e) {
|
|
1005
1025
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1006
1026
|
}
|
|
1007
|
-
var
|
|
1008
|
-
return
|
|
1027
|
+
var zr = function(t) {
|
|
1028
|
+
return Vr(t) && !Wr(t);
|
|
1009
1029
|
};
|
|
1010
|
-
function
|
|
1030
|
+
function Vr(e) {
|
|
1011
1031
|
return !!e && typeof e == "object";
|
|
1012
1032
|
}
|
|
1013
|
-
function
|
|
1033
|
+
function Wr(e) {
|
|
1014
1034
|
var t = Object.prototype.toString.call(e);
|
|
1015
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1035
|
+
return t === "[object RegExp]" || t === "[object Date]" || qr(e);
|
|
1016
1036
|
}
|
|
1017
|
-
var
|
|
1018
|
-
function
|
|
1019
|
-
return e.$$typeof ===
|
|
1037
|
+
var Xr = typeof Symbol == "function" && Symbol.for, Zr = Xr ? Symbol.for("react.element") : 60103;
|
|
1038
|
+
function qr(e) {
|
|
1039
|
+
return e.$$typeof === Zr;
|
|
1020
1040
|
}
|
|
1021
|
-
function
|
|
1041
|
+
function Qr(e) {
|
|
1022
1042
|
return Array.isArray(e) ? [] : {};
|
|
1023
1043
|
}
|
|
1024
1044
|
function se(e, t) {
|
|
1025
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
1045
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Qr(e), e, t) : e;
|
|
1026
1046
|
}
|
|
1027
|
-
function
|
|
1047
|
+
function Yr(e, t, r) {
|
|
1028
1048
|
return e.concat(t).map(function(n) {
|
|
1029
1049
|
return se(n, r);
|
|
1030
1050
|
});
|
|
1031
1051
|
}
|
|
1032
|
-
function
|
|
1052
|
+
function Jr(e, t) {
|
|
1033
1053
|
if (!t.customMerge)
|
|
1034
1054
|
return Q;
|
|
1035
1055
|
var r = t.customMerge(e);
|
|
1036
1056
|
return typeof r == "function" ? r : Q;
|
|
1037
1057
|
}
|
|
1038
|
-
function
|
|
1058
|
+
function Kr(e) {
|
|
1039
1059
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1040
1060
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1041
1061
|
}) : [];
|
|
1042
1062
|
}
|
|
1043
|
-
function
|
|
1044
|
-
return Object.keys(e).concat(
|
|
1063
|
+
function ct(e) {
|
|
1064
|
+
return Object.keys(e).concat(Kr(e));
|
|
1045
1065
|
}
|
|
1046
|
-
function
|
|
1066
|
+
function Rt(e, t) {
|
|
1047
1067
|
try {
|
|
1048
1068
|
return t in e;
|
|
1049
1069
|
} catch {
|
|
1050
1070
|
return !1;
|
|
1051
1071
|
}
|
|
1052
1072
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return
|
|
1073
|
+
function en(e, t) {
|
|
1074
|
+
return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1055
1075
|
}
|
|
1056
|
-
function
|
|
1076
|
+
function tn(e, t, r) {
|
|
1057
1077
|
var n = {};
|
|
1058
|
-
return r.isMergeableObject(e) &&
|
|
1078
|
+
return r.isMergeableObject(e) && ct(e).forEach(function(i) {
|
|
1059
1079
|
n[i] = se(e[i], r);
|
|
1060
|
-
}),
|
|
1061
|
-
|
|
1080
|
+
}), ct(t).forEach(function(i) {
|
|
1081
|
+
en(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
1062
1082
|
}), n;
|
|
1063
1083
|
}
|
|
1064
1084
|
function Q(e, t, r) {
|
|
1065
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1085
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yr, r.isMergeableObject = r.isMergeableObject || zr, r.cloneUnlessOtherwiseSpecified = se;
|
|
1066
1086
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1067
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1087
|
+
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : se(t, r);
|
|
1068
1088
|
}
|
|
1069
1089
|
Q.all = function(t, r) {
|
|
1070
1090
|
if (!Array.isArray(t))
|
|
@@ -1073,56 +1093,58 @@ Q.all = function(t, r) {
|
|
|
1073
1093
|
return Q(n, i, r);
|
|
1074
1094
|
}, {});
|
|
1075
1095
|
};
|
|
1076
|
-
var
|
|
1077
|
-
const
|
|
1078
|
-
function
|
|
1079
|
-
var r = t && t.cache ? t.cache :
|
|
1096
|
+
var rn = Q, nn = rn;
|
|
1097
|
+
const on = /* @__PURE__ */ kr(nn);
|
|
1098
|
+
function Be(e, t) {
|
|
1099
|
+
var r = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : an;
|
|
1080
1100
|
return i(e, {
|
|
1081
1101
|
cache: r,
|
|
1082
1102
|
serializer: n
|
|
1083
1103
|
});
|
|
1084
1104
|
}
|
|
1085
|
-
function
|
|
1105
|
+
function sn(e) {
|
|
1086
1106
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1087
1107
|
}
|
|
1088
|
-
function
|
|
1089
|
-
var i =
|
|
1108
|
+
function Dt(e, t, r, n) {
|
|
1109
|
+
var i = sn(n) ? n : r(n), o = t.get(i);
|
|
1090
1110
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1091
1111
|
}
|
|
1092
|
-
function
|
|
1112
|
+
function Ut(e, t, r) {
|
|
1093
1113
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1094
1114
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1095
1115
|
}
|
|
1096
|
-
function
|
|
1116
|
+
function Ye(e, t, r, n, i) {
|
|
1097
1117
|
return r.bind(t, e, n, i);
|
|
1098
1118
|
}
|
|
1099
|
-
function
|
|
1100
|
-
var r = e.length === 1 ?
|
|
1101
|
-
return
|
|
1119
|
+
function an(e, t) {
|
|
1120
|
+
var r = e.length === 1 ? Dt : Ut;
|
|
1121
|
+
return Ye(e, this, r, t.cache.create(), t.serializer);
|
|
1122
|
+
}
|
|
1123
|
+
function un(e, t) {
|
|
1124
|
+
return Ye(e, this, Ut, t.cache.create(), t.serializer);
|
|
1102
1125
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1126
|
+
function ln(e, t) {
|
|
1127
|
+
return Ye(e, this, Dt, t.cache.create(), t.serializer);
|
|
1105
1128
|
}
|
|
1106
|
-
var
|
|
1129
|
+
var cn = function() {
|
|
1107
1130
|
return JSON.stringify(arguments);
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
}()
|
|
1120
|
-
), un = {
|
|
1131
|
+
};
|
|
1132
|
+
function Je() {
|
|
1133
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1134
|
+
}
|
|
1135
|
+
Je.prototype.get = function(e) {
|
|
1136
|
+
return this.cache[e];
|
|
1137
|
+
};
|
|
1138
|
+
Je.prototype.set = function(e, t) {
|
|
1139
|
+
this.cache[e] = t;
|
|
1140
|
+
};
|
|
1141
|
+
var hn = {
|
|
1121
1142
|
create: function() {
|
|
1122
|
-
return new
|
|
1143
|
+
return new Je();
|
|
1123
1144
|
}
|
|
1124
|
-
},
|
|
1125
|
-
variadic:
|
|
1145
|
+
}, He = {
|
|
1146
|
+
variadic: un,
|
|
1147
|
+
monadic: ln
|
|
1126
1148
|
}, b;
|
|
1127
1149
|
(function(e) {
|
|
1128
1150
|
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";
|
|
@@ -1135,43 +1157,43 @@ var Y;
|
|
|
1135
1157
|
(function(e) {
|
|
1136
1158
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1137
1159
|
})(Y || (Y = {}));
|
|
1138
|
-
function
|
|
1160
|
+
function ht(e) {
|
|
1139
1161
|
return e.type === C.literal;
|
|
1140
1162
|
}
|
|
1141
|
-
function
|
|
1163
|
+
function fn(e) {
|
|
1142
1164
|
return e.type === C.argument;
|
|
1143
1165
|
}
|
|
1144
|
-
function
|
|
1166
|
+
function Ft(e) {
|
|
1145
1167
|
return e.type === C.number;
|
|
1146
1168
|
}
|
|
1147
|
-
function
|
|
1169
|
+
function Gt(e) {
|
|
1148
1170
|
return e.type === C.date;
|
|
1149
1171
|
}
|
|
1150
|
-
function
|
|
1172
|
+
function jt(e) {
|
|
1151
1173
|
return e.type === C.time;
|
|
1152
1174
|
}
|
|
1153
|
-
function
|
|
1175
|
+
function kt(e) {
|
|
1154
1176
|
return e.type === C.select;
|
|
1155
1177
|
}
|
|
1156
|
-
function
|
|
1178
|
+
function zt(e) {
|
|
1157
1179
|
return e.type === C.plural;
|
|
1158
1180
|
}
|
|
1159
|
-
function
|
|
1181
|
+
function pn(e) {
|
|
1160
1182
|
return e.type === C.pound;
|
|
1161
1183
|
}
|
|
1162
|
-
function
|
|
1184
|
+
function Vt(e) {
|
|
1163
1185
|
return e.type === C.tag;
|
|
1164
1186
|
}
|
|
1165
|
-
function
|
|
1187
|
+
function Wt(e) {
|
|
1166
1188
|
return !!(e && typeof e == "object" && e.type === Y.number);
|
|
1167
1189
|
}
|
|
1168
|
-
function
|
|
1190
|
+
function Ge(e) {
|
|
1169
1191
|
return !!(e && typeof e == "object" && e.type === Y.dateTime);
|
|
1170
1192
|
}
|
|
1171
|
-
var
|
|
1172
|
-
function
|
|
1193
|
+
var Xt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, dn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1194
|
+
function mn(e) {
|
|
1173
1195
|
var t = {};
|
|
1174
|
-
return e.replace(
|
|
1196
|
+
return e.replace(dn, function(r) {
|
|
1175
1197
|
var n = r.length;
|
|
1176
1198
|
switch (r[0]) {
|
|
1177
1199
|
case "G":
|
|
@@ -1260,11 +1282,11 @@ function fn(e) {
|
|
|
1260
1282
|
return "";
|
|
1261
1283
|
}), t;
|
|
1262
1284
|
}
|
|
1263
|
-
var
|
|
1264
|
-
function
|
|
1285
|
+
var bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1286
|
+
function vn(e) {
|
|
1265
1287
|
if (e.length === 0)
|
|
1266
1288
|
throw new Error("Number skeleton cannot be empty");
|
|
1267
|
-
for (var t = e.split(
|
|
1289
|
+
for (var t = e.split(bn).filter(function(f) {
|
|
1268
1290
|
return f.length > 0;
|
|
1269
1291
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1270
1292
|
var o = i[n], s = o.split("/");
|
|
@@ -1279,17 +1301,17 @@ function dn(e) {
|
|
|
1279
1301
|
}
|
|
1280
1302
|
return r;
|
|
1281
1303
|
}
|
|
1282
|
-
function
|
|
1304
|
+
function gn(e) {
|
|
1283
1305
|
return e.replace(/^(.*?)-/, "");
|
|
1284
1306
|
}
|
|
1285
|
-
var
|
|
1286
|
-
function
|
|
1307
|
+
var ft = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, qt = /^(0+)$/;
|
|
1308
|
+
function pt(e) {
|
|
1287
1309
|
var t = {};
|
|
1288
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1310
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
|
|
1289
1311
|
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)), "";
|
|
1290
1312
|
}), t;
|
|
1291
1313
|
}
|
|
1292
|
-
function
|
|
1314
|
+
function Qt(e) {
|
|
1293
1315
|
switch (e) {
|
|
1294
1316
|
case "sign-auto":
|
|
1295
1317
|
return {
|
|
@@ -1329,7 +1351,7 @@ function Vt(e) {
|
|
|
1329
1351
|
};
|
|
1330
1352
|
}
|
|
1331
1353
|
}
|
|
1332
|
-
function
|
|
1354
|
+
function xn(e) {
|
|
1333
1355
|
var t;
|
|
1334
1356
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1335
1357
|
notation: "engineering"
|
|
@@ -1337,17 +1359,17 @@ function vn(e) {
|
|
|
1337
1359
|
notation: "scientific"
|
|
1338
1360
|
}, e = e.slice(1)), t) {
|
|
1339
1361
|
var r = e.slice(0, 2);
|
|
1340
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1362
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qt.test(e))
|
|
1341
1363
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1342
1364
|
t.minimumIntegerDigits = e.length;
|
|
1343
1365
|
}
|
|
1344
1366
|
return t;
|
|
1345
1367
|
}
|
|
1346
|
-
function
|
|
1347
|
-
var t = {}, r =
|
|
1368
|
+
function dt(e) {
|
|
1369
|
+
var t = {}, r = Qt(e);
|
|
1348
1370
|
return r || t;
|
|
1349
1371
|
}
|
|
1350
|
-
function
|
|
1372
|
+
function En(e) {
|
|
1351
1373
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1352
1374
|
var i = n[r];
|
|
1353
1375
|
switch (i.stem) {
|
|
@@ -1371,7 +1393,7 @@ function gn(e) {
|
|
|
1371
1393
|
continue;
|
|
1372
1394
|
case "measure-unit":
|
|
1373
1395
|
case "unit":
|
|
1374
|
-
t.style = "unit", t.unit =
|
|
1396
|
+
t.style = "unit", t.unit = gn(i.options[0]);
|
|
1375
1397
|
continue;
|
|
1376
1398
|
case "compact-short":
|
|
1377
1399
|
case "K":
|
|
@@ -1383,12 +1405,12 @@ function gn(e) {
|
|
|
1383
1405
|
continue;
|
|
1384
1406
|
case "scientific":
|
|
1385
1407
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1386
|
-
return y(y({}, l),
|
|
1408
|
+
return y(y({}, l), dt(u));
|
|
1387
1409
|
}, {}));
|
|
1388
1410
|
continue;
|
|
1389
1411
|
case "engineering":
|
|
1390
1412
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1391
|
-
return y(y({}, l),
|
|
1413
|
+
return y(y({}, l), dt(u));
|
|
1392
1414
|
}, {}));
|
|
1393
1415
|
continue;
|
|
1394
1416
|
case "notation-simple":
|
|
@@ -1433,7 +1455,7 @@ function gn(e) {
|
|
|
1433
1455
|
case "integer-width":
|
|
1434
1456
|
if (i.options.length > 1)
|
|
1435
1457
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1436
|
-
i.options[0].replace(
|
|
1458
|
+
i.options[0].replace(yn, function(l, u, c, h, f, p) {
|
|
1437
1459
|
if (u)
|
|
1438
1460
|
t.minimumIntegerDigits = c.length;
|
|
1439
1461
|
else {
|
|
@@ -1446,27 +1468,27 @@ function gn(e) {
|
|
|
1446
1468
|
});
|
|
1447
1469
|
continue;
|
|
1448
1470
|
}
|
|
1449
|
-
if (
|
|
1471
|
+
if (qt.test(i.stem)) {
|
|
1450
1472
|
t.minimumIntegerDigits = i.stem.length;
|
|
1451
1473
|
continue;
|
|
1452
1474
|
}
|
|
1453
|
-
if (
|
|
1475
|
+
if (ft.test(i.stem)) {
|
|
1454
1476
|
if (i.options.length > 1)
|
|
1455
1477
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1456
|
-
i.stem.replace(
|
|
1478
|
+
i.stem.replace(ft, function(l, u, c, h, f, p) {
|
|
1457
1479
|
return c === "*" ? t.minimumFractionDigits = u.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1458
1480
|
});
|
|
1459
1481
|
var o = i.options[0];
|
|
1460
|
-
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t),
|
|
1482
|
+
o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), pt(o)));
|
|
1461
1483
|
continue;
|
|
1462
1484
|
}
|
|
1463
|
-
if (
|
|
1464
|
-
t = y(y({}, t),
|
|
1485
|
+
if (Zt.test(i.stem)) {
|
|
1486
|
+
t = y(y({}, t), pt(i.stem));
|
|
1465
1487
|
continue;
|
|
1466
1488
|
}
|
|
1467
|
-
var s =
|
|
1489
|
+
var s = Qt(i.stem);
|
|
1468
1490
|
s && (t = y(y({}, t), s));
|
|
1469
|
-
var a =
|
|
1491
|
+
var a = xn(i.stem);
|
|
1470
1492
|
a && (t = y(y({}, t), a));
|
|
1471
1493
|
}
|
|
1472
1494
|
return t;
|
|
@@ -2886,13 +2908,13 @@ var he = {
|
|
|
2886
2908
|
"h"
|
|
2887
2909
|
]
|
|
2888
2910
|
};
|
|
2889
|
-
function
|
|
2911
|
+
function _n(e, t) {
|
|
2890
2912
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2891
2913
|
var i = e.charAt(n);
|
|
2892
2914
|
if (i === "j") {
|
|
2893
2915
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2894
2916
|
o++, n++;
|
|
2895
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2917
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Cn(t);
|
|
2896
2918
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2897
2919
|
r += l;
|
|
2898
2920
|
for (; s-- > 0; )
|
|
@@ -2901,7 +2923,7 @@ function yn(e, t) {
|
|
|
2901
2923
|
}
|
|
2902
2924
|
return r;
|
|
2903
2925
|
}
|
|
2904
|
-
function
|
|
2926
|
+
function Cn(e) {
|
|
2905
2927
|
var t = e.hourCycle;
|
|
2906
2928
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2907
2929
|
e.hourCycles && // @ts-ignore
|
|
@@ -2923,20 +2945,20 @@ function xn(e) {
|
|
|
2923
2945
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2924
2946
|
return i[0];
|
|
2925
2947
|
}
|
|
2926
|
-
var
|
|
2948
|
+
var Me, An = new RegExp("^".concat(Xt.source, "*")), wn = new RegExp("".concat(Xt.source, "*$"));
|
|
2927
2949
|
function g(e, t) {
|
|
2928
2950
|
return { start: e, end: t };
|
|
2929
2951
|
}
|
|
2930
|
-
var
|
|
2952
|
+
var Sn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, Bn = !!Object.fromEntries, Hn = !!String.prototype.codePointAt, Mn = !!String.prototype.trimStart, Pn = !!String.prototype.trimEnd, On = !!Number.isSafeInteger, In = On ? Number.isSafeInteger : function(e) {
|
|
2931
2953
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2932
|
-
},
|
|
2954
|
+
}, je = !0;
|
|
2933
2955
|
try {
|
|
2934
|
-
var
|
|
2935
|
-
|
|
2956
|
+
var Nn = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2957
|
+
je = ((Me = Nn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
2936
2958
|
} catch {
|
|
2937
|
-
|
|
2959
|
+
je = !1;
|
|
2938
2960
|
}
|
|
2939
|
-
var
|
|
2961
|
+
var mt = Sn ? (
|
|
2940
2962
|
// Native
|
|
2941
2963
|
function(t, r, n) {
|
|
2942
2964
|
return t.startsWith(r, n);
|
|
@@ -2946,7 +2968,7 @@ var ft = Cn ? (
|
|
|
2946
2968
|
function(t, r, n) {
|
|
2947
2969
|
return t.slice(n, n + r.length) === r;
|
|
2948
2970
|
}
|
|
2949
|
-
),
|
|
2971
|
+
), ke = Tn ? String.fromCodePoint : (
|
|
2950
2972
|
// IE11
|
|
2951
2973
|
function() {
|
|
2952
2974
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2958,9 +2980,9 @@ var ft = Cn ? (
|
|
|
2958
2980
|
}
|
|
2959
2981
|
return n;
|
|
2960
2982
|
}
|
|
2961
|
-
),
|
|
2983
|
+
), bt = (
|
|
2962
2984
|
// native
|
|
2963
|
-
|
|
2985
|
+
Bn ? Object.fromEntries : (
|
|
2964
2986
|
// Ponyfill
|
|
2965
2987
|
function(t) {
|
|
2966
2988
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2970,7 +2992,7 @@ var ft = Cn ? (
|
|
|
2970
2992
|
return r;
|
|
2971
2993
|
}
|
|
2972
2994
|
)
|
|
2973
|
-
),
|
|
2995
|
+
), Yt = Hn ? (
|
|
2974
2996
|
// Native
|
|
2975
2997
|
function(t, r) {
|
|
2976
2998
|
return t.codePointAt(r);
|
|
@@ -2984,7 +3006,7 @@ var ft = Cn ? (
|
|
|
2984
3006
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2985
3007
|
}
|
|
2986
3008
|
}
|
|
2987
|
-
),
|
|
3009
|
+
), Ln = Mn ? (
|
|
2988
3010
|
// Native
|
|
2989
3011
|
function(t) {
|
|
2990
3012
|
return t.trimStart();
|
|
@@ -2992,9 +3014,9 @@ var ft = Cn ? (
|
|
|
2992
3014
|
) : (
|
|
2993
3015
|
// Ponyfill
|
|
2994
3016
|
function(t) {
|
|
2995
|
-
return t.replace(
|
|
3017
|
+
return t.replace(An, "");
|
|
2996
3018
|
}
|
|
2997
|
-
),
|
|
3019
|
+
), $n = Pn ? (
|
|
2998
3020
|
// Native
|
|
2999
3021
|
function(t) {
|
|
3000
3022
|
return t.trimEnd();
|
|
@@ -3002,32 +3024,32 @@ var ft = Cn ? (
|
|
|
3002
3024
|
) : (
|
|
3003
3025
|
// Ponyfill
|
|
3004
3026
|
function(t) {
|
|
3005
|
-
return t.replace(
|
|
3027
|
+
return t.replace(wn, "");
|
|
3006
3028
|
}
|
|
3007
3029
|
);
|
|
3008
|
-
function
|
|
3030
|
+
function Jt(e, t) {
|
|
3009
3031
|
return new RegExp(e, t);
|
|
3010
3032
|
}
|
|
3011
|
-
var
|
|
3012
|
-
if (
|
|
3013
|
-
var
|
|
3014
|
-
|
|
3033
|
+
var ze;
|
|
3034
|
+
if (je) {
|
|
3035
|
+
var vt = Jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3036
|
+
ze = function(t, r) {
|
|
3015
3037
|
var n;
|
|
3016
|
-
|
|
3017
|
-
var i =
|
|
3038
|
+
vt.lastIndex = r;
|
|
3039
|
+
var i = vt.exec(t);
|
|
3018
3040
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3019
3041
|
};
|
|
3020
3042
|
} else
|
|
3021
|
-
|
|
3043
|
+
ze = function(t, r) {
|
|
3022
3044
|
for (var n = []; ; ) {
|
|
3023
|
-
var i =
|
|
3024
|
-
if (i === void 0 ||
|
|
3045
|
+
var i = Yt(t, r);
|
|
3046
|
+
if (i === void 0 || Kt(i) || Fn(i))
|
|
3025
3047
|
break;
|
|
3026
3048
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3027
3049
|
}
|
|
3028
|
-
return
|
|
3050
|
+
return ke.apply(void 0, n);
|
|
3029
3051
|
};
|
|
3030
|
-
var
|
|
3052
|
+
var Rn = (
|
|
3031
3053
|
/** @class */
|
|
3032
3054
|
function() {
|
|
3033
3055
|
function e(t, r) {
|
|
@@ -3058,7 +3080,7 @@ var In = (
|
|
|
3058
3080
|
if (n)
|
|
3059
3081
|
break;
|
|
3060
3082
|
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3061
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3083
|
+
} else if (o === 60 && !this.ignoreTag && Ve(this.peek() || 0)) {
|
|
3062
3084
|
var s = this.parseTag(t, r);
|
|
3063
3085
|
if (s.err)
|
|
3064
3086
|
return s;
|
|
@@ -3091,7 +3113,7 @@ var In = (
|
|
|
3091
3113
|
return o;
|
|
3092
3114
|
var s = o.val, a = this.clonePosition();
|
|
3093
3115
|
if (this.bumpIf("</")) {
|
|
3094
|
-
if (this.isEOF() || !
|
|
3116
|
+
if (this.isEOF() || !Ve(this.char()))
|
|
3095
3117
|
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3096
3118
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3097
3119
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3109,7 +3131,7 @@ var In = (
|
|
|
3109
3131
|
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3110
3132
|
}, e.prototype.parseTagName = function() {
|
|
3111
3133
|
var t = this.offset();
|
|
3112
|
-
for (this.bump(); !this.isEOF() &&
|
|
3134
|
+
for (this.bump(); !this.isEOF() && Un(this.char()); )
|
|
3113
3135
|
this.bump();
|
|
3114
3136
|
return this.message.slice(t, this.offset());
|
|
3115
3137
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3138,7 +3160,7 @@ var In = (
|
|
|
3138
3160
|
};
|
|
3139
3161
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3140
3162
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3141
|
-
!
|
|
3163
|
+
!Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3142
3164
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3143
3165
|
if (this.isEOF() || this.char() !== 39)
|
|
3144
3166
|
return null;
|
|
@@ -3172,12 +3194,12 @@ var In = (
|
|
|
3172
3194
|
r.push(n);
|
|
3173
3195
|
this.bump();
|
|
3174
3196
|
}
|
|
3175
|
-
return
|
|
3197
|
+
return ke.apply(void 0, r);
|
|
3176
3198
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3177
3199
|
if (this.isEOF())
|
|
3178
3200
|
return null;
|
|
3179
3201
|
var n = this.char();
|
|
3180
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3202
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3181
3203
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3182
3204
|
var n = this.clonePosition();
|
|
3183
3205
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3206,7 +3228,7 @@ var In = (
|
|
|
3206
3228
|
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3207
3229
|
}
|
|
3208
3230
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3209
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3231
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3210
3232
|
this.bumpTo(i);
|
|
3211
3233
|
var o = this.clonePosition(), s = g(t, o);
|
|
3212
3234
|
return { value: n, location: s };
|
|
@@ -3225,7 +3247,7 @@ var In = (
|
|
|
3225
3247
|
var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
|
|
3226
3248
|
if (h.err)
|
|
3227
3249
|
return h;
|
|
3228
|
-
var f =
|
|
3250
|
+
var f = $n(h.val);
|
|
3229
3251
|
if (f.length === 0)
|
|
3230
3252
|
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3231
3253
|
var p = g(c, this.clonePosition());
|
|
@@ -3235,8 +3257,8 @@ var In = (
|
|
|
3235
3257
|
if (m.err)
|
|
3236
3258
|
return m;
|
|
3237
3259
|
var d = g(i, this.clonePosition());
|
|
3238
|
-
if (u &&
|
|
3239
|
-
var A =
|
|
3260
|
+
if (u && mt(u?.style, "::", 0)) {
|
|
3261
|
+
var A = Ln(u.style.slice(2));
|
|
3240
3262
|
if (a === "number") {
|
|
3241
3263
|
var h = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
3242
3264
|
return h.err ? h : {
|
|
@@ -3247,12 +3269,12 @@ var In = (
|
|
|
3247
3269
|
if (A.length === 0)
|
|
3248
3270
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
|
|
3249
3271
|
var P = A;
|
|
3250
|
-
this.locale && (P =
|
|
3272
|
+
this.locale && (P = _n(A, this.locale));
|
|
3251
3273
|
var f = {
|
|
3252
3274
|
type: Y.dateTime,
|
|
3253
3275
|
pattern: P,
|
|
3254
3276
|
location: u.styleLocation,
|
|
3255
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3277
|
+
parsedOptions: this.shouldParseSkeletons ? mn(P) : {}
|
|
3256
3278
|
}, S = a === "date" ? C.date : C.time;
|
|
3257
3279
|
return {
|
|
3258
3280
|
val: { type: S, value: n, location: d, style: f },
|
|
@@ -3298,7 +3320,7 @@ var In = (
|
|
|
3298
3320
|
val: {
|
|
3299
3321
|
type: C.select,
|
|
3300
3322
|
value: n,
|
|
3301
|
-
options:
|
|
3323
|
+
options: bt(T.val),
|
|
3302
3324
|
location: O
|
|
3303
3325
|
},
|
|
3304
3326
|
err: null
|
|
@@ -3306,7 +3328,7 @@ var In = (
|
|
|
3306
3328
|
val: {
|
|
3307
3329
|
type: C.plural,
|
|
3308
3330
|
value: n,
|
|
3309
|
-
options:
|
|
3331
|
+
options: bt(T.val),
|
|
3310
3332
|
offset: _,
|
|
3311
3333
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3312
3334
|
location: O
|
|
@@ -3357,7 +3379,7 @@ var In = (
|
|
|
3357
3379
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3358
3380
|
var n = [];
|
|
3359
3381
|
try {
|
|
3360
|
-
n =
|
|
3382
|
+
n = vn(t);
|
|
3361
3383
|
} catch {
|
|
3362
3384
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3363
3385
|
}
|
|
@@ -3366,7 +3388,7 @@ var In = (
|
|
|
3366
3388
|
type: Y.number,
|
|
3367
3389
|
tokens: n,
|
|
3368
3390
|
location: r,
|
|
3369
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3391
|
+
parsedOptions: this.shouldParseSkeletons ? En(n) : {}
|
|
3370
3392
|
},
|
|
3371
3393
|
err: null
|
|
3372
3394
|
};
|
|
@@ -3414,7 +3436,7 @@ var In = (
|
|
|
3414
3436
|
break;
|
|
3415
3437
|
}
|
|
3416
3438
|
var l = g(i, this.clonePosition());
|
|
3417
|
-
return o ? (s *= n,
|
|
3439
|
+
return o ? (s *= n, In(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3418
3440
|
}, e.prototype.offset = function() {
|
|
3419
3441
|
return this.position.offset;
|
|
3420
3442
|
}, e.prototype.isEOF = function() {
|
|
@@ -3429,7 +3451,7 @@ var In = (
|
|
|
3429
3451
|
var t = this.position.offset;
|
|
3430
3452
|
if (t >= this.message.length)
|
|
3431
3453
|
throw Error("out of bound");
|
|
3432
|
-
var r =
|
|
3454
|
+
var r = Yt(this.message, t);
|
|
3433
3455
|
if (r === void 0)
|
|
3434
3456
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3435
3457
|
return r;
|
|
@@ -3448,7 +3470,7 @@ var In = (
|
|
|
3448
3470
|
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);
|
|
3449
3471
|
}
|
|
3450
3472
|
}, e.prototype.bumpIf = function(t) {
|
|
3451
|
-
if (
|
|
3473
|
+
if (mt(this.message, t, this.offset())) {
|
|
3452
3474
|
for (var r = 0; r < t.length; r++)
|
|
3453
3475
|
this.bump();
|
|
3454
3476
|
return !0;
|
|
@@ -3470,7 +3492,7 @@ var In = (
|
|
|
3470
3492
|
break;
|
|
3471
3493
|
}
|
|
3472
3494
|
}, e.prototype.bumpSpace = function() {
|
|
3473
|
-
for (; !this.isEOF() &&
|
|
3495
|
+
for (; !this.isEOF() && Kt(this.char()); )
|
|
3474
3496
|
this.bump();
|
|
3475
3497
|
}, e.prototype.peek = function() {
|
|
3476
3498
|
if (this.isEOF())
|
|
@@ -3480,32 +3502,32 @@ var In = (
|
|
|
3480
3502
|
}, e;
|
|
3481
3503
|
}()
|
|
3482
3504
|
);
|
|
3483
|
-
function
|
|
3505
|
+
function Ve(e) {
|
|
3484
3506
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3485
3507
|
}
|
|
3486
|
-
function
|
|
3487
|
-
return
|
|
3508
|
+
function Dn(e) {
|
|
3509
|
+
return Ve(e) || e === 47;
|
|
3488
3510
|
}
|
|
3489
|
-
function
|
|
3511
|
+
function Un(e) {
|
|
3490
3512
|
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;
|
|
3491
3513
|
}
|
|
3492
|
-
function
|
|
3514
|
+
function Kt(e) {
|
|
3493
3515
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3494
3516
|
}
|
|
3495
|
-
function
|
|
3517
|
+
function Fn(e) {
|
|
3496
3518
|
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;
|
|
3497
3519
|
}
|
|
3498
3520
|
function We(e) {
|
|
3499
3521
|
e.forEach(function(t) {
|
|
3500
|
-
if (delete t.location,
|
|
3522
|
+
if (delete t.location, kt(t) || zt(t))
|
|
3501
3523
|
for (var r in t.options)
|
|
3502
3524
|
delete t.options[r].location, We(t.options[r].value);
|
|
3503
|
-
else
|
|
3525
|
+
else Ft(t) && Wt(t.style) || (Gt(t) || jt(t)) && Ge(t.style) ? delete t.style.location : Vt(t) && We(t.children);
|
|
3504
3526
|
});
|
|
3505
3527
|
}
|
|
3506
|
-
function
|
|
3528
|
+
function Gn(e, t) {
|
|
3507
3529
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3508
|
-
var r = new
|
|
3530
|
+
var r = new Rn(e, t).parse();
|
|
3509
3531
|
if (r.err) {
|
|
3510
3532
|
var n = SyntaxError(b[r.err.kind]);
|
|
3511
3533
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3528,7 +3550,7 @@ var _e = (
|
|
|
3528
3550
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3529
3551
|
}, t;
|
|
3530
3552
|
}(Error)
|
|
3531
|
-
),
|
|
3553
|
+
), gt = (
|
|
3532
3554
|
/** @class */
|
|
3533
3555
|
function(e) {
|
|
3534
3556
|
R(t, e);
|
|
@@ -3537,7 +3559,7 @@ var _e = (
|
|
|
3537
3559
|
}
|
|
3538
3560
|
return t;
|
|
3539
3561
|
}(_e)
|
|
3540
|
-
),
|
|
3562
|
+
), jn = (
|
|
3541
3563
|
/** @class */
|
|
3542
3564
|
function(e) {
|
|
3543
3565
|
R(t, e);
|
|
@@ -3546,7 +3568,7 @@ var _e = (
|
|
|
3546
3568
|
}
|
|
3547
3569
|
return t;
|
|
3548
3570
|
}(_e)
|
|
3549
|
-
),
|
|
3571
|
+
), kn = (
|
|
3550
3572
|
/** @class */
|
|
3551
3573
|
function(e) {
|
|
3552
3574
|
R(t, e);
|
|
@@ -3559,17 +3581,17 @@ var _e = (
|
|
|
3559
3581
|
(function(e) {
|
|
3560
3582
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3561
3583
|
})(M || (M = {}));
|
|
3562
|
-
function
|
|
3584
|
+
function zn(e) {
|
|
3563
3585
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3564
3586
|
var n = t[t.length - 1];
|
|
3565
3587
|
return !n || n.type !== M.literal || r.type !== M.literal ? t.push(r) : n.value += r.value, t;
|
|
3566
3588
|
}, []);
|
|
3567
3589
|
}
|
|
3568
|
-
function
|
|
3590
|
+
function Vn(e) {
|
|
3569
3591
|
return typeof e == "function";
|
|
3570
3592
|
}
|
|
3571
3593
|
function de(e, t, r, n, i, o, s) {
|
|
3572
|
-
if (e.length === 1 &&
|
|
3594
|
+
if (e.length === 1 && ht(e[0]))
|
|
3573
3595
|
return [
|
|
3574
3596
|
{
|
|
3575
3597
|
type: M.literal,
|
|
@@ -3578,14 +3600,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3578
3600
|
];
|
|
3579
3601
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3580
3602
|
var c = u[l];
|
|
3581
|
-
if (
|
|
3603
|
+
if (ht(c)) {
|
|
3582
3604
|
a.push({
|
|
3583
3605
|
type: M.literal,
|
|
3584
3606
|
value: c.value
|
|
3585
3607
|
});
|
|
3586
3608
|
continue;
|
|
3587
3609
|
}
|
|
3588
|
-
if (
|
|
3610
|
+
if (pn(c)) {
|
|
3589
3611
|
typeof o == "number" && a.push({
|
|
3590
3612
|
type: M.literal,
|
|
3591
3613
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3594,43 +3616,43 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3594
3616
|
}
|
|
3595
3617
|
var h = c.value;
|
|
3596
3618
|
if (!(i && h in i))
|
|
3597
|
-
throw new
|
|
3619
|
+
throw new kn(h, s);
|
|
3598
3620
|
var f = i[h];
|
|
3599
|
-
if (
|
|
3621
|
+
if (fn(c)) {
|
|
3600
3622
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3601
3623
|
type: typeof f == "string" ? M.literal : M.object,
|
|
3602
3624
|
value: f
|
|
3603
3625
|
});
|
|
3604
3626
|
continue;
|
|
3605
3627
|
}
|
|
3606
|
-
if (
|
|
3607
|
-
var p = typeof c.style == "string" ? n.date[c.style] :
|
|
3628
|
+
if (Gt(c)) {
|
|
3629
|
+
var p = typeof c.style == "string" ? n.date[c.style] : Ge(c.style) ? c.style.parsedOptions : void 0;
|
|
3608
3630
|
a.push({
|
|
3609
3631
|
type: M.literal,
|
|
3610
3632
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3611
3633
|
});
|
|
3612
3634
|
continue;
|
|
3613
3635
|
}
|
|
3614
|
-
if (
|
|
3615
|
-
var p = typeof c.style == "string" ? n.time[c.style] :
|
|
3636
|
+
if (jt(c)) {
|
|
3637
|
+
var p = typeof c.style == "string" ? n.time[c.style] : Ge(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3616
3638
|
a.push({
|
|
3617
3639
|
type: M.literal,
|
|
3618
3640
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3619
3641
|
});
|
|
3620
3642
|
continue;
|
|
3621
3643
|
}
|
|
3622
|
-
if (
|
|
3623
|
-
var p = typeof c.style == "string" ? n.number[c.style] :
|
|
3644
|
+
if (Ft(c)) {
|
|
3645
|
+
var p = typeof c.style == "string" ? n.number[c.style] : Wt(c.style) ? c.style.parsedOptions : void 0;
|
|
3624
3646
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3625
3647
|
type: M.literal,
|
|
3626
3648
|
value: r.getNumberFormat(t, p).format(f)
|
|
3627
3649
|
});
|
|
3628
3650
|
continue;
|
|
3629
3651
|
}
|
|
3630
|
-
if (
|
|
3652
|
+
if (Vt(c)) {
|
|
3631
3653
|
var m = c.children, d = c.value, A = i[d];
|
|
3632
|
-
if (!
|
|
3633
|
-
throw new
|
|
3654
|
+
if (!Vn(A))
|
|
3655
|
+
throw new jn(d, "function", s);
|
|
3634
3656
|
var P = de(m, t, r, n, i, o), S = A(P.map(function(_) {
|
|
3635
3657
|
return _.value;
|
|
3636
3658
|
}));
|
|
@@ -3641,14 +3663,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3641
3663
|
};
|
|
3642
3664
|
}));
|
|
3643
3665
|
}
|
|
3644
|
-
if (
|
|
3666
|
+
if (kt(c)) {
|
|
3645
3667
|
var w = c.options[f] || c.options.other;
|
|
3646
3668
|
if (!w)
|
|
3647
|
-
throw new
|
|
3669
|
+
throw new gt(c.value, f, Object.keys(c.options), s);
|
|
3648
3670
|
a.push.apply(a, de(w.value, t, r, n, i));
|
|
3649
3671
|
continue;
|
|
3650
3672
|
}
|
|
3651
|
-
if (
|
|
3673
|
+
if (zt(c)) {
|
|
3652
3674
|
var w = c.options["=".concat(f)];
|
|
3653
3675
|
if (!w) {
|
|
3654
3676
|
if (!Intl.PluralRules)
|
|
@@ -3659,24 +3681,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3659
3681
|
w = c.options[H] || c.options.other;
|
|
3660
3682
|
}
|
|
3661
3683
|
if (!w)
|
|
3662
|
-
throw new
|
|
3684
|
+
throw new gt(c.value, f, Object.keys(c.options), s);
|
|
3663
3685
|
a.push.apply(a, de(w.value, t, r, n, i, f - (c.offset || 0)));
|
|
3664
3686
|
continue;
|
|
3665
3687
|
}
|
|
3666
3688
|
}
|
|
3667
|
-
return
|
|
3689
|
+
return zn(a);
|
|
3668
3690
|
}
|
|
3669
|
-
function
|
|
3691
|
+
function Wn(e, t) {
|
|
3670
3692
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3671
3693
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3672
3694
|
}, {})) : e;
|
|
3673
3695
|
}
|
|
3674
|
-
function
|
|
3696
|
+
function Xn(e, t) {
|
|
3675
3697
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3676
|
-
return r[n] =
|
|
3698
|
+
return r[n] = Wn(e[n], t[n]), r;
|
|
3677
3699
|
}, y({}, e)) : e;
|
|
3678
3700
|
}
|
|
3679
|
-
function
|
|
3701
|
+
function Pe(e) {
|
|
3680
3702
|
return {
|
|
3681
3703
|
create: function() {
|
|
3682
3704
|
return {
|
|
@@ -3690,39 +3712,39 @@ function Me(e) {
|
|
|
3690
3712
|
}
|
|
3691
3713
|
};
|
|
3692
3714
|
}
|
|
3693
|
-
function
|
|
3715
|
+
function Zn(e) {
|
|
3694
3716
|
return e === void 0 && (e = {
|
|
3695
3717
|
number: {},
|
|
3696
3718
|
dateTime: {},
|
|
3697
3719
|
pluralRules: {}
|
|
3698
3720
|
}), {
|
|
3699
|
-
getNumberFormat:
|
|
3721
|
+
getNumberFormat: Be(function() {
|
|
3700
3722
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3701
3723
|
r[n] = arguments[n];
|
|
3702
3724
|
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
|
|
3703
3725
|
}, {
|
|
3704
|
-
cache:
|
|
3705
|
-
strategy:
|
|
3726
|
+
cache: Pe(e.number),
|
|
3727
|
+
strategy: He.variadic
|
|
3706
3728
|
}),
|
|
3707
|
-
getDateTimeFormat:
|
|
3729
|
+
getDateTimeFormat: Be(function() {
|
|
3708
3730
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3709
3731
|
r[n] = arguments[n];
|
|
3710
3732
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
|
|
3711
3733
|
}, {
|
|
3712
|
-
cache:
|
|
3713
|
-
strategy:
|
|
3734
|
+
cache: Pe(e.dateTime),
|
|
3735
|
+
strategy: He.variadic
|
|
3714
3736
|
}),
|
|
3715
|
-
getPluralRules:
|
|
3737
|
+
getPluralRules: Be(function() {
|
|
3716
3738
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3717
3739
|
r[n] = arguments[n];
|
|
3718
3740
|
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
|
|
3719
3741
|
}, {
|
|
3720
|
-
cache:
|
|
3721
|
-
strategy:
|
|
3742
|
+
cache: Pe(e.pluralRules),
|
|
3743
|
+
strategy: He.variadic
|
|
3722
3744
|
})
|
|
3723
3745
|
};
|
|
3724
3746
|
}
|
|
3725
|
-
var
|
|
3747
|
+
var qn = (
|
|
3726
3748
|
/** @class */
|
|
3727
3749
|
function() {
|
|
3728
3750
|
function e(t, r, n, i) {
|
|
@@ -3754,13 +3776,13 @@ var Vn = (
|
|
|
3754
3776
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3755
3777
|
var s = i || {};
|
|
3756
3778
|
s.formatters;
|
|
3757
|
-
var a =
|
|
3779
|
+
var a = Tr(s, ["formatters"]);
|
|
3758
3780
|
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3759
3781
|
} else
|
|
3760
3782
|
this.ast = t;
|
|
3761
3783
|
if (!Array.isArray(this.ast))
|
|
3762
3784
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3763
|
-
this.formats =
|
|
3785
|
+
this.formats = Xn(e.formats, n), this.formatters = i && i.formatters || Zn(this.formatterCache);
|
|
3764
3786
|
}
|
|
3765
3787
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3766
3788
|
get: function() {
|
|
@@ -3773,7 +3795,7 @@ var Vn = (
|
|
|
3773
3795
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3774
3796
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3775
3797
|
}
|
|
3776
|
-
}, e.__parse =
|
|
3798
|
+
}, e.__parse = Gn, e.formats = {
|
|
3777
3799
|
number: {
|
|
3778
3800
|
integer: {
|
|
3779
3801
|
maximumFractionDigits: 0
|
|
@@ -3834,7 +3856,7 @@ var Vn = (
|
|
|
3834
3856
|
}, e;
|
|
3835
3857
|
}()
|
|
3836
3858
|
);
|
|
3837
|
-
function
|
|
3859
|
+
function Qn(e, t) {
|
|
3838
3860
|
if (t == null)
|
|
3839
3861
|
return;
|
|
3840
3862
|
if (t in e)
|
|
@@ -3855,92 +3877,92 @@ function Xn(e, t) {
|
|
|
3855
3877
|
n = void 0;
|
|
3856
3878
|
return n;
|
|
3857
3879
|
}
|
|
3858
|
-
const D = {},
|
|
3880
|
+
const D = {}, Yn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), er = (e, t) => {
|
|
3859
3881
|
if (t == null)
|
|
3860
3882
|
return;
|
|
3861
3883
|
if (t in D && e in D[t])
|
|
3862
3884
|
return D[t][e];
|
|
3863
3885
|
const r = Ce(t);
|
|
3864
3886
|
for (let n = 0; n < r.length; n++) {
|
|
3865
|
-
const i = r[n], o =
|
|
3887
|
+
const i = r[n], o = Kn(i, e);
|
|
3866
3888
|
if (o)
|
|
3867
|
-
return
|
|
3889
|
+
return Yn(e, t, o);
|
|
3868
3890
|
}
|
|
3869
3891
|
};
|
|
3870
|
-
let
|
|
3892
|
+
let Ke;
|
|
3871
3893
|
const le = Ee({});
|
|
3872
|
-
function
|
|
3873
|
-
return
|
|
3894
|
+
function Jn(e) {
|
|
3895
|
+
return Ke[e] || null;
|
|
3874
3896
|
}
|
|
3875
|
-
function
|
|
3876
|
-
return e in
|
|
3897
|
+
function tr(e) {
|
|
3898
|
+
return e in Ke;
|
|
3877
3899
|
}
|
|
3878
|
-
function
|
|
3879
|
-
if (!
|
|
3900
|
+
function Kn(e, t) {
|
|
3901
|
+
if (!tr(e))
|
|
3880
3902
|
return null;
|
|
3881
|
-
const r =
|
|
3882
|
-
return
|
|
3903
|
+
const r = Jn(e);
|
|
3904
|
+
return Qn(r, t);
|
|
3883
3905
|
}
|
|
3884
|
-
function
|
|
3906
|
+
function ei(e) {
|
|
3885
3907
|
if (e == null)
|
|
3886
3908
|
return;
|
|
3887
3909
|
const t = Ce(e);
|
|
3888
3910
|
for (let r = 0; r < t.length; r++) {
|
|
3889
3911
|
const n = t[r];
|
|
3890
|
-
if (
|
|
3912
|
+
if (tr(n))
|
|
3891
3913
|
return n;
|
|
3892
3914
|
}
|
|
3893
3915
|
}
|
|
3894
|
-
function
|
|
3895
|
-
delete D[e], le.update((r) => (r[e] =
|
|
3916
|
+
function rr(e, ...t) {
|
|
3917
|
+
delete D[e], le.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
3896
3918
|
}
|
|
3897
3919
|
te(
|
|
3898
3920
|
[le],
|
|
3899
3921
|
([e]) => Object.keys(e)
|
|
3900
3922
|
);
|
|
3901
|
-
le.subscribe((e) =>
|
|
3923
|
+
le.subscribe((e) => Ke = e);
|
|
3902
3924
|
const me = {};
|
|
3903
|
-
function
|
|
3925
|
+
function ti(e, t) {
|
|
3904
3926
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
3905
3927
|
}
|
|
3906
|
-
function
|
|
3928
|
+
function nr(e) {
|
|
3907
3929
|
return me[e];
|
|
3908
3930
|
}
|
|
3909
|
-
function
|
|
3931
|
+
function ri(e) {
|
|
3910
3932
|
return Ce(e).map((t) => {
|
|
3911
|
-
const r =
|
|
3933
|
+
const r = nr(t);
|
|
3912
3934
|
return [t, r ? [...r] : []];
|
|
3913
3935
|
}).filter(([, t]) => t.length > 0);
|
|
3914
3936
|
}
|
|
3915
|
-
function
|
|
3937
|
+
function Xe(e) {
|
|
3916
3938
|
return e == null ? !1 : Ce(e).some(
|
|
3917
3939
|
(t) => {
|
|
3918
3940
|
var r;
|
|
3919
|
-
return (r =
|
|
3941
|
+
return (r = nr(t)) == null ? void 0 : r.size;
|
|
3920
3942
|
}
|
|
3921
3943
|
);
|
|
3922
3944
|
}
|
|
3923
|
-
function
|
|
3945
|
+
function ni(e, t) {
|
|
3924
3946
|
return Promise.all(
|
|
3925
|
-
t.map((n) => (
|
|
3926
|
-
).then((n) =>
|
|
3947
|
+
t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
|
|
3948
|
+
).then((n) => rr(e, ...n));
|
|
3927
3949
|
}
|
|
3928
3950
|
const ie = {};
|
|
3929
|
-
function
|
|
3930
|
-
if (!
|
|
3951
|
+
function ir(e) {
|
|
3952
|
+
if (!Xe(e))
|
|
3931
3953
|
return e in ie ? ie[e] : Promise.resolve();
|
|
3932
|
-
const t =
|
|
3954
|
+
const t = ri(e);
|
|
3933
3955
|
return ie[e] = Promise.all(
|
|
3934
3956
|
t.map(
|
|
3935
|
-
([r, n]) =>
|
|
3957
|
+
([r, n]) => ni(r, n)
|
|
3936
3958
|
)
|
|
3937
3959
|
).then(() => {
|
|
3938
|
-
if (
|
|
3939
|
-
return
|
|
3960
|
+
if (Xe(e))
|
|
3961
|
+
return ir(e);
|
|
3940
3962
|
delete ie[e];
|
|
3941
3963
|
}), ie[e];
|
|
3942
3964
|
}
|
|
3943
|
-
const
|
|
3965
|
+
const ii = {
|
|
3944
3966
|
number: {
|
|
3945
3967
|
scientific: { notation: "scientific" },
|
|
3946
3968
|
engineering: { notation: "engineering" },
|
|
@@ -3969,57 +3991,57 @@ const ti = {
|
|
|
3969
3991
|
timeZoneName: "short"
|
|
3970
3992
|
}
|
|
3971
3993
|
}
|
|
3972
|
-
},
|
|
3994
|
+
}, oi = {
|
|
3973
3995
|
fallbackLocale: null,
|
|
3974
3996
|
loadingDelay: 200,
|
|
3975
|
-
formats:
|
|
3997
|
+
formats: ii,
|
|
3976
3998
|
warnOnMissingMessages: !0,
|
|
3977
3999
|
handleMissingMessage: void 0,
|
|
3978
4000
|
ignoreTag: !0
|
|
3979
|
-
},
|
|
4001
|
+
}, si = oi;
|
|
3980
4002
|
function K() {
|
|
3981
|
-
return
|
|
4003
|
+
return si;
|
|
3982
4004
|
}
|
|
3983
|
-
const
|
|
3984
|
-
var
|
|
4005
|
+
const Oe = Ee(!1);
|
|
4006
|
+
var ai = Object.defineProperty, ui = Object.defineProperties, li = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, fi = (e, t) => {
|
|
3985
4007
|
for (var r in t || (t = {}))
|
|
3986
|
-
|
|
3987
|
-
if (
|
|
3988
|
-
for (var r of
|
|
3989
|
-
|
|
4008
|
+
ci.call(t, r) && xt(e, r, t[r]);
|
|
4009
|
+
if (yt)
|
|
4010
|
+
for (var r of yt(t))
|
|
4011
|
+
hi.call(t, r) && xt(e, r, t[r]);
|
|
3990
4012
|
return e;
|
|
3991
|
-
},
|
|
3992
|
-
let
|
|
4013
|
+
}, pi = (e, t) => ui(e, li(t));
|
|
4014
|
+
let Ze;
|
|
3993
4015
|
const ve = Ee(null);
|
|
3994
|
-
function
|
|
4016
|
+
function Et(e) {
|
|
3995
4017
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3996
4018
|
}
|
|
3997
4019
|
function Ce(e, t = K().fallbackLocale) {
|
|
3998
|
-
const r =
|
|
3999
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4020
|
+
const r = Et(e);
|
|
4021
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Et(t)])] : r;
|
|
4000
4022
|
}
|
|
4001
4023
|
function G() {
|
|
4002
|
-
return
|
|
4024
|
+
return Ze ?? void 0;
|
|
4003
4025
|
}
|
|
4004
4026
|
ve.subscribe((e) => {
|
|
4005
|
-
|
|
4027
|
+
Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4006
4028
|
});
|
|
4007
|
-
const
|
|
4008
|
-
if (e &&
|
|
4029
|
+
const di = (e) => {
|
|
4030
|
+
if (e && ei(e) && Xe(e)) {
|
|
4009
4031
|
const { loadingDelay: t } = K();
|
|
4010
4032
|
let r;
|
|
4011
4033
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4012
|
-
() =>
|
|
4034
|
+
() => Oe.set(!0),
|
|
4013
4035
|
t
|
|
4014
|
-
) :
|
|
4036
|
+
) : Oe.set(!0), ir(e).then(() => {
|
|
4015
4037
|
ve.set(e);
|
|
4016
4038
|
}).finally(() => {
|
|
4017
|
-
clearTimeout(r),
|
|
4039
|
+
clearTimeout(r), Oe.set(!1);
|
|
4018
4040
|
});
|
|
4019
4041
|
}
|
|
4020
4042
|
return ve.set(e);
|
|
4021
|
-
}, re =
|
|
4022
|
-
set:
|
|
4043
|
+
}, re = pi(fi({}, ve), {
|
|
4044
|
+
set: di
|
|
4023
4045
|
}), Ae = (e) => {
|
|
4024
4046
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4025
4047
|
return (n) => {
|
|
@@ -4027,20 +4049,20 @@ const hi = (e) => {
|
|
|
4027
4049
|
return i in t ? t[i] : t[i] = e(n);
|
|
4028
4050
|
};
|
|
4029
4051
|
};
|
|
4030
|
-
var
|
|
4052
|
+
var mi = Object.defineProperty, ge = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
4031
4053
|
for (var r in t || (t = {}))
|
|
4032
|
-
|
|
4054
|
+
or.call(t, r) && _t(e, r, t[r]);
|
|
4033
4055
|
if (ge)
|
|
4034
4056
|
for (var r of ge(t))
|
|
4035
|
-
|
|
4057
|
+
sr.call(t, r) && _t(e, r, t[r]);
|
|
4036
4058
|
return e;
|
|
4037
4059
|
}, ne = (e, t) => {
|
|
4038
4060
|
var r = {};
|
|
4039
4061
|
for (var n in e)
|
|
4040
|
-
|
|
4062
|
+
or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4041
4063
|
if (e != null && ge)
|
|
4042
4064
|
for (var n of ge(e))
|
|
4043
|
-
t.indexOf(n) < 0 &&
|
|
4065
|
+
t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
|
|
4044
4066
|
return r;
|
|
4045
4067
|
};
|
|
4046
4068
|
const ae = (e, t) => {
|
|
@@ -4048,21 +4070,21 @@ const ae = (e, t) => {
|
|
|
4048
4070
|
if (e in r && t in r[e])
|
|
4049
4071
|
return r[e][t];
|
|
4050
4072
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4051
|
-
},
|
|
4073
|
+
}, bi = Ae(
|
|
4052
4074
|
(e) => {
|
|
4053
4075
|
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
4054
4076
|
if (r == null)
|
|
4055
4077
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4056
4078
|
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
4057
4079
|
}
|
|
4058
|
-
),
|
|
4080
|
+
), vi = Ae(
|
|
4059
4081
|
(e) => {
|
|
4060
4082
|
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
4061
4083
|
if (r == null)
|
|
4062
4084
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4063
4085
|
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4064
4086
|
}
|
|
4065
|
-
),
|
|
4087
|
+
), gi = Ae(
|
|
4066
4088
|
(e) => {
|
|
4067
4089
|
var t = e, { locale: r, format: n } = t, i = ne(t, ["locale", "format"]);
|
|
4068
4090
|
if (r == null)
|
|
@@ -4071,33 +4093,33 @@ const ae = (e, t) => {
|
|
|
4071
4093
|
);
|
|
4072
4094
|
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4073
4095
|
}
|
|
4074
|
-
),
|
|
4096
|
+
), yi = (e = {}) => {
|
|
4075
4097
|
var t = e, {
|
|
4076
4098
|
locale: r = G()
|
|
4077
4099
|
} = t, n = ne(t, [
|
|
4078
4100
|
"locale"
|
|
4079
4101
|
]);
|
|
4080
|
-
return
|
|
4081
|
-
},
|
|
4102
|
+
return bi(et({ locale: r }, n));
|
|
4103
|
+
}, xi = (e = {}) => {
|
|
4082
4104
|
var t = e, {
|
|
4083
4105
|
locale: r = G()
|
|
4084
4106
|
} = t, n = ne(t, [
|
|
4085
4107
|
"locale"
|
|
4086
4108
|
]);
|
|
4087
|
-
return
|
|
4088
|
-
},
|
|
4109
|
+
return vi(et({ locale: r }, n));
|
|
4110
|
+
}, Ei = (e = {}) => {
|
|
4089
4111
|
var t = e, {
|
|
4090
4112
|
locale: r = G()
|
|
4091
4113
|
} = t, n = ne(t, [
|
|
4092
4114
|
"locale"
|
|
4093
4115
|
]);
|
|
4094
|
-
return
|
|
4095
|
-
},
|
|
4116
|
+
return gi(et({ locale: r }, n));
|
|
4117
|
+
}, _i = Ae(
|
|
4096
4118
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4097
|
-
(e, t = G()) => new
|
|
4119
|
+
(e, t = G()) => new qn(e, t, K().formats, {
|
|
4098
4120
|
ignoreTag: K().ignoreTag
|
|
4099
4121
|
})
|
|
4100
|
-
),
|
|
4122
|
+
), Ci = (e, t = {}) => {
|
|
4101
4123
|
var r, n, i, o;
|
|
4102
4124
|
let s = t;
|
|
4103
4125
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4110,7 +4132,7 @@ const ae = (e, t) => {
|
|
|
4110
4132
|
throw new Error(
|
|
4111
4133
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4112
4134
|
);
|
|
4113
|
-
let c =
|
|
4135
|
+
let c = er(e, l);
|
|
4114
4136
|
if (!c)
|
|
4115
4137
|
c = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4116
4138
|
else if (typeof c != "string")
|
|
@@ -4121,7 +4143,7 @@ const ae = (e, t) => {
|
|
|
4121
4143
|
return c;
|
|
4122
4144
|
let h = c;
|
|
4123
4145
|
try {
|
|
4124
|
-
h =
|
|
4146
|
+
h = _i(c, l).format(a);
|
|
4125
4147
|
} catch (f) {
|
|
4126
4148
|
f instanceof Error && console.warn(
|
|
4127
4149
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4129,20 +4151,20 @@ const ae = (e, t) => {
|
|
|
4129
4151
|
);
|
|
4130
4152
|
}
|
|
4131
4153
|
return h;
|
|
4132
|
-
},
|
|
4133
|
-
te([re], () =>
|
|
4134
|
-
te([re], () =>
|
|
4135
|
-
te([re], () =>
|
|
4136
|
-
te([re, le], () =>
|
|
4137
|
-
window.emWidgets = { topic:
|
|
4138
|
-
const
|
|
4139
|
-
function
|
|
4140
|
-
|
|
4141
|
-
}
|
|
4142
|
-
function
|
|
4154
|
+
}, Ai = (e, t) => Ei(t).format(e), wi = (e, t) => xi(t).format(e), Si = (e, t) => yi(t).format(e), Ti = (e, t = G()) => er(e, t), Bi = te([re, le], () => Ci);
|
|
4155
|
+
te([re], () => Ai);
|
|
4156
|
+
te([re], () => wi);
|
|
4157
|
+
te([re], () => Si);
|
|
4158
|
+
te([re, le], () => Ti);
|
|
4159
|
+
window.emWidgets = { topic: Gr };
|
|
4160
|
+
const Hi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4161
|
+
function Ct(e, t) {
|
|
4162
|
+
rr(e, t);
|
|
4163
|
+
}
|
|
4164
|
+
function Mi(e) {
|
|
4143
4165
|
re.set(e);
|
|
4144
4166
|
}
|
|
4145
|
-
const
|
|
4167
|
+
const At = {
|
|
4146
4168
|
en: {
|
|
4147
4169
|
titleAccountClosure: "Account Closure",
|
|
4148
4170
|
accountClosureDescription: "Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",
|
|
@@ -4232,10 +4254,10 @@ const Et = {
|
|
|
4232
4254
|
accountClosureConfirm: "Yes"
|
|
4233
4255
|
}
|
|
4234
4256
|
};
|
|
4235
|
-
function
|
|
4236
|
-
|
|
4257
|
+
function Pi(e) {
|
|
4258
|
+
lr(e, "svelte-l1zvzl", '.AccountClosureWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--pam-color-bg, var(--emw--background-color, #F1F1F1));border-radius:5%;padding:50px;height:100vh}.AccountClosureWrapper.AccountClosureWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg .aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountClosureTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-normal, 400)}.AccountClosureTitleMobile{font-size:var(--emw--font-size-large, 20px)}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:var(--emw--font-size-small, 14px);line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:13px 0;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;max-width:400px;min-width:200px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;padding:10px 0;font-size:var(--emw--font-size-small, 14px);grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalContent::before{content:"";position:absolute;top:-6px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.ModalWrapper .ModalContent::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.ModalWrapper .ModalBody{background:transparent;padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:var(--emw--font-size-x-large, 24px);margin-bottom:40px;color:white}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:var(--emw--font-size-medium, 16px)}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:var(--emw--font-size-small, 14px)}');
|
|
4237
4259
|
}
|
|
4238
|
-
function
|
|
4260
|
+
function Oi(e) {
|
|
4239
4261
|
let t, r, n, i, o, s, a, l, u, c, h = (
|
|
4240
4262
|
/*$_*/
|
|
4241
4263
|
e[2]("titleAccountClosure") + ""
|
|
@@ -4262,7 +4284,7 @@ function Hi(e) {
|
|
|
4262
4284
|
}
|
|
4263
4285
|
};
|
|
4264
4286
|
}
|
|
4265
|
-
function
|
|
4287
|
+
function wt(e) {
|
|
4266
4288
|
let t, r, n, i, o = (
|
|
4267
4289
|
/*$_*/
|
|
4268
4290
|
e[2]("modal") + ""
|
|
@@ -4308,7 +4330,7 @@ function _t(e) {
|
|
|
4308
4330
|
}
|
|
4309
4331
|
};
|
|
4310
4332
|
}
|
|
4311
|
-
function
|
|
4333
|
+
function Ii(e) {
|
|
4312
4334
|
let t, r, n, i, o = (
|
|
4313
4335
|
/*$_*/
|
|
4314
4336
|
e[2]("titleAccountClosure") + ""
|
|
@@ -4320,10 +4342,10 @@ function Mi(e) {
|
|
|
4320
4342
|
e[2]("closeAccount") + ""
|
|
4321
4343
|
), A, P, S, w, H = (
|
|
4322
4344
|
/*isMobile*/
|
|
4323
|
-
e[3] &&
|
|
4345
|
+
e[3] && Oi(e)
|
|
4324
4346
|
), _ = (
|
|
4325
4347
|
/*closureModal*/
|
|
4326
|
-
e[1] &&
|
|
4348
|
+
e[1] && wt(e)
|
|
4327
4349
|
);
|
|
4328
4350
|
return {
|
|
4329
4351
|
c() {
|
|
@@ -4351,30 +4373,30 @@ function Mi(e) {
|
|
|
4351
4373
|
T[2]("accountClosureDescription") + "") && F(h, c), O & /*$_*/
|
|
4352
4374
|
4 && d !== (d = /*$_*/
|
|
4353
4375
|
T[2]("closeAccount") + "") && F(A, d), /*closureModal*/
|
|
4354
|
-
T[1] ? _ ? _.p(T, O) : (_ =
|
|
4376
|
+
T[1] ? _ ? _.p(T, O) : (_ = wt(T), _.c(), _.m(t, null)) : _ && (_.d(1), _ = null);
|
|
4355
4377
|
},
|
|
4356
|
-
i:
|
|
4357
|
-
o:
|
|
4378
|
+
i: I,
|
|
4379
|
+
o: I,
|
|
4358
4380
|
d(T) {
|
|
4359
4381
|
T && ue(t), H && H.d(), _ && _.d(), e[15](null), S = !1, w();
|
|
4360
4382
|
}
|
|
4361
4383
|
};
|
|
4362
4384
|
}
|
|
4363
|
-
function
|
|
4385
|
+
function Ni(e, t, r) {
|
|
4364
4386
|
let n;
|
|
4365
|
-
|
|
4366
|
-
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: a = "" } = t, l = window.navigator.userAgent, u =
|
|
4387
|
+
ur(e, Bi, (E) => r(2, n = E));
|
|
4388
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: a = "" } = t, l = window.navigator.userAgent, u = Hi(l) !== "PC", c = !1, h;
|
|
4367
4389
|
const f = () => {
|
|
4368
|
-
fetch(a).then((
|
|
4369
|
-
Object.keys(
|
|
4370
|
-
|
|
4390
|
+
fetch(a).then((N) => N.json()).then((N) => {
|
|
4391
|
+
Object.keys(N).forEach((j) => {
|
|
4392
|
+
Ct(j, N[j]);
|
|
4371
4393
|
});
|
|
4372
|
-
}).catch((
|
|
4373
|
-
console.log(
|
|
4394
|
+
}).catch((N) => {
|
|
4395
|
+
console.log(N);
|
|
4374
4396
|
});
|
|
4375
4397
|
};
|
|
4376
|
-
Object.keys(
|
|
4377
|
-
|
|
4398
|
+
Object.keys(At).forEach((E) => {
|
|
4399
|
+
Ct(E, At[E]);
|
|
4378
4400
|
});
|
|
4379
4401
|
const p = (E) => {
|
|
4380
4402
|
r(1, c = E), E === !0 ? window.postMessage({ type: "DisableScroll" }, window.location.href) : window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
@@ -4389,23 +4411,23 @@ function Pi(e, t, r) {
|
|
|
4389
4411
|
window.location.href
|
|
4390
4412
|
);
|
|
4391
4413
|
}, A = () => {
|
|
4392
|
-
|
|
4414
|
+
Mi(i);
|
|
4393
4415
|
}, P = () => {
|
|
4394
4416
|
let E = document.createElement("style");
|
|
4395
4417
|
E.innerHTML = o, h.appendChild(E);
|
|
4396
4418
|
}, S = () => {
|
|
4397
|
-
let E = new URL(s),
|
|
4419
|
+
let E = new URL(s), N = document.createElement("style");
|
|
4398
4420
|
fetch(E.href).then((j) => j.text()).then((j) => {
|
|
4399
|
-
|
|
4421
|
+
N.innerHTML = j, setTimeout(
|
|
4400
4422
|
() => {
|
|
4401
|
-
h.appendChild(
|
|
4423
|
+
h.appendChild(N);
|
|
4402
4424
|
},
|
|
4403
4425
|
1
|
|
4404
4426
|
);
|
|
4405
4427
|
});
|
|
4406
4428
|
}, w = () => d(), H = () => p(!0), _ = () => p(!1), T = () => m();
|
|
4407
4429
|
function O(E) {
|
|
4408
|
-
|
|
4430
|
+
Ie[E ? "unshift" : "push"](() => {
|
|
4409
4431
|
h = E, r(0, h);
|
|
4410
4432
|
});
|
|
4411
4433
|
}
|
|
@@ -4436,21 +4458,21 @@ function Pi(e, t, r) {
|
|
|
4436
4458
|
O
|
|
4437
4459
|
];
|
|
4438
4460
|
}
|
|
4439
|
-
class
|
|
4461
|
+
class Li extends wr {
|
|
4440
4462
|
constructor(t) {
|
|
4441
|
-
super(),
|
|
4463
|
+
super(), Cr(
|
|
4442
4464
|
this,
|
|
4443
4465
|
t,
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4466
|
+
Ni,
|
|
4467
|
+
Ii,
|
|
4468
|
+
Tt,
|
|
4447
4469
|
{
|
|
4448
4470
|
lang: 7,
|
|
4449
4471
|
clientstyling: 8,
|
|
4450
4472
|
clientstylingurl: 9,
|
|
4451
4473
|
translationurl: 10
|
|
4452
4474
|
},
|
|
4453
|
-
|
|
4475
|
+
Pi
|
|
4454
4476
|
);
|
|
4455
4477
|
}
|
|
4456
4478
|
get lang() {
|
|
@@ -4478,7 +4500,7 @@ class Oi extends Er {
|
|
|
4478
4500
|
this.$$set({ translationurl: t }), X();
|
|
4479
4501
|
}
|
|
4480
4502
|
}
|
|
4481
|
-
|
|
4503
|
+
Ar(Li, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4482
4504
|
export {
|
|
4483
|
-
|
|
4505
|
+
Li as P
|
|
4484
4506
|
};
|