@everymatrix/general-icon-progress-bar 1.74.3 → 1.74.4
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-B2l5IJIC.js → GeneralIconProgressBar-DSaIA0Oc.js} +394 -396
- package/components/GeneralIconProgressBar-DvairRCn.cjs +16 -0
- package/components/{GeneralIconProgressBar-BQOld2VG.js → GeneralIconProgressBar-DvfGRc7A.js} +373 -375
- 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-j-fA-plB.cjs +0 -16
package/components/{GeneralIconProgressBar-BQOld2VG.js → GeneralIconProgressBar-DvfGRc7A.js}
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
function T() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function rt(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function Ge() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function K(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(rt);
|
11
11
|
}
|
12
12
|
function Ie(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function nt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function Mt(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function it(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,20 +27,20 @@ function nt(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 Rt(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(it(t, r));
|
32
32
|
}
|
33
33
|
function re(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function $t(e, t, r) {
|
37
|
+
const n = Ut(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, Gt(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function Ut(e) {
|
44
44
|
if (!e)
|
45
45
|
return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -50,14 +50,14 @@ function $t(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
53
|
+
function Gt(e, t) {
|
54
54
|
return re(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
57
57
|
t
|
58
58
|
), t.sheet;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function st(e, t, r) {
|
61
61
|
e.insertBefore(t, r || null);
|
62
62
|
}
|
63
63
|
function we(e) {
|
@@ -66,20 +66,20 @@ function we(e) {
|
|
66
66
|
function Z(e) {
|
67
67
|
return document.createElement(e);
|
68
68
|
}
|
69
|
-
function
|
69
|
+
function Dt(e) {
|
70
70
|
return document.createTextNode(e);
|
71
71
|
}
|
72
72
|
function L(e, t, r) {
|
73
73
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
74
74
|
}
|
75
|
-
function
|
75
|
+
function Ft(e) {
|
76
76
|
return Array.from(e.childNodes);
|
77
77
|
}
|
78
|
-
function
|
78
|
+
function jt(e, t) {
|
79
79
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
80
80
|
t);
|
81
81
|
}
|
82
|
-
function
|
82
|
+
function Vt(e) {
|
83
83
|
const t = {};
|
84
84
|
return e.childNodes.forEach(
|
85
85
|
/** @param {Element} node */
|
@@ -94,10 +94,10 @@ function Q(e) {
|
|
94
94
|
}
|
95
95
|
const U = [], J = [];
|
96
96
|
let G = [];
|
97
|
-
const
|
97
|
+
const De = [], kt = /* @__PURE__ */ Promise.resolve();
|
98
98
|
let ye = !1;
|
99
|
-
function
|
100
|
-
ye || (ye = !0,
|
99
|
+
function Xt() {
|
100
|
+
ye || (ye = !0, kt.then(S));
|
101
101
|
}
|
102
102
|
function _e(e) {
|
103
103
|
G.push(e);
|
@@ -112,7 +112,7 @@ function S() {
|
|
112
112
|
try {
|
113
113
|
for (; R < U.length; ) {
|
114
114
|
const t = U[R];
|
115
|
-
R++, Q(t),
|
115
|
+
R++, Q(t), zt(t.$$);
|
116
116
|
}
|
117
117
|
} catch (t) {
|
118
118
|
throw U.length = 0, R = 0, t;
|
@@ -125,50 +125,50 @@ function S() {
|
|
125
125
|
}
|
126
126
|
G.length = 0;
|
127
127
|
} while (U.length);
|
128
|
-
for (;
|
129
|
-
|
128
|
+
for (; De.length; )
|
129
|
+
De.pop()();
|
130
130
|
ye = !1, pe.clear(), Q(e);
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function zt(e) {
|
133
133
|
if (e.fragment !== null) {
|
134
134
|
e.update(), K(e.before_update);
|
135
135
|
const t = e.dirty;
|
136
136
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(_e);
|
137
137
|
}
|
138
138
|
}
|
139
|
-
function
|
139
|
+
function Wt(e) {
|
140
140
|
const t = [], r = [];
|
141
141
|
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
142
142
|
}
|
143
|
-
const
|
144
|
-
function
|
145
|
-
e && e.i && (
|
143
|
+
const Zt = /* @__PURE__ */ new Set();
|
144
|
+
function Qt(e, t) {
|
145
|
+
e && e.i && (Zt.delete(e), e.i(t));
|
146
146
|
}
|
147
|
-
function
|
147
|
+
function Jt(e, t, r) {
|
148
148
|
const { fragment: n, after_update: i } = e.$$;
|
149
149
|
n && n.m(t, r), _e(() => {
|
150
|
-
const s = e.$$.on_mount.map(
|
150
|
+
const s = e.$$.on_mount.map(rt).filter(Ie);
|
151
151
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
152
152
|
}), i.forEach(_e);
|
153
153
|
}
|
154
|
-
function
|
154
|
+
function qt(e, t) {
|
155
155
|
const r = e.$$;
|
156
|
-
r.fragment !== null && (
|
156
|
+
r.fragment !== null && (Wt(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
157
157
|
}
|
158
|
-
function
|
159
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
158
|
+
function Yt(e, t) {
|
159
|
+
e.$$.dirty[0] === -1 && (U.push(e), Xt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function Kt(e, t, r, n, i, s, a = null, o = [-1]) {
|
162
162
|
const l = Le;
|
163
163
|
Q(e);
|
164
|
-
const
|
164
|
+
const h = e.$$ = {
|
165
165
|
fragment: null,
|
166
166
|
ctx: [],
|
167
167
|
// state
|
168
168
|
props: s,
|
169
169
|
update: T,
|
170
170
|
not_equal: i,
|
171
|
-
bound:
|
171
|
+
bound: Ge(),
|
172
172
|
// lifecycle
|
173
173
|
on_mount: [],
|
174
174
|
on_destroy: [],
|
@@ -177,28 +177,28 @@ function Yt(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
177
177
|
after_update: [],
|
178
178
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
179
179
|
// everything else
|
180
|
-
callbacks:
|
180
|
+
callbacks: Ge(),
|
181
181
|
dirty: o,
|
182
182
|
skip_bound: !1,
|
183
183
|
root: t.target || l.$$.root
|
184
184
|
};
|
185
|
-
a && a(
|
186
|
-
let
|
187
|
-
if (
|
185
|
+
a && a(h.root);
|
186
|
+
let u = !1;
|
187
|
+
if (h.ctx = r ? r(e, t.props || {}, (c, f, ...x) => {
|
188
188
|
const g = x.length ? x[0] : f;
|
189
|
-
return
|
190
|
-
}),
|
189
|
+
return h.ctx && i(h.ctx[c], h.ctx[c] = g) && (!h.skip_bound && h.bound[c] && h.bound[c](g), u && Yt(e, c)), f;
|
190
|
+
}) : [], h.update(), u = !0, K(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
|
191
191
|
if (t.hydrate) {
|
192
|
-
const c =
|
193
|
-
|
192
|
+
const c = Ft(t.target);
|
193
|
+
h.fragment && h.fragment.l(c), c.forEach(we);
|
194
194
|
} else
|
195
|
-
|
196
|
-
t.intro &&
|
195
|
+
h.fragment && h.fragment.c();
|
196
|
+
t.intro && Qt(e.$$.fragment), Jt(e, t.target, t.anchor), S();
|
197
197
|
}
|
198
198
|
Q(l);
|
199
199
|
}
|
200
|
-
let
|
201
|
-
typeof HTMLElement == "function" && (
|
200
|
+
let ot;
|
201
|
+
typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
202
202
|
/** The Svelte component constructor */
|
203
203
|
$$ctor;
|
204
204
|
/** Slots */
|
@@ -246,8 +246,8 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
246
246
|
* @param {HTMLElement} target
|
247
247
|
* @param {HTMLElement} [anchor]
|
248
248
|
*/
|
249
|
-
m: function(l,
|
250
|
-
|
249
|
+
m: function(l, h) {
|
250
|
+
st(l, s, h);
|
251
251
|
},
|
252
252
|
d: function(l) {
|
253
253
|
l && we(s);
|
@@ -257,7 +257,7 @@ typeof HTMLElement == "function" && (st = class extends HTMLElement {
|
|
257
257
|
};
|
258
258
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
259
259
|
return;
|
260
|
-
const t = {}, r =
|
260
|
+
const t = {}, r = Vt(this);
|
261
261
|
for (const i of this.$$s)
|
262
262
|
i in r && (t[i] = [e(i)]);
|
263
263
|
for (const i of this.attributes) {
|
@@ -344,8 +344,8 @@ function ne(e, t, r, n) {
|
|
344
344
|
return t;
|
345
345
|
}
|
346
346
|
}
|
347
|
-
function
|
348
|
-
let a = class extends
|
347
|
+
function er(e, t, r, n, i, s) {
|
348
|
+
let a = class extends ot {
|
349
349
|
constructor() {
|
350
350
|
super(e, r, i), this.$$p_d = t;
|
351
351
|
}
|
@@ -373,7 +373,7 @@ function Kt(e, t, r, n, i, s) {
|
|
373
373
|
}), e.element = /** @type {any} */
|
374
374
|
a, a;
|
375
375
|
}
|
376
|
-
class
|
376
|
+
class tr {
|
377
377
|
/**
|
378
378
|
* ### PRIVATE API
|
379
379
|
*
|
@@ -392,7 +392,7 @@ class er {
|
|
392
392
|
$$set = void 0;
|
393
393
|
/** @returns {void} */
|
394
394
|
$destroy() {
|
395
|
-
|
395
|
+
qt(this, 1), this.$destroy = T;
|
396
396
|
}
|
397
397
|
/**
|
398
398
|
* @template {Extract<keyof Events, string>} K
|
@@ -414,28 +414,28 @@ class er {
|
|
414
414
|
* @returns {void}
|
415
415
|
*/
|
416
416
|
$set(t) {
|
417
|
-
this.$$set && !
|
417
|
+
this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
418
418
|
}
|
419
419
|
}
|
420
|
-
const
|
421
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
420
|
+
const rr = "4";
|
421
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rr);
|
422
422
|
const $ = [];
|
423
|
-
function
|
423
|
+
function nr(e, t) {
|
424
424
|
return {
|
425
|
-
subscribe:
|
425
|
+
subscribe: he(e, t).subscribe
|
426
426
|
};
|
427
427
|
}
|
428
|
-
function
|
428
|
+
function he(e, t = T) {
|
429
429
|
let r;
|
430
430
|
const n = /* @__PURE__ */ new Set();
|
431
431
|
function i(o) {
|
432
|
-
if (
|
432
|
+
if (nt(e, o) && (e = o, r)) {
|
433
433
|
const l = !$.length;
|
434
|
-
for (const
|
435
|
-
|
434
|
+
for (const h of n)
|
435
|
+
h[1](), $.push(h, e);
|
436
436
|
if (l) {
|
437
|
-
for (let
|
438
|
-
$[
|
437
|
+
for (let h = 0; h < $.length; h += 2)
|
438
|
+
$[h][0]($[h + 1]);
|
439
439
|
$.length = 0;
|
440
440
|
}
|
441
441
|
}
|
@@ -444,9 +444,9 @@ function ue(e, t = T) {
|
|
444
444
|
i(o(e));
|
445
445
|
}
|
446
446
|
function a(o, l = T) {
|
447
|
-
const
|
448
|
-
return n.add(
|
449
|
-
n.delete(
|
447
|
+
const h = [o, l];
|
448
|
+
return n.add(h), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
449
|
+
n.delete(h), n.size === 0 && r && (r(), r = null);
|
450
450
|
};
|
451
451
|
}
|
452
452
|
return { set: i, update: s, subscribe: a };
|
@@ -456,24 +456,24 @@ function k(e, t, r) {
|
|
456
456
|
if (!i.every(Boolean))
|
457
457
|
throw new Error("derived() expects stores as input, got a falsy value");
|
458
458
|
const s = t.length < 2;
|
459
|
-
return
|
459
|
+
return nr(r, (a, o) => {
|
460
460
|
let l = !1;
|
461
|
-
const
|
462
|
-
let
|
461
|
+
const h = [];
|
462
|
+
let u = 0, c = T;
|
463
463
|
const f = () => {
|
464
|
-
if (
|
464
|
+
if (u)
|
465
465
|
return;
|
466
466
|
c();
|
467
|
-
const g = t(n ?
|
467
|
+
const g = t(n ? h[0] : h, a, o);
|
468
468
|
s ? a(g) : c = Ie(g) ? g : T;
|
469
469
|
}, x = i.map(
|
470
|
-
(g, y) =>
|
470
|
+
(g, y) => it(
|
471
471
|
g,
|
472
472
|
(H) => {
|
473
|
-
|
473
|
+
h[y] = H, u &= ~(1 << y), l && f();
|
474
474
|
},
|
475
475
|
() => {
|
476
|
-
|
476
|
+
u |= 1 << y;
|
477
477
|
}
|
478
478
|
)
|
479
479
|
);
|
@@ -482,68 +482,68 @@ function k(e, t, r) {
|
|
482
482
|
};
|
483
483
|
});
|
484
484
|
}
|
485
|
-
function
|
486
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
485
|
+
function ir(e) {
|
486
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
487
487
|
}
|
488
|
-
var
|
489
|
-
return
|
488
|
+
var sr = function(t) {
|
489
|
+
return or(t) && !ar(t);
|
490
490
|
};
|
491
|
-
function
|
491
|
+
function or(e) {
|
492
492
|
return !!e && typeof e == "object";
|
493
493
|
}
|
494
|
-
function
|
494
|
+
function ar(e) {
|
495
495
|
var t = Object.prototype.toString.call(e);
|
496
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
496
|
+
return t === "[object RegExp]" || t === "[object Date]" || lr(e);
|
497
497
|
}
|
498
|
-
var
|
499
|
-
function
|
498
|
+
var hr = typeof Symbol == "function" && Symbol.for, ur = hr ? Symbol.for("react.element") : 60103;
|
499
|
+
function lr(e) {
|
500
500
|
return e.$$typeof === ur;
|
501
501
|
}
|
502
|
-
function
|
502
|
+
function fr(e) {
|
503
503
|
return Array.isArray(e) ? [] : {};
|
504
504
|
}
|
505
505
|
function q(e, t) {
|
506
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? D(
|
506
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? D(fr(e), e, t) : e;
|
507
507
|
}
|
508
|
-
function
|
508
|
+
function cr(e, t, r) {
|
509
509
|
return e.concat(t).map(function(n) {
|
510
510
|
return q(n, r);
|
511
511
|
});
|
512
512
|
}
|
513
|
-
function
|
513
|
+
function pr(e, t) {
|
514
514
|
if (!t.customMerge)
|
515
515
|
return D;
|
516
516
|
var r = t.customMerge(e);
|
517
517
|
return typeof r == "function" ? r : D;
|
518
518
|
}
|
519
|
-
function
|
519
|
+
function mr(e) {
|
520
520
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
521
521
|
return Object.propertyIsEnumerable.call(e, t);
|
522
522
|
}) : [];
|
523
523
|
}
|
524
|
-
function
|
525
|
-
return Object.keys(e).concat(
|
524
|
+
function Fe(e) {
|
525
|
+
return Object.keys(e).concat(mr(e));
|
526
526
|
}
|
527
|
-
function
|
527
|
+
function at(e, t) {
|
528
528
|
try {
|
529
529
|
return t in e;
|
530
530
|
} catch {
|
531
531
|
return !1;
|
532
532
|
}
|
533
533
|
}
|
534
|
-
function
|
535
|
-
return
|
534
|
+
function br(e, t) {
|
535
|
+
return at(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
536
536
|
}
|
537
537
|
function dr(e, t, r) {
|
538
538
|
var n = {};
|
539
|
-
return r.isMergeableObject(e) &&
|
539
|
+
return r.isMergeableObject(e) && Fe(e).forEach(function(i) {
|
540
540
|
n[i] = q(e[i], r);
|
541
|
-
}),
|
542
|
-
|
541
|
+
}), Fe(t).forEach(function(i) {
|
542
|
+
br(e, i) || (at(e, i) && r.isMergeableObject(t[i]) ? n[i] = pr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
543
543
|
}), n;
|
544
544
|
}
|
545
545
|
function D(e, t, r) {
|
546
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
546
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || cr, r.isMergeableObject = r.isMergeableObject || sr, r.cloneUnlessOtherwiseSpecified = q;
|
547
547
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
548
548
|
return s ? n ? r.arrayMerge(e, t, r) : dr(e, t, r) : q(t, r);
|
549
549
|
}
|
@@ -554,8 +554,8 @@ D.all = function(t, r) {
|
|
554
554
|
return D(n, i, r);
|
555
555
|
}, {});
|
556
556
|
};
|
557
|
-
var
|
558
|
-
const
|
557
|
+
var gr = D, xr = gr;
|
558
|
+
const Er = /* @__PURE__ */ ir(xr);
|
559
559
|
/*! *****************************************************************************
|
560
560
|
Copyright (c) Microsoft Corporation.
|
561
561
|
|
@@ -578,7 +578,7 @@ var ve = function(e, t) {
|
|
578
578
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
579
579
|
}, ve(e, t);
|
580
580
|
};
|
581
|
-
function
|
581
|
+
function ue(e, t) {
|
582
582
|
if (typeof t != "function" && t !== null)
|
583
583
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
584
584
|
ve(e, t);
|
@@ -587,17 +587,17 @@ function he(e, t) {
|
|
587
587
|
}
|
588
588
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
589
589
|
}
|
590
|
-
var
|
591
|
-
return
|
590
|
+
var d = function() {
|
591
|
+
return d = Object.assign || function(t) {
|
592
592
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
593
593
|
r = arguments[n];
|
594
594
|
for (var s in r)
|
595
595
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
596
596
|
}
|
597
597
|
return t;
|
598
|
-
},
|
598
|
+
}, d.apply(this, arguments);
|
599
599
|
};
|
600
|
-
function
|
600
|
+
function yr(e, t) {
|
601
601
|
var r = {};
|
602
602
|
for (var n in e)
|
603
603
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -612,18 +612,18 @@ function me(e, t, r) {
|
|
612
612
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
613
613
|
return e.concat(s || t);
|
614
614
|
}
|
615
|
-
function
|
616
|
-
var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer :
|
615
|
+
function be(e, t) {
|
616
|
+
var r = t && t.cache ? t.cache : Ar, n = t && t.serializer ? t.serializer : Br, i = t && t.strategy ? t.strategy : vr;
|
617
617
|
return i(e, {
|
618
618
|
cache: r,
|
619
619
|
serializer: n
|
620
620
|
});
|
621
621
|
}
|
622
|
-
function
|
622
|
+
function _r(e) {
|
623
623
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
624
624
|
}
|
625
|
-
function
|
626
|
-
var i =
|
625
|
+
function ht(e, t, r, n) {
|
626
|
+
var i = _r(n) ? n : r(n), s = t.get(i);
|
627
627
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
628
628
|
}
|
629
629
|
function ut(e, t, r) {
|
@@ -633,37 +633,35 @@ function ut(e, t, r) {
|
|
633
633
|
function Ce(e, t, r, n, i) {
|
634
634
|
return r.bind(t, e, n, i);
|
635
635
|
}
|
636
|
-
function
|
637
|
-
var r = e.length === 1 ?
|
636
|
+
function vr(e, t) {
|
637
|
+
var r = e.length === 1 ? ht : ut;
|
638
638
|
return Ce(e, this, r, t.cache.create(), t.serializer);
|
639
639
|
}
|
640
|
-
function
|
640
|
+
function Hr(e, t) {
|
641
641
|
return Ce(e, this, ut, t.cache.create(), t.serializer);
|
642
642
|
}
|
643
|
-
function
|
644
|
-
return Ce(e, this,
|
643
|
+
function Tr(e, t) {
|
644
|
+
return Ce(e, this, ht, t.cache.create(), t.serializer);
|
645
645
|
}
|
646
|
-
var
|
646
|
+
var Br = function() {
|
647
647
|
return JSON.stringify(arguments);
|
648
|
-
}
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
}()
|
660
|
-
), Ar = {
|
648
|
+
};
|
649
|
+
function Me() {
|
650
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
651
|
+
}
|
652
|
+
Me.prototype.get = function(e) {
|
653
|
+
return this.cache[e];
|
654
|
+
};
|
655
|
+
Me.prototype.set = function(e, t) {
|
656
|
+
this.cache[e] = t;
|
657
|
+
};
|
658
|
+
var Ar = {
|
661
659
|
create: function() {
|
662
|
-
return new
|
660
|
+
return new Me();
|
663
661
|
}
|
664
|
-
},
|
665
|
-
variadic:
|
666
|
-
monadic:
|
662
|
+
}, de = {
|
663
|
+
variadic: Hr,
|
664
|
+
monadic: Tr
|
667
665
|
}, m;
|
668
666
|
(function(e) {
|
669
667
|
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";
|
@@ -676,31 +674,31 @@ var F;
|
|
676
674
|
(function(e) {
|
677
675
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
678
676
|
})(F || (F = {}));
|
679
|
-
function
|
677
|
+
function je(e) {
|
680
678
|
return e.type === E.literal;
|
681
679
|
}
|
682
680
|
function Sr(e) {
|
683
681
|
return e.type === E.argument;
|
684
682
|
}
|
685
|
-
function
|
683
|
+
function lt(e) {
|
686
684
|
return e.type === E.number;
|
687
685
|
}
|
688
|
-
function
|
686
|
+
function ft(e) {
|
689
687
|
return e.type === E.date;
|
690
688
|
}
|
691
|
-
function
|
689
|
+
function ct(e) {
|
692
690
|
return e.type === E.time;
|
693
691
|
}
|
694
|
-
function
|
692
|
+
function pt(e) {
|
695
693
|
return e.type === E.select;
|
696
694
|
}
|
697
|
-
function
|
695
|
+
function mt(e) {
|
698
696
|
return e.type === E.plural;
|
699
697
|
}
|
700
698
|
function Pr(e) {
|
701
699
|
return e.type === E.pound;
|
702
700
|
}
|
703
|
-
function
|
701
|
+
function bt(e) {
|
704
702
|
return e.type === E.tag;
|
705
703
|
}
|
706
704
|
function dt(e) {
|
@@ -709,7 +707,7 @@ function dt(e) {
|
|
709
707
|
function He(e) {
|
710
708
|
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
711
709
|
}
|
712
|
-
var
|
710
|
+
var gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Or = /(?:[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;
|
713
711
|
function Nr(e) {
|
714
712
|
var t = {};
|
715
713
|
return e.replace(Or, function(r) {
|
@@ -811,8 +809,8 @@ function wr(e) {
|
|
811
809
|
var s = i[n], a = s.split("/");
|
812
810
|
if (a.length === 0)
|
813
811
|
throw new Error("Invalid number skeleton");
|
814
|
-
for (var o = a[0], l = a.slice(1),
|
815
|
-
var c = h
|
812
|
+
for (var o = a[0], l = a.slice(1), h = 0, u = l; h < u.length; h++) {
|
813
|
+
var c = u[h];
|
816
814
|
if (c.length === 0)
|
817
815
|
throw new Error("Invalid number skeleton");
|
818
816
|
}
|
@@ -823,14 +821,14 @@ function wr(e) {
|
|
823
821
|
function Lr(e) {
|
824
822
|
return e.replace(/^(.*?)-/, "");
|
825
823
|
}
|
826
|
-
var
|
827
|
-
function
|
824
|
+
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xt = /^(@+)?(\+|#+)?[rs]?$/g, Cr = /(\*)(0+)|(#+)(0+)|(0+)/g, Et = /^(0+)$/;
|
825
|
+
function ke(e) {
|
828
826
|
var t = {};
|
829
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
827
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xt, function(r, n, i) {
|
830
828
|
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)), "";
|
831
829
|
}), t;
|
832
830
|
}
|
833
|
-
function
|
831
|
+
function yt(e) {
|
834
832
|
switch (e) {
|
835
833
|
case "sign-auto":
|
836
834
|
return {
|
@@ -878,14 +876,14 @@ function Mr(e) {
|
|
878
876
|
notation: "scientific"
|
879
877
|
}, e = e.slice(1)), t) {
|
880
878
|
var r = e.slice(0, 2);
|
881
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
879
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Et.test(e))
|
882
880
|
throw new Error("Malformed concise eng/scientific notation");
|
883
881
|
t.minimumIntegerDigits = e.length;
|
884
882
|
}
|
885
883
|
return t;
|
886
884
|
}
|
887
|
-
function
|
888
|
-
var t = {}, r =
|
885
|
+
function Xe(e) {
|
886
|
+
var t = {}, r = yt(e);
|
889
887
|
return r || t;
|
890
888
|
}
|
891
889
|
function Rr(e) {
|
@@ -923,13 +921,13 @@ function Rr(e) {
|
|
923
921
|
t.notation = "compact", t.compactDisplay = "long";
|
924
922
|
continue;
|
925
923
|
case "scientific":
|
926
|
-
t =
|
927
|
-
return
|
924
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, h) {
|
925
|
+
return d(d({}, l), Xe(h));
|
928
926
|
}, {}));
|
929
927
|
continue;
|
930
928
|
case "engineering":
|
931
|
-
t =
|
932
|
-
return
|
929
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, h) {
|
930
|
+
return d(d({}, l), Xe(h));
|
933
931
|
}, {}));
|
934
932
|
continue;
|
935
933
|
case "notation-simple":
|
@@ -974,9 +972,9 @@ function Rr(e) {
|
|
974
972
|
case "integer-width":
|
975
973
|
if (i.options.length > 1)
|
976
974
|
throw new RangeError("integer-width stems only accept a single optional option");
|
977
|
-
i.options[0].replace(Cr, function(l,
|
978
|
-
if (
|
979
|
-
t.minimumIntegerDigits =
|
975
|
+
i.options[0].replace(Cr, function(l, h, u, c, f, x) {
|
976
|
+
if (h)
|
977
|
+
t.minimumIntegerDigits = u.length;
|
980
978
|
else {
|
981
979
|
if (c && f)
|
982
980
|
throw new Error("We currently do not support maximum integer digits");
|
@@ -987,28 +985,28 @@ function Rr(e) {
|
|
987
985
|
});
|
988
986
|
continue;
|
989
987
|
}
|
990
|
-
if (
|
988
|
+
if (Et.test(i.stem)) {
|
991
989
|
t.minimumIntegerDigits = i.stem.length;
|
992
990
|
continue;
|
993
991
|
}
|
994
|
-
if (
|
992
|
+
if (Ve.test(i.stem)) {
|
995
993
|
if (i.options.length > 1)
|
996
994
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
997
|
-
i.stem.replace(
|
998
|
-
return
|
995
|
+
i.stem.replace(Ve, function(l, h, u, c, f, x) {
|
996
|
+
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), "";
|
999
997
|
});
|
1000
998
|
var s = i.options[0];
|
1001
|
-
s === "w" ? t =
|
999
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), ke(s)));
|
1002
1000
|
continue;
|
1003
1001
|
}
|
1004
|
-
if (
|
1005
|
-
t =
|
1002
|
+
if (xt.test(i.stem)) {
|
1003
|
+
t = d(d({}, t), ke(i.stem));
|
1006
1004
|
continue;
|
1007
1005
|
}
|
1008
|
-
var a =
|
1009
|
-
a && (t =
|
1006
|
+
var a = yt(i.stem);
|
1007
|
+
a && (t = d(d({}, t), a));
|
1010
1008
|
var o = Mr(i.stem);
|
1011
|
-
o && (t =
|
1009
|
+
o && (t = d(d({}, t), o));
|
1012
1010
|
}
|
1013
1011
|
return t;
|
1014
1012
|
}
|
@@ -2433,11 +2431,11 @@ function $r(e, t) {
|
|
2433
2431
|
if (i === "j") {
|
2434
2432
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2435
2433
|
s++, n++;
|
2436
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a",
|
2437
|
-
for ((
|
2434
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", h = Ur(t);
|
2435
|
+
for ((h == "H" || h == "k") && (o = 0); o-- > 0; )
|
2438
2436
|
r += l;
|
2439
2437
|
for (; a-- > 0; )
|
2440
|
-
r =
|
2438
|
+
r = h + r;
|
2441
2439
|
} else
|
2442
2440
|
i === "J" ? r += "H" : r += i;
|
2443
2441
|
}
|
@@ -2465,20 +2463,20 @@ function Ur(e) {
|
|
2465
2463
|
var i = te[n || ""] || te[r || ""] || te["".concat(r, "-001")] || te["001"];
|
2466
2464
|
return i[0];
|
2467
2465
|
}
|
2468
|
-
var ge, Gr = new RegExp("^".concat(
|
2469
|
-
function
|
2466
|
+
var ge, Gr = new RegExp("^".concat(gt.source, "*")), Dr = new RegExp("".concat(gt.source, "*$"));
|
2467
|
+
function b(e, t) {
|
2470
2468
|
return { start: e, end: t };
|
2471
2469
|
}
|
2472
2470
|
var Fr = !!String.prototype.startsWith && "_a".startsWith("a", 1), jr = !!String.fromCodePoint, Vr = !!Object.fromEntries, kr = !!String.prototype.codePointAt, Xr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Wr = !!Number.isSafeInteger, Zr = Wr ? Number.isSafeInteger : function(e) {
|
2473
2471
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2474
2472
|
}, Te = !0;
|
2475
2473
|
try {
|
2476
|
-
var Qr =
|
2474
|
+
var Qr = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2477
2475
|
Te = ((ge = Qr.exec("a")) === null || ge === void 0 ? void 0 : ge[0]) === "a";
|
2478
2476
|
} catch {
|
2479
2477
|
Te = !1;
|
2480
2478
|
}
|
2481
|
-
var
|
2479
|
+
var ze = Fr ? (
|
2482
2480
|
// Native
|
2483
2481
|
function(t, r, n) {
|
2484
2482
|
return t.startsWith(r, n);
|
@@ -2500,7 +2498,7 @@ var Xe = Fr ? (
|
|
2500
2498
|
}
|
2501
2499
|
return n;
|
2502
2500
|
}
|
2503
|
-
),
|
2501
|
+
), We = (
|
2504
2502
|
// native
|
2505
2503
|
Vr ? Object.fromEntries : (
|
2506
2504
|
// Ponyfill
|
@@ -2512,7 +2510,7 @@ var Xe = Fr ? (
|
|
2512
2510
|
return r;
|
2513
2511
|
}
|
2514
2512
|
)
|
2515
|
-
),
|
2513
|
+
), _t = kr ? (
|
2516
2514
|
// Native
|
2517
2515
|
function(t, r) {
|
2518
2516
|
return t.codePointAt(r);
|
@@ -2547,23 +2545,23 @@ var Xe = Fr ? (
|
|
2547
2545
|
return t.replace(Dr, "");
|
2548
2546
|
}
|
2549
2547
|
);
|
2550
|
-
function
|
2548
|
+
function vt(e, t) {
|
2551
2549
|
return new RegExp(e, t);
|
2552
2550
|
}
|
2553
2551
|
var Ae;
|
2554
2552
|
if (Te) {
|
2555
|
-
var
|
2553
|
+
var Ze = vt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2556
2554
|
Ae = function(t, r) {
|
2557
2555
|
var n;
|
2558
|
-
|
2559
|
-
var i =
|
2556
|
+
Ze.lastIndex = r;
|
2557
|
+
var i = Ze.exec(t);
|
2560
2558
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2561
2559
|
};
|
2562
2560
|
} else
|
2563
2561
|
Ae = function(t, r) {
|
2564
2562
|
for (var n = []; ; ) {
|
2565
|
-
var i =
|
2566
|
-
if (i === void 0 ||
|
2563
|
+
var i = _t(t, r);
|
2564
|
+
if (i === void 0 || Ht(i) || tn(i))
|
2567
2565
|
break;
|
2568
2566
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2569
2567
|
}
|
@@ -2594,12 +2592,12 @@ var Yr = (
|
|
2594
2592
|
var o = this.clonePosition();
|
2595
2593
|
this.bump(), i.push({
|
2596
2594
|
type: E.pound,
|
2597
|
-
location:
|
2595
|
+
location: b(o, this.clonePosition())
|
2598
2596
|
});
|
2599
2597
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
2600
2598
|
if (n)
|
2601
2599
|
break;
|
2602
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
2600
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
2603
2601
|
} else if (s === 60 && !this.ignoreTag && Se(this.peek() || 0)) {
|
2604
2602
|
var a = this.parseTag(t, r);
|
2605
2603
|
if (a.err)
|
@@ -2623,7 +2621,7 @@ var Yr = (
|
|
2623
2621
|
val: {
|
2624
2622
|
type: E.literal,
|
2625
2623
|
value: "<".concat(i, "/>"),
|
2626
|
-
location:
|
2624
|
+
location: b(n, this.clonePosition())
|
2627
2625
|
},
|
2628
2626
|
err: null
|
2629
2627
|
};
|
@@ -2634,21 +2632,21 @@ var Yr = (
|
|
2634
2632
|
var a = s.val, o = this.clonePosition();
|
2635
2633
|
if (this.bumpIf("</")) {
|
2636
2634
|
if (this.isEOF() || !Se(this.char()))
|
2637
|
-
return this.error(m.INVALID_TAG,
|
2638
|
-
var l = this.clonePosition(),
|
2639
|
-
return i !==
|
2635
|
+
return this.error(m.INVALID_TAG, b(o, this.clonePosition()));
|
2636
|
+
var l = this.clonePosition(), h = this.parseTagName();
|
2637
|
+
return i !== h ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
2640
2638
|
val: {
|
2641
2639
|
type: E.tag,
|
2642
2640
|
value: i,
|
2643
2641
|
children: a,
|
2644
|
-
location:
|
2642
|
+
location: b(n, this.clonePosition())
|
2645
2643
|
},
|
2646
2644
|
err: null
|
2647
|
-
} : this.error(m.INVALID_TAG,
|
2645
|
+
} : this.error(m.INVALID_TAG, b(o, this.clonePosition())));
|
2648
2646
|
} else
|
2649
|
-
return this.error(m.UNCLOSED_TAG,
|
2647
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
2650
2648
|
} else
|
2651
|
-
return this.error(m.INVALID_TAG,
|
2649
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
2652
2650
|
}, e.prototype.parseTagName = function() {
|
2653
2651
|
var t = this.offset();
|
2654
2652
|
for (this.bump(); !this.isEOF() && en(this.char()); )
|
@@ -2673,7 +2671,7 @@ var Yr = (
|
|
2673
2671
|
}
|
2674
2672
|
break;
|
2675
2673
|
}
|
2676
|
-
var l =
|
2674
|
+
var l = b(n, this.clonePosition());
|
2677
2675
|
return {
|
2678
2676
|
val: { type: E.literal, value: i, location: l },
|
2679
2677
|
err: null
|
@@ -2723,14 +2721,14 @@ var Yr = (
|
|
2723
2721
|
}, e.prototype.parseArgument = function(t, r) {
|
2724
2722
|
var n = this.clonePosition();
|
2725
2723
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
2726
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2724
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
2727
2725
|
if (this.char() === 125)
|
2728
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
2726
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
2729
2727
|
var i = this.parseIdentifierIfPossible().value;
|
2730
2728
|
if (!i)
|
2731
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2729
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2732
2730
|
if (this.bumpSpace(), this.isEOF())
|
2733
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2731
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
2734
2732
|
switch (this.char()) {
|
2735
2733
|
case 125:
|
2736
2734
|
return this.bump(), {
|
@@ -2738,49 +2736,49 @@ var Yr = (
|
|
2738
2736
|
type: E.argument,
|
2739
2737
|
// value does not include the opening and closing braces.
|
2740
2738
|
value: i,
|
2741
|
-
location:
|
2739
|
+
location: b(n, this.clonePosition())
|
2742
2740
|
},
|
2743
2741
|
err: null
|
2744
2742
|
};
|
2745
2743
|
case 44:
|
2746
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2744
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
2747
2745
|
default:
|
2748
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
2746
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
2749
2747
|
}
|
2750
2748
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
2751
2749
|
var t = this.clonePosition(), r = this.offset(), n = Ae(this.message, r), i = r + n.length;
|
2752
2750
|
this.bumpTo(i);
|
2753
|
-
var s = this.clonePosition(), a =
|
2751
|
+
var s = this.clonePosition(), a = b(t, s);
|
2754
2752
|
return { value: n, location: a };
|
2755
2753
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
2756
2754
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
2757
2755
|
switch (o) {
|
2758
2756
|
case "":
|
2759
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
2757
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, l));
|
2760
2758
|
case "number":
|
2761
2759
|
case "date":
|
2762
2760
|
case "time": {
|
2763
2761
|
this.bumpSpace();
|
2764
|
-
var
|
2762
|
+
var h = null;
|
2765
2763
|
if (this.bumpIf(",")) {
|
2766
2764
|
this.bumpSpace();
|
2767
|
-
var
|
2765
|
+
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
2768
2766
|
if (c.err)
|
2769
2767
|
return c;
|
2770
2768
|
var f = qr(c.val);
|
2771
2769
|
if (f.length === 0)
|
2772
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
2773
|
-
var x =
|
2774
|
-
|
2770
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
2771
|
+
var x = b(u, this.clonePosition());
|
2772
|
+
h = { style: f, styleLocation: x };
|
2775
2773
|
}
|
2776
2774
|
var g = this.tryParseArgumentClose(i);
|
2777
2775
|
if (g.err)
|
2778
2776
|
return g;
|
2779
|
-
var y =
|
2780
|
-
if (
|
2781
|
-
var H = Jr(
|
2777
|
+
var y = b(i, this.clonePosition());
|
2778
|
+
if (h && ze(h?.style, "::", 0)) {
|
2779
|
+
var H = Jr(h.style.slice(2));
|
2782
2780
|
if (o === "number") {
|
2783
|
-
var c = this.parseNumberSkeletonFromString(H,
|
2781
|
+
var c = this.parseNumberSkeletonFromString(H, h.styleLocation);
|
2784
2782
|
return c.err ? c : {
|
2785
2783
|
val: { type: E.number, value: n, location: y, style: c.val },
|
2786
2784
|
err: null
|
@@ -2793,7 +2791,7 @@ var Yr = (
|
|
2793
2791
|
var f = {
|
2794
2792
|
type: F.dateTime,
|
2795
2793
|
pattern: B,
|
2796
|
-
location:
|
2794
|
+
location: h.styleLocation,
|
2797
2795
|
parsedOptions: this.shouldParseSkeletons ? Nr(B) : {}
|
2798
2796
|
}, A = o === "date" ? E.date : E.time;
|
2799
2797
|
return {
|
@@ -2807,7 +2805,7 @@ var Yr = (
|
|
2807
2805
|
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
2808
2806
|
value: n,
|
2809
2807
|
location: y,
|
2810
|
-
style: (s =
|
2808
|
+
style: (s = h?.style) !== null && s !== void 0 ? s : null
|
2811
2809
|
},
|
2812
2810
|
err: null
|
2813
2811
|
};
|
@@ -2817,12 +2815,12 @@ var Yr = (
|
|
2817
2815
|
case "select": {
|
2818
2816
|
var v = this.clonePosition();
|
2819
2817
|
if (this.bumpSpace(), !this.bumpIf(","))
|
2820
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
2818
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(v, d({}, v)));
|
2821
2819
|
this.bumpSpace();
|
2822
2820
|
var O = this.parseIdentifierIfPossible(), P = 0;
|
2823
2821
|
if (o !== "select" && O.value === "offset") {
|
2824
2822
|
if (!this.bumpIf(":"))
|
2825
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
2823
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
2826
2824
|
this.bumpSpace();
|
2827
2825
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2828
2826
|
if (c.err)
|
@@ -2835,12 +2833,12 @@ var Yr = (
|
|
2835
2833
|
var g = this.tryParseArgumentClose(i);
|
2836
2834
|
if (g.err)
|
2837
2835
|
return g;
|
2838
|
-
var ee =
|
2836
|
+
var ee = b(i, this.clonePosition());
|
2839
2837
|
return o === "select" ? {
|
2840
2838
|
val: {
|
2841
2839
|
type: E.select,
|
2842
2840
|
value: n,
|
2843
|
-
options:
|
2841
|
+
options: We(M.val),
|
2844
2842
|
location: ee
|
2845
2843
|
},
|
2846
2844
|
err: null
|
@@ -2848,7 +2846,7 @@ var Yr = (
|
|
2848
2846
|
val: {
|
2849
2847
|
type: E.plural,
|
2850
2848
|
value: n,
|
2851
|
-
options:
|
2849
|
+
options: We(M.val),
|
2852
2850
|
offset: P,
|
2853
2851
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
2854
2852
|
location: ee
|
@@ -2857,10 +2855,10 @@ var Yr = (
|
|
2857
2855
|
};
|
2858
2856
|
}
|
2859
2857
|
default:
|
2860
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
2858
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(a, l));
|
2861
2859
|
}
|
2862
2860
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
2863
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
2861
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
2864
2862
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
2865
2863
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
2866
2864
|
var n = this.char();
|
@@ -2869,7 +2867,7 @@ var Yr = (
|
|
2869
2867
|
this.bump();
|
2870
2868
|
var i = this.clonePosition();
|
2871
2869
|
if (!this.bumpUntil("'"))
|
2872
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
2870
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
2873
2871
|
this.bump();
|
2874
2872
|
break;
|
2875
2873
|
}
|
@@ -2913,23 +2911,23 @@ var Yr = (
|
|
2913
2911
|
err: null
|
2914
2912
|
};
|
2915
2913
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2916
|
-
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(),
|
2917
|
-
if (
|
2914
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), h = i.value, u = i.location; ; ) {
|
2915
|
+
if (h.length === 0) {
|
2918
2916
|
var c = this.clonePosition();
|
2919
2917
|
if (r !== "select" && this.bumpIf("=")) {
|
2920
2918
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2921
2919
|
if (f.err)
|
2922
2920
|
return f;
|
2923
|
-
|
2921
|
+
u = b(c, this.clonePosition()), h = this.message.slice(c.offset, this.offset());
|
2924
2922
|
} else
|
2925
2923
|
break;
|
2926
2924
|
}
|
2927
|
-
if (l.has(
|
2928
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
2929
|
-
|
2925
|
+
if (l.has(h))
|
2926
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
2927
|
+
h === "other" && (a = !0), this.bumpSpace();
|
2930
2928
|
var x = this.clonePosition();
|
2931
2929
|
if (!this.bumpIf("{"))
|
2932
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
2930
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
2933
2931
|
var g = this.parseMessage(t + 1, r, n);
|
2934
2932
|
if (g.err)
|
2935
2933
|
return g;
|
@@ -2937,14 +2935,14 @@ var Yr = (
|
|
2937
2935
|
if (y.err)
|
2938
2936
|
return y;
|
2939
2937
|
o.push([
|
2940
|
-
|
2938
|
+
h,
|
2941
2939
|
{
|
2942
2940
|
value: g.val,
|
2943
|
-
location:
|
2941
|
+
location: b(x, this.clonePosition())
|
2944
2942
|
}
|
2945
|
-
]), l.add(
|
2943
|
+
]), l.add(h), this.bumpSpace(), s = this.parseIdentifierIfPossible(), h = s.value, u = s.location;
|
2946
2944
|
}
|
2947
|
-
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
2945
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
2948
2946
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
2949
2947
|
var n = 1, i = this.clonePosition();
|
2950
2948
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -2955,7 +2953,7 @@ var Yr = (
|
|
2955
2953
|
else
|
2956
2954
|
break;
|
2957
2955
|
}
|
2958
|
-
var l =
|
2956
|
+
var l = b(i, this.clonePosition());
|
2959
2957
|
return s ? (a *= n, Zr(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
2960
2958
|
}, e.prototype.offset = function() {
|
2961
2959
|
return this.position.offset;
|
@@ -2971,7 +2969,7 @@ var Yr = (
|
|
2971
2969
|
var t = this.position.offset;
|
2972
2970
|
if (t >= this.message.length)
|
2973
2971
|
throw Error("out of bound");
|
2974
|
-
var r =
|
2972
|
+
var r = _t(this.message, t);
|
2975
2973
|
if (r === void 0)
|
2976
2974
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2977
2975
|
return r;
|
@@ -2990,7 +2988,7 @@ var Yr = (
|
|
2990
2988
|
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);
|
2991
2989
|
}
|
2992
2990
|
}, e.prototype.bumpIf = function(t) {
|
2993
|
-
if (
|
2991
|
+
if (ze(this.message, t, this.offset())) {
|
2994
2992
|
for (var r = 0; r < t.length; r++)
|
2995
2993
|
this.bump();
|
2996
2994
|
return !0;
|
@@ -3012,7 +3010,7 @@ var Yr = (
|
|
3012
3010
|
break;
|
3013
3011
|
}
|
3014
3012
|
}, e.prototype.bumpSpace = function() {
|
3015
|
-
for (; !this.isEOF() &&
|
3013
|
+
for (; !this.isEOF() && Ht(this.char()); )
|
3016
3014
|
this.bump();
|
3017
3015
|
}, e.prototype.peek = function() {
|
3018
3016
|
if (this.isEOF())
|
@@ -3031,7 +3029,7 @@ function Kr(e) {
|
|
3031
3029
|
function en(e) {
|
3032
3030
|
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;
|
3033
3031
|
}
|
3034
|
-
function
|
3032
|
+
function Ht(e) {
|
3035
3033
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3036
3034
|
}
|
3037
3035
|
function tn(e) {
|
@@ -3039,15 +3037,15 @@ function tn(e) {
|
|
3039
3037
|
}
|
3040
3038
|
function Pe(e) {
|
3041
3039
|
e.forEach(function(t) {
|
3042
|
-
if (delete t.location,
|
3040
|
+
if (delete t.location, pt(t) || mt(t))
|
3043
3041
|
for (var r in t.options)
|
3044
3042
|
delete t.options[r].location, Pe(t.options[r].value);
|
3045
3043
|
else
|
3046
|
-
|
3044
|
+
lt(t) && dt(t.style) || (ft(t) || ct(t)) && He(t.style) ? delete t.style.location : bt(t) && Pe(t.children);
|
3047
3045
|
});
|
3048
3046
|
}
|
3049
3047
|
function rn(e, t) {
|
3050
|
-
t === void 0 && (t = {}), t =
|
3048
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3051
3049
|
var r = new Yr(e, t).parse();
|
3052
3050
|
if (r.err) {
|
3053
3051
|
var n = SyntaxError(m[r.err.kind]);
|
@@ -3062,7 +3060,7 @@ var j;
|
|
3062
3060
|
var le = (
|
3063
3061
|
/** @class */
|
3064
3062
|
function(e) {
|
3065
|
-
|
3063
|
+
ue(t, e);
|
3066
3064
|
function t(r, n, i) {
|
3067
3065
|
var s = e.call(this, r) || this;
|
3068
3066
|
return s.code = n, s.originalMessage = i, s;
|
@@ -3071,10 +3069,10 @@ var le = (
|
|
3071
3069
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3072
3070
|
}, t;
|
3073
3071
|
}(Error)
|
3074
|
-
),
|
3072
|
+
), Qe = (
|
3075
3073
|
/** @class */
|
3076
3074
|
function(e) {
|
3077
|
-
|
3075
|
+
ue(t, e);
|
3078
3076
|
function t(r, n, i, s) {
|
3079
3077
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, s) || this;
|
3080
3078
|
}
|
@@ -3083,7 +3081,7 @@ var le = (
|
|
3083
3081
|
), nn = (
|
3084
3082
|
/** @class */
|
3085
3083
|
function(e) {
|
3086
|
-
|
3084
|
+
ue(t, e);
|
3087
3085
|
function t(r, n, i) {
|
3088
3086
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
3089
3087
|
}
|
@@ -3092,7 +3090,7 @@ var le = (
|
|
3092
3090
|
), sn = (
|
3093
3091
|
/** @class */
|
3094
3092
|
function(e) {
|
3095
|
-
|
3093
|
+
ue(t, e);
|
3096
3094
|
function t(r, n) {
|
3097
3095
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
3098
3096
|
}
|
@@ -3112,66 +3110,66 @@ function an(e) {
|
|
3112
3110
|
return typeof e == "function";
|
3113
3111
|
}
|
3114
3112
|
function ie(e, t, r, n, i, s, a) {
|
3115
|
-
if (e.length === 1 &&
|
3113
|
+
if (e.length === 1 && je(e[0]))
|
3116
3114
|
return [
|
3117
3115
|
{
|
3118
3116
|
type: _.literal,
|
3119
3117
|
value: e[0].value
|
3120
3118
|
}
|
3121
3119
|
];
|
3122
|
-
for (var o = [], l = 0,
|
3123
|
-
var
|
3124
|
-
if (
|
3120
|
+
for (var o = [], l = 0, h = e; l < h.length; l++) {
|
3121
|
+
var u = h[l];
|
3122
|
+
if (je(u)) {
|
3125
3123
|
o.push({
|
3126
3124
|
type: _.literal,
|
3127
|
-
value:
|
3125
|
+
value: u.value
|
3128
3126
|
});
|
3129
3127
|
continue;
|
3130
3128
|
}
|
3131
|
-
if (Pr(
|
3129
|
+
if (Pr(u)) {
|
3132
3130
|
typeof s == "number" && o.push({
|
3133
3131
|
type: _.literal,
|
3134
3132
|
value: r.getNumberFormat(t).format(s)
|
3135
3133
|
});
|
3136
3134
|
continue;
|
3137
3135
|
}
|
3138
|
-
var c =
|
3136
|
+
var c = u.value;
|
3139
3137
|
if (!(i && c in i))
|
3140
3138
|
throw new sn(c, a);
|
3141
3139
|
var f = i[c];
|
3142
|
-
if (Sr(
|
3140
|
+
if (Sr(u)) {
|
3143
3141
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
|
3144
3142
|
type: typeof f == "string" ? _.literal : _.object,
|
3145
3143
|
value: f
|
3146
3144
|
});
|
3147
3145
|
continue;
|
3148
3146
|
}
|
3149
|
-
if (
|
3150
|
-
var x = typeof
|
3147
|
+
if (ft(u)) {
|
3148
|
+
var x = typeof u.style == "string" ? n.date[u.style] : He(u.style) ? u.style.parsedOptions : void 0;
|
3151
3149
|
o.push({
|
3152
3150
|
type: _.literal,
|
3153
3151
|
value: r.getDateTimeFormat(t, x).format(f)
|
3154
3152
|
});
|
3155
3153
|
continue;
|
3156
3154
|
}
|
3157
|
-
if (
|
3158
|
-
var x = typeof
|
3155
|
+
if (ct(u)) {
|
3156
|
+
var x = typeof u.style == "string" ? n.time[u.style] : He(u.style) ? u.style.parsedOptions : n.time.medium;
|
3159
3157
|
o.push({
|
3160
3158
|
type: _.literal,
|
3161
3159
|
value: r.getDateTimeFormat(t, x).format(f)
|
3162
3160
|
});
|
3163
3161
|
continue;
|
3164
3162
|
}
|
3165
|
-
if (
|
3166
|
-
var x = typeof
|
3163
|
+
if (lt(u)) {
|
3164
|
+
var x = typeof u.style == "string" ? n.number[u.style] : dt(u.style) ? u.style.parsedOptions : void 0;
|
3167
3165
|
x && x.scale && (f = f * (x.scale || 1)), o.push({
|
3168
3166
|
type: _.literal,
|
3169
3167
|
value: r.getNumberFormat(t, x).format(f)
|
3170
3168
|
});
|
3171
3169
|
continue;
|
3172
3170
|
}
|
3173
|
-
if (
|
3174
|
-
var g =
|
3171
|
+
if (bt(u)) {
|
3172
|
+
var g = u.children, y = u.value, H = i[y];
|
3175
3173
|
if (!an(H))
|
3176
3174
|
throw new nn(y, "function", a);
|
3177
3175
|
var B = ie(g, t, r, n, i, s), A = H(B.map(function(P) {
|
@@ -3184,40 +3182,40 @@ function ie(e, t, r, n, i, s, a) {
|
|
3184
3182
|
};
|
3185
3183
|
}));
|
3186
3184
|
}
|
3187
|
-
if (
|
3188
|
-
var v =
|
3185
|
+
if (pt(u)) {
|
3186
|
+
var v = u.options[f] || u.options.other;
|
3189
3187
|
if (!v)
|
3190
|
-
throw new
|
3188
|
+
throw new Qe(u.value, f, Object.keys(u.options), a);
|
3191
3189
|
o.push.apply(o, ie(v.value, t, r, n, i));
|
3192
3190
|
continue;
|
3193
3191
|
}
|
3194
|
-
if (
|
3195
|
-
var v =
|
3192
|
+
if (mt(u)) {
|
3193
|
+
var v = u.options["=".concat(f)];
|
3196
3194
|
if (!v) {
|
3197
3195
|
if (!Intl.PluralRules)
|
3198
3196
|
throw new le(`Intl.PluralRules is not available in this environment.
|
3199
3197
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3200
3198
|
`, j.MISSING_INTL_API, a);
|
3201
|
-
var O = r.getPluralRules(t, { type:
|
3202
|
-
v =
|
3199
|
+
var O = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
|
3200
|
+
v = u.options[O] || u.options.other;
|
3203
3201
|
}
|
3204
3202
|
if (!v)
|
3205
|
-
throw new
|
3206
|
-
o.push.apply(o, ie(v.value, t, r, n, i, f - (
|
3203
|
+
throw new Qe(u.value, f, Object.keys(u.options), a);
|
3204
|
+
o.push.apply(o, ie(v.value, t, r, n, i, f - (u.offset || 0)));
|
3207
3205
|
continue;
|
3208
3206
|
}
|
3209
3207
|
}
|
3210
3208
|
return on(o);
|
3211
3209
|
}
|
3212
|
-
function
|
3213
|
-
return t ?
|
3214
|
-
return r[n] =
|
3210
|
+
function hn(e, t) {
|
3211
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3212
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3215
3213
|
}, {})) : e;
|
3216
3214
|
}
|
3217
|
-
function
|
3215
|
+
function un(e, t) {
|
3218
3216
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3219
|
-
return r[n] =
|
3220
|
-
},
|
3217
|
+
return r[n] = hn(e[n], t[n]), r;
|
3218
|
+
}, d({}, e)) : e;
|
3221
3219
|
}
|
3222
3220
|
function xe(e) {
|
3223
3221
|
return {
|
@@ -3239,29 +3237,29 @@ function ln(e) {
|
|
3239
3237
|
dateTime: {},
|
3240
3238
|
pluralRules: {}
|
3241
3239
|
}), {
|
3242
|
-
getNumberFormat:
|
3240
|
+
getNumberFormat: be(function() {
|
3243
3241
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3244
3242
|
r[n] = arguments[n];
|
3245
3243
|
return new ((t = Intl.NumberFormat).bind.apply(t, me([void 0], r, !1)))();
|
3246
3244
|
}, {
|
3247
3245
|
cache: xe(e.number),
|
3248
|
-
strategy:
|
3246
|
+
strategy: de.variadic
|
3249
3247
|
}),
|
3250
|
-
getDateTimeFormat:
|
3248
|
+
getDateTimeFormat: be(function() {
|
3251
3249
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3252
3250
|
r[n] = arguments[n];
|
3253
3251
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, me([void 0], r, !1)))();
|
3254
3252
|
}, {
|
3255
3253
|
cache: xe(e.dateTime),
|
3256
|
-
strategy:
|
3254
|
+
strategy: de.variadic
|
3257
3255
|
}),
|
3258
|
-
getPluralRules:
|
3256
|
+
getPluralRules: be(function() {
|
3259
3257
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3260
3258
|
r[n] = arguments[n];
|
3261
3259
|
return new ((t = Intl.PluralRules).bind.apply(t, me([void 0], r, !1)))();
|
3262
3260
|
}, {
|
3263
3261
|
cache: xe(e.pluralRules),
|
3264
|
-
strategy:
|
3262
|
+
strategy: de.variadic
|
3265
3263
|
})
|
3266
3264
|
};
|
3267
3265
|
}
|
@@ -3276,13 +3274,13 @@ var fn = (
|
|
3276
3274
|
dateTime: {},
|
3277
3275
|
pluralRules: {}
|
3278
3276
|
}, this.format = function(l) {
|
3279
|
-
var
|
3280
|
-
if (
|
3281
|
-
return
|
3282
|
-
var
|
3277
|
+
var h = s.formatToParts(l);
|
3278
|
+
if (h.length === 1)
|
3279
|
+
return h[0].value;
|
3280
|
+
var u = h.reduce(function(c, f) {
|
3283
3281
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
3284
3282
|
}, []);
|
3285
|
-
return
|
3283
|
+
return u.length <= 1 ? u[0] || "" : u;
|
3286
3284
|
}, this.formatToParts = function(l) {
|
3287
3285
|
return ie(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
3288
3286
|
}, this.resolvedOptions = function() {
|
@@ -3297,13 +3295,13 @@ var fn = (
|
|
3297
3295
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3298
3296
|
var a = i || {};
|
3299
3297
|
a.formatters;
|
3300
|
-
var o =
|
3301
|
-
this.ast = e.__parse(t,
|
3298
|
+
var o = yr(a, ["formatters"]);
|
3299
|
+
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
3302
3300
|
} else
|
3303
3301
|
this.ast = t;
|
3304
3302
|
if (!Array.isArray(this.ast))
|
3305
3303
|
throw new TypeError("A message must be provided as a String or AST.");
|
3306
|
-
this.formats =
|
3304
|
+
this.formats = un(e.formats, n), this.formatters = i && i.formatters || ln(this.formatterCache);
|
3307
3305
|
}
|
3308
3306
|
return Object.defineProperty(e, "defaultLocale", {
|
3309
3307
|
get: function() {
|
@@ -3398,60 +3396,60 @@ function cn(e, t) {
|
|
3398
3396
|
n = void 0;
|
3399
3397
|
return n;
|
3400
3398
|
}
|
3401
|
-
const N = {}, pn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r),
|
3399
|
+
const N = {}, pn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Tt = (e, t) => {
|
3402
3400
|
if (t == null)
|
3403
3401
|
return;
|
3404
3402
|
if (t in N && e in N[t])
|
3405
3403
|
return N[t][e];
|
3406
3404
|
const r = fe(t);
|
3407
3405
|
for (let n = 0; n < r.length; n++) {
|
3408
|
-
const i = r[n], s =
|
3406
|
+
const i = r[n], s = bn(i, e);
|
3409
3407
|
if (s)
|
3410
3408
|
return pn(e, t, s);
|
3411
3409
|
}
|
3412
3410
|
};
|
3413
|
-
let
|
3414
|
-
const X =
|
3411
|
+
let Re;
|
3412
|
+
const X = he({});
|
3415
3413
|
function mn(e) {
|
3416
|
-
return
|
3414
|
+
return Re[e] || null;
|
3417
3415
|
}
|
3418
|
-
function
|
3419
|
-
return e in
|
3416
|
+
function Bt(e) {
|
3417
|
+
return e in Re;
|
3420
3418
|
}
|
3421
|
-
function
|
3422
|
-
if (!
|
3419
|
+
function bn(e, t) {
|
3420
|
+
if (!Bt(e))
|
3423
3421
|
return null;
|
3424
3422
|
const r = mn(e);
|
3425
3423
|
return cn(r, t);
|
3426
3424
|
}
|
3427
|
-
function
|
3425
|
+
function dn(e) {
|
3428
3426
|
if (e == null)
|
3429
3427
|
return;
|
3430
3428
|
const t = fe(e);
|
3431
3429
|
for (let r = 0; r < t.length; r++) {
|
3432
3430
|
const n = t[r];
|
3433
|
-
if (
|
3431
|
+
if (Bt(n))
|
3434
3432
|
return n;
|
3435
3433
|
}
|
3436
3434
|
}
|
3437
|
-
function
|
3438
|
-
delete N[e], X.update((r) => (r[e] =
|
3435
|
+
function At(e, ...t) {
|
3436
|
+
delete N[e], X.update((r) => (r[e] = Er.all([r[e] || {}, ...t]), r));
|
3439
3437
|
}
|
3440
3438
|
k(
|
3441
3439
|
[X],
|
3442
3440
|
([e]) => Object.keys(e)
|
3443
3441
|
);
|
3444
|
-
X.subscribe((e) =>
|
3442
|
+
X.subscribe((e) => Re = e);
|
3445
3443
|
const se = {};
|
3446
3444
|
function gn(e, t) {
|
3447
3445
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3448
3446
|
}
|
3449
|
-
function
|
3447
|
+
function St(e) {
|
3450
3448
|
return se[e];
|
3451
3449
|
}
|
3452
3450
|
function xn(e) {
|
3453
3451
|
return fe(e).map((t) => {
|
3454
|
-
const r =
|
3452
|
+
const r = St(t);
|
3455
3453
|
return [t, r ? [...r] : []];
|
3456
3454
|
}).filter(([, t]) => t.length > 0);
|
3457
3455
|
}
|
@@ -3459,17 +3457,17 @@ function Oe(e) {
|
|
3459
3457
|
return e == null ? !1 : fe(e).some(
|
3460
3458
|
(t) => {
|
3461
3459
|
var r;
|
3462
|
-
return (r =
|
3460
|
+
return (r = St(t)) == null ? void 0 : r.size;
|
3463
3461
|
}
|
3464
3462
|
);
|
3465
3463
|
}
|
3466
3464
|
function En(e, t) {
|
3467
3465
|
return Promise.all(
|
3468
3466
|
t.map((n) => (gn(e, n), n().then((i) => i.default || i)))
|
3469
|
-
).then((n) =>
|
3467
|
+
).then((n) => At(e, ...n));
|
3470
3468
|
}
|
3471
3469
|
const W = {};
|
3472
|
-
function
|
3470
|
+
function Pt(e) {
|
3473
3471
|
if (!Oe(e))
|
3474
3472
|
return e in W ? W[e] : Promise.resolve();
|
3475
3473
|
const t = xn(e);
|
@@ -3479,7 +3477,7 @@ function St(e) {
|
|
3479
3477
|
)
|
3480
3478
|
).then(() => {
|
3481
3479
|
if (Oe(e))
|
3482
|
-
return
|
3480
|
+
return Pt(e);
|
3483
3481
|
delete W[e];
|
3484
3482
|
}), W[e];
|
3485
3483
|
}
|
@@ -3523,23 +3521,23 @@ const yn = {
|
|
3523
3521
|
function V() {
|
3524
3522
|
return vn;
|
3525
3523
|
}
|
3526
|
-
const Ee =
|
3527
|
-
var Hn = Object.defineProperty, Tn = Object.defineProperties, Bn = Object.getOwnPropertyDescriptors,
|
3528
|
-
for (var r in t)
|
3529
|
-
An.call(t, r) &&
|
3530
|
-
if (
|
3531
|
-
for (var r of
|
3532
|
-
Sn.call(t, r) &&
|
3524
|
+
const Ee = he(!1);
|
3525
|
+
var Hn = Object.defineProperty, Tn = Object.defineProperties, Bn = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pn = (e, t) => {
|
3526
|
+
for (var r in t || (t = {}))
|
3527
|
+
An.call(t, r) && qe(e, r, t[r]);
|
3528
|
+
if (Je)
|
3529
|
+
for (var r of Je(t))
|
3530
|
+
Sn.call(t, r) && qe(e, r, t[r]);
|
3533
3531
|
return e;
|
3534
3532
|
}, On = (e, t) => Tn(e, Bn(t));
|
3535
3533
|
let Ne;
|
3536
|
-
const oe =
|
3537
|
-
function
|
3534
|
+
const oe = he(null);
|
3535
|
+
function Ye(e) {
|
3538
3536
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3539
3537
|
}
|
3540
3538
|
function fe(e, t = V().fallbackLocale) {
|
3541
|
-
const r =
|
3542
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3539
|
+
const r = Ye(e);
|
3540
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ye(t)])] : r;
|
3543
3541
|
}
|
3544
3542
|
function C() {
|
3545
3543
|
return Ne ?? void 0;
|
@@ -3548,13 +3546,13 @@ oe.subscribe((e) => {
|
|
3548
3546
|
Ne = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3549
3547
|
});
|
3550
3548
|
const Nn = (e) => {
|
3551
|
-
if (e &&
|
3549
|
+
if (e && dn(e) && Oe(e)) {
|
3552
3550
|
const { loadingDelay: t } = V();
|
3553
3551
|
let r;
|
3554
3552
|
return typeof window < "u" && C() != null && t ? r = window.setTimeout(
|
3555
3553
|
() => Ee.set(!0),
|
3556
3554
|
t
|
3557
|
-
) : Ee.set(!0),
|
3555
|
+
) : Ee.set(!0), Pt(e).then(() => {
|
3558
3556
|
oe.set(e);
|
3559
3557
|
}).finally(() => {
|
3560
3558
|
clearTimeout(r), Ee.set(!1);
|
@@ -3570,20 +3568,20 @@ const Nn = (e) => {
|
|
3570
3568
|
return i in t ? t[i] : t[i] = e(n);
|
3571
3569
|
};
|
3572
3570
|
};
|
3573
|
-
var In = Object.defineProperty, ae = Object.getOwnPropertySymbols,
|
3571
|
+
var In = Object.defineProperty, ae = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, Nt = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $e = (e, t) => {
|
3574
3572
|
for (var r in t || (t = {}))
|
3575
|
-
|
3573
|
+
Ot.call(t, r) && Ke(e, r, t[r]);
|
3576
3574
|
if (ae)
|
3577
3575
|
for (var r of ae(t))
|
3578
|
-
|
3576
|
+
Nt.call(t, r) && Ke(e, r, t[r]);
|
3579
3577
|
return e;
|
3580
3578
|
}, z = (e, t) => {
|
3581
3579
|
var r = {};
|
3582
3580
|
for (var n in e)
|
3583
|
-
|
3581
|
+
Ot.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3584
3582
|
if (e != null && ae)
|
3585
3583
|
for (var n of ae(e))
|
3586
|
-
t.indexOf(n) < 0 &&
|
3584
|
+
t.indexOf(n) < 0 && Nt.call(e, n) && (r[n] = e[n]);
|
3587
3585
|
return r;
|
3588
3586
|
};
|
3589
3587
|
const Y = (e, t) => {
|
@@ -3620,21 +3618,21 @@ const Y = (e, t) => {
|
|
3620
3618
|
} = t, n = z(t, [
|
3621
3619
|
"locale"
|
3622
3620
|
]);
|
3623
|
-
return wn(
|
3621
|
+
return wn($e({ locale: r }, n));
|
3624
3622
|
}, Rn = (e = {}) => {
|
3625
3623
|
var t = e, {
|
3626
3624
|
locale: r = C()
|
3627
3625
|
} = t, n = z(t, [
|
3628
3626
|
"locale"
|
3629
3627
|
]);
|
3630
|
-
return Ln(
|
3628
|
+
return Ln($e({ locale: r }, n));
|
3631
3629
|
}, $n = (e = {}) => {
|
3632
3630
|
var t = e, {
|
3633
3631
|
locale: r = C()
|
3634
3632
|
} = t, n = z(t, [
|
3635
3633
|
"locale"
|
3636
3634
|
]);
|
3637
|
-
return Cn(
|
3635
|
+
return Cn($e({ locale: r }, n));
|
3638
3636
|
}, Un = ce(
|
3639
3637
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3640
3638
|
(e, t = C()) => new fn(e, t, V().formats, {
|
@@ -3647,24 +3645,24 @@ const Y = (e, t) => {
|
|
3647
3645
|
const {
|
3648
3646
|
values: o,
|
3649
3647
|
locale: l = C(),
|
3650
|
-
default:
|
3648
|
+
default: h
|
3651
3649
|
} = a;
|
3652
3650
|
if (l == null)
|
3653
3651
|
throw new Error(
|
3654
3652
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3655
3653
|
);
|
3656
|
-
let
|
3657
|
-
if (!
|
3658
|
-
|
3659
|
-
else if (typeof
|
3654
|
+
let u = Tt(e, l);
|
3655
|
+
if (!u)
|
3656
|
+
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;
|
3657
|
+
else if (typeof u != "string")
|
3660
3658
|
return console.warn(
|
3661
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
3662
|
-
),
|
3659
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
3660
|
+
), u;
|
3663
3661
|
if (!o)
|
3664
|
-
return
|
3665
|
-
let c =
|
3662
|
+
return u;
|
3663
|
+
let c = u;
|
3666
3664
|
try {
|
3667
|
-
c = Un(
|
3665
|
+
c = Un(u, l).format(o);
|
3668
3666
|
} catch (f) {
|
3669
3667
|
f instanceof Error && console.warn(
|
3670
3668
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -3672,7 +3670,7 @@ const Y = (e, t) => {
|
|
3672
3670
|
);
|
3673
3671
|
}
|
3674
3672
|
return c;
|
3675
|
-
}, Dn = (e, t) => $n(t).format(e), Fn = (e, t) => Rn(t).format(e), jn = (e, t) => Mn(t).format(e), Vn = (e, t = C()) =>
|
3673
|
+
}, Dn = (e, t) => $n(t).format(e), Fn = (e, t) => Rn(t).format(e), jn = (e, t) => Mn(t).format(e), Vn = (e, t = C()) => Tt(e, t), kn = k([I, X], () => Gn);
|
3676
3674
|
k([I], () => Dn);
|
3677
3675
|
k([I], () => Fn);
|
3678
3676
|
k([I], () => jn);
|
@@ -3682,13 +3680,13 @@ function Xn({ withLocale: e, translations: t }) {
|
|
3682
3680
|
r == null && (X.set(t), I.set(e));
|
3683
3681
|
});
|
3684
3682
|
}
|
3685
|
-
function
|
3686
|
-
|
3683
|
+
function et(e, t) {
|
3684
|
+
At(e, t);
|
3687
3685
|
}
|
3688
3686
|
function zn(e) {
|
3689
3687
|
I.set(e);
|
3690
3688
|
}
|
3691
|
-
const
|
3689
|
+
const tt = {
|
3692
3690
|
en: {
|
3693
3691
|
bets: "bets"
|
3694
3692
|
},
|
@@ -3715,24 +3713,24 @@ const et = {
|
|
3715
3713
|
}
|
3716
3714
|
};
|
3717
3715
|
function Wn(e) {
|
3718
|
-
|
3716
|
+
$t(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}');
|
3719
3717
|
}
|
3720
3718
|
function Zn(e) {
|
3721
3719
|
let t, r, n, i, s;
|
3722
3720
|
return {
|
3723
3721
|
c() {
|
3724
|
-
t = Z("div"), r = Z("div"), n = Z("span"), i =
|
3722
|
+
t = Z("div"), r = Z("div"), n = Z("span"), i = Dt(
|
3725
3723
|
/*progressText*/
|
3726
3724
|
e[3]
|
3727
3725
|
), L(n, "part", "progressText"), L(r, "class", s = "stepBar " + /*curTatus*/
|
3728
3726
|
e[4]), L(r, "part", "stepBar"), L(t, "class", "general-icon-progress-bar"), L(t, "part", "totalBar");
|
3729
3727
|
},
|
3730
3728
|
m(a, o) {
|
3731
|
-
|
3729
|
+
st(a, t, o), re(t, r), re(r, n), re(n, i), e[13](n), e[14](r), e[15](t);
|
3732
3730
|
},
|
3733
3731
|
p(a, [o]) {
|
3734
3732
|
o & /*progressText*/
|
3735
|
-
8 &&
|
3733
|
+
8 && jt(
|
3736
3734
|
i,
|
3737
3735
|
/*progressText*/
|
3738
3736
|
a[3]
|
@@ -3749,59 +3747,59 @@ function Zn(e) {
|
|
3749
3747
|
}
|
3750
3748
|
function Qn(e, t, r) {
|
3751
3749
|
let n;
|
3752
|
-
|
3753
|
-
let { currentstep: i = 0 } = t, { total: s = 1 } = t, { showaspercent: a } = t, { lang: o = "en" } = t, { status: l } = t, { translationurl:
|
3750
|
+
Rt(e, kn, (p) => r(20, n = p));
|
3751
|
+
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, A, v = "0px", O = "active";
|
3754
3752
|
Xn({ withLocale: "en", translations: {} });
|
3755
3753
|
const P = () => {
|
3756
|
-
fetch(
|
3757
|
-
Object.keys(w).forEach((
|
3758
|
-
|
3754
|
+
fetch(h).then((w) => w.json()).then((w) => {
|
3755
|
+
Object.keys(w).forEach((Ue) => {
|
3756
|
+
et(Ue, w[Ue]);
|
3759
3757
|
});
|
3760
3758
|
}).catch((w) => {
|
3761
3759
|
console.log(w);
|
3762
3760
|
});
|
3763
3761
|
};
|
3764
|
-
Object.keys(
|
3765
|
-
|
3762
|
+
Object.keys(tt).forEach((p) => {
|
3763
|
+
et(p, tt[p]);
|
3766
3764
|
});
|
3767
3765
|
const M = () => {
|
3768
3766
|
zn(o);
|
3769
3767
|
}, ee = () => {
|
3770
|
-
let p = (i / s * 100).toFixed(
|
3768
|
+
let p = (i / s * 100).toFixed(u);
|
3771
3769
|
setTimeout(
|
3772
3770
|
() => {
|
3773
3771
|
a || a === "true" ? r(3, y = `${p}%`) : r(3, y = `${i}/${s} ${n("bets")}`);
|
3774
3772
|
},
|
3775
3773
|
y ? 573 : 0
|
3776
3774
|
), p == 0 || p == 100 ? (B = "0px", A = "0px", v = p == 100 ? "3px" : "0px") : (B = `${f.offsetHeight}px`, H = B, A = `${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", A), g.style.setProperty("--stepBarBorderRadius", v);
|
3777
|
-
},
|
3775
|
+
}, It = () => {
|
3778
3776
|
r(4, O = l == "active" ? "" : "inactive");
|
3779
3777
|
};
|
3780
|
-
function
|
3778
|
+
function wt(p) {
|
3781
3779
|
J[p ? "unshift" : "push"](() => {
|
3782
3780
|
x = p, r(1, x);
|
3783
3781
|
});
|
3784
3782
|
}
|
3785
|
-
function
|
3783
|
+
function Lt(p) {
|
3786
3784
|
J[p ? "unshift" : "push"](() => {
|
3787
3785
|
g = p, r(2, g);
|
3788
3786
|
});
|
3789
3787
|
}
|
3790
|
-
function
|
3788
|
+
function Ct(p) {
|
3791
3789
|
J[p ? "unshift" : "push"](() => {
|
3792
3790
|
f = p, r(0, f);
|
3793
3791
|
});
|
3794
3792
|
}
|
3795
3793
|
return e.$$set = (p) => {
|
3796
|
-
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10,
|
3794
|
+
"currentstep" in p && r(5, i = p.currentstep), "total" in p && r(6, s = p.total), "showaspercent" in p && r(7, a = p.showaspercent), "lang" in p && r(8, o = p.lang), "status" in p && r(9, l = p.status), "translationurl" in p && r(10, h = p.translationurl), "progressfractiondigit" in p && r(11, u = p.progressfractiondigit), "triggerreset" in p && r(12, c = p.triggerreset);
|
3797
3795
|
}, e.$$.update = () => {
|
3798
3796
|
e.$$.dirty & /*triggerreset, total*/
|
3799
3797
|
4160 && c && s && setTimeout(() => {
|
3800
3798
|
ee();
|
3801
3799
|
}), e.$$.dirty & /*lang*/
|
3802
3800
|
256 && o && M(), e.$$.dirty & /*status*/
|
3803
|
-
512 && l &&
|
3804
|
-
1024 &&
|
3801
|
+
512 && l && It(), e.$$.dirty & /*translationurl*/
|
3802
|
+
1024 && h && P();
|
3805
3803
|
}, [
|
3806
3804
|
f,
|
3807
3805
|
x,
|
@@ -3813,22 +3811,22 @@ function Qn(e, t, r) {
|
|
3813
3811
|
a,
|
3814
3812
|
o,
|
3815
3813
|
l,
|
3816
|
-
u,
|
3817
3814
|
h,
|
3815
|
+
u,
|
3818
3816
|
c,
|
3819
|
-
It,
|
3820
3817
|
wt,
|
3821
|
-
Lt
|
3818
|
+
Lt,
|
3819
|
+
Ct
|
3822
3820
|
];
|
3823
3821
|
}
|
3824
|
-
class Jn extends
|
3822
|
+
class Jn extends tr {
|
3825
3823
|
constructor(t) {
|
3826
|
-
super(),
|
3824
|
+
super(), Kt(
|
3827
3825
|
this,
|
3828
3826
|
t,
|
3829
3827
|
Qn,
|
3830
3828
|
Zn,
|
3831
|
-
|
3829
|
+
nt,
|
3832
3830
|
{
|
3833
3831
|
currentstep: 5,
|
3834
3832
|
total: 6,
|
@@ -3891,7 +3889,7 @@ class Jn extends er {
|
|
3891
3889
|
this.$$set({ triggerreset: t }), S();
|
3892
3890
|
}
|
3893
3891
|
}
|
3894
|
-
|
3892
|
+
er(Jn, { currentstep: {}, total: {}, showaspercent: {}, lang: {}, status: {}, translationurl: {}, progressfractiondigit: {}, triggerreset: {} }, [], [], !0);
|
3895
3893
|
export {
|
3896
3894
|
Jn as G
|
3897
3895
|
};
|