@everymatrix/general-icon-progress-bar 1.55.0 → 1.56.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/GeneralIconProgressBar-Dbtf2ZPD.cjs +3 -0
- package/components/{GeneralIconProgressBar-DGUCh2l_.js → GeneralIconProgressBar-RIcTdYqm.js} +445 -447
- package/components/{GeneralIconProgressBar-asy8BnTg.js → GeneralIconProgressBar-YqbhMYw-.js} +330 -332
- package/es2015/general-icon-progress-bar.cjs +1 -1
- package/es2015/general-icon-progress-bar.js +1 -1
- package/esnext/general-icon-progress-bar.js +1 -1
- package/package.json +1 -1
- package/components/GeneralIconProgressBar-Xj3s_q-M.cjs +0 -3
package/components/{GeneralIconProgressBar-asy8BnTg.js → GeneralIconProgressBar-YqbhMYw-.js}
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
function T() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function et(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function $e() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function K(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(et);
|
11
11
|
}
|
12
12
|
function Ie(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 Lt(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function rt(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,20 +27,20 @@ function it(e, ...t) {
|
|
27
27
|
const r = e.subscribe(...t);
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
29
29
|
}
|
30
|
-
function
|
31
|
-
e.$$.on_destroy.push(
|
30
|
+
function Ct(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(rt(t, r));
|
32
32
|
}
|
33
33
|
function re(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function Mt(e, t, r) {
|
37
|
+
const n = Rt(e);
|
38
38
|
if (!n.getElementById(t)) {
|
39
39
|
const i = Z("style");
|
40
|
-
i.id = t, i.textContent = r,
|
40
|
+
i.id = t, i.textContent = r, $t(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function Rt(e) {
|
44
44
|
if (!e) return document;
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
46
46
|
return t && /** @type {ShadowRoot} */
|
@@ -49,14 +49,14 @@ function Ut(e) {
|
|
49
49
|
t
|
50
50
|
) : e.ownerDocument;
|
51
51
|
}
|
52
|
-
function
|
52
|
+
function $t(e, t) {
|
53
53
|
return re(
|
54
54
|
/** @type {Document} */
|
55
55
|
e.head || e,
|
56
56
|
t
|
57
57
|
), t.sheet;
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function nt(e, t, r) {
|
60
60
|
e.insertBefore(t, r || null);
|
61
61
|
}
|
62
62
|
function we(e) {
|
@@ -65,20 +65,20 @@ function we(e) {
|
|
65
65
|
function Z(e) {
|
66
66
|
return document.createElement(e);
|
67
67
|
}
|
68
|
-
function
|
68
|
+
function Ut(e) {
|
69
69
|
return document.createTextNode(e);
|
70
70
|
}
|
71
71
|
function L(e, t, r) {
|
72
72
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
73
73
|
}
|
74
|
-
function
|
74
|
+
function Gt(e) {
|
75
75
|
return Array.from(e.childNodes);
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function Dt(e, t) {
|
78
78
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
79
79
|
t);
|
80
80
|
}
|
81
|
-
function
|
81
|
+
function Ft(e) {
|
82
82
|
const t = {};
|
83
83
|
return e.childNodes.forEach(
|
84
84
|
/** @param {Element} node */
|
@@ -93,10 +93,10 @@ function Q(e) {
|
|
93
93
|
}
|
94
94
|
const U = [], J = [];
|
95
95
|
let G = [];
|
96
|
-
const
|
96
|
+
const Ue = [], jt = /* @__PURE__ */ Promise.resolve();
|
97
97
|
let ye = !1;
|
98
|
-
function
|
99
|
-
ye || (ye = !0,
|
98
|
+
function Vt() {
|
99
|
+
ye || (ye = !0, jt.then(A));
|
100
100
|
}
|
101
101
|
function _e(e) {
|
102
102
|
G.push(e);
|
@@ -111,7 +111,7 @@ function A() {
|
|
111
111
|
try {
|
112
112
|
for (; R < U.length; ) {
|
113
113
|
const t = U[R];
|
114
|
-
R++, Q(t),
|
114
|
+
R++, Q(t), kt(t.$$);
|
115
115
|
}
|
116
116
|
} catch (t) {
|
117
117
|
throw U.length = 0, R = 0, t;
|
@@ -123,40 +123,40 @@ function A() {
|
|
123
123
|
}
|
124
124
|
G.length = 0;
|
125
125
|
} while (U.length);
|
126
|
-
for (;
|
127
|
-
|
126
|
+
for (; Ue.length; )
|
127
|
+
Ue.pop()();
|
128
128
|
ye = !1, pe.clear(), Q(e);
|
129
129
|
}
|
130
|
-
function
|
130
|
+
function kt(e) {
|
131
131
|
if (e.fragment !== null) {
|
132
132
|
e.update(), K(e.before_update);
|
133
133
|
const t = e.dirty;
|
134
134
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
135
135
|
}
|
136
136
|
}
|
137
|
-
function
|
137
|
+
function Xt(e) {
|
138
138
|
const t = [], r = [];
|
139
139
|
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
140
140
|
}
|
141
|
-
const
|
142
|
-
function
|
143
|
-
e && e.i && (
|
141
|
+
const zt = /* @__PURE__ */ new Set();
|
142
|
+
function Wt(e, t) {
|
143
|
+
e && e.i && (zt.delete(e), e.i(t));
|
144
144
|
}
|
145
|
-
function
|
145
|
+
function Zt(e, t, r) {
|
146
146
|
const { fragment: n, after_update: i } = e.$$;
|
147
147
|
n && n.m(t, r), _e(() => {
|
148
|
-
const s = e.$$.on_mount.map(
|
148
|
+
const s = e.$$.on_mount.map(et).filter(Ie);
|
149
149
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
150
150
|
}), i.forEach(_e);
|
151
151
|
}
|
152
|
-
function
|
152
|
+
function Qt(e, t) {
|
153
153
|
const r = e.$$;
|
154
|
-
r.fragment !== null && (
|
154
|
+
r.fragment !== null && (Xt(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
155
155
|
}
|
156
|
-
function
|
157
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
156
|
+
function Jt(e, t) {
|
157
|
+
e.$$.dirty[0] === -1 && (U.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
158
158
|
}
|
159
|
-
function
|
159
|
+
function qt(e, t, r, n, i, s, a = null, o = [-1]) {
|
160
160
|
const l = Le;
|
161
161
|
Q(e);
|
162
162
|
const h = e.$$ = {
|
@@ -166,7 +166,7 @@ function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
166
166
|
props: s,
|
167
167
|
update: T,
|
168
168
|
not_equal: i,
|
169
|
-
bound:
|
169
|
+
bound: $e(),
|
170
170
|
// lifecycle
|
171
171
|
on_mount: [],
|
172
172
|
on_destroy: [],
|
@@ -175,7 +175,7 @@ function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
175
175
|
after_update: [],
|
176
176
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
177
177
|
// everything else
|
178
|
-
callbacks:
|
178
|
+
callbacks: $e(),
|
179
179
|
dirty: o,
|
180
180
|
skip_bound: !1,
|
181
181
|
root: t.target || l.$$.root
|
@@ -184,19 +184,19 @@ function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
184
184
|
let u = !1;
|
185
185
|
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
186
186
|
const g = x.length ? x[0] : f;
|
187
|
-
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u &&
|
187
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u && Jt(e, c)), f;
|
188
188
|
}) : [], h.update(), u = !0, K(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
189
189
|
if (t.hydrate) {
|
190
|
-
const c =
|
190
|
+
const c = Gt(t.target);
|
191
191
|
h.fragment && h.fragment.l(c), c.forEach(we);
|
192
192
|
} else
|
193
193
|
h.fragment && h.fragment.c();
|
194
|
-
t.intro &&
|
194
|
+
t.intro && Wt(e.$$.fragment), Zt(e, t.target, t.anchor), A();
|
195
195
|
}
|
196
196
|
Q(l);
|
197
197
|
}
|
198
|
-
let
|
199
|
-
typeof HTMLElement == "function" && (
|
198
|
+
let it;
|
199
|
+
typeof HTMLElement == "function" && (it = class extends HTMLElement {
|
200
200
|
/** The Svelte component constructor */
|
201
201
|
$$ctor;
|
202
202
|
/** Slots */
|
@@ -245,7 +245,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
245
245
|
* @param {HTMLElement} [anchor]
|
246
246
|
*/
|
247
247
|
m: function(l, h) {
|
248
|
-
|
248
|
+
nt(l, s, h);
|
249
249
|
},
|
250
250
|
d: function(l) {
|
251
251
|
l && we(s);
|
@@ -255,7 +255,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
255
255
|
};
|
256
256
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
257
257
|
return;
|
258
|
-
const t = {}, r =
|
258
|
+
const t = {}, r = Ft(this);
|
259
259
|
for (const i of this.$$s)
|
260
260
|
i in r && (t[i] = [e(i)]);
|
261
261
|
for (const i of this.attributes) {
|
@@ -342,8 +342,8 @@ function ne(e, t, r, n) {
|
|
342
342
|
return t;
|
343
343
|
}
|
344
344
|
}
|
345
|
-
function
|
346
|
-
let a = class extends
|
345
|
+
function Yt(e, t, r, n, i, s) {
|
346
|
+
let a = class extends it {
|
347
347
|
constructor() {
|
348
348
|
super(e, r, i), this.$$p_d = t;
|
349
349
|
}
|
@@ -371,7 +371,7 @@ function er(e, t, r, n, i, s) {
|
|
371
371
|
}), e.element = /** @type {any} */
|
372
372
|
a, a;
|
373
373
|
}
|
374
|
-
class
|
374
|
+
class Kt {
|
375
375
|
/**
|
376
376
|
* ### PRIVATE API
|
377
377
|
*
|
@@ -390,7 +390,7 @@ class tr {
|
|
390
390
|
$$set = void 0;
|
391
391
|
/** @returns {void} */
|
392
392
|
$destroy() {
|
393
|
-
|
393
|
+
Qt(this, 1), this.$destroy = T;
|
394
394
|
}
|
395
395
|
/**
|
396
396
|
* @template {Extract<keyof Events, string>} K
|
@@ -412,13 +412,13 @@ class tr {
|
|
412
412
|
* @returns {void}
|
413
413
|
*/
|
414
414
|
$set(t) {
|
415
|
-
this.$$set && !
|
415
|
+
this.$$set && !Lt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
416
416
|
}
|
417
417
|
}
|
418
|
-
const
|
419
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
418
|
+
const er = "4";
|
419
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
420
420
|
const $ = [];
|
421
|
-
function
|
421
|
+
function tr(e, t) {
|
422
422
|
return {
|
423
423
|
subscribe: he(e, t).subscribe
|
424
424
|
};
|
@@ -427,7 +427,7 @@ function he(e, t = T) {
|
|
427
427
|
let r;
|
428
428
|
const n = /* @__PURE__ */ new Set();
|
429
429
|
function i(o) {
|
430
|
-
if (
|
430
|
+
if (tt(e, o) && (e = o, r)) {
|
431
431
|
const l = !$.length;
|
432
432
|
for (const h of n)
|
433
433
|
h[1](), $.push(h, e);
|
@@ -454,7 +454,7 @@ function k(e, t, r) {
|
|
454
454
|
if (!i.every(Boolean))
|
455
455
|
throw new Error("derived() expects stores as input, got a falsy value");
|
456
456
|
const s = t.length < 2;
|
457
|
-
return
|
457
|
+
return tr(r, (a, o) => {
|
458
458
|
let l = !1;
|
459
459
|
const h = [];
|
460
460
|
let u = 0, c = T;
|
@@ -465,7 +465,7 @@ function k(e, t, r) {
|
|
465
465
|
const g = t(n ? h[0] : h, a, o);
|
466
466
|
s ? a(g) : c = Ie(g) ? g : T;
|
467
467
|
}, x = i.map(
|
468
|
-
(g, y) =>
|
468
|
+
(g, y) => rt(
|
469
469
|
g,
|
470
470
|
(H) => {
|
471
471
|
h[y] = H, u &= ~(1 << y), l && f();
|
@@ -480,70 +480,70 @@ function k(e, t, r) {
|
|
480
480
|
};
|
481
481
|
});
|
482
482
|
}
|
483
|
-
function
|
483
|
+
function rr(e) {
|
484
484
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
485
485
|
}
|
486
|
-
var
|
487
|
-
return
|
486
|
+
var nr = function(t) {
|
487
|
+
return ir(t) && !sr(t);
|
488
488
|
};
|
489
|
-
function
|
489
|
+
function ir(e) {
|
490
490
|
return !!e && typeof e == "object";
|
491
491
|
}
|
492
|
-
function
|
492
|
+
function sr(e) {
|
493
493
|
var t = Object.prototype.toString.call(e);
|
494
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
494
|
+
return t === "[object RegExp]" || t === "[object Date]" || hr(e);
|
495
495
|
}
|
496
|
-
var
|
497
|
-
function
|
498
|
-
return e.$$typeof ===
|
496
|
+
var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
|
497
|
+
function hr(e) {
|
498
|
+
return e.$$typeof === ar;
|
499
499
|
}
|
500
|
-
function
|
500
|
+
function ur(e) {
|
501
501
|
return Array.isArray(e) ? [] : {};
|
502
502
|
}
|
503
503
|
function q(e, t) {
|
504
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? D(
|
504
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(ur(e), e, t) : e;
|
505
505
|
}
|
506
|
-
function
|
506
|
+
function lr(e, t, r) {
|
507
507
|
return e.concat(t).map(function(n) {
|
508
508
|
return q(n, r);
|
509
509
|
});
|
510
510
|
}
|
511
|
-
function
|
511
|
+
function fr(e, t) {
|
512
512
|
if (!t.customMerge)
|
513
513
|
return D;
|
514
514
|
var r = t.customMerge(e);
|
515
515
|
return typeof r == "function" ? r : D;
|
516
516
|
}
|
517
|
-
function
|
517
|
+
function cr(e) {
|
518
518
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
519
519
|
return Object.propertyIsEnumerable.call(e, t);
|
520
520
|
}) : [];
|
521
521
|
}
|
522
|
-
function
|
523
|
-
return Object.keys(e).concat(
|
522
|
+
function Ge(e) {
|
523
|
+
return Object.keys(e).concat(cr(e));
|
524
524
|
}
|
525
|
-
function
|
525
|
+
function st(e, t) {
|
526
526
|
try {
|
527
527
|
return t in e;
|
528
528
|
} catch {
|
529
529
|
return !1;
|
530
530
|
}
|
531
531
|
}
|
532
|
-
function
|
533
|
-
return
|
532
|
+
function pr(e, t) {
|
533
|
+
return st(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
534
534
|
}
|
535
|
-
function
|
535
|
+
function mr(e, t, r) {
|
536
536
|
var n = {};
|
537
|
-
return r.isMergeableObject(e) &&
|
537
|
+
return r.isMergeableObject(e) && Ge(e).forEach(function(i) {
|
538
538
|
n[i] = q(e[i], r);
|
539
|
-
}),
|
540
|
-
|
539
|
+
}), Ge(t).forEach(function(i) {
|
540
|
+
pr(e, i) || (st(e, i) && r.isMergeableObject(t[i]) ? n[i] = fr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
541
541
|
}), n;
|
542
542
|
}
|
543
543
|
function D(e, t, r) {
|
544
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
544
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = q;
|
545
545
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
546
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
546
|
+
return s ? n ? r.arrayMerge(e, t, r) : mr(e, t, r) : q(t, r);
|
547
547
|
}
|
548
548
|
D.all = function(t, r) {
|
549
549
|
if (!Array.isArray(t))
|
@@ -552,8 +552,8 @@ D.all = function(t, r) {
|
|
552
552
|
return D(n, i, r);
|
553
553
|
}, {});
|
554
554
|
};
|
555
|
-
var
|
556
|
-
const
|
555
|
+
var br = D, dr = br;
|
556
|
+
const gr = /* @__PURE__ */ rr(dr);
|
557
557
|
var ve = function(e, t) {
|
558
558
|
return ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
559
559
|
r.__proto__ = n;
|
@@ -579,7 +579,7 @@ var d = function() {
|
|
579
579
|
return t;
|
580
580
|
}, d.apply(this, arguments);
|
581
581
|
};
|
582
|
-
function
|
582
|
+
function xr(e, t) {
|
583
583
|
var r = {};
|
584
584
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
585
585
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -593,55 +593,53 @@ function me(e, t, r) {
|
|
593
593
|
return e.concat(s || Array.prototype.slice.call(t));
|
594
594
|
}
|
595
595
|
function be(e, t) {
|
596
|
-
var r = t && t.cache ? t.cache :
|
596
|
+
var r = t && t.cache ? t.cache : Br, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : _r;
|
597
597
|
return i(e, {
|
598
598
|
cache: r,
|
599
599
|
serializer: n
|
600
600
|
});
|
601
601
|
}
|
602
|
-
function
|
602
|
+
function Er(e) {
|
603
603
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
604
604
|
}
|
605
|
-
function
|
606
|
-
var i =
|
605
|
+
function yr(e, t, r, n) {
|
606
|
+
var i = Er(n) ? n : r(n), s = t.get(i);
|
607
607
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
608
608
|
}
|
609
|
-
function
|
609
|
+
function ot(e, t, r) {
|
610
610
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
611
611
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
612
612
|
}
|
613
|
-
function
|
613
|
+
function at(e, t, r, n, i) {
|
614
614
|
return r.bind(t, e, n, i);
|
615
615
|
}
|
616
|
-
function
|
617
|
-
var r = e.length === 1 ?
|
618
|
-
return
|
619
|
-
}
|
620
|
-
function Hr(e, t) {
|
621
|
-
return Ce(e, this, ut, t.cache.create(), t.serializer);
|
616
|
+
function _r(e, t) {
|
617
|
+
var r = e.length === 1 ? yr : ot;
|
618
|
+
return at(e, this, r, t.cache.create(), t.serializer);
|
622
619
|
}
|
623
|
-
function
|
624
|
-
return
|
620
|
+
function vr(e, t) {
|
621
|
+
return at(e, this, ot, t.cache.create(), t.serializer);
|
625
622
|
}
|
626
|
-
var
|
623
|
+
var Hr = function() {
|
627
624
|
return JSON.stringify(arguments);
|
628
|
-
}
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
625
|
+
}, Tr = (
|
626
|
+
/** @class */
|
627
|
+
function() {
|
628
|
+
function e() {
|
629
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
630
|
+
}
|
631
|
+
return e.prototype.get = function(t) {
|
632
|
+
return this.cache[t];
|
633
|
+
}, e.prototype.set = function(t, r) {
|
634
|
+
this.cache[t] = r;
|
635
|
+
}, e;
|
636
|
+
}()
|
637
|
+
), Br = {
|
639
638
|
create: function() {
|
640
|
-
return new
|
639
|
+
return new Tr();
|
641
640
|
}
|
642
641
|
}, de = {
|
643
|
-
variadic:
|
644
|
-
monadic: Tr
|
642
|
+
variadic: vr
|
645
643
|
}, m;
|
646
644
|
(function(e) {
|
647
645
|
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";
|
@@ -654,43 +652,43 @@ var F;
|
|
654
652
|
(function(e) {
|
655
653
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
656
654
|
})(F || (F = {}));
|
657
|
-
function
|
655
|
+
function De(e) {
|
658
656
|
return e.type === E.literal;
|
659
657
|
}
|
660
|
-
function
|
658
|
+
function Sr(e) {
|
661
659
|
return e.type === E.argument;
|
662
660
|
}
|
663
|
-
function
|
661
|
+
function ht(e) {
|
664
662
|
return e.type === E.number;
|
665
663
|
}
|
666
|
-
function
|
664
|
+
function ut(e) {
|
667
665
|
return e.type === E.date;
|
668
666
|
}
|
669
|
-
function
|
667
|
+
function lt(e) {
|
670
668
|
return e.type === E.time;
|
671
669
|
}
|
672
|
-
function
|
670
|
+
function ft(e) {
|
673
671
|
return e.type === E.select;
|
674
672
|
}
|
675
|
-
function
|
673
|
+
function ct(e) {
|
676
674
|
return e.type === E.plural;
|
677
675
|
}
|
678
|
-
function
|
676
|
+
function Ar(e) {
|
679
677
|
return e.type === E.pound;
|
680
678
|
}
|
681
|
-
function
|
679
|
+
function pt(e) {
|
682
680
|
return e.type === E.tag;
|
683
681
|
}
|
684
|
-
function
|
682
|
+
function mt(e) {
|
685
683
|
return !!(e && typeof e == "object" && e.type === F.number);
|
686
684
|
}
|
687
685
|
function He(e) {
|
688
686
|
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
689
687
|
}
|
690
|
-
var
|
691
|
-
function
|
688
|
+
var bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pr = /(?:[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;
|
689
|
+
function Or(e) {
|
692
690
|
var t = {};
|
693
|
-
return e.replace(
|
691
|
+
return e.replace(Pr, function(r) {
|
694
692
|
var n = r.length;
|
695
693
|
switch (r[0]) {
|
696
694
|
case "G":
|
@@ -779,11 +777,11 @@ function Nr(e) {
|
|
779
777
|
return "";
|
780
778
|
}), t;
|
781
779
|
}
|
782
|
-
var
|
783
|
-
function
|
780
|
+
var Nr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
781
|
+
function Ir(e) {
|
784
782
|
if (e.length === 0)
|
785
783
|
throw new Error("Number skeleton cannot be empty");
|
786
|
-
for (var t = e.split(
|
784
|
+
for (var t = e.split(Nr).filter(function(f) {
|
787
785
|
return f.length > 0;
|
788
786
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
789
787
|
var s = i[n], a = s.split("/");
|
@@ -798,17 +796,17 @@ function wr(e) {
|
|
798
796
|
}
|
799
797
|
return r;
|
800
798
|
}
|
801
|
-
function
|
799
|
+
function wr(e) {
|
802
800
|
return e.replace(/^(.*?)-/, "");
|
803
801
|
}
|
804
|
-
var
|
805
|
-
function
|
802
|
+
var Fe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dt = /^(@+)?(\+|#+)?[rs]?$/g, Lr = /(\*)(0+)|(#+)(0+)|(0+)/g, gt = /^(0+)$/;
|
803
|
+
function je(e) {
|
806
804
|
var t = {};
|
807
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
805
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dt, function(r, n, i) {
|
808
806
|
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)), "";
|
809
807
|
}), t;
|
810
808
|
}
|
811
|
-
function
|
809
|
+
function xt(e) {
|
812
810
|
switch (e) {
|
813
811
|
case "sign-auto":
|
814
812
|
return {
|
@@ -848,7 +846,7 @@ function yt(e) {
|
|
848
846
|
};
|
849
847
|
}
|
850
848
|
}
|
851
|
-
function
|
849
|
+
function Cr(e) {
|
852
850
|
var t;
|
853
851
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
854
852
|
notation: "engineering"
|
@@ -856,17 +854,17 @@ function Mr(e) {
|
|
856
854
|
notation: "scientific"
|
857
855
|
}, e = e.slice(1)), t) {
|
858
856
|
var r = e.slice(0, 2);
|
859
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
857
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gt.test(e))
|
860
858
|
throw new Error("Malformed concise eng/scientific notation");
|
861
859
|
t.minimumIntegerDigits = e.length;
|
862
860
|
}
|
863
861
|
return t;
|
864
862
|
}
|
865
|
-
function
|
866
|
-
var t = {}, r =
|
863
|
+
function Ve(e) {
|
864
|
+
var t = {}, r = xt(e);
|
867
865
|
return r || t;
|
868
866
|
}
|
869
|
-
function
|
867
|
+
function Mr(e) {
|
870
868
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
871
869
|
var i = n[r];
|
872
870
|
switch (i.stem) {
|
@@ -890,7 +888,7 @@ function Rr(e) {
|
|
890
888
|
continue;
|
891
889
|
case "measure-unit":
|
892
890
|
case "unit":
|
893
|
-
t.style = "unit", t.unit =
|
891
|
+
t.style = "unit", t.unit = wr(i.options[0]);
|
894
892
|
continue;
|
895
893
|
case "compact-short":
|
896
894
|
case "K":
|
@@ -902,12 +900,12 @@ function Rr(e) {
|
|
902
900
|
continue;
|
903
901
|
case "scientific":
|
904
902
|
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
905
|
-
return d(d({}, l),
|
903
|
+
return d(d({}, l), Ve(h));
|
906
904
|
}, {}));
|
907
905
|
continue;
|
908
906
|
case "engineering":
|
909
907
|
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
910
|
-
return d(d({}, l),
|
908
|
+
return d(d({}, l), Ve(h));
|
911
909
|
}, {}));
|
912
910
|
continue;
|
913
911
|
case "notation-simple":
|
@@ -952,7 +950,7 @@ function Rr(e) {
|
|
952
950
|
case "integer-width":
|
953
951
|
if (i.options.length > 1)
|
954
952
|
throw new RangeError("integer-width stems only accept a single optional option");
|
955
|
-
i.options[0].replace(
|
953
|
+
i.options[0].replace(Lr, function(l, h, u, c, f, x) {
|
956
954
|
if (h)
|
957
955
|
t.minimumIntegerDigits = u.length;
|
958
956
|
else {
|
@@ -965,27 +963,27 @@ function Rr(e) {
|
|
965
963
|
});
|
966
964
|
continue;
|
967
965
|
}
|
968
|
-
if (
|
966
|
+
if (gt.test(i.stem)) {
|
969
967
|
t.minimumIntegerDigits = i.stem.length;
|
970
968
|
continue;
|
971
969
|
}
|
972
|
-
if (
|
970
|
+
if (Fe.test(i.stem)) {
|
973
971
|
if (i.options.length > 1)
|
974
972
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
975
|
-
i.stem.replace(
|
973
|
+
i.stem.replace(Fe, function(l, h, u, c, f, x) {
|
976
974
|
return u === "*" ? t.minimumFractionDigits = h.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && x ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
977
975
|
});
|
978
976
|
var s = i.options[0];
|
979
|
-
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t),
|
977
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), je(s)));
|
980
978
|
continue;
|
981
979
|
}
|
982
|
-
if (
|
983
|
-
t = d(d({}, t),
|
980
|
+
if (dt.test(i.stem)) {
|
981
|
+
t = d(d({}, t), je(i.stem));
|
984
982
|
continue;
|
985
983
|
}
|
986
|
-
var a =
|
984
|
+
var a = xt(i.stem);
|
987
985
|
a && (t = d(d({}, t), a));
|
988
|
-
var o =
|
986
|
+
var o = Cr(i.stem);
|
989
987
|
o && (t = d(d({}, t), o));
|
990
988
|
}
|
991
989
|
return t;
|
@@ -2405,13 +2403,13 @@ var te = {
|
|
2405
2403
|
"h"
|
2406
2404
|
]
|
2407
2405
|
};
|
2408
|
-
function
|
2406
|
+
function Rr(e, t) {
|
2409
2407
|
for (var r = "", n = 0; n < e.length; n++) {
|
2410
2408
|
var i = e.charAt(n);
|
2411
2409
|
if (i === "j") {
|
2412
2410
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2413
2411
|
s++, n++;
|
2414
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h =
|
2412
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = $r(t);
|
2415
2413
|
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
2416
2414
|
r += l;
|
2417
2415
|
for (; a-- > 0; )
|
@@ -2420,7 +2418,7 @@ function $r(e, t) {
|
|
2420
2418
|
}
|
2421
2419
|
return r;
|
2422
2420
|
}
|
2423
|
-
function
|
2421
|
+
function $r(e) {
|
2424
2422
|
var t = e.hourCycle;
|
2425
2423
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2426
2424
|
e.hourCycles && // @ts-ignore
|
@@ -2442,20 +2440,20 @@ function Ur(e) {
|
|
2442
2440
|
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
2443
2441
|
return i[0];
|
2444
2442
|
}
|
2445
|
-
var ge,
|
2443
|
+
var ge, Ur = new RegExp("^".concat(bt.source, "*")), Gr = new RegExp("".concat(bt.source, "*$"));
|
2446
2444
|
function b(e, t) {
|
2447
2445
|
return { start: e, end: t };
|
2448
2446
|
}
|
2449
|
-
var
|
2447
|
+
var Dr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fr = !!String.fromCodePoint, jr = !!Object.fromEntries, Vr = !!String.prototype.codePointAt, kr = !!String.prototype.trimStart, Xr = !!String.prototype.trimEnd, zr = !!Number.isSafeInteger, Wr = zr ? Number.isSafeInteger : function(e) {
|
2450
2448
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2451
2449
|
}, Te = !0;
|
2452
2450
|
try {
|
2453
|
-
var
|
2454
|
-
Te = ((ge =
|
2451
|
+
var Zr = yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2452
|
+
Te = ((ge = Zr.exec("a")) === null || ge === void 0 ? void 0 : ge[0]) === "a";
|
2455
2453
|
} catch {
|
2456
2454
|
Te = !1;
|
2457
2455
|
}
|
2458
|
-
var
|
2456
|
+
var ke = Dr ? (
|
2459
2457
|
// Native
|
2460
2458
|
function(t, r, n) {
|
2461
2459
|
return t.startsWith(r, n);
|
@@ -2465,7 +2463,7 @@ var ze = Fr ? (
|
|
2465
2463
|
function(t, r, n) {
|
2466
2464
|
return t.slice(n, n + r.length) === r;
|
2467
2465
|
}
|
2468
|
-
), Be =
|
2466
|
+
), Be = Fr ? String.fromCodePoint : (
|
2469
2467
|
// IE11
|
2470
2468
|
function() {
|
2471
2469
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2477,9 +2475,9 @@ var ze = Fr ? (
|
|
2477
2475
|
}
|
2478
2476
|
return n;
|
2479
2477
|
}
|
2480
|
-
),
|
2478
|
+
), Xe = (
|
2481
2479
|
// native
|
2482
|
-
|
2480
|
+
jr ? Object.fromEntries : (
|
2483
2481
|
// Ponyfill
|
2484
2482
|
function(t) {
|
2485
2483
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2489,7 +2487,7 @@ var ze = Fr ? (
|
|
2489
2487
|
return r;
|
2490
2488
|
}
|
2491
2489
|
)
|
2492
|
-
),
|
2490
|
+
), Et = Vr ? (
|
2493
2491
|
// Native
|
2494
2492
|
function(t, r) {
|
2495
2493
|
return t.codePointAt(r);
|
@@ -2503,7 +2501,7 @@ var ze = Fr ? (
|
|
2503
2501
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
2504
2502
|
}
|
2505
2503
|
}
|
2506
|
-
),
|
2504
|
+
), Qr = kr ? (
|
2507
2505
|
// Native
|
2508
2506
|
function(t) {
|
2509
2507
|
return t.trimStart();
|
@@ -2511,9 +2509,9 @@ var ze = Fr ? (
|
|
2511
2509
|
) : (
|
2512
2510
|
// Ponyfill
|
2513
2511
|
function(t) {
|
2514
|
-
return t.replace(
|
2512
|
+
return t.replace(Ur, "");
|
2515
2513
|
}
|
2516
|
-
),
|
2514
|
+
), Jr = Xr ? (
|
2517
2515
|
// Native
|
2518
2516
|
function(t) {
|
2519
2517
|
return t.trimEnd();
|
@@ -2521,32 +2519,32 @@ var ze = Fr ? (
|
|
2521
2519
|
) : (
|
2522
2520
|
// Ponyfill
|
2523
2521
|
function(t) {
|
2524
|
-
return t.replace(
|
2522
|
+
return t.replace(Gr, "");
|
2525
2523
|
}
|
2526
2524
|
);
|
2527
|
-
function
|
2525
|
+
function yt(e, t) {
|
2528
2526
|
return new RegExp(e, t);
|
2529
2527
|
}
|
2530
2528
|
var Se;
|
2531
2529
|
if (Te) {
|
2532
|
-
var
|
2530
|
+
var ze = yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2533
2531
|
Se = function(t, r) {
|
2534
2532
|
var n;
|
2535
|
-
|
2536
|
-
var i =
|
2533
|
+
ze.lastIndex = r;
|
2534
|
+
var i = ze.exec(t);
|
2537
2535
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2538
2536
|
};
|
2539
2537
|
} else
|
2540
2538
|
Se = function(t, r) {
|
2541
2539
|
for (var n = []; ; ) {
|
2542
|
-
var i =
|
2543
|
-
if (i === void 0 ||
|
2540
|
+
var i = Et(t, r);
|
2541
|
+
if (i === void 0 || _t(i) || en(i))
|
2544
2542
|
break;
|
2545
2543
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2546
2544
|
}
|
2547
2545
|
return Be.apply(void 0, n);
|
2548
2546
|
};
|
2549
|
-
var
|
2547
|
+
var qr = (
|
2550
2548
|
/** @class */
|
2551
2549
|
function() {
|
2552
2550
|
function e(t, r) {
|
@@ -2628,7 +2626,7 @@ var Yr = (
|
|
2628
2626
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2629
2627
|
}, e.prototype.parseTagName = function() {
|
2630
2628
|
var t = this.offset();
|
2631
|
-
for (this.bump(); !this.isEOF() &&
|
2629
|
+
for (this.bump(); !this.isEOF() && Kr(this.char()); )
|
2632
2630
|
this.bump();
|
2633
2631
|
return this.message.slice(t, this.offset());
|
2634
2632
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2657,7 +2655,7 @@ var Yr = (
|
|
2657
2655
|
};
|
2658
2656
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2659
2657
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2660
|
-
!
|
2658
|
+
!Yr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2661
2659
|
}, e.prototype.tryParseQuote = function(t) {
|
2662
2660
|
if (this.isEOF() || this.char() !== 39)
|
2663
2661
|
return null;
|
@@ -2744,7 +2742,7 @@ var Yr = (
|
|
2744
2742
|
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2745
2743
|
if (c.err)
|
2746
2744
|
return c;
|
2747
|
-
var f =
|
2745
|
+
var f = Jr(c.val);
|
2748
2746
|
if (f.length === 0)
|
2749
2747
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2750
2748
|
var x = b(u, this.clonePosition());
|
@@ -2754,8 +2752,8 @@ var Yr = (
|
|
2754
2752
|
if (g.err)
|
2755
2753
|
return g;
|
2756
2754
|
var y = b(i, this.clonePosition());
|
2757
|
-
if (h &&
|
2758
|
-
var H =
|
2755
|
+
if (h && ke(h?.style, "::", 0)) {
|
2756
|
+
var H = Qr(h.style.slice(2));
|
2759
2757
|
if (o === "number") {
|
2760
2758
|
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2761
2759
|
return c.err ? c : {
|
@@ -2766,12 +2764,12 @@ var Yr = (
|
|
2766
2764
|
if (H.length === 0)
|
2767
2765
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
2768
2766
|
var B = H;
|
2769
|
-
this.locale && (B =
|
2767
|
+
this.locale && (B = Rr(H, this.locale));
|
2770
2768
|
var f = {
|
2771
2769
|
type: F.dateTime,
|
2772
2770
|
pattern: B,
|
2773
2771
|
location: h.styleLocation,
|
2774
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2772
|
+
parsedOptions: this.shouldParseSkeletons ? Or(B) : {}
|
2775
2773
|
}, S = o === "date" ? E.date : E.time;
|
2776
2774
|
return {
|
2777
2775
|
val: { type: S, value: n, location: y, style: f },
|
@@ -2817,7 +2815,7 @@ var Yr = (
|
|
2817
2815
|
val: {
|
2818
2816
|
type: E.select,
|
2819
2817
|
value: n,
|
2820
|
-
options:
|
2818
|
+
options: Xe(M.val),
|
2821
2819
|
location: ee
|
2822
2820
|
},
|
2823
2821
|
err: null
|
@@ -2825,7 +2823,7 @@ var Yr = (
|
|
2825
2823
|
val: {
|
2826
2824
|
type: E.plural,
|
2827
2825
|
value: n,
|
2828
|
-
options:
|
2826
|
+
options: Xe(M.val),
|
2829
2827
|
offset: P,
|
2830
2828
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
2831
2829
|
location: ee
|
@@ -2876,7 +2874,7 @@ var Yr = (
|
|
2876
2874
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
2877
2875
|
var n = [];
|
2878
2876
|
try {
|
2879
|
-
n =
|
2877
|
+
n = Ir(t);
|
2880
2878
|
} catch {
|
2881
2879
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
2882
2880
|
}
|
@@ -2885,7 +2883,7 @@ var Yr = (
|
|
2885
2883
|
type: F.number,
|
2886
2884
|
tokens: n,
|
2887
2885
|
location: r,
|
2888
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2886
|
+
parsedOptions: this.shouldParseSkeletons ? Mr(n) : {}
|
2889
2887
|
},
|
2890
2888
|
err: null
|
2891
2889
|
};
|
@@ -2933,7 +2931,7 @@ var Yr = (
|
|
2933
2931
|
break;
|
2934
2932
|
}
|
2935
2933
|
var l = b(i, this.clonePosition());
|
2936
|
-
return s ? (a *= n,
|
2934
|
+
return s ? (a *= n, Wr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2937
2935
|
}, e.prototype.offset = function() {
|
2938
2936
|
return this.position.offset;
|
2939
2937
|
}, e.prototype.isEOF = function() {
|
@@ -2948,7 +2946,7 @@ var Yr = (
|
|
2948
2946
|
var t = this.position.offset;
|
2949
2947
|
if (t >= this.message.length)
|
2950
2948
|
throw Error("out of bound");
|
2951
|
-
var r =
|
2949
|
+
var r = Et(this.message, t);
|
2952
2950
|
if (r === void 0)
|
2953
2951
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2954
2952
|
return r;
|
@@ -2967,7 +2965,7 @@ var Yr = (
|
|
2967
2965
|
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);
|
2968
2966
|
}
|
2969
2967
|
}, e.prototype.bumpIf = function(t) {
|
2970
|
-
if (
|
2968
|
+
if (ke(this.message, t, this.offset())) {
|
2971
2969
|
for (var r = 0; r < t.length; r++)
|
2972
2970
|
this.bump();
|
2973
2971
|
return !0;
|
@@ -2989,7 +2987,7 @@ var Yr = (
|
|
2989
2987
|
break;
|
2990
2988
|
}
|
2991
2989
|
}, e.prototype.bumpSpace = function() {
|
2992
|
-
for (; !this.isEOF() &&
|
2990
|
+
for (; !this.isEOF() && _t(this.char()); )
|
2993
2991
|
this.bump();
|
2994
2992
|
}, e.prototype.peek = function() {
|
2995
2993
|
if (this.isEOF())
|
@@ -3002,29 +3000,29 @@ var Yr = (
|
|
3002
3000
|
function Ae(e) {
|
3003
3001
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3004
3002
|
}
|
3005
|
-
function
|
3003
|
+
function Yr(e) {
|
3006
3004
|
return Ae(e) || e === 47;
|
3007
3005
|
}
|
3008
|
-
function
|
3006
|
+
function Kr(e) {
|
3009
3007
|
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;
|
3010
3008
|
}
|
3011
|
-
function
|
3009
|
+
function _t(e) {
|
3012
3010
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3013
3011
|
}
|
3014
|
-
function
|
3012
|
+
function en(e) {
|
3015
3013
|
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;
|
3016
3014
|
}
|
3017
3015
|
function Pe(e) {
|
3018
3016
|
e.forEach(function(t) {
|
3019
|
-
if (delete t.location,
|
3017
|
+
if (delete t.location, ft(t) || ct(t))
|
3020
3018
|
for (var r in t.options)
|
3021
3019
|
delete t.options[r].location, Pe(t.options[r].value);
|
3022
|
-
else
|
3020
|
+
else ht(t) && mt(t.style) || (ut(t) || lt(t)) && He(t.style) ? delete t.style.location : pt(t) && Pe(t.children);
|
3023
3021
|
});
|
3024
3022
|
}
|
3025
|
-
function
|
3023
|
+
function tn(e, t) {
|
3026
3024
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3027
|
-
var r = new
|
3025
|
+
var r = new qr(e, t).parse();
|
3028
3026
|
if (r.err) {
|
3029
3027
|
var n = SyntaxError(m[r.err.kind]);
|
3030
3028
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
@@ -3047,7 +3045,7 @@ var le = (
|
|
3047
3045
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3048
3046
|
}, t;
|
3049
3047
|
}(Error)
|
3050
|
-
),
|
3048
|
+
), We = (
|
3051
3049
|
/** @class */
|
3052
3050
|
function(e) {
|
3053
3051
|
ue(t, e);
|
@@ -3056,7 +3054,7 @@ var le = (
|
|
3056
3054
|
}
|
3057
3055
|
return t;
|
3058
3056
|
}(le)
|
3059
|
-
),
|
3057
|
+
), rn = (
|
3060
3058
|
/** @class */
|
3061
3059
|
function(e) {
|
3062
3060
|
ue(t, e);
|
@@ -3065,7 +3063,7 @@ var le = (
|
|
3065
3063
|
}
|
3066
3064
|
return t;
|
3067
3065
|
}(le)
|
3068
|
-
),
|
3066
|
+
), nn = (
|
3069
3067
|
/** @class */
|
3070
3068
|
function(e) {
|
3071
3069
|
ue(t, e);
|
@@ -3078,17 +3076,17 @@ var le = (
|
|
3078
3076
|
(function(e) {
|
3079
3077
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3080
3078
|
})(_ || (_ = {}));
|
3081
|
-
function
|
3079
|
+
function sn(e) {
|
3082
3080
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3083
3081
|
var n = t[t.length - 1];
|
3084
3082
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
3085
3083
|
}, []);
|
3086
3084
|
}
|
3087
|
-
function
|
3085
|
+
function on(e) {
|
3088
3086
|
return typeof e == "function";
|
3089
3087
|
}
|
3090
3088
|
function ie(e, t, r, n, i, s, a) {
|
3091
|
-
if (e.length === 1 &&
|
3089
|
+
if (e.length === 1 && De(e[0]))
|
3092
3090
|
return [
|
3093
3091
|
{
|
3094
3092
|
type: _.literal,
|
@@ -3097,14 +3095,14 @@ function ie(e, t, r, n, i, s, a) {
|
|
3097
3095
|
];
|
3098
3096
|
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
3099
3097
|
var u = h[l];
|
3100
|
-
if (
|
3098
|
+
if (De(u)) {
|
3101
3099
|
o.push({
|
3102
3100
|
type: _.literal,
|
3103
3101
|
value: u.value
|
3104
3102
|
});
|
3105
3103
|
continue;
|
3106
3104
|
}
|
3107
|
-
if (
|
3105
|
+
if (Ar(u)) {
|
3108
3106
|
typeof s == "number" && o.push({
|
3109
3107
|
type: _.literal,
|
3110
3108
|
value: r.getNumberFormat(t).format(s)
|
@@ -3113,16 +3111,16 @@ function ie(e, t, r, n, i, s, a) {
|
|
3113
3111
|
}
|
3114
3112
|
var c = u.value;
|
3115
3113
|
if (!(i && c in i))
|
3116
|
-
throw new
|
3114
|
+
throw new nn(c, a);
|
3117
3115
|
var f = i[c];
|
3118
|
-
if (
|
3116
|
+
if (Sr(u)) {
|
3119
3117
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
3120
3118
|
type: typeof f == "string" ? _.literal : _.object,
|
3121
3119
|
value: f
|
3122
3120
|
});
|
3123
3121
|
continue;
|
3124
3122
|
}
|
3125
|
-
if (
|
3123
|
+
if (ut(u)) {
|
3126
3124
|
var x = typeof u.style == "string" ? n.date[u.style] : He(u.style) ? u.style.parsedOptions : void 0;
|
3127
3125
|
o.push({
|
3128
3126
|
type: _.literal,
|
@@ -3130,7 +3128,7 @@ function ie(e, t, r, n, i, s, a) {
|
|
3130
3128
|
});
|
3131
3129
|
continue;
|
3132
3130
|
}
|
3133
|
-
if (
|
3131
|
+
if (lt(u)) {
|
3134
3132
|
var x = typeof u.style == "string" ? n.time[u.style] : He(u.style) ? u.style.parsedOptions : n.time.medium;
|
3135
3133
|
o.push({
|
3136
3134
|
type: _.literal,
|
@@ -3138,18 +3136,18 @@ function ie(e, t, r, n, i, s, a) {
|
|
3138
3136
|
});
|
3139
3137
|
continue;
|
3140
3138
|
}
|
3141
|
-
if (
|
3142
|
-
var x = typeof u.style == "string" ? n.number[u.style] :
|
3139
|
+
if (ht(u)) {
|
3140
|
+
var x = typeof u.style == "string" ? n.number[u.style] : mt(u.style) ? u.style.parsedOptions : void 0;
|
3143
3141
|
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
3144
3142
|
type: _.literal,
|
3145
3143
|
value: r.getNumberFormat(t, x).format(f)
|
3146
3144
|
});
|
3147
3145
|
continue;
|
3148
3146
|
}
|
3149
|
-
if (
|
3147
|
+
if (pt(u)) {
|
3150
3148
|
var g = u.children, y = u.value, H = i[y];
|
3151
|
-
if (!
|
3152
|
-
throw new
|
3149
|
+
if (!on(H))
|
3150
|
+
throw new rn(y, "function", a);
|
3153
3151
|
var B = ie(g, t, r, n, i, s), S = H(B.map(function(P) {
|
3154
3152
|
return P.value;
|
3155
3153
|
}));
|
@@ -3160,14 +3158,14 @@ function ie(e, t, r, n, i, s, a) {
|
|
3160
3158
|
};
|
3161
3159
|
}));
|
3162
3160
|
}
|
3163
|
-
if (
|
3161
|
+
if (ft(u)) {
|
3164
3162
|
var v = u.options[f] || u.options.other;
|
3165
3163
|
if (!v)
|
3166
|
-
throw new
|
3164
|
+
throw new We(u.value, f, Object.keys(u.options), a);
|
3167
3165
|
o.push.apply(o, ie(v.value, t, r, n, i));
|
3168
3166
|
continue;
|
3169
3167
|
}
|
3170
|
-
if (
|
3168
|
+
if (ct(u)) {
|
3171
3169
|
var v = u.options["=".concat(f)];
|
3172
3170
|
if (!v) {
|
3173
3171
|
if (!Intl.PluralRules)
|
@@ -3178,21 +3176,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3178
3176
|
v = u.options[O] || u.options.other;
|
3179
3177
|
}
|
3180
3178
|
if (!v)
|
3181
|
-
throw new
|
3179
|
+
throw new We(u.value, f, Object.keys(u.options), a);
|
3182
3180
|
o.push.apply(o, ie(v.value, t, r, n, i, f - (u.offset || 0)));
|
3183
3181
|
continue;
|
3184
3182
|
}
|
3185
3183
|
}
|
3186
|
-
return
|
3184
|
+
return sn(o);
|
3187
3185
|
}
|
3188
|
-
function
|
3186
|
+
function an(e, t) {
|
3189
3187
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3190
3188
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3191
3189
|
}, {})) : e;
|
3192
3190
|
}
|
3193
|
-
function
|
3191
|
+
function hn(e, t) {
|
3194
3192
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3195
|
-
return r[n] =
|
3193
|
+
return r[n] = an(e[n], t[n]), r;
|
3196
3194
|
}, d({}, e)) : e;
|
3197
3195
|
}
|
3198
3196
|
function xe(e) {
|
@@ -3209,7 +3207,7 @@ function xe(e) {
|
|
3209
3207
|
}
|
3210
3208
|
};
|
3211
3209
|
}
|
3212
|
-
function
|
3210
|
+
function un(e) {
|
3213
3211
|
return e === void 0 && (e = {
|
3214
3212
|
number: {},
|
3215
3213
|
dateTime: {},
|
@@ -3241,7 +3239,7 @@ function ln(e) {
|
|
3241
3239
|
})
|
3242
3240
|
};
|
3243
3241
|
}
|
3244
|
-
var
|
3242
|
+
var ln = (
|
3245
3243
|
/** @class */
|
3246
3244
|
function() {
|
3247
3245
|
function e(t, r, n, i) {
|
@@ -3273,13 +3271,13 @@ var fn = (
|
|
3273
3271
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3274
3272
|
var a = i || {};
|
3275
3273
|
a.formatters;
|
3276
|
-
var o =
|
3274
|
+
var o = xr(a, ["formatters"]);
|
3277
3275
|
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
3278
3276
|
} else
|
3279
3277
|
this.ast = t;
|
3280
3278
|
if (!Array.isArray(this.ast))
|
3281
3279
|
throw new TypeError("A message must be provided as a String or AST.");
|
3282
|
-
this.formats =
|
3280
|
+
this.formats = hn(e.formats, n), this.formatters = i && i.formatters || un(this.formatterCache);
|
3283
3281
|
}
|
3284
3282
|
return Object.defineProperty(e, "defaultLocale", {
|
3285
3283
|
get: function() {
|
@@ -3292,7 +3290,7 @@ var fn = (
|
|
3292
3290
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3293
3291
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3294
3292
|
}
|
3295
|
-
}, e.__parse =
|
3293
|
+
}, e.__parse = tn, e.formats = {
|
3296
3294
|
number: {
|
3297
3295
|
integer: {
|
3298
3296
|
maximumFractionDigits: 0
|
@@ -3353,7 +3351,7 @@ var fn = (
|
|
3353
3351
|
}, e;
|
3354
3352
|
}()
|
3355
3353
|
);
|
3356
|
-
function
|
3354
|
+
function fn(e, t) {
|
3357
3355
|
if (t == null)
|
3358
3356
|
return;
|
3359
3357
|
if (t in e)
|
@@ -3374,60 +3372,60 @@ function cn(e, t) {
|
|
3374
3372
|
n = void 0;
|
3375
3373
|
return n;
|
3376
3374
|
}
|
3377
|
-
const N = {},
|
3375
|
+
const N = {}, cn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), vt = (e, t) => {
|
3378
3376
|
if (t == null)
|
3379
3377
|
return;
|
3380
3378
|
if (t in N && e in N[t])
|
3381
3379
|
return N[t][e];
|
3382
3380
|
const r = fe(t);
|
3383
3381
|
for (let n = 0; n < r.length; n++) {
|
3384
|
-
const i = r[n], s =
|
3382
|
+
const i = r[n], s = mn(i, e);
|
3385
3383
|
if (s)
|
3386
|
-
return
|
3384
|
+
return cn(e, t, s);
|
3387
3385
|
}
|
3388
3386
|
};
|
3389
|
-
let
|
3387
|
+
let Ce;
|
3390
3388
|
const X = he({});
|
3391
|
-
function
|
3392
|
-
return
|
3389
|
+
function pn(e) {
|
3390
|
+
return Ce[e] || null;
|
3393
3391
|
}
|
3394
|
-
function
|
3395
|
-
return e in
|
3392
|
+
function Ht(e) {
|
3393
|
+
return e in Ce;
|
3396
3394
|
}
|
3397
|
-
function
|
3398
|
-
if (!
|
3395
|
+
function mn(e, t) {
|
3396
|
+
if (!Ht(e))
|
3399
3397
|
return null;
|
3400
|
-
const r =
|
3401
|
-
return
|
3398
|
+
const r = pn(e);
|
3399
|
+
return fn(r, t);
|
3402
3400
|
}
|
3403
|
-
function
|
3401
|
+
function bn(e) {
|
3404
3402
|
if (e == null)
|
3405
3403
|
return;
|
3406
3404
|
const t = fe(e);
|
3407
3405
|
for (let r = 0; r < t.length; r++) {
|
3408
3406
|
const n = t[r];
|
3409
|
-
if (
|
3407
|
+
if (Ht(n))
|
3410
3408
|
return n;
|
3411
3409
|
}
|
3412
3410
|
}
|
3413
|
-
function
|
3414
|
-
delete N[e], X.update((r) => (r[e] =
|
3411
|
+
function Tt(e, ...t) {
|
3412
|
+
delete N[e], X.update((r) => (r[e] = gr.all([r[e] || {}, ...t]), r));
|
3415
3413
|
}
|
3416
3414
|
k(
|
3417
3415
|
[X],
|
3418
3416
|
([e]) => Object.keys(e)
|
3419
3417
|
);
|
3420
|
-
X.subscribe((e) =>
|
3418
|
+
X.subscribe((e) => Ce = e);
|
3421
3419
|
const se = {};
|
3422
|
-
function
|
3420
|
+
function dn(e, t) {
|
3423
3421
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3424
3422
|
}
|
3425
|
-
function
|
3423
|
+
function Bt(e) {
|
3426
3424
|
return se[e];
|
3427
3425
|
}
|
3428
|
-
function
|
3426
|
+
function gn(e) {
|
3429
3427
|
return fe(e).map((t) => {
|
3430
|
-
const r =
|
3428
|
+
const r = Bt(t);
|
3431
3429
|
return [t, r ? [...r] : []];
|
3432
3430
|
}).filter(([, t]) => t.length > 0);
|
3433
3431
|
}
|
@@ -3435,31 +3433,31 @@ function Oe(e) {
|
|
3435
3433
|
return e == null ? !1 : fe(e).some(
|
3436
3434
|
(t) => {
|
3437
3435
|
var r;
|
3438
|
-
return (r =
|
3436
|
+
return (r = Bt(t)) == null ? void 0 : r.size;
|
3439
3437
|
}
|
3440
3438
|
);
|
3441
3439
|
}
|
3442
|
-
function
|
3440
|
+
function xn(e, t) {
|
3443
3441
|
return Promise.all(
|
3444
|
-
t.map((n) => (
|
3445
|
-
).then((n) =>
|
3442
|
+
t.map((n) => (dn(e, n), n().then((i) => i.default || i)))
|
3443
|
+
).then((n) => Tt(e, ...n));
|
3446
3444
|
}
|
3447
3445
|
const W = {};
|
3448
|
-
function
|
3446
|
+
function St(e) {
|
3449
3447
|
if (!Oe(e))
|
3450
3448
|
return e in W ? W[e] : Promise.resolve();
|
3451
|
-
const t =
|
3449
|
+
const t = gn(e);
|
3452
3450
|
return W[e] = Promise.all(
|
3453
3451
|
t.map(
|
3454
|
-
([r, n]) =>
|
3452
|
+
([r, n]) => xn(r, n)
|
3455
3453
|
)
|
3456
3454
|
).then(() => {
|
3457
3455
|
if (Oe(e))
|
3458
|
-
return
|
3456
|
+
return St(e);
|
3459
3457
|
delete W[e];
|
3460
3458
|
}), W[e];
|
3461
3459
|
}
|
3462
|
-
const
|
3460
|
+
const En = {
|
3463
3461
|
number: {
|
3464
3462
|
scientific: { notation: "scientific" },
|
3465
3463
|
engineering: { notation: "engineering" },
|
@@ -3488,34 +3486,34 @@ const yn = {
|
|
3488
3486
|
timeZoneName: "short"
|
3489
3487
|
}
|
3490
3488
|
}
|
3491
|
-
},
|
3489
|
+
}, yn = {
|
3492
3490
|
fallbackLocale: null,
|
3493
3491
|
loadingDelay: 200,
|
3494
|
-
formats:
|
3492
|
+
formats: En,
|
3495
3493
|
warnOnMissingMessages: !0,
|
3496
3494
|
handleMissingMessage: void 0,
|
3497
3495
|
ignoreTag: !0
|
3498
|
-
},
|
3496
|
+
}, _n = yn;
|
3499
3497
|
function V() {
|
3500
|
-
return
|
3498
|
+
return _n;
|
3501
3499
|
}
|
3502
3500
|
const Ee = he(!1);
|
3503
|
-
var
|
3501
|
+
var vn = Object.defineProperty, Hn = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, Ze = Object.getOwnPropertySymbols, Bn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, Qe = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, An = (e, t) => {
|
3504
3502
|
for (var r in t || (t = {}))
|
3505
|
-
|
3506
|
-
if (
|
3507
|
-
for (var r of
|
3508
|
-
|
3503
|
+
Bn.call(t, r) && Qe(e, r, t[r]);
|
3504
|
+
if (Ze)
|
3505
|
+
for (var r of Ze(t))
|
3506
|
+
Sn.call(t, r) && Qe(e, r, t[r]);
|
3509
3507
|
return e;
|
3510
|
-
},
|
3508
|
+
}, Pn = (e, t) => Hn(e, Tn(t));
|
3511
3509
|
let Ne;
|
3512
3510
|
const oe = he(null);
|
3513
|
-
function
|
3511
|
+
function Je(e) {
|
3514
3512
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3515
3513
|
}
|
3516
3514
|
function fe(e, t = V().fallbackLocale) {
|
3517
|
-
const r =
|
3518
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3515
|
+
const r = Je(e);
|
3516
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Je(t)])] : r;
|
3519
3517
|
}
|
3520
3518
|
function C() {
|
3521
3519
|
return Ne ?? void 0;
|
@@ -3523,22 +3521,22 @@ function C() {
|
|
3523
3521
|
oe.subscribe((e) => {
|
3524
3522
|
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3525
3523
|
});
|
3526
|
-
const
|
3527
|
-
if (e &&
|
3524
|
+
const On = (e) => {
|
3525
|
+
if (e && bn(e) && Oe(e)) {
|
3528
3526
|
const { loadingDelay: t } = V();
|
3529
3527
|
let r;
|
3530
3528
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
3531
3529
|
() => Ee.set(!0),
|
3532
3530
|
t
|
3533
|
-
) : Ee.set(!0),
|
3531
|
+
) : Ee.set(!0), St(e).then(() => {
|
3534
3532
|
oe.set(e);
|
3535
3533
|
}).finally(() => {
|
3536
3534
|
clearTimeout(r), Ee.set(!1);
|
3537
3535
|
});
|
3538
3536
|
}
|
3539
3537
|
return oe.set(e);
|
3540
|
-
}, I =
|
3541
|
-
set:
|
3538
|
+
}, I = Pn(An({}, oe), {
|
3539
|
+
set: On
|
3542
3540
|
}), ce = (e) => {
|
3543
3541
|
const t = /* @__PURE__ */ Object.create(null);
|
3544
3542
|
return (n) => {
|
@@ -3546,20 +3544,20 @@ const Nn = (e) => {
|
|
3546
3544
|
return i in t ? t[i] : t[i] = e(n);
|
3547
3545
|
};
|
3548
3546
|
};
|
3549
|
-
var
|
3547
|
+
var Nn = Object.defineProperty, ae = Object.getOwnPropertySymbols, At = Object.prototype.hasOwnProperty, Pt = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Me = (e, t) => {
|
3550
3548
|
for (var r in t || (t = {}))
|
3551
|
-
|
3549
|
+
At.call(t, r) && qe(e, r, t[r]);
|
3552
3550
|
if (ae)
|
3553
3551
|
for (var r of ae(t))
|
3554
|
-
|
3552
|
+
Pt.call(t, r) && qe(e, r, t[r]);
|
3555
3553
|
return e;
|
3556
3554
|
}, z = (e, t) => {
|
3557
3555
|
var r = {};
|
3558
3556
|
for (var n in e)
|
3559
|
-
|
3557
|
+
At.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3560
3558
|
if (e != null && ae)
|
3561
3559
|
for (var n of ae(e))
|
3562
|
-
t.indexOf(n) < 0 &&
|
3560
|
+
t.indexOf(n) < 0 && Pt.call(e, n) && (r[n] = e[n]);
|
3563
3561
|
return r;
|
3564
3562
|
};
|
3565
3563
|
const Y = (e, t) => {
|
@@ -3567,21 +3565,21 @@ const Y = (e, t) => {
|
|
3567
3565
|
if (e in r && t in r[e])
|
3568
3566
|
return r[e][t];
|
3569
3567
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
3570
|
-
},
|
3568
|
+
}, In = ce(
|
3571
3569
|
(e) => {
|
3572
3570
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3573
3571
|
if (r == null)
|
3574
3572
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3575
3573
|
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
3576
3574
|
}
|
3577
|
-
),
|
3575
|
+
), wn = ce(
|
3578
3576
|
(e) => {
|
3579
3577
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3580
3578
|
if (r == null)
|
3581
3579
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3582
3580
|
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
3583
3581
|
}
|
3584
|
-
),
|
3582
|
+
), Ln = ce(
|
3585
3583
|
(e) => {
|
3586
3584
|
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
3587
3585
|
if (r == null)
|
@@ -3590,33 +3588,33 @@ const Y = (e, t) => {
|
|
3590
3588
|
);
|
3591
3589
|
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
3592
3590
|
}
|
3593
|
-
),
|
3591
|
+
), Cn = (e = {}) => {
|
3594
3592
|
var t = e, {
|
3595
3593
|
locale: r = C()
|
3596
3594
|
} = t, n = z(t, [
|
3597
3595
|
"locale"
|
3598
3596
|
]);
|
3599
|
-
return
|
3600
|
-
},
|
3597
|
+
return In(Me({ locale: r }, n));
|
3598
|
+
}, Mn = (e = {}) => {
|
3601
3599
|
var t = e, {
|
3602
3600
|
locale: r = C()
|
3603
3601
|
} = t, n = z(t, [
|
3604
3602
|
"locale"
|
3605
3603
|
]);
|
3606
|
-
return
|
3607
|
-
},
|
3604
|
+
return wn(Me({ locale: r }, n));
|
3605
|
+
}, Rn = (e = {}) => {
|
3608
3606
|
var t = e, {
|
3609
3607
|
locale: r = C()
|
3610
3608
|
} = t, n = z(t, [
|
3611
3609
|
"locale"
|
3612
3610
|
]);
|
3613
|
-
return
|
3614
|
-
},
|
3611
|
+
return Ln(Me({ locale: r }, n));
|
3612
|
+
}, $n = ce(
|
3615
3613
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3616
|
-
(e, t = C()) => new
|
3614
|
+
(e, t = C()) => new ln(e, t, V().formats, {
|
3617
3615
|
ignoreTag: V().ignoreTag
|
3618
3616
|
})
|
3619
|
-
),
|
3617
|
+
), Un = (e, t = {}) => {
|
3620
3618
|
var r, n, i, s;
|
3621
3619
|
let a = t;
|
3622
3620
|
typeof e == "object" && (a = e, e = a.id);
|
@@ -3629,7 +3627,7 @@ const Y = (e, t) => {
|
|
3629
3627
|
throw new Error(
|
3630
3628
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3631
3629
|
);
|
3632
|
-
let u =
|
3630
|
+
let u = vt(e, l);
|
3633
3631
|
if (!u)
|
3634
3632
|
u = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: h })) != null ? i : h) != null ? s : e;
|
3635
3633
|
else if (typeof u != "string")
|
@@ -3640,7 +3638,7 @@ const Y = (e, t) => {
|
|
3640
3638
|
return u;
|
3641
3639
|
let c = u;
|
3642
3640
|
try {
|
3643
|
-
c =
|
3641
|
+
c = $n(u, l).format(o);
|
3644
3642
|
} catch (f) {
|
3645
3643
|
f instanceof Error && console.warn(
|
3646
3644
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3648,23 +3646,23 @@ const Y = (e, t) => {
|
|
3648
3646
|
);
|
3649
3647
|
}
|
3650
3648
|
return c;
|
3651
|
-
},
|
3649
|
+
}, Gn = (e, t) => Rn(t).format(e), Dn = (e, t) => Mn(t).format(e), Fn = (e, t) => Cn(t).format(e), jn = (e, t = C()) => vt(e, t), Vn = k([I, X], () => Un);
|
3650
|
+
k([I], () => Gn);
|
3652
3651
|
k([I], () => Dn);
|
3653
3652
|
k([I], () => Fn);
|
3654
|
-
k([I], () => jn);
|
3655
|
-
|
3656
|
-
function Xn({ withLocale: e, translations: t }) {
|
3653
|
+
k([I, X], () => jn);
|
3654
|
+
function kn({ withLocale: e, translations: t }) {
|
3657
3655
|
I.subscribe((r) => {
|
3658
3656
|
r == null && (X.set(t), I.set(e));
|
3659
3657
|
});
|
3660
3658
|
}
|
3661
|
-
function
|
3662
|
-
|
3659
|
+
function Ye(e, t) {
|
3660
|
+
Tt(e, t);
|
3663
3661
|
}
|
3664
|
-
function
|
3662
|
+
function Xn(e) {
|
3665
3663
|
I.set(e);
|
3666
3664
|
}
|
3667
|
-
const
|
3665
|
+
const Ke = {
|
3668
3666
|
en: {
|
3669
3667
|
bets: "bets"
|
3670
3668
|
},
|
@@ -3690,25 +3688,25 @@ const tt = {
|
|
3690
3688
|
bets: "bets"
|
3691
3689
|
}
|
3692
3690
|
};
|
3693
|
-
function
|
3694
|
-
|
3691
|
+
function zn(e) {
|
3692
|
+
Mt(e, "svelte-6dosur", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.general-icon-progress-bar{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);height:100%;background:rgba(0, 0, 0, 0.8);border-radius:3px}.stepBar.inactive::after{border-color:#a6a4a1 transparent transparent transparent}.stepBar.inactive{background:linear-gradient(270deg, #a2a09e 8.82%, #aba9ad 99.63%)}.stepBar.inactive span{color:rgba(112, 106, 106, 0.8)}.stepBar span{font-weight:700;font-size:11px;line-height:var(--parentElementHeight, 20px);align-items:center;color:#fff;text-align:right;position:relative;z-index:1;white-space:nowrap}.stepBar::after{content:" ";position:absolute;top:0;border-width:20px 10px 20px 0;border-top-width:var(--triangleHeight, 20px);border-right-width:var(--halfOfTriangleHeight, 10px);border-bottom-width:var(--triangleHeight, 20px);border-style:solid;border-color:#FCA452 transparent transparent transparent;text-align:right}.stepBar{position:relative;width:var(--currentStep, 0);height:100%;background:linear-gradient(270deg, #FCA452 8.82%, #600062 99.63%);text-align:right;border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:var(--stepBarBorderRadius, 0px);border-bottom-right-radius:var(--stepBarBorderRadius, 0px);transition-property:width;transition-duration:0.18s;transition-timing-function:cubic-bezier(0.43, 0.8, 0.95, 0.88);transition-delay:0.3s}');
|
3695
3693
|
}
|
3696
|
-
function
|
3694
|
+
function Wn(e) {
|
3697
3695
|
let t, r, n, i, s;
|
3698
3696
|
return {
|
3699
3697
|
c() {
|
3700
|
-
t = Z("div"), r = Z("div"), n = Z("span"), i =
|
3698
|
+
t = Z("div"), r = Z("div"), n = Z("span"), i = Ut(
|
3701
3699
|
/*progressText*/
|
3702
3700
|
e[3]
|
3703
3701
|
), L(n, "part", "progressText"), L(r, "class", s = "stepBar " + /*curTatus*/
|
3704
3702
|
e[4]), L(r, "part", "stepBar"), L(t, "class", "general-icon-progress-bar"), L(t, "part", "totalBar");
|
3705
3703
|
},
|
3706
3704
|
m(a, o) {
|
3707
|
-
|
3705
|
+
nt(a, t, o), re(t, r), re(r, n), re(n, i), e[13](n), e[14](r), e[15](t);
|
3708
3706
|
},
|
3709
3707
|
p(a, [o]) {
|
3710
3708
|
o & /*progressText*/
|
3711
|
-
8 &&
|
3709
|
+
8 && Dt(
|
3712
3710
|
i,
|
3713
3711
|
/*progressText*/
|
3714
3712
|
a[3]
|
@@ -3723,25 +3721,25 @@ function Zn(e) {
|
|
3723
3721
|
}
|
3724
3722
|
};
|
3725
3723
|
}
|
3726
|
-
function
|
3724
|
+
function Zn(e, t, r) {
|
3727
3725
|
let n;
|
3728
|
-
|
3726
|
+
Ct(e, Vn, (p) => r(20, n = p));
|
3729
3727
|
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl: h = "" } = t, { progressfractiondigit: u = 1 } = t, { triggerreset: c } = t, f, x, g, y, H, B, S, v = "0px", O = "active";
|
3730
|
-
|
3728
|
+
kn({ withLocale: "en", translations: {} });
|
3731
3729
|
const P = () => {
|
3732
3730
|
fetch(h).then((w) => w.json()).then((w) => {
|
3733
|
-
Object.keys(w).forEach((
|
3734
|
-
|
3731
|
+
Object.keys(w).forEach((Re) => {
|
3732
|
+
Ye(Re, w[Re]);
|
3735
3733
|
});
|
3736
3734
|
}).catch((w) => {
|
3737
3735
|
console.log(w);
|
3738
3736
|
});
|
3739
3737
|
};
|
3740
|
-
Object.keys(
|
3741
|
-
|
3738
|
+
Object.keys(Ke).forEach((p) => {
|
3739
|
+
Ye(p, Ke[p]);
|
3742
3740
|
});
|
3743
3741
|
const M = () => {
|
3744
|
-
|
3742
|
+
Xn(o);
|
3745
3743
|
}, ee = () => {
|
3746
3744
|
let p = (i / s * 100).toFixed(u);
|
3747
3745
|
setTimeout(
|
@@ -3750,20 +3748,20 @@ function Qn(e, t, r) {
|
|
3750
3748
|
},
|
3751
3749
|
y ? 573 : 0
|
3752
3750
|
), p == 0 || p == 100 ? (B = "0px", S = "0px", v = p == 100 ? "3px" : "0px") : (B = `${f.offsetHeight}px`, H = B, S = `${f.offsetHeight / 3}px`, v = "0px"), x.style.setProperty("--parentElementHeight", H), g.style.setProperty("--currentStep", p + "%"), g.style.setProperty("--triangleHeight", B), g.style.setProperty("--halfOfTriangleHeight", S), g.style.setProperty("--stepBarBorderRadius", v);
|
3753
|
-
},
|
3751
|
+
}, Ot = () => {
|
3754
3752
|
r(4, O = l == "active" ? "" : "inactive");
|
3755
3753
|
};
|
3756
|
-
function
|
3754
|
+
function Nt(p) {
|
3757
3755
|
J[p ? "unshift" : "push"](() => {
|
3758
3756
|
x = p, r(1, x);
|
3759
3757
|
});
|
3760
3758
|
}
|
3761
|
-
function
|
3759
|
+
function It(p) {
|
3762
3760
|
J[p ? "unshift" : "push"](() => {
|
3763
3761
|
g = p, r(2, g);
|
3764
3762
|
});
|
3765
3763
|
}
|
3766
|
-
function
|
3764
|
+
function wt(p) {
|
3767
3765
|
J[p ? "unshift" : "push"](() => {
|
3768
3766
|
f = p, r(0, f);
|
3769
3767
|
});
|
@@ -3776,7 +3774,7 @@ function Qn(e, t, r) {
|
|
3776
3774
|
ee();
|
3777
3775
|
}), e.$$.dirty & /*lang*/
|
3778
3776
|
256 && o && M(), e.$$.dirty & /*status*/
|
3779
|
-
512 && l &&
|
3777
|
+
512 && l && Ot(), e.$$.dirty & /*translationurl*/
|
3780
3778
|
1024 && h && P();
|
3781
3779
|
}, [
|
3782
3780
|
f,
|
@@ -3792,19 +3790,19 @@ function Qn(e, t, r) {
|
|
3792
3790
|
h,
|
3793
3791
|
u,
|
3794
3792
|
c,
|
3795
|
-
|
3796
|
-
|
3797
|
-
|
3793
|
+
Nt,
|
3794
|
+
It,
|
3795
|
+
wt
|
3798
3796
|
];
|
3799
3797
|
}
|
3800
|
-
class
|
3798
|
+
class Qn extends Kt {
|
3801
3799
|
constructor(t) {
|
3802
|
-
super(),
|
3800
|
+
super(), qt(
|
3803
3801
|
this,
|
3804
3802
|
t,
|
3805
|
-
Qn,
|
3806
3803
|
Zn,
|
3807
|
-
|
3804
|
+
Wn,
|
3805
|
+
tt,
|
3808
3806
|
{
|
3809
3807
|
currentstep: 5,
|
3810
3808
|
total: 6,
|
@@ -3815,7 +3813,7 @@ class Jn extends tr {
|
|
3815
3813
|
progressfractiondigit: 11,
|
3816
3814
|
triggerreset: 12
|
3817
3815
|
},
|
3818
|
-
|
3816
|
+
zn
|
3819
3817
|
);
|
3820
3818
|
}
|
3821
3819
|
get currentstep() {
|
@@ -3867,7 +3865,7 @@ class Jn extends tr {
|
|
3867
3865
|
this.$$set({ triggerreset: t }), A();
|
3868
3866
|
}
|
3869
3867
|
}
|
3870
|
-
|
3868
|
+
Yt(Qn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3871
3869
|
export {
|
3872
|
-
|
3870
|
+
Qn as G
|
3873
3871
|
};
|